/* =========================================================================
   WEBSITE WORKSPACE (wsp-) — the Website area as Framer lays out its settings (4 Nov 2026): a sidebar of grouped
   sections (Website · Settings · Pages) and each section in its own column under a plain heading. Drawn by
   src/features/sites/websiteSidebar.js for the client portal's Website page (portalWebsitePage.js: the shell's own
   sidebar column holds it while Website shows, app/clientRoot: the client, an employee and an SEO partner alike) and the
   admin app's host. Linked in Client App.html and Magnet CRM.html after the views, before responsive.css.

   Reused as they are: the sidebar rows, groups and Back (.settings-item, .settings-group, .settings-group-label,
   .settings-back: layout.css's one sidebar recipe), .sidebar's column and its tablet rail (responsive.css), .badge,
   .skel. Tokens only; hovers are layout.css's own (guarded there); reduced motion drops the swap.

   Sharpened against Framer's Settings and CMS (4 Nov 2026, the reference screenshots P01–C09): a denser sidebar (32px
   rows, 16px icons, quiet medium group labels with room above each group), every section's title and one sentence in
   a ~680px column, and inside a section one border level at most: sub-sections parted by hairlines under a smaller
   heading, lists as a plain header row over hairline rows, never a bordered box in a bordered box. The shared panels a
   section mounts (the domain, the setup checklist, the redirects, CMS's lists, the Pages table) keep their own look
   elsewhere; the rules under `.wsp-section` flatten them here only (CMS's own stylesheet is left as it is).
   ========================================================================= */

/* One page frame for every section (owner, 4 Nov 2026: "all the pages have different padding, max widths", then "the
   content on each tab sits differently"): the same top and side padding and the same width for every section, centred
   in what the sidebar leaves, as Framer's settings pages are (one column, its max width and its padding, centred; the
   scrollbar's room kept on both edges so the frame never shifts between a short page and a long one). Every section's
   body fills the frame, from the heading's left edge to the same right edge. --wsp-frame: the frame's content width;
   --wsp-gutter: its side padding. */
.pw, .wsp-main { --wsp-frame: 1120px; --wsp-gutter: var(--space-8); }
.view-scroll:has(> .pw-root) { scrollbar-gutter: stable both-edges; }

/* ---- the sidebar ---- */
.wsp-sidebar { display: flex; flex-direction: column; min-height: 0; background: var(--surface-sidebar); border-right: 1px solid var(--border); overflow-x: hidden; }
.wsp-top { gap: var(--space-2); padding: 0 var(--space-4); }
.wsp-top .wsp-collapse { display: none; }   /* the rail's » exists on a tablet only (below; over layout.css's .brand .collapse) */
/* Back: its chevron and word on the rows' icon and label lines */
.wsp-top .wsp-back { margin-left: 0; padding-left: var(--space-2-5); gap: var(--space-2-5); }
.wsp-body { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: var(--space-5) var(--space-4) var(--space-4); }
/* Help: the column's last row, held at its foot under the sections (the rows' own recipe, as a link) */
.wsp-foot { flex: none; padding: var(--space-2) var(--space-4) var(--space-4); }
.wsp-help { text-decoration: none; }
.wsp-foot .wsp-help > svg { width: 16px; height: 16px; stroke-width: 2.25; }
@media (pointer: fine) { .wsp-foot .wsp-help { height: var(--control-sm); } }
/* the site: its name, and the status the Overview card says at length (on the rows' label inset, quiet under it) */
.wsp-site { display: flex; align-items: center; gap: var(--space-2); min-width: 0; padding: 0 var(--space-2-5); margin-bottom: var(--space-6); }
.wsp-site-id { display: flex; flex-direction: column; gap: var(--space-0-5); flex: 1 1 auto; min-width: 0; }
/* the client's logo beside the name (their profile's picture, whole on its well); none without one */
.wsp-site-logo { flex: none; display: inline-grid; place-items: center; width: var(--control-sm); height: var(--control-sm); border-radius: var(--radius-md); }
.wsp-site-name { display: flex; align-items: center; gap: var(--space-1-5); min-width: 0; font-size: var(--text-md); font-weight: var(--fw-semibold); line-height: var(--leading-snug); color: var(--text-strong); }
.wsp-site-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wsp-test { flex: none; }   /* (on the status line, so the name has the row) */
.wsp-status { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-0-5) var(--space-1-5); font-size: var(--text-xs); color: var(--text-soft); }
.wsp-status > span:not(.badge) { white-space: nowrap; }   /* (a tight row drops TEST under it, never breaks the status) */
.wsp-dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--gray-400); }
.wsp-dot.is-ok { background: var(--success-600); }
.wsp-dot.is-info { background: var(--info-600); }
.wsp-dot.is-bad { background: var(--danger-600); }
.wsp-dot.is-warn { background: var(--warning-600); }
/* the groups: a quiet medium label on the rows' icon line, and room above each group rather than a rule */
.wsp-nav .wsp-group { margin-bottom: 0; }
.wsp-nav .wsp-group + .wsp-group { margin-top: var(--space-6); }
.wsp-nav .settings-group-label { padding: 0 var(--space-2-5); margin-bottom: var(--space-1-5); font-weight: var(--fw-medium); }
/* the rows sit in <li>s, so the 2px between them is the list's gap */
.wsp-list, .wsp-children { display: flex; flex-direction: column; gap: var(--space-0-5); margin: 0; padding: 0; list-style: none; }
.wsp-children { margin-top: var(--space-0-5); }
.wsp-item { width: 100%; text-align: left; }
.wsp-item > svg { flex: none; }
/* Framer's row: 32px with a naked 16px icon (stroke 2.25 on the 24-unit icon still draws 1.5px); a touch screen keeps
   layout.css's 44px floor */
.wsp-nav .wsp-item > svg { width: 16px; height: 16px; stroke-width: 2.25; }
@media (pointer: fine) { .wsp-nav .wsp-item { height: var(--control-sm); } }
.wsp-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* a row's count (Setup's steps left, a list's items): quiet text at its end, drawn from data-count so the row's own text
   stays its label (websiteSidebar.js: the tooltip, aria-label) */
.wsp-item[data-count]::after { content: attr(data-count); order: 1; flex: none; font-size: var(--text-xs); font-weight: var(--fw-regular); color: var(--text-soft); font-variant-numeric: tabular-nums; }
.wsp-item.active[data-count]::after { color: var(--text-muted); }
.wsp-item.is-open { color: var(--text-strong); }   /* CMS while one of its lists is the current row */
/* CMS's lists: indented under it, a step smaller */
.wsp-child { padding-left: var(--space-8); font-size: var(--text-sm); }
.wsp-nav .wsp-child > svg { width: 14px; height: 14px; }
@media (pointer: fine) { .wsp-nav .wsp-child { height: var(--control-sm); } }
/* CMS while its lists are on their way after an update (a small spinner), or couldn't be read (a quiet mark): at the
   row's end, where a count would be (websiteSidebar.js item.state) */
.wsp-item > .wsp-row-busy { order: 1; width: 12px; height: 12px; border-width: 1.5px; }
.wsp-item > .wsp-row-mark { order: 1; }
@media (prefers-reduced-motion: reduce) { .wsp-item > .wsp-row-busy { animation-duration: 2s; } }
.wsp-chev { display: inline-flex; flex: none; order: 2; color: var(--text-soft); }
.wsp-chev svg { width: 16px; height: 16px; }
/* skeleton rows while the page reads the site */
.wsp-skel-name { display: block; width: 70%; height: 16px; }
.wsp-skel-status { display: block; width: 45%; height: 12px; }
.wsp-skel-row { display: block; width: var(--wsp-skel-w, 60%); height: 14px; margin: var(--space-2-5); }

/* the column trading places: the app's sidebar for the website's and back, a short cross-fade in */
@keyframes wspSwap { from { opacity: 0; transform: translateX(calc(-1 * var(--space-2))); } to { opacity: 1; transform: none; } }
.wsp-swap { animation: wspSwap var(--dur) var(--ease-enter); }
@media (prefers-reduced-motion: reduce) { .wsp-swap { animation: none; } }

/* a page with no shell column (a test page): the sidebar beside it */
.wsp-frame { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); align-items: start; min-height: 100%; }
.wsp-frame > .wsp-sidebar { position: sticky; top: 0; height: 100vh; height: 100dvh; }
/* the admin app's host for this same workspace (adminWebsiteSettings.js): a full-screen layer laid out as the portal's
   shell is, the Website sidebar beside a topbar and the page; the shared dialogs, toasts and menus sit over it (as
   they do over the editor: sites.css body.sb-open) */
.wsp-host { position: fixed; inset: 0; z-index: var(--z-overlay); display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); background: var(--surface); }
.wsp-host > .wsp-sidebar, .wsp-host > .main { min-height: 0; }
body.wsp-host-open { overflow: hidden; }
body.wsp-host-open .modal-scrim, body.wsp-host-open .modal-shell { z-index: var(--z-scrim); }
/* a sheet the layer opens (a CMS item's drawer, mounted in #app behind it) comes over it too: on the page, at the
   dialogs' height (a dialog opened from the sheet is later in the page, so it still comes over the sheet). Owner, 4 Nov
   2026: a CMS row did nothing in the admin app, its drawer was opening under the layer */
body.wsp-host-open .drawer-scrim { position: fixed; z-index: var(--z-scrim); }
body.wsp-host-open .drawer { position: fixed; z-index: var(--z-scrim); }
body.wsp-host-open .status-toast-stack { z-index: calc(var(--z-scrim) + 4); }
/* (and the menus the CMS sheet appends to <body>: its ⋯, a photo's ⋯, a post's Insert, "/" and Link. Owner, 6 Nov 2026:
   the item sheet's ⋯ did nothing, its menu was opening under the sheet) */
body.wsp-host-open .note-menu, body.wsp-host-open .ccol-menu, body.wsp-host-open .rte-menu, body.wsp-host-open .rte-pop { z-index: calc(var(--z-scrim) + 6); }
/* every other menu or popover put straight on <body> (a Pages row's ⋯, the page picker, the shared dropdowns), by its
   place, not one class at a time: on the popover rung (60) it opened under the layer (200) and the ⋯ did nothing.
   Owner, 6 Nov 2026: a page's ⋯ in Pages didn't work on the live app */
body.wsp-host-open > .filter-menu, body.wsp-host-open > [role="menu"], body.wsp-host-open > [role="listbox"],
body.wsp-host-open > .nc-dd-menu { z-index: calc(var(--z-scrim) + 6); }
body.wsp-host-open > .nc-dd-scrim { z-index: calc(var(--z-scrim) + 5); }
.wsp-host-back { display: none; }   /* (a phone's way out: below, where the sidebar column isn't) */

/* ---- the frame, then a section: its heading, then its body ---- */
.pw-root > .pw, .wsp-main {
  width: 100%; max-width: calc(var(--wsp-frame) + 2 * var(--wsp-gutter)); margin-inline: auto;
  padding: var(--space-8) var(--wsp-gutter) var(--space-10);
}
.pw > .wsp-section, .wsp-main > .wsp-section { width: 100%; }
.wsp-head { display: flex; flex-direction: column; gap: var(--space-3); }
.wsp-head-row { display: flex; align-items: flex-start; flex-wrap: wrap; gap: var(--space-3) var(--space-4); }
.wsp-head-text { flex: 1 1 320px; min-width: 0; }
.wsp-title { margin: 0; font-size: var(--text-xl); font-weight: var(--fw-semibold); line-height: var(--leading-tight); letter-spacing: -0.01em; color: var(--text-strong); }
.wsp-title:focus:not(:focus-visible) { outline: none; }   /* focused for the screen reader after a pick, never ringed for the mouse */
/* the one plain sentence under it, Learn more at its end (Framer wraps it in a short measure) */
.wsp-desc { margin: var(--space-1-5) 0 0; max-width: none; font-size: var(--text-sm); line-height: var(--leading-relaxed); color: var(--text-soft); }
.wsp-learn { color: var(--text-strong); font-weight: var(--fw-medium); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .wsp-learn:hover { text-decoration-color: currentColor; } }
.wsp-head-acts { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-2); }
.wsp-head-acts:empty { display: none; }
/* the topbar (the shell's): the website's status beside the page's name, and its actions where the search was */
.wsp-top-status { display: inline-flex; align-items: center; gap: var(--space-1-5); margin-left: var(--space-3); font-size: var(--text-sm); font-weight: var(--fw-regular); color: var(--text-muted); white-space: nowrap; }
.wsp-top-acts { display: inline-flex; align-items: center; gap: var(--space-2); }
.wsp-top-acts .btn svg { width: 16px; height: 16px; }
/* Website's way in (portalWebsitePage showVeil): a short, clean screen while the editor opens: the client's mark, their
   name and a bar that starts slow, creeps while it loads and finishes at once, then fades into the editor */
.wsp-veil { position: fixed; inset: 0; z-index: var(--z-splash); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-3); background: var(--surface); opacity: 1; transition: opacity 200ms var(--ease); }
.wsp-veil.is-out { opacity: 0; pointer-events: none; }
.wsp-veil-mark { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius-lg); }
.wsp-veil-name { font-size: var(--text-md); font-weight: var(--fw-semibold); color: var(--text-strong); }
.wsp-veil-track { width: 160px; height: 3px; margin-top: var(--space-1); border-radius: var(--radius-full); background: var(--surface-2); overflow: hidden; }
.wsp-veil-track > i { display: block; height: 100%; border-radius: inherit; background: var(--text-strong); transform: scaleX(0); transform-origin: left center; transition: transform 900ms cubic-bezier(.45, 0, .55, 1); }
.wsp-veil-track > i.is-creep { transition: transform 9s cubic-bezier(.1, .6, .3, 1); }
.wsp-veil-track > i.is-done { transition: transform 200ms cubic-bezier(.4, 0, 1, 1); }
@media (prefers-reduced-motion: reduce) { .wsp-veil, .wsp-veil-track > i, .wsp-veil-track > i.is-creep, .wsp-veil-track > i.is-done { transition: none; } }
/* a phone: the actions under the site's name on its list screen, side by side */
.wsp-phone-acts { display: flex; gap: var(--space-2); margin: calc(-1 * var(--space-2)) 0 var(--space-6); }
.wsp-phone-acts > .btn { flex: 1 1 0; justify-content: center; }
.wsp-head + .wsp-section { margin-top: var(--space-1); }   /* (20px from the sentence to the section's first line) */
/* a list with nothing in it (quietEmpty: Code, Redirects): only its empty state, in the middle of the pane as Framer's
   settings lists are. The section's heading gives way (its Learn more is the empty state's own; a phone keeps Back), the
   column its width, and the frame the pane's height. A section that couldn't load (quietFail, .is-fail) keeps its
   heading and sits in the frame as a section does. */
.pw-root:has(> .pw > .wsp-section .empty-quiet:not(.is-fail)) { display: flex; flex-direction: column; min-height: 100%; }
.pw:has(> .wsp-section .empty-quiet:not(.is-fail)) { display: flex; flex: 1 1 auto; flex-direction: column; }
.pw:has(> .wsp-section .empty-quiet:not(.is-fail)) > .wsp-head > .wsp-head-row { display: none; }
.pw:has(> .wsp-section .empty-quiet:not(.is-fail)) > .wsp-head:not(:has(.wsp-list-back)) { display: none; }
.pw > .wsp-section:has(.empty-quiet:not(.is-fail)), .wsp-section:has(.empty-quiet:not(.is-fail)) .sset-page, .wsp-section .sset:has(> .empty-quiet:not(.is-fail)) { display: flex; flex: 1 1 auto; flex-direction: column; max-width: none; margin-top: 0; }
.wsp-section .empty-quiet:not(.is-fail) { flex: 1 1 auto; }
.wsp-section .empty-quiet.is-fail { padding: var(--space-12) 0; }
/* a settings list loading (Code, Redirects, Tracking: .sset[aria-busy]): nothing for its first 300ms, when most answers
   are in, so an empty one goes straight to its empty state with no skeleton and heading flashing first; a slow one shows
   them after that (owner, 4 Nov 2026: "it looks like it glitches") */
.pw:has(> .wsp-section .sset[aria-busy="true"]) > * { animation: wspShowLate 1ms 300ms both; }
@keyframes wspShowLate { from { opacity: 0; } to { opacity: 1; } }   /* (opacity, not visibility: the heading takes focus meanwhile) */
/* the panels' own headings give way to the section's (Tracking, Redirects, Code; Analytics keeps its date range) */
.wsp-section .sset-head, .wsp-section .wa-head { display: none; }   /* (Analytics' date range sits in the heading row) */
/* a sub-section's heading: a step under the title, over the labels (Framer's "Page images", "Google Analytics") */
.wsp-sub { margin: 0; font-size: var(--text-base); font-weight: var(--fw-semibold); line-height: var(--leading-snug); color: var(--text-strong); }
/* parts one under another, a hairline between them */
.wsp-stack { display: flex; flex-direction: column; gap: var(--space-6); min-width: 0; }
/* the notes under a section's settings (Domain's Good to know): muted points, no box */
.wsp-notes { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; padding-top: var(--space-6); border-top: 1px solid var(--border-faint); }
.wsp-notes-list { display: flex; flex-direction: column; gap: var(--space-1); margin: 0; padding-left: 18px; list-style: disc; font-size: var(--text-sm); line-height: var(--leading-snug); color: var(--text-soft); }
.wsp-notes-list li::marker { color: var(--text-soft); }
.wsp-notes .pw-video { max-width: 320px; margin-bottom: var(--space-1); }
/* a phone's way back to the list screen */
.wsp-list-back {
  align-self: flex-start; display: inline-flex; align-items: center; gap: var(--space-1);
  min-height: var(--control-lg); padding: 0 var(--space-2) 0 0; margin-left: calc(-1 * var(--space-1));
  color: var(--text-muted); font-size: var(--text-md); font-weight: var(--fw-medium);
}
.wsp-list-back svg { width: 20px; height: 20px; }

/* skeleton heading while the page reads the site (the section's heading lands in its place) */
.wsp-skel-title { display: block; width: 140px; height: 24px; }
.wsp-skel-desc { display: block; width: min(360px, 70%); height: 14px; margin-top: calc(-1 * var(--space-1-5)); }   /* (6px under the title, as the sentence sits) */

/* ---- Setup: the checklist without its card (the open step's tray is the one level inside the column) ---- */
.wsp-section .wck { border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; animation: none; }   /* (no slide in: its head is Setup's heading, which never moves) */
.wsp-section .wck-head { padding: 0; }
.wsp-section .wck-bar { padding: var(--space-3) 0 0; }
.wsp-section .wck-rows { padding: var(--space-3) 0 0; }
/* Setup: the checklist's own head is the section's heading (its title says where the website stands, its line what's
   left), so "Setup" and "Your website is ready" never stack; a phone keeps Back */
.pw:has(> .wsp-section[data-wsp-section="setup"] .wck-head) > .wsp-head > .wsp-head-row { display: none; }
.pw:has(> .wsp-section[data-wsp-section="setup"] .wck-head) > .wsp-head:not(:has(.wsp-list-back)) { display: none; }
.pw > .wsp-section[data-wsp-section="setup"]:has(.wck-head) { margin-top: 0; }
.wsp-section[data-wsp-section="setup"] .wck-title b { font-size: var(--text-xl); line-height: var(--leading-tight); letter-spacing: -0.01em; }
.wsp-section[data-wsp-section="setup"] .wck-head p { margin-top: var(--space-1-5); font-size: var(--text-sm); line-height: var(--leading-relaxed); color: var(--text-soft); }
.wsp-section[data-wsp-section="setup"] .wck-head + .wck-rows, .wsp-section[data-wsp-section="setup"] .wck-bar + .wck-rows { padding-top: var(--space-6); }
/* a step's controls fill its row: the field takes the room up to its button, the link under them on the text's edge */
.wsp-section .wck-body:has(> .wck-domain, > .wck-search) { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.wsp-section .wck-body:has(> .wck-domain, > .wck-search) > .wck-link { grid-column: 1 / -1; justify-self: start; margin: 0; order: 1; }
.wsp-section .wck-body > .field-check { grid-column: 1 / -1; margin: 0; }   /* (the domain's line right under its row, the link after it) */

/* ---- Domain: the free address and their own domain as two parts of the column (Framer's Base and Custom), each a
   heading with its state, then label / value rows; no card round each, no rule between the rows ---- */
.wsp-section .dp { gap: var(--space-6); }
.wsp-section .dp-fr { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
.wsp-section .dp-fr + .dp-fr { padding-top: var(--space-6); border-top: 1px solid var(--border-faint); }
.wsp-section .dp-fr-head { margin: 0; padding: 0 0 var(--space-2); border-bottom: 0; }
.wsp-section .dp-fr-head b { font-size: var(--text-base); letter-spacing: 0; }
.wsp-section .dp-fr-row,
.wsp-section .dp-fr > .dp-fr-row:first-of-type { padding: var(--space-2-5) 0; }
.wsp-section .dp-fr > .dp-fr-row:last-child { padding-bottom: 0; }
.wsp-section .dp-fr-row + .dp-fr-row::before,
.wsp-section .dp-fr-row + .dp-opt::before,
.wsp-section .dp-opt + .dp-opt::before { display: none; }
.wsp-section .dp-fr-row--status > .icon-ghost { top: var(--space-1-5); right: 0; }
/* the ways to add one: Framer's radio list, each choice's ring room to show round it */
.wsp-section .dp-opt { margin: 0 calc(-1 * var(--space-2)); padding: var(--space-2-5) var(--space-2); border-radius: var(--radius-md); }

/* ---- Tracking, Redirects, Code: the panels' parts with the column's rhythm ---- */
.wsp-section .sset { gap: var(--space-5); }
/* Redirects: the rules as Framer's From / To list, a plain header row over hairline rows */
.wsp-section .sset-redirects .sset-rule-head { margin-bottom: var(--space-1); padding-bottom: var(--space-2); border-bottom: 1px solid var(--border-faint); }
.wsp-section .sset-redirects .sset-redirect-heading h4 { font-size: var(--text-base); }

/* ---- Pages: the table as a plain list in the column (Framer's settings lists): a quiet header row, hairline rows, the
   edges lined up with the heading; the row isn't a target itself, so it doesn't light up ---- */
.wsp-section .pw-pt-card { border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
.wsp-section .pw-ptable thead th { height: var(--control-md); background: none; border-bottom: 1px solid var(--border-faint); font-weight: var(--fw-medium); color: var(--text-soft); }
.wsp-section .pw-ptable th:first-child, .wsp-section .pw-ptable td:first-child { padding-left: 0; }
.wsp-section .pw-ptable th:last-child, .wsp-section .pw-ptable td:last-child { padding-right: 0; }
@media (min-width: 641px) { .wsp-section .pw-ptable tbody tr:last-child td { border-bottom: 1px solid var(--border-faint); } }
@media (hover: hover) and (pointer: fine) { .wsp-section .pw-ptable tbody tr:hover td { background: none; } .wsp-section .pw-ptable tbody tr.pw-pt-row:hover td { background: var(--surface-hover); } }   /* (a page's row is a target: it lights up) */
.wsp-section .pw-offer-cta { padding: var(--space-4) 0 0; border: 0; border-top: 1px solid var(--border-faint); border-radius: 0; background: none; }
/* an uploaded site's pages as it files them (paintPages, pageTree.mjs): a group's chevron before its row and the same gap
   before a row with none, a group's pages one step in (--pw-pt-depth, set on the row), a heading's icon where a page's
   preview is, the pages a group holds after its name; the search only from 11 pages (hidden below) */
.pw-pt-tools[hidden] { display: none; }
.pw-pt-tree .pw-pt-cell { gap: var(--space-2); padding-left: calc(var(--pw-pt-depth, 0) * var(--space-6)); }
.pw-pt-tree .pw-pt-cell > .pw-page-thumb { margin-right: var(--space-1); }
.pw-pt-twisty, .pw-pt-gap { flex: none; width: var(--control-xs); height: var(--control-xs); }
.pw-pt-twisty svg { width: 14px; height: 14px; transition: transform var(--dur-fast) var(--ease); }
.pw-pt-twisty[aria-expanded="true"] svg { transform: rotate(90deg); }
.pw-pt-twisty:focus-visible { outline: var(--focus-outline); outline-offset: var(--focus-offset); }
.pw-pt-nameline { display: flex; align-items: baseline; gap: var(--space-2); min-width: 0; }
.pw-pt-nameline > .pw-pt-name { min-width: 0; }
.pw-pt-count { flex: none; font-size: var(--text-xs); color: var(--text-soft); font-variant-numeric: tabular-nums; }
.pw-page-thumb.pw-pt-icon { align-items: center; justify-content: center; color: var(--text-soft); background: var(--surface-sunk); box-shadow: none; }
.pw-page-thumb.pw-pt-icon svg { width: 16px; height: 16px; }
.pw-pt-head .pw-pt-name { font-weight: var(--fw-medium); }
/* a list's own page: Manage in CMS where its type is said, quiet until pointed at */
.pw-pt-cms { padding: 0; border: 0; background: none; font: inherit; color: var(--text-muted); cursor: pointer; border-radius: var(--radius-xs); }
.pw-pt-cms:focus-visible { outline: none; box-shadow: var(--ring-primary); }
@media (hover: hover) and (pointer: fine) { .pw-pt-cms:hover { color: var(--text-strong); text-decoration: underline; text-underline-offset: 2px; } }
@media (prefers-reduced-motion: reduce) { .pw-pt-twisty svg { transition: none; } }

/* ---- CMS while its lists are on their way (portalWebsitePage paintListsWait, paintListsNote): their skeleton, a quiet
   line while the server reads them after an update, or the error with Try again; over lists already shown, the line or
   a banner alone ---- */
.pw-coll-wait { display: flex; flex-direction: column; gap: var(--space-4); }
.pw-coll-skel { display: flex; flex-direction: column; gap: var(--space-3); padding-top: var(--space-2); }
.pw-coll-skel-row { display: block; width: var(--pw-coll-skel-w, 60%); height: 14px; }
.pw-coll-reading { display: inline-flex; align-items: center; gap: var(--space-2); margin: 0; font-size: var(--text-sm); color: var(--text-muted); }
.pw-coll-reading .spinner { width: 14px; height: 14px; border-width: 1.5px; }
.pw-coll-note { margin-bottom: var(--space-4); }

/* ---- CMS: its rail rows as the sidebar's, and each list as a calm grid of hairlines (Framer's collection table), not
   a bordered card (collections.css stays the shared look; the item drawer opens outside the section) ---- */
.wsp-section .ccol-rail-group h3 { font-size: var(--text-sm); }
.wsp-section .ccol-rail-item > svg { width: 16px; height: 16px; stroke-width: 2.25; }
@media (pointer: fine) { .wsp-section .ccol-rail-item { height: var(--control-sm); } }
.wsp-section .ccol-table { border: 0; border-radius: 0; background: none; overflow: visible; }
.wsp-section .ccol-table > .ccol-list { border-bottom: 1px solid var(--border-faint); }

/* ---- Overview's Site settings (siteSettingsPanel.js): under the preview. No card around it (the preview is the page's
   card): a hairline over it, the Page settings sheet's fields and pairs (page-settings.css .pgs-*,
   two up from 640px of its own width, one under another below), then Site images, each row its words and buttons left,
   its pictures right ---- */
.pw-ss { margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--border-faint); min-width: 0; }
.pw-ss-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: var(--control-sm); margin-bottom: var(--space-4); }   /* (straight to the fields)*/
.pw-ss-head .wsp-sub:focus { outline: none; }
.pw-ss-head .wsp-sub:focus-visible { outline: var(--focus-outline); outline-offset: var(--focus-offset); border-radius: var(--radius-sm); }
.pw-ss-saved { transition: opacity var(--dur) var(--ease); }
.pw-ss-saved.is-fading { opacity: 0; }
/* ---- Overview's SEO partner (portalWebsitePage paintSeoPartner): under Site settings, the same hairline over it; its
   name and Manage on one line, what it is, then who has access ---- */
.pw-seo { margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--border-faint); min-width: 0; }
.pw-seo-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: var(--control-sm); margin-bottom: var(--space-2); }
.pw-seo-desc { margin: 0; font-size: var(--text-sm); line-height: var(--leading-normal); color: var(--text-muted); }
.pw-seo-who { margin: var(--space-2) 0 0; font-size: var(--text-sm); font-weight: var(--fw-medium); color: var(--text-strong); overflow-wrap: anywhere; }
.pw-seo-skel { display: block; width: 180px; max-width: 100%; height: 16px; }
/* (a field's label line and its over-length count, the Preview, the switch row, the text link and the images rows are
   the Page settings sheet's own: .pgs-labelrow, .pgs-over, .pgs-preview, .pgs-switch-sec, .pgs-link, .pgs-imgrow …) */
/* the language's flag (assets/flags; a globe for plain English) before its name, in the field and each menu row */
.pw-ss-langval { display: inline-flex; align-items: center; gap: var(--space-2); min-width: 0; }
.pw-ss-langval > [data-pick-text] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pw-ss-flag { flex: none; }
.filter-opt > svg.pw-ss-flag { margin-left: 0; color: var(--text-soft); }
.pw-ss-langmenu .filter-opt .an-menu-text { flex: 1 1 auto; min-width: 0; text-align: left; }
.pw-ss-body { gap: var(--space-8); }
.pw-ss-skel { height: var(--control-md); border-radius: var(--radius-md); }
/* Password protect: the switch row between hairlines (.pgs-switch-sec, as the sheet's), its password field under it */
.pw-ss-pass { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-4); }
.pw-ss-pass[hidden] { display: none; }
.pw-ss-pass-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.pw-ss-pass-input { flex: 1 1 220px; max-width: 360px; }
.pw-ss-pass-input > .input { padding-right: calc(var(--control-sm) + var(--space-1-5)); }
.pw-ss-eye { position: absolute; top: calc((var(--control-md) - var(--control-sm)) / 2); right: var(--space-1); color: var(--text-soft); }
@media (hover: hover) and (pointer: fine) { .pw-ss-eye:hover { color: var(--text-strong); } }
/* Site images */
/* Site images lined up as Framer's (the rows are the sheet's .pgs-imgs / .pgs-imgrow: the pictures from the right
   column's left edge, the social preview exactly as wide as both tiles and their gap, each row's label level with its
   picture, one hairline between the rows) */
.pw-ss-imgerr[hidden] { display: none; }
.pw-ss-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, var(--pgs-img-w))); gap: var(--pgs-img-gap); min-width: 0; }
.pw-ss-tile { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
/* each tile a picture of a browser window's corner on a gold wall (assets/favicon-preview-light|dark.png, 360 × 220, from
   scripts/build-favicon-preview.mjs: the window from 20, 20, its neighbouring tabs' icons drawn in) filling it, the favicon
   laid in its chosen tab: a 40 × 35 slot at 60, 25 with the icon 16 × 16 in its middle (Framer's) */
.pw-ss-tile-pic { position: relative; height: 110px; border-radius: var(--radius-lg); }
.pw-ss-tile-pic[data-pw-ss-drop] { cursor: pointer; }
/* (its edge drawn over the picture, so the picture and the slot are measured from the tile's own corner) */
.pw-ss-mock { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; background: var(--tab-mock-wall); }
.pw-ss-mock::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--border); border-radius: inherit; pointer-events: none; transition: border-color var(--dur) var(--ease); }
.pw-ss-mock-bg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.pw-ss-mock-tab { position: absolute; left: 60px; top: 25px; display: grid; place-items: center; width: 40px; height: 35px; }
.pw-ss-mock-tab img { display: block; width: 16px; height: 16px; object-fit: contain; }
.pw-ss-tile-pic.is-drop .pw-ss-mock::after { border-color: var(--primary); }
@media (hover: hover) and (pointer: fine) { .pw-ss-tile-pic[data-pw-ss-drop]:hover .pw-ss-mock::after { border-color: var(--border-strong); } }
/* × on a tile's (and the social preview's) corner, half outside */
.pw-ss-tile-x { position: absolute; top: calc(-1 * var(--space-1-5)); right: calc(-1 * var(--space-1-5)); display: grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 0; border-radius: var(--radius-full); background: var(--surface); color: var(--text-soft); box-shadow: var(--shadow-sm); cursor: pointer; transition: color var(--dur-fast) var(--ease); }
.pw-ss-tile-x svg { width: 10px; height: 10px; }
.pw-ss-tile-x:focus-visible { outline: var(--focus-outline); outline-offset: var(--focus-offset); }
@media (hover: hover) and (pointer: fine) { .pw-ss-tile-x:hover { color: var(--text-strong); } }
@media (pointer: coarse) { .pw-ss-tile-x::after { content: ""; position: absolute; inset: calc(-1 * var(--space-3)); } }
.pw-ss-tile-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-width: 0; }
.pw-ss-tile-cap { display: flex; flex-direction: column; min-width: 0; line-height: var(--leading-snug); }
.pw-ss-tile-name { font-size: var(--text-sm); font-weight: var(--fw-medium); color: var(--text-strong); }
/* the tile's Upload: quiet, filled, no edge */
.pw-ss-tile-up { flex: none; background: var(--surface-2); border-color: transparent; box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .pw-ss-tile-up:hover { background: var(--gray-150); border-color: transparent; } }
.pw-ss-tile-up:active:not(:disabled):not([aria-disabled="true"]) { background: var(--gray-150); box-shadow: var(--press-inset-ghost); }
.pw-ss-skel-tile { height: 110px; border-radius: var(--radius-lg); }
@media (pointer: coarse) {
  .pw-ss .input, .pw-ss .input-pick, .pw-ss [data-pw-ss-upload], .pw-ss [data-pw-ss-set] { min-height: var(--control-lg); }
}
@media (prefers-reduced-motion: reduce) { .pw-ss-saved, .pw-ss-mock::after, .pw-ss-tile-x { transition: none; } }

/* ---- Business details (an uploaded site: portalWebsitePage paintBusiness): Settings → Business's own page in the frame,
   its heading giving way to the section's, a quiet line over it on what the website shows from here ---- */
.wsp-biz { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.wsp-biz-note { display: flex; align-items: flex-start; gap: var(--space-2); margin: 0; font-size: var(--text-sm); line-height: var(--leading-snug); color: var(--text-muted); }
.wsp-biz-note > svg { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--text-soft); }
.wsp-section .set-biz { max-width: none; margin: 0; padding: 0; gap: var(--space-3); }
.wsp-section .set-biz > .set-section-head { display: none; }

/* ---- the agency's own sections (the admin app's Admin group: SitesView websiteAdminItems), each the UI it always had,
   in the frame under its heading like the rest ---- */
.wsp-admin { display: flex; flex-direction: column; gap: var(--space-5); min-width: 0; }
/* Site tools: one row a tool, what it does on the left, its button on the right, hairlines between (one border level) */
.wsp-tools { padding: 0; }
.wsp-tools .wsp-tool { padding: var(--space-3-5) var(--space-4); }

/* ---- CMS's agency part (cmsAgencyLists, the admin app only): under the client's lists, a quiet sub-section behind a
   hairline; the held changes as one sunk line with Review, then a row a list (name and count, its pill, the switch) ---- */
.wsp-agency-host { margin-top: var(--space-8); }
.wsp-agency { display: flex; flex-direction: column; gap: var(--space-3); padding-top: var(--space-6); border-top: 1px solid var(--border-faint); }
.wsp-agency[hidden] { display: none; }
.wsp-agency-lead { margin: var(--space-1) 0 0; font-size: var(--text-sm); line-height: var(--leading-snug); color: var(--text-soft); }
.wsp-agency-held { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-2) var(--space-2) var(--space-2) var(--space-3); border-radius: var(--radius-md); background: var(--surface-sunk); font-size: var(--text-sm); color: var(--text-strong); }
.wsp-agency-held.is-quiet { padding: var(--space-2-5) var(--space-3); color: var(--text-soft); }
.wsp-agency-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.wsp-agency-row { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) 0; }
.wsp-agency-row + .wsp-agency-row { border-top: 1px solid var(--border-faint); }
.wsp-agency-main { display: flex; flex-direction: column; gap: var(--space-0-5); min-width: 0; }
.wsp-agency-name { font-size: var(--text-sm); font-weight: var(--fw-medium); color: var(--text-strong); }
.wsp-agency-meta { font-size: var(--text-xs); color: var(--text-soft); }
.wsp-agency-why { margin: var(--space-1) 0 0; max-width: 60ch; font-size: var(--text-sm); line-height: var(--leading-snug); color: var(--text-muted); }
.wsp-agency-acts { display: flex; align-items: center; gap: var(--space-3); margin: var(--space-1) 0 0; }
.wsp-agency-side { flex: none; display: flex; align-items: center; gap: var(--space-3); }
.wsp-agency-switch { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); color: var(--text-muted); }
.wsp-agency .field-msg { margin: var(--space-1) 0 0; }
@media (max-width: 640px) { .wsp-agency-row { flex-direction: column; gap: var(--space-2); } }

/* ---- a tablet: the sidebar is the shell's rail (icons) until » opens it over the page, as the app's own ---- */
@media (min-width: 641px) and (max-width: 1024px) {
  .wsp-top .wsp-collapse { display: inline-flex; }
  .app.collapsed > .wsp-sidebar .wsp-back,
  .app.collapsed > .wsp-sidebar .wsp-site,
  .app.collapsed > .wsp-sidebar .settings-group-label,
  .app.collapsed > .wsp-sidebar .wsp-label,
  .app.collapsed > .wsp-sidebar .wsp-item::after,
  .app.collapsed > .wsp-sidebar .wsp-children { display: none; }
  .app.collapsed > .wsp-sidebar .wsp-top .collapse { margin-left: 0; }
  .app.collapsed > .wsp-sidebar .wsp-body { padding: var(--space-2); }
  .app.collapsed > .wsp-sidebar .wsp-item { justify-content: center; gap: 0; padding: 0; }
  .app.collapsed > .wsp-sidebar .wsp-group { margin-bottom: 0; }
  .app.collapsed > .wsp-sidebar .wsp-group + .wsp-group { margin-top: var(--space-2); padding-top: var(--space-2); border-top: 1px solid var(--border-faint); }
  /* the rail can't list CMS's lists, so CMS keeps its own picker there */
  .app.collapsed .wsp-section .ccol-content.has-rail > .ccol-rail-compact { display: block; }
}

/* ---- a phone: no column; the page is the list screen, and a section opens full screen with a back arrow ---- */
@media (max-width: 640px) {
  .wsp-frame { grid-template-columns: minmax(0, 1fr); }
  .wsp-frame > .wsp-sidebar { display: none; }
  .wsp-host { grid-template-columns: minmax(0, 1fr); }
  .wsp-host > .wsp-sidebar { display: none; }
  .wsp-host-back { display: inline-flex; margin: 0 calc(-1 * var(--space-2)) 0 0; }
  /* one side padding for every section and the list screen (the readable column is the screen) */
  .pw, .wsp-main { --wsp-gutter: var(--space-4); }
  .pw-root > .pw, .wsp-main { padding: var(--space-4) var(--wsp-gutter) var(--space-8); }
  .wsp-head { gap: var(--space-2); }
  .wsp-phone-list .wsp-body { padding: 0; overflow: visible; }
  .wsp-phone-list .wsp-site { padding: 0 var(--space-1); }
  .wsp-phone-list .wsp-site-name { font-size: var(--text-base); }
  .wsp-phone-list .wsp-status { font-size: var(--text-sm); }
  .wsp-phone-list .wsp-group + .wsp-group { margin-top: var(--space-5); }
  .wsp-phone-list .settings-group-label { padding: 0 var(--space-1); font-size: var(--text-xs); font-weight: var(--fw-medium); }
  .wsp-phone-list .wsp-item { height: var(--control-lg); border-radius: var(--radius-lg); font-size: var(--text-base); gap: var(--space-3); }
  .wsp-phone-list .wsp-item > svg { width: 20px; height: 20px; stroke-width: 2; }
  .wsp-phone-list .wsp-child { padding-left: var(--space-8); font-size: var(--text-md); }
  .wsp-phone-list .wsp-child > svg { width: 18px; height: 18px; }
  /* the Pages list's rows reach the column's edges like its header (each row is a short grid here: sites.css) */
  .wsp-section .pw-ptable tbody tr { padding-left: 0; padding-right: 0; }
  .wsp-section .pw-ptable tbody tr:last-child { border-bottom: 1px solid var(--border-faint); }
  .pw-pt-tree .pw-pt-cell { padding-left: calc(var(--pw-pt-depth, 0) * var(--space-4)); }   /* (a group's step in, narrower) */
  /* a list's own page keeps Manage in CMS (the only way from Pages to its list) on a line of its own under its name,
     where sites.css hides every other row's type */
  .pw-pt-tree td.pw-pt-type.is-cms { display: block; grid-column: 1 / -1; width: auto; }
  .pw-pt-tree .pw-pt-cms { min-height: var(--control-sm); }
}
/* (a draft whose list a new upload dropped: cmsAgencyLists orphansHTML, the agency's to copy or delete) */
.wsp-agency-orphans { display: flex; flex-direction: column; gap: var(--space-1); }
