@charset "UTF-8";

:root {
  --bg: #f3f2ec;
  --paper: #fbfaf6;
  --white: #ffffff;
  --ink: #14211c;
  --ink-soft: #26372f;
  --muted: #69746d;
  --line: #d8ddd5;
  --line-dark: #b9c2b8;
  --accent: #b9f34a;
  --accent-soft: #edfacf;
  --accent-dark: #294d12;
  --orange: #e87538;
  --orange-soft: #fff0e6;
  --red: #c94f4f;
  --red-soft: #fff0ee;
  --blue: #526fd4;
  --shadow: 0 24px 70px rgba(24, 42, 33, 0.08);
  --radius: 18px;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --sans: Inter, "SF Pro Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 4%, rgba(185, 243, 74, 0.13), transparent 25rem),
    var(--bg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: 0.66; }
svg { display: block; }
[hidden] { display: none !important; }
::selection { color: var(--ink); background: var(--accent); }
:focus-visible { outline: 3px solid rgba(82, 111, 212, 0.45); outline-offset: 3px; }

.page-width { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }
.topbar {
  width: min(1376px, calc(100% - 48px));
  height: 86px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 850; letter-spacing: -0.045em; font-size: 23px; }
.brand > span > span { font-weight: 450; }
.brand-mark { width: 34px; height: 34px; color: var(--ink); }
.main-nav { display: flex; align-items: center; gap: 34px; font-size: 13px; font-weight: 600; }
.main-nav a { position: relative; color: var(--muted); transition: color 180ms ease; }
.main-nav a:hover { color: var(--ink); }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--ink); transition: right 180ms ease; }
.main-nav a:hover::after { right: 0; }
.network-badge { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: #5d9e30; box-shadow: 0 0 0 4px rgba(93, 158, 48, 0.12); }

.hero { min-height: 570px; display: grid; grid-template-columns: 1.08fr 0.92fr; align-items: center; gap: 88px; padding-block: 74px 105px; }
.eyebrow { display: flex; align-items: center; gap: 20px; margin: 0 0 27px; font: 700 10px/1 var(--mono); letter-spacing: 0.13em; }
.eyebrow span:first-child { display: flex; align-items: center; gap: 10px; }
.eyebrow span:first-child::before { content: ""; width: 24px; height: 2px; background: var(--ink); }
.eyebrow span:last-child { color: var(--muted); font-weight: 500; }
.hero h1 { margin: 0; font-size: clamp(54px, 6.1vw, 82px); line-height: 1.07; letter-spacing: -0.075em; font-weight: 760; }
.hero h1 > span { position: relative; color: var(--ink-soft); }
.hero h1 > span::after { content: ""; position: absolute; width: 0.18em; height: 0.18em; right: -0.23em; bottom: 0.11em; border-radius: 50%; background: var(--accent); border: 2px solid var(--ink); }
.hero-intro { max-width: 500px; margin: 28px 0 25px; color: var(--muted); font-size: 16px; line-height: 1.85; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 9px; }
.hero-tags span { padding: 7px 11px; border: 1px solid var(--line-dark); border-radius: 99px; color: var(--ink-soft); background: rgba(255,255,255,0.28); font-size: 11px; }

.hero-console { position: relative; overflow: hidden; min-height: 404px; padding: 20px; border-radius: 24px; color: #eff5ed; background: #13221b; box-shadow: 0 35px 80px rgba(18, 34, 27, 0.18); transform: rotate(1.5deg); }
.hero-console::before { content: ""; position: absolute; inset: 0; opacity: 0.08; background-image: linear-gradient(rgba(255,255,255,0.8) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.8) 1px, transparent 1px); background-size: 28px 28px; }
.console-topline { position: relative; z-index: 2; display: flex; justify-content: space-between; color: #a4b2a8; font: 600 9px/1 var(--mono); letter-spacing: 0.12em; }
.radar-wrap { position: relative; width: 264px; height: 264px; margin: 13px auto 4px; }
.radar-ring { position: absolute; border: 1px solid rgba(208, 231, 212, 0.22); border-radius: 50%; }
.ring-one { inset: 10px; }
.ring-two { inset: 50px; }
.ring-three { inset: 91px; }
.radar-axis { position: absolute; background: rgba(208, 231, 212, 0.13); }
.axis-x { left: 10px; right: 10px; top: 50%; height: 1px; }
.axis-y { top: 10px; bottom: 10px; left: 50%; width: 1px; }
.radar-sweep { position: absolute; inset: 10px; border-radius: 50%; background: conic-gradient(from 15deg, transparent 0deg, transparent 310deg, rgba(185,243,74,0.2) 350deg, rgba(185,243,74,0.5) 360deg); animation: sweep 8s linear infinite; }
.radar-sweep::after { content: ""; position: absolute; inset: 1px; border-radius: 50%; background: #13221b; clip-path: polygon(50% 50%, 100% 0, 100% 100%); opacity: 0.82; }
.radar-core { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 65px; height: 65px; display: grid; place-content: center; text-align: center; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent); background: #13221b; box-shadow: 0 0 30px rgba(185,243,74,0.1); }
.radar-core span { font: 800 15px/1.2 var(--mono); letter-spacing: 0.08em; }
.radar-core small { margin-top: 4px; color: #a4b2a8; font: 600 8px/1 var(--mono); letter-spacing: 0.15em; }
.radar-node { position: absolute; z-index: 3; width: 9px; height: 9px; border: 2px solid #13221b; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(185,243,74,0.2); }
.node-a { top: 51px; right: 57px; }
.node-mx { bottom: 61px; left: 39px; }
.node-ns { right: 27px; bottom: 93px; }
.radar-label { position: absolute; z-index: 3; padding: 4px 6px; border: 1px solid rgba(208,231,212,0.18); border-radius: 4px; color: #d8e5d9; background: rgba(19,34,27,0.88); font: 500 8px/1 var(--mono); }
.label-a { top: 35px; right: 8px; }
.label-mx { bottom: 40px; left: 5px; }
.label-ns { right: 0; bottom: 72px; }
.console-readout { position: relative; z-index: 2; display: grid; gap: 5px; }
.console-readout > div { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; min-height: 30px; padding: 0 10px; border: 1px solid rgba(208,231,212,0.12); border-radius: 6px; background: rgba(255,255,255,0.025); font: 500 10px/1 var(--mono); }
.console-readout span { color: var(--accent); font-weight: 800; }
.console-readout strong { overflow: hidden; color: #d9e5da; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.console-readout small { color: #788b7c; font-size: 8px; }
@keyframes sweep { to { transform: rotate(360deg); } }

.tool-shell { position: relative; z-index: 5; margin-top: -55px; border: 1px solid var(--line-dark); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.tool-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.tool-tab { position: relative; min-height: 94px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 21px 25px; border: 0; background: transparent; text-align: left; transition: background 180ms ease; }
.tool-tab:first-child { border-right: 1px solid var(--line); border-radius: var(--radius) 0 0 0; }
.tool-tab:last-child { border-radius: 0 var(--radius) 0 0; }
.tool-tab::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: -1px; height: 3px; border-radius: 3px; background: var(--ink); transform: scaleX(0); transition: transform 180ms ease; }
.tool-tab.active { background: var(--white); }
.tool-tab.active::after { transform: scaleX(1); }
.tool-tab:hover:not(.active) { background: rgba(20,33,28,0.025); }
.tab-number { align-self: start; padding-top: 4px; color: var(--muted); font: 600 10px/1 var(--mono); }
.tool-tab strong { display: block; margin-bottom: 7px; font-size: 16px; letter-spacing: -0.02em; }
.tool-tab small { display: block; color: var(--muted); font-size: 12px; line-height: 1.4; }
.tool-tab > svg { width: 23px; height: 23px; color: var(--muted); transition: transform 180ms ease; }
.tool-tab.active > svg { color: var(--ink); transform: translateX(3px); }
.query-panels { padding: 29px 30px 27px; }
.field-label { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; font-size: 11px; font-weight: 750; letter-spacing: 0.03em; }
.field-label span { color: var(--muted); font-size: 10px; font-weight: 500; }
.query-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.domain-input-wrap { position: relative; }
.domain-input-wrap > svg { position: absolute; left: 18px; top: 50%; width: 21px; height: 21px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.domain-input-wrap input, .selector-group input { width: 100%; height: 58px; border: 1px solid var(--line-dark); border-radius: 10px; color: var(--ink); background: var(--white); transition: border-color 180ms ease, box-shadow 180ms ease; }
.domain-input-wrap input { padding: 0 18px 0 50px; font: 500 16px/1 var(--mono); }
.domain-input-wrap input::placeholder, .selector-group input::placeholder { color: #939c95; font-family: var(--sans); font-size: 14px; }
.domain-input-wrap input:focus, .selector-group input:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(20,33,28,0.07); }
.primary-button { min-width: 158px; height: 58px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 0 22px; border: 1px solid var(--ink); border-radius: 10px; color: var(--white); background: var(--ink); font-size: 13px; font-weight: 700; transition: transform 160ms ease, background 160ms ease, color 160ms ease; }
.primary-button svg { width: 17px; height: 17px; }
.primary-button:hover:not(:disabled) { color: var(--ink); background: var(--accent); transform: translateY(-1px); }
.form-meta { min-height: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 13px; color: var(--muted); font-size: 11px; }
.example-list { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.example-list button { padding: 2px 5px; border: 0; border-bottom: 1px solid var(--line-dark); color: var(--ink-soft); background: none; font: 500 10px/1.4 var(--mono); }
.example-list button:hover { border-color: var(--ink); background: var(--accent-soft); }
.email-fields { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 14px; }
.selector-group input { padding: 0 16px; font: 500 13px/1 var(--mono); }
.email-action-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 16px; }
.email-action-row p { max-width: 650px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.email-action-row .primary-button { min-width: 180px; }

.results { min-height: 390px; padding-block: 76px 60px; }
.empty-state { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 90px; padding: 15px 8px; }
.section-kicker { margin: 0 0 14px; color: var(--muted); font: 650 10px/1 var(--mono); letter-spacing: 0.13em; }
.empty-heading h2 { max-width: 400px; margin: 0 0 16px; font-size: 30px; line-height: 1.3; letter-spacing: -0.045em; }
.empty-heading > p:last-child { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.empty-features { display: grid; }
.empty-features article { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.empty-features article:first-child { padding-top: 0; }
.empty-features article:last-child { border-bottom: 0; }
.feature-index { padding-top: 3px; color: var(--muted); font: 600 10px/1 var(--mono); }
.empty-features h3 { margin: 0 0 6px; font-size: 14px; }
.empty-features p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }

.loading-state { min-height: 280px; display: grid; place-content: center; justify-items: center; text-align: center; }
.loader-radar { position: relative; width: 66px; height: 66px; margin-bottom: 22px; border: 1px solid var(--line-dark); border-radius: 50%; }
.loader-radar::before, .loader-radar::after { content: ""; position: absolute; border-radius: 50%; }
.loader-radar::before { inset: 10px; border: 1px solid var(--line-dark); }
.loader-radar::after { inset: -1px; border: 2px solid transparent; border-top-color: var(--ink); animation: spin 1s linear infinite; }
.loader-radar span { position: absolute; width: 8px; height: 8px; left: 50%; top: 50%; transform: translate(-50%,-50%); border-radius: 50%; background: var(--accent); border: 1px solid var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-state h2 { margin: 0 0 9px; font-size: 22px; letter-spacing: -0.03em; }
.loading-state p { margin: 0; color: var(--muted); font-size: 12px; }
.loading-meta { margin-top: 18px; padding: 7px 10px; border-radius: 5px; color: var(--muted); background: rgba(20,33,28,0.04); font: 500 10px/1 var(--mono); }

.error-state { max-width: 680px; margin: 30px auto; padding: 32px; border: 1px solid #e5b7ac; border-radius: var(--radius); background: var(--red-soft); text-align: center; }
.error-state .error-code { display: inline-block; margin-bottom: 14px; color: var(--red); font: 700 10px/1 var(--mono); letter-spacing: 0.12em; }
.error-state h2 { margin: 0 0 10px; font-size: 24px; }
.error-state p { margin: 0; color: #785c55; font-size: 13px; line-height: 1.7; }
.error-state button { margin-top: 20px; }

.result-header { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 25px; }
.result-overline { display: flex; align-items: center; gap: 9px; margin: 0 0 10px; color: var(--muted); font: 650 10px/1 var(--mono); letter-spacing: 0.1em; }
.result-overline::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #5d9e30; }
.result-header h2 { max-width: 800px; margin: 0; overflow-wrap: anywhere; font: 650 clamp(25px, 3.2vw, 38px)/1.2 var(--mono); letter-spacing: -0.045em; }
.result-subtitle { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.result-actions { display: flex; flex: 0 0 auto; gap: 8px; }
.secondary-button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 13px; border: 1px solid var(--line-dark); border-radius: 8px; color: var(--ink-soft); background: var(--paper); font-size: 11px; font-weight: 650; transition: background 160ms ease, border-color 160ms ease; }
.secondary-button:hover { border-color: var(--ink); background: var(--white); }
.secondary-button svg { width: 14px; height: 14px; }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 37px; }
.summary-card { position: relative; overflow: hidden; min-height: 117px; padding: 19px 20px; border: 1px solid var(--line); border-radius: 12px; background: rgba(251,250,246,0.74); }
.summary-card::after { content: ""; position: absolute; top: 16px; right: 16px; width: 5px; height: 5px; border-radius: 50%; background: var(--line-dark); }
.summary-card.highlight { border-color: var(--ink); color: var(--white); background: var(--ink); }
.summary-card.highlight::after { background: var(--accent); }
.summary-card span { display: block; margin-bottom: 13px; color: var(--muted); font-size: 10px; font-weight: 650; }
.summary-card.highlight span { color: #a7b6aa; }
.summary-card strong { font: 650 27px/1 var(--mono); letter-spacing: -0.05em; }
.summary-card strong small { margin-left: 4px; font-size: 12px; font-weight: 500; }
.summary-card p { margin: 8px 0 0; color: var(--muted); font-size: 10px; }
.summary-card.highlight p { color: #a7b6aa; }
.records-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
.records-heading h3 { margin: 0; font-size: 18px; letter-spacing: -0.025em; }
.records-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.records-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.record-card { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.record-card.wide { grid-column: 1 / -1; }
.record-card.status-empty { background: rgba(251,250,246,0.42); }
.record-card.status-error { border-color: #e5c2b8; }
.record-card-top { min-height: 69px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 17px; }
.type-info { min-width: 0; display: flex; align-items: center; gap: 13px; }
.type-badge { min-width: 61px; height: 32px; display: inline-grid; place-items: center; padding: 0 8px; border: 1px solid var(--line-dark); border-radius: 6px; color: var(--ink); background: var(--white); font: 750 12px/1 var(--mono); }
.status-found .type-badge { border-color: var(--ink); color: var(--ink); background: var(--accent); }
.type-description { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.record-status { flex: 0 0 auto; padding: 5px 8px; border-radius: 99px; color: var(--muted); background: rgba(20,33,28,0.05); font-size: 9px; font-weight: 700; }
.status-found .record-status { color: var(--accent-dark); background: var(--accent-soft); }
.status-error .record-status { color: var(--red); background: var(--red-soft); }
.record-list { border-top: 1px solid var(--line); }
.record-item { padding: 14px 17px 16px; border-bottom: 1px solid var(--line); }
.record-item:last-child { border-bottom: 0; }
.record-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.record-name { overflow: hidden; color: var(--muted); font: 500 10px/1.3 var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.ttl-pill { flex: 0 0 auto; color: var(--muted); font: 500 9px/1 var(--mono); }
.record-data { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; color: var(--ink-soft); font: 500 12px/1.65 var(--mono); }
.empty-record { padding: 0 17px 16px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.empty-record span { margin-right: 5px; font-family: var(--mono); }
.nxdomain-banner { margin-bottom: 20px; padding: 14px 17px; border: 1px solid #e5c2b8; border-radius: 10px; color: #795249; background: var(--red-soft); font-size: 12px; line-height: 1.65; }

.email-summary { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; margin-bottom: 18px; padding: 27px 30px; border-radius: 16px; color: var(--white); background: var(--ink); }
.email-summary::after { content: ""; position: absolute; width: 280px; height: 280px; right: -90px; top: -120px; border: 1px solid rgba(185,243,74,0.13); border-radius: 50%; box-shadow: 0 0 0 45px rgba(185,243,74,0.03), 0 0 0 90px rgba(185,243,74,0.025); pointer-events: none; }
.score-ring { --score: 0; --score-color: var(--accent); position: relative; width: 116px; height: 116px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: conic-gradient(var(--score-color) calc(var(--score) * 1%), rgba(255,255,255,0.1) 0); }
.score-ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--ink); }
.score-inner { position: relative; z-index: 1; text-align: center; }
.score-inner strong { font: 700 34px/1 var(--mono); letter-spacing: -0.07em; }
.score-inner small { display: block; margin-top: 6px; color: #a7b6aa; font: 600 9px/1 var(--mono); letter-spacing: 0.1em; }
.health-overview { position: relative; z-index: 1; }
.health-overview .grade-line { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.grade-badge { padding: 5px 8px; border-radius: 5px; color: var(--ink); background: var(--accent); font: 800 10px/1 var(--mono); }
.health-overview h3 { margin: 0; font-size: 22px; letter-spacing: -0.035em; }
.health-overview p { max-width: 560px; margin: 0; color: #b3c0b5; font-size: 12px; line-height: 1.75; }
.health-meta { position: relative; z-index: 1; display: grid; gap: 8px; padding-left: 25px; border-left: 1px solid rgba(255,255,255,0.13); color: #a7b6aa; font: 500 9px/1.4 var(--mono); white-space: nowrap; }
.health-meta strong { color: #e6eee6; font-weight: 600; }
.health-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.health-check { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); }
.health-check.status-fail { border-color: #e2b9b0; }
.health-check.status-warn { border-color: #e6c8a9; }
.check-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 19px 0; }
.check-label { display: flex; align-items: center; gap: 9px; color: var(--muted); font: 700 10px/1 var(--mono); letter-spacing: 0.06em; }
.check-icon { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: var(--accent-dark); background: var(--accent-soft); font: 800 12px/1 var(--mono); }
.status-warn .check-icon { color: #96521f; background: var(--orange-soft); }
.status-fail .check-icon { color: var(--red); background: var(--red-soft); }
.status-pill { padding: 5px 8px; border-radius: 99px; color: var(--accent-dark); background: var(--accent-soft); font-size: 9px; font-weight: 750; }
.status-warn .status-pill { color: #96521f; background: var(--orange-soft); }
.status-fail .status-pill { color: var(--red); background: var(--red-soft); }
.check-content { padding: 16px 19px 19px; }
.check-content h3 { margin: 0 0 8px; font-size: 17px; letter-spacing: -0.025em; }
.check-content > p { min-height: 40px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.detail-list { display: grid; gap: 7px; margin: 15px 0 0; padding: 13px 0 0; border-top: 1px solid var(--line); list-style: none; }
.detail-list li { position: relative; padding-left: 12px; overflow-wrap: anywhere; color: var(--ink-soft); font: 500 10px/1.65 var(--mono); }
.detail-list li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 4px; height: 4px; border-radius: 50%; background: var(--line-dark); }
.raw-details { margin-top: 15px; border-top: 1px solid var(--line); }
.raw-details summary { padding-top: 13px; color: var(--muted); cursor: pointer; font-size: 10px; font-weight: 650; }
.raw-record { max-height: 190px; overflow: auto; margin: 10px 0 0; padding: 11px; border-radius: 7px; color: #d8e5d9; background: var(--ink-soft); white-space: pre-wrap; overflow-wrap: anywhere; font: 500 9px/1.65 var(--mono); }
.recommendations-panel { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 35px; margin-top: 18px; padding: 25px 27px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); }
.recommendations-panel h3 { margin: 0 0 8px; font-size: 17px; }
.recommendations-panel > div > p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.recommendation-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: advice; }
.recommendation-list li { display: grid; grid-template-columns: 23px 1fr; gap: 9px; color: var(--ink-soft); font-size: 11px; line-height: 1.65; counter-increment: advice; }
.recommendation-list li::before { content: counter(advice, decimal-leading-zero); padding-top: 3px; color: var(--muted); font: 600 9px/1 var(--mono); }
.report-note { margin: 15px 1px 0; color: var(--muted); font-size: 10px; line-height: 1.7; }

.principles { padding-block: 65px 85px; border-top: 1px solid var(--line); }
.principles-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 35px; }
.principles-heading h2 { margin: 0; font-size: 38px; line-height: 1.25; letter-spacing: -0.055em; }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.principle-grid article { padding: 30px 30px 32px 0; }
.principle-grid article + article { padding-left: 30px; border-left: 1px solid var(--line); }
.principle-icon { width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 24px; border: 1px solid var(--line-dark); border-radius: 10px; background: var(--paper); }
.principle-icon svg { width: 21px; height: 21px; }
.principle-grid h3 { margin: 0 0 11px; font-size: 16px; }
.principle-grid p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.protocol-note { margin: 22px 0 0; padding-left: 15px; border-left: 2px solid var(--line-dark); color: var(--muted); font-size: 10px; line-height: 1.8; }
.protocol-note strong { color: var(--ink-soft); }
.footer { min-height: 130px; display: flex; align-items: center; justify-content: space-between; gap: 25px; border-top: 1px solid var(--line); }
.footer-brand { flex-direction: column; align-items: start; gap: 5px; font-size: 19px; }
.footer-brand small { color: var(--muted); font: 500 8px/1 var(--mono); letter-spacing: 0.12em; }
.footer > p { color: var(--muted); font: 500 10px/1 var(--mono); }
.footer > p span { margin: 0 8px; color: var(--line-dark); }
.footer > a { font-size: 11px; font-weight: 650; }
.footer > a span { display: inline-block; margin-left: 8px; transition: transform 160ms ease; }
.footer > a:hover span { transform: translateY(-3px); }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 28px; max-width: calc(100% - 32px); padding: 12px 18px; border: 1px solid #33473c; border-radius: 9px; color: var(--white); background: var(--ink); box-shadow: 0 15px 40px rgba(20,33,28,0.22); font-size: 12px; opacity: 0; transform: translate(-50%, 15px); pointer-events: none; transition: opacity 180ms ease, transform 180ms ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 980px) {
  .hero { gap: 35px; min-height: 520px; }
  .hero-console { min-height: 370px; }
  .radar-wrap { transform: scale(0.88); margin-block: -2px -12px; }
  .main-nav { gap: 20px; }
  .network-badge { display: none; }
  .empty-state { gap: 45px; }
  .email-summary { grid-template-columns: auto 1fr; }
  .health-meta { grid-column: 1 / -1; display: flex; gap: 20px; padding: 16px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,0.13); }
}

@media (max-width: 760px) {
  .page-width { width: min(100% - 32px, 620px); }
  .topbar { width: calc(100% - 32px); height: 72px; }
  .main-nav { display: none; }
  .brand { font-size: 21px; }
  .brand-mark { width: 30px; height: 30px; }
  .hero { display: block; min-height: auto; padding-block: 55px 95px; }
  .hero h1 { font-size: clamp(49px, 15vw, 68px); }
  .hero-intro { font-size: 14px; }
  .hero-console { display: none; }
  .tool-shell { margin-top: -48px; }
  .tool-tab { min-height: 82px; grid-template-columns: auto 1fr; padding: 17px 15px; gap: 9px; }
  .tool-tab > svg { display: none; }
  .tool-tab strong { font-size: 14px; }
  .tool-tab small { display: none; }
  .tool-tab::after { left: 14px; right: 14px; }
  .query-panels { padding: 21px 17px; }
  .query-row { grid-template-columns: 1fr; }
  .primary-button { width: 100%; }
  .form-meta { display: block; }
  .example-list { margin-top: 10px; }
  .email-fields { grid-template-columns: 1fr; }
  .email-action-row { display: block; }
  .email-action-row .primary-button { margin-top: 17px; }
  .results { padding-block: 55px 45px; }
  .empty-state { display: block; padding: 0; }
  .empty-heading { margin-bottom: 35px; }
  .result-header { display: block; }
  .result-actions { margin-top: 20px; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .records-heading { display: block; }
  .records-heading p { margin-top: 7px; line-height: 1.5; }
  .records-grid, .health-grid { grid-template-columns: 1fr; }
  .record-card.wide { grid-column: auto; }
  .email-summary { grid-template-columns: 1fr; justify-items: start; padding: 25px 22px; }
  .health-meta { grid-column: auto; display: grid; gap: 7px; }
  .score-ring { width: 104px; height: 104px; }
  .recommendations-panel { grid-template-columns: 1fr; gap: 20px; padding: 22px; }
  .principles { padding-block: 50px 60px; }
  .principles-heading h2 { font-size: 32px; }
  .principle-grid { grid-template-columns: 1fr; }
  .principle-grid article { padding: 25px 0; }
  .principle-grid article + article { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .principle-icon { margin-bottom: 16px; }
  .footer { min-height: 160px; flex-wrap: wrap; padding-block: 28px; }
  .footer > p { order: 3; width: 100%; margin: 0; }
}

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