:root {
  --ink: #172033;
  --muted: #667085;
  --line: #e6e9ef;
  --surface: #ffffff;
  --canvas: #f5f7fb;
  --indigo: #5546e8;
  --indigo-soft: #eeedff;
  --teal: #079c91;
  --teal-soft: #e7f8f5;
  --amber: #cc7a00;
  --amber-soft: #fff4dd;
  --danger: #c23b4a;
  --danger-soft: #fff0f2;
  --shadow: 0 18px 50px rgba(31, 41, 70, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); line-height: 1.6; }
button, input { font: inherit; }
button { cursor: pointer; }
.shell { max-width: 1240px; margin: 0 auto; padding: 24px 28px 44px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 10px 0 30px; }
.brand-lockup { display: flex; align-items: center; gap: 13px; }
.brand-mark { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; color: white; background: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: .08em; box-shadow: 0 8px 20px rgba(23, 32, 51, .18); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 0; font-size: 21px; letter-spacing: -.03em; }
h2 { margin-bottom: 5px; font-size: 22px; letter-spacing: -.035em; }
h3 { margin: 13px 0 2px; font-size: 17px; }
.eyebrow { margin: 0 0 2px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.header-badge, .security-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); background: rgba(255,255,255,.65); font-size: 12px; font-weight: 700; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }
.hero-panel { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; min-height: 218px; margin-bottom: 20px; padding: 34px 40px; border-radius: 28px; color: white; background: radial-gradient(circle at 84% 20%, #645af3 0, #4135b8 32%, #20283d 100%); box-shadow: var(--shadow); }
.hero-panel::after { content: ""; position: absolute; inset: auto -6% -70% 48%; height: 220px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; transform: rotate(-16deg); }
.hero-copy { position: relative; z-index: 1; max-width: 650px; }
.hero-copy .eyebrow { color: #c6c7ff; }
.hero-panel h2 { max-width: 610px; margin: 7px 0 9px; font-size: clamp(26px, 4vw, 42px); line-height: 1.14; }
.hero-text { max-width: 560px; margin-bottom: 0; color: #d8dcf4; font-size: 14px; }
.hero-orbit { position: relative; width: 190px; height: 150px; opacity: .8; }
.hero-orbit span, .hero-orbit i, .hero-orbit b { position: absolute; display: block; border: 1px solid rgba(255,255,255,.34); border-radius: 50%; transform: rotate(-25deg); }
.hero-orbit span { inset: 8px 4px 8px 20px; }.hero-orbit i { inset: 28px -2px 28px 38px; }.hero-orbit b { width: 9px; height: 9px; top: 46px; right: 36px; border: 0; background: #b9f8e9; box-shadow: 0 0 24px #b9f8e9; }
.panel { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 5px 20px rgba(31, 41, 70, .035); }
.control-strip { padding: 20px; margin-bottom: 20px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 15px; }
.section-heading.compact { align-items: center; margin-bottom: 12px; }
.section-heading h2 { margin-bottom: 0; }
.security-chip { border-color: #bce9e1; color: #047b72; background: var(--teal-soft); font-size: 11px; }
.connection-form { display: flex; gap: 10px; }
.unified-fields { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 10px; margin-top: 15px; padding-top: 15px; border-top: 1px solid #eceef4; }.unified-fields label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 700; }.unified-fields input, .unified-fields select { min-height: 40px; }.unified-fields select { width: 100%; padding: 0 10px; border: 1px solid #dfe3ec; border-radius: 11px; outline: none; color: var(--ink); background: #fbfcfe; }.unified-fields select:focus { border-color: var(--indigo); box-shadow: 0 0 0 4px var(--indigo-soft); }
.settings-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; }.settings-actions .button { min-height: 40px; font-size: 12px; }.settings-actions .text-button { margin-inline-start: auto; }
input { width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid #dfe3ec; border-radius: 11px; outline: none; color: var(--ink); background: #fbfcfe; direction: ltr; text-align: left; transition: border .2s, box-shadow .2s; }
input:focus { border-color: var(--indigo); box-shadow: 0 0 0 4px var(--indigo-soft); }
.connection-form input { flex: 1; }
.button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 10px; font-weight: 800; white-space: nowrap; transition: transform .15s, box-shadow .15s, background .15s; }
.button:hover { transform: translateY(-1px); }.button:active { transform: translateY(0); }
.button-primary { color: white; background: var(--indigo); box-shadow: 0 8px 17px rgba(85,70,232,.22); }.button-primary:hover { background: #493ad0; }
.button-secondary { color: var(--ink); border: 1px solid var(--line); background: white; }.button-small { min-height: 35px; padding: 0 12px; color: var(--indigo); background: var(--indigo-soft); font-size: 12px; }
.field-hint { margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 33px; }
.status-card { position: relative; overflow: hidden; padding: 17px 19px; }.status-card::after { content: ""; position: absolute; left: -25px; bottom: -38px; width: 118px; height: 80px; border-radius: 50%; opacity: .7; }.accent-indigo::after { background: var(--indigo-soft); }.accent-teal::after { background: var(--teal-soft); }.accent-amber::after { background: var(--amber-soft); }
.card-topline { position: relative; z-index: 1; display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; font-weight: 700; }.status-icon { color: var(--indigo); }.accent-teal .status-icon { color: var(--teal); }.accent-amber .status-icon { color: var(--amber); }
.metric { position: relative; z-index: 1; margin: 8px 0 1px; font-size: 25px; font-weight: 850; letter-spacing: -.04em; }.metric.muted { color: #9aa2b2; font-size: 20px; }.metric-caption { position: relative; z-index: 1; margin: 0; color: var(--muted); font-size: 11px; }
.section-block { margin-bottom: 30px; }.run-state { color: var(--muted); font-size: 12px; }.run-state.running { color: var(--indigo); }.run-state.success { color: var(--teal); }.run-state.error { color: var(--danger); }
.endpoint-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }.endpoint-card { padding: 18px; }.endpoint-head { display: flex; align-items: center; gap: 8px; direction: ltr; }.method { padding: 3px 7px; border-radius: 6px; font-size: 10px; font-weight: 900; letter-spacing: .06em; }.method.get { color: #007e73; background: var(--teal-soft); }.endpoint-path { overflow: hidden; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.result-dot { width: 7px; height: 7px; margin-right: 0; margin-left: auto; border-radius: 50%; background: #d6dae2; }.endpoint-card.success .result-dot { background: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }.endpoint-card.failure .result-dot { background: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
.endpoint-card p { min-height: 45px; margin-bottom: 11px; color: var(--muted); font-size: 12px; }.inline-input { display: flex; align-items: center; gap: 8px; margin: 0 0 11px; color: var(--muted); font-size: 11px; }.inline-input input { min-height: 34px; padding: 0 9px; font-size: 11px; }.result-box { min-height: 52px; max-height: 105px; overflow: auto; margin: 12px 0 0; padding: 10px; border: 1px solid #eef0f4; border-radius: 9px; color: #687286; background: #fafbfc; direction: ltr; text-align: left; white-space: pre-wrap; word-break: break-word; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }.endpoint-card.success .result-box { border-color: #bde8e2; background: #f6fffd; }.endpoint-card.failure .result-box { border-color: #f4c9d0; background: #fff9fa; color: var(--danger); }
.lower-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 14px; }.log-panel, .safety-panel { padding: 19px; }.text-button { padding: 0; border: 0; color: var(--muted); background: transparent; font-size: 11px; }.text-button:hover { color: var(--danger); }.empty-state { padding: 22px 10px; color: var(--muted); text-align: center; font-size: 12px; }.log-list { max-height: 260px; overflow: auto; }.log-entry { display: grid; grid-template-columns: 78px 1fr 52px; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f0f1f4; font-size: 11px; }.log-entry:last-child { border-bottom: 0; }.log-time { color: var(--muted); direction: ltr; }.log-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.log-code { direction: ltr; text-align: left; font-weight: 800; }.log-entry.ok .log-code { color: var(--teal); }.log-entry.bad .log-code { color: var(--danger); }
.safety-panel { display: flex; align-items: flex-start; gap: 13px; color: var(--muted); background: #fffdf8; border-color: #f1e3c3; }.safety-panel h2 { color: var(--ink); font-size: 17px; }.safety-panel p { margin: 7px 0 0; font-size: 12px; }.safety-mark { flex: 0 0 28px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #9c6100; background: var(--amber-soft); font-weight: 900; }code { padding: 2px 4px; border-radius: 4px; color: #8b5a08; background: #fff1c9; font-size: 10px; }
.load-lab { margin-bottom: 30px; padding: 21px; background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%); }
.lab-badge { display: inline-flex; align-items: center; padding: 7px 10px; border: 1px solid #c9c7fb; border-radius: 99px; color: #5145c9; background: var(--indigo-soft); font-size: 11px; font-weight: 800; }
.lab-intro { max-width: 780px; margin: -3px 0 17px; color: var(--muted); font-size: 12px; }
.load-controls { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.load-controls label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 700; }
.load-controls input { min-height: 40px; font-size: 13px; }
.lab-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.lab-actions .button { min-height: 40px; font-size: 12px; }
.load-results { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 17px; }
.load-stat { display: grid; gap: 4px; padding: 12px; border: 1px solid #e7e9f1; border-radius: 11px; background: rgba(255,255,255,.76); }
.load-stat span { color: var(--muted); font-size: 10px; }.load-stat strong { direction: ltr; color: var(--ink); font-size: 20px; letter-spacing: -.04em; }
.load-stat.accepted { border-color: #bde8e2; background: #f6fffd; }.load-stat.accepted strong { color: var(--teal); }.load-stat.limited { border-color: #f1d9a9; background: #fffaf0; }.load-stat.limited strong { color: var(--amber); }
.load-summary { min-height: 84px; margin: 12px 0 0; padding: 12px; overflow: auto; border: 1px solid #e9eaf2; border-radius: 10px; color: #626b7e; background: #fbfbfe; direction: rtl; text-align: right; white-space: pre-wrap; font-family: inherit; font-size: 11px; }
.probe-controls { display: grid; grid-template-columns: 1.6fr .7fr auto; align-items: end; gap: 10px; margin-top: 17px; padding-top: 15px; border-top: 1px solid #eceef4; }.probe-controls label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 700; }.probe-controls input { min-height: 40px; font-size: 12px; }.probe-controls .button { min-height: 40px; }
.probe-summary { min-height: 70px; margin: 10px 0 0; padding: 11px; overflow: auto; border: 1px solid #cde8e4; border-radius: 10px; color: #38716c; background: #f7fffd; direction: rtl; text-align: right; white-space: pre-wrap; font-family: inherit; font-size: 11px; }
.lab-note { margin: 10px 0 0; color: var(--muted); font-size: 11px; }.lab-note strong { color: #9c6100; }
footer { display: flex; justify-content: space-between; margin-top: 30px; color: #9299a8; font-size: 11px; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 5; max-width: min(360px, calc(100vw - 48px)); padding: 12px 15px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: white; box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .2s, transform .2s; font-size: 12px; }.toast.visible { opacity: 1; transform: translateY(0); }.toast.error { border-color: #f2c1c9; color: var(--danger); background: var(--danger-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 800px) { .shell { padding: 18px 16px 32px; }.hero-panel { min-height: 255px; padding: 26px; }.hero-orbit { position: absolute; left: -15px; bottom: -15px; opacity: .5; }.status-grid, .endpoint-grid, .lower-grid, .load-results { grid-template-columns: 1fr; }.load-controls, .probe-controls, .unified-fields { grid-template-columns: repeat(2, 1fr); }.probe-controls .button { grid-column: 1 / -1; }.connection-form { flex-wrap: wrap; }.connection-form input { flex-basis: 100%; }.connection-form .button { flex: 1; }.section-heading { align-items: flex-start; }.safety-panel { min-height: 150px; } }
@media (max-width: 420px) { .topbar { align-items: flex-start; }.header-badge { font-size: 10px; padding: 6px 8px; }.brand-mark { width: 40px; height: 40px; }.hero-panel h2 { font-size: 27px; }.hero-panel { border-radius: 22px; }.connection-form .button { padding: 0 8px; font-size: 11px; } footer { flex-direction: column; gap: 4px; } }
