:root {
  --ink: #1d2736;
  --muted: #4c5b70;
  --line: #dce5f0;
  --paper: #fff;
  --panel: #fff;
  --brand-blue: #2256a7;
  --brand-blue-dark: #163b76;
  --brand-blue-pale: #eaf2ff;
  --surface: #f6f9fd;
  --active: var(--brand-blue);
  --active-soft: var(--brand-blue-pale);
  --soft: var(--brand-blue-pale);
  --accent: var(--brand-blue);
  --border: var(--line);
  font-family: system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
}
[data-visual] {
  --active: var(--brand-blue);
  --active-soft: var(--brand-blue-pale);
  --student-ink: var(--ink);
  --student-muted: var(--muted);
  --student-green: var(--brand-blue);
  --student-line: var(--line);
  background: #fff;
  color: var(--ink);
  font-family: system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}
body[data-visual="learning"] { background:#fff; color:var(--ink); font-family:inherit; }
[data-visual] :focus-visible { outline: 3px solid var(--brand-blue); outline-offset: 3px; }
[data-visual] a { text-underline-offset: .22em; }
.skip-link { position:absolute; left:1rem; top:-5rem; z-index:100; padding:.65rem; background:#fff; }
.skip-link:focus { top:.75rem; }
[data-visual] .site-header, [data-visual] .topbar {
  background:#fff; border-bottom:1px solid var(--line); border-top:4px solid var(--brand-blue);
  box-shadow:none; backdrop-filter:none;
}
[data-visual] .site-header { min-height:72px; padding-inline:max(26px,calc((100vw - 1330px)/2)); }
[data-visual] .site-mark, [data-visual] .brand-mark {
  width:39px; height:39px; border-radius:5px; background:var(--brand-blue); box-shadow:none;
  color:#fff; font-size:14px; letter-spacing:-.03em;
}
[data-visual] .site-nav, [data-visual] .product-nav {
  display:flex; flex:1; min-width:0; justify-content:space-between;
  gap:8px; padding:0; border:0; border-radius:0; background:transparent;
}
.nav-primary, .nav-secondary { display:flex; align-items:center; }
.nav-secondary { justify-content:flex-end; }
[data-visual] .site-nav a, [data-visual] .product-nav a {
  padding:8px 15px; min-height:42px; display:inline-flex; align-items:center; justify-content:center;
  border-radius:0; box-shadow:none; color:var(--muted); text-decoration:none; white-space:nowrap; font-size:14px;
}
[data-visual] .site-nav [aria-current="page"], [data-visual] .product-nav [aria-current="page"] {
  color:var(--brand-blue); background:var(--brand-blue-pale); font-weight:750; box-shadow:inset 0 -2px var(--brand-blue);
}
[data-visual] .site-nav a:hover, [data-visual] .product-nav a:hover { background:var(--brand-blue-pale); color:var(--brand-blue); }
[data-visual] .nav-primary a[aria-disabled="true"] { cursor:not-allowed; opacity:.68; gap:5px; background:transparent; }
.nav-primary a[aria-disabled="true"] .account-nav-lock {
  width:8px; height:7px; border:1px solid currentColor; border-radius:2px;
  box-shadow:0 -4px 0 -1px #fff,0 -5px 0 -1px currentColor;
}
.visual-primary, .visual-secondary {
  display:inline-flex; min-height:42px; align-items:center; padding:9px 14px; border:1px solid var(--brand-blue);
  border-radius:4px; font-size:14px; font-weight:670; line-height:1.4; text-decoration:none;
}
.visual-primary { background:var(--brand-blue); color:#fff; }
.visual-primary:hover { background:var(--brand-blue-dark); color:#fff; }
.visual-secondary { background:#fff; color:var(--brand-blue); }
.visual-crumb { display:inline-block; margin:0 0 10px; color:var(--brand-blue); font-size:13px; }

.local-home { max-width:960px; margin:0 auto; padding:clamp(30px,6vw,86px) 28px 66px; }
.home-lead { border-left:5px solid var(--brand-blue); padding-left:24px; margin-bottom:37px; }
.home-lead h1 { margin:0; font-weight:800; line-height:1.16; letter-spacing:-.045em; font-size:clamp(2.45rem,6.3vw,4.7rem); }
.home-lead p { margin:15px 0 0; color:var(--muted); font-size:clamp(.98rem,1.5vw,1.12rem); }
.home-entries { margin:0; padding:0; list-style:none; border-top:1px solid var(--line); }
.home-entries li { border-bottom:1px solid var(--line); }
.home-entries a { display:grid; grid-template-columns:3rem minmax(0,1fr) auto; align-items:center; gap:20px; min-height:100px; padding:15px 14px 15px 0; color:var(--ink); }
.home-entries a:hover { background:var(--surface); text-decoration:none; }
.home-entries a:hover strong { color:var(--brand-blue); text-decoration:underline; }
.home-entries strong { display:block; font-size:clamp(1.14rem,2.5vw,1.35rem); font-weight:740; }
.home-entries small { display:block; margin-top:3px; color:var(--muted); font-size:.91rem; }
.entry-arrow { color:var(--brand-blue); font-size:1.5rem; }
.entry-icon { display:grid; position:relative; width:3rem; height:3rem; place-items:center; background:var(--brand-blue-pale); color:var(--brand-blue); border-radius:4px; }
.entry-icon::before { content:""; width:1rem; height:1.28rem; border:1.5px solid currentColor; border-radius:2px; }
.entry-icon::after { content:""; position:absolute; width:.48rem; height:.35rem; border-block:1.5px solid currentColor; }
.course-icon::before { width:1.2rem; height:.9rem; border-radius:0 0 4px 4px; }
.course-icon::after { width:.72rem; height:.72rem; border:1.5px solid; transform:rotate(45deg) skew(-8deg,-8deg) translate(-2px,-2px); background:var(--brand-blue-pale); }
.research-icon::before { width:1.17rem; height:1.17rem; border-radius:50%; }
.research-icon::after { width:.5rem; height:.5rem; border:1.5px solid; border-radius:50%; }
.home-utilities { display:flex; flex-wrap:wrap; gap:12px 26px; padding-top:19px; font-size:14px; }
.home-utilities a { color:var(--brand-blue); text-decoration:underline; }
.preview-account { width:min(560px,calc(100% - 32px)); margin:68px auto; border-top:4px solid var(--brand-blue); padding-block:25px; }
.preview-account h1 { font-size:clamp(25px,5vw,38px); }
.preview-account p { color:var(--muted); }
.preview-account form { display:grid; gap:10px; margin-top:24px; align-items:start; }
.preview-account button { min-height:44px; padding:8px 12px; border:1px solid var(--line); color:var(--brand-blue); background:#fff; text-align:left; }
.preview-account button:hover { border-color:var(--brand-blue); background:var(--brand-blue-pale); }
[data-visual="account"] .account-card { border-color:var(--line); border-radius:6px; box-shadow:none; }
[data-visual="account"] .account-card h1 { color:var(--ink); }
[data-visual="account"] :is(.account-description,.account-privacy,.account-card small) { color:var(--muted); }
[data-visual="account"] .account-card :is(input,select) { border-color:#aabbd0; border-radius:4px; }
[data-visual="account"] .account-card input[aria-invalid="true"] { border-color:#b3382e; }
[data-visual="account"] .account-address select { color:var(--ink); background:var(--surface); }
[data-visual="account"] .account-card button { border-color:var(--brand-blue); border-radius:4px; background:var(--brand-blue); }
[data-visual="account"] .account-card .account-secondary { background:#fff; color:var(--brand-blue); }
[data-visual="account"] :is(.account-status,.account-back) { color:var(--brand-blue); }

[data-visual] .student-main, [data-visual] .materials-main { max-width:1330px; padding:31px 28px 48px; }
[data-visual] .student-page-heading, [data-visual] .page-heading { margin:0 0 19px; }
[data-visual] .student-page-heading h1, [data-visual] .page-heading h1 { font-size:clamp(30px,4vw,46px); line-height:1.2; letter-spacing:-.04em; }
[data-visual] .student-page-heading p { margin-top:9px; }
[data-visual] .student-cloud-entry { padding:15px 18px; margin:0 0 17px; box-shadow:none; border:0; border-left:4px solid var(--brand-blue); border-radius:0; background:var(--surface); }
[data-visual] .student-cloud-entry h2 { font-size:16px; margin:0 0 4px; }
[data-visual] .student-cloud-entry p { color:var(--muted); }
[data-visual] .student-button, [data-visual] .student-cloud-entry-button { border-radius:4px; padding:9px 12px; min-height:42px; box-shadow:none; }
[data-visual] .student-cloud-entry-button:hover { background:var(--brand-blue-dark); box-shadow:none; }
[data-visual] .student-toolbar { border:0; padding:0 0 12px; border-radius:0; border-bottom:1px solid var(--line); margin-bottom:22px; }
[data-visual] .student-search input { border:1px solid #aabbd0; background:#fff; border-radius:3px; padding:10px 13px; }
[data-visual] .student-group-button { border-radius:3px; padding:7px 12px; min-height:37px; }
[data-visual] .student-foundation-grid, [data-visual] .student-course-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 25px; }
@media (min-width:1000px) {
  [data-visual] .student-foundation-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
[data-visual] .student-course-group { border:0; border-top:2px solid var(--brand-blue); border-radius:0; background:#fff; padding:13px 0 0; }
[data-visual] .student-course-group h3 { color:var(--ink); font-size:15px; margin:0 0 7px; }
[data-visual] .student-course-card { border:0; border-bottom:1px solid var(--line); border-radius:0; margin:0; padding:11px 4px; }
[data-visual] .student-course-card:hover { box-shadow:none; transform:none; background:var(--surface); }
[data-visual] .student-course-card > span { margin-top:3px; }
[data-visual].viewing-course .student-page-heading, [data-visual].viewing-course .student-cloud-entry { display:none; }
.course-document { display:grid; grid-template-columns:200px minmax(0,1fr); align-items:start; gap:34px; }
.course-directory { position:sticky; top:98px; border-right:1px solid var(--line); padding:4px 15px 12px 0; }
.course-directory details { width:100%; }
.course-directory summary { cursor:pointer; font-weight:730; padding:6px 10px; }
.course-directory nav { display:grid; margin-top:7px; gap:2px; font-size:14px; }
.course-directory nav a { color:var(--muted); padding:8px 10px; min-height:40px; border-left:3px solid transparent; overflow-wrap:anywhere; }
.course-directory nav a:hover, .course-directory nav [aria-current] { background:var(--brand-blue-pale); color:var(--brand-blue); }
.course-directory nav [aria-current] { border-left-color:var(--brand-blue); font-weight:720; }
.course-body { min-width:0; }
[data-visual] .student-course-heading { gap:12px; margin:0 0 18px; align-items:end; }
.course-context { margin:0 0 4px; font-size:13px; color:var(--muted); }
.student-course-heading h1 { margin:0; font-size:clamp(26px,3.5vw,40px); line-height:1.28; letter-spacing:-.04em; }
[data-visual] .student-course-filters { margin-bottom:18px; padding:0 0 14px; border-bottom:1px solid var(--line); }
[data-visual] .student-course-filters input, [data-visual] .student-course-filters select { min-height:40px; border-radius:3px; }
[data-visual] .student-columns { grid-template-columns:minmax(0,1.55fr) minmax(0,1fr); gap:22px; }
[data-visual] .student-column { border:0; border-top:3px solid var(--brand-blue); border-radius:0; min-width:0; }
[data-visual] .student-column h2 { margin:0; padding:12px 0 9px; font-size:21px; }
[data-visual] .student-column-content { max-height:none; min-height:0; overflow:visible; }
.exam-stages { display:flex; align-items:center; flex-wrap:wrap; gap:5px; margin-bottom:13px; }
.exam-stages button { min-width:50px; }
.year-group { margin:0 0 11px; }
.year-group h3 { margin:0; padding:6px 9px; font-size:14px; background:var(--surface); border-left:2px solid var(--line); }
[data-visual] .student-file {
  display:grid; grid-template-columns:minmax(0,1fr) auto; gap:3px 12px; align-items:center;
  padding:10px 0; border-bottom:1px solid var(--line);
}
[data-visual] .student-file-name { font-weight:630; line-height:1.55; }
[data-visual] .student-teacher { margin:0; color:var(--muted); font-size:12px; }
[data-visual] .student-file-actions { grid-column:2; grid-row:1 / span 2; margin:0; gap:8px; flex-wrap:nowrap; }
[data-visual] .student-file-actions a { display:inline-flex; align-items:center; min-height:36px; white-space:nowrap; }
[data-visual] .student-file-actions .student-download { padding:6px 8px; background:var(--brand-blue-pale); border-radius:3px; }
[data-visual] .student-file-actions span { color:inherit; }
[data-visual] .student-search-results { grid-template-columns:minmax(0,1fr); }
[data-visual] .student-search-results > .student-file { border:0; border-bottom:1px solid var(--line); border-radius:0; }
[data-visual] .student-empty { margin:0; padding:11px 0; font-size:14px; color:var(--muted); }

[data-visual] .tic-toolbar { border:0; padding:0; border-radius:0; border-bottom:1px solid var(--line); }
.tic-group-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px 25px; align-items:start; }
.tic-group-grid.is-filtered { grid-template-columns:minmax(0,420px); }
@media (min-width:1000px) {
  .tic-group-grid:not(.is-filtered) { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media (max-width:520px) {
  .tic-group-grid { grid-template-columns:1fr; }
}
.tic-group-column { min-width:0; border-top:2px solid var(--brand-blue); }
.tic-group-column h2 { margin:0; padding:10px 0 3px; font-size:16px; line-height:1.5; }
.tic-course-code { margin:0 0 10px; color:var(--muted); font-size:13px; }
.tic-class-detail { margin:3px 0 0; color:var(--muted); font-size:12px; }
.tic-group-column > .tic-class-detail { margin:0 0 10px; }
[data-visual] .tic-card { border-radius:0; border:0; border-top:1px solid var(--line); box-shadow:none; padding:10px 0; background:#fff; }
.tic-card h3 { margin:0; font-size:15px; font-weight:700; line-height:1.5; overflow-wrap:anywhere; }
[data-visual] .filter-chip, [data-visual] .action-button { border-radius:3px; }
[data-visual] .filter-chip:not(.active) { background:#fff; border-color:var(--line); color:var(--brand-blue); }
[data-visual] .action-button { background:var(--brand-blue-pale); color:var(--brand-blue); border-color:var(--line); }

.map-topbar-controls {
  display:flex; flex:0 0 100%; flex-wrap:wrap; gap:8px; align-items:center;
  border-top:1px solid var(--line); padding-top:7px;
}
[data-visual="research"] .site-brand { display:flex; gap:10px; align-items:center; text-decoration:none; color:var(--ink); }
[data-visual="research"] .site-brand strong { font-size:18px; }
[data-visual="research"] .workspace { grid-template-columns:244px minmax(0,1fr); }
[data-visual="research"] .workspace.scope-sidebar-collapsed { grid-template-columns:54px minmax(0,1fr); }
[data-visual="research"] .sidebar { background:var(--surface); border-color:var(--line); }
[data-visual="research"] .scope-state-summary { border-radius:4px; background:#fff; }
[data-visual="research"] .scope-state-map strong { color:var(--brand-blue); }
[data-visual="research"] .tree-scope-button { border-radius:3px; }
[data-visual="research"] .tree-scope-row.map-current > .tree-scope-button { color:var(--brand-blue); background:var(--brand-blue-pale); box-shadow:inset 3px 0 var(--brand-blue); }
[data-visual="research"] .tree-scope-row.map-current .tree-label,
[data-visual="research"] .tree-scope-row.map-current .tree-count,
[data-visual="research"] .tree-label { color:inherit; }
[data-visual="research"] .unit-symbol { color:#fff; background:var(--brand-blue); border-radius:3px; }
[data-visual="research"] .loading-screen.done { pointer-events:none; }
[data-visual="research"] .sidebar-note .status-dot { background:var(--brand-blue); box-shadow:none; }
[data-visual="research"] .mobile-map-scope-bar button { background:var(--brand-blue-pale); color:var(--brand-blue); border-color:var(--line); border-radius:4px; }
[data-visual="research"] .hero-head { display:block; padding-top:0; padding-bottom:18px; }
[data-visual="research"] .hero h1, [data-visual="research"] .unit-hero h1, [data-visual="research"] .field-page h1 {
  color:var(--ink); font-family:inherit; font-weight:780; font-size:clamp(28px,3.6vw,46px);
}
.visual-map-board {
  position:relative; border:1px solid var(--line); border-radius:4px; padding:24px;
  background:radial-gradient(circle at center,#d3e0f0 1px,transparent 1px) 0 0/18px 18px, #f8fbff;
}
.map-root-node { width:max-content; max-width:100%; margin:0 auto 19px; padding:8px 22px; border-radius:3px; background:var(--brand-blue); color:#fff; font-weight:720; }
.visual-map-board .unit-grid { gap:14px; }
.visual-map-board .domain-grid { margin-top:0; }
[data-visual="research"] .unit-hero .unit-hero-head { padding-bottom:16px; }
[data-visual="research"] .unit-hero h1, [data-visual="research"] .field-page h1 { padding-left:12px; border-left:4px solid var(--brand-blue); }
[data-visual="research"] .unit-hero .visual-map-board { margin-top:17px; }
[data-visual="research"] .unit-card, [data-visual="research"] .domain-card, [data-visual="research"] .direction-card,
[data-visual="research"] .topic-card, [data-visual="research"] .mentor-card {
  --unit-color:var(--brand-blue) !important; border-radius:4px; border-color:var(--line); color:var(--ink);
  background:#fff; box-shadow:none;
}
[data-visual="research"] .unit-card { min-height:0; padding:15px; }
[data-visual="research"] .unit-card h2 { margin:9px 0 5px; font-size:clamp(17px,2vw,22px); }
[data-visual="research"] .unit-card p { font-size:13px; color:var(--muted); }
[data-visual="research"] .unit-card::after { display:none; }
[data-visual="research"] .unit-card:hover, [data-visual="research"] .domain-card:hover,
[data-visual="research"] .direction-card:hover { border-color:var(--brand-blue); transform:none; box-shadow:none; }
[data-visual="research"] .unit-index, [data-visual="research"] .unit-state { color:var(--brand-blue); }
[data-visual="research"] .unit-state { background:var(--brand-blue-pale); }
[data-visual="research"] .global-search { border-radius:4px; background:#fff; }

[data-visual="survey"] .site-header { flex-wrap:wrap; display:flex; align-items:center; gap:10px 22px; padding-block:10px; }
[data-visual="survey"] .site-brand, [data-visual="survey"] .site-mark { display:inline-grid; place-items:center; }
[data-visual="survey"] .site-brand { display:inline-flex; gap:9px; color:var(--ink); text-decoration:none; }
[data-visual="survey"] .site-mark { font-weight:800; }
.survey-document { width:min(930px,calc(100% - 38px)); margin:35px auto 55px; }
[data-visual="survey"] h1 { font-size:clamp(26px,4.6vw,42px); letter-spacing:-.04em; text-wrap:balance; }
[data-visual="survey"] .minor, [data-visual="survey"] .intro { color:var(--muted); }
[data-visual="survey"] .panel { border:0; border-top:1px solid var(--line); border-radius:0; padding:15px 0 17px; margin:16px 0 22px; }
[data-visual="survey"] fieldset.panel legend { padding:0 11px 0 0; color:var(--ink); font-weight:750; }
[data-visual="survey"] #survey > fieldset { padding:15px; border:1px solid var(--line); border-left:4px solid var(--brand-blue); background:var(--surface); }
[data-visual="survey"] .survey-section legend { font-size:clamp(1.35rem,4vw,1.66rem); }
[data-visual="survey"] input, [data-visual="survey"] textarea, [data-visual="survey"] select { background:#fff; color:var(--ink); border-radius:3px; border-color:#aabbd0; }
[data-visual="survey"] .drop-zone { border-radius:4px; border-color:#839fc4; background:var(--brand-blue-pale); color:var(--brand-blue); min-height:68px; }
[data-visual="survey"] .drop-zone:hover, [data-visual="survey"] .drop-zone.is-dragging { border-color:var(--brand-blue); background:#dbeaff; }
[data-visual="survey"] .drop-zone:focus-within { outline-color:var(--brand-blue); }
[data-visual="survey"] button { border-radius:4px; }
[data-visual="survey"] .guide { background:var(--surface); border-left-color:var(--brand-blue); }

@media (max-width:880px) {
  .course-document { grid-template-columns:minmax(0,1fr); gap:14px; }
  .course-directory { position:static; padding:0 0 7px; border:0; border-bottom:1px solid var(--line); }
  .course-directory .visual-crumb { margin-bottom:2px; }
  [data-visual] .student-course-heading { display:flex; flex-wrap:wrap; }
  [data-visual] .student-course-actions { margin-top:3px; }
  [data-visual] .student-columns { grid-template-columns:minmax(0,1fr); }
  [data-visual] .student-mobile-jumps { display:flex; }
  [data-visual] .student-mobile-jumps > a { border-radius:3px; }
}
@media (max-width:780px) {
  [data-visual] .site-header { padding:7px 15px; min-height:0; gap:3px; flex-wrap:wrap; }
  [data-visual] .site-header .site-nav, [data-visual] .topbar .product-nav { flex:0 0 100%; order:0; }
  [data-visual] .site-nav a, [data-visual] .product-nav a { min-height:38px; padding:4px 7px; font-size:13px; }
  [data-visual] .student-main, [data-visual] .materials-main { padding:22px 16px 36px; }
  [data-visual="research"] .workspace, [data-visual="research"] .workspace.scope-sidebar-collapsed { display:block; }
  [data-visual="research"] .visual-map-board { padding:12px; }
  [data-visual="research"] .visual-map-board .unit-grid { grid-template-columns:minmax(0,1fr); }
  [data-visual] .page-heading { flex-wrap:wrap; }
}
@media (max-width:520px) {
  [data-visual] .site-nav, [data-visual] .product-nav { display:grid; grid-template-columns:minmax(0,1fr); gap:0; }
  .nav-secondary { border-top:1px solid var(--line); }
}
@media (max-width:420px) {
  .local-home { padding-inline:16px; }
  .home-lead { padding-left:13px; }
  .home-entries a { gap:12px; }
  [data-visual] .student-course-grid, [data-visual] .student-foundation-grid { grid-template-columns:1fr; }
  [data-visual] .student-file { grid-template-columns:1fr; }
  [data-visual] .student-file-actions { grid-column:auto; grid-row:auto; }
}
