/* gm8-devapp styles.css v3 - brand fonts, light+dark themes, hamburger, dropdown, dev tabs.
   Fonts: instrument_sans = Instrument Sans (UI+headings), instrument_serif = Instrument Serif (display italics).
   Themes via [data-theme] on <html>: dark is default; light is token-for-token in this file.
   Form language: Stripe-like - left rhythm, quiet rows, hairlines, tabular numbers.
   Radius 9px !important on buttons/cards (OPERATOR RULING). Amber accent max 10% (OPERATOR RULING). */

/* ---------------------------------------------------------------- fonts (vendored, offline) */
@font-face{font-family:'instrument_sans';font-weight:400;font-style:italic;font-display:block;src:local('Instrument Sans Italic'),url('/assets/fonts/head-400-italic.woff2') format('woff2')}
@font-face{font-family:'instrument_sans';font-weight:400;font-style:normal;font-display:block;src:local('Instrument Sans'),url('/assets/fonts/head-400.woff2') format('woff2')}
@font-face{font-family:'instrument_sans';font-weight:600;font-style:normal;font-display:block;src:local('Instrument Sans SemiBold'),url('/assets/fonts/head-600.woff2') format('woff2')}
@font-face{font-family:'instrument_sans';font-weight:700;font-style:normal;font-display:block;src:local('Instrument Sans Bold'),url('/assets/fonts/head-700.woff2') format('woff2')}
@font-face{font-family:'instrument_serif';font-weight:400;font-style:italic;font-display:block;src:local('Instrument Serif Italic'),url('/assets/fonts/serif-400-italic.woff2') format('woff2')}
@font-face{font-family:'instrument_serif';font-weight:400;font-style:normal;font-display:block;src:local('Instrument Serif'),url('/assets/fonts/serif-400.woff2') format('woff2')}
@font-face{font-family:'helvetica_neue';font-weight:400;font-style:normal;font-display:block;src:local('Helvetica Neue'),local('HelveticaNeue'),local('Helvetica'),url('/assets/fonts/sans-400.woff2') format('woff2')}
@font-face{font-family:'helvetica_neue';font-weight:700;font-style:normal;font-display:block;src:local('Helvetica Neue Bold'),local('Helvetica-Bold'),url('/assets/fonts/sans-700.woff2') format('woff2')}
@font-face{font-family:'helvetica_neue';font-weight:900;font-style:normal;font-display:block;src:local('Helvetica Neue Black'),local('HelveticaNeue-Black'),local('Helvetica Black'),local('Helvetica-Black'),url('/assets/fonts/sans-900.woff2') format('woff2')}

/* ---------------------------------------------------------------- THEMES */
/* ---------------------------------------------------------------- THEMES
   The kit owns every value; this file delivers them. The block between the two
   markers is written by scripts/build_style_kit.py from app/style_kit.json.
   Hand-written rules live outside the markers and survive a rebuild byte for byte. */
/* @kit:generated:start */
:root, [data-theme="dark"] {
  /* grounds - the surface stack - never text, always behind it */
  --ele-color-void: #0E1113;
  --ele-color-deck: #141A1D;
  --ele-color-deck-2: #10161A;
  --ele-color-raised: #1A2126;

  /* text - the reading hierarchy: primary, secondary, meta */
  --ele-color-text: #F4F1EA;
  --ele-color-ink-muted: #C9D6DD;
  --ele-color-imprint: #8E9AA2;

  /* lines and depth - structure only - borders, dividers, hover wash, the single shadow */
  --ele-color-hairline: rgba(134, 239, 239, .16);
  --ele-color-row-ghost: rgba(134, 239, 239, .05);
  --ele-color-shadow: rgba(0, 0, 0, .5);
  --ele-color-cyan-soft: rgba(134, 239, 239, .55);

  /* accent - the brand doing something: action, marker, the one filled control */
  --ele-color-primary: #86EFEF;
  --ele-color-secondary: #C98A3E;
  --ele-color-accent: #86EFEF;
  --ele-color-on-primary: #0E1113;

  /* overlay - text on the hero photograph - does not flip with the theme */
  --ele-color-inverse: #F4F1EA;

  /* state - feedback, never decoration */
  --ele-color-state-negative: #E4674E;

  /* system typography - the four global roles */
  --ele-typography-primary-font-family: instrument_sans;
  --ele-typography-primary-font-size: 39px;
  --ele-typography-primary-font-weight: 700;
  --ele-typography-primary-font-style: normal;
  --ele-typography-primary-line-height: 1.02;
  --ele-typography-primary-letter-spacing: -0.03em;
  --ele-typography-secondary-font-family: instrument_sans;
  --ele-typography-secondary-font-size: 20px;
  --ele-typography-secondary-font-weight: 600;
  --ele-typography-secondary-font-style: normal;
  --ele-typography-secondary-line-height: 1.3;
  --ele-typography-secondary-letter-spacing: -0.012em;
  --ele-typography-text-font-family: helvetica_neue;
  --ele-typography-text-font-size: 16px;
  --ele-typography-text-font-weight: 400;
  --ele-typography-text-font-style: normal;
  --ele-typography-text-line-height: 1.6;
  --ele-typography-text-letter-spacing: 0em;
  --ele-typography-accent-font-family: instrument_serif;
  --ele-typography-accent-font-size: 31px;
  --ele-typography-accent-font-weight: 400;
  --ele-typography-accent-font-style: italic;
  --ele-typography-accent-line-height: 1.3;
  --ele-typography-accent-letter-spacing: -0.012em;

  /* custom typography - the roles the four do not cover */
  --ele-typography-lede-font-family: helvetica_neue;
  --ele-typography-lede-font-size: 20px;
  --ele-typography-lede-font-weight: 400;
  --ele-typography-lede-font-style: normal;
  --ele-typography-lede-line-height: 1.42;
  --ele-typography-lede-letter-spacing: -0.012em;
  --ele-typography-quote-font-family: helvetica_neue;
  --ele-typography-quote-font-size: 31px;
  --ele-typography-quote-font-weight: 400;
  --ele-typography-quote-font-style: normal;
  --ele-typography-quote-line-height: 1.3;
  --ele-typography-quote-letter-spacing: -0.012em;
  --ele-typography-meta-font-family: helvetica_neue;
  --ele-typography-meta-font-size: 11px;
  --ele-typography-meta-font-weight: 400;
  --ele-typography-meta-font-style: normal;
  --ele-typography-meta-line-height: 1.46;
  --ele-typography-meta-letter-spacing: 0.06em;

  /* the scale */
  --ele-text-2xs: 11px;
  --ele-text-xs: 13px;
  --ele-text-sm: 14px;
  --ele-text-base: 16px;
  --ele-text-md: 20px;
  --ele-text-lg: 25px;
  --ele-text-xl: 31px;
  --ele-text-2xl: 39px;
  --ele-leading-display: 1.02;
  --ele-leadingit_title: 1.3;
  --ele-leading-lede: 1.42;
  --ele-leading-body: 1.6;
  --ele-leading-meta: 1.46;
  --ele-tracking-display: -0.03em;
  --ele-trackingit_title: -0.012em;
  --ele-tracking-meta: 0.06em;
  --ele-space-1: 4px;
  --ele-space-2: 8px;
  --ele-space-3: 16px;
  --ele-space-4: 24px;
  --ele-space-5: 32px;
  --ele-space-6: 48px;
  --ele-radius: 9px;
  --ele-container-width: 1120px;
}

[data-theme="light"] {
  --ele-color-primary: #0C7B83;
  --ele-color-secondary: #A05C17;
  --ele-color-text: #1A1D20;
  --ele-color-accent: #17161A;
  --ele-color-void: #F7F5F1;
  --ele-color-deck: #FFFFFF;
  --ele-color-deck-2: #F1EEE8;
  --ele-color-raised: #FFFFFF;
  --ele-color-ink-muted: #3E4A50;
  --ele-color-imprint: #5F6C73;
  --ele-color-cyan-soft: rgba(12, 123, 131, .45);
  --ele-color-hairline: rgba(20, 30, 34, .14);
  --ele-color-row-ghost: rgba(20, 30, 34, .035);
  --ele-color-shadow: rgba(30, 40, 44, .12);
  --ele-color-state-negative: #B23A28;
  --ele-color-on-primary: #FFFFFF;
}

/* accent axis - cool or warm, independent of light and dark */
[data-accent="cool"] {
  --ele-color-primary: #86EFEF;
  --ele-color-accent: #86EFEF;
  --ele-color-secondary: #C98A3E;
  --ele-color-on-primary: #0E1113;
}
[data-theme="light"][data-accent="cool"] {
  --ele-color-primary: #0C7B83;
  --ele-color-accent: #0C7B83;
  --ele-color-secondary: #A05C17;
  --ele-color-on-primary: #FFFFFF;
}
[data-accent="warm"] {
  --ele-color-primary: #FFAA33;
  --ele-color-accent: #FFAA33;
  --ele-color-secondary: #FF4500;
  --ele-color-on-primary: #0E1113;
}
[data-theme="light"][data-accent="warm"] {
  --ele-color-primary: #A33026;
  --ele-color-accent: #A33026;
  --ele-color-secondary: #8E4A3B;
  --ele-color-on-primary: #FFFFFF;
}

/* migration aliases - debt, not a layer. Each shrinks to nothing as pages
   move to --ele-*; the block disappears when the last one has moved. */
:root, [data-theme="dark"], [data-theme="light"] {
  --void: var(--ele-color-void);
  --deck: var(--ele-color-deck);
  --deck-2: var(--ele-color-deck-2);
  --raised: var(--ele-color-raised);
  --ink: var(--ele-color-text);
  --ink-muted: var(--ele-color-ink-muted);
  --imprint: var(--ele-color-imprint);
  --cyan: var(--ele-color-primary);
  --cyan-soft: var(--ele-color-cyan-soft);
  --amber: var(--ele-color-secondary);
  --hairline: var(--ele-color-hairline);
  --row-ghost: var(--ele-color-row-ghost);
  --shadow: var(--ele-color-shadow);
  --state-negative: var(--ele-color-state-negative);
  --radius: var(--ele-radius);
  --maxw: var(--ele-container-width);
  --text-2xs: var(--ele-text-2xs);
  --text-xs: var(--ele-text-xs);
  --text-sm: var(--ele-text-sm);
  --text-base: var(--ele-text-base);
  --text-md: var(--ele-text-md);
  --text-lg: var(--ele-text-lg);
  --text-xl: var(--ele-text-xl);
  --text-2xl: var(--ele-text-2xl);
  --leading-display: var(--ele-leading-display);
  --leadingit_title: var(--ele-leadingit_title);
  --leading-lede: var(--ele-leading-lede);
  --leading-body: var(--ele-leading-body);
  --leading-meta: var(--ele-leading-meta);
  --tracking-display: var(--ele-tracking-display);
  --trackingit_title: var(--ele-trackingit_title);
  --tracking-meta: var(--ele-tracking-meta);
  --space-1: var(--ele-space-1);
  --space-2: var(--ele-space-2);
  --space-3: var(--ele-space-3);
  --space-4: var(--ele-space-4);
  --space-5: var(--ele-space-5);
  --space-6: var(--ele-space-6);
}
/* @kit:generated:end */


* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html, body { height: 100%; }
body {
  background: var(--void);
  color: var(--ink);
  font-family: "helvetica_neue", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: var(--text-base);
  line-height: var(--ele-leading-body);
  -webkit-font-smoothing: antialiased;
  transition: background-color .2s ease, color .2s ease;
}
/* OPERATOR RULING 31 Oct: the footer always sits at the bottom - every page is a flex
   column with min-height 100% of the viewport; #view grows, the footer cannot ride up.
   (100dvh on mobile so browser chrome does not push it below the fold.) */
#view,
[data-partial="footer"], [data-partial="header"] { flex: none; }

body { display: flex; flex-direction: column; min-height: 100vh; }
@supports (height: 100dvh) { body { min-height: 100dvh; } }
main#view { flex: 1 0 auto; width: 100%; }
[data-partial="footer"] { margin-top: auto; }
h1, h2 { font-weight: 600; letter-spacing: -.018em; line-height: var(--ele-leadingit_title); }
h1 { font-size: var(--text-lg); }
h2 { font-size: var(--text-md); }
h3 { font-size: var(--ele-text-base); font-weight: 600; }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.mono, code, .version-tag, .table, .tree { font-family: "DejaVu Sans Mono", ui-monospace, monospace; }
.serif { font-family: "instrument_serif", Georgia, serif; font-style: italic; }

/* motion: one curve and one duration for the whole app (operator, 2026-11-05) */
:root { --ease: cubic-bezier(.4, 0, .2, 1); --dur: 200ms; }   /* ease-in-out, snappy */

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--space-4); }

/* ---------------------------------------------------------------- HEADER: section nav (shared strip on every app page + /git) */
.site_nav_wrap { border-bottom: 1px solid var(--hairline); background: color-mix(in srgb, var(--void) 94%, transparent); }
.site_nav { display: flex; gap: 2px; height: 42px; align-items: stretch; }
.site_nav_item {
  display: inline-flex; align-items: center; padding: 6px 12px 9px;
  color: var(--ink-muted); font-size: 12.5px; text-decoration: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.site_nav_item:hover { color: var(--ink); background: var(--row-ghost); }
.site_nav_item.active { color: var(--ink); border-bottom-color: var(--ele-color-primary, var(--cyan)); }
.site_nav_item.active:hover { color: var(--ink); }
/* one surface: dev + git share the same working width */
body.dev_surface main#view.wrap, body.git_surface main#view.wrap { max-width: 88vw; width: 80%; margin: 0 auto; }

/* admin_nav_bar - the section header shared by /dev and /git (same class, same look) */
.admin_nav_bar { display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding-bottom: 0; margin-bottom: 16px; border-bottom: 1px solid var(--hairline); }
.admin_nav_brand { font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; }
.admin_nav_brand:hover { text-decoration: none; }
.admin_nav_brand_sub { color: var(--imprint); font-weight: 400; font-size: 12px; }
.admin_nav_mark {
  display: inline-block; padding: 1px 7px; margin-right: 2px;
  border: 1px solid var(--ele-color-hairline);
  border-radius: var(--ele-radius) !important;
  color: var(--ele-color-primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}
.admin_nav { display: flex; gap: 2px; }
.admin_nav_item { padding: 6px 12px 9px; font-size: 12.5px; color: var(--ink-muted);
  text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.admin_nav_item:hover { color: var(--ink); text-decoration: none; }
.admin_nav_item.is_active { color: var(--ink); border-bottom-color: var(--cyan); }

/* admin_nav_frame - the shared header bar: full width, pinned to the top, opaque so page content
   scrolls underneath instead of showing through (operator ruling, 2026-11-05). Home is the lander
   and carries no strip. */
.admin_nav_frame { position: -webkit-sticky; position: sticky; top: 0; z-index: 60; width: 100%; box-sizing: border-box;
  padding: 0; background: var(--ele-color-void); }
.admin_nav_frame .admin_nav_bar { padding: 0; margin: 0; }

/* Slim scrollbars - the gm8 app recipe (thin, six pixels, translucent thumb),
   adopted for the dev surfaces so /dev and /git share one look. */
body.dev_surface, body.dev_surface *,
.slim_scrollbars, .slim_scrollbars * { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.16) transparent; }
body.dev_surface::-webkit-scrollbar, body.dev_surface *::-webkit-scrollbar,
.slim_scrollbars::-webkit-scrollbar, .slim_scrollbars *::-webkit-scrollbar { width: 6px; height: 6px; }
body.dev_surface::-webkit-scrollbar-track, body.dev_surface *::-webkit-scrollbar-track,
.slim_scrollbars::-webkit-scrollbar-track, .slim_scrollbars *::-webkit-scrollbar-track { background: transparent; }
body.dev_surface::-webkit-scrollbar-thumb, body.dev_surface *::-webkit-scrollbar-thumb,
.slim_scrollbars::-webkit-scrollbar-thumb, .slim_scrollbars *::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.16); border-radius: 3px; }
body.dev_surface::-webkit-scrollbar-thumb:hover, body.dev_surface *::-webkit-scrollbar-thumb:hover,
.slim_scrollbars::-webkit-scrollbar-thumb:hover, .slim_scrollbars *::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.3); }
[data-theme="light"] body.dev_surface, [data-theme="light"] body.dev_surface *,
[data-theme="light"] .slim_scrollbars, [data-theme="light"] .slim_scrollbars * { scrollbar-color: rgba(0, 0, 0, 0.24) transparent; }
[data-theme="light"] body.dev_surface::-webkit-scrollbar-thumb, [data-theme="light"] body.dev_surface *::-webkit-scrollbar-thumb,
[data-theme="light"] .slim_scrollbars::-webkit-scrollbar-thumb, [data-theme="light"] .slim_scrollbars *::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.24); }

/* ---------------------------------------------------------------- HEADER: brand + hamburger + dropdown */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--void) 90%, transparent);
  border-bottom: 1px solid var(--hairline);
  backdrop-filter: blur(10px);
}
.site-header .wrap { display: flex; align-items: center; gap: var(--space-2); height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: var(--ele-text-base); color: var(--ink); margin-right: auto; }
.brand img { width: 26px; height: 26px; flex: none; }
.brand .brand-sub { color: var(--imprint); font-weight: 400; font-size: var(--ele-text-xs); }

.hdr-actions { display: flex; align-items: center; gap: 2px; }

.icon-btn {
  width: 44px; height: 44px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0; color: var(--ink-muted);
  cursor: pointer; border-radius: 7px;
  transition: background-color .15s ease, color .15s ease;
}
.icon-btn:hover { background: var(--row-ghost); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }
[data-theme="dark"] .icon-btn .icon-sun { display: none; }
[data-theme="light"] .icon-btn .icon-moon { display: none; }
[data-theme="dark"] .theme-label::after { content: "Light mode"; }
[data-theme="light"] .theme-label::after { content: "Dark mode"; }
.theme-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[data-theme="dark"] .theme-vis-label::after { content: "Light"; }
[data-theme="light"] .theme-vis-label::after { content: "Dark"; }

/* hamburger -> dropdown (the menu lives here now) */
.menu-toggle[aria-expanded="true"] { background: var(--row-ghost); color: var(--cyan); }

.dropdown {
  position: absolute; top: 58px; right: 12px;
  min-width: 240px;
  background: var(--raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius) !important;
  box-shadow: 0 18px 44px -18px var(--shadow);
  padding: 6px;
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.dropdown.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.dropdown .dd-label { padding: 8px 12px 4px; font-size: var(--ele-text-2xs); letter-spacing: .12em; text-transform: uppercase; color: var(--imprint); font-weight: 600; }
.dropdown .dd-item {
  display: flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 12px;
  font-size: var(--ele-text-sm); font-weight: 500; color: var(--ink);
  border-radius: 7px;
}
.dropdown .dd-item:hover { background: var(--row-ghost); color: var(--cyan); text-decoration: none; }
.dropdown .dd-item.active { color: var(--cyan); background: var(--row-ghost); }
.dropdown .dd-item[hidden] { display: none; }
.dropdown .dd-item .ico { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; opacity: .85; }
.dropdown .dd-sep { height: 1px; background: var(--hairline); margin: 6px 8px; }
.dropdown .dd-user { display: flex; align-items: center; gap: 10px; padding: 10px 12px 8px; }
.dropdown .dd-user .avatar {
  width: 30px; height: 30px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  background: var(--cyan); color: var(--void); font-weight: 700; font-size: var(--ele-text-xs); border-radius: 7px; text-transform: uppercase;
}
[data-theme="light"] .dropdown .dd-user .avatar { color: var(--ele-color-on-primary); }
.dropdown .dd-user .who { font-weight: 600; font-size: var(--ele-text-sm); color: var(--ink); }
.dropdown .dd-user .company { color: var(--imprint); font-size: var(--ele-text-xs); }

@media (max-width: 767px) {
  .site-header .wrap { height: 54px; }
  .brand .brand-sub { display: none; }
  .dropdown { top: 50px; right: 10px; left: 10px; min-width: 0; }
}

/* ---------------------------------------------------------------- BUTTONS / FIELDS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  font-family: "helvetica_neue", "Helvetica Neue", Helvetica, sans-serif; font-size: var(--ele-text-base); font-weight: 600;
  border: 1px solid transparent; cursor: pointer;
  border-radius: var(--radius) !important;      /* OPERATOR RULING: 9px on buttons */
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, filter .15s ease;
}
.btn-primary { background: var(--cyan); color: var(--void); }
[data-theme="light"] .btn-primary { color: var(--ele-color-on-primary); }
.btn-primary:hover { filter: brightness(1.07); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink-muted); border-color: var(--hairline); }
.btn-ghost:hover { color: var(--cyan); border-color: var(--cyan-soft); text-decoration: none; }
.field { display: block; margin-bottom: var(--space-4); }
.field label { display: block; font-size: var(--ele-text-xs); font-weight: 600; color: var(--ink-muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px;
  font-family: "helvetica_neue", "Helvetica Neue", Helvetica, sans-serif; font-size: var(--ele-text-base); color: var(--ink);
  background: var(--deck-2); border: 1px solid var(--hairline);
  padding: 10px 12px; outline: none; border-radius: 7px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cyan-soft); }
.field .helper { display: block; font-size: var(--ele-text-xs); color: var(--imprint); margin-top: 5px; }

/* ---------------------------------------------------------------- CARDS */
.card, .panel {
  background: var(--deck);
  border: 1px solid var(--hairline);
  border-radius: var(--radius) !important;      /* OPERATOR RULING: 9px on cards */
  padding: var(--space-4);
}
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-4); }

/* ---------------------------------------------------------------- DEV DASHBOARD: title + TABS */
.dev-layout { padding: var(--space-5) 0 var(--space-6); }
.dev-title-row { display: flex; align-items: baseline; gap: var(--space-3); flex-wrap: wrap; }
.dev-title-row h1 { font-size: var(--text-lg); }
.dev-title-row .env { color: var(--amber); font-size: var(--ele-text-xs); letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.dev-meta { color: var(--imprint); font-size: var(--ele-text-xs); margin-top: 4px; }
.dev-meta .mono { color: var(--ink-muted); font-size: var(--ele-text-xs); overflow-wrap: anywhere; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--hairline); margin: var(--space-4) 0; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  min-height: 44px; padding: 0 16px;
  font-family: "helvetica_neue", "Helvetica Neue", Helvetica, sans-serif; font-size: var(--ele-text-sm); font-weight: 500; color: var(--imprint);
  background: none; border: 0; border-bottom: 2px solid transparent;
  cursor: pointer; white-space: nowrap; margin-bottom: -1px;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--cyan); border-bottom-color: var(--cyan); font-weight: 600; }
.tabpanel[hidden] { display: none; }

.dev-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); align-items: start; }
@media (max-width: 1023px) { .dev-grid { grid-template-columns: 1fr 1fr; } .panel-span-3 { grid-column: span 2; } }
@media (max-width: 767px)  { .dev-grid { grid-template-columns: 1fr; } .panel-span-3 { grid-column: auto; } }

.dev-grid .panel h3 { display: flex; align-items: center; gap: 8px; font-size: var(--ele-text-sm); margin-bottom: var(--space-3); }
.dev-grid .panel h3 .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); flex: none; }
.panel-note { font-size: var(--ele-text-xs); color: var(--imprint); margin-bottom: var(--space-3); }

/* logs table */
.table { width: 100%; border-collapse: collapse; font-size: var(--ele-text-xs); }
.table th { text-align: left; font-weight: 500; color: var(--imprint); font-size: var(--ele-text-2xs); padding: 6px 8px; border-bottom: 1px solid var(--hairline); }
.table td { padding: 8px; border-bottom: 1px solid var(--row-ghost); vertical-align: top; font-variant-numeric: tabular-nums; color: var(--ink-muted); overflow-wrap: anywhere; }
.table td.who { font-weight: 600; color: var(--ink); }
.table td.commit { color: var(--imprint); }
.table tr:hover td { background: var(--row-ghost); }

/* file tree - FULL REPO hierarchy (grouped by dir, foldable) */
.tree { font-size: var(--ele-text-xs); }
.tree .tree-head { color: var(--imprint); font-size: var(--ele-text-xs); padding: 2px 6px 10px; border-bottom: 1px solid var(--hairline); margin-bottom: 8px; }
.tree .tree-dir { margin-top: 6px; }
.tree .tree-dirname {
  display: flex; align-items: baseline; gap: 8px; width: 100%;
  font-family: inherit; font-size: var(--ele-text-xs); font-weight: 600; color: var(--cyan);
  background: none; border: 0; cursor: pointer; text-align: left;
  min-height: 38px; padding: 4px 6px; border-radius: 7px;
}
.tree .tree-dirname:hover { background: var(--row-ghost); }
.tree .tree-dirname::before { content: "\\25BE"; color: var(--imprint); font-size: var(--ele-text-2xs); }
.tree .tree-dirname[aria-expanded="false"]::before { content: "\\25B8"; }
.tree .tree-count { font-weight: 400; color: var(--imprint); font-size: var(--ele-text-2xs); margin-left: auto; }
.tree .tree-files { padding: 0 6px 6px 18px; }
.tree .row { display: flex; align-items: baseline; gap: 10px; padding: 4px 6px; border-radius: 7px; }
.tree .row:hover { background: var(--row-ghost); }
.tree .dir-part { color: var(--cyan-soft); }
.tree .name { color: var(--ink); }
.tree .path { color: var(--ink-muted); overflow-wrap: anywhere; }
.tree .size { margin-left: auto; color: var(--imprint); white-space: nowrap; }

/* swatches */

/* swatches */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.swatch { border: 1px solid var(--hairline); padding: 8px; font-size: var(--ele-text-2xs); color: var(--ink-muted); font-family: "DejaVu Sans Mono", ui-monospace, monospace; }
.swatch .box { height: 44px; margin-bottom: 6px; border: 1px solid var(--hairline); }

/* message board blocks (the /dev Board tab) */
.board { display: flex; flex-direction: column; gap: 16px; }
.board-block { border: 1px solid var(--hairline); padding: 16px; border-radius: var(--radius) !important; background: var(--deck-2); }
.board-block.signed-bixi { border-left: 3px solid var(--amber); }
.board-block.signed-aeth { border-left: 3px solid var(--cyan); }
.board-block.unsigned { border-left: 3px solid var(--imprint); }
.board-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.board-who { font-weight: 700; font-size: var(--ele-text-xs); text-transform: uppercase; letter-spacing: .08em; }
.board-block.signed-bixi .board-who { color: var(--amber); }
.board-block.signed-aeth .board-who { color: var(--cyan); }
.board-time { color: var(--imprint); font-size: var(--ele-text-2xs); }
.board-topic { color: var(--ink-muted); font-size: var(--ele-text-xs); font-weight: 600; }
.board-body { color: var(--ink-muted); font-size: var(--ele-text-sm); line-height: var(--ele-leading-body); white-space: pre-wrap; overflow-wrap: anywhere; }

/* board compose widget */


/* login modal (gm8 bench) */
.login-panel { width: min(400px, calc(100vw - 32px)); text-align: left; }
.login-mark { display: flex; justify-content: center; margin-bottom: 16px; }
.login-mark img { width: 40px; height: 40px; }
.login-panel .modal-title { margin-bottom: 20px; text-align: center; }
.login-panel .field { margin-bottom: 16px; }
.login-panel .btn-primary { margin-top: 8px; }
.login-panel .modal-close { color: var(--imprint); }

/* dev dash action button row (bixi's link, rebased) */
.dev-actions { display: flex; align-items: center; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.dev-hint { color: var(--imprint); font-size: var(--ele-text-xs); }

/* key widget */
.keyrow { display: flex; gap: 8px; }
.keyrow .field { flex: 1; margin-bottom: 0; }
.keyrow input { font-family: "DejaVu Sans Mono", ui-monospace, monospace; font-size: var(--ele-text-sm) !important; }
.key-state { font-size: var(--ele-text-xs); margin-top: 8px; }
.key-state.ok { color: var(--cyan); }
.key-state.no { color: var(--ele-color-state-negative); }

/* ---------------------------------------------------------------- MODAL */
.modal { display: none; }
.modal.open { display: flex; position: fixed; inset: 0; z-index: 60; }
.modal .modal-backdrop { position: absolute; inset: 0; background: color-mix(in srgb, var(--void) 72%, transparent); }
.modal .modal-panel {
  position: relative; margin: auto; width: min(560px, calc(100vw - 32px));
  background: var(--deck); border: 1px solid var(--hairline);
  border-radius: var(--radius) !important;
  padding: var(--space-4);
}
.modal .modal-title { font-size: var(--text-md); margin-bottom: 10px; }
.modal .modal-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; background: none; border: 0; color: var(--imprint); font-size: var(--ele-text-md); cursor: pointer; }
.modal .modal-close:hover { color: var(--ink); }

/* ---------------------------------------------------------------- FOOTER */
.site-footer { border-top: 1px solid var(--hairline); margin-top: 0; }
.site-footer .wrap { display: flex; align-items: center; gap: var(--space-3); min-height: 56px; color: var(--imprint); font-size: var(--ele-text-xs); padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.site-footer .version-tag { margin-left: auto; font-size: var(--ele-text-xs); }

/* ---------------------------------------------------------------- LANDER polish */
.page { padding: var(--space-5) 0 var(--space-6); }
.page-kicker { color: var(--cyan); font-family: var(--ele-typography-primary-font-family); font-size: var(--ele-text-xs); letter-spacing: .10em; text-transform: uppercase; font-weight: 600; margin-bottom: 8px; }
.muted { color: var(--imprint); }
.small { font-size: var(--ele-text-xs); }
.hero { padding: var(--space-6) 0 var(--space-5); }
.hero h1 { font-size: var(--text-2xl); line-height: var(--ele-leading-display); max-width: 21ch; }
.hero .serif-accent { font-family: "instrument_serif", Georgia, serif; font-style: italic; color: var(--cyan); }

.usercard { display: block; color: var(--ink); transition: border-color .15s ease, transform .15s ease; }
.usercard:hover { text-decoration: none; border-color: var(--cyan-soft); transform: translateY(-1px); }
.usercard .role { color: var(--imprint); font-size: var(--ele-text-xs); text-transform: uppercase; letter-spacing: .1em; }
.usercard .co { color: var(--ink-muted); font-size: var(--ele-text-xs); margin-top: 6px; }

/* ---------------------------------------------------------------- home media */
.hero-band { position: relative; overflow: hidden; border: 1px solid var(--hairline); border-radius: var(--radius); margin: var(--space-4) 0 var(--space-5); background: var(--deck-2); }
.hero-band-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 52%; }
.hero-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,17,19,.95) 0%, rgba(14,17,19,.78) 42%, rgba(14,17,19,.30) 72%, rgba(14,17,19,.08) 100%); }
.hero-band-inner { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; min-height: clamp(340px, 40vw, 470px); max-width: 620px; padding: clamp(26px, 5.5vw, 68px); color: var(--ele-color-inverse); }
.hero-band .page-kicker { color: rgba(244, 241, 234, .74); }
.hero-band h1 { color: var(--ele-color-inverse); text-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.hero-band .hero-lede { margin-top: 12px; max-width: 44ch; font-size: var(--text-base); line-height: var(--ele-leading-lede); color: rgba(244, 241, 234, .94); text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.hero-band .btn-primary { background: var(--cyan); color: var(--void); }
.media-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
.media-fig { margin: 0; }
.media-fig img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--hairline); }
.media-copy h2 { font-size: var(--text-xl); letter-spacing: -.015em; line-height: var(--ele-leadingit_title); }
.media-copy p { margin-top: 10px; max-width: 42ch; }

@media (max-width: 820px) {
  .media-split { grid-template-columns: 1fr; }
  .hero-band-inner { min-height: 360px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------------------------------------------------------------- sitekit (dev bench)
   The kit reference rendered inside /dev. Colour, size and leading come from the kit;
   this block only arranges them. Nothing here declares a value. */
.sk-switches { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: var(--ele-space-3) 0 var(--ele-space-4); }
.sk-label { font-size: var(--ele-text-2xs); letter-spacing: var(--ele-tracking-meta); text-transform: uppercase;
  color: var(--ele-color-imprint); margin-right: 4px; }
.sk-seg { background: none; border: 1px solid var(--ele-color-hairline); border-radius: 7px;
  color: var(--ele-color-imprint); font-family: inherit; font-size: var(--ele-text-xs);
  padding: 6px 12px; min-height: 32px; cursor: pointer; }
.sk-seg:hover { color: var(--ele-color-text); border-color: var(--ele-color-cyan-soft); }
.sk-seg.on { background: var(--ele-color-primary); color: var(--ele-color-on-primary);
  border-color: transparent; font-weight: 600; }
.kit-group { margin-top: var(--ele-space-4); }
.kit-group-head { display: flex; align-items: baseline; gap: var(--ele-space-3); flex-wrap: wrap;
  border-top: 1px solid var(--ele-color-hairline); padding-top: var(--ele-space-3); }
.kit-group-head h4 { font-family: "instrument_sans", "instrument_sans", sans-serif; font-size: var(--ele-text-sm);
  letter-spacing: var(--ele-trackingit_title); }
.kit-spec { border-left: 2px solid var(--ele-color-hairline); padding-left: var(--ele-space-3);
  margin-top: var(--ele-space-3); }
.kit-ramp { display: grid; gap: 4px; margin-top: var(--ele-space-2); }
.kit-ramp-row { display: flex; align-items: baseline; gap: var(--ele-space-3); }
.kit-ramp-row span:first-child { min-width: 96px; }
.token-table { table-layout: fixed; width: 100%; }
.token-table th:nth-child(1) { width: 30%; }
.token-table th:nth-child(2) { width: 17%; }
.token-table th:nth-child(3) { width: 53%; }
.token-table td { vertical-align: top; }
.token-table td:nth-child(1), .token-table td:nth-child(2) { word-break: break-word; }
.token-table td:nth-child(3) { color: var(--ele-color-imprint); }
.token-table tr.token-group td { padding-top: var(--ele-space-4); padding-bottom: 4px;
  font-family: "DejaVu Sans Mono", ui-monospace, monospace; font-size: var(--ele-text-2xs);
  letter-spacing: var(--ele-tracking-meta); color: var(--ele-color-primary); border-bottom: 0; }
.gallery-item { border-top: 1px solid var(--ele-color-hairline); padding-top: var(--ele-space-3);
  margin-top: var(--ele-space-3); }
.gallery-meta { display: flex; align-items: baseline; gap: var(--ele-space-3); flex-wrap: wrap; }
.gallery-sample { display: flex; flex-wrap: wrap; gap: var(--ele-space-3); align-items: center;
  margin-top: var(--ele-space-3); }
