/* Third visual review R3-01..R3-38 · 2026-10-20 · loaded after product-uxkit-r2.css and scoped to `body.uxr.app`
   (DEMO and isolated development only: linked for every mode, but its selectors only match kit markup, body.uxr or classes that kit-only code adds, so PILOT renders as before). Same shell palette as kit v02 and R2: no new hue.
   Common patterns first (one action per state, Brando activity, compact cards, selection), then per-module fixes.
   Presentation only: ids, handlers and contracts stay as they are. */

/* ── Estrategia · Brando panel and the page's one action (R3-07..R3-10) ─────────────────────────── */
/* R3-08 · «Aplicar N al borrador» sits right under the panel head, so it is visible from the start of the review and
   while the suggestions scroll; the foot keeps only the explanation. */
body.uxr.app .uxk2-panel > .uxk2-panel-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 10px 18px; border-bottom: 1px solid var(--k2-line); background: var(--k2-surface); }
body.uxr.app .uxk2-panel-actions .uxk2-prop-count { flex: 1 1 100%; margin: 0; font-size: 13.5px; color: var(--k2-text-2); }
body.uxr.app .uxk2-panel-actions #uxk-prop-apply { flex: 1 1 auto; justify-content: center; }
body.uxr.app .uxk2-panel > .uxk2-panel-foot { display: block; padding: 8px 18px 10px; border-top: 1px solid var(--k2-line); }
body.uxr.app .uxk2-panel > .uxk2-panel-foot .hint { text-align: left; font-size: 12.5px; }
/* The panel never reaches under the page's save bar (≈ 96 px with its gap). */
@media (min-width: 1180px) {
  body.uxr.app .uxk2-body.has-panel .uxk2-panel { max-height: calc(100dvh - var(--shell-height, 72px) - 150px); }
  /* With the panel beside the page, «Ver la propuesta» would only repeat it. */
  body.uxr.app .uxk2-savebar.has-proposal .uxk2-prop-pill { display: none; }
}
/* R3-07 · while Brando works, the page behind steps back (dimmed, still usable: no invisible layer) and the panel is
   outlined. It returns to normal on success, error or close. Reduced motion: no transition; reduced transparency: a
   solid ground instead of a translucent dim. */
body.uxr.app .uxk2-body .uxk2-main { transition: opacity .2s ease, filter .2s ease; }
body.uxr.app .uxk2-body.is-inferring .uxk2-main { opacity: .55; filter: saturate(.6); }
body.uxr.app .uxk2-body.is-inferring .uxk2-main:focus-within { opacity: 1; filter: none; }
body.uxr.app .uxk2-panel[data-state="working"] { box-shadow: 0 0 0 2px var(--k2-action), 0 10px 30px rgba(23, 58, 47, .18); }
body.uxr.app .uxk2-panel[data-state="ready"] .uxk2-panel-head h3 { color: var(--k2-action); }
@media (prefers-reduced-motion: reduce) { body.uxr.app .uxk2-body .uxk2-main { transition: none; } }
@media (prefers-reduced-transparency: reduce) { body.uxr.app .uxk2-body.is-inferring .uxk2-main { opacity: 1; filter: grayscale(.5); } }
/* R3-09 · the approval is at the top of «Revisar cambios» and stays in view while its rows scroll. */
body.uxr.app .uxk2-review-head { position: sticky; top: calc(var(--shell-height, 72px) + 6px); z-index: 4; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: -4px -8px 8px; padding: 8px; border-radius: var(--k2-radius-sm); background: var(--k2-surface); }
body.uxr.app .uxk2-review-head h3 { margin: 0 0 2px; }
body.uxr.app .uxk2-review-head .hint { margin: 0; font-size: 13.5px; }
/* While the review is on screen, the save bar does not repeat its action. */
body.uxr.app .uxk2-savebar.is-review-visible #uxk-to-review { display: none; }
/* R3-10 · «Estrategia lista»: the experiment is a quiet optional line, never a second urgent action. */
body.uxr.app .uxk2-next-optional { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; font-size: 13.5px; color: var(--k2-text-2); }
body.uxr.app .uxk2-next-optional .ico { width: 14px; height: 14px; }
@media (max-width: 767px) {
  body.uxr.app .uxk2-review-head { top: calc(var(--shell-height, 64px) + 4px); }
  body.uxr.app .uxk2-review-head #uxk-approve { width: 100%; }
}

/* ── Plantillas · confirmación de retiro (R3-38) ──────────────────────────────────────────────── */
body.uxr.app .uxk-tpl-confirm { display: grid; gap: 6px; margin-top: 6px; padding: 10px 12px; border: 1px solid color-mix(in srgb, #C4A777 60%, transparent); border-radius: var(--k2-radius-sm); background: var(--k2-champagne-soft); }
body.uxr.app .uxk-tpl-confirm p { margin: 0; font-size: 14px; }
body.uxr.app .uxk-tpl-confirm .hint { font-size: 13px; }
body.uxr.app .uxk-tpl-confirm-actions { display: flex; flex-wrap: wrap; gap: 8px; }
body.uxr.app .uxk-tpl-confirm-actions button { min-height: 44px; }
body.uxr.app :is(.uxk-tpl-confirm, .uxk-tpl-menu-item)[hidden] { display: none; }

/* ── Identidad · selección y adopción junto a los valores (R3-15) ──────────────────────────────── */
body.uxr.app .uxk-adopt-bar { position: sticky; top: calc(var(--shell-height, 72px) + 6px); z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0 0 12px; padding: 10px 14px; border: 1px solid var(--k2-line); border-radius: var(--k2-radius); background: var(--k2-surface); box-shadow: var(--k2-shadow); }
body.uxr.app .uxk-adopt-bar p { margin: 0; }
body.uxr.app .uxk-adopt-bar .hint { font-size: 13px; }
body.uxr.app .uxk-adopt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
body.uxr.app .uxk-adopt-actions .uxk-select-all { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
body.uxr.app .uxk-adopt-actions .uxk-select-all input, body.uxr.app .kit-adopt input { width: 20px; height: 20px; accent-color: var(--k2-action); }
body.uxr.app .uxk-adopt-scope { display: inline-flex; gap: 10px; margin-left: auto; font-size: 13.5px; }
body.uxr.app .uxk-card-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
body.uxr.app .uxk-twin { display: block; font-size: 12.5px; }
@media (max-width: 767px) { body.uxr.app .uxk-adopt-bar { position: static; } body.uxr.app .uxk-adopt-actions button { width: 100%; } }

/* ── Identificador de la marca activa y presencia del logo (R3-11, R3-12) ─────────────────────── */
/* The brand's own logo replaces the initials when there is a safe raster logo; Brandopolis keeps its own logo above. */
@media (min-width: 1280px) {
  body.uxr.app:not(.left-collapsed) header .header-brand-control.has-logo::before { content: ""; background: #fff; border: 1px solid var(--k2-line); }
  body.uxr.app:not(.left-collapsed) header .header-brand-control img.k2-brand-mark { position: absolute; z-index: 2; left: 15px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; object-fit: contain; pointer-events: none; }
  body.uxr.app:not(.left-collapsed) header .header-brand-control[data-mark-note]::after { content: attr(data-mark-note); }
}
/* Logo previews: a larger useful area, same proportions; the empty margin of the file is trimmed for viewing only. */
body.uxr.app .uxk-logos { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
body.uxr.app .uxk-logo-frame { height: 132px; padding: 8px; }
body.uxr.app .uxk-logo-frame img { max-height: 116px; width: 100%; height: 100%; object-fit: contain; }

/* ── Continuidad por estado (R2-55, R3-18): one component at the end of every module ─────────────── */
body.uxr.app .uxk-continuity { margin-top: 18px; }
body.uxr.app .uxk-continuity strong { display: block; }
body.uxr.app .uxk-continuity p { margin: 2px 0 0; }
body.uxr.app .uxk-continuity-list { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 2px; font-size: 13.5px; color: var(--k2-text-2); }
body.uxr.app .uxk-continuity-list li::before { content: "· "; }
body.uxr.app .uxk-continuity .hint .uxk-link { font-size: inherit; }

/* ── Ofertas · Buscar, Estado y Orden en una fila (R3-19) ──────────────────────────────────────── */
body.uxr.app .k2-offers .list-toolbar { grid-column: 1 / -1; grid-row: 1; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; }
body.uxr.app .k2-offers .list-toolbar > div:has(#offer-search) { flex: 1 1 260px; max-width: 460px; }
body.uxr.app .k2-offers .list-toolbar > div:has(select) { flex: 0 1 220px; }
body.uxr.app .k2-offers .list-toolbar > .uxk-result-count { order: 9; margin: 0 0 10px auto; align-self: center; }
@media (max-width: 640px) { body.uxr.app .k2-offers .list-toolbar > div { flex: 1 1 100%; max-width: none; } body.uxr.app .k2-offers .list-toolbar > .uxk-result-count { margin: 0; order: 0; } }

/* ── Materiales · un tipo elegido y un Brando que dice qué propone (R3-20) ─────────────────────── */
body.uxr.app .uxk-choice[aria-checked="true"] { border-color: var(--k2-action); background: var(--k2-select); box-shadow: 0 0 0 1px var(--k2-action) inset; }
body.uxr.app .uxk-choice[aria-checked="true"] .uxk-choice-mark { border: 7px solid var(--k2-action); }
body.uxr.app .uxk-choice:focus-visible { outline: 2px solid var(--k2-action); outline-offset: 2px; }
body.uxr.app .uxk-dl-form .uxk-brando-entry { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
body.uxr.app .uxk-dl-form .uxk-brando-entry > .brando-toggle { flex: 0 0 auto; width: auto; }
body.uxr.app .uxk-brando-scope { flex: 1 1 260px; margin: 0; font-size: 13px; }
body.uxr.app .uxk-dl-form .uxk-brando-entry > .brando-assist-panel { flex: 1 1 100%; }
/* Compact editor: less vertical air, fields keep 12 px+ text and 44 px targets. */
body.uxr.app .uxk-dl-form { gap: 10px; }
body.uxr.app .uxk-dl-form .uxk-dl-grid { gap: 8px 16px; }
body.uxr.app .uxk-dl-form label { margin-top: 4px; }

/* ── Lista y detalle unidos (R3-19, R3-22) ───────────────────────────────────────────────────── */
/* With no editor open, the detail starts beside the top of the list (it used to land under a tall index). */
body.uxr.app .k2-master > .k2-master-editor:empty ~ .k2-master-host .k2-detail,
body.uxr.app .k2-offers > #offer-editor:empty ~ #offer-list-host .k2-detail { grid-row: 2 / span 2; align-self: start; }
body.uxr.app .k2-master .k2-index { align-self: start; }
/* Contents: a horizontal strip of compact cards, the detail right below. */
body.uxr.app .k2-master.is-strip { grid-template-columns: minmax(0, 1fr); }
body.uxr.app .k2-master.is-strip > .k2-master-editor { grid-column: 1; grid-row: 2; }
body.uxr.app .k2-master.is-strip .k2-strip-wrap { grid-column: 1; grid-row: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--k2-line); border-radius: var(--k2-radius); background: var(--k2-surface); }
body.uxr.app .k2-master.is-strip .k2-detail { grid-column: 1; grid-row: 3; }
body.uxr.app .k2-master.is-strip > .k2-master-editor:empty ~ .k2-master-host .k2-detail { grid-row: 2; }
body.uxr.app .k2-strip-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 8px; }
body.uxr.app .k2-strip-tools label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--k2-text-2); }
body.uxr.app .k2-strip-tools select { min-height: 36px; }
body.uxr.app .k2-strip-nav { display: inline-flex; gap: 6px; margin-left: auto; }
body.uxr.app .k2-strip-nav button { min-width: 44px; min-height: 40px; padding: 0 10px; font-size: 18px; }
body.uxr.app header .header-brand-control img.k2-brand-mark { display: none; }
@media (min-width: 1280px) { body.uxr.app:not(.left-collapsed) header .header-brand-control img.k2-brand-mark { display: block; } }
body.uxr.app .k2-strip { display: flex; gap: 8px; margin: 0; padding: 2px 2px 8px; list-style: none; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
body.uxr.app .k2-strip-item { flex: 0 0 210px; scroll-snap-align: start; }
body.uxr.app .k2-strip-item[hidden] { display: none; }
body.uxr.app .k2-strip-card { display: grid; gap: 4px; width: 100%; height: 100%; min-height: 96px; padding: 10px 12px; border: 1px solid var(--k2-line); border-radius: var(--k2-radius-sm); background: var(--k2-surface); color: var(--k2-text); text-align: left; font: inherit; cursor: pointer; }
body.uxr.app .k2-strip-card:hover { border-color: var(--k2-field-line, var(--k2-action)); background: var(--k2-surface); }
body.uxr.app .k2-strip-card:focus-visible { outline: 2px solid var(--k2-action); outline-offset: 2px; }
body.uxr.app .k2-strip-item.is-current .k2-strip-card { border-color: var(--k2-action); background: var(--k2-select); box-shadow: 0 0 0 1px var(--k2-action) inset; }
body.uxr.app .k2-strip-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; font-size: 12.5px; color: var(--k2-text-2); text-transform: capitalize; }
body.uxr.app .k2-strip-net { font-weight: 600; color: var(--k2-action); text-transform: none; }
body.uxr.app .k2-strip-card strong { font-weight: 500; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body.uxr.app .k2-strip-state { font-size: 12px; color: var(--k2-text-2); }
@media (max-width: 640px) { body.uxr.app .k2-strip-item { flex-basis: 74%; } body.uxr.app .k2-strip-nav { margin-left: 0; } }

/* ── Publicada el (R2-37) ───────────────────────────────────────────────────────────────────── */
body.uxr.app .uxk-pub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 12px; }
body.uxr.app .uxk-pub-plan { margin: 0 0 6px; font-size: 13px; }

/* ── Contenidos · acción masiva con resultado por pieza (R3-24) ───────────────────────────────── */
body.uxr.app .k2-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 8px; padding: 6px 0; border-top: 1px solid var(--k2-line); }
body.uxr.app .k2-bulk-note { flex: 1 1 100%; margin: 0; font-size: 12.5px; }
body.uxr.app .k2-strip-item { position: relative; }
body.uxr.app .k2-strip-pick { position: absolute; top: 6px; right: 6px; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--k2-surface); }
body.uxr.app .k2-strip-pick input { width: 18px; height: 18px; accent-color: var(--k2-action); }
body.uxr.app .k2-strip-item:has(.k2-strip-pick) .k2-strip-meta { padding-right: 30px; }

/* ── Sitio · árbol de páginas, estilo, imágenes, contacto (R3-27, R3-28, R3-30, R2-38, R2-39) ───── */
body.uxr.app .k2-site-nav { text-align: left; }
body.uxr.app .k2-site-pages, body.uxr.app .k2-site-sections { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
body.uxr.app .k2-site-sections { margin-left: 18px; padding-left: 10px; border-left: 2px solid var(--k2-line); }
body.uxr.app .k2-site-page-row { display: flex; align-items: center; gap: 4px; border-radius: var(--k2-radius-sm); }
body.uxr.app .k2-site-page-row > button, body.uxr.app .k2-site-sections button { flex: 1 1 auto; display: flex; align-items: center; justify-content: flex-start; gap: 8px; min-height: 40px; padding: 6px 8px; text-align: left; }
body.uxr.app .k2-site-page-row .ico { flex: 0 0 18px; width: 18px; height: 18px; }
body.uxr.app .k2-site-order { display: inline-flex; gap: 2px; }
body.uxr.app .k2-site-order button { min-width: 32px; min-height: 32px; padding: 0 6px; }
body.uxr.app .k2-site-page-row.is-dragging { opacity: .5; }
body.uxr.app .k2-site-page-row.is-drop { box-shadow: 0 -2px 0 var(--k2-action) inset; }
body.uxr.app .k2-site-page-row[draggable="true"] > button { cursor: grab; }
body.uxr.app .k2-site-order-hint { margin: 6px 0 10px; font-size: 12.5px; }
body.uxr.app .k2-site-style .uxk-grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px 12px; }
body.uxr.app .k2-site-looks { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
body.uxr.app .k2-site-image { display: grid; gap: 4px; }
body.uxr.app .k2-site-upload { justify-self: start; cursor: pointer; }
body.uxr.app .uxk-pc-found { margin: 4px 0 0; padding: 0; list-style: none; font-size: 13px; }

/* ── Vista previa ampliada reversible (R3-29) ─────────────────────────────────────────────────── */
body.uxr.app .uxk-site-preview.is-expanded { position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; gap: 8px; padding: 12px clamp(12px, 3vw, 32px); overflow: auto; background: var(--k2-surface); }
body.uxr.app .uxk-site-preview.is-expanded .uxk-site-preview-head { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 6px 0; background: var(--k2-surface); }
body.uxr.app .uxk-site-preview.is-expanded .uxk-site-frame { flex: 1 1 auto; position: static; inset: auto; box-shadow: none; overflow: hidden; }
body.uxr.app .k2-preview-back[hidden] { display: none; }
body.uxr.app .k2-preview-back { min-height: 44px; }
body.has-preview-expanded { overflow: hidden; }
body.uxr.app .k2-site-address { margin-bottom: 12px; }
body.uxr.app .k2-address-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
body.uxr.app .k2-address-row input { flex: 1 1 200px; max-width: 320px; }
body.uxr.app .k2-address-base { color: var(--k2-text-2); }

/* ── Clientes · tablero compacto con «Cierres» y ficha por tarjetas (R3-31, R3-32) ──────────────── */
@media (min-width: 1100px) { body.uxr.app .sales-board { grid-auto-columns: minmax(170px, 1fr); scroll-snap-type: x mandatory; } }
body.uxr.app .sales-board { scroll-padding-left: 0; }
body.uxr.app .sales-card { padding: 10px; }
body.uxr.app .sales-card .sales-amount { margin: 4px 0; }
body.uxr.app .sales-result { margin-left: auto; align-self: flex-start; }
body.uxr.app .sales-card.is-lost { opacity: .85; }
body.uxr.app .sales-closed-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 6px; }
body.uxr.app .sales-closed-tab { min-height: 32px; padding: 2px 8px; font-size: 12.5px; border-radius: 999px; border: 1px solid var(--k2-line); background: var(--k2-surface); color: var(--k2-text); }
body.uxr.app .sales-closed-tab[aria-pressed="true"] { border-color: var(--k2-action); background: var(--k2-select); color: var(--k2-action); font-weight: 600; }
body.uxr.app .sales-drop-row { display: flex; gap: 4px; margin-bottom: 6px; }
body.uxr.app .sales-drop { flex: 1; padding: 4px 6px; border: 1px dashed var(--k2-line); border-radius: 8px; font-size: 12px; color: var(--k2-text-2); text-align: center; }
body.uxr.app .sales-drop.is-over { border-color: var(--k2-action); color: var(--k2-action); }
body.uxr.app .deal-detail .uxk-deal-block { padding: 10px 14px; border: 1px solid var(--k2-line); border-radius: var(--k2-radius); background: var(--k2-surface); margin: 8px 0; }
body.uxr.app .deal-detail .uxk-deal-block > h5 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 4px; }
body.uxr.app .uxk-card-edit { margin-left: auto; }
body.uxr.app .uxk-card-sum { margin: 0 0 4px; font-size: 13px; }
body.uxr.app .deal-detail .uxk-deal-block.is-editing { border-color: var(--k2-action); }
body.uxr.app .deal-detail .uxk-deal-block :is(form, details)[hidden] { display: none; }

/* ── Campañas compactas (R3-37) ──────────────────────────────────────────────────────────────── */
body.uxr.app .campaign-editor .cmp-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 16px; }
body.uxr.app .campaign-editor [data-cmp-ice][hidden] { display: none; }
body.uxr.app .campaign-editor fieldset { padding: 6px 12px; }
body.uxr.app .campaign-editor fieldset .check-option { min-height: 40px; margin: 2px 0; }
body.uxr.app .cmp-brando-note { margin: 4px 0 8px; font-size: 13px; }

/* ── Onboarding · cabecera opaca y datos únicos (R3-01..R3-03) ─────────────────────────────────── */
body.uxr.app dialog.k2-onboard .uxk-dialog-head { top: -22px; margin: -22px -26px 10px; padding: 12px 26px; background: var(--k2-canvas); border-bottom: 1px solid var(--k2-line); }
@media (max-width: 760px) { body.uxr.app dialog.k2-onboard .uxk-dialog-head { top: -16px; margin: -16px -16px 10px; padding: 10px 16px; } }
body.uxr.app .uxk-same-data > summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 8px 12px; border: 1px solid var(--k2-line); border-radius: var(--k2-radius-sm); background: var(--k2-surface); }
body.uxr.app .uxk-same-data > summary::-webkit-details-marker { display: none; }
body.uxr.app .uxk-same-data[open] > summary .uxk-link { display: none; }
body.uxr.app .uxk-same-text { color: var(--k2-text); }
body.uxr.app .uxk-setup .uxk-label { margin: 0 0 4px; font-weight: 600; }
body.uxr.app .uxk-setup { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 10px 20px; align-items: start; }
body.uxr.app .uxk-setup > :is(.uxk-prepare-note, .uxk-fold, .uxk-actions, .k2-identity-fold, .setup-docs, .uxk-field[data-field="offer"], .uxk-field[data-field="name"]) { grid-column: 1 / -1; }
body.uxr.app .setup-identity-next { margin: 8px 0 0; padding: 10px 12px; border-left: 3px solid var(--k2-action); border-radius: var(--k2-radius-sm); background: var(--k2-select); font-size: 14px; }

/* ── Identidad · Brando arriba y por bloque (R3-13, R3-14) ────────────────────────────────────── */
body.uxr.app .k2-kit-brando { margin: 0 0 12px; }
body.uxr.app .k2-kit-brando[hidden] { display: none; }
body.uxr.app .k2-kit-brando .uxk-card-head { display: flex; justify-content: space-between; align-items: baseline; }
body.uxr.app .uxk-card-head .uxk-ai { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; }
body.uxr.app .uxk-card-head .uxk-ai .ico { width: 13px; height: 13px; }
/* While the retire confirmation is open, the menu flows inside the card (never cut by the end of the page). */
body.uxr.app .uxk-tpl-menu-panel:has(.uxk-tpl-confirm:not([hidden])) { position: static; min-width: 0; max-width: none; margin-top: 6px; box-shadow: none; }

/* R3-06 · cut a vector logo out of a manual page */
.uxk-crop{border:1px solid var(--line,#d8d8d2);border-radius:12px;padding:12px;display:grid;gap:10px;min-width:0}
.uxk-crop-pages{display:flex;flex-wrap:wrap;gap:6px}
.uxk-crop-pages [aria-pressed="true"]{outline:2px solid currentColor}
.uxk-crop-stage{max-width:100%;overflow:auto}
.uxk-crop-stage canvas{display:block;max-width:100%;height:auto;touch-action:none;cursor:crosshair;border:1px solid var(--line,#d8d8d2)}
.uxk-crop-fields{display:flex;flex-wrap:wrap;gap:8px 14px}
.uxk-crop-fields input{width:5em}
.uxk-crop-result{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.uxk-crop-result canvas{background:repeating-conic-gradient(#eee 0 25%,#fff 0 50%) 0 0/16px 16px;border:1px solid var(--line,#d8d8d2)}

/* R3-04 · what was read from the documents given at creation */
.uxk-intake{display:grid;gap:8px}
.uxk-intake-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.uxk-intake-files,.uxk-intake-found{margin:0;padding-left:1.2em;display:grid;gap:4px;overflow-wrap:anywhere}
.uxk-intake h4{margin:6px 0 0}
.uxk-intake [data-intake-site]{justify-self:start;width:auto}

/* R2-54 · fields in the work area and dialogs show their focus again: the rule that styles them (product-uxkit-v2.css)
   is more specific than the focus rule and removed its ring. Same selectors + :focus-visible; a transparent outline
   keeps a visible ring in forced-colours mode. */
body.uxr.app #decision :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]), select, textarea):focus-visible,
body.uxr.app dialog :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea):focus-visible { border-color: var(--k2-action); box-shadow: 0 0 0 3px var(--bp-emerald-focus-soft); outline: 2px solid transparent; }
body.uxr.app .uxk-field-error { margin: 4px 0 0; color: #9b2c1f; font-size: 14px; font-weight: 500; }
body.uxr.app :is(#decision, dialog) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]), select, textarea)[aria-invalid="true"] { border-color: #9b2c1f; }

/* R2-53 (low desktop) · Nueva marca: the summary column is sticky and taller than a low window (781px in a 568px dialog at
   1280×600), so «Preparar mi marca» only appeared at the very end of the scroll. Up to 860px of height it scrolls with
   the content and the primary action is reached like any other part of the dialog. */
@media (max-height: 860px) { body.uxr.app .k2-ob-summary { position: static; } }

/* R3-36 · follow-up reminders (Inicio and Notificaciones): overdue first, each a button to its opportunity. */
body.uxr.app .uxk-followups { margin: 16px 0; padding: 14px 16px; border: 1px solid var(--k2-line); border-radius: 12px; background: var(--k2-surface); }
body.uxr.app .uxk-followups :is(h3, h4) { margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
body.uxr.app .uxk-followup-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
body.uxr.app .uxk-followups .uxk-followup { width: 100%; min-height: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; text-align: left; justify-content: flex-start;
  background: var(--k2-surface); color: var(--k2-text); border: 1px solid var(--k2-line); border-radius: var(--k2-radius-sm); padding: 8px 12px; font-weight: 400; box-shadow: none; }
body.uxr.app .uxk-followups .uxk-followup:hover { background: var(--k2-select); color: var(--k2-text); border-color: var(--k2-field-line); }
body.uxr.app .uxk-followup-when { font-weight: 600; white-space: nowrap; }
body.uxr.app .uxk-followup-when.is-overdue { color: #9b2c1f; }
body.uxr.app .uxk-followup-what { min-width: 0; overflow-wrap: anywhere; }
/* R2-53 (found while testing R3-36, pre-existing) · a notification under the pointer took the generic dark button hover
   while its title and details kept dark text (unreadable); it now uses the light selection colour, like the reminders. */
body.uxr.app .notification-list .notification-open:hover { background: var(--k2-select); color: var(--k2-text); }
