: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; }
body.splash-active { overflow: hidden; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }
.splash-screen { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; overflow: hidden; color: #eaf3ff; background: radial-gradient(circle at 50% 34%, #173c69 0%, #0d2443 48%, #07172d 100%); isolation: isolate; opacity: 1; transition: opacity .38s ease, visibility .38s ease; }
.splash-screen[hidden] { display: none; }
.splash-screen.is-exiting { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-content { position: relative; z-index: 2; display: grid; justify-items: center; width: min(360px, calc(100% - 48px)); text-align: center; animation: splash-content-in .7s cubic-bezier(.22,.8,.25,1) both; }
.splash-glow { position: absolute; z-index: -1; width: 42vw; height: 42vw; min-width: 280px; min-height: 280px; border-radius: 50%; filter: blur(12px); opacity: .32; pointer-events: none; }
.splash-glow-one { top: -18%; left: -9%; background: #2d72d9; animation: splash-glow-drift 5s ease-in-out infinite alternate; }
.splash-glow-two { right: -15%; bottom: -22%; background: #2ba28d; opacity: .2; animation: splash-glow-drift 6s ease-in-out -1.2s infinite alternate-reverse; }
.splash-document { position: relative; width: 104px; height: 132px; padding: 14px 13px; overflow: hidden; border: 1px solid rgba(214,232,255,.6); border-radius: 11px; background: linear-gradient(150deg, rgba(255,255,255,.98), rgba(224,239,255,.9)); box-shadow: 0 23px 50px rgba(1,14,31,.35), 0 0 0 8px rgba(143,195,255,.08); transform: translateY(0) rotate(-2deg); animation: splash-document-float 2.8s ease-in-out .2s infinite; }
.splash-document::after { position: absolute; inset: 0; background: linear-gradient(110deg, transparent 18%, rgba(255,255,255,.75) 47%, transparent 70%); content: ""; transform: translateX(-130%); animation: splash-paper-sheen 1.4s ease-out .35s both; }
.splash-document-top { display: flex; gap: 4px; margin-bottom: 17px; }
.splash-document-top span { width: 4px; height: 4px; border-radius: 50%; background: #94afd1; }
.splash-document-title, .splash-document-line { height: 4px; margin-bottom: 9px; border-radius: 99px; background: #8ea8c8; transform-origin: left center; animation: splash-line-draw .45s ease-out both; }
.splash-document-title { width: 52%; height: 7px; margin-bottom: 17px; background: #365f97; animation-delay: .18s; }
.splash-document-line { width: 88%; animation-delay: .28s; }
.splash-document-line.wide { width: 100%; animation-delay: .38s; }
.splash-document-line.short { width: 63%; animation-delay: .48s; }
.splash-document-check { position: absolute; right: 10px; bottom: 10px; display: grid; width: 29px; height: 29px; place-items: center; color: #fff; border: 3px solid #d8f7ee; border-radius: 50%; background: #2b9b7b; box-shadow: 0 7px 15px rgba(31,121,96,.3); font-size: 18px; font-weight: 800; line-height: 1; opacity: 0; transform: scale(.45) rotate(-15deg); animation: splash-check-pop .52s cubic-bezier(.2,1.4,.4,1) .72s forwards; }
.splash-kicker { margin: 25px 0 7px; color: #a9c7e8; font-size: 11px; font-weight: 700; letter-spacing: .18em; }
.splash-brand { color: #fff; font-size: clamp(34px, 9vw, 48px); font-weight: 800; letter-spacing: .12em; line-height: 1; text-shadow: 0 5px 20px rgba(69,151,239,.25); }
.splash-tagline { margin: 13px 0 22px; color: #b7cae0; font-size: 12px; letter-spacing: .08em; }
.splash-progress { width: 116px; height: 3px; overflow: hidden; border-radius: 999px; background: rgba(182,211,244,.18); }
.splash-progress span { display: block; width: 42%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #72b8ff, #66dec1); box-shadow: 0 0 12px rgba(105,210,208,.7); transform: translateX(-120%); animation: splash-progress-run 1.02s cubic-bezier(.4,0,.2,1) .04s forwards; }
.splash-skip { margin-top: 25px; padding: 6px 10px; color: #a9c7e8; border: 0; border-radius: 999px; background: transparent; font-size: 11px; cursor: pointer; opacity: .8; transition: color .2s ease, background .2s ease, opacity .2s ease; }
.splash-skip:hover, .splash-skip:focus-visible { color: #fff; background: rgba(255,255,255,.1); opacity: 1; outline: 0; }
@keyframes splash-content-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes splash-document-float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-5px) rotate(1deg); } }
@keyframes splash-paper-sheen { to { transform: translateX(130%); } }
@keyframes splash-line-draw { from { opacity: 0; transform: scaleX(0); } to { opacity: 1; transform: scaleX(1); } }
@keyframes splash-check-pop { to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes splash-progress-run { to { transform: translateX(310%); } }
@keyframes splash-glow-drift { from { transform: translate3d(-2%, -1%, 0) scale(.96); } to { transform: translate3d(5%, 4%, 0) scale(1.04); } }
.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-applicability { margin: -7px 0 15px; padding: 10px 11px; color: #50677f; background: linear-gradient(145deg, #f8fbff, #f0f6fd); border: 1px solid #d4e3f3; border-radius: 10px; font-size: 10px; line-height: 1.5; }
.profile-applicability[hidden] { display: none !important; }
.profile-applicability-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.profile-applicability-head strong { color: #294e79; font-size: 11px; }
.profile-applicability-head span { padding: 2px 6px; color: #7a5b19; background: #fff7dc; border: 1px solid #ead79e; border-radius: 999px; font-size: 9px; font-weight: 800; }
.profile-applicability-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 8px; }
.profile-applicability-grid span { min-width: 0; overflow-wrap: anywhere; }
.profile-applicability-grid b { margin-right: 4px; color: #7890aa; font-weight: 700; }
.profile-applicability small { display: block; margin-top: 7px; color: #71849a; line-height: 1.55; }
.profile-source { margin: -8px 0 15px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.profile-source a { color: var(--blue); }
.pending-profile-shortcuts { display: grid; gap: 9px; margin: -6px 0 15px; padding: 11px 12px; background: linear-gradient(145deg, #f7fbff, #eef5ff); border: 1px solid #cfe0f5; border-radius: 12px; }
.pending-profile-shortcuts[hidden] { display: none !important; }
.pending-profile-shortcuts-head strong, .pending-profile-shortcuts-head span { display: block; }
.pending-profile-shortcuts-head strong { color: #244f91; font-size: 11px; }
.pending-profile-shortcuts-head span { margin-top: 3px; color: #647b97; font-size: 10px; line-height: 1.55; }
.pending-profile-shortcut-list { display: grid; gap: 7px; }
.pending-profile-shortcut-item { min-width: 0; }
.pending-profile-shortcut { display: block; width: 100%; padding: 9px 10px; color: var(--ink); text-align: left; background: rgba(255,255,255,.86); border: 1px solid #c9dcf3; border-radius: 9px; cursor: pointer; transition: border-color .18s ease, background-color .18s ease, transform .18s ease; }
.pending-profile-shortcut:hover { background: #fff; border-color: #86afe0; transform: translateY(-1px); }
.pending-profile-shortcut strong, .pending-profile-shortcut small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pending-profile-shortcut strong { color: #214c8e; font-size: 11px; }
.pending-profile-shortcut small { margin-top: 3px; color: #6b7f98; font-size: 10px; line-height: 1.45; }
.school-format-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .9fr); gap: 18px; align-items: start; }
.school-format-layout > #school-format-fields { min-width: 0; }
.school-requirement-review { min-width: 0; padding: 17px; background: linear-gradient(155deg, #fffdf5, #fff9e7); border: 1px solid #ead49a; border-radius: 16px; box-shadow: 0 9px 28px rgba(118, 85, 12, .08); }
.school-requirement-review[hidden] { display: none !important; }
.school-requirement-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.school-requirement-head h3 { margin: 2px 0 0; color: #3f3215; font-size: 18px; }
.school-requirement-head > span { flex: 0 0 auto; padding: 5px 8px; color: #765210; background: #fff; border: 1px solid #dfc77e; border-radius: 999px; font-size: 10px; font-weight: 900; }
.school-requirement-status { margin: 12px 0 4px; color: #55451f; font-size: 12px; font-weight: 800; line-height: 1.55; }
.school-requirement-scope { margin: 0 0 12px; color: #786b4b; font-size: 10px; line-height: 1.55; }
.school-requirement-list { display: grid; gap: 8px; max-height: 380px; overflow: auto; padding-right: 4px; }
.school-requirement-section { padding: 10px 11px; background: rgba(255,255,255,.78); border: 1px solid rgba(218,190,112,.62); border-radius: 11px; }
.school-requirement-section strong { display: block; margin-bottom: 5px; color: #493813; font-size: 12px; }
.school-requirement-section ul { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; list-style: none; }
.school-requirement-section li { padding: 4px 7px; color: #5f5438; background: #fffdf7; border: 1px solid #eee0b9; border-radius: 7px; font-size: 10px; line-height: 1.35; }
.school-requirement-warning { margin: 12px 0; padding: 9px 10px; color: #7a5209; background: #fff; border-left: 3px solid #dba62b; border-radius: 7px; font-size: 10px; line-height: 1.6; }
.school-requirement-confirm { display: flex; align-items: flex-start; gap: 9px; margin: 0 0 11px; padding: 10px; background: #fff; border: 1px solid #ddc782; border-radius: 11px; cursor: pointer; }
.school-requirement-confirm input { width: 17px; height: 17px; flex: 0 0 auto; margin: 1px 0 0; accent-color: #2d70d7; }
.school-requirement-confirm strong, .school-requirement-confirm small { display: block; }
.school-requirement-confirm strong { color: #3f3215; font-size: 12px; }
.school-requirement-confirm small { margin-top: 3px; color: #796b49; font-size: 10px; line-height: 1.5; }
.school-requirement-review > button { width: 100%; }
.school-override-context { margin-bottom: 14px; padding: 11px 12px; color: #285d54; background: #eef9f6; border: 1px solid #abd6cb; border-radius: 11px; }
.school-override-context strong, .school-override-context span { display: block; }
.school-override-context strong { font-size: 12px; }
.school-override-context span { margin-top: 3px; font-size: 10px; line-height: 1.55; }
.school-override-tools { display: grid; gap: 14px; margin: 15px 0; }
.school-override-tools[hidden] { display: none !important; }
.school-override-shortcuts,
.school-comparison-head,
.school-override-reason-box,
.custom-recent-profile,
.result-account-optional { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px; background: #f7faff; border: 1px solid #cfdbeb; border-radius: 13px; }
.school-override-shortcuts strong,
.school-override-shortcuts small,
.custom-recent-profile strong,
.custom-recent-profile small,
.result-account-optional strong,
.result-account-optional small { display: block; }
.school-override-shortcuts strong,
.custom-recent-profile strong,
.result-account-optional strong { color: #244e77; font-size: 11px; }
.school-override-shortcuts small,
.custom-recent-profile small,
.result-account-optional small { margin-top: 3px; color: #71869a; font-size: 9px; line-height: 1.5; }
.school-override-shortcuts > div:last-child,
.school-comparison-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.school-override-shortcuts button,
.school-comparison-actions button { min-height: 31px; padding: 6px 9px; color: #3c6185; background: #fff; border: 1px solid #c8d6e6; border-radius: 8px; font: inherit; font-size: 9px; font-weight: 800; cursor: pointer; }
.school-override-shortcuts button:hover,
.school-comparison-actions button:hover,
.school-comparison-actions button.is-active { color: #fff; background: #315f99; border-color: #315f99; }
.school-comparison-head { align-items: flex-start; background: linear-gradient(150deg, #f4f8ff, #fff); }
.school-comparison-head h4 { margin: 2px 0 4px; color: #244e77; font-size: 15px; }
.school-comparison-head p:not(.card-kicker) { margin: 0; color: #71869a; font-size: 10px; line-height: 1.6; }
.school-comparison-table { overflow: hidden; border: 1px solid #cbd9e9; border-radius: 13px; }
.school-comparison-row { display: grid; grid-template-columns: minmax(120px, .9fr) minmax(135px, 1fr) minmax(190px, 1.25fr); align-items: center; min-height: 49px; border-top: 1px solid #e4ebf4; }
.school-comparison-row:first-child { border-top: 0; }
.school-comparison-row > span,
.school-comparison-row > div { min-width: 0; padding: 9px 11px; }
.school-comparison-header { min-height: 36px; color: #5d7690; background: #eef4fb; font-size: 9px; font-weight: 900; }
.school-comparison-item strong,
.school-comparison-item small { display: block; }
.school-comparison-item strong { color: #2b4f72; font-size: 10px; }
.school-comparison-item small { margin-top: 2px; color: #8191a3; font-size: 8px; }
.school-comparison-default { color: #45637f; font-size: 10px; line-height: 1.5; }
.school-comparison-default.is-uncertain { color: #986325; }
.school-comparison-adopted { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.school-comparison-adopted span { color: #315f54; font-size: 10px; font-weight: 800; line-height: 1.45; }
.school-comparison-adopted > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.school-comparison-adopted button { flex: 0 0 auto; min-height: 28px; padding: 5px 8px; color: #5d7690; background: #fff; border: 1px solid #cbd9e9; border-radius: 7px; font: inherit; font-size: 8px; font-weight: 800; cursor: pointer; }
.school-comparison-row.is-changed { background: #f2fbf7; }
.school-comparison-row.is-review { background: #fffaf0; }
.school-comparison-row[hidden] { display: none !important; }
.custom-format-workbench .requirement-module.school-focus-hidden { display: none !important; }
.school-override-reason-box { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(170px, .8fr) minmax(220px, 1.2fr); align-items: end; background: #fffaf0; border-color: #e8d7aa; }
.school-override-reason-box > div strong,
.school-override-reason-box > div small { display: block; }
.school-override-reason-box > div strong { color: #795a20; font-size: 11px; }
.school-override-reason-box > div small { margin-top: 3px; color: #927c52; font-size: 9px; line-height: 1.5; }
.school-override-reason-box label { color: #5b6f83; font-size: 9px; font-weight: 800; }
.school-override-reason-box select,
.school-override-reason-box input { width: 100%; min-height: 36px; margin-top: 6px; padding: 7px 9px; color: #263f57; background: #fff; border: 1px solid #cbd9e9; border-radius: 8px; font: inherit; font-size: 10px; }
.custom-recent-profile { margin: 13px 0; background: #f2faf7; border-color: #b9dcd1; }
.custom-school-scope-grid { display: grid; grid-template-columns: 1fr .55fr; gap: 10px; }
.result-format-change-summary { margin: 15px 0; padding: 15px; background: #f7fbff; border: 1px solid #cadbed; border-radius: 14px; }
.result-format-change-summary[hidden], .result-account-optional[hidden] { display: none !important; }
.result-format-change-summary h3 { margin: 2px 0 4px; color: #244e77; font-size: 15px; }
.result-format-change-summary > div > p:not(.card-kicker) { margin: 0; color: #6c8298; font-size: 10px; }
#result-format-change-list { display: grid; gap: 7px; margin-top: 11px; }
.result-format-change-row { display: grid; grid-template-columns: minmax(120px, .8fr) minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; padding: 9px 10px; background: #fff; border: 1px solid #dae4ef; border-radius: 9px; }
.result-format-change-row strong { color: #315371; font-size: 9px; }
.result-format-change-row span { min-width: 0; color: #526c84; font-size: 9px; line-height: 1.45; }
.result-format-change-row b { color: #3b806d; font-size: 11px; }
.confirm-dialog.start-confirm-dialog { width: min(900px, calc(100vw - 28px)); max-height: calc(100vh - 24px); }
.start-confirm-dialog form { grid-template-columns: auto minmax(0, 1fr); max-height: calc(100vh - 24px); overflow-y: auto; }
.confirm-dialog-icon.safe { color: #276f60; background: #e9f7f2; border-color: #a8d5c8; }
.start-confirm-summary { margin-top: 13px; padding: 12px 13px; color: #315371; background: #f4f8fc; border-radius: 10px; font-size: 13px; font-weight: 800; line-height: 1.65; }
.start-confirm-list { display: grid; gap: 7px; max-height: 230px; margin: 11px 0 0; padding: 0; overflow: auto; list-style: none; }
.start-confirm-list li { padding: 9px 11px; color: #526c84; background: #fff; border: 1px solid #dbe4ee; border-radius: 9px; font-size: 12px; line-height: 1.6; }
.start-confirm-list li b { color: #315f54; }
.start-confirm-check { display: flex; align-items: flex-start; gap: 10px; margin-top: 13px; padding: 12px; color: #3f5b73; background: #f3fbf8; border: 1px solid #bfddd4; border-radius: 10px; font-size: 12px; font-weight: 800; line-height: 1.65; }
.start-confirm-check input { width: 18px; height: 18px; flex: 0 0 auto; margin: 1px 0 0; accent-color: #2f7d69; }
.heading-review-panel { margin-top: 14px; padding: 14px; background: #fbfdff; border: 1px solid #d6e3ef; border-radius: 12px; }
.heading-review-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.heading-review-head h3 { margin: 0; color: #294d6e; font-size: 16px; }
.heading-review-head p { margin: 4px 0 0 !important; color: #667f96 !important; font-size: 12px !important; line-height: 1.6 !important; }
.heading-review-count { flex: 0 0 auto; padding: 4px 9px; color: #2f6c5e; background: #eaf7f3; border-radius: 999px; font-size: 11px; font-weight: 900; }
.heading-review-empty { margin-top: 11px; padding: 11px 12px; color: #587087; background: #f3f7fb; border-radius: 9px; font-size: 12px; line-height: 1.6; }
.heading-review-list { display: grid; gap: 8px; max-height: 290px; margin-top: 11px; overflow-y: auto; }
.heading-review-row { display: grid; grid-template-columns: 54px minmax(0, 1fr) minmax(125px, .42fr); align-items: center; gap: 10px; padding: 10px; background: #fff; border: 1px solid #dce6ef; border-radius: 10px; }
.heading-review-row.needs-review { background: #fffaf0; border-color: #ecd7a4; }
.heading-review-index { color: #70869a; font-size: 11px; font-weight: 900; }
.heading-review-text { min-width: 0; }
.heading-review-text strong { display: block; overflow: hidden; color: #29445d; font-size: 13px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.heading-review-text small { display: block; margin-top: 3px; color: #75899c; font-size: 10px; line-height: 1.45; }
.heading-review-row.needs-review .heading-review-text small { color: #8b692e; }
.heading-review-select { width: 100%; min-height: 38px; padding: 7px 9px; color: #27425a; background: #fff; border: 1px solid #bdcede; border-radius: 8px; font: inherit; font-size: 12px; }
.confidence-badge { display: inline-flex; width: fit-content; margin-top: 3px; padding: 2px 6px; color: #276f60; background: #eaf7f3; border-radius: 999px; font-size: 8px; font-style: normal; font-weight: 900; }
.confidence-badge.medium { color: #8a6324; background: #fff5dc; }
.confidence-badge.low { color: #9b4e58; background: #fff0f1; }

@media (max-width: 720px) {
  .school-override-shortcuts,
  .school-comparison-head,
  .custom-recent-profile,
  .result-account-optional { align-items: stretch; flex-direction: column; }
  .school-comparison-row { grid-template-columns: minmax(92px, .75fr) minmax(105px, 1fr) minmax(135px, 1.2fr); }
  .school-comparison-row > span,
  .school-comparison-row > div { padding: 8px 7px; }
  .school-comparison-adopted { align-items: flex-start; flex-direction: column; }
  .school-comparison-adopted > div { justify-content: flex-start; }
  .school-override-reason-box { grid-template-columns: 1fr; }
  .custom-school-scope-grid { grid-template-columns: 1fr; }
  .result-format-change-row { grid-template-columns: 1fr auto 1fr; }
  .result-format-change-row strong { grid-column: 1 / -1; }
  .start-confirm-dialog form { grid-template-columns: 1fr; }
  .start-confirm-dialog .confirm-dialog-icon { display: none; }
  .heading-review-row { grid-template-columns: 48px minmax(0, 1fr); }
  .heading-review-select { grid-column: 1 / -1; }
}
.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 > div { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px 10px; }
.pagination-preview-head span { color: var(--blue-dark); white-space: nowrap; }
.pagination-preview-link { color: var(--blue-dark); font-weight: 700; text-decoration: none; white-space: nowrap; }
.pagination-preview-link:hover { text-decoration: underline; }
.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; }
.account-admin-link { display: inline-flex; align-items: center; min-height: 34px; padding: 0 10px; color: #1f5fbf; background: #eef5ff; border: 1px solid #cbdff7; border-radius: 9px; font-size: 11px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.account-admin-link[hidden] { display: none; }
.account-admin-link:hover { color: #174b97; border-color: #9bbfea; background: #e5f0ff; }
.account-admin-link > span { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 6px; padding: 0 5px; color: #fff; background: #e5484d; border-radius: 999px; font-size: 9px; line-height: 1; }
.account-admin-link > span[hidden] { display: none; }
.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; }
  .profile-applicability-grid { grid-template-columns: 1fr; }
  .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) {
  .school-format-layout { grid-template-columns: 1fr; }
  .school-requirement-list { max-height: none; }
  .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: 7px; color: #9b4650; font-size: 12px; }
.confirm-dialog h2 { font-size: 22px; letter-spacing: -.02em; }
.confirm-dialog p:not(.card-kicker) { margin: 9px 0 0; color: var(--muted); font-size: 14px; 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; }

.machine-assisted-preview-note {
  display: grid;
  gap: 4px;
  margin: 0 0 12px;
  padding: 11px 12px;
  color: #315b49;
  background: linear-gradient(145deg, #effaf5, #f8fdfb);
  border: 1px solid #a8d8c3;
  border-radius: 11px;
  font-size: 10px;
  line-height: 1.55;
}
.machine-assisted-preview-note[hidden] { display: none !important; }
.machine-assisted-preview-note strong { color: #196348; font-size: 11px; }
.machine-assisted-preview-note span { color: #587568; }

.custom-auto-save-note {
  margin: -4px 0 12px;
  color: #71859a;
  font-size: 9px;
  line-height: 1.45;
}

.custom-requirement-import {
  margin: 14px 0 16px;
  padding: 15px;
  background: linear-gradient(145deg, rgba(235, 245, 255, .96), rgba(250, 253, 255, .98));
  border: 1px solid #a9c9e9;
  border-radius: 14px;
  box-shadow: 0 9px 24px rgba(45, 83, 126, .07);
}
.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 .card-kicker { color: #3971d7; }
.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-skip-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  margin: 0 0 10px;
  padding: 0 10px;
  color: #315f9b;
  background: #fff;
  border: 1px solid #c8d9eb;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
}
.custom-requirement-skip-link:hover { background: #f5f9ff; border-color: #8db0d7; }
.custom-requirement-skip-link:focus-visible { outline: 3px solid rgba(57, 113, 215, .18); outline-offset: 2px; }
.custom-requirement-skip-link span { font-size: 14px; }
.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 .compact-button,
.custom-requirement-actions .primary-button { width: auto; margin: 0; }
.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-manual-heading {
  display: grid;
  gap: 4px;
  margin: 18px 0 9px;
  padding-top: 17px;
  border-top: 1px solid #dce7f2;
}
.custom-manual-heading .card-kicker { margin: 0; }
.custom-manual-heading > strong { color: #294f78; font-size: 14px; }
.custom-manual-heading > span { color: #6f8498; font-size: 11px; 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-match-action + .custom-school-match-action {
  margin-left: 2px;
}

.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-requirement-import { margin-inline: -1px; padding: 13px 11px; }
  .custom-requirement-head { align-items: stretch; flex-direction: column; gap: 8px; }
  .custom-requirement-head > span { align-self: flex-start; }
  .custom-requirement-file-row { align-items: stretch; flex-direction: column; }
  .custom-requirement-file-row .compact-button { width: 100%; min-height: 45px; }
  .custom-requirement-actions { align-items: stretch; flex-direction: column; }
  .custom-requirement-actions .compact-button { width: 100%; min-height: 45px; }
  .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; }
}

/* Keep the final action in normal document flow. A bottom-sticky bar appears
   before its DOM position and covers school selectors on short mobile screens. */
.format-workflow-actions {
  position: static;
  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 {
    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: 20px; }
  .requirement-module-title { align-items: flex-start; flex-wrap: wrap; }
  .requirement-module-title > div { flex: 1 1 calc(100% - 36px); }
  .custom-keep-button {
    width: calc(100% - 36px);
    max-width: calc(100% - 36px);
    min-width: 0;
    margin-left: 36px;
    white-space: normal;
  }
}

/* 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; }
}

/* Account sign-in is part of the existing one-page workflow. */
.account-controls { display: flex; align-items: center; margin-left: 8px; }
.account-controls button {
  min-height: 38px;
  padding: 0 12px;
  color: #315a9f;
  background: #f4f8ff;
  border: 1px solid #ccdaec;
  border-radius: 10px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}
.account-controls button:hover { color: #204b96; background: #eaf2ff; border-color: #aac2e2; }
.account-user-actions { display: flex; align-items: center; gap: 7px; }
.account-user-actions[hidden] { display: none; }
.account-email {
  max-width: 180px;
  overflow: hidden;
  color: #526b85;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-logout-button { padding-inline: 9px !important; color: #7a5260 !important; background: #fffafa !important; }

.auth-dialog {
  width: min(520px, calc(100% - 28px));
  padding: 0;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d4e1ef;
  border-radius: 20px;
  box-shadow: 0 28px 80px rgba(23, 54, 91, .24);
}
.auth-dialog::backdrop { background: rgba(17, 39, 68, .42); backdrop-filter: blur(5px); }
.auth-dialog form { display: grid; gap: 11px; margin: 0; padding: 26px; }
.auth-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.auth-dialog-head .card-kicker { margin-bottom: 5px; }
.auth-dialog-head h2 { font-size: 22px; }
.auth-close-button {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  color: #60758b;
  background: #f5f8fc;
  border: 1px solid #d8e2ed;
  border-radius: 11px;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.auth-dialog-description { margin: 0 0 3px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.auth-dialog label { color: #405b76; font-size: 11px; font-weight: 800; }
.auth-field-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
.auth-field-row .primary-button,
.auth-field-row .secondary-button { min-width: 116px; }
.auth-input {
  width: 100%;
  min-height: 45px;
  padding: 0 13px;
  color: var(--ink);
  background: #fbfdff;
  border: 1px solid #c9d9ea;
  border-radius: 11px;
  outline: none;
}
.auth-input:focus { border-color: #5e8de4; box-shadow: 0 0 0 3px rgba(55, 111, 230, .12); }
.auth-invite-stage { display: grid; gap: 8px; padding: 12px; background: #f5f9ff; border: 1px solid #d4e2f2; border-radius: 12px; }
.auth-invite-stage[hidden] { display: none; }
.auth-invite-stage small { color: #647b91; font-size: 10px; line-height: 1.55; }
.auth-invite-stage small.is-development { color: #765715; }
.auth-invite-input { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
#auth-code-stage { display: grid; gap: 9px; }
#auth-code-stage[hidden] { display: none; }
.auth-code-input { letter-spacing: .22em; font-size: 16px; font-weight: 800; }
.auth-code-note { margin: 0; color: #6b8095; font-size: 10px; line-height: 1.55; }
.auth-code-note.is-development { color: #765715; padding: 8px 10px; background: #fff8dd; border: 1px solid #ead590; border-radius: 9px; }

@media (max-width: 900px) {
  .topnav a:not(.nav-cta) { display: none; }
  .account-email { max-width: 120px; }
}

@media (max-width: 560px) {
  .topbar { gap: 8px; }
  .brand { min-width: 0; }
  .brand-name small, .version-badge { display: none; }
  .account-controls { margin-left: auto; }
  .account-email, .account-task-button { display: none; }
  .account-controls button { min-height: 40px; padding-inline: 10px; }
  .mobile-upload-link { min-height: 40px; padding-inline: 10px; }
  .auth-dialog form { padding: 21px 17px 18px; }
  .auth-field-row { grid-template-columns: 1fr; }
  .auth-field-row .primary-button,
  .auth-field-row .secondary-button { width: 100%; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-dialog::backdrop { backdrop-filter: none; }
}

/* Homepage: primary upload, compact account entry, and a separate sharing band. */
.homepage-hero.section-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: start;
  column-gap: clamp(28px, 4vw, 54px);
  row-gap: 30px;
  min-height: auto;
  padding: 48px clamp(28px, 4.5vw, 60px) 38px;
  background: linear-gradient(140deg, #fff 8%, #f6f9fe 65%, #f1f7fc);
}
.homepage-hero::before, .homepage-hero::after { display: none; }
.homepage-hero .hero-copy { align-self: start; max-width: none; min-width: 0; padding-top: 5px; }
.homepage-hero .hero-copy .eyebrow { margin-bottom: 20px; padding: 7px 10px; border-color: #dce8f6; background: #f2f6fd; box-shadow: none; font-size: 11px; letter-spacing: .02em; }
.homepage-hero h1 { font-size: clamp(32px, 4.1vw, 54px); line-height: 1.26; letter-spacing: -.045em; }
.homepage-hero h1 span { color: #315fd8; background: none; -webkit-text-fill-color: currentColor; }
.homepage-hero .hero-lede { margin: 18px 0 23px; color: #63748a; font-size: 14px; line-height: 1.85; }
.homepage-hero .steps { width: 100%; max-width: none; margin: 0; padding: 12px 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; font-size: 11px; }
.homepage-hero .steps span { justify-content: flex-start; gap: 7px; padding: 0 4px; white-space: nowrap; }
.homepage-hero .steps span:first-child { padding-left: 0; }
.homepage-hero .steps span:not(:last-of-type)::after { content: ''; height: 1px; width: 10px; right: 3px; background: #ccd9ed; }
.homepage-hero .steps b { width: 22px; height: 22px; border-radius: 7px; color: #426ac3; background: #eaf0fc; box-shadow: none; font-size: 10px; }
.homepage-hero .hero-trust { gap: 12px; margin-top: 13px; font-size: 10px; }
.homepage-hero .hero-trust i { width: 16px; height: 16px; background: #e9f5ef; box-shadow: none; }
.homepage-hero .hero-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; margin-top: 22px; padding-top: 17px; background: transparent; border: 0; border-top: 1px solid #dfe7f1; border-radius: 0; box-shadow: none; backdrop-filter: none; }
.homepage-hero .hero-metrics div { padding: 0 16px; border-color: #dfe7f1; }
.homepage-hero .hero-metrics div:first-child { padding-left: 0; }
.homepage-hero .hero-metrics strong { color: #243e5d; font-size: 21px; line-height: 1.25; letter-spacing: -.02em; }
.homepage-hero .hero-metrics span { margin-top: 5px; font-size: 10px; }
.homepage-hero .upload-stage { align-self: start; max-width: none; }
.homepage-hero .upload-stage::before, .homepage-hero .upload-stage::after { display: none; }
.homepage-hero .upload-card { padding: 26px; border: 1px solid #d9e3ef; border-radius: 22px; background: #fff; box-shadow: 0 12px 36px rgba(31, 58, 97, .07); }
.homepage-hero .upload-card::before, .homepage-hero .upload-card::after { display: none; }
.homepage-hero .upload-card h2 { font-size: 22px; letter-spacing: -.02em; }
.homepage-hero .card-kicker { font-size: 10px; letter-spacing: .08em; }
.homepage-hero .upload-status { font-size: 11px; padding: 9px 11px; background: #f7f9fc; border-color: #e8edf4; }
.homepage-hero .drop-zone { min-height: 182px; padding: 20px 15px; border: 1px dashed #a8bee0; border-radius: 15px; background: #f5f8fe; box-shadow: none; }
.homepage-hero .drop-zone:hover, .homepage-hero .drop-zone.dragover { background: #eef4ff; border-color: #4c77d1; }
.homepage-hero .drop-zone.ready { background: #effaf4; border-color: #69af8d; }
.homepage-hero .upload-file-icon { width: 43px; height: 50px; margin-bottom: 12px; box-shadow: 0 5px 15px rgba(49, 95, 216, .07); }
.homepage-hero .support-details { margin-top: 16px; border-radius: 11px; box-shadow: none; }
.homepage-hero .attention-action { animation: none; }
.homepage-hero .attention-action::after { animation: none; display: none; }
.homepage-access { display: grid; gap: 0; min-width: 0; margin-top: 22px; background: rgba(255,255,255,.88); border: 1px solid #dce5f1; border-radius: 16px; overflow: hidden; }
.homepage-access-copy { min-width: 0; }
.homepage-access-copy strong, .homepage-access-copy span { display: block; }
.homepage-access-copy strong { color: #233e5c; font-size: 14px; font-weight: 700; }
.homepage-access-copy span { margin-top: 5px; color: #63748a; font-size: 11px; line-height: 1.65; }
.homepage-access-actions { display: flex; align-items: center; gap: 10px; padding: 17px; }
.homepage-access-actions .homepage-access-copy { flex: 1; }
.homepage-entry-icon { display: grid; place-items: center; flex: 0 0 36px; height: 40px; color: #5078c1; background: #edf3fc; border-radius: 10px; }
.homepage-entry-icon svg { width: 22px; height: 22px; }
.homepage-access-button { flex-shrink: 0; width: auto; min-height: 42px; margin: 0; padding: 10px 15px; font-size: 12px; line-height: 1.4; border-radius: 10px; white-space: nowrap; box-shadow: none; }
.homepage-access-button.primary-button { color: #fff; background: #3566ce; box-shadow: 0 4px 10px rgba(49,95,216,.12); }
.homepage-access-button.secondary-button { color: #365d9a; background: #fff; border-color: #cddbeb; }
.homepage-access-button.secondary-button:hover { color: #244fb3; background: #f0f5fd; border-color: #adc4e5; }
.homepage-invite-form { display: grid; gap: 9px; margin: 0; padding: 14px 17px 16px; border-top: 1px solid #e6ecf4; background: #f9fbfe; }
.homepage-invite-form[hidden], .homepage-account-note[hidden] { display: none; }
.homepage-invite-form label { color: #536780; font-size: 11px; font-weight: 600; }
.homepage-invite-row { display: flex; gap: 8px; }
.homepage-invite-row input { flex: 1; min-width: 0; min-height: 42px; padding: 9px 12px; border-radius: 10px; border-color: #d8e2ef; font-size: 12px; font-weight: 600; letter-spacing: .035em; }
.homepage-invite-form small, .homepage-account-note { margin: 0; color: #647b91; font-size: 10px; line-height: 1.6; overflow-wrap: anywhere; }
.homepage-account-note { padding: 0 17px 15px; }
.upload-access-note { margin: 9px 0; color: #647b91; font-size: 10px; line-height: 1.6; }
.homepage-share { position: relative; display: grid; grid-column: 1 / -1; min-width: 0; padding: 27px 29px 23px; overflow: hidden; background: linear-gradient(180deg, #fff 0%, #fbfcff 100%); border: 1px solid #d7e0ec; border-radius: 20px; box-shadow: 0 16px 42px rgba(31, 54, 88, .08); }
.homepage-share::before { position: absolute; inset: 0 0 auto; height: 4px; content: ""; background: linear-gradient(90deg, #234d8e 0%, #3b70ba 55%, #6c91c5 100%); }
.homepage-share-main { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-width: 0; }
.homepage-share-heading { display: flex; align-items: center; gap: 17px; min-width: 0; }
.homepage-share-copy { min-width: 0; }
.homepage-share-kicker { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 7px; color: #315f9a; font-size: 10px; font-weight: 750; letter-spacing: .08em; }
.homepage-share-kicker i { width: 7px; height: 7px; background: #2c6fbc; border: 2px solid #dbe9fa; border-radius: 50%; box-sizing: content-box; }
.homepage-share-icon { display: grid; place-items: center; width: 54px; height: 58px; flex-shrink: 0; color: #fff; background: linear-gradient(145deg, #254d8b, #3971ba); border: 1px solid rgba(24,65,124,.35); border-radius: 15px; box-shadow: 0 9px 22px rgba(38, 82, 146, .18); }
.homepage-share-icon svg { width: 32px; height: 32px; }
.homepage-share .homepage-access-copy strong { color: #173659; font-size: 20px; letter-spacing: -.025em; }
.homepage-share .homepage-share-description { max-width: 580px; margin-top: 6px; color: #5e7085; font-size: 12px; line-height: 1.7; }
.homepage-share-actions { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; gap: 9px; }
.homepage-share-actions .homepage-access-button { min-width: 168px; min-height: 45px; color: #fff; background: #285a9f; border-color: #285a9f; box-shadow: 0 7px 16px rgba(35, 78, 142, .17); }
.homepage-share-actions .homepage-access-button:hover { color: #fff; background: #214d8b; border-color: #214d8b; }
.homepage-share-actions .homepage-access-button:disabled { color: #64748b; background: #e8edf4; border-color: #d9e1eb; box-shadow: none; }
.homepage-share-terms { display: inline-flex; align-items: center; min-height: 22px; padding: 3px 9px; color: #3f648f; font-size: 10px; font-weight: 650; background: #edf4fc; border: 1px solid #d5e3f3; border-radius: 999px; }
.homepage-share-terms:empty { display: none; }
.homepage-share-assurances { display: flex; flex-wrap: wrap; gap: 9px 20px; margin-top: 21px; padding-top: 17px; border-top: 1px solid #e5eaf1; }
.homepage-share-assurances span { display: inline-flex; align-items: center; gap: 7px; color: #52687f; font-size: 10px; line-height: 1.5; }
.homepage-share-assurances span::before { display: grid; place-items: center; width: 17px; height: 17px; flex: 0 0 17px; color: #2d6c54; content: "✓"; font-size: 10px; font-weight: 800; background: #eaf6f0; border: 1px solid #cae8da; border-radius: 50%; }
.homepage-share-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 17px 0 0; padding: 0; list-style: none; }
.homepage-share-steps li { display: flex; align-items: center; gap: 11px; min-width: 0; min-height: 68px; padding: 12px 13px; background: #f7f9fc; border: 1px solid #e2e8f0; border-radius: 12px; }
.homepage-share-steps b { display: grid; place-items: center; width: 27px; height: 27px; flex: 0 0 27px; color: #315f9b; font-size: 11px; background: #fff; border: 1px solid #cbd9e9; border-radius: 9px; box-shadow: 0 3px 8px rgba(42, 78, 124, .05); }
.homepage-share-steps span, .homepage-share-steps strong, .homepage-share-steps small { display: block; min-width: 0; }
.homepage-share-steps strong { color: #28445f; font-size: 11px; font-weight: 700; }
.homepage-share-steps small { margin-top: 4px; color: #728297; font-size: 9px; line-height: 1.45; }
.homepage-share-link { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px; min-width: 0; margin-top: 17px; padding: 13px 14px; background: #f3f7fc; border: 1px solid #dce6f1; border-radius: 12px; }
.homepage-share-link[hidden] { display: none; }
.homepage-share-link-label { min-width: 110px; }
.homepage-share-link label, .homepage-share-link-label small { display: block; }
.homepage-share-link label { color: #294d78; font-size: 11px; font-weight: 700; }
.homepage-share-link-label small { margin-top: 3px; color: #718399; font-size: 9px; }
.homepage-share-link input { width: 100%; min-width: 0; min-height: 40px; padding: 9px 12px; color: #315679; font-size: 12px; background: #fff; border: 1px solid #cfdceb; border-radius: 9px; box-shadow: inset 0 1px 2px rgba(31, 55, 89, .03); }
.homepage-share-status { position: relative; margin: 11px 0 0; padding-left: 18px; color: #64778d; font-size: 10px; line-height: 1.65; overflow-wrap: anywhere; }
.homepage-share-status::before { position: absolute; left: 1px; top: .27em; display: grid; place-items: center; width: 12px; height: 12px; color: #426d9c; content: "i"; font-size: 8px; font-weight: 800; border: 1px solid #9db4cc; border-radius: 50%; }
.homepage-share-status.is-error { color: #b42318; }
.homepage-share-status.is-error::before { color: #b42318; border-color: #dc9d96; }
.homepage-access-button:focus-visible, .homepage-invite-row input:focus-visible, .homepage-share-link input:focus-visible { outline: 3px solid rgba(49,95,216,.25); outline-offset: 3px; }
@media (min-width: 821px) and (max-width: 1050px) {
  .homepage-hero.section-grid { column-gap: 26px; padding-inline: 30px; }
  .homepage-entry-icon { display: none; }
  .homepage-hero .upload-card { padding: 21px; }
  .homepage-hero .steps { font-size: 10px; }
  .homepage-hero .steps span { gap: 4px; }
  .homepage-hero .steps span:not(:last-of-type)::after { display: none; }
}
@media (max-width: 820px) {
  .homepage-hero.section-grid { grid-template-columns: minmax(0, 1fr); padding: 30px 28px; gap: 24px; }
  .homepage-hero .hero-copy { display: contents; }
  .homepage-hero .hero-copy > .eyebrow { order: 0; justify-self: start; margin: 0; }
  .homepage-hero h1 { order: 1; }
  .homepage-hero .hero-lede { order: 2; margin: 0; }
  .homepage-hero .steps { order: 3; padding-block: 0; }
  .homepage-hero .hero-trust { order: 4; margin: 0; }
  .homepage-hero .upload-stage { order: 5; }
  .homepage-hero .homepage-access { order: 6; margin: 0; }
  .homepage-hero .hero-metrics { order: 7; margin: 0; }
  .homepage-hero .homepage-share { order: 8; }
  .homepage-hero h1 { font-size: clamp(34px, 6.5vw, 48px); }
  .homepage-hero .hero-lede { max-width: 520px; }
  .homepage-hero .upload-card { padding: 25px; }
  .homepage-hero .steps { max-width: 510px; }
  .homepage-share { padding: 25px 23px 21px; }
  .homepage-share-main { gap: 18px; }
  .homepage-share-actions .homepage-access-button { min-width: 150px; }
  .homepage-share-steps { gap: 8px; }
  .homepage-share-steps li { padding-inline: 10px; }
}
@media (max-width: 560px) {
  .homepage-hero.section-grid { padding: 24px 17px; gap: 17px; }
  .homepage-hero .hero-copy .eyebrow { max-width: 100%; font-size: 10px; margin-bottom: 0; padding-inline: 8px; }
  .homepage-hero h1 { font-size: clamp(30px, 8vw, 42px); line-height: 1.3; }
  .homepage-hero .hero-lede { font-size: 13px; margin: 0; }
  .hero-copy-break { display: none; }
  .homepage-hero .steps { padding-block: 0; font-size: 10px; }
  .homepage-hero .steps span { gap: 4px; }
  .homepage-hero .steps b { width: 19px; height: 19px; font-size: 9px; }
  .homepage-hero .hero-trust { gap: 9px; font-size: 9px; }
  .homepage-access { margin-top: 0; border-radius: 14px; }
  .homepage-access-actions { gap: 9px; padding: 14px; }
  .homepage-entry-icon { display: none; }
  .homepage-access-copy strong { font-size: 13px; }
  .homepage-access-copy span { font-size: 11px; }
  .homepage-access-button { padding-inline: 12px; min-height: 44px; }
  .homepage-invite-form { padding: 13px 14px 14px; }
  .homepage-invite-row input { font-size: 16px; }
  .homepage-hero .hero-metrics { margin-top: 0; padding-top: 14px; }
  .homepage-hero .hero-metrics div { padding-inline: 11px; }
  .homepage-hero .hero-metrics strong { font-size: 20px; }
  .homepage-hero .upload-card { padding: 20px 17px; border-radius: 17px; }
  .homepage-hero .upload-card h2 { font-size: 20px; }
  .homepage-hero .drop-zone { min-height: 164px; }
  .homepage-share { padding: 22px 16px 18px; border-radius: 17px; box-shadow: 0 11px 28px rgba(31,54,88,.07); }
  .homepage-share-main { display: grid; gap: 17px; }
  .homepage-share-heading { align-items: flex-start; gap: 12px; }
  .homepage-share-icon { width: 45px; height: 49px; border-radius: 12px; }
  .homepage-share-icon svg { width: 27px; height: 27px; }
  .homepage-share-kicker { margin-bottom: 6px; font-size: 9px; }
  .homepage-share .homepage-access-copy strong { font-size: 17px; }
  .homepage-share .homepage-share-description { font-size: 11px; }
  .homepage-share-actions { align-items: stretch; gap: 8px; }
  .homepage-share-actions .homepage-access-button { width: 100%; min-height: 46px; }
  .homepage-share-terms { align-self: flex-start; }
  .homepage-share-assurances { display: grid; gap: 9px; margin-top: 18px; padding-top: 15px; }
  .homepage-share-steps { grid-template-columns: minmax(0,1fr); gap: 8px; margin-top: 15px; }
  .homepage-share-steps li { min-height: 60px; padding: 10px 12px; }
  .homepage-share-link { grid-template-columns: minmax(0,1fr); gap: 9px; margin-top: 15px; padding: 12px; }
  .homepage-share-link-label { min-width: 0; }
  .homepage-share-link input { min-height: 42px; font-size: 16px; }
  .homepage-share-status { margin-top: 10px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .splash-screen { transition: none; }
  .splash-content, .splash-document, .splash-glow-one, .splash-glow-two, .splash-document::after, .splash-document-title, .splash-document-line, .splash-document-check, .splash-progress span { animation: none; }
  .homepage-hero *, .homepage-share * { scroll-behavior: auto; }
}

.workflow-task-access {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: -4px 0 20px;
  padding: 13px 14px;
  color: #355574;
  background: linear-gradient(145deg, rgba(239, 247, 255, .96), rgba(249, 252, 255, .98));
  border: 1px solid #d2e2f4;
  border-radius: 13px;
}
.workflow-task-access[hidden] { display: none; }
.workflow-task-access.compact { margin: 0 0 22px; }
.workflow-task-access-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #2f65d8;
  font-size: 18px;
  font-weight: 800;
  background: #fff;
  border: 1px solid #c9dcf4;
  border-radius: 10px;
  box-shadow: 0 5px 13px rgba(42, 91, 161, .08);
}
.workflow-task-access-copy { min-width: 0; }
.workflow-task-access-copy strong,
.workflow-task-access-copy small,
.workflow-task-access-copy span { display: block; }
.workflow-task-access-copy strong { color: #173b63; font-size: 13px; }
.workflow-task-access-copy small { margin-top: 3px; color: #617b96; font-size: 10px; line-height: 1.6; }
.workflow-task-access-copy span { min-height: 0; margin-top: 3px; color: #168056; font-size: 10px; line-height: 1.5; }
.workflow-task-access-copy span:empty { display: none; }
.workflow-task-access-copy span[data-tone="error"] { color: #b42318; }
.workflow-task-access button { min-width: 112px; margin: 0; }
@media (max-width: 560px) {
  .workflow-task-access { grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 12px; }
  .workflow-task-access button { grid-column: 1 / -1; width: 100%; min-height: 42px; }
}

/* 2.8.184：首页首屏聚焦上传，次要功能保留在页面下方 */
@media (min-width: 821px) {
  .homepage-hero.section-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 32px;
  }

  .homepage-hero .upload-stage {
    grid-row: 1;
    order: -2;
    width: min(760px, 100%);
    justify-self: center;
  }

  .homepage-hero .hero-copy {
    grid-row: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 14px 28px;
    max-width: 960px;
    width: 100%;
    justify-self: center;
  }

  .homepage-hero .hero-copy > .eyebrow,
  .homepage-hero .hero-copy > h1,
  .homepage-hero .hero-copy > .hero-lede {
    grid-column: 1 / -1;
  }

  .homepage-hero .steps,
  .homepage-hero .hero-trust,
  .homepage-hero .hero-metrics {
    display: none;
  }

  .homepage-hero .homepage-access {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .homepage-hero .homepage-share {
    grid-row: 3;
    width: min(960px, 100%);
    justify-self: center;
    padding: 18px 22px;
  }

  .homepage-hero .homepage-share-assurances,
  .homepage-hero .homepage-share-steps {
    display: none;
  }
}

@media (max-width: 820px) {
  .homepage-hero .upload-stage { order: -1; }
  .homepage-hero .hero-copy > .eyebrow { order: 0; }
  .homepage-hero h1 { order: 1; }
  .homepage-hero .hero-lede { order: 2; }
  .homepage-hero .homepage-access { order: 3; }
  .homepage-hero .homepage-share { order: 4; }
  .homepage-hero .steps,
  .homepage-hero .hero-trust,
  .homepage-hero .hero-metrics { display: none; }
  .homepage-hero .homepage-share-assurances,
  .homepage-hero .homepage-share-steps { display: none; }
}

@media (max-width: 560px) {
  .homepage-hero .homepage-share { padding: 18px 16px 16px; }
  .homepage-hero .homepage-share-main { gap: 12px; }
}

/* 2.8.185：首页先展示品牌标题，再进入上传流程 */
@media (min-width: 821px) {
  .homepage-hero .hero-copy { grid-row: 1; }
  .homepage-hero .upload-stage { grid-row: 2; }
  .homepage-hero .homepage-share { grid-row: 3; }
}

@media (max-width: 820px) {
  .homepage-hero .hero-copy > .eyebrow { order: 0; }
  .homepage-hero h1 { order: 1; }
  .homepage-hero .hero-lede { order: 2; }
  .homepage-hero .upload-stage { order: 3; }
  .homepage-hero .homepage-access { order: 4; }
  .homepage-hero .homepage-share { order: 5; }
}


/* 2.8.188: task-scoped payment unlock state */
.result-payment-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 16px 0 18px;
  padding: 16px 18px;
  color: #244667;
  background: linear-gradient(135deg, #f4f8ff, #fbfdff);
  border: 1px solid #cbdcf2;
  border-radius: 15px;
}
.result-payment-card[hidden] { display: none; }
.result-payment-copy { min-width: 0; }
.result-payment-copy h3 { margin: 3px 0 4px; color: #173b63; font-size: 16px; }
.result-payment-copy p:last-child { margin: 0; color: #637990; font-size: 11px; line-height: 1.6; }
.result-payment-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; flex-shrink: 0; }
.result-payment-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.result-payment-actions .primary-button { min-width: 160px; }
.result-payment-status { max-width: 280px; color: #5f748b; font-size: 10px; line-height: 1.5; text-align: right; overflow-wrap: anywhere; }
.result-payment-status.is-error { color: #b42318; }
.result-payment-status.is-success { color: #168056; }
.result-payment-checkout {
  display: grid;
  grid-template-columns: minmax(190px, 230px) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  margin: -2px 0 20px;
  padding: 22px;
  color: #244667;
  background: linear-gradient(145deg, #f8fbff, #f0faf7);
  border: 1px solid #cbdcf2;
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(31, 69, 115, .09);
}
.result-payment-checkout[hidden] { display: none; }
.result-payment-qr { aspect-ratio: 1; padding: 12px; background: #fff; border: 2px solid #1689d8; border-radius: 14px; }
.result-payment-qr img { display: block; width: 100%; height: 100%; }
.result-payment-checkout-copy h3 { margin: 4px 0 8px; color: #173b63; font-size: 19px; }
.result-payment-checkout-copy > p { margin: 0 0 10px; color: #60768e; font-size: 13px; line-height: 1.65; }
.result-payment-countdown-label strong { color: #173b63; font-size: 20px; font-variant-numeric: tabular-nums; }
.result-payment-order-number { overflow-wrap: anywhere; }
.result-payment-checkout-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 12px; }
@media (max-width: 560px) {
  .result-payment-card { align-items: stretch; flex-direction: column; gap: 12px; margin-inline: 0; padding: 14px; }
  .result-payment-actions { align-items: stretch; }
  .result-payment-buttons { flex-direction: column; }
  .result-payment-actions .primary-button { width: 100%; }
  .result-payment-status { max-width: none; text-align: left; }
  .result-payment-checkout { grid-template-columns: 1fr; padding: 16px; }
  .result-payment-qr { width: min(260px, 78vw); justify-self: center; }
  .result-payment-checkout-actions { flex-direction: column; }
  .result-payment-checkout-actions > * { width: 100%; }
}

/* readability: improve helper copy, controls and dense review panels */
.app-shell small {
  font-size: 12px;
  line-height: 1.55;
}

.version-badge {
  font-size: 10px;
}

.profile-filter-note,
.profile-note,
.profile-source,
.scope-note,
.privacy-note,
.school-requirement-scope,
.school-requirement-warning,
.school-override-context span,
.school-comparison-head p:not(.card-kicker),
.school-comparison-default,
.school-comparison-adopted span,
.result-format-change-summary > div > p:not(.card-kicker),
.result-format-change-row strong,
.result-format-change-row span,
.profile-load-error span,
.queue-estimate,
.result-summary span,
.result-summary small,
.verification-item,
.task-link-note,
.manual-action-note,
.report-progress,
.severity-label,
.full-report-meta,
.full-report-value,
.full-report-action-row,
.pagination-note,
.pagination-preview-head,
.comparison-head,
.comparison-column h3,
.comparison-changes,
.history-meta,
.info-strip span,
.feedback-result,
.custom-workbench-head p:last-child,
.field-help,
.custom-result-note,
.custom-safety-note,
.machine-assisted-preview-note,
.custom-auto-save-note,
.custom-requirement-head p:last-child,
.custom-requirement-file-row > span,
.custom-requirement-actions small,
.custom-requirement-result-head span,
.custom-requirement-results li small,
.custom-requirement-results li q,
.custom-requirement-results > p,
.custom-progress-head p:last-child,
.custom-progress-note,
.custom-school-match-note,
.custom-saved-note,
.custom-copy-summary small,
.custom-copy-head p:last-child,
.custom-copy-note,
.custom-guided-copy > small,
.requirement-module-title p,
.format-action-hint,
.account-email,
.auth-invite-stage small,
.auth-code-note,
.homepage-access-copy span,
.homepage-account-note,
.upload-access-note,
.homepage-share-description,
.homepage-share-assurances span,
.homepage-share-status,
.workflow-task-access-copy small,
.workflow-task-access-copy span,
.result-payment-copy p:last-child,
.result-payment-status {
  font-size: 12px;
  line-height: 1.6;
}

.school-requirement-section li,
.school-requirement-confirm small,
.school-comparison-header,
.school-comparison-item strong,
.school-comparison-item small,
.school-override-reason-box > div small,
.school-override-reason-box label,
.school-override-reason-box select,
.school-override-reason-box input,
.result-format-change-row b,
.mode-option small,
.process-steps,
.finding-action-badge,
.finding-controls label,
.format-chip,
.custom-requirement-import > label,
.custom-requirement-result-head strong,
.custom-requirement-results li strong,
.custom-requirement-results li b,
.custom-requirement-review > strong,
.custom-view-switch > span strong,
.custom-view-switch > span small,
.custom-progress-copy strong,
.custom-progress-copy small,
.custom-school-saved-picker label,
.custom-copy-summary strong,
.custom-copy-controls > label,
.custom-copy-target-fieldset,
.custom-copy-target-fieldset legend,
.custom-copy-targets label span,
.custom-guided-copy > span,
.requirement-module-title > span,
.requirement-field-grid label,
.auth-dialog label,
.homepage-invite-form label,
.homepage-share-kicker,
.homepage-share-terms,
.homepage-share-steps strong,
.homepage-share-link label,
.homepage-share-link-label small {
  font-size: 12px !important;
}

.profile-search-clear,
.school-override-shortcuts button,
.school-comparison-actions button,
.school-comparison-adopted button,
.quick-action-button,
.copy-guidance-button,
.history-actions button,
.compact-button,
.custom-view-switch button,
.custom-progress-actions .text-button,
.custom-school-match-action,
.custom-school-actions .text-button,
.custom-copy-target-actions .text-button,
.custom-keep-button,
.account-controls button {
  min-height: 36px;
  font-size: 12px;
}

.school-requirement-head > span,
.confidence-badge,
.card-kicker,
.format-badge {
  font-size: 11px;
}

.footer {
  font-size: 12px;
}

@media (max-width: 560px) {
  .app-shell input:not([type="checkbox"]):not([type="radio"]),
  .app-shell select,
  .app-shell textarea {
    font-size: 16px;
  }

  .homepage-hero .hero-copy .eyebrow,
  .homepage-hero .steps,
  .homepage-hero .hero-trust,
  .homepage-share-kicker,
  .homepage-share-description,
  .homepage-share-status {
    font-size: 12px;
  }
}

/* 2.8.237: keep essential homepage and sign-in copy readable on desktop and mobile. */
.homepage-hero .hero-lede,
.homepage-access-copy span,
.homepage-account-note,
.upload-access-note,
.homepage-share-description,
.homepage-share-assurances span,
.homepage-share-status,
.auth-dialog-description,
.auth-invite-stage small,
.auth-code-note {
  font-size: 13px;
  line-height: 1.65;
}

.homepage-invite-form label,
.homepage-share-kicker,
.homepage-share-terms,
.homepage-share-steps strong,
.homepage-share-steps small,
.homepage-share-link label,
.homepage-share-link-label small,
.auth-dialog label,
.card-kicker,
.format-badge {
  font-size: 12px !important;
}

.homepage-access-button,
.account-controls button,
.account-admin-link {
  min-height: 40px;
  font-size: 13px;
}

@media (max-width: 560px) {
  .homepage-hero .hero-lede,
  .homepage-access-copy span,
  .homepage-account-note,
  .upload-access-note,
  .homepage-share-description,
  .homepage-share-assurances span,
  .homepage-share-status,
  .auth-dialog-description,
  .auth-invite-stage small,
  .auth-code-note {
    font-size: 13px;
  }
}

/* Campus edition: a student-made thesis rescue desk, not a corporate console. */
:root {
  --campus-ink: #25243a;
  --campus-purple: #6657d9;
  --campus-purple-dark: #4f42b8;
  --campus-coral: #ff765d;
  --campus-yellow: #ffd966;
  --campus-mint: #6fd3b2;
  --campus-paper: #fffdf8;
  --campus-line: #d9d3c8;
}

body {
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 217, 102, .30), transparent 21rem),
    radial-gradient(circle at 92% 16%, rgba(111, 211, 178, .22), transparent 24rem),
    radial-gradient(circle at 86% 88%, rgba(178, 163, 255, .23), transparent 24rem),
    #f6f1e8;
  color: var(--campus-ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
}

.app-shell {
  width: min(1220px, calc(100% - 32px));
  margin: 16px auto 30px;
  overflow: hidden;
  background: var(--campus-paper);
  border: 1px solid rgba(111, 99, 77, .22);
  border-radius: 30px;
  box-shadow: 0 24px 70px rgba(69, 58, 99, .14), 0 5px 0 rgba(90, 75, 56, .04);
}

.topbar {
  position: relative;
  min-height: 76px;
  padding: 15px 30px;
  background: rgba(255, 253, 248, .94);
  border-bottom: 1px dashed #cfc7ba;
}

.topbar::after {
  position: absolute;
  right: 30%;
  bottom: -4px;
  width: 72px;
  height: 8px;
  content: "";
  background: rgba(255, 217, 102, .75);
  border-radius: 999px;
  transform: rotate(-1.5deg);
}

.brand { gap: 12px; color: var(--campus-ink); }
.brand-mark {
  width: 39px;
  height: 39px;
  background: var(--campus-purple);
  border: 2px solid var(--campus-ink);
  border-radius: 12px 15px 11px 14px;
  box-shadow: 4px 4px 0 var(--campus-yellow);
  transform: rotate(-4deg);
}
.brand-name { font-size: 15px; letter-spacing: .03em; }
.brand-name small { color: #7b7288; font-weight: 500; }
.version-badge {
  color: #5648bf;
  background: #f0edff;
  border: 1px solid #d8d0ff;
  transform: rotate(2deg);
}
.nav-cta,
.account-login-button,
.account-task-button,
.account-logout-button {
  border-radius: 999px !important;
}
.nav-cta {
  color: #fff !important;
  background: var(--campus-ink) !important;
  box-shadow: 4px 4px 0 rgba(255, 118, 93, .72) !important;
  transform: rotate(-1deg);
}
.nav-cta:hover { transform: translate(-1px, -1px) rotate(-1deg) !important; }

.homepage-hero.section-grid {
  position: relative;
  isolation: isolate;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  column-gap: clamp(38px, 5vw, 66px);
  row-gap: 34px;
  padding: 56px clamp(30px, 5vw, 68px) 46px;
  background:
    linear-gradient(rgba(113, 103, 143, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(113, 103, 143, .055) 1px, transparent 1px),
    linear-gradient(135deg, #fffdf8 0%, #fffaf2 54%, #f8f5ff 100%);
  background-size: 25px 25px, 25px 25px, auto;
}
.homepage-hero::before,
.homepage-hero::after {
  position: absolute;
  z-index: -1;
  display: block;
  content: "";
  pointer-events: none;
}
.homepage-hero::before {
  top: 34px;
  right: 47%;
  width: 72px;
  height: 30px;
  background: rgba(255, 217, 102, .55);
  border: 1px solid rgba(163, 126, 24, .08);
  transform: rotate(7deg);
}
.homepage-hero::after {
  top: 160px;
  left: -28px;
  width: 82px;
  height: 82px;
  border: 18px solid rgba(255, 118, 93, .13);
  border-radius: 50%;
}
.homepage-hero .hero-copy {
  position: relative;
  z-index: 2;
  display: block;
  grid-column: 1;
  grid-row: 1;
  padding-top: 7px;
}
.homepage-hero .hero-copy::after {
  position: absolute;
  right: 4%;
  bottom: 31%;
  color: rgba(102, 87, 217, .24);
  content: "↗";
  font: 700 52px/1 "Comic Sans MS", cursive;
  transform: rotate(12deg);
}
.homepage-hero .hero-copy .eyebrow {
  margin-bottom: 14px;
  padding: 8px 12px;
  color: #5648a9;
  background: #f1edff;
  border: 1px solid #d9d0ff;
  border-radius: 10px 15px 12px 14px;
  box-shadow: 3px 3px 0 rgba(111, 211, 178, .38);
  font-size: 12px;
  transform: rotate(-.5deg);
}
.homepage-hero .status-dot { background: var(--campus-coral); box-shadow: 0 0 0 4px rgba(255,118,93,.14); }
.hero-stickers { display: flex; gap: 9px; margin: 5px 0 17px; }
.hero-stickers span {
  display: inline-block;
  padding: 5px 9px;
  color: #564e31;
  background: #fff1a9;
  border: 1px solid #e8d274;
  border-radius: 4px;
  box-shadow: 2px 3px 0 rgba(82, 70, 45, .08);
  font-size: 11px;
  font-weight: 800;
  transform: rotate(-2deg);
}
.hero-stickers span:last-child { color: #54478e; background: #e8e2ff; border-color: #cfc3ff; transform: rotate(1.5deg); }
.homepage-hero h1 {
  color: var(--campus-ink);
  font-size: clamp(38px, 4.55vw, 59px);
  line-height: 1.18;
  letter-spacing: -.055em;
}
.homepage-hero h1 span {
  position: relative;
  display: inline;
  color: var(--campus-purple);
  background: linear-gradient(transparent 72%, rgba(255, 217, 102, .78) 0);
  -webkit-text-fill-color: currentColor;
}
.homepage-hero .hero-lede { margin: 22px 0 14px; color: #625d70; font-size: 15px; line-height: 1.9; }
.maker-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 19px;
  padding: 8px 11px;
  color: #665b45;
  background: rgba(255, 239, 184, .68);
  border-left: 4px solid var(--campus-yellow);
  border-radius: 3px 10px 10px 3px;
  font-size: 12px;
  line-height: 1.5;
  transform: rotate(-.4deg);
}
.maker-note span { color: var(--campus-coral); font-size: 17px; }
.homepage-hero .steps { display: flex; gap: 9px; padding: 5px 0; }
.homepage-hero .steps > i { display: none; }
.homepage-hero .steps span {
  gap: 6px;
  padding: 7px 9px 7px 7px;
  color: #5c5568;
  background: rgba(255,255,255,.72);
  border: 1px solid #ddd6cb;
  border-radius: 999px;
  font-size: 11px;
  box-shadow: 2px 3px 0 rgba(63, 51, 89, .055);
}
.homepage-hero .steps span:not(:last-of-type)::after { display: none; }
.homepage-hero .steps b { color: #fff; background: var(--campus-purple); border-radius: 50%; }
.homepage-hero .steps span:nth-of-type(2) b { background: var(--campus-coral); }
.homepage-hero .steps span:nth-of-type(3) b { color: #343127; background: var(--campus-yellow); }
.homepage-hero .steps span:nth-of-type(4) b { background: #48aa8b; }
.homepage-hero .hero-trust { display: flex; gap: 9px; margin-top: 14px; font-size: 11px; }
.homepage-hero .hero-trust span { padding: 5px 8px; color: #655f6d; background: transparent; }
.homepage-hero .hero-trust i { color: #216d59; background: #dff6ec; border: 1px solid #bfe6d7; }
.homepage-hero .hero-metrics {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding: 0;
  border: 0;
}
.homepage-hero .hero-metrics div {
  min-height: 78px;
  padding: 12px 13px;
  background: #fff9dc;
  border: 1px solid #eadc96 !important;
  border-radius: 9px 15px 10px 14px;
  box-shadow: 3px 4px 0 rgba(79, 65, 35, .06);
  transform: rotate(-1deg);
}
.homepage-hero .hero-metrics div:nth-child(2) { background: #efecff; border-color: #d3caff !important; transform: rotate(1deg); }
.homepage-hero .hero-metrics div:nth-child(3) { background: #e7f8f1; border-color: #bfe6d6 !important; transform: rotate(-.5deg); }
.homepage-hero .hero-metrics strong { color: var(--campus-ink); font-size: 23px; }
.homepage-hero .hero-metrics span { color: #6e6673; font-size: 11px; line-height: 1.45; }

.homepage-hero .upload-stage {
  position: relative;
  z-index: 2;
  grid-column: 2;
  grid-row: 1 / span 2;
  width: auto;
  justify-self: stretch;
  padding-top: 12px;
}
.homepage-hero .upload-stage::before {
  display: block;
  top: 0;
  left: 50%;
  z-index: 4;
  width: 94px;
  height: 27px;
  background: rgba(255, 216, 116, .72);
  border: 0;
  border-radius: 2px;
  box-shadow: none;
  transform: translateX(-50%) rotate(-2deg);
}
.homepage-hero .upload-stage::after { display: none; }
.homepage-hero .upload-card {
  padding: 29px 28px 27px;
  background: #fff;
  border: 2px solid var(--campus-ink);
  border-radius: 17px 22px 18px 24px;
  box-shadow: 9px 10px 0 #ded8ff, 0 18px 36px rgba(67, 54, 91, .11);
  transform: rotate(.35deg);
}
.homepage-hero .upload-card h2 { color: var(--campus-ink); font-size: 23px; }
.homepage-hero .card-kicker { color: #6b5ed3; letter-spacing: .05em; }
.homepage-hero .format-badge { color: #5042b7; background: #efecff; border-color: #cfc7ff; transform: rotate(3deg); }
.homepage-hero .upload-intro { color: #716a79; }
.homepage-hero .upload-status {
  padding: 9px 11px;
  color: #4d6b62;
  background: #e9f8f2;
  border: 1px solid #c4e9da;
  border-radius: 8px 12px 9px 11px;
}
.homepage-hero .upload-status-dot { background: #48aa8b; }
.homepage-hero .drop-zone {
  min-height: 188px;
  background: #f5f2ff;
  border: 2px dashed #998bea;
  border-radius: 13px 20px 15px 18px;
  box-shadow: inset 0 0 0 6px rgba(255,255,255,.50);
}
.homepage-hero .drop-zone:hover,
.homepage-hero .drop-zone.dragover { background: #ede9ff; border-color: var(--campus-purple); transform: translateY(-2px) rotate(-.2deg); }
.homepage-hero .upload-file-icon {
  color: #fff;
  background: var(--campus-purple);
  border: 2px solid var(--campus-ink);
  border-radius: 8px 12px 9px 11px;
  box-shadow: 4px 4px 0 var(--campus-yellow);
  transform: rotate(-4deg);
}
.homepage-hero .drop-zone strong { color: #38334e; font-size: 15px; }
.homepage-hero .primary-button,
.homepage-access-button.primary-button {
  color: #fff;
  background: var(--campus-purple);
  border-color: var(--campus-purple-dark);
  border-radius: 12px;
  box-shadow: 4px 5px 0 rgba(37, 36, 58, .18);
}
.homepage-hero .primary-button:hover:not(:disabled),
.homepage-access-button.primary-button:hover:not(:disabled) { background: var(--campus-purple-dark); transform: translateY(-1px); }
.homepage-hero .upload-button { min-height: 48px; }
.homepage-hero .next-step-note > span { color: #fff; background: var(--campus-coral); }
.homepage-hero .support-details { border: 1px solid #d8d0c4; background: #fffcf5; }
.homepage-hero .support-details summary b { color: var(--campus-purple); }

.homepage-access {
  grid-column: 1;
  grid-row: 2;
  background: #fffdf8;
  border: 1px solid #d7cec0;
  border-radius: 14px 19px 15px 20px;
  box-shadow: 4px 5px 0 rgba(255, 217, 102, .42);
  transform: rotate(-.3deg);
}
.homepage-entry-icon { color: #fff; background: var(--campus-coral); border: 1px solid #d95e47; transform: rotate(-3deg); }
.homepage-access-copy strong { color: var(--campus-ink); }
.homepage-invite-form { background: #fff9ed; border-top: 1px dashed #d7cdbd; }
.homepage-access-button.secondary-button { color: #5447bb; background: #f3f0ff; border-color: #cfc6ff; }

.homepage-share {
  grid-column: 1 / -1;
  grid-row: 3;
  padding: 28px 30px 24px;
  overflow: visible;
  background: #fff8f1;
  border: 2px solid var(--campus-ink);
  border-radius: 19px 25px 18px 23px;
  box-shadow: 9px 9px 0 #ffd9cf;
  transform: rotate(-.15deg);
}
.homepage-share::before {
  top: -13px;
  left: 44px;
  right: auto;
  width: 104px;
  height: 28px;
  background: rgba(111, 211, 178, .69);
  border: 0;
  transform: rotate(-3deg);
}
.homepage-share-icon {
  color: #fff;
  background: var(--campus-coral);
  border: 2px solid var(--campus-ink);
  border-radius: 14px 18px 13px 17px;
  box-shadow: 4px 4px 0 var(--campus-yellow);
  transform: rotate(-3deg);
}
.homepage-share-kicker { color: #9b4f40; letter-spacing: .04em; }
.homepage-share-kicker i { background: var(--campus-coral); border-color: #ffe1d8; }
.homepage-share .homepage-access-copy strong { color: var(--campus-ink); font-size: 21px; }
.homepage-share-actions .homepage-access-button {
  color: #fff;
  background: var(--campus-ink);
  border-color: var(--campus-ink);
  border-radius: 999px;
  box-shadow: 4px 5px 0 rgba(102, 87, 217, .35);
}
.homepage-share-actions .homepage-access-button:hover { color: #fff; background: #3c3858; border-color: #3c3858; }
.homepage-share-terms { color: #655993; background: #eeeaff; border-color: #d2c9ff; }
.homepage-share-assurances { border-top: 1px dashed #d9cabc; }
.homepage-share-assurances span::before { color: #fff; background: #58b596; border-color: #459f82; }
.homepage-share-steps li {
  background: #fff;
  border: 1px solid #d8cfc3;
  border-radius: 10px 15px 11px 14px;
  box-shadow: 3px 4px 0 rgba(93, 72, 56, .055);
}
.homepage-share-steps li:nth-child(2) { background: #f3f0ff; transform: rotate(.5deg); }
.homepage-share-steps li:nth-child(3) { background: #ecf9f4; transform: rotate(-.5deg); }
.homepage-share-steps b { color: #fff; background: var(--campus-purple); border: 0; border-radius: 50%; }
.homepage-share-steps li:nth-child(2) b { background: var(--campus-coral); }
.homepage-share-steps li:nth-child(3) b { background: #48aa8b; }
.homepage-share-link { background: #fff; border: 1px dashed #bfb4a6; }
.footer { color: #7a7180; background: #fffaf2; border-top: 1px dashed #d7cfc3; }

.splash-screen {
  color: var(--campus-ink);
  background:
    radial-gradient(circle at 18% 18%, rgba(255,217,102,.72), transparent 30%),
    radial-gradient(circle at 82% 82%, rgba(111,211,178,.52), transparent 31%),
    linear-gradient(145deg, #fff8ed, #eeeaff);
}
.splash-document { border: 2px solid var(--campus-ink); box-shadow: 7px 8px 0 var(--campus-yellow), 0 22px 50px rgba(57,44,86,.16); }
.splash-kicker { color: #6b5eb0; }
.splash-brand { color: var(--campus-ink); text-shadow: 3px 3px 0 rgba(255,118,93,.28); }
.splash-tagline { color: #6e6577; }
.splash-progress { background: rgba(92,75,135,.14); }
.splash-progress span { background: linear-gradient(90deg, var(--campus-coral), var(--campus-purple)); box-shadow: none; }
.splash-skip { color: #746985; }
.splash-skip:hover, .splash-skip:focus-visible { color: var(--campus-ink); background: rgba(255,255,255,.55); }

@media (max-width: 820px) {
  .homepage-hero.section-grid { grid-template-columns: minmax(0, 1fr); padding: 35px 28px 38px; }
  .homepage-hero::before { right: 8%; }
  .homepage-hero .hero-copy { display: block; grid-column: 1; grid-row: auto; order: 0; }
  .homepage-hero .hero-copy::after { display: none; }
  .homepage-hero .upload-stage { grid-column: 1; grid-row: auto; order: 1; width: auto; padding-top: 13px; }
  .homepage-hero .homepage-access { grid-column: 1; grid-row: auto; order: 2; }
  .homepage-hero .homepage-share { grid-column: 1; grid-row: auto; order: 3; }
}

@media (max-width: 560px) {
  .app-shell { width: 100%; margin: 0; border: 0; border-radius: 0; }
  .topbar { min-height: 68px; padding: 13px 16px; }
  .topbar::after { display: none; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-name small { max-width: 138px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-upload-link { display: none !important; }
  .homepage-hero.section-grid { gap: 20px; padding: 29px 17px 34px; background-size: 22px 22px, 22px 22px, auto; }
  .homepage-hero::before { top: 22px; right: 6%; width: 56px; height: 23px; }
  .homepage-hero::after { display: none; }
  .homepage-hero .hero-copy .eyebrow { font-size: 11px; line-height: 1.45; }
  .hero-stickers { margin-bottom: 14px; }
  .hero-stickers span { font-size: 10px; }
  .homepage-hero h1 { font-size: clamp(34px, 10.7vw, 46px); line-height: 1.2; }
  .homepage-hero .hero-lede { font-size: 14px; line-height: 1.78; }
  .maker-note { margin-bottom: 13px; font-size: 11px; }
  .homepage-hero .steps { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .homepage-hero .steps span { white-space: normal; }
  .homepage-hero .hero-trust { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 4px; }
  .homepage-hero .hero-trust span { justify-content: center; padding-inline: 3px; text-align: center; }
  .homepage-hero .hero-metrics { gap: 5px; }
  .homepage-hero .hero-metrics div { min-height: 84px; padding: 10px 8px; }
  .homepage-hero .hero-metrics strong { font-size: 21px; }
  .homepage-hero .hero-metrics span { font-size: 10px; }
  .homepage-hero .upload-card { padding: 24px 17px 21px; box-shadow: 6px 7px 0 #ded8ff; transform: none; }
  .homepage-hero .upload-card h2 { font-size: 22px; }
  .homepage-hero .drop-zone { min-height: 170px; }
  .homepage-access, .homepage-share { transform: none; }
  .homepage-share { padding: 25px 16px 20px; box-shadow: 6px 7px 0 #ffd9cf; }

  .homepage-hero > *,
  .homepage-hero .hero-copy,
  .homepage-hero .upload-stage,
  .homepage-hero .homepage-access,
  .homepage-hero .homepage-share,
  .homepage-hero .steps,
  .homepage-hero .hero-trust,
  .homepage-hero .hero-metrics {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .homepage-hero .drop-zone strong {
    overflow: visible;
    line-height: 1.55;
    text-overflow: clip;
    white-space: normal;
  }
}

@media (max-width: 360px) {
  .homepage-hero.section-grid { padding-inline: 15px; }
  .homepage-hero .format-badge { display: none; }
  .homepage-hero .upload-card h2 { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  .homepage-hero .drop-zone:hover,
  .homepage-hero .primary-button:hover:not(:disabled),
  .nav-cta:hover { transform: none !important; }
}

/* Studio edition: young, neutral and precise instead of pastel scrapbook. */
:root {
  --studio-ink: #111827;
  --studio-ink-soft: #263044;
  --studio-blue: #315efb;
  --studio-blue-dark: #2348c7;
  --studio-muted: #667085;
  --studio-paper: #f7f8fb;
  --studio-card: #ffffff;
  --studio-line: #dfe3eb;
}

body {
  color: var(--studio-ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(49, 94, 251, .10), transparent 27rem),
    radial-gradient(circle at 92% 92%, rgba(87, 104, 138, .10), transparent 28rem),
    #eef1f6;
}

.app-shell {
  overflow: hidden;
  background: var(--studio-paper);
  border: 1px solid rgba(17, 24, 39, .10);
  border-radius: 26px;
  box-shadow: 0 30px 90px rgba(20, 31, 55, .14), 0 2px 8px rgba(20, 31, 55, .05);
}

.topbar {
  min-height: 74px;
  background: rgba(255, 255, 255, .91);
  border-bottom: 1px solid rgba(17, 24, 39, .09);
  backdrop-filter: blur(18px) saturate(1.12);
}
.topbar::after { display: none; }
.brand { color: var(--studio-ink); }
.brand-mark {
  background: linear-gradient(145deg, #1c2434, #0f1420);
  border: 0;
  border-radius: 11px;
  box-shadow: 0 7px 18px rgba(17, 24, 39, .20), inset 0 0 0 1px rgba(255,255,255,.10);
  transform: none;
}
.brand-name small { color: #778096; }
.version-badge {
  color: #3658d8;
  background: #edf1ff;
  border: 1px solid #d9e1ff;
  transform: none;
}
.nav-cta {
  color: #fff !important;
  background: var(--studio-ink) !important;
  border-color: var(--studio-ink) !important;
  box-shadow: 0 8px 20px rgba(17, 24, 39, .16) !important;
  transform: none;
}
.nav-cta:hover { background: #20293b !important; transform: translateY(-1px) !important; }

.homepage-hero.section-grid {
  background:
    linear-gradient(rgba(70, 82, 110, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 82, 110, .045) 1px, transparent 1px),
    linear-gradient(145deg, #fbfcff 0%, #f7f8fc 55%, #f1f4fb 100%);
  background-size: 28px 28px, 28px 28px, auto;
}
.homepage-hero::before,
.homepage-hero::after,
.homepage-hero .hero-copy::after { display: none; }
.homepage-hero .hero-copy .eyebrow {
  color: #3455cc;
  background: rgba(238, 242, 255, .92);
  border: 1px solid #d7def8;
  border-radius: 999px;
  box-shadow: none;
  transform: none;
}
.homepage-hero .status-dot {
  background: var(--studio-blue);
  box-shadow: 0 0 0 4px rgba(49, 94, 251, .11);
}
.hero-stickers span,
.hero-stickers span:last-child {
  color: #4d586d;
  background: rgba(255, 255, 255, .88);
  border: 1px solid #dfe4ed;
  border-radius: 999px;
  box-shadow: none;
  transform: none;
}
.hero-stickers span:last-child { color: #3658d8; background: #eef2ff; border-color: #d9e1ff; }
.homepage-hero h1 {
  color: var(--studio-ink);
  letter-spacing: -.05em;
}
.homepage-hero h1 span {
  color: var(--studio-blue);
  background: linear-gradient(transparent 87%, rgba(49, 94, 251, .18) 0);
}
.homepage-hero .hero-lede { color: #5f687b; }
.maker-note {
  color: #505a6d;
  background: rgba(255, 255, 255, .72);
  border: 1px solid #e0e4ec;
  border-left: 3px solid var(--studio-blue);
  border-radius: 7px;
  box-shadow: 0 5px 14px rgba(25, 35, 55, .04);
  transform: none;
}
.maker-note span { color: var(--studio-blue); }
.homepage-hero .steps span {
  color: #4f596d;
  background: rgba(255, 255, 255, .88);
  border-color: #dfe3eb;
  border-radius: 10px;
  box-shadow: 0 5px 12px rgba(17, 24, 39, .04);
}
.homepage-hero .steps b,
.homepage-hero .steps span:nth-of-type(2) b,
.homepage-hero .steps span:nth-of-type(3) b,
.homepage-hero .steps span:nth-of-type(4) b {
  color: #fff;
  background: var(--studio-blue);
}
.homepage-hero .hero-trust span { color: #5e687a; }
.homepage-hero .hero-trust i {
  color: #3154ce;
  background: #edf1ff;
  border-color: #d7dffc;
}
.homepage-hero .hero-metrics div,
.homepage-hero .hero-metrics div:nth-child(2),
.homepage-hero .hero-metrics div:nth-child(3) {
  background: rgba(255, 255, 255, .90);
  border: 1px solid #dfe3eb !important;
  border-radius: 13px;
  box-shadow: 0 10px 24px rgba(17, 24, 39, .055);
  transform: none;
}
.homepage-hero .hero-metrics strong { color: var(--studio-ink); }
.homepage-hero .hero-metrics span { color: #697286; }

.homepage-hero .upload-stage::before { display: none; }
.homepage-hero .upload-card {
  background: rgba(255, 255, 255, .96);
  border: 1px solid #ccd3df;
  border-radius: 22px;
  box-shadow: 0 22px 55px rgba(24, 35, 58, .13), 0 2px 8px rgba(24, 35, 58, .04);
  transform: none;
}
.homepage-hero .upload-card h2 { color: var(--studio-ink); }
.homepage-hero .card-kicker { color: #3456d5; }
.homepage-hero .format-badge {
  color: #3658d8;
  background: #eef2ff;
  border-color: #d9e1ff;
  transform: none;
}
.homepage-hero .upload-intro { color: #6a7282; }
.homepage-hero .upload-status {
  color: #435170;
  background: #f1f4fb;
  border-color: #dde3ef;
  border-radius: 10px;
}
.homepage-hero .upload-status-dot { background: var(--studio-blue); }
.homepage-hero .drop-zone {
  background: #f4f6fc;
  border: 1.5px dashed #8fa2d8;
  border-radius: 16px;
  box-shadow: inset 0 0 0 5px rgba(255,255,255,.60);
}
.homepage-hero .drop-zone:hover,
.homepage-hero .drop-zone.dragover { background: #edf1ff; border-color: var(--studio-blue); transform: translateY(-1px); }
.homepage-hero .upload-file-icon {
  color: #fff;
  background: linear-gradient(145deg, #416aff, #2348c7);
  border: 0;
  border-radius: 11px;
  box-shadow: 0 10px 24px rgba(49, 94, 251, .24);
  transform: none;
}
.homepage-hero .primary-button,
.homepage-access-button.primary-button {
  background: var(--studio-blue);
  border-color: var(--studio-blue-dark);
  border-radius: 11px;
  box-shadow: 0 9px 22px rgba(49, 94, 251, .20);
}
.homepage-hero .primary-button:hover:not(:disabled),
.homepage-access-button.primary-button:hover:not(:disabled) { background: var(--studio-blue-dark); }
.homepage-hero .next-step-note > span { background: var(--studio-blue); }
.homepage-hero .support-details { background: #fafbfe; border-color: #dce1ea; }
.homepage-hero .support-details summary b { color: var(--studio-blue); }

.homepage-access {
  background: rgba(255, 255, 255, .82);
  border-color: #dce1ea;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(17, 24, 39, .055);
  transform: none;
}
.homepage-entry-icon {
  color: #fff;
  background: var(--studio-blue);
  border: 0;
  transform: none;
}
.homepage-invite-form { background: #f7f8fb; border-top-color: #e0e4ec; }
.homepage-access-button.secondary-button { color: #3456d5; background: #eef2ff; border-color: #d6dffe; }

.homepage-share {
  overflow: hidden;
  background: linear-gradient(135deg, #171e2d, #101521 64%, #19243c);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 20px;
  box-shadow: 0 20px 48px rgba(17, 24, 39, .18);
  transform: none;
}
.homepage-share::before {
  inset: 0 0 auto;
  width: auto;
  height: 3px;
  background: linear-gradient(90deg, var(--studio-blue), #7290ff);
  transform: none;
}
.homepage-share-icon {
  color: #fff;
  background: var(--studio-blue);
  border: 0;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(49, 94, 251, .24);
  transform: none;
}
.homepage-share-kicker { color: #91a7ff; }
.homepage-share-kicker i { background: #6683ff; border-color: rgba(255,255,255,.12); }
.homepage-share .homepage-access-copy strong { color: #fff; }
.homepage-share .homepage-share-description { color: #aeb8ca; }
.homepage-share-actions .homepage-access-button {
  color: #fff;
  background: var(--studio-blue);
  border-color: var(--studio-blue);
  border-radius: 11px;
  box-shadow: 0 9px 22px rgba(49, 94, 251, .22);
}
.homepage-share-actions .homepage-access-button:hover { background: #426bff; border-color: #426bff; }
.homepage-share-terms { color: #c1caff; background: rgba(86, 112, 222, .17); border-color: rgba(145,167,255,.24); }
.homepage-share-assurances { border-top-color: rgba(255,255,255,.10); }
.homepage-share-assurances span,
.homepage-share-status { color: #aeb8ca; }
.homepage-share-assurances span::before { color: #fff; background: #315efb; border-color: #5f7eff; }
.homepage-share-steps li,
.homepage-share-steps li:nth-child(2),
.homepage-share-steps li:nth-child(3) {
  background: rgba(255,255,255,.055);
  border-color: rgba(255,255,255,.10);
  box-shadow: none;
  transform: none;
}
.homepage-share-steps strong { color: #fff; }
.homepage-share-steps small { color: #9faabd; }
.homepage-share-steps b,
.homepage-share-steps li:nth-child(2) b,
.homepage-share-steps li:nth-child(3) b { background: var(--studio-blue); }
.homepage-share-link { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.homepage-share-link label { color: #fff; }
.homepage-share-link-label small { color: #aeb8ca; }

.info-strip {
  gap: 12px;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.info-strip div {
  background: #fff;
  border: 1px solid var(--studio-line);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(17, 24, 39, .055);
}
.info-strip div::before,
.info-strip div:nth-child(2)::before,
.info-strip div:nth-child(3)::before {
  color: #3154ce;
  background: #edf1ff;
  border-color: #d7dffc;
  border-radius: 10px;
}
.info-strip strong { color: var(--studio-ink); }
.info-strip span { color: #697286; }

.section-kicker { color: #3456d5; }
.section-heading h2 { color: var(--studio-ink); }
.section-heading::after { background: var(--studio-blue); }
.faq-grid details {
  background: #fff;
  border: 1px solid var(--studio-line);
  border-radius: 14px;
  box-shadow: 0 7px 20px rgba(17, 24, 39, .035);
}
.faq-grid details:hover { border-color: #bfc9df; box-shadow: 0 12px 28px rgba(17, 24, 39, .07); }
.faq-grid details[open] { background: #fff; border-color: #b9c5df; }
.faq-grid summary::before,
.faq-grid summary::after { color: #3456d5; background: #eef2ff; border-color: #d9e1ff; }

.feedback-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d8dee8;
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(17, 24, 39, .08);
}
.feedback-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--studio-blue), #7893ff 45%, transparent 78%);
}
.feedback-promises li {
  background: #f8f9fc;
  border-color: #e0e4ec;
  border-radius: 12px;
}
.feedback-promises li > span {
  background: var(--studio-ink);
  border-radius: 9px;
  box-shadow: none;
}
.feedback-promises strong { color: var(--studio-ink); }
.feedback-promises small { color: #697286; }
.feedback-card form {
  background: #f7f8fb;
  border-color: #e0e4ec;
  border-radius: 15px;
  box-shadow: none;
}
.feedback-input { border-color: #cfd6e2; border-radius: 10px; }
.feedback-input:focus { border-color: var(--studio-blue); box-shadow: 0 0 0 3px rgba(49,94,251,.12); }
.feedback-card .primary-button { background: var(--studio-blue); border-color: var(--studio-blue-dark); }
.privacy-note {
  color: #616b7d;
  background: #fff;
  border: 1px solid var(--studio-line);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(17, 24, 39, .035);
}
.privacy-note strong { color: var(--studio-ink); }
.footer { color: #7a8394; background: #f7f8fb; border-top-color: #e0e4ec; }

.splash-screen {
  color: #fff;
  background:
    radial-gradient(circle at 18% 18%, rgba(49,94,251,.42), transparent 32%),
    radial-gradient(circle at 82% 78%, rgba(94,115,170,.24), transparent 34%),
    linear-gradient(145deg, #151c2b, #0b0f18);
}
.splash-document {
  background: #fff;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
}
.splash-kicker { color: #9fb0ff; }
.splash-brand { color: #fff; text-shadow: none; }
.splash-tagline { color: #b4bdcc; }
.splash-progress { background: rgba(255,255,255,.10); }
.splash-progress span { background: linear-gradient(90deg, #315efb, #8ca2ff); }
.splash-skip { color: #aeb8ca; }
.splash-skip:hover,
.splash-skip:focus-visible { color: #fff; background: rgba(255,255,255,.07); }

@media (max-width: 560px) {
  .app-shell { border-radius: 0; }
  .topbar { min-height: 66px; padding: 12px 14px; }
  .mobile-upload-link {
    display: inline-flex !important;
    min-height: 40px;
    padding-inline: 12px;
    color: #fff;
    background: var(--studio-ink);
    border: 1px solid var(--studio-ink);
    border-radius: 10px;
    box-shadow: 0 7px 18px rgba(17,24,39,.15);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
  }
  .mobile-upload-link::before { color: #8fa6ff; }
  .homepage-hero.section-grid { background-size: 24px 24px, 24px 24px, auto; }
  .homepage-hero .steps span { border-radius: 9px; }
  .homepage-hero .hero-metrics div { box-shadow: 0 7px 18px rgba(17,24,39,.05); }
  .homepage-share { box-shadow: 0 16px 36px rgba(17,24,39,.16); }
  .info-strip { gap: 9px; }
  .feedback-card { border-radius: 17px; }
}

@media (max-width: 360px) {
  .topbar { gap: 6px; padding-inline: 11px; }
  .brand { gap: 7px; }
  .brand-mark { width: 34px; height: 34px; }
  .account-controls button,
  .mobile-upload-link { min-height: 38px; padding-inline: 9px; }
}

/* Studio readability refinement: hierarchy comes from tone and spacing, not tiny type. */
body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.brand-name small { color: #667085; font-size: 12px; }
.homepage-hero .hero-copy .eyebrow { font-size: 12px; line-height: 1.5; }
.hero-stickers span { font-size: 12px; }
.maker-note { font-size: 13px; line-height: 1.6; }
.homepage-hero .steps { font-size: 12px; }
.homepage-hero .steps b { font-size: 11px; }
.homepage-hero .hero-trust { font-size: 12px; }
.homepage-hero .hero-metrics span { color: #5f687a; font-size: 12px; line-height: 1.5; }
.homepage-hero .card-kicker,
.homepage-hero .format-badge { font-size: 12px; }
.homepage-hero .upload-intro,
.homepage-hero .upload-status,
.upload-access-note { color: #596376; font-size: 13px; line-height: 1.65; }
.homepage-payment-notice {
  margin: 10px 0 12px;
  padding: 10px 12px;
  color: #244f91;
  background: #eef4ff;
  border: 1px solid #cfdbf2;
  border-left: 3px solid var(--studio-blue);
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}
.homepage-payment-notice[hidden] { display: none; }
.homepage-hero .drop-zone small,
.upload-consent small { font-size: 12px; line-height: 1.6; }
.homepage-hero .next-step-note { font-size: 12px; line-height: 1.55; }
.homepage-hero .support-details summary small,
.homepage-hero .support-details-body p,
.school-chips span { font-size: 12px; line-height: 1.5; }

.homepage-access-copy span,
.homepage-invite-form small,
.homepage-account-note { color: #59677a; font-size: 13px; line-height: 1.65; }
.homepage-invite-form label { color: #46556a; font-size: 12px; }
.homepage-share-kicker { font-size: 12px; }
.homepage-share .homepage-share-description { color: #b9c2d1; font-size: 13px; }
.homepage-share-assurances span { color: #b9c2d1; font-size: 12px; }
.homepage-share-steps strong { font-size: 12px; }
.homepage-share-steps small,
.homepage-share-link-label small { color: #aeb8c8; font-size: 12px; }
.homepage-share-status { color: #b9c2d1; font-size: 12px; }

.info-strip strong { font-size: 15px; }
.info-strip span { color: #5f687a; font-size: 13px; line-height: 1.55; }
.section-kicker { font-size: 12px; letter-spacing: .08em; }
.section-heading > p:last-child { color: #657085; font-size: 13px; line-height: 1.65; }
.faq-grid summary { font-size: 14px; }
.faq-grid details > p { color: #596579; font-size: 13px; line-height: 1.7; }
.feedback-promises strong { font-size: 13px; }
.feedback-promises small { color: #5f697c; font-size: 12px; line-height: 1.6; }
.privacy-note { color: #566174; font-size: 13px; line-height: 1.7; }
.footer { font-size: 12px; }

@media (max-width: 560px) {
  .mobile-upload-link { font-size: 12px; }
  .hero-stickers span { font-size: 11px; }
  .maker-note { font-size: 12px; }
  .homepage-hero .steps { font-size: 12px; }
  .homepage-hero .hero-trust { gap: 3px; font-size: 11px; }
  .homepage-hero .hero-trust i { display: none; }
  .homepage-hero .hero-metrics div { min-height: 92px; }
  .homepage-hero .hero-metrics span { font-size: 11px; }
  .homepage-hero .support-details summary small,
  .homepage-hero .support-details-body p,
  .school-chips span { font-size: 12px; }
  .privacy-note { font-size: 12px; }
}

/* Professional homepage structure: keep the primary task focused, then expose account and sharing utilities. */
.homepage-hero.section-grid {
  align-items: center;
  row-gap: 28px;
  padding-block: 50px;
}
.homepage-hero .hero-copy {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  padding-top: 0;
}
.homepage-hero .upload-stage {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  padding-top: 0;
}
.homepage-hero .maker-note {
  margin-bottom: 18px;
  padding: 9px 12px;
  color: #43506a;
  background: rgba(255, 255, 255, .80);
  border-color: #dfe4ee;
  border-left-color: var(--studio-blue);
  box-shadow: none;
  font-weight: 650;
}
.homepage-hero .maker-note span { font-size: 13px; }
.homepage-hero .steps { padding-block: 4px; }
.homepage-hero .steps span,
.homepage-hero .steps span:first-child { padding: 7px 9px; }
.homepage-hero .hero-metrics { margin-top: 22px; }
.homepage-hero .hero-metrics div,
.homepage-hero .hero-metrics div:first-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 13px 14px;
  text-align: left;
}
.homepage-hero .hero-metrics strong {
  width: 100%;
  font-variant-numeric: tabular-nums;
}
.homepage-hero .hero-metrics span { width: 100%; }

.homepage-utilities {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: stretch;
  gap: 18px;
  margin: 30px clamp(28px, 6vw, 74px) 38px;
}
.homepage-utilities > * { min-width: 0; }
.homepage-utilities .homepage-access,
.homepage-utilities .homepage-share {
  grid-column: auto;
  grid-row: auto;
  width: 100%;
  height: 100%;
  margin: 0;
  transform: none;
}
.homepage-utilities .homepage-access {
  align-content: start;
  background: #fff;
  border: 1px solid var(--studio-line);
  box-shadow: 0 12px 30px rgba(17, 24, 39, .06);
}
.homepage-utilities .homepage-share {
  padding: 22px;
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(17, 24, 39, .14);
}
.homepage-utilities .homepage-share-main {
  align-items: flex-start;
  gap: 18px;
}
.homepage-utilities .homepage-share-heading { gap: 13px; }
.homepage-utilities .homepage-share-icon {
  width: 46px;
  height: 48px;
  border-radius: 12px;
}
.homepage-utilities .homepage-share-icon svg { width: 27px; height: 27px; }
.homepage-utilities .homepage-share .homepage-access-copy strong { font-size: 17px; }
.homepage-utilities .homepage-share-assurances,
.homepage-utilities .homepage-share-steps { display: none; }
.homepage-utilities .homepage-share-actions .homepage-access-button { min-width: 142px; }
.homepage-utilities .homepage-share-link {
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
  margin-top: 15px;
}
.homepage-utilities .homepage-share-link-label { min-width: 0; }
.homepage-utilities .homepage-share-status { margin-top: 12px; }

@media (max-width: 980px) {
  .homepage-utilities { grid-template-columns: minmax(0, 1fr); }
  .homepage-utilities .homepage-share-main { align-items: center; }
}

@media (max-width: 820px) {
  .homepage-hero.section-grid {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    padding: 36px 28px 38px;
  }
  .homepage-hero .hero-copy {
    display: block;
    grid-column: 1;
    grid-row: auto;
    order: 0;
  }
  .homepage-hero .upload-stage {
    grid-column: 1;
    grid-row: auto;
    order: 1;
    width: 100%;
  }
  .homepage-utilities { margin-inline: 28px; }
}

@media (max-width: 560px) {
  .homepage-hero.section-grid { gap: 24px; padding: 30px 17px 32px; }
  .homepage-hero .maker-note { width: 100%; margin-bottom: 16px; font-size: 12px; }
  .homepage-hero .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .homepage-hero .steps span,
  .homepage-hero .steps span:first-child { min-height: 38px; padding: 7px 8px; }
  .homepage-hero .hero-metrics { margin-top: 18px; }
  .homepage-hero .hero-metrics div,
  .homepage-hero .hero-metrics div:first-child {
    min-height: 80px;
    padding: 10px 8px;
    align-items: center;
    text-align: center;
  }
  .homepage-hero .hero-metrics span {
    display: flex;
    min-height: 33px;
    align-items: flex-start;
    justify-content: center;
  }
  .homepage-utilities { gap: 14px; margin: 20px 17px 30px; }
  .homepage-utilities .homepage-share { padding: 20px 16px 17px; }
  .homepage-utilities .homepage-share-main { display: grid; align-items: stretch; gap: 15px; }
  .homepage-utilities .homepage-share-actions { align-items: stretch; }
  .homepage-utilities .homepage-share-actions .homepage-access-button { width: 100%; min-width: 0; }
  .homepage-utilities .homepage-share-link input { font-size: 16px; }
}

@media (max-width: 360px) {
  .homepage-hero.section-grid { padding-inline: 15px; }
  .homepage-utilities { margin-inline: 15px; }
}

/* Keep the invitation reward visible beside the primary upload workflow. */
.hero-invite-prompt {
  display: grid;
  grid-column: 1 / -1;
  gap: 10px;
  min-width: 0;
  width: 100%;
  margin: 19px 0 15px;
  padding: 15px 16px 12px;
  color: #172d4a;
  background: linear-gradient(120deg, #f1f5ff, #f7f9ff 68%, #f1f8f7);
  border: 1px solid #d6e0f2;
  border-left: 4px solid #315efb;
  border-radius: 12px;
}
.hero-invite-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 14px; min-width: 0; }
.hero-invite-copy { display: grid; grid-column: 1; gap: 4px; width: 100%; min-width: 0; }
.hero-invite-kicker { color: #3657b6; font-size: 12px; font-weight: 800; }
.hero-invite-copy strong { color: #142b49; font-size: 16px; line-height: 1.4; }
.hero-invite-copy > span:last-child { color: #5f6e83; font-size: 13px; line-height: 1.5; }
.hero-invite-button { grid-column: 2; min-height: 42px; padding: 0 15px; white-space: nowrap; font-size: 14px; }
.hero-invite-progress { height: 5px; overflow: hidden; background: #dfe6f3; border-radius: 999px; }
.hero-invite-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #315efb, #21a27c); border-radius: inherit; transition: width .25s ease; }
.hero-invite-next-step { margin: 0; color: #68788d; font-size: 12px; line-height: 1.5; }
.hero-invite-button:disabled { cursor: wait; opacity: .72; }
.hero-share-status { margin: 0; color: #246c55; font-size: 13px; line-height: 1.5; }
.hero-share-status.is-error { color: #aa3c48; }
.invite-copy-fallback { grid-column: 1 / -1; min-width: 0; width: 100%; }
.invite-copy-fallback label { display: block; margin-bottom: 5px; color: #526781; font-size: 13px; }
.invite-copy-fallback input { width: 100%; font-size: 16px; }
.invite-copy-fallback[hidden], .hero-share-status[hidden], .hero-invite-progress[hidden] { display: none !important; }

.result-invite-prompt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px 16px;
  margin-top: 15px;
  padding: 13px 15px;
  background: #f7f9fc;
  border: 1px solid #e0e6ef;
  border-radius: 10px;
}
.result-invite-prompt > div { display: grid; gap: 3px; min-width: 0; }
.result-invite-prompt > div > span { color: #486ca8; font-size: 12px; font-weight: 750; }
.result-invite-prompt strong { color: #263b55; font-size: 13px; line-height: 1.45; }
.result-invite-prompt small { color: #6c7b8e; font-size: 12px; line-height: 1.5; }
.result-invite-prompt button { grid-column: 2; grid-row: 1 / span 2; min-height: 40px; white-space: nowrap; }
.result-invite-prompt p { grid-column: 1 / -1; margin: 2px 0 0; color: #718095; font-size: 12px; line-height: 1.5; }
.result-invite-prompt p.is-error { color: #aa3c48; }

@media (max-width: 560px) {
  .hero-invite-prompt { margin: 15px 0 12px; padding: 13px 12px 11px; }
  .hero-invite-main { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .hero-invite-button { grid-column: 1; width: 100%; }
  .result-invite-prompt { grid-template-columns: minmax(0, 1fr); }
  .result-invite-prompt button { grid-column: 1; grid-row: auto; width: 100%; }
  .result-invite-prompt p { grid-column: 1; }
}

/* 2.8.253 accessibility pass: keep operational text readable on desktop and mobile. */
.year-card label,
.requirement-field-grid label,
.custom-workbench-head p:last-child,
.custom-requirement-head p,
.custom-requirement-actions small,
.custom-manual-heading > span,
.school-requirement-scope,
.school-requirement-warning,
.profile-note,
.profile-source,
.profile-filter-note,
.mode-option small,
.verification-item,
.full-report-meta,
.full-report-value,
.full-report-action-row,
.comparison-changes,
.pagination-note,
.feedback-card form > label { font-size: 14px; line-height: 1.65; }

.requirement-field-grid label select,
.requirement-field-grid label input,
.profile-search-clear,
.quick-action-button,
.report-toolbar label,
.heading-review-select { font-size: 14px; }

.custom-support-boundary {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  padding: 13px 15px;
  color: #70551f;
  background: #fff8e8;
  border: 1px solid #efd79d;
  border-radius: 11px;
  font-size: 14px;
  line-height: 1.65;
}
.custom-support-boundary strong { flex: 0 0 auto; color: #8a5b08; }
.verification-scope { grid-column: 1 / -1; }

.feedback-status-panel {
  margin-top: 18px;
  padding: 18px;
  background: #f7f9fc;
  border: 1px solid #dfe7f0;
  border-radius: 14px;
}
.feedback-status-panel > div:first-child { display: flex; flex-direction: column; gap: 4px; }
.feedback-status-panel > div:first-child span { color: #60758b; font-size: 14px; }
.feedback-status-panel > button { margin-top: 12px; }
.my-feedback-list { display: grid; gap: 10px; margin-top: 14px; }
.my-feedback-list > p { margin: 0; color: #60758b; font-size: 14px; }
.my-feedback-item { padding: 13px 14px; background: #fff; border: 1px solid #dbe5ef; border-radius: 11px; }
.my-feedback-item > div { display: flex; justify-content: space-between; gap: 12px; }
.my-feedback-item time, .my-feedback-item small { color: #6b7f93; font-size: 13px; }
.my-feedback-item p { margin: 8px 0; color: #2e465d; font-size: 14px; line-height: 1.65; }
.my-feedback-item blockquote { margin: 10px 0 0; padding: 10px 12px; color: #285444; background: #edf8f3; border-left: 3px solid #48a37f; border-radius: 7px; font-size: 14px; line-height: 1.65; }
.my-feedback-item blockquote b { display: block; margin-bottom: 3px; }

@media (max-width: 560px) {
  .custom-support-boundary { flex-direction: column; }
  .my-feedback-item > div { flex-direction: column; gap: 3px; }
}

/* 2.8.253 workbench readability: no operational instruction or control below 14px. */
.workflow-card > .muted,
.workflow-task-access-copy strong,
.workflow-task-access-copy small,
.workflow-task-access .compact-button,
.format-source-fieldset legend,
.format-source-option strong,
.format-source-option small,
.custom-workbench-head .card-kicker,
.custom-workbench-head p:last-child,
.custom-workbench-head .compact-button,
.custom-auto-save-note,
.custom-requirement-head .card-kicker,
.custom-requirement-head h4,
.custom-requirement-head p:last-child,
.custom-requirement-head > span,
.custom-requirement-skip-link,
.custom-requirement-file-row .compact-button,
.custom-requirement-file-row > span,
.custom-requirement-import > label,
.custom-requirement-import textarea,
.custom-requirement-actions .compact-button,
.custom-requirement-actions small,
.custom-requirement-result-head strong,
.custom-requirement-result-head span,
.custom-requirement-results li strong,
.custom-requirement-results li small,
.custom-requirement-results li q,
.custom-requirement-results li b,
.custom-requirement-review > strong,
.custom-requirement-results > p,
.custom-manual-heading .card-kicker,
.custom-manual-heading > strong,
.custom-manual-heading > span,
.custom-view-switch > span strong,
.custom-view-switch > span small,
.custom-view-switch button,
.custom-progress-head .card-kicker,
.custom-progress-head h4,
.custom-progress-head p:last-child,
.custom-progress-actions .text-button,
.custom-progress-copy strong,
.custom-progress-copy small,
.custom-progress-note,
.custom-school-field,
.custom-school-field > span,
.custom-school-saved-picker label,
.custom-school-actions .compact-button,
.custom-copy-summary strong,
.custom-copy-summary small,
.custom-copy-controls > label,
.custom-copy-target-fieldset,
.custom-copy-target-fieldset legend,
.custom-copy-targets label span,
.custom-guided-copy > span,
.custom-guided-copy > small,
.custom-guided-actions .compact-button,
.requirement-module-title > span,
.requirement-module-title p,
.format-action-hint,
.custom-keep-button {
  font-size: 14px !important;
  line-height: 1.55;
}

.custom-progress-copy strong,
.custom-progress-copy small {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.custom-requirement-head > span {
  padding: 6px 9px;
}

.custom-requirement-import textarea {
  min-height: 126px;
}

.custom-progress-item {
  min-height: 54px;
  padding: 9px 10px;
}

.custom-auxiliary-tools {
  margin-top: 18px;
  overflow: hidden;
  background: rgba(247, 250, 253, .82);
  border: 1px solid #cbd9e7;
  border-radius: 13px;
}

.custom-auxiliary-tools > summary {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  color: #294f78;
  cursor: pointer;
  list-style: none;
}

.custom-auxiliary-tools > summary::-webkit-details-marker { display: none; }
.custom-auxiliary-tools > summary > span:first-child { display: flex; min-width: 0; flex-direction: column; }
.custom-auxiliary-tools > summary strong { font-size: 14px; }
.custom-auxiliary-tools > summary small { margin-top: 2px; color: #657b90; font-size: 14px; line-height: 1.5; }
.custom-auxiliary-tools > summary > span:last-child { color: #3971d7; font-size: 18px; transition: transform var(--motion-fast, 150ms) ease; }
.custom-auxiliary-tools[open] > summary > span:last-child { transform: rotate(180deg); }
.custom-auxiliary-tools-body { padding: 0 14px 14px; border-top: 1px solid #dce6f0; }
.custom-auxiliary-tools:not([open]) > .custom-auxiliary-tools-body { display: none; }
.custom-auxiliary-tools .custom-progress-panel { margin-top: 14px; }

@media (max-width: 560px) {
  .custom-auxiliary-tools > summary { align-items: flex-start; }
  .custom-auxiliary-tools-body { padding-inline: 11px; }
}

/* 2.8.254: keep the custom-format entry concise and reveal one path at a time. */
.custom-workbench-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
}

.custom-workbench-actions .custom-auto-save-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #4c6f63;
  font-size: 14px !important;
  line-height: 1.4;
  white-space: nowrap;
}

.custom-workbench-actions .custom-auto-save-note::before {
  width: 7px;
  height: 7px;
  content: "";
  background: #49a982;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(73, 169, 130, .12);
}

.custom-workbench-actions .compact-button { width: auto; }

.custom-entry-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin: 14px 0;
  padding: 4px;
  background: #eaf2fb;
  border: 1px solid #cadbeb;
  border-radius: 12px;
}

.custom-entry-tabs button {
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  color: #5d748c;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.custom-entry-tabs button:hover { color: #244f85; background: rgba(255, 255, 255, .55); }
.custom-entry-tabs button:focus-visible { outline: 3px solid rgba(57, 113, 215, .18); outline-offset: 1px; }
.custom-entry-tabs button.is-active {
  color: #255ab2;
  background: #fff;
  border-color: #c5d7e9;
  box-shadow: 0 4px 12px rgba(41, 79, 120, .10);
}

.custom-entry-panel[hidden] { display: none !important; }
.custom-entry-panel-title { margin: 0 0 9px; color: #294f78; font-size: 14px; }

.custom-requirement-import {
  margin: 0 0 14px;
  padding: 13px;
}

.custom-requirement-file-row { margin: 0; }
.custom-requirement-actions small { flex-basis: auto; }
.custom-requirement-results { margin: 0 0 14px; }

.custom-manual-heading {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 0 0 10px;
  padding-top: 0;
  border-top: 0;
}

.custom-manual-heading > strong { flex: 0 0 auto; }
.custom-manual-heading > span { min-width: 0; }

@media (max-width: 700px) {
  .custom-workbench-head { gap: 10px; }
  .custom-workbench-actions { width: 100%; justify-content: space-between; }
  .custom-entry-tabs button { padding-inline: 5px; }
  .custom-manual-heading { align-items: flex-start; flex-direction: column; gap: 2px; }
}

@media (max-width: 360px) {
  .custom-entry-tabs { gap: 3px; padding: 3px; }
  .custom-entry-tabs button { padding-inline: 1px; white-space: nowrap; }
}

/* 2.8.258: expose document risk checks and result counts without adding homepage clutter. */
.document-risk-card {
  margin: 0 0 18px;
  padding: 15px 16px;
  background: linear-gradient(145deg, #f8fbff, #f1f6fc);
  border: 1px solid #d8e4f0;
  border-radius: 13px;
}
.document-risk-head { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.document-risk-head::-webkit-details-marker { display: none; }
.document-risk-heading { display: grid; gap: 2px; }
.document-risk-heading .card-kicker { margin: 0; }
.document-risk-heading strong { color: #234d78; font-size: 15px; }
.document-risk-toggle { min-width: 52px; color: #55728f; font-size: 12px; font-weight: 750; text-align: right; }
.document-risk-toggle::before { content: '查看详情'; }
.document-risk-card[open] .document-risk-toggle::before { content: '收起详情'; }
.document-risk-body > p { margin: 9px 0 0; color: #75869a; font-size: 12px; line-height: 1.55; }
.document-risk-state { padding: 5px 9px; color: #2b6a56; background: #eaf7f1; border-radius: 999px; font-size: 12px; font-weight: 800; }
.document-risk-state[data-tone="warning"] { color: #805513; background: #fff3d8; }
.document-profile-metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; margin-top: 12px; }
.document-profile-metrics > div { display: grid; gap: 2px; padding: 8px; background: #fff; border: 1px solid #e2eaf2; border-radius: 9px; }
.document-profile-metrics strong { color: #234d78; font-size: 16px; font-variant-numeric: tabular-nums; }
.document-profile-metrics span { color: #61768b; font-size: 12px; }
.document-risk-list { display: grid; gap: 5px; margin: 11px 0 0; padding-left: 19px; color: #617187; font-size: 13px; line-height: 1.55; }
.result-outcome-overview { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 16px 0 0; }
.result-outcome-overview > div { display: grid; align-content: start; gap: 3px; min-width: 0; padding: 12px 11px; background: #f6f9fc; border: 1px solid #e1e9f1; border-radius: 11px; }
.result-outcome-overview span { color: #586f86; font-size: 13px; line-height: 1.4; }
.result-outcome-overview strong { color: #244e77; font-size: 22px; font-variant-numeric: tabular-nums; }
.result-outcome-overview small { color: #657c91; font-size: 12px; }
.requirement-review-current { color: #8a4e12 !important; font-weight: 800; }
.toast-action { flex: 0 0 auto; margin-left: 13px; padding: 6px 10px; color: #fff; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.55); border-radius: 8px; font: inherit; font-size: 13px; font-weight: 850; cursor: pointer; }
.toast-region.has-action { display: flex; align-items: center; gap: 9px; pointer-events: auto; }
.toast-region .toast-action { pointer-events: auto; }
.toast-action:hover { background: rgba(255,255,255,.28); }
.capability-boundary { margin: 22px clamp(18px, 5vw, 76px) 0; overflow: hidden; background: #f7f9fc; border: 1px solid #dce5ee; border-radius: 13px; }
.capability-boundary > summary { padding: 14px 16px; color: #294f78; cursor: pointer; font-size: 14px; font-weight: 850; }
.capability-boundary > summary span { display: flex; flex-direction: column; gap: 3px; }
.capability-boundary > summary small { color: #6a7f94; font-size: 13px; font-weight: 600; }
.capability-boundary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0 14px 14px; }
.capability-boundary-grid > div { padding: 12px; background: #fff; border: 1px solid #e0e8f0; border-radius: 10px; }
.capability-boundary-grid b { color: #294f78; font-size: 14px; }
.capability-boundary-grid p { margin: 5px 0 0; color: #61768b; font-size: 13px; line-height: 1.6; }
.feedback-access-state { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 9px; color: #60758a; font-size: 13px; }
.feedback-access-state.is-authorized { color: #805513; }

@media (max-width: 760px) {
  .document-profile-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .result-outcome-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result-outcome-overview > div:last-child { grid-column: 1 / -1; }
  .capability-boundary-grid { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .document-risk-card { padding: 12px 10px; }
  .document-profile-metrics { gap: 5px; }
  .document-profile-metrics > div { padding: 7px 6px; }
  .document-risk-head { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .document-risk-toggle { grid-column: 1 / -1; min-width: 0; text-align: left; }
  .result-outcome-overview > div { padding: 10px 9px; }
}

/* Keep one prominent invitation entry in the hero; the lower utility area is only for account access. */
.homepage-utilities { grid-template-columns: minmax(0, 1fr); }

/* 2.8.260: keep compact homepage labels readable on phone screens. */
@media (max-width: 560px) {
  .homepage-hero .steps b,
  .homepage-hero .hero-metrics span,
  .homepage-hero .next-step-note > span,
  .homepage-hero .support-details summary,
  .homepage-hero .support-details summary b {
    font-size: 12px;
  }
}

/* 2.8.256: keep decisions visible, while moving secondary detail out of the way. */
.custom-workbench-actions .custom-auto-save-note[data-state="loading"] { color: #416da3; }
.custom-workbench-actions .custom-auto-save-note[data-state="loading"]::before {
  background: #5b8fc9;
  box-shadow: 0 0 0 3px rgba(91, 143, 201, .14);
}
.custom-workbench-actions .custom-auto-save-note[data-state="error"] { color: #a23c3c; }
.custom-workbench-actions .custom-auto-save-note[data-state="error"]::before {
  background: #d15b5b;
  box-shadow: 0 0 0 3px rgba(209, 91, 91, .14);
}

.custom-requirement-attention { display: grid; gap: 9px; margin-top: 12px; }
.custom-requirement-attention > h4 { margin: 0; color: #70480d; font-size: 14px; }
.requirement-review-card {
  padding: 13px 14px;
  background: #fff;
  border: 1px solid #d6e2ee;
  border-radius: 11px;
}
.requirement-review-card.is-pending,
.requirement-review-card.is-conflict { background: #fffaf0; border-color: #ecd29a; }
.requirement-review-card.is-unsupported { background: #fff7f5; border-color: #ecc7be; }
.requirement-review-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.requirement-review-card-head strong { color: #234d78; font-size: 14px; }
.requirement-review-card-head span { flex: 0 0 auto; color: #8c5a12; font-size: 13px; font-weight: 800; }
.requirement-review-card p { margin: 6px 0 0; color: #60758a; font-size: 14px; line-height: 1.6; }
.requirement-review-card q { display: block; margin-top: 6px; color: #6a7d90; font-size: 13px; line-height: 1.55; }
.requirement-review-value { color: #2f5e91 !important; font-weight: 750; }
.requirement-review-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.custom-requirement-all-set { padding: 11px 12px; color: #2d6a57 !important; background: #eef8f4; border-radius: 9px; }
.custom-requirement-settled { margin-top: 10px; border: 1px solid #d6e3ef; border-radius: 10px; }
.custom-requirement-settled > summary { padding: 12px 13px; color: #385b7d; cursor: pointer; font-size: 14px; font-weight: 800; }
.custom-requirement-settled > div { display: grid; gap: 8px; padding: 0 11px 11px; }

.custom-guided-picker { display: grid; flex: 0 1 220px; gap: 4px; color: #60758a; font-size: 13px; font-weight: 800; }
.custom-guided-picker select { min-height: 42px; padding: 0 10px; color: #234d78; background: #fff; border: 1px solid #c7d8e8; border-radius: 9px; font: inherit; }

.processing-options,
.result-section-details,
.help-center {
  overflow: hidden;
  background: rgba(248, 251, 254, .88);
  border: 1px solid #d4e1ed;
  border-radius: 13px;
}
.processing-options { margin-top: 18px; }
.processing-options > summary,
.result-section-details > summary,
.help-center > summary {
  padding: 14px 16px;
  color: #294f78;
  cursor: pointer;
  font-size: 14px;
  font-weight: 850;
}
.processing-options-body,
.result-section-body { padding: 4px 16px 16px; border-top: 1px solid #dce6f0; }

.result-preview-callout { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 12px 14px; border: 1px solid #c9ddef; border-radius: 14px; background: linear-gradient(135deg, #f4f9fe, #eef6fd); color: #335b7f; }
.result-preview-callout > span { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px; background: #123d63; color: #fff; font-size: 12px; font-weight: 900; letter-spacing: .04em; }
.result-preview-callout div { display: grid; gap: 2px; }
.result-preview-callout strong { color: #173f62; font-size: 14px; }
.result-preview-callout small { color: #58758e; font-size: 12px; line-height: 1.5; }
.result-primary-actions { display: grid; grid-template-columns: minmax(220px, 1.3fr) repeat(2, minmax(150px, .85fr)); gap: 10px; }
.result-primary-actions .link-button { min-height: 48px; justify-content: center; font-size: 15px; }
.result-primary-actions .result-preview-button { border-color: #8bb7da; background: #eef7ff; color: #174d76; font-weight: 850; }
.result-zero-summary { margin: 14px 0 0; padding: 13px 15px; color: #245f4c; background: #ecf8f3; border: 1px solid #b8ddce; border-radius: 11px; font-size: 15px; line-height: 1.55; }
.result-section-details { margin-top: 14px; }
.result-section-details > summary { min-height: 48px; }
.result-more-actions { background: #fbfcfe; }
.empty-report-state { display: grid; gap: 7px; justify-items: start; }
.empty-report-state strong { color: #245f4c; font-size: 16px; }
.empty-report-state span { color: #61768b; font-size: 14px; line-height: 1.6; }
.empty-report-state > div { display: flex; flex-wrap: wrap; gap: 8px; }

.help-center { margin: 24px clamp(18px, 5vw, 76px) 30px; }
.help-center > summary { list-style: none; }
.help-center > summary::-webkit-details-marker { display: none; }
.help-center > summary > span { display: flex; flex-direction: column; gap: 3px; }
.help-center > summary small { color: #6a7f94; font-size: 13px; font-weight: 600; }
.help-center-body { padding-bottom: 20px; border-top: 1px solid #dce6f0; }
.help-center .info-strip { margin-top: 24px; }

@media (max-width: 700px) {
  .result-primary-actions { grid-template-columns: 1fr; }
  .result-primary-actions .link-button,
  .result-primary-actions button { width: 100%; min-height: 50px; font-size: 16px; }
  .result-section-details > summary { font-size: 15px; }
  .result-section-body { padding-inline: 11px; }
  .custom-guided-picker { flex: none; width: 100%; }
  .requirement-review-card-head { align-items: flex-start; flex-direction: column; gap: 4px; }
  .requirement-review-actions { flex-direction: column; }
  .requirement-review-actions button { width: 100%; min-height: 44px; }
  .help-center { margin-inline: 18px; }
}
/* Shared format library: community reuse without exposing submitter identity. */
.shared-format-library-entry {
  width: min(1180px, calc(100% - 32px));
  margin: 8px auto 34px;
  padding: 26px 30px;
  border: 1px solid #dbe4f0;
  border-radius: 22px;
  background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  box-shadow: 0 16px 42px rgba(30, 64, 175, 0.07);
}

.shared-format-library-entry h2 { margin: 4px 0 8px; font-size: clamp(22px, 2.5vw, 32px); }
.shared-format-library-entry p { margin: 0; color: #536174; line-height: 1.7; }
.shared-format-library-entry-actions { display: grid; gap: 8px; min-width: 220px; }
.shared-format-library-entry-actions span { color: #64748b; font-size: 12px; line-height: 1.45; text-align: center; }

.shared-format-workbench-entry {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #d8e4f4;
  border-radius: 16px;
  background: #f8fbff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 18px;
  align-items: center;
}

.shared-format-workbench-entry > div:first-child { display: grid; gap: 4px; }
.shared-format-workbench-entry > div:first-child span,
.shared-format-workbench-entry small { color: #64748b; line-height: 1.5; }
.shared-format-workbench-entry > div:nth-child(2) { display: flex; flex-wrap: wrap; gap: 8px; }
.shared-format-workbench-entry small { grid-column: 1 / -1; }

.shared-format-dialog {
  width: min(920px, calc(100vw - 28px));
  max-height: min(86vh, 820px);
  padding: 0;
  border: 0;
  border-radius: 22px;
  color: #172033;
  background: #fff;
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.28);
  overflow: auto;
}

.shared-format-dialog::backdrop { background: rgba(15, 23, 42, 0.56); backdrop-filter: blur(4px); }
.shared-format-source-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.shared-format-source-tabs .is-active { background: #e9f2ff; color: #185ac6; border-color: #8eb4ed; }
.format-library-section { padding: 0 24px 16px; }
.format-library-section > h3,
.format-library-community-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; font-size: 18px; }
.format-library-community-title { padding: 0 24px; }
.format-library-section > h3 span,
.format-library-community-title span { font-size: 12px; font-weight: 400; color: #64748b; }
.platform-format-card { border-color: #c9dcf4; align-self: start; }
.shared-format-dialog > .shared-format-source-tabs { padding-block: 12px; }
.shared-format-badge.is-platform { background: #eaf3ff; color: #245c9c; }
.community-format-selection { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 10px; background: #eaf3ff; color: #245c9c; font-size: 13px; }
.community-format-selection span { flex: 1; min-width: 150px; overflow-wrap: anywhere; }
.shared-format-dialog > div,
.shared-format-dialog > form { padding: 24px; }
.shared-format-dialog-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.shared-format-dialog-head h2 { margin: 3px 0 8px; font-size: 28px; }
.shared-format-dialog-head p { margin: 0; color: #64748b; line-height: 1.55; }
.shared-format-dialog-head .auth-close-button { flex: 0 0 auto; }
.shared-format-community-actions { margin-top: 18px; padding: 13px 15px; border: 1px solid #d9e4f1; border-radius: 14px; background: linear-gradient(135deg, #f7faff, #eef5fc); display: flex; align-items: center; justify-content: space-between; gap: 14px; color: #334155; font-size: 14px; font-weight: 700; }
.shared-format-community-actions > div { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.shared-format-quick-filter { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 11px; background: #eef4fb; }
.shared-format-quick-filter small { color: #526078; line-height: 1.45; }
.shared-format-active-filter { margin: 14px 0 0; padding: 9px 12px; border-radius: 10px; color: #234c77; background: #edf5ff; font-size: 13px; font-weight: 750; }
.share-format-preview { margin-top: 18px; padding: 15px; border: 1px solid #d9e4f1; border-radius: 14px; background: #f8fbff; }
.share-format-preview > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.share-format-preview span { padding: 5px 9px; border-radius: 999px; color: #245785; background: #e4f0fb; font-size: 13px; font-weight: 800; white-space: nowrap; }
.share-format-preview p { margin: 8px 0; color: #526078; }
.share-format-preview summary { color: #315f91; cursor: pointer; font-weight: 750; }
.my-shared-formats-dialog { width: min(760px, calc(100% - 28px)); }
.my-shared-formats-head-actions { display: flex; align-items: center; gap: 8px; }

.shared-format-browse-toolbar {
  margin-top: 20px;
  display: grid;
  gap: 14px;
}

.shared-format-sort-tabs {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid #dbe3ee;
  border-radius: 14px;
  background: #f3f6fa;
}

.shared-format-sort-tab {
  min-height: 38px;
  padding: 8px 16px;
  border: 0;
  border-radius: 10px;
  color: #64748b;
  background: transparent;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: color .16s ease, background .16s ease, box-shadow .16s ease;
}

.shared-format-sort-tab:hover { color: #1e3a5f; }
.shared-format-sort-tab.is-active { color: #153e75; background: #fff; box-shadow: 0 3px 12px rgba(30, 64, 175, .12); }

.shared-format-filter-panel {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fbfcfe;
}

.shared-format-filter-panel > summary {
  padding: 13px 15px;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.shared-format-filter-panel > summary::-webkit-details-marker { display: none; }
.shared-format-filter-panel > summary::after { content: '＋'; float: right; color: #64748b; }
.shared-format-filter-panel[open] > summary::after { content: '－'; }
.shared-format-filter-panel .shared-format-filters { margin: 0; padding: 0 15px 15px; }
.shared-format-filter-actions { align-self: end; display: flex; gap: 8px; }
.shared-format-filter-actions button { flex: 1; }

.shared-format-filters,
.share-format-fields {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.shared-format-filters label,
.share-format-fields label { display: grid; gap: 6px; color: #334155; font-size: 13px; font-weight: 700; }
.shared-format-filters input,
.shared-format-filters select,
.share-format-fields input,
.share-format-fields select,
.share-format-fields textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 11px;
  padding: 10px 12px;
  color: #172033;
  background: #fff;
  font: inherit;
}
.shared-format-filters button { align-self: end; min-height: 44px; }
.share-format-source-note { grid-column: 1 / -1; }
.share-format-fields textarea { resize: vertical; min-height: 78px; }
.share-format-consent { margin: 16px 0 0; display: flex; align-items: flex-start; gap: 10px; color: #475569; line-height: 1.55; }
.share-format-consent input { margin-top: 4px; }
.shared-format-dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.shared-format-library-status { margin: 14px 0; color: #526078; line-height: 1.55; }
.shared-format-dialog > .shared-format-library-status { margin-inline: 24px; }
.shared-format-library-status.is-error { color: #b42318; }
.shared-format-library-status.is-success { color: #13734b; }
.shared-format-results,
.my-shared-formats { display: grid; gap: 14px; }
.shared-format-results { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.shared-format-empty { padding: 24px; border: 1px dashed #cbd5e1; border-radius: 14px; color: #64748b; text-align: center; }
.shared-format-results > .shared-format-empty,
.shared-format-results > .shared-format-feed-loading { grid-column: 1 / -1; }
.shared-format-card,
.my-shared-format-card { padding: 17px; border: 1px solid #dbe3ee; border-radius: 17px; background: #fbfdff; display: grid; gap: 10px; }
.shared-format-card { min-height: 100%; background: #fff; box-shadow: 0 8px 24px rgba(15, 23, 42, .055); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.shared-format-card:hover { transform: translateY(-2px); border-color: #bdcce0; box-shadow: 0 14px 30px rgba(15, 23, 42, .09); }
.shared-format-card-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.shared-format-card-head h3 { margin: 0 0 5px; font-size: 17px; }
.shared-format-card-head p { margin: 0; color: #64748b; font-size: 13px; line-height: 1.5; }
.shared-format-badge { white-space: nowrap; padding: 5px 9px; border-radius: 999px; background: #e8f6ef; color: #13734b; font-size: 12px; font-weight: 800; }
.shared-format-discovery-label { width: fit-content; padding: 5px 9px; border-radius: 999px; color: #315f91; background: #edf5ff; font-size: 12px; font-weight: 800; }
.shared-format-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.shared-format-meta span { padding: 4px 8px; border-radius: 8px; background: #eef3f9; color: #526078; font-size: 12px; }
.shared-format-trust-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.shared-format-trust-summary span { padding: 8px 9px; border: 1px solid #e2e8f0; border-radius: 10px; color: #526078; background: #f8fafc; text-align: center; font-size: 13px; font-weight: 700; }
.shared-format-source { margin: 0; color: #475569; font-size: 13px; line-height: 1.55; }
.shared-format-rating { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; }
.shared-format-vote { min-height: 36px; padding: 7px 11px; border: 1px solid #cbd5e1; border-radius: 999px; color: #475569; background: #fff; font: inherit; font-size: 13px; font-weight: 750; cursor: pointer; transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease; }
.shared-format-vote:hover:not(:disabled) { transform: translateY(-1px); border-color: #94a3b8; }
.shared-format-vote.is-up.is-active { color: #11734b; border-color: #8bd1b4; background: #eaf8f1; }
.shared-format-vote.is-down.is-active { color: #b42318; border-color: #f1a7a0; background: #fff0ef; }
.shared-format-vote:disabled { cursor: not-allowed; opacity: .58; }
.shared-format-rating small { margin-left: auto; color: #64748b; }
.shared-format-rating-summary { display: flex; flex-wrap: wrap; gap: 7px; }
.shared-format-rating-summary span { padding: 5px 9px; border-radius: 999px; color: #526078; background: #eef3f9; font-size: 12px; font-weight: 700; }
.shared-format-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.shared-format-card-actions small { color: #64748b; }
.shared-format-detail { padding: 14px; border: 1px solid #cbd9e8; border-radius: 13px; background: #f8fbff; }
.shared-format-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.shared-format-detail > p { margin: 10px 0 0; color: #526078; font-size: 13px; line-height: 1.6; }
.shared-format-detail-actions { margin-top: 13px; display: flex; justify-content: flex-end; gap: 8px; }
.shared-format-rule-preview { margin: 0; padding-left: 18px; color: #475569; font-size: 13px; line-height: 1.65; }
.shared-format-status-badge { display: inline-flex; width: fit-content; padding: 4px 8px; border-radius: 999px; background: #fff3d6; color: #8a5a00; font-size: 12px; font-weight: 800; }
.shared-format-status-badge.is-approved { background: #e8f6ef; color: #13734b; }
.shared-format-status-badge.is-public { background: #e8f6ef; color: #13734b; }
.shared-format-status-badge.is-community_hidden,
.shared-format-status-badge.is-administrator_hidden { background: #fff0ef; color: #b42318; }
.shared-format-status-badge.is-rejected,
.shared-format-status-badge.is-withdrawn { background: #f1f3f5; color: #667085; }
.my-shared-format-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.my-shared-format-actions > small { color: #64748b; }
.my-shared-format-actions > div { display: flex; align-items: center; gap: 8px; }
.shared-format-load-more-row { display: flex; justify-content: center; padding: 18px 0 4px; }
.shared-format-load-more-row button { min-width: 180px; }
.shared-format-feed-loading { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.shared-format-feed-loading span { height: 210px; border-radius: 17px; background: linear-gradient(100deg, #f1f5f9 30%, #e7edf5 48%, #f1f5f9 66%); background-size: 260% 100%; animation: shared-format-feed-shimmer 1.2s ease-in-out infinite; }
@keyframes shared-format-feed-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

@media (max-width: 760px) {
  .format-library-section { padding: 0 18px 12px; }
  .format-library-community-title { padding-inline: 18px; }
  .shared-format-source-tabs > button { flex: 1; padding-inline: 8px; }
  .shared-format-library-entry { width: min(100% - 20px, 1180px); padding: 20px; align-items: stretch; flex-direction: column; }
  .shared-format-library-entry-actions { min-width: 0; }
  .shared-format-workbench-entry { grid-template-columns: 1fr; }
  .shared-format-workbench-entry small { grid-column: 1; }
  .shared-format-dialog > div,
  .shared-format-dialog > form { padding: 18px; }
  .shared-format-dialog-head h2 { font-size: 23px; }
  .shared-format-community-actions,
  .shared-format-quick-filter,
  .share-format-preview > div,
  .my-shared-format-actions { align-items: stretch; flex-direction: column; }
  .shared-format-community-actions > div,
  .my-shared-format-actions > div { width: 100%; }
  .shared-format-community-actions button,
  .my-shared-format-actions button { flex: 1; }
  .shared-format-dialog > .shared-format-library-status { margin-inline: 18px; }
  .shared-format-filters,
  .share-format-fields { grid-template-columns: 1fr; }
  .shared-format-sort-tabs { width: 100%; }
  .shared-format-sort-tab { flex: 1; padding-inline: 8px; }
  .shared-format-results,
  .shared-format-feed-loading { grid-template-columns: 1fr; }
  .shared-format-filter-actions { width: 100%; }
  .share-format-source-note { grid-column: 1; }
  .shared-format-card-head,
  .shared-format-card-actions { align-items: stretch; flex-direction: column; }
  .shared-format-rating small { width: 100%; margin-left: 0; }
  .shared-format-card-actions .primary-button { width: 100%; }
  .shared-format-trust-summary { grid-template-columns: 1fr; }
  .shared-format-detail-head { align-items: flex-start; }
  .shared-format-detail-actions { flex-direction: column-reverse; }
  .shared-format-detail-actions button { width: 100%; }
}

/* 1.5 motion system: restrained, responsive and driven by real UI state. */
:root {
  --motion-instant: 90ms;
  --motion-fast: 160ms;
  --motion-base: 240ms;
  --motion-enter: 420ms;
  --motion-ease: cubic-bezier(.22, 1, .36, 1);
  --motion-ease-standard: cubic-bezier(.2, 0, 0, 1);
}

.splash-screen { transition-duration: 280ms; }
.splash-content { animation-duration: 440ms; }
.splash-document::after { animation-duration: 620ms; animation-delay: 110ms; }
.splash-document-title { animation-delay: 70ms; }
.splash-document-line { animation-delay: 130ms; }
.splash-document-line.wide { animation-delay: 190ms; }
.splash-document-line.short { animation-delay: 250ms; }
.splash-document-check { animation-duration: 340ms; animation-delay: 360ms; }
.splash-progress span { animation-duration: 660ms; animation-delay: 0ms; }

@keyframes motion-rise-in {
  from { opacity: 0; transform: translate3d(0, 12px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes motion-file-ready {
  0% { transform: translateY(0) scale(1); }
  52% { transform: translateY(-4px) scale(1.035); }
  100% { transform: translateY(0) scale(1); }
}

html.motion-ready body:not(.splash-active) .homepage-hero .hero-copy > .eyebrow,
html.motion-ready body:not(.splash-active) .homepage-hero .hero-copy > h1,
html.motion-ready body:not(.splash-active) .homepage-hero .hero-copy > .hero-lede,
html.motion-ready body:not(.splash-active) .homepage-hero .hero-copy > .maker-note,
html.motion-ready body:not(.splash-active) .homepage-hero .hero-invite-prompt,
html.motion-ready body:not(.splash-active) .homepage-hero .steps,
html.motion-ready body:not(.splash-active) .homepage-hero .hero-metrics,
html.motion-ready body:not(.splash-active) .homepage-hero .upload-stage {
  animation: motion-rise-in var(--motion-enter) var(--motion-ease) both;
}

html.motion-ready body:not(.splash-active) .homepage-hero .hero-copy > h1 { animation-delay: 45ms; }
html.motion-ready body:not(.splash-active) .homepage-hero .hero-copy > .hero-lede { animation-delay: 80ms; }
html.motion-ready body:not(.splash-active) .homepage-hero .hero-copy > .maker-note { animation-delay: 110ms; }
html.motion-ready body:not(.splash-active) .homepage-hero .hero-invite-prompt { animation-delay: 140ms; }
html.motion-ready body:not(.splash-active) .homepage-hero .steps { animation-delay: 170ms; }
html.motion-ready body:not(.splash-active) .homepage-hero .hero-metrics { animation-delay: 200ms; }
html.motion-ready body:not(.splash-active) .homepage-hero .upload-stage { animation-delay: 90ms; }

html.motion-ready .motion-reveal {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity var(--motion-enter) ease, transform var(--motion-enter) var(--motion-ease);
  will-change: opacity, transform;
}

html.motion-ready .motion-reveal.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

@media (hover: hover) and (pointer: fine) {
  .homepage-hero .upload-card,
  .homepage-access,
  .shared-format-library-entry,
  .shared-format-card,
  .my-shared-format-card {
    transition: transform var(--motion-base) var(--motion-ease), border-color var(--motion-fast) ease, box-shadow var(--motion-base) ease;
  }

  .homepage-hero .upload-card:hover,
  .homepage-access:hover,
  .shared-format-library-entry:hover {
    transform: translateY(-2px);
    border-color: #c9d6e8;
    box-shadow: 0 18px 44px rgba(31, 58, 97, .10);
  }

  .shared-format-card:hover,
  .my-shared-format-card:hover {
    transform: translateY(-1px);
    border-color: #c8d6e7;
    box-shadow: 0 10px 24px rgba(30, 64, 175, .07);
  }
}

.homepage-hero .drop-zone {
  transition: transform var(--motion-base) var(--motion-ease), border-color var(--motion-fast) ease, background-color var(--motion-base) ease, box-shadow var(--motion-base) ease;
}

.homepage-hero .drop-zone.dragover {
  transform: translateY(-2px) scale(1.008);
  border-color: #315efb;
  background: #edf3ff;
  box-shadow: 0 0 0 5px rgba(49, 94, 251, .09), 0 16px 32px rgba(49, 94, 251, .10);
}

.homepage-hero .drop-zone.ready .file-icon { animation: motion-file-ready 380ms var(--motion-ease) both; }

.progress-bar { transition: width 520ms var(--motion-ease); }

.auth-dialog,
.shared-format-dialog,
.confirm-dialog {
  opacity: 0;
  transform: translate3d(0, 12px, 0) scale(.975);
  transition: opacity var(--motion-base) ease, transform 300ms var(--motion-ease), overlay 300ms allow-discrete, display 300ms allow-discrete;
}

.auth-dialog[open],
.shared-format-dialog[open],
.confirm-dialog[open] {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.auth-dialog::backdrop,
.shared-format-dialog::backdrop,
.confirm-dialog::backdrop {
  transition: background-color var(--motion-base) ease, backdrop-filter var(--motion-base) ease, overlay 300ms allow-discrete, display 300ms allow-discrete;
}

@starting-style {
  .auth-dialog[open],
  .shared-format-dialog[open],
  .confirm-dialog[open] {
    opacity: 0;
    transform: translate3d(0, 12px, 0) scale(.975);
  }

  .auth-dialog[open]::backdrop,
  .shared-format-dialog[open]::backdrop,
  .confirm-dialog[open]::backdrop {
    background: rgba(15, 23, 42, 0);
    backdrop-filter: blur(0);
  }
}

@supports selector(details::details-content) {
  .capability-boundary::details-content,
  .help-center::details-content,
  .processing-options::details-content,
  .result-section-details::details-content,
  .custom-auxiliary-tools::details-content,
  .document-risk-card::details-content {
    block-size: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-4px);
    transition: block-size 280ms var(--motion-ease), opacity var(--motion-fast) ease, transform var(--motion-base) var(--motion-ease), content-visibility 280ms allow-discrete;
  }

  .capability-boundary[open]::details-content,
  .help-center[open]::details-content,
  .processing-options[open]::details-content,
  .result-section-details[open]::details-content,
  .custom-auxiliary-tools[open]::details-content,
  .document-risk-card[open]::details-content {
    block-size: auto;
    opacity: 1;
    transform: translateY(0);
  }
}

html.motion-paused *,
html.motion-paused *::before,
html.motion-paused *::after { animation-play-state: paused !important; }

/* Keep the upload path clear, and share the public site during free access. */
.homepage-requirement-entry { margin: 20px 0 18px; }
.homepage-requirement-entry > p:first-child { margin: 0 0 10px; color: #34445c; font-size: 13px; font-weight: 700; line-height: 1.6; }
.homepage-requirement-entry > p:first-child > span { margin-left: 8px; color: #667085; font-size: 12px; font-weight: 400; }
.homepage-entry-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.homepage-entry-options button { display: grid; gap: 5px; min-width: 0; min-height: 70px; padding: 12px 10px; border: 1px solid #d5deec; border-radius: 10px; background: #fff; color: #24364f; text-align: left; cursor: pointer; }
.homepage-entry-options button strong { font-size: 14px; }
.homepage-entry-options button small { color: #667085; font-size: 12px; line-height: 1.5; }
.homepage-entry-options button[aria-pressed="true"] { border-color: #315efb; background: #eef3ff; box-shadow: inset 0 0 0 1px #315efb; }
.homepage-entry-options button:focus-visible { outline: 3px solid #a8bcff; outline-offset: 3px; }
.homepage-entry-status { margin: 9px 0 0; color: #3056a1; font-size: 12px; line-height: 1.6; }
.homepage-entry-status:empty { display: none; }
.hero-invite-prompt.is-public-share { margin-top: 16px; }
.hero-invite-prompt[hidden] { display: none !important; }
.result-primary-actions { grid-template-columns: minmax(210px, 1.2fr) repeat(3, minmax(140px, 1fr)); }
.result-primary-actions > * { min-width: 0; }
@media (max-width: 900px) {
  .result-primary-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .homepage-hero.section-grid { gap: 22px; padding-top: 26px; }
  .homepage-hero .hero-copy h1 { font-size: clamp(26px, 7.7vw, 36px); line-height: 1.3; letter-spacing: -.025em; }
  .homepage-hero .hero-copy .hero-lede { margin-block: 14px; font-size: 14px; line-height: 1.75; }
  .homepage-hero .maker-note, .homepage-hero .hero-metrics { display: none; }
  .homepage-requirement-entry { margin-block: 16px; }
  .homepage-requirement-entry > p:first-child > span { display: block; margin-left: 0; }
  .homepage-entry-options { gap: 6px; }
  .homepage-entry-options button { min-height: 72px; padding: 10px 8px; }
  .homepage-entry-options button small { font-size: 12px; }
  .homepage-hero .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .homepage-hero .steps span, .homepage-hero .steps span:first-child { padding: 8px 3px; font-size: 12px; }
  .hero-invite-prompt.is-public-share { padding: 12px; }
  .hero-invite-prompt.is-public-share .hero-invite-main { display: flex; align-items: center; gap: 10px; }
  .hero-invite-prompt.is-public-share .hero-invite-copy { min-width: 0; }
  .hero-invite-prompt.is-public-share .hero-invite-copy strong { font-size: 13px; }
  .hero-invite-prompt.is-public-share .hero-invite-kicker,
  .hero-invite-prompt.is-public-share #hero-invite-detail { display: none; }
  .hero-invite-prompt.is-public-share .hero-invite-button { flex: 0 0 auto; width: auto; min-height: 40px; padding-inline: 10px; font-size: 12px; }
  .result-primary-actions { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  :root { --motion-enter: 330ms; }
  html.motion-ready .motion-reveal { transform: translate3d(0, 8px, 0); }
  html.motion-ready .motion-reveal.is-revealed { transform: translate3d(0, 0, 0); }
  html.motion-ready body:not(.splash-active) .homepage-hero .hero-copy > .eyebrow,
  html.motion-ready body:not(.splash-active) .homepage-hero .hero-copy > h1,
  html.motion-ready body:not(.splash-active) .homepage-hero .hero-copy > .hero-lede,
  html.motion-ready body:not(.splash-active) .homepage-hero .hero-copy > .maker-note,
  html.motion-ready body:not(.splash-active) .homepage-hero .hero-invite-prompt,
  html.motion-ready body:not(.splash-active) .homepage-hero .steps,
  html.motion-ready body:not(.splash-active) .homepage-hero .hero-metrics,
  html.motion-ready body:not(.splash-active) .homepage-hero .upload-stage {
    animation-duration: var(--motion-enter);
  }
}

@media (prefers-reduced-motion: reduce) {
  html.motion-ready .motion-reveal,
  html.motion-ready .motion-reveal.is-revealed {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html.motion-ready body:not(.splash-active) .homepage-hero .hero-copy > .eyebrow,
  html.motion-ready body:not(.splash-active) .homepage-hero .hero-copy > h1,
  html.motion-ready body:not(.splash-active) .homepage-hero .hero-copy > .hero-lede,
  html.motion-ready body:not(.splash-active) .homepage-hero .hero-copy > .maker-note,
  html.motion-ready body:not(.splash-active) .homepage-hero .hero-invite-prompt,
  html.motion-ready body:not(.splash-active) .homepage-hero .steps,
  html.motion-ready body:not(.splash-active) .homepage-hero .hero-metrics,
  html.motion-ready body:not(.splash-active) .homepage-hero .upload-stage,
  .homepage-hero .drop-zone.ready .file-icon { animation: none; }

  .homepage-hero .drop-zone,
  .progress-bar,
  .auth-dialog,
  .shared-format-dialog,
  .confirm-dialog,
  .auth-dialog::backdrop,
  .shared-format-dialog::backdrop,
  .confirm-dialog::backdrop { transition: none; }

  @supports selector(details::details-content) {
    .capability-boundary::details-content,
    .help-center::details-content,
    .processing-options::details-content,
    .result-section-details::details-content,
    .custom-auxiliary-tools::details-content,
    .document-risk-card::details-content { transition: none; }
  }
}
