*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0f1117; --surface: #161b27; --surface2: #1e2535;
  --border: #1e2535; --border2: #2a3550;
  --text: #edf2f8; --muted: #a8b5c7; --dim: #8494aa;
  --accent: #3b82f6; --accent-dim: #1e3a5f;
  --green: #4ade80; --green-dim: #14532d;
  --amber: #fbbf24; --amber-dim: #78350f;
  --rose: #fb7185; --rose-dim: #7f1d1d;
  --purple: #c084fc; --purple-dim: #4c1d95;
  --cyan: #22d3ee;
  --sidebar-w: 292px;
  --header-h: 52px;
}
body { background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 14px; line-height: 1.55; }

/* ── Auth gate ── */
#authGate {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 16px;
}
.auth-card { background: var(--surface); border: 1px solid var(--border2); border-radius: 14px; padding: 40px 48px; text-align: center; max-width: 360px; width: 100%; }
.auth-logo { font-size: 32px; margin-bottom: 12px; }
.auth-title { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.auth-sub { color: var(--dim); font-size: 12px; margin-bottom: 24px; }
.google-btn { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: #1f2937; border: none; border-radius: 8px; padding: 10px 20px; font-size: 13px; font-weight: 600; cursor: pointer; width: 100%; justify-content: center; transition: opacity 0.15s; }
.google-btn:hover { opacity: 0.9; }
.google-btn svg { flex-shrink: 0; }
.auth-error { color: var(--rose); font-size: 12px; padding: 8px 12px; background: #7f1d1d22; border: 1px solid #7f1d1d55; border-radius: 6px; display: none; }

/* ── Shell ── */
#app { display: none; height: 100vh; overflow: hidden; }
.shell { display: flex; height: 100%; }

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-w);
  background: #0c121d;
  border-right: 1px solid rgba(148, 163, 184, 0.13);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 10px;
  overflow-y: auto;
  padding: 12px;
}
.sidebar-backdrop { display: none; }
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 8px 6px;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  transition: background 0.15s ease;
}
.brand:hover { background: rgba(148, 163, 184, 0.08); }
.brand:hover .brand-name { color: #93c5fd; }
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: #16243a;
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #93c5fd;
  font-size: 13px;
  font-weight: 900;
}
.brand-name { font-size: 15px; font-weight: 800; color: var(--text); line-height: 1.1; }
.brand-tag { font-size: 11px; text-transform: uppercase; letter-spacing: 0.9px; color: #6f7f96; margin-top: 3px; font-weight: 800; }
.nav-search {
  height: 36px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 7px;
  background: #070b13;
  color: #73849b;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
}
.nav-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 12px;
}
.nav-search input::placeholder { color: #73849b; }
.nav-group {
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 8px;
  background: #101827;
  padding: 8px;
}
.nav-group[hidden], .nav-item[hidden] { display: none; }
.nav-group-head {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #798aa1;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0 4px 0 7px;
}
.nav-group-count { color: #8da0b7; font-weight: 900; }
.nav-item {
  width: 100%;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 3px;
  padding: 0 9px;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #a9b7ca;
  font: inherit;
  font-size: 12.5px;
  font-weight: 750;
  text-align: left;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.nav-item:last-child { margin-bottom: 0; }
.nav-item:hover { background: rgba(30, 37, 53, 0.72); color: var(--text); }
.nav-item.active {
  background: #17243a;
  color: var(--text);
  border-color: rgba(59, 130, 246, 0.30);
}
.nav-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #75869e;
  flex: 0 0 auto;
}
.nav-item.active .nav-icon { color: #8bb9ff; }
.nav-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-count {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(59, 130, 246, 0.24);
  color: #93c5fd;
  font-size: 11px;
  font-weight: 900;
  line-height: 18px;
  text-align: center;
}
.sidebar-footer {
  margin-top: auto;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 8px;
  background: #101827;
}
.admin-email { font-size: 11px; color: #7d8da3; word-break: break-all; font-weight: 700; }
.sign-out-btn { margin-top: 6px; font-size: 11px; color: #ff8b98; background: none; border: none; cursor: pointer; padding: 0; font-weight: 800; }
.sign-out-btn:hover { color: #ffc0c7; }

/* ── Main ── */
.main { flex: 1; min-width: 0; overflow-y: auto; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 0 24px; height: var(--header-h); border-bottom: 1px solid var(--border); background: var(--surface); flex-shrink: 0; position: sticky; top: 0; z-index: 5; }
.page-title { font-size: 15px; font-weight: 700; }
.topbar-title, .topbar-actions { display: flex; align-items: center; gap: 10px; }
.sidebar-toggle { display: none; border: 1px solid var(--border2); border-radius: 7px; background: var(--surface2); color: var(--text); width: 34px; height: 34px; cursor: pointer; }
.freshness-badge { background: rgba(30, 58, 95, .55); color: #a7c8f7; font-size: 11px; padding: 3px 9px; border-radius: 999px; font-weight: 700; border: 1px solid rgba(59, 130, 246, .28); white-space: nowrap; }
.content { padding: 22px 24px; flex: 1; }

/* ── Cards ── */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.kpi { background: var(--surface); border: 1px solid var(--border2); border-radius: 10px; padding: 16px; }
.kpi-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--dim); margin-bottom: 6px; }
.kpi-value { font-size: 28px; font-weight: 700; line-height: 1; }
.kpi-sub { font-size: 11px; color: var(--dim); margin-top: 5px; }
.c-blue { color: var(--accent); }
.c-green { color: var(--green); }
.c-amber { color: var(--amber); }
.c-purple { color: var(--purple); }
.c-cyan { color: var(--cyan); }
.c-rose { color: var(--rose); }

.section-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.7px; color: var(--dim); font-weight: 600; margin-bottom: 10px; }
.sec-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }

/* ── Table ── */
.table-card { background: var(--surface); border: 1px solid var(--border2); border-radius: 10px; overflow: hidden; margin-bottom: 22px; }
.table-hdr { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.table-hdr-title { font-size: 13px; font-weight: 600; }
table { width: 100%; border-collapse: collapse; }
th { padding: 9px 16px; text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--dim); font-weight: 700; background: #0b0f18; border-bottom: 1px solid var(--border); }
td { padding: 11px 16px; border-bottom: 1px solid #0b0f18; color: var(--muted); font-size: 13px; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #1e253522; }
.tag { display: inline-block; padding: 1px 7px; border-radius: 8px; font-size: 11px; font-weight: 500; }
.tag-blue { background: var(--accent-dim); color: var(--accent); }
.tag-green { background: #14532d44; color: var(--green); }
.tag-amber { background: #78350f44; color: var(--amber); }
.tag-slate { background: var(--surface2); color: var(--dim); }
.status-dot { display: inline-flex; align-items: center; gap: 5px; }
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }

/* ── Dashboard user signal board ── */
.command-center { margin-bottom: 24px; }
.command-hero { display: flex; align-items: end; justify-content: space-between; gap: 22px; padding: 18px 20px; border: 1px solid #263247; border-radius: 11px; background: radial-gradient(circle at 88% 0, rgba(59, 130, 246, .14), transparent 36%), linear-gradient(145deg, #172033, #111827); }
.command-hero > div > span { color: #60a5fa; font-size: 11px; font-weight: 900; letter-spacing: .09em; }.command-hero h2 { margin-top: 4px; font-size: 22px; letter-spacing: -.03em; }.command-hero p { margin-top: 5px; color: var(--muted); font-size: 12px; }.command-hero label { min-width: 150px; display: grid; gap: 4px; color: var(--dim); font-size: 11px; }.command-hero select { min-height: 36px; border: 1px solid var(--border2); border-radius: 7px; background: #0b0f18; color: var(--text); padding: 0 10px; }
.command-center .analysis-contract-bar { margin: 10px 0; }
.command-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-bottom: 10px; }.command-kpi { position: relative; min-height: 112px; overflow: hidden; padding: 13px 14px; border: 1px solid #263247; border-radius: 9px; background: #131b28; }.command-kpi::after { content: ""; position: absolute; inset: auto -20px -35px auto; width: 90px; height: 90px; border-radius: 50%; background: var(--command-tone, #60a5fa); opacity: .06; }.command-kpi.blue { --command-tone:#60a5fa; }.command-kpi.violet { --command-tone:#a78bfa; }.command-kpi.mint { --command-tone:#34d399; }.command-kpi.amber { --command-tone:#fbbf24; }.command-kpi > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }.command-kpi > div > span { color: var(--dim); font-size: 11px; font-weight: 800; }.command-kpi > strong { display: block; margin: 12px 0 6px; color: var(--command-tone); font-size: 27px; line-height: 1; }.command-kpi > small { color: var(--dim); font-size: 11px; }
.command-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(250px, .75fr) minmax(280px, .8fr); gap: 10px; }.command-panel { min-width: 0; overflow: hidden; border: 1px solid #263247; border-radius: 9px; background: #121925; }.command-panel > header { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 13px; border-bottom: 1px solid #202b3d; }.command-panel > header span { color: #60a5fa; font-size: 11px; font-weight: 900; letter-spacing: .06em; }.command-panel > header h3 { margin-top: 2px; font-size: 13px; }.command-panel > header small { color: var(--dim); font-size: 11px; }
.command-funnel-list { display: grid; gap: 6px; padding: 11px 13px; }.command-funnel-step { position: relative; isolation: isolate; overflow: hidden; min-height: 48px; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 7px 9px; border: 1px solid rgba(59, 130, 246, .2); border-radius: 7px; }.command-funnel-step > i { position: absolute; z-index: -1; inset: 0 auto 0 0; width: var(--width); background: linear-gradient(90deg, rgba(30, 64, 175, .28), rgba(30, 58, 95, .08)); }.command-funnel-step > span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 5px; background: rgba(37, 99, 235, .22); color: #bfdbfe; font-size: 11px; font-weight: 900; }.command-funnel-step b, .command-funnel-step small { display: block; }.command-funnel-step b { font-size: 12px; }.command-funnel-step small { color: var(--dim); font-size: 11px; }.command-funnel-step > strong { color: #dbeafe; font-size: 14px; }.command-empty { padding: 28px; color: var(--dim); text-align: center; }
.command-change-list { display: grid; grid-template-columns: 1fr 1fr; min-height: 208px; }.command-change-list > div { display: grid; align-content: center; justify-items: center; gap: 5px; padding: 16px 10px; text-align: center; }.command-change-list > div:first-child { border-right: 1px solid #202b3d; }.command-change-list span { color: var(--dim); font-size: 11px; font-weight: 800; text-transform: uppercase; }.command-change-list b { font-size: 13px; }.command-change-list strong { font-size: 22px; }.command-change-list small { color: var(--dim); font-size: 11px; }.command-change-list .growth strong { color: #6ee7b7; }.command-change-list .decline strong { color: #fda4af; }
.command-actions > div { display: grid; }.command-actions button { min-height: 62px; display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 10px 12px; border: 0; border-bottom: 1px solid #202b3d; background: transparent; color: inherit; text-align: left; cursor: pointer; }.command-actions button:last-child { border-bottom: 0; }.command-actions button:hover { background: rgba(30, 41, 59, .45); }.command-actions button > i { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }.command-actions button > i.amber { background: var(--amber); }.command-actions button > i.rose { background: var(--rose); }.command-actions button > i.green { background: var(--green); }.command-actions button b, .command-actions button small { display: block; }.command-actions button b { font-size: 12px; }.command-actions button small { margin-top: 2px; color: var(--dim); font-size: 11px; }.command-actions button > strong { color: #93c5fd; font-size: 11px; white-space: nowrap; }
.dash-list-panel { background: var(--surface); border: 1px solid var(--border2); border-radius: 10px; overflow: hidden; margin-bottom: 22px; }
.dash-list-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
  padding: 15px 16px; border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.07), rgba(59, 130, 246, 0.03) 58%, transparent);
}
.dash-list-title { margin: -4px 0 2px; font-size: 16px; line-height: 1.2; letter-spacing: 0; }
.dash-list-sub { color: var(--dim); font-size: 11px; }
.dash-list-metrics { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; max-width: 620px; }
.dash-list-metrics span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 4px 8px;
  border: 1px solid rgba(148, 163, 184, 0.13); border-radius: 8px; background: #0b0f18;
  color: var(--dim); font-size: 11px; font-weight: 700;
}
.dash-list-metrics b { color: var(--text); max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-list-toolbar {
  display: grid; grid-template-columns: minmax(240px, 1fr) 180px 170px 76px 82px; gap: 8px;
  align-items: center; padding: 12px 16px 10px; border-bottom: 1px solid rgba(30, 37, 53, 0.72);
}
.dash-segments { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 16px 12px; border-bottom: 1px solid var(--border); }
.segment-chip {
  min-height: 30px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--border);
  border-radius: 8px; background: #0b0f18; color: var(--muted); padding: 4px 8px;
  font-size: 11px; font-weight: 800; cursor: pointer;
}
.segment-chip:hover { border-color: var(--border2); color: var(--text); }
.segment-chip.active { background: #142136; border-color: rgba(59, 130, 246, 0.42); color: var(--text); }
.segment-chip b { min-width: 22px; padding: 1px 6px; border-radius: 999px; font-size: 11px; line-height: 17px; text-align: center; }
.dash-table-wrap { overflow-x: auto; }
.dash-user-table { min-width: 980px; }
.sort-th {
  border: 0; background: transparent; color: inherit; font: inherit; font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.4px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
}
.sort-th:hover { color: var(--text); }
.sort-mark { color: var(--accent); font-size: 11px; line-height: 1; }
.sort-mark.muted { color: #334155; }
.dash-user-name { display: flex; align-items: center; gap: 9px; min-width: 0; }
.rank-pill {
  width: 28px; height: 22px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 28px; background: #0b0f18; border: 1px solid var(--border); color: #71829a; font-size: 11px; font-weight: 900;
}
.dash-user-table td strong { color: var(--text); font-weight: 800; }
.dash-user-table tr.hot-row td { background: rgba(251, 191, 36, 0.025); }
.dash-user-table tr.hot-row:hover td { background: rgba(251, 191, 36, 0.055); }
.dash-list-foot { padding: 10px 16px; border-top: 1px solid var(--border); color: var(--dim); font-size: 11px; background: #0b0f18; }

/* ── User management redesign ── */
.admin-toolbar { display: grid; grid-template-columns: minmax(240px, 1fr) 150px 150px auto auto; gap: 8px; align-items: center; margin-bottom: 12px; }
.admin-input, .admin-select {
  width: 100%; background: #0b0f18; border: 1px solid var(--border2); border-radius: 8px;
  color: var(--text); padding: 8px 10px; font-size: 12px; outline: none;
}
.admin-input:focus, .admin-select:focus { border-color: var(--accent); }
.user-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.user-kpi { background: var(--surface); border: 1px solid var(--border2); border-radius: 8px; padding: 12px; min-height: 78px; }
.user-kpi-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--dim); margin-bottom: 7px; }
.user-kpi-value { font-size: 22px; font-weight: 800; line-height: 1; }
.user-kpi-sub { font-size: 11px; color: var(--dim); margin-top: 6px; }
.user-kpi-head { min-height: 23px; display: flex; align-items: flex-start; justify-content: space-between; gap: 5px; }.user-kpi-head .user-kpi-label { margin-bottom: 0; }
.saved-view-bar { min-height: 44px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 11px; padding: 7px 9px; border: 1px solid var(--border2); border-radius: 8px; background: #0b0f18; }.saved-view-bar > span { margin-right: 4px; color: var(--dim); font-size: 11px; font-weight: 800; }.saved-view-bar > small { color: var(--dim); font-size: 11px; }.saved-view-bar > button:not(.saved-view-delete) { display: grid; gap: 1px; padding: 4px 8px; border: 1px solid var(--border2); border-radius: 7px; background: var(--surface2); color: inherit; text-align: left; cursor: pointer; }.saved-view-bar button b { font-size: 11px; }.saved-view-bar button small { color: var(--dim); font-size: 11px; }.saved-view-delete { width: 22px; height: 22px; margin-left: -10px; border: 1px solid var(--border2); border-radius: 50%; background: #0b0f18; color: var(--dim); cursor: pointer; }.saved-view-delete:hover { color: var(--rose); }
.view-hero {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  background: linear-gradient(180deg, #1e3a5f24, transparent), var(--surface);
  border: 1px solid var(--border2); border-radius: 8px; padding: 14px 16px; margin-bottom: 14px;
}
.view-hero h2 { font-size: 17px; line-height: 1.2; margin-bottom: 4px; }
.view-hero p { color: var(--muted); font-size: 12px; max-width: 780px; }
.view-hero-badges { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.user-cell { display: flex; align-items: center; gap: 9px; min-width: 0; }
.user-avatar {
  width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 30px; background: var(--surface2); border: 1px solid var(--border2); color: #bfdbfe; font-size: 11px; font-weight: 800;
}
.user-name { color: var(--text); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-email { color: var(--dim); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.action-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.mini-btn {
  border: 1px solid var(--border2); border-radius: 7px; background: var(--surface2); color: var(--muted);
  padding: 4px 8px; font-size: 11px; font-weight: 700; cursor: pointer;
}
.mini-btn:hover { border-color: var(--accent); color: var(--text); }
.mini-btn.primary { background: var(--accent-dim); border-color: #1d4ed8; color: #93c5fd; }
.mini-btn.green { background: #14532d33; border-color: #166534; color: var(--green); }
.mini-btn.warn { background: #78350f33; border-color: #92400e; color: var(--amber); }
.tag-rose { background: #7f1d1d44; color: var(--rose); }
.tag-green { background: #14532d44; color: var(--green); }
.tag-amber { background: #78350f44; color: var(--amber); }
.tag-blue { background: var(--accent-dim); color: var(--accent); }
.tag-slate { background: var(--surface2); color: var(--dim); }
.sub-layout { display: grid; grid-template-columns: 290px 360px minmax(0, 1fr); gap: 12px; align-items: stretch; }
.sub-panel, .queue-panel {
  background: var(--surface); border: 1px solid var(--border2); border-radius: 8px; overflow: hidden; min-width: 0;
}
.sub-panel-hdr, .queue-panel-hdr {
  min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 11px 12px; border-bottom: 1px solid var(--border); background: #0b0f18;
}
.sub-panel-title, .queue-panel-title { font-size: 12px; font-weight: 800; color: var(--text); }
.segment-list, .console-list, .queue-filter-list { display: grid; gap: 7px; padding: 10px; }
.segment-card, .console-row, .queue-filter {
  border: 1px solid var(--border); border-radius: 8px; background: #0b0f18; padding: 9px 10px; cursor: pointer;
}
.segment-card:hover, .console-row:hover, .queue-filter:hover { border-color: var(--border2); background: #111827; }
.segment-card.active, .console-row.active, .queue-filter.active { background: var(--accent-dim); border-color: #1d4ed8; }
.segment-card strong, .queue-filter strong { display: block; color: var(--text); font-size: 12px; }
.segment-card span, .queue-filter span { display: block; color: var(--dim); font-size: 11px; margin-top: 2px; }
.console-list { max-height: 640px; overflow: auto; }
.console-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.detail-hero { padding: 16px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, #1e3a5f33, transparent); }
.detail-hero h3 { font-size: 18px; margin-bottom: 3px; }
.detail-hero p { color: var(--dim); font-size: 11px; }
.detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 12px 16px; }
.detail-stat { background: #0b0f18; border: 1px solid var(--border); border-radius: 8px; padding: 10px; }
.detail-stat small { display: block; color: var(--dim); font-size: 11px; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 5px; }
.detail-stat b { color: var(--text); font-size: 16px; }
.edit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 16px 14px; }
.edit-field { display: grid; gap: 6px; }
.edit-field.wide { grid-column: 1 / -1; }
.edit-field label { color: var(--dim); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px; }
.input-box { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--border); border-radius: 8px; background: #0b0f18; padding: 8px 10px; color: var(--muted); }
.audit-list { margin: 0 16px 16px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.detail-timeline-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 2px 16px 7px; }.detail-timeline-title span { color: var(--text); font-size: 12px; font-weight: 800; }.detail-timeline-title small { color: var(--dim); font-size: 11px; }.real-audit-list { border-color: rgba(59, 130, 246, .28); }
.audit-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 8px; padding: 9px 10px; border-bottom: 1px solid var(--border); background: #0b0f18; font-size: 11px; color: var(--muted); }
.audit-row:last-child { border-bottom: 0; }
.audit-row b { color: var(--text); }
.queue-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr) 300px; gap: 12px; }
.queue-lanes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 10px; }
.queue-lane { border: 1px solid var(--border); border-radius: 8px; background: #0b0f18; overflow: hidden; min-width: 0; }
.lane-head { display: flex; align-items: center; justify-content: space-between; padding: 10px; border-bottom: 1px solid var(--border); font-weight: 800; color: var(--text); }
.lane-head span { color: var(--dim); font-size: 11px; }
.lane-body { display: grid; gap: 8px; padding: 9px; min-height: 350px; align-content: start; }
.work-card { border: 1px solid var(--border); border-radius: 8px; background: var(--surface); padding: 10px; min-width: 0; }
.work-card-head { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 6px; }.work-card-head h4 { margin-bottom: 0; }.work-card-head > span { color: var(--dim); font-size: 11px; }.queue-select { width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid var(--border2); border-radius: 5px; background: #0b0f18; color: #dbeafe; cursor: pointer; }.queue-select.active { border-color: var(--accent); background: var(--accent); }.queue-bulk-bar { display: flex; align-items: center; justify-content: flex-end; gap: 7px; padding: 8px 10px; border-bottom: 1px solid var(--border); background: rgba(30, 58, 95, .2); }.queue-bulk-bar > span { margin-right: auto; color: var(--muted); font-size: 11px; }.queue-bulk-bar b { color: #bfdbfe; }
.work-card h4 { color: var(--text); font-size: 12px; margin-bottom: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work-card p { color: var(--dim); font-size: 11px; margin-bottom: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-row { display: flex; gap: 5px; flex-wrap: wrap; }
.insight-list { display: grid; gap: 8px; padding: 10px; }
.insight-card { border: 1px solid var(--border); border-radius: 8px; background: #0b0f18; padding: 10px; }
.insight-card small { display: block; color: var(--dim); font-size: 11px; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.4px; }
.insight-card b { color: var(--text); font-size: 12px; }

@media (max-width: 1180px) {
  .command-grid { grid-template-columns: 1fr 1fr; }.command-funnel { grid-column: 1 / -1; }
  .user-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sub-layout, .queue-layout { grid-template-columns: 1fr; }
  .queue-lanes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-list-toolbar { grid-template-columns: minmax(220px, 1fr) minmax(150px, 180px) minmax(140px, 170px); }
  .dash-list-toolbar .btn { min-height: 32px; }
}
@media (max-width: 760px) {
  .command-hero { align-items: flex-start; flex-direction: column; }.command-hero label { width: 100%; }.command-kpis, .command-grid { grid-template-columns: 1fr; }.command-funnel { grid-column: auto; }.command-change-list { min-height: 0; }
  .admin-toolbar, .dash-list-toolbar, .user-kpis, .detail-grid, .edit-grid, .queue-lanes { grid-template-columns: 1fr; }
  .dash-list-head { flex-direction: column; }
  .dash-list-metrics { justify-content: flex-start; max-width: none; }
  .content { padding: 16px; }
}

/* ── Validation Queue ── */
.validation-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 10px; padding: 16px 18px; border: 1px solid var(--border2); border-radius: 10px; background: linear-gradient(145deg, rgba(30, 58, 95, .2), transparent), var(--surface); }.validation-hero > div:first-child > span { color: #60a5fa; font-size: 11px; font-weight: 900; letter-spacing: .07em; }.validation-hero h2 { margin-top: 3px; font-size: 20px; }.validation-hero p { margin-top: 4px; color: var(--muted); font-size: 12px; }.validation-hero .analysis-data-state { flex: 0 0 auto; }
.validation-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; margin-bottom: 10px; }.validation-kpis article { min-height: 92px; padding: 12px 13px; border: 1px solid var(--border2); border-radius: 9px; background: var(--surface); }.validation-kpis article.danger { border-color: rgba(251, 113, 133, .3); background: rgba(127, 29, 29, .1); }.validation-kpis span, .validation-kpis strong, .validation-kpis small { display: block; }.validation-kpis span { color: var(--dim); font-size: 11px; font-weight: 800; }.validation-kpis strong { margin: 7px 0 4px; font-size: 23px; }.validation-kpis article.danger strong { color: var(--rose); }.validation-kpis small { color: var(--dim); font-size: 11px; }.validation-history-state { display: grid; gap: 3px; padding: 11px 13px; border: 1px solid rgba(251, 191, 36, .2); border-radius: 8px; background: rgba(120, 53, 15, .08); }.validation-history-state span { color: var(--amber); font-size: 11px; font-weight: 900; letter-spacing: .06em; }.validation-history-state b { font-size: 12px; }.validation-history-state small { color: var(--muted); font-size: 11px; }
.queue-card { background: var(--surface); border: 1px solid var(--border2); border-radius: 10px; overflow: hidden; margin-bottom: 22px; }
.queue-hdr { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.queue-row { display: grid; grid-template-columns: 130px 70px 1fr 100px; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid #0b0f18; }
.queue-row:last-child { border-bottom: none; }
.queue-hdr-row { display: grid; grid-template-columns: 130px 70px 1fr 100px; gap: 12px; padding: 7px 16px; background: #0b0f18; border-bottom: 1px solid var(--border); }
.queue-hdr-cell { font-size: 11px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--dim); font-weight: 600; }
.steps { display: flex; gap: 8px; align-items: center; }
.step { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.step-dot { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.s-done { background: var(--green-dim); color: var(--green); border: 1px solid #166534; }
.s-run  { background: var(--accent-dim); color: var(--accent); border: 1px solid #1d4ed8; animation: blink 1.4s infinite; }
.s-wait { background: var(--surface2); color: var(--dim); border: 1px solid var(--border2); }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.4} }
.step-lbl { font-size: 11px; color: var(--dim); white-space: nowrap; }
.fix-badge { font-size: 11px; padding: 2px 8px; border-radius: 6px; }
.fix-pos { background: #78350f33; color: var(--amber); }
.fix-ok  { background: #14532d33; color: var(--green); }
.fix-err { background: #7f1d1d33; color: var(--rose); }
.empty-state { padding: 32px; text-align: center; color: var(--dim); font-size: 12px; }
@media (max-width: 900px) { .validation-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 650px) { .validation-hero { align-items: flex-start; flex-direction: column; }.validation-hero .analysis-data-state { width: 100%; }.validation-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }.queue-card { overflow-x: auto; }.queue-hdr, .queue-hdr-row, .queue-row { min-width: 720px; } }

/* ── Buttons ── */
.btn { background: var(--surface2); border: 1px solid var(--border2); border-radius: 7px; padding: 5px 12px; font-size: 11px; color: var(--muted); cursor: pointer; transition: all 0.12s; }
.btn:hover { border-color: var(--accent); color: var(--text); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn-primary:hover { opacity: 0.85; }
.btn-danger { background: var(--rose-dim); border-color: var(--rose); color: var(--rose); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }

/* ── Health cards ── */
.health-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 10px; padding: 16px 18px; border: 1px solid var(--border2); border-radius: 10px; background: linear-gradient(145deg, rgba(30, 58, 95, .2), transparent), var(--surface); }.health-hero > div:first-child > span { color: #60a5fa; font-size: 11px; font-weight: 900; letter-spacing: .07em; }.health-hero h2 { margin-top: 3px; font-size: 20px; }.health-hero p { margin-top: 4px; color: var(--muted); font-size: 12px; }.health-hero .analysis-data-state { flex: 0 0 auto; }
.health-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.health-card { background: var(--surface); border: 1px solid var(--border2); border-radius: 10px; padding: 16px; }
.health-name { font-size: 11px; color: var(--dim); margin-bottom: 6px; }
.health-val { font-size: 13px; font-weight: 600; }
.health-history-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }.health-history-grid article { min-height: 130px; padding: 14px 15px; border: 1px solid rgba(251, 191, 36, .18); border-radius: 9px; background: rgba(120, 53, 15, .07); }.health-history-grid span { color: var(--amber); font-size: 11px; font-weight: 900; letter-spacing: .06em; }.health-history-grid h3 { margin: 6px 0; font-size: 14px; }.health-history-grid p { color: var(--muted); font-size: 11px; }.provider-health-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }.provider-health-grid > div { min-width: 0; display: grid; gap: 6px; padding: 11px 12px; border: 1px solid var(--border2); border-radius: 8px; background: var(--surface); }.provider-health-grid > div > span:first-child { color: var(--text); font-size: 12px; font-weight: 800; }.provider-health-grid > div > small { color: var(--dim); font-size: 11px; }
@media (max-width: 1100px) { .health-grid, .provider-health-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.health-history-grid { grid-template-columns: 1fr; } }
@media (max-width: 650px) { .health-hero { align-items: flex-start; flex-direction: column; }.health-hero .analysis-data-state { width: 100%; }.health-grid, .provider-health-grid { grid-template-columns: 1fr; } }

/* ── Alert strip ── */
.alert { display: flex; align-items: center; gap: 10px; background: #1c191733; border: 1px solid #78350f55; border-radius: 8px; padding: 9px 14px; margin-bottom: 16px; font-size: 12px; color: var(--amber); }
.alert-close { margin-left: auto; background: none; border: none; color: var(--dim); cursor: pointer; font-size: 14px; }

/* ── Two col ── */
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.chart-card { min-width: 0; overflow: auto; background: var(--surface); border: 1px solid var(--border2); border-radius: 10px; padding: 16px; }
.chart-title { font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.bar-lbl { font-size: 11px; color: var(--muted); width: 80px; flex-shrink: 0; text-align: right; }
.bar-track { flex: 1; height: 7px; background: var(--surface2); border-radius: 3px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 3px; transition: width 0.6s ease; }
.bar-pct { font-size: 11px; color: var(--dim); width: 30px; }

/* ── Route Analytics ─────────────────────────────────────────────────────── */
.route-toolbar { display: grid; grid-template-columns: 160px 220px minmax(280px, 1fr) auto; align-items: end; gap: 9px; margin-bottom: 10px; }.route-toolbar label { display: grid; gap: 4px; }.route-toolbar label > span { color: var(--dim); font-size: 11px; }.route-toolbar .analysis-data-state { min-height: 38px; padding-block: 6px; }.route-toolbar > small { align-self: center; color: var(--dim); font-size: 11px; text-align: right; }
.route-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-bottom: 12px; }.route-kpis article { min-height: 98px; padding: 12px 13px; border: 1px solid var(--border2); border-radius: 9px; background: var(--surface); }.route-kpis article > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }.route-kpis article > div > span { color: var(--dim); font-size: 11px; font-weight: 800; }.route-kpis strong { display: block; margin: 8px 0 4px; font-size: 24px; }.route-kpis small { color: var(--dim); font-size: 11px; }
.route-growth-grid { display: grid; grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr); gap: 12px; }.route-growth-card { min-width: 0; overflow: hidden; border: 1px solid var(--border2); border-radius: 10px; background: var(--surface); }.route-growth-card > header { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 10px 13px; border-bottom: 1px solid var(--border); background: #0b0f18; }.route-growth-card > header span { color: #60a5fa; font-size: 11px; font-weight: 900; letter-spacing: .06em; }.route-growth-card > header h3 { margin-top: 2px; font-size: 13px; }.route-growth-card > header small { color: var(--dim); font-size: 11px; }
.route-change-list { display: grid; padding: 6px 11px; }.route-change-list > div { min-height: 45px; display: grid; grid-template-columns: minmax(80px, 1fr) auto auto; align-items: center; gap: 8px; border-bottom: 1px solid var(--border); }.route-change-list > div:last-child { border-bottom: 0; }.route-change-list b { font: 800 12px ui-monospace, SFMono-Regular, Menlo, monospace; }.route-change-list > div > span { color: var(--dim); font-size: 11px; }
.route-heatmap { min-width: 640px; padding: 9px 11px 12px; overflow: auto; }.route-heat-head, .route-heat-row { display: grid; grid-template-columns: 70px repeat(6, minmax(66px, 1fr)); gap: 4px; align-items: center; }.route-heat-head { min-height: 30px; }.route-heat-head span, .route-heat-head b { overflow: hidden; color: var(--dim); font-size: 11px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }.route-heat-row { min-height: 33px; }.route-heat-row > span { color: var(--muted); font-size: 11px; }.route-heat-row i { height: 28px; display: grid; place-items: center; border: 1px solid rgba(59, 130, 246, calc(var(--heat) * .5)); border-radius: 5px; background: rgba(37, 99, 235, var(--heat)); color: #dbeafe; font-size: 11px; font-style: normal; }
@media (max-width: 1100px) { .route-toolbar { grid-template-columns: 1fr 1fr; }.route-toolbar .analysis-data-state, .route-toolbar > small { grid-column: 1 / -1; }.route-toolbar > small { text-align: left; }.route-growth-grid { grid-template-columns: 1fr; } }
@media (max-width: 650px) { .route-toolbar, .route-kpis { grid-template-columns: 1fr; }.route-toolbar .analysis-data-state, .route-toolbar > small { grid-column: auto; } }

/* ── Spinner ── */
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--border2); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Detail text ── */
.mono { font-family: 'SF Mono', monospace; font-size: 11px; }

/* ── Revenue & Cloud Cost Control ───────────────────────────────────────── */
.cloud-cost-shell { min-width: 0; color: var(--text); }
.cloud-cost-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 3px 0 17px; border-bottom: 1px solid var(--border); }
.cloud-cost-hero > div { min-width: 0; }
.cloud-cost-hero > div > span, .cloud-cost-card > header span, .cloud-cost-connect > span, .cloud-cost-api-view article > span { display: block; color: #60a5fa; font-size: 11px; font-weight: 900; letter-spacing: .1em; }
.cloud-cost-hero h2 { margin: 5px 0; font-size: 23px; letter-spacing: -.025em; }
.cloud-cost-hero p { max-width: 760px; color: var(--muted); font-size: 12px; }
.cloud-cost-hero label { min-width: 150px; display: grid; gap: 5px; color: var(--dim); font-size: 11px; font-weight: 800; }
.cloud-cost-hero select { min-height: 36px; border: 1px solid var(--border2); border-radius: 7px; background: var(--surface); color: var(--text); padding: 0 10px; font: inherit; cursor: pointer; }
.cost-period-control { min-width: min(540px, 48vw); display: grid; grid-template-columns: minmax(320px, 1fr) minmax(165px, .55fr); align-items: end; gap: 9px; }
.cost-period-types { min-height: 36px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--border2); border-radius: 8px; background: #0b0f18; }
.cost-period-types button { min-width: 0; border: 0; border-right: 1px solid var(--border); background: transparent; color: var(--dim); padding: 0 9px; font: inherit; font-size: 11px; font-weight: 850; cursor: pointer; white-space: nowrap; }
.cost-period-types button:last-child { border-right: 0; }
.cost-period-types button:hover, .cost-period-types button:focus-visible { background: rgba(30, 58, 95, .24); color: var(--text); }
.cost-period-types button.active { background: var(--accent-dim); color: #bfdbfe; box-shadow: inset 0 -2px var(--accent); }
.cost-period-control label { min-width: 0; }
.cloud-cost-contract { display: flex; align-items: stretch; justify-content: space-between; gap: 10px; margin: 11px 0; }
.cloud-cost-contract > div:last-child { min-width: 220px; display: grid; justify-items: end; align-content: center; padding: 7px 10px; }
.cloud-cost-contract > div:last-child span, .cloud-cost-contract > div:last-child b { display: block; }
.cloud-cost-contract > div:last-child span { color: var(--dim); font-size: 11px; }
.cloud-cost-contract > div:last-child b { margin-top: 3px; color: var(--muted); font-size: 12px; }
.cloud-cost-status { min-width: 320px; display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid var(--border2); border-radius: 8px; background: #0b0f18; }
.cloud-cost-status > i { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--dim); }
.cloud-cost-status.green > i { background: var(--green); box-shadow: 0 0 0 4px #34d39912; }
.cloud-cost-status.amber > i { background: var(--amber); box-shadow: 0 0 0 4px #fbbf2412; }
.cloud-cost-status.rose > i { background: var(--rose); box-shadow: 0 0 0 4px #fb718512; }
.cloud-cost-status span, .cloud-cost-status b, .cloud-cost-status small { display: block; }
.cloud-cost-status b { font-size: 12px; }
.cloud-cost-status small { margin-top: 2px; color: var(--dim); font-size: 11px; }
.cloud-cost-trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; margin-bottom: 12px; border: 1px solid var(--border2); border-radius: 8px; background: #0b0f18; }
.cloud-cost-trust > div { min-height: 66px; padding: 10px 12px; border-right: 1px solid var(--border); }
.cloud-cost-trust > div:last-child { border-right: 0; }
.cloud-cost-trust span, .cloud-cost-trust b, .cloud-cost-trust small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cloud-cost-trust span { color: var(--dim); font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.cloud-cost-trust b { margin: 5px 0 2px; font-size: 12px; }
.cloud-cost-trust small { color: var(--muted); font-size: 11px; }
.cloud-cost-tabs { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; margin-bottom: 12px; border: 1px solid var(--border2); border-radius: 8px; background: #0b0f18; }
.cloud-cost-tabs button { position: relative; min-width: 0; min-height: 52px; border: 0; border-right: 1px solid var(--border); background: transparent; color: var(--muted); padding: 0 16px; font: inherit; font-size: 13px; font-weight: 850; letter-spacing: .01em; text-align: center; cursor: pointer; }
.cloud-cost-tabs button:last-child { border-right: 0; }
.cloud-cost-tabs button::after { content: ""; position: absolute; right: 20%; bottom: 0; left: 20%; height: 3px; border-radius: 3px 3px 0 0; background: transparent; }
.cloud-cost-tabs button:hover, .cloud-cost-tabs button:focus-visible { background: rgba(30, 58, 95, .2); color: var(--text); }
.cloud-cost-tabs button:focus-visible { z-index: 1; outline: 2px solid var(--accent); outline-offset: -3px; }
.cloud-cost-tabs button.active { background: var(--accent-dim); color: #dbeafe; }
.cloud-cost-tabs button.active::after { background: var(--accent); }
.cost-section-heading { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; padding: 11px 13px; border: 1px solid var(--border2); border-radius: 8px; background: #0b0f18; }
.cost-section-heading > div > span { color: #60a5fa; font-size: 11px; font-weight: 900; letter-spacing: .08em; }.cost-section-heading h3 { margin-top: 3px; font-size: 15px; }.cost-section-heading p { margin-top: 3px; color: var(--muted); font-size: 11px; }.cost-section-heading > small { color: var(--dim); font-size: 11px; white-space: nowrap; }
.cloud-cost-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.cloud-cost-kpi { position: relative; min-width: 0; min-height: 112px; overflow: hidden; padding: 13px; border: 1px solid var(--border2); border-radius: 8px; background: var(--surface); }
.cloud-cost-kpi::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 2px; background: #60a5fa; }
.cloud-cost-kpi > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 5px; }
.cloud-cost-kpi span, .cloud-cost-kpi strong, .cloud-cost-kpi small { display: block; }
.cloud-cost-kpi > div > span { min-width: 0; overflow: hidden; color: var(--muted); font-size: 11px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.cloud-cost-kpi > strong { margin: 13px 0 7px; overflow: hidden; font-size: 21px; letter-spacing: -.035em; text-overflow: ellipsis; white-space: nowrap; }
.cloud-cost-kpi > small { overflow: hidden; color: var(--dim); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.cloud-cost-kpi.green::before { background: var(--green); }.cloud-cost-kpi.green > strong { color: #86efac; }
.cloud-cost-kpi.cyan::before { background: var(--cyan); }.cloud-cost-kpi.cyan > strong { color: #67e8f9; }
.cloud-cost-kpi.amber::before { background: var(--amber); }.cloud-cost-kpi.amber > strong { color: #fcd34d; }
.cloud-cost-kpi.purple::before { background: #a78bfa; }.cloud-cost-kpi.purple > strong { color: #c4b5fd; }
.cloud-cost-kpi.rose::before { background: var(--rose); }.cloud-cost-kpi.rose > strong { color: #fda4af; }
.cloud-cost-delta { display: inline-flex; min-height: 21px; align-items: center; border-radius: 999px; background: rgba(148, 163, 184, .1); color: var(--dim); padding: 2px 6px; font-size: 11px; font-weight: 850; white-space: nowrap; }
.cloud-cost-delta.good { background: rgba(52, 211, 153, .12); color: #6ee7b7; }
.cloud-cost-delta.bad { background: rgba(251, 113, 133, .12); color: #fda4af; }
.cloud-cost-decision-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(310px, .75fr); gap: 10px; margin-bottom: 10px; }
.cloud-cost-card { min-width: 0; overflow: hidden; border: 1px solid var(--border2); border-radius: 9px; background: var(--surface); }
.cloud-cost-card > header { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; border-bottom: 1px solid var(--border); }
.cloud-cost-card > header h3 { margin-top: 3px; font-size: 13px; }
.cloud-cost-card > header small { color: var(--dim); font-size: 11px; }
.cloud-cost-chart-wrap { padding: 10px 12px 7px; }
.cloud-cost-trend { display: block; width: 100%; height: 235px; overflow: visible; }
.cloud-cost-trend line { stroke: #263247; stroke-width: 1; stroke-dasharray: 3 6; }
.cloud-cost-trend line.zero { stroke: #516075; stroke-dasharray: none; }
.cloud-cost-trend path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.cloud-cost-trend path.current { stroke: #60a5fa; stroke-width: 2.2; }
.cloud-cost-trend path.previous { stroke: #94a3b8; stroke-width: 1.5; stroke-dasharray: 5 5; opacity: .72; }
.cloud-cost-trend circle { fill: #0f172a; stroke: #93c5fd; stroke-width: 1.5; }
.cloud-cost-trend text { fill: var(--dim); font-size: 11px; }
.cloud-cost-legend { display: flex; justify-content: flex-end; gap: 14px; color: var(--dim); font-size: 11px; }
.cloud-cost-legend span::before { content: ""; display: inline-block; width: 13px; height: 2px; margin: 0 5px 2px 0; background: #60a5fa; }
.cloud-cost-legend .previous::before { background: repeating-linear-gradient(90deg, #94a3b8 0 5px, transparent 5px 8px); }
.cloud-cost-categories { display: grid; grid-template-columns: 1fr 1fr; }
.cloud-cost-category { position: relative; min-height: 132px; display: grid; align-content: center; gap: 6px; border: 0; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: transparent; color: inherit; padding: 12px; text-align: left; cursor: pointer; }
.cloud-cost-category:nth-child(2n) { border-right: 0; }.cloud-cost-category:nth-last-child(-n+2) { border-bottom: 0; }
.cloud-cost-category:hover, .cloud-cost-category:focus-visible, .cloud-cost-category.active { background: rgba(30, 58, 95, .18); }
.cloud-cost-category span { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 850; }
.cloud-cost-category span i { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.cloud-cost-category.blue span i { background: #60a5fa; }.cloud-cost-category.cyan span i { background: #22d3ee; }.cloud-cost-category.green span i { background: #34d399; }.cloud-cost-category.amber span i { background: #fbbf24; }
.cloud-cost-category strong { font-size: 19px; }.cloud-cost-category small { color: var(--dim); font-size: 11px; line-height: 1.4; }
.cloud-cost-category .cloud-cost-delta { position: absolute; top: 10px; right: 10px; }
.cloud-cost-table-wrap { max-width: 100%; overflow: auto; }
.cloud-cost-table { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 11px; }
.cloud-cost-table th { position: sticky; top: 0; z-index: 1; background: #0a101a; color: var(--dim); padding: 9px 10px; font-size: 11px; letter-spacing: .04em; text-align: left; }
.cloud-cost-table td { border-top: 1px solid var(--border); color: var(--muted); padding: 9px 10px; font-size: 11px; }
.cloud-cost-table tr:hover td { background: rgba(30, 41, 59, .32); }
.cloud-cost-table .num { text-align: right; white-space: nowrap; }
.cloud-cost-table td > b, .cloud-cost-table td > small { display: block; }
.cloud-cost-table td > b { color: var(--text); }.cloud-cost-table td > small { margin-top: 2px; color: var(--dim); }
.cloud-cost-table td.cost, .cloud-cost-table td.cost > b { color: #86efc5; }.cloud-cost-table td.credit { color: #fcd34d; }
.cloud-cost-chip { display: inline-flex; border-radius: 999px; background: var(--surface2); color: var(--muted); padding: 3px 7px; font-size: 11px; white-space: nowrap; }
.cloud-cost-chip.blue { background: rgba(59, 130, 246, .12); color: #93c5fd; }.cloud-cost-chip.cyan { background: rgba(34, 211, 238, .12); color: #67e8f9; }.cloud-cost-chip.green { background: rgba(52, 211, 153, .12); color: #6ee7b7; }.cloud-cost-chip.amber { background: rgba(251, 191, 36, .12); color: #fcd34d; }
.cloud-cost-filterbar { display: flex; align-items: center; gap: 5px; overflow-x: auto; margin-bottom: 10px; }
.cloud-cost-filterbar button { min-height: 31px; flex: 0 0 auto; border: 1px solid var(--border2); border-radius: 999px; background: transparent; color: var(--dim); padding: 0 10px; font: inherit; font-size: 11px; cursor: pointer; }
.cloud-cost-filterbar button:hover, .cloud-cost-filterbar button:focus-visible { color: var(--text); }.cloud-cost-filterbar button.active { border-color: var(--accent); background: var(--accent-dim); color: #bfdbfe; }
.cloud-cost-service-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(290px, .6fr); gap: 10px; margin-bottom: 10px; }
.cloud-cost-side-stack { min-width: 0; display: grid; align-content: start; gap: 10px; }
.cloud-cost-projects { display: grid; padding: 4px 11px 9px; }
.cloud-cost-projects > div { min-height: 55px; display: grid; grid-template-columns: minmax(0, 1fr) auto 46px; align-items: center; gap: 8px; border-bottom: 1px solid var(--border); }
.cloud-cost-projects > div:last-child { border-bottom: 0; }.cloud-cost-projects span, .cloud-cost-projects b, .cloud-cost-projects small { display: block; }.cloud-cost-projects b { font-size: 11px; }.cloud-cost-projects small { margin-top: 2px; color: var(--dim); }.cloud-cost-projects strong { color: #86efc5; font-size: 11px; }.cloud-cost-projects i { color: var(--dim); font-size: 11px; font-style: normal; text-align: right; }
.cloud-cost-rule { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 14px; }.cloud-cost-rule b { font-size: 12px; }.cloud-cost-rule span { color: var(--dim); font-size: 11px; text-align: right; }.cloud-cost-rule i { grid-column: 1 / -1; color: var(--dim); font-size: 14px; font-style: normal; text-align: center; }.cloud-cost-rule strong { grid-column: 1 / -1; border-top: 1px solid var(--border); color: #6ee7b7; padding-top: 8px; font-size: 11px; text-align: center; }
.cloud-cost-connect { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; border: 1px solid rgba(251, 191, 36, .25); border-radius: 9px; background: rgba(120, 53, 15, .08); }
.cloud-cost-connect > span, .cloud-cost-connect > h3, .cloud-cost-connect > p { grid-column: 1 / -1; margin-right: 16px; margin-left: 16px; }.cloud-cost-connect > span { margin-top: 16px; color: var(--amber); }.cloud-cost-connect > h3 { margin-top: 5px; font-size: 16px; }.cloud-cost-connect > p { margin-top: 4px; margin-bottom: 14px; color: var(--muted); font-size: 12px; }
.cloud-cost-connect > div { min-height: 105px; display: grid; grid-template-columns: 28px 1fr; align-content: center; gap: 4px 9px; border-top: 1px solid rgba(251, 191, 36, .14); border-right: 1px solid rgba(251, 191, 36, .14); padding: 13px; }.cloud-cost-connect > div:last-child { border-right: 0; }.cloud-cost-connect > div b { grid-row: 1 / 3; color: var(--amber); font-size: 15px; }.cloud-cost-connect > div span { font-size: 11px; font-weight: 850; }.cloud-cost-connect > div i { color: var(--dim); font-size: 11px; font-style: normal; }
.cloud-cost-api-view { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 10px; }.cloud-cost-api-view > article, .cloud-cost-api-view > div { min-width: 0; border: 1px solid var(--border2); border-radius: 9px; background: var(--surface); padding: 16px; }.cloud-cost-api-view h3 { margin: 8px 0 5px; color: #c4b5fd; font-size: 28px; }.cloud-cost-api-view p { color: var(--muted); font-size: 12px; line-height: 1.6; }.cloud-cost-api-view article > div { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 5px; margin-top: 14px; border-top: 1px solid var(--border); padding-top: 11px; }.cloud-cost-api-view article > div b { font-size: 15px; }.cloud-cost-api-view article > div small { align-self: end; color: var(--dim); font-size: 11px; }.cloud-cost-api-view button { min-height: 33px; margin-top: 14px; border: 1px solid var(--border2); border-radius: 6px; background: var(--surface2); color: var(--text); padding: 0 10px; font: inherit; font-size: 11px; cursor: pointer; }.cloud-cost-api-view button:hover, .cloud-cost-api-view button:focus-visible { border-color: var(--accent); }.cloud-cost-api-view > div > div { min-height: 59px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--border); }.cloud-cost-api-view > div > div:last-child { border-bottom: 0; }.cloud-cost-api-view > div span, .cloud-cost-api-view > div b, .cloud-cost-api-view > div small { display: block; }.cloud-cost-api-view > div b { font-size: 12px; }.cloud-cost-api-view > div small { margin-top: 2px; color: var(--dim); font-size: 11px; }.cloud-cost-api-view > div strong { color: #c4b5fd; font-size: 13px; }
.cloud-cost-empty { min-height: 210px; display: grid; place-items: center; align-content: center; gap: 5px; color: var(--dim); text-align: center; }.cloud-cost-empty b { color: var(--muted); font-size: 12px; }.cloud-cost-empty span { font-size: 11px; }.cloud-cost-empty.compact { min-height: 70px; padding: 18px; }
.cloud-cost-error { min-height: 440px; display: grid; place-items: center; align-content: center; gap: 6px; text-align: center; }.cloud-cost-error > span { color: var(--rose); font-size: 11px; font-weight: 900; letter-spacing: .1em; }.cloud-cost-error h2 { font-size: 17px; }.cloud-cost-error p { max-width: 560px; color: var(--muted); font-size: 12px; }.cloud-cost-error button { min-height: 34px; margin-top: 8px; border: 1px solid var(--border2); border-radius: 6px; background: var(--surface2); color: var(--text); padding: 0 10px; font: inherit; font-size: 11px; cursor: pointer; }
.cloud-cost-skeleton > div { width: 70%; }.cloud-cost-skeleton span, .cloud-cost-skeleton b, .cloud-cost-skeleton i, .cloud-cost-skeleton-panel > * { display: block; border-radius: 5px; background: linear-gradient(90deg, #182235 25%, #253149 50%, #182235 75%); background-size: 200% 100%; animation: cloud-cost-shimmer 1.3s linear infinite; }.cloud-cost-skeleton > div > span { width: 100px; height: 8px; }.cloud-cost-skeleton > div > b { width: 190px; height: 24px; margin-top: 11px; }.cloud-cost-skeleton > div > i { width: min(520px, 75%); height: 8px; margin-top: 11px; }.cloud-cost-kpi.cloud-cost-skeleton i { width: 70px; height: 8px; }.cloud-cost-kpi.cloud-cost-skeleton b { width: 120px; height: 24px; margin-top: 15px; }.cloud-cost-kpi.cloud-cost-skeleton span { width: 90px; height: 8px; margin-top: 12px; }.cloud-cost-skeleton-panel { min-height: 330px; padding: 17px; }.cloud-cost-skeleton-panel i { width: 90px; height: 8px; }.cloud-cost-skeleton-panel b { width: 210px; height: 15px; margin-top: 10px; }.cloud-cost-skeleton-panel span { width: 100%; height: 210px; margin-top: 24px; }
@keyframes cloud-cost-shimmer { to { background-position: -200% 0; } }

.billing-gain { color: var(--green); }.billing-loss { color: var(--rose); }.billing-event-unmatched td { background: #7f1d1d18; }.billing-event-time { white-space: nowrap; }.billing-event-sub { color: var(--dim); font-size: 11px; }.billing-muted, .billing-no-data { color: var(--dim); }.billing-no-data { padding: 14px; }.billing-table-card-plain { margin: 0; border: 0; }.billing-unmatched-alert { margin-top: 14px; }

@media (max-width: 1180px) { .cloud-cost-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 930px) { .cloud-cost-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }.cloud-cost-trust > div:nth-child(2n) { border-right: 0; }.cloud-cost-trust > div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }.cloud-cost-decision-grid, .cloud-cost-service-grid { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .cloud-cost-hero { align-items: flex-start; flex-direction: column; }.cost-period-control { width: 100%; min-width: 0; grid-template-columns: 1fr; }.cloud-cost-hero label { width: 100%; }.cloud-cost-contract { flex-direction: column; }.cloud-cost-contract > div:last-child { min-width: 0; justify-items: start; }.cloud-cost-status { min-width: 0; }.cloud-cost-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }.cloud-cost-connect { grid-template-columns: 1fr; }.cloud-cost-connect > div { border-right: 0; }.cloud-cost-categories { grid-template-columns: 1fr; }.cloud-cost-category { border-right: 0; border-bottom: 1px solid var(--border) !important; }.cloud-cost-category:last-child { border-bottom: 0 !important; }.cloud-cost-api-view { grid-template-columns: 1fr; } }
@media (max-width: 440px) { .cost-period-types { grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; border: 0; gap: 5px; background: transparent; }.cost-period-types button { min-height: 34px; border: 1px solid var(--border2) !important; border-radius: 7px; background: #0b0f18; }.cloud-cost-trust, .cloud-cost-kpis { grid-template-columns: 1fr; }.cloud-cost-trust > div { border-right: 0; border-bottom: 1px solid var(--border); }.cloud-cost-trust > div:last-child { border-bottom: 0; }.cloud-cost-kpi { min-height: 102px; }.cloud-cost-projects > div { grid-template-columns: minmax(0, 1fr) auto; }.cloud-cost-projects i { display: none; } }
@media (prefers-reduced-motion: reduce) { .cloud-cost-skeleton span, .cloud-cost-skeleton b, .cloud-cost-skeleton i, .cloud-cost-skeleton-panel > * { animation: none; } }

/* ── Billing comparison ──────────────────────────────────────────────────── */
.billing-analysis-bar { display: flex; align-items: stretch; justify-content: space-between; gap: 10px; margin-bottom: 12px; }.billing-analysis-bar > div:last-child { display: grid; justify-items: end; align-content: center; padding: 7px 10px; }.billing-analysis-bar > div:last-child span { color: var(--dim); font-size: 11px; }.billing-analysis-bar > div:last-child b { color: var(--muted); font-size: 12px; }
.billing-flow-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-bottom: 12px; }.billing-flow-metrics article { min-height: 104px; padding: 13px 14px; border: 1px solid var(--border2); border-radius: 9px; background: var(--surface); }.billing-flow-metrics article > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 7px; }.billing-flow-metrics article > div > span { color: var(--dim); font-size: 11px; font-weight: 800; }.billing-flow-metrics article > strong { display: block; margin: 10px 0 5px; color: var(--green); font-size: 23px; }.billing-flow-metrics article > strong.loss { color: var(--rose); }.billing-flow-metrics article > small { color: var(--dim); font-size: 11px; }
.billing-decision-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .7fr); gap: 12px; margin-bottom: 16px; }.billing-waterfall, .billing-conversion-state { min-width: 0; overflow: hidden; border: 1px solid var(--border2); border-radius: 10px; background: var(--surface); }.billing-waterfall > header, .billing-conversion-state > header { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 13px; border-bottom: 1px solid var(--border); background: #0b0f18; }.billing-waterfall > header span, .billing-conversion-state > header span { color: #60a5fa; font-size: 11px; font-weight: 900; letter-spacing: .06em; }.billing-waterfall > header h3, .billing-conversion-state > header h3 { margin-top: 2px; font-size: 13px; }.billing-waterfall > header small, .billing-conversion-state > header small { color: var(--dim); font-size: 11px; }
.billing-waterfall-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }.billing-waterfall-step { position: relative; min-height: 130px; display: grid; align-content: center; justify-items: center; gap: 5px; padding: 14px 9px; border-right: 1px solid var(--border); text-align: center; }.billing-waterfall-step:last-child { border-right: 0; }.billing-waterfall-step:not(:last-child)::after { content: "→"; position: absolute; right: -10px; top: 50%; z-index: 1; width: 19px; height: 19px; display: grid; place-items: center; border: 1px solid var(--border2); border-radius: 50%; background: var(--surface); color: var(--dim); transform: translateY(-50%); }.billing-waterfall-step span { color: var(--dim); font-size: 11px; }.billing-waterfall-step strong { color: var(--text); font-size: 18px; }.billing-waterfall-step.gain strong { color: var(--green); }.billing-waterfall-step.loss strong { color: var(--rose); }.billing-waterfall-step.closing { background: rgba(30, 58, 95, .18); }.billing-waterfall-step small { color: var(--dim); font-size: 11px; }
.billing-conversion-state > div { min-height: 130px; display: grid; place-items: center; align-content: center; gap: 6px; padding: 20px; text-align: center; }.billing-conversion-state > div > i { width: 34px; height: 3px; border-radius: 999px; background: var(--amber); }.billing-conversion-state h4 { font-size: 13px; }.billing-conversion-state p { max-width: 380px; color: var(--muted); font-size: 11px; }.billing-conversion-state > div > span { color: var(--dim); font-size: 11px; }

@media (max-width: 900px) { .billing-decision-grid { grid-template-columns: 1fr; }.billing-flow-metrics { grid-template-columns: 1fr 1fr; }.billing-flow-metrics article:last-child { grid-column: 1 / -1; } }
@media (max-width: 700px) { .two-col, .billing-flow-metrics { grid-template-columns: 1fr; }.kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.table-card { max-width: 100%; overflow-x: auto; }.billing-flow-metrics article:last-child { grid-column: auto; }.billing-analysis-bar { flex-direction: column; }.billing-analysis-bar > div:last-child { justify-items: start; }.billing-waterfall-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }.billing-waterfall-step { border-bottom: 1px solid var(--border); }.billing-waterfall-step:nth-child(2n) { border-right: 0; }.billing-waterfall-step:nth-last-child(-n+2) { border-bottom: 0; }.billing-waterfall-step::after { display: none !important; } }
@media (max-width: 430px) { .kpi-grid { grid-template-columns: 1fr; } }

/* ── Feedback analytics ──────────────────────────────────────────────────── */
.feedback-hero { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 10px; padding: 16px 18px; border: 1px solid var(--border2); border-radius: 10px; background: linear-gradient(145deg, rgba(30, 58, 95, .22), transparent), var(--surface); }.feedback-hero > div > span { color: #60a5fa; font-size: 11px; font-weight: 900; letter-spacing: .07em; }.feedback-hero h2 { margin-top: 4px; font-size: 20px; }.feedback-hero p { margin-top: 4px; color: var(--muted); font-size: 12px; }.feedback-hero label { min-width: 145px; display: grid; gap: 4px; color: var(--dim); font-size: 11px; }.feedback-hero select { min-height: 35px; border: 1px solid var(--border2); border-radius: 7px; background: #0b0f18; color: var(--text); padding: 0 9px; }
.feedback-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin: 10px 0; }.feedback-kpis article { min-height: 100px; padding: 13px 14px; border: 1px solid var(--border2); border-radius: 9px; background: var(--surface); }.feedback-kpis article.danger { border-color: rgba(251, 113, 133, .3); background: rgba(127, 29, 29, .1); }.feedback-kpis article > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 7px; }.feedback-kpis article > div > span { color: var(--dim); font-size: 11px; font-weight: 800; }.feedback-kpis strong { display: block; margin: 9px 0 5px; font-size: 24px; }.feedback-kpis article.danger strong { color: var(--rose); }.feedback-kpis small { color: var(--dim); font-size: 11px; }
.feedback-breakdown { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 12px; }.feedback-breakdown > div { min-height: 54px; display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 9px 11px; border: 1px solid var(--border2); border-radius: 8px; background: #0b0f18; }.feedback-breakdown > div > span { margin-right: 3px; color: var(--dim); font-size: 11px; font-weight: 800; }.feedback-breakdown b { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 999px; background: var(--surface2); color: var(--muted); font-size: 11px; font-weight: 700; }.feedback-breakdown i { color: #93c5fd; font-style: normal; }.feedback-breakdown small { color: var(--dim); }
@media (max-width: 760px) { .feedback-hero { align-items: flex-start; flex-direction: column; }.feedback-hero label { width: 100%; }.feedback-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }.feedback-breakdown { grid-template-columns: 1fr; } }
@media (max-width: 430px) { .feedback-kpis { grid-template-columns: 1fr; } }

/* ── Retention analytics ─────────────────────────────────────────────────── */
.churn-analysis-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(310px, .75fr); gap: 12px; margin: 10px 0 16px; }.churn-history-state { display: grid; align-content: center; gap: 7px; padding: 18px; border: 1px solid rgba(251, 191, 36, .25); border-radius: 10px; background: rgba(120, 53, 15, .1); }.churn-history-state > span { color: var(--amber); font-size: 11px; font-weight: 900; letter-spacing: .07em; }.churn-history-state h3 { font-size: 15px; }.churn-history-state p { color: var(--muted); font-size: 12px; }.churn-history-state > div { margin-top: 5px; padding-top: 9px; border-top: 1px solid rgba(251, 191, 36, .15); }.churn-history-state b, .churn-history-state small { display: block; }.churn-history-state b { color: var(--text); font-size: 11px; }.churn-history-state small { margin-top: 2px; color: var(--dim); font-size: 11px; }
@media (max-width: 820px) { .churn-analysis-grid { grid-template-columns: 1fr; } }

/* ── Audit Trail controls + diff ─────────────────────────────────────────── */
.audit-toolbar { display: grid; grid-template-columns: 140px 190px minmax(210px, 1fr) auto auto; align-items: center; gap: 8px; margin: 10px 0; }.audit-toolbar > span { justify-self: end; color: var(--dim); font-size: 11px; }.audit-detail-summary { display: block; color: var(--muted); font-size: 12px; }.audit-no-diff { display: inline-flex; margin-top: 4px; padding: 2px 6px; border-radius: 999px; background: var(--surface2); color: var(--dim); font-size: 11px; }.audit-diff { display: grid; gap: 3px; margin-top: 5px; }.audit-diff > span { display: grid; grid-template-columns: 120px minmax(70px, 1fr) auto minmax(70px, 1fr); align-items: center; gap: 5px; padding: 3px 5px; border-radius: 5px; background: #0b0f18; font-size: 11px; }.audit-diff b { color: var(--dim); }.audit-diff del { color: #fda4af; text-decoration: none; }.audit-diff ins { color: #6ee7b7; text-decoration: none; }.audit-diff i { color: var(--dim); font-style: normal; }
@media (max-width: 820px) { .audit-toolbar { grid-template-columns: 1fr 1fr; }.audit-toolbar > span { justify-self: start; }.audit-diff > span { grid-template-columns: 1fr; }.audit-diff i { display: none; } }

/* ── Airline Intake analytics ────────────────────────────────────────────── */
.intake-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 10px; padding: 16px 18px; border: 1px solid var(--border2); border-radius: 10px; background: linear-gradient(145deg, rgba(30, 58, 95, .2), transparent), var(--surface); }.intake-hero > div:first-child > span { color: #60a5fa; font-size: 11px; font-weight: 900; letter-spacing: .07em; }.intake-hero h2 { margin-top: 3px; font-size: 20px; }.intake-hero p { margin-top: 4px; color: var(--muted); font-size: 12px; }.intake-hero .analysis-data-state { flex: 0 0 auto; }
.intake-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; margin-bottom: 10px; }.intake-kpis article { min-height: 92px; padding: 12px 13px; border: 1px solid var(--border2); border-radius: 9px; background: var(--surface); }.intake-kpis article.danger { border-color: rgba(251, 113, 133, .3); background: rgba(127, 29, 29, .1); }.intake-kpis span, .intake-kpis strong, .intake-kpis small { display: block; }.intake-kpis span { color: var(--dim); font-size: 11px; font-weight: 800; }.intake-kpis strong { margin: 7px 0 4px; font-size: 23px; }.intake-kpis article.danger strong { color: var(--rose); }.intake-kpis small { color: var(--dim); font-size: 11px; }
.intake-toolbar { display: grid; grid-template-columns: 180px 210px auto minmax(0, 1fr); align-items: center; gap: 8px; margin-bottom: 10px; }.intake-toolbar > span { justify-self: end; color: var(--dim); font-size: 11px; }
@media (max-width: 960px) { .intake-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }.intake-toolbar { grid-template-columns: 1fr 1fr auto; }.intake-toolbar > span { grid-column: 1 / -1; justify-self: start; } }
@media (max-width: 650px) { .intake-hero { align-items: flex-start; flex-direction: column; }.intake-hero .analysis-data-state { width: 100%; }.intake-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }.intake-toolbar { grid-template-columns: 1fr; }.intake-toolbar > span { grid-column: auto; } }

/* ── Product Analytics ───────────────────────────────────────────────────── */
.analysis-contract-bar { display: flex; align-items: stretch; justify-content: space-between; gap: 10px; margin: -5px 0 14px; }
.analysis-data-state { min-width: 280px; display: flex; align-items: center; gap: 9px; padding: 9px 11px; border: 1px solid var(--border2); border-radius: 8px; background: #0b0f18; }
.analysis-data-state > i { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--dim); }.analysis-data-state.green > i { background: var(--green); }.analysis-data-state.amber > i { background: var(--amber); }.analysis-data-state.rose > i { background: var(--rose); }
.analysis-data-state span, .analysis-data-state b, .analysis-data-state small { display: block; }.analysis-data-state b { color: var(--text); font-size: 12px; }.analysis-data-state small { margin-top: 2px; color: var(--dim); font-size: 11px; }
.analysis-period { min-width: 0; display: grid; justify-items: end; align-content: center; padding: 7px 10px; text-align: right; }.analysis-period span { color: var(--dim); font-size: 11px; font-weight: 800; }.analysis-period b { max-width: 720px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.analysis-delta { display: inline-flex; align-items: center; min-height: 22px; padding: 2px 6px; border-radius: 999px; background: rgba(148, 163, 184, .1); color: var(--dim); font-size: 11px; font-weight: 800; white-space: nowrap; }.analysis-delta.good { background: rgba(52, 211, 153, .12); color: #6ee7b7; }.analysis-delta.bad { background: rgba(251, 113, 133, .12); color: #fda4af; }
.product-hero {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding: 2px 0 18px; border-bottom: 1px solid var(--border); margin-bottom: 16px;
}
.product-eyebrow, .product-card-head span, .product-user-hero > div > span,
.product-user-feature-list > span, .product-user-timeline > span {
  display: block; color: #60a5fa; font-size: 11px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
}
.product-hero h2 { font-size: 22px; line-height: 1.2; letter-spacing: -.025em; margin: 5px 0 5px; }
.product-hero p { color: var(--muted); font-size: 12px; }
.product-scope { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.product-scope select {
  min-height: 34px; margin-left: 6px; border: 1px solid var(--border2); border-radius: 7px;
  background: var(--surface); color: var(--text); padding: 0 28px 0 10px; cursor: pointer;
}
.product-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px #4ade8017; }
.product-live-dot.legacy { background: var(--amber); box-shadow: 0 0 0 4px #fbbf2417; }
.product-notice {
  display: flex; align-items: center; gap: 12px; border: 1px solid #92400e88; border-radius: 8px;
  background: #78350f22; color: #fcd34d; padding: 10px 12px; margin-bottom: 14px; font-size: 11px;
}
.product-notice span { color: #d6b977; }
.product-active-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.product-filter-token, .product-clear {
  border: 1px solid #1d4ed8; border-radius: 999px; background: var(--accent-dim); color: #bfdbfe;
  min-height: 27px; padding: 0 9px; font-size: 11px; cursor: pointer;
}
.product-filter-token span { margin-left: 7px; color: #60a5fa; }
.product-clear { border-color: var(--border2); background: transparent; color: var(--dim); }

.product-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; margin-bottom: 10px; }
.product-kpi {
  position: relative; overflow: hidden; min-height: 104px; border: 1px solid var(--border2);
  border-radius: 9px; background: linear-gradient(145deg, var(--surface), #111827); padding: 13px;
}
.product-kpi::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 2px; background: var(--dim); }
.product-kpi-label { display: flex; align-items: flex-start; justify-content: space-between; gap: 5px; }.product-kpi-label > span { color: var(--muted); font-size: 11px; font-weight: 700; }
.product-kpi strong { display: block; color: var(--text); font-size: 25px; line-height: 1.1; margin: 11px 0 7px; letter-spacing: -.035em; }
.product-kpi small { color: var(--dim); font-size: 11px; }
.product-kpi.blue::before { background: #3b82f6; }.product-kpi.blue strong { color: #93c5fd; }
.product-kpi.cyan::before { background: #22d3ee; }.product-kpi.cyan strong { color: #67e8f9; }
.product-kpi.purple::before { background: #a855f7; }.product-kpi.purple strong { color: #d8b4fe; }
.product-kpi.green::before { background: #22c55e; }.product-kpi.green strong { color: #86efac; }
.product-kpi.amber::before { background: #f59e0b; }.product-kpi.amber strong { color: #fcd34d; }
.product-kpi.rose::before { background: #f43f5e; }.product-kpi.rose strong { color: #fda4af; }

.product-insight-rail {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--border2);
  border-radius: 8px; background: #0b0f18; overflow: hidden; margin-bottom: 15px;
}
.product-insight-rail > div { min-height: 66px; padding: 10px 12px; border-right: 1px solid var(--border); }
.product-insight-rail > div:last-child { border-right: 0; }
.product-insight-rail span { display: block; color: var(--dim); font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.product-insight-rail b { display: block; color: var(--text); font-size: 12px; margin: 5px 0 2px; }
.product-insight-rail small { color: var(--muted); font-size: 11px; }

.product-tabs { display: flex; align-items: center; gap: 2px; border-bottom: 1px solid var(--border2); margin-bottom: 12px; }
.product-tabs button {
  position: relative; border: 0; background: transparent; color: var(--dim); min-height: 38px;
  padding: 0 14px; font-size: 11px; font-weight: 750; cursor: pointer;
}
.product-tabs button::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: transparent; }
.product-tabs button:hover { color: var(--text); }
.product-tabs button.active { color: #bfdbfe; }
.product-tabs button.active::after { background: var(--accent); }

.product-grid { display: grid; gap: 12px; }
.product-grid-overview { grid-template-columns: minmax(0, 1.55fr) minmax(310px, .75fr); }
.product-card {
  min-width: 0; border: 1px solid var(--border2); border-radius: 9px; background: var(--surface);
  overflow: hidden;
}
.product-card-head { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.product-card-head h3 { font-size: 12.5px; margin-top: 3px; }
.product-card-head small { color: var(--dim); font-size: 11px; }
.product-card-head button, .product-detail-head button {
  border: 1px solid var(--border2); border-radius: 6px; background: var(--surface2); color: var(--muted);
  padding: 5px 8px; font-size: 11px; cursor: pointer;
}
.product-card-head button:hover, .product-detail-head button:hover { border-color: var(--accent); color: var(--text); }
.product-trend-card { min-height: 314px; }
.product-chart-wrap { padding: 12px 14px 8px; }
.product-trend { display: block; width: 100%; height: 225px; overflow: visible; }
.product-trend .grid-line { stroke: #263146; stroke-width: 1; stroke-dasharray: 3 5; }
.product-trend .event-bar { fill: #22d3ee24; }
.product-trend .user-area { fill: url(#none); fill: #3b82f617; }
.product-trend .user-line { fill: none; stroke: #60a5fa; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.product-trend .product-previous-line { fill: none; stroke: #94a3b8; stroke-width: 1.5; stroke-dasharray: 5 5; opacity: .8; }
.product-trend .user-dot { fill: #0f172a; stroke: #93c5fd; stroke-width: 1.6; }
.product-trend text { fill: var(--dim); font-size: 11px; }
.product-chart-legend { display: flex; justify-content: flex-end; gap: 16px; color: var(--dim); font-size: 11px; }
.product-chart-legend span::before { content: ""; display: inline-block; width: 13px; height: 2px; margin: 0 5px 2px 0; background: #60a5fa; }
.product-chart-legend .previous::before { background: repeating-linear-gradient(90deg, #94a3b8 0 5px, transparent 5px 8px); }
.product-chart-legend .events::before { height: 7px; background: #22d3ee44; }

.product-funnel { display: grid; gap: 7px; padding: 13px 14px 15px; }
.product-funnel button {
  width: var(--funnel-w); min-width: 190px; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center; gap: 9px; border: 1px solid #1d4ed855; border-radius: 6px;
  background: linear-gradient(90deg, #1e3a5f88, #111827); color: var(--text); padding: 8px 10px;
  cursor: pointer; text-align: left; transition: border-color .16s, background .16s;
}
.product-funnel button:hover { border-color: #3b82f6; background: linear-gradient(90deg, #1e40af66, #111827); }
.product-funnel button > span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; background: #2563eb33; color: #93c5fd; font-size: 11px; font-weight: 800; }
.product-funnel b { display: block; font-size: 11px; }.product-funnel small { display: block; color: var(--dim); font-size: 11px; }
.product-funnel strong { font-size: 14px; }

.product-feature-card { min-height: 350px; }
.product-feature-bars { display: grid; gap: 3px; padding: 10px 14px 13px; }
.product-feature-bars button {
  display: grid; grid-template-columns: 115px minmax(80px, 1fr) 54px; align-items: center; gap: 10px;
  border: 0; border-radius: 6px; background: transparent; color: var(--text); padding: 6px; cursor: pointer; text-align: left;
}
.product-feature-bars button:hover { background: #1e293b66; }
.feature-name b, .feature-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feature-name b { font-size: 11px; }.feature-name small { color: var(--dim); font-size: 11px; }
.feature-track { height: 6px; border-radius: 999px; overflow: hidden; background: #0b0f18; }
.feature-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2563eb, #22d3ee); }
.feature-metric { text-align: right; }.feature-metric b, .feature-metric small { display: block; }
.feature-metric b { font-size: 11px; }.feature-metric small { color: var(--dim); font-size: 11px; }

.product-signal-list { display: grid; padding: 7px 10px 10px; }
.product-signal-list > button {
  display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 9px;
  border: 0; border-bottom: 1px solid var(--border); background: transparent; color: var(--text); padding: 8px 4px; cursor: pointer; text-align: left;
}
.product-signal-list > button:last-child { border-bottom: 0; }
.product-signal-list > button:hover { background: #1e293b55; }
.product-avatar { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #334155; border-radius: 7px; background: #1e293b; color: #bfdbfe; font-size: 11px; font-style: normal; font-weight: 800; flex: 0 0 auto; }
.product-avatar.large { width: 42px; height: 42px; font-size: 12px; border-radius: 10px; }
.product-signal-list b, .product-signal-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-signal-list b { font-size: 11px; }.product-signal-list small { color: var(--dim); font-size: 11px; }
.product-signal-list i { border-radius: 999px; background: var(--surface2); color: var(--muted); padding: 3px 7px; font-size: 11px; font-style: normal; }
.product-signal-list i.rose { background: #7f1d1d44; color: #fda4af; }.product-signal-list i.blue { background: #1e3a5f; color: #93c5fd; }
.product-signal-list i.amber { background: #78350f44; color: #fcd34d; }.product-signal-list i.green { background: #14532d44; color: #86efac; }

.product-recent-card { margin-top: 12px; }
.product-cohort-card { margin-top: 12px; }.product-cohort-summary { display: grid; grid-template-columns: 150px 150px minmax(0, 1fr); align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); }.product-cohort-summary > div { display: grid; grid-template-columns: auto auto; align-items: center; gap: 4px 7px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 7px; background: #0b0f18; }.product-cohort-summary > div > span { color: #60a5fa; font-size: 11px; font-weight: 900; }.product-cohort-summary > div > strong { font-size: 18px; }.product-cohort-summary > div > small { grid-column: 1 / -1; color: var(--dim); font-size: 11px; }.product-cohort-summary > p { color: var(--muted); font-size: 11px; }.product-cohort-summary > p b { color: var(--amber); }.product-cohort-rows { display: grid; padding: 7px 14px 12px; }.product-cohort-rows > div { min-height: 38px; display: grid; grid-template-columns: 80px 38px minmax(70px, 1fr) 60px minmax(70px, 1fr) 68px; align-items: center; gap: 7px; border-bottom: 1px solid var(--border); }.product-cohort-rows > div:last-child { border-bottom: 0; }.product-cohort-rows span, .product-cohort-rows b, .product-cohort-rows small { font-size: 11px; }.product-cohort-rows span, .product-cohort-rows small { color: var(--dim); }.product-cohort-rows > div > i { height: 6px; overflow: hidden; border-radius: 999px; background: #0b0f18; }.product-cohort-rows em { display: block; height: 100%; border-radius: inherit; background: #60a5fa; }.product-cohort-rows i.d30 em { background: #a78bfa; }
.product-recent-list { display: grid; }
.product-recent-list > button {
  display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  border: 0; border-bottom: 1px solid var(--border); background: transparent; color: var(--text);
  padding: 9px 14px; text-align: left; cursor: pointer;
}
.product-recent-list > button:last-child { border-bottom: 0; }.product-recent-list > button:hover { background: #1e293b55; }
.product-event-mark { width: 7px; height: 7px; border-radius: 50%; background: #3b82f6; box-shadow: 0 0 0 3px #3b82f617; }
.product-event-mark.bad { background: #fb7185; box-shadow: 0 0 0 3px #fb718517; }
.product-recent-list b, .product-recent-list small { display: block; }.product-recent-list b { font-size: 11px; }
.product-recent-list small { color: var(--dim); font-size: 11px; }.product-recent-list time { color: var(--dim); font-size: 11px; }

.product-table-card { overflow: hidden; }
.product-table-scroll { overflow: auto; max-width: 100%; }
.product-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.product-table th { position: sticky; top: 0; z-index: 1; background: #0b0f18; color: var(--dim); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.product-table th, .product-table td { border-bottom: 1px solid var(--border); padding: 9px 10px; text-align: left; vertical-align: middle; }
.product-table tbody tr:last-child td { border-bottom: 0; }.product-table tbody tr:hover td { background: #1e293b44; }
.product-table tbody tr.selected td { background: #1e3a5f55; }
.product-table td > b, .product-table td > small { display: block; white-space: nowrap; }
.product-table td > small { color: var(--dim); font-size: 11px; }
.product-mini-bar { display: inline-block; vertical-align: middle; width: 64px; height: 5px; border-radius: 999px; overflow: hidden; background: #0b0f18; margin-right: 5px; }
.product-mini-bar i { display: block; height: 100%; background: #3b82f6; }
.product-outcome { display: inline-flex; min-width: 24px; justify-content: center; border-radius: 999px; background: var(--surface2); color: var(--muted); padding: 2px 5px; font-size: 11px; margin-right: 3px; }
.product-outcome.ok { background: #14532d44; color: #86efac; }.product-outcome.bad { background: #7f1d1d55; color: #fda4af; }
.product-outcome.warn { background: #78350f55; color: #fcd34d; }
.product-row-open, .product-user-link, .product-feature-link {
  border: 0; background: transparent; color: #60a5fa; padding: 0; font-size: 11px; cursor: pointer; text-align: left;
}
.product-row-open { border: 1px solid var(--border2); border-radius: 5px; background: var(--surface2); color: var(--muted); padding: 4px 7px; white-space: nowrap; }
.product-row-open:hover, .product-user-link:hover, .product-feature-link:hover { color: #bfdbfe; }
.product-context { display: flex; flex-wrap: wrap; gap: 3px; min-width: 160px; }
.product-context span { border-radius: 4px; background: var(--surface2); color: var(--dim); padding: 2px 4px; font-size: 11px; }
.product-event-table td { white-space: nowrap; }.product-event-table td:last-child { white-space: normal; }

.product-detail-strip { margin-top: 12px; padding-bottom: 14px; }
.product-detail-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 14px; }
.product-detail-head span { color: var(--dim); font-size: 11px; text-transform: uppercase; }.product-detail-head h3 { font-size: 17px; margin-top: 2px; }
.product-detail-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 0 14px 12px; }
.product-detail-metrics div { border: 1px solid var(--border); border-radius: 7px; background: #0b0f18; padding: 9px; }
.product-detail-metrics span, .product-detail-metrics b { display: block; }.product-detail-metrics span { color: var(--dim); font-size: 11px; }.product-detail-metrics b { font-size: 15px; margin-top: 4px; }
.product-detail-users { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 0 14px; }
.product-detail-users > span { color: var(--dim); font-size: 11px; margin-right: 4px; }
.product-detail-users button { border: 1px solid var(--border); border-radius: 6px; background: var(--surface2); color: var(--text); padding: 5px 7px; font-size: 11px; cursor: pointer; }
.product-detail-users button small { color: var(--dim); margin-left: 5px; }

.product-user-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, .7fr); gap: 12px; align-items: start; }
.product-user-head label { min-width: 250px; display: flex; align-items: center; gap: 7px; border: 1px solid var(--border2); border-radius: 7px; background: #0b0f18; padding: 0 9px; }
.product-user-head svg { width: 14px; height: 14px; fill: none; stroke: var(--dim); stroke-width: 2; }
.product-user-head input { width: 100%; min-height: 32px; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 11px; }
.product-table tr.clickable { cursor: pointer; }
.product-user-cell { display: flex; align-items: center; gap: 8px; min-width: 180px; }
.product-user-cell > span:last-child { min-width: 0; }.product-user-cell b, .product-user-cell small { display: block; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-user-cell small { color: var(--dim); font-size: 11px; }
.product-user-empty { min-height: 260px; display: grid; place-items: center; padding: 24px; text-align: center; }
.product-user-empty span { color: #60a5fa; font-size: 11px; letter-spacing: .1em; }.product-user-empty h3 { margin: 6px 0; }.product-user-empty p { color: var(--dim); font-size: 11px; }
.product-user-detail { position: sticky; top: 66px; max-height: calc(100vh - 92px); overflow: auto; }
.product-user-hero { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 14px; border-bottom: 1px solid var(--border); }
.product-user-hero h3 { font-size: 15px; margin-top: 2px; }.product-user-hero p { color: var(--dim); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-user-hero > button { align-self: start; border: 0; background: transparent; color: var(--dim); font-size: 16px; cursor: pointer; }
.product-user-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--border); }
.product-user-metrics > div { padding: 10px; border-right: 1px solid var(--border); }.product-user-metrics > div:last-child { border-right: 0; }
.product-user-metrics span, .product-user-metrics b { display: block; }.product-user-metrics span { color: var(--dim); font-size: 11px; }.product-user-metrics b { font-size: 13px; margin-top: 3px; }
.product-user-feature-list, .product-user-timeline { padding: 12px 14px; border-bottom: 1px solid var(--border); }
.product-user-feature-list > span, .product-user-timeline > span { margin-bottom: 8px; color: var(--dim); }
.product-user-feature-list button { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--border); border-radius: 5px; background: #0b0f18; color: var(--text); padding: 4px 6px; margin: 0 4px 4px 0; font-size: 11px; cursor: pointer; }
.product-user-feature-list button small { color: var(--dim); }.product-user-timeline { border-bottom: 0; }
.product-user-timeline .product-recent-list > button { padding: 8px 0; grid-template-columns: 8px minmax(0, 1fr); }
.product-user-timeline .product-recent-list time { grid-column: 2; }

.product-empty { min-height: 120px; display: grid; place-items: center; align-content: center; gap: 9px; color: var(--dim); text-align: center; padding: 20px; }
.product-empty span { width: 34px; height: 3px; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--cyan)); opacity: .55; }
.product-empty p { max-width: 360px; font-size: 11px; }

.product-tabs button:focus-visible, .product-card button:focus-visible, .product-scope select:focus-visible,
.product-user-head input:focus-visible, .product-filter-token:focus-visible, .product-clear:focus-visible {
  outline: 2px solid #60a5fa; outline-offset: 2px;
}

@media (max-width: 1320px) {
  .product-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-grid-overview { grid-template-columns: minmax(0, 1.35fr) minmax(290px, .75fr); }
  .product-user-layout { grid-template-columns: 1fr; }
  .product-user-detail { position: static; max-height: none; }
}
@media (max-width: 960px) {
  .product-grid-overview { grid-template-columns: 1fr; }
  .product-insight-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-insight-rail > div:nth-child(2n) { border-right: 0; }.product-insight-rail > div { border-bottom: 1px solid var(--border); }.product-insight-rail > div:last-child { border-bottom: 0; }
  .analysis-contract-bar { align-items: stretch; flex-direction: column; }.analysis-period { justify-items: start; text-align: left; }.analysis-period b { white-space: normal; }
}
@media (max-width: 700px) {
  .product-hero { align-items: flex-start; flex-direction: column; }
  .product-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-insight-rail, .product-detail-metrics { grid-template-columns: 1fr; }
  .product-insight-rail > div { border-right: 0; border-bottom: 1px solid var(--border); }
  .product-tabs { overflow-x: auto; }.product-tabs button { white-space: nowrap; }
  .product-feature-bars button { grid-template-columns: 92px minmax(60px, 1fr) 46px; }
  .product-user-head { align-items: flex-start; flex-direction: column; }.product-user-head label { min-width: 100%; }
  .product-user-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-cohort-summary { grid-template-columns: 1fr 1fr; }.product-cohort-summary > p { grid-column: 1 / -1; }.product-cohort-rows { overflow-x: auto; }.product-cohort-rows > div { min-width: 620px; }
}
@media (prefers-reduced-motion: reduce) {
  .product-funnel button, .product-feature-bars button { transition: none; }
}

/* API Usage / FinOps cockpit */
.usage-shell {
  width: min(100%, 1560px);
  margin: 0 auto;
  color: #dce7f5;
  font-variant-numeric: tabular-nums;
}
.usage-hero {
  position: relative;
  isolation: isolate;
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  padding: 20px 22px;
  border: 1px solid #263247;
  border-radius: 12px;
  background:
    radial-gradient(circle at 82% -30%, rgba(45, 212, 191, .14), transparent 42%),
    linear-gradient(135deg, #111827, #0d1420 72%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .18);
}
.usage-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .2;
  background-image:
    linear-gradient(rgba(148, 163, 184, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .12) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(90deg, transparent, #000 70%);
}
.usage-eyebrow, .usage-card > header span {
  display: block;
  color: #6e829e;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
}
.usage-hero h2 { margin-top: 5px; font-size: 25px; line-height: 1.08; letter-spacing: -.035em; }
.usage-hero p { max-width: 680px; margin-top: 7px; color: #8ea0b8; font-size: 11px; }
.usage-hero-controls { display: flex; align-items: stretch; gap: 9px; flex: 0 0 auto; }
.usage-month-control, .usage-verified {
  min-width: 142px;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 8px;
  background: rgba(6, 11, 20, .62);
}
.usage-month-control { display: grid; gap: 3px; padding: 8px 10px 7px; }
.usage-month-control > span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.usage-month-control select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #dbeafe;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}
.usage-verified { display: flex; align-items: center; gap: 9px; padding: 9px 11px; }
.usage-verified > i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 5px rgba(52, 211, 153, .1), 0 0 18px rgba(52, 211, 153, .48);
}
.usage-verified span, .usage-verified b, .usage-verified small { display: block; }
.usage-verified b { font-size: 11px; }
.usage-verified small { margin-top: 2px; color: #64748b; font-size: 11px; }
.usage-banner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
  padding: 7px 10px 7px 12px;
  border-radius: 7px;
  font-size: 11px;
}
.usage-banner.info { border: 1px solid rgba(59, 130, 246, .22); background: rgba(30, 58, 95, .3); color: #9cc3fb; }
.usage-banner.danger { border: 1px solid rgba(251, 113, 133, .23); background: rgba(127, 29, 29, .18); color: #fda4af; }
.usage-banner button {
  border: 1px solid currentColor;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  padding: 4px 7px;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.usage-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 10px 0;
  border: 1px solid #202b3d;
  border-radius: 8px;
  overflow: hidden;
  background: #0b111c;
}
.usage-trust-strip > div { min-height: 55px; padding: 9px 12px; border-right: 1px solid #202b3d; }
.usage-trust-strip > div:last-child { border-right: 0; }
.usage-trust-strip span, .usage-trust-strip b, .usage-trust-strip small { display: block; }
.usage-trust-strip span { color: #52637b; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.usage-trust-strip b { margin-top: 3px; color: #cbd8e8; font-size: 11px; }
.usage-trust-strip b.warn { color: #fbbf24; }
.usage-trust-strip small { margin-top: 1px; color: #5f7188; font-size: 11px; }

.usage-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.usage-kpi {
  position: relative;
  min-height: 108px;
  overflow: hidden;
  padding: 12px 13px;
  border: 1px solid #263247;
  border-radius: 9px;
  background: linear-gradient(150deg, #161e2c, #121925);
}
.usage-kpi::after {
  content: "";
  position: absolute;
  inset: auto -14px -30px auto;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--usage-tone, #60a5fa);
  opacity: .055;
  filter: blur(2px);
}
.usage-kpi.mint { --usage-tone: #34d399; }
.usage-kpi.blue { --usage-tone: #60a5fa; }
.usage-kpi.violet { --usage-tone: #a78bfa; }
.usage-kpi.cyan { --usage-tone: #22d3ee; }
.usage-kpi.amber { --usage-tone: #fbbf24; }
.usage-kpi.rose { --usage-tone: #fb7185; }
.usage-kpi.green { --usage-tone: #4ade80; }
.usage-kpi-head { min-height: 19px; display: flex; align-items: flex-start; justify-content: space-between; gap: 5px; }
.usage-kpi-head > span { color: #7f91a8; font-size: 11px; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.usage-kpi > strong {
  display: block;
  margin: 10px 0 7px;
  color: var(--usage-tone, #e2e8f0);
  font-size: clamp(19px, 1.45vw, 26px);
  line-height: 1;
  letter-spacing: -.045em;
}
.usage-kpi > small { color: #63758d; font-size: 11px; }
.usage-kpi > small span { color: #8497ae; }
.usage-delta { display: inline-flex; align-items: center; white-space: nowrap; border-radius: 999px; padding: 2px 5px; font-size: 11px; font-weight: 800; }
.usage-delta small { margin-left: 3px; color: inherit; opacity: .65; }
.usage-delta.up { background: rgba(251, 113, 133, .1); color: #fda4af; }
.usage-delta.down { background: rgba(52, 211, 153, .1); color: #6ee7b7; }
.usage-delta.neutral { background: rgba(148, 163, 184, .09); color: #8091a7; }

.usage-budget-panel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 10px; border: 1px solid #263247; border-radius: 9px; overflow: hidden; background: #0b111c; }.usage-budget-panel > article { min-height: 82px; padding: 11px 12px; border-right: 1px solid #263247; }.usage-budget-panel > article:nth-child(4) { border-right: 0; }.usage-budget-panel article > span, .usage-budget-panel article > strong, .usage-budget-panel article > small { display: block; }.usage-budget-panel article > span { color: #7f91a8; font-size: 11px; font-weight: 800; }.usage-budget-panel article > strong { margin: 6px 0 3px; color: #dbeafe; font-size: 18px; }.usage-budget-panel article > small { color: #71839a; font-size: 11px; }.usage-budget-panel article.danger strong, .usage-budget-panel article.warning strong { color: #fda4af; }.usage-budget-panel > footer { grid-column: 1 / -1; min-height: 39px; display: flex; align-items: center; gap: 9px; padding: 7px 12px; border-top: 1px solid #263247; background: rgba(120, 53, 15, .08); }.usage-budget-panel > footer span { color: #fbbf24; font-size: 11px; font-weight: 900; }.usage-budget-panel > footer b { min-width: 0; flex: 1; color: #9aabc0; font-size: 11px; }.usage-budget-panel > footer button { border: 1px solid #334155; border-radius: 6px; background: #172033; color: #bfdbfe; padding: 5px 8px; font: inherit; font-size: 11px; cursor: pointer; }

.usage-tabs { display: flex; align-items: center; gap: 2px; margin-bottom: 10px; border-bottom: 1px solid #263247; }
.usage-tabs button {
  position: relative;
  border: 0;
  background: transparent;
  color: #66788f;
  padding: 9px 13px;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.usage-tabs button::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: -1px; height: 2px; background: transparent; }
.usage-tabs button:hover { color: #cbd8e8; }
.usage-tabs button.active { color: #dbeafe; }
.usage-tabs button.active::after { background: #34d399; }
.usage-month-control select:focus-visible, .usage-tabs button:focus-visible,
.usage-banner button:focus-visible, .usage-error button:focus-visible,
.usage-source-list a:focus-visible { outline: 2px solid #5eead4; outline-offset: 2px; }

.usage-grid { display: grid; gap: 10px; }
.usage-overview-grid { grid-template-columns: minmax(0, 1.55fr) minmax(300px, .72fr); align-items: stretch; }
.usage-card { min-width: 0; overflow: hidden; border: 1px solid #263247; border-radius: 10px; background: #121925; }
.usage-card > header {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 13px;
  border-bottom: 1px solid #202b3d;
  background: rgba(8, 13, 22, .22);
}
.usage-card > header h3 { margin-top: 3px; font-size: 12px; letter-spacing: -.01em; }
.usage-card > header > small { color: #596b82; font-size: 11px; text-align: right; }
.usage-chart-card, .usage-provider-card { min-height: 320px; }
.usage-feature-card, .usage-health-card { min-height: 280px; }
.usage-chart-wrap { padding: 10px 12px 7px; }
.usage-trend { display: block; width: 100%; height: 232px; overflow: visible; }
.usage-grid line { stroke: #263247; stroke-width: 1; stroke-dasharray: 3 6; }
.usage-trend text { fill: #55667d; font-size: 11px; }
.usage-call-bar { fill: rgba(96, 165, 250, .24); stroke: rgba(96, 165, 250, .12); }
.usage-cost-line { fill: none; stroke: #34d399; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.usage-cost-dot { fill: #0f172a; stroke: #6ee7b7; stroke-width: 1.4; }
.usage-chart-legend { display: flex; justify-content: flex-end; gap: 15px; color: #5f7188; font-size: 11px; }
.usage-chart-legend span::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 6px;
  margin: 0 5px 1px 0;
  border-radius: 2px;
  background: rgba(96, 165, 250, .28);
}
.usage-chart-legend .cost::before { height: 2px; background: #34d399; }
.usage-chart-empty { min-height: 250px; display: grid; place-items: center; align-content: center; gap: 5px; color: #65778e; text-align: center; }
.usage-chart-empty i { width: 38px; height: 3px; border-radius: 999px; background: #34d399; opacity: .5; }
.usage-chart-empty b { color: #aebdd0; font-size: 11px; }
.usage-chart-empty span { font-size: 11px; }

.usage-provider-body { min-height: 264px; display: grid; grid-template-rows: auto 1fr; justify-items: center; gap: 12px; padding: 18px 14px 13px; }
.usage-ring { width: 128px; height: 128px; display: grid; place-items: center; border-radius: 50%; box-shadow: 0 0 28px rgba(52, 211, 153, .05); }
.usage-ring > div {
  width: 91px;
  height: 91px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid #263247;
  border-radius: 50%;
  background: #0d1420;
}
.usage-ring strong, .usage-ring span { display: block; }
.usage-ring strong { font-size: 17px; letter-spacing: -.03em; }
.usage-ring span { margin-top: 2px; color: #65778e; font-size: 11px; text-transform: uppercase; }
.usage-provider-list { width: 100%; display: grid; align-content: start; }
.usage-provider-list > div { display: grid; grid-template-columns: 7px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 39px; border-top: 1px solid #202b3d; }
.usage-provider-list > div > i { width: 7px; height: 7px; border-radius: 50%; }
.usage-provider-list span, .usage-provider-list b, .usage-provider-list small { display: block; }
.usage-provider-list b { font-size: 11px; }
.usage-provider-list small { color: #607188; font-size: 11px; }
.usage-provider-list > div > strong { color: #aebdd0; font-size: 11px; }
.usage-mini-empty { display: block !important; padding: 18px 0; color: #607188; text-align: center; font-size: 11px; }

.usage-feature-bars { display: grid; padding: 6px 12px 10px; }
.usage-feature-row {
  min-height: 48px;
  display: grid;
  grid-template-columns: 25px minmax(120px, .8fr) minmax(100px, 1fr) 70px;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid #202b3d;
}
.usage-feature-row:last-child { border-bottom: 0; }
.usage-feature-rank { color: #4e6078; font: 700 8px ui-monospace, SFMono-Regular, Menlo, monospace; }
.usage-feature-name b, .usage-feature-name small { display: block; }
.usage-feature-name b { font-size: 11px; }
.usage-feature-name small { color: #5e7087; font-size: 11px; }
.usage-feature-track { height: 5px; overflow: hidden; border-radius: 999px; background: #0a101a; }
.usage-feature-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2563eb, #34d399); }
.usage-feature-row > strong { color: #a9f3d6; font-size: 11px; text-align: right; }
.usage-feature-empty { min-height: 220px; display: grid; place-items: center; align-content: center; gap: 5px; padding: 20px; text-align: center; }
.usage-feature-empty span { color: #4d6078; font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.usage-feature-empty b { font-size: 11px; }
.usage-feature-empty p { max-width: 430px; color: #64758b; font-size: 11px; }

.usage-integrity { display: grid; padding: 7px 12px; }
.usage-integrity > div { min-height: 47px; display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 9px; border-bottom: 1px solid #202b3d; }
.usage-integrity > div:last-child { border-bottom: 0; }
.usage-integrity > div > i { width: 7px; height: 7px; border-radius: 50%; }
.usage-integrity i.good { background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .08); }
.usage-integrity i.warn { background: #fbbf24; box-shadow: 0 0 0 4px rgba(251, 191, 36, .08); }
.usage-integrity i.neutral { background: #64748b; }
.usage-integrity span, .usage-integrity b, .usage-integrity small { display: block; }
.usage-integrity b { font-size: 11px; }
.usage-integrity small { color: #607188; font-size: 11px; }
.usage-integrity > div > strong { color: #c2cfdf; font-size: 11px; }
.usage-integrity-note { margin: 0 12px 12px; padding: 8px 9px; border: 1px solid rgba(59, 130, 246, .14); border-radius: 6px; background: rgba(30, 58, 95, .16); color: #71849b; font-size: 11px; }

.usage-table-card { min-height: 320px; }
.usage-table-scroll { max-width: 100%; overflow: auto; }
.usage-table { min-width: 760px; font-size: 11px; }
.usage-table th { position: sticky; top: 0; z-index: 1; padding: 8px 10px; background: #0a101a; color: #5a6c83; font-size: 11px; letter-spacing: .06em; }
.usage-table td { padding: 9px 10px; border-bottom: 1px solid #202b3d; color: #90a1b6; font-size: 11px; }
.usage-table tr:hover td { background: rgba(30, 41, 59, .38); }
.usage-table .num { text-align: right; white-space: nowrap; }
.usage-table .cost { color: #86efc5; font-weight: 800; }
.usage-table td > b, .usage-table td > small { display: block; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.usage-unpriced { margin-top: 2px; color: #fb7185; font-size: 11px; }
.usage-provider-pill { display: inline-flex; border-radius: 999px; padding: 2px 6px; background: #1e293b; color: #94a3b8; font-size: 11px; }
.usage-provider-pill.google-ai { background: rgba(37, 99, 235, .15); color: #93c5fd; }
.usage-provider-pill.openai { background: rgba(5, 150, 105, .15); color: #6ee7b7; }
.usage-provider-pill.google-cloud { background: rgba(180, 83, 9, .15); color: #fcd34d; }
.usage-table-empty { padding: 32px; color: #5f7188; text-align: center; }
.usage-user { min-width: 190px; display: flex; align-items: center; gap: 8px; }
.usage-user > i {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #334155;
  border-radius: 7px;
  background: #172033;
  color: #93c5fd;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}
.usage-user b, .usage-user small { display: block; max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usage-user b { color: #cbd5e1; font-size: 11px; }
.usage-user small { color: #596b82; font-size: 11px; }
.usage-chip-line { display: flex; flex-wrap: wrap; gap: 3px; max-width: 260px; }
.usage-chip-line i { max-width: 135px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-radius: 4px; background: #1a2434; color: #8295ab; padding: 2px 4px; font-size: 11px; font-style: normal; }

.usage-method-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 10px; }
.usage-method-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.usage-method-steps > div { min-height: 96px; display: grid; grid-template-columns: 27px 1fr; gap: 9px; padding: 13px; border-right: 1px solid #202b3d; border-bottom: 1px solid #202b3d; }
.usage-method-steps > div:nth-child(2n) { border-right: 0; }
.usage-method-steps > div:nth-last-child(-n+2) { border-bottom: 0; }
.usage-method-steps > div > b { color: #34d399; font: 800 9px ui-monospace, SFMono-Regular, Menlo, monospace; }
.usage-method-steps strong, .usage-method-steps small { display: block; }
.usage-method-steps strong { font-size: 11px; }
.usage-method-steps small { margin-top: 4px; color: #66788f; font-size: 11px; line-height: 1.55; }
.usage-source-list { display: grid; padding: 6px 10px 10px; }
.usage-source-list a { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid #202b3d; color: inherit; text-decoration: none; }
.usage-source-list a:last-child { border-bottom: 0; }
.usage-source-list a:hover b { color: #5eead4; }
.usage-source-list span, .usage-source-list b, .usage-source-list small { display: block; }
.usage-source-list b { font-size: 11px; }
.usage-source-list small { max-width: 260px; overflow: hidden; text-overflow: ellipsis; color: #5f7188; font-size: 11px; white-space: nowrap; }
.usage-source-list i { color: #5eead4; font-size: 12px; font-style: normal; }
.usage-price-card { grid-column: 1 / -1; }
.usage-price-note { padding: 9px 12px; border-top: 1px solid #202b3d; background: #0c131f; color: #66788f; font-size: 11px; }

.usage-error {
  min-height: 420px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  border: 1px solid #263247;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 10%, rgba(251, 113, 133, .08), transparent 40%), #101722;
  text-align: center;
}
.usage-error > span { color: #fb7185; font-size: 11px; font-weight: 900; letter-spacing: .13em; }
.usage-error h2 { font-size: 16px; }
.usage-error p { max-width: 500px; color: #6f8198; font-size: 11px; }
.usage-error button { margin-top: 7px; border: 1px solid #334155; border-radius: 6px; background: #172033; color: #cbd5e1; padding: 6px 10px; font: inherit; font-size: 11px; cursor: pointer; }
.usage-skeleton-hero > div { width: 70%; }
.usage-skeleton-hero span, .usage-skeleton-hero b, .usage-skeleton-hero i,
.usage-skeleton i, .usage-skeleton b, .usage-skeleton span, .usage-skeleton-panel > * {
  display: block;
  border-radius: 999px;
  background: linear-gradient(90deg, #1d2736, #2a374a, #1d2736);
  background-size: 200% 100%;
  animation: usage-shimmer 1.3s linear infinite;
}
.usage-skeleton-hero span { width: 90px; height: 7px; }
.usage-skeleton-hero b { width: 180px; height: 22px; margin-top: 12px; }
.usage-skeleton-hero i { width: min(520px, 80%); height: 8px; margin-top: 12px; }
.usage-skeleton i { width: 70px; height: 7px; }
.usage-skeleton b { width: 120px; height: 24px; margin-top: 15px; }
.usage-skeleton span { width: 90px; height: 7px; margin-top: 13px; }
.usage-skeleton-panel { min-height: 320px; padding: 18px; }
.usage-skeleton-panel i { width: 80px; height: 7px; }
.usage-skeleton-panel b { width: 210px; height: 15px; margin-top: 10px; }
.usage-skeleton-panel span { width: 100%; height: 190px; margin-top: 24px; border-radius: 8px; }
@keyframes usage-shimmer { to { background-position: -200% 0; } }

@media (max-width: 1480px) {
  .usage-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .usage-kpi { min-height: 100px; }
}
@media (max-width: 1120px) {
  .usage-overview-grid, .usage-method-grid { grid-template-columns: 1fr; }
  .usage-price-card { grid-column: auto; }
}
@media (max-width: 820px) {
  .usage-hero { align-items: flex-start; flex-direction: column; }
  .usage-hero-controls { width: 100%; }
  .usage-month-control, .usage-verified { flex: 1; }
  .usage-trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .usage-trust-strip > div:nth-child(2n) { border-right: 0; }
  .usage-trust-strip > div:nth-child(-n+2) { border-bottom: 1px solid #202b3d; }
  .usage-feature-row { grid-template-columns: 24px minmax(110px, .9fr) minmax(70px, 1fr) 62px; }
  .usage-budget-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }.usage-budget-panel > article:nth-child(2n) { border-right: 0; }.usage-budget-panel > article:nth-child(-n+2) { border-bottom: 1px solid #263247; }
}
@media (max-width: 620px) {
  .usage-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .usage-kpi > strong { font-size: 20px; }
  .usage-trust-strip { grid-template-columns: 1fr; }
  .usage-trust-strip > div { border-right: 0; border-bottom: 1px solid #202b3d; }
  .usage-trust-strip > div:last-child { border-bottom: 0; }
  .usage-tabs { overflow-x: auto; }
  .usage-tabs button { white-space: nowrap; }
  .usage-method-steps { grid-template-columns: 1fr; }
  .usage-method-steps > div { border-right: 0; border-bottom: 1px solid #202b3d !important; }
  .usage-method-steps > div:last-child { border-bottom: 0 !important; }
  .usage-feature-row { grid-template-columns: 22px minmax(0, 1fr) 60px; }
  .usage-feature-track { grid-column: 2 / -1; width: 100%; margin-top: -5px; }
  .usage-hero-controls { align-items: stretch; flex-direction: column; }
  .usage-budget-panel { grid-template-columns: 1fr; }.usage-budget-panel > article { border-right: 0; border-bottom: 1px solid #263247; }.usage-budget-panel > article:nth-child(4) { border-bottom: 0; }.usage-budget-panel > footer { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .usage-skeleton-hero span, .usage-skeleton-hero b, .usage-skeleton-hero i,
  .usage-skeleton i, .usage-skeleton b, .usage-skeleton span, .usage-skeleton-panel > * { animation: none; }
}

/* ── API Vault Registry ──────────────────────────────────────────────────── */
.vault-shell { max-width: 1520px; margin: 0 auto; }
.vault-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px 22px; border: 1px solid #263247; border-radius: 12px;
  background: radial-gradient(circle at 92% 0, rgba(52, 211, 153, .12), transparent 36%), linear-gradient(150deg, #162033, #111925);
}
.vault-eyebrow { color: #60a5fa; font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.vault-hero h2 { margin-top: 5px; font-size: 24px; letter-spacing: -.03em; }
.vault-hero p { max-width: 760px; margin-top: 6px; color: var(--muted); font-size: 13px; }
.vault-source { min-width: 238px; display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid #263247; border-radius: 9px; background: rgba(8, 13, 22, .62); }
.vault-source > i { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 5px rgba(251, 191, 36, .1); }
.vault-source.ok > i { background: #34d399; box-shadow: 0 0 0 5px rgba(52, 211, 153, .1); }
.vault-source span, .vault-source b, .vault-source small { display: block; }
.vault-source b { font-size: 12px; }.vault-source small { margin-top: 2px; color: var(--dim); font-size: 11px; }
.vault-security-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 12px 0; border: 1px solid #263247; border-radius: 10px; overflow: hidden; background: #0b111c; }
.vault-security-strip > div { min-height: 72px; padding: 12px 14px; border-right: 1px solid #263247; }
.vault-security-strip > div:last-child { border-right: 0; }
.vault-security-strip span, .vault-security-strip b, .vault-security-strip small { display: block; }
.vault-security-strip span { color: var(--dim); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.vault-security-strip b { margin-top: 4px; font-size: 13px; }.vault-security-strip b.secure { color: #6ee7b7; }
.vault-security-strip small { margin-top: 2px; color: var(--dim); font-size: 11px; }
.vault-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.vault-kpis article { min-height: 100px; padding: 14px 16px; border: 1px solid #263247; border-radius: 10px; background: #131b28; }
.vault-kpis article.attention { border-color: rgba(251, 191, 36, .3); background: rgba(120, 53, 15, .1); }
.vault-kpis span, .vault-kpis strong, .vault-kpis small { display: block; }
.vault-kpis span { color: var(--dim); font-size: 11px; font-weight: 800; }.vault-kpis strong { margin: 7px 0 4px; font-size: 27px; }.vault-kpis small { color: var(--dim); font-size: 11px; }
.vault-banner { margin-bottom: 14px; padding: 10px 12px; border: 1px solid rgba(52, 211, 153, .24); border-radius: 8px; background: rgba(6, 78, 59, .16); color: #a7f3d0; font-size: 12px; }
.vault-section-head { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin: 0 2px 10px; }
.vault-section-head span { color: #60a5fa; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }.vault-section-head h3 { margin-top: 2px; font-size: 17px; }.vault-section-head > small { color: var(--dim); font-size: 11px; }
.vault-providers { display: grid; gap: 11px; }
.vault-provider { overflow: hidden; border: 1px solid #263247; border-radius: 11px; background: #121925; }
.vault-provider.rotation_due, .vault-provider.version_drift { border-color: rgba(251, 113, 133, .34); }
.vault-provider.rotation_soon, .vault-provider.not_deployed { border-color: rgba(251, 191, 36, .3); }
.vault-provider > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border-bottom: 1px solid #202b3d; background: rgba(8, 13, 22, .25); }
.vault-provider-title { min-width: 0; display: flex; align-items: center; gap: 11px; }
.vault-provider-mark { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #334155; border-radius: 9px; background: #17243a; color: #93c5fd; font-size: 12px; font-weight: 900; }
.vault-provider-title h3 { font-size: 15px; }.vault-provider-title code { display: block; margin-top: 2px; color: var(--dim); font-size: 11px; }
.vault-status { display: inline-flex; align-items: center; gap: 6px; min-height: 25px; padding: 3px 8px; border: 1px solid #334155; border-radius: 999px; color: var(--muted); font-size: 11px; font-weight: 800; white-space: nowrap; }
.vault-status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }.vault-status.green { color: #6ee7b7; background: rgba(6, 78, 59, .16); border-color: rgba(52, 211, 153, .25); }.vault-status.amber { color: #fcd34d; background: rgba(120, 53, 15, .15); border-color: rgba(251, 191, 36, .25); }.vault-status.rose { color: #fda4af; background: rgba(127, 29, 29, .15); border-color: rgba(251, 113, 133, .25); }
.vault-provider-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.vault-provider-grid > div { min-height: 70px; padding: 12px 16px; border-right: 1px solid #202b3d; border-bottom: 1px solid #202b3d; }
.vault-provider-grid > div:last-child { border-right: 0; }.vault-provider-grid span, .vault-provider-grid strong { display: block; }.vault-provider-grid span { color: var(--dim); font-size: 11px; }.vault-provider-grid strong { margin-top: 5px; color: var(--text); font-size: 12px; }
.vault-budget { padding: 12px 16px 8px; }.vault-budget > div:first-child { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; }.vault-budget > div:first-child span { color: var(--muted); }.vault-budget > div:first-child strong { color: var(--text); }
.vault-progress { height: 6px; overflow: hidden; margin: 7px 0 5px; border-radius: 999px; background: #0a101a; }.vault-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2563eb, #34d399); }.vault-budget small { color: var(--dim); font-size: 11px; }
.vault-capabilities { display: flex; flex-wrap: wrap; gap: 5px; padding: 4px 16px 10px; }.vault-capability { padding: 3px 7px; border-radius: 999px; background: #1e293b; color: #a5b4c7; font-size: 11px; }
.vault-notes { margin: 0 16px 10px; padding: 8px 10px; border-left: 2px solid #334155; color: var(--muted); font-size: 12px; }
.vault-provider > footer { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px; border-top: 1px solid #202b3d; }.vault-provider > footer a { color: #93c5fd; font-size: 11px; text-decoration: none; }.vault-provider > footer a:hover { color: #dbeafe; }
.vault-editor { display: grid; grid-template-columns: minmax(0, 1fr) 150px 160px auto; gap: 11px; padding: 15px 16px; border-top: 1px solid #334155; background: #0c131f; }
.vault-editor-note { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 11px; border: 1px solid rgba(59, 130, 246, .2); border-radius: 7px; background: rgba(30, 58, 95, .18); }.vault-editor-note strong { color: #bfdbfe; font-size: 12px; }.vault-editor-note span { color: var(--muted); font-size: 11px; }
.vault-editor label { display: grid; align-content: start; gap: 5px; color: var(--dim); font-size: 11px; }.vault-editor label.wide { grid-column: 1 / -1; }.vault-editor textarea { resize: vertical; min-height: 78px; font-family: inherit; }
.vault-toggle { display: flex !important; grid-auto-flow: column; align-items: center; justify-content: start; gap: 7px !important; padding-top: 27px; white-space: nowrap; }.vault-toggle input { accent-color: var(--accent); }
.vault-editor-actions { display: flex !important; flex-direction: row; justify-content: flex-end; gap: 7px !important; }
.vault-footnote { display: flex; gap: 10px; margin-top: 13px; padding: 11px 13px; border: 1px solid #263247; border-radius: 8px; background: #0b111c; font-size: 11px; }.vault-footnote strong { color: #fcd34d; white-space: nowrap; }.vault-footnote span { color: var(--muted); }
.vault-loading { min-height: 320px; display: grid; place-items: center; color: var(--dim); }

/* ── Settings ────────────────────────────────────────────────────────────── */
.settings-card { margin-bottom: 14px; overflow: hidden; border: 1px solid var(--border2); border-radius: 10px; background: var(--surface); }
.settings-card > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--border); background: #0b0f18; }.settings-card > header span { color: #60a5fa; font-size: 11px; font-weight: 900; text-transform: uppercase; }.settings-card > header h3 { margin-top: 2px; font-size: 15px; }.settings-card > header small { color: var(--dim); font-size: 11px; }
.settings-card > p { padding: 13px 16px 4px; color: var(--muted); font-size: 12px; }.theme-options { display: flex; align-items: stretch; gap: 10px; padding: 13px 16px 16px; flex-wrap: wrap; }
.fd-theme-opt { min-width: 190px; display: grid; grid-template-columns: 20px 1fr; grid-template-rows: auto auto; align-items: center; gap: 1px 8px; padding: 10px 12px; border: 1px solid var(--border2); border-radius: 9px; background: #0b0f18; color: inherit; text-align: left; cursor: pointer; }.fd-theme-opt:hover, .fd-theme-opt.active { border-color: var(--accent); }.fd-theme-opt .theme-swatch { grid-row: 1 / 3; width: 17px; height: 17px; border-radius: 5px; }.fd-theme-opt.amber .theme-swatch { background: #f4b653; }.fd-theme-opt.indigo .theme-swatch { background: #7f77dd; }.fd-theme-opt b { font-size: 12px; }.fd-theme-opt small { color: var(--dim); font-size: 11px; }.settings-message { align-self: center; color: var(--muted); font-size: 12px; }
.settings-policy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }.settings-policy-grid > div { min-height: 90px; padding: 15px 16px; border-right: 1px solid var(--border); }.settings-policy-grid > div:last-child { border-right: 0; }.settings-policy-grid b, .settings-policy-grid span { display: block; }.settings-policy-grid b { color: var(--text); font-size: 13px; }.settings-policy-grid span { margin-top: 5px; color: var(--muted); font-size: 12px; }

@media (max-width: 1100px) {
  .vault-provider-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vault-provider-grid > div:nth-child(2n) { border-right: 0; }
  .vault-editor { grid-template-columns: 1fr 1fr; }.vault-toggle { padding-top: 0; }
}
@media (max-width: 820px) {
  #app { overflow: visible; }.shell { min-height: 100vh; height: auto; }
  .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: min(86vw, 320px); transform: translateX(-102%); transition: transform .2s ease; box-shadow: 18px 0 45px rgba(0, 0, 0, .42); }
  .nav-open .sidebar { transform: translateX(0); }.sidebar-backdrop { position: fixed; inset: 0; z-index: 25; border: 0; background: rgba(0, 0, 0, .56); }.nav-open .sidebar-backdrop { display: block; }
  .sidebar-toggle { display: inline-grid; place-items: center; }.main { width: 100%; min-height: 100vh; }.topbar { padding: 0 16px; }.content { padding: 16px; }
  .vault-hero { align-items: flex-start; flex-direction: column; }.vault-source { width: 100%; min-width: 0; }
  .vault-security-strip, .vault-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }.vault-security-strip > div:nth-child(2n) { border-right: 0; }.vault-security-strip > div:nth-child(-n+2) { border-bottom: 1px solid #263247; }
  .settings-policy-grid { grid-template-columns: 1fr; }.settings-policy-grid > div { border-right: 0; border-bottom: 1px solid var(--border); }.settings-policy-grid > div:last-child { border-bottom: 0; }
}
@media (max-width: 560px) {
  .topbar { height: auto; min-height: var(--header-h); gap: 8px; }.topbar-actions { gap: 6px; }.freshness-badge { display: none; }
  .vault-security-strip, .vault-kpis, .vault-provider-grid, .vault-editor { grid-template-columns: 1fr; }.vault-security-strip > div, .vault-provider-grid > div { border-right: 0; border-bottom: 1px solid #263247; }.vault-security-strip > div:last-child, .vault-provider-grid > div:last-child { border-bottom: 0; }
  .vault-section-head, .vault-editor-note, .vault-footnote { align-items: flex-start; flex-direction: column; }.vault-provider > header { align-items: flex-start; }.vault-provider > footer { align-items: flex-start; flex-direction: column; }.vault-editor-actions { flex-direction: row; }.theme-options { flex-direction: column; }.fd-theme-opt { width: 100%; min-width: 0; }
}
