:root {
  --blue: #1f66d1;
  --blue-dark: #164d9f;
  --ink: #17324d;
  --muted: #63758b;
  --line: #dbe7f4;
  --soft: #f4f8fd;
  --soft-blue: #eaf3ff;
  --green: #2a9d72;
  --danger: #bd3e48;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: linear-gradient(135deg, #f8fbff 0%, #eef5fd 100%); color: var(--ink); font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }
.app-shell { width: min(1180px, calc(100% - 28px)); margin: 14px auto; overflow: hidden; background: #fff; border: 1px solid #dce8f4; border-radius: 20px; box-shadow: 0 20px 50px rgba(35, 91, 150, .12); }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 18px 30px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: .02em; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; color: #fff; background: linear-gradient(145deg, var(--blue), #4b93ee); border-radius: 10px; box-shadow: 0 7px 15px rgba(31, 102, 209, .22); }
.version-badge { padding: 3px 6px; color: var(--blue-dark); background: var(--soft-blue); border-radius: 999px; font-size: 9px; letter-spacing: 0; }
.topnav { display: flex; gap: 22px; color: var(--muted); font-size: 13px; }
.topnav a { text-decoration: none; }
.topnav a:hover { color: var(--blue); }
.section-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr); gap: 48px; padding: 68px 74px 48px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 7px 11px; color: var(--blue-dark); background: var(--soft-blue); border-radius: 999px; font-size: 12px; font-weight: 700; }
.status-dot { width: 7px; height: 7px; background: var(--green); border-radius: 50%; }
h1 { margin: 0; color: #142f4b; font-size: clamp(34px, 5vw, 58px); line-height: 1.1; letter-spacing: -.055em; }
h1 span { color: var(--blue); }
.hero-lede { max-width: 570px; margin: 22px 0 28px; color: var(--muted); font-size: 15px; line-height: 1.85; }
.steps { display: flex; flex-wrap: wrap; gap: 20px; color: var(--muted); font-size: 12px; }
.steps span { display: inline-flex; align-items: center; gap: 8px; }
.steps b { display: grid; width: 24px; height: 24px; place-items: center; color: var(--blue); background: var(--soft-blue); border-radius: 7px; font-size: 11px; }
.upload-card, .year-card, .progress-card, .result-card { padding: 25px; background: #fbfdff; border: 1px solid #d5e4f4; border-radius: 16px; }
.upload-card { align-self: start; }
h2 { margin: 0; color: var(--ink); font-size: 23px; }
.upload-card h2 { font-size: 19px; }
.muted { margin: 7px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.drop-zone { display: grid; min-height: 190px; padding: 22px 16px; place-items: center; text-align: center; background: var(--soft-blue); border: 1px dashed #8eb8ee; border-radius: 13px; cursor: pointer; transition: .2s ease; }
.drop-zone:hover, .drop-zone.dragover { background: #e3f0ff; border-color: var(--blue); }
.drop-zone.ready { background: #eef9f4; border-color: var(--green); }
.file-icon { display: grid; width: 46px; height: 54px; margin: 0 auto 10px; place-items: center; color: var(--blue); background: #fff; border: 1px solid #c9def6; border-radius: 9px; font-size: 21px; box-shadow: 0 8px 15px rgba(43, 111, 185, .08); }
.file-icon.small { display: grid; width: 38px; height: 44px; margin: 0; font-size: 15px; }
.drop-zone strong { display: block; font-size: 14px; }
.drop-zone small { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; }
.upload-consent { display: flex; gap: 10px; align-items: flex-start; margin: 14px 2px 0; color: var(--ink); font-size: 12px; line-height: 1.55; cursor: pointer; }
.upload-consent input { flex: 0 0 auto; width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--blue); }
.upload-consent strong, .upload-consent small { display: block; }
.upload-consent small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.upload-consent a { color: var(--blue); text-underline-offset: 2px; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 17px; border-radius: 9px; font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; transition: .2s ease; }
.primary-button { width: 100%; margin-top: 14px; color: #fff; background: var(--blue); border: 1px solid var(--blue); }
.primary-button:hover:not(:disabled) { background: var(--blue-dark); border-color: var(--blue-dark); }
.primary-button:disabled { cursor: not-allowed; opacity: .45; }
.secondary-button { color: var(--blue-dark); background: #fff; border: 1px solid #bdd3ed; }
.secondary-button:hover { background: var(--soft-blue); }
.danger-button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 17px; color: var(--danger); background: #fff; border: 1px solid #edc3c7; border-radius: 9px; font-size: 13px; font-weight: 700; cursor: pointer; }
.danger-button:hover { background: #fff0f1; }
.link-button { width: auto; margin: 0; }
.scope-note, .privacy-note { display: flex; gap: 9px; margin: 15px 0 0; padding: 12px 13px; color: #4d6783; background: #f5f9fd; border-radius: 10px; font-size: 11px; line-height: 1.65; }
.scope-note b { color: var(--blue); }
.error-text { margin: 10px 0 0; color: var(--danger); font-size: 12px; line-height: 1.6; }
.workflow-screen { max-width: 760px; margin: 0 auto; padding: 48px 28px 64px; }
.workflow-head { margin-bottom: 20px; }
.year-card { background: #fff; }
.file-summary { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; margin-bottom: 19px; border-bottom: 1px solid var(--line); }
.file-summary strong, .file-summary small { display: block; }
.file-summary strong { max-width: 560px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.file-summary small { margin-top: 5px; color: var(--muted); font-size: 11px; }
.year-card label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.profile-picker-tools { display: grid; gap: 6px; margin: -2px 0 8px; }
.profile-search-row { display: flex; align-items: stretch; gap: 8px; }
.profile-search-input { width: 100%; padding: 9px 12px; color: var(--ink); background: #fbfdff; border: 1px solid #bdd3ed; border-radius: 8px; outline: none; }
.profile-search-row .profile-search-input { min-width: 0; flex: 1 1 auto; }
.profile-search-input::placeholder { color: #8a9caf; }
.profile-search-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 102, 209, .12); }
.profile-search-input:disabled { color: #8295a8; background: #f2f6fa; cursor: wait; }
.profile-search-clear { flex: 0 0 auto; min-height: 42px; padding: 0 13px; color: var(--blue-dark); background: #fff; border: 1px solid #bdd3ed; border-radius: 8px; font-size: 11px; font-weight: 700; cursor: pointer; transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease; }
.profile-search-clear:hover:not(:disabled) { background: var(--soft-blue); border-color: #8fb3df; }
.profile-search-clear:disabled { color: #8295a8; background: #f2f6fa; cursor: not-allowed; }
.profile-filter-note { min-height: 16px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.profile-input { width: 100%; margin: 0 0 15px; padding: 10px 12px; color: var(--ink); background: #fbfdff; border: 1px solid #bdd3ed; border-radius: 8px; outline: none; }
.profile-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 102, 209, .12); }
.profile-input:disabled { color: #8295a8; background: #f2f6fa; cursor: not-allowed; }
.profile-note { min-height: 18px; margin: -3px 0 15px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.profile-note.pending { color: #9a6500; }
.profile-note.active { color: #27734b; }
.profile-source { margin: -8px 0 15px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.profile-source a { color: var(--blue); }
.profile-load-error { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 16px; padding: 13px 14px; color: #7b4c0b; background: #fff9eb; border: 1px solid #efd59f; border-radius: 11px; }
.profile-load-error > div { min-width: 0; }
.profile-load-error strong, .profile-load-error span { display: block; }
.profile-load-error strong { color: #714207; font-size: 13px; }
.profile-load-error span { margin-top: 4px; font-size: 11px; line-height: 1.65; }
.profile-load-error button { flex: 0 0 auto; margin: 0; }
.year-input { width: 180px; padding: 10px 12px; color: var(--ink); background: #fbfdff; border: 1px solid #bdd3ed; border-radius: 8px; outline: none; }
.year-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 102, 209, .12); }
.preview-line { margin: 15px 0 0; padding: 12px; color: var(--muted); background: var(--soft); border-radius: 9px; font-size: 12px; line-height: 1.6; }
.mode-fieldset { display: grid; gap: 9px; margin: 18px 0 0; padding: 0; border: 0; }
.mode-fieldset legend { margin-bottom: 8px; color: var(--ink); font-size: 13px; font-weight: 700; }
.mode-option { display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px; background: var(--soft); border: 1px solid transparent; border-radius: 9px; cursor: pointer; }
.mode-option:has(input:checked) { background: var(--soft-blue); border-color: #bdd3ed; }
.mode-option input { margin-top: 3px; accent-color: var(--blue); }
.mode-option strong, .mode-option small { display: block; }
.mode-option strong { color: var(--ink); font-size: 12px; }
.mode-option small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.preview-line span { color: var(--blue); font-weight: 700; }
.workflow-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.workflow-actions .primary-button { width: auto; margin: 0; }
.progress-card { background: #fff; }
.progress-track { height: 10px; overflow: hidden; background: #e8f0f8; border-radius: 999px; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--blue), #5b9af0); border-radius: inherit; transition: width .35s ease; }
.progress-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; color: var(--muted); font-size: 12px; }
.queue-note { min-height: 23px; margin-top: 11px; color: var(--blue-dark); font-size: 12px; }
.queue-estimate { min-height: 18px; color: var(--muted); font-size: 11px; }
.process-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 25px 0 0; padding: 0; list-style: none; color: #8a9aae; font-size: 11px; text-align: center; }
.process-steps li { padding-top: 9px; border-top: 2px solid #dce8f4; }
.process-steps li.active { color: var(--blue); border-color: var(--blue); font-weight: 700; }
.process-steps li.done { color: var(--green); border-color: var(--green); }
.success-eyebrow { color: #217d5a; background: #eaf8f1; }
.result-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.result-summary .summary-card { display: block; width: 100%; padding: 15px 12px; color: inherit; background: var(--soft); border: 1px solid transparent; border-radius: 10px; text-align: center; cursor: pointer; transition: .18s ease; }
.result-summary .summary-card:hover { background: var(--soft-blue); border-color: #bdd3ed; transform: translateY(-1px); }
.result-summary .summary-card:focus-visible { outline: 3px solid rgba(31, 102, 209, .22); outline-offset: 2px; border-color: var(--blue); }
.result-summary .summary-card:active { transform: translateY(0); }
.result-summary .summary-card:disabled { cursor: default; opacity: .65; transform: none; }
.result-summary span, .result-summary strong, .result-summary small { display: block; }
.result-summary span { color: var(--muted); font-size: 11px; }
.result-summary strong { margin-top: 5px; color: var(--blue); font-size: 24px; }
.result-summary small { margin-top: 5px; color: var(--blue-dark); font-size: 10px; }
.result-quick-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.quick-action-button { padding: 7px 10px; color: var(--blue-dark); background: #fff; border: 1px solid #bdd3ed; border-radius: 8px; font-size: 11px; cursor: pointer; transition: .18s ease; }
.quick-action-button:hover { background: var(--soft-blue); border-color: #8eb8ee; }
.quick-action-button:focus-visible { outline: 3px solid rgba(31, 102, 209, .18); outline-offset: 2px; }
.quick-action-button:disabled { cursor: not-allowed; opacity: .55; }
.verification-summary, .report-verification { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.verification-item { padding: 10px 11px; color: var(--muted); background: var(--soft); border-radius: 9px; font-size: 11px; line-height: 1.55; }
.verification-item strong { display: block; color: var(--ink); font-size: 12px; }
.verification-item .pass { color: var(--green); }
.verification-item .fail { color: var(--danger); }
.review-note { margin: 16px 0 0; padding: 12px; color: #4d6783; background: var(--soft-blue); border-radius: 9px; font-size: 12px; line-height: 1.65; }
.task-link-note { margin: 14px 0 0; padding: 10px 12px; color: #4d6783; background: #f6f9fc; border: 1px dashed #c9d9e8; border-radius: 9px; font-size: 11px; line-height: 1.6; }
.manual-action-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; padding: 12px 13px; color: #795316; background: #fff8e8; border: 1px solid #f1d99f; border-radius: 9px; font-size: 11px; line-height: 1.65; }
.manual-action-icon { display: inline-grid; flex: 0 0 auto; width: 18px; height: 18px; place-items: center; color: #fff; background: #d18a26; border-radius: 50%; font-weight: 700; }
.download-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.finding-details { margin-top: 20px; border-top: 1px solid var(--line); }
.finding-details summary { padding-top: 15px; color: var(--blue-dark); cursor: pointer; font-size: 13px; font-weight: 700; }
.finding-list { margin-top: 12px; }
.finding-item { padding: 10px 0; border-bottom: 1px solid #edf3f9; color: var(--muted); font-size: 12px; line-height: 1.6; }
.finding-item b { color: var(--ink); }
.finding-guidance { margin-top: 6px; color: #795316; }
.finding-item-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.finding-action-badge { display: inline-flex; flex: 0 0 auto; padding: 4px 7px; border-radius: 999px; font-size: 10px; line-height: 1.35; white-space: nowrap; }
.finding-action-badge.auto_fixable { color: #217d5a; background: #eaf8f1; }
.finding-action-badge.manual_modify { color: #a33c43; background: #fff0f1; }
.finding-action-badge.manual_review { color: #795316; background: #fff8e8; }
.finding-action-badge.info_notice { color: #596778; background: #f0f4f8; }
.report-toolbar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; padding: 9px 0; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); }
.report-toolbar label { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.report-filter-group { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.report-progress { color: var(--muted); font-size: 11px; }
.report-filter { padding: 8px 10px; color: var(--ink); background: #fff; border: 1px solid #bdd3ed; border-radius: 8px; }
.full-report-list { display: grid; gap: 10px; }
.empty-report-state { padding: 22px 14px; color: var(--muted); background: var(--soft); border: 1px dashed var(--line); border-radius: 10px; text-align: center; }
.full-report-item { padding: 14px; background: #fff; border: 1px solid var(--line); border-left: 4px solid #a9b8c8; border-radius: 10px; }
.full-report-item.error { border-left-color: var(--danger); }
.full-report-item.warning { border-left-color: #d18a26; }
.full-report-item.info { border-left-color: var(--blue); }
.full-report-item.handled { opacity: .68; background: #f7faf8; border-left-color: var(--green); }
.full-report-item.handled .full-report-top strong { text-decoration: line-through; text-decoration-color: #8ba89b; }
.full-report-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.full-report-top strong { color: var(--ink); font-size: 13px; line-height: 1.55; }
.severity-label { color: var(--muted); font-size: 11px; white-space: nowrap; }
.full-report-meta, .full-report-value { margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.full-report-value code { color: var(--ink); font-family: Consolas, monospace; white-space: pre-wrap; word-break: break-word; }
.full-report-action-row { display: flex; align-items: center; gap: 8px; margin-top: 9px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.finding-controls { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.finding-controls label { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); font-size: 11px; cursor: pointer; }
.finding-controls input { accent-color: var(--green); }
.copy-guidance-button { padding: 6px 9px; color: var(--blue-dark); background: var(--soft-blue); border: 0; border-radius: 7px; font-size: 10px; cursor: pointer; }
.copy-guidance-button:hover { background: #dcecff; }
.comparison-list { display: grid; gap: 12px; }
.pagination-note { margin: 0 0 15px; padding: 11px 13px; color: #4d6783; background: var(--soft-blue); border-radius: 9px; font-size: 11px; line-height: 1.65; }
.pagination-preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.pagination-preview-card { overflow: hidden; min-width: 0; background: #f5f8fc; border: 1px solid var(--line); border-radius: 11px; }
.pagination-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; color: var(--muted); background: #fff; border-bottom: 1px solid var(--line); font-size: 11px; }
.pagination-preview-head strong { color: var(--ink); font-size: 12px; }
.pagination-preview-head span { color: var(--blue-dark); white-space: nowrap; }
.pagination-preview-frame { display: block; width: 100%; height: 720px; border: 0; background: #dfe8f2; }
.comparison-item { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 11px; }
.comparison-item.changed { border-color: #b9d4f2; box-shadow: 0 4px 16px rgba(31, 102, 209, .06); }
.comparison-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 13px; color: var(--muted); background: var(--soft); font-size: 11px; }
.comparison-head strong { color: var(--ink); font-size: 12px; }
.comparison-columns { display: grid; grid-template-columns: 1fr 1fr; }
.comparison-column { min-width: 0; padding: 14px; }
.comparison-column + .comparison-column { border-left: 1px solid var(--line); }
.comparison-column h3 { margin: 0 0 9px; color: var(--muted); font-size: 11px; font-weight: 700; }
.comparison-text { min-height: 36px; margin: 0; color: var(--ink); font-size: 12px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.format-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.format-chip { display: inline-flex; padding: 4px 7px; color: #4d6783; background: var(--soft-blue); border-radius: 6px; font-size: 10px; line-height: 1.4; }
.comparison-changes { padding: 10px 13px; color: #4d6783; background: #f8fbff; border-top: 1px solid var(--line); font-size: 11px; line-height: 1.65; }
.comparison-changes b { color: var(--blue-dark); }
.history-section { margin: 0 74px 38px; padding: 24px; background: #fbfdff; border: 1px solid var(--line); border-radius: 14px; }
.history-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.history-head .eyebrow { margin-bottom: 10px; }
.history-head h2 { font-size: 19px; }
.history-list { display: grid; gap: 9px; margin-top: 15px; }
.history-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 15px; padding: 13px 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.history-main { min-width: 0; }
.history-main strong { display: block; overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.history-meta { display: flex; flex-wrap: wrap; gap: 7px 12px; margin-top: 5px; color: var(--muted); font-size: 10px; }
.history-status { color: var(--blue-dark); font-weight: 700; }
.history-status.completed { color: var(--green); }
.history-status.failed { color: var(--danger); }
.history-actions { display: flex; gap: 7px; }
.history-actions button { min-height: 34px; padding: 0 11px; font-size: 10px; }
.info-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0 74px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.info-strip div { padding: 18px; background: #fff; }
.info-strip strong, .info-strip span { display: block; }
.info-strip strong { font-size: 13px; }
.info-strip span { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.text-section { padding: 65px 74px 34px; }
.text-section h2 { margin-bottom: 17px; font-size: 19px; }
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.faq-grid details { padding: 15px 16px; background: var(--soft); border-radius: 10px; }
.faq-grid summary { cursor: pointer; color: var(--ink); font-size: 13px; font-weight: 700; }
.faq-grid p { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.feedback-section { padding-top: 26px; }
.feedback-card { display: grid; grid-template-columns: minmax(0, .78fr) minmax(340px, 1.22fr); gap: 34px; padding: 24px; background: #f8fbff; border: 1px solid var(--line); border-radius: 14px; }
.feedback-card h2 { margin-bottom: 8px; }
.feedback-card form { display: grid; gap: 8px; }
.feedback-card form > label { color: var(--ink); font-size: 12px; font-weight: 700; }
.feedback-input { width: 100%; padding: 10px 11px; color: var(--ink); background: #fff; border: 1px solid #bdd3ed; border-radius: 8px; outline: none; resize: vertical; }
.feedback-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 102, 209, .12); }
.feedback-authorization { display: flex; align-items: flex-start; gap: 7px; margin-top: 3px; color: var(--muted) !important; font-weight: 400 !important; line-height: 1.6; cursor: pointer; }
.feedback-authorization input { margin-top: 3px; accent-color: var(--blue); }
.feedback-result { margin: 2px 0 0; padding: 9px 10px; color: #217d5a; background: #eaf8f1; border-radius: 8px; font-size: 11px; line-height: 1.55; }
.feedback-result.error { color: var(--danger); background: #fff0f1; }
.privacy-note { margin: 0 74px 36px; align-items: baseline; }
.privacy-note strong { color: var(--ink); white-space: nowrap; }
.footer { padding: 20px 30px; color: #7e8ea2; border-top: 1px solid #edf3f9; font-size: 11px; text-align: center; }
.footer span { padding: 0 5px; }
[hidden] { display: none !important; }
@media (max-width: 820px) { .section-grid { grid-template-columns: 1fr; gap: 28px; padding: 48px 28px 36px; } .info-strip, .history-section { margin: 0 28px 30px; } .text-section { padding: 48px 28px 28px; } .privacy-note { margin: 0 28px 30px; } .feedback-card { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .result-summary { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .app-shell { width: 100%; margin: 0; border-radius: 0; } .topbar { padding: 15px 18px; } .topnav { display: none; } .section-grid { padding: 34px 18px 28px; } .workflow-screen { padding: 38px 18px 50px; } .steps { flex-direction: column; gap: 9px; } .workflow-actions, .download-actions { flex-direction: column; } .workflow-actions .primary-button, .workflow-actions .secondary-button, .link-button { width: 100%; } .process-steps { gap: 3px; font-size: 10px; } .info-strip, .faq-grid, .verification-summary, .report-verification, .comparison-columns, .pagination-preview-grid, .result-summary { grid-template-columns: 1fr; } .comparison-column + .comparison-column { border-top: 1px solid var(--line); border-left: 0; } .pagination-preview-frame { height: 600px; } .finding-item-head, .full-report-action-row { align-items: flex-start; flex-direction: column; gap: 5px; } .info-strip, .history-section { margin: 0 18px 26px; } .history-head, .history-item { align-items: stretch; grid-template-columns: 1fr; flex-direction: column; } .history-actions { flex-direction: column; } .history-actions button { width: 100%; } .text-section { padding: 40px 18px 22px; } .privacy-note { margin: 0 18px 26px; flex-direction: column; gap: 4px; } .report-toolbar, .report-filter-group { align-items: stretch; flex-direction: column; } .finding-controls { align-items: stretch; flex-direction: column; } }

/* 2.5.8 visual refresh: calm academic workspace with clearer task hierarchy. */
:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --ink: #172a46;
  --muted: #687990;
  --line: #dce7f3;
  --soft: #f6f9fd;
  --soft-blue: #edf4ff;
  --green: #1f9d6a;
  --danger: #c34b57;
  --amber: #c17a1d;
  --shadow-card: 0 18px 48px rgba(32, 76, 124, .10);
  --shadow-soft: 0 8px 24px rgba(32, 76, 124, .08);
}

::selection { color: #fff; background: var(--blue); }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid rgba(37, 99, 235, .22); outline-offset: 3px; }

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 8%, rgba(132, 185, 255, .24), transparent 28rem),
    radial-gradient(circle at 94% 18%, rgba(174, 224, 204, .20), transparent 24rem),
    linear-gradient(145deg, #f8fbff 0%, #eef5fd 52%, #f7fbff 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: .28;
  background-image: linear-gradient(rgba(37, 99, 235, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(37, 99, 235, .035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

.app-shell {
  width: min(1220px, calc(100% - 32px));
  margin: 24px auto;
  border-color: rgba(191, 211, 233, .82);
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(33, 78, 125, .14), 0 3px 8px rgba(33, 78, 125, .04);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 18px 34px;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(16px);
}

.brand { gap: 12px; font-size: 15px; }
.brand-mark {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(37, 99, 235, .24);
}
.brand-mark::after {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 10px;
  height: 10px;
  content: "";
  background: #83d9b4;
  border: 3px solid #fff;
  border-radius: 50%;
}
.version-badge { padding: 4px 8px; font-size: 10px; font-weight: 700; }
.topnav { gap: 24px; font-size: 12px; }
.topnav a { position: relative; padding: 7px 0; }
.topnav a::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; content: ""; background: var(--blue); border-radius: 2px; transform: scaleX(0); transform-origin: center; transition: transform .2s ease; }
.topnav a:hover::after { transform: scaleX(1); }

.section-grid {
  position: relative;
  gap: 64px;
  padding: 82px 80px 62px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(249, 252, 255, .98), rgba(239, 247, 255, .92));
}
.section-grid::before {
  position: absolute;
  top: -180px;
  right: 33%;
  width: 420px;
  height: 420px;
  content: "";
  background: radial-gradient(circle, rgba(120, 183, 255, .22), transparent 68%);
  pointer-events: none;
}
.section-grid::after {
  position: absolute;
  right: -120px;
  bottom: -260px;
  width: 560px;
  height: 560px;
  content: "";
  background: radial-gradient(circle, rgba(150, 225, 193, .20), transparent 68%);
  pointer-events: none;
}
.hero-copy, .upload-card { position: relative; z-index: 1; }
.hero-copy { padding-top: 6px; }
.eyebrow { margin-bottom: 20px; box-shadow: inset 0 0 0 1px rgba(126, 174, 233, .18); }
h1 { font-weight: 800; letter-spacing: -.065em; text-wrap: balance; }
.hero-lede { max-width: 590px; margin-top: 24px; font-size: 15px; line-height: 1.9; }
.steps { gap: 9px; margin-top: 4px; }
.steps span { padding: 7px 10px 7px 7px; color: #60748e; background: rgba(255, 255, 255, .68); border: 1px solid rgba(184, 208, 235, .72); border-radius: 999px; box-shadow: 0 4px 12px rgba(39, 89, 141, .04); }
.steps b { width: 25px; height: 25px; color: #fff; background: var(--blue); border-radius: 50%; }

.upload-card, .year-card, .progress-card, .result-card {
  border-color: rgba(190, 211, 233, .9);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
}
.upload-card { padding: 30px; background: rgba(255, 255, 255, .82); backdrop-filter: blur(10px); }
.upload-card::before {
  position: absolute;
  top: 0;
  right: 28px;
  left: 28px;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--blue), #78b3ff, #8bd9b4);
  border-radius: 0 0 8px 8px;
}
.upload-card h2 { font-size: 20px; letter-spacing: -.02em; }
.drop-zone {
  min-height: 214px;
  border-color: #9ebdea;
  background: radial-gradient(circle at 50% 18%, rgba(255,255,255,.95), rgba(237,244,255,.94));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6);
}
.drop-zone:hover, .drop-zone.dragover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(37, 99, 235, .10), inset 0 0 0 1px rgba(255,255,255,.7); }
.drop-zone.ready { background: linear-gradient(145deg, #effbf5, #eaf8f1); border-color: #76c8a4; }
.file-icon { width: 52px; height: 60px; border-color: #c7dcf6; border-radius: 14px; box-shadow: 0 12px 22px rgba(43, 111, 185, .12); }
.drop-zone strong { font-size: 14px; letter-spacing: .01em; }
.drop-zone small { font-size: 11px; }
.primary-button, .secondary-button, .danger-button { min-height: 44px; border-radius: 11px; }
.primary-button { background: linear-gradient(135deg, var(--blue), #397fe9); border-color: transparent; box-shadow: 0 10px 20px rgba(37, 99, 235, .18); }
.primary-button:hover:not(:disabled) { transform: translateY(-1px); background: linear-gradient(135deg, var(--blue-dark), #2869cc); box-shadow: 0 13px 24px rgba(37, 99, 235, .24); }
.primary-button:active:not(:disabled) { transform: translateY(0); }
.secondary-button { background: rgba(255,255,255,.85); box-shadow: 0 4px 10px rgba(32,76,124,.04); }
.secondary-button:hover { transform: translateY(-1px); box-shadow: 0 8px 16px rgba(32,76,124,.08); }
.scope-note { margin-top: 17px; padding: 13px 14px; background: rgba(246, 250, 255, .92); border: 1px solid rgba(215, 228, 242, .8); }

.workflow-screen { max-width: 820px; padding-top: 60px; }
.workflow-head { margin-bottom: 24px; }
.workflow-head h2 { font-size: clamp(24px, 4vw, 32px); letter-spacing: -.035em; }
.workflow-head .muted { max-width: 640px; font-size: 13px; }
.year-card, .progress-card, .result-card { padding: 30px; background: rgba(255, 255, 255, .90); }
.file-summary { padding-bottom: 20px; margin-bottom: 22px; }
.profile-input, .year-input, .feedback-input, .report-filter { border-color: #b9cfe9; border-radius: 10px; }
.profile-input:hover, .year-input:hover, .feedback-input:hover, .report-filter:hover { border-color: #8fb3df; }
.profile-input:focus, .year-input:focus, .feedback-input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37,99,235,.10); }
.preview-line { border: 1px solid #e2edf8; background: linear-gradient(135deg, #f8fbff, #eef5fd); }
.mode-option { border-color: #e4edf7; background: #fbfdff; transition: .18s ease; }
.mode-option:hover { border-color: #b9d1ef; background: #f8fbff; }
.mode-option:has(input:checked) { border-color: #a9c8ed; box-shadow: 0 5px 14px rgba(37,99,235,.07); }
.progress-track { height: 12px; background: #e9f0f8; box-shadow: inset 0 1px 2px rgba(21, 55, 92, .06); }
.progress-bar { background: linear-gradient(90deg, #2563eb, #64a5ff 58%, #78d5ac); box-shadow: 0 0 16px rgba(37,99,235,.18); }
.process-steps li { padding-top: 11px; border-top-width: 3px; }

.result-summary .summary-card { min-height: 112px; padding: 18px 12px; background: linear-gradient(145deg, #f8fbff, #f2f7fd); border-color: #e5edf6; }
.result-summary .summary-card:nth-child(1) strong { color: var(--danger); }
.result-summary .summary-card:nth-child(2) strong { color: var(--amber); }
.result-summary .summary-card:nth-child(3) strong { color: var(--blue); }
.result-summary .summary-card:nth-child(4) strong { color: #8e5ab8; }
.result-summary .summary-card:hover { box-shadow: var(--shadow-soft); }
.verification-item { border: 1px solid #e4edf7; background: #fbfdff; }
.download-actions { align-items: stretch; }
.download-actions .primary-button { box-shadow: 0 10px 20px rgba(37,99,235,.18); }
.download-actions .danger-button { margin-left: auto; }
.manual-action-note { box-shadow: 0 8px 18px rgba(193,122,29,.07); }

.report-toolbar { margin-right: -8px; margin-left: -8px; padding: 11px 8px; border-bottom: 1px solid rgba(220,231,243,.75); box-shadow: 0 8px 20px rgba(32,76,124,.04); }
.full-report-item, .comparison-item, .pagination-preview-card, .history-item, .faq-grid details { border-color: #e0eaf4; box-shadow: 0 5px 16px rgba(32,76,124,.035); }
.full-report-item:hover, .comparison-item:hover, .history-item:hover { border-color: #bfd5ed; box-shadow: 0 10px 24px rgba(32,76,124,.07); }
.full-report-item { border-radius: 13px; }
.comparison-item, .pagination-preview-card, .history-item { border-radius: 14px; }
.pagination-preview-frame { background: linear-gradient(145deg, #e8f0f8, #d8e4f0); }
.history-section { padding: 26px; background: rgba(255,255,255,.72); box-shadow: var(--shadow-soft); }
.history-head .muted { max-width: 580px; }
.info-strip { box-shadow: var(--shadow-soft); }
.info-strip div { padding: 20px; }
.info-strip strong { color: var(--ink); letter-spacing: -.01em; }
.text-section { padding-top: 76px; }
.faq-grid details { background: rgba(247, 250, 254, .92); transition: .18s ease; }
.faq-grid details:hover { background: #fff; transform: translateY(-1px); }
.feedback-card { padding: 28px; background: linear-gradient(135deg, #f8fbff, #eef6ff); border-color: #d4e4f4; border-radius: 18px; box-shadow: var(--shadow-soft); }
.privacy-note { border: 1px solid #e0eaf4; background: rgba(255,255,255,.70); }
.footer { background: rgba(248,251,255,.65); }

@media (max-width: 820px) {
  .app-shell { width: min(100% - 20px, 760px); margin: 10px auto; border-radius: 22px; }
  .topbar { padding: 16px 24px; }
  .section-grid { gap: 34px; padding: 58px 34px 44px; }
  .workflow-screen { padding-top: 46px; }
}

@media (max-width: 560px) {
  .app-shell { width: 100%; margin: 0; border-radius: 0; border-right: 0; border-left: 0; }
  .topbar { padding: 14px 18px; }
  .section-grid { padding: 40px 18px 32px; }
  .hero-copy { padding-top: 0; }
  h1 { font-size: clamp(34px, 12vw, 48px); }
  .hero-lede { margin-top: 19px; font-size: 14px; line-height: 1.8; }
  .upload-card, .year-card, .progress-card, .result-card { padding: 22px 18px; border-radius: 18px; }
  .upload-card::before { right: 18px; left: 18px; }
  .drop-zone { min-height: 190px; }
  .workflow-screen { padding-top: 38px; }
  .workflow-head h2 { font-size: 25px; }
  .download-actions .danger-button { margin-left: 0; }
}

/* 2.8 guided custom workbench: novice-first choices for schools without a template. */
.format-source-fieldset,
.friendly-choice-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.format-source-fieldset { margin: 22px 0; }
.format-source-fieldset > legend,
.friendly-choice-group > legend {
  margin-bottom: 10px;
  color: #193553;
  font-size: 13px;
  font-weight: 900;
}
.format-source-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}
.format-source-option { position: relative; cursor: pointer; }
.format-source-option input,
.friendly-choice-grid input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.format-source-option > span:not(.format-source-icon) {
  display: flex;
  min-height: 70px;
  flex-direction: column;
  justify-content: center;
  padding: 13px 14px 13px 53px;
  background: #f8fbff;
  border: 1px solid #c9daee;
  border-radius: 14px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}
.format-source-option:hover > span:not(.format-source-icon) { transform: translateY(-1px); border-color: #96b7df; }
.format-source-option input:focus-visible ~ span:not(.format-source-icon) { outline: 3px solid rgba(37,99,235,.18); outline-offset: 3px; }
.format-source-option input:checked ~ span:not(.format-source-icon) {
  background: linear-gradient(145deg, #f5f9ff, #edf5ff);
  border-color: #3971d7;
  box-shadow: 0 8px 22px rgba(42, 94, 177, .12), inset 0 0 0 1px rgba(57,113,215,.08);
}
.format-source-option strong { color: #183451; font-size: 13px; }
.format-source-option small { margin-top: 4px; color: #6f8398; font-size: 10px; line-height: 1.5; }
.format-source-icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 14px;
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  color: #3469c8;
  background: #e8f1ff;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 900;
  transform: translateY(-50%);
}
.format-source-option input:checked ~ .format-source-icon { color: #fff; background: linear-gradient(145deg, #3d79e8, #285bc7); }

.custom-format-workbench {
  margin: 4px 0 22px;
  padding: 20px;
  background: linear-gradient(160deg, rgba(248,251,255,.98), rgba(239,246,255,.92));
  border: 1px solid #c8dbee;
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.custom-format-workbench[hidden],
#school-format-fields[hidden] { display: none !important; }
.custom-workbench-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid #dae7f4;
}
.custom-workbench-head h3 { margin: 3px 0 0; color: #17324f; font-size: 19px; letter-spacing: -.025em; }
.custom-workbench-head p:last-child { margin: 7px 0 0; color: #6c8196; font-size: 11px; line-height: 1.65; }
.compact-button { min-height: 36px; flex: 0 0 auto; padding: 0 12px; font-size: 10px; }
.friendly-choice-group { margin-top: 18px; }
.friendly-choice-group > legend { display: flex; align-items: center; gap: 7px; }
.friendly-choice-group > legend > span {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  color: #fff;
  background: #3971d7;
  border-radius: 50%;
  font-size: 10px;
}
.friendly-choice-grid { display: grid; gap: 8px; }
.friendly-choice-grid.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.friendly-choice-grid.three-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.friendly-choice-grid.four-columns { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.friendly-choice-grid label { position: relative; min-width: 0; cursor: pointer; }
.friendly-choice-grid label > span {
  position: relative;
  display: flex;
  min-height: 68px;
  flex-direction: column;
  justify-content: center;
  padding: 11px 10px;
  color: #6a7e93;
  background: rgba(255,255,255,.82);
  border: 1px solid #cfdeed;
  border-radius: 12px;
  text-align: center;
  transition: border-color .17s ease, background .17s ease, box-shadow .17s ease, transform .17s ease;
}
.friendly-choice-grid label:hover > span { transform: translateY(-1px); border-color: #9dbbe0; }
.friendly-choice-grid input:focus-visible + span { outline: 3px solid rgba(37,99,235,.18); outline-offset: 2px; }
.friendly-choice-grid input:checked + span {
  color: #2b5da9;
  background: #fff;
  border-color: #3971d7;
  box-shadow: 0 7px 18px rgba(43,93,169,.11), inset 0 0 0 1px rgba(57,113,215,.08);
}
.friendly-choice-grid input:checked + span::after {
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  color: #fff;
  background: #3971d7;
  border-radius: 50%;
  content: "✓";
  font-size: 9px;
  font-weight: 900;
}
.friendly-choice-grid strong { color: #193552; font-size: 12px; }
.friendly-choice-grid small { margin-top: 5px; font-size: 9px; line-height: 1.45; }
.friendly-choice-grid em {
  align-self: center;
  margin-top: 6px;
  padding: 2px 6px;
  color: #2c66c5;
  background: #eaf2ff;
  border-radius: 999px;
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
}
.font-choice-grid strong { font-family: var(--sample-font, inherit); font-size: 16px; font-weight: 700; }
.size-choice-grid label:nth-child(1) strong { font-size: 11px; }
.size-choice-grid label:nth-child(2) strong { font-size: 13px; }
.size-choice-grid label:nth-child(3) strong { font-size: 15px; }
.size-choice-grid label:nth-child(4) strong { font-size: 17px; }
.spacing-choice-grid label:nth-child(1) > span { line-height: 1.15; }
.spacing-choice-grid label:nth-child(2) > span { line-height: 1.4; }
.spacing-choice-grid label:nth-child(3) > span { line-height: 1.7; }

.custom-more-settings { margin-top: 19px; overflow: hidden; background: rgba(255,255,255,.58); border: 1px dashed #bed2e8; border-radius: 13px; }
.custom-more-settings summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 13px; color: #285da8; cursor: pointer; font-size: 11px; font-weight: 900; }
.custom-more-settings summary small { color: #7c8fa3; font-size: 9px; font-weight: 500; }
.custom-more-settings summary::marker { color: #4f80cc; }
.custom-more-body { padding: 0 13px 15px; border-top: 1px solid #e0eaf4; }
.custom-live-preview {
  display: grid;
  grid-template-columns: minmax(145px, .7fr) minmax(0, 1.3fr);
  gap: 15px;
  align-items: center;
  margin-top: 19px;
  padding: 14px;
  background: #fff;
  border: 1px solid #cbdced;
  border-radius: 14px;
}
.custom-paper-preview {
  min-height: 112px;
  overflow: hidden;
  color: #24374a;
  background: #fff;
  border: 1px solid #d8e0e8;
  border-radius: 4px;
  box-shadow: 0 7px 18px rgba(36,55,74,.09);
  transition: padding .18s ease, font-size .18s ease, line-height .18s ease;
}
.custom-paper-preview strong { display: block; margin-bottom: 7px; text-align: center; }
.custom-paper-preview p { margin: 0; text-align: justify; transition: text-indent .18s ease; }
.custom-live-preview > div:last-child { display: flex; min-width: 0; flex-direction: column; }
.custom-live-preview > div:last-child > span { color: #71859a; font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.custom-live-preview > div:last-child > span em {
  display: inline-block;
  margin-left: 5px;
  padding: 2px 6px;
  color: #285da8;
  background: #eaf2ff;
  border: 1px solid #c9ddf5;
  border-radius: 999px;
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0;
}
.custom-live-preview > div:last-child > strong { margin-top: 7px; color: #214f93; font-size: 12px; line-height: 1.7; }
.custom-live-preview > div:last-child > small { margin-top: 8px; color: #976514; font-size: 9px; line-height: 1.55; }
.field-help { margin: -9px 0 15px; color: #6e8297; font-size: 10px; line-height: 1.55; }
.custom-result-note {
  margin: 14px 0 0;
  padding: 12px 13px;
  color: #765015;
  background: #fff8e7;
  border: 1px solid #ecd49b;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.65;
}

@media (max-width: 720px) {
  .format-source-options { grid-template-columns: 1fr; }
  .custom-workbench-head { flex-direction: column; }
  .compact-button { width: 100%; }
  .friendly-choice-grid.four-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .custom-live-preview { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .custom-format-workbench { margin-right: -5px; margin-left: -5px; padding: 16px 12px; border-radius: 16px; }
  .friendly-choice-grid.three-columns { grid-template-columns: 1fr; }
  .friendly-choice-grid.two-columns { grid-template-columns: 1fr; }
  .friendly-choice-grid label > span { min-height: 60px; }
  .custom-more-settings summary { align-items: flex-start; flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* 2.5.9 UI refinement: make the first decision faster and the workflow easier to scan. */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}
.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  color: #60748e;
  background: rgba(255, 255, 255, .58);
  border: 1px solid rgba(184, 208, 235, .68);
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.35;
}
.hero-trust i {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}
.drop-zone {
  position: relative;
}
.drop-zone::after {
  position: absolute;
  top: 11px;
  right: 12px;
  padding: 3px 6px;
  content: "DOCX";
  color: #6d8cb6;
  background: rgba(255, 255, 255, .74);
  border: 1px solid rgba(164, 192, 225, .7);
  border-radius: 999px;
  font-family: Consolas, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
}
.drop-zone.ready::after {
  color: #287a57;
  background: rgba(255, 255, 255, .72);
  border-color: rgba(115, 199, 162, .68);
  content: "已选择";
  font-family: inherit;
  letter-spacing: 0;
}
.drop-zone.ready .file-icon {
  color: #fff;
  background: var(--green);
  border-color: transparent;
  box-shadow: 0 12px 22px rgba(31, 157, 106, .20);
  font-size: 0;
}
.drop-zone.ready .file-icon::after {
  content: "✓";
  font-size: 24px;
  font-weight: 900;
}
.drop-zone.ready strong { color: #287a57; }
.primary-button:disabled {
  color: #7890bc;
  background: #dfe8fb;
  border-color: transparent;
  box-shadow: none;
  opacity: 1;
}
.scope-note b {
  display: inline-grid;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #fff;
  background: var(--blue);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
}
.scope-note span { min-width: 0; }
.workflow-head {
  position: relative;
  padding-left: 16px;
}
.workflow-head::before {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  width: 4px;
  content: "";
  background: linear-gradient(var(--blue), #78d5ac);
  border-radius: 999px;
}
.report-toolbar,
.report-filter-group { flex-wrap: wrap; }

@media (max-width: 560px) {
  .steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .steps span {
    min-width: 0;
    padding: 7px 8px 7px 6px;
    white-space: nowrap;
  }
  .steps b { flex: 0 0 auto; }
  .hero-trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .hero-trust span {
    min-height: 56px;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    padding: 7px 4px;
    text-align: center;
    font-size: 10px;
  }
  .workflow-head { padding-left: 13px; }
  .scope-note { align-items: flex-start; }
  .drop-zone::after { top: 9px; right: 9px; }
}

/* 2.5.10 interface polish: denser visual hierarchy without changing workflow behavior. */
:root {
  --surface: rgba(255, 255, 255, .92);
  --surface-strong: #ffffff;
  --blue-glow: rgba(37, 99, 235, .14);
}

body {
  min-width: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 12% 0%, rgba(100, 165, 255, .22), transparent 30rem),
    radial-gradient(circle at 96% 26%, rgba(120, 213, 172, .18), transparent 25rem),
    linear-gradient(155deg, #f8fbff 0%, #eef5fd 48%, #f9fcff 100%);
}

.topbar {
  border-bottom-color: rgba(205, 220, 237, .82);
  box-shadow: 0 6px 22px rgba(36, 75, 121, .035);
}
.brand-mark {
  background: linear-gradient(145deg, #3478ef, #214fc2);
}
.version-badge {
  color: #2856b9;
  background: linear-gradient(135deg, #edf4ff, #e5efff);
  border: 1px solid #d4e3fb;
}

.section-grid {
  align-items: center;
  min-height: 680px;
  background:
    linear-gradient(105deg, rgba(249, 252, 255, .98), rgba(240, 247, 255, .91)),
    #f6faff;
}
.hero-copy { max-width: 630px; }
.status-dot {
  box-shadow: 0 0 0 5px rgba(31, 157, 106, .11);
  animation: status-pulse 2.8s ease-in-out infinite;
}
@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(31, 157, 106, .10); }
  50% { box-shadow: 0 0 0 7px rgba(31, 157, 106, .035); }
}
h1 {
  max-width: 620px;
  color: #112b48;
  text-shadow: 0 1px 0 rgba(255,255,255,.82);
}
h1 span {
  color: #2563eb;
}
.hero-lede { color: #5d718a; }

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 540px;
  margin-top: 26px;
  overflow: hidden;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(183, 207, 233, .72);
  border-radius: 15px;
  box-shadow: 0 8px 24px rgba(38, 80, 126, .055);
}
.hero-metrics div {
  min-width: 0;
  padding: 13px 15px;
}
.hero-metrics div + div { border-left: 1px solid rgba(207, 222, 239, .9); }
.hero-metrics strong,
.hero-metrics span { display: block; }
.hero-metrics strong {
  color: #1e58c8;
  font-size: 17px;
  line-height: 1.2;
}
.hero-metrics span {
  margin-top: 4px;
  color: #71839a;
  font-size: 10px;
  line-height: 1.45;
}

.upload-card {
  border-color: rgba(174, 200, 228, .96);
  background: linear-gradient(150deg, rgba(255,255,255,.95), rgba(248,251,255,.88));
  box-shadow: 0 24px 60px rgba(31, 75, 122, .14), 0 2px 5px rgba(31,75,122,.04);
}
.upload-card h2 { color: #142d4a; }
.upload-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: -5px 0 14px;
  color: #62758d;
  font-size: 10px;
  line-height: 1.5;
}
.upload-status-dot {
  width: 7px;
  height: 7px;
  background: #31a879;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(49, 168, 121, .10);
}
.drop-zone {
  min-height: 205px;
  border-width: 1.5px;
  border-color: #9abbea;
  background:
    radial-gradient(circle at 50% 23%, rgba(255,255,255,.98), rgba(237,245,255,.93)),
    var(--soft-blue);
}
.drop-zone::before {
  position: absolute;
  inset: 8px;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 10px;
}
.drop-zone > * { position: relative; z-index: 1; }
.drop-zone:hover,
.drop-zone.dragover {
  border-color: #4f86dc;
  background: radial-gradient(circle at 50% 23%, #fff, #eaf3ff);
}
.file-icon {
  background: linear-gradient(145deg, #fff, #f5f9ff);
  transform: rotate(-1.5deg);
}
.drop-zone:hover .file-icon { transform: translateY(-2px) rotate(1deg); }
.drop-zone.ready .file-icon { transform: none; }
.primary-button,
.secondary-button,
.danger-button,
.quick-action-button,
.summary-card,
.file-icon { transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease; }
.scope-note { color: #526a84; }

.history-section,
.info-strip,
.feedback-card,
.privacy-note {
  border-color: rgba(206, 221, 238, .92);
}
.info-strip div { position: relative; }
.info-strip div::before {
  display: block;
  width: 28px;
  height: 3px;
  margin-bottom: 12px;
  content: "";
  background: linear-gradient(90deg, var(--blue), #74b2ff);
  border-radius: 999px;
}
.info-strip div:nth-child(2)::before { background: linear-gradient(90deg, #d08a27, #efba5e); }
.info-strip div:nth-child(3)::before { background: linear-gradient(90deg, var(--green), #78d5ac); }

.faq-grid details { position: relative; overflow: hidden; }
.faq-grid details[open] {
  background: #fff;
  border-color: #bcd3ee;
  box-shadow: 0 10px 26px rgba(32,76,124,.07);
}
.faq-grid summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
}
.faq-grid summary::-webkit-details-marker { display: none; }
.faq-grid summary::after {
  display: grid;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  place-items: center;
  content: "+";
  color: var(--blue);
  background: var(--soft-blue);
  border-radius: 50%;
  font-size: 15px;
  font-weight: 500;
}
.faq-grid details[open] summary::after { content: "−"; }

.feedback-input { min-height: 44px; }
textarea.feedback-input { min-height: 126px; }
.footer { letter-spacing: .01em; }

@media (max-width: 1080px) {
  .section-grid { gap: 42px; padding-right: 54px; padding-left: 54px; }
}

@media (max-width: 820px) {
  .section-grid { min-height: 0; align-items: stretch; }
  .hero-copy { max-width: none; }
  .hero-metrics { max-width: none; }
  .upload-card { max-width: 620px; width: 100%; }
}

@media (max-width: 560px) {
  body { background: #f7faff; }
  .brand { gap: 9px; }
  .brand-mark { width: 36px; height: 36px; }
  .version-badge { padding: 3px 6px; }
  .eyebrow {
    max-width: 100%;
    padding: 7px 10px;
    font-size: 10px;
    line-height: 1.45;
  }
  h1 { letter-spacing: -.055em; }
  .hero-metrics { margin-top: 21px; border-radius: 13px; }
  .hero-metrics div { padding: 11px 8px; text-align: center; }
  .hero-metrics strong { font-size: 15px; }
  .hero-metrics span { font-size: 9px; }
  .upload-card { box-shadow: 0 16px 38px rgba(31,75,122,.11); }
  .upload-status { margin-bottom: 12px; }
  .scope-note { font-size: 10px; }
  .info-strip div { padding: 18px; }
}

/* 2.5.11 UI: clearer first action, calmer information hierarchy and better mobile reach. */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(16px) saturate(145%);
}
.brand-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}
.brand-name > small {
  color: #8696a9;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .08em;
}
.nav-cta {
  padding: 8px 13px;
  color: #fff !important;
  background: linear-gradient(135deg, #2563eb, #347de8);
  border-radius: 999px;
  box-shadow: 0 7px 16px rgba(37, 99, 235, .18);
  font-weight: 700;
}
.nav-cta:hover { transform: translateY(-1px); }

.section-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(370px, .92fr);
  gap: clamp(42px, 5vw, 68px);
  padding-top: 62px;
  padding-bottom: 58px;
}
.hero-copy .eyebrow {
  color: #315c9e;
  background: rgba(236, 244, 255, .78);
}
.hero-lede {
  max-width: 560px;
  margin-bottom: 24px;
  font-size: 15px;
}
.steps {
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  max-width: 590px;
  padding: 9px;
  background: rgba(255, 255, 255, .58);
  border: 1px solid rgba(184, 208, 235, .68);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(39, 89, 141, .045);
}
.steps span {
  flex: 1 1 auto;
  justify-content: center;
  padding: 5px 4px;
  background: transparent;
  border: 0;
  box-shadow: none;
  white-space: nowrap;
}
.steps > i {
  color: #a0b0c3;
  font-size: 12px;
  font-style: normal;
}
.steps b {
  width: 22px;
  height: 22px;
  font-size: 10px;
}
.hero-trust { margin-top: 16px; }
.hero-trust span {
  padding: 5px 9px;
  background: transparent;
  border-color: transparent;
}
.hero-trust i {
  width: 17px;
  height: 17px;
  color: #20865e;
  background: #e6f7ef;
}
.hero-metrics {
  margin-top: 18px;
  background: rgba(255, 255, 255, .48);
  box-shadow: none;
}

.upload-card {
  overflow: hidden;
  padding: 28px;
}
.upload-card::after {
  position: absolute;
  right: -72px;
  bottom: -82px;
  width: 210px;
  height: 210px;
  content: "";
  pointer-events: none;
  background: radial-gradient(circle, rgba(78, 143, 234, .09), transparent 68%);
}
.upload-card > * { position: relative; z-index: 1; }
.upload-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.card-kicker {
  margin: 0 0 6px;
  color: #4372bd;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}
.format-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  color: #3368bb;
  background: #edf4ff;
  border: 1px solid #d5e5fb;
  border-radius: 8px;
  font-family: Consolas, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
}
.upload-intro { margin-bottom: 12px; }
.upload-status { margin: 0 0 14px; }
.drop-zone {
  min-height: 190px;
  padding: 28px 18px 22px;
  border-radius: 16px;
}
.drop-zone::before { border-radius: 12px; }
.drop-zone::after { display: none; }
.file-icon {
  width: 52px;
  height: 58px;
  margin-bottom: 12px;
}
.drop-zone strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.drop-zone small { font-size: 10px; }
.upload-button {
  min-height: 48px;
  margin-top: 12px;
  border-radius: 12px;
  font-size: 14px;
}
.upload-button:not(:disabled)::after {
  margin-left: 8px;
  content: "→";
  font-size: 16px;
}
.next-step-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 11px 0 0;
  color: #77899d;
  font-size: 10px;
}
.next-step-note > span {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  color: #fff;
  background: #91a7c0;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 800;
}
.support-details {
  margin-top: 15px;
  overflow: hidden;
  background: rgba(246, 250, 255, .88);
  border: 1px solid #dce8f4;
  border-radius: 12px;
}
.support-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 13px;
  color: #4d6681;
  list-style: none;
  cursor: pointer;
  font-size: 11px;
}
.support-details summary::-webkit-details-marker { display: none; }
.support-details summary > span { font-weight: 700; }
.support-details summary b { color: #2563eb; }
.support-details summary small {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #3970bd;
  font-size: 10px;
  white-space: nowrap;
}
.support-details summary small::after { content: "⌄"; font-size: 13px; }
.support-details[open] summary small::after { transform: rotate(180deg); }
.support-details-body {
  padding: 0 13px 13px;
  border-top: 1px solid #e3edf7;
}
.school-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 12px;
}
.school-chips span {
  padding: 5px 7px;
  color: #49647f;
  background: #fff;
  border: 1px solid #dce8f4;
  border-radius: 7px;
  font-size: 9px;
}
.support-details-body p {
  margin: 10px 0 0;
  color: #77899d;
  font-size: 10px;
  line-height: 1.65;
}

.info-strip {
  margin-top: 10px;
  border-radius: 16px;
}
.info-strip div { min-height: 118px; }
.faq-grid details { border-radius: 14px; }

@media (max-width: 980px) {
  .section-grid { grid-template-columns: minmax(0, 1fr) minmax(340px, .9fr); gap: 32px; padding-right: 34px; padding-left: 34px; }
  .steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps > i { display: none; }
  .steps span { flex-direction: column; gap: 4px; font-size: 10px; }
}

@media (max-width: 820px) {
  .section-grid { grid-template-columns: 1fr; }
  .upload-card { max-width: none; }
  .steps { display: flex; }
  .steps > i { display: inline; }
  .steps span { flex-direction: row; }
}

@media (max-width: 560px) {
  .brand-name > small { display: none; }
  .section-grid { gap: 26px; padding-top: 32px; }
  .hero-copy .eyebrow { margin-bottom: 16px; }
  h1 { font-size: clamp(34px, 10.8vw, 42px); line-height: 1.12; }
  h1 span { white-space: nowrap; }
  .hero-lede { margin: 16px 0 18px; font-size: 13px; line-height: 1.75; }
  .steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
    padding: 7px 4px;
    border-radius: 13px;
  }
  .steps > i { display: none; }
  .steps span {
    flex-direction: column;
    gap: 4px;
    padding: 4px 1px;
    white-space: normal;
    font-size: 9px;
    text-align: center;
  }
  .steps b { width: 20px; height: 20px; }
  .hero-trust { gap: 2px; margin-top: 10px; }
  .hero-trust span {
    min-height: 36px;
    flex-direction: row;
    gap: 4px;
    padding: 4px 1px;
    font-size: 9px;
  }
  .hero-trust i { width: 15px; height: 15px; font-size: 9px; }
  .hero-metrics { display: none; }
  .upload-card { padding: 22px 18px; }
  .upload-card h2 { font-size: 19px; }
  .drop-zone { min-height: 168px; padding: 23px 12px 18px; }
  .drop-zone strong { font-size: 13px; }
  .support-details summary { align-items: flex-start; flex-direction: column; gap: 3px; }
  .support-details summary small { white-space: normal; }
  .info-strip div { min-height: 0; }
}

/* 2.5.13 UI: one cohesive visual system for the landing page and task workflow. */
:root {
  --blue: #2f63dc;
  --blue-dark: #1c4eaf;
  --ink: #122b48;
  --muted: #64758b;
  --line: #d8e4f1;
  --soft: #f5f8fc;
  --soft-blue: #edf4ff;
  --green: #24966c;
  --danger: #bd3e48;
  --surface: rgba(255, 255, 255, .94);
  --shadow-soft: 0 14px 38px rgba(37, 74, 118, .08);
  --shadow-card: 0 24px 70px rgba(31, 70, 116, .15);
}

html { scroll-padding-top: 92px; }
body {
  color: var(--ink);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { color: #fff; background: #346be0; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(47, 99, 220, .24);
  outline-offset: 3px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 14px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: var(--blue-dark);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .18s ease;
}
.skip-link:focus { transform: translateY(0); }

.app-shell {
  width: min(1240px, calc(100% - 32px));
  border-color: rgba(198, 216, 235, .9);
  border-radius: 26px;
  box-shadow: 0 24px 80px rgba(33, 72, 116, .14);
}
.topbar {
  min-height: 76px;
  padding: 15px 34px;
  border-bottom-color: rgba(213, 226, 240, .86);
}
.brand { gap: 12px; }
.brand-mark {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  box-shadow: 0 10px 24px rgba(42, 92, 205, .25);
  font-size: 16px;
}
.brand-mark::after {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 10px;
  height: 10px;
  content: "";
  background: #50c99b;
  border: 3px solid #fff;
  border-radius: 50%;
}
.brand-name { font-size: 15px; }
.version-badge {
  padding: 4px 8px;
  border-color: #d5e2f8;
  font-size: 10px;
  font-weight: 800;
}
.topnav { align-items: center; gap: 8px; }
.topnav a {
  position: relative;
  padding: 9px 11px;
  border-radius: 9px;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}
.topnav a:not(.nav-cta):hover { color: var(--blue-dark); background: #f2f6fc; }
.nav-cta {
  margin-left: 4px;
  padding: 10px 16px !important;
  border-radius: 11px;
  box-shadow: 0 9px 22px rgba(47, 99, 220, .22);
}
.mobile-upload-link { display: none; }

.section-grid {
  min-height: 660px;
  grid-template-columns: minmax(0, 1.06fr) minmax(390px, .94fr);
  gap: clamp(44px, 5vw, 74px);
  padding: 68px clamp(46px, 6vw, 82px) 62px;
  isolation: isolate;
}
.section-grid::before { opacity: .8; }
.section-grid::after {
  right: 5%;
  bottom: -130px;
  width: 440px;
  height: 440px;
  opacity: .85;
}
.hero-copy { max-width: 650px; }
.hero-copy .eyebrow {
  padding: 8px 12px;
  border: 1px solid rgba(181, 207, 235, .72);
  box-shadow: 0 7px 20px rgba(40, 86, 135, .05);
  font-size: 11px;
}
h1 {
  max-width: 650px;
  font-size: clamp(44px, 5.1vw, 64px);
  line-height: 1.08;
  letter-spacing: -.06em;
}
h1 span {
  color: #2d60da;
  text-shadow: 0 8px 28px rgba(47, 99, 220, .12);
}
.hero-lede {
  max-width: 590px;
  margin: 24px 0 25px;
  color: #5d7088;
  font-size: 16px;
  line-height: 1.9;
}
.steps {
  max-width: 610px;
  padding: 10px;
  border-color: rgba(176, 203, 233, .76);
  border-radius: 18px;
  background: rgba(255, 255, 255, .66);
}
.steps span { min-height: 32px; }
.steps b {
  color: #fff;
  background: linear-gradient(145deg, #3f78ec, #2858cb);
  box-shadow: 0 5px 12px rgba(47, 99, 220, .18);
  border-radius: 8px;
}
.hero-trust span { color: #536a83; }
.hero-metrics {
  max-width: 560px;
  border-color: rgba(183, 207, 233, .84);
  background: rgba(255, 255, 255, .66);
  border-radius: 17px;
}
.hero-metrics div { padding: 14px 16px; }
.hero-metrics strong { font-size: 18px; }

.upload-card,
.year-card,
.progress-card,
.result-card {
  border-color: rgba(177, 201, 228, .9);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}
.upload-card {
  padding: 31px;
  background: linear-gradient(150deg, rgba(255,255,255,.98), rgba(247,251,255,.94));
  box-shadow: var(--shadow-card);
}
.upload-card::before { height: 4px; }
.upload-card h2 { font-size: 22px; }
.card-kicker { color: #3569c1; font-size: 10px; }
.format-badge { border-radius: 9px; }
.upload-intro { font-size: 12px; }
.upload-status {
  padding: 7px 9px;
  color: #4f667f;
  background: #f4f8fd;
  border: 1px solid #e0eaf4;
  border-radius: 9px;
}
.drop-zone {
  min-height: 205px;
  border: 1.5px dashed #8fb2e5;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255,255,255,.96), rgba(235,244,255,.94));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.72);
}
.drop-zone:hover,
.drop-zone.dragover {
  border-color: #3d73d9;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.86), 0 12px 30px rgba(47, 99, 220, .09);
  transform: translateY(-1px);
}
.drop-zone:has(input:focus-visible) {
  outline: 3px solid rgba(47, 99, 220, .24);
  outline-offset: 3px;
}
.file-icon {
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(43, 103, 177, .12);
}
.drop-zone strong { color: #17324f; }
.upload-button,
.primary-button {
  border-color: transparent;
  background: linear-gradient(135deg, #376fea, #2959cf);
  box-shadow: 0 10px 24px rgba(47, 99, 220, .21);
}
.primary-button:hover:not(:disabled) {
  border-color: transparent;
  background: linear-gradient(135deg, #2f65df, #204dbd);
  box-shadow: 0 13px 28px rgba(47, 99, 220, .27);
  transform: translateY(-1px);
}
.primary-button:active:not(:disabled) { transform: translateY(0); }
.primary-button:disabled { background: #dfe8f8; box-shadow: none; }
.secondary-button,
.quick-action-button {
  border-color: #c5d7eb;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(44, 79, 119, .035);
}
.secondary-button:hover,
.quick-action-button:hover {
  border-color: #9ebee4;
  background: #f0f6ff;
}
.next-step-note { margin-top: 12px; }
.support-details { border-radius: 14px; }
.support-details summary:hover { background: rgba(237, 244, 253, .75); }
.school-chips span { border-radius: 8px; }

.history-section,
.info-strip,
.text-section,
.privacy-note { scroll-margin-top: 92px; }
.history-section {
  padding: 27px;
  border-radius: 19px;
  box-shadow: 0 12px 30px rgba(38, 75, 118, .05);
}
.history-item { border-radius: 13px; }
.info-strip {
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(37, 73, 116, .07);
}
.info-strip div { min-height: 126px; padding: 22px; }
.info-strip strong { font-size: 14px; }
.info-strip span { margin-top: 7px; font-size: 11px; }
.text-section { padding-top: 70px; }
.section-heading { max-width: 620px; margin-bottom: 23px; }
.section-kicker {
  margin: 0 0 8px;
  color: #3d6cba;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
}
.section-heading h2 { margin-bottom: 7px; font-size: 23px; }
.section-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.faq-grid { gap: 12px; }
.faq-grid details {
  padding: 17px 18px;
  background: #f8fafd;
  border: 1px solid #e2eaf3;
  border-radius: 15px;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.faq-grid details:hover { border-color: #c4d7ec; transform: translateY(-1px); }
.faq-grid details[open] {
  border-color: #b9cfea;
  box-shadow: 0 12px 30px rgba(35, 75, 120, .07);
  transform: none;
}
.faq-grid summary { min-height: 24px; }
.feedback-card {
  padding: 34px;
  border-radius: 23px;
  background: linear-gradient(145deg, #f6faff, #edf5ff);
  box-shadow: 0 18px 46px rgba(35, 75, 120, .08);
}
.feedback-input,
.profile-search-input,
.profile-input,
.year-input,
.report-filter {
  min-height: 46px;
  border-color: #c3d5e9;
  border-radius: 11px;
  background: rgba(255,255,255,.9);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.feedback-input:focus,
.profile-input:focus,
.year-input:focus,
.report-filter:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(47, 99, 220, .11);
  outline: none;
}
.privacy-note {
  position: relative;
  align-items: center;
  padding: 15px 18px 15px 49px;
  border: 1px solid #dbe6f1;
  border-radius: 14px;
  background: #fbfcfe;
}
.privacy-note::before {
  position: absolute;
  left: 17px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  content: "✓";
  color: #fff;
  background: var(--green);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}
.footer { padding: 25px; background: #fafcff; }

.workflow-screen {
  width: min(900px, 100%);
  max-width: none;
  min-height: 620px;
  padding: 58px 34px 76px;
}
.workflow-head { margin-bottom: 24px; padding-left: 18px; }
.workflow-head h2 { font-size: 27px; }
.workflow-head .muted { max-width: 700px; font-size: 13px; }
.year-card,
.progress-card,
.result-card { padding: 30px; background: #fff; }
.file-summary { padding: 14px; border: 1px solid #e0e9f3; border-radius: 14px; background: #f8fafd; }
.file-summary .file-icon { color: #fff; background: linear-gradient(145deg, #3b73e8, #2858ca); transform: none; }
.mode-option {
  padding: 14px;
  border: 1px solid #e1e9f2;
  border-radius: 12px;
  background: #f8fafd;
}
.mode-option:hover { border-color: #bfd2e9; background: #f4f8fd; }
.mode-option:has(input:checked) {
  border-color: #9fbee7;
  background: #edf4ff;
  box-shadow: 0 6px 18px rgba(47, 99, 220, .06);
}
.preview-line,
.review-note,
.task-link-note,
.pagination-note,
.manual-action-note { border-radius: 12px; }
.progress-track { height: 12px; background: #e8eef7; }
.progress-bar {
  background: linear-gradient(90deg, #2f63dc, #62a4ef, #54c39b);
  box-shadow: 0 0 18px rgba(47, 99, 220, .18);
}
.process-steps { counter-reset: process-step; gap: 2px; }
.process-steps li {
  position: relative;
  counter-increment: process-step;
  min-width: 0;
  padding: 37px 3px 0;
  border: 0;
}
.process-steps li::before {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 1;
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  content: counter(process-step);
  color: #8393a7;
  background: #eef2f7;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #d8e2ed;
  font-size: 10px;
  font-weight: 800;
  transform: translateX(-50%);
}
.process-steps li:not(:last-child)::after {
  position: absolute;
  top: 13px;
  left: calc(50% + 16px);
  width: calc(100% - 32px);
  height: 2px;
  content: "";
  background: #dde6ef;
}
.process-steps li.active::before {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(47, 99, 220, .11);
}
.process-steps li.done::before { color: #fff; background: var(--green); box-shadow: 0 0 0 1px #7ec7aa; }
.process-steps li.done::after { background: #79c4a7; }
.result-summary .summary-card {
  padding: 17px 12px;
  border-color: #e2eaf3;
  border-radius: 13px;
  background: #f8fafd;
}
.result-summary .summary-card:hover { box-shadow: 0 10px 24px rgba(35, 75, 120, .07); }
.verification-item { border: 1px solid #e2eaf3; border-radius: 11px; background: #f8fafd; }
.report-toolbar {
  top: 76px;
  padding: 11px;
  border: 1px solid #e0e8f1;
  border-radius: 13px;
  box-shadow: 0 9px 24px rgba(35, 75, 120, .06);
}
.full-report-item,
.comparison-item,
.pagination-preview-card { border-radius: 14px; }
.full-report-item { box-shadow: 0 6px 18px rgba(36, 72, 113, .035); }

@media (max-width: 980px) {
  .app-shell { width: min(100% - 20px, 1180px); margin: 10px auto; }
  .topbar { padding-right: 24px; padding-left: 24px; }
  .section-grid { grid-template-columns: minmax(0, 1fr) minmax(350px, .9fr); padding-right: 34px; padding-left: 34px; }
  h1 { font-size: clamp(42px, 5.7vw, 58px); }
}

@media (max-width: 820px) {
  .section-grid { grid-template-columns: 1fr; min-height: 0; gap: 34px; padding-top: 48px; }
  .hero-copy, .hero-metrics { max-width: none; }
  .upload-card { width: 100%; max-width: 680px; justify-self: center; }
  .feedback-card { padding: 28px; }
}

@media (max-width: 560px) {
  html { scroll-padding-top: 70px; }
  .app-shell { width: 100%; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
  .topbar { min-height: 64px; padding: 12px 16px; }
  .brand { gap: 9px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 11px; }
  .brand-name { font-size: 14px; }
  .version-badge { padding: 3px 6px; font-size: 9px; }
  .mobile-upload-link {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    color: #fff;
    background: linear-gradient(135deg, #376fea, #2959cf);
    border-radius: 10px;
    box-shadow: 0 7px 18px rgba(47, 99, 220, .2);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
  }
  .section-grid { gap: 24px; padding: 31px 17px 35px; }
  .hero-copy .eyebrow { margin-bottom: 15px; padding: 7px 9px; font-size: 9px; }
  h1 { font-size: clamp(35px, 10.4vw, 41px); line-height: 1.1; }
  .hero-lede { margin: 16px 0 18px; font-size: 13px; line-height: 1.75; }
  .steps { padding: 7px 4px; border-radius: 14px; }
  .steps span { min-height: 34px; }
  .hero-trust span { font-size: 9px; }
  .upload-card { padding: 22px 18px; border-radius: 20px; box-shadow: 0 18px 46px rgba(31, 70, 116, .14); }
  .upload-card h2 { font-size: 20px; }
  .upload-status { align-items: flex-start; font-size: 9px; }
  .drop-zone { min-height: 166px; padding: 22px 11px 17px; border-radius: 15px; }
  .file-icon { width: 48px; height: 54px; }
  .upload-button { min-height: 48px; }
  .history-section,
  .info-strip,
  .privacy-note { margin-right: 17px; margin-left: 17px; scroll-margin-top: 74px; }
  .info-strip { border-radius: 16px; }
  .info-strip div { padding: 18px; }
  .text-section { padding: 45px 17px 24px; scroll-margin-top: 74px; }
  .section-heading { margin-bottom: 17px; }
  .section-heading h2 { font-size: 21px; }
  .faq-grid { gap: 9px; }
  .faq-grid details { padding: 15px; border-radius: 13px; }
  .feedback-card { padding: 22px 18px; border-radius: 18px; }
  .privacy-note { padding: 14px 15px 14px 44px; }
  .privacy-note::before { left: 14px; }
  .workflow-screen { min-height: calc(100vh - 64px); padding: 39px 17px 54px; }
  .workflow-head { padding-left: 14px; }
  .workflow-head h2 { font-size: 23px; }
  .year-card, .progress-card, .result-card { padding: 20px 17px; border-radius: 18px; }
  .file-summary { padding: 11px; }
  .year-input { width: 100%; }
  .process-steps { font-size: 9px; }
  .process-steps li { padding-top: 34px; }
  .process-steps li::before { width: 24px; height: 24px; }
  .process-steps li:not(:last-child)::after { top: 12px; left: calc(50% + 14px); width: calc(100% - 28px); }
  .report-toolbar { top: 64px; padding: 10px; }
  .footer { padding: 22px 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .skip-link,
  .drop-zone,
  .primary-button,
  .faq-grid details,
  .nav-cta { transition: none; }
  .status-dot { animation: none; }
}

/* 2.5.14 UI: quieter academic polish, clearer upload feedback and tighter mobile flow. */
:root {
  --blue: #315fd8;
  --blue-dark: #214ba8;
  --ink: #122943;
  --muted: #60748c;
  --line: #d9e5f1;
  --soft: #f6f9fd;
  --soft-blue: #edf4ff;
  --green: #1f9770;
  --accent-cyan: #58bfa8;
  --amber: #c28128;
  --surface: rgba(255, 255, 255, .95);
  --shadow-soft: 0 16px 40px rgba(30, 69, 111, .075);
  --shadow-card: 0 28px 74px rgba(26, 67, 113, .14);
}

body {
  background:
    radial-gradient(circle at 8% 8%, rgba(79, 132, 229, .13), transparent 27%),
    radial-gradient(circle at 92% 17%, rgba(88, 191, 168, .11), transparent 24%),
    linear-gradient(145deg, #f6f9fe 0%, #edf4fc 100%);
}
.app-shell {
  overflow: clip;
  border-color: rgba(194, 213, 234, .92);
  box-shadow: 0 28px 90px rgba(30, 69, 111, .15);
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(18px) saturate(1.25);
  box-shadow: 0 8px 28px rgba(34, 72, 114, .045);
}
.topbar::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(49, 95, 216, .22), rgba(88, 191, 168, .22), transparent);
}
.brand-mark {
  background: linear-gradient(145deg, #3d71ea 0%, #315fd8 58%, #254cae 100%);
  box-shadow: 0 11px 28px rgba(41, 87, 198, .28);
}
.version-badge {
  color: #315cac;
  background: #f0f5ff;
  border-color: #d7e4f8;
}
.topnav a:not(.nav-cta)::after {
  position: absolute;
  right: 11px;
  bottom: 5px;
  left: 11px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--blue), var(--accent-cyan));
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .18s ease;
}
.topnav a:not(.nav-cta):hover::after,
.topnav a:not(.nav-cta):focus-visible::after { transform: scaleX(1); }
.nav-cta { background: linear-gradient(135deg, #3c71e8, #2b55c6); }

.section-grid {
  background:
    linear-gradient(115deg, rgba(255,255,255,.42), rgba(239,247,255,.28)),
    radial-gradient(circle at 71% 18%, rgba(71, 123, 226, .10), transparent 27%),
    radial-gradient(circle at 80% 82%, rgba(88, 191, 168, .12), transparent 24%);
}
.hero-copy { align-self: center; }
.hero-copy .eyebrow {
  color: #315da9;
  background: rgba(247, 251, 255, .86);
  border-color: rgba(168, 197, 228, .78);
  box-shadow: 0 8px 24px rgba(35, 76, 120, .06);
}
.status-dot { box-shadow: 0 0 0 5px rgba(31, 151, 112, .10); }
h1 { color: #102842; }
h1 span {
  color: #315fd8;
  background: linear-gradient(100deg, #315fd8 4%, #386fe5 58%, #268e83 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}
.hero-lede { color: #5b7088; }
.steps {
  border-color: rgba(174, 201, 231, .82);
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 12px 32px rgba(35, 76, 120, .055);
  backdrop-filter: blur(8px);
}
.steps i { color: #93a9c1; }
.hero-trust i {
  color: #167856;
  background: #e5f6ef;
  box-shadow: 0 0 0 1px rgba(70, 170, 132, .08);
}
.hero-metrics {
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 13px 34px rgba(35, 76, 120, .05);
  backdrop-filter: blur(8px);
}
.hero-metrics strong { color: #2859c7; }

.upload-card {
  border-color: rgba(159, 190, 222, .92);
  background: linear-gradient(150deg, rgba(255,255,255,.995), rgba(246,250,255,.96));
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(255,255,255,.72) inset;
}
.upload-card::before {
  background: linear-gradient(90deg, #315fd8 0%, #72a6ed 55%, #5bc4aa 100%);
}
.upload-card::after {
  position: absolute;
  top: 64px;
  right: -90px;
  width: 190px;
  height: 190px;
  content: "";
  pointer-events: none;
  background: radial-gradient(circle, rgba(80, 140, 231, .12), transparent 70%);
}
.upload-card-head,
.upload-card > form,
.upload-status,
.upload-intro,
.next-step-note,
.support-details,
.upload-card > .error-text { position: relative; z-index: 1; }
.format-badge {
  color: #315da9;
  background: linear-gradient(145deg, #f5f8ff, #eaf2ff);
  border-color: #d6e4f7;
  box-shadow: 0 5px 14px rgba(49, 95, 216, .06);
}
.upload-status {
  color: #4d657d;
  background: rgba(244, 248, 253, .88);
  border-color: #dfe9f3;
}
.drop-zone {
  overflow: hidden;
  border-color: #87ace0;
  background:
    linear-gradient(160deg, rgba(255,255,255,.98), rgba(235,244,255,.94)),
    repeating-linear-gradient(135deg, transparent 0 12px, rgba(49,95,216,.02) 12px 24px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.86), 0 10px 28px rgba(37, 77, 122, .04);
}
.drop-zone::after {
  display: none;
  min-height: 23px;
  place-items: center;
  padding: 0 8px;
  color: #5e7da6;
  background: rgba(255,255,255,.84);
  border-color: rgba(151, 183, 220, .68);
  box-shadow: 0 5px 14px rgba(35, 76, 120, .05);
}
.drop-zone:hover,
.drop-zone.dragover {
  border-color: #3b6fd6;
  background: linear-gradient(160deg, #fff, #e9f3ff);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.9), 0 16px 34px rgba(49, 95, 216, .10);
}
.drop-zone.ready {
  border-color: #62b894;
  background: linear-gradient(155deg, #fbfffd, #eaf8f2);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.9), 0 15px 34px rgba(31, 151, 112, .09);
}
.drop-zone.ready::after {
  display: inline-grid;
  color: #197552;
  background: #e9f8f1;
  border-color: #addcc8;
  content: "已就绪";
}
.drop-zone.ready .file-icon {
  background: linear-gradient(145deg, #35aa80, #218d68);
  box-shadow: 0 14px 28px rgba(31, 151, 112, .22);
}
.drop-zone strong { max-width: 92%; }
.upload-button { letter-spacing: .01em; }
.upload-button:not(:disabled) { box-shadow: 0 12px 28px rgba(49, 95, 216, .24); }
.support-details {
  border-color: #dce7f2;
  background: rgba(248, 251, 255, .82);
}
.support-details[open] { border-color: #bfd2e8; box-shadow: 0 12px 28px rgba(35, 76, 120, .06); }
.school-chips span { background: rgba(255,255,255,.94); }

.info-strip {
  border-color: #d8e4ef;
  background: #d8e4ef;
  box-shadow: 0 18px 46px rgba(35, 73, 116, .07);
}
.info-strip div {
  min-height: 116px;
  padding: 23px 22px 21px 72px;
  background: linear-gradient(155deg, #fff, #f9fbfe);
}
.info-strip div::before {
  position: absolute;
  top: 25px;
  left: 22px;
  display: grid;
  width: 34px;
  height: 34px;
  margin: 0;
  place-items: center;
  color: #2859c7;
  background: #edf4ff;
  border: 1px solid #d8e6f8;
  border-radius: 11px;
  content: "✓";
  font-size: 14px;
  font-weight: 900;
}
.info-strip div:nth-child(2)::before {
  color: #986319;
  background: #fff7e9;
  border-color: #f1dfbd;
  content: "?";
}
.info-strip div:nth-child(3)::before {
  color: #197552;
  background: #eaf8f2;
  border-color: #cde9dc;
  content: "W";
  font-family: Georgia, serif;
}
.info-strip strong { font-size: 14px; }
.info-strip span { color: #667a91; }

.text-section { padding-top: 64px; }
.section-kicker { color: #315da9; }
.faq-grid details {
  background: linear-gradient(150deg, #fbfcfe, #f6f9fd);
  border-color: #e0e9f3;
  box-shadow: 0 7px 18px rgba(36, 72, 113, .025);
}
.faq-grid details:hover { border-color: #b9cfe7; box-shadow: 0 12px 27px rgba(36, 72, 113, .06); }
.faq-grid details[open] { background: #fff; }
.faq-grid summary::after { color: #315fd8; background: #eef4ff; }
.feedback-card {
  border-color: #cddded;
  background:
    radial-gradient(circle at 8% 15%, rgba(49,95,216,.08), transparent 28%),
    linear-gradient(140deg, #f9fbff, #edf5ff);
}
.feedback-card form {
  padding: 18px;
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(209, 224, 239, .9);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(35, 75, 120, .05);
}
.privacy-note { background: linear-gradient(145deg, #fcfdfd, #f8fbfe); }

.workflow-screen {
  position: relative;
  isolation: isolate;
}
.workflow-screen::before {
  position: absolute;
  top: 20px;
  right: 0;
  left: 0;
  z-index: -1;
  height: 260px;
  content: "";
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(64, 114, 220, .075), transparent 70%);
}
.workflow-head::before { background: linear-gradient(var(--blue), var(--accent-cyan)); }
.year-card,
.progress-card,
.result-card {
  border-color: #cfdeed;
  box-shadow: 0 20px 54px rgba(32, 70, 113, .09);
}
.file-summary { background: linear-gradient(145deg, #fbfcfe, #f4f8fd); }
.mode-option { transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease; }
.mode-option:hover { transform: translateY(-1px); }
.mode-option:has(input:checked) { border-color: #9dbbe2; box-shadow: 0 9px 24px rgba(49, 95, 216, .07); }
.progress-track { box-shadow: inset 0 1px 2px rgba(45, 75, 108, .08); }
.process-steps li.active::before { background: linear-gradient(145deg, #3b70e5, #2853c2); }
.process-steps li.done::before { background: linear-gradient(145deg, #36aa80, #218d68); }
.result-summary .summary-card { position: relative; overflow: hidden; }
.result-summary .summary-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  content: "";
  background: #c95862;
}
.result-summary .summary-card:nth-child(2)::before { background: #d79a3f; }
.result-summary .summary-card:nth-child(3)::before { background: #4b79df; }
.result-summary .summary-card:nth-child(4)::before { background: #8b6bc6; }
.result-summary .summary-card:hover { border-color: #bfd1e7; transform: translateY(-2px); }
.verification-item { background: linear-gradient(145deg, #fbfcfe, #f6f9fd); }
.report-toolbar { background: rgba(255,255,255,.93); backdrop-filter: blur(16px); }
.full-report-item,
.comparison-item,
.pagination-preview-card { border-color: #d8e4ef; box-shadow: 0 9px 24px rgba(36, 72, 113, .04); }
.danger-button { border-radius: 10px; }
.footer { background: linear-gradient(180deg, #fbfdff, #f7fafe); }

@media (max-width: 980px) {
  .section-grid { gap: 34px; }
  .info-strip div { padding-left: 66px; }
  .info-strip div::before { left: 18px; }
}

@media (max-width: 820px) {
  .topbar { top: 0; }
  .section-grid { padding-top: 42px; }
  .upload-card { max-width: 660px; }
  .info-strip div { min-height: 108px; }
}

@media (max-width: 560px) {
  body { background: #f7faff; }
  .topbar {
    border-bottom-color: rgba(211, 225, 239, .9);
    background: rgba(255,255,255,.94);
    box-shadow: 0 7px 24px rgba(31, 67, 108, .07);
  }
  .mobile-upload-link::before { margin-right: 5px; content: "↥"; font-size: 13px; }
  .section-grid { gap: 21px; padding-top: 25px; padding-bottom: 30px; }
  .hero-copy .eyebrow { margin-bottom: 13px; }
  h1 { font-size: clamp(33px, 9.8vw, 39px); line-height: 1.08; }
  .hero-lede { margin: 14px 0 15px; font-size: 12.5px; line-height: 1.72; }
  .steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
    padding: 7px 3px;
  }
  .steps > i { display: none; }
  .steps span { min-height: 38px; flex-direction: column; gap: 4px; justify-content: center; font-size: 8.5px; }
  .steps b { width: 20px; height: 20px; font-size: 9px; }
  .hero-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; margin-top: 12px; }
  .hero-trust span { justify-content: center; gap: 3px; font-size: 8.5px; white-space: nowrap; }
  .hero-trust i { width: 14px; height: 14px; font-size: 8px; }
  .upload-card { padding: 21px 17px; }
  .upload-card::after { display: none; }
  .upload-card-head { align-items: flex-start; }
  .upload-intro { margin-top: 6px; }
  .drop-zone { min-height: 154px; padding: 20px 10px 15px; }
  .drop-zone::after { top: 9px; right: 9px; min-height: 20px; padding: 0 6px; font-size: 8px; }
  .drop-zone strong { max-width: 88%; font-size: 13px; }
  .drop-zone small { margin-top: 5px; }
  .upload-button { min-height: 47px; font-size: 13px; }
  .info-strip div { min-height: 88px; padding: 18px 16px 17px 62px; }
  .info-strip div::before { top: 20px; left: 17px; width: 32px; height: 32px; }
  .info-strip strong { font-size: 13px; }
  .info-strip span { margin-top: 4px; font-size: 10px; }
  .text-section { padding-top: 40px; }
  .feedback-card form { padding: 14px; border-radius: 14px; }
  .workflow-screen::before { top: 0; height: 210px; }
  .workflow-head { margin-bottom: 20px; }
  .year-card,
  .progress-card,
  .result-card { box-shadow: 0 15px 38px rgba(32, 70, 113, .08); }
  .report-toolbar { backdrop-filter: blur(12px); }
}

@media (prefers-reduced-motion: reduce) {
  .topnav a::after,
  .mode-option { transition: none !important; }
}

/* 2.5.15 UI: stronger document identity, clearer feedback guidance and calmer detail hierarchy. */
.upload-stage {
  position: relative;
  align-self: center;
  width: 100%;
  isolation: isolate;
}
.upload-stage::before,
.upload-stage::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(159, 187, 219, .62);
  border-radius: 24px;
  background:
    linear-gradient(rgba(255,255,255,.9), rgba(247,251,255,.82)),
    repeating-linear-gradient(180deg, transparent 0 25px, rgba(78,119,178,.09) 25px 26px);
  box-shadow: 0 22px 56px rgba(35, 75, 120, .08);
}
.upload-stage::before {
  top: 22px;
  right: -17px;
  bottom: 18px;
  left: 44px;
  transform: rotate(2.25deg);
}
.upload-stage::after {
  top: 42px;
  right: 28px;
  bottom: 0;
  left: 7px;
  opacity: .56;
  transform: rotate(-1.55deg);
}
.upload-stage .upload-card {
  position: relative;
  z-index: 2;
  width: 100%;
}
.upload-file-icon {
  position: relative;
  color: #315fd8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -.05em;
}
.upload-file-icon::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 15px;
  height: 15px;
  content: "";
  background: linear-gradient(225deg, #dbe8fa 49%, transparent 51%);
  border-top-right-radius: 12px;
}
.drop-zone.ready .upload-file-icon::before { opacity: 0; }
.upload-button.is-loading::before {
  width: 14px;
  height: 14px;
  margin-right: 8px;
  content: "";
  border: 2px solid rgba(73, 101, 157, .24);
  border-top-color: #607bb2;
  border-radius: 50%;
  animation: upload-spin .7s linear infinite;
}
@keyframes upload-spin { to { transform: rotate(360deg); } }

.section-heading {
  position: relative;
}
.section-heading::after {
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 15px;
  content: "";
  background: linear-gradient(90deg, #315fd8, #58bfa8);
  border-radius: 999px;
}
.faq-grid { counter-reset: faq-item; }
.faq-grid details { counter-increment: faq-item; }
.faq-grid summary {
  gap: 10px;
  justify-content: flex-start;
}
.faq-grid summary::before {
  display: inline-grid;
  flex: 0 0 auto;
  width: 27px;
  height: 27px;
  place-items: center;
  content: counter(faq-item, decimal-leading-zero);
  color: #315da9;
  background: #edf4ff;
  border: 1px solid #d9e6f7;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 900;
}
.faq-grid summary::after { margin-left: auto; }

.feedback-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.feedback-promises {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.feedback-promises li {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(204, 220, 237, .88);
  border-radius: 13px;
  background: rgba(255, 255, 255, .68);
}
.feedback-promises li > span {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #3c70e4, #2856c4);
  border-radius: 10px;
  box-shadow: 0 7px 16px rgba(49, 95, 216, .16);
  font-size: 11px;
  font-weight: 900;
}
.feedback-promises strong,
.feedback-promises small { display: block; }
.feedback-promises strong { color: #18324f; font-size: 12px; }
.feedback-promises small { margin-top: 3px; color: #667b92; font-size: 10px; line-height: 1.55; }

.info-strip div,
.faq-grid details,
.feedback-promises li { transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
@media (hover: hover) {
  .info-strip div:hover,
  .feedback-promises li:hover {
    position: relative;
    z-index: 1;
    border-color: #bdd2e8;
    box-shadow: 0 13px 28px rgba(35, 75, 120, .07);
    transform: translateY(-2px);
  }
}

.primary-button:focus-visible,
.secondary-button:focus-visible,
.quick-action-button:focus-visible,
.danger-button:focus-visible,
.mobile-upload-link:focus-visible,
.nav-cta:focus-visible {
  outline: 3px solid rgba(49, 95, 216, .24);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .upload-stage::before { right: -9px; left: 36px; }
  .upload-stage::after { right: 23px; left: 9px; }
}

@media (max-width: 820px) {
  .upload-stage {
    max-width: 660px;
    justify-self: center;
  }
  .upload-stage::before { right: -10px; }
  .upload-stage::after { left: -8px; }
}

@media (max-width: 560px) {
  .section-grid {
    gap: 18px;
    padding-top: 22px;
  }
  .hero-copy .eyebrow { margin-bottom: 11px; }
  h1 { font-size: clamp(32px, 9.45vw, 37px); }
  .hero-lede {
    margin-top: 12px;
    margin-bottom: 13px;
    line-height: 1.66;
  }
  .hero-trust { margin-top: 10px; }
  .upload-stage::before,
  .upload-stage::after { display: none; }
  .upload-stage .upload-card { padding: 20px 16px; }
  .drop-zone { min-height: 149px; }
  .upload-file-icon { font-size: 21px; }
  .section-heading::after { margin-top: 12px; }
  .faq-grid summary { gap: 8px; }
  .faq-grid summary::before { width: 24px; height: 24px; border-radius: 7px; }
  .feedback-promises { gap: 8px; margin-top: 18px; }
  .feedback-promises li { padding: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .upload-button.is-loading::before { animation: none; }
  .info-strip div,
  .faq-grid details,
  .feedback-promises li { transition: none; }
}

/* 2.5.16 UI: calm button feedback, guarded async actions and smoother screen entry. */
:root {
  --motion-fast: 150ms;
  --motion-base: 220ms;
  --motion-enter: 360ms;
  --motion-ease: cubic-bezier(.2, .72, .25, 1);
}
html { scroll-padding-top: 82px; }
button,
.primary-button,
.secondary-button,
.danger-button,
.quick-action-button,
.summary-card,
.mobile-upload-link,
.nav-cta {
  -webkit-tap-highlight-color: transparent;
  transform: translateZ(0);
  transition: transform var(--motion-base) var(--motion-ease), box-shadow var(--motion-base) var(--motion-ease), background-color var(--motion-base) ease, border-color var(--motion-base) ease, color var(--motion-fast) ease, opacity var(--motion-base) ease;
}
button:not(:disabled):active,
.primary-button:not(:disabled):active,
.secondary-button:not(:disabled):active,
.danger-button:not(:disabled):active,
.quick-action-button:not(:disabled):active,
.summary-card:not(:disabled):active,
.mobile-upload-link:active,
.nav-cta:active {
  transform: translateY(1px) scale(.985);
  transition-duration: 70ms;
}
button:disabled,
.primary-button:disabled,
.secondary-button:disabled,
.danger-button:disabled,
.quick-action-button:disabled,
.summary-card:disabled {
  cursor: not-allowed;
}
.is-busy {
  position: relative;
  cursor: wait !important;
  pointer-events: none;
}
.is-busy::before {
  width: 14px;
  height: 14px;
  margin-right: 8px;
  content: "";
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: button-spin .68s linear infinite;
}
.primary-button.is-busy::before,
.nav-cta.is-busy::before,
.mobile-upload-link.is-busy::before { border-color: rgba(255,255,255,.45); border-right-color: transparent; }
@keyframes button-spin { to { transform: rotate(360deg); } }

.screen-opening {
  animation: screen-enter var(--motion-enter) var(--motion-ease) both;
  transform-origin: 50% 8%;
}
@keyframes screen-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero.screen-opening .upload-card,
.workflow-screen.screen-opening > * {
  animation: screen-child-enter 420ms var(--motion-ease) 35ms both;
}
@keyframes screen-child-enter {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.topnav a,
.mobile-upload-link,
.nav-cta,
.faq-grid summary,
.finding-details summary {
  transition: color var(--motion-fast) ease, background-color var(--motion-base) ease, transform var(--motion-base) var(--motion-ease);
}
.topnav a:active,
.faq-grid summary:active,
.finding-details summary:active { transform: translateY(1px); }

@media (max-width: 560px) {
  html { scroll-padding-top: 74px; }
  .screen-opening { transform-origin: 50% 0; }
  .is-busy::before { width: 13px; height: 13px; margin-right: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .screen-opening,
  .hero.screen-opening .upload-card,
  .workflow-screen.screen-opening > * { animation: none; }
  .is-busy::before { animation: none; }
  button,
  .primary-button,
  .secondary-button,
  .danger-button,
  .quick-action-button,
  .summary-card,
  .mobile-upload-link,
  .nav-cta,
  .topnav a,
  .faq-grid summary,
  .finding-details summary { transition: none; }
}

/* 2.5.17 UI: stable action widths, tactile controls and non-blocking feedback. */
button,
a,
select,
summary {
  touch-action: manipulation;
}

button,
.primary-button,
.secondary-button,
.danger-button,
.quick-action-button,
.summary-card,
.nav-cta,
.mobile-upload-link {
  will-change: transform;
}

button:not(:disabled):hover,
.primary-button:not(:disabled):hover,
.secondary-button:not(:disabled):hover,
.danger-button:not(:disabled):hover,
.quick-action-button:not(:disabled):hover,
.summary-card:not(:disabled):hover,
.nav-cta:hover,
.mobile-upload-link:hover {
  will-change: transform, box-shadow;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  scroll-margin-top: 88px;
}

.is-busy {
  min-width: max-content;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.is-busy::before {
  flex: 0 0 auto;
}

.toast-region {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 30px);
  z-index: 80;
  max-width: min(390px, calc(100vw - 32px));
  padding: 12px 16px;
  color: #17324f;
  background: rgba(255, 255, 255, .96);
  border: 1px solid #cfe0f2;
  border-radius: 12px;
  box-shadow: 0 16px 38px rgba(28, 65, 105, .16);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(.98);
  transition: opacity var(--motion-base) var(--motion-ease), transform var(--motion-base) var(--motion-ease), border-color var(--motion-fast) ease;
}

.toast-region.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast-region[data-tone="success"] {
  color: #176c50;
  background: #f3fcf8;
  border-color: #b9e2d0;
}

.toast-region[data-tone="error"] {
  color: #8d3039;
  background: #fff7f7;
  border-color: #efc7ca;
}

.history-actions button,
.workflow-actions button,
.download-actions > * {
  min-width: 0;
}

@media (max-width: 560px) {
  .toast-region {
    right: 16px;
    bottom: 16px;
    left: 16px;
    max-width: none;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  button,
  .primary-button,
  .secondary-button,
  .danger-button,
  .quick-action-button,
  .summary-card,
  .nav-cta,
  .mobile-upload-link { will-change: auto; }
  .toast-region { transition: none; }
}

/* 2.5.18 UI: stable anchor navigation and calmer control polish. */
.topnav a[aria-current="location"]:not(.nav-cta) {
  color: var(--blue-dark);
  background: #f2f6fc;
}
.topnav a[aria-current="location"]:not(.nav-cta)::after {
  transform: scaleX(1);
}
.primary-button,
.secondary-button,
.danger-button,
.quick-action-button,
.summary-card,
.mobile-upload-link,
.nav-cta {
  backface-visibility: hidden;
}
.primary-button:not(:disabled):focus-visible,
.secondary-button:not(:disabled):focus-visible,
.danger-button:not(:disabled):focus-visible,
.quick-action-button:not(:disabled):focus-visible,
.summary-card:not(:disabled):focus-visible,
.mobile-upload-link:focus-visible,
.nav-cta:focus-visible {
  box-shadow: 0 0 0 4px rgba(49, 95, 216, .16), 0 10px 24px rgba(47, 99, 220, .14);
}
.is-busy {
  cursor: progress !important;
}
.is-busy::before {
  animation-duration: .58s;
}
@media (prefers-reduced-motion: reduce) {
  .topnav a[aria-current="location"]:not(.nav-cta)::after { transform: none; }
  .is-busy::before { animation: none; }
}

/* 2.5.19 UI: two-way workflow transitions, unified progress and softer overlays. */
html { interpolate-size: allow-keywords; }

.interaction-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 120;
  height: 3px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}
.interaction-progress span {
  display: block;
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, #315fd8, #63a5f3 58%, #45b99a);
  border-radius: 0 999px 999px 0;
  box-shadow: 0 0 14px rgba(49, 95, 216, .34);
  transform: translateX(-115%);
}
.interaction-progress.is-active { opacity: 1; }
.interaction-progress.is-active span { animation: interaction-progress 1.05s cubic-bezier(.35, 0, .25, 1) infinite; }
.interaction-progress.is-finishing span { width: 100%; animation: none; transform: translateX(0); transition: width 180ms ease, transform 180ms ease; }
@keyframes interaction-progress {
  0% { transform: translateX(-115%) scaleX(.7); }
  58% { transform: translateX(110%) scaleX(1); }
  100% { transform: translateX(245%) scaleX(.72); }
}

.hero:not([hidden]),
.workflow-screen:not([hidden]) { view-transition-name: workflow-stage; }
::view-transition-group(workflow-stage) {
  animation-duration: 340ms;
  animation-timing-function: var(--motion-ease);
}
::view-transition-old(workflow-stage) { animation: workflow-leave 150ms ease both; }
::view-transition-new(workflow-stage) { animation: workflow-arrive 330ms var(--motion-ease) both; }
@keyframes workflow-leave {
  to { opacity: 0; transform: translateY(-5px) scale(.995); filter: blur(1px); }
}
@keyframes workflow-arrive {
  from { opacity: 0; transform: translateY(12px) scale(.992); filter: blur(1.5px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@supports selector(details::details-content) {
  .support-details::details-content,
  .faq-grid details::details-content,
  .finding-details::details-content {
    block-size: 0;
    overflow: hidden;
    opacity: 0;
    transition: block-size 260ms var(--motion-ease), opacity 180ms ease;
  }
  .support-details[open]::details-content,
  .faq-grid details[open]::details-content,
  .finding-details[open]::details-content {
    block-size: auto;
    opacity: 1;
  }
}

.confirm-dialog {
  width: min(430px, calc(100% - 32px));
  padding: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, .98);
  border: 1px solid #d9e5f1;
  border-radius: 20px;
  box-shadow: 0 30px 90px rgba(20, 48, 82, .24);
  opacity: 0;
  transform: translateY(12px) scale(.975);
  transition: opacity 200ms ease, transform 260ms var(--motion-ease), overlay 260ms allow-discrete, display 260ms allow-discrete;
}
.confirm-dialog[open] { opacity: 1; transform: translateY(0) scale(1); }
@starting-style {
  .confirm-dialog[open] { opacity: 0; transform: translateY(12px) scale(.975); }
}
.confirm-dialog::backdrop {
  background: rgba(18, 38, 63, .42);
  backdrop-filter: blur(5px);
}
.confirm-dialog form {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 0 14px;
  padding: 25px;
}
.confirm-dialog-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #a73b46;
  background: #fff0f1;
  border: 1px solid #efc8cc;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 900;
}
.confirm-dialog-copy { min-width: 0; }
.confirm-dialog .card-kicker { margin-bottom: 6px; color: #9b4650; }
.confirm-dialog h2 { font-size: 19px; letter-spacing: -.02em; }
.confirm-dialog p:not(.card-kicker) { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.confirm-dialog-actions {
  display: flex;
  grid-column: 1 / -1;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 22px;
}
.confirm-dialog-actions button { min-width: 112px; }

@media (max-width: 560px) {
  .interaction-progress { height: 2px; }
  .confirm-dialog form { padding: 21px 18px 18px; }
  .confirm-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .confirm-dialog-actions button { width: 100%; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .interaction-progress { transition: none; }
  .interaction-progress.is-active span { animation: none; transform: translateX(0); }
  .interaction-progress.is-finishing span { transition: none; }
  ::view-transition-group(workflow-stage),
  ::view-transition-old(workflow-stage),
  ::view-transition-new(workflow-stage) { animation: none; }
  .confirm-dialog { transition: none; }
  .confirm-dialog::backdrop { backdrop-filter: none; }
  @supports selector(details::details-content) {
    .support-details::details-content,
    .faq-grid details::details-content,
    .finding-details::details-content { transition: none; }
  }
}

/* 2.5.20 UI: faster tactile controls, directional workflow motion and tidier action groups. */
:root {
  --motion-fast: 120ms;
  --motion-base: 190ms;
  --motion-enter: 310ms;
  --motion-ease: cubic-bezier(.22, .75, .24, 1);
}

button,
.primary-button,
.secondary-button,
.danger-button,
.quick-action-button,
.summary-card,
.nav-cta,
.mobile-upload-link {
  gap: 8px;
  isolation: isolate;
  transform: translate3d(0, 0, 0);
  transition-duration: var(--motion-base);
}

.primary-button,
.secondary-button,
.danger-button,
.quick-action-button,
.link-button {
  min-height: 45px;
  line-height: 1.25;
}

.primary-button {
  background: linear-gradient(135deg, #3b73ed 0%, #2857cc 100%);
  box-shadow: 0 10px 22px rgba(43, 91, 207, .20), inset 0 1px 0 rgba(255, 255, 255, .20);
}

.secondary-button,
.quick-action-button {
  color: #2854a5;
  background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(246, 250, 255, .98));
  border-color: #c8d8eb;
}

.danger-button {
  background: linear-gradient(180deg, #fff, #fff8f8);
  border-color: #ecc9cd;
}

@media (hover: hover) {
  .primary-button:not(:disabled):hover,
  .nav-cta:hover,
  .mobile-upload-link:hover {
    transform: translate3d(0, -1px, 0);
    box-shadow: 0 14px 29px rgba(43, 91, 207, .27), inset 0 1px 0 rgba(255, 255, 255, .22);
  }
  .secondary-button:not(:disabled):hover,
  .quick-action-button:not(:disabled):hover,
  .summary-card:not(:disabled):hover {
    transform: translate3d(0, -1px, 0);
  }
}

button:not(:disabled):active,
.primary-button:not(:disabled):active,
.secondary-button:not(:disabled):active,
.danger-button:not(:disabled):active,
.quick-action-button:not(:disabled):active,
.summary-card:not(:disabled):active,
.nav-cta:active,
.mobile-upload-link:active {
  transform: translate3d(0, 1px, 0) scale(.986);
  transition-duration: 60ms;
}

.is-busy {
  filter: saturate(.92);
  opacity: .94;
}

.is-busy::before {
  animation-duration: .54s;
}

.workflow-actions {
  align-items: stretch;
}

.workflow-actions > * {
  min-width: 156px;
}

.download-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.download-actions > * {
  width: 100%;
  min-height: 46px;
}

#download-formatted,
#approve-result {
  grid-column: 1 / -1;
  min-height: 49px;
}

#delete-task {
  grid-column: 1 / -1;
  margin-left: 0;
}

.result-quick-actions .quick-action-button,
.report-filter-group .quick-action-button {
  min-height: 38px;
}

.profile-input,
.year-input,
.feedback-input,
.report-filter {
  transition: border-color var(--motion-fast) ease, box-shadow var(--motion-base) ease, background-color var(--motion-base) ease;
}

.progress-bar {
  transition: width 460ms var(--motion-ease);
}

::view-transition-group(workflow-stage) {
  animation-duration: 285ms;
  animation-timing-function: var(--motion-ease);
}

:root[data-workflow-direction="forward"]::view-transition-old(workflow-stage) {
  animation: workflow-leave-forward 150ms ease both;
}

:root[data-workflow-direction="forward"]::view-transition-new(workflow-stage) {
  animation: workflow-arrive-forward 285ms var(--motion-ease) both;
}

:root[data-workflow-direction="back"]::view-transition-old(workflow-stage) {
  animation: workflow-leave-back 145ms ease both;
}

:root[data-workflow-direction="back"]::view-transition-new(workflow-stage) {
  animation: workflow-arrive-back 270ms var(--motion-ease) both;
}

@keyframes workflow-leave-forward {
  to { opacity: 0; transform: translate3d(-10px, -2px, 0) scale(.996); }
}

@keyframes workflow-arrive-forward {
  from { opacity: 0; transform: translate3d(18px, 6px, 0) scale(.994); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes workflow-leave-back {
  to { opacity: 0; transform: translate3d(10px, 1px, 0) scale(.996); }
}

@keyframes workflow-arrive-back {
  from { opacity: 0; transform: translate3d(-18px, 4px, 0) scale(.994); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

:root[data-workflow-direction="back"] .screen-opening {
  animation-name: screen-enter-back;
}

@keyframes screen-enter-back {
  from { opacity: 0; transform: translate3d(-12px, 5px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@media (max-width: 560px) {
  .profile-load-error { align-items: stretch; flex-direction: column; }
  .profile-load-error button { width: 100%; }
  .workflow-actions > * { width: 100%; min-width: 0; }
  .download-actions { grid-template-columns: 1fr; }
  .download-actions > *,
  #download-formatted,
  #approve-result,
  #delete-task { grid-column: 1; }
  .primary-button,
  .secondary-button,
  .danger-button,
  .quick-action-button,
  .link-button { min-height: 47px; }
}

@media (prefers-reduced-motion: reduce) {
  .progress-bar { transition: none; }
  :root[data-workflow-direction="forward"]::view-transition-old(workflow-stage),
  :root[data-workflow-direction="forward"]::view-transition-new(workflow-stage),
  :root[data-workflow-direction="back"]::view-transition-old(workflow-stage),
  :root[data-workflow-direction="back"]::view-transition-new(workflow-stage),
  :root[data-workflow-direction="back"] .screen-opening { animation: none; }
}

/* 2.5.22 UI: keep the four-step overview evenly spaced at every desktop width. */
.steps {
  display: grid;
  width: min(100%, 610px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  box-sizing: border-box;
  padding-right: 12px;
  padding-left: 12px;
}

.steps > i { display: none; }

.steps span {
  position: relative;
  min-width: 0;
  justify-content: center;
  padding-right: 7px;
  padding-left: 7px;
}

.steps span:not(:last-of-type)::after {
  position: absolute;
  top: 50%;
  right: 0;
  content: "→";
  color: #93a9c1;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  transform: translate(50%, -50%);
}

@media (max-width: 560px) {
  .steps { gap: 2px; padding-right: 4px; padding-left: 4px; }
  .steps span { padding-right: 1px; padding-left: 1px; }
  .steps span:not(:last-of-type)::after { display: none; }
}

/* Selective motion accent for the next meaningful action. */
.attention-action:not(:disabled) {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  animation: action-breathe 3.8s ease-in-out infinite;
}

.attention-action:not(:disabled)::after {
  position: absolute;
  top: -55%;
  bottom: -55%;
  left: -32%;
  width: 24%;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .66), transparent);
  filter: blur(1px);
  opacity: 0;
  transform: translate3d(-260%, 0, 0) rotate(16deg);
  animation: action-light-sweep 4.9s cubic-bezier(.3, .05, .2, 1) infinite;
}

.attention-action.is-busy,
.attention-action:disabled {
  animation: none;
}

.attention-action.is-busy::after,
.attention-action:disabled::after {
  display: none;
}

@keyframes action-breathe {
  0%, 100% { box-shadow: 0 10px 22px rgba(43, 91, 207, .20), 0 0 0 0 rgba(71, 155, 225, 0); }
  50% { box-shadow: 0 14px 30px rgba(43, 91, 207, .28), 0 0 0 5px rgba(71, 155, 225, .10); }
}

@keyframes action-light-sweep {
  0%, 24% { opacity: 0; transform: translate3d(-260%, 0, 0) rotate(16deg); }
  31% { opacity: .72; }
  48%, 100% { opacity: 0; transform: translate3d(720%, 0, 0) rotate(16deg); }
}

@media (hover: hover) {
  .attention-action:not(:disabled):hover { animation-play-state: paused; }
}

@media (prefers-reduced-motion: reduce) {
  .attention-action:not(:disabled) { animation: none; }
  .attention-action:not(:disabled)::after { display: none; }
}

/* 2.8.2 UI: choose only the items written in the student's own school requirements. */
.custom-safety-note {
  display: flex;
  gap: 8px;
  margin: 16px 0 14px;
  padding: 11px 12px;
  color: #315d88;
  background: rgba(226, 240, 255, .76);
  border: 1px solid #bdd6ef;
  border-radius: 11px;
  font-size: 11px;
  line-height: 1.65;
}

.custom-safety-note strong { flex: 0 0 auto; color: #174e84; }

.custom-auto-save-note {
  margin: -4px 0 12px;
  color: #71859a;
  font-size: 9px;
  line-height: 1.45;
}

.custom-requirement-import {
  margin: 16px 0;
  padding: 15px 0;
  border-top: 1px solid #c9dced;
  border-bottom: 1px solid #c9dced;
}
.custom-requirement-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 11px;
}
.custom-requirement-head h4 { margin: 2px 0 0; color: #214d83; font-size: 14px; }
.custom-requirement-head p:last-child { max-width: 660px; margin: 5px 0 0; color: #71859a; font-size: 10px; line-height: 1.6; }
.custom-requirement-head > span {
  flex: 0 0 auto;
  padding: 5px 7px;
  color: #28725f;
  background: #eef9f5;
  border: 1px solid #b9dfd2;
  border-radius: 7px;
  font-size: 9px;
  font-weight: 800;
}
.custom-requirement-file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 10px;
  background: #f8fbff;
  border: 1px solid #d4e2ef;
  border-radius: 8px;
}
.custom-requirement-file-row > span {
  min-width: 0;
  flex: 1 1 auto;
  color: #6f8498;
  font-size: 9px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.custom-requirement-file-row > span[data-state="loading"] { color: #3971d7; }
.custom-requirement-file-row > span[data-state="success"] { color: #28725f; }
.custom-requirement-file-row > span[data-state="warning"] { color: #925f17; }
.custom-requirement-file-row > span[data-state="error"] { color: #b33b3b; }
.custom-requirement-import > label { display: block; margin-bottom: 6px; color: #365571; font-size: 10px; font-weight: 800; }
.custom-requirement-import textarea {
  display: block;
  width: 100%;
  min-height: 116px;
  resize: vertical;
  padding: 11px 12px;
  color: #17324f;
  background: #fff;
  border: 1px solid #b9cfe5;
  border-radius: 8px;
  font: inherit;
  font-size: 11px;
  line-height: 1.65;
}
.custom-requirement-import textarea:focus { outline: 3px solid rgba(57, 113, 215, .14); border-color: #6d9dd5; }
.custom-requirement-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.custom-requirement-actions small { flex: 1 1 260px; color: #75899d; font-size: 9px; line-height: 1.5; }
.custom-requirement-results { margin-top: 12px; }
.custom-requirement-result-head { display: flex; flex-direction: column; gap: 3px; padding: 10px 11px; background: #f2f8ff; border-left: 3px solid #3971d7; }
.custom-requirement-result-head strong { color: #214d83; font-size: 11px; }
.custom-requirement-result-head span { color: #6f8498; font-size: 9px; line-height: 1.5; }
.custom-requirement-results ul { display: grid; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.custom-requirement-results li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  background: #fff;
  border: 1px solid #d5e2ef;
  border-radius: 8px;
}
.custom-requirement-results li > span { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.custom-requirement-results li strong { color: #294f78; font-size: 10px; }
.custom-requirement-results li small { color: #61778e; font-size: 9px; line-height: 1.5; }
.custom-requirement-results li q { color: #7e90a2; font-size: 9px; line-height: 1.5; }
.custom-requirement-results li q + q { margin-top: 2px; }
.custom-requirement-results li b { flex: 0 0 auto; color: #28725f; font-size: 9px; white-space: nowrap; }
.custom-requirement-results li.is-preserved b,
.custom-requirement-results li.is-unsupported b,
.custom-requirement-review li b { color: #a56519; }
.custom-requirement-review { margin-top: 12px; }
.custom-requirement-review > strong { color: #80581e; font-size: 10px; }
.custom-requirement-results > p { margin: 9px 0 0; color: #6f8498; font-size: 10px; line-height: 1.6; }

.custom-view-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  padding: 10px 11px;
  background: rgba(247, 251, 255, .82);
  border: 1px solid #c9dced;
  border-radius: 12px;
}

.custom-view-switch > span { display: flex; min-width: 0; flex-direction: column; }
.custom-view-switch > span strong { color: #294f78; font-size: 11px; }
.custom-view-switch > span small { margin-top: 2px; color: #74899d; font-size: 9px; line-height: 1.4; }
.custom-view-switch > div { display: inline-flex; flex: 0 0 auto; gap: 4px; padding: 3px; background: #eaf2fb; border-radius: 10px; }
.custom-view-switch button {
  min-height: 32px;
  padding: 0 10px;
  color: #607b96;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}
.custom-view-switch button:hover { color: #285d9d; }
.custom-view-switch button.is-active { color: #24579a; background: #fff; border-color: #b8cfe7; box-shadow: 0 3px 9px rgba(45, 83, 126, .09); }
.custom-view-switch button:focus-visible { outline: 3px solid rgba(57, 113, 215, .16); outline-offset: 1px; }

.custom-progress-panel {
  margin: 0 0 15px;
  padding: 13px 14px 12px;
  background: rgba(255, 255, 255, .74);
  border: 1px solid #c9dced;
  border-radius: 13px;
}
.custom-progress-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.custom-progress-head h4 { margin: 3px 0 0; color: #214d83; font-size: 13px; }
.custom-progress-head p:last-child { margin: 4px 0 0; color: #71859a; font-size: 10px; line-height: 1.55; }
.custom-progress-head .compact-button { min-height: 34px; }
.custom-progress-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.custom-progress-actions .text-button { min-height: 34px; padding: 0 8px; color: #3971d7; background: transparent; border: 1px solid #c3d8ef; box-shadow: none; font-size: 10px; font-weight: 800; }
.custom-progress-actions .text-button:hover:not(:disabled) { color: #214d83; background: #f6faff; border-color: #9ebfe3; }
.custom-progress-actions .text-button.is-active { color: #fff; background: #3971d7; border-color: #3971d7; }
.custom-progress-actions #custom-mark-unset-keep { color: #5b7591; }
.custom-progress-actions #custom-mark-unset-keep:not(:disabled):hover { color: #315f8f; background: #f4f9ff; border-color: #a5c0df; }
.custom-progress-hidden { display: none !important; }
.custom-progress-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 11px;
}
.custom-progress-item {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  padding: 8px 9px;
  color: #6b7f93;
  background: rgba(248, 251, 255, .86);
  border: 1px solid #d4e1ee;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--motion-fast, 150ms) ease, background-color var(--motion-fast, 150ms) ease, transform var(--motion-fast, 150ms) ease, box-shadow var(--motion-fast, 150ms) ease;
}
.custom-progress-item:hover { transform: translateY(-1px); border-color: #9dbbe0; box-shadow: 0 5px 12px rgba(45, 83, 126, .07); }
.custom-progress-item:focus-visible { outline: 3px solid rgba(57, 113, 215, .15); outline-offset: 2px; }
.custom-progress-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  background: #c1cfdd;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(193, 207, 221, .22);
}
.custom-progress-copy { display: flex; min-width: 0; flex-direction: column; }
.custom-progress-copy strong { overflow: hidden; color: #365571; font-size: 10px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.custom-progress-copy small { margin-top: 2px; color: #8a9bab; font-size: 9px; line-height: 1.2; }
.custom-progress-item.is-configured { color: #265b9e; background: #f7fbff; border-color: #9fc2e7; }
.custom-progress-item.is-configured .custom-progress-dot { background: #3971d7; box-shadow: 0 0 0 3px rgba(57, 113, 215, .14); }
.custom-progress-item.is-configured .custom-progress-copy strong { color: #24579a; }
.custom-progress-item.is-configured .custom-progress-copy small { color: #3971d7; font-weight: 800; }
.custom-progress-item.is-keep-confirmed { color: #3d7d70; background: #f5fcfa; border-color: #a7d8cb; }
.custom-progress-item.is-keep-confirmed .custom-progress-dot { background: #39a18b; box-shadow: 0 0 0 3px rgba(57, 161, 139, .14); }
.custom-progress-item.is-keep-confirmed .custom-progress-copy strong { color: #2f7568; }
.custom-progress-item.is-keep-confirmed .custom-progress-copy small { color: #3d8c7c; font-weight: 800; }
.custom-progress-item[aria-current="step"] { border-color: #3971d7; box-shadow: 0 0 0 3px rgba(57, 113, 215, .11); }
.custom-progress-note { margin: 9px 0 0; color: #8293a3; font-size: 9px; line-height: 1.5; }

.custom-school-field {
  display: block;
  margin: 0 0 14px !important;
  color: #294b6c;
  font-size: 11px !important;
}

.custom-school-field > span { display: block; margin-bottom: 7px; }

.custom-school-field input,
.requirement-field-grid select,
.requirement-field-grid input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 11px;
  color: #17324f;
  background: rgba(255, 255, 255, .94);
  border: 1px solid #bfd2e6;
  border-radius: 10px;
  outline: none;
  transition: border-color var(--motion-fast, 150ms) ease, box-shadow var(--motion-base, 220ms) ease, background-color var(--motion-base, 220ms) ease;
}

.custom-school-field input:hover,
.requirement-field-grid select:hover,
.requirement-field-grid input:hover { border-color: #8eb2d9; }

.custom-school-field input:focus,
.requirement-field-grid select:focus,
.requirement-field-grid input:focus {
  background: #fff;
  border-color: #3971d7;
  box-shadow: 0 0 0 4px rgba(57, 113, 215, .10);
}

.custom-school-match-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 10px;
  margin: -3px 0 13px;
  padding: 9px 11px;
  color: #60778e;
  background: #f7faff;
  border: 1px solid #d7e5f3;
  border-radius: 9px;
  font-size: 10px;
  line-height: 1.55;
}

.custom-school-match-note[data-tone="active"] {
  color: #286a51;
  background: #f0fbf5;
  border-color: #bfe5d1;
}

.custom-school-match-note[data-tone="pending"] {
  color: #795316;
  background: #fffaf0;
  border-color: #f0ddb2;
}

.custom-school-match-note > span { flex: 1 1 300px; min-width: 0; }

.custom-school-match-action {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 9px;
  color: #2864bb;
  background: #fff;
  border: 1px solid #aac9e9;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
}

.custom-school-match-action:hover:not(:disabled) {
  color: #184e9c;
  background: #edf6ff;
  border-color: #7faede;
}

.custom-school-saved-picker {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  margin: -3px 0 12px;
}

.custom-school-saved-picker label {
  flex: 0 0 auto;
  color: #75899c;
  font-size: 10px;
  font-weight: 800;
}

.custom-school-saved-picker select {
  min-width: 220px;
  max-width: 100%;
  min-height: 34px;
  padding: 0 30px 0 10px;
  color: #34536f;
  background: #f8fbff;
  border: 1px solid #cadced;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
}

.custom-school-saved-picker select:focus {
  outline: 0;
  border-color: #3971d7;
  box-shadow: 0 0 0 4px rgba(57, 113, 215, .10);
}

.custom-school-saved-picker select:disabled {
  cursor: not-allowed;
  opacity: .58;
}

.custom-school-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: -2px 0 13px;
}

.custom-school-actions .compact-button { min-height: 34px; }
.custom-school-actions .text-button {
  min-height: 34px;
  padding: 0 7px;
  color: #6f8398;
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: 10px;
  font-weight: 800;
}
.custom-school-actions .text-button:not(:disabled):hover { color: #b34b4b; background: rgba(255, 243, 243, .76); }
.custom-school-actions .compact-button:disabled { cursor: not-allowed; opacity: .48; }
.custom-saved-note { min-width: 0; color: #75899c; font-size: 9px; line-height: 1.45; }

.custom-copy-tool {
  margin: 0 0 14px;
  padding: 13px 14px;
  background: linear-gradient(145deg, rgba(237, 246, 255, .9), rgba(248, 251, 255, .96));
  border: 1px dashed #b9d0ea;
  border-radius: 13px;
}

.custom-copy-summary {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  list-style: none;
}
.custom-copy-summary::-webkit-details-marker { display: none; }
.custom-copy-summary > span:first-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.custom-copy-summary strong { color: #214d83; font-size: 11px; }
.custom-copy-summary small { margin-top: 3px; color: #71859a; font-size: 9px; font-weight: 600; }
.custom-copy-summary-chevron {
  color: #3971d7;
  font-size: 15px;
  transition: transform var(--motion-fast, 150ms) ease;
}
.custom-copy-tool[open] .custom-copy-summary-chevron { transform: rotate(180deg); }
.custom-copy-content { margin-top: 12px; }
.custom-copy-tool:not([open]) { padding-block: 10px; }

.custom-copy-head h4 { margin: 3px 0 0; color: #214d83; font-size: 12px; }
.custom-copy-head p:last-child { margin: 5px 0 0; color: #6d8298; font-size: 10px; line-height: 1.55; }
.custom-copy-controls {
  display: grid;
  grid-template-columns: minmax(150px, .7fr) minmax(0, 1.8fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 11px;
}
.custom-copy-controls > label,
.custom-copy-target-fieldset { min-width: 0; margin: 0 !important; color: #5e7489; font-size: 10px !important; font-weight: 800 !important; }
.custom-copy-controls select {
  display: block;
  width: 100%;
  min-height: 36px;
  margin-top: 5px;
  padding: 7px 9px;
  color: #17324f;
  background: rgba(255, 255, 255, .94);
  border: 1px solid #bfd2e6;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
}
.custom-copy-target-fieldset { padding: 0; border: 0; }
.custom-copy-target-fieldset legend { margin-bottom: 5px; color: #5e7489; font-size: 10px; font-weight: 800; }
.custom-copy-targets { display: flex; flex-wrap: wrap; gap: 6px; }
.custom-copy-targets label { position: relative; min-width: 0; cursor: pointer; }
.custom-copy-targets input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.custom-copy-targets label span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 9px;
  color: #55708d;
  background: rgba(255, 255, 255, .85);
  border: 1px solid #c7d9ec;
  border-radius: 999px;
  font-size: 10px;
  transition: border-color var(--motion-fast, 150ms) ease, background-color var(--motion-fast, 150ms) ease, color var(--motion-fast, 150ms) ease;
}
.custom-copy-targets label:hover span { border-color: #8eb2d9; }
.custom-copy-targets input:focus-visible + span { outline: 3px solid rgba(57, 113, 215, .16); outline-offset: 2px; }
.custom-copy-targets input:checked + span { color: #24579a; background: #fff; border-color: #3971d7; box-shadow: inset 0 0 0 1px rgba(57, 113, 215, .08); }
.custom-copy-target-actions { display: flex; flex-wrap: wrap; gap: 3px 8px; margin-top: 6px; }
.custom-copy-target-actions .text-button { min-height: 25px; padding: 0 3px; color: #3971d7; font-size: 9px; }
.custom-copy-target-actions .text-button:hover:not(:disabled) { color: #214d83; background: rgba(255, 255, 255, .7); }
.custom-copy-apply-actions { display: grid; min-width: 0; gap: 6px; align-self: stretch; }
.custom-copy-apply-actions .compact-button { width: 100%; min-height: 36px; }
.custom-copy-note { margin: 9px 0 0; color: #71859a; font-size: 9px; line-height: 1.5; }

.custom-guided-bar {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  margin: 15px 0 2px;
  padding: 13px 14px;
  background: linear-gradient(135deg, rgba(231, 241, 255, .96), rgba(246, 250, 255, .98));
  border: 1px solid #acc9e9;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(45, 83, 126, .07);
}
.custom-guided-bar[hidden] { display: none; }
.custom-guided-copy { display: flex; min-width: 0; flex: 1 1 260px; flex-direction: column; }
.custom-guided-copy > span { color: #3971d7; font-size: 9px; font-weight: 900; letter-spacing: .06em; }
.custom-guided-copy > strong { margin-top: 2px; color: #173f6c; font-size: 14px; }
.custom-guided-copy > small { margin-top: 3px; color: #687f96; font-size: 9px; line-height: 1.45; }
.custom-guided-actions {
  display: grid;
  width: min(100%, 455px);
  min-width: 0;
  flex: 0 1 455px;
  grid-template-columns: minmax(90px, 1fr) minmax(125px, 1.15fr) minmax(90px, 1fr);
  align-items: stretch;
  gap: 6px;
}
.custom-guided-actions .compact-button,
.custom-guided-actions .primary-button {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  margin: 0;
  padding-inline: 8px;
  line-height: 1.25;
  white-space: normal;
}
.custom-guided-actions #custom-guided-keep { color: #3d766c; background: #f7fcfa; border: 1px solid #b8ddd4; }
.custom-guided-actions #custom-guided-keep:hover:not(:disabled),
.custom-guided-actions #custom-guided-keep.is-confirmed { color: #28685d; background: #eaf8f4; border-color: #8fcbbb; }
.custom-guided-hidden { display: none !important; }
.custom-format-workbench[data-custom-view="guided"] #custom-filter-unset,
.custom-format-workbench[data-custom-view="guided"] #custom-next-unset { display: none; }
.custom-more-settings.is-guided-view { margin: 0; overflow: visible; background: transparent; border: 0; border-radius: 0; }
.custom-more-settings.is-guided-view > summary { display: none; }
.custom-more-settings.is-guided-view > .custom-more-body { padding: 0; border: 0; }
.custom-more-settings.is-guided-view .requirement-module:first-child { margin-top: 12px; }

.requirement-field-grid select:has(option:not([value="keep"]):checked),
.requirement-field-grid input:not(:placeholder-shown) {
  color: #174f96;
  background: #f7fbff;
  border-color: #6f9fda;
  box-shadow: inset 3px 0 0 #3971d7;
  font-weight: 800;
}

.requirement-module {
  min-width: 0;
  margin-top: 12px;
  padding: 15px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid #d1e0ef;
  border-radius: 14px;
  box-shadow: 0 5px 15px rgba(45, 83, 126, .045);
}

.requirement-module-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.requirement-module-title > div { flex: 1 1 auto; }
.custom-keep-button {
  min-height: 30px;
  padding: 0 8px;
  color: #5d7894;
  background: rgba(248, 251, 255, .82);
  border: 1px solid #c9dced;
  box-shadow: none;
  font-size: 9px;
  line-height: 1.2;
  white-space: nowrap;
}
.custom-keep-button:hover:not(:disabled) { color: #2f6a61; background: #f2fbf8; border-color: #a7d8cb; }
.custom-keep-button.is-confirmed { color: #2f7568; background: #effaf7; border-color: #a7d8cb; }

.requirement-module-title > span {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #4c83e1, #2e64c3);
  border-radius: 9px;
  box-shadow: 0 5px 11px rgba(46, 100, 195, .18);
  font-size: 10px;
  font-weight: 900;
}

.requirement-module-title > div { min-width: 0; }
.requirement-module-title h4 { margin: 0; color: #17324f; font-size: 13px; }
.requirement-module-title p { margin: 3px 0 0; color: #75899c; font-size: 9px; line-height: 1.45; }

.requirement-field-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.requirement-field-grid label {
  min-width: 0;
  margin: 0 !important;
  color: #5e7489;
  font-size: 10px !important;
  font-weight: 800 !important;
}

.requirement-field-grid label select,
.requirement-field-grid label input { display: block; margin-top: 6px; font-size: 11px; font-weight: 600; }
.secondary-requirement-modules { min-width: 0; }
.custom-more-body > .requirement-module:first-child { margin-top: 13px; }
.custom-paper-preview { padding: 16px; }

@media (max-width: 820px) {
  .requirement-field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .custom-safety-note { align-items: flex-start; flex-direction: column; gap: 2px; }
  .custom-view-switch { align-items: stretch; flex-direction: column; }
  .custom-view-switch > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .custom-view-switch button { min-height: 40px; padding-inline: 6px; }
  .custom-progress-head { align-items: stretch; flex-direction: column; }
  .custom-progress-actions { align-items: stretch; flex-direction: column; }
  .custom-progress-actions .compact-button { width: 100%; }
  .custom-progress-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .custom-school-saved-picker { align-items: stretch; flex-direction: column; gap: 5px; }
  .custom-school-saved-picker select { width: 100%; min-width: 0; min-height: 45px; }
  .custom-school-actions { align-items: stretch; flex-direction: column; }
  .custom-school-actions .compact-button { width: 100%; }
  .custom-copy-controls { grid-template-columns: 1fr; align-items: stretch; }
  .custom-copy-controls > .compact-button { width: 100%; }
  .custom-copy-targets { gap: 7px; }
  .custom-copy-targets label { flex: 1 1 calc(50% - 7px); }
  .custom-copy-targets label span { width: 100%; justify-content: center; }
  .custom-guided-bar { align-items: stretch; flex-direction: column; padding: 12px 11px; }
  .custom-guided-copy { flex: 0 0 auto; }
  .custom-guided-actions { display: grid; width: 100%; flex: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .custom-guided-actions .compact-button { width: 100%; min-width: 0; padding-inline: 6px; white-space: normal; }
  #custom-guided-prev { grid-column: 1; grid-row: 1; }
  #custom-guided-next { grid-column: 2; grid-row: 1; }
  #custom-guided-keep { grid-column: 1 / -1; grid-row: 2; }
  .requirement-module { padding: 13px 11px; }
  .requirement-field-grid { grid-template-columns: 1fr; gap: 9px; }
  .requirement-field-grid select,
  .requirement-field-grid input { min-height: 45px; }
  .custom-live-preview { padding: 11px; }
}

/* 2.8.19+ UI: keep the final format action visible while a long custom form is being reviewed. */
.format-workflow-actions {
  position: sticky;
  bottom: 12px;
  z-index: 5;
  align-items: center;
  margin-top: 26px;
  padding: 10px;
  background: rgba(255, 255, 255, .93);
  border: 1px solid rgba(197, 217, 235, .96);
  border-radius: 14px;
  box-shadow: 0 13px 30px rgba(36, 72, 113, .13);
  backdrop-filter: blur(12px);
}

.format-action-hint {
  flex: 1 1 220px;
  min-width: 0 !important;
  margin: 0 4px 0 2px;
  color: #6d8196;
  font-size: 10px;
  line-height: 1.45;
}

.format-workflow-actions .secondary-button,
.format-workflow-actions .primary-button {
  position: relative;
  z-index: 1;
}

@media (max-width: 560px) {
  .format-workflow-actions {
    right: 0;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 0;
    align-items: stretch;
    padding: 8px;
    border-radius: 13px;
  }

  .format-action-hint {
    flex-basis: auto;
    margin: 0 2px 2px;
    text-align: center;
  }

  .year-card:has(.format-workflow-actions) { padding-bottom: calc(156px + env(safe-area-inset-bottom)); }
  .requirement-module,
  .custom-more-settings { scroll-margin-bottom: 170px; }
  .requirement-module-title { align-items: flex-start; flex-wrap: wrap; }
  .requirement-module-title > div { flex: 1 1 calc(100% - 36px); }
  .custom-keep-button { margin-left: 36px; }
}

/* Mobile touch targets: keep novice-facing controls comfortably tappable. */
@media (max-width: 560px) {
  .faq-grid summary,
  #custom-format-workbench button,
  #custom-format-workbench summary,
  #custom-format-workbench select,
  #custom-format-workbench input[type="text"],
  #custom-format-workbench input[type="number"],
  #custom-format-workbench textarea,
  .custom-copy-targets label span {
    min-height: 44px;
  }

  .custom-requirement-head { flex-direction: column; gap: 8px; }
  .custom-requirement-file-row { align-items: stretch; flex-direction: column; }
  .custom-requirement-file-row button { width: 100%; }
  .custom-requirement-actions { align-items: stretch; }
  .custom-requirement-actions button { width: 100%; }
  .custom-requirement-results li { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .format-workflow-actions { backdrop-filter: none; }
}
