/* XZEROPROMPT — Modern Neo-Brutalism
 * Token terpusat. Mendukung light/dark. Mempertahankan nama kelas
 * lama (card, btn, field, input, sidebar, dsb.) agar JS tidak rusak.
 * Tidak ada inset highlight, blur, gradient, atau transparansi.
 */

:root {
  /* === Color tokens (light) === */
  --color-bg: #F7F7F2;
  --color-surface: #FFFFFF;
  --color-surface-secondary: #EAF0FF;
  --color-surface-elevated: #FFFFFF;
  --color-surface-sunken: #F1F1EA;

  --color-text: #111111;
  --color-text-muted: #4B5563;
  --color-text-inverse: #FFFFFF;

  --color-primary: #2563EB;
  --color-primary-hover: #1D4ED8;
  --color-primary-active: #1E40AF;
  --color-primary-soft: #DDE7FF;
  --color-primary-soft-strong: #BFD3FF;

  --color-accent: #2563EB;
  --color-border: #111111;
  --color-border-soft: #B8C0CC;

  --color-success: #15803D;
  --color-success-soft: #DCFCE7;
  --color-warn: #B45309;
  --color-warn-soft: #FEF3C7;
  --color-danger: #B91C1C;
  --color-danger-soft: #FEE2E2;

  /* === Hard shadows (no blur) === */
  --shadow-hard-xs: 2px 2px 0 var(--color-border);
  --shadow-hard-sm: 3px 3px 0 var(--color-border);
  --shadow-hard-md: 5px 5px 0 var(--color-border);
  --shadow-hard-lg: 8px 8px 0 var(--color-border);

  /* === Radii === */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-control: 8px;
  --radius-card: 12px;
  --radius-modal: 12px;

  /* === Borders === */
  --border-width: 2px;
  --border-width-thick: 3px;

  /* === Spacing === */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* === Type === */
  --font-family-base: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-family-display: "Space Grotesk", "Inter", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo,
    Consolas, monospace;

  --font-xs: 12px;
  --font-sm: 13px;
  --font-md: 14px;
  --font-base: 16px;
  --font-lg: 18px;
  --font-xl: 22px;
  --font-2xl: 28px;
  --font-3xl: 36px;
  --font-display: clamp(40px, 5.6vw, 64px);
  --font-page-title: clamp(28px, 3.4vw, 36px);
  --font-section-title: clamp(22px, 2.6vw, 28px);

  --line-tight: 1.2;
  --line-snug: 1.4;
  --line-base: 1.6;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* === Z-index === */
  --z-base: 1;
  --z-sticky: 50;
  --z-drawer: 80;
  --z-modal: 90;
  --z-toast: 100;

  /* === Motion === */
  --motion-fast: 100ms;
  --motion-base: 150ms;
  --motion-slow: 220ms;
  --easing: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* === Layout === */
  --sidebar-width: 240px;
  --topbar-height: 64px;
  --content-max: 1240px;
  --reading-width: 720px;

  color-scheme: light;
}

/* === Dark tokens === */
[data-theme="dark"] {
  --color-bg: #101114;
  --color-surface: #1B1E24;
  --color-surface-secondary: #232733;
  --color-surface-elevated: #262B34;
  --color-surface-sunken: #14171C;

  --color-text: #F8FAFC;
  --color-text-muted: #B6C0CF;

  --color-primary: #2563EB;
  --color-primary-hover: #3B82F6;
  --color-primary-active: #1D4ED8;
  --color-primary-soft: #1E2A48;
  --color-primary-soft-strong: #2A3C66;

  --color-border: #CBD5E1;
  --color-border-soft: #3A4150;
  --shadow-hard-xs: 2px 2px 0 #000000;
  --shadow-hard-sm: 3px 3px 0 #000000;
  --shadow-hard-md: 5px 5px 0 #000000;
  --shadow-hard-lg: 8px 8px 0 #000000;

  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg: #101114;
    --color-surface: #1B1E24;
    --color-surface-secondary: #232733;
    --color-surface-elevated: #262B34;
    --color-surface-sunken: #14171C;

    --color-text: #F8FAFC;
    --color-text-muted: #B6C0CF;

    --color-primary: #2563EB;
    --color-primary-hover: #3B82F6;
    --color-primary-active: #1D4ED8;
    --color-primary-soft: #1E2A48;
    --color-primary-soft-strong: #2A3C66;

    --color-border: #CBD5E1;
    --color-border-soft: #3A4150;
    --shadow-hard-xs: 2px 2px 0 #000000;
    --shadow-hard-sm: 3px 3px 0 #000000;
    --shadow-hard-md: 5px 5px 0 #000000;
    --shadow-hard-lg: 8px 8px 0 #000000;

    color-scheme: dark;
  }
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { color-scheme: light dark; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-family-base);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: var(--font-base);
  line-height: var(--line-base);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

button { font-family: inherit; }
img, svg { max-width: 100%; display: block; }
hr { border: none; border-top: var(--border-width) solid var(--color-border); margin: var(--space-6) 0; opacity: 0.15; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* === Typography === */
h1, h2, h3, h4 { font-family: var(--font-family-display); color: var(--color-text); margin: 0 0 var(--space-3); line-height: var(--line-tight); letter-spacing: -0.02em; font-weight: var(--weight-bold); }
h1 { font-size: var(--font-page-title); }
h2 { font-size: var(--font-section-title); }
h3 { font-size: var(--font-xl); font-weight: var(--weight-semibold); }
h4 { font-size: var(--font-lg); font-weight: var(--weight-semibold); }
p { margin: 0 0 var(--space-3); }
small { color: var(--color-text-muted); }

code, pre, kbd, samp { font-family: var(--font-family-mono); }
pre, code { font-size: 0.92em; }

/* === Utility text transform === */
.eyebrow {
  display: inline-block;
  font-family: var(--font-family-base);
  font-size: var(--font-xs); font-weight: var(--weight-bold);
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--color-text);
  padding: 4px 10px;
  border: var(--border-width) solid var(--color-border);
  background: var(--color-surface);
}

/* === Layout primitives === */
.container { width: 100%; max-width: var(--content-max); margin: 0 auto; padding: 0 var(--space-6); }
.row { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.col { flex: 1 1 0; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: var(--space-3); }
.stack-tight { display: flex; flex-direction: column; gap: var(--space-1); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.spacer { flex: 1; }

.page-head {
  display: flex; flex-direction: column; gap: var(--space-2);
  margin-bottom: var(--space-8);
}
.page-head__title { margin: 0; }
.page-head__sub { color: var(--color-text-muted); margin: 0; max-width: 64ch; font-size: var(--font-md); }

/* === Card === */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  padding: var(--space-6);
  border: var(--border-width) solid var(--color-border);
  position: relative;
  box-shadow: var(--shadow-hard-md);
}
.card--lg { padding: var(--space-8); }
.card--bordered { box-shadow: none; }
.card--quiet { box-shadow: var(--shadow-hard-sm); }
.card--flat { box-shadow: none; }
.card--sunken { background: var(--color-surface-sunken); box-shadow: none; border-color: var(--color-border-soft); }
.card--danger {
  border-color: var(--color-danger);
  background: var(--color-surface);
  box-shadow: var(--shadow-hard-sm);
}
.card__title { margin: 0 0 var(--space-2) 0; font-size: var(--font-lg); font-weight: var(--weight-semibold); letter-spacing: -0.01em; }
.card__sub { color: var(--color-text-muted); font-size: var(--font-sm); margin-bottom: var(--space-3); }
.card a.card, a.card {
  color: inherit; text-decoration: none;
  transition: transform var(--motion-base) var(--easing), box-shadow var(--motion-base) var(--easing);
}
a.card:hover { text-decoration: none; box-shadow: var(--shadow-hard-lg); transform: translate(-2px, -2px); }
a.card:active { box-shadow: var(--shadow-hard-sm); transform: translate(0, 0); }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: 10px 16px; border-radius: var(--radius-control);
  border: var(--border-width) solid var(--color-border);
  cursor: pointer; font-weight: var(--weight-bold); font-size: var(--font-md); line-height: 1.2;
  background: var(--color-surface);
  color: var(--color-text);
  min-height: 44px; min-width: 44px;
  position: relative;
  box-shadow: var(--shadow-hard-sm);
  transition: transform var(--motion-fast) var(--easing), box-shadow var(--motion-fast) var(--easing), background var(--motion-base) var(--easing), color var(--motion-base) var(--easing);
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-hard-md); }
.btn:active { transform: translate(2px, 2px); box-shadow: none; }
.btn:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 3px; }
.btn[disabled], .btn[aria-disabled="true"] {
  opacity: 0.55; cursor: not-allowed; pointer-events: none;
  transform: none; box-shadow: var(--shadow-hard-sm);
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-border);
  box-shadow: var(--shadow-hard-md);
}
.btn--primary:hover { background: var(--color-primary-hover); box-shadow: var(--shadow-hard-lg); }
.btn--primary:active { background: var(--color-primary-active); box-shadow: none; }

.btn--ghost {
  background: var(--color-surface);
}
.btn--ghost:hover { background: var(--color-surface-secondary); }

.btn--subtle {
  background: var(--color-surface-secondary);
  box-shadow: var(--shadow-hard-xs);
}
.btn--subtle:hover { background: var(--color-primary-soft); box-shadow: var(--shadow-hard-sm); }

.btn--danger {
  background: var(--color-danger);
  color: var(--color-text-inverse);
  border-color: var(--color-border);
  box-shadow: var(--shadow-hard-sm);
}
.btn--danger:hover { background: #991B1B; box-shadow: var(--shadow-hard-md); }
.btn--danger:active { box-shadow: none; }

.btn--sm { min-height: 36px; padding: 6px 12px; font-size: var(--font-sm); border-radius: var(--radius-sm); }
.btn--lg { min-height: 52px; padding: 12px 22px; font-size: var(--font-lg); border-radius: var(--radius-md); }
.btn--block { width: 100%; }
.btn--icon { padding: 10px; min-width: 44px; }
.btn--icon svg { width: 18px; height: 18px; }

/* === Forms === */
.field { display: flex; flex-direction: column; }
.label {
  display: block; font-weight: var(--weight-semibold); font-size: var(--font-sm);
  margin-bottom: var(--space-2); color: var(--color-text);
  letter-spacing: 0.01em;
}
.input, .textarea, .select {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-control);
  border: var(--border-width) solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  min-height: 44px;
  transition: border-color var(--motion-base) var(--easing);
}
.textarea { min-height: 120px; resize: vertical; line-height: var(--line-base); }
.textarea--lg { min-height: 160px; }

.select {
  appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 18px) center, calc(100% - 12px) center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.input::placeholder, .textarea::placeholder { color: var(--color-text-muted); opacity: 0.85; }
.input:hover, .textarea:hover, .select:hover { border-color: var(--color-primary); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary);
}

.field__hint { color: var(--color-text-muted); font-size: var(--font-xs); margin-top: var(--space-1); }
.field__error { color: var(--color-danger); font-size: var(--font-xs); margin-top: var(--space-1); font-weight: var(--weight-bold); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 3px var(--color-danger-soft);
}

/* === Badge === */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: var(--radius-sm);
  font-size: var(--font-xs); font-weight: var(--weight-bold);
  background: var(--color-surface);
  color: var(--color-text);
  border: var(--border-width) solid var(--color-border);
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge--primary { background: var(--color-primary); color: var(--color-text-inverse); border-color: var(--color-border); }
.badge--success { background: var(--color-success-soft); color: var(--color-success); border-color: var(--color-success); }
.badge--warn { background: var(--color-warn-soft); color: var(--color-warn); border-color: var(--color-warn); }
.badge--danger { background: var(--color-danger-soft); color: var(--color-danger); border-color: var(--color-danger); }
.badge--neutral { background: var(--color-surface-secondary); color: var(--color-text); border-color: var(--color-border); }

/* === Toast === */
.toast-host {
  position: fixed; top: var(--space-5); right: var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-2); z-index: var(--z-toast);
  pointer-events: none; max-width: 92vw;
}
.toast {
  pointer-events: auto;
  background: var(--color-surface);
  color: var(--color-text);
  border: var(--border-width) solid var(--color-border);
  padding: 12px 16px; border-radius: var(--radius-md);
  box-shadow: var(--shadow-hard-sm);
  min-width: 240px; max-width: 360px;
  font-size: var(--font-sm); font-weight: var(--weight-semibold);
}
.toast--success { border-color: var(--color-success); background: var(--color-success-soft); }
.toast--error { border-color: var(--color-danger); background: var(--color-danger-soft); }
.toast--info { border-color: var(--color-primary); }

/* === Modal === */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(17, 17, 17, 0.55);
  z-index: var(--z-modal);
  display: flex; align-items: center; justify-content: center; padding: var(--space-5);
}
.modal {
  background: var(--color-surface);
  border-radius: var(--radius-modal);
  padding: var(--space-6);
  max-width: 480px; width: 100%;
  box-shadow: var(--shadow-hard-lg);
  border: var(--border-width) solid var(--color-border);
  position: relative;
}
.modal__title { margin: 0 0 var(--space-3); font-size: var(--font-xl); font-weight: var(--weight-bold); }
.modal__body { color: var(--color-text-muted); margin-bottom: var(--space-4); }
.modal__actions { display: flex; gap: var(--space-3); justify-content: flex-end; margin-top: var(--space-5); }

/* === Drawer === */
.drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(17, 17, 17, 0.55);
  z-index: var(--z-drawer);
}
.drawer {
  position: fixed; top: 0; bottom: 0; left: 0; width: min(280px, 88vw);
  background: var(--color-surface);
  z-index: calc(var(--z-drawer) + 1);
  border-right: var(--border-width-thick) solid var(--color-border);
  padding: var(--space-5);
  transform: translateX(-100%);
  transition: transform var(--motion-slow) var(--easing);
  overflow-y: auto;
  box-shadow: var(--shadow-hard-lg);
}
.drawer[data-open="true"] { transform: translateX(0); }
body.drawer-open { overflow: hidden; }

/* === Tabs === */
.tabs {
  display: flex; gap: var(--space-1); border-bottom: var(--border-width) solid var(--color-border);
  overflow-x: auto; scrollbar-width: thin;
}
.tab {
  padding: 10px 14px; cursor: pointer; border: none; background: transparent;
  color: var(--color-text-muted); font-weight: var(--weight-semibold); font-size: var(--font-sm);
  border-bottom: 3px solid transparent;
  transition: color var(--motion-base) var(--easing), border-color var(--motion-base) var(--easing);
  white-space: nowrap;
  font-family: inherit;
  border-radius: 0;
}
.tab:hover { color: var(--color-text); }
.tab[aria-selected="true"] { color: var(--color-primary); border-bottom-color: var(--color-primary); }

/* === States === */
.skeleton {
  background: var(--color-surface-secondary);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-sm);
  min-height: 16px;
}

.error-state {
  color: var(--color-danger);
  padding: var(--space-4);
  border: var(--border-width) solid var(--color-danger);
  border-radius: var(--radius-md);
  background: var(--color-danger-soft);
  font-size: var(--font-sm);
  font-weight: var(--weight-semibold);
}
.empty-state {
  color: var(--color-text-muted);
  padding: var(--space-6);
  text-align: center;
  border: var(--border-width) dashed var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  font-size: var(--font-sm);
}
.empty-state__title { color: var(--color-text); font-weight: var(--weight-bold); margin-bottom: var(--space-1); }

/* === Pagination === */
.pagination { display: flex; gap: var(--space-2); align-items: center; justify-content: center; }
.pagination__btn { min-width: 40px; height: 40px; }

/* === Public nav === */
.public-nav {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: var(--color-surface);
  border-bottom: var(--border-width) solid var(--color-border);
}

.public-nav__inner {
  display: flex; align-items: center; gap: var(--space-5);
  height: var(--topbar-height);
  padding: 0 var(--space-6);
  max-width: var(--content-max); margin: 0 auto;
}
.public-nav__brand {
  font-weight: var(--weight-bold); font-size: var(--font-md);
  letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: var(--space-2);
  color: var(--color-text);
  text-decoration: none;
}
.public-nav__brand:hover { text-decoration: none; }
.public-nav__brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border: var(--border-width) solid var(--color-border);
  box-shadow: var(--shadow-hard-xs);
}
.public-nav__brand b { color: var(--color-primary); }
.public-nav__links { display: flex; gap: var(--space-2); align-items: center; margin-left: auto; }
.public-nav__link {
  color: var(--color-text);
  font-weight: var(--weight-semibold); font-size: var(--font-sm);
  padding: 8px 12px; border-radius: var(--radius-sm);
  text-decoration: none;
}
.public-nav__link:hover { background: var(--color-surface-secondary); text-decoration: none; }
.public-nav__burger { display: none; }

@media (max-width: 768px) {
  .public-nav__links {
    display: none; position: absolute; top: var(--topbar-height); left: 0; right: 0;
    background: var(--color-surface); flex-direction: column; align-items: stretch; padding: var(--space-4);
    border-bottom: var(--border-width) solid var(--color-border); box-shadow: var(--shadow-hard-md);
    gap: var(--space-1);
  }
  .public-nav__links[data-open="true"] { display: flex; }
  .public-nav__burger { display: inline-flex; margin-left: auto; }
}

/* === Landing hero === */
.hero {
  padding: var(--space-16) var(--space-6) var(--space-12);
  position: relative;
  overflow: hidden;
}
.hero__inner {
  position: relative;
  display: grid; gap: var(--space-12);
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  max-width: var(--content-max); margin: 0 auto;
}
@media (max-width: 960px) { .hero__inner { grid-template-columns: 1fr; gap: var(--space-10); } }

.hero__eyebrow {
  display: inline-block;
  padding: 6px 12px; border-radius: var(--radius-sm);
  background: var(--color-primary); color: var(--color-text-inverse);
  border: var(--border-width) solid var(--color-border);
  box-shadow: var(--shadow-hard-xs);
  font-family: var(--font-family-base);
  font-size: var(--font-xs); font-weight: var(--weight-bold);
  letter-spacing: 0.12em; text-transform: uppercase;
}
.hero__title {
  font-family: var(--font-family-display);
  font-size: var(--font-display);
  font-weight: var(--weight-bold);
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin: var(--space-4) 0 var(--space-4);
  max-width: 18ch;
  color: var(--color-text);
  text-transform: uppercase;
}
.hero__sub {
  font-size: var(--font-lg);
  color: var(--color-text-muted);
  line-height: var(--line-base);
  max-width: 52ch;
  margin: 0 0 var(--space-6);
}
.hero__cta { display: inline-flex; gap: var(--space-3); flex-wrap: wrap; }
.hero__meta { display: flex; gap: var(--space-4); flex-wrap: wrap; margin-top: var(--space-6); color: var(--color-text-muted); font-size: var(--font-sm); padding: 0; list-style: none; }
.hero__meta-item { display: inline-flex; align-items: center; gap: var(--space-2); }
.hero__meta-item svg { color: var(--color-primary); }

.hero__preview {
  background: var(--color-surface);
  border: var(--border-width-thick) solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hard-lg);
  padding: var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-4);
}
.hero__preview-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.hero__preview-label {
  font-size: var(--font-xs); color: var(--color-text); font-weight: var(--weight-bold);
  text-transform: uppercase; letter-spacing: 0.12em;
  padding: 3px 8px; border-radius: var(--radius-xs);
  background: var(--color-surface-secondary); border: var(--border-width) solid var(--color-border);
}
.hero__preview-dots { display: inline-flex; gap: 6px; }
.hero__preview-dots span { width: 10px; height: 10px; border: 2px solid var(--color-border); background: var(--color-surface); border-radius: 50%; }
.hero__preview-input {
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-sunken);
  border-radius: var(--radius-control);
  font-size: var(--font-sm);
  color: var(--color-text-muted);
  border: var(--border-width) solid var(--color-border);
}
.hero__preview-output {
  background: var(--color-surface-secondary);
  border-radius: var(--radius-control);
  padding: var(--space-4);
  font-family: var(--font-family-mono);
  font-size: 12.5px; line-height: 1.65;
  color: var(--color-text);
  white-space: pre-wrap;
  border: var(--border-width) solid var(--color-border);
  max-height: 240px; overflow: hidden;
  position: relative;
}
.hero__preview-actions { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }

/* Sticker accent */
.sticker {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--radius-pill, 999px);
  background: var(--color-primary); color: var(--color-text-inverse);
  border: var(--border-width) solid var(--color-border);
  box-shadow: var(--shadow-hard-sm);
  font-family: var(--font-family-display);
  font-weight: var(--weight-bold);
  font-size: var(--font-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

.section { padding: var(--space-12) var(--space-6); }
.section--tight { padding: var(--space-10) var(--space-6); }
.section--soft { background: var(--color-surface-secondary); }
.section__title {
  font-family: var(--font-family-display);
  font-size: var(--font-section-title); font-weight: var(--weight-bold);
  margin: 0 0 var(--space-2); letter-spacing: -0.012em;
}
.section__sub { color: var(--color-text-muted); margin: 0 0 var(--space-8); max-width: 60ch; font-size: var(--font-md); }
.section__head { max-width: var(--content-max); margin: 0 auto var(--space-8); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); position: relative; }
.steps__item { display: flex; flex-direction: column; gap: var(--space-3); position: relative; }
.steps__index {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  background: var(--color-primary); color: var(--color-text-inverse);
  font-family: var(--font-family-display);
  font-weight: var(--weight-bold); font-size: var(--font-lg);
  border: var(--border-width) solid var(--color-border);
  box-shadow: var(--shadow-hard-sm);
}
.steps__title { font-size: var(--font-lg); font-weight: var(--weight-bold); margin: 0; }
.steps__desc { color: var(--color-text-muted); margin: 0; font-size: var(--font-md); }
@media (max-width: 768px) { .steps { grid-template-columns: 1fr; } }

.feature-card { display: flex; flex-direction: column; gap: var(--space-3); }
.feature-card__icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  background: var(--color-primary); color: var(--color-text-inverse);
  border: var(--border-width) solid var(--color-border);
  box-shadow: var(--shadow-hard-xs);
}
.feature-card__icon svg { width: 22px; height: 22px; }
.feature-card h3 { margin: 0; font-size: var(--font-lg); }
.feature-card p { color: var(--color-text-muted); margin: 0; font-size: var(--font-md); line-height: var(--line-base); }

.faq-list { display: flex; flex-direction: column; gap: var(--space-3); max-width: 800px; margin: 0 auto; }
.faq-list details {
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-hard-sm);
}
.faq-list summary {
  cursor: pointer; font-weight: var(--weight-bold); font-size: var(--font-md);
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-3);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; font-size: 20px; font-weight: var(--weight-bold);
  color: var(--color-text); padding: 0 6px;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { color: var(--color-text-muted); margin: var(--space-3) 0 0; }

.cta-band {
  background: var(--color-primary);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-10) var(--space-8);
  color: var(--color-text-inverse);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-6);
  flex-wrap: wrap;
  box-shadow: var(--shadow-hard-lg);
}
.cta-band h2 { color: inherit; margin: 0; text-transform: uppercase; }
.cta-band p { color: #FFFFFF; margin: var(--space-2) 0 0; max-width: 48ch; opacity: 0.9; }
.cta-band .btn--primary {
  background: #FFFFFF;
  color: var(--color-text);
  border-color: var(--color-border);
}
.cta-band .btn--primary:hover { background: var(--color-surface-secondary); }
.cta-band .btn--ghost {
  background: transparent;
  color: #FFFFFF;
  border-color: #FFFFFF;
}
.cta-band .btn--ghost:hover { background: rgba(255, 255, 255, 0.1); }

.footer {
  padding: var(--space-10) var(--space-6) var(--space-8);
  border-top: var(--border-width) solid var(--color-border);
  color: var(--color-text-muted); font-size: var(--font-sm);
  background: var(--color-surface);
}
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-6);
  max-width: var(--content-max); margin: 0 auto;
}
.footer__col h4 { color: var(--color-text); font-size: var(--font-sm); margin: 0 0 var(--space-3); font-weight: var(--weight-bold); text-transform: uppercase; letter-spacing: 0.06em; }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.footer__col a { color: var(--color-text-muted); text-decoration: none; }
.footer__col a:hover { color: var(--color-text); text-decoration: underline; }
.footer__bottom {
  max-width: var(--content-max); margin: var(--space-8) auto 0; padding-top: var(--space-5);
  border-top: var(--border-width) solid var(--color-border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3);
}
@media (max-width: 768px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

/* === App shell === */
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
}
@media (max-width: 1024px) { .app-shell { grid-template-columns: 1fr; } }

.sidebar {
  background: var(--color-surface);
  border-right: var(--border-width) solid var(--color-border);
  padding: var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-3);
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
@media (max-width: 1024px) { .sidebar { display: none; } }

.sidebar__brand {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-family-display);
  font-weight: var(--weight-bold); font-size: var(--font-md);
  letter-spacing: -0.01em;
  color: var(--color-text);
  text-decoration: none;
  margin-bottom: var(--space-4);
}
.sidebar__brand:hover { text-decoration: none; }
.sidebar__brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: var(--color-primary); color: var(--color-text-inverse);
  border: var(--border-width) solid var(--color-border);
  box-shadow: var(--shadow-hard-xs);
}
.sidebar__brand b { color: var(--color-primary); }

.sidebar__group { display: flex; flex-direction: column; gap: 2px; margin-top: var(--space-4); }
.sidebar__group:first-of-type { margin-top: 0; }
.sidebar__group h4 {
  font-size: var(--font-xs); text-transform: uppercase; color: var(--color-text-muted);
  margin: var(--space-2) 0 var(--space-1); padding: 0 var(--space-3);
  letter-spacing: 0.12em; font-weight: var(--weight-bold);
}
.sidebar__link {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 9px 14px; border-radius: var(--radius-control);
  color: var(--color-text);
  font-weight: var(--weight-semibold); font-size: var(--font-md);
  position: relative;
  border: var(--border-width) solid transparent;
  text-decoration: none;
  transition: background var(--motion-base) var(--easing), color var(--motion-base) var(--easing);
}
.sidebar__link svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar__link:hover {
  background: var(--color-surface-secondary);
  text-decoration: none;
}
.sidebar__link[aria-current="page"] {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-border);
  box-shadow: var(--shadow-hard-xs);
}
.sidebar__link[aria-current="page"] svg { color: var(--color-text-inverse); }

.sidebar__profile {
  margin-top: auto;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-border);
  box-shadow: var(--shadow-hard-xs);
  display: flex; gap: var(--space-3); align-items: center;
}
.sidebar__avatar {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: var(--weight-bold); font-size: var(--font-sm);
  flex-shrink: 0;
  border: var(--border-width) solid var(--color-border);
}
.sidebar__profile-meta { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.sidebar__profile-name { font-size: var(--font-sm); font-weight: var(--weight-bold); color: var(--color-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar__profile-role { font-size: var(--font-xs); color: var(--color-text-muted); }
.sidebar__logout {
  background: var(--color-surface); border: var(--border-width) solid var(--color-border);
  cursor: pointer; color: var(--color-text);
  padding: 6px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hard-xs);
}
.sidebar__logout:hover { background: var(--color-danger-soft); border-color: var(--color-danger); color: var(--color-danger); }
.sidebar__logout:active { box-shadow: none; transform: translate(1px, 1px); }
.sidebar__quota {
  margin-top: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  border: var(--border-width) solid var(--color-border);
  background: var(--color-surface);
  font-size: var(--font-xs); color: var(--color-text-muted);
  box-shadow: var(--shadow-hard-xs);
}
.sidebar__quota-bar {
  height: 8px; border: var(--border-width) solid var(--color-border);
  background: var(--color-surface-sunken);
  margin-top: var(--space-2); border-radius: var(--radius-xs);
  overflow: hidden;
}
.sidebar__quota-fill {
  display: block; height: 100%;
  background: var(--color-primary);
}

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: var(--color-surface);
  border-bottom: var(--border-width) solid var(--color-border);
  height: var(--topbar-height);
  display: flex; align-items: center; gap: var(--space-3);
  padding: 0 var(--space-6);
}
.topbar__title { font-weight: var(--weight-bold); font-size: var(--font-md); color: var(--color-text); }
.topbar__menu-btn { display: none; }
.topbar__actions { display: inline-flex; gap: var(--space-2); align-items: center; margin-left: auto; }
@media (max-width: 1024px) { .topbar__menu-btn { display: inline-flex; } }

.content { padding: var(--space-8) var(--space-6); max-width: var(--content-max); width: 100%; margin: 0 auto; }
.content--wide { max-width: 100%; }
.content--narrow { max-width: 880px; }

/* === Generator === */
.gen-shell { display: flex; flex-direction: column; gap: var(--space-6); }
.gen-toolbar { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.gen-toolbar__quota {
  margin-left: auto; font-size: var(--font-sm); color: var(--color-text-muted);
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 6px 12px; border-radius: var(--radius-sm);
  border: var(--border-width) solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-hard-xs);
}
.gen-toolbar__quota strong { color: var(--color-text); font-weight: var(--weight-bold); }

.gen-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: var(--space-6);
  align-items: start;
}
@media (max-width: 1180px) { .gen-grid { grid-template-columns: 1fr; } }

.gen-panel {
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-5);
  box-shadow: var(--shadow-hard-md);
}
.gen-panel--result { padding: var(--space-6); }

.gen-accordion {
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: var(--shadow-hard-xs);
}
.gen-accordion__head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: var(--space-4) var(--space-5); cursor: pointer;
  list-style: none; font-weight: var(--weight-bold); font-size: var(--font-md); color: var(--color-text);
  font-family: inherit;
}
.gen-accordion__head::-webkit-details-marker { display: none; }
.gen-accordion__head::after { content: "+"; font-size: 20px; font-weight: var(--weight-bold); color: var(--color-text); }
.gen-accordion[open] .gen-accordion__head::after { content: "−"; }
.gen-accordion__body { padding: 0 var(--space-5) var(--space-5); display: grid; gap: var(--space-4); grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .gen-accordion__body { grid-template-columns: 1fr; } }

.gen-output {
  background: var(--color-surface-sunken);
  padding: var(--space-5);
  border-radius: var(--radius-control);
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
  font-family: var(--font-family-mono);
  font-size: var(--font-sm);
  line-height: 1.7;
  max-height: 70vh;
  overflow: auto;
  border: var(--border-width) solid var(--color-border);
  color: var(--color-text);
}
.gen-output-state {
  border-radius: var(--radius-card);
  border: var(--border-width) dashed var(--color-border);
  background: var(--color-surface);
  padding: var(--space-8) var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-2);
  align-items: center; justify-content: center; text-align: center;
  min-height: 280px;
}
.gen-output-state__title { font-weight: var(--weight-bold); color: var(--color-text); margin: 0; font-size: var(--font-md); }
.gen-output-state__desc { color: var(--color-text-muted); margin: 0; max-width: 42ch; font-size: var(--font-sm); }
.gen-output-state--loading { border-style: solid; }
.gen-output-state--loading .spinner {
  width: 28px; height: 28px; border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  animation: spin 0.8s linear infinite;
  border-radius: 50%;
}
@keyframes spin { to { transform: rotate(360deg); } }

.gen-result-head {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-3);
  margin-bottom: var(--space-3); flex-wrap: wrap;
}
.gen-result-title { font-size: var(--font-lg); font-weight: var(--weight-bold); margin: 0; text-transform: uppercase; letter-spacing: -0.01em; }
.gen-result-actions {
  display: inline-flex; align-items: center; gap: var(--space-2); flex-wrap: wrap;
}

.gen-more { position: relative; }
.gen-more__menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  min-width: 220px;
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-hard-md);
  padding: var(--space-1);
  display: none;
  z-index: var(--z-base);
}
.gen-more[data-open="true"] .gen-more__menu { display: block; }
.gen-more__btn {
  display: flex; align-items: center; gap: var(--space-2); width: 100%;
  padding: 8px 12px; background: transparent; border: 0;
  text-align: left; font-size: var(--font-sm); color: var(--color-text);
  font-family: inherit; font-weight: var(--weight-semibold);
}
.gen-more__btn:hover { background: var(--color-surface-secondary); }
.gen-more__btn--danger { color: var(--color-danger); }

/* === Composer (dashboard) === */
.composer {
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-6);
  box-shadow: var(--shadow-hard-md);
  display: flex; flex-direction: column; gap: var(--space-4);
}
.composer__field textarea {
  min-height: 132px;
  font-size: var(--font-md);
  background: var(--color-surface-sunken);
}
.composer__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 640px) { .composer__row { grid-template-columns: 1fr; } }
.composer__footer {
  display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap;
}
.composer__quota {
  margin-left: auto; font-size: var(--font-sm); color: var(--color-text-muted);
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 6px 12px; border-radius: var(--radius-sm);
  border: var(--border-width) solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-hard-xs);
}
.composer__quota strong { color: var(--color-text); font-weight: var(--weight-bold); }

.quickstart { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-3); }
@media (max-width: 1024px) { .quickstart { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .quickstart { grid-template-columns: repeat(2, 1fr); } }
.quickstart__item {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2);
  padding: var(--space-4);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-border);
  box-shadow: var(--shadow-hard-sm);
  transition: transform var(--motion-base) var(--easing), box-shadow var(--motion-base) var(--easing);
  text-decoration: none; color: var(--color-text);
  text-align: left;
  font-family: inherit; font-weight: var(--weight-semibold);
}
.quickstart__item:hover { text-decoration: none; transform: translate(-2px, -2px); box-shadow: var(--shadow-hard-md); }
.quickstart__item:active { text-decoration: none; transform: translate(0, 0); box-shadow: var(--shadow-hard-sm); }
.quickstart__icon {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--color-primary); color: var(--color-text-inverse);
  border: var(--border-width) solid var(--color-border);
}
.quickstart__icon svg { width: 18px; height: 18px; }
.quickstart__label { font-weight: var(--weight-bold); font-size: var(--font-sm); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: var(--radius-sm);
  font-size: var(--font-sm); font-weight: var(--weight-bold);
  background: var(--color-surface);
  color: var(--color-text);
  border: var(--border-width) solid var(--color-border);
  cursor: pointer;
  font-family: inherit;
  transition: background var(--motion-base) var(--easing), color var(--motion-base) var(--easing), transform var(--motion-fast) var(--easing);
  text-decoration: none;
}
.chip:hover { background: var(--color-surface-secondary); text-decoration: none; }
.chip:active { transform: translate(1px, 1px); }
.chip[aria-pressed="true"], .chip--active {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-border);
}
.chip:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 2px; }

/* === Auth split === */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}
@media (max-width: 900px) { .auth-page { grid-template-columns: 1fr; } }
.auth-page__panel { padding: var(--space-12) var(--space-10); display: flex; flex-direction: column; justify-content: center; }
.auth-page__panel--hero {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  position: relative; overflow: hidden;
  border-right: var(--border-width) solid var(--color-border);
}
.auth-page__panel--hero h1 { color: inherit; font-size: var(--font-3xl); margin-bottom: var(--space-4); }
.auth-page__panel--hero p { color: #FFFFFF; opacity: 0.92; }
.auth-page__features { display: flex; flex-direction: column; gap: var(--space-4); margin-top: var(--space-8); max-width: 36ch; }
.auth-page__feature { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--font-md); }
.auth-page__feature svg { color: #FFFFFF; flex-shrink: 0; margin-top: 2px; }
.auth-form { width: 100%; max-width: 420px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-4); }
.auth-form__head h1 { margin-bottom: var(--space-2); }
.auth-form__head p { color: var(--color-text-muted); margin: 0; }
.auth-form__footer { text-align: center; color: var(--color-text-muted); font-size: var(--font-sm); margin-top: var(--space-2); }

/* === Danger zone === */
.danger-zone {
  border: var(--border-width) solid var(--color-danger);
  border-radius: var(--radius-card);
  padding: var(--space-6);
  background: var(--color-surface);
  box-shadow: var(--shadow-hard-sm);
  display: flex; flex-direction: column; gap: var(--space-3);
}
.danger-zone__head { display: flex; align-items: center; gap: var(--space-2); color: var(--color-danger); font-weight: var(--weight-bold); }
.danger-zone__head svg { width: 20px; height: 20px; }
.danger-zone__desc { color: var(--color-text-muted); margin: 0; font-size: var(--font-sm); }

/* === Tables === */
.table-clay { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 560px; }
.table-clay th, .table-clay td {
  padding: 12px 14px; text-align: left;
  border-bottom: 1px solid var(--color-border-soft);
  white-space: nowrap; font-size: var(--font-sm);
}
.table-clay th {
  color: var(--color-text); font-weight: var(--weight-bold);
  text-transform: uppercase; letter-spacing: 0.06em; font-size: var(--font-xs);
  background: var(--color-surface-secondary);
  border-bottom: var(--border-width) solid var(--color-border);
}
.table-clay tr:last-child td { border-bottom: 1px solid var(--color-border-soft); }
.table-clay-wrap {
  background: var(--color-surface); border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-card); padding: var(--space-2);
  box-shadow: var(--shadow-hard-sm);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

/* === List item rows (riwayat, project) === */
.list { display: flex; flex-direction: column; gap: var(--space-3); }
.list__item {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-card);
  text-decoration: none; color: var(--color-text);
  transition: transform var(--motion-base) var(--easing), box-shadow var(--motion-base) var(--easing);
  box-shadow: var(--shadow-hard-sm);
}
.list__item:hover { text-decoration: none; transform: translate(-2px, -2px); box-shadow: var(--shadow-hard-md); }
.list__item:active { text-decoration: none; transform: translate(0, 0); box-shadow: var(--shadow-hard-sm); }
.list__item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.list__item-title { font-weight: var(--weight-bold); font-size: var(--font-md); color: var(--color-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list__item-meta { font-size: var(--font-xs); color: var(--color-text-muted); display: inline-flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.list__item-actions { display: inline-flex; align-items: center; gap: var(--space-2); }

/* === Print === */
@media print {
  .public-nav, .sidebar, .topbar, .toast-host, .no-print { display: none !important; }
  body { background: white; color: black; }
  .gen-output { max-height: none; overflow: visible; background: white; padding: 0; box-shadow: none; border: none; }
  .card, .gen-panel { box-shadow: none; border: 1px solid #ccc; }
  .app-shell { display: block; }
}

/* === Utility === */
.text-muted { color: var(--color-text-muted); }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.flex { display: flex; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

/* === Form grid === */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
