/* Marlash — estilo "Grafito Cristal".
   Concepto: vidrio esmerilado sobre grafito, luz suave que respira detrás.
   Acento lavanda (lo tuyo), durazno (lo que pide atención ahora). Una sola estética oscura. */
:root {
  --bg: #111317;
  --bg-2: #1d2028;
  --panel: rgba(255, 255, 255, .055);
  --panel-solid: #1b1e25;
  --line: rgba(255, 255, 255, .10);
  --line-2: rgba(255, 255, 255, .18);
  --cyan: #aab8ff;                 /* acento principal (lavanda) */
  --cyan-dim: rgba(170, 184, 255, .6);
  --glow: rgba(170, 184, 255, .28);
  --amber: #ffbfa3;                /* atención (durazno) */
  --amber-glow: rgba(255, 191, 163, .35);
  --rose: #f6a8cf;
  --red: #ff9090;
  --fg: #f2f4f7;
  --muted: #9aa1b0;
  --f-ui: "Outfit", "SF Pro Display", -apple-system, "Segoe UI", system-ui, sans-serif;
  --f-mono: "Outfit", "SF Pro Text", -apple-system, system-ui, sans-serif;
  --r: 22px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: linear-gradient(160deg, var(--bg-2), var(--bg) 55%) fixed, var(--bg);
  color: var(--fg);
  font: 300 17px/1.5 var(--f-ui);
  min-height: 100vh;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
#fondo { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2 { margin: 0; font-weight: 400; text-wrap: balance; letter-spacing: -.01em; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 10px; }
.mono { font-family: var(--f-mono); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.tenue { color: var(--muted); font-size: .8rem; }
.acento { color: var(--cyan); }
.nota { font-size: .9rem; color: var(--muted); margin: 0; }
.alerta { color: var(--red); margin: 0; font-size: .9rem; }

/* Etiquetas en mayúsculas → tipo oración, más suaves */
.panel__tit, .panel__tag, .tele dt, .agenda__dia h3, .pestana, .chip, .dia__lbl, .editor__enc,
.reactor__lbl, .barra__marca .tenue, #fecha, .oido__txt, .arranque__txt, #arranqueEstado, .login .mono, .item__txt small, .paso__titulo small, .agenda__txt small {
  text-transform: lowercase;
}
.panel__tit::first-letter, .panel__tag::first-letter, .tele dt::first-letter, .agenda__dia h3::first-letter, .pestana::first-letter,
.chip::first-letter, .dia__lbl::first-letter, .editor__enc span::first-letter, .reactor__lbl::first-letter, .barra__marca .tenue span::first-letter,
#fecha::first-letter, .oido__txt::first-letter, .arranque__txt::first-letter, #arranqueEstado::first-letter, .login .mono::first-letter,
.item__txt small::first-letter, .paso__titulo small::first-letter, .agenda__txt small::first-letter { text-transform: uppercase; }

.marca {
  font-family: var(--f-ui); font-weight: 500; letter-spacing: .01em; font-size: 1.15rem; margin: 0;
  color: var(--fg); text-transform: lowercase;
}
.marca::first-letter { text-transform: uppercase; }

/* ---------- Paneles de vidrio ---------- */
.panel {
  position: relative; width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px 20px;
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .07);
}
.panel__tit { margin: 0 0 10px; font-size: .82rem; font-weight: 500; color: var(--cyan); }
.panel__cab { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px; }
.panel__tag { font-size: .78rem; font-weight: 500; color: var(--cyan); display: block; margin-bottom: 4px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 18px; border-radius: 14px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .07); color: var(--fg);
  font-weight: 400; font-size: .95rem; letter-spacing: .005em;
  cursor: pointer; text-decoration: none;
  transition: background .2s, box-shadow .2s, transform .1s;
}
.btn:hover { background: rgba(255, 255, 255, .13); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: default; }
.btn--primario { background: var(--fg); border-color: var(--fg); color: #121418; font-weight: 500; }
.btn--primario:hover { background: #ffffff; box-shadow: 0 6px 24px rgba(255, 255, 255, .18); }
.btn--texto { background: none; border-color: transparent; color: var(--muted); }
.btn--texto:hover { background: rgba(255, 255, 255, .06); color: var(--fg); }
.btn--icono { width: 44px; padding: 0; }
.btn--icono svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }

/* ---------- Barra superior ---------- */
.barra {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  padding-block: 14px;
  padding-left: max(18px, env(safe-area-inset-left, 0px));
  padding-right: max(18px, env(safe-area-inset-right, 0px));
}
.barra__marca { display: flex; flex-direction: column; gap: 2px; }
.barra__reloj { text-align: center; }
.reloj { font-size: 1.9rem; font-weight: 200; line-height: 1; color: var(--fg); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.barra__acciones { display: flex; gap: 8px; justify-content: flex-end; }
.punto { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #8ee6b8; box-shadow: 0 0 8px rgba(142, 230, 184, .6); margin-right: 6px; vertical-align: 1px; }
.punto.offline { background: var(--red); box-shadow: 0 0 8px var(--red); }
@keyframes latido { 50% { opacity: .4; } }

/* ---------- Distribución ---------- */
.hud {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 350px) minmax(0, 1fr) minmax(0, 350px);
  grid-template-areas: "izq centro der";
  gap: 24px; max-width: 1480px; margin: 0 auto;
  padding-block: 12px 48px;
  padding-left: max(18px, env(safe-area-inset-left, 0px));
  padding-right: max(18px, env(safe-area-inset-right, 0px));
}
.centro { grid-area: centro; display: flex; flex-direction: column; align-items: center; gap: 16px; min-width: 0; }
.lado { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.lado--izq { grid-area: izq; }
.lado--der { grid-area: der; }
@media (max-width: 1080px) {
  .hud { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "centro centro" "izq der"; }
}
@media (max-width: 680px) {
  .hud { grid-template-columns: minmax(0, 1fr); grid-template-areas: "centro" "izq" "der"; gap: 16px; padding-top: 4px; }
  .reloj { font-size: 1.5rem; }
  .barra .tenue { font-size: .7rem; }
  #fecha { white-space: nowrap; }
  .panel { padding: 16px 18px; }
}

/* ---------- Núcleo ---------- */
.reactor { position: relative; width: min(400px, 88vw); aspect-ratio: 1; max-width: 100%; }
.reactor canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.reactor__centro {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  pointer-events: none; padding: 0 22%;
}
.reactor__pct { font-size: clamp(2.2rem, 8vw, 3.2rem); font-weight: 200; color: var(--fg); letter-spacing: -.01em; }
.reactor__lbl { font-size: .8rem; color: var(--muted); margin-top: 2px; text-align: center; letter-spacing: .02em; }

.subtitulo { max-width: 620px; text-align: center; background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 4px 8px; }
.subtitulo .panel__tag { display: none; }
.subtitulo p { margin: 0; font-size: 1.2rem; font-weight: 300; min-height: 1.5em; color: #e3e7ee; line-height: 1.45; }
.subtitulo p.escribiendo::after { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); margin-left: 6px; vertical-align: middle; animation: latido .9s ease-in-out infinite; }

/* ---------- Foco ---------- */
.foco { max-width: 620px; }
.foco .panel__tit { color: var(--cyan); }
.foco__titulo { font-size: clamp(2rem, 6vw, 2.7rem); line-height: 1.1; font-weight: 400; }
.foco__detalle { margin: 6px 0 0; color: var(--muted); max-width: 52ch; }
.foco__tiempo { margin: 10px 0 0; font-size: .9rem; color: var(--amber); }
.foco__acciones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.temporizador { margin-top: 14px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.temporizador__num { font-size: 2.3rem; font-weight: 200; color: var(--fg); }
.temporizador__barra { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.temporizador__barra div { height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--cyan), var(--rose)); transition: width 1s linear; }

/* ---------- Ánimo ---------- */
.animo { max-width: 620px; }
.animo h2 { font-size: 1.5rem; margin-bottom: 14px; }
.animo__opciones { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.animo__btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 0; cursor: pointer;
  border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .05);
  font-size: 1.5rem; font-weight: 300; color: var(--fg); transition: background .2s, transform .1s;
}
.animo__btn small { font-size: .7rem; color: var(--muted); text-transform: lowercase; }
.animo__btn:hover { background: rgba(170, 184, 255, .16); border-color: var(--cyan-dim); }

/* ---------- Hablar ---------- */
.hablar { width: 100%; max-width: 620px; display: flex; gap: 10px; align-items: center; }
.mic {
  flex: none; width: 58px; height: 58px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  color: var(--fg); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  transition: background .2s, box-shadow .2s;
}
.mic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.mic:hover { background: rgba(255, 255, 255, .14); }
.mic.activo { background: linear-gradient(135deg, var(--cyan), var(--rose)); border-color: transparent; color: #15171c; box-shadow: 0 0 0 6px rgba(170, 184, 255, .15), 0 8px 30px var(--glow); }
.hablar__form { flex: 1; display: flex; gap: 8px; min-width: 0; }
.hablar__form input, .mision input, .campo input:not([type=checkbox]):not([type=range]), .campo select, .editor input, .login__form input {
  flex: 1; min-width: 0; min-height: 46px; padding: 0 14px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .06); color: var(--fg);
  font-weight: 300;
}
.hablar__form input:focus, .mision input:focus, .campo input:focus, .campo select:focus, .editor input:focus { border-color: var(--cyan-dim); background: rgba(255, 255, 255, .09); outline: none; }
.hablar__form input::placeholder, .mision input::placeholder { color: var(--muted); }
.campo select { appearance: none; -webkit-appearance: none; }
.ayuda { margin: 0; font-size: .78rem; color: var(--muted); text-align: center; text-transform: lowercase; }

/* ---------- Rutina ---------- */
.barraProgreso { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); margin: 6px 0 10px; overflow: hidden; }
.barraProgreso div { height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--cyan), var(--rose)); transition: width .5s ease; }
.linea { list-style: none; margin: 0; padding: 0; }
.paso { display: grid; grid-template-columns: 50px minmax(0, 1fr) 40px; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.paso:first-child { border-top: 0; }
.paso__hora { font-size: .88rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.paso__titulo { font-weight: 400; }
.paso__titulo small { display: block; font-size: .74rem; color: var(--muted); font-weight: 300; }
.paso--hecho .paso__titulo { color: var(--muted); }
.paso--ahora .paso__hora, .paso--ahora .paso__titulo { color: var(--amber); }
.check {
  width: 26px; height: 26px; margin: 0 auto; cursor: pointer; display: grid; place-items: center; padding: 0;
  border: 1.5px solid var(--line-2); border-radius: 50%; background: transparent; transition: background .2s, border-color .2s;
}
.check:hover { border-color: var(--cyan); }
.check svg { width: 13px; height: 13px; fill: none; stroke: #15171c; stroke-width: 3; opacity: 0; }
.paso--hecho .check { background: var(--cyan); border-color: var(--cyan); }
.paso--hecho .check svg { opacity: 1; }
.chip { font-size: .68rem; font-weight: 500; padding: 2px 9px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }
.chip--ahora { background: var(--amber); color: #2a1810; }
.chip--pend { background: rgba(255, 144, 144, .14); color: var(--red); }

.mision { display: flex; gap: 8px; }

/* ---------- Telemetría ---------- */
.tele { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.tele div { background: rgba(255, 255, 255, .04); border-radius: 16px; padding: 10px 14px; }
.tele dt { font-size: .74rem; color: var(--muted); }
.tele dd { margin: 0; font-size: 1.6rem; font-weight: 200; color: var(--fg); font-variant-numeric: tabular-nums; }

/* ---------- Semana ---------- */
.semana { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; align-items: end; margin-top: 8px; }
.dia { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.dia__col { width: 100%; max-width: 22px; height: 64px; border-radius: 11px; background: rgba(255, 255, 255, .06); display: flex; align-items: flex-end; overflow: hidden; }
.dia__col div { width: 100%; border-radius: 11px; background: linear-gradient(to top, var(--cyan), var(--rose)); }
.dia__lbl { font-size: .7rem; color: var(--muted); }
.dia--hoy .dia__lbl { color: var(--fg); font-weight: 500; }
.dia--hoy .dia__col { box-shadow: 0 0 0 1.5px var(--cyan-dim); }

/* ---------- Registro ---------- */
.chat { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 260px; overflow-y: auto; font-size: .93rem; }
.chat li { overflow-wrap: anywhere; padding: 8px 12px; border-radius: 16px; max-width: 92%; }
.chat .m { background: rgba(255, 255, 255, .06); align-self: flex-start; border-bottom-left-radius: 6px; }
.chat .y { background: rgba(170, 184, 255, .22); align-self: flex-end; border-bottom-right-radius: 6px; }
.chat:empty::before { content: "Sin actividad todavía."; color: var(--muted); font-size: .88rem; }
.notas { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.notas span { font-size: .78rem; color: var(--muted); margin-right: 8px; }

/* ---------- Arranque ---------- */
.arranque {
  position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: rgba(17, 19, 23, .72);
  backdrop-filter: blur(30px) saturate(150%); -webkit-backdrop-filter: blur(30px) saturate(150%);
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  transition: opacity .8s ease;
}
.arranque.fuera { opacity: 0; pointer-events: none; }
.arranque__btn { position: relative; width: 180px; height: 180px; border-radius: 50%; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.arranque__aro { position: absolute; inset: 0; border-radius: 50%; }
.arranque__aro:nth-child(1) {
  background: radial-gradient(circle at 38% 32%, rgba(255, 255, 255, .55), rgba(170, 184, 255, .25) 45%, rgba(170, 184, 255, .04) 70%);
  box-shadow: 0 0 60px rgba(170, 184, 255, .35), inset 0 0 30px rgba(255, 255, 255, .12);
  animation: respirar 4s ease-in-out infinite;
}
.arranque__aro:nth-child(2) { inset: -14px; border: 1px solid rgba(255, 255, 255, .14); }
.arranque__aro:nth-child(3) { inset: -14px; border: 2px solid transparent; border-top-color: var(--cyan); border-right-color: var(--rose); animation: girar 6s linear infinite; opacity: .8; }
.arranque__txt { font-weight: 500; letter-spacing: .04em; color: var(--fg); font-size: 1rem; position: relative; }
.arranque__marca { font-size: 2rem; font-weight: 300; }
.arranque.iniciando .arranque__aro:nth-child(3) { animation-duration: 1.2s; }
.arranque__log { list-style: none; padding: 0; margin: 0; min-height: 8.5em; font-size: .88rem; color: var(--muted); text-align: left; width: min(320px, 100%); }
.arranque__log li { opacity: 0; animation: aparecer .4s ease forwards; padding: 2px 0; }
.arranque__log li.ok::after { content: "  ✓"; color: #8ee6b8; }
@keyframes aparecer { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes girar { to { transform: rotate(360deg); } }
@keyframes respirar { 50% { transform: scale(1.04); box-shadow: 0 0 80px rgba(170, 184, 255, .45), inset 0 0 30px rgba(255, 255, 255, .16); } }

/* ---------- Diálogos ---------- */
.dialogo { color: var(--fg); background: rgba(27, 30, 37, .92); width: min(460px, calc(100vw - 32px)); padding: 24px; border-radius: 26px; }
.dialogo--ancho { width: min(780px, calc(100vw - 32px)); }
.dialogo::backdrop { background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.dialogo form { display: flex; flex-direction: column; gap: 14px; }
.dialogo__pie { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; }
.campo { display: flex; flex-direction: column; gap: 6px; font-size: .95rem; }
.campo--fila { flex-direction: row; align-items: center; gap: 10px; }
.campo--fila input { width: 20px; height: 20px; accent-color: var(--cyan); }
.campo input[type=range] { accent-color: var(--cyan); }
.editor { display: flex; flex-direction: column; gap: 8px; max-height: 55vh; overflow-y: auto; }
.editor__fila { display: grid; grid-template-columns: 110px minmax(0, 1fr) 72px 72px 44px; gap: 6px; align-items: center; }
.editor__fila .detalle { grid-column: 2 / 5; }
.editor__enc { font-size: .74rem; color: var(--muted); }
@media (max-width: 560px) {
  .editor__fila { grid-template-columns: 1fr 1fr; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  .editor__fila .detalle, .editor__fila .titulo { grid-column: 1 / -1; }
  .editor__enc { display: none; }
}

/* ---------- Entrada con PIN ---------- */
.login {
  position: relative; z-index: 1; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.login .marca { font-size: 2.2rem; font-weight: 300; }
.login__sub { margin: 0; color: var(--muted); }
.login__anillo { position: relative; width: 120px; height: 120px; margin-bottom: 10px; }
.login__anillo span { position: absolute; inset: 0; border-radius: 50%; }
.login__anillo span:nth-child(1) { background: radial-gradient(circle at 38% 32%, rgba(255, 255, 255, .5), rgba(170, 184, 255, .22) 45%, transparent 70%); animation: respirar 4s ease-in-out infinite; }
.login__anillo span:nth-child(2) { inset: -10px; border: 1px solid rgba(255, 255, 255, .12); }
.login__anillo span:nth-child(3) { inset: -10px; border: 2px solid transparent; border-top-color: var(--cyan); border-right-color: var(--rose); animation: girar 7s linear infinite; }
.login__form { display: flex; gap: 8px; margin-top: 8px; }
.login__form input { width: 160px; text-align: center; font-size: 1.3rem; letter-spacing: .4em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ===================== Asistente ===================== */
.oido { gap: 6px; padding: 0 14px; }
.oido svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.oido__txt { font-size: .82rem; font-family: var(--f-ui); }
.oido.activo { background: rgba(170, 184, 255, .18); border-color: var(--cyan-dim); color: var(--fg); }
.oido.activo .oido__txt::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #8ee6b8; margin-right: 6px; vertical-align: 1px; animation: latido 1.6s ease-in-out infinite; }
.oido.comando { background: linear-gradient(135deg, var(--cyan), var(--rose)); border-color: transparent; color: #15171c; }
@media (max-width: 680px) { .oido__txt { display: none; } .oido { width: 44px; padding: 0; } }

.alertaRec { max-width: 620px; background: linear-gradient(135deg, rgba(255, 191, 163, .16), rgba(246, 168, 207, .12)); border-color: rgba(255, 191, 163, .35); animation: alertaBrillo 2.4s ease-in-out infinite; }
.alertaRec .panel__tit { color: var(--amber); }
.alertaRec h2 { font-size: clamp(1.5rem, 4.5vw, 2rem); line-height: 1.15; }
@keyframes alertaBrillo { 50% { box-shadow: 0 12px 50px rgba(255, 191, 163, .22), inset 0 1px 0 rgba(255, 255, 255, .07); } }

.toast { position: fixed; z-index: 30; left: 50%; transform: translateX(-50%); top: calc(78px + env(safe-area-inset-top, 0px)); width: min(560px, calc(100% - 32px)); display: flex; align-items: center; justify-content: space-between; gap: 10px; background: rgba(35, 38, 46, .88); }
.toast span { min-width: 0; }

.pestanas { display: flex; gap: 4px; margin-bottom: 12px; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, .05); }
.pestana { flex: 1; min-height: 34px; padding: 0 6px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; font-size: .82rem; font-weight: 400; transition: background .2s, color .2s; }
.pestana.activa { color: #15171c; background: var(--fg); font-weight: 500; }
.prioNota { font-size: .84rem; margin-bottom: 6px; }
.prioNota:empty { display: none; }

.items { list-style: none; margin: 0 0 10px; padding: 0; }
.items:empty::before { content: attr(data-vacio); display: block; color: var(--muted); font-size: .9rem; padding: 6px 0; }
.item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 9px 0; border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; }
.item__txt { min-width: 0; overflow-wrap: anywhere; font-weight: 400; }
.item__txt small { display: block; font-size: .74rem; color: var(--muted); font-weight: 300; }
.item__txt small.alerta-txt { color: var(--red); }
.item--hecha .item__txt { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-2); }
.item--prio .item__txt { color: var(--amber); }
.item__acc { display: flex; gap: 0; }
.mini { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; font-size: .95rem; transition: background .2s, color .2s; }
.mini:hover { color: var(--fg); background: rgba(255, 255, 255, .07); }
.mini.on { color: var(--amber); }
.item .check { margin: 0 4px; }
.item--hecha .check { background: var(--cyan); border-color: var(--cyan); }
.item--hecha .check svg { opacity: 1; }
.cierreBtn { width: 100%; margin-top: 4px; }

.agenda { display: flex; flex-direction: column; gap: 14px; margin-bottom: 8px; }
.agenda:empty::before { content: "Nada agendado en los próximos 14 días. Di: “Marlash, el martes tengo cita…”"; color: var(--muted); font-size: .9rem; }
.agenda__dia h3 { margin: 0 0 4px; font-size: .8rem; font-weight: 500; color: var(--cyan); }
.agenda__dia.hoy h3 { color: var(--amber); }
.agenda__fila { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 4px 0; }
.agenda__hora { font-size: .86rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.agenda__txt { min-width: 0; overflow-wrap: anywhere; font-weight: 400; }
.agenda__txt small { font-size: .7rem; color: var(--muted); margin-left: 8px; font-weight: 300; }
.agenda__fila.rec .agenda__txt { color: #dfe3ea; }

.proy__sig { font-size: .88rem; color: var(--muted); font-weight: 300; }
.proy--pausado .item__txt { color: var(--muted); }

.fila2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pasos { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.pasos b { color: var(--fg); font-weight: 500; }
.copiar { display: flex; gap: 8px; align-items: center; }
.copiar code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .74rem; padding: 11px 12px; border-radius: 12px; background: rgba(0, 0, 0, .25); color: var(--cyan); }
.dialogo { max-height: 88vh; overflow-y: auto; }
.dialogo .panel__tit { margin-top: 6px; }
