/* Zentrix theme: deep navy + cyan -> blue -> purple (same look as the website).
   Loaded AFTER app.css, so it overrides the old amber colours. */
:root {
  --bg: #050A18;
  --panel: #0B1430;
  --raised: #111D3D;
  --line: #1F2E57;
  --line-soft: #162447;
  --text: #F1F5FF;
  --muted: #9AA8C7;
  --amber: #22D3EE;            /* main accent (old variable name kept on purpose) */
  --amber-strong: #A855F7;
  --amber-ink: #061022;
  --amber-glow: rgba(34, 211, 238, .16);
  --green: #34D399;
  --red: #FB7185;
  --blue: #60A5FA;
  --purple: #A855F7;
  --board: #040817;
  --grad: linear-gradient(90deg, #22D3EE 0%, #3B82F6 55%, #A855F7 100%);
  --grad-btn: linear-gradient(90deg, #22D3EE 0%, #6D7CFF 55%, #B05CF6 100%);
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 18px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}
body { background: radial-gradient(1100px 600px at 85% -10%, rgba(59,130,246,.10), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(168,85,247,.08), transparent 60%), var(--bg); background-attachment: fixed; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* buttons & inputs */
.btn { border-radius: 999px; transition: transform .15s, box-shadow .2s, border-color .2s; }
.btn:hover { transform: translateY(-1px); border-color: rgba(98,140,255,.5); }
.btn.primary { background: var(--grad-btn); border: 0; color: #061022; box-shadow: 0 8px 26px rgba(110,124,255,.30); }
.btn.primary:hover { background: var(--grad-btn); box-shadow: 0 10px 32px rgba(110,124,255,.5); filter: brightness(1.05); }
.btn.ghost { border-color: var(--line); }
.btn.danger:hover { border-color: var(--red); }
input, textarea, select { background: rgba(5,10,24,.7); }

/* brand */
.brand-mark { background: var(--grad); color: #061022; box-shadow: 0 0 18px rgba(34,211,238,.25); }
.auth-brand img { height: 42px; width: auto; display: block; filter: drop-shadow(0 0 12px rgba(34,211,238,.25)); }
.side-foot img { height: 32px; width: auto; opacity: .9; }

/* sign in / sign up: robot background like the website */
.auth { position: relative; isolation: isolate; background: var(--bg); }
.auth::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("/static/hero-robot.jpg") center right / cover no-repeat;
  background-image: image-set(url("/static/hero-robot.webp") type("image/webp"), url("/static/hero-robot.jpg") type("image/jpeg")); }
.auth::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5,10,24,.93) 0%, rgba(5,10,24,.75) 45%, rgba(5,10,24,.4) 100%); }
.auth-card { background: rgba(11, 20, 48, .78); backdrop-filter: blur(16px); border: 1px solid rgba(98,140,255,.28); box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.auth-card h1 { background: linear-gradient(90deg, #fff 35%, #A5F3FC); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* shell */
.shell { background: linear-gradient(90deg, rgba(8,15,36,.95) 0 247px, var(--line-soft) 247px 248px, transparent 248px); }
.sidebar { background: rgba(8, 15, 36, .95); border-right-color: var(--line-soft); }
.nav a.active { background: linear-gradient(90deg, rgba(34,211,238,.14), rgba(168,85,247,.06)); box-shadow: inset 3px 0 0 #22D3EE; }
.nav a.active svg { color: #22D3EE; }
.nav-count { background: var(--grad-btn); color: #061022; }
.topbar { background: rgba(5,10,24,.82); border-bottom-color: var(--line-soft); }

/* glass cards like the website */
.panel, .stat, .item, .plan-card, .check, .source, .convo, .table-wrap, .try-box, details.manual, .type-card, .ticket, .steps li {
  background: linear-gradient(160deg, rgba(14, 26, 58, .82), rgba(8, 15, 36, .82)); border-color: var(--line-soft); }
a.stat:hover, .check:hover, .type-card:hover { border-color: rgba(34,211,238,.5); }
.stat.alert .fig { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan-card.current { border: 1.5px solid transparent; background-image: linear-gradient(#0B1430, #0B1430), var(--grad); background-origin: border-box; background-clip: padding-box, border-box; }
.meter > span, .bars .bar { background: var(--grad); }
.meter.warn > span { background: linear-gradient(90deg, #F59E0B, #F97316); }
.hint { background: linear-gradient(120deg, rgba(34,211,238,.10), rgba(168,85,247,.08)); border-color: rgba(98,140,255,.3); color: #CFEFFF; }
.hint b { color: #67E8F9; }
.banner.amber { background: linear-gradient(120deg, rgba(34,211,238,.10), rgba(168,85,247,.10)); border-color: rgba(98,140,255,.35); }
.steps li.now { border-color: #22D3EE; }
.steps li.now .n { background: var(--grad-btn); color: #061022; }
.type-card[aria-pressed="true"] { border-color: #22D3EE; box-shadow: 0 0 0 3px rgba(34,211,238,.15); }
.type-card .ti { background: radial-gradient(circle at 30% 30%, rgba(59,130,246,.35), rgba(15,30,70,.9)); color: #67E8F9; }
.chip { color: #A5F3FC; }
.item .price, .stub .ref { color: #67E8F9; }
.s-pending, .s-new { color: #FBBF24; }
.switch input:checked + span { background: var(--grad-btn); border-color: transparent; }
.switch input:checked + span::before { background: #061022; }
.live-switch { border-color: var(--line); background: rgba(17,29,61,.8); }
.toast { border-left-color: #22D3EE; background: #111D3D; }
.super-bar { background: linear-gradient(90deg, rgba(168,85,247,.28), rgba(34,211,238,.16)); color: #E9D5FF; }
.msg.assistant .who { color: #67E8F9; }
.msg.user { background: #1A2B52; }
.messages { background: radial-gradient(circle at 20% 0%, rgba(34,211,238,.05), transparent 50%); }
.dropzone:hover, .dropzone.over { border-color: #22D3EE; }
.hit { border-left-color: #22D3EE; }
dialog { background: #0B1430; border-color: rgba(98,140,255,.3); }
.skeleton { background: linear-gradient(90deg, #0B1430, #111D3D, #0B1430); background-size: 200% 100%; }
.messages::-webkit-scrollbar-thumb:hover, .convo-list::-webkit-scrollbar-thumb:hover { background: #22D3EE; }
@media (max-width: 860px) { .shell { background: transparent; } }

/* Google sign-in + agreement */
.google-area { display: grid; gap: 14px; }
.g-btn { min-height: 44px; display: flex; justify-content: center; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.agree { display: grid; gap: 10px; padding: 14px 16px; border-radius: var(--radius-m); background: rgba(5,10,24,.55); border: 1px solid var(--line); font-size: 13.5px; }
.agree b { font-size: 14px; color: #A5F3FC; }
.agree ul { margin: 0; padding-left: 18px; display: grid; gap: 5px; color: #C9D4EA; }
.check-row { display: flex !important; gap: 10px; align-items: flex-start; color: var(--text) !important; font-size: 13.5px !important; cursor: pointer; }
.check-row input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: #22D3EE; }
.auth-card { max-height: calc(100vh - 32px); overflow-y: auto; }
@media (max-width: 1080px) { .stats[style*="repeat(5"] { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 600px) { .stats[style*="repeat(5"] { grid-template-columns: 1fr 1fr !important; } }

/* agreement popup */
dialog.wide-dialog { max-width: min(820px, 94vw); padding: 0; }
.agree-modal { display: grid; gap: 12px; padding: 22px 24px; max-height: 90vh; grid-template-rows: auto auto minmax(0, 1fr) auto auto auto auto; }
.agree-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.agree-head h3 { margin: 0; font-size: 20px; }
.agree-key { padding: 12px 14px; border-radius: var(--radius-m); background: linear-gradient(120deg, rgba(34,211,238,.10), rgba(168,85,247,.08)); border: 1px solid rgba(98,140,255,.3); font-size: 13.5px; }
.agree-key b { color: #A5F3FC; } .agree-key ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; color: #D3DCEE; }
.agree-scroll { overflow-y: auto; min-height: 220px; max-height: 46vh; padding: 4px 16px 4px 4px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.65; color: #C9D2DE; scrollbar-width: thin; scrollbar-color: #22D3EE transparent; }
.agree-scroll h1 { display: none; } .agree-scroll .muted { font-size: 12.5px; }
.agree-scroll h2 { font-size: 15px; color: #67E8F9; margin: 18px 0 6px; } .agree-scroll ul { padding-left: 20px; } .agree-scroll a { color: #67E8F9; }
.agree-end { text-align: center; color: var(--muted); font-size: 12.5px; margin: 18px 0 6px; }
.agree-progress { height: 4px; border-radius: 4px; background: var(--raised); overflow: hidden; }
.agree-progress span { display: block; height: 100%; width: 0; background: var(--grad); transition: width .15s; }
.agree-modal .row { justify-content: flex-end; margin: 0; }
.agree-note { margin: 0; }

.check-row[hidden] { display: none !important; }

/* Claude-style usage meters */
.usage { display: grid; gap: 6px; }
.usage .meter { height: 8px; }
.usage.warn b { color: #FBBF24; } .usage.full b { color: var(--red); }

/* Try page: "What the agent used" */
.try .trace{align-self:flex-start;max-width:92%;margin:-2px 0 8px;font-size:12.5px;color:#9AA8C7;background:rgba(11,20,48,.55);border:1px dashed rgba(98,140,255,.3);border-radius:10px;padding:6px 10px}
.try .trace summary{cursor:pointer;color:#67E8F9;font-weight:600}
.try .trace ul{margin:6px 0 2px;padding-left:4px;list-style:none}
.try .trace li{margin:3px 0}
