:root{
  --gallery-forest:#123f35;
  --gallery-forest-deep:#082a24;
  --gallery-teal:#1f7d78;
  --gallery-mustard:#d49a20;
  --gallery-coral:#c85e3d;
  --gallery-brass:#d2ad55;
  --gallery-brass-light:#f0d48b;
  --gallery-walnut:#5b3422;
  --gallery-walnut-dark:#2d180f;
  --gallery-cream:#f3e7c8;
  --gallery-paper:#fbf2dc;
  --gallery-ink:#24261f;
  --gallery-wall:#b8c9ba;
  --gallery-line:#547258;
  --gallery-serif:Georgia,"Times New Roman",serif;
  --gallery-sans:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

html,body{background:var(--gallery-forest-deep)}
body.native-v24{font-family:var(--gallery-sans);color:var(--gallery-cream)}
body.native-v24 .topbar{
  background:
    linear-gradient(90deg,#ffffff08 1px,transparent 1px) 0 0/28px 100%,
    linear-gradient(180deg,#174b3f,#0a2c26 72%,#061f1b);
  border-bottom:3px solid var(--gallery-brass);
  box-shadow:inset 0 -1px #2a170e,0 8px 24px #1c100b66;
}
body.native-v24 .brand{align-items:center}
body.native-v24 .brand h1{
  color:var(--gallery-brass-light);
  font-family:var(--gallery-serif);
  font-size:18px;
  letter-spacing:.025em;
  text-shadow:0 1px #000;
}
body.native-v24 .brand small{color:#d8c28d;letter-spacing:.2em}
body.native-v24 .forest-mark{
  border:2px solid var(--gallery-brass);
  background:linear-gradient(145deg,#f0e6be,#c8d5b0);
  box-shadow:0 5px 14px #0008,inset 0 0 0 2px #ffffff70;
}
body.native-v24 .forest-mark-canopy{fill:#477a44}
body.native-v24 .forest-mark-trunk{fill:#71472b}

body.native-v24 .search{
  border:1px solid #b79245;
  border-radius:10px;
  background:#061c18;
  box-shadow:inset 0 0 0 2px #0005,0 2px 0 #6f4b22;
}
body.native-v24 .search input{color:#fff5d6;background:transparent}
body.native-v24 .search input::placeholder{color:#c3b58f}
body.native-v24 .search button,
body.native-v24 .topbar>button,
body.native-v24 .tree-stats-button{
  border-color:#9c7432;
  background:linear-gradient(180deg,#664126,#3a2115);
  color:#f7e9c6;
  box-shadow:inset 0 0 0 1px #e6bd5d35,0 2px 0 #100905;
}
body.native-v24 .topbar>button:hover,
body.native-v24 .topbar>button:focus-visible,
body.native-v24 .tree-stats-button:hover,
body.native-v24 .tree-stats-button:focus-visible,
body.native-v24 .search button:hover,
body.native-v24 .search button:focus-visible{
  border-color:var(--gallery-brass-light);
  background:linear-gradient(180deg,#80532c,#4c2b17);
  color:#fff8e7;
  outline:2px solid #f0d48b70;
  outline-offset:2px;
}
body.native-v24 .tree-stats-button{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 13px;border:1px solid #9c7432;border-radius:8px;font-size:12px;font-weight:850;text-decoration:none;white-space:nowrap}
body.native-v24 .filter-button[aria-expanded="true"],
body.native-v24 .timeline-dock-button[aria-pressed="true"],
body.native-v24 .journey-button[aria-expanded="true"]{
  border-color:var(--gallery-brass-light);
  background:linear-gradient(180deg,#246d5e,#124437);
  color:#fff3cc;
}

body.native-v24 #viewport{
  background-color:var(--gallery-wall);
  background-image:linear-gradient(#ffffff14,#184c3a0b),url("coaching-forest-wallpaper.webp");
  background-size:auto,628px 628px;
  background-repeat:repeat;
}
.native-paper{fill:url(#nativeBasketballWallpaper)}

/* The center line is a real chronological rail: walnut underneath, brass inlay above. */
.native-history-rail{
  stroke:var(--gallery-walnut-dark);
  stroke-width:18;
  stroke-linecap:square;
  vector-effect:non-scaling-stroke;
  filter:drop-shadow(0 4px 3px #1d120d66);
}
.native-history-line{
  stroke:var(--gallery-brass);
  stroke-width:2.5;
  vector-effect:non-scaling-stroke;
  filter:drop-shadow(0 1px #180c06);
}
.native-world-title{fill:var(--gallery-forest-deep);font-family:var(--gallery-serif);letter-spacing:.01em}
.native-world-subtitle{fill:#405647}
.native-timeline-year-tick{stroke:#f0cf7d;stroke-width:2}
.native-timeline-year-label{fill:var(--gallery-walnut-dark);font-family:var(--gallery-serif);font-weight:800}
.native-timeline-era-band{fill:#e6d8ae;stroke:#795034}
.native-timeline-era-layer>rect:nth-of-type(even){fill:#bfd2bd;stroke:#496d54}
.native-timeline-era-copy{fill:#293e30;font-family:var(--gallery-serif)}
.native-timeline-range{fill:#cf684d50;stroke:var(--gallery-coral)}
.native-timeline-scrubber line{stroke:var(--gallery-coral)}
.native-timeline-scrubber rect{fill:var(--gallery-walnut-dark);stroke:var(--gallery-brass)}
.native-timeline-scrubber text{fill:var(--gallery-cream);font-family:var(--gallery-serif)}
.native-timeline-milestone-stem{stroke:#865231}
.native-timeline-milestone-diamond{fill:#f5e4b7;stroke:#8f572e}
.native-timeline-milestone.importance-3 .native-timeline-milestone-diamond{fill:var(--gallery-coral);stroke:#552616}

/* Connectors remain beneath cards and become the main reading aid on selection. */
.native-edge{stroke:var(--gallery-line);stroke-width:2.25;opacity:.7}
.native-edge.is-hover-tree{stroke:#305d45;stroke-width:3.5}
.native-edge.is-lineage{stroke:var(--gallery-mustard);stroke-width:5.5;filter:drop-shadow(0 0 4px #f1c15baa)}
.native-edge.is-descendant{stroke:var(--gallery-teal);stroke-width:4.5;filter:drop-shadow(0 0 3px #1f7d7866)}
.native-edge.is-filter-match{stroke:var(--gallery-coral);stroke-width:4.5}

/* Gallery frames use deterministic color families without changing coach data or positions. */
.native-node{
  --frame-color:var(--gallery-forest);
  --frame-dark:#082a24;
  --frame-accent:var(--gallery-brass);
}
.native-node.frame-tone-teal{--frame-color:#236f6c;--frame-dark:#124641;--frame-accent:#e2bd58}
.native-node.frame-tone-mustard{--frame-color:#c68d1c;--frame-dark:#714b0d;--frame-accent:#f2db93}
.native-node.frame-tone-coral{--frame-color:#b85438;--frame-dark:#6d2b1d;--frame-accent:#efc16e}
.native-node.frame-tone-walnut{--frame-color:#65402a;--frame-dark:#341e13;--frame-accent:#dcb85d}
.native-node-frame{
  fill:var(--frame-color);
  stroke:var(--frame-dark);
  stroke-width:5.5;
  stroke-linejoin:round;
  vector-effect:non-scaling-stroke;
  filter:drop-shadow(0 9px 9px #25150d55);
  transition:stroke .18s ease,filter .18s ease,fill .18s ease;
}
.native-node-frame-inlay{
  fill:none;
  stroke:var(--frame-accent);
  stroke-width:2.25;
  stroke-linejoin:round;
  vector-effect:non-scaling-stroke;
  pointer-events:none;
}
.native-node-card{
  fill:var(--gallery-paper);
  stroke:#49301f;
  stroke-width:1.5;
  filter:none;
}
.native-node-portrait-mat{fill:#e4d8ba;stroke:#2c1c11;stroke-width:6;vector-effect:non-scaling-stroke}
.native-node-portrait-bezel{fill:none;stroke:var(--frame-accent);stroke-width:4;vector-effect:non-scaling-stroke;pointer-events:none}
.native-node-nameplate{fill:var(--gallery-forest-deep);stroke:#e2c16f;stroke-width:2.25;vector-effect:non-scaling-stroke;filter:drop-shadow(0 3px 2px #1c100a66)}
.native-node-stats-panel{fill:#f3dfad;stroke:#815b31;stroke-width:1.4;vector-effect:non-scaling-stroke}
.native-node-accent{fill:none;stroke:var(--frame-accent);stroke-width:3;vector-effect:non-scaling-stroke}
.native-node-crest{fill:var(--frame-color);stroke:var(--frame-accent);stroke-width:2;vector-effect:non-scaling-stroke}
.native-node-crest-gem,.native-node-corner-ornament{fill:var(--frame-accent);stroke:var(--frame-dark);stroke-width:1.25;vector-effect:non-scaling-stroke}
.native-node.is-root .native-node-frame{stroke:#603c19;stroke-width:6}
.native-node.is-root .native-node-frame-inlay{stroke:var(--gallery-brass-light);stroke-width:3}
.native-node.is-root .native-node-accent{stroke:var(--gallery-coral)}
.native-node.is-root .native-node-crest{transform:scale(1.14);transform-origin:center;transform-box:fill-box}
.native-node-portrait{filter:grayscale(.1) sepia(.27) saturate(.72) contrast(1.08) brightness(.98);pointer-events:none;transition:filter .2s ease,opacity .2s ease}
.native-node-portrait-wash{fill:#ecd6a8;opacity:.09;pointer-events:none;mix-blend-mode:multiply}
.native-node:hover .native-node-portrait,.native-node:focus-visible .native-node-portrait,.native-node.is-selected .native-node-portrait{filter:grayscale(.02) sepia(.1) saturate(.9) contrast(1.06)}
.native-node:hover .native-node-portrait-wash,.native-node:focus-visible .native-node-portrait-wash,.native-node.is-selected .native-node-portrait-wash{opacity:.035}
.native-node-initials-disc{fill:#d7c28f;stroke:#73532f;stroke-width:2;vector-effect:non-scaling-stroke}
.native-node-initials{fill:#394d38;font-family:var(--gallery-serif);font-size:27px;font-weight:900}
.native-node-name{fill:#fff1ba;font-family:var(--gallery-serif);font-size:14px;font-weight:900;letter-spacing:.015em;text-shadow:0 1px 0 #1c100a}
.native-node-team{display:none}
.native-node-seasons{fill:#4f4335;font-family:var(--gallery-serif);font-size:11px;font-weight:850}
.native-node-meta{display:none}
.native-node-record-badge rect{stroke-width:1.25;vector-effect:non-scaling-stroke}
.native-node-record-badge text{font-family:var(--gallery-sans);font-size:7.1px;font-weight:950;letter-spacing:.025em;pointer-events:none}
.native-node-record-badge.is-champion rect{fill:#d7a929;stroke:#70500b}.native-node-record-badge.is-champion text{fill:#281b05}
.native-node-record-badge.is-coach-of-year rect{fill:#b8583e;stroke:#662519}.native-node-record-badge.is-coach-of-year text{fill:#fff2d2}
.native-node-record-badge.is-active-coach rect{fill:#236f55;stroke:#0b3b2d}.native-node-record-badge.is-active-coach text{fill:#f4edc9}
.native-node-source{cursor:alias;outline:none}
.native-node-source-pennant{fill:var(--frame-color);stroke:var(--gallery-brass-light);stroke-width:2.5;stroke-linejoin:round;vector-effect:non-scaling-stroke;filter:drop-shadow(0 4px 4px #25150d55)}
.native-node-source text{fill:#fff1c4;font-size:17px;font-weight:950;pointer-events:none}
.native-node-source:hover .native-node-source-pennant,.native-node-source:focus .native-node-source-pennant{fill:var(--gallery-teal);stroke:#fff0bc;stroke-width:3.25}
.native-node:hover .native-node-frame,
.native-node:focus-visible .native-node-frame,
.native-node.is-hover-tree .native-node-frame{stroke:var(--gallery-brass-light);stroke-width:6;filter:drop-shadow(0 10px 12px #26130977)}
.native-node:focus-visible{filter:drop-shadow(0 0 8px #fff3ba)}
.native-node.is-guided-root .native-node-frame{stroke:var(--gallery-brass-light);stroke-width:7;filter:drop-shadow(0 0 11px #f0d48b88)}
.native-node.is-selected .native-node-frame{stroke:#fff0b1;stroke-width:7;filter:drop-shadow(0 0 13px #c85e3dcc)}
.native-node.is-selected .native-node-card{fill:#fff3d8;stroke:var(--gallery-coral);stroke-width:3;filter:none}
.native-node.is-selected .native-node-accent,.native-node.is-lineage .native-node-accent{stroke:var(--gallery-coral)}
.native-node.is-lineage .native-node-frame{stroke:var(--gallery-mustard);stroke-width:5}
.native-node.is-descendant .native-node-frame{stroke:#48a39b;stroke-width:5}
.native-node.is-descendant .native-node-card{fill:#edf2dd;stroke:var(--gallery-teal)}
.native-node.is-filter-match .native-node-frame{stroke:var(--gallery-coral);stroke-width:6;filter:drop-shadow(0 0 10px #c85e3d99)}
.native-node.is-filter-match .native-node-card{fill:#fff0d7;stroke:var(--gallery-coral)}
.native-node.is-filter-context{opacity:.56}
.native-edge.is-filter-context{opacity:.38}
.native-node.is-filter-hidden,.native-edge.is-filter-hidden,.native-tree-entry.is-filter-hidden{display:none}
.native-node.is-dragging .native-node-frame{stroke:#fff1b8;stroke-width:7;filter:drop-shadow(0 16px 15px #24150d88)}

/* Semantic zoom simplifies ornament, never the portrait-frame identity. */
.native-forest[data-lod="overview"] .native-node-frame,
.native-forest[data-lod="overview"] .native-node-frame-inlay,
.native-forest[data-lod="overview"] .native-node-nameplate,
.native-forest[data-lod="forest"] .native-node-frame,
.native-forest[data-lod="forest"] .native-node-frame-inlay,
.native-forest[data-lod="forest"] .native-node-nameplate{display:block}
.native-forest[data-lod="overview"] .native-node-card{fill:#f2e5c4;stroke:#4e6e52;filter:none;opacity:1;height:211px;transform:none}
.native-forest[data-lod="overview"] .native-node-frame{filter:none;stroke-width:3.5}
.native-forest[data-lod="overview"] .native-node-frame-inlay{stroke-width:1.5}
.native-forest[data-lod="overview"] .native-node-portrait,
.native-forest[data-lod="overview"] .native-node-initials-disc,
.native-forest[data-lod="overview"] .native-node-initials{opacity:.9;pointer-events:none}
.native-forest[data-lod="overview"] .native-node-crest,
.native-forest[data-lod="overview"] .native-node-crest-gem,
.native-forest[data-lod="overview"] .native-node-corner-ornament,
.native-forest[data-lod="overview"] .native-node-stats-panel,
.native-forest[data-lod="overview"] .native-node-team,
.native-forest[data-lod="overview"] .native-node-seasons,
.native-forest[data-lod="overview"] .native-node-meta,
.native-forest[data-lod="overview"] .native-node-record-badge,
.native-forest[data-lod="overview"] .native-node-source{opacity:0;pointer-events:none}
.native-forest[data-lod="overview"] .native-node.is-guided-tree .native-node-name,
.native-forest[data-lod="overview"] .native-node.is-guided-tree .native-node-team,
.native-forest[data-lod="overview"] .native-node.is-guided-tree .native-node-seasons,
.native-forest[data-lod="overview"] .native-node.is-guided-tree .native-node-stats-panel,
.native-forest[data-lod="overview"] .native-node.is-projection-branch .native-node-name,
.native-forest[data-lod="overview"] .native-node.is-projection-branch .native-node-team,
.native-forest[data-lod="overview"] .native-node.is-projection-branch .native-node-seasons,
.native-forest[data-lod="overview"] .native-node.is-projection-branch .native-node-stats-panel,
.native-forest[data-lod="overview"] .native-node.is-projection-target .native-node-name{opacity:1}
.native-forest[data-lod="overview"] .native-node.is-projection-target .native-node-team,
.native-forest[data-lod="overview"] .native-node.is-projection-target .native-node-seasons,
.native-forest[data-lod="overview"] .native-node.is-projection-target .native-node-stats-panel{opacity:1}
.native-forest[data-filtered-exhibition][data-lod="overview"] .native-node:not(.is-filter-hidden){pointer-events:auto}
.native-forest[data-filtered-exhibition][data-lod="overview"] .native-node:not(.is-filter-hidden) .native-node-portrait,
.native-forest[data-filtered-exhibition][data-lod="overview"] .native-node:not(.is-filter-hidden) .native-node-initials-disc,
.native-forest[data-filtered-exhibition][data-lod="overview"] .native-node:not(.is-filter-hidden) .native-node-initials,
.native-forest[data-filtered-exhibition][data-lod="overview"] .native-node:not(.is-filter-hidden) .native-node-name{opacity:1;pointer-events:none}
.native-forest[data-lod="forest"] .native-node-card{fill:#f8ecd0;stroke:#694a32;filter:none;height:211px;transform:none}
.native-forest[data-lod="forest"] .native-node-accent{transform:none}
.native-forest[data-lod="forest"] .native-node-portrait,
.native-forest[data-lod="forest"] .native-node-initials-disc,
.native-forest[data-lod="forest"] .native-node-initials,
.native-forest[data-lod="forest"] .native-node-team,
.native-forest[data-lod="forest"] .native-node-seasons,
.native-forest[data-lod="forest"] .native-node-stats-panel{opacity:1;pointer-events:none}
.native-forest[data-lod="forest"] .native-node-name{
  fill:#fff1ba;
  font-family:var(--gallery-serif);
  font-size:14px;
  font-weight:900;
  transform:none;
}
.native-forest[data-lod="forest"] .native-node-team{fill:#174f57;font-size:11px}
.native-forest[data-lod="forest"] .native-node-meta,
.native-forest[data-lod="forest"] .native-node-source{opacity:0;pointer-events:none}

.native-tree-entry-mark{stroke:var(--gallery-brass);stroke-width:7}
.native-tree-entry-stem{stroke:#6d875f}
.native-tree-entry-label{fill:#2d180f;font-family:var(--gallery-serif);font-size:11px;font-weight:900;opacity:0;paint-order:stroke;stroke:#efe0b9;stroke-width:4;stroke-linejoin:round;pointer-events:none;transition:opacity .15s ease}
.native-tree-entry:hover .native-tree-entry-label,.native-tree-entry:focus .native-tree-entry-label,.native-tree-entry.is-guided-root .native-tree-entry-label,.native-forest[data-filtered-exhibition] .native-tree-entry:not(.is-filter-hidden) .native-tree-entry-label{opacity:1}
.native-tree-entry:hover .native-tree-entry-mark,
.native-tree-entry:focus .native-tree-entry-mark,
.native-tree-entry.is-hover-tree .native-tree-entry-mark{stroke:var(--gallery-coral);filter:drop-shadow(0 0 5px #c85e3daa)}

/* Floating navigation reads as framed gallery labels, while retaining large targets. */
.history-guide{
  border:2px solid var(--gallery-brass);
  border-radius:7px;
  background:linear-gradient(180deg,#f6e9c7f5,#e8d09af5);
  box-shadow:inset 0 0 0 3px #5b3422,0 10px 25px #28170d55;
  backdrop-filter:blur(7px);
}
.history-guide strong{color:var(--gallery-forest-deep);font-family:var(--gallery-serif);font-size:14px}
.history-guide small{color:#a4492f}
.history-guide span{color:#604a32}
.history-guide button{
  border-color:#7c512a;
  border-radius:5px;
  background:linear-gradient(180deg,#805531,#4f2e1c);
  color:#f8e6b7;
}
.history-guide button:hover,.history-guide button:focus-visible{border-color:#f0d48b;background:#174c3f;outline:2px solid #f0d48b75}
.history-guide.is-free{border-color:#8e7545;opacity:.88}

.generation-guide{
  position:absolute;
  z-index:10;
  top:0;
  bottom:0;
  left:16px;
  width:118px;
  pointer-events:none;
  overflow:hidden;
}
.generation-guide[hidden]{display:none}
.generation-guide span{
  position:absolute;
  left:0;
  top:0;
  width:112px;
  padding:7px 9px;
  border:2px solid #6d431f;
  border-radius:5px;
  background:#d59b2be8;
  color:#2e1b10;
  font-family:var(--gallery-serif);
  font-size:10px;
  font-weight:900;
  letter-spacing:.045em;
  line-height:1.05;
  text-align:center;
  text-transform:uppercase;
  box-shadow:inset 0 0 0 2px #f2d77d99,0 4px 11px #2b170d48;
  transform:translateY(-50%);
}
.frame-key{position:absolute;z-index:12;left:154px;bottom:14px;width:178px;border:2px solid var(--gallery-brass);border-radius:5px;color:#f4e7c4;background:#123f35ef;box-shadow:inset 0 0 0 2px #3d2819,0 8px 20px #1b0e0955}
.frame-key summary{padding:8px 10px;cursor:pointer;font:800 11px var(--gallery-serif);list-style:none}.frame-key summary::-webkit-details-marker{display:none}.frame-key summary::after{content:'＋';float:right;color:var(--gallery-brass-light)}.frame-key[open] summary::after{content:'−'}
.frame-key>div{display:grid;grid-template-columns:auto 1fr;gap:7px 8px;align-items:center;padding:0 10px 10px}.frame-key-badge{min-width:48px;padding:3px 5px;border:1px solid #70500b;border-radius:4px;color:#281b05;background:#d7a929;font-size:7px;font-weight:950;text-align:center}.frame-key-badge.is-coy{border-color:#662519;color:#fff2d2;background:#b8583e}.frame-key-badge.is-active{border-color:#0b3b2d;color:#f4edc9;background:#236f55}.frame-key small{font-size:8px;line-height:1.15}
.generation-guide span:nth-child(3n+2){background:#b95037e8;color:#fff0cd}
.generation-guide span:nth-child(3n){background:#1b6a62e8;color:#fff0cd}

body.native-v24 .hint{
  border:2px solid #80552e;
  border-radius:6px;
  background:#f8edcff2;
  color:#273c31;
  box-shadow:inset 0 0 0 2px #d6b76799,0 9px 26px #2f1b1050;
}
body.native-v24 .hint strong{font-family:var(--gallery-serif)}
body.native-v24 .hint span{color:#65513a}
body.native-v24 .controls button{
  min-height:44px;
  border:2px solid #9b743b;
  border-radius:7px;
  background:linear-gradient(180deg,#183f36,#0a2822);
  color:#f6e8bd;
  box-shadow:inset 0 0 0 1px #e0b85c33,0 6px 15px #2b170d66;
}
body.native-v24 .controls button:hover,
body.native-v24 .controls button:focus-visible{border-color:var(--gallery-brass-light);background:#245c4f;outline:2px solid #f0d48b66}
body.native-v24 .controls .board-arrange-control[aria-pressed="true"]{border-color:#f0d48b!important;background:var(--gallery-coral)!important;color:#fff7df!important}
body.native-v24 .controls .scroll-mode-control{border-color:#b58c49;background:#51321f;color:#f5e4b8}
body.native-v24 .controls .scroll-mode-control[aria-pressed="true"]{border-color:#d8bd6b;background:#155044;color:#fff1c9}
body.native-v24 .zoom-readout{border:2px solid #a47c3d;background:#3b2317ed;color:#f4e4b7;font-family:var(--gallery-serif)}
body.native-v24 .minimap{
  border:3px solid #654126;
  border-radius:6px;
  background:
    linear-gradient(180deg,transparent 0 40%,#6a4029 41% 45%,transparent 46%),
    url("basketball-wallpaper.svg") center/160px 120px repeat;
  box-shadow:inset 0 0 0 2px #d5b260,0 8px 18px #28170d66;
}
body.native-v24 .minimap>div{border-color:var(--gallery-coral);background:#c85e3d24}

/* App panels share the same museum-catalog system and high-contrast type. */
body.native-v24 .filter-panel,
body.native-v24 .coach-explorer,
body.native-v24 .results-explorer,
body.native-v24 .historical-timeline,
body.native-v24 .atlas-tour,
body.native-v24 .discovery-card,
body.native-v24 .rules-card{
  border-color:#b59048;
  background:
    linear-gradient(90deg,#ffffff05 1px,transparent 1px) 0 0/22px 100%,
    linear-gradient(155deg,#17483df8,#092d27fb 68%,#061e1afb);
  color:#f7edd0;
  box-shadow:inset 0 0 0 2px #3a2317,0 24px 72px #150c08c7;
}
body.native-v24 .filter-header,
body.native-v24 .coach-explorer-header,
body.native-v24 .results-explorer-header,
body.native-v24 .timeline-header,
body.native-v24 .atlas-tour-header{
  border-bottom-color:#886432;
  background:linear-gradient(180deg,#71472c,#3f2618);
}
body.native-v24 .filter-header h2,
body.native-v24 .coach-explorer h2,
body.native-v24 .results-explorer h2,
body.native-v24 .timeline-heading strong,
body.native-v24 .rules-card h2,
body.native-v24 .atlas-tour strong{
  color:#f4db98;
  font-family:var(--gallery-serif);
  letter-spacing:.02em;
}
body.native-v24 .filter-panel label,
body.native-v24 .filter-panel legend,
body.native-v24 .coach-explorer h3,
body.native-v24 .results-explorer h3{color:#f0d58f}
body.native-v24 .filter-panel p,
body.native-v24 .filter-panel small,
body.native-v24 .results-explorer p,
body.native-v24 .coach-explorer p,
body.native-v24 .coach-season-history td,
body.native-v24 .coach-season-history th,
body.native-v24 .coach-explorer-scroll section>p,
body.native-v24 .coach-explorer-identity p{color:#f3ecd9}
body.native-v24 .filter-panel input,
body.native-v24 .filter-panel select{
  border-color:#a88344;
  background:#f6ecd1;
  color:#263b31;
}
body.native-v24 .filter-panel input:focus-visible,
body.native-v24 .filter-panel select:focus-visible{outline:3px solid #e5bf5c;outline-offset:2px}
body.native-v24 .filter-panel .team-filter-lineage{color:#d9c89b;font-family:var(--gallery-serif);font-style:italic}
body.native-v24 .coach-explorer-portrait,
body.native-v24 .results-rail img,
body.native-v24 .discovery-portrait{
  border:4px solid #6a4328;
  box-shadow:inset 0 0 0 2px #e4bd60,0 8px 16px #140b0766;
}
body.native-v24 .coach-explorer-portrait,
body.native-v24 .results-card-portrait,
body.native-v24 .discovery-portrait{background:#dfd3b5}
body.native-v24 .coach-explorer-portrait img,
body.native-v24 .results-card-portrait img,
body.native-v24 .discovery-portrait img{filter:grayscale(.1) sepia(.27) saturate(.72) contrast(1.08) brightness(.98)}
body.native-v24 .coach-explorer a,
body.native-v24 .rules-card a{color:#f4cf73}
body.native-v24 .coach-explorer a:hover,
body.native-v24 .rules-card a:hover{color:#fff1b9}
body.native-v24 .native-search-result>button{color:var(--gallery-ink)}
body.native-v24 .native-search-result>button small{color:#685845}
body.native-v24 .native-search-result>.reference-link{color:var(--gallery-coral)}
body.native-v24 .native-search-result:hover{background:#e9d7ad}

body.native-v24 .semantic-forest-notice.is-board-notice{
  border:2px solid #b78a42;
  background:#173d34f3;
  color:#f7e9c4;
  box-shadow:inset 0 0 0 2px #3d2819,0 10px 25px #1b0e0966;
}

@media(max-width:1100px){
  body.native-v24 .brand h1{font-size:16px}
  .generation-guide{width:94px;left:8px}
  .generation-guide span{width:88px;font-size:8px}
}

@media(max-width:720px){
  body.native-v24 .topbar{border-bottom-width:2px}
  body.native-v24 .brand h1{font-size:14px}
  body.native-v24 .tree-stats-button{height:36px;min-height:36px;padding:0 8px;font-size:10px}
  body.native-v24 #viewport{background-size:auto,420px 420px}
  .generation-guide{display:none!important}
  .frame-key{display:none}
  .history-guide{box-shadow:inset 0 0 0 2px #5b3422,0 6px 15px #28170d44}
  .history-guide strong{font-size:12px}
  body.native-v24 .controls button{min-height:40px}
  body.native-v24 .filter-panel,
  body.native-v24 .coach-explorer,
  body.native-v24 .results-explorer{box-shadow:inset 0 0 0 1px #3a2317,0 10px 30px #150c08aa}
  .native-node-frame{filter:drop-shadow(0 5px 5px #25150d44)}
}

@media(prefers-contrast:more){
  .native-edge{stroke:#315038;opacity:1}
  .native-node-card{stroke:#27170f;stroke-width:2.5}
  body.native-v24 .hint,body.native-v24 .history-guide{background:#fff3d5}
}

@media(prefers-reduced-motion:reduce){
  .native-node-frame,.native-history-rail{filter:none!important}
  body.native-v24 .brand:hover .forest-mark{transform:none}
}
