:root {
    --ink: #1b1b1b;
    --text: #30343b;
    --muted: #69727d;
    --line: #e2dbd3;
    --paper: #fbf7f1;
    --surface: #ffffff;
    --soft: #fff8f1;
    --accent: #f47b20;
    --accent-dark: #c65f10;
    --success: #24785f;
    --shadow: 0 10px 34px rgba(31, 24, 18, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 0;
}

.app-shell {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
    padding: 10px 0 28px;
}

.brand-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 8px;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.brand-lockup {
    display: flex;
    align-items: center;
}

.brand-logo {
    display: block;
    width: 126px;
    height: auto;
    object-fit: contain;
}

.brand-subtitle {
    border-left: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    line-height: 1.2;
    padding-left: 14px;
}

.support-chip {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    color: var(--text);
    font-size: 13px;
    padding: 7px 11px;
}

.support-link {
    color: var(--accent-dark);
    text-decoration: none;
}

.support-link:hover {
    background: #fff3e8;
    border-color: #f3bd91;
}

.hero {
    display: grid;
    grid-template-columns: minmax(360px, 1fr) minmax(260px, 560px);
    gap: 20px;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 16px 20px;
}

.eyebrow {
    color: var(--accent-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin: 0 0 8px;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    max-width: 720px;
    color: var(--accent);
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 700;
    line-height: 1.08;
    margin-bottom: 8px;
}

h2 {
    color: var(--ink);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 0;
}

.hero-copy,
.section-copy {
    color: var(--muted);
    line-height: 1.55;
}

.section-copy {
    margin-bottom: 10px;
}

.hero-copy {
    max-width: 640px;
    font-size: 15px;
    margin-bottom: 0;
}

.status-card {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    justify-self: end;
    max-width: 100%;
    min-width: 0;
    min-height: 42px;
    border: 1px solid #b9e4cc;
    border-radius: 22px;
    background: #f1fbf5;
    padding: 9px 14px;
    white-space: normal;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #27a765;
    box-shadow: 0 0 0 4px rgba(39, 167, 101, 0.13);
}

.status-card.listening .status-dot {
    animation: listeningPulse 1.4s ease-in-out infinite;
}

@keyframes listeningPulse {
    0% {
        box-shadow: 0 0 0 3px rgba(39, 167, 101, 0.18);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(39, 167, 101, 0.08);
        transform: scale(1.08);
    }

    100% {
        box-shadow: 0 0 0 3px rgba(39, 167, 101, 0.18);
        transform: scale(1);
    }
}

.status-label {
    color: #3d6b52;
    font-size: 12px;
    font-weight: 600;
}

#status {
    color: #17613d;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.workflow-layout {
    display: grid;
    grid-template-columns: 176px minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
    margin-top: 12px;
}

.progress-strip {
    position: sticky;
    top: 14px;
    display: grid;
    gap: 8px;
    align-self: start;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f7efe7 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(202, 187, 172, 0.45),
        0 6px 16px rgba(31, 24, 18, 0.06);
    padding: 9px 10px;
    opacity: 0.68;
}

.progress-step.active,
.progress-step.done {
    opacity: 1;
}

.progress-step span {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: linear-gradient(180deg, #fffdf9 0%, #e9ded2 100%);
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(176, 159, 143, 0.55);
}

.progress-step.active {
    border-color: #f3bd91;
    background: linear-gradient(180deg, #fffaf5 0%, #ffe7d2 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.96),
        inset 0 -1px 0 rgba(244, 123, 32, 0.24),
        0 10px 24px rgba(244, 123, 32, 0.12);
}

.progress-step.active span {
    background: linear-gradient(180deg, #ff9445 0%, var(--accent) 100%);
    color: #fff;
}

.progress-step.done span {
    background: linear-gradient(180deg, #34a77f 0%, var(--success) 100%);
    color: #fff;
}

.progress-step.done {
    border-color: #cfe5d9;
    background: linear-gradient(180deg, #ffffff 0%, #f1fbf5 100%);
}

.progress-step strong {
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(330px, 0.9fr) minmax(440px, 1.1fr);
    gap: 14px;
    align-items: start;
}

.content-grid.view-id,
.content-grid.view-intro,
.content-grid.focus-call {
    grid-template-columns: minmax(0, 820px);
    justify-content: start;
}

.content-grid.focus-call .call-panel {
    border-color: #f3bd91;
    box-shadow: 0 16px 46px rgba(31, 24, 18, 0.12);
}

.right-stack {
    display: grid;
    gap: 14px;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 12px 32px rgba(31, 24, 18, 0.08);
    padding: 18px 20px;
}

.call-panel {
    min-height: 320px;
}

.verification-panel {
    min-height: auto;
}

.section-heading {
    margin-bottom: 8px;
}

.call-times {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: -2px 0 14px;
}

.call-times div {
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fffdf9;
    padding: 10px 12px;
}

.call-times span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 4px;
}

.call-times strong {
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.question-progress {
    border: 1px solid #d8e6dd;
    border-radius: 8px;
    background: #fbfffc;
    margin: -2px 0 14px;
    padding: 10px 12px;
}

.progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.progress-meta span,
.progress-meta strong {
    color: #17613d;
    font-size: 13px;
    font-weight: 700;
}

.progress-track {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e6efe9;
}

.progress-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #27a765 0%, var(--accent) 100%);
    transition: width 420ms ease;
}

.milestone-message {
    color: #3d6b52;
    margin-top: 8px;
}

.milestone-pop {
    animation: milestonePop 520ms ease;
}

@keyframes milestonePop {
    0% {
        opacity: 0.55;
        transform: translateY(4px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

label {
    display: block;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    margin: 10px 0 6px;
}

.required-mark {
    color: var(--accent-dark);
    font-size: 15px;
    font-weight: 700;
    margin-left: 3px;
    line-height: 1;
}

.field-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(190px, 0.7fr);
    gap: 12px;
    align-items: end;
}

input,
textarea {
    width: 100%;
    border: 1px solid #d8d0c7;
    border-radius: 6px;
    background: #fffdf9;
    color: var(--text);
    font: inherit;
    font-size: 14px;
    line-height: 1.45;
    padding: 8px 10px;
}

input {
    min-height: 38px;
}

textarea {
    resize: vertical;
}

input[type="file"] {
    padding: 8px;
}

input:focus,
textarea:focus {
    outline: 3px solid rgba(244, 123, 32, 0.18);
    border-color: var(--accent);
}

.mode-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 12px 0;
}

.mode-button {
    background: #fff;
    border: 1px solid var(--line);
    color: var(--text);
}

.mode-button.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.camera-box {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffdf9;
    margin-top: 12px;
    padding: 9px;
}

#camera-preview {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 0;
    max-height: none;
    border-radius: 6px;
    background: #202020;
    object-fit: cover;
}

.camera-box .actions {
    align-content: start;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 4px;
}

.camera-box .actions button {
    width: 100%;
}

.camera-box .microcopy {
    align-self: start;
    grid-column: 1;
    margin-top: -4px;
    text-align: left;
    white-space: nowrap;
}

.microcopy {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
    margin: 9px 0 0;
}

.verification-progress {
    border-left: 3px solid var(--accent);
    background: #fff8f1;
    border-radius: 6px;
    color: var(--text);
    margin-top: 8px;
    padding: 8px 10px;
}

.listening-hint {
    border-left: 3px solid var(--success);
    background: #f1fbf5;
    border-radius: 6px;
    color: #17613d;
    margin-top: 10px;
    padding: 9px 10px;
}

.message {
    min-height: 112px;
    display: flex;
    align-items: center;
    border: 1px solid #f1c8a6;
    border-radius: 8px;
    background: #fff8f1;
    color: var(--text);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.45;
    padding: 18px;
    transition: opacity 160ms ease, transform 160ms ease;
}

.message.question-exit {
    opacity: 0;
    transform: translateY(6px);
}

.message.question-enter {
    animation: questionEnter 260ms ease;
}

@keyframes questionEnter {
    0% {
        opacity: 0;
        transform: translateY(6px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.completion-state {
    display: grid;
    justify-items: center;
    gap: 6px;
    border: 1px solid #b9e4cc;
    border-radius: 8px;
    background: #f1fbf5;
    color: #17613d;
    margin-top: 12px;
    padding: 14px;
    text-align: center;
}

.completion-check {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #27a765;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

.completion-state strong {
    color: #17613d;
    font-size: 15px;
}

.completion-state p {
    color: #3d6b52;
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
}

.completion-pop .completion-check {
    animation: completionPop 520ms ease;
}

@keyframes completionPop {
    0% {
        transform: scale(0.8);
    }

    70% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}

.answer {
    min-height: 36px;
    color: var(--success);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    margin-top: 12px;
}

.answer-controls {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 10px;
}

.answer-review {
    border: 1px solid #f3bd91;
    border-radius: 8px;
    background: #fffaf4;
    margin-top: 12px;
    padding: 12px;
}

.answer-review blockquote {
    border-left: 3px solid var(--accent);
    color: var(--ink);
    font-size: 14px;
    line-height: 1.45;
    margin: 8px 0 12px;
    padding-left: 10px;
}

.icon-button {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    min-height: 38px;
    border-radius: 999px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    padding: 0;
}

.icon-button.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.icon-button.primary:hover:not(:disabled) {
    background: var(--accent-dark);
}

.icon-button.secondary {
    background: #fffaf4;
    border-color: #f3bd91;
    color: var(--accent-dark);
}

.icon-button.secondary:hover:not(:disabled) {
    background: #fff1e3;
}

.icon-button.danger-soft {
    border-color: #e0c3b6;
    color: #8a4a34;
}

.icon-button:disabled {
    background: #eee8e1;
    border-color: #ddd6cf;
    color: #b7ada4;
}

.consent-box {
    border: 1px solid #d8d0c7;
    border-radius: 8px;
    background: #fffdf9;
    margin-top: 12px;
    padding: 14px;
}

.consent-box p {
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: 0;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 16px;
}

.actions.compact {
    margin-top: 9px;
}

.landing-actions {
    margin-top: 18px;
}

.primary-link,
.secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border-radius: 6px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 12px;
    text-decoration: none;
}

.primary-link {
    background: var(--accent);
    border: 1px solid var(--accent);
    color: #fff;
}

.primary-link:hover {
    background: var(--accent-dark);
}

.secondary-link {
    background: #fff;
    border: 1px solid #cfc7be;
    color: var(--text);
}

.secondary-link:hover {
    background: #f8f3ee;
}

button {
    min-height: 38px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 12px;
}

button:hover:not(:disabled) {
    background: var(--accent-dark);
}

button.secondary {
    background: #fff;
    border-color: #cfc7be;
    color: var(--text);
}

button.secondary:hover:not(:disabled) {
    background: #f8f3ee;
}

button:disabled {
    background: #ddd6cf;
    color: #fff;
    cursor: not-allowed;
}

.admin-shell {
    width: min(1280px, calc(100% - 32px));
}

.admin-hero {
    margin-bottom: 14px;
}

.admin-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.admin-workspace.has-report {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
}

.admin-panel {
    padding: 0;
    overflow: hidden;
}

.admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 0;
    padding: 18px 20px 14px;
}

.admin-tabs {
    display: flex;
    gap: 6px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #fffaf4;
    padding: 8px 20px;
}

.admin-tab {
    min-height: 34px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted);
    font-size: 13px;
    padding: 7px 12px;
}

.admin-tab:hover:not(:disabled) {
    background: #fff8f1;
    color: var(--text);
}

.admin-tab.active {
    border-color: #f3bd91;
    background: #fff;
    color: var(--accent-dark);
    box-shadow: 0 4px 12px rgba(31, 24, 18, 0.05);
}

.admin-tab-panel {
    min-width: 0;
}

.question-bank-editor {
    width: calc(100% - 40px);
    min-height: 520px;
    margin: 0 20px 18px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
    line-height: 1.45;
    resize: vertical;
}

.question-bank-controls {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.question-bank-form {
    display: grid;
    gap: 12px;
    padding: 0 20px 16px;
}

.question-version-card,
.question-editor-card,
.system-health-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 12px;
}

.question-version-card h3 {
    color: var(--ink);
    font-size: 15px;
    margin: 0 0 4px;
}

.question-editor-card {
    margin-top: 10px;
}

.question-editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px;
    gap: 10px;
}

.inline-toolbar {
    padding: 0;
}

.warning-line {
    border-left: 3px solid var(--accent);
    color: var(--text);
    font-size: 13px;
    line-height: 1.45;
    margin: 0 0 8px;
    padding-left: 10px;
}

.admin-controls {
    display: grid;
    gap: 14px;
    padding: 14px 20px 16px;
}

.admin-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.summary-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffdf9;
    padding: 10px 12px;
}

.summary-card span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.summary-card strong {
    color: var(--text);
    display: block;
    font-size: 22px;
    font-weight: 700;
    margin-top: 4px;
}

.admin-filters {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 220px;
    gap: 10px;
}

.admin-filters input,
.admin-filters select {
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffdf9;
    color: var(--text);
    font: inherit;
    padding: 9px 11px;
}

.table-wrap {
    overflow-x: auto;
    border-top: 1px solid var(--line);
}

.assessment-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1280px;
    table-layout: fixed;
}

.assessment-table th,
.assessment-table td {
    border-bottom: 1px solid var(--line);
    color: var(--text);
    font-size: 13px;
    line-height: 1.35;
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
}

.assessment-table th {
    background: #fffaf4;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.assessment-table tbody tr {
    transition: background 120ms ease;
}

.assessment-table tbody tr:hover {
    background: #fffdf9;
}

.assessment-table tbody tr.selected-row {
    background: #fff8f1;
    box-shadow: inset 4px 0 0 var(--accent);
}

.assessment-table tbody tr:last-child td {
    border-bottom: 0;
}

.assessment-table th:nth-child(1),
.assessment-table td:nth-child(1) {
    width: 14%;
}

.assessment-table th:nth-child(2),
.assessment-table td:nth-child(2) {
    width: 16%;
}

.assessment-table th:nth-child(3),
.assessment-table td:nth-child(3) {
    width: 15%;
}

.assessment-table th:nth-child(4),
.assessment-table td:nth-child(4) {
    width: 10%;
}

.assessment-table th:nth-child(5),
.assessment-table td:nth-child(5) {
    width: 10%;
}

.assessment-table th:nth-child(6),
.assessment-table td:nth-child(6) {
    width: 10%;
}

.assessment-table th:nth-child(7),
.assessment-table td:nth-child(7) {
    width: 12%;
}

.assessment-table th:nth-child(8),
.assessment-table td:nth-child(8) {
    width: 13%;
}

.log-controls .admin-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.log-table {
    min-width: 1120px;
}

.log-table th:nth-child(1),
.log-table td:nth-child(1) {
    width: 15%;
}

.log-table th:nth-child(2),
.log-table td:nth-child(2) {
    width: 20%;
}

.log-table th:nth-child(3),
.log-table td:nth-child(3) {
    width: 16%;
}

.log-table th:nth-child(4),
.log-table td:nth-child(4) {
    width: 34%;
}

.log-table th:nth-child(5),
.log-table td:nth-child(5) {
    width: 15%;
}

.log-details {
    color: var(--text);
    display: block;
    max-height: 76px;
    overflow: auto;
    overflow-wrap: anywhere;
}

.evidence-link {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border: 1px solid #b9e4cc;
    border-radius: 999px;
    background: #f1fbf5;
    color: #17613d;
    font-size: 12px;
    font-weight: 700;
    margin-top: 6px;
    padding: 4px 8px;
    text-decoration: none;
}

.evidence-link:hover {
    background: #e8f7ee;
}

.log-event-pill {
    border-color: #d3dce6;
    background: #f7fafc;
    color: #425466;
}

.session-id {
    font-family: Arial, Helvetica, sans-serif;
    overflow-wrap: anywhere;
}

.table-primary,
.table-secondary {
    display: block;
}

.table-primary {
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
}

.student-cell .table-primary {
    font-size: 14px;
}

.table-secondary {
    color: var(--muted);
    font-size: 12px;
    margin-top: 3px;
    overflow-wrap: anywhere;
}

.table-email {
    word-break: break-word;
    overflow-wrap: anywhere;
}

.table-pill {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fffdf9;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    padding: 4px 8px;
    white-space: normal;
    overflow-wrap: anywhere;
}

.verification-verified,
.verification-manually-verified,
.verification-automatically-verified,
.outcome-competent {
    border-color: #b9e4cc;
    background: #f1fbf5;
    color: #17613d;
}

.verification-needs-review,
.verification-needs-manual-review,
.outcome-needs-review {
    border-color: #f3bd91;
    background: #fff8f1;
    color: var(--accent-dark);
}

.verification-not-recorded,
.outcome-in-progress {
    border-color: #ddd6cf;
    background: #f8f3ee;
    color: var(--muted);
}

.review-approved {
    border-color: #b9e4cc;
    background: #f1fbf5;
    color: #17613d;
}

.review-needs-review,
.review-needs_review {
    border-color: #f3bd91;
    background: #fff8f1;
    color: var(--accent-dark);
}

.review-pending {
    border-color: #d3dce6;
    background: #f7fafc;
    color: #425466;
}

.sync-pill {
    margin-top: 5px;
}

.status-stack {
    display: grid;
    justify-items: start;
    gap: 5px;
    min-width: 0;
}

.sync-synced {
    border-color: #b9e4cc;
    background: #f1fbf5;
    color: #17613d;
}

.sync-failed {
    border-color: #f0b3b3;
    background: #fff6f6;
    color: #a83d3d;
}

.sync-not-configured,
.sync-not-synced,
.sync-dry-run {
    border-color: #d3dce6;
    background: #f7fafc;
    color: #425466;
}

.empty-state {
    color: var(--muted);
    padding: 32px 20px !important;
    text-align: center !important;
}

.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--line);
    background: #fffdf9;
    padding: 12px 20px;
}

.pagination-bar span {
    color: var(--muted);
    font-size: 13px;
}

.pagination-controls,
.pagination-pages {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination-controls button {
    min-height: 32px;
    font-size: 12px;
    padding: 6px 9px;
}

.pagination-pages .active-page {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.table-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    min-width: 0;
}

.table-actions button {
    width: 100%;
    min-height: 32px;
    font-size: 12px;
    padding: 6px 8px;
    white-space: nowrap;
}

.table-actions .action-report {
    grid-column: auto;
}

.table-actions .action-review {
    color: var(--accent-dark);
}

.table-actions .action-sync {
    color: #17613d;
}

.report-panel {
    position: sticky;
    top: 14px;
    max-height: calc(100vh - 28px);
    overflow: hidden;
    padding: 0;
}

.report-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    padding: 18px 18px 14px;
}

.report-meta {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
    margin: 6px 0 0;
    overflow-wrap: anywhere;
}

.review-drawer-body {
    max-height: calc(100vh - 132px);
    overflow: auto;
    padding: 14px;
}

.review-hero {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.review-hero > div {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffaf4;
    padding: 10px;
}

.review-kicker,
.review-hero span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.35;
}

.review-hero strong {
    display: block;
    color: var(--ink);
    font-size: 18px;
    margin: 3px 0;
}

.drawer-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.review-form {
    border: 1px solid #f3bd91;
    border-radius: 8px;
    background: #fffaf4;
    margin-bottom: 12px;
    padding: 12px;
}

.checkbox-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.checkbox-line input {
    width: auto;
}

.drawer-section {
    border-top: 1px solid var(--line);
    padding: 13px 0;
}

.drawer-section:first-child {
    border-top: 0;
}

.drawer-section h3 {
    color: var(--ink);
    font-size: 14px;
    margin: 0 0 10px;
}

.detail-list {
    display: grid;
    gap: 7px;
    margin: 0;
}

.detail-list div {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 8px;
}

.detail-list dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.detail-list dd {
    color: var(--text);
    font-size: 12px;
    margin: 0;
    overflow-wrap: anywhere;
}

.evidence-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.evidence-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    margin: 0;
    overflow: hidden;
}

.evidence-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #191919;
    object-fit: cover;
}

.evidence-card figcaption {
    display: grid;
    gap: 2px;
    padding: 8px;
}

.evidence-card strong {
    color: var(--ink);
    font-size: 12px;
}

.evidence-card span {
    color: var(--muted);
    font-size: 11px;
}

.transcript-item,
.rubric-item,
.log-item {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    margin-bottom: 8px;
    padding: 10px;
}

.transcript-item h4 {
    color: var(--ink);
    font-size: 13px;
    margin: 0 0 8px;
}

.transcript-item p,
.rubric-item p,
.log-item p {
    color: var(--text);
    font-size: 12px;
    line-height: 1.45;
    margin: 5px 0 0;
}

.rubric-item strong,
.log-item strong {
    color: var(--ink);
    font-size: 12px;
}

.rubric-item span,
.log-item span {
    color: var(--muted);
    display: block;
    font-size: 11px;
    margin-top: 3px;
}

.drawer-report {
    max-height: 360px;
}

.hidden {
    display: none !important;
}

.landing-page {
    background:
        radial-gradient(circle at top left, rgba(244, 123, 32, 0.08), transparent 28%),
        radial-gradient(circle at top right, rgba(36, 120, 95, 0.07), transparent 26%),
        var(--paper);
}

.landing-shell {
    padding-top: 18px;
    padding-bottom: 34px;
}

.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 18px;
    align-items: start;
    margin-top: 10px;
}

.landing-hero-copy h1 {
    max-width: 760px;
}

.landing-summary-card {
    display: grid;
    gap: 12px;
    align-content: start;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffdf9;
    padding: 16px;
}

.summary-item {
    border: 1px solid #ece3d9;
    border-radius: 8px;
    background: #fff;
    padding: 12px 14px;
}

.summary-item span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.summary-item strong {
    color: var(--text);
    font-size: 14px;
    line-height: 1.45;
}

.landing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.landing-card {
    min-height: 100%;
}

.feature-list {
    color: var(--text);
    line-height: 1.6;
    margin: 0;
    padding-left: 18px;
}

.feature-list li + li {
    margin-top: 8px;
}

.video-placeholder {
    display: grid;
    place-items: center;
    align-content: center;
    min-height: 220px;
    border: 1px dashed #d4c6b7;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(244, 123, 32, 0.04), rgba(36, 120, 95, 0.04)),
        #fffdf9;
    margin-top: 14px;
    padding: 22px;
    text-align: center;
}

.video-placeholder span {
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.video-placeholder p {
    color: var(--muted);
    line-height: 1.6;
    margin: 10px 0 0;
    max-width: 360px;
}

.faq-panel {
    margin-top: 14px;
}

.faq-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.faq-list details {
    border: 1px solid #e2dbd3;
    border-radius: 8px;
    background: #fffdf9;
    padding: 12px 14px;
}

.faq-list summary {
    cursor: pointer;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
}

.faq-list details p {
    color: var(--muted);
    line-height: 1.6;
    margin: 10px 0 0;
}

.faq-list details[open] {
    border-color: #f3bd91;
    box-shadow: 0 12px 24px rgba(31, 24, 18, 0.06);
}

pre {
    min-height: 140px;
    max-height: 280px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffdf9;
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    margin: 0;
    padding: 16px;
    white-space: pre-wrap;
}

@media (max-width: 860px) {
    .app-shell {
        width: min(100% - 24px, 1100px);
        padding-top: 16px;
    }

    .brand-bar {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .header-actions {
        justify-content: flex-start;
    }

    .brand-lockup {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .brand-logo {
        width: 150px;
    }

    .hero,
    .workflow-layout,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .workflow-layout {
        gap: 10px;
    }

    .progress-strip {
        position: static;
        grid-template-columns: 1fr;
    }

    .camera-box {
        grid-template-columns: 1fr;
    }

    .camera-box .microcopy {
        grid-column: auto;
    }

    .field-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hero {
        padding: 20px;
    }

    .landing-hero,
    .landing-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 27px;
    }

    .status-card {
        justify-self: start;
    }

    .call-panel {
        min-height: auto;
    }

    .message {
        min-height: 104px;
        font-size: 16px;
    }

    .call-times {
        grid-template-columns: 1fr;
    }

    .admin-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-filters {
        grid-template-columns: 1fr;
    }

    .pagination-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .pagination-controls {
        flex-wrap: wrap;
    }

    .admin-workspace.has-report {
        grid-template-columns: 1fr;
    }

    .report-panel {
        position: static;
        max-height: none;
    }

    .review-drawer-body {
        max-height: 420px;
    }

    .review-hero,
    .drawer-actions,
    .question-editor-grid,
    .evidence-grid,
    .question-bank-controls {
        grid-template-columns: 1fr;
    }

    .question-bank-editor {
        width: calc(100% - 24px);
        margin-inline: 12px;
    }
}
