:root {
  color-scheme: light;
  --bg: #f3f6fb;
  --surface: #fff;
  --ink: #131f36;
  --muted: #4e5d76;
  --faint: #64748d;
  --line: #dae3f0;
  --blue: #2a4ed0;
  --blue-dark: #203ca6;
  --blue-soft: #e8efff;
  --green: #1b5c42;
  --green-soft: #e3f5eb;
  --amber: #715111;
  --amber-soft: #fff0cc;
  --red: #9a263e;
  --red-soft: #fae9ed;
  --sidebar: #14264e;
  font: 15px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
[hidden] { display: none !important; }
a { color: var(--blue-dark); text-underline-offset: 3px; }
a:hover { color: var(--blue); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .58; }
:focus-visible { outline: 3px solid #6586f6; outline-offset: 3px; }
[tabindex="-1"]:focus { outline: 0; }
h1, h2, h3, h4, p, dl { margin: 0; }
h1, h2, h3, td, dd, p { overflow-wrap: anywhere; }
h1 { font-size: clamp(32px, 4vw, 48px); font-weight: 740; line-height: 1.1; letter-spacing: -.052em; }
h2 { font-size: clamp(20px, 2.5vw, 25px); font-weight: 720; letter-spacing: -.032em; line-height: 1.23; }
h3 { font-size: 16px; font-weight: 710; line-height: 1.32; }
ul, ol { margin-top: 7px; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; }
code { color: #263c74; font-size: .92em; overflow-wrap: anywhere; }
summary { cursor: pointer; font-weight: 680; color: var(--blue-dark); }
summary + * { margin-top: 9px; }
svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 10; padding: 9px 13px; background: white; }
.brand { color: #192850; font-size: 32px; font-weight: 760; line-height: 1; letter-spacing: -.09em; text-decoration: none; }
.brand span { color: #3b65f7; }
.product { font-size: 12px; font-weight: 650; letter-spacing: .02em; border-left: 1px solid var(--line); padding-left: 13px; color: var(--muted); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.micro { font-size: 12px; }
.eyebrow { font-size: 11px; font-weight: 750; letter-spacing: .14em; color: var(--blue-dark); }
.flow > * + * { margin-top: 12px; }
.stack { display: grid; gap: 14px; }
.stack-xl { display: grid; gap: 22px; }
.row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.between { justify-content: space-between; }
.end { justify-content: flex-end; }
.grow { flex: 1; min-width: min(100%, 220px); }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 9px; min-height: 40px; padding: 8px 13px; font-size: 13px; font-weight: 720; line-height: 1.35; color: var(--blue-dark); background: white; text-decoration: none; }
.btn:hover:not(:disabled) { border-color: #b5c5ec; background: #edf2fe; }
.btn svg { width: 17px; height: 17px; }
.btn.primary { border-color: var(--blue); color: white; background: var(--blue); }
.btn.primary:hover:not(:disabled) { border-color: var(--blue-dark); background: var(--blue-dark); }
.btn.danger { color: var(--red); border-color: #edcad2; }
.btn.danger:hover:not(:disabled) { background: var(--red-soft); }
.btn.compact { min-height: 34px; padding: 6px 9px; }
.chip { display: inline-flex; align-items: center; align-self: start; padding: 4px 9px; border-radius: 999px; color: #294878; background: #eaf0fb; font-size: 12px; font-weight: 690; line-height: 1.3; }
.chip.good { color: var(--green); background: var(--green-soft); }
.chip.warn { color: var(--amber); background: var(--amber-soft); }
.chip.bad { color: var(--red); background: var(--red-soft); }
.panel { min-width: 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.panel.flush { padding: 0; }
.notice { padding: 11px 13px; border-radius: 9px; border: 1px solid #cfddf7; color: #2c497d; background: #edf3ff; font-size: 13px; }
.notice.error { color: var(--red); background: var(--red-soft); border-color: #edcad2; }
.notice.success { color: var(--green); background: var(--green-soft); border-color: #c5e5d5; }
.notice.warning { color: var(--amber); background: var(--amber-soft); border-color: #ebd9ab; }
.empty { padding: 23px 20px; text-align: left; }
.empty h3 { margin-bottom: 4px; }
.loading { display: flex; align-items: center; gap: 9px; padding: 20px 0; color: var(--muted); }
.loading::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #c5d4f5; border-top-color: var(--blue); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr)); gap: 12px; }
dt { color: var(--muted); font-size: 12px; font-weight: 670; }
dd { margin: 2px 0 0; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.metric { padding: 15px; }
.metric strong { display: block; font-size: 30px; line-height: 1.15; letter-spacing: -.055em; margin-top: 4px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.section-head p { margin-top: 3px; }
.heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 15px; }
.heading .muted { margin-top: 6px; }
.breadcrumbs { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.tabs { display: flex; gap: 3px; border-bottom: 1px solid var(--line); overflow-x: auto; padding: 4px; margin: -4px; }
.tabs a { min-height: 41px; padding: 8px 12px; flex: none; text-decoration: none; font-size: 13px; font-weight: 670; border-bottom: 2px solid transparent; color: var(--muted); }
.tabs a[aria-current] { color: var(--blue-dark); border-color: var(--blue); }
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: white; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 10px 12px; border-bottom: 1px solid #e5ebf5; text-align: left; vertical-align: top; }
th { font-size: 12px; font-weight: 710; color: var(--muted); background: #f4f7fd; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td:first-child { min-width: 125px; }
.record { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 13px 17px; border-bottom: 1px solid #e5ebf5; }
.record:last-child { border-bottom: 0; }
.record > div:first-child { min-width: 0; }
.record .chip { flex: none; }
.record a { font-weight: 680; }
.record p { margin-top: 3px; }
form, fieldset { min-width: 0; }
fieldset { border: 1px solid var(--line); border-radius: 9px; padding: 10px 13px; margin: 0; }
legend { padding: 0 4px; font-size: 13px; font-weight: 710; }
label { font-size: 13px; font-weight: 690; }
.field { display: grid; gap: 4px; min-width: 0; align-content: start; }
.field .hint { font-size: 12px; font-weight: 400; color: var(--muted); }
input:not([type="checkbox"]):not([type="radio"]), select, textarea { width: 100%; min-width: 0; min-height: 40px; padding: 8px 10px; color: var(--ink); border: 1px solid #bdcce4; background: #fcfdff; border-radius: 8px; font-weight: 460; }
input::placeholder, textarea::placeholder { color: var(--faint); }
textarea { resize: vertical; min-height: 86px; }
.check { display: flex; align-items: baseline; gap: 7px; min-height: 31px; }
.check input { align-self: center; accent-color: var(--blue); }
.form-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 5px; }
.secret input { font-family: ui-monospace, monospace; font-size: 12px; }
.thumb { display: block; width: min(100%, 840px); height: auto; border: 1px solid var(--line); border-radius: 9px; }
.caption { margin-top: 5px; color: var(--muted); font-size: 12px; }
.evidence-shot { margin: 0; }
progress { width: 100%; accent-color: var(--blue); }
.shared-report { display: block; width: 100%; min-height: 72vh; border: 1px solid var(--line); border-radius: 12px; background: white; }

.workspace { min-height: 100vh; display: grid; grid-template-columns: 218px minmax(0, 1fr); }
.rail { background: var(--sidebar); color: #d9e5ff; display: flex; flex-direction: column; gap: 24px; padding: 23px 14px; }
.rail .brand { color: white; margin-left: 10px; }
.rail .brand span { color: #9cb6ff; }
.rail .product { display: block; padding: 0; border: 0; margin: 5px 0 0 11px; color: #c2d0eb; }
.rail-nav { display: grid; gap: 4px; }
.rail-nav a { display: flex; align-items: center; min-height: 42px; gap: 9px; border-radius: 8px; padding: 7px 9px; color: #e4ecff; font-size: 13px; font-weight: 650; text-decoration: none; }
.rail-nav svg { color: #b7ccff; width: 18px; height: 18px; }
.rail-nav a:hover, .rail-nav a[aria-current] { color: white; background: #2a4381; }
.rail-note { color: #bed0f3; font-size: 12px; padding: 0 9px; }
.workspace-main { min-width: 0; }
.top { min-height: 62px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px 15px; padding: 9px clamp(15px, 3vw, 38px); background: white; border-bottom: 1px solid var(--line); }
.top .product { padding-left: 0; border: 0; }
.workspace-main main { padding: clamp(17px, 3vw, 39px); max-width: 1390px; margin: auto; }
.profile { display: inline-flex; gap: 7px; flex-wrap: wrap; align-items: center; font-size: 13px; }
.avatar { display: inline-grid; place-items: center; width: 27px; height: 27px; color: var(--blue-dark); background: var(--blue-soft); border-radius: 50%; font-size: 12px; font-weight: 750; }
.project-card { display: grid; align-content: start; gap: 11px; }
.project-card .project-url { word-break: break-word; }
.project-card .next { padding-top: 8px; border-top: 1px solid #e7ecf5; }

.public-wrap { max-width: 1230px; padding-inline: clamp(16px, 4vw, 43px); margin-inline: auto; }
.public-bar { border-bottom: 1px solid var(--line); background: white; }
.public-bar .public-wrap { display: flex; align-items: center; gap: 14px; min-height: 67px; }
.public-bar .login-link { margin-left: auto; }
.landing { display: grid; align-items: center; grid-template-columns: 1.15fr minmax(0, 1fr); gap: 40px; padding-block: clamp(32px, 7vw, 91px); }
.landing h1 { font-size: clamp(37px, 6vw, 71px); }
.landing .intro { color: var(--muted); font-size: clamp(16px, 2vw, 19px); max-width: 52ch; }
.demo-preview { padding: 21px; border-radius: 17px; color: white; background-color: #253d9c; background-image: linear-gradient(145deg, #2145bc22, #172c77f0), repeating-linear-gradient(0deg, #afc0ff29 0 1px, transparent 1px 29px), repeating-linear-gradient(90deg, #afc0ff29 0 1px, transparent 1px 29px); }
.demo-preview .eyebrow, .demo-preview .muted { color: #e2eaff; }
.demo-preview .demo-row { padding: 11px 0; border-top: 1px solid #b7c8ff6b; }
.landing-features { margin-bottom: 29px; }
.public-footer { padding-block: 21px; color: var(--muted); font-size: 13px; }
.auth { max-width: 510px; margin: clamp(30px, 8vw, 82px) auto; }
.auth h1 { font-size: clamp(29px, 4.8vw, 42px); }

@media (max-width: 1040px) {
  .workspace { grid-template-columns: 180px minmax(0, 1fr); }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .workspace { display: block; }
  .rail { gap: 10px; padding: 12px 13px 9px; }
  .rail .brand { font-size: 25px; margin: 0; }
  .rail .product { display: inline-block; margin-left: 8px; }
  .rail-nav { display: flex; overflow-x: auto; gap: 4px; padding: 4px 2px; }
  .rail-nav a { flex: none; min-height: 37px; }
  .rail-note { display: none; }
  .landing { grid-template-columns: 1fr; gap: 22px; }
  .landing-features { grid-template-columns: 1fr; }
}
@media (max-width: 510px) {
  .grid-2, .grid-3, .project-grid { grid-template-columns: 1fr; }
  .cards { gap: 5px; }
  .metric { padding: 8px; }
  .metric strong { font-size: 23px; }
  .metric .small { font-size: 11px; }
  .panel { padding: 13px; }
  .record { padding: 10px 12px; flex-wrap: wrap; }
  .top .product { display: none; }
  .rail-nav a { padding-inline: 6px; font-size: 12px; }
  .rail-nav svg { width: 14px; height: 14px; }
}
@media (prefers-reduced-motion: reduce) { .loading::before { animation: none; } }
