    :root {
      color-scheme: light dark;
      --page: #f9f9f7;
      --surface: #fcfcfb;
      --text: #0b0b0b;
      --text-secondary: #52514e;
      --text-muted: #898781;
      --hairline: #e1e0d9;
      --border: rgba(11, 11, 11, 0.1);
      --accent: #2a78d6;
      --accent-soft: rgba(42, 120, 214, 0.1);
      --violet: #4a3aa7;
      --violet-soft: rgba(74, 58, 167, 0.1);
      --teal: #1a8f6b;
      --teal-soft: rgba(26, 143, 107, 0.1);
      --gold: #a15207;
      --gold-soft: rgba(161, 82, 7, 0.1);
      --rose: #a13a4a;
      --rose-soft: rgba(161, 58, 74, 0.1);
      --code-bg: rgba(42, 120, 214, 0.08);
      --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.06);
      --map-none: #f0efec;
      --map-none-line: #dcd9d1;
      --map-1: #b7d3f6;
      --map-2: #6da7ec;
      --map-3: #2a78d6;
      --map-4: #104281;
      --dot: #eda100;
      --status-good: #006300;
      --status-bad: #d03b3b;
      --json-key: #1c5cab;
      --json-str: #006300;
      --json-num: #a15207;
      --json-lit: #4a3aa7;
    }
    @media (prefers-color-scheme: dark) {
      :root {
        --page: #0d0d0d;
        --surface: #1a1a19;
        --text: #ffffff;
        --text-secondary: #c3c2b7;
        --text-muted: #898781;
        --hairline: #2c2c2a;
        --border: rgba(255, 255, 255, 0.1);
        --accent: #3987e5;
        --accent-soft: rgba(57, 135, 229, 0.16);
        --violet: #9085e9;
        --violet-soft: rgba(144, 133, 233, 0.16);
        --teal: #2fbf94;
        --teal-soft: rgba(47, 191, 148, 0.16);
        --gold: #d98c2b;
        --gold-soft: rgba(217, 140, 43, 0.16);
        --rose: #e2637a;
        --rose-soft: rgba(226, 99, 122, 0.16);
        --code-bg: rgba(57, 135, 229, 0.14);
        --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.4);
        --map-none: #2c2c2a;
        --map-none-line: #3a3a37;
        --map-1: #1c5cab;
        --map-2: #3987e5;
        --map-3: #6da7ec;
        --map-4: #b7d3f6;
        --dot: #eda100;
        --status-good: #0ca30c;
        --status-bad: #e66767;
        --json-key: #6ea8fe;
        --json-str: #3fb14c;
        --json-num: #eda100;
        --json-lit: #9085e9;
      }
    }
    * { box-sizing: border-box; }
    body {
      font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
      background: var(--page);
      color: var(--text);
      margin: 0;
      padding: 0 1.5rem 4rem;
      line-height: 1.5;
    }
    main { max-width: 1100px; margin: 0 auto; }
    header { padding: 3rem 0 1.5rem; }
    h1 { margin: 0 0 0.4rem; font-size: 2.25rem; letter-spacing: -0.02em; }
    .subtitle { color: var(--text-secondary); margin: 0 0 0.5rem; font-size: 1.05rem; max-width: 62ch; }
    .contribute-note { color: var(--text-secondary); margin: 0 0 1.5rem; font-size: 0.92rem; }
    .contribute-note a { color: var(--accent); }
    .links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; }
    .links a {
      color: var(--text);
      text-decoration: none;
      background: var(--surface);
      border: 1px solid var(--border);
      padding: 0.45rem 0.9rem;
      border-radius: 999px;
      font-size: 0.9rem;
      box-shadow: var(--shadow);
    }
    .links a:hover { border-color: var(--accent); color: var(--accent); }
    .links a.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
    .links a.icon-link { display: inline-flex; align-items: center; gap: 0.4rem; }
    .stats {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
      gap: 0.75rem;
      margin: 1.75rem 0 0;
    }
    .stat {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 1rem 1.1rem;
      box-shadow: var(--shadow);
    }
    .stat .label { color: var(--text-secondary); font-size: 0.85rem; display: block; }
    .stat .value { font-size: 1.7rem; font-weight: 600; display: block; font-variant-numeric: tabular-nums; }
    .stat-breakdown {
      grid-column: 1 / -1;
      background: var(--accent-soft);
      border-color: var(--accent);
      padding: 1.6rem 1.9rem 1.75rem;
    }
    .stat-breakdown > h2 {
      margin: 0;
      color: var(--text);
      font-size: 1.15rem;
      font-weight: 600;
    }
    .stat-breakdown .breakdown-list {
      list-style: none;
      margin: 1rem 0 0;
      padding: 0;
      display: flex;
      flex-wrap: wrap;
      row-gap: 1.5rem;
      column-gap: 2.5rem;
    }
    .stat-breakdown .breakdown-list li {
      display: flex;
      flex-direction: column;
      gap: 0.3rem;
    }
    .stat-breakdown .breakdown-list li.divider {
      padding-left: 2.5rem;
      border-left: 1px solid var(--border);
    }
    .stat-breakdown .breakdown-label {
      color: var(--text-secondary);
      font-size: 0.88rem;
      font-weight: 500;
    }
    .stat-breakdown .breakdown-value {
      color: var(--accent);
      font-weight: 800;
      font-size: 2.35rem;
      line-height: 1.05;
      font-variant-numeric: tabular-nums;
    }
    @media (max-width: 640px) {
      .stat-breakdown .breakdown-value { font-size: 1.9rem; }
      .stat-breakdown .breakdown-list { column-gap: 1.75rem; }
      .stat-breakdown .breakdown-list li.divider { padding-left: 1.75rem; }
    }
    .panel {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 1.25rem 1.25rem;
      box-shadow: var(--shadow);
      margin-top: 1.25rem;
    }
    .panel h2 { margin: 0 0 0.15rem; font-size: 1.15rem; }
    .panel .panel-sub { margin: 0 0 1rem; color: var(--text-secondary); font-size: 0.88rem; }
    .search-hero .search-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
    #uni-search {
      font: inherit;
      font-size: 1rem;
      flex: 1 1 240px;
      min-width: 0;
      color: var(--text);
      background: var(--page);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 0.75rem 1.1rem;
      outline: none;
    }
    #uni-search:focus { border-color: var(--accent); }
    #uni-search::placeholder { color: var(--text-muted); }
    #state-select {
      font: inherit;
      font-size: 0.95rem;
      flex: 0 1 200px;
      min-width: 0;
      color: var(--text);
      background: var(--page);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 0.75rem 0.9rem;
      outline: none;
      cursor: pointer;
    }
    #state-select:focus { border-color: var(--accent); }
    .uni-filter {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 0.4rem;
      margin: 0.85rem 0 0;
    }
    .uni-filter button {
      font: inherit;
      font-size: 0.8rem;
      font-weight: 600;
      color: var(--text-secondary);
      background: none;
      border: 1px solid var(--border);
      border-radius: 999px;
      padding: 0.3rem 0.8rem;
      cursor: pointer;
    }
    .uni-filter button:hover { border-color: var(--accent); color: var(--accent); }
    .uni-filter button.active { background: var(--accent); border-color: var(--accent); color: #fff; }
    .uni-filter button.active[data-cat="IPTS"] { background: var(--violet); border-color: var(--violet); }
    .uni-filter button.active[data-cat="Polytechnic"] { background: var(--teal); border-color: var(--teal); }
    .uni-filter button.active[data-cat="Community College"] { background: var(--gold); border-color: var(--gold); }
    .uni-filter button.active[data-cat="MARA College"] { background: var(--rose); border-color: var(--rose); }
    .search-meta {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 0.6rem;
      margin: 0.9rem 0 0;
      font-size: 0.82rem;
      color: var(--text-muted);
    }
    #state-filter-pill {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      background: var(--accent-soft);
      color: var(--accent);
      font-weight: 600;
      border-radius: 999px;
      padding: 0.2rem 0.3rem 0.2rem 0.7rem;
    }
    #state-filter-pill[hidden] {
      display: none;
    }
    #state-filter-clear {
      font: inherit;
      width: 18px;
      height: 18px;
      line-height: 1;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      border: none;
      background: rgba(0, 0, 0, 0.12);
      color: inherit;
      cursor: pointer;
    }
    .uni-list {
      display: flex;
      flex-direction: column;
      gap: 0.4rem;
    }
    .uni-item {
      font: inherit;
      display: flex;
      align-items: center;
      gap: 0.75rem;
      width: 100%;
      min-width: 0;
      text-align: left;
      background: var(--page);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 0.55rem 0.75rem;
      cursor: pointer;
      color: var(--text);
      transition: border-color 120ms ease, background 120ms ease;
    }
    .uni-item:hover, .uni-item:focus-visible { border-color: var(--accent); }
    .uni-item.active { border-color: var(--accent); background: var(--accent-soft); }
    .uni-logo {
      position: relative;
      width: 40px;
      height: 40px;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--surface);
      border: 1px solid var(--hairline);
      border-radius: 8px;
      overflow: hidden;
    }
    .uni-logo img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
    .uni-monogram {
      font-size: 0.56rem;
      font-weight: 700;
      letter-spacing: 0.02em;
      color: var(--accent);
      text-align: center;
      padding: 0 2px;
    }
    .uni-logo img ~ .uni-monogram { display: none; }
    .uni-item-info { min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; flex: 1; }
    .uni-item-short {
      font-weight: 600;
      font-size: 0.9rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      min-width: 0;
    }
    .uni-item-title {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .uni-item-name {
      min-width: 0;
      font-size: 0.76rem;
      color: var(--text-muted);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .uni-cat {
      font-size: 0.62rem;
      font-weight: 700;
      letter-spacing: 0.04em;
      border-radius: 5px;
      padding: 0.08rem 0.35rem;
      flex-shrink: 0;
    }
    .uni-cat.ipta { color: var(--accent); background: var(--accent-soft); }
    .uni-cat.ipts { color: var(--violet); background: var(--violet-soft); }
    .uni-cat.polytechnic { color: var(--teal); background: var(--teal-soft); }
    .uni-cat.community-college { color: var(--gold); background: var(--gold-soft); }
    .uni-cat.mara-college { color: var(--rose); background: var(--rose-soft); }
    .pagination {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 1rem;
      margin-top: 1.1rem;
    }
    .pagination button {
      font: inherit;
      font-size: 0.82rem;
      font-weight: 600;
      color: var(--text);
      background: var(--page);
      border: 1px solid var(--border);
      border-radius: 999px;
      padding: 0.4rem 1rem;
      cursor: pointer;
    }
    .pagination button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
    .pagination button:disabled { opacity: 0.4; cursor: not-allowed; }
    #page-indicator { font-size: 0.82rem; color: var(--text-muted); white-space: nowrap; }
    .two-col {
      display: grid;
      grid-template-columns: minmax(260px, 1.1fr) 1fr;
      gap: 1rem;
    }
    @media (max-width: 800px) {
      .two-col { grid-template-columns: 1fr; }
    }
    .two-col > .panel { margin-top: 0; min-height: 300px; }
    .detail-drawer {
      display: grid;
      width: 100%;
      grid-template-rows: 0fr;
      transition: grid-template-rows 280ms ease;
    }
    .detail-drawer.open { grid-template-rows: 1fr; }
    .detail-drawer-inner { overflow: hidden; min-height: 0; }
    .detail-drawer .two-col { margin: 0.5rem 0 0.15rem; }
    @media (prefers-reduced-motion: reduce) {
      .detail-drawer { transition: none; }
    }
    .map-wrap { position: relative; }
    svg.map { display: block; width: 100%; height: auto; touch-action: pan-y; }
    svg.map.zoomed { touch-action: none; cursor: grab; }
    svg.map.dragging, svg.map.dragging .state { cursor: grabbing; }
    .state {
      cursor: pointer;
      stroke: var(--surface);
      stroke-width: 1.5;
      stroke-linejoin: round;
      vector-effect: non-scaling-stroke;
      transition: filter 120ms ease, opacity 160ms ease;
      outline: none;
    }
    .state[data-bin="0"] { fill: url(#nodata-hatch); }
    .state[data-bin="1"] { fill: var(--map-1); }
    .state[data-bin="2"] { fill: var(--map-2); }
    .state[data-bin="3"] { fill: var(--map-3); }
    .state[data-bin="4"] { fill: var(--map-4); }
    #nodata-hatch rect { fill: var(--map-none); }
    #nodata-hatch line { stroke: var(--map-none-line); stroke-width: 1.4; }
    .state:hover, .state:focus-visible { filter: brightness(1.12) saturate(1.15); }
    svg.map:not(.has-pin) #states:hover .state:not(:hover) { opacity: 0.75; }
    svg.map.has-pin .state:not(.pinned):not(:hover) { opacity: 0.55; }
    .state.pinned { stroke: var(--dot); stroke-width: 2.5; }
    .state.dim { opacity: 0.22 !important; }
    .campus-dot {
      fill: var(--dot);
      stroke: var(--surface);
      stroke-width: 1.5;
      vector-effect: non-scaling-stroke;
      pointer-events: none;
      opacity: 0;
      transition: opacity 160ms ease;
    }
    .campus-dot.lit { opacity: 1; }
    svg.map.uni-pin .campus-dot.lit {
      transform-box: fill-box;
      transform-origin: center;
      animation: dot-pulse 1.5s ease-in-out infinite;
    }
    @keyframes dot-pulse {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.45); }
    }
    @media (prefers-reduced-motion: reduce) {
      svg.map.uni-pin .campus-dot.lit { animation: none; }
    }
    .map-controls {
      position: absolute;
      top: 0.5rem;
      right: 0.5rem;
      display: flex;
      flex-direction: column;
      gap: 0.35rem;
    }
    .map-controls button {
      width: 32px;
      height: 32px;
      font-size: 1rem;
      font-weight: 600;
      line-height: 1;
      color: var(--text);
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 8px;
      box-shadow: var(--shadow);
      cursor: pointer;
    }
    .map-controls button:hover { border-color: var(--accent); color: var(--accent); }
    #zoom-hint {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(0, 0, 0, 0.35);
      color: #fff;
      font-size: 0.95rem;
      font-weight: 600;
      border-radius: 10px;
      opacity: 0;
      pointer-events: none;
      transition: opacity 200ms ease;
    }
    #zoom-hint.show { opacity: 1; }
    .legend {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 0.35rem 0.85rem;
      margin: 0.6rem 0 0.2rem;
      font-size: 0.8rem;
      color: var(--text-secondary);
    }
    .legend .key {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      font: inherit;
      color: inherit;
      background: none;
      border: none;
      padding: 0.15rem 0.3rem;
      border-radius: 6px;
      cursor: default;
    }
    .legend button.key { cursor: pointer; }
    .legend button.key:hover, .legend button.key:focus-visible { background: var(--accent-soft); color: var(--text); }
    .legend .swatch { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
    .legend .swatch.hatch {
      background: repeating-linear-gradient(45deg, var(--map-none) 0 3px, var(--map-none-line) 3px 4.4px);
    }
    .legend .dot-key {
      width: 9px; height: 9px; border-radius: 50%;
      background: var(--dot); border: 1.5px solid var(--surface);
      box-shadow: 0 0 0 1px var(--hairline);
      display: inline-block;
    }
    .map-note { margin: 0.35rem 0 0; font-size: 0.72rem; color: var(--text-muted); }
    #map-tooltip {
      position: fixed;
      z-index: 10;
      pointer-events: none;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 0.45rem 0.65rem;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      font-size: 0.82rem;
      display: none;
      max-width: 260px;
    }
    #map-tooltip .tt-head { display: flex; align-items: center; gap: 0.4rem; }
    #map-tooltip .tt-swatch { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
    #map-tooltip .tt-name { font-weight: 600; }
    #map-tooltip .tt-counts { color: var(--text-secondary); display: block; }
    #map-tooltip .tt-hint { color: var(--text-muted); font-size: 0.72rem; display: block; margin-top: 0.1rem; }
    #detail-title { margin: 0; font-size: 1.1rem; }
    #detail-meta { margin: 0.2rem 0 0.9rem; color: var(--text-secondary); font-size: 0.85rem; }
    .campus-list { list-style: none; margin: 0; padding: 0; font-size: 0.85rem; }
    .campus-list li { border-bottom: 1px solid var(--hairline); }
    .campus-list li:last-child { border-bottom: none; }
    .campus-list button {
      font: inherit;
      display: flex;
      flex-direction: column;
      gap: 0.15rem;
      width: 100%;
      padding: 0.4rem 0.15rem;
      background: none;
      border: none;
      cursor: pointer;
      color: var(--text);
      text-align: left;
    }
    .campus-list button:hover { color: var(--accent); }
    .campus-list .city { color: var(--text-muted); }
    .empty-note { color: var(--text-muted); font-size: 0.85rem; font-style: italic; }
    .tester-bar { display: flex; gap: 0.5rem; align-items: center; }
    .tester-bar code {
      flex: 1;
      background: var(--code-bg);
      color: var(--accent);
      padding: 0.45rem 0.6rem;
      border-radius: 8px;
      font-size: 0.82rem;
      overflow-x: auto;
      white-space: nowrap;
    }
    .tester-bar button {
      font: inherit;
      font-size: 0.85rem;
      font-weight: 600;
      background: var(--accent);
      color: #fff;
      border: none;
      border-radius: 8px;
      padding: 0.45rem 0.95rem;
      cursor: pointer;
    }
    .tester-bar button:hover { filter: brightness(1.1); }
    .quick-links { display: flex; gap: 0.4rem; margin-top: 0.6rem; flex-wrap: wrap; }
    .quick-links button {
      font: inherit;
      font-size: 0.75rem;
      background: none;
      border: 1px solid var(--border);
      border-radius: 999px;
      padding: 0.2rem 0.6rem;
      cursor: pointer;
      color: var(--text-secondary);
    }
    .quick-links button:hover { border-color: var(--accent); color: var(--accent); }
    .snippet-box {
      margin-top: 0.6rem;
      border: 1px solid var(--hairline);
      border-radius: 10px;
      overflow: hidden;
      background: var(--page);
    }
    .snippet-tabs {
      display: flex;
      align-items: center;
      gap: 0.15rem;
      padding: 0.3rem 0.4rem;
      border-bottom: 1px solid var(--hairline);
    }
    .snippet-tabs button {
      font: inherit;
      font-size: 0.72rem;
      font-weight: 600;
      color: var(--text-secondary);
      background: none;
      border: none;
      border-radius: 6px;
      padding: 0.2rem 0.55rem;
      cursor: pointer;
    }
    .snippet-tabs button:hover { color: var(--accent); }
    .snippet-tabs button.active { background: var(--accent-soft); color: var(--accent); }
    #copy-btn { margin-left: auto; border: 1px solid var(--border); }
    #copy-btn.copied { color: var(--status-good); border-color: var(--status-good); }
    #snippet {
      margin: 0;
      padding: 0.55rem 0.7rem;
      font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
      font-size: 0.74rem;
      line-height: 1.5;
      overflow-x: auto;
      white-space: pre;
    }
    .response-prompt { margin: 0.7rem 0 0; font-size: 0.82rem; color: var(--text-muted); font-style: italic; }
    .response-panel {
      display: grid;
      grid-template-rows: 0fr;
      opacity: 0;
      transition: grid-template-rows 260ms ease, opacity 220ms ease;
    }
    .response-panel.open { grid-template-rows: 1fr; opacity: 1; }
    .response-panel-inner { overflow: hidden; min-height: 0; }
    @media (prefers-reduced-motion: reduce) {
      .response-panel { transition: none; }
    }
    #tester-status { margin: 0.6rem 0 0.3rem; font-size: 0.8rem; color: var(--text-secondary); min-height: 1.2em; }
    #tester-status .st-good { color: var(--status-good); font-weight: 600; }
    #tester-status .st-bad { color: var(--status-bad); font-weight: 600; }
    #response {
      background: var(--page);
      border: 1px solid var(--hairline);
      border-radius: 10px;
      margin: 0;
      padding: 0.75rem 0.9rem;
      font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
      font-size: 0.76rem;
      line-height: 1.45;
      max-height: 340px;
      overflow: auto;
      white-space: pre;
      transition: opacity 120ms ease;
    }
    #response.loading { opacity: 0.45; }
    .j-key { color: var(--json-key); }
    .j-str { color: var(--json-str); }
    .j-num { color: var(--json-num); }
    .j-lit { color: var(--json-lit); font-weight: 600; }
    footer {
      margin-top: 2.5rem;
      padding-top: 1.5rem;
      border-top: 1px solid var(--hairline);
      color: var(--text-muted);
      font-size: 0.85rem;
    }
    footer a { color: var(--accent); }
    footer p { margin: 0 0 0.6rem; }
    footer p:last-child { margin-bottom: 0; }
    footer .disclaimer { color: var(--text-secondary); }
