:root {
  color-scheme: light;
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Inter, system-ui, sans-serif;
  color: #17231d;
  background: #f4f7f5;
  font-synthesis: none;
  --ink: #17231d;
  --muted: #6e7b74;
  --line: #dfe6e1;
  --green: #0f7a4f;
  --green-dark: #075f3c;
  --green-soft: #e7f5ed;
  --blue: #256eaf;
  --violet: #7456c7;
  --amber: #b76a14;
  --panel: #fff;
  --shadow: 0 18px 50px rgba(25, 55, 38, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: #f4f7f5; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; }
a { color: inherit; text-decoration: none; }
svg { display: block; width: 1.25em; height: 1.25em; }

.app-shell { min-height: 100vh; overflow: hidden; }
.topbar { height: 72px; display: flex; align-items: center; padding: 0 max(28px, calc((100vw - 1240px) / 2)); background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.brand > span { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 10px; color: white; background: var(--green); }
.brand svg { width: 23px; height: 23px; fill: currentColor; }
.brand strong { font-size: 20px; letter-spacing: -.06em; }
.brand em { margin-left: 1px; padding: 4px 6px; border-radius: 5px; background: #edf2ee; color: #758078; font-size: 9px; letter-spacing: .12em; font-style: normal; font-weight: 800; }
.topbar nav { display: flex; gap: 38px; margin: 0 auto; color: #55625b; font-size: 14px; font-weight: 650; }
.topbar nav a { position: relative; padding: 26px 0; }
.topbar nav a:hover { color: var(--green); }
.topbar nav a:hover::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--green); }
.system-state { display: flex; align-items: center; gap: 8px; padding: 8px 11px; background: #f5f8f6; border: 1px solid #e5eae6; border-radius: 9px; }
.system-state span { font-size: 12px; font-weight: 750; color: #435149; }
.system-state i, .live-dot i { display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 50%; background: #1fac70; box-shadow: 0 0 0 4px rgba(31,172,112,.1); }
.system-state small { padding-left: 7px; border-left: 1px solid #dce4de; color: #89928d; font-size: 10px; }

main { max-width: 1240px; margin: 0 auto; padding: 0 28px 76px; }
.hero { min-height: 340px; display: flex; align-items: center; justify-content: space-between; position: relative; }
.hero::before { content: ""; position: absolute; width: 560px; height: 300px; right: -170px; top: 10px; background: radial-gradient(ellipse, rgba(18,146,92,.12), transparent 68%); pointer-events: none; }
.hero-copy { padding: 46px 0 42px; position: relative; z-index: 1; }
.eyebrow { color: #75817a; font-size: 11px; line-height: 1.3; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow > span { color: var(--green); }
.hero h1 { margin: 15px 0 18px; font-size: clamp(40px, 5vw, 62px); line-height: 1.1; letter-spacing: -.07em; font-weight: 780; }
.hero h1 em { color: var(--green); font-style: normal; }
.hero p { margin: 0; color: #66736c; font-size: 16px; line-height: 1.75; letter-spacing: -.02em; }
.hero-health { width: 318px; height: 142px; display: flex; align-items: center; gap: 24px; position: relative; z-index: 1; padding: 24px; border: 1px solid rgba(25,122,80,.12); border-radius: 22px; background: rgba(255,255,255,.72); box-shadow: 0 20px 60px rgba(38,79,56,.08); backdrop-filter: blur(8px); }
.health-ring { width: 82px; height: 82px; display: grid; place-items: center; flex: 0 0 auto; position: relative; border: 1px solid #cce7d8; border-radius: 50%; background: #edf9f2; color: var(--green); }
.health-ring::before, .health-ring::after { content: ""; position: absolute; border: 1px solid #d8ece0; border-radius: 50%; inset: 8px; }
.health-ring::after { inset: -7px; border-style: dashed; }
.health-ring svg { width: 32px; height: 32px; }
.health-ring i { width: 10px; height: 10px; position: absolute; right: 4px; bottom: 10px; border: 2px solid white; background: #23b270; border-radius: 50%; }
.hero-health > div:last-child { display: flex; flex-direction: column; gap: 3px; }
.hero-health span { font-size: 9px; font-weight: 850; letter-spacing: .17em; color: #8a958f; }
.hero-health strong { font-family: ui-monospace, SFMono-Regular, monospace; font-size: 27px; color: var(--green); letter-spacing: .03em; }
.hero-health small { font-size: 11px; color: #748078; white-space: nowrap; }

.snapshot { display: grid; grid-template-columns: repeat(3, 1fr) 1.1fr; margin-bottom: 24px; border: 1px solid #d9e2dc; border-radius: 16px; background: white; box-shadow: var(--shadow); overflow: hidden; }
.snapshot article { min-height: 118px; display: flex; align-items: center; gap: 16px; padding: 24px; position: relative; border-right: 1px solid #e5eae7; }
.snapshot article:last-child { border-right: 0; }
.kpi-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; font-family: ui-monospace, monospace; font-size: 13px; font-weight: 700; }
.kpi-icon--green { color: var(--green); background: var(--green-soft); }
.kpi-icon--blue { color: var(--blue); background: #e9f3fb; }
.kpi-icon--violet { color: var(--violet); background: #f0ecfb; }
.snapshot article > div { display: flex; flex-direction: column; }
.snapshot small { color: #849089; font-size: 10px; font-weight: 750; }
.snapshot strong { margin: 3px 0 0; font-size: 26px; line-height: 1.1; letter-spacing: -.04em; }
.snapshot strong em { margin-left: 3px; font-size: 12px; color: #6f7c74; font-style: normal; font-weight: 650; }
.snapshot p { margin: 5px 0 0; font-size: 11px; color: #8c958f; }
.snapshot-action { flex-direction: column; align-items: flex-start !important; justify-content: center; color: white; background: linear-gradient(135deg, #0a6843, #0c8051); }
.snapshot-action small { color: rgba(255,255,255,.65); }
.snapshot-action strong { font-family: ui-monospace, monospace; font-size: 18px; letter-spacing: -.02em; }
.snapshot-action button { display: flex; align-items: center; gap: 5px; margin-top: 10px; padding: 0; color: white; background: none; font-size: 12px; font-weight: 700; cursor: pointer; }

.panel { border: 1px solid #dce4df; border-radius: 16px; background: var(--panel); box-shadow: 0 10px 35px rgba(27,62,42,.045); }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.section-heading h2 { margin: 5px 0 0; font-size: 21px; letter-spacing: -.045em; }
.section-heading h3 { margin: 4px 0 0; font-size: 18px; letter-spacing: -.035em; }
.section-heading > div > p:not(.eyebrow) { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.section-heading.compact { align-items: center; }
.flow { padding: 26px 28px 29px; margin-bottom: 24px; }
.policy-note { padding: 7px 10px; border-radius: 7px; color: #68766e; background: #f2f5f3; font-size: 10px; font-weight: 700; }
.flow-steps { display: grid; grid-template-columns: 1fr 36px 1fr 36px 1fr; align-items: center; margin-top: 26px; }
.flow-steps article { display: grid; grid-template-columns: 23px 54px 1fr; align-items: center; gap: 13px; position: relative; }
.flow-steps article > span { align-self: flex-start; color: #a3aca7; font: 700 10px ui-monospace, monospace; }
.flow-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 15px; font-size: 12px; font-weight: 850; }
.flow-icon.same { color: var(--green); background: #e9f7ef; }
.flow-icon.adjacent { color: var(--blue); background: #eaf3fa; }
.flow-icon.waiting { color: var(--amber); background: #fbf2e7; }
.flow-steps small { color: #9aa39e; font: 750 8px ui-monospace, monospace; letter-spacing: .12em; }
.flow-steps h3 { margin: 3px 0 4px; font-size: 15px; letter-spacing: -.035em; }
.flow-steps p { margin: 0; color: #77827b; font-size: 10px; line-height: 1.5; }
.flow-arrow { color: #aeb8b2; display: grid; place-items: center; }

.request-grid { display: grid; grid-template-columns: 1.03fr .97fr; gap: 24px; margin-bottom: 24px; scroll-margin-top: 92px; }
.request-card, .response-card { min-height: 445px; padding: 27px 28px; }
.method { padding: 5px 8px; border-radius: 6px; color: var(--green); background: var(--green-soft); font: 800 10px ui-monospace, monospace; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 14px; margin-top: 24px; }
.form-grid > label > span, fieldset legend, .date-field span { display: block; margin-bottom: 7px; color: #546159; font-size: 11px; font-weight: 750; }
.form-grid label b { color: var(--green); font-size: 8px; }
input, select { width: 100%; height: 43px; padding: 0 12px; border: 1px solid #d7dfda; border-radius: 8px; outline: none; color: var(--ink); background: #fbfcfb; font-size: 12px; transition: .18s ease; }
input:focus, select:focus { border-color: #60a884; background: #fff; box-shadow: 0 0 0 3px rgba(22,126,81,.08); }
fieldset { display: flex; align-items: center; gap: 15px; margin: 0; padding: 0; border: 0; }
fieldset legend { width: 100%; }
.radio { display: flex; align-items: center; gap: 6px; color: #536057; font-size: 11px; cursor: pointer; }
.radio input { position: absolute; opacity: 0; pointer-events: none; }
.radio > span { width: 15px; height: 15px; display: grid; place-items: center; border: 1px solid #bdc8c1; border-radius: 50%; }
.radio input:checked + span { border: 4px solid var(--green); }
.auth-info { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; margin-top: 20px; padding: 12px; border-radius: 9px; color: #728077; background: #f4f7f5; }
.auth-info > svg { padding: 5px; width: 28px; height: 28px; color: var(--green); background: white; border-radius: 7px; }
.auth-info span { display: flex; flex-direction: column; gap: 2px; }
.auth-info strong { color: #465249; font-size: 10px; }
.auth-info small { font-size: 9px; }
.auth-info code { color: #69756d; font-size: 9px; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 9px; color: white; background: var(--green); box-shadow: 0 7px 16px rgba(15,122,79,.16); font-size: 12px; font-weight: 750; cursor: pointer; transition: transform .16s, background .16s; }
.primary-button:hover { background: var(--green-dark); transform: translateY(-1px); }
.primary-button:disabled { opacity: .7; cursor: wait; transform: none; }
.request-card .primary-button { width: 100%; margin-top: 18px; }
.response-card { background: #fbfcfb; }
.live-dot { color: #6c7a71; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.response-empty { height: 330px; display: grid; place-content: center; justify-items: center; color: #87918b; text-align: center; }
.empty-orbit { width: 74px; height: 74px; display: grid; place-items: center; position: relative; margin-bottom: 14px; border: 1px dashed #bdd3c6; border-radius: 50%; color: #79a58c; background: #f1f8f4; font: 700 16px ui-monospace, monospace; }
.empty-orbit::before { content: ""; position: absolute; width: 8px; height: 8px; top: 5px; right: 8px; border-radius: 50%; background: #66a685; }
.response-empty p { font-size: 12px; line-height: 1.7; }
.response-result { margin-top: 22px; }
.response-head { display: flex; justify-content: space-between; align-items: flex-start; }
.response-head h3 { margin: 10px 0 0; font-size: 17px; letter-spacing: -.035em; }
.icon-button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #dce3df; border-radius: 8px; color: #66736b; background: white; cursor: pointer; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 9px; font-weight: 750; white-space: nowrap; }
.status i { width: 6px; height: 6px; border-radius: 50%; }
.status--assigned { color: var(--green); }
.status--assigned i { background: #21ad70; }
.status--pending { color: var(--amber); }
.status--pending i { background: #de8b2a; }
.status--error { color: #be4949; }
.status--error i { background: #d85858; }
.result-path { display: flex; align-items: center; gap: 8px; margin: 18px 0 13px; padding: 10px 12px; border: 1px solid #e0e7e2; border-radius: 8px; background: white; font-size: 11px; font-weight: 700; }
.result-path svg { width: 12px; color: #9ca7a0; }
.result-path .route { margin-left: auto; }
pre { max-height: 200px; margin: 0; padding: 15px; overflow: auto; border-radius: 10px; color: #dbe8df; background: #1c2922; font: 10px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; }

.validation { margin-bottom: 24px; padding: 28px; scroll-margin-top: 92px; }
.validation-top { display: flex; justify-content: space-between; align-items: center; }
.run-button { min-width: 122px; }
.scenario-box { margin-top: 24px; overflow: hidden; border: 1px solid #dce7e0; border-radius: 13px; background: linear-gradient(135deg, #f8fbf9, #f0f7f3); }
.test-empty, .test-running { min-height: 188px; display: flex; align-items: center; gap: 33px; padding: 28px 48px; }
.test-illustration { width: 118px; height: 118px; display: grid; place-items: center; flex: 0 0 auto; position: relative; border: 1px solid #cfe5d8; border-radius: 50%; background: white; }
.test-illustration::before, .test-illustration::after { content: ""; position: absolute; inset: 16px; border: 1px dashed #c2dccd; border-radius: 50%; }
.test-illustration::after { inset: 31px; }
.test-illustration span { position: relative; z-index: 2; color: var(--green); font: 800 26px ui-monospace, monospace; }
.test-illustration i { --angle: calc(var(--i) * 30deg); width: 6px; height: 6px; position: absolute; left: calc(50% + cos(var(--angle)) * 51px); top: calc(50% + sin(var(--angle)) * 51px); margin: -3px; border-radius: 50%; background: #6fad8c; }
.test-empty h3, .test-running h3 { margin: 6px 0 8px; font-size: 21px; letter-spacing: -.045em; }
.test-empty p:last-child, .test-running p:last-child { max-width: 590px; margin: 0; color: #718078; font-size: 12px; line-height: 1.7; }
.test-running { position: relative; }
.radar { width: 104px; height: 104px; display: grid; place-items: center; flex: 0 0 auto; position: relative; border-radius: 50%; background: radial-gradient(circle, #fff 0 13%, transparent 14%), repeating-radial-gradient(circle, transparent 0 19px, #baddc9 20px); }
.radar::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 78%, rgba(22,150,91,.3)); animation: radar 1.4s linear infinite; }
.radar i { position: relative; z-index: 2; color: var(--green); font: 750 14px ui-monospace, monospace; }
.progress-track { height: 4px; position: absolute; left: 0; right: 0; bottom: 0; background: #dce9e1; }
.progress-track span { display: block; height: 100%; background: var(--green); transition: width .25s; }
@keyframes radar { to { transform: rotate(360deg); } }
.test-result { padding: 23px; }
.test-verdict { display: flex; align-items: center; gap: 15px; padding: 5px 4px 22px; }
.verdict-icon { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; }
.test-verdict--pass .verdict-icon { color: var(--green); background: #dff3e8; }
.test-verdict--fail .verdict-icon { color: #b83d3d; background: #fae4e4; }
.verdict-icon svg { width: 24px; height: 24px; }
.test-verdict h3 { margin: 4px 0; font-size: 19px; letter-spacing: -.04em; }
.test-verdict p:last-child { margin: 0; color: #77847c; font-size: 10px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border: 1px solid #dbe4de; border-radius: 11px; background: white; }
.metric-grid article { min-height: 82px; display: grid; grid-template-columns: 1fr auto; align-items: end; padding: 15px 17px; border-right: 1px solid #e2e8e4; }
.metric-grid article:last-child { border: 0; }
.metric-grid span { grid-column: 1 / -1; color: #75827a; font-size: 10px; }
.metric-grid strong { font: 750 24px ui-monospace, monospace; }
.metric-grid small { padding-bottom: 3px; color: #87938c; font-size: 9px; }
.metric-safe strong { color: var(--green); }
.repeat-block { margin-top: 25px; }
.passed-label, .lock-badge { display: flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 6px; color: var(--green); background: var(--green-soft); font: 800 9px ui-monospace, monospace; }
.passed-label svg, .lock-badge svg { width: 13px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 11px; white-space: nowrap; }
.repeat-block table { margin-top: 14px; }
th { padding: 10px 12px; color: #87938c; background: #f5f7f6; font-size: 9px; font-weight: 750; text-align: left; }
td { padding: 12px; border-bottom: 1px solid #ebefec; color: #59665e; }
tbody tr:last-child td { border-bottom: 0; }
.cell-pass { display: inline-flex; align-items: center; gap: 3px; color: var(--green); }
.cell-pass svg { width: 12px; }
.dot-pass { width: 6px; height: 6px; display: inline-block; margin-right: 5px; border-radius: 50%; background: #1ca86b; }

.integrity-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 24px; margin-bottom: 24px; }
.transaction-card, .adjacency-card { padding: 27px 28px; }
.transaction-flow { display: grid; grid-template-columns: repeat(7, auto); align-items: center; gap: 9px; margin-top: 29px; }
.transaction-flow > div { min-width: 112px; display: grid; grid-template-columns: 24px 1fr; gap: 1px 8px; align-items: center; }
.transaction-flow > div > span { grid-row: 1 / 3; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; color: var(--green); background: var(--green-soft); font: 750 9px ui-monospace, monospace; }
.transaction-flow strong { font-size: 11px; }
.transaction-flow small { color: #89948e; font: 8px ui-monospace, monospace; }
.transaction-flow > svg { width: 13px; color: #aab5ae; }
.code-rule { display: flex; align-items: center; gap: 10px; margin-top: 25px; padding: 12px; border-radius: 8px; background: #1d2923; }
.code-rule span { padding: 4px 6px; border-radius: 4px; color: #8bd6af; background: #2c3c34; font: 750 8px ui-monospace, monospace; }
.code-rule code { color: #d8e5dc; font-size: 9px; }
.adjacency-card .section-heading > span { color: #87938c; font-size: 9px; }
.adjacency-list { margin-top: 22px; }
.adjacency-list div { display: grid; grid-template-columns: 58px 1fr; padding: 9px 0; border-bottom: 1px solid #edf0ee; font-size: 10px; }
.adjacency-list strong { color: #435148; }
.adjacency-list span { color: #7a867f; }
.adjacency-card > p { margin: 13px 0 0; color: #929c96; font-size: 9px; }

.counter-panel { padding: 28px; margin-bottom: 24px; scroll-margin-top: 92px; }
.date-field.mini { display: flex; align-items: center; gap: 9px; }
.date-field.mini span { margin: 0; white-space: nowrap; }
.date-field.mini input { width: 132px; height: 34px; font-size: 10px; }
.region-capacity { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 23px; }
.region-capacity article { padding: 10px 12px; border: 1px solid #e1e7e3; border-radius: 8px; background: #fbfcfb; }
.region-capacity article > div { display: flex; justify-content: space-between; font-size: 10px; }
.region-capacity span { color: #7c8981; font: 700 9px ui-monospace, monospace; }
.capacity-bar { height: 3px; margin-top: 8px; overflow: hidden; border-radius: 3px; background: #e8edea; }
.capacity-bar i { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.reviewer-list { margin-top: 18px; border: 1px solid #e1e7e3; border-radius: 10px; overflow: hidden; }
.reviewer-row { min-width: 720px; display: grid; grid-template-columns: 1.7fr .7fr .7fr .5fr .8fr; align-items: center; min-height: 51px; padding: 0 15px; border-bottom: 1px solid #edf0ee; color: #5d6b62; font-size: 10px; }
.reviewer-row:last-child { border: 0; }
.reviewer-row > span:first-child { display: flex; align-items: center; gap: 9px; }
.reviewer-row > span > span { display: flex; flex-direction: column; gap: 1px; }
.reviewer-row strong { color: #344139; font-size: 10px; }
.reviewer-row small { color: #939d97; font-size: 8px; }
.reviewer-row b { color: var(--green); font-size: 12px; }
.reviewer-head { min-height: 34px; color: #87928c; background: #f5f7f6; font-size: 9px; font-weight: 750; }
.reviewer-head > span:first-child { display: block; }
.avatar { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; color: #317754; background: #e8f3ed; font-style: normal; font-size: 8px; }
.availability { width: 6px; height: 6px; display: inline-block; margin-right: 5px; border-radius: 50%; background: #1dab6e; }
.availability.full { background: #d38c37; }
.text-button { display: flex; align-items: center; gap: 5px; margin: 15px auto 0; padding: 4px; color: #607067; background: none; font-size: 10px; font-weight: 700; cursor: pointer; }
.text-button svg { width: 13px; }

.log-panel { padding: 28px; margin-bottom: 24px; scroll-margin-top: 92px; }
.filter-tabs { display: flex; padding: 3px; border-radius: 8px; background: #f0f3f1; }
.filter-tabs button { padding: 6px 10px; border-radius: 6px; color: #758079; background: transparent; font-size: 9px; font-weight: 700; cursor: pointer; }
.filter-tabs button.active { color: var(--green); background: white; box-shadow: 0 2px 7px rgba(27,55,39,.08); }
.log-table { max-height: 490px; margin-top: 20px; border: 1px solid #e3e8e5; border-radius: 9px; }
.log-table thead { position: sticky; top: 0; z-index: 1; }
.log-table code { color: #39483f; font-size: 9px; }
.log-table td:nth-child(4) strong, .log-table td:nth-child(4) small { display: block; }
.route { display: inline-flex; align-items: center; padding: 4px 7px; border-radius: 5px; font-size: 8px; font-weight: 750; }
.route--same { color: var(--green); background: #e8f6ee; }
.route--adjacent { color: var(--blue); background: #e9f2fa; }
.route--waiting { color: var(--amber); background: #fbf1e5; }

.reset-strip { display: flex; align-items: center; justify-content: space-between; padding: 17px 20px; border: 1px dashed #ccd8d1; border-radius: 12px; background: rgba(255,255,255,.55); }
.reset-strip > div { display: flex; align-items: center; gap: 11px; }
.reset-strip > div > span { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 8px; color: #718078; background: white; }
.reset-strip p { display: flex; flex-direction: column; gap: 3px; margin: 0; }
.reset-strip strong { font-size: 11px; }
.reset-strip small { color: #859189; font-size: 9px; }
.secondary-button { height: 34px; color: #59675e; background: white; border: 1px solid #d7dfda; box-shadow: none; font-size: 10px; }
.secondary-button:hover { color: #ad4747; border-color: #e5bcbc; }

footer { max-width: 1184px; display: flex; align-items: center; gap: 19px; margin: 0 auto; padding: 26px 0 32px; border-top: 1px solid #dce3df; color: #89948d; font-size: 9px; }
footer .brand { margin-right: 7px; }
.brand.mini > span { width: 24px; height: 24px; border-radius: 7px; }
.brand.mini svg { width: 16px; }
.brand.mini strong { font-size: 13px; color: #536159; }
footer > span { margin-left: auto; font-family: ui-monospace, monospace; }
.toast { max-width: min(420px, calc(100vw - 32px)); position: fixed; right: 24px; bottom: 24px; z-index: 100; padding: 12px 16px; border-radius: 9px; color: white; background: #183e2c; box-shadow: 0 12px 35px rgba(12,42,27,.24); font-size: 11px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .22s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast--error { background: #793d3d; }

@media (max-width: 1020px) {
  .topbar nav { display: none; }
  .system-state { margin-left: auto; }
  .snapshot { grid-template-columns: repeat(2, 1fr); }
  .snapshot article:nth-child(2) { border-right: 0; }
  .snapshot article:nth-child(-n+2) { border-bottom: 1px solid #e5eae7; }
  .flow-steps { grid-template-columns: 1fr; gap: 12px; }
  .flow-steps article { grid-template-columns: 24px 54px 1fr; }
  .flow-arrow { transform: rotate(90deg); }
  .request-grid, .integrity-grid { grid-template-columns: 1fr; }
  .request-card, .response-card { min-height: auto; }
  .response-empty { height: 260px; }
  .transaction-flow { grid-template-columns: 1fr 20px 1fr 20px 1fr 20px 1fr; }
  .transaction-flow > div { min-width: 0; }
  .transaction-flow small { overflow-wrap: anywhere; }
  .region-capacity { grid-template-columns: repeat(2, 1fr); }
  footer { margin: 0 28px; }
}

@media (max-width: 700px) {
  .topbar { height: 62px; padding: 0 18px; }
  .brand em { display: none; }
  .system-state small { display: none; }
  main { padding: 0 14px 54px; }
  .hero { min-height: 365px; display: block; }
  .hero-copy { padding: 44px 5px 24px; }
  .hero h1 { font-size: 42px; }
  .hero p { font-size: 14px; }
  .desktop-only { display: none; }
  .hero-health { width: 100%; height: 100px; padding: 14px 20px; border-radius: 15px; }
  .health-ring { width: 65px; height: 65px; }
  .snapshot { grid-template-columns: 1fr 1fr; }
  .snapshot article { min-height: 103px; padding: 16px; gap: 10px; }
  .snapshot strong { font-size: 21px; }
  .snapshot-action { min-height: 103px; }
  .kpi-icon { display: none; }
  .panel { border-radius: 13px; }
  .flow, .request-card, .response-card, .validation, .transaction-card, .adjacency-card, .counter-panel, .log-panel { padding: 21px 18px; }
  .section-heading h2 { font-size: 18px; }
  .policy-note { display: none; }
  .flow-steps { margin-top: 21px; }
  .request-grid, .integrity-grid { gap: 14px; }
  .form-grid { grid-template-columns: 1fr; }
  fieldset { flex-wrap: wrap; }
  .auth-info { grid-template-columns: 28px 1fr; }
  .auth-info code { display: none; }
  .response-empty { height: 220px; }
  .validation-top { align-items: flex-end; }
  .validation-top .section-heading p:not(.eyebrow) { max-width: 170px; }
  .run-button { min-width: 105px; padding: 0 13px; }
  .test-empty, .test-running { min-height: 250px; flex-direction: column; justify-content: center; gap: 18px; padding: 27px 22px; text-align: center; }
  .test-illustration { width: 95px; height: 95px; }
  .test-illustration i { display: none; }
  .test-empty h3, .test-running h3 { font-size: 18px; }
  .test-verdict { align-items: flex-start; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-grid article:nth-child(2) { border-right: 0; }
  .metric-grid article:nth-child(-n+2) { border-bottom: 1px solid #e2e8e4; }
  .repeat-block .section-heading { align-items: flex-end; }
  .transaction-flow { grid-template-columns: 1fr; gap: 7px; }
  .transaction-flow > svg { transform: rotate(90deg); margin: auto; }
  .transaction-flow > div { padding: 8px; border: 1px solid #e5eae7; border-radius: 8px; }
  .code-rule { align-items: flex-start; flex-direction: column; overflow-x: auto; }
  .code-rule code { white-space: nowrap; }
  .region-capacity { grid-template-columns: 1fr 1fr; }
  .date-field.mini { flex-direction: column; align-items: flex-start; }
  .filter-tabs { max-width: 164px; overflow-x: auto; }
  .filter-tabs button { white-space: nowrap; }
  .reset-strip { align-items: flex-start; gap: 13px; }
  .reset-strip small { display: none; }
  footer { margin: 0 18px; flex-wrap: wrap; }
  footer > span { width: 100%; margin: 0; }
  .toast { right: 16px; bottom: 16px; }
}

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