/* Project Hub: one team member's page (staffdraw.js), on the team page and in the owner's previews.
   It looks like the Hub itself (16 Nov 2026, Dom: "the dashboard really needs to look more like the project hub
   itself"): the Hub's colours, type, rail, panels, buttons, pills and lists (app.css), with only the customer's logo
   of their own (/brand.css, app/brand.js). Light by default; dark when the device or the Hub is.
   No style attributes anywhere (the team page forbids them): bar and point heights are the sd-h0..sd-h100 classes. */
.sd-root, .sp-page {
  color-scheme: light;
  --sd-page: #F6F6F3; --sd-card: #FFFFFF; --sd-raise: #F2F2EE; --sd-rail: #EDEDE8;
  --sd-ink: #1B1C1E; --sd-ink2: #3F4247; --sd-muted: #5E6168; --sd-line: #E3E3DE; --sd-line2: #D4D4CE;
  --sd-accent: #2357D9; --sd-accent-soft: #EEF2FD; --sd-accent-ink: #FFFFFF;
  --sd-btn: #1B1C1E; --sd-btn-ink: #FFFFFF;
  --sd-good: #006300; --sd-good-bg: #E9F3EC; --sd-green: #1E8E3E;
  --sd-bad: #A12A1E; --sd-bad-bg: #FBEDEB;
  --sd-warn: #8A3B00; --sd-warn-bg: #FDEBD9; --sd-note: #FBF1E6;
  --sd-s1: #2a78d6; --sd-s1-soft: color-mix(in srgb, var(--sd-s1) 40%, var(--sd-card)); --sd-grid: #e1e0d9; --sd-axis: #c3c2b7;
  --sd-g-bg: #FFFFFF; --sd-g-link: #1a0dab; --sd-g-url: #4d5156; --sd-g-text: #474747;
  --sd-lift: 0 1px 2px rgba(0, 0, 0, .05);
  --sd-font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
  --sd-font-head: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --sd-head-weight: 650;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) :is(.sd-root, .sp-page) {
    color-scheme: dark;
    --sd-page: #1A1B1E; --sd-card: #232428; --sd-raise: #2C2E33; --sd-rail: #151618;
    --sd-ink: #ECECEA; --sd-ink2: #CDCFD2; --sd-muted: #A3A6AD; --sd-line: #34363B; --sd-line2: #44464C;
    --sd-accent: #7FA6FF; --sd-accent-soft: #26324F; --sd-accent-ink: #10172A;
    --sd-btn: #ECECEA; --sd-btn-ink: #1B1C1E;
    --sd-good: #4CC26E; --sd-good-bg: #1F3326; --sd-green: #3FB565;
    --sd-bad: #FF8A7A; --sd-bad-bg: #3A2220;
    --sd-warn: #F2B27A; --sd-warn-bg: #4A3422; --sd-note: #33281D;
    --sd-s1: #3987e5; --sd-s1-soft: color-mix(in srgb, var(--sd-s1) 45%, var(--sd-card)); --sd-grid: #2c2c2a; --sd-axis: #383835;
    --sd-g-bg: #202124; --sd-g-link: #8ab4f8; --sd-g-url: #bdc1c6; --sd-g-text: #bdc1c6;
    --sd-lift: 0 1px 2px rgba(0, 0, 0, .3);
  }
}
:root[data-theme="dark"] :is(.sd-root, .sp-page) {
  color-scheme: dark;
  --sd-page: #1A1B1E; --sd-card: #232428; --sd-raise: #2C2E33; --sd-rail: #151618;
  --sd-ink: #ECECEA; --sd-ink2: #CDCFD2; --sd-muted: #A3A6AD; --sd-line: #34363B; --sd-line2: #44464C;
  --sd-accent: #7FA6FF; --sd-accent-soft: #26324F; --sd-accent-ink: #10172A;
  --sd-btn: #ECECEA; --sd-btn-ink: #1B1C1E;
  --sd-good: #4CC26E; --sd-good-bg: #1F3326; --sd-green: #3FB565;
  --sd-bad: #FF8A7A; --sd-bad-bg: #3A2220;
  --sd-warn: #F2B27A; --sd-warn-bg: #4A3422; --sd-note: #33281D;
  --sd-s1: #3987e5; --sd-s1-soft: color-mix(in srgb, var(--sd-s1) 45%, var(--sd-card)); --sd-grid: #2c2c2a; --sd-axis: #383835;
  --sd-g-bg: #202124; --sd-g-link: #8ab4f8; --sd-g-url: #bdc1c6; --sd-g-text: #bdc1c6;
  --sd-lift: 0 1px 2px rgba(0, 0, 0, .3);
}

.sd-root { container-type: inline-size; color: var(--sd-ink); background: var(--sd-page); font: 14px/1.45 var(--sd-font); -webkit-font-smoothing: antialiased; }
.sd-root *, .sd-root *::before, .sd-root *::after { box-sizing: border-box; }
.sd-root [hidden] { display: none !important; }
.sd-root ::selection { background: color-mix(in srgb, var(--sd-accent) 25%, transparent); }
.sd-root :focus-visible { outline: 2px solid var(--sd-accent); outline-offset: 2px; }
:where(.sd-root) :where(h1, h2, h3, h4, p) { margin: 0; }
.sd-i { width: 16px; height: 16px; flex: none; display: block; }
.sd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- the frame: a rail of dashboards (like the Hub's projects), then the page ---------- */
.sd-app { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100vh; }
.sd-rail { position: sticky; top: 0; z-index: 5; background: var(--sd-rail); border-bottom: 1px solid var(--sd-line); }
.sd-rail-in { display: flex; flex-direction: column; gap: 10px; padding: 10px 14px 10px; }
.sd-brand { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 0 3px; font-size: 15px; font-weight: 650; white-space: nowrap; }
.sd-logo { display: block; height: 30px; width: auto; max-width: 44px; object-fit: contain; flex: none; }
.sd-mark { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(135deg, #3B6BF0, #1B3FB0); color: #fff; font-size: 13px; font-weight: 700; }
.sd-bn { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sd-team { flex: none; padding-left: 9px; border-left: 1px solid var(--sd-line2); color: var(--sd-muted); font-size: 13px; font-weight: 600; }
.sd-me-sm { margin-left: auto; }
.sd-navs { display: flex; gap: 4px; overflow-x: auto; margin: 0 -14px; padding: 0 14px 2px; scrollbar-width: none; }
.sd-navs::-webkit-scrollbar { display: none; }
.sd-nav { position: relative; display: flex; align-items: center; gap: 9px; flex: none; height: 34px; padding: 0 10px 0 8px; border: 0; border-radius: 8px; background: transparent; color: var(--sd-ink); font: inherit; text-align: left; cursor: pointer; }
.sd-nav:hover { background: color-mix(in srgb, var(--sd-ink) 6%, transparent); }
.sd-nav.on { background: var(--sd-card); box-shadow: 0 0 0 1px var(--sd-line), var(--sd-lift); font-weight: 600; }
.sd-nav > .sd-i { color: var(--sd-muted); margin: 0 2px; }
.sd-nav.on > .sd-i { color: var(--sd-ink); }
.sd-nn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-railfoot { display: none; }
.sd-av { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--sd-good-bg); color: var(--sd-good); font-size: 13px; font-weight: 650; }
.sd-mn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.sd-main { container-type: inline-size; min-width: 0; padding: 20px 14px 40px; }
.sd-pagehead { display: flex; flex-direction: column; gap: 4px; margin: 0 0 18px; }
.sd-pagehead h1 { font: var(--sd-head-weight) 23px/1.2 var(--sd-font-head); letter-spacing: -.015em; }
.sd-hint { font-size: 13px; color: var(--sd-muted); }
.sd-status { margin: 22px 2px 0; font-size: 12px; color: var(--sd-muted); min-height: 1.2em; }
@container (min-width: 820px) {
  .sd-app { grid-template-columns: 236px minmax(0, 1fr); }
  .sd-rail { position: static; border-bottom: 0; border-right: 1px solid var(--sd-line); }
  .sd-rail-in { position: sticky; top: 0; max-height: 100vh; overflow-y: auto; gap: 12px; padding: 14px 10px 12px; min-height: min(100vh, 100%); }
  .sd-brand { padding: 2px 4px 6px; }
  .sd-me-sm { display: none; }
  .sd-navs { flex-direction: column; gap: 1px; overflow: visible; margin: 0; padding: 0; }
  .sd-nav { width: 100%; padding: 0 8px; }
  .sd-nav .sd-nn { flex: 1; }
  .sd-railfoot { display: flex; align-items: center; gap: 9px; margin-top: auto; padding: 10px 6px 2px; border-top: 1px solid var(--sd-line); }
  .sd-main { padding: 30px 28px 64px; }
}

/* ---------- a dashboard ---------- */
.sd-dash { max-width: 1120px; }
.sd-dh { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; min-height: 30px; margin: 0 0 10px; }
.sd-dh h2 { font-size: 15px; font-weight: 650; }
.sd-upd { margin-left: auto; font-size: 12px; color: var(--sd-muted); }
.sd-pill, .sd-tag { flex: none; min-width: 20px; height: 20px; padding: 0 7px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; background: var(--sd-raise); color: var(--sd-muted); font-size: 11px; font-weight: 700; white-space: nowrap; }
.sd-pill.warm, .sd-ex { background: var(--sd-warn-bg); color: var(--sd-warn); }
.sd-tag .sd-i { width: 13px; height: 13px; }
.sd-grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@container (min-width: 640px) {
  .sd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; }
  .sd-b.wide, .sd-sec { grid-column: 1 / -1; }
}
@container (min-width: 1000px) { .sd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sd-sec { margin: 8px 2px 0; font-size: 14px; font-weight: 650; }
.sd-empty { padding: 22px; border: 1px dashed var(--sd-line2); border-radius: 14px; color: var(--sd-muted); text-align: center; }
.sd-none { max-width: 34rem; }

/* ---------- a block: a Hub panel ---------- */
.sd-b { position: relative; min-width: 0; background: var(--sd-card); border: 1px solid var(--sd-line); border-radius: 14px; box-shadow: var(--sd-lift); padding: 14px 16px 16px; }
.sd-bh { display: flex; align-items: center; gap: 10px; min-height: 32px; margin: 0 0 12px; }
.sd-bh h3 { flex: 1; min-width: 0; font-size: 14px; font-weight: 650; line-height: 1.3; }
.sd-bi { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--sd-accent-soft); color: var(--sd-accent); }
.sd-ex { flex: none; height: 20px; padding: 0 8px; border-radius: 10px; display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; white-space: nowrap; }
.sd-src { display: flex; gap: 7px; align-items: flex-start; margin: 14px 0 0; padding-top: 11px; border-top: 1px solid var(--sd-line); font-size: 12px; line-height: 1.45; color: var(--sd-muted); }
.sd-src .sd-i { width: 14px; height: 14px; margin-top: 1px; }
.sd-subh { margin: 18px 0 4px; font-size: 13px; font-weight: 650; }
.sd-sub { font-size: 12px; color: var(--sd-muted); }
.sd-help { margin: -4px 0 12px; color: var(--sd-muted); font-size: 13px; max-width: 62ch; }

/* a note from the owner, on the Hub's warm paper */
.sd-note { background: var(--sd-note); border-color: color-mix(in srgb, var(--sd-warn-bg) 80%, var(--sd-line)); }
.sd-from { display: flex; align-items: center; gap: 9px; margin: 0 0 9px; font-size: 13px; }
.sd-note p { font-size: 14px; line-height: 1.55; max-width: 65ch; }

/* jobs: the Hub's rows, with real tick boxes */
.sd-count { font-size: 12px; color: var(--sd-muted); white-space: nowrap; }
.sd-count.all { display: inline-flex; align-items: center; gap: 4px; color: var(--sd-good); font-weight: 600; }
.sd-count .sd-i { width: 15px; height: 15px; stroke-width: 2.4; }
.sd-meter { display: block; width: 100%; height: 6px; margin: -4px 0 4px; border: 0; border-radius: 3px; overflow: hidden; background: var(--sd-raise); -webkit-appearance: none; appearance: none; }
.sd-meter::-webkit-progress-bar { background: var(--sd-raise); border-radius: 3px; }
.sd-meter::-webkit-progress-value { background: var(--sd-green); border-radius: 3px; }
.sd-meter::-moz-progress-bar { background: var(--sd-green); border-radius: 3px; }
.sd-joblist { list-style: none; margin: 0; padding: 0; }
.sd-job { border-top: 1px solid var(--sd-line); }
.sd-job:first-child { border-top: 0; }
.sd-job label { display: flex; align-items: flex-start; gap: 11px; min-height: 42px; padding: 10px 0; cursor: pointer; }
.sd-cb { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--sd-accent); cursor: pointer; }
.sd-cb:disabled { cursor: default; }
.sd-job label:has(.sd-cb:disabled) { cursor: default; }
.sd-t { overflow-wrap: anywhere; }
.sd-job.done .sd-t { color: var(--sd-muted); text-decoration: line-through; }
.sd-by { display: block; margin: -7px 0 9px 29px; font-size: 12px; color: var(--sd-muted); }

/* figures the owner types: a band of numbers split by hairlines */
.sd-figs { overflow: hidden; }
.sd-figrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin: 0 0 0 -17px; }
.sd-fig { padding: 2px 16px 2px; border-left: 1px solid var(--sd-line); }
.sd-fig dt { font-size: 12px; color: var(--sd-muted); margin: 0 0 2px; }
.sd-fv { margin: 0; font-size: 22px; font-weight: 650; line-height: 1.2; letter-spacing: -.01em; }
.sd-fn { display: flex; gap: 5px; align-items: flex-start; margin: 4px 0 0; font-size: 12px; color: var(--sd-muted); }
.sd-fn .sd-i { width: 14px; height: 14px; margin-top: 1px; }
.sd-fig.good .sd-fn { color: var(--sd-good); }
.sd-fig.warn .sd-fn { color: var(--sd-warn); }
.sd-fig.bad .sd-fn { color: var(--sd-bad); }

/* links: the Hub's rows */
.sd-linklist { list-style: none; margin: 0; padding: 0; border: 1px solid var(--sd-line); border-radius: 10px; overflow: hidden; }
.sd-linklist li + li { border-top: 1px solid var(--sd-line); }
.sd-link { display: flex; align-items: center; gap: 11px; min-height: 46px; padding: 8px 12px; color: var(--sd-ink); text-decoration: none; }
a.sd-link:hover { background: var(--sd-raise); }
.sd-lk { flex: 1; min-width: 0; display: grid; }
.sd-lk b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-lk span { font-size: 12px; color: var(--sd-muted); }
.sd-link .sd-i { color: var(--sd-muted); }

/* ---------- figures from Stripe and Google ---------- */
.sd-lead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin: 0 0 14px; }
.sd-hero { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 9px; }
.sd-hero-v { font-size: 30px; font-weight: 650; line-height: 1.1; letter-spacing: -.02em; }
.sd-hero-l { color: var(--sd-muted); }
.sd-d { display: inline-flex; align-items: flex-start; gap: 4px; font-size: 12px; font-weight: 600; line-height: 1.35; }
.sd-d .sd-i { width: 14px; height: 14px; stroke-width: 2.2; margin-top: 1px; }
.sd-d.good { color: var(--sd-good); }
.sd-d.bad { color: var(--sd-bad); }
.sd-d.flat { color: var(--sd-muted); }
.sd-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 12px 18px; margin: 0 0 4px; padding: 12px 0 0; border-top: 1px solid var(--sd-line); }
.sd-mini > div { min-width: 0; }
.sd-mini dt { font-size: 12px; color: var(--sd-muted); }
.sd-mini dd { margin: 1px 0 0; }
.sd-mv { font-size: 18px; font-weight: 650; }
.sd-kpis { border-top: 0; padding-top: 0; grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)); }
.sd-site { display: flex; align-items: center; gap: 6px; margin: -6px 0 12px; color: var(--sd-muted); font-size: 13px; }
.sd-site .sd-i { width: 14px; height: 14px; }
.sd-period { margin: -6px 0 12px; font-size: 13px; color: var(--sd-muted); }
.sd-b.wide { container-type: inline-size; }
.sd-split { display: grid; gap: 0 28px; }
@container (min-width: 840px) {
  .sd-split.two { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .sd-split.two > .sd-split-b { border-left: 1px solid var(--sd-line); padding-left: 26px; }
  .sd-split.two > .sd-split-b > .sd-subh:first-child { margin-top: 0; }
}

/* charts: one series, a round scale, hover or focus for the figure, a table for all of them */
.sd-chart { margin: 20px 0 0; }
.sd-chart figcaption { margin: 0 0 4px; font-size: 13px; font-weight: 600; }
.sd-plot { position: relative; height: 150px; margin: 18px 0 0 42px; }
.sd-gl { position: absolute; left: 0; right: 0; border-top: 1px solid var(--sd-grid); }
.sd-gl.g0 { bottom: 0; border-top-color: var(--sd-axis); }
.sd-gl.g50 { bottom: 50%; }
.sd-gl.g100 { bottom: 100%; }
.sd-gl span { position: absolute; right: calc(100% + 8px); top: -.55em; font-size: 11px; line-height: 1; color: var(--sd-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sd-slots { position: absolute; inset: 0; display: flex; }
.sd-slot { position: relative; flex: 1 1 0; min-width: 0; height: 100%; outline: none; }
.sd-bar { position: absolute; left: 50%; bottom: 0; width: 62%; max-width: 24px; height: var(--h); min-height: 2px; transform: translateX(-50%); border-radius: 4px 4px 0 0; background: var(--sd-s1); transition: filter .15s; }
.sd-h0 .sd-bar { display: none; }
.sd-slot.part .sd-bar { background: var(--sd-s1-soft); }
.sd-cols .sd-slot:hover .sd-bar, .sd-cols .sd-slot:focus-visible .sd-bar { filter: brightness(1.15); }
.sd-cols .sd-slot:focus-visible { box-shadow: inset 0 0 0 2px var(--sd-accent); border-radius: 6px; }
.sd-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sd-area { fill: var(--sd-s1); fill-opacity: .1; stroke: none; }
.sd-line { fill: none; stroke: var(--sd-s1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.sd-lc .sd-slot::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 1px solid var(--sd-axis); opacity: 0; }
.sd-lc .sd-slot:hover::before { opacity: 1; }
.sd-pt { position: absolute; left: 50%; bottom: var(--h); width: 10px; height: 10px; margin: 0 0 -5px -5px; border-radius: 50%; background: var(--sd-s1); box-shadow: 0 0 0 2px var(--sd-card); opacity: 0; }
.sd-lc .sd-slot:hover .sd-pt, .sd-slot.end .sd-pt { opacity: 1; }
.sd-endl { position: absolute; right: 50%; bottom: calc(var(--h) + 10px); margin-right: -6px; font-size: 12px; font-weight: 650; white-space: nowrap; transition: opacity .12s; }
.sd-plot:hover .sd-endl { opacity: 0; }
.sd-tip { position: absolute; z-index: 4; left: 50%; bottom: calc(var(--h) + 12px); display: grid; gap: 1px; padding: 6px 9px; border-radius: 8px; background: var(--sd-ink); color: var(--sd-card); box-shadow: 0 6px 16px -4px rgba(0, 0, 0, .3); white-space: nowrap; font-size: 12px; line-height: 1.3; pointer-events: none; opacity: 0; transform: translate(-50%, 4px); transition: opacity .12s, transform .12s; }
.sd-tip b { font-size: 13px; font-weight: 650; }
.sd-tip span { opacity: .8; }
.sd-tip.l { left: 0; transform: translate(0, 4px); }
.sd-tip.r { left: auto; right: 0; transform: translate(0, 4px); }
.sd-slot:hover .sd-tip, .sd-slot:focus-visible .sd-tip { opacity: 1; transform: translate(-50%, 0); }
.sd-slot:hover .sd-tip.l, .sd-slot:focus-visible .sd-tip.l, .sd-slot:hover .sd-tip.r, .sd-slot:focus-visible .sd-tip.r { transform: none; }
.sd-xax { display: flex; justify-content: space-between; margin: 6px 0 0 42px; font-size: 11px; color: var(--sd-muted); }
.sd-tv { margin: 10px 0 0; }
.sd-tv summary { width: fit-content; cursor: pointer; font-size: 12px; color: var(--sd-muted); padding: 3px 0; border-radius: 6px; }
.sd-tv summary:hover { color: var(--sd-ink); }
.sd-tw { overflow-x: auto; margin-top: 4px; }
.sd-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sd-table th, .sd-table td { text-align: left; padding: 8px 12px 8px 0; border-top: 1px solid var(--sd-line); vertical-align: middle; }
.sd-table thead th { border-top: 0; font-size: 12px; font-weight: 600; color: var(--sd-muted); }
.sd-table tbody th { font-weight: 400; }
.sd-table .n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; padding-right: 0; padding-left: 12px; }
.sd-table td.n .sd-d { justify-content: flex-end; }

/* recent payments: the Hub's rows */
.sd-rows { list-style: none; margin: 0; padding: 0; }
.sd-rows li { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-top: 1px solid var(--sd-line); }
.sd-rows li:first-child { border-top: 0; }
.sd-rw { flex: 1; min-width: 0; display: grid; gap: 1px; }
.sd-rw b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-rw span { font-size: 12px; color: var(--sd-muted); }
.sd-amt { font-weight: 650; font-variant-numeric: tabular-nums; }
.sd-rows li.refunded .sd-amt { color: var(--sd-muted); text-decoration: line-through; }
.sd-st { flex: none; height: 20px; display: inline-flex; align-items: center; gap: 3px; padding: 0 8px 0 5px; border-radius: 10px; font-size: 11px; font-weight: 700; }
.sd-st .sd-i { width: 13px; height: 13px; stroke-width: 2.2; }
.sd-st.paid { background: var(--sd-good-bg); color: var(--sd-good); }
.sd-st.refunded { background: var(--sd-raise); color: var(--sd-muted); }
.sd-st.pending { background: var(--sd-warn-bg); color: var(--sd-warn); }

/* ---------- tools and notes: the Hub's fields and buttons ---------- */
.sd-field { display: flex; flex-direction: column; gap: 5px; margin: 0 0 12px; min-width: 0; }
.sd-field > span { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; font-size: 12px; font-weight: 600; color: var(--sd-muted); }
.sd-root input[type="text"], .sd-root select { width: 100%; height: 36px; margin: 0; padding: 0 11px; border: 1px solid var(--sd-line); border-radius: 9px; background: var(--sd-card); color: var(--sd-ink); font: inherit; }
.sd-root textarea { display: block; width: 100%; min-height: 76px; margin: 0; padding: 9px 11px; border: 1px solid var(--sd-line); border-radius: 10px; background: var(--sd-card); color: var(--sd-ink); font: inherit; line-height: 1.45; resize: vertical; }
.sd-root select { -webkit-appearance: none; appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E6168' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; }
.sd-root input[type="text"]:focus, .sd-root textarea:focus, .sd-root select:focus { outline: none; border-color: var(--sd-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sd-accent) 18%, transparent); }
.sd-root ::placeholder { color: var(--sd-muted); opacity: .75; }
.sd-root input:disabled, .sd-root textarea:disabled, .sd-root select:disabled { opacity: .55; cursor: not-allowed; }
.sd-chips { border: 0; margin: 0 0 12px; padding: 0; min-width: 0; }
.sd-chips legend { padding: 0; margin: 0 0 6px; font-size: 12px; font-weight: 600; color: var(--sd-muted); }
.sd-chiprow { display: flex; flex-wrap: wrap; gap: 6px; }
.sd-chip { position: relative; }
.sd-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.sd-chip span { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--sd-line); background: var(--sd-card); box-shadow: var(--sd-lift); font-size: 12px; white-space: nowrap; }
.sd-chip:hover input:not(:disabled) + span { border-color: color-mix(in srgb, var(--sd-ink) 30%, var(--sd-line)); }
.sd-chip input:checked + span { background: var(--sd-btn); border-color: var(--sd-btn); color: var(--sd-btn-ink); font-weight: 600; }
.sd-chip input:focus-visible + span { outline: 2px solid var(--sd-accent); outline-offset: 2px; }
.sd-chips:disabled .sd-chip span { opacity: .55; }
.sd-chips:disabled .sd-chip input { cursor: not-allowed; }
.sd-actions { display: flex; justify-content: flex-end; }
.sd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 13px; border-radius: 9px; border: 1px solid var(--sd-line); background: var(--sd-card); color: var(--sd-ink); box-shadow: var(--sd-lift); font: inherit; font-size: 13px; white-space: nowrap; cursor: pointer; }
.sd-btn:hover:not(:disabled) { border-color: color-mix(in srgb, var(--sd-ink) 30%, var(--sd-line)); }
.sd-btn.primary { background: var(--sd-btn); border-color: var(--sd-btn); color: var(--sd-btn-ink); font-weight: 600; }
.sd-btn.primary:hover:not(:disabled) { opacity: .88; }
.sd-btn:disabled { opacity: .5; cursor: not-allowed; }
.sd-btn[aria-busy="true"] { opacity: .6; pointer-events: none; }
.sd-btn .sd-i { width: 15px; height: 15px; }
@media (max-width: 600px) { .sd-root input[type="text"], .sd-root textarea, .sd-root select { font-size: 16px; } }

/* how a page looks on Google: Google's own colours and type, so it reads as the real thing */
.sd-cnt { font-style: normal; font-weight: 500; color: var(--sd-muted); }
.sd-cnt.over { color: var(--sd-bad); font-weight: 650; }
.sd-serp-out { margin-top: 2px; padding: 14px 16px; border-radius: 10px; background: var(--sd-g-bg); border: 1px solid var(--sd-line); font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; }
.sd-g { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; min-width: 0; }
.sd-g-fav { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #f1f3f4; border: 1px solid #dadce0; color: #4d5156; font-size: 12px; font-weight: 700; }
.sd-g-src { display: grid; min-width: 0; line-height: 1.3; }
.sd-g-name { font-size: 14px; color: var(--sd-g-text); }
.sd-g-url { font-size: 12px; color: var(--sd-g-url); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-g-t { margin: 0 0 3px; font-size: 20px; line-height: 1.3; color: var(--sd-g-link); overflow-wrap: anywhere; }
.sd-g-d { font-size: 14px; line-height: 1.58; color: var(--sd-g-text); overflow-wrap: anywhere; }
.sd-g-t.ph, .sd-g-d.ph { opacity: .5; }

@media (prefers-reduced-motion: reduce) { .sd-root *, .sd-root *::before { transition: none !important; } }
@media (forced-colors: active) { .sd-bar, .sd-pt { background: CanvasText; } .sd-line { stroke: CanvasText; } }

/* heights for bars and points: --h, set by class */
.sd-h0{--h:0%}.sd-h1{--h:1%}.sd-h2{--h:2%}.sd-h3{--h:3%}.sd-h4{--h:4%}.sd-h5{--h:5%}.sd-h6{--h:6%}.sd-h7{--h:7%}.sd-h8{--h:8%}.sd-h9{--h:9%}
.sd-h10{--h:10%}.sd-h11{--h:11%}.sd-h12{--h:12%}.sd-h13{--h:13%}.sd-h14{--h:14%}.sd-h15{--h:15%}.sd-h16{--h:16%}.sd-h17{--h:17%}.sd-h18{--h:18%}.sd-h19{--h:19%}
.sd-h20{--h:20%}.sd-h21{--h:21%}.sd-h22{--h:22%}.sd-h23{--h:23%}.sd-h24{--h:24%}.sd-h25{--h:25%}.sd-h26{--h:26%}.sd-h27{--h:27%}.sd-h28{--h:28%}.sd-h29{--h:29%}
.sd-h30{--h:30%}.sd-h31{--h:31%}.sd-h32{--h:32%}.sd-h33{--h:33%}.sd-h34{--h:34%}.sd-h35{--h:35%}.sd-h36{--h:36%}.sd-h37{--h:37%}.sd-h38{--h:38%}.sd-h39{--h:39%}
.sd-h40{--h:40%}.sd-h41{--h:41%}.sd-h42{--h:42%}.sd-h43{--h:43%}.sd-h44{--h:44%}.sd-h45{--h:45%}.sd-h46{--h:46%}.sd-h47{--h:47%}.sd-h48{--h:48%}.sd-h49{--h:49%}
.sd-h50{--h:50%}.sd-h51{--h:51%}.sd-h52{--h:52%}.sd-h53{--h:53%}.sd-h54{--h:54%}.sd-h55{--h:55%}.sd-h56{--h:56%}.sd-h57{--h:57%}.sd-h58{--h:58%}.sd-h59{--h:59%}
.sd-h60{--h:60%}.sd-h61{--h:61%}.sd-h62{--h:62%}.sd-h63{--h:63%}.sd-h64{--h:64%}.sd-h65{--h:65%}.sd-h66{--h:66%}.sd-h67{--h:67%}.sd-h68{--h:68%}.sd-h69{--h:69%}
.sd-h70{--h:70%}.sd-h71{--h:71%}.sd-h72{--h:72%}.sd-h73{--h:73%}.sd-h74{--h:74%}.sd-h75{--h:75%}.sd-h76{--h:76%}.sd-h77{--h:77%}.sd-h78{--h:78%}.sd-h79{--h:79%}
.sd-h80{--h:80%}.sd-h81{--h:81%}.sd-h82{--h:82%}.sd-h83{--h:83%}.sd-h84{--h:84%}.sd-h85{--h:85%}.sd-h86{--h:86%}.sd-h87{--h:87%}.sd-h88{--h:88%}.sd-h89{--h:89%}
.sd-h90{--h:90%}.sd-h91{--h:91%}.sd-h92{--h:92%}.sd-h93{--h:93%}.sd-h94{--h:94%}.sd-h95{--h:95%}.sd-h96{--h:96%}.sd-h97{--h:97%}.sd-h98{--h:98%}.sd-h99{--h:99%}
.sd-h100{--h:100%}
