@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/brand/geist-latin.woff2) format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/brand/geist-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/brand/geist-mono-latin.woff2) format("woff2"); }
@font-face { font-family: "Michroma"; font-style: normal; font-weight: 400; font-display: swap; src: url(/brand/michroma-latin.woff2) format("woff2"); }

:root {
  --background: #05070b; --foreground: #eef1f6; --accent: #1c9cff; --accent-hover: #4db3ff;
  --card-ink: #10141c; --raised: #161b25; --silver: #c9d1dc; --steel: #8a96a8;
  --line: rgba(201, 209, 220, 0.12); --line-strong: rgba(201, 209, 220, 0.22);
  --coral: #ff6f5e; --success: #3ecf8e; --warning: #f5b544;
  --success-text: #6ee7b7; --warning-text: #fcd34d;
  --radius: 8px; --sidebar: 248px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--background); color: var(--foreground);
  font: 14px/1.5 "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; min-height: 100vh;
  background-image: radial-gradient(1200px 600px at 80% -10%, rgba(28,156,255,0.08), transparent 60%);
  background-attachment: fixed;
}
::selection { background: rgba(28, 156, 255, 0.4); color: #fff; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { color: #fff; font-weight: 600; letter-spacing: -0.015em; margin: 0; }
h1 { font-size: 26px; line-height: 1.2; }
h2 { font-size: 17px; }
h3 { font-size: 14px; }
p { margin: 0 0 10px; }
code, .mono { font-family: "Geist Mono", ui-monospace, monospace; font-size: 12.5px; }
.text-metal { background: linear-gradient(180deg, #ffffff 0%, #d9dfe8 45%, #9aa6b8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font-family: "Michroma", sans-serif; text-transform: uppercase; letter-spacing: 0.24em; font-size: 10px; color: var(--steel); margin-bottom: 8px; }
.muted { color: var(--steel); }
.silver { color: var(--silver); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.ok-text { color: var(--success-text); }
.err-text { color: var(--coral); }
.warn-text { color: var(--warning-text); }

/* Cards */
.card {
  background: rgba(10, 13, 19, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.045), 0 24px 48px -32px rgba(0,0,0,0.9);
  padding: 20px;
}
.card.dense { background: var(--card-ink); backdrop-filter: none; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head p { margin: 2px 0 0; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } .span2 { grid-column: auto; } }
.stack > * + * { margin-top: 16px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.spacer { flex: 1; }

/* Stat tiles */
.stat .label { font-family: "Michroma", sans-serif; text-transform: uppercase; letter-spacing: 0.2em; font-size: 10px; color: var(--steel); }
.stat .value { font-size: 30px; font-weight: 600; color: #fff; letter-spacing: -0.02em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.stat .sub { color: var(--steel); font-size: 12.5px; margin-top: 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px;
  border-radius: 6px; border: 1px solid var(--line-strong); background: var(--raised); color: var(--foreground);
  font: 500 13.5px "Geist", sans-serif; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: rgba(201,209,220,0.35); color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #05070b; font-weight: 600; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #05070b; }
.btn-ghost { background: transparent; }
.btn-danger { background: transparent; border-color: rgba(255,111,94,0.45); color: var(--coral); }
.btn-danger:hover { background: rgba(255,111,94,0.1); color: var(--coral); border-color: var(--coral); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.btn-block { width: 100%; }
.icon-btn { width: 30px; padding: 0; }

/* Forms */
label.field { display: block; }
label.field > span { display: block; font-size: 12.5px; color: var(--silver); margin-bottom: 6px; font-weight: 500; }
input, select, textarea {
  width: 100%; height: 38px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--line-strong);
  background: #0b0f16; color: var(--foreground); font: 14px "Geist", sans-serif; outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; min-height: 120px; padding: 10px 12px; font-family: "Geist Mono", monospace; font-size: 12.5px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(28,156,255,0.18); }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); }
.form { display: grid; gap: 14px; }
.hint { font-size: 12px; color: var(--steel); margin-top: 6px; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track { width: 34px; height: 20px; border-radius: 10px; background: #232a36; border: 1px solid var(--line-strong); position: relative; transition: background .15s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--silver); transition: transform .15s, background .15s; }
.switch input:checked + .track { background: var(--accent); border-color: var(--accent); }
.switch input:checked + .track::after { transform: translateX(14px); background: #05070b; }
.switch input:focus-visible + .track { box-shadow: 0 0 0 3px rgba(28,156,255,0.3); }
.switch input:disabled + .track { opacity: .45; }

/* Badges / pills */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 500; border: 1px solid var(--line-strong); color: var(--silver); background: rgba(255,255,255,0.03); white-space: nowrap; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.ok { color: var(--success-text); border-color: rgba(62,207,142,0.35); background: rgba(62,207,142,0.08); }
.badge.err { color: var(--coral); border-color: rgba(255,111,94,0.35); background: rgba(255,111,94,0.08); }
.badge.warn { color: var(--warning-text); border-color: rgba(245,181,68,0.35); background: rgba(245,181,68,0.08); }
.badge.accent { color: var(--accent-hover); border-color: rgba(28,156,255,0.4); background: rgba(28,156,255,0.1); }
.badge.premium { color: #05070b; background: var(--accent); border-color: var(--accent); font-weight: 600; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font-weight: 500; color: var(--steel); font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr.clickable { cursor: pointer; }
tbody tr.clickable:hover td { background: rgba(255,255,255,0.025); }
td.actions { text-align: right; white-space: nowrap; }
td.actions .btn + .btn { margin-left: 6px; }
.empty { text-align: center; padding: 28px 10px; color: var(--steel); }

/* Layout */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar); flex: none; border-right: 1px solid var(--line); background: rgba(5,7,11,0.85);
  position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 20px 14px; display: flex; flex-direction: column;
}
.sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
.sidebar .brand img { height: 22px; }
.sidebar .brand .tag { font-family: "Michroma", sans-serif; font-size: 9px; letter-spacing: .24em; color: var(--accent); border: 1px solid rgba(28,156,255,0.4); border-radius: 4px; padding: 2px 5px; }
.nav-group { margin-top: 14px; }
.nav-group .eyebrow { padding: 0 10px; margin-bottom: 6px; }
.nav a { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 6px; color: var(--silver); font-weight: 500; font-size: 13.5px; }
.nav a svg { width: 16px; height: 16px; flex: none; opacity: .8; }
.nav a:hover { background: rgba(255,255,255,0.04); color: #fff; }
.nav a.active { background: rgba(28,156,255,0.12); color: #fff; box-shadow: inset 2px 0 0 var(--accent); }
.nav a .count { margin-left: auto; font-size: 11px; color: var(--steel); }
.sidebar .me { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--raised); border: 1px solid var(--line-strong); display: grid; place-items: center; font-weight: 600; color: #fff; flex: none; font-size: 13px; }
.me .who { min-width: 0; flex: 1; }
.me .who div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.main { flex: 1; min-width: 0; }
.topbar { display: none; }
.content { max-width: 1240px; margin: 0 auto; padding: 32px 32px 64px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head p { margin: 6px 0 0; color: var(--steel); max-width: 720px; }
.banner { border: 1px solid rgba(28,156,255,0.35); background: rgba(28,156,255,0.08); color: var(--foreground); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 20px; }
.callout { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 14px 16px; background: rgba(255,255,255,0.02); }
.callout.warn { border-color: rgba(245,181,68,0.4); background: rgba(245,181,68,0.06); }
.callout.err { border-color: rgba(255,111,94,0.4); background: rgba(255,111,94,0.06); }
.callout.accent { border-color: rgba(28,156,255,0.4); background: rgba(28,156,255,0.06); }

@media (max-width: 900px) {
  .sidebar { position: fixed; z-index: 40; left: 0; transform: translateX(-100%); transition: transform .2s; }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .scrim { display: block; }
  .scrim { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 30; }
  .topbar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(5,7,11,0.9); backdrop-filter: blur(10px); z-index: 20; }
  .topbar img { height: 20px; }
  .content { padding: 20px 16px 48px; }
}

/* Code / copy blocks */
.codeblock { position: relative; background: #0b0f16; border: 1px solid var(--line); border-radius: 6px; padding: 12px 44px 12px 12px; font-family: "Geist Mono", monospace; font-size: 12.5px; color: var(--silver); white-space: pre-wrap; word-break: break-all; }
.codeblock .copy { position: absolute; top: 6px; right: 6px; }
.secret { border-color: rgba(28,156,255,0.5); color: #fff; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 14px 36px; color: var(--silver); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(28,156,255,0.5); color: var(--accent); display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.steps li b { color: #fff; font-weight: 600; }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs button { background: none; border: 0; color: var(--steel); font: 500 13.5px "Geist", sans-serif; padding: 10px 12px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button:hover { color: #fff; }
.tabs button.active { color: #fff; border-bottom-color: var(--accent); }

/* App tiles */
.app-tile { display: flex; gap: 14px; align-items: flex-start; }
.app-icon { width: 44px; height: 44px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: 15px; flex: none; border: 1px solid var(--line-strong); background: var(--raised); color: #fff; }
.app-icon.premiere { background: #00005b; color: #9999ff; border-color: #2a2a8a; }
.app-icon.roblox { background: #e2e6ec; color: #121212; }
.app-icon.claude { background: #d97757; color: #fff; border-color: #d97757; }
.app-icon.axis { background: rgba(28,156,255,0.12); color: var(--accent); border-color: rgba(28,156,255,0.4); }

/* Charts */
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid-line { stroke: rgba(201,209,220,0.08); stroke-width: 1; }
.chart .axis-text { fill: var(--steel); font-size: 11px; font-family: "Geist", sans-serif; }
.chart .hit { fill: transparent; cursor: default; }
.chart .hit:hover + .hover-band, .chart .bar-group:hover .band { fill: rgba(255,255,255,0.04); }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--silver); margin-bottom: 10px; flex-wrap: wrap; }
.legend .key { display: inline-flex; align-items: center; gap: 6px; }
.legend .sw { width: 10px; height: 10px; border-radius: 3px; }
.tooltip { position: fixed; z-index: 100; pointer-events: none; background: var(--raised); border: 1px solid var(--line-strong); border-radius: 6px; padding: 8px 10px; font-size: 12px; color: var(--foreground); box-shadow: 0 12px 32px -12px rgba(0,0,0,.8); min-width: 120px; }
.tooltip .t { color: var(--steel); margin-bottom: 4px; }
.tooltip .r { display: flex; align-items: center; gap: 6px; justify-content: space-between; }
.tooltip .r span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.hbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; font-size: 13px; }
.hbar .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--silver); }
.hbar .track { grid-column: 1 / -1; height: 6px; background: rgba(255,255,255,0.05); border-radius: 3px; overflow: hidden; margin-bottom: 6px; }
.hbar .fill { height: 100%; background: var(--accent); border-radius: 0 3px 3px 0; }

/* Modal & drawer */
.modal-back { position: fixed; inset: 0; background: rgba(2,3,6,0.7); backdrop-filter: blur(4px); z-index: 60; display: grid; place-items: center; padding: 16px; animation: fade .15s; }
.modal { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--card-ink); border: 1px solid var(--line-strong); border-radius: 10px; padding: 22px; box-shadow: 0 40px 80px -30px #000; }
.modal.wide { width: min(860px, 100%); }
.modal h2 { margin-bottom: 6px; }
.modal .foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
@keyframes fade { from { opacity: 0; } }
.toasts { position: fixed; bottom: 16px; right: 16px; z-index: 120; display: grid; gap: 8px; }
.toast { background: var(--raised); border: 1px solid var(--line-strong); border-left: 3px solid var(--accent); padding: 10px 14px; border-radius: 6px; min-width: 240px; max-width: 380px; box-shadow: 0 16px 32px -16px #000; animation: fade .15s; }
.toast.err { border-left-color: var(--coral); }
.toast.ok { border-left-color: var(--success); }

/* Activity details */
details.call { border-bottom: 1px solid var(--line); }
details.call summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 20px minmax(0, 2fr) minmax(0, 1.2fr) 80px 120px; gap: 10px; align-items: center; padding: 10px 4px; }
details.call summary::-webkit-details-marker { display: none; }
details.call summary:hover { background: rgba(255,255,255,0.02); }
details.call .body { padding: 0 4px 14px 34px; display: grid; gap: 8px; }
details.call pre { margin: 0; background: #0b0f16; border: 1px solid var(--line); border-radius: 6px; padding: 10px; font: 12px "Geist Mono", monospace; color: var(--silver); white-space: pre-wrap; word-break: break-word; max-height: 300px; overflow: auto; }
@media (max-width: 720px) { details.call summary { grid-template-columns: 20px minmax(0, 1fr) 70px; } details.call summary .hide-sm { display: none; } }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.status-dot.ok { background: var(--success); }
.status-dot.err { background: var(--coral); }
.status-dot.off { background: #3a4352; }
.status-dot.live { background: var(--success); box-shadow: 0 0 0 3px rgba(62,207,142,0.18); }

/* Tool catalogue */
.tool-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tool-row:last-child { border-bottom: 0; }
.tool-row .info { flex: 1; min-width: 0; }
.tool-row .name { font-family: "Geist Mono", monospace; font-size: 13px; color: #fff; }
.tool-row .desc { color: var(--steel); font-size: 13px; margin-top: 2px; }

/* Auth pages */
.auth-body { display: grid; place-items: center; padding: 24px 16px; }
.auth-wrap { width: min(440px, 100%); }
.auth-logo { display: flex; justify-content: center; margin: 12px 0 24px; }
.auth-logo img { height: 30px; }
.auth-card { padding: 28px; }
.auth-card h1 { font-size: 22px; margin-bottom: 8px; }
.auth-foot { text-align: center; color: var(--steel); font-size: 12px; margin-top: 18px; }
.auth-switch { text-align: center; margin-top: 16px; color: var(--steel); font-size: 13px; }
.form-error { color: var(--coral); font-size: 13px; min-height: 0; }
.consent-list { margin: 16px 0; padding-left: 18px; color: var(--silver); }
.consent-list li { margin-bottom: 6px; }
.consent-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.consent-actions .btn { flex: 1; }

/* My Tools */
.tool-tile { width: 44px; height: 44px; border-radius: 8px; flex: none; display: grid; place-items: center; font: 400 12px "Michroma", sans-serif; letter-spacing: .08em; color: var(--accent); background: rgba(28,156,255,0.1); border: 1px solid rgba(28,156,255,0.35); }
.tool-tile.sm { width: 30px; height: 30px; font-size: 9.5px; border-radius: 6px; }
.chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 5px; font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--silver); background: var(--raised); border: 1px solid var(--line-strong); }
.products .product { display: flex; flex-direction: column; transition: border-color .15s, transform .15s; }
.products .product:hover { border-color: var(--line-strong); }
.products .product.locked .tool-tile { color: var(--steel); background: rgba(255,255,255,0.03); border-color: var(--line-strong); }
.products .product h3 { font-size: 15px; }
details.tool-app > summary::-webkit-details-marker { display: none; }
details.tool-app[open] > summary .muted.small:last-child { visibility: hidden; }
.app-icon { font-size: 13px; letter-spacing: .02em; }
.desktop-banner { border-color: rgba(28,156,255,0.4); background: linear-gradient(120deg, rgba(28,156,255,0.12), rgba(10,13,19,0.72) 55%); }
@media (max-width: 720px) { .desktop-banner .row { flex-wrap: wrap !important; } }
