:root {
  --bg: #07111f;
  --panel: #0d1a2b;
  --panel-2: #111f31;
  --line: #203247;
  --line-soft: rgba(255, 255, 255, 0.07);
  --text: #eef5f8;
  --muted: #95a5b7;
  --green: #43d6a3;
  --green-deep: #17614d;
  --red: #ff746f;
  --amber: #f6b94a;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  color-scheme: dark;
  font-family: var(--font-sans);
  font-size: 16px;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 88% 0, rgba(30, 91, 94, 0.28), transparent 28rem),
    linear-gradient(180deg, #081521 0, var(--bg) 42rem);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main { flex: 1; }

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-sans); }

.shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.nav {
  width: min(1240px, calc(100% - 48px));
  height: 64px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 720;
  letter-spacing: 0.01em;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(67, 214, 163, 0.75);
  border-radius: 7px;
  color: var(--green);
  font-size: 14px;
  font-weight: 650;
}

.nav nav { display: flex; align-items: center; gap: 26px; color: var(--muted); font-size: 14px; }
.nav nav a { transition: color 0.18s ease; }
.nav nav a:hover { color: var(--text); }
.nav nav form { margin: 0; }
.nav nav button {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.nav nav button:hover { border-color: #3d566e; color: var(--text); }

.login-body { background: var(--bg); }
.login-shell {
  min-height: 100vh;
  padding: 28px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 18%, rgba(42, 151, 126, 0.16), transparent 28rem),
    linear-gradient(180deg, #091725, #07111f);
}
.login-card {
  width: min(420px, 100%);
  padding: 34px;
  border: 1px solid #29425a;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(18, 38, 57, 0.98), rgba(10, 24, 39, 0.98));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}
.login-brand { width: max-content; margin-bottom: 36px; }
.login-card h1 { margin: 10px 0 8px; font-size: 38px; font-weight: 680; letter-spacing: -0.035em; }
.login-card > p { margin-bottom: 26px; color: var(--muted); font-size: 14px; }
.login-card > small { display: block; margin-top: 18px; color: #708297; font-size: 12px; text-align: center; }
.login-form { display: grid; gap: 9px; }
.login-form label { margin-top: 5px; color: #a9b7c5; font-size: 13px; font-weight: 600; }
.login-form input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid #2c4358;
  border-radius: 8px;
  outline: none;
  background: #071421;
  color: var(--text);
}
.login-form input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(67, 214, 163, 0.11); }
.login-form button {
  height: 50px;
  margin-top: 12px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 8px;
  background: var(--green-deep);
  color: white;
  font-weight: 650;
  cursor: pointer;
}
.login-form button:hover { background: #1c715a; }
.login-form button:disabled { opacity: 0.45; cursor: not-allowed; }
.login-error {
  margin-top: 5px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 116, 111, 0.38);
  border-radius: 7px;
  background: rgba(255, 116, 111, 0.08);
  color: #ffaaa5;
  font-size: 13px;
}

.eyebrow,
.kicker {
  color: var(--green);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.14em;
}

.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 24px; height: 1px; background: var(--green); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.78fr);
  grid-template-areas:
    "eyebrow eyebrow"
    "title search"
    "description search"
    "proof proof";
  column-gap: clamp(40px, 7vw, 88px);
  align-items: center;
  padding: 52px 0 0;
}

.hero > .eyebrow { grid-area: eyebrow; }

.hero h1,
.calibration-shell h1 {
  margin: 18px 0 20px;
  font-size: clamp(48px, 6.4vw, 80px);
  font-weight: 680;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.hero h1 { grid-area: title; max-width: 720px; }
.hero h1 em,
.calibration-shell h1 em { color: var(--green); font-style: normal; }
.hero h1 em { display: block; white-space: nowrap; }

.hero > p {
  grid-area: description;
  max-width: 700px;
  margin-bottom: 0;
  color: #b5c2cf;
  font-size: 17px;
  line-height: 1.75;
}

.search-card {
  grid-area: search;
  width: 100%;
  margin: 18px 0 0;
  padding: 20px;
  border: 1px solid #29425a;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(18, 38, 57, 0.98), rgba(11, 27, 42, 0.98));
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  color: var(--text);
}

.search-card label {
  color: #a9b7c5;
  font-size: 13px;
  font-weight: 600;
}

.search-row { display: flex; gap: 10px; margin-top: 10px; }

.search-row input {
  min-width: 0;
  height: 52px;
  flex: 1;
  padding: 0 15px;
  border: 1px solid #2c4358;
  border-radius: 8px;
  outline: none;
  background: #071421;
  color: var(--text);
  font-size: 21px;
  font-weight: 620;
  letter-spacing: 0.06em;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.search-row input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(67, 214, 163, 0.11);
}

.search-row input::placeholder { color: #65778a; }

.search-row button {
  height: 52px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  border: 0;
  border-radius: 8px;
  background: var(--green-deep);
  color: white;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.search-row button:hover { background: #1c715a; transform: translateY(-1px); }
.search-row button:disabled { opacity: 0.55; transform: none; }
.form-error { min-height: 0; margin-top: 7px; color: #ff9d97; font-size: 13px; }
.form-error:empty { display: none; }

.proof-grid {
  grid-area: proof;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 38px;
}

.proof-grid div {
  min-height: 76px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(13, 26, 43, 0.7);
}

.proof-grid b {
  color: var(--green);
  font-size: 30px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.proof-grid span { color: var(--muted); font-size: 13px; line-height: 1.45; }

.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  padding: 34px 0;
}

.panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(15, 30, 49, 0.96), rgba(10, 23, 38, 0.96));
}

.panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 14px;
}

.panel h2 { margin: 4px 0 0; font-size: 23px; font-weight: 650; }

.report-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 4px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.report-row:hover { color: var(--green); }
.code { font-weight: 700; font-variant-numeric: tabular-nums; }
.muted, time { color: var(--muted); }

.pill {
  width: max-content;
  padding: 4px 9px;
  border: 1px solid rgba(67, 214, 163, 0.38);
  border-radius: 999px;
  color: var(--green);
  font-size: 12px;
}

.empty-state {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}

.empty-state p { margin: 0; }
.empty-state span { color: var(--green); font-size: 24px; }
.watch-list { display: grid; gap: 8px; }

.watch-item {
  padding: 12px 13px;
  display: flex;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  cursor: pointer;
}

.watch-item small { color: var(--muted); }

.method { padding: 34px 0 58px; }

.method-title {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 64px;
  align-items: end;
  margin: 12px 0 28px;
}

.method-title h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 660;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.method-title p { margin-bottom: 3px; color: var(--muted); line-height: 1.75; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }

.steps > div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(13, 26, 43, 0.54);
}

.steps i { color: var(--green); font-size: 12px; font-style: normal; font-weight: 650; }
.steps h3 { margin: 14px 0 8px; font-size: 19px; font-weight: 650; }
.steps p { margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

.footer {
  padding: 20px 24px;
  border-top: 1px solid var(--line-soft);
  color: #738498;
  text-align: center;
  font-size: 12px;
}

.task-shell { padding: 52px 0 72px; }

.task-shell h1 {
  margin: 16px 0 8px;
  font-size: clamp(38px, 5.8vw, 62px);
  font-weight: 670;
  letter-spacing: -0.04em;
}

.lead { color: var(--muted); font-size: 16px; line-height: 1.7; }
.progress-track { height: 7px; margin-top: 28px; overflow: hidden; border-radius: 99px; background: #192a3c; }
.progress-track > div { width: 0; height: 100%; background: linear-gradient(90deg, var(--green), #82ffe0); transition: width 0.45s; }
.progress-meta { display: flex; justify-content: space-between; margin: 9px 0 24px; color: var(--muted); font-size: 13px; }
.progress-meta b { color: var(--green); font-size: 17px; }
.skill-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }

.skill {
  min-height: 58px;
  padding: 11px 12px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1px 9px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c1827;
  font-size: 14px;
  transition: 0.25s;
}

.skill small { grid-column: 2; color: #738397; font-size: 11px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #425166; }
.skill.running { border-color: rgba(84, 170, 255, 0.48); background: #10273b; }
.skill.running .status-dot { background: #54aaff; box-shadow: 0 0 10px #54aaff; animation: pulse 1s infinite; }
.skill.done .status-dot { background: var(--green); }
.skill.no_data .status-dot { background: var(--amber); }
.skill.failed .status-dot { background: var(--red); }
@keyframes pulse { 50% { opacity: 0.25; } }

.error-panel {
  margin-top: 22px;
  padding: 17px;
  border: 1px solid #9f3a42;
  border-radius: 8px;
  background: #421e23;
  color: #ffb2b2;
}

.report-shell { padding: 42px 0 68px; }

.report-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.stock-code { margin: 18px 0 2px; color: var(--muted); font-size: 14px; letter-spacing: 0.12em; }

.report-hero h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 680;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.one-line { margin: 14px 0 0; color: #bac6d2; font-size: 17px; }
.price-block { align-self: end; text-align: right; }
.price-block small, .price-block span { display: block; color: var(--muted); }
.price-block b { display: block; margin: 4px 0; color: var(--green); font-size: 34px; font-weight: 670; }

.export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.export-actions a {
  min-height: 38px;
  padding: 7px 13px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #31485e;
  border-radius: 7px;
  color: #c8d3dc;
  font-size: 13px;
  font-weight: 600;
  transition: 0.18s ease;
}

.export-actions a:hover { border-color: #4f6b84; background: rgba(255, 255, 255, 0.035); color: white; }
.export-actions .export-primary { border-color: #26755f; background: #17614d; color: white; }
.export-actions .export-primary:hover { border-color: #43d6a3; background: #1d725a; }

.verdict-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 10px;
  margin: 16px 0 34px;
}

.verdict {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
}

.verdict.primary { border-top: 2px solid var(--green); }
.verdict > span, .metric-grid span, .prob span, .duel span { color: var(--muted); font-size: 12px; letter-spacing: 0.08em; }
.verdict > b { display: block; margin: 7px 0; font-size: 29px; font-weight: 670; }
.verdict p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

.report-section {
  display: grid;
  grid-template-columns: 52px 1fr;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.section-index { padding-top: 4px; color: var(--green); font-size: 15px; font-weight: 650; }
.report-section h2 { margin: 5px 0 18px; font-size: 30px; font-weight: 660; letter-spacing: -0.02em; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }

.metric-grid > div,
.prob,
.analysis-grid article,
.duel > div {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
}

.metric-grid b, .prob b { display: block; margin: 7px 0; font-size: 22px; font-weight: 660; }
.metric-grid small, .prob small { color: var(--muted); }
.chart { display: none; height: 340px; margin-top: 16px; }
.chart.is-ready { display: block; }
.chart.large { height: 390px; }
.chart-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.prob-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.prob b { color: var(--green); font-size: 36px; }

.cal-note {
  margin-top: 10px;
  padding: 13px 16px;
  border-left: 2px solid var(--amber);
  border-radius: 0 7px 7px 0;
  background: rgba(246, 185, 74, 0.07);
  color: #d6c28f;
  font-size: 13px;
}

.analysis-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.analysis-grid article > span { color: var(--green); font-size: 11px; letter-spacing: 0.08em; }
.analysis-grid p { margin: 9px 0; color: #c8d2dc; line-height: 1.7; }
.analysis-grid small { color: var(--muted); }
.duel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.duel p { margin: 10px 0 0; color: #c5d0da; font-size: 13px; line-height: 1.7; }
.duel .red-team { border-color: rgba(255, 116, 111, 0.38); background: #2d1a22; }
.red-team b { display: block; margin-top: 8px; color: var(--red); }

.risk-box {
  padding: 20px;
  border: 1px solid rgba(255, 116, 111, 0.28);
  border-left: 3px solid var(--red);
  border-radius: 8px;
  background: #241c1f;
}

.risk-box p { margin: 8px 0 0; color: #cbb9bb; line-height: 1.7; }

.disclaimer {
  margin-left: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.disclaimer b { color: var(--text); }
.disclaimer p { margin: 8px 0; }
.disclaimer a { display: inline-block; margin-top: 3px; color: var(--green); }

.calibration-shell { padding: 50px 0 68px; }
.calibration-shell h1 { margin-bottom: 14px; font-size: clamp(42px, 5.8vw, 66px); }
.calibration-shell > .lead { max-width: 720px; margin-bottom: 24px; }
.table-wrap { overflow: auto; }
table { width: 100%; min-width: 620px; border-collapse: collapse; }
th, td { padding: 13px; border-top: 1px solid var(--line); text-align: left; font-size: 13px; }
th { color: var(--muted); font-size: 11px; letter-spacing: 0.08em; }
.report-loading { padding: 64px 0; color: var(--muted); }

/* Methodology and architecture documents */
.docs-shell { padding: 54px 0 82px; }

.docs-hero {
  position: relative;
  min-height: 450px;
  padding: 52px clamp(0px, 3vw, 38px) 48px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}

.docs-number {
  position: absolute;
  top: 18px;
  right: 0;
  margin: 0;
  color: rgba(67, 214, 163, 0.07);
  font-size: clamp(130px, 20vw, 245px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.08em;
  pointer-events: none;
}

.docs-hero h1 {
  position: relative;
  max-width: 900px;
  margin: 26px 0 20px;
  font-size: clamp(48px, 7vw, 84px);
  font-weight: 680;
  line-height: 1.08;
  letter-spacing: -0.052em;
}

.docs-hero h1 em { display: block; color: var(--green); font-style: normal; }
.architecture-docs .docs-hero h1 em { display: inline; }
.docs-hero > p:not(.docs-number) { position: relative; max-width: 760px; margin-bottom: 0; color: #b6c3ce; font-size: 17px; line-height: 1.85; }

.docs-jump { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 27px; }
.docs-jump a { padding: 7px 12px; border: 1px solid #2c4055; border-radius: 999px; color: var(--muted); font-size: 12px; }
.docs-jump a:hover { border-color: var(--green-deep); color: var(--green); }

.docs-section {
  scroll-margin-top: 24px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 82px);
  padding: 54px 0;
  border-bottom: 1px solid var(--line);
}

.docs-side { padding-top: 2px; }
.docs-side > span { color: var(--green); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; }
.docs-side h2 { margin: 9px 0 0; font-size: 19px; font-weight: 650; line-height: 1.35; }
.docs-main { min-width: 0; }
.docs-main > h3 { margin: 30px 0 8px; font-size: 22px; font-weight: 650; }
.docs-main > h3:first-child { margin-top: 0; }
.docs-main > p { color: #b6c3ce; line-height: 1.82; }
.docs-lead { margin-bottom: 24px; color: #d6dfe6 !important; font-size: 17px; }
.docs-lead strong { color: white; }

.formula-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 24px;
}

.formula-flow div,
.architecture-principles p,
.definition-grid article,
.cost-methods article,
.triple-review article,
.db-map article {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(13, 26, 43, 0.65);
}

.formula-flow div { min-height: 98px; padding: 15px 13px; }
.formula-flow b, .formula-flow small { display: block; }
.formula-flow b { margin-bottom: 5px; font-size: 14px; }
.formula-flow small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.formula-flow i, .deployment-strip i { color: #4f6377; font-style: normal; }

.formula-card {
  margin: 15px 0 24px;
  padding: 18px 20px;
  border: 1px solid #29465a;
  border-left: 3px solid var(--green);
  border-radius: 4px 9px 9px 4px;
  background: linear-gradient(100deg, rgba(18, 50, 59, 0.7), rgba(12, 28, 45, 0.65));
}

.formula-card > span { display: block; margin-bottom: 8px; color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; }
.formula-card code { display: block; padding: 5px 0; color: #f4f8fa; font: 600 14px/1.65 var(--font-sans); font-variant-numeric: tabular-nums; white-space: normal; }
.formula-card p { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.formula-card p strong { color: #e7eef3; }
.formula-card.compact { margin-bottom: 14px; }

.plain-example {
  margin: 20px 0;
  padding: 16px 18px;
  border: 1px solid rgba(246, 185, 74, 0.28);
  border-radius: 8px;
  background: rgba(246, 185, 74, 0.065);
  color: #d8cba9;
}

.plain-example b { color: var(--amber); font-size: 12px; letter-spacing: 0.08em; }
.plain-example p { margin: 5px 0 0; font-size: 13px; line-height: 1.75; }
.boundary { margin-top: 18px; padding-top: 14px; border-top: 1px dashed #2c4054; color: #94a5b5 !important; font-size: 13px; }

.cost-methods,
.definition-grid,
.db-map { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.cost-methods article, .definition-grid article { padding: 18px; }
.cost-methods article > span { color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; }
.cost-methods h3, .definition-grid h3 { margin: 10px 0 8px; font-size: 17px; }
.cost-methods code, .definition-grid code { display: block; margin-bottom: 8px; color: #d9e8e5; font: 600 12px/1.6 var(--font-sans); }
.cost-methods p, .definition-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.72; }
.definition-grid article:last-child:nth-child(odd) { grid-column: 1 / -1; }

.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.two-column h3 { margin: 0 0 8px; font-size: 20px; }
.two-column h3:not(:first-child) { margin-top: 22px; }
.two-column p { color: #b6c3ce; line-height: 1.78; }

.triple-review { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 18px; }
.triple-review article { position: relative; min-height: 130px; padding: 18px; }
.triple-review article:not(:last-child)::after { content: "→"; position: absolute; right: -18px; top: 43px; z-index: 2; color: var(--green); }
.triple-review b { color: var(--green); }
.triple-review p { margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

.limit-list { display: grid; gap: 0; }
.limit-list p { margin: 0; padding: 16px 0; border-top: 1px solid var(--line); color: #aebdca; line-height: 1.75; }
.limit-list p:last-child { border-bottom: 1px solid var(--line); }
.limit-list b { color: white; }
.docs-final { border-bottom: 0; }
.docs-cta { margin-top: 25px; display: inline-flex; gap: 36px; align-items: center; color: var(--green); font-weight: 650; }
.docs-cta span { font-size: 20px; }

.architecture-flow { padding: 22px; border: 1px solid #29445a; border-radius: 12px; background: linear-gradient(145deg, rgba(15, 32, 50, 0.95), rgba(9, 23, 38, 0.95)); }
.arch-node { max-width: 420px; margin: auto; padding: 15px; text-align: center; border: 1px solid var(--line); border-radius: 8px; background: #0d1d2d; }
.arch-node b, .arch-node small { display: block; }
.arch-node b { font-size: 15px; }
.arch-node small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.arch-node.accent { border-color: #2a6e5b; }
.arch-node.core { border-color: var(--green); box-shadow: 0 0 0 4px rgba(67, 214, 163, 0.06); }
.architecture-flow > i { display: block; padding: 6px; color: #74879a; font-size: 10px; font-style: normal; text-align: center; }
.arch-branches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 20px; }
.arch-branches div { position: relative; padding: 13px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255, 255, 255, 0.02); }
.arch-branches div::before { content: ""; position: absolute; top: -21px; left: 50%; width: 1px; height: 20px; background: #30495e; }
.arch-branches b, .arch-branches small { display: block; }
.arch-branches b { font-size: 12px; }
.arch-branches small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.architecture-principles { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 14px; }
.architecture-principles p { margin: 0; padding: 14px 16px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.architecture-principles b { color: #e6edf3; }

.request-timeline { margin: 0; padding: 0; list-style: none; }
.request-timeline li { position: relative; display: grid; grid-template-columns: 54px 1fr; gap: 20px; padding-bottom: 26px; }
.request-timeline li:not(:last-child)::before { content: ""; position: absolute; left: 26px; top: 44px; bottom: 3px; width: 1px; background: #2d4b5d; }
.request-timeline li > span { width: 54px; height: 36px; display: grid; place-items: center; border: 1px solid #2d6657; border-radius: 6px; color: var(--green); font-size: 12px; font-weight: 700; }
.request-timeline h3 { margin: 3px 0 6px; font-size: 19px; }
.request-timeline p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }

.docs-table { min-width: 760px; }
.docs-table th { padding: 12px 14px; border-top: 0; border-bottom: 1px solid #38516a; background: #12263a; color: #d9e3eb; }
.docs-table td { padding: 14px; color: #b7c4cf; line-height: 1.65; vertical-align: top; }
.docs-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.018); }
.docs-table code, .docs-main code { color: #cfe8e0; font-family: var(--font-sans); }
.api-table th:first-child, .api-table td:first-child { width: 85px; color: var(--green); font-weight: 650; }

.db-map { grid-template-columns: repeat(3, 1fr); }
.db-map article { padding: 15px; }
.db-map b { color: var(--green); font-size: 13px; }
.db-map p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.clean-list { margin: 0; padding: 0; list-style: none; }
.clean-list li { position: relative; padding: 8px 0 8px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.65; }
.clean-list li::before { content: ""; position: absolute; left: 1px; top: 18px; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.deployment-strip { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 12px; align-items: center; margin: 26px 0; }
.deployment-strip div { min-height: 74px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; text-align: center; }
.deployment-strip b, .deployment-strip small { display: block; }
.deployment-strip b { font-size: 13px; }
.deployment-strip small { margin-top: 4px; color: var(--muted); font-size: 10px; }

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas: "eyebrow" "title" "description" "search" "proof";
    padding-top: 40px;
  }

  .hero h1 { margin-bottom: 12px; }
  .search-card { max-width: none; margin-top: 24px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .method-title { grid-template-columns: 1fr; gap: 10px; }
  .skill-grid { grid-template-columns: repeat(3, 1fr); }
  .formula-flow { grid-template-columns: repeat(5, 1fr); }
  .formula-flow i { display: none; }
  .docs-section { grid-template-columns: 145px minmax(0, 1fr); gap: 34px; }
  .db-map { grid-template-columns: 1fr 1fr; }
  .arch-branches { grid-template-columns: 1fr 1fr; }
  .arch-branches div::before { display: none; }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 28px, 1180px); }
  .nav { width: calc(100% - 28px); height: 58px; }
  .nav { gap: 18px; }
  .nav nav { min-width: 0; gap: 14px; overflow-x: auto; font-size: 13px; scrollbar-width: none; }
  .nav nav::-webkit-scrollbar { display: none; }
  .nav nav a { white-space: nowrap; }
  .nav nav a:nth-child(5) { display: none; }
  .nav nav button { padding: 5px 8px; font-size: 12px; }
  .hero { padding-top: 30px; }
  .hero h1 { font-size: 43px; }
  .hero > p { font-size: 15px; line-height: 1.65; }
  .search-card { margin-top: 18px; padding: 16px; }
  .proof-grid { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 22px; }
  .proof-grid div { min-height: 64px; padding: 12px 13px; }
  .proof-grid b { font-size: 26px; }
  .dashboard-grid { padding: 24px 0; }
  .panel { padding: 17px; }
  .report-row { grid-template-columns: 1fr 1fr auto; }
  .report-row time, .report-row .muted { display: none; }
  .method { padding: 24px 0 42px; }
  .method-title h2 { font-size: 31px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps > div { padding: 15px; }
  .task-shell { padding: 38px 0 56px; }
  .skill-grid { grid-template-columns: 1fr 1fr; }
  .skill { min-height: 54px; padding: 9px 10px; font-size: 13px; }
  .report-shell { padding-top: 30px; }
  .report-hero { gap: 18px; }
  .verdict-grid { grid-template-columns: 1fr 1fr; }
  .verdict.primary { grid-column: 1 / -1; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .prob-grid { grid-template-columns: repeat(3, 1fr); }
  .duel { grid-template-columns: 1fr; }
  .report-section { grid-template-columns: 1fr; padding: 28px 0; }
  .section-index { margin-bottom: 5px; }
  .report-section h2 { font-size: 27px; }
  .chart-pair { grid-template-columns: 1fr; }
  .chart { height: 310px; }
  .calibration-shell { padding: 38px 0 52px; }
  .calibration-shell h1 { font-size: 42px; }
  .docs-shell { padding-top: 30px; }
  .docs-hero { min-height: 380px; padding-top: 34px; }
  .docs-hero h1 { font-size: 48px; }
  .docs-hero > p:not(.docs-number) { font-size: 15px; }
  .docs-section { grid-template-columns: 1fr; gap: 20px; padding: 38px 0; }
  .docs-side { display: flex; gap: 10px; align-items: baseline; }
  .docs-side h2 { margin: 0; }
  .formula-flow { grid-template-columns: 1fr 1fr; }
  .cost-methods, .definition-grid, .two-column, .architecture-principles { grid-template-columns: 1fr; }
  .definition-grid article:last-child:nth-child(odd) { grid-column: auto; }
  .triple-review { grid-template-columns: 1fr; }
  .triple-review article:not(:last-child)::after { content: "↓"; right: 18px; top: auto; bottom: -20px; }
  .db-map { grid-template-columns: 1fr 1fr; }
  .deployment-strip { grid-template-columns: 1fr 1fr; }
  .deployment-strip i { display: none; }
}

@media (max-width: 520px) {
  .search-row { display: grid; }
  .search-row button { width: 100%; justify-content: space-between; }
  .hero h1 { font-size: 38px; }
  .proof-grid, .steps { grid-template-columns: 1fr; }
  .report-hero { grid-template-columns: 1fr; }
  .price-block { text-align: left; }
  .verdict-grid, .metric-grid, .prob-grid, .analysis-grid { grid-template-columns: 1fr; }
  .verdict.primary { grid-column: auto; }
  .nav nav a:first-child, .nav nav a:nth-child(4) { display: none; }
  .brand > span:last-child { display: none; }
  .docs-hero h1 { font-size: 40px; }
  .docs-number { font-size: 120px; }
  .formula-flow, .db-map, .arch-branches, .deployment-strip { grid-template-columns: 1fr; }
  .export-actions a { flex: 1; justify-content: center; }
}
