/* ADR-0038 · UX Reinvention, visual layer (founder references 2026-10-15). Composition, hierarchy and spacing of the
   approved mockups with Brandopolis' own identity: official logo, ivory · emerald · gold tokens, editorial serif and the
   emerald gem Brando. Loaded last and scoped to `body.uxr` (never PILOT, which stays frozen). Presentation only: every
   control keeps its id, its handler and its engine underneath. */

.uxr {
  --uxr-line: #e6e1d4;
  --uxr-card-shadow: 0 1px 2px rgba(7, 61, 45, .04), 0 10px 28px rgba(7, 61, 45, .06);
  --uxr-radius: 20px;
}

/* ───────────── Shell · desktop: full-height sidebar with logo and brand card, slim top bar ───────────── */
@media (min-width: 1280px) {
  body.uxr.app { --shell-height: 72px; }
  body.uxr.app:not(.left-collapsed) header { min-height: 72px; height: 72px; padding: 12px 24px 12px calc(var(--sidebar-width) + 32px); display: flex; align-items: center; gap: 16px; background: linear-gradient(90deg, transparent var(--sidebar-width), rgba(255, 253, 248, .94) var(--sidebar-width)); border-bottom: 0; box-shadow: none; }
  body.uxr.app:not(.left-collapsed) header::after { content: ""; position: absolute; left: var(--sidebar-width); right: 0; bottom: 0; height: 1px; background: var(--uxr-line); }
  body.uxr.app:not(.left-collapsed) header .brand { position: fixed; z-index: 95; top: 0; left: 0; width: var(--sidebar-width); height: 76px; margin: 0; padding: 18px 24px 10px; display: flex; align-items: center; background: transparent; }
  body.uxr.app:not(.left-collapsed) header .brand img { width: 176px; height: auto; }
  body.uxr.app:not(.left-collapsed) header .header-brand-control { position: fixed; z-index: 95; top: 78px; left: 16px; width: calc(var(--sidebar-width) - 32px); transform: none; display: block; }
  body.uxr.app:not(.left-collapsed) header .header-brand-control select { height: 60px; min-width: 0; padding: 0 36px 0 62px; border: 1px solid var(--uxr-line); border-radius: 16px; background: var(--surface-card); box-shadow: var(--bp-shadow-sm); font: 650 15px/1.2 var(--font-ui); color: var(--bp-brand-charcoal); }
  body.uxr.app:not(.left-collapsed) header .header-brand-control::before { content: attr(data-initials); position: absolute; z-index: 1; left: 12px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, var(--bp-brand-emerald), var(--bp-brand-emerald-deep)); color: var(--bp-brand-soft-gold); font: 700 14px/1 var(--font-ui); letter-spacing: .02em; pointer-events: none; }
  body.uxr.app:not(.left-collapsed) header .header-brand-control::after { content: "Marca activa"; position: absolute; z-index: 1; left: 62px; bottom: 9px; font: 500 11.5px/1 var(--font-ui); color: var(--text-muted); pointer-events: none; }
  body.uxr.app:not(.left-collapsed) header .header-brand-control select { padding-bottom: 14px; }
  body.uxr.app:not(.left-collapsed) #journey { top: 0; z-index: 70; padding-top: 152px; background: linear-gradient(180deg, #fffdf8, var(--bp-brand-ivory)); border-right: 1px solid var(--uxr-line); }
  body.uxr.app:not(.left-collapsed) #journey .nav-head { padding-top: 6px; }
  body.uxr.app header .header-actions { margin-left: auto; gap: 10px; }
  body.uxr.app .global-search { display: flex; }
}
body.uxr.app.left-collapsed header .global-search { display: flex; }

/* Search · jumps to an existing destination */
.global-search { display: none; position: relative; align-items: center; gap: 10px; flex: 1 1 320px; max-width: 520px; height: 44px; padding: 0 12px 0 14px; border: 1px solid var(--uxr-line); border-radius: 14px; background: var(--surface-card); color: var(--text-muted); }
.global-search[hidden] { display: none !important; }
body:not(.uxr) .global-search { display: none !important; }
.global-search:focus-within { border-color: var(--bp-brand-emerald); box-shadow: 0 0 0 3px var(--bp-emerald-focus-soft); }
.global-search .ico { width: 18px; height: 18px; flex-basis: 18px; }
.global-search input { flex: 1; min-width: 0; height: 40px; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; font: 400 14.5px/1 var(--font-ui); color: var(--text-primary); }
.global-search input:focus, .global-search input:focus-visible { outline: none; box-shadow: none; }
.global-search kbd { padding: 3px 7px; border: 1px solid var(--uxr-line); border-radius: 7px; background: var(--bp-neutral-50); font: 600 11px/1 var(--font-ui); color: var(--text-muted); }
.global-search-results { position: absolute; z-index: 120; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 6px; list-style: none; border: 1px solid var(--uxr-line); border-radius: 14px; background: var(--surface-card); box-shadow: var(--bp-shadow-md); }
.global-search-results li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; color: var(--text-primary); font-size: 14px; }
.global-search-results li small { color: var(--text-muted); font-size: 12px; }
.global-search-results li[aria-selected="true"], .global-search-results li:hover { background: var(--bp-success-bg); color: var(--bp-brand-emerald-deep); }
.global-search-results .search-empty { cursor: default; color: var(--text-muted); }

/* Top bar controls: quieter, mockup-like */
.uxr.app header #mode-badge { border-radius: var(--bp-radius-pill); padding: 6px 12px; font-size: 11.5px; }
.uxr.app header #new-brand, .uxr.app header #logout { border-radius: 12px; min-height: 40px; }

/* Sidebar items */
.uxr #journey .nav-item { min-height: 44px; border-radius: 12px; font-size: 14.5px; }
.uxr #journey .nav-item[aria-current], .uxr #journey .nav-item.contains-current { background: var(--bp-brand-emerald); color: var(--bp-white); box-shadow: 0 6px 16px rgba(11, 104, 71, .22); }
.uxr #journey .nav-item[aria-current] .ico, .uxr #journey .nav-item.contains-current .ico { color: var(--bp-brand-soft-gold); }
.uxr #journey .nav-item[aria-current] .nav-count, .uxr #journey .nav-item.contains-current .nav-count { background: rgba(255, 255, 255, .16); color: var(--bp-white) !important; }
.uxr #journey .nav-principle { border-top-color: var(--uxr-line); }

/* Main canvas: one calm white surface */
.uxr #decision { border-radius: 28px; }
.uxr #decision .ws-hero h2, .uxr .app #decision .ws-hero h2 { font: 400 clamp(30px, 2.6vw, 40px)/1.12 var(--font-display); letter-spacing: -.01em; color: var(--bp-brand-charcoal); }
.uxr .ws-hero .ws-lead { color: var(--text-secondary); }
.uxr .ws-hero-actions { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; }
.uxr .ws-hero-actions > div { flex: 1 1 420px; min-width: 0; }
.uxr .ws-hero-actions > button { display: inline-flex; align-items: center; gap: 8px; margin: 6px 0 0; border-radius: 14px; }
.uxr .ws-hero-actions > button .ico { width: 18px; height: 18px; flex-basis: 18px; }
.uxr .plan-block { border: 1px solid var(--uxr-line); border-radius: var(--uxr-radius); box-shadow: var(--uxr-card-shadow); background: var(--surface-card); }
.uxr .ws-tabs { gap: 2px; }
.uxr .ws-tabs [role="tab"] { font-size: 15px; padding: 8px 14px; }

/* ───────────── Inicio · hero with the official gem, wide composer, starter cards ───────────── */
.uxr .home-brando { display: block; padding: 4px 0 8px; text-align: left; }
.uxr .home-brando::before { display: none; }
.uxr .home-hero { position: relative; display: grid; grid-template-columns: 210px minmax(0, 1fr); column-gap: 28px; align-items: center; padding: 30px 36px 28px; border: 1px solid var(--bp-brando-emerald-ring); border-radius: 30px; background: radial-gradient(120% 140% at 0% 0%, rgba(21, 154, 103, .14), transparent 55%), radial-gradient(90% 120% at 100% 0%, rgba(201, 174, 130, .20), transparent 60%), linear-gradient(135deg, #ffffff, #fbf8f1); box-shadow: var(--bp-shadow-md); overflow: hidden; }
.uxr .home-hero-art { display: grid; place-items: center; grid-row: 1; }
.uxr .home-hero-art::before { content: ""; position: absolute; width: 230px; height: 230px; border-radius: 50%; background: radial-gradient(closest-side, rgba(14, 122, 82, .16), transparent); }
.uxr .home-gem { position: relative; width: 176px; height: 176px; filter: drop-shadow(0 22px 26px rgba(7, 61, 45, .22)); }
.uxr .home-hero-copy { grid-row: 1; min-width: 0; }
.uxr .home-brand-line { justify-content: flex-start; margin: 0 0 4px; font: 500 16px/1.4 var(--font-ui); color: var(--bp-brand-emerald-deep); }
.uxr .home-brand-line strong { color: var(--bp-brand-emerald); font-weight: 650; }
.uxr .app #decision .home-brando h2, .uxr #decision .home-brando h2 { margin: 0 0 10px; font: 400 clamp(34px, 3.4vw, 50px)/1.08 var(--font-display); letter-spacing: -.015em; color: var(--bp-brand-charcoal); }
.uxr .home-hero-lead { margin: 0; max-width: 620px; font-size: 16.5px; line-height: 1.55; color: var(--text-secondary); }
.uxr .home-composer { grid-column: 1 / -1; display: block; width: 100%; margin: 26px 0 0; padding: 16px 16px 12px 20px; border-radius: 22px; border: 1px solid var(--bp-brando-emerald-ring); background: var(--surface-card); box-shadow: 0 14px 36px rgba(7, 61, 45, .09); }
.uxr .app #decision .home-composer textarea, .uxr #decision .home-composer textarea { width: 100%; min-height: 64px; padding: 4px 0; font-size: 16.5px; }
.uxr .home-composer-bar { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 6px; }
.uxr .home-composer-bar .home-mode { margin-right: auto; }
.uxr .home-composer button[type="submit"] { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 18px 8px 20px; border-radius: 999px; background: var(--bp-brand-emerald); color: var(--bp-white); font-weight: 650; }
.uxr .home-composer button[type="submit"]:hover { background: var(--bp-brand-emerald-deep); }
.uxr .home-composer button[type="submit"] .ico { width: 18px; height: 18px; flex-basis: 18px; }
.uxr .home-help { grid-column: 1 / -1; max-width: none; margin: 10px 4px 0; text-align: left; }
.uxr .home-starters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 18px 0 0; }
.uxr .home-starter { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 10px 12px; align-items: start; min-height: 128px; margin: 0; padding: 18px 18px 16px; border: 1px solid var(--uxr-line); border-radius: 20px; background: var(--surface-card); box-shadow: var(--uxr-card-shadow); color: var(--text-primary); text-align: left; font-weight: 400; transition: border-color var(--bp-motion-fast) var(--bp-ease), transform var(--bp-motion-fast) var(--bp-ease), box-shadow var(--bp-motion-fast) var(--bp-ease); }
.uxr .home-starter:hover { border-color: var(--bp-brando-emerald-ring); transform: translateY(-2px); box-shadow: var(--bp-shadow-md); background: var(--surface-card); }
.uxr .starter-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--bp-success-bg); color: var(--bp-brand-emerald); }
.uxr .starter-icon .ico { width: 22px; height: 22px; flex-basis: 22px; }
.uxr .starter-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.uxr .starter-title { font: 650 15.5px/1.3 var(--font-ui); color: var(--bp-brand-charcoal); }
.uxr .starter-lead { font-size: 13.5px; line-height: 1.45; color: var(--text-muted); }
.uxr .starter-arrow { position: absolute; right: 16px; bottom: 14px; width: 18px; height: 18px; color: var(--bp-brand-emerald); }
.uxr .home-starter:nth-child(2) .starter-icon, .uxr .home-starter:nth-child(4) .starter-icon { background: var(--bp-gold-wash); color: var(--bp-divider-gold); }
.uxr .home-status { margin-top: 12px; text-align: left; }

/* Continuar donde lo dejaste */
.uxr .home-answer, .uxr .home-continue, .uxr .home-overview { width: 100%; }
.uxr .home-continue { margin-top: 28px; }
.uxr .app #decision .home-continue > h3, .uxr #decision .home-continue > h3 { margin: 0 0 12px; font: 650 18px/1.3 var(--font-ui); letter-spacing: 0; text-transform: none; color: var(--bp-brand-charcoal); }
.uxr .continue-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.uxr .continue-areas { display: contents; }
.uxr .continue-grid > .next-step, .uxr .continue-grid > .home-actions, .uxr .continue-grid > .setup-resume { margin: 0; }
.uxr .home-continue .next-step { display: flex; flex-direction: column; padding: 16px 18px; border: 1px solid var(--bp-review-border); border-radius: 20px; background: linear-gradient(135deg, #fffdf7, var(--bp-hypothesis-bg)); box-shadow: var(--uxr-card-shadow); }
.uxr .home-continue .next-step .next-step-art { display: none; }
.uxr .home-continue .next-step h3 { margin: 6px 0 4px; font: 650 16px/1.3 var(--font-ui); }
.uxr .home-continue .next-step p { font-size: 13.5px; }
.uxr .home-continue .next-step .actions { flex-wrap: wrap; gap: 8px 12px; margin-top: auto; padding-top: 10px; }
.uxr .home-continue .next-step #next-step-action { min-height: 40px; padding: 6px 14px; font-size: 14px; }
.uxr .home-continue .step-badge { font-size: 11px; }
.uxr .home-continue .home-actions, .uxr .home-continue .setup-resume { grid-column: span 2; padding: 16px 18px; border-radius: 20px; }
.uxr .continue-card { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; min-height: 112px; margin: 0; padding: 16px 18px; border: 1px solid var(--uxr-line); border-radius: 20px; background: var(--surface-card); box-shadow: var(--uxr-card-shadow); color: var(--text-primary); text-align: left; font-weight: 400; }
.uxr .continue-card:hover { border-color: var(--bp-brando-emerald-ring); background: var(--surface-card); }
.uxr .continue-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--bp-success-bg); color: var(--bp-brand-emerald); }
.uxr .continue-icon .ico { width: 20px; height: 20px; flex-basis: 20px; }
.uxr .continue-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.uxr .continue-eyebrow { font: 600 11.5px/1.3 var(--font-ui); letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); }
.uxr .continue-copy strong { font: 650 15px/1.3 var(--font-ui); color: var(--bp-brand-charcoal); }
.uxr .continue-text { font-size: 13px; color: var(--text-secondary); }
.uxr .home-overview { margin-top: 18px; }

/* ───────────── Conversation · the person's message, Brando's answer, one proposal card ───────────── */
.uxr .home-proposal { margin: 22px 0 6px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.uxr .home-proposal:focus-visible { outline-offset: 6px; border-radius: 22px; }
.uxr .thread-msg { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 12px; }
.uxr .thread-msg.is-user { justify-content: flex-end; }
.uxr .thread-msg.is-user .home-asked { order: 1; max-width: min(640px, 80%); margin: 0; padding: 12px 16px; border-radius: 18px 18px 4px 18px; background: var(--bp-brand-emerald-deep); color: var(--bp-white); font-size: 15px; line-height: 1.5; }
.uxr .thread-msg.is-user .thread-avatar { order: 2; }
.uxr .thread-avatar { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; background: var(--bp-brand-soft-gold); color: var(--bp-brand-emerald-deep); font: 700 12px/1 var(--font-ui); }
.uxr .home-proposal-head { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
.uxr .home-proposal-head > div { flex: 1; min-width: 0; }
.uxr .thread-gem { width: 40px; height: 40px; border-radius: 12px; background: var(--bp-success-bg); }
.uxr .thread-msg.is-brando { margin-left: 50px; }
.uxr .thread-bubble { max-width: 780px; padding: 14px 18px; border: 1px solid var(--uxr-line); border-radius: 4px 18px 18px 18px; background: var(--bp-neutral-50); }
.uxr .app #decision .thread-bubble h4, .uxr #decision .thread-bubble h4 { margin: 0 0 4px; font: 650 11.5px/1.3 var(--font-ui); letter-spacing: .07em; text-transform: uppercase; color: var(--bp-brand-emerald); }
.uxr .thread-bubble p { margin: 0; line-height: 1.6; }
.uxr .proposal-card { margin: 8px 0 0 50px; padding: 20px 22px; border: 1px solid var(--bp-brando-emerald-ring); border-radius: 22px; background: var(--surface-card); box-shadow: var(--bp-shadow-md); }
.uxr .proposal-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.uxr .proposal-card-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--bp-success-bg); color: var(--bp-brand-emerald); }
.uxr .app #decision .proposal-card-head h3, .uxr #decision .proposal-card-head h3 { margin: 0; font: 650 18px/1.3 var(--font-ui); }
.uxr .proposal-card-head .hint { margin: 2px 0 0; }
.uxr .home-options { counter-reset: option; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.uxr .home-option { counter-increment: option; position: relative; display: flex; flex-direction: column; padding: 16px 16px 14px; border: 1px solid var(--uxr-line); border-radius: 16px; background: var(--surface-card); }
.uxr .home-option::before { content: counter(option); display: grid; place-items: center; width: 26px; height: 26px; margin-bottom: 8px; border-radius: 8px; background: var(--bp-success-bg); color: var(--bp-brand-emerald-deep); font: 700 13px/1 var(--font-ui); }
.uxr .home-option-text { font-size: 15px; }
.uxr .home-option .home-proposal-actions { margin-top: auto; padding-top: 8px; }
.uxr .proposal-next .next-steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.uxr .proposal-next .next-steps li { counter-increment: step; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--bp-neutral-50); font-size: 13.5px; line-height: 1.45; color: var(--text-secondary); }
.uxr .proposal-next .next-steps li::before { content: counter(step); flex: 0 0 24px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--bp-brando-emerald-ring); color: var(--bp-brand-emerald-deep); font: 700 12px/1 var(--font-ui); }
.uxr .home-proposal-foot .actions button[data-home-open-module] { display: inline-flex; align-items: center; gap: 6px; }
.uxr .home-proposal-foot .actions .ico { width: 16px; height: 16px; flex-basis: 16px; }

/* ───────────── Estrategia · objective and next step, nine dimensions as cards ───────────── */
.uxr .strategy-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 16px; align-items: stretch; margin: 18px 0; }
.uxr .strategy-top .strategy-objective { margin: 0; }
.uxr .strategy-next { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border: 1px solid var(--uxr-line); border-radius: 18px; background: var(--surface-card); box-shadow: var(--uxr-card-shadow); }
.uxr .strategy-next .eyebrow { margin: 0; }
.uxr .app #decision .strategy-next h3, .uxr #decision .strategy-next h3 { margin: 0; font: 650 17px/1.3 var(--font-ui); }
.uxr .strategy-next .hint { margin: 0; }
.uxr .strategy-next #summary-next { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin: 6px 0 0; }
.uxr .strategy-next #summary-next .ico { width: 18px; height: 18px; flex-basis: 18px; }
.uxr .strategy-meter { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: auto 0 0; padding-top: 12px; }
.uxr .strategy-meter div { padding: 10px 12px; border-radius: 12px; background: var(--bp-neutral-50); }
.uxr .strategy-meter dt { font-size: 12px; color: var(--text-muted); }
.uxr .strategy-meter dd { margin: 2px 0 0; font: 650 20px/1.2 var(--font-ui); color: var(--bp-brand-emerald-deep); font-variant-numeric: tabular-nums; }
.uxr .strategy-dimensions { border-top: 0; }
.uxr .strategy-dimensions > summary { padding-left: 0; font: 650 18px/1.3 var(--font-ui); color: var(--bp-brand-charcoal); }
.uxr .dimension-list { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.uxr .dimension { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: start; gap: 12px; min-height: 108px; padding: 14px 14px 14px 16px; border: 1px solid var(--uxr-line); border-radius: 18px; background: var(--surface-card); box-shadow: var(--uxr-card-shadow); }
.uxr .dimension:hover { border-color: var(--bp-brando-emerald-ring); }
.uxr .dimension.is-defined { background: linear-gradient(135deg, #ffffff, var(--bp-success-bg)); }
.uxr .dimension-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--bp-success-bg); color: var(--bp-brand-emerald); }
.uxr .dimension.is-review .dimension-icon { background: var(--bp-warning-bg); color: var(--bp-warning); }
.uxr .dimension-icon .ico { width: 20px; height: 20px; flex-basis: 20px; }
.uxr .dimension-body { min-width: 0; }
.uxr .dimension-name { font-size: 14.5px; }
.uxr .dimension-number { font: 650 14.5px/1 var(--font-ui); color: var(--bp-brand-charcoal); }
.uxr .dimension-state { margin: 4px 0 0 !important; }
.uxr .dimension-text { margin-top: 6px !important; font-size: 13px; }
.uxr .dimension-text.is-empty { color: var(--text-muted); }
.uxr .dimension-open { min-height: 36px; min-width: 36px; padding: 6px; border-radius: 10px; }
.uxr .dimension-open::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }
.uxr .dimension-open .ico { width: 18px; height: 18px; flex-basis: 18px; }

/* ───────────── Work areas · Marketing, Identidad, Clientes, Resultados ───────────── */
.uxr .client-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.uxr .client-initials { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--bp-success-bg); color: var(--bp-brand-emerald-deep); font: 700 13px/1 var(--font-ui); }
.uxr .client-card { padding: 16px 18px; border: 1px solid var(--uxr-line); border-radius: 18px; background: var(--surface-card); box-shadow: var(--uxr-card-shadow); }
.uxr .client-filters { gap: 6px; }
.uxr .client-filters button { border-radius: var(--bp-radius-pill); min-height: 36px; padding: 4px 14px; font-size: 13.5px; }
.uxr .client-filters button[aria-pressed="true"] { background: var(--bp-brand-emerald); border-color: var(--bp-brand-emerald); color: var(--bp-white); }
.uxr .result-grid { gap: 12px; }
.uxr .result-card { border: 1px solid var(--uxr-line); border-radius: 18px; background: var(--surface-card); box-shadow: var(--uxr-card-shadow); }
.uxr .result-card .result-value { font: 650 28px/1.15 var(--font-ui); color: var(--bp-brand-emerald-deep); font-variant-numeric: tabular-nums; }
.uxr .result-card.is-missing .result-value { color: var(--text-muted); font-size: 20px; }
.uxr .plan-year { gap: 10px; }
.uxr .plan-year button { border-radius: 12px; }
.uxr .plan-empty, .uxr .plan-missing { border-radius: 18px; }

/* ───────────── Phones and tablets · bottom bar, single column ───────────── */
.mobile-tabbar { display: none; }
@media (max-width: 1279px) {
  .uxr .home-starters, .uxr .continue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uxr .strategy-top { grid-template-columns: minmax(0, 1fr); }
  .uxr .proposal-next .next-steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1000px) {
  .uxr .home-hero { grid-template-columns: 150px minmax(0, 1fr); padding: 24px; }
  .uxr .home-gem { width: 132px; height: 132px; }
  .uxr .home-hero-art::before { width: 170px; height: 170px; }
}
@media (max-width: 767px) {
  body.uxr.app .mobile-tabbar { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--uxr-line); background: rgba(255, 253, 248, .96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 -8px 24px rgba(7, 61, 45, .06); }
  body.uxr.app:has(#journey.open) .mobile-tabbar, body.uxr.app:has(#nav-backdrop:not([hidden])) .mobile-tabbar, body.uxr.app:has(dialog[open]) .mobile-tabbar { display: none; }
  .mobile-tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; margin: 0; padding: 4px 2px; border: 0; border-radius: 12px; background: transparent; box-shadow: none; color: var(--text-muted); font: 600 11px/1.1 var(--font-ui); }
  .mobile-tabbar button .ico { width: 22px; height: 22px; flex-basis: 22px; }
  .mobile-tabbar button[aria-current="page"] { color: var(--bp-brand-emerald); background: var(--bp-success-bg); }
  /* Anything scrolled into view (keyboard focus, «ir a», automation) stops above the bottom bar instead of under it:
     the bar never covers the control that is being reached. */
  html:has(body.uxr.app) { scroll-padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  body.uxr.app #workspace { padding-bottom: 88px; }
  body.uxr.app #notice { bottom: calc(80px + env(safe-area-inset-bottom)); }
  body.uxr.app .ai-activity, body.uxr.app .primary-workspace > .ai-activity { bottom: calc(78px + env(safe-area-inset-bottom)); }
  body.uxr.app footer { padding-bottom: 92px; }
  .uxr .home-hero { grid-template-columns: minmax(0, 1fr); padding: 22px 18px 18px; border-radius: 24px; text-align: center; }
  .uxr .home-hero-art { grid-row: auto; }
  .uxr .home-hero-art::before { width: 150px; height: 150px; }
  .uxr .home-gem { width: 108px; height: 108px; }
  .uxr .home-hero-copy { grid-row: auto; margin-top: 6px; }
  .uxr .home-brand-line { justify-content: center; }
  .uxr .home-hero-lead { font-size: 15px; }
  .uxr .app #decision .home-brando h2, .uxr #decision .home-brando h2 { font-size: 31px; }
  .uxr .home-composer { margin-top: 18px; padding: 12px 12px 10px 14px; text-align: left; }
  .uxr .home-composer-bar { flex-wrap: wrap; }
  .uxr .home-composer-bar .home-mode { order: 2; margin: 0 auto; }
  .uxr .home-composer button[type="submit"] { order: 1; width: 100%; justify-content: center; }
  .uxr .home-help { text-align: center; }
  .uxr .home-starters { gap: 10px; }
  .uxr .home-starter { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; min-height: 0; padding: 14px; gap: 8px; }
  .uxr .starter-icon { width: 36px; height: 36px; border-radius: 11px; }
  .uxr .starter-lead, .uxr .starter-arrow { display: none; }
  .uxr .starter-title { font-size: 14px; }
  .uxr .continue-grid { grid-template-columns: minmax(0, 1fr); }
  .uxr .home-continue .home-actions, .uxr .home-continue .setup-resume { grid-column: auto; }
  .uxr .thread-msg.is-brando, .uxr .proposal-card { margin-left: 0; }
  .uxr .thread-msg.is-user .home-asked { max-width: 86%; }
  .uxr .proposal-card { padding: 16px; }
  .uxr .dimension-list { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .uxr .home-starter, .uxr .home-starter:hover { transition: none; transform: none; } }

/* ───────────── Iteration 2 fixes ───────────── */
body.uxr #journey button.nav-item[aria-current], body.uxr #journey button.nav-item.contains-current, body.uxr #journey #home[aria-current] { background: var(--bp-brand-emerald); color: var(--bp-white); border-color: transparent; box-shadow: 0 6px 16px rgba(11, 104, 71, .22); }
body.uxr #journey button.nav-item[aria-current] span, body.uxr #journey button.nav-item.contains-current span { color: inherit; }
body.uxr #journey button.nav-item[aria-current] .ico, body.uxr #journey button.nav-item.contains-current .ico { color: var(--bp-brand-soft-gold); opacity: 1; }
body.uxr #journey button.nav-item[aria-current] .nav-count, body.uxr #journey button.nav-item.contains-current .nav-count { background: rgba(255, 255, 255, .18); color: var(--bp-white) !important; }
.uxr .continue-grid { align-items: start; }
.uxr .home-continue .home-actions:not(:has(.notification-list)) { display: none; }
.uxr .home-continue .home-actions { grid-column: span 2; }
.uxr .results-period .results-period-row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: end; }
.uxr .results-period .results-period-row > div { flex: 0 1 280px; }
.uxr .results-period .rp-compare { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 10px 0 0; padding: 0; border: 0; }
.uxr .results-period .rp-compare legend { width: 100%; margin-bottom: 4px; padding: 0; font-weight: 650; font-size: 14px; }
.uxr .results-period .rp-compare .check-option { min-height: 36px; }
@media (max-width: 767px) {
  .uxr .home-brand-line > strong { display: inline; }
  .uxr .home-brand-line > span { display: none; }
}
/* Laptop heights: every destination stays visible without scrolling the sidebar (micro-hotfix contract, 1366×768). */
@media (min-width: 1280px) and (max-height: 880px) {
  body.uxr.app:not(.left-collapsed) #journey { padding-top: 144px; padding-bottom: 10px; gap: 0; }
  body.uxr.app:not(.left-collapsed) #journey .nav-head { padding-top: 0; padding-bottom: 4px; }
  body.uxr #journey .nav-item { min-height: 40px; padding-top: 6px; padding-bottom: 6px; }
  body.uxr #journey .nav-divider { margin: 6px 12px; }
  body.uxr #journey .nav-principle { display: none; }
}
/* Dimension cards: icon and arrow on top, the name keeps the whole width (no broken words). */
.uxr .dimension { grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "icon . open" "body body body"; row-gap: 10px; }
.uxr .dimension-icon { grid-area: icon; }
.uxr .dimension-body { grid-area: body; }
.uxr .dimension-open { grid-area: open; align-self: start; }
.uxr .dimension-name { hyphens: manual; overflow-wrap: normal; }
@media (max-width: 767px) { .uxr .dimension { grid-template-columns: 40px minmax(0, 1fr) auto; } }
/* Phones · Brando and the brand tools share one row above each area (icons keep their accessible names). */
@media (max-width: 767px) {
  body.uxr.app:not(.on-home) .primary-workspace > #brando-mobile-slot { display: inline-flex; vertical-align: middle; max-width: 46%; margin: 0 8px 12px 0; }
  body.uxr.app:not(.on-home) .primary-workspace > #brando-mobile-slot #brando-card { margin: 0; }
  body.uxr.app:not(.on-home) #brando-mobile-slot .brando-card-copy { display: none; }
  body.uxr.app:not(.on-home) .primary-workspace > .mobile-tools { display: inline-flex; vertical-align: middle; max-width: calc(54% - 12px); margin: 0 0 12px; gap: 6px; overflow-x: auto; }
  body.uxr.app .mobile-tools button { min-width: 44px; padding: 6px 10px; }
  body.uxr.app .mobile-tools button > span:not(.notification-count) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.uxr .dimension { align-items: start; align-content: start; }

/* ═════════════ Founder review 2026-10-15 (second pass) · premium refinement ═════════════
   Less white, more depth: content sits on the warm ivory canvas, cards are near-opaque glass with champagne edges,
   Brando gets a deep-emerald editorial stage, each area its own tint, and one motion language from the tokens. */
.uxr {
  --uxr-glass: rgba(255, 255, 255, .84);
  --uxr-glass-strong: rgba(255, 255, 255, .93);
  --uxr-edge: rgba(201, 174, 130, .30);
  --uxr-edge-strong: rgba(201, 174, 130, .55);
  --uxr-lift: 0 1px 2px rgba(7, 61, 45, .04), 0 14px 34px rgba(7, 61, 45, .08);
  --uxr-lift-hover: 0 2px 4px rgba(7, 61, 45, .05), 0 22px 48px rgba(7, 61, 45, .13);
}
body.uxr.app #main { background: radial-gradient(1100px 620px at 92% -8%, rgba(21, 154, 103, .09), transparent 62%), radial-gradient(900px 600px at 18% 108%, rgba(201, 174, 130, .16), transparent 60%), var(--bp-brand-ivory); background-attachment: fixed; }
body.uxr.app #decision { background: transparent; border: 0; box-shadow: none; padding: 4px 0 48px; border-radius: 0; }

/* Cards: one glass family */
.uxr .plan-block, .uxr .home-starter, .uxr .continue-card, .uxr .dimension, .uxr .strategy-next, .uxr .client-card, .uxr .result-card,
.uxr .kit-entry, .uxr .validate-entry, .uxr .offer-card, .uxr .proposal-card, .uxr .plan-empty, .uxr .collab-card {
  background: var(--uxr-glass); border: 1px solid var(--uxr-edge); box-shadow: var(--uxr-lift);
}
.uxr .plan-block, .uxr .plan-empty { border-radius: 22px; }
.uxr .home-starter, .uxr .continue-card, .uxr .dimension, .uxr .validate-entry, .uxr .kit-entry {
  transition: transform var(--bp-motion-fast) var(--bp-ease), box-shadow var(--bp-motion-normal) var(--bp-ease), border-color var(--bp-motion-normal) var(--bp-ease), background-color var(--bp-motion-normal) var(--bp-ease);
}
.uxr .home-starter:hover, .uxr .continue-card:hover, .uxr .dimension:hover, .uxr .validate-entry:hover, .uxr .kit-entry:hover { transform: translateY(-2px); box-shadow: var(--uxr-lift-hover); border-color: var(--uxr-edge-strong); background: var(--uxr-glass-strong); }
.uxr button:not(.nav-item):active { transform: scale(.98); }
.uxr button { transition: background-color var(--bp-motion-fast) var(--bp-ease), border-color var(--bp-motion-fast) var(--bp-ease), color var(--bp-motion-fast) var(--bp-ease), box-shadow var(--bp-motion-normal) var(--bp-ease), transform var(--bp-motion-fast) var(--bp-ease); }
.uxr .ws-tabs [role="tab"] { transition: color var(--bp-motion-fast) var(--bp-ease), border-color var(--bp-motion-normal) var(--bp-ease); }

/* Area headers: one editorial band per area, tinted within the palette */
.uxr #decision .ws-hero { --hero-tint: var(--bp-emerald-wash); position: relative; overflow: hidden; margin: 0 0 22px; padding: 24px 28px 22px; border: 1px solid var(--uxr-edge); border-radius: 26px; background: linear-gradient(120deg, rgba(255, 255, 255, .92) 35%, var(--hero-tint)); box-shadow: var(--uxr-lift); }
.uxr #decision .ws-hero::after { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(closest-side, var(--hero-tint), transparent); pointer-events: none; }
.uxr #decision .ws-hero > * { position: relative; z-index: 1; }
.uxr #decision .ws-hero .eyebrow { display: inline-flex; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .7); border: 1px solid var(--uxr-edge); }
.uxr #decision[data-view="marketing"] .ws-hero { --hero-tint: rgba(201, 174, 130, .30); }
.uxr #decision[data-view="clients"] .ws-hero { --hero-tint: rgba(21, 154, 103, .16); }
.uxr #decision[data-view="brand-resources"] .ws-hero { --hero-tint: rgba(226, 212, 183, .55); }
.uxr #decision[data-view="offers"] .ws-hero { --hero-tint: rgba(201, 174, 130, .22); }
.uxr #decision[data-view="results"] .ws-hero { --hero-tint: rgba(11, 104, 71, .12); }
.uxr #decision[data-view="learning-loop"] .ws-hero { --hero-tint: var(--bp-hypothesis-bg); }
.uxr #decision[data-view="collaboration"] .ws-hero { --hero-tint: var(--bp-evidence-bg); }
.uxr #decision[data-view="strategy-summary"] .ws-hero { --hero-tint: rgba(14, 122, 82, .14); }

/* ───── Inicio · Brando's stage ───── */
.uxr .home-hero { grid-template-columns: 230px minmax(0, 1fr); padding: 34px 40px 30px; border: 1px solid rgba(201, 174, 130, .45); 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); }
.uxr .home-hero::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(255, 255, 255, .06), transparent 40%); pointer-events: none; }
.uxr .home-hero-art { position: relative; z-index: 1; animation: brando-breathe 7s ease-in-out infinite; }
.uxr .home-hero-art::before { width: 250px; height: 250px; background: radial-gradient(closest-side, rgba(226, 212, 183, .34), rgba(21, 154, 103, .18) 55%, transparent); animation: brando-halo 7s ease-in-out infinite; }
.uxr .home-hero-art::after { content: ""; position: absolute; width: 214px; height: 214px; border-radius: 50%; border: 1px solid rgba(226, 212, 183, .28); opacity: .6; }
.uxr .home-gem { 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)); }
.uxr .home-hero-copy { position: relative; z-index: 1; }
.uxr .home-brand-line { color: rgba(247, 243, 234, .82); }
.uxr .home-brand-line strong { color: var(--bp-brand-soft-gold); }
.uxr .app #decision .home-brando h2, .uxr #decision .home-brando h2 { color: var(--bp-brand-ivory); font-size: clamp(36px, 3.6vw, 54px); }
.uxr .home-hero-lead { color: rgba(247, 243, 234, .84); }
.uxr .home-composer { position: relative; z-index: 1; border-color: rgba(226, 212, 183, .6); box-shadow: 0 18px 44px rgba(0, 0, 0, .22); transition: box-shadow var(--bp-motion-normal) var(--bp-ease), border-color var(--bp-motion-normal) var(--bp-ease); }
.uxr .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); }
.uxr .home-help { position: relative; z-index: 1; color: rgba(247, 243, 234, .74); }
/* Brando's states: thinking (ring turns), answer ready (brief light), unavailable (still, dimmer) */
.uxr .home-brando[data-state="busy"] .home-hero-art::after { border-style: dashed; border-color: rgba(226, 212, 183, .7); opacity: 1; animation: brando-ring 2.6s linear infinite; }
.uxr .home-brando[data-state="busy"] .home-composer { border-color: var(--bp-brand-soft-gold); }
.uxr .home-brando[data-state="busy"] #home-status::after { content: ""; display: inline-block; width: 1.2em; text-align: left; animation: brando-dots 1.4s steps(4, end) infinite; }
.uxr .home-brando[data-state="ready"] .home-hero-art::before { animation: brando-ready 900ms var(--bp-ease) 1; }
.uxr .home-brando[data-state="unavailable"] .home-hero-art { animation: none; filter: saturate(.7) brightness(.92); }
.uxr .home-brando[data-state="unavailable"] .home-composer { border-color: var(--bp-error-border); }
.uxr .home-status { color: var(--bp-brand-emerald-deep); font-weight: 600; }
@keyframes brando-breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes brando-halo { 0%, 100% { opacity: .78; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes brando-ring { to { transform: rotate(360deg); } }
@keyframes brando-ready { 0% { transform: scale(1); opacity: .8; } 40% { transform: scale(1.16); opacity: 1; } 100% { transform: scale(1); opacity: .8; } }
@keyframes brando-dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
@keyframes uxr-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Intent cards: more presence */
.uxr .home-starters { margin-top: 20px; gap: 16px; }
.uxr .home-starter { min-height: 150px; padding: 20px 20px 18px; grid-template-columns: 52px minmax(0, 1fr); border-radius: 22px; overflow: hidden; }
.uxr .home-starter::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--bp-brand-emerald), var(--bp-brand-champagne)); opacity: 0; transition: opacity var(--bp-motion-normal) var(--bp-ease); }
.uxr .home-starter:hover::before, .uxr .home-starter:focus-visible::before { opacity: 1; }
.uxr .starter-icon { width: 52px; height: 52px; 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); }
.uxr .home-starter:nth-child(2) .starter-icon, .uxr .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); }
.uxr .starter-icon .ico { width: 24px; height: 24px; flex-basis: 24px; }
.uxr .starter-title { font-size: 16.5px; }
.uxr .starter-arrow { transition: transform var(--bp-motion-normal) var(--bp-ease); }
.uxr .home-starter:hover .starter-arrow { transform: translateX(4px); }

/* Continuar: the next step leads; areas with activity follow; empty areas are one quiet row */
.uxr .continue-grid > .next-step { position: relative; grid-column: span 2; padding: 22px 24px; border-radius: 22px; border-color: var(--uxr-edge-strong); background: radial-gradient(80% 120% at 100% 0%, rgba(201, 174, 130, .22), transparent 60%), linear-gradient(135deg, #fffdf8, var(--bp-hypothesis-bg)); }
.uxr .continue-grid > .next-step h3 { font: 400 24px/1.2 var(--font-display); }
.uxr .continue-grid > .next-step .next-step-art { display: block; position: absolute; right: 18px; top: 18px; opacity: .9; }
.uxr .continue-grid > .next-step .next-step-art img { width: 64px; height: 64px; }
.uxr .continue-grid > .next-step > div:first-child { padding-right: 80px; }
.uxr .continue-card { position: relative; border-radius: 20px; }
.uxr .continue-arrow { position: absolute; right: 16px; bottom: 14px; width: 18px; height: 18px; color: var(--bp-brand-emerald); }
.uxr .continue-starts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 4px 2px; }
.uxr .continue-starts-label { margin-right: 4px; font-size: 13.5px; color: var(--text-muted); }
.uxr .continue-start { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin: 0; padding: 6px 14px; border: 1px solid var(--uxr-edge); border-radius: 999px; background: var(--uxr-glass); color: var(--bp-brand-emerald-deep); font-size: 14px; font-weight: 600; }
.uxr .continue-start:hover { border-color: var(--bp-brando-emerald-ring); background: var(--uxr-glass-strong); }
.uxr .continue-start .ico { width: 18px; height: 18px; flex-basis: 18px; }

/* ───── Conversation ───── */
.uxr .home-proposal { animation: uxr-rise var(--bp-motion-slow) var(--bp-ease) both; }
.uxr .thread-msg.is-user { animation: uxr-rise var(--bp-motion-normal) var(--bp-ease) both; }
.uxr .thread-bubble { background: var(--uxr-glass-strong); border-color: var(--uxr-edge); box-shadow: var(--uxr-lift); }
.uxr .thread-understood { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 10px !important; padding-bottom: 10px; border-bottom: 1px solid var(--uxr-edge); font-size: 14px; color: var(--text-secondary); }
.uxr .thread-understood .ico { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 2px; color: var(--bp-divider-gold); }
.uxr .proposal-card { position: relative; overflow: hidden; border-color: var(--bp-brando-emerald-ring); background: var(--uxr-glass-strong); }
.uxr .proposal-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--bp-brand-emerald), var(--bp-brand-champagne)); }
.uxr .home-option { background: linear-gradient(180deg, #ffffff, #fbf9f4); border-color: var(--uxr-edge); transition: box-shadow var(--bp-motion-normal) var(--bp-ease), border-color var(--bp-motion-normal) var(--bp-ease); }
.uxr .home-option:hover { border-color: var(--bp-brando-emerald-ring); box-shadow: var(--uxr-lift); }
.uxr .home-option::before { width: 30px; height: 30px; border-radius: 50%; background: var(--bp-brand-emerald); color: var(--bp-brand-soft-gold); }

/* ───── Estrategia · executive panel ───── */
.uxr .strategy-top { align-items: start; }
.uxr .strategy-objective { padding: 20px 24px; border-radius: 22px; box-shadow: var(--uxr-lift); background: radial-gradient(70% 120% at 100% 0%, rgba(201, 174, 130, .18), transparent 60%), linear-gradient(135deg, #ffffff, var(--bp-success-bg)); }
.uxr .app #decision .objective-text, .uxr #decision .objective-text { font-size: clamp(20px, 1.7vw, 25px); line-height: 1.32; }
.uxr .strategy-objective .actions { margin-top: 12px; }
.uxr .dimension { min-height: 0; padding: 14px 16px; }
.uxr .dimension-list { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.uxr .dimension.is-defined .dimension-icon { background: var(--bp-brand-emerald); color: var(--bp-brand-soft-gold); }
.uxr .strategy-validate { margin-top: 24px; }
.uxr .validate-entry { border-radius: 20px; }

/* ───── Marketing ───── */
.uxr .plan-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; padding: 0; list-style: none; }
.uxr .plan-kpi { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--uxr-edge); border-radius: 18px; background: var(--uxr-glass); box-shadow: var(--uxr-lift); }
.uxr .plan-kpi-label { font: 600 12px/1.3 var(--font-ui); letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); }
.uxr .plan-kpi-value { font: 650 26px/1.15 var(--font-ui); color: var(--bp-brand-emerald-deep); font-variant-numeric: tabular-nums; }
.uxr .plan-kpi-note { font-size: 12.5px; color: var(--text-secondary); }
.uxr .plan-launch { display: grid; gap: 18px; padding: 28px 30px; background: radial-gradient(70% 120% at 100% 0%, rgba(201, 174, 130, .26), transparent 60%), var(--uxr-glass-strong); }
.uxr .plan-launch h3 { margin: 4px 0 6px; font: 400 clamp(24px, 2.2vw, 32px)/1.2 var(--font-display); color: var(--bp-brand-charcoal); }
.uxr .plan-launch-objective { margin: 14px 0 0; padding: 14px 18px; border-left: 4px solid var(--bp-brand-emerald); border-radius: 12px; background: var(--bp-success-bg); font: 400 18px/1.45 var(--font-display); color: var(--bp-brand-charcoal); }
.uxr .plan-launch-objective span { display: block; margin-bottom: 4px; font: 650 11.5px/1.3 var(--font-ui); letter-spacing: .07em; text-transform: uppercase; color: var(--bp-brand-emerald); }
.uxr .plan-launch-steps { counter-reset: lstep; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.uxr .plan-launch-steps li { counter-increment: lstep; display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--uxr-edge); border-radius: 16px; background: rgba(255, 255, 255, .7); }
.uxr .plan-launch-steps li::before { content: counter(lstep); display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 4px; border-radius: 50%; background: var(--bp-brand-emerald); color: var(--bp-brand-soft-gold); font: 700 13px/1 var(--font-ui); }
.uxr .plan-launch-steps strong { font-size: 14.5px; }
.uxr .plan-launch-steps span { font-size: 13px; color: var(--text-muted); }
.uxr .plan-launch #plan-start { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; padding-top: 6px; }

/* ───── Clientes ───── */
.uxr .client-pipeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; padding: 0; list-style: none; }
.uxr .client-stage { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid var(--uxr-edge); border-top: 3px solid var(--bp-brand-emerald); border-radius: 18px; background: var(--uxr-glass); box-shadow: var(--uxr-lift); }
.uxr .client-stage.is-attention { border-top-color: var(--bp-brand-champagne); }
.uxr .client-stage span { font: 600 12.5px/1.3 var(--font-ui); color: var(--text-muted); }
.uxr .client-stage strong { font: 650 28px/1.1 var(--font-ui); color: var(--bp-brand-emerald-deep); font-variant-numeric: tabular-nums; }

/* ───── Responsive for the new pieces ───── */
@media (max-width: 1279px) {
  .uxr .plan-overview, .uxr .client-pipeline, .uxr .plan-launch-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uxr .continue-grid > .next-step { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .uxr .home-hero { padding: 24px 18px 18px; }
  .uxr .home-gem { width: 116px; height: 116px; }
  .uxr .home-hero-art::before { width: 170px; height: 170px; }
  .uxr .home-hero-art::after { width: 140px; height: 140px; }
  .uxr .app #decision .home-brando h2, .uxr #decision .home-brando h2 { font-size: 32px; }
  .uxr #decision .ws-hero { padding: 18px 18px 16px; border-radius: 20px; }
  .uxr .continue-grid > .next-step > div:first-child { padding-right: 0; }
  .uxr .continue-grid > .next-step .next-step-art { display: none; }
  .uxr .home-starter { min-height: 0; grid-template-columns: minmax(0, 1fr); }
  .uxr .starter-icon { width: 40px; height: 40px; border-radius: 13px; }
  .uxr .plan-launch { padding: 20px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .uxr .home-hero-art, .uxr .home-hero-art::before, .uxr .home-hero-art::after, .uxr .home-proposal, .uxr .thread-msg.is-user, .uxr .home-brando[data-state="busy"] #home-status::after { animation: none !important; }
  .uxr .home-starter:hover, .uxr .continue-card:hover, .uxr .dimension:hover, .uxr .validate-entry:hover, .uxr .kit-entry:hover, .uxr button:active { transform: none; }
}
.uxr .continue-grid:not(:has(.continue-card, .home-actions, .setup-resume)) > .next-step { grid-column: 1 / -1; }
.uxr #decision[data-view="strategy-summary"] .ws-hero { padding: 18px 26px 16px; }
.uxr #decision[data-view="strategy-summary"] .ws-hero h2 { font-size: clamp(26px, 2.2vw, 34px); }
@media (max-width: 1000px) { .uxr .home-hero { grid-template-columns: 160px minmax(0, 1fr); padding: 26px 26px 22px; } .uxr .home-gem { width: 140px; height: 140px; } .uxr .home-hero-art::before { width: 190px; height: 190px; } .uxr .home-hero-art::after { width: 160px; height: 160px; } }
@media (max-width: 767px) { .uxr .home-hero { grid-template-columns: minmax(0, 1fr); padding: 22px 18px 18px; } .uxr .home-gem { width: 112px; height: 112px; } .uxr .home-hero-art::before { width: 160px; height: 160px; } .uxr .home-hero-art::after { width: 134px; height: 134px; } }
.uxr .home-more-list summary { margin-top: 6px; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--bp-brand-emerald); }
.uxr .home-more-list ul { margin-top: 6px; }

/* View entrance only on arrival (data-entering is set by setNavActive for 520 ms when the view or decision changes);
   an in-place refresh after an action does not replay it. */
.uxr #decision > * { animation: none; }
.uxr #decision[data-entering] > * { animation: view-enter var(--bp-motion-slow) var(--bp-ease) both; }
@media (prefers-reduced-motion: reduce) { .uxr #decision[data-entering] > * { animation: none; } }
/* Phones: the AI-activity status never takes taps (it has no controls); the bottom bar slides away while scrolling
   down and returns on the way up. Reduced motion: it simply appears and disappears. */
.uxr .ai-activity { pointer-events: none; }
@media (max-width: 767px) {
  body.uxr.app .mobile-tabbar { transition: transform var(--bp-motion-fast) var(--bp-ease); }
  body.uxr.app.tabbar-away .mobile-tabbar { transform: translateY(110%); }
}
@media (prefers-reduced-motion: reduce) { body.uxr.app .mobile-tabbar { transition: none; } }
.uxr .continue-loading, .uxr .continue-failed { grid-column: 1 / -1; margin: 0; font-size: 13.5px; color: var(--text-muted); }
.uxr .continue-failed { color: var(--bp-warning); }
.uxr .continue-failed button { margin-left: 4px; }
/* WCAG AA on Brando's stage: the helper line under the composer keeps ≥4.5:1 on the lightest emerald stop. */
.uxr .home-help { color: rgba(247, 243, 234, .94); }
/* WCAG 2.2 target size on phones: each progress segment of «Panorama» is at least 24 px tall. */
@media (max-width: 767px) { .uxr .progress-segments .segment { min-height: 24px; } }
@media (max-width: 767px) { body.uxr.app.tabbar-away .mobile-tabbar:focus-within { transform: none; } }
