.topbar { grid-template-columns: auto auto minmax(0, 1fr); }
.brand-mark { min-width: 0; white-space: nowrap; }
.course-switcher { display: inline-flex; flex: 0 1 auto; align-items: center; gap: 9px; min-width: 0; color: var(--muted); font-size: 13px; font-weight: 800; white-space: nowrap; }
.course-switcher select { flex: 1 1 270px; width: 270px; max-width: 270px; min-width: 0; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); padding: 9px 34px 9px 13px; font: inherit; font-weight: 800; cursor: pointer; text-overflow: ellipsis; white-space: nowrap; transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease; }
.course-switcher select:hover { border-color: var(--purple); }
.course-switcher select:focus-visible { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(89, 43, 231, .14); }
.course-switcher select option { background: #fff; color: var(--ink); }
.v26-course-switcher { justify-self: start; }
.v26-course-switcher select { border-color: var(--v26-course-accent, var(--line)); background: var(--v26-course-soft, #fff); }
@supports (appearance: base-select) {
  .course-switcher select,
  .course-switcher select::picker(select) { appearance: base-select; }
  .course-switcher select::picker-icon { color: var(--purple); transition: rotate .18s ease; }
  .course-switcher select:open::picker-icon { rotate: 180deg; }
  .course-switcher select::picker(select) { margin-block-start: 8px; padding: 6px; border: 1px solid #e0e5f5; border-radius: 16px; background: #fff; box-shadow: 0 16px 38px rgba(35, 42, 91, .18); }
  .course-switcher select option { min-height: 40px; padding: 10px 12px; border-radius: 10px; }
  .course-switcher select option:hover { background: #f4f1ff; }
  .course-switcher select option:checked { background: #eee9ff; color: #3c1aa8; font-weight: 800; }
}
.topbar-actions { min-width: 0; flex-wrap: nowrap; gap: 10px; }
.topbar-actions .ghost-btn { flex: 0 0 auto; white-space: nowrap; }
.session-pill { min-width: 0; max-width: 240px; white-space: nowrap; }
.session-pill > .session-name { display: block; min-width: 0; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.session-pill > span:last-child { min-width: 0; max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v26-hero { grid-template-columns: minmax(0, 1.5fr) minmax(260px, .7fr); }
.v26-hero-panel { align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 12px; border-radius: 22px; padding: clamp(22px, 3vw, 34px); color: #fff; background: linear-gradient(145deg, var(--purple), #243d9e); box-shadow: 0 22px 44px rgba(53, 18, 138, .22); }
.v26-hero-panel strong { font-size: clamp(38px, 5vw, 62px); line-height: 1; }.v26-hero-panel p { margin: 0; color: rgba(255,255,255,.8); line-height: 1.55; }.mini-label { letter-spacing: .12em; font-size: 11px; font-weight: 900; }.v26-status-row { display:flex; gap:8px; align-items:center; font-size:13px; font-weight:700; }.status-dot { width:9px; height:9px; border-radius:50%; background:#73e6ac; box-shadow:0 0 0 5px rgba(115,230,172,.17); }
.v26-card-button { border: 0; width: 100%; text-align: left; font: inherit; cursor: pointer; }.v26-card-static { cursor: default; }.route-soon { margin-left:auto; align-self:center; color:var(--muted); font-size:12px; font-weight:800; }
.v26-dashboard { align-items: stretch; }.v26-gates { display:flex; flex-wrap:wrap; gap:8px; margin-top:18px; }.v26-gate { border-radius:999px; padding:7px 10px; font-size:12px; font-weight:800; background:var(--green-soft); color:#137544; }.v26-gate.pending { background:var(--soft); color:var(--muted); }
.v26-section { margin: var(--section-gap) 0; padding: var(--panel-pad); border:1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.88); box-shadow: var(--soft-shadow); }.v26-section-heading { display:flex; align-items:start; justify-content:space-between; gap:20px; margin-bottom:18px; }.v26-section-heading h2 { margin:4px 0 0; font-size:clamp(21px,2.6vw,32px); }.v26-muted { color:var(--muted); font-size:13px; }
.v26-topic-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:12px; }.v26-topic { padding:16px; border:1px solid var(--line); border-radius:14px; background:var(--soft); text-align:left; cursor:pointer; font:inherit; color:var(--ink); }.v26-topic:hover { transform:translateY(-2px); box-shadow:var(--soft-shadow); border-color:#b8c6fc; }.v26-topic strong,.v26-topic span { display:block; }.v26-topic strong { margin-bottom:8px; font-size:15px; }.v26-topic span { color:var(--muted); font-size:12px; }.v26-question-list { display:grid; gap:10px; }.v26-question { display:flex; gap:14px; align-items:start; padding:15px; border:1px solid var(--line); border-radius:12px; }.v26-question-id { flex:0 0 auto; padding:6px 8px; border-radius:8px; color:var(--blue); background:var(--blue-soft); font-size:12px; font-weight:900; }.v26-question p { margin:1px 0 0; color:var(--muted); font-size:13px; line-height:1.5; }
.v26-formula-filter-panel { flex-wrap: wrap; align-items: center; }
.v26-formula-filter-panel .v26-search-field { flex: 0 1 330px; width: min(100%, 330px); max-width: 330px; min-width: 0; }
.v26-formula-page .v26-search-field input { min-width: 210px; border: 0; outline: 0; background: transparent; font: inherit; color: var(--ink); }
.v26-formula-filter-panel .unit-strip { flex: 1 0 100%; width: 100%; max-width: 100%; margin-left: 0; flex-wrap: wrap; justify-content: flex-start; overflow: visible; padding-top: 4px; }
.v26-formula-filter-panel .unit-chip { flex: 0 1 auto; }
.v26-formula-page .topic-progress-row { display: flex; align-items: end; gap: 14px; width: min(100%, 520px); margin-top: 3px; border-radius: 0; background: transparent; padding: 0; color: inherit; font-size: inherit; font-weight: inherit; }
.v26-formula-page .topic-question-badge { flex: 0 0 auto; border-radius: 999px; padding: 6px 10px; background: #fff0e8; color: #ef6b3a; font-size: 12px; font-weight: 900; }
.v26-formula-page .topic-progress { display: grid; flex: 1 1 280px; gap: 5px; min-width: 0; }
.v26-formula-page .topic-progress-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 12px; font-weight: 800; }
.v26-formula-page .topic-progress-meta strong { color: var(--ink); font-size: 13px; }
.v26-formula-page .topic-progress-track { display: block; width: 100%; height: 8px; overflow: hidden; border-radius: 999px; background: #e9edf8; }
.v26-formula-page .topic-progress-track > span { display: block; height: 100%; border-radius: inherit; background: #f5ae20; }
@media (max-width: 780px) { .v26-formula-page .v26-search-field { max-width: none; width: 100%; }.v26-formula-page .v26-search-field input { min-width: 0; width: 100%; }.v26-formula-page .topic-progress-row { width: 100%; } }
@media (max-width: 780px) { .topbar { grid-template-columns:1fr auto; }.course-switcher { grid-column:1 / -1; grid-row:2; padding-bottom:12px; width:100%; }.course-switcher select { flex:1; width:auto; max-width:none; }.topbar-actions { grid-column:1 / -1; grid-row:3; width:100%; }.v26-hero { grid-template-columns:1fr; }.v26-section-heading { display:block; }.v26-muted { display:block; margin-top:8px; } }

.v26-question-basket-action { display: inline-flex; margin: 8px 18px 10px; }

/* Home hero course panel: white type on the purple card, short status chip */
.v26-hero-panel { gap: 0; }
.v26-hero-panel .mini-label { margin: 0 0 14px; color: rgba(255, 255, 255, .72); font-size: 13px; letter-spacing: .14em; }
.v26-hero-panel strong { margin: 0 0 14px; font-size: clamp(48px, 6vw, 76px); font-weight: 900; letter-spacing: -.01em; white-space: nowrap; }
.v26-hero-panel strong.is-long { font-size: clamp(30px, 3.6vw, 44px); }
.v26-hero-panel p { color: rgba(255, 255, 255, .88); font-size: 16px; font-weight: 600; line-height: 1.5; }
.v26-hero-panel .v26-status-row { align-self: flex-start; margin-top: 22px; padding: 7px 14px 7px 11px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: 13px; font-weight: 700; line-height: 1.3; }
.v26-hero-panel .status-dot { flex: none; width: 8px; height: 8px; box-shadow: 0 0 0 4px rgba(115, 230, 172, .22); }

/* Home hero panel: the student's own progress in the current course */
.v26-panel-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.v26-panel-stats > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 14px 14px 12px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; background: rgba(255, 255, 255, .1); }
.v26-hero-panel .v26-panel-stats strong { margin: 0; font-size: clamp(24px, 2.4vw, 32px); font-weight: 900; line-height: 1.1; white-space: nowrap; }
.v26-panel-stats strong small { margin-left: 2px; font-size: 13px; font-weight: 700; opacity: .75; }
.v26-panel-stats span { color: rgba(255, 255, 255, .78); font-size: 12px; font-weight: 700; white-space: nowrap; }
.v26-panel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.v26-panel-action { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 10px; background: #fff; color: var(--purple-dark); font-size: 14px; font-weight: 850; white-space: nowrap; box-shadow: 0 10px 22px rgba(15, 22, 69, .22); }
.v26-panel-action span { font-size: 20px; line-height: 1; }
.v26-panel-action:hover { background: var(--purple-soft); }
.v26-panel-action-ghost { border: 1px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .12); color: #fff; box-shadow: none; }
.v26-panel-action-ghost:hover, .v26-panel-action-ghost:focus-visible { border-color: rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .22); color: #fff; }
@media (max-width: 420px) { .v26-panel-stats { grid-template-columns: 1fr 1fr; } .v26-panel-stats > div:last-child { grid-column: 1 / -1; } }

/* Home "最近更新": one-line ticker pinned to the bottom of the Syllabus Map copy; takes no layout space */
.v26-dashboard .recommendation-copy { position: relative; }
.v26-updates-ticker { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 8px; height: 24px; font-size: 13px; }
.v26-updates-ticker[hidden] { display: none; }
.v26-ticker-title { flex: none; border-radius: 999px; padding: 3px 9px; background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 900; }
.v26-ticker-window { flex: 1; min-width: 0; height: 24px; overflow: hidden; }
.v26-ticker-close { flex: none; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font: inherit; font-size: 12px; line-height: 20px; cursor: pointer; }
.v26-ticker-close:hover, .v26-ticker-close:focus-visible { background: var(--green-soft); color: var(--green); }
.v26-ticker-list { margin: 0; padding: 0; list-style: none; }
.v26-ticker-list li { height: 24px; overflow: hidden; color: var(--ink); font-weight: 700; line-height: 24px; text-overflow: ellipsis; white-space: nowrap; }
.v26-ticker-list time { margin-right: 8px; color: var(--muted); font-size: 12px; font-weight: 800; }
.v26-ticker-draft { display: inline-block; margin-right: 7px; padding: 1px 6px; border-radius: 999px; background: #fff0df; color: #a65311; font-size: 11px; font-weight: 800; line-height: 18px; vertical-align: 1px; }
@media (max-width: 1180px) { .v26-updates-ticker { display: none !important; } }

/* Keep the ICP footer visible above the full-screen login overlay. */
.login-overlay:not([hidden]) ~ .site-footer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 201; padding-bottom: 14px; }
