@import url("./reviews-workspace.css");

/* =========================================================================
   views/collections — the lists of an uploaded website: the Content tab
   (PAGES_DESIGN §13; layout 'page': the collections rail, the header, the
   rows with Live / Hidden, the item sheet and the photo picker inside it), the
   editor's Site panel section (layout 'panel': compact rows, the item view in
   the panel), plus the self-test's preview strip (customLiveProbeDriver).
   Components: src/features/sites/customCollections.js (mountContent,
   mountCollections). Prefix: ccol-.
   Reuses the shared parts as they are: .settings-item (layout.css, the rail
   rows), .drawer (lead-drawer.css), .sortable-checklist's drop line
   (leads-responsive.css), .search / .field / .field-msg / .checkbox /
   .segmented / .switch / .icon-ghost / .badge / .tone-pill / .skel /
   .filter-menu (components.css), .pgs-google (page-settings.css).
   Tokens only; hovers guarded; the grips always show on touch.
   ========================================================================= */

.ccol { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.ccol-main { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }

/* ---- CMS: collections beside their content ---- */
.ccol-content-host { container-type: inline-size; }
.ccol-content { min-width: 0; }
.ccol-content--page.has-rail { display: grid; grid-template-columns: 224px minmax(0, 1fr); column-gap: var(--space-6); row-gap: var(--space-6); align-items: start; }
.ccol-rail { position: sticky; top: var(--space-4); min-width: 0; padding-right: var(--space-4); border-right: 1px solid var(--border-faint); }
/* a rail taller than the window (World Wide Vending's 88 lists) scrolls on its own beside the list open, never with the
   page, so its last lists stay in reach wherever the list is scrolled to (the window less the shell's bar and the rail's
   own top and bottom room) */
.ccol-content.has-rail > .ccol-rail { max-height: calc(100dvh - var(--frame-top) - var(--shell-header-height) - 2 * var(--space-4)); overflow-y: auto; overscroll-behavior: contain; }
/* (--frame-top: a bar above the app frame, the agency's "Viewing … as admin" bar or the App Store banner, takes its
   height from the frame: the rail gives it up too) */
.ccol-content.has-rail > .ccol-pane { scroll-margin-top: var(--space-4); }   /* (brought into view level with the rail: customCollections paneHeadInView) */
.ccol-content.has-rail > .ccol-rail { display: block; }
.ccol-rail-group + .ccol-rail-group { margin-top: var(--space-6); }
.ccol-rail-group h3 { margin: 0 0 var(--space-2); padding: 0 var(--space-2-5); font-size: var(--text-xs); font-weight: var(--fw-medium); color: var(--text-soft); }
.ccol-rail ul { display: flex; flex-direction: column; gap: var(--space-0-5); margin: 0; padding: 0; list-style: none; }
.ccol-rail-item { width: 100%; text-align: left; }
.ccol-rail-item > svg { flex: none; }
.ccol-rail-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccol-rail-count { flex: none; font-size: var(--text-xs); font-weight: var(--fw-regular); color: var(--text-soft); font-variant-numeric: tabular-nums; }
.ccol-rail-item.active .ccol-rail-count { color: var(--text-muted); }
.ccol-rail-empty { padding: var(--space-2-5); color: var(--text-muted); font-size: var(--text-sm); }
.ccol-content.has-rail > .ccol-rail-compact { display: none; }
.ccol-rail-select { width: 100%; }
.ccol-pane { min-width: 0; }
.ccol-rail--skel { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-2-5); }
.ccol-rail--skel .ccol-skel-line { width: var(--ccol-skel-w, 60%); }
@container (max-width: 900px) {
  .ccol-content--page.has-rail { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .ccol-content.has-rail > .ccol-rail { display: none; }
  .ccol-content.has-rail > .ccol-rail-compact { display: block; }
}

/* ---- the header: label and count, the lede, search and Add ---- */
.ccol-head { display: flex; align-items: flex-start; gap: var(--space-3); flex-wrap: wrap; min-width: 0; }
.ccol-head-text { flex: 1 1 280px; min-width: 0; }
.ccol-head-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--space-1) var(--space-2); }
.ccol-head-title h3 { margin: 0; font-size: var(--text-lg); font-weight: var(--fw-semibold); line-height: var(--leading-tight); color: var(--text-strong); }
.ccol-head-title h3:focus { outline: none; }
.ccol-head-count { font-size: var(--text-sm); color: var(--text-soft); font-variant-numeric: tabular-nums; }
.ccol-lede { margin: var(--space-1) 0 0; max-width: 68ch; font-size: var(--text-sm); line-height: var(--leading-snug); color: var(--text-muted); }
.ccol-partial { margin-top: var(--space-2); max-width: 68ch; }
.ccol-head-acts { display: flex; align-items: center; gap: var(--space-2); flex: none; }
.ccol-head-acts .btn svg { width: 15px; height: 15px; }
.ccol-search { min-width: 220px; }
.ccol-search input { min-width: 0; }
.ccol--panel > .ccol-search { display: flex; min-width: 0; width: 100%; }
.ccol-skel-h { display: block; width: 160px; height: 20px; border-radius: var(--radius-sm); }

/* ---- the list: one bordered box with a quiet head row, faint dividers, 64px rows (56 on phones) ----
   --ccol-pl: the row's left inset; --ccol-grip: the grip column and its gap when there is one. The head row's
   labels line up with the thumbnail and the status pill. */
.ccol-table {
  --ccol-pl: var(--space-2); --ccol-grip: 0px; --ccol-status-w: 88px; --ccol-chev: 16px;
  position: relative; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden;
}
.ccol-table.has-grip { --ccol-pl: var(--space-1); --ccol-grip: calc(30px + var(--space-1)); }
.ccol-thead {
  display: flex; align-items: center; min-height: 34px;
  padding: 0 calc(var(--space-2) + var(--space-2) + var(--space-3) + var(--ccol-chev)) 0 calc(var(--ccol-pl) + var(--ccol-grip) + var(--space-2));
  border-bottom: 1px solid var(--border-faint);
  font-size: var(--text-xs); font-weight: var(--fw-medium); color: var(--text-soft);
}
.ccol-th-name { flex: 1; min-width: 0; }
.ccol-th-status { flex: none; width: var(--ccol-status-w); }
.ccol-list { position: relative; display: block; margin: 0; padding: 0; list-style: none; }
.ccol-table > .ccol-list { border: 0; border-radius: 0; background: transparent; }
.ccol-list.sortable-checklist { gap: 0; }
.ccol-list[aria-busy="true"] { cursor: progress; }
.ccol-list[aria-busy="true"] .ccol-row { opacity: .72; transition: opacity var(--dur) var(--ease); }
.ccol-list > .ccol-row {
  display: flex; align-items: center; gap: var(--space-1); min-height: 64px; padding: 0 var(--space-2) 0 var(--ccol-pl);
  border: 0; border-radius: 0; background: var(--surface);
}
.ccol-list > .ccol-row + .ccol-row { border-top: 1px solid var(--border-faint); }
.ccol-list > .ccol-row.dragging { border-top-color: transparent; background: var(--surface-sunk); }
.ccol-list .drag-overlay { border-radius: var(--radius-md); box-shadow: var(--shadow-md); }
.ccol-grip { cursor: grab; touch-action: none; }
.ccol-grip:active { cursor: grabbing; }
.ccol-grip[aria-disabled="true"], .ccol-grip:disabled { cursor: default; opacity: .4; }
.ccol-open {
  display: flex; align-items: center; gap: var(--space-3); flex: 1; min-width: 0; min-height: 60px;
  padding: var(--space-1) var(--space-2); border: 0; border-radius: var(--radius-md);
  background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.ccol-open:focus-visible { outline: none; box-shadow: inset var(--ring-primary); }
.ccol-thumb {
  position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 42px; border-radius: var(--radius-md); overflow: hidden;
  background: var(--surface-sunk); color: var(--text-soft); box-shadow: inset 0 0 0 1px var(--border-faint);
}
.ccol-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ccol-thumb svg { width: 18px; height: 18px; }
.ccol-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.ccol-title-line { display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
.ccol-title-line .badge { flex: none; }
.ccol-title { min-width: 0; font-size: var(--text-md); font-weight: var(--fw-medium); color: var(--text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccol-sub { font-size: var(--text-sm); color: var(--text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccol-status { flex: none; display: flex; justify-content: flex-end; width: var(--ccol-status-w); }
/* the design's sample words an item still holds: a quiet count, and one note above the list */

/* ---- a photo gallery on one page: its photos as a grid of tiles ---- */
.ccol-ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.ccol--panel .ccol-ggrid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: var(--space-2); }
.ccol-gtile { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-sunk); box-shadow: inset 0 0 0 1px var(--border-faint); }
.ccol-gtile.is-sortable { cursor: grab; touch-action: pan-y; }
.ccol-gtile-open { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; color: var(--text-soft); cursor: pointer; }
.ccol-gtile.is-sortable .ccol-gtile-open { cursor: inherit; }
.ccol-gtile-open img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.ccol-gtile-open svg { width: 22px; height: 22px; }
.ccol-gtile-open:focus-visible { outline: none; box-shadow: inset var(--ring-primary); border-radius: var(--radius-lg); }
.ccol-gtile.is-hidden .ccol-gtile-open img { opacity: .45; }
.ccol-gtile-tag { position: absolute; left: var(--space-2); bottom: var(--space-2); padding: 2px var(--space-2); border-radius: var(--radius-sm); background: var(--overlay-media); color: var(--text-invert); font-size: var(--text-xs); font-weight: var(--fw-medium); pointer-events: none; }
.ccol-gtile-more { position: absolute; top: var(--space-1-5); right: var(--space-1-5); width: 28px; height: 28px; border-radius: var(--radius-sm); background: var(--overlay-media); color: var(--text-invert); }
.ccol-gtile-more svg { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) {
  .ccol-gtile-more { opacity: 0; transition: opacity var(--dur-fast) var(--ease); }
  .ccol-gtile:hover .ccol-gtile-more, .ccol-gtile:focus-within .ccol-gtile-more, .ccol-gtile-more[aria-expanded="true"] { opacity: 1; }
  .ccol-gtile-more:hover { background: var(--overlay-media-strong); color: var(--text-invert); }
}
.ccol-gtile--add { background: transparent; box-shadow: inset 0 0 0 1px var(--border); }
.ccol-gtile-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-1-5); width: 100%; height: 100%; padding: 0; border: 0; background: transparent; color: var(--text-muted); font-size: var(--text-sm); font-weight: var(--fw-medium); cursor: pointer; }
.ccol-gtile-add svg { width: 18px; height: 18px; }
.ccol-gtile-add:focus-visible { outline: none; box-shadow: inset var(--ring-primary); border-radius: var(--radius-lg); }
@media (hover: hover) and (pointer: fine) { .ccol-gtile-add:hover { background: var(--surface-hover); color: var(--text-strong); } }

/* ---- a logo strip: each logo whole (never cropped) on the well that suits it, its name under it. The tile's tone is
   read off the logo's pixels (shared/lib/logoTone): a white-on-transparent logo sits on the dark well ---- */
.ccol-ggrid.is-logos { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); row-gap: var(--space-4); }
.ccol--panel .ccol-ggrid.is-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-3); }
.is-logos .ccol-gtile { aspect-ratio: auto; overflow: visible; background: transparent; box-shadow: none; display: flex; flex-direction: column; gap: var(--space-1-5); }
.is-logos .ccol-gtile-open { aspect-ratio: 16 / 9; height: auto; padding: var(--space-3) var(--space-4); border-radius: var(--radius-lg); background: var(--logo-well); box-shadow: inset 0 0 0 1px var(--border-faint); }
.is-logos .ccol-gtile[data-tone="light"] .ccol-gtile-open { background: var(--logo-well-dark); box-shadow: none; }
.is-logos .ccol-gtile[data-tone="opaque-wide"] .ccol-gtile-open, .is-logos .ccol-gtile[data-tone="opaque"] .ccol-gtile-open { background: var(--logo-well-auto, var(--logo-well)); }
.is-logos .ccol-gtile-open img { object-fit: contain; }
.is-logos .ccol-gtile-tag { bottom: auto; top: var(--space-1-5); left: var(--space-1-5); }
.ccol-gtile-name { display: block; min-width: 0; padding: 0 var(--space-1); font-size: var(--text-sm); color: var(--text-muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.is-logos .ccol-gtile.is-hidden .ccol-gtile-name { color: var(--text-soft); }
.is-logos .ccol-gtile--add { aspect-ratio: 16 / 9; align-self: start; border-radius: var(--radius-lg); box-shadow: inset 0 0 0 1px var(--border); }

/* ---- the item sheet's photos: a grid (a gallery with captions keeps its rows) ---- */
.ccol-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.ccol-ptile { position: relative; aspect-ratio: 1; border-radius: var(--radius-md); overflow: hidden; background: var(--surface-sunk); box-shadow: inset 0 0 0 1px var(--border-faint); cursor: grab; touch-action: pan-y; }
.ccol-ptile-img { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--text-soft); }
.ccol-ptile-img img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.ccol-ptile .ccol-more { position: absolute; top: var(--space-1); right: var(--space-1); width: 26px; height: 26px; border-radius: var(--radius-sm); background: var(--overlay-media); color: var(--text-invert); }
.ccol-ptile .ccol-more svg { width: 15px; height: 15px; }
@media (hover: hover) and (pointer: fine) {
  .ccol-ptile .ccol-more { opacity: 0; transition: opacity var(--dur-fast) var(--ease); }
  .ccol-ptile:hover .ccol-more, .ccol-ptile:focus-within .ccol-more, .ccol-ptile .ccol-more[aria-expanded="true"] { opacity: 1; }
}
.ccol-ptile--add { background: transparent; box-shadow: inset 0 0 0 1px var(--border); cursor: default; }
.ccol-ptile-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-1); width: 100%; height: 100%; padding: 0; border: 0; background: transparent; color: var(--text-muted); font-size: var(--text-xs); font-weight: var(--fw-medium); cursor: pointer; }
.ccol-ptile-add svg { width: 16px; height: 16px; }
.ccol-ptile-add:focus-visible { outline: none; box-shadow: inset var(--ring-primary); border-radius: var(--radius-md); }
@media (hover: hover) and (pointer: fine) { .ccol-ptile-add:hover { background: var(--surface-hover); color: var(--text-strong); } }
.ccol-chev { display: inline-flex; color: var(--text-soft); flex: none; }
.ccol-chev svg { width: var(--ccol-chev); height: var(--ccol-chev); }
.ccol-more[aria-expanded="true"] { background: var(--gray-150); box-shadow: var(--press-inset-ghost); color: var(--text); }
/* hidden: the row stays, the photo steps back (the pill says it) */
.ccol-row.is-hidden .ccol-thumb img { opacity: .5; }
.ccol-row.is-hidden .ccol-title { color: var(--text-muted); }

/* the grip always shows, so a list reads as one you can reorder before it is hovered */
@media (hover: hover) and (pointer: fine) {
  .ccol-list > .ccol-row:hover { background: var(--surface-hover); }
  .ccol-list > .ccol-row.is-removed:hover { background: var(--surface); }
}
.ccol-list > .ccol-row .ccol-grip[aria-disabled="true"] { opacity: .4; }

/* the lines above and inside the list */
.ccol-allhidden { margin: 0; }
.ccol-nomatch svg { color: var(--text-soft); }

/* ---- the removed group and "Back to the original order" ---- */
.ccol-reset { align-self: flex-start; }
.ccol-removed { border-top: 1px solid var(--border-faint); }
.ccol-removed > summary {
  display: flex; align-items: center; gap: var(--space-2); min-height: var(--control-lg); padding: 0 var(--space-1);
  list-style: none; cursor: pointer; border-radius: var(--radius-sm);
  font-size: var(--text-sm); font-weight: var(--fw-medium); color: var(--text-muted);
}
.ccol-removed > summary::-webkit-details-marker { display: none; }
.ccol-removed > summary svg { width: 16px; height: 16px; color: var(--text-soft); transition: transform var(--dur) var(--ease); }
.ccol-removed[open] > summary svg { transform: rotate(90deg); }
.ccol-removed > summary:focus-visible { outline: var(--focus-outline); outline-offset: var(--focus-offset); }
@media (hover: hover) and (pointer: fine) { .ccol-removed > summary:hover { background: var(--nav-hover-bg); color: var(--text); } }
.ccol-removed-body { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-1) 0 var(--space-2); }
.ccol-removed-note { margin: 0; font-size: var(--text-sm); color: var(--text-soft); line-height: var(--leading-snug); }
.ccol-list--removed { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.ccol-list > .ccol-row.is-removed { min-height: 56px; padding: var(--space-1) var(--space-2) var(--space-1) var(--space-2-5); gap: var(--space-3); }
.ccol-row.is-removed .ccol-thumb { width: 48px; height: 36px; opacity: .5; }
.ccol-row.is-removed .ccol-title { color: var(--text-soft); font-weight: var(--fw-regular); }
.ccol-row.is-removed .btn { margin-left: auto; flex: none; }

/* ---- loading rows ---- */
.ccol-row--skel .ccol-thumb { box-shadow: none; }
.ccol-skel-line { display: block; height: 12px; border-radius: var(--radius-full); }
.ccol-skel-line + .ccol-skel-line { margin-top: var(--space-1-5); }
.ccol-skel-line--title { width: 38%; }
.ccol-skel-line--sub { width: 24%; }
.ccol-head-text > .ccol-skel-line--sub { width: 140px; margin-top: var(--space-2); }

/* ---- the menus (the shared .filter-menu tier, on body; JS sets top / left) ---- */
.ccol-menu { position: fixed; z-index: calc(var(--z-popover) + 2); min-width: 220px; max-width: min(320px, calc(100vw - var(--space-4))); }
.ccol-menu .filter-opt { gap: var(--space-2-5); width: 100%; border: 0; background: transparent; font-family: inherit; text-align: left; cursor: pointer; }
.ccol-menu .filter-opt > svg:first-child { width: 15px; height: 15px; margin-left: 0; color: var(--text-muted); flex: none; }
.ccol-menu .filter-opt:focus-visible { outline: none; background: var(--nav-hover-bg); box-shadow: inset var(--ring-primary); }
.ccol-menu .filter-opt:disabled { cursor: default; color: var(--text-placeholder); }
.ccol-menu-note { display: flex; gap: var(--space-2); padding: var(--space-2) 10px; font-size: var(--text-xs); line-height: var(--leading-snug); color: var(--text-soft); }
.ccol-menu-note svg { width: 14px; height: 14px; flex: none; margin-top: 1px; }
.ccol-menu .filter-opt > svg.ccol-turn { transform: rotate(90deg); }   /* the double chevrons stood upright: Move to top */

/* ---- the item sheet (page layout: a drawer) / the item view (panel layout) ---- */
.ccol-drawer .drawer-head { gap: var(--space-2); }
.ccol-drawer .drawer-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccol-head-more { display: inline-flex; margin-left: auto; flex: none; }
.ccol-head-more:empty { display: none; }
.ccol-back[hidden] { display: none; }
.ccol-drawer.is-sub .drawer-close, .ccol-pv.is-sub [data-act="close"], .ccol-drawer.is-sub .ccol-head-more, .ccol-pv.is-sub .ccol-head-more { display: none; }   /* in the picker, Back is the way out */
.ccol-dsub {
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2); flex-shrink: 0;
  padding: var(--space-3) var(--space-5) var(--space-3) var(--space-6); border-bottom: 1px solid var(--border-faint);
  font-size: var(--text-sm); color: var(--text-soft);
}
.ccol-dsub[hidden] { display: none; }
.ccol-dthumb { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 30px; border-radius: var(--radius-xs); overflow: hidden; background: var(--surface-sunk); color: var(--text-soft); box-shadow: inset 0 0 0 1px var(--border-faint); }
.ccol-dthumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ccol-dthumb svg { width: 14px; height: 14px; }
.ccol-dpos { font-variant-numeric: tabular-nums; }
.ccol-dpill { margin-left: auto; }
.ccol-drawer .drawer-body { gap: var(--space-6); }
/* the full-screen editor (the head's Expand, beside the ⋯; desktop only, a phone's sheet is full height already): the
   sheet fills the window inside the drawer's own gap, keeping its radius, shadow and layer; the fields a readable
   centred column; a post's writing growing with what's written under its pinned toolbar */
.ccol-full { flex: none; margin-left: auto; }
.ccol-full + .ccol-head-more { margin-left: 0; }
/* (a phone has no Expand: the ⋯ keeps the far end, never under the centred title) */
@media (max-width: 640px) { .ccol-full { display: none; } .ccol-full + .ccol-head-more { margin-left: auto; } }
@media (min-width: 641px) {
  .ccol-drawer.is-full { width: calc(100% - var(--space-8)); }
  .ccol-drawer.is-full:not(.can-pv) .drawer-body { align-items: center; }
  .ccol-drawer.is-full:not(.can-pv) .drawer-body > * { width: 100%; max-width: 880px; }
  /* (pinned while the writing scrolls; its shadow in the sheet's own colour covers the body's top padding above it) */
  .ccol-drawer.is-full .rte-bar { position: sticky; top: 0; z-index: var(--z-sticky); padding: var(--space-1) 0; box-shadow: 0 calc(-1 * var(--space-2-5)) 0 var(--surface); }
  /* Framer's item editor (C05): each field a row, its name on the left and its value on the right, a hairline between
     the rows; the normal sheet keeps its names above */
  .ccol-drawer.is-full:not(.can-pv) .ccol-fields > .ccol-field {
    display: grid; grid-template-columns: 136px minmax(0, 1fr); column-gap: var(--space-5); row-gap: var(--space-1-5); align-items: start;
  }
  .ccol-drawer.is-full:not(.can-pv) .ccol-fields > .ccol-field > .ccol-cover { justify-self: start; }
  .ccol-drawer.is-full:not(.can-pv) .ccol-fields > .ccol-field > * { grid-column: 2; min-width: 0; }
  .ccol-drawer.is-full:not(.can-pv) .ccol-fields > .ccol-field > label:first-child,
  .ccol-drawer.is-full:not(.can-pv) .ccol-fields > .ccol-field > .field-label:first-child { grid-column: 1; grid-row: 1; display: flex; align-items: center; min-height: var(--control-md); }
  .ccol-drawer.is-full:not(.can-pv) .ccol-fields > .ccol-field > .field-label + .rte .rte-bar { min-height: var(--control-md); padding-top: 0; }
  .ccol-drawer.is-full:not(.can-pv) .ccol-fields > .ccol-flag > .ccol-switch-row { grid-column: 1 / -1; }
}
/* the item's page beside its form (cmsItemPreview; customCollections mountPreview): a list whose items have pages of
   their own. Full screen: the form on the left, the section editor's preview pane, splitter and width tools on the right
   (.sde-preview, .sde-splitter: site-declared.css), side by side or stacked as it lays them out (sectionPreview sets
   --sde-pane / --sde-stack-pane and .is-stacked on the sheet). The small sheet: the form alone. A phone: Preview shows
   the page in place of the form. The form's column keeps its names above the boxes (it is the small sheet's width). */
.ccol-drawer > .ccol-preview, .ccol-drawer > .ccol-pv-split { display: none; }
/* (a page loaded again is drawn behind the one on screen, unseen and out of the way, until it says it is ready:
   cmsItemPreview load/shown. The page on screen never goes blank meanwhile) */
.ccol-preview .sde-frame iframe.is-next { position: absolute; top: 0; left: 0; opacity: 0; pointer-events: none; }
.ccol-pv-toggle { flex: none; margin-left: auto; }
.ccol-pv-toggle + .ccol-full, .ccol-pv-toggle ~ .ccol-head-more { margin-left: 0; }
.ccol-pv-toggle svg { width: 14px; height: 14px; }
.ccol-pv-note { font-size: var(--text-xs); color: var(--text-soft); white-space: nowrap; }
.ccol-pv-note:empty { display: none; }
@media (min-width: 641px) {
  .ccol-pv-toggle { display: none; }
  .ccol-pv-toggle + .ccol-full { margin-left: auto; }
  .ccol-drawer.can-pv.is-full {
    display: grid; grid-template-columns: minmax(0, var(--sde-pane, 36%)) var(--space-2) minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr) auto;
  }
  .ccol-drawer.can-pv.is-full > * { grid-column: 1 / -1; min-width: 0; }
  .ccol-drawer.can-pv.is-full > .drawer-body { grid-column: 1; grid-row: 3; }
  .ccol-drawer.can-pv.is-full > .drawer-foot { grid-column: 1; grid-row: 4; }
  .ccol-drawer.can-pv.is-full > .ccol-pv-split { display: flex; grid-column: 2; grid-row: 3 / 5; }
  .ccol-drawer.can-pv.is-full > .ccol-preview { display: flex; grid-column: 3; grid-row: 3 / 5; border-top: 1px solid var(--border-faint); }
  .ccol-drawer.can-pv.is-full > .ccol-dsub { border-bottom: 1px solid var(--border-faint); }
  .ccol-drawer.can-pv.is-full.is-stacked { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, var(--sde-stack-pane, 50%)) auto var(--space-2) minmax(0, 1fr); }
  .ccol-drawer.can-pv.is-full.is-stacked > .drawer-body { grid-row: 3; }
  .ccol-drawer.can-pv.is-full.is-stacked > .drawer-foot { grid-row: 4; }
  .ccol-drawer.can-pv.is-full.is-stacked > .ccol-pv-split { grid-column: 1; grid-row: 5; cursor: row-resize; border-inline: 0; border-block: 1px solid var(--border-faint); }
  .ccol-drawer.can-pv.is-full.is-stacked > .ccol-pv-split > span { width: var(--space-8); height: 2px; }
  .ccol-drawer.can-pv.is-full.is-stacked > .ccol-preview { grid-column: 1; grid-row: 6; }
  .ccol-drawer.can-pv.is-resizing { user-select: none; cursor: col-resize; }
  .ccol-drawer.can-pv.is-resizing.is-stacked { cursor: row-resize; }
  .ccol-drawer.can-pv.is-resizing iframe { pointer-events: none; }
}
@media (max-width: 640px) {
  /* (the title beside Back rather than centred over the sheet, so Preview never sits on it) */
  .ccol-drawer.can-pv .drawer-head .drawer-title, .drawer.sheet.ccol-drawer.can-pv .drawer-head .drawer-title { position: static; transform: none; flex: 1 1 auto; max-width: none; }
  .ccol-drawer.can-pv .ccol-pv-toggle { margin-left: 0; }
  .ccol-drawer.can-pv.is-pv > .drawer-body { display: none; }
  .ccol-drawer.can-pv.is-pv > .ccol-preview { display: flex; flex: 1 1 auto; min-height: 70vh; }
  .ccol-drawer.can-pv .ccol-preview .sde-preview-bar { order: 0; }
}
@media (prefers-reduced-motion: reduce) { .ccol-drawer { transition-property: transform; } }
.ccol-hidden-slot:empty, .ccol-hidden-slot[hidden] { display: none; }
.ccol-form { display: flex; flex-direction: column; gap: var(--space-6); min-width: 0; }
.ccol-form[hidden], .ccol-pk[hidden] { display: none; }
.ccol-sec { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
.ccol-sec-head { display: flex; align-items: center; gap: var(--space-2); min-height: var(--control-sm); }
.ccol-sec-title { margin: 0; font-size: var(--text-md); font-weight: var(--fw-semibold); color: var(--text-strong); }
.ccol-sec-count { font-size: var(--text-sm); color: var(--text-soft); font-variant-numeric: tabular-nums; }
.ccol-sec-head .btn { margin-left: auto; }
.ccol-sec-head .btn svg { width: 14px; height: 14px; }
.ccol-sec-lede { margin: 0; font-size: var(--text-sm); color: var(--text-soft); line-height: var(--leading-snug); }
/* the item's rows: one list, a hairline between rows (Framer's item editor), the same in the sheet, full screen and
   the panel; names above values below 641px and in the panel, beside them in full screen */
.ccol-fields { display: flex; flex-direction: column; gap: 0; }
.ccol-fields > .ccol-field { padding: var(--space-3) 0; }
.ccol-fields > .ccol-field:first-child { padding-top: 0; }
.ccol-fields > .ccol-field:last-child { padding-bottom: 0; }
.ccol-fields > .ccol-field + .ccol-field { border-top: 1px solid var(--border-faint); }
/* the last row: Page settings (an item with a page of its own, and a new one): the same hairline above it, then one
   full-width card the eye finds (6 Nov, Hugo: the quiet text row was "barely noticeable"): a settings icon, the name in
   ink, a line of what it holds, a chevron. Bordered like Site settings' rows on Overview. */
.ccol-fields > .ccol-psrow { padding: var(--space-3) 0 0; border-top: 1px solid var(--border-faint); }
.ccol-fields > .ccol-psrow:first-child { padding-top: 0; border-top: 0; }
.ccol-psrow-btn {
  display: flex; align-items: center; gap: var(--space-3); width: 100%; min-height: var(--control-lg);
  margin: 0; padding: var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface);
  box-shadow: var(--shadow-xs); font: inherit; text-align: left; color: var(--text); cursor: pointer;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.ccol-psrow-btn:focus-visible { outline: none; box-shadow: var(--ring-primary); }
@media (hover: hover) and (pointer: fine) { .ccol-psrow-btn:hover { background: var(--surface-hover); border-color: var(--border-strong); } }
.ccol-psrow-ic { flex: none; display: inline-flex; color: var(--text-soft); }   /* a naked stroke, no tile (one border level) */
.ccol-psrow-ic svg { width: 16px; height: 16px; }
.ccol-psrow-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--space-0-5); }
.ccol-psrow-label { font-size: var(--text-sm); font-weight: var(--fw-semibold); color: var(--text-strong); }
.ccol-psrow-sum { font-size: var(--text-sm); color: var(--text-muted); line-height: var(--leading-snug); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccol-psrow-btn > svg { flex: none; width: 16px; height: 16px; color: var(--text-muted); }
/* a long item's rows in groups as its page is (customCollections groupHTML, cmsItemGroups): the section editor's fold
   cards and list rows (.sde-card, .sde-fold, .sde-repeat, .sde-ri: site-declared.css), one closed group a soft bar
   with its name and how many of its fields are filled; numbered fields (Spec 1 … Spec 14) one list of rows */
.ccol-grouped { gap: var(--space-2); }
.ccol-grp { gap: 0; }
.ccol-grp > .ccol-grp-body { padding: var(--space-3) var(--space-1) var(--space-3); }
.ccol-grp-part { margin: var(--space-3) 0 var(--space-1); }
.ccol-grp-tail { padding-top: var(--space-2); }
.ccol-rep { display: flex; flex-direction: column; gap: var(--space-1-5); }
.ccol-rep-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); }
.ccol-rep-count { font-size: var(--text-xs); color: var(--text-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ccol-rep .sde-ri-body { gap: 0; }
.ccol-rep .sde-ri-title.is-empty { color: var(--text-soft); font-weight: var(--fw-regular); }
.ccol-rep-acts { display: flex; justify-content: flex-end; padding-top: var(--space-3); }
.ccol-rep-acts .btn svg { width: 14px; height: 14px; }
.ccol-rep > .ccol-line-add { align-self: flex-start; }
@media (min-width: 641px) { .ccol-drawer.is-full .ccol-fields > .ccol-rep { display: flex; } }
.ccol-field > .ccol-cover { align-self: flex-start; }
.ccol-field .field-msg { margin-top: 0; }
.ccol-field .field-msg.ccol-ph { color: var(--warning-700); }   /* still a placeholder: a status, so it takes the warning text tone */
.ccol-admin-tag { margin-left: var(--space-1-5); vertical-align: middle; }
/* a field that can't be left empty: "Needed" beside its name, quiet, from the moment the sheet opens (neededTag) */
.ccol-needed { margin-left: var(--space-1); font-size: var(--text-xs); font-weight: var(--fw-regular); color: var(--text-soft); white-space: nowrap; }
/* a field that can't be edited here: its value in a quiet box (.input.is-readonly, components.css), its reason under it */
.ccol-ro-value { max-height: 160px; overflow: auto; padding: var(--space-2) var(--space-2-5); border: 1px solid var(--border-faint); border-radius: var(--radius-md); background: var(--surface-sunk); font-size: var(--text-md); line-height: var(--leading-snug); color: var(--text-muted); overflow-wrap: anywhere; }
.ccol-ro-value:focus-visible { outline: none; box-shadow: var(--ring-primary); }
.ccol-ro-empty { color: var(--text-soft); }
.ccol-ro-raw { font-size: var(--text-sm); }
/* a long read-only value (customCollections roRowHTML): wrapped over two or three lines, sized to them, never resized */
textarea.input.ccol-ro-wrap { min-height: 0; resize: none; }
.ccol-ro-why { display: flex; align-items: flex-start; gap: var(--space-1-5); color: var(--text-soft); }
.ccol-ro-why svg { flex: none; width: 13px; height: 13px; margin-top: 2px; }
.ccol-ro.ccol-flag .ccol-switch-row { cursor: default; }
.ccol-pgrid.is-ro .ccol-ptile { cursor: default; }
.ccol-gal-acts { display: flex; }
.ccol-gal-acts .btn svg { width: 14px; height: 14px; }

/* a switch with its words: a flag field, a picked list */
.ccol-switches { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.ccol-switch-row { display: flex; align-items: center; gap: var(--space-3); min-height: var(--control-lg); padding: var(--space-1-5) var(--space-3); cursor: pointer; }
.ccol-switches > .ccol-switch-row + .ccol-switch-row { border-top: 1px solid var(--border-faint); }
.ccol-switch-text { flex: 1; min-width: 0; font-size: var(--text-md); color: var(--text); line-height: var(--leading-snug); }
.ccol-flag .ccol-switch-row { padding: 0; min-height: var(--control-md); }
.ccol-flag .ccol-switch-text { font-size: var(--text-sm); font-weight: var(--fw-medium); color: var(--text-muted); }
@media (hover: hover) and (pointer: fine) { .ccol-switch-row:hover .switch input:not(:checked) + .switch-track { background: var(--gray-300); } }

/* a list field: one bordered box of lines, each with a grip, the words and a remove */
.ccol-lines { position: relative; margin: 0; padding: 0; list-style: none; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.ccol-lines.sortable-checklist { gap: 0; }
.ccol-lines > .ccol-line { display: flex; align-items: center; gap: var(--space-1); min-height: var(--control-md); padding: var(--space-0-5) var(--space-1) var(--space-0-5) var(--space-0-5); border: 0; border-radius: 0; background: var(--surface); }
.ccol-lines > .ccol-line:focus-within { box-shadow: inset var(--ring-primary); }   /* the row draws the field's ring (its input is bare) */
.ccol-lines > .ccol-line + .ccol-line { border-top: 1px solid var(--border-faint); }
.ccol-lines > .ccol-line.dragging { background: var(--surface-sunk); }
.ccol-line-input { flex: 1; min-width: 0; height: var(--control-sm); padding: 0 var(--space-1); font: inherit; font-size: var(--text-md); color: var(--text); }
.ccol-line-input::placeholder { color: var(--text-placeholder); }
.ccol-line .icon-ghost { width: 28px; height: 28px; }
.ccol-line-add { align-self: flex-start; }
.ccol-line-add svg { width: 14px; height: 14px; }
@media (hover: hover) and (pointer: fine) {
  .ccol-line .ccol-grip, .ccol-line .ccol-line-x { opacity: 0; transition: opacity var(--dur-fast) var(--ease); }
  .ccol-line:hover .ccol-grip, .ccol-line:hover .ccol-line-x { opacity: 1; }
}
.ccol-line:focus-within .ccol-grip, .ccol-line:focus-within .ccol-line-x { opacity: 1; }

/* admin: option names and the list's names (disclosures in the panel sheet) */
.ccol-optnames, .ccol-names { min-width: 0; }
.ccol-optnames > summary, .ccol-names > summary {
  display: inline-flex; align-items: center; gap: var(--space-1-5); min-height: var(--control-sm); padding: 0 var(--space-1); margin-left: calc(-1 * var(--space-1));
  list-style: none; cursor: pointer; border-radius: var(--radius-sm); font-size: var(--text-sm); font-weight: var(--fw-medium); color: var(--text-muted);
}
.ccol-names > summary { font-size: var(--text-md); font-weight: var(--fw-semibold); color: var(--text-strong); }
.ccol-optnames > summary::-webkit-details-marker, .ccol-names > summary::-webkit-details-marker { display: none; }
.ccol-optnames > summary svg, .ccol-names > summary svg { width: 14px; height: 14px; color: var(--text-soft); transition: transform var(--dur) var(--ease); }
.ccol-optnames[open] > summary svg, .ccol-names[open] > summary svg { transform: rotate(90deg); }
.ccol-optnames > summary:focus-visible, .ccol-names > summary:focus-visible { outline: var(--focus-outline); outline-offset: var(--focus-offset); }
@media (hover: hover) and (pointer: fine) { .ccol-optnames > summary:hover, .ccol-names > summary:hover { background: var(--nav-hover-bg); color: var(--text); } }
.ccol-optnames-body, .ccol-names-body { display: flex; flex-direction: column; gap: var(--space-2-5); padding: var(--space-2) 0 0; }
.ccol-names-fields { display: flex; flex-direction: column; gap: var(--space-2); }
.ccol-optname { display: grid; grid-template-columns: minmax(72px, 32%) minmax(0, 1fr); align-items: center; gap: var(--space-2); }
.ccol-optval { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--text-sm); color: var(--text-soft); }
.ccol-optnames-body .btn, .ccol-names-body .btn { align-self: flex-start; }

/* a photo field: a compact 160 × 100 box (16:10), the same in every width and layout */
.ccol-cover { position: relative; flex: none; width: 160px; max-width: 100%; aspect-ratio: 16 / 10; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-sunk); box-shadow: inset 0 0 0 1px var(--border-faint); display: flex; align-items: center; justify-content: center; color: var(--text-soft); }
.ccol-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ccol-cover svg { width: 18px; height: 18px; }
/* a logo's sheet: the logo whole on its well (the tone read off its pixels, as the strip's tiles) */
.ccol-cover--logo { width: 100%; border-radius: var(--radius-lg); background: var(--logo-well); padding: var(--space-6) var(--space-8); }
.ccol-cover--logo img { object-fit: contain; }
.ccol-cover--logo[data-tone="light"] { background: var(--logo-well-dark); box-shadow: none; }
.ccol-cover--logo[data-tone="opaque"], .ccol-cover--logo[data-tone="opaque-wide"] { background: var(--logo-well-auto, var(--logo-well)); }
/* the box as the control (coverBox): empty, a quiet dashed box that chooses one; with a photo, "Replace" on hover or
   keyboard focus, and always on touch */
button.ccol-cover { padding: 0; border: 0; font: inherit; color: var(--text-soft); text-align: center; cursor: pointer; }
button.ccol-cover--logo:not(.is-empty) { padding: var(--space-6) var(--space-8); }
.ccol-cover--pick.is-empty {
  aspect-ratio: 16 / 10; min-height: 0; flex-direction: column; gap: var(--space-1);
  background: transparent; box-shadow: none; border: 1px dashed var(--border-strong);
  font-size: var(--text-xs); font-weight: var(--fw-medium); color: var(--text-muted);
}
.ccol-cover--logo.ccol-cover--pick.is-empty { aspect-ratio: auto; min-height: 132px; }
.ccol-cover--pick.is-empty svg { width: 16px; height: 16px; color: var(--text-soft); }
.ccol-cover-hint {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: inline-flex; align-items: center; gap: var(--space-1);
  height: var(--control-xs); padding: 0 var(--space-2); border-radius: var(--radius-full); background: var(--surface); box-shadow: var(--shadow-md);
  font-size: var(--text-xs); font-weight: var(--fw-medium); color: var(--text-strong); white-space: nowrap; opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.ccol-cover-hint svg { width: 12px; height: 12px; color: var(--text-muted); }
.ccol-cover--pick:focus-visible { outline: none; box-shadow: var(--ring-primary); }
.ccol-cover--pick:focus-visible .ccol-cover-hint { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .ccol-cover--pick.is-empty:hover { border-color: var(--text-soft); background: var(--surface-hover); color: var(--text-strong); }
  .ccol-cover--pick:hover .ccol-cover-hint { opacity: 1; }
  .ccol-cover--pick:not(.is-empty):hover img { filter: brightness(0.92); }
}
@media (hover: none) {
  .ccol-cover-hint { opacity: 1; left: auto; top: auto; right: var(--space-1-5); bottom: var(--space-1-5); translate: none; }
}
@media (prefers-reduced-motion: reduce) { .ccol-cover-hint { transition: none; } }

/* a calm grey slot for the hidden, mirrored, pinned and locked notes */
.ccol-note { display: flex; align-items: flex-start; gap: var(--space-2); margin: 0; padding: var(--space-3) var(--space-3-5); border-radius: var(--radius-lg); background: var(--surface-sunk); color: var(--text-soft); font-size: var(--text-sm); line-height: var(--leading-snug); }
.ccol-note svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.ccol-hidden-note { color: var(--text-muted); }

/* the gallery manager: one bordered box of photo rows */
.ccol-gal { position: relative; margin: 0; padding: 0; list-style: none; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.ccol-gal.sortable-checklist { gap: 0; }
.ccol-gal > .ccol-gal-row { display: flex; align-items: flex-start; gap: var(--space-2); padding: var(--space-2-5) var(--space-2) var(--space-2-5) var(--space-1-5); border: 0; border-radius: 0; background: var(--surface); }
.ccol-gal > .ccol-gal-row + .ccol-gal-row { border-top: 1px solid var(--border-faint); }
.ccol-gal > .ccol-gal-row.dragging { background: var(--surface-sunk); }
.ccol-gal-row .ccol-grip, .ccol-gal-row .ccol-more { margin-top: var(--space-2); }
.ccol-gal-thumb { flex: none; width: 64px; height: 48px; margin-top: var(--space-0-5); border-radius: var(--radius-md); overflow: hidden; background: var(--surface-sunk); box-shadow: inset 0 0 0 1px var(--border-faint); }
.ccol-gal-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ccol-gal-fields { display: flex; flex-direction: column; gap: var(--space-1-5); flex: 1; min-width: 0; }
.ccol-gal-fields label, .ccol-pic-alt { display: flex; flex-direction: column; gap: var(--space-0-5); min-width: 0; }
.ccol-gal-fields label > span, .ccol-pic-alt > span { font-size: var(--text-xs); font-weight: var(--fw-medium); color: var(--text-soft); }
/* a gallery photo's description, opened from its ⋯ under the grid: its thumbnail, its box, Done */
.ccol-gal-desc { display: flex; align-items: flex-start; gap: var(--space-2); padding: var(--space-2-5) var(--space-2); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.ccol-gal-desc .ccol-gal-desc-x { flex: none; margin-top: var(--space-2); }
.ccol-gal-empty { margin: 0; padding: var(--space-4); border-radius: var(--radius-lg); background: var(--surface-sunk); font-size: var(--text-sm); color: var(--text-soft); line-height: var(--leading-snug); }

/* the footer tray: Undo changes left, Cancel and Save right; the questions take its place */
.ccol-foot { display: flex; align-items: center; gap: var(--space-2); background: var(--surface-sunk); }
.ccol-foot > .ccol-foot-left { margin-right: auto; }
/* what Add (or Save) still needs, by the buttons: "3 fields need filling in" (in the error tone; gone once nothing is) */
.ccol-foot-need { font-size: var(--text-sm); color: var(--danger-700); text-align: right; }
.ccol-foot-need:empty { display: none; }
.ccol-foot[hidden] { display: none; }
.ccol-ask { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2); width: 100%; }
.ccol-ask > b { margin-right: auto; font-size: var(--text-sm); font-weight: var(--fw-semibold); color: var(--text-strong); }
.ccol-ask--stack { flex-direction: column; align-items: stretch; gap: var(--space-3); }
.ccol-ask-text b { display: block; font-size: var(--text-md); font-weight: var(--fw-semibold); color: var(--text-strong); }
.ccol-ask-text p { margin: var(--space-1) 0 0; font-size: var(--text-sm); color: var(--text-muted); line-height: var(--leading-snug); }
.ccol-ask-acts { display: flex; justify-content: flex-end; gap: var(--space-2); }
.ccol-ask[hidden] { display: none; }
.ccol-banner:empty { display: none; }

/* ---- the photo picker: a sub-view of the drawer / panel item view ---- */
.ccol-pk { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
.ccol-pk-seg { align-self: flex-start; max-width: 100%; overflow-x: auto; }
.ccol-pk-count { font-variant-numeric: tabular-nums; color: var(--text-soft); font-weight: var(--fw-regular); }
.ccol-pk-pane { display: flex; flex-direction: column; gap: var(--space-3); }
.ccol-pk-pane[hidden] { display: none; }
.ccol-pk-lede { margin: 0; font-size: var(--text-sm); color: var(--text-soft); line-height: var(--leading-snug); }
.ccol-pk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: var(--space-2); margin: 0; padding: 2px; list-style: none; }
.ccol-tile { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: var(--radius-md); overflow: hidden; background: var(--surface-sunk); box-shadow: inset 0 0 0 1px var(--border-faint); cursor: pointer; }
.ccol-tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ccol-tile .checkbox { position: absolute; top: var(--space-1-5); left: var(--space-1-5); box-shadow: var(--shadow-xs); }
.ccol-tile:has(.checkbox:checked) { box-shadow: inset 0 0 0 1px var(--text-strong), 0 0 0 0.5px var(--text-strong); }
.ccol-tile:has(.checkbox:checked) img { opacity: .88; }
@media (hover: hover) and (pointer: fine) { .ccol-tile:hover { box-shadow: inset 0 0 0 1px var(--border-strong); } .ccol-tile:has(.checkbox:checked):hover { box-shadow: inset 0 0 0 1px var(--text-strong), 0 0 0 0.5px var(--text-strong); } }
.ccol-pk-group { border-top: 1px solid var(--border-faint); }
.ccol-pk-group:first-child { border-top: 0; }
.ccol-pk-group > summary { display: flex; align-items: center; gap: var(--space-2); min-height: var(--control-lg); padding: 0 var(--space-1); list-style: none; cursor: pointer; border-radius: var(--radius-sm); font-size: var(--text-sm); font-weight: var(--fw-medium); color: var(--text-strong); }
.ccol-pk-group > summary::-webkit-details-marker { display: none; }
.ccol-pk-group > summary svg { width: 16px; height: 16px; margin-left: auto; color: var(--text-soft); transition: transform var(--dur) var(--ease); }
.ccol-pk-group[open] > summary svg { transform: rotate(180deg); }
.ccol-pk-group > summary:focus-visible { outline: var(--focus-outline); outline-offset: var(--focus-offset); }
@media (hover: hover) and (pointer: fine) { .ccol-pk-group > summary:hover { background: var(--nav-hover-bg); } }
.ccol-pk-group > .ccol-pk-grid { padding: var(--space-1) 2px var(--space-3); }
.ccol-pk-more { align-self: center; }
.ccol-pk-empty { margin: 0; padding: var(--space-4); border-radius: var(--radius-lg); background: var(--surface-sunk); font-size: var(--text-sm); color: var(--text-soft); }
.ccol-drop { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); padding: var(--space-6) var(--space-4); border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); background: var(--surface); text-align: center; font-size: var(--text-sm); color: var(--text-soft); }
.ccol-drop.is-over { background: var(--surface-sunk); border-color: var(--text-soft); }
.ccol-drop svg { width: 20px; height: 20px; color: var(--text-soft); }
.ccol-drop b { font-weight: var(--fw-semibold); color: var(--text-strong); }

/* ---- layout 'panel': the editor's Site panel ---- */
.ccol--panel { gap: var(--space-2-5); }
.ccol--panel .ccol-table { --ccol-pl: var(--space-0-5); --ccol-status-w: auto; }
.ccol--panel .ccol-table.has-grip { --ccol-pl: var(--space-0-5); }
.ccol--panel .ccol-list > .ccol-row { min-height: 44px; padding: 0 var(--space-1-5) 0 var(--ccol-pl); gap: var(--space-0-5); }
.ccol--panel .ccol-open { min-height: 42px; gap: var(--space-2-5); padding: var(--space-1) var(--space-1-5); }
.ccol--panel .ccol-thumb { width: 40px; height: 30px; border-radius: var(--radius-xs); }
.ccol--panel .ccol-thumb svg { width: 14px; height: 14px; }
.ccol--panel .ccol-title { font-size: var(--text-sm); }
.ccol--panel .ccol-title-line .badge { display: none; }   /* the pill is the one state a compact row carries */
.ccol--panel .ccol-sub, .ccol--panel .ccol-chev { display: none; }
.ccol--panel .ccol-status { width: auto; }
.ccol--panel .ccol-grip { width: 26px; height: 26px; }
.ccol--panel .ccol-row.is-removed .ccol-thumb { width: 32px; height: 24px; }
.ccol-add { align-self: flex-start; }
.ccol-add svg { width: 14px; height: 14px; }
.ccol-pv { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.ccol-pv-head { display: flex; align-items: center; gap: var(--space-1); min-width: 0; }
.ccol-pv-head .btn { flex: none; padding-left: var(--space-1); }
.ccol-pv-head .btn svg { width: 15px; height: 15px; }
.ccol-pv-head b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--text-md); font-weight: var(--fw-semibold); color: var(--text-strong); }
.ccol-pv-sub { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2); font-size: var(--text-xs); color: var(--text-soft); }
.ccol-pv-sub .ccol-dthumb { width: 32px; height: 24px; }
.ccol-pv .ccol-form { gap: var(--space-5); }
.ccol-pv .ccol-sec-title { font-size: var(--text-sm); }
.ccol-pv .ccol-gal-thumb { width: 48px; height: 36px; }
.ccol-pv .ccol-pk-grid { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
.ccol-pv-foot { position: sticky; bottom: 0; z-index: var(--z-sticky); display: flex; align-items: center; gap: var(--space-2); margin: 0 calc(-1 * var(--space-4)); padding: var(--space-3) var(--space-4); border-top: 1px solid var(--border); background: var(--surface); }
.ccol-pv-foot > .ccol-foot-left { margin-right: auto; }
.ccol-folder { display: flex; flex-direction: column; gap: var(--space-1-5); }
/* the panel's Content section: one compact block per collection; an open item takes the whole section */
.ccol-content--panel { display: flex; flex-direction: column; gap: var(--space-5); }
.ccol-cblock { display: flex; flex-direction: column; gap: var(--space-2-5); min-width: 0; }
.ccol-cblock-head { display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
.ccol-cblock-head:empty { display: none; }
.ccol-cblock-title { margin: 0; font-size: var(--text-md); font-weight: var(--fw-semibold); color: var(--text-strong); }
.ccol-content--panel.is-item-open > .ccol-cblock:not(.is-open), .ccol-cblock.is-open > .ccol-cblock-head { display: none; }

/* ---- the self-test's preview strip: up to three scaled pages side by side ---- */
.ccol-probe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); min-width: 0; }
.ccol-probe:empty { display: none; }
.ccol-probe-slot { position: relative; aspect-ratio: 1280 / 900; border-radius: var(--radius-md); overflow: hidden; background: var(--surface-sunk); box-shadow: inset 0 0 0 1px var(--border-faint); }
.ccol-probe-frame { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; pointer-events: none; background: var(--surface); }
/* the check carried on in a bottom-right toast after the import report closed (listCheckToast) */
.list-check-frames { margin-top: var(--space-1-5); }
.list-check-frames:empty { display: none; }
/* Client View: the Content tab checking a list nobody has checked yet (portalWebsitePage startCheck) */
.pw-coll-check { margin-bottom: var(--space-4); }
.pw-coll-check-note { display: inline-flex; align-items: center; gap: var(--space-1-5); margin: 0; font-size: var(--text-xs); color: var(--text-muted); }
.pw-coll-check-frames { width: min(100%, 520px); margin: var(--space-3) auto 0; }
.pw-coll-check-frames:empty { display: none; }

/* ---- phones ---- */
@media (max-width: 640px) {
  .ccol-head-acts { flex: 1 1 100%; }
  .ccol-search { flex: 1; min-width: 0; }
  .ccol-thead { display: none; }
  .ccol-table { --ccol-status-w: auto; }
  .ccol-list > .ccol-row { min-height: 56px; padding-right: var(--space-1); gap: 0; }
  .ccol-open { min-height: 54px; gap: var(--space-2-5); padding: var(--space-1) var(--space-1-5); }
  .ccol-thumb { width: 48px; height: 36px; }
  .ccol-status { width: auto; }
  .ccol-chev { display: none; }
  .ccol-dsub { padding: var(--space-2-5) var(--space-4); }
  .ccol-pk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ccol-gal-thumb { width: 52px; height: 40px; }
  .ccol-foot { flex-wrap: wrap; }
}
/* touch: the 44px floors the shared primitives keep (components.css) reach the rows' own controls too */
@media (pointer: coarse) {
  .ccol-list > .ccol-row .ccol-grip, .ccol-line .icon-ghost { width: 40px; height: 44px; }
}

/* ---- reduced motion: no FLIP glides (the shared helper writes them inline), no chevron turns ---- */
@media (prefers-reduced-motion: reduce) {
  .ccol-list .sortable-row, .ccol-gal .sortable-row, .ccol-lines .sortable-row { transition: none !important; }
  .ccol-removed > summary svg, .ccol-pk-group > summary svg, .ccol-optnames > summary svg, .ccol-names > summary svg,
  .ccol-row .ccol-grip, .ccol-line .ccol-grip, .ccol-line .ccol-line-x, .ccol-list[aria-busy="true"] .ccol-row { transition: none; }
}

#rpListBody { padding: 0; display: flex; flex-direction: column; }
/* ---- an uploaded site's lists in the editor's right panel — logos (customLogosPanel), reviews (customReviewsPanel)
   and FAQs (customFaqPanel), on the Editor Panel System (the 20 Oct boards as the owner refined them): a 44px head
   (an icon, the title as the heading, ⋯ and ×, naked icon buttons), then one list of filled rows 4px apart, each a 44px
   card on --surface-sunk: a 20px handle, the row's own words (a review's or question's toggle carries its chevron; a
   logo's ⋯ comes up on hover, always on touch). "+ Add …" last: a dashed 40px button the list's full width.
   One border level: the head's hairline, and the one card lifted while a review or question is open.
   Hover only for fine pointers; buttons show a 2px ink ring for the keyboard, fields turn white with a quiet ring and
   halo; touch gets 44px hit areas (.lgp-hit) round the small buttons; reduced motion stops every fold and fade ---------- */
.lgp-root { display: contents; }   /* (a panel's own wrapper: the panel still fills its column) */
/* (a row's fill: the design's --surface-sunk; on dark that is a hair off the panel (1.04:1), so the rows take
   --surface-2 there. From it a row steps along the grey ramp, as the nav rows do: hovered --gray-150, the canvas-click
   row --gray-200 (--surface-hover would vanish against a sunk row, 1.06:1). --lgp-ink-6: a soft ink wash that reads on
   any of those greys (an icon button's hover, a field's focus halo); --lgp-ease: the open card's unfold) */
.lgp {
  --lgp-row: var(--surface-sunk);
  --lgp-ink-6: color-mix(in srgb, var(--gray-900) 6%, transparent);
  --lgp-ink-8: color-mix(in srgb, var(--gray-900) 8%, transparent);
  --lgp-ease: cubic-bezier(.2, .8, .2, 1);
  display: flex; flex-direction: column; flex: 1; min-height: 100%;
}
html[data-theme="dark"] .lgp { --lgp-row: var(--surface-2); }
.lgp.is-busy { cursor: progress; }
.lgp.is-busy:not(.is-row-saving) :is(.lgp-list, .lgp-tail) { opacity: .72; transition: opacity var(--dur) var(--ease); }   /* (a row's save shows its own spinner instead) */
/* the head: 44px, 14px in, the title a 13px semibold heading, the icon buttons naked (a soft wash on hover) */
.lgp-head { justify-content: flex-start; flex: none; height: 44px; min-height: 44px; margin: 0; padding: 0 var(--space-3-5); gap: var(--space-2); border-bottom: 1px solid var(--border-faint); }
.lgp-title { flex: 1; min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--text-sm); font-weight: var(--fw-semibold); line-height: var(--leading-snug); color: var(--text-strong); }
.lgp-head-ico { display: inline-flex; flex: none; color: var(--text-soft); }
.lgp-head-ico svg { width: 16px; height: 16px; }
.lgp-headmore, .lgp-close { flex: none; width: 28px; height: 28px; color: var(--text-soft); }
.lgp-headmore svg, .lgp-close svg { width: 16px; height: 16px; }
.lgp-headmore[aria-expanded="true"], .lgp-more[aria-expanded="true"] { background: var(--lgp-ink-8); color: var(--text-strong); opacity: 1; }
.lgp-body { flex: 1; padding: var(--space-2) var(--space-2) var(--space-4); }
/* (isolated: the drag's layers below stack inside the list, never against the page's popovers) */
.lgp-list { position: relative; isolation: isolate; display: flex; flex-direction: column; gap: var(--space-1); list-style: none; margin: 0; padding: 0; }
/* a row: a filled card, 44px; a logo's is its line (handle, the logo and its name, ⋯) */
.lgp-row, .lgp-row.sortable-row { display: block; margin: 0; padding: 0 var(--space-1-5) 0 var(--space-1); border: 0; border-radius: var(--radius-md); background: var(--lgp-row); box-shadow: none; transition: background-color var(--dur) ease, border-color var(--dur) ease, box-shadow var(--dur) ease; }
/* (the row the canvas click came from, and only that: a step darker than a hovered row, hovered or not; never the row
   lifted under the pointer, and not while it saves: its spinner sits on the rows' own fill, as on the board) */
.lgp-row.is-focus:not(.is-open):not(.is-saving):not(.drag-overlay) { background: var(--gray-200); }
.lgp-line { display: grid; grid-template-columns: 20px minmax(0, 1fr) 28px; align-items: center; column-gap: var(--space-1); min-height: 44px; }
.lgp-grip { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 28px; padding: 0; border: 0; border-radius: var(--radius-xs); background: none; color: var(--text-soft); cursor: grab; touch-action: none; transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease; }
.lgp-grip:active { cursor: grabbing; }
.lgp-grip.is-keyonly { cursor: default; }   /* (the open card's handle: the keyboard moves it, the pointer doesn't) */
.lgp-grip.is-new { color: var(--gray-400); cursor: default; }   /* (a row still being added has no place to move yet) */
.lgp-grip svg { width: 14px; height: 14px; }
.lgp-main { display: flex; align-items: center; gap: var(--space-2-5); align-self: stretch; min-width: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; border-radius: var(--radius-xs); }
button.lgp-main { cursor: pointer; }
/* a logo's tile: white with an inset hairline (the dark tile only behind a light, white-on-transparent logo) */
.lgp-thumb { flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 28px; padding: var(--space-1); box-sizing: border-box; border-radius: var(--radius-xs); background: var(--logo-well); box-shadow: inset 0 0 0 1px var(--border-faint); color: var(--text-soft); }
.lgp-thumb[data-tone="light"] { background: var(--logo-well-dark); box-shadow: none; }
html[data-theme="dark"] .lgp-thumb[data-tone="light"] { box-shadow: inset 0 0 0 1px var(--border); }   /* (on a dark row the dark tile keeps its edge) */
.lgp-thumb[data-tone="opaque"], .lgp-thumb[data-tone="opaque-wide"] { background: var(--logo-well-auto, var(--logo-well)); }
.lgp-thumb img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lgp-thumb svg { width: 14px; height: 14px; }
.lgp-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--text-sm); line-height: 18px; color: var(--text-strong); }
.lgp-row.is-hidden .lgp-name { color: var(--text-muted); }   /* (--text-soft falls under 4.5:1 on a hovered or highlighted row) */
.lgp-row.is-hidden .lgp-thumb img { opacity: .45; }
.lgp-more { width: 28px; height: 28px; color: var(--text-soft); }
.lgp-more svg { width: 16px; height: 16px; }
/* a list that can't be changed here: plain rows, no handle, nothing to open */
.lgp-row.is-ro { padding: 0 var(--space-2-5); }
.lgp-line--ro { display: flex; align-items: center; min-width: 0; }
/* the chevron: in a closed row it is part of the row's toggle; in the open card its own button, turned */
.lgp-chev { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; color: var(--text-soft); }
.lgp-chev svg { width: 16px; height: 16px; }
.lgp-chev[aria-expanded="true"] svg { transform: rotate(180deg); }
.lgp-edit-label { font-size: var(--text-xs); font-weight: var(--fw-medium); color: var(--text-soft); }
.lgp-edit .input { width: 100%; }
.lgp-edit-acts { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
/* after the list (never in it, so a drag never lands below it): the uploading line, then "+ Add …" (8px under the last
   row, 4px under the uploading line), or the new card (4px under the last row) */
.lgp-tail { display: flex; flex-direction: column; gap: var(--space-1); margin-top: var(--space-1); }
.lgp-tail:first-child { margin-top: 0; }
.lgp-list + .lgp-tail > .lgp-addrow:first-child:not(.is-open) { margin-top: var(--space-1); }
/* "+ Add …": a dashed button the list's width, its plus and words centred; on an empty list, 96px and a second line */
.lgp-add { display: flex; align-items: center; justify-content: center; gap: var(--space-1-5); width: 100%; height: 40px; padding: 0 var(--space-3); border: 1px dashed var(--border-strong); border-radius: var(--radius-md); background: none; color: var(--text-muted); font: inherit; font-size: var(--text-sm); font-weight: var(--fw-medium); cursor: pointer; transition: border-color var(--dur-fast) ease, color var(--dur-fast) ease; }
.lgp-add > svg, .lgp-add-l1 > svg { flex: none; width: 14px; height: 14px; }
.lgp-add[aria-disabled="true"] { cursor: progress; }   /* (waiting: it keeps the keyboard, a click does nothing) */
.lgp-add.is-empty { flex-direction: column; height: 96px; }
.lgp-add-l1 { display: inline-flex; align-items: center; gap: var(--space-1-5); color: var(--text-strong); }
.lgp-add-l2 { font-size: var(--text-xs); font-weight: var(--fw-regular); color: var(--text-soft); }
.is-drop .lgp-body { box-shadow: inset 0 0 0 1px var(--border-strong); border-radius: var(--radius-md); }
/* one quiet line, never a paragraph: a list that can't be changed here (its lock), one being checked (a spinner), a
   special answer's reason */
.lgp-note { display: flex; align-items: center; gap: var(--space-1-5); min-height: 28px; margin: 0 0 var(--space-1); padding: 0 var(--space-1-5); font-size: var(--text-xs); line-height: 16px; color: var(--text-soft); }
.lgp-note > svg { flex: none; width: 12px; height: 12px; }
.lgp-body > .lgp-note { margin-bottom: var(--space-2); }   /* (8px over the rows, as on the board) */
/* the quiet spinners: a row saving, logos going up, a list being checked */
.lgp .spinner { display: inline-block; flex: none; width: 14px; height: 14px; border-width: 2px; border-color: var(--gray-200); border-top-color: var(--text-soft); }
.lgp-note .spinner { width: 12px; height: 12px; }
/* a row saving: the spinner where its chevron was (the panel's status line says "Saving"); nothing moves */
.lgp-saving { grid-column: 2; grid-row: 1; justify-self: end; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; pointer-events: none; }
.lgp-row.is-saving .lgp-main .lgp-chev { visibility: hidden; }
/* logos going up: one quiet line above Add */
.lgp-status { display: flex; align-items: center; gap: var(--space-2); height: 36px; margin: 0; padding: 0 var(--space-2); font-size: var(--text-xs); color: var(--text-soft); }
/* a drag: where the row will land (a 2px ink line, a ring at its start), its place a faint slot, the row itself lifted
   under the pointer (sortableChecklist); the keyboard's picked-up row lifts the same way, in place */
.lgp-list .drop-line { position: absolute; z-index: var(--z-sticky); left: 0; right: 0; height: 2px; margin-top: calc(-1 * var(--space-0-5)); border-radius: var(--radius-full); background: var(--text-strong); pointer-events: none; }
.lgp-list .drop-line::before { content: ""; position: absolute; left: -3px; top: -2px; width: 6px; height: 6px; border-radius: var(--radius-full); background: var(--surface); box-shadow: inset 0 0 0 2px var(--text-strong); }
.lgp-list .drop-line[hidden] { display: none; }
.lgp-row.sortable-row.dragging { background: var(--lgp-row); border-color: transparent; box-shadow: none; opacity: .45; }
.lgp-row.sortable-row.dragging > * { visibility: hidden; }
/* (the lifted row over everything in the list, the faint slot that moves to its landing place included) */
.lgp-row.drag-overlay { z-index: calc(var(--z-sticky) + 1); margin: 0; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border), var(--shadow-lg); rotate: -1deg; cursor: grabbing; }
.lgp-row.sortable-row.is-lifted { position: relative; z-index: var(--z-sticky); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border), var(--shadow-lg); }
.lgp-row.drag-overlay .lgp-grip, .lgp-row.is-lifted .lgp-grip { color: var(--text-strong); }
/* the keyboard: every button a 2px ink ring 2px out (the boards' focus); a field's focus is its own (below) */
.lgp button:focus-visible { outline: 2px solid var(--text-strong); outline-offset: 2px; }
/* touch: a 44px hit area round each small button, centred on it */
.lgp-hit { position: relative; }
@media (pointer: coarse) {
  .lgp-hit::after { content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); }
  .lgp-close, .lgp-headmore { width: 38px; height: 38px; }
  .lgp-line { grid-template-columns: 20px minmax(0, 1fr) 38px; }
  .lgp-more { width: 38px; height: 38px; }
  /* (a review's or question's handle sits 4px from its toggle, the photo pill's × 4px from its pick: their hit areas
     stay in that gap, so a tap on the first letters of a name opens the row, and one on "Image" changes the photo) */
  .rvp .lgp-grip.lgp-hit::after { width: 28px; }
  .rvp-pic .rvp-pic-x.lgp-hit::after { width: 42px; }
}
@media (hover: hover) and (pointer: fine) {
  .lgp-row.is-live:not(.is-open):not(.is-focus):not(.is-lifted):not(.is-saving):not(.drag-overlay):not(.dragging):hover { background: var(--gray-150); }
  .lgp .icon-ghost:not(:disabled):hover, .lgp .lgp-grip[data-drag]:hover { background: var(--lgp-ink-6); color: var(--text-strong); }
  .lgp-add:not([aria-disabled="true"]):hover { border-color: var(--gray-400); color: var(--text-strong); }
  /* (a logo's ⋯ comes up on its row's hover or focus, and stays while its menu is open; touch always shows it) */
  .lgp-more { opacity: 0; transition: opacity var(--dur-fast) ease, background-color var(--dur-fast) ease, color var(--dur-fast) ease; }
  .lgp-row:hover .lgp-more, .lgp-row:focus-within .lgp-more, .lgp-more[aria-expanded="true"] { opacity: 1; }
}
/* a row with nothing to do on it (the client can't change this logo) doesn't look clickable */
div.lgp-main, span.lgp-main { cursor: default; }

/* ---- an uploaded site's reviews and FAQs (customReviewsPanel, customFaqPanel): the Logos panel's rows, each a
   dropdown. A closed row is one toggle (a review's name, small stars and one line of it, or the question on one line,
   and the chevron) beside its handle. The open row is one lifted card (--surface, a hairline, --shadow-xs): its head
   (a review's name or the question, a filled box between the handle and the chevron), then its body, which unfolds
   (grid rows 0fr → 1fr and a fade): labelled rows (a 64px label, a filled 30px control), the review's or answer's words
   (a box that grows with them, and can be drawn taller), and Remove · Done ------------------------------------------ */
/* (every row carries the open card's 1px edge, so opening one never nudges its words: 42px inside, 44px in all) */
.rvp .lgp-row, .rvp .lgp-row.sortable-row { padding: 0 var(--space-1); border: 1px solid transparent; }
.rvp .lgp-row.is-ro { padding: 0 var(--space-2-5); }
.rvp .lgp-line { grid-template-columns: 20px minmax(0, 1fr); min-height: 42px; }
.rvp .lgp-row.is-open > .lgp-line { grid-template-columns: 20px minmax(0, 1fr) 28px; }
.rvp button.lgp-main { display: grid; grid-template-columns: minmax(0, 1fr) 28px; column-gap: var(--space-1); min-height: 42px; }
/* (each part in its own cell, so the saving spinner laid over the chevron's never moves the toggle) */
.rvp .lgp-line > .lgp-grip { grid-column: 1; grid-row: 1; }
.rvp .lgp-line > .lgp-main { grid-column: 2; grid-row: 1; }
.rvp-main { display: flex; flex-direction: column; gap: var(--space-0-5); min-width: 0; }
.rvp-l1 { display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
.rvp-ex { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--text-xs); line-height: 16px; color: var(--text-muted); }
.rvp-ex:empty { display: none; }
.rvp-hid { flex: none; font-size: var(--text-xs); color: var(--text-muted); }   /* (a hidden row's tag and words: AA on every row fill) */
/* (the board's strip: a star every 12px, each about 9px: the icon's star fills 3/4 of its box, so 12px boxes, no gap) */
.rvp-stars { display: inline-flex; flex: none; gap: 0; }
.rvp-stars span { display: inline-flex; }
.rvp-stars svg { width: 12px; height: 12px; fill: currentColor; stroke: none; }
.rvp-stars .on { color: var(--warning-600); }
.rvp-stars .off { color: var(--gray-300); }
/* the open row (and the Add card): lifted off the list, on the panel's white so its grey fields show their edges */
.rvp .lgp-row.is-open, .rvp .lgp-addrow.is-open { border-color: var(--border); border-radius: calc(var(--radius-md) + var(--space-0-5)); background: var(--surface); box-shadow: var(--shadow-xs); }
.rvp .lgp-row.is-open > .lgp-line > .lgp-grip { height: 32px; }
.rvp-namebox { display: block; min-width: 0; }
/* (a question's head: the handle and the chevron sit on its first line, however many lines it wraps to; no floor of its
   own, so the answer sits 8px under a one-line question, as on the board) */
.fqp .lgp-row.is-open > .lgp-line { align-items: start; padding-top: 5px; min-height: 0; }
.fqp .lgp-row.is-open > .lgp-line > .lgp-chev { margin-top: var(--space-0-5); }
.lgp-chev-slot { width: 28px; }
/* the body: one grid row that unfolds; its inside clipped only while it does (a focused field's halo fits its padding) */
.rvp-edit { display: grid; grid-template-rows: 1fr; }
.rvp-clip { min-height: 0; min-width: 0; }
.rvp-body { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; padding: var(--space-1) var(--space-1) var(--space-2); container-type: inline-size; }
.fqp .rvp-body { padding-top: var(--space-2); }
.rvp-props { display: flex; flex-direction: column; gap: var(--space-1); }
.rvp-prop { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; column-gap: var(--space-2); min-height: 32px; }
/* (three sources or more, or a column too narrow for a label beside its control: the label above, the control the
   column's full width) */
.rvp-prop--stack { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-1); }
@container (max-width: 159px) { .rvp-prop { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-1); } }
@container (max-width: 199px) { .rvp-prop:has(> .rvp-src) { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-1); } }
/* the filled fields: --gray-100 (a step darker on hover), white with a quiet ring and a soft halo while focused */
.rvp-edit .input, .rvp-row .rvp-name, .rvp-row .fqp-q { border: 0; border-radius: var(--radius-md); background: var(--gray-100); box-shadow: none; font-size: var(--text-sm); color: var(--text-strong); outline: none; transition: background-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease; }
.rvp-edit .input { height: 30px; padding: 0 var(--space-2-5); }
.rvp-edit .input:focus, .rvp-row .rvp-name:focus, .rvp-row .fqp-q:focus { background: var(--surface); box-shadow: 0 0 0 1px var(--gray-400), 0 0 0 4px var(--lgp-ink-6); outline: none; }
/* (placeholders in --text-muted: --text-soft is 4.4:1 on the fields' grey; the board's own is darker for the same reason) */
.rvp-edit .input::placeholder, .rvp-row .rvp-name::placeholder, .rvp-row .fqp-q::placeholder { color: var(--text-muted); opacity: 1; }
/* the open review's name, in the card's head: 32px, semibold */
.rvp-row .rvp-name { display: block; width: 100%; height: 32px; padding: 0 var(--space-2-5); font-weight: var(--fw-semibold); }
.rvp-row .rvp-name::placeholder, .rvp-row .fqp-q::placeholder { font-weight: var(--fw-regular); }
/* (the words grow with them — the panel sizes the box to its words — so a review shows whole: no scroll inside it; the
   box can still be drawn taller) */
.rvp-edit .rvp-text { display: block; height: auto; min-height: 76px; padding: var(--space-2) var(--space-2-5); resize: vertical; overflow-y: auto; line-height: 20px; }
/* a question being edited: its own words, semibold, one filled box that wraps and grows */
.rvp-row .fqp-q { display: block; width: 100%; height: auto; min-height: 32px; padding: var(--space-1-5) var(--space-2-5); font-weight: var(--fw-semibold); line-height: 20px; resize: none; overflow: hidden; }
/* a save that didn't go in: the box a pale red with a red edge, one 12px line under it */
.rvp-field { display: flex; flex-direction: column; gap: var(--space-1-5); min-width: 0; }
.rvp-edit .input[aria-invalid="true"], .rvp-row .fqp-q[aria-invalid="true"] { background: color-mix(in srgb, var(--danger-bg) 55%, var(--surface)); box-shadow: inset 0 0 0 1px var(--danger-300); }
.rvp-edit .input[aria-invalid="true"]:focus, .rvp-row .fqp-q[aria-invalid="true"]:focus { background: var(--surface); box-shadow: 0 0 0 1px var(--danger-300), 0 0 0 4px color-mix(in srgb, var(--danger-bg) 70%, transparent); }
.rvp-err { display: flex; align-items: center; gap: var(--space-1-5); margin: 0; font-size: var(--text-xs); line-height: 16px; color: var(--danger-700); }
.rvp-err svg { flex: none; width: 12px; height: 12px; }
/* a card a refresh locked while it held changes (a re-check, the list turned off): its boxes read only, their words
   kept to read and copy (muted, no hover step, the keyboard's ring still shows), the one quiet lock line under the words,
   Cancel the way out */
.rvp-edit .input[readonly], .rvp-row .rvp-name[readonly], .rvp-row .fqp-q[readonly] { color: var(--text-muted); cursor: default; }
.rvp-edit .input[readonly]:focus, .rvp-row .rvp-name[readonly]:focus, .rvp-row .fqp-q[readonly]:focus { background: var(--gray-100); }
.rvp-field > .rvp-lock { min-height: 0; margin: 0; padding: 0; }
.rvp-row.is-locked .rvp-pic-pick[aria-disabled="true"] { cursor: default; }
/* the reviewer's photo: a filled pill (the picture, "Image", × to clear it); with none, a plus and "Add image" */
.rvp-pic { display: flex; align-items: center; gap: var(--space-1); min-width: 0; height: 30px; padding: 0 var(--space-1) 0 5px; border-radius: var(--radius-md); background: var(--gray-100); transition: background-color var(--dur-fast) ease; }
.rvp-pic:not(.has-pic) { padding-right: var(--space-2-5); }
.rvp-pic-pick { display: flex; align-items: center; gap: var(--space-2); flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; border-radius: var(--radius-xs); background: none; color: var(--text-strong); font: inherit; font-size: var(--text-sm); text-align: left; cursor: pointer; }
.rvp-pic-pick[aria-disabled="true"] { cursor: progress; }
.rvp-pic-thumb { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; overflow: hidden; border-radius: var(--radius-full); background: var(--gray-200); color: var(--gray-500); }
.rvp-pic-thumb img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.rvp-pic-thumb > svg { width: 14px; height: 14px; }
.rvp-pic-thumb.is-add { color: var(--text-soft); }
.rvp-pic-thumb.is-add > svg { width: 12px; height: 12px; }
.rvp-pic-thumb .spinner { width: 12px; height: 12px; border-width: 1.5px; }
.rvp-pic-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rvp-pic:not(.has-pic) .rvp-pic-name { color: var(--text-muted); }   /* (--text-soft is 4.4:1 on the pill's grey) */
.rvp-pic .rvp-pic-x { width: 22px; height: 22px; border-radius: var(--radius-xs); }
.rvp-pic .rvp-pic-x svg { width: 12px; height: 12px; }
/* Posted on: the shared segmented control filling its column, its choices sharing it (each at least its whole name:
   they wrap to another row rather than cut one short), its track the fields' grey */
.rvp-src { display: flex; flex-wrap: wrap; gap: 0; width: 100%; max-width: 100%; min-height: 30px; padding: 2px; border-radius: var(--radius-md); background: var(--gray-100); }
.rvp-src button { display: block; flex: 1 1 0; min-width: max-content; height: 26px; padding: 0 var(--space-1-5); white-space: nowrap; text-align: center; line-height: 24px; font-size: var(--text-xs); font-weight: var(--fw-medium); }
.rvp-src button:not(.active) { color: var(--text-muted); }   /* (--text-soft is 4.4:1 on --gray-100) */
.rvp-src button:disabled { cursor: not-allowed; opacity: .5; }
/* Remove (danger), Cancel (quiet): 30px words with room for a pale fill on hover; Done the ink button, 30px */
.rvp-link { height: 30px; padding: 0 var(--space-2); border: 0; border-radius: var(--radius-md); background: none; font: inherit; font-size: var(--text-sm); font-weight: var(--fw-medium); color: var(--text-muted); cursor: pointer; transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease; }
.rvp-remove { color: var(--danger-700); }
.lgp-done.btn { height: 30px; padding: 0 var(--space-3-5); font-size: var(--text-sm); }
/* a special answer, shown as it reads: a table as a plain two-column table, else its words; one line says why */
.fqp-fixed { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.fqp-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); line-height: 20px; color: var(--text-muted); }
.fqp-table th, .fqp-table td { padding: var(--space-1-5) 0; border-bottom: 1px solid var(--border-faint); vertical-align: top; overflow-wrap: anywhere; }
.fqp-table th { padding-right: var(--space-2-5); text-align: left; font-weight: var(--fw-regular); }
.fqp-table td { text-align: right; }
.fqp-table tr:last-child > * { border-bottom: 0; }
.fqp-fixed-text { margin: 0; font-size: var(--text-sm); line-height: 20px; color: var(--text-muted); white-space: pre-line; overflow-wrap: anywhere; }
.fqp-fixed .fqp-why { min-height: 0; margin: 0; padding: 0; }
@media (hover: hover) and (pointer: fine) {
  .rvp-remove:hover { background: var(--danger-bg); }
  .rvp-cancel:hover { background: var(--lgp-ink-6); color: var(--text-strong); }
  .lgp .lgp-done:not(:disabled):hover { background: var(--primary-500); border-color: var(--primary-500); }
  .rvp-src button:not(.active):not(:disabled):hover { color: var(--text-strong); }
  .rvp-pic:has(.rvp-pic-pick:not([aria-disabled="true"]):hover) { background: var(--gray-150); }
  .rvp-edit .input:not(:focus):not(:disabled):not([readonly]):not([aria-invalid="true"]):hover, .rvp-row .rvp-name:not(:focus):not(:disabled):not([readonly]):hover, .rvp-row .fqp-q:not(:focus):not(:disabled):not([readonly]):not([aria-invalid="true"]):hover { background: var(--gray-150); box-shadow: none; }
}
/* touch: the fields, the photo pill, the sources, Remove and Done reach the coarse-pointer floor (the open card's
   chevron column grows with its button) */
@media (pointer: coarse) {
  .rvp .lgp-line { grid-template-columns: 20px minmax(0, 1fr); }
  .rvp .lgp-row.is-open > .lgp-line { grid-template-columns: 20px minmax(0, 1fr) 38px; min-height: 48px; }
  .lgp-chev-slot { width: 38px; }
  .rvp button.lgp-chev { width: 38px; height: 38px; }
  .rvp .lgp-row.is-open > .lgp-line > .lgp-grip { height: 40px; }
  .rvp-row .rvp-name { height: 40px; }
  /* (the question's box reaches the 40px floor its fields do; the handle and the chevron stay on its first line) */
  .rvp-row .fqp-q { min-height: 40px; padding-block: var(--space-2-5); }
  .fqp .lgp-row.is-open > .lgp-line > .lgp-chev { margin-top: 1px; }
  .rvp-edit .input:not(textarea) { height: 40px; }
  .rvp-pic { height: 40px; padding-right: var(--space-0-5); }
  .rvp-pic:not(.has-pic) { padding-right: var(--space-2-5); }
  .rvp-pic .rvp-pic-x { width: 34px; height: 34px; }
  .rvp-src { min-height: 40px; }
  .rvp-src button { height: 36px; line-height: 34px; }
  .rvp-link { min-height: 38px; }
  .lgp-done.btn { height: 40px; }
}

/* ---- the open card's motion: the body unfolds (grid rows 0fr → 1fr and a fade), the card lifts (its fill, edge and
   shadow), the chevron turns; a row just closed folds its old body away (an inert copy, .is-ghost). The panel repaints
   whole, so each is timed from when it began (--lgp-t, a negative delay written by the panel) ---- */
@keyframes lgp-rows-open { from { grid-template-rows: 0fr; } to { grid-template-rows: 1fr; } }
@keyframes lgp-rows-close { from { grid-template-rows: 1fr; } to { grid-template-rows: 0fr; } }
@keyframes lgp-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes lgp-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes lgp-lift { from { background-color: var(--lgp-row); border-color: transparent; box-shadow: none; } }
@keyframes lgp-settle { from { background-color: var(--surface); border-color: var(--border); box-shadow: var(--shadow-xs); } }
@keyframes lgp-chev-up { from { transform: rotate(0deg); } to { transform: rotate(180deg); } }
@keyframes lgp-chev-down { from { transform: rotate(180deg); } to { transform: rotate(0deg); } }
.lgp-row.is-opening { animation: lgp-lift var(--dur) ease var(--lgp-t, 0ms) both; }
.lgp-row.is-opening > .rvp-edit { animation: lgp-rows-open var(--dur-slow) var(--lgp-ease) var(--lgp-t, 0ms) both, lgp-fade-in var(--dur) ease var(--lgp-t, 0ms) both; }
.lgp-row.is-opening .lgp-chev svg { animation: lgp-chev-up var(--dur-slow) var(--lgp-ease) var(--lgp-t, 0ms) both; }
.lgp-row.is-closing { animation: lgp-settle var(--dur) ease var(--lgp-t, 0ms) both; }
.lgp-row.is-closing > .rvp-edit { animation: lgp-rows-close var(--dur-slow) var(--lgp-ease) var(--lgp-t, 0ms) both, lgp-fade-out var(--dur) ease var(--lgp-t, 0ms) both; }
.lgp-row.is-closing .lgp-chev svg { animation: lgp-chev-down var(--dur-slow) var(--lgp-ease) var(--lgp-t, 0ms) both; }
.lgp-row.is-opening > .rvp-edit > .rvp-clip, .lgp-row.is-closing > .rvp-edit > .rvp-clip { overflow: hidden; }
.rvp-edit.is-ghost { pointer-events: none; }
/* reduced motion: nothing folds, fades, turns or glides (the drag's FLIP is written inline: !important); the spinners
   turn slowly */
@media (prefers-reduced-motion: reduce) {
  .lgp, .lgp *:not(.spinner) { transition: none !important; animation: none !important; }
  .lgp-row.is-closing > .rvp-edit.is-ghost { display: none; }
  .lgp .spinner { animation-duration: 3s; }
}

/* (a reviews, FAQ or logo list in the portal's Content tab: the panel's list at a readable width, its rows flush with
   the tabs above; no panel head) */
.ccol-reviews--page, .ccol-logos--page { max-width: 560px; }
.ccol-reviews--page .lgp-head, .ccol-logos--page .lgp-head { display: none; }
.ccol-reviews--page .lgp-body, .ccol-logos--page .lgp-body { padding: 0; }

/* a section this view doesn't edit (reviews, questions or logos with no editor here): where it is edited, one line */
.ccol-onpage { margin: 0; padding: var(--space-3) 0; font-size: var(--text-sm); color: var(--text-muted); }

/* ---- the declared engine's lists (customItemsPanel: team, cards, items): the Reviews panel's rows, a photo first ---- */
.itp-line { display: flex; align-items: center; gap: var(--space-2-5); min-width: 0; }
.itp-thumb { flex: none; display: inline-flex; align-items: center; justify-content: center; width: var(--control-sm); height: var(--control-sm); overflow: hidden; border-radius: var(--radius-sm); background: var(--gray-100); color: var(--text-soft); }
.itp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.itp-thumb svg { width: 14px; height: 14px; }
.itp-field .input { width: 100%; }
.itp-sub { margin-top: var(--space-1); }
.itp-acts { flex-wrap: wrap; gap: var(--space-1); }
.itp-hide { margin-right: auto; color: var(--text-muted); }

/* The page table uses schema labels; the compact editor lists keep their existing rows. */
.ccol-table--cms .ccol-thead { gap: var(--space-3); padding-right: calc(var(--space-2) + var(--space-2)); }
.ccol-table--cms .ccol-th-name { flex: 1; }
.ccol-table--cms .ccol-open .ccol-text { flex: 1; }
.ccol-table--cms .ccol-cell { flex: 0 1 24%; width: 24%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--text-sm); color: var(--text-muted); }
.ccol-table--cms .ccol-thead .ccol-cell { font-size: var(--text-xs); color: var(--text-soft); }
.ccol-table--cms .ccol-th-status { text-align: right; }
.ccol-table--cms .ccol-thead > .ccol-chev { width: var(--ccol-chev); }   /* (the rows' chevron's room: without it every label after the first sat 16px right of its column) */
.ccol-table--cms .ccol-shown { color: var(--text-muted); font-size: var(--text-sm); }
.ccol-table--cms.has-columns .ccol-sub { display: none; }
.ccol--page .ccol-head-text { flex-basis: 200px; }
.ccol--page .ccol-head-acts { flex-wrap: wrap; max-width: 100%; }
.ccol--page .ccol-search { min-width: 160px; width: 200px; }
@container (max-width: 1100px) {
  .ccol-table--cms .ccol-cell--2 { display: none; }
}
@container (max-width: 560px) {
  .ccol-table--cms .ccol-cell { display: none; }
  .ccol-table--cms.has-columns .ccol-sub { display: block; }
  .ccol--page .ccol-head-acts { width: 100%; }
  .ccol--page .ccol-search { flex: 1; width: auto; }
}

/* ---- drafts: a list's new items kept unfinished (customCollections draftRowHTML; their pill the shared .tone-pill
   is-warn). A draft has no place in the order: no grip, the grip's room kept by an unseen twin of it (.ccol-grip-room:
   the grip's own size at every width and pointer) so its thumbnail lines up with the items'; its ⋯ (24px) where the
   items' chevron and its gap are, so the Visibility column keeps one edge. A phone's rows have no chevron: the ⋯ goes
   too (the sheet has Delete draft and Add, as an item's sheet has its ⋯). ---- */
.ccol-head-drafts { font-size: var(--text-sm); color: var(--text-soft); }
.ccol-rail-drafts { flex: none; font-size: var(--text-xs); color: var(--text-soft); white-space: nowrap; }
.ccol-list > .ccol-row--draft .ccol-grip-room { flex: none; visibility: hidden; pointer-events: none; }
/* (its row button is the items' to the pixel: the chevron's room kept by an unseen twin (the items' columns are shares of
   that button's width, so 28px less put each one 7px to 13px right of its heading), and its ⋯ sits over that room, out of
   the row's flow) */
.ccol-list > .ccol-row--draft { position: relative; }
.ccol-row--draft .ccol-chev-room { width: var(--ccol-chev); height: var(--ccol-chev); visibility: hidden; }
.ccol-row--draft .ccol-row-more { position: absolute; top: 0; bottom: 0; right: calc(var(--space-2) + var(--space-2) + var(--ccol-chev) / 2); margin-block: auto; translate: 50% 0; }
@media (max-width: 640px) { .ccol-row--draft .ccol-row-more { display: none; } }
.ccol-draft-state { flex: none; margin-left: auto; font-size: var(--text-xs); color: var(--text-soft); white-space: nowrap; }
.ccol-draft-state:empty { display: none; }
.ccol-draft-state.is-failed { color: var(--warning-700); }
.ccol-draft-state + .ccol-full { margin-left: 0; }
@media (max-width: 640px) { .ccol-draft-state ~ .ccol-full + .ccol-head-more { margin-left: 0; } }
