/* propane — design system. Black canvas, white ink, one grayscale ramp. Smooth,
   modern, engineered. Display type is tight system-ui; labels/numbers are mono
   ("telemetry") to echo the kinetic pitch-geometry brand. No third-party fonts. */

:root {
  --bg:        #000000;
  --bg-1:      #070707;   /* raised surface */
  --bg-2:      #0e0e0f;   /* card */
  --bg-3:      #161617;   /* hover / input */
  --line:      #232325;   /* hairline */
  --line-2:    #313134;
  --ink:       #ffffff;
  --ink-2:     #b8b8bd;   /* secondary text */
  --ink-3:     #6e6e75;   /* muted */
  --ink-4:     #45454b;   /* faint */
  --accent:    #ffffff;   /* the product is monochrome — "accent" is pure white */
  --good:      #d6f7e0;   --good-ink:#0a0a0a;
  --warn:      #f7e9c8;
  --bad:       #f6cdce;

  --r-sm: 8px; --r: 12px; --r-lg: 18px; --r-pill: 999px;
  --pad: clamp(16px, 4vw, 28px);
  --maxw: 1180px;

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Roboto Mono", Menlo, Consolas, monospace;

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --t-fast: .16s; --t: .28s; --t-slow: .6s;
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 60px -30px rgba(0,0,0,.9);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,h2,h3,h4 { margin: 0; font-weight: 760; letter-spacing: -0.035em; line-height: 1.02; }
h1 { font-size: clamp(2.6rem, 8vw, 6.5rem); }
h2 { font-size: clamp(1.8rem, 4.5vw, 3.4rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.7rem); letter-spacing:-0.025em; }
p { margin: 0; color: var(--ink-2); }
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
::selection { background: #fff; color: #000; }

/* mono telemetry label */
.kicker, .mono, .tag, .stat-num { font-family: var(--mono); }
.kicker {
  font-size: .72rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 500;
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.muted { color: var(--ink-3); }
.hide { display: none !important; }

/* ── buttons ─────────────────────────────────────────────────────────────── */
.btn {
  --b-bg: #fff; --b-ink: #000;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: inherit; font-weight: 650; letter-spacing: -.01em;
  padding: .72em 1.25em; border-radius: var(--r-pill);
  background: var(--b-bg); color: var(--b-ink);
  border: 1px solid transparent; cursor: pointer;
  transition: transform var(--t-fast) var(--ease), background var(--t) var(--ease), opacity var(--t) var(--ease);
  white-space: nowrap; user-select: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.99); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.btn--ghost { --b-bg: transparent; --b-ink: #fff; border-color: var(--line-2); }
.btn--ghost:hover { background: var(--bg-3); }
.btn--lg { padding: .95em 1.7em; font-size: 1.05rem; }
.btn--sm { padding: .5em .9em; font-size: .85rem; }
.btn--block { width: 100%; }

/* ── inputs ──────────────────────────────────────────────────────────────── */
.input, select.input, textarea.input {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: .8em 1em;
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}
.input::placeholder { color: var(--ink-4); }
.input:focus, .btn:focus-visible, select.input:focus, .chip:focus-visible, .toggle:focus-visible {
  outline: none; border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.12);
}
:where(a,button,[tabindex]):focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 4px; }
label.field { display: block; }
label.field > span { display:block; font-family: var(--mono); font-size:.7rem; letter-spacing:.16em; text-transform:uppercase; color: var(--ink-3); margin-bottom:.5em; }

/* ── surfaces ────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(18px, 3vw, 28px);
  box-shadow: var(--shadow);
}
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }

/* selectable chips / toggles (variant matrix, filters) */
.chip {
  display: inline-flex; align-items: center; gap: .5em;
  font: inherit; font-size: .9rem; font-weight: 550;
  padding: .5em .95em; border-radius: var(--r-pill);
  background: var(--bg-2); color: var(--ink-2);
  border: 1px solid var(--line); cursor: pointer;
  transition: all var(--t-fast) var(--ease); user-select: none;
}
.chip:hover { border-color: var(--line-2); color: var(--ink); }
.chip[aria-pressed="true"], .chip.is-on { background: #fff; color: #000; border-color: #fff; }
.chip[disabled] { opacity: .35; cursor: not-allowed; }

/* status badges */
.badge { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .28em .6em; border-radius: var(--r-pill); border: 1px solid var(--line-2); color: var(--ink-2); }
.badge--good { background: var(--good); color: var(--good-ink); border-color: transparent; }
.badge--bad  { background: var(--bad);  color: #2a0a0b; border-color: transparent; }
.badge--run  { background: var(--bg-3); color: #fff; }

/* progress bar */
.bar { height: 4px; background: var(--bg-3); border-radius: var(--r-pill); overflow: hidden; }
.bar > i { display:block; height:100%; width:0; background:#fff; transition: width var(--t) var(--ease); }

/* table */
table.tbl { width:100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align:left; font-family: var(--mono); font-size:.68rem; letter-spacing:.12em; text-transform:uppercase; color: var(--ink-3); font-weight:500; padding:.7em .8em; border-bottom:1px solid var(--line); }
.tbl td { padding:.7em .8em; border-bottom:1px solid var(--line); color: var(--ink-2); }
.tbl tr:hover td { background: var(--bg-1); color: var(--ink); }

/* toast */
.toast-host { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 90; display:flex; flex-direction:column; gap:8px; align-items:center; }
.toast { background:#fff; color:#000; font-weight:600; padding:.7em 1.1em; border-radius: var(--r-pill); box-shadow: 0 20px 50px -20px rgba(0,0,0,.7); animation: toastIn .3s var(--ease-out); }
.toast--bad { background: var(--bad); }
@keyframes toastIn { from { opacity:0; transform: translateY(10px); } to { opacity:1; transform:none; } }

/* skeleton shimmer */
.skel { background: linear-gradient(90deg, var(--bg-2) 0%, var(--bg-3) 50%, var(--bg-2) 100%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; border-radius: var(--r-sm); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* spinner */
.spin { width:1em; height:1em; border:2px solid rgba(255,255,255,.25); border-top-color:#fff; border-radius:50%; animation: rot .7s linear infinite; display:inline-block; }
@keyframes rot { to { transform: rotate(360deg); } }

/* scrollbar */
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 3px solid var(--bg); }

/* top nav (shared by app/admin) */
.nav { position: sticky; top:0; z-index: 40; backdrop-filter: blur(14px); background: rgba(0,0,0,.6); border-bottom: 1px solid var(--line); }
.nav .wrap { display:flex; align-items:center; justify-content:space-between; height: 64px; }
.brandmark { display:flex; align-items:center; gap:.55em; font-weight:800; letter-spacing:-.05em; font-size:1.25rem; }
.brandmark .dot { width:9px;height:9px;border-radius:50%;background:#fff;box-shadow:0 0 18px 2px rgba(255,255,255,.7); }
.nav-credits { font-family: var(--mono); font-size:.85rem; color: var(--ink); display:flex; align-items:center; gap:.5em; padding:.4em .8em; border:1px solid var(--line); border-radius: var(--r-pill); }

/* entrance animation utility */
[data-rise] { opacity:0; transform: translateY(14px); }
[data-rise].in { opacity:1; transform:none; transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
