:root {
    color-scheme: light;
    --ink: #132238;
    --muted: #667085;
    --line: #dfe5ec;
    --paper: #ffffff;
    --canvas: #f2f5f8;
    --blue: #175cd3;
    --blue-dark: #123f92;
    --cyan: #e8f5ff;
    --green: #087a55;
    --red: #b42318;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); }
.topbar { height: 72px; padding: 0 max(24px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; background: #0b1930; color: white; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: #2e90fa; font-weight: 800; }
.brand strong, .brand small { display: block; }
.brand small { color: #a9bdd5; margin-top: 2px; }
.status { display: flex; align-items: center; gap: 8px; color: #d0d9e5; font-size: 14px; }
.status span { width: 9px; height: 9px; border-radius: 50%; background: #fdb022; box-shadow: 0 0 0 4px #fdb02222; }
.status.up span { background: #32d583; box-shadow: 0 0 0 4px #32d58322; }
.status.down span { background: #f04438; box-shadow: 0 0 0 4px #f0443822; }
main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.hero { padding: 54px 0 32px; }
.eyebrow { margin: 0 0 8px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(34px, 5vw, 58px); letter-spacing: -.04em; line-height: 1.05; }
.hero > p:not(.eyebrow) { max-width: 760px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.architecture { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.architecture span { padding: 8px 13px; border: 1px solid #bdd7f5; border-radius: 999px; background: var(--cyan); color: #164c8c; font-size: 14px; font-weight: 700; }
.architecture b { color: #91a0b5; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 32px #1322380a; }
.search-panel, .table-panel { padding: 26px; margin-bottom: 20px; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
h2 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.search-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.input-action { display: flex; gap: 8px; }
input { min-width: 0; width: 100%; height: 44px; border: 1px solid #cbd5e1; border-radius: 10px; padding: 0 13px; font: inherit; color: var(--ink); outline: none; }
input:focus { border-color: #2e90fa; box-shadow: 0 0 0 3px #2e90fa22; }
.checkbox { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 500; color: var(--muted); }
.checkbox input { width: 16px; height: 16px; }
.button { height: 42px; border: 0; border-radius: 10px; padding: 0 16px; cursor: pointer; font: inherit; font-weight: 750; white-space: nowrap; transition: transform .15s, background .15s; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .55; cursor: wait; transform: none; }
.primary { background: var(--blue); color: white; }
.primary:hover { background: var(--blue-dark); }
.ghost { background: #eef4fb; color: #264f7e; }
.accent { background: #0e7490; color: white; }
.danger { background: var(--red); color: white; margin-top: 10px; }
.message { min-height: 20px; margin: 14px 0 0; color: var(--muted); }
.counter { padding: 7px 10px; border-radius: 8px; background: #eef4fb; color: #355a84; font-size: 13px; font-weight: 800; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { padding: 12px; background: #f6f8fb; color: #516173; text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
td { padding: 14px 12px; border-top: 1px solid #edf0f4; vertical-align: top; }
.empty { padding: 42px; color: var(--muted); text-align: center; }
.badge { display: inline-block; padding: 5px 8px; border-radius: 999px; background: #e9f8f2; color: var(--green); font-size: 12px; font-weight: 800; }
.badge.refunded { background: #feeceb; color: var(--red); }
.subtle { color: var(--muted); font-size: 12px; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 20px 0 48px; }
.action-card { padding: 26px; }
.action-card > p:not(.eyebrow) { min-height: 48px; color: var(--muted); line-height: 1.5; }
pre { min-height: 88px; overflow: auto; margin: 16px 0 0; padding: 14px; border-radius: 10px; background: #0b1930; color: #cfe3ff; font: 12px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; }
footer { padding: 28px 16px 40px; color: #7b8798; text-align: center; font-size: 13px; }

@media (max-width: 800px) {
    .search-grid, .demo-grid { grid-template-columns: 1fr; }
    .input-action { flex-direction: column; }
    .hero { padding-top: 36px; }
    .topbar { padding: 0 16px; }
    .status { font-size: 0; }
}

