/* base.css: kges2026.com's own design system, for the four Venture Vista pages.
 *
 * Copied from the KGES site (KGES/css/styles.css, rounds.css, leaderboard.css, fonts.css) so the
 * terminal reads as part of the summit site the organisers approved: the navy page with the hall
 * photograph faded into it under the orange glow and the grid; Archivo for display figures and
 * titles, Manrope for text, JetBrains Mono for codes and numbers; rounded cards with a thin light
 * border; the orange pill button (.next-btn), the outlined pill (.ghost-btn), the pill tabs (.tabs /
 * .tab), chips, the staff tables. The only colours the site does not have are the two a market
 * needs, red for down and a yellow for PARTLY TRUE; up is the site's --ok green.
 *
 * The rest of this file maps the shared runtime's classes (kit.js: .btn, .seg, .strip, .tbl, .status,
 * .modal, .prompt, .sheet, .tl ...) onto that look, so every page uses the same parts.
 */

/* ------------------------------------------------------------------ fonts (KGES css/fonts.css, offline) */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400 900; font-stretch: 62% 125%; font-display: swap; src: url('../fonts/archivo-latin-ext.woff2?v=20261021') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400 900; font-stretch: 62% 125%; font-display: swap; src: url('../fonts/archivo-latin.woff2?v=20261021') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('../fonts/manrope-latin-ext.woff2?v=20261021') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('../fonts/manrope-latin.woff2?v=20261021') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('../fonts/jetbrains-mono-latin-ext.woff2?v=20261021') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('../fonts/jetbrains-mono-latin.woff2?v=20261021') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ------------------------------------------------------------------ tokens: KGES :root, verbatim */
:root {
  --bg: #000510;
  --navy: #030D27;
  --ink: #EEF1F8;
  --accent: #F38C2E;
  --accent-2: #ffb672;
  --accent-hover: #f79a45;
  --ok: #7bd88f;
  --ink-75: rgba(238, 241, 248, .75);
  --ink-72: rgba(238, 241, 248, .72);
  --ink-70: rgba(238, 241, 248, .7);
  --ink-60: rgba(238, 241, 248, .6);
  --ink-55: rgba(238, 241, 248, .55);
  --ink-50: rgba(238, 241, 248, .5);
  --ink-45: rgba(238, 241, 248, .45);
  --ink-40: rgba(238, 241, 248, .4);
  --ink-30: rgba(238, 241, 248, .3);
  --ink-18: rgba(238, 241, 248, .18);
  --line-06: rgba(255, 255, 255, .06);
  --line-08: rgba(255, 255, 255, .08);
  --line-10: rgba(255, 255, 255, .1);
  --line-12: rgba(255, 255, 255, .12);
  --line-20: rgba(255, 255, 255, .2);
  --line-22: rgba(255, 255, 255, .22);
  --well-25: rgba(0, 5, 16, .25);
  --well-30: rgba(0, 5, 16, .3);
  --well-35: rgba(0, 5, 16, .35);
  --well-50: rgba(0, 5, 16, .5);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Archivo', 'Manrope', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* What a market adds: red for down / FALSE / sell (the site's danger text), yellow for PARTLY */
  --down: #ff8f8f;
  --down-strong: #ff6b6b;
  --gold: #f5c451;
  --up: var(--ok);

  /* The names the pages' own CSS uses, on the KGES values */
  --surface: rgba(3, 13, 39, .72);
  --surface-0: var(--well-50);
  --surface-2: rgba(255, 255, 255, .035);
  --surface-3: rgba(255, 255, 255, .06);
  --surface-4: rgba(255, 255, 255, .1);
  --line: var(--line-08);
  --line-2: var(--line-12);
  --line-3: var(--line-22);
  --line-soft: var(--line-06);
  --ink-2: var(--ink-75);
  --ink-3: var(--ink-55);
  --ink-4: var(--ink-40);
  --amber: var(--accent);
  --accent-line: rgba(243, 140, 46, .45);
  --accent-soft: rgba(243, 140, 46, .12);
  --sel: rgba(243, 140, 46, .14);
  --sky: var(--ink);
  --ink-on-accent: var(--navy);
  --font-text: var(--font-body);
  --font-read: var(--font-body);
  --up-flash: rgba(123, 216, 143, .28);
  --down-flash: rgba(255, 143, 143, .28);
  --card-bg: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(3, 13, 39, .72) 38%);
  --post-bg: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
  --r-sm: 10px; --r: 14px; --r-md: 16px; --r-lg: 20px; --r-xl: 24px; --r-pill: 99px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

/* ------------------------------------------------------------------ base (KGES) */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; height: 100%; }
body {
  background: linear-gradient(180deg, var(--bg), var(--navy) 30%) fixed;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* The portal's depth on every page (KGES .portal::before / ::after): the hall on a summit
   morning faded into the navy, the hero's orange glow and the 72 px grid. Painted once, fixed:
   it never moves, so it costs nothing per frame. */
body::before {
  content: ''; position: fixed; inset: 0 0 auto; height: 640px; z-index: -2; pointer-events: none;
  background: url('../img/backdrop-hall-1280.jpg?v=20261021') 50% 60% / cover no-repeat; opacity: .22;
  -webkit-mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, .55) 46%, transparent);
  mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, .55) 46%, transparent);
}
body::after {
  content: ''; position: fixed; inset: 0 0 auto; height: 780px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(720px 420px at 84% 0%, rgba(243, 140, 46, .17), transparent 65%),
    radial-gradient(860px 540px at 6% 34%, rgba(61, 111, 165, .32), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 72px 72px;
  -webkit-mask-image: linear-gradient(180deg, #000 28%, transparent);
  mask-image: linear-gradient(180deg, #000 28%, transparent);
}
a { color: var(--ink); }
a:hover { color: var(--accent); }
::selection { background: var(--accent); color: var(--navy); }
img { display: block; max-width: 100%; }
input, select, button, textarea { font-family: inherit; font-size: inherit; color: inherit; }
input::placeholder, textarea::placeholder { color: rgba(238, 241, 248, .32); }
select option { background: #0A1633; color: var(--ink); }
button { cursor: pointer; background: none; border: 0; padding: 0; -webkit-tap-highlight-color: transparent; touch-action: manipulation; text-align: inherit; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
:focus { outline: none; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
h1, h2, h3, h4 { font-size: inherit; }
ol, ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
mark { background: rgba(243, 140, 46, .3); color: var(--ink); border-radius: 3px; padding: 0 1px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.scroll, .scroll-x { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .16) transparent; }
.scroll { overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
.scroll-x { overflow-x: auto; overflow-y: hidden; }
.scroll::-webkit-scrollbar, .scroll-x::-webkit-scrollbar { width: 8px; height: 8px; }
.scroll::-webkit-scrollbar-thumb, .scroll-x::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }

/* ------------------------------------------------------------------ type (KGES) */
.mono, .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.tnum { font-variant-numeric: tabular-nums; }
.display { font-family: var(--font-display); font-stretch: 100%; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--ink-45); }
.portal__title { font-family: var(--font-display); font-size: 56px; line-height: 1; letter-spacing: -.03em; font-weight: 800; overflow-wrap: anywhere; }
.portal__sub { font-size: 14px; color: var(--ink-60); }
.portal__section { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--ink-45); }
.portal__empty { padding: 28px; border-radius: 18px; border: 1px dashed var(--line-12); color: var(--ink-55); font-size: 14px; }
.t-title-1 { font-family: var(--font-display); font-weight: 800; font-size: 32px; line-height: 1.04; letter-spacing: -.03em; }
.t-title-2 { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.1; letter-spacing: -.02em; }
.t-title-3 { font-weight: 700; font-size: 16px; line-height: 1.25; }
.t-headline { font-weight: 700; font-size: 15px; line-height: 1.35; }
.t-body { font-size: 14px; line-height: 1.55; }
.t-callout { font-size: 15px; line-height: 1.6; color: var(--ink-75); }
.t-caption { font-size: 12px; line-height: 1.4; color: var(--ink-55); }
.muted, .dim { color: var(--ink-55); }
.faint { color: var(--ink-40); }
.amber { color: var(--accent); }
.up, .pct-up, .is-up { color: var(--ok); }
.down, .pct-down, .is-dn, .is-down { color: var(--down); }
.flat, .pct-flat { color: var(--ink-50); }
.partly { color: var(--gold); }
.grow { flex: 1 1 auto; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* ------------------------------------------------------------------ the KGES header (.nav, .brand, .nav__pills, .pill) */
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; color: var(--ink); }
.brand__logo { width: 44px; height: 44px; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .6)); flex: none; }
.brand__text { min-width: 0; }
.brand__eyebrow { display: block; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--accent); line-height: 1.2; }
.brand__title { display: block; font-size: 15px; font-weight: 700; letter-spacing: -.02em; margin-top: 3px; white-space: nowrap; line-height: 1.2; }
.nav__pills { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 99px; flex: none; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-08); }
.pill { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; padding: 8px 15px; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--ink-72); white-space: nowrap; transition: color .15s, background .15s; }
.pill:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
.pill--primary { padding: 8px 17px; font-weight: 700; background: var(--accent); color: var(--navy); transition: transform .1s ease-out, background .15s; }
.pill--primary:hover { color: var(--navy); background: var(--accent-hover); }
.pill--primary:active { transform: scale(.96); }
.pill--account { height: 34px; padding: 0 12px; border: 1px solid rgba(243, 140, 46, .45); background: rgba(243, 140, 46, .1); color: var(--accent); font-weight: 700; font-size: 12px; }
.pill--account:hover { color: var(--accent); background: rgba(243, 140, 46, .16); }
.pill.is-muted { color: var(--ink-45); }

/* ------------------------------------------------------------------ tabs (KGES admin and leaderboard) */
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 99px; width: max-content; max-width: 100%; overflow-x: auto; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-08); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border: 0; border-radius: 99px; background: transparent; font-size: 13px; font-weight: 600; color: var(--ink-60); white-space: nowrap; transition: color .15s, background .15s; }
.tab:hover { color: var(--ink); }
.tab.is-active, .tab.is-on { background: var(--accent); color: var(--navy); font-weight: 700; }

/* ------------------------------------------------------------------ buttons (KGES .next-btn, .ghost-btn, .link-btn) */
.next-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 99px; border: 0; background: var(--accent); color: var(--navy); font-weight: 800; font-size: 14px;
  transition: background .15s, transform .1s ease-out, opacity .15s; box-shadow: 0 10px 30px -10px rgba(243, 140, 46, .6);
}
.next-btn:hover { background: var(--accent-hover); }
.next-btn:active { transform: scale(.96); }
.next-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.ghost-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 99px; font-size: 14px; font-weight: 700; color: var(--ink-75);
  background: transparent; border: 1px solid var(--line-20); transition: color .15s, border-color .15s, transform .1s;
}
.ghost-btn:hover { color: var(--ink); border-color: rgba(255, 255, 255, .4); }
.ghost-btn:active { transform: scale(.97); }
.ghost-btn:disabled { opacity: .5; }
.link-btn { background: transparent; border: 0; color: var(--ink-50); font-size: 12px; font-weight: 600; padding: 6px 0; transition: color .15s; }
.link-btn:hover { color: var(--accent); }
.link-btn--accent { color: var(--accent); }

/* The runtime's .btn family on the same look: .btn is a small ghost pill, .btn--primary the orange
   pill, BUY the orange pill in the site's green, SELL in its red. */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 16px; border-radius: 99px; white-space: nowrap; user-select: none;
  background: transparent; border: 1px solid var(--line-20); color: var(--ink-75);
  font-family: var(--font-body); font-weight: 700; font-size: 13px; line-height: 1;
  transition: color .15s, border-color .15s, background .15s, transform .1s ease-out, opacity .15s;
}
.btn:hover { color: var(--ink); border-color: rgba(255, 255, 255, .4); }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--primary { background: var(--accent); border-color: transparent; color: var(--navy); font-weight: 800; box-shadow: 0 10px 30px -10px rgba(243, 140, 46, .6); }
.btn--primary:hover { background: var(--accent-hover); border-color: transparent; color: var(--navy); }
.btn--buy { background: var(--ok); border-color: transparent; color: var(--navy); font-weight: 800; box-shadow: 0 10px 30px -12px rgba(123, 216, 143, .55); }
.btn--buy:hover { background: #8fe3a1; border-color: transparent; color: var(--navy); }
.btn--sell { background: var(--down-strong); border-color: transparent; color: var(--navy); font-weight: 800; box-shadow: 0 10px 30px -12px rgba(255, 107, 107, .55); }
.btn--sell:hover { background: #ff8282; border-color: transparent; color: var(--navy); }
.btn--danger { border-color: rgba(255, 143, 143, .45); color: var(--down); }
.btn--danger:hover { border-color: var(--down); color: #ffb0b0; background: rgba(255, 143, 143, .08); }
.btn--ghost { border-color: transparent; color: var(--ink-60); }
.btn--ghost:hover { border-color: transparent; color: var(--ink); background: rgba(255, 255, 255, .06); }
.btn--quiet { border-color: var(--line-12); color: var(--ink-72); background: rgba(255, 255, 255, .04); }
.btn--quiet:hover { border-color: var(--line-22); background: rgba(255, 255, 255, .08); color: var(--ink); }
.btn--sm { height: 28px; padding: 0 12px; font-size: 12px; }
.btn--lg { height: 44px; padding: 0 22px; font-size: 14px; }
.btn--xl { height: 52px; padding: 0 26px; font-size: 15px; }
.btn--pill { border-radius: 99px; }
.btn--icon { width: 34px; padding: 0; }
.btn--icon.btn--sm { width: 28px; }
.btn.is-on { background: rgba(243, 140, 46, .14); border-color: rgba(243, 140, 46, .5); color: var(--accent-2); }
.k { display: none; }                                  /* key caps are in the help, not on buttons */

/* ------------------------------------------------------------------ chips and badges (KGES .chip) */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 99px; font-size: 11px; font-weight: 700; white-space: nowrap; line-height: 1.2; color: var(--ink-60); background: rgba(255, 255, 255, .07); border: 0; }
button.chip { cursor: pointer; transition: background .15s, color .15s; }
button.chip:hover { background: rgba(255, 255, 255, .12); color: var(--ink); }
.chip--new { color: var(--navy); background: var(--accent); }
.chip--ok, .chip--up { color: var(--ok); background: rgba(123, 216, 143, .12); }
.chip--due, .chip--accent { color: var(--accent-2); background: rgba(243, 140, 46, .14); }
.chip--down { color: var(--down); background: rgba(255, 143, 143, .12); }
.chip--gold { color: var(--gold); background: rgba(245, 196, 81, .12); }
.chip--muted, .chip.chip--muted { color: var(--ink-45); background: rgba(255, 255, 255, .04); }
.chip--ticker { font-family: var(--font-mono); letter-spacing: .04em; color: var(--accent-2); background: rgba(243, 140, 46, .1); }
button.chip--ticker:hover { color: var(--navy); background: var(--accent-2); }
.chip.is-on, .chip--ticker.is-on { color: var(--navy); background: var(--accent); }
.chip svg { width: 12px; height: 12px; flex: none; }

.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 6px; border-radius: 99px; background: rgba(255, 255, 255, .1); color: var(--ink-75); font-size: 10.5px; font-weight: 800; line-height: 1; }
.badge:empty { display: none; }
.badge--accent { background: var(--accent); color: var(--navy); }
.badge--up { background: var(--ok); color: var(--navy); }
.badge--down { background: var(--down-strong); color: var(--navy); }
.badge--gold { background: var(--gold); color: var(--navy); }

.kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 6px; border: 1px solid var(--line-22); border-bottom-width: 2px; color: var(--ink-60); font-family: var(--font-mono); font-size: 10.5px; line-height: 1; background: rgba(255, 255, 255, .04); }

/* Status dots (KGES .account__dot) */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-40); flex: none; }
.dot--live, .dot--up { background: var(--ok); box-shadow: 0 0 0 3px rgba(123, 216, 143, .2); }
.dot--down { background: var(--down-strong); box-shadow: 0 0 0 3px rgba(255, 107, 107, .2); }
.dot--accent { background: var(--accent); box-shadow: 0 0 0 3px rgba(243, 140, 46, .25); }
.dot--gold { background: var(--gold); box-shadow: 0 0 0 3px rgba(245, 196, 81, .2); }
.is-breathing { animation: kg-breathe 1.8s ease-in-out infinite; }
@keyframes kg-breathe { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* ------------------------------------------------------------------ the runtime's segmented choice = KGES tabs */
.seg { position: relative; display: inline-flex; align-items: stretch; gap: 4px; padding: 4px; border-radius: 99px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-08); max-width: 100%; }
.seg__btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 15px; border-radius: 99px; color: var(--ink-60); font-size: 13px; font-weight: 600; white-space: nowrap; transition: color .15s, background .15s; }
.seg__btn:hover { color: var(--ink); }
.seg__btn.is-on { background: var(--accent); color: var(--navy); font-weight: 700; }
.seg__btn:disabled { opacity: .45; cursor: not-allowed; }
.seg--sm { padding: 3px; gap: 2px; }
.seg--sm .seg__btn { padding: 5px 12px; font-size: 12px; }
.seg--block { display: flex; }
.seg--block .seg__btn { flex: 1 1 0; }

/* ------------------------------------------------------------------ fields (KGES .field / .input) */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field__label { font-size: 12px; font-weight: 600; color: var(--ink-60); }
.input {
  height: 44px; width: 100%; min-width: 0; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line-12);
  background: var(--well-50); color: var(--ink); font-size: 14px; font-weight: 500;
  transition: border-color .15s, box-shadow .15s;
}
.input:hover { border-color: var(--line-20); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(243, 140, 46, .22); }
.input--sm { height: 36px; padding: 0 12px; border-radius: 12px; font-size: 13px; }
.input--lg { height: 52px; padding: 0 16px; font-size: 15px; }
.input--mono { font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
textarea.input { height: auto; min-height: 72px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
select.input {
  appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23EEF1F8' stroke-opacity='.5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
input[type="search"]::-webkit-search-cancel-button { filter: invert(1) opacity(.5); }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }

/* ------------------------------------------------------------------ surfaces (KGES .card, .post, .tile, .banner) */
.card, .panel {
  min-width: 0; border-radius: 22px; border: 1px solid var(--line-10);
  background: var(--card-bg); box-shadow: 0 40px 90px -60px rgba(0, 0, 0, .9);
}
.card__title { font-size: 16px; font-weight: 700; }
.glass { background: rgba(3, 13, 39, .9); border: 1px solid var(--line-12); }
.post { padding: 18px 20px; border-radius: 20px; border: 1px solid var(--line-10); background: var(--post-bg); transition: border-color .2s; }
.post:hover { border-color: var(--line-20); }
.post.is-new { border-color: rgba(243, 140, 46, .5); background: linear-gradient(180deg, rgba(243, 140, 46, .1), rgba(243, 140, 46, .03)); }
.tile { position: relative; padding: 16px 18px; border-radius: 20px; border: 1px solid var(--line-10); min-width: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015)); }
.tile__label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--ink-45); }
.tile__value { margin-top: 6px; font-variant-numeric: tabular-nums; font-family: var(--font-display); font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; overflow-wrap: anywhere; }
.tile__sub { margin-top: 4px; font-size: 12px; color: var(--ink-55); overflow-wrap: anywhere; }

/* Photo backdrops (KGES .bd--*): greyscale photographs tinted by the card */
.bd { --photo-s: none; --photo-l: none; --focus: 50% 45%; --h: 27; }
.bd--hall   { --photo-s: url('../img/backdrop-hall-640.jpg?v=20261021');   --photo-l: url('../img/backdrop-hall-1280.jpg?v=20261021');   --focus: 50% 64%; }
.bd--tables { --photo-s: url('../img/backdrop-tables-640.jpg?v=20261021'); --photo-l: url('../img/backdrop-tables-1280.jpg?v=20261021'); --focus: 46% 58%; }
.bd--stage  { --photo-s: url('../img/backdrop-stage-640.jpg?v=20261021');  --photo-l: url('../img/backdrop-stage-1280.jpg?v=20261021');  --focus: 24% 30%; }
.bd--pitch  { --photo-s: url('../img/backdrop-pitch-640.jpg?v=20261021');  --photo-l: url('../img/backdrop-pitch-1280.jpg?v=20261021');  --focus: 62% 46%; }
/* A module banner over its photograph (KGES .banner), without the drift: still on a laptop room */
.banner {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px 32px; border-radius: 28px; border: 1px solid var(--line-12); background: var(--navy);
  box-shadow: 0 60px 120px -70px hsla(var(--h, 27), 85%, 50%, .75);
}
.banner::before { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--photo-l) var(--focus) / cover no-repeat; opacity: .8; }
.banner::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(3, 13, 39, .95), rgba(3, 13, 39, .68) 46%, rgba(3, 13, 39, .3)),
    linear-gradient(180deg, transparent 38%, rgba(3, 13, 39, .92)),
    radial-gradient(720px 340px at 100% 0%, hsla(var(--h, 27), 85%, 58%, .55), transparent 70%);
}
.banner__eyebrow { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--accent-2); }
.banner__title { font-family: var(--font-display); font-size: 40px; line-height: 1; letter-spacing: -.03em; font-weight: 800; margin-top: 10px; overflow-wrap: anywhere; text-wrap: balance; }
.banner__desc { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--ink-75); max-width: 60ch; }
.banner__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.banner .chip { background: rgba(0, 5, 16, .62); color: var(--ink-75); }
.banner .chip--new { color: var(--navy); background: var(--accent); }
.banner .chip--ok { color: var(--ok); }
.banner .chip--due { color: var(--accent-2); }

/* A panel's heading, the portal's small uppercase section title. The runtime's .strip keeps its
   name; the number block of the old look is not shown. */
.strip { flex: none; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 0 2px 8px; white-space: nowrap; }
.strip__n { display: none; }
.strip__t, .strip__title { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--ink-45); }
.strip__code { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--accent-2); }
.strip__meta { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 12px; color: var(--ink-50); }

/* Folded detail ("More", "How it's scored"): the site's <details> summaries */
.fold > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; color: var(--ink-60); font-weight: 600; font-size: 13px; user-select: none; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::before { content: '▸'; color: var(--accent); font-size: 12px; }
.fold[open] > summary::before { content: '▾'; }
.fold > summary:hover { color: var(--ink); }

/* ------------------------------------------------------------------ tables (KGES .table, dense) */
.table-wrap { overflow: auto; border-radius: 20px; border: 1px solid var(--line-10); background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .015)); }
.table, .tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.table th, .tbl th { position: sticky; top: 0; z-index: 1; text-align: left; padding: 10px 14px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--ink-45); border-bottom: 1px solid var(--line-10); white-space: nowrap; background: #071230; }
.table td, .tbl td { padding: 9px 14px; border-bottom: 1px solid var(--line-06); white-space: nowrap; }
.table tr:last-child td, .tbl tr:last-child td { border-bottom: 0; }
.table tbody tr, .tbl tbody tr { transition: background .15s; }
.table tbody tr:hover td, .tbl tbody tr:hover td { background: rgba(255, 255, 255, .035); }
.tbl tbody tr.is-sel td, .tbl tbody tr.is-selected td { background: rgba(243, 140, 46, .1); }
.table .num, .tbl .num, .tbl td.num, .tbl th.num { text-align: right; }
.tbl td.num { font-variant-numeric: tabular-nums; }
.tbl--tight td { padding-top: 6px; padding-bottom: 6px; }

/* ------------------------------------------------------------------ empty states (KGES .portal__empty voice) */
.empty { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 22px 20px; color: var(--ink-55); text-align: left; }
.empty__icon { display: none; }
.empty__title { font-weight: 700; font-size: 15px; color: var(--ink-75); }
.empty__hint { font-size: 13px; line-height: 1.55; max-width: 460px; }

/* ------------------------------------------------------------------ tooltips (CSS only; text from data-tip) */
[data-tip] { position: relative; }
@media (hover: hover) {
  [data-tip]:hover::after, [data-tip]:focus-visible::after {
    content: attr(data-tip); position: absolute; z-index: 60; left: 50%; bottom: calc(100% + 8px);
    transform: translateX(-50%); width: max-content; max-width: 280px; padding: 7px 11px; border-radius: 12px;
    background: rgba(3, 13, 39, .97); border: 1px solid var(--line-12); color: var(--ink);
    font: 600 12px/1.4 var(--font-body); letter-spacing: 0; text-transform: none; white-space: normal; pointer-events: none;
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .9);
  }
  [data-tip-pos="below"]:hover::after, [data-tip-pos="below"]:focus-visible::after { bottom: auto; top: calc(100% + 8px); }
  [data-tip-pos="left"]:hover::after { left: auto; right: 0; transform: none; }
  [data-tip-pos="right"]:hover::after { left: 0; transform: none; }
}

/* ------------------------------------------------------------------ function keys and the command line: kept for the keyboard, not drawn */
.fkeys { display: none; }
.cmd { display: none; }

/* ------------------------------------------------------------------ the status line (Kit.toaster)
 * One line at the foot of the page instead of stacked toasts: "14:02:11 Filled · Bought 400 NESN at
 * 83.92". It stays until the next message (dimmed after a few seconds); Messages lists the recent. */
.status { position: relative; display: flex; align-items: center; gap: 10px; min-height: 34px; min-width: 0; padding: 0 6px 0 16px; background: rgba(0, 5, 16, .82); border-top: 1px solid var(--line-08); font-size: 13px; white-space: nowrap; }
.status__line { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; overflow: hidden; cursor: pointer; }
.status__ts { flex: none; font-family: var(--font-mono); font-size: 12px; color: var(--ink-40); }
.status__ti { flex: none; font-weight: 700; color: var(--ink); }
.status__tx { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--ink-72); }
.status__line.is-ok .status__ti { color: var(--ok); }
.status__line.is-warn .status__ti { color: var(--accent-2); }
.status__line.is-error .status__ti, .status__line.is-error .status__tx { color: var(--down); }
.status__line.is-old .status__ti, .status__line.is-old .status__tx { color: var(--ink-50); }
.status__line.is-idle .status__tx { color: var(--ink-40); }
.status__more { flex: none; padding: 6px 12px; border-radius: 99px; color: var(--ink-60); font-size: 12px; font-weight: 700; border: 1px solid var(--line-12); }
.status__more:hover, .status__more[aria-expanded="true"] { color: var(--navy); background: var(--accent); border-color: transparent; }
.status__hist { position: absolute; z-index: 85; right: 8px; bottom: calc(100% + 8px); width: min(520px, calc(100vw - 16px)); max-height: min(360px, 60vh); overflow-y: auto; padding: 6px; border-radius: 18px; border: 1px solid var(--line-12); background: rgba(3, 13, 39, .97); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .95); }
.status__hist li { display: flex; flex-wrap: wrap; gap: 2px 10px; padding: 8px 10px; border-radius: 12px; white-space: normal; font-size: 13px; line-height: 1.4; }
.status__hist li + li { border-top: 1px solid var(--line-06); }
.status__hist .is-ok .status__ti { color: var(--ok); }
.status__hist .is-warn .status__ti { color: var(--accent-2); }
.status__hist .is-error .status__ti, .status__hist .is-error .status__tx { color: var(--down); }
.status__hist-empty { padding: 10px; color: var(--ink-50); }
.toasts { position: fixed; z-index: 80; left: 0; right: 0; bottom: 0; }

/* ------------------------------------------------------------------ dialog (KGES .modal / .modal__box) and the Y/N prompt */
.scrim { position: fixed; inset: 0; z-index: 70; background: rgba(0, 5, 16, .82); }
.scrim--clear { background: rgba(0, 5, 16, .45); }
.modal {
  position: fixed; z-index: 75; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(900px, calc(100vw - 24px)); max-height: min(88vh, 820px);
  display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; border: 1px solid var(--line-12); background: var(--navy);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .95);
}
.modal__head { flex: none; display: flex; align-items: center; gap: 12px; padding: 18px 20px 12px; }
.modal__title { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -.02em; line-height: 1.1; }
.modal__body { padding: 4px 20px 20px; overflow: auto; }
.modal__foot { flex: none; display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px 18px; border-top: 1px solid var(--line-08); }
.prompt { position: fixed; z-index: 76; width: min(420px, calc(100vw - 16px)); padding: 18px 20px; border-radius: 20px; border: 1px solid var(--line-12); background: var(--navy); box-shadow: 0 50px 110px -40px rgba(0, 0, 0, .95); }
.prompt__q { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -.02em; line-height: 1.2; color: var(--ink); }
.prompt__q b { display: none; }
.prompt__t { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--ink-72); }
.prompt__d { margin-top: 6px; font-size: 12.5px; line-height: 1.5; color: var(--ink-50); }
.prompt__a { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.prompt__a .btn { height: 40px; padding: 0 18px; }

/* Kit.Sheet: a full-screen panel on phones, with BACK at the top */
.sheet { position: fixed; z-index: 75; inset: 0; display: flex; flex-direction: column; background: linear-gradient(180deg, var(--bg), var(--navy) 40%); padding-top: var(--safe-t); padding-bottom: var(--safe-b); }
.sheet__grab { display: none; }
.sheet__head { flex: none; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 16px; border-bottom: 1px solid var(--line-08); background: rgba(0, 5, 16, .88); }
.sheet__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 16px 24px; }

/* ------------------------------------------------------------------ the old brand badge class, now the KGES brand */
.kg { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.kg__b { display: none; }
.kg__n { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--accent); }
.mark { display: block; width: 44px; height: 44px; flex: none; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .6)); }

/* ------------------------------------------------------------------ event timeline (kit.js Timeline): the site's progress line */
.tl { position: relative; height: 16px; min-width: 120px; overflow-x: clip; }
.tl__track { position: absolute; left: 0; right: 0; top: 7px; height: 3px; border-radius: 3px; background: var(--line-10); overflow: hidden; }
.tl__fill { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.tl__marks { position: absolute; inset: 0; }
.tl__mark { position: absolute; top: 4px; width: 2px; height: 9px; margin-left: -1px; border-radius: 2px; background: var(--ink-30); }
.tl__mark.is-drop { top: 4px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--navy); box-shadow: inset 0 0 0 1.5px var(--ink-45); }
.tl__mark.is-past { background: var(--accent-2); }
.tl__mark.is-drop.is-past { background: var(--accent); box-shadow: none; }
.tl__mark.is-next { background: var(--ink); box-shadow: 0 0 0 3px rgba(243, 140, 46, .35); }
.tl__mark.is-key { width: 3px; margin-left: -1.5px; top: 2px; height: 13px; }
.tl__mark.is-reveal { background: var(--gold); }
.tl__lbl { position: absolute; top: 18px; transform: translateX(-50%); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-40); white-space: nowrap; }
.tl__lbl.is-past { color: var(--ink-55); }
.tl__lbl.is-next { color: var(--accent-2); }
.tl__lbl.is-first { transform: none; }
.tl__lbl.is-last { transform: translateX(-100%); }
.tl__headlayer { position: absolute; left: 0; right: 0; top: 0; bottom: 0; pointer-events: none; }
.tl__head { position: absolute; left: 0; top: 3px; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px rgba(243, 140, 46, .5), 0 0 12px rgba(243, 140, 46, .8); }
.tl.is-idle .tl__head { opacity: 0; }
.tl--labels { height: 32px; }

/* ------------------------------------------------------------------ price flash: 200 ms behind the number */
.flashable { position: relative; }
.flash-layer { position: absolute; inset: 0; border-radius: inherit; opacity: 0; pointer-events: none; background: var(--up-flash); }
.flash-layer.is-down { background: var(--down-flash); }

/* ------------------------------------------------------------------ preferences */
@media (prefers-reduced-motion: reduce) {
  .is-breathing { animation: none; }
  .btn:active:not(:disabled), .next-btn:active, .ghost-btn:active, .pill--primary:active { transform: none; }
}
@media (prefers-contrast: more) {
  :root { --line-06: rgba(255, 255, 255, .2); --line-08: rgba(255, 255, 255, .24); --line-10: rgba(255, 255, 255, .28); --line-12: rgba(255, 255, 255, .32); --ink-45: rgba(238, 241, 248, .8); --ink-50: rgba(238, 241, 248, .82); --ink-55: rgba(238, 241, 248, .85); --ink-60: rgba(238, 241, 248, .88); }
}
html.lowfx body::before { display: none; }
@media (forced-colors: active) {
  .tl__fill, .flash-layer { forced-color-adjust: none; }
  .btn, .seg, .input, .card, .post, .modal, .prompt, .tab { border: 1px solid CanvasText; }
}
