html {
    font-size: 15px;
    position: relative;
    min-height: 100%;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.table-sm td, .table-sm th {
    vertical-align: middle;
}

.token-box {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: .8rem;
    word-break: break-all;
    background: #f6f8fa;
    border: 1px solid #d0d7de;
    border-radius: .375rem;
    padding: .6rem .75rem;
}

.stat-card .display-6 {
    font-weight: 600;
    line-height: 1;
}

.question-card {
    border-left: 3px solid var(--bs-primary);
}

.audit-action {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: .8rem;
}

/* Unfilled fields in the draft privacy notice. Deliberately loud: a placeholder that
   reaches a participant is worse than an ugly page. */
.placeholder {
    background: #ffe69c;
    border-bottom: 2px solid #cc9a06;
    padding: 0 .25rem;
    font-weight: 600;
    opacity: 1;
}

/* Step-up code box. A class rather than an inline style attribute, which the CSP blocks. */
.otp-input {
    width: 7.5rem;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.dev-banner {
    background: repeating-linear-gradient(45deg, #fff3cd, #fff3cd 10px, #ffe69c 10px, #ffe69c 20px);
    border: 1px solid #ffda6a;
}

/* Assembled interviewer prompt on the preview page. Wraps rather than scrolls: an admin is
   reading this as prose to check it makes sense, not scanning code. */
.prompt-section {
    white-space: pre-wrap;
    word-break: break-word;
    background: #f8f9fa;
    border-left: 3px solid #dee2e6;
    padding: .75rem 1rem;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: .875rem;
    line-height: 1.5;
}

/* Guided interview thread. Deliberately restrained: this is a work conversation under NDA, not a
   chat app, and playful styling would misrepresent what the participant is taking part in. */
.interview-turn {
    margin-bottom: 1.25rem;
    max-width: 46rem;
}

.interview-speaker {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6c757d;
    margin-bottom: .25rem;
}

.interview-text {
    /* Preserves the paragraph breaks the interviewer writes, without rendering any markup a
       participant might type. Razor encodes the text; this only affects whitespace. */
    white-space: pre-wrap;
    word-break: break-word;
    padding: .75rem 1rem;
    border-radius: .5rem;
    line-height: 1.6;
}

.interview-turn-interviewer .interview-text {
    background: #f1f3f5;
    border-left: 3px solid #adb5bd;
}

.interview-turn-participant {
    margin-left: auto;
}

.interview-turn-participant .interview-text {
    background: #e7f1ff;
    border-left: 3px solid #6ea8fe;
}

/* Authenticator QR. Bounded so a dense code stays a sensible size on a phone, on a white ground
   because scanners need the quiet zone to actually be light. */
.qr-frame {
    display: inline-block;
    background: #fff;
    padding: .5rem;
    border: 1px solid #dee2e6;
    border-radius: .5rem;
    line-height: 0;
}

.qr-frame svg {
    display: block;
    width: 200px;
    height: 200px;
}

/* The "+" that opens the file picker. A label rather than a button, because the file input it
   drives has to be the thing that is clicked, and a strict CSP rules out wiring one to the other
   with inline script. */
.attach-button {
    font-size: 1.1rem;
    line-height: 1;
    padding: .25rem .6rem;
    cursor: pointer;
}

.attachment-list {
    border-left: 3px solid #dee2e6;
    padding: .5rem 1rem;
    max-width: 46rem;
}
