/* MAIA-CLAUDE-146 · UI-1d · hoja aparte, cargada DESPUÉS de l3.css (revertir = quitar su <link> de index.html).
   Desahogo, Arranque y Cierre con el lenguaje que la Agenda ya tiene en UI-1c (138): tarjeta lila con la Maia elegida
   (IMG_5221(1) por CSS, el mismo maiaRef('cuerpo') y la misma máscara de UI-1a), versalitas, títulos en Fraunces y
   tarjetas claras. Sin ilustraciones nuevas ni poses: el original no se toca. Oscuro: la tarjeta lila es la misma en claro
   y en oscuro (así lo define .startcard desde v2.49.1); el resto usa los tokens existentes. */

/* ---------- Tarjeta de cabecera (las tres vistas) ---------- */
/* la figura del original es 1529 × 2048 (≈ 1 : 1,34): la tarjeta mide al menos lo que Maia, así no se corta arriba ni abajo */
.startcard.ui1a-card.ui1d-card { min-height: 176px; padding: 20px max(38%, 142px) 18px 20px; margin: 4px 0 18px; }
.ui1d-card .ui1a-card-maia.ui1d-maia { width: 124px; max-width: none; right: 6px; top: 50%; bottom: auto; transform: translateY(-50%); }
.ui1d-card .startcard-k { margin: 0 0 6px; }
.ui1d-card .ui1d-h { margin: 0; font-family: 'Fraunces', var(--font-display); font-style: normal; font-weight: 700;
  font-size: clamp(26px, 7.2vw, 34px); line-height: 1.12; letter-spacing: -0.01em; color: inherit; text-wrap: balance; overflow-wrap: anywhere; }
.ui1d-card .ui1d-date { margin: 6px 0 0; font-family: 'Fraunces', var(--font-display); font-size: 16px; font-weight: 500; color: inherit; opacity: .8; }
.ui1d-card .lede, .ui1d-card .lede.muted { margin: 10px 0 0; color: inherit; opacity: .9; font-size: 16px; line-height: 1.45; }
.ui1d-card .note { margin: 8px 0 0; color: inherit; opacity: .85; font-size: 14.5px; }
.ui1d-card strong { color: inherit; }
/* el ánimo que antes hacía la Maia compacta: solo un cabeceo suave al escuchar o pensar (sin pose nueva) */
.ui1d-card.is-listening .ui1d-maia img, .ui1d-card.is-thinking .ui1d-maia img { animation: mia-nod 1.1s ease-in-out infinite; transform-origin: 60% 80%; }
@media (prefers-reduced-motion: reduce) { .ui1d-card .ui1d-maia img { animation: none !important; } }
@media (min-width: 700px) {
  .startcard.ui1a-card.ui1d-card { padding-right: 200px; min-height: 216px; }
  .ui1d-card .ui1a-card-maia.ui1d-maia { width: 152px; right: 3%; }
}

/* el botón que antes compartía renglón con la compacta ahora va solo y entero */
.go-row.ui1d-go { display: block; }
.go-row.ui1d-go .btn { width: 100%; }

/* ---------- Desahogo ---------- */
body[data-ui1c-tab="capturar"] .cap-box { border-radius: 22px; border-color: var(--line); box-shadow: 0 4px 14px rgb(74 35 120 / .06); }
body[data-ui1c-tab="capturar"] .cap-box:focus-within { border-color: #B79BEA; box-shadow: 0 0 0 3px rgb(183 155 234 / .35); }
/* la tarjeta ocupa más que la cabecera de antes: en teléfono el cuadro cede ese alto para que «Ordenar mi agenda» siga a la vista
   sin desplazar (A15b: min-height 40dvh); en pantallas anchas queda como estaba */
@media (max-width: 699px) {
  body[data-ui1c-tab="capturar"] .ui1d-card ~ .capture .cap-box textarea { min-height: 0; height: max(150px, calc(40dvh - 150px)); }
  .startcard.ui1a-card.ui1d-card.ui1d-cap { padding-right: 118px; min-height: 150px; }
  .ui1d-card.ui1d-cap .ui1a-card-maia.ui1d-maia { width: 100px; right: 8px; }
  .ui1d-card.ui1d-cap .lede { font-size: 15px; line-height: 1.4; }
}
body[data-ui1c-tab="capturar"] .set-group-h > span:first-child { font-family: var(--font-body); font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #4A2378; }

/* ---------- Arranque y Cierre: los pasos ---------- */
body[data-ui1c-tab="arranque"] .progress, body[data-ui1c-tab="cierre"] .progress {
  padding-top: 14px; font-family: var(--font-body); font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #4A2378; }
body[data-ui1c-tab="arranque"] .display.step-title, body[data-ui1c-tab="cierre"] .display.step-title {
  font-family: 'Fraunces', var(--font-display); font-weight: 700; font-size: clamp(26px, 7.2vw, 34px); line-height: 1.14; }
body[data-ui1c-tab="arranque"] .choice, body[data-ui1c-tab="cierre"] .choice {
  border-radius: 22px; border-color: var(--line); box-shadow: 0 4px 14px rgb(74 35 120 / .06); font-family: 'Fraunces', var(--font-display); font-weight: 600; font-size: 18px; }
body[data-ui1c-tab="arranque"] .choice.is-on, body[data-ui1c-tab="cierre"] .choice.is-on { background: linear-gradient(180deg, #F3ECFF, #E9DEFF); border-color: #B79BEA; color: #2A1446; }
body[data-ui1c-tab="arranque"] .choice:focus-visible, body[data-ui1c-tab="cierre"] .choice:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
body[data-ui1c-tab="arranque"] .chip.is-on, body[data-ui1c-tab="cierre"] .chip.is-on { background: #E7DCFB; color: #2A1446; border-color: #B79BEA; }
/* resúmenes: listas como las tarjetas claras de la Agenda */
body[data-ui1c-tab="arranque"] .set-list, body[data-ui1c-tab="cierre"] .set-list { border-radius: 22px; box-shadow: 0 4px 14px rgb(74 35 120 / .06); }
body[data-ui1c-tab="arranque"] .set-group-h > span:first-child, body[data-ui1c-tab="cierre"] .set-group-h:not(.gh) > span:first-child {
  font-family: var(--font-body); font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
body[data-ui1c-tab="arranque"] .closing-line, body[data-ui1c-tab="cierre"] .closing-line { font-family: 'Fraunces', var(--font-display); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body[data-ui1c-tab="arranque"] .progress, :root:not([data-theme="light"]) body[data-ui1c-tab="cierre"] .progress,
  :root:not([data-theme="light"]) body[data-ui1c-tab="capturar"] .set-group-h > span:first-child { color: #CDB8FF; }
  :root:not([data-theme="light"]) body[data-ui1c-tab="arranque"] .choice.is-on, :root:not([data-theme="light"]) body[data-ui1c-tab="cierre"] .choice.is-on { background: linear-gradient(180deg, #2C1F57, #251A4A); border-color: #4A3A86; color: #F1EAFF; }
  :root:not([data-theme="light"]) body[data-ui1c-tab="arranque"] .chip.is-on, :root:not([data-theme="light"]) body[data-ui1c-tab="cierre"] .chip.is-on { background: #3A2A6B; color: #F1EAFF; border-color: #4A3A86; }
}
:root[data-theme="dark"] body[data-ui1c-tab="arranque"] .progress, :root[data-theme="dark"] body[data-ui1c-tab="cierre"] .progress,
:root[data-theme="dark"] body[data-ui1c-tab="capturar"] .set-group-h > span:first-child { color: #CDB8FF; }
:root[data-theme="dark"] body[data-ui1c-tab="arranque"] .choice.is-on, :root[data-theme="dark"] body[data-ui1c-tab="cierre"] .choice.is-on { background: linear-gradient(180deg, #2C1F57, #251A4A); border-color: #4A3A86; color: #F1EAFF; }
:root[data-theme="dark"] body[data-ui1c-tab="arranque"] .chip.is-on, :root[data-theme="dark"] body[data-ui1c-tab="cierre"] .chip.is-on { background: #3A2A6B; color: #F1EAFF; border-color: #4A3A86; }
