:root {
  color-scheme: light;
  --ink: #172a24; --muted: #51645a; --line: #dce5dc; --paper: #f3f6ef;
  --white: #fff; --forest: #15352d; --dark: #102c25; --mint: #e3f0dc;
  --lime: #d6ee9d; --accent: #2d654d; --warm: #fff4dc; --amber: #745016;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  background: var(--paper); color: var(--ink); font-size: 15px;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, textarea, select { font: inherit; }
button, summary { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 3px solid #69987a; outline-offset: 3px; }
a { color: var(--accent); text-underline-offset: 3px; }
p { margin: 0; line-height: 1.7; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h1 { font-size: clamp(26px, 3.2vw, 40px); letter-spacing: -.055em; }
h2 { font-size: 22px; letter-spacing: -.035em; }
h3 { font-size: 16px; }
small { color: var(--muted); }
[hidden] { display: none !important; }
.startup { padding: 32px; }
.shell { display: grid; grid-template-columns: 228px minmax(0, 1fr); min-height: 100vh; }
.sidebar { display: flex; flex-direction: column; gap: 32px; background: var(--dark); color: #e6f2e7; padding: 28px 18px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; gap: 12px; align-items: center; padding: 0 8px; }
.brand strong { display: block; font-size: 19px; letter-spacing: .015em; }
.brand small { display: block; color: #b5cbbf; margin-top: 4px; font-size: 11px; letter-spacing: .11em; }
.mark { width: 37px; height: 37px; display: grid; place-items: center; flex: 0 0 37px; background: var(--lime); color: var(--dark); border-radius: 11px; font-size: 21px; font-weight: 800; }
.side-nav { display: grid; gap: 5px; }
.side-nav button { text-align: left; background: transparent; color: #d4e5d9; border: 1px solid transparent; border-radius: 9px; padding: 12px 13px; display: flex; gap: 10px; align-items: center; }
.side-nav button:hover, .side-nav .current { background: #25473b; border-color: #395b4c; color: #f2fae9; }
.side-nav .current .nav-icon { color: var(--lime); }
.nav-icon { font-size: 17px; width: 22px; text-align: center; color: #a9c6b6; }
.side-foot { margin-top: auto; border-top: 1px solid #385549; padding: 16px 8px 0; }
.side-foot small { display: block; color: #bacdc1; font-size: 12px; margin-top: 5px; }
.topbar { height: 68px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 36px; border-bottom: 1px solid var(--line); background: #fbfcf9; }
.topbar p { color: var(--muted); font-size: 13px; }
.topbar strong { color: var(--ink); }
.page { padding: 30px 36px 50px; max-width: 1520px; margin: auto; }
.page-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 0 0 22px; }
.page-title p { margin-top: 7px; color: var(--muted); }
.hero { padding: 34px; border-radius: 18px; color: white; background: radial-gradient(ellipse at 96% -30%, #49785a 0, transparent 55%), var(--forest); margin-bottom: 30px; display: grid; grid-template-columns: 1fr 192px; gap: 20px; align-items: center; overflow: hidden; }
.hero h1 { margin: 7px 0 10px; }
.hero p { color: #dae9df; max-width: 42em; }
.hero .tag { background: #294d3e; color: #e0f0d9; border: 1px solid #4e6d5b; }
.hero-graphic { position: relative; height: 110px; width: 165px; margin: auto; display: flex; align-items: center; justify-content: center; }
.hero-graphic i { border: 1px solid #739580; border-radius: 14px; position: absolute; width: 126px; height: 86px; transform: rotate(-12deg); background: #284c3e; }
.hero-graphic i:nth-child(2) { transform: rotate(7deg) translate(9px, 0); background: #486d54; }
.hero-graphic strong { z-index: 1; font-size: 48px; color: var(--lime); transform: translate(10px, -1px); }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 15px; padding: 22px; min-width: 0; }
.course-card { max-width: 780px; display: grid; gap: 15px; }
.course-card p { color: var(--muted); }
.case-library { margin-top: 32px; }
.case-library .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.case-card { display: grid; align-content: start; gap: 12px; }
.case-card h3 { font-size: 18px; }
.case-card p { color: var(--muted); }
.case-filters { gap: 6px; }
.project-switch { margin-bottom: 13px; }
.catalog-promo { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 18px; align-items: center;
  margin: 22px 0; padding: 20px 22px; border: 1px solid #cbdcb5; border-radius: 16px;
  background: linear-gradient(120deg, #f7f9e9 0%, #edf5e8 62%, #e4f1dc 100%); box-shadow: 0 10px 28px #294c3420; }
.catalog-promo h2 { margin: 6px 0 5px; }
.catalog-promo p { color: var(--muted); font-size: 13px; max-width: 64em; }
.catalog-promo-icon { width: 58px; height: 58px; border-radius: 17px; display: grid; place-items: center;
  color: #eef8dc; background: var(--forest); font-size: 28px; box-shadow: inset 0 0 0 1px #ffffff24; }
.catalog-hero { display: grid; grid-template-columns: minmax(0,1fr) 120px; gap: 28px; align-items: center;
  padding: 32px 34px; border-radius: 18px; color: white; overflow: hidden;
  background: radial-gradient(circle at 92% 5%, #51765a 0, transparent 37%), var(--forest); }
.catalog-hero h1 { margin: 8px 0 10px; }
.catalog-hero p { max-width: 54em; color: #d9e9df; }
.catalog-hero .tag { color: #e7f3dd; background: #294d3e; border: 1px solid #4e6d5b; }
.catalog-hero-lock { width: 92px; height: 92px; display: grid; place-items: center; justify-self: center;
  border-radius: 28px; color: var(--lime); background: #284a3e; border: 1px solid #65816d; transform: rotate(4deg); }
.catalog-hero-lock span { font-size: 35px; line-height: 1; }
.catalog-hero-lock small { color: #d7e8dc; font-size: 11px; margin-top: -16px; }
.catalog-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin: 14px 0; }
.catalog-stats div { display: flex; align-items: baseline; gap: 9px; padding: 13px 16px; background: white;
  border: 1px solid var(--line); border-radius: 11px; }
.catalog-stats strong { color: var(--forest); font-size: 23px; }
.catalog-stats span { color: var(--muted); font-size: 12px; }
.catalog-toolbar { display: grid; grid-template-columns: minmax(240px,1fr) 170px 150px auto; gap: 10px;
  align-items: end; padding: 17px; margin-bottom: 26px; }
.catalog-toolbar .field { gap: 4px; }
.catalog-toolbar label { font-size: 12px; }
.catalog-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 13px; }
.catalog-heading p { color: var(--muted); font-size: 13px; margin-top: 5px; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 15px; }
.catalog-card { min-width: 0; display: grid; align-content: start; gap: 13px; padding: 20px; border-radius: 15px;
  background: white; border: 1px solid var(--line); box-shadow: 0 4px 16px #1835260a; }
.catalog-card.is-locked { border-top: 4px solid #b8ca8b; padding-top: 17px; }
.catalog-card.is-open { border-top: 4px solid #4f8968; padding-top: 17px; }
.catalog-card h2 { font-size: 20px; margin-top: 4px; }
.catalog-card > div > small { color: #5f7468; }
.catalog-card .catalog-role { color: #315848; font-weight: 700; font-size: 13px; }
.catalog-description { color: var(--muted); font-size: 13px; }
.catalog-status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 99px;
  font-size: 11px; font-weight: 750; white-space: nowrap; }
.catalog-status.locked { background: #f3f0df; color: #66581f; }
.catalog-status.open { background: #e2f1e3; color: #225f3b; }
.catalog-facts { display: grid; gap: 9px; margin: 0; padding: 11px 0; border-block: 1px solid #e7ece5; }
.catalog-facts div { display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 8px; }
.catalog-facts dt { color: #6a7a71; font-size: 11px; font-weight: 700; }
.catalog-facts dd { margin: 0; color: #334e41; font-size: 12px; line-height: 1.55; }
.catalog-card > .btn { width: 100%; margin-top: auto; }
.catalog-empty { grid-column: 1 / -1; text-align: center; padding-block: 36px; }
.catalog-empty p { color: var(--muted); margin-top: 7px; }
.catalog-detail { display: grid; gap: 14px; }
.catalog-detail > h2 { font-size: 26px; }
.catalog-standard { color: #5a7063; font-size: 13px; margin-bottom: -8px; }
.catalog-lead { color: var(--muted); font-size: 15px; }
.catalog-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.catalog-detail-grid section { padding: 14px; border-radius: 11px; background: #f4f7f1; border: 1px solid #e1e9df; }
.catalog-detail-grid h3 { margin-bottom: 7px; color: #315848; }
.catalog-detail-grid p, .catalog-detail-grid li { color: var(--muted); font-size: 13px; line-height: 1.65; }
.catalog-detail-grid ul { margin: 0; padding-left: 18px; }
.catalog-lock-note { padding: 14px 16px; border-radius: 11px; border: 1px solid #eadba8; background: #fff8e7; }
.catalog-lock-note p { color: #665b3a; font-size: 13px; margin-top: 5px; }
.catalog-detail-actions { padding-top: 3px; }
.catalog-detail-actions small { flex-basis: 100%; }
.admin-project { margin-top: 9px; font-size: 13px; }
.reference-brief { display: grid; gap: 9px; background: #edf4e9; border: 1px solid #d5e4d3; padding: 13px; border-radius: 10px; margin-block: 13px; }
.reference-brief p { font-size: 13px; color: var(--muted); }
.reference-brief .reference-note { font-size: 12px; }
.reference-examples { display: flex; flex-wrap: wrap; gap: 6px; }
.reference-examples span { border-radius: 6px; background: #f9fcf7; border: 1px solid #dce8db; padding: 3px 7px; font-size: 12px; }
.reference-examples code, .code-table code, .reference-item code, .document-codes code { color: #235444; font-weight: 700; white-space: nowrap; }
.reference-actions { margin: 10px 0; }
.reference-section { margin-block: 15px; }
.reference-section h3 { margin-bottom: 8px; }
.reference-item p { color: var(--muted); font-size: 13px; }
.code-table-wrap { overflow-x: auto; }
.code-table { border-collapse: collapse; text-align: left; width: 100%; min-width: 390px; font-size: 13px; }
.code-table th, .code-table td { border-bottom: 1px solid var(--line); padding: 7px; vertical-align: top; }
.code-table thead th { background: #edf4e9; }
.code-table td small { display: block; margin-top: 3px; }
.document-codes { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 10px; background: #f2f7ef; border-radius: 8px; padding: 10px; font-size: 13px; }
.document-codes dt { font-weight: 700; }
.document-codes dd { margin: 0; }
.case-code { text-decoration: underline dotted #558272; text-underline-offset: 3px; cursor: help; }
.inline-code-type { color: #466457; font-size: .9em; }
.standards-panel { border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.standards-panel dl { display: grid; gap: 4px; margin: 10px 0; }
.standards-panel dt { font-size: 13px; font-weight: 700; color: #315848; }
.standards-panel dd { margin: 0 0 5px; font-size: 13px; }
.standards-panel p { font-size: 12px; color: var(--muted); }
.standards-panel .footer-links { margin-top: 8px; }
.review-panel { margin-block: 12px; }
.review-panel h3 { margin-bottom: 7px; }
.review-panel p { overflow-wrap: anywhere; }
.review-form { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 6px; }
.section-title { margin-bottom: 13px; }
.tag { display: inline-flex; border-radius: 99px; padding: 4px 10px; color: #275440; background: #e8f0e4; font-size: 12px; font-weight: 650; }
.tag.warm { color: var(--amber); background: var(--warm); }
.progress { width: 100%; height: 7px; appearance: none; border: none; border-radius: 999px; overflow: hidden; color: #548568; background: #e6eee5; }
.progress::-webkit-progress-bar { background: #e6eee5; }
.progress::-webkit-progress-value { background: #548568; }
.progress::-moz-progress-bar { background: #548568; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 6px; border: 1px solid transparent; border-radius: 9px; background: var(--forest); color: white; padding: 9px 15px; min-height: 40px; font-weight: 650; text-decoration: none; }
.btn:hover { background: #285543; }
.btn.alt { background: #edf5e8; color: #214b38; border-color: #d0e2d0; }
.btn.alt:hover { background: #e0eddb; }
.btn.quiet { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.quiet:hover { background: var(--paper); }
.btn.ghost { background: none; color: var(--accent); border-color: transparent; padding-left: 0; min-height: 32px; }
.btn.ghost:hover { color: var(--dark); text-decoration: underline; }
.btn.small { min-height: 34px; padding: 5px 10px; font-size: 13px; }
.steps { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(100px, 1fr); gap: 7px; overflow-x: auto; padding: 4px 3px 12px; margin: 0 0 10px; }
.step { background: #f9fbf8; color: #4a6256; border: 1px solid var(--line); border-radius: 10px; padding: 9px; min-height: 58px; display: grid; text-align: left; gap: 4px; }
.step.current { background: #e7f2df; border-color: #739978; color: var(--forest); }
.step.done .step-number { color: #2d694a; }
.step-number { font-size: 11px; color: #587164; font-weight: 700; }
.step-title { font-size: 12px; line-height: 1.4; font-weight: 650; }
.columns { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(260px, 1fr); gap: 16px; align-items: start; }
.flow-panel h2 { margin-top: 10px; }
.flow-panel > p { color: var(--muted); margin-top: 7px; }
.flow-panel form { margin-top: 18px; }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field legend { font-size: 14px; font-weight: 650; }
.field .req { color: #2b6948; margin-left: 4px; }
.step-guide { margin-top: 14px; padding: 13px; border-radius: 10px; background: #eef5e9; border: 1px solid #d8e6d7; }
.step-guide dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 11px; margin: 9px 0 12px; }
.step-guide dt { color: #315848; font-weight: 650; font-size: 13px; }
.step-guide dd { margin: 0; font-size: 13px; line-height: 1.6; }
.choice-line { display: flex; align-items: baseline; gap: 9px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfa; cursor: pointer; line-height: 1.55; font-weight: 400 !important; }
.choice-line:hover { border-color: #8eb197; background: #f4f8f2; }
.choice-line:has(input:checked) { border-color: #6a9777; background: #eaf3e6; }
.choice-line:has(input[aria-invalid=true]:checked) { border-color: #ba732a; background: #fffaf0; }
.choice-line input { margin: 0; flex: 0 0 auto; accent-color: var(--accent); }
.completion { border: 1px solid #cddfcd; margin-top: 16px; padding: 13px; border-radius: 10px; background: #fbfdfb; }
.completion h3 { margin: 7px 0 10px; }
.completion .form-actions { margin-top: 12px; }
input:not([type=checkbox]), textarea, select { width: 100%; background: #fbfcfa; border: 1px solid #d3ded4; border-radius: 8px; padding: 9px 11px; color: var(--ink); }
input::placeholder, textarea::placeholder { color: #65776c; }
textarea { min-height: 80px; resize: vertical; line-height: 1.55; }
fieldset.field { border: 0; margin: 0; padding: 0; }
fieldset.field legend { padding: 0 0 6px; }
.checks { display: grid; gap: 5px; }
.check { display: flex; gap: 7px; align-items: baseline; font-weight: 400 !important; }
input[type=checkbox] { accent-color: var(--accent); }
.form-actions { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 5px; }
.field [aria-invalid=true] { border-color: #ba732a; background: #fffaf0; }
.issues { display: grid; gap: 7px; margin-top: 10px; }
.issue { background: var(--warm); color: #654a21; border: 1px solid #f0d8a9; border-radius: 9px; padding: 8px 10px; font-size: 13px; }
.issue summary { font-weight: 650; }
.issue p { margin-top: 6px; }
.hint { background: #eef5e9; padding: 11px 12px; margin-top: 14px; color: #365846; border-radius: 9px; font-size: 13px; }
.rail { display: grid; gap: 12px; }
.rail .panel { padding: 17px; }
.rail h3 { margin-bottom: 11px; }
.materials { display: grid; gap: 7px; }
.material { display: flex; text-align: left; justify-content: space-between; align-items: center; gap: 10px; width: 100%; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfa; padding: 8px 9px; color: var(--ink); }
.material:hover { border-color: #79a082; background: #edf4e9; }
.material strong, .material small { display: block; }
.material strong { font-size: 13px; }
.material small { font-size: 11px; margin-top: 3px; }
.playbar { margin-bottom: 12px; padding: 11px 13px; border: 1px solid #d6e3d3; border-radius: 10px; background: #eaf3e6; }
.demo-notes { display: grid; gap: 10px; margin-top: 15px; }
.demo-notes div, .readout { background: #f3f7f0; padding: 11px 13px; border-radius: 8px; }
.demo-notes strong, .readout strong { display: block; font-size: 13px; margin-bottom: 4px; }
.readout { margin-top: 8px; overflow-wrap: anywhere; }
.readout p, .doc-body { white-space: pre-wrap; }
.demo-result { margin-top: 16px; }
.tool-card { display: grid; align-content: start; justify-items: start; gap: 10px; }
.credential-panel { display: grid; grid-template-columns: minmax(180px,.7fr) minmax(340px,1.3fr) auto; gap: 18px; align-items: end;
  background: #f0f7ec; border: 1px solid #cfe0cb; border-radius: 15px; padding: 20px; margin-bottom: 16px; }
.credential-panel h2 { margin: 7px 0 5px; }
.credential-panel p { color: var(--muted); font-size: 13px; }
.credential-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.credential-fields label { display: grid; gap: 5px; font-size: 12px; color: var(--muted); }
.credential-fields input { background: white; font-family: ui-monospace, Consolas, monospace; font-weight: 700; }
.credential-actions { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.admin-stats { display: grid; grid-template-columns: repeat(5, minmax(120px,1fr)); gap: 10px; margin-bottom: 16px; }
.admin-stats button { display: grid; gap: 4px; text-align: left; background: white; border: 1px solid var(--line); border-radius: 12px; padding: 14px; color: var(--ink); }
.admin-stats button:hover { border-color: #83a58d; background: #f7faf5; }
.admin-stats strong { font-size: 24px; }
.admin-stats span { color: var(--muted); font-size: 12px; }
.admin-layout { display: grid; grid-template-columns: minmax(310px, .62fr) minmax(660px, 1.38fr); gap: 16px; align-items: start; }
.admin-layout h2 { margin-bottom: 14px; }
.create-student-panel { position: sticky; top: 84px; }
.quick-validity { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.quick-validity > span { color: var(--muted); font-size: 12px; margin-right: 2px; }
.permission-picker { border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; }
.permission-picker summary { font-weight: 650; }
.permission-picker[open] summary { margin-bottom: 11px; }
.grant-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px 12px; max-height: 300px; overflow: auto; padding-right: 5px; }
.grant-grid .check { align-items: flex-start; font-size: 13px; line-height: 1.45; }
.student-list-panel { padding: 0; overflow: hidden; }
.list-heading { display: flex; justify-content: space-between; padding: 22px 22px 0; }
.list-heading p { color: var(--muted); margin-top: 5px; font-size: 13px; }
.student-toolbar { display: grid; grid-template-columns: minmax(210px,1fr) 145px 120px auto; gap: 10px; align-items: end; padding: 16px 22px; }
.student-toolbar .field { gap: 4px; }
.student-toolbar label { font-size: 12px; }
.student-table-wrap { overflow: auto; border-block: 1px solid var(--line); }
.student-table { width: 100%; min-width: 850px; border-collapse: collapse; font-size: 13px; }
.student-table th { position: sticky; top: 0; z-index: 1; background: #edf4e9; text-align: left; color: #365848; font-size: 12px; }
.student-table th, .student-table td { padding: 11px 12px; border-bottom: 1px solid #e8ede7; vertical-align: middle; }
.student-table tbody tr:hover { background: #f8faf7; }
.student-table td small { display: block; margin-top: 3px; white-space: nowrap; }
.student-table code { color: #214b38; font-weight: 700; white-space: nowrap; }
.table-actions { display: flex; gap: 5px; white-space: nowrap; }
.table-empty { text-align: center; color: var(--muted); padding-block: 32px !important; }
.status-pill { display: inline-flex; border-radius: 99px; padding: 4px 8px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.status-pill.active { background: #e3f2e4; color: #25603c; }
.status-pill.pending { background: #fff3d7; color: #775412; }
.status-pill.expired { background: #fbe8df; color: #8a4328; }
.status-pill.disabled { background: #eceeed; color: #58615d; }
.pagination { display: flex; justify-content: flex-end; align-items: center; gap: 12px; padding: 15px 22px; }
.pagination span { color: var(--muted); font-size: 13px; }
.student-identity { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.student-identity > div { display: grid; gap: 4px; margin-right: auto; }
.student-identity span { color: var(--muted); font-size: 12px; }
.student-identity strong { font-family: ui-monospace, Consolas, monospace; }
.date-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.student-progress-summary { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; }
.student-progress-summary h3 { margin-bottom: 9px; }
.project-progress-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #e8ede7; }
.project-progress-row div { min-width: 0; }
.project-progress-row strong, .project-progress-row small { display: block; }
.project-progress-row small { margin-top: 4px; }
.student { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.student .checks { margin: 9px 0; }
.student .row small { margin-top: 0; }
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(340px, 1fr) minmax(340px, .8fr); }
.login-cover { display: grid; align-content: center; gap: 18px; padding: clamp(30px, 7vw, 104px); background: radial-gradient(ellipse at 95% 5%, #426b54, transparent 56%), var(--dark); color: white; }
.login-cover .brand { padding: 0; margin-bottom: 20px; }
.login-cover h1 { font-size: clamp(34px, 5vw, 64px); max-width: 10em; line-height: 1.17; }
.login-cover p { max-width: 28em; color: #d3e4d8; }
.login-side { display: grid; align-content: center; padding: clamp(24px, 5vw, 76px); }
.login-card { max-width: 415px; width: 100%; margin: auto; }
.login-card form { margin: 18px 0; }
.login-help { border-top: 1px solid var(--line); padding-top: 13px; margin-top: 15px; }
.login-help .row { margin-top: 8px; }
.error-text { color: #8a3c21; min-height: 18px; font-size: 13px; }
#notice { position: fixed; bottom: 22px; right: 22px; z-index: 4; display: grid; max-width: min(430px, calc(100vw - 44px)); }
#notice:not(:empty) { background: var(--forest); color: white; border-radius: 9px; box-shadow: 0 8px 30px #172a2440; padding: 11px 15px; }
dialog { width: min(820px, calc(100% - 28px)); max-height: 86vh; border-radius: 14px; border: 1px solid var(--line); color: var(--ink); padding: 23px; }
dialog::backdrop { background: #102c2577; }
dialog .row { margin-bottom: 10px; }
dialog article + article { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.empty { display: grid; gap: 8px; }
.footer-links { margin-top: 16px; font-size: 13px; }
@media (max-width: 1100px) {
  .sidebar { padding-inline: 13px; }
  .shell { grid-template-columns: 185px minmax(0, 1fr); }
  .topbar, .page { padding-inline: 22px; }
  .columns { grid-template-columns: minmax(0, 1.3fr) minmax(220px, 1fr); }
  .admin-layout { grid-template-columns: 1fr; }
  .create-student-panel { position: static; }
  .credential-panel { grid-template-columns: 1fr 1fr; }
  .credential-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .catalog-toolbar { grid-template-columns: minmax(220px,1fr) 150px 140px auto; }
}
@media (max-width: 830px) {
  .columns, .admin-grid { grid-template-columns: 1fr; }
  .rail { grid-row: 1; }
  .rail .materials { grid-template-columns: repeat(auto-fit, minmax(156px, 1fr)); }
  .hero { grid-template-columns: 1fr 125px; padding: 25px; }
  .hero-graphic { transform: scale(.75); transform-origin: center right; width: 105px; }
  .admin-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .student-toolbar { grid-template-columns: 1fr 1fr; }
  .student-toolbar .field:first-child { grid-column: 1 / -1; }
  .credential-panel, .credential-fields { grid-template-columns: 1fr; }
  .credential-actions { grid-column: auto; }
  .catalog-promo { grid-template-columns: 48px minmax(0,1fr); }
  .catalog-promo-icon { width: 48px; height: 48px; border-radius: 14px; }
  .catalog-promo .btn { grid-column: 1 / -1; justify-self: start; }
  .catalog-toolbar { grid-template-columns: 1fr 1fr; }
  .catalog-toolbar .field:first-child { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .case-library .cards { grid-template-columns: 1fr; }
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; gap: 12px; padding: 13px; }
  .side-nav { display: flex; flex-wrap: wrap; }
  .side-nav button { padding: 6px 8px; font-size: 13px; }
  .side-foot, .hero-graphic { display: none; }
  .topbar { height: 50px; }
  .page, .topbar { padding-inline: 14px; }
  .page { padding-top: 18px; }
  .hero { grid-template-columns: 1fr; }
  .page-title { align-items: flex-start; flex-direction: column; gap: 8px; }
  .login { grid-template-columns: 1fr; }
  .login-cover .brand { margin-bottom: 0; }
  .login-cover { gap: 10px; }
  .panel { padding: 16px; }
  .date-grid, .grant-grid { grid-template-columns: 1fr; }
  .student-toolbar { grid-template-columns: 1fr; }
  .student-toolbar .field:first-child { grid-column: auto; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .catalog-promo { grid-template-columns: 1fr; padding: 17px; }
  .catalog-promo-icon { display: none; }
  .catalog-promo .btn { grid-column: auto; width: 100%; }
  .catalog-hero { grid-template-columns: 1fr; padding: 24px 20px; }
  .catalog-hero-lock { display: none; }
  .catalog-stats { grid-template-columns: 1fr 1fr; }
  .catalog-stats div { display: grid; gap: 2px; }
  .catalog-toolbar { grid-template-columns: 1fr; }
  .catalog-toolbar .field:first-child { grid-column: auto; }
  .catalog-grid, .catalog-detail-grid { grid-template-columns: 1fr; }
}

/* VDA 6.5 independently authorised practical-tool entry */
.side-nav a.vda-side-link { display:block; margin:4px 0; padding:11px 13px; text-align:left;
  font-size:14px; border-radius:10px; color:#e5f5e7; font-weight:600; text-decoration:none; }
.side-nav a.vda-side-link:hover { background:#356e61; color:#fff; }
.vda-home-card { margin:20px 0; display:flex; flex-wrap:wrap; gap:18px;
  justify-content:space-between; align-items:center; }
.vda-home-card h2 { margin:10px 0 5px; }
.vda-home-card p { margin:0; max-width:660px; }
