/* MAIA-CLAUDE-133 · UI-1c · hoja aparte, cargada después de ui1b.css (revertir = quitar su <link>).
   Fuente visual: Leo042 A7676F77 (barra clara con la baldosa «Maia», ☰ en la cabecera, tarjetas crema/lavanda).
   Dirección de navegación: MAIA-LEO-044 §4 (v8: Ajustes al ☰; v9/v10: Mercado en la barra, Desahogo al centro).
   Oscuro: sin fuente oscura en las referencias; se siguen los tokens de A15b (--surface, --ink, --line…). */

/* ---------- Cabecera: ☰ a la izquierda, el nombre al centro, Maia a la derecha ---------- */
.ui1c-top { grid-template-columns: auto 1fr auto; }
.ui1c-menu { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 14px; background: transparent; color: var(--ink); cursor: pointer; }
.ui1c-menu:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.ui1c-menu:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.ui1c-gap { display: inline-block; width: .16em; }
/* con ☰ el nombre tiene menos ancho: se achica un poco para no cortarse a 390 px */
.ui1c-top .ui1a-word > span { font-size: clamp(28px, 8.2vw, 46px); }
@media (max-width: 400px) { .ui1c-top { gap: 6px; } .ui1c-top .ui1a-av { width: 52px; height: 52px; } }

/* ---------- Barra de abajo clara (A7676): baldosa violeta «Maia» con la S dorada ---------- */
#tabs.ui1c-tabs { background: color-mix(in srgb, var(--surface) 94%, transparent); border: 1px solid var(--line); box-shadow: 0 12px 30px rgb(74 35 120 / .14), 0 2px 6px rgb(74 35 120 / .06);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); padding: 6px; gap: 2px; }
#tabs.ui1c-tabs .tab { color: #4A2378; border-radius: 20px; min-height: 56px; }
#tabs.ui1c-tabs .tab .tab-svg { opacity: .82; filter: none; color: #4A2378; }
#tabs.ui1c-tabs .tab .tab-label { color: #4A2378; font-weight: 500; font-size: 11.5px; }
#tabs.ui1c-tabs .tab.is-on:not(.ui1c-tab-maia) { background: #EFE6FF; }
#tabs.ui1c-tabs .tab.is-on .tab-svg { opacity: 1; animation: none; }
#tabs.ui1c-tabs .tab.is-on .tab-label { color: #2A1446; font-weight: 700; }
#tabs.ui1c-tabs .ui1c-heart { fill: #E5263A; stroke: #E5263A; stroke-width: .6; }
#tabs.ui1c-tabs .ui1c-tab-maia { background: linear-gradient(180deg, #4A2378, #2A1446); box-shadow: 0 6px 14px rgb(42 20 70 / .32), inset 0 0 0 1.5px rgb(217 164 65 / .65); }
#tabs.ui1c-tabs .ui1c-tab-maia .tab-label { color: #FFF6E2; font-weight: 600; }
#tabs.ui1c-tabs .ui1c-tab-maia.is-on { box-shadow: 0 6px 14px rgb(42 20 70 / .32), inset 0 0 0 2.5px #D9A441; }
.ui1c-s { display: block; font-family: 'Fraunces', Georgia, serif; font-weight: 800; font-style: italic; font-size: 30px; line-height: 1; margin-top: 2px;
  background: linear-gradient(180deg, #F6D486 0%, #D9A441 55%, #A8701A 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
#tabs.ui1c-tabs .tab:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
@media (max-width: 420px) { #tabs.ui1c-tabs { left: 6px; right: 6px; padding: 5px; } #tabs.ui1c-tabs .tab .tab-label { font-size: 10.5px; letter-spacing: 0; } .ui1c-s { font-size: 26px; } }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) #tabs.ui1c-tabs { background: rgb(31 21 66 / .96); border-color: rgb(255 255 255 / .08); box-shadow: 0 14px 34px rgb(0 0 0 / .45); }
  :root:not([data-theme="light"]) #tabs.ui1c-tabs .tab .tab-svg, :root:not([data-theme="light"]) #tabs.ui1c-tabs .tab .tab-label { color: #D9CCF7; }
  :root:not([data-theme="light"]) #tabs.ui1c-tabs .tab.is-on:not(.ui1c-tab-maia) { background: #3A2A6B; }
  :root:not([data-theme="light"]) #tabs.ui1c-tabs .tab.is-on .tab-label { color: #FFFFFF; }
  :root:not([data-theme="light"]) #tabs.ui1c-tabs .ui1c-tab-maia .tab-label { color: #FFF6E2; }
}
:root[data-theme="dark"] #tabs.ui1c-tabs { background: rgb(31 21 66 / .96); border-color: rgb(255 255 255 / .08); box-shadow: 0 14px 34px rgb(0 0 0 / .45); }
:root[data-theme="dark"] #tabs.ui1c-tabs .tab .tab-svg, :root[data-theme="dark"] #tabs.ui1c-tabs .tab .tab-label { color: #D9CCF7; }
:root[data-theme="dark"] #tabs.ui1c-tabs .tab.is-on:not(.ui1c-tab-maia) { background: #3A2A6B; }

/* ---------- Menú ☰ (Ajustes) ---------- */
.ui1c-menu-sheet { max-height: min(86vh, 760px); overflow: auto; }
.ui1c-menu-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 2px; }
.ui1c-menu-k { margin: 0; font: 700 24px/1.1 'Fraunces', Georgia, serif; color: var(--ink); }
.ui1c-menu-x { width: 44px; height: 44px; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); font-size: 18px; cursor: pointer; }
.ui1c-menu-x:focus-visible, .ui1c-menu-sheet .set-row:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.ui1c-menu-sub { margin: 4px 2px 8px; font: 600 12px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 700px) { .ui1c-menu-sheet { left: 16px !important; right: auto !important; width: 380px; } }

/* ---------- Agenda: el mismo lenguaje que Hoy (tarjeta lila con Maia, desplegables como tarjetas claras) ---------- */
.ui1c-agcard .startcard-task { font-size: clamp(26px, 7.2vw, 34px); }
.ui1c-agcard.ui1a-card { min-height: 240px; }
body[data-ui1c-tab="semana"] .fold, body[data-ui1c-tab="semana"] .markets { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 4px 14px rgb(74 35 120 / .06); }
body[data-ui1c-tab="semana"] .fold.is-static { border-style: solid; }
body[data-ui1c-tab="semana"] .fold-h .fold-t { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 17px; color: var(--ink); }
body[data-ui1c-tab="semana"] .fold.is-today { background: linear-gradient(180deg, #F3ECFF, #E9DEFF); border-color: #D6C6FA; }
body[data-ui1c-tab="semana"] .week-head, body[data-ui1c-tab="semana"] .week-head > span:first-child { font-family: var(--font-body); font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #6B3FA6; }
body[data-ui1c-tab="semana"] .week-head { margin-top: 20px; }
body[data-ui1c-tab="semana"] .week-head .count { font-family: 'Fraunces', Georgia, serif; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--muted); }
body[data-ui1c-tab="semana"] .set-group-h.is-late > span:first-child { color: #A3361F; }
body[data-ui1c-tab="semana"] .task-it .check { border-color: #B79BEA; }
body[data-ui1c-tab="semana"] .task-it.is-done .check { background: linear-gradient(180deg, #F6D486, #D9A441); border-color: #D9A441; color: #2A1446; }
body[data-ui1c-tab="semana"] .form-card { border-radius: 22px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body[data-ui1c-tab="semana"] .fold.is-today { background: linear-gradient(180deg, #2C1F57, #251A4A); border-color: #4A3A86; }
  :root:not([data-theme="light"]) body[data-ui1c-tab="semana"] .week-head, :root:not([data-theme="light"]) body[data-ui1c-tab="semana"] .week-head > span:first-child { color: #CDB8FF; }
  :root:not([data-theme="light"]) body[data-ui1c-tab="semana"] .set-group-h.is-late > span:first-child { color: #FF9C86; }
}
:root[data-theme="dark"] body[data-ui1c-tab="semana"] .fold.is-today { background: linear-gradient(180deg, #2C1F57, #251A4A); border-color: #4A3A86; }

/* ---------- Mercado ---------- */
.ui1c-mk-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.ui1c-st { display: inline-block; padding: 4px 10px; border-radius: 999px; font: 700 11px/1.2 var(--font-body); letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; white-space: nowrap; }
.ui1c-st.is-ok { background: #E3F4E6; color: #1E5A2A; }
.ui1c-st.is-sim { background: #FFF1D6; color: #7A4B00; }
.ui1c-st.is-no { background: #EEE9F7; color: #4F4670; }
.ui1c-mk-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 16px; margin: 0 0 14px; box-shadow: 0 4px 14px rgb(74 35 120 / .06); }
.ui1c-mk-card .markets { margin: 0; }
.ui1c-mk-h { margin: 0 0 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 600 20px/1.2 'Fraunces', Georgia, serif; color: var(--ink); }
.ui1c-mk-note { margin: 10px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.ui1c-mk-note .ui1c-st { margin-right: 6px; }
.ui1c-mk-list { list-style: none; margin: 0; padding: 0; }
.ui1c-mk-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.ui1c-mk-list li:first-child { border-top: 0; }
.ui1c-mk-t { font-weight: 600; color: var(--ink); }
.ui1c-mk-d { grid-column: 1; font-size: 13.5px; color: var(--muted); }
.ui1c-mk-list .ui1c-st { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ui1c-st.is-ok { background: #173B22; color: #A6E3B3; }
  :root:not([data-theme="light"]) .ui1c-st.is-sim { background: #3F2E0B; color: #F6D486; }
  :root:not([data-theme="light"]) .ui1c-st.is-no { background: #2E2651; color: #CFC6EE; }
}
:root[data-theme="dark"] .ui1c-st.is-ok { background: #173B22; color: #A6E3B3; }
:root[data-theme="dark"] .ui1c-st.is-sim { background: #3F2E0B; color: #F6D486; }
:root[data-theme="dark"] .ui1c-st.is-no { background: #2E2651; color: #CFC6EE; }
