/* GENERATED by scripts/guide-ui.js from public/demo/studio-client.js — inlay 0.8.17.
   Do not edit: re-run the script. Overrides that fit the editor into an
   example frame live in guide.css, not here. */

:root {
  /* Studio demo palette (StudioDemo.tsx → StudioStyles). */
  --cdd-accent: #375de7;
  --cdd-accent-ink: #ffffff;
  --cdd-accent-hover: #5a7cf0;
  --cdd-editing: #375de7;
  --cdd-affordance: rgba(55, 93, 231, 0.7);
  --cdd-affordance-strong: rgba(55, 93, 231, 1);
  /* The dashed edit affordances are drawn INSIDE the element (negative offset),
     not floating outside it. An outset outline sitting in the margin gets clipped
     the moment the element is flush inside an ancestor with overflow:hidden — a
     card, a rounded hero, our own crop frame — so the affordance would silently
     vanish exactly where sites clip. Inset draws within the element's own box,
     which is always within any ancestor's clip, so it can't be cut off. It also
     keeps the affordance at the element's own paint depth, so a nav with a real
     stacking context still layers above it. */
  --cdd-affordance-offset: -2px;
  /* Collection regions get their own color. Everything else Inlay outlines is
     edited in place; a CMS region isn't — it's rendered from a collection, and
     the way to change it is the Content panel. A different color says that
     before the editor clicks, instead of after. */
  --cdd-cms-affordance: rgba(167, 118, 217, 0.7);
  --cdd-cms-affordance-strong: rgba(167, 118, 217, 1);
  --cdd-unsaved: #ffd86b;
  --cdd-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* Springs overshoot (that trailing 1.2) — the bounce. Right for something
     arriving, wrong for something rearranging itself under the reader's eye. */
  --cdd-spring: cubic-bezier(0.2, 0.9, 0.3, 1.2);
  --cdd-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --cdd-fill: rgba(255, 255, 255, 0.06);
  --cdd-fill-hover: rgba(255, 255, 255, 0.12);
  --cdd-stroke: rgba(255, 255, 255, 0.16);
  --cdd-stroke-soft: rgba(255, 255, 255, 0.1);
  --cdd-bg-strong: #1c1d22;
  --cdd-bg: rgba(26, 27, 31, 0.97);
  --cdd-bg-elev: rgba(44, 44, 48, 0.96);
  --cdd-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  --cdd-fg: #f4f5f7;
  --cdd-fg-2: #c7cad1;
  --cdd-fg-3: #8b909b;
  --cdd-ok: #30d158;
  --cdd-warn: #ffd60a;
  --cdd-danger: #ff453a;
}

/* Studio's corner affordances (the pencil badge, the collection badge, the
   move pill) are absolutely positioned, so the element they sit on has to be a
   containing block. This class is added from JS, and ONLY to an element the
   site left statically positioned: reassigning position on an element the site
   positioned itself takes it out of the layout it was written for — a fixed
   skip link drops back into flow and pushes the whole page down, an
   absolutely-placed slide lands in the middle of its carousel. An element that
   is already positioned needs nothing from us; it is a containing block
   already. */
.cdd-anchor { position: relative; }

/* ── Inline-edit affordance ─────────────────────────────────────── */
.ui.cdd-edit [data-studio-block] {
  cursor: text;
  border-radius: 4px;
  outline: 2px dashed transparent;
  outline-color: var(--cdd-affordance);
  outline-offset: var(--cdd-affordance-offset);
  transition: outline-color 160ms ease;
}
.ui.cdd-edit [data-studio-block]:hover { outline-color: var(--cdd-affordance-strong); }
.ui.cdd-edit [data-studio-block]:focus { outline: 2px solid var(--cdd-editing); }
.ui.cdd-preview [data-studio-block] { outline: none !important; cursor: default; }

/* Auto-discovered text. A hand-marked block advertises itself at rest (a
   developer chose it deliberately, and there are a handful per page); auto text
   is now nearly every element on the page, so a resting outline on each one
   would be a wall of dashes. Same affordance, revealed on hover instead. */
.ui.cdd-edit .cdd-autotext {
  cursor: text;
  border-radius: 4px;
  outline: 2px dashed transparent;
  outline-offset: var(--cdd-affordance-offset);
  transition: outline-color 160ms ease;
}
.ui.cdd-edit .cdd-autotext:hover { outline-color: var(--cdd-affordance); }
.ui.cdd-edit .cdd-autotext:focus { outline: 2px solid var(--cdd-editing); }
.ui.cdd-preview .cdd-autotext { outline: none !important; cursor: default; }

/* Collection regions (data-studio-cms="collection"). Nothing inside is
   inline-editable, so the region is one unit: its bare space and its corner
   badge open the Content panel on the collection it came from. Outlined at rest
   — a CMS region is a structural fact about the page worth seeing at a glance,
   and there are a handful per page, not hundreds like auto text. */
.ui.cdd-edit .cdd-cms {
  border-radius: 6px;
  outline: 2px dashed var(--cdd-cms-affordance);
  outline-offset: var(--cdd-affordance-offset);
  transition: outline-color 160ms ease;
}
.ui.cdd-edit .cdd-cms:hover { outline-color: var(--cdd-cms-affordance-strong); }
.ui.cdd-preview .cdd-cms, .ui.cdd-commenting .cdd-cms { outline: none !important; }
/* The badge, not the region, is the click target that always works: a region is
   often links corner to corner, and those links have to keep behaving like
   links. Named, because knowing WHICH collection is half the answer. */
.cdd-cms-open {
  position: absolute; top: 8px; right: 8px; z-index: 7;
  display: none; align-items: center; gap: 5px; max-width: calc(100% - 16px);
  padding: 4px 10px 4px 8px; border-radius: 999px;
  background: var(--cdd-bg-strong); border: 1px solid var(--cdd-cms-affordance);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  font: 600 11px var(--cdd-font); color: var(--cdd-fg-2); line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  cursor: pointer; opacity: 0; transition: opacity 160ms ease, color 140ms ease, border-color 140ms ease;
}
.ui.cdd-edit .cdd-cms > .cdd-cms-open { display: inline-flex; }
.ui.cdd-edit .cdd-cms:hover > .cdd-cms-open,
.ui.cdd-edit .cdd-cms > .cdd-cms-open:focus-visible { opacity: 1; }

/* Entry regions (data-studio-cms + data-studio-entry): the post on its own
   page. The region keeps the collection outline; the fields inside it edit in
   place and wear the same purple, dashed, so they read as "this is the entry"
   rather than as page copy. The pill is the entry's status and its Publish —
   always visible in edit mode, unlike the collection badge, because it is the
   one control an editor must be able to find. */
.ui.cdd-edit .cdd-entry-field {
  outline: 2px dashed var(--cdd-cms-affordance); outline-offset: var(--cdd-affordance-offset);
  border-radius: 4px; cursor: text; transition: outline-color 160ms ease;
}
.ui.cdd-edit .cdd-entry-field:hover, .ui.cdd-edit .cdd-entry-field:focus { outline-color: var(--cdd-cms-affordance-strong); outline-style: solid; }
.ui.cdd-edit .cdd-entry-image { cursor: pointer; }
.ui.cdd-preview .cdd-entry-field, .ui.cdd-commenting .cdd-entry-field { outline: none !important; cursor: inherit; }
.cdd-entry-pill {
  position: absolute; top: 8px; right: 8px; z-index: 7;
  display: none; align-items: center; gap: 8px; max-width: calc(100% - 16px);
  padding: 4px 4px 4px 12px; border-radius: 999px;
  background: var(--cdd-bg-strong); border: 1px solid var(--cdd-cms-affordance);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  font: 600 11px var(--cdd-font); color: var(--cdd-fg-2); line-height: 1.4; white-space: nowrap;
}
.ui.cdd-edit .cdd-entry-pill { display: inline-flex; }
/* An entry region is usually also a page section, whose move pill sits in the
   same corner — the entry pill steps left of it. */
.ui.cdd-edit .cdd-section > .cdd-entry-pill { right: 52px; }
.ui.cdd-preview .cdd-entry-pill, .ui.cdd-commenting .cdd-entry-pill { display: none !important; }
.cdd-entry-status { display: inline-flex; align-items: center; gap: 6px; color: var(--cdd-fg); }
.cdd-entry-dot { width: 7px; height: 7px; border-radius: 50%; background: #8d8d8d; }
.cdd-entry-dot.cdd-live { background: #3ddc84; }
.cdd-entry-dot.cdd-edited, .cdd-entry-dot.cdd-scheduled { background: var(--cdd-warn, #ffd86b); }
.cdd-entry-pill .cdd-btn.cdd-sm { padding: 4px 10px; font-size: 11px; }
.cdd-entry-pill .cdd-btn.cdd-icon-only { padding: 4px 6px; }
.cdd-entry-pill .cdd-btn .cdd-icon { width: 13px; height: 13px; }
.cdd-cms-open:hover { color: var(--cdd-fg); border-color: var(--cdd-cms-affordance-strong); }
.cdd-cms-open .cdd-icon { width: 12px; height: 12px; flex: none; }
.ui.cdd-preview .cdd-cms-open, .ui.cdd-commenting .cdd-cms-open { display: none !important; }

/* Unpublished-change orb — a real, clickable dot floated at the element's left
   edge. Click it for a timestamp + a reset-to-published action. */
.cdd-orb {
  position: fixed; z-index: 2147483005; width: 13px; height: 13px; padding: 0;
  border-radius: 50%; border: 2px solid var(--cdd-bg-strong); background: var(--cdd-warn);
  box-shadow: 0 0 0 3px rgba(255, 214, 10, 0.22), 0 1px 3px rgba(0, 0, 0, 0.3);
  cursor: pointer; transform: translate(-50%, -50%); transition: transform 120ms ease;
}
.cdd-orb:hover { transform: translate(-50%, -50%) scale(1.25); }
.ui.cdd-preview .cdd-orb, .ui.cdd-commenting .cdd-orb,
.ui.cdd-preview .cdd-orb-pop, .ui.cdd-commenting .cdd-orb-pop { display: none !important; }
.cdd-orb-pop {
  position: fixed; z-index: 2147483006; width: 216px; padding: 13px 14px;
  background: var(--cdd-bg); border: 1px solid var(--cdd-stroke); border-radius: 12px;
  box-shadow: var(--cdd-shadow); font-family: var(--cdd-font); color: var(--cdd-fg);
  animation: cdd-card-in 140ms ease both;
}
.cdd-orb-pop-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.cdd-orb-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--cdd-warn); box-shadow: 0 0 0 3px rgba(255, 214, 10, 0.22); }
.cdd-orb-time { font-size: 12px; color: var(--cdd-fg-3); margin: 6px 0 12px; }
.cdd-orb-actions { display: flex; align-items: center; gap: 8px; }

/* Editable images + links */
.ui.cdd-edit [data-studio-image] {
  cursor: pointer;
  outline: 2px dashed var(--cdd-affordance); outline-offset: var(--cdd-affordance-offset); border-radius: 4px;
  transition: outline-color 160ms ease, filter 160ms ease;
}
.ui.cdd-edit [data-studio-image]:hover { outline-color: var(--cdd-affordance-strong); filter: brightness(1.04); }
.ui.cdd-preview [data-studio-image] { outline: none !important; cursor: default; }
.ui.cdd-edit [data-studio-image] .cdd-photo-hint {
  position: absolute; top: 8px; right: 8px; z-index: 3; display: inline-flex; align-items: center; gap: 4px;
  font: 600 11px var(--cdd-font); color: #fff; background: rgba(12,14,18,.72);
  padding: 4px 8px; border-radius: 999px; pointer-events: none;
}
.ui.cdd-edit [data-studio-image] .cdd-photo-hint svg { width: 12px; height: 12px; }
.ui.cdd-preview [data-studio-image] .cdd-photo-hint { display: none; }

/* Reposition handle — grab it and the photo slides behind its frame. Fixed
   rather than a child of the image: <img> is a void element and never renders
   children, so it's anchored to the image's rect (like the orb) instead. Always
   on in edit mode, per the ask — you shouldn't have to hunt for it. */
.cdd-photo-move {
  /* Pinned above the page by default so a sticky nav doesn't cover the handle.
     But an image scrolled UNDER that nav then floats its handle over the header,
     so a site with fixed chrome can lower this one variable to sit the handle
     beneath it — e.g. .ui.cdd-edit .cdd-photo-move { --cdd-photo-move-z: 39 } */
  --cdd-photo-move-z: 2147483004;
  /* The positioner moves this with the translate property, so the origin stays
     pinned here and only a compositor property changes as the page scrolls.
     Note the hover/drag feedback uses the standalone scale property rather than
     a transform: a combined transform would carry the position too, and
     transitioning it would ease the handle toward every new scroll position —
     turning the transition into exactly the lag it is meant to smooth. */
  position: fixed; top: 0; left: 0;
  z-index: var(--cdd-photo-move-z); display: none; place-items: center;
  width: 30px; height: 30px; padding: 0; border-radius: 9px;
  background: rgba(12, 14, 18, 0.72); color: #fff; border: 1px solid var(--cdd-stroke-soft);
  cursor: grab; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.32);
  transition: background 140ms ease, scale 120ms ease;
}
.ui.cdd-edit .cdd-photo-move { display: grid; }
.cdd-photo-move:hover { background: var(--cdd-accent); scale: 1.06; }
.cdd-photo-move:focus-visible { outline: 2px solid var(--cdd-accent); outline-offset: 2px; }
.cdd-photo-move.cdd-dragging { cursor: grabbing; background: var(--cdd-accent); scale: 1.06; }
.cdd-photo-move .cdd-icon { width: 15px; height: 15px; }
.ui.cdd-preview .cdd-photo-move, .ui.cdd-commenting .cdd-photo-move { display: none !important; }
/* While dragging, stop the page from selecting text or the image fighting the
   pointer — the whole cursor is committed to the drag. */
.ui.cdd-repositioning { user-select: none; }
.ui.cdd-repositioning * { cursor: grabbing !important; }

/* Editable links/buttons: the whole element stays natively clickable (navigate
   normally). A corner pencil badge — shown only in edit mode — is the edit
   affordance. Works for both explicit data-studio-link and auto-discovered
   links/buttons (both get .cdd-linkable). */
.ui.cdd-edit .cdd-linkable:hover { outline: 1.5px dashed var(--cdd-affordance); outline-offset: var(--cdd-affordance-offset); border-radius: 5px; }
.cdd-edit-badge {
  position: absolute; top: -10px; right: -10px; z-index: 6;
  width: 22px; height: 22px; border-radius: 50%; padding: 0;
  background: var(--cdd-accent); color: #fff; border: 2px solid var(--cdd-bg-strong);
  display: none; place-items: center; cursor: pointer; box-shadow: 0 2px 7px rgba(0,0,0,.35);
  opacity: 0.85; transition: opacity 120ms ease, transform 120ms ease;
}
.ui.cdd-edit .cdd-edit-badge { display: grid; }
.cdd-edit-badge:hover { opacity: 1; transform: scale(1.12); }
.cdd-edit-badge svg { width: 12px; height: 12px; }
.ui.cdd-commenting .cdd-edit-badge { display: none !important; }

/* ── Section reordering ─────────────────────────────────────────── */
/* A vertical up/down pill pinned to each movable section's top-right corner.
   Only in edit mode, and only once you're on the section — quiet until wanted. */
.ui.cdd-edit .cdd-section { outline: 2px dashed transparent; outline-offset: var(--cdd-affordance-offset); border-radius: 6px; transition: outline-color 160ms ease; }
.ui.cdd-edit .cdd-section:hover { outline-color: rgba(55, 93, 231, 0.35); }
.cdd-secmove {
  position: absolute; top: 10px; right: 10px; z-index: 7;
  display: none; flex-direction: column; gap: 2px; padding: 3px;
  border-radius: 11px; background: var(--cdd-bg-strong); border: 1px solid var(--cdd-stroke);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3); font-family: var(--cdd-font);
  opacity: 0; transition: opacity 160ms ease;
}
.ui.cdd-edit .cdd-section > .cdd-secmove { display: flex; }
.ui.cdd-edit .cdd-section:hover > .cdd-secmove,
.ui.cdd-edit .cdd-section > .cdd-secmove:focus-within { opacity: 1; }
.ui.cdd-preview .cdd-secmove, .ui.cdd-commenting .cdd-secmove { display: none !important; }
.cdd-secmove-btn {
  display: grid; place-items: center; width: 26px; height: 24px; padding: 0;
  border: 0; border-radius: 8px; background: transparent; color: var(--cdd-fg-2);
  cursor: pointer; transition: background 140ms ease, color 140ms ease;
}
.cdd-secmove-btn:hover:not([disabled]) { background: var(--cdd-fill-hover); color: var(--cdd-fg); }
.cdd-secmove-btn[disabled] { opacity: 0.3; cursor: default; }
.cdd-secmove-btn .cdd-icon { width: 14px; height: 14px; }
.cdd-secmove-eye { border-top: 1px solid var(--cdd-stroke); border-radius: 0 0 8px 8px; margin-top: 2px; padding-top: 2px; height: 26px; }
.cdd-secmove-eye[aria-pressed='true'] { color: var(--cdd-warn, #ffd86b); }

/* A section an editor has hidden from visitors. While editing it stays on the
   page under a hatched veil with a label, so it can be found and shown again
   (the content beneath is still editable — the veil takes no pointer events).
   In preview, and for visitors, it isn't rendered at all: that's an inline
   display:none set by the script, because a visitor loads no editor stylesheet
   and the site's own display rule would beat a class here anyway. The veil is
   a neutral gray so it reads the same on a light site and a dark one. */
.ui.cdd-edit .cdd-section-hidden { outline-color: rgba(255, 216, 107, 0.55); }
.cdd-sechidden-veil {
  position: absolute; inset: 0; z-index: 6; pointer-events: none; display: none;
  background: repeating-linear-gradient(135deg, rgba(128, 128, 128, 0.26) 0 12px, rgba(128, 128, 128, 0.14) 12px 24px);
}
.cdd-sechidden-tag {
  position: absolute; top: 10px; left: 10px; z-index: 7; display: none; align-items: center;
  padding: 5px 10px; border-radius: 999px; pointer-events: none;
  background: var(--cdd-bg-strong); color: var(--cdd-warn, #ffd86b); border: 1px solid rgba(255, 216, 107, 0.35);
  font: 600 12px var(--cdd-font); letter-spacing: 0.01em; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.ui.cdd-edit .cdd-section-hidden > .cdd-sechidden-veil { display: block; }
.ui.cdd-edit .cdd-section-hidden > .cdd-sechidden-tag { display: inline-flex; }

/* Rich-text toolbar */
.cdd-rte-toolbar {
  position: absolute; z-index: 2147483002; display: none; align-items: center; gap: 2px;
  padding: 4px; border-radius: 10px; background: var(--cdd-bg-strong);
  border: 1px solid var(--cdd-stroke); box-shadow: var(--cdd-shadow);
  /* Wrap rather than overflow: position() slides the bar left to keep it on
     screen, but a narrow viewport can still be narrower than the whole tool set. */
  flex-wrap: wrap; max-width: calc(100vw - 16px);
}
.cdd-rte-tool {
  font-family: inherit; min-width: 28px; height: 28px; padding: 0 7px; border: 0; border-radius: 7px;
  background: transparent; color: var(--cdd-fg-2); font-size: 12.5px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: background .14s, color .14s;
}
.cdd-rte-tool svg { width: 15px; height: 15px; }
.cdd-rte-tool:hover { background: var(--cdd-fill); color: var(--cdd-fg); }
.cdd-rte-tool.cdd-on { background: var(--cdd-fill-hover); color: var(--cdd-fg); }
/* Separates the toolbar into text / blocks / lists / insert / history / expand,
   so ~16 tools still read as groups rather than one long undifferentiated row. */
.cdd-rte-sep { width: 1px; height: 18px; margin: 0 4px; background: var(--cdd-stroke); flex: none; }

/* Text color: an "A" sitting on a bar of whatever color the caret is in. */
.cdd-rte-color { flex-direction: column; gap: 1px; line-height: 1; padding-bottom: 2px; }
.cdd-rte-color-bar { display: block; width: 15px; height: 3px; border-radius: 2px; background: currentColor; }
/* Highlight: the same bar, outlined so "no highlight" (transparent) still reads
   as a swatch rather than as nothing. */
.cdd-rte-hilite .cdd-rte-color-bar { height: 4px; box-shadow: inset 0 0 0 1px var(--cdd-stroke); }
.cdd-rte-hilite svg { width: 14px; height: 14px; }
.cdd-rte-colors {
  position: fixed; z-index: 2147483003; width: 216px; padding: 10px;
  border-radius: 12px; background: var(--cdd-bg-strong); border: 1px solid var(--cdd-stroke);
  box-shadow: var(--cdd-shadow); color: var(--cdd-fg); font-family: var(--cdd-font);
}
.cdd-rte-colors-label { font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--cdd-fg-3); margin-bottom: 6px; }
.cdd-rte-swatches { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.cdd-rte-swatch {
  width: 22px; height: 22px; flex: none; padding: 0; cursor: pointer;
  border: 1px solid var(--cdd-stroke); border-radius: 6px;
}
.cdd-rte-swatch:hover { outline: 2px solid var(--cdd-accent); outline-offset: 1px; }
.cdd-rte-colors-foot { display: flex; align-items: center; gap: 10px; padding-top: 8px; border-top: 1px solid var(--cdd-stroke-soft); }
.cdd-rte-color-input {
  width: 34px; height: 26px; flex: none; padding: 0; cursor: pointer;
  border: 1px solid var(--cdd-stroke); border-radius: 7px; background: transparent;
}
.cdd-rte-color-input::-webkit-color-swatch-wrapper { padding: 3px; }
.cdd-rte-color-input::-webkit-color-swatch { border: 0; border-radius: 4px; }
.cdd-rte-color-input::-moz-color-swatch { border: 0; border-radius: 4px; }
/* Docked variant, used above the expanded editor's frame. */
.cdd-rte-toolbar-docked {
  position: static; display: flex; flex-wrap: wrap; border-radius: 0;
  border: 0; border-bottom: 1px solid var(--cdd-stroke); box-shadow: none;
  padding: 6px 8px; background: var(--cdd-bg-strong);
}

/* ── Dock (solid graphite, no blur) ─────────────────────────────── */
.cdd-dock {
  /* The gap below the dock. A variable because the tuck distance below is
     derived from it — mobile overrides this one value and both follow. */
  --cdd-dock-gap: 20px;
  position: fixed; left: 50%; bottom: var(--cdd-dock-gap); transform: translateX(-50%);
  z-index: 2147483000; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 8px; border-radius: 18px; max-width: calc(100vw - 24px);
  background: var(--cdd-bg-strong); border: 1px solid var(--cdd-stroke);
  box-shadow: var(--cdd-shadow); font-family: var(--cdd-font); color: var(--cdd-fg);
  font-size: 13px; letter-spacing: -0.01em; user-select: none;
  /* Calm on purpose: the dock tucking away is ambient, not a response to a
     click, so it eases out with no overshoot. The dock's ENTRY still springs
     (--cdd-spring) — that one's an arrival and earns the bounce. */
  transition: transform 420ms var(--cdd-ease);
  /* 'backwards', NOT 'both': a 'both' fill pins the final keyframe's transform
     forever, and an animation's value beats every rule in the cascade — the
     bottom-of-page tuck below could never move the dock. The last keyframe
     matches the base transform anyway, so the entry looks identical. */
  animation: cdd-dock-in 420ms var(--cdd-spring) backwards;
}
@keyframes cdd-dock-in {
  from { opacity: 0; transform: translate(-50%, 18px) scale(0.96); }
  to   { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

/* Sites put their fine print — "Company Name 501(c)(3)", the copyright line — at
   the very bottom of the footer, exactly where the dock floats. Hitting the very
   bottom of the page slides the dock away, leaving a quarter of it peeking as a
   hover/focus target; hover or focus brings it straight back, as does scrolling
   up at all.

   The distance is derived, not hand-tuned: translating by (75% + the bottom gap)
   leaves exactly 25% of the dock on screen for ANY dock height or gap — the gap
   term cancels the space the dock floats above the fold. Height and gap both
   change on mobile, so a fixed pixel value would drift. */
.cdd-dock.cdd-tucked { transform: translate(-50%, calc(75% + var(--cdd-dock-gap))); }
.cdd-dock.cdd-tucked:hover, .cdd-dock.cdd-tucked:focus-within { transform: translateX(-50%); }
/* Reduced motion shortens this rather than removing it. The preference targets
   large, vestibular-triggering motion; the dock sliding ~56px inside its own
   footprint isn't that, and killing it outright just makes the dock teleport,
   which reads as a glitch. Quick enough not to feel floaty, long enough to still
   say "it moved, it didn't vanish". The entry spring IS dropped — its overshoot
   is the decorative part, and it has no job to do. */
@media (prefers-reduced-motion: reduce) {
  .cdd-dock { transition-duration: 220ms; animation: none; }
}

.cdd-status {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px;
  border: 0; background: transparent; font-family: inherit; cursor: pointer;
  border-radius: 12px; font-size: 12.5px; font-weight: 500; color: var(--cdd-fg-2);
  flex: 0 0 auto; white-space: nowrap; transition: background 160ms ease, color 160ms ease;
}
.cdd-status:hover { background: var(--cdd-fill); color: var(--cdd-fg); }
.cdd-status .cdd-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cdd-ok); box-shadow: 0 0 0 3px rgba(48, 209, 88, 0.18); flex: 0 0 auto;
}
.cdd-status.cdd-unsaved { color: var(--cdd-unsaved); }
.cdd-status.cdd-unsaved .cdd-dot {
  background: var(--cdd-warn); box-shadow: 0 0 0 3px rgba(255, 214, 10, 0.2);
  animation: cdd-pulse 1.6s ease-in-out infinite;
}
@keyframes cdd-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255, 214, 10, 0.2); }
  50%      { box-shadow: 0 0 0 5px rgba(255, 214, 10, 0.08); }
}

.cdd-sep { width: 1px; height: 22px; background: var(--cdd-stroke); margin: 0 2px; flex: none; }

.cdd-btn {
  position: relative; font-family: inherit; display: inline-flex; align-items: center;
  gap: 6px; padding: 7px 13px; border-radius: 11px; border: 0; background: transparent;
  color: var(--cdd-fg); font-size: 12.5px; font-weight: 500; letter-spacing: -0.005em;
  cursor: pointer; white-space: nowrap;
  transition: background 160ms ease, color 160ms ease, transform 120ms ease;
}
.cdd-btn:hover { background: var(--cdd-fill); }
.cdd-btn:active { transform: scale(0.97); }
.cdd-btn.cdd-active, .cdd-btn[aria-pressed="true"] { background: var(--cdd-fill-hover); }
.cdd-btn .cdd-icon { width: 14px; height: 14px; flex: 0 0 auto; opacity: 0.9; }
.cdd-btn.cdd-primary { background: var(--cdd-accent); color: var(--cdd-accent-ink); font-weight: 600; }
.cdd-btn.cdd-primary:hover { background: var(--cdd-accent-hover); }
.cdd-btn.cdd-primary[disabled] { background: var(--cdd-fill); color: var(--cdd-fg-3); cursor: not-allowed; }
.cdd-btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.cdd-btn.cdd-icon-only { padding: 7px 9px; color: var(--cdd-fg-2); }
.cdd-btn.cdd-icon-only:hover { color: var(--cdd-fg); }
.cdd-spin { animation: cdd-spin 0.8s linear infinite; transform-origin: center; }
@keyframes cdd-spin { to { transform: rotate(360deg); } }
/* A button whose request is in flight (see `busy()` in dom.ts): it keeps its
   place and size, reads as working, and can't be pressed again. The spinner
   is the one motion that stays under reduced-motion — it is the information,
   not decoration — but it slows right down. */
button[aria-busy="true"] { cursor: progress; opacity: .85; }
@media (prefers-reduced-motion: reduce) {
  .cdd-spin { animation-duration: 2s; }
}



/* ── Floating tool window (title + × close) ─────────────────────── */
.cdd-window {
  position: fixed; z-index: 2147482999; right: 20px; bottom: 84px;
  width: min(400px, calc(100vw - 36px)); max-height: calc(100vh - 104px);
  display: flex; flex-direction: column; border-radius: 14px; overflow: hidden;
  background: var(--cdd-bg); border: 1px solid var(--cdd-stroke); box-shadow: var(--cdd-shadow);
  font-family: var(--cdd-font); color: var(--cdd-fg); font-size: 13px;
  transform-origin: 80% 100%; animation: cdd-window-in 320ms var(--cdd-spring) both;
}
@keyframes cdd-window-in {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}
.cdd-window.cdd-closing { animation: cdd-window-out 200ms var(--cdd-spring) both; }
@keyframes cdd-window-out {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateY(12px) scale(0.96); }
}
.cdd-titlebar {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px;
  padding: 11px 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0) 80%);
  border-bottom: 1px solid var(--cdd-stroke-soft);
}
.cdd-title { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; color: var(--cdd-fg); }
.cdd-x {
  width: 26px; height: 26px; border: 0; background: transparent; color: var(--cdd-fg-3);
  border-radius: 7px; cursor: pointer; display: grid; place-items: center;
}
.cdd-x:hover { background: var(--cdd-fill); color: var(--cdd-fg); }
.cdd-x svg { width: 15px; height: 15px; }
.cdd-body {
  flex: 1 1 auto; padding: 14px; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.cdd-body::-webkit-scrollbar { width: 8px; }
.cdd-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 4px; }
.cdd-foot-note {
  padding: 10px 14px; border-top: 1px solid var(--cdd-stroke-soft);
  font-size: 11.5px; color: var(--cdd-fg-3);
}
.cdd-empty { padding: 34px 16px; text-align: center; color: var(--cdd-fg-2); font-size: 13px; }
.cdd-empty strong { display: block; color: var(--cdd-fg); font-weight: 600; margin-bottom: 4px; }
.cdd-empty em { color: var(--cdd-fg); font-style: normal; font-weight: 600; }

/* ── Content CMS (list → edit) ──────────────────────────────────── */
.cdd-window.cdd-wide { width: min(440px, calc(100vw - 36px)); }
.cdd-collsw {
  display: inline-flex; gap: 2px; padding: 3px; background: #06080b;
  border: 1px solid var(--cdd-stroke-soft); border-radius: 10px; margin-bottom: 14px;
}
.cdd-coll {
  font-family: inherit; font-size: 12.5px; font-weight: 500; color: var(--cdd-fg-3);
  border: 0; background: transparent; padding: 6px 14px; border-radius: 7px; cursor: pointer; transition: .18s;
}
.cdd-coll.cdd-on { background: var(--cdd-fill-hover); color: var(--cdd-fg); }
.cdd-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cdd-section-header h4 {
  margin: 0; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--cdd-fg-3);
}
.cdd-list { background: var(--cdd-bg-elev); border: 1px solid var(--cdd-stroke-soft); border-radius: 12px; overflow: hidden; }
.cdd-rowitem {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 12px;
  border: 0; background: transparent; color: var(--cdd-fg); font-family: inherit; cursor: pointer; transition: background 140ms ease;
}
.cdd-rowitem + .cdd-rowitem { border-top: 1px solid var(--cdd-stroke-soft); }
.cdd-rowitem:hover { background: rgba(255,255,255,.04); }
.cdd-row-thumb {
  width: 42px; height: 42px; border-radius: 8px; flex: none; background: rgba(255,255,255,.05);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); display: grid; place-items: center;
  color: var(--cdd-fg-3); background-size: cover; background-position: center;
}
.cdd-row-thumb svg { width: 16px; height: 16px; }
.cdd-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cdd-row-title { font-size: 13.5px; font-weight: 500; letter-spacing: -.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cdd-row-sub { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--cdd-fg-2); }
.cdd-chevron { color: var(--cdd-fg-3); flex: none; display: grid; place-items: center; }
.cdd-chevron svg { width: 16px; height: 16px; }
.cdd-badge { padding: 2px 7px; border-radius: 999px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; flex: none; }
.cdd-badge.cdd-live { background: rgba(48,209,88,.16); color: #6ee89c; }
.cdd-badge.cdd-draft { background: rgba(255,214,10,.16); color: #ffe066; }
.cdd-badge.cdd-current { background: var(--cdd-accent); color: #fff; }
.cdd-badge.cdd-sched { background: rgba(55,93,231,.16); color: #9db4ff; }
.cdd-badge.cdd-down { background: rgba(255,69,58,.18); color: #ffb4ab; }
.cdd-sched-field { border-top: 1px solid var(--cdd-stroke); padding-top: 12px; margin-top: 4px; }
.cdd-sched-row { display: flex; align-items: center; gap: 8px; }
.cdd-sched-row .cdd-input { flex: 1; }
.cdd-page-tail { display: flex; align-items: center; gap: 6px; flex: none; }
.cdd-count-pill {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
}
.cdd-count-pill svg { width: 12px; height: 12px; }
.cdd-count-comments { background: rgba(55,93,231,.18); color: #9db4ff; }
.cdd-count-notes { background: rgba(255,214,10,.16); color: #ffe066; }
.cdd-link {
  display: inline-flex; align-items: center; gap: 4px; background: transparent; border: 0;
  color: var(--cdd-accent); font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; padding: 0;
}
.cdd-link svg { width: 14px; height: 14px; }
.cdd-entry-page { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; min-width: 0; }
.cdd-entry-page .cdd-btn { flex: none; }
.cdd-entry-page a { text-decoration: none; font-size: 12px; min-width: 0; }
.cdd-entry-page a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cdd-btn.cdd-sm { padding: 6px 12px; font-size: 12px; }
.cdd-window-foot { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--cdd-stroke-soft); }
.cdd-grow { flex: 1; }
.cdd-btn.cdd-danger { color: #ff8a80; }
.cdd-btn.cdd-danger:hover { background: rgba(255,69,58,.12); }
/* A destructive confirm reads as the primary action of its dialog, but must not
   wear the same accent as a safe one. */
.cdd-btn.cdd-primary.cdd-danger { background: var(--cdd-danger); color: #fff; }
.cdd-btn.cdd-primary.cdd-danger:hover { background: #ff6055; }
.cdd-link.cdd-danger { color: #ff8a80; }

/* form fields */
.cdd-field { display: flex; flex-direction: column; gap: 6px; }
.cdd-field + .cdd-field, .cdd-grid2 + .cdd-field, .cdd-field + .cdd-grid2 { margin-top: 12px; }
.cdd-field > label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--cdd-fg-3); }
.cdd-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cdd-input, .cdd-textarea {
  width: 100%; font-family: inherit; font-size: 13.5px; color: var(--cdd-fg); background: var(--cdd-bg-elev);
  border: 1px solid var(--cdd-stroke-soft); border-radius: 9px; padding: 9px 11px; outline: none; transition: border-color .16s;
}
.cdd-input:focus, .cdd-textarea:focus { border-color: var(--cdd-accent); }
.cdd-input::placeholder, .cdd-textarea::placeholder { color: var(--cdd-fg-3); }
.cdd-textarea { resize: vertical; min-height: 64px; line-height: 1.5; }
.cdd-select {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--cdd-fg-3) 50%), linear-gradient(135deg, var(--cdd-fg-3) 50%, transparent 50%);
  background-position: calc(100% - 16px) 16px, calc(100% - 11px) 16px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.cdd-select option { background: #1c1d22; color: var(--cdd-fg); }

/* Entry-list search — full width above the sort row; in a narrow panel the two
   don't fit side by side without cramping both. */
.cdd-list-search { width: 100%; margin-bottom: 8px; padding: 8px 11px; font-size: 12.5px; }
.cdd-list-search::-webkit-search-cancel-button { filter: invert(1); opacity: .5; cursor: pointer; }

/* Entry-list sort bar — a quiet row above the list, not a form field. */
.cdd-sortbar { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.cdd-sortbar-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--cdd-fg-3); flex: none; }
.cdd-sortbar-select { flex: 1; min-width: 0; padding: 7px 10px; font-size: 12.5px; background-position: calc(100% - 14px) 14px, calc(100% - 9px) 14px; }
.cdd-rte-field { min-height: 90px; line-height: 1.55; cursor: text; }
.cdd-rte-field:focus { border-color: var(--cdd-accent); }
.cdd-rte-field h2 { font-size: 17px; font-weight: 600; margin: .5em 0 .3em; }
.cdd-rte-field h3 { font-size: 15px; font-weight: 600; margin: .5em 0 .3em; }
.cdd-rte-field ul, .cdd-rte-field ol { padding-left: 20px; margin: .4em 0; }
.cdd-rte-field blockquote { border-left: 3px solid var(--cdd-accent); padding-left: 10px; color: var(--cdd-fg-2); font-style: italic; margin: .5em 0; }
.cdd-rte-field a { color: var(--cdd-accent); }
.cdd-rte-field:empty::before { content: attr(data-placeholder); color: var(--cdd-fg-3); }
.cdd-rte-field img { max-width: 100%; height: auto; border-radius: 6px; }
.cdd-rte-field figure { margin: .6em 0; }
.cdd-rte-field figcaption { font-size: 11.5px; color: var(--cdd-fg-3); margin-top: .3em; }
.cdd-rte-field pre {
  background: #06080b; border: 1px solid var(--cdd-stroke-soft); border-radius: 8px;
  padding: 10px 12px; margin: .5em 0; overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px;
}
.cdd-rte-field pre code { font: inherit; }

/* ── Expanded ("full") rich-text editor ─────────────────────────── */
/* A near-full-screen window whose editing surface is an iframe carrying the
   SITE's stylesheets, so what an editor types is styled as visitors see it. */
.cdd-window.cdd-huge {
  width: min(1120px, calc(100vw - 40px));
  height: min(880px, calc(100vh - 80px));
  max-height: calc(100vh - 80px);
  right: 50%; bottom: 50%; transform: translate(50%, 50%);
  transform-origin: 50% 50%;
  /* No z-index here: window.ts assigns every window its own layer inline, so a
     window opened from this one stacks above it. */
}
.cdd-window.cdd-huge .cdd-body { padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.cdd-rte-dock { flex: none; }
.cdd-rte-frame {
  flex: 1 1 auto; width: 100%; border: 0; background: #fff; display: block;
}
/* The window's entry animation moves it; a centred window must keep its
   centring transform through both keyframes. */
.cdd-window.cdd-huge { animation: cdd-huge-in 320ms var(--cdd-spring) both; }
@keyframes cdd-huge-in {
  from { opacity: 0; transform: translate(50%, 50%) scale(0.97); }
  to   { opacity: 1; transform: translate(50%, 50%) scale(1); }
}
.cdd-window.cdd-huge.cdd-closing { animation: cdd-huge-out 200ms var(--cdd-spring) both; }
@keyframes cdd-huge-out {
  from { opacity: 1; transform: translate(50%, 50%) scale(1); }
  to   { opacity: 0; transform: translate(50%, 50%) scale(0.97); }
}

/* ── Insert-tool panels (button / image placement) ──────────────── */
.cdd-rte-inline-row { display: flex; gap: 8px; align-items: center; }
.cdd-rte-inline-row .cdd-input { flex: 1; min-width: 0; }
.cdd-rte-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cdd-rte-chip {
  font-family: inherit; font-size: 12px; font-weight: 500; color: var(--cdd-fg-2);
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  padding: 5px 10px 5px 6px; border-radius: 8px;
  background: var(--cdd-fill); border: 1px solid transparent; transition: .16s;
}
.cdd-rte-chip:hover { background: var(--cdd-fill-hover); color: var(--cdd-fg); }
.cdd-rte-chip.cdd-on { border-color: var(--cdd-accent); color: var(--cdd-fg); }
/* A miniature of the real button, painted from the computed styles sampled off
   the live page — the site's own CSS is not in scope inside Studio's chrome. */
.cdd-rte-chip-swatch {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; height: 20px; padding: 0 6px; font-size: 10px; line-height: 1;
  overflow: hidden; white-space: nowrap;
}
.cdd-rte-chip-dot {
  width: 16px; height: 16px; border-radius: 999px; flex: none;
  border: 1px solid var(--cdd-stroke);
}
.cdd-rte-chip-dot-none {
  background: repeating-linear-gradient(45deg, var(--cdd-fill) 0 3px, transparent 3px 6px);
}
/* The "Custom" chip wraps a native color input as its dot. */
.cdd-rte-chip-custom { padding-left: 4px; }
.cdd-rte-chip-custom .cdd-rte-color-input { width: 26px; height: 20px; border-radius: 6px; }
/* Live on the page: the link editor paints a picked color onto the real button
   while the window is open, so there is nothing to preview inside it. */
.cdd-link-colors-note { font-size: 12px; color: var(--cdd-fg-3); margin: -4px 0 12px; }
.cdd-rte-btn-preview {
  display: flex; align-items: center; justify-content: center; min-height: 72px;
  padding: 14px; border-radius: 10px; background: #06080b;
  border: 1px solid var(--cdd-stroke-soft);
}
.cdd-rte-btn-preview a { text-decoration: none; display: inline-block; cursor: default; }
/* Shows the image against dummy copy, since the wrap options are entirely about
   how the image and the text sit together. */
.cdd-rte-img-preview {
  margin-bottom: 12px; padding: 12px; border-radius: 10px; background: #06080b;
  border: 1px solid var(--cdd-stroke-soft); overflow: hidden;
  font-size: 11px; line-height: 1.5; color: var(--cdd-fg-3);
}
.cdd-rte-img-preview img { max-height: 150px; object-fit: cover; }
.cdd-rte-img-preview::after { content: ''; display: block; clear: both; }

/* An image inside a rich-text editable is clickable — a hover outline is the
   affordance, since <img> is a void element and can't carry an edit badge. */
[contenteditable='true'] img:hover {
  outline: 2px solid var(--cdd-affordance-strong); outline-offset: 2px; cursor: pointer;
}
.cdd-field-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cdd-toggle {
  position: relative; width: 40px; height: 24px; border-radius: 999px; background: rgba(255,255,255,.12);
  border: 0; cursor: pointer; padding: 0; transition: background .18s; flex: none;
}
.cdd-toggle.cdd-on { background: var(--cdd-accent); }
.cdd-toggle::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; transition: transform .18s var(--cdd-spring);
}
.cdd-toggle.cdd-on::after { transform: translateX(16px); }
.cdd-cover-picker {
  display: block; position: relative; width: 100%; border: 1px solid var(--cdd-stroke); border-radius: 10px;
  background: rgba(255,255,255,.02); min-height: 96px; overflow: hidden;
}
.cdd-cover-thumb { display: flex; align-items: center; justify-content: center; width: 100%; height: 110px; background-size: cover; background-position: center; }
/* Empty state — signals "this field takes an image" instead of showing a blank box. */
.cdd-cover-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--cdd-fg-3); pointer-events: none; }
.cdd-cover-empty svg { width: 24px; height: 24px; opacity: 0.7; }
.cdd-cover-empty span { font-size: 11.5px; font-weight: 500; }
/* repeater */
.cdd-rep { display: flex; flex-direction: column; gap: 10px; }
.cdd-rep-row { border: 1px solid var(--cdd-stroke-soft); border-radius: 10px; padding: 12px 12px 10px; background: var(--cdd-bg-elev); position: relative; }
.cdd-rep-del {
  position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border: 0; background: transparent;
  color: var(--cdd-fg-3); border-radius: 6px; cursor: pointer; display: grid; place-items: center;
}
.cdd-rep-del svg { width: 14px; height: 14px; }
.cdd-rep-del:hover { background: rgba(255,69,58,.14); color: #ff8a80; }
.cdd-btn.cdd-rep-add { align-self: flex-start; background: var(--cdd-fill); margin-top: 2px; }
.cdd-errs { background: rgba(255,69,58,.1); border: 1px solid rgba(255,69,58,.3); border-radius: 9px; padding: 9px 11px; margin-bottom: 12px; font-size: 12px; color: #ffb3ac; }
.cdd-errs ul { margin: 0; padding-left: 16px; }
.cdd-errs li { margin: 2px 0; }

/* dock button count badge (Comments / Alerts) */
.cdd-btn-badge {
  position: absolute; top: -3px; right: -1px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: var(--cdd-accent); color: #fff; border: 1.5px solid var(--cdd-bg-strong);
  font-size: 10px; font-weight: 700; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
}

/* Dock warning chip — published edits whose element is gone. Amber rather than
   the accent color: it's the same "unpublished/needs attention" language the
   orb uses, and it must not read as a normal tool button. Hidden entirely when
   the count is zero, so a healthy page's dock is unchanged. */
.cdd-warning {
  color: var(--cdd-warn, #ffd86b);
  background: rgba(255, 216, 107, .12);
  border: 1px solid rgba(255, 216, 107, .35);
}
.cdd-warning:hover { background: rgba(255, 216, 107, .2); }
.cdd-warning[hidden] { display: none; }

/* Dock chip — storage isn't durable. Red, not amber: the orphan warning above
   means "something you published no longer shows", this means "nothing you do
   here is kept at all", and they must not read as the same severity. Always
   visible while it applies (no hover-to-discover, no dismiss), because the
   whole failure is that everything else in the product reports success. */
.cdd-notsaving {
  color: #ffb4ab;
  background: rgba(255, 69, 58, .16);
  border: 1px solid rgba(255, 69, 58, .45);
  font-weight: 600;
}
.cdd-notsaving:hover { background: rgba(255, 69, 58, .26); }
.cdd-notsaving[hidden] { display: none; }

/* Staging site. Blue rather than red or amber: nothing's wrong, but every
   publish here stays here, and the editor should never lose track of that. */
.cdd-staging {
  color: #9ab8ff;
  background: rgba(55, 93, 231, .18);
  border: 1px solid rgba(90, 124, 240, .5);
  font-weight: 700;
}
.cdd-staging:hover { background: rgba(55, 93, 231, .28); }
.cdd-staging[hidden] { display: none; }
.cdd-env-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 4px; }
.cdd-env-head .cdd-help { flex: 1; }
.cdd-env-section { margin: 12px 0 4px; }
.cdd-env-title { font-size: 13px; font-weight: 700; color: var(--cdd-fg); margin-bottom: 6px; }
.cdd-env-kind {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 999px; margin-right: 8px; vertical-align: 1px;
  background: var(--cdd-fill); color: var(--cdd-fg-2);
}
.cdd-env-added { background: rgba(48, 209, 88, .16); color: #7ee2a0; }
.cdd-env-removed { background: rgba(255, 69, 58, .16); color: #ffb4ab; }
.cdd-env-warn {
  display: flex; gap: 8px; align-items: flex-start; margin: 12px 0; padding: 10px 12px; border-radius: 10px;
  background: rgba(255, 216, 107, .1); border: 1px solid rgba(255, 216, 107, .3);
  font-size: 12.5px; line-height: 1.45; color: var(--cdd-fg);
}
.cdd-env-warn svg { width: 15px; height: 15px; flex: none; margin-top: 1px; color: var(--cdd-warn, #ffd86b); }
.cdd-env-actions { display: flex; align-items: center; gap: 8px; margin-top: 16px; }

/* The page being edited has been taken down. Same treatment as "Not saving":
   the dock's "Live" is wrong for this page, and the chip is what says so. */
.cdd-pagedown {
  color: #ffb4ab;
  background: rgba(255, 69, 58, .16);
  border: 1px solid rgba(255, 69, 58, .45);
  font-weight: 600;
}
.cdd-pagedown:hover { background: rgba(255, 69, 58, .26); }
.cdd-pagedown[hidden] { display: none; }

/* A chrome link to a page that is down. Visitors don't receive the link; the
   editor does, struck through, so the nav they see explains itself. Only
   while editing — in preview the page is the visitor's page. */
.ui.cdd-edit .cdd-link-down { text-decoration: line-through !important; opacity: 0.55; }
.ui.cdd-edit .cdd-link-down::after {
  content: ''; display: inline-block; width: 0.8em; height: 0.8em; margin-left: 0.3em; vertical-align: -0.05em;
  background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24'/%3E%3Cline x1='1' y1='1' x2='23' y2='23'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24'/%3E%3Cline x1='1' y1='1' x2='23' y2='23'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Dock chip — storage is rate-limiting the site. Amber, not red: unlike "Not
   saving" this is temporary and nothing is misconfigured, but the next save
   WILL fail, so it stands (no dismiss) until a write goes through or the
   limit's reset time passes. */
.cdd-ratelimited {
  color: var(--cdd-warn, #ffd86b);
  background: rgba(255, 216, 107, .12);
  border: 1px solid rgba(255, 216, 107, .35);
  font-weight: 600;
}
.cdd-ratelimited:hover { background: rgba(255, 216, 107, .2); }
.cdd-ratelimited[hidden] { display: none; }

/* The detail behind the chip. It floats over Inlay's own chrome instead of
   sitting in the page's flow: the always-on part of this warning is the chip,
   and a bar that pushed the customer's page down was doing the chip's job a
   second time, on their layout. Solid red with white text — 6.3:1, comfortably
   past the 4.5:1 minimum — and it lands on sites whose palette we know nothing
   about, hence the reset on every inherited property. */
.cdd-nodurable {
  all: initial;
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 84px;
  z-index: 2147483000; box-sizing: border-box;
  width: min(520px, calc(100vw - 32px)); max-height: 60vh; overflow-y: auto;
  padding: 14px 18px; border-radius: 14px; background: #b3261e; color: #ffffff;
  font-family: var(--cdd-font); font-size: 14px; line-height: 1.5; text-align: left;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .5);
}
.cdd-nodurable[hidden] { display: none; }
.cdd-nodurable:focus-visible { outline: 3px solid #ffffff; outline-offset: -3px; }
.cdd-nodurable-title { display: block; font-weight: 700; color: #ffffff; margin-bottom: 4px; }
.cdd-nodurable-body { color: #ffffff; }
/* The rate-limit panel shares the layout in amber: white on this brown is
   7.7:1, and it must not read as the same severity as the red. */
.cdd-nodurable.cdd-ratelimit-panel { background: #6b4e00; }

/* ── Small icon button (shared) ──────────────────────────────────── */
.cdd-icon-btn { width: 26px; height: 26px; border: 0; background: transparent; color: var(--cdd-fg-3); border-radius: 7px; cursor: pointer; display: grid; place-items: center; }
.cdd-icon-btn:hover { background: rgba(255,69,58,.14); color: #ff8a80; }
.cdd-icon-btn svg { width: 15px; height: 15px; }

/* ── Assets ─────────────────────────────────────────────────────── */
.cdd-dropzone {
  display: block; border: 1.5px dashed var(--cdd-stroke); border-radius: 12px; background: rgba(255,255,255,.02);
  padding: 22px; margin-bottom: 14px; cursor: pointer; transition: border-color .16s, background .16s;
}
.cdd-dropzone:hover { border-color: var(--cdd-stroke-strong); }
.cdd-dropzone.cdd-drag { border-color: var(--cdd-accent); background: rgba(55,93,231,.08); }
.cdd-dropzone-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--cdd-fg-3); }
.cdd-dropzone-inner svg { width: 24px; height: 24px; }
.cdd-dropzone-text { font-size: 12.5px; font-weight: 500; }
/* Upload progress. Zero-height until something is actually in flight, so an
   idle dropzone looks exactly as it did before. */
.cdd-upload-bar {
  width: min(260px, 100%); height: 0; border-radius: 999px; overflow: hidden;
  background: var(--cdd-fill); transition: height .16s ease;
}
.cdd-dropzone.cdd-uploading { cursor: progress; border-color: var(--cdd-accent); }
.cdd-dropzone.cdd-uploading .cdd-upload-bar { height: 4px; }
.cdd-upload-fill {
  width: 0; height: 100%; border-radius: inherit; background: var(--cdd-accent);
  transition: width .18s ease;
}
/* Optimizing / saving: real work with no measurable total, so the bar sweeps
   instead of claiming a percentage it doesn't have. */
.cdd-upload-bar.cdd-indeterminate .cdd-upload-fill {
  width: 38%; transition: none; animation: cdd-upload-sweep 1.1s ease-in-out infinite;
}
@keyframes cdd-upload-sweep {
  0% { margin-left: -38%; }
  100% { margin-left: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .cdd-upload-bar.cdd-indeterminate .cdd-upload-fill { animation-duration: 2.2s; }
}
.cdd-asset-tag { position: absolute; left: 5px; bottom: 5px; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: rgba(0,0,0,.6); color: #fff; padding: 2px 6px; border-radius: 5px; }
.cdd-asset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cdd-asset-cell { position: relative; aspect-ratio: 1/1; border-radius: 10px; background-size: cover; background-position: center; background-color: var(--cdd-bg-elev); border: 1px solid var(--cdd-stroke-soft); }
.cdd-asset-del { position: absolute; top: 5px; right: 5px; width: 22px; height: 22px; border: 0; border-radius: 6px; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; display: grid; place-items: center; opacity: 0; transition: opacity .14s; }
.cdd-asset-cell:hover .cdd-asset-del { opacity: 1; }
.cdd-asset-del svg { width: 13px; height: 13px; }

/* ── Alerts ─────────────────────────────────────────────────────── */
.cdd-alert-row { display: flex; align-items: flex-start; gap: 9px; width: 100%; text-align: left; border: 0; background: transparent; color: var(--cdd-fg); font-family: inherit; padding: 9px 8px; border-radius: 9px; cursor: pointer; transition: background .14s; }
.cdd-alert-row:hover { background: var(--cdd-fill); }
.cdd-alert-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cdd-accent); flex: none; margin-top: 6px; }
.cdd-alert-content { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cdd-alert-line { font-size: 13px; color: var(--cdd-fg-2); }
.cdd-alert-line strong { color: var(--cdd-fg); font-weight: 600; }
.cdd-alert-preview { font-size: 12.5px; color: var(--cdd-fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 300px; }
.cdd-alert-time { font-size: 11px; color: var(--cdd-fg-3); }

/* ── Comments overlay ───────────────────────────────────────────── */
.ui.cdd-commenting [data-studio-block],
.ui.cdd-commenting [data-studio-image],
.ui.cdd-commenting [data-studio-link],
.ui.cdd-noting [data-studio-block],
.ui.cdd-noting [data-studio-image],
.ui.cdd-noting [data-studio-link] { outline: none !important; cursor: default !important; }
.cdd-comments { position: absolute; top: 0; left: 0; width: 100%; display: none; z-index: 2147482000; }
.cdd-comments.cdd-comments-active { display: block; }
.cdd-comments-catcher { position: absolute; inset: 0; cursor: crosshair; }
.cdd-pin-wrap { position: absolute; transform: translateY(-100%); z-index: 2; }
/* The element an annotation is on. Never takes a click: the catcher under it
   does. The white ring keeps the outline readable on a dark or busy page. */
.cdd-target-box, .cdd-target-hover { position: absolute; pointer-events: none; border-radius: 6px; z-index: 1; }
.cdd-target-box[hidden], .cdd-target-hover[hidden] { display: none; }
.cdd-target-hover { outline: 2px dashed var(--cdd-accent); outline-offset: 3px; background: rgba(55,93,231,.08); box-shadow: 0 0 0 6px rgba(255,255,255,.5); }
.cdd-target-box { outline: 2px solid rgba(55,93,231,.6); outline-offset: 3px; box-shadow: 0 0 0 6px rgba(255,255,255,.45); }
.cdd-target-box.cdd-on { outline: 3px solid var(--cdd-accent); background: rgba(55,93,231,.1); }
.cdd-target-box.cdd-resolved { opacity: .45; }
.cdd-annotations-note .cdd-target-box { outline-color: rgba(201,138,8,.7); }
.cdd-annotations-note .cdd-target-box.cdd-on { outline-color: #c98a08; background: rgba(240,180,41,.12); }
.cdd-annotations-note .cdd-target-hover { outline-color: #c98a08; background: rgba(240,180,41,.1); }
.cdd-pin {
  position: relative; width: 30px; height: 30px; padding: 0; display: grid; place-items: center;
  border-radius: 50% 50% 50% 4px; background: var(--cdd-accent); color: #fff;
  border: 2px solid rgba(255,255,255,.92); box-shadow: 0 4px 14px rgba(0,0,0,.35);
  font-family: var(--cdd-font); font-weight: 700; font-size: 12px; cursor: pointer;
  transition: transform 120ms var(--cdd-spring), box-shadow 120ms ease;
}
.cdd-pin:hover { box-shadow: 0 6px 18px rgba(0,0,0,.45); }
.cdd-pin.cdd-on { outline: 3px solid var(--cdd-accent); outline-offset: 2px; }
.cdd-pin.cdd-pulse { animation: cdd-cpulse 1.4s ease-out infinite; }
@keyframes cdd-cpulse { 0% { box-shadow: 0 0 0 0 rgba(55,93,231,.5); } 100% { box-shadow: 0 0 0 12px rgba(55,93,231,0); } }
.cdd-pin-count {
  position: absolute; top: -6px; right: -6px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: var(--cdd-bg-strong); color: var(--cdd-fg); border: 1px solid var(--cdd-stroke);
  font-size: 10px; font-weight: 600; display: grid; place-items: center;
}
.cdd-cc {
  position: absolute; top: calc(100% + 8px); left: 0; width: 260px; max-width: calc(100vw - 24px);
  padding: 12px; border-radius: 14px; background: var(--cdd-bg-strong); border: 1px solid var(--cdd-stroke);
  box-shadow: var(--cdd-shadow); color: var(--cdd-fg); font-family: var(--cdd-font);
  animation: cdd-card-in 160ms var(--cdd-spring) both; cursor: default;
}
.cdd-cc-left { left: auto; right: 0; }
.cdd-cc-up { top: auto; bottom: calc(100% + 8px); }
@keyframes cdd-card-in { from { opacity: 0; } to { opacity: 1; } }
.cdd-cc-head { display: flex; align-items: center; margin-bottom: 10px; }
.cdd-resolve {
  display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--cdd-stroke); background: var(--cdd-fill);
  color: var(--cdd-fg-2); border-radius: 999px; padding: 4px 10px; font-family: inherit; font-size: 11px; font-weight: 600; cursor: pointer;
}
.cdd-resolve:hover { background: var(--cdd-fill-hover); color: var(--cdd-fg); }
.cdd-resolve svg { width: 12px; height: 12px; }
.cdd-comment-del { padding: 4px 8px; }
.cdd-comment-del:hover { color: var(--cdd-danger); border-color: var(--cdd-danger); }

/* Resolved threads read muted, and their pins dim until you filter to "all". */
.cdd-pin-wrap.cdd-resolved .cdd-pin { opacity: .45; filter: grayscale(.4); }
.cdd-pin-wrap.cdd-flash .cdd-pin { animation: cdd-cpulse 0.9s ease-out 1; }

/* Comment navigator */
.cdd-comment-nav {
  position: fixed; left: 20px; bottom: 84px; z-index: 2147482998; width: 260px;
  max-height: min(60vh, 420px); display: none; flex-direction: column;
  background: var(--cdd-bg); border: 1px solid var(--cdd-stroke); border-radius: 14px;
  box-shadow: var(--cdd-shadow); overflow: hidden; font-family: var(--cdd-font);
}
.cdd-comment-nav.cdd-on { display: flex; }
.cdd-comment-nav-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--cdd-stroke); }
/* Collapse control. The title bar is the button, so the hit area is the label
   and the chevron together rather than a 14px glyph. */
.cdd-comment-nav-toggle {
  display: flex; align-items: center; gap: 6px; padding: 2px 4px; margin: -2px -4px;
  border: 0; background: transparent; border-radius: 8px; cursor: pointer; color: inherit; font: inherit;
}
.cdd-comment-nav-toggle:hover { background: var(--cdd-fill); }
.cdd-comment-nav-toggle:focus-visible { outline: 2px solid var(--cdd-accent); outline-offset: 1px; }
.cdd-comment-nav-chevron { width: 13px; height: 13px; flex: none; color: var(--cdd-fg-3); transform: rotate(90deg); transition: transform .16s var(--cdd-ease); }
.cdd-comment-nav.cdd-collapsed .cdd-comment-nav-chevron { transform: rotate(0deg); }
/* How many threads are down there, since the list itself is gone. */
.cdd-comment-nav-count {
  min-width: 17px; padding: 0 5px; border-radius: 999px; background: var(--cdd-fill-hover);
  color: var(--cdd-fg-2); font-size: 11px; font-weight: 700; line-height: 17px; text-align: center;
}
/* Collapsed: the title bar and nothing else, shrunk to its own content so it
   sits in the corner instead of spanning 260px of the page. */
.cdd-comment-nav.cdd-collapsed { width: auto; max-height: none; }
.cdd-comment-nav.cdd-collapsed .cdd-comment-nav-head { border-bottom: 0; }
.cdd-comment-nav.cdd-collapsed .cdd-comment-nav-list { display: none; }
/* The chevron is the only thing that moves, and it moves 90 degrees inside its
   own 13px box — but honour the preference anyway rather than argue about it. */
@media (prefers-reduced-motion: reduce) {
  .cdd-comment-nav-chevron { transition: none; }
}
.cdd-comment-nav-title { font-size: 12px; font-weight: 700; color: var(--cdd-fg); text-transform: uppercase; letter-spacing: .04em; }
.cdd-comment-nav-filter { border: 1px solid var(--cdd-stroke); background: var(--cdd-fill); color: var(--cdd-fg-2); border-radius: 999px; padding: 3px 9px; font: 600 11px var(--cdd-font); cursor: pointer; }
.cdd-comment-nav-filter:hover { color: var(--cdd-fg); }
.cdd-comment-nav-list { overflow-y: auto; padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.cdd-comment-nav-empty { color: var(--cdd-fg-3); font-size: 12px; padding: 12px; text-align: center; }
.cdd-comment-nav-row { display: flex; align-items: flex-start; gap: 8px; padding: 8px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; text-align: left; }
.cdd-comment-nav-row:hover { background: var(--cdd-fill); }
.cdd-comment-nav-row.cdd-on { background: var(--cdd-fill-hover); }
.cdd-comment-nav-row.cdd-resolved { opacity: .55; }
.cdd-comment-nav-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 3px; flex: none; }
.cdd-comment-nav-body { min-width: 0; }
.cdd-comment-nav-author { font-size: 12px; font-weight: 600; color: var(--cdd-fg); }
.cdd-comment-nav-snippet { font-size: 12px; color: var(--cdd-fg-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cdd-msg { display: flex; gap: 8px; margin-bottom: 10px; }
.cdd-msg-av { width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-size: 10px; font-weight: 700; }
.cdd-msg-body { flex: 1; min-width: 0; }
.cdd-msg-author { font-size: 11px; font-weight: 600; color: var(--cdd-fg); }
.cdd-msg-time { margin-left: 6px; font-weight: 400; color: var(--cdd-fg-3); white-space: nowrap; }
.cdd-msg-text { margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--cdd-fg); word-break: break-word; }
.cdd-reply { display: flex; align-items: flex-end; gap: 6px; border-top: 1px solid var(--cdd-stroke-soft); padding-top: 9px; }
.cdd-cc-input {
  width: 100%; font-family: inherit; font-size: 13px; color: var(--cdd-fg); background: var(--cdd-bg-elev);
  border: 1px solid var(--cdd-stroke-soft); border-radius: 9px; padding: 8px 10px; outline: none; resize: vertical; line-height: 1.5;
}
.cdd-cc-input:focus { border-color: var(--cdd-accent); }
.cdd-cc-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.cdd-comment-btn {
  flex: none; border: 1px solid var(--cdd-stroke); background: var(--cdd-fill); color: var(--cdd-fg);
  border-radius: 8px; padding: 6px 12px; font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
}
.cdd-comment-btn.cdd-primary { background: var(--cdd-accent); color: #fff; border-color: transparent; display: inline-flex; align-items: center; gap: 4px; }
.cdd-comment-btn.cdd-primary svg { width: 13px; height: 13px; }

/* ── @-mentions ─────────────────────────────────────────────────── */
.cdd-mention-menu {
  position: absolute; bottom: calc(100% + 8px); left: 0; min-width: 200px; max-width: 260px; z-index: 60;
  background: var(--cdd-bg-strong); border: 1px solid var(--cdd-stroke); border-radius: 10px; box-shadow: var(--cdd-shadow);
  padding: 5px; display: flex; flex-direction: column;
}
.cdd-mention-head { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cdd-fg-3); padding: 5px 8px 6px; }
.cdd-mention-item { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; border: 0; background: transparent; color: var(--cdd-fg); font-family: inherit; font-size: 13px; padding: 7px 8px; border-radius: 7px; cursor: pointer; }
.cdd-mention-item:hover { background: var(--cdd-fill); }
.cdd-mention-av { width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-size: 10px; font-weight: 700; background: var(--cdd-accent); }
.cdd-mention-empty { font-size: 12px; line-height: 1.45; color: var(--cdd-fg-3); padding: 2px 8px 7px; }
.cdd-mention-chip { color: var(--cdd-accent); font-weight: 600; }
/* A tagged name while it's still being typed (rich-composer.ts). A highlight
   can't change font-weight, so it's color only until sent. */
::highlight(cdd-mention) { color: var(--cdd-accent); }

/* ── Notification rows ──────────────────────────────────────────── */
.cdd-notif-row { display: flex; align-items: flex-start; gap: 9px; width: 100%; text-align: left; border: 0; background: transparent; color: var(--cdd-fg); font-family: inherit; padding: 9px 8px; border-radius: 9px; cursor: pointer; transition: background .14s; }
.cdd-notif-row:hover { background: var(--cdd-fill); }
.cdd-notif-row.cdd-unread { background: rgba(55,93,231,.1); }
.cdd-notif-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cdd-accent); flex: none; margin-top: 8px; }
.cdd-notif-spacer { width: 7px; flex: none; }
.cdd-notif-av { width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 700; background: var(--cdd-accent); }

/* ── Help / priority ────────────────────────────────────────────── */
.cdd-help { font-size: 12.5px; color: var(--cdd-fg-2); line-height: 1.5; margin: 0 0 12px; }

/* Settings + Info panels */
.cdd-set-desc { font-size: 12px; color: var(--cdd-fg-3); line-height: 1.45; }
.cdd-set-color-row { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.cdd-set-color {
  width: 46px; height: 32px; padding: 0; border: 1px solid var(--cdd-stroke);
  border-radius: 9px; background: transparent; cursor: pointer; flex: none;
}
.cdd-set-color::-webkit-color-swatch-wrapper { padding: 3px; }
.cdd-set-color::-webkit-color-swatch { border: 0; border-radius: 6px; }
.cdd-set-color::-moz-color-swatch { border: 0; border-radius: 6px; }

.cdd-info-head { margin-bottom: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
/* The wordmark's own strokes are currentColor; the mark keeps its brand hues. */
.cdd-logo { display: block; height: 34px; width: auto; max-width: 100%; color: var(--cdd-fg); }
.cdd-info-ver {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600;
  color: var(--cdd-fg); background: var(--cdd-fill); border: 1px solid var(--cdd-stroke-soft);
  padding: 6px 11px; border-radius: 999px;
}
.cdd-info-ver svg { width: 14px; height: 14px; opacity: .8; }
.cdd-info-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--cdd-fg-3); margin-bottom: 8px; }
.cdd-info-list { display: flex; flex-direction: column; gap: 10px; }
.cdd-info-item { display: flex; gap: 10px; align-items: baseline; }
.cdd-info-ver-tag { flex: none; font-size: 11.5px; font-weight: 600; color: var(--cdd-fg-2); font-variant-numeric: tabular-nums; min-width: 42px; }
.cdd-info-summary { font-size: 12.5px; color: var(--cdd-fg-2); line-height: 1.5; }
.cdd-priority { display: inline-flex; background: rgba(255,255,255,.04); border-radius: 9px; padding: 3px; gap: 2px; }
.cdd-priority-btn { font-family: inherit; border: 0; background: transparent; color: var(--cdd-fg-2); font-size: 12px; font-weight: 500; padding: 5px 12px; border-radius: 6px; cursor: pointer; transition: background .14s, color .14s; }
.cdd-priority-btn:hover { color: var(--cdd-fg); }
.cdd-priority-btn.cdd-active.cdd-p-low { background: rgba(120,120,128,.5); color: #fff; }
.cdd-priority-btn.cdd-active.cdd-p-normal { background: var(--cdd-accent); color: #fff; }
.cdd-priority-btn.cdd-active.cdd-p-high { background: var(--cdd-warn); color: #2a2300; }
.cdd-priority-btn.cdd-active.cdd-p-urgent { background: var(--cdd-danger); color: #fff; }

/* ── Announcement modal ─────────────────────────────────────────── */
.cdd-modal-backdrop { position: fixed; inset: 0; z-index: 2147483010; background: rgba(0,0,0,.55); display: grid; place-items: center; padding: 24px; animation: cdd-card-in 160ms ease both; }
.cdd-modal { width: min(460px, 100%); max-height: calc(100vh - 48px); overflow: auto; background: var(--cdd-bg-strong); border: 1px solid var(--cdd-stroke); border-radius: 16px; box-shadow: var(--cdd-shadow); font-family: var(--cdd-font); color: var(--cdd-fg); }
.cdd-modal-img { height: 160px; background-size: cover; background-position: center; }
.cdd-modal-body { padding: 20px; }
.cdd-modal-eyebrow { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--cdd-fg-3); margin-bottom: 10px; }
.cdd-modal-eyebrow svg { width: 14px; height: 14px; flex: none; }
/* Set outright, not inherited: a site's own h2 rules (a serif, a color) would
   otherwise win over the modal's. */
.cdd-modal-title { font-family: var(--cdd-font); color: var(--cdd-fg); line-height: 1.25; font-size: 22px; font-weight: 600; margin: 0 0 10px; letter-spacing: -.01em; text-transform: none; }
.cdd-modal-rich { font-size: 14px; line-height: 1.6; color: var(--cdd-fg-2); margin-bottom: 16px; }
.cdd-modal-rich p { margin: 0 0 .5em; }

/* ── Annotation composer, attachments, auto-links ───────────────── */
.cdd-composer { position: relative; display: flex; flex-direction: column; gap: 7px; flex: 1; min-width: 0; }
/* The composer is the whole thought on a new comment and a line or two on a
   reply, so the two get different room rather than one compromise height. */
.cdd-composer-field { font-size: 13px; padding: 8px 10px; border-radius: 9px; }
.cdd-composer-new .cdd-composer-field { min-height: 88px; }
.cdd-composer-reply .cdd-composer-field { min-height: 34px; }
.cdd-att-row { display: flex; align-items: center; gap: 6px; }

/* ── Snapshot markup ─────────────────────────────────────────────── */
/* While a snapshot is taken, the picture is the page: everything of Inlay's is
   hidden for that one frame, and no outline (ours or a hover's) is drawn. */
.ui.cdd-capturing .cdd-dock, .ui.cdd-capturing .cdd-comments, .ui.cdd-capturing .cdd-comment-nav,
.ui.cdd-capturing .cdd-window, .ui.cdd-capturing .cdd-window-backdrop, .ui.cdd-capturing .cdd-modal-backdrop,
.ui.cdd-capturing .cdd-notif-bell, .ui.cdd-capturing .cdd-notif-panel, .ui.cdd-capturing .cdd-toast,
.ui.cdd-capturing .cdd-rte-toolbar, .ui.cdd-capturing .cdd-rte-colors, .ui.cdd-capturing .cdd-orb,
.ui.cdd-capturing .cdd-orb-pop, .ui.cdd-capturing .cdd-edit-badge, .ui.cdd-capturing .cdd-secmove,
.ui.cdd-capturing .cdd-draft-pill, .ui.cdd-capturing .cdd-entry-pill, .ui.cdd-capturing .cdd-cms-open,
.ui.cdd-capturing .cdd-preview-banner, .ui.cdd-capturing .cdd-photo-move,
.ui.cdd-capturing [class^="cdd-tour"] { visibility: hidden !important; }
.ui.cdd-capturing * { outline-color: transparent !important; }
.cdd-snap-backdrop { padding: 16px; }
.cdd-snap {
  display: flex; flex-direction: column; gap: 10px; max-width: calc(100vw - 32px); max-height: calc(100vh - 32px);
  padding: 12px; background: var(--cdd-bg-strong); border: 1px solid var(--cdd-stroke); border-radius: 16px;
  box-shadow: var(--cdd-shadow); font-family: var(--cdd-font); color: var(--cdd-fg);
}
.cdd-snap-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cdd-snap-group { display: flex; align-items: center; gap: 4px; padding-right: 8px; border-right: 1px solid var(--cdd-stroke-soft); }
.cdd-snap-tool.cdd-active { background: var(--cdd-accent); color: #fff; border-color: transparent; }
.cdd-snap-color {
  width: 22px; height: 22px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 2px solid var(--cdd-bg-strong); box-shadow: 0 0 0 1px var(--cdd-stroke);
}
.cdd-snap-color.cdd-active { box-shadow: 0 0 0 2px var(--cdd-fg); }
.cdd-snap-color:focus-visible, .cdd-snap-tool:focus-visible { outline: 2px solid var(--cdd-accent); outline-offset: 2px; }
.cdd-snap-stage { min-height: 0; display: flex; justify-content: center; overflow: auto; border-radius: 10px; background: #000; }
.cdd-snap-canvas {
  display: block; max-width: 100%; max-height: calc(100vh - 130px); width: auto; height: auto;
  cursor: crosshair; touch-action: none;
}
.cdd-att-btn { padding: 4px 9px; font-size: 11px; display: inline-flex; align-items: center; gap: 4px; }
.cdd-att-btn svg { width: 12px; height: 12px; }
.cdd-att-strip { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.cdd-att {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  border-radius: 8px; border: 1px solid var(--cdd-stroke-soft); background: var(--cdd-bg-elev);
}
.cdd-att-img { width: 44px; height: 44px; background-size: cover; background-position: center; }
.cdd-att-file { max-width: 160px; height: 44px; padding: 0 9px; color: var(--cdd-fg-2); font-size: 11.5px; }
.cdd-att-file svg { width: 14px; height: 14px; flex: none; }
.cdd-att-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Remove control on a composer chip. Small, but the chip is only 44px and the
   alternative is no way back from a mis-picked file. */
.cdd-att-x {
  position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; padding: 0;
  display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--cdd-stroke); background: var(--cdd-bg-strong); color: var(--cdd-fg-2);
}
.cdd-att-x:hover { color: var(--cdd-danger); border-color: var(--cdd-danger); }
.cdd-att-x svg { width: 10px; height: 10px; }
.cdd-att-open { padding: 0; border: 0; background: transparent; cursor: pointer; line-height: 0; }
.cdd-att-open:focus-visible { outline: 2px solid var(--cdd-accent); outline-offset: 2px; border-radius: 8px; }
/* Auto-linked URLs. Underlined as well as colored — a comment card is dense and
   color alone is not a distinction everyone can see (WCAG 1.4.1). */
.cdd-autolink { color: var(--cdd-accent); text-decoration: underline; word-break: break-word; }
.cdd-msg-text a { color: var(--cdd-accent); text-decoration: underline; word-break: break-word; }
.cdd-msg-text p { margin: 0 0 .4em; }
.cdd-msg-text ul, .cdd-msg-text ol { padding-left: 18px; margin: .3em 0; }
.cdd-msg-text img { max-width: 100%; height: auto; border-radius: 6px; }
.cdd-reply-send { align-self: flex-end; padding: 5px 10px; }
.cdd-reply-send svg { width: 12px; height: 12px; }
/* Notes: one author, so the pin carries the tool's glyph instead of an initial. */
.cdd-pin-glyph { width: 15px; height: 15px; color: #1b1200; }
.cdd-comment-nav-aside { font-size: 11.5px; color: var(--cdd-fg-3); padding: 4px 8px 6px; }

/* ── Responsive device preview ──────────────────────────────────── */
.cdd-device {
  position: fixed; inset: 0; z-index: 2147483005; background: #07080a;
  display: flex; flex-direction: column; animation: cdd-card-in 200ms var(--cdd-spring) both;
}
.cdd-device-bar {
  display: flex; align-items: center; gap: 16px; padding: 12px 16px;
  border-bottom: 1px solid var(--cdd-stroke-soft); color: var(--cdd-fg); font-family: var(--cdd-font);
}
.cdd-device-switch { display: inline-flex; gap: 2px; padding: 3px; background: var(--cdd-bg-strong); border: 1px solid var(--cdd-stroke-soft); border-radius: 10px; }
.cdd-device-btn {
  display: inline-flex; align-items: center; gap: 6px; font-family: inherit; font-size: 12.5px; font-weight: 500;
  color: var(--cdd-fg-3); border: 0; background: transparent; padding: 6px 12px; border-radius: 7px; cursor: pointer;
}
.cdd-device-btn svg { width: 15px; height: 15px; }
.cdd-device-btn.cdd-active { background: var(--cdd-fill-hover); color: var(--cdd-fg); }
.cdd-device-dims { font-size: 12px; color: var(--cdd-fg-3); font-family: var(--cdd-font); }
.cdd-device-close { margin-left: auto; width: 32px; height: 32px; border: 0; background: var(--cdd-fill); color: var(--cdd-fg); border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.cdd-device-close svg { width: 16px; height: 16px; }
.cdd-device-stage { flex: 1; display: grid; place-items: center; overflow: auto; padding: 24px; }
.cdd-device-frame { border: 0; background: #fff; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px var(--cdd-stroke); }

/* ── Draft preview banner ───────────────────────────────────────── */
/* Never-published entries on an editor's page (draft-entries.ts). Preview is
   the page as visitors see it, so there they're gone. */
.cdd-draft-entry { outline: 2px dashed rgba(255, 159, 10, .85) !important; outline-offset: 3px; }
.cdd-draft-pill {
  /* Top-right: a card's own tag or category usually sits top-left. */
  position: absolute; top: 10px; right: 10px; z-index: 5; pointer-events: auto;
  font-family: var(--cdd-font); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  line-height: 1; padding: 5px 9px; border-radius: 999px; color: #1c1300; background: #ffb340;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}
.ui.cdd-preview .cdd-draft-entry { display: none !important; }
.cdd-preview-banner {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 2147483000;
  display: flex; align-items: center; gap: 8px; max-width: calc(100vw - 24px);
  background: var(--cdd-bg-strong); color: var(--cdd-fg); border: 1px solid var(--cdd-stroke);
  padding: 7px 14px; border-radius: 999px; font: 500 12px var(--cdd-font); box-shadow: var(--cdd-shadow);
}
.cdd-preview-banner svg { width: 14px; height: 14px; flex: none; color: #ffd60a; }
.cdd-preview-exit { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; color: var(--cdd-accent); font-weight: 600; white-space: nowrap; }
.cdd-preview-exit:hover, .cdd-preview-exit:focus-visible { text-decoration: underline; }

/* ── Toast ──────────────────────────────────────────────────────── */
.cdd-toast {
  position: fixed; bottom: 78px; left: 50%; transform: translateX(-50%);
  z-index: 2147483001; background: var(--cdd-bg-strong); color: var(--cdd-fg);
  padding: 8px 16px; border-radius: 10px; border: 1px solid var(--cdd-stroke);
  font: 500 13px var(--cdd-font); box-shadow: var(--cdd-shadow);
  opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none;
}
.cdd-toast.cdd-show { opacity: 1; transform: translate(-50%, -4px); }

/* ── Media widget (image picker / cropper / lightbox) ───────────── */
.cdd-mw-preview { position: relative; border-radius: 12px; overflow: hidden; background: var(--cdd-bg-elev); border: 1px solid var(--cdd-stroke-soft); margin-bottom: 10px; }
.cdd-mw-preview-img { display: block; width: 100%; height: 150px; background-size: cover; background-position: center; }
/* Preview actions (Crop, Focus point) sit in one corner bar. They must NOT be
   positioned individually — a shared absolute rule pinned every button to the
   same corner, so they stacked on top of each other. Each also carries its own
   dark chip: white text straight over a photo is unreadable the moment the
   image is light, which is most headshots. */
.cdd-mw-preview-actions {
  position: absolute; right: 8px; bottom: 8px; z-index: 2;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end;
  max-width: calc(100% - 16px);
}
.cdd-mw-preview-actions .cdd-btn {
  background: rgba(12, 14, 18, 0.78); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); backdrop-filter: blur(6px);
}
.cdd-mw-preview-actions .cdd-btn:hover:not([disabled]) { background: var(--cdd-accent); border-color: transparent; }
.cdd-mw-preview-actions .cdd-btn[disabled] { opacity: 0.45; }
.cdd-mw-source { margin: 8px 0; }
.cdd-mw-grid { max-height: 220px; overflow: auto; }
.cdd-mw-grid .cdd-asset-cell { cursor: pointer; }
.cdd-mw-grid .cdd-asset-cell:hover { outline: 2px solid var(--cdd-accent); outline-offset: 1px; }
.cdd-mw-sublabel { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--cdd-fg-3); margin: 10px 0 6px; }
.cdd-cover-actions { display: flex; align-items: center; gap: 10px; margin-top: 8px; }

/* file field — the attached document's name/size, and its actions */
.cdd-file-field { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cdd-file-info { flex: 1; min-width: 0; font-size: 12px; color: var(--cdd-fg-2); overflow-wrap: anywhere; }
.cdd-file-actions { display: flex; align-items: center; gap: 10px; }

.cdd-crop-stage { position: relative; display: inline-block; max-width: 100%; margin: 0 auto; user-select: none; touch-action: none; }
.cdd-crop-img { display: block; max-width: 100%; max-height: 340px; -webkit-user-drag: none; }
.cdd-crop-rect { position: absolute; box-shadow: 0 0 0 9999px rgba(0,0,0,.5); border: 1px solid #fff; cursor: move; }
.cdd-crop-h { position: absolute; width: 12px; height: 12px; background: #fff; border-radius: 2px; }
.cdd-crop-nw { left: -6px; top: -6px; cursor: nwse-resize; }
.cdd-crop-ne { right: -6px; top: -6px; cursor: nesw-resize; }
.cdd-crop-sw { left: -6px; bottom: -6px; cursor: nesw-resize; }
.cdd-crop-se { right: -6px; bottom: -6px; cursor: nwse-resize; }

/* Focus-point picker: the whole image with a draggable crosshair marking the
   point that should stay centred. */
.cdd-focus-hint { font-size: 12.5px; color: var(--cdd-fg-2); line-height: 1.5; margin: 0 0 12px; }
.cdd-focus-stage { position: relative; display: inline-block; max-width: 100%; margin: 0 auto; line-height: 0; cursor: crosshair; border-radius: 8px; overflow: hidden; user-select: none; touch-action: none; }
.cdd-focus-img { display: block; max-width: 100%; max-height: 340px; -webkit-user-drag: none; }
.cdd-focus-marker {
  position: absolute; width: 28px; height: 28px; transform: translate(-50%, -50%); pointer-events: none;
  border: 2px solid #fff; border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(0,0,0,.5), 0 1px 8px rgba(0,0,0,.6);
}
.cdd-focus-marker::after {
  content: ''; position: absolute; inset: 10px; border-radius: 50%; background: var(--cdd-accent);
  box-shadow: 0 0 0 1.5px #fff;
}

.cdd-lightbox-backdrop { position: fixed; inset: 0; z-index: 2147483012; background: rgba(0,0,0,.8); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 32px; animation: cdd-card-in 160ms ease both; }
.cdd-lightbox-img { max-width: 90vw; max-height: 78vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.cdd-lightbox-bar { display: flex; align-items: center; gap: 10px; width: min(720px, 90vw); color: var(--cdd-fg); }
.cdd-lightbox-cap { font: 500 13px var(--cdd-font); color: var(--cdd-fg-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Notification tray (always-on, bottom-right) ────────────────── */
.cdd-notif-tray { position: fixed; right: 20px; bottom: 20px; z-index: 2147483001; font-family: var(--cdd-font); }
/* A rounded-square button matching the dock: same height, solid dark fill, dim
   icon that brightens on hover; opening it accents the border (stays dark). */
.cdd-notif-bell {
  position: relative; width: 48px; height: 48px; border-radius: 14px;
  border: 1px solid var(--cdd-stroke); background: var(--cdd-bg-strong); color: var(--cdd-fg-2);
  box-shadow: var(--cdd-shadow); cursor: pointer; display: grid; place-items: center;
  transition: color 160ms ease, border-color 160ms ease, transform 120ms ease;
}
.cdd-notif-bell:hover { color: var(--cdd-fg); }
.cdd-notif-bell:active { transform: scale(0.96); }
.cdd-notif-bell svg { width: 20px; height: 20px; }
.cdd-notif-tray.cdd-on .cdd-notif-bell { color: var(--cdd-fg); border-color: var(--cdd-accent); }
.cdd-notif-badge {
  position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--cdd-danger); color: #fff; font-size: 10.5px; font-weight: 700;
  line-height: 1; display: none; place-items: center; border: 2px solid var(--cdd-bg-strong);
}
.cdd-notif-panel {
  position: absolute; right: 0; bottom: 64px; width: 320px; max-height: min(70vh, 460px);
  display: none; flex-direction: column; background: var(--cdd-bg); border: 1px solid var(--cdd-stroke);
  border-radius: 14px; box-shadow: var(--cdd-shadow); overflow: hidden; animation: cdd-card-in 160ms ease both;
}
.cdd-notif-tray.cdd-on .cdd-notif-panel { display: flex; }
.cdd-notif-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--cdd-stroke); }
.cdd-notif-title { font-size: 13px; font-weight: 700; color: var(--cdd-fg); }
.cdd-notif-action {
  display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--cdd-stroke);
  background: var(--cdd-fill); color: var(--cdd-fg-2); border-radius: 999px; padding: 4px 9px;
  font: 600 11px var(--cdd-font); cursor: pointer;
}
.cdd-notif-action:hover { color: var(--cdd-fg); background: var(--cdd-fill-hover); }
.cdd-notif-action svg { width: 13px; height: 13px; }
.cdd-notif-list { overflow-y: auto; padding: 6px; }
.cdd-notif-section {
  display: flex; align-items: center; gap: 6px; width: 100%; text-align: left; background: transparent;
  border: 0; color: var(--cdd-fg-3); font: 700 10px var(--cdd-font); text-transform: uppercase;
  letter-spacing: .05em; padding: 8px 8px 4px;
}
.cdd-notif-toggle { cursor: pointer; }
.cdd-notif-toggle:hover { color: var(--cdd-fg-2); }
.cdd-notif-chev { margin-left: auto; }
.cdd-notif-empty { color: var(--cdd-fg-3); font-size: 12.5px; text-align: center; padding: 24px 12px; }

/* Announcement composer header image */
.cdd-ann-image-thumb { display: none; width: 100%; height: 120px; border-radius: 10px; background-size: cover; background-position: center; background-color: var(--cdd-bg-elev); border: 1px solid var(--cdd-stroke-soft); margin-bottom: 8px; }

/* ── Team Drafts panel ──────────────────────────────────────────── */
.cdd-draft-divider { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--cdd-fg-3); margin: 18px 0 8px; padding-top: 12px; border-top: 1px solid var(--cdd-stroke); }
.cdd-draft-row {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 8px 6px 8px 4px; border: 0; border-bottom: 1px dashed var(--cdd-stroke);
  border-radius: 8px; background: transparent; color: inherit; font: inherit; cursor: pointer;
}
.cdd-draft-row:hover { background: var(--cdd-fill); }
.cdd-draft-row:hover .cdd-draft-go { opacity: 1; transform: none; }
.cdd-draft-ico { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 8px; background: var(--cdd-fill); color: var(--cdd-fg-3); }
.cdd-draft-ico svg { width: 14px; height: 14px; }
.cdd-draft-main { min-width: 0; flex: 1; }
.cdd-draft-preview { font-size: 13px; color: var(--cdd-fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cdd-draft-time { font-size: 11.5px; color: var(--cdd-fg-3); display: flex; gap: 6px; min-width: 0; }
.cdd-draft-page { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cdd-draft-page::before { content: '·'; margin-right: 6px; }
.cdd-draft-go { flex: none; color: var(--cdd-fg-3); opacity: 0; transform: translateX(-3px); transition: opacity .14s, transform .14s; }
.cdd-draft-go svg { width: 14px; height: 14px; display: block; }

/* The element a draft row (or a deep link) sent you to — a brief ring so it's
   obvious which of several similar-looking blocks was meant. */
.cdd-jump-flash { animation: cdd-jump-flash 1.4s ease-out 1; border-radius: 4px; }
@keyframes cdd-jump-flash {
  0%, 60% { box-shadow: 0 0 0 3px var(--cdd-affordance-strong, #375de7), 0 0 0 8px rgba(55,93,231,.22); }
  100% { box-shadow: 0 0 0 3px rgba(55,93,231,0), 0 0 0 8px rgba(55,93,231,0); }
}

/* ── Team / invitations ─────────────────────────────────────────── */
.cdd-team-invite { display: flex; align-items: flex-end; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.cdd-team-invite .cdd-field { margin-top: 0; }
.cdd-team-invite .cdd-field[hidden] { display: none; }
.cdd-team-invite .cdd-team-email { flex: 1 1 100%; }
.cdd-team-invite .cdd-field:not(.cdd-team-email) { flex: 1; }
.cdd-team-invite .cdd-select { padding-right: 30px; }
.cdd-team-invite .cdd-btn { height: 38px; }
.cdd-team-error { font-size: 12.5px; color: #ffb4ab; margin: 0 0 10px; }

/* ── Backups / restore points ───────────────────────────────────── */
.cdd-backup-create { display: flex; gap: 8px; margin-bottom: 8px; }
.cdd-backup-create .cdd-input { flex: 1; }
.cdd-backup-row { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-bottom: 1px solid var(--cdd-stroke-soft); }
.cdd-backup-row:last-child { border-bottom: 0; }
.cdd-backup-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.cdd-diff-summary { display: flex; gap: 10px; margin: 4px 0 12px; font-size: 12.5px; font-weight: 600; }
.cdd-diff-add { color: #6ee89c; }
.cdd-diff-change { color: #ffe066; }
.cdd-diff-remove { color: #ff8a80; }
.cdd-modal.cdd-confirm { width: min(420px, 100%); }
.cdd-modal-actions { display: flex; align-items: center; gap: 8px; margin-top: 16px; }

/* ── Analytics ──────────────────────────────────────────────────── */
.cdd-analytics-range { margin-bottom: 14px; }
.cdd-stat-row { display: flex; gap: 10px; margin-bottom: 18px; }
.cdd-stat {
  flex: 1; min-width: 0; padding: 14px 16px; border-radius: 12px;
  background: var(--cdd-bg-elev); border: 1px solid var(--cdd-stroke-soft);
}
/* Tabular figures so the two tiles don't jiggle relative to each other as the
   numbers change width between ranges. */
.cdd-stat-value { font-size: 28px; font-weight: 700; color: var(--cdd-fg); line-height: 1.1; font-variant-numeric: tabular-nums; }
.cdd-stat-label { font-size: 12px; font-weight: 600; color: var(--cdd-fg-2); margin-top: 4px; }
.cdd-stat-hint { font-size: 11px; color: var(--cdd-fg-3); margin-top: 1px; }
.cdd-analytics-section { margin-bottom: 18px; }
.cdd-analytics-title { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--cdd-fg-3); margin: 0 0 8px; }
.cdd-analytics-empty { font-size: 12.5px; color: var(--cdd-fg-3); padding: 8px 0; }
.cdd-analytics-foot { margin-top: 4px; }

/* Views per day. A flex row of bars that share the width, so 7 days and 90 days
   both fill the panel instead of one of them scrolling. */
.cdd-chart { display: flex; align-items: flex-end; gap: 2px; height: 96px; margin: 0; padding: 0; list-style: none; }
.cdd-chart-col { flex: 1; min-width: 0; height: 100%; display: flex; align-items: flex-end; }
.cdd-chart-bar { width: 100%; border-radius: 3px 3px 0 0; background: var(--cdd-accent); transition: background .12s var(--cdd-ease); }
.cdd-chart-col:hover .cdd-chart-bar { background: var(--cdd-fg); }
/* A day with no visits is still a day: a hairline in the muted color, never a
   gap that reads as missing data. */
.cdd-chart-bar.cdd-zero { background: var(--cdd-stroke); }
.cdd-chart-axis { display: flex; margin-top: 6px; font-size: 11px; color: var(--cdd-fg-3); }
@media (prefers-reduced-motion: reduce) {
  .cdd-chart-bar { transition: none; }
}

/* Ranked lists (pages, referrers, devices). The bar is a background behind the
   label rather than beside it, so a long path keeps the full panel width. */
.cdd-rank { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 3px; }
.cdd-rank-row {
  position: relative; display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: 8px; overflow: hidden; background: var(--cdd-bg-elev);
}
.cdd-rank-fill { position: absolute; inset: 0 auto 0 0; background: rgba(55,93,231,.22); }
.cdd-rank-label { position: relative; flex: 1; min-width: 0; font-size: 12.5px; color: var(--cdd-fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cdd-rank-value { position: relative; flex: none; font-size: 11.5px; color: var(--cdd-fg-2); font-variant-numeric: tabular-nums; }

/* ── Activity feed ──────────────────────────────────────────────── */
.cdd-activity-list { display: flex; flex-direction: column; }
.cdd-activity-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 4px; border-bottom: 1px dashed var(--cdd-stroke); }
.cdd-activity-row:last-child { border-bottom: 0; }
.cdd-activity-ico { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 8px; background: var(--cdd-fill); color: var(--cdd-fg-2); }
.cdd-activity-ico svg { width: 14px; height: 14px; }
.cdd-activity-main { min-width: 0; flex: 1; }
.cdd-activity-line { font-size: 13px; color: var(--cdd-fg-2); }
/* Unmatched-edit row actions (Copy text / Discard) and the Discard-all bar. */
.cdd-orphan-actions { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.cdd-orphan-bar { display: flex; align-items: center; padding: 4px 0 8px; }
.cdd-activity-line strong { color: var(--cdd-fg); font-weight: 600; }
.cdd-activity-target { color: var(--cdd-fg); font-weight: 500; }
.cdd-activity-detail { font-size: 12px; color: var(--cdd-fg-3); margin-top: 1px; }
.cdd-activity-time { font-size: 11px; color: var(--cdd-fg-3); margin-top: 2px; }

/* ── SEO & social ───────────────────────────────────────────────── */
.cdd-seo-previews { margin-bottom: 14px; }
.cdd-preview-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--cdd-fg-3); margin: 12px 0 6px; }
.cdd-preview-label:first-child { margin-top: 0; }
.cdd-serp { background: #fff; border-radius: 10px; padding: 12px 14px; }
.cdd-serp-url { color: #202124; font-size: 12px; }
.cdd-serp-title { color: #1a0dab; font-size: 16px; line-height: 1.3; margin: 2px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cdd-serp-desc { color: #4d5156; font-size: 12.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cdd-social-card { border: 1px solid var(--cdd-stroke-soft); border-radius: 10px; overflow: hidden; background: var(--cdd-bg-elev); }
.cdd-social-img { height: 140px; background-size: cover; background-position: center; background-color: #0a0c10; }
.cdd-social-img-empty { display: grid; place-items: center; }
.cdd-social-img-empty::after { content: 'og:image'; color: var(--cdd-fg-3); font-size: 11px; letter-spacing: .05em; }
.cdd-social-body { padding: 10px 12px; }
.cdd-social-host { font-size: 11px; text-transform: uppercase; letter-spacing: .03em; color: var(--cdd-fg-3); }
.cdd-social-title { font-size: 14px; font-weight: 600; color: var(--cdd-fg); margin: 2px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cdd-social-desc { font-size: 12px; color: var(--cdd-fg-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cdd-check-row { display: flex; align-items: center; gap: 9px; margin-top: 12px; font-size: 13px; color: var(--cdd-fg-2); cursor: pointer; }
.cdd-check-row input { width: 16px; height: 16px; accent-color: var(--cdd-accent); }
.cdd-seo-status { font-size: 12px; color: var(--cdd-fg-3); }

/* ── Forms & submissions ────────────────────────────────────────── */
.cdd-sub-card { border: 1px solid var(--cdd-stroke-soft); border-radius: 12px; background: var(--cdd-bg-elev); padding: 10px 12px; margin-bottom: 10px; }
.cdd-sub-head { display: flex; align-items: center; }
.cdd-sub-time { font-size: 11.5px; color: var(--cdd-fg-3); }
.cdd-sub-fields { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.cdd-sub-field { display: grid; grid-template-columns: 34% 1fr; gap: 10px; font-size: 13px; }
.cdd-sub-key { color: var(--cdd-fg-3); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.cdd-sub-val { color: var(--cdd-fg); word-break: break-word; white-space: pre-wrap; }

/* ── "More" dock popup ──────────────────────────────────────────── */
.cdd-more { position: relative; display: inline-flex; }
.cdd-more-menu {
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  min-width: 184px; display: none; flex-direction: column; padding: 6px; z-index: 10;
  background: var(--cdd-bg-strong); border: 1px solid var(--cdd-stroke); border-radius: 12px;
  box-shadow: var(--cdd-shadow); animation: cdd-card-in 140ms ease both;
}
.cdd-more.cdd-open .cdd-more-menu { display: flex; }
.cdd-more-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0;
  background: transparent; color: var(--cdd-fg); font-family: inherit; font-size: 13px;
  font-weight: 500; padding: 9px 10px; border-radius: 8px; cursor: pointer; transition: background .14s;
}
.cdd-more-item:hover { background: var(--cdd-fill); }
.cdd-more-item svg { width: 16px; height: 16px; opacity: .9; flex: none; }
.cdd-more-label { flex: 1; }
.cdd-more-badge {
  margin-left: auto; min-width: 18px; height: 18px; padding: 0 6px; border-radius: 999px;
  background: var(--cdd-accent); color: #fff; font-size: 11px; font-weight: 700; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
/* Sign out inside the More menu: desktop already has the dock's own icon-only
   sign-out button, so this stays hidden there — shown only at mobile widths
   (see max-width:640px), where that button is dropped. */
.cdd-more-item-signout { display: none; }

/* ── Tutorial (walkthrough video) ───────────────────────────────── */
.cdd-tutorial-stage {
  position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px;
  overflow: hidden; background: #000; border: 1px solid var(--cdd-stroke);
}
.cdd-tutorial-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
/* Load failure: the stage stops being a black video box and becomes a message. */
.cdd-tutorial-stage-failed { background: var(--cdd-fill); }
.cdd-tutorial-failed {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 6px; padding: 20px; text-align: center;
}
.cdd-tutorial-failed strong { font-size: 13.5px; font-weight: 700; color: var(--cdd-fg); }
.cdd-tutorial-failed span { font-size: 12.5px; color: var(--cdd-fg-3); max-width: 44ch; }
.cdd-tutorial-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 12px; color: var(--cdd-fg-3); }
.cdd-tutorial-foot svg { width: 15px; height: 15px; flex: none; }
.cdd-tutorial-note { font-size: 12px; flex: 1 1 calc(100% - 23px); }
a.cdd-btn { text-decoration: none; }
.cdd-tutorial-guide { margin-top: 14px; }
.cdd-tutorial-tour {
  display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 12px 14px; border-radius: 12px;
  background: var(--cdd-fill); border: 1px solid var(--cdd-stroke);
}
.cdd-tutorial-tour-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cdd-tutorial-tour-text strong { font-size: 13.5px; font-weight: 700; color: var(--cdd-fg); }
.cdd-tutorial-tour-text span { font-size: 12.5px; color: var(--cdd-fg-3); }

/* ── Interactive tour (tour.ts) ─────────────────────────────────────
   The shade covers the whole page — dock and tool windows included — and a
   clip-path cuts the hole for the current step, which is also the only place
   a click gets through. The toast rises above it so a refused practice write
   is still readable. */
.cdd-tour-shade {
  position: fixed; inset: 0; z-index: 2147483007; background: rgba(8, 10, 14, .55);
}
.cdd-tour-blocker { position: fixed; inset: 0; z-index: 2147483007; display: none; }
.cdd-tour-ring {
  position: fixed; top: 0; left: 0; z-index: 2147483008; pointer-events: none; display: none;
  border: 2px solid var(--cdd-accent); border-radius: 10px;
  box-shadow: 0 0 0 4px rgba(55, 93, 231, .25);
}
.cdd-tour-glide .cdd-tour-ring { transition: transform 220ms var(--cdd-ease), width 220ms var(--cdd-ease), height 220ms var(--cdd-ease); }
.cdd-tour-glide .cdd-tour-card { transition: transform 220ms var(--cdd-ease); }
.cdd-tour-card {
  position: fixed; top: 0; left: 0; z-index: 2147483009; width: min(340px, calc(100vw - 32px));
  box-sizing: border-box; padding: 16px; border-radius: 14px;
  background: var(--cdd-bg-strong); border: 1px solid var(--cdd-stroke); box-shadow: var(--cdd-shadow);
  font-family: var(--cdd-font); color: var(--cdd-fg); outline: none;
}
.cdd-tour-card:focus-visible { outline: 2px solid var(--cdd-accent); outline-offset: 2px; }
.cdd-tour-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.cdd-tour-count { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cdd-fg-3); }
.cdd-tour-practice {
  font-size: 11px; font-weight: 600; color: var(--cdd-accent-hover);
  background: rgba(55, 93, 231, .14); border-radius: 999px; padding: 2px 8px;
}
.cdd-tour-title { font-family: var(--cdd-font); color: var(--cdd-fg); line-height: 1.3; font-size: 16px; font-weight: 700; margin: 0 0 6px; letter-spacing: -.01em; text-transform: none; }
.cdd-tour-body { font-family: var(--cdd-font); font-size: 13.5px; line-height: 1.55; color: var(--cdd-fg-2); margin: 0; }
.cdd-tour-task {
  display: flex; align-items: flex-start; flex-wrap: wrap; gap: 4px 8px; margin-top: 12px; padding: 10px 12px;
  border-radius: 10px; background: var(--cdd-fill); border: 1px dashed var(--cdd-stroke);
  font-size: 13px; line-height: 1.45; color: var(--cdd-fg);
}
.cdd-tour-task > svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--cdd-accent-hover); }
.cdd-tour-task > span { flex: 1 1 calc(100% - 23px); }
.cdd-tour-task .cdd-link { margin-left: 23px; }
.cdd-tour-task.cdd-done { border-style: solid; border-color: rgba(52, 199, 89, .45); }
.cdd-tour-task.cdd-done > svg { color: var(--cdd-ok); }
.cdd-tour-foot { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.cdd-tour-foot .cdd-btn[disabled] { opacity: .45; cursor: not-allowed; }
.ui.cdd-touring .cdd-toast { z-index: 2147483009; }
/* The tour points at the dock, so the dock stays up while it runs. */
.ui.cdd-touring .cdd-dock.cdd-tucked { transform: translateX(-50%); }
@media (prefers-reduced-motion: reduce) {
  .cdd-tour-glide .cdd-tour-ring, .cdd-tour-glide .cdd-tour-card { transition: none; }
}
.cdd-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── SEO: the "give this to your AI" prompt ─────────────────────── */
.cdd-seo-prompt {
  margin: 0 0 14px; padding: 12px; border-radius: 12px;
  background: var(--cdd-fill); border: 1px solid var(--cdd-stroke);
  animation: cdd-card-in 160ms ease both;
}
.cdd-seo-prompt-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.cdd-seo-prompt-title { font-size: 12.5px; font-weight: 700; color: var(--cdd-fg); }
.cdd-seo-prompt-text {
  margin-top: 9px; width: 100%; resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px; line-height: 1.5;
}

/* ── Link type switcher (URL / Email / Phone) ───────────────────── */
.cdd-linktype {
  display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px;
  background: var(--cdd-fill); border: 1px solid var(--cdd-stroke);
}
.cdd-linktype-btn {
  display: grid; place-items: center; width: 34px; height: 30px; padding: 0;
  border: 0; border-radius: 7px; background: transparent; color: var(--cdd-fg-3);
  cursor: pointer; transition: background .14s, color .14s;
}
.cdd-linktype-btn:hover { color: var(--cdd-fg); background: var(--cdd-fill-hover); }
.cdd-linktype-btn.cdd-active { background: var(--cdd-bg-strong); color: var(--cdd-fg); box-shadow: 0 1px 3px rgba(0,0,0,.28); }
.cdd-linktype-btn svg { width: 15px; height: 15px; }

/* Per-page SEO button in the Pages panel */
.cdd-page-seo {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px;
  border-radius: 7px; flex: none; border: 1px solid var(--cdd-stroke);
  color: var(--cdd-fg-2); cursor: pointer; transition: background .14s, color .14s, border-color .14s;
}
.cdd-page-seo:hover { background: var(--cdd-fill); color: var(--cdd-fg); border-color: var(--cdd-stroke-soft); }
.cdd-page-seo svg { width: 13px; height: 13px; flex: none; }
.cdd-page-seo-label { font-size: 11.5px; font-weight: 600; letter-spacing: .01em; }
/* Emergency takedown control on a page row: red while it would hide the page,
   green-ish once it would bring it back. */
.cdd-page-takedown { color: #ff8a80; border-color: rgba(255,69,58,.35); width: 26px; padding: 0; justify-content: center; }
.cdd-page-takedown svg { width: 14px; height: 14px; }
.cdd-page-takedown:hover { background: rgba(255,69,58,.12); color: #ffb4ab; border-color: rgba(255,69,58,.5); }
.cdd-page-takedown.cdd-page-restore { color: #6ee89c; border-color: rgba(48,209,88,.35); }
.cdd-page-takedown.cdd-page-restore:hover { background: rgba(48,209,88,.12); color: #8ff0b3; border-color: rgba(48,209,88,.5); }

/* ── Mobile & touch ─────────────────────────────────────────────────
   Kept LAST so these overrides win over equal-specificity base rules. */

/* The bottom-sheet backdrop (mobile only — desktop windows float, no backdrop). */
.cdd-window-backdrop {
  display: none; position: fixed; inset: 0; z-index: 2147483001;
  background: rgba(0, 0, 0, 0.45); animation: cdd-card-in 200ms ease both; transition: opacity 200ms ease;
}
/* Modal windows (the expanded editor) dim + blur the page on desktop too, so
   the site recedes the way it does behind the responsive-preview overlay. */
.cdd-window-backdrop.cdd-backdrop-modal {
  display: block; background: rgba(6, 8, 11, 0.55);
  -webkit-backdrop-filter: blur(7px) saturate(0.85);
  backdrop-filter: blur(7px) saturate(0.85);
}
@keyframes cdd-sheet-in { from { opacity: 0; transform: translateY(100%); } to { opacity: 1; transform: none; } }
@keyframes cdd-sheet-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(100%); } }


