/* 满托 BrandKit tokens — workbench surface */
:root {
  --ink: #2a2620;
  --paper: #fbf7f0;
  --zhu: #5b4f8a;
  --muted: #8c8377;
  --line: #e7dfd2;
  --white: #ffffff;
  --soft: rgba(91, 79, 138, 0.08);
  --ok: #2e7d32;
  --ok-bg: rgba(46, 125, 50, 0.12);
  --ok-bd: rgba(46, 125, 50, 0.35);
  --warn: #a8762b;
  --warn-bg: rgba(168, 118, 43, 0.15);
  --warn-bd: rgba(168, 118, 43, 0.4);
  /* 缺失态：克制砖色，避开正红系 */
  --bad: #8f4a3c;
  --bad-bg: rgba(143, 74, 60, 0.12);
  --bad-bd: rgba(143, 74, 60, 0.35);
  --soft-text: #5b5f7a;
  --soft-bg: var(--soft);
  --card: var(--white);
  --bg: var(--paper);
  --bg0: var(--white);
  --bg1: var(--paper);
  --bg2: var(--white);
  --accent: var(--zhu);
  --accent-dim: var(--zhu);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 999px;
  --radius: var(--r-lg);
  --sh-card: 0 1px 2px rgba(0, 0, 0, 0.04);
  --sh-pop: 0 14px 40px rgba(0, 0, 0, 0.18);
  --shadow: var(--sh-card);
  --motion: 0.15s ease;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --display: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-en: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.shell {
  max-width: min(1600px, 100%);
  margin: 0 auto;
  padding: 1rem 1.25rem 1.25rem;
  height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo {
  width: 40px;
  height: 40px;
  display: block;
  object-fit: contain;
}

.brand-text { display: flex; flex-direction: column; gap: 0.1rem; }

.brand-mark {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--zhu);
  font-weight: 700;
}

.brand h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.15;
}

.tag {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.session {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.panel.login {
  max-width: 420px;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-card);
}

.panel.login h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--zhu);
}

.lede {
  color: var(--muted);
  margin: 0.5rem 0 1.25rem;
  font-size: 0.92rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.field span {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

select {
  appearance: none;
  background: var(--bg0);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  font: inherit;
}

button {
  font: inherit;
  cursor: pointer;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.55rem 1rem;
}

button.primary {
  background: var(--zhu);
  color: #fff;
  font-weight: 700;
  width: 100%;
  border-radius: var(--r-pill);
  border-color: var(--zhu);
  transition: var(--motion);
}

button.primary:hover { filter: brightness(1.05); }

button.ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
  border-radius: var(--r-pill);
}

button.ghost:hover { color: var(--zhu); border-color: var(--zhu); }

.error {
  color: var(--bad);
  font-size: 0.88rem;
  margin: 0.75rem 0 0;
}

.main {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 1rem;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  align-items: stretch;
}

@media (max-width: 900px) {
  html, body { overflow: auto; height: auto; }
  .shell {
    height: auto;
    max-height: none;
    overflow: visible;
  }
  .main {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }
  .roster {
    max-height: min(55vh, 28rem);
  }
  .top { flex-direction: column; align-items: flex-start; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.roster {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-card);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  gap: 0.45rem;
}

.roster-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.2rem;
  flex-shrink: 0;
}

.roster-head h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.pill {
  background: var(--bg0);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.roster-search {
  display: block;
  flex-shrink: 0;
}

.roster-search input {
  width: 100%;
  appearance: none;
  background: var(--bg0);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  font: inherit;
  font-size: 0.88rem;
}

.roster-search input:focus {
  outline: 2px solid rgba(91, 79, 138, 0.35);
  outline-offset: 1px;
  border-color: var(--zhu);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  flex-shrink: 0;
  padding: 0 0.05rem;
}

.chip {
  appearance: none;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 0.22rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--motion);
}

.chip:hover { color: var(--zhu); border-color: var(--zhu); }
.chip.active {
  background: var(--soft);
  color: var(--zhu);
  border-color: rgba(91, 79, 138, 0.35);
}

.student-dir {
  list-style: none;
  margin: 0;
  padding: 0 0.15rem 0 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(91, 79, 138, 0.45) rgba(231, 223, 210, 0.6);
}

.student-dir::-webkit-scrollbar {
  width: 9px;
}
.student-dir::-webkit-scrollbar-track {
  background: rgba(231, 223, 210, 0.55);
  border-radius: 999px;
}
.student-dir::-webkit-scrollbar-thumb {
  background: rgba(91, 79, 138, 0.42);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.student-dir::-webkit-scrollbar-thumb:hover {
  background: rgba(91, 79, 138, 0.6);
  background-clip: padding-box;
  border: 2px solid transparent;
}

.dir-group {
  margin: 0;
  padding: 0;
}

.dir-group-head {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 0.4rem 0.45rem;
  margin: 0.15rem 0 0.1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.dir-row {
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--ink);
  border: 1px solid transparent;
  padding: 0.38rem 0.45rem;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.dir-row:hover,
.dir-row.active {
  background: var(--soft);
  border-color: var(--line);
}

.dir-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--zhu);
  letter-spacing: 0.03em;
  white-space: nowrap;
  line-height: 1.2;
}

.dir-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.dir-name {
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dir-sub {
  font-size: 0.7rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dots {
  display: flex;
  gap: 0.18rem;
  flex-shrink: 0;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
}
.dot-ok { background: var(--ok); }
.dot-review { background: var(--warn); }
.dot-missing { background: var(--bad); }
.dot-na { background: var(--line); opacity: 0.7; }
.dot-unknown { background: var(--line); opacity: 0.45; }

.dir-end {
  margin: 0.65rem 0.35rem 0.85rem;
  padding: 0.55rem 0.45rem;
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
  border-top: 1px dashed var(--line);
}

.dir-empty {
  margin: 1rem 0.35rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.badge {
  display: inline-block;
  font-size: 0.68rem;
  padding: 0.05rem 0.35rem;
  border-radius: var(--r-pill);
  background: var(--soft);
  color: var(--zhu);
  width: fit-content;
  margin-top: 0.2rem;
  font-weight: 700;
}

.badge-hs {
  background: var(--soft);
  color: var(--zhu);
  border: 1px solid var(--line);
  margin-top: 0;
  margin-left: 0.35rem;
}

.name-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.roster-role-counts {
  margin: 0;
  padding: 0 0.2rem 0.15rem;
  font-size: 0.72rem;
  color: var(--muted);
  flex-shrink: 0;
}

.role-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.02rem 0.28rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  color: var(--muted);
  margin-left: 0.25rem;
  vertical-align: middle;
}
.role-tag-primary {
  color: var(--zhu);
  background: var(--soft);
  border-color: rgba(91, 79, 138, 0.3);
}
.role-tag-assist {
  color: var(--warn);
  background: var(--warn-bg);
  border-color: var(--warn-bd);
}
.role-tag-both {
  color: var(--zhu);
  background: var(--soft);
}
.role-tag-grad {
  color: #3d5a40;
  background: rgba(61, 90, 64, 0.12);
  border-color: rgba(61, 90, 64, 0.35);
}

.track-badge {
  display: inline-block;
  margin-left: 0.45rem;
  vertical-align: middle;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.12rem 0.45rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  letter-spacing: 0.02em;
}
.track-badge.track-graduate {
  color: #3d5a40;
  background: rgba(61, 90, 64, 0.12);
  border-color: rgba(61, 90, 64, 0.35);
}
.track-badge.track-undergraduate {
  color: var(--zhu);
  background: var(--soft);
  border-color: rgba(91, 79, 138, 0.3);
}

.lights {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.35rem;
}

.light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.7rem;
  height: 1.3rem;
  padding: 0 0.35rem;
  border-radius: var(--r-pill);
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--soft);
  color: var(--muted);
  border: 1px solid transparent;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.light-ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-bd); }
.light-review { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-bd); }
.light-missing { background: var(--bad-bg); color: var(--bad); border-color: var(--bad-bd); }
.light-na { opacity: 0.7; }
.light-unknown { opacity: 0.45; }

.queue-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.queue-identity {
  min-width: 0;
  flex: 1;
}

.stable-code {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--zhu);
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}

.queue-bar h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}

.queue-bar .meta {
  margin: 0.35rem 0 0.55rem;
}

.queue-lights .lights {
  margin-top: 0;
}

.queue-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  flex-shrink: 0;
}

.queue-pos {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.queue-btns {
  display: flex;
  gap: 0.45rem;
}

.queue-btn {
  width: auto;
  min-width: 5.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--r-pill);
}

button.primary.queue-btn {
  width: auto;
}

.queue-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.queue-hint {
  margin: 0;
  font-size: 0.75rem;
  color: var(--warn);
}

.action-line {
  margin: 0.35rem 0 0.75rem;
  padding: 0.55rem 0.7rem;
  border-left: 3px solid var(--zhu);
  background: var(--soft);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 0.88rem;
}

.file-list {
  margin-top: 0.85rem;
}

.file-list h4 {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.file-list ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.85rem;
}

.brief-pre {
  margin: 0.85rem 0 0;
  padding: 0.7rem 0.8rem;
  background: var(--bg0);
  border-radius: 8px;
  white-space: pre-wrap;
  font-size: 0.8rem;
  color: var(--muted);
  font-family: var(--font);
}

.detail {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-card);
  padding: 1rem 1.25rem 1.35rem;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
}

.empty {
  color: var(--muted);
  padding: 2rem 0.5rem;
}

.meta {
  margin: 0.35rem 0 1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.hint {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.empty-inline {
  margin: 0;
  color: var(--muted);
}

.blocks {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.detail-grid-2 {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}

@media (max-width: 1200px) {
  .detail-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
  .detail-grid,
  .detail-grid-2 { grid-template-columns: 1fr; }
}

.detail-grid .block {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--sh-card);
  padding: 0.85rem 0.9rem;
  margin: 0;
}

.block {
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
}

.block-wide {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--sh-card);
  padding: 0.9rem 1rem 1rem;
}

.block-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.block-toolbar h3 { margin: 0; }

.docs-block .docs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
}

@media (max-width: 720px) {
  .docs-block .docs-grid {
    grid-template-columns: 1fr;
  }
}

.docs-card {
  border-top: 1px solid var(--line);
  padding-top: 0.55rem;
}

.docs-card h4 {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}

.docs-status {
  line-height: 1.45;
  font-size: 0.92rem;
}

.docs-missing {
  color: var(--muted);
}

.docs-primary {
  color: var(--zhu);
  font-weight: 600;
  text-decoration: none;
}

.docs-primary:hover {
  text-decoration: underline;
}

.docs-actions {
  margin-top: 0.45rem;
  font-size: 0.86rem;
  line-height: 1.4;
}

.docs-actions a {
  color: var(--zhu);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.docs-actions a.docs-fallback {
  color: var(--muted);
  font-weight: 500;
}

.docs-file-list {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.86rem;
  line-height: 1.45;
}

.docs-file-list a {
  color: var(--zhu);
  text-decoration: none;
}

.docs-file-list a:hover {
  text-decoration: underline;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.source-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--zhu);
  color: #fff;
  font-weight: 700;
  font-size: 0.84rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--r-pill);
  text-decoration: none;
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: var(--motion);
}

.source-btn:hover { filter: brightness(1.05); }

.source-btn-muted { opacity: 0.55; }

.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
  max-width: min(36rem, 70vw);
}

.src-badge {
  font-size: 0.68rem;
  padding: 0.05rem 0.28rem;
  border-radius: 999px;
  background: #fff;
  color: var(--zhu);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.src-badge-refuse { background: #6b7280; color: #fff; }

.src-count {
  font-size: 0.7rem;
  opacity: 0.8;
}

.src-count::before { content: "·"; margin-right: 0.12rem; }

.path-inline {
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 28rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.block h3 {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--zhu);
  font-weight: 800;
}

.kv {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.25rem 0.75rem;
  font-size: 0.9rem;
}

.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

.status-present { color: var(--ok); }
.status-absent_row,
.status-missing,
.status-absent { color: var(--bad); }
.status-partial { color: var(--warn); }

.stat-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.gpa-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .stat-row,
  .gpa-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.stat {
  background: var(--bg0);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.stat-k {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}

.stat-v {
  font-weight: 600;
  font-size: 0.95rem;
}

.notes {
  margin: 0 0 0.85rem;
  padding-left: 1.1rem;
  color: var(--warn);
  font-size: 0.82rem;
}

.period-layout {
  display: grid;
  grid-template-columns: minmax(14rem, 20rem) minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
}

@media (max-width: 900px) {
  .period-layout { grid-template-columns: 1fr; }
}

.period-picker {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.period-picker span {
  font-size: 0.8rem;
  color: var(--muted);
}

.period-btn-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: min(48vh, 420px);
  overflow: auto;
  padding: 0.15rem;
}

.period-btn {
  width: 100%;
  text-align: left;
  background: var(--bg0);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.period-btn:hover {
  border-color: var(--zhu);
  color: var(--zhu);
}

.period-btn.active {
  border-color: var(--zhu);
  background: var(--soft);
}

.period-btn-label {
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.35;
}

.period-current {
  margin: 0 0 0.55rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.period-current strong {
  color: var(--ink);
  font-weight: 600;
}

.period-table-host {
  min-width: 0;
}

.table-wrap {
  margin-top: 0.35rem;
  overflow-x: auto;
}

.course-scroll {
  max-height: min(48vh, 420px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg0);
}

.score-table,
.course-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.score-table th,
.score-table td,
.course-table th,
.course-table td {
  text-align: left;
  padding: 0.4rem 0.45rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.score-table th,
.course-table th {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mat-type { font-weight: 800; width: 6.5rem; color: var(--zhu); }
.mat-score { color: var(--ink); }
.score-main { font-weight: 700; }
.course-table td:first-child {
  font-weight: 700;
  color: var(--ink);
}

.file-under {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.3;
}
.file-under a {
  color: var(--zhu);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.file-under.muted { color: var(--muted); }

.meeting-summary {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink);
  white-space: pre-wrap;
  max-height: 7.5rem;
  overflow: auto;
}
.meeting-kv .muted {
  color: var(--muted);
  font-weight: 500;
}

.meeting-kv { grid-template-columns: 3.5rem 1fr; }
.hint-inline {
  margin-left: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
}
.meeting-kv a {
  color: var(--zhu);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.course-table .grade-cell {
  color: var(--zhu);
  font-weight: 600;
  white-space: nowrap;
}

.muted-cell { color: var(--muted); }

.meeting-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.meeting-when {
  margin: 0;
  font-size: 0.9rem;
}

.meeting-title {
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.35;
}

a.meeting-title:hover {
  color: var(--zhu);
  text-decoration: underline;
}

.subhead {
  margin: 0.65rem 0 0.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.summary-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  max-height: 12rem;
  overflow: auto;
}

.summary-list li {
  margin: 0.25rem 0;
}

.pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--bg0);
  padding: 0.75rem;
  border-radius: 8px;
  max-height: 240px;
  overflow: auto;
}
