/* Feedback (beta): floating button, dialog and /Feedback */
.feedback-button {
    position: fixed; right: 1rem; bottom: 1rem; z-index: 900;
    background: var(--brand-red); color: #fff; border: 0; border-radius: 999px;
    padding: 0.6rem 1.1rem; font: 600 0.875rem var(--font-sans); cursor: pointer;
    box-shadow: var(--shadow-hover);
}
.feedback-button:hover { background: var(--brand-red-dark); }
.feedback-dialog {
    width: min(32rem, calc(100vw - 2rem)); border: 0; border-radius: var(--radius-lg);
    padding: 1.5rem; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}
.feedback-dialog::backdrop { background: rgba(13, 27, 42, 0.45); }
.feedback-dialog__head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.feedback-dialog__head .licence-subtitle { margin-bottom: 0.25rem; }
.feedback-dialog__close { background: none; border: 0; font-size: 1.5rem; line-height: 1; cursor: pointer; color: #6b7280; }
.feedback-dialog > .licence-muted { margin-bottom: 1rem; }
.feedback-form fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; }
.feedback-form legend { font-size: 0.875rem; font-weight: 500; color: #374151; margin-bottom: 0.375rem; }
.feedback-kinds, .feedback-rating { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; font-size: 0.875rem; }
.feedback-kinds legend, .feedback-rating legend { width: 100%; }
.feedback-rating label { display: inline-flex; align-items: center; gap: 0.25rem; }
.feedback-status { min-height: 1.25rem; margin: 1rem 0 0.5rem; font-size: 0.875rem; color: #166534; }
.feedback-status--error { color: #991b1b; }
.feedback-actions { display: flex; justify-content: flex-end; }
.feedback-list { list-style: none; margin: 0; padding: 0; }
.feedback-list li { border-top: 1px solid #e5e7eb; padding: 0.9rem 0; }
.feedback-list li:first-child { border-top: 0; padding-top: 0; }
.feedback-list__head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.75rem; font-size: 0.875rem; }
.feedback-list__message { white-space: pre-wrap; margin: 0.4rem 0; }
.feedback-list__reply { background: #f3f4f6; border-radius: var(--radius-sm); padding: 0.6rem 0.9rem; margin: 0.4rem 0 0; white-space: pre-wrap; }
.feedback-status-badge { font-size: 0.75rem; padding: 0.1rem 0.5rem; border-radius: 999px; background: #e5e7eb; color: #374151; }
.feedback-status-badge--planned { background: #dbeafe; color: #1e40af; }
.feedback-status-badge--done { background: #dcfce7; color: #166534; }
@media print { .feedback-button, .feedback-dialog { display: none !important; } }

/* Beta: dashboard welcome panel and /Beta (the header badge is in nav.css) */
.beta-welcome { position: relative; padding-right: 3rem; }
.beta-welcome[hidden] { display: none; }
.beta-welcome p { margin: 0 0 0.75rem; line-height: 1.55; }
.beta-welcome .home-actions { margin-bottom: 0; }
.beta-welcome__close {
    position: absolute; top: 0.75rem; right: 0.75rem; background: none; border: 0;
    font-size: 1.5rem; line-height: 1; cursor: pointer; color: #6b7280;
}
.beta-welcome__close:hover { color: #111827; }
.feedback-button--pulse { animation: feedback-pulse 1.6s ease-out 0.8s 1; }
@keyframes feedback-pulse {
    0% { box-shadow: var(--shadow-hover), 0 0 0 0 rgba(205, 35, 27, 0.55); }
    70% { box-shadow: var(--shadow-hover), 0 0 0 14px rgba(205, 35, 27, 0); }
    100% { box-shadow: var(--shadow-hover), 0 0 0 0 rgba(205, 35, 27, 0); }
}
@media (prefers-reduced-motion: reduce) { .feedback-button--pulse { animation: none; } }
.beta-page { display: grid; gap: 1.25rem; max-width: 48rem; }
.beta-page p { line-height: 1.6; margin: 0 0 0.75rem; }
.beta-page p:last-child { margin-bottom: 0; }
.beta-list { margin: 0; padding-left: 1.25rem; line-height: 1.7; }

/* Back to top (wwwroot/js/back-to-top.js): above the feedback button */
.back-to-top {
    position: fixed; right: 1rem; bottom: 4rem; z-index: 900;
    width: 2.5rem; height: 2.5rem; border-radius: 999px; border: 1px solid #d1d5db;
    background: #fff; color: var(--dark); cursor: pointer;
    display: grid; place-items: center; box-shadow: var(--shadow-hover);
}
.back-to-top[hidden] { display: none; }
.back-to-top:hover { background: #f3f4f6; }
@media print { .back-to-top { display: none !important; } }
