:root {
  color-scheme: light;
  --ink: #10233f;
  --muted: #61718a;
  --faint: #8a98ab;
  --brand: #1e40af;
  --brand-2: #2563eb;
  --brand-soft: #eaf1ff;
  --green: #16835d;
  --green-soft: #e6f6ef;
  --amber: #b36b12;
  --amber-soft: #fff4dd;
  --danger: #c63e4b;
  --surface: #fff;
  --soft: #f4f7fb;
  --line: #dfe6ef;
  --shadow: 0 20px 50px rgba(22, 44, 78, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; overflow-x: hidden; color: var(--ink); background: var(--soft); font-family: Inter, "Segoe UI", system-ui, sans-serif; font-size: 14px; line-height: 1.5; }
button, input, select { font: inherit; }
button, .button, a { -webkit-tap-highlight-color: transparent; }
button, .button { min-height: 42px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; color: #fff; background: var(--brand); box-shadow: 0 5px 14px rgba(30, 64, 175, .16); font-weight: 750; transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease; }
button:hover, .button:hover { background: #17368f; box-shadow: 0 8px 20px rgba(30, 64, 175, .2); }
button:focus-visible, .button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid rgba(37, 99, 235, .3); outline-offset: 2px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 15px; text-decoration: none; }
.button svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
button.secondary, .button.secondary { border-color: var(--line); color: var(--ink); background: #fff; box-shadow: 0 2px 5px rgba(18, 45, 78, .04); }
button.secondary:hover, .button.secondary:hover { border-color: #b9c9dd; background: #f8fbff; }
button.danger { border-color: #f1c8cc; color: var(--danger); background: #fff; box-shadow: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 9px 13px; transform: translateY(-150%); border-radius: 8px; color: white; background: var(--brand); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; z-index: 30; top: 14px; display: flex; width: min(1240px, calc(100% - 28px)); min-height: 68px; margin: 14px auto 0; padding: 10px 11px 10px 17px; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid rgba(214, 224, 237, .9); border-radius: 16px; background: rgba(255, 255, 255, .87); box-shadow: 0 12px 35px rgba(17, 48, 88, .08); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 11px; background: linear-gradient(145deg, #244ebf, #183581); box-shadow: 0 7px 16px rgba(30, 64, 175, .24); }
.brand-mark svg { width: 24px; fill: none; stroke: white; stroke-width: 1.7; }
.brand strong, .brand small { display: block; }
.brand strong { letter-spacing: -.02em; }
.brand small { margin-top: -1px; color: var(--muted); font-size: 10px; font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.status-pill, .eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.status-pill { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: #f8fafc; text-transform: none; letter-spacing: 0; }
.status-pill span, .eyebrow span, .console-label i, .console-foot i { width: 7px; height: 7px; border-radius: 50%; background: #25a772; box-shadow: 0 0 0 3px rgba(37, 167, 114, .12); }

main { width: min(1240px, calc(100% - 28px)); margin: 0 auto; }
.hero { position: relative; display: grid; min-height: 550px; grid-template-columns: 1.02fr .98fr; gap: 65px; align-items: center; padding: 86px 52px 78px; }
.hero::before { position: absolute; z-index: -1; top: -170px; left: 43%; width: 700px; height: 550px; border-radius: 50%; background: radial-gradient(circle, rgba(69, 125, 240, .16), rgba(104, 157, 255, .04) 48%, transparent 70%); content: ""; }
.hero-copy h1 { max-width: 650px; margin: 16px 0 20px; font-size: clamp(42px, 5vw, 68px); line-height: 1.03; letter-spacing: -.065em; }
.hero-copy h1 em { color: var(--brand-2); font-style: normal; }
.hero-copy > p { max-width: 580px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-primary { padding-inline: 20px; background: linear-gradient(135deg, #234db8, #1e40af); }
.trust-row { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 25px; color: var(--muted); font-size: 11px; font-weight: 700; }
.trust-row span { display: flex; align-items: center; gap: 5px; }
.trust-row svg { width: 15px; fill: none; stroke: #27825e; stroke-width: 2; }

.hero-console { overflow: hidden; border: 1px solid rgba(174, 196, 226, .45); border-radius: 20px; background: #10213b; box-shadow: 0 30px 60px rgba(13, 33, 65, .22); transform: perspective(1200px) rotateY(-2deg) rotateX(1deg); }
.console-top, .console-foot { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; color: #91a5c2; font-size: 11px; font-weight: 700; }
.console-top { border-bottom: 1px solid rgba(255,255,255,.08); }
.console-label, .console-foot span { display: flex; align-items: center; gap: 8px; }
.method { padding: 4px 8px; border-radius: 5px; color: #6ee7b7; background: rgba(16, 185, 129, .12); letter-spacing: .05em; }
.endpoint { margin: 16px 18px 4px; padding: 11px 13px; border: 1px solid rgba(255,255,255,.08); border-radius: 8px; color: #cbd8e9; background: rgba(255,255,255,.04); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.endpoint span { margin-right: 2px; color: #7da4f4; }
.hero-console pre { min-height: 260px; margin: 0; padding: 19px 24px; overflow: auto; color: #dbe7f7; font: 12px/1.8 ui-monospace, SFMono-Regular, Menlo, monospace; }
.syntax-key { color: #83b4ff; }.syntax-value { color: #8ce0bd; }.syntax-muted { color: #7288a6; }
.console-foot { border-top: 1px solid rgba(255,255,255,.08); background: rgba(7, 20, 39, .25); }.console-foot i { background: #29c885; }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 92px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.88); box-shadow: 0 16px 40px rgba(20, 45, 80, .07); }
.metric { display: flex; min-width: 0; padding: 22px 24px; align-items: center; gap: 13px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }.metric-callout { background: linear-gradient(135deg, #f7fbff, #eef5ff); }
.metric-icon, .card-icon { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 12px; color: var(--brand); background: var(--brand-soft); }
.metric-icon.blue { color: #2161c9; background: #e6f1ff; }.metric-icon.green, .card-icon.green { color: var(--green); background: var(--green-soft); }.metric-icon.amber { color: var(--amber); background: var(--amber-soft); }
.metric-icon svg, .card-icon svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.metric strong, .metric small { display: block; }.metric strong { font-size: 24px; line-height: 1.15; letter-spacing: -.04em; }.metric small { margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 650; }

.workspace { padding-bottom: 90px; scroll-margin-top: 105px; }
.section-heading { display: flex; margin-bottom: 26px; align-items: end; justify-content: space-between; gap: 30px; }
.section-heading h2 { margin: 8px 0 0; font-size: 32px; letter-spacing: -.045em; }.section-heading p { max-width: 430px; margin: 0; color: var(--muted); }
.app-shell { display: grid; min-height: 630px; grid-template-columns: 190px minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.tabs { display: flex; padding: 17px 12px; flex-direction: column; gap: 3px; border-right: 1px solid var(--line); background: #f8fafc; }
.nav-label { margin: 14px 10px 5px; color: var(--faint); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.tabs button { display: flex; width: 100%; min-height: 40px; padding: 9px 10px; align-items: center; justify-content: flex-start; gap: 9px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; box-shadow: none; font-size: 12px; }
.tabs button svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.tabs button:hover { color: var(--ink); background: #edf2f8; box-shadow: none; }.tabs button.active { color: var(--brand); background: #e9f0ff; }
.panel-wrap { min-width: 0; }.panel { display: none; min-height: 100%; padding: 30px; }.panel.active { display: block; }
.panel-heading { display: flex; margin-bottom: 22px; align-items: center; justify-content: space-between; gap: 18px; }.panel-heading h2 { margin: 2px 0 0; font-size: 24px; letter-spacing: -.04em; }.panel-kicker { color: var(--faint); font-size: 9px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.subtle-badge, .badge { display: inline-flex; padding: 5px 9px; border: 1px solid #cfe0f8; border-radius: 999px; color: #3264a8; background: #f1f7ff; font-size: 10px; font-weight: 750; }.badge.admin { border-color: #c9eadc; color: var(--green); background: var(--green-soft); }
.toolbar { display: flex; min-height: 50px; margin: 16px 0; padding: 7px 8px 7px 13px; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 11px; background: #f8fafc; }
.muted { color: var(--muted); }.toolbar .muted { font-size: 11px; font-weight: 650; }
.search-box { display: flex; min-width: min(340px, 100%); margin-left: auto; align-items: center; gap: 7px; }.search-box svg { width: 16px; fill: none; stroke: var(--faint); stroke-width: 2; }.search { width: 100%; }
label { display: grid; gap: 6px; color: #52637b; font-size: 11px; font-weight: 700; }
input, select { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid #d7e0eb; border-radius: 8px; outline: none; color: var(--ink); background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
input::placeholder { color: #9ba8b8; }input:focus, select:focus { border-color: #6c94df; box-shadow: 0 0 0 3px rgba(37,99,235,.11); }
.search-box input { min-height: 34px; padding: 5px 0; border: 0; background: transparent; }.search-box input:focus { box-shadow: none; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(130px, 1fr)) auto auto; margin: 16px 0 20px; padding: 16px; align-items: end; gap: 10px; border: 1px solid var(--line); border-radius: 12px; background: #f8fafc; }
.auth-required, .admin-only, .signed-in-only, .tabs button.admin-only, .tabs button.signed-in-only { display: none; }.auth-required.allowed { display: grid; }.admin-only.allowed, .signed-in-only.allowed { display: block; }button.admin-only.allowed, button.signed-in-only.allowed { display: flex; }.nav-label.admin-only.allowed { display: block; }
.table-wrap { max-width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: 11px; }
table { width: 100%; min-width: 650px; border-collapse: collapse; background: #fff; }th, td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }th { color: #718097; background: #f8fafc; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }td { color: #41536c; font-size: 12px; }tbody tr:last-child td { border-bottom: 0; }tbody tr:hover { background: #f9fbfe; }td strong { color: var(--ink); }td.actions { text-align: right; }td.actions button { min-height: 30px; margin-left: 4px; padding: 5px 9px; font-size: 10px; }
.empty { padding: 35px; text-align: center; color: var(--faint); }.pagination { display: flex; margin-top: 12px; align-items: center; justify-content: flex-end; gap: 10px; color: var(--muted); font-size: 10px; font-weight: 700; }.pagination div { display: flex; align-items: center; gap: 7px; }.pagination button { min-height: 32px; padding: 5px 9px; border-color: var(--line); color: var(--muted); background: #fff; box-shadow: none; font-size: 10px; }.pagination button:disabled { cursor: not-allowed; opacity: .45; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }.card { margin-bottom: 18px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 8px 25px rgba(22, 44, 78, .05); }.card.form-grid { display: grid; grid-template-columns: 1fr; margin: 0; align-items: initial; }.card h2 { margin: 3px 0; font-size: 19px; }.card p { margin: 3px 0 12px; }.card-icon { width: 38px; height: 38px; }.profile-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }pre { padding: 14px; overflow: auto; border-radius: 10px; color: #dce8f8; background: #10213b; font-size: 11px; }.usage-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 26px; }.stat { padding: 15px; border: 1px solid var(--line); border-radius: 11px; background: #f8fafc; }.stat strong, .stat span { display: block; }.stat strong { margin-bottom: 2px; font-size: 21px; letter-spacing: -.04em; }.stat span { color: var(--muted); font-size: 10px; font-weight: 700; }.panel h3 { margin: 28px 0 9px; font-size: 14px; }.inline-actions { display: flex; align-items: end; gap: 8px; }.inline-actions label { min-width: 130px; }.upload-form { grid-template-columns: 1fr auto; max-width: 620px; }
#toast { position: fixed; z-index: 50; right: 20px; bottom: 20px; display: none; max-width: 360px; padding: 12px 15px; border: 1px solid rgba(255,255,255,.15); border-radius: 10px; color: #fff; background: var(--ink); box-shadow: var(--shadow); font-size: 12px; font-weight: 650; }#toast.error { background: var(--danger); }
footer { display: flex; width: min(1240px, calc(100% - 28px)); margin: 0 auto; padding: 25px 4px 35px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }footer div { display: flex; gap: 18px; }footer a { color: var(--muted); text-decoration: none; }footer a:hover { color: var(--brand); }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 35px; padding: 75px 30px 55px; }.hero-copy { text-align: center; }.hero-copy > p { margin-inline: auto; }.hero-actions, .trust-row { justify-content: center; }.hero-console { width: min(620px, 100%); margin: auto; transform: none; }
  .metrics { grid-template-columns: repeat(2, 1fr); }.metric:nth-child(2) { border-right: 0; }.metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .app-shell { grid-template-columns: 1fr; }.tabs { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }.tabs button { width: auto; flex: 0 0 auto; }.nav-label { display: none !important; }
  .usage-stats { grid-template-columns: repeat(2, 1fr); }.form-grid { grid-template-columns: repeat(2, minmax(140px, 1fr)); }.card.form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .site-header { top: 8px; width: calc(100% - 16px); margin-top: 8px; padding: 8px 9px; }.brand small, .status-pill { display: none; }.brand-mark { width: 36px; height: 36px; }.header-actions .button { min-height: 36px; padding: 7px 9px; font-size: 11px; }
  main { width: calc(100% - 20px); }.hero { min-height: auto; padding: 66px 4px 45px; }.hero-copy h1 { font-size: 41px; }.hero-copy > p { font-size: 14px; }.trust-row { gap: 10px; }.hero-console pre { min-height: 230px; padding: 15px; font-size: 10px; }.endpoint { font-size: 10px; }
  .metrics { grid-template-columns: 1fr; margin-bottom: 65px; }.metric { border-right: 0; border-bottom: 1px solid var(--line); }.metric:last-child { border-bottom: 0; }
  .section-heading { display: block; }.section-heading h2 { font-size: 27px; }.section-heading p { margin-top: 8px; }.panel { padding: 20px 14px; }.panel-heading { align-items: flex-start; }.panel-heading .inline-actions { width: 100%; }.toolbar { align-items: stretch; flex-direction: column; }.search-box { min-width: 0; margin-left: 0; }.form-grid, .auth-required.allowed, .account-grid, .usage-stats, .upload-form { grid-template-columns: 1fr; }.form-grid button { width: 100%; }.profile-card { align-items: flex-start; flex-direction: column; }.pagination { justify-content: center; }.pagination > span { display: none; }.inline-actions { flex-wrap: wrap; }.workspace { padding-bottom: 65px; }footer { align-items: flex-start; flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
