/* 4colors portal redesign. Drop-in layer for src/scheduling_service/portal/assets/portal.css.
   Load it AFTER portal.css (or merge it in). It keeps every existing class name and variable, so the
   current markup restyles without JS changes. New layout classes (.shell, .side, .page-head, .hero-steps,
   .toc) are for the markup changes listed in PROMPT_product-platform.md.
   No external requests, no inline styles (the CSP refuses a style attribute). */

/* Self-hosted (font-src 'self'), SIL Open Font License 1.1 (fonts/LICENSE-ibm-plex.txt). Two subsets per weight:
   latin-ext carries names such as Gdańsk. */
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/portal-assets/fonts/ibm-plex-sans-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/portal-assets/fonts/ibm-plex-sans-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("/portal-assets/fonts/ibm-plex-sans-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("/portal-assets/fonts/ibm-plex-sans-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("/portal-assets/fonts/ibm-plex-sans-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("/portal-assets/fonts/ibm-plex-sans-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("/portal-assets/fonts/ibm-plex-mono-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("/portal-assets/fonts/ibm-plex-mono-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("/portal-assets/fonts/ibm-plex-mono-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("/portal-assets/fonts/ibm-plex-mono-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* the 4colors mark: teal, azure, cobalt, violet; navy is the ink */
  --c-teal: #54EFD5; --c-azure: #0076F6; --c-cobalt: #192FDA; --c-violet: #381FCC; --c-navy: #181F79;
  --c-deep: #0014AF; --c-navy-950: #090C33;
  --bg: #F4F6FA;            /* page */
  --surface: #FFFFFF;       /* cards */
  --surface-2: #FAFBFD;     /* sunken blocks, code */
  --text: #181F79;          /* navy ink */
  --muted: #646E88;
  --border: #D6DBE6;
  --accent: #192FDA;        /* primary action */
  --accent-text: #FFFFFF;
  --accent-wash: #EDEFFD;
  --ok: #0B7A5A;   --ok-bg: #E6F7F1;
  --warn: #7A5200; --warn-bg: #FDF5E1;
  --bad: #B8213A;  --bad-bg: #FCEBEE;
  --info-bg: #EAF3FF;
  --classical: #0076F6; --quantum: #381FCC;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 4px;
  --shadow: none;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #090C33; --surface: #0E1350; --surface-2: #141A5E; --text: #E9ECF3; --muted: #A9B2CC; --border: #2B3380;
    --accent: #8EA6FF; --accent-text: #090C33; --accent-wash: #1B2370;
    --ok: #4CC9A0; --ok-bg: #0F3A33; --warn: #F0B44C; --warn-bg: #2B2112; --bad: #FF8A9A; --bad-bg: #3A1520; --info-bg: #10285A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #090C33; --surface: #0E1350; --surface-2: #141A5E; --text: #E9ECF3; --muted: #A9B2CC; --border: #2B3380;
  --accent: #8EA6FF; --accent-text: #090C33; --accent-wash: #1B2370;
  --ok: #4CC9A0; --ok-bg: #0F3A33; --warn: #F0B44C; --warn-bg: #2B2112; --bad: #FF8A9A; --bad-bg: #3A1520; --info-bg: #10285A;
  color-scheme: dark;
}

body { font: 15px/1.55 var(--sans); }
h1 { font-size: 30px; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: 16px; font-weight: 600; }
h3 { font-size: 13px; font-weight: 600; color: var(--muted); }
code, .mono, pre { font-family: var(--mono); }
a { color: var(--accent); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
.overline { font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }

/* header: logo at a readable size (wordmark caps about 9px), nothing else competes */
header.top { padding: 0 20px; height: 56px; border-bottom: 1px solid var(--border); }
.brand .logo { height: 22px; }

/* cards: white, 1px hairline, 4px radius, no shadow */
.card { padding: 20px 24px; box-shadow: none; border-radius: var(--radius); }
.card.rule-classical { border-top: 4px solid var(--classical); }
.card.rule-quantum { border-top: 4px solid var(--quantum); }

/* controls */
input, select, textarea { padding: 9px 12px; border-radius: var(--radius); font-family: var(--sans); }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(0, 118, 246, .28); outline-offset: 0; border-color: var(--c-azure); }
:focus-visible { outline: 3px solid rgba(0, 118, 246, .28); outline-offset: 2px; }
button, .btn { border-radius: var(--radius); font-weight: 600; padding: 8px 14px; }
button:active, .btn:active { transform: translateY(1px); }
button.primary { background: var(--c-cobalt); border-color: var(--c-cobalt); color: #fff; }
button.primary:hover { background: var(--c-deep); border-color: var(--c-deep); filter: none; }
button.primary:active { background: var(--c-navy); }
button.danger { color: var(--bad); border-color: var(--bad); background: var(--surface); }
button:hover, .btn:hover { border-color: var(--c-navy); background: var(--surface); }

/* tabs and chips */
.tabs button.on, .tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.chips button, .seg button { border-radius: 999px; }
.chips button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }

/* badges: pills, tinted, 11px */
.badge { font-size: 11px; padding: 3px 9px; }
.badge.info { color: #0057B8; }
.badge.classical { background: var(--info-bg); color: #0057B8; border-color: transparent; }
.badge.quantum { background: #EFECFC; color: var(--c-violet); border-color: transparent; }

.notice { border-radius: var(--radius); }
.meter { height: 10px; border-radius: 2px; }
.meter > span { background: var(--c-azure); }
.meter .q { background: var(--c-violet); }

/* tables: overline headers, mono for ids */
th { font-size: 11px; letter-spacing: .14em; font-weight: 600; }
td.mono, .mono { font-size: 12.5px; }
tr.failed td:first-child { box-shadow: inset 3px 0 0 var(--bad); }

/* plans and first steps */
.plan { border-top: 4px solid var(--border); border-radius: var(--radius); }
.plan.pick { border-color: var(--accent); border-top-color: var(--accent); box-shadow: none; }
.checklist li { border-radius: var(--radius); }
.checklist li.next { border-color: var(--accent); background: var(--surface); }
.checklist li.done .tick { background: var(--ok); border-color: var(--ok); }

/* code blocks: light, never dark navy */
pre.snippet, .secret { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); }

dialog.modal { border-radius: 6px; box-shadow: 0 12px 40px rgba(24, 31, 121, .25); }
dialog.modal::backdrop { background: rgba(9, 12, 51, .55); }
.toast { border-radius: var(--radius); }

/* ---- new layout: sidebar shell for the signed-in account ------------------------------------ */
.shell { display: flex; flex-wrap: wrap; gap: 32px; max-width: 1240px; margin: 0 auto; padding: 32px 24px 80px; }
.shell > main { flex: 1 1 520px; min-width: 0; max-width: none; margin: 0; padding: 0; }
.side { flex: 0 0 220px; position: sticky; top: 88px; align-self: flex-start; }
.side .team { padding: 0 12px 16px; }
.side .team b { display: block; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: var(--radius); color: var(--text); font-weight: 500; text-decoration: none; }
.side nav a:hover { background: var(--accent-wash); }
.side nav a[aria-current="page"] { background: var(--accent-wash); color: var(--accent); font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.side nav .count { font: 500 12px var(--mono); color: var(--muted); }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { margin: 4px 0 0; }

/* developer guide: light hero, three step cards with a facet rule, sticky contents */
.guide-hero { background: var(--surface); border-bottom: 1px solid var(--border); padding: 48px 24px 40px; }
.guide-hero > div { max-width: 1240px; margin: 0 auto; }
.hero-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 32px; }
.hero-steps > div { background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--c-teal); border-radius: var(--radius); padding: 16px 20px; }
.hero-steps > div:nth-child(2) { border-top-color: var(--c-azure); }
.hero-steps > div:nth-child(3) { border-top-color: var(--c-violet); }
.guide-body { background: var(--surface); }
.guide-body .wrap { display: flex; flex-wrap: wrap; gap: 48px; max-width: 1240px; margin: 0 auto; padding: 32px 24px 80px; }
.toc { flex: 0 0 240px; position: sticky; top: 80px; align-self: flex-start; font-size: 14px; display: flex; flex-direction: column; gap: 2px; list-style: none; margin: 0; padding: 0; }
.toc a { display: block; padding: 5px 10px; color: var(--muted); box-shadow: inset 2px 0 0 var(--border); text-decoration: none; }
.toc a[aria-current="true"], .toc a:hover { color: var(--accent); box-shadow: inset 2px 0 0 var(--accent); }
.guide-body article { flex: 1 1 520px; min-width: 0; max-width: 800px; }
.guide-body h2 { font-size: 24px; margin: 48px 0 10px; scroll-margin-top: 80px; }

@media (max-width: 900px) { .side { position: static; flex-basis: 100%; } .side nav { flex-direction: row; overflow-x: auto; } }

/* ---- on top of the handoff layer: what portal.css still set for the old look ------------------ */
:root { --info-text: #0057B8; --quantum-bg: #EFECFC; --quantum-text: #381FCC; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --info-text: #8EB8FF; --quantum-bg: #231A6E; --quantum-text: #BDB2FF; --classical: #3D9BFF; --quantum: #8F7FFF; }
  :root:not([data-theme="light"]) button:hover, :root:not([data-theme="light"]) .btn:hover { border-color: var(--text); }
}
:root[data-theme="dark"] { --info-text: #8EB8FF; --quantum-bg: #231A6E; --quantum-text: #BDB2FF; --classical: #3D9BFF; --quantum: #8F7FFF; }
:root[data-theme="dark"] button:hover, :root[data-theme="dark"] .btn:hover { border-color: var(--text); }
.badge.info, .badge.classical { color: var(--info-text); }
.badge.quantum { background: var(--quantum-bg); color: var(--quantum-text); }
.meter > span.c { background: var(--classical); }
.meter > span.q { background: var(--quantum); }

main { max-width: 1240px; }
main.narrow { max-width: 440px; }
input, select, textarea { font-size: 14px; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, .btn:focus-visible,
.check input:focus-visible, .tabs button:focus-visible { border-radius: var(--radius); }
.btn.small { padding: 4px 10px; font-size: 13px; }
button.small { padding: 5px 12px; }
.linkbtn:hover { border: 0; }
.tabs button:hover { background: none; color: var(--text); border-color: transparent; border-bottom-color: var(--border); }
.tabs button.on:hover, .tabs button[aria-selected="true"]:hover { color: var(--accent); border-bottom-color: var(--accent); }
.quick form, details.mail { border-radius: var(--radius); }
tr.failed td { background: none; }
.checklist li.next .tick { border-color: var(--accent); color: var(--accent); }
.checklist li.done .tick { color: #fff; }
.checklist li.done .step-label { text-decoration: none; }

/* every grid track can shrink, so columns line up and nothing pushes the page wider than the screen */
.grid { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
.fields { grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); }
.checklist { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.plans { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.summary-bar { grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr)); }
.quick { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; }
.kv { grid-template-columns: max-content minmax(0, 1fr); }
.summary-bar .k { font-size: 11px; font-weight: 600; letter-spacing: .14em; }
.plan { padding: 20px; }
.plan .price { font-size: 30px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; overflow-wrap: anywhere; }
.plan .price .per { font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
@media (max-width: 600px) {
  .grid, .kv { grid-template-columns: minmax(0, 1fr); }
  header.top { padding: 0 16px; height: 56px; }
}

/* ---- the signed-in account: sidebar and one section at a time ----------------------------------- */
#who { display: none; }          /* the sidebar names the account; the header keeps Sign out */
.side .team .role { font-size: 13px; color: var(--muted); }
.side .team .email { font-size: 12px; color: var(--muted); margin-top: 4px; overflow-wrap: anywhere; display: block; }
.side nav a, .side nav a:hover { text-decoration: none; }
.side nav a { font-size: 14px; }
.side .team .overline { margin-bottom: 4px; }
.side .links { margin: 24px 12px 0; padding-top: 16px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.page > .card + .card, .page > .card { margin-bottom: 16px; }
.page > .card + .card { margin-top: 0; }
.page .notice { margin-bottom: 16px; }
.page-grid { align-items: stretch; margin-bottom: 16px; }
.page-grid > .card { margin: 0; }
/* the page title already says what these cards' first heading said */
#keys > .row:first-child { justify-content: flex-end; }
#keys > .row:first-child h2, #billing > h2, #team-card > h2, #early-access > h2, #security > h2 {
  position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
/* One content width for every signed-in page (owner, 1 Nov): each page fills the main column,
   whose limit is the shell's; no page sets its own. A form inside keeps a readable line. */
.shell > main > .page { width: 100%; max-width: none; }
#security form, #early-access form { max-width: 560px; }
/* A long free-text cell (a key's label) wraps anywhere rather than widen its table; badges never break. */
td.wrap { overflow-wrap: anywhere; min-width: 8em; }
td .badge { white-space: nowrap; }
.big-line { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 8px 0 12px; }
.big-line .big { font-size: 44px; font-weight: 600; line-height: 1; letter-spacing: -.02em; }
.big-line .left { margin-left: auto; font: 500 13px var(--mono); color: var(--info-text); }
.checklist .hint a { color: inherit; text-decoration: underline; }
.jobs-filter { margin-bottom: 12px; }
@media (max-width: 900px) {
  .shell { padding: 16px 16px 64px; gap: 16px; }
  .side { min-width: 0; }
  .side .team { padding: 0 0 12px; }
  .side nav { gap: 4px; padding-bottom: 4px; }
  .side nav a { flex: none; white-space: nowrap; gap: 8px; }
  .side nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
  .side .links { display: none; }
  .page-head { margin-bottom: 16px; }
}

/* ---- signed out: the navy panel beside the form ------------------------------------------------- */
main.auth { max-width: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); min-height: calc(100vh - 56px); }
/* Both columns start at the top, so switching tabs never moves the tabs (owner, 1 Nov). */
.auth-brand { background: var(--c-navy); color: #fff; padding: 120px 56px 64px; display: flex; flex-direction: column; justify-content: flex-start; gap: 28px; min-width: 0; }
.auth-brand .overline { color: var(--c-teal); }
.auth-brand h1 { color: #fff; font-size: 40px; line-height: 1.15; letter-spacing: -.02em; margin: 0; max-width: 440px; }
.auth-brand p { color: #DFE9FB; font-size: 16px; margin: 0; max-width: 420px; }
.facets { display: flex; gap: 6px; height: 4px; max-width: 440px; }
.facets i { flex: 1; background: var(--c-teal); }
.facets i:nth-child(2) { background: var(--c-azure); }
.facets i:nth-child(3) { background: var(--c-cobalt); }
.facets i:nth-child(4) { background: var(--c-violet); }
.auth-pane { display: grid; place-items: start center; align-content: start; padding: 96px 24px 48px; background: var(--surface); min-width: 0; }
.auth-pane > div { width: 100%; max-width: 400px; }
.auth-pane .card { padding: 0; border: 0; background: none; }
.auth-pane .tabs { flex-wrap: nowrap; margin-bottom: 24px; }
.auth-pane .tabs button { flex: 1; padding: 10px 4px; font-size: 14px; margin-bottom: -1px; }
/* Sign-in providers: Google's sign-in branding (a neutral button, the four-color G at 18px, its own
   light and dark colors), GitHub's mark in the button's text color. */
.btn.provider { gap: 10px; }
.btn.provider .mark { flex: none; width: 18px; height: 18px; }
.btn.small.provider { gap: 6px; }
.btn.small.provider .mark { width: 16px; height: 16px; }
a.btn.block { width: 100%; }
.btn.provider-google { background: #FFFFFF; color: #1F1F1F; border-color: #747775; }
.btn.provider-google:hover, .btn.provider-google:focus-visible { background: #F2F2F2; color: #1F1F1F; border-color: #1F1F1F; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn.provider-google { background: #131314; color: #E3E3E3; border-color: #8E918F; }
  :root:not([data-theme="light"]) .btn.provider-google:hover { background: #1F1F21; color: #E3E3E3; border-color: #E3E3E3; }
}
:root[data-theme="dark"] .btn.provider-google { background: #131314; color: #E3E3E3; border-color: #8E918F; }
:root[data-theme="dark"] .btn.provider-google:hover { background: #1F1F21; color: #E3E3E3; border-color: #E3E3E3; }
fieldset.plain .check { padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 6px; }
fieldset.plain .check.rule-classical { border-color: var(--classical); }
fieldset.plain .check.rule-quantum { border-color: var(--quantum); }
.check.rule-classical:has(input:checked) { background: var(--info-bg); }
.check.rule-quantum:has(input:checked) { background: var(--quantum-bg); }
@media (max-width: 720px) {
  main.auth { min-height: 0; }
  .auth-brand { padding: 32px 24px; gap: 16px; min-height: 272px; }
  .auth-brand h1 { font-size: 30px; }
  .auth-pane { padding: 32px 16px 48px; place-items: start center; }
}

/* ---- admin console: dark tab bar, page head ------------------------------------------------------ */
main.admin-main { max-width: none; padding: 0; }
.tabs.admin-tabs { background: var(--c-navy-950); flex-wrap: nowrap; overflow-x: auto; gap: 2px; margin: 0; border-bottom: 1px solid var(--border);
  padding: 0 max(24px, calc((100% - 1272px) / 2)); scrollbar-width: none; }
.admin-tabs button { flex: none; color: #C9D1F5; font-size: 13px; font-weight: 600; padding: 14px; }
.admin-tabs button:hover { color: #fff; background: none; border-color: transparent; }
.tabs.admin-tabs button.on, .tabs.admin-tabs button[aria-selected="true"],
.tabs.admin-tabs button.on:hover, .tabs.admin-tabs button[aria-selected="true"]:hover { color: #fff; border-bottom-color: var(--c-teal); }
.admin-tabs button:focus-visible { outline-color: rgba(84, 239, 213, .6); outline-offset: -3px; }
.admin-page { max-width: 1320px; margin: 0 auto; padding: 28px 24px 80px; }
.admin-page .page-head { margin-bottom: 20px; }
.admin-page .page-head h1 { font-size: 28px; }
.admin-tools { flex: 1 1 320px; max-width: 460px; min-width: 0; }
.admin-tools:empty { display: none; }
.admin-tools form { flex-wrap: nowrap; }
.admin-tools .grow { min-width: 0; }
.org-summary { border-top: 4px solid var(--c-cobalt); }
#org-title { font-size: 20px; }
.org-chips { margin-bottom: 16px; }
.org-chips button[aria-pressed="true"] { background: var(--accent-wash); border-color: var(--accent); color: var(--accent); }
#admin-panel td .linkbtn { font-weight: 600; text-decoration: none; }
#admin-panel td .linkbtn:hover { text-decoration: underline; }
.admin-page .mt-12.grid { margin-bottom: 16px; }
@media (max-width: 600px) {
  .admin-page { padding: 20px 16px 64px; }
  .admin-tools { flex-basis: 100%; }
}
/* the admin header on a phone: the name in Lock gives way, nothing is pushed off the screen */
#lock { display: block; flex-shrink: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 480px) { header.top { gap: 8px; } .brand { gap: 6px; } .brand .app { font-size: 13px; } }

/* Get started cards: a long line (the compiler's circuit) wraps inside the box instead of running
   off it; copying still copies the text as written. */
pre.snippet.wrap { white-space: pre-wrap; overflow-wrap: anywhere; }
/* Both provider buttons look disabled the same way until the form allows them. */
.providers .btn:disabled, .providers .btn.provider-google:disabled {
  background: var(--surface); color: var(--muted); border-color: var(--border); opacity: .6; cursor: default; }
.providers .btn:disabled svg { filter: grayscale(1); }
/* A checkbox with a paragraph beside it sits on the paragraph's first line. */
.auth-pane label.check { align-items: flex-start; }
.auth-pane label.check > input[type=checkbox] { margin-top: 3px; flex: none; }
/* Phones: a wrapped command reads worse than one that scrolls sideways. */
@media (max-width: 720px) { pre.snippet.wrap { white-space: pre; overflow-wrap: normal; } }

/* A table that stacks on a phone instead of scrolling sideways (account.js stackTable). */
@media (max-width: 720px) {
  .table-wrap.stack { overflow: visible; }
  .table-wrap.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .table-wrap.stack table, .table-wrap.stack tbody, .table-wrap.stack tr, .table-wrap.stack td { display: block; width: auto; }
  .table-wrap.stack tr { border-bottom: 1px solid var(--border); padding: 8px 0; }
  .table-wrap.stack td { display: flex; gap: 12px; align-items: baseline; border: 0; padding: 3px 0; white-space: normal; text-align: left; }
  .table-wrap.stack td[data-label]::before { content: attr(data-label); flex: 0 0 88px; color: var(--muted); font-size: 12px; }
}

/* Tabs whose panes share one grid cell (account.js quickStartTabs): the box is as tall as the tallest
   pane whatever tab is shown, so switching never moves the page. */
.tab-stack { display: grid; margin-top: 10px; }
.tab-stack > .tab-pane { grid-area: 1 / 1; visibility: hidden; min-width: 0; }
.tab-stack > .tab-pane.on { visibility: visible; }
.tab-pane .block + .block { margin-top: 10px; }
.tab-pane .block-head { margin-bottom: 4px; align-items: center; }
/* Nothing moves between sections (owner, 1 Nov): the scrollbar's room is always kept, so a short page
   and a long one start at the same x; the main column keeps a height while it fills; placeholders
   hold the frame while the account loads (account.js signedIn). */
html { scrollbar-gutter: stable; }
@supports not (scrollbar-gutter: stable) { html { overflow-y: scroll; } }
.shell > main { min-height: calc(100vh - 200px); }
.skel { background: var(--border); opacity: .5; border-radius: 10px; }
.side-skel { height: 320px; }
.skel-title { height: 44px; width: 40%; margin: 8px 0 24px; }
.skel-card { height: 180px; margin-bottom: 16px; }
