/* owns: loy-o- (Tests/Loyalty/LoyaltyCenterPortalTests reads this line - every rule here leads with it, and no other stylesheet
   styles it).
   THE LOYALTY CENTER'S OFFER PAGES (docs/claude/LOYALTY.md section 5.3) - offers (/loyalty/offers and the offer designer: the
   essentials, the sections behind a summary, the coupon as a member sees it, the judge's check, the versions), circulars
   (/loyalty/circulars and one circular: its pages with their hotspots, the items, the stores, the versions) and shopper search
   (/loyalty/search: the shelf with its facet chips, and what shoppers could not find), and their components
   (Components/Loyalty/Offers, Circulars, Browse). This stylesheet owns every loy-o-* class; loyalty-center.css owns the rest of
   loy-* (the frame, cards, rows, forms, notes - reused here, never restyled). A token-only door, whole
   (Tests/ShellTokensOnlyTests): colours are --theme-* / --wf-* tokens only, so light, dark and every tenant theme read the same. */

/* ---- Lists: the filter bar, the table's first column, the pager ---- */
.loy-o-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.loy-o-search { position: relative; flex: 1 1 16rem; min-width: 0; }
.loy-o-search > i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--theme-text-secondary); pointer-events: none; }
.loy-o-search > .form-control { padding-left: 34px; }
.loy-o-filter { width: auto; max-width: 14rem; }
.loy-o-inline-label { color: var(--theme-text-secondary); font-size: 12.5px; font-weight: 600; }
/* THE LISTS' TABLES NEVER OUTGROW THEIR CARD (BlazorConventions "The look" - Tables; the Launch Control fix round's recipe): fixed
   layout at 100%, the number / life columns DECLARE their widths, the text columns share the rest and ellipsise (a title holds the
   whole value), and below the stacking width the rows become cards. Tests/Loyalty/LoyaltyOffersPortalTests pins the arithmetic:
   the stacking width >= the shell's chrome (216px rail + 24px gap + 40px card padding) + the declared columns + 144px a text
   column. */
.loy-o-table { table-layout: fixed; width: 100%; }
.loy-o-col-main,
.loy-o-col-text { width: auto; }
.loy-o-col-gives { width: 10rem; }
.loy-o-col-life { width: 10rem; }
.loy-o-col-contents { width: 8rem; }
.loy-o-col-num { width: 6rem; }
.loy-o-col-day { width: 8rem; }
.loy-o-col-when { width: 10rem; }
.loy-o-cell-main { min-width: 0; }
.loy-o-clip { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loy-o-cell-life { display: grid; gap: 4px; justify-items: start; }
.loy-o-kind { color: var(--theme-text-emphasis); font-weight: 600; }
.loy-o-changed { color: var(--wf-warning-ink); font-weight: 600; }
.loy-o-num { text-align: right; font-variant-numeric: tabular-nums; }
.loy-o-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.loy-o-more { display: flex; justify-content: center; padding-top: 4px; }
.loy-o-skel-row { height: 3rem; border-radius: var(--wf-radius-sm); }

/* ---- The designer: the editor beside the coupon ---- */
.loy-o-designer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem); gap: 16px; align-items: start; }
.loy-o-editor { min-width: 0; }
.loy-o-essentials { display: grid; gap: 14px; padding: 20px; }
.loy-o-subtitle { margin: 6px 0 -2px; color: var(--theme-text-emphasis); font-size: 14px; font-weight: 650; }
.loy-o-kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 10px; }
.loy-o-kinds .wf-choice-title i { margin-right: 6px; color: var(--wf-primary-ink); }
.loy-o-tierlist { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.loy-o-tierrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.loy-o-daypick { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.loy-o-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.loy-o-side { display: grid; gap: 12px; position: sticky; top: calc(var(--wf-sticky-top) + 12px); min-width: 0; }
.loy-o-side-note { margin: 0; color: var(--theme-text-secondary); font-size: 12px; }

/* The validate door's answer under the form, as it types */
.loy-o-checkline { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 12px 20px; border-top: 1px solid var(--wf-line); font-size: 13px; }
.loy-o-checking { color: var(--theme-text-secondary); }
.loy-o-good { color: var(--wf-success-ink); font-weight: 600; }
.loy-o-bad { color: var(--wf-danger-ink); font-weight: 600; }
.loy-o-warn { color: var(--wf-warning-ink); }
.loy-o-unplaced { margin: 0 20px 16px; padding: 10px 14px 10px 30px; border-radius: var(--wf-radius-md); background: var(--wf-danger-soft); color: var(--theme-text-emphasis); font-size: 13px; }

/* A padded panel's actions (the editors, the publish card, the purge card) */
.loy-o-panel .loy-form-actions,
.loy-o-publish .loy-form-actions { padding: 4px 0 0; border-top: 0; }
.loy-o-publish { border-color: var(--wf-primary-ink); }

/* What publishing did */
.loy-o-published { align-items: flex-start; }
.loy-o-published-body { display: grid; gap: 4px; min-width: 0; }
.loy-o-published-body > p { margin: 0; }
.loy-o-published-title { font-weight: 650; }
.loy-o-published-why { margin-left: 6px; color: var(--theme-text-secondary); font-size: 12.5px; }
.loy-o-published-notes { margin: 0; padding-left: 18px; color: var(--theme-text-secondary); font-size: 12.5px; }

/* The store picker */
.loy-o-storefilter { max-width: 20rem; }
.loy-o-pickbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.loy-o-pickbar > p { margin: 0; }

/* What Save / Publish still need, said beside them; a conflict's way out */
.loy-o-missing { display: flex; align-items: baseline; gap: 6px; margin: 0; padding: 0 20px 12px; }
.loy-o-publish .loy-o-missing { padding: 0; }
.loy-o-conflict { padding: 0 20px 12px; }

/* Choose from a list, keep them as chips (categories, programs) */
.loy-o-chippick { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.loy-o-chiplist { margin: 0; padding: 0; list-style: none; }
.loy-o-chip { display: inline-flex; align-items: center; gap: 2px; padding: 2px 4px 2px 10px; border-radius: var(--wf-radius-pill); background: var(--wf-primary-soft); color: var(--wf-primary-ink); font-size: 12.5px; font-weight: 600; }
.loy-o-chip-x { display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: var(--wf-radius-pill); background: transparent; color: inherit; cursor: pointer; }
.loy-o-chip-x:hover { background: var(--wf-card-hover); }
.loy-o-chip-x:focus-visible { outline: 2px solid var(--wf-primary-ink); outline-offset: 1px; }
.loy-o-chipadd { max-width: 20rem; }
.loy-o-storelist { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 6px 14px; max-height: 16rem; overflow-y: auto; margin: 0; padding: 8px 10px; border: 1px solid var(--wf-line); border-radius: var(--wf-radius-sm); list-style: none; }

/* ---- The coupon as a member sees it ---- */
.loy-o-preview-card { gap: 10px; }
.loy-o-coupon { overflow: hidden; border: 2px dashed var(--wf-line-strong); border-radius: var(--wf-radius-md); background: var(--wf-card); }
.loy-o-coupon-pic { display: block; width: 100%; max-height: 10rem; object-fit: cover; }
.loy-o-coupon-key { margin: 0; padding: 10px 14px; background: var(--wf-inset); color: var(--theme-text-secondary); font-size: 12px; word-break: break-all; }
.loy-o-coupon-body { display: grid; gap: 6px; padding: 14px 16px 16px; }
.loy-o-coupon-body > p { margin: 0; }
.loy-o-coupon-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; color: var(--theme-text-secondary); font-size: 12px; font-weight: 600; }
.loy-o-coupon-kind { color: var(--wf-primary-ink); text-transform: none; }
.loy-o-coupon-value { color: var(--theme-text-emphasis); font-size: 26px; font-weight: 750; line-height: 1.15; letter-spacing: -0.01em; }
.loy-o-coupon-note { color: var(--theme-text-secondary); font-size: 12.5px; }
.loy-o-coupon-headline { color: var(--theme-text-emphasis); font-size: 15px; font-weight: 650; }
.loy-o-coupon-sub { color: var(--theme-text-secondary); font-size: 13px; }
.loy-o-coupon-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.loy-o-coupon-chip { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: var(--wf-radius-pill); background: var(--wf-primary-soft); color: var(--wf-primary-ink); font-size: 12px; font-weight: 600; }
.loy-o-coupon-lines { margin: 0; padding-left: 18px; color: var(--theme-text-emphasis); font-size: 12.5px; }
.loy-o-coupon-code { justify-self: start; padding: 4px 10px; border-radius: var(--wf-radius-xs); background: var(--wf-inset); color: var(--theme-text-emphasis); font-family: var(--theme-font-mono, ui-monospace, monospace); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; }
.loy-o-coupon-action { justify-self: start; margin-top: 4px; padding: 6px 14px; border-radius: var(--wf-radius-pill); background: var(--theme-primary); color: var(--theme-text-on-primary); font-size: 13px; font-weight: 600; }
.loy-o-coupon-fine { padding-top: 8px; border-top: 1px dashed var(--wf-line); color: var(--theme-text-secondary); font-size: 11.5px; white-space: pre-line; }

/* ---- The judge's check ---- */
.loy-o-check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 12px 14px; align-items: end; }
.loy-o-check-wide { grid-column: 1 / -1; }
.loy-o-check-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.loy-o-verdict { display: grid; gap: 6px; padding: 12px 14px; border: 1px solid var(--wf-line); border-radius: var(--wf-radius-md); background: var(--wf-neutral-soft); }
.loy-o-verdict > p { margin: 0; }
.loy-o-verdict.is-yes { background: var(--wf-success-soft); }
.loy-o-verdict.is-confirm { background: var(--wf-warning-soft); }
.loy-o-verdict.is-no { background: var(--wf-danger-soft); }
.loy-o-verdict-head { color: var(--theme-text-emphasis); font-size: 15px; font-weight: 650; }
.loy-o-verdict-gives { color: var(--theme-text-emphasis); font-size: 20px; font-weight: 700; }
.loy-o-verdict-reasons { display: grid; gap: 4px; margin: 0; padding-left: 18px; font-size: 13px; }
.loy-o-verdict-kind { color: var(--theme-text-secondary); font-size: 12px; font-weight: 600; }
.loy-o-verdict-next { color: var(--theme-text-emphasis); font-size: 13px; }
.loy-o-check { min-width: 0; }
.loy-o-checklines { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.loy-o-checkline-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) 5rem 7rem auto; gap: 6px; align-items: center; }

/* ---- Versions and their comparison ---- */
.loy-o-versions { min-width: 0; }
.loy-o-versionlist { margin: 0; padding: 0; list-style: none; }
.loy-o-versionbody { flex: 1 1 100%; display: grid; gap: 8px; padding: 10px 0 4px; }
.loy-o-diff { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.loy-o-diff > li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 6px 10px; border-radius: var(--wf-radius-sm); background: var(--wf-neutral-soft); }
.loy-o-diff-what { min-width: 10rem; color: var(--theme-text-emphasis); font-weight: 600; }
.loy-o-diff-was { color: var(--wf-danger-ink); text-decoration: line-through; overflow-wrap: anywhere; }
.loy-o-diff-now { color: var(--wf-success-ink); font-weight: 600; overflow-wrap: anywhere; }

/* ---- A circular: the pages beside the page shown, its items ---- */
.loy-o-cir { display: grid; grid-template-columns: minmax(11rem, 14rem) minmax(0, 1fr); gap: 16px; align-items: start; }
.loy-o-cir-pages { gap: 10px; position: sticky; top: calc(var(--wf-sticky-top) + 12px); }
.loy-o-cir-thumbs { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.loy-o-cir-thumb { display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; align-items: center; width: 100%; padding: 6px; border: 1px solid var(--wf-line); border-radius: var(--wf-radius-sm); background: var(--wf-card); color: var(--theme-text-emphasis); text-align: left; cursor: pointer; }
.loy-o-cir-thumb:hover { background: var(--wf-card-hover); }
.loy-o-cir-thumb.is-on { border-color: var(--wf-primary-ink); background: var(--wf-primary-soft); }
.loy-o-cir-thumb:focus-visible { outline: 2px solid var(--wf-primary-ink); outline-offset: 2px; }
.loy-o-cir-thumb > img,
.loy-o-cir-thumb-blank { grid-row: 1 / span 2; width: 44px; height: 56px; border-radius: var(--wf-radius-xs); object-fit: cover; }
.loy-o-cir-thumb-blank { display: grid; place-items: center; background: var(--wf-inset); color: var(--theme-text-secondary); }
.loy-o-cir-thumb-label { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loy-o-cir-thumb-count { color: var(--theme-text-secondary); font-size: 12px; }
.loy-o-cir-main { display: grid; gap: 16px; min-width: 0; }
.loy-o-cir-main .loy-row.is-on { background: var(--wf-primary-soft); }
.loy-o-cir-sheet { position: relative; margin: 0; overflow: hidden; border-radius: var(--wf-radius-sm); background: var(--wf-inset); }
.loy-o-cir-sheet > img { display: block; width: 100%; height: auto; }
.loy-o-cir-spot { position: absolute; padding: 0; border: 2px solid var(--wf-primary-ink); border-radius: var(--wf-radius-xs); background: var(--wf-primary-soft); opacity: 0.55; cursor: pointer; }
.loy-o-cir-spot:hover,
.loy-o-cir-spot.is-on,
.loy-o-cir-spot:focus-visible { opacity: 0.9; outline: 2px solid var(--wf-primary-ink); outline-offset: 2px; }
.loy-o-cir-sheet.is-drawable { cursor: crosshair; touch-action: none; user-select: none; }
.loy-o-cir-sheet.is-drawable > img { pointer-events: none; }
.loy-o-cir-drawbox { position: absolute; border: 2px dashed var(--wf-primary-ink); border-radius: var(--wf-radius-xs); background: var(--wf-primary-soft); opacity: 0.6; pointer-events: none; }
.loy-o-cir-spot.is-editing { border-style: dashed; opacity: 0.85; pointer-events: none; }
.loy-o-picfield { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.loy-o-picfield > .form-control { flex: 1 1 14rem; min-width: 0; }
.loy-o-picpreview { display: grid; gap: 4px; justify-items: start; margin: 0; }
.loy-o-picpreview > img { max-width: 100%; max-height: 16rem; border-radius: var(--wf-radius-sm); background: var(--wf-inset); object-fit: contain; }
.loy-o-picpreview > figcaption { color: var(--theme-text-secondary); font-size: 12px; }
.loy-o-cir-noart { display: flex; align-items: center; gap: 10px; padding: 32px 20px; color: var(--theme-text-secondary); font-size: 13px; word-break: break-all; }
.loy-o-cir-itempic { width: 44px; height: 44px; border-radius: var(--wf-radius-xs); object-fit: cover; }
.loy-o-cir-itempic.is-preview { width: 88px; height: 88px; }
.loy-o-cir-price { color: var(--theme-text-emphasis); font-weight: 650; font-variant-numeric: tabular-nums; }
.loy-o-cir-was { margin-left: 8px; color: var(--theme-text-secondary); text-decoration: line-through; }
.loy-o-cir-save { margin-left: 8px; color: var(--wf-success-ink); font-weight: 600; }
.loy-o-cir-star { margin-right: 6px; color: var(--wf-warning-ink); }
.loy-o-featured { align-self: end; padding-bottom: 8px; }
.loy-o-scope-add { padding-top: 4px; }

/* ---- Shopper search: the bar, the facets beside the shelf ---- */
.loy-o-brw { display: grid; gap: 16px; }
/* ONE CALM ROW - the words (the magnifier inside the box), the program, the sort, Search (the tour's fix, 2026-11-06). The bar is
   also a .card, and Bootstrap's .card is a COLUMN flexbox: without flex-direction here the words' 16rem basis became a 16rem
   HEIGHT - a tall empty band with the magnifier floating in its middle and the sort and Search under it. */
.loy-o-brw-bar { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; }
.loy-o-brw-bar > .btn { flex: 0 0 auto; }
.loy-o-brw-body { display: grid; grid-template-columns: minmax(14rem, 17rem) minmax(0, 1fr); gap: 16px; align-items: start; }
.loy-o-brw-facets { padding-bottom: 0; }
.loy-o-brw-facets .loy-more { margin: 0 -20px; }
.loy-o-brw-facets .loy-more-body { padding-left: 20px; }
.loy-o-brw-facet { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.loy-o-brw-facet .wf-chip-toggle.is-greyed { opacity: 0.55; cursor: not-allowed; }
.loy-o-brw-results { display: grid; gap: 12px; min-width: 0; }
.loy-o-brw-count { margin: 0; color: var(--theme-text-secondary); font-size: 13px; }
.loy-o-brw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.loy-o-brw-card { gap: 6px; align-content: start; }
.loy-o-brw-card > p { margin: 0; }
.loy-o-brw-saves { color: var(--theme-text-emphasis); font-size: 20px; font-weight: 750; line-height: 1.2; }
.loy-o-brw-title { color: var(--theme-text-emphasis); font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }
.loy-o-brw-card a.loy-o-brw-title:hover { color: var(--wf-primary-ink); }
.loy-o-brw-facts { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--theme-text-secondary); font-size: 12.5px; }
.loy-o-brw-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.loy-o-miss-words { color: var(--theme-text-emphasis); font-weight: 600; overflow-wrap: anywhere; }

/* ---- Narrower sheets: the side column folds under, nothing scrolls sideways ---- */
/* The coupon stays BESIDE the editor down to 960px of page (a laptop with the rail open keeps it in sight while typing). */
@container page (max-width: 960px) {
    .loy-o-designer { grid-template-columns: minmax(0, 1fr); }
    .loy-o-side { position: static; }
}

/* The lists' tables stack into cards wherever a text column would be narrower than 144px (the arithmetic is pinned in a test). */
@container page (max-width: 900px) {
    .loy-o-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .loy-o-table > tbody > tr { display: grid; gap: 4px; padding: 12px 0; border-top: 1px solid var(--wf-line); }
    .loy-o-table > tbody > tr > td { display: flex; justify-content: space-between; gap: 12px; padding: 0; border: 0; text-align: left; }
    .loy-o-table > tbody > tr > td::before { content: attr(data-label); color: var(--theme-text-secondary); font-size: 12px; font-weight: 600; }
    .loy-o-table > tbody > tr > td:first-child { display: grid; }
    .loy-o-table > tbody > tr > td:first-child::before { content: none; }
    .loy-o-table .loy-o-clip { white-space: normal; overflow-wrap: anywhere; }
    .loy-o-table .loy-o-cell-life { display: flex; flex-wrap: wrap; justify-content: flex-start; }
    .loy-o-checkline-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@container page (max-width: 860px) {
    .loy-o-cir,
    .loy-o-brw-body { grid-template-columns: minmax(0, 1fr); }
    .loy-o-cir-pages { position: static; }
    .loy-o-cir-thumbs { grid-auto-flow: column; grid-auto-columns: minmax(10rem, 1fr); overflow-x: auto; padding-bottom: 4px; }
}

@container page (max-width: 640px) {
    .loy-o-tierrow { grid-template-columns: minmax(0, 1fr) auto; }
    .loy-o-filter { max-width: none; flex: 1 1 10rem; }
}

/* ---- Bring in items from a file (/loyalty/circulars/import - the weekly ad's export onto a circular) ---- */
.loy-o-imp-sample { display: inline-flex; align-items: center; color: var(--wf-primary-ink); font-weight: 600; }
.loy-o-imp-stored { justify-content: flex-start; margin-top: 0; }
.loy-o-imp-file { display: flex; align-items: center; gap: 4px; margin: 0; color: var(--theme-text-emphasis); font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.loy-o-imp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.loy-o-imp-col { min-width: 0; }
.loy-o-imp-value,
.loy-o-imp-money { margin-top: 6px; }
.loy-o-imp-more { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--wf-line); }
.loy-o-imp-more > summary { cursor: pointer; color: var(--theme-text-emphasis); font-size: 13.5px; font-weight: 600; }
.loy-o-imp-more[open] > summary { margin-bottom: 12px; }
.loy-o-imp-problems { display: grid; gap: 4px; margin: 0 0 4px; padding: 10px 14px; list-style: none; border-radius: var(--wf-radius-md); background: var(--wf-warning-soft); color: var(--wf-warning-ink); font-size: 13px; }
.loy-o-imp-preview th:nth-child(1) { width: 4.5rem; }
.loy-o-imp-bad { color: var(--wf-danger-ink); }
.loy-o-imp-outcome { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: var(--wf-radius-pill); background: var(--wf-neutral-soft); color: var(--theme-text-secondary); font-size: 12px; font-weight: 600; white-space: nowrap; }
.loy-o-imp-outcome.is-new { background: var(--wf-success-soft); color: var(--wf-success-ink); }
.loy-o-imp-outcome.is-changed { background: var(--wf-primary-soft); color: var(--wf-primary-ink); }
.loy-o-imp-outcome.is-refused { background: var(--wf-danger-soft); color: var(--wf-danger-ink); }

@container page (max-width: 760px) {
    .loy-o-imp-grid { grid-template-columns: minmax(0, 1fr); }
    .loy-o-imp-preview th:nth-child(1) { width: auto; }
}

/* Draft the items from this page (P8 - LoyaltyCircularDraftPanel): the proposals as numbered boxes on a copy of the page (dashed until
   kept), the items already on it as quiet outlines beneath them, and each proposal as a row of the item editor's own fields. A badge
   always carries words - never colour alone. */
.loy-o-cdraft { display: grid; gap: 10px; }
.loy-o-cdraft-counts { margin: 0; color: var(--theme-text-emphasis); font-weight: 600; }
.loy-o-cdraft-note { margin: 0; color: var(--wf-warning-ink); font-size: 13px; }
.loy-o-cdraft-ai { font-weight: 600; }
.loy-o-cdraft-saved { margin: 0; padding: 8px 12px; border-radius: var(--wf-radius-md); background: var(--wf-success-soft); color: var(--theme-text-emphasis); }
.loy-o-cdraft-sheet { max-width: 640px; }
.loy-o-cdraft-saved-spot { position: absolute; border: 1px dashed var(--wf-line); border-radius: var(--wf-radius-xs); pointer-events: none; }
.loy-o-cdraft-spot { position: absolute; padding: 0; border: 2px dashed var(--wf-primary-ink); border-radius: var(--wf-radius-xs); background: transparent; cursor: pointer; }
.loy-o-cdraft-spot.is-kept { border-style: solid; background: var(--wf-primary-soft); }
.loy-o-cdraft-spot.is-on,
.loy-o-cdraft-spot:hover,
.loy-o-cdraft-spot:focus-visible { outline: 2px solid var(--wf-primary-ink); outline-offset: 2px; }
.loy-o-cdraft-num { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 4px; border-radius: var(--wf-radius-pill); background: var(--wf-primary-ink); color: var(--theme-surface); font-size: 11px; font-weight: 700; }
.loy-o-cdraft-spot > .loy-o-cdraft-num { position: absolute; top: -10px; left: -10px; }
.loy-o-cdraft-rows { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.loy-o-cdraft-row { display: grid; gap: 6px; padding: 12px 14px; border: 1px solid var(--wf-line); border-radius: var(--wf-radius-md); background: var(--wf-neutral-soft); }
.loy-o-cdraft-row.is-kept { background: var(--theme-surface); }
.loy-o-cdraft-row.is-on { outline: 2px solid var(--wf-primary-ink); outline-offset: 1px; }
.loy-o-cdraft-rowhead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.loy-o-cdraft-keep { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.loy-o-cdraft-sure { padding: 2px 8px; border-radius: var(--wf-radius-pill); background: var(--wf-neutral-soft); color: var(--theme-text-emphasis); font-size: 12px; font-weight: 600; }
.loy-o-cdraft-sure.is-ok { background: var(--wf-success-soft); }
.loy-o-cdraft-sure.is-warn { background: var(--wf-warning-soft); }
.loy-o-cdraft-sure.is-bad { background: var(--wf-danger-soft); }
.loy-o-cdraft-dup { margin: 0; color: var(--wf-warning-ink); font-size: 13px; }
.loy-o-cdraft-box > summary { cursor: pointer; font-size: 13px; }
.loy-o-cdraft-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

@media (prefers-reduced-motion: reduce) {
    .loy-o-cir-thumb,
    .loy-o-cir-spot { transition: none; }
}
