/* talu dashboard: the Sketchbook system from DESIGN.md, calmer for repeat use. */
:root {
  --paper: oklch(0.975 0.012 92);
  --paper-2: oklch(0.955 0.016 92);
  --card: oklch(0.99 0.006 92);
  --grid: oklch(0.62 0.07 245 / 0.13);
  --graphite: oklch(0.28 0.015 265);
  --graphite-2: oklch(0.44 0.015 265);
  --graphite-3: oklch(0.56 0.012 265);
  --pen: oklch(0.42 0.16 264);
  --hi: oklch(0.91 0.16 102);
  --mint: oklch(0.92 0.065 165);
  --sticky: oklch(0.94 0.1 98);
  --danger: oklch(0.52 0.17 28);
  --ok: oklch(0.55 0.13 150);
  --font-hand: "Shantell Sans", "Comic Sans MS", cursive;
  --font-body: "Atkinson Hyperlegible", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Courier Prime", ui-monospace, Menlo, monospace;
  --font-thai: "Mali", "Shantell Sans", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

body {
  min-height: 100vh;
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 26px 26px;
  color: var(--graphite);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--pen); }
:focus-visible { outline: 3px dashed var(--pen); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, .note, .wordmark { font-family: var(--font-hand); font-variation-settings: "INFM" 70, "BNCE" 0; }
h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.2; margin-bottom: 0.4rem; }
h2 { font-size: 1.25rem; margin: 2rem 0 0.75rem; }
.note { color: var(--pen); font-variation-settings: "INFM" 100, "BNCE" 0; font-weight: 500; }
.lede { color: var(--graphite-2); max-width: 60ch; margin-bottom: 1.25rem; }
.muted { color: var(--graphite-3); }
code, .mono { font-family: var(--font-mono); }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
}
.wordmark { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--graphite); font-weight: 800; font-size: 1.5rem; font-variation-settings: "INFM" 100; }
.wordmark .logo-mark { width: 28px; height: 28px; display: block; flex-shrink: 0; }
.wordmark .th { font-family: var(--font-thai); font-weight: 600; font-size: 0.95rem; color: var(--pen); }
.who { display: flex; align-items: center; gap: 0.7rem; }
.avatar { border-radius: 50%; border: 2px solid var(--graphite); }
.who-name { font-weight: 700; }

.btn, .btn-ghost, .btn-danger {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-hand); font-variation-settings: "INFM" 100; font-weight: 700; font-size: 0.95rem;
  color: var(--graphite); text-decoration: none; cursor: pointer;
  border: 2px solid var(--graphite);
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  padding: 0.35rem 1rem;
  background: var(--hi);
  transition: transform 0.15s var(--ease-out);
}
.btn-ghost { background: var(--card); }
.btn-danger { background: var(--card); color: var(--danger); border-color: var(--danger); }
.btn:hover, .btn-ghost:hover, .btn-danger:hover { transform: rotate(-1.5deg); }

.shell {
  display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem);
  padding: 0.5rem clamp(1rem, 4vw, 2.5rem) 4rem; max-width: 1100px;
}
.side { display: flex; flex-direction: column; gap: 0.3rem; padding-right: 1rem; border-right: 2px dashed oklch(0.56 0.012 265 / 0.4); }
.side a {
  font-family: var(--font-hand); font-variation-settings: "INFM" 100; font-weight: 600;
  color: var(--graphite); text-decoration: none; padding: 0.35rem 0.75rem; border-radius: 10px 14px 9px 13px;
}
.side a:hover { background: var(--paper-2); }
.side a[aria-current="page"] { background: var(--hi); font-weight: 800; }
.main { min-width: 0; }
.public { padding: 2rem clamp(1rem, 4vw, 2.5rem) 4rem; display: grid; place-items: start center; }

.sheet {
  width: min(100%, 34rem); background: var(--card);
  border: 2px solid var(--graphite); border-radius: 14px 18px 12px 20px / 18px 12px 20px 14px;
  box-shadow: 4px 4px 0 var(--graphite); padding: clamp(1.25rem, 4vw, 2rem);
}
.sheet .btn { margin-top: 0.5rem; }

.flash { margin-bottom: 1.25rem; padding: 0.6rem 0.9rem; border-radius: 10px; border: 1.5px solid currentColor; max-width: 60ch; }
.flash-ok { color: var(--ok); background: oklch(0.96 0.04 150); }
.flash-error { color: var(--danger); background: oklch(0.96 0.03 28); }
.field-error { color: var(--danger); font-size: 0.9rem; margin-top: 0.35rem; }

.list { list-style: none; display: grid; gap: 0.6rem; max-width: 46rem; }
.row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem;
  background: var(--card); border: 2px solid var(--graphite);
  border-radius: 10px 13px 9px 12px; padding: 0.6rem 0.9rem;
}
.row-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; min-width: 0; }
.row-meta { color: var(--graphite-3); font-size: 0.9rem; }
.row form { display: inline; }
.empty { color: var(--graphite-2); max-width: 56ch; }

.form-row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; max-width: 46rem; margin-top: 0.8rem; }
.input {
  flex: 1 1 14rem; min-width: 0; font: inherit; color: var(--graphite);
  background: var(--card); border: 2px dashed var(--graphite-3); border-radius: 10px; padding: 0.45rem 0.75rem;
}
.input:focus { border-style: solid; border-color: var(--pen); outline: none; }
.count { font-family: var(--font-body); font-size: 0.9rem; color: var(--graphite-3); font-weight: 400; margin-left: 0.4rem; }

.cmd {
  display: flex; align-items: center; gap: 0.6rem; max-width: 40rem;
  background: var(--card); border: 2px solid var(--graphite);
  border-radius: 14px 18px 12px 20px / 18px 12px 20px 14px; box-shadow: 3px 3px 0 var(--graphite);
  padding: 0.4rem 0.4rem 0.4rem 0.9rem; font-family: var(--font-mono);
}
.cmd code { flex: 1; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.cmd code::before { content: "$ "; color: var(--graphite-3); user-select: none; }
.copy {
  flex-shrink: 0; font-family: var(--font-hand); font-variation-settings: "INFM" 100; font-weight: 700;
  border: 0; border-radius: 10px 14px 9px 13px; background: var(--hi); color: var(--graphite);
  padding: 0.35rem 0.85rem; min-width: 5.5rem; cursor: pointer;
}
.copy[data-state="done"] { background: var(--mint); }

.provider-list { display: grid; gap: 0.7rem; margin: 1.25rem 0 0.5rem; }
.provider-list .btn { justify-content: center; width: 100%; padding: 0.6rem 1rem; }

@media (max-width: 720px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { flex-direction: row; border-right: 0; border-bottom: 2px dashed oklch(0.56 0.012 265 / 0.4); padding: 0 0 0.6rem; overflow-x: auto; }
  .who-name { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
mark { background: linear-gradient(transparent 45%, var(--hi) 45%); color: inherit; padding: 0 0.1em; }
.sticky-note {
  max-width: 40rem; margin: 0 0 1.5rem; padding: 1rem 1.2rem 1.2rem;
  background: var(--sticky); border-radius: 2px 2px 6px 18px / 2px 2px 6px 10px;
  box-shadow: 0 14px 22px -14px oklch(0.3 0.04 90 / 0.45); transform: rotate(-0.6deg);
}
.sticky-note p { margin-bottom: 0.6rem; }
.row-confirm { border-color: var(--danger); }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }

.live-dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--ok); display: inline-block; box-shadow: 0 0 0 3px oklch(0.55 0.13 150 / 0.2); }
.steps { list-style: none; display: grid; gap: 1.25rem; margin: 1rem 0 1.25rem; max-width: 42rem; }
.steps li { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 0.9rem; }
.steps strong { display: block; margin-bottom: 0.4rem; }
.num {
  width: 2.2rem; height: 2.2rem; display: grid; place-items: center;
  font-family: var(--font-hand); font-variation-settings: "INFM" 100; font-weight: 800; color: var(--pen);
  border: 2.5px solid var(--pen); border-radius: 50% 44% 56% 47% / 54% 48% 52% 46%; transform: rotate(-6deg);
}
