/* 研途 · 备考工作台、检索与阅读布局 */
:root {
  --yt-accent: #2144ef;
  --yt-accent-hover: #182fa6;
  --yt-highlight: #ffdf62;
  --yt-night: #202555;
  --yt-ease: cubic-bezier(.2,.75,.25,1);
  --yt-shell: 1248px;
}
html[data-palette="paper"] {
  --bg: #f7f8f2;
  --ink: #171a29;
  --ink-2: #4e5568;
  --ink-3: #545d73;
  --blue-soft: #e6eaff;
  --blue-line: #bac6f9;
}
html[data-theme="dark"] {
  --yt-accent: #3458e7;
  --yt-accent-hover: #2a48c2;
  --yt-night: #252d66;
}
html { scroll-padding-top: 80px; }
body { padding: 0; letter-spacing: 0; }
.wrap { max-width: var(--yt-shell); padding-inline: 40px; }
.workspace-skip { left: 12px; }
.topbar {
  position: sticky;
  top: 0;
  height: auto;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}
.topbar .topbar-in {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  gap: 20px;
  height: 70px;
  min-height: 0;
}
.workspace-brand {
  justify-self: start;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.07em;
}
.workspace-brand .brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #fff;
  background: var(--yt-accent);
  transform: rotate(-7deg);
}
.workspace-brand .brand-mark .ic { width: 22px; height: 22px; }
.workspace-primary { display: flex; align-self: stretch; justify-content: center; gap: 34px; }
.workspace-primary a {
  position: relative;
  display: grid;
  place-items: center;
  padding-inline: 5px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}
.workspace-primary a:hover, .workspace-primary a.on { color: var(--blue-ink); }
.workspace-primary a.on::after {
  position: absolute;
  inset: auto 4px -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--yt-accent);
  content: "";
}
.topbar .topbar-act { justify-self: end; gap: 7px; margin: 0; }
.topbar #searchBtn, .topbar #mobileMore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  min-width: 44px;
  min-height: 44px;
  padding-inline: 9px;
  border: 0;
  border-radius: 7px;
  color: var(--ink-2);
  background: transparent;
  font-weight: 650;
  font-size: 14px;
  transition: color .1s, background-color .1s, transform .15s var(--yt-ease);
}
.topbar #searchBtn:hover, .topbar #mobileMore:hover { color: var(--blue-ink); background: var(--blue-soft); }
.topbar #searchBtn:active, .topbar #mobileMore:active { transform: scale(.96); }
.topbar-act .ic { width: 19px; height: 19px; }
html[data-theme] .workspace-sidebar {
  inset: 0 0 0 auto;
  z-index: 220;
  width: min(350px,calc(100vw - 34px));
  max-width: none;
  border: 0;
  border-left: 1px solid var(--line);
  visibility: visible;
  pointer-events: none;
  transform: translateX(105%);
  background: var(--paper);
  transition: transform 240ms var(--yt-ease), background-color 240ms;
}
html[data-theme] .workspace-sidebar.is-open { pointer-events: auto; transform: none; }
.sidebar-close { display: grid; }
.sidebar-mask {
  position: fixed;
  inset: 0;
  z-index: 219;
  background: rgb(19 26 63 / 42%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s;
}
.sidebar-mask.is-open { opacity: 1; pointer-events: auto; }
.workspace-sidebar .sidebar-brand-row { flex: none; padding: 10px 20px; }
.sidebar-nav-area { position: relative; flex: 1; min-height: 0; }
.workspace-sidebar .workspace-nav { height: 100%; padding-block-end: 14px; }
.workspace-nav .nav-group + .nav-group { margin-top: 10px; }
.workspace-nav .nav-group a { margin-block: 0; }
.workspace-nav .nav-group-label { margin-bottom: 4px; }
.sidebar-nav-area::after {
  content: "";
  position: absolute;
  inset: auto 12px 0 0;
  height: 26px;
  background: linear-gradient(transparent, var(--paper));
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
}
.sidebar-nav-area.has-more::after { opacity: 1; }
.nav-personal .nav-extra {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px;
  padding: 0 15px; border: 0; border-radius: 9px; color: var(--ink-2);
  background: transparent; font-size: 13px; cursor: pointer; text-align: left;
  transition: color .1s, background-color .1s, transform .15s;
}
.nav-personal .nav-extra .ic { width: 19px; height: 19px; }
.nav-personal .nav-extra:hover, .nav-personal .nav-extra[aria-pressed="true"] {
  color: var(--blue-ink); background: var(--blue-soft);
}
.nav-personal .nav-extra:active { transform: scale(.98); }
.nav-personal .nav-extra:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.nav-personal .account-user { margin: 4px 0; }
.workspace-sidebar .sidebar-bottom {
  flex: none;
  padding: 8px 14px max(8px, env(safe-area-inset-bottom));
  background: var(--paper);
}
.workspace-preferences { display: flex; align-items: center; gap: 6px; }
.workspace-preferences .theme-toggle, .workspace-preferences .btn { min-height: 44px; }
.workspace-preferences .theme-toggle, .workspace-preferences .btn { padding-inline: 9px; white-space: nowrap; font-size: 12px; }
.workspace-footer { background: var(--bg); }
.yt-toast { bottom: var(--toast-offset, max(18px,env(safe-area-inset-bottom))); }
.pet:not([style*="top:"]) { bottom: max(18px,env(safe-area-inset-bottom)); }

/* 首页 */
.wh-home { padding-block: 0 44px; }
.wh-canvas {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0,1.12fr) minmax(0,.88fr);
  align-items: center;
  gap: 38px;
  min-height: 490px;
  padding-block: 30px 43px;
}
.wh-intro { display: block; position: relative; z-index: 1; }
.wh-intro h1 {
  font-size: clamp(59px,7.45vw,108px);
  font-weight: 850;
  letter-spacing: -.085em;
  line-height: 1.02;
}
.wh-intro h1 span { display: block; color: var(--blue-ink); }
html[data-palette="paper"] .wh-intro h1 span { color: var(--yt-accent); }
.wh-intro > p { margin-top: 19px; color: var(--ink-2); font-size: 16px; }
.wh-intro .wh-search-label { display: block; position: static; width: auto; height: auto; clip: auto; clip-path: none; font-size: 13px; }
.wh-intro .wh-search {
  width: min(100%,490px);
  margin-top: 7px;
  min-height: 60px;
  gap: 10px;
  padding: 4px 4px 4px 14px;
  border-radius: 11px;
  border-color: var(--blue-line);
  background: var(--paper);
  box-shadow: 0 4px 0 var(--blue-soft);
}
.wh-intro .wh-search input { min-width: 0; height: 48px; font-size: 16px; }
.wh-intro .wh-search button {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  min-height: 0;
  padding: 0;
  border-radius: 8px;
  background: var(--yt-accent);
}
.wh-intro .wh-search button:hover { background: var(--yt-accent-hover); }
.wh-art { position: relative; display: grid; place-items: center; min-height: 395px; align-self: stretch; margin: 0; }
.wh-art::before {
  position: absolute;
  inset: 7% 5% 10% 8%;
  border-radius: 50% 46% 45% 48% / 43% 49% 46% 49%;
  background: var(--yt-accent);
  transform: rotate(-13deg);
  content: "";
}
.wh-art::after {
  position: absolute;
  width: 88%;
  aspect-ratio: 1.48;
  border: 1px dashed #b7c4ff;
  border-radius: 50%;
  transform: translate(-2%,-6%) rotate(-21deg);
  content: "";
}
.wh-art img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(105%,550px);
  height: auto;
  transform: translateY(-7%);
  filter: drop-shadow(0 10px 5px #19297c3e);
}
.wh-exam-ticket {
  position: absolute;
  right: 1.8%;
  bottom: 22px;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  width: min(345px,38%);
  padding: 14px 18px;
  border-radius: 5px 10px 8px 9px;
  color: #171a29;
  background: var(--yt-highlight);
  box-shadow: 0 4px 0 #31358724;
  transform: rotate(3deg);
  transition: transform .16s var(--yt-ease), background-color .1s;
}
.wh-exam-ticket:hover { color: #171a29; background: #ffee92; transform: rotate(1deg) translateY(-2px); }
.wh-exam-ticket:active { transform: rotate(1deg) scale(.99); }
.wh-exam-ticket div { display: grid; gap: 3px; }
.wh-exam-ticket div span { display: flex; align-items: center; gap: 5px; font-size: 12px; }
.wh-exam-ticket .ic { width: 15px; height: 15px; }
.wh-exam-ticket .wh-count-number { grid-column: auto; height: auto; display: flex; align-items: baseline; gap: 6px; margin: 0; white-space: nowrap; }
.wh-exam-ticket .wh-count-number strong {
  color: inherit;
  font-size: clamp(34px,4.9vw,65px);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.08em;
}
.wh-exam-ticket .wh-count-number span { color: inherit; font-size: 14px; }
.wh-work, .wh-follow {
  display: grid;
  grid-template-columns: minmax(0,1.12fr) minmax(0,.88fr);
  gap: 38px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
}
.wh-today {
  display: grid;
  grid-template-columns: minmax(90px,.3fr) minmax(0,.7fr);
  align-content: start;
  column-gap: 14px;
}
.wh-today .wh-panel-head { display: block; margin: 0; }
.wh-today h2, .wh-follow h2 { font-size: 25px; letter-spacing: -.055em; }
.wh-today .wh-task-count { display: block; padding: 0; color: var(--blue-ink); background: transparent; font-size: 25px; font-weight: 800; white-space: nowrap; }
.wh-today .wh-tasks { gap: 0; margin: 0; }
.wh-today .wh-task { min-height: 43px; padding: 5px 3px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.wh-today .wh-task:hover { background: var(--blue-soft); }
.wh-today .wh-task-text { color: var(--ink); font-size: 14px; }
.wh-today .wh-task.is-done .wh-task-text { color: var(--ink-2); }
.wh-today .wh-panel-foot { grid-column: 2; border: 0; padding-block: 7px 0; margin: 0; }
.wh-lines-ticket {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: start;
  gap: 9px;
  min-height: 150px;
  overflow: hidden;
  padding: 18px 21px;
  border-radius: 10px;
  color: white;
  background: var(--yt-night);
  transition: background-color .1s, transform .16s var(--yt-ease);
}
.wh-lines-ticket:hover { color: #fff; background: #2e387a; transform: translateY(-2px); }
.wh-lines-ticket:active { transform: none; }
.wh-lines-ticket strong { font-size: 21px; letter-spacing: -.04em; }
.wh-lines-ticket small { display: block; color: #e1e5ff; font-size: 13px; }
.wh-lines-ticket b { position: absolute; bottom: 8px; right: 19px; color: #dce2ff; font: 820 62px/1 Arial,sans-serif; letter-spacing: -.075em; }
.wh-lines-ticket .ic { width: 24px; height: 24px; color: var(--yt-highlight); }
.wh-follow .wh-panel, .wh-follow .wh-resume { border: 0; background: transparent; border-radius: 0; box-shadow: none; padding: 0; }
.wh-follow .wh-resume { align-items: start; flex-wrap: wrap; }
.wh-follow .wh-panel-head { margin-bottom: 7px; }
.wh-follow .wh-welcome { margin-bottom: 2px; color: var(--ink-2); }
.wh-follow-tools { display: grid; gap: 20px; align-content: start; }
.wh-follow-tools > section:first-child > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  border-bottom: 1px solid var(--line);
  color: var(--blue-ink);
}
.wh-follow-tools > section:first-child > a:hover { text-decoration: underline; }

/* 院校目录与速览 */
.ms-directory-head, .ml-data-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  padding-bottom: 19px;
  border-bottom: 2px solid var(--ink);
}
.ms-directory-head h1, .ml-data-head h1 {
  font-size: clamp(40px,5.15vw,72px);
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -.08em;
}
.ms-directory-head p, .ml-data-head p { margin-top: 8px; color: var(--ink-2); }
.ms-directory-head .ms-directory-total {
  display: flex;
  gap: 7px;
  align-items: baseline;
  color: var(--blue-ink);
  white-space: nowrap;
}
.ms-directory-total strong { font: 850 clamp(38px,5vw,56px)/.88 Arial,sans-serif; letter-spacing: -.075em; }
.ms-directory-total span { font-size: 13px; font-weight: 720; }
.ms-directory {
  display: grid;
  grid-template-columns: minmax(0,1.43fr) minmax(0,.9fr);
  align-items: start;
  gap: 30px;
  margin-top: 22px;
}
.ms-searchline { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 9px; }
.ms-page .ms-field { width: 100%; min-width: 0; max-width: none; margin: 0; min-height: 49px; padding-inline: 12px; border-radius: 9px; background: var(--paper); }
.ms-page .ms-field input { width: 100%; min-width: 0; font-size: 16px; }
.ms-page .ms-field:focus-within { border-color: var(--blue); }
.ms-filter-trigger { min-width: 87px; }
.ms-filter-trigger.has-filters { color: var(--blue-ink); background: var(--blue-soft); border-color: var(--blue-line); }
.ms-summary { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 11px 0 7px; font-size: 13px; color: var(--ink-2); }
.ms-summary #msFilterStatus { text-align: right; color: var(--blue-ink); }
.ms-list { margin: 0; padding: 0; border-block: 1px solid var(--line); list-style: none; }
.ms-list > li + li { border-top: 1px solid var(--line); }
.ms-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding-inline-end: 12px;
  transition: background-color .1s, box-shadow .1s, opacity .14s, transform .14s;
}
.ms-row:hover, .ms-row:focus-within { background: var(--paper-2); }
.ms-row.ms-out { opacity: 0; transform: translateY(-4px); }
.ms-row-open {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 76px;
  min-width: 0;
  padding: 8px 0 8px 15px;
  border: 0;
  background: transparent;
  text-align: left;
}
.ms-row-open:focus-visible { outline-offset: -3px; }
.ms-row-open:active .mark { transform: scale(.92); }
.ms-row-open .mark { width: 46px; height: 46px; border-radius: 10px; background: var(--blue-soft); color: var(--blue-ink); font-size: 15px; }
.ms-row-copy { display: grid; min-width: 0; gap: 2px; }
.ms-row-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; }
.ms-row-title strong { color: var(--ink); font-size: 16px; font-weight: 800; overflow-wrap: anywhere; }
.ms-row-title small { color: var(--ink-2); font-size: 12px; }
.ms-row-intro { overflow: hidden; color: var(--ink-2); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.ms-row .yt-star { width: 44px; height: 44px; }
.ms-row .yt-star.on { color: #765700; background: #fff0a1; }
.ms-row .yt-star.on .ic { fill: var(--yt-highlight); }
.ms-list .ms-empty { text-align: center; color: var(--ink-2); padding: 24px 10px; }
.ms-empty p { margin-bottom: 10px; }
.ms-inspector {
  position: sticky;
  top: 90px;
  min-width: 0;
  max-height: calc(100dvh - 104px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}
.ms-inspector-top {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: end;
  gap: 3px;
  min-height: 143px;
  padding: 20px;
  overflow: hidden;
  color: white;
  background: var(--yt-accent);
  animation: yt-enter .18s var(--yt-ease) both;
}
.ms-inspector-top p { color: #eff1ff; font-size: 13px; }
.ms-inspector-top h2 { max-width: 14em; font-size: clamp(26px,3.4vw,46px); font-weight: 850; line-height: 1.15; letter-spacing: -.075em; overflow-wrap: anywhere; }
.ms-inspector-top > span { position: absolute; z-index: -1; right: 6px; top: 4px; color: #fff4; font-size: clamp(48px,6vw,86px); font-weight: 850; line-height: 1; transform: rotate(-8deg); }
.ms-inspector-body, .ms-inspector-empty { display: grid; gap: 13px; padding: 19px 20px; }
.ms-inspector-body > p, .ms-inspector-body dd, .ms-inspector-empty p { color: var(--ink-2); font-size: 14px; }
.ms-inspector-body dl { display: grid; gap: 7px; margin: 0; }
.ms-inspector-body dl > div { display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.ms-inspector-body dt { color: var(--ink-2); font-size: 13px; }
.ms-inspector-body dd { margin: 0; }
.ms-inspector-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ms-inspector-actions [aria-pressed="true"] { color: var(--blue-ink); background: var(--blue-soft); }
.ms-source summary, .ml-score-panel > summary, .ml-references summary { min-height: 44px; cursor: pointer; }
.ms-source summary { padding-block: 10px; color: var(--blue-ink); font-size: 13px; }
.ms-source p { color: var(--ink-2); font-size: 13px; }
.ms-cmpbar .ms-cmpbar-in { gap: 8px; border-radius: 10px; }
.ms-cmpbar { bottom: max(14px,env(safe-area-inset-bottom)); }
.ms-dialog {
  position: fixed;
  inset: 0;
  width: min(480px,calc(100vw - 36px));
  max-width: none;
  max-height: calc(100dvh - 26px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--sh-3);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .18s var(--yt-ease), transform .18s var(--yt-ease), display .18s allow-discrete, overlay .18s allow-discrete;
}
.ms-dialog[open] { opacity: 1; transform: none; }
@starting-style {
  .ms-dialog[open] { opacity: 0; transform: translateY(14px); }
  .ms-dialog[open]::backdrop { background: transparent; }
}
.ms-dialog::backdrop { background: transparent; transition: background-color .18s, display .18s allow-discrete, overlay .18s allow-discrete; }
.ms-dialog[open]::backdrop { background: rgb(19 26 63 / 55%); }
body:has(.ms-dialog[open]) { overflow: hidden; }
.ms-dialog-inner { padding: 18px 22px 22px; }
.ms-dialog-inner header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.ms-dialog-inner header h2 { font-size: 22px; }
.ms-filter-form { display: grid; gap: 6px; }
.ms-filter-form label { color: var(--ink-2); font-size: 14px; font-weight: 650; }
.ms-filter-form > select { margin-bottom: 7px; }
.ms-filter-form .ms-fav-choice { display: flex; align-items: center; gap: 8px; min-height: 44px; width: fit-content; cursor: pointer; }
.ms-fav-choice input { width: 18px; height: 18px; accent-color: var(--blue); }
.ms-filter-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 9px; border-top: 1px solid var(--line); }
.ms-mobile-inspector .ms-inspector-top { min-height: 104px; border-radius: 9px; }
.ms-mobile-inspector .ms-inspector-body { padding: 12px 0 0; }

/* 国家线表格与自查 */
.ml-data-head { border-bottom-width: 1px; }
.ml-data-head h1 { font-size: clamp(33px,4.75vw,65px); }
.ml-data-head a { display: inline-flex; align-items: center; gap: 4px; margin-left: 9px; color: var(--blue-ink); }
.ml-data-head a:hover { text-decoration: underline; }
.ml-data-head a .ic { width: 13px; height: 13px; }
.ml-data-head .ml-year { display: grid; gap: 7px; min-width: clamp(100px,17vw,225px); border-left: 3px solid var(--yt-accent); padding: 9px 12px; color: var(--blue-ink); background: var(--blue-soft); }
.ml-year span { font-size: 13px; font-weight: 720; }
.ml-year strong { font: 850 clamp(37px,6vw,77px)/.84 Arial,sans-serif; letter-spacing: -.075em; }
.ml-board { display: grid; grid-template-columns: minmax(0,1.52fr) minmax(0,.88fr); align-items: start; gap: 30px; margin-top: 22px; }
.ml-table-head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 7px 15px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.ml-table-head h2 { font-size: 23px; font-weight: 800; letter-spacing: -.045em; }
.ml-table-filters { display: flex; gap: 8px; }
.ml-table-filters label { display: grid; align-content: start; gap: 4px; color: var(--ink-2); font-size: 12px; }
.yt-select { position: relative; display: block; min-width: 0; }
.yt-select > select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: block; width: 100%; min-width: 0; height: 44px; min-height: 44px;
  padding: 0 30px 0 12px; line-height: 42px;
}
.yt-select-arrow {
  position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
  color: var(--ink-3); pointer-events: none;
}
.yt-select-arrow .ic { display: block; width: 16px; height: 16px; }
.ml-table-filters select.yt-input { padding-left: 9px; border-radius: 8px; font-size: 14px; }
.ml-page .ml-table-wrap { border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.ml-table-wrap table { table-layout: fixed; min-width: 0; }
.ml-page .ml-table-wrap :is(th,td) { padding: 8px 5px; border-bottom: 1px solid var(--line); color: var(--ink); background: transparent; white-space: normal; }
.ml-page .ml-table-wrap :is(th,td):first-child { padding-left: 2px; width: 36%; overflow-wrap: anywhere; }
.ml-table-wrap th small { display: block; color: var(--ink-2); font-size: 11px; font-weight: 550; }
.ml-page .ml-table-wrap th { font-size: 12px; color: var(--ink-2); }
.ml-page .ml-table-wrap td:nth-child(2) { color: var(--blue-ink); font-weight: 800; font-size: 17px; }
.ml-table-wrap .ml-subject-link { display: flex; flex-wrap: wrap; text-align: left; }
.ml-table-wrap .ml-row-more { display: none; }
.ml-table-wrap .ml-row-scope { display: block; }
.ml-score-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.ml-score-panel .ml-check { margin: 0; padding: 0 16px 16px; }
.ml-score-panel .ml-check-top {
  align-items: start;
  gap: 9px;
  margin: 0 -16px 14px;
  padding: 16px;
  color: #fff;
  background: var(--yt-night);
}
.ml-score-panel .ml-check-tt h2 { font-size: 20px; color: #fff; }
.ml-score-panel .ml-check-tt p, .ml-score-panel .ml-total :is(small,i) { color: #e6e8fc; }
.ml-score-panel .ml-total b { color: var(--yt-highlight); }
.ml-score-panel .ml-check-act { gap: 7px; }
.ml-score-panel .ml-check-act button { min-width: 44px; padding-inline: 7px; color: #fff; border-color: #acb6e8; background: transparent; }
.ml-score-panel .ml-check-act button:hover { background: #38529a; }
.ml-score-panel .ml-check-act button .ic { display: none; }
.ml-score-panel .ml-fields { grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 13px; }
.ml-score-panel .ml-empty { padding: 11px; }
.ml-score-panel .ml-empty-ico { display: none; }
.ml-score-panel .ml-out { margin-top: 12px; }
.ml-references { margin-top: 11px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.ml-references summary, .ml-score-panel > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 700; }
.ml-score-panel > summary { display: none; }
.ml-references summary .ic, .ml-score-panel > summary .ic { width: 16px; height: 16px; transition: transform .15s var(--yt-ease); }
.ml-references[open] summary .ic, .ml-score-panel[open] > summary .ic { transform: rotate(180deg); }
.ml-references dl { display: grid; gap: 8px; margin: 0; }
.ml-references dt { font-weight: 650; }
.ml-references dd, .ml-references p { margin: 0; color: var(--ink-2); font-size: 13px; }
.ml-references p { margin-block: 8px 13px; }
.ml-school-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 25px; }
.ml-school-grid .ml-school-line { padding: 12px 1px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; transform: none; }
.ml-school-grid .ml-sl-link { min-height: 44px; }

@keyframes yt-enter { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (min-width: 901px) {
  .ms-row.is-selected { background: var(--blue-soft); box-shadow: inset 3px 0 var(--yt-accent); }
}
@media (max-width: 1040px) {
  .wrap { padding-inline: 27px; }
  .wh-canvas { gap: 20px; min-height: 385px; }
  .wh-art { min-height: 315px; }
  .wh-work, .wh-follow { gap: 24px; }
  .wh-today { display: block; }
  .wh-today .wh-panel-head { display: flex; align-items: baseline; justify-content: space-between; }
  .ml-table-wrap .ml-relative { display: none; }
}
@media (max-width: 900px) {
  .ms-directory { display: block; }
  .ms-inspector { display: none; }
}
@media (max-width: 760px) {
  .ml-board { grid-template-columns: minmax(0,1fr); gap: 15px; margin-top: 8px; }
  .ml-score-panel { margin-block: 7px 4px; background: transparent; }
  .ml-score-panel > summary { display: flex; padding-inline: 10px; color: var(--blue-ink); min-height: 44px; }
  .ml-score-panel[open] .ml-check { background: var(--paper); animation: yt-enter .2s var(--yt-ease) both; }
  .ml-table-head h2 { font-size: 19px; }
  .ml-table-filters label { font-size: 11px; }
  .ml-table-filters select.yt-input { font-size: 16px; }
}
@media (max-width: 680px) {
  html { scroll-padding-top: 68px; }
  .wrap { padding-inline: 18px; }
  .page { padding-block: 20px 34px; }
  .topbar .topbar-in { grid-template-columns: minmax(0,1fr) auto; gap: 6px; height: 60px; }
  .workspace-primary { display: none; }
  .workspace-brand { gap: 8px; font-size: 22px; }
  .workspace-brand .brand-mark { width: 29px; height: 29px; }
  .topbar #searchBtn span { display: none; }
  .topbar .topbar-act { gap: 2px; }
  .wh-home { padding-bottom: 20px; }
  .wh-canvas { display: block; min-height: 0; padding-block: 22px 15px; }
  .wh-intro h1 { font-size: clamp(40px,11.2vw,63px); }
  .wh-intro > p { width: 52%; margin-top: 9px; font-size: 13px; line-height: 1.5; }
  .wh-intro .wh-search-label { margin-top: 16px; }
  .wh-intro .wh-search { width: 100%; min-height: 51px; padding-left: 10px; gap: 7px; }
  .wh-intro .wh-search input { height: 44px; }
  .wh-intro .wh-search button { width: 43px; height: 43px; flex-basis: 43px; }
  .wh-art { position: absolute; inset: 10px -3px auto auto; width: 49%; height: clamp(112px,37vw,190px); min-height: 0; }
  .wh-art img { width: min(108%,245px); }
  .wh-art::before { inset: 8% 3% 8% 9%; }
  .wh-exam-ticket { position: static; width: 100%; margin-top: 16px; padding: 9px 13px; border-radius: 8px; transform: none; box-shadow: none; }
  .wh-exam-ticket:hover, .wh-exam-ticket:active { transform: none; }
  .wh-exam-ticket .wh-count-number strong { font-size: 43px; }
  .wh-work, .wh-follow { grid-template-columns: minmax(0,1fr); gap: 16px; padding-block: 12px 20px; }
  .wh-today h2, .wh-follow h2 { font-size: 21px; }
  .wh-today .wh-task-text { font-size: 13px; }
  .wh-lines-ticket { min-height: 105px; padding: 12px 15px; }
  .wh-lines-ticket strong { font-size: 17px; }
  .wh-lines-ticket b { bottom: 5px; right: 15px; font-size: 47px; }
  .ms-directory-head, .ml-data-head { gap: 7px; padding-bottom: 11px; }
  .ms-directory-head h1 { font-size: clamp(33px,9vw,46px); }
  .ms-directory-head p, .ml-data-head p { margin-top: 5px; font-size: 12px; }
  .ms-directory-head .ms-directory-total { flex-direction: column; align-items: end; gap: 3px; }
  .ms-directory-total strong { font-size: 35px; }
  .ms-directory-total span { font-size: 10px; }
  .ms-directory { margin-top: 10px; }
  .ms-searchline { gap: 7px; }
  .ms-page .ms-field { min-height: 44px; padding-inline: 8px; }
  .ms-page .ms-field > .ic { width: 16px; height: 16px; }
  .ms-filter-trigger { min-width: 67px; padding: 6px 8px; font-size: 13px; }
  .ms-filter-trigger .ic { width: 16px; height: 16px; }
  .ms-summary { padding-block: 8px 6px; font-size: 12px; }
  .ms-row { gap: 2px; padding-inline-end: 2px; }
  .ms-row-open { min-height: 69px; gap: 8px; padding: 6px 0 6px 4px; }
  .ms-row-open .mark { width: 36px; height: 36px; border-radius: 8px; font-size: 12px; }
  .ms-row-title { column-gap: 6px; }
  .ms-row-title strong { font-size: 15px; }
  .ms-row-title small, .ms-row-intro { font-size: 11px; }
  .ms-dialog { inset: auto 0 0; width: 100%; margin: 0; border-radius: 15px 15px 0 0; border-bottom: 0; }
  .ms-dialog-inner { padding: 12px 17px max(17px,env(safe-area-inset-bottom)); }
  .ms-cmpbar .ms-cmpbar-in { flex-wrap: nowrap; padding: 5px 8px; }
  .ms-cmpbar .ms-chips {
    overflow-x: auto; flex-wrap: nowrap; min-width: 0; scrollbar-width: none;
  }
  .ms-cmpbar .ms-chips::-webkit-scrollbar { display: none; }
  .ms-cmpbar .ms-cmpgo { margin: 0; }
  .ml-data-head h1 { font-size: clamp(25px,7.3vw,42px); }
  .ml-data-head .ml-year { align-self: center; min-width: 71px; padding: 6px 8px; gap: 5px; }
  .ml-year span { font-size: 10px; }
  .ml-year strong { font-size: 30px; }
  .ml-data-head a { margin-left: 3px; }
  .ml-page .ml-table-wrap :is(th,td):first-child { width: 40%; }
  .ml-school-grid { grid-template-columns: 1fr; }
}
@media (max-width: 365px) {
  .wrap { padding-inline: 13px; }
  .wh-intro h1 { font-size: 38px; }
  .ml-table-head { gap: 4px 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .workspace-sidebar, .sidebar-mask, .ms-dialog, .ms-dialog::backdrop { transition: none; }
}

/* 工作台现有组件在新布局中的尺寸 */
.topbar .wrap.topbar-in { padding-inline: 40px; }
.wh-intro .wh-search button { min-width: 0; }
.wh-today .wh-panel-foot a { min-height: 44px; }
.wh-art { pointer-events: none; }
.ms-inspector, .ml-rail, .mp-board > *, .fit-board > *, .mt-board > *, .mrs-board > *, .school-detail-content > *, .exam-reading > * { min-width: 0; }
.ms-inspector-actions .btn-blue { background: var(--yt-accent); }
.ms-inspector-actions .btn-blue:hover { background: var(--yt-accent-hover); }

/* 其他用户页面按阅读和操作方式安排主栏及辅助栏 */
body:is([data-page="catalog"],[data-page="fit"],[data-page="timeline"],[data-page="plan"],[data-page="guide"],[data-page="resources"],[data-page="adjust"],[data-page="me"]) #app .page-head,
body:is([data-page="exam"],[data-page="cloud"],[data-page="member"],[data-page="profile"]) #app .product-page-head {
  padding-block: 0 14px;
  margin-bottom: 19px;
  border-bottom: 1px solid var(--line);
}
body:is([data-page="catalog"],[data-page="fit"],[data-page="timeline"],[data-page="plan"],[data-page="guide"],[data-page="resources"],[data-page="adjust"],[data-page="me"]) #app .page-head .title,
body:is([data-page="exam"],[data-page="cloud"],[data-page="member"],[data-page="profile"]) #app .product-page h1 {
  font-size: clamp(30px,4.1vw,55px);
  line-height: 1.12;
  font-weight: 820;
  letter-spacing: -.06em;
}
.mp-board, .school-detail-content, .exam-reading, .fit-board, .mt-board, .mrs-board {
  display: grid;
  grid-template-columns: minmax(0,1.5fr) minmax(0,1fr);
  align-items: start;
  gap: clamp(17px,3vw,40px);
}
.mp-board > * > :first-child, .fit-board #ftOut, .mt-board .mt-panel, .mt-board .mt-tl, .exam-reading aside > :first-child { margin-top: 0; }
.mp-board .mp-ov { margin-bottom: 13px; border: 1px solid var(--line); }
.mp-board .mp-cfg-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.mp-board .mp-cfg-foot { display: grid; justify-items: start; }
.mp-board .mp-cfg-cta { margin-left: 0; }
.mp-board .mp-days b { white-space: nowrap; }
.mp-board .mp-ov-head { padding: 15px; }
.mp-board .mp-ov .kv { grid-template-columns: repeat(2,minmax(0,1fr)); }
.mp-board .mp-ov .kv > div { padding: 12px 14px; }
.fit-board { grid-template-columns: minmax(235px,.85fr) minmax(0,1.3fr); }
.fit-board .fit-fields { grid-template-columns: minmax(0,1fr); }
.fit-board #ftOut { border-top: 3px solid var(--yt-accent); min-height: 145px; }
.ft-page .product-actions .btn-ghost { border-color: transparent; background: transparent; color: var(--blue-ink); }
.mt-board { grid-template-columns: minmax(230px,.78fr) minmax(0,1.48fr); }
.mt-board .mt-panel { grid-template-columns: minmax(0,1fr); }
.mt-board .yt-toolbar { justify-content: flex-start; }
.mt-board .yt-toolbar .spacer { display: none; }
.mrs-board { grid-template-columns: minmax(150px,.55fr) minmax(0,1.8fr); }
.mrs-board .mrs-icons { display: grid; grid-template-columns: minmax(0,1fr); gap: 0; margin: 0; }
.mrs-board .mrs-icon {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 7px;
  min-width: 0;
  min-height: 47px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  text-align: left;
}
.mrs-board .mrs-icon:hover, .mrs-board .mrs-icon.on { background: var(--blue-soft); transform: none; }
.mrs-board .mrs-icon::after { display: none; }
.mrs-board .mrs-icon-box { width: 34px; height: 34px; border-radius: 8px; }
.mrs-select, .gc-school-select { display: none; }
.mrs-board .mrs-panel { margin: 0; }
.gc-side { top: 85px; }
.gc-subject-filter { display: grid; gap: 5px; width: min(100%,230px); padding-block: 2px 12px; color: var(--ink-2); font-size: 13px; }
.gc-subject-filter select { min-height: 44px; font-size: 14px; }
.gc-main .gc-major { border-width: 0 0 1px; border-radius: 0; }
.gc-main .gc-major.open { border-width: 1px; border-radius: 8px; }
.school-detail-page .detail-hero {
  align-items: center;
  padding: clamp(16px,4vw,40px);
  color: #fff;
  background: var(--yt-accent);
}
.school-detail-page .detail-hero h1 { color: #fff; font-size: clamp(30px,4.8vw,61px); }
.school-detail-page .detail-hero .lede { color: #f3f5ff; }
.school-detail-page .detail-hero .mark { background: #fff; color: #182fa6; }
.school-detail-content { margin-top: 18px; }
.school-detail-main > .kv { grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 0; }
.school-detail-content .section-head { flex-wrap: wrap; margin-block: 12px; }
.school-detail-aside { padding-left: 18px; border-left: 1px solid var(--line); }
.school-major-links, .school-subject-records { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.school-major-links button, .school-major-pending, .school-subject-records li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding-inline: 5px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.school-major-links button { color: var(--blue-ink); transition: background-color .1s; }
.school-major-links button:hover { background: var(--blue-soft); }
.school-major-pending small, .school-subject-records small { color: var(--ink-3); text-align: right; }
.school-subject-records small a { color: var(--blue-ink); }
@media (max-width: 520px) {
  .school-major-pending, .school-subject-records li { flex-wrap: wrap; gap: 2px 10px; padding-block: 7px; }
  .school-major-pending small, .school-subject-records small { text-align: left; }
}
.exam-reading .product-resource-list .product-card { padding-inline: 0; border-width: 0 0 1px; border-radius: 0; background: transparent; }
body:is([data-page="privacy"],[data-page="terms"],[data-page="billing-terms"],[data-page="mobile"]) #app .product-legal { max-width: 870px; }
.workspace-preferences > button { font-size: 13px; }
.workspace-preferences [aria-pressed="true"] { color: var(--blue-ink); background: var(--blue-soft); border-color: var(--blue-line); }
@media (max-width: 1040px) {
  .topbar .wrap.topbar-in { padding-inline: 27px; }
}
@media (max-width: 900px) {
  .gc-page .gc-side { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: end; gap: 7px; max-height: none; padding: 9px; }
  .gc-page .gc-side-h { padding: 0; border: 0; }
  .gc-page .gc-schools { display: none; }
  .gc-school-select { display: grid; gap: 2px; min-width: 0; color: var(--ink-2); font-size: 13px; }
  .gc-page .gc-side .yt-input { min-height: 44px; font-size: 16px; }
}
@media (max-width: 760px) {
  .mp-board, .school-detail-content, .exam-reading, .fit-board, .mt-board, .mrs-board { grid-template-columns: minmax(0,1fr); }
  .school-detail-aside { padding-left: 0; border: 0; }
  .mrs-board .mrs-icons { display: none; }
  .mrs-select { display: grid; gap: 3px; max-width: 250px; color: var(--ink-2); font-size: 13px; }
  .mrs-select .yt-input { min-height: 44px; font-size: 16px; }
  .mt-board .mt-panel { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); }
}
@media (max-width: 680px) {
  .topbar .wrap.topbar-in { padding-inline: 18px; }
  .wh-intro h1 { font-size: clamp(33px,10.4vw,60px); }
  .wh-art { width: 44%; }
}
@media (max-width: 365px) {
  .topbar .wrap.topbar-in { padding-inline: 13px; }
  .mt-board .mt-panel, .mp-board .mp-cfg-grid { grid-template-columns: minmax(0,1fr); }
}

.mp-my-filter-field { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); font-size: 13px; }
.mp-my-toolbar .mp-my-sort { margin-left: 0; }
.ma-filter-panel { margin-bottom: 9px; border-block: 1px solid var(--line); }
.ma-filter-panel summary {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 44px;
  color: var(--blue-ink);
  font-weight: 700;
  cursor: pointer;
}
.ma-filter-panel summary .ic { width: 16px; height: 16px; transition: transform .15s var(--yt-ease); }
.ma-filter-panel[open] summary .ic { transform: rotate(180deg); }
.ma-filter-panel .ma-filters {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr)) minmax(160px,1.2fr);
  gap: 9px 13px;
  margin: 0;
  padding: 0 0 12px;
  border: 0;
  background: transparent;
}
.ma-filter-panel label { display: grid; align-content: start; min-width: 0; gap: 4px; color: var(--ink-2); font-size: 13px; }
.ma-filter-panel select { min-height: 44px; }
.ma-filter-panel .ma-range { min-width: 0; min-height: 44px; }
.ma-filter-panel .ma-range input { min-width: 0; width: 100%; }
.ma-channels .tag { border-color: transparent; background: transparent; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 680px) {
  .mp-my-toolbar { gap: 6px 10px; }
  .mp-my-toolbar .mp-my-count { order: 0; }
  .mp-my-toolbar .mp-my-add { margin-left: auto; }
  .ma-filter-panel .ma-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ma-channels { flex-direction: column; align-items: flex-start; gap: 0; }
}

