:root {
  /* Agentics family tokens — canonical (#0a0a0a ink seam-matches manifest + boot-splash). */
  --bg: #0a0a0a;
  --panel: #141418;
  --panel-2: #1c1c20;
  --line: #27272a;
  --hairline: #27272a;
  --text: #ededef;
  --fg: #ededef;
  --muted: #9a9aa8;
  --faint: #6b6b73;
  /* Agentic Orange — never raw Tailwind orange ("turkey color"). */
  --orange: #f87f2e;
  --brand: #f87f2e;
  --brand-orange: #f87f2e;
  --ember: #ffa85e; /* hover / Ember Glow */
  --forge: #d66a1f; /* pressed / Forge */
  --on-orange: #1a0f06; /* text on orange surfaces */
  --orange-12: rgba(248, 127, 46, 0.12);
  --orange-22: rgba(248, 127, 46, 0.22);
  --orange-35: rgba(248, 127, 46, 0.35);
  --ok: #22c55e;
  --success: #22c55e;
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body { padding-bottom: env(safe-area-inset-bottom); }

.topbar { display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px calc(16px + env(safe-area-inset-top)); position: sticky; top: 0;
  background: linear-gradient(var(--bg), rgba(11,11,15,.85)); backdrop-filter: blur(8px); z-index: 5; }
.lockup { font-family: ui-monospace, "Geist Mono", SFMono-Regular, Menlo, monospace; font-size: 19px; font-weight: 600; }
.chev { color: var(--brand); }
.cursor { color: var(--brand); animation: blink 1.1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.bell { background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; font-size: 16px; padding: 6px 10px; cursor: pointer; }

#app { max-width: 640px; margin: 0 auto; padding: 0 16px 40px; }
.card, .panel { background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; margin: 12px 0; }
.row { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.who { font-size: 17px; font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.count { color: var(--muted); font-weight: 400; font-size: 14px; }
.pill { font-size: 13px; padding: 5px 10px; border-radius: 999px; background: var(--panel-2);
  border: 1px solid var(--line); color: var(--muted); }
.pill.ok { color: var(--ok); border-color: rgba(62,207,142,.4); }

.tabs { display: flex; gap: 6px; margin: 14px 0 4px; overflow-x: auto; }
.tab { flex: 0 0 auto; background: var(--panel); border: 1px solid var(--line); color: var(--muted);
  padding: 9px 14px; border-radius: 999px; font-size: 14px; cursor: pointer; }
.tab.active { color: var(--bg); background: var(--brand); border-color: var(--brand); font-weight: 600; }

h2 { font-size: 18px; margin: 2px 0 4px; }
h3 { font-size: 14px; color: var(--muted); margin: 18px 0 8px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em; }

.btn { background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  padding: 10px 14px; border-radius: 10px; font-size: 15px; cursor: pointer; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); color: var(--on-orange); border-color: var(--brand); font-weight: 600; }
.btn.ghost { background: transparent; }
.btn.sm { padding: 6px 10px; font-size: 13px; }

.in { width: 100%; background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  padding: 11px 12px; border-radius: 10px; font-size: 15px; margin: 6px 0; }
.area { min-height: 96px; resize: vertical; font-family: inherit; }
select.in { -webkit-appearance: none; }

.link { font-family: ui-monospace, monospace; font-size: 13px; background: var(--panel-2);
  border: 1px dashed var(--line); border-radius: 10px; padding: 10px; margin-top: 8px; word-break: break-all; }

.list { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 8px; }
.list li { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 12px; display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; }
.list .meta { min-width: 0; }
.list .meta .t { font-size: 14px; }
.list .meta .s { font-size: 12px; color: var(--muted); }
.list .actions { display: flex; gap: 6px; flex: 0 0 auto; }
.empty { color: var(--muted); font-size: 14px; padding: 8px 2px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--brand); color: var(--on-orange); padding: 10px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600; z-index: 20; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
