:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --line: #e4e8ed;
  --text: #18212f;
  --muted: #667085;
  --blue: #1867c0;
  --blue-soft: #eaf3fc;
  --green: #18875c;
  --green-soft: #eaf7f1;
  --coral: #c54f3b;
  --coral-soft: #fff0ed;
  --gold: #946200;
  --gold-soft: #fff6d8;
  --shadow: 0 8px 24px rgba(23, 34, 49, 0.08);
}

* { box-sizing: border-box; }

html { min-width: 320px; }

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0;
}

button, input, select { font: inherit; letter-spacing: 0; }
button { color: inherit; }
a { color: var(--blue); }

.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  width: 236px;
  flex-direction: column;
  color: #f7f9fc;
  background: #202833;
  border-right: 1px solid #313b48;
}

.brand {
  display: flex;
  min-height: 82px;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #313b48;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-size: 20px;
  font-weight: 800;
}

.brand strong { display: block; font-size: 17px; line-height: 1.35; }
.brand span { display: block; margin-top: 2px; color: #aeb9c7; font-size: 12px; }

.nav { overflow-y: auto; padding: 12px 10px 20px; }

.nav-label {
  padding: 15px 10px 6px;
  color: #8694a5;
  font-size: 11px;
  font-weight: 700;
}

.nav-item {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  gap: 11px;
  padding: 7px 10px;
  border: 0;
  border-radius: 6px;
  color: #cdd5df;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.nav-item:hover { color: #fff; background: #2c3643; }
.nav-item.active { color: #fff; background: #184f86; }

.nav-icon {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 5px;
  font-size: 12px;
  font-weight: 800;
}

.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 16px 18px;
  color: #9cabbc;
  border-top: 1px solid #313b48;
  font-size: 12px;
}

.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #45c38b; }

.workspace { display: flex; min-width: 0; min-height: 100vh; flex: 1; flex-direction: column; margin-left: 236px; padding-bottom: 72px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 82px;
  align-items: center;
  gap: 14px;
  padding: 13px clamp(18px, 3vw, 40px);
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
}

.page-heading { min-width: 0; flex: 1; }
.page-heading h1 { margin: 0; font-size: 21px; line-height: 1.35; }
.page-heading p { margin: 2px 0 0; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

.icon-button,
.secondary-button,
.primary-button,
.chip,
.page-button,
.segmented button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  cursor: pointer;
}

.icon-button { display: grid; width: 38px; height: 38px; place-items: center; font-size: 20px; }
.secondary-button, .primary-button { min-height: 38px; padding: 8px 14px; font-weight: 700; }
.secondary-button { color: var(--text); }
.primary-button { color: #fff; background: var(--blue); border-color: var(--blue); }
.secondary-button:hover, .icon-button:hover { background: var(--surface-soft); }
.menu-button { display: none; }
.back-button { display: none; }
.back-button.show { display: grid; }
body.browser-query-view .topbar { position: fixed; top: 0; right: 0; left: 236px; z-index: 60; box-shadow: 0 4px 14px rgba(24,33,47,.1); }
body.browser-query-view .content { padding-top: 110px; }
body.browser-query-view .back-button.show { color: #fff; border-color: #e04f2f; background: #e04f2f; box-shadow: 0 3px 10px rgba(224,79,47,.3); font-weight: 800; }
body.browser-query-view .back-button.show:hover { border-color: #bd381e; background: #bd381e; }

.content {
  width: 100%;
  max-width: 1380px;
  flex: 1;
  align-self: center;
  padding: 28px clamp(18px, 3vw, 40px) 40px;
}

.app-footer { padding: 15px 24px 20px; color: #7b8491; font-size: 12px; text-align: center; }
.bottom-nav { position: fixed; right: 0; bottom: 0; left: 236px; z-index: 65; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); min-height: 62px; padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid #dde6e9; background: #fff; box-shadow: 0 -3px 12px rgba(20, 37, 46, .06); }
.bottom-nav button { display: grid; align-content: center; justify-items: center; gap: 1px; min-width: 0; min-height: 60px; border: 0; background: transparent; color: #687982; font: inherit; cursor: pointer; }
.bottom-nav-icon { display: block; width: 24px; height: 24px; background: currentColor; mask-position: center; mask-size: contain; mask-repeat: no-repeat; }
.bottom-nav-icon.home { mask-image: url('/vendor/nav-icons/node_modules/lucide-static/icons/house.svg'); }
.bottom-nav-icon.feedback { mask-image: url('/vendor/nav-icons/node_modules/lucide-static/icons/message-square.svg'); }
.bottom-nav-icon.mine { mask-image: url('/vendor/nav-icons/node_modules/lucide-static/icons/user-round.svg'); }
.bottom-nav button strong { font-size: 11px; line-height: 1.2; font-weight: 600; }
.bottom-nav button.active { color: #077d76; }
.bottom-nav button:focus-visible { outline: 2px solid #1671c9; outline-offset: -4px; }
.community-page { display: grid; gap: 16px; width: min(100%, 700px); margin: 0 auto; }
.community-heading { display: grid; gap: 4px; }
.community-heading .study-tag { justify-self: start; }
.community-heading h2 { margin: 2px 0 0; font-size: 20px; line-height: 1.3; }
.community-heading p, .community-share p { margin: 0; color: #60717a; font-size: 13px; line-height: 1.55; }
.community-form { display: grid; gap: 10px; }
.community-form label:not(.community-consent) { font-weight: 700; }
.community-form input:not([type="checkbox"]), .community-form textarea, .community-copy input { width: 100%; min-width: 0; padding: 9px 11px; border: 1px solid #cedbe0; border-radius: 5px; background: #fff; color: #20333b; font: inherit; }
.community-form textarea { min-height: 120px; resize: vertical; }
.community-form .primary-button { justify-self: start; }
.community-consent { display: flex; align-items: flex-start; gap: 8px; color: #4f656b; font-size: 12px; line-height: 1.6; }
.community-consent input { flex: none; margin-top: 4px; }
.community-note { margin: 0; color: #677a80; font-size: 12px; line-height: 1.6; }
.community-share { display: grid; justify-items: start; gap: 8px; }
.community-share h3, .community-list-head h3 { margin: 0; font-size: 16px; }
.community-share img { width: min(220px, 70vw); height: auto; aspect-ratio: 1; padding: 9px; border: 1px solid #dde7ea; border-radius: 5px; background: #fff; }
.community-share small { color: #916534; font-size: 11px; line-height: 1.5; }
.community-copy { display: flex; gap: 7px; width: 100%; }
.community-copy button { flex: none; padding: 7px 9px; border: 1px solid #b5ccd2; border-radius: 5px; background: #f3f8f9; color: #146873; font: inherit; cursor: pointer; }
.community-partner-list { display: grid; }
.community-list-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #e1e9eb; }
.community-list-head span { color: #087d77; font-weight: 700; }
.community-partner { display: flex; align-items: center; gap: 9px; padding: 9px 0; border-bottom: 1px solid #e9eef0; }
.community-partner-icon { display: grid; width: 30px; height: 30px; flex: none; place-items: center; border-radius: 5px; background: #e6f4ed; color: #167755; }
.community-partner strong { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.community-partner small { flex: none; color: #718089; font-size: 11px; }
.community-empty { margin: 0; padding: 12px 0; color: #657880; font-size: 13px; }
.community-page > .secondary-button { justify-self: start; }
.community-admin-link { font-size: 12px; }
.community-admin-tools { display: grid; gap: 13px; padding: 13px; border: 1px solid #dce7ea; border-radius: 7px; background: #f7fafb; }
.community-admin-tools h3 { margin: 0; font-size: 15px; }
.community-admin-search { display: flex; gap: 6px; }
.community-admin-search input, .community-admin-notice input, .community-admin-person input[type="datetime-local"] { min-width: 0; padding: 8px 9px; border: 1px solid #cfdbdf; border-radius: 5px; font: inherit; }
.community-admin-search input { flex: 1; }
.community-admin-search button, .community-admin-actions button, .community-admin-notice button { min-height: 34px; padding: 5px 9px; border: 1px solid #b9d0d5; border-radius: 5px; background: #edf5f6; color: #245f68; font: inherit; font-size: 12px; cursor: pointer; }
.community-admin-results { display: grid; gap: 7px; }
.community-admin-person { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px; align-items: center; padding: 8px; border: 1px solid #e1e9eb; border-radius: 5px; background: #fff; }
.community-admin-person > div:first-child { display: grid; gap: 2px; min-width: 0; }
.community-admin-person small { color: #687a80; overflow-wrap: anywhere; }
.community-admin-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.community-admin-notice { display: flex; gap: 6px; }
.community-admin-notice input { flex: 1; }
.community-notice-row { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; padding: 6px 0; border-top: 1px solid #e5ecee; }
.community-notice-row > span { min-width: 0; overflow-wrap: anywhere; }
.community-notice-row button { flex: none; border: 0; color: #a64a3e; background: transparent; cursor: pointer; }
.home-announcement { display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 38px; margin-bottom: 9px; padding: 5px 11px; border: 1px solid #f1dfc2; border-radius: 7px; background: linear-gradient(90deg, #fffaf0, #fff7e9 62%, #fffdf8); color: #6a5538; }
.home-announcement > strong { flex: none; padding: 2px 7px; border-radius: 4px; background: #d6604a; color: #fff; font-size: 11px; }
.home-announcement-window { min-width: 0; overflow: hidden; }
.home-announcement-track { display: flex; width: max-content; align-items: center; white-space: nowrap; animation: announcement-scroll 24s linear infinite; font-size: 12px; }
.home-announcement-copy { display: flex; flex: none; align-items: center; gap: 28px; padding-right: 28px; }
.home-announcement:hover .home-announcement-track { animation-play-state: paused; }
.announcement-separator { color: #d5a453; font-size: 8px; }
@keyframes announcement-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .home-announcement-track { animation: none; } }

.home-brand { display: flex; min-height: 68px; align-items: center; gap: 12px; margin-bottom: 12px; }
.home-brand-mark { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; color: #fff; background: #1671c9; font-size: 23px; font-weight: 800; box-shadow: 0 4px 10px rgba(24,103,192,.22); }
.home-brand-copy { min-width: 0; flex: 1; }
.home-brand-copy > div { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.home-brand-copy strong { font-size: 20px; }
.home-brand-copy p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.home-badge { display: inline-flex; min-height: 24px; align-items: center; padding: 2px 8px; border-radius: 12px; color: #fff; background: #ec7a21; font-size: 11px; font-weight: 800; }
.home-art { position: relative; min-height: 176px; overflow: hidden; border: 5px solid #1457a6; border-radius: 10px; background: #eaf1f8; box-shadow: 0 8px 18px rgba(19,73,132,.16); }
.art-toolbar { display: flex; height: 34px; align-items: center; gap: 7px; padding: 0 12px; background: #25a4c4; border-bottom: 5px solid #f07b55; }
.art-toolbar i { display: block; width: 10px; height: 10px; border: 2px solid #17386a; border-radius: 50%; background: #ffcf55; }
.art-toolbar i:first-child { background: #ee6d91; }
.art-toolbar i:nth-child(3) { background: #6fd5a1; }
.art-toolbar b { display: block; width: 48%; height: 8px; margin: 0 auto; border-radius: 5px; background: #f1d445; }
.art-content { display: flex; min-height: 137px; align-items: center; justify-content: center; flex-direction: column; padding: 18px; text-align: center; }
.art-content span { color: #4e6f96; font-size: 12px; font-weight: 700; }
.art-content strong { margin-top: 5px; color: #14549c; font-size: clamp(23px, 4vw, 38px); line-height: 1.16; }
.art-content small { margin-top: 7px; color: #728399; }
.home-promo { display: flex; min-height: 58px; align-items: center; gap: 10px; margin-top: 12px; padding: 9px 14px; color: #fff; background: #1976d2; border-radius: 8px; }
.home-promo > span { padding: 3px 8px; border-radius: 5px; color: #fff; background: #ef5e55; font-size: 11px; font-weight: 800; }
.home-promo strong { min-width: 0; flex: 1; font-size: 14px; }
.home-promo .secondary-button { min-height: 36px; color: #1764ae; border-color: #fff; }
.home-stats { display: flex; flex-wrap: wrap; gap: 7px 16px; padding: 12px 3px 2px; color: var(--muted); font-size: 11px; }
.home-stats b { color: var(--text); font-size: 13px; }
.module-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.module-tile { display: flex; min-height: 128px; align-items: center; justify-content: flex-start; flex-direction: column; padding: 12px 8px 10px; border: 1px solid #edf0f4; border-radius: 8px; background: var(--surface); box-shadow: 0 4px 12px rgba(24,35,48,.04); cursor: pointer; text-align: center; transition: transform .15s ease, box-shadow .15s ease; }
.module-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.module-icon { display: grid; width: 52px; height: 52px; place-items: center; margin-bottom: 7px; border-radius: 13px; color: #fff; font-size: 22px; font-weight: 900; box-shadow: 0 5px 10px rgba(0,0,0,.12); }
.module-tile strong { font-size: 13px; line-height: 1.35; }
.module-tile small { display: block; max-width: 100%; margin-top: 2px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.module-tile.blue .module-icon { background: #397fe3; }
.module-tile.violet .module-icon { background: #7652dc; }
.module-tile.orange .module-icon { background: #ef7d1a; }
.module-tile.green .module-icon { background: #16a675; }
.module-tile.yellow .module-icon { background: #e7a50e; }
.module-tile.cyan .module-icon { background: #1aacc1; }
.module-tile.red .module-icon { background: #e94a62; }
.more-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.more-tools span { margin-right: auto; color: var(--muted); font-size: 12px; }
.more-tools button { min-height: 32px; padding: 5px 10px; color: var(--blue); border: 1px solid #c8dbee; border-radius: 5px; background: var(--blue-soft); cursor: pointer; font-size: 12px; }
.home-disclaimer { margin: 14px 0 0; color: #8993a0; font-size: 11px; text-align: center; }

.hero-band {
  display: grid;
  min-height: 220px;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, .65fr);
  gap: 28px;
  align-items: center;
  padding: clamp(24px, 4vw, 48px);
  color: #fff;
  background: #155690;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-band h2 { max-width: 760px; margin: 0; font-size: clamp(26px, 3vw, 38px); line-height: 1.28; }
.hero-band p { max-width: 720px; margin: 14px 0 0; color: #dbeafa; font-size: 15px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-actions button { border-color: rgba(255,255,255,.24); }
.hero-note { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.25); }
.hero-note strong { display: block; font-size: 36px; line-height: 1; }
.hero-note span { display: block; margin-top: 10px; color: #dbeafa; }

.section { margin-top: 28px; }
.section:first-child { margin-top: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.section-head h2 { margin: 0; font-size: 18px; }
.section-head p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.eyebrow { color: var(--blue); font-size: 11px; font-weight: 800; }

.tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tool-card {
  display: flex;
  min-height: 108px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  transition: transform .15s ease, box-shadow .15s ease;
}
.tool-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tool-card strong { font-size: 15px; }
.tool-card span { color: var(--muted); font-size: 12px; }
.tool-card b { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 6px; background: var(--blue-soft); color: var(--blue); }
.tool-card:nth-child(3n+2) b { color: var(--green); background: var(--green-soft); }
.tool-card:nth-child(3n+3) b { color: var(--coral); background: var(--coral-soft); }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric { padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.metric span { color: var(--muted); font-size: 12px; }
.metric strong { display: block; margin-top: 4px; font-size: 24px; line-height: 1.25; }
.metric small { color: var(--muted); }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.toolbar input,
.toolbar select,
.form-grid input,
.form-grid select {
  min-height: 40px;
  padding: 8px 11px;
  color: var(--text);
  border: 1px solid #d6dce3;
  border-radius: 6px;
  outline: none;
  background: #fff;
}
.toolbar input { min-width: min(280px, 100%); flex: 1; }
.toolbar select { max-width: 220px; }
.toolbar input:focus, .toolbar select:focus, .form-grid input:focus, .form-grid select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(24,103,192,.12); }

.segmented { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: #edf1f5; }
.segmented button { min-height: 34px; padding: 6px 13px; border: 0; background: transparent; }
.segmented button.active { color: var(--blue); background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.08); }

.chip-row { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 8px; }
.chip { flex: 0 0 auto; min-height: 34px; padding: 6px 12px; color: var(--muted); }
.chip.active { color: #fff; background: var(--blue); border-color: var(--blue); }

.browser-page { min-width: 0; }
.browser-header { display: flex; min-width: 0; padding: 0 2px 12px; }
.browser-tabs { display: flex; width: 100%; flex: 1 1 auto; border: 0; background: #edf2f6; }
.browser-tabs button { min-width: 0; min-height: 42px; flex: 1 1 50%; font-size: 15px; font-weight: 700; }
.browser-tabs button.active { color: #fff; background: #1867c0; }
.browser-filters { min-width: 0; padding: 14px; border: 1px solid #e2e9ef; border-radius: 8px; background: #fff; }
.browser-search { display: flex; min-width: 0; align-items: center; gap: 6px; padding: 3px 5px 3px 12px; border: 1px solid #e4ebf1; border-radius: 7px; background: #f5f8fb; }
.browser-search:focus-within { border-color: #81add7; box-shadow: 0 0 0 2px rgba(24,103,192,.12); }
.browser-search-icon { color: #718596; font-size: 25px; line-height: 1; }
.browser-search input { width: 100%; min-width: 0; min-height: 38px; flex: 1; padding: 4px 2px; border: 0; outline: 0; background: transparent; font: inherit; }
.browser-search input:focus { outline: 0; }
.browser-search button { min-height: 32px; padding: 4px 13px; border: 0; border-radius: 5px; color: #fff; background: #1867c0; cursor: pointer; white-space: nowrap; }
.browser-filter-row { display: grid; min-width: 0; grid-template-columns: 38px minmax(0, 1fr); gap: 6px; align-items: center; margin-top: 12px; }
.browser-filter-row.category-filter-row { grid-template-columns: 58px minmax(0, 1fr); }
.browser-filter-row > span { color: #667585; font-size: 12px; white-space: nowrap; }
.browser-filter-scroll { display: flex; min-width: 0; gap: 6px; overflow-x: auto; padding-bottom: 3px; overscroll-behavior-x: contain; scrollbar-width: thin; }
.browser-filter-choice { min-height: 32px; flex: 0 0 auto; padding: 5px 13px; color: #415363; border: 0; border-radius: 6px; background: #edf2f6; cursor: pointer; white-space: nowrap; font-size: 12px; }
.browser-filter-choice.active { color: #fff; background: #1867c0; font-weight: 700; }
.browser-filter-choice:focus-visible, .browser-tabs button:focus-visible { outline: 2px solid #145b98; outline-offset: 2px; }
.browser-scope { margin: 10px 0 0; color: #71808d; font-size: 11px; }
.browser-scope strong { color: #405467; font-weight: 600; }
.browser-page .result-meta { margin-top: 6px; }

body.tool-query-view .content > section { min-width: 0; }
body.tool-query-view .content > section > .section-head { align-items: center; margin: 0 0 11px; padding: 0 2px; }
body.tool-query-view .content > section > .section-head h2 { font-size: 16px; line-height: 1.35; }
body.tool-query-view .content > section > .section-head p { font-size: 11px; }
body.tool-query-view .content > section > .toolbar,
body.tool-query-view .content > section > .form-grid,
body.tool-query-view .content > section.form-panel { padding: 14px; border: 1px solid #e2e9ef; border-radius: 8px; background: #fff; }
body.tool-query-view .content > section.form-panel > .section-head { margin-bottom: 11px; }
body.tool-query-view .toolbar input,
body.tool-query-view .toolbar select,
body.tool-query-view .form-grid input,
body.tool-query-view .form-grid select { min-width: 0; border-color: #e4ebf1; background: #f5f8fb; }
body.tool-query-view .toolbar .primary-button,
body.tool-query-view .form-grid .primary-button { min-height: 40px; }
body.tool-query-view .result-meta { min-height: 36px; margin-top: 7px; }
body.tool-query-view .result-list { gap: 10px; }
body.tool-query-view .result-card,
body.tool-query-view .rank-item,
body.tool-query-view .official-row,
body.tool-query-view .favorite-row { border-color: #e2e9ef; border-radius: 8px; background: #fff; box-shadow: 0 2px 8px rgba(27, 48, 70, .05); }
body.tool-query-view .official-notice { padding: 11px 13px; border: 1px solid #dce9f3; color: #405467; background: #f5f9fc; }
body.tool-query-view .official-notice strong { color: #1867c0; }
body.tool-query-view .favorites-page { max-width: none; }
body.tool-query-view .favorites-header { align-items: center; padding: 3px 2px 12px; border: 0; border-bottom: 1px solid #e2e9ef; border-radius: 0; background: transparent; }
body.tool-query-view .favorites-header h2 { margin: 0 0 3px; font-size: 17px; }
body.tool-query-view .favorites-header .eyebrow { display: none; }
body.tool-query-view .favorites-header p { font-size: 11px; }
body.tool-query-view .favorites-counter strong { font-size: 27px; }
body.tool-query-view .favorites-toolbar { margin-top: 5px; }
@media (max-width: 560px) {
  body.tool-query-view .content > section > .toolbar { gap: 8px; padding: 10px; }
  body.tool-query-view .content > section > .form-grid,
  body.tool-query-view .content > section.form-panel { padding: 10px; }
  body.tool-query-view .form-grid { gap: 8px; }
  body.tool-query-view .result-card { padding: 12px; }
  body.tool-query-view .favorites-header { gap: 10px; }
  body.tool-query-view .favorites-header p { line-height: 1.35; }
  body.tool-query-view .official-row { grid-template-columns: 44px minmax(0, 1fr) 16px; gap: 7px; padding: 10px; }
  body.tool-query-view .official-row > b { overflow: hidden; width: 16px; white-space: nowrap; }
}
body.mobile-preview .browser-header { padding-bottom: 8px; }
body.mobile-preview .browser-tabs { width: 100%; flex: 1 1 auto; padding: 2px; }
body.mobile-preview .browser-tabs button { min-width: 0; min-height: 36px; flex: 1 1 50%; padding: 5px 8px; font-size: 13px; }
body.mobile-preview .browser-filters { padding: 10px; }
body.mobile-preview .browser-search { padding-left: 8px; }
body.mobile-preview .browser-search input { min-height: 34px; font-size: 13px; }
body.mobile-preview .browser-search button { min-height: 29px; padding: 4px 8px; font-size: 11px; }
body.mobile-preview .browser-filter-row { grid-template-columns: 32px minmax(0, 1fr); gap: 4px; margin-top: 9px; }
body.mobile-preview .browser-filter-row.category-filter-row { grid-template-columns: 52px minmax(0, 1fr); }
body.mobile-preview .browser-filter-row > span { font-size: 11px; }
body.mobile-preview .browser-filter-choice { min-height: 28px; padding: 4px 11px; font-size: 11px; }
body.mobile-preview .browser-scope { margin-top: 7px; }

.result-meta { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; color: var(--muted); font-size: 13px; }
.result-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.result-card {
  position: relative;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  text-align: left;
}
.result-card:hover { border-color: #a9c7e7; box-shadow: 0 6px 18px rgba(24,103,192,.08); }
.summer-school-list { gap: 10px; }
.home-unified-results { display: grid; gap: 14px; }
.home-search-again { position: sticky; top: 72px; z-index: 2; }
.home-search-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.home-search-choices button { min-height: 34px; color: #1767b0; border: 1px solid #d7e4ef; border-radius: 6px; background: #f5f9fc; font: inherit; font-size: 12px; font-weight: 700; }
.home-search-group { min-width: 0; scroll-margin-top: 118px; }
.home-search-group h2 { display: flex; align-items: baseline; gap: 6px; margin: 0 0 7px; font-size: 15px; }
.home-search-group h2 small { color: var(--muted); font-size: 11px; font-weight: 500; }
.home-search-group .major-result-list { margin-top: 0; }
.home-see-all { display: block; width: 100%; min-height: 36px; margin-top: 8px; color: var(--blue); border: 1px solid #d7e4ef; border-radius: 6px; background: #f5f9fc; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.summer-school-card { display: grid; grid-template-columns: 60px minmax(0, 1fr) 136px; align-items: center; gap: 10px; min-height: 94px; padding: 12px 18px; border: 0; border-radius: 16px; box-shadow: 0 3px 12px rgba(27,48,70,.08); }
.summer-school-card:hover { border: 0; box-shadow: 0 6px 18px rgba(27,48,70,.12); transform: translateY(-1px); }
.summer-school-identity { display: flex; min-width: 0; flex-direction: column; align-items: center; gap: 4px; }
.summer-school-logo { position: relative; display: grid; width: 56px; height: 56px; place-items: center; overflow: hidden; border-radius: 50%; background: #edf5ff; color: var(--blue); font-size: 22px; font-weight: 800; }
.summer-school-logo img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.summer-school-logo span { display: grid; width: 100%; height: 100%; place-items: center; }
.summer-school-nature { max-width: 72px; overflow: hidden; padding: 2px 6px; border-radius: 5px; font-size: 10px; line-height: 1.25; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.summer-school-nature.public { color: var(--green); background: var(--green-soft); }
.summer-school-nature.private { color: var(--coral); background: var(--coral-soft); }
.summer-school-nature.other { color: var(--muted); background: #f0f3f6; }
.summer-school-copy { min-width: 0; }
.summer-school-card .summer-school-copy h3 { display: block; min-width: 0; margin: 0; overflow: visible; font-size: 20px; line-height: 1.35; overflow-wrap: anywhere; word-break: break-all; white-space: normal; }
.summer-school-card .summer-school-copy h3 em { flex: none; padding: 2px 7px; color: var(--blue); border-radius: 8px; background: #e6f3ff; font-size: 11px; font-style: normal; font-weight: 700; line-height: 1.35; }
.summer-school-card .summer-school-copy p { margin: 3px 0 0; overflow: hidden; color: var(--muted); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.summer-school-score { display: grid; min-height: 66px; place-items: center; align-content: center; padding: 6px 8px; border-radius: 12px; background: #eef6ff; text-align: center; }
.summer-school-score strong { color: #1677ff; font-size: 25px; line-height: 1.1; white-space: nowrap; }
.summer-school-score span { margin-top: 3px; color: #64809d; font-size: 12px; white-space: nowrap; }
.major-result-list { display: block; width: min(100%, 900px); margin-inline: auto; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.major-result-list .major-list-row { display: grid; width: 100%; min-height: 94px; grid-template-columns: minmax(0, 1fr) 130px 13px; align-items: center; gap: 18px; padding: 13px 20px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: #fff; box-shadow: none; }
.major-result-list .major-list-row:last-child { border-bottom: 0; }
.major-result-list .major-list-row:hover, .major-result-list .major-list-row:focus-visible { background: #f7fbff; outline: none; box-shadow: none; }
.major-list-copy { min-width: 0; }
.major-result-list .major-list-row h3 { margin: 0; font-size: 19px; line-height: 1.35; font-weight: 700; overflow-wrap: anywhere; }
.major-list-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.major-list-tags span { display: inline-flex; min-height: 22px; align-items: center; padding: 2px 7px; border-radius: 5px; font-size: 11px; font-weight: 700; line-height: 1.25; }
.major-list-category { color: var(--blue); background: var(--blue-soft); }
.major-list-count { color: #586371; background: #edf0f4; }
.major-list-score { display: grid; min-width: 0; min-height: 56px; place-items: center; align-content: center; padding: 5px; border-radius: 8px; background: #eef6ff; text-align: center; }
.major-list-score strong { max-width: 100%; color: #1677ff; font-size: 22px; line-height: 1.15; white-space: nowrap; }
.major-list-score span { max-width: 100%; margin-top: 2px; color: #607890; font-size: 11px; white-space: nowrap; }
.major-list-chevron { color: #93a5ba; font-size: 23px; line-height: 1; text-align: right; }
.zsb-query-page { min-width: 0; }
.zsb-plan-section { min-width: 0; margin-top: 18px; padding-top: 13px; border-top: 1px solid var(--line); }
.zsb-plan-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.zsb-plan-heading h2 { margin: 0; color: #273947; font-size: 17px; }
.zsb-plan-list { display: grid; gap: 8px; }
.zsb-plan-card { position: relative; min-width: 0; border: 1px solid #dce3e8; border-radius: 7px; background: #fff; }
.zsb-plan-card details { min-width: 0; }
.zsb-plan-card summary { display: flex; align-items: center; min-height: 46px; padding: 10px 80px 10px 12px; color: #273947; font-size: 14px; font-weight: 700; line-height: 1.5; cursor: pointer; list-style: none; overflow-wrap: anywhere; }
.zsb-plan-card summary::-webkit-details-marker { display: none; }
.zsb-plan-card summary::before { content: "▸"; margin-right: 8px; color: #176bb0; font-size: 16px; }
.zsb-plan-card details[open] summary::before { content: "▾"; }
.zsb-plan-card ol { margin: 0; padding: 2px 14px 13px 35px; border-top: 1px solid #edf0f2; color: #35495b; font-size: 13px; line-height: 1.7; }
.zsb-plan-card li { margin-top: 8px; overflow-wrap: anywhere; }
.zsb-plan-save { position: absolute; top: 7px; right: 8px; min-width: 54px; padding: 6px 7px; border: 1px solid #bcd5e9; border-radius: 5px; color: #176bb0; background: #edf6ff; font-size: 12px; cursor: pointer; white-space: nowrap; }
.zsb-plan-save.is-saved { border-color: #8bc6af; color: #087957; background: #e9f7f0; }
.zsb-plan-disclaimer { margin: 9px 0 2px; color: #647684; font-size: 11px; line-height: 1.6; }
.zsb-saved-section { margin-top: 13px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; scroll-margin-top: 72px; }
.zsb-query-filters { margin-bottom: 5px; padding-bottom: 2px; }
.zsb-search-prompt { margin: 6px 0 2px; padding: 6px 9px; color: #145fb0; border-left: 3px solid #2378d4; border-radius: 4px; background: #edf6ff; font-size: 12px; font-weight: 700; line-height: 1.35; white-space: nowrap; }
.zsb-query-filters .browser-filter-row { grid-template-columns: 62px minmax(0, 1fr); }
.zsb-query-filters .browser-filter-row > span { font-size: 12px; }
.zsb-query-filters .browser-filter-scroll { align-items: center; padding-bottom: 0; }
.zsb-city-empty { color: #8696a4; font-size: 11px; }
.zsb-major-list .zsb-major-row { display: grid; cursor: pointer; text-align: left; }
.zsb-major-row .major-list-copy > strong { display: block; color: #203445; font-size: 18px; overflow-wrap: anywhere; }
.zsb-major-row .major-list-score strong { font-size: 18px; }
.zsb-major-detail .major-detail-title { min-width: 0; }
.zsb-detail-table-head, .zsb-school-row { display: grid; grid-template-columns: minmax(72px, 1fr) minmax(100px, 1.4fr) 42px 56px 47px repeat(4, minmax(54px, .7fr)); gap: 6px; align-items: center; }
.zsb-detail-table-head { padding: 10px 11px; color: #586b7d; background: #f0f5fa; font-size: 10px; font-weight: 700; text-align: center; }
.zsb-detail-table-head span:first-child, .zsb-detail-table-head span:nth-child(2) { text-align: left; }
.zsb-school-row { padding: 12px 11px; cursor: default; }
.zsb-entry-major, .zsb-entry-school { min-width: 0; color: #223344; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.zsb-entry-nature, .zsb-entry-city { min-width: 0; padding: 4px 3px; border-radius: 4px; font-size: 10px; font-weight: 700; line-height: 1.25; text-align: center; overflow-wrap: anywhere; }
.zsb-entry-nature.public { color: #087c56; background: #e6f6f0; }
.zsb-entry-nature.private { color: #bb5139; background: #fff0e9; }
.zsb-entry-city { color: #137787; background: #e7f6f6; }
.zsb-entry-math, .zsb-entry-metric { min-width: 0; color: #26394c; font-size: 11px; line-height: 1.3; text-align: center; overflow-wrap: anywhere; }
.zsb-entry-math { display: inline-flex; justify-self: center; align-items: center; padding: 4px 5px; color: #087a9a; border: 1px solid #9bd8e5; border-radius: 5px; background: #eafaff; font-size: 10px; font-weight: 800; white-space: nowrap; }
.zsb-entry-metric { font-weight: 750; }
.zsb-entry-metric.current-plan { color: #d35142; }
.zsb-entry-metric.current-score { color: #166cce; }
.zsb-entry-metric.previous { color: #20242a; }
.zsb-entry-metric::before, .zsb-entry-math::before { display: none; }
.zsb-school-extra, .zsb-entry-add { grid-column: 1 / -1; }
.zsb-school-extra { margin-top: 4px; }
.zsb-school-extra summary { color: #1764b7; font-size: 11px; font-weight: 700; cursor: pointer; }
.zsb-school-extra .detail-grid { margin-top: 7px; }
.zsb-entry-add { justify-self: end; }
@media (max-width: 560px) {
  .zsb-query-filters .browser-filter-row { grid-template-columns: 57px minmax(0, 1fr); }
  .zsb-query-filters .browser-filter-row > span { font-size: 11px; }
  .zsb-query-filters .browser-filter-choice { min-height: 30px; }
  .zsb-major-row .major-list-copy > strong { font-size: 15px; }
}
body.mobile-preview .zsb-query-filters .browser-filter-row { grid-template-columns: 57px minmax(0, 1fr); }
body.mobile-preview .zsb-query-filters { padding-bottom: 2px; }
body.mobile-preview .zsb-search-prompt { margin-top: 5px; padding: 5px 7px; font-size: 11px; }
body.mobile-preview .zsb-major-row .major-list-copy > strong { font-size: 15px; }
@media (max-width: 560px) {
  .zsb-detail-table-head { display: none; }
  .zsb-school-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px 4px; padding: 11px 9px; }
  .zsb-entry-major, .zsb-entry-school { grid-column: 1 / -1; font-size: 14px; }
  .zsb-entry-major { color: #56718a; font-size: 11px; }
  .zsb-entry-city { grid-column: span 2; }
  .zsb-entry-nature, .zsb-entry-city, .zsb-entry-math { font-size: 10px; }
  .zsb-entry-metric { display: grid; justify-items: start; gap: 3px; padding: 6px 4px; border-radius: 4px; background: #f2f6fa; font-size: 12px; text-align: left; white-space: nowrap; }
  .zsb-entry-metric::before { display: block; content: attr(data-label); color: #586b7d; font-size: 9px; font-weight: 500; }
  .zsb-entry-metric.previous::before { color: #20242a; }
}
body.mobile-preview .zsb-detail-table-head { display: none; }
body.mobile-preview .zsb-school-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px 4px; padding: 11px 9px; }
body.mobile-preview .zsb-entry-major, body.mobile-preview .zsb-entry-school { grid-column: 1 / -1; font-size: 14px; }
body.mobile-preview .zsb-entry-major { color: #56718a; font-size: 11px; }
body.mobile-preview .zsb-entry-city { grid-column: span 2; }
body.mobile-preview .zsb-entry-nature, body.mobile-preview .zsb-entry-city, body.mobile-preview .zsb-entry-math { font-size: 10px; }
body.mobile-preview .zsb-entry-metric { display: grid; justify-items: start; gap: 3px; padding: 6px 4px; border-radius: 4px; background: #f2f6fa; font-size: 12px; text-align: left; white-space: nowrap; }
body.mobile-preview .zsb-entry-metric::before { display: block; content: attr(data-label); color: #586b7d; font-size: 9px; font-weight: 500; }
body.mobile-preview .zsb-entry-metric.previous::before { color: #20242a; }
.result-card h3 { margin: 0; overflow-wrap: anywhere; font-size: 16px; line-height: 1.45; }
.result-card p { margin: 8px 0 0; color: var(--muted); }
.result-card .score { color: var(--coral); font-size: 20px; font-weight: 800; }
.result-card .rank { color: var(--green); font-weight: 700; }
.card-top { display: flex; align-items: flex-start; gap: 12px; }
.job-card .job-school-head { display: grid; grid-template-columns: 60px minmax(0, 1fr); align-items: center; gap: 10px; }
.job-card .job-school-head .summer-school-logo { width: 48px; height: 48px; font-size: 17px; }
.job-card .job-school-head .card-copy { min-width: 0; }
.job-card .job-school-head .card-copy h3 { overflow-wrap: anywhere; }
.job-card .job-school-head .card-copy p { margin-top: 4px; color: var(--muted); }
.job-card .job-school-head .card-copy h3 .school-inline-badge { display: inline-block; margin-left: 5px; padding: 2px 5px; color: #1763a8; border-radius: 4px; background: #eaf3ff; font-size: 10px; font-style: normal; font-weight: 700; vertical-align: middle; }
.job-search { margin-bottom: 9px; }
.schedule-page .result-meta { margin-top: 0; }
.card-copy { min-width: 0; flex: 1; }
.avatar { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border-radius: 7px; color: var(--blue); background: var(--blue-soft); font-size: 17px; font-weight: 800; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { display: inline-flex; min-height: 25px; align-items: center; padding: 3px 8px; border-radius: 5px; color: #4b5a6a; background: #f0f3f6; font-size: 11px; }
.tag.blue { color: var(--blue); background: var(--blue-soft); }
.tag.green { color: var(--green); background: var(--green-soft); }
.tag.coral { color: var(--coral); background: var(--coral-soft); }
.card-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.card-stats span { min-width: 0; color: var(--muted); font-size: 11px; }
.card-stats strong { display: block; overflow: hidden; color: var(--text); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.card-stats .card-year { display: grid; min-height: 28px; place-items: center; border-radius: 4px; color: #fff; background: var(--blue); font-size: 11px; font-weight: 800; }
.zsb-card .card-stats, .zsb2-card .card-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 20px; }
.page-button { min-width: 38px; min-height: 36px; padding: 6px 10px; }
.page-button:disabled { opacity: .45; cursor: not-allowed; }

.empty-state,
.loading-state,
.error-state {
  display: grid;
  min-height: 280px;
  place-items: center;
  align-content: center;
  padding: 32px;
  color: var(--muted);
  border: 1px dashed #ccd3dc;
  border-radius: 8px;
  background: var(--surface);
  text-align: center;
}
.empty-state strong, .error-state strong { color: var(--text); font-size: 16px; }
.empty-state .zsb-empty-prompt { max-width: 100%; font-size: clamp(10px, 3.5vw, 15px); white-space: nowrap; }
.empty-state p, .error-state p { max-width: 520px; margin: 6px 0 0; }
.error-state { color: var(--coral); border-color: #edc0b8; background: #fffaf9; }
.spinner { width: 30px; height: 30px; margin-bottom: 12px; border: 3px solid #d9e4ef; border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-panel { padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end; }
.form-field label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.form-field input, .form-field select { width: 100%; }
.form-action { min-height: 40px; }

.score-result { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-top: 16px; }
.score-result .metric:first-child { border-top: 3px solid var(--blue); }
.score-result .metric:nth-child(2) { border-top: 3px solid var(--green); }
.score-result .metric:nth-child(3) { border-top: 3px solid var(--coral); }
.score-result .metric:nth-child(4) { border-top: 3px solid var(--gold); }
.score-page, .score-result-page { max-width: 940px; margin: 0 auto; }
.score-page { padding: 14px 16px 12px; border: 1px solid #e2e9ef; border-radius: 7px; background: #fff; }
.score-page-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.score-page-head h2 { margin: 0; color: #1d3444; font-size: 18px; }
.score-head-controls { display: flex; gap: 5px; }
.score-head-controls select { min-width: 0; padding: 6px 20px 6px 7px; color: var(--blue); border: 0; border-radius: 5px; background: #eef6ff; font-size: 12px; font-weight: 700; }
.score-head-controls select:disabled { opacity: .45; }
.score-province-scroll { display: flex; gap: 6px; margin-top: 11px; overflow-x: auto; padding: 0 0 5px; overscroll-behavior-x: contain; scrollbar-width: thin; }
.score-province-choice { min-height: 30px; flex: 0 0 auto; padding: 4px 11px; color: #455768; border: 1px solid #dce6ef; border-radius: 5px; background: #f2f6f9; cursor: pointer; font-size: 12px; white-space: nowrap; }
.score-province-choice.active { color: #fff; border-color: #1867c0; background: #1867c0; font-weight: 700; }
.score-province-choice:focus-visible { outline: 2px solid #1867c0; outline-offset: 2px; }
.score-unavailable { max-width: 940px; margin: 10px auto 0; padding: 18px; border: 1px solid #dce6ef; border-radius: 7px; background: #f6f9fc; }
.score-unavailable strong { color: #264767; font-size: 15px; }
.score-unavailable p { margin: 8px 0 0; color: #607384; font-size: 12px; line-height: 1.6; }
.score-search[hidden] { display: none; }
.score-search { display: flex; gap: 8px; margin-top: 12px; }
.score-search input { width: 100%; min-width: 0; flex: 1; padding: 8px 12px; border: 1px solid #d9e2eb; border-radius: 5px; background: #fff; font-size: 14px; }
.score-search button { min-width: 68px; min-height: 36px; border-radius: 5px; cursor: pointer; }
.score-result-page { margin-top: 9px; color: #243546; }
.score-summary { padding: 13px 16px; border-radius: 7px; background: #eef6ff; text-align: center; font-size: 14px; }
.score-summary > div:first-child { color: #65778c; }
.score-summary > div:first-child strong { color: #126fda; font-size: 17px; }
.score-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-top: 9px; padding-top: 9px; border-top: 1px solid #d8e7f7; }
.score-summary-grid span { color: #65778c; font-size: 11px; }
.score-summary-grid b { display: block; margin-top: 3px; color: #223344; font-size: 14px; white-space: nowrap; }
.score-chart-panel { position: relative; padding: 14px 0 4px; }
.score-chart-hint { color: #7b8794; font-size: 11px; }
.score-chart-pill { position: absolute; top: 11px; right: 0; padding: 4px 10px; color: #fff; border-radius: 12px; background: #2378d4; font-size: 11px; font-weight: 700; }
.score-chart { display: block; width: 100%; height: 176px; margin-top: 13px; pointer-events: none; }
.score-history, .score-table-panel { padding: 12px 0; border-top: 1px solid #e7edf3; }
.score-history h3, .score-table-panel h3 { margin: 2px 0 9px; font-size: 14px; }
.score-history-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid #e3eaf1; border-radius: 5px; }
.score-history-grid span { min-width: 0; padding: 10px 2px; text-align: center; }
.score-history-grid b { display: block; color: #166fda; font-size: 15px; }
.score-history-grid small { display: inline-block; margin-top: 4px; padding: 2px 5px; color: #ac4c32; border-radius: 4px; background: #fff0e8; font-size: 10px; font-weight: 800; }
.score-range-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 10px 0; }
.score-range-tabs button { min-width: 0; padding: 7px 3px; color: #465667; border: 0; border-radius: 4px; background: #eff3f7; cursor: pointer; font-size: 11px; }
.score-range-tabs button.active { color: #fff; background: #2378d4; }
.score-table { max-height: 410px; overflow-y: auto; border: 1px solid #e3eaf1; border-radius: 5px; }
.score-table-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); min-height: 38px; align-items: center; border-bottom: 1px solid #edf1f5; text-align: center; font-size: 12px; }
.score-table-row:last-child { border-bottom: 0; }
.score-table-row b { color: #243546; }
.score-table-row.selected { position: relative; color: #1159ac; background: #ddebff; box-shadow: inset 4px 0 #1677e8, inset 0 0 0 1px #8abcf5; font-weight: 800; }
.score-table-row.selected b { color: #1159ac; }
.score-table-head { position: sticky; top: 0; color: #68788b; background: #f6f8fb; font-size: 11px; }
.score-source { padding: 10px 0; color: #7b8794; font-size: 10px; text-align: center; }
.official-data-page { max-width: 1000px; margin: 0 auto; }
.official-data-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.official-data-heading h2 { margin: 0 0 8px; font-size: 20px; }
.official-data-heading span, .official-data-footnote { color: #607384; font-size: 11px; }
.official-data-warning { margin: 0 0 10px; padding: 9px 11px; border-left: 3px solid #cc7048; border-radius: 4px; color: #794a38; background: #fff4ec; font-size: 11px; line-height: 1.5; }
.official-data-modules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.official-data-module { min-width: 0; min-height: 74px; padding: 12px; border: 1px solid #e0e8f0; border-radius: 6px; background: #fff; cursor: pointer; text-align: left; }
.official-data-module:hover { border-color: #94bde8; background: #f4f9ff; }
.official-data-module strong { display: block; color: #243546; font-size: 14px; }
.official-data-module small { display: block; margin-top: 5px; color: #647587; font-size: 10px; }
.official-data-footnote { margin-top: 12px; line-height: 1.5; }
.official-data-controls { display: flex; gap: 8px; }
.official-data-controls select { min-width: 0; max-width: 45%; padding: 8px; border: 1px solid #dce6ef; border-radius: 5px; background: #fff; }
.official-data-controls form { display: flex; min-width: 0; flex: 1; gap: 6px; }
.official-data-controls input { width: 100%; min-width: 0; flex: 1; padding: 8px; border: 1px solid #dce6ef; border-radius: 5px; }
.official-data-controls button, .official-data-pages button { padding: 7px 12px; color: #fff; border: 0; border-radius: 5px; background: #1867c0; cursor: pointer; white-space: nowrap; }
.official-data-pages button:disabled { background: #d0dae4; cursor: default; }
.official-data-provenance { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 13px; margin: 10px 0; padding: 10px; border: 1px solid #dce9f3; border-radius: 6px; background: #f5f9fd; font-size: 11px; }
.official-data-provenance strong { color: #244669; font-size: 13px; }
.official-data-provenance span { color: #536879; }
.official-data-provenance a { color: #1764b7; }
.official-data-records { display: grid; gap: 6px; }
.official-data-record { padding: 11px; border: 1px solid #e0e8ef; border-radius: 6px; background: #fff; }
.official-data-record > strong { color: #233848; font-size: 13px; }
.official-data-record p { margin: 4px 0 7px; color: #3b5164; font-size: 12px; }
.official-data-values { display: flex; flex-wrap: wrap; gap: 6px 13px; color: #5d7180; font-size: 11px; }
.official-data-values b { color: #1764b7; }
.official-data-pages { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 15px 0; color: #607384; font-size: 11px; }
.official-data-page .score-search { margin: 9px 0; }
@media (max-width: 560px) {
  .official-data-modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .official-data-heading h2 { font-size: 17px; }
  .official-data-controls { flex-wrap: wrap; }
  .official-data-controls select { max-width: 100%; width: 100%; }
  .official-data-record { padding: 9px; }
}
body.mobile-preview .official-data-modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.mobile-preview .official-data-controls { flex-wrap: wrap; }
body.mobile-preview .official-data-controls select { max-width: 100%; width: 100%; }
@media (max-width: 560px) {
  .score-page { padding: 10px; }
  .score-page-head h2 { font-size: 14px; white-space: nowrap; }
  .score-province-choice { min-height: 29px; padding: 4px 10px; font-size: 11px; }
  .score-head-controls select { padding: 5px 16px 5px 4px; font-size: 10px; }
  .score-summary { padding: 10px 7px; }
  .score-summary-grid b { font-size: 12px; }
  .score-chart { height: 145px; }
  .score-history-grid b { font-size: 12px; }
}
body.mobile-preview .score-page { padding: 10px; }
body.mobile-preview .score-page-head h2 { font-size: 14px; white-space: nowrap; }
body.mobile-preview .score-province-choice { min-height: 29px; padding: 4px 10px; font-size: 11px; }
body.mobile-preview .score-head-controls select { padding: 5px 16px 5px 4px; font-size: 10px; }
body.mobile-preview .score-summary { padding: 10px 7px; }
body.mobile-preview .score-summary-grid b { font-size: 12px; }
body.mobile-preview .score-chart { height: 145px; }
body.mobile-preview .score-history-grid b { font-size: 12px; }

.rank-list { display: grid; gap: 8px; }
.rank-long-list { display: grid; gap: 6px; width: min(100%, 920px); }
.rank-long-row { display: grid; grid-template-columns: 24px 72px minmax(0, 1fr) 100px; align-items: center; gap: 8px; min-height: 70px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.heat-page .rank-school-card { grid-template-columns: 24px 72px minmax(0, 1fr) 100px; min-height: 70px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; box-shadow: none; transform: none; }
.heat-page .rank-school-card:hover { border: 1px solid #a9c7e7; box-shadow: none; transform: none; }
.heat-page .rank-school-card .summer-school-logo { width: 42px; height: 42px; font-size: 16px; }
.heat-page .rank-school-card .summer-school-nature { max-width: none; padding: 2px 3px; font-size: 9px; }
.heat-page .rank-school-card .summer-school-copy h3 { font-size: 14px; line-height: 1.25; }
.heat-page .rank-school-card .summer-school-copy p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.heat-page .rank-school-card .summer-school-score { min-height: 46px; padding: 4px; border-radius: 5px; }
.heat-page .rank-school-card .summer-school-score strong { font-size: 17px; }
.heat-page .rank-school-card .summer-school-score span { font-size: 10px; }
.rank-major-row { grid-template-columns: 24px minmax(0, 1fr) 100px; }
.rank-long-copy { display: grid; min-width: 0; gap: 3px; }
.rank-long-copy strong { overflow-wrap: anywhere; font-size: 14px; }
.rank-long-copy small { color: var(--muted); font-size: 11px; }
.rank-long-value { justify-self: end; color: #1767b0; text-align: right; }
.rank-long-value b { display: block; font-size: 16px; }
.rank-long-value small { display: block; color: var(--muted); font-size: 10px; }
.heat-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; max-width: 470px; margin-bottom: 9px; padding: 3px; background: #edf3f6; border-radius: 7px; }
.heat-filters.heat-kind { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.heat-filters button { min-height: 36px; border: 0; border-radius: 5px; background: transparent; color: #40545d; font: inherit; font-size: 13px; cursor: pointer; }
.heat-filters button[aria-pressed="true"] { color: #075f66; background: white; font-weight: 700; box-shadow: 0 1px 5px #162c351c; }
.heat-provenance { margin: 8px 0 12px; color: #596c74; font-size: 12px; line-height: 1.5; }
.rank-item { display: grid; grid-template-columns: 46px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.rank-school { grid-template-columns: 27px 40px minmax(0,1fr) auto; gap: 9px; padding: 10px; }
.rank-logo { display: grid; position: relative; width: 40px; height: 40px; place-items: center; overflow: hidden; border-radius: 50%; background: #e9f4f2; color: #075f66; font-size: 17px; font-weight: 700; }
.rank-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.rank-main { min-width: 0; }
.rank-main .rank-name { display: block; white-space: normal; overflow-wrap: anywhere; font-size: 13px; }
.rank-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 4px; }
.rank-badges .summer-school-nature { max-width: none; }
.rank-level { padding: 2px 5px; color: #1763a8; background: #eaf3ff; border-radius: 4px; font-size: 10px; }
.rank-school .rank-score { justify-self: end; text-align: right; font-size: 14px; }
.rank-score small { display: block; color: #69818b; font-size: 10px; font-weight: 400; white-space: nowrap; }
.rank-no { color: var(--muted); font-size: 18px; font-weight: 800; text-align: center; }
.rank-item:nth-child(1) .rank-no { color: #a66c00; }
.rank-item:nth-child(2) .rank-no { color: #607080; }
.rank-item:nth-child(3) .rank-no { color: #a45139; }
.rank-name { overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.rank-score { color: var(--coral); font-weight: 800; }

.timeline { position: relative; display: grid; gap: 0; }
.timeline::before { position: absolute; top: 16px; bottom: 16px; left: 10px; width: 2px; background: #dbe3eb; content: ""; }
.timeline-item { position: relative; display: grid; grid-template-columns: 22px minmax(0,1fr); gap: 15px; padding-bottom: 20px; }
.timeline-dot { z-index: 1; width: 12px; height: 12px; margin-top: 6px; margin-left: 5px; border: 3px solid #fff; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 2px var(--blue); }
.timeline-content { padding: 15px 17px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.timeline-content h3 { margin: 0; font-size: 15px; }
.timeline-content p { margin: 6px 0 0; color: var(--muted); white-space: pre-line; }

.link-button { display: inline-flex; min-height: 34px; align-items: center; margin-top: 12px; padding: 5px 11px; color: #fff; border: 1px solid var(--blue); border-radius: 6px; background: var(--blue); font-weight: 700; text-decoration: none; }
.link-button:hover { background: #12569e; }
.guidance-page { width: min(100%, 650px); margin: 0 auto; padding: 18px 16px 32px; text-align: center; }
.guidance-intro { margin-bottom: 18px; }
.guidance-kicker { display: inline-block; padding: 3px 9px; color: #0a726b; border-radius: 4px; background: #e9f7f3; font-size: 11px; font-weight: 700; }
.guidance-intro h2 { margin: 10px 0 5px; font-size: 23px; line-height: 1.35; }
.guidance-intro p { margin: 0; color: var(--muted); font-size: 13px; }
.guidance-qr-panel { width: min(100%, 310px); margin: 0 auto 22px; padding: 16px 16px 11px; border: 1px solid #d9e4e6; border-radius: 7px; background: #fff; }
.guidance-qr-image { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; user-select: auto; -webkit-touch-callout: default; }
.guidance-qr-empty { display: flex; width: 100%; aspect-ratio: 1; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #738888; border: 1px dashed #b4cacc; border-radius: 5px; background: #f5faf9; font-size: 13px; }
.guidance-qr-empty span { color: #108780; font-size: 40px; line-height: 1; }
.guidance-qr-panel p { margin: 10px 0 0; color: #425a60; font-size: 13px; font-weight: 600; }
.guidance-contact { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 14px 4px; border-top: 1px solid #e2e8eb; border-bottom: 1px solid #e2e8eb; text-align: left; }
.guidance-contact label { color: #47616b; font-size: 13px; font-weight: 700; white-space: nowrap; }
.guidance-copy-row { display: flex; min-width: 0; gap: 9px; }
.guidance-copy-row input { width: 100%; min-width: 0; height: 38px; padding: 6px 10px; color: #18343d; border: 1px solid #cddadc; border-radius: 5px; background: #fff; font-size: 15px; font-weight: 700; }
.guidance-copy-row button { min-width: 56px; padding: 4px 11px; color: #fff; border: 0; border-radius: 5px; background: #087f79; font-size: 13px; font-weight: 700; cursor: pointer; }
.guidance-copy-row button:disabled { background: #b8c8ca; cursor: not-allowed; }
.guidance-admin-link { display: inline-block; margin-top: 14px; color: #617780; font-size: 12px; }
@media (max-width: 560px) {
  .guidance-page { padding: 11px 9px 20px; }
  .guidance-intro { margin-bottom: 12px; }
  .guidance-intro h2 { font-size: 18px; }
  .guidance-intro p { font-size: 11px; }
  .guidance-qr-panel { width: min(100%, 260px); margin-bottom: 15px; padding: 11px 11px 8px; }
  .guidance-qr-panel p { font-size: 12px; }
  .guidance-contact { gap: 8px; padding: 10px 0; }
  .guidance-copy-row input { height: 34px; font-size: 13px; }
  .guidance-copy-row button { min-width: 48px; }
}
body.mobile-preview .guidance-page { padding: 11px 9px 20px; }
body.mobile-preview .guidance-intro h2 { font-size: 18px; }
body.mobile-preview .guidance-intro p { font-size: 11px; }
body.mobile-preview .guidance-qr-panel { width: min(100%, 260px); margin-bottom: 15px; padding: 11px 11px 8px; }
body.mobile-preview .guidance-contact { gap: 8px; padding: 10px 0; }
body.mobile-preview .guidance-copy-row input { height: 34px; font-size: 13px; }
.assessment-page { width: min(100%, 920px); margin: 0 auto; }
.assessment-disclaimer { margin: 0 0 12px; padding: 8px 10px; color: #6d5a37; border-left: 3px solid #d1a549; background: #fff8e8; font-size: 10px; line-height: 1.55; }
.assessment-heading { padding: 18px 18px 14px; text-align: center; }
.assessment-kicker { display: inline-block; padding: 3px 9px; color: #5b46a2; border-radius: 99px; background: #f0edff; font-size: 11px; font-weight: 700; }
.assessment-heading h2, .assessment-result-heading h2 { margin: 10px 0 5px; font-size: 24px; line-height: 1.3; }
.assessment-heading p, .assessment-result-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.assessment-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.assessment-choice { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 6px 12px; padding: 17px; border: 1px solid var(--line); border-radius: 9px; background: #fff; box-shadow: 0 3px 12px rgba(27,48,70,.05); }
.assessment-choice-icon { display: grid; width: 44px; height: 44px; grid-row: span 2; place-items: center; color: #fff; border-radius: 12px; background: #6a5ac5; font-size: 20px; font-weight: 800; }
.interest-choice .assessment-choice-icon { background: #138985; }
.assessment-choice h3 { margin: 0; font-size: 17px; }
.assessment-choice p, .assessment-choice small { display: block; margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.assessment-choice > button { grid-column: 2; justify-self: start; min-height: 34px; margin-top: 5px; padding: 5px 11px; color: #fff; border: 0; border-radius: 5px; background: #6252b9; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.interest-choice > button { background: #087f79; }
.assessment-source-note { margin: 11px 0; color: #687981; font-size: 10px; line-height: 1.55; }
.assessment-recent, .assessment-major-matches, .assessment-saved-section { margin-top: 13px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.assessment-recent h3, .assessment-major-head h3 { margin: 0; font-size: 14px; }
.assessment-recent > p, .assessment-empty-reports { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.assessment-text-button { padding: 0; color: var(--blue); border: 0; background: transparent; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.assessment-recent > .assessment-text-button { margin-top: 8px; }
.assessment-quiz { width: min(100%, 690px); }
.assessment-quiz-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 12px 0 8px; color: var(--muted); font-size: 12px; }
.assessment-progress { height: 6px; overflow: hidden; border-radius: 99px; background: #e9edf1; }
.assessment-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6757bd, #138985); transition: width .2s ease; }
.assessment-question-card { margin-top: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.assessment-question-number { color: #6857b9; font-size: 11px; font-weight: 800; }
.assessment-question-card h2 { margin: 7px 0 4px; font-size: 20px; line-height: 1.4; }
.assessment-question-card > p { margin: 0 0 13px; color: var(--muted); font-size: 11px; }
.assessment-options { display: grid; gap: 7px; }
.assessment-option { display: flex; min-height: 43px; align-items: center; gap: 10px; padding: 6px 11px; color: #34434d; border: 1px solid #dce3e9; border-radius: 6px; background: #fbfcfd; font: inherit; text-align: left; cursor: pointer; }
.assessment-option > span { display: grid; width: 23px; height: 23px; flex: 0 0 23px; place-items: center; color: #60717d; border-radius: 50%; background: #eef2f5; font-size: 11px; font-weight: 700; }
.assessment-option strong { font-size: 12px; font-weight: 600; }
.assessment-option.selected { color: #4b3ca2; border-color: #9083da; background: #f5f3ff; }
.assessment-option.selected > span { color: #fff; background: #6b5cc6; }
.assessment-navigation { display: flex; justify-content: space-between; gap: 8px; margin: 11px 0; }
.assessment-navigation button { min-height: 37px; }
.assessment-session-privacy { margin: 7px 0 12px; color: #718087; font-size: 10px; text-align: center; }
.assessment-result-heading { padding: 18px 14px 13px; border: 1px solid var(--line); border-radius: 9px; background: #fff; text-align: center; }
.assessment-result-code { margin: 10px auto 6px; color: #6252b9; font-size: 31px; font-weight: 900; letter-spacing: 4px; }
.personality-choice ~ .assessment-result-heading .assessment-result-code { color: #6252b9; }
.assessment-result-block { margin-top: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.assessment-block-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.assessment-block-title h3 { margin: 0; font-size: 14px; }
.assessment-block-title strong { color: #6252b9; font-size: 20px; letter-spacing: 2px; }
.assessment-result-block > p { margin: 5px 0 8px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.assessment-dimension-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin-top: 10px; }
.assessment-dimension-grid > div, .assessment-interest-grid > div { display: grid; gap: 2px; justify-items: center; padding: 8px 4px; border: 1px solid #e2e7ed; border-radius: 6px; background: #fff; }
.assessment-dimension-grid small { color: var(--muted); font-size: 9px; }
.assessment-dimension-grid strong { color: #5f50b5; font-size: 18px; }
.assessment-dimension-grid span { color: #78848b; font-size: 9px; }
.assessment-interest-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.assessment-interest-grid > div.top { border-color: #90d0c9; background: #effaf8; }
.assessment-interest-grid b { color: #0a8179; font-size: 17px; }
.assessment-interest-grid span, .assessment-interest-grid strong { font-size: 9px; }
.assessment-major-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.assessment-major-head span { color: var(--muted); font-size: 10px; }
.assessment-major-matches > p { margin: 5px 0 9px; color: #69767d; font-size: 10px; }
.assessment-major-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.assessment-major-list button { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 5px 8px; padding: 8px; border: 1px solid #e4eaf0; border-radius: 6px; background: #fbfcfd; font: inherit; text-align: left; cursor: pointer; }
.assessment-major-type { padding: 1px 4px; color: #0b7771; border-radius: 4px; background: #e8f6f3; font-size: 9px; white-space: nowrap; }
.assessment-major-list strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.assessment-major-list small { grid-column: 2; color: var(--muted); font-size: 9px; }
.assessment-major-list b { grid-column: 3; grid-row: 1 / span 2; color: var(--blue); font-size: 9px; white-space: nowrap; }
.assessment-keyword-note { padding: 11px; color: #687981; border-radius: 5px; background: #f7f9fa; font-size: 11px; }
.assessment-result-footnote { color: #758189; font-size: 10px; line-height: 1.5; }
.assessment-report-actions { display: flex; justify-content: center; gap: 8px; margin: 11px 0; }
.assessment-saved-list { display: grid; gap: 6px; margin-top: 8px; }
.assessment-saved-list article { display: grid; grid-template-columns: minmax(0, 1fr) 28px; align-items: center; gap: 5px; padding: 3px; border: 1px solid #e7ebef; border-radius: 5px; background: #fbfcfd; }
.assessment-saved-open { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; width: 100%; align-items: center; gap: 8px; padding: 4px; border: 0; border-radius: 4px; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.assessment-saved-open:hover { background: #f1f6f8; }
.assessment-saved-open > b { color: var(--blue); font-size: 10px; white-space: nowrap; }
.assessment-saved-icon { display: grid; width: 27px; height: 27px; place-items: center; color: #fff; border-radius: 7px; background: #6b5cc6; font-size: 12px; font-weight: 800; }
.assessment-saved-list article:nth-child(even) .assessment-saved-icon { background: #138985; }
.assessment-saved-list strong, .assessment-saved-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.assessment-saved-list strong { font-size: 11px; }
.assessment-saved-list small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.assessment-saved-list article button { color: #87939a; border: 0; background: transparent; font-size: 20px; cursor: pointer; }
.assessment-saved-list article .assessment-saved-open { color: inherit; font-size: inherit; }
.assessment-saved-detail { grid-column: 1 / -1; padding: 9px 8px 5px; border-top: 1px solid #e4ebee; }
.assessment-inline-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.assessment-inline-heading strong { color: #5546a6; font-size: 12px; }
.assessment-inline-heading span { color: var(--muted); font-size: 9px; }
.assessment-saved-detail > p { margin: 5px 0 8px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.assessment-saved-detail .assessment-result-block { margin-top: 7px; padding: 8px; }
.assessment-saved-detail .assessment-result-block > p { font-size: 10px; }
.assessment-saved-detail .assessment-dimension-grid { gap: 4px; }
.assessment-saved-detail .assessment-interest-grid { gap: 4px; }
.assessment-inline-recommendations { display: grid; gap: 3px; margin-top: 7px; padding: 7px; color: #53676f; border-radius: 4px; background: #f5f9fa; font-size: 10px; line-height: 1.45; }
.assessment-inline-recommendations strong { color: #0b7771; }
@media (max-width: 560px) {
  .assessment-disclaimer { margin-bottom: 8px; padding: 6px 7px; font-size: 9px; }
  .assessment-heading { padding: 10px 6px; }
  .assessment-heading h2, .assessment-result-heading h2 { font-size: 18px; }
  .assessment-heading p { font-size: 10px; }
  .assessment-choice-grid { grid-template-columns: 1fr; gap: 8px; }
  .assessment-choice { grid-template-columns: 39px minmax(0, 1fr); gap: 4px 8px; padding: 10px; }
  .assessment-choice-icon { width: 36px; height: 36px; font-size: 16px; }
  .assessment-choice h3 { font-size: 14px; }
  .assessment-choice p, .assessment-choice small { font-size: 9px; }
  .assessment-choice > button { min-height: 30px; margin-top: 3px; font-size: 10px; }
  .assessment-question-card { padding: 12px; }
  .assessment-question-card h2 { font-size: 16px; }
  .assessment-option { min-height: 38px; padding: 5px 8px; }
  .assessment-option strong { font-size: 11px; }
  .assessment-interest-grid { gap: 3px; }
  .assessment-interest-grid span, .assessment-interest-grid strong { font-size: 8px; }
  .assessment-major-list { grid-template-columns: 1fr; }
  .assessment-report-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(52px, .42fr); gap: 8px; }
  .assessment-report-actions.has-next { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(52px, .65fr); }
  .assessment-report-actions button { width: 100%; min-width: 0; min-height: 36px; padding: 6px 5px; font-size: 11px; white-space: nowrap; }
}
body.mobile-preview .assessment-disclaimer { margin-bottom: 8px; padding: 6px 7px; font-size: 9px; }
body.mobile-preview .assessment-heading { padding: 10px 6px; }
body.mobile-preview .assessment-heading h2, body.mobile-preview .assessment-result-heading h2 { font-size: 18px; }
body.mobile-preview .assessment-choice-grid { grid-template-columns: 1fr; gap: 8px; }
body.mobile-preview .assessment-choice { grid-template-columns: 39px minmax(0, 1fr); gap: 4px 8px; padding: 10px; }
body.mobile-preview .assessment-choice-icon { width: 36px; height: 36px; font-size: 16px; }
body.mobile-preview .assessment-question-card { padding: 12px; }
body.mobile-preview .assessment-question-card h2 { font-size: 16px; }
body.mobile-preview .assessment-option { min-height: 38px; padding: 5px 8px; }
body.mobile-preview .assessment-option strong { font-size: 11px; }
body.mobile-preview .assessment-interest-grid { gap: 3px; }
body.mobile-preview .assessment-major-list { grid-template-columns: 1fr; }
body.mobile-preview .assessment-report-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(52px, .42fr); gap: 8px; }
body.mobile-preview .assessment-report-actions.has-next { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(52px, .65fr); }
body.mobile-preview .assessment-report-actions button { width: 100%; min-width: 0; min-height: 36px; padding: 6px 5px; font-size: 11px; white-space: nowrap; }
.admissions-school-list { display: grid; gap: 9px; }
.admissions-school-card { display: grid; grid-template-columns: 66px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 82px; padding: 10px 14px; }
.admissions-school-card .summer-school-logo { width: 52px; height: 52px; font-size: 20px; }
.admissions-school-card .summer-school-nature { max-width: 70px; }
.admissions-school-card .summer-school-copy h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0; font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.admissions-school-card .summer-school-copy h3 em { padding: 2px 5px; color: #1763a8; border-radius: 4px; background: #e8f3ff; font-size: 10px; font-style: normal; font-weight: 700; }
.admissions-school-card .summer-school-copy p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.admissions-note { display: block; margin-top: 3px; color: #75818d; font-size: 10px; line-height: 1.35; }
.admissions-school-card .link-button { min-height: 31px; margin: 0; padding: 4px 8px; font-size: 12px; white-space: nowrap; }
.admissions-no-link { color: var(--muted); font-size: 11px; white-space: nowrap; }
@media (max-width: 560px) {
  .admissions-school-card { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 7px; min-height: 70px; padding: 8px; }
  .admissions-school-card .summer-school-logo { width: 44px; height: 44px; font-size: 17px; }
  .admissions-school-card .summer-school-nature { max-width: 54px; padding: 1px 3px; font-size: 8px; }
  .admissions-school-card .summer-school-copy h3 { font-size: 13px; }
  .admissions-school-card .summer-school-copy h3 em { font-size: 8px; }
  .admissions-school-card .summer-school-copy p { font-size: 10px; }
  .admissions-note { font-size: 9px; }
  .admissions-school-card .link-button { min-height: 28px; padding: 3px 6px; font-size: 10px; }
}
body.mobile-preview .admissions-school-card { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 7px; min-height: 70px; padding: 8px; }
body.mobile-preview .admissions-school-card .summer-school-logo { width: 44px; height: 44px; font-size: 17px; }
body.mobile-preview .admissions-school-card .summer-school-nature { max-width: 54px; padding: 1px 3px; font-size: 8px; }
body.mobile-preview .admissions-school-card .summer-school-copy h3 { font-size: 13px; }
body.mobile-preview .admissions-school-card .summer-school-copy h3 em { font-size: 8px; }
body.mobile-preview .admissions-school-card .summer-school-copy p { font-size: 10px; }
body.mobile-preview .admissions-note { font-size: 9px; }
body.mobile-preview .admissions-school-card .link-button { min-height: 28px; padding: 3px 6px; font-size: 10px; }

.detail-dialog { width: min(780px, calc(100vw - 28px)); max-height: min(86vh, 900px); overflow: hidden; padding: 0; border: 0; border-radius: 8px; box-shadow: 0 24px 70px rgba(10,20,34,.25); }
.detail-dialog::backdrop { background: rgba(20,27,36,.48); }
.dialog-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; background: #fff; border-bottom: 1px solid var(--line); }
.dialog-head h2 { margin: 2px 0 0; font-size: 20px; }
.school-title-badges { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: 8px; vertical-align: middle; }
.school-title-badge { display: inline-block; padding: 2px 5px; color: #9c4a0a; border: 1px solid #f0d2a4; border-radius: 4px; background: #fff2d9; font-size: 11px; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.school-title-badge + .school-title-badge { color: #8e3c52; border-color: #f0c6d1; background: #fff0f4; }
.dialog-body { max-height: calc(86vh - 72px); padding: 20px; overflow-x: hidden; overflow-y: auto; overflow-wrap: anywhere; }
.detail-section { margin-top: 22px; }
.detail-section:first-child { margin-top: 0; }
.detail-section h3 { margin: 0 0 9px; font-size: 15px; }
.school-info-hub { margin: 0 0 18px; }
.review-school-identity { display: flex; align-items: center; gap: 10px; min-width: 0; margin-bottom: 15px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.review-school-identity .summer-school-logo { flex: 0 0 48px; width: 48px; height: 48px; }
.review-school-identity-info { display: grid; min-width: 0; gap: 6px; }
.review-school-identity-info > strong { overflow-wrap: anywhere; font-size: 15px; }
.review-school-identity-info > span { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.review-school-city { padding: 2px 5px; color: #355b67; background: #edf5f6; border-radius: 4px; font-size: 11px; }
.school-info-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.school-info-tab { display: grid; min-width: 0; min-height: 79px; place-content: center; justify-items: center; gap: 5px; padding: 9px 3px; color: #264b68; border: 1px solid #d9e7f2; border-radius: 7px; background: #f0f7fc; cursor: pointer; font-size: 12px; font-weight: 700; }
.school-info-tab:hover, .school-info-tab.active { color: #15558b; border-color: #7ab6e2; background: #e3f2fc; }
.school-info-icon { display: grid; width: 31px; height: 31px; place-items: center; color: #fff; border-radius: 50%; background: #277ab6; font-size: 14px; }
.school-info-panel { margin-top: 10px; padding: 15px 17px; color: #244964; border: 1px solid #d9eaf5; border-radius: 7px; background: #edf7fe; }
.school-info-panel[hidden] { display: none; }
.school-info-panel h3 { margin: 0 0 8px; color: #174f7b; font-size: 15px; }
.school-info-panel p { margin: 0; font-size: 13px; line-height: 1.7; white-space: pre-line; }
.school-info-panel .school-info-caption { margin-bottom: 8px; color: #537289; font-size: 11px; }
.school-info-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.school-info-stats > div { padding: 9px; border-radius: 5px; background: #fff; }
.school-info-stats span { display: block; color: #537289; font-size: 11px; }
.school-info-stats strong { display: block; margin-top: 3px; font-size: 16px; }
.school-info-facts { display: grid; gap: 7px; }
.school-info-facts > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 9px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid #d6e8f4; font-size: 12px; }
.school-info-facts > div:last-child { border-bottom: 0; }
.school-info-facts strong { color: #174f7b; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.detail-pair { min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-soft); }
.detail-pair span { display: block; color: var(--muted); font-size: 11px; }
.detail-pair strong { display: block; margin-top: 2px; font-size: 13px; font-weight: 600; white-space: pre-wrap; }
.detail-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.detail-table th, .detail-table td { padding: 8px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.detail-table th { background: var(--surface-soft); }
.volunteer-section { margin-top: 0; }
.volunteer-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 12px; padding: 15px 17px; color: #fff; border-radius: 7px; background: #233746; }
.volunteer-section-head h3 { margin: 3px 0 2px; font-size: 21px; }
.volunteer-section-head p { margin: 0; color: #c9d8e1; font-size: 12px; }
.volunteer-section-head > b { min-width: 52px; color: #f4c461; font-size: 32px; line-height: 1; text-align: right; white-space: nowrap; }
.volunteer-list { display: grid; gap: 8px; }
.volunteer-item { display: grid; grid-template-columns: 34px minmax(0, 1fr) 88px; gap: 10px; align-items: start; padding: 13px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.volunteer-item[hidden] { display: none !important; }
.volunteer-index { display: grid; width: 30px; height: 30px; place-items: center; color: var(--blue); border-radius: 6px; background: var(--blue-soft); font-size: 12px; font-weight: 800; }
.volunteer-content { min-width: 0; }
.volunteer-title { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.volunteer-title strong { font-size: 14px; }
.volunteer-title span { padding: 2px 6px; color: var(--muted); border-radius: 4px; background: #f0f3f5; font-size: 10px; }
.volunteer-content > .volunteer-note { margin: 5px 0 0; color: #906751; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; white-space: normal; }
.volunteer-content > .volunteer-note.warning { color: #bd4b32; }
.volunteer-metrics { display: grid; grid-template-columns: 42px repeat(3, minmax(0, 1fr)); gap: 5px; margin-top: 7px; }
.volunteer-metrics span { min-width: 0; padding: 5px 6px; color: var(--muted); border-radius: 4px; background: #f5f7f9; font-size: 9px; }
.volunteer-metrics b { display: block; overflow: hidden; margin-top: 1px; color: var(--text); font-size: 12px; white-space: nowrap; }
.volunteer-metrics .metrics-year { display: grid; min-height: 31px; place-items: center; color: #fff; background: var(--blue); font-size: 10px; font-weight: 800; }
.school-data-summary { display: grid; gap: 7px; margin: 0 0 10px; padding: 9px; border: 1px solid #dbe6ef; border-radius: 6px; background: #f7fafc; }
.summary-line { display: grid; grid-template-columns: 38px repeat(4, minmax(0, 1fr)); gap: 4px; align-items: stretch; }
.summary-line > span { min-width: 0; padding: 4px 5px; color: var(--muted); border-radius: 4px; background: #fff; font-size: 9px; white-space: nowrap; }
.summary-line > span b { display: block; margin-top: 1px; color: var(--text); font-size: 11px; }
.summary-line .summary-year { display: grid; place-items: center; color: #fff; background: var(--blue); font-size: 10px; font-weight: 800; }
.summary-tags { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.summary-tags strong { flex: 0 0 auto; color: var(--muted); font-size: 10px; }
.summary-tags span { padding: 2px 5px; color: #4b6172; border-radius: 4px; background: #e9f0f5; font-size: 9px; }
.upgrade-tags span { color: #7d5a00; background: #fff2c9; }
.detail-filter-panel { display: grid; gap: 6px; margin-bottom: 8px; }
.detail-filter-row { display: grid; grid-template-columns: 55px minmax(0, 1fr); gap: 6px; align-items: start; }
.detail-filter-row > strong { padding-top: 5px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.detail-filter-row > div { display: flex; flex-wrap: wrap; gap: 4px; }
.category-filter-row { min-width: 0; }
.category-filter-row > div { min-width: 0; max-width: 100%; overflow-x: auto; flex-wrap: nowrap; overscroll-behavior-x: contain; scrollbar-width: thin; }
.category-filter-row .detail-filter { flex: 0 0 auto; white-space: nowrap; }
.detail-filter { min-height: 25px; padding: 3px 7px; color: #536676; border: 1px solid #d7e0e8; border-radius: 5px; background: #fff; cursor: pointer; font-size: 10px; }
.detail-filter.active, .detail-filter:hover { color: #fff; border-color: var(--blue); background: var(--blue); }
.filter-result-count { color: var(--muted); font-size: 9px; }
.major-detail-page { display: grid; gap: 12px; }
.major-career { min-width: 0; padding: 13px 15px; border: 1px solid #cce8db; border-radius: 7px; background: #f0faf5; color: #25423b; }
.major-career-heading { display: flex; align-items: start; justify-content: space-between; gap: 8px; }
.major-career-heading span { color: #22654f; font-size: 11px; font-weight: 800; }
.major-career-heading h2 { margin: 3px 0 2px; color: #173b31; font-size: 20px; line-height: 1.3; overflow-wrap: anywhere; }
.major-career-heading small, .major-career > small { color: #536f63; font-size: 10px; }
.major-career p { margin: 10px 0 0; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.major-career p b { display: inline-block; margin-right: 7px; color: #22654f; }
.major-career > small { display: block; margin-top: 8px; line-height: 1.45; }
.major-career a { color: #1d664f; font-weight: 700; text-decoration: underline; }
.major-career .major-career-pending { color: #556a60; }
.major-query-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 5px 2px 1px; }
.major-query-head > strong { color: var(--text); font-size: 16px; }
.major-query-tabs { display: flex; gap: 4px; }
.major-query-tabs button { min-height: 29px; padding: 4px 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; background: #fff; cursor: pointer; font-size: 11px; }
.major-query-tabs button.active, .major-query-tabs button:hover { color: #fff; border-color: var(--blue); background: var(--blue); }
.major-detail-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 15px; border-radius: 7px; color: #fff; background: #233746; }
.major-detail-title h2 { margin: 3px 0; font-size: 22px; }
.major-detail-title p { margin: 0; color: #c9d8e1; font-size: 11px; }
.major-detail-back { min-height: 30px; padding: 5px 9px; color: var(--blue); border: 1px solid #bdd4e9; border-radius: 5px; background: #eef6fd; cursor: pointer; font-size: 11px; font-weight: 700; white-space: nowrap; }
.major-detail-title .major-detail-back { color: #fff; border-color: rgba(255,255,255,.35); background: transparent; }
.major-filter-strip { display: grid; gap: 6px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 7px; background: #f8fafc; }
.major-filter-scroll { display: flex; align-items: center; gap: 5px; overflow-x: auto; white-space: nowrap; scrollbar-width: thin; }
.major-filter-scroll > strong { min-width: 38px; color: var(--muted); font-size: 10px; }
.major-choice { min-height: 27px; padding: 3px 9px; color: #536676; border: 1px solid #d7e0e8; border-radius: 5px; background: #fff; cursor: pointer; font-size: 10px; }
.major-choice.active, .major-choice:hover { color: #fff; border-color: var(--blue); background: var(--blue); }
.major-result-count { color: var(--muted); font-size: 10px; }
.major-school-group[hidden] { display: none; }
.major-group-head { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 2px; color: var(--blue); }
.major-group-head h3 { min-width: 0; margin: 0; overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.major-group-head span { flex: none; color: var(--muted); font-size: 11px; white-space: nowrap; }
.major-school-list { display: grid; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: var(--line); }
.major-school-row { position: relative; width: 100%; min-width: 0; padding: 13px 34px 12px 14px; background: #fff; cursor: pointer; }
.major-school-row[hidden] { display: none; }
.major-school-row:hover, .major-school-row:focus { background: #f5f9fd; outline: none; }
.major-school-heading { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr) auto; gap: 0 8px; align-items: baseline; overflow: hidden; }
.major-school-heading > strong { min-width: 0; overflow: hidden; color: #1a1a1a; font-size: 15px; font-weight: 750; line-height: 22px; text-overflow: ellipsis; white-space: nowrap; }
.major-school-heading > small { color: #7f8e9d; font-size: 11px; font-weight: 550; line-height: 19px; white-space: nowrap; }
.major-school-heading > .major-school-tuition { color: #607890; font-weight: 650; }
.major-school-codes { display: flex; grid-column: 1 / -1; flex-wrap: wrap; gap: 0 9px; min-width: 0; color: #8b98a4; }
.major-school-codes .code-meta { display: inline-flex; align-items: baseline; gap: 2px; color: #8b98a4; font-size: 10.5px; white-space: nowrap; }
.major-school-note { display: block; overflow: hidden; margin-top: 4px; color: #8a6154; font-size: 10.5px; line-height: 17px; text-overflow: ellipsis; white-space: nowrap; }
.major-school-note.restriction { color: var(--coral); }
.major-school-years-line { display: grid; min-width: 0; grid-template-columns: auto auto auto minmax(0, 1fr); justify-content: initial; align-items: baseline; gap: 8px; margin-top: 7px; overflow: hidden; color: #526579; font-size: 12.5px; font-weight: 500; line-height: 20px; white-space: nowrap; }
.major-school-year-item { display: inline-flex; flex: none; align-items: baseline; gap: 3px; }
.major-school-year-item > b { color: #465b70; font-weight: 700; }
.major-school-plan > strong, .major-school-history-inline > strong { color: var(--blue); font-size: 13.5px; font-weight: 750; }
.major-school-history-inline { min-width: 0; margin-left: 0; justify-content: flex-end; overflow: hidden; text-overflow: ellipsis; }
.major-favorite-add { display: block; min-height: 24px; margin: 5px 0 0 auto; padding: 2px 9px; color: var(--blue); border: 1px solid #b8d2ea; border-radius: 4px; background: #f2f8fe; cursor: pointer; font-size: 10px; font-weight: 700; line-height: 18px; }
.major-favorite-add:hover, .major-favorite-add.added { color: #fff; border-color: var(--blue); background: var(--blue); }
.major-school-arrow { position: absolute; top: 50%; right: 10px; color: #9aaabd; font-size: 21px; font-style: normal; font-weight: 500; line-height: 1; transform: translateY(-50%); }
.major-school-head { display: grid; grid-template-columns: minmax(0, 1fr) auto 20px; gap: 8px; align-items: center; }
.major-school-head strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.major-school-head span { color: var(--text); font-size: 11px; }
.major-school-head b { color: var(--muted); font-size: 19px; font-weight: 400; }
.major-school-row p { overflow: hidden; margin: 4px 0 7px; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.major-school-row p.warning { color: var(--coral); }
.major-school-stats { display: grid; grid-template-columns: auto auto auto minmax(0, 1fr); gap: 8px; align-items: center; color: var(--text); font-size: 11px; }
.major-school-stats span b { color: var(--text); }
.major-school-stats strong { color: var(--blue); text-align: right; white-space: nowrap; }
.major-school-back { display: inline-flex; margin-bottom: 10px; }
.volunteer-details { margin-top: 8px; }
.volunteer-details summary { color: var(--blue); cursor: pointer; font-size: 11px; font-weight: 700; }
.volunteer-details .detail-grid { margin-top: 8px; }
.volunteer-item > .detail-favorite-add { align-self: center; }

.toast { position: fixed; right: 22px; bottom: calc(78px + env(safe-area-inset-bottom)); z-index: 80; max-width: min(420px, calc(100vw - 32px)); padding: 11px 15px; color: #fff; border-radius: 6px; background: #253241; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(8px); transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.sidebar-mask { display: none; }

@media (max-width: 1080px) {
  .tool-grid, .metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .form-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .score-result { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .overview-strip { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .home-layout { grid-template-columns: 1fr; }
  .favorite-panel { position: static; }
}

@media (max-width: 820px) {
  .bottom-nav { left: 0; }
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-mask { position: fixed; inset: 0; z-index: 25; display: block; background: rgba(24,33,47,.38); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  .sidebar-mask.show { opacity: 1; pointer-events: auto; }
  .workspace { margin-left: 0; }
  body.browser-query-view .topbar { right: 0; left: 0; }
  .menu-button { display: grid; }
  .hero-band { grid-template-columns: 1fr; }
  .hero-note { padding: 18px 0 0; border-top: 1px solid rgba(255,255,255,.25); border-left: 0; }
  .result-list { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body.browser-query-view .section-head { align-items: center; gap: 8px; }
  body.browser-query-view .section-head > div:first-child { min-width: 0; }
  body.browser-query-view .section-head p { display: none; }
  body.browser-query-view .section-head .segmented { width: auto; flex: 0 0 auto; }
  body.browser-query-view .section-head .segmented button { min-width: 58px; padding: 5px 8px; }
  .major-result-list .major-list-row { min-height: 82px; grid-template-columns: minmax(0, 1fr) 110px 10px; gap: 7px; padding: 10px 10px; }
  .major-result-list .major-list-row h3 { font-size: 15px; }
  .major-list-tags span { min-height: 19px; padding: 2px 5px; font-size: 10px; }
  .major-list-score { min-height: 52px; padding: 4px 3px; }
  .major-list-score strong { font-size: 18px; }
  .major-list-score span { font-size: 9px; }
  .major-list-chevron { font-size: 20px; }
  .topbar { min-height: 70px; padding: 10px 14px; }
  .page-heading h1 { font-size: 18px; }
  .page-heading p { display: none; }
  .secondary-button { padding: 7px 9px; font-size: 12px; }
  .content { padding: 18px 13px 30px; }
  body.browser-query-view .content { padding-top: 88px; }
  .hero-band { min-height: 0; padding: 24px 20px; }
  .hero-band h2 { font-size: 25px; }
  .tool-grid, .metric-grid, .form-grid, .score-result { grid-template-columns: 1fr; }
  .toolbar { align-items: stretch; }
  .toolbar input, .toolbar select, .toolbar button { width: 100%; max-width: none; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; }
  .card-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .rank-item { grid-template-columns: 38px minmax(0,1fr); }
  .rank-score { grid-column: 2; }
  .rank-school { grid-template-columns: 23px 34px minmax(0,1fr) 68px; gap: 5px; padding: 8px 5px; }
  .rank-school .rank-logo { width: 34px; height: 34px; font-size: 14px; }
  .rank-school .rank-no { font-size: 14px; }
  .rank-school .rank-score { grid-column: 4; font-size: 12px; }
  .detail-grid { grid-template-columns: 1fr; }
  .school-info-tabs { gap: 5px; }
  .school-info-tab { min-height: 65px; padding: 6px 2px; font-size: 11px; }
  .school-info-icon { width: 27px; height: 27px; font-size: 12px; }
  .school-info-panel { padding: 11px 12px; }
  .school-info-facts > div { grid-template-columns: 65px minmax(0, 1fr); gap: 6px; }
  .decision-hero { grid-template-columns: 1fr; gap: 17px; padding: 22px 18px; }
  .decision-copy h2 { font-size: 28px; }
  .decision-side { padding: 16px 0 0; border-top: 1px solid rgba(255,255,255,.2); border-left: 0; }
  .quick-search { flex-direction: column; }
  .overview-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .overview-strip > div { padding: 11px 12px; }
  .overview-strip strong { font-size: 18px; }
  .module-area, .favorite-panel { padding: 15px; }
  .module-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-row { min-height: 72px; align-items: flex-start; padding: 10px 9px; }
  .module-row-copy small { display: none; }
  .module-row-arrow { display: none; }
  .favorite-table-head { display: none; }
  .favorite-row { grid-template-columns: 43px minmax(0,1fr); gap: 8px; align-items: start; }
  .favorite-actions { grid-column: 2; justify-content: flex-start; }
  .favorites-header { padding: 18px; }
  .favorites-header h2 { font-size: 24px; }
  .favorites-header p { font-size: 12px; }
  .volunteer-item { grid-template-columns: 30px minmax(0, 1fr); padding: 11px; }
  .volunteer-item > .detail-favorite-add { grid-column: 2; width: 100%; }
  .volunteer-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation-duration: .001ms !important; }
}

/* The mobile shortcut opens a phone-width preview even in a desktop browser. */
body.mobile-preview { background: #dce2e8; }
body.mobile-preview .app-shell { width: min(420px, 100vw); min-height: 100vh; margin: 0 auto; background: var(--bg); box-shadow: 0 0 0 1px #c8d0d9, 0 18px 50px rgba(22, 35, 50, .18); }
body.mobile-preview .sidebar { transform: translateX(-100%); }
body.mobile-preview .workspace { margin-left: 0; }
body.mobile-preview .bottom-nav { right: auto; left: max(0px, calc((100vw - 420px) / 2)); width: min(420px, 100vw); }
body.mobile-preview.browser-query-view .topbar { right: auto; left: max(0px, calc((100vw - 420px) / 2)); width: min(420px, 100vw); }
body.mobile-preview.browser-query-view .section-head { align-items: center; gap: 8px; }
body.mobile-preview.browser-query-view .section-head > div:first-child { min-width: 0; }
body.mobile-preview.browser-query-view .section-head p { display: none; }
body.mobile-preview.browser-query-view .section-head .segmented { width: auto; flex: 0 0 auto; }
body.mobile-preview.browser-query-view .section-head .segmented button { min-width: 58px; padding: 5px 8px; }
body.mobile-preview .menu-button { display: grid; }
body.mobile-preview .hero-band { grid-template-columns: 1fr; min-height: 0; padding: 24px 20px; }
body.mobile-preview .hero-note { padding: 18px 0 0; border-top: 1px solid rgba(255,255,255,.25); border-left: 0; }
body.mobile-preview .tool-grid,
body.mobile-preview .metric-grid,
body.mobile-preview .form-grid,
body.mobile-preview .score-result,
body.mobile-preview .result-list { grid-template-columns: 1fr; }
body.mobile-preview .toolbar { align-items: stretch; }
body.mobile-preview .toolbar input,
body.mobile-preview .toolbar select,
body.mobile-preview .toolbar button { width: 100%; max-width: none; }
body.mobile-preview .segmented { width: 100%; }
body.mobile-preview .segmented button { flex: 1; }
body.mobile-preview .card-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.mobile-preview .topbar { min-height: 70px; padding: 10px 14px; }
body.mobile-preview .page-heading h1 { font-size: 18px; }
body.mobile-preview .page-heading p { display: none; }
body.mobile-preview .content { padding: 18px 13px 30px; }
body.mobile-preview .module-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
body.mobile-preview .module-tile { min-height: 108px; padding: 10px 5px 8px; }
body.mobile-preview .module-icon { width: 44px; height: 44px; margin-bottom: 6px; border-radius: 12px; font-size: 19px; }
body.mobile-preview .module-tile strong { font-size: 12px; }
body.mobile-preview .module-tile small { font-size: 9px; }
body.mobile-preview .home-brand-copy strong { font-size: 18px; }
body.mobile-preview .home-art { min-height: 150px; }
body.mobile-preview .art-content { min-height: 111px; }
body.mobile-preview .art-content strong { font-size: 26px; }
body.mobile-preview .home-promo strong { font-size: 12px; }
body.mobile-preview .decision-hero { grid-template-columns: 1fr; gap: 17px; padding: 22px 18px; }
body.mobile-preview .decision-copy h2 { font-size: 28px; }
body.mobile-preview .decision-side { padding: 16px 0 0; border-top: 1px solid rgba(255,255,255,.2); border-left: 0; }
body.mobile-preview .quick-search { flex-direction: column; }
body.mobile-preview .overview-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
body.mobile-preview .overview-strip > div { padding: 11px 12px; }
body.mobile-preview .overview-strip strong { font-size: 18px; }
body.mobile-preview .home-layout { grid-template-columns: 1fr; }
body.mobile-preview .module-area, body.mobile-preview .favorite-panel { padding: 15px; }
body.mobile-preview .module-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.mobile-preview .module-row { min-height: 72px; align-items: flex-start; padding: 10px 9px; }
body.mobile-preview .module-row-copy small { display: none; }
body.mobile-preview .module-row-arrow { display: none; }
body.mobile-preview .favorite-panel { position: static; }
body.mobile-preview .favorite-table-head { display: none; }
body.mobile-preview .favorite-row { grid-template-columns: 43px minmax(0,1fr); gap: 8px; align-items: start; }
body.mobile-preview .favorite-actions { grid-column: 2; justify-content: flex-start; }
body.mobile-preview .volunteer-item { grid-template-columns: 30px minmax(0, 1fr); padding: 11px; }
body.mobile-preview .volunteer-item > .detail-favorite-add { grid-column: 2; width: 100%; }
body.mobile-preview .volunteer-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Decision-workbench home */
.decision-hero { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 26px; padding: 32px; color: #fff; background: #233746; border: 1px solid #314c5d; border-radius: 10px; box-shadow: 0 12px 28px rgba(35,55,70,.15); }
.decision-copy h2 { max-width: 670px; margin: 8px 0 9px; font-size: clamp(27px, 3vw, 40px); line-height: 1.2; }
.decision-copy p { max-width: 690px; margin: 0; color: #d7e2e9; font-size: 14px; }
.quick-search { display: flex; max-width: 720px; gap: 8px; margin-top: 23px; }
.quick-search input { min-height: 44px; min-width: 0; flex: 1; padding: 9px 13px; border: 0; border-radius: 6px; color: var(--text); outline: none; }
.quick-search .primary-button { color: #fff; background: #d6604a; border-color: #d6604a; }
.decision-side { display: flex; flex-direction: column; justify-content: space-between; padding: 5px 0 0 25px; border-left: 1px solid rgba(255,255,255,.22); }
.decision-side-top span, .decision-side-top small { display: block; color: #b7cad5; font-size: 12px; }
.decision-side-top strong { display: inline-block; margin: 8px 7px 2px 0; color: #f4c461; font-size: 52px; line-height: 1; }
.decision-link, .favorite-panel-button { display: flex; min-height: 39px; align-items: center; justify-content: space-between; padding: 8px 12px; color: #fff; border: 1px solid rgba(255,255,255,.28); border-radius: 6px; background: transparent; cursor: pointer; font-weight: 700; text-align: left; }
.decision-link:hover { background: rgba(255,255,255,.1); }
.overview-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; margin-top: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--line); }
.overview-strip > div { padding: 13px 15px; background: var(--surface); }
.overview-strip span, .overview-strip small { display: inline-block; color: var(--muted); font-size: 11px; }
.overview-strip strong { display: inline-block; margin: 5px 5px 0 0; font-size: 20px; }
.home-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(270px, .65fr); gap: 16px; margin-top: 22px; align-items: start; }
.module-area, .favorite-panel { min-width: 0; padding: 19px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.home-section-head, .favorite-panel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.home-section-head h3, .favorite-panel-head h3 { margin: 4px 0 0; font-size: 20px; }
.home-section-head > span { color: var(--muted); font-size: 12px; }
.module-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.module-row { display: flex; min-width: 0; min-height: 67px; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid #e8e9e7; border-radius: 8px; background: #fffefa; cursor: pointer; text-align: left; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.module-row:hover { border-color: #d5d8d5; background: #fff; transform: translateY(-1px); }
.module-row:focus-visible { outline: 2px solid #55748a; outline-offset: 2px; }
.module-row-icon { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border: 1px solid #396d83; border-radius: 9px; color: #fff; background: #396d83; font-size: 16px; font-weight: 800; }
/* Restrained traditional hues keep all seven icon labels legible in white. */
.module-row.red .module-row-icon { border-color: #b65751; background: #b65751; }
.module-row.orange .module-row-icon { border-color: #ab6238; background: #ab6238; }
.module-row.gold .module-row-icon { border-color: #86722b; background: #86722b; }
.module-row.green .module-row-icon { border-color: #368367; background: #368367; }
.module-row.blue .module-row-icon { border-color: #477c9e; background: #477c9e; }
.module-row.indigo .module-row-icon { border-color: #65739c; background: #65739c; }
.module-row.violet .module-row-icon { border-color: #86699a; background: #86699a; }
.module-row-copy { min-width: 0; flex: 1; }
.module-row-copy strong, .module-row-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.module-row-copy strong { font-size: 13px; }
.module-row-copy small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.module-row-arrow { color: #9aa8b3; font-size: 18px; }
.more-tools { margin-top: 15px; padding-top: 13px; }
.more-tools span { display: none; }
.favorite-panel { position: sticky; top: 100px; }
.favorite-panel-head { align-items: flex-start; }
.favorite-panel-head > b { color: var(--blue); font-size: 26px; }
.favorite-panel-head > b small { color: var(--muted); font-size: 12px; font-weight: 500; }
.favorite-empty { padding: 26px 8px 30px; color: var(--muted); text-align: center; }
.favorite-empty strong { color: var(--text); }
.favorite-empty p { margin: 5px 0 0; font-size: 12px; }
.favorite-preview-list { display: grid; gap: 4px; }
.favorite-preview-item { display: flex; gap: 9px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.favorite-preview-item > b { display: grid; width: 25px; height: 25px; flex: 0 0 25px; place-items: center; border-radius: 5px; color: var(--blue); background: var(--blue-soft); font-size: 12px; }
.favorite-preview-item span { min-width: 0; }
.favorite-preview-item strong, .favorite-preview-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.favorite-preview-item strong { font-size: 12px; }
.favorite-preview-item small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.favorite-more { margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.favorite-panel-button { width: 100%; margin-top: 14px; color: var(--blue); border-color: #c7d9eb; background: var(--blue-soft); }
.favorite-add { width: 100%; min-height: 34px; margin-top: 12px; padding: 6px 10px; color: var(--blue); border: 1px solid #bfd6ec; border-radius: 5px; background: var(--blue-soft); cursor: pointer; font-size: 12px; font-weight: 700; }
.favorite-add:hover, .favorite-add.added { color: #fff; background: var(--green); border-color: var(--green); }
.favorite-guide { display: block; margin-top: 11px; padding-top: 9px; color: var(--blue); border-top: 1px solid var(--line); font-size: 11px; font-weight: 700; text-align: right; }
.detail-favorite-add { min-width: 72px; min-height: 30px; padding: 5px 8px; color: var(--blue); border: 1px solid #bdd4e9; border-radius: 5px; background: var(--blue-soft); cursor: pointer; font-size: 11px; font-weight: 700; }
.detail-favorite-add.added { color: #fff; background: var(--green); border-color: var(--green); }

.favorites-page { max-width: 1080px; margin: 0 auto; }
.favorites-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 23px 24px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.favorites-header h2 { margin: 5px 0 4px; font-size: 28px; }
.favorites-header p { margin: 0; color: var(--muted); }
.favorites-counter { display: flex; align-items: baseline; color: var(--muted); }
.favorites-counter strong { color: var(--blue); font-size: 42px; line-height: 1; }
.favorites-counter span { margin-left: 4px; font-size: 14px; }
.favorites-toolbar { display: flex; min-height: 45px; align-items: center; justify-content: space-between; margin-top: 15px; color: var(--muted); }
.favorite-table-head { display: grid; grid-template-columns: 74px minmax(0,1.5fr) minmax(190px, .8fr) 120px; gap: 12px; padding: 0 15px 7px; color: var(--muted); font-size: 11px; }
.favorite-list { display: grid; gap: 8px; }
.favorite-row { display: grid; grid-template-columns: 52px minmax(0,1.5fr) minmax(190px, .8fr) 120px; gap: 12px; align-items: center; padding: 13px 15px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.favorite-order { width: 43px; min-height: 35px; padding: 5px; border: 1px solid #cad5df; border-radius: 5px; text-align: center; }
.favorite-main { min-width: 0; }
.favorite-title { display: flex; min-width: 0; align-items: center; gap: 8px; }
.favorite-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.favorite-title span { flex: 0 0 auto; padding: 2px 6px; border-radius: 4px; color: var(--blue); background: var(--blue-soft); font-size: 10px; }
.favorite-main p { overflow: hidden; margin: 3px 0 7px; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.favorite-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.favorite-tags span { padding: 3px 6px; color: #596b79; border-radius: 4px; background: #f0f3f5; font-size: 10px; }
.favorite-actions { display: flex; gap: 5px; justify-content: flex-end; }
.small-action { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--line); border-radius: 5px; background: #fff; cursor: pointer; }
.small-action:hover { color: var(--blue); border-color: #afcae3; }
.small-action.danger:hover { color: var(--coral); border-color: #e9b8b1; }
.small-action:disabled { opacity: .35; cursor: not-allowed; }
.favorite-empty.large { min-height: 270px; margin-top: 15px; padding: 70px 24px; border: 1px dashed #cbd4dc; border-radius: 8px; background: var(--surface); }
.favorite-empty.large .primary-button { width: auto; margin-top: 18px; }
.favorite-nav { position: relative; }
.favorite-nav b { min-width: 20px; margin-left: auto; padding: 1px 5px; border-radius: 10px; color: var(--blue); background: #e7f1fb; font-size: 10px; text-align: center; }
body.tool-query-view .favorites-header { padding-bottom: 10px; }
body.tool-query-view .favorites-header h2 { font-size: 19px; }
.favorites-toolbar-actions { display: flex; align-items: center; gap: 8px; }
.favorites-toolbar-actions button { min-height: 35px; white-space: nowrap; }
.favorites-toolbar-actions button:disabled { opacity: .5; cursor: not-allowed; }
.favorites-page .favorite-table-head,
.favorites-page .favorite-row { grid-template-columns: 60px minmax(0, 1.7fr) minmax(154px, .7fr) 112px; gap: 12px; }
.favorites-page .favorite-table-head { padding: 0 12px 7px; }
.favorites-page .favorite-row { min-width: 0; padding: 12px; }
.favorite-position { display: flex; justify-content: flex-start; align-items: center; }
.favorites-page .favorite-order { width: 48px; height: 42px; padding: 5px 2px; border-color: #b6d3ee; border-radius: 6px; color: var(--blue); background: #f2f8fe; font-size: 17px; font-weight: 750; text-align: center; }
.favorites-page .favorite-order:focus { border-color: var(--blue); outline: 2px solid #b6d3ee; outline-offset: 1px; }
.favorites-page .favorite-title { flex-wrap: wrap; gap: 5px 8px; }
.favorites-page .favorite-title strong { min-width: 0; overflow: visible; font-size: 15px; line-height: 1.35; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
.favorites-page .favorite-title span { white-space: nowrap; }
.favorite-major { margin-top: 4px; color: #243b4b; font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.favorite-codes { display: flex; flex-wrap: wrap; gap: 3px 12px; margin-top: 5px; color: #617486; font-size: 11px; }
.favorite-codes b { color: #263d50; font-weight: 700; overflow-wrap: anywhere; }
.favorite-category { display: block; margin-top: 4px; color: #71808d; font-size: 10px; }
.favorite-data { display: grid; gap: 4px; color: #67798b; font-size: 11px; }
.favorite-data span { display: flex; gap: 6px; align-items: baseline; justify-content: space-between; }
.favorite-data strong { color: #1764b7; font-size: 12px; white-space: nowrap; }
.favorites-page .favorite-actions { flex-wrap: wrap; }
.favorites-page .small-action { width: 32px; height: 32px; font-size: 17px; }
.favorites-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.favorites-order-help { color: #4c718f; font-size: 12px; line-height: 1.4; }
body.tool-query-view .favorites-header { position: relative; }
body.tool-query-view .favorites-header > div:first-child { min-width: 0; width: 100%; }
body.tool-query-view .favorites-header .favorites-counter { position: absolute; top: 3px; right: 2px; }
body.tool-query-view .favorites-header .favorites-order-help { width: fit-content; max-width: 100%; margin-top: 5px; padding: 4px 6px; border-left: 3px solid #df6843; border-radius: 3px; color: #a84427; background: #fff2ec; font-size: 11px; font-weight: 700; white-space: nowrap; }
.favorites-page .favorite-row { grid-template-columns: 55px minmax(0, 1fr) 112px; align-items: start; }
.favorites-page .favorite-main { display: grid; gap: 7px; }
.favorite-school-line,
.favorite-major-line,
.favorite-history { display: flex; min-width: 0; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; line-height: 1.5; }
.favorite-school-line strong,
.favorite-major-line strong { min-width: 0; color: #203445; overflow-wrap: anywhere; }
.favorite-school-line strong { font-size: 15px; }
.favorite-major-line strong { font-size: 13px; }
.favorite-code { flex: 0 0 auto; color: #65798b; font-size: 12px; white-space: nowrap; }
.favorite-code b { color: #175ba2; font-size: 13px; }
.favorite-nature,
.favorite-school-tag { padding: 1px 6px; border-radius: 4px; color: #527190; background: #edf3f9; font-size: 10px; font-weight: 700; }
.favorite-nature.public { color: #16816e; background: #e7f6f0; }
.favorite-nature.private { color: #be5a35; background: #fff0e9; }
.favorite-school-tag { color: #895927; background: #fff2de; }
.favorite-major-line > span:not(.favorite-code) { color: #617486; font-size: 12px; white-space: nowrap; }
.favorite-major-line > span b { color: #1764b7; font-size: 12px; }
.favorite-history { gap: 4px 14px; padding-top: 5px; border-top: 1px solid #edf1f5; color: #65798b; font-size: 12px; }
.favorite-history b { color: #1665b7; font-size: 13px; }
.favorite-history small { margin-left: auto; color: #8191a0; font-size: 11px; }
@media (max-width: 730px) {
  .favorites-page .favorite-table-head { display: none; }
  .favorites-page .favorite-row { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 8px; align-items: start; padding: 11px; }
  .favorites-page .favorite-position { grid-row: 1 / 3; }
  .favorites-page .favorite-main { grid-column: 2 / 4; padding-right: 2px; }
  .favorites-page .favorite-data { grid-column: 2 / 4; display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 3px; }
  .favorites-page .favorite-data span { justify-content: flex-start; }
  .favorites-page .favorite-actions { grid-column: 2 / 4; justify-content: flex-start; margin-top: 3px; }
  .favorites-page .favorite-school-line,
  .favorites-page .favorite-major-line { gap: 2px 8px; }
}
@media (max-width: 440px) {
  .favorites-toolbar { gap: 6px; }
  .favorites-toolbar-actions { gap: 5px; }
  .favorites-toolbar-actions button { padding: 6px 8px; font-size: 11px; }
  .favorites-page .favorite-row { grid-template-columns: 44px minmax(0, 1fr); }
  .favorites-page .favorite-main,
  .favorites-page .favorite-data,
  .favorites-page .favorite-actions { grid-column: 2; }
  .favorites-page .favorite-order { width: 42px; height: 42px; }
  .favorites-page .favorite-data { gap: 3px 9px; }
  .favorites-page .favorite-data span { font-size: 10px; }
  .favorites-page .favorite-data strong { font-size: 11px; }
  .favorites-page .favorite-history { gap: 3px 9px; }
.favorites-page .favorite-history small { margin-left: 0; }
  body.mobile-preview .favorites-page .favorite-row { grid-template-columns: 44px minmax(0, 1fr); }
}
body.tool-query-view .favorites-header { padding-bottom: 7px; }
body.tool-query-view .favorites-header > div:first-child > p:first-child { padding-right: 68px; }
.favorites-limit { color: #bf4c2b; font-size: 17px; font-weight: 800; }
.favorites-counter .favorites-limit { font-size: 17px; }
.favorites-page .favorite-row { grid-template-columns: 55px minmax(0, 1fr) 32px; gap: 6px 9px; align-items: start; }
.favorites-page .favorite-position { grid-column: 1; grid-row: 1; }
.favorite-school-block { grid-column: 2; grid-row: 1; display: grid; min-width: 0; gap: 4px; }
.favorite-school-line { display: flex; min-width: 0; flex-wrap: wrap; align-items: baseline; gap: 3px 9px; line-height: 1.4; }
.favorite-school-badges { display: flex; min-width: 0; flex-wrap: wrap; gap: 4px; }
.favorites-page .favorite-major-line { grid-column: 1 / 3; grid-row: 2; margin-top: 2px; }
.favorites-page .favorite-history { grid-column: 1 / -1; grid-row: 3; flex-wrap: nowrap; justify-content: space-between; gap: 3px; color: #202b34; white-space: nowrap; }
.favorite-history .favorite-history-year { color: #202b34; font-size: 12px; white-space: nowrap; }
.favorites-page .favorite-history b { color: #202b34; }
.favorites-page .favorite-actions { grid-column: 3; grid-row: 1 / 3; flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: flex-start; gap: 4px; transform: translateY(-3px); }
body.mobile-preview .favorites-page .favorite-row { grid-template-columns: 55px minmax(0, 1fr) 32px; }
body.mobile-preview .favorites-page .favorite-actions { grid-column: 3; grid-row: 1 / 3; }
.favorite-study-fee { color: #1764b7 !important; font-weight: 700; white-space: nowrap; }
@media (max-width: 730px) {
  .favorites-page .favorite-row { grid-template-columns: 48px minmax(0, 1fr) 32px; }
  .favorites-page .favorite-position { grid-column: 1; grid-row: 1; }
  .favorites-page .favorite-school-block { grid-column: 2; grid-row: 1; }
  .favorites-page .favorite-major-line { grid-column: 1 / 3; grid-row: 2; }
  .favorites-page .favorite-history { grid-column: 1 / -1; grid-row: 3; }
  .favorites-page .favorite-actions { grid-column: 3; grid-row: 1 / 3; justify-content: flex-start; }
}
@media (max-width: 440px) {
  .favorites-page .favorite-row,
  body.mobile-preview .favorites-page .favorite-row { grid-template-columns: 44px minmax(0, 1fr) 32px; }
  .favorites-page .favorite-school-block { grid-column: 2; }
  .favorites-page .favorite-major-line { grid-column: 1 / 3; }
  .favorites-page .favorite-history { grid-column: 1 / -1; font-size: 10px; }
  .favorites-page .favorite-history b,
  .favorite-history .favorite-history-year { font-size: 11px; }
  .favorites-page .favorite-actions,
  body.mobile-preview .favorites-page .favorite-actions { grid-column: 3; grid-row: 1 / 3; }
}
.official-notice { display: flex; align-items: center; gap: 12px; margin-bottom: 13px; padding: 13px 15px; color: #fff; border-radius: 7px; background: #233746; }
.official-notice strong { flex: 0 0 auto; color: #f4c461; }
.official-notice span { font-size: 12px; }
.official-list { display: grid; gap: 8px; }
.official-row { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 13px 15px; color: var(--text); border: 1px solid var(--line); border-radius: 7px; background: #fff; text-decoration: none; }
.official-row:hover { border-color: #abc6df; box-shadow: 0 5px 14px rgba(24,103,192,.07); }
.official-tag { display: grid; width: 44px; height: 30px; place-items: center; color: var(--blue); border-radius: 5px; background: var(--blue-soft); font-size: 11px; font-weight: 800; }
.official-row > span:nth-child(2) { min-width: 0; }
.official-row strong, .official-row small { display: block; }
.official-row small { margin-top: 2px; color: var(--muted); }
.official-row > b { color: var(--blue); font-size: 11px; }
.charter-page .official-list { gap: 8px; }
.charter-page .official-row { grid-template-columns: 52px minmax(0, 1fr) 42px; gap: 10px; min-height: 64px; padding: 10px 13px; }
.charter-page .official-row-button { width: 100%; text-align: left; font: inherit; cursor: pointer; }
.charter-page .official-row-primary { min-height: 50px; }
.charter-page .official-row-primary strong { white-space: nowrap; }
.charter-page .official-row > b { grid-column: 3; justify-self: end; width: auto; overflow: visible; white-space: nowrap; font-size: 12px; }

@media (max-width: 560px) {
  .official-row { grid-template-columns: 45px minmax(0, 1fr); }
  .official-row > b { grid-column: 2; }
}

body.mobile-preview .official-row { grid-template-columns: 45px minmax(0, 1fr); }
body.mobile-preview .official-row > b { grid-column: 2; }
@media (max-width: 560px) {
  .rank-long-row, .heat-page .rank-school-card { gap: 5px; padding: 6px 5px; }
  .heat-page .rank-school-card { grid-template-columns: 20px 72px minmax(0, 1fr) 78px; }
  .rank-major-row { grid-template-columns: 20px minmax(0, 1fr) 78px; }
  .heat-page .rank-school-card .summer-school-score strong { font-size: 13px; }
}
body.mobile-preview .heat-page .rank-school-card { grid-template-columns: 20px 72px minmax(0, 1fr) 78px; gap: 5px; padding: 6px 5px; }
body.mobile-preview .heat-page .rank-school-card .summer-school-nature { max-width: none; font-size: 9px; }
body.mobile-preview .heat-page .rank-school-card .summer-school-score strong { font-size: 13px; }
@media (max-width: 560px) {
  body.tool-query-view .charter-page .official-row { grid-template-columns: 42px minmax(0, 1fr) 34px; gap: 6px; min-height: 58px; padding: 9px; }
  body.tool-query-view .charter-page .official-row-primary { min-height: 44px; }
  body.tool-query-view .charter-page .official-row > b { grid-column: 3; width: auto; overflow: visible; white-space: nowrap; }
}
body.mobile-preview.tool-query-view .charter-page .official-row { grid-template-columns: 42px minmax(0, 1fr) 34px; gap: 6px; padding: 9px; }
body.mobile-preview.tool-query-view .charter-page .official-row > b { grid-column: 3; width: auto; overflow: visible; white-space: nowrap; }

/* Compact phone dashboard: the home screen is a launcher, while data pages remain detailed. */
@media (max-width: 560px) {
  body.mobile-preview { background: var(--bg); }
  body.mobile-preview,
  body.mobile-preview .app-shell,
  body.mobile-preview .workspace { width: 100vw; max-width: 100vw; overflow-x: hidden; }
  body.mobile-preview .app-shell { width: 100vw; min-height: 100vh; margin: 0; box-shadow: none; }
  body.mobile-preview .topbar { min-height: 54px; height: 54px; padding: 6px 9px; border-bottom: 1px solid #e6ebf0; }
  body.mobile-preview .topbar-inner { min-height: 42px; }
  body.mobile-preview .page-heading h1 { font-size: 18px; line-height: 1.2; }
  body.mobile-preview .page-heading p { display: none; }
  body.mobile-preview .back-button { width: 30px; height: 30px; font-size: 18px; }
  body.mobile-preview .menu-button { width: 30px; height: 30px; font-size: 17px; }
  body.mobile-preview #refreshButton { min-height: 30px; padding: 4px 8px; font-size: 11px; }
  body.mobile-preview #refreshButton { display: none; }
  body.mobile-preview .content { width: 100%; max-width: 100vw; min-width: 0; padding: 7px 8px 12px; overflow-x: hidden; }
  body.mobile-preview.browser-query-view .content { padding-top: 68px; }

  body.mobile-preview .decision-hero { display: block; min-height: 0; padding: 11px 12px; border-radius: 9px; }
  body.mobile-preview .decision-copy .eyebrow { display: none; }
  body.mobile-preview .decision-copy { min-width: 0; width: 100%; }
  body.mobile-preview .decision-copy h2 { margin: 0 0 8px; font-size: 20px; line-height: 1.25; }
  body.mobile-preview .decision-copy p,
  body.mobile-preview .decision-side { display: none; }
  body.mobile-preview .quick-search { display: flex; width: 100%; min-width: 0; flex-direction: row; gap: 5px; margin-top: 0; }
  body.mobile-preview .quick-search input { min-height: 32px; padding: 5px 8px; border-radius: 5px; font-size: 12px; }
  body.mobile-preview .quick-search .primary-button { min-width: 58px; min-height: 32px; flex: 0 0 58px; overflow: hidden; padding: 5px 4px; border-radius: 5px; font-size: 10px; white-space: nowrap; }
  body.mobile-preview .overview-strip { display: none; }

  body.mobile-preview .home-layout { display: block; margin-top: 7px; }
  body.mobile-preview .module-area { padding: 12px; border-radius: 9px; }
  body.mobile-preview .home-section-head { align-items: center; margin: 0 2px 6px; }
  body.mobile-preview .home-section-head h3 { margin: 0; font-size: 15px; }
  body.mobile-preview .home-section-head .eyebrow { display: none; }
  body.mobile-preview .home-section-head > span { display: none; }
  body.mobile-preview .module-list { display: grid; width: 100%; min-width: 0; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 8px; overflow: hidden; }
  body.mobile-preview .module-row { width: 100%; min-width: 0; min-height: 68px; display: flex; overflow: hidden; flex-direction: column; justify-content: center; gap: 5px; padding: 7px 2px; border-radius: 8px; text-align: center; }
  body.mobile-preview .module-row-icon { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 8px; font-size: 15px; }
  body.mobile-preview .module-row-copy { width: 100%; }
  body.mobile-preview .module-row-copy strong { overflow: hidden; font-size: 12px; line-height: 1.2; white-space: nowrap; }
  body.mobile-preview .module-row-copy small,
  body.mobile-preview .module-row-arrow { display: none; }
  body.mobile-preview .more-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: 8px; padding-top: 7px; border-top: 1px solid var(--line); }
  body.mobile-preview .more-tools button { min-height: 25px; padding: 3px 2px; border: 0; border-radius: 4px; background: var(--surface-soft); color: var(--blue); font-size: 10px; white-space: nowrap; }
  body.mobile-preview .favorite-panel,
  body.mobile-preview .home-disclaimer,
  body.mobile-preview .app-footer { display: none; }

  body.mobile-preview .section-head { margin-bottom: 8px; }
  body.mobile-preview .section-head h2 { font-size: 17px; }
  body.mobile-preview .section-head p { font-size: 11px; }
  body.mobile-preview .toolbar { gap: 5px; }
  body.mobile-preview .toolbar input,
  body.mobile-preview .toolbar select,
  body.mobile-preview .toolbar button { min-height: 32px; padding: 5px 7px; font-size: 11px; }
  body.mobile-preview .result-list { gap: 6px; }
  body.mobile-preview .result-card { padding: 9px; border-radius: 7px; }
  body.mobile-preview .major-result-list { display: block; }
  body.mobile-preview .major-result-list .major-list-row { min-height: 82px; grid-template-columns: minmax(0, 1fr) 110px 10px; gap: 7px; padding: 10px; border-radius: 0; }
  body.mobile-preview .major-result-list .major-list-row h3 { font-size: 15px; line-height: 1.35; }
  body.mobile-preview .summer-school-list { gap: 7px; }
  body.mobile-preview .summer-school-card { grid-template-columns: 52px minmax(0, 1fr) 104px; gap: 7px; min-height: 76px; padding: 9px 10px; border-radius: 12px; }
  body.mobile-preview .summer-school-identity { gap: 3px; }
  body.mobile-preview .summer-school-logo { width: 46px; height: 46px; font-size: 17px; }
  body.mobile-preview .summer-school-nature { max-width: 58px; padding: 1px 4px; border-radius: 4px; font-size: 8px; }
  body.mobile-preview .summer-school-card .summer-school-copy h3 { display: block; font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; word-break: break-all; white-space: normal; }
  body.mobile-preview .summer-school-card .summer-school-copy h3 em { padding: 1px 4px; border-radius: 5px; font-size: 9px; }
  body.mobile-preview .summer-school-card .summer-school-copy p { margin-top: 2px; font-size: 10px; }
  body.mobile-preview .summer-school-score { min-height: 54px; padding: 4px 3px; border-radius: 9px; }
  body.mobile-preview .summer-school-score strong { font-size: 17px; }
  body.mobile-preview .summer-school-score span { margin-top: 2px; font-size: 9px; }
  body.mobile-preview .result-card h3 { font-size: 13px; line-height: 1.3; }
  body.mobile-preview .result-card p { margin-top: 3px; font-size: 10px; line-height: 1.35; }
  body.mobile-preview .result-card .tag-row { gap: 3px; margin-top: 5px; }
  body.mobile-preview .result-card .tag { min-height: 20px; padding: 2px 5px; font-size: 9px; }
  body.mobile-preview .card-stats { gap: 4px; margin-top: 6px; }
  body.mobile-preview .card-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  body.mobile-preview .card-stats span { padding: 4px 5px; font-size: 9px; }
  body.mobile-preview .card-stats strong { margin-top: 1px; font-size: 12px; }
  body.mobile-preview .volunteer-metrics { grid-template-columns: 42px repeat(3, minmax(0, 1fr)); gap: 3px; }
  body.mobile-preview .summary-line { grid-template-columns: 30px repeat(4, minmax(0, 1fr)); gap: 2px; }
  body.mobile-preview .summary-line > span { padding: 3px 3px; font-size: 8px; }
  body.mobile-preview .summary-line > span b { font-size: 10px; }
  body.mobile-preview .major-detail-title { padding: 10px 11px; }
  body.mobile-preview .major-query-head > strong { font-size: 14px; }
  body.mobile-preview .major-query-tabs button { min-height: 27px; padding: 3px 8px; font-size: 10px; }
  body.mobile-preview .major-detail-title h2 { font-size: 18px; }
  body.mobile-preview .major-detail-title p { font-size: 10px; }
  body.mobile-preview .major-filter-strip { padding: 7px; }
  body.mobile-preview .major-school-row { padding: 12px 31px 11px 12px; }
  body.mobile-preview .major-school-row.zsb-school-row { padding: 11px 9px; }
  body.mobile-preview .major-school-heading { gap: 0 6px; }
  body.mobile-preview .major-school-heading > strong { font-size: 15px; line-height: 21px; }
  body.mobile-preview .major-school-heading > small { font-size: 10px; line-height: 18px; }
  body.mobile-preview .major-school-codes { gap: 0 7px; }
  body.mobile-preview .major-school-codes .code-meta { font-size: 9.5px; line-height: 17px; }
  body.mobile-preview .major-school-note { font-size: 10.5px; line-height: 16px; }
  body.mobile-preview .major-school-years-line { grid-template-columns: auto auto auto minmax(0, 1fr); gap: 4px; margin-top: 6px; font-size: 10px; line-height: 19px; }
  body.mobile-preview .major-school-year-item > b { font-size: 10.5px; }
  body.mobile-preview .major-school-plan > strong, body.mobile-preview .major-school-history-inline > strong { font-size: 11.5px; line-height: 19px; }
  body.mobile-preview .major-school-arrow { right: 9px; font-size: 19px; }
  body.mobile-preview .major-school-heading { flex-wrap: wrap; row-gap: 0; white-space: normal; }
  body.mobile-preview .major-school-heading > strong { flex: 0 1 auto; }
  body.mobile-preview .major-favorite-add { min-height: 23px; margin-top: 4px; padding: 1px 8px; font-size: 10px; }
  body.mobile-preview .major-school-stats { grid-template-columns: auto auto auto minmax(0, 1fr); gap: 4px; font-size: 9px; }
  body.mobile-preview .major-school-stats strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; }
  body.mobile-preview .favorite-add { min-height: 28px; margin-top: 6px; padding: 4px 7px; font-size: 10px; }
}

@media (max-width: 560px) {
  body.mobile-preview .detail-dialog { width: calc(100vw - 16px); max-width: calc(100vw - 16px); max-height: calc(100vh - 30px); border-radius: 10px; }
  body.mobile-preview .dialog-head { min-height: 45px; padding: 8px 11px; }
  body.mobile-preview .dialog-head h2 { max-width: calc(100vw - 65px); overflow: visible; font-size: 16px; line-height: 1.35; white-space: normal; overflow-wrap: anywhere; }
  body.mobile-preview .school-title-badges { margin-left: 4px; }
  body.mobile-preview .school-title-badge { font-size: 9px; }
  body.mobile-preview .dialog-body { width: 100%; max-width: 100%; max-height: calc(100vh - 86px); padding: 9px; overflow-x: hidden; overflow-y: auto; }
  body.mobile-preview .major-detail-page { width: 100%; max-width: 100%; min-width: 0; gap: 8px; }
  body.mobile-preview .major-query-head { gap: 5px; padding: 2px 0; }
  body.mobile-preview .major-detail-title { gap: 6px; }
  body.mobile-preview .major-detail-title .major-detail-back { padding: 4px 6px; font-size: 10px; }
  body.mobile-preview .major-filter-scroll { max-width: 100%; }
}

/* Offline study tools follow the same compact, scan-first layout as the query pages. */
.study-page { display: grid; gap: 13px; max-width: 980px; margin: 0 auto; color: #1d2935; }
.study-page * { box-sizing: border-box; }
.study-lead { display: grid; gap: 4px; padding: 13px 16px; border-left: 4px solid #238575; background: #eaf4f2; }
.english-page .study-lead { border-color: #246cb2; background: #edf3fa; }
.study-lead > span { color: #267e76; font-size: 12px; font-weight: 700; }
.english-page .study-lead > span { color: #246cb2; }
.study-lead > strong { font-size: 18px; line-height: 1.4; }
.study-lead p { margin: 0; color: #5c6772; font-size: 12px; line-height: 1.55; }
.study-search-wrap { display: grid; gap: 0; min-width: 0; }
.study-suggestions:not([hidden]) { display: grid; max-width: 100%; padding: 5px; border: 1px solid #cbdbe7; border-top: 0; border-radius: 0 0 6px 6px; background: #fff; box-shadow: 0 5px 10px rgba(24, 70, 100, .08); }
.study-suggestions button { min-height: 35px; padding: 5px 9px; border: 0; border-radius: 3px; background: transparent; color: #263948; font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.study-suggestions button:hover, .study-suggestions button[aria-selected="true"] { background: #eaf3fb; color: #175f9b; }
.study-suggestions p { margin: 0; padding: 8px; color: #647483; font-size: 12px; }
.study-filter, .study-item, .study-active, .study-saved { min-width: 0; border: 1px solid #dce3e8; border-radius: 7px; background: #fff; }
.study-filter { display: grid; gap: 10px; padding: 13px; }
.study-filter label { display: grid; gap: 5px; color: #4e5a65; font-size: 12px; font-weight: 700; }
.study-filter input, .study-filter select { width: 100%; min-width: 0; min-height: 37px; padding: 6px 10px; border: 1px solid #ced8df; border-radius: 5px; background: #fff; color: #1d2935; font: inherit; font-size: 14px; }
.study-filter input:focus, .study-filter select:focus { outline: 2px solid #3986c3; outline-offset: 1px; }
.study-filter-selects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.study-section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.study-section-head h2 { margin: 0; font-size: 16px; }
.study-section-head small { color: #657582; font-size: 12px; }
.study-section-head > span { color: #61717f; font-size: 11px; text-align: right; }
.study-list { display: grid; gap: 8px; }
.study-item { display: grid; gap: 10px; padding: 13px; }
.study-item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; }
.study-item > summary { cursor: pointer; list-style: none; }
.study-item > summary::-webkit-details-marker { display: none; }
.study-item > summary::after { content: "展开"; flex: none; align-self: center; color: #286aa3; font-size: 11px; }
.study-item[open] > summary::after { content: "收起"; }
.study-item-details { display: grid; gap: 10px; }
.study-item h3, .study-compact h3 { margin: 4px 0 0; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.study-tag { display: inline-block; padding: 2px 6px; border-radius: 3px; background: #eaf4f2; color: #176951; font-size: 11px; font-weight: 700; }
.study-tag.restricted { border: 1px solid #eab4a0; background: #fff0e8; color: #a43723; }
.study-status { max-width: 50%; padding: 4px 6px; border-radius: 3px; background: #e7f3e9; color: #176444; font-size: 11px; line-height: 1.45; }
.study-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 13px; margin: 0; }
.study-facts > div { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 5px; font-size: 12px; line-height: 1.5; }
.study-facts dt { color: #697580; }
.study-facts dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.study-item-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px solid #edf0f2; }
.study-item-foot > span { color: #67747d; font-size: 11px; line-height: 1.4; }
.study-item-foot button { flex: none; }
.study-empty { padding: 15px; border: 1px dashed #bbcbd4; border-radius: 5px; background: #fff; color: #66717b; font-size: 12px; }
.study-save { width: fit-content; }
.study-disclaimer { margin: 0; padding: 9px 11px; border-left: 3px solid #d57b45; background: #fff5ef; color: #795641; font-size: 12px; line-height: 1.65; }
.career-plan { display: grid; gap: 9px; padding-top: 2px; }
.career-certificates { display: grid; gap: 7px; padding: 10px 11px; border: 1px solid #cbded6; border-radius: 6px; background: #f3faf6; }
.career-certificates > strong { color: #22694d; font-size: 12px; }
.career-certificate-list { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.career-certificate-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 8px; padding: 5px 0; border-top: 1px solid #dcebe2; font-size: 12px; }
.career-certificate-list li span { color: #315665; }
.career-certificate-list li small { width: 100%; color: #9a572c; line-height: 1.4; }
.career-certificate-empty { margin: 0; color: #61727a; font-size: 12px; line-height: 1.5; }
.career-highlight { color: #16765d; font-weight: 700; }
.certificates-page .study-item h3,
.certificates-page .career-highlight { color: #176951; }
.career-plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.career-plan-grid article { display: grid; align-content: start; gap: 4px; min-width: 0; padding: 10px; border: 1px solid #dce5e8; border-radius: 6px; background: #f8fbfb; }
.career-plan-grid b { color: #a43723; font-size: 12px; }
.career-plan-grid strong { font-size: 13px; }
.career-plan-grid p { margin: 0; color: #5e6d75; font-size: 11px; line-height: 1.55; }
.career-advice { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; padding: 10px 11px; border-left: 3px solid #3b82b7; background: #eef6fb; color: #3f5e70; font-size: 12px; line-height: 1.6; }
.career-advice strong { color: #1e5d8b; }
.career-advice p { margin: 0 0 6px; }
.career-advice p b { margin-right: 7px; color: #185c8a; white-space: nowrap; }
.career-advice small { color: #92573e; line-height: 1.5; }
.study-progress { display: flex; flex-wrap: wrap; gap: 5px; }
.study-progress span { padding: 6px 9px; border-radius: 4px; background: #fff; color: #596875; font-size: 12px; }
.study-progress b { color: #176cb3; }
.english-clear-progress { min-height: 31px; padding: 5px 9px; color: #a14e38; border-color: #dfb6aa; background: #fff6f3; font-size: 11px; }
.study-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.study-tabs button { min-height: 39px; padding: 4px; border: 1px solid #d5dfe5; border-radius: 5px; background: #fff; color: #37546b; font-size: 12px; font-weight: 700; cursor: pointer; }
.study-tabs button.active { border-color: #1f68aa; background: #206bb7; color: #fff; }
.study-compact { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; padding: 10px 12px; border: 1px solid #dce3e8; border-radius: 6px; background: #fff; }
.study-compact > div:first-child { min-width: 0; }
.study-compact small { color: #67747d; font-size: 11px; }
.study-compact button, .study-actions button { flex: none; min-height: 31px; padding: 5px 8px; border: 1px solid #abc6db; border-radius: 4px; background: #edf5fc; color: #1f64a0; cursor: pointer; }
.study-actions { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.study-active { display: grid; gap: 10px; padding: 14px; }
.study-active h2 { margin: 0; font-size: 17px; }
.study-passage, .study-example { margin: 0; padding: 11px; border-radius: 4px; background: #f3f6f8; font-size: 13px; line-height: 1.65; white-space: pre-wrap; }
.study-item p { margin: 0; font-size: 13px; line-height: 1.6; }
.study-active form { display: grid; gap: 12px; }
.english-question { min-width: 0; margin: 0; padding: 10px; border: 1px solid #d9e2e8; border-radius: 5px; }
.english-question legend { max-width: 100%; padding: 0 4px; font-size: 13px; font-weight: 700; }
.english-answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.english-answer { display: flex; align-items: center; gap: 5px; min-width: 0; min-height: 35px; padding: 5px 7px; border: 1px solid #e0e7eb; border-radius: 4px; font-size: 12px; line-height: 1.4; cursor: pointer; }
.english-answer.correct { border-color: #6cb895; background: #eaf7ee; }
.english-answer.incorrect { border-color: #e3a28d; background: #fff0eb; }
.english-answer input { flex: none; }
.study-analysis { margin: 8px 0 0; color: #28546a; font-size: 12px; line-height: 1.6; }
.study-score { font-size: 15px; color: #196e55; }
.study-text-action { width: fit-content; padding: 0; border: 0; background: none; color: #246cb2; font-size: 12px; font-weight: 700; cursor: pointer; }
.study-saved { margin-top: 10px; padding: 10px; }
.study-saved summary { color: #225a78; font-size: 14px; font-weight: 700; cursor: pointer; }
.study-saved-row { display: flex; flex-wrap: wrap; gap: 6px 12px; padding: 8px 0; border-bottom: 1px solid #edf0f2; font-size: 12px; }
.study-saved-row span, .study-saved p { margin: 7px 0; color: #61737d; font-size: 12px; }
.english-group-list { display: grid; gap: 7px; grid-template-columns: 1fr; }
.english-group-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; min-width: 0; min-height: 62px; padding: 10px 12px; border: 1px solid #dce3e8; border-radius: 6px; background: #fff; }
.english-group-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.english-group-main > div { display: grid; gap: 3px; min-width: 0; }
.english-group-actions { display: flex; align-items: center; gap: 5px; }
.english-group-actions .english-group-bookmark { width: 34px; min-width: 34px; font-size: 19px; line-height: 1; color: #9c7318; background: #fff9eb; }
.english-group-actions .english-group-bookmark[aria-pressed="true"] { color: #a36810; background: #ffedc5; border-color: #d9aa55; }
.english-group-card .study-tag { width: fit-content; }
.english-group-card strong { font-size: 14px; }
.english-group-card small { color: #596c79; font-size: 11px; line-height: 1.35; }
.english-group-card button, .study-mode-switch button, [data-group-self] { min-height: 32px; padding: 5px 9px; border: 1px solid #a6c2d8; border-radius: 4px; background: #eef5fb; color: #205e98; cursor: pointer; }
.english-group-card button { justify-self: end; white-space: nowrap; }
.english-group-pages { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; color: #506779; font-size: 12px; }
.english-group-pages button { min-width: 68px; min-height: 34px; border: 1px solid #a6c2d8; border-radius: 5px; color: #205e98; background: #eef5fb; cursor: pointer; }
.english-group-pages button:disabled { opacity: .45; cursor: default; }
.english-mistake-sections { display: grid; gap: 8px; }
.english-mistake-section { border: 1px solid #dce3e8; border-radius: 6px; background: #fff; }
.english-mistake-section summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 50px; padding: 10px 12px; cursor: pointer; }
.english-mistake-section summary strong { color: #263e50; font-size: 14px; }
.english-mistake-section summary span { color: #667a88; font-size: 11px; text-align: right; }
.english-mistake-body { display: grid; gap: 9px; padding: 10px 12px 13px; border-top: 1px solid #e4eaef; }
.english-mistake-body > button { justify-self: start; }
.english-mistake-items { display: grid; gap: 6px; max-height: 330px; overflow-y: auto; margin: 0; padding: 0 0 0 20px; color: #364d5f; font-size: 12px; line-height: 1.45; }
.english-mistake-items small { display: block; margin-top: 3px; color: #697c86; }
.english-saved-groups { display: grid; gap: 6px; }
.english-saved-groups > strong { color: #364d5f; font-size: 12px; }
.english-saved-groups button { padding: 8px; border: 1px solid #d8e3ea; border-radius: 4px; background: #f7fafc; color: #236494; font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.study-mode-switch { display: flex; gap: 7px; }
.study-mode-switch button.active { border-color: #206bb7; background: #206bb7; color: #fff; }
.english-group-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; color: #637784; font-size: 12px; }
.english-group-meter { height: 5px; overflow: hidden; border-radius: 3px; background: #e4ebf1; }
.english-group-meter span { display: block; height: 100%; background: #2683ad; }
.english-group-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.english-practice-label { color: #243e54; font-size: 13px; font-weight: 700; line-height: 1.5; }
#englishPracticeDraft { width: 100%; min-height: 108px; padding: 9px; border: 1px solid #cbd7df; border-radius: 5px; font: inherit; font-size: 13px; line-height: 1.5; resize: vertical; }
.english-group-active .study-analysis { padding: 9px; border-left: 3px solid #238575; background: #f0f8f4; }
.english-group-active .study-analysis p { margin: 5px 0; }
.english-group-finish p { margin: 0; color: #536977; font-size: 13px; line-height: 1.6; }
.english-study-footer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.english-study-progress, .english-paper-entry { display: flex; align-items: center; justify-content: space-between; gap: 7px; min-width: 0; min-height: 76px; padding: 10px; border: 1px solid #dce3e8; border-radius: 6px; background: #fff; }
.english-study-progress > div, .english-paper-entry > span:first-child { display: grid; gap: 3px; min-width: 0; }
.english-study-progress strong, .english-paper-entry strong { color: #243e54; font-size: 14px; }
.english-study-progress small, .english-paper-entry small { color: #617482; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.english-study-footer small b { color: #cb513b; font-size: 14px; font-weight: 800; }
.english-study-progress .study-save { flex: none; min-width: 0; max-width: 50%; padding: 6px; font-size: 11px; white-space: normal; }
.english-paper-entry { width: 100%; color: #1e70a8; font: inherit; cursor: pointer; text-align: left; }
.english-paper-entry > span:last-child { flex: none; font-size: 22px; }
.english-paper-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px; color: #596c79; font-size: 12px; }
.english-paper-heading h2 { margin: 0; font-size: 18px; }
.english-paper-note { margin: 0; padding: 8px 10px; border-left: 3px solid #d98750; background: #fff5ec; color: #715743; font-size: 12px; line-height: 1.5; }
.english-paper-list { display: grid; gap: 8px; }
.english-paper-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; min-width: 0; min-height: 64px; padding: 10px 12px; border: 1px solid #dce3e8; border-radius: 6px; background: #fff; color: #28658e; font: inherit; text-align: left; cursor: pointer; }
.english-paper-row > span:first-child { display: grid; gap: 4px; min-width: 0; }
.english-paper-row strong { color: #253d50; font-size: 14px; }
.english-paper-row small, .english-paper-demo-label { color: #697987; font-size: 11px; line-height: 1.5; }
.english-paper-row > span:last-child { flex: none; font-size: 22px; }
.english-paper-prompt { margin: 0; color: #253d50; font-size: 15px; font-weight: 700; line-height: 1.5; }
.english-paper-options { display: grid; gap: 7px; min-width: 0; margin: 0; padding: 0; border: 0; }
.english-paper-options legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.english-paper-option { display: flex; align-items: center; gap: 8px; min-height: 39px; padding: 8px; border: 1px solid #dce3e8; border-radius: 5px; background: #fff; font-size: 13px; line-height: 1.45; cursor: pointer; overflow-wrap: anywhere; }
.english-paper-option:has(input:checked) { border-color: #4382bc; background: #eff7fd; }
.english-paper-option input { flex: none; }
.english-paper-draft-label { color: #344c61; font-size: 13px; font-weight: 700; }
#englishPaperDraft { width: 100%; min-height: 144px; padding: 10px; border: 1px solid #bfd3df; border-radius: 5px; color: #243e54; background: #fff; font: inherit; font-size: 13px; line-height: 1.6; resize: vertical; }
.english-paper-jump { display: flex; gap: 5px; min-width: 0; overflow-x: auto; padding-bottom: 5px; }
.english-paper-jump button { flex: 0 0 36px; min-width: 0; min-height: 32px; padding: 3px; border: 1px solid #cddbe4; border-radius: 4px; color: #456578; background: #f6f9fb; cursor: pointer; }
.english-paper-jump button.answered { color: #197252; background: #eef8f2; border-color: #acd4bf; }
.english-paper-jump button.active { color: #fff; background: #206bb7; border-color: #206bb7; }
.english-paper-controls { display: flex; gap: 8px; justify-content: space-between; }
.english-paper-controls button { min-height: 36px; padding: 6px 12px; border: 1px solid #a6c2d8; border-radius: 5px; background: #eef5fb; color: #205e98; font: inherit; font-size: 12px; cursor: pointer; }
.english-paper-controls button.primary-button { color: #fff; background: #206bb7; }
.english-paper-controls button:disabled { opacity: .4; cursor: default; }
@media (max-width: 600px) {
  .study-filter-selects { gap: 5px; }
  .study-filter-selects select { padding: 5px 3px; font-size: 12px; }
  .study-facts { grid-template-columns: 1fr; }
  .study-item-foot { align-items: flex-start; flex-direction: column; }
  .study-tabs { gap: 3px; }
  .study-tabs button { font-size: 11px; }
  .english-answers { grid-template-columns: 1fr; }
  .english-group-list { grid-template-columns: 1fr; }
  .career-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .career-advice { grid-template-columns: 1fr; gap: 3px; }
  .english-study-progress, .english-paper-entry { padding: 8px; }
  .english-study-progress .study-save { font-size: 10px; }
}
/* Entitlements share the same appearance on desktop and mobile. */
.module-locked { filter: grayscale(1); opacity: .58; }
.module-row.module-locked { background: #edf0f3; color: #535b64; }
.account-module-list { margin: 14px 0 24px; }
.community-form input:not([type="checkbox"]) { width: 100%; box-sizing: border-box; min-height: 44px; border: 1px solid #cad7e0; border-radius: 6px; padding: 10px; font: inherit; }
.community-form label { display: block; }
.account-settings > button { margin: 6px 6px 6px 0; }

.growth-recording { padding: 16px 0; border-bottom: 1px solid #e5e7eb; min-width: 0; }
.growth-recording h4 { margin: 0 0 12px; line-height: 1.6; }
.growth-recording audio { display: block; width: 100%; max-width: 100%; }
.growth-page { max-width: 1040px; margin: 0 auto; padding: 0 0 24px; background: transparent; }
.growth-hero { position: relative; overflow: hidden; padding: 32px; border-radius: 24px; background: linear-gradient(125deg,#174e44,#287562); color: #fff; box-shadow: 0 12px 28px #174e4418; }
.growth-eyebrow { font-size: 12px; letter-spacing: 1px; font-weight: 600; }
.growth-hero .growth-eyebrow { color: #c5e6d6; }
.growth-hero h2 { position: relative; z-index: 1; font-size: 30px; margin: 14px 0 12px; line-height: 1.35; color: #fff; }
.growth-hero p { position: relative; z-index: 1; margin: 0; color: #e0eee7; line-height: 1.8; }
.growth-hero-meta { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.growth-hero-meta span { padding: 7px 10px; border: 1px solid #ffffff26; border-radius: 20px; background: #ffffff0e; font-size: 11px; color: #f0f8f3; }
.growth-hero-art { position: absolute; right: -12px; top: -42px; font-size: 220px; color: #ffffff0c; transform: rotate(15deg); pointer-events: none; }
.growth-section-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 28px 0 14px; }
.growth-section-label h3 { margin: 0; font-size: 17px; color: #233f37; }
.growth-section-label > span { font-size: 11px; color: #7a8580; }
.growth-topics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.growth-topic { --theme: #357b5c; --wash: #eaf5ee; position: relative; display: flex; align-items: center; gap: 12px; padding: 17px 14px; min-height: 90px; min-width: 0; border: 1px solid #e5eae6; border-radius: 16px; background: #fff; text-align: left; color: #273c34; cursor: pointer; transition: border-color .15s,background .15s; }
.growth-rose { --theme:#b26478; --wash:#fcf0f3; }.growth-blue { --theme:#4c77b0; --wash:#edf3fc; }.growth-amber { --theme:#a37b32; --wash:#fbf5e8; }.growth-violet { --theme:#8363a9; --wash:#f3eefb; }.growth-teal { --theme:#388c89; --wash:#eaf6f4; }
.growth-topic:hover,.growth-topic[aria-pressed="true"] { border-color: var(--theme); background: var(--wash); }
.growth-topic[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--theme); }
.growth-topic-icon { flex: 0 0 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--wash); color: var(--theme); font-size: 21px; font-weight: 600; }
.growth-topic-copy { display: grid; gap: 6px; min-width: 0; }.growth-topic-copy strong { font-size: 14px; line-height: 1.5; }.growth-topic-copy small { font-size: 10px; color: #7c8581; line-height: 1.5; }.growth-topic-arrow { color: var(--theme); margin-left: auto; font-size: 17px; }
.growth-topic:focus-visible,.growth-lesson-footer button:focus-visible { outline: 3px solid #6cb296; outline-offset: 3px; }
.growth-course-heading { display: flex; justify-content: space-between; align-items: center; margin: 30px 0 16px; gap: 12px; }.growth-course-heading .growth-eyebrow { color: #709182; }.growth-course-heading h3 { font-size: 22px; color: #243e34; margin: 8px 0 0; }.growth-course-count { font-size: 11px; color: #47765e; background: #e8f2ec; padding: 8px 12px; border-radius: 20px; white-space: nowrap; }
.growth-course-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.growth-page .growth-recording { padding: 20px; border: 1px solid #e5eae6; border-radius: 18px; background: #fff; box-shadow: 0 4px 16px #1b463606; }
.growth-lesson-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }.growth-lesson-number { flex: 0 0 40px; height: 44px; border-radius: 12px; background: #f0f5f1; color: #51836c; display: grid; place-items: center; font-size: 19px; font-weight: 600; }.growth-lesson-kicker { font-size: 10px; color: #83918a; }.growth-page .growth-recording h4 { margin: 5px 0 0; font-size: 16px; line-height: 1.55; color: #273b32; }
.growth-recording audio { border-radius: 28px; height: 44px; }
.growth-lesson-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid #edf1ee; margin-top: 16px; padding-top: 12px; }.growth-lesson-footer > span { color: #97a29b; font-size: 10px; }.growth-lesson-footer button { background: transparent; border: 0; padding: 6px 0 6px 8px; color: #347255; font-size: 12px; cursor: pointer; min-height: 36px; white-space: nowrap; }
@media (max-width: 600px) {
  .growth-page { padding: 0 0 24px; }.growth-hero { padding: 24px 20px; border-radius: 20px; }.growth-hero h2 { font-size: 25px; }.growth-hero p { font-size: 12px; }.growth-hero-meta { gap: 6px; margin-top: 18px; }.growth-hero-meta span { font-size: 10px; padding: 6px 8px; }
  .growth-topics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }.growth-topic { padding: 13px 10px; gap: 8px; min-height: 92px; }.growth-topic-icon { flex-basis: 30px; height: 34px; font-size: 18px; border-radius: 10px; }.growth-topic-copy strong { font-size: 12px; }.growth-topic-copy small { font-size: 9px; }.growth-topic-arrow { display: none; }
  .growth-course-list { grid-template-columns: minmax(0,1fr); gap: 12px; }.growth-page .growth-recording { padding: 17px 16px; }.growth-course-heading h3 { font-size: 20px; }.growth-section-label h3 { font-size: 16px; }
}
/* Compact spacing for the existing growth course layout. */
.growth-page .growth-hero { padding: 22px 26px; }
.growth-page .growth-hero h2 { margin: 9px 0 7px; font-size: 27px; }
.growth-page .growth-hero-meta { margin-top: 14px; }
.growth-page .growth-section-label { margin: 18px 0 10px; }
.growth-page .growth-topics { gap: 9px; }
.growth-page .growth-topic { min-height: 72px; padding: 12px; }
.growth-page .growth-topic-copy { gap: 3px; }
.growth-page .growth-course-heading { margin: 20px 0 10px; }
.growth-page .growth-course-heading h3 { margin-top: 5px; }
.growth-page .growth-course-list { gap: 10px; }
.growth-page .growth-recording { padding: 14px 16px; }
.growth-page .growth-lesson-heading { margin-bottom: 10px; }
.growth-page .growth-lesson-footer { margin-top: 9px; padding-top: 5px; }
@media (max-width: 600px) {
  .growth-page .growth-hero { padding: 17px 16px; border-radius: 16px; }
  .growth-page .growth-hero h2 { font-size: 23px; margin: 8px 0 5px; }
  .growth-page .growth-hero p { line-height: 1.6; }
  .growth-page .growth-hero-meta { margin-top: 11px; gap: 5px; }
  .growth-page .growth-hero-meta span { padding: 4px 7px; }
  .growth-page .growth-section-label { margin: 16px 0 9px; }
  .growth-page .growth-topics { gap: 7px; }
  .growth-page .growth-topic { min-height: 70px; padding: 10px 8px; gap: 7px; border-radius: 12px; }
  .growth-page .growth-topic-icon { flex-basis: 28px; height: 30px; }
  .growth-page .growth-course-heading { margin: 17px 0 10px; }
  .growth-page .growth-course-heading h3 { font-size: 18px; }
  .growth-page .growth-course-list { gap: 9px; }
  .growth-page .growth-recording { padding: 12px; border-radius: 14px; }
  .growth-page .growth-lesson-heading { gap: 9px; margin-bottom: 9px; }
  .growth-page .growth-lesson-number { flex-basis: 34px; height: 37px; font-size: 17px; }
  .growth-page .growth-recording h4 { font-size: 14px; margin-top: 3px; }
  .growth-page .growth-lesson-footer { margin-top: 8px; padding-top: 4px; }
}
/* A smaller introduction and tighter course spacing. */
.growth-page .growth-hero { padding: 16px 22px; }
.growth-page .growth-hero h2 { margin: 7px 0 5px; font-size: 25px; }
.growth-page .growth-section-label { margin: 13px 0 8px; }
.growth-page .growth-course-heading { margin: 14px 0 9px; }
@media (max-width: 600px) {
 .growth-page .growth-hero { padding: 13px 15px; border-radius: 14px; }
 .growth-page .growth-hero h2 { font-size: 22px; margin: 6px 0 4px; }
 .growth-page .growth-hero .growth-eyebrow { font-size: 10px; }
 .growth-page .growth-hero p { font-size: 11px; }
 .growth-page .growth-section-label { margin: 12px 0 8px; }
 .growth-page .growth-topic { min-height: 62px; padding: 8px; }
 .growth-page .growth-course-heading { margin: 13px 0 8px; }
 .growth-page .growth-recording { padding: 10px 12px; }
 .growth-page .growth-lesson-footer { margin-top: 6px; padding-top: 3px; }
}
/* Read-only learning content; editable forms and invitation links remain usable. */
#content, #detailDialog { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
#content img, #detailDialog img { -webkit-user-drag: none; -webkit-touch-callout: none; }
#content input:not([readonly]), #content textarea, #detailDialog textarea, #exportLink, #communityShareLink, [data-copy-allowed] { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
@media print { body > * { display: none !important; } }
#guidanceWechat { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
/* Compact voice lessons and remembered listening state. */
.growth-page .growth-recording { padding: 9px 12px; }
.growth-page .growth-lesson-heading { align-items: center; gap: 9px; margin-bottom: 7px; }
.growth-page .growth-lesson-number { flex-basis: 28px; height: 28px; font-size: 14px; border-radius: 8px; }
.growth-page .growth-recording h4 { margin: 0; font-size: 14px; flex: 1; }
.growth-page .growth-recording audio { height: 38px; }
.growth-listen-state { flex: none; font-size: 10px; color: #a76d25; }
.growth-page .growth-recording.growth-last { background: #fff8e9; border-color: #e8c88a; }
.growth-page .growth-recording.growth-playing { background: #e8f4ed; border-color: #46866a; box-shadow: inset 3px 0 #46866a; }
.growth-playing .growth-listen-state { color: #286748; }
.growth-page .growth-course-list { gap: 7px; }
/* Avoid stacking the generic community grid gap with growth section margins. */
.community-page.growth-page { gap: 0; }
.growth-page .growth-section-label { margin: 9px 0 7px; }
.growth-page .growth-course-heading { margin: 11px 0 8px; }
.growth-page .growth-topics { gap: 6px; }
@media (max-width: 600px) {
 .growth-page .growth-section-label { margin: 8px 0 6px; }
 .growth-page .growth-course-heading { margin: 10px 0 7px; }
 .growth-page .growth-topic { min-height: 58px; padding: 7px 8px; }
}
.bottom-nav button { min-height: 64px; padding: 0 6px; align-content: center; align-items: center; }
.bottom-nav button strong { font-size: 15px; line-height: 1.4; }
.bottom-nav .bottom-nav-icon { display: none; }
.feedback-notice { border: 1px solid #e2e8ec; border-radius: 12px; padding: 16px; background: #f7f9fb; }
.feedback-notice h3 { margin: 0 0 12px; font-size: 17px; color: #253e49; }
.feedback-notice h4 { margin: 14px 0 6px; font-size: 14px; color: #344d59; }
.feedback-notice p { margin: 0; font-size: 12px; line-height: 1.9; color: #637581; }
.english-group-page > .study-tabs { display: grid; grid-template-columns: .75fr .75fr 1.2fr .75fr 1.2fr; gap: 4px; }
.english-group-page > .study-tabs button { min-width: 0; padding: 9px 2px; font-size: 12px; white-space: nowrap; }
.english-listening-player { padding: 14px; margin-bottom: 16px; border: 1px solid #d9e8e5; border-radius: 12px; background: #eff7f4; }
.english-listening-player > span { display: block; color: #286957; font-size: 12px; margin-bottom: 10px; }
.english-listening-player audio { width: 100%; height: 42px; }
.english-listening-player small { display: block; margin-top: 8px; color: #70827c; line-height: 1.7; font-size: 11px; }

.schedule-tabs{display:grid;grid-template-columns:.8fr .8fr 1.3fr 1fr .8fr;gap:5px;margin:0 0 14px}.schedule-tabs button{padding:10px 2px;border:1px solid #eadcde;border-radius:9px;background:#fff;color:#65575a;font-size:14px;font-weight:600;white-space:nowrap}.schedule-tabs button[aria-selected="true"]{background:#b71c2b;border-color:#b71c2b;color:#fff}.calendar-note{padding:10px 12px;margin-bottom:14px;border-radius:9px;background:#fff7ed;color:#86562b;font-size:13px;line-height:1.6}.calendar-sources{font-size:12px;color:#777;line-height:1.6;padding:12px 0}.calendar-sources a{color:#ad2434}

.published-module-resources{margin-top:18px;padding:16px;border:1px solid #e8dfe1;border-radius:12px;background:#fff}.published-module-resources article{padding:12px 0;border-top:1px solid #eee}.published-module-resources h4{margin:0 0 6px}.published-module-resources p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.7}.published-module-resources audio{max-width:100%;width:100%}

.community-page [data-grant],.community-page [data-agent],.community-page .agent-status+div form{display:grid;gap:10px;margin:16px 0;padding:12px;border:1px solid #e0e5ec;border-radius:8px}.community-page [data-grant] label,.community-page [data-agent] label{display:grid;gap:5px}.community-page code{overflow-wrap:anywhere}.community-page [data-members],.community-page [data-feedback]{max-height:420px;overflow:auto}

/* Compact personal workspace. */
.mine-profile{position:relative;padding:16px 16px 16px 82px!important;min-height:94px}.mine-avatar{position:absolute;left:16px;top:18px;display:grid;place-items:center;width:50px;height:50px;border-radius:50%;background:#fbe7e3;color:#a23f32;font-size:24px}.mine-profile h2{font-size:19px;margin:0}.mine-profile p{margin:5px 0!important;font-size:12px}.mine-profile>small{display:inline-block;color:#a23f32;background:#fff0eb;padding:2px 8px;border-radius:12px}.mine-tabs{display:flex;gap:8px;margin:12px 0}.mine-tabs button{flex:1;padding:12px;border:1px solid #e6d7d3;border-radius:10px;background:white;color:#7b605a;font-size:16px}.mine-tabs button[aria-selected=true]{background:#ad473b;color:white;border-color:#ad473b}#mineActivation[hidden],#minePartners[hidden]{display:none!important}.mine-management-entry{display:block;margin-top:8px;padding:7px 12px;border-radius:8px}#minePartners .community-share img{width:144px;height:144px}#mineActivation .community-form,#minePartners .community-form{margin-top:10px;padding:14px}#mineActivation h3,#minePartners h3{font-size:16px;margin:0 0 8px}

/* Mobile personal page: tabs first, compact spacing. */
.community-page:has(.mine-tabs){padding-top:0}.mine-tabs{margin:0 0 7px;gap:6px;position:relative}.mine-tabs button{padding:9px 8px;font-size:15px;border-radius:8px;min-height:38px}.mine-profile{padding:10px 10px 10px 60px!important;min-height:70px;margin:0 0 7px!important}.mine-avatar{left:10px;top:12px;width:38px;height:38px;font-size:19px}.mine-profile h2{font-size:16px;line-height:1.3}.mine-profile p{font-size:11px;line-height:1.4;margin:3px 0!important}.mine-profile>small{font-size:11px;padding:0 6px}.mine-management-entry{display:inline-block;margin:4px 0 0;padding:4px 8px;font-size:12px;min-height:27px}#mineActivation .community-form,#minePartners .community-form{margin-top:7px;padding:10px;border-radius:9px}#mineActivation .community-form p,#minePartners .community-form p{font-size:12px;line-height:1.5;margin:5px 0}#mineActivation h3,#minePartners h3{font-size:14px;margin:0 0 5px}#minePartners .community-share{padding:10px;margin:0 0 7px}#minePartners .community-share img{width:112px;height:112px;margin:4px auto}#minePartners .community-share>p,#minePartners .community-share>small,#minePartners>.community-note{display:none}#minePartners .community-partner-list{margin-top:7px;padding:10px}#minePartners .community-partner{padding:7px 0;gap:7px}#minePartners .community-partner-icon{width:28px;height:28px;font-size:12px}#minePartners .community-copy{margin-top:6px}#minePartners .community-form form{display:flex;gap:7px}#minePartners .community-form form input{min-width:0;flex:1;margin:0}#minePartners .community-form form button{width:auto;white-space:nowrap;margin:0;padding:7px 12px}#mineActivation input,#minePartners input{padding:8px;font-size:13px}#mineActivation button,#minePartners button{font-size:13px;min-height:34px}

#minePartners .partner-compact{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:center;padding:9px 0}#minePartners .partner-compact strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}#minePartners .partner-compact small{white-space:nowrap;font-size:11px}.partner-state{font-size:11px;color:#a34b3d;background:#fff0eb;border-radius:5px;padding:2px 5px}

.register-benefits{padding:14px;background:#fff7f2;border:1px solid #f0ddd2;border-radius:12px;margin:12px 0}.register-benefits h3{font-size:16px;margin:0 0 9px;color:#9c4337}.register-benefits p{display:flex;justify-content:space-between;gap:10px;font-size:13px;margin:7px 0}.register-benefits small{display:block;line-height:1.65;font-size:12px;color:#7c6d65;margin-top:10px}

/* Invitation QR is deliberately shareable; course protection remains scoped. */
#content img.invite-share-qr[data-copy-allowed]{-webkit-touch-callout:default;-webkit-user-select:auto;user-select:auto;-webkit-user-drag:auto;touch-action:auto}

/* Denser shared profile above both personal tabs. */
.community-page:has(>.mine-tabs){gap:5px}
.community-page>.mine-tabs{margin:0;gap:5px}
.community-page>.mine-tabs button{padding:7px 8px;min-height:34px;font-size:14px}
.community-page>.mine-profile{display:block;min-height:0;padding:7px 8px 7px 48px!important;margin:0!important;line-height:1.3}
.mine-profile .mine-avatar{left:7px;top:8px;width:32px;height:32px;font-size:16px}
.community-page>.mine-profile h2{display:inline;margin:0;font-size:14px;line-height:20px;overflow-wrap:anywhere}
.community-page>.mine-profile #mineIdentity{display:inline;margin-left:6px;padding:1px 5px;font-size:10px;vertical-align:middle}
.community-page>.mine-profile>p{margin:2px 0!important;line-height:1.3;font-size:11px}
.community-page>.mine-profile .community-note{margin:2px 0!important;line-height:1.3;font-size:11px}
.community-page>.mine-profile .mine-management-entry{padding:3px 7px;margin:3px 0 0;min-height:24px;font-size:11px}
#mineActivation>.community-form:first-child,#minePartners>.community-form:first-child{margin-top:0}

.partner-unlock-note{margin:7px 0;padding:10px 12px;border:1px solid #efdfd5;border-radius:9px;background:#fff8f3;font-size:12px;line-height:1.5}.partner-unlock-note>strong{font-size:13px;color:#9e4638}.partner-unlock-note p{margin:4px 0}.partner-unlock-note small{font-size:11px;color:#7a6d66}

#minePartners .points-card .points-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 5px}
#minePartners .points-card .points-heading h3{margin:0;white-space:nowrap}
#minePartners .points-heading>span{font-size:12px;color:#68777c;line-height:1.3;text-align:right}
#minePartners .points-card form{margin:0;align-items:center}
#minePartners .points-card form input{padding:6px 8px;min-height:32px}
#minePartners .points-card form button{min-height:32px;padding:5px 11px}
#minePartners .points-card>p{margin:3px 0 0;line-height:1.35;font-size:11px}
#minePartners .points-card>[role=status]:empty{display:none}

#mineActivation>.mine-management-entry{display:block;width:100%;text-align:left;margin:7px 0;padding:10px 12px;border:1px solid #ead8d2;border-radius:9px;background:#fff8f4;color:#994336;font-size:14px}.agent-apply-info{padding:8px 10px;background:#faf7f4;border-radius:8px;font-size:12px;line-height:1.5}.agent-apply-info[hidden]{display:none}

#mineActivation .agent-apply-info{padding:8px 10px}
#mineActivation .agent-apply-info>p{margin:0 0 6px;font-size:12px;line-height:1.4}
#mineActivation .agent-apply-info form{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;margin:0}
#mineActivation .agent-apply-info textarea{box-sizing:border-box;width:100%;min-width:0;min-height:54px;padding:8px;border:1px solid #dfd8d2;border-radius:7px;resize:none;font:inherit;font-size:12px}
#mineActivation .agent-apply-info form>button{width:100%;margin:0;min-height:34px;padding:6px 12px;border-radius:7px}
#mineActivation .agent-apply-info [role=status]{margin:0;font-size:12px}
#mineActivation .agent-apply-info [role=status]:empty{display:none}

.more-tools{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px!important}.more-tools button{width:100%;padding:6px 2px;white-space:nowrap}.more-tools [data-open-view=agent]{grid-column:3}.more-tools [data-open-view=administrator]{grid-column:4}.role-center{gap:8px}.role-center-heading{padding:12px;background:#fff5ef;border:1px solid #ecdcd3;border-radius:10px}.role-center-heading h2{font-size:19px;margin:0 0 4px}.role-center-heading p{font-size:12px;color:#796b65;margin:0}.role-center form{display:grid;gap:7px;margin:10px 0}.role-center input{min-width:0;max-width:100%;box-sizing:border-box;padding:8px;border:1px solid #d8e0e5;border-radius:6px}.role-center article{padding:10px 0;border-bottom:1px solid #e5e9ee}.role-center h4{margin:12px 0 6px}.role-center section{padding:10px}

.role-center-tabs{position:sticky;top:0;z-index:3;background:var(--surface,#fff);padding:5px 0;margin:0 0 8px}.role-center [hidden]{display:none!important}.role-center-tabs button{font-size:14px;padding:9px 5px}.role-center #roleCenterBody>div>p{font-size:12px;line-height:1.5}

.agent-inventory-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:6px 0 12px}.agent-inventory-summary span{padding:10px 5px;border-radius:8px;background:#fff2eb;text-align:center;font-size:12px}.agent-inventory-summary strong{display:block;font-size:23px;color:#a54838;margin-top:3px}.agent-inventory-summary small{grid-column:1/-1;font-size:11px;color:#7a7470;line-height:1.5}

.agent-inventory-summary{display:flex;flex-wrap:wrap;align-items:center;gap:5px 12px;margin:5px 0 9px}.agent-inventory-summary span{padding:0;border-radius:0;background:none;text-align:left;font-size:13px;white-space:nowrap}.agent-inventory-summary strong{display:inline;font-size:14px;margin:0;color:#a54838}.agent-inventory-summary small{flex-basis:100%;font-size:11px}

.agent-code-user{display:flex;align-items:center;gap:8px;padding:7px 9px;background:#f7f8fa;border-radius:7px;margin:0 0 10px}.agent-code-user img,.agent-user-avatar{width:32px;height:32px;border-radius:50%;object-fit:cover}.agent-user-avatar{display:grid;place-items:center;background:#f6e6df;color:#9c4c3e}.agent-code-user strong{display:block;font-size:13px}.agent-code-user small{display:block;font-size:11px;color:#707b85;margin-top:3px}

.agent-expiry-list{margin:6px 0;padding:0!important}.agent-expiry-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 8px;padding:8px 0;font-size:12px}.agent-expiry-row small{grid-column:1/-1;font-size:11px;color:#77818a}.agent-expiry-row.is-expired,.agent-expiry-row.is-expired small{color:#c52936}.agent-expiry-row.is-expired{background:#fff3f3;border-radius:6px;padding:8px}


.invite-qr-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:5px}#minePartners .invite-qr-heading h3{margin:0}.invite-qr-heading>strong{font-size:13px;color:#b52d39;background:#fff0ec;padding:3px 7px;border-radius:5px;white-space:nowrap}

/* One home administrator entry per layout; no duplicate in My. */
.home-admin-mobile{display:none!important}
@media(max-width:760px){.home-admin-mobile{display:block!important}}
body.mobile-preview .home-admin-mobile{display:block!important}
