:root {
  color-scheme: light;
  --paper: #f4f3ed;
  --surface: #fffef9;
  --ink: #17342f;
  --muted: #5f716c;
  --line: #d9dfdb;
  --line-strong: #bcc9c4;
  --forest: #0f4a40;
  --forest-deep: #08352f;
  --mint: #dceee7;
  --teal: #177565;
  --gold: #be8537;
  --gold-soft: #f2e6d0;
  --clay: #9d5e49;
  --clay-soft: #f1dfd7;
  --danger: #9b443e;
  --danger-soft: #f4e2de;
  --success: #2b7055;
  --success-soft: #e0eee6;
  --shadow: 0 18px 55px rgba(23, 52, 47, .10);
  --radius: 18px;
  --radius-sm: 10px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  background:
    linear-gradient(rgba(15, 74, 64, .026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 74, 64, .026) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
}

a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, .button { min-height: 46px; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(190, 133, 55, .34);
  outline-offset: 2px;
}

.site-header {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  color: white;
  background: var(--forest-deep);
}

.header-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 76px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.wordmark-seal {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 18px;
}
.wordmark strong { display: block; font-family: var(--serif); font-size: 19px; letter-spacing: .03em; }
.wordmark small { display: block; margin-top: 2px; color: rgba(255, 255, 255, .58); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.header-nav { display: flex; align-items: center; gap: 8px; }
.header-nav a { min-height: 44px; padding: 11px 14px; border-radius: 9px; color: rgba(255, 255, 255, .75); text-decoration: none; font-size: 13px; font-weight: 700; }
.header-nav button { min-height: 44px; border: 0; border-radius: 9px; padding: 11px 14px; color: rgba(255, 255, 255, .75); background: transparent; font-size: 13px; font-weight: 700; }
.header-nav a:hover, .header-nav a.active, .header-nav button:hover { color: white; background: rgba(255, 255, 255, .09); }

.hero {
  color: white;
  background: var(--forest-deep);
  overflow: hidden;
}
.hero-inner {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  min-height: 410px;
  margin: auto;
  padding: 72px 0 68px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  align-items: end;
  gap: 72px;
}
.hero-inner::after {
  content: "";
  position: absolute;
  width: 310px;
  height: 310px;
  right: -110px;
  top: -100px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 56px rgba(255, 255, 255, .026), 0 0 0 112px rgba(255, 255, 255, .018);
}
.eyebrow { margin: 0 0 14px; color: #9fd8cb; font-size: 11px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.hero h1 { max-width: 760px; margin: 0; font-family: var(--serif); font-size: clamp(42px, 6vw, 72px); line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
.hero-lead { max-width: 680px; margin: 22px 0 0; color: rgba(255, 255, 255, .72); font-size: 17px; line-height: 1.8; }
.hero-guide { position: relative; z-index: 1; border-left: 1px solid rgba(255, 255, 255, .2); padding-left: 28px; }
.hero-guide strong { display: block; font-family: var(--serif); font-size: 21px; }
.hero-guide ol { margin: 16px 0 0; padding: 0; list-style: none; counter-reset: steps; }
.hero-guide li { counter-increment: steps; margin-top: 12px; color: rgba(255, 255, 255, .7); font-size: 13px; line-height: 1.55; }
.hero-guide li::before { content: "0" counter(steps); display: inline-block; width: 30px; color: #d9a861; font-weight: 800; }

.portal-main { width: min(1180px, calc(100% - 40px)); margin: auto; padding: 58px 0 90px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(28px, 4vw, 42px); letter-spacing: -.02em; }
.section-heading p { max-width: 560px; margin: 8px 0 0; color: var(--muted); line-height: 1.7; }

.role-filter { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-button { min-height: 40px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px; color: var(--muted); background: var(--surface); font-size: 12px; font-weight: 750; }
.filter-button.active { color: white; border-color: var(--forest); background: var(--forest); }

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.project-card {
  --accent: var(--teal);
  position: relative;
  min-height: 300px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background: rgba(255, 254, 249, .94);
  box-shadow: 0 8px 30px rgba(23, 52, 47, .055);
  display: flex;
  flex-direction: column;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.project-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); box-shadow: var(--shadow); }
.project-card[data-tone="forest"] { --accent: var(--forest); }
.project-card[data-tone="gold"] { --accent: var(--gold); }
.project-card[data-tone="clay"] { --accent: var(--clay); }
.project-card.featured { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.phase-label { color: var(--accent); font-size: 11px; font-weight: 850; letter-spacing: .1em; }
.status-pill { border-radius: 999px; padding: 5px 9px; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, white); font-size: 10px; font-weight: 800; }
.project-card h3 { margin: 27px 0 11px; font-family: var(--serif); font-size: 29px; line-height: 1.25; letter-spacing: -.015em; }
.project-card .description { margin: 0; color: var(--muted); line-height: 1.72; }
.when { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink); font-size: 12px; line-height: 1.6; }
.when span { color: var(--muted); }
.card-footer { margin-top: auto; padding-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.audience { display: flex; flex-wrap: wrap; gap: 5px; }
.audience span { border-radius: 6px; padding: 5px 7px; color: var(--muted); background: #edf1ee; font-size: 10px; font-weight: 750; }
.card-link { min-height: 46px; border-radius: 9px; padding: 12px 15px; color: white; background: var(--accent); text-decoration: none; font-size: 13px; font-weight: 800; white-space: nowrap; }
.card-link:hover { filter: brightness(.93); }

.empty-projects { grid-column: 1 / -1; min-height: 240px; display: grid; place-items: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); text-align: center; background: rgba(255, 255, 255, .45); }
.portal-note { margin-top: 24px; padding: 17px 20px; border: 1px solid #dfc39c; border-radius: 12px; color: #724b20; background: var(--gold-soft); font-size: 13px; line-height: 1.65; }

.header-user { color: rgba(255, 255, 255, .62); font-size: 11px; font-weight: 700; }
.dashboard-main { width: min(1240px, calc(100% - 40px)); margin: auto; padding: 54px 0 88px; }
.dashboard-intro { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr); gap: 44px; align-items: end; }
.eyebrow.dark { color: var(--teal); }
.dashboard-intro h1 { max-width: 840px; margin: 0; font-family: var(--serif); font-size: clamp(39px, 5.4vw, 64px); line-height: 1.13; letter-spacing: -.035em; }
.dashboard-intro > div > p:last-child { max-width: 720px; margin: 18px 0 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.cohort-card { min-height: 170px; border: 1px solid var(--line); border-radius: var(--radius); padding: 23px; background: var(--surface); box-shadow: 0 8px 28px rgba(23, 52, 47, .05); }
.source-badge { display: inline-flex; border-radius: 999px; padding: 6px 9px; color: var(--success); background: var(--success-soft); font-size: 10px; font-weight: 850; }
.source-badge[data-status="waiting"] { color: #7c551e; background: var(--gold-soft); }
.source-badge[data-status="demo"] { color: #824735; background: var(--clay-soft); }
.cohort-card strong { display: block; margin-top: 24px; font-family: var(--serif); font-size: 22px; }
.cohort-card p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.management-entry { display: inline-flex; margin-top: 13px; color: var(--teal); font-size: 10px; font-weight: 850; text-decoration: none; }

.metric-grid { margin-top: 34px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.metric-card { min-height: 156px; padding: 21px; border-right: 1px solid var(--line); }
.metric-card:last-child { border-right: 0; }
.metric-card span { color: var(--muted); font-size: 11px; font-weight: 800; }
.metric-card strong { display: block; margin: 11px 0 5px; font-family: var(--serif); font-size: 42px; font-weight: 500; }
.metric-card small { color: var(--muted); font-size: 10px; line-height: 1.5; }
.metric-card.urgent strong { color: var(--danger); }

.dashboard-layout { margin-top: 44px; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(310px, .45fr); gap: 26px; align-items: start; }
.dashboard-primary { min-width: 0; display: grid; gap: 44px; }
.dashboard-side { min-width: 0; display: grid; gap: 16px; }
.dashboard-section-heading { margin-bottom: 18px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-kicker { margin: 0 0 7px; color: #835616; font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.dashboard-section-heading h2, .side-panel-heading h2 { margin: 0; font-family: var(--serif); }
.dashboard-section-heading h2 { font-size: 32px; }
.dashboard-section-heading > p { max-width: 350px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; text-align: right; }

.task-list { display: grid; gap: 11px; }
.task-card { --task-accent: var(--teal); min-height: 142px; border: 1px solid var(--line); border-left: 4px solid var(--task-accent); border-radius: 14px; padding: 19px 20px; background: var(--surface); display: grid; grid-template-columns: 90px minmax(0, 1fr) 158px; gap: 18px; align-items: center; }
.task-card[data-priority="high"] { --task-accent: #835616; }
.task-card[data-priority="urgent"] { --task-accent: var(--danger); }
.task-status { align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; }
.task-status span { color: var(--task-accent); font-size: 11px; font-weight: 900; }
.task-status em { color: var(--muted); font-size: 9px; font-style: normal; font-weight: 800; }
.task-copy small { color: var(--muted); font-size: 10px; }
.task-copy h3 { margin: 7px 0 6px; font-family: var(--serif); font-size: 20px; }
.task-copy p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.student-line-link { display: inline-flex; margin-top: 9px; color: var(--teal); font-size: 10px; font-weight: 850; text-decoration: none; }
.task-action { justify-self: end; text-align: right; }
.task-action span { display: block; margin-bottom: 10px; color: var(--danger); font-size: 10px; font-weight: 850; }
.task-action-buttons { display: flex; flex-direction: column; gap: 7px; align-items: stretch; }
.task-action a, .task-action button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; border-radius: 9px; padding: 8px 11px; text-decoration: none; font-size: 10px; font-weight: 850; white-space: nowrap; }
.task-action a { color: var(--forest); border: 1px solid var(--line-strong); background: white; }
.task-action button { color: white; border: 1px solid var(--forest); background: var(--forest); }

.workflow-dialog { width: min(640px, calc(100% - 28px)); max-height: min(86vh, 820px); border: 0; border-radius: 20px; padding: 0; color: var(--ink); background: var(--surface); box-shadow: 0 30px 100px rgba(0, 0, 0, .28); }
.workflow-dialog::backdrop { background: rgba(6, 37, 32, .72); backdrop-filter: blur(6px); }
.workflow-dialog form { padding: 26px; }
.workflow-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.workflow-dialog-head h2 { margin: 0; font-family: var(--serif); font-size: 27px; }
.dialog-close { min-width: 42px; min-height: 42px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: white; font-size: 22px; }
.workflow-description { margin: 12px 0 20px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.workflow-fields { max-height: 53vh; padding-right: 4px; display: grid; gap: 15px; overflow: auto; }
.workflow-actions { margin-top: 20px; display: flex; justify-content: flex-end; gap: 9px; }

.gate-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.gate-card { --gate-accent: var(--teal); min-height: 230px; border: 1px solid var(--line); border-radius: 15px; padding: 21px; background: var(--surface); }
.gate-card[data-tone="gold"] { --gate-accent: #835616; }
.gate-card[data-tone="forest"] { --gate-accent: var(--forest); }
.gate-card[data-tone="clay"] { --gate-accent: var(--clay); }
.gate-index { color: var(--gate-accent); font-family: var(--serif); font-size: 14px; }
.gate-title { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gate-title h3 { margin: 0; font-family: var(--serif); font-size: 25px; }
.gate-title strong { color: var(--gate-accent); font-family: var(--serif); font-size: 30px; font-weight: 500; }
.gate-card p { min-height: 38px; margin: 9px 0 14px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.gate-bar { height: 5px; border-radius: 99px; background: #e7ebe8; overflow: hidden; }
.gate-bar i { display: block; height: 100%; border-radius: inherit; background: var(--gate-accent); }
.gate-card small { display: block; margin-top: 13px; color: var(--muted); font-size: 9px; line-height: 1.5; }

.side-panel { border: 1px solid var(--line); border-radius: 15px; padding: 20px; background: var(--surface); }
.side-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.side-panel-heading h2 { font-size: 19px; }
.side-panel-heading span { min-width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--danger); font-size: 10px; font-weight: 850; }
.panel-explain { margin: 9px 0 15px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.exception-list { margin-top: 14px; display: grid; gap: 9px; }
.exception-item { border-left: 3px solid var(--gold); padding: 10px 0 10px 12px; }
.exception-item[data-level="urgent"] { border-left-color: var(--danger); }
.exception-item strong { font-size: 12px; line-height: 1.45; }
.exception-item p { margin: 5px 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.exception-item small { color: var(--muted); font-size: 9px; }
.shortcut-list { display: grid; }
.shortcut-list a { min-height: 58px; border-top: 1px solid var(--line); padding: 11px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-decoration: none; }
.shortcut-list small, .shortcut-list strong { display: block; }
.shortcut-list small { color: var(--muted); font-size: 8px; }
.shortcut-list strong { margin-top: 4px; font-size: 11px; }
.shortcut-list em { color: var(--teal); font-size: 10px; font-style: normal; font-weight: 850; white-space: nowrap; }
.principle-panel { color: white; background: var(--forest-deep); }
.principle-panel .section-kicker { color: #f0c98e; }
.principle-panel blockquote { margin: 16px 0; font-family: var(--serif); font-size: 19px; line-height: 1.65; }
.principle-panel small { color: rgba(255, 255, 255, .62); font-size: 9px; line-height: 1.6; }
.dashboard-empty { min-height: 150px; border: 1px dashed var(--line-strong); border-radius: 14px; padding: 30px; color: var(--muted); background: rgba(255, 255, 255, .48); display: grid; place-items: center; text-align: center; }
.dashboard-empty strong, .dashboard-empty span { display: block; }
.dashboard-empty span { margin-top: 7px; font-size: 11px; }
.compact-empty { margin: 14px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.identity-note { display: block; margin-top: 12px; color: var(--muted); font-size: 9px; line-height: 1.5; }

.student-main { width: min(1180px, calc(100% - 40px)); margin: auto; padding: 50px 0 80px; }
.student-loading, .student-error { min-height: 320px; border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 40px; display: grid; place-items: center; color: var(--muted); background: rgba(255, 255, 255, .5); text-align: center; }
.student-error { color: var(--danger); }
.student-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 28px; align-items: stretch; }
.student-hero > div { padding: 18px 0; }
.student-hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(42px, 5vw, 62px); }
.student-hero > div > p:last-child { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.student-hero aside { border-radius: var(--radius); padding: 24px; color: white; background: var(--forest-deep); }
.student-hero aside span { color: #9fd8cb; font-size: 10px; font-weight: 850; }
.student-hero aside strong { display: block; margin-top: 22px; font-family: var(--serif); font-size: 25px; }
.student-hero aside p { margin: 9px 0 0; color: rgba(255, 255, 255, .66); font-size: 11px; line-height: 1.6; }
.student-status-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 15px; background: var(--surface); overflow: hidden; }
.student-status-grid article { min-height: 105px; padding: 17px; border-right: 1px solid var(--line); }
.student-status-grid article:last-child { border-right: 0; }
.student-status-grid small { color: var(--muted); font-size: 9px; }
.student-status-grid strong { display: block; margin-top: 15px; font-family: var(--serif); font-size: 15px; line-height: 1.4; }
.student-status-grid article[data-state="good"] strong { color: var(--success); }
.student-status-grid article[data-state="warn"] strong { color: #835616; }
.student-layout { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr); gap: 22px; align-items: start; }
.student-primary { min-width: 0; display: grid; gap: 36px; }
.student-side { min-width: 0; display: grid; gap: 15px; }
.student-task-list, .student-handoff-list { display: grid; gap: 11px; }
.student-record-card { border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: var(--surface); }
.student-record-card.handoff { border-left: 4px solid var(--gold); }
.student-record-card > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.student-record-card > div span { color: var(--teal); font-size: 10px; font-weight: 850; }
.student-record-card > div small { color: var(--muted); font-size: 9px; }
.student-record-card h3 { margin: 14px 0 7px; font-family: var(--serif); font-size: 19px; }
.student-record-card p, .student-record-card blockquote { color: var(--muted); font-size: 11px; line-height: 1.65; }
.student-record-card p { margin: 0; }
.student-record-card blockquote { margin: 13px 0 0; border-left: 2px solid var(--line-strong); padding-left: 12px; }
.student-record-card footer { margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; line-height: 1.5; }
.protected-record-link { display: block; margin-top: 15px; border-radius: 9px; padding: 12px; color: white; background: var(--forest); font-size: 11px; font-weight: 850; text-align: center; text-decoration: none; }
.student-event-list { margin-top: 14px; display: grid; gap: 13px; }
.student-event-list article { display: grid; grid-template-columns: 11px 1fr; gap: 9px; }
.student-event-list i { width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: var(--gold); }
.student-event-list strong { font-size: 10px; }
.student-event-list p, .student-event-list small { margin: 3px 0 0; color: var(--muted); font-size: 9px; }

.management-main { width: min(1240px, calc(100% - 40px)); margin: auto; padding: 50px 0 84px; }
.management-hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr); gap: 28px; align-items: stretch; }
.management-hero > div { padding: 16px 0; }
.management-hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(40px, 5vw, 62px); }
.management-hero > div > p:last-child { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.management-hero aside { border-radius: var(--radius); padding: 24px; color: white; background: var(--forest-deep); }
.management-hero aside span { color: #9fd8cb; font-size: 10px; font-weight: 850; }
.management-hero aside strong { display: block; margin-top: 19px; font-family: var(--serif); font-size: 45px; font-weight: 500; }
.management-hero aside p { margin: 4px 0 0; color: rgba(255, 255, 255, .62); font-size: 10px; }
.management-section { margin-top: 42px; }
.management-gates { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 15px; background: var(--surface); overflow: hidden; }
.management-gates article { --accent: var(--teal); min-height: 190px; padding: 20px; border-right: 1px solid var(--line); }
.management-gates article:last-child { border-right: 0; }
.management-gates article[data-tone="gold"] { --accent: #835616; }
.management-gates article[data-tone="forest"] { --accent: var(--forest); }
.management-gates article[data-tone="clay"] { --accent: var(--clay); }
.management-gates span { color: var(--accent); font-family: var(--serif); font-size: 13px; }
.management-gates h3 { margin: 18px 0 8px; font-family: var(--serif); font-size: 23px; }
.management-gates strong { color: var(--accent); font-family: var(--serif); font-size: 36px; font-weight: 500; }
.management-gates p { margin: 7px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.management-process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.management-process article { min-height: 175px; border: 1px solid var(--line); border-radius: 13px; padding: 17px; background: var(--surface); }
.management-process small { color: var(--muted); font-size: 9px; }
.management-process strong { display: inline-block; margin-top: 14px; font-family: var(--serif); font-size: 31px; font-weight: 500; }
.management-process span { float: right; margin-top: 23px; color: var(--teal); font-size: 11px; font-weight: 850; }
.management-process article > div { height: 5px; margin-top: 13px; border-radius: 99px; background: #e7ebe8; overflow: hidden; }
.management-process i { display: block; height: 100%; border-radius: inherit; background: var(--teal); }
.management-process p { margin: 10px 0 0; color: var(--muted); font-size: 9px; }
.management-layout { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr); gap: 22px; align-items: start; }
.management-primary { min-width: 0; }
.management-side { min-width: 0; padding-top: 24px; display: grid; gap: 14px; }
.workload-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.workload-columns > div { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: var(--surface); }
.workload-columns h3 { margin: 0 0 12px; font-family: var(--serif); font-size: 19px; }
.workload-columns article { min-height: 52px; border-top: 1px solid var(--line); padding: 10px 0; display: grid; grid-template-columns: minmax(80px, 1fr) repeat(4, auto); gap: 8px; align-items: center; }
.workload-columns article strong { font-size: 10px; }
.workload-columns article span { color: var(--muted); font-size: 8px; white-space: nowrap; }
.danger-text { color: var(--danger) !important; }
.commercial-empty { border: 1px dashed #d6b789; border-radius: 14px; padding: 26px; color: #724b20; background: var(--gold-soft); }
.commercial-empty strong { font-family: var(--serif); font-size: 19px; }
.commercial-empty p { margin: 8px 0 0; font-size: 11px; line-height: 1.65; }
.commercial-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.commercial-metrics article { min-height: 120px; padding: 18px; border-right: 1px solid var(--line); }
.commercial-metrics article:last-child { border-right: 0; }
.commercial-metrics small { color: var(--muted); font-size: 9px; }
.commercial-metrics strong { display: block; margin-top: 17px; font-family: var(--serif); font-size: 20px; }
.management-sla, .quality-list { margin-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.management-sla article, .quality-list article { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: #f8f8f4; }
.management-sla span, .quality-list span { color: var(--muted); font-size: 8px; }
.management-sla strong, .quality-list strong { display: block; margin-top: 8px; font-family: var(--serif); font-size: 21px; }

.cohort-main { width: min(1180px, calc(100% - 40px)); margin: auto; padding: 50px 0 82px; }
.cohort-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr); gap: 28px; }
.cohort-hero > div { padding: 17px 0; }
.cohort-hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(40px, 5vw, 62px); }
.cohort-hero > div > p:last-child { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.cohort-hero aside { border-radius: var(--radius); padding: 23px; color: white; background: var(--forest-deep); }
.cohort-hero aside span { color: #9fd8cb; font-size: 10px; font-weight: 850; }
.cohort-hero aside strong { display: block; margin-top: 18px; font-family: var(--serif); font-size: 42px; font-weight: 500; }
.cohort-hero aside p { margin: 5px 0 0; color: rgba(255, 255, 255, .64); font-size: 10px; line-height: 1.5; }
.cohort-metrics { margin-top: 24px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 15px; background: var(--surface); overflow: hidden; }
.cohort-metrics article { min-height: 115px; padding: 17px; border-right: 1px solid var(--line); }
.cohort-metrics article:last-child { border-right: 0; }
.cohort-metrics small { color: var(--muted); font-size: 9px; }
.cohort-metrics strong { display: block; margin-top: 16px; font-family: var(--serif); font-size: 24px; }
.cohort-layout { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(290px, .55fr); gap: 22px; align-items: start; }
.cohort-primary { min-width: 0; display: grid; gap: 36px; }
.cohort-side { min-width: 0; display: grid; gap: 14px; }
.queue-list, .candidate-list { display: grid; gap: 10px; }
.queue-list article, .candidate-list article { border: 1px solid var(--line); border-radius: 13px; padding: 17px; background: var(--surface); }
.queue-list article > div, .candidate-list article > div { display: flex; align-items: center; gap: 11px; }
.queue-list span, .candidate-list span { color: #835616; font-size: 9px; font-weight: 850; }
.queue-list strong, .candidate-list strong { font-family: var(--serif); font-size: 17px; }
.queue-list small { margin-left: auto; color: var(--muted); font-size: 9px; }
.queue-list p, .candidate-list p { margin: 9px 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.queue-list a { color: var(--teal); font-size: 9px; font-weight: 850; text-decoration: none; }
.candidate-list article[data-selected="true"] { border-left: 4px solid var(--success); }
.candidate-list article > small { color: var(--muted); font-size: 8px; line-height: 1.5; }
.slot-list { margin-top: 13px; display: grid; gap: 8px; }
.slot-list article { border-top: 1px solid var(--line); padding: 10px 0; display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; }
.slot-list strong { font-size: 10px; }
.slot-list p { margin: 0; color: var(--muted); font-size: 9px; }
.slot-list small { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--teal); font-size: 9px; font-weight: 850; }
.unbooked-list { margin-top: 12px; display: grid; gap: 7px; }
.unbooked-list a { border-top: 1px solid var(--line); padding: 10px 0; display: flex; justify-content: space-between; gap: 10px; text-decoration: none; }
.unbooked-list strong { font-size: 10px; }
.unbooked-list small { color: var(--muted); font-size: 8px; }

.workspace-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(290px, .65fr); gap: 18px; }
.course-entry {
  min-height: 350px;
  border: 1px solid #a7c0b7;
  border-radius: var(--radius);
  padding: 30px;
  color: white;
  background: var(--forest);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.course-entry .phase-label { color: #9fd8cb; }
.course-entry h3 { margin: 42px 0 14px; font-family: var(--serif); font-size: clamp(32px, 4vw, 48px); }
.course-entry p { max-width: 660px; margin: 0; color: rgba(255, 255, 255, .7); font-size: 15px; line-height: 1.8; }
.course-entry-footer { margin-top: auto; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.course-entry-meta { color: rgba(255, 255, 255, .62); font-size: 12px; line-height: 1.65; }
.course-entry-link { min-height: 48px; border-radius: 9px; padding: 13px 17px; color: var(--forest-deep); background: #f6f3e9; text-decoration: none; font-weight: 850; }
.course-entry-link:hover { background: white; }
.future-entry { min-height: 350px; border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 28px; background: rgba(255, 255, 255, .48); display: flex; flex-direction: column; justify-content: space-between; }
.future-entry span { color: var(--gold); font-family: var(--serif); font-size: 34px; }
.future-entry h3 { margin: 0 0 9px; font-family: var(--serif); font-size: 23px; }
.future-entry p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.operating-model { margin-top: 58px; }
.model-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.model-item { min-height: 190px; padding: 24px; border-right: 1px solid var(--line); }
.model-item:last-child { border-right: 0; }
.model-index { color: var(--gold); font-family: var(--serif); font-size: 29px; }
.model-item h3 { margin: 22px 0 8px; font-size: 16px; }
.model-item p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.habit-line { margin-top: 18px; padding: 15px 18px; border-radius: 10px; color: var(--forest); background: var(--mint); font-size: 13px; font-weight: 750; line-height: 1.6; }

.app-layout { min-height: calc(100vh - 76px); display: grid; grid-template-columns: 236px minmax(0, 1fr); }
.app-sidebar { position: sticky; top: 0; height: calc(100vh - 76px); padding: 28px 18px; color: white; background: var(--forest); }
.app-sidebar h2 { margin: 0 10px 8px; font-family: var(--serif); font-size: 21px; }
.app-sidebar > p { margin: 0 10px 24px; color: rgba(255, 255, 255, .6); font-size: 12px; line-height: 1.6; }
.app-nav { display: grid; gap: 6px; }
.app-nav button { width: 100%; border: 0; border-radius: 9px; padding: 10px 12px; color: rgba(255, 255, 255, .7); background: transparent; text-align: left; font-size: 13px; font-weight: 750; }
.app-nav button:hover, .app-nav button.active { color: var(--forest-deep); background: #f4f3ed; }
.ai-state { margin-top: 28px; padding: 14px 12px; border-top: 1px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .64); font-size: 11px; line-height: 1.6; }
.state-dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #e2a857; }
.state-dot.live { background: #7ee0b4; }

.app-main { min-width: 0; padding: 38px clamp(22px, 4vw, 56px) 70px; }
.app-panel { display: none; width: min(1120px, 100%); margin: auto; }
.app-panel.active { display: block; animation: rise .2s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.app-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.app-heading h1 { margin: 0; font-family: var(--serif); font-size: clamp(32px, 4.5vw, 50px); line-height: 1.16; letter-spacing: -.025em; }
.app-heading p { max-width: 720px; margin: 12px 0 0; color: var(--muted); line-height: 1.7; }
.mode-switch { flex: 0 0 auto; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); display: flex; gap: 3px; }
.mode-switch button { min-height: 38px; border: 0; border-radius: 8px; padding: 8px 12px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 800; }
.mode-switch button.active { color: white; background: var(--forest); }

.input-sheet { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 20px; align-items: start; }
.form-card, .side-card, .action-card, .library-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 26px rgba(23, 52, 47, .05);
}
.form-card { padding: 26px; }
.side-card { padding: 21px; }
.side-card + .side-card { margin-top: 12px; }
.side-card h3 { margin: 0 0 10px; font-size: 14px; }
.side-card p, .side-card li { color: var(--muted); font-size: 12px; line-height: 1.65; }
.side-card ul { margin: 0; padding-left: 18px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 7px; }
.field.wide { grid-column: 1 / -1; }
.field label { color: var(--ink); font-size: 12px; font-weight: 800; }
.field small { color: var(--muted); font-size: 10px; line-height: 1.5; }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 11px 12px;
  color: var(--ink);
  background: white;
}
.field textarea { min-height: 118px; resize: vertical; line-height: 1.65; }
.field textarea.large { min-height: 180px; font-family: var(--serif); font-size: 17px; }
.check-line { grid-column: 1 / -1; min-height: 48px; border: 1px solid var(--line); border-radius: 9px; padding: 11px 13px; display: flex; align-items: center; gap: 10px; color: var(--muted); background: #f7f8f5; font-size: 12px; line-height: 1.55; }
.check-line input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--teal); }
.form-actions { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.privacy-line { color: var(--muted); font-size: 11px; line-height: 1.55; }
.primary-button, .secondary-button, .danger-button {
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 11px 16px;
  font-weight: 800;
}
.primary-button { color: white; background: var(--teal); }
.primary-button:hover { background: var(--forest); }
.primary-button:disabled { cursor: wait; opacity: .62; }
.secondary-button { color: var(--forest); border-color: var(--line-strong); background: white; }
.danger-button { color: var(--danger); background: var(--danger-soft); }

.result-shell { display: grid; gap: 16px; }
.signal-bar { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.signal-cell { padding: 17px 19px; border-right: 1px solid var(--line); }
.signal-cell:last-child { border-right: 0; }
.signal-cell small { display: block; color: var(--muted); font-size: 10px; }
.signal-cell strong { display: block; margin-top: 6px; font-family: var(--serif); font-size: 17px; line-height: 1.4; }
.next-question { border-radius: var(--radius); padding: 27px 30px; color: white; background: var(--forest-deep); box-shadow: var(--shadow); }
.next-question small { color: #9fd8cb; font-size: 10px; font-weight: 850; letter-spacing: .12em; }
.next-question blockquote { margin: 15px 0 0; font-family: var(--serif); font-size: clamp(22px, 3vw, 31px); line-height: 1.55; }
.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.action-card { padding: 23px; }
.action-card.full { grid-column: 1 / -1; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-heading h3 { margin: 0; font-size: 15px; }
.copy-button { min-height: 34px; border: 1px solid var(--line); border-radius: 7px; padding: 6px 9px; color: var(--muted); background: white; font-size: 10px; font-weight: 800; }
.script-copy { margin: 0; color: var(--ink); font-family: var(--serif); font-size: 16px; line-height: 1.8; white-space: pre-wrap; }
.top-gap-sm { margin-top: 12px; }
.top-gap-md { margin-top: 16px; }
.muted-copy { color: var(--muted); }
.info-list { margin: 0; padding-left: 18px; }
.info-list li { margin: 8px 0; color: var(--muted); line-height: 1.6; }
.steps-list { margin: 0; padding: 0; list-style: none; counter-reset: action; }
.steps-list li { counter-increment: action; display: grid; grid-template-columns: 28px 1fr; gap: 10px; margin: 13px 0; color: var(--muted); line-height: 1.55; }
.steps-list li::before { content: counter(action); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--teal); background: var(--mint); font-size: 11px; font-weight: 850; }
.risk-card { border-color: #e3c2bb; background: #fffaf8; }
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.result-warning { border: 1px solid #dfc39c; border-radius: 10px; padding: 12px 15px; color: #724b20; background: var(--gold-soft); font-size: 12px; line-height: 1.6; }

.library-toolbar { margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.library-toolbar input, .library-toolbar select { min-height: 42px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 9px 11px; background: white; }
.library-list { display: grid; gap: 11px; }
.library-card { padding: 19px 21px; }
.library-card-head { display: flex; align-items: center; gap: 8px; }
.library-id { margin-right: auto; color: var(--teal); font-size: 10px; font-weight: 850; }
.tag { display: inline-flex; border-radius: 999px; padding: 5px 8px; color: var(--muted); background: #edf1ee; font-size: 9px; font-weight: 850; }
.tag.good { color: var(--success); background: var(--success-soft); }
.tag.warn { color: #7c551e; background: var(--gold-soft); }
.library-card h3 { margin: 14px 0 6px; font-family: var(--serif); font-size: 17px; }
.library-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.empty-state { min-height: 280px; border: 1px dashed var(--line-strong); border-radius: var(--radius); display: grid; place-items: center; padding: 36px; color: var(--muted); background: rgba(255, 255, 255, .46); text-align: center; line-height: 1.7; }

.login-layer { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; background: rgba(6, 37, 32, .76); backdrop-filter: blur(8px); }
.login-layer.hidden { display: none; }
.workspace-pending .hero, .workspace-pending .portal-main { visibility: hidden; }
.login-card { width: min(440px, 100%); border-radius: 20px; padding: 30px; background: var(--surface); box-shadow: 0 30px 100px rgba(0, 0, 0, .28); }
.login-seal { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--teal); font-family: var(--serif); }
.login-card h2 { margin: 18px 0 8px; font-family: var(--serif); font-size: 27px; }
.login-card > p { margin: 0 0 20px; color: var(--muted); line-height: 1.65; }
.login-card .field { margin-top: 13px; }
.login-card .primary-button { width: 100%; margin-top: 18px; }
.error-text { min-height: 20px; margin-top: 9px; color: var(--danger); font-size: 12px; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 30; max-width: min(380px, calc(100vw - 44px)); border-radius: 10px; padding: 13px 16px; color: white; background: var(--forest-deep); box-shadow: var(--shadow); opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .18s ease, transform .18s ease; font-size: 12px; }
.toast.show { opacity: 1; transform: none; }
.hidden { display: none !important; }

@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-guide { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .2); padding: 24px 0 0; }
  .app-layout { grid-template-columns: 1fr; }
  .app-sidebar { position: static; width: 100%; height: auto; padding: 16px 20px; }
  .app-sidebar h2, .app-sidebar > p, .ai-state { display: none; }
  .app-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .app-nav button { text-align: center; padding: 8px 4px; font-size: 11px; }
  .input-sheet { grid-template-columns: 1fr; }
  .dashboard-intro, .dashboard-layout { grid-template-columns: 1fr; }
  .student-hero, .student-layout { grid-template-columns: 1fr; }
  .management-hero, .management-layout { grid-template-columns: 1fr; }
  .cohort-hero, .cohort-layout { grid-template-columns: 1fr; }
  .cohort-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cohort-metrics article:nth-child(3n) { border-right: 0; }
  .cohort-metrics article:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .management-process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .student-status-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .student-status-grid article:nth-child(3n) { border-right: 0; }
  .student-status-grid article:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-card:nth-child(2) { border-right: 0; }
  .metric-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .workspace-grid { grid-template-columns: 1fr; }
  .future-entry { min-height: 220px; }
  .input-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .side-card + .side-card { margin-top: 0; }
}

@media (max-width: 700px) {
  .header-inner { width: min(100% - 28px, 1180px); min-height: 68px; }
  .wordmark small, .header-nav a:not(.active), .header-nav button, .header-user { display: none; }
  .hero-inner, .portal-main { width: min(100% - 28px, 1180px); }
  .hero-inner { min-height: auto; padding: 50px 0 46px; }
  .hero h1 { font-size: 42px; }
  .hero-lead { font-size: 15px; }
  .section-heading, .app-heading { display: block; }
  .role-filter, .mode-switch { margin-top: 18px; }
  .project-grid, .field-grid, .result-grid, .input-side { grid-template-columns: 1fr; }
  .dashboard-main { width: min(100% - 28px, 1240px); padding: 34px 0 58px; }
  .student-main { width: min(100% - 28px, 1180px); padding: 30px 0 54px; }
  .management-main { width: min(100% - 28px, 1240px); padding: 30px 0 54px; }
  .cohort-main { width: min(100% - 28px, 1180px); padding: 30px 0 54px; }
  .cohort-hero h1 { font-size: 38px; }
  .cohort-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cohort-metrics article:nth-child(3n) { border-right: 1px solid var(--line); }
  .cohort-metrics article:nth-child(2n) { border-right: 0; }
  .cohort-metrics article:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .management-hero h1 { font-size: 38px; }
  .management-gates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .management-gates article { min-height: 160px; border-bottom: 1px solid var(--line); }
  .management-gates article:nth-child(2n) { border-right: 0; }
  .management-gates article:nth-last-child(-n+2) { border-bottom: 0; }
  .workload-columns { grid-template-columns: 1fr; }
  .workload-columns article { grid-template-columns: minmax(70px, 1fr) repeat(2, auto); }
  .workload-columns article span:nth-of-type(-n+2) { display: none; }
  .commercial-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .commercial-metrics article { border-bottom: 1px solid var(--line); }
  .student-hero h1 { font-size: 38px; }
  .student-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .student-status-grid article { min-height: 96px; }
  .student-status-grid article:nth-child(3n) { border-right: 1px solid var(--line); }
  .student-status-grid article:nth-child(2n) { border-right: 0; }
  .student-status-grid article:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .dashboard-intro { gap: 22px; }
  .dashboard-intro h1 { font-size: 37px; }
  .metric-grid { grid-template-columns: 1fr 1fr; margin-top: 24px; }
  .metric-card { min-height: 140px; padding: 17px; }
  .metric-card strong { font-size: 34px; }
  .dashboard-layout { margin-top: 32px; }
  .dashboard-section-heading { display: block; }
  .dashboard-section-heading > p { margin-top: 8px; text-align: left; }
  .task-card { grid-template-columns: 66px minmax(0, 1fr); gap: 12px; padding: 16px; }
  .task-action { grid-column: 1 / -1; width: 100%; display: flex; align-items: center; justify-content: space-between; text-align: left; }
  .task-action span { margin: 0; }
  .task-action-buttons { min-width: 150px; }
  .workflow-dialog form { padding: 20px; }
  .workflow-actions { align-items: stretch; flex-direction: column-reverse; }
  .gate-grid { grid-template-columns: 1fr; }
  .model-grid { grid-template-columns: 1fr; }
  .model-item { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .model-item:last-child { border-bottom: 0; }
  .course-entry { min-height: 380px; padding: 24px; }
  .course-entry-footer { align-items: stretch; flex-direction: column; }
  .course-entry-link { text-align: center; }
  .project-card { min-height: 320px; padding: 22px; }
  .card-footer { align-items: stretch; flex-direction: column; }
  .card-link { display: block; text-align: center; }
  .app-main { padding: 28px 14px 52px; }
  .form-card, .side-card, .action-card { padding: 19px; }
  .field.wide, .action-card.full { grid-column: auto; }
  .check-line { grid-column: auto; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .primary-button, .secondary-button, .danger-button { min-height: 46px; }
  .signal-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .signal-cell:nth-child(2) { border-right: 0; }
  .signal-cell:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .next-question { padding: 22px; }
  .library-toolbar { align-items: stretch; flex-direction: column; }
  .library-toolbar input, .library-toolbar select { width: 100%; }
}

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


.queue-filters { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 0 0 12px; }
.queue-filters label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.queue-filters select { min-height: 36px; }
.queue-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 0 0 24px; }
.queue-bucket { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; min-width: 0; }
.queue-bucket h3 { margin: 0 0 8px; font-size: 15px; display: flex; justify-content: space-between; gap: 8px; }
.queue-bucket a, .queue-bucket p { display: block; margin: 0 0 6px; color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.student-grade { margin: 0 0 16px; color: var(--teal); }
@media (max-width: 390px) {
  .queue-grid { grid-template-columns: 1fr; }
  .queue-filters { flex-direction: column; }
  .dashboard-main, .student-main, .cohort-main { overflow-x: hidden; }
}
