:root {
  --brand: #2f6bff;
  --brand-hover: #1f57e6;
  --brand-soft: #eef3ff;
  --bg: #f6f7f9;
  --surface: #fff;
  --text: #1f2329;
  --muted: #6b7280;
  --subtle: #9aa1ab;
  --border: #ecedf1;
  --ok: #16b364;
  --danger: #e5484d;
  --shadow: 0 18px 48px rgba(23, 43, 99, .09);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: #fff; font: 14px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(47, 107, 255, .38); outline-offset: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.section { padding: 100px 0; scroll-margin-top: 85px; }
.section-soft { background: linear-gradient(180deg, #f7f9fe, #fff); }
.section-head { max-width: 650px; margin: 0 auto 52px; text-align: center; }
.section-head.left { margin: 0 0 30px; text-align: left; }
.section-head h2 { margin: 8px 0 12px; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.25; letter-spacing: -.8px; }
.section-head p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.kicker { color: var(--brand); font-size: 13px; font-weight: 700; letter-spacing: .5px; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 40px; padding: 0 18px; border: 1px solid transparent; border-radius: 999px; background: #fff; color: var(--text); font-weight: 600; white-space: nowrap; transition: transform .15s, background .15s, box-shadow .15s, border-color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { color: #fff; background: var(--brand); box-shadow: 0 12px 28px -13px rgba(47, 107, 255, .72); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-outline { border-color: #dce4f2; background: #fff; }
.btn-outline:hover { background: #f7f9ff; }
.btn-quiet { color: var(--muted); background: transparent; }
.btn-quiet:hover { background: #f2f4f8; color: var(--text); }
.btn-danger { background: #fff0f0; color: var(--danger); }
.btn-danger:hover { background: #ffe1e1; }
.btn-lg { min-height: 48px; padding: 0 24px; font-size: 15px; }
.btn-sm { min-height: 34px; padding: 0 13px; font-size: 12px; }
.input, .select, .textarea { width: 100%; min-height: 42px; padding: 9px 12px; color: var(--text); background: #fff; border: 1px solid #dfe4ee; border-radius: 11px; outline: 0; transition: border-color .15s, box-shadow .15s; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47, 107, 255, .12); }
.textarea { min-height: 90px; resize: vertical; }
.field label, label.field { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: #4a5362; }
.field .help { margin: 5px 0 0; font-size: 12px; color: var(--subtle); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field-stack { display: grid; gap: 16px; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { appearance: none; width: 42px; height: 24px; margin: 0; border-radius: 20px; background: #dfe3ea; position: relative; transition: background .2s; }
.switch input:checked { background: var(--brand); }
.switch input::after { content: ""; width: 18px; height: 18px; position: absolute; top: 3px; left: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px #0002; transition: transform .2s; }
.switch input:checked::after { transform: translateX(18px); }
.switch span { color: var(--muted); }
.notice-bar { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 8px 16px; background: #0f1a33; color: #dce6ff; text-align: center; font-size: 13px; }
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid rgba(20, 30, 60, .07); }
.topbar-inner { height: 66px; display: flex; align-items: center; gap: 16px; min-width: 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; white-space: nowrap; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; flex: none; border-radius: 11px; color: #fff; background: linear-gradient(135deg, var(--brand), #78a8ff); box-shadow: 0 7px 16px rgba(47, 107, 255, .24); font-size: 18px; font-weight: 800; }
.brand-logo { width: 34px; height: 34px; flex: none; border-radius: 11px; object-fit: cover; }
.brand strong { letter-spacing: -.35px; }
.topnav { display: flex; align-items: center; gap: 4px; }
.topnav a { padding: 8px 8px; border-radius: 999px; color: var(--muted); white-space: nowrap; transition: background .15s, color .15s; }
.topnav .mobile-admin-link { display: none; }
.topnav a:hover { background: #f1f4fa; color: var(--text); }
.top-actions { margin-left: auto; display: flex; flex: none; align-items: center; gap: 7px; }
.menu-button { display: none; width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; }
.menu-button:hover { background: #f1f4fa; }
.hero { position: relative; overflow: hidden; padding: 76px 0 84px; background: linear-gradient(180deg, #f5f8ff 0%, #fff 82%); scroll-margin-top: 70px; }
.hero::before { content: ""; position: absolute; inset: -150px -100px auto; height: 680px; pointer-events: none; background: radial-gradient(520px 320px at 75% 38%, rgba(96, 140, 255, .24), transparent 73%), radial-gradient(420px 260px at 17% 12%, rgba(150, 120, 255, .16), transparent 72%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); gap: 54px; align-items: center; }
.hero-copy { padding: 10px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 6px 13px 6px 10px; border-radius: 999px; background: #fff; border: 1px solid #e1e8f7; box-shadow: 0 2px 10px rgba(47, 107, 255, .06); color: var(--muted); font-size: 13px; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px #16b36426; }
.hero h1 { margin: 22px 0 18px; font-size: clamp(38px, 4.7vw, 56px); line-height: 1.14; letter-spacing: -1.6px; font-weight: 760; background: linear-gradient(120deg, #111a2e 30%, var(--brand) 100%); background-clip: text; -webkit-background-clip: text; color: transparent; }
.hero h1 em { color: inherit; font-style: normal; }
.hero-copy > p { max-width: 510px; margin: 0 0 30px; color: var(--muted); font-size: 17px; line-height: 1.8; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-points { display: flex; flex-wrap: wrap; gap: 20px; margin: 27px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 13px; }
.hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.tick { color: var(--ok); font-weight: 800; }
.speed-window { overflow: hidden; border-radius: 20px; border: 1px solid #e0e8f5; background: #fff; box-shadow: 0 48px 95px -42px rgba(23, 43, 99, .42), 0 0 0 6px rgba(255,255,255,.55); }
.window-bar { height: 39px; display: flex; align-items: center; gap: 6px; padding: 0 15px; background: #f9fafc; border-bottom: 1px solid #eef1f6; }
.window-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.window-bar i:nth-child(2) { background: #febc2e; }
.window-bar i:nth-child(3) { background: #28c840; }
.window-bar span { margin-left: 10px; font-size: 11px; color: var(--subtle); }
.console { padding: 22px; }
.console-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.console-header strong { display: block; font-size: 17px; letter-spacing: -.25px; }
.console-header small { display: block; margin-top: 2px; color: var(--subtle); font-size: 11px; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; background: #ebfbf3; color: #0e9152; font-size: 11px; font-weight: 700; }
.status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.running { background: #eaf0ff; color: var(--brand); }
.status.checking { background: #fff5e7; color: #bd7300; }
.status.running i { animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .28; transform: scale(1.5); } }
.speed-headline { display: flex; justify-content: space-between; align-items: end; margin: 17px 0 4px; }
.speed-number { display: flex; align-items: baseline; gap: 7px; font-size: 37px; line-height: 1.15; font-weight: 760; letter-spacing: -1.2px; color: #17284e; }
.speed-number small { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.speed-label { color: var(--subtle); font-size: 11px; }
.chart-wrap { height: 108px; margin-bottom: 10px; position: relative; background: linear-gradient(180deg, #fff, #fbfcff); border-bottom: 1px solid #edf0f6; }
#speed-chart { width: 100%; height: 100%; display: block; }
.chart-legend { position: absolute; right: 6px; bottom: 4px; display: flex; gap: 10px; color: var(--subtle); font-size: 9px; background: #ffffffc9; padding: 1px 3px; border-radius: 4px; }
.chart-legend span::before { content: ""; display: inline-block; width: 7px; height: 2px; margin: 0 4px 2px 0; background: var(--brand); }
.chart-legend span + span::before { background: #16b364; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0 18px; }
.metric-card { padding: 10px 11px; background: #f8faff; border: 1px solid #eef2fb; border-radius: 12px; }
.metric-card small { display: block; color: var(--subtle); font-size: 10px; }
.metric-card strong { display: block; margin-top: 2px; color: #22355c; font-size: 13px; }
.prediction-row { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; margin: -5px 0 14px; padding: 8px 0 10px; border-bottom: 1px solid var(--border); }
.prediction-row > div { text-align: center; min-width: 0; }
.prediction-row small { display: block; color: var(--subtle); font-size: 9px; }
.prediction-row strong { display: block; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.console-controls { border-top: 1px solid #eef1f6; padding-top: 16px; display: grid; gap: 12px; }
.control-line { display: grid; grid-template-columns: 1fr auto; gap: 9px; align-items: end; }
.console .field label { font-size: 11px; }
.console .select, .console .input { min-height: 38px; padding: 7px 10px; font-size: 12px; }
.console .btn { min-height: 38px; padding: 0 12px; font-size: 12px; }
.control-bottom { display: grid; grid-template-columns: 1fr auto; gap: 9px; align-items: end; }
.control-bottom .field { min-width: 0; }
.thread-control { display: grid; grid-template-columns: auto 1fr 55px; align-items: center; gap: 10px; }
.thread-control label { color: #4a5362; font-size: 11px; font-weight: 600; white-space: nowrap; }
.thread-control input[type="range"] { width: 100%; accent-color: var(--brand); }
.thread-control .input { min-height: 34px; padding: 4px; text-align: center; }
.console-note { min-height: 17px; color: var(--subtle); font-size: 11px; overflow-wrap: anywhere; }
.console-note.error { color: var(--danger); }
.speed-tools { display: flex; flex-wrap: wrap; gap: 5px; }
.speed-tools .btn { padding: 0 8px; }
.run-overview { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); padding-top: 11px; border-top: 1px solid var(--border); }
.run-overview > div { text-align: center; min-width: 0; }
.run-overview > div + div { border-left: 1px solid var(--border); }
.run-overview small { display: block; color: var(--subtle); font-size: 9px; }
.run-overview strong { display: block; margin-top: 2px; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.band { border-block: 1px solid #eef1f6; background: #fcfdff; }
.band-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.band-grid > div { display: flex; flex-direction: column; gap: 3px; padding: 23px 15px; text-align: center; }
.band-grid > div + div { border-left: 1px solid #eef1f6; }
.band-grid strong { font-size: 18px; letter-spacing: -.25px; }
.band-grid span { color: var(--subtle); font-size: 12px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.feature-card { padding: 27px; border: 1px solid #edf0f6; border-radius: 20px; background: #fff; transition: box-shadow .2s, transform .2s, border-color .2s; }
.feature-card:hover { transform: translateY(-4px); border-color: #dfe6f5; box-shadow: 0 26px 50px -30px rgba(23,43,99,.32); }
.feature-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 14px; color: var(--brand); background: var(--brand-soft); font-size: 22px; }
.feature-card h3 { margin: 0 0 6px; font-size: 17px; }
.feature-card p { margin: 0; color: var(--muted); line-height: 1.7; }
.diag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.diag-card { padding: 25px; background: #fff; border: 1px solid #e8edf6; border-radius: 19px; box-shadow: 0 13px 36px -30px rgba(23,43,99,.35); }
.diag-card .feature-icon { width: 40px; height: 40px; font-size: 19px; margin-bottom: 14px; }
.diag-card h3 { margin: 0 0 3px; font-size: 15px; }
.diag-card .value { display: block; min-height: 28px; margin: 10px 0 6px; font-size: 20px; font-weight: 700; overflow-wrap: anywhere; }
.diag-card p { margin: 0; color: var(--muted); font-size: 12px; }
.diag-refresh { text-align: center; margin-top: 24px; }
.explain { background: #0c1426; color: #fff; }
.explain .section-head p { color: #ffffffad; }
.explain .kicker { color: #8fb0ff; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.step { padding: 25px; border: 1px solid #ffffff1c; border-radius: 19px; background: #ffffff0a; }
.step b { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 14px; border-radius: 11px; color: #c5d7ff; background: #9db9ff25; }
.step h3 { margin: 0 0 8px; font-size: 16px; }
.step p { margin: 0; color: #ffffffa3; font-size: 13px; line-height: 1.75; }
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 54px; }
.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid #edf0f6; border-radius: 15px; overflow: hidden; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 21px; cursor: pointer; font-weight: 600; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--subtle); font-size: 20px; font-weight: 400; }
.faq-item[open] summary::after { content: "−"; color: var(--brand); }
.faq-item p { margin: 0; padding: 0 21px 18px; color: var(--muted); line-height: 1.75; }
.cta { padding: 0 0 90px; }
.cta-card { padding: 64px 24px; border-radius: 28px; color: #fff; text-align: center; background: radial-gradient(600px 300px at 80% 0%, #ffffff38, transparent 60%), linear-gradient(120deg, var(--cta-start, #2556e8), var(--cta-mid, #4c82ff) 60%, var(--cta-end, #7aa6ff)); }
.cta-card h2 { margin: 0 0 9px; font-size: 32px; }
.cta-card p { margin: 0 0 25px; opacity: .9; font-size: 15px; }
.cta-card .btn { color: var(--brand); }
.footer { padding: 56px 0 26px; border-top: 1px solid #eef1f6; background: #fbfcfe; }
.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(3, minmax(0, 1fr)); gap: 35px; }
.footer h4 { margin: 0 0 14px; }
.footer a { display: block; margin: 0 0 9px; color: var(--muted); }
.footer a:hover { color: var(--brand); }
.footer-brand p { max-width: 330px; color: var(--muted); }
.footer-bottom { display: flex; justify-content: space-between; gap: 15px; padding-top: 19px; margin-top: 34px; border-top: 1px solid #eef1f6; color: var(--subtle); font-size: 12px; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 25px; transform: translateX(-50%); max-width: min(90vw, 520px); padding: 10px 18px; border-radius: 11px; background: #1f2937; color: #fff; box-shadow: var(--shadow); font-size: 13px; text-align: center; }
.toast.error { background: #a3222a; }
.modal-backdrop { position: fixed; z-index: 90; inset: 0; display: grid; place-items: center; padding: 20px; background: #11182788; backdrop-filter: blur(4px); }
.modal { width: min(100%, 470px); padding: 26px; background: #fff; border-radius: 20px; box-shadow: 0 25px 80px #0004; }
.modal h2 { margin: 0 0 6px; font-size: 21px; }
.modal p { margin: 0 0 22px; color: var(--muted); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.error-page h1 { margin-bottom: 0; }
.maintenance-page { min-height: 100dvh; display: grid; place-items: center; padding: 25px; background: linear-gradient(180deg,#f5f8ff,#fff); }
.maintenance-card { width: min(100%,520px); padding: 42px; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.maintenance-card h1 { margin: 34px 0 8px; font-size: 31px; }.maintenance-card p { margin: 0 0 26px; color: var(--muted); white-space: pre-line; }
.admin-login-shell { min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; background: #f6f8fc; }
.admin-login-art { padding: 64px clamp(32px, 8vw, 120px); display: flex; flex-direction: column; justify-content: center; color: #fff; background: radial-gradient(520px 320px at 75% 15%, #ffffff24, transparent 70%), linear-gradient(145deg, #163eaa, #2f6bff 58%, #76a7ff); }
.admin-login-art .brand-mark { background: #ffffff26; box-shadow: none; }
.admin-login-art h1 { margin: 55px 0 15px; font-size: 44px; line-height: 1.2; }
.admin-login-art p { max-width: 440px; color: #ffffffc5; font-size: 17px; }
.admin-login-art .pill { align-self: flex-start; margin-top: 20px; padding: 7px 12px; border: 1px solid #ffffff52; border-radius: 999px; font-size: 12px; }
.admin-login-form { display: grid; place-items: center; padding: 30px; }
.login-card { width: min(100%, 400px); padding: 34px; background: #fff; border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow); }
.login-card h2 { margin: 0 0 5px; font-size: 25px; }
.login-card p { margin: 0 0 25px; color: var(--muted); }
.login-card .field { margin-bottom: 16px; }
.login-card .btn { width: 100%; margin: 5px 0 15px; }
.login-card .back-link { color: var(--brand); font-size: 13px; }
.admin-app { min-height: 100dvh; background: var(--bg); }
.admin-header { height: 64px; display: flex; align-items: center; gap: 18px; padding: 0 24px; background: #fff; border-bottom: 1px solid var(--border); }
.admin-header .admin-title { margin-left: 8px; color: var(--muted); }
.admin-header-actions { margin-left: auto; display: flex; gap: 8px; }
.admin-body { display: grid; grid-template-columns: 225px minmax(0, 1fr); min-height: calc(100dvh - 64px); }
.admin-sidebar { min-width: 0; padding: 24px 12px; border-right: 1px solid var(--border); background: #fff; }
.admin-sidebar p { padding: 0 13px; color: var(--subtle); font-size: 11px; font-weight: 700; letter-spacing: 1px; }
.admin-tabs { display: grid; gap: 4px; }
.admin-tabs button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); text-align: left; }
.admin-tabs button:hover { background: #f3f6fb; color: var(--text); }
.admin-tabs button.active { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.admin-main { max-width: 1150px; min-width: 0; width: 100%; padding: 34px 36px 80px; }
.admin-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.admin-heading h1 { margin: 0 0 4px; font-size: 27px; letter-spacing: -.5px; }
.admin-heading p { margin: 0; color: var(--muted); }
.admin-panel { padding: 24px; margin-bottom: 18px; border: 1px solid var(--border); border-radius: 18px; background: #fff; box-shadow: 0 3px 20px rgba(16,24,40,.025); }
.admin-panel h2 { margin: 0 0 6px; font-size: 17px; }
.admin-panel .panel-desc { margin: 0 0 22px; color: var(--muted); font-size: 13px; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 19px; }
.admin-stat { padding: 24px; border: 1px solid var(--border); border-radius: 17px; background: #fff; }
.admin-stat small { display: block; color: var(--muted); }
.admin-stat strong { display: block; margin-top: 8px; font-size: 30px; line-height: 1.2; }
.admin-stat span { display: block; margin-top: 6px; color: var(--subtle); font-size: 12px; }
.admin-list { display: grid; gap: 12px; }
.editor-item { position: relative; padding: 18px; border: 1px solid #e9edf4; border-radius: 14px; background: #fbfcff; }
.editor-item .item-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; font-weight: 700; }
.editor-item .item-actions { display: flex; gap: 6px; }
.node-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.node-fields .wide { grid-column: 1 / -1; }
.node-fields .field label { font-size: 12px; }
.admin-actions { position: sticky; bottom: 0; z-index: 10; display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 14px 0; background: linear-gradient(transparent, var(--bg) 20%); }
.admin-actions .save-hint { margin-right: auto; color: var(--muted); font-size: 12px; }
.admin-code { width: 100%; min-height: 430px; padding: 16px; border: 1px solid #dfe4ee; border-radius: 12px; background: #0e1728; color: #d8e4ff; font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; resize: vertical; tab-size: 2; }
.inline-alert { padding: 12px 14px; border-radius: 10px; background: #fff1f0; color: #aa2630; font-size: 13px; }
.inline-success { padding: 12px 14px; border-radius: 10px; background: #eaf8f0; color: #087846; font-size: 13px; }
.access-scroll { max-height: 480px; overflow: auto; border: 1px solid var(--border); border-radius: 12px; }
.access-table { width: 100%; border-collapse: collapse; font-size: 12px; white-space: nowrap; }
.access-table th,.access-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.access-table th { position: sticky; top: 0; background: #f8faff; color: var(--muted); }
.access-table td:nth-child(4) { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1050px) {
  .hero-grid, .faq-layout { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { text-align: center; }
  .hero-copy > p { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-points { justify-content: center; }
  .speed-window { max-width: 620px; width: 100%; margin: 0 auto; }
}
@media (max-width: 1180px) {
  .topnav { display: none; position: absolute; top: 66px; left: 0; right: 0; padding: 10px 16px 16px; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
  .topnav.open { display: flex; }
  .topnav a { padding: 11px 14px; }
  .topnav .mobile-admin-link { display: block; }
  .menu-button { display: grid; place-items: center; flex: none; }
}
@media (max-width: 800px) {
  .feature-grid, .diag-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .admin-body { grid-template-columns: minmax(0,1fr); }
  .admin-sidebar { max-width: 100vw; overflow: hidden; padding: 10px 16px; border-right: 0; border-bottom: 1px solid var(--border); }
  .admin-sidebar p { display: none; }
  .admin-tabs { display: flex; max-width: 100%; min-width: 0; overflow-x: auto; }
  .admin-tabs button { white-space: nowrap; width: auto; flex: none; }
  .admin-main { padding: 26px 20px 70px; }
}
@media (max-width: 720px) {
  .topbar-inner { height: 58px; gap: 10px; }
  .topbar-inner > .brand { min-width: 0; flex: 0 1 auto; }
  .topbar-inner > .brand strong { overflow: hidden; text-overflow: ellipsis; }
  .top-actions { min-width: 0; gap: 4px; }
  .topnav { display: none; position: absolute; top: 58px; left: 0; right: 0; padding: 10px 16px 16px; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
  .topnav.open { display: flex; }
  .topnav a { padding: 11px 14px; }
  .menu-button { display: grid; place-items: center; }
  .top-actions .btn-quiet { display: none; }
  .top-actions .btn-primary { min-height: 34px; padding: 0 12px; font-size: 12px; }
  .hero-actions .btn { flex: 1 1 100%; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 51px 0 66px; }
  .hero-grid { gap: 35px; }
  .hero h1 { font-size: 35px; letter-spacing: -.8px; }
  .hero-copy > p { font-size: 15px; }
  .hero-points { gap: 8px 15px; font-size: 12px; }
  .section { padding: 65px 0; }
  .section-head { margin-bottom: 30px; }
  .section-head p { font-size: 14px; }
  .console { padding: 16px; }
  .speed-number { font-size: 32px; }
  .metric-row { gap: 5px; }
  .metric-card { padding: 8px; }
  .metric-card strong { font-size: 11px; }
  .band-grid { grid-template-columns: repeat(2, 1fr); }
  .band-grid > div:nth-child(3) { border-left: 0; border-top: 1px solid #eef1f6; }
  .band-grid > div:nth-child(4) { border-top: 1px solid #eef1f6; }
  .feature-grid, .diag-grid, .steps { grid-template-columns: 1fr; }
  .feature-card { padding: 22px; }
  .cta { padding-bottom: 65px; }
  .cta-card { padding: 43px 20px; border-radius: 19px; }
  .cta-card h2 { font-size: 26px; }
  .footer { padding: 40px 0 20px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-wrap: wrap; }
  .admin-login-shell { grid-template-columns: 1fr; }
  .admin-login-art { display: none; }
  .admin-login-form { min-height: 100dvh; padding: 18px; }
  .login-card { padding: 26px; }
  .admin-header { padding: 0 14px; }
  .admin-header .admin-title { display: none; }
  .admin-header-actions > a { display: none; }
  .admin-header-actions { gap: 4px; }
  .admin-main { padding: 22px 14px 65px; }
  .admin-stat-grid, .field-row, .node-fields { grid-template-columns: 1fr; }
  .node-fields .wide { grid-column: auto; }
  .admin-heading { flex-direction: column; }
  .admin-actions { flex-wrap: wrap; }
  .admin-actions .save-hint { width: 100%; }
}
@media (max-width: 560px) {
  .top-actions .btn-primary { display: none; }
}
@media (max-width: 420px) {
  .admin-header { gap: 8px; }
  .admin-header .brand strong { display: none; }
  .admin-header-actions { flex: none; }
  .control-bottom { grid-template-columns: 1fr; }
  .control-bottom .btn { width: 100%; }
  .run-overview { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 10px; }
  .run-overview > div:nth-child(3) { border-left: 0; }
  .top-actions .btn-primary { display: none; }
}
