/* A Realm of Dragons v17 — Apotheosis visual identity and system presentation. */
:root{
  --v17-void:#060605;
  --v17-obsidian:#0b0b09;
  --v17-panel:#12110e;
  --v17-panel-2:#191711;
  --v17-gold:#d8b65f;
  --v17-gold-bright:#f5df9b;
  --v17-blood:#6e1f25;
  --v17-blood-bright:#a63c42;
  --v17-green:#233f31;
  --v17-blue:#314d61;
  --v17-cream:#f4e9c7;
  --v17-muted:#ada589;
  --v17-edge:rgba(230,197,113,.24);
  --v17-edge-strong:rgba(244,215,139,.48);
  --v17-shadow:0 24px 80px rgba(0,0,0,.48);
}
html{background:var(--v17-void)}
body.apotheosis-v17{
  background:
    radial-gradient(circle at 8% -10%,rgba(123,44,38,.18),transparent 34rem),
    radial-gradient(circle at 90% 0,rgba(205,165,77,.10),transparent 30rem),
    linear-gradient(180deg,#0e0d0a 0,#070706 100%);
  color:var(--v17-cream);
}
body.apotheosis-v17:before{
  content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;opacity:.32;
  background-image:linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.014) 1px,transparent 1px);
  background-size:64px 64px;mask-image:linear-gradient(to bottom,#000,transparent 70%);
}
.apotheosis-v17 .app-shell{isolation:isolate}
.apotheosis-v17 .topbar{
  min-height:82px;height:auto;padding:9px clamp(12px,2vw,30px);gap:18px;
  background:
    linear-gradient(90deg,rgba(117,35,38,.17),transparent 22%,transparent 72%,rgba(190,151,68,.08)),
    linear-gradient(180deg,rgba(23,21,16,.985),rgba(8,8,7,.985));
  border-bottom:1px solid rgba(239,208,126,.25);box-shadow:0 14px 42px rgba(0,0,0,.52),inset 0 -1px rgba(255,255,255,.025);
}
.apotheosis-v17 .topbar:after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:1px;background:linear-gradient(90deg,transparent,#9b6f32 20%,#f0d383 50%,#9b6f32 80%,transparent);opacity:.62}
.apotheosis-v17 .brand{min-width:360px;gap:13px;position:relative}
.apotheosis-v17 .v17-brand-seal{
  width:62px;height:62px;flex:0 0 62px;border-radius:14px;padding:3px;overflow:hidden;
  border:1px solid rgba(244,215,139,.52);background:linear-gradient(145deg,#d6b25a,#392210 36%,#0a0907 70%);
  box-shadow:0 0 0 1px rgba(0,0,0,.75),0 8px 26px rgba(0,0,0,.5),0 0 28px rgba(178,59,46,.12);
}
.apotheosis-v17 .v17-brand-seal:after{content:"";position:absolute;inset:3px;border-radius:10px;box-shadow:inset 0 0 0 1px rgba(255,238,191,.24);pointer-events:none}
.apotheosis-v17 .v17-brand-portrait{width:100%;height:100%;display:block;object-fit:cover;border-radius:10px}
.apotheosis-v17 .brand-text{gap:2px}
.apotheosis-v17 .brand-text small{font-size:7.5px;letter-spacing:.20em;color:#ae9870;font-weight:800}
.apotheosis-v17 .brand-text strong{font-size:25px;letter-spacing:.015em;color:#fff0c4;text-shadow:0 2px 16px rgba(0,0,0,.9)}
.apotheosis-v17 .brand-text em{font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:#d9b963;font-style:normal;font-family:inherit;font-weight:800}
.apotheosis-v17 .desktop-nav{gap:2px;border:1px solid rgba(230,197,113,.12);border-radius:13px;padding:3px;background:rgba(255,255,255,.018)}
.apotheosis-v17 .nav-item{min-width:44px;border:0!important;border-radius:9px;padding:0 11px;color:#aaa287;transition:.18s ease}
.apotheosis-v17 .nav-item:hover,.apotheosis-v17 .nav-item.active{color:#ffe6a0;background:linear-gradient(180deg,rgba(216,182,95,.17),rgba(124,83,31,.09));box-shadow:inset 0 0 0 1px rgba(232,201,121,.19)}
.apotheosis-v17 .button,.apotheosis-v17 .icon-action,.apotheosis-v17 .icon-button{transition:transform .16s ease,filter .16s ease,border-color .16s ease,background .16s ease}
.apotheosis-v17 .button:hover,.apotheosis-v17 .icon-action:hover,.apotheosis-v17 .icon-button:hover{transform:translateY(-1px);filter:brightness(1.1)}
.apotheosis-v17 .button{border-radius:10px;border-color:rgba(236,207,131,.19);background:linear-gradient(180deg,rgba(50,45,34,.94),rgba(28,26,20,.94));box-shadow:inset 0 1px rgba(255,255,255,.025)}
.apotheosis-v17 .button.gold{background:linear-gradient(180deg,#f0d786,#b98232);border-color:#f4d984;color:#181108;text-shadow:0 1px rgba(255,255,255,.35);box-shadow:0 8px 24px rgba(112,72,18,.25),inset 0 1px #fff0ba}
.apotheosis-v17 .button.danger{background:linear-gradient(180deg,#8e353b,#572126);border-color:#b94c52}
.apotheosis-v17 .page-view{background:
  radial-gradient(circle at 50% -8%,rgba(171,126,50,.10),transparent 38rem),
  radial-gradient(circle at 0 15%,rgba(103,32,36,.10),transparent 32rem),
  linear-gradient(180deg,#11100d,#080807 70%);}
.apotheosis-v17 .page-hero{position:relative;overflow:hidden;padding:24px 26px;border:1px solid rgba(228,195,111,.20);border-radius:19px;background:linear-gradient(125deg,rgba(66,48,24,.28),rgba(255,255,255,.018) 44%,rgba(84,29,31,.13));box-shadow:var(--v17-shadow)}
.apotheosis-v17 .page-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent 45%,rgba(214,181,94,.035));pointer-events:none}
.apotheosis-v17 .page-hero h1{font-size:clamp(34px,4vw,52px);line-height:1;color:#fff0c6;text-wrap:balance}
.apotheosis-v17 .page-hero p{max-width:900px;line-height:1.65;color:#bdb49a}
.apotheosis-v17 .metric-card,.apotheosis-v17 .house-card,.apotheosis-v17 .army-card,.apotheosis-v17 .admin-card,.apotheosis-v17 .panel,.apotheosis-v17 .table-shell{
  border-color:rgba(231,198,114,.16);background:linear-gradient(145deg,rgba(255,255,255,.032),rgba(255,255,255,.009));box-shadow:inset 0 1px rgba(255,255,255,.02),0 14px 38px rgba(0,0,0,.18)
}
.apotheosis-v17 .metric-card{position:relative;overflow:hidden}
.apotheosis-v17 .metric-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:2px;background:linear-gradient(#e7c86c,transparent)}
.apotheosis-v17 .metric-card strong{color:#f6d985}
.apotheosis-v17 .modal-backdrop{background:rgba(2,2,2,.80);backdrop-filter:blur(12px)}
.apotheosis-v17 .modal{width:min(820px,96vw);border-radius:20px;border-color:rgba(239,210,132,.34);background:linear-gradient(155deg,#1b1812,#0d0c0a 72%);box-shadow:0 42px 120px rgba(0,0,0,.72),inset 0 1px rgba(255,255,255,.035)}
.apotheosis-v17 .field input,.apotheosis-v17 .field select,.apotheosis-v17 .field textarea,.apotheosis-v17 .filter-toolbar input,.apotheosis-v17 .filter-toolbar select{background:#0e0e0c;border-color:rgba(224,190,105,.19);border-radius:10px;color:#eee2bf}
.apotheosis-v17 .field input:focus,.apotheosis-v17 .field select:focus,.apotheosis-v17 .field textarea:focus{border-color:#d1ad58;box-shadow:0 0 0 3px rgba(209,173,88,.10)}
.apotheosis-v17 .large-seal{overflow:hidden;padding:3px;border-radius:20px;width:118px;height:118px;background:linear-gradient(145deg,#e2c166,#3e2514);box-shadow:0 20px 60px rgba(0,0,0,.45)}
.apotheosis-v17 .large-seal img{width:100%;height:100%;object-fit:cover;border-radius:16px}

/* Realm gateway and retention layer */
.v17-realm-gateway{max-width:1500px;margin:0 auto 24px;min-height:390px;display:grid;grid-template-columns:minmax(300px,480px) 1fr;overflow:hidden;border:1px solid rgba(243,211,127,.29);border-radius:24px;background:linear-gradient(115deg,rgba(112,34,36,.16),rgba(24,22,17,.96) 46%,rgba(203,159,65,.08));box-shadow:0 32px 100px rgba(0,0,0,.48)}
.v17-gateway-art{position:relative;min-height:390px;overflow:hidden;background:#0b0907}
.v17-gateway-art img{width:100%;height:100%;position:absolute;inset:0;object-fit:cover;object-position:center 38%;filter:saturate(.92) contrast(1.04)}
.v17-gateway-art:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent 52%,#15120e 100%),linear-gradient(0deg,rgba(5,5,4,.55),transparent 38%)}
.v17-gateway-art span{position:absolute;inset:14px;border:1px solid rgba(255,223,144,.27);border-radius:15px;z-index:2;pointer-events:none}
.v17-gateway-copy{padding:clamp(28px,4vw,60px);align-self:center;position:relative}
.v17-gateway-copy:before{content:"♛";position:absolute;right:25px;top:12px;font:100px Georgia,serif;color:rgba(226,190,99,.045)}
.v17-gateway-copy>small,.v17-heading small{color:#d2ad55;letter-spacing:.20em;font-size:9px;font-weight:900}
.v17-gateway-copy h1{margin:8px 0 12px;font:700 clamp(38px,5vw,65px)/.98 Georgia,serif;color:#fff0c4;max-width:730px}
.v17-gateway-copy p{max-width:760px;line-height:1.75;color:#c3b89a;font-size:15px}
.v17-gateway-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:24px 0}
.v17-gateway-stats b{padding:12px;border:1px solid rgba(229,195,111,.15);border-radius:12px;background:rgba(255,255,255,.018);font:700 24px Georgia,serif;color:#f1d27f}
.v17-gateway-stats em{display:block;margin-top:4px;font:800 8px/1.2 system-ui,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:#928b76}
.v17-gateway-actions{display:flex;flex-wrap:wrap;gap:8px}
.v17-engagement-deck{max-width:1500px;margin:0 auto 26px}
.v17-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin:0 0 12px}
.v17-heading h2{margin:4px 0 4px;font:700 28px Georgia,serif;color:#fff0c7}
.v17-heading p{margin:0;color:#aaa187}
.v17-hook-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.v17-hook-grid article{min-height:155px;display:grid;grid-template-columns:46px 1fr;gap:12px;padding:16px;border:1px solid rgba(227,195,113,.16);border-radius:15px;background:linear-gradient(145deg,rgba(255,255,255,.027),rgba(255,255,255,.008));position:relative;overflow:hidden}
.v17-hook-grid article:after{content:"";position:absolute;inset:auto -40px -60px auto;width:140px;height:140px;border:1px solid rgba(210,173,82,.06);border-radius:50%}
.v17-hook-grid article>span{width:44px;height:44px;border:1px solid rgba(236,204,122,.26);border-radius:12px;display:grid;place-items:center;color:#edcf7c;background:rgba(194,145,49,.08);font-size:21px}
.v17-hook-grid h3{margin:2px 0 7px;color:#f1e4bd;font:700 18px Georgia,serif}
.v17-hook-grid p{margin:0;color:#aaa187;font-size:12px;line-height:1.55}
.v17-text-button{margin-top:12px;padding:0;border:0;background:transparent;color:#daba6a;font-weight:900;font-size:11px;position:relative;z-index:1}
.v17-role-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.v17-role-grid article{display:grid;grid-template-columns:48px 1fr;gap:12px;padding:14px;border:1px solid var(--v17-edge);border-radius:14px;background:rgba(255,255,255,.018)}
.v17-role-grid article>span{font-size:25px;color:#edcf7e}
.v17-role-grid h3{margin:0 0 6px;font:700 18px Georgia,serif;color:#f0e2bb}
.v17-role-grid p{margin:0 0 10px;color:#aaa187;line-height:1.5;font-size:12px}

/* Map visual overhaul */
.apotheosis-v17 .atlas-view{height:calc(100dvh - 82px)}
.apotheosis-v17 .map-viewport{background:#0c252d}
.apotheosis-v17 .map-shade{box-shadow:inset 0 0 120px rgba(0,0,0,.62),inset 0 0 0 1px rgba(242,211,130,.14);background:linear-gradient(180deg,rgba(7,7,6,.08),transparent 24%,transparent 72%,rgba(6,6,5,.26))}
.apotheosis-v17 .atlas-search-panel{top:18px;left:18px}
.apotheosis-v17 .search-box{height:54px;border-radius:15px;border-color:rgba(239,207,124,.30);background:rgba(9,9,8,.92);box-shadow:0 16px 50px rgba(0,0,0,.45);backdrop-filter:blur(18px)}
.apotheosis-v17 .preset-bar{top:18px;border-radius:13px;background:rgba(9,9,8,.89);border-color:rgba(237,205,121,.22);backdrop-filter:blur(16px)}
.apotheosis-v17 .preset-bar button{padding:11px 14px}
.apotheosis-v17 .zoom-controls button,.apotheosis-v17 .map-tools button{border-color:rgba(239,208,127,.26);background:linear-gradient(180deg,rgba(20,19,16,.96),rgba(8,8,7,.96));box-shadow:0 10px 30px rgba(0,0,0,.36)}
.apotheosis-v17 .map-tools{top:248px}
.apotheosis-v17 .map-tools button{min-width:150px;height:44px;border-radius:12px}
.apotheosis-v17 .map-tools button:hover{border-color:rgba(245,217,144,.58)}
.apotheosis-v17 .map-readout{bottom:18px;padding:10px 14px;border-radius:12px;background:rgba(5,7,7,.84);border-color:rgba(237,205,122,.19);backdrop-filter:blur(14px)}
#v17SectorReadout{color:#d8bd75!important}
.apotheosis-v17 .drawer,.apotheosis-v17 .detail-sheet{background:linear-gradient(180deg,rgba(20,18,14,.985),rgba(8,8,7,.985));border-color:rgba(236,202,117,.24);box-shadow:0 20px 80px rgba(0,0,0,.62);backdrop-filter:blur(22px)}
.apotheosis-v17 .marker-ring{fill:#15120c;stroke:#f4d57f;stroke-width:3.2;filter:drop-shadow(0 4px 8px rgba(0,0,0,.8))}
.apotheosis-v17 .location-marker.selected .marker-ring{stroke:#fff0b3;filter:drop-shadow(0 0 8px #e6b94f)}
.apotheosis-v17 .marker-label-bg{fill:rgba(10,9,7,.92);stroke:rgba(241,210,128,.54)}
.apotheosis-v17 .marker-label{fill:#fff0c6;text-shadow:0 2px 5px #000}

/* Adaptive survey grid: masked to the supporting land layer and never interactive. */
#gridLayer{display:none!important}
#v17SurveyGridLayer{pointer-events:none;opacity:var(--survey-opacity,.34);mix-blend-mode:screen}
#v17SurveyGridLayer .v17-survey-cell polygon{fill:rgba(238,207,126,.018);stroke:rgba(240,211,139,.52);stroke-width:1.2;vector-effect:non-scaling-stroke}
#v17SurveyGridLayer .v17-survey-cell text{fill:rgba(255,227,153,.78);font:800 10px system-ui,sans-serif;letter-spacing:.08em;text-anchor:middle;paint-order:stroke;stroke:rgba(0,0,0,.84);stroke-width:3;vector-effect:non-scaling-stroke}
#v17SurveyGridLayer[data-mode="claims"] .v17-survey-cell polygon{stroke:rgba(242,190,69,.72);fill:rgba(196,135,36,.028)}
#v17SurveyGridLayer[data-mode="military"] .v17-survey-cell polygon{stroke:rgba(207,76,75,.72);fill:rgba(138,40,43,.035)}
.v17-survey-panel{margin-top:15px;padding:13px;border:1px solid rgba(231,198,114,.20);border-radius:13px;background:linear-gradient(145deg,rgba(207,166,74,.07),rgba(255,255,255,.015))}
.v17-survey-panel>small{color:#d7b65d;letter-spacing:.15em;font-weight:900;font-size:9px}
.v17-survey-panel>p{color:#aaa187;line-height:1.5;font-size:11px}
.v17-check{display:flex!important;align-items:flex-start;gap:9px;padding:10px;border:1px solid rgba(225,193,110,.13);border-radius:10px;background:rgba(255,255,255,.018);color:#c7bda0;font-size:11px;line-height:1.4}
.v17-check input{accent-color:#d7af55;margin-top:2px}
.v17-survey-explainer{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:12px 0}
.v17-survey-explainer article{display:grid;grid-template-columns:34px 1fr;gap:9px;padding:12px;border:1px solid var(--v17-edge);border-radius:12px;background:rgba(255,255,255,.018)}
.v17-survey-explainer article>span{font-size:20px;color:#e8c975}.v17-survey-explainer p{margin:4px 0 0;color:#aaa187;font-size:11px;line-height:1.45}

/* Border language and parcel rendering */
#parcelLayer .holding-parcel{transition:fill-opacity .2s ease,stroke-opacity .2s ease;stroke-linejoin:round;stroke-linecap:round}
#parcelLayer .v17-border-settled{stroke-dasharray:none}
#parcelLayer .v17-border-frontier{stroke-dasharray:12 8!important;stroke-opacity:.76!important}
#parcelLayer .v17-border-disputed,#parcelLayer .v17-active-claim{stroke:#e56b62!important;stroke-dasharray:9 6!important;stroke-width:2.2!important;filter:drop-shadow(0 0 4px rgba(205,66,63,.28))}
#parcelLayer .v17-border-closed{stroke:#d84b50!important;stroke-dasharray:2 5!important;stroke-width:2.4!important}
#parcelLayer .v17-border-fortified{stroke-width:3!important;stroke-dasharray:16 4 3 4!important;filter:drop-shadow(0 0 3px rgba(240,209,126,.20))}
#parcelLayer .v17-border-open{stroke-dasharray:18 10!important;stroke-opacity:.52!important}
#parcelLayer .v17-tier-regional,#parcelLayer .v17-tier-royal{stroke-width:2.7!important}
#parcelLayer .v17-natural-border{stroke-linecap:round}
.v17-border-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:10px}
.v17-border-summary>div{padding:12px;border:1px solid var(--v17-edge);border-radius:11px;background:rgba(255,255,255,.018)}
.v17-border-summary small,.v17-border-summary strong{display:block}.v17-border-summary small{color:#948b73;font-size:8px;letter-spacing:.12em}.v17-border-summary strong{margin-top:4px;color:#eed69a;font-size:12px}
.v17-neighbour-list{padding:12px;border:1px solid var(--v17-edge);border-radius:12px;background:rgba(255,255,255,.014)}
.v17-neighbour-list>small{display:block;color:#d6b45e;letter-spacing:.15em;font-size:8px;margin-bottom:7px}
.v17-neighbour-list>span{display:flex;justify-content:space-between;gap:12px;padding:6px 0;border-top:1px solid rgba(255,255,255,.04)}
.v17-neighbour-list em{color:#938b75;font-style:normal;font-size:11px}

/* Claim, frontier and integrity interfaces */
.v17-list{display:grid;gap:8px;margin:12px 0}
.v17-list article{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:10px;align-items:start;padding:12px;border:1px solid var(--v17-edge);border-radius:12px;background:rgba(255,255,255,.018)}
.v17-list article>span{width:32px;height:32px;display:grid;place-items:center;border-radius:10px;background:rgba(208,165,70,.09);color:#ebca74}
.v17-list strong,.v17-list small{display:block}.v17-list strong{color:#f1e2b8}.v17-list small{margin-top:4px;color:#a49b82;font-size:10px;line-height:1.5}.v17-list b{color:#e0bf69;font-size:11px}
.v17-claim-row.status-contested{border-left:3px solid #b74449}.v17-claim-row.status-approved{border-left:3px solid #6c9f71}.v17-claim-row.status-overdue{border-left:3px solid #cf8d42}
.v17-claim-dossier{display:grid;grid-template-columns:58px repeat(4,1fr);gap:8px;margin-bottom:16px}
.v17-claim-dossier>div{padding:11px;border:1px solid var(--v17-edge);border-radius:11px;background:rgba(255,255,255,.018)}
.v17-claim-dossier .v17-dossier-seal{display:grid;place-items:center;font-size:30px;color:#e5c36f;background:rgba(191,141,47,.10)}
.v17-claim-dossier small,.v17-claim-dossier strong{display:block}.v17-claim-dossier small{font-size:8px;color:#908873}.v17-claim-dossier strong{margin-top:4px;color:#ead8a9;font-size:11px}
.v17-blueprint-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;max-height:65dvh;overflow:auto;padding-right:4px}
.v17-blueprint-grid article{display:grid;grid-template-columns:44px 1fr;gap:12px;padding:14px;border:1px solid var(--v17-edge);border-radius:14px;background:linear-gradient(145deg,rgba(255,255,255,.025),rgba(255,255,255,.007))}
.v17-blueprint-grid article>span{font-size:26px;color:#e4c36c}.v17-blueprint-grid small{color:#b0904e;letter-spacing:.12em;font-size:8px}.v17-blueprint-grid h3{margin:3px 0 7px;color:#f0dfb1;font:700 17px Georgia,serif}.v17-blueprint-grid p{color:#a69d84;font-size:11px;line-height:1.5}.v17-blueprint-grid b{display:block;margin:8px 0;color:#cdbb8e;font-size:10px}
.v17-placement-integrity{grid-column:1/-1;margin:10px 0 4px;padding:12px;border:1px solid rgba(99,156,108,.40);border-radius:13px;background:rgba(69,120,77,.08)}
.v17-placement-integrity>div{display:grid;grid-template-columns:38px 1fr;gap:10px}.v17-placement-integrity>div>span{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:rgba(86,151,96,.15);color:#8ac292;font-size:20px}
.v17-placement-integrity small{display:block;color:#98b99e;letter-spacing:.12em;font-size:8px}.v17-placement-integrity strong{display:block;margin-top:3px;color:#d9ebd7}.v17-placement-integrity p{margin:5px 0;color:#a6ad9d;font-size:11px;line-height:1.45}
.v17-placement-integrity.warn{border-color:rgba(205,145,63,.50);background:rgba(166,106,35,.08)}.v17-placement-integrity.warn>div>span{background:rgba(205,145,63,.15);color:#e2b564}
.v17-placement-integrity.danger{border-color:rgba(203,76,78,.55);background:rgba(151,43,46,.10)}.v17-placement-integrity.danger>div>span{background:rgba(203,76,78,.16);color:#ef777a}

/* Travel, rumours, council and legacy */
.v17-route-result{margin-top:16px;padding:16px;border:1px solid var(--v17-edge-strong);border-radius:15px;background:linear-gradient(145deg,rgba(209,171,77,.09),rgba(255,255,255,.012))}
.v17-route-result header{display:flex;align-items:center;gap:12px}.v17-route-result header>span{font-size:28px;color:#e5c36e}.v17-route-result h3{margin:2px 0;color:#f0dfb0;font:700 22px Georgia,serif}.v17-route-result header small{color:#b9984d;letter-spacing:.15em;font-size:8px}.v17-route-result>div{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:14px 0}.v17-route-result>div>b{padding:10px;border:1px solid rgba(229,195,111,.15);border-radius:10px;color:#ebcd7a;font:700 20px Georgia,serif}.v17-route-result em{display:block;color:#918873;font:800 8px system-ui,sans-serif;text-transform:uppercase;letter-spacing:.1em}.v17-route-result p{color:#aaa187;font-size:11px;line-height:1.55}
.v17-rumour-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;max-height:65dvh;overflow:auto}
.v17-rumour-grid article{padding:14px;border:1px solid var(--v17-edge);border-radius:14px;background:rgba(255,255,255,.018)}
.v17-rumour-grid header{display:grid;grid-template-columns:34px 1fr;gap:9px}.v17-rumour-grid header>span{color:#e5c26a;font-size:22px}.v17-rumour-grid h3{margin:3px 0;color:#efdfb4;font:700 17px Georgia,serif}.v17-rumour-grid small,.v17-rumour-grid footer{color:#958d77;font-size:9px}.v17-rumour-grid p{color:#b5ab90;line-height:1.55;font-size:11px}.v17-rumour-grid footer{border-top:1px solid rgba(255,255,255,.05);padding-top:8px}
.v17-vote-board{display:grid;gap:7px;max-height:62dvh;overflow:auto}.v17-vote-board article{display:grid;grid-template-columns:minmax(160px,1fr) 100px auto;gap:10px;align-items:center;padding:10px;border:1px solid var(--v17-edge);border-radius:11px;background:rgba(255,255,255,.015)}.v17-vote-board strong{color:#e9d7a8}.v17-vote-board span{font-size:10px;text-transform:uppercase;font-weight:900}.v17-vote-board .vote-support{color:#80b783}.v17-vote-board .vote-oppose{color:#d0696c}.v17-vote-board .vote-abstain{color:#a59d88}.v17-vote-board button{border:1px solid var(--v17-edge);border-radius:7px;background:#17140f;color:#d5c49a;padding:5px 7px;font-size:9px}
.v17-legacy-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;max-height:65dvh;overflow:auto}.v17-legacy-grid article{padding:14px;border:1px solid var(--v17-edge);border-radius:14px;background:rgba(255,255,255,.018)}.v17-legacy-grid header{display:grid;grid-template-columns:38px 1fr;gap:9px}.v17-legacy-grid header>span{font-size:25px;color:#e6c46d}.v17-legacy-grid h3{margin:2px 0;color:#eedcb0;font:700 17px Georgia,serif}.v17-legacy-grid small{color:#a68b4b;font-size:8px;letter-spacing:.12em}.v17-legacy-grid p{color:#aaa187;font-size:11px;line-height:1.5}.v17-progress{height:8px;border-radius:99px;background:rgba(255,255,255,.055);overflow:hidden}.v17-progress i{display:block;width:var(--progress,0%);height:100%;background:linear-gradient(90deg,#815126,#e6c66f);border-radius:inherit}.v17-legacy-grid footer{display:flex;align-items:center;gap:9px;margin-top:9px}.v17-legacy-grid footer b{color:#ddbd68}.v17-legacy-grid footer em{margin-left:auto;color:#99907a;font-size:9px;font-style:normal;text-transform:uppercase}.v17-legacy-grid footer button{border:1px solid var(--v17-edge);border-radius:7px;background:transparent;color:#dbc171;padding:5px 8px;font-size:9px}

/* Quality and release identity */
.v17-apotheosis-admin{border-color:rgba(240,207,124,.38)!important;background:radial-gradient(circle at 100% 0,rgba(149,43,43,.16),transparent 13rem),linear-gradient(145deg,rgba(216,177,83,.08),rgba(255,255,255,.014))!important}
.v17-audit-list{display:grid;gap:8px;margin:12px 0}.v17-audit-list article{display:grid;grid-template-columns:34px 1fr auto;gap:10px;padding:12px;border:1px solid var(--v17-edge);border-radius:12px;background:rgba(255,255,255,.016)}.v17-audit-list article>span{width:32px;height:32px;display:grid;place-items:center;border-radius:9px}.v17-audit-list .pass>span{background:rgba(72,137,80,.15);color:#83bc89}.v17-audit-list .review>span{background:rgba(188,126,47,.15);color:#daa65d}.v17-audit-list .fail>span{background:rgba(177,54,58,.16);color:#e07275}.v17-audit-list strong{color:#e8d6a8}.v17-audit-list p{margin:4px 0;color:#a59c83;font-size:11px}.v17-audit-list b{font-size:9px;text-transform:uppercase;color:#b8aa86}
.v17-release-mark{position:fixed;right:14px;bottom:14px;z-index:85;display:flex;align-items:center;gap:8px;padding:7px 11px;border:1px solid rgba(238,207,126,.23);border-radius:12px;background:rgba(8,8,7,.80);backdrop-filter:blur(14px);box-shadow:0 12px 30px rgba(0,0,0,.32);pointer-events:none}
.v17-release-mark>span{color:#e0bd65}.v17-release-mark strong,.v17-release-mark small{display:block}.v17-release-mark strong{font-size:8px;letter-spacing:.15em;color:#e8cf8e}.v17-release-mark small{font-size:8px;color:#89816e}

@media(max-width:1360px){
  .apotheosis-v17 .brand{min-width:300px}.apotheosis-v17 .brand-text small{display:none}.apotheosis-v17 .nav-item{padding-inline:8px}.apotheosis-v17 .nav-item span{display:none}
  .v17-realm-gateway{grid-template-columns:380px 1fr}.v17-hook-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:900px){
  .apotheosis-v17 .topbar{min-height:72px;height:72px;padding:7px 11px}.apotheosis-v17 .atlas-view{height:calc(100dvh - 72px)}
  .apotheosis-v17 .brand{min-width:0}.apotheosis-v17 .v17-brand-seal{width:52px;height:52px;flex-basis:52px;border-radius:12px}.apotheosis-v17 .brand-text strong{font-size:21px}.apotheosis-v17 .brand-text em{font-size:8px}
  .v17-realm-gateway{grid-template-columns:1fr;min-height:auto;border-radius:18px}.v17-gateway-art{min-height:300px}.v17-gateway-art:after{background:linear-gradient(0deg,#15120e 0,transparent 50%)}.v17-gateway-copy{padding:26px}.v17-gateway-stats{grid-template-columns:1fr 1fr}
  .v17-hook-grid{grid-template-columns:1fr 1fr}.v17-heading{display:block}.v17-heading .button-row{margin-top:10px}
  .apotheosis-v17 .map-tools{top:316px;right:10px}.apotheosis-v17 .map-tools button{min-width:48px;width:48px;padding:0;justify-content:center}.apotheosis-v17 .map-tools button b{display:none}
  .apotheosis-v17 .atlas-search-panel{top:12px;left:12px}.apotheosis-v17 .preset-bar{top:auto}.v17-release-mark{display:none}
  .v17-blueprint-grid,.v17-rumour-grid,.v17-legacy-grid{grid-template-columns:1fr}.v17-role-grid{grid-template-columns:1fr}.v17-survey-explainer{grid-template-columns:1fr}
}
@media(max-width:620px){
  .apotheosis-v17 .brand-text strong{font-size:19px}.apotheosis-v17 .brand-text em{display:block;max-width:160px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.apotheosis-v17 .topbar-actions .button.gold{padding:9px 11px;font-size:11px}
  .v17-gateway-art{min-height:260px}.v17-gateway-copy{padding:22px}.v17-gateway-copy h1{font-size:42px}.v17-gateway-copy p{font-size:13px}.v17-gateway-stats{grid-template-columns:1fr 1fr}.v17-gateway-stats b{font-size:20px}.v17-gateway-actions .button{flex:1 1 100%}
  .v17-hook-grid{grid-template-columns:1fr}.v17-hook-grid article{min-height:auto}.v17-border-summary{grid-template-columns:1fr}.v17-claim-dossier{grid-template-columns:1fr 1fr}.v17-claim-dossier .v17-dossier-seal{grid-row:span 2}.v17-route-result>div{grid-template-columns:1fr 1fr}.v17-vote-board article{grid-template-columns:1fr auto}.v17-vote-board article>div{grid-column:1/-1}.v17-list article{grid-template-columns:32px 1fr}.v17-list article>button,.v17-list article>b{grid-column:2;justify-self:start}
  .apotheosis-v17 .modal{padding:14px}.v17-blueprint-grid{max-height:none}.apotheosis-v17 .map-readout{bottom:128px}
}
@media(max-width:400px){
  .apotheosis-v17 .v17-brand-seal{width:48px;height:48px;flex-basis:48px}.apotheosis-v17 .brand-text strong{font-size:17px}.apotheosis-v17 .brand-text em{font-size:7px;max-width:135px}
  .v17-gateway-stats{grid-template-columns:1fr}.v17-route-result>div{grid-template-columns:1fr}.v17-claim-dossier{grid-template-columns:1fr}.v17-claim-dossier .v17-dossier-seal{grid-row:auto}.apotheosis-v17 .map-tools{top:300px}
}
@media(prefers-reduced-motion:reduce){.apotheosis-v17 *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.apotheosis-v17 .v16-release-ribbon{display:none!important}
