:root {
  --background-100: #000;
  --background-200: #0a0a0a;
  --gray-100: #111;
  --gray-200: #1a1a1a;
  --gray-300: #222;
  --gray-400: #2e2e2e;
  --gray-500: #454545;
  --gray-600: #666;
  --gray-700: #7d7d7d;
  --gray-800: #8f8f8f;
  --gray-900: #a1a1a1;
  --gray-1000: #ededed;
  --blue-100: #10233f;
  --blue-700: #0070f3;
  --blue-800: #3291ff;
  --blue-900: #52a8ff;
  --green-100: #102617;
  --green-700: #46a758;
  --green-900: #62c073;
  --amber-100: #2b2111;
  --amber-700: #f5a623;
  --amber-900: #f0bc65;
  --red-100: #2b1113;
  --red-700: #e5484d;
  --red-900: #ff7377;
  --radius: 6px;
  --radius-large: 12px;
  --sidebar: 224px;
  --topbar: 64px;
  --shadow-small: 0 0 0 1px rgba(255,255,255,.035), 0 2px 8px rgba(0,0,0,.38);
  --shadow-medium: 0 0 0 1px rgba(255,255,255,.045), 0 8px 20px rgba(0,0,0,.45);
  --shadow-large: 0 0 0 1px rgba(255,255,255,.055), 0 18px 50px rgba(0,0,0,.65);
  font-family: Geist, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
  color: var(--gray-1000);
  background: var(--background-100);
  font-synthesis: none;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--background-100); scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--background-100); color: var(--gray-1000); }
button, input, textarea { font: inherit; }
button { color: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button:focus, a:focus, input:focus, textarea:focus, select:focus { outline: none; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--gray-1000); outline-offset: 2px; }
::selection { color: #000; background: #fff; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); grid-template-rows: var(--topbar) 1fr; }
.topbar { grid-column: 1 / -1; height: var(--topbar); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; border-bottom: 1px solid var(--gray-400); background: rgba(0,0,0,.86); backdrop-filter: saturate(180%) blur(16px); position: sticky; top: 0; z-index: 20; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; font-size: 14px; }
.brand-divider { width: 1px; height: 24px; background: var(--gray-400); }
.environment-badge, .pill { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 999px; background: var(--gray-100); color: var(--gray-900); font-size: 12px; line-height: 1; }
.vercel-mark { width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-bottom: 18px solid var(--gray-1000); transform: translateY(-1px); }
.vercel-mark.small { border-left-width: 7px; border-right-width: 7px; border-bottom-width: 12px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.uid-control { height: 34px; display: flex; align-items: center; overflow: hidden; border: 1px solid var(--gray-400); border-radius: var(--radius); background: var(--background-100); transition: border-color .15s, box-shadow .15s; }
.uid-control:focus-within { border-color: var(--gray-1000); box-shadow: 0 0 0 1px var(--gray-1000); }
.uid-control span { padding: 0 9px; border-right: 1px solid var(--gray-400); color: var(--gray-900); font: 10px/32px "Geist Mono", ui-monospace, monospace; letter-spacing: .05em; }
.uid-control input { width: 112px; height: 32px; padding: 0 9px; border: 0; outline: 0; color: var(--gray-1000); background: transparent; font: 12px "Geist Mono", ui-monospace, monospace; }
.connection-button { height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid var(--gray-400); border-radius: var(--radius); background: var(--background-100); cursor: pointer; font-size: 12px; transition: background .15s, border-color .15s; }
.connection-button:hover { border-color: var(--gray-500); background: var(--background-200); }
.status-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--gray-600); }
.status-dot.online { background: var(--green-700); box-shadow: 0 0 0 3px rgba(70,167,88,.12); }
.status-dot.offline { background: var(--red-700); box-shadow: 0 0 0 3px rgba(229,72,77,.12); }
.status-dot.pending { animation: pulse 1.3s ease-in-out infinite; }

.sidebar { min-height: calc(100vh - var(--topbar)); display: flex; flex-direction: column; padding: 18px 12px 14px; border-right: 1px solid var(--gray-400); background: var(--background-200); position: sticky; top: var(--topbar); align-self: start; }
.primary-nav, .category-nav { display: grid; gap: 2px; }
.sidebar-section { margin-top: 24px; }
.sidebar-label { padding: 0 10px 8px; color: var(--gray-800); font: 10px/16px "Geist Mono", ui-monospace, monospace; letter-spacing: .06em; }
.nav-link, .category-link { width: 100%; min-height: 34px; display: flex; align-items: center; gap: 9px; padding: 0 10px; border: 0; border-radius: var(--radius); color: var(--gray-900); background: transparent; cursor: pointer; text-align: left; font-size: 13px; transition: color .12s, background .12s; }
.nav-link:hover, .category-link:hover { color: var(--gray-1000); background: var(--gray-200); }
.nav-link.active, .category-link.active { color: var(--gray-1000); background: var(--background-100); box-shadow: var(--shadow-small); }
.nav-icon { width: 16px; color: var(--gray-800); text-align: center; font: 13px "Geist Mono", ui-monospace, monospace; }
.nav-link em, .category-link em { margin-left: auto; color: var(--gray-800); font: normal 10px "Geist Mono", ui-monospace, monospace; }
.category-link::before { content: ""; width: 6px; height: 6px; border: 1px solid var(--gray-600); border-radius: 50%; }
.category-link.active::before { border-color: var(--gray-1000); background: var(--gray-1000); }
.sidebar-footer { margin-top: auto; padding: 14px 10px 2px; border-top: 1px solid var(--gray-400); color: var(--gray-900); font-size: 11px; }
.sidebar-footer div { display: flex; align-items: center; gap: 8px; }
.sidebar-footer code { display: block; margin-top: 8px; color: var(--gray-700); font: 10px "Geist Mono", ui-monospace, monospace; }

.main { min-width: 0; background-color: var(--background-100); background-image: linear-gradient(var(--gray-200) 1px, transparent 1px), linear-gradient(90deg, var(--gray-200) 1px, transparent 1px); background-size: 64px 64px; background-position: -1px -1px; }
.route-view { display: none; min-height: calc(100vh - var(--topbar)); background: rgba(0,0,0,.92); }
.route-view.active { display: block; animation: route-in .28s cubic-bezier(.2,.8,.2,1); }
.page-width { width: min(1120px, calc(100% - 64px)); margin: 0 auto; padding: 68px 0 96px; }
.page-width.wide { width: min(1240px, calc(100% - 64px)); }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 44px; }
.page-header h1 { margin: 8px 0 12px; font-size: clamp(36px, 5vw, 56px); line-height: 1; letter-spacing: -.055em; font-weight: 600; }
.page-header .lede { max-width: 620px; margin: 0; color: var(--gray-900); font-size: 15px; line-height: 1.65; }
.mono-label { margin: 0; color: var(--gray-800); font: 11px/16px "Geist Mono", ui-monospace, monospace; letter-spacing: .08em; }
.reveal { opacity: 0; transform: translateY(8px); animation: reveal .55s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: var(--delay, 0ms); }

.button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 16px; border: 1px solid transparent; border-radius: var(--radius); cursor: pointer; font-size: 14px; font-weight: 500; transition: border-color .15s, background .15s, color .15s, transform .15s, box-shadow .15s; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button.primary { color: #000; background: var(--gray-1000); border-color: var(--gray-1000); }
.button.primary:hover { background: #fff; box-shadow: 0 4px 16px rgba(255,255,255,.12); }
.button.secondary { color: var(--gray-1000); background: var(--background-100); border-color: var(--gray-400); }
.button.secondary:hover { border-color: var(--gray-600); background: var(--background-200); }
.button.danger { color: var(--red-900); background: var(--red-100); border-color: #ffcaca; }
.button.small { min-height: 32px; padding: 0 10px; font-size: 12px; }
.button.full { width: 100%; }
.command-button { min-width: 56px; gap: 3px; padding: 0 8px; }
kbd { min-width: 17px; padding: 2px 4px; border: 1px solid var(--gray-400); border-bottom-color: var(--gray-500); border-radius: 4px; background: var(--background-200); color: var(--gray-900); font: 10px/1.2 "Geist Mono", ui-monospace, monospace; box-shadow: 0 1px 0 var(--gray-300); }
.text-button { padding: 0; border: 0; color: var(--gray-900); background: transparent; cursor: pointer; font-size: 12px; }
.text-button:hover { color: var(--gray-1000); text-decoration: underline; text-underline-offset: 3px; }
.icon-button { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 1px solid var(--gray-400); border-radius: 50%; background: var(--background-100); cursor: pointer; color: var(--gray-900); font-size: 20px; }
.icon-button:hover { border-color: var(--gray-600); color: var(--gray-1000); }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--gray-400); border-radius: var(--radius-large); overflow: hidden; background: var(--background-100); box-shadow: var(--shadow-small); }
.metric-grid article { min-height: 148px; padding: 22px; border-right: 1px solid var(--gray-400); }
.metric-grid article:last-child { border-right: 0; }
.metric-grid span, .metric-grid small { display: block; color: var(--gray-900); font-size: 12px; }
.metric-grid strong { display: block; margin: 26px 0 8px; font-size: 34px; line-height: 1; letter-spacing: -.05em; font-weight: 500; font-variant-numeric: tabular-nums; }
.metric-grid small { font: 10px "Geist Mono", ui-monospace, monospace; }
.overview-grid { display: grid; grid-template-columns: 1.15fr .85fr; margin-top: 24px; gap: 24px; }
.panel { border: 1px solid var(--gray-400); border-radius: var(--radius-large); background: var(--background-100); box-shadow: var(--shadow-small); }
.panel-header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; border-bottom: 1px solid var(--gray-400); }
.panel-header h2 { margin: 0; font-size: 14px; font-weight: 500; }
.panel-header p { margin: 4px 0 0; color: var(--gray-800); font-size: 11px; }
.quick-functions { display: grid; grid-template-columns: 1fr 1fr; }
.quick-card { min-height: 118px; display: flex; flex-direction: column; justify-content: space-between; padding: 18px; border: 0; border-right: 1px solid var(--gray-400); border-bottom: 1px solid var(--gray-400); background: var(--background-100); cursor: pointer; text-align: left; transition: background .15s; }
.quick-card:nth-child(2n) { border-right: 0; }
.quick-card:nth-last-child(-n+2) { border-bottom: 0; }
.quick-card:hover { background: var(--background-200); }
.quick-card b { font-size: 13px; font-weight: 500; }
.quick-card span { display: flex; align-items: center; justify-content: space-between; color: var(--gray-800); font: 10px "Geist Mono", ui-monospace, monospace; }
.quick-card span i { font-style: normal; transition: transform .15s; }
.quick-card:hover span i { transform: translateX(3px); }
.recent-jobs { min-height: 236px; }
.recent-row { min-height: 59px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--gray-400); cursor: pointer; }
.recent-row:last-child { border-bottom: 0; }
.recent-row:hover { background: var(--background-200); }
.recent-row b, .recent-row small { display: block; }
.recent-row b { font-size: 12px; font-weight: 500; }
.recent-row small { margin-top: 4px; color: var(--gray-800); font: 10px "Geist Mono", ui-monospace, monospace; }
.runtime-panel { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 24px; padding: 0 24px; border: 1px solid var(--gray-400); border-radius: var(--radius-large); background: var(--gray-1000); color: #fff; box-shadow: var(--shadow-medium); }
.runtime-copy { display: flex; align-items: center; gap: 16px; }
.runtime-copy .vercel-mark { border-bottom-color: #fff; }
.runtime-copy h2 { margin: 0; font-size: 14px; }
.runtime-copy p { margin: 5px 0 0; color: #999; font: 10px "Geist Mono", ui-monospace, monospace; }
.runtime-flow { display: flex; align-items: center; color: #b5b5b5; font: 10px "Geist Mono", ui-monospace, monospace; }
.runtime-flow i { width: 28px; height: 1px; margin: 0 7px; overflow: hidden; background: #333; position: relative; }
.runtime-flow i::after { content: ""; position: absolute; width: 8px; height: 1px; background: #fff; animation: flow 1.8s linear infinite; }

.functions-header, .jobs-header { margin-bottom: 28px; }
.function-toolbar, .jobs-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.search-field { height: 42px; flex: 1; max-width: 520px; display: flex; align-items: center; gap: 10px; padding: 0 11px; border: 1px solid var(--gray-400); border-radius: var(--radius); background: var(--background-100); box-shadow: var(--shadow-small); }
.search-field:focus-within { border-color: var(--gray-1000); box-shadow: 0 0 0 1px var(--gray-1000); }
.search-field svg { width: 15px; height: 15px; fill: none; stroke: var(--gray-800); stroke-width: 1.5; }
.search-field input { min-width: 0; flex: 1; height: 40px; border: 0; outline: 0; background: transparent; font-size: 13px; }
.filter-pills { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.filter-pills button { min-height: 30px; padding: 0 11px; white-space: nowrap; border: 1px solid transparent; border-radius: 999px; color: var(--gray-900); background: transparent; cursor: pointer; font-size: 12px; }
.filter-pills button:hover { color: var(--gray-1000); background: var(--gray-100); }
.filter-pills button.active { color: var(--gray-1000); border-color: var(--gray-400); background: var(--background-100); box-shadow: var(--shadow-small); }
.function-groups { display: grid; gap: 32px; }
.function-group { animation: reveal .35s cubic-bezier(.2,.8,.2,1) both; }
.group-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.group-heading h2 { margin: 0; font-size: 14px; font-weight: 500; }
.group-heading span { color: var(--gray-800); font: 10px "Geist Mono", ui-monospace, monospace; }
.function-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--gray-400); border-radius: var(--radius-large); overflow: hidden; background: var(--background-100); box-shadow: var(--shadow-small); }
.function-card { min-height: 164px; display: flex; flex-direction: column; padding: 19px; border: 0; border-right: 1px solid var(--gray-400); border-bottom: 1px solid var(--gray-400); background: var(--background-100); cursor: pointer; text-align: left; position: relative; transition: background .15s, transform .18s, box-shadow .18s; }
.function-card:nth-child(3n) { border-right: 0; }
.function-card:hover { z-index: 1; background: var(--background-200); box-shadow: inset 0 0 0 1px var(--gray-500); }
.function-card:focus-visible { z-index: 2; outline: 2px solid var(--gray-1000); outline-offset: -2px; }
.function-card-head { display: flex; justify-content: space-between; gap: 10px; }
.function-card code { color: var(--gray-800); font: 10px/16px "Geist Mono", ui-monospace, monospace; }
.function-card .mutation-dot { width: 6px; height: 6px; margin-top: 4px; border-radius: 50%; background: var(--amber-700); box-shadow: 0 0 0 3px var(--amber-100); }
.function-card h3 { margin: 22px 0 7px; font-size: 14px; font-weight: 500; letter-spacing: -.01em; }
.function-card p { margin: 0; color: var(--gray-900); font-size: 12px; line-height: 1.55; }
.function-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 16px; color: var(--gray-800); font: 10px "Geist Mono", ui-monospace, monospace; }
.function-card-foot i { font-style: normal; transition: transform .15s; }
.function-card:hover .function-card-foot i { transform: translateX(3px); }

.jobs-toolbar { margin-bottom: 12px; }
.mono-note { color: var(--gray-800); font: 10px "Geist Mono", ui-monospace, monospace; }
.jobs-table-wrap { overflow: hidden; }
.jobs-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.jobs-table th { height: 42px; padding: 0 16px; border-bottom: 1px solid var(--gray-400); color: var(--gray-800); background: var(--background-200); font-size: 11px; font-weight: 400; text-align: left; }
.jobs-table td { height: 58px; padding: 0 16px; border-bottom: 1px solid var(--gray-400); }
.jobs-table tr:last-child td { border-bottom: 0; }
.jobs-table tbody tr { cursor: pointer; transition: background .12s; }
.jobs-table tbody tr:hover { background: var(--background-200); }
.jobs-table code { color: var(--gray-800); font: 10px "Geist Mono", ui-monospace, monospace; }
.job-name b, .job-name small { display: block; }
.job-name b { font-size: 12px; font-weight: 500; }
.job-name small { margin-top: 3px; color: var(--gray-800); font: 9px "Geist Mono", ui-monospace, monospace; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; min-height: 23px; padding: 0 8px; border-radius: 999px; background: var(--gray-100); color: var(--gray-900); font-size: 11px; }
.status-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gray-600); }
.status-badge.running { color: var(--blue-900); background: var(--blue-100); }
.status-badge.running::before { background: var(--blue-700); animation: pulse 1.2s ease-in-out infinite; }
.status-badge.pending { color: var(--amber-900); background: var(--amber-100); }
.status-badge.pending::before { background: var(--amber-700); }
.status-badge.success { color: var(--green-900); background: var(--green-100); }
.status-badge.success::before { background: var(--green-700); }
.status-badge.failed { color: var(--red-900); background: var(--red-100); }
.status-badge.failed::before { background: var(--red-700); }
.row-arrow { color: var(--gray-700); font-size: 15px; }

.empty-panel { padding: 80px 24px; border: 1px dashed var(--gray-500); border-radius: var(--radius-large); background: rgba(250,250,250,.8); text-align: center; }
.empty-panel.compact { border: 0; border-radius: 0; }
.empty-panel h2 { margin: 15px 0 6px; font-size: 14px; font-weight: 500; }
.empty-panel p { margin: 0; color: var(--gray-800); font-size: 12px; }
.empty-glyph { width: 38px; height: 38px; display: grid; place-items: center; margin: 0 auto; border: 1px solid var(--gray-400); border-radius: 50%; background: var(--background-100); color: var(--gray-800); font: 15px "Geist Mono", ui-monospace, monospace; box-shadow: var(--shadow-small); }
.hidden { display: none !important; }
.skeleton-block:empty { min-height: 236px; background: linear-gradient(90deg, var(--background-100) 25%, var(--gray-100) 50%, var(--background-100) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }

dialog { padding: 0; border: 0; background: transparent; color: var(--gray-1000); }
dialog::backdrop { background: rgba(0,0,0,.32); backdrop-filter: blur(2px); animation: backdrop-in .2s ease-out; }
.sheet-dialog { width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 32px); margin-right: 16px; }
.sheet-layout, .job-detail-layout { max-height: calc(100vh - 32px); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; border: 1px solid var(--gray-400); border-radius: var(--radius-large); background: var(--background-100); box-shadow: var(--shadow-large); animation: sheet-in .28s cubic-bezier(.2,.8,.2,1); }
.sheet-header { min-height: 106px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px; border-bottom: 1px solid var(--gray-400); }
.sheet-header h2 { margin: 9px 0 5px; font-size: 22px; letter-spacing: -.03em; font-weight: 600; }
.sheet-header code { color: var(--gray-800); font: 10px "Geist Mono", ui-monospace, monospace; }
.sheet-title-row { display: flex; gap: 6px; }
.pill.danger { color: var(--amber-900); background: var(--amber-100); }
.sheet-body { overflow: auto; padding: 22px; }
.sheet-description { margin: 0 0 22px; color: var(--gray-900); font-size: 13px; line-height: 1.6; }
.dialog-user-row { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px; margin-bottom: 22px; }
.dialog-user-row label, .connection-card label { display: block; }
.connection-card label + label { margin-top: 12px; }
.connection-note { margin: 8px 0 12px; color: var(--gray-800); font-size: 10px; line-height: 1.5; }
.dialog-user-row label span, .connection-card label span { display: block; margin-bottom: 7px; color: var(--gray-900); font-size: 12px; }
input, textarea { width: 100%; border: 1px solid var(--gray-400); border-radius: var(--radius); outline: 0; color: var(--gray-1000); background: var(--background-100); transition: border-color .15s, box-shadow .15s; }
input { height: 40px; padding: 0 11px; font-size: 13px; }
input:focus, textarea:focus { border-color: var(--gray-1000); box-shadow: 0 0 0 1px var(--gray-1000); }
.editor-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.editor-header > div { display: flex; align-items: center; gap: 10px; }
.editor-header span { font-size: 12px; font-weight: 500; }
.editor-header small { color: var(--gray-800); font: 9px "Geist Mono", ui-monospace, monospace; }
.code-editor { min-height: 300px; display: grid; grid-template-columns: 42px 1fr; overflow: hidden; border: 1px solid #333; border-radius: var(--radius); background: #0a0a0a; box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); }
.line-numbers { padding: 14px 10px; border-right: 1px solid #292929; color: #555; font: 12px/20px "Geist Mono", ui-monospace, monospace; text-align: right; white-space: pre; user-select: none; }
.code-editor textarea { min-height: 300px; padding: 14px; border: 0; border-radius: 0; resize: vertical; color: #ededed; background: transparent; caret-color: #fff; font: 12px/20px "Geist Mono", ui-monospace, monospace; white-space: pre; tab-size: 2; }
.code-editor textarea:focus { box-shadow: none; }
.inline-error { margin-top: 8px; padding: 9px 11px; border: 1px solid #ffcaca; border-radius: var(--radius); color: var(--red-900); background: var(--red-100); font: 11px/16px "Geist Mono", ui-monospace, monospace; }
.request-preview { margin-top: 18px; border: 1px solid var(--gray-400); border-radius: var(--radius); }
.request-preview summary { padding: 11px 13px; cursor: pointer; color: var(--gray-900); font-size: 12px; }
.request-preview pre { max-height: 180px; overflow: auto; margin: 0; padding: 13px; border-top: 1px solid var(--gray-400); background: var(--background-200); font: 10px/17px "Geist Mono", ui-monospace, monospace; white-space: pre-wrap; word-break: break-word; }
.sheet-footer { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 22px; border-top: 1px solid var(--gray-400); background: var(--background-200); }
.sheet-footer > span { color: var(--gray-800); font-size: 11px; }
.button.loading { pointer-events: none; color: transparent; position: relative; }
.button.loading::after { content: ""; width: 18px; height: 5px; position: absolute; background: radial-gradient(circle, currentColor 2px, transparent 2.5px) 0 0/6px 5px; color: #000; animation: loading-dots .8s steps(3) infinite; }

.job-dialog { width: min(820px, calc(100vw - 32px)); }
.job-detail-layout { height: min(720px, calc(100vh - 32px)); grid-template-rows: auto auto minmax(0, 1fr) auto; }
.job-tabs { display: flex; padding: 0 22px; border-bottom: 1px solid var(--gray-400); }
.job-tabs button { height: 42px; margin-bottom: -1px; padding: 0 12px; border: 0; border-bottom: 2px solid transparent; color: var(--gray-900); background: transparent; cursor: pointer; font-size: 12px; }
.job-tabs button.active { border-bottom-color: var(--gray-1000); color: var(--gray-1000); }
.job-code-view { min-height: 0; overflow: auto; background: #0a0a0a; }
.job-code-view pre { min-height: 100%; margin: 0; padding: 20px; color: #ededed; font: 11px/18px "Geist Mono", ui-monospace, monospace; white-space: pre-wrap; word-break: break-word; }

.command-dialog { width: min(620px, calc(100vw - 28px)); margin-top: 14vh; vertical-align: top; }
.command-box { overflow: hidden; border: 1px solid var(--gray-400); border-radius: var(--radius-large); background: var(--background-100); box-shadow: var(--shadow-large); animation: command-in .2s ease-out; }
.command-search { height: 58px; display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--gray-400); }
.command-search > span { font-size: 16px; }
.command-search input { flex: 1; height: 56px; padding: 0; border: 0; box-shadow: none; font-size: 15px; }
.command-search input:focus { box-shadow: none; }
.command-results { max-height: 420px; overflow: auto; padding: 8px; }
.command-item { width: 100%; min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 11px; border: 0; border-radius: var(--radius); background: transparent; cursor: pointer; text-align: left; }
.command-item:hover, .command-item.selected { background: var(--gray-100); }
.command-item b, .command-item small { display: block; }
.command-item b { font-size: 12px; font-weight: 500; }
.command-item small { margin-top: 3px; color: var(--gray-800); font: 9px "Geist Mono", ui-monospace, monospace; }
.command-item > span { color: var(--gray-700); font-size: 12px; }

.connection-dialog { width: min(430px, calc(100vw - 28px)); }
.connection-card { padding: 22px; border: 1px solid var(--gray-400); border-radius: var(--radius-large); background: var(--background-100); box-shadow: var(--shadow-large); animation: command-in .2s ease-out; }
.connection-card header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; }
.connection-card h2 { margin: 5px 0 0; font-size: 22px; letter-spacing: -.03em; }
.connection-summary { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding: 14px; border: 1px solid var(--gray-400); border-radius: var(--radius); background: var(--background-200); }
.connection-summary strong, .connection-summary small { display: block; }
.connection-summary strong { font-size: 12px; }
.connection-summary small { margin-top: 3px; color: var(--gray-800); font: 10px "Geist Mono", ui-monospace, monospace; }
.connection-card > p { margin: 9px 0 20px; color: var(--gray-800); font-size: 11px; }

.toast-region { width: min(360px, calc(100vw - 32px)); display: grid; gap: 8px; position: fixed; right: 18px; bottom: 18px; z-index: 100; }
.toast { display: grid; grid-template-columns: 20px 1fr 24px; align-items: start; gap: 10px; padding: 13px; border: 1px solid var(--gray-400); border-radius: var(--radius-large); background: var(--background-100); box-shadow: var(--shadow-medium); animation: toast-in .25s cubic-bezier(.2,.8,.2,1); font-size: 12px; line-height: 1.45; touch-action: pan-y; user-select: none; transition: transform .18s ease, opacity .18s ease; }
.toast.leaving { opacity: 0; }
.toast-text { word-break: break-word; }
.toast-close { width: 24px; height: 24px; margin: -4px -4px 0 0; padding: 0; border: 0; border-radius: 50%; color: var(--gray-800); background: transparent; cursor: pointer; font-size: 18px; line-height: 1; }
.toast-close:hover { color: var(--gray-1000); background: var(--gray-100); }
.toast-icon { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; color: #000; background: var(--gray-1000); font-size: 10px; }
.toast.error .toast-icon { background: var(--red-700); }

@keyframes reveal { to { opacity: 1; transform: translateY(0); } }
@keyframes route-in { from { opacity: 0; transform: translateY(4px); } }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes flow { from { transform: translateX(-8px); } to { transform: translateX(30px); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes backdrop-in { from { opacity: 0; } }
@keyframes sheet-in { from { opacity: 0; transform: translateX(20px) scale(.99); } }
@keyframes command-in { from { opacity: 0; transform: translateY(-8px) scale(.985); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes loading-dots { to { background-position: 6px 0; } }

@media (max-width: 1050px) {
  :root { --sidebar: 190px; }
  .function-grid { grid-template-columns: repeat(2, 1fr); }
  .function-card:nth-child(3n) { border-right: 1px solid var(--gray-400); }
  .function-card:nth-child(2n) { border-right: 0; }
  .overview-grid { grid-template-columns: 1fr; }
  .runtime-panel { align-items: flex-start; flex-direction: column; padding: 22px; }
}

@media (max-width: 760px) {
  :root { --topbar: 58px; }
  .app-shell { display: block; }
  .topbar { height: var(--topbar); padding: 0 14px; }
  .brand-divider, .environment-badge, .command-button { display: none; }
  .brand { gap: 9px; }
  .brand strong { font-size: 13px; }
  .uid-control span { display: none; }
  .uid-control input { width: 94px; }
  .connection-button > span:last-child { display: none; }
  .connection-button { width: 34px; justify-content: center; padding: 0; }
  .sidebar { min-height: 0; display: block; padding: 8px 10px; border-right: 0; border-bottom: 1px solid var(--gray-400); position: sticky; top: var(--topbar); z-index: 15; }
  .primary-nav { display: flex; overflow-x: auto; }
  .nav-link { width: auto; flex: 0 0 auto; }
  .nav-icon, .nav-link em, .sidebar-section, .sidebar-footer { display: none; }
  .route-view { min-height: calc(100vh - 104px); }
  .page-width, .page-width.wide { width: calc(100% - 28px); padding: 40px 0 70px; }
  .page-header { align-items: flex-start; flex-direction: column; margin-bottom: 30px; }
  .page-header h1 { font-size: 38px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-grid article { min-height: 120px; border-bottom: 1px solid var(--gray-400); }
  .metric-grid article:nth-child(2n) { border-right: 0; }
  .metric-grid article:nth-last-child(-n+2) { border-bottom: 0; }
  .function-toolbar { align-items: stretch; flex-direction: column; }
  .search-field { max-width: none; }
  .function-grid { grid-template-columns: 1fr; }
  .function-card, .function-card:nth-child(2n), .function-card:nth-child(3n) { border-right: 0; }
  .jobs-table th:nth-child(2), .jobs-table td:nth-child(2), .jobs-table th:nth-child(4), .jobs-table td:nth-child(4), .jobs-table th:nth-child(5), .jobs-table td:nth-child(5) { display: none; }
  .sheet-dialog { width: 100vw; max-height: 100vh; margin: auto 0 0; }
  .sheet-layout { max-height: 94vh; border-radius: 16px 16px 0 0; animation-name: sheet-up; }
  .job-dialog { width: calc(100vw - 16px); }
  .dialog-user-row { grid-template-columns: 1fr; }
  .runtime-flow { width: 100%; justify-content: space-between; }
  .runtime-flow i { flex: 1; }
}

@media (max-width: 470px) {
  .metric-grid { grid-template-columns: 1fr; }
  .metric-grid article { border-right: 0; }
  .metric-grid article:nth-last-child(-n+2) { border-bottom: 1px solid var(--gray-400); }
  .metric-grid article:last-child { border-bottom: 0; }
  .quick-functions { grid-template-columns: 1fr; }
  .quick-card, .quick-card:nth-child(2n) { border-right: 0; border-bottom: 1px solid var(--gray-400); }
  .quick-card:last-child { border-bottom: 0; }
  .runtime-flow span { font-size: 8px; }
  .sheet-header, .sheet-body { padding: 18px; }
  .sheet-footer { padding: 12px 18px; }
}

@keyframes sheet-up { from { opacity: 0; transform: translateY(24px); } }

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

/* API console layout: direct function selection and guided forms. */
.console-shell { grid-template-columns: 286px minmax(0, 1fr); height: 100dvh; overflow: hidden; }
.console-topbar { z-index: 40; }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-size: 14px; font-weight: 600; letter-spacing: -.02em; }
.brand-copy small { color: var(--gray-800); font: 9px/12px "Geist Mono", ui-monospace, monospace; letter-spacing: .06em; }
.top-history em { min-width: 19px; height: 19px; display: inline-grid; place-items: center; border-radius: 999px; color: var(--gray-900); background: var(--gray-100); font: normal 10px "Geist Mono", ui-monospace, monospace; }
.mobile-menu { display: none; }

.api-sidebar { height: calc(100dvh - var(--topbar)); min-height: 0; padding: 0 8px 14px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--gray-500) transparent; }
.sidebar-sticky-head { position: sticky; top: 0; z-index: 3; height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; border-bottom: 1px solid var(--gray-400); background: rgba(10,10,10,.94); backdrop-filter: blur(10px); }
.sidebar-sticky-head strong { font-size: 12px; font-weight: 500; }
.sidebar-sticky-head span { color: var(--gray-800); font: 9px "Geist Mono", ui-monospace, monospace; }
.sidebar-search { height: 34px; display: flex; align-items: center; gap: 8px; margin: 10px 4px 8px; padding: 0 9px; border: 1px solid var(--gray-400); border-radius: var(--radius); background: var(--background-100); }
.sidebar-search:focus-within { border-color: var(--gray-1000); box-shadow: 0 0 0 1px var(--gray-1000); }
.sidebar-search svg { width: 14px; height: 14px; fill: none; stroke: var(--gray-800); stroke-width: 1.5; }
.sidebar-search input { height: 32px; min-width: 0; padding: 0; border: 0; box-shadow: none; background: transparent; font-size: 12px; }
.sidebar-search input:focus { box-shadow: none; }
.function-nav { display: grid; gap: 0; }
.nav-group { padding: 9px 4px 12px; border-top: 1px solid var(--gray-400); }
.nav-group:first-child { border-top: 0; }
.nav-group-label { display: flex; align-items: center; justify-content: space-between; padding: 4px 7px 7px; color: var(--gray-900); font-size: 11px; font-weight: 500; }
.nav-group-label em { color: var(--gray-700); font: normal 9px "Geist Mono", ui-monospace, monospace; }
.endpoint-link { width: 100%; min-height: 48px; display: grid; grid-template-columns: 43px minmax(0,1fr); align-items: center; gap: 9px; padding: 6px 7px; border: 0; border-radius: var(--radius); background: transparent; cursor: pointer; text-align: left; transition: background .12s, box-shadow .12s; }
.endpoint-link:hover { background: var(--gray-100); }
.endpoint-link.active { background: var(--background-100); box-shadow: var(--shadow-small); }
.method-badge { min-width: 40px; height: 20px; display: inline-grid; place-items: center; padding: 0 5px; border-radius: 4px; font: 8px "Geist Mono", ui-monospace, monospace; letter-spacing: .03em; }
.method-badge.read { color: var(--blue-900); background: var(--blue-100); }
.method-badge.write { color: var(--amber-900); background: var(--amber-100); }
.method-badge.large { min-width: 54px; height: 26px; font-size: 9px; }
.endpoint-copy { min-width: 0; display: grid; gap: 3px; }
.endpoint-copy strong { overflow: hidden; font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.endpoint-copy code { overflow: hidden; color: var(--gray-800); font: 8px "Geist Mono", ui-monospace, monospace; text-overflow: ellipsis; white-space: nowrap; }

.api-workspace { height: calc(100dvh - var(--topbar)); min-height: 0; overflow-y: auto; background-color: var(--background-100); background-image: linear-gradient(var(--gray-200) 1px, transparent 1px), linear-gradient(90deg, var(--gray-200) 1px, transparent 1px); background-size: 64px 64px; background-position: -1px -1px; }
.workspace-skeleton { width: min(1080px, calc(100% - 48px)); margin: 54px auto; }
.workspace-skeleton div { height: 72px; margin-bottom: 14px; border: 1px solid var(--gray-400); border-radius: var(--radius-large); background: linear-gradient(90deg, var(--background-100) 25%, var(--gray-100) 50%, var(--background-100) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.workspace-skeleton div:nth-child(2) { height: 360px; }
.endpoint-page { width: min(860px, calc(100% - 40px)); margin: 0 auto; padding: 22px 0 calc(72px + env(safe-area-inset-bottom)); }
.page-enter { opacity: 0; transform: translateY(6px); animation: reveal .4s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: var(--delay,0ms); }
.function-bar { margin-bottom: 12px; }
.function-bar > span { display: block; margin-bottom: 4px; color: var(--gray-800); font-size: 10px; }
.function-bar h1 { margin: 0; font-size: 20px; line-height: 1.2; letter-spacing: -.03em; font-weight: 600; }
.function-bar p { margin: 6px 0 0; color: var(--gray-800); font-size: 11px; line-height: 1.5; }
.content-picker select { width: 100%; height: 40px; padding: 0 10px; border: 1px solid var(--gray-400); border-radius: var(--radius); outline: 0; color: var(--gray-1000); background: var(--background-100); font-size: 13px; }
.content-picker select:focus { border-color: var(--gray-1000); box-shadow: 0 0 0 1px var(--gray-1000); }
.endpoint-layout { display: grid; gap: 12px; }

.request-card { overflow: hidden; border: 1px solid var(--gray-400); border-radius: var(--radius-large); background: rgba(10,10,10,.97); box-shadow: var(--shadow-small); }
.request-card-header { min-height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid var(--gray-400); }
.request-card-header > div { display: flex; align-items: baseline; gap: 10px; }
.request-card-header strong { font-size: 13px; font-weight: 500; }
.request-card-header span, .request-card-header em { color: var(--gray-800); font-size: 10px; font-style: normal; }
.request-card-header em { font-family: "Geist Mono", ui-monospace, monospace; }
.content-picker { display: grid; grid-template-columns: minmax(220px,1fr) minmax(180px,.8fr); align-items: end; gap: 18px; padding: 16px; border-bottom: 1px solid var(--gray-400); background: var(--background-200); }
.content-picker label > span { display: block; margin-bottom: 7px; color: var(--gray-900); font-size: 11px; font-weight: 500; }
.content-picker p { margin: 0 0 3px; color: var(--gray-800); font-size: 10px; line-height: 1.5; }
.parameter-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.param-field { min-width: 0; padding: 16px; border-right: 1px solid var(--gray-400); border-bottom: 1px solid var(--gray-400); }
.param-field:nth-child(2n) { border-right: 0; }
.param-field.wide { grid-column: 1 / -1; border-right: 0; }
.param-field > label:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 5px; }
.param-field > label:first-child span { font-size: 12px; font-weight: 500; }
.param-field > label:first-child span b { color: var(--red-700); }
.param-field > label:first-child small { color: var(--gray-700); font: 8px "Geist Mono", ui-monospace, monospace; }
.param-field > p { min-height: 30px; margin: 0 0 9px; color: var(--gray-800); font-size: 10px; line-height: 1.45; }
.param-field input, .param-field select, .param-field textarea { width: 100%; border: 1px solid var(--gray-400); border-radius: var(--radius); outline: 0; color: var(--gray-1000); background: var(--background-100); font-size: 12px; transition: border-color .15s, box-shadow .15s; }
.param-field input, .param-field select { height: 38px; padding: 0 10px; }
.param-field textarea { min-height: 90px; padding: 10px; resize: vertical; font: 11px/18px "Geist Mono", ui-monospace, monospace; }
.param-field input:focus, .param-field select:focus, .param-field textarea:focus { border-color: var(--gray-1000); box-shadow: 0 0 0 1px var(--gray-1000); }
.param-field .custom-enum { margin-top: 8px; }
.user-param { grid-column: 1 / -1; border-right: 0; background: var(--background-200); }
.input-with-action { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.switch-param { min-height: 126px; }
.toggle { width: fit-content; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle > span { width: 32px; height: 18px; border: 1px solid var(--gray-500); border-radius: 999px; background: var(--gray-200); position: relative; transition: background .15s, border-color .15s; }
.toggle > span::after { content: ""; width: 12px; height: 12px; position: absolute; left: 2px; top: 2px; border-radius: 50%; background: var(--gray-800); transition: transform .15s, background .15s; }
.toggle input:checked + span { border-color: var(--gray-1000); background: var(--gray-1000); }
.toggle input:checked + span::after { transform: translateX(14px); background: #000; }
.toggle em { color: var(--gray-900); font-size: 11px; font-style: normal; }
.range-inputs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.range-inputs span { color: var(--gray-800); font-size: 10px; }
.check-cards { display: grid; grid-template-columns: repeat(5,1fr); gap: 7px; }
.check-cards label { min-width: 0; display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid var(--gray-400); border-radius: var(--radius); cursor: pointer; }
.check-cards label:has(input:checked) { border-color: var(--gray-1000); box-shadow: inset 0 0 0 1px var(--gray-1000); }
.check-cards input { width: auto; height: auto; accent-color: var(--gray-1000); }
.check-cards strong, .check-cards small { display: block; }
.check-cards strong { overflow: hidden; font-size: 10px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.check-cards small { margin-top: 2px; color: var(--gray-700); font: 8px "Geist Mono", ui-monospace, monospace; }
.array-toolbar { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 9px; }
.array-toolbar > span { color: var(--gray-800); font-size: 10px; }
.array-rows { display: grid; gap: 8px; }
.score-row { overflow: hidden; border: 1px solid var(--gray-400); border-radius: var(--radius); background: var(--background-200); }
.score-row > header { min-height: 36px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; border-bottom: 1px solid var(--gray-400); }
.score-row > header strong { font-size: 10px; font-weight: 500; }
.remove-array-row { padding: 0; border: 0; color: var(--red-900); background: transparent; cursor: pointer; font-size: 10px; }
.score-fields { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; padding: 10px; }
.score-fields label { min-width: 0; }
.score-fields label span { display: block; margin-bottom: 4px; color: var(--gray-900); font-size: 9px; }
.score-fields input, .score-fields select { height: 34px; padding: 0 7px; background: var(--background-100); font-size: 10px; }
.empty-params { grid-column: 1 / -1; padding: 36px 16px; color: var(--gray-800); text-align: center; font-size: 12px; }
.advanced-json { border-bottom: 1px solid var(--gray-400); background: var(--background-200); }
.advanced-json summary { padding: 12px 16px; cursor: pointer; color: var(--gray-900); font-size: 11px; }
.advanced-body { padding: 0 16px 14px; }
.advanced-body textarea { width: 100%; min-height: 180px; padding: 12px; border: 1px solid #333; border-radius: var(--radius); color: #ededed; background: #0a0a0a; resize: vertical; font: 10px/17px "Geist Mono", ui-monospace, monospace; }
.advanced-toggle { display: flex; align-items: center; gap: 8px; margin-top: 9px; color: var(--gray-900); font-size: 10px; }
.advanced-toggle input { accent-color: var(--gray-1000); }
.request-actions { padding: 14px 16px; background: var(--background-200); }
.request-actions .button { width: 100%; min-height: 44px; padding: 0 18px; white-space: nowrap; }
.inline-response { margin-top: 14px; overflow: hidden; border: 1px solid var(--gray-400); border-radius: var(--radius-large); background: rgba(10,10,10,.97); box-shadow: var(--shadow-small); }
.inline-response > header { min-height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 0 15px; border-bottom: 1px solid var(--gray-400); }
.inline-response > header > div { display: flex; align-items: center; gap: 10px; }
.inline-response > header time { color: var(--gray-700); font: 10px "Geist Mono", ui-monospace, monospace; }
.inline-response pre { user-select: text; -webkit-user-select: text; }
.inline-response > header strong { font-size: 12px; font-weight: 500; }
.inline-response pre { max-height: 440px; overflow: auto; margin: 0; padding: 16px; color: #ededed; background: #0a0a0a; font: 10px/17px "Geist Mono", ui-monospace, monospace; white-space: pre-wrap; word-break: break-word; }

.drawer-overlay { position: fixed; inset: var(--topbar) 0 0; z-index: 44; background: rgba(0,0,0,.32); opacity: 0; pointer-events: none; transition: opacity .18s; }
.drawer-overlay.show { opacity: 1; pointer-events: auto; }
.history-panel { width: min(420px,100vw); position: fixed; z-index: 70; top: 0; right: 0; bottom: 0; display: grid; grid-template-rows: auto auto minmax(0,1fr); border-left: 1px solid var(--gray-400); background: var(--background-100); box-shadow: var(--shadow-large); transform: translateX(105%); transition: transform .26s cubic-bezier(.2,.8,.2,1); }
.history-panel.open { transform: translateX(0); }
.history-panel > header { min-height: 78px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid var(--gray-400); }
.history-panel h2 { margin: 3px 0 0; font-size: 18px; letter-spacing: -.03em; }
.history-filters { display: flex; gap: 4px; padding: 9px 12px; border-bottom: 1px solid var(--gray-400); overflow-x: auto; }
.history-filters button { min-height: 28px; padding: 0 9px; border: 0; border-radius: 999px; color: var(--gray-900); background: transparent; cursor: pointer; font-size: 10px; }
.history-filters button.active { color: #000; background: var(--gray-1000); }
.history-list { overflow-y: auto; }
.history-item { width: 100%; min-height: 72px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--gray-400); background: var(--background-100); cursor: pointer; text-align: left; }
.history-item:hover { background: var(--background-200); }
.history-item strong, .history-item code { display: block; }
.history-item strong { font-size: 11px; font-weight: 500; }
.history-item code { margin-top: 4px; overflow: hidden; color: var(--gray-700); font: 8px "Geist Mono", ui-monospace, monospace; text-overflow: ellipsis; white-space: nowrap; }
.history-item time { color: var(--gray-700); font: 9px "Geist Mono", ui-monospace, monospace; }
.history-empty { padding: 80px 20px; color: var(--gray-800); text-align: center; }
.history-empty > span { width: 38px; height: 38px; display: grid; place-items: center; margin: 0 auto 12px; border: 1px solid var(--gray-400); border-radius: 50%; }
.history-empty strong { color: var(--gray-1000); font-size: 12px; font-weight: 500; }
.history-empty p { margin: 6px 0 0; font-size: 10px; }

@media (max-width: 900px) {
  .console-shell { grid-template-columns: 250px minmax(0,1fr); }
  .endpoint-page { width: min(100% - 24px, 720px); }
  .score-fields { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 760px) {
  body { overflow: hidden; }
  .console-shell { display: block; height: 100dvh; }
  .console-topbar { height: var(--topbar); padding: 0 10px; }
  .mobile-menu { display: grid; }
  .brand-divider, .brand-copy small, .uid-control span, .top-history { display: none; }
  .uid-control input { width: 90px; }
  .connection-button { width: 34px; justify-content: center; padding: 0; }
  .connection-button > span:last-child { display: none; }
  .api-sidebar { width: min(310px,86vw); height: calc(100dvh - var(--topbar)); position: fixed; z-index: 50; top: var(--topbar); left: 0; transform: translateX(-105%); transition: transform .22s cubic-bezier(.2,.8,.2,1); }
  .api-sidebar.open { transform: translateX(0); }
  .api-workspace { height: calc(100dvh - var(--topbar)); }
  .endpoint-page { width: calc(100% - 20px); padding: 14px 0 calc(96px + env(safe-area-inset-bottom)); }
  .category-switcher { min-height: auto; align-items: stretch; flex-direction: column; gap: 14px; padding: 6px 2px 0; }
  .category-switcher label { width: 100%; }
  .category-switcher h1 { font-size: 24px; }
  .parameter-form { grid-template-columns: 1fr; }
  .content-picker { grid-template-columns: 1fr; gap: 8px; }
  .param-field, .param-field:nth-child(2n) { border-right: 0; }
  .param-field > p { min-height: 0; }
  .check-cards { grid-template-columns: 1fr 1fr; }
  .score-fields { grid-template-columns: 1fr 1fr; }
  .request-actions { align-items: stretch; flex-direction: column; }
  .request-actions .button { width: 100%; }
}

@media (max-width: 420px) {
  .brand .vercel-mark { display: none; }
  .score-fields { grid-template-columns: 1fr; }
  .check-cards { grid-template-columns: 1fr; }
  .history-panel { width: 100vw; }
}
