/* ANCHOR: Carbon-style design system - TP-02 - Nov 10, 2026
 * WHY: IBM Carbon look without npm or Carbon's JS (supply-chain policy).
 * WHAT: Hand-written tokens from Carbon's published white and g100 themes,
 *       2x grid spacing, square corners, 48px header, bottom-border inputs.
 * HOW: Colours are CSS variables; dark follows the OS unless data-theme is set. */
:root {
  --cds-background: #ffffff; --cds-layer: #f4f4f4; --cds-layer-hover: #e8e8e8;
  --cds-border-subtle: #e0e0e0; --cds-border-strong: #8d8d8d;
  --cds-text-primary: #161616; --cds-text-secondary: #525252; --cds-text-on-color: #ffffff;
  --cds-link: #0f62fe; --cds-focus: #0f62fe; --cds-field: #f4f4f4;
  --cds-primary: #0f62fe; --cds-primary-hover: #0050e6; --cds-primary-active: #002d9c;
  --cds-secondary: #393939; --cds-secondary-hover: #4c4c4c;
  --cds-danger: #da1e28; --cds-danger-hover: #b81921; --cds-error: #da1e28;
  --cds-success: #24a148; --cds-warning: #f1c21b; --cds-info: #0043ce;
  --cds-alert-bg: #f4f4f4; --cds-header-bg: #161616; --cds-header-text: #f4f4f4;
  --cds-overlay: rgba(22, 22, 22, 0.5);
  --sp-1: 2px; --sp-2: 4px; --sp-3: 8px; --sp-4: 12px; --sp-5: 16px; --sp-6: 24px; --sp-7: 32px; --sp-8: 40px; --sp-9: 48px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --cds-background: #161616; --cds-layer: #262626; --cds-layer-hover: #333333;
    --cds-border-subtle: #393939; --cds-border-strong: #6f6f6f;
    --cds-text-primary: #f4f4f4; --cds-text-secondary: #c6c6c6;
    --cds-link: #78a9ff; --cds-focus: #ffffff; --cds-field: #262626;
    --cds-error: #fa4d56; --cds-info: #78a9ff; --cds-alert-bg: #262626;
    --cds-header-bg: #000000; --cds-secondary: #6f6f6f; --cds-secondary-hover: #606060;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --cds-background: #161616; --cds-layer: #262626; --cds-layer-hover: #333333;
  --cds-border-subtle: #393939; --cds-border-strong: #6f6f6f;
  --cds-text-primary: #f4f4f4; --cds-text-secondary: #c6c6c6;
  --cds-link: #78a9ff; --cds-focus: #ffffff; --cds-field: #262626;
  --cds-error: #fa4d56; --cds-info: #78a9ff; --cds-alert-bg: #262626;
  --cds-header-bg: #000000; --cds-secondary: #6f6f6f; --cds-secondary-hover: #606060;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0; background: var(--cds-background); color: var(--cds-text-primary);
  font: 400 0.875rem/1.25rem "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  letter-spacing: 0.16px; min-height: 100vh; display: flex; flex-direction: column;
}
h1 { font-size: 2rem; line-height: 2.5rem; font-weight: 400; margin: var(--sp-7) 0 var(--sp-6); }
h2 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 400; margin: var(--sp-7) 0 var(--sp-5); }
h3 { font-size: 1rem; line-height: 1.375rem; font-weight: 600; margin: 0 0 var(--sp-3); }
a { color: var(--cds-link); }
code, pre { font-family: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace; font-size: 0.8125rem; }
pre { background: var(--cds-layer); padding: var(--sp-5); overflow-wrap: anywhere; white-space: pre-wrap; margin: var(--sp-5) 0; }
.muted { color: var(--cds-text-secondary); }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--cds-focus); outline-offset: -2px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--cds-primary); color: #fff; padding: var(--sp-3) var(--sp-5); z-index: 100; }
.skip-link:focus { left: 0; }

/* Shell */
.cds-header { display: flex; align-items: center; gap: var(--sp-6); min-height: 3rem; padding: 0 var(--sp-5); background: var(--cds-header-bg); color: var(--cds-header-text); }
.cds-header__name { font-weight: 600; letter-spacing: 0.1px; }
.cds-header__nav { display: flex; flex-wrap: wrap; flex: 1; }
.cds-header__nav a { color: #c6c6c6; text-decoration: none; padding: 0 var(--sp-5); line-height: 3rem; border-bottom: 3px solid transparent; }
.cds-header__nav a:hover { background: #393939; color: #fff; }
.cds-header__nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--cds-primary); }
.cds-header__more { position: relative; }
.cds-header__more summary { color: #c6c6c6; cursor: pointer; list-style: none; padding: 0 var(--sp-3); line-height: 3rem; border-bottom: 3px solid transparent; }
.cds-header__more summary::-webkit-details-marker { display: none; }
/* ANCHOR: Dropdown chevron on header groups - UI review - Nov 13, 2026 */
.cds-header__more summary::after { content: ""; display: inline-block; margin-left: var(--sp-3); vertical-align: middle; border: 4px solid transparent; border-top-color: currentColor; border-bottom-width: 0; transition: transform 0.15s; }
.cds-header__more[open] summary::after { transform: rotate(180deg); }
.cds-header__more summary:focus-visible { outline: 2px solid var(--cds-focus); outline-offset: -2px; }
.cds-header__more:has(summary[aria-current]) summary { color: #fff; border-bottom-color: var(--cds-primary); }
.cds-header__more[open] summary, .cds-header__more summary:hover { color: #fff; background: #393939; }
.cds-header__more:has([aria-current="page"]) summary { color: #fff; border-bottom-color: var(--cds-primary); }
.cds-header__more-list { position: absolute; z-index: 20; top: 100%; left: 0; min-width: 12rem; display: grid; padding: var(--sp-2) 0; background: var(--cds-header-bg); box-shadow: 0 4px 12px #0005; }
.cds-header__more-list a { line-height: 2.75rem; white-space: nowrap; }
.cds-header__more-list a[aria-current="page"] { color: #fff; border-bottom-color: var(--cds-primary); }
.activity-list { padding-left: var(--sp-6); }
.activity-list li { padding: var(--sp-2) 0; }
.activity-list time { display: inline-block; min-width: 7.5rem; color: var(--cds-text-secondary); font-variant-numeric: tabular-nums; }
.cds-header :focus-visible { outline-color: #fff; }
.page { width: 100%; max-width: 99rem; margin: 0 auto; padding: 0 var(--sp-5) var(--sp-9); flex: 1; }
/* ANCHOR: Footer items on one baseline - multilingual - Nov 12, 2026: the product name sat higher than the padded links */
.cds-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-5); padding: var(--sp-5); border-top: 1px solid var(--cds-border-subtle); color: var(--cds-text-secondary); }

/* Layout helpers */
.row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--sp-5); margin: var(--sp-5) 0; }
.cds-panel { background: var(--cds-layer); padding: var(--sp-5); margin-bottom: var(--sp-5); }
.notice { background: var(--cds-alert-bg); border-left: 3px solid var(--cds-info); padding: var(--sp-4) var(--sp-5); margin: var(--sp-5) 0 0; }

/* Forms */
.cds-field { display: flex; flex-direction: column; margin-bottom: var(--sp-5); min-width: 16rem; }
.row .cds-field { margin-bottom: 0; }
.cds-label { font-size: 0.75rem; line-height: 1rem; letter-spacing: 0.32px; color: var(--cds-text-secondary); margin-bottom: var(--sp-3); }
.cds-input { height: 2.5rem; padding: 0 var(--sp-5); border: 0; border-bottom: 1px solid var(--cds-border-strong); background: var(--cds-field); color: var(--cds-text-primary); font: inherit; letter-spacing: inherit; border-radius: 0; width: 100%; }
.cds-input::placeholder { color: var(--cds-text-secondary); opacity: 0.8; }
.cds-input:focus { outline: 2px solid var(--cds-focus); outline-offset: -2px; }
.cds-input:user-invalid:not(:focus) { outline: 2px solid var(--cds-error); outline-offset: -2px; }
.cds-panel .cds-input { background: var(--cds-background); }
.cds-textarea { height: auto; min-height: 6rem; padding: var(--sp-4) var(--sp-5); resize: vertical; }
.cds-checkbox { display: flex; gap: var(--sp-3); align-items: flex-start; margin-bottom: var(--sp-5); }
.cds-checkbox > input { margin-top: 0.3rem; flex: none; }
.cds-error { color: var(--cds-error); font-size: 0.75rem; margin: var(--sp-2) 0 0; }

/* Buttons */
.cds-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.5rem; padding: 0 var(--sp-6) 0 var(--sp-5); border: 1px solid transparent; border-radius: 0; font: inherit; letter-spacing: 0.16px; cursor: pointer; text-decoration: none; }
.cds-btn--primary { background: var(--cds-primary); color: #fff; }
.cds-btn--primary:hover { background: var(--cds-primary-hover); }
.cds-btn--primary:active { background: var(--cds-primary-active); }
.cds-btn--secondary { background: var(--cds-secondary); color: #fff; }
.cds-btn--secondary:hover { background: var(--cds-secondary-hover); }
.cds-btn--danger { background: var(--cds-danger); color: #fff; }
.cds-btn--danger:hover { background: var(--cds-danger-hover); }
.cds-btn--ghost { background: transparent; color: var(--cds-link); padding: 0 var(--sp-5); }
.cds-btn--ghost:hover { background: var(--cds-layer-hover); }
.cds-header .cds-btn--ghost { color: #c6c6c6; min-height: 3rem; }
.cds-header__signout { margin: 0; display: flex; }
.cds-header .cds-btn--ghost:hover { background: #393939; color: #fff; }
.cds-btn:disabled { background: var(--cds-border-subtle); color: var(--cds-text-secondary); cursor: not-allowed; }
td .cds-btn, td button { min-height: 2rem; padding: 0 var(--sp-4); }
main button:not(.cds-btn) { background: var(--cds-secondary); color: #fff; border: 0; border-radius: 0; min-height: 2rem; padding: 0 var(--sp-4); font: inherit; cursor: pointer; }
main button:not(.cds-btn):hover { background: var(--cds-secondary-hover); }

/* Data table */
table { width: 100%; border-collapse: collapse; margin: var(--sp-5) 0; }
th { text-align: left; font-weight: 600; background: var(--cds-layer); padding: 0 var(--sp-5); height: 3rem; border-bottom: 1px solid var(--cds-border-strong); }
td { padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--cds-border-subtle); vertical-align: top; }
tbody tr:hover td { background: var(--cds-layer-hover); }

/* Alerts, empty, tabs */
.cds-alert { border-left: 3px solid var(--cds-info); background: var(--cds-alert-bg); padding: var(--sp-4) var(--sp-5); margin: var(--sp-5) 0; }
.cds-alert--success { border-color: var(--cds-success); }
.cds-alert--warning { border-color: var(--cds-warning); }
.cds-alert--error { border-color: var(--cds-error); }
.cds-alert__title { display: block; }
.cds-empty { text-align: center; padding: var(--sp-9) var(--sp-5); background: var(--cds-layer); }
.cds-tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--cds-border-subtle); margin: var(--sp-5) 0; }
.cds-tabs a { color: var(--cds-text-secondary); text-decoration: none; padding: var(--sp-4) var(--sp-5); border-bottom: 2px solid transparent; }
.cds-tabs a:hover { background: var(--cds-layer-hover); }
.cds-tabs a[aria-current="page"] { color: var(--cds-text-primary); border-bottom-color: var(--cds-primary); font-weight: 600; }

/* Modal (native <dialog>) */
.cds-modal { border: 0; padding: 0; background: var(--cds-layer); color: var(--cds-text-primary); width: min(32rem, calc(100vw - 2rem)); }
.cds-modal::backdrop { background: var(--cds-overlay); }
.cds-modal__form { padding: var(--sp-6); }
.cds-modal__form h2 { margin-top: 0; }
.cds-modal__actions { display: flex; justify-content: flex-end; gap: var(--sp-3); margin-top: var(--sp-6); }

/* Toasts */
.toasts { position: fixed; top: 3.5rem; right: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); z-index: 50; max-width: min(24rem, calc(100vw - 2rem)); }
.toast { background: #393939; color: #fff; border-left: 3px solid var(--cds-info); padding: var(--sp-4) var(--sp-5); }
.toast--success { border-color: var(--cds-success); }
.toast--error { border-color: #fa4d56; }

/* Error page */
.cds-error-page { padding: var(--sp-8) 0; }
.cds-code { font-size: 3rem; line-height: 3.5rem; margin: 0; color: var(--cds-text-secondary); }

@media (max-width: 42rem) {
  /* ANCHOR: Mobile header - UI test fix - Nov 10, 2026
     The nav used to share one row with the brand and the theme button and wrapped into a tall
     block. Brand and theme stay on the first row; the links get their own full-width row. */
  .cds-header { flex-wrap: wrap; gap: 0 var(--sp-3); padding: 0 var(--sp-4); }
  .cds-header__name { order: 1; line-height: 3rem; }
  .cds-header__theme { order: 2; margin-left: auto; }
  .cds-header__signout { order: 2; }
  .cds-header__link { order: 2; }
  .cds-header__nav { order: 3; flex: 0 0 100%; margin: 0 calc(-1 * var(--sp-3)); }
  .cds-header__nav a { padding: 0 var(--sp-3); line-height: 2.5rem; }
  .cds-header__more summary { line-height: 2.5rem; }
  .cds-field { min-width: 100%; }
  table { display: block; overflow-x: auto; }
}
@media (min-width: 42.01rem) and (max-width: 75rem) {
  .cds-header { gap: var(--sp-2); padding: 0 var(--sp-3); }
  .cds-header__name { white-space: nowrap; }
  .cds-header__nav { flex-wrap: nowrap; }
  .cds-header__nav a { padding: 0 var(--sp-2); white-space: nowrap; font-size: 0.875rem; }
  .cds-header__more summary { padding: 0 var(--sp-2); white-space: nowrap; font-size: 0.875rem; }
  .cds-header__theme, .cds-header__signout .cds-btn, .cds-header__link { font-size: 0.875rem; padding-left: var(--sp-2); padding-right: var(--sp-2); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.page form:not(.row) .cds-field { max-width: 40rem; }

/* ANCHOR: Public site styles - TP-10 - Nov 10, 2026
 * WHY: Landing, pricing, docs and legal pages share tiles, grids and steps.
 * WHAT: Hero, tile grids, price display, numbered steps, prose, footer links. No JS needed. */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero { padding: var(--sp-9) 0 var(--sp-7); max-width: 48rem; }
.hero h1 { font-size: 3.5rem; line-height: 4rem; margin: 0 0 var(--sp-5); }
.hero__lead { font-size: 1.25rem; line-height: 1.75rem; margin: 0 0 var(--sp-6); color: var(--cds-text-secondary); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.grid { display: grid; gap: var(--sp-5); margin: var(--sp-5) 0; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.grid--editions { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.tile { background: var(--cds-layer); padding: var(--sp-6); color: inherit; text-decoration: none; display: block; }
.tile h3 { margin-top: 0; }
.tile--link:hover { background: var(--cds-layer-hover); }
.tile--link:focus-visible { outline: 2px solid var(--cds-focus); outline-offset: -2px; }
.price { margin: 0 0 var(--sp-3); }
.price__amount { font-size: 2rem; line-height: 2.5rem; }
.price__per { display: block; margin-top: var(--sp-2); color: var(--cds-text-secondary); font-size: 0.875rem; }
.steps { list-style: none; padding: 0; margin: var(--sp-5) 0; display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); counter-reset: none; }
.steps__item { display: flex; gap: var(--sp-5); align-items: flex-start; border-top: 3px solid var(--cds-primary); background: var(--cds-layer); padding: var(--sp-5); }
.steps__num { flex: none; width: 2rem; height: 2rem; display: grid; place-items: center; background: var(--cds-primary); color: #fff; font-weight: 600; }
.steps__item h3 { margin-top: 0; }
.steps__item p { margin: 0; }
/* ANCHOR: Language menu opening upward - multilingual - Nov 12, 2026 */
.lang-menu { position: relative; }
.lang-menu summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); min-height: 24px; border: 1px solid var(--cds-border-subtle); color: var(--cds-text-secondary); background: var(--cds-background); }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: ""; border: 4px solid transparent; border-bottom-color: currentColor; border-top-width: 0; }
.lang-menu summary:hover { background: var(--cds-layer-hover); }
.lang-menu summary:focus-visible { outline: 2px solid var(--cds-focus); outline-offset: 2px; }
.lang-menu__list { position: absolute; bottom: 100%; right: 0; margin: 0 0 var(--sp-2) 0; padding: var(--sp-2) 0; list-style: none; min-width: 10rem; max-height: 50vh; overflow-y: auto; background: var(--cds-layer); border: 1px solid var(--cds-border-strong); box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2); z-index: 20; }
.lang-menu__list a, .lang-menu__list span { display: block; padding: var(--sp-3) var(--sp-4); color: var(--cds-text-primary); text-decoration: none; }
.lang-menu__list a:hover, .lang-menu__list a:focus-visible { background: var(--cds-layer-hover); }
.lang-menu__list [aria-current] { font-weight: 600; border-left: 3px solid var(--cds-primary); }
/* ANCHOR: Language menu in the header - UI review - Nov 13, 2026
   The footer list opens upward; the header variant matches the dark bar and opens downward. */
.lang-menu--header { margin-left: auto; align-self: stretch; display: flex; }
.lang-menu--header details { display: flex; }
.lang-menu--header summary { border: 0; background: transparent; color: #c6c6c6; padding: 0 var(--sp-3); min-height: 3rem; line-height: 3rem; }
.lang-menu--header summary:hover, .lang-menu--header details[open] summary { color: #fff; background: #393939; }
.lang-menu--header summary::after { border: 4px solid transparent; border-top-color: currentColor; border-bottom-width: 0; transition: transform 0.15s; }
.lang-menu--header details[open] summary::after { transform: rotate(180deg); }
.lang-menu--header .lang-menu__list { bottom: auto; top: 100%; margin: 0; background: var(--cds-header-bg); border: 0; box-shadow: 0 4px 12px #0005; }
.lang-menu--header .lang-menu__list a, .lang-menu--header .lang-menu__list span { color: #c6c6c6; line-height: 1.5rem; white-space: nowrap; }
.lang-menu--header .lang-menu__list a:hover, .lang-menu--header .lang-menu__list a:focus-visible { color: #fff; background: #393939; }
.lang-menu--header .lang-menu__list [aria-current] { color: #fff; }
.lang-menu--header + .cds-header__theme { margin-left: 0; }
@media (max-width: 42rem) { .lang-menu--header { order: 2; margin-left: auto; } .lang-menu--header summary { min-height: 3rem; } .lang-menu--header + .cds-header__theme { margin-left: 0; } }
@media (min-width: 42.01rem) and (max-width: 75rem) { .lang-menu--header summary { padding: 0 var(--sp-2); font-size: 0.875rem; white-space: nowrap; } }

.cds-footer__links { display: flex; flex-wrap: wrap; gap: var(--sp-5); }
.cds-footer__links a { color: var(--cds-text-secondary); display: inline-block; padding: var(--sp-3) 0; min-height: 24px; }
@media (max-width: 42rem) { .hero h1 { font-size: 2.5rem; line-height: 3rem; } }

/* ANCHOR: Pricing page styles - TP-11 - Nov 10, 2026 */
.js .no-js-only { display: none; }
.plan-form { display: flex; flex-wrap: wrap; gap: var(--sp-6); align-items: flex-end; margin: var(--sp-5) 0; padding: var(--sp-5); background: var(--cds-layer); }
.plan-form fieldset { border: 0; margin: 0; padding: 0; display: flex; gap: var(--sp-5); align-items: center; }
.plan-form legend { padding: 0; margin-bottom: var(--sp-3); }
.plan-form .cds-field { margin: 0; }
.cds-radio { display: inline-flex; align-items: center; gap: var(--sp-3); }
.cds-range { width: min(24rem, 80vw); accent-color: var(--cds-primary); }
.tile__title { font-size: 1.25rem; line-height: 1.75rem; margin: 0 0 var(--sp-3); }
.tile__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
.table-scroll { overflow-x: auto; }
/* A table inside a focusable scroll wrapper scrolls through the wrapper, not as a second scroll region. */
.table-scroll table { display: table; overflow: visible; }
.matrix th[scope="row"] { background: transparent; font-weight: 400; height: auto; padding: var(--sp-3) var(--sp-5); border-bottom: 1px solid var(--cds-border-subtle); }
.matrix td { text-align: center; padding: var(--sp-3) var(--sp-5); }
.matrix th[scope="col"]:not(:first-child) { text-align: center; }
.grid--editions .tile { display: flex; flex-direction: column; }
.grid--editions .tile__actions { margin-top: auto; padding-top: var(--sp-5); }

/* ANCHOR: Docs and legal page styles - TP-12 - Nov 10, 2026 */
.doc { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: var(--sp-7); margin-top: var(--sp-5); }
.doc__menu { align-self: start; position: sticky; top: var(--sp-5); }
.doc__menu ul, .doc__toc ul { list-style: none; padding: 0; margin: 0; }
.doc__menu li a, .doc__toc li a { display: block; padding: var(--sp-3) var(--sp-4); color: var(--cds-text-secondary); text-decoration: none; border-left: 2px solid transparent; }
.doc__menu li a:hover, .doc__toc li a:hover { background: var(--cds-layer-hover); }
.doc__menu li a[aria-current="page"] { color: var(--cds-text-primary); border-left-color: var(--cds-primary); font-weight: 600; }
.doc__menu-title { font-size: 0.875rem; font-weight: 600; margin: 0 0 var(--sp-3); }
.doc__toc { background: var(--cds-layer); padding: var(--sp-4) var(--sp-5); margin: var(--sp-5) 0; }
.doc__meta { margin: 0 0 var(--sp-5); }
.doc__body h1 { margin-top: 0; }
.prose { max-width: 46rem; line-height: 1.5rem; }
.prose h2 { margin-top: var(--sp-8); scroll-margin-top: var(--sp-5); }
.prose h3, .prose h4 { scroll-margin-top: var(--sp-5); }
.prose pre { overflow-x: auto; }
.prose code { background: var(--cds-layer); padding: 0 var(--sp-2); }
.prose pre code { background: transparent; padding: 0; }
.prose blockquote { margin: var(--sp-5) 0; padding: var(--sp-3) var(--sp-5); border-left: 3px solid var(--cds-border-strong); color: var(--cds-text-secondary); }
.prose table { margin: var(--sp-5) 0; }
@media (max-width: 52rem) { .doc { grid-template-columns: minmax(0, 1fr); } .doc__menu { position: static; } }

/* ANCHOR: Form page styles - TP-13 - Nov 10, 2026 */
.form-page { max-width: 40rem; }
.form-page .cds-field { min-width: 0; }
.form-page__note { margin-top: var(--sp-6); }
.cds-fieldset { border: 0; padding: 0; margin: 0 0 var(--sp-5); }
.addon-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); margin-bottom: var(--sp-3); }
.addon-row__qty { width: 6rem; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ANCHOR: MFA enrolment styles - TP-22 - Nov 10, 2026
   The QR code is inline SVG on a white tile so it scans in dark mode too. */
.qr { max-width: 14rem; margin: var(--cds-spacing-05, 1rem) 0; padding: 0.5rem; background: #fff; border: 1px solid var(--cds-border-subtle, #c6c6c6); }
.qr svg { display: block; width: 100%; height: auto; }
.recovery-codes { list-style: none; padding: 0; columns: 2; max-width: 22rem; }
.recovery-codes li { padding: 0.25rem 0; font-family: var(--cds-font-mono, ui-monospace, monospace); }

/* ANCHOR: Settings tabs - TP-23 - Nov 10, 2026 */
.form-page--wide { max-width: 44rem; }
.settings-tabs { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin: 1rem 0; border-bottom: 1px solid var(--cds-border-subtle, #c6c6c6); }
.settings-tabs a { padding: 0.5rem 0; text-decoration: none; border-bottom: 2px solid transparent; }
.settings-tabs a[aria-current] { font-weight: 600; border-bottom-color: var(--cds-border-interactive, #0f62fe); }

/* ANCHOR: Team table - TP-24 - Nov 10, 2026 */
.cds-table { width: 100%; border-collapse: collapse; margin: 0.5rem 0 1rem; }
.cds-table th, .cds-table td { text-align: left; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--cds-border-subtle, #c6c6c6); vertical-align: top; }
.inline-form { display: inline-block; margin: 0 0.5rem 0.25rem 0; }
.inline-form .cds-label { display: inline; margin-right: 0.25rem; }

/* ANCHOR: API key display - TP-25 - Nov 10, 2026 */
.secret-key { display: block; padding: 0.75rem; word-break: break-all; background: var(--cds-layer, #f4f4f4); border: 1px solid var(--cds-border-subtle, #c6c6c6); user-select: all; }

/* ANCHOR: Stacked tables and form spacing - UI test fix - Nov 10, 2026
   On a phone the team and API key tables were cut off at the right, hiding the action buttons.
   Rows become small cards that use each cell's data-label. Forms on one page also need room between them. */
.form-page form { margin-bottom: var(--sp-6); }
.cds-table .inline-form { margin-bottom: 0.25rem; }
@media (max-width: 42rem) {
  table.cds-table { display: block; overflow: visible; }
  .cds-table thead { position: absolute; left: -9999px; }
  .cds-table tbody, .cds-table tr, .cds-table td { display: block; }
  .cds-table tr { padding: var(--sp-3) 0; border-bottom: 1px solid var(--cds-border-subtle, #c6c6c6); }
  .cds-table td { padding: 0.25rem 0; border: 0; }
  .cds-table td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; }
  .cds-table td[data-label="Member"]::before, .cds-table td[data-label="Actions"]::before { content: none; }
}

/* ANCHOR: Plan builder - TP-30 - Nov 10, 2026 */
.form-page--wide .price { margin: var(--sp-5) 0 var(--sp-3); }

/* ANCHOR: Plan form spacing - TP-30 - Nov 10, 2026 */
.plan-form__term { margin-bottom: var(--sp-5); }

/* ANCHOR: License detail - TP-33 - Nov 10, 2026 */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.25rem var(--sp-5); margin: var(--sp-4) 0; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; }
.columns-2 { columns: 2; max-width: 40rem; }
.timeline { list-style: none; padding: 0; }
.timeline li { padding: 0.25rem 0; border-bottom: 1px solid var(--cds-border-subtle, #c6c6c6); }
.timeline time { color: var(--cds-text-secondary, #525252); margin-right: var(--sp-3); }
progress { width: 8rem; vertical-align: middle; margin-left: var(--sp-3); }
@media (max-width: 42rem) { .columns-2 { columns: 1; } }

/* ANCHOR: Activation guide - TP-34 - Nov 10, 2026 */
.guide ol { padding-left: var(--sp-5); }
.guide li > h2 { margin-top: var(--sp-6); }
.guide pre { overflow-x: auto; padding: var(--sp-4); background: var(--cds-layer, #f4f4f4); border: 1px solid var(--cds-border-subtle, #c6c6c6); }

/* ANCHOR: Printable quote - TP-36 - Nov 10, 2026 */
@media print {
  .cds-header, .cds-footer, .no-print, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .form-page, .form-page--wide { max-width: none; }
}

/* ANCHOR: Admin console shell - P4 - Nov 10, 2026 */
.notice:empty { display: none; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: var(--sp-4); margin: var(--sp-4) 0 var(--sp-6); }
.stat { display: flex; flex-direction: column; padding: var(--sp-5); background: var(--cds-layer, #f4f4f4); color: inherit; text-decoration: none; border-top: 3px solid var(--cds-border-interactive, #0f62fe); }
.stat:hover { background: var(--cds-layer-hover, #e8e8e8); }
.stat:focus-visible { outline: 2px solid var(--cds-focus, #0f62fe); outline-offset: 2px; }
.stat__value { font-size: 2rem; line-height: 2.5rem; }
.stat__label { color: var(--cds-text-secondary, #525252); }
.guide-list dt { margin-top: var(--sp-4); font-weight: 600; }
.guide-list dd { margin: 0.25rem 0 0; color: var(--cds-text-secondary, #525252); }

/* ANCHOR: Long checksums wrap - TP-39 - Nov 11, 2026
   WHY: A 64-character SHA-256 has no break points and pushed the downloads page wider than a phone,
        forcing sideways scrolling.
   WHAT: Let it break anywhere inside its own box. */
.checksum { overflow-wrap: anywhere; word-break: break-all; font-size: var(--fs-sm, 0.875rem); }

/* ANCHOR: Pager - UI pagination - Nov 11, 2026 */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3, 0.75rem) var(--sp-5, 1.25rem); margin-top: var(--sp-5, 1.25rem); }
.pager__status { margin: 0; flex: 1 1 14rem; }
.pager__size { display: inline-flex; align-items: center; gap: var(--sp-3, 0.75rem); }
.pager__size select { width: auto; min-width: 5rem; }
.pager .cds-btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.pager a.cds-btn { text-decoration: none; }

/* ANCHOR: Page and section headers with actions, dialogs - UI review - Nov 11, 2026
 * WHY: Primary actions ("New account", "Refresh", "Invite staff") belong opposite the title, not under the list.
 * WHAT: .page-head / .section-head put the heading left and its buttons right; they stack on phones. */
.page-head, .section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.page-head h1, .section-head h2 { margin: 0; }
.page-head { margin: var(--sp-6) 0 var(--sp-4); }
.section-head { margin: var(--sp-6) 0 var(--sp-4); }
.page-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-left: auto; }
.cds-dialog { max-width: 32rem; width: calc(100% - 2 * var(--sp-5)); padding: var(--sp-6); border: 1px solid var(--cds-border-subtle); background: var(--cds-layer, #fff); color: inherit; }
.cds-dialog::backdrop { background: rgba(0, 0, 0, 0.5); }
.cds-dialog h2 { margin-top: 0; }
.role-matrix { margin: var(--sp-6) 0; }
.role-matrix summary { cursor: pointer; font-weight: 600; margin-bottom: var(--sp-4); }

/* ANCHOR: Docs contents column - UI review - Nov 11, 2026 */
.doc__split { display: grid; grid-template-columns: minmax(0, 1fr) 14rem; gap: var(--sp-7); align-items: start; }
.doc__split .prose { grid-column: 1; grid-row: 1; }
.doc__split .doc__toc { grid-column: 2; grid-row: 1; position: sticky; top: var(--sp-5); margin: 0; }
@media (max-width: 64rem) { .doc__split { grid-template-columns: minmax(0, 1fr); } .doc__split .doc__toc { grid-column: 1; grid-row: 1; position: static; margin-bottom: var(--sp-5); } .doc__split .prose { grid-row: 2; } }

/* ANCHOR: Full-width list pages - UI review - Nov 11, 2026. The staff list uses the same width as the quotes page. */
.form-page--full { max-width: none; }

/* ANCHOR: Staff header link and staff list actions - UI review - Nov 11, 2026 */
.cds-header__link { color: #c6c6c6; text-decoration: none; padding: 0 var(--sp-4); line-height: 3rem; border-bottom: 3px solid transparent; }
.cds-header__link:hover { background: #393939; color: #fff; }
.cds-header__link[aria-current] { color: #fff; border-bottom-color: var(--cds-primary); }
/* One tidy row of actions per person: role picker with its button, then the other actions. */
.staff-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-5); }
.staff-actions form { margin: 0; display: flex; align-items: center; gap: var(--sp-3); }
.staff-actions .cds-input { width: auto; min-width: 12rem; }

/* ANCHOR: Current section in "On this page" - UI review - Nov 11, 2026 */
.doc__toc li a[aria-current="true"] { color: var(--cds-text-primary); border-left-color: var(--cds-primary); font-weight: 600; background: var(--cds-layer-hover); }

/* ANCHOR: Authenticator setup layout - UI review - Nov 11, 2026 */
.totp-setup { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: var(--sp-6); align-items: start; margin: var(--sp-5) 0; }
.totp-setup__qr .qr { margin: 0 0 var(--sp-3); }
.totp-setup__steps { margin: 0; padding-left: var(--sp-6); }
.totp-setup__steps li { margin-bottom: var(--sp-4); }
.totp-setup__steps code { display: inline-block; margin-top: var(--sp-2); padding: var(--sp-2) var(--sp-3); background: var(--cds-layer); letter-spacing: 0.05em; overflow-wrap: anywhere; }
.totp-setup__form .cds-input { max-width: 14rem; font-size: 1.25rem; letter-spacing: 0.3em; text-align: center; }
@media (max-width: 40rem) { .totp-setup { grid-template-columns: minmax(0, 1fr); } }

/* ANCHOR: Security cards - UI review - Nov 11, 2026 */
.security-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: var(--sp-5); margin: var(--sp-5) 0; }
.security-card { background: var(--cds-layer); padding: var(--sp-6); }
.security-card h3 { margin: 0 0 var(--sp-3); }
.security-card .cds-input { max-width: 100%; }
.security-card__form { margin-bottom: 0; }

/* ANCHOR: Quote builder rows - UI review - Nov 13, 2026 */
.limit-row { align-items: center; margin-bottom: var(--sp-3); }
.limit-row .cds-input[type="number"], #quote-addons input[type="number"] { max-width: 7rem; }
#quote-calc table { margin-bottom: var(--sp-3); }

/* ANCHOR: Quote builder layout - UI review - Nov 13, 2026
   Section headings, a compact add-on table and limit rows that stay on one line. */
.cds-fieldset > legend.cds-label { font-size: 1.25rem; line-height: 1.75rem; font-weight: 400; color: var(--cds-text-primary); letter-spacing: 0; margin-bottom: var(--sp-4); padding: 0; }
#quote-form .cds-fieldset { padding-top: var(--sp-5); border-top: 1px solid var(--cds-border-subtle, #393939); }
#quote-form .cds-fieldset:first-of-type { border-top: 0; padding-top: 0; }
#quote-addons table { width: 100%; }
#quote-addons th:nth-child(2), #quote-addons td:nth-child(2) { width: 7rem; }
#quote-addons td { vertical-align: middle; }
#quote-addons tr.is-unavailable td { opacity: 0.55; }
.limit-row { flex-wrap: wrap; align-items: center; gap: var(--sp-4); margin: 0 0 var(--sp-3); }
.limit-row select.cds-input { width: auto; flex: 1 1 16rem; max-width: 24rem; }
.limit-row input[type="number"].cds-input { width: 8rem; flex: 0 0 8rem; }
#add-limit { margin-top: var(--sp-3); }
