:root {
  --bg0: #070b14;
  --bg1: #0b1220;
  --panel: rgba(16, 24, 42, 0.82);
  --panel2: rgba(10, 16, 30, 0.75);
  --border: rgba(148, 163, 184, 0.18);
  --text: #e5e7eb;
  --muted: #94a3b8;
  --brand: #38bdf8;
  --ok: #22c55e;
  --warn: #f59e0b;
  --danger: #ef4444;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.42);
  --radius: 16px;
  --radius-sm: 12px;
  --mono: "Cascadia Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Bahnschrift", "Segoe UI Variable", "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 18% -10%, rgba(56, 189, 248, 0.22) 0%, rgba(56, 189, 248, 0) 60%),
    radial-gradient(900px 520px at 95% 10%, rgba(34, 197, 94, 0.14) 0%, rgba(34, 197, 94, 0) 55%),
    radial-gradient(900px 600px at 70% 120%, rgba(245, 158, 11, 0.12) 0%, rgba(245, 158, 11, 0) 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  background-attachment: fixed, fixed, fixed, fixed;
  background-repeat: no-repeat;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.grad {
  background: linear-gradient(90deg, rgba(226,232,240,0.96), rgba(56,189,248,0.98), rgba(245,158,11,0.92));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mono { font-family: var(--mono); }
.muted { color: var(--muted); font-size: 13px; }

.app { min-height: 100vh; display: flex; position: relative; }

.shellscrim {
  display: none;
  position: fixed;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(2, 6, 23, 0.56);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
  z-index: 40;
}
.shellscrim--open {
  opacity: 1;
  pointer-events: auto;
}

.sidebar {
  width: 252px;
  background:
    radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.10) 0, transparent 46%),
    linear-gradient(180deg, rgba(5, 7, 10, 0.94), rgba(12, 18, 32, 0.84));
  border-right: 1px solid var(--border);
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 14px 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 45;
}

.sidebar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 4px 12px;
}

.brand { display: flex; gap: 12px; align-items: center; }
.brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03));
  border: 1px solid rgba(148, 163, 184, 0.22);
  overflow: hidden;
}
.brand__logo { width: 100%; height: 100%; object-fit: contain; }
.brand__title { font-weight: 700; }
.brand__sub { font-size: 12px; color: var(--muted); margin-top: 1px; }

.sidebar__close {
  display: none;
}

.nav {
  display: grid;
  gap: 8px;
  padding: 8px 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 6px;
}
.nav__section {
  display: grid;
  gap: 8px;
}
.nav__section + .nav__section {
  margin-top: 6px;
}
.nav__section-title {
  padding: 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.82);
}
.nav__group {
  display: grid;
  gap: 8px;
}
.nav::-webkit-scrollbar { width: 8px; }
.nav::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.20);
  border-radius: 999px;
}
.nav__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: rgba(229, 231, 235, 0.92);
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}
.nav__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.4);
}
.nav__item:hover {
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.16);
  transform: translateX(2px);
}
.nav__item--active {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
}
.nav__item--active .nav__dot { background: rgba(56, 189, 248, 0.9); }

.sidebar--agent {
  width: 292px;
  padding: 14px 12px 14px;
}
.sidebar--agent .sidebar__head {
  padding-bottom: 8px;
}
.sidebar--agent .brand {
  gap: 10px;
}
.sidebar--agent .brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}
.sidebar--agent .brand__title {
  font-size: 14px;
}
.sidebar--agent .brand__sub {
  font-size: 11px;
}
.sidebar--agent .nav {
  gap: 12px;
  padding-top: 12px;
}
.sidebar--agent .nav__group {
  gap: 7px;
}
.sidebar--agent .nav__item {
  position: relative;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 10px 10px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(10, 18, 32, 0.72), rgba(8, 14, 26, 0.44));
  border-color: rgba(148, 163, 184, 0.08);
}
.sidebar--agent .nav__label {
  font-size: 13px;
  font-weight: 700;
}
.sidebar--agent .nav__dot {
  width: 8px;
  height: 8px;
  margin-top: 7px;
  flex: 0 0 auto;
}
.sidebar--agent .nav__item:hover {
  background: linear-gradient(180deg, rgba(16, 28, 48, 0.92), rgba(11, 19, 33, 0.72));
  border-color: rgba(56, 189, 248, 0.18);
  transform: translateX(3px);
}
.sidebar--agent .nav__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 999px;
  background: transparent;
}
.sidebar--agent .nav__item--active {
  background:
    linear-gradient(180deg, rgba(14, 40, 58, 0.96), rgba(11, 27, 41, 0.92)),
    linear-gradient(180deg, rgba(56, 189, 248, 0.10), rgba(56, 189, 248, 0.02));
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.sidebar--agent .nav__item--active::before {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.95), rgba(16, 185, 129, 0.78));
}
.sidebar--agent .nav__item--active .nav__dot {
  background: rgba(125, 211, 252, 0.95);
}
.sidebar--agent .nav__copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}
.sidebar--agent .nav__row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.sidebar--agent .nav__hint {
  color: rgba(148, 163, 184, 0.88);
  font-size: 11px;
  line-height: 1.45;
}
.sidebar--agent .nav__badge {
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(148, 163, 184, 0.08);
  color: rgba(226, 232, 240, 0.88);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sidebar--agent .sidebar__foot {
  padding-top: 12px;
}
.sidebar--agent .sidebar__hint {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(8, 14, 25, 0.54);
  line-height: 1.45;
}

.sidebar__foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  flex: 0 0 auto;
  background: linear-gradient(180deg, rgba(8, 12, 22, 0), rgba(8, 12, 22, 0.78) 24%);
}
.sidebar__hint { margin-top: 10px; color: var(--muted); font-size: 12px; }

.main {
  flex: 1;
  min-width: 0;
  padding: 18px 20px 40px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(14px);
  width: min(1480px, 100%);
  margin: 0 auto 18px;
}
.topbar__main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
.topbar__menu {
  display: none;
  flex: 0 0 auto;
}
.topbar__eyebrow {
  font-size: 11px;
  color: rgba(148, 163, 184, 0.94);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.topbar__title {
  margin-top: 4px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
}
.topbar__desc {
  margin-top: 6px;
  color: rgba(148, 163, 184, 0.94);
  font-size: 13px;
}
.topbar__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.topbar__badge {
  font-size: 12px;
  color: rgba(203, 213, 225, 0.95);
  border: 1px solid rgba(59, 130, 246, 0.24);
  background: rgba(59, 130, 246, 0.10);
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.topbar--agent {
  padding: 12px 14px;
  background:
    linear-gradient(180deg, rgba(14, 24, 42, 0.78), rgba(12, 22, 36, 0.60)),
    radial-gradient(circle at 100% 0%, rgba(16, 185, 129, 0.10), rgba(16, 185, 129, 0) 42%);
}
.topbar--agent .topbar__title {
  margin-top: 2px;
  font-size: 20px;
  letter-spacing: 0.01em;
}
.topbar--agent .topbar__desc {
  margin-top: 4px;
  max-width: 760px;
}

.workspace-card {
  padding: 14px 14px 12px;
  border-radius: 16px;
  border: 1px solid rgba(56, 189, 248, 0.16);
  background:
    radial-gradient(circle at 100% 0%, rgba(56, 189, 248, 0.12), rgba(56, 189, 248, 0) 42%),
    linear-gradient(180deg, rgba(11, 20, 35, 0.94), rgba(9, 16, 28, 0.82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.workspace-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.workspace-card__eyebrow {
  font-size: 10px;
  color: rgba(148, 163, 184, 0.84);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.workspace-card__title {
  margin-top: 5px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}
.workspace-card__meter {
  margin-top: 14px;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.10);
}
.workspace-card__meter-fill {
  height: 100%;
  min-width: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.95), rgba(16, 185, 129, 0.88));
}
.workspace-card__meta {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.workspace-card__kv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(148, 163, 184, 0.92);
  font-size: 12px;
}
.workspace-card__kv strong {
  color: rgba(241, 245, 249, 0.96);
  font-size: 13px;
}

.langseg {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(8, 12, 22, 0.35);
  border-radius: 999px;
  overflow: hidden;
}
.langseg__btn {
  border: 0;
  background: transparent;
  color: rgba(226, 232, 240, 0.92);
  padding: 7px 10px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 12px;
}
.langseg__btn:hover {
  background: rgba(148, 163, 184, 0.10);
}
.langseg__btn--active {
  background: rgba(56, 189, 248, 0.16);
  border-left: 1px solid rgba(56, 189, 248, 0.12);
  border-right: 1px solid rgba(56, 189, 248, 0.12);
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  user-select: none;
}
.switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.switch__track {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(148, 163, 184, 0.10);
  position: relative;
  transition: background 140ms ease, border-color 140ms ease;
}
.switch__track::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  top: 2px;
  left: 2px;
  background: rgba(226, 232, 240, 0.92);
  transition: transform 140ms ease;
}
.switch input:checked + .switch__track {
  border-color: rgba(34, 197, 94, 0.55);
  background: rgba(34, 197, 94, 0.18);
}
.switch input:checked + .switch__track::after {
  transform: translateX(20px);
}
.switch__label {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.95);
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.content {
  margin: 0 auto;
  width: min(1480px, 100%);
  min-width: 0;
}

.view { animation: fadeUp 220ms ease both; min-width: 0; }
.view > * + * { margin-top: 18px; }
.detail-head-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}
.detail-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
}
.detail-toolbar .input {
  flex: 1 1 420px;
}
.view__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 4px 12px;
}
.view__head > :first-child {
  display: none;
}
.view__head > :only-child {
  display: none;
}
.view__head:empty {
  display: none;
  margin: 0;
}
.kicker {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.92);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.h1 { margin: 6px 0 6px; font-size: 30px; letter-spacing: 0.2px; }

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  min-width: 0;
}

.card {
  grid-column: span 4;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  backdrop-filter: blur(10px);
  min-width: 0;
}

.card--wide { grid-column: span 12; }
.card--half { grid-column: span 6; }
.card--quarter { grid-column: span 3; }

.card__title {
  font-weight: 700;
  color: rgba(226, 232, 240, 0.95);
  margin-bottom: 10px;
}
.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.card__head .card__title {
  margin-bottom: 0;
}
.section-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.btn--sm {
  min-height: 34px;
  padding: 8px 12px;
  font-size: 12px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.row > * { min-width: 0; }

.tabs {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(8, 12, 22, 0.38);
}
.tabbtn {
  border: 1px solid transparent;
  background: transparent;
  color: rgba(226, 232, 240, 0.86);
  padding: 8px 10px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
}
.tabbtn:hover { background: rgba(56, 189, 248, 0.08); border-color: rgba(56, 189, 248, 0.18); }
.tabbtn--active {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.20), rgba(56, 189, 248, 0.08));
  border-color: rgba(56, 189, 248, 0.38);
  color: rgba(226, 232, 240, 0.96);
}

.input, .textarea, .iconbtn, select {
  font-family: var(--sans);
}
.input {
  flex: 1;
  min-width: 220px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  outline: none;
  background: rgba(8, 12, 22, 0.62);
  color: var(--text);
}
.input:focus { border-color: rgba(56, 189, 248, 0.46); box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.08); }
.input--sm { min-width: 160px; flex: 0 0 auto; }
.input--select { min-width: 190px; flex: 0 0 auto; }

.textarea {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  outline: none;
  background: rgba(8, 12, 22, 0.62);
  color: var(--text);
  font-family: var(--mono);
  line-height: 1.5;
}
.textarea:focus { border-color: rgba(56, 189, 248, 0.46); box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.08); }

.btn {
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(148, 163, 184, 0.07);
  color: rgba(226, 232, 240, 0.96);
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(56, 189, 248, 0.34); background: rgba(56, 189, 248, 0.10); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn--primary {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.22), rgba(56, 189, 248, 0.10));
  border-color: rgba(56, 189, 248, 0.45);
}
.btn--ghost {
  background: rgba(8, 12, 22, 0.28);
}
.push-eventchip {
  appearance: none;
  border: 1px solid rgba(71, 85, 105, 0.7);
  background: rgba(8, 12, 22, 0.34);
  color: rgba(226, 232, 240, 0.92);
  border-radius: 14px;
  padding: 11px 16px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease, color 140ms ease;
}
.push-eventchip:hover {
  border-color: rgba(96, 165, 250, 0.58);
  background: rgba(30, 41, 59, 0.72);
  transform: translateY(-1px);
}
.push-eventchip--active {
  color: #eff6ff;
  border-color: rgba(59, 130, 246, 0.92);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.36), rgba(30, 64, 175, 0.24));
  box-shadow: inset 0 1px 0 rgba(191, 219, 254, 0.18), 0 0 0 1px rgba(59, 130, 246, 0.18), 0 8px 24px rgba(37, 99, 235, 0.18);
}
.push-eventchip--active:hover {
  border-color: rgba(96, 165, 250, 0.98);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.42), rgba(30, 64, 175, 0.28));
}
.table--pushlogs {
  min-width: 1180px;
  table-layout: fixed;
}
.table--pushlogs th,
.table--pushlogs td {
  padding: 12px 14px;
  vertical-align: middle;
}
.table--pushlogs th:nth-child(1) { width: 18%; }
.table--pushlogs th:nth-child(2) { width: 17%; }
.table--pushlogs th:nth-child(3) { width: 24%; }
.table--pushlogs th:nth-child(4) { width: 10%; }
.table--pushlogs th:nth-child(5) { width: 11%; }
.table--pushlogs th:nth-child(6) { width: 10%; }
.table--pushlogs th:nth-child(7) { width: 10%; }
.table--pushlogs th:nth-child(8) { width: 100px; }
.pushlog-chipline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-bottom: 8px;
}
.tag--event-ban {
  color: rgba(254, 226, 226, 0.98);
  border-color: rgba(248, 113, 113, 0.46);
  background: linear-gradient(180deg, rgba(127, 29, 29, 0.34), rgba(69, 10, 10, 0.28));
  box-shadow: inset 0 1px 0 rgba(254, 202, 202, 0.08);
}
.tag--event-release {
  color: rgba(220, 252, 231, 0.98);
  border-color: rgba(74, 222, 128, 0.42);
  background: linear-gradient(180deg, rgba(20, 83, 45, 0.34), rgba(5, 46, 22, 0.28));
  box-shadow: inset 0 1px 0 rgba(187, 247, 208, 0.08);
}
.tag--event-alert {
  color: rgba(254, 240, 138, 0.98);
  border-color: rgba(245, 158, 11, 0.40);
  background: linear-gradient(180deg, rgba(120, 53, 15, 0.30), rgba(69, 26, 3, 0.24));
  box-shadow: inset 0 1px 0 rgba(253, 230, 138, 0.08);
}
.pushlog-id {
  display: block;
  max-width: 100%;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pushlog-reason {
  color: rgba(226, 232, 240, 0.96);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.btn--danger {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.22), rgba(239, 68, 68, 0.12));
  border-color: rgba(239, 68, 68, 0.42);
}
.btn--danger:hover {
  border-color: rgba(248, 113, 113, 0.52);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.28), rgba(239, 68, 68, 0.14));
}

.iconbtn {
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(8, 12, 22, 0.35);
  color: var(--text);
  width: 42px;
  height: 38px;
  border-radius: 14px;
  cursor: pointer;
}

.metric {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.2px;
  margin-top: 6px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(148, 163, 184, 0.08);
}
.pill--low { border-color: rgba(34, 197, 94, 0.42); background: rgba(34, 197, 94, 0.10); }
.pill--medium { border-color: rgba(245, 158, 11, 0.44); background: rgba(245, 158, 11, 0.10); }
.pill--high { border-color: rgba(239, 68, 68, 0.44); background: rgba(239, 68, 68, 0.10); }
.pill--neutral { border-color: rgba(148, 163, 184, 0.34); background: rgba(148, 163, 184, 0.10); color: rgba(203, 213, 225, 0.92); }

.scorepill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.scorepill--high {
  color: rgba(254, 226, 226, 0.98);
  background: linear-gradient(180deg, rgba(185, 28, 28, 0.34), rgba(127, 29, 29, 0.24));
  border-color: rgba(248, 113, 113, 0.34);
}

.scorepill--medium {
  color: rgba(255, 237, 213, 0.98);
  background: linear-gradient(180deg, rgba(194, 65, 12, 0.28), rgba(154, 52, 18, 0.2));
  border-color: rgba(251, 146, 60, 0.3);
}

.scorepill--low {
  color: rgba(220, 252, 231, 0.98);
  background: linear-gradient(180deg, rgba(21, 128, 61, 0.28), rgba(20, 83, 45, 0.18));
  border-color: rgba(74, 222, 128, 0.28);
}

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-family: var(--mono);
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(8, 12, 22, 0.46);
  color: rgba(226, 232, 240, 0.95);
}
.tag--high {
  border-color: rgba(239, 68, 68, 0.38);
  background: rgba(239, 68, 68, 0.12);
}
.tag--medium {
  border-color: rgba(245, 158, 11, 0.38);
  background: rgba(245, 158, 11, 0.12);
}
.tag--low {
  border-color: rgba(56, 189, 248, 0.32);
  background: rgba(56, 189, 248, 0.10);
}
.tag--more {
  border-style: dashed;
  color: rgba(148, 163, 184, 0.96);
}

.tablewrap { overflow: auto; border-radius: 12px; border: 1px solid rgba(148, 163, 184, 0.12); max-width: 100%; }
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 720px;
}
.table--devices {
  min-width: 1290px;
  table-layout: fixed;
}
.table--history {
  min-width: 1320px;
  table-layout: fixed;
}
.table--history-compact {
  min-width: 1080px;
}
.table th, .table td {
  padding: 10px 12px;
  vertical-align: top;
}
.table thead tr,
.table tbody tr {
  box-shadow: inset 0 -1px rgba(148, 163, 184, 0.10);
}
.table tbody tr:last-child {
  box-shadow: none;
}
.table th { text-align: left; font-size: 12px; color: rgba(148, 163, 184, 0.95); text-transform: uppercase; letter-spacing: 0.12em; }
.table td.num, .table th.num { text-align: right; }
.table--devices .col-id {
  width: 236px;
}
.table--history .col-id {
  width: 240px;
}
.table--history th:nth-child(2) {
  width: 190px;
}
.table--history th:nth-child(3) {
  width: 210px;
}
.table--history th:nth-child(5),
.table--history th:nth-child(6),
.table--history th:nth-child(7),
.table--history th:nth-child(8) {
  width: 110px;
}
.table--history th:nth-child(9) {
  width: 170px;
}
.table--history th:nth-child(10) {
  width: 240px;
}
.table--history-compact .col-id {
  width: 250px;
}
.table--history-compact th:nth-child(2) {
  width: 180px;
}
.table--history-compact th:nth-child(3) {
  width: 210px;
}
.table--history-compact th:nth-child(4) {
  width: 110px;
}
.table--history-compact th:nth-child(5) {
  width: 320px;
}
.table--history-compact th:nth-child(6) {
  width: 110px;
}
.table--devices .col-app {
  width: 190px;
}
.table--devices .col-score {
  width: 106px;
}
.table--devices .col-count {
  width: 92px;
}
.table--devices .col-tags {
  width: 250px;
}
.table--devices .col-actions {
  width: 140px;
}
.table--devices td.col-score,
.table--devices th.col-score {
  text-align: center;
}
.table--history td.col-score,
.table--history th.col-score {
  text-align: center;
}
.table--devices td.col-app {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.table--apps-compact {
  min-width: 1140px;
  table-layout: fixed;
}
.table--apps-compact th,
.table--apps-compact td {
  padding: 12px 14px;
  vertical-align: middle;
}
.table--apps-compact tbody tr:hover {
  background: rgba(15, 23, 42, 0.42);
}
.table--apps-compact .col-app-main {
  width: 31%;
}
.table--apps-compact .col-risk {
  width: 124px;
}
.table--apps-compact .col-actions {
  width: 176px;
}
.appscompact-main {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  color: inherit;
  cursor: pointer;
}
.appscompact-main:hover .appscompact-main__title {
  color: rgba(248, 250, 252, 1);
}
.appscompact-main__title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.28;
  color: rgba(226, 232, 240, 0.98);
}
.appscompact-main__meta,
.appscompact-main__sub {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: rgba(148, 163, 184, 0.92);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.appscompact-main__meta {
  font-size: 12px;
}
.appscompact-main__sub {
  font-size: 11px;
  color: rgba(100, 116, 139, 0.92);
}
.appscompact-main__note {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(125, 143, 168, 0.9);
}
.appscompact-pill {
  min-height: 28px;
  padding: 4px 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
}
.appscompact-risk {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.appscompact-risk__value {
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  color: rgba(226, 232, 240, 0.98);
}
.appscompact-risk__bar {
  position: relative;
  display: block;
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.9);
}
.appscompact-risk__bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: rgba(148, 163, 184, 0.82);
}
.appscompact-risk[data-tone="high"] .appscompact-risk__value {
  color: rgba(248, 113, 113, 0.98);
}
.appscompact-risk[data-tone="high"] .appscompact-risk__bar i {
  background: linear-gradient(90deg, rgba(251, 113, 133, 0.95), rgba(239, 68, 68, 0.95));
}
.appscompact-risk[data-tone="medium"] .appscompact-risk__value {
  color: rgba(251, 191, 36, 0.98);
}
.appscompact-risk[data-tone="medium"] .appscompact-risk__bar i {
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.95), rgba(245, 158, 11, 0.95));
}
.appscompact-risk[data-tone="low"] .appscompact-risk__value {
  color: rgba(52, 211, 153, 0.98);
}
.appscompact-risk[data-tone="low"] .appscompact-risk__bar i {
  background: linear-gradient(90deg, rgba(45, 212, 191, 0.95), rgba(34, 197, 94, 0.95));
}
.appscompact-risk[data-tone="neutral"] .appscompact-risk__value {
  color: rgba(148, 163, 184, 0.96);
}
.appscompact-metric {
  display: inline-flex;
  min-width: 88px;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}
.appscompact-metric strong {
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  color: rgba(226, 232, 240, 0.98);
}
.appscompact-metric span {
  font-size: 11px;
  color: rgba(148, 163, 184, 0.9);
}
.appscompact-time,
.appscompact-owner,
.appscompact-owner-sub {
  line-height: 1.35;
}
.appscompact-time,
.appscompact-owner {
  font-size: 13px;
  font-weight: 700;
  color: rgba(226, 232, 240, 0.96);
}
.appscompact-owner-sub {
  margin-top: 4px;
  font-size: 11px;
  color: rgba(125, 143, 168, 0.88);
}
.appscompact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.appscompact-actions__main,
.appscompact-actions__minor {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.appscompact-linkbtn {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  color: rgba(148, 163, 184, 0.96);
  cursor: pointer;
}
.appscompact-linkbtn:hover {
  color: rgba(226, 232, 240, 0.98);
}
.appscompact-linkbtn.is-danger {
  color: rgba(248, 113, 113, 0.96);
}
.appscompact-linkbtn.is-danger:hover {
  color: rgba(252, 165, 165, 1);
}

/* Application operations: search first, then scan a single continuous result surface. */
.product-page--apps {
  gap: 18px;
}
.apps-commandbar,
.apps-query,
.apps-results {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.14);
}
.apps-commandbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-radius: var(--radius);
}
.apps-commandbar__context {
  display: grid;
  gap: 5px;
}
.apps-commandbar__hint {
  color: var(--muted);
  font-size: 13px;
}
.apps-query {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius);
}
.apps-query__main {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(148px, 180px) auto;
  align-items: end;
  gap: 12px;
  width: min(880px, 100%);
}
.apps-query__search,
.apps-query__owner {
  display: grid;
  gap: 7px;
}
.apps-query__label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.apps-query__submit {
  min-height: 40px;
}
.apps-query__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.apps-query__meta strong {
  color: var(--text);
  font-size: 15px;
}
.apps-query__meta label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.apps-query__limit {
  min-width: 60px;
  border: 0;
  border-bottom: 1px solid var(--border);
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}
.apps-results {
  overflow: hidden;
  border-radius: var(--radius);
}
.apps-results__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.apps-results__eyebrow,
.sdk-sheet__eyebrow {
  margin-bottom: 5px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}
.apps-results__head h2 {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.25;
}
.apps-results__summary {
  color: var(--muted);
  font-size: 13px;
}
.apps-results__table {
  border: 0;
  border-radius: 0;
}
.table--apps-compact {
  min-width: 1000px;
}
.table--apps-compact .col-app-main { width: 30%; }
.table--apps-compact .col-risk { width: 138px; }
.table--apps-compact .col-actions { width: 204px; }
.table--apps-compact th,
.table--apps-compact td { padding: 15px 16px; }
.appscompact-owner {
  margin-bottom: 7px;
}
.appscompact-pill {
  min-height: 25px;
  padding: 3px 8px;
  font-size: 10px;
}
.appscompact-risk { gap: 5px; }
.appscompact-risk__label {
  color: var(--muted);
  font-size: 11px;
}
.appscompact-actions { gap: 7px; }
.appscompact-actions__main { gap: 7px; }
.appscompact-actions__minor { gap: 10px; }
.apps-empty {
  padding: 36px 20px !important;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  text-align: center;
}
.apps-mobile-list { display: none; }

/* App-specific SDK handoff is deliberately separate from billing and operational data. */
.sdk-sheet-backdrop {
  align-items: center;
  padding: 24px;
}
.modal--sdk-config.sdk-sheet {
  width: min(1060px, 100%);
  max-height: min(860px, calc(100vh - 48px));
  border-radius: 20px;
}
.sdk-sheet__head {
  padding: 18px 22px;
}
.sdk-sheet__body { padding: 0; }
.sdk-sheet__content {
  display: grid;
  gap: 20px;
  padding: 22px;
}
.sdk-app-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.06);
}
.sdk-app-summary__label {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}
.sdk-app-summary strong,
.sdk-app-summary span { display: block; }
.sdk-app-summary strong {
  color: var(--text);
  font-size: 17px;
}
.sdk-app-summary .mono {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}
.sdk-app-summary__status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  text-align: right;
}
.sdk-security-note {
  padding: 12px 14px;
  border-left: 3px solid var(--brand);
  background: rgba(56, 189, 248, 0.08);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.sdk-section {
  min-width: 0;
}
.sdk-section__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.sdk-section__head h3 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
}
.sdk-section__head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.sdk-fields {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.sdk-field {
  display: grid;
  grid-template-columns: minmax(175px, .78fr) minmax(220px, 1.45fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.sdk-field:last-child { border-bottom: 0; }
.sdk-field > div:first-child { display: grid; gap: 4px; }
.sdk-field span {
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
}
.sdk-field small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.sdk-field code,
.sdk-policy-url {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.sdk-field--sensitive { background: rgba(245, 158, 11, 0.035); }
.sdk-field__actions { display: flex; gap: 7px; }
.sdk-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.sdk-section-grid .sdk-section {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
}
.sdk-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}
.sdk-check strong {
  color: var(--text);
  font-size: 13px;
}
.sdk-check strong.is-ready { color: var(--ok); }
.sdk-check strong.is-pending { color: var(--warn); }
.sdk-policy-url {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

@media (max-width: 820px) {
  .apps-commandbar,
  .apps-query,
  .apps-results__head,
  .sdk-app-summary {
    align-items: stretch;
    flex-direction: column;
  }
  .apps-query__main {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .apps-query__meta { justify-content: space-between; }
  .apps-results__table { display: none; }
  .apps-mobile-list { display: grid; }
  .apps-mobile-row {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-bottom: 1px solid var(--border);
  }
  .apps-mobile-row:last-child { border-bottom: 0; }
  .apps-mobile-row__facts,
  .apps-mobile-row__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
  }
  .apps-mobile-row__facts {
    color: var(--muted);
    font-size: 12px;
  }
  .sdk-sheet-backdrop { padding: 10px; }
  .modal--sdk-config.sdk-sheet { max-height: calc(100vh - 20px); }
  .sdk-sheet__content { padding: 16px; gap: 16px; }
  .sdk-section-grid { grid-template-columns: 1fr; }
  .sdk-field { grid-template-columns: 1fr; gap: 8px; }
  .sdk-field__actions { justify-content: flex-start; }
}
.link {
  color: rgba(56, 189, 248, 0.95);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.linkbtn {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.pre {
  background: rgba(8, 12, 22, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 12px;
  padding: 12px;
  overflow: auto;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
  margin: 0;
}

.pager {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 10px;
}
.pager__meta { color: var(--muted); font-size: 13px; }

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.field__label {
  color: rgba(148, 163, 184, 0.9);
  font-size: 12px;
  font-weight: 700;
}

.select {
  min-width: 170px;
}

.kv { margin-top: 10px; display: grid; gap: 6px; }
.kv__row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed rgba(148, 163, 184, 0.12); }
.kv__k { color: var(--muted); font-size: 12px; }
.kv__v { font-size: 13px; }

/* Device detail top split cards: keep 50/50 and avoid text squeeze deformation. */
.device-detail-split { min-width: 0; }
.device-detail-kv .kv__row {
  justify-content: flex-start;
  align-items: flex-start;
}
.device-detail-kv .kv__k {
  flex: 0 0 108px;
  white-space: nowrap;
}
.device-detail-kv .kv__v {
  flex: 1 1 auto;
  min-width: 0;
  text-align: right;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.device-risk-shell {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 16px;
  align-items: stretch;
}
.device-risk-score {
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.18);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.device-risk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
  align-content: start;
}
.device-risk-item {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.12);
  min-width: 0;
}
.device-risk-item--wide {
  grid-column: 1 / -1;
}
.device-risk-item__k {
  font-size: 13px;
  color: rgba(148, 163, 184, 0.92);
  letter-spacing: 0.02em;
}
.device-risk-item__v {
  min-width: 0;
  line-height: 1.6;
  margin-top: 0;
}
.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
  margin-top: 10px;
}
.statecard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.statecard {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.22);
}
.statecard__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.statecard__label {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.92);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.statecard__hint {
  margin-top: 10px;
  color: rgba(148, 163, 184, 0.94);
  line-height: 1.6;
  font-size: 13px;
}
.snapshot-grid--secondary {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(148, 163, 184, 0.14);
}
.snapshot-item {
  display: grid;
  grid-template-columns: 136px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.12);
  min-width: 0;
}
.snapshot-item--wide {
  grid-column: 1 / -1;
}
.snapshot-item__k {
  font-size: 13px;
  color: rgba(148, 163, 184, 0.92);
  letter-spacing: 0.02em;
}
.snapshot-item__v {
  line-height: 1.6;
  min-width: 0;
  margin-top: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.list { display: grid; gap: 10px; margin-top: 10px; }
.list__item { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.list__item { min-width: 0; }
.list__item--stack {
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.22);
}
.list__value { font-family: var(--mono); color: rgba(226, 232, 240, 0.95); }
.pill--clip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.evidence-stack {
  display: grid;
  gap: 12px;
}

.evidence-card {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.22);
  padding: 12px 14px;
}

.evidence-card--high {
  border-color: rgba(239, 68, 68, 0.26);
  background: linear-gradient(180deg, rgba(64, 14, 20, 0.30), rgba(2, 6, 23, 0.22));
}

.evidence-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.evidence-card__body {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.evidence-card__line {
  line-height: 1.6;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
}

.evidence-grid > .evidence-card {
  grid-column: span 6;
}

.evidence-grid--env > .evidence-card {
  grid-column: span 4;
}

.evidence-overview,
.history-overview {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
}

.evidence-overview__item,
.history-overview__item {
  grid-column: span 3;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.26);
  border-radius: 16px;
  padding: 12px 14px;
  min-width: 0;
}

.evidence-overview__item--high,
.history-overview__item--high {
  border-color: rgba(239, 68, 68, 0.28);
  background: linear-gradient(180deg, rgba(127, 29, 29, 0.22), rgba(15, 23, 42, 0.34));
}

.evidence-overview__item--medium,
.history-overview__item--medium {
  border-color: rgba(245, 158, 11, 0.26);
  background: linear-gradient(180deg, rgba(120, 53, 15, 0.18), rgba(15, 23, 42, 0.30));
}

.evidence-overview__item--low,
.history-overview__item--low {
  border-color: rgba(34, 197, 94, 0.24);
  background: linear-gradient(180deg, rgba(20, 83, 45, 0.16), rgba(15, 23, 42, 0.28));
}

.evidence-overview__label,
.history-overview__label {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.92);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.evidence-overview__value,
.history-overview__value {
  margin-top: 8px;
  font-size: 26px;
  font-weight: 900;
  color: rgba(248, 250, 252, 0.98);
  line-height: 1;
}

.evidence-overview__hint,
.history-overview__hint {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(203, 213, 225, 0.82);
}

.evidence-card__badge {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.evidence-card__icon {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(239, 68, 68, 0.26);
  background: rgba(127, 29, 29, 0.22);
  color: rgba(254, 226, 226, 0.98);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.evidence-card__icon--muted {
  border-color: rgba(56, 189, 248, 0.22);
  background: rgba(8, 47, 73, 0.20);
  color: rgba(191, 219, 254, 0.95);
}

.evidence-card__title {
  font-weight: 800;
  color: rgba(248, 250, 252, 0.98);
}

.evidence-card__summary {
  margin-top: 3px;
  color: rgba(226, 232, 240, 0.84);
  line-height: 1.6;
}

.evidence-card__metrics {
  display: grid;
  gap: 8px;
}

.evidence-card__metrics--stack {
  margin-top: 2px;
}

.evidence-card__metric {
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(8, 12, 22, 0.34);
  color: rgba(226, 232, 240, 0.92);
  font-size: 12px;
  line-height: 1.55;
}

.idchip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.idchip__text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: normal;
}

.btn--copy {
  flex: 0 0 auto;
  min-width: 0;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.2;
}

.btn--compact {
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  min-width: 72px;
}

.device-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.device-actions .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.device-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.device-tags__summary {
  width: fit-content;
  flex: 0 0 auto;
}

.device-tags__list {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
  min-width: 0;
  flex: 0 0 auto;
}

.device-tags__item {
  flex: 0 0 auto;
  white-space: nowrap;
}

.device-tags--scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.device-tags--scroll::-webkit-scrollbar {
  height: 0;
}

.device-tags--scroll::-webkit-scrollbar-thumb {
  background: transparent;
}

.device-tags--scroll::-webkit-scrollbar-track {
  background: transparent;
}

.detail-navcard {
  padding-top: 12px;
  padding-bottom: 12px;
  position: sticky;
  top: 88px;
  z-index: 4;
  background: rgba(10, 16, 30, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.26);
}

.detail-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.35) transparent;
}

.detail-nav::-webkit-scrollbar { height: 8px; }
.detail-nav::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.24);
  border-radius: 999px;
}

.detail-nav .btn {
  white-space: nowrap;
  flex: 0 0 auto;
}

.history-alert {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(239, 68, 68, 0.26);
  background: linear-gradient(180deg, rgba(127, 29, 29, 0.16), rgba(15, 23, 42, 0.72));
}

.history-alert__title {
  font-size: 14px;
  font-weight: 700;
  color: rgba(254, 226, 226, 0.96);
}

.history-alert__text {
  margin-top: 6px;
  color: rgba(254, 226, 226, 0.84);
  line-height: 1.7;
}

.history-alert__meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.history-alert__id {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.24);
  background: rgba(15, 23, 42, 0.62);
  color: rgba(254, 226, 226, 0.9);
  font-size: 12px;
  font-family: var(--mono);
}

.history-alert__id--current {
  border-color: rgba(56, 189, 248, 0.34);
  color: rgba(224, 242, 254, 0.96);
}

.history-summary {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: rgba(226, 232, 240, 0.9);
}

.history-summary--danger {
  border-color: rgba(239, 68, 68, 0.24);
  background: rgba(127, 29, 29, 0.14);
  color: rgba(254, 226, 226, 0.96);
}

.history-row--cheat {
  background: linear-gradient(90deg, rgba(127, 29, 29, 0.16), rgba(15, 23, 42, 0.04));
}

.history-main-row {
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease;
}

.history-main-row:hover {
  background: rgba(8, 47, 73, 0.10);
}

.history-main-row--expanded {
  background: rgba(8, 47, 73, 0.16);
}

.history-softid {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.history-softid__flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.history-softid__flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.34);
  background: rgba(127, 29, 29, 0.18);
  color: rgba(254, 226, 226, 0.96);
  font-size: 12px;
  font-weight: 700;
}

.history-softid__flag--current {
  border-color: rgba(56, 189, 248, 0.28);
  background: rgba(8, 47, 73, 0.20);
  color: rgba(191, 219, 254, 0.98);
}

.history-softid__flag--secondary {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(120, 53, 15, 0.18);
  color: rgba(254, 240, 138, 0.98);
}

.history-ip {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: flex-start;
}

.history-tags .tag {
  max-width: 100%;
}

.history-summary-cell {
  display: grid;
  gap: 8px;
}

.history-summary-cell__line {
  color: rgba(203, 213, 225, 0.86);
  line-height: 1.5;
}

.history-expand-cell {
  text-align: center;
  vertical-align: middle !important;
}

.history-detail-row td {
  padding: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.10);
}

.history-detail-cell {
  padding: 0 !important;
}

.history-detail {
  padding: 14px 16px 16px;
  background: linear-gradient(180deg, rgba(8, 12, 22, 0.42), rgba(15, 23, 42, 0.18));
}

.history-detail__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
}

.history-detail__card {
  grid-column: span 6;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.22);
  border-radius: 14px;
  padding: 12px;
}

.history-detail__card--wide {
  grid-column: span 12;
}

.history-detail__title {
  font-weight: 800;
  color: rgba(248, 250, 252, 0.98);
  margin-bottom: 10px;
}

.history-detail__kv {
  display: grid;
  gap: 8px;
}

.history-detail__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.history-detail__k {
  color: rgba(148, 163, 184, 0.92);
  font-size: 12px;
}

.history-detail__v {
  color: rgba(226, 232, 240, 0.95);
  text-align: right;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-detail__tags {
  margin-top: 0;
}

.idline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.idline__text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clamp2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.clamp3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rulesx-stack {
  margin-top: 14px;
  display: grid;
  gap: 16px;
}

.rulesx-workbench {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}

.rulesx-main {
  min-width: 0;
}

.rulesx-anchorbar,
.rulesx-main,
.rulesx-main > .card,
.rulesx-sidebar,
.rulesx-sidebar > .card {
  grid-column: auto;
}

.rulesx-anchorbar {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 8px;
  padding: 10px;
  background: #161b22;
  border-color: #30363d;
}

.rulesx-anchor {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: rgba(148, 163, 184, 0.94);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.rulesx-anchor:hover {
  color: rgba(248, 250, 252, 0.98);
  border-color: rgba(59, 130, 246, 0.24);
  background: rgba(59, 130, 246, 0.10);
}

.rulesx-sidebar {
  position: sticky;
  top: 16px;
}

.rulesx-sidecard {
  display: grid;
  gap: 12px;
  background: #161b22;
  border-color: #30363d;
}

.rulesx-sidehead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.rulesx-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.rulesx-summary-tile {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #30363d;
  background: rgba(13, 17, 23, 0.52);
}

.rulesx-side-item__label {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.94);
}

.rulesx-summary-tile__value {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 800;
  color: rgba(248, 250, 252, 0.98);
}

.rulesx-side-save {
  justify-content: center;
  white-space: nowrap;
}

.rulesx-side-effects {
  display: grid;
  gap: 12px;
  border: 1px solid #30363d;
  border-radius: 14px;
  background: rgba(13, 17, 23, 0.42);
  overflow: hidden;
}

.rulesx-side-effects > summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(248, 250, 252, 0.96);
}

.rulesx-side-effects > summary::-webkit-details-marker {
  display: none;
}

.rulesx-side-effects__list {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}

.rulesx-hero,
.rulesx-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.rulesx-preset-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.rulesx-preset-grid--compact .rulesx-preset {
  min-height: 92px;
  padding: 14px;
}

.rulesx-preset {
  display: grid;
  gap: 8px;
  text-align: left;
  border: 1px solid rgba(56, 189, 248, 0.14);
  background: rgba(2, 6, 23, 0.24);
  border-radius: 18px;
  padding: 16px;
  color: rgba(226, 232, 240, 0.94);
}

.rulesx-preset strong {
  font-size: 14px;
  color: rgba(248, 250, 252, 0.98);
}

.rulesx-preset span {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(148, 163, 184, 0.95);
}

.rulesx-preset--active {
  border-color: rgba(56, 189, 248, 0.42);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.18) inset;
  background: linear-gradient(180deg, rgba(8, 47, 73, 0.52), rgba(15, 23, 42, 0.42));
}

.rulesx-tone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(56, 189, 248, 0.18);
  background: rgba(15, 23, 42, 0.46);
  color: rgba(248, 250, 252, 0.96);
}

.rulesx-tone--high {
  border-color: rgba(239, 68, 68, 0.32);
  background: rgba(127, 29, 29, 0.22);
}

.rulesx-tone--medium {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(120, 53, 15, 0.20);
}

.rulesx-tone--low {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(20, 83, 45, 0.20);
}

.rulesx-metrics {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.rulesx-metrics--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rulesx-metric {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid #30363d;
  background: rgba(13, 17, 23, 0.52);
}

.rulesx-metric__label {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.94);
}

.rulesx-metric__value {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 800;
  color: rgba(248, 250, 252, 0.98);
}

.rulesx-note {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(59, 130, 246, 0.18);
  background: rgba(59, 130, 246, 0.08);
  color: rgba(191, 219, 254, 0.95);
  font-size: 13px;
  line-height: 1.55;
}

.rulesx-note--warn {
  border-color: rgba(245, 158, 11, 0.24);
  background: rgba(120, 53, 15, 0.18);
  color: rgba(254, 243, 199, 0.96);
}

.rulesx-selectgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(154px, 1fr));
  gap: 10px;
}

.rulesx-selectbtn {
  display: grid;
  gap: 6px;
  text-align: left;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(48, 54, 61, 1);
  background: rgba(13, 17, 23, 0.52);
  color: rgba(226, 232, 240, 0.96);
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.rulesx-selectbtn:hover {
  border-color: rgba(59, 130, 246, 0.32);
  background: rgba(59, 130, 246, 0.08);
}

.rulesx-selectbtn--active {
  border-color: rgba(59, 130, 246, 0.46);
  background: rgba(59, 130, 246, 0.14);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.14) inset;
}

.rulesx-selectbtn--warn:hover {
  border-color: rgba(245, 158, 11, 0.32);
  background: rgba(245, 158, 11, 0.08);
}

.rulesx-selectbtn--warn.rulesx-selectbtn--active {
  border-color: rgba(245, 158, 11, 0.44);
  background: rgba(245, 158, 11, 0.12);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.14) inset;
}

.rulesx-selectbtn__label {
  font-size: 13px;
  font-weight: 800;
  color: rgba(248, 250, 252, 0.98);
}

.rulesx-selectbtn__state {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.94);
}

.rulesx-selectbtn--active .rulesx-selectbtn__state {
  color: rgba(191, 219, 254, 0.96);
}

.rulesx-selectbtn--warn.rulesx-selectbtn--active .rulesx-selectbtn__state {
  color: rgba(253, 230, 138, 0.96);
}

.rulesx-tag-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.rulesx-release-grid {
  display: grid;
  gap: 12px;
}

.rulesx-release-card {
  display: grid;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid #30363d;
  background: rgba(13, 17, 23, 0.52);
}

.rulesx-release-card__meta {
  display: grid;
  gap: 6px;
}

.rulesx-release-card__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rulesx-release-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rulesx-policy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.rulesx-policy-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #30363d;
  background: rgba(13, 17, 23, 0.58);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
  align-content: start;
  min-height: 0;
}

.rulesx-policy-card:hover {
  border-color: rgba(59, 130, 246, 0.24);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

.rulesx-policy-card__head,
.rulesx-policy-card__title {
  display: grid;
  gap: 8px;
}

.rulesx-policy-card__head {
  align-items: start;
}

.rulesx-policy-card__title strong {
  color: rgba(248, 250, 252, 0.98);
  font-size: 14px;
  font-weight: 800;
}

.rulesx-policy-card__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.rulesx-policy-card__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.rulesx-policy-card__quick {
  display: grid;
  gap: 12px;
}

.rulesx-policy-fact {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(48, 54, 61, 1);
  background: rgba(2, 6, 23, 0.22);
}

.rulesx-policy-fact span {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.94);
}

.rulesx-policy-fact strong {
  font-size: 13px;
  color: rgba(248, 250, 252, 0.98);
}

.rulesx-policy-card__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
}

.rulesx-editor-stack {
  display: grid;
  gap: 14px;
}

.rulesx-editor-card {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid #30363d;
  background: rgba(13, 17, 23, 0.54);
}

.modal--rules-editor {
  width: min(920px, 100%);
}

.rulesx-chipbtn {
  justify-self: start;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.24);
  color: rgba(148, 163, 184, 0.96);
  font-size: 12px;
  font-weight: 700;
}

.rulesx-chipbtn--active {
  border-color: rgba(59, 130, 246, 0.42);
  background: rgba(59, 130, 246, 0.18);
  color: rgba(219, 234, 254, 0.98);
}

.rulesx-choicegroup {
  display: grid;
  gap: 8px;
}

.rulesx-choicegroup--triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rulesx-choicegroup--double {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rulesx-choice {
  min-width: 0;
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(48, 54, 61, 1);
  background: rgba(13, 17, 23, 0.52);
  color: rgba(203, 213, 225, 0.94);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.rulesx-choice:hover:not(:disabled) {
  border-color: rgba(59, 130, 246, 0.34);
  background: rgba(59, 130, 246, 0.10);
}

.rulesx-choice--danger {
  border-color: rgba(248, 113, 113, 0.26);
  color: rgba(254, 202, 202, 0.96);
}

.rulesx-choice--danger:hover:not(:disabled) {
  border-color: rgba(248, 113, 113, 0.42);
  background: rgba(248, 113, 113, 0.12);
}

.rulesx-choice--warning {
  border-color: rgba(245, 158, 11, 0.24);
  color: rgba(253, 230, 138, 0.96);
}

.rulesx-choice--warning:hover:not(:disabled) {
  border-color: rgba(245, 158, 11, 0.40);
  background: rgba(245, 158, 11, 0.12);
}

.rulesx-choice--safe {
  border-color: rgba(52, 211, 153, 0.24);
  color: rgba(187, 247, 208, 0.96);
}

.rulesx-choice--safe:hover:not(:disabled) {
  border-color: rgba(52, 211, 153, 0.40);
  background: rgba(52, 211, 153, 0.12);
}

.rulesx-choice--active {
  border-color: rgba(59, 130, 246, 0.48);
  background: rgba(59, 130, 246, 0.18);
  color: rgba(239, 246, 255, 0.98);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.14) inset;
}

.rulesx-choice--danger.rulesx-choice--active {
  border-color: rgba(248, 113, 113, 0.50);
  background: rgba(127, 29, 29, 0.38);
  color: rgba(254, 226, 226, 0.98);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.18) inset;
}

.rulesx-choice--warning.rulesx-choice--active {
  border-color: rgba(245, 158, 11, 0.48);
  background: rgba(120, 53, 15, 0.34);
  color: rgba(254, 243, 199, 0.98);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.18) inset;
}

.rulesx-choice--safe.rulesx-choice--active {
  border-color: rgba(52, 211, 153, 0.48);
  background: rgba(6, 78, 59, 0.34);
  color: rgba(220, 252, 231, 0.98);
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.18) inset;
}

.rulesx-choice:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.rulesx-modebtn {
  min-width: 0;
  flex: 1 1 180px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.18);
  background: rgba(13, 17, 23, 0.48);
  color: rgba(226, 232, 240, 0.96);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.rulesx-modebtn--active {
  border-color: rgba(59, 130, 246, 0.48);
  background: rgba(59, 130, 246, 0.18);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.14) inset;
}

.rulesx-tagbtn {
  display: grid;
  gap: 8px;
  text-align: left;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.18);
  padding: 14px;
  color: rgba(226, 232, 240, 0.95);
}

.rulesx-tagbtn strong {
  font-size: 14px;
  font-weight: 800;
  color: rgba(248, 250, 252, 0.98);
}

.rulesx-tagbtn span {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(148, 163, 184, 0.95);
}

.rulesx-tagbtn--active {
  border-color: rgba(56, 189, 248, 0.34);
  background: linear-gradient(180deg, rgba(8, 47, 73, 0.44), rgba(15, 23, 42, 0.34));
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.14) inset;
}

.rulesx-inline-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.rulesx-inline-fields--compact {
  gap: 10px;
}

.rulesx-field {
  display: grid;
  gap: 6px;
}

.rulesx-runtime-grid,
.rulesx-weight-list,
.rulesx-impact-list,
.rulesx-help-list {
  margin-top: 14px;
  display: grid;
  gap: 14px;
}

.rulesx-runtime-card,
.rulesx-impact-item,
.rulesx-help-item,
.rulesx-weight-row {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid #30363d;
  background: rgba(13, 17, 23, 0.54);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.rulesx-runtime-card:hover,
.rulesx-impact-item:hover,
.rulesx-help-item:hover,
.rulesx-weight-row:hover,
.rulesx-behavior-card:hover {
  border-color: rgba(59, 130, 246, 0.24);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

.rulesx-runtime-head,
.rulesx-weight-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.rulesx-runtime-head strong,
.rulesx-impact-title,
.rulesx-help-item strong {
  color: rgba(248, 250, 252, 0.98);
  font-size: 15px;
  font-weight: 800;
}

.rulesx-weight-meta {
  display: grid;
  gap: 6px;
}

.rulesx-weight-meta strong {
  font-size: 15px;
  font-weight: 800;
  color: rgba(248, 250, 252, 0.98);
}

.rulesx-behavior-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.rulesx-behavior-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid #30363d;
  background: rgba(13, 17, 23, 0.56);
  display: grid;
  gap: 12px;
}

.rulesx-behavior-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.rulesx-behavior-card__title {
  color: rgba(248, 250, 252, 0.98);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}

.rulesx-behavior-seg {
  display: inline-grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.rulesx-behavior-seg__btn {
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.16);
  color: rgba(226, 232, 240, 0.94);
  border-radius: 999px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.rulesx-behavior-seg__btn:hover {
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.22);
}

.rulesx-behavior-seg__btn--active {
  border-color: rgba(56, 189, 248, 0.36);
  background: linear-gradient(180deg, rgba(8, 47, 73, 0.48), rgba(15, 23, 42, 0.34));
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.16) inset;
}

.rulesx-behavior-meta {
  display: grid;
  gap: 10px;
}

.rulesx-behavior-meta__item {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid #30363d;
  background: rgba(13, 17, 23, 0.44);
}

.rulesx-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rulesx-summary__item {
  min-width: 120px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid #30363d;
  background: rgba(13, 17, 23, 0.5);
}

.rulesx-summary__label {
  display: block;
  font-size: 11px;
  color: rgba(148, 163, 184, 0.94);
}

.rulesx-summary__value {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  color: rgba(248, 250, 252, 0.98);
}

.rulesx-behavior-meta__item strong {
  color: rgba(248, 250, 252, 0.98);
  font-size: 13px;
  font-weight: 800;
}

.rulesx-behavior-meta__item span {
  color: rgba(148, 163, 184, 0.95);
  font-size: 13px;
  line-height: 1.7;
}

.rulesx-advanced {
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.18);
  overflow: hidden;
}

.rulesx-advanced summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  color: rgba(248, 250, 252, 0.98);
  font-weight: 800;
}

.rulesx-advanced summary::-webkit-details-marker {
  display: none;
}

.rulesx-advanced__body {
  padding: 0 16px 16px;
}

.rulesx-suggestion {
  color: rgba(191, 219, 254, 0.92);
  font-size: 12px;
  line-height: 1.6;
}

.rules-slider {
  display: grid;
  gap: 8px;
}

.rules-slider__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.rules-slider__label {
  color: rgba(226, 232, 240, 0.95);
  font-size: 13px;
  font-weight: 700;
}

.rules-slider__value {
  color: rgba(191, 219, 254, 0.98);
  font-size: 13px;
}

.rules-slider__range {
  width: 100%;
  accent-color: #3b82f6;
}

.rules-slider__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rules-slider__foot .input {
  flex: 0 0 120px;
  min-width: 120px;
}

@media (max-width: 980px) {
  .rulesx-workbench {
    grid-template-columns: 1fr;
  }

  .rulesx-anchorbar,
  .rulesx-sidebar {
    position: static;
  }

  .rulesx-hero,
  .rulesx-grid,
  .rulesx-inline-fields,
  .rulesx-tag-grid,
  .rulesx-preset-grid,
  .rulesx-policy-card__grid,
  .rulesx-policy-card__facts {
    grid-template-columns: 1fr;
  }

  .rulesx-policy-grid {
    grid-template-columns: 1fr;
  }

  .rulesx-summary-grid {
    grid-template-columns: 1fr;
  }

  .rulesx-choicegroup--triple,
  .rulesx-choicegroup--double {
    grid-template-columns: 1fr;
  }

  .rulesx-behavior-grid {
    grid-template-columns: 1fr;
  }

  .rulesx-metrics--compact {
    grid-template-columns: 1fr;
  }

  .rules-slider__foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .rules-slider__foot .input {
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
  }

  .rulesx-behavior-seg {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.callout {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.30);
  background: rgba(56, 189, 248, 0.10);
}
.callout__title { font-weight: 700; margin-bottom: 8px; }
.callout__key {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(8, 12, 22, 0.48);
  user-select: text;
  overflow: auto;
}

/* Docs (Deployment Guide) */
.docs-split {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 14px;
}
.docs-nav {
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(8, 12, 22, 0.28);
  border-radius: 14px;
  padding: 12px;
  height: fit-content;
}
.docs-nav__title {
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(148, 163, 184, 0.95);
  margin-bottom: 10px;
}
.docs-nav__item {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(8, 12, 22, 0.46);
  color: rgba(226, 232, 240, 0.95);
  border-radius: 12px;
  padding: 10px 10px;
  cursor: pointer;
  font-weight: 700;
  margin-bottom: 8px;
}
.docs-nav__item:hover {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.10);
}
.docs-nav__item--active {
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(56, 189, 248, 0.16);
}
.docs-main__bar {
  justify-content: space-between;
  margin-bottom: 10px;
}
.docs-main__path {
  color: rgba(203, 213, 225, 0.95);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.docs-frame {
  width: 100%;
  height: 74vh;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  background: rgba(8, 12, 22, 0.55);
}
@media (max-width: 980px) {
  .docs-split { grid-template-columns: 1fr; }
  .docs-frame { height: 72vh; }
}

.toast-stack {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: min(420px, calc(100vw - 32px));
  display: grid;
  gap: 10px;
  z-index: 99;
}
.toast {
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(8, 12, 22, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.toast__title { font-weight: 700; }
.toast__detail { margin-top: 4px; color: rgba(203, 213, 225, 0.9); font-size: 13px; }
.toast__meta { margin-top: 6px; font-size: 11px; color: var(--muted); }
.toast--ok { border-color: rgba(34, 197, 94, 0.36); }
.toast--danger { border-color: rgba(239, 68, 68, 0.36); }
.toast--warn { border-color: rgba(245, 158, 11, 0.36); }

/* Device Detail UI helpers */
.help {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.22);
  background: rgba(2,6,23,0.30);
  color: rgba(226,232,240,0.92);
  font-size: 12px;
  font-weight: 900;
  cursor: help;
  margin-left: 6px;
}

.kvgrid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
  margin-top: 10px;
}
.kvgrid__item {
  grid-column: span 4;
  border: 1px solid rgba(148,163,184,0.14);
  background: rgba(2,6,23,0.26);
  border-radius: 16px;
  padding: 10px 12px;
  min-width: 0;
}
.kvgrid__item--wide { grid-column: span 8; }
.kvgrid__k { font-size: 12px; color: rgba(148,163,184,0.92); text-transform: uppercase; letter-spacing: 0.14em; }
.kvgrid__v { margin-top: 7px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.statusgrid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
  margin-top: 10px;
}
.statusgrid__item {
  grid-column: span 4;
  border: 1px solid rgba(148,163,184,0.14);
  background: rgba(2,6,23,0.26);
  border-radius: 16px;
  padding: 10px 12px;
  min-width: 0;
}
.statusgrid__item--wide { grid-column: span 12; }
.statusgrid__k { font-size: 12px; color: rgba(148,163,184,0.92); text-transform: uppercase; letter-spacing: 0.14em; }
.statusgrid__v { margin-top: 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.statgrid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
  margin-top: 10px;
}
.stat {
  grid-column: span 3;
  border: 1px solid rgba(148,163,184,0.14);
  background: rgba(2,6,23,0.26);
  border-radius: 16px;
  padding: 10px 12px;
  min-width: 0;
}
.stat__k { font-size: 12px; color: rgba(148,163,184,0.92); text-transform: uppercase; letter-spacing: 0.14em; }
.stat__v { margin-top: 7px; font-weight: 900; font-size: 18px; }
.stat__h { margin-top: 6px; }

@media (max-width: 980px) {
  .device-risk-shell { grid-template-columns: 1fr; }
  .statecard-grid,
  .device-risk-grid,
  .snapshot-grid { grid-template-columns: 1fr; }
  .device-risk-item,
  .device-risk-item--wide,
  .snapshot-item,
  .snapshot-item--wide {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }
  .kvgrid__item { grid-column: span 12; }
  .kvgrid__item--wide { grid-column: span 12; }
  .statusgrid__item { grid-column: span 12; }
  .stat { grid-column: span 12; }
  .evidence-overview__item,
  .history-overview__item,
  .evidence-grid > .evidence-card,
  .evidence-grid--env > .evidence-card { grid-column: span 12; }
}

.loader {
  position: fixed;
  left: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 7px;
  z-index: 98;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(8, 12, 22, 0.62);
  backdrop-filter: blur(10px);
}
.loader__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.85);
  animation: pulse 900ms ease infinite;
}
.loader__dot:nth-child(2) { animation-delay: 120ms; }
.loader__dot:nth-child(3) { animation-delay: 240ms; }
.loader__label { margin-left: 6px; font-size: 12px; color: var(--muted); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { transform: translateY(0); opacity: 0.65; }
  50% { transform: translateY(-2px); opacity: 1; }
}

/* Auth page */
.auth-bg {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
}

/* Landing page */
.landing {
  min-height: 100vh;
  background:
    radial-gradient(900px 500px at 20% 0%, rgba(56,189,248,0.20) 0%, rgba(56,189,248,0) 60%),
    radial-gradient(900px 500px at 90% 20%, rgba(245,158,11,0.14) 0%, rgba(245,158,11,0) 60%),
    var(--bg);
  color: var(--text);
}
.landing__top {
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.landing__brand { display: flex; gap: 12px; align-items: center; }
.landing__mark {
  width: 44px; height: 44px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(56,189,248,0.22), rgba(245,158,11,0.16));
  border: 1px solid rgba(148,163,184,0.22);
  display: grid; place-items: center;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.landing__title { font-size: 16px; font-weight: 700; }
.landing__sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.landing__right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.landing__main { max-width: 1100px; margin: 0 auto; padding: 18px 18px 72px; }
.landing__hero {
  padding: 22px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(148,163,184,0.22);
  box-shadow: 0 22px 60px rgba(2,6,23,0.55);
}
.landing__h1 { margin: 0; font-size: 30px; line-height: 1.15; }
.landing__p { margin: 10px 0 0; color: var(--muted); max-width: 68ch; }
.landing__cta { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.landing__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  margin-top: 14px;
}
.landing__grid .card { grid-column: span 4; }
@media (max-width: 900px) {
  .landing__grid .card { grid-column: span 12; }
  .landing__h1 { font-size: 24px; }
}

/* Dashboard hero (Cloudflare-ish) */
.dashhero {
  position: relative;
  overflow: hidden;
  padding: 18px;
  background:
    radial-gradient(1200px 500px at 20% 0%, rgba(56,189,248,0.18) 0%, rgba(56,189,248,0) 60%),
    radial-gradient(900px 500px at 90% 20%, rgba(245,158,11,0.14) 0%, rgba(245,158,11,0) 60%),
    rgba(15, 23, 42, 0.85);
}
.dashhero::before {
  content: "";
  position: absolute;
  inset: -40px -20px auto auto;
  width: 360px;
  height: 360px;
  background: conic-gradient(from 180deg, rgba(56,189,248,0.0), rgba(56,189,248,0.18), rgba(245,158,11,0.12), rgba(56,189,248,0.0));
  filter: blur(18px);
  opacity: 0.9;
  transform: rotate(8deg);
}
.dashhero__row { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; align-items: stretch; }
.dashhero__title { font-size: 26px; margin: 0; letter-spacing: 0.2px; }
.dashhero__sub { color: var(--muted); margin-top: 8px; max-width: 72ch; }
.dashchips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.dashchip {
  border: 1px solid rgba(148,163,184,0.18);
  border-radius: 14px;
  background: rgba(8, 12, 22, 0.42);
  padding: 10px 12px;
}
.dashchip__k { font-size: 12px; color: rgba(148,163,184,0.92); text-transform: uppercase; letter-spacing: 0.14em; }
.dashchip__v { margin-top: 6px; font-weight: 800; font-size: 22px; }
.dashchip__hint { color: var(--muted); font-size: 12px; margin-top: 4px; }
.dashcap {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  margin-top: 14px;
}
.cap {
  grid-column: span 4;
  border: 1px solid rgba(148,163,184,0.18);
  border-radius: 16px;
  background: rgba(8, 12, 22, 0.42);
  padding: 14px;
}
.cap__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cap__title { font-weight: 800; }
.cap__icon {
  width: 34px; height: 34px; border-radius: 14px;
  display: grid; place-items: center;
  border: 1px solid rgba(148,163,184,0.22);
  background: linear-gradient(135deg, rgba(56,189,248,0.18), rgba(245,158,11,0.12));
}
.cap__body { margin-top: 10px; }
.kvmini { display: grid; gap: 6px; }
.kvmini__row { display: flex; justify-content: space-between; gap: 10px; }
.kvmini__row { min-width: 0; }
.kvmini__k { color: var(--muted); font-size: 12px; max-width: 48%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kvmini__v { font-family: var(--mono); color: rgba(226,232,240,0.92); font-size: 12px; text-align: right; max-width: 52%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pipe {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}
.pipe__step {
  font-family: var(--mono);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.18);
  background: rgba(2,6,23,0.35);
}
.pipe__arrow { color: rgba(148,163,184,0.7); }
.barline {
  height: 10px;
  border-radius: 999px;
  background: rgba(148,163,184,0.12);
  overflow: hidden;
  border: 1px solid rgba(148,163,184,0.10);
}
.barline span {
  display: block;
  height: 100%;
  width: 50%;
  background: linear-gradient(90deg, rgba(34,197,94,0.95), rgba(56,189,248,0.95));
}

.subcard {
  border: 1px solid rgba(148,163,184,0.14);
  background: rgba(2,6,23,0.22);
  border-radius: 16px;
  padding: 12px;
  overflow: hidden;
}
.subcard__title {
  font-weight: 800;
  color: rgba(226, 232, 240, 0.95);
  margin-bottom: 10px;
}
.chartbox {
  height: 220px;
  overflow: hidden;
  border-radius: 12px;
}
.chartbox canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.opshero {
  display: grid;
  gap: 18px;
  padding: 18px;
  background:
    radial-gradient(1200px 420px at 18% 0%, rgba(56, 189, 248, 0.16) 0%, rgba(56, 189, 248, 0) 65%),
    radial-gradient(820px 380px at 100% 0%, rgba(245, 158, 11, 0.10) 0%, rgba(245, 158, 11, 0) 60%),
    rgba(15, 23, 42, 0.85);
}
.opshero__lead {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.opshero__kicker {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.92);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.opshero__title {
  margin: 6px 0 10px;
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: 0.2px;
}
.opshero__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.opsstats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.opsstat {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  background: rgba(8, 12, 22, 0.42);
  padding: 14px;
}
.opsstat__label {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.92);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.opsstat__value {
  margin-top: 8px;
  font-size: 30px;
  font-weight: 800;
}
.opsstat__hint {
  margin-top: 6px;
}
.opshero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.opslist {
  display: grid;
  gap: 10px;
}
.opslist__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.24);
}
.opslist__value {
  font-family: var(--mono);
  color: rgba(226, 232, 240, 0.96);
}
.focuslist {
  display: grid;
  gap: 10px;
}
.focusitem {
  font: inherit;
  text-align: left;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.24);
  padding: 12px;
  color: inherit;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}
.focusitem:hover {
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.32);
  background: rgba(56, 189, 248, 0.08);
}
.focusitem__title {
  font-weight: 700;
}
.focusitem__detail {
  margin-top: 6px;
  color: var(--muted);
}
.agentdash-hero {
  gap: 20px;
}
.agentdash-hero__head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 18px;
  align-items: start;
}
.agentdash-hero__lead {
  min-width: 0;
}
.agentdash-hero__status {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.agentdash-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.agentdash-hero__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.agentdash-hero__metric {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  background: rgba(8, 12, 22, 0.42);
  padding: 15px 16px;
}
.agentdash-hero__metric-label {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.92);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.agentdash-hero__metric-value {
  margin-top: 10px;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  color: rgba(241, 245, 249, 0.98);
}
.agentdash-hero__metric-hint {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(148, 163, 184, 0.9);
}
.agentdash-stats {
  margin-top: 14px;
}
.agentdash-quota__percent {
  font-size: 28px;
  font-weight: 800;
  color: rgba(241, 245, 249, 0.98);
}
.agentdash-quota__bar {
  margin-top: 16px;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.14);
}
.agentdash-quota__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.95), rgba(14, 165, 233, 0.95));
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.26);
  transition: width 240ms ease;
}
.agentdash-quota__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.agentdash-health {
  margin-top: 14px;
}
.agentdash-trend__chart {
  margin-top: 18px;
  overflow-x: auto;
}
.agentdash-trend__svg {
  display: block;
  width: 100%;
  height: 180px;
  min-width: 640px;
}
.agentdash-trend__gridline {
  fill: none;
  stroke: rgba(148, 163, 184, 0.22);
  stroke-width: 1;
}
.agentdash-trend__area {
  fill: url(#agentdashTrendFill);
}
.agentdash-trend__line {
  fill: none;
  stroke: rgba(56, 189, 248, 0.96);
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 4px 14px rgba(14, 165, 233, 0.2));
}
.agentdash-trend__dot {
  fill: rgba(14, 165, 233, 1);
  stroke: rgba(15, 23, 42, 1);
  stroke-width: 0.9;
}
.agentdash-trend__days {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  min-width: 640px;
}
.agentdash-trend__item {
  min-width: 0;
  text-align: center;
}
.agentdash-trend__count {
  font-size: 12px;
  color: rgba(241, 245, 249, 0.96);
}
.agentdash-trend__date {
  font-size: 11px;
  color: rgba(148, 163, 184, 0.92);
}
.agentdash-trend__meta {
  display: grid;
  gap: 2px;
  font-size: 10px;
  line-height: 1.35;
  text-align: center;
  color: rgba(148, 163, 184, 0.9);
}
.agentdash-empty {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 180px;
  border: 1px dashed rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.22);
  margin-top: 16px;
  text-align: center;
}
.agentdash-empty--small {
  min-height: 112px;
}
.agentdash-empty__title {
  font-weight: 800;
  color: rgba(226, 232, 240, 0.96);
}
.agentdash-list {
  margin-top: 12px;
}
.agentdash-list__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.agentdash-list__main {
  min-width: 0;
  flex: 1 1 auto;
}
.agentdash-list__tail {
  display: flex;
  align-items: center;
  gap: 10px;
}
.agentdash-list__value {
  font-size: 15px;
  font-weight: 800;
  color: rgba(241, 245, 249, 0.98);
}
.agentdash-list__sub {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  font-size: 11px;
  color: rgba(148, 163, 184, 0.92);
}

@media (max-width: 1120px) {
  .agentdash-hero__head,
  .agentdash-hero__metrics {
    grid-template-columns: 1fr;
  }
  .agentdash-hero__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .agentdash-quota__grid {
    grid-template-columns: 1fr;
  }
  .agentdash-list__row,
  .agentdash-list__tail {
    align-items: flex-start;
    flex-direction: column;
  }
}

.filterbar {
  display: grid;
  gap: 14px;
}
.filterbar__section {
  display: grid;
  gap: 10px;
}
.filterbar__label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.94);
}
.filterbar__quickviews {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.filterpreset {
  display: grid;
  gap: 6px;
  text-align: left;
  min-height: 82px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(13, 17, 23, 0.44);
  color: rgba(226, 232, 240, 0.96);
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}
.filterpreset:hover {
  transform: translateY(-1px);
  border-color: rgba(59, 130, 246, 0.28);
  background: rgba(59, 130, 246, 0.08);
}
.filterpreset--active {
  border-color: rgba(59, 130, 246, 0.42);
  background: linear-gradient(180deg, rgba(8, 47, 73, 0.40), rgba(15, 23, 42, 0.34));
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.14) inset;
}
.filterpreset--high {
  border-color: rgba(248, 113, 113, 0.18);
}
.filterpreset--high.filterpreset--active {
  border-color: rgba(248, 113, 113, 0.36);
  background: linear-gradient(180deg, rgba(127, 29, 29, 0.32), rgba(15, 23, 42, 0.34));
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.14) inset;
}
.filterpreset--medium {
  border-color: rgba(245, 158, 11, 0.18);
}
.filterpreset--medium.filterpreset--active {
  border-color: rgba(245, 158, 11, 0.34);
  background: linear-gradient(180deg, rgba(120, 53, 15, 0.30), rgba(15, 23, 42, 0.34));
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.14) inset;
}
.filterpreset__title {
  font-size: 14px;
  font-weight: 800;
  color: rgba(248, 250, 252, 0.98);
}
.filterpreset__summary {
  font-size: 12px;
  line-height: 1.55;
  color: rgba(148, 163, 184, 0.95);
}
.filterbar__hint {
  margin-top: -2px;
}
.filterbar__form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filterbar__signals {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filterchip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(13, 17, 23, 0.42);
  color: rgba(203, 213, 225, 0.94);
  font-size: 12px;
  font-weight: 700;
}

.filterchip--high {
  border-color: rgba(248, 113, 113, 0.20);
}

.filterchip--medium {
  border-color: rgba(245, 158, 11, 0.18);
}

.filterchip--active {
  border-color: rgba(59, 130, 246, 0.42);
  background: rgba(59, 130, 246, 0.18);
  color: rgba(239, 246, 255, 0.98);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.14) inset;
}

.toolbar-meta {
  margin-top: -2px;
}

.device-tags__hint {
  margin-top: 6px;
  font-size: 12px;
}

.modal--device {
  width: min(760px, calc(100vw - 24px));
}
.modal--snapshot {
  width: min(1040px, calc(100vw - 24px));
}
.modal--sdk-config {
  width: min(1120px, calc(100vw - 24px));
}
.modal-snapshot-grid {
  margin-top: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.detailgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.detailstat {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.24);
  padding: 12px;
  min-width: 0;
}
.detailstat--wide {
  grid-column: span 2;
}
.detailstat__label {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.92);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.detailstat__value {
  margin-top: 8px;
  min-width: 0;
  word-break: break-all;
}

@media (max-width: 1280px) {
  .filterbar__quickviews {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .filterbar__quickviews {
    grid-template-columns: 1fr;
  }
}

.compare-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.compare-summary-card {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.24);
}

.compare-summary-card__label {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.92);
}

.compare-summary-card__value {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 800;
  color: rgba(248, 250, 252, 0.98);
}

.compare-card-list {
  display: grid;
  gap: 10px;
}

.compare-card {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.24);
}

.compare-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.compare-card__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.compare-card__item {
  min-width: 0;
}

.compare-card__label {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.92);
}

.compare-card__value {
  margin-top: 6px;
  word-break: break-all;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.formstack {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}
.note-preview {
  margin-top: 8px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.24);
  white-space: pre-wrap;
  word-break: break-word;
}
.warningbox {
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(239, 68, 68, 0.30);
  background: rgba(239, 68, 68, 0.10);
}
.warningbox__title {
  font-weight: 700;
  margin-bottom: 6px;
}
.warningbox__foot {
  margin-top: 8px;
  color: rgba(254, 202, 202, 0.94);
  font-size: 13px;
}
@media (max-width: 900px) {
  .dashhero__row { grid-template-columns: 1fr; }
  .cap { grid-column: span 12; }
  .dashchips { grid-template-columns: 1fr; }
  .history-detail__card { grid-column: span 12; }
  .opshero__lead,
  .opshero__grid {
    grid-template-columns: 1fr;
    display: grid;
  }
  .opshero__actions {
    justify-content: flex-start;
  }
  .opsstats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detailgrid {
    grid-template-columns: 1fr;
  }
  .detailstat--wide {
    grid-column: span 1;
  }
  .compare-summary-grid,
  .compare-card__grid {
    grid-template-columns: 1fr;
  }
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: grid;
  align-items: start;
  justify-items: center;
  z-index: 1000;
  padding: 18px;
  overflow: auto;
}
.modal {
  width: min(760px, 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  align-self: start;
  justify-self: center;
  max-height: calc(100vh - 36px);
  margin: 0 auto;
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,0.22);
  background: rgba(15, 23, 42, 0.92);
  box-shadow: 0 28px 90px rgba(2, 6, 23, 0.70);
  color: rgba(226, 232, 240, 0.96);
  overflow: hidden;
}
.modal__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid rgba(148,163,184,0.14); }
.modal__title { font-weight: 800; }
.modal__body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 14px 16px;
  overflow: auto;
}
.modal__foot { padding: 14px 16px; border-top: 1px solid rgba(148,163,184,0.14); display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.auth-card {
  width: min(520px, 100%);
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: linear-gradient(180deg, rgba(16, 24, 42, 0.86), rgba(8, 12, 22, 0.66));
  box-shadow: var(--shadow);
  padding: 18px;
  backdrop-filter: blur(10px);
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 4px 12px;
}
.auth-mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px;
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03));
  border: 1px solid rgba(148, 163, 184, 0.20);
  overflow: hidden;
}
.auth-mark__logo { width: 100%; height: 100%; object-fit: contain; }
.auth-title { font-size: 18px; font-weight: 800; }
.auth-subtitle { font-size: 12px; color: var(--muted); margin-top: 2px; }
.auth-form { padding: 6px 4px 2px; display: grid; gap: 10px; }
.label { font-size: 12px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.auth-error { color: rgba(239, 68, 68, 0.95); font-size: 13px; margin-top: 2px; }
.auth-foot { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(148, 163, 184, 0.12); font-size: 13px; }
.auth-lang { margin-left: auto; }

@media (max-width: 980px) {
  .card { grid-column: span 12; }
  .table { min-width: 0; }
}

@media (max-width: 860px) {
  .shellscrim--open { display: block; }
  .sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    height: 100vh;
    z-index: 50;
    transition: left 180ms ease;
  }
  .sidebar--open { left: 0; }
  .sidebar__close { display: inline-block; }
  .topbar {
    flex-direction: column;
    align-items: stretch;
  }
  .topbar__menu { display: inline-flex; }
  .topbar__actions {
    justify-content: space-between;
  }
  .main { padding: 16px; }
  .input { min-width: 0; }
  .detail-navcard { top: 132px; }
}

@media (max-width: 640px) {
  .topbar__title { font-size: 20px; }
  .topbar__actions { gap: 8px; }
  .opsstats { grid-template-columns: 1fr; }
  .opshero__actions .btn,
  .detail-actions .btn,
  .modal__foot .btn {
    width: 100%;
  }
}

/* Marketing Website (Landing + Auth) */
.site {
  position: relative;
  min-height: 100vh;
}

/* Settings CMS rebuild */
.settingsx-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.settingsx-state {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(148, 163, 184, 0.06);
  color: rgba(226, 232, 240, 0.90);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.settingsx-state.is-dirty {
  border-color: rgba(250, 204, 21, 0.24);
  background: rgba(250, 204, 21, 0.10);
  color: rgba(254, 240, 138, 0.96);
}

.settingsx-tabsbar {
  align-items: center;
}

.settingsx-statusline {
  min-width: 72px;
  text-align: right;
}

.settingsx-layout {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}

.settingsx-visual {
  margin-top: 16px;
  display: grid;
  gap: 16px;
}

.settingsx-groups {
  display: grid;
  gap: 16px;
}

.settingsx-groups__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.settingsx-groupbar {
  height: 100%;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.10);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.46), rgba(15, 23, 42, 0.22));
  padding: 14px;
}

.settingsx-groupbar__head {
  margin-bottom: 10px;
  color: rgba(226, 232, 240, 0.96);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.settingsx-groupbar__items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.settingsx-pillnav {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.56);
  color: rgba(203, 213, 225, 0.94);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.settingsx-pillnav:hover {
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.24);
  background: rgba(56, 189, 248, 0.08);
}

.settingsx-pillnav.is-active {
  border-color: rgba(56, 189, 248, 0.36);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.16), rgba(56, 189, 248, 0.08));
  color: rgba(240, 249, 255, 0.98);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.08);
}

.settingsx-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}

.settingsx-shell--single {
  grid-template-columns: minmax(0, 1fr);
}

.settingsx-nav,
.settingsx-aside {
  position: sticky;
  top: 18px;
}

.settingsx-nav__title {
  font-size: 14px;
  font-weight: 800;
  color: rgba(226, 232, 240, 0.96);
}

.settingsx-nav__group + .settingsx-nav__group {
  margin-top: 16px;
}

.settingsx-nav__eyebrow,
.settingsx-preview__eyebrow {
  color: rgba(148, 163, 184, 0.92);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.settingsx-nav__item {
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(8, 12, 22, 0.24);
  color: rgba(226, 232, 240, 0.88);
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.settingsx-nav__item:hover {
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.22);
  background: rgba(56, 189, 248, 0.06);
}

.settingsx-nav__item.is-active {
  border-color: rgba(56, 189, 248, 0.36);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.14), rgba(56, 189, 248, 0.06));
}

.settingsx-main {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.settingsx-main--single {
  max-width: none;
}

.settingsx-section {
  scroll-margin-top: 18px;
}

.settingsx-section__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.settingsx-chip {
  flex: 0 0 auto;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  background: rgba(56, 189, 248, 0.08);
  color: rgba(186, 230, 253, 0.96);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.settingsx-chip--warn {
  border-color: rgba(250, 204, 21, 0.20);
  background: rgba(250, 204, 21, 0.08);
  color: rgba(254, 240, 138, 0.96);
}

.settingsx-chip--hot {
  border-color: rgba(34, 197, 94, 0.20);
  background: rgba(34, 197, 94, 0.08);
  color: rgba(187, 247, 208, 0.96);
}

.settingsx-preview {
  display: grid;
  gap: 12px;
}

.settingsx-preview__hero {
  min-height: 200px;
  display: grid;
  align-content: end;
  gap: 10px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.72)),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.18), transparent 42%),
    rgba(8, 12, 22, 0.42);
  background-size: cover;
  background-position: center;
}

.settingsx-preview__kicker {
  color: rgba(125, 211, 252, 0.92);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.settingsx-preview__title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.12;
  color: rgba(248, 250, 252, 0.98);
}

.settingsx-preview__desc {
  color: rgba(203, 213, 225, 0.92);
  font-size: 13px;
  line-height: 1.7;
}

.settingsx-kv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.settingsx-kv:last-child {
  border-bottom: 0;
}

.settingsx-kv span {
  color: rgba(148, 163, 184, 0.90);
  font-size: 12px;
}

.settingsx-kv strong {
  color: rgba(248, 250, 252, 0.96);
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

@media (max-width: 1180px) {
  .settingsx-layout,
  .settingsx-shell,
  .settingsx-groups__grid {
    grid-template-columns: 1fr;
  }

  .settingsx-nav,
  .settingsx-aside {
    position: static;
  }
}

@media (max-width: 640px) {
  .settingsx-groupbar {
    padding: 12px;
  }

  .settingsx-groupbar__items {
    gap: 8px;
  }

  .settingsx-pillnav {
    width: 100%;
    justify-content: center;
  }

  .card--quarter {
    grid-column: span 12;
  }

  .settingsx-topbar,
  .settingsx-section__head {
    justify-content: flex-start;
  }

  .settingsx-chip {
    margin-top: 4px;
  }
}
.sitebg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.sitebg__grid {
  position: absolute;
  inset: -20%;
  background:
    linear-gradient(rgba(148,163,184,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,0.10) 1px, transparent 1px);
  background-size: 52px 52px;
  transform: perspective(900px) rotateX(58deg) translateY(-18%);
  transform-origin: 50% 0;
  opacity: 0.28;
  filter: blur(0.2px);
  animation: gridDrift 18s linear infinite;
}
.sitebg__orb {
  position: absolute;
  width: 720px;
  height: 720px;
  border-radius: 999px;
  filter: blur(46px);
  opacity: 0.62;
}
.sitebg__orb--a { left: -180px; top: -220px; background: radial-gradient(circle at 30% 30%, rgba(56,189,248,0.62), rgba(56,189,248,0) 60%); }
.sitebg__orb--b { right: -220px; top: -160px; background: radial-gradient(circle at 40% 40%, rgba(34,197,94,0.46), rgba(34,197,94,0) 62%); }
.sitebg__orb--c { right: -260px; bottom: -280px; background: radial-gradient(circle at 35% 35%, rgba(245,158,11,0.42), rgba(245,158,11,0) 62%); }
.sitebg__spark {
  position: absolute;
  width: 420px;
  height: 2px;
  background: linear-gradient(90deg, rgba(56,189,248,0), rgba(56,189,248,0.65), rgba(56,189,248,0));
  opacity: 0.28;
  transform: rotate(-18deg);
  animation: spark 5.5s ease-in-out infinite;
}
.sitebg__spark--1 { left: 8%; top: 22%; animation-delay: 0s; }
.sitebg__spark--2 { left: 54%; top: 16%; animation-delay: 1.1s; opacity: 0.20; }
.sitebg__spark--3 { left: 30%; top: 64%; animation-delay: 2.1s; opacity: 0.18; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.56);
  background: rgba(5, 7, 10, 0.76);
  backdrop-filter: blur(14px);
}
.site-nav--compact { border-bottom-color: rgba(148,163,184,0.12); }
.site-brand { display: flex; align-items: center; gap: 12px; min-width: 260px; }
.site-brand__mark {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03));
  border: 1px solid rgba(148, 163, 184, 0.20);
  overflow: hidden;
}
.site-brand__logo { width: 100%; height: 100%; object-fit: contain; }
.site-brand__title { font-weight: 900; letter-spacing: 0.2px; }
.site-brand__sub { margin-top: 2px; font-size: 12px; color: rgba(148,163,184,0.95); }
.site-nav__links { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.site-link {
  border: 1px solid transparent;
  background: transparent;
  color: rgba(226,232,240,0.92);
  padding: 10px 10px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 13px;
  transition: background 140ms ease, border-color 140ms ease;
}
.site-link:hover { background: rgba(56,189,248,0.10); border-color: rgba(56,189,248,0.18); }
.site-nav__right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.site-main {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 18px 76px;
}
.site-main--landing {
  max-width: 1280px;
  padding-top: 20px;
}
.site-main--landing .section {
  scroll-margin-top: 96px;
}

.banner {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 18px;
  align-items: stretch;
  padding: 24px 0 10px;
}
.banner__content,
.banner__visual {
  border-radius: 26px;
  border: 1px solid rgba(148,163,184,0.14);
  box-shadow: 0 26px 90px rgba(2,6,23,0.56);
}
.banner--immersive {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  padding: 24px;
  align-items: stretch;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  background-size: cover;
  background-position: center center;
}
.banner__media {
  position: absolute;
  inset: -8%;
  background-image: inherit;
  background-size: cover;
  background-position: center center;
  opacity: 0.72;
  transform: scale(1.08);
  animation: bannerFloat 22s ease-in-out infinite;
}
.banner__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 7, 18, 0.88) 0%, rgba(4, 9, 18, 0.54) 46%, rgba(3, 7, 18, 0.86) 100%),
    radial-gradient(540px 260px at 18% 14%, rgba(56, 189, 248, 0.18), rgba(56, 189, 248, 0) 72%),
    radial-gradient(520px 240px at 88% 82%, rgba(34, 197, 94, 0.14), rgba(34, 197, 94, 0) 72%);
}
.banner__content {
  padding: 26px;
  background:
    radial-gradient(760px 260px at 0% 0%, rgba(56,189,248,0.16), rgba(56,189,248,0) 70%),
    linear-gradient(180deg, rgba(18,24,42,0.88), rgba(8,12,22,0.62));
}
.banner__visual {
  padding: 18px;
  background:
    radial-gradient(520px 220px at 100% 0%, rgba(34,197,94,0.12), rgba(34,197,94,0) 72%),
    linear-gradient(180deg, rgba(10,16,30,0.88), rgba(8,12,22,0.64));
  display: grid;
  gap: 12px;
}
.banner__content--immersive,
.banner__visual--immersive {
  position: relative;
  z-index: 1;
  min-width: 0;
  backdrop-filter: blur(10px);
}
.banner__content--immersive {
  background: linear-gradient(180deg, rgba(10, 16, 30, 0.62), rgba(8, 12, 22, 0.44));
  border-color: rgba(148, 163, 184, 0.16);
}
.banner__visual--immersive {
  background: linear-gradient(180deg, rgba(6, 11, 20, 0.62), rgba(6, 11, 20, 0.40));
  border-color: rgba(148, 163, 184, 0.16);
}
.banner__eyebrow {
  font-size: 12px;
  color: rgba(148,163,184,0.96);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.banner__title {
  margin: 14px 0 0;
  font-size: 50px;
  line-height: 1.04;
  letter-spacing: 0.2px;
}
.banner__title--immersive {
  max-width: 12ch;
  font-size: 58px;
  line-height: 0.98;
}
.banner__desc {
  margin: 14px 0 0;
  color: rgba(203,213,225,0.94);
  line-height: 1.8;
  max-width: 64ch;
  font-size: 15px;
}
.banner__desc--immersive {
  max-width: 60ch;
  line-height: 1.85;
}
.banner__actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.banner__meta {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.banner__meta-item {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,0.14);
  background: rgba(2,6,23,0.28);
}
.banner__meta-k {
  font-size: 12px;
  color: rgba(148,163,184,0.92);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.banner__meta-v {
  margin-top: 7px;
  font-weight: 800;
  line-height: 1.5;
}
.banner-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,0.14);
  background: rgba(8,12,22,0.38);
}
.banner-card--hero {
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(400px 140px at 100% 0%, rgba(56,189,248,0.12), rgba(56,189,248,0) 75%),
    rgba(8,12,22,0.38);
}
.banner-card__k {
  font-size: 12px;
  color: rgba(148,163,184,0.92);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.banner-card__v {
  margin-top: 10px;
  font-weight: 800;
  line-height: 1.7;
  color: rgba(226,232,240,0.96);
}
.banner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.banner__meta--wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.hero-panel--landing,
.hero-highlight-grid--landing .hero-highlight,
.hero-strip--landing .hero-strip__item {
  background: rgba(6, 12, 24, 0.46);
}
.hero-strip--landing {
  margin-top: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.hero-highlight-grid--landing {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.overview-grid,
.scenario-grid,
.arch-flow {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.overview-card,
.scenario-card,
.arch-flow__item {
  border-radius: 22px;
  border: 1px solid rgba(148,163,184,0.14);
  background: rgba(8,12,22,0.38);
  box-shadow: 0 24px 80px rgba(2,6,23,0.40);
  padding: 18px;
}
.overview-card { grid-column: span 4; }
.scenario-card { grid-column: span 4; }
.arch-flow__item { grid-column: span 4; }
.overview-card__title,
.scenario-card__title,
.arch-flow__title {
  font-weight: 900;
  line-height: 1.5;
}
.overview-card__desc,
.scenario-card__desc,
.arch-flow__desc {
  margin-top: 8px;
  line-height: 1.75;
}
.arch-flow__step {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(56,189,248,0.26);
  background: rgba(56,189,248,0.10);
  font-weight: 900;
  color: rgba(226,232,240,0.98);
  margin-bottom: 12px;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: stretch;
  padding: 22px 0 18px;
}
.hero__left {
  border-radius: 22px;
  border: 1px solid rgba(148,163,184,0.14);
  background: linear-gradient(180deg, rgba(16,24,42,0.78), rgba(8,12,22,0.40));
  box-shadow: 0 26px 90px rgba(2,6,23,0.62);
  padding: 18px;
}
.hero__pill { display: flex; gap: 8px; flex-wrap: wrap; }
.hero__h1 {
  margin: 12px 0 0;
  font-size: 44px;
  line-height: 1.06;
  letter-spacing: 0.2px;
}
.hero__p { margin: 12px 0 0; color: rgba(148,163,184,0.98); max-width: 74ch; }
.hero__cta { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero__meta {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.hero__meta--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hero--product { align-items: stretch; }
.hero__left--product,
.hero__right--product {
  min-height: 100%;
}
.hero-stack { display: grid; gap: 14px; height: 100%; }
.hero-panel {
  border-radius: 22px;
  border: 1px solid rgba(148,163,184,0.14);
  background:
    radial-gradient(720px 240px at 100% 0%, rgba(56, 189, 248, 0.12), rgba(56, 189, 248, 0) 70%),
    linear-gradient(180deg, rgba(18, 28, 51, 0.82), rgba(8, 12, 22, 0.52));
  padding: 18px;
  box-shadow: 0 22px 70px rgba(2,6,23,0.48);
}
.hero-panel__eyebrow {
  font-size: 12px;
  color: rgba(148,163,184,0.92);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.hero-panel__title {
  margin-top: 10px;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.16;
}
.hero-panel__desc {
  margin-top: 10px;
  line-height: 1.7;
}
.hero-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.hero-strip__item,
.hero-highlight {
  border: 1px solid rgba(148,163,184,0.14);
  background: rgba(8,12,22,0.42);
  border-radius: 18px;
  padding: 14px;
}
.hero-strip__k {
  font-size: 12px;
  color: rgba(148,163,184,0.92);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.hero-strip__v {
  margin-top: 8px;
  font-weight: 800;
  line-height: 1.5;
}
.hero-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.hero-highlight__title {
  font-weight: 900;
  line-height: 1.45;
}
.hero-highlight__desc {
  margin-top: 8px;
  line-height: 1.7;
}
.kmini {
  border: 1px solid rgba(148,163,184,0.14);
  background: rgba(2,6,23,0.28);
  border-radius: 16px;
  padding: 10px 12px;
}
.kmini__k { font-size: 12px; color: rgba(148,163,184,0.92); text-transform: uppercase; letter-spacing: 0.14em; }
.kmini__v { margin-top: 6px; font-weight: 800; font-size: 13px; }

.hero__right {
  border-radius: 22px;
  border: 1px solid rgba(148,163,184,0.14);
  background: linear-gradient(180deg, rgba(8,12,22,0.56), rgba(8,12,22,0.38));
  box-shadow: 0 26px 90px rgba(2,6,23,0.62);
  padding: 18px;
}
.hero-demo__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hero-demo__title { font-weight: 900; }
.hero-demo__chip {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(56,189,248,0.30);
  background: rgba(56,189,248,0.10);
}
.hero-demo__hash {
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,0.18);
  background: rgba(2,6,23,0.35);
  word-break: break-all;
  line-height: 1.55;
  font-size: 12px;
}
.hero-demo__grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.capcap {
  border: 1px solid rgba(148,163,184,0.14);
  background: rgba(8,12,22,0.40);
  border-radius: 16px;
  padding: 10px 12px;
}
.capcap__k { font-size: 12px; color: rgba(148,163,184,0.92); text-transform: uppercase; letter-spacing: 0.14em; }
.capcap__v { margin-top: 6px; font-weight: 900; font-size: 12px; color: rgba(226,232,240,0.92); }
.hero-demo__footer { margin-top: 12px; display: grid; gap: 10px; }
.gauge { border: 1px solid rgba(148,163,184,0.14); background: rgba(2,6,23,0.30); border-radius: 16px; padding: 10px 12px; }
.gauge__label { font-size: 12px; color: rgba(148,163,184,0.92); text-transform: uppercase; letter-spacing: 0.14em; }
.gauge__bar { margin-top: 8px; height: 10px; border-radius: 999px; background: rgba(148,163,184,0.12); overflow: hidden; border: 1px solid rgba(148,163,184,0.10); }
.gauge__bar span { display: block; height: 100%; width: 34%; background: linear-gradient(90deg, rgba(34,197,94,0.95), rgba(56,189,248,0.95)); }
.gauge__val { margin-top: 8px; font-weight: 900; }

.section { margin-top: 26px; }
.section__head { margin: 0 2px 12px; }
.section__title { font-weight: 900; font-size: 26px; margin-top: 6px; }
.section__sub { margin-top: 8px; }

.capgrid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.capgrid .cap { grid-column: span 4; }
.capgrid--landing .cap {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(148,163,184,0.14);
  background: rgba(8,12,22,0.38);
  box-shadow: 0 24px 80px rgba(2,6,23,0.40);
}
.capgrid--balanced .cap,
.overview-grid--balanced .overview-card,
.scenario-grid--balanced .scenario-card {
  min-height: 100%;
}
.capgrid--balanced .cap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cap__icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
  letter-spacing: 0.06em;
  border: 1px solid rgba(56, 189, 248, 0.30);
  background: rgba(56, 189, 248, 0.12);
}
.cap__title {
  font-weight: 900;
  line-height: 1.45;
}
.cap__desc { margin-top: 8px; }

.arch {
  border-radius: 22px;
  border: 1px solid rgba(148,163,184,0.14);
  background: rgba(8,12,22,0.36);
  box-shadow: 0 26px 90px rgba(2,6,23,0.46);
  padding: 16px;
}
.arch__lane { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 0; }
.arch__node {
  border: 1px solid rgba(148,163,184,0.14);
  background: rgba(2,6,23,0.28);
  border-radius: 16px;
  padding: 10px 12px;
  min-width: 220px;
}
.arch__k { font-weight: 900; }
.arch__v { margin-top: 4px; }
.arch__arrow { color: rgba(148,163,184,0.75); font-weight: 900; padding: 0 2px; }

.secgrid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.sec {
  grid-column: span 4;
  border-radius: 22px;
  border: 1px solid rgba(148,163,184,0.14);
  background: rgba(8,12,22,0.36);
  box-shadow: 0 26px 90px rgba(2,6,23,0.46);
  padding: 16px;
}
.sec__title { font-weight: 900; }
.sec__desc { margin-top: 8px; }

.site-foot {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(148,163,184,0.14);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.site-foot__brand { font-weight: 900; }

.auth-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: start;
  padding: 18px 0;
}
.auth-left {
  border-radius: 22px;
  border: 1px solid rgba(148,163,184,0.14);
  background: rgba(8,12,22,0.36);
  box-shadow: 0 26px 90px rgba(2,6,23,0.46);
  padding: 18px;
}
.auth-left__h1 { margin: 10px 0 0; font-size: 36px; line-height: 1.08; letter-spacing: 0.2px; }
.auth-left__p { margin-top: 10px; max-width: 70ch; }
.auth-left__cards { margin-top: 14px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.auth-left__cards .cap { grid-column: span 4; }
.auth-right { display: grid; place-items: center; }
.auth-card--standalone { width: min(560px, 100%); }
.auth-hint { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(148,163,184,0.12); }
.auth-hint__k { font-weight: 900; margin-bottom: 6px; }
.auth-actions { margin-top: 12px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.auth-split--premium { align-items: stretch; }
.auth-left--hero {
  background:
    radial-gradient(580px 260px at 0% 0%, rgba(56, 189, 248, 0.12), rgba(56, 189, 248, 0) 72%),
    linear-gradient(180deg, rgba(8,12,22,0.56), rgba(8,12,22,0.34));
}
.auth-card--premium {
  border: 1px solid rgba(56, 189, 248, 0.18);
  background:
    radial-gradient(420px 160px at 100% 0%, rgba(56, 189, 248, 0.10), rgba(56, 189, 248, 0) 72%),
    linear-gradient(180deg, rgba(16,24,42,0.88), rgba(8,12,22,0.78));
}

.agent-login-page {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  color: #ffffff;
  background: #050508;
}

.agent-login-page__glow,
.agent-login-page__grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.agent-login-page__glow {
  z-index: 0;
  background-image:
    radial-gradient(circle at 10% 10%, rgba(0, 242, 255, 0.10) 0%, transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(0, 98, 255, 0.10) 0%, transparent 40%);
}

.agent-login-page__grid {
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.5;
}

.agent-login-nav,
.agent-login-shell {
  position: relative;
  z-index: 1;
}

.agent-login-shell {
  min-height: 100vh;
  padding-top: 164px;
  padding-bottom: 56px;
  display: flex;
  align-items: center;
}

.agent-login-layout {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, 0.95fr);
  gap: 48px;
  align-items: center;
}

.agent-login-copy__eyebrow {
  margin: 0 0 28px;
  color: #00f2ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.agent-login-copy__title {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(38px, 5vw, 64px);
  font-style: italic;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.05em;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.52) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.agent-login-copy__desc {
  margin: 28px 0 0;
  max-width: 580px;
  color: #6f7785;
  font-size: 15px;
  line-height: 1.9;
}

.agent-login-copy__grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.agent-login-metric,
.agent-login-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 40px;
  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.agent-login-metric {
  padding: 26px 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.agent-login-metric__icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #00f2ff;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.agent-login-metric__icon svg {
  width: 20px;
  height: 20px;
}

.agent-login-metric__eyebrow {
  margin: 18px 0 10px;
  color: #00f2ff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.agent-login-metric__title {
  margin: 0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
}

.agent-login-metric__desc {
  margin: 8px 0 0;
  color: #6b7280;
  font-size: 11px;
  line-height: 1.8;
}

.agent-login-panel-wrap {
  display: flex;
  justify-content: flex-end;
}

.agent-login-panel {
  width: min(100%, 460px);
  padding: 42px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

.agent-login-panel__brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.agent-login-panel__logo {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(0, 242, 255, 0.18);
  box-shadow: 0 0 24px rgba(0, 242, 255, 0.16);
  overflow: hidden;
}

.agent-login-panel__logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.agent-login-panel__title {
  margin: 0;
  font-size: 20px;
  font-style: italic;
  font-weight: 900;
}

.agent-login-panel__subtitle {
  margin: 6px 0 0;
  color: #666f7d;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.agent-login-form {
  margin-top: 36px;
  display: grid;
  gap: 12px;
}

.agent-login-form__label {
  color: rgba(0, 242, 255, 0.6);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.agent-login-input {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.agent-login-input:focus-within {
  border-color: rgba(0, 242, 255, 0.7);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 18px rgba(0, 242, 255, 0.12);
}

.agent-login-input input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: #ffffff;
  font-size: 14px;
  font-family: inherit;
}

.agent-login-input input::placeholder {
  color: #38404d;
}

.agent-login-submit {
  min-height: 56px;
  margin-top: 10px;
  border: 0;
  border-radius: 20px;
  background: linear-gradient(90deg, #0062ff 0%, #00f2ff 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(0, 98, 255, 0.4);
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.agent-login-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(0, 242, 255, 0.45);
}

.agent-login-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.agent-login-error {
  margin: 4px 0 0;
  color: #fda4af;
  font-size: 12px;
  line-height: 1.6;
}

.agent-login-panel__foot {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: grid;
  gap: 14px;
  justify-items: center;
}

.agent-login-panel__mono {
  margin: 0;
  color: #515968;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
}

.agent-login-panel__back {
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.42);
  font-family: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  transition: color 180ms ease;
}

.agent-login-panel__back:hover {
  color: #ffffff;
}

.landing-pill--active {
  border-color: rgba(0, 242, 255, 0.28);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  box-shadow: 0 0 24px rgba(0, 242, 255, 0.08);
}
.auth-hero-stats {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.auth-stat,
.auth-story {
  border: 1px solid rgba(148,163,184,0.14);
  background: rgba(2,6,23,0.28);
  border-radius: 18px;
  padding: 14px;
}
.auth-stat__k {
  font-size: 12px;
  color: rgba(148,163,184,0.92);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.auth-stat__v {
  margin-top: 8px;
  font-weight: 800;
  line-height: 1.6;
}
.auth-story-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.auth-story__title {
  font-weight: 900;
  margin-bottom: 6px;
}
.auth-badge-row {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.settings-banner-preview {
  margin-top: 14px;
  min-height: 220px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background-position: center center;
  background-size: cover;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 22px 80px rgba(2, 6, 23, 0.42);
}
.settings-banner-preview__eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.82);
}
.settings-banner-preview__title {
  margin-top: 10px;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.08;
  max-width: 18ch;
}
.settings-banner-preview__subtitle {
  margin-top: 10px;
  max-width: 64ch;
  color: rgba(226, 232, 240, 0.92);
  line-height: 1.7;
}

@media (max-width: 1060px) {
  .banner { grid-template-columns: 1fr; }
  .banner__meta,
  .banner-grid { grid-template-columns: 1fr; }
  .banner__title { font-size: 38px; }
  .banner__title--immersive { font-size: 42px; max-width: none; }
  .banner--immersive { min-height: auto; padding: 18px; }
  .hero { grid-template-columns: 1fr; }
  .hero__meta { grid-template-columns: 1fr; }
  .hero-strip,
  .hero-highlight-grid,
  .overview-grid,
  .scenario-grid,
  .arch-flow,
  .auth-hero-stats,
  .auth-story-grid { grid-template-columns: 1fr; }
  .overview-card,
  .scenario-card,
  .arch-flow__item { grid-column: span 12; }
  .capgrid .cap { grid-column: span 12; }
  .sec { grid-column: span 12; }
  .auth-split { grid-template-columns: 1fr; }
  .auth-left__cards .cap { grid-column: span 12; }
  .site-nav__links { display: none; }
  .hero-highlight-grid--landing { grid-template-columns: 1fr; }
  .agent-login-shell { min-height: auto; padding-top: 208px; }
  .agent-login-layout { grid-template-columns: 1fr; gap: 28px; }
  .agent-login-copy__title,
  .agent-login-copy__desc { max-width: none; }
  .agent-login-copy__grid { grid-template-columns: 1fr; }
  .agent-login-panel-wrap { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .agent-login-shell {
    padding-top: 84px;
    padding-bottom: 32px;
  }

  .agent-login-copy__eyebrow {
    margin-bottom: 20px;
  }

  .agent-login-copy__desc {
    margin-top: 20px;
    font-size: 14px;
  }

  .agent-login-copy__grid {
    margin-top: 32px;
  }

  .agent-login-panel {
    padding: 28px 22px;
    border-radius: 30px;
  }

  .agent-login-form {
    margin-top: 28px;
  }

  .agent-login-submit {
    letter-spacing: 0.18em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sitebg__grid, .sitebg__spark { animation: none; }
}

.site--sales {
  color: #172033;
}

.site--sales .sitebg__grid {
  opacity: 0.14;
  background:
    linear-gradient(rgba(15, 23, 42, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.12) 1px, transparent 1px);
}

.site--sales .sitebg__orb--a {
  background: radial-gradient(circle at 30% 30%, rgba(14, 165, 233, 0.24), rgba(14, 165, 233, 0) 62%);
}

.site--sales .sitebg__orb--b {
  background: radial-gradient(circle at 40% 40%, rgba(251, 146, 60, 0.20), rgba(251, 146, 60, 0) 64%);
}

.site--sales .sitebg__orb--c {
  background: radial-gradient(circle at 35% 35%, rgba(16, 185, 129, 0.18), rgba(16, 185, 129, 0) 64%);
}

.site--sales .site-nav {
  border-bottom-color: rgba(148, 163, 184, 0.18);
  background: rgba(255, 251, 244, 0.78);
}

.site--sales .site-brand__mark {
  color: #0f172a;
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.42), rgba(251, 191, 36, 0.28));
  border-color: rgba(14, 165, 233, 0.26);
}

.site--sales .site-brand__title,
.site--sales .site-link,
.site--sales .langseg__btn {
  color: #172033;
}

.site--sales .site-brand__sub,
.site--sales .muted,
.site--sales .kicker,
.site--sales .sales-feature__eyebrow,
.site--sales .sales-hero__eyebrow,
.site--sales .sales-panel__eyebrow,
.site--sales .sales-cta__eyebrow {
  color: #6b7280;
}

.site--sales .site-link:hover {
  background: rgba(14, 165, 233, 0.08);
  border-color: rgba(14, 165, 233, 0.18);
}

.site--sales .langseg {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.72);
}

.site--sales .langseg__btn:hover {
  background: rgba(15, 23, 42, 0.05);
}

.site--sales .langseg__btn--active {
  background: rgba(14, 165, 233, 0.12);
  border-left-color: rgba(14, 165, 233, 0.12);
  border-right-color: rgba(14, 165, 233, 0.12);
}

.site--sales .btn {
  color: #172033;
  border-color: rgba(148, 163, 184, 0.26);
  background: rgba(255, 255, 255, 0.72);
}

.site--sales .btn:hover {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(14, 165, 233, 0.30);
}

.site--sales .btn--primary {
  color: #fffdf9;
  border-color: rgba(15, 23, 42, 0.08);
  background: linear-gradient(135deg, #0f766e, #2563eb);
}

.site--sales .btn--primary:hover {
  background: linear-gradient(135deg, #0f766e, #1d4ed8);
}

.site--sales .btn--ghost {
  background: rgba(255, 255, 255, 0.56);
}

.sales-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 20px;
  padding: 28px;
  border-radius: 32px;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 0% 0%, rgba(125, 211, 252, 0.22), rgba(125, 211, 252, 0) 62%),
    radial-gradient(760px 420px at 100% 100%, rgba(251, 191, 36, 0.16), rgba(251, 191, 36, 0) 60%),
    linear-gradient(180deg, rgba(250, 248, 242, 0.96), rgba(245, 247, 251, 0.94));
  background-size: cover;
  background-position: center center;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.12);
}

.sales-hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.92), rgba(245, 247, 251, 0.86)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
}

.sales-hero__copy,
.sales-panel {
  position: relative;
  z-index: 1;
}

.sales-hero__copy {
  display: grid;
  align-content: start;
  gap: 18px;
}

.sales-hero__eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.sales-hero__title {
  margin: 0;
  max-width: 12ch;
  font-size: 58px;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.sales-hero__desc {
  margin: 0;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.8;
  color: #475569;
}

.sales-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sales-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.sales-stat {
  min-width: 0;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.sales-stat__value {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}

.sales-stat__label {
  margin-top: 8px;
  color: #64748b;
  line-height: 1.6;
  font-size: 13px;
}

.sales-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.sales-panel__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.sales-panel__eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.sales-panel__title {
  margin-top: 6px;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 800;
  color: #0f172a;
}

.sales-panel__badge,
.sales-alert__chip,
.sales-alert__level,
.sales-pill,
.sales-pipeline__node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(244, 247, 250, 0.96);
}

.sales-alert-list {
  display: grid;
  gap: 12px;
}

.sales-alert {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.90));
}

.sales-alert__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.sales-alert__level {
  color: #0f766e;
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.16);
}

.sales-alert__title {
  margin-top: 10px;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.sales-alert__desc,
.sales-pipeline__title,
.sales-strip-card__desc,
.sales-feature__desc,
.sales-step__desc,
.sales-architecture__desc,
.sales-scenario__desc,
.sales-faq__body,
.sales-cta__desc {
  margin-top: 8px;
  color: #64748b;
  line-height: 1.75;
}

.sales-pipeline {
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(240, 249, 255, 0.88), rgba(255, 251, 235, 0.82));
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.sales-pipeline__title {
  margin-top: 0;
}

.sales-pipeline__flow,
.sales-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.sales-pipeline__arrow {
  align-self: center;
  color: #94a3b8;
}

.sales-strip,
.sales-section,
.sales-cta {
  margin-top: 20px;
  padding: 24px;
  border-radius: 30px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 251, 244, 0.88);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.05);
}

.sales-strip__head,
.sales-section__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
}

.sales-section__title {
  margin-top: 8px;
  max-width: 22ch;
  font-size: 34px;
  line-height: 1.12;
  font-weight: 800;
  color: #0f172a;
}

.sales-strip__grid,
.sales-feature-grid,
.sales-scenario-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.sales-strip__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sales-feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sales-scenario-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sales-strip-card,
.sales-feature,
.sales-scenario,
.sales-faq {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.78);
}

.sales-strip-card__title,
.sales-feature__title,
.sales-step__title,
.sales-architecture__title,
.sales-scenario__title,
.sales-cta__title {
  color: #0f172a;
  font-weight: 800;
}

.sales-strip-card__title,
.sales-feature__title,
.sales-scenario__title {
  font-size: 22px;
  line-height: 1.3;
}

.sales-feature__eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.sales-feature__title {
  margin-top: 10px;
}

.sales-workflow {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 16px;
  margin-top: 18px;
}

.sales-step-list {
  display: grid;
  gap: 12px;
}

.sales-step {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.82);
}

.sales-step__no {
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.14), rgba(251, 191, 36, 0.16));
  color: #0f172a;
  font-size: 22px;
  font-weight: 900;
}

.sales-step__title,
.sales-architecture__title {
  font-size: 22px;
  line-height: 1.3;
}

.sales-architecture {
  padding: 20px;
  border-radius: 26px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.92), rgba(255, 251, 235, 0.86));
}

.sales-scenario__points {
  margin: 14px 0 0;
  padding-left: 18px;
  color: #475569;
  line-height: 1.8;
}

.sales-faq-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.sales-faq__button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #0f172a;
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
}

.sales-faq__toggle {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 24px;
  line-height: 1;
}

.sales-faq__body {
  margin-top: 12px;
}

.sales-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(135deg, rgba(240, 249, 255, 0.96), rgba(255, 247, 237, 0.96));
}

.sales-cta__title {
  margin-top: 10px;
  max-width: 18ch;
  font-size: 40px;
  line-height: 1.05;
}

.sales-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

@media (max-width: 1120px) {
  .sales-hero,
  .sales-workflow,
  .sales-scenario-grid,
  .sales-strip__grid {
    grid-template-columns: 1fr;
  }

  .sales-stat-grid,
  .sales-feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .sales-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .sales-cta__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 780px) {
  .site--sales .site-nav {
    align-items: flex-start;
  }

  .sales-hero,
  .sales-strip,
  .sales-section,
  .sales-cta {
    padding: 18px;
    border-radius: 24px;
  }

  .sales-hero__title {
    font-size: 42px;
    max-width: none;
  }

  .sales-section__title,
  .sales-cta__title {
    font-size: 30px;
    max-width: none;
  }

  .sales-stat-grid,
  .sales-feature-grid,
  .sales-scenario-grid,
  .sales-strip__grid {
    grid-template-columns: 1fr;
  }

  .sales-step {
    grid-template-columns: 1fr;
  }

  .sales-step__no {
    min-height: 60px;
  }

  .sales-hero__actions .btn,
  .sales-cta__actions .btn {
    width: 100%;
  }
}

@keyframes gridDrift {
  0% { transform: perspective(900px) rotateX(58deg) translateY(-18%) translateX(0); }
  100% { transform: perspective(900px) rotateX(58deg) translateY(-18%) translateX(-52px); }
}

@keyframes spark {
  0%, 100% { transform: translateX(-20px) rotate(-18deg); opacity: 0.18; }
  50% { transform: translateX(20px) rotate(-18deg); opacity: 0.32; }
}

@keyframes bannerFloat {
  0%, 100% { transform: scale(1.08) translate3d(0, 0, 0); }
  50% { transform: scale(1.12) translate3d(-14px, -10px, 0); }
}

/* oneclaw-like landing override */
.site--sales {
  color: #f4f7ff;
}

.site--sales .sitebg {
  background:
    radial-gradient(1200px 700px at 50% 0%, rgba(79, 70, 229, 0.14) 0%, rgba(79, 70, 229, 0) 60%),
    radial-gradient(900px 520px at 82% 18%, rgba(239, 68, 68, 0.12) 0%, rgba(239, 68, 68, 0) 60%),
    radial-gradient(1200px 800px at 20% 100%, rgba(14, 165, 233, 0.10) 0%, rgba(14, 165, 233, 0) 60%),
    #030817;
}

.site--sales .sitebg__grid {
  inset: 0;
  opacity: 0.52;
  background:
    radial-gradient(circle at 12% 20%, rgba(255,255,255,0.70) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 20% 72%, rgba(255,255,255,0.45) 0 1px, transparent 2px),
    radial-gradient(circle at 30% 32%, rgba(255,255,255,0.52) 0 1.2px, transparent 2.2px),
    radial-gradient(circle at 42% 18%, rgba(255,255,255,0.38) 0 1px, transparent 2px),
    radial-gradient(circle at 48% 68%, rgba(255,255,255,0.52) 0 1.2px, transparent 2.2px),
    radial-gradient(circle at 58% 28%, rgba(255,255,255,0.46) 0 1px, transparent 2px),
    radial-gradient(circle at 64% 76%, rgba(255,255,255,0.62) 0 1.4px, transparent 2.4px),
    radial-gradient(circle at 74% 16%, rgba(255,255,255,0.36) 0 1px, transparent 2px),
    radial-gradient(circle at 82% 54%, rgba(255,255,255,0.55) 0 1.2px, transparent 2.2px),
    radial-gradient(circle at 90% 26%, rgba(255,255,255,0.42) 0 1px, transparent 2px);
  transform: none;
  animation: starDrift 20s linear infinite;
}

.site--sales .sitebg__orb {
  opacity: 0.38;
  filter: blur(70px);
}

.site--sales .sitebg__orb--a {
  left: -260px;
  top: -200px;
  background: radial-gradient(circle at 30% 30%, rgba(14, 165, 233, 0.42), rgba(14, 165, 233, 0) 64%);
}

.site--sales .sitebg__orb--b {
  right: -220px;
  top: -180px;
  background: radial-gradient(circle at 40% 40%, rgba(239, 68, 68, 0.34), rgba(239, 68, 68, 0) 66%);
}

.site--sales .sitebg__orb--c {
  right: 14%;
  bottom: -280px;
  background: radial-gradient(circle at 35% 35%, rgba(16, 185, 129, 0.28), rgba(16, 185, 129, 0) 68%);
}

.site--sales .site-nav {
  border-bottom-color: rgba(148, 163, 184, 0.10);
  background: rgba(2, 7, 20, 0.72);
  backdrop-filter: blur(16px);
}

.site--sales .site-brand__mark {
  color: #f3f7ff;
  background: linear-gradient(135deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04));
  border-color: rgba(255,255,255,0.16);
}

.site--sales .site-brand__title,
.site--sales .site-link,
.site--sales .langseg__btn {
  color: rgba(244, 247, 255, 0.96);
}

.site--sales .site-brand__sub,
.site--sales .muted,
.site--sales .kicker,
.site--sales .sales-feature__eyebrow,
.site--sales .sales-panel__eyebrow,
.site--sales .sales-cta__eyebrow {
  color: rgba(148, 163, 184, 0.86);
}

.site--sales .site-link:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}

.site--sales .langseg {
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(255,255,255,0.06);
}

.site--sales .langseg__btn:hover {
  background: rgba(255,255,255,0.06);
}

.site--sales .langseg__btn--active {
  background: rgba(255,255,255,0.14);
  border-left-color: rgba(255,255,255,0.08);
  border-right-color: rgba(255,255,255,0.08);
}

.site--sales .btn {
  color: rgba(244, 247, 255, 0.96);
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(255,255,255,0.06);
}

.site--sales .btn:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.20);
}

.site--sales .btn--primary,
.site--sales .sales-btn--hot {
  color: #fff;
  border-color: rgba(239, 68, 68, 0.34);
  background: linear-gradient(135deg, #ef4444, #f43f5e);
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.24);
}

.site--sales .btn--primary:hover,
.site--sales .sales-btn--hot:hover {
  background: linear-gradient(135deg, #f05252, #fb7185);
}

.site--sales .btn--ghost {
  background: rgba(255,255,255,0.04);
}

.sales-hero.sales-hero--oneclaw {
  min-height: 920px;
  display: grid;
  place-items: center;
  padding: 72px 24px 54px;
  border-radius: 0;
  border: 0;
  background:
    radial-gradient(600px 280px at 50% 18%, rgba(239, 68, 68, 0.14), rgba(239, 68, 68, 0) 68%),
    radial-gradient(720px 420px at 50% 0%, rgba(79, 70, 229, 0.12), rgba(79, 70, 229, 0) 66%),
    rgba(3, 8, 23, 0.66);
  box-shadow: none;
}

.sales-hero.sales-hero--oneclaw .sales-hero__veil {
  background:
    linear-gradient(180deg, rgba(3, 8, 23, 0.14), rgba(3, 8, 23, 0.46)),
    linear-gradient(90deg, rgba(3, 8, 23, 0.18), rgba(3, 8, 23, 0.04));
}

.sales-hero__stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.46) 0 1.2px, transparent 1.8px),
    radial-gradient(circle, rgba(255,255,255,0.36) 0 1px, transparent 1.6px);
  background-size: 180px 180px, 240px 240px;
  background-position: 20px 30px, 80px 140px;
  opacity: 0.44;
  animation: starDrift 22s linear infinite;
}

.sales-hero__center {
  position: relative;
  z-index: 2;
  width: min(980px, 100%);
  display: grid;
  justify-items: center;
  text-align: center;
}

.sales-hero__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.08);
  color: #ff8b8b;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.sales-hero__title--center,
.sales-hero__title--accent {
  max-width: 10ch;
  margin: 18px auto 0;
  font-size: 92px;
  line-height: 0.92;
  letter-spacing: -0.06em;
  color: #f8fbff;
  text-shadow: 2px 2px 0 rgba(239, 68, 68, 0.14);
}

.sales-hero__title--accent {
  margin-top: 4px;
  max-width: 12ch;
  background: linear-gradient(90deg, #fca5a5, #fde68a, #5eead4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.sales-hero__desc--center {
  max-width: 760px;
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.9;
  color: rgba(191, 205, 229, 0.92);
}

.sales-hero__actions--center {
  justify-content: center;
  margin-top: 26px;
}

.sales-pill-row--hero {
  justify-content: center;
  margin-top: 18px;
}

.sales-pill--hero {
  color: rgba(226, 232, 240, 0.92);
  border-color: rgba(148, 163, 184, 0.14);
  background: rgba(255,255,255,0.04);
}

.sales-demo-card {
  width: min(520px, 100%);
  margin-top: 34px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(59, 130, 246, 0.14);
  background: linear-gradient(180deg, rgba(8, 15, 33, 0.92), rgba(5, 12, 26, 0.88));
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.48);
  backdrop-filter: blur(16px);
}

.sales-demo-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: rgba(226, 232, 240, 0.96);
}

.sales-demo-card__title {
  font-weight: 800;
  font-size: 18px;
}

.sales-demo-card__version {
  color: rgba(100, 116, 139, 0.94);
  font-size: 12px;
  font-family: var(--mono);
}

.sales-demo-card__tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.sales-demo-card__tab {
  min-width: 124px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255,255,255,0.04);
  color: rgba(191, 205, 229, 0.92);
  font: inherit;
  font-weight: 700;
}

.sales-demo-card__tab:nth-child(2) {
  border-color: rgba(239, 68, 68, 0.34);
  background: rgba(239, 68, 68, 0.16);
  color: #fff4f4;
}

.sales-demo-card__stack {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.sales-demo-card__module {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(255,255,255,0.03);
  text-align: left;
}

.sales-demo-card__module--active {
  border-color: rgba(239, 68, 68, 0.26);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.12), rgba(255,255,255,0.03));
}

.sales-demo-card__module-title {
  color: #f8fbff;
  font-weight: 800;
}

.sales-demo-card__module-desc {
  margin-top: 8px;
  color: rgba(148, 163, 184, 0.88);
  line-height: 1.7;
}

.sales-demo-card__foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.10);
}

.sales-demo-card__summary {
  color: rgba(148, 163, 184, 0.90);
}

.sales-pipeline__flow--demo {
  justify-content: center;
}

.sales-pipeline__flow--demo .sales-pipeline__node {
  background: rgba(255,255,255,0.04);
  color: rgba(226, 232, 240, 0.94);
}

.sales-stat-grid--hero {
  width: min(980px, 100%);
  margin-top: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site--sales .sales-stat,
.site--sales .sales-strip,
.site--sales .sales-section,
.site--sales .sales-cta,
.site--sales .sales-strip-card,
.site--sales .sales-feature,
.site--sales .sales-scenario,
.site--sales .sales-faq,
.site--sales .sales-step,
.site--sales .sales-architecture {
  background: rgba(7, 14, 30, 0.82);
  border-color: rgba(148, 163, 184, 0.10);
  box-shadow: 0 16px 44px rgba(2, 6, 23, 0.20);
}

.site--sales .sales-stat__value,
.site--sales .sales-strip-card__title,
.site--sales .sales-feature__title,
.site--sales .sales-step__title,
.site--sales .sales-architecture__title,
.site--sales .sales-scenario__title,
.site--sales .sales-cta__title,
.site--sales .sales-section__title,
.site--sales .sales-faq__button {
  color: #f8fbff;
}

.site--sales .sales-strip-card__desc,
.site--sales .sales-feature__desc,
.site--sales .sales-step__desc,
.site--sales .sales-architecture__desc,
.site--sales .sales-scenario__desc,
.site--sales .sales-faq__body,
.site--sales .sales-cta__desc,
.site--sales .sales-stat__label {
  color: rgba(148, 163, 184, 0.88);
}

.site--sales .sales-cta {
  background: linear-gradient(180deg, rgba(7, 14, 30, 0.90), rgba(10, 18, 34, 0.84));
}

@media (max-width: 980px) {
  .sales-hero.sales-hero--oneclaw {
    min-height: 780px;
    padding-top: 56px;
  }

  .sales-hero__title--center,
  .sales-hero__title--accent {
    font-size: 62px;
    max-width: none;
  }

  .sales-stat-grid--hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .sales-hero.sales-hero--oneclaw {
    min-height: 680px;
    padding: 42px 16px 36px;
  }

  .sales-hero__title--center,
  .sales-hero__title--accent {
    font-size: 42px;
  }

  .sales-hero__desc--center {
    font-size: 15px;
  }

  .sales-demo-card {
    padding: 14px;
  }

  .sales-demo-card__tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .sales-demo-card__tab {
    width: 100%;
  }
}

@keyframes starDrift {
  from { transform: translateY(0); }
  to { transform: translateY(24px); }
}

/* landing hero fix for Chinese layout */
.sales-hero__title--center {
  display: grid;
  gap: 2px;
  max-width: 980px;
}

.sales-hero__title-line {
  display: block;
  white-space: nowrap;
}

.sales-hero__title--accent {
  font-size: 56px;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.sales-demo-card {
  margin-top: 24px;
}

.sales-stat-grid--hero {
  width: min(760px, 100%);
  margin-top: 18px;
}

.sales-stat-grid--hero .sales-stat {
  padding: 12px 14px;
}

@media (max-width: 1200px) {
  .sales-hero__title--center,
  .sales-hero__title--accent {
    max-width: 100%;
  }

  .sales-hero__title--center,
  .sales-hero__title--accent {
    font-size: 72px;
  }
}

@media (max-width: 980px) {
  .sales-hero__title-line {
    white-space: normal;
  }

  .sales-hero__title--accent {
    font-size: 46px;
  }
}

@media (max-width: 640px) {
  .sales-hero__title--center {
    gap: 6px;
  }

  .sales-hero__title--center,
  .sales-hero__title--accent {
    font-size: 38px;
    line-height: 1.04;
  }

  .sales-demo-card {
    margin-top: 18px;
  }

  .sales-stat-grid--hero {
    width: 100%;
  }
}

/* oneclaw-like landing rewrite */
.landing-claw {
  --claw-bg: #020817;
  --claw-panel: rgba(8, 15, 33, 0.88);
  --claw-panel-strong: rgba(10, 18, 38, 0.96);
  --claw-border: rgba(148, 163, 184, 0.14);
  --claw-text: #f8fbff;
  --claw-muted: rgba(191, 205, 229, 0.80);
  --claw-soft: rgba(148, 163, 184, 0.62);
  --claw-red: #ff4d5f;
  --claw-red-strong: #ff3b4d;
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at top center, rgba(73, 22, 130, 0.22), transparent 32%),
    radial-gradient(circle at 88% 12%, rgba(255, 77, 95, 0.22), transparent 22%),
    radial-gradient(circle at 12% 18%, rgba(27, 95, 187, 0.26), transparent 24%),
    linear-gradient(180deg, #020713 0%, #020817 44%, #010611 100%);
  color: var(--claw-text);
}

.landing-claw::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0, rgba(255,255,255,0.03) 1px, transparent 1px) center/100% 100% no-repeat;
  opacity: 0.08;
  pointer-events: none;
}

.claw-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.claw-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.claw-star {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  filter: blur(0.2px);
  animation: clawStarFloat linear infinite;
}

.claw-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(148, 163, 184, 0.06);
  background: rgba(2, 8, 23, 0.82);
  backdrop-filter: blur(18px);
}

.claw-nav__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 74px;
}

.claw-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.claw-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  overflow: hidden;
}

.claw-brand__logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.claw-brand__text {
  display: grid;
  gap: 3px;
  text-align: left;
}

.claw-brand__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--claw-text);
}

.claw-brand__sub {
  font-size: 12px;
  color: var(--claw-soft);
}

.claw-nav__menu {
  display: flex;
  justify-content: center;
  gap: 34px;
}

.claw-nav__link {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(241, 245, 249, 0.92);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.claw-nav__actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.claw-locale {
  display: inline-flex;
  padding: 2px;
  border-radius: 999px;
  border: 1px solid var(--claw-border);
  background: rgba(255,255,255,0.04);
}

.claw-locale__btn {
  min-width: 54px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(226, 232, 240, 0.92);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.claw-locale__btn.is-active {
  background: rgba(255,255,255,0.14);
  color: #ffffff;
}

.claw-pill,
.claw-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid var(--claw-border);
  background: rgba(255,255,255,0.03);
  color: var(--claw-text);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.claw-pill:hover,
.claw-action:hover,
.claw-nav__link:hover {
  transform: translateY(-1px);
}

.claw-pill--primary,
.claw-action--primary {
  border-color: rgba(255, 102, 115, 0.46);
  background: linear-gradient(180deg, #ff5a6b, #ff4658);
  color: #fffdfd;
  box-shadow: 0 10px 24px rgba(255, 70, 88, 0.20);
}

.claw-main {
  position: relative;
  z-index: 1;
  padding-top: 88px;
}

.claw-hero {
  padding: 96px 0 88px;
}

.claw-hero__inner,
.claw-section__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.claw-kicker,
.claw-section__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 77, 95, 0.36);
  background: rgba(255, 77, 95, 0.06);
  color: #ff7c88;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.claw-title {
  margin: 24px 0 0;
  display: grid;
  gap: 6px;
  line-height: 0.92;
}

.claw-title__line {
  font-size: clamp(64px, 10vw, 132px);
  font-weight: 900;
  letter-spacing: -0.06em;
  text-shadow: 4px 4px 0 rgba(94, 121, 255, 0.18);
}

.claw-title__line--accent {
  background: linear-gradient(90deg, #ff7b83 0%, #ffd58a 42%, #8df6d0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.claw-copy,
.claw-section__copy {
  width: min(760px, 100%);
  margin: 24px auto 0;
  color: var(--claw-muted);
  font-size: 20px;
  line-height: 1.8;
}

.claw-hero__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.claw-demo,
.claw-window,
.claw-card,
.claw-faq__item,
.claw-cta {
  border: 1px solid var(--claw-border);
  background: linear-gradient(180deg, rgba(8, 15, 33, 0.96), rgba(7, 13, 28, 0.88));
  box-shadow: 0 22px 64px rgba(2, 6, 23, 0.40);
}

.claw-demo {
  width: min(520px, 100%);
  margin-top: 36px;
  padding: 22px;
  border-radius: 24px;
}

.claw-demo__head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.claw-demo__title {
  font-size: 15px;
  font-weight: 800;
  color: var(--claw-text);
}

.claw-demo__ver {
  font-size: 12px;
  color: var(--claw-soft);
}

.claw-demo__tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.claw-demo__tab,
.claw-demo__chip,
.claw-evidence__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(255,255,255,0.04);
  color: rgba(226, 232, 240, 0.92);
  font-size: 13px;
  font-weight: 700;
}

.claw-demo__tab--active {
  border-color: rgba(255, 102, 115, 0.42);
  background: rgba(255, 77, 95, 0.18);
  color: #fff8f8;
}

.claw-demo__stack {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.claw-demo__button {
  min-height: 56px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(255,255,255,0.02);
  color: var(--claw-text);
  font-weight: 800;
}

.claw-demo__button--primary {
  border-color: rgba(255, 102, 115, 0.42);
  background: linear-gradient(180deg, rgba(255, 77, 95, 0.88), rgba(255, 59, 77, 0.84));
}

.claw-demo__foot {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.10);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.claw-demo__summary {
  width: 100%;
  color: var(--claw-soft);
  font-size: 13px;
  line-height: 1.7;
}

.claw-section {
  padding: 52px 0 0;
}

.claw-section--tight {
  padding-top: 40px;
}

.claw-section--cta {
  padding: 72px 0 0;
}

.claw-section__title {
  width: min(760px, 100%);
  margin: 18px auto 0;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.claw-section__title--left,
.claw-section__copy--left {
  width: auto;
  margin-left: 0;
  text-align: left;
}

.claw-window {
  width: min(740px, 100%);
  margin-top: 30px;
  border-radius: 26px;
  overflow: hidden;
}

.claw-window--evidence {
  width: min(820px, 100%);
}

.claw-evidence-grid {
  width: 100%;
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.claw-card--evidence {
  padding-top: 22px;
}

.claw-window__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.10);
  background: rgba(255,255,255,0.02);
}

.claw-window__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
}

.claw-window__dot:first-child {
  background: rgba(255, 77, 95, 0.88);
}

.claw-window__dot:nth-child(2) {
  background: rgba(255, 191, 71, 0.80);
}

.claw-window__dot:nth-child(3) {
  background: rgba(76, 217, 100, 0.78);
}

.claw-window__label {
  margin-left: 8px;
  color: var(--claw-soft);
  font-size: 13px;
}

.claw-window__body {
  padding: 22px;
  display: grid;
  gap: 14px;
}

.claw-window__body--evidence {
  grid-template-columns: 1.3fr 0.9fr;
  align-items: stretch;
}

.claw-step-card,
.claw-evidence__summary,
.claw-evidence__panel {
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.10);
  background: rgba(255,255,255,0.03);
}

.claw-step-card {
  padding: 22px;
  text-align: left;
}

.claw-step-card__title,
.claw-card__title {
  margin: 0;
  font-size: 28px;
  line-height: 1.18;
}

.claw-step-card__desc,
.claw-card__desc,
.claw-faq__body {
  margin: 12px 0 0;
  color: var(--claw-muted);
  font-size: 16px;
  line-height: 1.75;
}

.claw-evidence__summary,
.claw-evidence__panel {
  padding: 22px;
  text-align: left;
}

.claw-evidence__headline {
  color: var(--claw-soft);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.claw-evidence__status {
  margin-top: 12px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.18;
}

.claw-evidence__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.claw-evidence__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.10);
  color: var(--claw-muted);
}

.claw-evidence__row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.claw-evidence__row strong {
  color: var(--claw-text);
}

.claw-scenarios,
.claw-feature-grid {
  width: 100%;
  margin-top: 26px;
  display: grid;
  gap: 18px;
}

.claw-scenarios {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.claw-feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.claw-card {
  padding: 26px;
  border-radius: 22px;
  text-align: left;
}

.claw-card__icon {
  width: 16px;
  height: 16px;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255, 77, 95, 0.90), rgba(141, 246, 208, 0.88));
  box-shadow: 0 0 0 10px rgba(255,255,255,0.03);
}

.claw-faq {
  width: min(860px, 100%);
  margin-top: 26px;
  display: grid;
  gap: 14px;
}

.claw-faq__item {
  border-radius: 18px;
  overflow: hidden;
}

.claw-faq__button {
  width: 100%;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border: 0;
  background: transparent;
  color: var(--claw-text);
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.claw-faq__symbol {
  color: var(--claw-soft);
}

.claw-faq__body {
  padding: 0 24px 24px;
  margin: 0;
}

.claw-cta {
  width: 100%;
  padding: 32px;
  border-radius: 28px;
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 24px;
  align-items: center;
}

.claw-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.claw-footer {
  position: relative;
  z-index: 1;
  padding: 34px 0 48px;
}

.claw-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--claw-soft);
  font-size: 13px;
}

@keyframes clawStarFloat {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, 12px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 1080px) {
  .claw-nav__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 12px 0;
  }

  .claw-window__body--evidence,
  .claw-evidence-grid,
  .claw-cta,
  .claw-feature-grid,
  .claw-scenarios {
    grid-template-columns: 1fr;
  }

  .claw-cta__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 780px) {
  .claw-shell {
    width: min(100% - 24px, 100%);
  }

  .claw-nav__menu,
  .claw-nav__actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .claw-hero {
    padding-top: 46px;
  }

  .claw-copy,
  .claw-section__copy {
    font-size: 17px;
  }

  .claw-step-card__title,
  .claw-card__title,
  .claw-evidence__status {
    font-size: 22px;
  }

  .claw-demo,
  .claw-window,
  .claw-card,
  .claw-faq__item,
  .claw-cta {
    border-radius: 22px;
  }
}

@media (max-width: 560px) {
  .claw-title__line {
    font-size: 56px;
  }

  .claw-section__title {
    font-size: 32px;
  }

  .claw-copy,
  .claw-section__copy {
    font-size: 16px;
  }

  .claw-pill,
  .claw-action {
    width: 100%;
  }

  .claw-demo__head,
  .claw-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .claw-demo__tabs,
  .claw-demo__foot,
  .claw-hero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .claw-faq__button {
    font-size: 16px;
    padding: 18px 18px 16px;
  }

  .claw-faq__body,
  .claw-card,
  .claw-step-card,
  .claw-evidence__summary,
  .claw-evidence__panel,
  .claw-cta {
    padding: 18px;
  }
}

/* marketing landing styles moved to /landing.css */

.agent-apps-list {
  display: grid;
  gap: 8px;
  min-width: 240px;
}

.agent-apps-item {
  padding: 10px 12px;
  border: 1px solid rgba(110, 128, 158, 0.2);
  border-radius: 12px;
  background: rgba(12, 18, 32, 0.42);
}

.agent-apps-item__title {
  color: var(--text-strong);
  font-weight: 700;
  line-height: 1.3;
}

.agent-apps-item__meta {
  margin-top: 4px;
  color: var(--text-dim);
  font-size: 12px;
  word-break: break-all;
}

.agent-apps-item__stats {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-dim);
  font-size: 12px;
}

.btn--link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand-400);
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.btn--link:hover {
  color: var(--brand-300);
  text-decoration: underline;
}

.stack {
  display: grid;
  gap: 10px;
}

.subcard--interactive {
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.subcard--interactive:hover {
  border-color: rgba(59,130,246,0.34);
  box-shadow: 0 10px 24px rgba(7, 15, 31, 0.28);
  transform: translateY(-1px);
}
