/* AMPS console — "Two-column summary" (chosen 2026-10-12; sketch: docs/design/console-explorations/2026-10-12/sketches/n3-split.html).
   Traditional, quiet, informative, light: soft off-white page, white panels with hairline borders and 12px radius, one sage
   accent. Work on the left, context and help on the right. Every number says what it counts.
   Motion: nothing on navigation; 160ms button press, one 500ms bar fill, toast rise; all off under reduced motion. */

:root {
  --page: #fafaf7;
  --panel: #ffffff;
  --line: #e8e8e3;
  --line-strong: #d6d6cf;
  --ink: #23262b;
  --muted: #62666d;          /* 5.6:1 on --page */
  --sage: #7a9e7e;           /* bars, marks */
  --sage-ink: #4d7352;       /* sage text and filled buttons (5.4:1 on white) */
  --sage-hover: #415f45;
  --tint: #eef4ee;
  --track: #efefea;
  --amber-bg: #fbf3e4;
  --amber-line: #f1e2c4;
  --amber: #7f5200;
  --ok: #3d9a5b;
  --error: #a8322b;
  --error-bg: #fbecea;
  --ring: rgba(77, 115, 82, .30);
  --code-bg: #2a2d31;
  --code-ink: #f3f4f1;
  --code-dim: #a3a7ad;
  --code-op: #9fd0a5;
  --code-params: #f2c98b;
  --code-name: #b7c8f5;
  --sans: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --shadow: 0 1px 2px rgba(0, 0, 0, .03);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --fast: 120ms;
  --base: 200ms;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; background: var(--page); }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; background: var(--page); color: var(--ink); font: 400 14px/1.5 var(--sans); font-variant-numeric: tabular-nums; }
::selection { background: rgba(122, 158, 126, .28); color: var(--ink); }
pre ::selection, pre::selection { background: rgba(159, 208, 165, .35); color: #fff; }
input, textarea { caret-color: var(--sage-ink); }
:where(.page, header.site, footer.site, .docs-hint) a { color: var(--sage-ink); font-weight: 600; text-decoration: none; }
:where(.page, header.site, footer.site, .docs-hint) a:hover { text-decoration: underline; text-underline-offset: 3px; }
.page :focus-visible, header.site :focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); border-radius: 6px; }
:where(.page) :is(h1, h2, h3) { margin: 0; font-weight: 700; text-wrap: balance; }
:where(.page) h1 { font-size: 26px; line-height: 1.25; }
:where(.page) h2 { font-size: 15px; line-height: 1.35; }
:where(.page) p { margin: 0 0 .7em; }
:where(.page) p:last-child { margin-bottom: 0; }
strong, b { font-weight: 700; }
.muted { color: var(--muted); }
.dim { color: var(--muted); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.trunc { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.id, .path { font: 13px/1.4 var(--mono); }
.select-all { user-select: all; cursor: text; }
td .path.trunc { margin-top: 2px; max-width: 100%; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
main { flex: 1; }
main.page { padding: 32px 0 64px; }
main.docs { padding: 0; overflow-x: clip; }

/* ---------- top bar ---------- */
header.site { position: sticky; top: 0; z-index: 20; height: 60px; background: #fff; border-bottom: 1px solid var(--line); }
header.site .wrap { height: 100%; display: flex; align-items: center; gap: 40px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 17px; text-decoration: none; flex: none; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 18px; height: 18px; border-radius: 5px; background: var(--sage); flex: none; }
header.site nav { display: flex; align-items: stretch; gap: 28px; flex: 1; height: 100%; min-width: 0; }
header.site nav .tabs { display: flex; gap: 28px; height: 100%; }
header.site nav a:not(.btn):not(.who) { white-space: nowrap; display: flex; align-items: center; height: 100%; color: var(--muted); font-weight: 400; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color var(--fast) ease; }
header.site nav a:not(.btn):not(.who):hover { color: var(--ink); }
header.site nav a.on { color: var(--ink) !important; font-weight: 600 !important; border-bottom-color: var(--sage) !important; }
header.site nav .end { margin-left: auto; display: flex; align-items: center; gap: 20px; }
header.site nav form { margin: 0; display: flex; align-items: center; }
.who { display: inline-flex; align-items: center; gap: 8px; max-width: 18rem; color: var(--muted); font-size: 13px; font-weight: 400; text-decoration: none; }
.who:hover { color: var(--ink); text-decoration: none; }
.who .avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--tint); color: var(--sage-ink); display: inline-grid; place-items: center; font: 700 11px/1.3 var(--sans); text-transform: uppercase; flex: none; }
.who .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who code { font-size: 12px; background: none; padding: 0; color: inherit; }
header.site .btn.quiet { color: var(--sage-ink); font-size: 13px; height: 30px; padding: 0 8px; }

/* ---------- page head ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head .sub, .sub { margin: 2px 0 0; color: var(--muted); }
.lede { color: var(--muted); font-size: 15px; max-width: 40rem; margin: 6px 0 0; }
.page-head .meta { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-bottom: 4px; }
.section { margin-top: 16px; }

/* ---------- the two columns ---------- */
.two { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.two > .main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.two > .side { display: flex; flex-direction: column; gap: 16px; }
.narrow { max-width: 30rem; }
.page .grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.page .grid > * { min-width: 0; }

/* ---------- panels and cards ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 16px 20px; min-width: 0; }
.panel.flush { padding: 0; }
.panel > .pt, .pt { margin: 0; font-size: 15px; font-weight: 700; padding: 14px 20px 6px; }
.panel.flush > .pt + .psub { margin: -2px 20px 8px; font-size: 13px; color: var(--muted); }
.panel > h2 { margin-bottom: 10px; }
.card .k, .k { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .02em; margin-bottom: 6px; }
.card .big { font-size: 20px; font-weight: 700; line-height: 1.2; }
.card p { font-size: 13px; color: var(--muted); margin-top: 6px; }
.card .status { margin-top: 6px; font-size: 13px; color: var(--ink); }
.note { background: var(--amber-bg); border-color: var(--amber-line); color: var(--amber); box-shadow: none; }
.note b { display: block; font-size: 14px; margin-bottom: 4px; }
.note p { color: var(--amber) !important; margin: 0; }
.note a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
.help b { display: block; font-size: 14px; margin-bottom: 4px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); margin-right: 6px; vertical-align: 1px; flex: none; }
.dot.ok { background: var(--ok); }
.dot.warn { background: var(--amber); }

/* ---------- meters ---------- */
.meter { padding: 10px 20px 12px; border-top: 1px solid var(--line); }
.pt + .meter, .meter:first-child { border-top: 0; }
.mrow { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.mn { font-weight: 600; line-height: 18px; text-transform: none; }
.md { font-size: 12px; color: var(--muted); line-height: 16px; margin-top: 1px; }
.fig { font-weight: 600; white-space: nowrap; text-align: right; }
.fig span { color: var(--muted); font-weight: 400; }
.fig.hot { color: var(--amber); }
.fig.full { color: var(--error); }
.bar { height: 6px; border-radius: 3px; background: var(--track); margin-top: 8px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; background: var(--sage); transform-origin: left center; animation: fill 500ms var(--ease-out) both; }
.bar.hot i { background: #c9963a; }
.bar.full i { background: var(--error); }
@keyframes fill { from { transform: scaleX(0); } }

/* ---------- lists ---------- */
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 12px 32px; align-items: baseline; margin: 0; }
.dl dt { color: var(--muted); font-size: 13px; }
.dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { border-top: 1px solid var(--line); }
.rows li:first-child { border-top: 0; }
.rows a { display: flex; align-items: center; gap: 12px; padding: 11px 0; color: var(--ink); font-weight: 600; text-decoration: none; }
.rows a:hover { color: var(--sage-ink); }
.rows a span { margin-left: auto; color: var(--muted); font-size: 13px; font-weight: 400; }
.rows a::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-top: 1.5px solid var(--muted); transform: rotate(45deg); flex: none; transition: transform var(--base) var(--ease-out); }
.rows a:hover::after { transform: translateX(2px) rotate(45deg); border-color: var(--sage-ink); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.page table { width: 100%; border-collapse: collapse; font-size: 13px; }
.page th { text-align: left; font-weight: 600; color: var(--muted); height: 34px; padding: 0 20px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.page td { height: 40px; padding: 4px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.page tbody tr:last-child td { border-bottom: 0; }
td.num, th.num, .r { text-align: right; }
td.actions { text-align: right; white-space: nowrap; }
table.fixed { table-layout: fixed; }
.panel:not(.flush) table th:first-child, .panel:not(.flush) table td:first-child { padding-left: 0; }
.panel:not(.flush) table th:last-child, .panel:not(.flush) table td:last-child { padding-right: 0; }

/* ---------- tags ---------- */
.pill { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; background: var(--tint); color: var(--sage-ink); white-space: nowrap; vertical-align: middle; }
.pill.ok { background: var(--tint); color: var(--sage-ink); }
.pill.warn, .tag { background: var(--amber-bg); color: var(--amber); }
.pill.error { background: var(--error-bg); color: var(--error); }
.tag { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; vertical-align: middle; }
h1 .pill { vertical-align: 5px; margin-left: 8px; }

/* ---------- buttons ---------- */
.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 16px;
  border: 1px solid var(--sage-ink); border-radius: 8px; background: var(--sage-ink); color: #fff; font: 600 14px/1.3 var(--sans);
  cursor: pointer; text-decoration: none; white-space: nowrap; -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out), background-color var(--fast) ease, color var(--fast) ease, box-shadow var(--fast) ease;
}
.btn:hover { background: var(--sage-hover); border-color: var(--sage-hover); text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn:focus-visible { box-shadow: 0 0 0 3px var(--ring); }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--page); border-color: var(--line-strong); }
.btn.quiet { background: transparent; color: var(--sage-ink); border-color: transparent; }
.btn.quiet:hover { background: var(--tint); color: var(--sage-hover); border-color: transparent; }
.btn.link { background: transparent; border-color: transparent; color: var(--sage-ink); padding: 0 4px; height: 30px; }
.btn.link:hover { background: var(--tint); }
.btn.danger { background: #fff; color: var(--error); border-color: #e7c4c0; }
.btn.danger:hover { background: var(--error-bg); border-color: #e7c4c0; }
.btn.sm { height: 30px; padding: 0 14px; font-size: 13px; }
.btn.lg { height: 42px; padding: 0 20px; font-size: 15px; }
.btn[disabled] { opacity: .55; cursor: default; transform: none; }
.btn.loading { color: transparent !important; pointer-events: none; position: relative; opacity: 1; }
.btn.loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin 600ms linear infinite; }
.btn.ghost.loading::after, .btn.quiet.loading::after, .btn.link.loading::after, .btn.danger.loading::after { border-color: var(--line-strong); border-top-color: var(--sage-ink); }
@keyframes spin { to { transform: rotate(360deg); } }
.actions-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.actions-row .hint { color: var(--muted); font-size: 13px; }

/* ---------- forms ---------- */
.page label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin: 0 0 6px; }
.page .field { margin-bottom: 16px; }
.field .help { color: var(--muted); font-size: 12px; margin-top: 6px; }
.page input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]) {
  width: 100%; min-width: 0; height: 40px; padding: 0 12px; border-radius: 8px;
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink); font: inherit; font-size: 15px;
  transition: border-color var(--fast) ease, box-shadow var(--fast) ease;
}
.page input::placeholder { color: #8a8e94; }
.page input:focus { outline: none; border-color: var(--sage-ink); box-shadow: 0 0 0 3px var(--ring); }
input.mono { font-family: var(--mono); font-size: 14px; }
.input-row { display: flex; gap: 10px; }
.input-row input { flex: 1; }
.input-row .btn { height: 40px; flex: none; }

/* ---------- code ---------- */
pre, code { font-family: var(--mono); }
.page pre { margin: 0; background: var(--code-bg); color: var(--code-ink); border-radius: 10px; padding: 14px 16px; font-size: 13px; line-height: 1.6; overflow-x: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent; }
pre .c { color: var(--code-dim); }
pre .k { color: var(--code-op); }
.page code { font-size: .92em; background: #f1f1ec; color: var(--ink); padding: .1em .4em; border-radius: 5px; }
pre code { background: none; padding: 0; font-size: inherit; color: inherit; }
.secret { position: relative; }
.secret pre { padding: 18px 100px 18px 18px; font-size: 14px; white-space: pre-wrap; word-break: break-all; }
.secret .copy { position: absolute; top: 12px; right: 12px; }
.copy { background: rgba(255, 255, 255, .1); color: var(--code-ink); border-color: rgba(255, 255, 255, .25); }
.copy:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .4); }
.copy span { display: inline-block; transition: filter 160ms ease, opacity 160ms ease; }
.copy.swap span { filter: blur(2px); opacity: .5; }
.copy.done { color: var(--code-op); }

/* ---------- alerts, toasts, empty ---------- */
.alert { border-radius: 10px; padding: 12px 16px; font-size: 14px; margin-bottom: 20px; border: 1px solid var(--line); background: #fff; }
.alert.error { background: var(--error-bg); border-color: #efd0cc; color: var(--error); }
.alert.info { background: var(--tint); border-color: #d9e6da; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; transform: translate(-50%, 0); background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 10px; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); display: flex; align-items: center; gap: 10px; white-space: nowrap; transition: opacity var(--base) ease, transform var(--base) var(--ease-out); }
.toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--code-op); }
.toast.out { opacity: 0; transform: translate(-50%, 8px); }
@starting-style { .toast { opacity: 0; transform: translate(-50%, 8px); } }
.empty { padding: 20px; color: var(--muted); font-size: 14px; }
.empty b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }

/* ---------- home ---------- */
.hero { padding: 32px 0 8px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(32px, 4.2vw, 46px); line-height: 1.1; letter-spacing: -.01em; max-width: 12em; }
.hero .lede { font-size: 17px; line-height: 1.55; margin-top: 14px; max-width: 30rem; }
.hero .actions-row { margin-top: 22px; }
.url-card { background: var(--code-bg); color: var(--code-ink); border-radius: 12px; padding: 20px 20px 16px; min-width: 0; }
.url-card .title { color: var(--code-dim); font: 600 12px/1.3 var(--sans); margin-bottom: 12px; display: flex; justify-content: space-between; }
.url { font: 14px/1.7 var(--mono); overflow-wrap: anywhere; }
.url .seg { display: inline-block; }
.url .host { color: var(--code-dim); }
.url .path { font-size: inherit; }
.url .path b { font-weight: 400; padding: 0 2px; border-bottom: 1px dashed var(--code-dim); }
.url .op { color: var(--code-op); }
.url .params { color: var(--code-params); }
.url .name { color: var(--code-name); }
.url-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .12); color: var(--code-dim); font: 12px/1.3 var(--sans); }
.url-legend span { display: inline-flex; align-items: center; gap: 7px; }
.url-legend i { width: 8px; height: 8px; border-radius: 2px; }
.url-legend .k-op { background: var(--code-op); }
.url-legend .k-params { background: var(--code-params); }
.url-legend .k-name { background: var(--code-name); }
.url-legend .k-path { background: var(--code-ink); }
.steps { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; }
.step { display: grid; grid-template-columns: 28px minmax(0, 1fr) minmax(0, 1.3fr); gap: 8px 24px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 18px 20px; }
.step .n { width: 28px; height: 28px; border-radius: 50%; background: var(--tint); color: var(--sage-ink); display: grid; place-items: center; font: 700 13px/1.3 var(--sans); }
.step h2 { margin-top: 3px; }
.step p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.step .text { min-width: 0; }
.step pre { font-size: 12.5px; grid-column: 3; grid-row: 1; white-space: pre-wrap; overflow-wrap: anywhere; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 16px; }
.facts > div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.facts h2 { margin-bottom: 6px; }
.facts p { color: var(--muted); font-size: 14px; }

/* ---------- footer ---------- */
footer.site { border-top: 1px solid var(--line); }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; padding-top: 18px; padding-bottom: 26px; color: var(--muted); font-size: 12px; }
footer.site a { color: var(--muted); font-weight: 400; }
footer.site .spacer { flex: 1; }

/* ---------- entrance (home only) ---------- */
.rise { animation: rise 420ms var(--ease-out) both; }
.rise.d1 { animation-delay: 80ms; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .two { grid-template-columns: 1fr; gap: 16px; }
  .two > .side { padding-top: 0; }
  .hero { grid-template-columns: 1fr; gap: 24px; padding-top: 16px; }
  .step { grid-template-columns: 28px minmax(0, 1fr); }
  .step pre { grid-column: 1 / -1; grid-row: auto; margin-top: 8px; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  main.page { padding: 24px 0 48px; }
  h1 { font-size: 24px; }
  header.site { height: 56px; }
  header.site .wrap { gap: 16px; }
  header.site nav { overflow-x: auto; scrollbar-width: none; gap: 18px; }
  header.site nav::-webkit-scrollbar { display: none; }
  header.site nav .tabs { gap: 18px; }
  header.site nav .end { gap: 10px; }
  .who { display: none; }
  .panel { padding: 14px 16px; }
  table.apps th:nth-child(4), table.apps td:nth-child(4) { display: none; }
  .meter { padding: 10px 16px 12px; }
  .pt { padding: 12px 16px 6px !important; }
  th, td { padding-left: 16px; padding-right: 16px; }
  table.uploads th:nth-child(2), table.uploads td:nth-child(2), table.uploads th:nth-child(4), table.uploads td:nth-child(4) { display: none; }
  header.site nav .tabs a[href="/docs"] { display: none; }
  .dl { grid-template-columns: 1fr; gap: 2px 0; }
  .dl dt { margin-top: 10px; }
  .dl dt:first-child { margin-top: 0; }
  .toast { left: 16px; right: 16px; transform: none; white-space: normal; }
  .toast.out { transform: translateY(8px); }
  @starting-style { .toast { transform: translateY(8px); } }
}
@media (prefers-reduced-motion: reduce) {
  .bar i, .rise { animation: none; }
  .btn:active { transform: none; }
  .rows a::after, .rows a:hover::after { transition: none; transform: rotate(45deg); }
  .toast, .toast.out { transition: opacity var(--base) ease; transform: translate(-50%, 0); }
}

/* ---------- API reference page: header, hint bar and Scalar share one left edge ---------- */
body.is-docs header.site .wrap { max-width: none; padding: 0 60px; }
@media (max-width: 1000px) { body.is-docs header.site .wrap { padding: 0 24px; } }
