/*
 * Dashboard and app-page styles on top of the design system (system.css) and
 * Astryx. Only what those don't cover: the dashboard frame, figures, the offer
 * trail, code and secrets, and native inputs. Colors, radii, and type come from
 * the system's tokens, so light and dark follow it.
 */
.sa-mark { flex: none; }

/* Dashboard frame */
.sa-content { padding: 32px 40px 72px; max-width: 1240px; box-sizing: border-box; display: flex; flex-direction: column; gap: 28px; }
.sa-page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 767px) {
  .sa-content { padding: 20px 16px 48px; gap: 24px; }
}

/* Figures: the landing page's hairline cells, a number over a mono label */
.sa-figures { border: 1px solid var(--line); border-radius: var(--r-window); overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.sa-figures > div { background: var(--cell); padding: 18px 20px 16px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.sa-figures dt { order: 2; font-family: var(--mono); font-size: var(--t-xs); color: var(--faint); }
.sa-figures dd { order: 1; margin: 0; font-size: 1.75rem; font-weight: 500; line-height: 1.1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--ink); overflow-wrap: anywhere; }

/* Money: ink and tabular; earnings carry weight, not color */
.sa-money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sa-credit { color: var(--ink); font-weight: 600; }
.sa-figure { font-size: 1.75rem; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.sa-notice { display: block; }

/* Tables: mono headers, like the landing page's request log */
.sa-content table thead th, .sa-content table thead th * { font-family: var(--mono); font-size: var(--t-xs); font-weight: 500; color: var(--faint); }
.sa-content table td { font-size: var(--t-sm); }

/* The offer trail: each offer's path through the four states, in square pixels; gold marks the paid step */
.sa-trail { display: grid; grid-template-columns: repeat(4, 68px); }
.sa-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; font-family: var(--mono); font-size: 0.6875rem; color: var(--faint); white-space: nowrap; }
.sa-step + .sa-step::before { content: ""; position: absolute; top: 4px; right: 50%; width: 100%; height: 2px; background: var(--line); }
.sa-dot { position: relative; z-index: 1; width: 10px; height: 10px; border: 1px solid var(--line-strong); background: var(--cell); box-sizing: border-box; }
.sa-step.sa-on { color: var(--ink); }
.sa-step.sa-on .sa-dot { background: var(--ink); border-color: var(--ink); }
.sa-step.sa-on:last-child .sa-dot { background: var(--gold); border-color: var(--ink); }
.sa-step.sa-path::before { background: var(--ink); }
.sa-trail-expired .sa-dot { border-style: dashed; }

/* Native inputs Astryx doesn't render without client JavaScript */
.sa-native-input { font: inherit; color: var(--ink); background: var(--cell); border: 1px solid var(--line-strong); border-radius: var(--r-box); padding: 7px 10px; min-height: 36px; box-sizing: border-box; }
.sa-native-input:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }

/* Code and secrets */
.sa-secret { border: 1px dashed var(--ink); border-radius: var(--r-box); padding: 16px; background: var(--gold-soft); }
.sa-pre { font-family: var(--mono); font-size: 0.8125rem; line-height: 1.6; background: var(--tint); border: 1px solid var(--line); border-radius: var(--r-box); padding: 14px 16px; overflow-x: auto; white-space: pre; margin: 0; }
.sa-steps { margin: 0; padding-left: 26px; list-style: decimal-leading-zero; display: grid; gap: 16px; }
/* One column no wider than the page, so a long line of code scrolls inside its block instead of widening the page. */
.sa-steps { grid-template-columns: minmax(0, 1fr); }
.sa-steps > li, .sa-copy { min-width: 0; }
/* Astryx's reset removes list markers; prose lists keep them. */
.sa-prose ul, .sa-bullets { list-style: square; padding-left: 22px; display: grid; gap: 8px; }
.sa-prose ul { margin: 0; }
.sa-steps > li::marker { font-family: var(--mono); font-size: var(--t-xs); color: var(--faint); }
.sa-prose code, .sa-content :not(pre) > code { font-family: var(--mono); font-size: 0.875em; padding: 1px 5px; border-radius: var(--r-control); background: var(--tint); }

/* Native disclosure, styled to sit with Astryx */
.sa-details { border-top: 1px solid var(--line); padding-top: 12px; }
.sa-details > summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.sa-label { display: grid; gap: 6px; font-weight: 500; font-size: var(--t-sm); color: var(--ink); max-width: 240px; }
.sa-wrap { overflow-wrap: anywhere; }

.sa-badge { display: inline-flex; max-width: 100%; }
@media (max-width: 767px) {
  /* Tables scroll sideways on phones instead of squeezing words. */
  .sa-content .astryx-table-scroll-wrapper table { min-width: 640px !important; } /* Astryx sets an inline min-width */
  .sa-hide-phone { display: none; }
}

/* Let tables scroll inside their cards: every container above them must be allowed to shrink. */
.sa-content, .sa-content > *, .sa-content .astryx-card { min-width: 0; max-width: 100%; box-sizing: border-box; }
.sa-content { width: 100%; }
.sa-content .astryx-table-scroll-wrapper { max-width: 100%; overflow-x: auto; }

/* The protocol page (/spec): a scene header, a sticky contents list, and the reference */
.pr-hero { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: start; padding: 64px 40px 176px; color: #fff; --u: 3; }
.pr-facts { align-self: end; margin-bottom: -128px !important; }
.pr-hero-text { display: grid; gap: 14px; }
.pr-kicker { font-family: var(--mono); font-size: var(--t-xs); color: #d8d4f2; }
.pr-hero h1 { margin: 0; font-size: clamp(2.2rem, 4vw, 3.25rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.05; color: #fff; }
.pr-hero p { margin: 0; max-width: 34em; font-size: var(--t-md); line-height: 1.55; color: #e6e3f8; }
.pr-facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--night); border-radius: var(--r-window); background: var(--cell); box-shadow: var(--shadow-hard); overflow: hidden; }
.pr-facts > div { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.pr-facts > div:nth-child(odd) { border-right: 1px solid var(--line); }
.pr-facts > div:nth-last-child(-n+2) { border-bottom: 0; }
.pr-facts dt { font-family: var(--mono); font-size: var(--t-xs); color: var(--faint); }
.pr-facts dd { margin: 4px 0 0; font-size: var(--t-md); font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.pr-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); border-top: 1px solid var(--line); }
.pr-toc { position: sticky; top: 61px; align-self: start; display: grid; gap: 2px; padding: 32px 16px 32px 28px; border-right: 1px solid var(--line); min-height: 0; }
.pr-toc span { padding: 0 8px 10px; font-family: var(--mono); font-size: var(--t-xs); color: var(--faint); }
.pr-toc a { padding: 6px 8px; border-radius: var(--r-control); font-size: var(--t-sm); color: var(--slate); text-decoration: none; }
.pr-toc a:hover { background: var(--tint); color: var(--ink); }
.pr-doc { min-width: 0; padding: 8px 56px 96px; max-width: 820px; }
.pr-section { padding-top: 48px; display: grid; gap: 18px; }
.pr-section + .pr-section { margin-top: 8px; border-top: 1px solid var(--line); }
.pr-section h2 { margin: 0; font-size: 1.625rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; color: var(--ink); scroll-margin-top: 80px; }
.pr-section h3 { margin: 0; font-size: var(--t-base); font-weight: 600; color: var(--ink); }
.pr-section p { margin: 0; font-size: var(--t-base); line-height: 1.65; color: var(--slate); max-width: 68ch; text-wrap: pretty; }
.pr-section :not(pre) > code { font-family: var(--mono); font-size: 0.85em; padding: 1px 5px; border-radius: var(--r-control); background: var(--tint); color: var(--ink); overflow-wrap: anywhere; }
.pr-section a { color: var(--ink); text-underline-offset: 3px; }
.pr-section ul { margin: 0; padding-left: 1.25em; list-style: disc; display: grid; gap: 8px; max-width: 68ch; }
.pr-section ul li { font-size: var(--t-base); line-height: 1.65; color: var(--slate); padding-left: 2px; }

/* Code: a dark window with a mono caption bar */
.pr-code { margin: 0; border: 1px solid var(--night); border-radius: var(--r-window); overflow: hidden; background: var(--night-2); box-shadow: var(--shadow-hard-sm); }
.pr-code figcaption { padding: 8px 14px; border-bottom: 1px solid #262352; font-family: var(--mono); font-size: var(--t-xs); color: #a9a5d6; }
.pr-code pre { margin: 0; padding: 16px; overflow-x: auto; font-family: var(--mono); font-size: 0.8125rem; line-height: 1.65; color: #ecebfa; }

/* Tables: mono headers over hairline rows */
.pr-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-box); background: var(--cell); }
.pr-table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.pr-table th, .pr-table td { text-align: left; vertical-align: top; padding: 11px 14px; border-top: 1px solid var(--line); line-height: 1.5; }
.pr-table thead th { border-top: 0; font-family: var(--mono); font-size: var(--t-xs); font-weight: 500; color: var(--faint); background: var(--tint); }
.pr-table tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; }
.pr-table td { color: var(--slate); }

/* The four ways to answer an offer */
.pr-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pr-choices > div { display: grid; gap: 6px; align-content: start; padding: 18px; background: var(--cell); }
.pr-choices > div:first-child h3::after { content: "Recommended"; margin-left: 8px; padding: 0 6px; border-radius: var(--r-control); background: var(--gold); color: var(--on-gold); font-family: var(--mono); font-size: var(--t-xs); font-weight: 600; vertical-align: 2px; }
.pr-choices p { font-size: var(--t-sm); }

/* The sequence: two lanes, numbered messages, arrows that point the way they go */
.pr-seq { margin: 8px 0 0; border: 1px solid var(--line); border-radius: var(--r-window); background: var(--cell); overflow: hidden; }
.pr-seq-lanes { display: flex; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--tint); font-family: var(--mono); font-size: var(--t-xs); color: var(--faint); }
.pr-seq ol { list-style: none; margin: 0; padding: 6px 0; }
.pr-seq li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 4px 12px; padding: 12px 16px; }
.pr-seq li + li { border-top: 1px dashed var(--line); }
.pr-seq-n { grid-row: span 2; font-family: var(--mono); font-size: var(--t-xs); color: var(--faint); padding-top: 2px; }
.pr-seq-arrow { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; }
.pr-seq-arrow::after { content: ""; flex: 1; min-width: 24px; height: 2px; background: var(--ink); }
.pr-seq-arrow::before { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px; background: var(--ink); clip-path: polygon(0 0, 100% 50%, 0 100%); right: -2px; }
.pr-seq-l .pr-seq-arrow { flex-direction: row-reverse; }
.pr-seq-l .pr-seq-arrow::before { right: auto; left: -2px; clip-path: polygon(100% 0, 0 50%, 100% 100%); }
.pr-seq-arrow code { flex: none; max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 0.8125rem; padding: 2px 6px; border-radius: var(--r-control); background: var(--tint); color: var(--ink); }
.pr-seq-l .pr-seq-arrow code { background: var(--gold-soft); }
.pr-seq li p { margin: 0; font-size: var(--t-sm); color: var(--slate); }
.pr-seq li p em { font-style: normal; color: var(--faint); }
.pr-rules { margin: 0; padding-left: 22px; display: grid; gap: 10px; list-style: decimal-leading-zero; }
.pr-rules li { font-size: var(--t-base); line-height: 1.55; color: var(--ink); padding-left: 6px; }
.pr-rules li::marker { font-family: var(--mono); font-size: var(--t-xs); color: var(--faint); }

@media (max-width: 1080px) {
  .pr-hero { grid-template-columns: minmax(0, 1fr); padding-bottom: 150px; }
  .pr-facts { margin-bottom: -100px !important; }
  .pr-body { grid-template-columns: minmax(0, 1fr); }
  .pr-toc { position: static; display: flex; flex-wrap: wrap; gap: 4px; padding: 16px 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .pr-toc span { width: 100%; padding: 0 8px 4px; }
  .pr-doc { padding: 0 40px 80px; }
}
@media (max-width: 720px) {
  .pr-hero { padding: 40px 20px 112px; --u: 2; }
  .pr-facts { margin-bottom: -72px !important; }
  .pr-doc { padding: 0 20px 64px; }
  .pr-choices { grid-template-columns: minmax(0, 1fr); }
  .pr-seq-arrow code { max-width: 100%; }
  .pr-seq-arrow::after, .pr-seq-arrow::before { display: none; }
}

/* Business details as sent or approved (business.tsx): label over value, one row each */
.sa-facts { display: grid; margin: 0; border-top: 1px solid var(--line); }
.sa-facts > div { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 4px 24px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sa-facts dt { display: flex; align-items: center; gap: 8px; font-size: var(--t-sm); color: var(--slate); }
.sa-facts dd { margin: 0; font-size: var(--t-sm); color: var(--ink); overflow-wrap: anywhere; }
.sa-facts-tag { padding: 0 6px; border-radius: var(--r-control); background: var(--gold-soft); color: var(--gold-text); font-family: var(--mono); font-size: var(--t-xs); }
.sa-facts-changed dd { font-weight: 600; }
@media (max-width: 720px) { .sa-facts > div { grid-template-columns: minmax(0, 1fr); } }

/* The admin's view of a change request: before and after */
.sa-diff { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.sa-diff th, .sa-diff td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.sa-diff thead th { font-family: var(--mono); font-size: var(--t-xs); font-weight: 500; color: var(--faint); }
.sa-diff tbody th { font-weight: 500; color: var(--slate); white-space: nowrap; }
.sa-diff td:last-child { font-weight: 600; }

/* CountryField (kit.tsx): a native select that the script turns into a searchable list */
.sa-combo { position: relative; width: 100%; }
/* Astryx fields each stack on their own, so lift the country field above the fields after it, for its open list. */
.astryx-field:has(.sa-combo) { position: relative; z-index: 5; }
.sa-combo-select, .sa-combo-input { width: 100%; }
.sa-combo-input { padding-right: 34px; }
.sa-combo::after { content: ""; position: absolute; top: 13px; right: 14px; width: 6px; height: 6px; border-right: 1.5px solid var(--slate); border-bottom: 1.5px solid var(--slate); transform: rotate(45deg); pointer-events: none; }
.sa-combo-list { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; right: 0; max-height: 288px; overflow-y: auto; margin: 0; padding: 4px; list-style: none; background: var(--cell); border: 1px solid var(--ink); border-radius: var(--r-box); box-shadow: var(--shadow-hard-sm); }
.sa-combo-list [role="option"] { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--r-control); font-size: var(--t-sm); color: var(--ink); cursor: pointer; }
.sa-combo-list [role="option"]:hover, .sa-combo-list [role="option"].active { background: var(--tint); }
.sa-combo-list [role="option"][aria-selected="true"] { font-weight: 600; }
.sa-combo-flag { width: 1.4em; text-align: center; }
.sa-combo-empty { padding: 8px 10px; font-size: var(--t-sm); color: var(--faint); }

/* Copyable (kit.tsx): a block of text with a Copy button in its corner */
.sa-copy { position: relative; }
.sa-copy .sa-pre { margin: 0; padding-right: 84px; }
.sa-copy-btn { position: absolute; top: 8px; right: 8px; padding: 4px 10px; border: 1px solid var(--ink); border-radius: var(--r-control); background: var(--cell); color: var(--ink); font-family: var(--mono); font-size: var(--t-xs); cursor: pointer; }
.sa-copy-btn:hover { background: var(--ink); color: var(--paper); }
.sa-copy-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.sa-copy-btn[hidden] { display: none; }
/* On a phone, long code scrolls sideways under a corner button, so the button sits above the code instead. */
@media (max-width: 720px) {
  .sa-copy { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
  .sa-copy .sa-pre { width: 100%; box-sizing: border-box; padding-right: 16px; }
  .sa-copy-btn { position: static; order: -1; }
}

/* The site page's install, as numbered steps (publisher.tsx) */
.sa-install { counter-reset: install; display: grid; gap: 0; margin: 0 0 20px; padding: 0; list-style: none; }
.sa-install > li { counter-increment: install; position: relative; display: grid; gap: 12px; padding: 20px 0 20px 48px; border-top: 1px solid var(--line); }
.sa-install > li:first-child { border-top: 0; padding-top: 4px; }
.sa-install > li::before { content: counter(install); position: absolute; left: 0; top: 18px; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--ink); border-radius: var(--r-control); font-family: var(--mono); font-size: var(--t-sm); font-weight: 600; }
.sa-install > li:first-child::before { top: 2px; }
.sa-install h3 { margin: 0; font-size: var(--t-md); font-weight: 600; letter-spacing: -0.01em; }
.sa-install p { margin: 0; max-width: 62ch; font-size: var(--t-sm); line-height: 1.55; color: var(--slate); }
.sa-install p .px-btn { color: var(--on-gold); }
.sa-install-help { color: var(--faint); }
.sa-perms { width: 100%; max-width: 640px; border-collapse: collapse; font-size: var(--t-sm); border: 1px solid var(--line); border-radius: var(--r-box); }
.sa-perms th, .sa-perms td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.sa-perms thead th { background: var(--tint); font-family: var(--mono); font-size: var(--t-xs); font-weight: 500; color: var(--faint); }
.sa-perms tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; }
.sa-perms td { color: var(--slate); }
.sa-perms td:nth-child(2) { font-family: var(--mono); font-size: var(--t-xs); color: var(--ink); white-space: nowrap; }
.sa-perms-scope { margin-left: 8px; font-family: var(--mono); font-size: var(--t-xs); font-weight: 400; color: var(--faint); }

/* Lists: filter tabs and search above a table, the pager under it (kit.tsx: FilterTabs, SearchBox, Pager) */
.sa-panel-body > :not(:first-child):is(.astryx-table-scroll-wrapper, div:has(> .astryx-table-scroll-wrapper)) { margin-top: 0; border-top: 1px solid var(--line); }
.sa-panel-body > :is(.astryx-table-scroll-wrapper, div:has(> .astryx-table-scroll-wrapper)):has(+ .sa-pager) { margin-bottom: -16px; }
.sa-list-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sa-tabs { display: flex; flex-wrap: wrap; gap: 2px; width: fit-content; max-width: 100%; box-sizing: border-box; padding: 3px; border: 1px solid var(--line); border-radius: var(--r-box); background: var(--tint); }
.sa-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--r-control); color: var(--slate); font-size: var(--t-sm); text-decoration: none; white-space: nowrap; }
.sa-tabs a:hover { color: var(--ink); background: var(--cell); }
.sa-tabs a[aria-current="page"] { background: var(--cell); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px var(--line-strong); }
.sa-tabs a:focus-visible, .sa-pager a:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.sa-tabs-n { font-family: var(--mono); font-size: var(--t-xs); font-weight: 400; color: var(--faint); font-variant-numeric: tabular-nums; }
.sa-tabs a[aria-current="page"] .sa-tabs-n { color: var(--ink); }
.sa-search { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; }
.sa-search-q { width: 260px; max-width: 100%; }
.sa-search-clear { font-size: var(--t-sm); color: var(--slate); text-underline-offset: 3px; }
.sa-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--r-box); background: var(--tint); }
.sa-panel-body > .sa-pager { margin: 0 -20px -20px; padding: 10px 20px; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.sa-pager-count { font-family: var(--mono); font-size: var(--t-xs); color: var(--faint); font-variant-numeric: tabular-nums; }
.sa-pager-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.sa-pager-links > a, .sa-pager-links > span[aria-disabled] { display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 10px; box-sizing: border-box; border: 1px solid var(--line-strong); border-radius: var(--r-control); background: var(--cell); color: var(--ink); font-size: var(--t-sm); text-decoration: none; font-variant-numeric: tabular-nums; }
.sa-pager-links > a:hover { border-color: var(--ink); }
.sa-pager-links > a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--paper); font-weight: 600; }
.sa-pager-links > span[aria-disabled] { background: transparent; border-color: var(--line); color: var(--faint); }
.sa-pager-gap { padding: 0 2px; color: var(--faint); }
.sa-ago { font-size: var(--t-sm); color: var(--slate); white-space: nowrap; }

/* Records: details beside actions (admin account and site pages) */
.sa-split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.sa-kv { border-top: 0; }
.sa-kv > div:first-child { padding-top: 0; }
.sa-kv > div:last-child { border-bottom: 0; padding-bottom: 0; }
.sa-kv > div { grid-template-columns: minmax(0, 168px) minmax(0, 1fr); }
.sa-none { color: var(--faint); }
.sa-people { list-style: none; margin: 0; padding: 0; display: grid; }
.sa-people li { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); font-size: var(--t-sm); color: var(--ink); overflow-wrap: anywhere; }
.sa-people li:first-child { border-top: 0; padding-top: 0; }
.sa-people b { font-weight: 600; }
.sa-people-meta { color: var(--faint); font-size: var(--t-xs); }
.sa-inline-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; }
.sa-inline-form .sa-native-input { width: 120px; }
.sa-figure-text { font-size: var(--t-md); font-weight: 600; letter-spacing: -0.01em; }

/* Vetting queues: each item's details and checks beside its decision */
.sa-review { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; padding: 24px 0; border-top: 1px solid var(--line); }
.sa-panel-body > .sa-review:first-of-type { border-top: 0; padding-top: 4px; }
.sa-panel-desc + .sa-review { border-top: 1px solid var(--line); padding-top: 24px; }
.sa-review-main { display: grid; gap: 18px; align-content: start; min-width: 0; }
.sa-review-head h3 { margin: 0; font-size: var(--t-md); font-weight: 600; letter-spacing: -0.015em; color: var(--ink); overflow-wrap: anywhere; }
.sa-review-head h3 a { color: inherit; text-underline-offset: 3px; }
.sa-review-head p { margin: 4px 0 0; font-size: var(--t-sm); color: var(--slate); }
.sa-review-side { display: grid; gap: 16px; align-content: start; align-self: start; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-box); background: var(--tint); font-size: var(--t-sm); }
.sa-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sa-checks li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; font-size: var(--t-sm); line-height: 1.5; color: var(--slate); }
.sa-check-mark { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-top: 1px; box-sizing: border-box; border-radius: var(--r-control); font-family: var(--mono); font-size: 11px; font-weight: 600; line-height: 1; }
.sa-check-ok .sa-check-mark { background: var(--ink); color: var(--paper); }
.sa-check-ok .sa-check-mark::before { content: "✓"; }
.sa-check-look { color: var(--ink); }
.sa-check-look > span:last-child { font-weight: 500; }
.sa-check-look .sa-check-mark { border: 1px solid var(--ink); background: var(--gold-soft); color: var(--ink); }
.sa-check-look .sa-check-mark::before { content: "!"; }
.sa-check-info .sa-check-mark { border: 1px solid var(--line-strong); color: var(--faint); }
.sa-check-info .sa-check-mark::before { content: "i"; }

/* Prices: each tier's form beside its last 30 days */
.sa-price-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; align-items: start; }
.sa-price-input { width: 104px; font-variant-numeric: tabular-nums; }
.sa-price-bad { font-weight: 600; text-decoration: underline wavy; text-underline-offset: 3px; }
.sa-price-stats { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-box); background: var(--tint); }
.sa-price-stats h3 { margin: 0; font-family: var(--mono); font-size: var(--t-xs); font-weight: 500; color: var(--faint); }
.sa-price-stats .sa-kv > div { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 7px 0; }
.sa-price-stats .sa-kv dd { text-align: right; font-variant-numeric: tabular-nums; }

@media (max-width: 1080px) {
  .sa-split, .sa-price-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .sa-review { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 720px) {
  .sa-list-tools { flex-direction: column; align-items: stretch; }
  .sa-tabs { flex-wrap: nowrap; overflow-x: auto; width: auto; }
  .sa-search-q { flex: 1; width: auto; min-width: 0; }
  .sa-pager { justify-content: center; }
  .sa-kv > div { grid-template-columns: minmax(0, 1fr); }
}
.sa-review-decide { padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.sa-review .sa-kv > div { padding: 9px 0; }
.sa-figure-link { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.sa-figure-link:hover { text-decoration-thickness: 2px; }
/* Tables bleed to the panel's edges; the scroll wrapper's max-width would stop them short of the right edge. */
.sa-panel-body > .astryx-table-scroll-wrapper { max-width: none; width: calc(100% + 40px); }
.sa-panel-body { grid-template-columns: minmax(0, 1fr); }
.sa-trunc { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--t-sm); color: var(--ink); }

/* Two-factor setup: the QR code on white, whatever the theme, so phones can read it. */
.sa-qr { width: 208px; padding: 8px; background: #fff; border: 1px solid var(--line); line-height: 0; }
.sa-qr svg { width: 100%; height: auto; }

/* Legal pages: the date under the title, and links to the other policies at the end. */
.sa-legal-date { margin: 0; color: var(--faint); font-family: var(--mono); font-size: var(--t-xs); }
.sa-legal h2 { margin-top: 40px; }
.sa-legal-nav { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); }

/* The install chooser: hosts grouped by kind, the chosen one marked. */
.sa-hosts { display: grid; gap: 12px; }
.sa-hosts-group { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 4px 16px; align-items: baseline; }
.sa-hosts-label { font-size: var(--t-sm); color: var(--slate); }
.sa-hosts ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sa-hosts a { display: inline-block; padding: 3px 10px; border: 1px solid var(--line); border-radius: var(--r-control); color: var(--ink); text-decoration: none; font-size: var(--t-sm); }
.sa-hosts a:hover { border-color: var(--ink); }
.sa-hosts a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sa-hosts a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--paper, #fff); }
.sa-host-steps { margin: 0; }
@media (max-width: 640px) { .sa-hosts-group { grid-template-columns: minmax(0, 1fr); } }

/* Write it for me, on the new-campaign page. */
.sa-writer { padding: 16px; border: 1px solid var(--line); border-radius: var(--r-box); background: var(--tint); }
.sa-drafts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sa-drafts li { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-box); background: var(--paper); }
.sa-drafts-use { justify-self: start; height: 36px; padding: 0 14px; font-size: var(--t-sm); }
/* The form's default button for Enter: present for the browser, invisible and unreachable for people. */
.sa-default-submit { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

/* The steps an ad's link takes, as followed. */
.sa-hops { margin: 0; padding-left: 20px; display: grid; gap: 2px; font-size: var(--t-sm); }
.sa-hops-url { overflow-wrap: anywhere; }

/* Setup pages */
.sa-setup-title { display: flex; align-items: center; gap: 14px; margin: 0; }
.sa-setup-more { margin-top: 48px; border-top: 1px solid var(--line); }
.sa-setup-more h2 { margin: 32px 0 8px; }

/* Paywalled content section, and the Pages list's access line. */
.sa-method { border-top: 1px solid var(--line); padding: 16px 0; display: flex; flex-direction: column; gap: 10px; }
.sa-method h3 { margin: 0; font-size: var(--t-md, 1rem); }
.sa-method form { display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.sa-page-access { font-size: var(--t-xs); color: var(--faint); margin-top: 2px; }
/* The install step's permissions table scrolls inside its own box on narrow screens. */
@media (max-width: 640px) {
  .sa-perms { display: block; overflow-x: auto; }
}
