/* 100xbtr shared theme — the "think-dark" design language.
   Canonical source. Apps embed or link a synced copy (no build step, cross-origin
   domains). First adopters: will-os (styles.css), tiktok-notes (build_dashboard.py).
   Change tokens HERE, then propagate. */

:root {
  --r: 3px;
  /* warm dark surfaces */
  --bg: #171715;
  --card: #201f1d;
  --bg3: #262523;
  --ink: #e2e0d8;
  --muted: #98968b;
  --faint: #6b6a61;
  --line: #343330;
  --line2: #454440;
  /* one accent means one thing: attention (selection, links, live) */
  --accent: #C96B3A;
  --accent2: #da7c4a;
  /* status */
  --ok: #3fa06a; --warn: #d9a13b; --fail: #cf5b40; --idle: #6b6a61;
  /* domain accents (left stripes / per-card --ac) */
  --p1: #6a9e7c; --p2: #c97b4a; --p3: #c05468; --p4: #7396b3; --p5: #c9a83a; --p6: #58a3aa;
  --think: #8d83e0; --money: #c9a83a; --make: #7ea866; --sprint: #8a887d;
  --font: 'Cascadia Mono', 'SF Mono', SFMono-Regular, Consolas, monospace;
}

/* the drafting-table grid — apply .grid-bg to a fixed layer, or bake into body */
.grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(226,224,216,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226,224,216,0.045) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* --- primitives every app shares --- */

/* section header: tiny uppercase, trailing hairline rule */
.sec {
  font-size: 9.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--faint);
  margin: 26px 0 8px; display: flex; align-items: baseline; gap: 8px; font-weight: 600;
}
.sec .cnt { letter-spacing: 0; font-weight: 400; }
.sec::after { content: ""; flex: 1; border-top: 1px solid var(--line); transform: translateY(-3px); }

/* card: dark, hairline, 3px accent stripe on the left */
.card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-left: 3px solid var(--ac, var(--line2)); border-radius: var(--r);
  padding: 10px 12px 9px; color: var(--ink); text-decoration: none; display: block;
  transition: border-color .15s, box-shadow .25s;
}
.card:hover { border-color: var(--line2); }
.card .kick { font-size: 8.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .09em; }
.card h3 { font-size: 12.5px; font-weight: 600; margin: 2px 0 3px; }
.card p { font-size: 10.5px; color: var(--muted); line-height: 1.5; }

/* badge: outline pill, status-colored */
.badge {
  display: inline-block; font-size: 8.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  padding: 1px 7px; border: 1px solid var(--line); border-radius: 99px; margin-top: 7px; color: var(--muted);
}
.badge.done { color: var(--ok); border-color: rgba(63,160,106,.4); }
.badge.active { color: var(--warn); border-color: rgba(217,161,59,.4); }
.badge.queued { color: var(--faint); }
.badge.urgent { color: var(--fail); border-color: rgba(207,91,64,.5); }

/* status dot */
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; }
.dot.ok { background: var(--ok); } .dot.warn { background: var(--warn); }
.dot.fail { background: var(--fail); } .dot.idle { background: var(--idle); }

/* checkbox row */
label.ck { display: flex; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line); font-size: 11px; align-items: baseline; cursor: pointer; }
label.ck input { accent-color: var(--accent); width: 12px; height: 12px; margin: 0; align-self: center; flex: none; cursor: pointer; }
label.ck input:checked ~ .what { color: var(--faint); text-decoration: line-through; }

::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 3px; }
