:root {
  --bg: #050912;
  --panel: rgba(14, 20, 32, 0.8);
  --panel-2: rgba(18, 25, 39, 0.92);
  --line: rgba(157, 174, 205, 0.18);
  --line-strong: rgba(128, 157, 215, 0.34);
  --text: #f4f7fb;
  --muted: #a9b2c3;
  --subtle: #6f7b92;
  --blue: #3d70ff;
  --blue-2: #78a3ff;
  --green: #35d07f;
  --orange: #ffb14a;
  --red: #ff6158;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 72% 8%, rgba(61, 112, 255, 0.14), transparent 34rem),
    radial-gradient(circle at 12% 42%, rgba(44, 213, 181, 0.07), transparent 28rem),
    linear-gradient(180deg, #050912 0%, #080d16 48%, #050912 100%);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 62%);
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--blue-2);
  outline-offset: 3px;
}
.site-shell { width: min(1240px, calc(100% - 52px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(5, 9, 18, 0.72);
  backdrop-filter: blur(18px);
}
.nav {
  min-height: 82px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  font-size: 1.65rem;
  font-weight: 850;
}
.logo-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 18px rgba(61, 112, 255, 0.42));
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 42px;
  color: #d8deea;
  font-size: 0.9rem;
  font-weight: 600;
}
.nav-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 22px;
  color: #d8deea;
  font-size: 0.9rem;
  font-weight: 650;
}
.nav a { transition: color 180ms ease, transform 180ms ease; }
.nav a:hover { color: #fff; transform: translateY(-1px); }
.btn {
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-weight: 750;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}
.btn-primary {
  border-color: rgba(120, 163, 255, 0.55);
  background: linear-gradient(180deg, #4779ff, #2559f4);
  box-shadow: 0 16px 36px rgba(37, 89, 244, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}
.btn-secondary { background: rgba(255, 255, 255, 0.035); }
.btn-danger { border-color: rgba(255, 97, 88, 0.4); color: #ffd6d3; }
.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(158, 185, 255, 0.65);
  box-shadow: 0 18px 45px rgba(37, 89, 244, 0.2);
}
.arrow { transition: transform 180ms ease; }
.btn:hover .arrow { transform: translateX(4px); }
.page-hero { padding: 76px 0 42px; }
.eyebrow {
  margin: 0 0 18px;
  color: var(--blue-2);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
.page-hero h1 {
  max-width: 820px;
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: uppercase;
}
.page-hero p {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}
.section-header { margin-bottom: 24px; }
.section-header h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.06;
  text-transform: uppercase;
}
.section-header p {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}
.section { padding: 42px 0 68px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(180deg, rgba(18, 25, 39, 0.9), rgba(9, 14, 23, 0.84));
  background-size: 28px 28px, 28px 28px, auto;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.22);
}
.card-pad { padding: 24px; }
.card h3 { margin: 0 0 12px; color: #fff; font-size: 1.12rem; }
.card p { margin: 0; color: var(--muted); line-height: 1.65; }
.input {
  min-height: 48px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 14px;
  color: #fff;
  background: rgba(0, 0, 0, 0.22);
}
.input::placeholder { color: #77849a; }
.muted { color: var(--muted); }
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  font-size: .72rem;
  font-weight: 850;
}
.badge.fix { color: var(--orange); border-color: rgba(255,177,74,.34); background: rgba(255,177,74,.08); }
.badge.scale { color: var(--green); border-color: rgba(53,208,127,.34); background: rgba(53,208,127,.08); }
.badge.kill { color: var(--red); border-color: rgba(255,97,88,.34); background: rgba(255,97,88,.08); }
.verdict-badge { text-transform: uppercase; letter-spacing: .06em; }
.status-badge.pass { color: var(--green); border-color: rgba(53,208,127,.34); background: rgba(53,208,127,.08); }
.status-badge.warn { color: var(--orange); border-color: rgba(255,177,74,.34); background: rgba(255,177,74,.08); }
.status-badge.fail { color: var(--red); border-color: rgba(255,97,88,.34); background: rgba(255,97,88,.08); }
.price { margin: 22px 0; color: #fff; font-size: 3rem; line-height: 1; font-weight: 850; }
.price small { color: var(--muted); font-size: 1rem; font-weight: 650; }
.feature-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; color: #c7d0df; }
.feature-list li { display: flex; gap: 10px; line-height: 1.45; }
.feature-list li::before { content: "✓"; color: var(--blue-2); font-weight: 900; }
.recommended {
  position: relative;
  border-color: rgba(120, 163, 255, 0.58);
  box-shadow: 0 30px 90px rgba(37, 89, 244, 0.16), 0 0 0 1px rgba(120, 163, 255, 0.18) inset;
}
.recommended::before {
  content: "Recommended";
  position: absolute;
  top: 16px;
  right: 16px;
  color: #dce6ff;
  background: rgba(61, 112, 255, 0.18);
  border: 1px solid rgba(120, 163, 255, 0.38);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.score-line {
  display: grid;
  grid-template-columns: 120px 1fr 38px;
  gap: 12px;
  align-items: center;
  color: #b8c2d3;
  font-size: .82rem;
  font-weight: 750;
}
.track { height: 5px; border-radius: 999px; background: rgba(255,255,255,.11); overflow: hidden; }
.bar { display: block; height: 100%; width: var(--score); border-radius: inherit; background: var(--blue); }
.score-bar { display: grid; gap: 8px; }
.score-bar__meta { display: flex; justify-content: space-between; gap: 12px; color: #b8c2d3; font-size: .82rem; font-weight: 750; }
.loading-state, .empty-state, .error-state {
  min-height: 220px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  background: rgba(255,255,255,.03);
}
.loading-state::before {
  content: "";
  width: 34px;
  height: 34px;
  margin: 0 auto 16px;
  display: block;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.18);
  border-top-color: var(--blue-2);
  animation: spin 850ms linear infinite;
}
.error-state { border-color: rgba(255,97,88,.34); }
.check-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.check-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  background: rgba(255,255,255,.025);
}
.check-item h3 { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; font-size: .96rem; }
.check-item p { color: var(--muted); font-size: .88rem; }
.dashboard-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: calc(100vh - 82px); }
.sidebar {
  border-right: 1px solid var(--line);
  padding: 28px 20px;
  background: rgba(255,255,255,.025);
}
.sidebar a {
  display: flex;
  min-height: 38px;
  align-items: center;
  padding: 0 12px;
  border-radius: 7px;
  color: #aeb8c8;
  font-size: .92rem;
  font-weight: 700;
}
.sidebar a.active { color: #fff; background: rgba(61,112,255,.16); box-shadow: inset 2px 0 0 var(--blue); }
.dash-main { padding: 38px; min-width: 0; }
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  background:
    radial-gradient(circle at 78% 8%, rgba(61, 112, 255, 0.12), transparent 34rem),
    linear-gradient(180deg, #050912 0%, #070b13 100%);
}
.app-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 16px;
  border-right: 1px solid var(--line);
  padding: 18px;
  background: rgba(4, 8, 15, 0.86);
  backdrop-filter: blur(18px);
}
.app-brand-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.app-history-search { min-height: 40px; font-size: .88rem; }
.app-history { min-height: 0; overflow-y: auto; display: grid; align-content: start; gap: 18px; padding-right: 2px; }
.app-history-group { display: grid; gap: 8px; }
.app-history-title { color: var(--subtle); font-size: .72rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.app-audit-item {
  position: relative;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 10px;
  display: grid;
  gap: 6px;
  color: #dce4f2;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.audit-delete-x {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  min-height: 24px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #94a3b8;
  background: transparent;
  box-shadow: none;
  font-size: 18px;
  line-height: 1;
  opacity: 0;
}
.app-audit-item:hover .audit-delete-x,
.app-audit-item:focus-within .audit-delete-x,
.audit-delete-x:focus-visible { opacity: 1; }
.audit-delete-x:hover { color: #475569; background: #eef2f7; transform: none; box-shadow: none; }
.app-audit-item:hover, .app-audit-item.active { border-color: rgba(120,163,255,.28); background: rgba(255,255,255,.045); }
.app-audit-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.verdict-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: 0 0 auto; }
.verdict-dot.scale { background: var(--green); }
.verdict-dot.kill { background: var(--red); }
.app-sidebar-bottom { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; }
.app-sidebar-bottom a, .app-sidebar-bottom button {
  min-height: 38px;
  justify-content: flex-start;
  padding: 0 10px;
}
.app-main {
  min-width: 0;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}
.app-topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 9, 18, .56);
  backdrop-filter: blur(14px);
}
.app-menu-button { display: none; }
.app-stage {
  min-height: 0;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 34px;
}
.workspace-empty, .workspace-detail {
  width: min(900px, 100%);
}
.workspace-empty { text-align: center; }
.workspace-empty h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1;
  text-transform: uppercase;
}
.workspace-empty p { margin: 18px auto 0; max-width: 720px; color: var(--muted); line-height: 1.7; }
.workspace-url-form {
  margin: 30px auto 0;
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  border: 1px solid rgba(120,163,255,.25);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255,255,255,.045);
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
}
.workspace-url-form .input {
  min-height: 54px;
  border: 0;
  background: rgba(0,0,0,.18);
  font-size: 1rem;
}
.workspace-helper { margin-top: 12px; color: var(--subtle); font-size: .88rem; }
.workspace-detail-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr); gap: 18px; align-items: start; }
.workspace-block-list { display: grid; gap: 10px; margin-top: 14px; }
.workspace-block-list div {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px;
  background: rgba(255,255,255,.025);
  color: #d7dfed;
}
.app-drawer-backdrop { display: none; }
body.app-drawer-open { overflow: hidden; }
.table { width: 100%; border-collapse: collapse; color: #c5cedd; }
.table th, .table td { border-bottom: 1px solid rgba(255,255,255,.08); padding: 14px 10px; text-align: left; font-size: .9rem; }
.table th { color: #77849a; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; }
.delta { font-weight: 900; }
.delta.good { color: var(--green); }
.delta.bad { color: var(--red); }
.delta.neutral { color: var(--orange); }
.version-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.version-tabs .btn { min-height: 38px; padding: 0 14px; font-size: .82rem; }
.comparison-card { display: grid; gap: 16px; }
.comparison-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; }
.comparison-score { border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: rgba(255,255,255,.025); }
.comparison-score b { display: block; color: #fff; font-size: 1.9rem; line-height: 1; }
.history-list { display: grid; gap: 12px; }
.history-item {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) auto auto auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: rgba(255,255,255,.025);
}
.fix-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: start;
}
.fix-filters, .progress-panel { position: sticky; top: 104px; }
.fix-filters .version-tabs { display: grid; }
.fix-card-list { display: grid; gap: 16px; }
.fix-card.is-complete {
  border-color: rgba(53,208,127,.35);
  background:
    linear-gradient(rgba(53,208,127,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53,208,127,.03) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 31, 27, 0.9), rgba(9, 14, 23, 0.84));
}
.fix-card p strong { color: #e8eefb; }
.locked-state {
  border: 1px solid rgba(120,163,255,.28);
  border-radius: 12px;
  padding: 20px;
  background: rgba(61,112,255,.07);
}
.locked-state h3 { margin: 0 0 8px; color: #fff; }
.locked-state h3::before { content: "Lock"; margin-right: 8px; color: var(--blue-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 5, 10, .72);
  backdrop-filter: blur(14px);
}
.modal-card {
  width: min(520px, 100%);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 26px;
  background: linear-gradient(180deg, rgba(18,25,39,.98), rgba(8,12,20,.98));
  box-shadow: var(--shadow);
}
.modal-card h2 { margin: 0 0 12px; color: #fff; font-size: 2rem; line-height: 1.05; text-transform: uppercase; }
.modal-card p { margin: 0; color: var(--muted); line-height: 1.65; }
.modal-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  transform: translateY(14px);
  opacity: 0;
  pointer-events: none;
  min-width: min(360px, calc(100vw - 32px));
  border: 1px solid rgba(120,163,255,.4);
  border-radius: 10px;
  padding: 14px 16px;
  color: #fff;
  background: rgba(14, 20, 32, .94);
  box-shadow: var(--shadow);
  transition: opacity 180ms ease, transform 180ms ease;
}
.toast.show { opacity: 1; transform: translateY(0); }
.footer { border-top: 1px solid var(--line); padding: 42px 0 58px; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(120px, .7fr)) minmax(150px, .9fr);
  gap: 54px;
}
.footer h3 { margin: 0 0 14px; color: #fff; font-size: .9rem; }
.footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--muted); font-size: .9rem; }
.tagline { margin: 16px 0 22px; color: var(--muted); }
.footer-end { justify-self: end; text-align: right; }
.copyright { margin-top: 44px; color: #8b96aa; font-size: .8rem; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (max-width: 1040px) {
  .nav { grid-template-columns: auto 1fr auto; }
  .nav-links { gap: 22px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: 1fr; }
  .dashboard-shell { grid-template-columns: 1fr; }
  .sidebar { display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 20px; }
  .sidebar a { white-space: nowrap; }
  .footer-grid { grid-template-columns: 1.2fr repeat(3, 1fr); }
  .footer-end { justify-self: start; text-align: left; grid-column: 1 / -1; }
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 90;
    width: min(330px, calc(100vw - 38px));
    transform: translateX(-102%);
    transition: transform 180ms ease;
  }
  body.app-drawer-open .app-sidebar { transform: translateX(0); }
  .app-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 85;
    display: block;
    opacity: 0;
    pointer-events: none;
    background: rgba(2,5,10,.62);
    transition: opacity 180ms ease;
  }
  body.app-drawer-open .app-drawer-backdrop { opacity: 1; pointer-events: auto; }
  .app-menu-button { display: inline-flex; }
}
@media (max-width: 760px) {
  .site-shell { width: min(100% - 28px, 1240px); }
  .nav { min-height: 70px; grid-template-columns: 1fr auto; }
  .brand { font-size: 1.35rem; }
  .nav-links, .signin { display: none; }
  .page-hero { padding: 48px 0 28px; }
  .page-hero h1 { font-size: clamp(2.55rem, 12vw, 4rem); }
  .grid-2, .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .dash-main { padding: 24px 14px; }
  .table { min-width: 620px; }
  .fix-layout { grid-template-columns: 1fr; }
  .fix-filters, .progress-panel { position: static; }
  .fix-filters .version-tabs { display: flex; overflow-x: auto; padding-bottom: 4px; }
  .history-item { grid-template-columns: 1fr; }
  .comparison-row { grid-template-columns: 1fr; }
  .table-wrap { overflow-x: auto; }
  .score-line { grid-template-columns: 96px 1fr 34px; }
  .check-grid { grid-template-columns: 1fr; }
  .toast { right: 14px; left: 14px; min-width: 0; }
  .app-topbar { padding: 12px 14px; align-items: flex-start; }
  .app-stage { padding: 24px 14px; align-items: start; }
  .workspace-url-form { grid-template-columns: 1fr; }
  .workspace-url-form .btn { width: 100%; }
  .workspace-detail-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Clean Verdyx 2.0 visual system: white/deep-blue product UI. */
:root {
  --bg: #f7faff;
  --panel: #ffffff;
  --panel-2: #f8fbff;
  --line: #dce6f2;
  --line-strong: #bfd0e8;
  --text: #071b3a;
  --muted: #64748b;
  --subtle: #94a3b8;
  --blue: #2563eb;
  --blue-2: #1d4ed8;
  --green: #16a34a;
  --orange: #f59e0b;
  --red: #dc2626;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

body {
  color: var(--text);
  background:
    radial-gradient(circle at 80% 0%, rgba(37, 99, 235, 0.08), transparent 34rem),
    linear-gradient(180deg, #f8fbff 0%, #f7faff 100%);
}
body::before { display: none; }
.site-header {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.82);
}
.brand, .page-hero h1, .section-header h2, .card h3, .modal-card h2 { color: var(--text); }
.nav-links, .nav-actions { color: #334155; }
.nav a:hover { color: var(--blue); }
.btn {
  color: #071b3a;
  border-color: var(--line);
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.btn:hover {
  transform: translateY(-1px);
  border-color: #b8c9e2;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}
.btn-primary {
  color: #fff;
  border-color: #1d4ed8;
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.22);
}
.btn-danger { color: var(--red); border-color: rgba(220,38,38,.28); background: #fff5f5; }
.eyebrow { color: var(--blue); letter-spacing: .08em; }
.page-hero { padding: 54px 0 28px; }
.page-hero h1 { line-height: 1.02; }
.page-hero p, .section-header p, .card p, .modal-card p, .muted { color: var(--muted); }
.section { padding: 28px 0 48px; }
.card {
  border-color: var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}
.card-pad { padding: 22px; }
.input {
  color: var(--text);
  border-color: var(--line);
  background: #fff;
}
.input::placeholder { color: #94a3b8; }
.badge { color: #334155; border-color: var(--line); background: #f8fbff; }
.badge.fix { color: #b45309; border-color: #fed7aa; background: #fff7ed; }
.badge.scale { color: #15803d; border-color: #bbf7d0; background: #f0fdf4; }
.badge.kill { color: #b91c1c; border-color: #fecaca; background: #fef2f2; }
.status-badge.pass { color: #15803d; border-color: #bbf7d0; background: #f0fdf4; }
.status-badge.warn { color: #b45309; border-color: #fed7aa; background: #fff7ed; }
.status-badge.fail { color: #b91c1c; border-color: #fecaca; background: #fef2f2; }
.status-badge.neutral { color: #475569; border-color: #cbd5e1; background: #f8fafc; }
.info-tip {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  color: #64748b;
  background: #f8fafc;
  font-size: .72rem;
  font-weight: 850;
  line-height: 1;
  cursor: help;
  flex: 0 0 auto;
}
.info-tip::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  width: min(300px, 80vw);
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #1e293b;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .16);
  font-size: .82rem;
  font-weight: 650;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity .14s ease, transform .14s ease;
}
.info-tip:hover::after,
.info-tip:focus-visible::after { opacity: 1; transform: translateY(0); }
.card-head, .stat-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.check-item h3 { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.check-item .badge-wrap { display: inline-flex; align-items: center; gap: 6px; }
.dashboard-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.usage-meter { height: 9px; border-radius: 999px; background: #e8eef7; overflow: hidden; margin: 14px 0 10px; }
.usage-meter span { display: block; height: 100%; width: var(--pct, 0%); border-radius: inherit; background: linear-gradient(90deg, #2563eb, #60a5fa); }
.market-stat-list { display: grid; gap: 10px; margin-top: 16px; }
.market-stat-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc; }
.audit-card-list { display: grid; gap: 14px; margin-top: 16px; }
.audit-card { position: relative; padding: 18px; border: 1px solid #dce6f3; border-radius: 10px; background: #fff; box-shadow: 0 16px 45px rgba(15, 23, 42, .06); }
.audit-card-top { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; padding-right: 30px; }
.audit-card h3 { margin: 0 0 4px; }
.audit-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.audit-metric { border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px; background: #f8fafc; }
.audit-metric span { display: block; color: #64748b; font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.audit-metric strong { display: block; margin-top: 4px; color: #0f172a; font-size: 1rem; }
.audit-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.audit-actions .btn { min-height: 34px; padding: 0 12px; font-size: .82rem; }
.audit-delete-x { position: absolute; right: 12px; top: 12px; width: 26px; height: 26px; border-radius: 999px; border: 1px solid #cbd5e1; color: #64748b; background: #f8fafc; cursor: pointer; }
.next-action-card { min-height: 100%; }
.plan-rule-list { display: grid; gap: 8px; margin-top: 14px; }
.plan-rule-list div { padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc; color: #334155; }
.price { color: var(--text); }
.feature-list { color: #334155; }
.feature-list li::before { content: ""; width: 6px; height: 6px; margin-top: .62em; border-radius: 50%; background: var(--blue); flex: 0 0 auto; }
.track { background: #e8eef7; }
.bar { background: linear-gradient(90deg, #2563eb, #60a5fa); }
.loading-state, .empty-state, .error-state {
  border-color: var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}
.check-item, .comparison-score, .history-item, .locked-state {
  border-color: var(--line);
  background: #fff;
}
.locked-state h3, .fix-card p strong { color: var(--text); }
.dashboard-shell { background: #f7faff; }
.sidebar {
  background: #fff;
  border-right-color: var(--line);
}
.sidebar a { color: #475569; }
.sidebar a.active { color: var(--blue); background: #eaf2ff; box-shadow: inset 2px 0 0 var(--blue); }
.table { color: #334155; }
.table th, .table td { border-bottom-color: #edf2f7; }
.table th { color: #64748b; }
.modal-backdrop { background: rgba(15, 23, 42, .32); }
.modal-card {
  border-color: var(--line);
  background: #fff;
}
.toast {
  color: var(--text);
  border-color: #bfdbfe;
  background: #fff;
  box-shadow: var(--shadow);
}
.footer { border-top-color: var(--line); background: #fff; }
.footer h3 { color: var(--text); }
.footer ul, .tagline, .copyright { color: var(--muted); }

.app-shell {
  background: #f7faff;
  grid-template-columns: 292px minmax(0, 1fr);
}
.app-sidebar {
  border-right-color: var(--line);
  background: #fff;
  box-shadow: 1px 0 0 rgba(15, 23, 42, 0.03);
}
.app-history-title { color: #94a3b8; }
.app-audit-item { color: #1e293b; }
.app-audit-item:hover, .app-audit-item.active {
  border-color: #bfdbfe;
  background: #eaf2ff;
}
.app-sidebar-bottom { border-top-color: var(--line); }
.app-topbar {
  border-bottom-color: var(--line);
  background: rgba(255,255,255,.86);
}
.workspace-empty h1 { color: var(--text); text-transform: none; letter-spacing: 0; }
.workspace-empty p { color: var(--muted); }
.workspace-url-form {
  border-color: #bfdbfe;
  background: #fff;
  box-shadow: 0 20px 60px rgba(37, 99, 235, .12);
}
.workspace-url-form .input { background: #f8fbff; }
.workspace-block-list div {
  border-color: var(--line);
  background: #f8fbff;
  color: #334155;
}
.verdict-dot.fix, .verdict-dot { background: var(--orange); }
.verdict-dot.scale { background: var(--green); }
.verdict-dot.kill { background: var(--red); }

.report-tabs {
  position: sticky;
  top: 82px;
  z-index: 12;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0;
  background: rgba(247, 250, 255, .9);
  backdrop-filter: blur(14px);
}
.report-tab {
  min-height: 40px;
  border-radius: 999px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: #fff;
  color: #334155;
  font-weight: 800;
  cursor: pointer;
}
.report-tab.active { color: #fff; background: var(--blue); border-color: var(--blue); }
.report-panel[hidden] { display: none !important; }
.verdict-summary-card {
  border: 1px solid #bfdbfe;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}
.fix-layout.simplified {
  grid-template-columns: 240px minmax(0, 1fr);
}
.fix-card .fix-card-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.fix-card.is-complete { border-color: #bbf7d0; background: #f0fdf4; }
.mini-card {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #f8fbff;
}
.mini-card strong { color: var(--text); font-size: 1.05rem; }
details.card summary {
  cursor: pointer;
  color: var(--text);
}

@media (max-width: 760px) {
  .report-tabs { top: 70px; margin-inline: -14px; padding-inline: 14px; }
  .fix-layout.simplified { grid-template-columns: 1fr; }
  .dashboard-card-grid, .audit-metrics { grid-template-columns: 1fr; }
  .audit-card-top { padding-right: 26px; }
  .audit-actions .btn { flex: 1 1 auto; }
}
