/* static/app.css */
/* ClutchClicks Admin (Docs/Systems/ControlPanel.md, rule 6): the owner's frame, "ClutchClicks HQ". A rail of sections
   at the left edge, the open section's pages in the sidebar beside it, the work with its head. Charcoal neutrals and a
   charcoal rail; light's surfaces white, cream, slate or sage by Preferences; ClutchClicks red for the primary action, the logo and inside the illustrations, in light and dark.
   Poppins 800 (--title) for titles and figures, Figtree for the rest. A failure is told apart from brand red by its
   own tone, an icon and words. */
@font-face { font-family: "Figtree"; src: url(/static/vendor/figtree.woff2?v=4ba7d3d09669) format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Poppins"; src: url(/static/vendor/poppins-800.woff2?v=60bf0aba6526) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(/static/vendor/geist-mono.woff2?v=684ad5b531f8) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  /* the light surfaces: white by default; Cream, Slate and Sage are Preferences' others (data-palette, below) */
  --bg: #f4f4f2; --side: #e9e9e6; --panel: #fbfbfa; --raise: #ffffff; --line: #e3e3df; --line2: #d2d2cd;
  --text: #17191c; --text2: #3e444c; --text3: #616770; --faint: #9aa0a8; --head: #17191c;
  --blue: #2161ac; --red: #e21c2c; --red2: #c41322;
  --sel: rgba(23,25,28,.1); --hover: #efefec; --chip: #f5f5f3;
  --ok: #12975d; --wait: #2a76c9; --warn: #b47d00; --bad: #d33a48; --amber: #c98c00;
  /* a state's chip (.pill): the fill is the state's colour at one low strength, the words its ink, AA on that fill */
  --chip-mix: 9%;
  --ok-bg: color-mix(in srgb, var(--ok) var(--chip-mix), transparent); --wait-bg: color-mix(in srgb, var(--wait) var(--chip-mix), transparent);
  --warn-bg: color-mix(in srgb, var(--warn) var(--chip-mix), transparent); --bad-bg: color-mix(in srgb, var(--bad) var(--chip-mix), transparent);
  --ok-ink: #096b3f; --wait-ink: #1d5fa6; --warn-ink: #875c00; --bad-ink: #b52434;
  --note-bg: rgba(180,125,0,.07); --note-line: rgba(180,125,0,.3); --info-bg: rgba(42,118,201,.06); --info-line: rgba(42,118,201,.28);
  --term: #15181c; --shadow: 0 20px 60px rgba(0,0,0,.15); --lift: 0 1px 2px rgba(0,0,0,.08);
  --card: 0 1px 2px rgba(23,25,28,.06), 0 8px 24px rgba(23,25,28,.05);  /* a card's soft lift; a hairline on dark */
  /* the rail: charcoal in both themes, the open section a light tile. A light rail is this one line:
     --rail: var(--side); --rail-ink: var(--text3); --rail-on: var(--raise); --rail-on-ink: var(--head); */
  --rail: #17191c; --rail-ink: #a3a9b1; --rail-on: #ffffff; --rail-on-ink: #17191c;
  --ill-ink: #17191c; --ill-spark: var(--red);  /* the illustrations' charcoal and their click sparks (index.html, ill-*) */
  --mark: .09; --mark-filter: none;
  /* the page is laid paper (the frame's background, under .main): a fine grain drawn by an SVG filter, then the faint
     laid lines of hand-made paper every 5 px and its chain lines every 132 px; the mark stands centred behind the work */
  --paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .2 0 0 0 0 .2 0 0 0 .3 -.114'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --laid: repeating-linear-gradient(0deg, rgba(23,25,28,.013) 0 1px, transparent 1px 5px), repeating-linear-gradient(90deg, rgba(23,25,28,.021) 0 1px, transparent 1px 132px);
  /* the rail's grain: the same paper in white, as the charcoal is dark in both themes */
  --rail-paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .18 -.066'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: var(--sans);
  --title: "Poppins", var(--sans);  /* a page's title, a tile's figure, a card's head */
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  /* how things move (motion.css): the one curve everything arrives on, and a time by how far a change travels:
     a press under the pointer, a colour or a small state, something that crosses the page */
  --ease: cubic-bezier(.16, 1, .3, 1); --t-press: 90ms; --t-fast: 150ms; --t-move: 240ms;
  /* The scale every page draws from (Docs/Systems/ControlPanel/NewPage.md, The foundation). Type: a caption, small
     words, the body, a lead line, a card's head, a page's title, a tile's figure. Space in steps of 4 px. Radii: a
     tag, a control, a card, a pill. One density: every control is --ctl-h tall (--ctl-h-sm the small size), every
     table row --row-h. */
  --fs-caption: 12px; --fs-small: 13px; --fs-body: 14px; --fs-lead: 15px; --fs-card: 15px; --fs-title: 32px; --fs-figure: 30px;
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px; --sp-8: 32px;
  --r-sm: 6px; --r-ctl: 8px; --r-card: 14px; --r-pill: 999px;
  --ctl-h: 34px; --ctl-h-sm: 28px; --row-h: 44px; --row-pad: 8px;
  /* a control's focus: a 2 px blue edge (3:1 or more on every surface) inside a soft halo; an invalid field's in red */
  --ring: 0 0 0 1px var(--blue), 0 0 0 4px color-mix(in srgb, var(--blue) 22%, transparent);
  --ring-bad: 0 0 0 1px var(--bad), 0 0 0 4px var(--bad-bg);
  /* a dropdown's chevron and a checkbox's tick, drawn per theme (the CSP allows data: images) */
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23636a73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6l6 -6'/%3E%3C/svg%3E");
  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5l9 -10'/%3E%3C/svg%3E");
  color-scheme: light;
}
/* Light's other surfaces, a choice of Preferences (pages.js, SETTINGS palette); dark keeps its own */
:root[data-palette="cream"]:not([data-theme="dark"]) {
  --bg: #f1e8d6; --side: #e6dac3; --panel: #f7f0e2; --raise: #fbf6ec; --line: #e0d3ba; --line2: #cdbd9f;
  --hover: #ebe0cb; --chip: #f4ecdc;
  /* the words, darker on these grounds so each holds 4.5:1 on the sidebar and a hover */
  --text3: #5a6069; --blue: #2060aa; --ok-ink: #08673c; --warn-ink: #815800;
}
:root[data-palette="slate"]:not([data-theme="dark"]) {
  --bg: #dbe2ea; --side: #cbd4df; --panel: #e6ebf1; --raise: #eff3f7; --line: #c9d2dd; --line2: #b2bdcb;
  --hover: #d3dbe4; --chip: #e3e9ef; --text3: #555b65;
  --blue: #1f5ba1; --ok-ink: #08643b; --wait-ink: #1c5ca0; --warn-ink: #7a5300; --bad-ink: #ae2332;
}
:root[data-palette="sage"]:not([data-theme="dark"]) {
  --bg: #e2e8de; --side: #d3dccd; --panel: #ebf0e8; --raise: #f3f6f1; --line: #cfd8c9; --line2: #b8c4b0;
  --hover: #dbe2d6; --chip: #e8ede5;
  --text3: #595f67; --blue: #205fa7; --ok-ink: #08673c; --warn-ink: #7f5600;
}
/* Dark: set by theme.js before the first paint (the browser's kept choice, else the system's) */
:root[data-theme="dark"] {
  --bg: #101215; --side: #0b0d0f; --panel: #14171b; --raise: #191d22; --line: #262c33; --line2: #323943;
  --text: #e9ebee; --text2: #b9bec5; --text3: #9097a1; --faint: #5e6570; --head: #f3f4f6;
  --blue: #5aa9f0; --red: #e21c2c; --red2: #c41322;  /* --red2 is the red's hover under white words: darker in both themes */
  --sel: rgba(255,255,255,.08); --hover: #21262c; --chip: #1f242a;
  --ok: #3ecf8e; --wait: #5aa9f0; --warn: #f2c14e; --bad: #f0616d; --amber: #f2c14e;
  --ok-ink: var(--ok); --wait-ink: var(--wait); --warn-ink: var(--warn); --bad-ink: #f37c86;  /* a shade over --bad: 4.5:1 on a selected row and on a stronger fill */
  --note-bg: rgba(242,193,78,.07); --note-line: rgba(242,193,78,.28); --info-bg: rgba(90,169,240,.07); --info-line: rgba(90,169,240,.28);
  --term: #0b0d0f; --shadow: 0 20px 60px rgba(0,0,0,.5); --lift: 0 1px 2px rgba(0,0,0,.5);
  --card: 0 0 0 1px var(--line);
  --ill-ink: #2e343c; --ill-spark: #c9ced6;
  --mark: .08; --mark-filter: url(#mark-tone);  /* index.html: white, the cursor brightest */
  --paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .18 -.066'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --laid: repeating-linear-gradient(0deg, rgba(255,255,255,.011) 0 1px, transparent 1px 5px), repeating-linear-gradient(90deg, rgba(255,255,255,.017) 0 1px, transparent 1px 132px);
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d949e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6l6 -6'/%3E%3C/svg%3E");
  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23101215' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5l9 -10'/%3E%3C/svg%3E");
  color-scheme: dark;
}
* { box-sizing: border-box; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
html, body { margin: 0; height: 100%; }
html:has(.app:not([hidden])) { overflow: hidden; }  /* the frame fills the window and each part scrolls in itself: the window never shows a scrollbar */
body { font: 14px/1.5 var(--sans); color: var(--text); background: var(--bg); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
::selection { background: color-mix(in srgb, var(--blue) 30%, transparent); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
:where(:not(input, select, textarea)):focus-visible { border-radius: 6px; }  /* a field keeps its own corners */
a { color: var(--blue); text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled, button[aria-busy="true"] { cursor: default; opacity: .55; }  /* busy with its write: still in the Tab order, so the keyboard stays on it */
input, textarea { font: inherit; color: inherit; caret-color: var(--blue); }
[hidden] { display: none !important; }
svg.i { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
h1, h2 { font-family: var(--display); }
.mono, code, pre, kbd { font-family: var(--mono); }
.muted { color: var(--text3); }
.grow { flex: 1; }
/* The logo's ground, Preferences' "Logo" (pages.js, SETTINGS): white by default, none under data-logo="bare".
   On dark the mark's navy would sink into the page: the small logo sits on a light disc, as the favicon does */
:root[data-theme="dark"]:not([data-logo="bare"]) img[src*="mark.svg"] { background: #f4f7fd; border-radius: 50%; padding: 2px; }
/* the rail's logo and the sign-in card's stand in full colour on a light tile, in both themes */
:root[data-theme]:not([data-logo="bare"]) :is(.logo, .login-card) img { background: #fff; border-radius: 12px; padding: 5px; }
:root:not([data-logo="bare"]) .login-card img { box-shadow: var(--card); }

/* The controls (Docs/Systems/ControlPanel/NewPage.md, The foundation): one vocabulary for every page. A page puts the
   class on its control, and its sheet declares none of these. Each control is --ctl-h tall and --r-ctl round, and
   its focus is --ring. What each eases, and its press, is motion.css's. */
/* Buttons: .primary the page's one main action (red), .btn a secondary one, .btn.ghost a quiet one, .btn.danger one
   that removes, .btn.sq a square icon button (its aria-label names it); .sm on any of them is the small size */
.primary { height: var(--ctl-h); padding: 0 14px; border-radius: var(--r-ctl); background: var(--red); color: #fff; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 7px; text-decoration: none; }
.primary:hover:not(:disabled) { background: var(--red2); }
.btn { height: var(--ctl-h); padding: 0 12px; border-radius: var(--r-ctl); border: 1px solid var(--line2); background: var(--raise); color: var(--text); font-weight: 600; font-size: var(--fs-small); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; text-decoration: none; }
.btn:hover:not(:disabled) { border-color: var(--text3); }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; } .btn.primary:hover:not(:disabled) { background: var(--red2); border-color: var(--red2); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--text2); font-weight: 500; }
.btn.ghost:hover:not(:disabled) { background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--text); border-color: transparent; }  /* an ink tint: --hover sinks into the paper a page's head stands on */
.btn.danger { color: var(--bad-ink); } .btn.danger:hover:not(:disabled) { border-color: var(--bad); background: var(--bad-bg); }
.btn.sq { width: var(--ctl-h); padding: 0; justify-content: center; flex: none; }
:is(.btn, .primary).sm { height: var(--ctl-h-sm); padding: 0 10px; gap: 5px; font-size: var(--fs-small); } .btn.sq.sm { width: var(--ctl-h-sm); padding: 0; }
:is(.btn, .primary).sm svg.i { width: 14px; height: 14px; }
/* Fields: .input on an <input>, a <select> (its own chevron) or a <textarea>; a date or a time is an <input
   class="input" type="date|time">. .find wraps a search field with its icon. */
.input { height: var(--ctl-h); width: 100%; min-width: 0; padding: 0 11px; border: 1px solid var(--line2); border-radius: var(--r-ctl); background-color: var(--raise); color: var(--text); font: var(--fs-body) var(--sans); caret-color: var(--blue); }
.input::placeholder { color: var(--text3); }
.input:hover:not(:disabled, :focus-visible) { border-color: var(--text3); }
.input:focus-visible { outline: 0; border-color: var(--blue); box-shadow: var(--ring); }
.input:disabled { background-color: var(--chip); color: var(--text3); cursor: not-allowed; }
.input[aria-invalid="true"], .field.err .input, :is(.input[aria-invalid="true"], .field.err .input):hover { border-color: var(--bad); }  /* the pointer never greys a wrong field's red edge */
:is(.input[aria-invalid="true"], .field.err .input):focus-visible { box-shadow: var(--ring-bad); }
select.input { appearance: none; padding-right: 34px; background-image: var(--chev); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; cursor: pointer; text-overflow: ellipsis; }
select.input option { background: var(--raise); color: var(--text); }
textarea.input { height: auto; min-height: 76px; padding: 8px 11px; line-height: 1.5; resize: vertical; }
input.input::-webkit-calendar-picker-indicator { opacity: .6; cursor: pointer; }
.find { position: relative; display: block; min-width: 0; }
.find > svg.i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text3); pointer-events: none; }
.find > .input { padding-left: 33px; }
/* A field: its label, the control, a help line or, when it is wrong, an error line (the control takes
   aria-invalid="true" and aria-describedby the error's id). .req marks a required field; the control holds required. */
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field-l { font-size: var(--fs-small); font-weight: 600; color: var(--text2); }
.field-l .req { margin-left: 2px; color: var(--bad-ink); text-decoration: none; }
.field-h { font-size: var(--fs-caption); color: var(--text3); }
.field-e { display: flex; align-items: center; gap: 5px; font-size: var(--fs-caption); font-weight: 500; color: var(--bad-ink); }
.field-e svg.i { width: 13px; height: 13px; }
/* Choices: input.cb a checkbox, input.rb a radio, each in a .check label with its words; .sw a switch, a <button
   role="switch" aria-checked>, its knob on ::before (the touch rule keeps ::after); .chip a filter that a press turns
   charcoal (aria-pressed), its count in <b>; .seg (below, the top bar's) a choice of a few views */
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
:is(input.cb, input.rb) { appearance: none; width: 18px; height: 18px; margin: 0; flex: none; border: 1.5px solid var(--text3); background-color: var(--raise); cursor: pointer; }
input.cb { border-radius: 5px; } input.rb { border-radius: 50%; }
:is(input.cb, input.rb):hover:not(:disabled) { border-color: var(--text2); }
input.cb:checked { background: var(--head) var(--tick) center / 14px no-repeat; border-color: var(--head); }
input.rb:checked { border-color: var(--head); background: radial-gradient(var(--head) 0 4px, var(--raise) 4.5px); }
:is(input.cb, input.rb):focus-visible { outline: 0; box-shadow: var(--ring); }
:is(input.cb, input.rb):disabled { opacity: .5; cursor: not-allowed; }
.check:has(:disabled) { color: var(--text3); cursor: not-allowed; }
.sw { position: relative; width: 36px; height: 20px; border-radius: var(--r-pill); background: var(--text3); flex: none; }
.sw::before { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: var(--lift); }
.sw[aria-checked="true"] { background: var(--head); } .sw[aria-checked="true"]::before { translate: 16px 0; background: var(--bg); }
.sw:focus-visible { outline: 0; box-shadow: var(--ring); }
:root:not([data-theme="dark"]) .sw[aria-checked="false"]:hover:not(:disabled) { background: var(--text2); }  /* light alone: on dark a lighter track would lose its white knob */
.chip { height: var(--ctl-h); padding: 0 12px; border: 1px solid var(--line2); border-radius: var(--r-ctl); background: var(--raise); color: var(--text2); font-size: var(--fs-small); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.chip:hover:not(:disabled, [aria-pressed="true"], [aria-expanded="true"]) { border-color: var(--text3); color: var(--text); }
.chip[aria-pressed="true"], .chip[aria-expanded="true"] { background: var(--head); border-color: var(--head); color: var(--bg); }
.chip svg.i { width: 15px; height: 15px; flex: none; }
/* a control inside a strip (a segment, a tab) takes its focus ring inside its own box, so its strip never cuts it */
.seg > button:focus-visible { outline-offset: -2px; }
.chip b { font: 600 var(--fs-caption) var(--mono); opacity: .8; }
/* Tabs: a .tabs role="tablist" of <button role="tab" aria-selected>; the open one is ink over a 2 px charcoal edge */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs > [role="tab"] { height: var(--ctl-h); padding: 0 12px; margin-bottom: -1px; border-bottom: 2px solid transparent; display: inline-flex; align-items: center; gap: 6px; color: var(--text3); font-size: var(--fs-body); font-weight: 500; white-space: nowrap; }
.tabs > [role="tab"]:hover { color: var(--text); }
.tabs > [role="tab"][aria-selected="true"] { color: var(--head); font-weight: 600; border-bottom-color: var(--head); }
.tabs > [role="tab"]:focus-visible { outline-offset: -2px; }
/* The base look: a bare text <input>, <select> or <textarea> in the work, with no class of the set above, takes the
   field's border, ground, words, corners and focus edge, at zero specificity, so any page rule wins. It sets no size,
   padding or display, styles no <button>, and leaves checkbox, radio, range, file, color and hidden inputs alone. A
   select takes its own chevron only as select.input, which sets the room the chevron needs. */
:where(.main) :where(input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"], [type="color"], [type="hidden"], [type="submit"], [type="button"], [type="reset"], [type="image"]), select, textarea) { border: 1px solid var(--line2); border-radius: var(--r-ctl); background-color: var(--raise); color: var(--text); }
:where(.main) :where(input, textarea)::placeholder { color: var(--text3); }
:where(.main) :where(input, select, textarea):focus-visible { border-color: var(--blue); }
.icon { width: 28px; height: 28px; border-radius: 7px; display: inline-grid; place-items: center; color: var(--text3); flex: none; }
.icon:hover:where(:not(:disabled)) { background: var(--hover); color: var(--text); }
/* a named tool on a bar: its icon and its name, quiet until the pointer or its open state (a session's Details in the
   top bar; a website's History, Draft link and Live site on its page's bar) */
.tool { height: 28px; padding: 0 9px 0 7px; border-radius: 7px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--text2); white-space: nowrap; flex: none; }
.tool:hover:where(:not(:disabled)) { background: var(--hover); color: var(--text); }
.tool[aria-pressed="true"] { background: var(--sel); color: var(--head); }

/* Status: colour, a dot and words, never colour alone. A pill or a tag is never wider than the box it stands in:
   text longer than that is cut at its edge, with an ellipsis where the words sit in an element of their own. */
.pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--sans); letter-spacing: normal; font-size: var(--fs-caption); font-weight: 600; border-radius: var(--r-pill); padding: 0 10px; line-height: 22px; white-space: nowrap; max-width: 100%; min-width: 0; overflow: clip; }  /* clip, never hidden: hidden moves the baseline of a pill that stands in a line of text */
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.pill > :is(i, b, span) { min-width: 0; overflow: clip; text-overflow: ellipsis; }
.tr > .pill { min-width: auto; }  /* a status in a row's own column is never cut */
.pill.ok { color: var(--ok-ink); background: var(--ok-bg); } .pill.wait { color: var(--wait-ink); background: var(--wait-bg); }
.pill.warn { color: var(--warn-ink); background: var(--warn-bg); } .pill.bad { color: var(--bad-ink); background: var(--bad-bg); }
.pill.off { color: var(--text3); background: var(--chip); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }
.dot.wait { background: var(--wait); } .dot.warn { background: var(--amber); } .dot.bad { background: var(--bad); } .dot.off { background: var(--line2); }
.lost { position: fixed; top: 52px; left: 50%; transform: translateX(-50%); z-index: 40; max-width: calc(100vw - 24px); background: var(--warn-bg); color: var(--warn-ink); border: 1px solid var(--note-line); border-radius: 12px; padding: 8px 14px; font-size: var(--fs-small); font-weight: 600; box-shadow: var(--shadow); }

/* Sign-in */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(420px, 1fr); background: var(--bg); }
/* the art's side: G1's picture covers the hero illustration once static/art/signin.webp is there */
.login-art { position: relative; display: grid; place-items: center; overflow: hidden; background: var(--rail); --ill-ink: #2e343c; --ill-spark: #c9ced6; }
.login-art::after { content: ""; position: absolute; inset: 0; background: url(/static/art/signin.webp?v=95018459ef65) center 65% / cover no-repeat; }  /* 65% down keeps the window's title bar and the lit floor on a laptop and at 1440x900 */
.login-art .ill { display: block; width: min(440px, 72%); height: auto; aspect-ratio: 240 / 150; }
.login-card { align-self: center; justify-self: center; width: min(380px, calc(100% - 48px)); margin: 24px 0; display: grid; gap: 14px; background: var(--raise); border-radius: 18px; padding: 32px 28px 28px; box-shadow: var(--card); text-align: center; }
.login-card img { width: 60px; height: 60px; justify-self: center; }
.login-card h1 { margin: 4px 0 0; font: 800 28px/1.1 var(--title); color: var(--head); letter-spacing: -.03em; }
@media (max-width: 760px) {
  .login { grid-template: 140px auto / minmax(0, 1fr); }
  .login-art .ill { width: 150px; margin-top: -20px; }
  .login-art::after { content: none; }  /* the slim band holds the illustration whole: a crop of the art showed only fragments */
  .login-card { position: relative; align-self: start; margin: -28px 0 24px; }
}
.login-card > p { margin: -8px 0 6px; color: var(--text2); }
.login-card > .login-note { margin: 0; padding: 10px 12px; border: 1px solid var(--note-line); border-radius: 10px; background: var(--note-bg); color: var(--text); font-size: 13px; line-height: 1.45; }
.login-card .google { height: 44px; border: 1px solid var(--line2); border-radius: var(--r-pill); background: var(--raise); color: var(--text); font-size: var(--fs-lead); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.login-card .google:hover { background: var(--hover); }
.login-card .google:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.login-card > .login-foot { margin: 0; color: var(--text3); font-size: var(--fs-caption); text-align: center; }

/* static/app_frame.css */
/* The frame of ClutchClicks Admin (Docs/Systems/ControlPanel.md, rule 6): the rail, the sidebar and the work, then
   the Agents page's sessions and their conversation, and Automations' and Server's folding lists. app.css's,
   linked right after it. */

/* The frame: the rail of sections, the sidebar of the open section's pages, the work. A top bar stands over the work
   only in a view that needs one (.topbar: a session, a website, the Browser) and on a phone. */
.app { display: grid; height: 100vh; height: 100dvh; --rail-w: 68px; --side-w: 240px; --nav: var(--side-w); grid-template: auto minmax(0, 1fr) / var(--rail-w) var(--nav) minmax(0, 1fr); background: var(--bg); }
.top { grid-area: 1 / 3; display: none; align-items: center; gap: 4px; height: 48px; padding: 0 10px; border-bottom: 1px solid var(--line); min-width: 0; }
.app.topbar .top { display: flex; }
.top .back, .top .back span, .top [data-drawer="insp"] { display: none; }  /* Details: in a session's chat on a computer (below, and browser.css) */
.slot h1 .crumb { color: var(--text3); font-weight: 500; margin-right: 2px; text-decoration: none; }  /* the tree a branch's page belongs to */
.slot h1 a.crumb:hover { color: var(--text); }  /* in a website it is a link back to the list (websites.js) */
.slot h1 .crumb svg.i { width: 12px; height: 12px; margin: 0 3px 0 5px; vertical-align: -1px; }
.slot { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding-right: 6px; }
.slot h1 { font: 600 14px var(--sans); margin: 0; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg { display: inline-flex; background: var(--chip); border: 1px solid var(--line); border-radius: 8px; padding: 2px; flex: none; }
.seg button { height: 24px; padding: 0 10px; border-radius: 6px; color: var(--text2); font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; }
.seg button[aria-pressed="true"] { background: var(--raise); color: var(--head); font-weight: 600; box-shadow: var(--lift); }
/* a view switch of icons alone (a list or a board): each button square, named by its aria-label and its title */
.seg.seg-icons > button { width: 30px; padding: 0; justify-content: center; } .seg.seg-icons svg.i { width: 15px; height: 15px; }
/* The rail: the logo, then each section's icon and name; Admin, the team's tools, at its foot */
.rail { grid-area: 1 / 1 / 3 / 2; background: var(--rail-paper), var(--rail); display: flex; flex-direction: column; align-items: center; padding: 14px 0; gap: 6px; overflow: auto; }
.logo { width: 40px; height: 40px; flex: none; margin-bottom: 12px; }
.logo img { display: block; width: 100%; height: 100%; }
.rail :focus-visible { outline-color: var(--rail-on); }  /* the ring reads on charcoal */
.rail a { width: 56px; padding: 8px 0 6px; border-radius: 10px; display: grid; justify-items: center; gap: 3px; font-size: var(--fs-caption); font-weight: 600; color: var(--rail-ink); text-decoration: none; position: relative; flex: none; text-align: center; line-height: 1.2; }  /* a two-word name stands on two centred lines */
.rail a:hover { background: color-mix(in srgb, var(--rail-ink) 16%, transparent); }
.rail a[aria-current] { background: var(--rail-on); color: var(--rail-on-ink); }  /* charcoal words on the light tile, in both themes */
.rail a svg.i { width: 19px; height: 19px; }
.rail a.foot { margin-top: auto; } .rail a.foot:not([hidden]) ~ a.foot { margin-top: 0; }  /* Updates, Admin, Settings: the first one shown holds the space above */
.n { min-width: 16px; height: 16px; padding: 0 5px; border-radius: 8px; background: var(--red); color: #fff; font: 700 11px/16px var(--mono); text-align: center; }
.n:empty { display: none; } .n.warn { background: var(--amber); color: #17191c; } .n.bad { background: var(--bad); }
.rail .n { position: absolute; top: 3px; left: calc(50% + 4px); box-shadow: 0 0 0 2px var(--rail); }  /* on the icon's corner, ringed off its stroke */
/* The sidebar: the open section's name, a search, its pages by group with the open one's rows under it, and who is
   signed in at its foot */
.side { grid-area: 1 / 2 / 3 / 3; background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 50px; padding: 12px 10px 4px 16px; flex: none; }  /* the section's name */
.side-head h2 { flex: 1; min-width: 0; margin: 0; font-size: 15px; font-weight: 700; color: var(--head); }
.side-x { order: 2; }  /* the sidebar's close button, at the head's right end */
.search { margin: 0 12px 10px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 0 10px; height: 36px; color: var(--text3); background: var(--raise); flex: none; }
.search:focus-within { border-color: var(--blue); }
.search input { border: 0; outline: 0; background: transparent; font-size: 14px; color: var(--text); flex: 1; min-width: 0; }
.search input::placeholder { color: var(--text3); }
/* The keys that open the search (frame.js): shown beside a mouse, while the field is empty. The sidebar's field is
   drawn tighter, its label a size under what is typed, so "Search <section>" reads whole beside the keys */
.search .kbd { font: 11px var(--mono); color: var(--text3); border: 1px solid var(--line); border-radius: 5px; padding: 0 4px; flex: none; white-space: nowrap; }
.side .search { margin-inline: 10px; gap: 6px; padding: 0 9px; } .side .search input::placeholder { font-size: 13px; }
.search input:not(:placeholder-shown) + .kbd { display: none; }
@media (pointer: coarse) { .search .kbd { display: none; } }
.nav { flex: 1; min-height: 0; overflow: auto; padding: 4px 10px 12px; scroll-padding-block: 28px; }
/* where more pages stand past an edge, the list fades there, so a row cut by the search or the foot says the list
   scrolls (frame.js, navEdges); the padding keeps a row the keyboard reaches clear of the fade */
.nav[data-more] { mask-image: linear-gradient(#000 calc(100% - 28px), transparent); }
.nav[data-up] { mask-image: linear-gradient(transparent, #000 20px); }
.nav[data-up][data-more] { mask-image: linear-gradient(transparent, #000 20px, #000 calc(100% - 28px), transparent); }
.nav-label { font-size: var(--fs-caption); font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text3); padding: 14px 8px 6px; }
/* a group's heading is its fold (frame.js, navFold): the arrow at its end points down while its pages show */
button.nav-label { display: flex; align-items: center; gap: 6px; width: 100%; margin-top: 4px; padding: 7px 8px; border-radius: 7px; text-align: left; }
button.nav-label:hover { color: var(--text); background: var(--raise); }
button.nav-label > svg.i { width: 12px; height: 12px; margin-left: auto; transition: transform var(--t-fast) var(--ease); }
button.nav-label[aria-expanded="true"] > svg.i { transform: rotate(90deg); }
/* a touch screen: each row, heading and fold of the sidebar takes a finger on 40 px */
@media (pointer: coarse) { .branch, button.nav-label { min-height: 40px; } }
.nav[data-none]::after { content: attr(data-none); display: block; padding: 8px 10px; color: var(--text3); font-size: var(--fs-small); overflow-wrap: anywhere; }
/* while the sidebar is closed on a computer, » at the work's top-left opens it (index.html) */
.side-open { display: none; grid-area: 2 / 3; align-self: start; justify-self: start; position: relative; z-index: 7; margin: 10px; border: 1px solid var(--line); background: var(--raise); box-shadow: var(--lift); }
.side-open svg.i { transform: scaleX(-1); }
.app.topbar .side-open { grid-row: 1; margin: 8px 10px; }
.skip { position: fixed; left: 10px; top: 10px; z-index: 60; padding: 8px 14px; border-radius: var(--r-pill); background: var(--raise); color: var(--head); font-weight: 600; box-shadow: var(--shadow); translate: 0 -200%; }
.skip:focus-visible { translate: 0; }
.branch { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--text3); text-decoration: none; font-weight: 500; }
.branch b { flex: 1; min-width: 0; font-weight: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.branch:hover { background: var(--raise); color: var(--text); }
.branch[aria-current] { background: var(--sel); color: var(--head); box-shadow: inset 2px 0 0 var(--head); }
.branch[aria-current] svg.i { color: var(--head); }
.branch[data-child] { padding-left: calc(10px + var(--sp-6)); }  /* a child page (frame.js, parent): one step in, under its parent's row */
/* a parent row's fold (frame.js, navParent): the chevron stands over the row's right end, before it in the markup, and
   turns as a group heading's does; the row keeps room for it after its badge */
.branch-fold { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin: 0 6px -24px auto; top: 5px; border-radius: 6px; color: var(--text3); }
.branch-fold:hover { color: var(--text); background: var(--sel); }
.branch-fold + .branch { padding-right: 36px; }
.branch-fold > svg.i { width: 12px; height: 12px; transition: transform var(--t-fast) var(--ease); }
.branch-fold[aria-expanded="true"] > svg.i { transform: rotate(90deg); }
.branch-fold[hidden] + .branch { padding-right: 10px; }
@media (pointer: coarse) { .branch-fold { width: 40px; height: 40px; top: 0; margin-bottom: -40px; } .branch-fold + .branch { padding-right: 46px; } }  /* after the fold's own rules, which it must win over */
.me { flex: none; width: 100%; border-top: 1px solid var(--line); padding: 12px 14px; display: flex; align-items: center; gap: 10px; color: var(--text); text-align: left; min-width: 0; }
.me:hover, .me[aria-expanded="true"] { background: var(--raise); }
.me > span:not(.av) { flex: 1; min-width: 0; } .me > svg.i { width: 16px; height: 16px; color: var(--text3); }
.me:focus-visible { outline-offset: -2px; }
/* the person's menu (frame.js, meMenu): it opens upward from the sidebar's foot */
.me-wrap { position: relative; flex: none; }
.me-pop { position: absolute; left: 10px; right: 10px; bottom: calc(100% + 4px); z-index: 5; background: var(--raise); border: 1px solid var(--line2); border-radius: 10px; box-shadow: var(--shadow); padding: 4px; }
.me-pop a { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 7px; font-size: 13px; color: var(--text); text-decoration: none; }
.me-pop a:hover { background: var(--hover); } .me-pop a > svg.i { width: 15px; height: 15px; color: var(--text2); }
@media (pointer: coarse) { .me-pop :is(a, button) { min-height: 40px; } }
/* The avatar, every page's: a person's initials on their colour, the background set inline or by the page.
   `.av` is the 26px disc and `.av.lg` the 52px rounded square of a person's card. A page adds `av` beside its own
   class and its sheet keeps only what differs (size, font, background); a page sheet loads later and wins a tie. */
.av { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; color: #fff; font-size: 10.5px; font-weight: 800; }
.av.lg { width: 52px; height: 52px; border-radius: 14px; font-size: 18px; }
/* a person's photo (core.js, face): it fills the disc, cropped to its centre, over the initials' colour while it loads */
.av.has-face { overflow: hidden; }
.av img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
/* A client's picture (core.js, clientFace): a rounded square, never a person's disc. Its logo sits whole on a white
   tile with a hairline edge, in both themes, so a dark mark and a wide wordmark both read; else its initials. */
.av.cl { border-radius: 28%; }
.av.cl.has-logo { position: relative; background: #fff; box-shadow: inset 0 0 0 1px rgb(20 22 26 / .14); overflow: hidden; }
.av.cl.has-logo img { position: absolute; left: 9%; top: 9%; width: 82%; height: 82%; object-fit: contain; border-radius: 0; }  /* a margin of the tile's own size: a padding % would follow the row's width */
/* paste and drop (drop.js): while a file is dragged, every zone that takes it shows a dashed edge, and the one under
   the pointer a solid one on the selection's tint */
.drop-ready { outline: 1px dashed var(--faint); outline-offset: -1px; }
.drop-over { outline: 2px solid var(--blue); outline-offset: -2px; background-image: linear-gradient(var(--sel), var(--sel)); }
/* drag to reorder (order.js): the item on its way dims in its place, one line marks where it lands, and another list
   that takes it is outlined as a drop target */
.order-drag { opacity: .45; }
#order-line { position: fixed; z-index: 80; height: 2px; border-radius: 2px; background: var(--blue); pointer-events: none; }
.order-over { outline: 2px solid var(--blue); outline-offset: -2px; }
/* the drawer head's Change logo and Remove (core.js, logoControls), under the client's picture */
.logo-acts { display: flex; justify-content: center; gap: 2px; margin-top: 4px; }
.logo-acts button { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; color: var(--text3); transition: background var(--t-fast), color var(--t-fast); }
.logo-acts button:hover { background: var(--hover); color: var(--text); } .logo-acts button:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.logo-acts svg.i { width: 14px; height: 14px; }
.me .av { width: 30px; height: 30px; background: var(--head); color: var(--bg); font-size: 11px; }
.me b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .me small { display: block; color: var(--text3); font-size: 12px; }
/* the open page's rows, under its name */
.side .list { margin: 2px 0 8px 17px; padding: 2px 0 2px 6px; border-left: 1px solid var(--line); }
.label { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 12px 10px 6px; font-size: var(--fs-caption); font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text3); }
.label::before { content: ""; width: 6px; height: 6px; flex: none; background: currentColor; border-radius: 50%; }  /* its state's dot, as its rows' */
.label span { color: var(--text3); font-weight: 500; letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; }
/* A list's group heading is the sidebar's group heading (rule 6): its name in small capitals, its count, and as a
   fold (a button) the arrow at its end, right while folded and down while its rows show */
button.label { border-radius: var(--r-ctl); }
button.label:hover { background: var(--hover); }
button.label > svg.i { width: 12px; height: 12px; flex: none; margin-left: auto; color: var(--text3); transition: transform var(--t-fast) var(--ease); }
button.label[aria-expanded="true"] > svg.i { transform: rotate(90deg); }
.label.ok { color: var(--ok-ink); } .label.wait { color: var(--wait-ink); } .label.off { color: var(--text3); } .label.bad { color: var(--bad-ink); } .label.warn { color: var(--warn-ink); }  /* a group's heading in its state's colour, on every tab's list */
.item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1px 9px; align-items: center; padding: 8px 10px; border-radius: 10px; color: var(--text); text-decoration: none; }
.item:hover { background: var(--hover); } .item[aria-current] { background: var(--sel); }
.item b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item.past b { font-weight: 400; color: var(--text2); }
.item time { font-size: 12px; color: var(--text3); }
.item small { grid-column: 2 / -1; font-size: 12.5px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item small.warn { color: var(--warn-ink); font-weight: 600; }
/* Agents by project (sessionItems in frame.js): the "N sessions" line folds them all, and starts folded; a
   project's row folds its sessions, its "N archived" line its ended
   ones; a row's ⋯ takes the place of its time under the pointer (always shown on a touch screen) and opens its menu. */
.list > .proj:first-child { margin-top: 6px; }
.proj-head { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto auto auto; gap: 8px; align-items: center; width: 100%; padding: 8px 10px 8px 6px; border-radius: 10px; text-align: left; color: var(--text); }
.proj-head:hover { background: var(--hover); }
.proj-head > svg.i { width: 14px; height: 14px; color: var(--text3); transition: transform var(--t-fast); }
.proj-head[aria-expanded="true"] > svg.i { transform: rotate(90deg); }
.proj-head b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proj-head .n { font-size: 12px; color: var(--text3); background: var(--chip); border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; font-variant-numeric: tabular-nums; }
.proj-head time { font-size: 12px; color: var(--text3); min-width: 24px; text-align: right; }
.proj .inner { margin: 0 0 4px 13px; padding-left: 6px; border-left: 1px solid var(--line); }
.row { position: relative; }
.row .item { padding-right: 38px; }
.row .item time { margin-right: -28px; }
.row-more { position: absolute; right: 6px; top: 7px; width: 26px; height: 26px; border-radius: 7px; display: none; place-items: center; color: var(--text2); }
.row-more:hover { background: var(--line); color: var(--text); }
.row:hover .row-more, .row.menu .row-more, .row-more:focus-visible { display: grid; }
.row:hover .item time, .row.menu .item time { visibility: hidden; }
@media (hover: none) { .row-more { display: grid; } .row .item time { margin-right: 0; } }
.arch { display: flex; align-items: center; }
.sub { flex: 1; display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; font-size: 12.5px; color: var(--text3); text-align: left; }
.sub:hover { background: var(--hover); color: var(--text2); }
.sub svg.i { width: 12px; height: 12px; transition: transform var(--t-fast); } .sub[aria-expanded="true"] svg.i { transform: rotate(90deg); }
.sub-del { font-size: 12px; font-weight: 600; color: var(--bad-ink); padding: 3px 7px; border-radius: 6px; visibility: hidden; }
.arch:hover .sub-del, .sub-del:focus-visible { visibility: visible; } .sub-del:hover { background: var(--bad-bg); }
@media (hover: none) { .sub-del { visibility: visible; } }
.row .pop { position: absolute; right: 6px; top: 36px; z-index: 5; width: 216px; background: var(--raise); border: 1px solid var(--line2); border-radius: 10px; box-shadow: var(--shadow); padding: 4px; }
.pop button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 9px; border-radius: 7px; font-size: 13px; color: var(--text); text-align: left; }
.pop button:hover { background: var(--hover); }
.pop button > svg.i { width: 15px; height: 15px; color: var(--text2); }
.pop [data-moving] > svg.i:last-child { margin-left: auto; width: 12px; height: 12px; transition: transform var(--t-fast); } .pop [data-moving][aria-expanded="true"] > svg.i:last-child { transform: rotate(90deg); }
.pop .moves { max-height: 220px; overflow: auto; margin: 0 0 2px 16px; padding-left: 4px; border-left: 1px solid var(--line); }
.pop hr { border: 0; border-top: 1px solid var(--line); margin: 4px 2px; }
.pop .del, .pop .del > svg.i { color: var(--bad-ink); }
/* the work: no mark behind it */
.main { grid-area: 2 / 3; min-width: 0; min-height: 0; display: grid; background: var(--bg); position: relative; isolation: isolate; overflow: hidden; }
/* the paper (--paper, --laid) under the frame and the sidebar (the rail holds --rail-paper), and the mark centred behind every page but Agents,
   whose start page holds its own mark over the question */
body, .app, .main { background: var(--paper), var(--laid), var(--bg); }
.side { background: var(--paper), var(--panel); }
.main::after { content: ""; position: absolute; z-index: -1; pointer-events: none; left: 50%; top: 50%; translate: -50% -50%; width: min(62vh, 70%); aspect-ratio: 1; background: url(/static/mark.svg?v=a146839c70db) center / contain no-repeat; opacity: calc(var(--mark) * .7); filter: var(--mark-filter); }
.main:has(.home)::after { display: none; }
/* Preferences' plain background (pages.js, SETTINGS.paper): no paper, no mark */
:root[data-paper="plain"] :is(body, .app, .main) { background: var(--bg); }
:root[data-paper="plain"] .side { background: var(--panel); }
:root[data-paper="plain"] .main::after { display: none; }
/* a phone's open menu: the scrim (app_pages.css) is this same ::after, so it drops the mark's box, tone and fade and
   covers the whole work, with plain paper too; a tap on it closes the menu and reaches no page below (frame.js) */
@media (max-width: 760px) { .app:not(.left-closed) .main::after { display: block; width: auto; aspect-ratio: auto; translate: none; opacity: 1; filter: none; pointer-events: auto; } }

/* Starting a session: one box under the mark */
.home { overflow: auto; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; justify-items: center; padding: 40px 24px 64px; }  /* the column never outgrows the room, so the group stays on its centre */
.home .col { width: min(680px, 100%); display: grid; gap: 18px; }
.home h1 { margin: 0; font: 800 32px/1.15 var(--title); color: var(--head); letter-spacing: -.03em; text-align: center; text-wrap: balance; }
.home .lede { margin: -10px 0 6px; color: var(--text2); font-size: 15px; text-align: center; }
.box { border: 1px solid var(--line2); border-radius: 18px; background: var(--raise); box-shadow: var(--shadow); padding: 12px 12px 8px 16px; }
.box:focus-within { border-color: var(--blue); }
.box textarea { width: 100%; border: 0; outline: none; resize: none; font: 15px/1.5 var(--sans); min-height: 46px; max-height: 40vh; background: transparent; display: block; }
.box textarea::placeholder { color: var(--text3); }
.box .bar2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text3); }
.home .box { padding: 14px 12px 10px 18px; } .home .box textarea { font-size: 16px; min-height: 76px; } .home .primary { margin-left: auto; }
.starts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.starts button { border: 1px solid var(--line2); border-radius: 999px; padding: 6px 13px; font-size: 13px; color: var(--text2); background: var(--raise); }
.starts button:hover { background: var(--hover); color: var(--text); }
/* what runs now: one line under the box, its arrow down while folded; a click unfolds the sessions */
.now:not(:empty) { width: min(680px, 100%); margin-top: 32px; border-top: 1px solid var(--line); padding-top: 8px; display: grid; gap: 2px; align-content: start; }
.now h2 { font: inherit; margin: 0; }
.now h2 button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border-radius: 10px; font: 600 12px var(--sans); color: var(--text3); text-align: left; }
.now h2 button:hover { background: var(--hover); color: var(--text); }
.now h2 button > span { font-weight: 500; }
.now h2 small { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--warn-ink); }
.now h2 svg.i { margin-left: auto; width: 14px; height: 14px; transform: rotate(90deg); transition: transform var(--t-fast); } .now h2 small + svg.i { margin-left: 4px; }
.now h2 [aria-expanded="true"] svg.i { transform: rotate(-90deg); }
.now a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--text); text-decoration: none; min-width: 0; }
.now a:hover { background: var(--hover); }
.now a b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now a span:last-child { margin-left: auto; font-size: 12.5px; color: var(--text3); white-space: nowrap; }

/* One session */
.sessions { display: grid; grid-template-columns: minmax(0, 1fr) 300px; min-height: 0; }
/* one column held to the pane's width */
.pane { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); min-width: 0; min-height: 0; }
.callouts { display: grid; gap: 8px; padding: 0 28px; }
.callouts:not(:empty) { padding-top: 14px; }
.callout { max-width: var(--chat-width); width: 100%; margin: 0 auto; border: 1px solid var(--note-line); background: var(--note-bg); border-radius: 12px; padding: 12px 14px; display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; }
.callout > svg { color: var(--warn); }
.callout.info { border-color: var(--info-line); background: var(--info-bg); } .callout.info > svg { color: var(--wait); }
.callout p { margin: 0; } .callout p small { display: block; color: var(--text2); font-size: 13px; }
.callout ol { margin: 6px 0 0; padding-left: 18px; color: var(--text2); font-size: 13.5px; display: grid; gap: 4px; }
.callout .signin-open { margin: 6px 0 4px; }  /* Clutchy's sign-in: the link is a button, easy to tap on a phone */
.callout .ask { margin: 8px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--raise); border: 1px solid var(--line); font-family: var(--mono); font-size: 12.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 300px; overflow: auto; }
.callout .keys { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.callout .codeform { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.callout .codeform input { flex: 1 1 180px; height: 32px; border: 1px solid var(--line2); border-radius: 999px; padding: 0 12px; font-family: var(--mono); font-size: 13px; background: var(--raise); }
/* The conversation's text size and width are the admin's (Settings, kept per browser, applied by theme.js); every
   size inside the conversation is relative to --chat-text. */
:root { --chat-text: 15px; --chat-share: 54%; --chat-width: max(840px, var(--chat-share)); }  /* a share of the room, so it grows with the screen */
.chat { overflow: auto; padding: 28px 28px 30px; overscroll-behavior: contain; font-size: var(--chat-text); }
.chat .col { max-width: var(--chat-width); margin: 0 auto; display: grid; gap: 16px; }
.u { font-size: .933em; border: 1px solid var(--line2); background: var(--raise); border-radius: 8px; padding: 9px 14px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; box-shadow: var(--lift); }
.u .time { display: block; font-size: .82em; color: var(--text3); margin-top: 2px; white-space: normal; }
.u .time b { font-weight: 600; color: var(--text2); }  /* who sent it */
.u.queued { border-style: dashed; background: none; box-shadow: none; color: var(--text2); }  /* sent, not read by the agent yet */
.cmd { justify-self: start; font: .833em var(--mono); color: var(--head); background: var(--sel); border-radius: 6px; padding: 3px 10px; margin-left: 14px; }
.note { justify-self: center; font-size: .833em; color: var(--text3); max-width: 90%; text-align: center; white-space: pre-wrap; }
.a { font-size: 1em; line-height: 1.65; overflow-wrap: anywhere; padding: 0 14px; }
.a p { margin: 0 0 10px; } .a > :last-child { margin-bottom: 0; }
.a h4 { font: 600 1em/1.4 var(--sans); margin: 14px 0 6px; }
.a ul, .a ol { margin: 0 0 10px; padding-left: 22px; } .a li { margin: 2px 0; }
.a code { font-size: 12.5px; background: var(--chip); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
.a code { font-size: .833em; } .a pre code { font-size: 1em; }
.a pre { background: var(--chip); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; overflow: auto; font-size: .833em; line-height: 1.5; margin: 0 0 10px; }
.a pre code { background: none; border: 0; padding: 0; }
.tablewrap { overflow: auto; margin: 0 0 10px; border: 1px solid var(--line); border-radius: 10px; }
.a table { border-collapse: collapse; font-size: .9em; line-height: 1.45; min-width: 100%; }
.a th, .a td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.a th { font-weight: 600; background: var(--panel); } .a tr:last-child td { border-bottom: 0; }
/* A background command's end: a line of the agent's work, set like a folded run of tool calls, never a message.
   A click opens Claude Code's own words on it; the arrow at the line's end says so. */
.task { padding: 0 14px; font-size: .867em; line-height: 1.5; color: var(--text3); overflow-wrap: anywhere; }
.task > summary { list-style: none; cursor: pointer; display: flex; gap: 6px; border-radius: 6px; }
.task > summary::-webkit-details-marker { display: none; }
.task > summary:hover { color: var(--text); }
.task > summary > svg.i { color: var(--ok); margin-top: .2em; } .task b { font-weight: 500; color: var(--text2); }
.task.bad > summary > svg.i, .task.bad b { color: var(--bad-ink); }
.task span svg.i { width: 13px; height: 13px; margin-left: 5px; vertical-align: -2px; transition: transform var(--t-fast); }
.task[open] span svg.i { transform: rotate(90deg); }
.task p { margin: 4px 0 0 22px; color: var(--text2); }
/* A run of tool calls and the live line are the steps row and Clutchy's robot: bot.css. */
.pane { position: relative; }
.latest { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(100px + clamp(12px, 5.5vh, 64px)); z-index: 5; box-shadow: var(--shadow); } .latest svg.i { transform: rotate(180deg); }
.earlier { justify-self: center; }
.empty.hello { border: 0; display: grid; justify-items: center; gap: 4px; padding: 12vh 24px 0; max-width: 420px; margin: 0 auto; text-wrap: balance; }
.empty.hello b { font: 800 19px/1.3 var(--title); color: var(--head); letter-spacing: -.02em; }
/* The composer stands off the bottom edge, more on a tall screen, so the end of a long conversation is read above
   the screen's last lines. */
.composer { padding: 6px 28px clamp(12px, 5.5vh, 64px); }
.composer .box { max-width: var(--chat-width); margin: 0 auto; padding: 12px 10px 10px 16px; } .composer .box textarea { min-height: 26px; margin-bottom: 8px; font-size: var(--chat-text); }
.sets .tr { grid-template-columns: minmax(0, 1fr) auto; } .sets .seg button { height: 28px; padding: 0 13px; font-size: 13px; }
.sets .start-pick { width: 220px; height: 32px; }
@media (max-width: 760px) { .sets .tr { grid-template-columns: minmax(0, 1fr); gap: 10px; } .sets .tr > :last-child { justify-self: start; max-width: 100%; } }  /* a phone: the choice goes under its name, which keeps the row's width */
/* Automations' Settings (pages.js, tuneHtml): a folded line per automation, then one row per value, as API keys' rows */
.tune { container-type: inline-size; }
.tune .tr { grid-template-columns: minmax(0, 1fr) auto minmax(0, 250px) 64px; }
.tune .tr > span:first-child { display: grid; gap: 2px; } .tune small { font-size: 12.5px; color: var(--text3); }
.tune .field { display: flex; align-items: center; gap: 8px; justify-content: flex-end; min-width: 0; }
.tune input { width: 100%; min-width: 0; height: 34px; padding: 0 11px; border: 1px solid var(--line2); border-radius: 9px; background: var(--bg); font-size: 13px; }
.tune textarea { width: 100%; min-width: 0; padding: 7px 11px; border: 1px solid var(--line2); border-radius: 9px; background: var(--bg); font-size: 13px; line-height: 1.5; resize: vertical; }  /* a list of emails, one per line */
.tune input.num { width: 76px; flex: none; text-align: right; font-variant-numeric: tabular-nums; }
.tune :is(input, textarea):focus-visible { outline: 2px solid var(--blue); outline-offset: 0; border-color: transparent; }
.tune .unit { color: var(--text3); font-size: 13px; flex: none; }
.tune .where a { color: var(--blue); font-weight: 500; display: inline-flex; align-items: center; gap: 3px; } .tune .where a svg { width: 13px; height: 13px; }
.tune .where.warn { color: var(--warn-ink); font-weight: 500; }
.tune .hold { visibility: hidden; }
.tune .grp { grid-template-columns: minmax(0, 1fr) auto auto; width: 100%; background: var(--chip); padding: 10px 16px; text-align: left; color: inherit; }
.tune .grp b { font: 600 13.5px var(--display); color: var(--head); }
.tune .grp > svg { width: 15px; height: 15px; color: var(--text3); transform: rotate(90deg); transition: transform var(--t-fast) var(--ease); }
.tune .grp[aria-expanded="true"] > svg { transform: rotate(-90deg); }
/* a pick (pages.js, tunePick): the switch's segments, one per option, and one line per option of what it does */
.tune .tr.choice { grid-template-columns: minmax(0, 1fr) auto minmax(0, 340px) 64px; }
.tune .opts { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 3px; font-size: 12.5px; color: var(--text3); }
.tune .opts b { color: var(--text2); font-weight: 600; } .tune .opts .on b { color: var(--head); }
.tune .opts em { font-style: normal; font-weight: 500; color: var(--text2); }
.tune .seg button:disabled { cursor: not-allowed; }
@container (max-width: 760px) {
  .tune .tr:not(.grp, .choice) { grid-template-columns: minmax(0, 1fr) auto; }
  .tune .tr:not(.grp, .choice) .field { justify-content: flex-start; }
  .tune .tr:where(:not(.grp, .choice)) > .btn { justify-self: end; min-width: 64px; }
}
@media (max-width: 1280px) { .tune .tr.choice { grid-template-columns: minmax(0, 1fr) auto; }
  .tune .tr.choice .field { grid-column: 1 / -1; justify-content: flex-start; } .tune .tr.choice .hold { display: none; } }
@media (max-width: 700px) { .tune .tr:not(.grp) { grid-template-columns: minmax(0, 1fr); gap: 8px; } .tune .grp { gap: 10px; }
  .tune .field { justify-content: flex-start; } .tune .hold { display: none; } .tune .tr > .pill, .tune .tr > .btn { justify-self: start; } }
/* Server, Triggers: the same folding list, over a row per provider: its name, its jobs' sweeps, its state and commands */
.trig .tr:not(.grp) { grid-template-columns: 200px minmax(0, 1fr) auto; align-items: start; }
.trig-jobs { display: grid; gap: 3px; min-width: 0; font-size: 12.5px; color: var(--text2); overflow-wrap: anywhere; }
.trig-jobs b { font-weight: 600; }
.trig .where.bad { color: var(--bad-ink); font-weight: 500; }
.trig .acts { flex-wrap: wrap; justify-content: flex-end; }
.read-age.warn { color: var(--warn-ink); }
.trig { container-type: inline-size; }  /* the rows follow the room the block has, not the window's width */
@container (max-width: 760px) { .trig .tr:not(.grp) { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .trig .tr .r { justify-items: start; text-align: left; } .trig .acts { justify-content: flex-start; } }
.sample { margin-top: 14px; border-radius: 14px; background: var(--raise); box-shadow: var(--card); padding: 16px; display: grid; gap: 12px; font-size: var(--chat-text); max-width: var(--chat-width); }
.pick { position: relative; display: inline-flex; align-items: center; height: 30px; border-radius: 999px; border: 1px solid var(--line); background: var(--chip); color: var(--text); font-size: 12.5px; font-weight: 500; }
.pick:hover:not(:has(:disabled)) { border-color: var(--line2); background: var(--hover); } .pick:has(:disabled) { opacity: .55; }
.pick select { appearance: none; border: 0; background: transparent; font: inherit; color: inherit; height: 100%; padding: 0 27px 0 12px; border-radius: 999px; cursor: pointer; }
.pick select:disabled { cursor: default; opacity: 1; } .pick option { background: var(--raise); color: var(--text); }
.pick svg.i { position: absolute; right: 9px; width: 12px; height: 12px; transform: rotate(90deg); pointer-events: none; }
.stop { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line2); background: var(--raise); color: var(--head); display: grid; place-items: center; flex: none; }
.stop:hover { background: var(--hover); } .stop svg.i { fill: currentColor; width: 14px; height: 14px; }
.send { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; flex: none; }
.send:hover:not(:disabled) { background: var(--red2); } .send svg.i { stroke-width: 2.2; }
.ended { max-width: var(--chat-width); margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px dashed var(--line2); border-radius: 12px; color: var(--text2); background: var(--bg); }
.ended .btn { margin-left: auto; }

/* A session's details */
.insp { border-left: 1px solid var(--line); overflow: auto; padding: 16px 16px 40px; display: grid; gap: 22px; align-content: start; background: var(--panel); }
.insp h3 { margin: 0 0 9px; font-size: 12px; font-weight: 600; color: var(--text3); }
.insp .acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }  /* what acts on the session: SSH attach, Archive */
dl.kv { margin: 0; display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 7px 10px; font-size: 13px; }
dl.kv dt { color: var(--text3); } dl.kv dd { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
dl.kv .mono { font-size: 12px; }
.minis { display: grid; gap: 10px; }
.meter { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; font-size: 12px; color: var(--text2); }
.meter b { font-weight: 600; color: var(--text); }
.bar { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; background: var(--head); }
.bar i.warn { background: var(--amber); } .bar i.bad { background: var(--bad); }
.svc { display: grid; gap: 7px; font-size: 13px; }
.svc div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.svc div span:last-child { margin-left: auto; color: var(--text3); font-size: 12px; white-space: nowrap; }
.link { color: var(--blue); font-weight: 500; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }
.link:hover { text-decoration: underline; }


/* static/app_pages.css */
/* Every page's parts of ClutchClicks Admin: a page's head, the toolbar, the filter chips and menu, a first read's
   skeleton, the stat tile, the data table and the cards after them. app.css's, linked after app_frame.css. */

/* Pages: Automations, Issues, Server */
.scroll { overflow: auto; min-height: 0; }
.page { max-width: 1440px; padding: 26px 34px 60px; width: 100%; }
/* A page's head (head() in core.js): the small crumb the frame gives (--crumb: the page's group or section), the title,
   one line, and at its right the page's primary action. A hairline closes it; a toolbar (.tb) may follow it. */
.ph { display: flex; align-items: flex-end; gap: 14px 16px; flex-wrap: wrap; margin-bottom: var(--sp-5); padding-bottom: var(--sp-4); border-bottom: 1px solid var(--line); }
.ph + .tb { margin-top: calc(-1 * var(--sp-1)); }  /* a toolbar sits 16 px under the head */
.ph > svg.ill { width: 184px; height: 115px; flex: none; margin: -22px 0 -14px; }  /* head()'s illustration, at the right */
.ph > :is(div:first-child:not(.mark), .mark + div) { flex: 1 1 320px; min-width: 0; }
.ph > :is(div:first-child:not(.mark), .mark + div)::before { content: var(--crumb, none); display: block; margin-bottom: 4px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text3); }
.ph h1 { margin: 0 0 4px; font: 800 32px/1.12 var(--title); letter-spacing: -.03em; color: var(--head); text-wrap: balance; }
.ph p { margin: 0; color: var(--text3); font-size: 14px; }
.ph-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.ph .mark { width: 42px; height: 42px; border-radius: 13px; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; flex: none; }
.ph .mark.warn { background: var(--warn-bg); color: var(--warn); } .ph .mark.bad { background: var(--bad-bg); color: var(--bad); }
.ph .mark svg { width: 22px; height: 22px; stroke-width: 2.2; }
/* The toolbar (head()'s `tools`): a page's search, filters and view picks, in one row under its head. .find is the
   search (or the scope bar); .tb-s holds the filters (chips, dropdowns, a .seg, filterMenu's button); .tb-meta stands
   at the row's end: a read's age, Read again, a view switch. A trailing .tb-s + .tb-meta pair stands in one .tb-end
   (core.js, tbEnd), which breaks as one unit: Read again leaves row 1 only with the strip, and stands on the strip's
   last row. On a computer the search gives way first (its shrink weighs 2000 to the .tb-end's 1000 and the scope
   bar's 1), down to 180 px; then a crowded .tb-s wraps inside its own strip, never narrower than its widest control,
   so no control is hidden. A row too short for the search, that widest control and the .tb-meta together breaks in
   two, the .tb-end whole on row 2; the page lane thins its .tb-s to one line. On a phone the .tb-s scrolls sideways
   in one row, its end faded, with the .tb-meta at its right (rule 6). */
.tb { display: flex; flex-wrap: nowrap; align-items: center; gap: var(--sp-2); margin: 0 0 var(--sp-5); min-width: 0; }
.tb > .find { flex: 0 2000 280px; min-width: 180px; }
.tb-s { display: flex; flex: 1 1000 auto; flex-wrap: nowrap; align-items: center; gap: var(--sp-2); min-width: 0; overflow-x: auto; scrollbar-width: none;
  margin: -4px -12px -4px -4px; padding: 4px 16px 4px 4px; mask-image: linear-gradient(to right, #000 calc(100% - 16px), transparent); }  /* the pad keeps a focus ring whole; the fade falls on it while nothing is cut */
.tb-s::-webkit-scrollbar { display: none; }
.tb-s > * { flex: none; }
.tb select.input { width: auto; max-width: 240px; }
.tb-end { display: flex; flex: 1 1000 0; flex-wrap: nowrap; align-items: flex-end; gap: var(--sp-2); min-width: min-content; }
.tb-end > .tb-meta { min-height: var(--ctl-h); }  /* a control's height, at the foot: its centre on the strip's last row */
.tb-end > .seo-foot { flex: 0 1 auto; white-space: normal; text-align: right; }  /* SEO's sentence wraps beside its strip, not past the row (a hookup moves it out) */
@media (min-width: 761px) {  /* a computer: a crowded strip wraps inside itself, never narrower than its widest control, and hides none */
  .tb { flex-wrap: wrap; }
  .tb-s { flex: 1 1000 0; min-width: min-content; flex-wrap: wrap; overflow: visible; mask-image: none; margin: 0; padding: 0; row-gap: var(--sp-2); }
}
/* One size in a toolbar: every search, dropdown, button, filter chip and segmented switch is --ctl-h tall, --r-ctl
   round, its words --fs-small, so a row of mixed controls reads as one set. .sm draws nothing smaller here, and a
   page's sheet sets no size of its own on them: `python Panel/e2e.py page --stub layout` fails a toolbar control that
   breaks it ("6 every toolbar control has the foundation's one size"). */
.tb :is(.btn, .primary, .chip, .input) { height: var(--ctl-h); border-radius: var(--r-ctl); font-size: var(--fs-small); }
.tb :is(.btn, .primary).sm { padding: 0 12px; gap: 7px; }
.tb .btn.sq { width: var(--ctl-h); padding: 0; }
.tb .seg { height: var(--ctl-h); border-radius: var(--r-ctl); align-items: stretch; }
.tb .seg > button { height: auto; font-size: var(--fs-small); }
.tb-meta { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-small); color: var(--text3); white-space: nowrap; }
/* Row 2 (filterChips() in core.js): each filter set as a chip that a click takes off, then Clear all; hidden while
   nothing is set. A chip names its column quietly and its value in ink. */
.tb-on { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: calc(-1 * var(--sp-3)) 0 var(--sp-5); }
.tb-on[hidden] { display: none; }
.fchip { height: var(--ctl-h-sm); max-width: 100%; padding: 0 4px 0 10px; border-radius: var(--r-pill); background: var(--sel); color: var(--head); font-size: var(--fs-small); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; overflow: clip; text-overflow: ellipsis; }
.fchip > span { font-weight: 500; color: var(--text2); } .fchip > span::after { content: ":"; }
.fchip svg.i { width: 20px; height: 20px; padding: 3px; border-radius: 50%; color: var(--text2); flex: none; }
.fchip:hover svg.i { background: color-mix(in srgb, var(--text) 12%, transparent); color: var(--head); }
.chip b:empty { display: none; }
/* The filter menu (filterMenu() in core.js): a layer under its button. Its fields, each with the count set, open their
   values: a tick each, with the rows that hold it. Its search finds a field or a value. */
.fm { position: fixed; z-index: 60; width: 300px; max-width: calc(100vw - 24px); max-height: min(460px, var(--fm-room, 70vh)); min-height: 160px; display: flex; flex-direction: column; background: var(--raise); border: 1px solid var(--line2); border-radius: 12px; box-shadow: var(--shadow); }
.fm-top { display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px 0; font-size: var(--fs-small); color: var(--head); }
.fm-top .btn { margin-left: -6px; }
.fm-find { margin: 6px 10px 6px; } .fm-find .input { width: 100%; height: var(--ctl-h-sm); }
.fm-list { overflow-y: auto; padding: 0 4px 6px; overscroll-behavior: contain; }
.fm-f, .fm-v { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 34px; padding: 0 10px; border-radius: var(--r-sm); font-size: var(--fs-small); color: var(--text); text-align: left; cursor: pointer; }
.fm-f:hover, .fm-v:hover { background: var(--hover); }
.fm-f:focus-visible { outline-offset: -2px; }
.fm-f b, .fm-v b { margin-left: auto; font: 500 var(--fs-caption) var(--mono); color: var(--text3); }
.fm-f b { min-width: 18px; padding: 0 5px; border-radius: var(--r-pill); background: var(--head); color: var(--bg); text-align: center; }
.fm-f svg.i { width: 14px; height: 14px; margin-left: auto; color: var(--text3); flex: none; } .fm-f b + svg.i { margin-left: 0; }
.fm-v > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-h { padding: 8px 10px 2px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text3); }
.fm-none { margin: 0; padding: 12px 10px; font-size: var(--fs-small); color: var(--text3); }
/* A first read's skeleton (skeleton() in core.js): static blocks in the page's layout, in the words' own tone at a low
   strength, so they read on every surface, light and dark. Nothing here moves. */
.sk-box { display: grid; gap: var(--sp-4); }
.sk { display: block; height: 10px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--text) 9%, transparent); }
.sk-s { height: 8px; } .sk-h { height: 13px; } .sk-v { width: 34%; height: 24px; margin: 10px 0; }
.sk-c { width: 28px; height: 28px; border-radius: 50%; flex: none; } .sk-p { width: 64px; height: 20px; border-radius: var(--r-pill); }
.sk-f { height: var(--ctl-h); border-radius: var(--r-ctl); } .sk-b { width: 120px; height: var(--ctl-h); border-radius: var(--r-ctl); }
.sk-card { border-radius: var(--r-card); background: var(--raise); box-shadow: var(--card); overflow: hidden; }
.sk-pad { padding: var(--sp-4); display: grid; gap: var(--sp-3); align-content: start; }
.sk-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: var(--sp-3); align-items: center; padding: var(--sp-3) var(--sp-4); }
.sk-row > span { display: grid; gap: 7px; }
.sk-row + .sk-row, .sk-tr + .sk-tr { border-top: 1px solid var(--line); }
.sk-tr { display: grid; grid-template-columns: 2fr repeat(4, minmax(0, 1fr)); gap: var(--sp-6); align-items: center; height: var(--row-h); padding: 0 var(--sp-4); }
.sk-tr > .sk:not([style]) { width: 60%; } .sk-th { height: 38px; }
.sk-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--sp-4); }
.sk-cards .sk-card { min-height: 150px; } .sk-cards .sk-h { margin-bottom: var(--sp-2); }
.sk-tiles .tile { display: grid; align-content: start; }
.sk-form { max-width: 640px; gap: var(--sp-5); } .sk-form > span { display: grid; gap: 8px; }
.sk-lines { display: grid; gap: 10px; padding: var(--sp-2) 0; }
/* words a screen reader hears that are drawn at no size: the tour button's " this page", a skeleton's "Reading…" */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* a section's heading under the title: a card's head's words (.card-h), the title face at --fs-card, so a section and
   a card name their part one way; its <small> says what it counts, in the words' face */
.page h2 { font: 800 var(--fs-card)/1.3 var(--title); letter-spacing: -.01em; color: var(--head); margin: 36px 0 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }  /* a long <small> goes under the words, never squeezes them */
.page h2 small { font: 400 13px var(--sans); color: var(--text3); letter-spacing: 0; }
.attn { border: 1px solid var(--note-line); background: var(--note-bg); border-radius: 12px; }
.attn .r { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; padding: 12px 16px; align-items: center; }
.attn .r + .r { border-top: 1px solid var(--note-line); }
.attn .r > svg { color: var(--warn); } .attn .r.bad > svg { color: var(--bad); } .attn .r.info > svg { color: var(--text3); }
.attn:has(.r.info) { border-color: var(--line); background: var(--raise); }  /* worth knowing: no note's tint, nothing waits on a person */
.attn .r p { margin: 0; } .attn .r p small { display: block; color: var(--text2); font-size: 13px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: 14px; background: var(--raise); box-shadow: var(--card); }
.stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { padding: 14px 16px; display: grid; gap: 4px; align-content: start; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat .k { font-size: 12.5px; color: var(--text3); }
.stat .v { font: 800 26px/1.2 var(--title); letter-spacing: -.03em; color: var(--head); }
.stat .v small { font: 400 13px var(--sans); color: var(--text3); letter-spacing: 0; }
.stat .bar { margin-top: 6px; }
/* The stat tile, every page's: a label, a big figure and a small line in a box of its own (`.stats` above is the
   joined strip). `.tiles` lays them four across, two under 1100px; a `.tile` holds `.tile-l`, `.tile-v` and `.tile-d`.
   A page adds these beside its own classes and its sheet keeps only what differs; a page sheet loads later and wins
   a tie. */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); }
.tile { min-width: 0; padding: 16px 18px; border-radius: var(--r-card); background: var(--raise); box-shadow: var(--card); }
.tile-l, .tile-d { font-size: var(--fs-caption); font-weight: 600; color: var(--text3); }
/* the figure is ink in every state: the state stands on the small line, as a .pill or a .delta (ok, bad, warn), or a .dot */
.tile-v { font: 800 var(--fs-figure)/1.2 var(--title); letter-spacing: -.03em; color: var(--head); }
.tile-v small { font: 600 var(--fs-small) var(--sans); color: var(--text3); letter-spacing: 0; }  /* the figure's unit: "of 2 cores" */
/* a figure not known: a quiet dash in the figure's place, then the page's words, so the tile reads as waiting, not broken */
.tile-v > .tile-none::before { content: "—"; margin-right: var(--sp-2); font: 800 var(--fs-figure)/1 var(--title); color: var(--faint); vertical-align: -2px; }
.tile-d > .pill { line-height: 20px; font-size: var(--fs-caption); vertical-align: 1px; }
.delta { font-weight: 700; font-variant-numeric: tabular-nums; } .delta.ok { color: var(--ok-ink); } .delta.bad { color: var(--bad-ink); } .delta.warn { color: var(--warn-ink); }
/* a card's head: its icon and its name in the title face, and what it counts at its right (small) */
.card-h { display: flex; align-items: center; gap: 9px; padding: 13px 16px; border-bottom: 1px solid var(--line); font: 800 var(--fs-card)/1.3 var(--title); letter-spacing: -.01em; color: var(--head); }
.card > .card-h { margin: calc(-1 * var(--pad-y)) calc(-1 * var(--pad-x)) 0; }  /* the head spans its card: a card that changes its padding sets --pad-y and --pad-x */
.card-h > svg.i { color: var(--text3); } .card-h small { margin-left: auto; font: 600 12px var(--sans); color: var(--text3); letter-spacing: 0; }
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .tiles { gap: 10px; } }
/* The data table, every page's: `.tw` is the box around a <table> and scrolls it sideways. One head (Figtree, small,
   --text3, sentence case), rows --row-h tall with a line under each, and `.num` on the cells of a numeric column,
   right-aligned. `.tw-open` is a table whose row opens something: the pointer and the hover tone. A page adds `tw`
   beside its own class, as with the tile.
   A sortable head is `th.tw-sort` around a <button>, `aria-sort` on the sorted one (sortHead in core.js). On a phone
   `.tw-x` hides a column and `.tw-ph` shows what stands in its place: the folded figures (foldRow in core.js). */
.tw { overflow-x: auto; border-radius: var(--r-card); background: var(--raise); box-shadow: var(--card); }
.tw table { width: 100%; border-collapse: collapse; }
.tw th { font: 600 var(--fs-caption)/1.3 var(--sans); color: var(--text3); text-align: left; vertical-align: bottom; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tw td { height: var(--row-h); padding: var(--row-pad) 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tw th.tw-sort { padding: 0; }  /* sticky, so its button's area (::after) fills it */
.tw-sort button { display: inline-flex; align-items: flex-end; gap: 3px; padding: 10px 12px; font: inherit; color: inherit; text-align: inherit; white-space: nowrap; position: static; }
.tw-sort button span { flex: none; }
.tw-sort button::after { content: ""; position: absolute; inset: 0; width: auto; height: auto; transform: none; z-index: auto; }  /* the whole th is its area, on a touch screen too */
.tw-sort button:hover, .tw-sort[aria-sort] button { color: var(--head); }
.tw-ph { display: none; }
.tw .tw-more td { height: auto; padding: 0 12px 12px; }
.tw-more dl { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 0; }
.tw-more dt { font-size: var(--fs-caption); font-weight: 600; color: var(--text3); }
.tw-more dd { margin: 2px 0 0; font: var(--fs-caption) var(--mono); color: var(--text); }
@media (max-width: 760px) {
  .tw .tw-x { display: none; } .tw-ph { display: revert; }
  .tw-more dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; }
}
.tw tr:last-child td { border-bottom: 0; }
.tw :is(td, th).num { text-align: right; } .tw td.num { font-family: var(--mono); font-size: 12.5px; }  /* a head stays in the head's face */
.tw-open tbody tr { cursor: pointer; transition: background var(--t-fast); } .tw-open tbody tr:hover { background: var(--hover); }
/* every row answers the pointer, quieter where it opens nothing; the open row is the selection's tint, its start
   edge in ink (aria-selected, aria-current or .on); a row the keyboard reaches takes the ring inside its box */
.tw tbody tr:not(.tw-more):hover { background: color-mix(in srgb, var(--hover) 70%, transparent); }
.tw-open tbody tr:hover { background: var(--hover); }
.tw tbody tr:is([aria-selected="true"], [aria-current], .on), .tw tbody tr:is([aria-selected="true"], [aria-current], .on):hover { background: var(--sel); }
.tw tbody tr:is([aria-selected="true"], [aria-current], .on) > :first-child { box-shadow: inset 2px 0 0 var(--head); }
.tw tbody tr:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; border-radius: 0; }
/* the head stays in view while the table scrolls in its own box: `tw tw-scroll`, as tall as --tw-h (70% of the window) */
.tw th { position: sticky; top: 0; z-index: 1; background: var(--raise); }
.tw-scroll { max-height: var(--tw-h, 70vh); overflow: auto; overscroll-behavior: contain; }
.table, .issues { border-radius: 14px; background: var(--raise); box-shadow: var(--card); overflow: hidden; }  /* a row list is a card */
.tr { display: grid; grid-template-columns: 220px minmax(0, 1fr) 170px; gap: 16px; padding: 13px 16px; align-items: center; }
.tr + .tr, .logs + .tr { border-top: 1px solid var(--line); }
[data-row] { scroll-margin-top: 16px; } .tr.cur { background: var(--sel); } h2.cur, .day.cur { color: var(--blue); }
.tr .name { display: grid; min-width: 0; } .tr .name b { font-weight: 600; } .tr .name small { color: var(--text3); font-size: 12px; overflow-wrap: anywhere; } .tr .name small .warn { color: var(--warn-ink); font-weight: 600; }
.tr .r { text-align: right; font-size: 12.5px; color: var(--text2); display: grid; gap: 6px; justify-items: end; }
.tr .r .acts { display: flex; gap: 6px; }
.ticks { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(2px, 1fr); gap: 2px; height: 26px; }
.ticks i { border-radius: 2px; background: #3fae72; }
.ticks i.bad { background: var(--bad); } .ticks i.none { background: var(--line); }
.tickfoot { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--text3); margin-top: 5px; }
.logs { margin: 0; background: var(--term); color: #d7deef; font: 12px/1.6 var(--mono); padding: 12px 16px; max-height: 360px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.logs .lt { color: #7f8db3; } .logs .le { color: #ff9b8f; } .logs .lw { color: #f2c46d; }
.acc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.card { --pad-y: 15px; --pad-x: 16px; border-radius: var(--r-card); background: var(--raise); box-shadow: var(--card); padding: var(--pad-y) var(--pad-x); display: grid; gap: 9px; align-content: start; }
.card .k { font-size: 12.5px; color: var(--text3); display: flex; justify-content: space-between; gap: 8px; }
.card .v { font: 800 26px/1.2 var(--title); letter-spacing: -.03em; color: var(--head); }
.card .v small { font: 400 13px var(--sans); color: var(--text3); letter-spacing: 0; }
.card .err { color: var(--text2); font-size: 13px; margin: 0; }
/* The Claude card's API key part (pages.js, apiKeyPart): under the plan's bars, set off by a rule */
.apikey { display: grid; gap: 9px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 3px; }
.apikey p { margin: 0; font-size: 13px; color: var(--text2); }
.apikey .k { align-items: center; }
.apikey .link { justify-self: start; background: none; border: 0; padding: 0; font-family: inherit; cursor: pointer; }
.apikey .link svg { transition: transform var(--t-fast) var(--ease); }
.apikey .link[aria-expanded="true"] svg { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { .apikey .link svg { transition: none; } }
.cal .tr { grid-template-columns: minmax(0, 1fr) 170px 110px; }
.days { font-weight: 600; } .days.warn { color: var(--warn-ink); } .days.bad { color: var(--bad-ink); }
.w-top { display: flex; align-items: center; gap: 8px; } .w-top .btn { margin-left: auto; }
/* Issues (pages.js): the problems as a short list beside the open one's whole record; one column under 900 px */
.w-split { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; margin-top: 22px; align-items: start; }
.w-pick, .w-rec { border-radius: 14px; background: var(--raise); box-shadow: var(--card); min-width: 0; }  /* both are cards */
.w-pick { overflow: hidden; }
.w-pick .day { display: flex; justify-content: space-between; }
.w-pick a { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 2px 8px; padding: 10px 14px; text-decoration: none; color: var(--text); border-top: 1px solid var(--line); }
.w-pick a > svg { margin-top: 3px; color: var(--text3); } .w-pick a.ok > svg { color: var(--ok); } .w-pick a.bad > svg { color: var(--bad); }
.w-pick a.warn > svg { color: var(--warn); } .w-pick a.wait > svg { color: var(--wait); }
.w-pick a b { font-weight: 600; font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.w-pick a small { grid-column: 2; color: var(--text3); font-size: 12px; } .w-pick a small em { font-style: normal; font-weight: 600; color: var(--warn-ink); }
.w-pick a[aria-current] { background: var(--sel); } .w-pick a:hover { background: var(--hover); } .w-pick a:focus-visible { outline-offset: -2px; border-radius: 0; }
.w-rec { padding: 20px 22px; }
.w-rec h3 { font: 600 18px/1.3 var(--display); color: var(--head); margin: 10px 0 2px; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.w-rec .meta { color: var(--text3); font-size: 12.5px; margin: 0; }
.w-rec .tag.new { color: var(--warn-ink); background: var(--warn-bg); border-color: transparent; }
.w-rec dl { margin: 18px 0 0; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px 16px; }
.w-rec dt { color: var(--text3); font-size: 12.5px; } .w-rec dd { margin: 0; max-width: 72ch; min-width: 0; overflow-wrap: anywhere; }
.btn.go { background: var(--head); border-color: var(--head); color: var(--bg); } .btn.go:hover:not(:disabled) { background: var(--text); }
.w-commit { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; } .w-commit + .w-commit, .w-diff + .w-commit { margin-top: 8px; }
.w-commit code { font-size: 12px; color: var(--text3); }
.w-diff { margin: 8px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); font: 12px/1.55 var(--mono); overflow: auto; max-height: 460px; white-space: pre; }
.w-diff ins { color: var(--ok-ink); text-decoration: none; } .w-diff del { color: var(--bad-ink); text-decoration: none; } .w-diff i { color: var(--text3); font-style: normal; }
@media (max-width: 900px) { .w-split { grid-template-columns: minmax(0, 1fr); } .w-rec dl { grid-template-columns: 1fr; gap: 2px; } .w-rec dd { margin-bottom: 10px; } }
.day { font-size: 12px; font-weight: 600; color: var(--text3); padding: 10px 16px 6px; background: var(--panel); border-top: 1px solid var(--line); }
.day:first-child { border-top: 0; }
.empty { border: 1px dashed var(--line2); border-radius: 14px; padding: 28px; text-align: center; color: var(--text2); }
.empty b { display: block; color: var(--text); margin-bottom: 4px; }
/* empty() in core.js: an illustration (ill) or a picture of art/ on a --raise panel, a title, one line, an action */
.empty.drawn { border: 0; display: grid; justify-items: center; gap: 4px; padding: 20px; text-wrap: balance; }
.empty.drawn > svg.ill { display: block; width: 128px; height: 90px; margin-bottom: 6px; }
.empty.drawn > b { margin: 0; font-size: var(--fs-lead); color: var(--head); }
.empty.drawn > p { margin: 0; max-width: 52ch; color: var(--text3); }
.empty.drawn > :is(.btn, .primary) { margin-top: 10px; }
.empty-art { width: min(240px, 100%); aspect-ratio: 4 / 3; margin-bottom: 10px; border-radius: 14px; overflow: hidden; background: var(--raise); }
.empty-art img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* inside a card, a drawer or its tab, or the site editor's panes, empty() is a note in its box: its picture about 96 px */
:is(.card, [role="tabpanel"]:where(:not([data-cla-work])), .insp, .rv-drawer, .ro-drawer, .wpane, .wchat, .wdraw) .empty.drawn { padding: 16px 12px; }
:is(.card, [role="tabpanel"]:where(:not([data-cla-work])), .insp, .rv-drawer, .ro-drawer, .wpane, .wchat, .wdraw) .empty.drawn > svg.ill { width: 96px; height: 67px; margin-bottom: 6px; }
:is(.card, [role="tabpanel"]:where(:not([data-cla-work])), .insp, .rv-drawer, .ro-drawer, .wpane, .wchat, .wdraw) .empty-art { width: 96px; margin-bottom: 6px; border-radius: 10px; }
/* empty({ill: ''}): the note of a small part, no picture: what is missing in ink, why under it, the action beside */
.empty.drawn.empty-note { padding: var(--sp-3); gap: 2px; font-size: var(--fs-small); }
.empty.drawn.empty-note > b { font-size: var(--fs-body); font-weight: 600; }
.empty.drawn.empty-note > :is(.btn, .primary) { margin-top: var(--sp-2); }

/* Users and Access, the owners' pages: an account's row unfolds into its form; an entry of the record opens on a click */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; font-weight: 500; line-height: 22px; padding: 0 9px; border-radius: 6px; background: var(--chip); color: var(--text2); border: 1px solid var(--line); max-width: 100%; min-width: 0; overflow: clip; text-overflow: ellipsis; }
.tag.all { background: var(--wait-bg); color: var(--wait-ink); border-color: transparent; }
.tr.dim .name, .tr.dim .tags { opacity: .6; }
.edit { display: grid; gap: 18px; padding: 18px 16px 16px; background: var(--panel); border-top: 1px solid var(--line); }
.edit + .tr { border-top: 1px solid var(--line); } .edit:first-child { border-top: 0; }
.edit .fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.edit label:not(.tick) { display: grid; gap: 5px; font-size: 12.5px; font-weight: 500; color: var(--text2); }
.edit input:not([type=checkbox]) { height: 36px; border: 1px solid var(--line2); border-radius: 9px; padding: 0 11px; background: var(--bg); font-size: 14px; color: var(--text); min-width: 0; }
.edit input::placeholder { color: var(--text3); }
.edit input:focus-visible { outline: 2px solid var(--blue); outline-offset: 0; border-color: transparent; }
.edit fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.edit legend { padding: 0; margin-bottom: 8px; font-size: 12.5px; font-weight: 600; color: var(--head); }
.edit legend small { font-weight: 400; color: var(--text3); }
.tick { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; cursor: pointer; }
.tick input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--head); }
.tick b { font-weight: 500; } .tick small { display: block; color: var(--text3); font-size: 12.5px; }
.edit fieldset:has([name=owner]:checked) .tick:has([name=area]) { opacity: .5; }  /* an owner opens everything */
.si { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.si b { font-weight: 500; } .si small { display: block; color: var(--text3); font-size: 12.5px; overflow-wrap: anywhere; }
.hint { margin: 0; color: var(--text3); font-size: 12.5px; }
.edit .foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; } .edit .foot .grow { flex: 1; }
.edit .primary { height: 32px; font-size: 13px; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; } .page .filters + h2 { margin-top: 20px; }
.choose { position: relative; display: inline-flex; align-items: center; height: 30px; border: 1px solid var(--line2); border-radius: 999px; background: var(--raise); font-size: 13px; }
.choose > svg.i { position: absolute; color: var(--text3); pointer-events: none; }
.choose > svg.i:first-child { left: 10px; width: 15px; height: 15px; }
.choose > svg.i:last-child { right: 9px; width: 13px; height: 13px; transform: rotate(90deg); }
.choose select { appearance: none; border: 0; background: transparent; font: inherit; color: inherit; height: 100%; padding: 0 28px 0 32px; border-radius: 999px; cursor: pointer; max-width: 260px; }
.choose select:focus-visible { outline: 2px solid var(--blue); } .choose option { background: var(--raise); color: var(--text); }
.entry + .entry { border-top: 1px solid var(--line); }
.entry summary { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; padding: 10px 16px; align-items: center; cursor: pointer; list-style: none; }
.entry summary::-webkit-details-marker { display: none; }
.entry summary:hover { background: var(--hover); } .entry summary:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.entry summary > svg { color: var(--text3); } .entry.bad summary > svg { color: var(--bad); }
.entry p { margin: 0; overflow-wrap: anywhere; } .entry p b { font-weight: 600; }
.entry small { color: var(--text3); font-size: 12px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.entry small b { color: var(--bad-ink); font-weight: 600; }
.entry small svg.i { width: 13px; height: 13px; transform: rotate(90deg); transition: transform var(--t-fast); } .entry[open] small svg.i { transform: rotate(-90deg); }
.entry dl { margin: 0; padding: 4px 16px 14px 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 20px; }
.entry dt { font-size: 12px; color: var(--text3); } .entry dd { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.btn.more { margin-top: 12px; }
.credit { margin-top: 14px; } .credit a { color: var(--blue); }
.skeleton { height: 10px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--text) 9%, transparent); }  /* the older single bar, in the .sk look */
/* a notice stands at the foot of the work, under its centre; toast() in core.js sets how far above the window's foot,
   clear of a phone's tabs and of a composer under it */
.toast { position: fixed; left: 50%; bottom: 20px; min-height: 34px; display: flex; align-items: center; gap: var(--sp-2); line-height: 1.35; transform: translateX(-50%); width: max-content; background: var(--rail-on-ink); color: var(--rail-on); border: 1px solid color-mix(in srgb, var(--rail-on) 14%, var(--rail-on-ink)); padding: 9px 16px; border-radius: 18px; font-size: var(--fs-small); box-shadow: var(--shadow); z-index: 30; max-width: min(520px, calc(100vw - 32px)); }
/* a failure: the same notice with the alert icon in the danger tone and a danger edge, told apart from brand red */
.toast.bad { border-color: color-mix(in srgb, var(--bad) 70%, transparent); }
.toast.bad > svg.i { flex: none; width: 17px; height: 17px; color: color-mix(in srgb, var(--bad) 75%, #fff); }
.toast.act { gap: var(--sp-3); padding-right: 6px; }  /* its button (toast()'s action) at its end */
.toast > span { min-width: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }  /* wraps, up to 3 lines; the button stays */
.toast > button { flex: none; min-height: 26px; padding: 0 12px; border-radius: var(--r-pill); font-weight: 600; background: color-mix(in srgb, currentColor 14%, transparent); }
.toast > button:hover { background: color-mix(in srgb, currentColor 24%, transparent); }

.phone-tabs { display: none; }

.insp-closed .insp { display: none; }
@media (min-width: 1181px) {
  .insp-closed .sessions { grid-template-columns: minmax(0, 1fr); }
  .app:not(.insp-closed)[data-view="session"] { --insp: 300px; }  /* the top bar's title stays over the chat */
  .app:not(.insp-closed)[data-view="session"] .main::before { right: calc(300px + (100% - 300px) / 2 - 260px); }  /* centred in the chat, clear of the open details */
}
@media (min-width: 761px) {
  /* an open website takes the whole width beside the rail; the sidebar's close button closes the sidebar alone */
  .app:is(.side-closed, .nav-closed) { --nav: 0px; } :is(.side-closed, .nav-closed) .side { display: none; }
  .top [data-bar] { display: none; }  /* a phone's menu button: on a computer the rail and the sidebar stand */
  .top .phone { display: none; }  /* Settings and the person's menu hold it */
  .app.nav-closed:not(.side-closed) .side-open { display: inline-grid; }
  .app.nav-closed:not(.side-closed):not(.topbar) .page { padding-left: 58px; }  /* the page's head stands clear of the » */
  /* a website's way back to the list of websites, with its name */
  [data-view="website"] .top .back { display: inline-flex; align-items: center; gap: 3px; width: auto; padding: 0 10px 0 5px; font-size: 13px; font-weight: 500; color: var(--text2); text-decoration: none; white-space: nowrap; }
  [data-view="website"] .top .back span { display: inline; }
  [data-view="session"] .top [data-drawer="insp"] { display: inline-flex; }
  /* the view's name stands over the centre of its work, clear of a session's open details, so it lines up with what is
     centred below it (the conversation) */
  .top { position: relative; } .slot h1 { position: absolute; left: calc((100% - var(--insp, 0px)) / 2); transform: translateX(-50%); max-width: 44vw; }
}
@media (min-width: 761px) and (max-width: 1280px) {  /* too narrow to centre: the name keeps its place in the bar, clear of a session's view switch */
  .slot h1 { position: static; transform: none; max-width: none; flex: 1; min-width: 0; }
}
@media (min-width: 761px) and (min-height: 700px) {
  /* The start page: the mark, the question and its box stand as one group on the room's centre. What runs now sits
     under the group and unfolds into the room left below it, scrolling there, so the box never moves. */
  .home { grid-template-rows: minmax(0, 1fr) auto minmax(150px, 1.6fr); align-content: stretch; padding: 24px; }
  .home .col { grid-row: 2; }
  .home .col::before { content: ""; justify-self: center; width: clamp(180px, 30vh, 300px); aspect-ratio: 1; margin-bottom: 10px; background: url(/static/mark.svg?v=a146839c70db) center / contain no-repeat; opacity: calc(var(--mark) * 3); filter: var(--mark-filter); }
  .home .now { grid-row: 3; align-self: stretch; min-height: 0; margin-top: 18px; overflow: auto; }
}
@media (max-width: 1180px) {  /* no room beside the conversation: the open details lie over its right side */
  .sessions { grid-template-columns: minmax(0, 1fr); }
  .insp { position: absolute; top: 0; right: 0; bottom: 0; width: 300px; z-index: 6; box-shadow: var(--shadow); }
}
@media (max-width: 760px) {
  /* a phone: the top bar over every page, the sections as tabs at the foot, and the sidebar over the page from the
     top bar's corner button, closed again as a page opens (frame.js, render) */
  .app { grid-template: 48px minmax(0, 1fr) auto / minmax(0, 1fr); }
  .top, .app.topbar .top { grid-area: 1 / 1; display: flex; }
  .rail { display: none; }
  .side { grid-area: 2 / 1; z-index: 9; width: min(300px, 86vw); box-shadow: var(--shadow); } .left-closed .side { display: none; }
  /* the open menu lies on a scrim over the page; a tap on it closes the menu (frame.js) */
  .app:not(.left-closed) .main::after { content: ""; position: absolute; inset: 0; z-index: 8; background: rgba(3, 7, 20, .45); }
  .main { grid-area: 2 / 1; }
  [data-view="session"] .top .back { display: inline-grid; }
  .slot { padding-left: 6px; } .seg button span { display: none; } .slot .pill { display: none; }
  .chat { padding: 18px 14px; } .callouts { padding: 0 12px; } .composer { padding: 8px 10px 12px; }
  .box .bar2 > span { display: none; }
  .home { padding: 28px 16px; align-content: start; } .home h1 { font-size: 24px; }
  .page { padding: 20px 16px 40px; } .ph > svg.ill { display: none; }
  /* a compact head: the title and the actions share a row where they fit, the line holds two lines at most */
  .ph { align-items: center; gap: 8px 10px; padding-bottom: var(--sp-3); margin-bottom: var(--sp-4); }
  .ph > :is(div:first-child:not(.mark), .mark + div) { flex: 1 1 150px; }
  .ph > :is(div:first-child:not(.mark), .mark + div)::before { content: none; }  /* the top bar holds the crumb */
  .ph h1 { font-size: 24px; margin-bottom: 2px; }
  .ph p { font-size: var(--fs-small); }
  .ph p:not(:has(a, button, input, select)) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }  /* a line that holds a control stays whole */
  /* the toolbar: the search takes the row, the filters scroll sideways in one row under it, with no scrollbar drawn
     (its pad keeps a focus ring whole) */
  .tb { flex-wrap: wrap; margin-bottom: var(--sp-4); }
  .tb > .find { flex: 1 1 100%; }
  .tb-s { flex: 1 1 100%; margin: -4px -16px; padding: 4px 16px; }
  .tb-end { flex: 1 1 100%; min-width: 0; align-items: center; } .tb-end > .tb-s { flex: 1 1 0; margin-right: 0; }
  .tb-on { margin-top: calc(-1 * var(--sp-2)); margin-bottom: var(--sp-4); }
  .sk-tr { grid-template-columns: 2fr repeat(2, minmax(0, 1fr)); } .sk-tr > :nth-child(n+4) { display: none; }
  .sk-tiles { gap: 10px; }
  /* a head's tour button (tour.js, tourButton) is an icon, so it never takes a row of its own: beside other controls
     a 32 px square, a button's height, and alone in its .ph-act 36 px; alone in a .ph-act that follows the title, it shares
     the title's row. Its words stay in the page as its name, drawn at no size; its title says what it does */
  .ph:has(> :is(div:first-child:not(.mark), .mark + div) + .ph-act > [data-tour-start]:only-child) { flex-wrap: nowrap; align-items: flex-start; }
  .page .ph .btn[data-tour-start] { width: 32px; height: 32px; padding: 0; justify-content: center; font-size: 0; gap: 0; flex: none; border-color: var(--line2); background: var(--raise); }  /* a phone has no word or hover to name it: its edge keeps it a button */
  .page .ph-act > .btn[data-tour-start]:only-child { width: 36px; height: 36px; }
  .stats { grid-template-columns: 1fr 1fr; } .stats:not(.three) .stat:nth-child(3) { border-left: 0; }
  .stats:not(.three) .stat:nth-child(n+3) { border-top: 1px solid var(--line); } .stats.three .stat { padding: 12px; }
  .tr, .cal .tr { grid-template-columns: 1fr; gap: 8px; } .tr .r { text-align: left; justify-items: start; }
  .users .tr .r { display: flex; flex-wrap: wrap; align-items: center; }  /* an account's state, last sign-in and Edit on one line */
  .users .tr .r .acts { margin-left: auto; }  /* Edit at the row's right end */
  .acc { grid-template-columns: 1fr; }
  .phone-tabs { grid-row: 3; display: flex; justify-content: space-around; background: var(--side); border-top: 1px solid var(--line); padding: 6px 0 calc(8px + env(safe-area-inset-bottom)); }
  .phone-tabs a { display: grid; justify-items: center; gap: 2px; font-size: var(--fs-caption); letter-spacing: -0.01em; white-space: nowrap; color: var(--text3); text-decoration: none; flex: 1 1 0; min-width: max-content; }
  .phone-tabs a[aria-current] { color: var(--head); font-weight: 600; }
  .phone-tabs svg.i { width: 21px; height: 21px; }}
/* A touch screen: a control drawn under 40 px takes a finger on 40 px. Its ::after is an unseen area centred on it and
   behind what it holds, so nothing looks different and a tap inside still lands where it did. :where() keeps both
   rules under every other one: a control with a place of its own (.latest) keeps it. A control that draws its own
   ::after (a switch's knob, a picker's arrow) is left out by name, and `.tool` is the bar's button only: a session's
   tool row is a <details> of that class. A segment of a switch (.seg, a page's own -seg) keeps its box: it stands
   against its neighbours, and its strip scrolls sideways on a phone. */
@media (pointer: coarse) {
  :where(:is(.icon, .btn, .primary, button.tool, .mk, .main button, .phone-tabs a):not(.notifications-switch, .rv-sw, .tg, :is(.seg, [class*="-seg"]) > button)) { position: relative; z-index: 0; }
  :where(:is(.icon, .btn, .primary, button.tool, .mk, .main button, .phone-tabs a):not(.notifications-switch, .rv-sw, .tg, :is(.seg, [class*="-seg"]) > button))::after { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: max(100%, 40px); height: max(100%, 40px); transform: translate(-50%, -50%); }
  /* the top bar's buttons stand 4 px apart: an area ends halfway to its neighbour, and the three a phone always
     shows grow toward the bar's edge instead */
  .top > :is(.icon, .tool)::after { width: calc(100% + 4px); }
  .top > [data-bar]::after { width: calc(100% + 12px); left: calc(50% - 4px); }
  .top > [data-flip]::after { width: calc(100% + 12px); left: calc(50% + 4px); }
  .tw-sort button { min-height: 40px; }  /* a sortable head's area is its th: it takes a finger's height */
}

/* static/browser.css */
/* The Browser view (Docs/Systems/PanelBrowser.md), on the panel's tokens (app.css): the open tabs above the picture,
   who is acting under them, then the page's picture in a window as large as the room allows, its own proportions
   kept. In a session it takes the place of the chat and of the session's details. Control has its own colour, the
   logo's navy: the bar that says who is in control and the ring around the window. */
:root { --ctl: #0b1d4f; --ctl-ink: #fff; --ctl-soft: rgba(255, 255, 255, .78); --ctl-line: rgba(255, 255, 255, .34); --ctl-fill: rgba(255, 255, 255, .14); }
:root[data-theme="dark"] { --ctl: #2748a6; }
.main:has(.bv)::before { display: none; }  /* the mark stays behind a conversation, never behind a page's picture */
.sessions.browsing { grid-template-columns: minmax(0, 1fr); }
.sessions.browsing > .insp, .sessions.browsing #composer { display: none; }  /* the composer hides as in Terminal, from the first moment */
.bv { grid-row: 2; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); min-width: 0; min-height: 0; position: relative; }  /* the pane's tall row, as the chat */
.bmain { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
/* Activity's button stands by Follow, in a session and on the view's own page; a session's details give their
   place to Activity there, and the top bar's Details goes with them */
.app:has(.bv) .top [data-drawer="insp"] { display: none; }
.bactbtn { flex: none; } .bactbtn[aria-pressed="true"] { background: var(--sel); border-color: transparent; color: var(--head); }

/* the tab strip, and Follow */
.btop { display: flex; align-items: center; gap: 10px; padding: 12px 16px 0; min-width: 0; min-height: 58px; }
.btabs { display: flex; gap: 6px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.btab { flex: 0 1 250px; min-width: 150px; display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; grid-template-rows: auto auto; align-content: center; gap: 0 9px; height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text2); text-align: left; transition: background var(--t-fast), border-color var(--t-fast); }
.btab:hover { background: var(--hover); }
.btab[aria-pressed="true"] { background: var(--raise); border-color: var(--line2); color: var(--head); box-shadow: var(--lift); }
.btab svg.i { grid-row: 1 / 3; align-self: center; color: var(--text3); }
.btab b { font-size: 12.5px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btab small { grid-column: 2; font-size: 11.5px; line-height: 1.3; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* a tab's pill. Every sheet loads on every page, so this sheet's rules name the Browser's own boxes (.btab, .bbar,
   .bact): a bare .tag drew every tag of the app as this pill */
.btab .tag { grid-column: 3; grid-row: 1 / 3; align-self: center; font-size: 11px; font-weight: 600; line-height: 18px; padding: 0 7px; border-radius: 999px; background: var(--chip); color: var(--text2); white-space: nowrap; }
.btab .tag.you { background: var(--sel); color: var(--head); }  /* a tab an admin opened */
.follow { flex: none; }
.follow[aria-pressed="true"] { background: var(--sel); border-color: transparent; color: var(--head); font-weight: 600; }

/* who is acting: one row of the same height watching and in control, so the picture under it never moves */
.bbar { display: flex; align-items: center; gap: 12px; margin: 8px 16px 0; height: 38px; min-width: 0; border-radius: 12px; transition: background var(--t-fast); }
.bbar p { margin: 0; display: grid; min-width: 0; line-height: 1.3; }
.bbar p b { font-weight: 600; font-size: 13.5px; color: var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bbar p small { font-size: 12.5px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.take { flex: none; background: var(--head); color: var(--bg); border-color: transparent; font-weight: 600; }
.take:hover:not(:disabled) { background: color-mix(in srgb, var(--head) 84%, var(--blue)); }
.bbar.ctl { padding: 0 4px 0 14px; background: var(--ctl); color: var(--ctl-ink); }
.bbar.ctl > svg.i { color: var(--ctl-ink); }
.bbar.ctl p b { color: var(--ctl-ink); } .bbar.ctl p small { color: var(--ctl-soft); }
.bbar.ctl .btn { flex: none; background: transparent; color: var(--ctl-ink); border-color: var(--ctl-line); }
.bbar.ctl .btn:hover { background: var(--ctl-fill); }
.bbar.ctl :focus-visible { outline-color: var(--ctl-ink); }
.bbar .keys { display: none; }
.bbar > .pill { flex: none; }
.bintro { margin: 10px 16px 0; font-size: 13.5px; color: var(--text2); }  /* #/browser's one line under the top bar */
@media (max-width: 640px) {  /* a phone: the bar grows to two lines rather than cutting its pill and its line */
  .bbar { height: auto; min-height: 38px; flex-wrap: wrap; margin: 8px 12px 0; }
  .bbar p small { white-space: normal; }
  .bintro { margin: 8px 12px 0; }
}
@media (pointer: coarse) { .bbar .keys { display: inline-flex; } }  /* a touch screen opens its keyboard by this button */
.bbar.rec { padding: 0 4px 0 14px; background: var(--note-bg); box-shadow: inset 0 0 0 1px var(--note-line); }  /* a recorded step, not the live page */
.bbar.rec > svg.i { color: var(--warn); } .bbar.rec .btn { flex: none; }

/* the picture: a window with the tab's address on top */
.bstage { flex: 1; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr); padding: 12px 16px 16px; }
.fit { container-type: size; display: grid; place-items: start center; min-width: 0; min-height: 0; }
.bwin { --w: 1440; --h: 900; margin: 0; width: min(100cqw, (100cqh - 38px) * var(--w) / var(--h), var(--w) * 1.5px); border: 1px solid var(--line2); border-radius: 10px; background: var(--panel); box-shadow: var(--shadow); overflow: hidden; outline: 2px solid transparent; outline-offset: 2px; transition: outline-color var(--t-fast); }
.bwin.in { outline-color: var(--ctl); }
.bwin.in:has(.bkeys:focus) { outline-color: var(--blue); }  /* the page has the keyboard: the panel's focus colour */
.bwin-bar { height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-bottom: 1px solid var(--line); color: var(--text3); font-size: 12.5px; min-width: 0; }
.bwin-bar > span { color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bpage { position: relative; }
.bwin canvas { display: block; width: 100%; aspect-ratio: var(--w) / var(--h); background: var(--chip); transition: opacity var(--t-fast), filter var(--t-fast); }
.bwin.in canvas { touch-action: none; }  /* a finger's drag scrolls the page in the picture, not the panel */
.bwin.wait canvas { opacity: .45; }  /* another tab's picture until this one's first frame */
.bwin.stale canvas { opacity: .5; filter: grayscale(1); }  /* a picture from before the link dropped is never passed as live */
.bkeys { position: absolute; left: 0; top: 0; width: 1px; height: 1px; padding: 0; border: 0; outline: 0; opacity: 0; resize: none; pointer-events: none; font-size: 16px; }  /* takes the keys for the page; 16 px keeps a phone from zooming in */
.bpage > img { display: block; width: 100%; }  /* a recorded step's screenshot, in the live picture's place */
/* where a click landed: for a moment on the live picture (the agent's), for good on a recorded step */
.bmark { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 2px solid var(--blue); background: color-mix(in srgb, var(--blue) 20%, transparent); box-shadow: 0 0 0 1px rgba(255, 255, 255, .7); pointer-events: none; }
.bnone { align-self: center; justify-self: center; max-width: 440px; }  /* holds empty() of core.js */

/* in control the window's top is the controls: back, reload, the address, the sign-ins, close */
.bwin.in .bwin-bar { padding: 0 4px; gap: 2px; }
.bwin-bar .icon:disabled:hover { background: none; color: var(--text3); }
.bgo { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; margin: 0 4px; position: relative; }
.addr { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 26px; padding: 0 10px; border: 1px solid var(--line2); border-radius: 999px; background: var(--raise); color: var(--text3); transition: border-color var(--t-fast); }
.addr:focus-within { border-color: var(--blue); }
.addr input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0; background: transparent; font-size: 12.5px; color: var(--text); }
.addr input::placeholder { color: var(--text3); }
.quick { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.quick small { font-size: 12px; color: var(--text3); }
.quick button { height: 24px; padding: 0 10px; white-space: nowrap; border-radius: 999px; border: 1px solid var(--line2); background: var(--raise); font-size: 12.5px; font-weight: 500; color: var(--text); transition: background var(--t-fast); }
.quick button:hover { background: var(--hover); }
/* in control with no tab open: the window is a start page */
.bhome { aspect-ratio: var(--w) / var(--h); display: grid; place-content: center; justify-items: center; gap: 4px; padding: 20px; text-align: center; background: var(--chip); color: var(--text2); }
.bhome b { color: var(--text); } .bhome p { margin: 0; text-wrap: balance; }
.bhome div { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.bhome .btn { height: 36px; padding: 0 14px; } .bhome .btn small { color: var(--text3); font-weight: 400; }

/* Activity: the timeline in a column beside the picture. It starts closed (the drawer "act", frame.js's setDrawer) */
.bact { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-left: 1px solid var(--line); background: var(--panel); }
.act-closed .bact { display: none; }
.bhead { display: flex; align-items: center; gap: 10px; padding: 12px 12px 8px 16px; min-height: 54px; }
.bhead h2 { margin: 0; flex: 1; font: 800 15px/1.3 var(--title); color: var(--head); letter-spacing: -.01em; }  /* a card's head */
.bact .rows .empty.drawn > svg.ill { width: 96px; height: 68px; margin-bottom: 4px; }  /* an empty state inside the drawer draws small */
.bact .rows { overflow: auto; flex: 1; padding: 0 8px 12px; }
.bact .rows .label { padding: 10px 8px 4px; }
/* Activity's rows: a bare .act also drew the notices that carry a button (toast()'s .toast.act) as a dark block */
.bact .act { width: 100%; display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 1px 10px; align-items: center; padding: 7px 8px; border-radius: 10px; text-align: left; color: var(--text); transition: background var(--t-fast); }
.bact .act:hover { background: var(--hover); } .bact .act[aria-current] { background: var(--sel); }
.bact .act > svg.i { grid-row: 1 / 3; color: var(--text3); }
.bact .act b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bact .act small { grid-column: 2; font-size: 12px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bact .act img { grid-column: 3; grid-row: 1 / 3; width: 58px; aspect-ratio: 8 / 5; object-fit: cover; object-position: top; border: 1px solid var(--line2); border-radius: 5px; background: var(--chip); }
.bact .act.plain b { font-weight: 500; color: var(--text2); } .bact .act.plain:hover { background: none; }
.bmore { display: flex; margin: 8px auto 0; }
@media (min-width: 1181px) { .app:not(.act-closed) .bv { grid-template-columns: minmax(0, 1fr) 320px; } }
@media (min-width: 761px) and (max-width: 1180px) {  /* no room beside the picture: the open column lies over its right side, as a session's details do */
  .bact { position: absolute; top: 0; right: 0; bottom: 0; width: 320px; z-index: 6; box-shadow: var(--shadow); }
}

@media (max-width: 760px) {
  .btop { padding-left: 10px; padding-right: 10px; } .bbar { margin-left: 10px; margin-right: 10px; }
  .follow span, .bactbtn span { display: none; } .follow, .bactbtn { padding: 0 9px; }
  .bv { display: block; } .bact { border-left: 0; border-top: 1px solid var(--line); } .bact .rows { overflow: visible; }  /* the page scrolls: the picture, then the timeline */
  .btab { min-width: 138px; }
  .bstage { flex: none; padding: 10px 10px 12px; } .fit { container-type: inline-size; } .bwin { width: 100%; }
  .sessions.browsing { overflow: auto; }
  /* in control: the title, Keyboard and Release fit one row; the last half minute's countdown takes the title's place */
  .bbar { gap: 8px; } .bbar.ctl > svg.i, .bbar.ctl p small { display: none; }
  .bbar.ctl p.soon b { display: none; } .bbar.ctl p.soon small { display: block; font-size: 13.5px; font-weight: 600; color: var(--ctl-ink); }
  /* no room for the sign-ins beside the address: they drop under it while the address box has the focus */
  .addr input:focus { font-size: 16px; }  /* under 16 px a phone zooms in on a focused box */
  .quick { display: none; flex-wrap: wrap; position: absolute; z-index: 2; top: calc(100% + 7px); left: 0; right: 0; padding: 8px; border: 1px solid var(--line2); border-radius: 12px; background: var(--raise); box-shadow: var(--shadow); }
  .bgo:focus-within .quick { display: flex; }
  .quick button { height: 32px; flex: 1; }
  .bhome .btn small { display: none; }
}

/* static/gbp.css */
/* The GBP app's page (gbp.js): the head, toolbar, tiles, rows, fields and buttons are app.css's; only what a row and
   a result add is here, under [data-page="gbp"].
   Shared, kept unscoped until app.css holds them: .ph .ph-side (Reviews' head), .gline (Reviews, Closers, Marketing,
   the Clients Board), .fold (the folded parts of several pages) and the .btn.primary size below. */
.ph .ph-side { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.ph .ph-side { flex-wrap: wrap; justify-content: flex-end; }
.gline { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; font-size: 13.5px; margin-top: 18px; background: var(--chip); }
.gline > svg.i { flex: none; } .gline p { margin: 0; flex: 1; min-width: 0; color: var(--text); }
.gline small { color: var(--text3); overflow-wrap: anywhere; }
.gline.ok { background: var(--ok-bg); } .gline.ok > svg.i { color: var(--ok); }
.gline.warn { background: var(--warn-bg); } .gline.warn > svg.i { color: var(--warn); }
.gline .btn { flex: none; } .btn.primary { height: 30px; padding: 0 14px; font-size: 13px; text-decoration: none; }
/* Run GBP optimization keeps its place and its box in the head, open or closed (the size of .btn.primary in gbp.css): Tour moves after it in the DOM while its box is open (tour.js). */
[data-page="gbp"] .ph-act > [data-gbp-ask="run"] { order: 1; height: 30px; padding: 0 14px; font-size: 13px; }
.btn.primary:disabled { opacity: .45; cursor: not-allowed; }
.fold > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 8px; padding: 6px 0; font-size: 15px; color: var(--head); }
.fold > summary::-webkit-details-marker, .was > summary::-webkit-details-marker { display: none; }
.fold > summary b { font-weight: 600; } .fold > summary small { font-size: 13px; color: var(--text3); }
.fold > summary svg.i, .was > summary svg.i { width: 13px; height: 13px; align-self: center; transition: transform var(--t-fast); }
.fold[open] > summary svg.i, .was[open] > summary svg.i { transform: rotate(90deg); }
.fold > summary:hover b { text-decoration: underline; }
.page > .fold { margin-top: 30px; } .page > .fold > summary { margin-bottom: 6px; }
@media (max-width: 760px) {
  .ph:has(.ph-side) { flex-wrap: wrap; } .ph .ph-side { margin-left: 0; }
  .gline { flex-wrap: wrap; } .gline p { flex-basis: calc(100% - 40px); }
}

/* the page: the box the head's buttons open, Google's line, the tiles; each 20 px apart */
[data-page="gbp"] .gline { margin: 0 0 var(--sp-5); }
[data-page="gbp"] .gbp-ask { --pad-y: 14px; --pad-x: 14px; margin: 0 0 var(--sp-5); display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
[data-page="gbp"] .gbp-askf { min-width: 220px; } [data-page="gbp"] .gbp-askw { flex: 1; min-width: 260px; }
[data-page="gbp"] .gbp-askacts { display: flex; gap: 8px; align-self: flex-start; margin-top: 25px; }
[data-page="gbp"] .tile-l { display: flex; align-items: center; gap: 7px; }
[data-page="gbp"] .tile-v small { font: 600 var(--fs-small) var(--sans); color: var(--text3); letter-spacing: 0; }

/* a client's row: its name, what its result holds, its state, its next action */
[data-page="gbp"] .gbp .tr { grid-template-columns: minmax(180px, 240px) minmax(0, 1fr) 120px minmax(184px, auto); }
[data-page="gbp"] .gbp .tr .what { color: var(--text2); font-size: var(--fs-small); min-width: 0; overflow-wrap: anywhere; }
[data-page="gbp"] .gbp .tr > .pill { justify-self: start; }
/* Done by hand: a person's mark in place of the dot, so the pill reads apart from Ready's green */
[data-page="gbp"] .pill.gbp-hand::before { content: none; } [data-page="gbp"] .pill.gbp-hand svg.i { width: 13px; height: 13px; }
[data-page="gbp"] .gbp .tr > .acts { display: flex; gap: 6px; justify-content: flex-end; }

/* in a result, what stands between it and the profile */
[data-page="gbp"] .gpush { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 10px; font-size: 13.5px; border: 1px solid var(--line); background: var(--bg); }
[data-page="gbp"] .gpush.on { border-color: var(--ok); } [data-page="gbp"] .gpush.bad { border-color: var(--bad); }
[data-page="gbp"] .gpush > div { flex: 1; min-width: 0; } [data-page="gbp"] .gpush p { color: var(--text2); }
[data-page="gbp"] .gpush ul { margin: 6px 0 0; padding-left: 18px; color: var(--bad-ink); font-size: var(--fs-small); }
[data-page="gbp"] .gpush .hint { display: block; margin-top: 4px; color: var(--text3); font-size: var(--fs-caption); }
[data-page="gbp"] .gpush .acts { display: flex; flex: none; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }

/* a client's result, under its row */
[data-page="gbp"] .edit.gbp { gap: 10px; padding: 18px 16px 20px; }
[data-page="gbp"] .gbp h4 { margin: 0 0 6px; font-size: var(--fs-caption); font-weight: 600; color: var(--head); } [data-page="gbp"] .gbp h4 small { font-weight: 400; color: var(--text3); }
[data-page="gbp"] .gbp p { margin: 0; overflow-wrap: anywhere; }
[data-page="gbp"] .gbp .picked { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-bottom: 8px; }
[data-page="gbp"] .gbp :is(.picked, .checks) ul { margin: 0; padding-left: 18px; display: grid; gap: 2px; font-size: var(--fs-small); }
[data-page="gbp"] .gbp .picked li small { color: var(--text3); }
[data-page="gbp"] .gbp .checks { display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--warn-bg); color: var(--warn-ink); }
[data-page="gbp"] .gbp .checks svg.i { flex: none; margin-top: 2px; } [data-page="gbp"] .gbp .checks ul { margin-top: 4px; color: var(--text); }
[data-page="gbp"] .gbp .ba { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 4px 0 8px; }
[data-page="gbp"] .gbp .ba > div { display: grid; gap: 8px; align-content: start; justify-items: start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
[data-page="gbp"] .gbp .ba > div:first-child { background: none; color: var(--text2); }
[data-page="gbp"] .gbp .gsv { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
[data-page="gbp"] .gbp .gsv > b { font-weight: 600; display: grid; gap: 6px; justify-items: start; overflow-wrap: anywhere; }
[data-page="gbp"] .gbp .was { margin-top: 4px; } [data-page="gbp"] .gbp .was > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-caption); color: var(--text3); }
[data-page="gbp"] .gbp .was p { color: var(--text2); margin-top: 4px; }
[data-page="gbp"] .gbp .all { padding: 4px 0 10px; }
[data-page="gbp"] .gbp .shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; padding: 6px 0; }
[data-page="gbp"] .gbp figure { margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg); display: grid; align-content: start; }
[data-page="gbp"] .gbp figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--chip); }
[data-page="gbp"] .gbp figcaption { display: grid; gap: 6px; padding: 10px 12px 12px; font-size: var(--fs-small); }
[data-page="gbp"] .gbp figcaption code { font: 11.5px var(--mono); color: var(--text3); overflow-wrap: anywhere; }
[data-page="gbp"] .gbp figcaption .acts { display: flex; flex-wrap: wrap; gap: 6px; }
[data-page="gbp"] .gbp figure.cover { max-width: 640px; margin: 6px 0; }
[data-page="gbp"] .gbp figure.cover img { aspect-ratio: 16 / 9; }
[data-page="gbp"] .gbp figure.logo { max-width: 240px; margin: 6px 0; }
[data-page="gbp"] .gbp figure.logo img { aspect-ratio: 1; border-radius: 50%; }
/* narrower: the name and its state on one line, what the result holds under them, then the buttons */
@media (max-width: 1100px) {
  [data-page="gbp"] .gbp .tr { grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; }
  [data-page="gbp"] .gbp .tr .what { grid-column: 1 / -1; grid-row: 2; }
  [data-page="gbp"] .gbp .tr > .pill { grid-row: 1; grid-column: 2; align-self: start; }
  [data-page="gbp"] .gbp .tr > .acts { grid-column: 1 / -1; grid-row: 3; justify-content: flex-start; }
}
@media (max-width: 760px) {
  [data-page="gbp"] .gbp-askacts { margin-top: 0; }
  [data-page="gbp"] .gpush { flex-wrap: wrap; } [data-page="gbp"] .gpush .acts { justify-content: flex-start; }
  [data-page="gbp"] .gbp :is(.picked, .ba) { grid-template-columns: 1fr; }
  [data-page="gbp"] .gbp .gsv { grid-template-columns: 1fr; gap: 6px; } [data-page="gbp"] .gbp .gsv > .btn { justify-self: start; }
}

/* static/websites.css */
/* The Websites app (Docs/Systems/WebBuilder.md, The Websites app): the list of sites, and a site as layout A
   (the column beside the page). The draft is the client's own page in a frame: it keeps its
   own look in dark. */

/* the top bar in a website: its state, then its name under the Websites crumb */
.slot .pill + h1 { flex: 0 1 auto; min-width: 0; }

/* --- Websites: the sites as cards, grouped by what each needs --------------------------------------------------- */
.sites .ph p { max-width: 640px; }
/* the toolbar: the shared filters, Filter and the order in one strip, Templates at the row's end */
.sites .tb-s select.input { width: auto; }
.sites [data-site-tpl] b { margin-left: 2px; font-weight: 600; color: var(--text3); font-variant-numeric: tabular-nums; }
.sites [data-site-tpl][aria-pressed="true"] { background: var(--sel); color: var(--head); }
/* a group's heading: its state's colour and count, level 2 */
.sites .label { margin: var(--sp-6) 0 var(--sp-3); padding: 0 2px; font: 700 var(--fs-card)/1.3 var(--sans); letter-spacing: 0; text-transform: none; }
.sites .label::before { width: 8px; height: 8px; border-radius: 50%; }
.sites .label span { margin-left: 2px; font-size: var(--fs-small); font-weight: 600; font-variant-numeric: tabular-nums; }
.sites .tb + .label { margin-top: 0; }
/* the cards: the site's shot with its state on it, then its name, domain, why it needs a person, its facts */
.sites .sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--sp-5); }
.sites .scard { position: relative; display: flex; border: 0; flex-direction: column; align-items: stretch; padding: 0; gap: 0; border-radius: var(--r-card); background: var(--raise); box-shadow: var(--card); overflow: hidden; color: var(--text); text-decoration: none;
  transition: box-shadow var(--t-fast), transform var(--t-fast); }
.sites a.scard:hover { box-shadow: 0 0 0 1px var(--line2), var(--card); transform: translateY(-2px); }
.sites .scard.need.warn { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--amber) 70%, transparent), var(--card); }
.sites .scard.need.bad { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--bad) 60%, transparent), var(--card); }
.sites .scard > .sstate { position: absolute; top: var(--sp-3); left: var(--sp-3); max-width: calc(100% - 24px); background: var(--raise); box-shadow: var(--lift); }
.sites .sprev { display: flex; flex-direction: column; gap: 6px; height: 160px; padding: 14px; background: color-mix(in srgb, var(--b) 7%, var(--bg)); border-bottom: 1px solid var(--line); }
.sites .sp-bar { display: flex; justify-content: space-between; align-items: center; height: 14px; padding: 0 8px; border-radius: 3px; background: #fff; }
.sites .sp-bar i { display: block; width: 34px; height: 5px; border-radius: 2px; background: #1b1e24; } .sites .sp-bar i + i { width: 30px; height: 6px; background: var(--b); }
.sites .sp-hero { flex: 1; display: flex; align-items: center; gap: 12px; padding: 12px; border-top: 4px solid var(--b); border-radius: 3px; background: color-mix(in srgb, var(--b) 24%, #1d2027); min-height: 0; }
.sites .sp-copy { flex: 1; display: grid; gap: 6px; min-width: 0; }
.sites .sp-copy b { color: #fff; font-size: 13px; font-weight: 700; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sites .sp-copy i { display: block; height: 5px; width: 80%; border-radius: 2px; background: rgba(255,255,255,.55); } .sites .sp-copy i + i { width: 46px; height: 9px; border-radius: 4px; background: var(--b); }
.sites .sp-card { flex: none; width: 34%; align-self: stretch; border-radius: 3px; background: #fff; }
/* the site's shot over its drawing: same box, so nothing moves when it loads; the page's top, as a visitor sees it */
.sites .sthumb { position: relative; display: block; flex: none; }
.sites .sshot { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; border-bottom: 1px solid var(--line); }
.sites .sshot[hidden] { display: none; }
:root[data-theme="dark"] .sites .sshot { filter: brightness(.9); }
.sites .sprev.none { align-items: center; justify-content: center; gap: var(--sp-2); color: var(--text3); background: var(--bg); } .sites .sprev.none svg.i { width: 26px; height: 26px; }
.sites .sbody { flex: 1; display: grid; gap: 6px; padding: 14px var(--sp-4) var(--sp-4); min-width: 0; align-content: start; }
.sites .sn { font: 600 var(--fs-lead)/1.3 var(--sans); color: var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sites .scard .sdom { margin-top: -3px; font-size: var(--fs-caption); color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.sites .scard .sdom.warn { color: var(--warn-ink); } .sites .scard .sdom.off { color: var(--text3); }
.sites .scard .sdom i { font: var(--fs-caption) var(--sans); color: var(--text3); }  /* "· draft address" after a draft's slug */
.sites .swhy { display: flex; align-items: flex-start; gap: 6px; font-size: var(--fs-small); line-height: 1.4; color: var(--text2); }
.sites .swhy > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sites .swhy svg.i { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.sites .swhy.warn { color: var(--warn-ink); font-weight: 500; } .sites .swhy.bad { color: var(--bad-ink); font-weight: 500; }
.sites .smeta { display: flex; align-items: center; gap: 2px 0; margin-top: auto; padding-top: var(--sp-2); font-size: var(--fs-caption); color: var(--text2); white-space: nowrap; overflow: hidden; }
.sites .smeta > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; } .sites .smeta > :not(.pill) { flex: 0 1 auto; } .sites .smeta > .pill { flex: none; margin-right: 6px; }
.sites .smeta > :not(.pill) + *::before { content: "·"; margin: 0 6px; color: var(--text3); }
/* a site card's facts are one group beside its pills: short of room, the group goes whole to a second line */
.sites .smeta:has(> .sfacts) { flex-wrap: wrap; }
.sites .smeta > .sfacts { display: flex; } .sites .sfacts > * { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sites .sfacts > * + *::before { content: "·"; margin: 0 6px; color: var(--text3); }
.sites .sago { display: flex; align-items: center; gap: 5px; padding-top: var(--sp-2); border-top: 1px solid var(--line); font-size: var(--fs-caption); color: var(--text3); }
.sites .sago svg.i { width: 13px; height: 13px; } .sites .sago .spages { margin-left: auto; font-variant-numeric: tabular-nums; }
.sites .tcard .sbody .smeta { flex-wrap: wrap; }
.sites .tcard.gone .sbody { opacity: .8; }
/* a site's package: one of the facts, in the line's ink, its name stronger */
.spkg { font-weight: 600; color: var(--text); }
/* the card that starts a new site */
.sites .newcard { display: grid; place-content: center; justify-items: center; gap: 6px; min-height: 260px; padding: var(--sp-5); border: 1px dashed var(--line2); border-radius: var(--r-card); color: var(--text2); text-decoration: none; text-align: center; transition: border-color var(--t-fast), background var(--t-fast); }
.sites .newcard:hover { border-color: var(--text3); background: var(--hover); }
.sites .nc-plus { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: var(--sp-2); border-radius: 50%; background: var(--chip); color: var(--head); } .sites .nc-plus svg.i { width: 18px; height: 18px; }
.sites .newcard b { color: var(--head); font-size: var(--fs-lead); } .sites .newcard small { font-size: var(--fs-small); color: var(--text3); }
@media (max-width: 700px) { .sites .sgrid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); } .sites .newcard { min-height: 140px; } .sites .sprev { height: 150px; } }
/* "Changed by a CSM": one row per change */
.sites .bycsm .tr { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 1.2fr) 150px 14px; gap: 18px; padding: 11px 16px; color: var(--text); text-decoration: none; transition: background var(--t-fast); }
.sites .bycsm .tr:hover { background: var(--hover); }
.bycsm .sname { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bycsm .sname > span { display: grid; min-width: 0; }
.bycsm .sname b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .bycsm .sname small { color: var(--text3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sstat { display: grid; justify-items: start; gap: 3px; min-width: 0; }
.sstat small { max-width: 100%; font-size: 12px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bycsm .sdom { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 13px; color: var(--text2); }
.slast { font-size: 12.5px; color: var(--text3); text-align: right; }
.sites .bycsm .tr > svg.go { width: 14px; height: 14px; color: var(--text3); }

/* --- a website: the column beside the page --------------------------------------------------------------------- */
.main:has(.wb)::before { display: none; }  /* no mark behind a page being edited */
.wb { display: grid; grid-template-columns: 380px minmax(0, 1fr); min-width: 0; min-height: 0; position: relative; }
.wcol { display: grid; grid-template-rows: minmax(0, 1fr); min-width: 0; min-height: 0; border-right: 1px solid var(--line); background: var(--bg); }
.wpane, .wchat { display: grid; grid-template-rows: minmax(0, 1fr); min-width: 0; min-height: 0; position: relative; }
.wpane[hidden], .wchat[hidden] { display: none; }
.slot .seg svg.i { width: 15px; height: 15px; }

/* the chat: the panel's conversation, held to the column; the composer under it */
.wchat { display: flex; flex-direction: column; } .wchat .chat { flex: 1; min-height: 0; }
.wchat .callouts { padding: 0 14px; } .wchat .callouts:empty { display: none; } .wchat .callout { margin-top: 12px; grid-template-columns: 20px minmax(0, 1fr); }
.wchat .chat { padding: 20px 18px; font-size: 14px; }
.wchat .chat .col { max-width: none; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.wchat .composer { padding: 6px 14px 14px; } .wchat .composer .box { max-width: none; }
.wchat .composer textarea { max-height: 40vh; }
.wchat .latest { position: absolute; left: 50%; bottom: 128px; transform: translateX(-50%); }
.wchat .empty.hello { margin-top: 12vh; }
.box .bar2 .btn { height: 28px; font-size: 12.5px; }
.box .bar2 .clip { width: 30px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--text2); }
.box .bar2 .clip:hover { background: var(--hover); color: var(--text); } .box .bar2 .clip svg.i { width: 17px; height: 17px; }
.chips { flex-wrap: wrap; } .chipx { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
/* under the newest change of hours while Google still shows other hours (websites.js, siteHoursHint) */
.ghint { display: flex; align-items: flex-start; gap: 6px; margin: 8px 0 0; line-height: 1.45; }
.ghint svg.i { width: 14px; height: 14px; flex: none; margin-top: 2px; } .ghint a { white-space: nowrap; }
.point[aria-pressed="true"], .chg .btn[aria-pressed="true"] { background: var(--sel); border-color: transparent; color: var(--head); font-weight: 600; }
/* one change as one card: its checks' result, where on the page it changed, and View change and Undo */
.chg { display: grid; gap: 8px; margin-top: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); font-size: 13px; line-height: 1.4; color: var(--text2); }
.chg .res { display: flex; align-items: flex-start; gap: 7px; margin: 0; color: var(--ok-ink); font-weight: 500; overflow-wrap: anywhere; }
.chg .res svg.i { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.chg.warn .res { color: var(--warn-ink); } .chg.off .res { color: var(--text3); }
.chg.bad { border-color: color-mix(in srgb, var(--bad) 30%, var(--line)); background: var(--bad-bg); } .chg.bad .res { color: var(--bad-ink); font-weight: 600; }
.chg .where { padding: 0; border: 0; background: none; font: 12px/1.5 var(--mono); color: var(--text3); overflow-wrap: anywhere; }
.chg .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.chg .btn { height: 30px; padding: 0 12px; font-size: 12.5px; font-weight: 600; } .chg .btn svg.i { width: 13px; height: 13px; }
/* a change nobody's words tell (a Content save, a restore) names itself; under Clutchy's words the words do */
.chg .what { display: none; }
.wchg { padding: 0 14px; } .wchg .chg { margin-top: 0; }
.wchg .chg .what { display: grid; gap: 1px; color: var(--text); } .wchg .what b { font-weight: 600; } .wchg .what small { font-size: 12px; color: var(--text3); }
/* the ask box: what is pointed at rides above the words */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; } .chips[hidden] { display: none; }
.chipx { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 3px 0 9px; border-radius: 7px; background: var(--sel); color: var(--head); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.chipx svg.i { width: 13px; height: 13px; }
.chipx button { width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; color: var(--text3); } .chipx button:hover { background: var(--hover); color: var(--text); }
.chipx.said { display: flex; width: max-content; max-width: 100%; margin: 0 0 6px; padding-right: 9px; }
.pvframe.pointing { box-shadow: inset 0 0 0 2px var(--blue); }

.whead { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; } .whead small { font-size: 12px; color: var(--text3); }
/* Websites' hints and samples. Every sheet loads on every page, so these name the site's view (.wb) and the list
   ([data-page="websites"]): a bare .hint and .sample drew every page's hints and Settings' chat sample this way */
:is(.wb, [data-page="websites"]) .hint { display: flex; align-items: flex-start; gap: 6px; margin: 8px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--text3); }
:is(.wb, [data-page="websites"]) .hint svg.i { width: 14px; height: 14px; flex: none; margin-top: 1px; }
.bycsm + .hint { margin-top: 10px; }

/* the preview: what the page is shown as, which page, and the draft's state with Publish */
.pv { display: grid; grid-template-rows: auto minmax(0, 1fr); min-width: 0; min-height: 0; position: relative; background: var(--side); container: pv / inline-size; }
.pvbar { display: flex; align-items: center; gap: 4px; padding: 8px 12px; min-width: 0; border-bottom: 1px solid var(--line); background: var(--bg); }
.pvbar .seg button { height: 26px; padding: 0 8px; } .pvbar .seg svg.i { width: 15px; height: 15px; }
.pvbar .pvpage { width: auto; max-width: 200px; height: var(--ctl-h-sm); margin-left: 4px; font-size: var(--fs-small); text-overflow: ellipsis; }
/* a hairline between the bar's groups: what the frame shows, the tools, Delete draft */
.pvbar .pvsep { flex: none; width: 1px; height: 18px; margin: 0 6px; background: var(--line2); }
.pvbar .grow { flex: 1; }
/* what acts on the whole site: History, the draft's link, the live site. With less room they keep their icons */
@container pv (max-width: 820px) { .pvbar [data-site-open] { padding: 0 6px; } .pvbar [data-site-open] span { display: none; } }
@container pv (max-width: 940px) { .pvbar :is([data-site="draft"], [data-site="live"], [data-site-delete]) { padding: 0 6px; } .pvbar :is([data-site="draft"], [data-site="live"], [data-site-delete]) span { display: none; } }
@container pv (max-width: 700px) { .pvbar .pvpage { max-width: 130px; } }
@container pv (max-width: 360px) { .pvbar .tool { padding: 0 6px; } .pvbar .tool span { display: none; } }
.draft { display: inline-flex; align-items: center; gap: 7px; min-width: 0; margin-right: 4px; font-size: 12.5px; color: var(--text2); white-space: nowrap; }
.draft > span:last-child { overflow: hidden; text-overflow: ellipsis; } .draft .dot { flex: none; }
.pvbar > .primary, .pvbar > [data-site-tab] { flex: none; }
.pvframe { position: relative; overflow: hidden; min-height: 0; }
.pvframe iframe { display: block; border: 0; background: #fff; }
.pvframe.phone { display: grid; justify-content: center; align-content: start; padding: 18px 0 28px; overflow: auto; }
.pvframe.phone iframe { width: 390px; border: 8px solid #10131a; border-radius: 30px; box-shadow: var(--shadow); box-sizing: content-box; }
.wdraw { position: absolute; top: 49px; right: 0; bottom: 0; width: 380px; z-index: 5; overflow: auto; background: var(--panel); border-left: 1px solid var(--line); box-shadow: var(--shadow); }
/* Publish held by a failing check: the checks, and the one confirm */
.wpub { position: absolute; top: 52px; right: 12px; z-index: 6; width: min(420px, calc(100% - 24px)); display: grid; gap: 10px; padding: 14px; border: 1px solid color-mix(in srgb, var(--bad) 35%, var(--line)); border-radius: 14px; background: var(--raise); box-shadow: var(--shadow); font-size: 13px; }
.wpub b { color: var(--head); font-weight: 600; }
.wpub ul { margin: 0; padding-left: 18px; color: var(--text2); } .wpub li small { display: block; color: var(--text3); overflow-wrap: anywhere; }
.wpub .acts { display: flex; justify-content: flex-end; gap: 8px; }

/* Content: the fields without Clutchy, in the whole room: its sections with their counts on the left, the form beside
   them. The same entry feeds every place on the site that shows it */
.wct[hidden], .wcode[hidden] { display: none; }
.wct { min-width: 0; min-height: 0; }
.ctwrap { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100%; }
.ctnav { display: grid; align-content: start; gap: 2px; padding: 22px 12px; border-right: 1px solid var(--line); background: var(--side); }
.ctnav h3, .ctree h3 { margin: 0 12px 10px; font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text3); }
.ctnav button { display: flex; justify-content: space-between; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 9px; font-size: 13.5px; color: var(--text2); text-align: left; transition: background var(--t-fast), color var(--t-fast); }
.ctnav button:hover { background: var(--hover); color: var(--text); }
.ctnav button[aria-current="true"] { background: var(--sel); color: var(--head); font-weight: 600; }
.ctnav small { font-size: 12px; font-weight: 500; color: var(--text3); font-variant-numeric: tabular-nums; }
.wdet { display: grid; gap: 18px; align-content: start; grid-template-columns: minmax(0, 1fr); grid-auto-rows: max-content; }
.ctform { padding: 30px 40px 48px; max-width: 880px; }
.cthead { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.cthead h1 { margin: 0; font: 800 28px/1.2 var(--title); letter-spacing: -.03em; color: var(--head); }
.cthead p:not(.saved) { margin: 6px 0 0; max-width: 660px; font-size: 13.5px; line-height: 1.5; color: var(--text2); }
.cthead .saved { flex: none; margin-top: 10px; }
.ctform .wf { gap: 16px 20px; } .ctform .wf input { height: 42px; }
.wf.rows fieldset { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: start; gap: 12px; }
.wf.areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wf.areas fieldset { grid-template-columns: minmax(0, 1fr) 84px; gap: 12px; }
.wf fieldset legend { font-family: var(--mono); font-weight: 500; overflow-wrap: anywhere; }
.wf label.ro input { background: var(--panel); color: var(--text2); font: 13px var(--mono); }
.ctform .hr { grid-template-columns: minmax(0, 1fr) 150px 150px 28px; gap: 12px; padding: 10px 18px; } .ctform .hr input { height: 38px; padding: 0 10px; }
.ctform .hh { padding: 14px 18px; }
.noai { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; padding: 13px 16px; border: 1px solid color-mix(in srgb, var(--ok) 35%, var(--line)); border-radius: 10px; background: var(--ok-bg); color: var(--ok-ink); font-size: 13.5px; line-height: 1.45; }
.noai svg.i { width: 16px; height: 16px; flex: none; } .noai b { font-weight: 600; }
.wsteps .sub { margin: -6px 0 0; font-size: 12.5px; color: var(--text3); }

/* Code: the site's draft files, read only: the tree on the left, one file's text beside it */
.wcode { display: grid; grid-template-columns: 290px minmax(0, 1fr); min-width: 0; min-height: 0; }
.ctree { overflow: auto; padding: 22px 10px; border-right: 1px solid var(--line); background: var(--side); font-size: 13px; }
.ctree h3 small { margin-left: 6px; letter-spacing: 0; }
.ctree details > div { margin-left: 15px; padding-left: 6px; border-left: 1px solid var(--line); }
.ctree summary, .ctree button { display: flex; align-items: center; gap: 7px; width: 100%; height: 30px; padding: 0 8px; border-radius: 7px; color: var(--text2); cursor: pointer; white-space: nowrap; text-align: left; }
.ctree summary { list-style: none; } .ctree summary::-webkit-details-marker { display: none; }
.ctree summary svg.i, .ctree button svg.i { width: 14px; height: 14px; flex: none; color: var(--text3); }
.ctree summary svg.i:first-child { width: 12px; height: 12px; transition: transform var(--t-fast); } .ctree details[open] > summary svg.i:first-child { transform: rotate(90deg); }
.ctree summary small { margin-left: auto; font-size: 11.5px; color: var(--text3); }
.ctree span { overflow: hidden; text-overflow: ellipsis; }
.ctree summary:hover, .ctree button:hover { background: var(--hover); color: var(--text); }
.ctree button[aria-current="true"] { background: var(--sel); color: var(--head); font-weight: 600; }
.cfile { display: grid; grid-template-rows: auto minmax(0, 1fr); min-width: 0; min-height: 0; }
.cfile header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 13px 20px; border-bottom: 1px solid var(--line); }
.cfile header code { font: 600 13px var(--mono); color: var(--head); overflow-wrap: anywhere; } .cfile header small { font-size: 12px; color: var(--text3); }
.cfile pre { margin: 0; overflow: auto; padding: 14px 0; background: var(--bg); font: 12.5px/1.65 var(--mono); color: var(--text); counter-reset: line; tab-size: 2; }
.cfile pre span { display: inline-block; min-width: 100%; padding-right: 24px; }
.cfile pre span::before { counter-increment: line; content: counter(line); display: inline-block; width: 44px; margin-right: 18px; text-align: right; color: var(--text3); user-select: none; }
.cfile > .empty { margin: 48px auto; }
.wf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .wf.one { grid-template-columns: minmax(0, 1fr); }
.wf label { display: grid; gap: 5px; min-width: 0; font-size: 12.5px; font-weight: 500; color: var(--text2); } .wf label.wide { grid-column: 1 / -1; }
.wf input, .wf textarea, .hr input, .rd input { width: 100%; min-width: 0; height: 36px; padding: 0 11px; border: 1px solid var(--line2); border-radius: 9px; background: var(--bg); font: 14px var(--sans); color: var(--text); }
.wf textarea { height: auto; padding: 8px 11px; line-height: 1.45; resize: vertical; }
.wf input:focus-visible, .wf textarea:focus-visible, .hr input:focus-visible, .rd input:focus-visible { outline: 2px solid var(--blue); outline-offset: 0; border-color: transparent; }
.wf input:invalid, .hr input:invalid { border-color: var(--bad); background: var(--bad-bg); }
.wf .was { font-size: 12px; font-weight: 500; color: var(--warn-ink); }  /* what the Google listing says, where it differs */
.wf fieldset { display: grid; gap: 8px; margin: 0; padding: 10px 12px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); min-width: 0; }
.wf fieldset legend { padding: 0 4px; font-size: 12px; font-weight: 600; color: var(--text3); }
.hrs { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg); }
.hh { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.hh b { font-weight: 600; color: var(--head); } .hh small { color: var(--text3); }
.hr { display: grid; grid-template-columns: minmax(0, 1fr) 92px 92px 22px; gap: 8px; align-items: center; padding: 8px 12px; font-size: 13.5px; }
.hr input[type=time]::-webkit-calendar-picker-indicator { display: none; }  /* the field is typed; its clock would hide the time */
.hr + .hr { border-top: 1px solid var(--line); } .hr b { font-weight: 500; } .hr input { height: 32px; padding: 0 6px; font-size: 13px; }
.hr.ch { background: var(--note-bg); } .hr small { font-size: 12px; font-weight: 600; color: var(--warn-ink); }
.hr .closed { grid-column: 2 / 4; color: var(--text3); }
.hr input.cb { justify-self: center; }
.ctform .wf select.input { height: 42px; }
/* the agent's own words under the final QA's verdict: folded */
.qafirst { margin-top: 6px; } .qafirst summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; color: var(--text2); }
.qafirst summary::-webkit-details-marker { display: none; } .qafirst summary svg.i { width: 13px; height: 13px; transition: transform var(--t-fast); } .qafirst[open] summary svg.i { transform: rotate(90deg); }
.qafirst > span { display: block; margin-top: 6px; color: var(--text2); overflow-wrap: anywhere; }
.wlive .qareport .gline { margin: 0 0 10px; }
.wdet .gline { margin: 0; } .wdet .gline small { display: block; }
.saved { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12.5px; color: var(--text3); } .saved svg.i { width: 14px; height: 14px; color: var(--ok); }

/* a site building: the form's steps, one line each */
.wsteps { padding: 18px; display: grid; gap: 12px; align-content: start; justify-items: start; overflow: auto; grid-template-columns: minmax(0, 1fr); }
.wsteps h3, .whist h3 { margin: 0; font-size: 15px; font-weight: 600; color: var(--head); }
.wsteps ol { width: 100%; margin: 0; padding: 0; list-style: none; display: grid; }
.wsteps li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 2px; font-size: 13.5px; color: var(--text3); }
.wsteps li + li { border-top: 1px solid var(--line); }
.wsteps li.done { color: var(--text); } .wsteps li.done svg.i { color: var(--ok); }
.wsteps li.run { color: var(--head); font-weight: 600; } .wsteps li.run svg.i { color: var(--head); }
.wsteps li > i { width: 9px; height: 9px; justify-self: center; border: 1.5px solid var(--line2); border-radius: 50%; }
.wsteps time { font-size: 12px; font-weight: 400; color: var(--text3); }
.wsteps .hint { margin: 0; }

/* the site's history: every change, newest first */
.whist { padding: 16px; display: grid; gap: 12px; align-content: start; grid-template-columns: minmax(0, 1fr); }
.whist ol { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.whist li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 10px 12px; }
.whist li + li { border-top: 1px solid var(--line); }
.whist li b { font-size: 13.5px; font-weight: 600; } .whist li small { grid-column: 1; font-size: 12px; color: var(--text3); }
.whist li small.bad { color: var(--bad-ink); }
.whist li > .pill, .whist li > .btn { grid-column: 2; grid-row: 1; } .whist li > .pill + .btn { grid-row: 2; }
.whist li .btn { height: 26px; font-size: 12px; justify-self: end; } .whist > .btn { justify-self: start; }

/* Content, Code and Go live take the room of the column and the page (websites.js, WHOLE) */
.wb.going { grid-template-columns: minmax(0, 1fr); } .wb.going > .wcol, .wb.going > .pv { display: none; }
.wgo[hidden] { display: none; }
.wlive .ph p { max-width: 640px; }
.wlive .tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) auto; padding: 11px 16px; }
.wlive h3 { margin: 18px 0 8px; font-size: 13px; font-weight: 600; color: var(--text2); } .wlive h2 + h3 { margin-top: 0; }
.qn { display: flex; align-items: center; gap: 10px; min-width: 0; } .qn b { font-weight: 600; }
.qn svg.i { width: 17px; height: 17px; flex: none; }
.qn.ok svg.i { color: var(--ok); } .qn.warn svg.i { color: var(--amber); } .qn.bad svg.i { color: var(--bad); }
.qn.off { color: var(--text3); } .qn.off b { font-weight: 500; }
.qd { font-size: 13px; color: var(--text2); overflow-wrap: anywhere; } .qd.warn { color: var(--warn-ink); } .qd.bad { color: var(--bad-ink); } .qd.off { color: var(--text3); }
.wdone { display: flex; align-items: flex-start; gap: 16px; margin-top: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.wdone .primary, .wdone .pill { flex: none; } .wdone .primary:disabled { opacity: .45; cursor: not-allowed; }
.wdone p { flex: 1; margin: 0; font-size: 13px; line-height: 1.5; color: var(--text2); } .wdone p b { color: var(--text); font-weight: 600; }
.wdone .wreview { flex: none; width: 280px; font-size: 13px; } .wdone .wreview:has(:disabled) { cursor: default; }
.wsure { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: none; }
/* the website agent's written final QA (liveReport): its rules open on a click, closed by default */
.wlive h3 small { margin-left: 6px; font-weight: 400; color: var(--text3); }
.qareport { margin-top: 18px; } .wlive .qareport h3 { margin-top: 0; }
.wlive h3 + .wdone { margin-top: 0; } .wlive .wdone + .table { margin-top: 10px; }
.qarules { margin-top: 10px; } .qarules > .table { margin-top: 8px; }
.qarules > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text2); border-radius: 6px; }
.qarules > summary::-webkit-details-marker { display: none; } .qarules > summary:hover { color: var(--text); }
.qarules > summary svg.i { width: 14px; height: 14px; } .qarules[open] > summary svg.i { transform: rotate(90deg); }
.qarules > summary small { color: var(--text3); }
:is(.wb, [data-page="websites"]) .sample { display: block; margin-top: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--raise); color: var(--text); overflow-wrap: anywhere; }
.wlive .gline { margin: 0 0 12px; } .wlive .gline small { display: block; }
/* a domain's steps (liveSteps): one row each, its state as the icon's colour and a word; nothing in it moves */
.wlive .gline.wait { background: var(--wait-bg); } .wlive .gline.wait > svg.i { color: var(--wait); } .wlive .gline.bad { background: var(--bad-bg); } .wlive .gline.bad > svg.i { color: var(--bad); }
.dsteps { list-style: none; margin: 0 0 12px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.dsteps li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 6px 12px; align-items: start; padding: 10px 16px; }
.dsteps li + li { border-top: 1px solid var(--line); }
.dsteps li > svg.i { margin-top: 2px; color: var(--text3); } .dsteps .done > svg.i { color: var(--ok); } .dsteps .working > svg.i { color: var(--wait); } .dsteps .failed > svg.i { color: var(--bad); }
.dsteps p { margin: 0; font-size: 13.5px; line-height: 1.45; } .dsteps b { font-weight: 600; color: var(--head); } .dsteps .waiting b { color: var(--text2); }
.dsteps small { display: block; font-size: 13px; color: var(--text2); overflow-wrap: anywhere; } .dsteps .failed small { color: var(--bad-ink); }
.dsteps code { display: inline-block; margin-top: 5px; padding: 2px 8px; border-radius: 6px; background: var(--chip); font: 13px var(--mono); overflow-wrap: anywhere; }
.dsteps .r { display: flex; align-items: center; gap: 8px; }
.doms .tr { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; }
.dform { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.dsearch { flex: 0 1 420px; margin: 0; }
.wlive .hint { margin: -4px 0 0; } .wlive .doms + .hint { margin-top: 10px; }
/* the API keys an owner sets (Admin, Server): what each is for, whether it is set, and its one field; the field above
   finds a key, and its empty line says nothing matched */
.keys-find { max-width: 320px; margin: 0 0 10px; }
.keys-none { margin: 0 0 10px; font-size: 13px; color: var(--text3); }
.apikeys .tr { grid-template-columns: minmax(0, 1fr) auto minmax(0, 300px) auto; }
.apikeys .tr > span:first-child { display: grid; gap: 2px; } .apikeys small { font-size: 12.5px; color: var(--text3); }
.apikeys input { width: 100%; min-width: 0; height: 34px; padding: 0 11px; border: 1px solid var(--line2); border-radius: 9px; background: var(--bg); font: 13px var(--mono); color: var(--text); }
.apikeys input:focus-visible { outline: 2px solid var(--blue); outline-offset: 0; border-color: transparent; }
/* a sign-in's row: its Connect button stands where a key's field and Save stand; .hold is an unseen Save, so the row's
   columns are as wide as a key's (min-width 0 keeps the button's own width out of the Save column) */
.apikeys .tr > a.btn { grid-column: 3 / -1; grid-row: 1; justify-self: end; min-width: 0; } .apikeys .tr > .hold { grid-column: 4; grid-row: 1; visibility: hidden; }
/* a client's Podium under the Podium row: its locations' boxes under its name, Disconnect at the row's end */
.apikeys .podium > span:first-child { grid-column: 1 / 3; padding-left: 14px; border-left: 2px solid var(--line2); } .apikeys .podium > button { grid-column: 3 / -1; justify-self: end; }
.plocs { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 6px; }
.plocs label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; } .plocs input { width: 16px; height: 16px; margin: 0; accent-color: var(--blue); }

/* a phone: the page above, the column under it; the drawers cover the page */
@media (max-width: 760px) {
  [data-view="website"] .top .back { display: inline-grid; }
  .sites .tr { grid-template-columns: minmax(0, 1fr); gap: 6px; } .sites .sdom, .sites .slast, .sites .tr > svg.go { display: none; }
  .sstat { grid-auto-flow: column; justify-content: start; align-items: center; gap: 8px; padding-left: 66px; }
  .wb { grid-template-columns: minmax(0, 1fr); grid-template-rows: 50vh minmax(0, 1fr); }
  .wb .pv { grid-row: 1; } .wb .wcol { grid-row: 2; border: 0; border-top: 1px solid var(--line); }
  /* the phone's bar: the tools as icons (each named by its aria-label), then the site's state and Publish on a line of
     their own; the top bar drops its state pill, so the client's name keeps the room */
  .pvbar .pvpage, .pvbar .pvsep { display: none; } .pvbar .tool { padding: 0 6px; } .pvbar .tool span { display: none; }
  .pvbar { flex-wrap: wrap; row-gap: 6px; padding: 6px 8px; } .pvbar > .seg { margin-right: 4px; } .pvbar .grow { flex-basis: 100%; height: 0; }
  .pvbar .draft { flex: 1; } .slot .pill.sslot { display: none; }
  .wdraw { width: 100%; }
  .wchat .chat { padding: 14px 12px; } .wchat .composer { padding: 6px 10px 10px; } .wchat .empty.hello { margin-top: 0; }
  .slot .seg span { display: none; }  /* the views as icons, each named by its aria-label: the site's name keeps the room */
  .bycsm .sstat small { display: none; }
  .pvframe.phone { display: block; padding: 0; } .pvframe.phone iframe { width: 100%; border: 0; border-radius: 0; box-shadow: none; }  /* the phone is the frame */
  .wf, .wf.areas, .wf.rows fieldset { grid-template-columns: minmax(0, 1fr); }
  .wb.going { grid-template-rows: minmax(0, 1fr); }
  .ctwrap, .wcode { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .ctnav { display: flex; overflow-x: auto; padding: 8px; border-right: 0; border-bottom: 1px solid var(--line); } .ctnav h3 { display: none; } .ctnav button { flex: none; }
  .ctform { padding: 20px 14px 32px; } .cthead { flex-direction: column; gap: 6px; } .cthead .saved { margin: 0; }
  .ctform .hr { grid-template-columns: minmax(0, 1fr) 92px 92px 22px; gap: 8px; padding: 8px 12px; }
  .ctree { max-height: 32vh; border-right: 0; border-bottom: 1px solid var(--line); }
  .wlive .tr, .doms .tr, .apikeys .tr { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .apikeys .tr > a.btn { grid-column: auto; grid-row: auto; justify-self: stretch; justify-content: center; } .apikeys .tr > .hold { display: none; }
  .apikeys .podium > span:first-child, .apikeys .podium > button { grid-column: auto; justify-self: stretch; justify-content: center; } .plocs { flex-direction: column; }
  .wlive .tr .r { justify-items: start; text-align: left; } .wlive .tr .r:empty { display: none; }
  .wdone { flex-direction: column; } .wdone .wreview { width: auto; } .dsearch { flex-basis: 100%; }
  .dsteps li { grid-template-columns: 18px minmax(0, 1fr); padding-inline: 12px; } .dsteps .r { grid-column: 2; flex-wrap: wrap; }
}

/* Content → Redirects: one row per redirect, old path → new path, 301 */
.rds { display: grid; gap: 8px; max-width: 900px; }
.rd { display: grid; grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr) 44px 112px; gap: 10px; align-items: center; }
.rd input { font: 13px var(--mono); }
.rd .rd-to { display: grid; place-items: center; color: var(--text3); } .rd .rd-to svg.i { width: 14px; height: 14px; }
.rd .pill { justify-self: center; } .rd .btn { justify-self: stretch; justify-content: center; }
.rd.head { font-size: 12px; color: var(--text3); text-transform: uppercase; letter-spacing: .04em; padding: 0 2px; }
.rd.add { margin-top: 6px; padding-top: 14px; border-top: 1px dashed var(--line); }
.rd-none { margin: 4px 2px 6px; color: var(--text3); font-size: 13px; }
.rd-err { min-height: 20px; margin: 10px 2px 0; color: var(--bad-ink); font-size: 13px; display: flex; gap: 6px; align-items: center; } .rd-err svg.i { width: 15px; height: 15px; }
@media (max-width: 700px) { .rd { grid-template-columns: 1fr 16px 1fr; } .rd .pill, .rd > span:nth-child(4) { display: none; } .rd .btn { grid-column: 1 / -1; } }
/* Go live: a domain a CSM requested, and the client's launch */
.dreq .wsure { display: flex; gap: 8px; }

.ctform .wf label.ctcheck { display: flex; align-items: flex-start; gap: 10px; color: var(--text); }
.ctform .wf label.ctcheck input { flex: none; width: 16px; height: 16px; margin-top: 1px; padding: 0; accent-color: var(--blue); }
.ctform .wf label.ctcheck small { display: block; margin-top: 2px; color: var(--text2); }

/* static/roster.css */
/* The Clients tree's Roster (roster.js): the panel's own rows, tiles and tokens (app.css); only what the board, a
   client's drawer and a form's box add is here. Every class stands under .ro: the page, and each layer over it. */
.page[data-page="roster"] { max-width: 1340px; padding: 24px 28px 80px; }
[data-page="roster"] > .ro { container-type: inline-size; }  /* the board follows the room it has, not the window's width */
.ro, .csp-tg { --violet: #5b3fc4; --orange: #a8480a; --magenta: #9a2fa3; --indigo: #3d4fc9; --pod: #1d6fd1; --onb: #6d4fd8; --offb: #5e6884; }
:root[data-theme="dark"] :is(.ro, .csp-tg) { --violet: #a78bfa; --orange: #ff8a3d; --magenta: #d46ad8; --indigo: #8b9aff; }
/* the toolbar (app.css .tb): row 1 the scope's bar (pages/scope.css), then Filter, Group and Sort, Read again at its
   end; it holds one line at 1440 px with the sidebar open: the search gives way first, the CSM and the pod at 132 px */
.ro-tb.tb > .scope { flex-wrap: nowrap; } .ro-tb.tb > .scope .scope-picks { flex: 0 0 auto; }
.ro-tb.tb > .scope .scope-find { flex: 0 1 240px; min-width: 180px; } .ro-tb.tb > .scope .scope-picks select.input { flex: 0 1 132px; width: 132px; min-width: 112px; }
/* Filter, Group, Sort and the view keep one row with Read again: a row too short for that beside the scope's bar
   leaves them whole on row 2 (app.css, .tb), never one pick a row */
.ro-tb.tb > .tb-end { min-width: min(100%, 440px); }
.ro-tb select.input { width: auto; max-width: 260px; } .ro-tb .tb-s select.ro-fsort { field-sizing: content; }  /* Group and Sort as wide as their pick */
/* kept only for gbpcreate.js:142 until the GBP lane moves it to btn ghost sm */
.ro-again { display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; padding: 1px 7px 1px 5px; border-radius: 6px; color: var(--blue); font-weight: 500; vertical-align: baseline; transition: background var(--t-fast); }
.ro-again:hover:not(:disabled) { background: var(--hover); } .ro-again svg.i { width: 13px; height: 13px; }
.ro .gline { margin-top: 18px; } .ro .gline a { font-weight: 500; }
/* the board's five tiles and a client's Google Ads tiles (app.css .tiles): figures in ink, a state on its dot */
.ro-tiles { margin: 0 0 4px; } .ro-tiles .tile { display: grid; gap: 2px; align-content: start; }
/* the board's own row holds five: five across on a wide screen, and the fifth spans the row where they pair */
@media (min-width: 1101px) { .tiles.ro-five { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .ro-five > :last-child { grid-column: 1 / -1; } }
.ro-tiles .tile-d .dot { display: inline-block; margin-right: 6px; vertical-align: 1px; } .ro-tiles .tile-d b { color: var(--text); font-weight: 600; }
/* Sales (sales.js, class "ro sa") still draws the joined strip */
.ro .stats { margin: 18px 0 4px; } .ro .stat small { color: var(--text3); font-size: var(--fs-caption); } .ro .stat .v.bad { color: var(--bad); }
.ro .stat .v.ok { color: var(--ok); } .ro .stat .v.warn { color: var(--warn); } .ro .stat .v.muted { color: var(--text3); }
.ro .ph-act > .primary { white-space: nowrap; }
.ro .empty { margin-top: 22px; }

/* a group: its tag as ClickUp names it, its count, and the arrow that folds it (down while open) */
.ro .gh { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; padding: 22px 2px 10px; }
.ro .gh svg.i { width: 14px; height: 14px; color: var(--text3); flex: none; transform: rotate(90deg); transition: transform var(--t-fast); } .ro .gh[aria-expanded="false"] svg.i { transform: none; }
.ro .gh:hover svg.i { color: var(--text); }
.ro .gtag { font-weight: 700; font-size: var(--fs-caption); line-height: 1; letter-spacing: .05em; padding: 5px 9px; border-radius: var(--r-sm); color: #fff; background: var(--pod); white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }  /* ClickUp's words: cut before the count leaves */
.ro .gtag.onb { background: var(--onb); } .ro .gtag.off { background: var(--offb); }
/* on the board and in a client's drawer the group's tag is a quiet label: the ring beside a client carries its hue */
.ro:not(.sa) .gtag, .ro:not(.sa) .gtag:is(.onb, .off) { padding: 0; border-radius: 0; background: none; color: var(--head); font-size: var(--fs-caption); letter-spacing: .08em; }
.ro:not(.sa) .gtag.off { color: var(--text3); }
.ro .gh .cn { font: 12px var(--mono); color: var(--text3); flex: none; }
/* the board's group is the kit's group heading (app_frame.css, .label): its hue's dot, as its clients' rings, its
   name, its count, the arrow at its end. The Sales pages' folds (.sa) keep the form above */
.ro .gh.label { gap: 8px; margin: 10px 0 4px; padding: 12px 10px 6px; }
.ro .gh-pod::before { background: var(--pod); } .ro .gh-onb::before { background: var(--onb); } .ro .gh-off::before { background: var(--offb); }
.ro .gh.label svg.i { width: 12px; height: 12px; margin-left: auto; transform: none; } .ro .gh.label[aria-expanded="true"] svg.i { transform: rotate(90deg); }
.ro .gh.label .cn { font: 500 var(--fs-caption) var(--sans); }
.ro-ghead .gh.label svg.i { margin-left: 0; }
/* a pod's head also holds its CSM's control, after its count; the head's whole line still folds the pod */
.ro-ghead { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 14px; cursor: pointer; } .ro-ghead .gh { width: auto; flex: 0 1 auto; }
.ro-ghead:hover .gh svg.i { color: var(--text); } .ro-ghead:not([data-ro-fold]) { cursor: default; }
.ro-ghead .ro-csm { margin-bottom: 6px; min-width: 0; }
.ro-gavg { margin: 0 2px 12px auto; color: var(--text3); font-size: var(--fs-small); white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; } .ro-gavg b { color: var(--text); font-family: var(--mono); }
.ro-gavg .dot { display: inline-block; margin: 0 5px 0 4px; vertical-align: 1px; }

/* A CSM's control (roCsm): the panel's accounts in one pill, led by the chosen one's initials. With none chosen it
   reads "Not set", in the quieter ink. The select is the whole pill, so a click anywhere on it opens the choices. */
.ro-csm { display: inline-flex; align-items: center; gap: 8px; cursor: default; }
.ro-csm small { font-weight: 700; font-size: var(--fs-caption); letter-spacing: .08em; text-transform: uppercase; color: var(--text3); }
.ro-pick { position: relative; display: inline-flex; align-items: center; height: 28px; min-width: 0; border: 1px solid var(--line2); border-radius: var(--r-pill); background: var(--raise); color: var(--text); font-size: var(--fs-small); font-weight: 500; transition: background var(--t-fast), border-color var(--t-fast); }
.ro-pick:hover { background: var(--hover); border-color: var(--text3); } .ro-pick.nil { color: var(--text2); }
.ro-pick > .av, .ro-pick > svg.i { position: absolute; pointer-events: none; }
.ro .ro-pick > .av { left: 3px; width: 20px; height: 20px; font-size: 9px; } .ro-pick > svg.i:first-child { left: 9px; width: 14px; height: 14px; color: var(--text3); }
.ro-pick > svg.i:last-child { right: 9px; width: 12px; height: 12px; color: var(--text3); transform: rotate(90deg); }
.ro-pick select { appearance: none; field-sizing: content; height: 100%; min-width: 0; max-width: min(250px, 44vw); padding: 0 27px 0 29px; border: 0; border-radius: var(--r-pill); background: transparent; font: inherit; color: inherit; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ro-pick select:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; } .ro-pick option { background: var(--raise); color: var(--text); font-weight: 400; }

/* the board's rows: twelve columns, as his: the six fields and the four after them (package, leads, health, CSM)
   inside .cells, which stands in the row's own grid while the page is wide enough for it */
.ro .bd .tr { grid-template-columns: minmax(200px, 1.5fr) 76px minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .95fr) 88px 90px 84px 72px; gap: 8px; min-height: var(--row-h); padding: 6px 14px; font-size: var(--fs-small); }
.ro .bd .cells { display: contents; } .ro .bd .cells > span { min-width: 0; }
.ro .tr.head { font-weight: 600; font-size: var(--fs-caption); color: var(--text3); min-height: 0; padding: 10px 14px; }
.ro a.tr { color: inherit; text-decoration: none; transition: background var(--t-fast); } .ro a.tr:hover { background: var(--hover); } .ro a.tr[aria-current] { background: var(--sel); }
.ro a.tr:focus-visible { outline-offset: -2px; border-radius: 0; }
.ro .nm { display: flex; align-items: center; gap: 9px; min-width: 0; } .ro .nm > span:last-child { min-width: 0; }
.ro .nm b { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; font-weight: 600; line-height: 1.3; overflow: hidden; overflow-wrap: anywhere; }  /* a long name takes a second line before it is cut */
.ro .nm small { display: block; color: var(--text3); font-size: var(--fs-caption); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 17px; }
/* the contact the search found the client by (roWhy), over its city: the name in the body's ink */
.ro small.ro-why { display: block; color: var(--text3); font-size: var(--fs-caption); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ro small.ro-why b { display: inline; font-weight: 600; color: var(--text2); }
.ro .ring { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--pod); flex: none; } .ro .ring.onb { border: 2px dashed var(--onb); } .ro .ring.off { border-color: var(--text3); background: var(--text3); }
.ro .prog { display: flex; align-items: center; gap: 7px; font: 11.5px var(--mono); color: var(--text3); }
.ro .prog i { flex: 1; height: 5px; border-radius: 5px; background: var(--chip); overflow: hidden; } .ro .prog i::after { content: ""; display: block; height: 100%; width: var(--p); background: var(--text2); border-radius: 5px; } .ro .prog.done i::after { background: var(--ok); }
/* a field's value: one tag in its option's hue, read only, by the .pill recipe of app.css: the hue (--tc) at
   --chip-mix for the fill, its ink (--ti) for the words, led by a dot. The four state hues take app.css's inks */
.ro .tg { --tc: var(--text3); --ti: var(--tc); display: inline-block; max-width: 100%; font-size: var(--fs-caption); font-weight: 600; line-height: 22px; padding: 0 10px 0 9px; border-radius: var(--r-pill); color: var(--ti); background: color-mix(in srgb, var(--tc) var(--chip-mix), transparent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.ro .tg::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
@container (min-width: 861px) { .ro .bd .tr .tg::before { content: none; } }  /* the board's wide rows: the hue's fill carries the state; the phone list and the drawer keep the dot */
/* a status longer than its column takes a second line, never a cut ("Live · Signal House", "Failed SMS bill") */
@container (min-width: 641px) { .ro .bd .cells .tg { white-space: normal; text-wrap: balance; line-height: 16px; padding-block: 3px; border-radius: 11px; } }
.ro .h-green { --tc: var(--ok); --ti: var(--ok-ink); } .ro .h-yellow { --tc: var(--warn); --ti: var(--warn-ink); } .ro .h-red { --tc: var(--bad); --ti: var(--bad-ink); } .ro .h-blue { --tc: var(--wait); --ti: var(--wait-ink); } .ro .h-violet { --tc: var(--violet); } .ro .h-orange { --tc: var(--orange); } .ro .h-magenta { --tc: var(--magenta); } .ro .h-indigo { --tc: var(--indigo); }
.ro .pkg { font-size: var(--fs-caption); font-weight: 600; color: var(--indigo); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ro .who { display: flex; align-items: center; gap: 6px; color: var(--text2); font-size: var(--fs-small); min-width: 0; }
.ro .who > span:last-child { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ro .av { width: 22px; height: 22px; display: grid; font: 700 9.5px var(--sans); }
/* a status's control: its tag, which opens ClickUp's options under it; faded while ClickUp has not answered */
.ro-set { display: inline-flex; max-width: 100%; border-radius: var(--r-pill); cursor: pointer; transition: opacity var(--t-fast); }
/* A status tag that opens a menu carries a chevron, drawn inside its padding so the label keeps its ellipsis */
/* The chevron shows on hover and focus, and always on a touch screen. An unset status reads as an empty cell: a quiet
   dash, which grows its edge and its chevron under the pointer or the keyboard */
.ro-set .tg::after { content: ''; position: absolute; right: 9px; top: 50%; width: 4px; height: 4px; margin-top: -4px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); opacity: 0; transition: opacity var(--t-fast); }
.ro-set .tg { position: relative; padding-right: 8px; transition: background var(--t-fast), border-color var(--t-fast); } .ro-set:hover .tg { background: color-mix(in srgb, var(--tc) 18%, transparent); }
.ro-set:is(:hover, :focus-visible) .tg { padding-right: 21px; } .ro-set:is(:hover, :focus-visible) .tg::after { opacity: .8; }  /* the chevron's room opens with it: the pill's right edge moves, the row does not */
@media (pointer: coarse) { .ro-set .tg { padding-right: 21px; } .ro-set .tg::after { opacity: .8; } }
/* on a touch screen a status's tag keeps its 22 px pill and the row its rhythm; an unseen area takes the finger, as
   high as the tags stand apart (28 px), so no area reaches the tag above */
@media (pointer: coarse) { .ro-set { position: relative; } .ro-set::after { content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 40px); height: 28px; transform: translate(-50%, -50%); } }
.ro-set:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; } .ro-set.busy { opacity: .5; cursor: progress; }
.ro .tg.h-none { line-height: 20px; border: 1px solid transparent; background: transparent; color: var(--text3); font-weight: 400; } .ro .tg.h-none::before { content: none; }
.ro-set:is(:hover, :focus-visible) .tg.h-none { border-color: var(--line2); background: var(--raise); color: var(--text2); }
.ro-opts { position: fixed; z-index: 40; display: grid; gap: 1px; min-width: 190px; max-height: 340px; overflow: auto; padding: 5px; background: var(--raise); border: 1px solid var(--line2); border-radius: 10px; box-shadow: var(--shadow); }
.ro-opts button { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 5px 7px; border-radius: 7px; } .ro-opts button:hover, .ro-opts button:focus-visible { background: var(--hover); outline: 0; }
.ro-opts svg.i { width: 14px; height: 14px; color: var(--ok); flex: none; }
/* leads in 7 and 30 days, red under the goals; health: the score in its label's hue, as his chip */
.ro .lds { display: inline-flex; gap: 3px; font: 12.5px var(--mono); } .ro .lds i { font-style: normal; color: var(--text3); } .ro .lds b { font-weight: 600; } .ro .down { color: var(--bad); }
.ro .hc { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 3px 10px 3px 3px; border-radius: var(--r-pill); font-size: var(--fs-caption); font-weight: 600; color: var(--ti, var(--text3)); white-space: nowrap; overflow: hidden;
  background: color-mix(in srgb, var(--tc, var(--text3)) var(--chip-mix), transparent); }
.ro .hc b { background: color-mix(in srgb, var(--tc, var(--text3)) 16%, transparent); color: inherit; border-radius: var(--r-pill); padding: 0 6px; font: 700 11px/16px var(--mono); }
/* the head's columns sort the rows (roHd): each a button, its arrow while it sorts */
.ro .tr.head > span, .ro .tr.head .cells > span { min-width: 0; }
.ro .tr.head button { display: inline-flex; align-items: center; gap: 3px; max-width: calc(100% + 12px); margin: -4px -6px; padding: 4px 6px; border-radius: var(--r-sm); font: inherit; color: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background var(--t-fast), color var(--t-fast); }
/* the label sits in its own span: a head wider than its column wraps to a second line ("DBR / campaign"), and a word
   wider than the column ends in "…". A flex button's bare text takes neither, so it ran into the next column */
.ro .tr.head button > span { min-width: 0; white-space: normal; text-wrap: balance; text-align: left; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; }
.ro .tr.head button:hover, .ro .tr.head .on > button { color: var(--head); } .ro .tr.head button:hover { background: var(--hover); } .ro .tr.head button i { font-style: normal; flex: none; }
/* the tiles that are also filters: a press marks the one set */
.ro-tiles .ro-tile { text-align: left; font: inherit; color: inherit; cursor: pointer; transition: background var(--t-fast), box-shadow var(--t-fast); }
.ro-tiles .ro-tile:hover { background: var(--hover); } .ro-tiles .ro-tile[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--head); }
.ro .gtag.by { color: var(--head); }
/* less room (a laptop, or the left sidebar open): Package and Leads leave the row; Health and the CSM stay. A
   client's drawer holds them all */
@container (max-width: 1080px) {
  .ro .bd .tr { grid-template-columns: minmax(170px, 1.35fr) 76px minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .95fr) 86px 72px; }
  .ro .bd .cells > .pkg, .ro .bd .cells > .lc, .ro .tr.head .cells > span:is(:nth-child(7), :nth-child(8)) { display: none; }
}
/* a narrow laptop: a table still, of what a person scans: the client, its stage, call status, A2P, SMS rebilling and health */
@container (min-width: 641px) and (max-width: 860px) {
  .ro .bd .tr { grid-template-columns: minmax(150px, 1.4fr) repeat(4, minmax(0, 1fr)) 82px; }
  .ro .bd .tr > .prog, .ro .tr.head > span:nth-child(2), .ro .bd .cells > :is(:nth-child(3), :nth-child(5), :nth-child(10)) { display: none; }
}
/* narrower still (a phone): a row is the client and its progress, with its set fields under them, each named */
@container (max-width: 640px) {
  .ro .tr.head { display: none; }
  .ro .bd .tr { grid-template-columns: minmax(0, 1fr) 92px; gap: 8px 10px; padding: 11px 14px; }
  .ro .bd .cells { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 12px; }
  .ro .bd .cells > span, .ro .bd .cells > .pkg, .ro .bd .cells > .lc, .ro .bd .cells > .csm { display: inline-flex; align-items: center; gap: 5px; }
  .ro .bd .cells > .nil { display: none; }
  .ro .bd .cells > span::before { content: attr(data-l); font-size: var(--fs-caption); font-weight: 400; color: var(--text3); }
}

/* A client: the drawer over the board, from the window's top; under the top bar where one stands, by the bar's own
   height (roster.js, roTop). Its layer and its box come in once. */
.ro-scrim { position: fixed; inset: 0; z-index: 20; display: flex; justify-content: flex-end; background: rgba(3, 7, 20, .55); }
.ro-drawer { width: min(980px, 100%); height: 100%; overflow: auto; padding: 18px 26px 40px; background: var(--bg); border-left: 1px solid var(--line2); box-shadow: var(--shadow); outline: 0; }
.ro .way { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.ro .way > a:first-child { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px 3px 2px; border-radius: 7px; color: var(--text3); font-size: var(--fs-small); text-decoration: none; transition: background var(--t-fast), color var(--t-fast); }
.ro .way > a:first-child:hover { background: var(--hover); color: var(--text); }
.ro .chead { display: flex; gap: 14px; align-items: center; }
.ro .chead h2 { margin: 0 0 4px; font: 800 23px/1.2 var(--title); letter-spacing: -0.03em; color: var(--head); overflow-wrap: anywhere; text-wrap: balance; }
/* the name's pencil (roName): beside the name, always shown, muted until pointed at; the box it opens, and the name faded while ClickUp takes it */
.ro .chead h2 .ro-renbtn { display: inline-grid; place-items: center; width: 28px; height: 28px; margin: -4px 0 0 6px; vertical-align: middle; border-radius: 7px; color: var(--text3); transition: background var(--t-fast), color var(--t-fast); }
.ro .chead h2 .ro-renbtn:hover { background: var(--hover); color: var(--text); } .ro .chead h2 .ro-renbtn svg.i { width: 15px; height: 15px; }
.ro .chead h2 .ro-renbtn:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.ro .chead h2.busy { opacity: .5; cursor: progress; }
.ro-renbox { display: grid; gap: 4px; margin-bottom: 6px; } .ro-renbox small { color: var(--text3); font-size: var(--fs-caption); } .ro-renbox small.ro-bad { color: var(--bad); }
.ro .chead .ro-rename { width: min(440px, 52vw); height: 38px; font: 800 20px/1.2 var(--title); letter-spacing: -0.02em; color: var(--head); } .ro .chead .ro-rename[aria-invalid="true"] { border-color: var(--bad); }
.ro-sub { display: flex; flex-wrap: wrap; gap: 6px 9px; align-items: center; color: var(--text3); font-size: var(--fs-small); }
.ro .chead .av { width: 50px; height: 50px; border-radius: 13px; font-size: 17px; }
/* the classes a shared sheet already names (.act, .sub) carry the page's prefix here */
.ro-act { margin-left: auto; align-self: flex-start; position: relative; flex: none; }
.ro-act .primary svg.i:last-child { transform: rotate(90deg); transition: transform var(--t-fast); } .ro-act .primary[aria-expanded="true"] svg.i:last-child { transform: rotate(-90deg); }
.ro .amenu { position: absolute; right: 0; top: 42px; width: min(310px, calc(100vw - 32px)); z-index: 5; display: grid; padding: 6px; background: var(--raise); border: 1px solid var(--line2); border-radius: 12px; box-shadow: var(--shadow); }
.ro .amenu button { display: flex; gap: 10px; align-items: flex-start; text-align: left; padding: 8px 10px; border-radius: var(--r-ctl); transition: background var(--t-fast); } .ro .amenu button:hover { background: var(--hover); }
.ro .amenu svg.i { margin-top: 2px; color: var(--blue); } .ro .amenu b { display: block; font-weight: 600; } .ro .amenu small { color: var(--text3); font-size: var(--fs-caption); }
.ro .amenu .del { border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; margin-top: 4px; } .ro .amenu .del b, .ro .amenu .del svg.i { color: var(--bad); }
.ro .amenu .rm b, .ro .amenu .rm svg.i { color: var(--bad); }  /* an owner's Delete client, under Offboard client */
/* A row drags to another place of its group, or to another pod's head or rows (roDropped, order.js): while it does,
   every pod that takes it is outlined, and the one under the pointer takes a tint */
.ro a.tr[draggable="true"] { -webkit-user-drag: element; }
body.order-dragging .ro [data-ro-drop] { outline: 1px dashed var(--line); outline-offset: 2px; border-radius: 10px; }
body.order-dragging .ro [data-ro-drop].order-over { outline: 2px solid var(--text3); background: var(--sel); }
.ro-addpod { display: inline-flex; align-items: center; gap: 8px; margin: 18px 2px 0; padding: 8px 14px; border: 1px dashed var(--line); border-radius: 10px; color: var(--text2); font-weight: 600; }
.ro-addpod:hover { color: var(--text); border-color: var(--text3); }
/* The Board view (roBoard): columns side by side that scroll sideways; on a phone one column fills the screen and
   snaps, so one shows at a time. A column scrolls its own cards, so every column's head stays in sight. */
.ro-board { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; overscroll-behavior-x: contain; }
.ro-bcol { flex: 0 0 300px; display: flex; flex-direction: column; min-width: 0; max-height: max(440px, calc(100dvh - 230px)); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); scroll-snap-align: start; }
.ro-colh { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 12px 12px 8px 14px; }
.ro-colh .cn { font: 12px var(--mono); color: var(--text3); flex: none; }
.ro-colm { margin-left: auto; color: var(--text3); font-size: var(--fs-caption); white-space: nowrap; } .ro-colm b { color: var(--text); font-family: var(--mono); } .ro-colm .dot { display: inline-block; margin: 0 4px; vertical-align: 1px; }
.ro-colx { margin-left: auto; width: 26px; height: 26px; } .ro-colx svg.i { width: 13px; height: 13px; transform: rotate(90deg); }
.ro-cards { display: grid; gap: 8px; padding: 2px 8px 10px; overflow-y: auto; min-height: 64px; }
.ro-colnone { margin: 0; padding: 18px 8px; border: 1px dashed var(--line); border-radius: 10px; color: var(--text3); font-size: var(--fs-small); text-align: center; }
.ro-card { display: grid; gap: 4px; padding: 10px 12px 11px; background: var(--raise); border-radius: 10px; box-shadow: var(--card); color: inherit; text-decoration: none; font-size: var(--fs-small); transition: box-shadow var(--t-fast); }
.ro-card:hover { box-shadow: 0 0 0 1px var(--line2), var(--card); } .ro-card[aria-current] { box-shadow: 0 0 0 2px var(--blue), var(--card); }
.ro-card[draggable="true"] { cursor: grab; } .ro-card:focus-visible { outline-offset: 2px; }
.ro-cardh { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ro-cardh b { flex: 1; min-width: 0; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ro-cardh .tg { flex: 0 1 auto; max-width: 52%; }
.ro-card small { padding-left: 21px; color: var(--text3); font-size: var(--fs-caption); min-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ro-card .prog { padding-left: 21px; }
/* Offboarded folded: a narrow column, its name on its side, that opens by a click and takes a drop */
.ro-bcol.shut { flex: 0 0 44px; align-self: stretch; min-height: 220px; }
.ro-bcol.shut > button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 0; border-radius: inherit; color: var(--text3); font-size: var(--fs-caption); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ro-bcol.shut > button > span:last-child { writing-mode: vertical-rl; white-space: nowrap; }
.ro-bcol.shut:hover { border-color: var(--line2); } .ro-bcol.shut > button:hover { color: var(--text); }
body.order-dragging .ro .ro-bcol[data-ro-drop] { outline-offset: -1px; }
@container (max-width: 640px) {
  .ro-board { scroll-snap-type: x mandatory; gap: 10px; margin-right: -16px; padding-right: 16px; }
  .ro-bcol:not(.shut) { flex-basis: 86%; }
}
.ro-podpick { max-width: 220px; } .ro-podwas { display: block; margin-top: 4px; color: var(--text3); font-size: var(--fs-caption); }
.ro-gone p { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; flex: 1; } .ro-goner { display: inline-flex; align-items: center; gap: 6px; }
.ro-gone .ro-goneshut { margin-left: auto; flex: none; color: var(--text3); } .ro-gone .ro-goneshut:hover { color: var(--text); }
/* a client's stage: the row's circle is its control (a finger's target around 13 px), the drawer's tag the same */
.ro a.tr .ring[data-ro-ring] { position: relative; cursor: pointer; transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast); }
.ro a.tr .ring[data-ro-ring]::before { content: ''; position: absolute; inset: -8px; border-radius: 50%; }
/* a finger's area of 40 px, which grows toward the row's edge so the client's name keeps its own */
@media (pointer: coarse) { .ro a.tr .ring[data-ro-ring]::after { content: ''; position: absolute; left: -26px; top: 50%; width: 40px; height: 40px; transform: translateY(-50%); } }
.ro a.tr .ring[data-ro-ring]:hover, .ro a.tr .ring[data-ro-ring]:focus-visible { transform: scale(1.25); box-shadow: 0 0 0 3px var(--sel); outline: 0; }
.ro .ro-gpick { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; } .ro .ro-gpick svg.i { width: 12px; height: 12px; }
.ro-stages { min-width: 240px; } .ro-stages .ro-ophd { margin: 2px 7px 4px; color: var(--text3); font-size: var(--fs-caption); }
.ro-stages hr { border: 0; border-top: 1px solid var(--line); margin: 4px 2px; }
.ro-stages .ro-stg { display: flex; align-items: center; gap: 10px; text-align: left; } .ro-stages .ro-stg small { display: block; color: var(--text3); font-size: var(--fs-caption); }
.ro-stages button:disabled { opacity: .5; cursor: default; }
.ro-none { display: grid; justify-items: center; gap: 4px; padding-bottom: 24px; }
/* the drawer's tabs, under its head, as the owner's mock; the open one underlined */
.ro-tabs { margin: 20px 0; } .ro-tabs > [role="tab"] { height: 40px; flex: none; }  /* app.css .tabs; a drawer's tab is the drawer's main move, a finger's height */
/* Info: a narrow column of his three small cards beside the wide one */
.ro-info { display: grid; grid-template-columns: clamp(280px, 33%, 300px) minmax(0, 1fr); gap: 16px; align-items: start; }
.ro-col { display: grid; gap: 16px; min-width: 0; }
/* a card of the drawer: app.css's .card box, its head .card-h (roCard) */
.ro .ro-cd { --pad-y: 10px; gap: 0; min-width: 0; }  /* app.css .card; its rows stand at their own rhythm */
.ro-cd > .card-h { margin-bottom: 6px; } .ro-cd h3 svg.i { width: 16px; height: 16px; } .ro-cd h3 small { text-align: right; }
.ro .kv { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; padding: 4px 0; font-size: var(--fs-small); min-width: 0; }
.ro .kv > span:first-child { color: var(--text2); flex: none; } .ro .kv b { font-weight: 600; text-align: right; overflow-wrap: anywhere; } .ro .kv b small { font-weight: 400; color: var(--text3); }
.ro .kv a { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; font-weight: 500; min-width: 0; overflow-wrap: anywhere; } .ro .kv a:hover { text-decoration: underline; } .ro .kv a svg.i { width: 14px; height: 14px; }
.ro .kv .prog { flex: 0 1 120px; min-width: 56px; } .ro .mono { font-family: var(--mono); font-size: var(--fs-small); }
.ro .kv .ro-csm { margin: -2px 0; min-width: 0; }  /* a control stands in its row at the row's own height */
.ro .kv .ro-pick select { max-width: min(250px, 56vw); }
.ro .kv .ro-gbp { min-width: 0; text-align: right; } .ro .kv .ro-gbp a { white-space: nowrap; } .ro .kv .ro-gbp small { display: block; }  /* the GBP link, its state under it (roGbp) */
.ro-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
/* a source the panel does not read yet: what it is and where it plugs in */
.ro-off { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px dashed var(--line2); border-radius: 12px; color: var(--text2); font-size: var(--fs-small); }
.ro-cd .ro-off { margin: 8px 0 4px; } .ro-off svg.i { flex: none; margin-top: 1px; color: var(--text3); } .ro-off b { display: block; color: var(--text); margin-bottom: 2px; } .ro-off p { margin: 0; }
.ro-tab > .ro-off + .ro-off, .ro-tab > .ro-cd + .ro-off { margin-top: 16px; }
/* a box to type in (Add client, the Action menu's sheets) */
.ro-in { flex: 1; min-width: 180px; height: 30px; padding: 0 12px; border: 1px solid var(--line2); border-radius: var(--r-ctl); background: var(--raise); font-size: var(--fs-small); }
/* the Info tab's Offboarding card: its state beside the title, each step with its state and its line, then Undo */
.ro-doing .card-h { flex-wrap: wrap; row-gap: 4px; } .ro-doing .card-h .pill { margin-left: 8px; flex: none; }  /* a narrow card puts its note under the pill, never cuts the pill */
.ro-steps { list-style: none; margin: 8px 0 0; padding: 0; }
.ro-step { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: var(--fs-small); }
.ro-step p { grid-column: 1 / -1; margin: 0; color: var(--text2); overflow-wrap: anywhere; }
.ro-undo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: var(--fs-small); }
.ro-undo small { color: var(--text3); font-size: var(--fs-caption); }
/* the offboard form's list of what its submit does, above its one button; a failed step's words under it */
.ro .fown .fdoes { grid-column: 1 / -1; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: var(--fs-small); color: var(--text2); }
.ro .fdoes b { color: var(--text); } .ro .fdoes ul { display: grid; gap: 3px; margin: 6px 0 8px; padding-left: 18px; } .ro .fdoes p { margin: 0; }
.ro .fown p.ro-bad { grid-column: 1 / -1; margin: 0; }
/* Health & early results: his gauge and chip beside the early figures */
.ro-hgrid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; padding: 8px 0 6px; }
.ro-hs { display: grid; justify-items: center; gap: 6px; } .ro-hs .bg, .ro-hs .fg { fill: none; stroke-width: 8; } .ro-hs .bg { stroke: var(--line); } .ro-hs .fg { stroke: var(--tc); stroke-linecap: round; }
.ro-hs text { fill: var(--head); font: 800 22px var(--title); }
.ro-early { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 14px; } .ro-early > div > b i { font-style: normal; font-weight: 400; color: var(--text3); margin: 0 3px; } .ro-early > div { display: grid; gap: 3px; align-content: start; }
.ro-early span { color: var(--text2); font-size: var(--fs-small); } .ro-early > div > b { font: 700 21px var(--mono); color: var(--head); } .ro-early > div > b.down { color: var(--bad); } .ro-early small { color: var(--text3); font-size: var(--fs-caption); }
.ro-early .tg { justify-self: start; } .ro-hnote { margin: 6px 0; color: var(--text2); font-size: var(--fs-small); }
/* Website: the client's sites */
.ro .ro-sites .tr { grid-template-columns: minmax(0, 1.6fr) 56px 108px 150px 110px 140px; gap: 10px; padding: 10px 14px; font-size: var(--fs-small); }
.ro .ro-sites a { display: inline-flex; align-items: center; gap: 3px; text-decoration: none; font-weight: 500; white-space: nowrap; } .ro .ro-sites a svg.i { width: 14px; height: 14px; }
/* Google Ads: the window's switch, his tiles, the keywords and the account's log */
.ro-adhd { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; font-size: var(--fs-small); }
.ro-tab > .ro-tiles { margin: 0 0 16px; } .ro-tab > .ro-cd + .ro-cd { margin-top: 16px; }
.ro .ro-kw { border: 0; border-radius: 0; margin: 0 -16px -10px; }
.ro .ro-kw .tr { grid-template-columns: minmax(0, 1.6fr) 130px 76px 60px 56px 76px; gap: 10px; padding: 9px 16px; font-size: var(--fs-small); } .ro .ro-kw .tr.head { white-space: nowrap; }
.ro .ro-kw b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ro .ro-kw .prog i::after { background: var(--blue); }
.ro-bad { color: var(--bad); font-size: var(--fs-small); font-weight: 600; }
/* the strategy note (roAdsNote): the review's words first, then what waits, then its one edit */
.ro-adnote .ro-adtext p { margin: 0 0 8px; color: var(--text); line-height: 1.55; max-width: 72ch; } .ro-adnote .ro-adtext p.muted { color: var(--text3); }
.ro-adwait { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--chip); font-size: var(--fs-small); color: var(--text2); }
.ro-adwait svg.i { width: 14px; height: 14px; color: var(--warn, var(--text3)); } .ro-adwait span { flex: 1; min-width: 200px; } .ro-adwait a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.ro-adbar { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.ro-adin { width: 100%; min-height: 128px; resize: vertical; font: inherit; line-height: 1.55; }
.ro-adlog h4 { margin: 6px 0 4px; font-weight: 700; font-size: var(--fs-caption); letter-spacing: .08em; text-transform: uppercase; color: var(--text3); }
/* the Activity tab's box and list are pages/activity.css's */
/* the Google Ads tab's two lists (roAds in roster.js): one entry per row, who and when under it */
.ro-ev { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; font-size: var(--fs-small); } .ro-ev + .ro-ev { border-top: 1px solid var(--line); }
.ro-ev p { margin: 0 0 2px; color: var(--text); overflow-wrap: anywhere; } .ro-ev small { color: var(--text3); font-size: var(--fs-caption); } .ro-ev .av { margin-top: 1px; }
.ro-in:focus-visible { outline: 2px solid var(--blue); outline-offset: 0; }
.ro-tab .empty { margin-top: 0; }

/* A form of the Action menu: GoHighLevel's own, framed in a box over the client */
.ro-modal { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(3, 7, 20, .6); }
.ro .fbox { position: relative; width: min(680px, calc(100% - 32px)); height: min(720px, calc(100% - 40px)); display: grid; grid-template-rows: auto auto minmax(0, 1fr); overflow: hidden; background: var(--raise); border: 1px solid var(--line2); border-radius: var(--r-card); box-shadow: var(--shadow); outline: 0; }
.ro .fhd { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--line); min-width: 0; }
.ro .fhd b { font: 800 15px/1.3 var(--title); letter-spacing: -.01em; color: var(--head); white-space: nowrap; } .ro .fhd span { flex: 1; min-width: 0; color: var(--text3); font-size: var(--fs-small); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* what the form does after its submit, said before anything is typed */
.ro .fnote { grid-row: 2; display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 18px; border-bottom: 1px solid var(--line); background: var(--chip); color: var(--text2); font-size: var(--fs-small); }
.ro .fnote svg.i { width: 14px; height: 14px; color: var(--text3); }
.ro .fwait { grid-area: 3 / 1; align-self: center; justify-self: center; color: var(--text3); font-size: var(--fs-small); } .ro .fbox.in .fwait { display: none; }
.ro .fbox iframe { grid-area: 3 / 1; width: 100%; height: 100%; border: 0; background: #fff; opacity: 0; } .ro .fbox.in iframe { opacity: 1; }
/* Add client: a short form in the same box */
.ro .fbox.ro-addbox { width: min(560px, calc(100% - 32px)); height: auto; max-height: calc(100% - 40px); overflow-y: auto; grid-template-rows: auto auto auto; }
.ro-addf { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 18px 18px 4px; }
.ro-addf .wide { grid-column: 1 / -1; } .ro-addf .field-l small { color: var(--text3); font-weight: 400; } .ro-addf .ro-bad { margin: 0; }
.ro .ffoot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 18px 16px; }
/* the drawer's extras: the report's way out beside Action, Calls (Fathom), the automations in Activity, the GBP card */
.ro-act { display: flex; gap: 8px; align-items: center; } .ro-act > .btn { text-decoration: none; }
.ro-calls { border-radius: var(--r-card); background: var(--raise); box-shadow: var(--card); overflow: hidden; }
.ro-call + .ro-call { border-top: 1px solid var(--line); }
.ro-callrow { display: grid; grid-template-columns: 16px 104px minmax(0, 1.3fr) minmax(0, 1fr) 150px; gap: 12px; align-items: center; width: 100%; padding: 11px 16px; border: 0; background: none; color: var(--text); font-size: var(--fs-small); text-align: left; cursor: pointer; transition: background var(--t-fast); }
.ro-callrow:hover { background: var(--hover); } .ro-callrow > svg.i { width: 14px; height: 14px; color: var(--text3); transition: transform var(--t-fast); }
.ro-call.open .ro-callrow > svg.i { transform: rotate(90deg); } .ro-callrow .mono { color: var(--text2); font-size: var(--fs-caption); }
.ro-callrow b, .ro-guests { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ro-guests { color: var(--text2); }
.ro-sum { padding: 2px 16px 14px 44px; font-size: var(--fs-small); color: var(--text2); } .ro-sum .md h2 { font-size: 13.5px; margin: 12px 0 4px; color: var(--head); }
.ro-sum > a { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-weight: 600; text-decoration: none; } .ro-sum > a svg.i { width: 14px; height: 14px; }
.ro-adhd .ro-bad { display: inline-flex; align-items: center; gap: 5px; } .ro-adhd .ro-bad svg.i, p.ro-bad svg.i { width: 14px; height: 14px; }
p.ro-bad { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; }
.activity-auto > .av { background: var(--chip); color: var(--text2); border: 1px solid var(--line2); } .activity-auto > .av svg.i { width: 13px; height: 13px; }
.ro-tab > .ro-cd { margin-top: 14px; } .ro-cd .kv small.muted { margin-left: 6px; }
.ro-live { margin: 10px 2px 0; font-size: var(--fs-small); } .ro-live a { font-weight: 500; overflow-wrap: anywhere; }  /* the Website tab's live site line, under the sites */
.ro-tab > .ro-live:first-child { display: flex; align-items: center; gap: 8px; margin: 2px 2px 0; } .ro-live > svg.i { flex: none; width: 15px; height: 15px; color: var(--text3); }
.ro-live a svg.i { width: 12px; height: 12px; margin-left: 3px; vertical-align: -1px; }
/* Next up (roNext): the next call, its form, what waits; one band under the head, above the tabs */
.ro-next { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: 16px 0 4px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.ro-nl, .ro-nw { display: inline-flex; align-items: center; gap: 10px; min-width: 0; } .ro-nl > svg.i, .ro-nw > svg.i { flex: none; width: 16px; height: 16px; color: var(--text3); }
.ro-nw > svg.i { color: var(--warn-ink); }
.ro-nl small, .ro-nw small { display: block; color: var(--text3); font-size: var(--fs-caption); }
.ro-nl b, .ro-nw b { font-size: var(--fs-small); font-weight: 600; color: var(--head); } .ro-nw b + b::before { content: " · "; color: var(--text3); font-weight: 400; }
.ro-next [data-ro-next] { margin-left: auto; } .ro-next .ro-nw { flex: 1 1 100%; } .ro-next .ro-nl + .ro-nw { flex: 0 1 auto; }
.ro-next .btn svg.i { width: 14px; height: 14px; }
/* Google Ads: the way to tie an account, and the keywords' Show all */
.ro-adtie { margin: 10px 2px 0; font-size: var(--fs-small); } .ro-adtie a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.ro-kwall { margin: 14px 0 0; }

@media (max-width: 760px) {
  .page[data-page="roster"] { padding: 20px 16px 40px; }
  /* a phone: the head's one line is the reading's age; the search takes a row, the picks and Read again the next */
  /* the title and its actions share a row, the age a whole line under them */
  [data-page="roster"] .ro > .ph { row-gap: var(--sp-1); align-items: center; } [data-page="roster"] .ro > .ph > div:first-child { display: contents; }
  [data-page="roster"] .ro > .ph h1 { flex: 1 1 0; min-width: 0; margin: 0; } [data-page="roster"] .ro > .ph p { order: 3; flex: 1 1 100%; } [data-page="roster"] .ro-what { display: none; }
  /* rule 6: the search on its row, the CSM and the pod on the next; then Filter, Group, Sort and List/Board, which
     wrap to a second row rather than scroll, so none waits off the edge; Read again at its right; the chips under them
     only while one is set */
  .ro-tb { margin-bottom: var(--sp-4); }
  .ro-tb.tb > .scope { flex-wrap: wrap; } .ro-tb.tb > .scope .scope-picks { flex: 1 1 100%; } .ro-tb.tb > .scope .scope-find { flex: 1 1 100%; width: auto; }
  .ro-tb.tb > .scope .scope-picks select.input { flex: 1 1 0; width: auto; }
  .ro-tb .tb-s { flex: 1 1 0; flex-wrap: wrap; overflow: visible; mask-image: none; row-gap: var(--sp-2); } .ro-tb .tb-meta { margin-left: 0; align-self: flex-start; }
  /* the four tiles: two by two, each label whole; their lines in the tip */
  .ro-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; } .ro-tiles .tile { padding: 8px 10px; } .ro-tiles .tile-d { display: none; }
  .ro-tiles .tile-l { font-size: var(--fs-caption); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ro-tiles .tile-v { font-size: 20px; }
  .ro-drawer { padding: 14px 16px 32px; border-left: 0; }
  .ro-tabs { -webkit-mask: linear-gradient(90deg, #000 82%, transparent); mask: linear-gradient(90deg, #000 82%, transparent); }  /* the strip's cut edge fades: more tabs wait to its right */
  .ro .chead { flex-wrap: wrap; } .ro .chead > div:nth-child(2) { flex: 1; min-width: 0; } .ro .chead h2 { font-size: 20px; }
  .ro-act { margin-left: 0; width: 100%; } .ro .amenu { right: auto; left: 0; }
  .ro-callrow { grid-template-columns: 16px 92px minmax(0, 1fr); } .ro-callrow > .ro-guests, .ro-callrow > .who { display: none; } .ro-sum { padding-left: 16px; }
  .ro-info, .ro-two { grid-template-columns: minmax(0, 1fr); }
  .ro .ro-sites .tr { grid-template-columns: minmax(0, 1fr) auto; } .ro .ro-sites .tr > :nth-child(n+2):not(a) { display: none; } .ro .ro-sites .tr.head { display: none; }
  .ro .ro-kw .tr { grid-template-columns: minmax(0, 1fr) 70px 50px 70px; } .ro .ro-kw .tr > :nth-child(2), .ro .ro-kw .tr > :nth-child(4) { display: none; }
  .ro .fbox { width: 100%; height: 100%; border-radius: 0; border: 0; }
  .ro-addf, .ro-hgrid { grid-template-columns: minmax(0, 1fr); } .ro-early { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Google Ads' head: the reading's age on its own line over the window switch; a card's sub-line under its title */
  .ro-adhd { flex-wrap: wrap; } .ro-adhd > .muted { flex: 1 1 100%; }
  .ro-cd > .card-h:has(small) { flex-wrap: wrap; } .ro-cd > .card-h small { flex-basis: 100%; margin-left: 0; }
  .ro-next { gap: 10px 14px; } .ro-next [data-ro-next] { margin-left: 0; }
  /* the Upsell sheet's target area: the box over its Save, the label on one line */
  .ro .farow .input { flex-basis: 100%; } .ro .fah small { flex-basis: 100%; }
}

/* The Action menu's sheets (ProjectManagement.md, Stage 5): whose form it is, what its submit starts, what the panel
   filled in; the Upsell's target area above the live form; the offboard form, the panel's own */
.ro .fbox { grid-template-rows: auto auto auto minmax(0, 1fr); height: min(780px, calc(100% - 40px)); }
.ro .fbox.own { height: auto; max-height: calc(100% - 40px); grid-template-rows: auto auto auto; }
.ro .fhd { align-items: flex-start; padding: 16px 14px 14px 22px; }
.ro .fhd .ftl { flex: 1; min-width: 0; display: grid; gap: 4px; }
.ro .fhd .ftl small { font-size: var(--fs-caption); font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ro .fhd .ftl b { display: flex; align-items: center; gap: 9px; font-size: 18px; white-space: normal; }
.ro .fhd .ftl b svg.i { flex: none; width: 17px; height: 17px; color: var(--text3); }
.ro .fmeta { grid-row: 2; display: grid; gap: 7px; padding: 12px 22px; border-bottom: 1px solid var(--line); background: var(--chip); }
.ro .fmeta p { display: flex; align-items: flex-start; gap: 9px; margin: 0; padding: 0; border: 0; background: none; color: var(--text2); font-size: var(--fs-small); line-height: 1.45; }
.ro .fmeta svg.i { flex: none; width: 14px; height: 14px; margin-top: 2px; color: var(--text3); }
.ro .fmeta .fstart { color: var(--text); font-weight: 500; } .ro .fmeta .fstart svg.i { color: var(--head); }
.ro .fmeta .fheld { color: var(--ok); } .ro .fmeta .fheld svg.i { color: var(--ok); }
.ro .farea { grid-row: 3; display: grid; gap: 9px; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.ro .fah { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ro .fah b { display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-small); color: var(--head); } .ro .fah b svg.i { width: 14px; height: 14px; color: var(--text3); }
.ro .fah small { flex: 1; color: var(--text3); font-size: var(--fs-caption); }
.ro .farow { display: flex; gap: 8px; flex-wrap: wrap; } .ro .farow .input { flex: 1 1 180px; width: auto; } .ro .farow .input.mi { flex: 0 0 96px; min-width: 0; }
.ro .fsaved { display: flex; align-items: center; gap: 7px; margin: 0; min-height: 18px; color: var(--text3); font-size: var(--fs-small); }
.ro .fsaved svg.i { width: 14px; height: 14px; color: var(--ok); } .ro .fsaved b { color: var(--text); font-weight: 600; }
.ro .fwait, .ro .fbox iframe { grid-area: 4 / 1; }
.ro .fown { grid-row: 3; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; padding: 18px 22px 0; }
.ro .fown .fld { grid-column: 1 / -1; display: grid; gap: 7px; } .ro .fown .fld.half { grid-column: 1; }
.ro .fown .fld > span:first-child { font-size: var(--fs-caption); font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--text3); }
.ro .fown .fsaved, .ro .fown .ffoot { grid-column: 1 / -1; } .ro .fown .ffoot { margin: 0 -22px; padding: 14px 22px 16px; border-top: 1px solid var(--line); }
.ro .ro-area { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 6px; }
.ro .ro-town { padding: 3px 10px; border-radius: var(--r-pill); background: var(--chip); border: 1px solid var(--line2); color: var(--text); font-size: var(--fs-small); font-weight: 500; }
.ro .ffoot .btn, .ro .ffoot .primary { white-space: nowrap; }
/* a phone: the sheet takes the whole screen, over the top bar, its own close at the corner; the actions wrap, never their words */
@media (max-width: 760px) {
  .ro .fown { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .ro-modal { z-index: 29; } .ro .fbox { height: 100%; }
  .ro .fbox.own { height: 100%; max-height: none; grid-template-rows: auto auto minmax(0, 1fr); overflow-y: auto; }
  .ro .fbox.ro-addbox { width: 100%; height: 100%; max-height: none; grid-template-rows: auto auto auto minmax(0, 1fr); }
  .ro .ffoot { flex-wrap: wrap; }
}

/* static/reviews.css */
/* The Clients tree's Reviews (reviews.js): the panel's own head, tiles, pills, buttons and notice lines (app.css,
   gbp.css); only what the table, Connect a shop's steps and a shop's drawer add is here. Every class of the page
   carries the prefix rv-, so no rule a shared sheet gives a short name (.tr, .act, .sub) lands on it. */
[data-page="reviews"] > .rv { container-type: inline-size; }  /* the page follows the room it has, not the window's width */
.rv .ph { align-items: flex-start; } .rv .ph p { max-width: 62ch; } .rv .ph-side { padding-top: 4px; }
.rv a.primary, .rv a.btn { text-decoration: none; } .rv .primary svg.i { width: 15px; height: 15px; margin-right: -2px; }
.rv [aria-busy="true"] { opacity: .6; cursor: progress; }
.rv .rv-tiles { margin: var(--sp-5) 0 0; }
.rv .gline { margin-top: 18px; } .rv .gline > div { flex: 1; min-width: 0; } .rv .gline p + p { margin-top: 6px; }
.rv .gline.rv-bad { background: var(--bad-bg); color: var(--bad-ink); } .rv .gline.rv-bad > svg.i { color: var(--bad); }
.rv .gline.rv-said { margin-top: 10px; padding: 10px 12px; font-size: 13px; align-items: flex-start; } .rv-said > svg.i { margin-top: 2px; }
.rv-foot { color: var(--text3); font-size: 12.5px; margin: 12px 2px 0; }
.rv-quiet { color: var(--blue); font-size: 13px; font-weight: 500; text-decoration: none; } .rv-quiet:hover { text-decoration: underline; }
.rv-err { display: flex; gap: 7px; align-items: flex-start; margin: 0; max-width: 520px; color: var(--bad-ink); font-size: var(--fs-caption); font-weight: 500; } .rv-err svg.i { width: 14px; height: 14px; margin-top: 2px; }
.rv-hint { display: flex; gap: 8px; align-items: flex-start; max-width: 60ch; } .rv-hint svg.i { width: 14px; height: 14px; margin-top: 2px; }

/* no shop: one box and one button */
.rv-hello { margin-top: 28px; }  /* it holds the panel's empty() (core.js) */

/* Pause, a switch: amber while the shop is paused. Its reach is wider than its track, for a finger. */
.rv-sw { position: relative; z-index: 1; flex: none; width: 34px; height: 20px; border-radius: 999px; background: var(--line2); transition: background var(--t-fast); }
.rv-sw::before { content: ""; position: absolute; inset: -12px -6px; }
.rv-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--text); transition: transform var(--t-fast) var(--ease), background var(--t-fast); }
.rv-sw[aria-checked="true"] { background: var(--amber); } .rv-sw[aria-checked="true"]::after { transform: translateX(14px); background: #1a1203; }
.rv-sw:focus-visible { border-radius: 999px; }

/* the table: a row per shop. The shop's name is the row's link, stretched over the row; the switch stands above it. */
.rv-tb { margin-top: 18px; border-radius: 14px; background: var(--raise); box-shadow: var(--card); overflow: hidden; }  /* app.css's card box */
.rv-tr { position: relative; display: grid; grid-template-columns: minmax(200px, 1.5fr) minmax(170px, 1.15fr) minmax(0, 1fr) minmax(0, .9fr) 58px 66px 52px 14px; gap: 14px; align-items: center; padding: 11px 16px; font-size: 13.5px; transition: background var(--t-fast); }
.rv-tr + .rv-tr { border-top: 1px solid var(--line); }
.rv-tr:not(.rv-thead):hover { background: var(--hover); } .rv-tr[aria-current] { background: var(--sel); }
.rv-tr:has(.rv-nm a:focus-visible) { outline: 2px solid var(--blue); outline-offset: -2px; }
.rv-thead { padding: 10px 16px; font-size: var(--fs-caption); font-weight: 600; color: var(--text3); }  /* as app.css's table head */
.rv-cells { display: contents; } .rv-cells > span { min-width: 0; }
.rv-nm { min-width: 0; } .rv-nm a { color: inherit; text-decoration: none; } .rv-nm a::after { content: ""; position: absolute; inset: 0; } .rv-nm a:focus-visible { outline: 0; }
.rv-nm b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-nm small, .rv-why { display: block; color: var(--text3); font-size: 12.5px; }
.rv-st { min-width: 0; } .rv-why { margin-top: 3px; color: var(--warn-ink); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.rv-num { text-align: right; } .rv-pz { display: flex; }
.rv-tr > svg.i { width: 14px; height: 14px; color: var(--text3); }
.rv-gone, .rv-gone .rv-nm b { color: var(--text3); font-weight: 500; }  /* a disconnected shop: its history, in the quieter ink */
/* less room (the left sidebar open on a laptop): Complete when leaves the row; the shop's drawer holds it */
@container (max-width: 860px) {
  .rv-tr { grid-template-columns: minmax(150px, 1.4fr) minmax(140px, 1.1fr) minmax(70px, .8fr) 52px 62px 46px 14px; gap: 12px; }
  .rv-cells > span:first-child { display: none; }
}
/* narrower still (a phone): a row is the shop and its switch, its status under them, then its cells, each named */
@container (max-width: 680px) {
  .rv-thead, .rv-tr > svg.i { display: none; }
  .rv-tr { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 13px 14px; }
  .rv-st, .rv-cells { grid-column: 1 / -1; } .rv-pz { grid-area: 1 / 2; }
  .rv-cells { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--text2); font-size: 13px; }
  .rv-cells > span, .rv-cells > span:first-child { display: inline-flex; gap: 5px; }
  .rv-cells > span::before { content: attr(data-l); color: var(--text3); }
}

/* fields: the key, a phone, the sending rules, a column */
.rv-field { display: grid; gap: 7px; min-width: 0; max-width: 520px; font-size: 12.5px; font-weight: 600; color: var(--text2); } .rv-field small { font-weight: 400; color: var(--text3); }
.rv-field input, .rv-line input, .rv-select select { width: 100%; min-width: 0; height: 38px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 9px; background: var(--bg); color: var(--text); font: 400 13.5px var(--sans); }
.rv-field input.rv-mono { font-family: var(--mono); font-size: 12.5px; }
.rv-field input::placeholder, .rv-line input::placeholder { color: var(--text3); }
.rv-field input:focus-visible, .rv-line input:focus-visible, .rv-select select:focus-visible { outline: 2px solid var(--blue); outline-offset: 0; border-color: transparent; }
.rv-field input[aria-invalid], .rv-line input[aria-invalid] { border-color: var(--bad); }
.rv-field input[aria-invalid]:focus-visible, .rv-line input[aria-invalid]:focus-visible { outline-color: var(--bad); }  /* a refused field stays red while focused, as app.css's --ring-bad */
.rv-select { position: relative; display: block; } .rv-select select { appearance: none; padding-right: 34px; cursor: pointer; } .rv-select option { background: var(--raise); color: var(--text); }
.rv-select > svg.i { position: absolute; right: 12px; top: 12px; width: 14px; height: 14px; color: var(--text3); transform: rotate(90deg); pointer-events: none; }
.rv-line { display: flex; gap: 8px; align-items: center; } .rv-line input { flex: 1; }
.rv-test { display: grid; gap: 10px; max-width: 520px; } .rv-test .hint, .rv-test .gline.rv-said { margin: 0; }
/* Paid in full, or a column: the panel's two-way choice (app.css, .seg), at a field's height */
.rv-seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; justify-self: start; } .rv-seg button { height: 32px; padding: 0 16px; font-size: 13px; justify-content: center; }

/* Connect a shop: the four steps beside the open one */
.rv-back { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px 3px 2px; border-radius: 7px; color: var(--text3); font-size: 13px; text-decoration: none; transition: background var(--t-fast), color var(--t-fast); }
.rv-back:hover { background: var(--hover); color: var(--text); } .rv-back svg.i { width: 14px; height: 14px; }
.rv-flow { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; margin-top: 22px; }
.rv-steps { display: grid; gap: 4px; align-content: start; margin: 0; padding: 0; list-style: none; }
.rv-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; color: var(--text3); }
.rv-steps span { min-width: 0; } .rv-steps b { display: block; font-weight: 600; font-size: 13.5px; } .rv-steps small { display: block; font-size: 12.5px; overflow-wrap: anywhere; }
.rv-steps i, .rv-steps li > svg.i { flex: none; width: 18px; height: 18px; margin-top: 1px; border: 1.5px solid var(--line2); border-radius: 50%; }
.rv-steps .rv-done { color: var(--text2); } .rv-steps .rv-done > svg.i { border: 0; padding: 3px; background: var(--ok-bg); color: var(--ok-ink); stroke-width: 2.6; }
.rv-steps .rv-now { background: var(--hover); color: var(--head); } .rv-steps .rv-now i { border: 5px solid var(--blue); }
.rv-step { display: grid; gap: 12px; justify-items: start; min-width: 0; } .rv-step > * { margin: 0; } .rv-step > .rv-field, .rv-step > .rv-test, .rv-step > .rv-find, .rv-step > .rv-subs { width: 100%; }
.rv-step h1 { font: 800 23px/1.2 var(--title); letter-spacing: -0.03em; color: var(--head); text-wrap: balance; }
/* The Software step's pick above its title: Shopmonkey's key, or QuickBooks Online's connect link */
.rv-soft { display: grid; gap: 6px; margin-bottom: 6px !important; font-size: 12.5px; font-weight: 600; color: var(--text2); }
.rv-step > .gline { width: 100%; max-width: 620px; margin: 0; }
.rv-step > p:first-of-type { max-width: 60ch; margin: -4px 0 10px; color: var(--text2); font-size: 14px; line-height: 1.55; } .rv-step > p b { color: var(--text); font-weight: 600; }
.rv-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 10px; } .rv-acts .btn { height: 36px; padding: 0 16px; }
.rv-step .rv-line .primary, .rv-step .rv-line .btn { height: 38px; padding: 0 16px; }  /* Send test stands as tall as its field */
.rv .search.rv-find { margin: 0; max-width: 520px; height: 38px; }
.rv-subs { max-width: 520px; max-height: min(392px, 46vh); overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.rv-subs .skeleton { margin: 14px; } .rv-subs .rv-err { padding: 14px; } .rv-none { margin: 0; padding: 18px 14px; color: var(--text3); font-size: 13px; }
.rv-sub { display: grid; grid-template-columns: minmax(0, 1fr) auto 14px; gap: 10px; align-items: center; width: 100%; padding: 10px 14px; text-align: left; font-size: 13.5px; transition: background var(--t-fast); }
.rv-sub + .rv-sub { border-top: 1px solid var(--line); } .rv-sub:hover:not(:disabled) { background: var(--hover); } .rv-sub[aria-current] { background: var(--sel); }
.rv-sub b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rv-sub small { color: var(--text3); font-size: 12.5px; } .rv-sub svg.i { width: 14px; height: 14px; color: var(--text3); }
.rv-sub:focus-visible { outline-offset: -2px; border-radius: 0; }
/* less room: the four steps in one line over the open one, each its mark and its name */
@container (max-width: 720px) {
  .rv-flow { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .rv-steps { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .rv-steps li { flex-direction: column; align-items: center; gap: 6px; padding: 8px 4px; text-align: center; } .rv-steps b { font-size: 12px; line-height: 1.3; text-wrap: balance; } .rv-steps small { display: none; }
}

/* A shop: the drawer over the table, under the top bar. Its layer and its box come in once. */
.rv-scrim { position: fixed; inset: 44px 0 0; z-index: 20; display: flex; justify-content: flex-end; background: rgba(3, 7, 20, .55); }
.rv-drawer { width: min(480px, 100%); height: 100%; overflow: auto; padding: 20px 24px 32px; background: var(--raise); border-left: 1px solid var(--line2); box-shadow: -18px 0 40px -18px rgba(0, 0, 0, .5); outline: 0; }
.rv-dhead { display: flex; align-items: flex-start; gap: 10px; padding-bottom: 16px; } .rv-dhead > div { flex: 1; min-width: 0; } .rv-dhead .pill { margin-top: 3px; }
.rv-dhead h2 { margin: 0 0 2px; font: 600 17px var(--display); color: var(--head); overflow-wrap: anywhere; text-wrap: balance; } .rv-dhead small { display: block; color: var(--text3); font-size: 12.5px; }
.rv-drawer > .gline { margin: 0 0 16px; align-items: flex-start; } .rv-drawer > .gline > svg.i { margin-top: 2px; }
.rv-dr { display: flex; align-items: center; gap: 14px; margin: 0; padding: 14px 0; border-top: 1px solid var(--line); } .rv-dr > span:first-child { flex: 1; min-width: 0; }
.rv-dr b { display: block; font-weight: 600; font-size: 13.5px; } .rv-dr > span > small { display: block; color: var(--text3); font-size: 12.5px; }
.rv-dr.rv-col { flex-direction: column; align-items: stretch; gap: 10px; } .rv-dr .rv-seg { display: grid; justify-self: stretch; } .rv-dr .rv-field, .rv-dr .rv-test, .rv-dr .rv-err { max-width: none; }
.rv-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rv-kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 12px 6px; margin: 0; } .rv-kv dt { color: var(--text3); font-size: 11.5px; }
.rv-kv dd { margin: 2px 0 0; font-size: 17px; font-weight: 600; color: var(--head); font-variant-numeric: tabular-nums; }
.rv-kv dd.rv-bad::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; vertical-align: 2px; background: var(--bad); }  /* a failure: a dot, the figure in ink */
.rv-danger { margin-top: 16px; padding: 4px 0; color: var(--bad-ink); font-size: 13px; font-weight: 500; } .rv-danger:hover { text-decoration: underline; text-underline-offset: 3px; }

.rv-apps .pill { white-space: normal; text-align: left; }  /* a long state wraps in its tile, never cut off on a phone */
@media (max-width: 760px) {
  .rv .ph { flex-wrap: wrap; } .rv .ph-side { padding-top: 0; }
  .rv-field input, .rv-line input, .rv-select select, .rv .search.rv-find input { font-size: 16px; }  /* a phone's browser zooms into a smaller field */
  .rv-drawer { padding: 16px 16px 28px; border-left: 0; }
}

/* static/sales.css */
/* The Sales app: Overview (sales.js), Closers and Setters (pages/closers.js, pages/setters.js), one sheet for the three.
   It stands under .ro as well, so the Roster's warning line, tiles and group heads (roster.css) carry over; only what
   the leaderboard, its tables and the projections add is here, prefixed sa-. Every colour is one of app.css's
   variables, so the pages follow the frame's theme; the three medals are its own. */
.page > .sa { container-type: inline-size; }  /* the tables follow the room they have */
.sa .ph p { max-width: 78ch; }  /* the head is the frame's (head() in core.js) */
#sa-act { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }  /* its buttons keep the head's gap */
/* the head's line before the data: its words over the hidden loaded line, which holds the line's final height */
.sa-wait { display: grid; } .sa-wait > * { grid-area: 1 / 1; } .sa-wait > [aria-hidden] { visibility: hidden; }

/* the period and the view: app.css's toolbar (.tb, the row under the head) and segments (.seg), the same on Sales' three
   pages and Marketing's two; the period at the left, the page's own pick or line at the right */
.sa .sa-grow { flex: 1; }
.sa .sa-seg { max-width: 100%; }
.sa .sa-seg button { height: calc(var(--ctl-h) - 6px); font-size: var(--fs-small); white-space: nowrap; }  /* the pick stands as tall as the day fields beside it */
.sa .sa-custom { display: inline-flex; align-items: center; gap: var(--sp-2); color: var(--text3); font-size: var(--fs-small); }
.sa .sa-custom .input { width: auto; }

.sa-tiles { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); overflow: hidden; }
.sa .stat small { display: block; margin-top: 2px; color: var(--text3); font-size: 12px; } .sa .stat small.up { color: var(--ok-ink); } .sa .stat small.down { color: var(--bad-ink); }
.sa-ads { margin: 10px 2px 0; color: var(--text2); font-size: 13px; }
.sa-ads svg.i { width: 15px; height: 15px; color: var(--text3); vertical-align: -3px; margin-right: 8px; } .sa-ads b { color: var(--text); font-variant-numeric: tabular-nums; }
.sa-ads small { color: var(--text3); font-size: 12px; margin-left: 6px; } .sa-ads .sa-meta { margin-left: 8px; vertical-align: 1px; }
.sa-ads .pill { max-width: calc(100% - 8px); overflow: hidden; }  /* a state's words stay inside the line */
.sa-ads a { color: var(--blue); }  /* Overview's line that leads to Marketing */
.sa-hd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 28px 2px 10px; } .sa .sa-hd .sa-h { margin: 0 auto 0 0; min-width: 0; }
.sa-byl { font-size: var(--fs-small); color: var(--text3); }
.sa .sa-h { margin: 28px 2px 10px; overflow-wrap: anywhere; }  /* a section's heading: app.css's .page h2 */
.sa-h small a { color: var(--blue); }

/* every table: the panel's rows, its columns set per table */
.sa-t .tr { display: grid; align-items: center; gap: 12px; padding: 9px 14px; text-decoration: none; color: inherit; font-variant-numeric: tabular-nums; }
.sa .sa-t .tr.head { font: 600 var(--fs-caption)/1.3 var(--sans); letter-spacing: 0; text-transform: none; color: var(--text3); padding-block: 10px; }  /* the table head's look (app.css .tw th) */
.sa-t small { color: var(--text3); font-size: 12px; }
/* the ranking, Closers' calls and closes, the sheet's differences and Setters: app.css's .tw table. Each head holds one line */
.sa-t.tw th { white-space: nowrap; }
.sa-rank tbody tr:not(.tw-more), .sa-setters tbody tr:not(.tw-more) { cursor: pointer; transition: background var(--t-fast) var(--ease); }
.sa-rank tbody tr:not(.tw-more):hover, .sa-setters tbody tr:not(.tw-more):hover { background: var(--hover); } .sa-rank tr[aria-current] { background: var(--sel); }
.sa-t a.nm { color: inherit; text-decoration: none; }
.sa-rank tr.out { color: var(--text3); }
.sa-rank .by { color: var(--text); font-weight: 700; }
.sa-rank td:nth-child(2) { min-width: 170px; } .sa-rank td:last-child { min-width: 150px; }
.sa-setters tfoot :is(th, td) { font-weight: 700; border-top: 1px solid var(--line2); text-align: left; } .sa-setters tfoot td { text-align: right; }
.sa-rank .rk { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--chip); font: 700 12px var(--sans); color: var(--text2); }
.sa-rank .rk.r1 { background: #f4c542; color: #3d2c00; } .sa-rank .rk.r2 { background: #cfd6e5; color: #26324f; } .sa-rank .rk.r3 { background: #e0a878; color: #3c1f06; }
.sa-t .nm { display: flex; align-items: center; gap: 10px; min-width: 0; } .sa-t .nm > span:not(.av) { display: grid; gap: 3px; min-width: 0; } .sa-t .nm b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sa-bdg { display: inline-block; margin: 0 4px 0 0; padding: 1px 7px; border-radius: 999px; background: var(--warn-bg); color: var(--warn-ink); font: 600 var(--fs-caption) var(--sans); white-space: nowrap; }
.sa-rank .nm > span:not(.av) { display: block; } .sa-rank .nm b { display: block; margin-bottom: 2px; }
.sa-rank .cash { display: grid; gap: 4px; } .sa-rank .cash i { display: block; height: 5px; width: var(--w); min-width: 2px; border-radius: 3px; background: var(--ok); }
/* the commission: what the period's cash pays, and how far the next tier is */
.sa-pay { display: grid; gap: 4px; min-width: 0; }
.sa-track { position: relative; display: block; height: 6px; border-radius: 3px; background: var(--chip); }
.sa-track i { position: absolute; inset: 0 auto 0 0; width: var(--w); min-width: 2px; border-radius: 3px; background: var(--head); }
.sa-track u { position: absolute; top: -2px; bottom: -2px; left: min(var(--x), calc(100% - 2px)); width: 2px; background: var(--line2); }

.sa-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.sa-li { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.sa-li > span { display: grid; min-width: 0; flex: 1; } .sa-li > .av { flex: none; } .sa-li small { color: var(--text3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* a name nobody here wrote (a rep, a customer) is cut with an ellipsis, and the figure keeps its side of the row */
.sa-li > span > b, .sa-li .x { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sa-li .x { font-variant-numeric: tabular-nums; max-width: 60%; }
.sa-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); border-radius: 14px; background: var(--raise); box-shadow: var(--card); }
.sa-tiers div { padding: 12px 8px; text-align: center; } .sa-tiers div + div { border-left: 1px solid var(--line); }
@media (max-width: 760px) {  /* a phone holds the tiers two to a row: four never break three over one */
  .sa-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sa-tiers div:nth-child(odd) { border-left: 0; } .sa-tiers div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .sa-h { flex-wrap: wrap; } .sa-h small { margin-left: 0; }  /* a long hint goes under its title, never breaks it */
  /* the ranking holds #, Closer and Cash collected inside the phone: the badges wrap under the name, a long name ends
     in an ellipsis, so the fold row (app.css foldRow) spans the phone's width alone */
  .sa-rank td:nth-child(2), .sa-rank td:last-child { min-width: 0; } .sa-rank td:nth-child(2) { white-space: normal; }
  .sa-rank .nm > span:not(.av) { max-width: 40vw; } .sa-rank .sa-bdg { margin-bottom: 3px; }
}
.sa-tiers b { display: block; font: 800 var(--fs-lead)/1.3 var(--title); color: var(--head); } .sa-tiers small { color: var(--text3); font-size: 12px; }

.sa .sa-find { max-width: 320px; margin: 32px 0 4px; }
/* calls and closes: the status picks with their counts, then the newest rows and Show more */
.sa-st-row { margin: 4px 0 8px; } .sa-st-row small { color: var(--text3); margin-left: 4px; }
.sa .sa-next { margin: 8px 0 4px; } .sa-next small { color: var(--text3); margin-left: 4px; }
.sa-t .when { display: grid; } .sa-t .when b { font-weight: 600; font-size: 13px; }
.sa-t .who, .sa-t .camp { display: block; max-width: 28ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sa-t .camp { color: var(--text2); font-size: 12.5px; }
/* the sheet's differences: one table a kind, with its count; a day apart by one day or less folds under the time zone */
.sa-dk { margin: 14px 2px 6px; font: 600 14px var(--sans); color: var(--head); } .sa-dk .cn { color: var(--text3); font-weight: 600; margin-left: 6px; }
.sa-tz { margin: 14px 2px 6px; } .sa-tz summary { display: flex; align-items: center; gap: 6px; cursor: pointer; color: var(--text2); font-size: 13px; }
.sa-tz summary svg.i { transition: transform var(--t-fast) var(--ease); } .sa-tz[open] summary svg.i { transform: rotate(90deg); }
.sa-t .cell { display: flex; align-items: center; gap: 4px; min-width: 0; }
/* a pick and a figure in a row: app.css's field at the small height */
.sa-t select.input { width: auto; max-width: 100%; height: var(--ctl-h-sm); font-size: var(--fs-small); }
.sa-val { display: inline-flex; align-items: center; gap: 2px; height: var(--ctl-h-sm); min-width: 0; max-width: 100%; padding: 0 10px; border: 1px solid var(--line2); border-radius: var(--r-ctl); background: var(--raise); color: var(--text); font-size: var(--fs-small); cursor: text; }
.sa-val:hover { border-color: var(--text3); } .sa-val:focus-within { border-color: var(--blue); box-shadow: var(--ring); }
.sa-val input:focus-visible { outline: 0; } .sa-val input { width: 7ch; border: 0; background: transparent; font: inherit; color: inherit; }
.sa-st select, .sa-st b { font-weight: 600; } .sa-st.ok :is(select, b) { color: var(--ok-ink); } .sa-st.bad :is(select, b) { color: var(--bad-ink); } .sa-st.wait :is(select, b) { color: var(--wait-ink); }
/* a corrected row and its cell's undo: amber, the colour of a value that is not GoHighLevel's */
.sa-t tr.fixed { background: var(--note-bg); }
.sa-undo { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: var(--warn-ink); background: var(--warn-bg); flex: none; }
button.sa-undo:hover { filter: brightness(.95); } .sa-undo svg.i { width: 13px; height: 13px; }
.sa .gh .sa-fx { font-size: 12px; color: var(--warn-ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sa-none { color: var(--text3); font-size: 13px; margin: 2px 4px 8px; max-width: 78ch; }
.sa .gtag { padding: 0; border-radius: 0; background: none; color: var(--head); font: 600 var(--fs-body)/1.3 var(--sans); letter-spacing: 0; }  /* a fold's name, in words */

/* the team's links and the settings: one section a setting, its rows of inputs, its own Save */
.sa-sets { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 8px 28px; padding: 4px 4px 12px; }
.sa-sets h3 { margin: 14px 0 2px; font: 600 14px var(--sans); color: var(--head); } .sa-sets p { margin: 0 0 8px; color: var(--text3); font-size: 12.5px; }
.sa-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; align-items: center; margin-bottom: 6px; }
.sa-row.head { font: 600 var(--fs-caption) var(--sans); color: var(--text3); }
.sa-row > span { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; }
.sa-row.acts { grid-auto-columns: max-content; justify-content: end; margin-top: 8px; }
[data-sa-setting="packages"] .sa-row:not(.acts) { grid-auto-flow: row; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }  /* a package's name takes the room; its full name is the input's title */

/* the projections: the pace on the left, the month it gives on the right */
.sa-proj { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 8px 36px; align-items: start; }
.sa-proj .sa-in .sa-h { margin-top: 0; }
.sa-fun { margin: 0 2px 14px; color: var(--text2); font-size: 13.5px; max-width: 86ch; } .sa-fun b { color: var(--text); font-variant-numeric: tabular-nums; }
.sa-fld { display: grid; gap: 6px; margin: 0 2px 16px; font-size: 13.5px; } .sa-fld > span { display: flex; justify-content: space-between; align-items: baseline; color: var(--text2); }
.sa-fld b { color: var(--text); font-variant-numeric: tabular-nums; } .sa-fld input[type="range"] { width: 100%; accent-color: var(--head); }
.sa-ladder .tr, .sa-scen .tr { grid-template-columns: minmax(120px, 1.3fr) repeat(6, minmax(70px, 1fr)); } .sa-ladder .tr.on { background: var(--sel); }
.sa-six { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; align-items: end; height: 220px; padding: 0 2px; }
.sa-six > div { display: grid; grid-template-rows: auto 1fr auto; gap: 6px; height: 100%; text-align: center; min-width: 0; }
.sa-six b { font-size: 13px; font-variant-numeric: tabular-nums; } .sa-six small { color: var(--text3); font-size: 11.5px; }
.sa-six .bar { align-self: end; display: flex; align-items: flex-end; height: var(--h); min-height: 8px; border-radius: 6px 6px 0 0; background: var(--head); overflow: hidden; }
.sa-six .bar i { display: block; width: 100%; height: var(--h); background: var(--line2); }

.sa-scen button.tr { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; border-radius: 8px; transition: background var(--t-fast) var(--ease); }
.sa-scen button.tr:hover { background: var(--hover); } .sa-scen .tr.on { background: var(--sel); }
.sa-tiles .stat.lead { background: var(--sel); }

/* the funnel and the commission tier gauge: one hue, the charcoal, deeper as a tier pays more; the reached tiers lit */
.sa-card { margin: 16px 0 0; padding: 2px 18px 16px; border-radius: 14px; background: var(--raise); box-shadow: var(--card); }
.sa-card .sa-h { margin-top: 14px; }
.sa-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; text-align: center; margin: 6px 0 10px; }
.sa-flow > div { display: grid; gap: 2px; } .sa-flow > i { font-style: normal; color: var(--text3); font-size: 20px; }
.sa-flow b { font: 800 34px/1.05 var(--title); font-variant-numeric: tabular-nums; color: var(--head); }
.sa-flow span { font: 600 var(--fs-caption) var(--sans); color: var(--text2); } .sa-flow small { color: var(--text3); font-size: 12px; }
.sa-card .sa-fun { text-align: center; margin: 0 auto 6px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.sa-dialrow { display: grid; grid-template-columns: minmax(200px, 260px) minmax(0, 1fr); gap: 8px 24px; align-items: center; padding-top: 8px; }
.sa-dial { width: 100%; height: auto; overflow: visible; }
.sa-dial path { fill: none; stroke: var(--head); stroke-width: 15; stroke-opacity: calc(var(--o) * .32); } .sa-dial path.lit { stroke-opacity: var(--o); }
.sa-dial text { font: 600 8.5px var(--sans); fill: var(--text3); }
.sa-dial line { stroke: var(--head); stroke-width: 3.5; stroke-linecap: round; } .sa-dial circle { fill: var(--head); }
.sa-dialtx .v { display: block; font: 800 32px/1.1 var(--title); color: var(--head); font-variant-numeric: tabular-nums; }
.sa-dialtx .tier { display: inline-block; margin-top: 6px; background: var(--sel); color: var(--head); font-weight: 700; }
.sa-dialtx .to { margin: 10px 0 0; color: var(--text2); font-size: 13.5px; max-width: 46ch; } .sa-dialtx .to b { color: var(--head); }

/* the hero: the period, its days left and the podium, the owner's leaderboard look in the frame's tokens. Faint
   diagonal bands and a charcoal wash stand in for his confetti, which would never stop moving. */
.sa-hero { position: relative; margin: 0 0 16px; padding: 22px 26px 0; border-radius: 14px; overflow: hidden; box-shadow: var(--card);
  background: repeating-linear-gradient(115deg, transparent 0 70px, color-mix(in oklab, var(--text) 3%, transparent) 70px 140px),
    radial-gradient(120% 90% at 50% 0%, color-mix(in oklab, var(--text) 6%, transparent), transparent 70%), var(--raise); }
.sa-hero-hd { display: flex; align-items: flex-start; gap: 16px; }
.sa-hero-hd > div:first-child { flex: 1; min-width: 0; }
.sa-hero h2 { margin: 0; font: 800 28px/1.1 var(--title); color: var(--head); letter-spacing: -.01em; } .sa-hero h2 em { font-style: normal; color: var(--text3); }
.sa-hero-hd p { margin: 4px 0 0; color: var(--text2); font-size: 13.5px; }
.sa-left { display: grid; gap: 2px; padding: 8px 16px; border: 1px solid var(--line2); border-radius: 12px; background: color-mix(in oklab, var(--raise) 85%, transparent); text-align: center; }
.sa-left span { font: 800 22px/1.15 var(--title); color: var(--head); white-space: nowrap; } .sa-left span b { font-variant-numeric: tabular-nums; } .sa-left small { color: var(--text3); font-size: 12px; }
.sa-hero > .sa-none { padding: 30px 0 34px; text-align: center; }
.sa-podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 18px; max-width: 900px; margin: 0 auto; }
.sa-step { display: grid; justify-items: center; color: inherit; text-decoration: none; min-width: 0; }
.sa-step .who { display: grid; justify-items: center; gap: 3px; padding: 0 4px 14px; text-align: center; min-width: 0; max-width: 100%; }
.sa .sa-step .av { width: 64px; height: 64px; font-size: 21px; margin-bottom: 6px; box-shadow: 0 0 0 3px var(--panel), 0 0 0 6px var(--medal); }
.sa .sa-step.p1 .av { width: 84px; height: 84px; font-size: 27px; }
.sa-step .nm { font: 700 17px var(--sans); color: var(--head); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sa-step .fig { font: 800 30px/1.1 var(--title); font-variant-numeric: tabular-nums; color: var(--head); } .sa-step.p1 .fig { font-size: 36px; }
.sa-step small { color: var(--text3); font-size: 12.5px; }
.sa-step .ped { display: grid; place-items: start center; width: 100%; padding-top: 10px; border-radius: 12px 12px 0 0; font: 800 44px/1 var(--title); color: var(--medal-ink);
  background: linear-gradient(180deg, var(--medal), color-mix(in oklab, var(--medal) 72%, #000)); transition: filter var(--t-fast) var(--ease); }
a.sa-step:hover .ped { filter: brightness(1.06); }
.sa-step.p1 { --medal: #f4c542; --medal-ink: #3d2c00; } .sa-step.p1 .ped { height: 124px; }
.sa-step.p2 { --medal: #cfd6e5; --medal-ink: #26324f; } .sa-step.p2 .ped { height: 88px; }
.sa-step.p3 { --medal: #e0a878; --medal-ink: #3c1f06; } .sa-step.p3 .ped { height: 64px; }
.sa-step.open { --medal: var(--chip); --medal-ink: var(--text3); } .sa-step.open .who .nm { color: var(--text3); font-size: 15px; }
:root[data-theme="dark"] .sa-step .fig { color: var(--medal); } :root[data-theme="dark"] .sa-step.open .fig { color: var(--text3); }

/* TV mode: the whole screen, no frame, type that reads across a room. It is a container of its own, so on a phone
   the page's narrow rules (@container below) stack its podium and its figures too */
#sa-tv { position: fixed; inset: 0; z-index: 200; overflow: auto; background: var(--bg); container-type: inline-size; }
.sa-tvin { padding: 1.6vw 2.6vw 2.6vw; font-size: clamp(15px, 1.15vw, 30px); }
.sa-tvbar { display: flex; align-items: center; gap: 1em; margin-bottom: 1em; }
.sa-tvbar > b { font: 800 1.35em var(--title); color: var(--head); } .sa-tvbar em { font-style: normal; color: var(--text3); } .sa-tvbar small { color: var(--text3); font-size: .85em; }
.sa-tvbar .btn { margin-left: auto; } .sa-tvbar .btn svg.i { width: 15px; height: 15px; }
.sa-tvbar kbd { margin-left: 8px; padding: 1px 6px; border: 1px solid var(--line2); border-radius: 5px; font: 600 11px var(--mono); color: var(--text3); }
.sa-tvin .sa-hero { padding: 1.4em 1.8em 0; }
.sa-tvin .sa-hero h2 { font-size: clamp(30px, 2.8vw, 72px); } .sa-tvin .sa-hero-hd p { font-size: .95em; }
.sa-tvin .sa-left span { font-size: clamp(22px, 2vw, 52px); } .sa-tvin .sa-left small { font-size: .8em; }
.sa-tvin .sa-podium { max-width: 72vw; gap: 2vw; }
.sa-tvin .sa-step .nm { font-size: clamp(18px, 1.6vw, 40px); } .sa-tvin .sa-step .fig { font-size: clamp(30px, 3vw, 76px); } .sa-tvin .sa-step.p1 .fig { font-size: clamp(36px, 3.6vw, 92px); }
.sa-tvin .sa-step small { font-size: 1em; }
.sa.sa-tvin .sa-step .av { width: clamp(64px, 5.4vw, 140px); height: clamp(64px, 5.4vw, 140px); font-size: clamp(21px, 1.8vw, 46px); }
.sa.sa-tvin .sa-step.p1 .av { width: clamp(84px, 7vw, 180px); height: clamp(84px, 7vw, 180px); font-size: clamp(27px, 2.3vw, 60px); }
.sa-tvin .sa-step.p1 .ped { height: clamp(110px, 15vh, 260px); } .sa-tvin .sa-step.p2 .ped { height: clamp(80px, 10.5vh, 180px); } .sa-tvin .sa-step.p3 .ped { height: clamp(58px, 7.5vh, 130px); }
.sa-tvin .sa-step .ped { font-size: clamp(44px, 4vw, 100px); }
.sa-tvstats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-radius: 14px; background: var(--raise); box-shadow: var(--card); }
.sa-tvstats > div { display: grid; gap: .2em; padding: .8em 1.1em; } .sa-tvstats > div + div { border-left: 1px solid var(--line); }
.sa-tvstats small { font: 700 .7em var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--text3); }
.sa-tvstats b { font: 800 clamp(26px, 2.3vw, 60px)/1.1 var(--title); color: var(--head); font-variant-numeric: tabular-nums; }
.sa-tvrank { margin-top: 1em; }
.sa-tvr { display: grid; grid-template-columns: 2.2em 2.4em minmax(0, 1fr) 7em 7em 9em; align-items: center; gap: 1em; padding: .6em 1em; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.sa-tvr .rk { display: inline-grid; place-items: center; width: 1.8em; height: 1.8em; border-radius: 50%; background: var(--chip); font-weight: 800; color: var(--text2); }
.sa-tvr .rk.r1 { background: #f4c542; color: #3d2c00; } .sa-tvr .rk.r2 { background: #cfd6e5; color: #26324f; } .sa-tvr .rk.r3 { background: #e0a878; color: #3c1f06; }
.sa.sa-tvin .sa-tvr .av { width: 2.2em; height: 2.2em; font-size: .8em; }
.sa-tvr .nm { font-size: 1.3em; color: var(--head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sa-tvr > span { display: grid; text-align: right; font-size: 1.25em; font-weight: 700; } .sa-tvr small { font: 700 .5em var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--text3); }
.sa-tvr .fig { color: var(--head); font-size: 1.5em; }

@container (max-width: 980px) {
  .sa-dialrow { grid-template-columns: 1fr; justify-items: center; text-align: center; } .sa-dial { max-width: 300px; }
  .sa-ladder .tr > :nth-child(3), .sa-ladder .tr > :nth-child(4), .sa-scen .tr > :nth-child(2) { display: none; }
  .sa-ladder .tr, .sa-scen .tr { grid-template-columns: minmax(110px, 1.3fr) repeat(4, minmax(64px, 1fr)); }
  .sa-proj { grid-template-columns: 1fr; }
  /* a laptop's room holds the rank, the closer, the cash, the ranked figure and the commission; the others stay on the wide view */
  .sa-rank :is(th, td).tw-x:not(:last-child):not([aria-sort]):not(.by) { display: none; }
}
@container (max-width: 700px) {
  .sa .ph-act .btn { padding: 0 9px; }  /* the head's three buttons, each with its word, hold one row of a 390 px phone */
  .sa .ph-act { align-items: flex-start; }  /* the tour's 32 px icon keeps the row's top beside the 34 px buttons */
  .sa .sa-bar .sa-grow { display: none; }  /* a phone: the page's own pick follows the period, its label beside it */
  .sa .sa-seg { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }  /* rule 6's phone toolbar: one row that scrolls sideways */
  .sa .sa-bar .sa-byl { display: none; }  /* the pick's name is its group's aria-label, so no label stands alone on a line */
  .sa .sa-hd .sa-h { flex-basis: 100%; }  /* the heading takes its line; a pick's label and segments wrap together under it */
  .sa-cols { grid-template-columns: minmax(0, 1fr); }
  .sa-rank td:nth-child(2) { min-width: 0; } .sa-t .who { max-width: 16ch; }
  .sa-ladder .tr, .sa-scen .tr { grid-template-columns: 1.2fr 1fr 1fr; } .sa-ladder .tr > :nth-child(-n+5):not(:first-child), .sa-scen .tr > :nth-child(-n+5):not(:first-child) { display: none; }
  /* the podium stacked: first on top, each step a row with its place, the ranked figure at the right */
  .sa-hero { padding: 16px 14px 8px; } .sa-hero-hd { flex-direction: column; gap: 10px; } .sa-hero h2 { font-size: 23px; } .sa-left { text-align: left; }
  .sa-podium { grid-template-columns: 1fr; gap: 8px; margin-top: 12px; } .sa-step.p1 { order: -1; }
  .sa-step { display: flex; flex-direction: row-reverse; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; background: color-mix(in oklab, var(--raise) 70%, transparent); }
  .sa-step .who { flex: 1; grid-template: "av nm fig" auto "av sub fig" auto / auto minmax(0, 1fr) auto; justify-items: start; align-items: center; gap: 0 12px; padding: 0; text-align: left; }
  .sa .sa-step .av, .sa .sa-step.p1 .av { grid-area: av; width: 42px; height: 42px; font-size: 15px; margin: 0; }
  .sa-step .nm { grid-area: nm; font-size: 15px; } .sa-step small { grid-area: sub; } .sa-step .fig, .sa-step.p1 .fig { grid-area: fig; font-size: 22px; }
  .sa-step .ped, .sa-step.p1 .ped, .sa-step.p2 .ped, .sa-step.p3 .ped { width: 40px; height: 40px; flex: none; place-items: center; padding: 0; border-radius: 10px; font-size: 20px; }
  .sa-flow b { font-size: 26px; }
  .sa-six { gap: 4px; } .sa-six small { font-size: 10px; }
  .sa .sa-seg button { padding: 0 9px; }
  /* TV mode on a phone: the stacked podium above at the page's sizes, the five figures two to a row, and the ranking
     with its place, its closer and the ranked figure, as the page's own ranking holds */
  .sa-tvin { padding: 12px; } .sa-tvbar { flex-wrap: wrap; } .sa-tvbar small { order: 3; flex-basis: 100%; }
  .sa-tvin .sa-hero { padding: 16px 14px 8px; } .sa-tvin .sa-hero h2 { font-size: 23px; } .sa-tvin .sa-podium { max-width: none; gap: 8px; }
  .sa.sa-tvin .sa-step .av, .sa.sa-tvin .sa-step.p1 .av { width: 42px; height: 42px; font-size: 15px; }
  .sa-tvin .sa-step .nm { font-size: 15px; } .sa-tvin .sa-step .fig, .sa-tvin .sa-step.p1 .fig { font-size: 22px; }
  .sa-tvin .sa-step.p1 .ped, .sa-tvin .sa-step.p2 .ped, .sa-tvin .sa-step.p3 .ped { height: 40px; font-size: 20px; }
  .sa-tvstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sa-tvstats > div:nth-child(odd) { border-left: 0; } .sa-tvstats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .sa-tvr { grid-template-columns: 2.2em 2.4em minmax(0, 1fr) auto; } .sa-tvr > span:not(.fig, .rk, .av) { display: none; }
}

/* Closer stats' Demo calls by outcome (closers.js socTable): a count over its share, the group heads naming each base,
   the team's foot row as Setters' */
.soc-t .soc-g th { padding-bottom: 0; border-bottom: 0; color: var(--text2); } .soc-t .soc-g th[colspan] { text-align: center; border-left: 1px solid var(--line); }
.soc-t .soc-g small { font-weight: 500; color: var(--text3); }
.soc-t thead tr:last-child th:nth-child(3), .soc-t thead tr:last-child th:nth-child(8), .soc-t thead tr:last-child th:nth-child(11),
.soc-t td:nth-child(3), .soc-t td:nth-child(8), .soc-t td:nth-child(11) { border-left: 1px solid var(--line); }
.soc-t th.num { text-align: right; }
.soc-c { display: inline-grid; justify-items: end; line-height: 1.2; font-variant-numeric: tabular-nums; }
.soc-c small { font-size: var(--fs-caption); color: var(--text3); }
.soc-z b { font-weight: 400; color: var(--text3); }
.soc-t td:first-child { min-width: 150px; }
.soc-t tfoot :is(th, td) { font-weight: 700; border-top: 1px solid var(--line2); text-align: left; } .soc-t tfoot td { text-align: right; } .soc-t tfoot .tw-more td { text-align: left; font-weight: 400; }
.soc-b { margin-top: 8px; }
@media (max-width: 760px) { .soc-t .soc-g { display: none; } .soc-t td:first-child { min-width: 0; } .soc-t :is(th, td):not(.tw-more td) { padding-inline: 8px; } }

/* static/tour.css */
/* The tour (tour.js): the sidebar foot's "Tour" row, then the three layers a running tour puts on the body: the
   light on one control with the dim around it, a clear layer that takes every click off the card, and the card.
   Nothing here moves: the card arrives by the page's own open move (enter in core.js), and the light jumps. */

/* the sidebar's foot: "Tour", over the signed-in account's row and drawn as that row is */
.tour-row { flex: none; display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 14px 9px 20px; border-top: 1px solid var(--line); color: var(--text3); font-weight: 500; text-align: left; }
.tour-row:hover { background: var(--raise); color: var(--text); }
.tour-row + .me { border-top: 0; padding-top: 6px; }
#view:focus { outline: none; }  /* the page takes the focus back when a tour that no button started ends */

/* the light: its ring is an outline, so it shows in forced colours, where the dim's shadow is not drawn */
.tour-lit { position: fixed; z-index: 50; border-radius: 12px; outline: 2px solid var(--red); box-shadow: 0 0 0 9999px rgba(6, 7, 9, .62); pointer-events: none; }
.tour-catch { position: fixed; inset: 0; z-index: 51; }

.tour { position: fixed; z-index: 52; display: grid; gap: 6px; width: 320px; max-width: calc(100vw - 24px); padding: 16px 16px 12px; background: var(--raise); border-radius: 14px; box-shadow: var(--card), var(--shadow); }  /* the card recipe, lifted over the dim */
.tour h2 { margin: 0; font: 800 15px/1.3 var(--title); letter-spacing: -.01em; color: var(--head); outline: none; }
.tour p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text2); }
.tour-foot { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.tour-count { margin-right: auto; font-size: 12px; font-weight: 600; color: var(--text3); font-variant-numeric: tabular-nums; }
.tour-stop { height: 32px; padding: 0 6px; border-radius: 8px; color: var(--text3); font-size: 13px; font-weight: 600; }
.tour-stop:hover { color: var(--text); }
.tour .btn:not(.primary) { background: var(--chip); }
.tour [hidden] { display: none; }
/* the caret: half outside the card, on the side that faces the control (data-side, set by tourPlace) */
.tour-caret { position: absolute; width: 12px; height: 12px; background: var(--raise); rotate: 45deg; }
.tour[data-side="top"] .tour-caret { top: -7px; }
.tour[data-side="bottom"] .tour-caret { bottom: -7px; rotate: 225deg; }
.tour[data-side="left"] .tour-caret { left: -7px; rotate: -45deg; }
.tour[data-side="right"] .tour-caret { right: -7px; rotate: 135deg; }
.tour[data-side=""] .tour-caret { display: none; }
/* a phone: the card docks over the tabs (its bottom is set by tourPlace), with taller buttons and no caret */
.tour.dock { left: 12px; right: 12px; width: auto; max-width: none; padding: 16px; }
.tour.dock :is(.btn, .tour-stop) { height: 40px; } .tour.dock .btn { padding: 0 16px; }
/* under a docked card the open page gets room at its end, so its last control scrolls clear of the card */
body:has(.tour.dock) #view .page[data-page] { padding-bottom: 220px; }

/* static/agentpage.css */
/* The agent page template (agentpage.js): an agent's page in three panes, as the Websites app: .va-left its list
   (248 px), .va-mid the open item, .va-right the chat with its agent (360 px), and the chat's parts every agent shares:
   a turn, an answer in Markdown (.va-md), questions over the box (.va-chips), the item a message was sent with
   (.va-about). A page keeps only its own parts in its sheet. The classes keep the va- prefix of the Video-Editor Agent page,
   which drew them first. The page follows the room it has (container `panes`): under 761 px it shows one pane at a
   time, picked by the tabs under the head (.va-tabs, `data-pane`). */
.scroll:has(> .page > .va) { height: 100%; }
.page:has(> .va) { container: panes / inline-size; max-width: none; height: 100%; padding: 22px 28px 0; display: flex; flex-direction: column; }
.page:has(> .va) > .ph { margin-bottom: 0; }
.va { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.va-tabs { display: none; }
.va-panes { flex: 1; min-height: 0; display: grid; grid-template-columns: 248px minmax(0, 1fr) 360px; margin: 14px -28px 0; border-top: 1px solid var(--line); }

/* left: the list, its first view's button on top and a second view's at the foot */
.va-left { display: flex; flex-direction: column; gap: 10px; min-height: 0; padding: 14px 12px 0; border-right: 1px solid var(--line); }
.va-new { width: 100%; justify-content: center; }
.va-new[aria-current] { box-shadow: inset 0 0 0 1px var(--head); }
.va-list { flex: 1; min-height: 0; overflow: auto; display: grid; align-content: start; gap: 2px; }
.va-k { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text3); padding: 6px 10px 4px; }
.va-p { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; color: var(--text); text-decoration: none; transition: background-color var(--t-fast) var(--ease); }
.va-p:hover { background: var(--hover); } .va-p[aria-current] { background: var(--sel); }
.va-pm { min-width: 0; display: grid; gap: 2px; }
.va-pm b { font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--head); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; overflow-wrap: anywhere; }  /* a long name, often a script's first line, takes up to three lines before it is cut */
.va-pm small { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--text3); white-space: nowrap; }
.va-pr { display: grid; justify-items: end; gap: 6px; }
.va-pr small { font-size: 11.5px; color: var(--text3); white-space: nowrap; }
.va-none { margin: 6px 10px; color: var(--text3); font-size: 13px; }
.va-lib { display: flex; align-items: center; gap: 9px; margin: 0 -12px; padding: 12px 22px; border: 0; border-top: 1px solid var(--line); background: none; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--text2); text-align: left; cursor: pointer; transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.va-lib:hover { background: var(--hover); color: var(--head); } .va-lib[aria-current] { background: var(--sel); color: var(--head); }
.va-lib small { margin-left: auto; font-weight: 400; color: var(--text3); font-size: 12px; }
.va-lib svg.i, .va-new svg.i { width: 16px; height: 16px; }

/* middle: the open thing, under its head */
.va-mid { min-width: 0; min-height: 0; overflow: auto; padding: 20px 28px 28px; }
.va-mh { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.va-mh > div { min-width: 0; }
.va-mh > div > b { display: block; font: 800 20px/1.25 var(--title); letter-spacing: -.02em; color: var(--head); text-wrap: balance; overflow-wrap: anywhere; }
.va-mh small { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 6px; font-size: 13px; color: var(--text3); }
.va-foot { margin: 18px 0 0; font-size: 12.5px; color: var(--text3); }
.va-mid .empty.drawn { margin-top: 12vh; }

/* right: the chat */
.va-right { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-left: 1px solid var(--line); background: var(--panel); }
.va-ch { display: flex; align-items: baseline; gap: 8px; padding: 14px 16px 12px; border-bottom: 1px solid var(--line); }
.va-ch b { font-size: 14px; color: var(--head); } .va-ch small { font-size: 12.5px; color: var(--text3); }
.va-msgs { flex: 1; min-height: 0; overflow: auto; padding: 16px; }
.va-turns { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.va-me > small { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-bottom: 6px; font-size: 12px; color: var(--text3); }
.va-me > small b { color: var(--text2); }
.va-me p { margin: 0; padding: 9px 12px; border: 1px solid var(--line2); border-radius: 12px; background: var(--raise); font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.va-bot { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; margin-top: 10px; }
.va-ba { width: 24px; height: 24px; display: grid; place-items: center; }  /* Clutchy's robot (bot.js) */
.va-bot small { font-size: 12px; font-weight: 600; color: var(--text3); }
.va-bot p { margin: 2px 0 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.va-bot p.va-work { color: var(--text3); }
.va-hi { display: grid; justify-items: center; gap: 6px; padding-top: 28%; text-align: center; }
.va-hi b { color: var(--head); } .va-hi p { margin: 0; font-size: 13px; color: var(--text3); }
.va-comp { display: grid; gap: 8px; padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.va-comp textarea.input { height: auto; padding: 9px 11px; line-height: 1.45; resize: none; }
.va-cr { display: flex; align-items: center; gap: 10px; }
.va-cost { margin: 0; font-size: 12px; line-height: 1.45; color: var(--text3); }
.va-cost .pill { margin-right: 4px; }
.va-cr > p.va-cost { flex: 1; }
/* the chat's shared parts: the item a message was sent with, an answer in Markdown or failed, the earlier turns'
   control, the questions over the box */
.va-about { margin-left: auto; max-width: 60%; padding: 0 8px; border-radius: var(--r-pill); background: var(--chip); color: var(--text2); font-size: 11.5px; font-weight: 600; line-height: 20px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.va-about:hover { color: var(--head); }
.va-md { margin-top: 2px; font-size: 14px; line-height: 1.55; color: var(--text); overflow-wrap: anywhere; }
.va-bot .va-md :where(p, ul, ol, h4, pre) { margin: 0; }  /* under .va-bot, so it wins over .va-bot p */
.va-bot .va-md > * + * { margin-top: 10px; }
.va-bot .va-md > p + :is(ul, ol) { margin-top: 4px; }
.va-md :is(ul, ol) { padding-left: 20px; } .va-md li + li { margin-top: 4px; }
.va-md h4 { font: 800 var(--fs-small) var(--title); color: var(--head); }
.va-md code { font-size: 12.5px; background: var(--chip); padding: 1px 5px; border-radius: 5px; }
.va-md table { border-collapse: collapse; font-size: var(--fs-caption); width: 100%; }
.va-md :is(th, td) { text-align: left; padding: 5px 8px; border-bottom: 1px solid var(--line); }
.va-bot p.va-bad { color: var(--bad-ink); }
.va-earlier { display: flex; margin: 0 auto 16px; }
.va-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.va-chip { padding: 5px 10px; border: 1px solid var(--line2); border-radius: var(--r-pill); background: var(--raise); color: var(--text2); font-size: 12.5px; line-height: 1.3; text-align: left; transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.va-chip:hover { border-color: var(--text3); color: var(--head); }

/* the room of a phone, or a narrow window: one pane at a time, picked by the tabs under the head */
@container panes (max-width: 1000px) { .va-panes { grid-template-columns: 220px minmax(0, 1fr) 320px; } }
@container panes (max-width: 760px) {
  .va-tabs { display: inline-flex; align-self: flex-start; margin-top: 10px; }
  .va-panes { grid-template-columns: minmax(0, 1fr); margin: 10px -28px 0; }
  .va:not([data-pane="left"]) .va-left, .va:not([data-pane="mid"]) .va-mid, .va:not([data-pane="right"]) .va-right { display: none; }
  .va-left, .va-right { border: 0; }
  .va-mid { padding: 16px 14px 24px; }
}

/* static/agenttune.css */
/* The agent admin template (agenttune.js): the strip of tabs under the head, Settings' sections from Automations'
   .tune rows, the read-only note and the disabled parts. Its classes start with cla-. */
.cla-tabs { margin-bottom: var(--sp-5); }
.ph + .tabs + .tb, .ph + .tabs + .cla-work > .tb:first-child { margin-top: calc(-1 * var(--sp-1)); }  /* a work page's toolbar keeps its place under the head (app.css, .ph + .tb) */
/* a work page's tab panel where the page draws several parts under the strip (agenttune.js, agentPanel): it holds
   them for the tabs' aria-controls and lays out nothing, so each part stands as it did */
.cla-work { display: contents; }
.cla-body .cla-h { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin: var(--sp-6) 0 var(--sp-3); }
:is(.cla-body, .cla-ro) > .cla-h:first-child, .cla-body > .cla-ro-note + .cla-h { margin-top: 0; }
.cla-body .cla-h small { font-size: var(--fs-small); font-weight: 400; color: var(--text3); max-width: 75ch; }
.cla-ro { border: 0; padding: 0; margin: 0; min-width: 0; }
.cla-ro-row { display: contents; }  /* one row read only among rows a person changes */
.cla-ro-row + .tr, .tr + .cla-ro-row > .tr, .cla-ro-row + .cla-ro-row > .tr { border-top: 1px solid var(--line); }
.cla-ro-note { display: flex; align-items: center; gap: var(--sp-2); margin: 0 0 var(--sp-4); padding: 10px 14px; border-radius: var(--r-ctl);
  background: var(--chip); font-size: var(--fs-small); color: var(--text2); }
.cla-ro-note svg.i { flex: none; width: 16px; height: 16px; }

/* A pick's segments wrap inside their own cell, on an agent's page and in Automations alike: a long option never
   draws over the row's pill (app.css gives .seg flex: none, sized to one line) */
.tune .tr.choice .seg { flex: 0 1 auto; min-width: 0; flex-wrap: wrap; row-gap: 2px; }
.tune .tr.choice .seg button { height: auto; min-height: 24px; }

/* Clutchy's work tab: the strip over the sessions' start page, which fills the rest */
.main:has(> .cla-top) { grid-template-rows: auto minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); }  /* a strip wider than the work scrolls inside it, never widens the column off the work's centre */
.cla-top { padding: var(--sp-5) var(--sp-6) 0; }
.cla-top .cla-tabs { margin-bottom: 0; }

/* static/bot.css */
/* Clutchy's robot and the steps row (bot.js; Docs/Systems/ControlPanel/AgentRow.md): its colours, each pose's loop,
   the hand-offs, the row and its rolling words. The one sheet beside motion.css that declares motion, and the one that loops. */

/* --- the robot ------------------------------------------------------------------------------------------------
   A loop runs only under [data-motion], which bot.js sets while the robot is on screen, the tab is in view and Reduce
   Motion is off. Only a layer's transform and opacity move. --bot-t starts each loop from the page's clock. */
clutchy-bot {
  --bot-ink: #5a0d18; --bot-shell: #e21c2c; --bot-face: #17191c; --bot-eye: #fff;
  --bot-spark: #e8a317; --bot-z: var(--text3); --bot-s: .833333; --bot-t: 0s;
  position: relative; display: block; flex: none; width: calc(25.2px * var(--bot-s)); height: calc(24px * var(--bot-s)); margin-block: -1px; pointer-events: none;
}
:root[data-theme="dark"] clutchy-bot { --bot-ink: #8f1626; --bot-face: #0c0d0f; --bot-spark: #ffd36a; }
clutchy-bot[size="main"] { --bot-s: 1.25; margin-block: -6px; }  /* a chat's own robot, 1.5 times an avatar's; the margins keep the row's height */
clutchy-bot[size="face"] { --bot-s: 1; margin: 0; }
clutchy-bot[size="hero"] { --bot-s: 3; margin: 0 0 14px; }
clutchy-bot svg { display: block; overflow: visible; }
.bot-rig { position: absolute; top: 50%; left: 50%; width: 24px; height: 24px; transform: translate(-50%, -50%) scale(var(--bot-s)); }
.bot-layer { position: absolute; inset: 0; }
.bot-console { clip-path: inset(14.8px 6.8px 5.6px); }
.bot-globe { clip-path: circle(4.2px at 12px 19.2px); }
.bot-outline { stroke: var(--bot-ink); stroke-width: 1.4; stroke-linejoin: round; paint-order: stroke; }
.bot-eyes { transform-origin: 12px 12.2px; }
.bot-head, .bot-enter, .bot-leave, .bot-page { transform-origin: 12px 19px; }
.bot-shift, .bot-crate { transform-origin: 12px 23px; }
.bot-glass { transform-origin: 19px 23px; }
.bot-mini { transform-origin: 19.5px 21px; }
.bot-badge { transform-origin: 19.6px 4.4px; }
.bot-hammer { transform-origin: 12.4px 17.8px; }
.bot-sparks { transform-origin: 21.6px 20.6px; }
.bot-bulb { transform-origin: 19.6px 3.4px; }
.bot-writing { transform-origin: 5.5px center; }
clutchy-bot[pose="reply"] .bot-writing { transform-origin: 15px center; }
.bot-z { transform-origin: 19.5px 4.4px; }
.bot-leave, .bot-page, .bot-sparks, .bot-bulb, .bot-z, .bot-wake { opacity: 0; }
clutchy-bot:not([data-motion]) .bot-z:first-child { opacity: 1; }  /* still, the sleeping robot shows one Z */
clutchy-bot[pose="edit"] .bot-look { transform: translate(-.56px, .84px); }

@media (prefers-reduced-motion: no-preference) {
  /* a hand-off: the old prop leaves, the head gives, the new prop enters */
  [data-motion] .bot-shift { animation: bot-shift .42s ease-out; }
  [data-motion] .bot-leave { animation: bot-leave .2s ease-in both; }
  [data-motion] .bot-enter { animation: bot-enter .36s cubic-bezier(.3, 1.45, .5, 1) .12s both; }
  /* the done and sleep poses' eyes are closed arcs: they never blink */
  [data-motion]:not([pose="done"], [pose="sleep"]) .bot-eyes { animation: bot-blink 4.2s var(--bot-t) infinite; }
  [data-motion][pose="sleep"] .bot-head { animation: bot-breathe 3.6s ease-in-out var(--bot-t) infinite; }
  [data-motion][pose="sleep"] .bot-prop .bot-z { animation: bot-z 3.6s ease-out var(--bot-t) infinite; }
  [data-motion][pose="sleep"] .bot-prop .bot-z:nth-child(2) { animation-delay: calc(var(--bot-t) + 1.2s); }
  [data-motion][pose="sleep"] .bot-prop .bot-z:nth-child(3) { animation-delay: calc(var(--bot-t) + 2.4s); }
  /* the wake: the eyes pop open, the head hops, and a ! pops over it once */
  [data-motion][data-wakes] .bot-head { animation: bot-hop .7s cubic-bezier(.3, .7, .4, 1); }
  [data-motion][data-wakes] .bot-eyes { animation: bot-pop-eyes .35s cubic-bezier(.3, 1.6, .5, 1); }
  [data-motion][data-wakes] .bot-wake { animation: bot-wake 1.1s ease-out; }
  [data-motion]:is([pose="think"], [pose="web"]) .bot-look { animation: bot-ponder 2.8s ease-in-out var(--bot-t) infinite; }
  [data-motion][pose="think"] .bot-prop .bot-bulb { animation: bot-bulb 2.6s ease-in-out var(--bot-t) infinite; }
  /* working: the eyes look down at the hammer, which strikes the stone with sparks, and the head jolts at each blow */
  [data-motion][pose="work"] .bot-look { animation: bot-down 3.2s ease-in-out var(--bot-t) infinite; }
  [data-motion][pose="work"] .bot-prop .bot-hammer { animation: bot-tap 1.2s var(--bot-t) infinite; }
  [data-motion][pose="work"] .bot-prop .bot-sparks { animation: bot-sparks 1.2s ease-out var(--bot-t) infinite; }
  [data-motion][pose="work"]:not([data-wakes]) .bot-head { animation: bot-jolt 1.2s ease-out var(--bot-t) infinite; }
  [data-motion][pose="read"] .bot-look { animation: bot-scan 2.4s ease-in-out var(--bot-t) infinite; }
  [data-motion][pose="read"]:not([data-wakes]) .bot-head { animation: bot-nod 2.4s ease-in-out var(--bot-t) infinite; }
  [data-motion][pose="read"] .bot-prop .bot-page { animation: bot-page 2.4s ease-in-out var(--bot-t) infinite; }
  [data-motion][pose="edit"] .bot-prop .bot-pen { animation: bot-pen 1.2s linear var(--bot-t) infinite; }
  [data-motion][pose="edit"] .bot-prop .bot-pass { animation: bot-pass 3.6s steps(3, jump-none) var(--bot-t) infinite; }
  [data-motion][pose="edit"] .bot-prop .bot-writing { animation: bot-writing 3.6s linear var(--bot-t) infinite; }
  [data-motion][pose="edit"] .bot-prop .bot-writing:nth-child(2) { animation-name: bot-writing-second; }
  [data-motion][pose="edit"] .bot-prop .bot-writing:nth-child(3) { animation-name: bot-writing-third; }
  [data-motion][pose="run"] .bot-look { animation: bot-glance 2.5s ease-in-out var(--bot-t) infinite; }
  [data-motion][pose="run"] .bot-prop .bot-output { animation: bot-output 2.5s steps(5) var(--bot-t) infinite; }
  [data-motion][pose="run"] .bot-prop .bot-cursor { animation: bot-cursor 1.06s steps(1) var(--bot-t) infinite; }
  [data-motion][pose="search"] .bot-look { animation: bot-follow 1.6s ease-in-out var(--bot-t) infinite alternate; }
  [data-motion][pose="search"] .bot-prop .bot-glass { animation: bot-glass 1.6s ease-in-out var(--bot-t) infinite alternate; }
  [data-motion][pose="web"] .bot-prop .bot-meridians { animation: bot-turn 3s linear var(--bot-t) infinite; }
  [data-motion][pose="agent"] .bot-look { animation: bot-watch 2.4s ease-in-out var(--bot-t) infinite; }
  [data-motion][pose="agent"] .bot-prop .bot-mini { animation: bot-launch 2.4s cubic-bezier(.3, .7, .3, 1) var(--bot-t) infinite; }
  [data-motion][pose="reply"] .bot-prop .bot-writing { animation: bot-speak 2.2s ease-out var(--bot-t) infinite; }
  [data-motion][pose="reply"] .bot-prop .bot-writing:nth-child(2) { animation-name: bot-speak-second; }
  [data-motion][pose="compact"] .bot-prop .bot-crate { animation: bot-squash 1.4s cubic-bezier(.5, 0, .3, 1) var(--bot-t) infinite; }
  [data-motion][pose="ask"] .bot-prop .bot-badge { animation: bot-bob 1.6s ease-in-out var(--bot-t) infinite; }
  /* done: one hop and the tick pops, then it rests; `rest` draws it at rest from the start */
  [data-motion][pose="done"]:not([rest]) .bot-head { animation: bot-hop .7s cubic-bezier(.3, .7, .4, 1); }
  [data-motion][pose="done"]:not([rest]) .bot-prop .bot-badge { animation: bot-pop .45s cubic-bezier(.3, 1.6, .5, 1) both; }
  /* words that change roll: the new rise in, and the old, drawn from data-was, rise out above them */
  .roll > .roll-in { animation: roll-in .26s cubic-bezier(.2, .8, .2, 1) both; }
  .roll[data-was]::before { content: attr(data-was); position: absolute; inset: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; animation: roll-out .2s ease-in both; }
}

@keyframes bot-leave { from { opacity: 1; } to { opacity: 0; transform: translateY(1.4px) scale(.8); } }
@keyframes bot-enter { from { opacity: 0; transform: translateY(1.12px) scale(.55); } to { opacity: 1; transform: none; } }
@keyframes bot-shift { 35% { transform: scaleY(.94) scaleX(1.03); } 70% { transform: translateY(-.7px); } }
@keyframes bot-blink { 0%, 93%, 100% { transform: scaleY(1); } 95.5% { transform: scaleY(.12); } }
@keyframes bot-ponder { 0%, 100% { transform: translate(.56px, -.7px); } 50% { transform: translate(.98px, -.56px); } }
@keyframes bot-bulb { 0%, 38% { opacity: 0; transform: scale(.85); } 48% { opacity: 1; transform: scale(1.08); } 56%, 82% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: scale(.9); } }
@keyframes bot-down { 0%, 78%, 100% { transform: translate(.56px, .84px); } 86%, 94% { transform: translate(.14px, .14px); } }
/* a smith's stroke: the hammer lifts, holds at the top, drops fast, lands flat at 63 %, bounces once and settles */
@keyframes bot-tap {
  0% { transform: none; animation-timing-function: cubic-bezier(.3, 0, .3, 1); }
  40% { transform: rotate(-26deg); animation-timing-function: ease-in-out; }
  52% { transform: rotate(-30deg); animation-timing-function: cubic-bezier(.7, 0, 1, .6); }
  63% { transform: none; animation-timing-function: ease-out; }
  69% { transform: rotate(-7deg); animation-timing-function: ease-in; }
  75%, 100% { transform: none; } }
@keyframes bot-sparks { 0%, 62% { opacity: 0; transform: scale(.5); } 64% { opacity: 1; transform: scale(.8); } 78%, 100% { opacity: 0; transform: scale(1.35); } }
@keyframes bot-jolt { 0%, 62%, 72%, 100% { transform: none; } 65% { transform: translateY(.42px) scaleY(.97); } }
@keyframes bot-scan { 0%, 100% { transform: translate(-.84px, .28px); } 28% { transform: translate(.84px, .28px); } 33% { transform: translate(-.84px, .7px); }
  61% { transform: translate(.84px, .7px); } 66% { transform: translate(-.84px, 1.12px); } 94% { transform: translate(.84px, 1.12px); } }
@keyframes bot-page { 0%, 80% { transform: scaleX(1); opacity: 0; } 82% { opacity: 1; } 95% { transform: scaleX(-1); opacity: 1; } 100% { transform: scaleX(-1); opacity: 0; } }
@keyframes bot-nod { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(1.5deg); } }
@keyframes bot-pen { 0%, 100% { transform: translateX(-3.92px); } 15% { transform: translate(-3.22px, -.56px); } 30% { transform: translateX(-2.52px); }
  45% { transform: translate(-1.82px, -.56px); } 60% { transform: translateX(-1.12px); } 75% { transform: translate(-.42px, -.56px); } 88% { transform: none; } }
@keyframes bot-pass { to { transform: translateY(2.8px); } }
@keyframes bot-writing { 0%, 100% { transform: scaleX(0); } 29%, 92% { transform: scaleX(1); } }
@keyframes bot-writing-second { 0%, 33%, 100% { transform: scaleX(0); } 62%, 92% { transform: scaleX(1); } }
@keyframes bot-writing-third { 0%, 66%, 100% { transform: scaleX(0); } 92% { transform: scaleX(1); } }
@keyframes bot-output { to { transform: translateY(-5.6px); } }
@keyframes bot-cursor { 50% { opacity: .25; } }
@keyframes bot-glance { 0%, 70%, 100% { transform: translateY(.84px); } 80%, 92% { transform: translate(.56px, -.28px); } }
@keyframes bot-glass { from { transform: rotate(-22deg); } to { transform: rotate(14deg); } }
@keyframes bot-follow { from { transform: translate(-.28px, -.7px); } to { transform: translateX(.98px); } }
@keyframes bot-turn { to { transform: translateX(-7.28px); } }
@keyframes bot-launch { 0% { transform: scale(0); opacity: 0; } 14% { transform: scale(1.15); opacity: 1; } 22%, 52% { transform: scale(1); opacity: 1; }
  60% { transform: translate(-.56px, .28px); opacity: 1; } 84%, 100% { transform: translate(6.16px, -2.8px) scale(.7); opacity: 0; } }
@keyframes bot-watch { 0%, 50% { transform: translate(.84px, -.28px); } 85%, 100% { transform: translate(1.26px, -.84px); } }
@keyframes bot-speak { 0% { transform: scaleX(0); } 22%, 88% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes bot-speak-second { 0%, 24% { transform: scaleX(0); } 46%, 88% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes bot-squash { 0%, 100% { transform: none; } 45%, 60% { transform: scaleY(.62) scaleX(1.06); } }
@keyframes bot-bob { 0%, 100% { transform: none; } 50% { transform: translateY(-.56px); } }
@keyframes bot-hop { 0%, 100% { transform: none; } 18% { transform: scaleY(.9) scaleX(1.05); } 45% { transform: translateY(-2.52px) scaleY(1.05); } 72% { transform: scaleY(.93) scaleX(1.04); } }
@keyframes bot-pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes bot-breathe { 0%, 100% { transform: none; } 50% { transform: scaleY(.955) scaleX(1.02); } }
@keyframes bot-z { 0% { opacity: 0; transform: scale(.6); } 15% { opacity: 1; } 80% { opacity: .9; } 100% { opacity: 0; transform: translate(2.4px, -5px) scale(1.2); } }
@keyframes bot-pop-eyes { from { transform: scaleY(.1); } to { transform: scaleY(1); } }
@keyframes bot-wake { 0% { opacity: 0; transform: scale(0); } 30% { opacity: 1; transform: scale(1.15); } 75% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes roll-in { from { transform: translateY(.7em); opacity: 0; filter: blur(2px); } }
@keyframes roll-out { to { transform: translateY(-.7em); opacity: 0; filter: blur(2px); } }

/* --- the steps row: one batch of steps as one line -----------------------------------------------------------------
   Live: the robot, the running step's words and its time. Ended: Worked for and the batch's time over a hairline. A
   click opens the tally and each step. The working line under a chat draws the same line with no batch. */
.steps, .working { padding: 0 14px; font-size: .867em; color: var(--text3); min-width: 0; }
.steps-head, .working { display: flex; align-items: center; gap: 9px; min-width: 0; color: var(--text2); }
.steps-head { list-style: none; cursor: pointer; padding: 5px 0 8px; border-bottom: 1px solid transparent; border-radius: 0; transition: color var(--t-fast), border-color var(--t-move); }
.steps-head::-webkit-details-marker { display: none; }
.steps-head:hover { color: var(--head); }
.steps-head:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.steps[data-end] > .steps-head { color: var(--text3); border-bottom-color: var(--line); }
.steps[data-end] > .steps-head:hover { color: var(--text); }
.steps-say { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.steps-say em { font-style: normal; flex: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.steps-say em:empty { display: none; }
.steps-say em[data-failed] { color: var(--bad-ink); }
.steps-say > svg.i { flex: none; align-self: center; width: 14px; height: 14px; margin-left: -3px; opacity: 0; transition: opacity var(--t-fast), rotate var(--t-fast); }
.steps[data-end] .steps-say > svg.i, .steps-head:hover .steps-say > svg.i, .steps[open] .steps-say > svg.i { opacity: 1; }
@media (hover: none) { .steps-say > svg.i { opacity: 1; } }  /* a touch screen has no hover, so the live row shows its arrow too */
.steps[open] > .steps-head .steps-say > svg.i { rotate: 90deg; }
.working .steps-say > svg.i { display: none; }
.roll { position: relative; display: block; min-width: 0; overflow: hidden; }
.roll > span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.steps-head .roll > span, .working .roll > span { font-weight: 600; color: var(--head); }
.steps[data-end] > .steps-head .roll > span { font-weight: 500; color: inherit; }
/* opened: the tally, then each step as a row of one card */
.steps-in { padding: 8px 0 6px; }
.steps-tally { margin: 0 0 8px; }
.steps-in ol { margin: 0; padding: 0; list-style: none; border-radius: 14px; background: var(--raise); box-shadow: var(--card); overflow: hidden; }
.steps-in li + li { border-top: 1px solid var(--line); }
.step-line { list-style: none; display: grid; grid-template-columns: 16px auto minmax(0, 1fr) auto 14px; gap: 9px; align-items: center; padding: 7px 12px; color: var(--text3); }
.step-line::-webkit-details-marker { display: none; }
summary.step-line { cursor: pointer; }
summary.step-line:hover { background: var(--hover); }
.step.bare > .step-line { grid-template-columns: 16px minmax(0, 1fr) auto; }
.step-line b { font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46ch; }
.step.bare .step-line b { max-width: none; }
.step-line code { font-size: .923em; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step-line em { font-style: normal; font-size: .923em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.step-line > svg.i { width: 14px; height: 14px; transition: rotate var(--t-fast); }
.step[open] > .step-line > svg.i { rotate: 90deg; }
.step-mark { display: grid; place-items: center; width: 16px; height: 16px; color: var(--ok); }
.step-mark svg.i { width: 14px; height: 14px; }
.step[data-state="failed"] .step-mark { color: var(--bad); }
.step[data-state="failed"] .step-line b { color: var(--bad-ink); }
.steps-ring { width: 7px; height: 7px; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--wait); }
.step pre { margin: 0; max-height: 320px; overflow: auto; background: var(--chip); border-top: 1px solid var(--line); padding: 9px 12px 9px 37px; font-size: .923em; line-height: 1.5; color: var(--text2); white-space: pre-wrap; overflow-wrap: anywhere; }
.step pre.call { color: var(--text); }
.step pre:empty { display: none; }

/* --- the robot as a face: an agent's avatar in a chat, a card and a greeting ------------------------------------- */
.bot-face { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 9px; background: var(--chip); }
