/* TrialReels — Noir: negro, gris carbón y cristal líquido en los controles. Un solo tema (oscuro). */
:root {
  --bg: #000000; --surface: #0c0c0d; --sunk: #141416; --ink: #f5f5f7; --ink-2: #c7c7cc;
  --muted: #8e8e93; --line: rgba(255, 255, 255, .08); --line-strong: rgba(255, 255, 255, .16);
  --accent: #f5f5f7; --accent-ink: #000000; --accent-soft: rgba(255, 255, 255, .1);
  --ok: #30d158; --ok-soft: rgba(48, 209, 88, .14); --warn: #ffd60a; --warn-soft: rgba(255, 214, 10, .12); --err: #ff453a; --err-soft: rgba(255, 69, 58, .14);
  --serif: "Geist", -apple-system, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --sans: "Geist", -apple-system, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", "Cascadia Mono", monospace;
  --radius: 22px; --shadow: none;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 15px/1.5 var(--sans); -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; }
h2 { font-size: 1.05rem; letter-spacing: -.01em; }
.display { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -.02em; line-height: 1.1; }
.num { font-family: var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: .84rem; }
.tiny { font-size: .75rem; }
.hidden { display: none !important; }
.grow { flex: 1; min-width: 0; }
.eyebrow { font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-weight: 600; }

/* ---- cabecera ---- */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 1rem;
  padding: .7rem 20px; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; font-weight: 700; letter-spacing: -.01em; }
.top-nav { display: flex; gap: .25rem; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.top-nav a { text-decoration: none; padding: .35rem .7rem; border-radius: 99px; color: var(--muted); white-space: nowrap; font-size: .9rem; }
.top-nav a.active { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.logout { display: flex; align-items: center; gap: .6rem; margin: 0 0 0 auto; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 28px 20px 80px; }

/* ---- piezas ---- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card + .card, .section + .section { margin-top: 16px; }
.section { margin-top: 28px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 10px; }
.row { display: flex; gap: .6rem; align-items: center; }
.wrap-row { flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: .9rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

label { display: flex; flex-direction: column; gap: .35rem; font-size: .86rem; color: var(--muted); }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 10px; padding: .6rem .7rem; width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
textarea { resize: vertical; }
code { font-size: .85em; background: var(--sunk); padding: .1rem .35rem; border-radius: 5px; word-break: break-all; }

.btn { font: inherit; font-weight: 600; font-size: .9rem; border: 1px solid transparent; border-radius: 10px; padding: .55rem .95rem;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; white-space: nowrap;
  text-decoration: none; transition: background .15s, border-color .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--ink); color: var(--bg); }
.btn.primary:hover { background: color-mix(in srgb, var(--ink) 85%, var(--accent)); }
.btn.accent { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.link { background: none; border: 0; padding: 0; color: var(--muted); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.btn.small { padding: .32rem .65rem; font-size: .82rem; border-radius: 8px; }
.btn:disabled { opacity: .45; cursor: default; }

.pill { display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; font-weight: 600; padding: .18rem .55rem;
  border-radius: 99px; background: var(--sunk); color: var(--muted); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.err { background: var(--err-soft); color: var(--err); }
.pill.accent { background: var(--accent-soft); color: var(--accent); }
.pill.plain::before { display: none; }

.alert { background: var(--err-soft); color: var(--err); padding: .6rem .8rem; border-radius: 10px; margin: .6rem 0 0; font-size: .9rem; }
.note { background: var(--warn-soft); color: var(--warn); padding: .6rem .8rem; border-radius: 10px; font-size: .88rem; }
.empty { padding: 26px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); }

/* interruptor */
.switch { position: relative; display: inline-flex; align-items: center; gap: .6rem; flex-direction: row; color: var(--ink); cursor: pointer; font-size: .92rem; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 42px; height: 24px; border-radius: 99px; background: var(--line-strong); position: relative; transition: background .2s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch input:checked + .track { background: var(--ok); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }

/* contador +/- */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; }
.stepper button { font: inherit; width: 38px; height: 38px; border: 0; background: var(--surface); color: var(--ink); cursor: pointer; font-size: 1.1rem; }
.stepper button:hover { background: var(--sunk); }
.stepper output { min-width: 44px; text-align: center; font: 600 1.15rem/1 var(--serif); }

.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--sunk); flex: none;
  display: grid; place-items: center; font: 600 1rem/1 var(--serif); color: var(--muted); }
.avatar.lg { width: 64px; height: 64px; font-size: 1.4rem; }

/* ---- portada: cuentas ---- */
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 22px; }
.meter { min-width: 220px; }
.meter .bar { height: 6px; border-radius: 99px; background: var(--sunk); overflow: hidden; margin-top: .35rem; }
.meter .bar > i { display: block; height: 100%; background: var(--ink); border-radius: 99px; }
.meter.full .bar > i { background: var(--accent); }
.accounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.acc-card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; transition: border-color .15s, transform .15s; }
.acc-card:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.acc-card .who { display: flex; gap: .75rem; align-items: center; }
.acc-card .handle { font-weight: 700; font-size: 1.02rem; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); padding-top: 12px; }
.stats > div { display: flex; flex-direction: column; gap: .1rem; }
.stats > div + div { border-left: 1px solid var(--line); padding-left: 12px; }
.stats .num { font-size: 1.35rem; line-height: 1.1; }
.add-card { display: flex; flex-direction: column; justify-content: center; gap: .7rem; border-style: dashed; box-shadow: none; background: transparent; }

/* ---- ficha de cuenta ---- */
.acc-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.acc-head .title { flex: 1; min-width: 200px; }
.pilot { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.tabs a { text-decoration: none; padding: .6rem .9rem; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; font-weight: 500; }
.tabs a.active { color: var(--ink); border-bottom-color: var(--accent); }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.kpi .num { font-size: 1.7rem; line-height: 1.1; display: block; margin-top: .2rem; }

/* plan: próximas subidas */
.day { margin-top: 18px; }
.day:first-child { margin-top: 0; }
.day-title { font: 500 1.05rem/1.2 var(--serif); margin-bottom: 8px; }
.slot { display: grid; grid-template-columns: 64px 54px 1fr auto; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.slot:first-of-type { border-top: 0; }
.slot .time { font: 600 1.1rem/1 var(--serif); }
.slot .thumb, .thumb { width: 54px; height: 96px; border-radius: 8px; object-fit: cover; background: var(--sunk); display: block; }
.slot .what { min-width: 0; display: flex; flex-direction: column; gap: .25rem; }
.slot .actions { display: flex; flex-direction: column; gap: .35rem; align-items: flex-end; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.expect { font-size: .84rem; color: var(--muted); }
.expect b { color: var(--ink); font-family: var(--serif); font-size: 1rem; }

/* brazos del bandido */
.arms { list-style: none; margin: 0; padding: 0; }
.arms li { display: grid; grid-template-columns: 44px 1fr 120px 90px; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.arms li:first-child { border-top: 0; }
.arms .thumb { width: 44px; height: 78px; }
.prob { display: flex; flex-direction: column; gap: .3rem; }
.prob .bar { height: 6px; border-radius: 99px; background: var(--sunk); overflow: hidden; }
.prob .bar > i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.arms .num { font-size: 1.1rem; text-align: right; }

/* listas de reels */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.list > li:first-child { border-top: 0; }
.list .info { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: .3rem; }
.list .views { text-align: right; }
.list .views .num { font-size: 1.25rem; display: block; }
.list li.dim { opacity: .55; }
.variants { flex-basis: 100%; list-style: none; margin: 4px 0 0; padding: 14px; background: var(--sunk); border-radius: 12px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.variants li { display: flex; flex-direction: column; gap: .4rem; }
.variants video, .ph { width: 100%; aspect-ratio: 9 / 16; background: #000; border-radius: 10px; object-fit: cover; }
.variants .ph { background: var(--line); }
.variants .tools { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: .5rem; }

/* resultados */
.seg { display: inline-flex; background: var(--sunk); border-radius: 10px; padding: 3px; }
.seg button { font: inherit; font-size: .85rem; border: 0; background: none; padding: .35rem .75rem; border-radius: 8px; cursor: pointer; color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); font-weight: 600; }
.chart { display: flex; align-items: flex-end; gap: 6px; height: 180px; padding-top: 10px; overflow-x: auto; }
.chart .col { flex: 1 0 22px; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; height: 100%; position: relative; }
.chart .lbl { font-size: .68rem; color: var(--muted); text-align: center; margin-top: 4px; }
.legend { display: flex; gap: 1rem; font-size: .8rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; }

/* ajustes */
.setting { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 14px 0; border-top: 1px solid var(--line); }
.setting:first-child { border-top: 0; padding-top: 0; }
.setting .txt { flex: 1; min-width: 200px; }
.setting .txt b { display: block; font-weight: 600; }
.times { display: flex; gap: .6rem; align-items: center; }
.times input { width: 120px; }

.log { list-style: none; margin: 0; padding: 0; font-size: .86rem; }
.log li { display: flex; gap: .8rem; padding: 7px 0; border-top: 1px solid var(--line); }
.log li:first-child { border-top: 0; }
.log .when { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.log li.error .msg { color: var(--err); }
.log li.warning .msg { color: var(--warn); }

.login { max-width: 380px; margin: 9vh auto 0; }
.login form { margin-top: 1.4rem; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg);
  padding: .65rem 1rem; border-radius: 10px; font-size: .9rem; z-index: 50; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); }

@media (max-width: 760px) {
  .wrap { padding: 20px 16px 60px; }
  .top { padding: .6rem 16px; gap: .6rem; }
  .logout .muted { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slot { grid-template-columns: 52px 46px 1fr; }
  .slot .actions { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; }
  .slot .thumb { width: 46px; height: 82px; }
  .arms li { grid-template-columns: 40px 1fr 80px; }
  .arms li .exp { display: none; }
  .accounts { grid-template-columns: 1fr; }
}
.grid-2 > *, .grid-3 > *, .accounts > *, .kpis > * { margin-top: 0 !important; }
.mt { margin-top: 10px; }
.setting { flex-wrap: wrap; }
.setting .txt { min-width: 0; flex: 1 1 220px; }
.grid-2 > *, .grid-3 > * { min-width: 0; }
.seg.mt { display: flex; width: fit-content; }

/* ---- colores por modelo (orden fijo, validados para daltonismo) ---- */
:root { --s0: #3987e5; --s1: #d95926; --s2: #199e70; --s3: #c98500; --s4: #d55181; --s5: #008300; --s6: #9085e9; --s7: #e66767; --s-other: #6f685f; }
.s0 { --c: var(--s0); } .s1 { --c: var(--s1); } .s2 { --c: var(--s2); } .s3 { --c: var(--s3); }
.s4 { --c: var(--s4); } .s5 { --c: var(--s5); } .s6 { --c: var(--s6); } .s7 { --c: var(--s7); } .s-other { --c: var(--s-other); }
.sw { display: inline-block; width: 9px; height: 9px; border-radius: 3px; background: var(--c); margin-right: .45rem; vertical-align: .08em; flex: none; }
h1 .sw { width: 12px; height: 12px; border-radius: 4px; vertical-align: .2em; }

/* ---- portada ---- */
.hero-side { align-items: flex-end; gap: 1rem; }
.toolbar { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.search { max-width: 320px; }
.sort { width: auto; }
.seg { flex-wrap: wrap; }
.seg .count { margin-left: .4rem; font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.summary { display: flex; flex-wrap: wrap; align-items: center; gap: 0; margin-bottom: 16px; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--sunk); }
.summary > div { display: flex; flex-direction: column; padding: 0 18px; }
.summary > div:first-child { padding-left: 0; }
.summary > div + div { border-left: 1px solid var(--line-strong); }
.summary .num { font-size: 1.3rem; line-height: 1.1; }
.summary .btn { margin-left: auto; }
.handle { display: flex; align-items: center; }
.day-mix { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .9rem; font-size: .86rem; }
.mix b { font-family: var(--serif); font-size: 1.1rem; }
.mix.zero { color: var(--muted); }

dialog.dialog { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink);
  width: min(520px, calc(100vw - 32px)); padding: 22px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .45); }
dialog.dialog::backdrop { background: rgba(20, 18, 15, .45); }
.small-display { font-size: 1.6rem; }
.steps-mini { margin: 0; padding-left: 1.2rem; font-size: .86rem; color: var(--muted); display: flex; flex-direction: column; gap: .3rem; }
.steps-mini b { color: var(--ink); font-weight: 600; }

/* ---- estadísticas ---- */
.picker { margin-bottom: 18px; }
.picker-quick { margin-bottom: 8px; gap: .9rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: inherit; font-size: .86rem; display: inline-flex; align-items: center; padding: .38rem .75rem; border-radius: 99px; cursor: pointer;
  border: 1px solid var(--line-strong); background: transparent; color: var(--muted); }
.chip .sw { opacity: .35; }
.chip.on { background: var(--surface); color: var(--ink); border-color: var(--ink); font-weight: 600; }
.chip.on .sw { opacity: 1; }
.loading { opacity: .55; transition: opacity .2s; }
.chart-wrap { position: relative; padding-left: 44px; }
.grid-lines { position: absolute; inset: 10px 0 22px 0; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.gl { border-top: 1px solid var(--line); position: relative; height: 0; }
.gl span { position: absolute; left: 0; top: -.55rem; font-size: .68rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.chart.stacked { position: relative; height: 220px; gap: 6px; }
.chart.stacked .col { flex: 1 0 18px; max-width: 56px; cursor: default; }
.chart.stacked .col:hover .stack-bar { filter: brightness(1.08); }
.stack-bar { flex: 1; display: flex; flex-direction: column-reverse; justify-content: flex-start; gap: 2px; min-height: 0; }
.seg-bar { background: var(--c); min-height: 2px; flex: none; }
.stack-bar .seg-bar:last-child { border-radius: 4px 4px 0 0; }
.tip { position: absolute; top: 0; transform: translateX(-50%); z-index: 5; min-width: 170px; padding: 8px 10px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line-strong); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .35); font-size: .82rem;
  display: flex; flex-direction: column; gap: 3px; pointer-events: none; }
.tip-total { border-top: 1px solid var(--line); padding-top: 3px; margin-top: 2px; }
.legend.wrap-row { flex-wrap: wrap; margin-top: 12px; }
.legend .sw { width: 10px; height: 10px; }
.table-wrap { overflow-x: auto; margin: 0 -4px; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { padding: 10px 8px; border-top: 1px solid var(--line); text-align: left; white-space: nowrap; }
.table thead th { border-top: 0; }
.table .r { text-align: right; }
.table td.num, .table td .num { font-size: 1.05rem; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: var(--sunk); }
.table tfoot td { font-weight: 600; border-top: 1px solid var(--line-strong); }
.table .avatar { width: 32px; height: 32px; font-size: .8rem; }
.table td:first-child { min-width: 180px; }
.table .b { font-weight: 600; display: flex; align-items: center; }
.th { font: inherit; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600;
  background: none; border: 0; padding: 0; cursor: pointer; }
.th.on { color: var(--ink); }
.share { height: 3px; background: var(--sunk); border-radius: 99px; margin-top: 4px; min-width: 70px; }
.share > i { display: block; height: 100%; background: var(--ink); border-radius: 99px; opacity: .6; }
.rank { width: 1.6rem; text-align: center; color: var(--muted); font-size: 1.1rem; }
.who-tag { display: inline-flex; align-items: center; font-weight: 600; }

/* ---- ficha ---- */
.crumbs { justify-content: space-between; margin-bottom: 12px; }
.crumbs a { text-decoration: none; }
.switcher { width: auto; max-width: 220px; padding: .35rem .6rem; font-size: .86rem; }
.acc-head h1 { display: flex; align-items: center; }

/* ---- ajustes ---- */
.settings { max-width: 820px; display: flex; flex-direction: column; gap: 16px; }
.settings > .card + .card { margin-top: 0; }
.set-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 8px; }
.set-head p { margin: .2rem 0 0; }
.set-n { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--bg);
  font: 600 .85rem/1 var(--serif); margin-top: -2px; }
.set-card .setting:first-of-type { border-top: 0; }
.pick .hint { margin: .45rem 0 0; min-height: 1em; }
.day-card { background: var(--sunk); box-shadow: none; display: flex; flex-direction: column; gap: 14px; }
.day-card p { margin: 0; }
.day-boxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.day-box { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: .1rem; }
.day-box .num { font-size: 2rem; line-height: 1; }
.day-box.zero .num { color: var(--muted); }
.setup { border-color: var(--ink); }
.checklist { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.checklist li { display: flex; gap: .55rem; align-items: flex-start; }
.checklist li > div { display: flex; flex-direction: column; font-size: .86rem; }
.checklist .tick { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-strong);
  font: 600 .78rem/1 var(--serif); color: var(--muted); }
.checklist li.done .tick { background: var(--ok); border-color: var(--ok); color: var(--surface); }
.checklist li.done b { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); font-weight: 500; }

@media (max-width: 760px) {
  .summary > div { padding: 0 12px; }
  .summary .btn { margin: 10px 0 0; width: 100%; }
  .day-boxes { grid-template-columns: 1fr; }
  .day-box { flex-direction: row; align-items: baseline; gap: .6rem; }
  .checklist { grid-template-columns: 1fr; }
  .search { max-width: none; flex: 1; }
  .hero-side { width: 100%; justify-content: space-between; }
}
.acc-head h1 { overflow-wrap: anywhere; }

/* ---- equipo, roles y permisos ---- */
.me-btn { color: var(--ink); max-width: 160px; overflow: hidden; text-overflow: ellipsis; display: inline-block; }
fieldset.plain { border: 0; margin: 0; padding: 0; min-width: 0; }
.stack-16 { display: flex; flex-direction: column; gap: 16px; }
fieldset.plain:disabled .card { opacity: .7; }
dialog.dialog.wide { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 40px); }
.role-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.role-opt { font: inherit; text-align: left; display: flex; flex-direction: column; gap: .2rem; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; }
.role-opt:hover { border-color: var(--ink); }
.role-opt.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--surface); }
.perm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; }
label.check { flex-direction: row; align-items: flex-start; gap: .6rem; color: var(--ink); padding: 6px 0; cursor: pointer; }
label.check input { width: auto; margin-top: .25rem; accent-color: var(--ink); flex: none; }
label.check > span { display: flex; flex-direction: column; font-size: .88rem; }
label.check:has(input:disabled) { cursor: default; }
.matrix .c { text-align: center; }
.matrix td.yes { color: var(--ok); font-weight: 700; }
.matrix td.no { color: var(--line-strong); }
.matrix td { white-space: normal; }
.matrix td:first-child { min-width: 220px; }
.access-ed .eyebrow.mt { margin-top: 6px; }
.access-ed p { margin: .2rem 0 0; }

.register { max-width: 440px; }
/* registro: lo escrito y las pistas (user, ********), en el centro */
.register input { text-align: center; }
.register input::placeholder { color: rgba(255, 255, 255, .28); }
.register input[type=password]::placeholder { letter-spacing: .25em; }
.invite-info { margin: 1.2rem 0; display: flex; flex-direction: column; gap: .6rem; }
/* invitación: las apps con su icono arriba (_app_icon.html) y debajo el rol, el grupo y las cuentas */
.invite-apps { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 6px; padding: 4px 0 2px; }
.invite-app { width: 74px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: .78rem; color: var(--ink-2); text-align: center; }
.invite-app-ic { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; color: var(--ink);
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.invite-app-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.invite-rows { display: flex; flex-direction: column; gap: .6rem; padding-top: .85rem; border-top: 1px solid rgba(255, 255, 255, .06); }
.invite-none { margin: 0; text-align: center; }
.register .alert[hidden], .reg-bio[hidden] { display: none; }
/* mostrar la contraseña: el ojo dentro del campo, a la derecha (register.js); el texto sigue centrado */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-left: 46px; padding-right: 46px; }
.pw-eye { position: absolute; top: 50%; right: 6px; width: 36px; height: 36px; margin-top: -18px; padding: 0; border: 0; border-radius: 999px;
  display: grid; place-items: center; cursor: pointer; color: var(--muted); background: none; transition: color .2s, background .2s, transform .2s cubic-bezier(.3, 1.6, .5, 1); }
.pw-eye:hover { color: var(--ink); background: rgba(255, 255, 255, .08); }
.pw-eye:active { transform: scale(.92); }
.pw-eye:focus-visible { outline: 2px solid rgba(255, 255, 255, .7); outline-offset: 2px; }
.pw-eye svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pw-eye[aria-pressed="true"] .eye-slash { display: none; }
.pw-eye[aria-pressed="true"] { color: var(--ink); }
.reg-bio { margin: .2rem 0 .3rem; line-height: 1.35; }
.reg-bio .muted { display: block; }
.perm-list { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: .15rem; }

@media (max-width: 760px) {
  .perm-grid { grid-template-columns: 1fr; }
  .me-btn { max-width: 90px; }
}

/* interruptor bloqueado: que se note */
.switch:has(input:disabled) { cursor: not-allowed; opacity: .45; }

/* series de un solo color (Resultados) y piezas sueltas */
.s-accent { --c: var(--accent); } .s-ink { --c: var(--ink); }
select.tz { width: auto; max-width: 220px; }
.mt-s { margin-top: 6px; align-self: flex-start; }

/* sistema */
.stack-s { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 10px; }
.note code { background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--ink); display: block; padding: .45rem .6rem; }
details summary { cursor: pointer; color: var(--muted); }
.steps-mini code { display: inline-block; margin-top: .2rem; }

/* móvil: el menú en su propia fila, para que se vean todos los apartados */
@media (max-width: 760px) {
  .top { flex-wrap: wrap; row-gap: .4rem; }
  .top-nav { order: 3; flex-basis: 100%; }
}

/* =====================================================================================================
   NOIR — negro con un haz de luz gris muy tenue; contenido sobre superficies opacas y CRISTAL LÍQUIDO
   solo en los controles (menú, pestañas, selectores, botones secundarios, diálogos). La lente de los
   selectores la pone liquid.js.
   ===================================================================================================== */
html, body { background: #000; }
body { font-family: var(--sans); letter-spacing: -.005em; }
::selection { background: rgba(255, 255, 255, .22); }
* { scrollbar-color: rgba(255, 255, 255, .18) transparent; }
h1, h2, h3, .display { font-family: var(--sans); text-wrap: balance; }
.display { font-weight: 600; letter-spacing: -.04em; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.02; }
.small-display { font-size: 1.6rem; letter-spacing: -.03em; }
h2 { font-size: 1.08rem; letter-spacing: -.02em; }
.num, .stepper output, .slot .time, .mix b, .expect b, .day-box .num, .set-n, .checklist .tick, .avatar {
  font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.day-title { font-family: var(--sans); font-weight: 600; letter-spacing: -.02em; }
.eyebrow { letter-spacing: .1em; }
.lq-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* fondo: haz de luz diagonal */
.bg-beam { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: #000; contain: strict; }
.bg-beam i { position: absolute; border-radius: 50%; }
.bg-beam i:nth-child(1) { width: 62vmax; height: 150vmax; left: 50%; top: -55vmax; transform: translateX(-38%) rotate(-14deg);
  background: radial-gradient(closest-side, #262628 0%, #1b1b1c 38%, #0e0e0f 68%, rgba(0, 0, 0, 0) 100%); }
.bg-beam i:nth-child(2) { width: 34vmax; height: 90vmax; left: 50%; top: -30vmax; transform: translateX(-30%) rotate(-14deg);
  background: radial-gradient(closest-side, rgba(52, 52, 55, .55), rgba(0, 0, 0, 0)); }
.bg-beam i:nth-child(3) { width: 90vmax; height: 60vmax; left: 50%; bottom: -38vmax; transform: translateX(-55%);
  background: radial-gradient(closest-side, #0d0d0e, rgba(0, 0, 0, 0)); }
.wrap { position: relative; z-index: 1; }
.top { z-index: 20; }

/* ---------- material de cristal ---------- */
/* Rendimiento: el difuminado (backdrop-filter) solo en lo que flota sobre otro contenido (menú, cabecera);
   lo que va sobre fondo sólido lleva el mismo aspecto sin él, que en móvil cuesta mucho al hacer scroll. */
.top-nav, .me-btn, .logout .btn.ghost {
  -webkit-backdrop-filter: blur(16px) saturate(170%) brightness(1.08);
  backdrop-filter: blur(16px) var(--lq-glass, ) saturate(170%) brightness(1.08); }
.top-nav, .seg, .tabs, .btn.ghost, .stepper, .pilot, .chip, .me-btn, .logout .btn.ghost {
  background: rgba(255, 255, 255, .055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), inset 0 -1px 0 rgba(255, 255, 255, .05), inset 0 0 0 .5px rgba(255, 255, 255, .15), 0 10px 28px rgba(0, 0, 0, .4);
  border: 0; }

/* la lente que se desliza (la crea liquid.js) */
.lq { position: relative; isolation: isolate; }
.lq > .lens { position: absolute; z-index: 1; border-radius: 999px; pointer-events: none; will-change: left, width, transform;
  background: rgba(255, 255, 255, .11);
  -webkit-backdrop-filter: brightness(1.25) saturate(1.3); backdrop-filter: var(--lq-lens, ) brightness(1.25) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -1px 1px rgba(255, 255, 255, .12), inset 0 0 0 .5px rgba(255, 255, 255, .34),
    inset 0 0 12px rgba(255, 255, 255, .05), 0 4px 16px rgba(0, 0, 0, .35);
  transform-origin: center; transition: background .3s, opacity .2s; }   /* su forma y su sitio los mueve liquid.js con física */
.lq.lq-drag > .lens { background: rgba(255, 255, 255, .17); }
.lq.lq-fit { touch-action: pan-y; }
.lq.lq-drag { cursor: grabbing; }
.lq > button, .lq > a { position: relative; z-index: 2; }
.lq > .lq-top { z-index: 3; }

/* ---------- cabecera y menú ---------- */
.top { position: sticky; top: calc(10px + env(safe-area-inset-top, 0px)); background: none; border: 0; backdrop-filter: none;
  max-width: 1120px; margin: 10px auto 0; padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); gap: 12px; }
.brand { gap: 10px; font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.top-nav { flex: 0 1 auto; margin: 0 auto; padding: 4px; gap: 2px; border-radius: 999px; overflow-x: auto; }
.top-nav a { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; font-size: .92rem; font-weight: 500;
  color: var(--muted); background: none; box-shadow: none; transition: color .3s; }
.top-nav a svg { width: 19px; height: 19px; flex: none; }
.top-nav a.active { background: none; box-shadow: none; color: var(--ink); }
.logout { margin: 0; gap: 8px; }
.me-btn { border-radius: 999px; padding: 9px 16px !important; text-decoration: none; color: var(--ink) !important; font-weight: 500; }
.logout .btn.ghost { padding: 9px 16px; }

/* ---------- piezas ---------- */
.wrap { max-width: 1120px; padding: 34px 20px 120px; }
.card, .kpi, .summary, .day-box, .tip, .empty { border-radius: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); box-shadow: none; padding: 20px; }
.kpi { background: var(--surface); border: 1px solid var(--line); padding: 16px 18px; }
.kpi .num { font-size: 1.9rem; font-weight: 600; }
.summary { background: var(--surface); border: 1px solid var(--line); padding: 14px 18px; }
.summary > div + div, .stats > div + div { border-left-color: var(--line); }
.empty { border: 1px dashed rgba(255, 255, 255, .12); }
.acc-card:hover { border-color: rgba(255, 255, 255, .16); transform: translateY(-2px); }
.acc-card { transition: transform .35s cubic-bezier(.3, 1.4, .5, 1), border-color .25s; }
.avatar { background: linear-gradient(160deg, #48484a, #1c1c1e); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22); }

.btn { border-radius: 999px; padding: .62rem 1.1rem; font-weight: 600; transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), filter .2s, background .2s; }
.btn:active { transform: scale(.95); }
.btn.small { border-radius: 999px; padding: .4rem .85rem; }
.btn.primary, .btn.accent { background: var(--ink); color: #000; box-shadow: 0 8px 24px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn.primary:hover, .btn.accent:hover { background: #fff; filter: none; }
.btn.ghost { color: var(--ink); }
.btn.ghost:hover { background: rgba(255, 255, 255, .1); }
.btn.link { color: var(--muted); text-decoration-color: rgba(255, 255, 255, .25); }
.btn.link:hover { color: var(--ink); }

.pill { padding: .22rem .62rem; font-weight: 500; background: rgba(255, 255, 255, .07); color: var(--ink-2); }
.pill.ok { background: rgba(48, 209, 88, .14); color: #5ce07f; }
.pill.ok::before { box-shadow: 0 0 0 3px rgba(48, 209, 88, .18); }
.pill.warn { background: rgba(255, 214, 10, .12); color: #ffd60a; }
.pill.err { background: rgba(255, 69, 58, .14); color: #ff6961; }
.pill.accent { background: rgba(255, 255, 255, .1); color: var(--ink); }
@keyframes lq-ping { 70%, 100% { box-shadow: 0 0 0 6px rgba(48, 209, 88, 0); } }
.alert { border-radius: 14px; }
.note { border-radius: 14px; background: rgba(255, 214, 10, .09); color: #ffdf4d; }

input, select, textarea { background: rgba(255, 255, 255, .055); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; color: var(--ink); padding: .7rem .85rem; }
input::placeholder, textarea::placeholder { color: #6e6e73; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(255, 255, 255, .55); outline-offset: 1px; border-color: transparent; }
select { color-scheme: dark; }
code { background: rgba(255, 255, 255, .08); border-radius: 7px; }
:focus-visible { outline: 2px solid rgba(255, 255, 255, .7); outline-offset: 2px; }

/* selectores y pestañas: grupos de cristal con lente */
.seg { display: inline-flex; flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 4px; gap: 2px; border-radius: 999px; background: rgba(255, 255, 255, .055); }
.seg::-webkit-scrollbar, .tabs::-webkit-scrollbar, .top-nav::-webkit-scrollbar { display: none; }
.seg button { padding: .5rem 1rem; border-radius: 999px; color: var(--muted); font-size: .88rem; font-weight: 500; white-space: nowrap; transition: color .3s; }
.seg button.on { background: none; box-shadow: none; color: var(--ink); font-weight: 600; }
.seg .count { color: var(--muted); font-family: var(--mono); }
.tabs { display: inline-flex; max-width: 100%; gap: 2px; padding: 4px; border-radius: 999px; border-bottom: 0; margin-bottom: 24px; }
.tabs a { border: 0; margin: 0; padding: .55rem 1.1rem; border-radius: 999px; color: var(--muted); transition: color .3s; }
.tabs a.active { color: var(--ink); border: 0; }

.chip { border: 0; color: var(--muted); }
.chip.on { background: rgba(255, 255, 255, .16); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 0 0 .5px rgba(255, 255, 255, .35); border: 0; }
.role-opt { border-color: var(--line); border-radius: 16px; transition: border-color .2s, background .2s; }
.role-opt:hover { border-color: rgba(255, 255, 255, .3); }
.role-opt.on { border-color: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .06); }
label.check input { accent-color: #30d158; }

/* interruptor (estilo iOS, el de siempre) */
.switch .track { width: 51px; height: 31px; background: rgba(120, 120, 128, .32); transition: background .3s; }
.switch .track::after { top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 999px; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .35);
  transition: transform .45s cubic-bezier(.3, 1.5, .45, 1), width .3s cubic-bezier(.3, 1.5, .45, 1); }
.switch input:checked + .track { background: #30d158; }
.switch input:checked + .track::after { transform: translateX(20px); }
.switch:active .track::after { width: 33px; }
.switch:active input:checked + .track::after { transform: translateX(14px); }
.switch input:focus-visible + .track { outline: 2px solid rgba(255, 255, 255, .7); }

/* contador +/- */
.stepper { border: 0; border-radius: 999px; overflow: visible; padding: 3px; gap: 2px; }
.stepper button { width: 38px; height: 38px; border-radius: 50%; background: none; color: var(--ink); transition: background .2s, transform .2s cubic-bezier(.3, 1.6, .5, 1); }
.stepper button:hover { background: rgba(255, 255, 255, .1); }
.stepper button:active { transform: scale(.9); background: rgba(255, 255, 255, .16); }
.stepper output { font-size: 1.1rem; min-width: 36px; }

.pilot { border: 0; border-radius: 999px; padding: 8px 8px 8px 18px; }
.meter .bar, .prob .bar, .share { background: rgba(255, 255, 255, .08); }
.meter .bar > i, .share > i { background: var(--ink); }
.prob .bar > i { background: #30d158; }
.thumb, .slot .thumb { border-radius: 12px; }
.variants { background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 20px; }
.variants video, .ph { border-radius: 14px; }
.day-card { background: rgba(255, 255, 255, .03); }
.day-box { background: var(--surface); border-color: var(--line); }
.setup { border-color: rgba(255, 255, 255, .35); }
.set-n { background: rgba(255, 255, 255, .12); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.checklist li.done .tick { background: #30d158; border-color: #30d158; color: #000; }
.table tr.click:hover td { background: rgba(255, 255, 255, .04); }
.th.on { color: var(--ink); }
.matrix td.yes { color: #30d158; }
.tip { background: rgba(28, 28, 30, .72); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 0 0 .5px rgba(255, 255, 255, .14), 0 14px 34px rgba(0, 0, 0, .5); }

/* diálogos y avisos: cristal */
dialog.dialog { background: rgba(24, 24, 26, .78); -webkit-backdrop-filter: blur(28px) saturate(160%); backdrop-filter: blur(28px) saturate(160%);
  border: 0; border-radius: 30px; color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 0 0 .5px rgba(255, 255, 255, .14), 0 40px 100px rgba(0, 0, 0, .7); }
dialog.dialog::backdrop { background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
dialog.dialog[open] { animation: lq-pop .45s cubic-bezier(.25, 1.2, .4, 1); }
@keyframes lq-pop { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.toast { top: calc(74px + env(safe-area-inset-top, 0px)); bottom: auto; border-radius: 999px; padding: .7rem 1.2rem; font-weight: 500;
  background: rgba(36, 36, 38, .72); color: var(--ink); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 0 0 .5px rgba(255, 255, 255, .15), 0 14px 36px rgba(0, 0, 0, .55);
  animation: lq-toast .45s cubic-bezier(.3, 1.4, .5, 1); max-width: calc(100% - 32px); text-align: center; }
@keyframes lq-toast { from { opacity: 0; transform: translate(-50%, -12px) scale(.96); } }

/* cambio de pantalla: fundido cruzado propio (app.js · swapView); la cabecera y el menú no se mueven */
@keyframes lq-in { from { opacity: 0; transform: translateY(12px); } }

/* entrar / registrarse */
.login { padding: 30px 26px; border-radius: 30px; margin-top: 10vh; background: rgba(20, 20, 22, .72);   /* sin blur: con el nudo animado salía un cuadrado (ver .p-login en portal.css) */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 0 0 .5px rgba(255, 255, 255, .1), 0 30px 80px rgba(0, 0, 0, .6); }
.login .btn.primary { width: 100%; padding: .8rem; }
.invite-info { background: rgba(255, 255, 255, .04); }

/* ---------- móvil: el menú baja a un dock flotante ---------- */
@media (max-width: 760px) {
  .top { flex-wrap: nowrap; }
  .brand > span:last-child { display: none; }
  .top-nav { position: fixed; z-index: 30; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
    order: 0; flex-basis: auto; max-width: calc(100vw - 24px); margin: 0; }
  .top-nav { padding: 5px; gap: 0; }
  .top-nav a { flex-direction: column; justify-content: center; gap: 3px; width: 74px; padding: 8px 4px 7px; border-radius: 22px; font-size: 10.5px; font-weight: 500; letter-spacing: 0; }
  .top-nav a svg { width: 21px; height: 21px; }
  .top-nav a span { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .top-nav > .lens { border-radius: 22px; }
  .logout { margin-left: auto; }
  .logout .btn.ghost { display: none; }
  .wrap { padding: 22px 16px 120px; }
  .me-btn { max-width: 140px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01s !important; }
}

/* ---------- desplegables de cristal (sustituyen al <select> nativo; los crea liquid.js) ---------- */
select.lq-native { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; overflow: hidden; }
.lq-select { position: relative; display: inline-flex; max-width: 100%; min-width: 0; }
.lq-select-btn { font: inherit; display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-width: 0;
  padding: .62rem .8rem .62rem 1.05rem; border: 0; border-radius: 999px; color: var(--ink); font-weight: 500; cursor: pointer;
  background: rgba(255, 255, 255, .055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), inset 0 0 0 .5px rgba(255, 255, 255, .15), 0 10px 28px rgba(0, 0, 0, .4);
  transition: background .2s, transform .2s cubic-bezier(.3, 1.6, .5, 1); }
.lq-select-btn:hover { background: rgba(255, 255, 255, .09); }
.lq-select-btn:active { transform: scale(.97); }
.lq-select-btn:disabled { opacity: .45; cursor: default; }
.lq-select-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lq-select-btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); }
.lq-select-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.lq-select.sort .lq-select-btn::before { content: none; }
.lq-menu { position: fixed; z-index: 100; display: flex; flex-direction: column; gap: 2px; padding: 6px; border-radius: 20px; overflow-y: auto; overscroll-behavior: contain;
  background: rgba(30, 30, 32, .74); -webkit-backdrop-filter: blur(28px) saturate(170%); backdrop-filter: blur(28px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), inset 0 0 0 .5px rgba(255, 255, 255, .15), 0 24px 60px rgba(0, 0, 0, .65);
  opacity: 0; transform: scale(.94) translateY(-4px); transition: opacity .18s, transform .32s cubic-bezier(.3, 1.35, .5, 1); scrollbar-width: thin; }
.lq-menu.open { opacity: 1; transform: none; }
.lq-menu.closing { opacity: 0; transform: scale(.97); transition: opacity .16s, transform .16s; }
.lq-opt { font: inherit; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border: 0; border-radius: 14px; background: none;
  color: var(--ink); text-align: left; white-space: nowrap; cursor: pointer; transition: background .15s; }
.lq-opt svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.lq-opt.on svg { opacity: 1; }
.lq-opt.on { font-weight: 600; }
.lq-opt:hover, .lq-opt:focus-visible { background: rgba(255, 255, 255, .1); outline: none; }
.lq-opt:disabled { opacity: .4; cursor: default; }
select.tz + .lq-select, .lq-select.tz { max-width: 240px; }
.lq-select.switcher { max-width: 240px; }
.lq-select.switcher .lq-select-btn { padding-block: .45rem; font-size: .88rem; }

/* ficha de una modelo: al cambiar de pestaña solo cambia el contenido de abajo */
#view > .still { animation: none; }
#view > .acc-body.swap { animation: lq-swap .38s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes lq-swap { from { opacity: 0; transform: translateY(8px); } }

/* ---------- entrar (cristal) y biometría ---------- */
.login { max-width: 420px; display: flex; flex-direction: column; gap: 14px; text-align: left; }
.login > .display { font-size: clamp(1.9rem, 6vw, 2.4rem); margin-top: 4px; }
.login > p.muted { margin: -6px 0 4px; }
.login form { margin-top: 0; }
.login-submit { width: 100%; padding: .8rem; }
.pk-box { display: flex; flex-direction: column; gap: 10px; }
.pk-btn { width: 100%; padding: .9rem; font-size: 1rem; gap: 10px; }
.pk-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pk-box.busy .pk-btn svg { animation: pk-pulse 1.1s ease-in-out infinite; }
@keyframes pk-pulse { 50% { opacity: .35; transform: scale(.92); } }
.pk-msg { margin: 0; min-height: 0; color: #ff6961; }
.pk-msg:empty { display: none; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .8rem; margin: 4px 0 2px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.top:has(+ .wrap .login) .logout { display: none; }

/* «Mi cuenta»: dispositivos con biometría */
.pk-list { list-style: none; margin: 0; padding: 0; }
.pk-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.pk-list li:first-child { border-top: 0; }
.pk-list .pk-ico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: none; background: rgba(255, 255, 255, .07); }
.pk-list .pk-ico svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pk-list .grow b { display: block; font-weight: 500; }
.top:has(+ .wrap .login) .brand { visibility: hidden; }   /* en la pantalla de entrar el logo ya está en la tarjeta */

/* móvil: sin el recuadro azul al tocar; el foco solo se marca con teclado */
* { -webkit-tap-highlight-color: transparent; }
:focus:not(:focus-visible) { outline: none; }

/* ---------- bola que gira (la misma que la Bóveda) ---------- */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; color: var(--ink); }
.svg-defs stop { stop-color: currentColor; }
.orb { display: block; flex: none; overflow: visible; color: var(--ink); }
.orb ellipse { fill: none; stroke: url(#orbShade); vector-effect: non-scaling-stroke; }
.orb .orb-outer { fill: none; stroke: currentColor; }
.orb-ring { transform-box: view-box; transform-origin: 50px 50px; }
.orb .r1 { animation: orbA 7s cubic-bezier(.45, .05, .55, .95) infinite; }
.orb .r2 { animation: orbB 9s cubic-bezier(.45, .05, .55, .95) infinite; }
@keyframes orbA {
  0% { transform: rotate(-35deg) scaleY(1); }
  25% { transform: rotate(10deg) scaleY(.12); }
  50% { transform: rotate(55deg) scaleY(1); }
  75% { transform: rotate(100deg) scaleY(.12); }
  100% { transform: rotate(145deg) scaleY(1); }
}
@keyframes orbB {
  0% { transform: rotate(62deg) scaleY(.55); }
  33% { transform: rotate(-20deg) scaleY(1.6); }
  66% { transform: rotate(-95deg) scaleY(.08); }
  100% { transform: rotate(-118deg) scaleY(.55); }
}
@media (prefers-reduced-motion: reduce) { .orb .r1, .orb .r2 { animation: none; } }
.orb-top { width: 34px; height: 34px; }
.orb-top ellipse { stroke-width: 2.4px; }
.orb-top .orb-outer { stroke-width: 8; }
.orb-login { width: 64px; height: 64px; }
.orb-login ellipse { stroke-width: 4px; }
.orb-login .orb-outer { stroke-width: 7; }
.view-wait { display: grid; place-items: center; min-height: 55vh; opacity: 0; animation: lq-fadein .4s .3s forwards; }
@keyframes lq-fadein { to { opacity: 1; } }
.orb-wait { width: 56px; height: 56px; }
.orb-wait ellipse, .orb-empty ellipse { stroke-width: 3.5px; }
.orb-wait .orb-outer, .orb-empty .orb-outer { stroke-width: 7; }
.empty-orb { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 34px 26px; }
.orb-empty { width: 52px; height: 52px; }

/* enlaces a los reels de Instagram (textos de las listas): sin subrayado; solo al pasar por encima */
.info a:not(.btn), .list a.ellipsis { text-decoration: none; }
.info a:not(.btn):hover, .list a.ellipsis:hover { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }

/* Bola de Halo de cristal (25/10/2026): vídeo hecho con IA, en AVIF animado (static/brand/halo.*; se hace con prototipos/halo-ia/make_halo.py)
   con transparencia. Sustituye a los anillos SVG en Halo y en las esperas (el SVG sigue dentro, oculto). */
.orb {
  background: url(brand/halo.png?v=2) center / contain no-repeat;
  background-image: image-set(url(brand/halo.avif?v=2) type("image/avif"), url(brand/halo.png?v=2) type("image/png"));
  overflow: hidden;
}
.orb > * { display: none; }
.orb .orb-ring { animation: none; }   /* los anillos ocultos no se animan: si no, la página se recalcula en cada fotograma */
@media (prefers-reduced-motion: reduce) { .orb { background-image: url(brand/halo.png?v=2); } }


/* ---------- ajustes: una caja por tipo de reel (de prueba / normales) ---------- */
.type-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 6px 0 4px; }
.type-card { background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .06); border-radius: 20px; padding: 16px 18px 6px; display: flex; flex-direction: column; }
.type-card > .row { align-items: flex-start; gap: 10px; margin-bottom: 4px; }
.type-card > .row b { font-weight: 600; font-size: 1.02rem; }
.type-card .setting { padding: 12px 0; }
.type-card .setting:nth-child(2) { border-top: 0; }
.type-card .setting .txt { min-width: 0; flex: 1 1 140px; }
.type-card > p { margin: 4px 0 10px; }
.type-card .times input { width: 104px; }
.day-box .num { white-space: nowrap; }
@media (max-width: 760px) { .type-grid { grid-template-columns: 1fr; } }
.type-grid.one { grid-template-columns: minmax(0, 1fr); }      /* un solo tipo (modo «solo nuevos» o «solo prueba», otras redes) */
/* Modos del piloto (Ajustes → 1): tres tarjetas como las de los roles, con icono de línea */
.mode-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 4px 0 2px; }
.mode-opt { font: inherit; color: inherit; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: .3rem;
  padding: 14px 14px 13px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
  transition: border-color .2s, background .2s, transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.mode-opt:hover { border-color: var(--line-strong); }
.mode-opt:active { transform: scale(.97); }
.mode-opt.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--sunk); }
.mode-opt:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.mode-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--line); margin-bottom: .25rem; }
.mode-ic svg { width: 21px; height: 21px; }
.mode-opt.on .mode-ic { background: var(--ink); color: var(--bg); }
/* Planes (#/planes): como las tarjetas de planes de Studio (.sd-plan): opacas, número en Mono, precio grande, checks verdes */
.plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.plan-card { display: flex; flex-direction: column; gap: .55rem; padding: 18px; border-radius: 24px; background: var(--surface);
  border: 1px solid var(--line); }
.plan-card.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.plan-n { font-family: var(--mono, "Geist Mono", monospace); color: var(--muted); font-size: .85rem; }
.plan-name { font-size: 1.15rem; letter-spacing: -.02em; }
.plan-price { display: flex; align-items: baseline; gap: .3rem; }
.plan-price-n { font-size: 2.1rem; font-weight: 600; letter-spacing: -.04em; line-height: 1.1; }
.plan-qty { max-width: 140px; }
.plan-list { list-style: none; margin: .2rem 0 .4rem; padding: 0; display: flex; flex-direction: column; gap: .35rem; font-size: .88rem; flex: 1; }
.plan-list li { position: relative; padding-left: 1.3rem; }
.plan-list li::before { content: ""; position: absolute; left: .15rem; top: .3rem; width: .55rem; height: .3rem;
  border-left: 1.8px solid var(--ok); border-bottom: 1.8px solid var(--ok); transform: rotate(-45deg); }
.plan-card .btn { align-self: stretch; justify-content: center; }
/* «¿Tienes un código?» debajo de los planes (promo.py): campo en Mono, «Aplicar» y el resultado en verde o rojo */
.promo-box { display: grid; gap: .5rem; max-width: 460px; padding: 16px 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.promo-box .row { gap: 8px; }
.promo-inp { flex: 1; min-width: 0; font-family: var(--mono, "Geist Mono", monospace); letter-spacing: .06em; text-transform: uppercase; }
.promo-ok { color: #5ce07f; font-size: .85rem; }
.promo-bad { color: #ff6961; font-size: .85rem; }
.plan-card .pill.ok { align-self: flex-start; }
@media (max-width: 1000px) { .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .plan-grid { grid-template-columns: 1fr; } }
/* Equipo: «Tus grupos» (el de ahora con el círculo en blanco) */
.mt-l { margin-top: 18px; }
.team-top .section-head { align-items: center; }
.group-list li.here .avatar { background: var(--ink); color: var(--bg); }
.group-list > li { flex-wrap: nowrap; }
.group-list .info { min-width: 0; }
.sched-hint { padding: 10px 14px; border-radius: 14px; border: 1px dashed var(--line-strong); }
@media (max-width: 760px) { .mode-grid { grid-template-columns: 1fr; } .mode-opt { flex-direction: row; flex-wrap: wrap; align-items: center; gap: .2rem .7rem; }
  .mode-opt .mode-ic { margin: 0; } .mode-opt .muted { flex-basis: 100%; } }

/* ---------- Tema claro: retoques a mano (el resto lo genera web/tema_claro.py al final de este archivo) ---------- */
[data-theme="light"] .orb { filter: invert(1); }


/* ===== TEMA CLARO (generado por web/tema_claro.py: no editar a mano) ===== */
:root:where([data-theme="light"]) { --bg: #f3f3f3; --surface: #f8f8f9; --sunk: #fcfcfc; --ink: #0b0b0d; --ink-2: #28282c; --muted: #5f5f64; --line: rgba(0, 0, 0, .064); --line-strong: rgba(0, 0, 0, .128); --accent: #0b0b0d; --accent-ink: #ffffff; --accent-soft: rgba(0, 0, 0, .072); --ok: #29b84c; --ok-soft: rgba(48, 209, 88, .14); --warn: #e0bb00; --warn-soft: rgba(255, 214, 10, .12); --err: #e00d00; --err-soft: rgba(255, 69, 58, .14); color-scheme: light; }
html:where([data-theme="light"]), :where([data-theme="light"]) body { background: var(--bg); color: var(--ink); }
:where([data-theme="light"]) a { color: inherit; }
:where([data-theme="light"]) .muted { color: var(--muted); }
:where([data-theme="light"]) .eyebrow { color: var(--muted); }
:where([data-theme="light"]) .top { background: color-mix(in srgb, var(--bg) 88%, transparent); border-bottom: 1px solid var(--line); }
:where([data-theme="light"]) .brand { text-decoration: none; }
:where([data-theme="light"]) .top-nav a { text-decoration: none; color: var(--muted); }
:where([data-theme="light"]) .top-nav a.active { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
:where([data-theme="light"]) .card { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
:where([data-theme="light"]) label { color: var(--muted); }
:where([data-theme="light"]) input, :where([data-theme="light"]) select, :where([data-theme="light"]) textarea { color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); }
:where([data-theme="light"]) input:focus, :where([data-theme="light"]) select:focus, :where([data-theme="light"]) textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
:where([data-theme="light"]) code { background: var(--sunk); }
:where([data-theme="light"]) .btn { border: 1px solid transparent; text-decoration: none; }
:where([data-theme="light"]) .btn.primary { background: var(--ink); color: var(--bg); }
:where([data-theme="light"]) .btn.primary:hover { background: color-mix(in srgb, var(--ink) 85%, var(--accent)); }
:where([data-theme="light"]) .btn.accent { background: var(--accent); color: var(--accent-ink); }
:where([data-theme="light"]) .btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
:where([data-theme="light"]) .btn.ghost:hover { border-color: var(--ink); }
:where([data-theme="light"]) .btn.link { background: none; border: 0; color: var(--muted); text-decoration: underline; }
:where([data-theme="light"]) .pill { background: var(--sunk); color: var(--muted); }
:where([data-theme="light"]) .pill::before { background: currentColor; }
:where([data-theme="light"]) .pill.ok { background: var(--ok-soft); color: var(--ok); }
:where([data-theme="light"]) .pill.warn { background: var(--warn-soft); color: var(--warn); }
:where([data-theme="light"]) .pill.err { background: var(--err-soft); color: var(--err); }
:where([data-theme="light"]) .pill.accent { background: var(--accent-soft); color: var(--accent); }
:where([data-theme="light"]) .alert { background: var(--err-soft); color: var(--err); }
:where([data-theme="light"]) .note { background: var(--warn-soft); color: var(--warn); }
:where([data-theme="light"]) .empty { color: var(--muted); border: 1px dashed var(--line-strong); }
:where([data-theme="light"]) .switch { color: var(--ink); }
:where([data-theme="light"]) .switch .track { background: var(--line-strong); }
:where([data-theme="light"]) .switch .track::after { background: var(--surface); box-shadow: 0 1px 2px rgba(40, 40, 70, .105); }
:where([data-theme="light"]) .switch input:checked + .track { background: var(--ok); }
:where([data-theme="light"]) .switch input:focus-visible + .track { outline: 2px solid var(--accent); }
:where([data-theme="light"]) .stepper { border: 1px solid var(--line-strong); }
:where([data-theme="light"]) .stepper button { border: 0; background: var(--surface); color: var(--ink); }
:where([data-theme="light"]) .stepper button:hover { background: var(--sunk); }
:where([data-theme="light"]) .avatar { background: var(--sunk); color: var(--muted); }
:where([data-theme="light"]) .meter .bar { background: var(--sunk); }
:where([data-theme="light"]) .meter .bar > i { background: var(--ink); }
:where([data-theme="light"]) .meter.full .bar > i { background: var(--accent); }
:where([data-theme="light"]) .acc-card { text-decoration: none; }
:where([data-theme="light"]) .acc-card:hover { border-color: var(--line-strong); }
:where([data-theme="light"]) .stats { border-top: 1px solid var(--line); }
:where([data-theme="light"]) .stats > div + div { border-left: 1px solid var(--line); }
:where([data-theme="light"]) .add-card { box-shadow: none; background: transparent; }
:where([data-theme="light"]) .pilot { background: var(--surface); border: 1px solid var(--line); }
:where([data-theme="light"]) .tabs { border-bottom: 1px solid var(--line); }
:where([data-theme="light"]) .tabs a { text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; }
:where([data-theme="light"]) .tabs a.active { color: var(--ink); border-bottom-color: var(--accent); }
:where([data-theme="light"]) .kpi { background: var(--surface); border: 1px solid var(--line); }
:where([data-theme="light"]) .slot { border-top: 1px solid var(--line); }
:where([data-theme="light"]) .slot:first-of-type { border-top: 0; }
:where([data-theme="light"]) .slot .thumb, :where([data-theme="light"]) .thumb { background: var(--sunk); }
:where([data-theme="light"]) .expect { color: var(--muted); }
:where([data-theme="light"]) .expect b { color: var(--ink); }
:where([data-theme="light"]) .arms li { border-top: 1px solid var(--line); }
:where([data-theme="light"]) .arms li:first-child { border-top: 0; }
:where([data-theme="light"]) .prob .bar { background: var(--sunk); }
:where([data-theme="light"]) .prob .bar > i { background: var(--accent); }
:where([data-theme="light"]) .list > li { border-top: 1px solid var(--line); }
:where([data-theme="light"]) .list > li:first-child { border-top: 0; }
:where([data-theme="light"]) .variants { background: var(--sunk); }
:where([data-theme="light"]) .variants video, :where([data-theme="light"]) .ph { background: #f3f3f3; }
:where([data-theme="light"]) .variants .ph { background: var(--line); }
:where([data-theme="light"]) .seg { background: var(--sunk); }
:where([data-theme="light"]) .seg button { border: 0; background: none; color: var(--muted); }
:where([data-theme="light"]) .seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(40, 40, 70, .034); }
:where([data-theme="light"]) .chart .lbl { color: var(--muted); }
:where([data-theme="light"]) .legend { color: var(--muted); }
:where([data-theme="light"]) .setting { border-top: 1px solid var(--line); }
:where([data-theme="light"]) .setting:first-child { border-top: 0; }
:where([data-theme="light"]) .log li { border-top: 1px solid var(--line); }
:where([data-theme="light"]) .log li:first-child { border-top: 0; }
:where([data-theme="light"]) .log .when { color: var(--muted); }
:where([data-theme="light"]) .log li.error .msg { color: var(--err); }
:where([data-theme="light"]) .log li.warning .msg { color: var(--warn); }
:where([data-theme="light"]) .toast { background: var(--ink); color: var(--bg); box-shadow: 0 10px 30px -10px rgba(40, 40, 70, .21); }
:root:where([data-theme="light"]) { --s0: #1a68c6; --s1: #bf4e21; --s2: #199e70; --s3: #c98500; --s4: #b52c5d; --s5: #008300; --s6: #3322be; --s7: #c12020; --s-other: #968e84; }
:where([data-theme="light"]) .sw { background: var(--c); }
:where([data-theme="light"]) .seg .count { color: var(--muted); }
:where([data-theme="light"]) .summary { border: 1px solid var(--line); background: var(--sunk); }
:where([data-theme="light"]) .summary > div + div { border-left: 1px solid var(--line-strong); }
:where([data-theme="light"]) .mix.zero { color: var(--muted); }
:where([data-theme="light"]) dialog.dialog { border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px -30px rgba(40, 40, 70, .189); }
:where([data-theme="light"]) dialog.dialog::backdrop { background: rgba(255, 255, 255, .615); }
:where([data-theme="light"]) .steps-mini { color: var(--muted); }
:where([data-theme="light"]) .steps-mini b { color: var(--ink); }
:where([data-theme="light"]) .chip { border: 1px solid var(--line-strong); background: transparent; color: var(--muted); }
:where([data-theme="light"]) .chip.on { background: var(--surface); color: var(--ink); border-color: var(--ink); }
:where([data-theme="light"]) .gl { border-top: 1px solid var(--line); }
:where([data-theme="light"]) .gl span { color: var(--muted); }
:where([data-theme="light"]) .chart.stacked .col:hover .stack-bar { filter: brightness(1.08); }
:where([data-theme="light"]) .seg-bar { background: var(--c); }
:where([data-theme="light"]) .tip { background: var(--surface); border: 1px solid var(--line-strong); box-shadow: 0 10px 30px -12px rgba(40, 40, 70, .147); }
:where([data-theme="light"]) .tip-total { border-top: 1px solid var(--line); }
:where([data-theme="light"]) .table th, :where([data-theme="light"]) .table td { border-top: 1px solid var(--line); }
:where([data-theme="light"]) .table thead th { border-top: 0; }
:where([data-theme="light"]) .table tr.click:hover td { background: var(--sunk); }
:where([data-theme="light"]) .table tfoot td { border-top: 1px solid var(--line-strong); }
:where([data-theme="light"]) .th { color: var(--muted); background: none; border: 0; }
:where([data-theme="light"]) .th.on { color: var(--ink); }
:where([data-theme="light"]) .share { background: var(--sunk); }
:where([data-theme="light"]) .share > i { background: var(--ink); }
:where([data-theme="light"]) .rank { color: var(--muted); }
:where([data-theme="light"]) .crumbs a { text-decoration: none; }
:where([data-theme="light"]) .set-n { background: var(--ink); color: var(--bg); }
:where([data-theme="light"]) .set-card .setting:first-of-type { border-top: 0; }
:where([data-theme="light"]) .day-card { background: var(--sunk); box-shadow: none; }
:where([data-theme="light"]) .day-box { background: var(--surface); border: 1px solid var(--line); }
:where([data-theme="light"]) .day-box.zero .num { color: var(--muted); }
:where([data-theme="light"]) .setup { border-color: var(--ink); }
:where([data-theme="light"]) .checklist .tick { border: 1.5px solid var(--line-strong); color: var(--muted); }
:where([data-theme="light"]) .checklist li.done .tick { background: var(--ok); border-color: var(--ok); color: var(--surface); }
:where([data-theme="light"]) .checklist li.done b { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
:where([data-theme="light"]) .me-btn { color: var(--ink); }
:where([data-theme="light"]) fieldset.plain { border: 0; }
:where([data-theme="light"]) .role-opt { border: 1px solid var(--line-strong); background: transparent; color: var(--ink); }
:where([data-theme="light"]) .role-opt:hover { border-color: var(--ink); }
:where([data-theme="light"]) .role-opt.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--surface); }
:where([data-theme="light"]) label.check { color: var(--ink); }
:where([data-theme="light"]) label.check input { accent-color: var(--ink); }
:where([data-theme="light"]) .matrix td.yes { color: var(--ok); }
:where([data-theme="light"]) .matrix td.no { color: var(--line-strong); }
:where([data-theme="light"]) .register input::placeholder { color: rgba(12, 12, 12, .28); }
:where([data-theme="light"]) .invite-app { color: var(--ink-2); }
:where([data-theme="light"]) .invite-app-ic { color: var(--ink); background: rgba(0, 0, 0, .043); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .42); }
:where([data-theme="light"]) .invite-app-ic svg { fill: none; stroke: currentColor; }
:where([data-theme="light"]) .invite-rows { border-top: 1px solid rgba(0, 0, 0, .048); }
:where([data-theme="light"]) .pw-eye { border: 0; color: var(--muted); background: none; }
:where([data-theme="light"]) .pw-eye:hover { color: var(--ink); background: rgba(0, 0, 0, .058); }
:where([data-theme="light"]) .pw-eye:focus-visible { outline: 2px solid rgba(12, 12, 12, .7); }
:where([data-theme="light"]) .pw-eye svg { fill: none; stroke: currentColor; }
:where([data-theme="light"]) .pw-eye[aria-pressed="true"] { color: var(--ink); }
:where([data-theme="light"]) .note code { background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--ink); }
:where([data-theme="light"]) details summary { color: var(--muted); }
html:where([data-theme="light"]), :where([data-theme="light"]) body { background: #f3f3f3; }
:where([data-theme="light"]) ::selection { background: rgba(0, 0, 0, .158); }
:where([data-theme="light"]) * { scrollbar-color: rgba(12, 12, 12, .18) transparent; }
:where([data-theme="light"]) .bg-beam { background: #f3f3f3; }
:where([data-theme="light"]) .bg-beam i:nth-child(1) { background: radial-gradient(closest-side, #f6f6f7 0%, #fdfdfd 38%, #f9f9f9 68%, rgba(0, 0, 0, 0) 100%); }
:where([data-theme="light"]) .bg-beam i:nth-child(2) { background: radial-gradient(closest-side, rgba(255, 255, 255, .725), rgba(0, 0, 0, 0)); }
:where([data-theme="light"]) .bg-beam i:nth-child(3) { background: radial-gradient(closest-side, #f8f8f9, rgba(0, 0, 0, 0)); }
:where([data-theme="light"]) .top-nav, :where([data-theme="light"]) .seg, :where([data-theme="light"]) .tabs, :where([data-theme="light"]) .btn.ghost, :where([data-theme="light"]) .stepper, :where([data-theme="light"]) .pilot, :where([data-theme="light"]) .chip, :where([data-theme="light"]) .me-btn, :where([data-theme="light"]) .logout .btn.ghost { background: rgba(0, 0, 0, .04); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .91), inset 0 -1px 0 rgba(255, 255, 255, .175), inset 0 0 0 .5px rgba(0, 0, 0, .09), 0 10px 28px rgba(40, 40, 70, .168); border: 0; }
:where([data-theme="light"]) .lq > .lens { background: rgba(0, 0, 0, .079); box-shadow: inset 0 1px 0 #ffffff, inset 0 -1px 1px rgba(255, 255, 255, .42), inset 0 0 0 .5px rgba(0, 0, 0, .12),
    inset 0 0 12px rgba(255, 255, 255, .175), 0 4px 16px rgba(40, 40, 70, .147); }
:where([data-theme="light"]) .lq.lq-drag > .lens { background: rgba(0, 0, 0, .122); }
:where([data-theme="light"]) .top { background: none; border: 0; }
:where([data-theme="light"]) .top-nav a { color: var(--muted); background: none; box-shadow: none; }
:where([data-theme="light"]) .top-nav a.active { background: none; box-shadow: none; color: var(--ink); }
:where([data-theme="light"]) .me-btn { text-decoration: none; color: var(--ink) !important; }
:where([data-theme="light"]) .card { background: var(--surface); border: 1px solid var(--line); box-shadow: none; }
:where([data-theme="light"]) .kpi { background: var(--surface); border: 1px solid var(--line); }
:where([data-theme="light"]) .summary { background: var(--surface); border: 1px solid var(--line); }
:where([data-theme="light"]) .summary > div + div, :where([data-theme="light"]) .stats > div + div { border-left-color: var(--line); }
:where([data-theme="light"]) .empty { border: 1px dashed rgba(0, 0, 0, .096); }
:where([data-theme="light"]) .acc-card:hover { border-color: rgba(0, 0, 0, .128); }
:where([data-theme="light"]) .avatar { background: linear-gradient(160deg, #e3e3e4, #fcfcfc); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .77); }
:where([data-theme="light"]) .btn.primary, :where([data-theme="light"]) .btn.accent { background: var(--ink); color: #ffffff; box-shadow: 0 8px 24px rgba(40, 40, 70, .147), inset 0 1px 0 #ffffff; }
:where([data-theme="light"]) .btn.primary:hover, :where([data-theme="light"]) .btn.accent:hover { background: #141414; filter: none; }
:where([data-theme="light"]) .btn.ghost { color: var(--ink); }
:where([data-theme="light"]) .btn.ghost:hover { background: rgba(0, 0, 0, .072); }
:where([data-theme="light"]) .btn.link { color: var(--muted); text-decoration-color: rgba(12, 12, 12, .25); }
:where([data-theme="light"]) .btn.link:hover { color: var(--ink); }
:where([data-theme="light"]) .pill { background: rgba(0, 0, 0, .05); color: var(--ink-2); }
:where([data-theme="light"]) .pill.ok { background: rgba(48, 209, 88, .14); color: #24bd4c; }
:where([data-theme="light"]) .pill.ok::before { box-shadow: 0 0 0 3px rgba(48, 209, 88, .18); }
:where([data-theme="light"]) .pill.warn { background: rgba(255, 214, 10, .12); color: #e0bb00; }
:where([data-theme="light"]) .pill.err { background: rgba(255, 69, 58, .14); color: #e00b00; }
:where([data-theme="light"]) .pill.accent { background: rgba(0, 0, 0, .072); color: var(--ink); }
:where([data-theme="light"]) .note { background: rgba(255, 214, 10, .09); color: #e0b800; }
:where([data-theme="light"]) input, :where([data-theme="light"]) select, :where([data-theme="light"]) textarea { background: rgba(0, 0, 0, .04); border: 1px solid rgba(0, 0, 0, .08); color: var(--ink); }
:where([data-theme="light"]) input::placeholder, :where([data-theme="light"]) textarea::placeholder { color: #808085; }
:where([data-theme="light"]) input:focus, :where([data-theme="light"]) select:focus, :where([data-theme="light"]) textarea:focus { outline: 2px solid rgba(12, 12, 12, .55); border-color: transparent; }
:where([data-theme="light"]) select { color-scheme: light; }
:where([data-theme="light"]) code { background: rgba(0, 0, 0, .058); }
:where([data-theme="light"]) :focus-visible { outline: 2px solid rgba(12, 12, 12, .7); }
:where([data-theme="light"]) .seg { background: rgba(0, 0, 0, .04); }
:where([data-theme="light"]) .seg button { color: var(--muted); }
:where([data-theme="light"]) .seg button.on { background: none; box-shadow: none; color: var(--ink); }
:where([data-theme="light"]) .seg .count { color: var(--muted); }
:where([data-theme="light"]) .tabs { border-bottom: 0; }
:where([data-theme="light"]) .tabs a { border: 0; color: var(--muted); }
:where([data-theme="light"]) .tabs a.active { color: var(--ink); border: 0; }
:where([data-theme="light"]) .chip { border: 0; color: var(--muted); }
:where([data-theme="light"]) .chip.on { background: rgba(0, 0, 0, .115); color: var(--ink); box-shadow: inset 0 1px 0 #ffffff, inset 0 0 0 .5px rgba(0, 0, 0, .12); border: 0; }
:where([data-theme="light"]) .role-opt { border-color: var(--line); }
:where([data-theme="light"]) .role-opt:hover { border-color: rgba(0, 0, 0, .24); }
:where([data-theme="light"]) .role-opt.on { border-color: rgba(0, 0, 0, .56); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); background: rgba(0, 0, 0, .043); }
:where([data-theme="light"]) label.check input { accent-color: #29b84c; }
:where([data-theme="light"]) .switch .track { background: rgba(255, 255, 255, .472); }
:where([data-theme="light"]) .switch .track::after { background: #141414; box-shadow: 0 3px 8px rgba(40, 40, 70, .147); }
:where([data-theme="light"]) .switch input:checked + .track { background: #30d158; }
:where([data-theme="light"]) .switch input:focus-visible + .track { outline: 2px solid rgba(12, 12, 12, .7); }
:where([data-theme="light"]) .stepper { border: 0; }
:where([data-theme="light"]) .stepper button { background: none; color: var(--ink); }
:where([data-theme="light"]) .stepper button:hover { background: rgba(0, 0, 0, .072); }
:where([data-theme="light"]) .stepper button:active { background: rgba(0, 0, 0, .115); }
:where([data-theme="light"]) .pilot { border: 0; }
:where([data-theme="light"]) .meter .bar, :where([data-theme="light"]) .prob .bar, :where([data-theme="light"]) .share { background: rgba(0, 0, 0, .058); }
:where([data-theme="light"]) .meter .bar > i, :where([data-theme="light"]) .share > i { background: var(--ink); }
:where([data-theme="light"]) .prob .bar > i { background: #30d158; }
:where([data-theme="light"]) .variants { background: rgba(0, 0, 0, .022); border: 1px solid var(--line); }
:where([data-theme="light"]) .day-card { background: rgba(0, 0, 0, .022); }
:where([data-theme="light"]) .day-box { background: var(--surface); border-color: var(--line); }
:where([data-theme="light"]) .setup { border-color: rgba(0, 0, 0, .28); }
:where([data-theme="light"]) .set-n { background: rgba(0, 0, 0, .086); color: var(--ink); box-shadow: inset 0 1px 0 #ffffff; }
:where([data-theme="light"]) .checklist li.done .tick { background: #30d158; border-color: #30d158; color: #000; }
:where([data-theme="light"]) .table tr.click:hover td { background: rgba(0, 0, 0, .029); }
:where([data-theme="light"]) .th.on { color: var(--ink); }
:where([data-theme="light"]) .matrix td.yes { color: #29b84c; }
:where([data-theme="light"]) .tip { background: rgba(255, 255, 255, .912); border: 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .875), inset 0 0 0 .5px rgba(0, 0, 0, .084), 0 14px 34px rgba(40, 40, 70, .21); }
:where([data-theme="light"]) dialog.dialog { background: rgba(255, 255, 255, .94); border: 0; color: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .77), inset 0 0 0 .5px rgba(0, 0, 0, .084), 0 40px 100px rgba(40, 40, 70, .294); }
:where([data-theme="light"]) dialog.dialog::backdrop { background: rgba(0, 0, 0, .55); }
:where([data-theme="light"]) .toast { background: rgba(255, 255, 255, .912); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .875), inset 0 0 0 .5px rgba(0, 0, 0, .09), 0 14px 36px rgba(40, 40, 70, .231); }
:where([data-theme="light"]) .login { background: rgba(255, 255, 255, .912); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .63), inset 0 0 0 .5px rgba(0, 0, 0, .06), 0 30px 80px rgba(40, 40, 70, .252); }
:where([data-theme="light"]) .invite-info { background: rgba(0, 0, 0, .029); }
:where([data-theme="light"]) .lq-select-btn { border: 0; color: var(--ink); background: rgba(0, 0, 0, .04); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .91), inset 0 0 0 .5px rgba(0, 0, 0, .09), 0 10px 28px rgba(40, 40, 70, .168); }
:where([data-theme="light"]) .lq-select-btn:hover { background: rgba(0, 0, 0, .065); }
:where([data-theme="light"]) .lq-select-btn svg { fill: none; stroke: var(--muted); }
:where([data-theme="light"]) .lq-menu { background: rgba(255, 255, 255, .934); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .84), inset 0 0 0 .5px rgba(0, 0, 0, .09), 0 24px 60px rgba(40, 40, 70, .273); }
:where([data-theme="light"]) .lq-opt { border: 0; background: none; color: var(--ink); }
:where([data-theme="light"]) .lq-opt svg { fill: none; stroke: currentColor; }
:where([data-theme="light"]) .lq-opt:hover, :where([data-theme="light"]) .lq-opt:focus-visible { background: rgba(0, 0, 0, .072); outline: none; }
:where([data-theme="light"]) .pk-btn svg { fill: none; stroke: currentColor; }
:where([data-theme="light"]) .pk-msg { color: #e00b00; }
:where([data-theme="light"]) .or { color: var(--muted); }
:where([data-theme="light"]) .or::before, :where([data-theme="light"]) .or::after { background: var(--line); }
:where([data-theme="light"]) .pk-list li { border-top: 1px solid var(--line); }
:where([data-theme="light"]) .pk-list li:first-child { border-top: 0; }
:where([data-theme="light"]) .pk-list .pk-ico { background: rgba(0, 0, 0, .05); }
:where([data-theme="light"]) .pk-list .pk-ico svg { fill: none; stroke: var(--ink); }
:where([data-theme="light"]) :focus:not(:focus-visible) { outline: none; }
:where([data-theme="light"]) .svg-defs { color: var(--ink); }
:where([data-theme="light"]) .svg-defs stop { stop-color: currentColor; }
:where([data-theme="light"]) .orb { color: var(--ink); }
:where([data-theme="light"]) .orb ellipse { fill: none; stroke: url(#orbShade); }
:where([data-theme="light"]) .orb .orb-outer { fill: none; stroke: currentColor; }
:where([data-theme="light"]) .info a:not(.btn), :where([data-theme="light"]) .list a.ellipsis { text-decoration: none; }
:where([data-theme="light"]) .info a:not(.btn):hover, :where([data-theme="light"]) .list a.ellipsis:hover { text-decoration: underline; text-decoration-color: rgba(12, 12, 12, .35); }
:where([data-theme="light"]) .orb { background: url(brand/halo.png?v=2) center / contain no-repeat; background-image: image-set(url(brand/halo.avif?v=2) type("image/avif"), url(brand/halo.png?v=2) type("image/png")); }
@media (prefers-reduced-motion: reduce) {
  :where([data-theme="light"]) .orb { background-image: url(brand/halo.png?v=2); }
}
:where([data-theme="light"]) .type-card { background: rgba(0, 0, 0, .025); border: 1px solid rgba(0, 0, 0, .048); }
:where([data-theme="light"]) .type-card .setting:nth-child(2) { border-top: 0; }
:where([data-theme="light"]) .mode-opt { color: inherit; background: var(--surface); border: 1px solid var(--line); }
:where([data-theme="light"]) .mode-opt:hover { border-color: var(--line-strong); }
:where([data-theme="light"]) .mode-opt.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--sunk); }
:where([data-theme="light"]) .mode-opt:focus-visible { outline: 2px solid var(--ink); }
:where([data-theme="light"]) .mode-ic { background: var(--line); }
:where([data-theme="light"]) .mode-opt.on .mode-ic { background: var(--ink); color: var(--bg); }
:where([data-theme="light"]) .plan-card { background: var(--surface); border: 1px solid var(--line); }
:where([data-theme="light"]) .plan-card.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
:where([data-theme="light"]) .plan-n { color: var(--muted); }
:where([data-theme="light"]) .plan-list li::before { border-left: 1.8px solid var(--ok); border-bottom: 1.8px solid var(--ok); }
:where([data-theme="light"]) .promo-box { background: var(--surface); border: 1px solid var(--line); }
:where([data-theme="light"]) .promo-ok { color: #24bd4c; }
:where([data-theme="light"]) .promo-bad { color: #e00b00; }
:where([data-theme="light"]) .group-list li.here .avatar { background: var(--ink); color: var(--bg); }
:where([data-theme="light"]) .sched-hint { border: 1px dashed var(--line-strong); }
