/* ============================================================
   codingasik — Neo-Brutalist Design System
   Tokens below are the canonical source. The app's own
   design-system.md output must match this file.
   ============================================================ */

/* Fonts are served from this repo, not from a CDN. Both families are
   variable fonts, so one file each covers every weight in use. Keeping
   them self-hosted means no visitor IP ever reaches Google, which is
   what lets the site claim it makes no external requests. */
@font-face {
  font-family: 'Space Grotesk';
  src: url('fonts/space-grotesk-var.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/jetbrains-mono-var.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette */
  --bg: #F4F0EA;
  --ink: #1A1A1A;
  --accent: #FACC15;
  --info: #38BDF8;
  --danger: #FB7185;
  --success: #34D399;
  --white: #FFFFFF;
  --muted: #8A8378;

  /* Typography */
  --font-sans: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Cascadia Code', Consolas, monospace;

  /* Geometry */
  --bw: 3px;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow: 4px 4px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --shadow-none: 0 0 0 var(--ink);

  /* Layout scale — only these values are permitted */
  --s1: 4px;
  --s2: 8px;
  --s3: 16px;
  --s4: 24px;
  --s5: 32px;
  --s6: 48px;

  --max-text: 720px;
  --max-app: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
}

/* Faint grid texture — no gradients, just a repeating line pattern */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 31px, rgba(26,26,26,.035) 31px, rgba(26,26,26,.035) 32px),
    repeating-linear-gradient(90deg, transparent, transparent 31px, rgba(26,26,26,.035) 31px, rgba(26,26,26,.035) 32px);
}

main, header, footer { position: relative; z-index: 1; }

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 { font-size: clamp(2rem, 6vw, 4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); text-transform: uppercase; }
h3 { font-size: 1.15rem; }

p { margin: 0; }

a { color: var(--ink); text-decoration: underline 3px var(--info); text-underline-offset: 3px; }
a:hover { background: var(--info); text-decoration: none; }

code, .mono, kbd { font-family: var(--font-mono); font-size: .9em; }

::selection { background: var(--accent); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- "Mulai di sini" — the five steps, in plain language ---------- */

.steps-guide { counter-reset: sg; }
.steps-guide__item {
  counter-increment: sg;
  display: grid; grid-template-columns: 40px minmax(0,1fr); gap: var(--s3);
  align-items: start;
}
/* The number is drawn by a CSS counter, not by the markup, so it stays
   correct when the step list is reordered. It has to increment on the
   VISIBLE item: a counter on a display:none element never advances. */
.steps-guide__item::before {
  content: counter(sg);
  width: 40px; height: 40px;
  border: var(--bw) solid var(--ink); background: var(--accent);
  box-shadow: var(--shadow-sm);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem;
}
/* The step number is drawn by ::before, so this badge stays hidden. It is
   kept in the markup because the onboarding test counts the seven steps
   by it. Do NOT move the counter onto this hidden node. */
.steps-guide__n { display: none; }
.steps-guide__item .sg-n { display: none; }

.steps-guide__item h3 { font-size: 1.05rem; margin-bottom: var(--s1); text-transform: none; }
.steps-guide__item p { font-size: .9rem; color: #3A3A3A; }
.steps-guide__item .sg-do {
  margin-top: var(--s2); font-family: var(--font-mono); font-size: .78rem;
  background: var(--white); border: 2px solid var(--ink);
  border-radius: var(--radius-sm); padding: var(--s1) var(--s2);
}
.steps-guide__item .sg-do b { font-size: .66rem; text-transform: uppercase; letter-spacing: .05em; display: block; margin-bottom: 2px; }

.terms { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: var(--s2); }
.term { border: 2px solid var(--ink); background: var(--white); padding: var(--s3); box-shadow: var(--shadow-sm); }
.term__name { font-family: var(--font-mono); font-weight: 700; font-size: .84rem; margin-bottom: var(--s1); }
.term__def { font-size: .85rem; color: #3A3A3A; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--s2); top: -100px; z-index: 100;
  background: var(--accent); border: var(--bw) solid var(--ink);
  padding: var(--s2) var(--s3); font-weight: 700; text-decoration: none;
  box-shadow: var(--shadow);
}
.skip-link:focus { top: var(--s2); }

/* ---------- Layout shell ---------- */

.shell { max-width: var(--max-app); margin: 0 auto; padding: 0 var(--s3); }
.shell--text { max-width: var(--max-text); }

.site-header {
  border-bottom: var(--bw) solid var(--ink);
  background: var(--bg);
  position: sticky; top: 0; z-index: 50;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s3); min-height: 64px; padding: var(--s2) 0;
}
.brand {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-weight: 700; font-size: 1.05rem; text-decoration: none;
  text-transform: uppercase; letter-spacing: -0.02em;
}
.brand:hover { background: transparent; text-decoration: underline 3px var(--ink); text-underline-offset: 4px; }
.brand__mark {
  width: 30px; height: 30px; flex: none;
  border: var(--bw) solid var(--ink); background: var(--accent);
  box-shadow: var(--shadow-sm); display: grid; place-items: center;
}
.brand__mark svg { width: 16px; height: 16px; display: block; }

.nav { display: flex; gap: var(--s1); flex-wrap: wrap; }
.nav a {
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  padding: var(--s1) var(--s2); text-decoration: none;
  border: 2px solid transparent;
}
.nav a:hover { background: var(--accent); border-color: var(--ink); }
.nav a[aria-current='page'] {
  border: 2px solid var(--ink); background: var(--white);
  box-shadow: var(--shadow-sm);
}

.site-footer {
  border-top: var(--bw) solid var(--ink);
  margin-top: var(--s6); padding: var(--s4) 0;
  font-size: .82rem; color: var(--muted);
}
.site-footer a { color: var(--ink); }

.stack { display: flex; flex-direction: column; }
.stack > * + * { margin-top: var(--s3); }
.stack--tight > * + * { margin-top: var(--s2); }
.stack--loose > * + * { margin-top: var(--s4); }

.row { display: flex; gap: var(--s2); flex-wrap: wrap; align-items: center; }
.row--between { justify-content: space-between; }
.row--end { justify-content: flex-end; }
.grow { flex: 1 1 auto; min-width: 0; }

.section { padding: var(--s5) 0; }
.section__head { margin-bottom: var(--s4); }
.section__head p { color: var(--muted); margin-top: var(--s2); max-width: var(--max-text); }

/* ---------- Cards ---------- */

.card {
  background: var(--white);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow);
  padding: var(--s3);
  position: relative;
}
.card--lg { padding: var(--s4); }
.card--accent { background: var(--accent); }
.card--flat { box-shadow: none; }
.card__title { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s2); }
.card__body { font-size: .92rem; }
.card__foot { margin-top: var(--s3); padding-top: var(--s2); border-top: 2px dashed var(--ink); }

.grid { display: grid; gap: var(--s3); }
.grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s2);
  font-family: var(--font-sans); font-weight: 700;
  font-size: .9rem; text-transform: uppercase; letter-spacing: .02em;
  padding: var(--s2) var(--s3);
  background: var(--white);
  color: var(--ink);
  border: var(--bw) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  text-decoration: none;
  transition: transform 100ms ease, box-shadow 100ms ease;
  white-space: nowrap;
}
.btn:hover:not(:disabled) {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-none);
}
.btn:active:not(:disabled) { transform: translate(4px, 4px); box-shadow: var(--shadow-none); }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: var(--shadow-sm); }

.btn--primary { background: var(--accent); }
.btn--info { background: var(--info); }
.btn--danger { background: var(--danger); }
.btn--success { background: var(--success); }
.btn--ghost { background: var(--white); box-shadow: none; border-color: var(--muted); }
.btn--ghost:hover:not(:disabled) { border-color: var(--ink); box-shadow: var(--shadow-sm); }
.btn--lg { padding: var(--s3) var(--s4); font-size: 1rem; box-shadow: 5px 5px 0 var(--ink); }
.btn--lg:hover:not(:disabled) { box-shadow: 0 0 0 var(--ink); }
.btn--sm { padding: var(--s1) var(--s2); font-size: .75rem; border-width: 2px; box-shadow: var(--shadow-sm); }
.btn--sm:hover:not(:disabled) { box-shadow: none; }
.btn--block { width: 100%; }
/* Copy feedback: the button says it worked instead of only a toast. */
.btn--copied { background: var(--success); }
.btn svg { width: 15px; height: 15px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; }

.btn-group { display: flex; flex-wrap: wrap; gap: var(--s2); }

/* ---------- Forms ---------- */

.field { display: flex; flex-direction: column; gap: var(--s1); }
.field__label {
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em;
}
.field__hint { font-size: .78rem; color: var(--muted); }
.field__req { color: var(--danger); }

.input, .textarea, .select {
  width: 100%;
  font-family: var(--font-sans); font-size: .95rem;
  color: var(--ink); background: var(--white);
  border: var(--bw) solid var(--ink);
  border-radius: var(--radius);
  padding: var(--s2) var(--s3);
  box-shadow: var(--shadow-sm);
}
.input:focus, .textarea:focus, .select:focus { outline: 3px solid var(--accent); outline-offset: 1px; }
.textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%231A1A1A' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right var(--s3) center;
  background-size: 11px; padding-right: var(--s5);
}

.char-counter { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); }
.char-counter.is-over { color: var(--danger); font-weight: 700; }

/* Checkbox / radio as chip toggles */
.check {
  display: flex; align-items: flex-start; gap: var(--s2);
  padding: var(--s2) var(--s3);
  border: 2px solid var(--ink); background: var(--white);
  border-radius: var(--radius-sm); cursor: pointer;
  font-size: .82rem; line-height: 1.3;
  transition: transform 100ms ease, background 100ms ease;
}
.check:hover { background: var(--bg); transform: translate(1px,1px); }
.check input { margin: 2px 0 0; accent-color: var(--ink); width: 15px; height: 15px; flex: none; cursor: pointer; }
.check:has(input:checked) { background: var(--accent); }
.check__label { font-weight: 700; }
.check__meta { display: block; font-size: .72rem; color: var(--muted); font-family: var(--font-mono); font-weight: 400; }
.check:has(input:checked) .check__meta { color: var(--ink); }

/* ---------- Badges & chips ---------- */

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-mono); font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  padding: 2px var(--s2);
  border: 2px solid var(--ink); border-radius: 999px;
  background: var(--white); white-space: nowrap;
}
.badge--ok { background: var(--success); }
.badge--warn { background: var(--accent); }
.badge--bad { background: var(--danger); }
.badge--info { background: var(--info); }
.badge--muted { background: var(--bg); color: var(--muted); border-color: var(--muted); }

.chip {
  display: inline-flex; align-items: center; gap: var(--s1);
  font-size: .74rem; font-weight: 700; text-transform: uppercase;
  padding: var(--s1) var(--s2);
  border: 2px solid var(--ink); border-radius: 999px;
  background: var(--white);
}

/* ---------- Tabs ---------- */

.tabs {
  display: flex; gap: 0; flex-wrap: wrap;
  border: var(--bw) solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}
.tab {
  font-family: var(--font-sans); font-weight: 700; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .04em;
  padding: var(--s2) var(--s3);
  background: transparent; color: var(--ink);
  border: 0; border-right: 2px solid var(--ink);
  cursor: pointer;
}
.tab:last-child { border-right: 0; }
.tab:hover { background: var(--bg); }
.tab[aria-selected='true'] { background: var(--accent); }
.tab:disabled { opacity: .4; cursor: not-allowed; }
.tab__n { font-family: var(--font-mono); opacity: .6; margin-left: 4px; }

.tabpanel { padding: var(--s4) 0; }
.tabpanel[hidden] { display: none; }

/* ---------- Banners ---------- */

.banner {
  display: flex; align-items: flex-start; gap: var(--s3);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow-sm);
  padding: var(--s3);
  font-size: .88rem;
  background: var(--accent);
  margin-bottom: var(--s3);
}
.banner--danger { background: var(--danger); }
.banner--info { background: var(--info); }
.banner--success { background: var(--success); }
.banner__icon { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.banner__icon svg { width: 100%; height: 100%; stroke: var(--ink); fill: none; stroke-width: 2; stroke-linecap: square; }
.banner strong { text-transform: uppercase; font-size: .82rem; }
.banner[hidden] { display: none; }

/* ---------- Steps ---------- */

.steps { display: flex; gap: var(--s2); flex-wrap: wrap; margin-bottom: var(--s4); }
.step {
  display: flex; align-items: center; gap: var(--s2);
  font-size: .76rem; font-weight: 700; text-transform: uppercase;
  padding: var(--s1) var(--s3);
  border: 2px solid var(--muted); color: var(--muted);
  border-radius: 999px; background: var(--white);
}
.step__n {
  width: 18px; height: 18px; flex: none; border-radius: 50%;
  background: var(--muted); color: var(--white);
  display: grid; place-items: center; font-family: var(--font-mono); font-size: .68rem;
}
.step.is-active { border-color: var(--ink); color: var(--ink); background: var(--accent); }
.step.is-active .step__n { background: var(--ink); }
.step.is-done { border-color: var(--ink); color: var(--ink); }
.step.is-done .step__n { background: var(--success); color: var(--ink); }

/* ---------- Empty states ---------- */

.empty {
  border: var(--bw) dashed var(--ink);
  background: var(--white);
  padding: var(--s5) var(--s3);
  text-align: center;
}
.empty__art {
  font-family: var(--font-mono); font-size: clamp(.6rem, 2.2vw, .95rem);
  line-height: 1.25; white-space: pre; color: var(--ink);
  margin: 0 auto var(--s3); overflow-x: auto; text-align: left;
  display: inline-block;
}
.empty__title { font-size: 1.1rem; text-transform: uppercase; margin-bottom: var(--s2); }
.empty__text { font-size: .9rem; color: var(--muted); max-width: 46ch; margin: 0 auto var(--s3); }

/* ---------- Markdown preview ---------- */

.md { font-size: .95rem; line-height: 1.6; max-width: var(--max-text); }
.md > *:first-child { margin-top: 0; }
.md h1 { font-size: 1.75rem; margin: var(--s5) 0 var(--s3); text-transform: none; }
.md h2 { font-size: 1.3rem; margin: var(--s4) 0 var(--s2); border-bottom: 2px solid var(--ink); padding-bottom: 4px; }
.md h3 { font-size: 1.05rem; margin: var(--s3) 0 var(--s2); }
.md p { margin: 0 0 var(--s3); }
.md ul, .md ol { margin: 0 0 var(--s3); padding-left: var(--s4); }
.md li { margin-bottom: var(--s1); }
.md li::marker { color: var(--muted); font-family: var(--font-mono); }
.md strong { font-weight: 700; }
.md code {
  background: var(--bg); border: 1px solid var(--muted);
  padding: 1px 5px; border-radius: var(--radius-sm);
}
.md blockquote {
  margin: 0 0 var(--s3); padding: var(--s2) var(--s3);
  border-left: 6px solid var(--info); background: var(--white);
}
.md hr { border: 0; border-top: var(--bw) solid var(--ink); margin: var(--s4) 0; }
.md pre {
  background: var(--ink); color: var(--bg);
  border: var(--bw) solid var(--ink); box-shadow: var(--shadow-sm);
  padding: var(--s3); overflow-x: auto; margin: 0 0 var(--s3);
}
.md pre code { background: none; border: 0; padding: 0; color: inherit; font-size: .82rem; }
.md table { border-collapse: collapse; width: 100%; margin-bottom: var(--s3); font-size: .88rem; }
.md th, .md td { border: 2px solid var(--ink); padding: var(--s2); text-align: left; }
.md th { background: var(--bg); font-weight: 700; }
.md a { overflow-wrap: anywhere; }

/* ---------- Code / file viewer ---------- */

.fileview { border: var(--bw) solid var(--ink); background: var(--ink); box-shadow: var(--shadow); }
.fileview__head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
  padding: var(--s2) var(--s3);
  background: var(--accent); color: var(--ink);
  border-bottom: var(--bw) solid var(--ink);
  font-family: var(--font-mono); font-size: .74rem; font-weight: 700;
  flex-wrap: wrap;
}
.fileview__body {
  background: var(--ink); color: var(--bg);
  padding: var(--s3); overflow-x: auto;
  font-family: var(--font-mono); font-size: .78rem; line-height: 1.55;
  max-height: 460px; overflow-y: auto;
  white-space: pre; tab-size: 2;
}
.fileview__body:empty::before { content: '(file kosong)'; color: var(--muted); }

/* ---------- Audit table ---------- */

.audit { width: 100%; border-collapse: collapse; font-size: .8rem; }
.audit th, .audit td { border: 2px solid var(--ink); padding: var(--s2); text-align: left; vertical-align: top; }
.audit th { background: var(--ink); color: var(--bg); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; }
.audit td.num { font-family: var(--font-mono); text-align: right; white-space: nowrap; }
.audit tbody tr:nth-child(even) { background: rgba(244,240,234,.5); }

/* ---------- Feature cards (plan) ---------- */

.feature { border: var(--bw) solid var(--ink); background: var(--white); box-shadow: var(--shadow-sm); padding: var(--s3); }
.feature__head { display: flex; align-items: flex-start; gap: var(--s2); margin-bottom: var(--s2); }
.feature__n {
  width: 26px; height: 26px; flex: none; background: var(--accent);
  border: 2px solid var(--ink); border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 700; font-size: .8rem;
}
.feature__title { flex: 1; font-weight: 700; font-size: 1rem; }
.feature__desc { font-size: .88rem; margin-bottom: var(--s2); }
.feature__acts { display: flex; gap: var(--s1); flex-wrap: wrap; }

/* ---------- Swatches ---------- */

.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--s2); }
.swatch { border: 2px solid var(--ink); box-shadow: var(--shadow-sm); overflow: hidden; }
.swatch__chip { height: 52px; border-bottom: 2px solid var(--ink); }
.swatch__meta { padding: var(--s2); background: var(--white); }
.swatch__name { font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.swatch__hex { font-family: var(--font-mono); font-size: .82rem; font-weight: 700; }

.tokens { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: var(--s2); }
.token-row {
  display: flex; justify-content: space-between; gap: var(--s2);
  font-family: var(--font-mono); font-size: .78rem;
  padding: var(--s1) 0; border-bottom: 1px dashed var(--muted);
}
.token-row span:first-child { color: var(--muted); }

/* ---------- Idea board (andal) ---------- */

.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s3); }
.idea { border: var(--bw) solid var(--ink); background: var(--white); box-shadow: var(--shadow-sm); padding: var(--s3); }
.idea.is-fav { background: var(--accent); }
.idea__text { font-size: .92rem; margin-bottom: var(--s2); white-space: pre-wrap; overflow-wrap: anywhere; }
.idea__versions { margin-top: var(--s3); border-top: 2px dashed var(--ink); padding-top: var(--s2); }
.idea__ver { font-size: .78rem; color: var(--muted); margin-bottom: var(--s1); display: flex; gap: var(--s2); }
.idea__ver b { font-family: var(--font-mono); color: var(--ink); }

/* ---------- Zip preview ---------- */

.zip-thumb {
  border: var(--bw) solid var(--ink); background: var(--white);
  box-shadow: var(--shadow); padding: var(--s3);
}
.zip-thumb__head { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s2); }
.zip-thumb__icon {
  width: 34px; height: 42px; flex: none; position: relative;
  border: var(--bw) solid var(--ink); background: var(--accent);
}
.zip-thumb__icon::before {
  content: ''; position: absolute; top: 0; right: 0;
  border-width: 0 14px 14px 0; border-style: solid;
  border-color: transparent var(--white) transparent transparent;
  border-top-right-radius: var(--radius-sm);
}
.zip-thumb__icon::after {
  content: ''; position: absolute; top: 0; right: 0;
  border-width: 0 10px 10px 0; border-style: solid;
  border-color: transparent var(--bg) transparent transparent;
}
.zip-thumb__label { font-family: var(--font-mono); font-size: .72rem; font-weight: 700; }
.zip-thumb__files { border-top: 2px dashed var(--ink); padding-top: var(--s2); }
.zip-thumb__file {
  display: flex; justify-content: space-between; gap: var(--s2);
  font-family: var(--font-mono); font-size: .72rem; padding: 2px 0;
}
.zip-thumb__file span:last-child { color: var(--muted); white-space: nowrap; }
.zip-thumb__file.is-nested { padding-left: var(--s3); }

/* ---------- Toast ---------- */

.toast-host {
  position: fixed; left: 50%; bottom: var(--s4); transform: translateX(-50%);
  z-index: 200; display: flex; flex-direction: column; gap: var(--s2);
  width: min(92vw, 460px); pointer-events: none;
}
.toast {
  border: var(--bw) solid var(--ink); box-shadow: var(--shadow);
  padding: var(--s2) var(--s3); font-size: .86rem; font-weight: 700;
  background: var(--accent); text-transform: uppercase;
  pointer-events: auto;
  animation: toast-in 160ms ease;
}
.toast--success { background: var(--success); }
.toast--danger { background: var(--danger); }
@keyframes toast-in { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Modal ---------- */

.modal { border: var(--bw) solid var(--ink); box-shadow: var(--shadow); background: var(--white); max-width: 620px; width: 100%; }
.modal::backdrop { background: rgba(26,26,26,.55); }
.modal__head { padding: var(--s3); border-bottom: var(--bw) solid var(--ink); background: var(--accent); display: flex; justify-content: space-between; align-items: center; gap: var(--s3); }
.modal__body { padding: var(--s3); }
.modal__foot { padding: var(--s3); border-top: var(--bw) solid var(--ink); display: flex; gap: var(--s2); justify-content: flex-end; flex-wrap: wrap; }

/* ---------- Split preview layout ---------- */

.split { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); gap: var(--s3); align-items: start; }
.pane__title {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
  font-weight: 700; margin-bottom: var(--s2); color: var(--muted);
}

.tool-card {
  display: flex; flex-direction: column; gap: var(--s2);
  border: var(--bw) solid var(--ink); box-shadow: var(--shadow);
  background: var(--white); padding: var(--s3);
  text-decoration: none; color: inherit; text-align: left;
  transition: transform 100ms ease, box-shadow 100ms ease;
  min-height: 100%;
}
.tool-card:hover { transform: translate(2px,2px); box-shadow: var(--shadow-none); background: var(--accent); }
.tool-card:active { transform: translate(4px,4px); box-shadow: none; }
.tool-card__icon {
  width: 38px; height: 38px; flex: none;
  border: var(--bw) solid var(--ink); background: var(--accent);
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.tool-card__icon svg { width: 20px; height: 20px; stroke: var(--ink); fill: none; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; }
.tool-card__title { font-size: 1.05rem; text-transform: uppercase; font-weight: 700; }
.tool-card__desc { font-size: .86rem; }
.tool-card__hint { font-size: .74rem; font-family: var(--font-mono); color: var(--muted); margin-top: auto; padding-top: var(--s2); border-top: 1px dashed var(--ink); }
.tool-card:hover .tool-card__hint { color: var(--ink); }

.hero { padding: var(--s6) 0 var(--s5); }
.hero h1 { max-width: 18ch; }
.hero__lede { margin-top: var(--s3); font-size: 1.05rem; max-width: 56ch; color: #3A3A3A; }
.hero__meta { margin-top: var(--s4); display: flex; gap: var(--s2); flex-wrap: wrap; }

.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: var(--s3); }
.stat { border: 2px solid var(--ink); background: var(--white); padding: var(--s3); }
.stat__n { font-family: var(--font-mono); font-size: 1.9rem; font-weight: 700; line-height: 1; }
.stat__l { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-top: var(--s1); }

.hr { border: 0; border-top: var(--bw) solid var(--ink); margin: var(--s4) 0; }
.hr--dashed { border-top: 2px dashed var(--ink); }

/* ---------- "Why this rule exists" tooltip ---------- */
/* Inline button, expands in place. No blur, no glass — a hard border and a
   hard shadow, same as everything else here. */

.why {
  display: inline-flex; align-items: center; gap: var(--s1);
  background: none; border: 0; padding: 0; margin: 0;
  font: inherit; color: var(--ink); cursor: pointer;
  position: relative; vertical-align: middle;
  line-height: 1;
}
.why__mark {
  display: grid; place-items: center;
  width: 16px; height: 16px; flex: none;
  border: 2px solid var(--ink); border-radius: 50%;
  background: var(--accent);
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  text-transform: uppercase;
}
.why:hover .why__mark, .why[aria-expanded='true'] .why__mark { background: var(--ink); color: var(--accent); }

.why__body {
  display: none;
  position: absolute; left: 0; top: calc(100% + var(--s2));
  z-index: 60; width: max(260px, 46ch); max-width: 78vw;
  background: var(--white);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow);
  padding: var(--s2) var(--s3);
  font-size: .82rem; line-height: 1.45;
  text-align: left; white-space: normal;
  cursor: default;
}
.why[aria-expanded='true'] .why__body { display: block; }
.why__body b { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }
.why__cost { display: block; margin-top: var(--s2); padding-top: var(--s2); border-top: 2px dashed var(--ink); color: var(--muted); }
.why__cost b { color: var(--ink); margin-bottom: 0; }

/* flip above when there is no room below */
.why--up .why__body { top: auto; bottom: calc(100% + var(--s2)); }

/* ---------- Label row that pairs a label with its why-tag ---------- */

.label-row { display: flex; align-items: baseline; gap: var(--s1); flex-wrap: wrap; }
.label-row > .field__label { flex: 0 1 auto; }

/* ---------- Scaffold preview ---------- */
/* A live preview of the generated components, using the same tokens the
   generated CSS uses. No blur, no gradient — the same visual language. */

.sc-stage {
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow);
  padding: var(--s3);
  background: var(--bg);
  color: var(--ink);
  transition: background 120ms ease, color 120ms ease;
}
.sc-stage[data-theme='dark'] {
  /* Terminal preset is dark, so the toggle flips ink and bg. Both values
     come from the preset, never invented here. */
  --bg: var(--sc-dark-bg, #141414);
  --ink: var(--sc-dark-ink, #E8E8E8);
  --accent: var(--sc-dark-accent, #FFC400);
  --danger: var(--sc-dark-danger, #F14C4C);
  --success: var(--sc-dark-success, #7CB342);
  --info: var(--sc-dark-info, #4EC9B0);
}

.sc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--s3); }
.sc-cell { border: 2px dashed var(--ink); border-radius: var(--radius-sm); padding: var(--s2); }
.sc-cell__label {
  font-family: var(--font-mono); font-size: .64rem; text-transform: uppercase;
  letter-spacing: .05em; opacity: .7; margin-bottom: var(--s1); display: block;
}
.sc-btn {
  font-family: var(--font-sans); font-weight: 700; font-size: .82rem;
  padding: var(--s2) var(--s3);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius);
  background: var(--accent); color: var(--ink);
  box-shadow: var(--shadow); cursor: pointer;
  transition: transform 100ms ease, box-shadow 100ms ease;
}
.sc-btn:hover { transform: translate(2px, 2px); box-shadow: none; }
.sc-btn:disabled { opacity: .45; cursor: not-allowed; }
.sc-btn[data-v='danger'] { background: var(--danger); }
.sc-btn[data-v='ghost'] { background: var(--bg); }
.sc-input {
  width: 100%; padding: var(--s2); font-family: var(--font-sans); font-size: .85rem;
  border: var(--border-w) solid var(--ink); border-radius: var(--radius);
  background: var(--bg); color: var(--ink);
}
.sc-input[aria-invalid='true'] { border-color: var(--danger); }
.sc-card {
  padding: var(--s2); border: var(--border-w) solid var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow); background: var(--bg);
}
.sc-badge {
  display: inline-block; padding: 2px var(--s2); border: 2px solid var(--ink);
  border-radius: 999px; font-family: var(--font-mono); font-size: .68rem; font-weight: 700;
  background: var(--bg); color: var(--ink);
}
.sc-empty {
  padding: var(--s4) var(--s2); border: var(--bw) dashed var(--ink);
  border-radius: var(--radius); text-align: center; font-size: .82rem;
}
.sc-skel { border: 2px solid var(--ink); border-radius: var(--radius-sm); background: var(--ink); opacity: .18; height: 12px; margin-bottom: var(--s1); }

.scaffold-files { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--s2); margin-top: var(--s3); }
.scaffold-file { border: 2px solid var(--ink); background: var(--white); border-radius: var(--radius-sm); padding: var(--s2); }
.scaffold-file__name { font-family: var(--font-mono); font-size: .72rem; font-weight: 700; }
.scaffold-file__why { font-size: .78rem; margin-top: var(--s1); }
.scaffold-file__states { font-family: var(--font-mono); font-size: .66rem; opacity: .7; margin-top: var(--s1); }

/* ---------- Audit ---------- */

.audit-file { border: var(--bw) solid var(--ink); box-shadow: var(--shadow-sm); background: var(--white); }
.audit-file__head {
  padding: var(--s2) var(--s3); background: var(--ink); color: var(--bg);
  font-family: var(--font-mono); font-size: .76rem; font-weight: 700;
  display: flex; justify-content: space-between; gap: var(--s2); flex-wrap: wrap;
}
.audit-file__body { padding: 0; }

.finding {
  border-top: 2px solid var(--ink);
  padding: var(--s3);
  display: grid; grid-template-columns: 46px minmax(0,1fr); gap: var(--s3);
}
.finding__sev {
  width: 46px; height: 46px; flex: none;
  border: var(--bw) solid var(--ink); border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 700; font-size: .7rem;
  text-align: center; line-height: 1.1;
}
.finding[data-sev='high'] .finding__sev { background: var(--danger); }
.finding[data-sev='medium'] .finding__sev { background: var(--accent); }
.finding[data-sev='low'] .finding__sev { background: var(--bg); }

.finding__title { font-weight: 700; font-size: .95rem; margin-bottom: var(--s1); display: flex; gap: var(--s2); align-items: baseline; flex-wrap: wrap; }
.finding__line { font-family: var(--font-mono); font-size: .7rem; background: var(--bg); border: 1px solid var(--muted); padding: 1px 5px; }
.finding__code {
  font-family: var(--font-mono); font-size: .74rem;
  background: var(--bg); border-left: 4px solid var(--danger);
  padding: var(--s2); margin: var(--s2) 0; overflow-x: auto; white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.finding__fix { font-size: .87rem; }
.finding__why {
  font-size: .82rem; margin-top: var(--s2); padding-top: var(--s2);
  border-top: 1px dashed var(--ink); color: #3A3A3A;
}
.finding__why b { font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; display: block; margin-bottom: 2px; }
.finding__rule {
  display: inline-block; font-family: var(--font-mono); font-size: .66rem;
  background: var(--info); border: 2px solid var(--ink); padding: 1px 6px; margin-top: var(--s2);
}
.finding__unless { font-size: .76rem; color: var(--muted); margin-top: var(--s1); font-style: italic; }

.audit-clean {
  border: var(--bw) solid var(--ink); background: var(--success);
  padding: var(--s4); text-align: center;
}
.audit-clean__title { font-size: 1.15rem; font-weight: 700; text-transform: uppercase; }

.muted { color: var(--muted); }

/* a muted run inside an otherwise bold label */
.muted.font-normal { font-weight: 400; text-transform: none; letter-spacing: 0; }
.small { font-size: .82rem; }
.tiny { font-size: .72rem; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.sr-hidden-input { position: absolute; opacity: 0; pointer-events: none; height: 0; width: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0,1fr); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .shell { padding: 0 var(--s3); }
}

@media (max-width: 560px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0,1fr); }
  .site-header__inner { flex-direction: column; align-items: stretch; gap: var(--s2); min-height: 0; padding: var(--s3) 0; }
  .nav { justify-content: flex-start; }
  .nav a { font-size: .7rem; padding: var(--s1); }
  .section { padding: var(--s4) 0; }
  .card, .card--lg { padding: var(--s3); }
  .steps { gap: var(--s1); }
  .step { font-size: .68rem; padding: var(--s1) var(--s2); }
  .btn { font-size: .82rem; padding: var(--s2); }
  .btn--lg { font-size: .9rem; padding: var(--s3); }
  .hero { padding: var(--s5) 0 var(--s4); }
  .audit th, .audit td { padding: var(--s1); font-size: .72rem; }
  .fileview__body { max-height: 340px; font-size: .72rem; }
  .empty { padding: var(--s4) var(--s2); }
  .empty__art { font-size: .55rem; }
  .tab { font-size: .7rem; padding: var(--s2); flex: 1; }
  .check { padding: var(--s2); font-size: .78rem; }
}

/* Hard guard: nothing exceeds 720px of readable text width */
.md, .shell--text { max-width: var(--max-text); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .btn:hover:not(:disabled), .tool-card:hover { transform: none; }
}

@media print {
  .site-header, .site-footer, .btn, .tabs, .toast-host { display: none !important; }
  body { background: #fff; }
  .card, .fileview { box-shadow: none; }
}

/* ============================================================
   Motion layer — brutalist motion: fast, hard, no easing curves
   Driven by data attributes set in HTML. Everything degrades
   to "instantly visible" when JS is off or motion is reduced.
   ============================================================ */

/* Progressive enhancement: only hide content once JS has confirmed
   it can reveal it again, so no-JS / no-observer users see everything. */
.js-reveal-ready [data-reveal] { opacity: 0; transform: translateY(14px); }
.js-reveal-ready [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity 120ms steps(2, end), transform 120ms steps(3, end);
}

/* Stagger: children of [data-reveal-group] fade in one after another. */
.js-reveal-ready [data-reveal-group] > * { opacity: 0; }
.js-reveal-ready [data-reveal-group] > .is-in {
  opacity: 1;
  transition: opacity 120ms steps(2, end);
}

/* Count-up numbers get a brief hard snap so they read as deliberate. */
.stat__n.is-counted { animation: stat-snap 140ms steps(2, end); }
@keyframes stat-snap {
  from { transform: translate(-1px, -1px); }
  to   { transform: none; }
}

/* Marquee: a thin ticker. Duplicated track so the loop has no seam. */
.marquee {
  overflow: hidden;
  border-block: 3px solid var(--ink);
  background: var(--accent);
  margin-bottom: var(--s4);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 18s linear infinite;
}
.marquee__group { display: flex; flex: none; }
.marquee__group > span {
  flex: none;
  padding: var(--s1) var(--s3);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Typewriter: the hero headline types itself in, with a block caret. */
[data-typewriter] { white-space: pre-wrap; }
.js-typewriter-on [data-typewriter]::after {
  content: '';
  display: inline-block;
  width: .55em;
  height: 1.05em;
  margin-left: .06em;
  vertical-align: -.18em;
  background: var(--ink);
  animation: caret-blink 700ms steps(1, end) infinite;
}
@keyframes caret-blink {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal-ready [data-reveal],
  .js-reveal-ready [data-reveal].is-in,
  .js-reveal-ready [data-reveal-group] > *,
  .js-reveal-ready [data-reveal-group] > .is-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
  .marquee__track { animation: none; }
  .js-typewriter-on [data-typewriter]::after { animation: none; }
}

@media print {
  .marquee { display: none; }
}

/* ---------- tier picker (variant scope) ---------- */
.tiers { display: grid; gap: var(--s2); grid-template-columns: repeat(3, minmax(0,1fr)); }

.tier {
  display: flex; flex-direction: column; gap: var(--s1);
  padding: var(--s3); text-align: left; cursor: pointer;
  background: var(--bg); color: var(--ink);
  border: var(--border-w) solid var(--ink);
  box-shadow: var(--shadow); border-radius: var(--radius);
  font: inherit; transition: transform .12s, box-shadow .12s;
}
.tier:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.tier:focus-visible { outline: 3px solid var(--info); outline-offset: 2px; }

.tier--on {
  background: var(--tier, var(--accent)); color: var(--ink);
  box-shadow: var(--shadow); transform: translate(-2px,-2px);
}
.tier--on::after {
  content: 'DIPILIH'; align-self: flex-start; margin-top: var(--s1);
  padding: 2px var(--s1); background: var(--ink); color: var(--bg);
  font: 700 .6rem/1.4 var(--font-mono); letter-spacing: .08em;
}
.tier--warn:not(.tier--on) { border-style: dashed; }

.tier__n {
  font: 700 1.9rem/1 var(--font-mono);
  background: var(--ink); color: var(--bg);
  width: 2.1rem; height: 2.1rem;
  display: grid; place-items: center;
  border-radius: var(--radius);
}
.tier--on .tier__n { background: var(--bg); color: var(--ink); }
.tier__name { font-weight: 700; font-size: .92rem; }
.tier__blurb { font-size: .72rem; line-height: 1.4; opacity: .82; }

.tier-detail:empty { display: none; }
.tier-panel {
  margin-top: var(--s3); padding: var(--s3);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius); background: var(--bg);
}
.tier-panel--warn { border-color: var(--danger); }
.tier-panel__verdict { font-weight: 700; margin-bottom: var(--s3); line-height: 1.45; }
.tier-panel--warn .tier-panel__verdict { color: var(--danger); }

.tier-cols { display: grid; gap: var(--s3); grid-template-columns: repeat(2, minmax(0,1fr)); }
.tier-col__h {
  font: 700 .7rem/1.4 var(--font-mono); letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: var(--s1);
  padding-bottom: var(--s1); border-bottom: 2px solid var(--ink);
}
.tier-cols ul { margin: 0; padding-left: var(--s3); }
.tier-cols li { margin-bottom: var(--s1); line-height: 1.45; }
.tier-panel .banner { margin-top: var(--s3); }

@media (max-width: 720px) {
  .tiers { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 560px) {
  .tier-cols { grid-template-columns: minmax(0,1fr); }
  .tier { padding: var(--s2); }
}

/* ---------- preset gallery (visual design preview) ---------- */
.preset-gallery {
  display: grid;
  gap: var(--s3);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.preset-card {
  display: flex;
  flex-direction: column;
  padding: var(--s3);
  text-align: left;
  cursor: pointer;
  background: var(--bg);
  color: var(--ink);
  border: var(--border-w) solid var(--ink);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  font: inherit;
  transition: transform .12s, box-shadow .12s, background-color .12s;
  position: relative;
}

.preset-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.preset-card:focus-visible {
  outline: 3px solid var(--info);
  outline-offset: 2px;
}

.preset-card[aria-pressed="true"] {
  background: var(--accent);
  box-shadow: 6px 6px 0 var(--ink);
  transform: translate(-2px, -2px);
}

.preset-card[aria-pressed="true"]::after {
  content: 'AKTIF';
  position: absolute;
  top: var(--s2);
  right: var(--s2);
  padding: 2px var(--s1);
  background: var(--ink);
  color: var(--bg);
  font: 700 .62rem/1.2 var(--font-mono);
  letter-spacing: .08em;
  border-radius: 2px;
}

.preset-card__preview {
  height: 84px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  margin-bottom: var(--s2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s2);
}

.preset-card__preview--neo {
  background: #F4F0EA;
}

.preset-card__preview--swiss {
  background: #FFFFFF;
}

.preset-card__preview--terminal {
  background: #18181B;
}

.mini-ui {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 130px;
}

.mini-ui--neo .mini-badge {
  align-self: flex-start;
  font: 700 0.58rem/1 var(--font-mono);
  background: #1A1A1A;
  color: #F4F0EA;
  padding: 2px 4px;
  border-radius: 2px;
}

.mini-ui--neo .mini-btn {
  background: #FACC15;
  color: #1A1A1A;
  border: 2px solid #1A1A1A;
  box-shadow: 2px 2px 0 #1A1A1A;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 3px 6px;
  text-align: center;
  border-radius: 4px;
}

.mini-ui--swiss .mini-badge {
  align-self: flex-start;
  font: 700 0.58rem/1 var(--font-sans);
  border: 1px solid #1A1A1A;
  color: #1A1A1A;
  padding: 1px 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mini-ui--swiss .mini-btn {
  background: #1A1A1A;
  color: #FFFFFF;
  border: none;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 4px 6px;
  text-align: center;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mini-ui--terminal .mini-badge {
  align-self: flex-start;
  font: 700 0.58rem/1 var(--font-mono);
  color: #34D399;
}

.mini-ui--terminal .mini-btn {
  background: #27272A;
  color: #34D399;
  border: 1px solid #34D399;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 3px 6px;
  text-align: center;
  border-radius: 2px;
}

.preset-card__title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.preset-card__desc {
  font-size: 0.75rem;
  line-height: 1.4;
  opacity: 0.85;
}

@media (max-width: 720px) {
  .preset-gallery {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- chat & local LLM UI ---------- */
.chat-thread {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  max-height: 440px;
  overflow-y: auto;
  padding: var(--s3);
  border: var(--border-w) solid var(--ink);
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .05);
}

.chat-bubble {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  padding: var(--s3);
  border: var(--border-w) solid var(--ink);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  max-width: 85%;
}

.chat-bubble--user {
  align-self: flex-end;
  background: var(--accent);
  color: var(--ink);
}

.chat-bubble--ai {
  align-self: flex-start;
  background: var(--bg);
  color: var(--ink);
}

.chat-bubble__meta {
  font: 700 .65rem/1.2 var(--font-mono);
  letter-spacing: .05em;
  text-transform: uppercase;
  opacity: .8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed var(--ink);
  padding-bottom: 4px;
  margin-bottom: 4px;
}

.chat-bubble__text {
  font-size: .88rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 560px) {
  .chat-bubble {
    max-width: 100%;
  }
}


