:root,
html[data-theme="dark"] {
  color-scheme: dark;
  --header: #000000;
  --header-2: #111111;
  --chrome: #000000;
  --chrome-fg: #ffffff;
  --chrome-muted: rgba(255, 255, 255, 0.72);
  --chrome-border: rgba(255, 255, 255, 0.28);
  --chrome-hover: rgba(255, 255, 255, 0.08);
  --accent: #e11d2e;
  --accent-hover: #be1230;
  --accent-soft: rgba(225, 29, 46, 0.16);
  --accent-line: rgba(225, 29, 46, 0.45);
  --green: #22c55e;
  --green-soft: rgba(22, 163, 74, 0.16);
  --green-text: #86efac;
  --green-line: #166534;
  --blue: #e4e4e7;
  --blue-soft: #18181b;
  --red: #e11d2e;
  --red-soft: rgba(225, 29, 46, 0.16);
  --red-text: #fecaca;
  --fail-line: rgba(251, 113, 133, 0.45);
  --pass-line: rgba(34, 197, 94, 0.4);
  --orange: #ea580c;
  --purple: #e4e4e7;
  --ink: #fafafa;
  --text: #e4e4e7;
  --muted: #94a3b8;
  --line: rgba(255, 255, 255, 0.1);
  --bound: rgba(255, 255, 255, 0.16);
  --bg: #000000;
  --bg-2: #0a0a0a;
  --bg-3: #111111;
  --card: #111111;
  --card-2: #18181b;
  --chip: #1f1f22;
  --chip-fg: #cbd5e1;
  --nav-bg: #0a0a0a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
  --hover-lift: 0 10px 24px rgba(0, 0, 0, 0.45);
  --kicker: #fb7185;
  --kicker-soft: #fda4af;
  --lead: #cbd5e1;
  --ghost-bg: transparent;
  --ghost-fg: #ffffff;
  --input-bg: #111111;
  --on-accent: #ffffff;
  --btn-bg: #000000;
  --btn-fg: #ffffff;
  --btn-border: #ffffff;
  --btn-neutral-fg: #111111;
  --glow: rgba(127, 29, 29, 0.28);
  --glow-strong: rgba(225, 29, 46, 0.28);
  --warn-bg: rgba(234, 88, 12, 0.14);
  --warn-text: #fdba74;
  --warn-line: #9a3412;
  --code-bg: #0f172a;
  --code-fg: #e2e8f0;
  --modal-backdrop: rgba(0, 0, 0, 0.62);
  --shot-frame: #f4f4f5;
  --shot-chrome: #ececef;
  --shot-name: #111111;
  --donut-track: #27272a;
  --active-bg: rgba(225, 29, 46, 0.14);
  --active-fg: #fda4af;
  --session-guest: #fecaca;
  --radius: 14px;
  --fs: 15px;
  --fs-sm: 13px;
  --fs-md: 15px;
  --fs-lg: 17px;
  --fs-title: 22px;
  --fs-hero: clamp(26px, 4vw, 36px);
  --anim: 200ms;
  --anim-fast: 140ms;
  --anim-slow: 260ms;
  --anim-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --anim-rise: 6px;
  --anim-stagger: 28ms;
}

html[data-theme="light"] {
  color-scheme: light;
  --header: #111111;
  --header-2: #1a1a1a;
  --chrome: #ffffff;
  --chrome-fg: #111111;
  --chrome-muted: rgba(17, 17, 17, 0.68);
  --chrome-border: rgba(17, 17, 17, 0.18);
  --chrome-hover: rgba(225, 29, 46, 0.08);
  --accent: #e11d2e;
  --accent-hover: #be1230;
  --accent-soft: rgba(225, 29, 46, 0.08);
  --accent-line: rgba(225, 29, 46, 0.35);
  --green: #16a34a;
  --green-soft: #dcfce7;
  --green-text: #166534;
  --green-line: #bbf7d0;
  --blue: #111111;
  --blue-soft: #f4f4f5;
  --red: #e11d2e;
  --red-soft: #fee2e2;
  --red-text: #991b1b;
  --fail-line: #fecaca;
  --pass-line: #86efac;
  --orange: #ea580c;
  --purple: #111111;
  --ink: #111111;
  --text: #1a1a1a;
  --muted: #5c5c5c;
  --line: #e5e5e5;
  --bound: #c8c8c8;
  --bg: #f6f6f6;
  --bg-2: #ffffff;
  --bg-3: #f0f0f0;
  --card: #ffffff;
  --card-2: #fafafa;
  --chip: #f1f5f9;
  --chip-fg: #475569;
  --nav-bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  --hover-lift: 0 10px 24px rgba(15, 23, 42, 0.08);
  --kicker: #e11d2e;
  --kicker-soft: #be1230;
  --lead: #4b5563;
  --ghost-bg: #ffffff;
  --ghost-fg: #1a1a1a;
  --input-bg: #ffffff;
  --on-accent: #ffffff;
  --btn-bg: #111111;
  --btn-fg: #ffffff;
  --btn-border: #c8c8c8;
  --btn-neutral-fg: #ffffff;
  --glow: rgba(225, 29, 46, 0.12);
  --glow-strong: rgba(225, 29, 46, 0.18);
  --warn-bg: #fff7ed;
  --warn-text: #9a3412;
  --warn-line: #fdba74;
  --code-bg: #0f172a;
  --code-fg: #e2e8f0;
  --modal-backdrop: rgba(15, 23, 42, 0.45);
  --shot-frame: #ffffff;
  --shot-chrome: #f4f4f5;
  --shot-name: #111111;
  --donut-track: #e2e8f0;
  --active-bg: #fff1f2;
  --active-fg: #9f1239;
  --session-guest: #9f1239;
}

* { box-sizing: border-box; }
/* Twemoji Country Flags (CC-BY 4.0): local COLR font so ISO flag emojis render on Windows/Electron. */
@font-face {
  font-family: "Twemoji Country Flags";
  src: url("/fonts/TwemojiCountryFlags.woff2?v=20260903l") format("woff2");
  font-display: swap;
  unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067, U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F;
}
html, body { margin: 0; min-height: 100%; overflow-x: clip; }
html { background: var(--bg); }
body {
  font-family: Inter, Segoe UI, system-ui, sans-serif;
  font-size: var(--fs);
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}
html.theme-anim,
html.theme-anim body,
html.theme-anim #site,
html.theme-anim #app {
  transition: background-color 160ms var(--anim-ease), color 160ms var(--anim-ease);
}
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }

.topbar {
  background: var(--chrome);
  color: var(--chrome-fg);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 16px;
  padding: 8px 20px;
  border-bottom: 1px solid var(--chrome-border);
}
.topbar-start {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  justify-self: start;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
  position: relative;
  z-index: 3;
}
.brand {
  display: flex;
  align-items: center;
  justify-self: center;
  position: relative;
  z-index: 1;
  overflow: visible;
}
.brand-home { display: flex; align-items: center; flex-shrink: 0; overflow: visible; }
.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  overflow: visible;
  flex-shrink: 0;
}
.brand-star {
  position: absolute;
  left: 62.7%;
  top: 13.6%;
  width: 7.6%;
  aspect-ratio: 1;
  transform: translate3d(-50%, -50%, 0);
  color: #e11d2e;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(circle at center, var(--chrome) 26%, transparent 64%);
}
.brand-star-spin {
  display: block;
  width: 100%;
  height: 100%;
  transform: translate3d(0, 0, 0);
  transform-origin: center center;
  will-change: transform;
}
.brand-star-mark {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 3px color-mix(in srgb, #e11d2e 70%, transparent));
}
.login-page .brand-star {
  background: radial-gradient(circle at center, color-mix(in srgb, var(--bg-2) 88%, transparent) 24%, transparent 66%);
}
html[data-theme="light"] .brand-star {
  color: #d31224;
}
.topbar-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
  position: relative;
  z-index: 2;
}
.site-return {
  background: transparent !important;
  color: var(--chrome-fg) !important;
  border-color: var(--btn-border) !important;
}
.brand-logo {
  height: 64px;
  width: auto;
  max-width: none;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  background: transparent;
}
.version-badge {
  background: var(--chrome-hover);
  border: 1px solid var(--chrome-border);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--chrome-fg);
}
.session-badge {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.session-badge.is-guest {
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--session-guest);
}
.session-badge.is-user,
.session-badge.is-google {
  background: var(--chrome-hover);
  border: 1px solid var(--chrome-border);
  color: var(--chrome-fg);
}
.view-as-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 16px;
  background: color-mix(in srgb, #e11d2e 16%, var(--card));
  border-bottom: 1px solid var(--accent-line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}
.view-as-banner[hidden] { display: none !important; }
body.login-mode .view-as-banner { display: none !important; }

.nav {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--line);
  padding: 0 20px;
  display: flex;
  gap: 4px;
}
.nav a {
  padding: 10px 12px;
  color: var(--muted);
  font-weight: 600;
  border-bottom: 3px solid transparent;
  transition: color var(--anim-fast) var(--anim-ease), border-color var(--anim-fast) var(--anim-ease);
}
.nav a { font-size: 14px; }
.nav a.active { color: var(--accent); border-bottom-color: var(--accent); }

.view { padding: 18px 20px 28px; max-width: 1440px; margin: 0 auto; }
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}
.page-head h2 { margin: 0; font-size: var(--fs-title); }
.page-head p { margin: 6px 0 0; color: var(--muted); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }

.btn[hidden] { display: none !important; }
.btn {
  border: 1px solid var(--btn-border);
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--btn-fg);
  background: var(--btn-bg);
  transition:
    transform var(--anim-fast) var(--anim-ease),
    box-shadow var(--anim-fast) var(--anim-ease),
    filter var(--anim-fast) var(--anim-ease),
    background-color var(--anim-fast) var(--anim-ease),
    border-color var(--anim-fast) var(--anim-ease);
}
.btn:hover:not(:disabled):not(.is-off),
.btn:focus-visible:not(:disabled):not(.is-off) {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: var(--hover-lift);
}
.btn.primary {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}
.btn.green { background: var(--green); border-color: var(--green); }
.btn.blue {
  background: var(--blue);
  color: var(--btn-neutral-fg);
  border-color: var(--blue);
}
.btn.purple {
  background: var(--purple);
  color: var(--btn-neutral-fg);
  border-color: var(--purple);
}
.btn.red {
  background: var(--red);
  border-color: var(--red);
}
.btn.ghost {
  background: var(--ghost-bg);
  color: var(--ghost-fg);
  border-color: var(--btn-border);
}
.btn.small { padding: 7px 10px; font-size: 13px; }
.btn.tiny { padding: 2px 8px; font-size: 11px; border-radius: 999px; }
.btn.icon {
  width: 36px;
  height: 36px;
  padding: 0;
  justify-content: center;
  background: var(--card);
  color: var(--muted);
  border-color: var(--btn-border);
}
.btn.icon.danger:hover { color: var(--red); border-color: var(--fail-line); }
.btn:disabled, .btn.is-off {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  filter: none;
  transform: none;
  box-shadow: none;
}

.grid-4, .grid-5 { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.stat-card { display: flex; justify-content: space-between; align-items: center; }
.stat-card .label { color: var(--muted); font-size: 13px; font-weight: 700; }
.stat-card .value { font-size: 34px; font-weight: 800; margin-top: 8px; }
.stat-card.pass .value { color: var(--green); }
.icon-bubble {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
}
.icon-bubble.brown { background: #f3e8d8; }
.icon-bubble.purple { background: #ede9fe; }
.icon-bubble.orange { background: #ffedd5; }
.icon-bubble.chart { background: #dbeafe; }

.panel { margin-top: 20px; }
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.mini-stat {
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}
.mini-stat .k { color: var(--muted); font-size: 12px; font-weight: 700; }
.mini-stat .v { font-size: 22px; font-weight: 800; margin-top: 6px; }
.mini-stat.ok { background: var(--green-soft); }
.mini-stat.bad { background: var(--red-soft); }

.chart-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 24px 0 8px;
}
.donut { width: 220px; height: 220px; position: relative; }
.donut svg { transform: rotate(-90deg); }
.donut-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 800;
}
.donut-label small { display: block; color: var(--muted); font-size: 12px; letter-spacing: 0.6px; }
.legend { display: grid; gap: 10px; }
.legend span { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; }
.swatch { width: 12px; height: 12px; border-radius: 3px; }
.swatch.ok { background: var(--green); }
.swatch.bad { background: var(--red); }

.layout-split { display: grid; grid-template-columns: 280px 1fr; gap: 18px; align-items: start; }
.sidebar {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.sidebar-head {
  padding: 12px 12px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
  font-size: 14px;
}
.sidebar-head > div { display: grid; gap: 2px; }
.sidebar-head small { color: var(--muted); font-weight: 600; font-size: 12px; }
.module-list { padding: 6px; }
.module-item {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 7px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  border-radius: 8px;
  margin-bottom: 2px;
}
.module-item { transition: background-color var(--anim-fast) var(--anim-ease); }
.module-item:hover { background: var(--card-2); }
.module-item.active {
  background: var(--active-bg);
  color: var(--active-fg);
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--accent);
}
.mod-ico {
  width: 14px;
  height: 11px;
  border-radius: 1px 2px 1px 1px;
  background: #fbbf24;
  position: relative;
  flex: 0 0 14px;
}
.mod-ico::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 6px;
  height: 4px;
  background: #f59e0b;
  border-radius: 1px 1px 0 0;
}
.mod-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.count-pill {
  background: var(--chip);
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 700;
  color: var(--chip-fg);
  flex: 0 0 auto;
}
.module-item.active .count-pill { background: var(--accent-soft); color: var(--active-fg); }

.view:has(.saved-page) { padding: 14px 16px 24px; }
.saved-page {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.saved-sidebar {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.saved-main { min-width: 0; }
.saved-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.saved-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}
.saved-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.saved-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.saved-toolbar .actions { flex-wrap: nowrap; }
.api-list { min-width: 0; }

.list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.api-row {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.api-row.is-dragging { opacity: 0.45; }
.api-lead {
  display: grid;
  grid-template-columns: 22px 16px minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
  min-width: 0;
}
.api-row .drag {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  cursor: grab;
  color: #94a3b8;
  letter-spacing: -1px;
  line-height: 1;
  user-select: none;
  font-size: 14px;
}
.api-row .drag:active { cursor: grabbing; }
.api-row .pick { margin: 0; }
.api-meta { min-width: 0; }
.api-name-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.api-row .name {
  font-weight: 800;
  font-size: 14px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.api-row .curl {
  margin-top: 2px;
  color: var(--muted);
  font: 12px/1.4 ui-monospace, Consolas, monospace;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-all;
}
.badge {
  display: inline-block;
  background: #dbeafe;
  color: #1d4ed8;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  flex: 0 0 auto;
  white-space: nowrap;
}
.row-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex: 0 0 auto;
}
.api-row .move {
  width: 118px;
  min-width: 118px;
  padding: 6px 8px;
  font-size: 13px;
}
.api-row .btn.icon {
  width: 32px;
  height: 32px;
}
.empty.tight { padding: 16px 12px; font-size: 13px; }

.view:has(.create-page) {
  max-width: 1680px;
  padding: 20px 24px 40px;
}
.create-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
.create-toolbar h2 { margin: 0; font-size: var(--fs-title); }
.create-toolbar p { margin: 6px 0 0; color: var(--muted); }
.create-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
}
.section-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin: 0 0 10px;
}
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.field input, .field select, .field textarea, .input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--input-bg);
  color: var(--text);
}
.field textarea { min-height: 110px; resize: vertical; font-family: ui-monospace, Consolas, monospace; }
.secret-field {
  position: relative;
  display: block;
  width: 100%;
}
.secret-field input {
  width: 100%;
  padding-right: 44px;
  box-sizing: border-box;
}
.secret-field.is-plain input { padding-right: 12px; }
.secret-toggle {
  position: absolute;
  top: 50%;
  right: 5px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.secret-toggle[hidden] { display: none !important; }
.secret-toggle:hover,
.secret-toggle:focus-visible {
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 8%, transparent);
}
.secret-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.quick-actions { display: grid; gap: 8px; }
.method-url { display: grid; grid-template-columns: 110px 1fr; gap: 8px; }
.header-row { display: grid; grid-template-columns: 1fr 1fr 36px; gap: 8px; margin-bottom: 8px; }
.method-url input, .method-url select, .header-row input, .extract-fields input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--input-bg);
  color: var(--text);
}
.rule-box { border: 2px dashed #60a5fa; background: var(--blue-soft); border-radius: 14px; padding: 20px; }
.empty {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  color: var(--muted);
}
.response-box {
  background: var(--code-bg);
  color: var(--code-fg);
  border-radius: 12px;
  padding: 12px;
  min-height: 220px;
  max-height: 360px;
  overflow: auto;
  font: 12px/1.5 ui-monospace, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.response-raw {
  background: var(--code-bg);
  color: var(--code-fg);
  border: 1px solid var(--bound);
  border-radius: 12px;
  padding: 12px;
  min-height: 220px;
  max-height: 360px;
  margin: 10px 0 0;
  overflow: auto;
  font: 12px/1.5 ui-monospace, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  scrollbar-color: #64748b #1e293b;
  scrollbar-width: thin;
}
.response-raw code {
  background: transparent;
  color: inherit;
  font: inherit;
  white-space: inherit;
}
.response-raw-hit {
  background: #fde68a;
  color: #111;
  padding: 0 1px;
  border-radius: 2px;
}
.response-raw-empty {
  color: color-mix(in srgb, var(--code-fg) 68%, transparent);
  font-style: italic;
  white-space: normal;
}
.response-raw::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.response-raw::-webkit-scrollbar-track {
  background: #1e293b;
}
.response-raw::-webkit-scrollbar-thumb {
  background: #64748b;
  border-radius: 8px;
  border: 2px solid #1e293b;
}
.field-chip {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 6px;
  background: var(--card);
  cursor: pointer;
}
.field-chip:hover { border-color: var(--accent); }
.field-chip b { display: block; font-size: 13px; }
.field-chip small { color: var(--muted); }

.filters { display: flex; gap: 10px; align-items: center; }
.run-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin-bottom: 12px;
  padding: 18px 20px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.run-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}
.run-main { min-width: 0; }
.run-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.run-meta {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.kpi-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.kpi {
  min-width: 88px;
  border-radius: 10px;
  padding: 8px 10px;
  background: var(--card-2);
  border: 1px solid var(--line);
  text-align: center;
}
.kpi.ok { background: var(--green-soft); border-color: var(--pass-line); }
.kpi.bad { background: var(--red-soft); border-color: var(--fail-line); }
.kpi .n { font-weight: 800; font-size: 18px; line-height: 1.1; }
.kpi .l { font-size: 11px; color: var(--muted); font-weight: 700; margin-top: 2px; }
.report-api-card { margin-top: 12px; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.table th { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.mono { font-family: ui-monospace, Consolas, monospace; }

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: min(380px, calc(100vw - 32px));
  background: var(--green);
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  z-index: 30;
  overflow-wrap: anywhere;
  word-break: break-word;
  box-shadow: 0 10px 30px rgba(22, 163, 74, 0.28);
}
.toast strong { display: block; font-size: 14px; }
.toast span { display: block; margin-top: 4px; font-size: 13px; opacity: 0.88; line-height: 1.4; }
.toast-ok {
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 30px rgba(22, 163, 74, 0.28);
}
.toast-error {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 30px rgba(225, 29, 46, 0.28);
}
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.alert-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--card);
  font-weight: 800;
}
.alert-copy { min-width: 0; flex: 1; }
.alert-copy strong { display: block; font-size: 14px; line-height: 1.35; }
.alert-copy p { margin: 6px 0 0; font-size: 13px; font-weight: 600; line-height: 1.45; }
.alert-tokens { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.alert-token {
  background: var(--card);
  border-radius: 999px;
  padding: 2px 8px;
  font: 12px/1.4 ui-monospace, Consolas, monospace;
}
.alert-error { background: var(--red-soft); color: var(--red-text); border: 1px solid #fecaca; }
.alert-ok { background: var(--green-soft); color: var(--green-text); border: 1px solid #bbf7d0; }
.breakable { overflow-wrap: anywhere; word-break: break-word; }
.toast.hidden, .modal.hidden, .hidden { display: none; }
.conn-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  padding: 10px 16px;
  background: #111;
  color: #fff;
  border-top: 2px solid var(--accent);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}
html[data-theme="light"] .conn-banner {
  background: #fff;
  color: #111;
}
.modal {
  position: fixed;
  inset: 0;
  background: var(--modal-backdrop);
  display: grid;
  place-items: center;
  z-index: 20;
}
.modal-card { width: min(480px, calc(100% - 32px)); background: var(--card); border-radius: 16px; padding: 20px; }
.modal-card.wide { width: min(760px, calc(100% - 32px)); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.modal-head h3 { margin: 0; font-size: 20px; }
.modal-lead { margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.curl-import {
  width: 100%;
  min-height: 220px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font: 13px/1.5 ui-monospace, Consolas, monospace;
}
.variables-bar {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green-text);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.variables-bar-label { margin-right: 2px; }
.var-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 10px;
  background: var(--card);
  border: 1px solid #86efac;
  border-radius: 999px;
  color: var(--green-text);
  font-weight: 700;
}
.var-chip code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
}
.var-chip-saved {
  font-size: 11px;
  font-weight: 700;
  color: var(--green-text);
}
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

.rule-item, .extract-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  background: var(--card);
}
.rule-item.is-pass { background: var(--green-soft); border-color: var(--pass-line); }
.rule-item.is-fail { background: var(--red-soft); border-color: var(--fail-line); }
.rule-test-result {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 15px;
}
.rule-test-result strong { display: block; font-weight: 800; }
.rule-test-result .rule-test-why {
  margin-top: 4px;
  font-weight: 600;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.rule-test-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--card);
  font-weight: 800;
}
.rule-test-result.is-pass {
  background: var(--green-soft);
  color: var(--green-text);
  border: 2px solid #16a34a;
}
.rule-test-result.is-fail {
  background: var(--red-soft);
  color: var(--red-text);
  border: 2px solid #dc2626;
}
.rule-test-badge { font-size: 12px; margin-top: 4px; }
.pass { color: var(--green); font-weight: 800; }
.fail { color: var(--red); font-weight: 800; }
.select-all { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; white-space: nowrap; }

.create-card { padding: 22px; min-width: 0; overflow: hidden; }
.create-col { min-width: 0; }
.create-card + .create-card { margin-top: 16px; }
.create-heading {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--ink);
}
.create-block {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.create-block.last { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.create-block .field.last { margin-bottom: 0; }
.req { color: var(--red); }
.module-row { display: flex; gap: 8px; }
.module-row select { flex: 1; }
.quick-rule {
  width: 100%;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.quick-rule:hover {
  border-color: #93c5fd;
  background: var(--blue-soft);
}
.quick-mark {
  min-width: 36px;
  height: 24px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--chip);
  color: #475569;
  font-size: 11px;
  font-weight: 800;
}
.field-list {
  margin-top: 10px;
  max-height: 280px;
  overflow: auto;
}
.create-empty {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 22px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  background: var(--card-2);
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.card-head.sub { margin: 20px 0 10px; }
.create-page .header-row {
  grid-template-columns: 1fr 1fr 36px;
}
.create-page .body-type {
  width: auto;
  min-width: 110px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 10px;
  background: var(--card);
}
.create-page .hint {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.create-page .hint.tight { margin: 6px 0 0; }
.create-page .hint.fail {
  color: var(--red);
  font-weight: 600;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.create-col-right .alert { margin-top: 10px; }
.create-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.create-page .variables-bar { margin-top: 16px; }
.create-page .rule-box.is-focus {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}
.saved-rules { margin-top: 20px; }
.saved-rules .create-heading { margin-bottom: 12px; }
.extract-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  flex: 1;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
  background: var(--chip);
  color: var(--muted);
  white-space: nowrap;
}
.status-pill.ok { background: var(--green-soft); color: var(--green-text); }
.status-pill.bad { background: var(--red-soft); color: var(--red-text); }
.status-pill.muted { background: var(--chip); color: var(--muted); }
.create-col-right .response-box { margin-top: 10px; }
.create-col-right .create-empty { margin-top: 10px; }
.create-col-right .field-list { max-height: 320px; }
.create-page .field-chip {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
}
@media (min-width: 1100px) {
  .create-col-right { position: sticky; top: 16px; }
}

@media (max-width: 1100px) {
  .grid-4, .grid-5, .create-grid, .layout-split { grid-template-columns: 1fr; }
  .create-col-right { position: static; }
}
@media (max-width: 900px) {
  .saved-page { grid-template-columns: 188px minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 720px) {
  .saved-page { grid-template-columns: 1fr; }
  .api-row { grid-template-columns: minmax(0, 1fr); }
  .row-actions { justify-content: flex-start; flex-wrap: wrap; }
  .run-card { grid-template-columns: 1fr; }
  .kpi-row { justify-content: flex-start; }
}

.reports-page .page-head { margin-bottom: 16px; }
.report-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.report-stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
.report-stat .k { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px; }
.report-stat .v { font-size: 26px; font-weight: 800; margin-top: 4px; line-height: 1.1; }
.report-stat .v.mini { font-size: 18px; }
.report-stat .v.ok { color: var(--green); }
.report-stat .v.bad { color: var(--red); }
.report-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 160px;
  gap: 8px;
  margin-bottom: 12px;
}
.run-table-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.run-table-head, .run-row {
  display: grid;
  grid-template-columns: 88px minmax(140px, 1.3fr) 110px 90px 90px 70px minmax(110px, 1fr) 72px;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
}
.run-table-head {
  background: var(--card-2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 1px solid var(--line);
}
.run-row {
  border-bottom: 1px solid var(--line);
  color: inherit;
}
.run-row:last-child { border-bottom: 0; }
.run-row:hover { background: var(--card-2); }
.run-row.is-pass { box-shadow: inset 3px 0 0 var(--green); }
.run-row.is-fail { box-shadow: inset 3px 0 0 var(--red); }
.run-rules { display: flex; align-items: center; gap: 8px; }
.run-bar {
  display: inline-block;
  width: 72px;
  height: 6px;
  border-radius: 999px;
  background: #fecaca;
  overflow: hidden;
  vertical-align: middle;
}
.run-bar i {
  display: block;
  height: 100%;
  background: var(--green);
}
.run-open { color: var(--muted); font-size: 12px; font-weight: 700; text-align: right; }
.report-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}
.report-crumb a { color: var(--accent); }
.report-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
}
.report-hero.is-pass { background: var(--green-soft); border-color: var(--pass-line); }
.report-hero.is-fail { background: var(--red-soft); border-color: var(--fail-line); }
.report-hero-kicker { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px; color: var(--muted); }
.report-hero h2 { margin: 4px 0 0; font-size: 26px; }
.report-hero p { margin: 6px 0 0; color: var(--muted); }
.report-hero-score { text-align: right; }
.report-hero-score .n { font-size: 40px; font-weight: 800; line-height: 1; }
.report-hero.is-pass .report-hero-score .n { color: var(--green); }
.report-hero.is-fail .report-hero-score .n { color: var(--red); }
.report-hero-score .l { color: var(--muted); font-size: 12px; font-weight: 700; margin-top: 4px; }
.report-detail {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.report-side {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}
.report-side .donut { margin: 0 auto 12px; }
.report-dl { margin: 16px 0; }
.report-dl div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.report-dl dt { color: var(--muted); font-weight: 700; }
.report-dl dd { margin: 0; font-weight: 700; text-align: right; }
.report-tests-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.report-tests-head h3 { margin: 0; font-size: 16px; }
.report-tests-head span { color: var(--muted); font-size: 13px; font-weight: 700; }
.test-case {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 8px;
  overflow: hidden;
}
.test-case.is-pass { box-shadow: inset 3px 0 0 var(--green); }
.test-case.is-fail { box-shadow: inset 3px 0 0 var(--red); }
.test-case > summary {
  list-style: none;
  display: grid;
  grid-template-columns: 22px 64px minmax(0, 1fr) auto auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  cursor: pointer;
}
.test-case > summary::-webkit-details-marker { display: none; }
.test-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  background: var(--chip);
  color: var(--muted);
}
.test-case.is-pass > summary .test-mark,
.assert.is-pass .test-mark { background: var(--green-soft); color: var(--green); }
.test-case.is-fail > summary .test-mark,
.assert.is-fail .test-mark { background: var(--red-soft); color: var(--red); }
.verb {
  display: inline-flex;
  justify-content: center;
  min-width: 58px;
  border-radius: 6px;
  padding: 3px 6px;
  font-size: 11px;
  font-weight: 800;
  font-family: ui-monospace, Consolas, monospace;
}
.verb.get { background: #dbeafe; color: #1d4ed8; }
.verb.post { background: var(--green-soft); color: var(--green-text); }
.verb.put { background: #ffedd5; color: #c2410c; }
.verb.patch { background: #ede9fe; color: #6d28d9; }
.verb.delete { background: var(--red-soft); color: var(--red-text); }
.test-name { min-width: 0; }
.test-name strong { display: block; font-size: 14px; }
.test-url {
  display: block;
  color: var(--muted);
  font-size: 12px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-all;
}
.test-time { color: var(--muted); font-size: 12px; }
.test-body { padding: 0 12px 12px 42px; }
.test-module { color: var(--muted); font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.test-error {
  background: var(--red-soft);
  color: var(--red-text);
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 700;
  margin-bottom: 8px;
}
.assert {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  margin-bottom: 6px;
  background: var(--card-2);
}
.assert.is-pass { background: #f0fdf4; border-color: var(--pass-line); }
.assert.is-fail { background: var(--active-bg); border-color: var(--fail-line); }
.response-fold { margin-top: 8px; }
.response-fold summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.response-box.tight { min-height: 0; max-height: 220px; margin-top: 8px; }
.status-pill.warn { background: #ffedd5; color: #c2410c; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.table th { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.mono { font-family: ui-monospace, Consolas, monospace; }

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: var(--green);
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  z-index: 30;
}
.toast-ok {
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 30px rgba(22, 163, 74, 0.28);
}
.toast-error {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 30px rgba(225, 29, 46, 0.28);
}
.toast.hidden, .modal.hidden, .hidden { display: none; }
.modal {
  position: fixed;
  inset: 0;
  background: var(--modal-backdrop);
  display: grid;
  place-items: center;
  z-index: 20;
}
.modal-card { width: min(480px, calc(100% - 32px)); background: var(--card); border-radius: 16px; padding: 20px; }
.modal-card.wide { width: min(760px, calc(100% - 32px)); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.modal-head h3 { margin: 0; font-size: 20px; }
.modal-lead { margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.curl-import {
  width: 100%;
  min-height: 220px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font: 13px/1.5 ui-monospace, Consolas, monospace;
}
.variables-bar {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green-text);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.variables-bar-label { margin-right: 2px; }
.var-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 10px;
  background: var(--card);
  border: 1px solid #86efac;
  border-radius: 999px;
  color: var(--green-text);
  font-weight: 700;
}
.var-chip code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
}
.var-chip-saved {
  font-size: 11px;
  font-weight: 700;
  color: var(--green-text);
}
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

.rule-item, .extract-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  background: var(--card);
}
.rule-item.is-pass { background: var(--green-soft); border-color: var(--pass-line); }
.rule-item.is-fail { background: var(--red-soft); border-color: var(--fail-line); }
.rule-test-result {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 15px;
}
.rule-test-result strong { display: block; font-weight: 800; }
.rule-test-result .rule-test-why { margin-top: 4px; font-weight: 600; }
.rule-test-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--card);
  font-weight: 800;
}
.rule-test-result.is-pass {
  background: var(--green-soft);
  color: var(--green-text);
  border: 2px solid #16a34a;
}
.rule-test-result.is-fail {
  background: var(--red-soft);
  color: var(--red-text);
  border: 2px solid #dc2626;
}
.rule-test-badge { font-size: 12px; margin-top: 4px; }
.pass { color: var(--green); font-weight: 800; }
.fail { color: var(--red); font-weight: 800; }
.select-all { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; white-space: nowrap; }

.create-card { padding: 22px; }
.create-card + .create-card { margin-top: 16px; }
.create-heading {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--ink);
}
.create-block {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.create-block.last { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.create-block .field.last { margin-bottom: 0; }
.req { color: var(--red); }
.module-row { display: flex; gap: 8px; }
.module-row select { flex: 1; }
.quick-rule {
  width: 100%;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.quick-rule:hover {
  border-color: #93c5fd;
  background: var(--blue-soft);
}
.quick-mark {
  min-width: 36px;
  height: 24px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--chip);
  color: #475569;
  font-size: 11px;
  font-weight: 800;
}
.field-list {
  margin-top: 10px;
  max-height: 280px;
  overflow: auto;
}
.create-empty {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 22px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  background: var(--card-2);
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.card-head.sub { margin: 20px 0 10px; }
.create-page .header-row {
  grid-template-columns: 1fr 1fr 36px;
}
.create-page .body-type {
  width: auto;
  min-width: 110px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 10px;
  background: var(--card);
}
.create-page .hint {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.create-page .hint.tight { margin: 6px 0 0; }
.create-page .hint.fail { color: var(--red); font-weight: 600; }
.create-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.create-page .variables-bar { margin-top: 16px; }
.create-page .rule-box.is-focus {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}
.saved-rules { margin-top: 20px; }
.saved-rules .create-heading { margin-bottom: 12px; }
.extract-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  flex: 1;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
  background: var(--chip);
  color: var(--muted);
  white-space: nowrap;
}
.status-pill.ok { background: var(--green-soft); color: var(--green-text); }
.status-pill.bad { background: var(--red-soft); color: var(--red-text); }
.status-pill.muted { background: var(--chip); color: var(--muted); }
.create-col-right .response-box { margin-top: 10px; }
.create-col-right .create-empty { margin-top: 10px; }
.create-col-right .field-list { max-height: 320px; }
.create-page .field-chip {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
}
@media (min-width: 1100px) {
  .create-col-right { position: sticky; top: 16px; }
}

@media (max-width: 1100px) {
  .grid-4, .grid-5, .create-grid, .layout-split, .report-summary, .report-detail { grid-template-columns: 1fr; }
  .create-col-right { position: static; }
  .report-toolbar { grid-template-columns: 1fr; }
  .run-table-head { display: none; }
  .run-row, .test-case > summary {
    grid-template-columns: 1fr;
    align-items: start;
  }
}
@media (max-width: 900px) {
  .saved-page { grid-template-columns: 188px minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 720px) {
  .saved-page { grid-template-columns: 1fr; }
  .api-row { grid-template-columns: minmax(0, 1fr); }
  .row-actions { justify-content: flex-start; flex-wrap: wrap; }
}

.boot-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 24px;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.4 system-ui, sans-serif;
  text-align: center;
}
.boot-screen[hidden] { display: none !important; }
body.site-mode {
  background: var(--bg);
  color: var(--text);
}
#site[hidden], #app[hidden] { display: none !important; }
#site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  background-image: radial-gradient(ellipse 90% 42% at 50% 0%, var(--glow), transparent 72%);
  background-repeat: no-repeat;
  overflow-x: clip;
}
.site-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 16px;
  padding: 8px 28px;
  background: var(--chrome);
  border-bottom: 1px solid var(--chrome-border);
  position: sticky;
  top: 0;
  z-index: 5;
}
.site-brand {
  display: flex;
  align-items: center;
  justify-self: center;
  grid-column: 2;
  overflow: visible;
}
.site-brand img {
  height: 72px;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  display: block;
  background: transparent;
}
.site-start {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  justify-self: start;
  align-self: center;
  gap: 10px;
  min-width: 0;
  grid-column: 1;
  flex-wrap: wrap;
  position: relative;
  z-index: 3;
}
.site-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-self: start;
  align-self: center;
  min-width: 0;
  grid-column: 1;
}
.site-nav a {
  color: var(--chrome-muted);
  font-weight: 700;
  font-size: 13px;
  padding: 7px 8px;
  border-radius: 8px;
  transition: color var(--anim-fast) var(--anim-ease), background-color var(--anim-fast) var(--anim-ease);
}
.site-nav a.is-on, .site-nav a:hover { color: var(--chrome-fg); background: var(--chrome-hover); }
.site-cta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  justify-self: end;
  align-self: center;
  grid-column: 3;
  min-width: 0;
  position: relative;
  z-index: 3;
}
.site-cta .btn { white-space: nowrap; }
.site-cta-download {
  padding: 7px 10px;
  font-size: 13px;
}
.site-cta-download.is-on {
  color: var(--chrome-fg) !important;
  border-color: var(--accent) !important;
}
.site-hero, .site-page-head {
  background: transparent;
  color: var(--ink);
  padding: 72px 28px 80px;
}
.site-hero h1, .site-page-head h1 {
  margin: 0;
  max-width: 860px;
  font-size: var(--fs-hero);
  line-height: 1.2;
  color: var(--ink);
}
.site-kicker {
  margin: 0 0 12px;
  color: var(--kicker);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.site-hero .site-kicker, .site-page-head .site-kicker { max-width: 860px; }
.site-lead {
  margin: 16px 0 0;
  max-width: 720px;
  color: var(--lead);
  font-size: var(--fs-lg);
  line-height: 1.55;
}
.site-about-stat {
  margin: 12px 0 0;
  max-width: 720px;
  color: var(--kicker-soft);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.site-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 860px;
  margin: 28px 0 0;
}
.site-hero.is-split {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(300px, 1.15fr);
  gap: 36px 48px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.site-hero.is-split .site-hero-copy h1,
.site-hero.is-split .site-hero-copy .site-lead,
.site-hero.is-split .site-hero-actions { max-width: none; }
.site-hero-visual { min-width: 0; }
.site-hero-visual .site-shot-open { width: 100%; }
.site-hero-caption {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.site-about-main { min-width: 0; }
.site-about-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}
.site-portfolio-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
  margin: 0;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--chrome-border);
  border-radius: 14px;
}
.site-ghost {
  background: transparent !important;
  color: var(--chrome-fg) !important;
  border-color: var(--btn-border) !important;
}
.site-section { padding: 56px 28px; max-width: 1120px; margin: 0 auto; width: 100%; }
.site-section > h2 { margin: 0 0 22px; font-size: var(--fs-title); color: var(--ink); }
.site-alt { background: var(--bg-2); max-width: none; }
.site-alt > * { max-width: 1120px; margin-left: auto; margin-right: auto; }
.site-alt > h2 { margin-bottom: 22px; color: var(--ink); }
.site-grid-4, .site-grid-3 { display: grid; gap: 14px; }
.site-grid-4 { grid-template-columns: repeat(4, 1fr); }
.site-grid-3 { grid-template-columns: repeat(3, 1fr); }
.site-card, .site-plan, .site-price-tease {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow);
  color: var(--text);
}
.site-card h3, .site-plan h3 { margin: 0 0 8px; color: var(--ink); }
.site-card p, .site-plan-blurb { margin: 0; color: var(--muted); line-height: 1.5; }
.site-steps, .site-steps-mini { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 14px; }
.site-steps li, .site-steps-mini li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: start;
}
.site-step-n, .site-steps-mini li span {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--kicker-soft);
  border: 1px solid var(--accent-line);
  font-weight: 800;
}
.site-steps h3, .site-steps-mini strong { margin: 0 0 6px; color: var(--ink); }
.site-steps p, .site-steps-mini p { margin: 0; color: var(--muted); line-height: 1.5; }
.site-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
  max-width: 1120px;
}
.site-about {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: start;
}
.site-split h2 { color: var(--ink); }
.site-split p { color: var(--lead); line-height: 1.55; }
.site-split > div > a { color: var(--kicker-soft); font-weight: 700; }
.site-portrait {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
}
.site-portrait img.site-portrait-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 14px;
  background: var(--bg-3);
}
.site-portrait img.site-portrait-photo.is-missing {
  display: none;
}
.site-portrait span {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  background: var(--accent);
  font-weight: 800;
  font-size: 22px;
}
.site-portrait span[hidden] {
  display: none;
}
.site-portrait strong, .site-portrait small { display: block; }
.site-portrait small { margin-top: 6px; color: var(--muted); }
.site-prose p { color: var(--lead); line-height: 1.6; }
.site-portfolio {
  margin: 0;
  max-width: 1120px;
}
.site-portfolio h2 {
  margin: 0 0 22px;
  color: var(--ink);
  font-size: var(--fs-title);
  letter-spacing: 0;
  text-transform: none;
}
.site-portfolio-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-portfolio-list li {
  margin: 0;
}
.site-portfolio-card.site-portfolio-feature {
  border-color: var(--accent);
  box-shadow: inset 3px 0 0 var(--accent);
}
.site-portfolio-card strong {
  display: block;
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
}
.site-portfolio-card span {
  display: block;
  margin: 0;
  color: var(--lead);
  font-size: 14px;
  line-height: 1.55;
}
.site-portfolio-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
}
.site-portfolio-skills span {
  background: var(--surface);
  border: 1px solid var(--chrome-border);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}
.site-portfolio .site-hero-actions {
  margin-top: 22px;
}
.site-prose-lead {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  font-size: var(--fs-lg);
  line-height: 1.55;
}
.site-plans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.18fr); gap: 16px; align-items: stretch; }
.site-plan { position: relative; display: flex; flex-direction: column; gap: 10px; }
.site-plan.is-featured {
  background: var(--surface-2);
  border-color: var(--accent-line);
  box-shadow: 0 16px 48px var(--glow-strong);
}
.site-plan.is-partner {
  padding: 28px 22px 22px;
  border: 2px solid #e11d2e;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, color-mix(in srgb, #e11d2e 18%, transparent), transparent 70%),
    var(--card);
  box-shadow:
    0 20px 56px color-mix(in srgb, #e11d2e 22%, transparent),
    0 0 0 1px color-mix(in srgb, #e11d2e 30%, transparent);
  transform: translateY(-6px);
}
.site-plan.is-partner .site-plan-tag {
  background: #e11d2e;
  color: #fff;
}
.site-plan.is-partner .site-plan-price strong {
  font-size: 36px;
  color: #e11d2e;
}
.site-plan.is-partner h3 {
  font-size: 22px;
}
html[data-theme="light"] .site-plan.is-partner {
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, color-mix(in srgb, #e11d2e 10%, transparent), transparent 70%),
    #fff;
}
.site-plan.is-contact .site-plan-price strong {
  font-size: 22px;
}
.site-plan-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
}
.site-plan-price strong { display: block; font-size: 28px; color: var(--ink); }
.site-plan-price span { color: var(--muted); font-size: 13px; }
.site-plan ul { margin: 0 0 8px; padding-left: 18px; color: var(--text); line-height: 1.55; }
.site-plan .btn, .site-dl-action .btn { margin-top: auto; justify-content: center; }
.site-plan-toggle {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
}
.site-interval {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  padding: 8px 18px;
  cursor: pointer;
}
.site-interval.is-on {
  background: var(--accent);
  color: var(--on-accent);
}
.site-welcome .site-hero-actions { margin-top: 20px; display: flex; gap: 12px; flex-wrap: wrap; }
.site-plan-pay,
.js-subscribe {
  pointer-events: auto;
}
.site-plan-pay:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: auto;
}
.site-plan-hint {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.site-plan-hint.is-error {
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--red-soft);
  color: var(--red-text);
  border: 1px solid var(--fail-line);
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
}
.site-plan-banner {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--accent-line);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--ink);
}

.site-section.site-shots {
  position: relative;
  max-width: none;
  padding: 72px 28px 80px;
  color: var(--ink);
  background: var(--bg-2);
  overflow-x: clip;
}
.site-shots::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(780px, 92vw);
  height: 260px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 0%, var(--glow-strong), transparent 72%);
  pointer-events: none;
}
.site-shots-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
}
.site-shots-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.site-shots-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.2;
}
.site-shots-head .site-lead {
  margin: 12px 0 0;
  max-width: 560px;
  color: var(--lead);
}
.site-shots-list {
  display: grid;
  gap: 64px;
}
.site-shot {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 36px 40px;
  width: 100%;
  margin: 0;
  min-width: 0;
}
.site-shot-open {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: var(--radius);
}
.site-shot-open:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.site-shot.is-flip {
  flex-direction: row-reverse;
}
.site-shot-media {
  flex: 1.7 1 0;
  min-width: 0;
}
.site-shot-frame {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--shot-frame);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.site-shot-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--shot-chrome);
  border-bottom: 1px solid var(--line);
}
.site-shot-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}
.site-shot-dots i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.site-shot-dots i:nth-child(1) { background: var(--accent); }
.site-shot-dots i:nth-child(2) { background: #f59e0b; }
.site-shot-dots i:nth-child(3) { background: #22c55e; }
.site-shot-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--shot-name);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-shadow: 0 0 16px var(--glow-strong);
}
.site-shot-viewport {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--shot-frame);
}
.site-shot-viewport img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  pointer-events: none;
  cursor: default;
}
.site-shot-viewport img.is-missing {
  min-height: 200px;
  object-fit: none;
  opacity: 0.25;
}
.site-shot-copy {
  flex: 0.72 1 260px;
  min-width: 0;
  margin: 0;
  padding: 4px 0 4px 18px;
  border-left: 2px solid var(--accent);
}
.site-shot.is-flip .site-shot-copy {
  padding: 4px 18px 4px 0;
  border-left: 0;
  border-right: 2px solid var(--accent);
}
.site-shot-points {
  margin: 0;
  padding: 0 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.site-shot-points li {
  margin: 0 0 10px;
  padding-left: 4px;
  overflow-wrap: break-word;
}
.site-shot-points li:last-child { margin-bottom: 0; }
.site-shot-points li::marker {
  color: var(--accent);
  font-weight: 800;
}
@keyframes site-shot-from-left {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: none; }
}
@keyframes site-shot-from-right {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
  .site-shot,
  .site-shot.is-flip {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .site-shot-media,
  .site-shot-copy,
  .site-shot.is-flip .site-shot-copy {
    flex: none;
    width: 100%;
  }
  .site-shot-copy,
  .site-shot.is-flip .site-shot-copy {
    padding: 0 0 0 14px;
    border-left: 2px solid var(--accent);
    border-right: 0;
  }
}

@media (max-width: 720px) {
  .site-section.site-shots { padding: 40px 16px 48px; }
  .site-shots-head { margin-bottom: 28px; }
  .site-shots-list { gap: 36px; }
}
.site-dl-action { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.site-dl-file {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  word-break: break-all;
}
.site-dl-file code {
  font-size: 12px;
  color: var(--text);
}
.site-dl-notes { margin-top: 18px; }
.site-dl-plans .site-plan { min-height: 100%; }
.site-foot {
  margin-top: auto;
  padding: 22px 28px 72px;
  background: var(--chrome);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
body.has-wa-clearance .site-foot {
  padding-bottom: 22px;
}
.site-foot strong, .site-foot span { display: block; color: var(--chrome-fg); }
.site-foot span { color: var(--muted); font-size: 13px; margin-top: 4px; }
.site-foot nav { display: flex; gap: 14px; align-items: center; }
.site-foot a { color: var(--chrome-fg); font-weight: 700; }
.site-foot .site-ext { color: var(--kicker-soft); }
.site-brand-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 12px;
}
.site-brand-links .site-ext,
.site-prose .site-ext,
.site-split .site-ext {
  color: var(--accent);
  font-weight: 800;
}
.site-ext:hover { text-decoration: underline; }
.site-hero .site-brand-links .site-ext { color: var(--kicker-soft); }
.site-compare { display: grid; gap: 12px; margin-top: 8px; }
.site-compare-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: stretch;
}
.site-compare-vs {
  align-self: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
}
.site-vs-them, .site-vs-us {
  border-radius: 14px;
  padding: 18px 20px;
  margin: 0;
}
.site-vs-them {
  background: var(--bg-2);
  color: var(--muted);
}
.site-vs-them strong {
  display: block;
  margin-bottom: 8px;
  color: var(--kicker-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.site-vs-us {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--accent-line);
}
.site-vs-us strong {
  display: block;
  margin-bottom: 8px;
  color: var(--kicker);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.site-vs-them p, .site-vs-us p { margin: 0; line-height: 1.5; }
.site-vs-us p { color: var(--text); }
.site-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.site-pill {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
}
.site-cta-band {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.site-note {
  max-width: 720px;
  margin-top: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
}
.site-note h3 { margin: 0 0 6px; font-size: 14px; color: var(--ink); }
.site-note p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

@media (max-width: 1080px) {
  .site-top {
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .site-brand {
    grid-column: 1;
    order: 1;
    justify-self: center;
  }
  .site-start,
  .site-nav {
    grid-column: 1;
    order: 2;
    width: 100%;
    justify-content: center;
    justify-self: center;
  }
  .site-cta {
    grid-column: 1;
    order: 3;
    justify-self: center;
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 960px) {
  .site-hero.is-split,
  .site-about-highlights,
  .site-portfolio-list,
  .site-grid-4, .site-grid-3, .site-plans, .site-split, .site-about { grid-template-columns: 1fr; }
  .site-compare-row { grid-template-columns: 1fr; }
  .site-compare-vs { display: none; }
}

.quick-rule span:last-child { min-width: 0; }
.quick-rule strong { display: block; font-size: 13px; }
.quick-rule small { display: block; margin-top: 2px; color: var(--muted); font-weight: 600; line-height: 1.35; }
.report-group {
  margin: 18px 0 8px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.report-group.fail { color: var(--red); }
.report-group.pass { color: var(--green); }

@media (max-width: 1100px) {
  .nav { flex-wrap: wrap; }
  .page-head { flex-direction: column; }
  .report-summary { grid-template-columns: 1fr 1fr; }
  .report-toolbar { grid-template-columns: 1fr; }
  .report-detail { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .topbar, .site-top { padding-left: 12px; padding-right: 12px; }
  .view { padding: 12px; }
  .site-hero, .site-page-head { padding: 36px 16px 44px; }
  .site-section { padding: 32px 16px; }
  .site-hero h1, .site-page-head h1 { font-size: 26px; }
  .site-lead { font-size: 15px; }
  .report-summary { grid-template-columns: 1fr; }
  .report-hero { flex-direction: column; align-items: flex-start; }
  .report-hero-score { text-align: left; }
  .run-table-head { display: none; }
  .run-row, .test-case > summary {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .create-grid, .method-url, .header-row, .extract-fields { grid-template-columns: 1fr; }
  .topbar {
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 8px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .topbar-start {
    display: flex;
    width: 100%;
    justify-content: center;
    justify-self: center;
    order: 2;
  }
  .brand { order: 1; }
  .topbar-end {
    width: 100%;
    justify-content: center;
    justify-self: center;
    order: 3;
  }
  body.login-mode .topbar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    justify-items: stretch;
  }
  body.login-mode .topbar-start {
    order: 0;
    width: auto;
    justify-content: flex-start;
    justify-self: start;
  }
  body.login-mode .topbar-end {
    order: 0;
    width: auto;
    justify-content: flex-end;
    justify-self: end;
  }
  .brand-logo { height: 52px; }
  .site-brand img { height: 56px; }
  .site-foot { flex-direction: column; }
  .site-nav { width: 100%; justify-content: center; }
  .site-cta { width: auto; max-width: 100%; }
  .page-head h2 { font-size: 20px; }
  .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .site-nav a,
  .nav a {
    padding: 11px 12px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .theme-toggle {
    height: 44px;
    padding: 0 14px;
  }
  .btn.small {
    min-height: 44px;
    padding: 10px 14px;
  }
  .site-return {
    min-height: 44px;
  }
  .shot-lightbox {
    padding: 12px 10px;
  }
  .shot-lightbox-dialog {
    width: min(960px, calc(100vw - 20px));
    max-width: calc(100vw - 20px);
    max-height: min(92vh, calc(100dvh - 16px));
  }
  .shot-lightbox-body img {
    max-height: calc(92vh - 76px);
  }
  .btn.icon.shot-lightbox-close {
    width: 44px;
    height: 44px;
  }
}

img { max-width: 100%; height: auto; }
.brand-logo,
.site-brand img,
.login-logo {
  max-width: none;
  width: auto;
  object-fit: contain;
  object-position: center;
}
input, select, textarea { max-width: 100%; }
.nav { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.run-table-wrap { overflow-x: auto; }
.site-top { gap: 10px; }
.site-hero-actions .btn, .actions .btn { justify-content: center; }

.field-chip-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.field-chip-top em {
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  flex: 0 0 auto;
}
.field-chip-value {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.view-toggle {
  display: flex;
  gap: 6px;
  margin: 0 0 10px;
}
.view-toggle-btn {
  border: 1px solid var(--btn-border);
  background: var(--card);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}
.view-toggle-btn.is-on {
  background: var(--red-soft);
  border-color: var(--fail-line);
  color: var(--accent);
}
.easy-response {
  margin-top: 10px;
  max-height: 420px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}
.virt-spacer {
  position: relative;
  width: 100%;
}
.virt-window {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  will-change: transform;
}
.easy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.easy-row.is-last { border-bottom: 0; }
.easy-k strong { display: block; font-size: 13px; }
.easy-k small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.easy-v { font-weight: 700; overflow-wrap: anywhere; }
.extract-note { margin: 6px 0 0; }
.saved-rules-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.saved-rules-head .create-heading { margin-bottom: 0; }
.saved-rules-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.rule-select-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.rule-check {
  display: grid;
  place-items: center;
  padding-top: 4px;
}
.rule-copy { min-width: 0; flex: 1; }
.rule-item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.rule-test-badge.pending { color: var(--muted); font-weight: 700; }
.rule-test-badge.pass { color: var(--green); font-weight: 700; }
.rule-test-badge.fail { color: var(--red); font-weight: 700; }
.field-picked {
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--card-2);
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}
.field-picked.has-value {
  border-style: solid;
  border-color: var(--pass-line);
  background: var(--green-soft);
  color: var(--ink);
}
@media (max-width: 720px) {
  .easy-row { grid-template-columns: 1fr; }
  .rule-item, .extract-item { flex-wrap: wrap; }
  .rule-item-actions { width: 100%; justify-content: flex-end; }
}

.dash-page { display: grid; gap: 16px; }
.dash-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.dash-kicker {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.dash-hero h2, .saved-head h2 { margin: 0; font-size: var(--fs-title); }
.dash-hero p, .saved-head p { margin: 6px 0 0; color: var(--muted); }
.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.dash-stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  min-height: 118px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.dash-stat:hover { border-color: var(--ink); }
.dash-stat-k {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.dash-stat strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  line-height: 1;
}
.dash-stat small { margin-top: auto; padding-top: 10px; color: var(--muted); font-weight: 600; }
.dash-stat.is-pass strong { color: var(--green); }
.dash-stat.is-fail strong { color: var(--accent); }
.dash-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
  align-items: start;
}
.dash-panel { padding: 18px; }
.dash-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.dash-panel-head h3 { margin: 0; font-size: 16px; }
.dash-panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.dash-last {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card-2);
}
.dash-last.is-pass { background: var(--green-soft); border-color: var(--pass-line); }
.dash-last.is-fail { background: var(--red-soft); border-color: var(--fail-line); }
.dash-last-n { font-size: 36px; font-weight: 800; line-height: 1; }
.dash-last-l { margin-top: 4px; font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; }
.dash-meter {
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.dash-meter i { display: block; height: 100%; background: var(--green); }
.dash-last.is-fail .dash-meter i { background: var(--accent); }
.dash-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.dash-kpis span { display: block; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.dash-kpis strong { display: block; margin-top: 3px; font-size: 16px; }
.dash-kpis .bad { color: var(--accent); }
.dash-when { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.dash-empty {
  padding: 22px 14px;
  text-align: center;
  color: var(--muted);
  font-weight: 600;
  background: var(--card-2);
  border: 1px dashed var(--line);
  border-radius: 12px;
}
.dash-runs { display: grid; gap: 8px; }
.dash-run {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}
.dash-run:hover { border-color: var(--ink); }
.dash-run.is-pass { box-shadow: inset 3px 0 0 var(--green); }
.dash-run.is-fail { box-shadow: inset 3px 0 0 var(--accent); }
.dash-run-copy strong, .api-card-copy strong { display: block; }
.dash-run-copy small, .api-card-url {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.api-card-url {
  word-break: break-all;
}
.dash-run-rate { font-weight: 800; }

.mod-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--header);
  color: var(--btn-fg);
  font-size: 12px;
  font-weight: 800;
  flex: 0 0 auto;
}
.module-item.active .mod-mark { background: var(--accent); }
.api-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}
.api-card.is-dragging { opacity: 0.45; }
.api-card .drag {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  cursor: grab;
  color: #888;
  user-select: none;
  letter-spacing: -2px;
}
.api-card-lead {
  display: grid;
  grid-template-columns: 22px 18px auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.api-card-copy { min-width: 0; }
.api-card-rules {
  background: var(--chip);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}
.api-card .move { min-width: 140px; }
.api-card .row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.btn.danger-text { color: var(--accent); }

@media (max-width: 1100px) {
  .dash-stats, .dash-grid, .dash-kpis { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .dash-hero, .saved-head { flex-direction: column; }
  .dash-stats, .dash-grid, .dash-last, .dash-kpis, .saved-toolbar { grid-template-columns: 1fr; }
  .api-card-lead { grid-template-columns: 22px 18px auto minmax(0, 1fr); }
  .api-card-rules { grid-column: 4; }
  .session-badge { max-width: 96px; }
}

body.login-mode { background: var(--bg); }
body.login-mode .nav { display: none; }
body.login-mode .topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: none;
  box-shadow: none;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  z-index: 20;
  pointer-events: none;
  opacity: 1 !important;
}
body.login-mode .topbar-start,
body.login-mode .topbar-end {
  pointer-events: auto;
}
body.login-mode .topbar .brand,
body.login-mode .topbar .brand-home,
body.login-mode .version-badge,
body.login-mode .topbar #session-badge,
body.login-mode .topbar #sign-out-btn {
  display: none !important;
}
body.login-mode .site-return {
  color: var(--ink) !important;
  border-color: color-mix(in srgb, var(--ink) 28%, transparent) !important;
}
body.login-mode .site-return:hover,
body.login-mode .site-return:focus-visible {
  color: var(--accent) !important;
  border-color: var(--accent) !important;
}
body.login-mode #app {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow-x: clip;
  position: relative;
}
body.login-mode .view {
  padding: 0;
  max-width: none;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.login-page {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: transparent;
  overflow-x: clip;
  position: relative;
  isolation: isolate;
}
.login-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.login-aurora {
  position: absolute;
  inset: -22%;
  background:
    radial-gradient(ellipse 46% 36% at 50% 42%, var(--glow-strong), transparent 70%),
    radial-gradient(ellipse 28% 24% at 78% 18%, var(--glow), transparent 72%);
  opacity: 0.95;
  will-change: transform;
}
.login-grain {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  background-image: repeating-radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.38) 0 0.6px, transparent 0.8px 3px);
  background-size: 96px 96px;
  mix-blend-mode: overlay;
  pointer-events: none;
  contain: paint;
  will-change: transform;
}
html[data-theme="light"] .login-aurora { opacity: 0.42; }
html[data-theme="light"] .login-grain {
  opacity: 0.035;
  mix-blend-mode: multiply;
}
.login-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(78px);
  will-change: transform;
}
.login-orb-a {
  width: min(48vw, 480px);
  height: min(48vw, 480px);
  top: 6%;
  left: 18%;
  background: var(--glow-strong);
  opacity: 0.88;
}
.login-orb-b {
  width: min(40vw, 400px);
  height: min(40vw, 400px);
  right: 8%;
  top: 10%;
  background: var(--glow);
  opacity: 0.8;
}
html[data-theme="light"] .login-orb-a { opacity: 0.45; }
html[data-theme="light"] .login-orb-b { opacity: 0.32; }
.login-stage {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 28px 36px;
  box-sizing: border-box;
}
.login-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  border-radius: 24px;
  overflow: hidden;
  background: color-mix(in srgb, #0c0c0e 92%, #1a1a1c);
  border: 1px solid color-mix(in srgb, #e11d2e 22%, rgba(255, 255, 255, 0.08));
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 72px var(--glow-strong);
}
.login-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse 58% 46% at 50% 42%, var(--glow-strong), transparent 72%);
  opacity: 0.42;
}
.login-split {
  position: relative;
  z-index: 1;
}
html[data-theme="light"] .login-shell {
  background: #ffffff;
  border-color: color-mix(in srgb, #e11d2e 16%, #e5e5e5);
  box-shadow:
    0 24px 64px rgba(15, 23, 42, 0.1),
    0 0 56px var(--glow);
}
.login-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  min-width: 0;
  flex: 1;
}
.login-brand {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  min-width: 0;
  min-height: 560px;
  padding: 36px 40px 72px 44px;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 50% at 8% 100%, color-mix(in srgb, #e11d2e 16%, transparent), transparent 68%);
}
.login-emblem {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin: 0 0 22px;
}
.login-logo-wrap {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  background: transparent;
  box-shadow: none;
}
.login-logo {
  height: 88px;
  width: auto;
  max-width: none;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  background: transparent !important;
  box-shadow: none;
}
html .logo-light { display: none; }
html[data-theme="light"] .logo-light { display: block; }
html[data-theme="light"] .logo-dark { display: none; }
.logo-dark,
.logo-light {
  image-rendering: auto;
  image-rendering: high-quality;
  -ms-interpolation-mode: bicubic;
}
html:not([data-theme="light"]) .logo-dark {
  background-color: #000000;
  mix-blend-mode: lighten;
}
html[data-theme="light"] .logo-light {
  background-color: #ffffff;
  mix-blend-mode: multiply;
}
.login-page .logo-dark.login-logo {
  mix-blend-mode: lighten;
}
.login-page .logo-light.login-logo {
  mix-blend-mode: multiply;
}
.login-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.login-sparkle {
  position: absolute;
  color: #e11d2e;
  line-height: 0;
  transform: translate3d(-50%, -50%, 0);
  filter: drop-shadow(0 0 4px color-mix(in srgb, #e11d2e 80%, transparent));
  will-change: transform, opacity;
  contain: layout style;
}
.login-sparkle-mark {
  display: block;
  width: 100%;
  height: 100%;
}
.login-sparkle-a {
  left: 62.7%;
  top: 13.6%;
  width: 11%;
}
.login-sparkle-b {
  left: 18%;
  top: 10%;
  width: 6.5%;
  opacity: 0.85;
}
.login-sparkle-c {
  left: 78%;
  top: 28%;
  width: 5%;
  opacity: 0.7;
}
.login-headline {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 14.5em;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.login-headline em {
  font-style: normal;
  color: #e11d2e;
}
.login-rule {
  position: relative;
  z-index: 1;
  display: block;
  width: 56px;
  height: 2px;
  margin: 16px 0 14px;
  background: #e11d2e;
  border-radius: 2px;
  box-shadow: 0 0 12px color-mix(in srgb, #e11d2e 70%, transparent);
}
.login-kicker {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #e11d2e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
.login-hero-note {
  position: relative;
  z-index: 1;
  margin: 14px 0 0;
  max-width: 28em;
  color: var(--lead);
  font-size: 15px;
  line-height: 1.5;
}
.login-points {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
  max-width: 30em;
  position: relative;
  z-index: 1;
}
.login-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.login-point-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #e11d2e;
  border: 1.5px solid color-mix(in srgb, #e11d2e 72%, transparent);
  background: color-mix(in srgb, #e11d2e 8%, transparent);
  box-shadow: 0 0 12px color-mix(in srgb, #e11d2e 22%, transparent);
  transition: transform var(--anim-fast) var(--anim-ease), box-shadow var(--anim-fast) var(--anim-ease), background-color var(--anim-fast) var(--anim-ease);
}
.login-points li:hover .login-point-icon {
  transform: translate3d(0, 0, 0) scale(1.06);
  box-shadow: 0 0 16px color-mix(in srgb, #e11d2e 36%, transparent);
  background: color-mix(in srgb, #e11d2e 14%, transparent);
}
.login-mesh {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(88%, 540px);
  height: 38%;
  pointer-events: none;
  z-index: 0;
  contain: layout paint;
  will-change: transform;
  -webkit-mask-image: linear-gradient(115deg, #000 0%, #000 52%, transparent 88%);
  mask-image: linear-gradient(115deg, #000 0%, #000 52%, transparent 88%);
}
.login-mesh-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.login-mesh-wave {
  fill: none;
  stroke: url(#loginMeshFade);
  stroke-width: 1.35;
  stroke-linecap: round;
  opacity: 0.72;
}
.login-mesh-wave-b { opacity: 0.5; stroke-width: 1.1; }
.login-mesh-wave-c { opacity: 0.38; stroke-width: 1; }
.login-mesh-link {
  stroke: color-mix(in srgb, #e11d2e 70%, #fff);
  stroke-width: 0.85;
  opacity: 0.28;
}
.login-mesh-node {
  fill: #ff3b4c;
  opacity: 0.9;
}
.login-mesh-runner {
  fill: #ff6b78;
  opacity: 0.95;
  offset-rotate: 0deg;
  offset-distance: 0;
}
.login-mesh-runner-a { offset-path: path("M-30 198 C 50 120, 110 230, 190 168 S 330 96, 430 150 560 210, 700 140"); }
.login-mesh-runner-b { offset-path: path("M-40 226 C 70 170, 150 250, 240 196 S 400 130, 520 180 640 240, 760 168"); }
.login-mesh-runner-c { offset-path: path("M-20 168 C 80 100, 160 190, 250 136 S 390 70, 500 120 630 190, 740 110"); }
.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  min-width: 0;
  padding: 48px 36px 36px 16px;
  background: transparent;
}
.login-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 0 0 auto;
  padding: 44px 32px 28px;
  border-radius: 20px;
  transition: transform var(--anim-fast) var(--anim-ease), box-shadow var(--anim-fast) var(--anim-ease);
  background: #101012;
  border: 1px solid color-mix(in srgb, #e11d2e 18%, rgba(255, 255, 255, 0.06));
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.42),
    0 0 36px color-mix(in srgb, #e11d2e 16%, transparent);
}
.login-card::before {
  content: "";
  position: absolute;
  inset: -18%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 20%, color-mix(in srgb, #e11d2e 28%, transparent), transparent 70%);
  opacity: 0.55;
}
.login-card > * { position: relative; z-index: 1; }
html[data-theme="light"] .login-brand {
  background:
    radial-gradient(ellipse 70% 50% at 8% 100%, color-mix(in srgb, #e11d2e 10%, transparent), transparent 68%);
}
html[data-theme="light"] .login-card {
  background: #ffffff;
  border-color: color-mix(in srgb, #e11d2e 14%, #e5e5e5);
  box-shadow:
    0 16px 40px rgba(15, 23, 42, 0.08),
    0 0 28px var(--glow);
}
.login-lock {
  --login-lock-ring: color-mix(in srgb, #101012 92%, transparent);
  position: absolute;
  top: 0;
  left: 50%;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #e11d2e;
  border-radius: 50%;
  transform: translate(-50%, -52%);
  box-shadow:
    0 0 0 6px var(--login-lock-ring),
    0 0 22px color-mix(in srgb, #e11d2e 62%, transparent);
  z-index: 2;
}
html[data-theme="light"] .login-lock {
  --login-lock-ring: #ffffff;
}
.login-access {
  margin: 8px 0 10px;
  color: #e11d2e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.login-card-title,
.login-card h1,
.login-card h2 {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.login-note {
  margin: 12px 0 22px;
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}
.login-or {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 16px 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.login-or span {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0 10px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 70%, transparent);
}
.login-or::before,
.login-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.login-hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.login-card .btn {
  width: 100%;
  justify-content: center;
  min-height: 48px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.login-guest,
.login-admin {
  margin-top: 0;
  letter-spacing: 0.01em;
}
.login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 0 0 16px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--card-2) 80%, transparent);
}
.login-tab {
  min-height: 40px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}
.login-tab.is-on {
  background: color-mix(in srgb, #e11d2e 14%, var(--card));
  color: var(--ink);
}
.login-form .field { margin-bottom: 10px; }
.login-form .field.has-error input,
.login-form .field.has-error .login-country-btn {
  border-color: #e11d2e;
}
.login-field-error {
  min-height: 16px;
  margin: 4px 0 0;
  color: #e11d2e;
  font-size: 12px;
  font-weight: 700;
}
.login-hint-inline {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.login-success-panel {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, #16a34a 40%, var(--line));
  background: color-mix(in srgb, #16a34a 12%, var(--card));
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}
.login-success-panel[hidden] { display: none !important; }
.login-phone-row {
  display: grid;
  grid-template-columns: minmax(148px, 0.95fr) minmax(0, 1.05fr);
  gap: 8px;
}
.login-country-field { overflow: visible; }
.login-country { position: relative; z-index: 3; }
.login-country:has(.login-country-menu:not([hidden])) { z-index: 12; }
.login-country-btn {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  background: var(--input-bg);
  color: var(--text);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.login-country-value {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-width: 0;
  white-space: nowrap;
}
.login-country-iso { font-weight: 800; letter-spacing: 0.02em; }
.login-country-dial { font-variant-numeric: tabular-nums; }
.country-flag {
  display: inline-block;
  flex: 0 0 auto;
  width: 1.35em;
  font-family: "Twemoji Country Flags", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1.25em;
  line-height: 1;
  text-align: center;
  font-style: normal;
  font-weight: 400;
}
.login-country-menu {
  position: absolute;
  z-index: 20;
  left: 0;
  right: auto;
  top: calc(100% + 4px);
  width: max(100%, min(320px, calc(100vw - 32px)));
  min-width: 100%;
  max-height: 260px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.login-country-search {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 10px 12px;
  background: var(--input-bg);
  color: var(--text);
  font-size: 13px;
}
.login-country-search::-webkit-search-decoration,
.login-country-search::-webkit-search-cancel-button,
.login-country-search::-webkit-search-results-button,
.login-country-search::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}
.login-country-search::placeholder {
  color: var(--muted);
  opacity: 1;
}
.login-country-list {
  margin: 0;
  padding: 4px 0;
  max-height: 206px;
  overflow: auto;
  list-style: none;
}
.login-country-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 8px 12px;
  text-align: left;
  cursor: pointer;
}
.login-country-option-main {
  display: flex;
  align-items: center;
  gap: 0.45em;
  min-width: 0;
}
.login-country-option-iso {
  flex: 0 0 auto;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.login-country-option-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.login-country-option-dial {
  flex: 0 0 auto;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.login-country-option:hover,
.login-country-option:focus-visible,
.login-country-option.is-active {
  background: var(--active-bg);
}
.users-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.pill {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
}
.login-shell:has(.login-country-menu:not([hidden])),
.login-card:has(.login-country-menu:not([hidden])),
.login-panel:has(.login-country-menu:not([hidden])) {
  overflow: visible;
}
.login-card .btn.is-busy {
  opacity: 0.78;
  cursor: wait;
}
@media (max-width: 560px) {
  .login-card {
    max-height: calc(100dvh - 140px);
    overflow-y: auto;
  }
  .login-card:has(.login-country-menu:not([hidden])) {
    max-height: none;
    overflow: visible;
  }
  .login-phone-row { grid-template-columns: 1fr; }
}
.login-google {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid #e11d2e;
}
.login-google::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 36%, color-mix(in srgb, #fff 16%, transparent) 50%, transparent 64%);
  transform: translate3d(-120%, 0, 0);
  pointer-events: none;
}
html:not([data-theme="light"]) .login-google {
  background: #0c0c0e;
  border-color: #e11d2e;
  color: #fff;
}
.login-google[hidden] { display: none !important; }
.login-google:hover,
.login-google:focus-visible {
  filter: none;
  background: color-mix(in srgb, #e11d2e 10%, transparent);
  color: var(--ink);
  border-color: #e11d2e;
  box-shadow: 0 0 20px color-mix(in srgb, #e11d2e 22%, transparent);
}
html:not([data-theme="light"]) .login-google:hover,
html:not([data-theme="light"]) .login-google:focus-visible {
  background: color-mix(in srgb, #e11d2e 14%, #0c0c0e);
  border-color: #ff3b4c;
  color: #fff;
}
.login-google-mark { flex: 0 0 auto; }
.login-card .btn.primary:hover:not(:disabled):not(.is-off),
.login-card .btn.primary:focus-visible:not(:disabled):not(.is-off) {
  box-shadow:
    var(--hover-lift),
    0 0 28px var(--glow-strong);
}
.login-card .btn:active:not(:disabled):not(.is-off) {
  transform: translate3d(0, 1px, 0) scale(0.985);
  box-shadow: none;
  filter: none;
}
.login-hint[hidden] { display: none !important; }
.login-gis[hidden] { display: none !important; }
.login-gis:not([hidden]) {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 400px;
  margin: 8px auto 0;
  min-height: 0;
  height: 44px;
  max-height: 48px;
  overflow: hidden;
  flex: 0 0 auto;
}
.login-gis-slot {
  display: block;
  width: 100%;
  max-width: 400px;
  height: 44px;
  max-height: 44px;
  overflow: hidden;
}
.login-gis iframe,
.login-gis-slot iframe {
  max-width: 100% !important;
  max-height: 44px !important;
}
.login-who {
  margin: 12px 0 0;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}
.login-success-page,
.login-success-page .login-brand,
.login-success-page .login-card,
.login-success-page .login-panel,
.login-success-page .login-shell {
  opacity: 1 !important;
  transform: none !important;
}
.login-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  transition: color var(--anim-fast) var(--anim-ease);
}
.login-back:hover { color: var(--ink); }
html:not([data-theme="light"]) .login-back:hover { color: #fff; }
.login-foot {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  margin: 0;
  padding: 0 8px;
  min-height: 52px;
  border-top: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  background: color-mix(in srgb, #08080a 88%, transparent);
}
html[data-theme="light"] .login-foot {
  background: #f6f6f6;
}
.login-foot span,
.login-foot a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  min-width: 0;
  padding: 12px 10px;
}
.login-foot span svg,
.login-foot a svg {
  color: #e11d2e;
  flex: 0 0 auto;
}
.login-foot a {
  transition: color var(--anim-fast) var(--anim-ease);
}
.login-foot a:hover { color: var(--ink); }
.login-foot span,
.login-foot a:not(:last-child) {
  border-right: 1px solid color-mix(in srgb, var(--line) 90%, transparent);
}

@media (min-width: 960px) {
  .login-stage {
    padding: 80px 36px 48px;
    min-height: 100vh;
    min-height: 100dvh;
  }
  .login-shell { min-height: 640px; }
  .login-logo { height: 96px; }
}

@media (max-width: 959px) {
  .login-stage { padding: 72px 16px 28px; }
  .login-split { grid-template-columns: 1fr; }
  .login-brand {
    min-height: 0;
    padding: 28px 28px 88px;
  }
  .login-panel {
    padding: 36px 22px 32px;
    align-items: center;
  }
  .login-card { margin: 0 auto; }
  .login-logo { height: 72px; }
  .login-headline { max-width: 16em; }
  .login-mesh { height: 26%; width: 100%; max-height: 140px; }
}

@media (max-width: 560px) {
  .login-stage { padding: 68px 12px 20px; }
  .login-shell { border-radius: 18px; }
  .login-brand { padding: 22px 20px 72px; }
  .login-panel { padding: 32px 14px 24px; }
  .login-card { padding: 40px 20px 22px; }
  .login-logo {
    height: auto;
    max-width: min(220px, 72vw);
    width: auto;
  }
  .login-headline { font-size: 26px; }
  .login-mesh { height: 22%; max-height: 110px; }
  .login-foot {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .login-foot span,
  .login-foot a:not(:last-child) { border-right: 0; }
  .login-foot span,
  .login-foot a {
    border-bottom: 1px solid color-mix(in srgb, var(--line) 90%, transparent);
    justify-content: flex-start;
    padding-left: 16px;
    min-height: 44px;
  }
  .login-foot a:last-child { border-bottom: 0; }
}

/* Product motion — fade + slight rise, armed after route() via body.is-ready / .reveal */
@keyframes anim-rise {
  from { opacity: 0; transform: translateY(var(--anim-rise)); }
  to { opacity: 1; transform: none; }
}
@keyframes anim-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes login-orb-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(3%, -2%, 0) scale(1.05); }
}
@keyframes login-aurora-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(2%, -2%, 0) scale(1.06); }
}
@keyframes login-grain-shift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-1.5%, 1%, 0); }
}
@keyframes login-rise {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes login-slide-left {
  from { opacity: 0; transform: translate3d(-28px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes login-slide-right {
  from { opacity: 0; transform: translate3d(28px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes login-shell-in {
  from { opacity: 0; transform: translate3d(0, 22px, 0) scale(0.975); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes login-logo-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -5px, 0); }
}
@keyframes login-sparkle-pulse {
  0%, 100% {
    opacity: 0.72;
    transform: translate3d(-50%, -50%, 0) scale(0.88);
  }
  50% {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) scale(1.18);
  }
}
@keyframes login-sparkle-shimmer {
  0%, 100% { opacity: 0.45; transform: translate3d(-50%, -50%, 0) scale(0.8) rotate(0deg); }
  50% { opacity: 1; transform: translate3d(-50%, -50%, 0) scale(1.12) rotate(18deg); }
}
@keyframes login-glow-fade {
  0%, 100% { opacity: 0.38; }
  50% { opacity: 0.78; }
}
@keyframes login-lock-pulse {
  0%, 100% { box-shadow: 0 0 0 6px var(--login-lock-ring), 0 0 18px color-mix(in srgb, #e11d2e 55%, transparent); }
  50% { box-shadow: 0 0 0 6px var(--login-lock-ring), 0 0 28px color-mix(in srgb, #e11d2e 82%, transparent); }
}
@keyframes login-card-glow-fade {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.82; }
}
@keyframes login-wave-flow {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(18px, -6px, 0); }
}
@keyframes login-wave-flow-alt {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-16px, 5px, 0); }
}
@keyframes login-node-pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.45); }
}
@keyframes login-link-pulse {
  0%, 100% { opacity: 0.16; }
  50% { opacity: 0.48; }
}
@keyframes login-runner {
  to { offset-distance: 100%; }
}
@keyframes login-shine {
  from { transform: translate3d(-120%, 0, 0); }
  to { transform: translate3d(120%, 0, 0); }
}
@keyframes brand-star-spin {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to { transform: translate3d(0, 0, 0) rotate(360deg); }
}
@keyframes brand-star-pulse {
  0%, 100% { filter: drop-shadow(0 0 2px color-mix(in srgb, #e11d2e 55%, transparent)); }
  50% { filter: drop-shadow(0 0 6px color-mix(in srgb, #e11d2e 92%, transparent)); }
}

@media (prefers-reduced-motion: no-preference) {
  .login-orb-a { animation: login-orb-drift 18s var(--anim-ease) infinite; }
  .login-orb-b { animation: login-orb-drift 22s var(--anim-ease) infinite reverse; }
  .login-aurora { animation: login-aurora-drift 22s var(--anim-ease) infinite; }
  .login-grain { animation: login-grain-shift 10s linear infinite; }

  .login-page .login-shell {
    animation: login-shell-in 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .login-page .login-shell::after {
    animation: login-glow-fade 7s ease-in-out 1s infinite;
  }
  .login-page .login-brand {
    animation: login-slide-left 0.9s cubic-bezier(0.22, 1, 0.36, 1) 80ms both;
  }
  .login-page .login-panel {
    animation: login-slide-right 0.9s cubic-bezier(0.22, 1, 0.36, 1) 140ms both;
  }
  .login-page .login-logo-wrap {
    animation:
      login-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 160ms both,
      login-logo-float 6.5s ease-in-out 1.1s infinite;
  }
  .login-page .login-sparkle-a {
    animation: login-sparkle-pulse 2.4s ease-in-out 0.8s infinite;
  }
  .login-page .login-sparkle-b {
    animation: login-sparkle-shimmer 3.2s ease-in-out 1.1s infinite;
  }
  .login-page .login-sparkle-c {
    animation: login-sparkle-shimmer 2.8s ease-in-out 1.6s infinite reverse;
  }
  .login-page .login-headline { animation: login-rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 220ms both; }
  .login-page .login-rule { animation: login-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 280ms both; }
  .login-page .login-kicker { animation: login-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 320ms both; }
  .login-page .login-hero-note { animation: login-rise 0.7s var(--anim-ease) 360ms both; }
  .login-page .login-points li:nth-child(1) { animation: login-rise 0.65s var(--anim-ease) 420ms both; }
  .login-page .login-points li:nth-child(2) { animation: login-rise 0.65s var(--anim-ease) 480ms both; }
  .login-page .login-points li:nth-child(3) { animation: login-rise 0.65s var(--anim-ease) 540ms both; }
  .login-page .login-card {
    animation: login-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 180ms both;
  }
  .login-page .login-card::before {
    animation: login-card-glow-fade 6s ease-in-out 1.1s infinite;
  }
  .login-page .login-lock { animation: login-lock-pulse 2.8s ease-in-out 1s infinite; }
  .login-page .login-access { animation: login-rise 0.65s var(--anim-ease) 220ms both; }
  .login-page .login-card-title { animation: login-rise 0.7s var(--anim-ease) 260ms both; }
  .login-page .login-note { animation: login-rise 0.65s var(--anim-ease) 320ms both; }
  .login-page .login-guest,
  .login-page .login-admin { animation: login-rise 0.65s var(--anim-ease) 400ms both; }
  .login-page .login-or { animation: login-rise 0.55s var(--anim-ease) 460ms both; }
  .login-page .login-google { animation: login-rise 0.65s var(--anim-ease) 520ms both; }
  .login-page .login-hint { animation: login-rise 0.55s var(--anim-ease) 580ms both; }
  .login-page .login-back { animation: login-rise 0.55s var(--anim-ease) 620ms both; }
  .login-page .login-foot { animation: login-rise 0.7s var(--anim-ease) 480ms both; }

  .login-mesh-wave-a { animation: login-wave-flow 8s ease-in-out infinite; }
  .login-mesh-wave-b { animation: login-wave-flow-alt 11s ease-in-out infinite; }
  .login-mesh-wave-c { animation: login-wave-flow 9.5s ease-in-out 1.2s infinite reverse; }
  .login-mesh-node:nth-child(4n) {
    transform-box: fill-box;
    transform-origin: center;
    animation: login-node-pulse 3.4s ease-in-out calc(var(--i, 0) * 90ms) infinite;
  }
  .login-mesh-link:nth-child(5n) {
    animation: login-link-pulse 4.2s ease-in-out calc(var(--i, 0) * 70ms) infinite;
  }
  .login-mesh-runner-a { animation: login-runner 9s linear infinite; }
  .login-mesh-runner-b { animation: login-runner 12s linear 1.4s infinite reverse; }
  .login-mesh-runner-c { animation: login-runner 10.5s linear 2s infinite; }

  .login-page.is-paused .login-atmosphere *,
  .login-page.is-paused .login-mesh,
  .login-page.is-paused .login-mesh *,
  .login-page.is-paused .login-sparkle,
  .login-page.is-paused .login-logo-wrap,
  .login-page.is-paused .login-shell::after,
  .login-page.is-paused .login-card::before,
  .login-page.is-paused .login-lock {
    animation-play-state: paused !important;
  }

  .coupon-page .login-shell,
  .coupon-page .login-brand,
  .coupon-page .login-panel,
  .coupon-page .login-logo-wrap,
  .coupon-page .login-headline,
  .coupon-page .login-rule,
  .coupon-page .login-kicker,
  .coupon-page .login-hero-note,
  .coupon-page .login-card,
  .coupon-page .login-access,
  .coupon-page .login-card-title,
  .coupon-page .login-note {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .login-google:hover::after,
  .login-google:focus-visible::after {
    animation: login-shine 0.7s var(--anim-ease);
  }

  body:not(.chrome-in) .site-top,
  body:not(.chrome-in) .topbar,
  body:not(.chrome-in) .nav {
    opacity: 0;
  }
  body.chrome-in:not(.chrome-done) .site-top,
  body.chrome-in:not(.chrome-done) .topbar,
  body.chrome-in:not(.chrome-done) .nav {
    animation: anim-fade var(--anim) var(--anim-ease) both;
  }

  body:not(.is-ready):not(.page-about) .site-hero,
  body:not(.is-ready):not(.page-about) .site-page-head,
  body:not(.is-ready):not(.page-about) .site-section,
  body:not(.is-ready):not(.page-about) .site-foot,
  body:not(.is-ready) .dash-hero,
  body:not(.is-ready) .dash-stats,
  body:not(.is-ready) .dash-panel,
  body:not(.is-ready) .dash-stat,
  body:not(.is-ready) .page-head,
  body:not(.is-ready) .saved-sidebar,
  body:not(.is-ready) .saved-head,
  body:not(.is-ready) .saved-toolbar,
  body:not(.is-ready) .create-toolbar,
  body:not(.is-ready) .create-col,
  body:not(.is-ready) .report-summary,
  body:not(.is-ready) .report-toolbar,
  body:not(.is-ready) .report-hero,
  body:not(.is-ready) .report-crumb,
  body:not(.is-ready) .report-detail,
  body:not(.is-ready) .run-table-wrap,
  body:not(.is-ready) #view > .card,
  body:not(.is-ready) #api-list,
  body:not(.is-ready) .api-card,
  body:not(.is-ready) .api-row,
  body:not(.is-ready) .dash-run,
  body:not(.is-ready):not(.page-about) .site-card,
  body:not(.is-ready):not(.page-about) .site-plan,
  body:not(.is-ready):not(.page-about) .site-price-tease,
  body:not(.is-ready):not(.page-about) .site-compare-row,
  body:not(.is-ready):not(.page-about) .site-note,
  body:not(.is-ready):not(.page-about) .site-portrait,
  body:not(.is-ready):not(.page-about) .reveal {
    opacity: 0;
    transform: translateY(var(--anim-rise));
  }

  body.is-ready:not(.page-about) .reveal {
    opacity: 0;
    transform: translateY(var(--anim-rise));
    transition:
      opacity var(--anim) var(--anim-ease),
      transform var(--anim) var(--anim-ease);
  }
  body.is-ready .reveal.is-inview {
    opacity: 1;
    transform: none;
    transition-delay: calc(var(--reveal-i, 0) * var(--anim-stagger));
  }
  body.is-ready:not(.page-about) .site-hero.reveal.is-inview,
  body.is-ready:not(.page-about) .site-page-head.reveal.is-inview,
  body.is-ready .dash-hero.reveal.is-inview {
    transition-duration: var(--anim-slow);
  }
  body.is-ready .reveal.is-inview:hover,
  body.is-ready .reveal.is-inview:focus-within {
    transition-delay: 0ms;
  }

  .site-card,
  .site-plan,
  .site-price-tease,
  .dash-stat,
  .dash-run,
  .api-card,
  .api-row,
  .report-stat,
  .run-card,
  .run-row {
    transition:
      transform var(--anim-fast) var(--anim-ease),
      box-shadow var(--anim-fast) var(--anim-ease),
      border-color var(--anim-fast) var(--anim-ease),
      background-color var(--anim-fast) var(--anim-ease);
  }
  .site-card:hover,
  .site-plan:hover,
  .site-price-tease:hover,
  .dash-stat:hover,
  .dash-run:hover,
  .api-card:hover,
  .api-row:hover,
  .report-stat:hover,
  .run-card:hover,
  .run-row:hover,
  body.is-ready .reveal.is-inview.site-card:hover,
  body.is-ready .reveal.is-inview.site-plan:hover,
  body.is-ready .reveal.is-inview.dash-stat:hover,
  body.is-ready .reveal.is-inview.api-card:hover,
  body.is-ready .reveal.is-inview.api-row:hover,
  body.is-ready .reveal.is-inview.dash-run:hover {
    transform: translateY(-2px);
    box-shadow: var(--hover-lift);
  }
  .api-card.is-dragging,
  .api-row.is-dragging {
    transform: none;
  }

  .site-shots.is-inview .site-shot:nth-child(odd) {
    animation: site-shot-from-left var(--anim-slow) var(--anim-ease) both;
  }
  .site-shots.is-inview .site-shot:nth-child(even) {
    animation: site-shot-from-right var(--anim-slow) var(--anim-ease) both;
  }
  .site-shots.is-inview .site-shot:nth-child(2) { animation-delay: var(--anim-stagger); }
  .site-shots.is-inview .site-shot:nth-child(3) { animation-delay: calc(2 * var(--anim-stagger)); }
  .site-shots.is-inview .site-shot:nth-child(4) { animation-delay: calc(3 * var(--anim-stagger)); }
  .site-shot-frame {
    transition: transform var(--anim) var(--anim-ease), box-shadow var(--anim) var(--anim-ease);
  }
  .site-shot-open:hover .site-shot-frame,
  .site-shot-open:focus-visible .site-shot-frame {
    transform: translateY(-3px);
    box-shadow:
      0 0 0 1px var(--accent-line),
      var(--hover-lift);
  }

  .toast:not(.hidden) {
    animation: anim-rise var(--anim) var(--anim-ease) both;
  }
  .modal:not(.hidden) {
    animation: anim-fade var(--anim) var(--anim-ease) both;
  }
  .modal:not(.hidden) .modal-card {
    animation: anim-rise var(--anim) var(--anim-ease) both;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal,
  .reveal.is-inview,
  .site-hero,
  .site-page-head,
  .site-section,
  .site-shot,
  .site-foot,
  .login-brand,
  .login-card,
  .login-points,
  .login-points li,
  .login-panel,
  .login-shell,
  .login-atmosphere,
  .login-aurora,
  .login-grain,
  .login-orb,
  .login-emblem,
  .login-logo-wrap,
  .login-sparkle,
  .login-sparkle-mark,
  .login-headline,
  .login-rule,
  .login-kicker,
  .login-hero-note,
  .login-mesh,
  .login-mesh-wave,
  .login-mesh-node,
  .login-mesh-link,
  .login-mesh-runner,
  .login-lock,
  .login-access,
  .login-card-title,
  .login-note,
  .login-guest,
  .login-admin,
  .login-or,
  .login-google,
  .login-google::after,
  .login-hint,
  .login-back,
  .login-foot,
  .site-top,
  .topbar,
  .nav {
    opacity: 1 !important;
    transform: none !important;
  }
  .login-mesh-runner { display: none !important; }
}

/* About never starts hidden and does not wait for IntersectionObserver / .reveal */
body.page-about .site-about,
body.page-about .site-about-head,
body.page-about .site-page-head,
body.page-about .site-about-head .site-kicker,
body.page-about .site-about-head h1,
body.page-about .site-about-stat,
body.page-about .site-lead,
body.page-about .site-prose,
body.page-about .site-portrait,
body.page-about .site-portfolio,
body.page-about .site-portfolio-feature,
body.page-about .site-section,
body.page-about .site-foot,
body.page-about .reveal,
body.login-success #app,
body.login-success #view,
body.login-success .topbar,
body.login-success .nav,
body.login-success .dash-hero,
body.login-success .dash-stats,
body.login-success .dash-panel,
body.login-success .dash-stat,
body.login-success .dash-run,
body.login-success .page-head,
body.login-success .empty,
body.login-success .reveal,
#site .site-about,
#site .site-about-head,
#site .site-page-head.site-about-head,
#site .site-about-head .site-kicker,
#site .site-about-head h1,
#site .site-about-stat,
#site .site-about-head .site-lead,
#site .site-prose,
#site .site-portrait,
#site .site-portfolio,
#site .site-portfolio-feature,
#site .site-about .site-prose,
#site .site-about .site-portrait,
#site .site-about .site-portfolio {
  opacity: 1 !important;
  transform: none !important;
}

.schedule-page .page-head { margin-bottom: 16px; }
.sched-dash {
  padding: 16px;
  border-top: 3px solid var(--accent);
}
.sched-dash.is-fresh {
  animation: sched-dash-flash 1.2s var(--anim-ease);
}
@keyframes sched-dash-flash {
  0% { box-shadow: 0 0 0 0 rgba(225, 29, 46, 0.28); }
  100% { box-shadow: var(--shadow); }
}
.sched-dash-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.sched-dash-stat {
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  min-height: 108px;
  display: flex;
  flex-direction: column;
}
.sched-dash-stat strong {
  display: block;
  margin-top: 8px;
  font-size: 26px;
  line-height: 1.1;
}
.sched-dash-stat .sched-dash-next,
.sched-dash-stat .sched-dash-fail {
  font-size: 18px;
}
.sched-dash-stat small {
  margin-top: auto;
  padding-top: 10px;
  color: var(--muted);
  font-weight: 600;
}
.sched-dash-stat.is-pass strong { color: var(--green); }
.sched-dash-stat.is-fail strong { color: var(--accent); }
.sched-dash-table-wrap { margin-top: 14px; overflow-x: auto; }
.sched-dash-table { margin: 0; }
.sched-dash-row { cursor: pointer; }
.sched-dash-row:hover { background: var(--card-2); }
.sched-dash-row.is-on { background: var(--active-bg); box-shadow: inset 3px 0 0 var(--accent); }
.sched-dash-one { margin: 14px 0 0; }
.dash-sched-card { padding: 18px; }
.dash-sched-card.is-pass { box-shadow: inset 3px 0 0 var(--green); }
.dash-sched-card.is-fail { box-shadow: inset 3px 0 0 var(--accent); }
.dash-sched-link {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card-2);
}
.dash-sched-link:hover { border-color: var(--ink); }
.dash-sched-link span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.dash-sched-link strong { display: block; margin-top: 4px; font-size: 16px; }
.dash-sched-link small { display: block; margin-top: 4px; color: var(--muted); font-weight: 600; }
.dash-sched-link .ok { color: var(--green); }
.dash-sched-link .bad { color: var(--accent); }
.sched-mail {
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--line);
}
.sched-mail.warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-text); }
.sched-mail.ok { background: var(--green-soft); border-color: var(--pass-line); color: var(--green-text); }
.sched-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 14px;
  align-items: start;
}
.sched-card { padding: 16px; }
.sched-card h3, .sched-history h3 { margin: 0; font-size: 16px; }
.sched-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.sched-card-head .input { max-width: 240px; }
.sched-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.sched-enable { display: flex; align-items: center; gap: 8px; margin: 4px 0 12px; font-weight: 700; }
.sched-modules { display: grid; gap: 8px; max-height: 420px; overflow: auto; }
.sched-mod {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}
.sched-mod summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}
.sched-mod summary::-webkit-details-marker { display: none; }
.sched-api-list { display: grid; gap: 4px; padding: 0 10px 10px; }
.sched-api {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
}
.sched-api:hover { background: var(--card-2); }
.sched-history { padding: 16px; }
.sched-run {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 8px;
  background: var(--card);
}
.sched-run.is-pass { box-shadow: inset 3px 0 0 var(--green); }
.sched-run.is-fail { box-shadow: inset 3px 0 0 var(--red); }
.sched-run summary {
  display: grid;
  grid-template-columns: 88px minmax(100px, 1fr) minmax(140px, 1.4fr) 90px 64px;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
}
.sched-run summary::-webkit-details-marker { display: none; }
.sched-run-body { padding: 0 12px 12px; }
@media (max-width: 900px) {
  .sched-grid, .sched-row, .sched-dash-stats, .dash-sched-link { grid-template-columns: 1fr; }
  .sched-run summary { grid-template-columns: 88px minmax(0, 1fr); }
}

/* Header + results bounders — one visible box around each titled list */
.create-block:has(.field-list),
.create-block:has(.quick-actions),
.saved-rules,
.api-list,
.report-tests {
  border: 1px solid var(--bound);
  border-radius: 12px;
  padding: 14px;
  background: var(--card);
}
.create-block:has(.field-list),
.create-block:has(.quick-actions) {
  margin-bottom: 16px;
}
.create-block.last:has(.field-list),
.create-block.last:has(.quick-actions) {
  margin-bottom: 0;
  padding-bottom: 14px;
}
.api-list .api-card:last-child,
.report-tests .test-case:last-child,
.saved-rules .rule-item:last-child {
  margin-bottom: 0;
}

.card.create-card,
.dash-panel,
.saved-sidebar,
.saved-toolbar,
.run-table-wrap,
.sched-card,
.sched-history,
.sched-dash,
.report-side,
.card:has(> .table),
.card:has(> .empty) {
  border-color: var(--bound);
}

.create-block:has(.field-list) .input,
.create-card:has(.field-list) .input,
.create-card #response-search,
.easy-response,
.response-raw {
  border-color: var(--bound);
}

.field-chip,
.quick-rule,
.rule-item,
.extract-item,
.api-card,
.test-case,
.dash-run,
.sched-mod,
.sched-run {
  border-color: var(--bound);
}
.module-item {
  border: 1px solid var(--bound);
  background: var(--card);
}
.module-item.active {
  border-color: var(--fail-line);
}

.field.check label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.timeout-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.timeout-row input {
  width: 110px;
}
.rule-item.is-off {
  opacity: 0.55;
  background: var(--card-2);
}
.rule-toggle { min-width: 44px; }
.var-secret {
  display: flex;
  align-items: center;
  gap: 8px;
}
.var-secret-value {
  font-family: ui-monospace, Consolas, monospace;
  overflow-wrap: anywhere;
}
.api-send-result {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}
.api-send-result.is-ok { color: var(--green); }
.api-send-result.is-bad { color: var(--red); }

.theme-toggle {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: #ffffff;
  color: #111111;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1;
  flex-shrink: 0;
  position: relative;
  z-index: 4;
  pointer-events: auto;
  overflow: hidden;
  transition:
    background-color var(--anim-fast) var(--anim-ease),
    border-color var(--anim-fast) var(--anim-ease),
    color var(--anim-fast) var(--anim-ease),
    transform var(--anim-fast) var(--anim-ease);
}
html[data-theme="dark"] .theme-toggle {
  background: #ffffff;
  color: #111111;
  border-color: var(--accent);
}
html[data-theme="light"] .theme-toggle {
  background: #ffffff;
  color: #111111;
  border-color: var(--accent);
}
.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: #fff5f5;
  border-color: var(--accent-hover);
  outline: none;
}
.theme-toggle:focus-visible {
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.theme-toggle svg { display: block; stroke: currentColor; }
.theme-toggle-sun,
.theme-toggle-moon { display: none; }
html[data-theme="dark"] .theme-toggle-moon { display: inline-flex; }
html[data-theme="light"] .theme-toggle-sun { display: inline-flex; }
@keyframes theme-swipe {
  from { transform: translateX(10px); opacity: 0.35; }
  to { transform: none; opacity: 1; }
}

body.shot-open { overflow: hidden; }
.shot-lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 28px 16px;
}
.shot-lightbox.hidden,
.shot-lightbox[hidden] { display: none !important; }
.shot-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: var(--modal-backdrop);
  cursor: pointer;
}
.shot-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(640px, 58vw);
  max-width: min(720px, 62vw);
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.shot-lightbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--shot-chrome);
}
.shot-lightbox-head h2 {
  margin: 0;
  font-size: 15px;
  color: var(--shot-name);
}
.shot-lightbox-close { flex-shrink: 0; }
.shot-lightbox-body {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 12px;
  background: var(--shot-frame);
}
.shot-lightbox-body img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(70vh - 76px);
  object-fit: contain;
  pointer-events: none;
}
@media (max-width: 720px) {
  .shot-lightbox {
    padding: 12px 10px;
  }
  .shot-lightbox-dialog {
    width: min(960px, calc(100vw - 20px));
    max-width: calc(100vw - 20px);
    max-height: min(92vh, calc(100dvh - 16px));
  }
  .shot-lightbox-body img {
    max-height: calc(92vh - 76px);
  }
  .btn.icon.shot-lightbox-close {
    width: 44px;
    height: 44px;
  }
  .theme-toggle {
    height: 44px;
    padding: 0 14px;
  }
  .btn.small,
  .site-return {
    min-height: 44px;
  }
  .btn.icon {
    width: 44px;
    height: 44px;
  }
  .card:has(> .table) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
  .table {
    width: max-content;
    min-width: 100%;
  }
  .table th,
  .table td {
    white-space: nowrap;
  }
  .page-head .actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .site-cta {
    width: 100%;
    justify-content: center;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .shot-lightbox:not(.hidden) {
    animation: anim-fade var(--anim-fast) var(--anim-ease) both;
  }
  .shot-lightbox:not(.hidden) .shot-lightbox-dialog {
    animation: anim-rise var(--anim) var(--anim-ease) both;
  }
  .theme-toggle:hover,
  .theme-toggle:focus-visible {
    transform: translateY(-1px);
  }
  .theme-toggle.is-swiping .theme-toggle-sun,
  .theme-toggle.is-swiping .theme-toggle-moon {
    animation: theme-swipe 180ms var(--anim-ease);
  }
}

@media (prefers-reduced-motion: reduce) {
  html.theme-anim,
  html.theme-anim body,
  html.theme-anim #site,
  html.theme-anim #app {
    transition: none;
  }
  .shot-lightbox-dialog,
  .theme-toggle {
    transform: none !important;
  }
}

@keyframes btn-live-pulse {
  0%, 15%, 85%, 100% {
    box-shadow: 0 0 0 0 rgba(225, 29, 46, 0.22);
    transform: translate3d(0, 0, 0) scale(1);
  }
  45%, 55% {
    box-shadow: 0 0 0 6px rgba(225, 29, 46, 0.13), 0 0 22px 5px rgba(225, 29, 46, 0.4);
    transform: translate3d(0, 0, 0) scale(1.035);
  }
}
/* Keep the main entry point noticeable while other public-page buttons stay quiet. */
body.site-mode .btn.primary.btn-live {
  filter: none;
  transform: translate3d(0, 0, 0);
  will-change: transform, box-shadow;
  animation: btn-live-pulse 2s ease-in-out infinite;
}
body.site-mode .btn.primary.btn-live:hover,
body.site-mode .btn.primary.btn-live:focus-visible {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  body.site-mode .btn.primary.btn-live {
    animation: none;
    will-change: auto;
  }
}

body.admin-mode .nav { display: none; }
.monitor-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; min-width: 0; }
.monitor-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.monitor-heading h2 { margin: 0 0 6px; }
.monitor-heading p, .monitor-page .admin-panel > p { color: var(--muted); margin: 0 0 12px; }
.monitor-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.monitor-filters label { display: grid; gap: 6px; min-width: 140px; flex: 1; font-size: 13px; font-weight: 600; }
.monitor-filters input, .monitor-filters select { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: var(--bg); font: inherit; }
.monitor-filters .monitor-search { flex-grow: 2; min-width: 220px; }
.monitor-filter-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#monitor-results { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; min-width: 0; }
#monitor-results[aria-busy=true] { opacity: .65; }
.monitor-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.monitor-stats .admin-stat-value { font-variant-numeric: tabular-nums; }
.monitor-meta { color: var(--muted); font-size: 12px; margin: 0; line-height: 1.6; overflow-wrap: anywhere; }
.monitor-notice { margin: 0; padding: 12px 16px; background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 10px; font-size: 13px; line-height: 1.6; }
.monitor-table-scroll { max-width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: 10px; margin-top: 14px; }
.monitor-table { width: 100%; min-width: 650px; border-collapse: collapse; font-size: 13px; }
.monitor-table th { text-align: left; font-size: 12px; font-weight: 700; background: var(--card-2); }
.monitor-table th, .monitor-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.monitor-table td { max-width: 310px; overflow-wrap: anywhere; }
.monitor-table tr:last-child td { border-bottom: 0; }
.monitor-account, .monitor-location { display: grid; gap: 5px; overflow-wrap: anywhere; }
.monitor-account small, .monitor-location small { color: var(--muted); }
.monitor-pill { display: inline-block; border: 1px solid var(--line); background: var(--card-2); border-radius: 20px; font-size: 11px; font-weight: 600; padding: 4px 8px; margin: 0 3px 4px 0; }
.monitor-pill.is-warning { border-color: var(--accent-line); color: var(--text); background: var(--accent-soft); }
.monitor-pill.is-error { color: var(--fail-text, var(--red)); border-color: var(--fail-line); }
.monitor-pill.is-success { color: var(--green-text); border-color: var(--green-line); }
.monitor-empty { padding: 36px 16px; text-align: center; color: var(--muted); }
.monitor-empty h4 { color: var(--text); margin: 0 0 8px; }
.monitor-empty p { max-width: 560px; margin: 0 auto; line-height: 1.6; }
.monitor-trend { margin: 20px 0 14px; }
.monitor-trend svg { display: block; width: 100%; height: auto; max-height: 220px; fill: var(--accent); }
.monitor-chart-line { stroke: var(--line); }
.monitor-trend figcaption { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.monitor-daily summary, .monitor-issue summary { cursor: pointer; font-size: 13px; padding: 8px 0; }
.monitor-pagination { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.monitor-pagination > div { display: flex; gap: 8px; }
.monitor-issues { display: grid; gap: 12px; margin-top: 16px; }
.monitor-issue { border: 1px solid var(--line); border-radius: 10px; padding: 16px; overflow-wrap: anywhere; min-width: 0; }
.monitor-issue-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.monitor-issue-top h4 { margin: 6px 0; font-size: 15px; }
.monitor-issue-top p { color: var(--muted); font-size: 12px; margin: 0; }
.monitor-issue-body { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 14px 0 8px; font-size: 13px; }
.monitor-issue code { white-space: normal; overflow-wrap: anywhere; }
.monitor-issue dl { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 10px; font-size: 12px; }
.monitor-issue dt { color: var(--muted); }
.monitor-issue dd { margin: 0; }
.monitor-page :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 720px) {
  .monitor-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .monitor-issue-top { flex-wrap: wrap; }
  .monitor-issue dl { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 440px) {
  .monitor-heading { flex-wrap: wrap; }
  .monitor-stats { grid-template-columns: minmax(0, 1fr); }
  .monitor-filters label, .monitor-filters .monitor-search { min-width: 0; flex-basis: 100%; }
}
body.admin-mode .view {
  padding: 20px 22px 40px;
  max-width: 1180px;
  margin: 0 auto;
}
body.admin-chrome .site-return,
body.admin-chrome .topbar .brand,
body.admin-chrome .topbar .brand-home,
body.admin-chrome .version-badge {
  display: none !important;
}
body.admin-chrome.login-mode .site-return {
  display: inline-flex !important;
}
body.admin-chrome.login-mode .topbar #session-badge:not([hidden]),
body.admin-chrome.login-mode .topbar #sign-out-btn:not([hidden]) {
  display: inline-flex !important;
}
.admin-page { display: grid; gap: 18px; }
.admin-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding: 8px 0 4px;
}
.admin-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.admin-hero h2 { margin: 0; font-size: clamp(26px, 4vw, 36px); color: var(--ink); }
.admin-hero p { margin: 8px 0 0; color: var(--muted); max-width: 46ch; }
.admin-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}
.admin-who {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.admin-perm-list { display: grid; gap: 14px; }
.admin-perm-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card-2);
  display: grid;
  gap: 12px;
}
.admin-perm-card.is-locked { opacity: 0.96; }
.admin-perm-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.admin-perm-head h4 { margin: 0; font-size: 18px; }
.admin-perm-head p { margin: 4px 0 0; color: var(--muted); }
.admin-perm-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.admin-perm-group {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 0;
}
.admin-perm-group legend {
  padding: 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.admin-perm-check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 8px 0;
  font-size: 13px;
}
.admin-perm-check input { margin-top: 3px; }
.admin-perm-check strong { display: block; color: var(--ink); }
.admin-perm-check em {
  display: block;
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.admin-perm-locked-note {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}
.admin-nav a {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 9px;
  font-weight: 800;
  color: var(--muted);
}
.admin-nav a.is-on,
.admin-nav a:hover {
  background: color-mix(in srgb, #e11d2e 14%, var(--card));
  color: var(--ink);
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.admin-stat { padding: 16px 18px; }
.admin-stat-label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.admin-stat-value {
  margin: 8px 0 4px;
  font-size: 32px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}
.admin-stat-hint { margin: 0; color: var(--muted); font-size: 12px; }
.admin-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.admin-panel-head h3 { margin: 0; }
.admin-panel-head p { margin: 6px 0 0; color: var(--muted); }
.admin-table-wrap { overflow-x: auto; }
.admin-table tr.admin-row { cursor: pointer; }
.admin-table tr.admin-row:hover { background: var(--active-bg); }
.admin-panel-head-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.admin-check-col { width: 42px; text-align: center; }
.admin-table th.admin-check-col,
.admin-table td.admin-check-col { width: 42px; text-align: center; vertical-align: middle; }
.admin-table td.admin-check-col { cursor: default; }
.admin-user-check {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent, #2563eb);
  vertical-align: middle;
  cursor: pointer;
}
.admin-user-check:disabled { cursor: not-allowed; opacity: 0.45; }
.admin-url {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-method {
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}
.admin-dl { display: grid; gap: 10px; margin: 16px 0; }
.admin-dl div { display: grid; gap: 2px; }
.admin-dl dt { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.admin-dl dd { margin: 0; font-weight: 700; color: var(--ink); }
.admin-password-box {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card-2);
  margin-bottom: 14px;
}
.admin-password-box label {
  display: block;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.admin-password-box strong { display: block; color: var(--ink); }
.admin-password-box p { margin: 6px 0 10px; color: var(--muted); font-size: 13px; }
.admin-password-row {
  display: block;
  margin-bottom: 10px;
}
.admin-password-row input {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px 8px 12px;
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
}
.admin-password-row .secret-field input { padding-right: 44px; }
.admin-user-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-weight: 700;
}
.admin-crumb a { color: var(--ink); }
.admin-search {
  max-width: 280px;
  min-width: 180px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  background: var(--input-bg);
  color: var(--text);
}
.admin-edit-form .field { margin-bottom: 10px; }
.admin-rules { display: grid; gap: 8px; margin-bottom: 16px; }
.admin-rule {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card-2);
}
.admin-rule p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.admin-add-rule {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.admin-add-rule h4 { margin: 0 0 10px; }
.admin-extracts { margin: 0; padding-left: 18px; }
.admin-api-form .method-url { display: grid; grid-template-columns: 110px 1fr; gap: 8px; margin: 10px 0; }
.admin-api-form textarea,
.admin-api-form input,
.admin-api-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  background: var(--input-bg);
  color: var(--text);
}
.btn.danger {
  background: color-mix(in srgb, #e11d2e 16%, var(--card));
  color: var(--ink);
  border: 1px solid color-mix(in srgb, #e11d2e 45%, var(--line));
}
.btn.danger:hover { background: #e11d2e; color: #fff; }
.login-admin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
@media (max-width: 960px) {
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-hero { flex-direction: column; align-items: flex-start; }
  .admin-hero-actions { justify-content: flex-start; }
}
@media (max-width: 560px) {
  body.admin-mode .view { padding: 14px 12px 32px; }
  .admin-stats { grid-template-columns: 1fr; }
  .admin-panel-head { flex-direction: column; }
  .admin-search { max-width: none; width: 100%; }
  .admin-api-form .method-url { grid-template-columns: 1fr; }
  .admin-rule { flex-direction: column; align-items: flex-start; }
}

body.coupon-mode .nav,
body.coupon-mode .site-return {
  display: none !important;
}
body.coupon-mode.login-mode .topbar #session-badge:not([hidden]),
body.coupon-mode.login-mode .topbar #sign-out-btn:not([hidden]) {
  display: inline-flex !important;
}
#coupon-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.coupon-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
  font-weight: 700;
}
.admin-coupon-generate {
  align-items: flex-end;
}
.admin-coupon-count {
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.admin-coupon-count input {
  width: 72px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  background: var(--input-bg);
  color: var(--text);
}
.admin-coupon-meta {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}
.admin-coupon-fresh {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent-soft) 70%, transparent);
}
.admin-coupon-fresh h4 {
  margin: 0 0 4px;
  font-size: 15px;
}
.admin-coupon-fresh p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.admin-coupon-fresh-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.admin-coupon-fresh-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--card, var(--input-bg));
  border: 1px solid var(--line);
}
.admin-coupon-fresh-list .coupon-code {
  font-size: 18px;
  letter-spacing: 0.12em;
}
.pill.is-active {
  background: var(--accent-soft);
  color: var(--accent);
}
.pill.is-used {
  background: color-mix(in srgb, var(--muted) 18%, transparent);
  color: var(--muted);
}
.pill.is-expired {
  background: color-mix(in srgb, #e11d2e 16%, transparent);
  color: #e11d2e;
}

body.login-mode .login-stage,
body.coupon-mode .login-stage {
  padding-bottom: 88px;
}
.wa-support {
  --wa-foot-clearance: 16px;
  position: fixed;
  left: 16px;
  bottom: calc(var(--wa-foot-clearance) + env(safe-area-inset-bottom, 0px));
  z-index: 35;
  transition: bottom 160ms ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, #e11d2e 55%, var(--line));
  background: color-mix(in srgb, #101012 92%, #e11d2e);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), 0 0 0 1px color-mix(in srgb, #e11d2e 20%, transparent);
  pointer-events: auto;
}
html[data-theme="light"] .wa-support {
  background: #fff;
  color: #111;
  border-color: #e11d2e;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}
.wa-support-mark {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  padding: 4px;
  border-radius: 50%;
  background: #e11d2e;
  color: #fff;
}
.wa-support-copy {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
}
.wa-support:hover,
.wa-support:focus-visible {
  border-color: #e11d2e;
  color: inherit;
  box-shadow: 0 12px 32px color-mix(in srgb, #e11d2e 28%, transparent);
}
body:has(#modal:not(.hidden)) .wa-support,
body:has(#shot-lightbox:not(.hidden)) .wa-support {
  opacity: 0.2;
  pointer-events: none;
}
body.site-mode:has(#site:not([hidden]) .site-foot) .wa-support {
  --wa-foot-clearance: 96px;
}
@media (max-width: 560px) {
  .site-plan.is-partner { transform: none; }
  .wa-support {
    --wa-foot-clearance: 12px;
    left: 12px;
    padding: 8px 12px 8px 8px;
  }
  body.site-mode:has(#site:not([hidden]) .site-foot) .wa-support {
    --wa-foot-clearance: 120px;
  }
  .site-foot {
    padding-bottom: 88px;
  }
  body.has-wa-clearance .site-foot {
    padding-bottom: 20px;
  }
  .wa-support-copy { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-support { transition: none; }
}

/* Focused QA workflow: request and assertions beside a single response explorer. */
[hidden] { display: none !important; }
.create-page .create-grid { grid-template-columns: minmax(0, 1.25fr) minmax(300px, 1fr); gap: 20px; }
.create-page .create-col-main { display: contents; }
.create-page .create-col-main > .card { grid-column: 1; margin: 0; min-width: 0; }
.create-page .create-col-right { grid-column: 2; grid-row: 1 / span 3; position: sticky; top: 16px; min-width: 0; }
.create-page .create-col-right .field-list { max-height: 65vh; }
.create-page .request-card .create-block { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; padding-bottom: 16px; }
.create-page .request-card .create-block > h3 { grid-column: 1 / -1; }
.create-page .request-card .create-block .field { margin: 0; min-width: 0; }
.create-page .header-row { grid-template-columns: minmax(100px, .65fr) minmax(0, 1.35fr) 36px; align-items: start; gap: 8px; }
.create-page input, .create-page select, .create-page textarea { min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--input-bg); color: var(--text); padding: 10px 12px; }
.create-page input:not([type=checkbox]), .create-page select, .create-page textarea { width: 100%; }
.create-page input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); }
.create-page .header-value { min-width: 0; }
.header-variable-actions { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.create-page .header-variable-actions select { padding: 5px 8px; font-size: 12px; flex: 1; width: 120px; }
.create-page .header-variable-actions .btn { font-size: 12px; padding: 5px 8px; }
.create-page .secret-field input { padding-right: 42px; }
.create-page .secret-field.is-plain input { padding-right: 12px; }
.create-page .field-use-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.create-page .view-toggle { margin: 14px 0 10px; }
.create-page .field-chip small { overflow-wrap: anywhere; }
.create-page .rule-test-why, .create-page .rule-test-badge, .create-page .run-meta { overflow-wrap: anywhere; }
.create-page .rule-validation-error { color: var(--red); font-size: 14px; margin: 10px 0; }
.create-page .create-actions { gap: 10px; flex-wrap: wrap; }
.create-page .create-actions .btn { box-shadow: none; }
.create-page .rule-box > .create-actions .btn.green, .create-page #execute { font-weight: 750; }
.catalog-loading, .catalog-error { padding: 32px; }
.catalog-loading { color: var(--muted); }
.saved-page .saved-toolbar { flex-wrap: wrap; gap: 12px; }
.saved-page .saved-toolbar .actions { flex-wrap: wrap; }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }
.site-mode .btn, .site-mode .btn:hover, .site-mode .btn:focus, .site-mode .site-plan .btn { box-shadow: none; filter: none; animation: none; }
.site-mode .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 900px) {
  .create-page .create-grid { grid-template-columns: minmax(0, 1fr); }
  .create-page .create-col-right { grid-column: 1; grid-row: 2; position: static; }
  .create-page .create-col-right .field-list { max-height: 360px; }
  .create-page .create-toolbar { flex-wrap: wrap; gap: 12px; }
  .create-page .saved-rules-head, .create-page .saved-rules-actions { flex-wrap: wrap; gap: 8px; }
}
@media (max-width: 520px) {
  .create-page .request-card .create-block { grid-template-columns: minmax(0, 1fr); }
  .create-page .header-row { grid-template-columns: minmax(0, 1fr) 36px; }
  .create-page .header-row > input[data-h=key] { grid-column: 1; }
  .create-page .header-row > .header-value { grid-column: 1; grid-row: 2; }
  .create-page .header-row > [data-del-h] { grid-column: 2; grid-row: 1; }
  .create-page .rule-item { flex-wrap: wrap; }
  .create-page .rule-copy { min-width: 0; }
  .create-page .rule-item-actions { flex-wrap: wrap; margin-left: auto; }
  .saved-page .saved-head, .saved-page .api-card-lead { flex-wrap: wrap; gap: 10px; }
  .saved-page .saved-toolbar > input { flex-basis: 100%; }
  .saved-page .api-card-copy { min-width: 0; }
}
.create-page .method-url { grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; }
.assertion-overview { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin: 0 0 18px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-size: 13px; }
.create-page .extract-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.create-page .extract-fields { width: 100%; min-width: 0; }
.create-page .extract-note { grid-column: 1; margin: 0; overflow-wrap: anywhere; }
.create-page .extract-item > button { grid-column: 2; grid-row: 1; }
@media (max-width: 600px) {
  .create-page .method-url { grid-template-columns: minmax(0, 1fr); }
  .create-page .extract-fields { grid-template-columns: minmax(0, 1fr); }
}
.create-page .rule-item.is-off { opacity: 1; background: var(--card-2); }
.create-page .rule-item.is-off .rule-copy { color: var(--muted); }
.request-options { margin-top: 16px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.request-options > summary { cursor: pointer; font-size: 14px; font-weight: 700; padding: 6px 0; }
.request-options > summary span { display: inline-block; margin-left: 12px; font-size: 12px; font-weight: 400; color: var(--muted); }
.request-options > summary:focus-visible, .builder-jumps a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.builder-jumps { display: none; }
@media (max-width: 600px) {
  .builder-jumps { display: flex; position: sticky; top: 0; z-index: 20; justify-content: space-around; padding: 12px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
  .builder-jumps a { color: var(--text); font-size: 14px; font-weight: 700; text-decoration: none; }
  #request-section, #response-section, #assertion-section { scroll-margin-top: 64px; }
  .request-options > summary span { display: block; margin: 8px 0 0 16px; }
  .create-page .request-card .create-block { gap: 8px; padding-bottom: 12px; margin-bottom: 12px; }
}
