/* Control horario · moderno, pastel rosa.
   Superficies translúcidas sin bordes, píldoras, brillos suaves y tipografía apretada con contraste de pesos. */
/* Tema por defecto: oscuro. El claro y el automático (según el sistema) se eligen en Configuración. */
:root[data-theme="light"], :root[data-theme="auto"] {
  --bg: #FFF3F7; --bg2: #FFE1EC;
  --card: rgba(255, 255, 255, .78); --btn: rgba(255, 255, 255, .92); --field: rgba(236, 127, 166, .13);
  --text: #3D2733; --muted: #6B4F5E;
  --accent: #F4A3C0; --accent-strong: #EC7FA6; --accent-text: #4A1D33; --accent-ink: #B3366A;
  --lav: #DCCDF6; --lav-ink: #5E3F9A;
  --pos: #1F6B49; --pos-bg: #D9F2E6; --warn: #8A4F14; --warn-bg: #FFE8CC; --neg: #A82A47; --neg-bg: #FFD9E0;
  --glow: 0 10px 30px rgba(236, 127, 166, .38); --soft: 0 6px 24px rgba(180, 90, 130, .10);
  --glass: rgba(255, 255, 255, .8);
  color-scheme: light;
}
:root, :root[data-theme="dark"] {
  --bg: #1C1319; --bg2: #2C1A26;
  --card: rgba(255, 255, 255, .07); --btn: rgba(255, 255, 255, .11); --field: rgba(255, 255, 255, .08);
  --text: #FDEFF5; --muted: #D8BDCB;
  --accent: #F4A3C0; --accent-strong: #F08DB2; --accent-text: #3A1426; --accent-ink: #F7B5CC;
  --lav: #54417A; --lav-ink: #D9C8F8;
  --pos: #8FE0B8; --pos-bg: #1F3A30; --warn: #F0C27A; --warn-bg: #40301A; --neg: #FF9DB0; --neg-bg: #4A2030;
  --glow: 0 10px 30px rgba(240, 141, 178, .3); --soft: 0 6px 24px rgba(0, 0, 0, .25);
  --glass: rgba(44, 26, 38, .82);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg: #1C1319; --bg2: #2C1A26;
    --card: rgba(255, 255, 255, .07); --btn: rgba(255, 255, 255, .11); --field: rgba(255, 255, 255, .08);
    --text: #FDEFF5; --muted: #D8BDCB;
    --accent: #F4A3C0; --accent-strong: #F08DB2; --accent-text: #3A1426; --accent-ink: #F7B5CC;
    --lav: #54417A; --lav-ink: #D9C8F8;
    --pos: #8FE0B8; --pos-bg: #1F3A30; --warn: #F0C27A; --warn-bg: #40301A; --neg: #FF9DB0; --neg-bg: #4A2030;
    --glow: 0 10px 30px rgba(240, 141, 178, .3); --soft: 0 6px 24px rgba(0, 0, 0, .25);
    --glass: rgba(44, 26, 38, .82);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { font-size: 15px; }
body {
  color: var(--text);
  font: 1rem/1.45 Inter, -apple-system, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  background:
    radial-gradient(60% 38% at 100% 0%, rgba(244, 163, 192, .38), transparent 70%),
    radial-gradient(55% 34% at 0% 6%, rgba(220, 205, 246, .5), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
#app { max-width: 560px; margin: 0 auto; padding: 0 14px calc(100px + env(safe-area-inset-bottom)); min-height: 100vh; }
h1 { font-size: 1.4rem; margin: 0; font-weight: 800; letter-spacing: -.5px; }
h2 { font-size: .85rem; margin: 20px 4px 8px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }
.pos { color: var(--pos); } .neg { color: var(--neg); }
.center { text-align: center; }
.g { color: var(--muted); font-weight: 600; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

/* Cabecera */
header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(12px + env(safe-area-inset-top)) 2px 6px; }
.hi { font-size: .95rem; color: var(--muted); font-weight: 500; }
.bigdate { font-size: 1.9rem; font-weight: 800; letter-spacing: -1px; line-height: 1.05; white-space: nowrap; min-width: 0; }
.bigdate span { color: var(--muted); font-weight: 700; }
.bigdate.sm { font-size: 1.55rem; letter-spacing: -.6px; }
.avatar { width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; background: var(--accent); color: var(--accent-text); font-weight: 700; font-size: 1rem; box-shadow: var(--glow); overflow: hidden; flex: none; display: grid; place-items: center; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.big { width: 84px; height: 84px; min-height: 84px; font-size: 2rem; cursor: default; }

/* Botones */
button, .btn { font: inherit; touch-action: manipulation; -webkit-tap-highlight-color: transparent; font-weight: 600; cursor: pointer; border: 0; color: var(--text); background: var(--btn); border-radius: 9999px; padding: 8px 16px; min-height: 44px; box-shadow: var(--soft); transition: transform .12s, filter .12s; }
button:active { transform: scale(.97); filter: brightness(1.04); }
button.primary { background: var(--accent); color: var(--accent-text); font-weight: 700; box-shadow: var(--glow); }
button.danger { color: var(--neg); }
button.link { background: none; box-shadow: none; color: var(--accent-ink); padding: 6px 12px; min-height: 44px; }
button:disabled { opacity: .45; cursor: default; box-shadow: none; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 2px; }
input, select { font: inherit; color: var(--text); background: var(--field); border: 0; border-radius: 14px; padding: 8px 12px; min-height: 44px; width: 100%; }
label.field { display: block; margin: 10px 0; font-size: .95rem; color: var(--muted); font-weight: 500; }
label.field input, label.field select { margin-top: 6px; }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; min-width: 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.actions > button { flex: 1 1 auto; }
.card { background: var(--card); border-radius: 20px; padding: 14px 16px; margin: 10px 0; box-shadow: var(--soft); }
.msg { padding: 10px 14px; border-radius: 16px; margin: 10px 0; background: var(--lav); color: var(--lav-ink); }
.msg.err { background: var(--neg-bg); color: var(--neg); }
.hint { font-size: .92rem; color: var(--muted); margin: 6px 4px 0; }

/* Acceso */
.auth { padding-top: 9vh; }
.auth h1 { font-size: 1.7rem; }
.auth .muted { margin: 6px 0 20px; }
.auth form .primary { width: 100%; margin-top: 12px; }
.switch { margin-top: 18px; text-align: center; }

/* Navegación de semana y mes */
.weeknav { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.weeknav .title { flex: 1; text-align: center; font-size: 1.15rem; letter-spacing: -.3px; line-height: 1.15; }
.weeknav .title b { font-weight: 700; }
.weeknav .title small { display: block; font-size: .85rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.weeknav button { width: 44px; height: 44px; padding: 0; font-size: 1.3rem; border-radius: 16px; }

/* Tira de días */
.strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; padding: 4px; border-radius: 24px; background: var(--card); box-shadow: var(--soft); margin: 4px 0 10px; }
.sday { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0 5px; min-height: 52px; border-radius: 18px; background: none; box-shadow: none; color: var(--muted); min-width: 0; }
.sday small { font-size: .85rem; font-weight: 700; }
.sday b { font-size: 1rem; color: var(--text); font-weight: 700; letter-spacing: -.1px; }
.sday .dot { width: 6px; height: 6px; border-radius: 50%; background: transparent; }
.sday.real .dot { background: var(--accent-strong); }
.sday.planned .dot { background: var(--lav-ink); }
.sday.off .dot { background: var(--muted); opacity: .4; }
.sday.today:not(.sel) b { color: var(--accent-ink); }
.sday.sel { background: var(--accent); box-shadow: var(--glow); }
.sday.sel small, .sday.sel b { color: var(--accent-text); }
.sday.sel.real .dot, .sday.sel.planned .dot { background: var(--accent-text); }

/* Resumen de la semana */
.sum { padding: 14px 16px; }
.sumtop { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.big { font-size: 2.3rem; font-weight: 800; letter-spacing: -1.2px; line-height: 1; font-variant-numeric: tabular-nums; }
.big .unit { font-size: 1rem; letter-spacing: 0; color: var(--muted); font-weight: 700; }
.of { color: var(--muted); font-weight: 600; padding-bottom: 4px; }
.pbar { display: flex; gap: 3px; height: 14px; padding: 3px; border-radius: 9999px; background: var(--field); margin: 10px 0 8px; }
.sg { border-radius: 9999px; min-width: 6px; }
.sg.r { background: linear-gradient(90deg, var(--accent), var(--accent-strong)); }
.sg.p { background: var(--lav); }
.pbar > span:not(.sg) { background: transparent; }
.sum .line { margin: 0; font-weight: 600; letter-spacing: -.2px; }
.sum .legend { display: flex; gap: 14px; margin-top: 6px; font-size: .88rem; color: var(--muted); }
.sum .legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.sw.real { background: var(--accent-strong); } .sw.planned { background: var(--lav); }

/* Dos acciones principales */
.cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 4px; }
.cta button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; border-radius: 20px; font-size: .9rem; line-height: 1.2; padding: 6px 8px; }
.cta .ic { width: 1.25em; height: 1.25em; }
.cta .primary .ic { color: var(--accent-text); }
.cta button:not(.primary) .ic { color: var(--accent-ink); }

/* Filas de los días */
.dlist { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.drow { display: flex; align-items: center; background: var(--card); border-radius: 18px; box-shadow: var(--soft); scroll-margin-top: 20px; }
.drow.today { box-shadow: 0 0 0 2px var(--accent-strong), var(--soft); }
.drow.off, .drow.none { background: transparent; box-shadow: none; }
.dmain { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; text-align: left; background: none; box-shadow: none; border-radius: 18px; padding: 6px 12px; min-height: 50px; }
.dico { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; background: var(--field); flex: none; letter-spacing: -.3px; }
.dtext { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dname { font-weight: 700; letter-spacing: -.2px; }
.dsub { font-size: .9rem; color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.dright { font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.1px; }
.drow.real .dico { background: var(--accent); color: var(--accent-text); }
.drow.real .dright { color: var(--accent-ink); }
.drow.plan .dico { background: var(--lav); color: var(--lav-ink); }
.drow.plan .dright { color: var(--lav-ink); }
.drow.pend .dico { background: var(--warn-bg); color: var(--warn); }
.drow.pend .dsub { color: var(--warn); }
.drow.off .dico, .drow.none .dico { color: var(--muted); }
.drow.off .dname, .drow.none .dname { color: var(--muted); font-weight: 600; }
.drow .quick { flex: none; margin-right: 10px; min-height: 44px; padding: 0 14px; background: var(--accent); color: var(--accent-text); box-shadow: var(--glow); font-size: .85rem; font-weight: 700; }
.foot { display: flex; justify-content: center; margin-top: 8px; }

/* Calendario: una tarjeta por semana */
.mstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: center; padding: 10px 8px; }
.ms { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ms .k { font-size: .85rem; font-weight: 700; color: var(--muted); min-height: 2.3em; display: flex; align-items: center; justify-content: center; line-height: 1.15; }
.ms b { font-size: 1.3rem; font-weight: 700; letter-spacing: -.4px; font-variant-numeric: tabular-nums; line-height: 1.15; }
.ms small { font-size: .85rem; color: var(--muted); font-weight: 600; }
.wfoot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.wfoot > div { background: var(--field); border-radius: 14px; padding: 6px 10px; display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 8px; }
.wfoot .k { grid-column: 1 / -1; font-size: .85rem; font-weight: 700; color: var(--muted); }
.wfoot b { font-size: 1.1rem; font-weight: 700; letter-spacing: -.3px; font-variant-numeric: tabular-nums; }
.wfoot small { font-size: .85rem; color: var(--muted); font-weight: 600; }
.wcard { display: block; width: 100%; text-align: left; background: var(--card); border-radius: 20px; box-shadow: var(--soft); padding: 12px 14px; margin: 8px 0; font-weight: 400; }
.wcard.cur { box-shadow: 0 0 0 2px var(--accent-strong), var(--soft); }
.wh { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.wh .wt { font-weight: 700; font-size: 1rem; letter-spacing: -.1px; }
.wh .wt small { color: var(--muted); font-weight: 600; font-size: .85rem; margin-left: 6px; letter-spacing: 0; }
.wh .wtot { font-weight: 700; font-size: 1.15rem; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.wh .wtot small { color: var(--muted); font-weight: 700; font-size: .85rem; letter-spacing: 0; }
.wdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 8px; }
.wd { display: flex; flex-direction: column; align-items: center; gap: 3px; font-variant-numeric: tabular-nums; }
.wd small { font-size: .82rem; font-weight: 700; color: var(--muted); }
/* Cada día es una pastilla baja con sus horas dentro; el relleno (de izquierda a derecha) indica cuánto se trabajó (10 h = lleno). */
.wd .cell { position: relative; width: 100%; height: 30px; border-radius: 10px; background: var(--field); overflow: hidden; display: grid; place-items: center; }
.wd .cell i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; }
.wd.real .cell i { background: color-mix(in srgb, var(--accent-strong) 55%, transparent); }
.wd.planned .cell i { background: var(--lav); }
.wd .hrs { position: relative; font-size: .85rem; font-weight: 700; }
.wd.off .hrs, .wd.none .hrs { color: var(--muted); font-weight: 500; }
.wd.planned .hrs { color: var(--lav-ink); }
.wpay { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pchip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 9999px; background: var(--pos-bg); color: var(--pos); font-size: .82rem; font-weight: 700; }
.empty { color: var(--muted); text-align: center; padding: 18px 0; }

/* Horas extras */
.balance { padding: 14px 16px; text-align: center; background: linear-gradient(135deg, rgba(244, 163, 192, .5), rgba(220, 205, 246, .55)); }
.balance .lbl { color: var(--muted); font-weight: 600; }
.balance .big { font-size: 2.5rem; margin: 2px 0; }
.balance .money { font-weight: 700; color: var(--accent-ink); font-size: 1rem; }
.balance.neg { background: var(--neg-bg); }
.pfchips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.pfchips button { min-height: 44px; padding: 4px 12px; font-size: .9rem; box-shadow: none; background: var(--field); }
.pfchips button[aria-pressed="true"] { background: var(--accent); color: var(--accent-text); font-weight: 700; }
.pcap { text-align: center; color: var(--muted); font-size: .88rem; font-weight: 600; margin: 12px 0 0; }
.filters { display: grid; grid-template-columns: .85fr 1.1fr 1.1fr; gap: 8px; margin-bottom: 4px; }
.filters label.field { margin: 0; font-size: .85rem; font-weight: 700; min-width: 0; }
.filters select { font-size: 1rem; font-weight: 500; padding: 8px 6px; min-height: 44px; }
.ptotal { text-align: center; background: var(--field); border-radius: 16px; padding: 10px; margin: 12px 0 4px; display: flex; flex-direction: column; gap: 2px; }
.ptotal .k { font-size: .85rem; font-weight: 700; color: var(--muted); }
.ptotal b { font-size: 1.5rem; font-weight: 700; letter-spacing: -.6px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.ptotal small { font-size: .88rem; color: var(--muted); font-weight: 600; }
/* Cobrado cada mes: cabecera de año y una tarjeta por mes con una barra proporcional a sus horas */
.yr { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; padding: 0 14px; } /* mismo margen que las tarjetas de los meses, para que las cifras queden alineadas */
.yr:first-of-type { margin-top: 10px; }
.yr > b { font-size: 1.15rem; font-weight: 700; letter-spacing: -.3px; }
.ytot { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.ytot b { font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.ytot small { color: var(--muted); font-size: .9rem; font-weight: 600; }
.mlist { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mrow { background: var(--field); border-radius: 16px; padding: 10px 14px; }
.mtop { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.mn { font-weight: 700; font-size: 1rem; }
.mc { font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.mline { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.mbar { flex: 1; height: 8px; border-radius: 9999px; background: color-mix(in srgb, var(--text) 9%, transparent); overflow: hidden; }
.mbar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-strong)); }
.mh { color: var(--muted); font-size: .92rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plist { list-style: none; margin: 0; padding: 0; }
.plist li { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.plist .grow { flex: 1; min-width: 0; }
.plist .amt { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; line-height: 1.2; }
.plist .amt small { font-size: .88rem; display: block; color: var(--muted); font-weight: 600; }

/* Configuración */
.profile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 0 2px; }
.profile .nm { font-weight: 700; font-size: 1.15rem; letter-spacing: -.3px; }
.profile .row2 { display: flex; gap: 8px; }
.profile .row2 button { min-height: 44px; font-size: .92rem; padding: 6px 16px; }
input[type="file"] { display: none; }

/* Asistente */
/* Asistente "Añadir horario": mismos componentes que el resto (cabecera, tira de días, tarjetas, filas) */
.iconbtn { width: 44px; height: 44px; min-height: 44px; padding: 0; font-size: 1.3rem; border-radius: 16px; flex: none; }
.wizcard { padding: 14px 16px; }
.wizhead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.wizday { font-size: 1.4rem; margin: 0; letter-spacing: -.3px; line-height: 1.1; }
.wizdate { color: var(--muted); font-weight: 600; }
.bigtimes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 8px 0; }
.bigtimes label { font-size: .9rem; color: var(--muted); font-weight: 500; }
.bigtimes input { min-width: 0; font-size: 1.4rem; min-height: 54px; text-align: center; margin-top: 6px; font-weight: 700; font-variant-numeric: tabular-nums; border-radius: 16px; }
.wizdur { text-align: center; color: var(--muted); font-weight: 600; margin: 10px 0 0; min-height: 1.5em; }
.wiz .actions > button { min-height: 50px; font-size: 1rem; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.list .grow { flex: 1; min-width: 0; }
.list .av { width: 40px; height: 40px; min-height: 40px; font-size: .95rem; box-shadow: none; }

/* Edición del horario (calendario) */
.grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.grid.heads { margin: 10px 0 4px; text-align: center; font-size: .85rem; color: var(--muted); font-weight: 700; }
.cc { min-height: 54px; border-radius: 14px; background: var(--field); box-shadow: none; padding: 5px 2px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; font-weight: 500; font-variant-numeric: tabular-nums; }
.cc .n { font-size: .85rem; color: var(--muted); align-self: flex-start; padding-left: 6px; line-height: 1; }
.cc .h { font-size: .8rem; font-weight: 700; line-height: 1.15; color: var(--lav-ink); text-align: center; min-height: 1em; }
.cc.plan { background: rgba(220, 205, 246, .55); }
.cc.off { background: transparent; } .cc.off .h { color: var(--muted); font-weight: 500; }
.cc.out { opacity: .4; }
.cc.today { box-shadow: 0 0 0 2px var(--accent-strong); }

/* Panel de un día */
dialog { border: 0; border-radius: 22px; background: var(--bg); color: var(--text); padding: 16px 14px; width: min(96vw, 400px); box-shadow: var(--glow); }
dialog::backdrop { background: rgba(60, 20, 40, .35); backdrop-filter: blur(4px); }
.dlgtitle { font-size: 1.2rem; margin: 0 0 2px; }
.picker { display: flex; gap: 4px; margin: 8px 0 2px; }
.picker button { flex: 1; min-height: 46px; padding: 4px 0; display: flex; flex-direction: column; align-items: center; gap: 0; font-size: .95rem; box-shadow: none; background: var(--card); line-height: 1.15; }
.picker button small { font-size: .8rem; color: var(--muted); font-weight: 700; }
.picker button[aria-pressed="true"] { background: var(--accent); color: var(--accent-text); }
.picker button[aria-pressed="true"] small { color: var(--accent-text); }
button.same { width: 100%; min-height: 52px; font-size: 1rem; margin: 8px 0 2px; }
button.same small { display: block; font-weight: 500; opacity: .85; font-size: .85rem; }
.actions.links { margin-top: 6px; justify-content: space-between; }
.actions.links > button { flex: 0 1 auto; }

/* Barra inferior flotante */
nav.tabs { position: fixed; left: 50%; bottom: calc(8px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 15; width: min(calc(100% - 20px), 540px); background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: 9999px; padding: 4px; box-shadow: var(--glow); }
nav.tabs .inner { display: flex; gap: 2px; }
nav.tabs button { flex: 1; min-width: 0; min-height: 50px; padding: 4px 2px; background: none; box-shadow: none; color: var(--muted); font-size: .8rem; font-weight: 600; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; position: relative; }
nav.tabs .ic { width: 20px; height: 20px; }
nav.tabs button[aria-current="page"] { background: var(--accent); color: var(--accent-text); font-weight: 700; }
nav.tabs .dot { position: absolute; top: 6px; right: calc(50% - 20px); background: var(--neg); border-radius: 50%; width: 9px; height: 9px; }

#toast { position: fixed; left: 50%; bottom: calc(78px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--text); color: var(--bg); padding: 11px 20px; border-radius: 9999px; opacity: 0; pointer-events: none; transition: .2s; max-width: 90vw; z-index: 20; font-weight: 600; box-shadow: var(--soft); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.err { background: var(--neg); color: #fff; }
@media (prefers-reduced-motion: reduce) { #toast, button { transition: none; } }


/* Móviles muy pequeños (320 px): campos de hora y títulos algo menores para que nada se salga de la pantalla */
@media (max-width: 340px) {
  .bigtimes { gap: 8px; }
  .bigtimes input { font-size: 1.3rem; padding: 10px 6px; }
  .bigdate { font-size: 1.7rem; }
  .bigdate.sm { font-size: 1.3rem; }
}
