/* Team Finder: styled to match glensara-events.com (style guide in the app spec, 26 Nov 2026) */
@font-face { font-family: Cinzel; font-weight: 500; font-display: swap; src: url(/fonts/cinzel-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: Cinzel; font-weight: 700; font-display: swap; src: url(/fonts/cinzel-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: Manrope; font-weight: 400; font-display: swap; src: url(/fonts/manrope-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Manrope; font-weight: 600; font-display: swap; src: url(/fonts/manrope-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: Manrope; font-weight: 800; font-display: swap; src: url(/fonts/manrope-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Kantumruy Pro'; font-weight: 400; font-display: swap; src: url(/fonts/kantumruy-pro-khmer-400-normal.woff2) format('woff2'); unicode-range: U+1780-17FF, U+19E0-19FF, U+200C-200D, U+25CC; }
@font-face { font-family: 'Kantumruy Pro'; font-weight: 600; font-display: swap; src: url(/fonts/kantumruy-pro-khmer-600-normal.woff2) format('woff2'); unicode-range: U+1780-17FF, U+19E0-19FF, U+200C-200D, U+25CC; }
@font-face { font-family: 'Kantumruy Pro'; font-weight: 700; font-display: swap; src: url(/fonts/kantumruy-pro-khmer-700-normal.woff2) format('woff2'); unicode-range: U+1780-17FF, U+19E0-19FF, U+200C-200D, U+25CC; }

:root {
  --ink: #0a0907; --charcoal: #17191a; --slate: #2a2d2e; --highland: #193047;
  --gold: #b18a57; --gold-light: #dcb878; --gold-hi: #c9a26c; --bronze: #7c5735;
  --cream: #f3ead8; --ivory: #d8d0c3; --muted: #b9ab92; --stone: #8d8982;
  --body: #e9e0cf; --heading: #f6eedf; --green: #5f9e6e; --rust: #b5523b;
  /* Surfaces, stepped up from the page so panels read as panels.
     Warm tints of the page colour, so they sit with the gold instead of going grey. */
  --panel: #221f1a; --panel-hi: #2e2a23; --field: #11100d;
  --line: rgba(220, 184, 120, .2); --line-strong: rgba(220, 184, 120, .5); --line-soft: rgba(220, 184, 120, .12);
  --lift: 0 12px 28px -14px rgba(0, 0, 0, .85), 0 2px 6px rgba(0, 0, 0, .35);
  --display: Cinzel, 'Kantumruy Pro', Georgia, serif;
  --sans: Manrope, 'Kantumruy Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--bronze) var(--ink); }
::selection { background: var(--gold); color: #111; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body { margin: 0; background: var(--ink); color: var(--body); font: 400 16px/1.6 var(--sans); }
body.lang-km { font-size: 17px; line-height: 1.8; }
a { color: var(--gold-light); text-underline-offset: 3px; }
a:hover { color: var(--gold-hi); }
img, svg { max-width: 100%; }
h1, h2, h3, .h2, .h3 { font-family: var(--display); font-weight: 500; color: var(--heading); text-transform: uppercase; letter-spacing: .02em; line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
p { text-wrap: pretty; }
h1 { font-size: clamp(32px, 7vw, 56px); }
h2, .h2 { font-size: clamp(24px, 4.5vw, 36px); }
h3, .h3 { font-size: clamp(18px, 3vw, 22px); font-weight: 700; }
.lang-km h1, .lang-km h2, .lang-km h3, .lang-km .h2, .lang-km .h3 { text-transform: none; letter-spacing: 0; line-height: 1.5; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(17px, 2.6vw, 20px); color: var(--ivory); max-width: 46em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

.gold-rule { height: 5px; background: linear-gradient(90deg, var(--bronze), var(--gold-light), var(--gold), var(--bronze)); }
.top { position: sticky; top: 0; z-index: 10; background: rgba(10, 9, 7, .9); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(177, 138, 87, .18); }
.top-in { max-width: 1180px; margin: 0 auto; padding: 10px 16px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--heading); }
.brand img { width: 40px; height: 40px; }
.brand span { display: flex; flex-direction: column; line-height: 1.1; }
.brand b { font: 700 16px var(--display); letter-spacing: .06em; text-transform: uppercase; }
.brand small { font: 800 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; grid-column: 1 / -1; grid-row: 2; }
.nav a, .navlink { font: 800 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ivory); text-decoration: none; padding: 4px 0; }
.nav a.on, .nav a:hover, .navlink:hover { color: var(--gold-light); }
.top-right { grid-row: 1; grid-column: 2; justify-self: end; display: flex; align-items: center; gap: 12px; }
.countdown { display: none; font: 600 12px var(--sans); color: var(--muted); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.lang { font: 600 14px/1 'Kantumruy Pro', var(--sans); color: var(--ivory); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; }
.lang:hover { border-color: var(--gold); color: var(--gold-light); }
@media (min-width: 900px) {
  .top-in { grid-template-columns: auto 1fr auto; }
  .nav { grid-column: 2; grid-row: 1; margin-left: 12px; }
  .top-right { grid-column: 3; }
  .countdown { display: inline; }
}

.wrap { max-width: 760px; margin: 0 auto; padding: 28px 16px 64px; }
.wrap.wide { max-width: 1180px; }
.foot { border-top: 1px solid rgba(177, 138, 87, .15); color: var(--muted); font-size: 14px; }
.foot .wrap { padding: 20px 16px; }
.foot .ver { font-size: 12px; color: var(--stone); margin-top: 6px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 22px; border-radius: 4px; border: 1px solid transparent;
  font: 800 13px var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.lang-km .btn { letter-spacing: 0; font-size: 15px; }
.btn-gold { background: var(--gold); color: #111; }
.btn-gold:hover { background: var(--gold-hi); color: #111; }
.btn-gold:active { background: var(--bronze); }
.btn-outline { background: transparent; color: var(--cream); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-light); }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 4px 0; color: var(--gold-light); font: 600 14px var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkbtn.danger { color: #e08a74; }
form.inline { display: inline; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; margin-top: auto; padding-top: 10px; }

.card { background: var(--panel); border-radius: var(--r); padding: 20px; margin-bottom: 16px; border: 1px solid var(--line); box-shadow: var(--lift); }
.card.narrow { max-width: 560px; margin: 0 auto 16px; }
.card.empty { text-align: center; padding: 40px 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.grid .card { margin: 0; display: flex; flex-direction: column; }

/* Board cards: the whole card opens the team; the request control sits above that link */
.board .card { position: relative; transition: border-color .2s cubic-bezier(.16, 1, .3, 1), transform .2s cubic-bezier(.16, 1, .3, 1); }
.board .card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.board .card:has(.stretch:focus-visible) { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.stretch { color: inherit; text-decoration: none; }
.stretch::after { content: ''; position: absolute; inset: 0; border-radius: var(--r); }
.stretch:focus-visible { outline: none; }
.board .actions { position: relative; z-index: 1; }
.team-card-top { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.team-card-id { min-width: 0; }
.team-card-id h3 { margin: 0 0 6px; overflow-wrap: anywhere; }
.board .badge-svg { width: var(--badge, 56px); height: var(--badge, 56px); }
.board .pills { margin: 0; }
.board .actions { padding-top: 14px; }

.spots { display: flex; align-items: center; gap: 8px; font: 800 12px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #9fdcad; }
.lang-km .spots { letter-spacing: 0; font-size: 14px; text-transform: none; }
.pips { display: inline-flex; gap: 4px; }
.pips i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #7cc08c; }
.pips i.on { background: var(--gold-light); border-color: var(--gold-light); }
.spots-full { color: var(--gold-light); }

/* Pace, style and languages as three equal boxes along the bottom of a card */
.traits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: auto; padding-top: 14px; }
.card > .traits:first-child, section > .traits { margin-top: 0; }
.trait { background: var(--field); border: 1px solid var(--line-soft); border-radius: 8px; padding: 10px 12px; min-width: 0; }
.trait-label { display: block; font: 800 10px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.trait-val { display: block; font: 600 14px/1.35 var(--sans); color: var(--heading); overflow-wrap: anywhere; }
.lang-km .trait-label { letter-spacing: 0; font-size: 12px; }
.team-hero + .traits { margin: -8px 0 20px; max-width: 640px; }
.req-row .traits { padding-top: 8px; }
@media (max-width: 420px) { .trait { padding: 8px 9px; } .trait-val { font-size: 13px; } }
html[data-cards=s] .board .traits { grid-template-columns: 1fr; gap: 4px; padding-top: 8px; }
html[data-cards=s] .board .trait { display: flex; gap: 6px; align-items: baseline; padding: 4px 8px; }
html[data-cards=s] .board .trait-label { margin: 0; font-size: 9px; }
html[data-cards=s] .board .trait-val { font-size: 12px; }
html[data-cards=l] .board .trait-val { font-size: 16px; }
.agent-card h3 a { color: inherit; }
.agent-card:hover h3 { color: var(--gold-light); }
textarea { width: 100%; padding: 10px 14px; border-radius: 4px; border: 1px solid #554c3d; background: var(--field); color: var(--heading); font: 400 16px/1.5 var(--sans); caret-color: var(--gold-light); resize: vertical; }
textarea::placeholder { color: #8f877a; }

.board-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 14px; }
.board-count { font: 800 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
.density { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--field); }
.density button { display: grid; place-items: center; width: 44px; height: 40px; background: none; border: 0; color: var(--stone); cursor: pointer; }
.density button + button { border-left: 1px solid var(--line-soft); }
.density button:hover { color: var(--gold-light); }
.density button[aria-pressed=true] { background: var(--panel-hi); color: var(--gold-light); }
.density svg { width: 18px; height: 18px; fill: currentColor; }

/* Card sizes: small packs more cards on a screen (two across on a phone), large is easier to read */
html[data-cards=s] .board { grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 10px; }
html[data-cards=s] .board .card { padding: 12px; --badge: 36px; }
html[data-cards=s] .board .team-card-top { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
html[data-cards=s] .board h3 { font-size: 15px; }
html[data-cards=s] .board .pill:not(:first-child) { display: none; }
html[data-cards=s] .board .spots { font-size: 11px; letter-spacing: .04em; }
html[data-cards=s] .board .pips i { width: 8px; height: 8px; }
html[data-cards=s] .board .actions { padding-top: 10px; }
html[data-cards=s] .board .btn { width: 100%; padding: 8px 10px; letter-spacing: .08em; }
html[data-cards=l] .board { grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); gap: 20px; }
html[data-cards=l] .board .card { padding: 26px; --badge: 80px; }
html[data-cards=l] .board h3 { font-size: clamp(22px, 3vw, 28px); }
@media (prefers-reduced-motion: reduce) { .board .card, .board .card:hover { transition: none; transform: none; } }
.cols { display: grid; gap: 16px; }
@media (min-width: 992px) { .cols { grid-template-columns: 3fr 2fr; } }

.pills { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 10px; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font: 800 11px var(--sans); letter-spacing: .1em; text-transform: uppercase; background: var(--slate); color: var(--ivory); }
.lang-km .pill { letter-spacing: 0; font-size: 13px; text-transform: none; }
.pill-open { background: rgba(95, 158, 110, .18); color: #8fd09f; }
.pill-full, .pill-gold { background: var(--gold-light); color: #111; }
.pill-muted { background: transparent; border: 1px solid var(--stone); color: var(--muted); }
.pill-rust { background: rgba(181, 82, 59, .2); color: #e08a74; }
.style-competitive { background: rgba(181, 82, 59, .22); color: #f0a48f; }
.style-steady { background: rgba(25, 48, 71, .9); color: #a9c3dd; }
.style-fun { background: rgba(220, 184, 120, .16); color: var(--gold-light); }

.team-head { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.team-head h3 { margin: 0; }
.team-card h3 { font-size: 20px; }
.agent-card h3 { font-size: 20px; margin-bottom: 0; }
.badge-svg { flex: none; }

.hero { padding: 24px 0 8px; }
.event-line { font: 800 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); }
.lang-km .event-line { letter-spacing: 0; font-size: 14px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0 10px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 28px 0; }
.stat { background: var(--panel); border: 1px solid var(--line); box-shadow: var(--lift); border-radius: var(--r); padding: 18px 14px; text-align: center; }
.stat b { display: block; font: 700 clamp(40px, 8vw, 64px)/1 var(--display); color: var(--gold-light); font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 8px; font: 800 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lang-km .stat span { letter-spacing: 0; font-size: 13px; }
.stat:last-child { grid-column: 1 / -1; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(5, 1fr); } .stat:last-child { grid-column: auto; } }

.wall-sec { margin: 28px 0; }
.wall { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.wall-track { display: flex; gap: 12px; width: max-content; animation: wall 60s linear infinite; }
.wall-dup { display: contents; }
.wall-item { display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; color: var(--heading); text-decoration: none;
  font: 700 14px var(--display); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
@keyframes wall { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .wall-track { animation: none; flex-wrap: wrap; width: auto; } .wall-dup { display: none; } }
.how ol { padding-left: 1.2em; color: var(--ivory); }
.how li { margin-bottom: 6px; }

.filters { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 22px; }
.fgroup { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.flabel { display: block; font: 800 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 8px 0 6px; }
.fgroup .flabel { margin: 0; min-width: 70px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font: 600 13px var(--sans); color: var(--ivory); background: var(--field); }
.chip:hover span { border-color: var(--gold); }
.lang-km .chip span { font-size: 15px; }
.chip input:checked + span { background: var(--gold-light); color: #111; border-color: var(--gold-light); }
.chip input:focus-visible + span { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.chip-icon span { padding: 4px 8px; }
.chip-swatch span { width: 38px; height: 38px; padding: 0; border: 2px solid var(--line-strong); }
.chip-swatch input:checked + span { border-color: var(--cream); box-shadow: 0 0 0 2px var(--gold-light); }

.form { display: flex; flex-direction: column; gap: 16px; }
fieldset { border: 0; padding: 0; margin: 0; }
/* Each setting group gets a rule above it, so groups read as separate settings */
.form > fieldset > legend, .form > .field > span { display: flex; align-items: center; gap: 12px; width: 100%; }
.form > fieldset > legend::after, .form > .field > span::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.form > fieldset, .form > .field { margin-top: 6px; }
legend, .field > span { display: block; font: 800 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; padding: 0; }
.lang-km legend, .lang-km .field > span { letter-spacing: 0; font-size: 14px; }
.field small, fieldset small { display: block; color: var(--stone); font-size: 13px; margin-top: 6px; }
input[type=text], input:not([type]), input[type=email], input[type=number], input[type=url] {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 4px; border: 1px solid #554c3d; background: var(--field); color: var(--heading); font: 400 16px var(--sans); caret-color: var(--gold-light); }
input::placeholder { color: #8f877a; }
input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
input.short { max-width: 140px; }
input.code-input { font: 700 24px var(--display); letter-spacing: .2em; text-transform: uppercase; text-align: center; }
.check { display: block; position: relative; padding-left: 32px; color: var(--ivory); }
.check input { position: absolute; left: 0; top: 3px; width: 20px; height: 20px; margin: 0; accent-color: var(--gold); }

.flash { border-radius: 8px; padding: 12px 16px; margin: 0 0 16px; }
.flash-ok { background: rgba(95, 158, 110, .16); color: #b6e3c0; }
.flash-err { background: rgba(181, 82, 59, .18); color: #f2b5a5; }
.flash-info { background: rgba(25, 48, 71, .8); color: #cfe0f0; }

.team-hero { display: flex; gap: 20px; align-items: center; margin: 8px 0 24px; flex-wrap: wrap; }
.team-name { font-weight: 700; font-size: clamp(30px, 6vw, 52px); margin-bottom: 6px; }
.slots { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.slot { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 8px; background: var(--panel-hi); flex-wrap: wrap; }
.slot.empty-slot { background: transparent; border: 1px dashed rgba(95, 158, 110, .5); color: var(--muted); }
.slot.empty-slot .pill { display: none; }
.slot-n { font: 700 16px var(--display); color: var(--gold); width: 18px; }
.slot-name { font-weight: 600; color: var(--heading); flex: 1; min-width: 120px; }
.empty-slot .slot-name { color: #8fd09f; font-weight: 400; }
.slot-actions { display: flex; gap: 14px; width: 100%; padding-left: 30px; }
@media (min-width: 560px) { .slot-actions { width: auto; padding-left: 0; } }
.req-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid rgba(177, 138, 87, .12); flex-wrap: wrap; }
.req-row:first-of-type { border-top: 0; }
.req-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.note { font-style: italic; color: var(--ivory); margin: 4px 0 0; }
details.req summary { list-style: none; }
details.req summary::-webkit-details-marker { display: none; }
details.req[open] summary { display: none; }
details.req .form { gap: 10px; }

.code-big { font: 700 clamp(36px, 9vw, 52px)/1.1 var(--display); letter-spacing: .14em; color: var(--gold-light); text-align: center; margin: 8px 0 14px; }
.copyrow { display: flex; gap: 8px; margin-bottom: 12px; }
.copyrow input { flex: 1; min-width: 0; font-size: 14px; }
.qr { background: var(--cream); border-radius: 8px; padding: 10px; width: 200px; max-width: 100%; margin: 4px auto 12px; }
.qr svg { display: block; width: 100%; height: auto; }
.qr-sm { width: 140px; }
.badge-builder { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.badge-preview { background: var(--field); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; background: var(--highland); color: var(--heading); font: 800 11px var(--sans); letter-spacing: .12em; text-transform: uppercase; padding: 8px; }
td { padding: 8px; border-bottom: 1px solid rgba(177, 138, 87, .1); vertical-align: middle; }
tr.dim td { opacity: .5; }
.reject { display: flex; gap: 6px; }
.reject input { min-height: 38px; font-size: 14px; }
.log { list-style: none; padding: 0; margin: 0; font-size: 13px; color: var(--ivory); }
.log li { padding: 4px 0; border-bottom: 1px solid rgba(177, 138, 87, .08); }
.prose p { color: var(--ivory); }
.devbox { margin-top: 20px; padding: 12px; border: 1px dashed var(--stone); border-radius: 8px; font-size: 14px; }
.devbox a { margin-right: 6px; }
pre.botmsg { white-space: pre-wrap; font: 400 15px var(--sans); color: var(--heading); margin: 6px 0 10px; }
.select { min-height: 40px; padding: 6px 36px 6px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--field); color: var(--heading); font: 600 14px var(--sans);
  appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold-light) 50%), linear-gradient(135deg, var(--gold-light) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; }
.select:hover { border-color: var(--gold); }
.select option { background: var(--charcoal); color: var(--heading); }
.stack { display: flex; flex-direction: column; gap: 10px; }
.block { display: block; }
.open-switch { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line-soft); }
.demo-bar { background: var(--highland); color: #cfe0f0; font: 600 13px/1.4 var(--sans); text-align: center; padding: 8px 16px; }
.demo-bar a { color: var(--gold-light); }
