@font-face {
  font-family: "Kumbh Sans";
  src: url("fonts/KumbhSans-Regular.7da18baef8a5.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: "Kumbh Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #18273a;
  background: #f4f7fb;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
a { color: #0e3178; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #3e7bdd; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { outline-offset: 3px; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(1.7rem, 3vw, 2.25rem); line-height: 1.16; letter-spacing: -.025em; margin-bottom: .35rem; }
h2 { font-size: 1.12rem; line-height: 1.3; margin-bottom: .9rem; }
h3 { font-size: 1rem; }
small { font-size: .82rem; }

.prototype-banner { padding: 5px 16px; text-align: center; background: #dfe9fa; color: #0e3178; font-size: .78rem; font-weight: 600; letter-spacing: .02em; }
.site-header { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; padding: .9rem max(1.5rem, calc((100vw - 1420px) / 2)); background: #fff; border-bottom: 1px solid #d9e2ed; box-shadow: 0 5px 22px rgba(17, 54, 93, .04); }
.brand { display: flex; align-items: center; gap: .7rem; flex: none; color: #0e3178; text-decoration: none; }
.brand img { display: block; width: 8.4rem; height: 3.15rem; object-fit: contain; object-position: left center; }
.brand-app-name { padding-left: .7rem; border-left: 1px solid #cad5e7; font-size: .78rem; font-weight: 700; letter-spacing: .18em; }
.main-nav { display: flex; flex-wrap: wrap; gap: .38rem; flex: 1; }
.main-nav a { display: inline-flex; align-items: center; gap: .38rem; min-height: 36px; padding: .38rem .62rem; border: 1px solid #d9e4ef; border-radius: .6rem; background: linear-gradient(180deg, #fff, #f8fbfe); color: #3c5067; font-size: .88rem; font-weight: 600; text-decoration: none; box-shadow: 0 1px 2px rgba(23, 63, 112, .04); }
.main-nav a:hover { border-color: #adc4df; background: #eaf1fa; color: #153f70; transform: translateY(-1px); }
.nav-icon { display: inline-grid; width: 1.35rem; height: 1.35rem; place-items: center; border-radius: .38rem; background: #e8f0fb; color: #164a82; font-size: .84rem; font-weight: 800; line-height: 1; }
.account { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; color: #52667a; font-size: .88rem; }
.account form { margin: 0; }
.account-settings { display: inline-flex; align-items: center; gap: .4rem; color: #354f6b; font-weight: 600; text-decoration: none; }
.account-settings:hover { color: #0e3178; }
.text-button { padding: .35rem .1rem; border: 0; background: none; color: #174d83; font-weight: 600; text-decoration: none; }
.text-button:hover { color: #0a3158; text-decoration: underline; }
.page-shell { width: min(1260px, 100%); margin: 0 auto; padding: 2.1rem 1.5rem 4rem; }
.auth-shell { min-height: calc(100vh - 2rem); display: grid; align-content: center; }
.auth-panel { width: min(460px, 100%); margin: 0 auto; padding: 2.1rem; background: #fff; border: 1px solid #dce5ef; border-radius: 1rem; box-shadow: 0 12px 36px rgba(26, 61, 101, .08); }
.auth-panel > p { color: #586a7c; }
.auth-panel .field { margin: 1.2rem 0; }
.secondary-form { margin-top: 1rem; }
.eyebrow { margin-bottom: .45rem; color: #356ca4; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.page-heading p { margin: 0; color: #5d6e80; }
.page-heading .actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: .56rem 1rem; border: 1px solid #215584; border-radius: .58rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.primary-button { background: #0e3178; color: #fff; }
.primary-button:hover { background: #3e7bdd; color: #fff; }
.secondary-button { background: #fff; color: #0e3178; border-color: #aabddd; }
.secondary-button:hover { background: #eff5fb; color: #103d70; }
.primary-button:disabled, .secondary-button:disabled { opacity: .53; cursor: not-allowed; }
.messages { margin-bottom: 1rem; }
.message, .notice { padding: .85rem 1rem; border-radius: .6rem; border: 1px solid #c9d9e9; background: #eaf2fb; color: #244563; }
.message { margin: 0 0 .5rem; }
.message.success { background: #e6f4eb; border-color: #c3e3cf; color: #1a5d3b; }
.notice.warning { margin-bottom: 1.2rem; background: #fff6e6; border-color: #ecd4a3; color: #6d4a12; }
.notice a { color: inherit; font-weight: 700; }
.panel, .stat-card { background: #fff; border: 1px solid #dce5ef; border-radius: .85rem; box-shadow: 0 3px 15px rgba(25, 62, 105, .035); }
.panel { padding: 1.3rem; min-width: 0; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .65rem; }
.panel-head h2 { margin-bottom: 0; }
.panel-head span, .muted { color: #68788b; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(290px, 1fr); gap: 1rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.stat-card { display: grid; gap: .3rem; padding: 1.15rem 1.3rem; }
.stat-card > span { color: #597087; font-size: .91rem; }
.stat-card > strong { color: #173f70; font-size: 1.65rem; line-height: 1.2; }
.stat-card > small { color: #6c7d8d; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .8rem .7rem; border-bottom: 1px solid #e6ecf3; text-align: left; vertical-align: top; }
th { color: #53687c; font-size: .82rem; font-weight: 700; white-space: nowrap; }
td { font-size: .93rem; }
tr:last-child td { border-bottom: 0; }
.status { display: inline-block; padding: .18rem .55rem; border-radius: .4rem; background: #eef3f8; color: #3b5570; font-size: .79rem; font-weight: 600; white-space: nowrap; }
.status.good { background: #e4f4ea; color: #17633c; }
.status.warning { background: #fff0d7; color: #82591c; }
.status.prominent { padding: .45rem .7rem; font-size: .87rem; }
.empty { margin: 1rem 0 0; color: #6e7c8b; }
.plain-list { margin: 0; padding: 0; list-style: none; }
.plain-list li { padding: .75rem 0; border-bottom: 1px solid #e7edf3; }
.plain-list li:last-child { border-bottom: 0; }
.plain-list li span { margin-left: .5rem; color: #53677e; }
.plain-list small { display: block; color: #788898; }
.detail-list { margin: 0; }
.detail-list > div { display: grid; grid-template-columns: minmax(130px, 38%) minmax(0, 1fr); gap: .75rem; padding: .55rem 0; border-bottom: 1px solid #ecf0f4; }
.detail-list > div:last-child { border-bottom: 0; }
.detail-list dt { color: #6a7b8c; }
.detail-list dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.top-gap { margin-top: 1rem; }
.audit-note { margin-top: 1rem; color: #596e85; font-size: .86rem; }
.test-item + .test-item { margin-top: .55rem; }
.grade-table th:not(:first-child), .grade-table td { text-align: center; }
.grade-table select { min-width: 4.2rem; padding: .45rem; }
.resource-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; }
.resource-card { padding: 1rem; border: 1px solid #dce5ef; border-radius: .7rem; background: #f9fbfe; }
.resource-card h3 { color: #0e3178; margin-bottom: .6rem; }
.resource-item + .resource-item { margin-top: .9rem; padding-top: .9rem; border-top: 1px solid #e2e8f0; }
.resource-item p, .resource-item ol { margin: .5rem 0 .75rem; color: #58595b; font-size: .88rem; }
.compact-button { min-height: 34px; padding: .35rem .7rem; font-size: .85rem; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .7rem; margin: 1rem 0; }
.result-grid > div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem; border-radius: .55rem; background: #eef4fd; color: #58595b; }
.result-grid strong { color: #0e3178; font-size: 1.3rem; }
.final-grade-card { display: inline-grid; grid-template-columns: auto auto; align-items: center; gap: .15rem .8rem; min-width: 190px; margin-top: 1rem; padding: .75rem 1rem; border: 1px solid #b8cae4; border-radius: .65rem; background: #eef4fd; color: #355675; }
.final-grade-card span { font-weight: 700; }
.final-grade-card strong { grid-row: span 2; color: #0e3178; font-size: 2rem; line-height: 1; }
.final-grade-card small { color: #687b8f; }
.own-grade-panel, .oversight-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.own-grade-panel h2, .own-grade-panel p, .oversight-heading h3 { margin-bottom: 0; }
.own-grade-panel p { color: #68788b; font-size: .88rem; }
.final-grade-summary { display: flex; align-items: center; gap: .65rem; padding: .55rem .8rem; border: 1px solid #bfd0e7; border-radius: .6rem; background: #edf4fd; color: #49647f; }
.final-grade-summary strong { color: #0e3178; font-size: 1.55rem; line-height: 1; }
.final-grade-summary.compact { padding: .4rem .65rem; }
.final-grade-summary.compact strong { font-size: 1.3rem; }
.recording-player-panel { text-align: center; }
.recording-player { display: block; width: 100%; max-height: 70vh; border-radius: .55rem; background: #101923; }
.recording-player.audio { min-height: 54px; background: transparent; }
.recording-tracking-note { margin-top: 1rem; text-align: left; }
.oversight-heading { margin: 1.2rem 0 .55rem; }
.grade-comparison-legend { display: flex; flex-wrap: wrap; gap: .6rem 1rem; margin: 0 0 .65rem; color: #637589; font-size: .8rem; }
.grade-comparison-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.legend-swatch { width: .8rem; height: .8rem; border-radius: .2rem; border: 1px solid transparent; }
.legend-swatch.lower, .grade-compare-lower { background: #fde8e6; border-color: #efb8b2; color: #8d2822; }
.legend-swatch.higher, .grade-compare-higher { background: #e4f5e9; border-color: #add8ba; color: #1d6638; }
.grade-compare-lower, .grade-compare-higher { font-weight: 700; box-shadow: inset 0 0 0 1px currentColor; }
.document-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.document-signing-banner { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: 1rem; padding: .7rem .9rem; border: 1px solid #d2dfec; border-radius: .65rem; background: #f7fafe; color: #49627b; font-size: .86rem; }
.document-signing-banner small { flex-basis: 100%; color: #6e7f91; }
.document-preview { position: relative; width: min(790px, 100%); min-height: 1050px; margin: 0 auto; padding: 3.2rem 4.2rem 5rem; overflow: hidden; border: 1px solid #d9e2ed; background: #fff; box-shadow: 0 10px 35px rgba(14, 49, 120, .1); color: #58595b; text-align: center; }
.document-preview::before { content: "V"; position: absolute; inset: 25% 0 auto; color: rgba(14, 49, 120, .035); font-size: 30rem; line-height: 1; pointer-events: none; }
.document-preview > * { position: relative; }
.document-logo { width: 10.5rem; height: auto; margin-bottom: 1.6rem; }
.document-preview h1 { margin-bottom: .2rem; color: #0e3178; font-size: 2.65rem; letter-spacing: .04em; }
.document-preview h2 { color: #0e3178; font-size: 1.5rem; font-weight: 500; }
.document-preview h3 { margin: 1rem 0 2.3rem; padding-bottom: .7rem; border-bottom: 2px solid #0e3178; color: #0e3178; font-size: 2rem; font-weight: 500; }
.document-id { color: #0e3178; font-weight: 700; }
.document-kicker { margin-top: 3rem; font-size: .9rem; letter-spacing: .04em; }
.document-statement, .document-grade-intro { margin: 0 auto 1.5rem; text-align: left; }
.document-assessors { display: grid; gap: .4rem; margin-bottom: 2.6rem; text-align: left; }
.document-signature-preview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; margin: 0 0 1.5rem; }
.document-signature-preview > div { display: grid; align-content: end; min-height: 74px; padding-bottom: .35rem; border-bottom: 1px solid #0e3178; }
.document-signature-preview img { display: block; width: min(180px, 90%); max-height: 58px; margin: 0 auto .2rem; object-fit: contain; }
.document-signature-preview span { color: #5f7082; font-size: .76rem; }
.document-final-grade { margin: 1.2rem 0; color: #0e3178; font-size: 4rem; line-height: 1; }
.document-preview footer { position: absolute; right: 0; bottom: 1.4rem; left: 0; color: #58595b; font-size: .73rem; }
.appendix-preview { text-align: left; }
.appendix-preview .document-logo { display: block; width: 8rem; margin-right: auto; margin-left: auto; }
.appendix-preview h1, .appendix-preview .document-id { text-align: center; }
.appendix-preview h1 { font-size: 1.55rem; letter-spacing: 0; }
.appendix-preview h3 { width: 70%; margin-top: .8rem; }
.document-grade-title { color: #0e3178; font-size: 1.35rem; }
.document-descriptor-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem 2rem; margin: 2rem 0; }
.document-descriptor-grid > div { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px solid #dce5ef; }
.document-descriptor-grid strong { color: #0e3178; font-size: 1.2rem; }
.document-detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem 2rem; margin-top: 2rem; }
.document-detail-grid > div { display: grid; grid-template-columns: 1fr 1.35fr; gap: .5rem; }
.document-detail-grid dt { color: #6c7c8c; }
.document-detail-grid dd { margin: 0; color: #0e3178; }

.form-panel { padding: 1.5rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; }
.field { margin-bottom: 1.05rem; min-width: 0; }
.field label, .search-form label { display: block; margin-bottom: .36rem; color: #334d68; font-size: .88rem; font-weight: 700; }
.field input, .field select, .field textarea, .search-form input, .search-form select { width: 100%; min-height: 42px; padding: .58rem .68rem; border: 1px solid #b9cad9; border-radius: .45rem; background: #fff; color: #192d42; }
.field input[type="checkbox"] { width: auto; min-height: 0; padding: 0; }
.field textarea { min-height: 92px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .search-form input:focus, .search-form select:focus { border-color: #326eac; outline: 2px solid #b5d4f2; }
.field small { display: block; color: #65788a; }
.form-error, .field-error { color: #9e2c26; font-size: .85rem; }
.form-error ul, .field-error ul { margin: .3rem 0 .5rem; padding-left: 1.2rem; }
.form-error { padding: .7rem; background: #fff0ee; border-radius: .5rem; grid-column: 1 / -1; }
.form-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: .5rem; }
.form-note { color: #617487; font-size: .88rem; }
.search-form { margin-bottom: 1rem; max-width: 640px; }
.search-row { display: flex; gap: .5rem; }
.search-row input, .search-row select { flex: 1; min-width: 0; }
.email-preview { margin: 0; padding: 1rem; overflow-wrap: anywhere; white-space: pre-wrap; border: 1px solid #dbe4ed; border-radius: .55rem; background: #f7f9fc; color: #263b50; font: inherit; line-height: 1.55; }
.secret-box { padding: .8rem; margin: 1rem 0; background: #edf3fa; border: 1px solid #cadbed; border-radius: .5rem; overflow-wrap: anywhere; }
.signature-preview-card { display: flex; align-items: center; gap: 1rem; min-height: 130px; margin: 1rem 0; padding: 1rem; border: 1px solid #d5e1ee; border-radius: .7rem; background: #f8fbfe; }
.signature-preview-card img { display: block; width: min(300px, 55%); max-height: 105px; object-fit: contain; padding: .5rem; border-radius: .45rem; background: #fff; }
.signature-preview-card div { display: grid; gap: .3rem; }
.signature-preview-card small, .signature-history small { display: block; color: #718296; overflow-wrap: anywhere; }
.break-anywhere { overflow-wrap: anywhere; }
details { margin-bottom: 1rem; }
summary { cursor: pointer; color: #174d83; }
.instruction-settings-list { display: grid; gap: 0; }
.instruction-setting-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1.2rem; padding: 1rem 0; border-bottom: 1px solid #e4ebf2; }
.instruction-setting-row:last-child { border-bottom: 0; }
.instruction-setting-row p { margin: .45rem 0; color: #344b63; }
.instruction-setting-row small { color: #6b7d90; }
.instruction-setting-heading { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; }
.instruction-setting-heading h3 { margin: 0; }
.presentation-part-buttons { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1rem 0 1.3rem; }
.presentation-part-buttons .is-active { background: #0e3178; border-color: #0e3178; color: #fff; }
.controller-part-panel { padding-top: 1.2rem; border-top: 1px solid #dce5ef; }
.controller-part-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.controller-part-heading p { max-width: 760px; color: #435b73; }
.private-reference { margin-top: 1rem; padding: 1rem; border: 1px solid #d8e3ee; border-radius: .7rem; background: #f7fafe; }
.private-reference ol { margin-bottom: 1rem; }
.private-reference li + li { margin-top: .45rem; }
.scenario-reference { color: #304a63; font-size: 1.02rem; line-height: 1.65; }
.media-command-bar { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #dce5ef; }
.media-command-status { color: #607487; font-size: .88rem; }

@media (max-width: 800px) {
  .site-header { gap: .75rem; padding: .9rem 1rem; }
  .main-nav { order: 3; flex-basis: 100%; }
  .page-shell { padding: 1.4rem 1rem 3rem; }
  .content-grid { grid-template-columns: 1fr; }
  .instruction-setting-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .auth-panel { padding: 1.4rem; }
  .detail-list > div { grid-template-columns: 1fr; gap: 0; }
  .account { width: 100%; justify-content: space-between; }
  .main-nav a { padding: .4rem .55rem; }
  .document-preview { min-height: 900px; padding: 2rem 1.2rem 4rem; }
  .document-preview h1 { font-size: 2rem; }
  .document-descriptor-grid, .document-detail-grid { grid-template-columns: 1fr; }
}
