/* app.css — the signed-in app's kit (app-standards 05, hand-written).
 *
 * The shared pieces every screen that wears the app shell is built from: the
 * page header, the tabs, and (as they land) the list, the dialog, the toast
 * and the loading pill. Loaded after portal.css by the four pages that get the
 * shell: /portal/, /portal/admin/, /portal/mail/ and /portal/stats/.
 *
 * Two rules for anything added here:
 * - Sizes, weights and the radius are tokens (--fs16 / --fs14 / --fs12, --fs24
 *   for a figure, --fw5 / --fw6, --r8), never a literal. They are defined on
 *   body.has-shell in portal.css, which is why every rule here starts
 *   .has-shell: the sign-in screen is the website's, not the app's.
 * - A screen uses these classes as they are. A screen that needs its header or
 *   its tabs to look different is a screen that has drifted; fix the screen.
 * scripts/e2e-ui-standards.js counts what still breaks the style guide.
 */

/* ── the page header ─────────────────────────────────────────────────────
   One on every screen, 56px, so moving between screens never shifts the
   title: Back (where there is somewhere to go back to), the title over one
   line about what is open, and the screen's tools on the right.

     <header class="rec-head">
       <button class="rec-back" …>arrow</button>        (or <a class="rec-back">)
       <div class="rec-title"><h1>Title</h1><p class="rec-sum">One line</p></div>
       <div class="rec-tools">…</div>
     </header>

   A screen with no Back and no tools may write the short form,
   <div class="page-head"><h1>…</h1><p>…</p></div>, which draws the same. */
/* The "?" after a heading (help.js) is not drawn in the app: the top bar's Help opens at the topic of what is on
   screen (2026-11-04, Zed). A "?" beside an action (.kit-tip, data-tip-help) stays. */
.has-shell .help-q:not(.kit-tip) { display: none; }
.has-shell :is(.rec-head,.page-head){min-height:3.5rem;padding-block:.5rem;margin:0 0 .75rem;border-bottom:1px solid var(--line)}
.has-shell .rec-head{display:flex;align-items:flex-start;gap:.5rem .75rem;flex-wrap:wrap}
/* The short form holds the same three things: the title over its line on the left, the tools on the right. */
.has-shell .page-head{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:.75rem;align-content:start;min-width:0}
.has-shell .page-head>:is(h1,h2,p){grid-column:1}
.has-shell .page-head>.rec-tools{grid-column:2;grid-row:1 / span 2;align-self:start}
.has-shell .kit-help{border-color:transparent}
.has-shell .rec-title{flex:1 1 12rem;min-width:0;min-height:2.5rem;display:flex;flex-direction:column}
.has-shell :is(.rec-title,.page-head) :is(h1,h2){margin:0;font-size:var(--fs16);font-weight:var(--fw6);line-height:1.4;
  letter-spacing:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.has-shell :is(.rec-sum,.page-head>p){margin:0;max-width:100%;font-size:var(--fs12);line-height:1.5;color:var(--text-muted);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.has-shell .rec-tools{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap;margin-inline-start:auto;min-width:0;min-height:2.5rem}
.has-shell .rec-tools .ml-counts{margin:0}
/* Back, and Previous / Next: icon-only, 32px, level with the title's two lines. */
.has-shell :is(.rec-back,.rec-step){appearance:none;display:inline-grid;place-items:center;flex:none;width:2rem;height:2rem;
  margin-block:.25rem;padding:0;border:1px solid var(--line);border-radius:var(--r8);background:transparent;color:var(--text);cursor:pointer}
.has-shell .rec-back{border-color:transparent}
.has-shell :is(.rec-back,.rec-step):hover:not(:disabled){background:var(--surface-2)}
.has-shell :is(.rec-back,.rec-step):disabled{opacity:.4;cursor:default}
.has-shell :is(.rec-back,.rec-step) svg{width:1rem;height:1rem;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
/* Tabs straight under a header are part of it: one rule, under the tabs. */
.has-shell .rec-head:has(~:is(.ptabs:not(:empty),.ml-tabs,.c-tabbar)){margin-bottom:0;border-bottom:0}
/* Admin's Enquiries: with a website open, its header is the page's. */
.has-shell #v-forms:has(#q-site-view:not(.hidden))>.page-head{display:none}

/* ── tabs ────────────────────────────────────────────────────────────────
   The parts of what is open, side by side under its header, the current one
   underlined. Too many for the width, they scroll sideways.

     <nav class="ptabs" role="tablist">
       <button class="ptab is-active" role="tab" aria-selected="true">…</button>
     </nav>

   .ml-tabs (the mailer, admin's client page) is the same thing under its
   older name. */
.has-shell :is(.ptabs,.ml-tabs){display:flex;flex-wrap:nowrap;width:100%;gap:.25rem;margin:0 0 1rem;padding:0;border:0;border-radius:0;background:none;
  overflow-x:auto;scrollbar-width:none;box-shadow:inset 0 -1px var(--line)}
.has-shell :is(.ptabs,.ml-tabs)::-webkit-scrollbar{display:none}
.has-shell .ptabs:empty{display:none}
.has-shell :is(.ptab,.ml-tabs button){appearance:none;flex:none;display:inline-flex;align-items:center;gap:.4rem;height:2.25rem;
  padding:0 .75rem;border:0;border-bottom:2px solid transparent;border-radius:0;background:none;box-shadow:none;font:inherit;
  font-size:var(--fs14);font-weight:var(--fw5);color:var(--text-muted);white-space:nowrap;cursor:pointer}
.has-shell :is(.ptab,.ml-tabs button):hover{color:var(--text)}
.has-shell :is(.ptab.is-active,.ml-tabs button:is(.is-active,[aria-selected="true"])){color:var(--text);border-bottom-color:var(--accent);box-shadow:none}
/* A project's parts as a list down the left (2026-11-10, Zed: "make it so that the tabs on the projects page is on a list view with
   sub tabs that show when you hover or open the tabs"): each part is a row, its sections (read from the page) are rows under it,
   shown while the part is open, hovered or has the keyboard in it. Under 1180px (the Sidebar and the list would leave the cards too
   little width) the parts go back to a strip across the top, and only the open part's sections show, as a row of small buttons. */
.has-shell #detail .proj-body{display:block}
.has-shell #detail .proj-main{min-width:0}
.has-shell #detail .proj-body>.ptabs{display:flex;flex-direction:row;flex-wrap:wrap;gap:0 .25rem;margin:0 0 1rem;padding:0 0 .5rem;overflow:visible;box-shadow:inset 0 -1px var(--line)}
.has-shell #detail .ptab-group{display:contents}
.has-shell #detail .ptab-group .ptab{width:auto;height:2.25rem;padding:0 .75rem;border-bottom:2px solid transparent;border-radius:0;background:none;white-space:nowrap}
.has-shell #detail .ptab-group .ptab.is-active{border-bottom-color:var(--accent)}
/* The sections open as the Sidebar's do (2026-11-15, Zed): a one-row grid that grows from 0fr to 1fr in .15s, after .12s
   on a hover, never under reduced motion. The wrapper is the grid; the list inside it clips while it grows. */
.has-shell #detail .ptab-subs-wrap{display:grid;grid-template-rows:0fr;transition:grid-template-rows .15s ease 0s;order:99;flex-basis:100%}
.has-shell #detail .ptab-group.is-open .ptab-subs-wrap{grid-template-rows:1fr}
.has-shell #detail .ptab-subs{display:flex;flex-wrap:wrap;gap:.25rem;min-height:0;overflow:hidden;list-style:none;margin:0;padding:0}
.has-shell #detail .ptab-group.is-open .ptab-subs{padding-block:.25rem 0}
@media (prefers-reduced-motion:reduce){.has-shell #detail .ptab-subs-wrap{transition:none!important}}
.has-shell #detail .ptab-sub{appearance:none;display:block;padding:.2rem .7rem;border:1px solid var(--line);border-radius:999px;background:none;
  font:inherit;font-size:var(--fs12);color:var(--text-muted);text-align:start;cursor:pointer;overflow-wrap:anywhere}
.has-shell #detail .ptab-sub:hover{color:var(--text);background:var(--surface-2)}
.has-shell #detail .ptab-sub.is-current{color:var(--text);font-weight:var(--fw6,600);border-color:var(--accent)}
.has-shell #detail .ptab-sub:focus-visible,.has-shell #detail .ptab-group .ptab:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.has-shell #detail .psec-off{display:none!important}
@media (min-width:1180px){
  .has-shell #detail .proj-body{display:grid;grid-template-columns:minmax(9.5rem,12rem) minmax(0,1fr);gap:1rem 1.25rem;align-items:start}
  .has-shell #detail .proj-body>.ptabs{flex-direction:column;flex-wrap:nowrap;gap:.1rem;margin:0;padding:0 .6rem 0 0;box-shadow:none;border-inline-end:1px solid var(--line);
    position:sticky;top:4.5rem;align-self:start;max-height:calc(100vh - 5.5rem);overflow-y:auto}
  .has-shell #detail .ptab-group{display:block}
  .has-shell #detail .ptab-group .ptab{display:flex;width:100%;height:auto;min-height:2.25rem;padding:.35rem .6rem;border-bottom:0;border-inline-start:2px solid transparent;
    border-radius:var(--r8,8px);justify-content:space-between;text-align:start;white-space:normal}
  .has-shell #detail .ptab-group .ptab:hover{background:var(--surface-2)}
  .has-shell #detail .ptab-group .ptab.is-active{border-inline-start-color:var(--accent);background:var(--surface-2)}
  .has-shell #detail .ptab-subs{display:block;padding:0 0 0 .9rem}
  .has-shell #detail .ptab-group:is(.is-open,:focus-within) .ptab-subs-wrap{grid-template-rows:1fr}
  .has-shell #detail .ptab-group:is(.is-open,:hover,:focus-within) .ptab-subs{padding-block:.1rem .35rem}
  @media (hover:hover){.has-shell #detail .ptab-group:hover .ptab-subs-wrap{grid-template-rows:1fr;transition-delay:.12s}}
  .has-shell #detail .ptab-sub{width:100%;height:2rem;padding:0 .6rem;border:0;border-inline-start:1px solid var(--line);border-radius:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .has-shell #detail .ptab-sub.is-current{border-inline-start-color:var(--accent)}
}
/* Admin's client page has a button beside its tabs: the rule runs under both. */
.has-shell .c-tabbar{align-items:flex-end;box-shadow:inset 0 -1px var(--line)}
.has-shell .c-tabbar .ml-tabs{width:auto;margin-bottom:0;box-shadow:none}
.has-shell .c-tabbar>.btn{margin-bottom:.25rem}

/* ── the dialog (ZZKit.confirm / confirmDelete / prompt, app-kit.js) ─────
   A question in the middle of the window, over a dimmed page. One filled
   button; red only when it deletes. */
.has-shell .kit-dialog{width:min(30rem,calc(100% - 2rem));margin:auto;padding:0;border:1px solid var(--line);border-radius:var(--r8);
  background:var(--surface);color:var(--text);box-shadow:var(--shadow-lg);
  max-block-size:calc(100dvh - 2rem);overflow:auto}   /* app-standards 3.56 (rule 200): a dialog always fits the window, its body scrolls */
.kit-dialog::backdrop{background:rgba(0,0,0,.4)}
.has-shell .kit-dialog-form{display:grid;gap:.75rem;padding:1rem}
.has-shell .kit-dialog-msg{margin:0;font-size:var(--fs14);font-weight:400;line-height:1.5;color:var(--text);white-space:pre-line}
.has-shell .kit-dialog-input{block-size:2.25rem;width:100%}
.has-shell .kit-dialog-acts{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.5rem}   /* three buttons (New's choice) wrap, never past the edge */


/* Settings (2026-11-04): a card's fields two by two, an address the full width. The page's full width since the 7 Nov checklist
   (Found 11: a 52rem column left the right half of a wide screen empty); from 1100px Your business and Billing details sit
   side by side, Using credits under both. */
.has-shell .set-grid textarea{min-height:4.5rem}
.has-shell .set-pay{margin:0;font-size:var(--fs14);color:var(--text-soft)}
.has-shell .set-forms{display:grid;gap:.9rem;margin-bottom:.9rem}
.has-shell .set-forms>.card.panel{margin:0}
.has-shell .set-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 1rem}
.has-shell .set-grid .set-wide{grid-column:1/-1}
@media (max-width:640px){.has-shell .set-grid{grid-template-columns:minmax(0,1fr)}}
@media (min-width:1100px){.has-shell .set-forms{grid-template-columns:repeat(2,minmax(0,1fr))}
  .has-shell .set-forms>:not(.card.panel:nth-child(-n+2)){grid-column:1/-1}}
.has-shell .set-law-fold{margin-top:.5rem}
.has-shell .set-law-fold>summary{cursor:pointer;font-size:var(--fs14);color:var(--text-soft)}
.has-shell .set-acts{display:none}   /* the top bar's Save presses it */

/* One AI button, the top bar's (#d-ai); the cards' own are kept for their state but not drawn (2026-11-04). */
.has-shell #detail .bd-helper-btn,.has-shell #detail .bd-ai-btn{display:none}

/* ── messages (ZZKit.toast): bars across the top, a × each. Red for an error (gone after 30 s), amber for a
   warning (15 s), green for something done and blue for news (5 s); white words on each, 4.5:1 or better. ── */
.kit-flashes{position:fixed;top:.75rem;z-index:320;display:grid;gap:.5rem;inset-inline:1rem}
.kit-flashes[hidden]{display:none}
.kit-flash{display:flex;align-items:center;gap:.75rem;padding:.5rem .5rem .5rem .9rem;border-radius:var(--r8);
  background:#b42318;color:#fff;font-size:var(--fs14);line-height:1.4}
.kit-flash-text{margin:0;flex:1 1 auto;min-width:0;overflow-wrap:anywhere}
.kit-flash-x{flex:none;inline-size:2rem;block-size:2rem;border:0;border-radius:var(--r8);background:transparent;
  color:#fff;font-size:var(--fs16,1rem);line-height:1;cursor:pointer}
.kit-flash-x:hover,.kit-flash-x:focus-visible{background:rgb(255 255 255 / .18)}
@media (pointer:coarse){.kit-flash-x{inline-size:2.75rem;block-size:2.75rem}}
.kit-flash.is-ok{background:#067647}
.kit-flash.is-warn{background:#93370d}
.kit-flash.is-info{background:#1f4fa3}
/* Every dropdown can be typed in (app-kit.js, 2026-11-05): its panel, a box over the options. */
.kit-combo-pop{position:fixed;z-index:330;display:flex;flex-direction:column;min-width:14rem;padding:.25rem;
  background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:var(--r8,8px);font-size:var(--fs14,.875rem)}
/* The typing box lies over the <select> itself (its place and size are set by app-kit.js), so typing is in the field. */
.kit-combo-in{position:fixed;z-index:331;box-sizing:border-box;margin:0;padding:0 .6rem;border:1px solid var(--accent);border-radius:var(--r8,8px);
  background:var(--surface);color:var(--text)}
.kit-combo-in::placeholder{color:var(--text);opacity:.6}
.kit-combo-in:focus{outline:2px solid var(--accent);outline-offset:-1px}
.kit-combo-list{flex:1 1 auto;min-height:0;margin:0;padding:0;list-style:none;overflow-y:auto;overscroll-behavior:contain}
.kit-combo-opt{padding:.4rem .6rem;border-radius:var(--r8,8px);cursor:pointer;overflow-wrap:anywhere}
.kit-combo-opt.is-active{background:var(--line)}
.kit-combo-opt.is-chosen{font-weight:var(--fw6,600)}
.kit-combo-opt[aria-disabled=true]{opacity:.5;cursor:default}
.kit-combo-create{color:var(--accent)}
.kit-combo-group{padding:.4rem .6rem .15rem;font-size:var(--fs12,.75rem);color:var(--text-muted)}
.kit-combo-none{padding:.4rem .6rem;color:var(--text-muted)}
@media (pointer:coarse){.kit-combo-in{font-size:16px !important}.kit-combo-opt{padding:.65rem .6rem}}
/* A message line whose words went to the bar at the top (ZZKit.say) keeps them out of sight. */
.kit-said{display:none!important}
/* A field that must be filled in says so under it (app-kit.js need(), 2026-11-06). */
.kit-req{display:block;margin-top:.25rem;color:var(--red,#b42318);font-size:var(--fs12,.75rem);font-weight:var(--fw5,500)}
/* A format that looks wrong (rule 196): amber, a warning not an error, and Save still saves. */
.kit-warn{display:block;margin-top:.25rem;color:var(--warn-ink,#bc4b09);font-size:var(--fs12,.75rem);font-weight:var(--fw5,500)}
:is(input,select,textarea)[aria-invalid=true]{border-color:var(--red,#b42318)!important}
/* Every Save waits for a change (2026-11-06, Zed: "make it so ALL save buttons are greyed out with a transparent grey over
   it with not being clickable"): disabled, it wears a see-through grey cover and takes no press; a change lifts it. */
.has-shell :is(.kit-save,.kit-top-save){position:relative}
.has-shell :is(.kit-save,.kit-top-save):disabled{opacity:1;cursor:not-allowed}
.has-shell :is(.kit-save,.kit-top-save):disabled::after{content:"";position:absolute;inset:-1px;border-radius:inherit;
  background:rgb(120 120 128 / .45);pointer-events:none}
/* A manual Save (ZZKit.manualSave / pending) with something waiting wears a dot (2026-11-10). */
.has-shell :is(.kit-save,.kit-top-save).is-pending:not(:disabled)::before{content:"";position:absolute;inset-block-start:-.25rem;inset-inline-end:-.25rem;
  inline-size:.6rem;block-size:.6rem;border-radius:50%;background:var(--amber,#f59e0b);border:2px solid var(--bg,#fff)}
.has-shell .kit-dialog--wide{width:min(44rem,calc(100% - 2rem))}
.has-shell .kit-dialog-title{margin:0;font-size:var(--fs16,1rem);font-weight:600}
.has-shell .kit-dialog-body{max-block-size:60vh;overflow:auto}
/* A column's heading sorts its list (app-kit.js sortable(), 2026-11-06). */
.has-shell th[data-kit-sort]{cursor:pointer;user-select:none;white-space:nowrap}
.has-shell th[data-kit-sort]:hover{color:var(--text)}
.has-shell th[data-kit-sort]:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.has-shell th[data-kit-sort]::after{content:"";display:inline-block;inline-size:.9em;margin-inline-start:.25em;opacity:.35}
.has-shell th[data-kit-sort][aria-sort=none]:hover::after{content:"\2195"}
.has-shell th[data-kit-sort][aria-sort=ascending]::after{content:"\2191";opacity:1}
.has-shell th[data-kit-sort][aria-sort=descending]::after{content:"\2193";opacity:1}


/* ── the loading pill (app-kit.js: any /api/ call still running) ───────── */
.has-shell .kit-loading{position:fixed;top:.5rem;left:50%;translate:-50% 0;z-index:300;padding:.25rem .75rem;border:1px solid var(--line);
  border-radius:999px;background:var(--surface);color:var(--text-muted);font-size:var(--fs12);pointer-events:none}
.has-shell .kit-loading[hidden]{display:none}

/* ── the table ───────────────────────────────────────────────────────────
   A list of records is a table on a laptop: values line up down a column,
   which is how lists are compared. A row that opens something carries
   data-id and tabindex="0"; the page opens it on a click or Enter.

     <div class="kit-table-wrap"><table class="kit-table">
       <thead><tr><th scope="col">Client</th>…</tr></thead>
       <tbody>
         <tr class="kit-group"><th colspan="3">Invited (2)</th></tr>   (a group's heading)
         <tr data-id="…" tabindex="0"><td class="kit-key">…</td><td class="kit-dim">…</td></tr>
       </tbody>
     </table></div>

   Too wide for its place, it scrolls sideways inside its frame. */
/* position:relative, so a screen-reader-only heading in the table is clipped with it: an absolutely placed box whose
   containing block is the page is not held by this overflow, and widened the page from inside a wide table. */
.has-shell .kit-table-wrap{position:relative;margin:0 0 .75rem;border:1px solid var(--line);border-radius:var(--r8);background:var(--surface);overflow-x:auto}
.has-shell .kit-table{width:100%;border-collapse:collapse;font-size:var(--fs14)}
/* Nothing to list: the page says so in words, without an empty header row. */
.has-shell .kit-table-wrap:has(tbody:empty){display:none}
.has-shell .kit-table :is(th,td){padding:.5rem .75rem;text-align:start;vertical-align:middle;white-space:nowrap;border-bottom:1px solid var(--line)}
.has-shell .kit-table thead th{font-size:var(--fs12);font-weight:var(--fw6);color:var(--text-muted);background:var(--surface-2)}
.has-shell .kit-table tbody tr:last-child>*{border-bottom:0}
/* A line between columns, in the header and every row: not on a phone, where a row is a card with no columns. */
@media (min-width:768px){.has-shell .kit-table :is(th,td)+:is(th,td){border-inline-start:1px solid var(--line)}}
.has-shell .kit-table .kit-group th{font-size:var(--fs12);font-weight:var(--fw6);color:var(--text);background:var(--surface-2)}
.has-shell .kit-table .kit-key{font-weight:var(--fw5)}
.has-shell .kit-table .kit-dim{color:var(--text-muted)}
.has-shell .kit-table tr[data-id]{cursor:pointer}
.has-shell .kit-table tr[data-id]:hover>td{background:var(--surface-2)}
.has-shell .kit-table tr[data-id]:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
/* A List View's table has no frame of its own (app-standards 05, Grid layout):
   it runs from the Sidebar's edge to the window's, a line above and below it,
   and it takes the height the window has left, so the rows scroll under a
   header that stays put and the page does not (ZZKit sizes it; see app-kit.js).
   A table inside a card or a folded section is a panel's, and keeps its frame. */
.has-shell{--pad:1.5rem}
@media (max-width:767px){.has-shell{--pad:1rem}}
.has-shell .kit-table-wrap{overflow:auto}
.has-shell .kit-table-wrap:not(:is(.card,.panel,.ag-box,details,dialog) *){margin-inline:calc(-1 * var(--pad));border-inline:0;border-radius:0}
.has-shell .kit-table thead th{position:sticky;top:0;z-index:1;box-shadow:inset 0 -1px var(--line)}
/* A status is a colour dot and its name (app-standards 05, Status colour
   indicator), in a list and on a record alike: never a pill. The element's
   colour is the dot's; the words are drawn in the text colour. */
.has-shell .status-pill{display:inline-flex;align-items:center;gap:.5rem;padding:0;border:0;border-radius:0;background:none;
  font-size:var(--fs14);font-weight:400;white-space:nowrap;-webkit-text-fill-color:var(--text)}
.has-shell .status-pill::before{content:"";flex:none;width:.625rem;height:.625rem;border-radius:50%;background:currentColor;
  box-shadow:inset 0 0 0 1px color-mix(in oklab,var(--text) 15%,transparent)}
/* On a phone there are no columns to compare down: each row is a small card,
   its cells one under another. The header row stays for a screen reader. */
@media (max-width:767px){
  .has-shell .kit-table thead{display:block;position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .has-shell .kit-table :is(tbody,tr,th,td){display:block}
  .has-shell .kit-table tr{display:flex;flex-direction:column;padding:.6rem .75rem;border-bottom:1px solid var(--line)}
  /* Status is the first column on a laptop; a card still starts with the record's name. */
  .has-shell .kit-table tbody td.kit-key{order:-1;margin-top:0}
  .has-shell .kit-table tbody td.kit-key+td{margin-top:0}
  .has-shell .kit-table tbody td.kit-key~td:first-of-type{margin-top:.2rem}
  .has-shell .kit-table tbody tr:last-child{border-bottom:0}
  .has-shell .kit-table :is(th,td){padding:0;border:0;white-space:normal;overflow-wrap:anywhere}
  .has-shell .kit-table td+td{margin-top:.2rem}
  .has-shell .kit-table .kit-group{padding-block:.4rem;background:var(--surface-2)}
  .has-shell .kit-table tr[data-id]:hover>td{background:none}
}

/* ── the Dashboard's Quick links, and their editor ─────────────────────── */
.has-shell .quick-head{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:.6rem}
.has-shell .quick-head h2{margin:0}
.has-shell .quick-list{list-style:none;margin:0 0 .75rem;padding:0;max-width:32rem}
.has-shell .quick-list li{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.3rem 0;border-bottom:1px solid var(--line)}
.has-shell #quick-editor .inline-row select{width:auto;min-width:14rem}

/* ── what a second look in the dark theme and on a phone found ───────────
   (scripts/e2e-ui-modes.js holds these.) The Voicemail tag's amber was
   3.8:1 on its own tint: mixed towards the text colour it passes in both
   themes. */
.has-shell .out-tag.voicemail{color:color-mix(in oklab,var(--amber) 70%,var(--text))}
/* A finger: Back and Previous / Next, a filter's choices and anything that
   folds open are 44px, like the buttons the touch layer already sizes. */
@media (pointer:coarse){
  .has-shell :is(.rec-back,.rec-step){width:2.75rem;height:2.75rem;margin-block:0}
  .has-shell .ml-count{min-height:2.75rem}
  .has-shell details>summary{min-height:2.75rem;align-content:center}
}
/* A phone has height to spare: the line under a title wraps instead of
   being cut short. */
@media (max-width:767px){.has-shell :is(.rec-sum,.page-head>p){white-space:normal}}

/* ── the Agents module's Edit View: two panels and a divider ─────────────
   (assets/agents.js.) Left: the person's details and the websites they
   answer. Right: their working hours. The divider is dragged, or moved with
   the arrow keys, and its place is kept per browser (--ag-left). On a phone
   the panels stack and there is no divider. */
.has-shell .ag-edit .agent{margin:0;padding:0;border:0;background:none}
.has-shell .ag-panels{display:grid;grid-template-columns:minmax(0,var(--ag-left,46%)) .75rem minmax(0,1fr);align-items:start}
.has-shell .ag-pane{display:grid;gap:.75rem;min-width:0}
.has-shell .ag-split{position:relative;align-self:stretch;min-height:8rem;cursor:col-resize;touch-action:none}
.has-shell .ag-split::after{content:"";position:absolute;inset-block:0;inset-inline:calc(50% - .5px);background:var(--line)}
.has-shell .ag-split:is(:hover,:focus-visible)::after{inset-inline:calc(50% - 1px);background:var(--accent)}
.has-shell .ag-split:focus-visible{outline:none}
/* Working hours' quick fill: its words on a line, then the two times and the Fill buttons on one line together. */
.has-shell .quickfill{flex-direction:row;flex-wrap:wrap;align-items:center;gap:.45rem .75rem}
.has-shell .quickfill>.qf-label{flex:0 0 100%}
.has-shell .quickfill .qf-row{flex-wrap:nowrap}
@media (max-width:767px){.has-shell .quickfill .qf-row{flex-wrap:wrap}}
/* The record's Status line, above its panels: the status, then a note that takes the rest of the row. */
.has-shell .ag-band{display:flex;align-items:flex-start;gap:.75rem;margin:0 0 .35rem}
.has-shell .ag-band-hint{margin:0 0 .75rem;padding-bottom:.75rem;border-bottom:1px solid var(--line);font-size:var(--fs12)}
.has-shell .ag-band .field{margin:0}
.has-shell .ag-band-status{flex:0 0 13rem}
.has-shell .ag-band-note{flex:1 1 auto;min-width:0}
.has-shell .ag-band :is(input,select){display:block;width:100%}
.has-shell .ag-edit .ag-acts [data-act="remove"]{display:none}
.has-shell .status-pill.ag-rs-working{color:var(--mint)}
.has-shell .status-pill.ag-rs-leave{color:var(--amber)}
.has-shell .status-pill.ag-rs-sick{color:var(--red)}
.has-shell .status-pill.ag-rs-training{color:var(--accent)}
.has-shell .status-pill.ag-rs-left{color:var(--text-muted)}
.has-shell .status-pill.ask-pill{color:var(--amber)}   /* an "Ask to add it" sent, waiting on us */
.has-shell .ag-table .ag-col-note{max-width:16rem;overflow:hidden;text-overflow:ellipsis}
@media (max-width:767px){.has-shell .ag-band{flex-direction:column}.has-shell .ag-band-status{flex:none;width:100%}.has-shell .ag-band-note{width:100%}
  .has-shell .ag-table .ag-col-note:empty{display:none}}
.has-shell .ag-box{min-width:0;padding:1rem;border:1px solid var(--line);border-radius:var(--r8);background:var(--surface)}
.has-shell .ag-box-h{margin:0 0 .75rem;font-size:var(--fs14);font-weight:var(--fw6);line-height:1.4}
.has-shell .ag-box .field{margin:0 0 .75rem}
.has-shell .ag-box .field :is(input,select){display:block;width:100%;margin-top:.25rem}
.has-shell .ag-status{display:flex;align-items:center;gap:.5rem;margin:0 0 .75rem;font-size:var(--fs14)}
.has-shell .ag-acts{margin:0}
.has-shell .ag-box .sitepick-h{margin:0 0 .5rem}
.has-shell .ag-sites{width:100%;border-collapse:collapse;font-size:var(--fs14)}
.has-shell .ag-sites :is(th,td){padding:.35rem .5rem;border-bottom:1px solid var(--line);text-align:start;vertical-align:middle}
.has-shell .ag-sites thead th{font-size:var(--fs12);font-weight:var(--fw5);color:var(--text-muted)}
.has-shell .ag-sites tbody th{font-weight:var(--fw5);overflow-wrap:anywhere}
.has-shell .ag-sites tbody tr:last-child>*{border-bottom:0}
/* The last row keeps its own line and the hint under it has none, so the row isn't taller below its tick boxes
   than above (2026-11-03: the hint's line, .75rem further down, was standing in for the row's). */
.has-shell .ag-box .ag-sites tbody tr:last-child>*{border-bottom:1px solid var(--line)}
.has-shell .ag-box:has(.ag-sites)>.sitepick-h{margin-top:.625rem!important;padding-top:0!important;border-top:0!important}
.has-shell .ag-sites :is(th,td):not(:first-child){width:5.5rem;text-align:center}
.has-shell .ag-tick{display:inline-flex;align-items:center;justify-content:center;min-width:2rem;min-height:2rem;margin:0;cursor:pointer}
.has-shell .ag-box .hours-head{margin:0 0 .5rem;padding:0;border:0}
.has-shell .ag-box .agent-cue{margin:0 0 .75rem}
.has-shell .ag-edit .agent-dirty{margin:.75rem 0 0;font-size:var(--fs12)}
.has-shell .ag-edit .agent.is-dirty .agent-dirty{color:var(--warn-ink);font-weight:var(--fw6)}
.has-shell .ag-table td{white-space:normal}
.has-shell .ag-table :is(.kit-key,.ag-col-phone){white-space:nowrap}
@media (pointer:coarse){.has-shell .ag-tick{min-width:2.75rem;min-height:2.75rem}}
@media (max-width:860px){
  .has-shell .ag-panels{grid-template-columns:minmax(0,1fr);gap:.75rem}
  .has-shell .ag-split{display:none}
}
/* The green "Connected" tag was 3.9:1 on its own tint: mixed towards the text colour it passes in both themes. */
.has-shell .live-tag.is-on{color:color-mix(in oklab,var(--mint) 55%,var(--text))}

/* ── Communications (assets/comms.js) ──────────────────────────────────
   The filter bar keeps its three filters on one line where there is room;
   an unread row is bold; a record's facts are a two-column list. */
.has-shell .cm-off{display:none!important}
.has-shell .cm-bar{gap:.5rem 1.25rem}
.has-shell .cm-bar .ml-counts{align-items:center}
.has-shell .cm-bar .ml-counts>.muted{font-size:var(--fs12)}
.has-shell .cm-table td{white-space:normal}
.has-shell .cm-table .cm-when{white-space:nowrap}
.has-shell .cm-table .cm-gist{max-width:28rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.has-shell .cm-row.is-unread :is(.kit-key,.cm-gist){font-weight:var(--fw6);color:var(--text)}
.has-shell .cm-row:not(.is-unread) .kit-key{font-weight:400}
.has-shell .status-pill.cm-st-unread{color:var(--accent);border-color:color-mix(in oklab,var(--accent) 45%,transparent)}
.has-shell .status-pill.cm-st-archived{color:var(--text-muted)}
.has-shell .cm-more{margin:.5rem 0 0;font-size:var(--fs12)}
.has-shell .cm-one .rec-head{margin-bottom:1rem}
.has-shell .cm-one-h{margin:0;font-size:var(--fs16);font-weight:var(--fw6);line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.has-shell .cm-one-h:focus{outline:none}
.has-shell .card.panel:has(> * > .cm-one),.has-shell .card.panel:has(.ag-edit){padding-top:0;border-top-width:0}  /* an open record in a card (admin Calls): its title sits where a page title does */
.has-shell .cm-facts{display:grid;gap:.35rem;margin:0 0 1rem;font-size:var(--fs14)}
.has-shell .cm-line{display:grid;grid-template-columns:9rem minmax(0,1fr);gap:.75rem}
.has-shell .cm-line dt{color:var(--text-muted)}
.has-shell .cm-line dd{margin:0;overflow-wrap:anywhere}
.has-shell .cm-message{margin:.35rem 0 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:var(--fs14);line-height:1.6}
.has-shell .cm-audio{display:block;width:100%;max-width:28rem;margin-top:.5rem}
@media (max-width:767px){
  .has-shell .cm-line{grid-template-columns:minmax(0,1fr);gap:0}
  .has-shell .cm-table .cm-gist{max-width:none;white-space:normal}
}
.has-shell .cm-bar{align-items:center}
.has-shell .cm-bar .ml-counts{margin:0}
.has-shell .cm-bar .q-site-field label{font-size:var(--fs12);font-weight:400;color:var(--text-muted)}

/* ── the project: its header band, checklist and Library ────────────────
   (portal/index.html, assets/project-parts.js.) The Status band says
   where it is up to, the Header band what it is and has, with the plan's
   details beside it. Both use the same two columns, so a fact sits over a
   fact and neither is spread across a wide window. */
/* The top of a project (2026-11-04): a line, the next step, the plan. */
.has-shell .proj-top{display:grid;gap:.75rem}
.has-shell .pt-line{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem .75rem;margin:0;font-size:var(--fs14)}
.has-shell .pt-line .pt-url:not(:empty)::before{content:"·";margin-inline-end:.75rem;color:var(--text-muted)}
.has-shell .pt-next{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem 1rem;
  padding:.75rem 1rem;border:1px solid var(--line);border-radius:var(--r8);background:var(--surface)}
.has-shell .pt-next-text{min-width:0}
/* The project's status beside its name in the top bar (2026-11-09). */
.has-shell .rec-title-row{display:flex;align-items:center;gap:.75rem;min-width:0}
.has-shell .rec-title-row h1{min-width:0}
.has-shell .rec-status{flex:none;display:inline-flex;align-items:center;font-size:var(--fs12);white-space:nowrap}
.has-shell .rec-status:empty{display:none}
/* The timeline over Next step (2026-11-09): a row of numbered steps joined by a line, done ones ticked, the current one
   in the accent; a column on a phone. */
.has-shell .pt-tl{flex-basis:100%;list-style:none;margin:0 0 .25rem;padding:0;display:flex;counter-reset:none}
.has-shell .pt-step{flex:1 1 0;min-width:0;position:relative;display:flex;flex-direction:column;align-items:center;gap:.35rem;
  text-align:center;font-size:var(--fs12);color:var(--text-muted)}
.has-shell .pt-step::before{content:"";position:absolute;top:.75rem;left:calc(-50% + .9rem);right:calc(50% + .9rem);height:2px;background:var(--line)}
.has-shell .pt-step:first-child::before{display:none}
.has-shell .pt-step.is-done::before,.has-shell .pt-step.is-now::before{background:var(--accent)}
.has-shell .pt-dot{position:relative;z-index:1;width:1.5rem;height:1.5rem;border-radius:50%;display:grid;place-items:center;
  border:2px solid var(--line);background:var(--surface);color:var(--text-muted);font-size:var(--fs12);font-weight:var(--fw6,600);line-height:1}
.has-shell .pt-step.is-done .pt-dot{background:var(--accent);border-color:var(--accent);color:var(--accent-ink,#fff)}
.has-shell .pt-step.is-now .pt-dot{border-color:var(--accent);color:var(--accent)}
.has-shell .pt-step.is-now .pt-step-name{color:var(--text);font-weight:var(--fw6,600)}
.has-shell .pt-step.is-done .pt-step-name{color:var(--text)}
.has-shell .pt-step.is-optional .pt-dot{border-style:dashed}
.has-shell .pt-step-name{overflow-wrap:anywhere}
@media (max-width:767px){
  .has-shell .pt-tl{flex-direction:column;gap:.5rem}
  .has-shell .pt-step{flex-direction:row;text-align:start;gap:.6rem}
  .has-shell .pt-step::before{top:auto;bottom:calc(50% + .9rem);left:.7rem;right:auto;width:2px;height:calc(.5rem + 100% - 1.5rem)}
}
/* The Library in two columns (2026-11-09, Zed: "left one will be quite small having the buttons and stuff and the right
   side would have the images"): the logo, the buttons and Find images on the left; what was found and the photos on
   the right. One column under 1024px. */
.has-shell .bd-lib{display:grid;gap:1rem}
@media (min-width:1024px){ .has-shell .bd-lib{grid-template-columns:minmax(14rem,18rem) minmax(0,1fr);align-items:start} }
.has-shell .bd-lib-side{display:grid;gap:.75rem;min-width:0}
.has-shell .bd-lib-side .bd-logo-box{margin:0}
.has-shell .bd-lib-side .bd-ph-acts{display:flex;flex-direction:column;align-items:stretch;gap:.5rem}
.has-shell .bd-lib-side .bd-ph-acts .btn{white-space:normal;height:auto;min-height:2rem;text-align:center}
.has-shell .bd-lib-side .bd-logo-row{flex-direction:column;align-items:flex-start}
.has-shell .bd-lib-side .inline-row{flex-wrap:wrap}
.has-shell .bd-lib-main{min-width:0}
.has-shell .bd-lib-main > h3:first-child{margin-top:0}
.has-shell .bd-web-found{border:1px solid var(--line);border-radius:var(--r8);padding:.75rem;margin-bottom:1rem}
.has-shell .bd-web-found-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem}
.has-shell .bd-web-found-head h3{margin:0}
/* An image found that a visitor never sees (2026-11-09): marked on its picture and faded. */
.has-shell .bd-web-list li.is-unseen img{opacity:.55}
.has-shell .bd-web-unseen{position:absolute;top:6px;right:6px;padding:1px 6px;border-radius:var(--r8);font-size:var(--fs12);
  background:#8a3b00;color:#fff;white-space:nowrap}
.has-shell .pt-next-text p{margin:0}
.has-shell .pt-label{font-size:var(--fs12);color:var(--text-muted)}
.has-shell #d-next{font-size:var(--fs14);font-weight:var(--fw5,500)}
.has-shell .pt-plan{display:flex;flex-wrap:wrap;align-items:baseline;gap:.25rem .75rem;margin:0;font-size:var(--fs14)}
.has-shell #proj-plan-wrap .proj-plan{max-width:40rem}
.has-shell .proj-facts{display:grid;grid-template-columns:minmax(11rem,20rem) minmax(0,1fr);gap:.75rem 1.5rem;margin:0}
@media (max-width:767px){.has-shell .proj-facts{grid-template-columns:minmax(0,1fr)}}
/* Plan details sit to the right of the header band's facts (Zed, 2026-10-16): a
   service a line, its name and where it stands; what it does is the name's hint,
   and Ask to add it says it with the price. Under 1024px they go under the facts. */
.has-shell .proj-band-cols{display:grid;grid-template-columns:minmax(0,1fr) minmax(18rem,26rem);gap:1rem 2rem;align-items:start}
@media (max-width:1023px){.has-shell .proj-band-cols{grid-template-columns:minmax(0,1fr)}}
.has-shell .proj-plan>h3{margin:0 0 .15rem;font-size:var(--fs12);font-weight:400;color:var(--text-muted)}
.has-shell .plan-list{list-style:none;margin:0;padding:0}
.has-shell .plan-list .plan-row{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem .5rem;padding:.3rem 0;border-top:0}
.has-shell .plan-list .plan-row+.plan-row{border-top:1px solid var(--line)}
.has-shell .plan-name{flex:1 1 auto;min-width:0;font-size:var(--fs14);font-weight:var(--fw5)}
.has-shell .plan-extra{flex:1 0 100%;font-size:var(--fs14)}
.has-shell .plan-sub{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem .5rem}
.has-shell .plan-extra .feat-install{margin:.1rem 0 0;padding:0;border:0}
.has-shell .plan-site+.plan-site{margin-top:.5rem;padding-top:0;border-top:0}
.has-shell .plan-site-h{margin:.25rem 0 0;font-size:var(--fs14)}
.has-shell .sw-site>.field{margin:0}          /* Add website: the box and its button on one line (portal.css) */
/* An Edit View's bands (app-standards 05, Edit View layout). A band is a strip
   of the page, not a box on it: no frame, no shade, and one line between it
   and the next, from the Sidebar's edge to the window's, with 12px either
   side. The page header above gives up its own line to the first band's. */
.has-shell .kit-band{margin:0 calc(-1 * var(--pad));padding:.75rem var(--pad);border-top:1px solid var(--line)}
.has-shell .kit-band:not(:has(+.kit-band)){border-bottom:1px solid var(--line)}
.has-shell .rec-head:has(+:is(.kit-band,.kit-bands)){margin-bottom:0;border-bottom:0}
/* Editors in a band keep to a form's width, so a wide window does not stretch
   them; what follows the last band, unless it is the tabs, stands clear of it. */
.has-shell .kit-band .field{margin:0}
.has-shell .kit-band>.field{max-width:32rem}
.has-shell .kit-band .ag-band{margin:0}
.has-shell .kit-band .ag-band:not(:last-child){margin-bottom:.75rem}
.has-shell .kit-band .ag-band-note{max-width:48rem}
.has-shell :is(.kit-band,.kit-bands)+.card{margin-top:1rem}
.has-shell .kit-band>.proj-facts+div:not(:empty){margin-top:.5rem}
.has-shell .proj-facts.is-stack{grid-template-columns:minmax(0,1fr)}
.has-shell .proj-facts.is-stack dd{white-space:pre-wrap}
.has-shell .kit-band>h2{margin:0 0 .5rem;font-size:var(--fs14);font-weight:var(--fw6)}
.has-shell .proj-facts dt{font-size:var(--fs12);color:var(--text-muted)}
.has-shell .proj-facts dd{margin:.15rem 0 0;font-size:var(--fs14);overflow-wrap:anywhere}
.has-shell .pj-alert{color:var(--accent);border-color:color-mix(in oklab,var(--accent) 45%,transparent)}
.has-shell .pp-bar{height:.5rem;border-radius:var(--r8);background:var(--surface-2);overflow:hidden}
.has-shell .pp-bar>i{display:block;height:100%;background:var(--accent)}
.has-shell .pp-sum{margin:.5rem 0 0;font-size:var(--fs14)}
.has-shell .pp-next{margin:.5rem 0 0;padding:.5rem .75rem;border:1px solid color-mix(in oklab,var(--accent) 45%,transparent);border-radius:var(--r8);font-size:var(--fs14)}
.has-shell .pp-phase{margin:1rem 0 .25rem}
.has-shell .pp-list{list-style:none;margin:0;padding:0}
.has-shell .pp-item{display:flex;align-items:center;gap:.6rem;padding:.3rem 0;border-bottom:1px solid var(--line);font-size:var(--fs14)}
.has-shell .pp-item:last-child{border-bottom:0}
.has-shell .pp-item.is-done .pp-what{color:var(--text-muted);text-decoration:line-through}
.has-shell .pp-item.is-done .pp-auto{text-decoration:none;display:inline-block}
.has-shell .pp-item.is-next .pp-what{font-weight:var(--fw6)}
.has-shell .pp-tick{display:inline-flex;align-items:center;justify-content:center;min-width:2rem;min-height:2rem;margin:0;cursor:pointer}
.has-shell .pp-what{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}
.has-shell .pp-auto{font-size:var(--fs12)}
.has-shell .pp-own-client{color:var(--accent);border-color:color-mix(in oklab,var(--accent) 45%,transparent)}
.has-shell .pp-tools{display:inline-flex;align-items:center;gap:.5rem;flex-wrap:wrap;justify-content:flex-start;flex:0 0 20rem}
/* Whose and the tools line up down the list (2026-11-03): each a column of its own width, whatever its words. */
.has-shell .pp-item>.pp-own{flex:0 0 5.5rem;justify-content:flex-start}
@media (max-width:767px){.has-shell .pp-tools{flex:1 1 auto}.has-shell .pp-item>.pp-own{flex:0 0 auto}}
.has-shell .pp-add{margin-top:1rem}
.has-shell .lb-top{margin:.5rem 0}
.has-shell .lb-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(11rem,1fr));gap:.75rem;margin-top:.75rem}
.has-shell .lb-card{margin:0;border:1px solid var(--line);border-radius:var(--r8);overflow:hidden;background:var(--surface)}
.has-shell .lb-card>img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;background:var(--surface-2)}
.has-shell .lb-card.is-gone>img{opacity:.4}
.has-shell .lb-card figcaption{display:grid;gap:.25rem;padding:.5rem .6rem;font-size:var(--fs12)}
.has-shell .lb-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-muted)}
.has-shell .lb-acts{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem .75rem}
.has-shell .lb-st{justify-self:start;color:var(--warn-ink);border-color:color-mix(in oklab,var(--amber) 45%,transparent)}
.has-shell .lb-st.lb-st-done{color:var(--mint);border-color:color-mix(in oklab,var(--mint) 45%,transparent)}
.has-shell .lb-files{margin-top:.25rem}
.has-shell .lb-file{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;font-size:var(--fs14)}
.has-shell .lb-file>a{flex:1 1 12rem;min-width:0;overflow-wrap:anywhere}
.has-shell .lb-site .panel-head{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap}
.has-shell .lb-site .panel-head h2{margin:0}
/* ── the Support centre: threads on the left, the open one on the right ── */
.has-shell .sp-contact{margin-bottom:1rem}
.has-shell .sp-panels{display:grid;grid-template-columns:minmax(0,18rem) minmax(0,1fr);gap:.75rem;align-items:start}
.has-shell .sp-threads{list-style:none;margin:0;padding:0;display:grid;gap:.35rem}
.has-shell .sp-thread{display:grid;gap:.15rem;width:100%;padding:.6rem .75rem;border:1px solid var(--line);border-radius:var(--r8);background:var(--surface);font:inherit;font-size:var(--fs14);color:inherit;text-align:start;cursor:pointer}
.has-shell .sp-thread:hover{background:var(--surface-2)}
.has-shell .sp-thread.is-active{border-color:var(--accent)}
.has-shell .sp-t-top{display:flex;align-items:center;justify-content:space-between;gap:.5rem}
.has-shell .sp-t-top b{font-weight:var(--fw6);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.has-shell .sp-t-last{font-size:var(--fs12);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.has-shell .sp-new{flex:none;color:var(--accent);border-color:color-mix(in oklab,var(--accent) 45%,transparent)}
.has-shell .sp-open{margin:0}
.has-shell .sp-h{margin:0 0 .75rem;font-size:var(--fs14);font-weight:var(--fw6)}  /* a card title: below the page title (builder fixes 3 checklist, Found 7) */
.has-shell .sp-h:focus{outline:none}
.has-shell .sp-open .thread{max-height:55vh;overflow-y:auto}
.has-shell .sp-at{font-weight:400}
@media (pointer:coarse){.has-shell .pp-tick{min-width:2.75rem;min-height:2.75rem}.has-shell .sp-thread{min-height:2.75rem}}
@media (max-width:767px){.has-shell .sp-panels{grid-template-columns:minmax(0,1fr)}}
.has-shell .tp-h{font-size:var(--fs16)}
.has-shell .sp-thread:focus-visible{outline:2px solid var(--accent);outline-offset:1px}

/* ── the Support centre as a chat app (assets/support.js) ───────────────
   A small dashboard and the ways to reach us across the top; under them the
   conversations on the left and the open one on the right, filling the
   window, with the messages scrolling inside their own pane. On a phone,
   one pane at a time. */
.has-shell .sp-top{display:flex;align-items:center;justify-content:space-between;gap:.75rem 1.5rem;flex-wrap:wrap;margin-bottom:1rem}
.has-shell .sp-top>.inline-row{margin:0}
.has-shell .sp-dash{display:flex;flex-wrap:wrap;gap:.75rem}
.has-shell .sp-dash:empty{display:none}
.has-shell .sp-kpi{min-width:8.5rem;padding:.55rem .9rem;border:1px solid var(--line);border-radius:var(--r8);background:var(--surface)}
.has-shell .sp-kpi b{display:block;font-size:var(--fs24);font-weight:var(--fw6);line-height:1.25}
.has-shell .sp-kpi span{font-size:var(--fs12);color:var(--text-muted)}
.has-shell .sp-kpi.is-hot b{color:var(--accent)}
.has-shell .sp-chat{grid-template-columns:minmax(0,20rem) minmax(0,1fr);gap:0;height:calc(100vh - 13rem);min-height:24rem;
  border:1px solid var(--line);border-radius:var(--r8);background:var(--surface);overflow:hidden;align-items:stretch}
.has-shell .sp-list{display:flex;flex-direction:column;min-height:0;border-inline-end:1px solid var(--line)}
.has-shell .sp-find{padding:.6rem;border-bottom:1px solid var(--line)}
.has-shell .sp-find input{width:100%;height:2rem}
.has-shell .sp-chat .sp-threads{flex:1 1 auto;min-height:0;overflow-y:auto;gap:0;display:block}
.has-shell .sp-chat .sp-thread{display:flex;align-items:center;gap:.65rem;padding:.65rem .75rem;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none}
.has-shell .sp-chat .sp-thread:hover{background:var(--surface-2)}
.has-shell .sp-chat .sp-thread.is-active{background:color-mix(in oklab,var(--accent) 10%,var(--surface))}
.has-shell .sp-chat .sp-thread:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.has-shell .sp-av{flex:none;display:inline-flex;align-items:center;justify-content:center;width:2.25rem;height:2.25rem;border-radius:50%;
  background:var(--surface-2);font-size:var(--fs12);font-weight:var(--fw6);color:var(--text-muted)}
.has-shell .sp-t-main{flex:1 1 auto;min-width:0;display:grid;gap:.1rem}
.has-shell .sp-t-top,.has-shell .sp-t-bot{display:flex;align-items:center;justify-content:space-between;gap:.5rem;min-width:0}
.has-shell .sp-t-top b{font-weight:var(--fw5);font-size:var(--fs14)}
.has-shell .sp-thread.is-unread .sp-t-top b{font-weight:var(--fw6)}
.has-shell .sp-t-when{flex:none;font-size:var(--fs12);color:var(--text-muted)}
.has-shell .sp-thread.is-unread .sp-t-when{color:var(--accent)}
.has-shell .sp-chat .sp-t-last{flex:1 1 auto;min-width:0;color:var(--text-muted)}
.has-shell .sp-chat .sp-new{display:inline-flex;align-items:center;justify-content:center;width:1.25rem;height:1.25rem;padding:0;border:0;border-radius:50%;
  background:var(--accent);color:var(--accent-ink,#fff);font-size:var(--fs12);font-weight:var(--fw6)}
.has-shell .sp-nomatch{padding:.75rem;font-size:var(--fs14)}
.has-shell .sp-conv{display:flex;flex-direction:column;min-width:0;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:none}
.has-shell .sp-conv-head{display:flex;align-items:center;gap:.65rem;padding:.6rem .9rem;border-bottom:1px solid var(--line)}
.has-shell .sp-conv-title{min-width:0}
.has-shell .sp-conv-title .sp-h{margin:0}
.has-shell .sp-conv-title p{margin:0;font-size:var(--fs12)}
.has-shell .sp-back{display:none}
.has-shell .sp-chat .sp-msgs{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;margin:0;padding:.9rem;display:flex;flex-direction:column;gap:.35rem;background:var(--surface-2)}
.has-shell .sp-chat .msg{max-width:min(34rem,82%);margin:0;padding:.5rem .75rem;font-size:var(--fs14);white-space:pre-wrap;overflow-wrap:anywhere}
.has-shell .sp-chat .msg.is-theirs{align-self:flex-start;margin-inline:0 auto;background:var(--surface);border:1px solid var(--line)}
.has-shell .sp-chat .msg.is-mine{align-self:flex-end;margin-inline:auto 0;background:color-mix(in oklab,var(--accent) 10%,var(--surface));border:0}
.has-shell .sp-t-proj{font-size:var(--fs12);color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.has-shell .sp-goproj{margin-inline-start:auto;flex:none}
.has-shell .sp-chat .msg .who{white-space:normal}
.has-shell .sp-chat .sp-at{display:block;margin-top:.15rem;font-size:var(--fs12);font-weight:400;color:var(--text-muted);text-align:end;white-space:nowrap}
.has-shell .sp-day{display:flex;justify-content:center;margin:.5rem 0}
.has-shell .sp-day span{padding:.1rem .6rem;border:1px solid var(--line);border-radius:var(--r8);background:var(--surface);font-size:var(--fs12);color:var(--text-muted)}
.has-shell .sp-empty,.has-shell .sp-pick{margin:auto;padding:1rem;text-align:center;font-size:var(--fs14)}
.has-shell .sp-composer{display:flex;align-items:flex-end;gap:.5rem;padding:.6rem .9rem 1rem;border-top:1px solid var(--line)}   /* room under the box (2026-10-20, Zed) */
.has-shell .sp-composer textarea{flex:1 1 auto;min-width:0;min-height:2.25rem;max-height:8.25rem;resize:none;line-height:1.5}
.has-shell .sp-conv [data-sp-msg]{padding:0 .9rem}
@media (pointer:coarse){.has-shell .sp-composer textarea{font-size:16px}.has-shell .sp-find input{height:2.75rem;font-size:16px}}
@media (max-width:767px){
  .has-shell .sp-chat{grid-template-columns:minmax(0,1fr);height:calc(100dvh - 17rem);min-height:20rem}
  .has-shell .sp-chat.is-open .sp-list,.has-shell .sp-chat:not(.is-open) .sp-conv{display:none}
  .has-shell .sp-list{border-inline-end:0}
  .has-shell .sp-back{display:inline-flex}
  .has-shell .sp-kpi{flex:1 1 7rem;min-width:0}
}

/* ── a List View's furniture (the mailer's Subscribers, Unsubscribed and Mailshots) ──
   The filter bar is one row above the list: the filters, View, then the
   list's own actions pushed to the end. Under it, the words for an empty or
   not-yet-loaded list, and a last cell that holds a row's actions. */
.has-shell .lv-bar{margin-bottom:.75rem;gap:.5rem}
.has-shell .lv-bar input[type=search]{flex:1 1 12rem;max-width:22rem}
.has-shell .lv-bar .ml-counts{margin:0}
.has-shell .lv-empty{margin:.25rem 0 .75rem;font-size:var(--fs14)}
.has-shell .lv-empty:empty{display:none}
.has-shell .lv-body>p.muted{margin:0 0 .75rem;font-size:var(--fs14)}
.has-shell .kit-table td.lv-acts{text-align:end;white-space:nowrap}
/* Where a subscriber signed up may wrap; a soft-bounce note sits under the status; Reports' three origin tables share a row. */
.has-shell .kit-table td.ml-origin{white-space:normal;min-width:11rem;overflow-wrap:anywhere}
.has-shell .ml-soft{font-size:var(--fs12);color:color-mix(in oklab,var(--amber) 70%,var(--text))}
.has-shell .ml-origins{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(16rem,100%),1fr));gap:.75rem;align-items:start}
.has-shell .ml-origins .ml-table-wrap{margin:0}
.has-shell .ml-origins td:first-child{overflow-wrap:anywhere}
/* The mailshot table has ten columns: a little less air, and a subject that may wrap, so the row's actions stay on screen. */
.has-shell #shots-table :is(th,td){padding-inline:.5rem}
.has-shell #shots-table td.kit-key{white-space:normal;min-width:10rem}
.has-shell .kit-table td.lv-acts .linkbtn+.linkbtn{margin-inline-start:.75rem}
.has-shell .kit-table .ml-bar{display:inline-block;width:2.5rem;max-width:2.5rem;vertical-align:middle}
.has-shell .kit-table tr.is-archived>td{color:var(--text-muted)}
.has-shell .kit-table input[type=checkbox]{margin:0;vertical-align:middle}
/* A grid edited in place: a cell's box shows only when it is hovered or has
   the focus, so the grid reads as a table until it is being changed. */
.has-shell .kit-grid td{padding-block:.25rem}
.has-shell .kit-grid .kit-cell{width:100%;min-width:8rem;height:2rem;padding:0 .5rem;border:1px solid transparent;border-radius:var(--r8);background:none;font:inherit;font-size:var(--fs14);color:var(--text)}
.has-shell .kit-grid .kit-cell:hover{border-color:var(--line)}
.has-shell .kit-grid .kit-cell:focus{border-color:var(--accent);background:var(--surface);outline:none}
.has-shell .kit-grid .kit-new .kit-cell{border-color:var(--line)}
@media (pointer:coarse){.has-shell .kit-grid .kit-cell{height:2.75rem;font-size:16px}}

/* ── what every list does (app-kit.js): the row above it, the row menu ──
   Find in rows on the left, the list's own menu on the right, 40px, with the
   table's top line under it. A row's actions are behind its ⋮ on a laptop;
   on a phone they stay as the buttons they are. A row is not a link: it
   opens on a double-click, so the pointer stays an arrow. */
.has-shell .kit-proxied{display:none!important}
/* A form the header's New opens: no button of its own, and nothing drawn while it is folded. */
.has-shell details.kit-newfold>summary{display:none}
.has-shell details.kit-newfold:not([open]){display:none}
.has-shell .rec-tools>[hidden]{display:none}
.has-shell .kit-gridbar{display:flex;align-items:center;justify-content:space-between;gap:.5rem;min-height:2.5rem;margin:0 0 .75rem}
.has-shell .kit-gridbar[hidden]{display:none}
.has-shell .kit-gridbar .kit-find{flex:0 1 15rem;min-width:0;height:2rem;padding-block:0;font-size:var(--fs14)}
.has-shell .kit-gridbar .rec-step{margin-block:0;border-color:transparent}
/* A page's own filter at the start of the row (Status): it and Find in rows sit together on the left, the menu on the right. */
.has-shell .kit-gridbar:has(.kit-gridbar-lead){justify-content:flex-start}
.has-shell .kit-gridbar .kit-listmenu{margin-left:auto}
.has-shell .kit-gridbar .kit-gridbar-lead{flex:0 0 auto;width:auto;min-width:9rem;max-width:16rem;height:2rem;padding-block:0;font-size:var(--fs14)}
.has-shell .kit-gridbar .rec-step svg,.has-shell .kit-more svg{fill:currentColor;stroke:none}
.has-shell .kit-table tr.kit-hide{display:none}
.has-shell .kit-more{appearance:none;display:none;place-items:center;width:1.75rem;height:1.5rem;padding:0;border:0;border-radius:var(--r8);background:none;color:var(--text-muted);cursor:pointer}
.has-shell .kit-more:hover,.has-shell .kit-more[aria-expanded="true"]{background:var(--surface-2);color:var(--text)}
.has-shell .kit-more svg{width:1rem;height:1rem}
.has-shell .kit-menu{position:fixed;z-index:400;min-width:180px;max-width:20rem;padding:.25rem;border:1px solid var(--line);border-radius:var(--r8);
  background:var(--surface);box-shadow:var(--shadow-lg)}
.has-shell .kit-menu-item{display:block;width:100%;min-height:2rem;padding:.25rem .6rem;border:0;border-radius:calc(var(--r8) - 2px);background:none;
  font:inherit;font-size:var(--fs14);color:var(--text);text-align:start;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
.has-shell .kit-menu-item:is(:hover,:focus-visible):not(:disabled){background:var(--surface-2);outline:none}
.has-shell .kit-menu-item:disabled{color:var(--text-muted);cursor:default}
.has-shell .kit-menu-item.is-danger{color:var(--red)}
/* What an action does: the tooltip of a data-tip button, and the words a ? opens (app-kit.js). */
.has-shell .kit-tooltip{position:fixed;z-index:450;max-width:18rem;padding:.4rem .6rem;border-radius:var(--r8);background:var(--text);color:var(--bg);
  font-size:var(--fs12);font-weight:var(--fw5,500);line-height:1.45;pointer-events:none;white-space:normal}
.has-shell .kit-tooltip.is-pinned{pointer-events:auto}
.has-shell .kit-tooltip[hidden]{display:none}
.has-shell .kit-tip{flex:none}
.has-shell .kit-tip[aria-expanded="true"]{color:var(--text);border-color:var(--text-muted)}
.has-shell .kit-menu-sep{height:1px;margin:.25rem 0;background:var(--line)}

/* ── grey explanations: an "i" button and a bubble (Zed, 2026-11-10) ──
   app-kit.js puts a .kit-info button at the end of the heading or label a grey line explains, and
   draws that line (kept in place, marked .kit-info-src) as a fixed bubble while .is-open. The button
   is 20px with an invisible hit area round it (32px, 44px on touch), like the help marks. */
.has-shell .kit-info{appearance:none;position:relative;display:inline-grid;place-items:center;flex:none;width:1.25rem;height:1.25rem;margin-inline-start:.5rem;padding:0;
  vertical-align:middle;border:1px solid var(--line-strong);border-radius:999px;background:var(--surface);color:var(--text-muted);cursor:pointer}
.has-shell .kit-info::before{content:"i";font:var(--fw6,600) var(--fs12,.75rem)/1 var(--font,system-ui,sans-serif);text-transform:none}
.has-shell .kit-info::after{content:"";position:absolute;inset:-6px}
.has-shell .kit-info:hover{color:var(--text);border-color:var(--text-muted)}
.has-shell .kit-info:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.has-shell .kit-info[aria-expanded="true"]{color:var(--accent);border-color:var(--accent);background:color-mix(in oklab,var(--accent) 10%,var(--surface))}
.has-shell .kit-info[hidden]{display:none}
@media (pointer:coarse){.has-shell .kit-info::after{inset:-12px}}
.has-shell .kit-info-src{display:none!important}
.has-shell .kit-info-src.is-open{display:block!important;position:fixed;z-index:460;box-sizing:border-box;max-width:calc(100vw - 2rem);margin:0!important;padding:.6rem .8rem!important;
  border:1px solid var(--line-strong)!important;border-radius:var(--r8);background:var(--surface);color:var(--text);font-size:var(--fs14)!important;font-weight:400;line-height:1.5;
  text-align:start;overflow-wrap:anywhere;outline:0;order:0!important;box-shadow:0 4px 16px rgb(0 0 0 / .18)}
.has-shell .kit-info-src.is-open :where(span,small,b,strong,.muted,.hint){color:inherit}
@media (hover:hover) and (pointer:fine) and (min-width:768px){
  .has-shell .kit-table td.has-more{width:2.5rem;padding-block:0;text-align:end}
  .has-shell .kit-table td.has-more>:is(button,a):not(.kit-more){display:none}
  .has-shell .kit-table td.has-more>.kit-more{display:inline-grid}
  .has-shell .kit-table tr:is([data-id],[tabindex]){cursor:default}
  .has-shell .kit-table tbody tr:focus{background:color-mix(in oklab,var(--accent) 8%,var(--surface))}
}
@media (pointer:coarse){.has-shell .kit-gridbar .kit-find,.has-shell .kit-gridbar .kit-gridbar-lead{height:2.75rem;font-size:16px}.has-shell .kit-menu-item{min-height:2.75rem}}

/* ── a card's hint is at the bottom of the card (Zed, 2026-10-12) ──
   The line of explanation a card opens with, straight under its heading, is
   drawn last, under a rule: the heading is followed by what you came to do,
   and the words about it are there for whoever wants them. Markup order is
   unchanged (a screen reader still hears the hint before the fields). A
   folded card (details) is left as it is. */
.has-shell :is(:is(div,section).card.panel,.ag-box){display:flex;flex-direction:column}
.has-shell :is(:is(div,section).card.panel,.ag-box)>*{flex:none;min-width:0}
.has-shell :is(:is(div,section).card.panel,.ag-box)>:is(h2,h3,.panel-head)+p.muted{order:99;margin:.75rem 0 0;padding-top:.6rem;
  border-top:1px solid var(--line);font-size:var(--fs12)}
.has-shell :is(:is(div,section).card.panel,.ag-box)>:is(.btn,button,a.btn,select,input:not([type=checkbox],[type=radio]),.status-pill){align-self:flex-start}
.has-shell :is(:is(div,section).card.panel,.ag-box)>:is(.btn,a.btn){min-width:5rem}

/* ── an editor's label sits above its box (2026-11-02) ──
   Zed: "stop having text float on the text field just have it above the field … make sure text doesn't
   cut off". This replaces app-standards 05's caption in the border, which cut a long label off with "…".
   The label is its own line, whole (it wraps, never an ellipsis), close to its box (proximity: 6px to its
   box, more between fields), and takes the accent while the box has the focus. A tick box keeps its
   words beside it. */
.has-shell .field:has(>label+:is(input:not([type=checkbox],[type=radio],[type=file],[type=color],[type=range]),select,textarea)){display:flex;flex-direction:column;gap:.375rem}
.has-shell .field>label:has(+:is(input:not([type=checkbox],[type=radio],[type=file],[type=color],[type=range]),select,textarea)),
.has-shell .field>label>.kit-cap{position:static;display:block;max-width:none;padding:0;background:none;
  font-size:var(--fs14);font-weight:var(--fw5,500);line-height:1.35;color:var(--text);white-space:normal;overflow:visible}
.has-shell .field:focus-within>label,.has-shell .field:focus-within>label>.kit-cap{color:var(--accent)}
.has-shell .field>label:has(>.kit-cap){display:flex;flex-direction:column;gap:.375rem}
.has-shell .ag-box .field>label:has(>.kit-cap) :is(input,select){margin-top:0}

/* ── a splitter between two columns (ZZKit.splitter) ──
   The box is a three-track grid: left column, the divider, right column. The
   left one's width is --split; the divider is a 1px line with a wider grip. */
.has-shell .kit-cols{display:grid;grid-template-columns:minmax(0,var(--split,50%)) .75rem minmax(0,1fr);align-items:start}
.has-shell .kit-cols>.kit-col{min-width:0;display:grid;gap:.75rem;align-content:start}
.has-shell .kit-cols>.kit-col>.card.panel{margin:0}
.has-shell .kit-split{align-self:stretch;position:relative;cursor:col-resize;touch-action:none}
.has-shell .kit-split::before{content:"";position:absolute;inset-block:0;inset-inline-start:calc(50% - .5px);width:1px;background:var(--line)}
.has-shell .kit-split:hover::before,.has-shell .kit-split:focus-visible::before,.has-shell .is-splitting>.kit-split::before{width:3px;inset-inline-start:calc(50% - 1.5px);background:var(--accent)}
.has-shell .kit-split:focus-visible{outline:none}
.has-shell .is-splitting{user-select:none;cursor:col-resize}
@media (max-width:1023px){
  .has-shell .kit-cols{grid-template-columns:minmax(0,1fr);gap:.75rem}
  .has-shell .kit-split{display:none}
}

/* ── the Support centre, 2026-10-12: one chat, three columns, a dashboard that filters ──
   The client's side is Chat | Documentation | Training (.sp-cols); below 1024px a
   row of tabs (.sp-tabs) shows one at a time. A dashboard figure is a button
   (pressed = .is-on) that narrows the chat, or the studio's list of customers. */
.has-shell .sp-kpi[data-filter]{position:relative}
.has-shell .sp-kpi-go{display:block;margin:0;padding:0;border:0;background:none;font:inherit;color:inherit;text-align:start;cursor:pointer}
.has-shell .sp-kpi-go::after{content:"";position:absolute;inset:0;border-radius:inherit}
.has-shell .sp-kpi-go:focus-visible{outline:none}
.has-shell .sp-kpi:has(.sp-kpi-go:hover){background:var(--surface-2)}
.has-shell .sp-kpi:has(.sp-kpi-go:focus-visible){outline:2px solid var(--accent);outline-offset:1px}
.has-shell .sp-kpi.is-on{border-color:var(--accent);background:color-mix(in oklab,var(--accent) 10%,var(--surface))}
.has-shell .sp-filter{display:flex;align-items:center;justify-content:space-between;gap:.5rem 1rem;flex-wrap:wrap;margin:0;padding:.4rem .9rem;
  border-bottom:1px solid var(--line);font-size:var(--fs12);color:var(--text-muted)}
.has-shell .sp-filter .linkbtn{font-size:var(--fs12)}
.has-shell .sp-cols{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr) minmax(0,1fr);gap:.75rem;align-items:stretch;
  height:calc(100vh - 13rem);min-height:24rem}
.has-shell .sp-col{min-width:0;min-height:0;margin:0}
.has-shell .sp-col--chat{display:flex}
.has-shell .sp-solo{display:grid;grid-template-columns:minmax(0,1fr);flex:1 1 auto;height:auto;min-height:0}
.has-shell :is(.sp-help,.sp-check){display:flex;flex-direction:column;padding:.75rem .9rem;border:1px solid var(--line);border-radius:var(--r8);
  background:var(--surface);overflow-y:auto}
/* Documentation & training: one column, one search, the two lists one under the other. */
.has-shell .sp-help .sp-col-find{margin:.5rem 0 .25rem}
.has-shell .sp-block{display:flex;flex-direction:column}
.has-shell .sp-block+.sp-block{margin-top:1rem;padding-top:.75rem;border-top:1px solid var(--line)}
.has-shell .sp-block[hidden]{display:none}
.has-shell .sp-sec{margin:.5rem 0 0;font-size:var(--fs14);font-weight:var(--fw6)}
.has-shell .sp-help .sp-col-foot{margin:.25rem 0 0}
/* The System check: a row a check, its state as a word in a coloured frame. */
.has-shell .sp-ck-acts{margin:0 0 .75rem}
.has-shell .sp-ck-sum{margin:0 0 .5rem;font-size:var(--fs14);font-weight:var(--fw5)}
.has-shell .sp-checks{list-style:none;margin:0;padding:0}
.has-shell .sp-checks:focus{outline:none}
.has-shell .sp-ck{display:flex;align-items:flex-start;gap:.6rem;padding:.5rem 0;border-bottom:1px solid var(--line);font-size:var(--fs14)}
.has-shell .sp-ck:last-child{border-bottom:0}
.has-shell .sp-ck-mark{flex:none;min-width:4.25rem;padding:.05rem .4rem;border:1px solid var(--line);border-radius:var(--r8);font-size:var(--fs12);text-align:center;color:var(--text-muted)}
.has-shell .sp-ck.is-ok .sp-ck-mark{border-color:color-mix(in oklab,var(--mint) 55%,transparent);color:var(--text)}
.has-shell .sp-ck.is-warn .sp-ck-mark{border-color:var(--amber);background:color-mix(in oklab,var(--amber) 14%,transparent);color:var(--text)}
.has-shell .sp-ck.is-fail .sp-ck-mark{border-color:var(--red);background:color-mix(in oklab,var(--red) 12%,transparent);color:var(--text)}
.has-shell .sp-ck-main{display:grid;gap:.1rem;min-width:0;overflow-wrap:anywhere}
.has-shell .sp-ck-main span{color:var(--text-muted)}
/* What the next message is about, above the box; and the pop-up that sets it. */
.has-shell .sp-held{justify-content:space-between}
.has-shell .sp-held b{font-weight:var(--fw5);color:var(--text)}
.has-shell .sp-held .linkbtn{flex:none;font-size:var(--fs12)}
.has-shell .sp-dlg-h{font-size:var(--fs16);font-weight:var(--fw6)}
.has-shell .sp-about-dlg .field select,.has-shell .sp-about-dlg .field input{width:100%}
.has-shell .sp-kinds{display:flex;flex-wrap:wrap;gap:.4rem;max-height:12rem;overflow-y:auto}
.has-shell .sp-kind{height:2rem;padding:0 .75rem;border:1px solid var(--line);border-radius:var(--r8);background:var(--surface);font:inherit;font-size:var(--fs14);color:var(--text);cursor:pointer}
.has-shell .sp-kind:hover{background:var(--surface-2)}
.has-shell .sp-kind.is-on{border-color:var(--accent);background:color-mix(in oklab,var(--accent) 12%,var(--surface));font-weight:var(--fw6)}
.has-shell .sp-kind:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.has-shell .sp-kind-new{border-style:dashed;color:var(--accent)}
.has-shell .sp-dlg-note{margin:0;font-size:var(--fs12)}
.has-shell .sp-dlg-err{margin:0}
.has-shell .sp-dlg-err[hidden]{display:none}
.has-shell .sp-kind-tag{border-color:color-mix(in oklab,var(--accent) 35%,transparent)}
@media (pointer:coarse){.has-shell .sp-kind{height:2.75rem}}
.has-shell .sp-col-h{margin:0;font-size:var(--fs14);font-weight:var(--fw6)}
.has-shell .sp-col-find{margin:0 0 .25rem}
.has-shell .sp-col-find input{width:100%;height:2rem;padding-block:0}
.has-shell .sp-group[hidden],.has-shell .sp-links li[hidden],.has-shell .sp-col-none[hidden]{display:none}
.has-shell .sp-col-none{margin:.75rem 0 0;font-size:var(--fs14)}
@media (pointer:coarse){.has-shell .sp-col-find input{height:2.75rem;font-size:16px}}
.has-shell .sp-col-sub{margin:.15rem 0 .6rem;font-size:var(--fs12)}
.has-shell .sp-part{margin:.6rem 0 .1rem;font-size:var(--fs12);font-weight:var(--fw6);color:var(--text-muted)}
.has-shell .sp-links{list-style:none;margin:0;padding:0}
.has-shell .sp-links li{border-bottom:1px solid var(--line)}
.has-shell .sp-links li:last-child{border-bottom:0}
.has-shell .sp-link{display:flex;align-items:baseline;justify-content:space-between;gap:.75rem;width:100%;padding:.5rem .15rem;border:0;background:none;
  font:inherit;font-size:var(--fs14);color:var(--text);text-align:start;text-decoration:none;cursor:pointer}
.has-shell .sp-link:hover{color:var(--accent);background:var(--surface-2)}
.has-shell .sp-link:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.has-shell .sp-link-meta{flex:none;font-size:var(--fs12);color:var(--text-muted);white-space:nowrap}
.has-shell .sp-done{color:var(--accent);font-weight:var(--fw5)}
.has-shell .sp-col-foot{margin:auto 0 0;padding-top:.6rem;font-size:var(--fs14)}
.has-shell .sp-site,.has-shell .sp-fresh{margin-inline-start:.35rem;padding:0 .4rem;border:1px solid var(--line);border-radius:var(--r8);
  font-size:var(--fs12);font-weight:400;color:var(--text-muted);white-space:nowrap}
.has-shell .sp-fresh{border-color:color-mix(in oklab,var(--accent) 45%,transparent);color:var(--accent)}
.has-shell .sp-about{display:flex;align-items:center;gap:.5rem;padding:.5rem .9rem 0;border-top:1px solid var(--line);font-size:var(--fs12);color:var(--text-muted)}
.has-shell .sp-about select{flex:1 1 auto;min-width:0;max-width:24rem;height:2rem;padding-block:0;line-height:1.25}
.has-shell .sp-about+.sp-composer{border-top:0;padding-top:.4rem}
.has-shell .sp-tabs{display:none;gap:.25rem;margin-bottom:.75rem;padding:.2rem;border:1px solid var(--line);border-radius:var(--r8);background:var(--surface)}
.has-shell .sp-tab{flex:1 1 0;min-width:0;height:2rem;padding:0 .5rem;border:0;border-radius:calc(var(--r8) - 2px);background:none;font:inherit;font-size:var(--fs14);
  color:var(--text-muted);cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.has-shell .sp-tab.is-on{background:var(--surface-2);color:var(--text);font-weight:var(--fw6)}
.has-shell .sp-tab:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
@media (max-width:1023px){
  .has-shell .sp-tabs{display:flex}
  .has-shell .sp-cols{grid-template-columns:minmax(0,1fr);height:calc(100dvh - 20rem)}
  .has-shell .sp-cols>.sp-col{display:none}
  .has-shell .sp-cols[data-col-on="chat"]>[data-col="chat"]{display:flex}
  .has-shell .sp-cols[data-col-on="help"]>[data-col="help"],.has-shell .sp-cols[data-col-on="check"]>[data-col="check"]{display:flex}
}
@media (pointer:coarse){
  .has-shell .sp-tab{height:2.75rem}
  .has-shell .sp-link{min-height:2.75rem;align-items:center}
  .has-shell .sp-about select{height:2.75rem;font-size:16px}
}

/* ── SEO (assets/seo-dash.js) ────────────────────────────────────────────
   The to-do list reuses the plan rows (.plan-row / .plan-state: the round mark
   fills when an item is done); what the last check found is a fold per problem. */
.has-shell .seo-bar{align-items:center;margin:.25rem 0 .75rem}
.has-shell .seo-meta{display:block;margin-top:.3rem;font-size:var(--fs12)}
.has-shell .seo-task .plan-what{min-width:0}
.has-shell .status-pill.seo-sev-high{color:var(--amber);border-color:color-mix(in oklab,var(--amber) 45%,transparent)}
.has-shell .seo-issue{padding:.5rem 0;border-top:1px solid var(--line)}
.has-shell .seo-issue:first-of-type{border-top:0}
.has-shell :is(.seo-issue,.seo-done) summary{cursor:pointer;font-size:var(--fs14);font-weight:var(--fw5)}
.has-shell .seo-issue>p{margin:.4rem 0 0;font-size:var(--fs14)}
.has-shell .seo-urls{margin:.4rem 0 0;padding-inline-start:1.1rem;font-size:var(--fs12)}
.has-shell .seo-url{overflow-wrap:anywhere}
.has-shell .seo-done{margin-top:.75rem}
.has-shell .seo-done summary{color:var(--text-muted)}
.has-shell .seo-google{align-items:center;margin:0 0 .75rem}
.has-shell .seo-google:empty{display:none}
/* SEO Plus: the add row, the ideas and the title writer's suggestion. */
.has-shell .seo-k-add{align-items:center;margin:.75rem 0}
.has-shell .seo-k-add input{flex:1 1 14rem;width:auto;min-width:0}
.has-shell .seo-k-add select{flex:0 1 auto;width:auto;min-width:0}
.has-shell .seo-k-acts{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.4rem}
.has-shell .seo-ideas{list-style:none;margin:.25rem 0 .75rem;padding:0}
.has-shell .seo-ideas li{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;padding:.35rem 0;border-top:1px solid var(--line);font-size:var(--fs14)}
.has-shell .seo-ideas li:first-child{border-top:0}
.has-shell .seo-ideas li .btn{margin-inline-start:auto}
.has-shell .seo-meta-draft{margin:.75rem 0}
.has-shell .seo-meta-dl{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:.4rem .9rem;margin:.5rem 0 .75rem;font-size:var(--fs14)}
.has-shell .seo-meta-dl dt{color:var(--text-muted)}
.has-shell .seo-meta-dl dd{margin:0}
/* SEO Plus, Phase 5: the map grid — a square a point, coloured by the place
   there (top 3 mint, 4–10 amber, further or absent grey), the centre ringed. */
.has-shell .seo-grids{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,13rem),1fr));gap:1rem}
.has-shell .seo-grid{display:grid;grid-template-columns:repeat(var(--n,5),1fr);gap:3px;max-width:13rem}
.has-shell .seo-g-cell{aspect-ratio:1;display:grid;place-items:center;border-radius:var(--r8);font-size:var(--fs12);font-weight:var(--fw6)}
.has-shell .seo-g-top{background:color-mix(in oklab,var(--mint) 35%,var(--surface));color:var(--text)}
.has-shell .seo-g-mid{background:color-mix(in oklab,var(--amber) 30%,var(--surface));color:var(--text)}
.has-shell :is(.seo-g-low,.seo-g-none){background:var(--surface-2);color:var(--text-muted)}
.has-shell .seo-g-cell.is-centre{outline:2px solid var(--text);outline-offset:-2px}
.has-shell .seo-quote{font-size:var(--fs14);margin:.5rem 0}
.has-shell .seo-nap{margin-top:.25rem}
.has-shell select[data-dir-status]{height:2.25rem;padding-block:0}
/* The SEO tables with long questions and searches: words wrap rather than push columns off the edge. */
.has-shell .seo-wrap :is(td,th){white-space:normal;overflow-wrap:anywhere}
.has-shell .seo-wrap td:first-child{min-width:12rem}

/* The SEO pack's credits: what is used of the month's, as a line and a bar. */
.has-shell .seo-credits{margin:0 0 .75rem;padding:.75rem;border:1px solid var(--line);border-radius:var(--r8)}
.has-shell .seo-credits-top{display:flex;align-items:baseline;justify-content:space-between;gap:.25rem 1rem;flex-wrap:wrap;font-size:var(--fs14)}
.has-shell .seo-credits-top b{font-weight:var(--fw6)}
.has-shell .seo-credits-top .muted,.has-shell .seo-credits>p{font-size:var(--fs12)}
.has-shell .seo-credits>p{margin:.5rem 0 0}
.has-shell .seo-meter{height:.375rem;margin-top:.5rem;border-radius:var(--r8);background:var(--surface-2);overflow:hidden}
.has-shell .seo-meter>i{display:block;height:100%;width:var(--w,0%);background:var(--accent)}

/* Competitors: a front page's title is one line in the table, and the ideas are a short numbered list. */
.has-shell .kit-table td.seo-csays{max-width:22rem;overflow:hidden;text-overflow:ellipsis}
.has-shell .seo-idealist{margin:.25rem 0 .75rem;padding-inline-start:1.25rem;display:grid;gap:.75rem}
.has-shell .seo-idea{font-size:var(--fs14)}
.has-shell .seo-idea>*{display:block}
.has-shell .seo-idea>b{font-weight:var(--fw6)}
.has-shell .seo-idea>.muted{font-size:var(--fs12);margin:.125rem 0}

/* The SEO panel's parts are tabs under its summary; only the picked part shows. */
.has-shell .seo-secs{margin-top:1rem}
.has-shell .seo-off{display:none}

/* Splitters (assets/support.js): a line between two columns that drags to
   make one wider and the other narrower. It is the gap itself, so the columns
   lose theirs; the line is thin until it is pointed at, held or focused. The
   column widths are the page's own until someone drags (--sp-cols). Only
   where the columns sit side by side: under that width a screen shows one at
   a time and its splitters are not drawn. */
.has-shell .kit-split{position:relative;width:.75rem;cursor:col-resize;touch-action:none;outline:0;user-select:none}
.has-shell .kit-split::after{content:"";position:absolute;inset-block:.5rem;inset-inline-start:calc(50% - .5px);width:1px;border-radius:var(--r8);background:var(--line)}
.has-shell .kit-split:is(:hover,:focus-visible,.is-drag)::after{inset-inline-start:calc(50% - 1.5px);width:3px;background:var(--accent)}
@media (min-width:1024px){
  .has-shell .sp-cols{grid-template-columns:var(--sp-cols,minmax(0,1.7fr) auto minmax(0,1fr) auto minmax(0,1fr));gap:0}
}
@media (max-width:1023px){.has-shell .sp-cols>.kit-split{display:none}}
@media (min-width:768px){
  .has-shell .sp-chat:not(.sp-solo){grid-template-columns:var(--sp-cols,minmax(0,20rem) auto minmax(0,1fr))}
  .has-shell .sp-chat:not(.sp-solo)>.sp-list{border-inline-end:0}
  .has-shell .sp-chat:not(.sp-solo)>.kit-split{width:.5rem}
  .has-shell .sp-chat:not(.sp-solo)>.kit-split::after{inset-block:0}
}
@media (max-width:767px){.has-shell .sp-chat>.kit-split{display:none}}

/* A page's header line runs from the Sidebar's edge to the window's, like the table under it (Zed,
   2026-10-13: "the line above the search should be full length"). Only a header that is the page's own, a
   direct child of the shell: one inside a card or a pane keeps to its box. */
.has-shell .shell>:is(.rec-head,.page-head){margin-inline:calc(-1 * var(--pad));padding-inline:var(--pad)}
/* An agent's "(you)" sits on the name's line. */
.has-shell .ag-pick .ag-you{font-weight:400;white-space:nowrap}
/* The website builder's plan card (assets/builder.js): three plans side by side,
   one column on a phone; the chosen billing is the pressed button. */
/* Going live's warnings (a domain not pointing at us, Hosting ended): room around and inside them. */
.has-shell .bd-www{display:flex;gap:.5rem;align-items:flex-start;margin-block:.25rem .75rem;font-size:var(--fs14);line-height:1.45;cursor:pointer}
.has-shell .bd-www input{flex:none;margin-top:.2rem}
.has-shell .note.bd-state{margin-block:1rem 1.25rem;padding:.9rem 1.1rem;line-height:1.55}
.has-shell .bd-plans{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:.75rem;margin-block:.75rem}
.has-shell .bd-plan{display:flex;flex-direction:column;gap:.5rem;padding:.75rem;border:1px solid var(--line);border-radius:var(--r8)}
.has-shell .bd-plan h3{margin:0;font-size:var(--fs14);font-weight:var(--fw6)}
.has-shell .bd-price{margin:0}
.has-shell .bd-price b{font-size:var(--fs16);font-weight:var(--fw6)}
.has-shell .bd-feats{margin:0;padding-inline-start:1.1rem;font-size:var(--fs12);flex:1}
.has-shell .bd-plan .btn{align-self:flex-start}
.has-shell .bd-meter{height:.375rem;margin-block:.5rem;border-radius:var(--r8);background:var(--surface-2);overflow:hidden}
.has-shell .bd-meter>span{display:block;height:100%;background:var(--accent)}
/* The builder's photos: each one's original and improved side by side, then
   what the AI saw and the choice. Two to a row on a laptop, one on a phone. */
.has-shell .bd-photos{list-style:none;margin:.75rem 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));gap:.75rem}
.has-shell .bd-photo{display:flex;flex-direction:column;gap:.5rem;padding:.75rem;border:1px solid var(--line);border-radius:var(--r8)}
.has-shell .bd-photo.is-unsafe{border-color:var(--red)}
.has-shell .bd-pair{display:grid;grid-template-columns:repeat(auto-fit,minmax(0,1fr));gap:.5rem}
.has-shell .bd-pair figure{margin:0;min-width:0}
/* A photo being turned stays inside its frame (2026-11-03). */
.has-shell .bd-pair .bd-fr{overflow:hidden;border-radius:var(--r8);background:var(--surface-2)}
.has-shell .bd-pair img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:var(--r8);background:var(--surface-2)}
.has-shell .bd-pair figcaption{font-size:var(--fs12);color:var(--text-muted)}
.has-shell .bd-ph-info,.has-shell .bd-ph-hint{margin:0;font-size:var(--fs12)}
.has-shell .bd-photo .btn.is-on{border-color:var(--accent);color:var(--accent)}
/* The builder's Business tab (2026-11-02 overhaul): the details in headed groups, each field as
   wide as what goes in it (a phone short, a description the whole width), the label above it. */
.has-shell .bd-group{border:0;border-top:1px solid var(--line);padding:.75rem 0 0;margin:1rem 0 0;min-width:0}
.has-shell .bd-group>legend{font-size:var(--fs14);font-weight:var(--fw6);padding:0 .5rem 0 0}
.has-shell .bd-form{display:flex;flex-wrap:wrap;gap:.75rem 1rem;align-items:flex-start;margin-block:.5rem}
.has-shell .bd-form>.field,.has-shell .bd-form>fieldset{margin:0;min-width:0}
.has-shell .bd-f-s{flex:0 1 12rem}
.has-shell .bd-f-m{flex:1 1 18rem;max-width:28rem}
.has-shell .bd-f-l{flex:1 1 100%}
.has-shell .bd-form textarea{min-height:0;resize:vertical}
.has-shell .bd-f-l .inline-row input,.has-shell .bd-f-m .inline-row input{flex:1 1 12rem;min-width:0}
/* Autosave's line beside the card's heading. */
.has-shell .bd-save{font-size:var(--fs12);color:var(--text-muted)}
.has-shell .bd-save.is-ok{color:var(--mint,#14b8a6)}
.has-shell .bd-save.is-err{color:var(--red)}
/* Pages you want: one chip a page, and a box to add one. */
.has-shell .bd-chips{list-style:none;display:flex;flex-wrap:wrap;gap:.5rem;margin:0 0 .5rem;padding:0}
.has-shell .bd-chips:empty{display:none}
.has-shell .bd-chips.is-off{opacity:.5}
.has-shell .bd-chip{display:inline-flex;align-items:center;gap:.25rem;padding:.125rem .25rem .125rem .625rem;border:1px solid var(--line);border-radius:var(--r8);font-size:var(--fs14)}
/* Opening hours: a row a day, each with one or more opening times. */
.has-shell .bd-week,.has-shell .bd-services,.has-shell .bd-ticks{border:1px solid var(--line);border-radius:var(--r8);padding:.5rem .75rem;margin:1rem 0 .5rem;min-width:0}
.has-shell .bd-week legend,.has-shell .bd-services legend,.has-shell .bd-ticks legend{font-size:var(--fs14);font-weight:var(--fw6);padding:0 .25rem}
.has-shell .bd-week-sub{margin:.25rem 0 .5rem;font-size:var(--fs12)}
.has-shell .bd-day{display:grid;grid-template-columns:minmax(0,10rem) minmax(0,1fr);gap:.5rem;align-items:start;padding:.375rem 0;border-top:1px solid var(--line)}
.has-shell .bd-day:first-of-type{border-top:0}
.has-shell .bd-day-name{display:flex;gap:.5rem;align-items:center;min-height:2.25rem;font-size:var(--fs14);cursor:pointer}
.has-shell .bd-spans{display:flex;flex-direction:column;gap:.375rem;align-items:flex-start}
.has-shell .bd-span{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;max-width:100%}
/* Two lists of times, 24-hour, with "to" between (2026-11-03: a time box showed a third "--", AM/PM, on some computers). */
.has-shell .bd-week .bd-span select{width:7.5rem;max-width:40vw;flex:0 0 auto;min-width:0}
.has-shell .bd-span select:disabled{opacity:.45}
.has-shell .bd-span-to{font-size:var(--fs14);color:var(--text-muted)}
.has-shell .bd-day.is-bad .bd-span select.is-empty{border-color:var(--red)}
.has-shell .bd-day-err{margin:0;font-size:var(--fs12);color:var(--red)}
.has-shell .bd-week>.field{margin-top:.75rem}
.has-shell .bd-form>.bd-week{flex:1 1 100%}
/* The Business tab's flow (2026-11-10): Fill it in with AI first, then headed sections with a count each. */
.has-shell .bd-sec-head{display:flex;align-items:baseline;justify-content:space-between;gap:.75rem}
.has-shell .bd-sec-h{margin:0;font-size:var(--fs14);font-weight:var(--fw6)}
.has-shell .bd-prog{font-size:var(--fs12);color:var(--text-muted);white-space:nowrap}
.has-shell .bd-prog.is-done{color:var(--mint,#14b8a6)}
.has-shell .bd-sec{scroll-margin-top:5rem}
.has-shell .bd-fill{border:1px solid var(--line);border-radius:var(--r8);background:var(--surface-2);padding:.75rem 1rem;margin:.5rem 0 1rem}
.has-shell .bd-fill-sub{margin:.375rem 0 .75rem;font-size:var(--fs14)}
.has-shell .bd-ways{display:grid;grid-template-columns:repeat(auto-fit,minmax(14rem,1fr));gap:.75rem}
.has-shell .bd-way{display:flex;flex-direction:column;align-items:flex-start;gap:.375rem;padding:.625rem .75rem;border:1px solid var(--line);border-radius:var(--r8);background:var(--surface)}
.has-shell .bd-way .muted{font-size:var(--fs12);flex:1 1 auto}
.has-shell .bd-fill .bd-docs{margin-top:.625rem}
.has-shell .bd-fill .bd-docs p{margin:.125rem 0;font-size:var(--fs12)}
/* Services or menu: a row an item (name, price, description), moved or removed with buttons. */
.has-shell .bd-svc-l{margin:0 0 .375rem;font-size:var(--fs14);font-weight:var(--fw5)}
.has-shell .bd-svc-cols,.has-shell .bd-svc-row{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,1.2fr) minmax(0,3fr) 6.5rem;gap:.5rem;align-items:center}
.has-shell .bd-svc-cols{font-size:var(--fs12);color:var(--text-muted);margin-bottom:.25rem}
.has-shell .bd-svc-list{list-style:none;margin:0 0 .5rem;padding:0;display:flex;flex-direction:column;gap:.375rem}
.has-shell .bd-svc-row input{min-width:0;width:100%}
.has-shell .bd-svc-acts{display:flex;gap:.125rem;justify-content:flex-end}
@media (max-width:767px){
  .has-shell .bd-svc-cols{display:none}
  .has-shell .bd-svc-row{grid-template-columns:minmax(0,1fr) minmax(0,8rem);padding:.5rem 0;border-top:1px solid var(--line)}
  .has-shell .bd-svc-row [data-svc-d]{grid-column:1 / -1}
  .has-shell .bd-svc-acts{grid-column:1 / -1;justify-content:flex-start}
}
.has-shell .bd-auto{display:flex;gap:.5rem;align-items:center;margin:.125rem 0 .5rem;font-size:var(--fs14)}
/* Library tags and their filter. */
.has-shell .bd-tags{display:flex;flex-wrap:wrap;align-items:center;gap:.375rem}
.has-shell .bd-tags .bd-chips{margin:0}
.has-shell .bd-tags-l{font-size:var(--fs12);color:var(--text-muted)}
.has-shell .bd-tags input{flex:1 1 7rem;min-width:6rem;max-width:12rem}
/* The Helper: the AI panel's look, docked on the right of the window over the page. */
/* .bd-ai.bd-helper, not .bd-helper: the AI panel's own rules come later in this file at the same weight, and their
   position: sticky (static under 1024px) won, so the Helper landed under the page on the left (2026-11-04). It is set
   apart by a tinted head and a grey edge like every other divider (blue only on hover or drag), not by a shadow (the style guide has none). */
.has-shell .bd-ai.bd-helper{position:fixed;top:0;right:0;bottom:0;z-index:60;width:min(var(--hp-w,26rem),100vw);max-height:none;margin:0;padding:0 1rem 1rem;background:var(--surface);border:0;border-left:1px solid var(--line)}
.has-shell .bd-ai.bd-helper[hidden]{display:none}
.has-shell .bd-helper .bd-ai-head{margin:0 -1rem;padding:.75rem 1rem;background:var(--surface-2);border-bottom:1px solid var(--line)}
.has-shell .bd-helper .bd-ai-head h3{margin:0;flex:1}
/* Its width: a drag edge over its left border, Wider / Narrower in its head (2026-11-04), and on a wide screen the page
   moves over for it instead of being covered, as for Help. A phone has the whole width and no edge. */
.has-shell .bd-hp-grip{position:absolute;inset-block:0;inset-inline-start:-.5rem;width:.75rem;cursor:col-resize;touch-action:none;outline:0;user-select:none;z-index:1}
.has-shell .bd-hp-grip::after{content:"";position:absolute;inset-block:0;inset-inline-start:calc(.5rem - 1px);width:3px;background:transparent}
.has-shell .bd-hp-grip:is(:hover,:focus-visible)::after,.has-shell .bd-helper.is-sizing .bd-hp-grip::after{background:var(--accent)}
.has-shell .bd-helper.is-sizing{user-select:none}
.has-shell .bd-hp-size{display:inline-grid;place-items:center}
@media (min-width:64rem){.bd-helper-open body.has-shell{padding-inline-end:var(--hp-w,26rem)}}
@media (max-width:767px){.has-shell .bd-hp-grip,.has-shell .bd-hp-size{display:none}}
.has-shell .bd-hp-prop{margin-top:.5rem;padding:.5rem .625rem;border:1px solid var(--line);border-radius:var(--r8);background:var(--bg)}
.has-shell .bd-hp-prop dl{margin:0 0 .5rem;display:grid;gap:.375rem}
/* A picture the AI made, in the chat (the Library's images, 2026-11-09). */
.has-shell .zz-chat-img{display:block;width:100%;height:auto;max-height:18rem;object-fit:contain;margin:0 0 .5rem;border-radius:var(--r8);background:var(--surface-2)}
.has-shell .bd-hp-prop dt{font-size:var(--fs12);color:var(--text-muted)}
.has-shell .bd-hp-prop dd{margin:0;font-size:var(--fs14);white-space:pre-line;overflow-wrap:anywhere}
.has-shell .bd-hp-prop p{margin:0}
.has-shell .bd-helper-btn{margin-left:auto}
/* Several days at once: above the days, set apart by its own background. */
.has-shell .bd-bulk{display:grid;gap:.5rem;margin:0 0 .5rem;padding:.625rem .75rem;border-radius:var(--r8);background:var(--surface-2)}
.has-shell .bd-bulk-h{margin:0;font-size:var(--fs14);font-weight:var(--fw6)}
.has-shell .bd-bulk-days{display:flex;flex-wrap:wrap;gap:.375rem .75rem;align-items:center}
.has-shell .bd-bulk-day{display:inline-flex;gap:.375rem;align-items:center;font-size:var(--fs14);cursor:pointer}
.has-shell .bd-bulk .bd-span select{width:7.5rem;max-width:40vw}
@media (max-width:480px){.has-shell .bd-day{grid-template-columns:1fr}}
/* Google Maps: whether the link was understood, and the guide. */
.has-shell .bd-map-state{margin:.25rem 0 0;font-size:var(--fs12)}
.has-shell .bd-map-state:empty{display:none}
.has-shell .bd-map-state.is-ok{color:var(--mint,#14b8a6)}
.has-shell .bd-map-state.is-bad{color:var(--warn-ink)}
.has-shell .bd-map-state.is-err{color:var(--red,#b42318)}
.has-shell .bd-map-guide ol{margin:.5rem 0;padding-inline-start:1.25rem;font-size:var(--fs14)}
/* What went wrong or what was done: a banner at the top of the card, never a grey line (2026-11-02). */
.has-shell .bd-alert{position:relative;border:1px solid var(--line);border-left-width:4px;border-radius:var(--r8);padding:.625rem 2.5rem .625rem .875rem;margin:.75rem 0}
.has-shell .bd-alert strong{display:block;font-size:var(--fs14);font-weight:var(--fw6)}
.has-shell .bd-alert p{margin:.25rem 0 0;font-size:var(--fs14)}
.has-shell .bd-alert.is-err{border-color:var(--red)}
.has-shell .bd-alert.is-err strong{color:var(--red)}
.has-shell .bd-alert.is-warn{border-color:var(--amber)}
.has-shell .bd-alert.is-ok{border-left-color:var(--mint,#14b8a6)}
.has-shell .bd-alert-x{position:absolute;top:.375rem;right:.375rem}
/* Every message runs as one paragraph: its heading, what happened, its close in the middle of its right edge
   (2026-11-03 for Done; 2026-11-04 for errors and warnings too: three lines stacked read as a broken box).
   An error or a warning is tinted with its colour, so it reads as one thing. */
.has-shell .bd-alert{padding-block:.5rem}
.has-shell .bd-alert strong{display:inline;margin-inline-end:.375rem}
.has-shell .bd-alert p{display:inline;margin:0}
.has-shell .bd-alert .bd-alert-x{position:absolute;top:50%;right:.5rem;transform:translateY(-50%)}  /* the shared .bd-x further down is position: relative; at its weight it won, and the × sat after the words (2026-11-04) */
.has-shell .bd-alert.is-err{background:color-mix(in oklab,var(--red) 7%,var(--surface))}
.has-shell .bd-alert.is-warn{background:color-mix(in oklab,var(--amber) 9%,var(--surface))}
.has-shell .bd-alert:focus{outline:2px solid var(--accent);outline-offset:2px}
/* The progress of a build, a change or a translation, in place of the preview. */
.has-shell .bd-progress{border:1px solid var(--accent);border-radius:var(--r8);padding:.75rem 1rem;margin:.75rem 0}
.has-shell #site-panel .bd-progress h3{margin:0 0 .5rem}
.has-shell .bd-bar{height:.5rem;border-radius:var(--r8);background:var(--line);overflow:hidden}
.has-shell .bd-bar span{display:block;height:100%;background:var(--accent);transition:width .6s ease}
.has-shell .bd-steps{list-style:none;margin:.75rem 0 .25rem;padding:0;display:grid;gap:.25rem;font-size:var(--fs14)}
.has-shell .bd-steps li{padding-inline-start:1.5rem;position:relative;color:var(--text-muted)}
.has-shell .bd-steps li::before{content:"";position:absolute;left:.25rem;top:.45em;width:.6rem;height:.6rem;border-radius:50%;border:2px solid var(--line)}
.has-shell .bd-steps li.is-done{color:inherit}
.has-shell .bd-steps li.is-done::before{background:var(--accent);border-color:var(--accent)}
.has-shell .bd-steps li.is-now{color:inherit;font-weight:var(--fw6)}
.has-shell .bd-steps li.is-now::before{border-color:var(--accent);animation:bd-pulse 1.2s ease-in-out infinite}
@keyframes bd-pulse{50%{background:var(--accent)}}
@media (prefers-reduced-motion:reduce){.has-shell .bd-steps li.is-now::before{animation:none;background:var(--accent)}.has-shell .bd-bar span{transition:none}}
.has-shell .bd-stage.bd-stage-off{display:grid;place-content:center;text-align:center;padding:1rem;resize:none}
.has-shell .bd-stage-off p{margin:.25rem 0}
.has-shell .bd-build{margin-block:.75rem}
.has-shell .bd-prev-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem}
.has-shell #site-panel .bd-prev-head h3{margin:0}
/* The AI panel (app-standards ai.md §8): docked on the right of the website, resizable. */
.has-shell .bd-ai-btn[aria-pressed="true"]{border-color:var(--accent);color:var(--accent)}
.has-shell .bd-work.bd-cols{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(360px,var(--ai-w,420px));align-items:start}
.has-shell .bd-main{min-width:0}
.has-shell .bd-ai-split{width:6px;align-self:stretch;cursor:col-resize;border-left:1px solid var(--line);margin-inline-start:.75rem;background:transparent}
.has-shell .bd-ai-split:hover{border-left:2px solid var(--accent)}
.has-shell .bd-ai-split:focus-visible{outline:0;background:color-mix(in oklab,var(--accent) 40%,transparent)}
.has-shell .bd-ai{min-width:0;display:flex;flex-direction:column;gap:.5rem;padding-inline-start:.75rem;position:sticky;top:4rem;max-height:calc(100vh - 5rem)}
.has-shell .bd-ai-head{display:flex;align-items:center;gap:.5rem}
.has-shell #site-panel .bd-ai-head h3{margin:0;flex:1}
.has-shell .bd-ai-credits{margin:0;font-size:var(--fs12)}
.has-shell .bd-ai-log{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.5rem;overflow:auto;min-height:6rem;flex:1}
.has-shell .bd-ai-m{max-width:90%;padding:.5rem .75rem;border-radius:var(--r8);border:1px solid var(--line);font-size:var(--fs14);overflow-wrap:break-word}
.has-shell .bd-ai-m p{margin:0;white-space:pre-wrap}
.has-shell .bd-ai-m.is-mine{align-self:flex-end;background:color-mix(in oklab,var(--accent) 10%,transparent);border-color:transparent}
.has-shell .bd-ai-m.is-ai{align-self:flex-start}
.has-shell .bd-ai-m.is-cant,.has-shell .bd-ai-m.is-questions{border-color:var(--amber)}
.has-shell .bd-ai-m.is-error{border-color:var(--red)}
.has-shell .bd-ai-m.is-typing p{color:var(--text-muted)}
.has-shell .bd-ai-empty{font-size:var(--fs14)}
.has-shell .bd-ai-compose{display:grid;gap:.5rem}
.has-shell .bd-ai-compose textarea{width:100%;resize:vertical}
.has-shell .bd-ai-compose p{margin:0;font-size:var(--fs12)}
/* Click-to-edit (2026-11-09): Edit this section in the AI panel's place, and the AI's "About: …" line. */
.has-shell .bd-ed-where{margin:0;display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;font-size:var(--fs12)}
.has-shell .bd-ed-nav{display:inline-flex;gap:.25rem;margin-inline-start:auto}
.has-shell .bd-ed-form{display:flex;flex-direction:column;gap:.75rem;overflow:auto;flex:1;min-height:0;padding-inline-end:.25rem}
.has-shell .bd-ed-form .field{margin:0}
.has-shell .bd-ed-form input,.has-shell .bd-ed-form textarea,.has-shell .bd-ed-form select{width:100%}
.has-shell .bd-ed-form textarea{resize:vertical}
.has-shell .bd-ed-item{border:1px solid var(--line);border-radius:var(--r8);padding:.5rem .75rem .75rem;margin:0;display:flex;flex-direction:column;gap:.5rem}
.has-shell .bd-ed-item legend{font-size:var(--fs12);font-weight:var(--fw6);padding:0 .25rem}
.has-shell .bd-ed-form>p{margin:0;font-size:var(--fs12)}
.has-shell .bd-ed-acts{flex-wrap:wrap;gap:.5rem;padding-top:.5rem;border-top:1px solid var(--line)}
.has-shell .bd-ed-iacts{flex-wrap:wrap;gap:.5rem}
.has-shell .bd-ed-lab{font-size:var(--fs14);font-weight:var(--fw5)}
.has-shell .bd-ed-photo .inline-row{flex-wrap:wrap;align-items:center;gap:.5rem}
.has-shell .bd-ed-pic{display:inline-flex;align-items:center;gap:.5rem}
.has-shell .bd-ed-pic img{width:2.5rem;height:2.5rem;object-fit:cover;border-radius:var(--r8)}
.has-shell .bd-ed-thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(5rem,1fr));gap:.5rem;max-height:14rem;overflow:auto;margin-top:.5rem}
.has-shell .bd-ed-thumb{display:flex;flex-direction:column;gap:.25rem;padding:.25rem;border:1px solid var(--line);border-radius:var(--r8);background:none;color:inherit;font:inherit;font-size:var(--fs12);cursor:pointer;text-align:center;min-width:0}
.has-shell .bd-ed-thumb img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:var(--r8)}
.has-shell .bd-ed-thumb span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.has-shell .bd-ed-thumb.is-on{border-color:var(--accent,#1f4fa3);box-shadow:inset 0 0 0 1px var(--accent,#1f4fa3)}
.has-shell .bd-ed-ibtn{display:grid;gap:.5rem}
.has-shell .bd-ai-about{display:flex;align-items:center;gap:.5rem;margin:0;padding:.25rem .5rem;border:1px solid var(--accent);border-radius:var(--r8);font-size:var(--fs12)}
.has-shell .bd-ai-about span{flex:1;min-width:0;overflow-wrap:anywhere}
@media (max-width:1023px){
  .has-shell .bd-work.bd-cols{display:block}
  .has-shell .bd-ai-split{display:none}
  .has-shell .bd-ai{position:static;max-height:none;padding:.75rem 0 0;margin-top:1rem;border-top:1px solid var(--line)}
}
/* The Website tab's two columns (2026-11-10): Preview | Plan on the left, AI | Settings on the right. The right column
   holds the project's one AI chat docked into it (ZZChat.dock), the job's progress and the preview's and form's settings. */
.has-shell .bd-left{min-width:0}
.has-shell .bd-right{min-width:0;display:flex;flex-direction:column;gap:.75rem;position:sticky;top:4rem;max-height:calc(100vh - 5rem);overflow:auto;padding-inline-start:.75rem}
.has-shell .bd-subtabs{margin-bottom:.75rem}
/* The column scrolls as a whole: nothing in it shrinks. A long Settings squeezed the tab bar (overflow-x:auto, so it may shrink to
   nothing) to 0px, and the AI and Settings tabs took no clicks (builder fixes 3 checklist, found while testing Translate again). */
.has-shell .bd-right>*{flex-shrink:0}
.has-shell .bd-pane{display:flex;flex-direction:column;gap:.75rem;min-width:0}
.has-shell .bd-right .bd-ai.bd-ed{position:static;max-height:none;padding:0}
.has-shell .bd-ai.bd-helper.is-docked{position:static;z-index:auto;width:auto;max-height:none;padding:0;background:transparent;border:0}
.has-shell .bd-helper.is-docked .bd-ai-head,.has-shell .bd-helper.is-docked .bd-hp-grip{display:none}
.has-shell .bd-helper.is-docked .bd-ai-log{max-height:min(52vh,30rem)}
.has-shell .bd-planpane>h3,.has-shell .bd-vh,.has-shell .bd-contact>h3,.has-shell .bd-retrans>h3{margin:0;font-size:var(--fs14)}
.has-shell .bd-planpane>p,.has-shell .bd-contact>p,.has-shell .bd-retrans>p{margin:0}
.has-shell :is(.bd-contact,.bd-retrans){border-top:1px solid var(--line);padding-top:.75rem;display:flex;flex-direction:column;gap:.5rem}
.has-shell .bd-contact input{width:100%}
@media (max-width:1023px){
  .has-shell .bd-right{position:static;max-height:none;overflow:visible;padding:.75rem 0 0;margin-top:1rem;border-top:1px solid var(--line)}
}
/* Website health (2026-11-09): the last weekly check of a live website, with Check now. */
.has-shell .bd-health{border:1px solid var(--line);border-radius:var(--r8);padding:.5rem .75rem;margin-block:.75rem}
.has-shell .bd-hl-head{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}
.has-shell .bd-hl-head h3{margin:0;font-size:var(--fs14)}
.has-shell .bd-hl-head .btn{margin-inline-start:auto}
.has-shell .bd-hl-ok{margin:.5rem 0 0;font-size:var(--fs14)}
.has-shell .bd-hl-list{margin:.5rem 0 0;padding-inline-start:1.25rem;font-size:var(--fs14);display:grid;gap:.25rem;overflow-wrap:anywhere}
.has-shell .bd-hl-list .is-bad::marker{color:var(--red)}
.has-shell .bd-hl-list .is-warn::marker{color:var(--warn-ink)}
/* Reading the owner's current website (2026-11-09), under its field on the Business tab. */
.has-shell .bd-old p{margin:0 0 .375rem}
/* The sign-off before Push to live: each check with its result word first. */
.has-shell .bd-signoff{border:1px solid var(--line);border-radius:var(--r8);padding:.5rem .75rem;margin-block:.75rem}
.has-shell .bd-signoff h3{margin:.25rem 0 .5rem;font-size:var(--fs14);font-weight:var(--fw6)}
.has-shell .bd-checks{list-style:none;margin:0 0 .5rem;padding:0;display:grid;gap:.25rem}
.has-shell .bd-check{display:grid;grid-template-columns:minmax(4.5rem,auto) 1fr;gap:.5rem;font-size:var(--fs14);line-height:1.45}
.has-shell .bd-check strong{font-weight:var(--fw6)}
.has-shell .bd-check.is-ok strong{color:inherit}
.has-shell .bd-check.is-block strong{color:var(--red)}
.has-shell .bd-check.is-warn strong{color:var(--warn-ink)}
.has-shell .bd-check.is-info strong{color:var(--text-muted)}
.has-shell .bd-langs{border:0;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:.5rem 1rem;align-items:center}
.has-shell .bd-langs legend{font-size:var(--fs12);color:var(--text-muted);padding:0;margin-bottom:.25rem}
/* The preview: a box the owner drags taller or shorter; the page inside is drawn at a
   laptop's or a phone's width and scaled to fit (builder.js fit()). */
.has-shell .bd-views{display:flex;gap:.25rem;margin-top:.5rem}
.has-shell .bd-views [aria-pressed="true"],.has-shell [data-ed-toggle][aria-pressed="true"]{border-color:var(--accent);color:var(--accent)}
.has-shell [data-ed-toggle]{margin-top:.5rem}
.has-shell .bd-stage{position:relative;height:min(70vh,640px);min-height:240px;resize:vertical;overflow:hidden;
  border:1px solid var(--line);border-radius:var(--r8);margin-block:.5rem}
.has-shell .bd-stage .bd-frame{position:absolute;top:0;left:0;display:block;border:0;transform-origin:0 0}
.has-shell .bd-stage[data-view="phone"] .bd-frame{box-shadow:0 0 0 1px var(--line)}
.has-shell .bd-questions{display:grid;gap:.75rem;justify-items:start;border:1px solid var(--line);border-radius:var(--r8);padding:1rem 1.25rem;margin-block:.75rem}
/* Even spacing inside it (2026-11-03): the numbers inside the border, nothing with a margin of its own. */
.has-shell #site-panel .bd-questions h3{margin:0}
.has-shell .bd-questions ol{display:grid;gap:.375rem;margin:0;padding-inline-start:1.5rem;font-size:var(--fs14)}
.has-shell .bd-questions>:is(.field,p){margin:0;width:100%}
.has-shell .bd-questions .field textarea{width:100%}
.has-shell #site-panel h3{font-size:var(--fs14);font-weight:var(--fw6);margin:1rem 0 .25rem}
.has-shell .bd-versions tr.is-on td{font-weight:var(--fw6)}
.has-shell .bd-dl{margin-top:1rem}
.has-shell .bd-doms{list-style:none;margin:.5rem 0;padding:0}
/* The website's address, one of three (2026-11-03). */
.has-shell .bd-dom-pick{border:0;margin:.75rem 0 .5rem;padding:0;display:grid;gap:.5rem;min-width:0}
.has-shell .bd-dom-pick legend{font-size:var(--fs14);font-weight:var(--fw6);padding:0;margin-bottom:.5rem}
.has-shell .bd-dom-opt{display:flex;gap:.625rem;align-items:flex-start;padding:.625rem .75rem;border:1px solid var(--line);border-radius:var(--r8);cursor:pointer}
.has-shell .bd-dom-opt.is-on{border-color:var(--accent)}
.has-shell .bd-dom-opt input{flex:0 0 auto;width:auto;min-width:0;min-height:0;margin:.2rem 0 0}
.has-shell .bd-dom-opt span{flex:1 1 auto;display:grid;gap:.125rem;min-width:0;text-align:start}
.has-shell .bd-dom-opt strong{font-size:var(--fs14)}
.has-shell .bd-dom-opt small{font-size:var(--fs12);color:var(--text-muted)}
.has-shell .bd-dom-body{display:grid;gap:.5rem;margin-bottom:.75rem}
.has-shell .bd-free-row{flex-wrap:nowrap;align-items:center}
.has-shell .bd-free-row input{flex:1 1 auto;min-width:0}
.has-shell .bd-d-results tr.is-on td{background:color-mix(in oklab,var(--accent) 8%,transparent)}
.has-shell .bd-d-for{margin:.5rem 0 0;font-size:var(--fs14)}
.has-shell .bd-doms li{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;padding:.35rem 0}
.has-shell .bd-code{font-size:var(--fs14);padding:.25rem .5rem;border:1px solid var(--line);border-radius:var(--r8)}
.has-shell #site-panel .inline-row{margin-block:.5rem}
/* The plan behind a version (assets/builder.js planFold): pages, each with its sections. */
.has-shell .bd-ptheme{font-size:var(--fs14)}
.has-shell .bd-sw{display:inline-block;width:.9rem;height:.9rem;border-radius:var(--r8);border:1px solid var(--line);vertical-align:middle;margin-inline-end:.25rem}
.has-shell .bd-ppages{margin:.5rem 0;padding-inline-start:1.25rem}
.has-shell .bd-ppages>li{margin-block:.75rem}
.has-shell .bd-ppages h4{margin:0;font-size:var(--fs14);font-weight:var(--fw6)}
.has-shell .bd-ppages p{margin:.25rem 0;font-size:var(--fs14)}
.has-shell .bd-psecs{margin:.25rem 0;padding-inline-start:1.25rem}
.has-shell .bd-psec{margin-block:.5rem;font-size:var(--fs14)}
.has-shell .bd-ptype{display:inline-block;font-size:var(--fs12);padding:0 .4rem;border:1px solid var(--line);border-radius:var(--r8);color:var(--text-muted)}
.has-shell .bd-pdetail{margin:.25rem 0;padding-inline-start:1rem;font-size:var(--fs12)}
.has-shell .bd-planfold .inline-row .btn.is-on{border-color:var(--accent);color:var(--accent)}
/* Admin's Website builder card: the state line on top, then Plan, For and Give
   this plan on one line, the button level with the boxes. */
.has-shell .bd-state{margin:0 0 .5rem}
.has-shell .bd-give{align-items:flex-end;gap:.75rem}
.has-shell .bd-give .field{margin:0;min-width:10rem}
.has-shell .bd-give .btn{margin-bottom:.125rem}
.has-shell .bd-drift{border:1px solid var(--line);border-radius:var(--r8);padding:.5rem .75rem;margin-block:.75rem}
.has-shell .bd-drift p{margin:.25rem 0}
.has-shell .bd-docs p{margin:.25rem 0}
.has-shell .bd-logo-tag{font-size:var(--fs12);font-weight:var(--fw6);color:var(--accent);align-self:center}

/* ── Prospecting (assets/prospect-dash.js) ───────────────────────────────
   The pipeline is the kit's table; a prospect opens in place with the kit's
   header. A tier is a pill: hot in the accent, warm amber, cold muted. */
.has-shell .pr-warn{background:color-mix(in oklab,var(--amber) 14%,transparent)}
.has-shell .status-pill.pr-tier-hot{color:var(--accent);border-color:color-mix(in oklab,var(--accent) 45%,transparent)}
.has-shell .status-pill.pr-tier-warm{color:var(--amber);border-color:color-mix(in oklab,var(--amber) 45%,transparent)}
.has-shell .status-pill.pr-tier-cold{color:var(--text-muted)}
.has-shell .pr-search{align-items:center;margin:0 0 .75rem}
.has-shell .pr-search input{flex:1 1 14rem;width:auto;min-width:0}
.has-shell .pr-search select{flex:0 1 auto;width:auto;min-width:0}
.has-shell .pr-table :is(td,th){white-space:normal;overflow-wrap:break-word}
@media (min-width:768px){.has-shell .pr-table :is(td.pr-why,td.pr-reach){min-width:9rem}}
.has-shell .pr-table td.row-main{min-width:11rem}
.has-shell .pr-why{font-size:var(--fs12);color:var(--text-muted)}
.has-shell .pr-reach{font-size:var(--fs12)}
.has-shell .pr-pages{align-items:center;justify-content:center;margin:.75rem 0}
.has-shell .pr-body{margin-top:.75rem}
.has-shell .pr-body.pr-ed{margin-top:0}
.has-shell .pr-reasons{margin:0;padding-inline-start:1.1rem;font-size:var(--fs14)}
.has-shell .pr-reasons li{margin:.3rem 0}
.has-shell .pr-contacts td{white-space:normal;overflow-wrap:break-word}
.has-shell .pr-chips{display:flex;flex-wrap:wrap;gap:.35rem;margin:.25rem 0 .5rem}
.has-shell .pr-chip{display:inline-flex;align-items:center;gap:.25rem;padding:0 .25rem 0 .6rem;border:1px solid var(--line);border-radius:var(--r8);font-size:var(--fs14)}
.has-shell .pr-chip .linkbtn{min-width:1.75rem;min-height:1.75rem}
.has-shell .pr-hunt .inline-row{align-items:center;flex-wrap:wrap}
.has-shell .pr-hunt .inline-row :is(select,input){flex:1 1 12rem;width:auto;min-width:0}
.has-shell .pr-hunt .ml-check,.has-shell .pr-keep .ml-check{display:flex;align-items:center;gap:.5rem;margin:.4rem 0;font-size:var(--fs14)}
/* "Keep only" is a group box like the others: its legend drawn as their heading, inside the frame. */
.has-shell fieldset.pr-keep{min-width:0}
.has-shell .pr-keep>legend{float:left;width:100%;padding:0;margin:0 0 .6rem;font-size:var(--fs14);font-weight:var(--fw6)}
.has-shell .pr-keep>legend+*{clear:both}
.has-shell .pr-keep-more{display:grid;gap:.75rem}
.has-shell .pr-keep-more>.pr-grid{margin:0}
/* Searches: Find in rows sits right under New search, so the gap below it is the same as above (Zac, 2026-10-20). */
.has-shell .pr-body .inline-row:has([data-pr-new-hunt])+.kit-gridbar{margin-bottom:0}
/* The sender's agreement: its bullets inside the box, not on its edge. */
.has-shell .pr-agree ul{margin:.5rem 0;padding-inline-start:1.25rem;display:grid;gap:.25rem}
.has-shell .pr-allow-end{display:flex;align-items:flex-end;gap:.5rem;flex-wrap:wrap}
/* A prospect or a search opened inside the panel: the kit's header shape, one
   level down (h2), since the page above already has its title. */
.has-shell .pr-inner{margin-top:0}
.has-shell .pr-inner h1{font-size:var(--fs16);font-weight:var(--fw6);margin:0}
.has-shell :is(.pr-calls,.pr-plan){margin:0 0 .75rem;padding-inline-start:1.1rem;font-size:var(--fs14)}
.has-shell :is(.pr-calls,.pr-plan) li{margin:.3rem 0}
.has-shell .pr-ab :is(td,th),.has-shell .pr-topups td{white-space:normal;overflow-wrap:anywhere}
.has-shell .pr-funnel th{width:1%;white-space:nowrap;padding-inline-end:2rem;font-weight:var(--fw5);text-align:start}
.has-shell .pr-funnel td.pr-funnel-n{width:1%;white-space:nowrap;text-align:end;font-variant-numeric:tabular-nums}
.has-shell .pr-funnel td.pr-funnel-bar i{display:block;block-size:.5rem;min-inline-size:2px;border-radius:var(--r8);background:var(--viz-1,var(--accent))}
/* Status first, as a dot and its name (main's List View rule): a prospect's
   stage, and the state of a search, a mailbox, a top-up or an account. */
.has-shell .status-pill:is(.pr-st-found,.pr-st-audited){color:var(--text-muted)}
.has-shell .status-pill.pr-st-ready{color:var(--accent)}
.has-shell .status-pill.pr-st-contacted{color:var(--amber)}
.has-shell .status-pill:is(.pr-st-replied,.pr-st-interested,.pr-st-booked,.pr-st-won){color:var(--mint)}
.has-shell .status-pill:is(.pr-st-lost,.pr-st-suppressed){color:var(--text-muted)}
/* Admin's Prospecting accounts: framed and rounded like the never-contact card under it (Zac, 2026-10-15), not edge to edge like other List Views */
@media (min-width:768px){#pr-accounts-view>.kit-table-wrap{margin-inline:0;border-inline:1px solid var(--line);border-radius:var(--r8)}}
.has-shell .status-pill.pr-hs-ok{color:var(--mint)}
.has-shell .status-pill.pr-hs-run{color:var(--accent)}
.has-shell .status-pill.pr-hs-warn{color:var(--amber)}
.has-shell .status-pill.pr-hs-bad{color:var(--red)}
.has-shell .status-pill.pr-hs-off{color:var(--text-muted)}
/* Phase 2: an email as it was (or would be) sent, the mailboxes' records. */
.has-shell .pr-msg{padding:.5rem 0;border-top:1px solid var(--line)}
.has-shell .pr-msg:first-of-type{border-top:0}
.has-shell .pr-subject{margin:.25rem 0;font-size:var(--fs14)}
.has-shell .pr-email{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:var(--fs14);margin:0 0 .5rem;padding:.75rem;border:1px solid var(--line);border-radius:var(--r8);background:var(--surface-2)}
.has-shell .pr-dns{font-size:var(--fs12);white-space:nowrap}
.has-shell .pr-mb-acts{vertical-align:middle}
.has-shell .pr-mb-acts>*+*{margin-inline-start:.35rem}
.has-shell .pr-mailboxes :is(td,th){white-space:normal;overflow-wrap:anywhere}

/* ── Prospecting, compact (2026-10-18; app-standards 05: group boxes, the Status
   band, two columns with a divider; web-builder-skills: the 4px spacing steps,
   a row of tick boxes as one check group) ── */
/* The account's figures: one short row, not a wall of tiles. */
.has-shell .pr-kpis{grid-template-columns:repeat(auto-fit,minmax(8.5rem,1fr));gap:.5rem;margin:.5rem 0 .75rem}
.has-shell .pr-kpis .ml-stat{padding:.5rem .75rem;gap:0}
.has-shell .pr-kpis .ml-stat span{font-size:var(--fs12)}
/* A prospect's Status band: stage, score (a bar), and the search that found it, on one line. */
.has-shell .pr-band-facts{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem 2rem;margin:0}
.has-shell .pr-band-facts>div{display:flex;align-items:center;gap:.5rem;min-width:0}
.has-shell .pr-band-facts dt{font-size:var(--fs12);color:var(--text-muted)}
.has-shell .pr-band-facts dd{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin:0;font-size:var(--fs14)}
.has-shell .pr-band-facts dd b{font-weight:var(--fw6)}
.has-shell .pr-meter{display:inline-block;width:8rem;height:.5rem;border-radius:var(--r8);background:var(--surface-2);overflow:hidden}
.has-shell .pr-meter>i{display:block;height:100%;background:var(--text-muted)}
.has-shell .pr-score{display:grid;gap:.35rem;justify-items:start}
.has-shell .pr-score>.pr-meter{width:6rem;height:.375rem}
.has-shell .pr-meter.pr-tier-hot>i{background:var(--accent)}
.has-shell .pr-meter.pr-tier-warm>i{background:var(--amber)}
.has-shell .pr-band~.pr-cols{margin-top:1rem}
.has-shell .pr-band+.note{margin-top:1rem}
.has-shell .pr-cols{--split:55%}
/* Both Edit Views of Prospecting, inputs left and information right (2026-11-09). They are containers: with the AI open
   as a third column there may be too little room for two, and then the information goes under the inputs. */
.has-shell .pr-ed{container:pr-ed/inline-size}
.has-shell .pr-hunt-cols{--split:62%;margin-top:.75rem}
.has-shell .pr-hunt-cols>.kit-col>.pr-hunt{margin:0}
@container pr-ed (max-width:36rem){
  .has-shell .pr-ed .kit-cols{grid-template-columns:minmax(0,1fr)!important;gap:.75rem}
  .has-shell .pr-ed .kit-cols>.kit-split{display:none}
}
/* A narrow column's label-and-value lists: the label takes at most 40%, and under 20rem it sits over its value. */
.has-shell .pr-ed .kit-cols>.kit-col{container-type:inline-size}
.has-shell .pr-ed .pr-kv>div{grid-template-columns:minmax(6rem,min(12rem,40%)) minmax(0,1fr)}
.has-shell .pr-ed .pr-kv .status-pill{white-space:normal}
@container (max-width:20rem){.has-shell .pr-ed .pr-kv>div{grid-template-columns:minmax(0,1fr);gap:.1rem}}
/* A place field with Open Google Maps beside it (2026-11-09). */
.has-shell .pr-map-row{display:flex;gap:.5rem;align-items:center}
.has-shell .pr-map-row>input{flex:1 1 auto;min-width:0}
.has-shell .pr-map-row>.btn{flex:none}
/* The form's three-to-a-row fields take two in a narrow left column. */
@media (min-width:768px){@container (max-width:560px){.has-shell .pr-hunt .pr-grid:not(.pr-grid-4):not(.pr-grid-5):not(.pr-grid-1){grid-template-columns:repeat(2,minmax(0,1fr))}}}
/* The Centre and the area's name, each a row of its own: the Centre has Open Google Maps beside it. */
.has-shell .pr-grid.pr-grid-1{grid-template-columns:minmax(0,1fr)}
/* A column never grows to its longest line (an email's report link): it wraps or scrolls inside. */
.has-shell .pr-cols>.kit-col{grid-template-columns:minmax(0,1fr)}
.has-shell .pr-cols>.kit-col>*{min-width:0}
/* What we found: a list of label and value, one thin line between. */
.has-shell .pr-kv{display:grid;margin:0 0 .5rem}
.has-shell .pr-kv>div{display:grid;grid-template-columns:minmax(7rem,12rem) minmax(0,1fr);gap:.75rem;align-items:baseline;padding:.25rem 0;border-bottom:1px solid var(--line)}
.has-shell .pr-kv>div:last-child{border-bottom:0}
.has-shell .pr-kv dt{font-size:var(--fs12);color:var(--text-muted)}
.has-shell .pr-kv dd{margin:0;font-size:var(--fs14);overflow-wrap:break-word}
/* A form's fields three to a row; a phone takes them one at a time. */
.has-shell .pr-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;align-items:end;margin:0 0 .75rem}
/* A field with a link of its own keeps it beside its caption, so its box lines up with the others' (2026-11-03). */
.has-shell .pr-grid>.field:has(>.pr-s-go){display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;column-gap:.5rem}
.has-shell .pr-grid>.field:has(>.pr-s-go)>label{grid-column:1;grid-row:1}
.has-shell .pr-grid>.field:has(>.pr-s-go)>.pr-s-go{grid-column:2;grid-row:1;font-size:var(--fs12);margin:0}
.has-shell .pr-grid>.field:has(>.pr-s-go)>input:not([type=hidden]){grid-column:1/-1;grid-row:2}
.has-shell .pr-grid.pr-grid-5{grid-template-columns:repeat(auto-fit,minmax(10rem,1fr))}
.has-shell .pr-grid.pr-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
/* Name, Country, Where, Within: four across, two by two when the form is narrow (beside the assistant), one on a phone. */
.has-shell .pr-hunt{container-type:inline-size}
@container (max-width:760px){.has-shell .pr-grid.pr-grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container (max-width:420px){.has-shell .pr-grid.pr-grid-4{grid-template-columns:minmax(0,1fr)}}
.has-shell .pr-grid>.field{margin:0}
.has-shell .pr-grid>.pr-grid-check{align-self:center;margin:0}
.has-shell .pr-grid.hidden{display:none}
@media (max-width:767px){.has-shell .pr-grid{grid-template-columns:minmax(0,1fr)}}
.has-shell .pr-hunt{display:grid;gap:.75rem}
.has-shell .pr-hunt>.card.panel,.has-shell .pr-hunt>fieldset{margin:0}
.has-shell .pr-hunt .field{margin-bottom:.75rem}
.has-shell .pr-hunt .card.panel>.field:last-child,.has-shell .pr-hunt .pr-types{margin-bottom:0}
.has-shell .check-group{display:flex;flex-wrap:wrap;gap:.25rem 1.5rem;margin:0 0 .75rem}
.has-shell .check-group>.ml-check{margin:0}
.has-shell .pr-web{margin-top:.75rem;padding-top:.75rem;border-top:1px solid var(--line)}
.has-shell .pr-web .sub-h{margin:0 0 .4rem}
/* Text in Prospecting's cards on the app's spacing steps (app-standards 05, Density: editors and bands
   12px apart). Before, browser and older portal defaults left 0, 5.6, 8, 9.6 and 22.4px between a card's
   parts: paragraphs touched, and a sub-heading floated off its content. Everything in a card is 12px from
   the part above it, nothing else adds a margin; inside a smaller group (an email, the preview website,
   a plan) it is 8px. */
.has-shell :is(#pr-body,#pr-accounts-view) .card.panel>*,.has-shell #pr-body .card.panel>form>*{margin:0}
.has-shell :is(#pr-body,#pr-accounts-view) .card.panel>*+*,.has-shell #pr-body .card.panel>form>*+*{margin-top:.75rem}
.has-shell #pr-body .card.panel>legend+*{margin-top:0}
.has-shell #pr-body .card.panel.pr-keep>legend{margin-bottom:.75rem}
.has-shell #pr-body :is(.pr-msg,.pr-web,.pr-ai-plan,.pr-ai-log)>*{margin:0}
.has-shell #pr-body :is(.pr-msg,.pr-web,.pr-ai-plan)>*+*{margin-top:.5rem}
.has-shell #pr-body :is(.pr-reasons,.pr-calls,.pr-plan)>li{margin:0}
.has-shell #pr-body :is(.pr-reasons,.pr-calls,.pr-plan)>li+li{margin-top:.25rem}
.has-shell #pr-body .pr-smtp>form{margin-top:.75rem}
.has-shell #pr-body .pr-smtp>form>*{margin:0}
.has-shell #pr-body .pr-smtp>form>*+*{margin-top:.75rem}
/* What the address's lookup found (prospect-dash.js findServers), and the servers folded under it. */
.has-shell #pr-body .pr-smtp-found:empty{display:none}
.has-shell #pr-body .pr-smtp-found{font-size:var(--fs12,.75rem)}
.has-shell #pr-body .pr-smtp-adv>summary{cursor:pointer;font-size:var(--fs12,.75rem);color:var(--text-muted)}
.has-shell #pr-body .pr-smtp-adv>.pr-grid{margin-top:.5rem}
.has-shell #pr-body .pr-smtp-adv>.pr-smtp-guide{margin:.5rem 0 0}
.has-shell #pr-body .pr-smtp>summary{cursor:pointer;font-weight:var(--fw6);font-size:var(--fs14)}
/* "Your email is with": a group of three radios, no frame (2026-10-20, Zed). */
.has-shell #pr-body .pr-smtp-prov{min-width:0;margin:0;padding:0;border:0}
.has-shell #pr-body .pr-smtp-prov>legend{margin:0 0 .25rem;padding:0;font-size:var(--fs12);color:var(--text-muted)}
.has-shell #pr-body .pr-msg+.pr-msg{margin-top:.75rem;padding-top:.75rem;border-top:1px solid var(--line)}
/* New search: the form on the left, the assistant's chat on the right (stays in view while the form
   scrolls); on a phone the chat comes first, since New search starts with it. */
.has-shell .pr-plancols{--split:60%;margin-top:.75rem}
/* The Searches list beside the assistant: the table stays in its column with its frame, as the accounts table does,
   not full-bleed to the Sidebar and under the divider. */
.has-shell .pr-listcols .kit-table-wrap{margin-inline:0;border-inline:1px solid var(--line);border-radius:var(--r8)}
.has-shell .pr-plancol>.pr-ai{position:sticky;top:.75rem;margin:0}
@media (max-width:1023px){.has-shell .pr-plancols>.pr-plancol{order:-1}.has-shell .pr-plancol>.pr-ai{position:static}}
/* The search assistant: the conversation, then how its plan will search. */
.has-shell .pr-ai{margin-bottom:.75rem}
.has-shell .pr-ai-log{display:grid;gap:.4rem;margin:0 0 .75rem;max-width:65ch}
.has-shell .pr-turn{margin:0;font-size:var(--fs14)}
.has-shell .pr-turn b{display:inline-block;min-width:2.5rem;font-weight:var(--fw6);color:var(--text-muted)}
.has-shell .pr-ai-plan{margin:0 0 .75rem;padding:.75rem;border:1px solid var(--line);border-radius:var(--r8)}
.has-shell .pr-ai-plan .sub-h{margin:0 0 .5rem}
.has-shell .pr-ai .field{margin-bottom:.5rem}
.has-shell .pr-grid:last-child,.has-shell .check-group:last-child{margin-bottom:0}
/* Short texts: two lines tall, and they grow when dragged. */
.has-shell :is(.pr-hunt,.pr-cols,[data-pr-settings],.pr-ai) textarea:not([data-pr-m-body]){min-height:3.75rem}
.has-shell .pr-types>label{font-size:var(--fs14);font-weight:var(--fw6)}
.has-shell .pr-types{display:block}
.has-shell .pr-types .pr-chips{margin:.25rem 0 .5rem;min-height:1.875rem;align-items:center}   /* one chip's height, so the first one doesn't push the field down */

/* The Dashboard's "Waiting for you to accept" (an agreement or terms to read): yellow, so it is seen
   before the projects. Its line takes the text colour, as muted grey on the tint reads too faintly. */
/* A true yellow, not --amber: in the light theme --amber is orange and its tint reads as peach. */
.has-shell #dash-agree{--agree-y:#eab308;background:color-mix(in oklab,var(--agree-y) 18%,var(--surface));border-color:color-mix(in oklab,var(--agree-y) 70%,transparent)}
.has-shell #dash-agree .muted{color:var(--text)}

/* A client's "Ask to add it" in admin's Support centre (support.js askHtml): what it asks for, then
   Approve, or Approved once done. Under the words, above the time. */
.has-shell .sp-ask{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin-top:.5rem;padding-top:.5rem;border-top:1px solid var(--line);font-size:var(--fs12,.75rem);font-weight:var(--fw6,600)}
.has-shell .status-pill.sp-ask-done{color:var(--mint)}

/* ── Settings (portal/index.html #settings, 2026-10-20): the business's country, and what its law means ── */
.has-shell #set-law{max-width:40rem}
.has-shell #settings-panel{display:grid;gap:.75rem}
.has-shell #settings-panel .field select{width:100%;max-width:24rem}
.has-shell #set-law p{margin:.25rem 0 .5rem;font-size:var(--fs14)}
.has-shell .set-law-list{list-style:none;margin:0;padding:0}
.has-shell .set-law-list li{display:grid;gap:.15rem;padding:.6rem 0;border-top:1px solid var(--line);font-size:var(--fs14)}
.has-shell .set-law-list b{font-weight:var(--fw6)}
.has-shell .set-law-list span{color:var(--text-muted)}
.has-shell .pr-s-go{display:inline-block;margin-top:.25rem;font-size:var(--fs12)}
/* Usage credits (assets/credits.js, 2026-10-23): the balance, its bar, what used it. */
.has-shell .cr-head{display:grid;gap:.4rem;margin-bottom:.75rem}
.has-shell .cr-big{margin:0;font-size:var(--fs16)}
.has-shell .cr-big b{font-size:var(--fs24);font-weight:var(--fw6);margin-inline-end:.25rem}
.has-shell .cr-meter{height:.5rem;border-radius:var(--r8);background:var(--surface-2);overflow:hidden}
.has-shell .cr-meter>span{display:block;height:100%;width:var(--cr-share,0%);background:var(--accent)}
.has-shell .cr-meter.is-low>span{background:var(--red)}
.has-shell .cr-acts{flex-wrap:wrap;gap:.5rem;margin:.75rem 0}
.has-shell .cr-cur select{min-height:32px}
.has-shell .cr-admin{display:grid;gap:.5rem;margin:.75rem 0}
.has-shell .cr-admin .inline-row{flex-wrap:wrap;align-items:center;gap:.5rem}
.has-shell .cr-admin label{display:inline-flex;align-items:center;gap:.5rem;font-size:var(--fs14);white-space:nowrap}
.has-shell .cr-table td.num,.has-shell .cr-table th.num{text-align:right;white-space:nowrap}
.has-shell .cr-table td:first-child{white-space:normal;min-width:10rem}
.has-shell .cr-list{list-style:none;margin:.5rem 0 0;padding:0}
.has-shell .cr-list li{display:grid;grid-template-columns:auto 1fr auto;gap:.75rem;padding:.4rem 0;border-top:1px solid var(--line);font-size:var(--fs14)}
.has-shell .cr-recent,.has-shell .cr-prices{margin-top:.75rem}
/* The builder's small close / remove button (an alert, a chip, a time, the AI panel): 24px on a laptop, a 44px target on a touch screen. */
.has-shell .bd-x{position:relative;display:inline-grid;place-items:center;width:1.5rem;height:1.5rem;padding:0;border:0;border-radius:var(--r8);background:transparent;color:var(--text-muted);font-size:var(--fs16,1rem);line-height:1;cursor:pointer}
.has-shell .bd-x:hover{color:inherit;background:var(--line)}
.has-shell .bd-x:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
@media (pointer:coarse){.has-shell .bd-x::after{content:"";position:absolute;inset:-10px}}
/* The Photos tab (2026-11-02): the logo's own place, each photo's number, name and tools. */
.has-shell .bd-logo-box{border:1px solid var(--line);border-radius:var(--r8);padding:.75rem;margin:.75rem 0}
.has-shell #photos-panel h3{font-size:var(--fs14);font-weight:var(--fw6);margin:1rem 0 .5rem}
.has-shell .bd-logo-box h3{margin-top:0!important}
.has-shell .bd-logo-row{display:flex;gap:1rem;align-items:center;flex-wrap:wrap}
.has-shell .bd-logo-row img{max-height:4rem;max-width:12rem;object-fit:contain;border:1px solid var(--line);border-radius:var(--r8);padding:.25rem;background:#fff}
.has-shell .bd-logo-row p{flex:1 1 16rem;margin:0;font-size:var(--fs14)}
.has-shell .bd-ph-id{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}
.has-shell .bd-ph-n{font-size:var(--fs12);font-weight:var(--fw6);color:var(--text-muted)}
.has-shell .bd-ph-ai{font-size:var(--fs12);padding:0 .4rem;border:1px solid var(--accent);border-radius:var(--r8);color:var(--accent)}
.has-shell .bd-ph-label{margin:.25rem 0}
.has-shell .bd-ph-file{margin:0;font-size:var(--fs12);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.has-shell .bd-pair img{transition:transform .2s ease,filter .2s ease}
.has-shell .bd-tools-row{display:flex;flex-wrap:wrap;gap:.5rem .75rem;align-items:flex-end;margin:.5rem 0}
.has-shell .bd-tools-row [aria-pressed="true"]{border-color:var(--accent);color:var(--accent)}
.has-shell .bd-tool-f{display:flex;flex-direction:column;gap:.25rem;font-size:var(--fs12)}
.has-shell .bd-tool-f input[type=range]{width:9rem}
.has-shell .bd-tool-now{margin:.25rem 0;font-size:var(--fs12)}
.has-shell .bd-ph-acts{flex-wrap:wrap}
/* The empty Dashboard (2026-11-02): one card in the middle of the page that starts a website. */
.has-shell .dash-start{max-width:32rem;margin:3rem auto;padding:1.5rem;text-align:left}
.has-shell .dash-start h2{font-size:var(--fs16);margin:0 0 .5rem}
.has-shell .dash-start>p.muted{margin:0 0 1rem;font-size:var(--fs14)}
.has-shell .dash-start .field{margin-bottom:.75rem}
.has-shell .dash-start .field input{width:100%}
.has-shell .dash-start-other{margin:.75rem 0 0;font-size:var(--fs14)}
/* Credits (2026-11-02 tidy): top-ups as three tiles with the currency beside them, Billing as a link; automatic
   top-up as one row whose labels sit above their boxes and whose buttons line up with the boxes. */
.has-shell .cr-sec{border-top:1px solid var(--line);padding-top:.75rem;margin-top:1rem}
.has-shell .cr-sec h3{margin:0 0 .5rem}
.has-shell .cr-topup{display:flex;flex-direction:column;gap:.75rem;align-items:stretch}
.has-shell .cr-cur{margin:0;flex:0 0 auto;width:7rem}
.has-shell .cr-cur select{width:100%}
/* The tiles fill the card's width (2026-11-03: "so much space is left on the right"), the button on each one's right. */
.has-shell .cr-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;width:100%}
.has-shell .cr-tile{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:1rem;align-items:center;padding:.75rem 1rem;border:1px solid var(--line);border-radius:var(--r8)}
.has-shell .cr-tile>:not(.btn){grid-column:1}
.has-shell .cr-tile .btn{grid-column:2;grid-row:1 / span 9;align-self:center}
.has-shell .cr-tile:focus-within{border-color:var(--accent)}
.has-shell .cr-tile.is-first{border-color:var(--accent)}
.has-shell .cr-tile b{font-size:var(--fs16);font-weight:var(--fw6)}
.has-shell .cr-tile span{font-size:var(--fs12);color:var(--text-muted)}
.has-shell .cr-tile em{font-style:normal;font-weight:var(--fw6);margin-top:.25rem}
.has-shell .cr-bill{margin:.75rem 0 0;font-size:var(--fs14)}
.has-shell .cr-auto-state{margin:0 0 .5rem;font-size:var(--fs14)}
.has-shell .cr-auto{display:flex;flex-wrap:wrap;gap:.75rem 1rem;align-items:flex-end;margin-bottom:1.25rem}
.has-shell .cr-auto .field{margin:0}
.has-shell .cr-auto input[type=number]{width:7rem}
.has-shell .cr-auto-acts{display:flex;gap:.5rem;align-items:center;min-height:36px}
.has-shell .status-pill.cr-on{color:var(--mint,#14b8a6)}
.has-shell .status-pill.cr-off{color:var(--text-muted)}
.has-shell .status-pill.cr-bad{color:var(--red)}
@media (max-width:600px){.has-shell .cr-tiles{grid-template-columns:1fr;max-width:none}}
.has-shell #facts-panel .panel-head{margin-bottom:.25rem}
.has-shell #facts-panel .bd-docs p:first-child{margin-top:0}
/* The mailshot's image picker (2026-11-02): a grid of the account's images, one press puts one in. */
.has-shell .ml-img-dlg{width:min(46rem,calc(100vw - 2rem));max-width:none}
.has-shell .ml-img-grid{list-style:none;margin:.75rem 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(8.5rem,1fr));gap:.5rem;max-height:50vh;overflow:auto}
.has-shell .ml-img-pick{display:grid;gap:.25rem;width:100%;padding:.25rem;border:1px solid var(--line);border-radius:var(--r8);background:transparent;color:inherit;cursor:pointer;text-align:left}
.has-shell .ml-img-pick:hover,.has-shell .ml-img-pick:focus-visible{border-color:var(--accent)}
.has-shell .ml-img-pick img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:var(--r8);background:var(--surface-2)}
.has-shell .ml-img-pick span{font-size:var(--fs12);color:var(--text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* The admin-side tidy (2026-11-02): a label above its box always starts at the left, whatever the row
   it sits in aligns (SEO Setup's labels went to the right); cards side by side keep their own height
   instead of stretching to the tallest (Hosting's empty half); a row's menu sits in the middle of its row. */
.has-shell .field>label{text-align:start;align-self:stretch}
.has-shell .feat-grid{align-items:start}
.has-shell .kit-table td.has-more{vertical-align:middle}

/* A project's header stays on screen as the page scrolls (2026-11-03: "you have to scroll up for the save button"),
   and so does every Edit View's (2026-11-05: "the edit view top bar should stick to the top of the screen"): a
   header with a Back. While one is open the List View's own header is out of sight (ZZKit.editing). */
.has-shell #detail>.rec-head,.has-shell header.rec-head:has(>.rec-back){position:sticky;top:0;z-index:5;background:var(--bg)}
.has-shell .kit-off{display:none!important}
/* A tab with nothing on it until there are credits says so, in the middle (Photos, Theme; 2026-11-03). */
.has-shell .bd-needs{max-width:30rem;margin:2.5rem auto;padding:1.5rem;text-align:center;border:1px solid var(--line);border-radius:var(--r8);background:var(--surface)}
.has-shell .card.bd-needs-host{border:0;background:none;padding:0}
.has-shell .bd-needs h2{margin:0 0 .5rem;font-size:var(--fs16);justify-content:center}  /* .panel h2 is a flex row: text-align alone left it on the left */
.has-shell .bd-needs p{margin:0 0 1rem;font-size:var(--fs14)}

/* ── Captions, fields and buttons in line (2026-11-03, Zed: "margin issues where captions and buttons dont align";
   scripts/e2e-align.js finds them). Labels sit above their boxes, so a row holding fields and buttons lines up on
   the boxes: a field's own bottom margin, meant for stacking, never pushes a row's button off its box. ── */
.has-shell :is(.inline-row,.ml-send,.q-bar,.field-row,.bd-form,.pr-grid,.ag-band,.feat-row)>.field{margin-bottom:0}
.has-shell .field>.inline-row{margin-top:0}
/* A List View's filter: its caption beside the control, like Type's beside its choices (the box sat off-centre under it). */
.has-shell .q-bar .field.q-site-field{flex-direction:row;align-items:center;gap:.5rem;margin:0}
.has-shell .q-bar .field.q-site-field>label{margin:0;align-self:center;font-size:var(--fs12);font-weight:400;color:var(--text-muted)}
/* Settings: the grid gives its own gaps; a field's margin and a row's top margin added two more. */
.has-shell #settings-panel>*{margin:0}
/* The addresses that sign in: a plain list, each address with its tag or Remove on its line. */
/* People with access: the card's heading with its New, the table of people, and the add form New opens. */
.has-shell .em-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem}
.has-shell .em-head h2{margin:0}
.has-shell .em-table select{min-width:7rem;max-width:100%;box-sizing:border-box}
@media (max-width:767px){.has-shell .em-table select{min-width:0;width:100%}}
@media (min-width:768px) and (max-width:1099px){.has-shell .em-table :is(th,td){white-space:normal;overflow-wrap:anywhere;padding-inline:.5rem}.has-shell .em-table :is(th,td):nth-child(5){display:none}.has-shell .em-table select{min-width:0;width:100%}}
.has-shell .em-fold[open]{margin:0 0 .75rem}
.has-shell .em-add.set-grid{align-items:end}
.has-shell .em-list{list-style:none;margin:0 0 .75rem;padding:0;display:grid;gap:.25rem}
.has-shell .em-list>li{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;min-height:2rem}
/* A narrow card's buttons may wrap their words rather than run out of it. */
.has-shell .theme-ai .inline-row{flex-wrap:wrap}
.has-shell .theme-ai .inline-row>.btn{max-width:100%}
/* A button inside a sentence ("No sets yet … Add set", a website's line with Delete this website) has a line of its own
   under the words: in the line, it sat off their middle, and on a phone it wrapped away from them (2026-11-03). */
.has-shell p>.btn,.has-shell p>button.btn,.has-shell .ml-chips>span.muted>.btn{display:flex;width:fit-content;margin-top:.5rem}
/* Admin's Delete project (2026-11-04): shown only once the top bar's Delete is pressed. The warning, the copy, the word
   and the row that deletes stand 12px apart, the card's padding above and below, nothing of their own added. */
.has-shell #del-card{gap:.75rem}
.has-shell #del-card>*,.has-shell #del-msg>*{margin:0}
.has-shell #del-msg{display:grid;gap:.75rem}
.has-shell #del-msg:empty{display:none}
.has-shell #del-msg .del-copy{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem .75rem}
.has-shell #del-msg .del-copy>.muted{font-size:var(--fs12)}
.has-shell #del-msg .del-copy>.btn{display:inline-flex;margin:0}
/* The project's Overview band follows its own width, not the window's (2026-11-04): with the Helper open the page is
   narrower than the window, and "Next step" was squeezed to a letter a line between the facts and Plan details. */
.has-shell .proj-band{container:projband/inline-size}
@container projband (max-width:48rem){.has-shell .proj-band-cols{grid-template-columns:minmax(0,1fr)}}
@container projband (max-width:30rem){.has-shell .proj-facts{grid-template-columns:minmax(0,1fr)}}
/* The theme's AI button (the portal's one AI chat, 2026-11-05): room before the colour fields under it. */
.has-shell .th-ai-row{margin-bottom:1rem}

/* The Multi-mailer's Settings in a small window (tester item 52, 2026-11-06): a field's box was as wide as its own
   default size, so two to a row ran past the card. Columns may shrink below their content, boxes never pass their card,
   and a row of box + button wraps. */
.has-shell .ml-pane :is(.field-row,.inline-row,.field,.card.panel){min-width:0;max-width:100%}
.has-shell .ml-pane .field-row{grid-template-columns:repeat(2,minmax(0,1fr))}
.has-shell .ml-pane :is(input,select,textarea){min-width:0;max-width:100%;box-sizing:border-box}
.has-shell .ml-pane .field :is(input,select,textarea){width:100%}
.has-shell .ml-pane .inline-row{flex-wrap:wrap}
.has-shell .ml-pane .inline-row>input{flex:1 1 12rem}
@media (max-width:800px){.has-shell .ml-pane .field-row{grid-template-columns:minmax(0,1fr)}}

/* The Projects list opens a row on one click (tester item 53). Focusing a row in a table wider than the window
   scrolled the wrapper sideways and the name slid out of sight: the name stays put. */
.has-shell table[data-click-open] tbody tr{cursor:pointer;scroll-margin:0}
@media (min-width:768px){
  .has-shell table[data-click-open] :is(th,td):nth-child(2){position:sticky;inset-inline-start:0;z-index:1;background:var(--surface,var(--bg))}
  .has-shell table[data-click-open] tbody tr:hover>td:nth-child(2){background:var(--surface-2)}
}

/* Dashboard card (tester item 56): the status badge keeps its whole dot (it was squeezed and clipped by a long name), and the
   "New update" dot sits in the card's corner, clear of the badge. */
.has-shell .dash-proj-head .status-pill{flex:none;overflow:visible;line-height:1.5;padding-inline:.125rem}
.has-shell .dash-proj-head .status-pill::before{flex:none;min-width:.625rem;min-height:.625rem}
.has-shell .dash-proj>.ping{top:.5rem;right:.5rem}

/* The Library: a photo's ID beside its number, and images found on a website (2026-11-06). */
.has-shell .bd-ph-idv{font-size:var(--fs12);font-weight:var(--fw6);color:var(--text);overflow-wrap:anywhere}
.has-shell .bd-web-list{list-style:none;margin:8px 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,140px),1fr));gap:8px}
.has-shell .bd-web-pick{display:grid;gap:4px;cursor:pointer;position:relative}
.has-shell .bd-web-pick input{position:absolute;top:6px;left:6px;width:18px;height:18px;margin:0}
.has-shell .bd-web-pick img{width:100%;aspect-ratio:4/3;object-fit:cover;border:1px solid var(--border);border-radius:var(--r8);background:var(--surface-2)}
.has-shell .bd-web-pick input:checked + img{outline:2px solid var(--accent);outline-offset:-2px}
.has-shell .bd-web-pick span{font-size:var(--fs12);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* The Multi-mailer (2026-11-06): the image dialog's content off its edges, as every kit dialog's form is; Add addresses' ×. */
.has-shell .ml-img-body{display:grid;gap:12px}
.has-shell .ml-img-body h2{margin:0}
.has-shell .ml-img-body .ml-img-grid{margin:0}
.has-shell .ml-add{position:relative}
.has-shell .ml-add-x{position:absolute;top:8px;right:8px}
.has-shell .ml-add>.ml-add-grid{margin-right:24px}

/* An agent's working hours on a small phone (7 Nov checklist, Found 6): a bare 1fr column can't shrink below a time box's
   own width, which on a real phone (a wider native control than the emulator's) pushed the page past the screen. */
.has-shell .hours{grid-template-columns:2.6rem minmax(0,1fr) minmax(0,1fr)}
.has-shell .hours input{min-width:0;width:100%;box-sizing:border-box}
.has-shell .quickfill .qf-row input[type=time]{min-width:0;max-width:100%;flex:1 1 6.5rem}

/* Communications' filters (7 Nov checklist, Found 8): Status says so in words, as Project and Type do, and Type sits beside
   Project instead of 18rem along. */
.has-shell .cm-bar .q-site-field{min-width:0}
.has-shell .cm-gridbar .cm-status-l{flex:none;align-self:center;margin:0;font-size:var(--fs12);font-weight:400;color:var(--text-muted)}

/* Admin's client page (7 Nov checklist, Found 14): Status is as wide as its words, so Project sits beside it; the empty
   "no projects" line takes no room; and the delete rule goes when its button is in the top bar. */
.has-shell .c-proj-table th:first-child,.has-shell .c-proj-table td:first-child{width:1%;white-space:nowrap;padding-inline-end:2rem}
.has-shell #no-proj:empty{display:none}
.has-shell .danger-zone:not(:has(>:not(.kit-proxied,.hidden,[hidden]))){display:none}

/* Label and answer lists (What we found, Your website): the labels take the width of the longest, so each answer sits just
   after it, not half the card away (7 Nov checklist, Found 10 and 13). Without subgrid, the 12rem column above stands. */
@supports (grid-template-columns:subgrid){
  .has-shell .pr-kv{grid-template-columns:minmax(7rem,max-content) minmax(0,1fr);column-gap:1.5rem}
  .has-shell .pr-kv>div{grid-column:1/-1;grid-template-columns:subgrid}
}
/* Results' tiles fill the row as the account's figures above them do (Found 12). */
.has-shell .pr-res-kpis{grid-template-columns:repeat(auto-fit,minmax(9.5rem,1fr))}
/* Settings' People with access and Devices take the page's width like the cards above them (Found 11); a 34rem card cut
   the people table short. The devices sit side by side when there is room. */
.has-shell #settings>:is(#account-panel,#devices-panel){max-width:none}
.has-shell #settings #devices-panel .em-list{grid-template-columns:repeat(auto-fill,minmax(min(100%,18rem),1fr))}

/* ── selecting rows (app-kit.js ZZKit.selectable, 2026-11-10) ───────────────
   The tick column is first, before Status; the whole cell is the target (44px on a finger). The bar takes the
   place of the list's own filter row while anything is ticked, so the page does not jump, and stays at the top
   of its place while the page scrolls. On a phone the tick sits at the card's top-start. */
.has-shell .kit-table :is(th,td).kit-sel{inline-size:2.75rem;min-inline-size:2.75rem;padding:0;text-align:center;cursor:pointer}
.has-shell .kit-table td.kit-sel:empty{cursor:default}
.has-shell .kit-table .kit-sel input{inline-size:1rem;block-size:1rem;margin:0;vertical-align:middle;cursor:pointer;accent-color:var(--accent)}
.has-shell .kit-table tr.is-sel>td{background:color-mix(in oklab,var(--accent) 9%,transparent)}
.has-shell .kit-table tr.is-sel[data-id]:hover>td{background:color-mix(in oklab,var(--accent) 13%,var(--surface-2))}
.has-shell .kit-gridbar.is-selecting{display:none}
.has-shell .kit-selbar{position:sticky;top:0;z-index:6;display:flex;flex-wrap:wrap;align-items:center;gap:.5rem .75rem;min-height:2.5rem;margin:0 0 .75rem;
  padding:.25rem .75rem;border:1px solid color-mix(in oklab,var(--accent) 45%,var(--line));border-radius:var(--r8);
  background:color-mix(in oklab,var(--accent) 10%,var(--surface));color:var(--text)}
.has-shell .kit-selbar[hidden]{display:none}
.has-shell .kit-selbar-n{font-weight:var(--fw6);font-size:var(--fs14)}
.has-shell .kit-selall{font-size:var(--fs12);color:var(--text-muted)}
.has-shell .kit-selall .linkbtn{margin-inline-start:.25rem}
.has-shell .kit-selbar-acts{display:flex;flex-wrap:wrap;gap:.4rem;margin-inline-start:auto}
.has-shell .kit-selbar .linkbtn{color:var(--accent-ink,var(--accent))}
.has-shell .kit-selbar-acts .btn:disabled{opacity:.5;cursor:not-allowed}
.has-shell .kit-selbar[aria-busy=true]{opacity:.8}
/* a page's own filter bar that takes the kit's one menu: lead selects, Search, then the menu */
.has-shell .kit-gridbar .kit-search{flex:0 1 15rem;min-width:0;height:2rem;padding-block:0;font-size:var(--fs14)}
.has-shell .kit-gridbar.kit-ownbar{flex-wrap:wrap;justify-content:flex-start}
.has-shell .kit-gridbar.kit-ownbar .kit-listmenu{margin-left:auto}
@media (pointer:coarse){
  .has-shell .kit-table .kit-sel input{inline-size:1.5rem;block-size:1.5rem}
  .has-shell .kit-gridbar .kit-search{height:2.75rem;font-size:16px}
}
@media (max-width:767px){
  .has-shell .kit-table tbody tr:has(>td.kit-sel){position:relative;padding-inline-start:3.25rem}
  .has-shell .kit-table tbody td.kit-sel{position:absolute;inset-block-start:0;inset-inline-start:0;display:grid;place-items:center;
    inline-size:2.75rem;block-size:2.75rem;min-inline-size:0;margin:0}
  .has-shell .kit-table tbody td.kit-sel+td{margin-top:0}
  .has-shell .kit-table .kit-sel input{inline-size:1.5rem;block-size:1.5rem}
}
/* a filter row of several selects and a search wraps on a phone, so nothing is wider than the screen */
@media (max-width:767px){
  .has-shell .kit-gridbar{flex-wrap:wrap}
  .has-shell .kit-gridbar .kit-gridbar-lead{flex:1 1 8rem;max-width:100%;min-width:0}
  .has-shell .kit-gridbar :is(.kit-find,.kit-search){flex:1 1 8rem}
}

.has-shell .kit-gridbar{flex-wrap:wrap}

/* How to point an own domain at us (builder, Go live; 2026-11-13) */
.has-shell .bd-dns{margin:.75rem 0;padding:.75rem 1rem;border:1px solid var(--line);border-radius:var(--r8);font-size:var(--fs14)}
.has-shell .bd-dns h3{margin:0 0 .25rem;font-size:var(--fs16)}
.has-shell .bd-dns ol{margin:.25rem 0 0;padding-left:1.25rem}
.has-shell .bd-dns li{margin:.5rem 0}
.has-shell .bd-dns .kit-table-wrap{margin:.5rem 0 0}
.has-shell .bd-dns code{word-break:break-all}
.has-shell .bd-dns > p{margin:.5rem 0 0}

/* A video made from a photo, in the Library (2026-11-13) */
.has-shell .bd-video .bd-ph-video{display:block;width:100%;max-width:28rem;height:auto;margin:.5rem 0;border-radius:var(--r8);background:var(--line)}

/* A photo's Edit panel and its AI pop-up (2026-11-16, Zed: the edit fields only behind Edit; the AI in a modal pop-up). */
.has-shell .bd-photo .bd-ph-acts{gap:.5rem}
.has-shell .bd-photo [data-ph-edit][aria-expanded="true"]{border-color:var(--accent);color:var(--accent)}
.has-shell .bd-ph-edit{display:flex;flex-direction:column;gap:.75rem;padding-top:.75rem;border-top:1px solid var(--line)}
.has-shell .bd-ph-edit[hidden]{display:none}
.has-shell .bd-ph-edit-h{margin:0;font-size:var(--fs12);font-weight:var(--fw6);color:var(--text-muted)}
.has-shell .bd-ph-edit .bd-tools-row{margin:.25rem 0}
.has-shell .bd-ph-dialog .kit-dialog-body{max-height:none;overflow:visible}
.has-shell .bd-ph-dialog.kit-dialog--wide{width:min(60rem,calc(100% - 2rem))}
.has-shell .bd-ph-modal{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);gap:1rem;align-items:start}
.has-shell .bd-ph-modal-pic{margin:0}
.has-shell .bd-ph-modal-pic img{display:block;width:100%;height:auto;max-height:60vh;object-fit:contain;border-radius:var(--r8);background:var(--line)}
.has-shell .bd-ph-modal .bd-helper.is-docked .bd-ai-log{max-height:min(46vh,26rem)}
@media (max-width:767px){
  .has-shell .bd-ph-modal{grid-template-columns:minmax(0,1fr)}
  .has-shell .bd-ph-modal-pic img{max-height:30vh}
}
