/* Fourth visual review R4-01..R4-30 · 2026-10-21 · loaded after product-uxkit-r3.css. Linked for every mode, but every
   selector matches kit markup (body.uxr) or classes that only kit code adds, so PILOT renders as before. Same shell
   palette as kit v02: no new hue. */

/* R4-30 / R4-27 · Strategy panel: a changed commitment, Brando's limits and questions in view; its reason folded. */
body.uxr.app .uxk2-prop-alert { margin: 8px 0; padding: 8px 10px; border-left: 4px solid #9b2c1f; background: #fbeeea; color: var(--k2-text); border-radius: 6px; font-size: 14px; }
body.uxr.app .uxk2-prop-sub { margin: 8px 0 2px; font-weight: 600; font-size: 13px; color: var(--k2-text); }
body.uxr.app :is(.uxk2-prop-limits, .uxk2-prop-questions) ul { margin: 0; padding-left: 18px; font-size: 13.5px; }
body.uxr.app .uxk2-prop-questions li { margin: 2px 0; }
body.uxr.app .uxk2-prop-why { margin: 6px 0; font-size: 13.5px; }
body.uxr.app .uxk2-prop-why summary { cursor: pointer; color: var(--k2-text-2); }

/* R4-09 · the 30-day calendar keeps «Aplicar N al calendario» and its coverage in view while the list scrolls. */
body.uxr.app .plan30-bar { 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: 0 0 10px; padding: 10px 12px; border: 1px solid var(--k2-line); border-radius: var(--k2-radius-sm); background: var(--k2-surface); box-shadow: var(--k2-shadow); }
body.uxr.app .plan30-cover { font-weight: 600; }
body.uxr.app .plan30-kept { margin: 0 0 8px; }

/* R4-12 · expanded site preview. A glass ancestor (backdrop-filter) or a transformed one becomes the containing block of
   position:fixed, so the «full screen» preview stayed trapped inside the workspace with its header out of view. While it
   is expanded, only its ancestors drop those effects (the preview covers everything, nothing else is visible). */
body.uxr.app.has-preview-expanded :has(> .uxk-site-preview.is-expanded), body.uxr.app.has-preview-expanded :has(.uxk-site-preview.is-expanded) { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; transform: none !important; filter: none !important; contain: none !important; }
body.uxr.app .uxk-site-preview.is-expanded .uxk-site-preview-head { box-shadow: 0 1px 0 var(--k2-line); }
body.uxr.app .uxk-site-preview.is-expanded [data-preview-close] { order: -1; }

/* R4-25 · while an opportunity is dragged, «Cierres» shows two large drop targets over its body (closed cards below
   never intercept the drop). Outside a drag the two targets keep their compact place under the column title. */
body.uxr.app .sales-board.is-dragging-deal .sales-col-closed { position: relative; }
body.uxr.app .sales-board.is-dragging-deal .sales-drop-row { position: absolute; inset: 64px 6px 6px; z-index: 6; display: grid; grid-template-rows: 1fr 1fr; gap: 8px; }
body.uxr.app .sales-board.is-dragging-deal .sales-drop { display: grid; place-items: center; min-height: 72px; border: 2px dashed var(--k2-action); border-radius: var(--k2-radius-sm); background: color-mix(in srgb, var(--k2-surface) 94%, transparent); font-weight: 600; font-size: 15px; color: var(--k2-text); }
body.uxr.app .sales-board.is-dragging-deal .sales-drop[data-closed-col="LOST"] { border-color: #9b2c1f; }
body.uxr.app .sales-board.is-dragging-deal .sales-drop.is-over { background: var(--k2-select); border-style: solid; }

/* R4-01/R4-03 · Identidad: Brando's main action first, scope and mode compact; while it works, the rest of the page is
   dimmed (not with reduced transparency preferences: then only the working state shows) and «Publicar kit» stops
   floating over the proposals while the tool is open. */
body.uxr.app .k2-kb-main { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 4px 0 10px; }
body.uxr.app .k2-kb-main .hint { margin: 0; flex: 1 1 260px; }
body.uxr.app :is(.k2-kb-scope, .k2-kb-mode) { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 8px; padding: 0; border: 0; }
body.uxr.app .k2-kb-scope legend { font-weight: 600; font-size: 13px; margin-bottom: 4px; }
body.uxr.app .k2-kb-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 10px; border: 1px solid var(--k2-line); border-radius: 999px; background: var(--k2-surface); }
body.uxr.app .k2-kb-frame { margin: 4px 0 8px; }
body.uxr.app .k2-kit-brando.is-working { box-shadow: 0 0 0 3px var(--bp-emerald-focus-soft, rgba(0, 84, 64, .25)), var(--k2-shadow); }
body.uxr.app.is-kit-inferring #decision > :not(#kit-brando):not(:has(#kit-brando)) { opacity: .55; transition: opacity .2s; }
@media (prefers-reduced-motion: reduce) { body.uxr.app.is-kit-inferring #decision > :not(#kit-brando):not(:has(#kit-brando)) { transition: none; } }
body.uxr.app:has(#kit-brando:not([hidden])) .uxk-actions-sticky { position: static; }

/* R4-07 · after publishing offers: the next step to «Materiales de venta» in one compact row. */
body.uxr.app .uxk-continue-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 8px; padding: 10px 12px; border: 1px solid var(--k2-line); border-radius: var(--k2-radius-sm); background: var(--k2-select); }
body.uxr.app .uxk-continue-row p { margin: 0; flex: 1 1 220px; }

/* R4-08 · request presets read as separate secondary choices (never three adjoining primary buttons). */
body.uxr.app [data-brando-tip] { margin: 0 6px 6px 0; background: var(--k2-surface); color: var(--k2-text); border: 1px solid var(--k2-line); font-weight: 500; }
body.uxr.app [data-brando-tip]:hover { background: var(--k2-select); color: var(--k2-text); }

/* R4-24 · the role of each advisor reads complete (never «Pri…»). */
body.uxr.app [data-credit-form] select[name="role"] { min-width: 13em; }

/* R4-23 · lane value under its name, compact. */
body.uxr.app .sales-lane-value { margin: -2px 0 6px; font-size: 13px; font-weight: 600; color: var(--k2-text); overflow-wrap: anywhere; }

/* R4-22 · two named groups in the notifications panel. */
body.uxr.app .notifications-group { margin: 14px 0 6px; font-size: 14px; }

/* R4-20 · agenda of follow-ups. */
body.uxr.app .uxk-clients[data-tab="agenda"] > #uxk-clients-agenda { display: flex; flex-direction: column; gap: 12px; }
body.uxr.app .uxk-agenda-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
body.uxr.app .uxk-agenda-bar [data-agenda-range][aria-pressed="true"] { background: var(--k2-action); color: #fff; }
body.uxr.app .uxk-agenda-bar [data-agenda-range]:not([aria-pressed="true"]) { background: var(--k2-surface); color: var(--k2-text); border: 1px solid var(--k2-line); }
body.uxr.app .uxk-agenda-day { padding: 10px 12px; border: 1px solid var(--k2-line); border-radius: var(--k2-radius-sm); background: var(--k2-surface); }
body.uxr.app .uxk-agenda-day.is-overdue { border-left: 4px solid #9b2c1f; }
body.uxr.app .uxk-agenda-day h4 { margin: 0 0 6px; font-size: 14px; text-transform: capitalize; }
body.uxr.app .uxk-agenda-day ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
body.uxr.app .uxk-agenda-item { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; }
body.uxr.app .uxk-agenda-item.is-done { opacity: .7; }
body.uxr.app .uxk-agenda-what { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
body.uxr.app .uxk-agenda-acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
@media (min-width: 900px) { body.uxr.app .uxk-agenda-item { grid-template-columns: 70px minmax(0, 1fr) auto auto; } body.uxr.app .uxk-agenda-acts { grid-column: auto; } }

/* R4-19 · sound alert settings and the visible marker on the notifications button. */
body.uxr.app .uxk-alerts fieldset { border: 1px solid var(--k2-line); border-radius: var(--k2-radius-sm); padding: 10px 12px; margin: 8px 0; }
body.uxr.app .uxk-alerts legend { font-weight: 600; padding: 0 4px; }
body.uxr.app .has-due-alert { outline: 2px solid #9b2c1f; outline-offset: 2px; }

/* R4-15 · campaign proposal at the start and its coverage. */
body.uxr.app .cmp-propose-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 4px 0 10px; }
body.uxr.app .cmp-propose-top .cmp-brando-note { flex: 1 1 280px; margin: 0; }
body.uxr.app .cmp-coverage ul { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 6px; }
body.uxr.app .cmp-coverage li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
body.uxr.app .cmp-coverage li .hint { flex-basis: 100%; margin: 0 0 0 28px; }

/* R4-13 · brief and direction of a site proposal. */
body.uxr.app .site-brief-grid { display: grid; gap: 12px; }
@media (min-width: 900px) { body.uxr.app .site-brief-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
body.uxr.app .site-brief h5 { margin: 6px 0 4px; font-size: 14px; }
body.uxr.app .site-brief ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; overflow-wrap: anywhere; }

/* R4-14 · site changes asked in natural language. */
body.uxr.app .site-chat textarea { width: 100%; }
body.uxr.app .site-chat-msg[data-status="UNSUPPORTED"], body.uxr.app .site-chat-msg[data-status="NEEDS_CLARIFICATION"] { padding: 8px 12px; border-left: 4px solid #9b6a00; background: var(--k2-surface); }
body.uxr.app .site-chat-changes { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; }
body.uxr.app .site-chat-history { margin: 6px 0 0; padding-left: 18px; overflow-wrap: anywhere; }

/* R4-05 · «Para quién»: the hint, the label «Segmento o público» and its field read in one column (the label was laid
   out in the second column, away from its field). */
body.uxr.app fieldset.uxk-pair:has(> #offer-segment) { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
body.uxr.app fieldset.uxk-pair:has(> #offer-segment) > * { grid-column: auto; margin: 0; }
body.uxr.app fieldset.uxk-pair > #offer-segment { width: 100%; }

/* R4-01 · the site's proposal action at the start of an empty draft. */
body.uxr.app .k2-site-propose-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin: 12px 0; }
body.uxr.app .k2-site-propose-top h3 { margin: 0 0 4px; }
body.uxr.app .k2-site-propose-top .hint { margin: 0; max-width: 62ch; }

/* v11 · L1-05 · a primary Brando action is a filled button: white text in every state (it inherited the emerald text
   colour of the outlined variant and read green on green). */
body.uxr.app button.brando-action:not(.secondary):not(.tertiary) { background: var(--k2-action); border-color: var(--k2-action); color: #fff; }
body.uxr.app button.brando-action:not(.secondary):not(.tertiary):hover, body.uxr.app button.brando-action:not(.secondary):not(.tertiary):active { background: var(--k2-action-hover); color: #fff; }
body.uxr.app button.brando-action:not(.secondary):not(.tertiary):focus-visible { outline: 3px solid var(--k2-action); outline-offset: 3px; color: #fff; }
body.uxr.app button.brando-action:disabled { opacity: .72; }
/* v11 · L1-13 · opportunity blocks: two columns where they fit; the block being edited spans both; Editar beside its title. */
body.uxr.app .deal-detail .uxk-deal-grid { display: grid; gap: 8px 12px; }
@media (min-width: 900px) { body.uxr.app .deal-detail .uxk-deal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } body.uxr.app .deal-detail .uxk-deal-grid > .uxk-deal-block.is-editing { grid-column: 1 / -1; } }
body.uxr.app .deal-detail .uxk-deal-grid > .uxk-deal-block { margin: 0; }
body.uxr.app .deal-detail .uxk-deal-block > h5 .uxk-card-edit { margin-left: 4px; }
/* v11 · R4-01 · the site's proposal card reads left to right. */
body.uxr.app .k2-site-propose-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; justify-items: start; text-align: left; }
body.uxr.app .k2-site-propose-top > div { min-width: 0; }
@media (max-width: 760px) { body.uxr.app .k2-site-propose-top { grid-template-columns: minmax(0, 1fr); } }
/* v11 · L1-08 · the changes chat under the preview: while it is open the preview column scrolls with the page. */
body.uxr.app .uxk-site-preview .site-chat { margin: 4px 0 0; padding: 12px; border-radius: 12px; }
body.uxr.app .uxk-site-preview:has(.site-chat[open]) { position: static; }
body.uxr.app .uxk-site-preview.is-expanded .site-chat { display: none; }

/* v11 · L1-10 · what the chat could not do, and options that start unticked. */
body.uxr.app .site-chat-notes { margin: 6px 0; padding-left: 18px; color: var(--k2-text-2); }
body.uxr.app .site-chat-changes li.is-option { opacity: .92; }

/* v11 · L1-16 · the team period, compact and horizontal. */
body.uxr.app .uxk-team-period { display: flex; flex-wrap: wrap; align-items: end; gap: 6px 12px; margin: 0 0 8px; }
body.uxr.app .uxk-team-period > div { display: grid; gap: 4px; }
body.uxr.app .uxk-team-period [hidden] { display: none; }
body.uxr.app .uxk-team-period .status { flex-basis: 100%; margin: 0; }

/* v11 · L1-01 · the research choice at the start of «Nueva marca». */
body.uxr .brand-research-early { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 10px 0 4px; }
body.uxr .brand-research-early .hint { flex-basis: 100%; margin-left: 26px; }

/* v11 · L1-03/04 · honest note where Brando cannot propose yet. */
body.uxr.app .uxk-brando-pending { display: flex; gap: 8px; align-items: baseline; margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; background: var(--k2-surface); border: 1px solid var(--k2-line); }

/* v11 · L1-07 · template briefs per category, compact cards. */
body.uxr.app .uxk-tpl-brief-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
body.uxr.app .uxk-tpl-brief { padding: 12px 14px; border: 1px solid var(--k2-line); border-radius: var(--k2-radius-sm); background: var(--k2-surface); }
body.uxr.app .uxk-tpl-brief h4 { margin: 0 0 2px; font-size: 15px; }
body.uxr.app .uxk-tpl-brief ul { margin: 6px 0; padding-left: 18px; font-size: 13.5px; }
body.uxr.app .uxk-tpl-brief .hint { margin: 2px 0; }
/* v12 · L2-01 · one onboarding conversation: the turns of «Más detalles» and «Completar ficha» inside the chat, and
   «Investigar mi mercado» beside «Preparar mi marca». */
body.uxr.app .k2-onboard .k2-turn { margin: 12px 0 0; }
body.uxr.app .k2-onboard .k2-turn > :is(textarea, input, select, .hint, label:not(.visually-hidden), fieldset, #brand-work-intent) { margin-left: 44px; width: calc(100% - 44px); }
body.uxr.app .k2-onboard .k2-turn > .hint { margin-top: 4px; }
body.uxr.app .k2-onboard .k2-turn fieldset.brand-ownership { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
body.uxr.app .k2-onboard .k2-turn fieldset.brand-ownership legend { padding: 0; margin-bottom: 4px; }
body.uxr.app .k2-ob-summary .k2-research { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; }
body.uxr.app .k2-ob-summary #k2-research-hint { margin: -6px 0 0; font-size: 13px; }
body.uxr.app .uxk-setup-ready { margin: 8px 0 0; }
@media (max-width: 760px) { body.uxr.app .k2-onboard .k2-turn > :is(textarea, input, select, .hint, label:not(.visually-hidden), fieldset, #brand-work-intent) { margin-left: 0; width: 100%; } }
/* v12 · L2-12 · Sitio web editor: the page list becomes a row above; editor and preview share the width in two columns;
   the brief reads in one column; the preview frame names its state (no pages, loading, error). */
@media (min-width: 1180px) {
  body.uxr.app .k2-site-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  body.uxr.app .k2-site-split > .k2-site-nav { grid-column: 1 / -1; position: static; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
  body.uxr.app .k2-site-split > .k2-site-nav h3 { margin: 0; font-size: 15px; }
  body.uxr.app .k2-site-split > .k2-site-nav :is(.k2-site-pages, .k2-site-sections) { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; }
  body.uxr.app .k2-site-split > .k2-site-nav :is(.k2-site-pages, .k2-site-sections) button { width: auto; min-height: 36px; }
  body.uxr.app .k2-site-split > .k2-site-nav .k2-site-order-hint { flex-basis: 100%; margin: 0; order: 9; }
}
body.uxr.app .k2-site-split .site-brief-grid { grid-template-columns: minmax(0, 1fr); gap: 4px; }
body.uxr.app .uxk-site-frame { position: relative; }
body.uxr.app .uxk-site-frame:is([data-state="empty"], [data-state="loading"], [data-state="error"])::after { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; color: var(--k2-text-2); font: 400 14px/1.4 var(--font-ui); text-align: center; background: var(--k2-surface); }
body.uxr.app .uxk-site-frame[data-state="empty"]::after { content: "Sin páginas todavía"; }
body.uxr.app .uxk-site-frame[data-state="loading"]::after { content: "Cargando la vista previa…"; background: color-mix(in srgb, var(--k2-surface) 70%, transparent); }
body.uxr.app .uxk-site-frame[data-state="error"]::after { content: "No se pudo mostrar la vista previa"; }
/* v12 · L2-14 · Nueva oportunidad: action, date and time on one line when they fit; tighter labels and footer. */
body.uxr.app .uxk-grid-next { display: grid; gap: 6px 12px; }
@media (min-width: 760px) { body.uxr.app .uxk-grid-next { grid-template-columns: minmax(0, 2fr) minmax(150px, 1fr) minmax(120px, .8fr); align-items: end; } }
body.uxr.app .uxk-create-card label { margin-top: 4px; }
body.uxr.app .uxk-create-card .hint { margin: 6px 0 0; }
body.uxr.app .uxk-create-cards + #client-form-status:empty { display: none; }
body.uxr.app .uxk-create-foot { margin-top: 8px; }
/* v12 · L2-15 · the sale reads as one container (subtle tinted ground) holding opaque blocks; the grid of blocks keeps
   two columns from 900px and the block being edited spans both. */
body.uxr.app .deal-detail details.uxk-deal { background: color-mix(in srgb, var(--k2-action) 6%, var(--k2-canvas)); border-color: color-mix(in srgb, var(--k2-action) 22%, var(--k2-line)); }
body.uxr.app .deal-detail details.uxk-deal[open] > summary { border-bottom-color: color-mix(in srgb, var(--k2-action) 18%, var(--k2-line)); }
body.uxr.app .deal-detail .uxk-deal-grid { padding: 10px 12px 12px; }
body.uxr.app .deal-detail .uxk-deal-grid > .uxk-deal-block { background: var(--bp-white, #fff); box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
/* v12 · L2-02 · a known answer in the ficha reads as one quiet line («valor» · Editar), not a second box to open. */
body.uxr.app .uxk-same-data > summary::after { content: none; }
body.uxr.app .uxk-same-data > summary { padding: 4px 0; border: 0; background: transparent; }
body.uxr.app .uxk-same-data > summary .uxk-same-text { font-weight: 400; }
body.uxr.app .setup-ficha-row:has(> .uxk-same-data) { gap: 0; }
body.uxr.app .setup-ficha-row:has(> .uxk-same-data) > .uxk-label { margin: 0; color: var(--k2-text-2); font-size: 13.5px; }
body.uxr.app .setup-ficha-row:has(> .uxk-same-data) { padding: 8px 0; border-bottom: 1px solid var(--k2-line); }
/* v12 · L2-16 · while dragging, the two drop targets keep the side-by-side order they have at rest (ganada left,
   perdida right), only taller: the target under the pointer does not change when the drag starts. */
body.uxr.app .sales-board.is-dragging-deal .sales-drop-row { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
body.uxr.app .sales-board.is-dragging-deal .sales-drop { padding: 8px; text-align: center; }
/* v12 · the direct path under «Preparar mi marca»: a quiet fold, never a competing primary action. */
body.uxr.app .k2-ob-summary .k2-direct { margin: 0; padding: 0; border: 0; background: transparent; }
body.uxr.app .k2-ob-summary .k2-direct > summary { justify-content: center; min-height: 36px; padding: 4px 0; color: var(--k2-action); font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; }
body.uxr.app .k2-ob-summary .k2-direct > summary::after { content: none; }
body.uxr.app .k2-ob-summary .k2-direct[open] { padding: 8px 10px; border: 1px solid var(--k2-line); border-radius: var(--k2-radius-sm); background: var(--k2-surface); }
body.uxr.app .k2-ob-summary .k2-direct .actions { margin: 6px 0 0; }
/* v13 · WEB-01 · review of the generated site (non-blocking observations) and the direction choice in «Estilo». */
body.uxr.app .k2-site-review .k2-review-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
body.uxr.app .k2-site-review .k2-review-list li { display: flex; gap: 8px; align-items: baseline; line-height: 1.45; }
body.uxr.app .k2-site-review .k2-review-list .uxk-chip { flex: none; }
body.uxr.app .k2-site-directions .uxk-chip { margin-left: 6px; font-size: 12px; vertical-align: middle; }

/* v14 · R5-14 · sales materials as a grid of cards (type, name, state, progress); the open piece goes below. */
body.uxr.app .k2-master.is-grid { grid-template-columns: minmax(0, 1fr); }
body.uxr.app .k2-master.is-grid .k2-index { grid-column: 1; grid-row: 1; }
body.uxr.app .k2-master.is-grid > .k2-master-editor { grid-column: 1; grid-row: 2; }
body.uxr.app .k2-master.is-grid .k2-detail,
body.uxr.app .k2-master.is-grid > .k2-master-editor:empty ~ .k2-master-host .k2-detail { grid-column: 1; grid-row: 3; }
body.uxr.app .k2-master.is-grid .k2-index-list { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
body.uxr.app .k2-master.is-grid .k2-tile { border: 1px solid var(--k2-line); border-radius: var(--k2-radius); background: var(--k2-surface); }
body.uxr.app .k2-master.is-grid .k2-tile.is-current { border-color: var(--k2-action); box-shadow: inset 0 0 0 1px var(--k2-action); }
body.uxr.app .k2-master.is-grid .k2-tile .k2-index-item { height: 100%; padding: 12px; align-content: start; }
body.uxr.app .k2-tile-type { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--k2-text-2); }
body.uxr.app .k2-tile-name { font-size: 15px; line-height: 1.3; }
body.uxr.app .k2-tile-progress { font-size: 13px; line-height: 1.4; color: var(--k2-text-2); }

/* v14 · R5-08 · the cover thumbnail: the logo sits inside its box (the box is never an empty dark capsule). */
body.uxr.app .uxk-guide-page .uxk-guide-logo-box { position: absolute; top: 22px; left: 18px; max-width: 64%; padding: 6px; }
body.uxr.app .uxk-guide-page .uxk-guide-logo-box .uxk-guide-logo { position: static; display: block; max-width: 100%; }
body.uxr.app .uxk-guide-page .uxk-guide-logo-box .uxk-guide-logo[hidden] { display: none; }

/* v14 · R5-13 · «Seleccionar todos / Ninguno» next to the proposed fields. */
body.uxr.app .brando-select-all { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 4px 0 8px; }

/* v14 · R5-05 · while Brando's panel is open (generating or ready) the strategy behind it steps back; it comes back
   to full strength when the person points at it or moves the focus into it, and when the panel is applied or closed.
   The panel itself is never dimmed. The page is still usable: nothing is blocked or hidden. */
body.uxr.app .uxk2-body.has-panel > .uxk2-main { opacity: .5; filter: saturate(.6); transition: opacity .18s ease, filter .18s ease; }
body.uxr.app .uxk2-body.has-panel > .uxk2-main:hover,
body.uxr.app .uxk2-body.has-panel > .uxk2-main:focus-within { opacity: 1; filter: none; }
body.uxr.app .uxk2-body.has-panel > .uxk2-panel { box-shadow: 0 10px 32px rgba(0, 0, 0, .14); }
@media (prefers-reduced-motion: reduce) { body.uxr.app .uxk2-body.has-panel > .uxk2-main { transition: none; } }
@media (prefers-reduced-transparency: reduce) { body.uxr.app .uxk2-body.has-panel > .uxk2-main { opacity: 1; filter: saturate(.5) brightness(.97); } }
@media (forced-colors: active) { body.uxr.app .uxk2-body.has-panel > .uxk2-main { opacity: 1; filter: none; } }

/* v14 · R5-09 · the market research document, read in context. */
body.uxr.app .research-doc .research-body { white-space: pre-wrap; max-height: 60vh; overflow: auto; padding: 12px; border: 1px solid var(--k2-line); border-radius: var(--k2-radius-sm); background: var(--k2-surface); font-size: 14px; line-height: 1.55; }

/* v15 · SITE_COPY · Brando's editable texts in the site chat. */
body.uxr.app .site-copy-change { display: grid; gap: 4px; padding: 8px 0; border-bottom: 1px solid var(--k2-line); }
body.uxr.app .site-copy-change textarea { width: 100%; box-sizing: border-box; }
body.uxr.app .site-copy-note { border-left: 3px solid var(--k2-line); padding-left: 8px; }

/* v15 · R5-18 · advisors: the team block, the invitation entry and Mi cartera. */
body.uxr .k2-advisor-entry { margin: 0 0 16px; padding: 14px 16px; border: 1px solid var(--k2-line, #d8d8d8); border-radius: 10px; background: var(--k2-surface, #fff); }
body.uxr.app .k2-advisors { margin-top: 16px; }
body.uxr.app .k2-advisors .k2-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
body.uxr.app .k2-advisors .k2-inline input { flex: 1 1 220px; min-width: 0; }
body.uxr.app .k2-advisor-link { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; padding: 10px 12px; border: 1px solid var(--k2-line); border-radius: var(--k2-radius-sm); }
body.uxr.app .k2-advisor-link p { flex: 1 0 100%; margin: 0; }
body.uxr.app .k2-advisor-link input { flex: 1 1 260px; min-width: 0; font-family: ui-monospace, monospace; font-size: 13px; }
body.uxr.app .k2-advisor-list, body.uxr.app .k2-advisor-opps, body.uxr.app .k2-advisor-history { list-style: none; margin: 6px 0; padding: 0; }
body.uxr.app .k2-advisor-list > li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; padding: 8px 0; border-bottom: 1px solid var(--k2-line); }
body.uxr.app .k2-advisor-opps > li { padding: 10px 0; border-bottom: 1px solid var(--k2-line); }
body.uxr.app .k2-advisor-opps p { margin: 2px 0; }
body.uxr.app .k2-advisor-task { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-top: 6px; }
body.uxr.app .k2-advisor-task label { flex: 1 1 200px; min-width: 0; }
body.uxr.app .k2-advisor-task .hint { flex: 1 0 100%; margin: 0; }
body.uxr.app .k2-advisor-reason { flex: 1 0 100%; }
body.uxr.app[data-role="ADVISOR"] #journey, body.uxr.app[data-role="ADVISOR"] #strategy-nav, body.uxr.app[data-role="ADVISOR"] .global-search { display: none !important; }

/* v15 · R5-03 · known answers as compact cards with «Editar»; only what is missing stays as a question. */
body.uxr.app .k2-known { margin: 4px 0 14px; }
body.uxr.app .k2-known-title { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--k2-text-2); }
body.uxr.app .k2-known-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 8px; }
body.uxr.app .k2-known-grid > .k2-known-card { margin: 0; padding: 8px 10px; border: 1px solid var(--k2-line); border-bottom: 1px solid var(--k2-line); border-radius: var(--k2-radius-sm); background: var(--k2-surface); min-width: 0; }
body.uxr.app .k2-known-grid > .k2-known-card[data-long="true"] { grid-column: span 2; }
body.uxr.app .k2-known-grid > .k2-known-card:has(details[open]) { grid-column: 1 / -1; }
body.uxr.app .k2-known-grid > .k2-known-card > .uxk-label { font-size: 12.5px; line-height: 1.3; }
body.uxr.app .k2-known-grid .uxk-same-data > summary { padding: 2px 0 0; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
body.uxr.app .k2-known-grid .k2-known-card > .hint { margin: 2px 0 0; font-size: 12px; }
@media (max-width: 560px) { body.uxr.app .k2-known-grid > .k2-known-card[data-long="true"] { grid-column: auto; } }

/* v15 · R5-04 · the pending D2 notice as one folded line. */
body.uxr.app .k2-pending-fold { margin: 0 0 10px; }
body.uxr.app .k2-pending-fold > summary { font-size: 13px; color: var(--k2-text-2); }
body.uxr.app .k2-pending-fold .uxk-brando-pending { margin: 6px 0 0; }
body.uxr.app .k2-known-grid .k2-known-card > .uxk-same-data { margin: 2px 0 0; padding: 0; border-top: 0; }
body.uxr.app .k2-known-grid .k2-known-card > .uxk-same-data > summary { min-height: 32px; align-items: center; }
@media (pointer: coarse) { body.uxr.app .k2-known-grid .k2-known-card > .uxk-same-data > summary { min-height: 44px; } }

/* POST v15 · E1 · Inicio de una marca existente: el siguiente paso encabeza como propuesta de Brando (por reglas). */
body.uxr.app .k2-next { margin: 0 0 18px; }
body.uxr.app .k2-next > h2 { margin: 0; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; color: var(--k2-text); }
body.uxr.app .k2-next-sub { margin: 4px 0 12px; color: var(--k2-text-2); font-size: 16px; }
body.uxr.app .k2-next-who { margin: 0 0 6px; font-weight: 600; color: var(--k2-text); font-size: 14px; }
body.uxr.app .k2-next .next-step { margin: 0; border: 1px solid var(--k2-line); border-radius: var(--k2-radius-sm); background: var(--k2-surface); }
body.uxr.app .k2-next .next-step-art img { width: 64px; height: 64px; }

/* POST v15 · E1 · «Clientes y oferta» como tabla compacta y panel lateral para ajustar un dato. */
body.uxr.app .k2-fichatable-wrap { overflow-x: auto; margin: 0 0 14px; border: 1px solid var(--k2-line); border-radius: var(--k2-radius-sm); background: var(--k2-surface); }
body.uxr.app .k2-fichatable { width: 100%; border-collapse: collapse; font-size: 15px; }
body.uxr.app .k2-fichatable th, body.uxr.app .k2-fichatable td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--k2-line); }
body.uxr.app .k2-fichatable thead th { font-size: 13px; font-weight: 600; color: var(--k2-text-2); background: var(--k2-canvas); }
body.uxr.app .k2-fichatable tbody th { width: 22%; font-weight: 600; }
body.uxr.app .k2-fichatable tbody tr:last-child > * { border-bottom: 0; }
body.uxr.app .k2-ft-from { display: block; margin-top: 2px; font-size: 12.5px; }
body.uxr.app .k2-ft-edit { width: 1%; white-space: nowrap; }
body.uxr.app .k2-ft-edit .uxk-link { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; }
body.uxr.app .k2-field-panel-host { position: fixed; inset: 0; z-index: 1100; background: rgba(23, 58, 47, .28); display: flex; justify-content: flex-end; }
body.uxr.app .k2-field-panel { width: min(480px, 100vw); height: 100%; overflow-y: auto; padding: 22px 22px 28px; background: var(--k2-surface); box-shadow: -12px 0 32px rgba(0, 0, 0, .14); display: flex; flex-direction: column; gap: 12px; }
body.uxr.app .k2-fp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
body.uxr.app .k2-fp-head h3 { margin: 0; font-size: 20px; }
body.uxr.app .k2-field-panel textarea, body.uxr.app .k2-field-panel input, body.uxr.app .k2-field-panel select { width: 100%; box-sizing: border-box; }
@media (max-width: 640px) { body.uxr.app .k2-fichatable thead { display: none; } body.uxr.app .k2-fichatable tr { display: grid; grid-template-columns: 1fr auto; } body.uxr.app .k2-fichatable tbody th { width: auto; grid-column: 1; border-bottom: 0; padding-bottom: 2px; } body.uxr.app .k2-fichatable td { grid-column: 1 / -1; border-bottom: 0; padding-top: 4px; } body.uxr.app .k2-fichatable td.k2-ft-edit { grid-column: 2; grid-row: 1; } body.uxr.app .k2-fichatable tr { border-bottom: 1px solid var(--k2-line); } }
body.uxr .k2-name-pending { margin: 4px 0 10px; }
body.uxr .k2-name-pending-box { margin-top: 6px; padding: 10px 12px; border: 1px solid var(--k2-line, #d8d8d8); border-radius: 10px; }
body.uxr .k2-name-pending-box .hint { margin: 0 0 8px; }

/* POST v15 · E1 · pasos de la nueva marca y «Revisar y confirmar». */
body.uxr.app .k2-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin: 0 0 14px; padding: 0; list-style: none; }
body.uxr.app .k2-steps li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; color: var(--k2-text-2); font-size: 14.5px; }
body.uxr.app .k2-steps li.is-current { background: var(--k2-select); color: var(--k2-text); font-weight: 600; }
body.uxr.app .k2-step-mark { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--k2-line); font-size: 13px; }
body.uxr.app .k2-steps li.is-done .k2-step-mark, body.uxr.app .k2-steps li.is-current .k2-step-mark { background: var(--k2-action); border-color: transparent; color: #fff; }
body.uxr.app .k2-step-mark .ico { width: 14px; height: 14px; }
body.uxr.app .k2-review-lead { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: start; margin: 4px 0 16px; padding: 14px 16px; border-radius: var(--k2-radius-sm); background: var(--k2-champagne-soft); }
body.uxr.app .k2-review-lead img { width: 48px; height: 48px; }
body.uxr.app .k2-review-lead h3 { margin: 0 0 2px; font-size: 18px; }
body.uxr.app .k2-review-lead p { margin: 0; }
body.uxr.app .k2-review-state { grid-column: 1 / -1; font-size: 14px; color: var(--k2-text-2); }
body.uxr.app .k2-review { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
body.uxr.app .k2-reviewtable caption { padding: 12px 14px 4px; text-align: left; font-weight: 600; font-size: 17px; }
body.uxr.app .k2-review-box { margin: 0 0 12px; padding: 12px 14px; border: 1px solid var(--k2-line); border-radius: var(--k2-radius-sm); background: var(--k2-surface); }
body.uxr.app .k2-review-box-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
body.uxr.app .k2-review-box-head h3 { margin: 0; font-size: 16px; }
body.uxr.app .k2-review-box-head .uxk-link { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; }
body.uxr.app .k2-review-box p { margin: 6px 0 0; }
body.uxr.app .k2-review-docs { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
body.uxr.app .k2-review-docs li { display: flex; align-items: center; gap: 8px; }
body.uxr.app .k2-review-docs li > span:first-of-type { flex: 1; min-width: 0; overflow-wrap: anywhere; }
body.uxr.app .k2-review-side { padding: 4px 0 0 18px; border-left: 1px solid var(--k2-line); }
body.uxr.app .k2-review-side h3 { margin: 0 0 10px; font-size: 18px; }
body.uxr.app .k2-review-side ul { margin: 0 0 12px; padding: 0; list-style: none; display: grid; gap: 14px; }
body.uxr.app .k2-review-side li { display: grid; grid-template-columns: 32px 1fr; gap: 10px; }
body.uxr.app .k2-review-side li strong { display: block; font-weight: 600; }
body.uxr.app .k2-review-side li span { color: var(--k2-text-2); font-size: 14px; }
body.uxr.app .k2-review-side li strong { color: var(--k2-text); font-size: 15px; }
@media (max-width: 960px) { body.uxr.app .k2-review { grid-template-columns: 1fr; } body.uxr.app .k2-review-side { padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--k2-line); } }
body.uxr.app .k2-reviewtable tbody th { width: 24%; }
body.uxr.app .k2-reviewtable td.k2-rt-state { width: 1%; white-space: nowrap; }
body.uxr.app .k2-next #next-step-brando { background: transparent; color: var(--k2-action); border: 1px solid var(--k2-line); text-decoration: none; font-size: 15px; }
body.uxr.app .k2-next #next-step-brando:hover { background: var(--k2-select); }
@media (max-width: 640px) { body.uxr.app .k2-reviewtable td.k2-rt-state { white-space: normal; } }
@media (max-width: 640px) {
  body.uxr.app .k2-steps { flex-wrap: nowrap; gap: 6px; }
  body.uxr.app .k2-steps li { padding: 4px 8px 4px 4px; font-size: 13.5px; }
  body.uxr.app .k2-steps li:not(.is-current) > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  body.uxr.app .k2-fichatable td.k2-ft-empty { display: none; }
}

/* POST v15 · E2 · Sitios: estudio (Tu marca → Diseño → Edición → Revisión). Tokens del sistema; la identidad del
   cliente sólo vive dentro del lienzo y las miniaturas (renderer real), nunca en el constructor. */
body.uxr.app .ss { display: flex; flex-direction: column; gap: 14px; }
body.uxr.app .ss-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding-bottom: 10px; border-bottom: 1px solid var(--k2-line); }
body.uxr.app .ss-crumbs { margin: 0; font-size: 15px; color: var(--k2-text-2); display: flex; align-items: center; gap: 8px; }
body.uxr.app .ss-crumbs strong { color: var(--k2-text); }
body.uxr.app .ss-head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
body.uxr.app .ss-save-wrap { display: inline-flex; align-items: center; gap: 8px; margin-right: 6px; }
body.uxr.app .ss-save { font-size: 13.5px; color: var(--k2-text-2); display: inline-flex; align-items: center; gap: 6px; }
body.uxr.app .ss-save::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--k2-action); }
body.uxr.app .ss-save[data-state="saving"]::before, body.uxr.app .ss-save[data-state="dirty"]::before { background: var(--k2-champagne); }
body.uxr.app .ss-save[data-state="error"], body.uxr.app .ss-save[data-state="conflict"] { color: var(--k2-text); font-weight: 600; }
body.uxr.app .ss-save[data-state="error"]::before, body.uxr.app .ss-save[data-state="conflict"]::before { background: #B4472E; }
body.uxr.app .ss-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin: 0; padding: 0; list-style: none; }
body.uxr.app .ss-step { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 12px 4px 4px; border: 0; border-radius: 999px; background: none; color: var(--k2-text-2); font-size: 15px; cursor: pointer; }
body.uxr.app .ss-step:disabled { cursor: default; opacity: .55; }
body.uxr.app .ss-step-mark { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--k2-line); font-size: 13px; }
body.uxr.app .ss-steps .is-done .ss-step-mark, body.uxr.app .ss-steps .is-current .ss-step-mark { background: var(--k2-action); border-color: transparent; color: #fff; }
body.uxr.app .ss-steps .is-current .ss-step { background: var(--k2-select); color: var(--k2-text); font-weight: 600; }
body.uxr.app .ss-step-mark .ico { width: 14px; height: 14px; }
body.uxr.app .ss-lead { margin: 4px 0 14px; color: var(--k2-text-2); font-size: 16px; }
body.uxr.app .ss-stage h3:first-child, body.uxr.app .ss-stage > h3, body.uxr.app .ss-design-head h3 { margin: 0; font-size: clamp(24px, 2.2vw, 32px); }
body.uxr.app .ss-title { margin: 0; font-size: 22px; }
body.uxr.app .ss-titles { display: grid; gap: 2px; }
body.uxr.app .ss-used { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
body.uxr.app .ss-used li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--k2-line); border-radius: var(--k2-radius-sm); background: var(--k2-surface); }
body.uxr.app .ss-used li strong { display: block; }
body.uxr.app .ss-used li.is-ok .ico { color: var(--k2-action); }
body.uxr.app .ss-ask { margin: 0 0 12px; padding: 12px 14px; border-radius: var(--k2-radius-sm); background: var(--k2-champagne-soft); }
body.uxr.app .ss-ask p { margin: 0 0 6px; }
body.uxr.app .ss-ask-who { font-weight: 600; }
body.uxr.app .ss-sources { margin-top: 14px; padding: 14px 16px; border: 1px solid var(--k2-line); border-radius: var(--k2-radius-sm); background: var(--k2-surface); }
body.uxr.app .ss-sources dl { display: grid; gap: 8px; margin: 8px 0; }
body.uxr.app .ss-sources dl > div { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 10px; }
body.uxr.app .ss-sources dt { font-weight: 600; }
body.uxr.app .ss-sources dd { margin: 0; color: var(--k2-text-2); }
body.uxr.app .ss-design-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: flex-start; }
body.uxr.app .ss-rec { display: flex; gap: 10px; max-width: 420px; margin: 0; }
body.uxr.app .ss-rec > span { display: grid; gap: 2px; }
body.uxr.app .ss-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 12px 0; }
body.uxr.app .ss-tpl { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--k2-line); border-radius: var(--k2-radius); background: var(--k2-surface); }
body.uxr.app .ss-tpl.is-picked { border: 2px solid var(--k2-action); padding: 9px; }
body.uxr.app .ss-thumb { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--k2-radius-sm); background: var(--k2-canvas); cursor: pointer; }
body.uxr.app .ss-thumb iframe { position: absolute; top: 0; left: 0; border: 0; pointer-events: none; background: #fff; }
body.uxr.app .ss-thumb-state { position: absolute; inset: auto 10px 10px; margin: 0; font-size: 13px; color: var(--k2-text-2); }
body.uxr.app .ss-thumb[data-state="ready"] .ss-thumb-state { display: none; }
body.uxr.app .ss-tpl-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
body.uxr.app .ss-tpl-pick { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; }
body.uxr.app .ss-tpl-foot .uxk-link { margin-left: auto; }
body.uxr.app .ss-tpl .hint { margin: 0; }
body.uxr.app .ss-styles { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0; padding: 0; border: 0; }
body.uxr.app .ss-styles legend { font-weight: 600; margin-bottom: 6px; }
body.uxr.app .ss-style { display: inline-flex; align-items: flex-start; gap: 8px; padding: 10px 14px; border: 1px solid var(--k2-line); border-radius: var(--k2-radius-sm); background: var(--k2-surface); cursor: pointer; }
body.uxr.app .ss-style > span { display: grid; gap: 2px; }
body.uxr.app .ss-style.is-picked { border-color: var(--k2-action); background: var(--k2-select); }
body.uxr.app .ss-styles-compact .ss-style { width: 100%; }
body.uxr.app .ss-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--k2-line); }
body.uxr.app .ss-foot .hint { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
body.uxr.app .ss-big { position: fixed; inset: 0; z-index: 1100; display: flex; flex-direction: column; background: var(--k2-canvas); }
body.uxr.app .ss-big-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--k2-line); background: var(--k2-surface); }
body.uxr.app .ss-big-head h3 { margin: 0 auto 0 0; font-size: 18px; }
body.uxr.app .ss-big-frame { flex: 1; overflow: hidden; padding: 0; }
body.uxr.app .ss-big-frame iframe { border: 0; background: #fff; display: block; }
body.uxr.app .ss-device { display: inline-flex; gap: 4px; }
body.uxr.app .ss-device button[aria-pressed="true"] { background: var(--k2-select); border-color: var(--k2-action); }
body.uxr.app .ss-edit { display: grid; grid-template-columns: minmax(280px, 330px) minmax(0, 1fr); gap: 16px; align-items: start; }
body.uxr.app .ss-panel { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 96px); overflow-y: auto; padding: 12px; border: 1px solid var(--k2-line); border-radius: var(--k2-radius); background: var(--k2-surface); }
body.uxr.app .ss-linked { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 8px 10px; border-radius: var(--k2-radius-sm); background: var(--k2-select); font-size: 14px; }
body.uxr.app .ss-linked .uxk-link { margin-left: auto; }
body.uxr.app .ss-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--k2-line); }
body.uxr.app .ss-tabs [role="tab"] { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 56px; padding: 6px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--k2-text-2); font-size: 14px; cursor: pointer; }
body.uxr.app .ss-tabs [role="tab"][aria-selected="true"] { color: var(--k2-text); font-weight: 600; border-bottom-color: var(--k2-action); background: var(--k2-select); }
body.uxr.app .ss-tabpanel { display: flex; flex-direction: column; gap: 10px; }
body.uxr.app .ss-tabpanel h3 { margin: 4px 0 0; font-size: 18px; }
body.uxr.app .ss-crumb { margin: 0; font-size: 13px; color: var(--k2-text-2); }
body.uxr.app .ss-field { display: grid; gap: 4px; margin: 0; padding: 0; border: 0; }
body.uxr.app .ss-field label, body.uxr.app .ss-field legend { font-weight: 600; font-size: 14px; }
body.uxr.app .ss-field input, body.uxr.app .ss-field textarea, body.uxr.app .ss-field select, body.uxr.app .ss-add select { width: 100%; box-sizing: border-box; }
body.uxr.app .ss-count { text-align: right; font-size: 12px; }
body.uxr.app .ss-section-actions { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 8px; border-top: 1px solid var(--k2-line); }
body.uxr.app .ss-outline { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
body.uxr.app .ss-outline-item { display: flex; align-items: flex-start; justify-content: flex-start; gap: 10px; width: 100%; padding: 10px; text-align: left; border: 1px solid var(--k2-line); border-radius: var(--k2-radius-sm); background: var(--k2-canvas); cursor: pointer; color: var(--k2-text); }
body.uxr.app .ss-outline-item:hover { border-color: var(--k2-action); }
body.uxr.app .ss-outline-item > span:last-child { display: grid; gap: 2px; }
body.uxr.app .ss-outline-n { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 6px; background: var(--k2-select); font-size: 13px; }
body.uxr.app .ss-add-row { display: flex; gap: 8px; margin-top: 4px; }
body.uxr.app .ss-scope { margin: 0; font-size: 14px; color: var(--k2-text-2); }
body.uxr.app .ss-current, body.uxr.app .ss-proposal { padding: 10px 12px; border: 1px solid var(--k2-line); border-radius: var(--k2-radius-sm); background: var(--k2-canvas); }
body.uxr.app .ss-current p { margin: 0; }
body.uxr.app .ss-proposals { display: grid; gap: 8px; }
body.uxr.app .ss-proposal { background: var(--k2-champagne-soft); }
body.uxr.app .ss-proposal p { margin: 0 0 4px; }
body.uxr.app .ss-proposal textarea { width: 100%; box-sizing: border-box; }
body.uxr.app .ss-conflict { color: var(--k2-text); font-weight: 600; }
body.uxr.app .ss-brando-form textarea { width: 100%; box-sizing: border-box; }
body.uxr.app .ss-canvas { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
body.uxr.app .ss-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 8px 10px; border: 1px solid var(--k2-line); border-radius: var(--k2-radius-sm); background: var(--k2-surface); }
body.uxr.app .ss-bar-tpl { margin-left: auto; font-size: 14px; }
body.uxr.app .ss-frame-host { position: relative; overflow: hidden; height: calc(100vh - 210px); min-height: 480px; border: 1px solid var(--k2-line); border-radius: var(--k2-radius-sm); background: var(--k2-canvas); }
body.uxr.app .ss-frame-host iframe { border: 0; display: block; background: #fff; }
body.uxr.app .ss-frame-state { position: absolute; inset: 10px 10px auto auto; margin: 0; padding: 6px 10px; border-radius: 999px; background: var(--k2-surface); box-shadow: var(--k2-shadow); font-size: 13px; }
body.uxr.app .ss-frame-host[data-state="ready"] .ss-frame-state { display: none; }
body.uxr.app .ss-canvas-hint { margin: 0; }
body.uxr.app .ss-review-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 12px; }
body.uxr.app .ss-review-box { margin: 0 0 12px; padding: 12px 14px; border: 1px solid var(--k2-line); border-radius: var(--k2-radius-sm); background: var(--k2-surface); }
body.uxr.app .ss-review-box h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 17px; }
body.uxr.app .ss-review-box ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
body.uxr.app .ss-review-views { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; min-width: 0; }
body.uxr.app .ss-review-views figure { margin: 0; }
body.uxr.app .ss-review-views figcaption { font-size: 13px; color: var(--k2-text-2); margin-top: 4px; }
/* RV26-16 · the review views are read, not picked: the whole site scrolls inside them with wheel, touch and keyboard
   (the gallery thumbnails keep pointer-events off, because a click there chooses the template). */
body.uxr.app .ss-review-views .ss-thumb { cursor: default; }
body.uxr.app .ss-review-views .ss-thumb iframe { pointer-events: auto; }
body.uxr.app .ss-review-views .ss-thumb:focus-within { outline: 2px solid var(--k2-action); outline-offset: 2px; }
body.uxr.app .ss-thumb-desk { aspect-ratio: 4 / 5; }
body.uxr.app .ss-thumb-mob { aspect-ratio: 9 / 18; }
body.uxr.app .ss-form-link { margin: 4px 0 0; text-align: right; }
body.uxr.app .ss-form-back { margin: 0 0 10px; }
@media (max-width: 1100px) { body.uxr.app .ss-gallery { grid-template-columns: 1fr 1fr; } body.uxr.app .ss-review-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  body.uxr.app .ss-edit { grid-template-columns: minmax(0, 1fr); }
  body.uxr.app .ss-panel { position: static; max-height: none; order: 2; }
  body.uxr.app .ss-canvas { order: 1; }
  body.uxr.app .ss-frame-host { height: 70vh; }
  body.uxr.app .ss-gallery { grid-template-columns: minmax(0, 1fr); }
  body.uxr.app .ss-thumb { aspect-ratio: 4 / 3.4; }
  body.uxr.app .ss-head-actions { width: 100%; }
  body.uxr.app .ss-sources dl > div { grid-template-columns: 1fr; }
}

/* POST v15 · E3 · Marketing › Contenidos: biblioteca vertical (Tarjetas) o filas (Lista) con búsqueda y filtros; cada
   pieza muestra cuatro estados independientes (texto, arte, fecha, registro de publicación) con palabras, no colores. */
body.uxr.app .k2-lib-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 8px; }
body.uxr.app .k2-lib-tools label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--k2-text-2); }
body.uxr.app .k2-lib-tools select { min-height: 36px; }
body.uxr.app .k2-lib-search { flex: 1 1 220px; }
body.uxr.app .k2-lib-search input { width: 100%; min-height: 38px; box-sizing: border-box; }
body.uxr.app .k2-lib-view { display: inline-flex; gap: 4px; }
body.uxr.app .k2-lib-view button[aria-pressed="true"] { background: var(--k2-select); border-color: var(--k2-action); }
body.uxr.app .k2-strip.k2-lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; overflow: visible; scroll-snap-type: none; max-height: min(62vh, 640px); overflow-y: auto; padding: 2px; }
body.uxr.app .k2-strip.k2-lib .k2-strip-item { flex: none; position: relative; }
body.uxr.app .k2-strip.k2-lib[data-view="list"] { grid-template-columns: minmax(0, 1fr); gap: 6px; }
body.uxr.app .k2-strip.k2-lib[data-view="list"] .k2-strip-card { display: grid; grid-template-columns: minmax(150px, 210px) minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; min-height: 0; padding: 8px 12px; }
body.uxr.app .k2-strip.k2-lib[data-view="list"] .k2-lib-states { justify-content: flex-end; }
body.uxr.app .k2-lib-states { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
body.uxr.app .k2-lib-states > span { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--k2-line); background: var(--k2-canvas); font-size: 12px; line-height: 1.4; color: var(--k2-text-2); }
body.uxr.app .k2-lib-states > [data-tone="APPROVED"], body.uxr.app .k2-lib-states > [data-tone="ART"] { color: var(--k2-text); border-color: var(--k2-action); background: var(--k2-select); }
body.uxr.app .k2-lib-states > [data-tone="REVIEW"] { color: var(--k2-text); background: var(--k2-champagne-soft); }
body.uxr.app .k2-lib-empty { margin: 8px 0 0; }
@media (max-width: 700px) {
  body.uxr.app .k2-strip.k2-lib { grid-template-columns: minmax(0, 1fr); max-height: none; }
  body.uxr.app .k2-strip.k2-lib[data-view="list"] .k2-strip-card { grid-template-columns: minmax(0, 1fr); }
  body.uxr.app .k2-strip.k2-lib[data-view="list"] .k2-lib-states { justify-content: flex-start; }
}

/* POST v15 · E3 · editor de publicación en tres grupos (Texto, Arte, Detalles) con barra de salto; nada se oculta. */
body.uxr .uxk-dl-grid.is-grouped { display: block; }
body.uxr .dl-group-nav { position: sticky; top: 64px; z-index: 3; display: flex; gap: 6px; margin: 0 0 10px; padding: 6px; border: 1px solid var(--k2-line); border-radius: 999px; background: var(--k2-surface); width: max-content; max-width: 100%; }
body.uxr .dl-group-nav a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; color: var(--k2-text); text-decoration: none; font-weight: 600; font-size: 14px; }
body.uxr .dl-group-nav a:hover, body.uxr .dl-group-nav a:focus-visible { background: var(--k2-select); }
body.uxr .dl-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; align-items: start; margin: 0 0 16px; padding: 14px 16px; border: 1px solid var(--k2-line); border-radius: var(--k2-radius-sm); background: var(--k2-surface); scroll-margin-top: 120px; }
body.uxr .dl-group > h4 { grid-column: 1 / -1; margin: 0; font-size: 16px; }
body.uxr .dl-group > .dl-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
body.uxr .dl-group > :not(.dl-f), body.uxr .dl-group > .dl-wide { grid-column: 1 / -1; min-width: 0; }
@media (max-width: 760px) { body.uxr .dl-group { grid-template-columns: minmax(0, 1fr); } body.uxr .dl-group-nav { top: 56px; } }

/* POST v15 · E4 · Campañas: área de trabajo a la izquierda y «Tu campaña toma forma» a la derecha; tokens del sistema. */
body.uxr.app .cs { display: flex; flex-direction: column; gap: 12px; }
body.uxr.app .cs-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px 16px; }
body.uxr.app .cs-head h2 { margin: 0; font-size: clamp(26px, 2.6vw, 38px); }
body.uxr.app .cs-head-side { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
body.uxr.app .cs-mode { margin: 0; padding: 4px 10px; border-radius: 999px; background: var(--k2-champagne-soft); font-size: 13px; }
body.uxr.app .cs-steps { justify-content: flex-start; }
body.uxr.app .cs-body { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.9fr); gap: 20px; align-items: start; }
body.uxr.app .cs-work { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
body.uxr.app .cs-preview { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--k2-radius); background: var(--k2-select); }
body.uxr.app .cs-preview h3 { margin: 0; font-size: 20px; }
body.uxr.app .cs-brando { display: flex; gap: 10px; margin: 0; padding: 10px 12px; border-radius: var(--k2-radius-sm); background: var(--k2-surface); border: 1px solid var(--k2-line); }
body.uxr.app .cs-brando strong { margin-right: 6px; }
body.uxr.app .cs-intents { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 0; padding: 0; border: 0; }
body.uxr.app .cs-intent { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border: 1px solid var(--k2-line); border-radius: var(--k2-radius-sm); background: var(--k2-surface); cursor: pointer; }
body.uxr.app .cs-intent input { margin-top: 3px; }
body.uxr.app .cs-intent > span { display: grid; gap: 2px; }
body.uxr.app .cs-intent.is-picked { border: 2px solid var(--k2-action); padding: 13px; background: var(--k2-select); }
body.uxr.app .cs-route { margin: 0; }
body.uxr.app .cs-route span { font-weight: 600; color: var(--k2-text); }
body.uxr.app .cs-context { padding: 12px 14px; border: 1px solid var(--k2-line); border-radius: var(--k2-radius-sm); background: var(--k2-surface); }
body.uxr.app .cs-context h3 { margin: 0 0 8px; font-size: 16px; }
body.uxr.app .cs-context ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
body.uxr.app .cs-context li { display: flex; gap: 10px; align-items: flex-start; }
body.uxr.app .cs-context li > span { display: grid; gap: 4px; flex: 1; }
body.uxr.app .cs-reco { padding: 12px 14px; border: 1px solid var(--k2-line); border-radius: var(--k2-radius-sm); background: var(--k2-surface); }
body.uxr.app .cs-reco h3 { margin: 0 0 8px; font-size: 17px; }
body.uxr.app .cs-reco dl, body.uxr.app .cs-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px 16px; margin: 0 0 6px; }
body.uxr.app .cs-reco dt, body.uxr.app .cs-summary dt { font-size: 13px; color: var(--k2-text-2); }
body.uxr.app .cs-reco dd, body.uxr.app .cs-summary dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
body.uxr.app .cs-summary { padding: 12px 14px; border: 1px solid var(--k2-line); border-radius: var(--k2-radius-sm); background: var(--k2-surface); }
body.uxr.app .cs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
body.uxr.app .cs-label { font-weight: 600; font-size: 14px; }
body.uxr.app .cs-row { display: flex; flex-wrap: wrap; gap: 8px; }
body.uxr.app .cs-row input, body.uxr.app .cs-row select { min-width: 0; flex: 1 1 100px; }
body.uxr.app .cs-radio { display: flex; gap: 14px; }
body.uxr.app .cs-brando-box { padding: 12px 14px; border: 1px dashed var(--k2-line); border-radius: var(--k2-radius-sm); }
body.uxr.app .cs-brando-box p { margin: 0 0 8px; }
body.uxr.app .cs-ad { display: grid; gap: 8px; padding: 14px; border-radius: var(--k2-radius-sm); background: #fff; border: 1px solid var(--k2-line); color: #1f2523; }
body.uxr.app .cs-ad p { margin: 0; }
body.uxr.app .cs-ad-host { font-size: 12.5px; color: #4d5753; }
body.uxr.app .cs-ad-title { font-size: 18px; color: #1a0dab; line-height: 1.3; }
body.uxr.app .cs-ad-brand { display: flex; flex-direction: column; }
body.uxr.app .cs-ad-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; }
body.uxr.app .cs-ad-img.is-empty { display: grid; place-items: center; background: var(--k2-canvas); color: var(--k2-text-2); font-size: 14px; }
body.uxr.app .cs-ad-head { font-weight: 700; }
body.uxr.app .cs-ad-cta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px solid var(--k2-line); font-weight: 600; }
body.uxr.app .cs-ad-cta > span { flex: 1; }
body.uxr.app .cs-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
body.uxr.app .cs-facts p { display: grid; gap: 2px; margin: 0; }
body.uxr.app .cs-list { margin-top: 10px; }
body.uxr.app .cs-list h3 { margin: 0 0 8px; font-size: 18px; }
body.uxr.app .cs-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
body.uxr.app .cs-list-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; text-align: left; border: 1px solid var(--k2-line); border-radius: var(--k2-radius-sm); background: var(--k2-surface); color: var(--k2-text); cursor: pointer; }
body.uxr.app .cs-list-name { display: grid; gap: 2px; }
body.uxr.app .cs-list-next { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
@media (max-width: 900px) {
  body.uxr.app .cs-body { grid-template-columns: minmax(0, 1fr); }
  body.uxr.app .cs-preview { position: static; }
  body.uxr.app .cs-grid { grid-template-columns: minmax(0, 1fr); }
  body.uxr.app .cs-list-item { grid-template-columns: minmax(0, 1fr); }
}

/* ─── POST v15 · E5 · CRM: Hoy → Conversaciones → Contactos → Oportunidades → Agenda → Reportes + Ajustes del CRM.
   Same tokens as the portal (no new colours); one panel at a time; a modal traps focus over an inert page. ─── */
body.uxr.app .uxk-clients-tabs { overflow-x: auto; scrollbar-width: thin; flex-wrap: nowrap; }
body.uxr.app .uxk-clients-tabs [role="tab"] { flex: none; }
body.uxr.app .uxk-clients-tabs .crm-settings-tab { margin-left: auto; }
body.uxr.app .uxk-clients[data-tab="reports"] > #uxk-clients-reports,
body.uxr.app .uxk-clients[data-tab="settings"] > #uxk-clients-settings { display: flex; flex-direction: column; gap: 16px; }
body.uxr.app .crm-set > .crm-set-panel { display: none; }
body.uxr.app .crm-set[data-set="team"] > #crm-set-team, body.uxr.app .crm-set[data-set="stages"] > #crm-set-stages,
body.uxr.app .crm-set[data-set="channels"] > #crm-set-channels, body.uxr.app .crm-set[data-set="prefs"] > #crm-set-prefs { display: flex; flex-direction: column; gap: 14px; }
body.uxr.app .crm-set-panel > h4 { margin: 4px 0 0; font-size: 18px; }
/* Hoy */
body.uxr.app .crm-brando { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px 14px; padding: 12px 16px; border: 1px solid var(--k2-line); border-left: 3px solid var(--k2-champagne); border-radius: var(--k2-radius-sm); background: var(--k2-surface); }
body.uxr.app .crm-brando > p { margin: 0; }
body.uxr.app .crm-brando .crm-why { grid-column: 1 / -1; }
body.uxr.app .crm-brando-mark { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--k2-text-2); font-size: 13px; font-weight: 600; white-space: nowrap; }
body.uxr.app .crm-brando-mark .ico { width: 16px; height: 16px; color: var(--k2-champagne); }
body.uxr.app .crm-why summary { color: var(--k2-action); font-size: 13.5px; cursor: pointer; }
body.uxr.app .crm-why p { margin: 6px 0 0; color: var(--k2-text-2); font-size: 13.5px; }
body.uxr.app .crm-today td .uxk-chip { margin-right: 8px; }
body.uxr.app .crm-today td .hint { display: block; }
body.uxr.app .crm-today-conv { margin: 0; color: var(--k2-text-2); }
body.uxr.app .crm-start { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border: 1px solid var(--k2-line); border-radius: var(--k2-radius); background: var(--k2-surface); box-shadow: var(--k2-shadow); }
body.uxr.app .crm-start h3 { margin: 0; }
body.uxr.app .crm-start-list { display: grid; gap: 8px; margin: 0; padding-left: 20px; }
body.uxr.app .crm-start-list li span { display: block; color: var(--k2-text-2); }
/* Ajustes · Canales */
body.uxr.app .crm-conns { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
body.uxr.app .crm-conn { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border: 1px solid var(--k2-line); border-radius: var(--k2-radius-sm); background: var(--k2-surface); }
body.uxr.app .crm-conn-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
body.uxr.app .crm-conn-head .badge { margin-left: auto; }
body.uxr.app .crm-caps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px 16px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
body.uxr.app .crm-caps .uxk-chip { min-width: 3.2em; }
body.uxr.app .crm-steps { margin: 0; padding-left: 20px; color: var(--k2-text-2); font-size: 14px; }
body.uxr.app .crm-conn-none { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0; }
/* Ajustes · Etapas */
body.uxr.app #crm-stages-host .sales-stage-list li { flex-wrap: wrap; }
body.uxr.app .crm-stage-count { min-width: 9em; }
body.uxr.app .sales-stage-list li.is-removed input { text-decoration: line-through; opacity: .7; }
body.uxr.app .crm-stage-dest { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; flex-basis: 100%; padding: 8px 10px; border-radius: var(--k2-radius-sm); background: var(--k2-select); }
body.uxr.app .crm-stage-dest label { margin: 0; }
body.uxr.app .crm-stage-read { margin: 0; padding-left: 20px; }
/* Ajustes · Equipo */
body.uxr.app .crm-reassign { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border: 1px solid var(--k2-line); border-radius: var(--k2-radius-sm); background: var(--k2-surface); }
body.uxr.app .crm-reassign h5 { margin: 0; font-size: 16px; }
body.uxr.app .crm-re-list { display: grid; gap: 4px; max-height: 320px; margin: 6px 0 0; padding: 0; overflow: auto; list-style: none; }
/* Reportes y contactos */
body.uxr.app .crm-report-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
body.uxr.app .uxk-contacts-bar { flex-wrap: wrap; }
/* Modal de importación */
body.uxr.app .crm-modal-layer { position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: 16px; }
body.uxr.app .crm-modal-backdrop { position: absolute; inset: 0; background: rgba(23, 58, 47, .32); }
body.uxr.app .crm-modal { position: relative; display: flex; flex-direction: column; width: min(720px, 100%); max-height: calc(100vh - 32px); border-radius: var(--k2-radius); background: var(--k2-surface); box-shadow: var(--k2-shadow); outline: none; }
body.uxr.app .crm-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 0; }
body.uxr.app .crm-modal-head h3 { margin: 0; }
body.uxr.app .crm-modal-body { display: flex; flex-direction: column; gap: 12px; flex: 1 1 auto; min-height: 0; padding: 12px 20px 20px; overflow: auto; }
body.uxr.app .crm-import-steps { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 8px 20px 0; padding: 0; color: var(--k2-text-2); font-size: 13.5px; list-style: none; }
body.uxr.app .crm-import-steps [aria-current="step"] { color: var(--k2-action); font-weight: 650; }
body.uxr.app .crm-import-sum { margin: 0; }
body.uxr.app .crm-import-issues { margin: 0; padding-left: 20px; color: var(--k2-text-2); font-size: 14px; }
@media (max-width: 699px) {
  body.uxr.app .crm-brando { grid-template-columns: minmax(0, 1fr); }
  body.uxr.app .crm-conn-head .badge { margin-left: 0; }
  body.uxr.app .crm-modal-layer { padding: 0; }
  body.uxr.app .crm-modal { width: 100%; height: 100vh; height: 100dvh; max-height: none; border-radius: 0; }
}
body.uxr.app .crm-why-text { grid-column: 1 / -1; margin: 0; color: var(--k2-text-2); font-size: 13.5px; }
body.uxr.app .crm-why-toggle { justify-self: start; }
body.uxr.app .uxk-agenda-day.is-undated h4 { text-transform: none; }
body.uxr.app .uxk-agenda .uxk-agenda-what { align-items: flex-start; text-align: left; }
body.uxr.app #crm-stages-host .sales-stage-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
body.uxr.app #crm-stages-host .sales-stage-list li > input { flex: 1 1 260px; width: auto; min-width: 0; }

/* ─── POST v15 · 2026-10-24 · common AI image box and the brand gallery (portal tokens only). ─── */
body.uxr.app .ai-box { margin-top: 8px; }
body.uxr.app .ai-box > :not(summary) { margin-top: 8px; }
body.uxr.app .ai-box-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px 12px; }
body.uxr.app .ai-box label { display: flex; flex-direction: column; gap: 4px; }
body.uxr.app .ai-box textarea { width: 100%; }
body.uxr.app .ai-box-figure { margin: 0; display: flex; flex-direction: column; gap: 6px; }
body.uxr.app .ai-box-figure img { display: block; max-width: 100%; max-height: 360px; object-fit: contain; border: 1px solid var(--k2-line); border-radius: var(--k2-radius-sm); background: var(--k2-canvas); }
body.uxr.app .ai-box-figure figcaption { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
body.uxr.app .ai-box-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; }
body.uxr.app .ai-box-thumbs li { display: flex; flex-direction: column; gap: 4px; }
body.uxr.app .ai-box-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--k2-line); border-radius: var(--k2-radius-sm); }
body.uxr.app .ai-box-thumbs li.is-current img { outline: 2px solid var(--k2-action); outline-offset: 2px; }
body.uxr.app .k2-ai-studio { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; padding: 18px 20px; border: 1px solid var(--k2-line); border-radius: var(--k2-radius); background: var(--k2-surface); }
body.uxr.app .k2-ai-studio h3, body.uxr.app .k2-ai-studio h4 { margin: 0; }
body.uxr.app .k2-ai-modes { display: flex; flex-wrap: wrap; gap: 8px 18px; }
body.uxr.app .ai-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
body.uxr.app .ai-gallery-item { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--k2-line); border-radius: var(--k2-radius-sm); background: var(--k2-surface); }
body.uxr.app .ai-gallery-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--k2-radius-sm); background: var(--k2-canvas); }
body.uxr.app .ai-gallery-item.is-discarded img { opacity: .45; }
body.uxr.app .ai-gallery-meta { display: flex; flex-direction: column; gap: 3px; }
body.uxr.app .ai-gallery-brief { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* POST v15 · attachments of a message: received files open in Chatwoot; a sent one names the brand image. */
body.uxr .inbox-attachments { list-style: none; margin: 4px 0 2px; padding: 0; display: grid; gap: 2px; font-size: .9em; }
body.uxr .inbox-attachments a { overflow-wrap: anywhere; }
/* RV26-17 · persistent way back from the site builder to Marketing. */
body.uxr.app .ss-leave { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 0 8px; font-size: 14px; }
body.uxr.app .ss-leave .uxk-link { min-height: 32px; }
/* RV26-18 · post cards with their art; the detail shows the current art beside the creative direction. */
/* RV26-18 · «+» on a calendar day adds a post for that date (opens the editor; nothing is saved until the draft is). */
body.uxr.app .cal-day { position: relative; }
body.uxr.app .cal-add { position: absolute; top: 2px; right: 2px; min-width: 32px; min-height: 32px; padding: 0; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--k2-text-2, #5b6b66); font-size: 18px; line-height: 1; box-shadow: none; opacity: 0; }
body.uxr.app .cal-day:hover .cal-add, body.uxr.app .cal-day:focus-within .cal-add, body.uxr.app .cal-add:focus-visible { opacity: 1; border-color: var(--uxk-line, #d9d6cc); background: #fff; color: var(--bp-brand-emerald-deep, #0b6b4f); }
@media (hover: none) { body.uxr.app .cal-add { opacity: 1; } }
/* RV26-18 · MKT-07 · the editor's parts as tabs, Historial, the version comparison and the card's «…» menu. */
body.uxr.app .dl-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 12px; border-bottom: 1px solid var(--uxk-line, #d9d6cc); }
body.uxr.app .dl-tabs [role="tab"] { min-height: 40px; padding: 8px 14px; border: 0; border-bottom: 3px solid transparent; border-radius: 8px 8px 0 0; background: transparent; color: var(--k2-text-2, #5b6b66); font-weight: 600; }
body.uxr.app .dl-tabs [role="tab"][aria-selected="true"] { color: var(--bp-brand-emerald-deep, #0b6b4f); border-bottom-color: var(--bp-brand-emerald, #0b6b4f); background: var(--bp-success-bg, #e4f1ea); }
body.uxr.app .dl-group[hidden] { display: none; }
body.uxr.app .dl-history { display: grid; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; }
body.uxr.app .dl-compare-dialog { width: min(960px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 20px; border: 1px solid var(--uxk-line, #d9d6cc); border-radius: 16px; }
body.uxr.app .dl-compare-dialog::backdrop { background: rgba(20, 30, 26, .45); }
body.uxr.app .dlc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
body.uxr.app .dl-compare-wrap { overflow-x: auto; }
body.uxr.app .dl-compare { width: 100%; border-collapse: collapse; font-size: 14px; }
body.uxr.app .dl-compare th, body.uxr.app .dl-compare td { padding: 8px 10px; border-bottom: 1px solid var(--uxk-line, #d9d6cc); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
body.uxr.app .dl-compare td.is-changed { background: var(--bp-gold-wash, #f6efd9); }
body.uxr.app .dl-changed { display: inline-block; margin-right: 4px; padding: 1px 8px; border-radius: 999px; background: var(--bp-warning, #8a5a00); color: #fff; font-size: 12px; font-weight: 650; }
body.uxr.app .k2-strip-item { position: relative; }
body.uxr.app .k2-card-menu { position: absolute; top: 6px; right: 6px; z-index: 2; }
body.uxr.app .k2-card-menu[open] { z-index: 60; }
body.uxr.app .k2-card-menu > summary { display: grid; place-items: center; width: 36px; height: 36px; list-style: none; border-radius: 999px; background: #fff; border: 1px solid var(--uxk-line, #d9d6cc); cursor: pointer; font-weight: 700; }
body.uxr.app .k2-card-menu > summary::-webkit-details-marker { display: none; }
body.uxr.app .k2-card-menu-list { position: fixed; z-index: 60; display: grid; min-width: 220px; padding: 6px; border: 1px solid var(--uxk-line, #d9d6cc); border-radius: 12px; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
body.uxr.app .k2-card-menu-list button { justify-content: flex-start; min-height: 40px; padding: 8px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--k2-text); font-weight: 500; text-align: left; box-shadow: none; }
body.uxr.app .k2-card-menu-list button:hover, body.uxr.app .k2-card-menu-list button:focus-visible { background: var(--bp-success-bg, #e4f1ea); }
body.uxr.app .dl-pv-art[data-pv-frame] { display: grid; place-items: center; overflow: hidden; border-radius: 10px; background: var(--k2-canvas, #f4f1ea); }
body.uxr.app .dl-pv-art[data-pv-frame] img { width: 100%; height: 100%; max-height: none; object-fit: contain; }
body.uxr.app .dl-pv-art[data-pv-frame] .dl-pv-noart { width: 100%; height: 100%; min-height: 0; border: 0; }
/* RV26-18 · the post editor in two columns: the form and an orientative preview beside it (stacked on narrow screens). */
body.uxr.app .dl-columns { display: grid; gap: 20px; }
@media (min-width: 1100px) { body.uxr.app .dl-columns { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } body.uxr.app .dl-preview { position: sticky; top: 16px; } }
body.uxr.app .dl-preview { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--uxk-line, #d9d6cc); border-radius: 16px; background: #fff; }
body.uxr.app .dl-preview .eyebrow { margin: 0; }
body.uxr.app .dl-pv-head { margin: 0; font-weight: 650; }
body.uxr.app .dl-pv-art img { display: block; width: 100%; max-height: 420px; object-fit: contain; border-radius: 10px; background: var(--k2-canvas, #f4f1ea); }
body.uxr.app .dl-pv-noart { margin: 0; display: grid; place-items: center; min-height: 120px; padding: 12px; text-align: center; font-size: 14px; color: var(--k2-text-2, #5b6b66); border: 1px dashed var(--uxk-line, #d9d6cc); border-radius: 10px; }
body.uxr.app .dl-pv-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
body.uxr.app .dl-pv-text:empty::before { content: 'El texto aparece aquí mientras escribes.'; color: var(--k2-text-2, #5b6b66); }
body.uxr.app .dl-pv-tags, body.uxr.app .dl-pv-cta { margin: 0; overflow-wrap: anywhere; }
body.uxr.app .dl-pv-tags { color: var(--bp-brand-emerald-deep, #0b6b4f); }
body.uxr.app .dl-pv-cta:not(:empty) { justify-self: start; padding: 6px 12px; border-radius: 999px; background: var(--bp-success-bg, #e4f1ea); font-weight: 650; }
body.uxr.app .dl-pv-tags:empty, body.uxr.app .dl-pv-cta:empty { display: none; }
body.uxr.app .k2-strip-thumb { display: block; width: 100%; height: 112px; margin: -2px 0 6px; overflow: hidden; border-radius: 8px; background: var(--k2-canvas); }
body.uxr.app .k2-strip-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* RV26-18 · «Sin arte adjunto» keeps the size of a real thumbnail, so the grid reads the same with or without art. */
body.uxr.app .k2-strip-thumb.is-empty { display: flex; align-items: center; justify-content: center; height: 112px; font-size: 13px; color: var(--k2-text-2); border: 1px dashed var(--uxk-line, #d9d9d9); background: none; }
body.uxr.app .final-art-preview { float: right; width: min(220px, 40%); margin: 0 0 8px 16px; }
body.uxr.app .final-art-preview img { width: 100%; height: auto; border-radius: 10px; display: block; }
@media (max-width: 700px) { body.uxr.app .final-art-preview { float: none; width: 100%; margin: 0 0 8px; } }


/* ───── RV27-07 · owner decision 2026-10-27 · Inicio of an existing brand = the PILOT composition (H-01) ─────
   The Brando block leads: green institutional block with the original gem, greeting, title and the composer inside;
   then the four entry cards; then, with less weight, the next step, «Para ti» and the brand in context. Same tokens and
   values as the PILOT hero (product-uxr.css, section «Inicio · Brando stage») so both read the same. */
body.uxr.app .k2-home.k2-home-h01 { display: block; max-width: 1280px; }
body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 { display: flex; flex-direction: column; gap: 0; padding: 0; border: 0; background: none; box-shadow: none; }
body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 > .home-hero { order: 0; position: relative; display: grid; grid-template-columns: 230px minmax(0, 1fr); column-gap: 28px; align-items: center; margin: 0; padding: 34px 40px 30px; border: 1px solid rgba(201, 174, 130, .45); border-radius: 30px; overflow: hidden; background: radial-gradient(60% 85% at 14% 34%, rgba(21, 154, 103, .55), transparent 62%), radial-gradient(55% 75% at 100% 0%, rgba(201, 174, 130, .30), transparent 60%), radial-gradient(40% 60% at 70% 120%, rgba(14, 122, 82, .45), transparent 70%), linear-gradient(135deg, var(--bp-brand-emerald-deep) 0%, #0a5a3e 55%, var(--bp-brand-emerald) 100%); box-shadow: 0 24px 60px rgba(7, 61, 45, .28); text-align: left; }
body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 .home-hero-art { position: relative; z-index: 1; display: grid; place-items: center; width: auto; height: auto; grid-row: 1; }
body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 .home-hero-art::before { display: block; content: ""; position: absolute; width: 250px; height: 250px; border-radius: 50%; background: radial-gradient(closest-side, rgba(226, 212, 183, .34), rgba(21, 154, 103, .18) 55%, transparent); }
body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 .home-hero-art::after { display: block; content: ""; position: absolute; width: 214px; height: 214px; border-radius: 50%; border: 1px solid rgba(226, 212, 183, .28); opacity: .6; }
body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 .home-gem { position: relative; width: 188px; height: 188px; filter: drop-shadow(0 0 22px rgba(226, 212, 183, .30)) drop-shadow(0 24px 30px rgba(0, 0, 0, .30)); }
body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 .home-hero-copy { position: relative; z-index: 1; grid-row: 1; min-width: 0; text-align: left; }
body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 .home-brand-line { margin: 0 0 4px; color: rgba(247, 243, 234, .82); font: 500 16px/1.4 var(--font-ui); justify-content: flex-start; }
body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 .home-brand-line strong { color: var(--bp-brand-soft-gold); font-weight: 650; }
body.uxr.app #decision .k2-home.k2-home-h01 .p5-home.h01 h2 { margin: 0 0 10px; color: var(--bp-brand-ivory); font: 400 clamp(32px, 3.4vw, 50px)/1.08 var(--font-display); letter-spacing: -.015em; }
body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 .home-hero-lead { display: block; margin: 0; max-width: 640px; color: rgba(247, 243, 234, .86); font-size: 17px; line-height: 1.55; }
body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 .home-hero > .home-composer { position: relative; z-index: 1; grid-column: 1 / -1; margin: 26px 0 0; padding: 16px 16px 12px 20px; border: 1px solid rgba(226, 212, 183, .6); border-radius: 22px; background: var(--surface-card, #fff); box-shadow: 0 18px 44px rgba(0, 0, 0, .22); }
body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 .home-hero > .home-composer:focus-within { border-color: var(--bp-brand-soft-gold); box-shadow: 0 0 0 4px rgba(226, 212, 183, .35), 0 18px 44px rgba(0, 0, 0, .22); }
body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 .home-composer button[type="submit"] { min-height: 48px; padding: 8px 20px 8px 22px; border-radius: 999px; background: var(--bp-brand-emerald-deep); color: var(--bp-white); font-weight: 650; }
body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 .home-hero > .home-help { position: relative; z-index: 1; grid-column: 1 / -1; margin: 12px 4px 0; color: rgba(247, 243, 234, .9); font-size: 14.5px; }
body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 .home-hero > .k2-attach-list { grid-column: 1 / -1; position: relative; z-index: 1; }
body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 .home-mode { border: 1px solid var(--bp-brand-champagne); background: var(--bp-white); color: var(--bp-brand-emerald-deep); font-weight: 600; }
body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 > .p5-convo-bar { order: 1; margin-top: 14px; }
body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 > .p5-convo-panel { order: 2; }
body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 > .p5-thread-wrap { order: 3; }
body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 > .home-starters { order: 4; }
body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 > .home-status { order: 5; }
/* Four entry cards, as in H-01. */
body.uxr.app .k2-home.k2-home-h01 .home-starters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 20px 0 0; padding: 0; border: 0; }
body.uxr.app .k2-home.k2-home-h01 .home-starter { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 10px 14px; align-items: start; width: auto; min-height: 150px; margin: 0; padding: 20px 20px 18px; border: 1px solid var(--uxr-line, var(--k2-line)); border-radius: 22px; overflow: hidden; background: var(--surface-card, #fff); box-shadow: var(--uxr-card-shadow, var(--k2-shadow)); color: var(--text-primary); text-align: left; font-weight: 400; }
body.uxr.app .k2-home.k2-home-h01 .home-starter:hover { border-color: var(--bp-brando-emerald-ring); background: var(--surface-card, #fff); }
body.uxr.app .k2-home.k2-home-h01 .home-starter .starter-icon { display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border-radius: 16px; background: linear-gradient(135deg, var(--bp-brand-emerald), var(--bp-brand-emerald-deep)); color: var(--bp-brand-soft-gold); box-shadow: 0 8px 18px rgba(11, 104, 71, .25); }
body.uxr.app .k2-home.k2-home-h01 .home-starter:nth-child(2) .starter-icon, body.uxr.app .k2-home.k2-home-h01 .home-starter:nth-child(4) .starter-icon { background: linear-gradient(135deg, var(--bp-brand-champagne), var(--bp-divider-gold)); color: var(--bp-white); box-shadow: 0 8px 18px rgba(139, 110, 60, .25); }
body.uxr.app .k2-home.k2-home-h01 .home-starter .starter-icon .ico { width: 24px; height: 24px; }
body.uxr.app .k2-home.k2-home-h01 .home-starter .starter-title { font: 650 16.5px/1.3 var(--font-ui); color: var(--bp-brand-charcoal); text-decoration: none; }
body.uxr.app .k2-home.k2-home-h01 .home-starter .starter-lead { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; font-size: 13.5px; line-height: 1.45; color: var(--text-muted); }
body.uxr.app .k2-home.k2-home-h01 .home-starter .starter-arrow { display: block; position: absolute; right: 16px; bottom: 14px; width: 18px; height: 18px; color: var(--bp-brand-emerald); }
/* Below the Brando block: the next step and «Para ti» (main), the brand in context (side), never above the composer. */
body.uxr.app .k2-home.k2-home-h01 .k2-home-below { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; margin-top: 26px; }
body.uxr.app .k2-home.k2-home-h01 .k2-home-below .k2-home-side { position: static; }
body.uxr.app #decision .k2-home.k2-home-h01 .k2-next h2 { margin: 0 0 2px; font: 400 20px/1.3 var(--font-ui); }
body.uxr.app .k2-home.k2-home-h01 .k2-next .k2-next-who { margin: 0 0 10px; font-size: 13px; }
body.uxr.app .k2-home.k2-home-h01 .home-actions-empty { margin: 10px 0 0; font-size: 13.5px; }
body.uxr.app .k2-home.k2-home-h01 .p5-home.h01[data-thread="active"] > .home-hero { grid-template-columns: 96px minmax(0, 1fr); padding: 18px 24px 18px; }
body.uxr.app .k2-home.k2-home-h01 .p5-home.h01[data-thread="active"] .home-gem { width: 84px; height: 84px; }
body.uxr.app .k2-home.k2-home-h01 .p5-home.h01[data-thread="active"] .home-hero-art::before, body.uxr.app .k2-home.k2-home-h01 .p5-home.h01[data-thread="active"] .home-hero-art::after { display: none; }
body.uxr.app .k2-home.k2-home-h01 .p5-home.h01[data-thread="active"] .home-hero-lead { display: none; }
@media (max-width: 1180px) { body.uxr.app .k2-home.k2-home-h01 .home-starters { grid-template-columns: repeat(2, minmax(0, 1fr)); } body.uxr.app .k2-home.k2-home-h01 .k2-home-below { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1000px) { body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 > .home-hero { grid-template-columns: 150px minmax(0, 1fr); padding: 26px 24px 22px; } body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 .home-gem { width: 132px; height: 132px; } body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 .home-hero-art::before { width: 170px; height: 170px; } body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 .home-hero-art::after { width: 148px; height: 148px; } }
@media (max-width: 767px) {
  body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 > .home-hero { grid-template-columns: minmax(0, 1fr); padding: 20px 16px 16px; border-radius: 24px; text-align: center; }
  body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 .home-hero-art { grid-row: auto; }
  body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 .home-gem { width: 96px; height: 96px; }
  body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 .home-hero-art::before { width: 124px; height: 124px; }
  body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 .home-hero-art::after { width: 110px; height: 110px; }
  body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 .home-hero-copy { grid-row: auto; text-align: center; }
  body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 .home-brand-line { justify-content: center; }
  body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 .home-hero > .home-composer { margin-top: 16px; padding: 12px 12px 10px 14px; text-align: left; }
  body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 .home-composer-bar { flex-wrap: wrap; }
  body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 .p5-keys { display: none; }
  body.uxr.app .k2-home.k2-home-h01 .home-starters { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  body.uxr.app .k2-home.k2-home-h01 .home-starter { min-height: 0; }
}

/* ───── RV27-05/06 · owner decision 2026-10-27 · five compact indicators in one row on desktop ─────
   Opportunities (Nuevas, Ganadas, Perdidas, Seguimientos vencidos, Potencial abierto) and Reports (Abiertas, Seguimientos,
   Ganadas / perdidas, Valor ganado, Potencial abierto) share one compact component: the five fit in one row from about
   600 px of content (1280 px with both side panels); narrower, they rearrange in readable rows instead of five tiny
   columns. Amounts wrap, never truncate. */
body.uxr.app .sales-kpis { grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 8px; margin: 0 0 10px; }
body.uxr.app .sales-kpi { gap: 1px; min-width: 0; padding: 8px 12px 9px; border-radius: 12px; box-shadow: none; }
body.uxr.app .sales-kpi-label { font-size: 12.5px; line-height: 1.3; }
body.uxr.app .sales-kpi strong { font: 600 19px/1.2 var(--font-ui); overflow-wrap: anywhere; }
body.uxr.app .sales-kpi-base { font-size: 11.5px; line-height: 1.3; }
@media (max-width: 560px) { body.uxr.app .sales-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
body.uxr.app .crm-report-head { align-items: end; margin: 0 0 4px; }
body.uxr.app .crm-report-head .uxk-team-title { margin: 0 auto 0 0; }
body.uxr.app .crm-report-head .uxk-team-period { margin: 0; }
body.uxr.app .crm-report-summary { margin: 0 0 4px; }
body.uxr.app .crm-report-help { margin: 0 0 10px; }

/* RV27-04 · «O empieza por la plataforma»: a compact second way in, visually apart from the objective cards. */
body.uxr.app .cs-platforms { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px 10px; margin: 12px 0 0; padding: 10px 0 0; border: 0; border-top: 1px solid var(--k2-line); }
body.uxr.app .cs-platforms legend { padding: 0; margin: 0 0 6px; font-size: 13px; color: var(--k2-text-2); }
body.uxr.app .cs-platform { display: flex; flex: 1 1 220px; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--k2-line); border-radius: var(--k2-radius-sm, 10px); background: var(--k2-surface); cursor: pointer; }
body.uxr.app .cs-platform > span { display: grid; gap: 2px; }
body.uxr.app .cs-platform.is-picked { border: 2px solid var(--k2-action); padding: 9px 11px; background: var(--k2-select); }
body.uxr.app .cs-platforms .uxk-link { align-self: center; }

/* ───── RV27-03 · compact family picker with schematic thumbnails ───── */
body.uxr.app .fam-picker { margin: 12px 0 0; padding: 0; border: 0; }
body.uxr.app .fam-picker legend { margin: 0 0 6px; font-weight: 600; }
body.uxr.app .fam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
body.uxr.app .fam-card { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--k2-line); border-radius: var(--k2-radius-sm, 10px); background: var(--k2-surface); cursor: pointer; }
body.uxr.app .fam-card input { margin-top: 3px; }
body.uxr.app .fam-card.is-picked { border: 2px solid var(--k2-action); padding: 9px 11px; background: var(--k2-select); }
body.uxr.app .fam-copy { display: grid; gap: 2px; min-width: 0; }
body.uxr.app .fam-copy .hint { font-size: 12.5px; }
body.uxr.app .fam-more { margin-top: 8px; }
body.uxr.app .fam-group { margin-top: 10px; }
body.uxr.app .fam-group-title { margin: 0 0 6px; font-size: 12.5px; color: var(--k2-text-2); text-transform: uppercase; letter-spacing: .06em; }
body.uxr.app .fam-thumb { flex: none; display: grid; gap: 3px; width: 56px; height: 42px; padding: 4px; border: 1px solid var(--k2-line); border-radius: 6px; background: var(--k2-bg, #fafaf7); grid-template: "a a" 12px "b c" 1fr / 1fr 1fr; }
body.uxr.app .fam-thumb i { display: block; border-radius: 2px; background: color-mix(in srgb, var(--k2-action) 30%, #fff); }
body.uxr.app .fam-thumb i:nth-child(1) { grid-area: a; background: var(--k2-action); }
body.uxr.app .fam-thumb i:nth-child(2) { grid-area: b; } body.uxr.app .fam-thumb i:nth-child(3) { grid-area: c; } body.uxr.app .fam-thumb i:nth-child(4) { display: none; }
body.uxr.app .fam-thumb.fam-salud, body.uxr.app .fam-thumb.fam-belleza, body.uxr.app .fam-thumb.fam-portafolio { grid-template: "a" 10px "b" 1fr "c" 1fr / 1fr; }
body.uxr.app .fam-thumb.fam-tienda, body.uxr.app .fam-thumb.fam-software, body.uxr.app .fam-thumb.fam-academia { grid-template: "a a a" 9px "b c d" 1fr / 1fr 1fr 1fr; }
body.uxr.app .fam-thumb.fam-tienda i:nth-child(4), body.uxr.app .fam-thumb.fam-software i:nth-child(4), body.uxr.app .fam-thumb.fam-academia i:nth-child(4) { display: block; grid-area: d; }
body.uxr.app .fam-thumb.fam-turismo { grid-template: "a" 10px "b" 1fr "c" 1fr "d" 1fr / 1fr; } body.uxr.app .fam-thumb.fam-turismo i:nth-child(4) { display: block; grid-area: d; }
body.uxr.app .fam-thumb.fam-hospedaje, body.uxr.app .fam-thumb.fam-gastronomia { grid-template: "a a" 18px "b c" 1fr / 1fr 1fr; }
body.uxr.app .fam-thumb.fam-industrial i { border-left: 3px solid var(--k2-action); }
body.uxr.app .fam-thumb.fam-inmobiliaria { grid-template: "a a" 8px "b c" 1fr / 1fr 1fr; }
body.uxr.app .k2-home.k2-home-h01 .k2-next .k2-next-who { font-weight: 400; color: var(--k2-text-2); }

/* ───── RV28-07 · owner decision 2026-10-27 · Inicio of an existing brand, compact ─────
   Same identity as H-01 (green block, original gem, ivory and champagne, the same fonts and icons), smaller: on a
   desktop at 100 % zoom (1280×720 and up) the welcome with its composer, the four routes and «Continuar donde lo
   dejaste» with its action are seen together. Nothing is scaled, cut or hidden: long text, an open detail or a
   conversation simply makes the page longer. All three levels share one width; the brand in context goes below. */
body.uxr.app .k2-home.k2-home-h01 { max-width: 1240px; margin-inline: auto; }
body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 { width: 100%; max-width: none; margin: 0; }
body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 > .home-hero { grid-template-columns: 112px minmax(0, 1fr); column-gap: 22px; padding: 18px 26px 14px; border-radius: 26px; }
body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 .home-gem { width: 96px; height: 96px; }
body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 .home-hero-art::before { width: 124px; height: 124px; }
body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 .home-hero-art::after { width: 108px; height: 108px; }
body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 .home-brand-line { margin: 0 0 2px; font-size: 14.5px; }
body.uxr.app #decision .k2-home.k2-home-h01 .p5-home.h01 h2 { margin: 0 0 4px; font-size: clamp(26px, 2.3vw, 36px); }
body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 .home-hero-lead { max-width: 760px; font-size: 15px; line-height: 1.45; }
body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 .home-hero > .home-composer { margin: 12px 0 0; padding: 8px 10px 8px 16px; border-radius: 18px; }
/* The composer is short at rest and grows with what the person writes (up to about eight lines, then it scrolls). */
body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 .home-composer textarea { min-height: 46px; max-height: 220px; field-sizing: content; resize: vertical; }
body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 .home-composer button[type="submit"] { min-height: 44px; }
body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 .home-hero > .home-help { margin: 8px 4px 0; font-size: 13px; }
body.uxr.app .k2-home.k2-home-h01 .home-starters { gap: 12px; margin: 12px 0 0; }
body.uxr.app .k2-home.k2-home-h01 .home-starter { grid-template-columns: 40px minmax(0, 1fr); gap: 4px 12px; min-height: 0; padding: 12px 34px 12px 14px; border-radius: 18px; }
body.uxr.app .k2-home.k2-home-h01 .home-starter .starter-icon { width: 40px; height: 40px; border-radius: 12px; grid-row: 1 / span 2; }
body.uxr.app .k2-home.k2-home-h01 .home-starter .starter-icon .ico { width: 20px; height: 20px; }
body.uxr.app .k2-home.k2-home-h01 .home-starter .starter-title { font-size: 15px; }
body.uxr.app .k2-home.k2-home-h01 .home-starter .starter-lead { font-size: 13px; line-height: 1.38; }
body.uxr.app .k2-home.k2-home-h01 .home-starter .starter-arrow { right: 12px; bottom: auto; top: 50%; transform: translateY(-50%); }
/* «Continuar donde lo dejaste»: one low card with the step and its action on the same line; the brand in context below. */
body.uxr.app .k2-home.k2-home-h01 .k2-home-below { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 14px; }
body.uxr.app .k2-home.k2-home-h01 .k2-next { margin: 0; }
body.uxr.app #decision .k2-home.k2-home-h01 .k2-next h2 { display: inline; margin: 0 8px 0 0; font: 600 16px/1.3 var(--font-ui); }
body.uxr.app .k2-home.k2-home-h01 .k2-next .k2-next-who { display: inline; margin: 0; font-size: 13px; }
body.uxr.app .k2-home.k2-home-h01 .k2-next .next-step { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 20px; margin-top: 8px; padding: 12px 18px; border-left: 3px solid var(--k2-champagne); }
body.uxr.app .k2-home.k2-home-h01 .k2-next .next-step > div:first-child { display: contents; }
body.uxr.app .k2-home.k2-home-h01 .k2-next .next-step .step-badge { grid-column: 1; margin: 0; font-size: 12px; }
body.uxr.app .k2-home.k2-home-h01 .k2-next .next-step h3 { grid-column: 1; margin: 0; font-size: 19px; line-height: 1.25; }
body.uxr.app .k2-home.k2-home-h01 .k2-next .next-step h3 + p { grid-column: 1; margin: 0; font-size: 14px; color: var(--k2-text-2); }
body.uxr.app .k2-home.k2-home-h01 .k2-next .next-step .actions { grid-column: 2; grid-row: 1 / span 3; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin: 0; }
body.uxr.app .k2-home.k2-home-h01 .k2-next .next-step .next-step-art { display: none; }
body.uxr.app .k2-home.k2-home-h01 .k2-home-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px 18px; align-items: start; }
body.uxr.app .k2-home.k2-home-h01 .k2-home-side > h3 { grid-column: 1 / -1; margin: 0; }
@media (max-width: 1000px) {
  body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 > .home-hero { grid-template-columns: 96px minmax(0, 1fr); padding: 16px 18px 14px; }
  body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 .home-gem { width: 84px; height: 84px; }
  body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 .home-hero-art::before { width: 108px; height: 108px; }
  body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 .home-hero-art::after { width: 96px; height: 96px; }
}
@media (max-width: 767px) {
  body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 > .home-hero { grid-template-columns: minmax(0, 1fr); padding: 16px 14px 14px; }
  body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 .home-gem { width: 80px; height: 80px; }
  body.uxr.app .k2-home.k2-home-h01 .k2-next .next-step { grid-template-columns: minmax(0, 1fr); }
  body.uxr.app .k2-home.k2-home-h01 .k2-next .next-step .actions { grid-column: 1; grid-row: auto; justify-content: flex-start; }
  body.uxr.app .k2-home.k2-home-h01 .home-starter .starter-arrow { top: auto; bottom: 12px; transform: none; }
}

/* ───── RV28-01 · Brando's image creator (a dialog over the page, the common composer inside) ───── */
body.uxr.app .image-creator { width: min(760px, calc(100vw - 32px)); }
body.uxr.app .image-creator .ic-lead { margin: 0 0 12px; }
body.uxr.app .image-creator .ic-use { display: grid; gap: 10px; margin-top: 14px; padding: 14px 16px; border: 1px solid var(--k2-line); border-left: 3px solid var(--k2-champagne); border-radius: var(--k2-radius-sm); background: var(--k2-surface); }
body.uxr.app .image-creator .ic-use h4 { margin: 0; }
body.uxr.app .image-creator .ic-use-row { display: grid; gap: 6px; }
body.uxr.app .image-creator .ic-use-row p { margin: 0; color: var(--k2-text-2); font-size: 14px; }
body.uxr.app .image-creator .ic-use-line { display: flex; flex-wrap: wrap; gap: 8px; }
body.uxr.app .image-creator .ic-use-line select { flex: 1 1 260px; min-width: 0; }

/* ───── RV28-03 · Hoy: one recommendation with its action, alternatives and the full list below ───── */
body.uxr.app .crm-next { display: grid; gap: 6px; padding: 14px 18px; border: 1px solid var(--k2-line); border-left: 3px solid var(--k2-champagne); border-radius: var(--k2-radius-sm); background: var(--k2-surface); }
body.uxr.app .crm-next h3 { margin: 0; font-size: 19px; }
body.uxr.app .crm-next-why { margin: 0; color: var(--k2-text-2); }
body.uxr.app .crm-next .actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; }
body.uxr.app .crm-next-more { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: 14px; }
body.uxr.app .crm-why-row { margin: 6px 0 12px; font-size: 13.5px; }

/* ───── RV28-04/05/06 · the conversation: links above the messages, images inside them, «Ir al más reciente» ───── */
body.uxr .inbox-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
body.uxr .inbox-link { flex: 1 1 200px; min-width: 0; border: 1px solid var(--uxk-line, #d9d6cc); border-radius: 12px; background: #fff; }
body.uxr .inbox-link[open] { flex-basis: 100%; order: -1; }
body.uxr .inbox-link > summary { display: flex; flex-direction: column; gap: 1px; padding: 8px 12px; cursor: pointer; list-style: none; }
body.uxr .inbox-link > summary::-webkit-details-marker { display: none; }
body.uxr .inbox-link-label { color: var(--k2-text-2, #5b6b66); font-size: 12px; font-weight: 600; }
body.uxr .inbox-link-value { overflow-wrap: anywhere; font-weight: 600; }
body.uxr .inbox-link-value.is-empty { color: var(--k2-action, #0b6b4f); font-weight: 500; }
body.uxr .inbox-link-value.is-empty::after { content: " · crear o vincular"; color: var(--k2-text-2, #5b6b66); font-weight: 400; }
body.uxr .inbox-link-body { display: grid; gap: 8px; padding: 4px 12px 12px; }
body.uxr .inbox-link-form { display: grid; gap: 8px; margin: 0; }
body.uxr .inbox-link-or { margin: 6px 0 0; color: var(--k2-text-2, #5b6b66); font-size: 13.5px; }
body.uxr .inbox-link-matches ul { display: grid; gap: 6px; margin: 6px 0; padding: 0; list-style: none; }
body.uxr .inbox-links-hint { margin: 8px 0 0; }
body.uxr .inbox-messages-wrap { position: relative; }
body.uxr .inbox-jump { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); min-height: 36px; padding: 6px 14px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
body.uxr .inbox-jump[hidden] { display: none; }
body.uxr .inbox-image { display: grid; gap: 4px; }
body.uxr .inbox-image-open { display: block; width: min(280px, 100%); aspect-ratio: 4 / 3; padding: 0; border: 1px solid var(--uxk-line, #d9d6cc); border-radius: 10px; overflow: hidden; background: var(--k2-surface, #f6f4ee); cursor: zoom-in; }
body.uxr .inbox-image-open img { display: block; width: 100%; height: 100%; object-fit: contain; }
body.uxr .inbox-image-error { margin: 0; color: var(--bp-warning, #8a5a00); }
body.uxr .inbox-viewer { width: min(1000px, calc(100vw - 32px)); }
body.uxr .inbox-viewer-img { display: block; max-width: 100%; max-height: calc(100vh - 160px); margin: 0 auto; object-fit: contain; }
/* RV28-07 · denser routes: the icon beside the title and the explanation below across the whole card (no lines lost). */
body.uxr.app .k2-home.k2-home-h01 .home-starter { grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; gap: 6px 10px; padding: 11px 36px 12px 13px; }
body.uxr.app .k2-home.k2-home-h01 .home-starter .starter-copy { display: contents; }
body.uxr.app .k2-home.k2-home-h01 .home-starter .starter-icon { grid-row: 1; grid-column: 1; width: 34px; height: 34px; border-radius: 10px; }
body.uxr.app .k2-home.k2-home-h01 .home-starter .starter-icon .ico { width: 18px; height: 18px; }
body.uxr.app .k2-home.k2-home-h01 .home-starter .starter-title { grid-row: 1; grid-column: 2; line-height: 1.2; }
body.uxr.app .k2-home.k2-home-h01 .home-starter .starter-lead { grid-row: 2; grid-column: 1 / -1; }
body.uxr.app .k2-home.k2-home-h01 .home-starter .starter-arrow { top: 18px; transform: none; }
body.uxr.app .k2-home.k2-home-h01 .k2-home-main { padding: 12px 16px; }
body.uxr.app .k2-home.k2-home-h01 .k2-next .next-step { padding: 10px 16px; gap: 4px 20px; }
body.uxr.app .k2-home.k2-home-h01 .k2-next .next-step .step-badge { justify-self: start; padding: 2px 10px; font-size: 11.5px; }
body.uxr.app .k2-home.k2-home-h01 .k2-next .next-step h3 { font-size: 18px; }
body.uxr.app .k2-home.k2-home-h01 .k2-next .next-step h3 + p { font-size: 13.5px; }
body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 .home-composer textarea { min-height: 40px; }
/* RV28-07 · low desktop screens (about 720–800 px tall at 100 % zoom): the same parts with a little less air. */
@media (min-width: 1001px) and (max-height: 800px) {
  body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 > .home-hero { padding: 14px 24px 10px; }
  body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 .home-gem { width: 84px; height: 84px; }
  body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 .home-hero-art::before { width: 108px; height: 108px; }
  body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 .home-hero-art::after { width: 96px; height: 96px; }
  body.uxr.app #decision .k2-home.k2-home-h01 .p5-home.h01 h2 { font-size: clamp(26px, 2.2vw, 32px); }
  body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 .home-hero > .home-composer { margin-top: 10px; }
  body.uxr.app .k2-home.k2-home-h01 .p5-home.h01 .home-hero > .home-help { margin-top: 6px; }
  body.uxr.app .k2-home.k2-home-h01 .home-starters { margin-top: 10px; }
  body.uxr.app .k2-home.k2-home-h01 .home-starter { padding: 9px 34px 10px 12px; }
  body.uxr.app .k2-home.k2-home-h01 .k2-home-below { margin-top: 10px; }
  body.uxr.app .k2-home.k2-home-h01 .k2-home-main { padding: 10px 14px; }
  body.uxr.app .k2-home.k2-home-h01 .k2-next .next-step { margin-top: 6px; padding: 8px 14px; }
}
body.uxr.app .image-creator .ic-use-row > button { justify-self: start; }
/* RV28-06 · the three links read as labels with their value (left-aligned), without the generic «Mostrar» chip. */
body.uxr .inbox-link > summary { align-items: flex-start; text-align: left; }
body.uxr .inbox-link > summary::after { content: none; display: none; }
body.uxr .inbox-link > summary:hover { background: var(--k2-select, rgba(7, 61, 45, .04)); }
body.uxr.app .crm-why-row p { margin: 6px 0 0; }

/* RV29 · CRM-2/4/5 · the conversation fits the window (app.js inboxFit sets --inbox-h, --inbox-top, --inbox-bottom):
   the history scrolls inside, the composer with «Enviar» stays at the foot and the page itself never scrolls for it. */
body.uxr .inbox.is-fitted { height: var(--inbox-h); min-height: 0; }
body.uxr .inbox.is-fitted .inbox-list { min-height: 0; overflow: hidden; }
body.uxr .inbox.is-fitted .inbox-threads { flex: 1 1 auto; min-height: 0; max-height: none; }
body.uxr .inbox.is-fitted .inbox-main { min-height: 0; }
body.uxr .inbox.is-fitted .inbox-thread-view { flex: 1 1 auto; min-height: 0; gap: 6px; }
body.uxr .inbox.is-fitted .inbox-links { flex: 0 0 auto; }
body.uxr .inbox.is-fitted .inbox-links:has(.inbox-link[open]) { flex: 0 1 auto; min-height: 0; max-height: 55%; overflow: auto; }
body.uxr .inbox.is-fitted .inbox-messages-wrap { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 96px; }
body.uxr .inbox.is-fitted .inbox-messages { flex: 1 1 auto; min-height: 0; max-height: none; }
body.uxr .inbox.is-fitted .inbox-composer { flex: 0 0 auto; }
/* The three links read as one compact row; the open one takes the row and its form scrolls inside. */
body.uxr .inbox-links { flex-wrap: nowrap; gap: 6px; margin: 0; }
body.uxr .inbox-links:has(.inbox-link[open]) { flex-wrap: wrap; }
body.uxr .inbox-link { flex: 1 1 0; }
body.uxr .inbox-link > summary { flex-direction: row; align-items: baseline; gap: 6px; padding: 6px 10px; white-space: nowrap; overflow: hidden; }
body.uxr .inbox-link-value { overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
body.uxr .inbox-link-value.is-empty::after { content: none; }
body.uxr .inbox-links-hint { margin: 6px 0 0; }
@media (max-width: 900px) {
  /* Phone and tablet: the open conversation fills the space between the header and the tab bar. */
  body.uxr .inbox.is-fitted { height: auto; }
  body.uxr .inbox.is-fitted:not(.has-selection) .inbox-list { height: var(--inbox-h); }
  body.uxr .inbox.is-fitted.has-selection .inbox-main { position: fixed; z-index: 40; left: 0; right: 0; top: var(--inbox-top, 0px); bottom: var(--inbox-bottom, 0px); padding: 8px; background: var(--k2-bg, #faf8f3); }
  body.uxr .inbox.is-fitted.has-selection .inbox-thread-view { height: 100%; padding: 8px 10px; }
  body.uxr .inbox.is-fitted .inbox-thread-head select { max-width: 132px; }
  body.uxr .inbox.is-fitted .inbox-link > summary { flex-direction: column; gap: 0; padding: 5px 8px; }
}

/* RV29 · CRM-3 · one editor box: the field, the chosen attachment with its preview, and the attach controls inside it;
   «Enviar» right next to the box. */
body.uxr .inbox-compose-row { align-items: stretch; }
body.uxr .inbox-editor { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; border: 1px solid var(--uxk-line, #d9d6cc); border-radius: 12px; background: var(--bp-white, #fff); }
body.uxr .inbox-editor:focus-within { border-color: var(--k2-action, var(--bp-brand-emerald)); box-shadow: 0 0 0 2px rgba(11, 107, 79, .15); }
body.uxr .inbox-editor textarea, body.uxr .inbox-compose-row .inbox-editor textarea { min-height: 44px; max-height: 160px; border: 0; border-radius: 12px 12px 0 0; background: transparent; box-shadow: none; resize: none; }
body.uxr .inbox-editor textarea:focus { outline: none; }
body.uxr .inbox-attach-preview { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 8px; padding: 6px 8px; border-radius: 10px; background: var(--uxk-soft); font-size: 13px; }
body.uxr .inbox-attach-preview[hidden] { display: none; }
body.uxr .inbox-attach-preview img, body.uxr .inbox-attach-thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: #fff; border: 1px solid var(--uxk-line, #d9d6cc); }
/* RV29 · a PDF reads as a document: its type in a labelled tile, its size next to the name. */
body.uxr .inbox-attach-icon.is-pdf { border: 1px solid var(--uxk-line, #d9d6cc); color: var(--status-rejected-text, #9b2c1f); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
body.uxr .inbox-attach-icon { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 8px; background: #fff; }
body.uxr .inbox-attach-name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
body.uxr .inbox-editor-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding: 4px 6px 6px; }
body.uxr .inbox-tool { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; border: 1px solid var(--uxk-line, #d9d6cc); border-radius: 999px; background: var(--bp-white, #fff); color: var(--bp-brand-charcoal); font-size: 13px; cursor: pointer; }
body.uxr .inbox-tool:hover { background: #eef5f1; }
body.uxr .inbox-tool-select { position: relative; padding-right: 4px; }
body.uxr .inbox-tool-select select { width: auto; max-width: 180px; min-height: 34px; padding: 0 22px 0 0; border: 0; background-color: transparent; font-size: 13px; }
body.uxr .inbox-tool-link { font-size: 13px; }
body.uxr .inbox-send { align-self: flex-end; }
@media (max-width: 520px) {
  body.uxr .inbox-tool span:not(.visually-hidden) { font-size: 12.5px; }
  body.uxr .inbox-tool-select select { max-width: 120px; }
}
/* RV29 · CRM-3 · the field has no border of its own inside the editor box (same weight as the kit's field rule). */
body.uxr.app #decision .inbox-editor textarea, body.uxr.app #decision .inbox-editor textarea:focus-visible { border: 0; border-radius: 12px 12px 0 0; background: transparent; box-shadow: none; }
body.uxr.app #decision .inbox-tool-select select, body.uxr.app #decision .inbox-tool-select select:focus-visible { border: 0; background-color: transparent; box-shadow: none; min-height: 34px; padding: 0 22px 0 0; font-size: 13px; }
body.uxr .inbox-editor-tools { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
body.uxr .inbox-tool, body.uxr .inbox-tool-link { flex: 0 0 auto; white-space: nowrap; }
body.uxr .inbox-attach-preview { flex-wrap: nowrap; padding: 4px 6px; }
body.uxr .inbox-attach-preview img, body.uxr .inbox-attach-thumb, body.uxr .inbox-attach-icon { width: 36px; height: 36px; flex: 0 0 auto; }
body.uxr .inbox-attach-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; }
body.uxr .inbox-attach-preview .inbox-file-problem { white-space: normal; }
body.uxr .inbox-attach-preview:has(.inbox-file-problem) { flex-wrap: wrap; }
@media (max-width: 900px) {
  /* With the conversation open on a phone, notices appear at the top so they never cover the editor or «Enviar». */
  body.uxr.app:has(.inbox.is-fitted.has-selection) #notice { top: 88px; bottom: auto; }
}
/* RV29 · CRM-5 · a lower composer: compact mode tabs; the field grows from one line (app.js) up to 160px. */
body.uxr .inbox-composer .inbox-modes { margin: 0 0 4px; }
body.uxr .inbox-composer .inbox-modes button { min-height: 32px; padding: 4px 12px; font-size: 13.5px; }
body.uxr.app #decision .inbox-editor textarea { min-height: 44px; max-height: 160px; overflow-y: auto; }
body.uxr .inbox-composer .status:empty { margin: 0; padding: 0; min-height: 0; }
/* RV29 · the «Hay novedades · Mostrar» notice floats over the top of the history of the open conversation. */
body.uxr .inbox-messages-wrap > .inbox-fresh { position: absolute; z-index: 2; top: 6px; left: 50%; transform: translateX(-50%); margin: 0; padding: 6px 12px; border-radius: 999px; background: var(--bp-white, #fff); box-shadow: 0 6px 18px rgba(0, 0, 0, .16); white-space: nowrap; }
body.uxr .inbox-messages-wrap > .inbox-fresh[hidden] { display: none; }
/* RV29 · CRM-3 · same precedent as the home composer (product-uxkit-v2.css): the field and the brand-image selector
   have no box of their own inside the editor; the editor box carries the border and the focus ring. */
body.uxr.app .inbox-editor textarea, body.uxr.app .inbox-tool-select select { border: 0 !important; box-shadow: none !important; background-color: transparent !important; }

/* RV30 · Contacto, Empresa and Oportunidad: three one-line accesses above the history; each opens its panel beside the
   thread on a computer and as a bottom sheet on a phone, with its own scroll (the history and the composer keep their
   place and size). */
body.uxr.app button.inbox-link { display: flex; flex-direction: row; align-items: baseline; gap: 6px; min-width: 0; padding: 6px 10px; border: 1px solid var(--uxk-line, #d9d6cc); border-radius: 12px; background: var(--bp-white, #fff); color: inherit; font: inherit; text-align: left; white-space: nowrap; overflow: hidden; cursor: pointer; box-shadow: none; }
body.uxr.app button.inbox-link:hover { background: var(--k2-select, rgba(7, 61, 45, .04)); color: inherit; }
body.uxr.app button.inbox-link[aria-expanded="true"] { border-color: var(--k2-action, #0b6b4f); box-shadow: inset 0 0 0 1px var(--k2-action, #0b6b4f); }
body.uxr.app button.inbox-link:focus-visible { outline: 3px solid var(--k2-action, #0b6b4f); outline-offset: 2px; }
body.uxr .inbox-drawer { position: fixed; z-index: 60; top: var(--inbox-top, 0px); right: 0; bottom: 0; width: min(420px, 100vw); display: flex; flex-direction: column; background: var(--bp-white, #fff); border-left: 1px solid var(--uxk-line, #d9d6cc); box-shadow: -12px 0 32px rgba(0, 0, 0, .14); }
body.uxr .inbox-drawer[hidden] { display: none; }
body.uxr .inbox-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--uxk-line, #d9d6cc); }
body.uxr .inbox-drawer-head h5 { margin: 0; font-size: 16px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.uxr .inbox-drawer-body { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; display: grid; align-content: start; gap: 12px; padding: 12px 16px 16px; }
body.uxr .inbox-pane { display: grid; gap: 10px; }
body.uxr .inbox-pane[hidden] { display: none; }
body.uxr .inbox-current { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--uxk-line, #d9d6cc); border-radius: 12px; background: var(--k2-select, rgba(7, 61, 45, .04)); }
body.uxr .inbox-current p { margin: 0; }
body.uxr .inbox-current .actions, body.uxr .inbox-pick-confirm .actions, body.uxr .inbox-pane > .actions { margin: 0; }
body.uxr .inbox-pane-search { display: grid; gap: 6px; }
body.uxr .inbox-picks { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
body.uxr .inbox-picks li[hidden] { display: none; }
body.uxr.app button.inbox-pick { display: flex; flex-direction: column; align-items: flex-start; width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--uxk-line, #d9d6cc); border-radius: 10px; background: var(--bp-white, #fff); color: inherit; font: inherit; text-align: left; box-shadow: none; }
body.uxr.app button.inbox-pick:hover { background: var(--k2-select, rgba(7, 61, 45, .04)); color: inherit; }
body.uxr.app button.inbox-pick[aria-pressed="true"] { border-color: var(--k2-action, #0b6b4f); box-shadow: inset 0 0 0 1px var(--k2-action, #0b6b4f); }
body.uxr .inbox-pick .hint { font-size: 13px; }
body.uxr .inbox-pick-confirm { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid var(--k2-action, #0b6b4f); border-radius: 12px; }
body.uxr .inbox-pick-confirm[hidden] { display: none; }
body.uxr .inbox-pick-confirm p, body.uxr .inbox-retry p { margin: 0; }
body.uxr .inbox-retry { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid var(--k2-warn, #b7791f); border-radius: 12px; background: #fff8eb; }
body.uxr .inbox-new-toggle { justify-self: start; }
body.uxr .inbox-link-form[hidden], body.uxr .inbox-op-extra[hidden] { display: none; }
body.uxr .inbox-op-extra { display: grid; gap: 8px; }
@media (max-width: 700px) {
  body.uxr .inbox-drawer { top: auto; left: 0; right: 0; bottom: var(--inbox-bottom, 0px); width: auto; max-height: min(70vh, calc(100vh - var(--inbox-top, 0px) - var(--inbox-bottom, 0px) - 120px)); border-left: 0; border-top: 1px solid var(--uxk-line, #d9d6cc); border-radius: 16px 16px 0 0; box-shadow: 0 -12px 32px rgba(0, 0, 0, .16); }
  body.uxr.app button.inbox-link { flex-direction: column; gap: 0; padding: 5px 8px; min-height: 44px; }
}
/* RV30 · Empresas: its bar wraps on narrow screens; the file sits beside the table like the contact file. */
body.uxr .crm-companies-bar { flex-wrap: wrap; }
body.uxr .crm-company-new { margin: 8px 0 12px; }
body.uxr .crm-company-new[hidden] { display: none; }
body.uxr .crm-file-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
body.uxr .crm-companies tr.is-current td { background: var(--k2-select, rgba(7, 61, 45, .04)); }
body.uxr .uxk-clients[data-tab="companies"] > #uxk-clients-companies { display: flex; flex-direction: column; gap: 16px; }
/* With the panel open on a computer narrower than 1600 px the list of conversations steps aside (closing the panel
   brings it back), so the open thread keeps a readable width next to the panel. */
@media (min-width: 701px) and (max-width: 1599px) {
  body.uxr .inbox.has-drawer { grid-template-columns: minmax(0, 1fr); }
  body.uxr .inbox.has-drawer .inbox-list { display: none; }
}
body.uxr .crm-companies-bar { display: flex; align-items: center; gap: 8px; }
body.uxr.app .crm-companies-bar > input[type="search"] { flex: 1 1 260px; min-width: 0; width: auto; }
body.uxr.app .crm-companies-bar > select { flex: 0 0 auto; width: auto; max-width: 220px; }
body.uxr.app .crm-companies-bar > button { flex: 0 0 auto; }

/* RV30 · pipelines: one row of pills above the board (Kommo-like), the picker and forms in Ajustes. */
body.uxr.app .sales-pipelines{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 12px}
body.uxr.app .sales-pipeline{min-height:44px;padding:8px 14px;border-radius:999px;border:1px solid var(--k2-line);background:var(--k2-surface);color:var(--k2-text);font:inherit;cursor:pointer}
body.uxr.app .sales-pipeline[aria-pressed="true"]{border-color:var(--k2-action);background:var(--k2-select);color:var(--k2-action);font-weight:600}
body.uxr.app .sales-pipeline:focus-visible{outline:2px solid var(--k2-action);outline-offset:2px}
body.uxr.app .crm-pipeline-pick{display:flex;gap:8px;align-items:center;margin:0 0 12px;max-width:420px}
body.uxr.app .crm-pipeline-pick select{flex:1}
body.uxr.app .crm-pipeline-edit,body.uxr.app .crm-pipeline-new{margin-top:16px}

/* RV30 · Reportes del CRM: filters in one wrapping row, reports as cards in a responsive grid, numbers aligned. */
body.uxr.app .crm-reports{display:flex;flex-direction:column;gap:12px;margin-bottom:24px}
body.uxr.app .crm-rep-filters{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:flex-end}
body.uxr.app .crm-rep-filters > div{min-width:150px;flex:1 1 150px;max-width:240px}
body.uxr.app .crm-rep-filters .crm-rep-apply{flex:0 0 auto;min-width:0}
body.uxr.app .crm-rep-filters .status{flex-basis:100%;margin:0}
body.uxr.app .crm-rep-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:12px}
body.uxr.app .crm-rep{border:1px solid var(--k2-line);border-radius:12px;background:var(--k2-surface);padding:12px 14px;min-width:0}
body.uxr.app .crm-rep-head{display:flex;justify-content:space-between;align-items:center;gap:8px}
body.uxr.app .crm-rep-head h4{margin:0}
body.uxr.app .crm-rep-sub{margin:10px 0 4px;font-size:14px}
body.uxr.app .crm-rep-line{margin:8px 0 0;font-size:14px}
body.uxr.app .crm-rep-table th.num,body.uxr.app .crm-rep-table td.num{text-align:right;font-variant-numeric:tabular-nums}
body.uxr.app .crm-rep-none ul{margin:6px 0 0;padding-left:18px}
/* RV30 · reports on a phone: stacked rows keep their column label (data-label); the header row stays readable by screen
   readers (visually hidden, not display:none), and long labels wrap inside the card instead of scrolling sideways. */
@media (max-width:767px){
body.uxr.app .crm-rep-table thead{display:block;position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
body.uxr.app .crm-rep-table{position:relative}
body.uxr.app .crm-rep-table tr{padding:8px 12px}
body.uxr.app .crm-rep-table th[scope=row],body.uxr.app .crm-rep-table td{display:flow-root;width:100%;padding:3px 0;border:0;text-align:right;overflow-wrap:anywhere}
body.uxr.app .crm-rep-table th[scope=row]{font-weight:600}
body.uxr.app .crm-rep-table [data-label]::before{content:attr(data-label);content:attr(data-label) / "";float:left;max-width:58%;margin-right:12px;text-align:left;font-weight:500;color:var(--k2-text-2)}
}
