
      :root {
        --bg0: #001328;
        --bg1: #00204a;
        --line: #0b3556;
        --ink: #f3f8fb;
        --muted: #8fa9bd;
        --gold: #ffe100;
        --gold-soft: #fff3a0;
        --steel: #407088;
        --navy-deep: #000e1c;
        --paper: #ffffff;
      }
      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }
      body {
        font-family: "Sora", sans-serif;
        color: var(--ink);
        background: var(--bg0);
        min-height: 100vh;
        overflow-x: hidden;
      }
      body::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -2;
        pointer-events: none;
        background:
          radial-gradient(
            1100px 700px at 82% -12%,
            rgba(255, 225, 0, 0.13),
            transparent 62%
          ),
          radial-gradient(
            900px 650px at -8% 108%,
            rgba(64, 112, 136, 0.42),
            transparent 60%
          ),
          radial-gradient(
            700px 500px at 50% 120%,
            rgba(0, 72, 105, 0.45),
            transparent 65%
          ),
          linear-gradient(165deg, var(--bg1), var(--bg0) 55%);
      }
      body::after {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -1;
        pointer-events: none;
        background:
          repeating-radial-gradient(
            circle at 18% 28%,
            transparent 0 44px,
            rgba(255, 255, 255, 0.022) 44px 45px
          ),
          repeating-radial-gradient(
            circle at 86% 74%,
            transparent 0 60px,
            rgba(255, 255, 255, 0.018) 60px 61px
          );
      }
      .wiphala {
        display: flex;
        height: 7px;
      }
      .wiphala span {
        flex: 1;
        animation: wiph 5s ease-in-out infinite alternate;
      }
      .wiphala span:nth-child(1) {
        background: #d82b2b;
      }
      .wiphala span:nth-child(2) {
        background: #f2762e;
        animation-delay: 0.3s;
      }
      .wiphala span:nth-child(3) {
        background: #f7c631;
        animation-delay: 0.6s;
      }
      .wiphala span:nth-child(4) {
        background: #f5f2ec;
        animation-delay: 0.9s;
      }
      .wiphala span:nth-child(5) {
        background: #3fa54a;
        animation-delay: 1.2s;
      }
      .wiphala span:nth-child(6) {
        background: #2e6fd0;
        animation-delay: 1.5s;
      }
      .wiphala span:nth-child(7) {
        background: #8c4fa0;
        animation-delay: 1.8s;
      }
      @keyframes wiph {
        from {
          opacity: 0.65;
        }
        to {
          opacity: 1;
        }
      }
      .shell {
        max-width: 1920px;
        margin: 0 auto;
        padding: 0 clamp(16px, 2vw, 36px);
      }

      header.top {
        display: flex;
        flex-wrap: wrap;
        gap: 24px;
        align-items: flex-end;
        justify-content: space-between;
        padding: 34px 0 22px;
        border-bottom: 1px solid var(--line);
      }
      .brand-row {
        display: flex;
        align-items: center;
        gap: 20px;
      }
      .brand-lockup {
        display: flex;
        align-items: center;
        gap: clamp(14px, 2vw, 24px);
      }
      .logo {
        flex-shrink: 0;
        width: clamp(120px, 20vw, 190px);
        height: auto;
        filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
        border-radius: 8px;
        background: #ffffff;
        padding: 6px 10px;
        border: 1px solid rgba(255, 225, 0, 0.35);
      }
      @media (max-width: 560px) {
        .brand-row {
          flex-direction: column;
          align-items: flex-start;
          gap: 12px;
        }
        .brand-lockup {
          flex-wrap: wrap;
          align-items: flex-start;
          gap: 12px;
        }
      }
      .brand .pre {
        font-size: 0.72rem;
        letter-spacing: 0.42em;
        text-transform: uppercase;
        color: var(--gold);
        font-weight: 600;
      }
      .brand h1 {
        font-family: "Alfa Slab One", serif;
        font-weight: 400;
        font-size: clamp(2.6rem, 6vw, 4.3rem);
        line-height: 1;
        margin: 6px 0 10px;
        background: linear-gradient(180deg, #fff6b8 0%, #ffe100 48%, #e6b400 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        filter: drop-shadow(0 4px 0 #001428) drop-shadow(0 10px 22px rgba(255, 225, 0, 0.18));
      }
      .brand h1::selection {
        -webkit-text-fill-color: #fff;
        background: var(--gold);
      }
      .flagbar {
        display: inline-flex;
        height: 6px;
        width: 120px;
        border-radius: 3px;
        overflow: hidden;
      }
      .flagbar i {
        flex: 1;
      }
      .flagbar i:nth-child(1) {
        background: #d52b1e;
      }
      .flagbar i:nth-child(2) {
        background: #f9e300;
      }
      .flagbar i:nth-child(3) {
        background: #007934;
      }
      .public-nav {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 5px;
        border: 1px solid rgba(122, 172, 207, 0.2);
        border-radius: 999px;
        background: rgba(0, 14, 28, 0.5);
        backdrop-filter: blur(10px);
        box-shadow: 0 16px 34px -20px rgba(0, 0, 0, 0.7);
      }
      .public-nav a,
      .public-nav-tab {
        border: 0;
        background: transparent;
        color: var(--muted);
        cursor: pointer;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.05em;
        text-decoration: none;
        text-transform: uppercase;
        padding: 10px 18px;
        border-radius: 999px;
        white-space: nowrap;
        transition: color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s;
      }
      .public-nav a:hover,
      .public-nav-tab:hover {
        color: var(--ink);
        background: rgba(255, 255, 255, 0.07);
      }
      .public-nav-tab.is-active {
        color: #001328;
        background: linear-gradient(180deg, #fff7bd, #ffd200);
        box-shadow: 0 6px 16px -6px rgba(255, 225, 0, 0.6);
      }
      .public-nav-cta {
        color: var(--gold);
      }
      .public-nav-cta:hover {
        color: var(--gold);
        background: rgba(255, 225, 0, 0.14);
      }
      .roulette-view[hidden] { display: none; }
      .roulette-view { padding: clamp(46px, 8vw, 92px) 0 70px; }
      .roulette-view .intro { max-width: 680px; margin-bottom: 44px; }
      .roulette-view .intro h1 { margin: 9px 0 14px; color: var(--gold-soft); font-family: "Alfa Slab One", serif; font-size: clamp(2.8rem, 7vw, 5.8rem); font-weight: 400; line-height: .98; }
      .roulette-view .intro p:last-child { max-width: 55ch; margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.7; }
      .roulette-view .participant-entry { display: flex; gap: 8px; }
      .roulette-view .participant-entry input { flex: 1; min-width: 0; }
      .roulette-view .participant-entry button,
      .clear-participants { border: 1px solid rgba(255,225,0,.55); border-radius: 8px; padding: 10px 12px; color: var(--gold); background: rgba(255,225,0,.1); cursor: pointer; font: 700 .72rem "Sora", sans-serif; }
      .roulette-view .participant-entry button:hover,
      .clear-participants:hover { background: rgba(255,225,0,.2); }
      .roulette-participant-form label { display: block; margin-bottom: 7px; color: var(--muted); font-size: .72rem; font-weight: 600; }
      .roulette-view .participant-entry input { padding: 11px 12px; border: 1px solid #245579; border-radius: 8px; outline: none; background: rgba(0,13,30,.72); color: var(--ink); font: 400 .8rem "Sora", sans-serif; }
      .roulette-view .participant-entry input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,225,0,.12); }

      .roulette-modal[hidden] { display: none; }
      .roulette-modal {
        position: fixed;
        z-index: 20;
        inset: 0;
        display: grid;
        place-items: stretch;
        padding: 16px;
        background: rgba(0, 10, 24, 0.86);
        backdrop-filter: blur(7px);
        overflow-y: auto;
      }
      .roulette-modal-card {
        position: relative;
        width: min(1100px, 100%);
        max-height: 100%;
        margin: auto;
        display: grid;
        grid-template-rows: auto 1fr;
        border: 1px solid rgba(255, 225, 0, 0.45);
        border-radius: 16px;
        background: linear-gradient(165deg, #06345f, #00152e);
        box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255,225,0,.08);
        animation: registrationIn 0.22s ease-out;
        overflow: hidden;
      }
      .roulette-modal-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, transparent, var(--gold), transparent);
        opacity: .6;
      }
      .roulette-modal-head {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 20px 24px 16px;
        border-bottom: 1px solid rgba(122, 172, 207, 0.18);
        background: rgba(0, 0, 0, .15);
      }
      .roulette-modal-head h1 {
        margin: 0;
        color: var(--gold-soft);
        font-family: "Alfa Slab One", serif;
        font-size: clamp(1.3rem, 3vw, 2rem);
        font-weight: 400;
        text-shadow: 0 2px 10px rgba(255,225,0,.1);
      }
      .roulette-close {
        margin-left: auto;
        width: 34px;
        height: 34px;
        display: grid;
        place-items: center;
        border: 1px solid rgba(122,172,207,.25);
        border-radius: 8px;
        background: rgba(255,255,255,.04);
        color: var(--muted);
        cursor: pointer;
        font: 700 .85rem "Sora";
        transition: border-color .2s, color .2s, background .2s;
      }
      .roulette-close:hover { color: var(--gold); background: rgba(255, 225, 0, 0.1); border-color: rgba(255,225,0,.4); }
      .roulette-modal-body {
        padding: 24px;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: rgba(255,225,0,.2) transparent;
      }
      .roulette-intro { max-width: 680px; margin-bottom: 24px; color: var(--muted); font-size: .82rem; line-height: 1.7; }
      @media (max-width: 640px) {
        .roulette-modal { padding: 0; }
        .roulette-modal-card { border-radius: 0; border: 0; }
        .roulette-modal-body { padding: 14px; }
      }
      .roulette-feedback { min-height: 18px; margin: 7px 0 5px; color: var(--muted); font-size: .72rem; }
      .roulette-feedback.is-error { color: #ffb2a8; }
      .prize-board { display: grid; grid-template-columns: minmax(180px, .45fr) 1fr; gap: 20px; align-items: start; margin-bottom: 28px; padding: 18px; border: 1px solid rgba(122,172,207,.25); border-radius: 12px; background: rgba(0, 20, 45, .45); }
      .prize-board h2 { margin: 8px 0 0; color: var(--gold-soft); font-family: "Alfa Slab One", serif; font-size: 1.35rem; font-weight: 400; }
      .prize-table-wrap, .participant-table-wrap { overflow-x: auto; }
      .prize-table, .participant-table { width: 100%; border-collapse: collapse; font-size: .72rem; }
      .prize-table th, .participant-table th { padding: 8px 10px; border-bottom: 1px solid var(--line); color: var(--gold); font-size: .62rem; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
      .prize-table td, .participant-table td { padding: 8px 10px; border-bottom: 1px solid rgba(122,172,207,.15); color: #d8e6f1; }
      .prize-table td:last-child { color: var(--gold-light); font-weight: 700; text-align: center; }
      .prize-table tr.is-empty { opacity: .48; }
      .prize-check { width: 17px; height: 17px; accent-color: var(--gold); cursor: pointer; }
      .roulette-modes { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 15px; }
      .mode-button { border: 1px solid var(--line); border-radius: 8px; padding: 10px 13px; color: var(--ink); background: rgba(255,255,255,.06); cursor: pointer; font: 700 .72rem "Sora", sans-serif; transition: border-color .2s, background .2s; }
      .mode-button:hover, .mode-button.is-active { border-color: var(--gold); color: #001328; background: var(--gold); }
      .participant-table-wrap { max-height: 240px; margin: 8px 0 12px; overflow-y: auto; }
      .participant-table td:first-child { color: var(--gold-light); font-weight: 800; letter-spacing: .08em; }
      .participant-table td:last-child { color: var(--muted); font-size: .68rem; }
      .participant-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
      .participant-actions .spin-button { margin-left: auto; }
      .participant-actions .spin-button:disabled { opacity: .55; }
      .spin-button { border: 1px solid var(--gold); border-radius: 10px; padding: 13px 18px; color: #001328; background: linear-gradient(180deg, #fff15e, #e6b900); box-shadow: 0 8px 20px rgba(255,225,0,.18); cursor: pointer; font: 800 .78rem "Sora", sans-serif; transition: transform .2s, box-shadow .2s; }
      .spin-button:hover { box-shadow: 0 12px 28px rgba(255,225,0,.28); transform: translateY(-2px); }
      .spin-button span { display: inline-block; margin-right: 5px; font-size: 1.1rem; vertical-align: -2px; }
      #wheelLabels { position: absolute; inset: 0; }
      #wheelLabels .wheel-label { transform: translate(-50%, -50%) rotate(var(--angle)) translateY(calc(-1 * min(37vw, 185px))) rotate(calc(-1 * var(--angle))); }
      #wheelLabels .wheel-label small { color: rgba(0,19,40,.6); }
      .quiz-game { display: grid; grid-template-columns: minmax(190px, .42fr) 1fr; gap: 24px; align-items: start; margin-top: 25px; padding: 22px; border: 1px solid rgba(255,225,0,.25); border-radius: 14px; background: linear-gradient(145deg, rgba(5,49,87,.6), rgba(0,19,42,.7)); }
      .quiz-heading h2 { margin: 8px 0 10px; color: var(--gold-soft); font-family: "Alfa Slab One", serif; font-size: 1.45rem; font-weight: 400; }
      .quiz-heading p { margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.6; }
      .quiz-card { min-width: 0; }
      .quiz-progress { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 13px; color: var(--muted); font-size: .68rem; text-transform: uppercase; }
      .quiz-progress strong { color: var(--gold); }
      .quiz-card h3 { margin: 0 0 16px; color: var(--ink); font-size: 1rem; line-height: 1.45; }
      .quiz-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
      .quiz-option { min-height: 45px; padding: 9px 11px; border: 1px solid #245579; border-radius: 8px; background: rgba(0,13,30,.68); color: #d8e6f1; cursor: pointer; font: 600 .72rem "Sora", sans-serif; text-align: left; transition: border-color .2s, background .2s, transform .2s; }
      .quiz-option:hover:not(:disabled) { border-color: var(--gold); background: rgba(255,225,0,.1); transform: translateY(-1px); }
      .quiz-option:disabled { cursor: default; }
      .quiz-option.is-correct { border-color: #83d58a; background: rgba(83,190,94,.18); color: #d8f6da; }
      .quiz-option.is-wrong { border-color: #ff8c82; background: rgba(213,43,30,.2); color: #ffd3ce; }
      .quiz-feedback { min-height: 20px; margin: 11px 0 4px; color: var(--muted); font-size: .72rem; }
      .quiz-feedback.is-success { color: #a8e4ae; }
      .quiz-feedback.is-error { color: #ffb2a8; }
      .quiz-next, .quiz-restart { margin-top: 8px; padding: 10px 13px; border: 1px solid rgba(255,225,0,.6); border-radius: 8px; background: rgba(255,225,0,.12); color: var(--gold); cursor: pointer; font: 700 .72rem "Sora", sans-serif; }
      .quiz-next:hover, .quiz-restart:hover { background: rgba(255,225,0,.22); }
      .quiz-win { grid-column: 2; padding: 23px; border: 1px solid rgba(255,225,0,.55); border-radius: 10px; background: rgba(255,225,0,.08); animation: registrationIn .25s ease-out; }
      .quiz-win h3 { margin: 8px 0; color: var(--gold-soft); font-family: "Alfa Slab One", serif; font-size: 1.45rem; font-weight: 400; }
      .quiz-win p { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.5; }
      @media (max-width: 700px) { .quiz-game { grid-template-columns: 1fr; } .quiz-win { grid-column: 1; } }
      @media (max-width: 460px) { .quiz-options { grid-template-columns: 1fr; } }
      @media (max-width: 700px) { .prize-board { grid-template-columns: 1fr; } }
      @media (max-width: 560px) {
        .public-nav {
          width: 100%;
        }
        .public-nav .public-nav-tab {
          flex: 1;
          text-align: center;
          padding: 11px 10px;
        }
        .participant-actions .spin-button {
          margin-left: 0;
        }
      }
      main.grid {
        display: grid;
        grid-template-columns: minmax(0, 1.55fr) minmax(400px, min(27vw, 560px));
        gap: clamp(20px, 2.5vw, 44px);
        padding: 30px 0 10px;
        align-items: start;
      }
      @media (max-width: 1020px) {
        main.grid {
          grid-template-columns: 1fr;
        }
      }
      main.grid.is-collapsed {
        grid-template-columns: 1fr;
      }
      main.grid.is-collapsed aside.panel {
        display: none;
      }
      .panel-toggle {
        position: fixed;
        z-index: 25;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        padding: 0;
        border: 1px solid transparent;
        border-radius: 12px;
        background: linear-gradient(180deg, #fff3a0, #ffd200);
        color: #001328;
        cursor: pointer;
        box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.7);
        transition: transform 0.2s, background 0.2s;
      }
      .panel-toggle[hidden] {
        display: none;
      }
      .panel-toggle svg {
        width: 16px;
        height: 16px;
      }
      .panel-toggle:hover {
        background: var(--gold-soft);
        transform: translateY(-50%) translateX(-2px);
      }

      .map-frame {
        position: relative;
        isolation: isolate;
        border: 1px solid #12426e;
        border-radius: 18px;
        padding: 10px;
        min-height: 420px;
        background: radial-gradient(
          120% 90% at 50% 30%,
          #053157 0%,
          #001732 70%
        );
        box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
      }
      .map-frame::before,
      .map-frame::after {
        content: "";
        position: absolute;
        width: 20px;
        height: 20px;
        border: 2px solid var(--gold);
        opacity: 0.55;
      }
      .map-frame::before {
        top: -2px;
        left: -2px;
        border-right: 0;
        border-bottom: 0;
        border-radius: 12px 0 0 0;
      }
      .map-frame::after {
        bottom: -2px;
        right: -2px;
        border-left: 0;
        border-top: 0;
        border-radius: 0 0 12px 0;
      }
      svg#map {
        display: block;
        width: 100%;
        height: auto;
        filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45));
        border-radius: 11px;
      }
      .map-controls {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 20px 20px 18px;
        border: 1px solid rgba(96, 145, 184, 0.35);
        border-radius: 18px;
        background: linear-gradient(160deg, #01264f, #001533);
        box-shadow: 0 20px 44px -24px rgba(0, 0, 0, 0.6);
      }
      .filter-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
      }
      .filter-head-left {
        display: inline-flex;
        align-items: center;
        gap: 9px;
        min-width: 0;
      }
      .filter-head-toggle {
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        padding: 0;
        border: 1px solid rgba(122, 172, 207, 0.3);
        border-radius: 8px;
        background: transparent;
        color: var(--muted);
        cursor: pointer;
        transition: color 0.2s, border-color 0.2s, background 0.2s;
      }
      .filter-head-toggle svg {
        width: 14px;
        height: 14px;
      }
      .filter-head-toggle:hover {
        border-color: var(--gold);
        color: var(--gold);
        background: rgba(255, 225, 0, 0.08);
      }
      .filter-title {
        display: inline-flex;
        align-items: center;
        gap: 9px;
        font-size: 0.72rem;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        color: var(--gold-soft);
        font-weight: 700;
      }
      .filter-icon {
        width: 15px;
        height: 15px;
        color: var(--gold);
      }
      .filter-panel {
        display: flex;
        flex-direction: column;
        gap: 10px;
      }
      .filter-label {
        display: block;
        font-size: 0.7rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--gold);
        font-weight: 700;
      }
      .search-wrap {
        position: relative;
        display: flex;
        align-items: center;
      }
      .search-icon {
        position: absolute;
        left: 13px;
        width: 16px;
        height: 16px;
        color: var(--muted);
        pointer-events: none;
        transition: color 0.2s;
      }
      .search-wrap:focus-within .search-icon {
        color: var(--gold);
      }
      .program-search {
        width: 100%;
        border: 1px solid rgba(122, 172, 207, 0.35);
        border-radius: 12px;
        background: rgba(0, 13, 30, 0.72);
        color: var(--ink);
        padding: 12px 14px 12px 40px;
        font: 400 0.82rem "Sora", sans-serif;
        outline: none;
        transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
      }
      .program-search::placeholder {
        color: var(--muted);
      }
      .program-search:focus {
        border-color: var(--gold);
        background: rgba(0, 15, 38, 0.9);
        box-shadow: 0 0 0 3px rgba(255, 225, 0, 0.14);
      }
      .area-checklist {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
      }
      .area-option {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 7px 13px;
        border-radius: 999px;
        border: 1px solid rgba(122, 172, 207, 0.35);
        background: rgba(255, 255, 255, 0.04);
        color: #d8e6f1;
        cursor: pointer;
        transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.2s;
        font-size: 0.76rem;
        font-weight: 600;
      }
      .area-option:hover {
        border-color: rgba(255, 225, 0, 0.6);
        background: rgba(255, 225, 0, 0.08);
        transform: translateY(-1px);
      }
      .area-option input {
        appearance: none;
        width: 15px;
        height: 15px;
        flex-shrink: 0;
        border-radius: 4px;
        border: 1.5px solid rgba(122, 172, 207, 0.5);
        background: rgba(0, 13, 30, 0.6);
        cursor: pointer;
        position: relative;
        transition: border-color 0.2s, background 0.2s;
      }
      .area-option input:checked {
        border-color: var(--gold);
        background: linear-gradient(180deg, #fff3a0, #ffd200);
      }
      .area-option input:checked::after {
        content: "";
        position: absolute;
        left: 4px;
        top: 1px;
        width: 4px;
        height: 8px;
        border: solid #001328;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
      }
      .area-option input:focus-visible {
        outline: 2px solid var(--gold);
        outline-offset: 2px;
      }
      .area-option:has(input:checked) {
        border-color: rgba(255, 225, 0, 0.55);
        background: rgba(255, 225, 0, 0.12);
        color: var(--gold-soft);
      }
      .map-clear-filter {
        border: 1px solid rgba(122, 172, 207, 0.3);
        border-radius: 999px;
        background: transparent;
        color: var(--muted);
        padding: 7px 14px;
        font: 600 0.68rem "Sora", sans-serif;
        cursor: pointer;
        transition: color 0.2s, border-color 0.2s, background 0.2s;
      }
      .map-clear-filter:hover {
        border-color: var(--gold);
        color: var(--gold);
        background: rgba(255, 225, 0, 0.08);
      }
      .map-toolbar {
        position: absolute;
        z-index: 6;
        top: 22px;
        right: 22px;
        display: flex;
        align-items: center;
        gap: 8px;
      }
      .map-state {
        padding: 7px 11px;
        border: 1px solid rgba(255, 225, 0, 0.3);
        border-radius: 999px;
        background: rgba(0, 15, 38, 0.76);
        backdrop-filter: blur(10px);
        font-size: 0.68rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #cddce8;
      }
      .map-reset {
        display: none;
        border: 1px solid var(--gold);
        border-radius: 999px;
        padding: 8px 12px;
        background: linear-gradient(180deg, #ffeb3d, #ffd200);
        color: #001428;
        font: 700 0.7rem "Sora";
        cursor: pointer;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
        transition:
          transform 0.2s,
          background 0.2s;
      }
      .map-reset:hover {
        transform: translateY(-1px);
        background: var(--gold-soft);
      }
      .map-frame.is-zoomed .map-reset {
        display: block;
      }

      .loader {
        position: absolute;
        inset: 0;
        display: flex;
        flex-direction: column;
        gap: 14px;
        align-items: center;
        justify-content: center;
        color: var(--muted);
        font-size: 0.85rem;
      }
      .loader i {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        border: 3px solid var(--line);
        border-top-color: var(--gold);
        animation: spin 1s linear infinite;
      }
      @keyframes spin {
        to {
          transform: rotate(360deg);
        }
      }
      .loaderr {
        padding: 40px;
        text-align: center;
        color: var(--muted);
      }
      .loaderr button {
        margin-top: 12px;
        background: none;
        border: 1px solid var(--gold);
        color: var(--gold);
        border-radius: 999px;
        padding: 8px 18px;
        font: 600 0.8rem "Sora";
        cursor: pointer;
      }

      .hint {
        margin-top: 14px;
        font-size: 0.78rem;
        color: var(--muted);
        letter-spacing: 0.04em;
        text-align: center;
      }
      .hint b {
        color: var(--gold);
      }

      /* Departamentos */
      .dep {
        fill: var(--c);
        stroke: #000e1c;
        stroke-width: var(--sw, 2);
        stroke-linejoin: round;
        vector-effect: non-scaling-stroke;
        cursor: pointer;
        outline: none;
        transition:
          opacity 0.35s,
          filter 0.35s,
          stroke 0.35s,
          stroke-width 0.35s;
      }
      .dep.is-in {
        animation: depIn 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
        animation-delay: calc(var(--i) * 80ms + 100ms);
      }
      @keyframes depIn {
        from {
          opacity: 0;
        }
        to {
          opacity: 1;
        }
      }
      #map.has-active .dep:not(.is-hot):not(.is-selected) {
        opacity: 0.48;
        filter: saturate(0.6) brightness(0.76);
      }
      .dep.is-filtered-out {
        opacity: 0.15;
        filter: grayscale(0.7) brightness(0.42);
      }
      .dep.is-filtered-hit {
        fill-opacity: 1;
        filter: brightness(1.22) saturate(1.18) drop-shadow(0 0 18px var(--c));
        stroke: #fff6b8;
        stroke-width: 4px;
      }
      .dep:hover,
      .dep.is-hot {
        fill-opacity: 1;
        filter: brightness(1.28) saturate(1.22) drop-shadow(0 0 14px var(--c));
        stroke: #ffffff;
        stroke-width: 4px;
      }
      .dep.is-selected {
        fill-opacity: 1;
        filter: brightness(1.22) saturate(1.18) drop-shadow(0 0 18px var(--c));
        stroke: #ffef9e;
        stroke-width: 5px;
        animation: selPulse 2.2s ease-in-out infinite;
      }
      @keyframes selPulse {
        0%,
        100% {
          stroke-opacity: 1;
        }
        50% {
          stroke-opacity: 0.5;
        }
      }
      .dep:focus-visible {
        stroke: #fff;
        stroke-width: 5px;
      }

      .deco {
        pointer-events: none;
      }
      .deco text {
        font-family: "Sora", sans-serif;
      }
      .pais {
        fill: rgba(243, 248, 251, 0.32);
        font-weight: 600;
        letter-spacing: 0.35em;
      }
      .nomDep {
        font-weight: 800;
        letter-spacing: 0.12em;
        fill: #001428;
        paint-order: stroke;
        stroke: rgba(255, 255, 255, 0.6);
        stroke-width: 3px;
        text-anchor: middle;
      }
      .cityDot {
        fill: #fff;
        stroke: #001428;
        stroke-width: 1.4;
      }
      .capDot {
        fill: var(--gold);
        stroke: #001428;
        stroke-width: 1.4;
      }
      .pulse {
        fill: none;
        stroke: var(--gold);
        stroke-width: 2;
        animation: ping 2.4s ease-out infinite;
      }
      @keyframes ping {
        0% {
          opacity: 0.9;
        }
        100% {
          opacity: 0;
        }
      }
      .cityTxt {
        fill: #ffef9e;
        font-weight: 600;
      }
      .escTxt {
        fill: rgba(243, 248, 251, 0.5);
        letter-spacing: 0.1em;
      }
      .escLine {
        stroke: rgba(243, 248, 251, 0.5);
        stroke-width: 2;
      }

      .tooltip {
        position: absolute;
        z-index: 5;
        pointer-events: none;
        min-width: 150px;
        background: #001938f2;
        border: 1px solid var(--gold);
        border-radius: 10px;
        padding: 10px 14px;
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
        opacity: 0;
        transform: translateY(6px) scale(0.97);
        transition:
          opacity 0.18s,
          transform 0.18s;
      }
      .tooltip.on {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
      .tooltip b {
        display: block;
        font-family: "Alfa Slab One", serif;
        font-weight: 400;
        font-size: 1.02rem;
        color: var(--tc, var(--gold));
      }
      .tooltip span {
        font-size: 0.74rem;
        color: var(--muted);
      }

      .map-overlay[hidden] {
        display: none;
      }
      .map-overlay {
        position: absolute;
        z-index: 7;
        top: 50%;
        left: 50%;
        translate: -50% -50%;
        width: min(350px, calc(100% - 36px));
        max-height: calc(100% - 150px);
        display: flex;
        flex-direction: column;
        background: linear-gradient(165deg, rgba(2, 40, 82, 0.97), rgba(0, 21, 51, 0.97));
        border: 1px solid rgba(64, 122, 168, 0.5);
        border-radius: 16px;
        box-shadow: 0 26px 54px -18px rgba(0, 0, 0, 0.75);
        backdrop-filter: blur(10px);
        overflow: hidden;
        animation: ovIn 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
      }
      @keyframes ovIn {
        from {
          opacity: 0;
          transform: translateY(8px) scale(0.98);
        }
        to {
          opacity: 1;
          transform: translateY(0) scale(1);
        }
      }
      .ov-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 10px 12px;
        border-bottom: 1px dashed #0c3050;
      }
      .ov-crumbs {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px;
        font-size: 0.68rem;
        color: var(--muted);
        min-width: 0;
      }
      .ov-crumb {
        background: none;
        border: 0;
        padding: 0;
        color: var(--gold);
        font: 600 0.68rem "Sora";
        cursor: pointer;
        transition: color 0.2s;
      }
      .ov-crumb:hover {
        color: var(--gold-soft);
        text-decoration: underline;
      }
      .ov-crumb.is-last {
        color: var(--muted);
        cursor: pointer;
        text-decoration: none;
      }
      .ov-crumb.is-last:hover {
        color: var(--gold);
        text-decoration: underline;
      }
      .ov-crumbs .ov-crumb:not(:last-child)::after {
        content: "›";
        margin-left: 4px;
        color: var(--muted);
      }
      .ov-close {
        flex-shrink: 0;
        background: none;
        border: 0;
        color: var(--muted);
        font: 700 0.85rem "Sora";
        cursor: pointer;
        padding: 2px 7px;
        border-radius: 8px;
        transition: 0.2s;
      }
      .ov-close:hover {
        color: var(--gold);
        background: rgba(255, 225, 0, 0.12);
      }
      .ov-body {
        padding: 13px 14px;
        overflow-y: auto;
        overscroll-behavior: contain;
      }
      .ov-title {
        font-family: "Alfa Slab One", serif;
        font-weight: 400;
        font-size: 1.05rem;
        color: var(--ink);
        margin: 2px 0 11px;
      }
      .ov-empty {
        color: var(--muted);
        font-size: 0.8rem;
      }
      .ov-list {
        display: flex;
        flex-direction: column;
        gap: 7px;
      }
      .ov-row {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        text-align: left;
        background: rgba(0, 14, 28, 0.5);
        border: 1px solid var(--line);
        border-radius: 10px;
        padding: 9px 11px;
        color: var(--ink);
        font: 600 0.82rem "Sora";
        cursor: pointer;
        transition:
          background 0.2s,
          transform 0.2s;
      }
      .ov-row:hover {
        background: rgba(6, 54, 94, 0.65);
        transform: translateX(3px);
      }
      .ov-row-t {
        flex: 1;
        min-width: 0;
      }
      .ov-row small {
        flex-shrink: 0;
        font-size: 0.66rem;
        color: var(--gold);
        font-weight: 600;
      }
      .ov-row-ar {
        flex-shrink: 0;
        color: var(--muted);
        font-size: 1.05rem;
      }
      .ov-progs {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 6px;
      }
      .ov-progs li {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        font-size: 0.79rem;
        line-height: 1.4;
        color: #d8e6f1;
        background: rgba(0, 14, 28, 0.35);
        border: 1px solid #0e3a5c;
        border-radius: 10px;
        padding: 8px 10px;
      }
      .program-name {
        min-width: 0;
        width: 100%;
        padding: 0;
        border: 0;
        background: none;
        color: #d8e6f1;
        font: inherit;
        line-height: inherit;
        text-align: left;
        cursor: pointer;
      }
      .program-name:hover {
        color: var(--gold-light);
        text-decoration: underline;
      }
      .ov-progs .badge {
        margin-top: 1px;
      }
      .ov-progs .ov-links {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        width: 100%;
        margin-top: 2px;
      }
      .ov-progs .ov-link {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        font: 600 0.7rem "Sora";
        text-decoration: none;
        padding: 5px 11px;
        border-radius: 999px;
        transition: 0.15s;
        border: 1px solid transparent;
      }
      .ov-progs .ov-link::before {
        content: "";
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background: currentColor;
      }
      .ov-progs .ov-link.brochure {
        background: rgba(64, 112, 136, 0.28);
        color: #bcd6e8;
        border-color: rgba(64, 112, 136, 0.6);
      }
      .ov-progs .ov-link.brochure:hover {
        background: rgba(64, 112, 136, 0.5);
      }
      .ov-progs .ov-link.titulacion {
        background: rgba(255, 225, 0, 0.14);
        color: var(--gold);
        border-color: rgba(255, 225, 0, 0.4);
      }
      .ov-progs .ov-link.titulacion:hover {
        background: rgba(255, 225, 0, 0.26);
      }
      .ov-progs .ov-link.arte {
        background: rgba(213, 43, 30, 0.16);
        color: #ffb2a8;
        border-color: rgba(213, 43, 30, 0.48);
      }
      .ov-progs .ov-link.arte:hover {
        background: rgba(213, 43, 30, 0.28);
      }
      body.modal-open {
        overflow: hidden;
      }
      .registration-modal[hidden] {
        display: none;
      }
      .registration-modal {
        position: absolute;
        z-index: 10;
        inset: 0;
        display: grid;
        place-items: center;
        padding: 20px;
        background: rgba(0, 10, 24, 0.78);
        backdrop-filter: blur(5px);
      }
      .asset-viewer-modal[hidden] { display: none; }
      .asset-viewer-modal {
        position: absolute;
        z-index: 12;
        inset: 0;
        display: grid;
        place-items: center;
        padding: 20px;
        background: rgba(0, 10, 24, 0.86);
        backdrop-filter: blur(5px);
      }
      .asset-viewer-card {
        display: grid;
        grid-template-rows: auto minmax(0, 1fr) auto;
        width: min(940px, 100%);
        height: min(760px, 100%);
        min-height: 0;
        padding: 18px;
        border: 1px solid rgba(255, 225, 0, 0.5);
        border-radius: 16px;
        background: linear-gradient(165deg, #06345f, #00152e);
        box-shadow: 0 28px 70px rgba(0, 0, 0, 0.58);
      }
      .asset-viewer-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
      .asset-viewer-head h2 { margin: 0 0 14px; color: var(--ink); font-family: "Alfa Slab One", serif; font-size: 1.35rem; font-weight: 400; }
      .asset-viewer-close { padding: 5px 8px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; font: 700 .85rem "Sora"; }
      .asset-viewer-close:hover { color: var(--gold); background: rgba(255, 225, 0, 0.12); }
      .asset-viewer-content { display: grid; min-height: 0; place-items: center; overflow: auto; border: 1px solid rgba(122, 172, 207, .25); border-radius: 9px; background: #00101f; }
      .asset-viewer-content img { display: block; width: 100%; height: 100%; object-fit: contain; }
      .asset-viewer-content iframe { width: 100%; height: 100%; border: 0; background: white; }
      .asset-viewer-open { justify-self: end; margin-top: 12px; color: var(--gold-light); font-size: .72rem; font-weight: 700; text-decoration: none; }
      .asset-viewer-open:hover { color: white; }
      .registration-card {
        position: relative;
        width: min(440px, 100%);
        max-height: 100%;
        overflow-y: auto;
        padding: 28px;
        border: 1px solid rgba(255, 225, 0, 0.5);
        border-radius: 16px;
        background: linear-gradient(165deg, #06345f, #00152e);
        box-shadow: 0 28px 70px rgba(0, 0, 0, 0.58);
        animation: registrationIn 0.22s ease-out;
      }
      @keyframes registrationIn {
        from { opacity: 0; transform: translateY(8px) scale(0.98); }
        to { opacity: 1; transform: translateY(0) scale(1); }
      }
      .registration-close {
        position: absolute;
        top: 15px;
        right: 15px;
        padding: 5px 8px;
        border: 0;
        border-radius: 7px;
        background: transparent;
        color: var(--muted);
        font: 700 0.85rem "Sora";
        cursor: pointer;
      }
      .registration-close:hover {
        color: var(--gold);
        background: rgba(255, 225, 0, 0.12);
      }
      .registration-card h2 {
        margin: 9px 0 7px;
        color: var(--ink);
        font-family: "Alfa Slab One", serif;
        font-size: 1.6rem;
        font-weight: 400;
      }
      .registration-program {
        margin: 0 0 20px;
        color: var(--gold-soft);
        font-size: 0.78rem;
        line-height: 1.45;
      }
      .registration-card form {
        display: grid;
        gap: 8px;
      }
      .registration-card label {
        margin-top: 5px;
        color: var(--muted);
        font-size: 0.72rem;
        font-weight: 600;
      }
      .registration-card label small {
        color: #7190a7;
        font-weight: 400;
      }
      .registration-card input,
      .registration-card select {
        width: 100%;
        padding: 11px 12px;
        border: 1px solid #245579;
        border-radius: 8px;
        outline: none;
        background: rgba(0, 13, 30, 0.72);
        color: var(--ink);
        font: 400 0.8rem "Sora", sans-serif;
      }
      .registration-card input:focus,
      .registration-card select:focus {
        border-color: var(--gold);
        box-shadow: 0 0 0 3px rgba(255, 225, 0, 0.12);
      }
      .registration-card option {
        color: #001328;
      }
      .registration-submit {
        margin-top: 12px;
        padding: 12px 15px;
        border: 1px solid var(--gold);
        border-radius: 9px;
        background: linear-gradient(180deg, #fff15e, #e6b900);
        color: #001328;
        font: 800 0.78rem "Sora", sans-serif;
        cursor: pointer;
      }
      .registration-submit:disabled {
        cursor: wait;
        opacity: 0.62;
      }
      .registration-feedback {
        min-height: 18px;
        margin: 5px 0 0;
        color: var(--muted);
        font-size: 0.72rem;
        line-height: 1.4;
      }
      .registration-feedback.is-success { color: #a8e4ae; }
      .registration-feedback.is-error { color: #ffb2a8; }
      .registration-success[hidden] { display: none; }
      .registration-success {
        padding: 22px 10px 8px;
        text-align: center;
        animation: registrationIn 0.25s ease-out;
      }
      .registration-success-icon {
        display: grid;
        width: 52px;
        height: 52px;
        margin: 0 auto 16px;
        place-items: center;
        border: 2px solid #a8e4ae;
        border-radius: 50%;
        color: #a8e4ae;
        font-size: 1.7rem;
        font-weight: 800;
      }
      .registration-success h3 {
        margin: 9px 0 10px;
        color: var(--ink);
        font-family: "Alfa Slab One", serif;
        font-size: 1.45rem;
        font-weight: 400;
        line-height: 1.25;
      }
      .registration-success > p:not(.kicker) {
        margin: 0;
        color: var(--muted);
        font-size: 0.78rem;
        line-height: 1.5;
      }
      .registration-success strong {
        display: block;
        margin: 20px 0;
        padding: 14px 12px;
        border: 1px solid rgba(255, 225, 0, 0.55);
        border-radius: 9px;
        color: var(--gold-soft);
        background: rgba(255, 225, 0, 0.1);
        font-size: 1.15rem;
        letter-spacing: 0.08em;
      }
      .registration-success-close {
        padding: 10px 18px;
        border: 1px solid rgba(255, 225, 0, 0.55);
        border-radius: 8px;
        color: var(--gold);
        background: rgba(255, 225, 0, 0.1);
        cursor: pointer;
        font: 700 0.72rem "Sora", sans-serif;
      }
      .registration-success-close:hover { background: rgba(255, 225, 0, 0.2); }
      .notice-modal[hidden] { display: none; }
      .notice-modal {
        position: fixed;
        z-index: 30;
        inset: 0;
        display: grid;
        place-items: center;
        padding: 20px;
        background: rgba(0, 10, 24, 0.82);
        backdrop-filter: blur(7px);
      }
      .notice-card {
        position: relative;
        width: min(460px, 100%);
        padding: 34px 30px 30px;
        border: 1px solid rgba(255, 225, 0, 0.6);
        border-radius: 16px;
        background: linear-gradient(165deg, #06345f, #00152e);
        box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65);
        text-align: center;
        animation: registrationIn 0.22s ease-out;
      }
      .notice-card h2 { margin: 10px 0 8px; color: var(--gold-soft); font-family: "Alfa Slab One", serif; font-size: 1.55rem; font-weight: 400; }
      .notice-card p:not(.kicker) { margin: 0; color: var(--muted); font-size: 0.8rem; line-height: 1.55; }
      .notice-card strong { display: block; margin: 20px 0 4px; color: var(--gold); font-size: 1.35rem; letter-spacing: .08em; }
      .notice-close { position: absolute; top: 14px; right: 14px; padding: 5px 8px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; font: 700 .85rem "Sora"; }
      .notice-close:hover { color: var(--gold); background: rgba(255, 225, 0, 0.12); }
      .notice-action { margin-top: 22px; padding: 10px 18px; border: 1px solid rgba(255,225,0,.6); border-radius: 8px; background: rgba(255,225,0,.12); color: var(--gold); cursor: pointer; font: 700 .72rem "Sora"; }
      .notice-action:hover { background: rgba(255,225,0,.22); }
      @media (max-width: 640px) {
        .map-overlay {
          top: auto;
          bottom: 12px;
          left: 12px;
          right: 12px;
          width: auto;
          max-height: 62%;
          translate: none;
        }
      }

      aside.panel {
        display: flex;
        flex-direction: column;
        gap: 16px;
        min-width: 0;
      }
      .card {
        background: linear-gradient(160deg, #01264f, #001533);
        border: 1px solid #0f3f6b;
        border-radius: 18px;
        padding: 23px 24px;
        box-shadow: 0 20px 44px -24px rgba(0, 0, 0, 0.6);
      }
      .card-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
      }
      .kicker {
        font-size: 0.66rem;
        letter-spacing: 0.4em;
        text-transform: uppercase;
        color: var(--gold);
        font-weight: 700;
      }
      .clear {
        background: none;
        border: 1px solid var(--line);
        color: var(--muted);
        border-radius: 999px;
        font: 600 0.68rem "Sora";
        padding: 5px 12px;
        cursor: pointer;
        transition: 0.25s;
      }
      .clear:hover {
        border-color: var(--gold);
        color: var(--gold);
      }
      .card .name {
        font-family: "Alfa Slab One", serif;
        font-weight: 400;
        font-size: clamp(1.8rem, 3vw, 2.4rem);
        margin: 8px 0 2px;
        transition: color 0.3s;
      }
      .card .sub {
        color: var(--muted);
        font-size: 0.85rem;
        min-height: 1.3em;
      }
      .prog-summary {
        display: flex;
        gap: 10px;
        margin-top: 18px;
      }
      .prog-summary > div {
        flex: 1;
        text-align: center;
        background: rgba(0, 14, 28, 0.45);
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 10px 6px;
      }
      .prog-summary b {
        display: block;
        font-family: "Alfa Slab One", serif;
        font-weight: 400;
        font-size: 1.35rem;
        color: var(--gold);
      }
      .prog-summary span {
        display: block;
        font-size: 0.6rem;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--muted);
        margin-top: 2px;
      }
      .prog-card {
        background: linear-gradient(160deg, #01264f, #001533);
        border: 1px solid #0f3f6b;
        border-radius: 18px;
        padding: 20px;
        box-shadow: 0 20px 44px -24px rgba(0, 0, 0, 0.6);
      }
      .prog-hint {
        font-size: 0.64rem;
        letter-spacing: 0.2em;
        text-transform: uppercase;
        color: var(--muted);
      }
      .prog-groups {
        margin-top: 14px;
      }
      .area {
        border: 1px solid #0e3a5c;
        border-radius: 14px;
        background: rgba(0, 14, 28, 0.35);
        margin-bottom: 10px;
        overflow: hidden;
      }
      .area-h {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        background: none;
        border: 0;
        color: var(--ink);
        font: 700 0.82rem "Sora";
        letter-spacing: 0.03em;
        text-align: left;
        padding: 12px 14px;
        cursor: pointer;
        transition: background 0.25s;
      }
      .area-h:hover {
        background: rgba(6, 54, 94, 0.5);
      }
      .area-t {
        display: flex;
        align-items: center;
        gap: 8px;
      }
      .area-t::before {
        content: "";
        width: 8px;
        height: 8px;
        border-radius: 2px;
        background: var(--gold);
        flex-shrink: 0;
      }
      .area-n {
        font-family: "Alfa Slab One", serif;
        font-weight: 400;
        font-size: 0.9rem;
        color: var(--gold);
        background: rgba(255, 225, 0, 0.12);
        border-radius: 999px;
        padding: 2px 9px;
      }
      .area-arrow {
        color: var(--muted);
        font-size: 0.7rem;
        transition: transform 0.25s;
      }
      .area.is-open .area-arrow {
        transform: rotate(180deg);
      }
      .area-l {
        list-style: none;
        display: none;
        padding: 0 14px 12px;
      }
      .area.is-open .area-l {
        display: block;
      }
      .area-l li {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        padding: 7px 0;
        border-top: 1px dashed #0c3050;
        font-size: 0.83rem;
        line-height: 1.45;
        color: #d8e6f1;
      }
      .badge {
        flex-shrink: 0;
        margin-top: 2px;
        font-size: 0.55rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        border-radius: 999px;
        padding: 3px 7px;
      }
      .badge.m {
        background: rgba(255, 225, 0, 0.16);
        color: var(--gold);
        border: 1px solid rgba(255, 225, 0, 0.35);
      }
      .badge.d {
        background: rgba(64, 112, 136, 0.3);
        color: #cfe3ef;
        border: 1px solid rgba(64, 112, 136, 0.55);
      }
      .dep-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin: 16px 0 8px;
        padding: 9px 12px;
        background: rgba(0, 14, 28, 0.5);
        border: 1px solid var(--line);
        border-left: 3px solid var(--c, var(--gold));
        border-radius: 10px;
        cursor: pointer;
        color: var(--ink);
        font: 700 0.86rem "Sora";
        text-align: left;
        transition:
          background 0.2s,
          transform 0.2s;
      }
      .dep-head:hover {
        background: rgba(6, 54, 94, 0.6);
        transform: translateX(3px);
      }
      .dep-head small {
        font-size: 0.68rem;
        color: var(--muted);
        font-weight: 600;
      }
      .empty {
        color: var(--muted);
        font-size: 0.82rem;
        padding: 10px 4px;
      }
      .crumbs {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
        margin-bottom: 14px;
        font-size: 0.7rem;
        color: var(--muted);
      }
      .crumbs::before {
        content: "▲";
        font-size: 0.6rem;
        color: var(--gold);
      }
      .crumb {
        background: none;
        border: 0;
        padding: 0;
        color: var(--gold);
        font: 600 0.72rem "Sora";
        cursor: pointer;
        transition: color 0.2s;
      }
      .crumb:hover {
        color: var(--gold-soft);
        text-decoration: underline;
      }
      .crumbs .crumb:last-child {
        color: var(--muted);
        cursor: default;
        text-decoration: none;
      }
      .dep-grid {
        display: flex;
        flex-direction: column;
        gap: 8px;
      }
      .dep-grid .dep-head {
        margin: 0;
      }
      .sede-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 12px 14px;
        background: rgba(0, 14, 28, 0.45);
        border: 1px solid var(--line);
        border-radius: 10px;
        cursor: pointer;
        color: var(--ink);
        font: 700 0.86rem "Sora";
        text-align: left;
        transition:
          background 0.2s,
          transform 0.2s;
      }
      .sede-head:hover {
        background: rgba(6, 54, 94, 0.6);
        transform: translateX(3px);
      }
      .sede-head::before {
        content: "";
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background: var(--gold);
        box-shadow: 0 0 0 3px rgba(255, 225, 0, 0.15);
        flex-shrink: 0;
      }
      .sede-head small {
        font-size: 0.68rem;
        color: var(--gold);
        font-weight: 600;
      }

      ol.dep-list {
        list-style: none;
        border: 1px solid #0e3a5c;
        border-radius: 18px;
        overflow: hidden;
        background: #001530;
        box-shadow: 0 18px 42px -30px rgba(0, 0, 0, 0.7);
      }
      ol.dep-list button {
        width: 100%;
        display: grid;
        grid-template-columns: 16px 1fr auto;
        gap: 12px;
        align-items: center;
        background: none;
        border: 0;
        border-bottom: 1px dashed #0c3050;
        color: var(--ink);
        font: inherit;
        text-align: left;
        padding: 11px 16px;
        cursor: pointer;
        transition:
          background 0.25s,
          transform 0.25s;
      }
      ol.dep-list li:last-child button {
        border-bottom: 0;
      }
      ol.dep-list button:hover,
      ol.dep-list button.is-hot {
        background: #06365e;
        transform: translateX(4px);
      }
      ol.dep-list button.is-selected {
        background: #0a4a7c;
        box-shadow: inset 3px 0 0 var(--c);
      }
      ol.dep-list .sw {
        width: 12px;
        height: 12px;
        border-radius: 3px;
        background: var(--c);
      }
      ol.dep-list .nm {
        font-weight: 700;
        font-size: 0.9rem;
      }
      ol.dep-list .mt {
        font-size: 0.7rem;
        color: var(--muted);
        white-space: nowrap;
      }
      ol.dep-list button:focus-visible {
        outline: 2px solid var(--gold);
        outline-offset: -2px;
      }

      footer {
        border-top: 1px solid var(--line);
        margin-top: 34px;
        padding: 18px 0 30px;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: space-between;
        font-size: 0.72rem;
        color: var(--muted);
      }
      footer b {
        color: var(--gold);
      }

      .search-results-layer {
        position: absolute;
        z-index: 8;
        inset: 0;
        pointer-events: none;
      }
      .search-results {
        position: sticky;
        top: 14px;
        margin: 14px 14px 14px auto;
        width: min(640px, calc(100% - 28px));
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 14px 14px 12px;
        border: 1px solid rgba(255, 225, 0, 0.35);
        border-radius: 14px;
        background: linear-gradient(165deg, rgba(2, 40, 82, 0.97), rgba(0, 21, 51, 0.97));
        backdrop-filter: blur(12px);
        box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.7);
        animation: ovIn 0.25s ease-out;
        pointer-events: auto;
      }
      .map-frame:has(.search-results:not([hidden])) .map-toolbar {
        display: none;
      }
      .search-results[hidden] {
        display: none;
      }
      .search-results-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
      }
      .search-results-title {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 0.68rem;
        font-weight: 800;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--gold-soft);
      }
      .search-results-title svg {
        width: 14px;
        height: 14px;
        color: var(--gold);
      }
      .search-results-count {
        color: var(--muted);
        font-size: 0.7rem;
        font-weight: 600;
        letter-spacing: 0.02em;
      }
      .search-results-close {
        flex-shrink: 0;
        border: 0;
        background: transparent;
        color: var(--muted);
        cursor: pointer;
        font: 700 0.8rem "Sora";
        padding: 2px 6px;
        border-radius: 6px;
      }
      .search-results-close:hover {
        color: var(--gold);
        background: rgba(255, 225, 0, 0.12);
      }
      .search-results-body {
        display: flex;
        flex-direction: column;
        gap: 8px;
        max-height: 26vh;
        overflow-y: auto;
      }
      .sr-list {
        display: flex;
        flex-direction: column;
        gap: 6px;
      }
      .sr-item {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 3px 12px;
        align-items: baseline;
        width: 100%;
        padding: 9px 12px;
        border: 1px solid rgba(122, 172, 207, 0.25);
        border-radius: 10px;
        background: rgba(0, 14, 28, 0.45);
        color: #d8e6f1;
        cursor: pointer;
        font: 600 0.72rem "Sora";
        text-align: left;
        transition: border-color 0.2s, background 0.2s, transform 0.2s;
      }
      .sr-item:hover {
        border-color: rgba(255, 225, 0, 0.55);
        background: rgba(255, 225, 0, 0.08);
        transform: translateX(2px);
      }
      .sr-item-dep {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        min-width: 0;
        font-weight: 800;
        color: var(--ink);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      .sr-item-dep i {
        width: 9px;
        height: 9px;
        border-radius: 3px;
        flex-shrink: 0;
      }
      .sr-item-sede {
        justify-self: end;
        max-width: 100%;
        color: var(--gold);
        font-size: 0.64rem;
        font-weight: 700;
        letter-spacing: 0.02em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .sr-item-prog {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
      }
      .sr-item-name {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      .sr-type {
        display: inline-grid;
        place-items: center;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        font-size: 0.55rem;
        font-weight: 900;
        flex-shrink: 0;
      }
      .sr-type.t-m {
        background: rgba(255, 225, 0, 0.2);
        color: var(--gold);
      }
      .sr-type.t-d {
        background: rgba(64, 112, 136, 0.35);
        color: #cfe3ef;
      }
      @media (max-width: 640px) {
        .search-results {
          top: 10px;
          margin: 10px;
          width: calc(100% - 20px);
        }
        .search-results-body {
          max-height: 24vh;
        }
      }
      @media (prefers-reduced-motion: reduce) {
        * {
          animation: none !important;
          transition: none !important;
        }
        .dep {
          opacity: 1;
        }
      }
    