/* Owner: W2-EDITOR-A / W3-EDITOR-B (slide editor).
   Root: .workspace.slide-editor.  The editor's dialogs carry .modal.slide-dialog.
   Unscoped (dialog content, shared with the compare table): .diff-row, .extra-sections. */

/* =====================================================================
   Frame: editor bar / inspector | preview / action bar
   ===================================================================== */
.workspace.slide-editor {
  display: grid; grid-template-columns: var(--inspector-w) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto;
  flex: 1 1 auto; min-height: 0; min-width: 0; background: var(--canvas);
}
.slide-editor > .editor-bar { grid-column: 1 / -1; grid-row: 1; }
.slide-editor > .inspector {
  grid-column: 1; grid-row: 2; min-height: 0; min-width: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  background: var(--surface); border-right: 1px solid var(--line); padding: 12px 14px;
  scroll-padding-top: 84px; scroll-padding-bottom: 96px;
}
.slide-editor > .ws-center { grid-column: 2; grid-row: 2; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.slide-editor > .action-bar { grid-column: 1 / -1; grid-row: 3; }

/* Editor bar */
.slide-editor .editor-state { display: inline-flex; align-items: center; }

/* Action bar: the pill gives way first; the buttons never squash. */
.slide-editor .action-bar > :not(.status-pill):not(.spacer) { flex-shrink: 0; }
.slide-editor .action-bar .status-pill { flex: 0 1 auto; }
.slide-editor .action-bar .next-btn { gap: 6px; }

/* =====================================================================
   Preview
   ===================================================================== */
.slide-editor .preview-toolbar {
  display: flex; align-items: center; gap: 10px; height: var(--toolbar-h); padding: 0 14px; flex: 0 0 auto;
  background: var(--surface); border-bottom: 1px solid var(--line); flex-wrap: nowrap; overflow: hidden; min-width: 0;
}
.slide-editor .toolbar-end { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.slide-editor .zoom-slot, .slide-editor .zoom-wrap { display: inline-flex; }
.slide-editor .toolbar-end .proof-btn { height: 30px; }
.slide-editor .preview-toolbar .preview-size { flex-wrap: nowrap; gap: 6px; }
.slide-editor .design-cycle { display: inline-flex; align-items: center; gap: 2px; height: 30px; padding: 0 4px 0 10px; min-width: 0; flex: 0 1 auto; }
.slide-editor .design-cycle-label { font-size: 12px; font-weight: 600; color: var(--muted); margin-right: 2px; }
.slide-editor .design-cycle .btn.small { height: 24px; width: 24px; padding: 0; }
.slide-editor .design-cycle .design-name { min-width: 0; max-width: 260px; font-size: 13px; }
.slide-editor .design-count { font-size: 12px; color: var(--muted); padding: 0 6px 0 2px; font-variant-numeric: tabular-nums; white-space: nowrap; }

.slide-editor .preview-wrap {
  flex: 1 1 auto; min-height: 0; overflow: hidden; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: var(--stage);
}
/* Data colour: the slide's own blue behind the artwork while it draws. */
.slide-editor .preview-wrap svg { flex: 0 0 auto; max-width: 100%; max-height: 100%; box-shadow: var(--shadow-art); background: #39C7FF; display: block; }
.slide-svg .hit-group { cursor: pointer; }
.slide-svg .hit-group:hover .hit-rect { stroke: rgba(169,42,254,.6); }
.slide-svg .hit-group.selected .hit-rect { stroke: var(--accent); }
.slide-svg text { user-select: none; }
.slide-editor.drop-active .preview-wrap { outline: 3px dashed var(--accent); outline-offset: -6px; background: var(--accent-soft); }

/* =====================================================================
   Inspector: shared
   ===================================================================== */
.slide-editor .insp-callouts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.slide-editor .callout-link { font-size: 13px; font-weight: 600; color: var(--accent-ink); }
.slide-editor .btn-wrap { display: inline-flex; }
.slide-editor .link-btn {
  border: 0; background: transparent; padding: 0 2px; font: inherit; font-weight: 600; color: var(--accent-ink);
  cursor: pointer; text-decoration: underline; border-radius: 3px;
}

/* The head of a drill-in view stays in sight while its list scrolls. */
.slide-editor .insp-head {
  position: sticky; top: -12px; z-index: 3; margin: -12px -14px 10px; padding: 8px 14px 8px;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.slide-editor .insp-head-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; }
.slide-editor .insp-back { margin-left: -8px; color: var(--ink-2); }
.slide-editor .insp-head-tools { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.slide-editor .changes-switch { align-items: center; gap: 8px; }
.slide-editor .changes-switch .track { margin-top: 0; }
.slide-editor .changes-switch .switch-label { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.slide-editor .insp-title { display: flex; align-items: center; gap: 4px; margin-top: 2px; min-width: 0; }
.slide-editor .insp-title h2 { font-size: 16px; line-height: 22px; letter-spacing: .01em; overflow-wrap: anywhere; }
.slide-editor .insp-title .aside { margin-left: auto; padding-left: 8px; font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.slide-editor .insp-head-callout { margin-top: 8px; }

/* =====================================================================
   Inspector: home (tools, categories, about)
   ===================================================================== */
.slide-editor .insp-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.slide-editor .insp-drop-hint { margin: 6px 0 14px; }
.slide-editor .insp-label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 6px; }
.slide-editor .insp-label h3 { margin: 0; }
.slide-editor .insp-label-aside { font-size: 12px; color: var(--muted); text-align: right; }

.slide-editor .cat-list { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.slide-editor .cat-item {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 5px 6px 5px 10px;
  border: 1px solid transparent; border-radius: var(--r-md); background: transparent; color: var(--ink);
  font: inherit; text-align: left; cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.slide-editor .cat-item:hover { background: var(--surface-hover); border-color: var(--line); }
.slide-editor .cat-item[aria-current="true"] { background: var(--accent-soft); border-color: var(--accent-line); }
.slide-editor .cat-item .sw { width: 12px; height: 12px; border-radius: 3px; flex: 0 0 auto; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.slide-editor .cat-ico { display: inline-flex; color: var(--muted); flex: 0 0 auto; margin: 0 -2px; }
.slide-editor .cat-name { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.slide-editor .cat-title { font-size: 13px; font-weight: 700; line-height: 18px; letter-spacing: .01em; }
.slide-editor .cat-sub { font-size: 12px; line-height: 16px; color: var(--muted); }
.slide-editor .cat-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px; flex: 0 1 auto; }
.slide-editor .cat-meta .badge { height: 20px; padding: 0 7px; }
.slide-editor .cat-count { min-width: 22px; text-align: right; font-size: 13px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.slide-editor .cat-chev { display: inline-flex; color: var(--ink-disabled); flex: 0 0 auto; }
.slide-editor .cat-item:hover .cat-chev { color: var(--ink-2); }

.slide-editor .about-line { font-size: 13px; color: var(--ink-2); margin: 0 0 6px; overflow-wrap: anywhere; }
.slide-editor .about-list { margin: 0 0 8px; padding-left: 18px; font-size: 13px; color: var(--ink-2); }

/* The deals sheet's other sections, kept with the slide (not on the TV). */
.extra-sections { font-size: 12px; margin-top: 10px; }
.extra-sections .csv-cat { margin-top: 6px; }

/* =====================================================================
   Inspector: one category's deals
   ===================================================================== */
.slide-editor .fit-line { margin: 0 0 10px; }
.slide-editor .promo-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.slide-editor .promo-empty { margin: 4px 0; }
/* Changes only: what the list is showing, and the way back to every line. */
.slide-editor .filter-note {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 0 0 8px; padding: 6px 10px;
  font-size: 12px; color: var(--info-ink); background: var(--info-soft); border: 1px solid var(--info-line); border-radius: var(--r-md);
}
.slide-editor .filter-note .link-btn { font-size: 12px; }
/* Lines on the last slide that this one no longer has (display only). */
.slide-editor .gone-list {
  margin: -4px 0 12px; padding: 6px 10px; font-size: 12px; color: var(--muted);
  border: 1px dashed var(--line-strong); border-radius: var(--r-md);
}
.slide-editor .gone-head { font-weight: 600; color: var(--ink-2); }
.slide-editor .gone-list ul { margin: 2px 0 0; padding-left: 16px; }
.slide-editor .gone-list li { text-decoration: line-through; overflow-wrap: anywhere; }
.slide-editor .promo-row {
  position: relative; display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; column-gap: 6px; row-gap: 4px; align-items: start;
  padding: 5px 4px 5px 4px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
}
.slide-editor .promo-row .handle {
  grid-row: 1; grid-column: 1; display: flex; align-items: center; justify-content: center; height: 28px; border-radius: 4px;
  color: var(--ink-disabled); cursor: grab; user-select: none;
}
.slide-editor .promo-row .handle:hover { color: var(--ink-2); background: var(--surface-hover); }
.slide-editor .promo-row .handle:active { cursor: grabbing; }
.slide-editor textarea.promo-text {
  grid-row: 1; grid-column: 2; display: block; width: 100%; min-width: 0; min-height: 28px; height: 28px; margin: 0; padding: 4px 8px;
  font: 400 13px/18px var(--font-ui); color: var(--ink); resize: none; overflow: hidden;
  white-space: pre-wrap; overflow-wrap: anywhere; border-radius: var(--r-sm);
}
.slide-editor .promo-row > .menu-btn { grid-row: 1; grid-column: 3; height: 28px; }
.slide-editor .promo-controls { grid-row: 2; grid-column: 2 / 4; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.slide-editor .promo-controls .seg { padding: 1px; }
.slide-editor .promo-controls .seg-btn { height: 22px; padding: 0 8px; font-size: 12px; }
.slide-editor .promo-controls .btn.small { height: 24px; padding: 0 8px; font-size: 12px; gap: 4px; }
.slide-editor .promo-controls .badge { height: 20px; padding: 0 7px; }
.slide-editor .promo-flags { display: inline-flex; gap: 4px; }
/* A Box or Pink line's colours: small swatches with their names. */
.slide-editor .line-colours { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.slide-editor .line-colours:empty { display: none; }
.slide-editor .line-swatch { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-2); cursor: pointer; }
.slide-editor .line-swatch input[type="color"] { width: 22px; height: 22px; padding: 0; border: 1px solid var(--line-strong); border-radius: 4px; background: none; cursor: pointer; }
.slide-editor .line-colours .link-btn { font-size: 12px; }
.slide-editor .add-colours:empty { display: none; }
.slide-editor .add-colours { margin-top: 6px; }
.slide-editor .promo-flags:empty { display: none; }
.slide-editor .promo-extra { display: contents; }
.slide-editor .promo-row .orig { grid-column: 2 / 4; font-size: 12px; line-height: 16px; color: var(--muted); overflow-wrap: anywhere; }
.slide-editor .promo-row .orig.note { color: var(--warn-ink); }

/* Data colours: the highlight box and the pink emphasis line, as on the TV. */
.slide-editor .promo-row.style-highlight textarea.promo-text { background: #ffffd0; font-weight: 700; }
.slide-editor .promo-row.style-emphasis textarea.promo-text { color: #b8009f; font-weight: 800; }

.slide-editor .promo-row.is-new { box-shadow: inset 3px 0 0 var(--info-solid); }
.slide-editor .promo-row.is-changed { box-shadow: inset 3px 0 0 var(--warn-solid); }
.slide-editor .promo-row.needs { border-color: var(--warn-line); background: var(--warn-soft); }
.slide-editor .promo-row.inactive { background: var(--surface-2); border-style: dashed; }
.slide-editor .promo-row.inactive textarea.promo-text { color: var(--muted); background: var(--surface-2); }
/* After a save conflict the inspector is read-only until a reload. */
.slide-editor .inspector.is-locked .handle { cursor: default; opacity: .4; }
.slide-editor .inspector.is-locked .handle:hover { background: transparent; color: var(--ink-disabled); }

/* Card size */
.slide-editor .card-size { margin-bottom: 12px; }
.slide-editor .range-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.slide-editor .range-row input[type="range"] { flex: 1 1 auto; min-width: 0; accent-color: var(--accent); }
.slide-editor .range-label { font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
/* The readout never clips: the slider gives way instead. */
.slide-editor .range-readout { flex: 0 0 auto; font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 38px; }
.slide-editor .zone-control { display: flex; flex-direction: column; gap: 6px; }
.slide-editor .zone-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.slide-editor .share-link { margin-top: 8px; font-size: 13px; }
/* Text size: at the top of every card's panel, under the fit line. */
.slide-editor .fit-line:empty { display: none; }
.slide-editor .text-size { margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.slide-editor .text-size .chip { height: 24px; padding: 0 10px; font-size: 12px; flex: 0 0 auto; }
.slide-editor .text-size .share-link { margin-top: 6px; }
.slide-editor .text-size-note:empty { display: none; }
.slide-editor .text-size-note { margin-bottom: 6px; }

/* Add a line: always in reach at the foot of the column. */
.slide-editor .add-row {
  position: sticky; bottom: -12px; z-index: 2; margin: 12px -14px -12px; padding: 10px 14px 12px;
  background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 12px -10px rgba(15,19,32,.3);
}
.slide-editor .add-line { display: flex; align-items: center; gap: 6px; }
.slide-editor .add-line .input[type="text"] { flex: 1 1 auto; min-width: 0; }
.slide-editor .add-line select.input { width: auto; flex: 0 0 auto; }
.slide-editor .add-line .btn { height: 34px; }
.slide-editor .add-row .hint { margin-top: 6px; }

/* =====================================================================
   Inspector: slide settings, brands
   ===================================================================== */
.slide-editor .set-list { margin-bottom: 14px; border-top: 1px solid var(--line); }
.slide-editor .set-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.slide-editor .set-text { display: flex; flex-direction: column; min-width: 0; }
.slide-editor .set-label { font-size: 12px; color: var(--muted); }
.slide-editor .set-value { font-weight: 700; font-variant-numeric: tabular-nums; }
.slide-editor .set-switch { margin: 4px 0 12px; }
.slide-editor .set-logo { margin-bottom: 12px; }
.slide-editor .set-tech { margin-top: 8px; }

/* Brands of the week: the slide's brands in tile order, then the ones to add. */
.slide-editor .brand-label { margin-top: 4px; }
.slide-editor .brand-label h3 { display: inline-flex; align-items: center; gap: 2px; }
.slide-editor .brand-empty { margin: 0 0 12px; }
.slide-editor .brand-list { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.slide-editor .brand-row {
  display: grid; grid-template-columns: 24px 14px 40px minmax(0, 1fr) auto; grid-template-areas: "grip pos logo name acts" "grip pos logo line2 line2";
  align-items: center; column-gap: 6px; row-gap: 4px; padding: 4px 6px 4px 2px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
}
.slide-editor .brand-row.no-logo { border-color: var(--warn-line); }
.slide-editor .brand-row > .drag-grip { grid-area: grip; height: 40px; }
.slide-editor .brand-pos { grid-area: pos; font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.slide-editor .brand-row-logo { grid-area: logo; width: 40px; height: 40px; padding: 3px; }
.slide-editor .brand-row-logo, .slide-editor .brand-add-logo {
  display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: var(--r-sm);
  box-shadow: inset 0 0 0 1px rgba(15,19,32,.16);
}
.slide-editor .brand-row-logo img, .slide-editor .brand-add-logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
/* Data colours: the tile behind the logo, white or black as on the slide. */
.slide-editor .logo-bg-light { background: #fff; }
.slide-editor .logo-bg-dark { background: #000; }
.slide-editor .no-logo { font-size: 12px; line-height: 13px; text-align: center; color: var(--muted); }
.slide-editor .logo-bg-dark .no-logo { color: var(--chrome-muted); }
.slide-editor .brand-main { display: contents; }
.slide-editor .brand-name-line { grid-area: name; display: flex; align-items: center; gap: 6px; min-width: 0; }
.slide-editor .brand-row-name { font-size: 13px; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slide-editor .brand-name-line .badge { height: 20px; padding: 0 7px; flex: 0 0 auto; }
.slide-editor .brand-line2 { grid-area: line2; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px; min-width: 0; }
.slide-editor .brand-line2.one { grid-template-columns: minmax(0, 1fr); }
.slide-editor .brand-line2.with-offer { grid-template-columns: auto 84px minmax(0, 1fr); }
.slide-editor .brand-line2.one.with-offer { grid-template-columns: 84px minmax(0, 1fr); }
.slide-editor .brand-offers { margin: 10px 0 4px; display: flex; flex-direction: column; gap: 8px; }
.slide-editor .brand-offer-colours { display: flex; flex-direction: column; gap: 6px; }
.slide-editor .brand-offer-colour { display: flex; align-items: center; gap: 8px; min-width: 0; }
.slide-editor .brand-offer-colour input[type="color"] { width: 34px; height: 28px; padding: 2px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); cursor: pointer; flex: 0 0 auto; }
.slide-editor .brand-offer-kind { font-weight: 700; white-space: nowrap; }
.slide-editor .brand-offer-colour .hint { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slide-editor .brand-line2 .input { min-height: 28px; height: 28px; padding: 3px 8px; font-size: 12px; }
.slide-editor .brand-line2 select.brand-bg { width: auto; max-width: 150px; padding-right: 2px; }
.slide-editor .brand-acts { grid-area: acts; display: flex; gap: 2px; }
.slide-editor .brand-acts .btn.small.icon-only { width: 28px; height: 26px; color: var(--ink-2); }
.slide-editor .brand-acts .brand-remove:hover:not(:disabled) { color: var(--bad-ink); background: var(--bad-soft); }

.slide-editor .brand-add-box { margin-bottom: 14px; }
.slide-editor .brand-search { min-height: 30px; height: 30px; padding: 4px 10px; margin-bottom: 8px; }
.slide-editor .brand-add-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.slide-editor .brand-add {
  display: flex; flex-direction: column; align-items: stretch; gap: 4px; min-width: 0; padding: 4px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--ink);
  font: inherit; cursor: pointer; transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.slide-editor .brand-add:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.slide-editor .brand-add-logo { height: 30px; padding: 3px; }
.slide-editor .brand-add-name { font-size: 12px; font-weight: 600; line-height: 16px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slide-editor .brand-none { margin: 6px 0 0; display: flex; flex-direction: column; gap: 2px; }
.slide-editor .brand-none[hidden] { display: none; }
.slide-editor .brand-none a { font-weight: 600; color: var(--accent-ink); }
/* What a note under a logo does, said where it is typed. */
.slide-editor .brand-note-hint { display: flex; align-items: center; gap: 6px; margin: -8px 0 12px; }
.slide-editor .brand-note-hint .ico { flex: 0 0 auto; color: var(--info-ink); }
.slide-editor .brand-hdr { margin-bottom: 10px; }
.slide-editor .brand-hdr .field { margin-bottom: 8px; }
.slide-editor .brand-hint { margin: 6px 0 8px; }

/* =====================================================================
   Dialogs (.modal.slide-dialog)
   ===================================================================== */
.slide-dialog .dialog-warn:empty { display: none; }
.slide-dialog .dialog-warn { margin: 0 0 10px; }
.slide-dialog .dialog-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.slide-dialog .file-types { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.approve-dialog .modal-body > .callout { margin-bottom: 12px; }
.approve-dialog .approve-ovs { margin: 2px 0 0; padding-left: 18px; }
.approve-dialog .export-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.approve-dialog .export-sizes { margin-bottom: 12px; }
.approve-dialog .approve-every { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 12px; text-align: left; }
.approve-dialog .approve-every .hint { margin: 0; }
.approve-dialog .approve-results:empty { display: none; }
.approve-dialog .approve-results { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.approve-dialog .export-files { display: flex; flex-direction: column; gap: 4px; }
.approve-dialog .export-file { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.approve-dialog .export-name { overflow-wrap: anywhere; }
.approve-dialog .export-view { font-size: 13px; color: var(--accent-ink); }
.approve-dialog .export-save { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.text-area-dialog .editor-split { grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); }
.text-area-dialog .ta-pick .hint { margin-bottom: 6px; }
.text-area-dialog .zone-pick { max-width: 100%; }
.text-area-dialog .ta-nums { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.text-area-dialog .ta-num { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); font-weight: 600; }
.text-area-dialog .ta-num .input { width: 84px; }
.text-area-dialog .ta-note { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; font-weight: 600; }
.text-area-dialog .ta-note.is-ok { color: var(--ok-ink); }
.text-area-dialog .ta-note.is-bad { color: var(--bad-ink); }

/* Paste deals: what to do first, then the pasted lines grouped by heading. */
.paste-dialog .paste-mode { border: 0; margin: 0 0 12px; padding: 0; min-width: 0; }
.paste-dialog .paste-mode legend { padding: 0; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.paste-dialog .paste-mode .check-line { display: inline-flex; margin: 0 22px 4px 0; }
.paste-dialog textarea.paste-input { min-height: 140px; }
.paste-dialog .paste-intro { margin-bottom: 8px; }
.paste-dialog .paste-review { margin-top: 12px; }
.paste-dialog .paste-review > h3 { margin-bottom: 4px; }
.paste-dialog .paste-section { margin: 10px 0 14px; }
.paste-dialog .paste-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 6px; }
.paste-dialog .paste-cat { width: 260px; }
.paste-dialog .paste-effect { font-size: 13px; color: var(--ink-2); }
.paste-dialog .paste-effect.is-warn { color: var(--warn-ink); font-weight: 600; }
.paste-dialog .paste-lines { display: flex; flex-direction: column; gap: 4px; }
.paste-dialog .paste-row {
  display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 5px 8px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
}
.paste-dialog .paste-text { min-width: 0; overflow-wrap: anywhere; font-size: 13px; padding: 1px 4px; border-radius: 3px; }
/* Data colours: the highlight box and the pink emphasis line, as on the TV. */
.paste-dialog .paste-row.style-highlight .paste-text { background: #ffffd0; font-weight: 700; }
.paste-dialog .paste-row.style-emphasis .paste-text { color: #b8009f; font-weight: 800; }
.paste-dialog .paste-row.is-off { background: var(--surface-2); border-style: dashed; }
.paste-dialog .paste-row.is-off .paste-text { color: var(--muted); text-decoration: line-through; }
.paste-dialog select.paste-style { width: auto; min-height: 28px; height: 28px; padding: 2px 6px; font-size: 12px; }
.paste-dialog .paste-brands { padding: 8px 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); font-size: 13px; }
.paste-dialog .paste-missing { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--warn-ink); font-weight: 600; }

.slide-dialog .confirm-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.slide-dialog .confirm-list li { display: flex; gap: 8px; padding: 6px 10px; border: 1px solid var(--warn-line); background: var(--warn-soft); border-radius: var(--r-md); font-size: 13px; }
.slide-dialog .confirm-cat { color: var(--muted); font-weight: 600; flex: 0 0 auto; }
.slide-dialog .share-summary { padding: 8px 10px; margin: 8px 0 12px; box-shadow: none; }
.slide-dialog .share-store { margin: 6px 0; }
.slide-dialog .share-design { margin-top: 14px; }
.slide-dialog .share-note { margin-top: 6px; }
.share-dialog .share-changes {
  margin-top: 12px; padding: 8px 10px; font-size: 13px; color: var(--ink);
  background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--r-md);
}

/* Compare with an earlier slide: filters, then the lines grouped by category. */
.compare-dialog .compare-top { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 18px; margin-bottom: 12px; }
.compare-dialog .compare-top .field { margin-bottom: 0; }
.compare-dialog .compare-select { width: 300px; max-width: 100%; }
.compare-dialog .compare-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-bottom: 3px; }
.compare-dialog .compare-filters-label { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-right: 2px; }
.compare-dialog .compare-empty { margin: 8px 0; font-size: 13px; }
.compare-dialog .compare-tbl { table-layout: fixed; }
.compare-dialog .compare-tbl th, .compare-dialog .compare-tbl td { padding: 6px 10px; overflow-wrap: anywhere; }
.compare-dialog .compare-tbl .col-status { width: 112px; }
.compare-dialog .compare-tbl td.col-status .badge { height: 20px; }
.compare-dialog .compare-tbl tr.compare-group th {
  background: var(--surface-2); color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .02em; padding-top: 8px;
}
.compare-dialog .compare-group-n { font-weight: 400; color: var(--muted); letter-spacing: 0; }

/* Proof view: a card with new or changed lines has an info outline on its caption. */
.modal.proof.slide-proof .proof-where.has-changes {
  padding: 2px 10px; border: 1px solid var(--info-line); border-radius: var(--r-pill); background: var(--info-soft); color: var(--info-ink);
}

/* Compare table rows (the compare dialog). */
.diff-row td.prev { color: var(--bad-ink); text-decoration: line-through; }
.diff-row td.next { color: var(--ok-ink); font-weight: 600; }
.diff-row td.gone { color: var(--muted); text-decoration: line-through; }
/* A hidden brand stays on the slide's list, greyed, and is not drawn. */
.slide-editor .brand-row.is-hidden { border-style: dashed; background: var(--surface-2); }
.slide-editor .brand-row.is-hidden .brand-row-logo, .slide-editor .brand-row.is-hidden .brand-row-name, .slide-editor .brand-row.is-hidden .brand-line2 { opacity: .5; }
.slide-editor .brand-row-hidden { margin-left: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.slide-editor .brand-acts .brand-hide.is-hidden { color: var(--accent-ink); }
/* Artwork with a Brands of the Month row: the switch that puts a brand in it */
.slide-editor .brand-row-month { margin-left: 6px; font-size: 11px; vertical-align: middle; }
.slide-editor .brand-row.brand-spare { background: var(--surface-2); }
.slide-editor .brand-spare-hint { font-size: 12px; color: var(--muted); align-self: center; }
.slide-editor .brand-acts .brand-month.is-on { color: var(--accent-ink); background: var(--accent-soft); }
.slide-editor .brand-month-sheet { margin: -4px 0 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.slide-editor .brand-month-sheet .hint { margin: 0; }
.slide-editor .brand-panel-pick { margin: 10px 0 6px; }
.slide-editor .brand-panel-row { display: flex; align-items: center; gap: 10px; margin: 4px 0; }

/* Adjust layout in the slide editor: the mode switch, the layout panel, and dashed
   outlines on the preview for every part that can be clicked. */
.slide-editor .mode-switch { margin-right: 8px; }
.slide-editor .layout-panel { display: flex; flex-direction: column; gap: 10px; padding: 12px; }
.slide-editor .layout-panel-head { display: flex; align-items: center; gap: 8px; position: sticky; top: 0; z-index: 3; margin: -12px -12px 0; padding: 10px 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.slide-editor .layout-panel-head h2 { font-size: 16px; margin: 0; }
.slide-editor .layout-panel-head .spacer { flex: 1; }
.slide-editor .layout-panel .de-controls-col { overflow: visible; max-height: none; padding: 0; }
.slide-editor .layout-outlines rect { fill: none; }
.slide-editor .layout-outlines .halo { stroke: var(--surface); stroke-width: 8; opacity: .75; }
.slide-editor .layout-outlines .dash { stroke: var(--accent); stroke-width: 4; stroke-dasharray: 14 10; }
.slide-editor .preview-toolbar { flex-wrap: wrap; row-gap: 6px; height: auto; min-height: var(--toolbar-h); }
.slide-editor .preview-wrap.de-pickable svg { cursor: pointer; }

/* To fix, at the top of the slide's contents: each check that holds up approval, with Show. */
.slide-editor .insp-fix { border: 1px solid var(--bad-line); background: var(--bad-soft); border-radius: var(--r-md); padding: 8px 10px; }
.slide-editor .insp-fix-head { display: flex; align-items: center; gap: 6px; color: var(--bad-ink); margin-bottom: 4px; }
.slide-editor .insp-fix-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.slide-editor .insp-fix-list li { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.slide-editor .insp-fix-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }

/* Slide settings: the message box (its colours use the design editor's colour fields) */
.slide-editor .msg-box { margin: 4px 0 14px; display: flex; flex-direction: column; gap: 8px; }
.slide-editor .msg-box textarea { resize: vertical; min-height: 52px; }
.slide-editor .msg-colours { display: flex; flex-wrap: wrap; gap: 6px; }
.slide-editor .msg-box .colour-field {
  display: inline-flex; align-items: center; gap: 8px; padding: 3px 10px 3px 3px; border: 1px solid var(--line);
  border-radius: var(--r-md); background: var(--surface); cursor: pointer; min-height: 34px;
}
.slide-editor .msg-box .colour-field:hover { border-color: var(--line-strong); }
.slide-editor .msg-box .colour-field input[type="color"] {
  width: 30px; height: 26px; padding: 0; border: 1px solid var(--line-strong); border-radius: 4px; background: none; cursor: pointer; flex: 0 0 auto;
}
.slide-editor .msg-box .colour-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.slide-editor .msg-box .colour-label { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.slide-editor .msg-box .colour-hex { font: 12px/1.25 var(--font-mono); color: var(--muted); }

/* Layout, "Only <store>" side (drawStoreLayout): the switch between this store and the
   design, the cards with what is set here, and what has been changed at this store. */
.slide-editor .layout-scope { display: flex; width: 100%; }
.slide-editor .layout-scope .seg-btn { flex: 1 1 0; justify-content: center; }
.slide-editor .layout-panel.is-store { padding-bottom: 4px; }
.slide-editor .layout-cards { display: grid; gap: 4px; margin: 4px 0 12px; }
.slide-editor .layout-card-row {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; text-align: left; font: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); cursor: pointer; color: var(--ink);
}
.slide-editor .layout-card-row:hover { background: var(--surface-hover); border-color: var(--line-strong); }
.slide-editor .layout-card-row .lc-title { flex: 1 1 auto; min-width: 0; font-weight: 600; font-size: 13px; }
.slide-editor .layout-card-row .lc-chips { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.slide-editor .layout-room { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.slide-editor .layout-room h3, .slide-editor .layout-changed h3 { font-size: 13px; margin: 0 0 6px; }
.slide-editor .layout-changed { margin: 4px 0 12px; }
.slide-editor .layout-changed ul { margin: 0 0 6px; padding-left: 18px; font-size: 13px; }
.slide-editor .layout-link { margin: 10px 0 0; }
