/* Clockus: the "Send feedback" box (js/feedback.js). Used by the landing page, the 404 page and the app,
   so it takes its colours from the page (--text, --muted, --line, --p3) and has its own buttons. */
body.fb-lock { overflow: hidden; }

.fb-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
}

.fb-modal[hidden] { display: none; }

.fb-card {
    width: min(100%, 440px);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    padding: 24px;
    border: 1px solid var(--line-strong, #5a5a5a);
    border-radius: 20px;
    background: var(--panel, #0a0a0a);
    color: var(--text, #f2f2f2);
    text-align: left;
}

.fb-title { margin: 0 0 14px; font-size: 1.15rem; font-weight: 400; letter-spacing: -0.02em; }
.fb-types { display: flex; gap: 6px; margin-bottom: 14px; }

.fb-types button {
    padding: 6px 14px;
    border: 1px solid var(--line-strong, #5a5a5a);
    border-radius: 999px;
    background: transparent;
    color: var(--muted, #8f8f8f);
    font: inherit;
    font-size: 0.78rem;
    cursor: pointer;
}

.fb-types button.on { border-color: var(--text, #f2f2f2); background: var(--text, #f2f2f2); color: var(--bg, #000); }

.fb-field {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line, #2b2b2b);
    border-radius: 12px;
    background: transparent;
    color: var(--text, #f2f2f2);
    font: inherit;
    font-size: 0.88rem;
    line-height: 1.5;
}

textarea.fb-field { min-height: 110px; resize: vertical; }
.fb-field:focus { outline: none; border-color: var(--line-strong, #5a5a5a); }
.fb-field::placeholder { color: var(--muted, #8f8f8f); }
.fb-count { margin: 6px 0 12px; font-size: 0.68rem; color: var(--muted, #8f8f8f); text-align: right; }
.fb-hint { margin: 6px 0 0; font-size: 0.72rem; color: var(--muted, #8f8f8f); }
.fb-error { margin: 12px 0 0; font-size: 0.8rem; color: var(--danger-text, #ff8a8d); }
.fb-error a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.fb-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

.fb-btn {
    padding: 9px 20px;
    border: 1px solid var(--line-strong, #5a5a5a);
    border-radius: 999px;
    background: transparent;
    color: var(--text, #f2f2f2);
    font: inherit;
    font-size: 0.82rem;
    cursor: pointer;
    transition: opacity 0.2s, background-color 0.2s;
}

.fb-btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.08); }
.fb-btn.primary { border-color: var(--text, #f2f2f2); background: var(--text, #f2f2f2); color: var(--bg, #000); }
.fb-btn.primary:hover:not(:disabled) { background: var(--text, #f2f2f2); opacity: 0.88; }
.fb-btn:disabled { opacity: 0.35; cursor: default; }

.fb-done { padding: 28px 8px 12px; text-align: center; }
.fb-done[hidden], .fb-form[hidden] { display: none; }

.fb-check {
    display: inline-grid;
    place-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--p3, #8458c8);
    color: #fff;
    font-size: 1.1rem;
}

.fb-done .fb-title { margin-bottom: 6px; }
.fb-done-text { margin: 0 0 22px; font-size: 0.82rem; line-height: 1.6; color: var(--muted, #8f8f8f); }

/* Labels kept for screen readers only */
.fb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) { .fb-btn { transition: none; } }
