:root {
  --bg: #edf2f7;
  --panel: #ffffff;
  --ink: #14243a;
  --muted: #66758a;
  --line: #d9e2ec;
  --accent: #1769aa;
  --accent-soft: #e8f3fb;
  --accent-deep: #0f4f82;
  --warning: #9a6700;
  --warning-bg: #fff6d8;
  --danger: #b42318;
  --kindergarten: #d36a2e;
  --primary: #267a50;
  --middle: #2864b7;
  --high: #8636a4;
  font-family: "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
}

button, input, select { font: inherit; }

button {
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  padding: 9px 14px;
  cursor: pointer;
}

button:hover { filter: brightness(.96); }
button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid rgba(36, 88, 166, .25); outline-offset: 2px; }
button.secondary { background: #fff; color: var(--accent); }
button[aria-pressed="true"] { background: var(--accent-deep); color: #fff; box-shadow: 0 0 0 3px rgba(23, 105, 170, .16); }

.topbar {
  display: grid;
  grid-template-columns: minmax(260px, .62fr) auto minmax(440px, 1.1fr);
  gap: 22px;
  align-items: center;
  padding: 14px 22px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(20, 36, 58, .05);
}
body.education-view-open .topbar { grid-template-columns: minmax(300px,1fr) auto; }
body.education-view-open .search-wrap { display: none; }

.brand h1 { margin: 0 0 4px; font-size: 24px; font-weight: 700; letter-spacing: -.5px; }
.brand p { margin: 0; color: var(--muted); font-size: 13px; }
.brand-title-row { display: flex; align-items: center; gap: 10px; }
.brand-title-row span { padding: 4px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-deep); font-size: 12px; font-weight: 600; white-space: nowrap; }
.primary-nav { display: flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: #f3f6f9; }
.primary-nav button { border: 0; border-radius: 8px; padding: 9px 12px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; white-space: nowrap; }
.primary-nav button span { display: block; }
.primary-nav button small { display: none; margin-top: 2px; font-size: 10px; font-weight: 500; color: #62809a; }
.primary-nav #education-view-button { padding: 8px 14px; color: #145d94; background: #e6f3ff; box-shadow: inset 0 0 0 1px #b9d9f2; }
.primary-nav button.active { background: #fff; color: var(--accent-deep); box-shadow: 0 2px 8px rgba(20,36,58,.09); }
.primary-nav #education-view-button.active { color: #fff; background: linear-gradient(135deg,#1769aa,#2b82b8); box-shadow: 0 4px 12px rgba(23,105,170,.24); }
.search-wrap { position: relative; }
.search-wrap > label { display: block; margin-bottom: 5px; font-size: 13px; color: var(--muted); }
.search-row { display: grid; grid-template-columns: minmax(180px, 1fr) auto auto; gap: 8px; }
.search-row input { width: 100%; min-width: 0; border: 1px solid #cbd8e6; border-radius: 10px; padding: 11px 13px; background: #fff; color: var(--ink); box-shadow: inset 0 1px 2px rgba(20,36,58,.03); }
.search-row input:focus { border-color: var(--accent); }

.search-results, .search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 420px;
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(16, 24, 40, .16);
}

.search-suggestions { z-index: 22; max-height: 390px; }
.suggestion-heading { padding: 8px 12px 6px; color: var(--muted); font-size: 12px; font-weight: 600; }
.suggestion-item { width: 100%; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; gap: 9px; align-items: center; border: 0; border-bottom: 1px solid #edf1f5; border-radius: 0; background: #fff; color: var(--ink); padding: 9px 12px; text-align: left; }
.suggestion-item:hover, .suggestion-item.is-active { background: var(--accent-soft); }
.suggestion-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; background: #eef3f8; color: var(--accent-deep); font-size: 13px; font-weight: 700; }
.suggestion-copy { min-width: 0; }
.suggestion-copy strong, .suggestion-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggestion-copy strong { font-size: 13px; }
.suggestion-copy small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.suggestion-type { color: var(--muted); font-size: 11px; white-space: nowrap; }

.search-summary { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.search-result { width: 100%; border: 0; border-bottom: 1px solid #edf0f4; border-radius: 0; background: #fff; color: var(--ink); text-align: left; padding: 10px 12px; }
.search-result:hover { background: var(--accent-soft); }
.search-result strong { display: block; margin-bottom: 3px; }
.search-result span { display: block; color: var(--muted); font-size: 12px; }
.match-rank { color: var(--accent) !important; margin-top: 3px; }

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 450px;
  min-height: calc(100vh - 84px);
}

.map-column { min-width: 0; padding: 12px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 9px 12px; align-items: center; margin-bottom: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.86); box-shadow: 0 4px 16px rgba(20,36,58,.05); }
.toolbar fieldset { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.toolbar legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.filter { border: 1px solid var(--line); border-radius: 999px; background: var(--panel); padding: 7px 10px; font-size: 13px; cursor: pointer; }
.filter input { accent-color: currentColor; vertical-align: -1px; }
.filter.kindergarten { color: var(--kindergarten); }
.filter.primary { color: var(--primary); }
.filter.middle { color: var(--middle); }
.filter.high { color: var(--high); }
.layer-filters { margin-left: auto !important; }
.layer-switch { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); padding: 7px 10px; font-size: 13px; color: var(--ink); cursor: pointer; }
.layer-switch input { accent-color: var(--accent); vertical-align: -1px; }
.sector-opacity-control, .sector-color-control { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); font-size: 12px; }
.sector-opacity-control input { width: 78px; accent-color: var(--accent); }
.sector-opacity-control output { min-width: 34px; color: var(--ink); }
.sector-color-control select { max-width: 96px; border: 0; background: transparent; color: var(--ink); }
.danger-action { border-color: #d6a29e !important; color: var(--danger) !important; }
.map-actions { display: flex; gap: 6px; }
.map-actions button { min-width: 38px; padding: 7px 10px; background: var(--panel); color: var(--accent); }
.location-tools { display: flex; align-items: center; gap: 7px; }
.location-tools button { padding: 7px 11px; }
.location-tools label { color: var(--muted); font-size: 12px; }
.location-tools select { border: 1px solid var(--line); border-radius: 8px; padding: 7px 25px 7px 9px; background: #fff; color: var(--ink); }

.map-shell {
  position: relative;
  min-height: 650px;
  height: calc(100vh - 156px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #dce8ec;
  box-shadow: 0 10px 28px rgba(20,36,58,.1);
}

#map-canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
#map-canvas.dragging { cursor: grabbing; }
#map-canvas.picking { cursor: crosshair; }
.map-legend, .map-message { position: absolute; z-index: 3; background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 3px 12px rgba(16,24,40,.1); }
.map-legend { left: 12px; bottom: 12px; display: flex; flex-wrap: wrap; gap: 8px 10px; max-width: calc(100% - 24px); padding: 8px 10px; font-size: 11px; }
.map-legend span { white-space: nowrap; }
.map-message { top: 10px; left: 10px; max-width: calc(100% - 430px); padding: 7px 10px; font-size: 12px; text-align: center; }
.dot { display: inline-block; width: 9px; height: 9px; margin-right: 4px; border-radius: 50%; }
.dot.kindergarten, .badge.kindergarten { background: var(--kindergarten); }
.dot.primary, .badge.primary { background: var(--primary); }
.dot.middle, .badge.middle { background: var(--middle); }
.dot.high, .badge.high { background: var(--high); }
.legend-school-icon { display: inline-flex; align-items: center; justify-content: center; width: 19px; height: 19px; margin-right: 4px; border-radius: 6px; color: #fff; font-style: normal; font-size: 10px; font-weight: 700; }
.legend-school-icon.kindergarten { background: var(--kindergarten); }
.legend-school-icon.primary { background: var(--primary); }
.legend-school-icon.middle { background: var(--middle); }
.legend-school-icon.high { background: var(--high); }
.legend-school-icon.combined { background: linear-gradient(135deg, var(--primary) 0 50%, var(--middle) 50% 100%); }
.legend-school-icon.k12 { width: 25px; background: linear-gradient(135deg, var(--primary) 0 33%, var(--middle) 33% 66%, var(--high) 66% 100%); font-size: 8px; }
.legend-school-icon.complete { background: linear-gradient(135deg, var(--middle) 0 50%, var(--high) 50% 100%); }
.legend-line { display: inline-block; width: 18px; height: 0; margin: 0 4px 3px 0; border-top: 2px solid #176b87; }
.legend-line.shared { border-top-color: #b56b00; border-top-style: dashed; }
.legend-catchment-point { display: inline-block; width: 10px; height: 10px; margin: 0 4px -1px 0; border: 2px solid #b56b00; border-radius: 50%; background: #fff; }
.legend-area { display: inline-block; width: 14px; height: 9px; margin-right: 4px; border: 2px solid #187e4d; background: rgba(24, 126, 77, .16); }
.legend-sector { display: inline-block; width: 14px; height: 9px; margin-right: 4px; border: 1px solid rgba(39,78,124,.75); background: rgba(79,134,198,.35); }

.overview-dashboard { position: absolute; z-index: 5; top: 10px; right: 10px; width: min(390px, calc(100% - 20px)); margin: 0; border: 1px solid rgba(203,216,230,.95); border-radius: 12px; background: rgba(255,255,255,.94); box-shadow: 0 8px 24px rgba(16,24,40,.14); backdrop-filter: blur(8px); }
.overview-dashboard > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 11px; list-style: none; }
.overview-dashboard > summary::-webkit-details-marker { display: none; }
.overview-dashboard > summary::before { content: '▸'; color: var(--accent); }
.overview-dashboard[open] > summary::before { content: '▾'; }
.overview-dashboard > summary strong { margin-right: auto; font-size: 13px; }
.overview-dashboard > summary span { color: var(--muted); font-size: 11px; text-align: right; }
.dashboard-content { padding: 0 11px 11px; max-height: min(520px, 66vh); overflow: auto; }
.dashboard-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; }
.dashboard-metrics div { padding: 8px 6px; border-radius: 8px; background: #f4f7fa; text-align: center; }
.dashboard-metrics span, .dashboard-metrics strong { display: block; }
.dashboard-metrics span { color: var(--muted); font-size: 10px; }
.dashboard-metrics strong { margin-top: 3px; font-size: 16px; }
.dashboard-stages, .dashboard-quality { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dashboard-stages span, .dashboard-quality span { padding: 4px 7px; border-radius: 999px; background: #f0f3f6; color: var(--muted); font-size: 10px; }
.dashboard-stages .kindergarten { color: var(--kindergarten); background: #fff0e7; }
.dashboard-stages .primary { color: var(--primary); background: #e7f5ed; }
.dashboard-stages .middle { color: var(--middle); background: #eaf1fc; }
.dashboard-stages .high { color: var(--high); background: #f5eafd; }
.dashboard-table-wrap { margin-top: 9px; max-height: 245px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
.dashboard-table-wrap table { width: 100%; border-collapse: collapse; font-size: 11px; }
.dashboard-table-wrap th, .dashboard-table-wrap td { padding: 6px 7px; border-bottom: 1px solid #edf1f5; text-align: right; }
.dashboard-table-wrap th:first-child { text-align: left; }
.dashboard-table-wrap thead th { position: sticky; top: 0; background: #f4f7fa; color: var(--muted); }
.dashboard-note { margin: 8px 1px 0; color: var(--muted); font-size: 10px; line-height: 1.45; }

.detail-panel {
  background: #eef2f6;
  border-left: 1px solid var(--line);
  padding: 14px;
  overflow-y: auto;
  max-height: calc(100vh - 84px);
}

.welcome-card h2, .school-card h2, .point-card h2 { margin: 0 0 10px; font-size: 21px; }
.welcome-card p, .welcome-card li { line-height: 1.65; }
.welcome-card ol { padding-left: 22px; }
.boundary-note, .evidence-note { margin: 14px 0; padding: 12px; border-left: 4px solid var(--warning); background: var(--warning-bg); border-radius: 6px; }
.boundary-note p, .evidence-note p { margin: 5px 0 0; line-height: 1.55; }
.evaluation-trial-note { margin: 14px 0; padding: 13px; border: 1px solid #cbd9ea; border-radius: 10px; background: #f7faff; }
.evaluation-trial-note p { margin: 6px 0 10px; }
.evaluation-trial-shortcuts { display: flex; flex-wrap: wrap; gap: 6px; }
.evaluation-trial-shortcuts button { padding: 6px 9px; border-color: #c3d3e6; background: #fff; color: var(--accent-deep); font-size: 12px; }

.school-hero { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 13px; align-items: start; margin-bottom: 12px; }
.school-hero.no-image { grid-template-columns: 1fr; }
.school-hero img { width: 110px; height: 84px; object-fit: cover; border-radius: 8px; background: #eef2f6; }
.school-hero h2 { margin-bottom: 6px; }
.school-overview { margin: 0 0 12px; padding: 15px; border: 1px solid rgba(217,226,236,.9); border-radius: 14px; background: #fff; box-shadow: 0 6px 18px rgba(20,36,58,.06); }
.school-overview h2 { font-size: 18px; line-height: 1.25; }
.overview-meta { color: var(--ink); font-size: 13px; }
.district-note { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.coordinate-note { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.meta-line { color: var(--muted); font-size: 13px; line-height: 1.5; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 7px 0; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 8px; color: #fff; font-size: 12px; }
.badge.neutral { background: #667085; }
.badge.warning { background: var(--warning); }
.badge.focus { border: 1px solid transparent; font-weight: 700; }
.badge.focus.city-first { border-color: #e0b34a; background: #fff1bf; color: #6d4a00; }
.badge.focus.city-key { border-color: #8fb0db; background: #e7f0fb; color: #174d85; }
.badge.focus.district-key { border-color: #9fcdb3; background: #e7f5ed; color: #18653e; }

.school-verdict { margin: 0 0 12px; padding: 15px 16px; border: 1px solid #cbd9ea; border-radius: 14px; background: linear-gradient(135deg, #f8fbff, #eef5fb); box-shadow: 0 5px 16px rgba(20,36,58,.045); }
.verdict-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px; margin-bottom: 9px; }
.verdict-heading > span { font-size: 16px; font-weight: 700; }
.verdict-heading small { color: var(--muted); font-size: 11px; }
.verdict-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.verdict-badge { display: inline-flex; align-items: center; min-height: 27px; padding: 4px 9px; border: 1px solid transparent; border-radius: 999px; font-size: 12px; font-weight: 600; }
.verdict-badge.quality.city-leading { border-color: #a6c0e1; background: #e7f0fb; color: #174d85; }
.verdict-badge.quality.city-first { border-color: #dfb24b; background: linear-gradient(135deg,#fff4ca,#ffe8a0); color: #684700; }
.verdict-badge.quality.city-key { border-color: #8fb0db; background: #e7f0fb; color: #174d85; }
.verdict-badge.quality.district-key { border-color: #9fcdb3; background: #e7f5ed; color: #18653e; }
.rating-stage-explanation { margin: 10px 0; padding: 11px 12px; border: 1px solid #d8e3ef; border-radius: 9px; background: #fff; }
.rating-stage-explanation > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 7px; }
.rating-stage-explanation > div span { color: var(--muted); font-size: 11px; }
.rating-stage-explanation ul { margin: 8px 0; padding-left: 20px; color: #3e4f63; line-height: 1.55; }
.rating-stage-explanation p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.rating-stage-explanation .rating-risk { padding: 8px 9px; border-radius: 7px; background: #fff6df; color: #795400; }

.official-supplement-group { border: 1px solid #cfdbe8; border-radius: 12px; background: #fff; }
.official-supplement-group > summary { padding: 13px 14px; color: var(--accent-deep); font-weight: 700; }
.official-stage-block + .official-stage-block { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.official-stage-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.official-stage-heading > span { padding: 4px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-deep); font-weight: 700; }
.official-stage-heading small { color: var(--muted); font-size: 11px; text-align: right; }
.official-identity-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.official-identity-grid div { padding: 9px 10px; border-radius: 8px; background: #f5f7fa; }
.official-identity-grid span, .official-identity-grid strong { display: block; }
.official-identity-grid span { color: var(--muted); font-size: 11px; }
.official-identity-grid strong { margin-top: 3px; font-size: 12px; line-height: 1.45; }
.official-subsection { margin-top: 12px; }
.official-subsection > strong { display: block; margin-bottom: 6px; font-size: 13px; }
.official-subsection ul { margin: 0; padding-left: 20px; color: #44566b; font-size: 12px; line-height: 1.6; }
.official-relation-list { display: grid; gap: 7px; }
.official-relation-list > div { padding: 9px 10px; border-left: 3px solid #78a6cf; border-radius: 7px; background: #f6f9fc; }
.official-relation-list > .education-group-link { width: 100%; padding: 9px 10px; border: 0; border-left: 3px solid #1769aa; border-radius: 7px; background: #edf6fd; color: #153b5c; text-align: left; }
.education-group-link { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 2px 10px; align-items: center; border: 0; background: transparent; color: #1769aa; padding: 0; text-align: left; }
.education-group-link span { min-width: 0; font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.education-group-link small { grid-column: 1; color: var(--muted); font-size: 11px; font-weight: 400; }
.education-group-link i { grid-column: 2; grid-row: 1 / 3; color: #1769aa; font-size: 11px; font-style: normal; white-space: nowrap; }
.education-group-link:hover { filter: none; color: #0f568c; text-decoration: underline; }
.official-relation-list b, .official-relation-list span, .official-relation-list small, .official-relation-list em { display: block; }
.official-relation-list b { font-size: 12px; }
.official-relation-list span, .official-relation-list small { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.official-relation-list em { margin-top: 4px; color: #795400; font-size: 11px; font-style: normal; }
.inheritance-boundary { margin-top: 12px; padding: 10px 11px; border-radius: 8px; background: #fff6df; }
.inheritance-boundary strong { color: #785200; font-size: 12px; }
.inheritance-boundary p { margin: 4px 0 0; color: #705927; font-size: 12px; line-height: 1.55; }
.confusion-subsection > div { display: flex; flex-wrap: wrap; gap: 5px; }
.confusion-subsection span { padding: 4px 7px; border-radius: 999px; background: #f1f3f6; color: #526174; font-size: 11px; }
.official-warning-list p { margin: 8px 0 0; padding: 8px 9px; border-left: 3px solid #d89816; border-radius: 6px; background: #fff8e8; color: #73510b; font-size: 12px; line-height: 1.5; }
.official-source-details { margin-top: 10px; }
.official-source-details summary { color: var(--accent); font-size: 12px; }
.official-source-details div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.official-source-details a { padding: 5px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-deep); font-size: 11px; text-decoration: none; }

/* 重庆教育专题 */
.education-guide-view { min-height: calc(100vh - 82px); padding: 28px clamp(18px,4vw,64px) 60px; background: linear-gradient(180deg,#eaf1f7 0,#f5f7fa 420px,#edf2f7 100%); }
.education-module-tabs button { min-width: 210px; padding: 10px 20px !important; }
.education-module-tabs button span, .education-module-tabs button small { display: block; }.education-module-tabs button span { margin-bottom: 2px; color: #6f8293; font-size: 10px; }.education-module-tabs button small { margin-top: 3px; color: #71879b; font-size: 10px; font-weight: 500; }.education-module-tabs button.active span, .education-module-tabs button.active small { color: rgba(255,255,255,.82); }
.module-boundary { display: flex; flex-wrap: wrap; align-content: center; gap: 7px; max-width: 340px; }.module-boundary strong { width: 100%; color: #1a4e72; }.module-boundary span { padding: 5px 8px; border-radius: 999px; background: #e6f0f8; color: #315d7b; font-size: 12px; }
.source-link { align-self: center; color: #1769aa; font-size: 12px; text-decoration: none; }.source-link:hover { text-decoration: underline; }
.official-stat-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }.official-stat-grid article { padding: 18px; border: 1px solid #d8e2ec; border-radius: 14px; background: linear-gradient(145deg,#fff,#f4f8fb); }.official-stat-grid strong,.official-stat-grid span { display: block; }.official-stat-grid strong { color: #164f7a; font-size: 28px; }.official-stat-grid span { margin-top: 4px; color: var(--muted); }
.definition-callout,.no-single-number { margin-top: 14px; padding: 16px 18px; border-left: 4px solid #1769aa; border-radius: 10px; background: #edf5fb; }.definition-callout p,.no-single-number p { margin: 7px 0 0; color: #536579; line-height: 1.7; }.no-single-number > div { display: flex; gap: 9px; margin-top: 12px; }.no-single-number span { padding: 7px 10px; border-radius: 8px; background: #fff; color: #315d7b; font-size: 12px; }
.literacy-concept-grid,.objective-classification { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }.literacy-concept-grid article,.objective-classification article { padding: 16px; border: 1px solid #d8e2ec; border-radius: 14px; background: #fff; }.literacy-concept-grid i { display: block; margin-bottom: 10px; color: #78a0bc; font-size: 12px; font-style: normal; font-weight: 800; }.literacy-concept-grid strong,.objective-classification strong { color: #164f7a; }.literacy-concept-grid p,.objective-classification p { margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.group-map-sections { display: grid; gap: 18px; }.group-map-layer { border: 1px solid #d8e2ec; border-radius: 18px; background: rgba(255,255,255,.8); overflow: hidden; }.group-map-layer > header { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 17px 20px; background: linear-gradient(90deg,#e8f2fa,#f8fafc); }.group-map-layer > header i { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 12px; background: #1769aa; color: #fff; font-style: normal; font-weight: 800; }.group-map-layer > header h3,.group-map-layer > header p { margin: 0; }.group-map-layer > header p { margin-top: 4px; color: var(--muted); font-size: 12px; }.group-map-layer > header > b { color: #1769aa; font-size: 23px; text-align: center; }.group-map-layer > header > b small { display: block; color: var(--muted); font-size: 10px; font-weight: 500; }
.group-map-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding: 14px; }.group-map-card { border: 1px solid #dde5ed; border-radius: 13px; background: #fff; overflow: hidden; }.group-map-card > summary { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 14px; cursor: pointer; }.group-map-card > summary span,.group-map-card > summary h4,.group-map-card > summary p { display: block; margin: 0; }.group-map-card > summary span { color: #728396; font-size: 10px; }.group-map-card > summary h4 { margin-top: 4px; color: #173b57; font-size: 15px; }.group-map-card > summary p { margin-top: 5px; color: #1769aa; font-size: 11px; }.group-map-card > summary > b { color: #1769aa; font-size: 20px; text-align: center; }.group-map-card > summary > b small { display: block; color: var(--muted); font-size: 9px; font-weight: 500; }.group-map-card-body { padding: 0 14px 14px; border-top: 1px solid #edf1f5; }.group-core-line { padding: 12px 0; }.group-core-line strong,.member-heading { color: #315d7b; font-size: 12px; }.group-core-line p { margin: 5px 0 0; color: #253f55; line-height: 1.55; }.group-map-card-body ul { margin: 8px 0; padding: 0; list-style: none; }.group-map-card-body li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed #e3e9ef; }.group-map-card-body li strong { font-size: 12px; }.group-map-card-body li span { color: var(--muted); font-size: 10px; text-align: right; }.more-member-note { color: var(--muted); font-size: 11px; }
.group-overview-metrics { grid-template-columns: repeat(7,minmax(0,1fr)); }
.group-axis-grid, .score-system-grid, .ranking-method-grid, .relationship-definition-grid { display: grid; gap: 14px; }
.group-axis-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.group-axis-grid article, .relationship-definition-grid article, .ranking-method-grid article, .score-system-grid article { border: 1px solid #d8e2ec; border-radius: 14px; background: #fff; padding: 16px; }
.group-axis-grid article > strong { font-size: 17px; color: #123f64; }
.group-axis-grid article > p, .relationship-definition-grid p, .ranking-method-grid p { color: var(--muted); line-height: 1.65; }
.group-axis-grid article > div { display: flex; flex-wrap: wrap; gap: 7px; }
.group-axis-grid article > div span { padding: 6px 9px; border-radius: 999px; background: #edf4fa; color: #315b78; font-size: 12px; }
.relationship-definition-grid { grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 14px; }
.relationship-definition-grid b { color: #164f7a; }
.relationship-definition-grid p { margin: 7px 0 0; font-size: 13px; }
.group-type-chip, .group-tier-chip { display: inline-block; margin: 4px 6px 0 0; padding: 4px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.group-type-chip { background: #e8f3fb; color: #145f93; }
.group-tier-chip { background: #f2edff; color: #6941a5; }
.score-system-grid { grid-template-columns: repeat(3,minmax(0,1fr)); margin: 18px 0; }
.score-system-grid article { border-top-width: 5px; }
.score-system-grid .score-q { border-top-color: #2864b7; }.score-system-grid .score-a { border-top-color: #267a50; }.score-system-grid .score-h { border-top-color: #a3601b; }
.score-system-grid header { display: flex; align-items: center; gap: 12px; }
.score-system-grid header i { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 12px; background: #eef4fa; color: #164f7a; font-size: 22px; font-style: normal; font-weight: 800; }
.score-system-grid header strong, .score-system-grid header span { display: block; }.score-system-grid header span { margin-top: 2px; color: var(--muted); font-size: 11px; }
.score-system-grid article > p, .score-system-grid li { color: #536579; line-height: 1.65; font-size: 13px; }.score-system-grid ul { padding-left: 19px; }
.ranking-method-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }.ranking-method-grid strong { color: #164f7a; }
.brand-factor-table { overflow: hidden; border: 1px solid #d8e2ec; border-radius: 14px; background: #fff; }
.brand-factor-table > div { display: grid; grid-template-columns: 1.1fr .65fr 2.25fr; gap: 12px; align-items: center; padding: 11px 14px; border-bottom: 1px solid #e5ebf1; }.brand-factor-table > div:last-child { border-bottom: 0; }.brand-factor-table > div:first-child { background: #edf4fa; color: #234a68; }.brand-factor-table p { margin: 0; color: var(--muted); font-size: 13px; }.brand-factor-table b { color: #1769aa; }
@media (max-width: 1050px) { .group-overview-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }.score-system-grid, .relationship-definition-grid { grid-template-columns: 1fr 1fr; }.ranking-method-grid { grid-template-columns: 1fr 1fr; }.literacy-concept-grid,.objective-classification,.group-map-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .group-axis-grid, .score-system-grid, .relationship-definition-grid, .ranking-method-grid,.literacy-concept-grid,.objective-classification,.group-map-grid,.official-stat-grid { grid-template-columns: 1fr; }.brand-factor-table > div { grid-template-columns: 1fr; gap: 4px; }.education-module-tabs button { min-width: 100%; }.no-single-number > div { flex-direction: column; } }

/* 2026-08 正式版教育专题 */
.education-module-tabs button span { display: none; }
.education-module-tabs button small { display: block; margin-top: 4px; font-size: 10px; font-weight: 500; }
.overview-year { min-width: 170px; padding: 18px 22px; border: 1px solid rgba(255,255,255,.28); border-radius: 15px; color: #fff; text-align: center; }
.overview-year strong,.overview-year span { display: block; }.overview-year strong { font-size: 34px; }.overview-year span { margin-top: 3px; color: rgba(255,255,255,.78); font-size: 11px; }
.section-lead { margin: 0 0 15px; color: #50677b; line-height: 1.8; }
.formal-footnote { margin: 12px 0 0; color: #738292; font-size: 11px; line-height: 1.65; }
.leading-district-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; }.leading-district-grid article { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border: 1px solid #dce5ed; border-radius: 13px; background: #fff; }.leading-district-grid i { color: #77a1bf; font-size: 11px; font-style: normal; font-weight: 800; }.leading-district-grid strong { color: #164f7a; }.leading-district-grid p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.overview-district-table,.district-rule-table { overflow: hidden; border: 1px solid #d8e2ec; border-radius: 14px; background: #fff; }.overview-district-table > div { display: grid; grid-template-columns: 1.2fr repeat(6,1fr); gap: 8px; align-items: center; padding: 10px 14px; border-bottom: 1px solid #e7edf2; }.overview-district-table > div:last-child { border-bottom: 0; }.overview-district-table .district-table-head { background: #eaf2f8; color: #315b78; font-size: 11px; font-weight: 700; }.overview-district-table > div:not(.district-table-head) span { color: #596b7d; font-size: 12px; text-align: center; }
.group-overview-band { display: grid; grid-template-columns: .7fr .7fr 2fr; gap: 12px; align-items: stretch; }.group-overview-band > div,.group-overview-band > p { margin: 0; padding: 16px; border: 1px solid #d8e2ec; border-radius: 14px; background: #fff; }.group-overview-band strong,.group-overview-band span { display: block; }.group-overview-band strong { color: #1769aa; font-size: 30px; }.group-overview-band span { margin-top: 5px; color: var(--muted); font-size: 11px; }.group-overview-band p { color: #536579; line-height: 1.75; }
.group-map-card { display: grid; grid-template-columns: 1fr auto; gap: 12px; width: 100%; min-height: 150px; padding: 16px; border: 1px solid #dce5ed; border-radius: 14px; background: #fff; color: var(--ink); text-align: left; box-shadow: 0 3px 9px rgba(20,36,58,.04); }.group-map-card:hover { border-color: #8bb4d1; background: #f8fbfd; box-shadow: 0 8px 18px rgba(20,70,105,.1); }.group-map-card span,.group-map-card h4,.group-map-card p { display: block; margin: 0; }.group-map-card > div > span { color: #748597; font-size: 10px; }.group-map-card h4 { margin-top: 7px; color: #123f64; font-size: 16px; line-height: 1.35; }.group-map-card p { margin-top: 6px; color: #1769aa; font-size: 11px; font-weight: 700; }.group-map-card > b { color: #1769aa; font-size: 25px; text-align: center; }.group-map-card > b small { display: block; color: var(--muted); font-size: 10px; font-weight: 500; }.group-map-card footer { grid-column: 1 / -1; padding-top: 10px; border-top: 1px solid #edf1f5; }.group-map-card footer strong,.group-map-card footer span { display: block; }.group-map-card footer strong { color: #42647d; font-size: 10px; }.group-map-card footer span { margin-top: 4px; color: #263f54; font-size: 12px; line-height: 1.45; }
.group-dashboard { display: grid; gap: 16px; }.group-dashboard-back { justify-self: start; border-color: #a9c5da; background: #fff; color: #1769aa; }.group-dashboard-hero { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 26px; border-radius: 18px; background: linear-gradient(135deg,#123f64,#1d7cb7); color: #fff; }.group-dashboard-hero span,.group-dashboard-hero h2,.group-dashboard-hero p { display: block; margin: 0; }.group-dashboard-hero h2 { margin-top: 7px; font-size: 30px; }.group-dashboard-hero p { margin-top: 8px; color: rgba(255,255,255,.78); }.group-dashboard-metrics { display: grid; grid-template-columns: repeat(3,120px); gap: 8px; }.group-dashboard-metrics article { padding: 13px; border: 1px solid rgba(255,255,255,.22); border-radius: 12px; background: rgba(255,255,255,.08); text-align: center; }.group-dashboard-metrics strong,.group-dashboard-metrics span { display: block; }.group-dashboard-metrics strong { font-size: 25px; }.group-dashboard-metrics span { margin-top: 4px; color: rgba(255,255,255,.75); font-size: 9px; }
.group-profile-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }.group-profile-grid article { padding: 14px; border: 1px solid #dde5ed; border-radius: 12px; background: #f9fbfd; }.group-profile-grid strong { color: #315d7b; font-size: 11px; }.group-profile-grid p { margin: 6px 0 0; line-height: 1.6; }
.group-boundary-note { margin-top: 12px; padding: 13px 15px; border: 1px solid #cfe0ec; border-left: 4px solid #2b7fb4; border-radius: 10px; background: #f4f9fc; }.group-boundary-note strong { color: #175f8d; font-size: 12px; }.group-boundary-note p { margin: 5px 0 0; color: #455f72; line-height: 1.7; }
.group-history-list { margin: 0; padding: 0; list-style: none; }.group-history-list li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid #e7edf2; }.group-history-list i { color: #6390af; font-style: normal; font-weight: 800; }.group-history-list p { margin: 0; color: #52687a; line-height: 1.65; }
.group-member-board { display: grid; gap: 13px; }.group-member-board > section { overflow: hidden; border: 1px solid #dce5ed; border-radius: 13px; }.group-member-board > section > header { display: flex; justify-content: space-between; padding: 10px 13px; background: #eaf2f8; color: #315d7b; }.group-member-board > section > div { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; padding: 10px; }.group-member-board article,.group-member-board button { padding: 11px; border: 1px solid #e1e8ee; border-radius: 9px; background: #fff; color: var(--ink); text-align: left; }.group-member-board b,.group-member-board small { display: block; }.group-member-board small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.45; }.dashboard-source-list { display: flex; flex-wrap: wrap; gap: 8px; }.dashboard-source-list a { padding: 8px 10px; border-radius: 8px; background: #eaf2f8; color: #1769aa; font-size: 12px; text-decoration: none; }
.score-summary { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }.score-summary span { padding: 8px 10px; border: 1px solid rgba(255,255,255,.25); border-radius: 10px; color: rgba(255,255,255,.82); }.score-summary b { margin-right: 5px; color: #fff; font-size: 18px; }
.district-rule-table > div { display: grid; grid-template-columns: .55fr 1.7fr 1.7fr; gap: 15px; align-items: start; padding: 13px 15px; border-bottom: 1px solid #e7edf2; }.district-rule-table > div:last-child { border-bottom: 0; }.district-rule-head { background: #eaf2f8; color: #315b78; font-size: 11px; font-weight: 700; }.district-rule-table p { margin: 0; color: #536579; font-size: 12px; line-height: 1.65; }
.evaluation-weight-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }.evaluation-weight-grid article { position: relative; padding: 16px; border: 1px solid #dce5ed; border-radius: 13px; background: #fff; }.evaluation-weight-grid strong { color: #164f7a; }.evaluation-weight-grid b { position: absolute; top: 14px; right: 14px; color: #1769aa; }.evaluation-weight-grid p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.quality-tier-system { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }.quality-tier-system article { padding: 16px; border: 1px solid #dce5ed; border-top: 4px solid #7d8fa0; border-radius: 13px; background: #fff; }.quality-tier-system article.city-first { border-top-color: #9f2f2f; }.quality-tier-system article.city-key { border-top-color: #b06d17; }.quality-tier-system article.district-key { border-top-color: #1769aa; }.quality-tier-system p { color: var(--muted); font-size: 12px; line-height: 1.65; }
.home-score-bar { display: flex; min-height: 105px; overflow: hidden; border-radius: 14px; }.home-score-bar span { flex: 0 0 var(--share); display: flex; flex-direction: column; justify-content: center; padding: 12px; background: #1769aa; color: #fff; font-size: 11px; text-align: center; }.home-score-bar span:nth-child(2) { background:#267a50 }.home-score-bar span:nth-child(3) { background:#436f9a }.home-score-bar span:nth-child(4) { background:#9a6700 }.home-score-bar span:nth-child(5) { background:#6c7a89 }.home-score-bar b { display: block; margin-bottom: 5px; font-size: 20px; }
@media (max-width: 1050px) { .leading-district-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.group-overview-band { grid-template-columns: 1fr 1fr; }.group-overview-band > p { grid-column: 1 / -1; }.group-dashboard-hero { grid-template-columns: 1fr; }.group-member-board > section > div { grid-template-columns: 1fr 1fr; }.quality-tier-system { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .leading-district-grid,.group-profile-grid,.evaluation-weight-grid,.quality-tier-system { grid-template-columns: 1fr; }.overview-district-table { overflow-x: auto; }.overview-district-table > div { min-width: 720px; }.group-dashboard-metrics { grid-template-columns: repeat(3,1fr); }.group-member-board > section > div { grid-template-columns: 1fr; }.district-rule-table { overflow-x: auto; }.district-rule-table > div { min-width: 760px; }.home-score-bar { flex-direction: column; }.home-score-bar span { flex-basis: auto; } }
.education-stage-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 10px; align-items: stretch; }.education-stage-flow article { padding: 15px; border: 1px solid #dbe4ec; border-radius: 13px; background: #fff; }.education-stage-flow article span,.education-stage-flow article strong { display: block; }.education-stage-flow article span { color: #718496; font-size: 10px; }.education-stage-flow article strong { margin-top: 6px; color: #164f7a; font-size: 17px; }.education-stage-flow article p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }.education-stage-flow > i { align-self: center; color: #6d9cba; font-style: normal; font-size: 19px; }
.education-feature-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }.education-feature-grid article { padding: 16px; border: 1px solid #dbe4ec; border-radius: 13px; background: linear-gradient(145deg,#fff,#f7fafc); }.education-feature-grid strong { color: #164f7a; }.education-feature-grid p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.district-rule-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.district-rule-cards > article { overflow: hidden; border: 1px solid #dbe4ec; border-radius: 13px; background: #fff; }.district-rule-cards > article > header { display: flex; justify-content: space-between; gap: 15px; padding: 11px 13px; background: #eef4f8; }.district-rule-cards > article > header strong { color: #164f7a; }.district-rule-cards > article > header p { margin: 0; color: #6b7d8e; font-size: 10px; line-height: 1.45; text-align: right; }.district-rule-cards > article > div { display: grid; grid-template-columns: 1fr 1fr; }.district-rule-cards section { padding: 12px; }.district-rule-cards section + section { border-left: 1px solid #e5ebf0; }.district-rule-cards section b { color: #315d7b; font-size: 11px; }.district-rule-cards section p { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0 0; }.district-rule-cards section span { padding: 5px 7px; border-radius: 999px; background: #e8f2f9; color: #1769aa; font-size: 10px; }
.rating-result-board { display: grid; grid-template-columns: 1fr; gap: 16px; }.rating-stage-board { overflow: hidden; border: 1px solid #dbe4ec; border-radius: 14px; background: #fff; }.rating-stage-board > header { display: flex; justify-content: space-between; align-items: center; padding: 12px 13px; background: #edf4f9; }.rating-stage-board > header strong { color: #536b7d; font-size: 11px; }.rating-stage-board details { border-top: 1px solid #e6ecf1; }.rating-stage-board summary { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; cursor: pointer; }.rating-stage-board summary b { color: #64788a; font-size: 11px; }.rating-school-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; padding: 0 10px 10px; }.rating-school-list button { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 9px; border: 1px solid #e2e9ef; border-radius: 8px; background: #fff; color: var(--ink); text-align: left; }.rating-school-list button:hover { border-color: #8eb5d0; background: #f5f9fc; }.rating-school-list button strong { font-size: 11px; }.rating-school-list button small { color: var(--muted); font-size: 9px; }
.rating-dimension-title { display: block; margin: 10px 0 2px; color: #44647c; font-size: 11px; }
.official-supplement-group.school-module { margin-top: 12px; }.official-supplement-group.school-module > h3 { margin: 0 0 10px; }.official-supplement-group .official-stage-block + .official-stage-block { margin-top: 12px; padding-top: 12px; border-top: 1px solid #e2e9ef; }
@media (max-width: 1050px) { .education-stage-flow { grid-template-columns: 1fr 1fr; }.education-stage-flow > i { display:none; }.education-feature-grid { grid-template-columns: 1fr 1fr; }.rating-school-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .education-stage-flow,.education-feature-grid,.district-rule-cards,.rating-result-board { grid-template-columns: 1fr; }.rating-school-list { grid-template-columns: 1fr; }.district-rule-cards > article > header { display:block; }.district-rule-cards > article > header p { margin-top:5px; text-align:left; } }
.rating-school-list button > span { min-width: 0; }
.rating-school-list button strong,.rating-school-list button small { display: block; }
.rating-school-list button i { color: #1769aa; font-size: 9px; font-style: normal; white-space: nowrap; }
.focus-tier.pending,.verdict-badge.pending,.badge.focus.pending { border-color: #cbd6df; background: #edf1f4; color: #526577; }
.pending-rating-list > summary { background: #f7f9fb; }
.pending-verdict { border-color: #cbd6df; background: linear-gradient(180deg,#f7f9fb,#fff); }
.group-member-board button i { display: block; margin-top: 7px; color: #1769aa; font-size: 9px; font-style: normal; }
.member-card-links { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.group-member-board article .member-card-links button { width: auto; padding: 5px 7px; border-color: #b9d1e2; background: #edf5fa; color: #1769aa; font-size: 9px; }
.education-entry-card { width: 100%; margin-top: 14px; padding: 18px 20px; display: grid; grid-template-columns: 1fr auto; gap: 4px 18px; text-align: left; border: 1px solid #afd2ed; border-radius: 14px; color: #123b63; background: linear-gradient(135deg,#edf7ff,#dcefff); box-shadow: 0 8px 20px rgba(23,105,170,.1); }
.education-entry-card:hover { transform: translateY(-1px); filter: none; box-shadow: 0 12px 26px rgba(23,105,170,.16); }
.education-entry-card span { grid-column: 1; color: #3578aa; font-size: 11px; font-weight: 700; letter-spacing: .6px; }
.education-entry-card strong { grid-column: 1; font-size: 20px; }
.education-entry-card small { grid-column: 1; color: #55738d; font-size: 12px; line-height: 1.55; }
.education-entry-card i { grid-column: 2; grid-row: 1 / 4; align-self: center; padding: 8px 12px; border-radius: 999px; color: #fff; background: #1769aa; font-size: 12px; font-style: normal; white-space: nowrap; }
.guide-load-state { max-width: 760px; margin: 70px auto; padding: 34px; border: 1px solid #c9d8e5; border-radius: 18px; background: #fff; box-shadow: 0 16px 40px rgba(20,54,86,.12); }
.guide-load-state span { color: #1769aa; font-size: 12px; font-weight: 700; }
.guide-load-state h2 { margin: 8px 0 12px; color: #123b63; }
.guide-load-state p { margin: 0; color: var(--muted); line-height: 1.75; }
.education-guide-header { display: none; }
.education-guide-header span { color: #bcd9ef; font-size: 13px; font-weight: 700; letter-spacing: 1px; }
.education-guide-header h1 { margin: 6px 0 7px; font-size: clamp(30px,4vw,48px); letter-spacing: -1.5px; }
.education-guide-header p { margin: 0; color: #dbeaf5; font-size: 15px; }
.guide-version { padding: 7px 10px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; font-size: 12px; white-space: nowrap; }
.education-guide-tabs { position: sticky; z-index: 10; top: 0; display: flex; gap: 5px; max-width: 1440px; margin: 0 auto 18px; padding: 6px; overflow-x: auto; border: 1px solid rgba(210,221,233,.9); border-radius: 13px; background: rgba(255,255,255,.92); box-shadow: 0 8px 24px rgba(20,36,58,.08); backdrop-filter: blur(10px); }
.education-guide-tabs button { border: 0; background: transparent; color: var(--muted); font-weight: 700; white-space: nowrap; }
.education-guide-tabs button.active { background: var(--accent-deep); color: #fff; }
.education-guide-content { max-width: 1440px; margin: 0 auto; }
.guide-hero-card { display: grid; grid-template-columns: minmax(0,1fr) minmax(250px,.42fr); gap: 28px; align-items: center; padding: 30px 32px; border: 1px solid #d5e0ea; border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(20,36,58,.07); }
.guide-kicker, .guide-section-heading span { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .8px; }
.guide-hero-card h2 { max-width: 850px; margin: 7px 0 10px; font-size: clamp(24px,3vw,36px); line-height: 1.2; letter-spacing: -.8px; }
.guide-hero-card p { margin: 0; color: var(--muted); line-height: 1.75; }
.guide-scope-note { padding: 17px 18px; border-left: 4px solid #e0b34a; border-radius: 9px; background: #fff8e5; color: #6d5724; line-height: 1.65; }
.guide-metric-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; margin: 16px 0; }
.guide-metric { min-width: 0; padding: 18px; border: 1px solid #d8e2ec; border-radius: 14px; background: #fff; }
.guide-metric span, .guide-metric strong, .guide-metric small { display: block; }
.guide-metric span { color: var(--muted); font-size: 12px; }
.guide-metric strong { margin: 7px 0 3px; color: var(--accent-deep); font-size: 28px; }
.guide-metric small { color: #8692a2; font-size: 11px; line-height: 1.4; }
.guide-section { margin: 16px 0; padding: 24px 26px; border: 1px solid #d8e2ec; border-radius: 17px; background: #fff; box-shadow: 0 7px 24px rgba(20,36,58,.045); }
.guide-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.guide-section-heading h3 { margin: 4px 0 0; font-size: 23px; }
.guide-note { color: var(--muted); font-size: 13px; line-height: 1.7; }
.text-action { border: 0; background: transparent; color: var(--accent); padding: 5px; }
.principle-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 11px; }
.principle-grid article { position: relative; min-height: 210px; padding: 18px; overflow: hidden; border-radius: 13px; background: #f4f7fa; }
.principle-grid i { position: absolute; right: 10px; top: 0; color: rgba(23,105,170,.1); font-size: 62px; font-style: normal; font-weight: 800; }
.principle-grid h4 { position: relative; margin: 24px 0 9px; font-size: 16px; }
.principle-grid p { position: relative; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.progression-explainer { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.progression-explainer article { padding: 20px; border-top: 4px solid var(--primary); border-radius: 12px; background: #f5f8fb; }
.progression-explainer article:nth-child(2) { border-color: var(--middle); }
.progression-explainer article:nth-child(3) { border-color: var(--high); }
.progression-explainer span, .progression-explainer strong { display: block; }
.progression-explainer span { color: var(--muted); font-size: 12px; }
.progression-explainer strong { margin: 7px 0; font-size: 18px; }
.progression-explainer p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.relationship-ladder { display: grid; gap: 8px; }
.relationship-ladder article { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 12px; align-items: start; padding: 13px 15px; border-radius: 10px; background: #f5f7fa; }
.relationship-ladder i { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; background: var(--accent-deep); color: #fff; font-style: normal; font-weight: 700; }
.relationship-ladder p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.district-card-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.district-card { padding: 20px; border: 1px solid #d6e1eb; border-radius: 16px; background: #fff; box-shadow: 0 7px 22px rgba(20,36,58,.045); }
.district-card header { display: flex; justify-content: space-between; gap: 15px; }
.district-card header span { color: var(--muted); font-size: 11px; }
.district-card header h3 { margin: 3px 0 0; font-size: 23px; }
.district-card header > strong { color: var(--accent-deep); font-size: 30px; text-align: right; }
.district-card header small { display: block; color: var(--muted); font-size: 10px; font-weight: 400; }
.district-labels { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.district-labels span, .focus-tier { padding: 4px 8px; border: 1px solid transparent; border-radius: 999px; font-size: 11px; font-weight: 700; }
.city-first { border-color: #dfb24b !important; background: #fff1bf !important; color: #684700 !important; }
.city-key { border-color: #8fb0db !important; background: #e7f0fb !important; color: #174d85 !important; }
.district-key { border-color: #9fcdb3 !important; background: #e7f5ed !important; color: #18653e !important; }
.district-stat-line, .district-stage-line { display: flex; flex-wrap: wrap; gap: 8px 13px; padding: 8px 0; border-top: 1px solid #edf1f5; color: var(--muted); font-size: 11px; }
.district-stage-line { color: var(--ink); }
.district-school-list { display: grid; gap: 5px; margin-top: 9px; }
.district-school-list button { display: grid; grid-template-columns: 6px minmax(0,1fr); gap: 9px; width: 100%; padding: 8px 9px; border: 0; background: #f6f8fa; color: var(--ink); text-align: left; }
.district-school-list i { width: 5px; height: 100%; min-height: 30px; padding: 0; border-radius: 999px; }
.district-school-list span, .district-school-list small { display: block; }
.district-school-list small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.district-card details { margin-top: 10px; color: var(--accent-deep); font-size: 12px; }
.district-history { color: var(--muted); font-size: 12px; line-height: 1.5; }
.empty-guide-state { color: var(--muted); font-size: 12px; line-height: 1.55; }

.guide-search { display: grid; grid-template-columns: auto minmax(240px,1fr); gap: 12px; align-items: center; max-width: 720px; margin-top: 14px; }
.guide-search span { color: var(--muted); font-size: 12px; }
.guide-search input, .focus-filters input, .focus-filters select { min-width: 0; padding: 10px 11px; border: 1px solid #cbd8e6; border-radius: 9px; background: #fff; color: var(--ink); }
.group-result-count, .focus-result-count { margin: 12px 2px; color: var(--muted); font-size: 12px; }
.group-card-list { display: grid; gap: 10px; }
.group-card { border: 1px solid #d6e1eb; border-radius: 14px; background: #fff; overflow: hidden; }
.group-card > summary { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 18px; align-items: center; padding: 18px 20px; list-style: none; cursor: pointer; }
.group-card > summary::-webkit-details-marker { display: none; }
.group-card > summary span { color: var(--accent); font-size: 11px; }
.group-card > summary h3 { margin: 4px 0; font-size: 19px; }
.group-card > summary p { margin: 0; color: var(--muted); font-size: 12px; }
.group-count { min-width: 78px; text-align: center; }
.group-count strong, .group-count small { display: block; }
.group-count strong { color: var(--accent-deep); font-size: 25px; }
.group-count small { color: var(--muted); font-size: 10px; }
.group-card-body { padding: 0 20px 20px; border-top: 1px solid #edf1f5; }
.group-metric-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 13px 0; }
.group-metric-row span { padding: 6px 8px; border-radius: 7px; background: #f3f6f9; color: var(--muted); font-size: 11px; }
.group-metric-row strong { color: var(--ink); }
.inheritance-rule { padding: 11px 12px; border-radius: 9px; background: #fff6df; }
.inheritance-rule p { margin: 4px 0 0; color: #705927; font-size: 12px; line-height: 1.55; }
.group-subsection { margin-top: 15px; }
.group-subsection h4 { margin: 0 0 8px; }
.guide-list, .evidence-list { margin: 0; padding-left: 20px; color: #536276; font-size: 12px; line-height: 1.65; }
.member-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.member-grid > div, .member-grid > button { min-width: 0; padding: 9px 10px; border: 1px solid #e0e6ed; border-radius: 8px; background: #f8fafb; color: var(--ink); text-align: left; }
.member-grid strong, .member-grid span, .member-grid small { display: block; }
.member-grid strong { overflow-wrap: anywhere; font-size: 12px; }
.member-grid span, .member-grid small { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.source-details { margin-top: 12px; }
.source-details summary { color: var(--accent); font-size: 12px; }
.source-details div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.source-details a { padding: 5px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-deep); font-size: 11px; text-decoration: none; }

.tier-definition-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 16px; }
.focus-mode-switch { display: inline-flex; gap: 5px; margin-top: 14px; padding: 5px; border: 1px solid var(--line); border-radius: 11px; background: #f3f6f9; }
.focus-mode-switch button { border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; }
.focus-mode-switch button span { margin-left: 4px; padding: 2px 5px; border-radius: 999px; background: rgba(102,117,138,.12); font-size: 10px; }
.focus-mode-switch button.active { background: #fff; color: var(--accent-deep); box-shadow: 0 2px 8px rgba(20,36,58,.08); }
.brand-watch-intro { margin-top: 14px; padding: 13px 15px; border-left: 4px solid #d89816; border-radius: 9px; background: #fff7e4; }
.brand-watch-intro p { margin: 4px 0 0; color: #765a20; font-size: 12px; line-height: 1.55; }
.tier-definition-grid article { padding: 15px; border: 1px solid transparent; border-radius: 11px; }
.tier-definition-grid strong { font-size: 15px; }
.tier-definition-grid p { margin: 7px 0; font-size: 12px; line-height: 1.55; }
.tier-definition-grid small { display: block; opacity: .8; line-height: 1.45; }
.focus-filters { display: grid; grid-template-columns: repeat(3,minmax(130px,.4fr)) minmax(220px,1fr); gap: 10px; margin-top: 16px; }
.focus-filters label { min-width: 0; }
.focus-filters label > span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; }
.focus-filters input, .focus-filters select { width: 100%; }
.focus-school-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.focus-school-card { display: flex; flex-direction: column; min-width: 0; padding: 18px; border: 1px solid #d6e1eb; border-radius: 14px; background: #fff; box-shadow: 0 6px 20px rgba(20,36,58,.04); }
.focus-school-card header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.focus-card-badges { display: flex; flex-wrap: wrap; gap: 5px; }
.stage-chip, .confidence-chip { padding: 4px 7px; border-radius: 999px; font-size: 10px; }
.stage-chip.primary { background: #e7f5ed; color: var(--primary); }
.stage-chip.middle { background: #eaf1fc; color: var(--middle); }
.stage-chip.high { background: #f5eafd; color: var(--high); }
.confidence-chip { background: #f1f3f6; color: var(--muted); white-space: nowrap; }
.focus-school-card h3 { margin: 14px 0 3px; font-size: 18px; overflow-wrap: anywhere; }
.focus-location { margin: 0 0 12px; color: var(--muted); font-size: 11px; }
.focus-reason, .brand-relation-summary { padding: 11px; border-radius: 9px; background: #f6f8fa; }
.focus-reason > strong, .brand-relation-summary > strong { font-size: 12px; }
.focus-reason > p { margin: 5px 0 8px; color: #405268; font-size: 12px; line-height: 1.55; }
.brand-relation-summary { margin-top: 8px; }
.brand-relation-summary p { margin: 7px 0 0; font-size: 11px; line-height: 1.45; }
.brand-relation-summary small { display: block; margin-top: 2px; color: var(--muted); }
.focus-risk { margin-top: 8px; padding: 9px 10px; border-radius: 8px; background: #fff6df; color: #705927; font-size: 11px; line-height: 1.5; }
.focus-risk strong { display: block; margin-bottom: 3px; }
.open-school-action { width: 100%; margin-top: auto; padding-top: 10px; }
.brand-watch-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.brand-watch-card { display: flex; flex-direction: column; min-width: 0; padding: 17px; border: 1px solid #dfd8c6; border-radius: 14px; background: #fff; box-shadow: 0 6px 20px rgba(20,36,58,.04); }
.brand-watch-card header { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; }
.brand-watch-card h3 { margin: 13px 0 4px; font-size: 17px; overflow-wrap: anywhere; }
.brand-watch-relations { display: grid; gap: 6px; margin-top: 8px; }
.brand-watch-relations p { margin: 0; padding: 9px 10px; border-left: 3px solid #d8a430; border-radius: 7px; background: #fff9eb; }
.brand-watch-relations strong, .brand-watch-relations span, .brand-watch-relations small { display: block; }
.brand-watch-relations strong { font-size: 11px; }
.brand-watch-relations span { margin-top: 2px; color: #765a20; font-size: 11px; }
.brand-watch-relations small { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.no-label-reason { margin-top: 8px; padding: 10px; border-radius: 8px; background: #f5f7fa; }
.no-label-reason > strong { display: block; margin-bottom: 5px; font-size: 11px; }
.no-label-reason .guide-list { font-size: 11px; }
.no-label-reason > p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.brand-confusion { margin-top: 8px; }
.brand-confusion > strong { display: block; margin-bottom: 5px; font-size: 11px; }
.brand-confusion > div { display: flex; flex-wrap: wrap; gap: 4px; }
.brand-confusion span { padding: 3px 6px; border-radius: 999px; background: #f0f2f5; color: #657386; font-size: 10px; }

.buyer-hero { grid-template-columns: 1fr; }
.buyer-formula { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 14px; align-items: center; margin: 16px 0; padding: 22px 25px; border-radius: 15px; background: linear-gradient(135deg,#123b63,#1769aa); color: #fff; box-shadow: 0 10px 28px rgba(15,79,130,.18); }
.buyer-formula span { color: #bcd9ef; font-size: 13px; }
.buyer-formula strong { font-size: 20px; text-align: center; }
.buyer-formula i { color: #ffe0a0; font-style: normal; font-size: 12px; }
.buyer-check-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.buyer-check-grid article { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 11px; padding: 13px; border-radius: 10px; background: #f5f7fa; }
.buyer-check-grid i { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; background: var(--accent-deep); color: #fff; font-style: normal; font-weight: 700; }
.buyer-check-grid p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.access-level-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }
.access-level-grid article { padding: 16px; border-top: 4px solid var(--primary); border-radius: 10px; background: #f5f7fa; }
.access-level-grid article:nth-child(2) { border-color: var(--middle); }
.access-level-grid article:nth-child(3) { border-color: #d89816; }
.access-level-grid article:nth-child(4) { border-color: #8793a2; }
.access-level-grid p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

@media (max-width: 1280px) {
  .topbar { grid-template-columns: minmax(250px,.7fr) minmax(430px,1.3fr); }
  .primary-nav { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
  .principle-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .guide-metric-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .focus-school-grid, .brand-watch-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 850px) {
  .topbar { grid-template-columns: 1fr; gap: 10px; }
  .primary-nav { grid-column: auto; grid-row: auto; width: 100%; }
  .primary-nav button { flex: 1; }
  .primary-nav button small { display: block; }
  .education-guide-view { padding: 15px 12px 40px; }
  .education-guide-header, .guide-hero-card { grid-template-columns: 1fr; padding: 22px; }
  .education-guide-header { align-items: start; }
  .guide-version { justify-self: start; }
  .guide-metric-grid, .principle-grid, .progression-explainer, .district-card-grid, .tier-definition-grid, .focus-school-grid, .brand-watch-grid, .buyer-check-grid, .access-level-grid { grid-template-columns: 1fr; }
  .focus-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .focus-filters .wide { grid-column: 1 / -1; }
  .member-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .buyer-formula { grid-template-columns: 1fr; text-align: left; }
  .buyer-formula strong { text-align: left; }
}

@media (min-width: 1281px) {
  .primary-nav #education-view-button small { display: block; }
}

@media (max-width: 520px) {
  .education-guide-header h1 { font-size: 32px; }
  .education-guide-tabs { border-radius: 9px; }
  .guide-section { padding: 18px; }
  .guide-metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .focus-filters, .member-grid, .official-identity-grid { grid-template-columns: 1fr; }
  .guide-search { grid-template-columns: 1fr; }
}
.verdict-badge.quality.regional-leading { border-color: #a8cfbc; background: #e6f4ec; color: #1c6544; }
.verdict-badge.quality.regional-quality { border-color: #c9d8c2; background: #f0f6ed; color: #476b3e; }
.verdict-badge.quality.observation { border-color: #d5c99d; background: #fff8de; color: #785d00; }
.verdict-badge.brand-relation { border-color: #d4c5e5; background: #f3edfa; color: #68418c; }
.verdict-badge.admission-route { border-color: #c6d5e6; background: #fff; color: #365c84; }
.verdict-badge.decision-warning { border-color: #ead8a3; background: #fff6d8; color: #825f00; }
.school-verdict > p { margin: 10px 0 0; color: #33465d; line-height: 1.6; }
.verdict-details { margin: 10px 0 0; border: 0; background: transparent; }
.verdict-details > summary { padding: 8px 0 0; color: var(--accent-deep); font-size: 12px; font-weight: 600; }
.verdict-details-body { padding: 7px 0 0; }
.verdict-details-body ul { margin: 0; padding-left: 19px; color: #44566c; line-height: 1.6; }
.verdict-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 9px; padding-top: 8px; border-top: 1px solid #dbe5ef; font-size: 12px; }
.verdict-meta span { color: var(--muted); }
.verdict-caveat { margin-top: 8px; padding: 9px 10px; border-left: 3px solid #8ba3bd; border-radius: 5px; background: rgba(255,255,255,.7); color: #53657a; font-size: 12px; line-height: 1.55; }

.school-module { margin: 12px 0; padding: 17px; border: 1px solid rgba(217,226,236,.9); border-radius: 14px; background: #fff; box-shadow: 0 5px 16px rgba(20,36,58,.045); }
.school-module > h3, .module-heading-row h3 { margin: 0; font-size: 20px; line-height: 1.3; }
.module-heading-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; margin-bottom: 13px; }
.module-heading-row > span { padding-left: 9px; border-left: 1px solid var(--line); color: var(--ink); font-size: 12px; }
.basic-info-list { margin-top: 14px; }
.basic-info-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 7px; padding: 5px 0; line-height: 1.45; }
.basic-info-row > span { color: #9299a5; }
.basic-info-row > strong { font-weight: 500; overflow-wrap: anywhere; }
.basic-info-row.group-info-row { align-items: start; }
.basic-info-row.group-info-row .education-group-link { justify-self: start; }
.education-group-links { display: grid; gap: 8px; width: 100%; }
.education-group-links .education-group-link { width: 100%; padding: 9px 10px; border: 1px solid #d6e5f0; border-radius: 9px; background: #f5f9fc; }
.outcome-metric-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(155px,1fr)); gap: 9px; margin-top: 9px; }
.outcome-metric-grid article { padding: 12px; border: 1px solid #d7e3ed; border-radius: 10px; background: linear-gradient(180deg,#f8fbfe,#f0f6fb); }
.outcome-metric-grid span, .outcome-metric-grid strong, .outcome-metric-grid b, .outcome-metric-grid small { display: block; }
.outcome-metric-grid span { color: var(--muted); font-size: 10px; }
.outcome-metric-grid strong { margin: 4px 0 2px; color: #0f5f96; font-size: 22px; }
.outcome-metric-grid b { color: #203d57; font-size: 12px; }
.outcome-metric-grid small { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.outcome-metric-grid a { display: inline-block; margin-top: 7px; color: #1769aa; font-size: 10px; font-weight: 700; text-decoration: none; }
.outcome-metric-grid a:hover { text-decoration: underline; }
.metric-definition-note { margin: 9px 0 0; color: #6c7886; font-size: 10px; line-height: 1.55; }
.school-address-action { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 9px; align-items: center; width: 100%; margin-top: 12px; padding: 10px 12px; border: 0; background: #eef3ff; color: #315fbd; text-align: left; }
.school-address-action span { font-size: 20px; }
.school-address-action i { font-style: normal; font-size: 20px; }

.admission-methods { display: grid; gap: 8px; }
.admission-method-card { position: relative; overflow: hidden; min-height: 100px; padding: 18px 22px; border-radius: 9px; background: linear-gradient(135deg, #ffe4a2 0%, #ffd987 100%); }
.admission-method-card::after { content: "⌖"; position: absolute; right: 24px; top: 22px; color: #f2a000; font-size: 42px; opacity: .85; }
.admission-method-card span { display: block; margin-bottom: 8px; color: #8f5a00; font-size: 12px; }
.admission-method-card strong { display: block; position: relative; z-index: 1; max-width: 76%; font-size: 24px; letter-spacing: 1px; }
.submodule-title { margin: 20px 0 10px; padding-top: 15px; border-top: 1px solid #edf0f4; font-size: 17px; font-weight: 600; }
.condition-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.condition-card { min-width: 0; padding: 13px; border-radius: 8px; background: #f7f8fb; }
.condition-card strong { display: block; margin-bottom: 7px; font-size: 18px; overflow-wrap: anywhere; }
.condition-card span { display: block; color: #9299a5; font-size: 12px; }
.condition-card small { display: block; margin-top: 6px; color: var(--muted); line-height: 1.45; }
.admission-note { margin-top: 12px; padding: 11px 12px; border-left: 4px solid var(--accent); border-radius: 7px; background: #f3f7ff; }
.admission-note p { margin: 5px 0 0; color: var(--ink); line-height: 1.55; }
.admission-resources { display: grid; gap: 6px; margin-top: 12px; }
.admission-resources .resource-link { margin: 0; padding: 9px 11px; border-radius: 7px; background: #eef3ff; color: var(--accent); text-decoration: none; }

.relation-flow { display: grid; gap: 4px; }
.relation-level { padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: #f8f9fb; }
.relation-level.current { border-color: #9db5df; background: #f0f5ff; }
.relation-level > span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; }
.stage-relation-card { display: block; width: 100%; margin: 5px 0; padding: 9px 10px; border: 1px solid transparent; background: #fff; color: var(--accent); text-align: left; }
.stage-relation-card.explicit { border-left: 4px solid var(--primary); }
.stage-relation-card.shared { border-left: 4px dashed var(--warning); }
.stage-relation-card.self { border: 1px solid var(--line); border-radius: 7px; color: var(--ink); }
.stage-relation-card strong, .stage-relation-card small { display: block; }
.stage-relation-card small { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.relation-kind { display: inline-block !important; margin-bottom: 4px; padding: 2px 6px; border-radius: 999px; background: #e7f5ed; color: #17663e !important; font-size: 10px !important; }
.stage-relation-card.shared .relation-kind { background: var(--warning-bg); color: var(--warning) !important; }
.relation-flow-arrow { height: 17px; color: #176b87; text-align: center; line-height: 17px; }
.relation-empty { padding: 9px; border-radius: 7px; background: #fff; color: var(--muted); font-size: 12px; }

.catchment-year-row { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 5px 10px; margin: 8px 0 12px; padding: 10px; border-radius: 8px; background: #f7f8fb; }
.catchment-year-row span { color: var(--muted); font-size: 12px; }
.catchment-year-row strong { font-size: 12px; font-weight: 500; }
.range-status { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 8px; align-items: start; margin: 8px 0 12px; padding: 10px 11px; border-left: 4px solid var(--muted); border-radius: 7px; background: #f5f7fa; }
.range-status strong { white-space: nowrap; }
.range-status span { color: var(--muted); line-height: 1.5; }
.range-status.evidence_points, .range-status.estimated_polygon { border-left-color: var(--warning); background: var(--warning-bg); }
.range-status.official_polygon { border-left-color: var(--primary); background: #e7f5ed; }
.catchment-list { border-top: 1px solid #edf0f4; }
.catchment-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: center; width: 100%; margin: 0; padding: 12px 2px; border: 0; border-bottom: 1px solid #edf0f4; border-radius: 0; background: #fff; color: var(--ink); text-align: left; }
.catchment-row:hover, .catchment-row.is-active { background: #f3f7ff; }
.catchment-row span, .catchment-row strong, .catchment-row small { display: block; }
.catchment-row strong { margin-bottom: 4px; font-weight: 500; }
.catchment-row small { color: var(--muted); font-size: 12px; }
.catchment-row .shared-place-note { margin-top: 3px; color: var(--accent); }
.catchment-row i { color: var(--accent); font-style: normal; font-size: 12px; white-space: nowrap; }
.catchment-list.review { opacity: .72; }
.full-catchment-details > summary { background: #eaf3ff; color: #2874c7; text-align: center; }

.catchment-map-panel { display: none !important; }
.catchment-panel-heading { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.catchment-panel-heading span { color: var(--muted); font-size: 12px; }
.catchment-panel-list button { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 5px; width: 100%; margin: 0; padding: 7px 5px; border: 0; border-bottom: 1px solid #edf0f4; border-radius: 0; background: transparent; color: var(--ink); text-align: left; font-size: 12px; }
.catchment-panel-list button.is-active { background: #edf4ff; color: var(--accent); }
.catchment-panel-list small { color: var(--muted); font-size: 10px; }
.catchment-panel-foot { margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.4; }

.supplemental-group { background: #fff; }
.performance-group[open] > summary { border-bottom: 1px solid #edf0f4; }
.history-block + .history-block { margin-top: 16px; padding-top: 14px; border-top: 1px solid #edf0f4; }
.history-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 9px; }
.history-grid > div { min-width: 0; padding: 9px; border-radius: 7px; background: #f5f7fa; }
.history-grid span, .history-grid strong { display: block; }
.history-grid span { color: var(--muted); font-size: 11px; }
.history-grid strong { margin-top: 4px; }
.progression-list { display: grid; gap: 8px; }
.progression-card { padding: 11px 12px; border-left: 4px solid var(--high); border-radius: 7px; background: #f8f3fb; }
.progression-card p { margin: 5px 0 0; line-height: 1.55; }

.decision-section { margin: 14px 0 18px; }
.decision-section h3 { margin: 0 0 9px; font-size: 16px; }
.decision-grid { display: grid; gap: 8px; }
.decision-card { padding: 11px 12px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; background: #fff; }
.decision-card > span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; }
.decision-card strong { display: block; font-size: 14px; line-height: 1.45; }
.decision-card small { display: block; margin-top: 4px; color: var(--muted); line-height: 1.45; }
.decision-card:nth-child(2) { border-left-color: var(--primary); }
.decision-card:nth-child(3) { border-left-color: var(--high); }
.evidence-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.evidence-chip { display: inline-flex; padding: 4px 7px; border-radius: 999px; background: #f0f2f5; color: var(--muted); font-size: 11px; }
.evidence-chip.ok { background: #e7f5ed; color: #17663e; }
.evidence-chip.partial { background: #fff1d6; color: #805500; }
.evidence-chip.warning { background: var(--warning-bg); color: var(--warning); }
.boundary-note.compact { margin-top: 12px; padding: 9px 11px; }

.information-group { margin: 10px 0; }
.information-group > summary { font-size: 15px; }

.section { margin: 18px 0; }
.section h3 { margin: 0 0 8px; padding-bottom: 7px; border-bottom: 1px solid var(--line); font-size: 16px; }
.facts { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 7px 10px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.plain-list { margin: 7px 0; padding-left: 20px; }
.plain-list li { margin: 5px 0; line-height: 1.55; }
.source-tag { margin: 6px 0; padding: 8px 10px; background: #f5f7fa; border-radius: 7px; line-height: 1.5; }
.source-tag strong { color: var(--ink); }
.muted { color: var(--muted); }
.danger { color: var(--danger); }

.relation-section { margin-top: 14px; }
.stage-chain { display: grid; grid-template-columns: minmax(0,1fr) 15px minmax(0,1fr) 15px minmax(0,1fr) 15px minmax(0,1fr); align-items: stretch; gap: 3px; }
.stage-column { min-width: 0; border-top: 4px solid var(--line); background: #f7f8fa; border-radius: 7px; overflow: hidden; }
.stage-column.has-data:nth-of-type(1) { border-color: var(--kindergarten); }
.stage-column.has-data:nth-of-type(3) { border-color: var(--primary); }
.stage-column.has-data:nth-of-type(5) { border-color: var(--middle); }
.stage-column.has-data:nth-of-type(7) { border-color: var(--high); }
.stage-heading { display: flex; align-items: center; gap: 4px; padding: 7px 5px 5px; font-size: 12px; font-weight: 600; }
.stage-heading span { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 50%; background: #e5e9ef; font-size: 10px; }
.stage-content { padding: 0 5px 6px; }
.stage-school { display: block; width: 100%; margin: 3px 0; padding: 6px; border: 0; border-radius: 6px; background: #fff; color: var(--accent); text-align: left; overflow-wrap: anywhere; }
.stage-school.self { color: var(--ink); border: 1px solid var(--line); }
.stage-school strong { display: block; font-size: 11px; line-height: 1.35; }
.stage-school small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.stage-empty { padding: 6px 2px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.stage-arrow { display: flex; align-items: center; justify-content: center; color: #176b87; font-weight: 600; pointer-events: none; }
.relationship-rule { margin: 8px 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.relationship-empty { padding: 12px 14px; border: 1px dashed #cbd9e5; border-radius: 10px; background: #f8fafc; }
.relationship-empty strong { color: #315d7b; }
.relationship-empty p { margin: 5px 0 0; color: #6a7b8a; font-size: 11px; line-height: 1.6; }
.relation-link { width: 100%; margin: 4px 0; border: 1px solid var(--line); background: #fff; color: var(--accent); text-align: left; padding: 8px 9px; }
.relation-link small { display: block; color: var(--muted); margin-top: 2px; }

.catchment-map-status { margin: 4px 0 12px; padding: 10px 11px; border-left: 4px solid var(--muted); border-radius: 6px; background: #f5f7fa; }
.catchment-map-status p { margin: 4px 0 0; color: var(--muted); line-height: 1.5; }
.catchment-map-status.evidence_points, .catchment-map-status.estimated_polygon { border-left-color: var(--warning); background: var(--warning-bg); }
.catchment-map-status.official_polygon { border-left-color: var(--primary); background: #e7f5ed; }

.evidence-block { margin: 9px 0; padding: 9px 10px; border-left: 3px solid var(--accent); background: #f6f8fb; white-space: pre-wrap; line-height: 1.55; overflow-wrap: anywhere; }
.match-a { border-left-color: var(--primary); }
.match-b { border-left-color: var(--warning); }
.match-c { border-left-color: var(--muted); }

details { margin: 9px 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
summary { cursor: pointer; padding: 9px 11px; font-weight: 600; }
.details-body { padding: 0 11px 11px; }
.raw-text { max-height: 480px; overflow: auto; padding: 10px; background: #f5f7fa; border-radius: 6px; white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.55 Consolas, "Microsoft YaHei UI", sans-serif; }
.path-list { margin: 0; padding-left: 18px; }
.path-list li { margin: 5px 0; overflow-wrap: anywhere; font-size: 12px; }
.resource-link { display: block; margin: 5px 0; overflow-wrap: anywhere; }

.point-card { padding-bottom: 18px; }
.location-result-head { margin-bottom: 12px; padding: 15px; border: 1px solid #d6e5f1; border-radius: 14px; background: linear-gradient(135deg, #f7fbff 0%, #eef7fc 100%); }
.location-result-head h2 { margin-bottom: 5px; }
.location-result-head p { margin: 4px 0 0; color: var(--muted); line-height: 1.5; }
.location-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; margin-top: 12px; }
.location-stat { padding: 9px; border-radius: 9px; background: rgba(255,255,255,.85); }
.location-stat span, .location-stat strong { display: block; }
.location-stat span { color: var(--muted); font-size: 11px; }
.location-stat strong { margin-top: 3px; font-size: 17px; }
.point-coordinate { color: var(--muted); font-size: 12px; }
.point-group { margin: 16px 0; }
.point-group h3 { margin: 0 0 7px; font-size: 17px; }
.point-group-note { margin: -2px 0 8px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.point-school { width: 100%; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); text-align: left; margin: 6px 0; padding: 11px 12px; }
.point-school:hover { border-color: #a9c5db; background: #f8fbfd; }
.point-school.strong { border: 1px solid #83b8d7; border-left: 5px solid var(--accent); background: #f2f9fd; box-shadow: 0 4px 12px rgba(23,105,170,.08); }
.point-school strong { color: var(--ink); font-size: 14px; }
.point-school span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.point-school .distance { white-space: nowrap; align-self: center; color: var(--accent); }
.nearby-stage-group { margin-top: 12px; }
.nearby-stage-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.nearby-stage-heading strong { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.nearby-stage-heading span { color: var(--muted); font-size: 11px; }
.mini-stage-icon { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 7px; color: #fff; font-size: 11px; }
.mini-stage-icon.kindergarten { background: var(--kindergarten); }
.mini-stage-icon.primary { background: var(--primary); }
.mini-stage-icon.middle { background: var(--middle); }
.mini-stage-icon.high { background: var(--high); }
.empty-state { padding: 10px; color: var(--muted); background: #f5f7fa; border-radius: 7px; line-height: 1.55; }

.group-trust-chip { display: inline-flex; align-items: center; width: fit-content; margin: 0; padding: 4px 8px; border-radius: 999px; font-size: 11px; font-style: normal; font-weight: 700; line-height: 1; }
.group-trust-chip.formal { color: #0f6b4d; background: #e5f6ef; border: 1px solid #b9e7d6; }
.group-trust-chip.limited { color: #7a5810; background: #fff6d8; border: 1px solid #efdaa0; }
.group-trust-panel { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 14px 0 20px; }
.group-trust-panel > div { min-width: 0; padding: 13px 14px; border: 1px solid #dbe7ef; border-radius: 12px; background: #f8fbfd; }
.group-trust-panel span, .group-trust-panel strong { display: block; }
.group-trust-panel span { margin-bottom: 6px; color: var(--muted); font-size: 11px; }
.group-trust-panel strong { color: var(--ink); font-size: 13px; line-height: 1.45; }

@media (max-width: 980px) {
  .topbar { grid-template-columns: 1fr; align-items: stretch; gap: 12px; }
  .workspace { grid-template-columns: 1fr; }
  .map-shell { height: 62vh; min-height: 460px; }
  .detail-panel { border-left: 0; border-top: 1px solid var(--line); max-height: none; }
}

@media (max-width: 620px) {
  .topbar { padding: 12px; }
  .search-row { grid-template-columns: 1fr 1fr; }
  .search-row input { grid-column: 1 / -1; }
  .map-column { padding: 9px; }
  .toolbar { align-items: flex-start; }
  .layer-filters { width: 100%; margin-left: 0 !important; }
  .sector-opacity-control, .sector-color-control { flex: 1 1 auto; }
  .location-tools { width: 100%; flex-wrap: wrap; }
  .map-actions { flex-shrink: 0; }
  .map-shell { height: 56vh; min-height: 400px; }
  .map-message { max-width: calc(100% - 24px); }
  .overview-dashboard { top: 48px; }
  .dashboard-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .detail-panel { padding: 14px; }
  .school-module { padding: 14px; }
  .basic-info-row { grid-template-columns: 96px minmax(0,1fr); }
  .condition-grid { grid-template-columns: 1fr 1fr; }
  .history-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .location-stats { grid-template-columns: 1fr; }
  .group-trust-panel { grid-template-columns: 1fr 1fr; }
  .stage-chain { grid-template-columns: 1fr; }
  .stage-arrow { min-height: 18px; transform: rotate(90deg); }
  .stage-column.has-data { border-color: var(--accent); }
}
