/* Portal 2.0 · negro texturizado con ambientación dorada permanente (referencia: Roadmap). */
:root {
  --bg: #050505;
  --bg-2: #0b0a09;
  --text: #ebe6dc;
  --muted: #8f877a;
  --faint: rgba(235, 225, 205, .045);
  --faint-2: rgba(235, 225, 205, .08);
  --line: rgba(235, 225, 205, .085);
  --line-2: rgba(235, 225, 205, .16);
  --accent: #c9a45c;
  --accent-2: #e0c27f;
  --on-accent: #17120a;
  --warm: #9b7650;
  --danger: #d97a6c;
  font-family: "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  color: var(--text);
  background: var(--bg);
  overflow: hidden;
  font-size: 13.5px;
  -webkit-font-smoothing: antialiased;
}
/* Fondo animado (fx.js) debajo del contenido; viñeta y grano por encima, sin capturar clics */
#atmos { position: fixed; inset: 0; z-index: 0; pointer-events: none; transition: opacity .6s; }
.app { position: relative; z-index: 1; }
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 30;
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(201, 164, 92, .05), transparent 70%),
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .45) 100%);
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 31; opacity: .075;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 .95  0 0 0 0 .85  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; transition: color .18s, background-color .18s, border-color .18s, box-shadow .25s, opacity .18s, transform .12s cubic-bezier(.16, 1, .3, 1); }
button:active:not(:disabled) { transform: scale(.96); }
:root { --ease: cubic-bezier(.16, 1, .3, 1); --glow: 0 0 6px rgba(224, 190, 120, .9), 0 0 18px rgba(201, 164, 92, .55); }
button:disabled { cursor: not-allowed; opacity: .35; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-weight: 400; }

.app {
  display: grid; height: 100vh; width: 100vw;
  grid-template-columns: minmax(0, 1fr) 54px;
  grid-template-rows: 52px minmax(0, 1fr);
}

/* ---------- Barra superior ---------- */
.top { grid-column: 1; display: flex; align-items: center; padding: 0 22px 0 28px; border-bottom: 1px solid var(--line); min-width: 0; }
.brand { font-size: 11.5px; font-weight: 600; letter-spacing: .38em; margin-right: 26px; color: var(--text); }
.nav { display: flex; align-items: stretch; height: 100%; gap: 2px; min-width: 0; overflow: hidden; }
.nav-i {
  position: relative; border: 0; background: none; color: var(--muted); padding: 0 12px; font-size: 13px; white-space: nowrap;
  display: flex; align-items: center; gap: 4px;
}
.nav-i:hover:not(:disabled) { color: var(--text); }
.nav-i.active { color: var(--text); }
.nav-i.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 1px; background: var(--accent-2); box-shadow: var(--glow); }
.nav-i.active::before { content: ""; position: absolute; left: 50%; bottom: -3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: #fff3d6; box-shadow: var(--glow); }
.top.changed .nav-i.active::after { animation: grow .45s var(--ease) both; }
.top.changed .nav-i.active::before { animation: fadein .5s .1s both; }
.nav-i::after { transition: opacity .2s; }
.nav-i:hover:not(.active):not(:disabled)::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 1px; background: rgba(201, 164, 92, .35); }
@keyframes grow { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
@keyframes fadein { from { opacity: 0; } }
.nav-i.static { cursor: default; }
.nav-i sup { color: var(--accent); font-size: 10px; }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.savestate { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.led { width: 5px; height: 5px; border-radius: 50%; background: #e9cf92; box-shadow: var(--glow); margin-right: -4px; transition: background .3s; }
.led:has(+ .savestate.busy) { background: #fff; animation: pulse .9s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; box-shadow: none; } }
.icon-btn { border: 0; background: none; color: var(--muted); width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; }
.icon-btn:hover { color: var(--accent); background: var(--faint); }
.icon-btn svg { width: 16px; height: 16px; }
.clock { display: flex; align-items: baseline; gap: 8px; padding-left: 12px; margin-left: 4px; border-left: 1px solid var(--line); }
.clock .time { font-size: 20px; font-weight: 300; letter-spacing: -.3px; font-variant-numeric: tabular-nums; }
.clock .date { font-size: 11.5px; color: var(--muted); }

/* ---------- Barra vertical ---------- */
.rail { grid-column: 2; grid-row: 1 / 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-left: 1px solid var(--line); }
.railbtn { position: relative; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; border: 0; background: transparent; color: var(--muted); }
.railbtn svg { width: 17px; height: 17px; }
.railbtn:hover:not(:disabled) { color: var(--text); background: var(--faint); }
.railbtn.active { color: var(--accent); }
.railbtn .tip {
  position: absolute; right: 44px; white-space: nowrap; background: #121110; border: 1px solid var(--line);
  padding: 4px 9px; border-radius: 6px; font-size: 12px; color: var(--text); opacity: 0; pointer-events: none; transition: opacity .12s;
}
.railbtn:hover .tip { opacity: 1; }
.rail-sep { width: 16px; height: 1px; background: var(--line); margin: 4px 0; }

/* ---------- Contenido ---------- */
.content { grid-column: 1; min-height: 0; min-width: 0; padding: 22px 28px 32px; overflow: auto; }
.eyebrow { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.hint { color: var(--muted); font-size: 12px; margin: 6px 0 14px; line-height: 1.5; }
.muted-s { color: var(--muted); font-size: 12px; }
.spacer { flex: 1; }
.sec-head { display: flex; align-items: center; gap: 14px; margin: 0 0 10px; min-height: 30px; }
.sec-head h2 { margin: 0; font-size: 15px; font-weight: 500; letter-spacing: .01em; }
.sec-title { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.btn {
  border: 1px solid var(--line-2); background: transparent; border-radius: 7px; padding: 6px 13px; font-size: 12.5px;
  display: inline-flex; align-items: center; gap: 6px; color: var(--text);
}
.btn svg { width: 14px; height: 14px; }
.btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-2); }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: transparent; font-weight: 600; }
.btn.primary:hover:not(:disabled) { background: var(--accent-2); color: var(--on-accent); }
.btn.small { padding: 4px 10px; font-size: 12px; }
.link { border: 0; background: none; color: var(--muted); padding: 2px 4px; font-size: 12.5px; display: inline-flex; align-items: center; gap: 5px; }
.link svg { width: 14px; height: 14px; }
.link:hover:not(:disabled) { color: var(--accent-2); }
.link.danger:hover { color: var(--danger); }
.input {
  background: rgba(0, 0, 0, .35); border: 1px solid var(--line); border-radius: 7px; padding: 6px 10px; min-width: 0; font-size: 13px;
}
.input::placeholder { color: var(--muted); }
.input:focus { border-color: var(--accent); outline: none; }
.input.slim { width: 100%; padding: 3px 8px; }
.input.num { width: 84px; }
.badge { font-size: 11px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.badge.warn { color: #f0b7ad; border-color: rgba(217, 122, 108, .4); }
.empty-note { color: var(--muted); font-size: 12.5px; padding: 8px 0; }
.warnline { font-size: 12px; color: #f0b7ad; margin-top: 4px; }
.filebtn { position: relative; overflow: hidden; }
.filebtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ---------- Inicio ---------- */
.inicio { display: flex; flex-direction: column; gap: 22px; }
.hello h1 { margin: 0; font-size: 30px; font-weight: 300; letter-spacing: -.4px; }
.home-imgs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; height: clamp(150px, 26vh, 300px); }
.home-imgs .ph { height: 100%; }
.kpis { display: flex; flex-wrap: wrap; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kpi { flex: 1 1 150px; padding: 14px 18px; border-left: 1px solid var(--line); min-width: 0; }
.kpi:first-child { border-left: 0; padding-left: 0; }
.k-l { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.k-v { font-size: 26px; font-weight: 300; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.k-s { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; }
.home-grid > section { min-width: 0; }
.heat { display: block; max-width: 100%; height: auto; }
.heat .ax, .line .ax { fill: var(--muted); font-size: 9px; }
.hm { fill: rgba(235, 225, 205, .05); }
.hm.l1 { fill: rgba(201, 164, 92, .12); }
.hm.l2 { fill: rgba(201, 164, 92, .3); }
.hm.l3 { fill: rgba(201, 164, 92, .5); }
.hm.l4 { fill: rgba(201, 164, 92, .75); }
.hm.l5 { fill: #e0c27f; }
.hm:hover { stroke: var(--text); stroke-width: 1; }
.legend-row { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); margin-top: 8px; }
.hm-key { width: 11px; height: 11px; border-radius: 2px; display: inline-block; }
.hm-key.l1 { background: rgba(201, 164, 92, .12); } .hm-key.l2 { background: rgba(201, 164, 92, .3); } .hm-key.l3 { background: rgba(201, 164, 92, .5); }
.hm-key.l4 { background: rgba(201, 164, 92, .75); } .hm-key.l5 { background: #e0c27f; }
.chart-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: end; gap: 10px; margin-bottom: 10px; }
.chart-lbl { font-size: 12px; color: var(--text); line-height: 1.3; }
.chart-lbl span { display: block; color: var(--muted); font-size: 11px; }
.bars { width: 100%; height: 64px; display: block; }
.bars .hit { fill: transparent; }
.bars g:hover .hit { fill: rgba(235, 225, 205, .05); }
.bars.gold .bar { fill: var(--accent); }
.bars.warm .bar { fill: var(--warm); }
.bars .base, .line .grid { stroke: var(--line-2); stroke-width: 1; }
.axis-row { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); margin-left: 106px; }
.line + .axis-row { margin-left: 0; }
.line { width: 100%; height: 96px; display: block; overflow: visible; }
.line path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.line .dot { fill: var(--accent-2); stroke: var(--bg); stroke-width: 2; }
.line .hit { fill: transparent; }
.mini-skills { display: flex; flex-direction: column; }
.ms-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 90px; align-items: center; gap: 12px; padding: 5px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; }
.ms-row:hover .ms-n { color: var(--accent-2); }
.ms-n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-bar { height: 3px; background: var(--faint-2); border-radius: 2px; overflow: hidden; }
.ms-bar i { display: block; height: 100%; border-radius: 2px; opacity: .85; }
.ms-v { font-size: 11.5px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Espacios de imagen ---------- */
.ph { position: relative; overflow: hidden; background: rgba(235, 225, 205, .03); cursor: pointer; min-height: 0; border-radius: 3px; }
.ph img, .orb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ph.empty { display: grid; place-items: center; color: var(--muted); border: 1px dashed var(--line-2); background: transparent; }
.ph.empty svg { width: 18px; height: 18px; opacity: .6; }
.ph.empty:hover { color: var(--accent); border-color: var(--accent); }
.ph:not(.empty):hover img { filter: brightness(1.06); }

/* ---------- Centro ---------- */
.centro { display: grid; grid-template-columns: minmax(0, 1fr) clamp(240px, 24vw, 340px); gap: 36px; height: 100%; }
.tracker { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.lockbar { padding: 12px 0 14px; margin-bottom: 8px; display: flex; gap: 12px; align-items: flex-start; border-bottom: 1px solid rgba(217, 122, 108, .35); }
.lockbar .ico { color: var(--danger); margin-top: 1px; }
.lockbar strong { display: block; font-size: 14px; font-weight: 600; }
.lockbar ul { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.lockbar li { font-size: 12px; color: #f0b7ad; }
.lockbar .note { margin-top: 6px; font-size: 12px; color: var(--muted); }
.lockbar .lock-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; white-space: nowrap; }
.gridscroll { overflow: auto; min-height: 0; flex: 1; }
table.grid { border-collapse: separate; border-spacing: 0; font-size: 13px; }
.grid th, .grid td { padding: 0; height: 32px; text-align: center; border-bottom: 1px solid var(--line); }
.grid thead th { position: sticky; top: 0; z-index: 2; background: var(--bg); height: 44px; font-weight: 400; }
.grid .sticky {
  position: sticky; left: 0; z-index: 3; background: var(--bg); text-align: left; padding: 0 8px 0 0;
  min-width: 200px; max-width: 200px; font-weight: 400;
}
.grid thead .sticky { z-index: 4; }
.grid .dcol { min-width: 40px; width: 40px; }
.dhead { display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.dhead .dw { font-size: 9.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.dhead .dn { font-size: 13.5px; }
.dhead .mo { font-size: 9px; color: var(--accent); text-transform: uppercase; letter-spacing: .1em; height: 10px; }
th.pending .dn { color: var(--danger); }
.habitname { display: flex; align-items: center; gap: 2px; }
.habitname .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.habitname .ib { opacity: 0; }
tr:hover .habitname .ib { opacity: 1; }
tr.archived .nm { color: var(--muted); text-decoration: line-through; }
.chk {
  width: 18px; height: 18px; border-radius: 5px; border: 1px solid rgba(235, 225, 205, .26);
  background: transparent; display: inline-grid; place-items: center; padding: 0; color: var(--on-accent);
}
.chk:hover { border-color: var(--accent); }
.chk.on { background: var(--accent); border-color: var(--accent); }
.chk svg { width: 12px; height: 12px; stroke-width: 2.4; }
td.na { background: repeating-linear-gradient(135deg, transparent 0 5px, var(--faint) 5px 6px); }
tr.addrow th, tr.addrow td { border-bottom: 1px solid var(--line); }
.add-link { border: 0; background: none; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; font-size: 12.5px; }
.add-link svg { width: 14px; height: 14px; }
.add-link:hover { color: var(--accent-2); }
tr.pct td { color: var(--muted); font-size: 11.5px; }
tr.pct td.full { color: var(--accent); font-weight: 600; }
tr.jorgi th, tr.jorgi td { height: 52px; border-bottom: 0; }
.gcell { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ginput {
  width: 38px; text-align: center; padding: 3px 1px; border-radius: 5px; border: 1px solid var(--line);
  background: transparent; font-weight: 600; font-size: 12.5px; font-variant-numeric: tabular-nums;
}
.ginput:focus { outline: none; border-color: var(--accent); }
.ginput.pending { border-color: var(--danger); }
.ginput:disabled { opacity: .35; }
.rank { font-size: 8.5px; letter-spacing: .06em; text-transform: uppercase; padding: 0 4px; border-radius: 3px; font-weight: 700; }
.rank.fuera { color: #f0a39a; }
.rank.bronce { color: #d9a06a; }
.rank.plata { color: #c9d0d6; }
.rank.oro { color: #e7c46a; }
.rank.platino { color: #a9e2ee; }
.rank.obsidiana { color: #c9a8ff; }
.ib { border: 0; background: none; color: var(--muted); padding: 4px 5px; border-radius: 5px; display: inline-flex; font-size: 12.5px; }
.ib:hover { background: var(--faint); color: var(--text); }
.ib svg { width: 14px; height: 14px; }
.ib.danger:hover { color: var(--danger); }

.center-side { display: flex; flex-direction: column; align-items: center; padding-top: 18px; border-left: 1px solid var(--line); padding-left: 32px; }
.orb { position: relative; margin: 0; width: 120px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; cursor: pointer; flex: none; background: rgba(235, 225, 205, .03); box-shadow: 0 0 0 1px var(--line-2); }
.orb.big { width: min(100%, 260px); box-shadow: 0 0 0 1px rgba(201, 164, 92, .35), 0 0 60px -20px rgba(201, 164, 92, .35); }
.orb.empty { display: grid; place-items: center; color: var(--muted); box-shadow: 0 0 0 1px var(--line-2) inset; }
.orb.empty span { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; }
.orb.empty em { font-style: normal; }
.orb.empty:hover { color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.avg { font-size: 46px; font-weight: 200; letter-spacing: -1px; margin-top: 18px; font-variant-numeric: tabular-nums; }
.avg-sub { font-size: 12px; color: var(--muted); }
.avg-cat { margin-top: 12px; }

/* ---------- Portal ---------- */
.portal-page { display: flex; flex-direction: column; }
.pgallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: calc((100vh - 52px - 22px - 40px) / 2); gap: 6px; margin-bottom: 18px; }
.pgallery .ph { height: 100%; }
.slide, .ptext { border-top: 1px solid var(--line); padding: 22px 0 26px; }
.slide-label { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 14px; }
.slide-body { display: grid; grid-template-columns: minmax(260px, min(48%, 72vh)) minmax(0, 1fr); gap: 28px; align-items: stretch; }
.quad { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; aspect-ratio: 1; }
.quad .ph { height: 100%; }
.rt-wrap { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.rt-bar { display: flex; align-items: center; gap: 2px; padding: 0 0 8px; margin-bottom: 10px; border-bottom: 1px solid var(--line); opacity: .45; transition: opacity .15s; flex-wrap: wrap; }
.rt-wrap:focus-within .rt-bar, .rt-bar:hover { opacity: 1; }
.rt-bar button { border: 0; background: none; color: var(--muted); min-width: 26px; height: 26px; border-radius: 5px; display: inline-grid; place-items: center; padding: 0 5px; font-size: 13px; }
.rt-bar button:hover { color: var(--text); background: var(--faint); }
.rt-bar select { background: transparent; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-size: 12px; padding: 2px 4px; height: 26px; }
.rt-bar select option { background: #121110; color: var(--text); }
.rt-bar .sw { min-width: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--c); margin: 0 3px; padding: 0; box-shadow: 0 0 0 1px var(--line-2); }
.rt-bar .sw:hover { background: var(--c); transform: scale(1.15); }
.rt-bar .sw.custom { position: relative; overflow: hidden; display: inline-block; cursor: pointer; background: conic-gradient(#d97a6c, #e0c27f, #7fb3a5, #6f8fd9, #b48ad9, #d97a6c); }
.rt-bar .sw.custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.rt-sep { width: 1px; height: 16px; background: var(--line); margin: 0 6px; }
.rt-bar svg { width: 15px; height: 15px; }
.rt-fs .when-fs { display: none; }
.rt-wrap.fs .rt-fs > svg { display: none; }
.rt-wrap.fs .rt-fs .when-fs { display: inline; }
.rt-title { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 10px; }
.rt { flex: 1; min-height: 160px; outline: none; line-height: 1.65; font-size: 14.5px; overflow-wrap: anywhere; overflow: auto; }
.slide .rt { max-height: min(48vw, 72vh); }
.ptext .rt { min-height: 62vh; }
.rt:empty::before { content: attr(data-ph); color: var(--muted); opacity: .6; }
.rt h1 { font-size: 28px; font-weight: 300; margin: .3em 0 .4em; letter-spacing: -.3px; }
.rt h2 { font-size: 20px; font-weight: 400; margin: .5em 0 .3em; }
.rt h3 { font-size: 15px; font-weight: 600; margin: .6em 0 .2em; letter-spacing: .02em; }
.rt p, .rt div { margin: 0 0 .35em; }
.rt ul { padding-left: 1.3em; }
.rt-wrap.fs { position: fixed; inset: 0; z-index: 40; background: var(--bg); padding: 22px max(28px, calc((100vw - 980px) / 2)) 28px; }
.rt-wrap.fs .rt { font-size: 16.5px; max-height: none; }
.rt-wrap.fs .rt-bar { opacity: 1; }

/* ---------- Bandeja ---------- */
.inbox { display: grid; grid-template-columns: minmax(300px, .85fr) minmax(0, 1.15fr); gap: 40px; height: 100%; }
.inbox > section { display: flex; flex-direction: column; min-height: 0; }
.inbox > section + section { border-left: 1px solid var(--line); padding-left: 40px; }
.count { font-size: 11px; color: var(--accent); margin-left: 6px; }
.remform { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; }
.remform .title { grid-column: 1 / -1; }
.remform .row { grid-column: 1 / -1; }
.list { overflow: auto; display: flex; flex-direction: column; }
.item { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: center; }
.item .body { flex: 1; min-width: 0; }
.item .t { font-weight: 500; }
.item .m { font-size: 12px; color: var(--muted); margin-top: 2px; }
.item.unread .t::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: middle; }

/* ---------- Configuración ---------- */
.config { display: grid; grid-template-columns: 210px minmax(0, 1fr); min-height: 100%; }
.cfg-list { display: flex; flex-direction: column; border-right: 1px solid var(--line); padding-right: 14px; gap: 1px; }
.cfg-i { text-align: left; border: 0; background: none; color: var(--muted); padding: 8px 12px; border-radius: 6px; position: relative; font-size: 13px; }
.cfg-i:hover { color: var(--text); background: var(--faint); }
.cfg-i.active { color: var(--text); background: var(--faint); }
.cfg-i.active::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; background: var(--accent); border-radius: 2px; }
.cfg-body { padding: 0 0 20px 34px; max-width: 1100px; min-width: 0; }
.cfg-body h2 { margin: 2px 0 4px; font-size: 20px; font-weight: 300; }
.field { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); align-items: start; }
.field > label { font-size: 12.5px; color: var(--muted); padding-top: 6px; }
.field .hint { margin-bottom: 0; }
.mini { font-size: 11px; color: var(--muted); display: flex; flex-direction: column; gap: 3px; }
.orbs { display: flex; gap: 34px; flex-wrap: wrap; }
.orb-cfg { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.orb-cfg .oc-t { margin-top: 8px; font-size: 13px; }
.orb-cfg .oc-s { font-size: 11.5px; color: var(--muted); }
.orb-cfg.current .orb { box-shadow: 0 0 0 1px var(--accent); }
.orb-cfg.current .oc-t { color: var(--accent-2); }
.bk-actions { display: flex; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 6px 0 4px; }
.bk { flex: 1; display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 14px 16px; text-align: left; border-left: 1px solid var(--line); color: var(--text); }
.bk:first-child { border-left: 0; padding-left: 4px; }
.bk:hover { background: var(--faint); }
.bk:hover svg { color: var(--accent); }
.bk svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.bk b { display: block; font-weight: 500; }
.bk em { display: block; font-style: normal; color: var(--muted); font-size: 11.5px; }
.facts { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 8px 16px; margin: 16px 0 0; font-size: 13px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts.small { grid-template-columns: 110px 1fr 110px 1fr; font-size: 12.5px; }
.mini-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.mini-table th, .mini-table td { text-align: left; padding: 7px 10px 7px 0; border-bottom: 1px solid var(--line); }
.mini-table th { color: var(--muted); font-weight: 500; font-size: 11.5px; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 6px 0 10px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 4px; overflow: hidden; border: 0; padding: 0; background: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.pick.on { outline: 1px solid var(--accent); outline-offset: 1px; }

/* ---------- Capa: selector, menú contextual ---------- */
.modal-back { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .6); display: grid; place-items: center; backdrop-filter: blur(2px); }
.modal { width: min(520px, calc(100vw - 40px)); background: #0e0d0c; border: 1px solid var(--line-2); border-radius: 10px; padding: 18px 20px 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); }
.modal p { margin: 8px 0; line-height: 1.5; }
.m-head { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 500; margin-bottom: 12px; }
.m-lbl { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.m-lbl svg { width: 14px; height: 14px; }
.m-row { display: flex; gap: 8px; }
.m-row .input { flex: 1; }
.m-row.end { justify-content: flex-end; margin-top: 14px; }
.m-or { text-align: center; color: var(--muted); font-size: 11.5px; margin: 12px 0; }
.btn.wide { width: 100%; justify-content: center; padding: 10px; }
.m-hint { color: var(--muted); font-size: 11.5px; margin: 12px 0 0; }
.menu-back { position: fixed; inset: 0; z-index: 60; }
.ctx { position: fixed; z-index: 61; background: #0e0d0c; border: 1px solid var(--line-2); border-radius: 8px; padding: 4px; min-width: 196px; box-shadow: 0 20px 50px rgba(0, 0, 0, .6); }
.ctx button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 7px 10px; border-radius: 5px; text-align: left; font-size: 12.5px; }
.ctx button:hover { background: var(--faint-2); }
.ctx button.danger:hover { color: var(--danger); }
.ctx svg { width: 15px; height: 15px; color: var(--muted); }

/* ---------- Avisos ---------- */
.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); max-width: 640px; z-index: 80;
  padding: 10px 16px; border-radius: 8px; background: #121110; border: 1px solid var(--line-2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6); font-size: 12.5px;
}
.toast.error { border-color: rgba(217, 122, 108, .6); }
.toast.ok { border-color: rgba(201, 164, 92, .6); }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: rgba(235, 225, 205, .09); border-radius: 9px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(235, 225, 205, .18); }
::-webkit-scrollbar-corner, ::-webkit-scrollbar-track { background: transparent; }

/* ---------- Estadísticas · Habilidades ---------- */
.skills .sec-head h2 { font-size: 15px; }
.colorpick { width: 34px; height: 30px; border: 1px solid var(--line); border-radius: 6px; background: none; padding: 2px; }
.skill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 6px; }
.skill-card {
  --lv-a: var(--sc); --lv-b: color-mix(in srgb, var(--sc) 55%, #000);
  text-align: left; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  background: rgba(235, 225, 205, .02); display: flex; flex-direction: column; align-items: stretch; transition: border-color .15s;
}
.skill-card:hover { border-color: color-mix(in srgb, var(--lv-a) 55%, transparent); }
.lv2 { --lv-a: #e0c27f; --lv-b: #8a6a2a; }
.lv3 { --lv-a: #8fbfe6; --lv-b: #2c4f8f; }
.lv4 { --lv-a: #b98be6; --lv-b: #2a1240; }
.sk-img { width: 100%; height: 64px; flex: none; position: relative; overflow: hidden; background: linear-gradient(120deg, color-mix(in srgb, var(--lv-a) 35%, #000), #0b0a09); }
.sk-img img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .85; }
.sk-img-empty { width: 100%; height: 100%; }
.sk-body { width: 100%; padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.sk-top { display: flex; align-items: center; gap: 10px; }
.sk-icon { width: 32px; height: 32px; flex: none; color: var(--lv-a); }
.sk-titles { flex: 1; min-width: 0; }
.sk-name { font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk-lv { font-size: 11px; color: var(--muted); }
.sk-pct { font-size: 20px; font-weight: 300; color: var(--lv-a); font-variant-numeric: tabular-nums; }
.sk-bar { height: 4px; border-radius: 4px; background: var(--faint-2); overflow: hidden; }
.sk-bar i { display: block; height: 100%; border-radius: inherit; background: var(--lv-a); }
.sk-bar.big { height: 4px; margin-top: 12px; }
.sk-hours { font-size: 11.5px; color: var(--muted); margin-top: auto; }
.skill-detail { --lv-a: var(--sc); --lv-b: color-mix(in srgb, var(--sc) 55%, #000); display: flex; flex-direction: column; gap: 14px; }
.skill-detail.lv2 { --lv-a: #e0c27f; } .skill-detail.lv3 { --lv-a: #8fbfe6; } .skill-detail.lv4 { --lv-a: #b98be6; }
.skill-detail > .link { align-self: flex-start; }
.sd-hero { position: relative; border-radius: 8px; overflow: hidden; height: 180px; background: linear-gradient(120deg, color-mix(in srgb, var(--lv-a) 25%, #000), #0b0a09); }
.sd-hero > img, .sd-hero > .sk-img-empty { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sd-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .7), transparent 75%); }
.sd-over { position: absolute; left: 24px; bottom: 30px; z-index: 1; display: flex; align-items: center; gap: 16px; color: #fff; }
.sd-icon { width: 52px; height: 52px; }
.sd-over h1 { margin: 2px 0; font-size: 30px; font-weight: 300; }
.sd-over .eyebrow { color: rgba(255, 255, 255, .8); }
.sd-meta { font-size: 12.5px; color: rgba(255, 255, 255, .8); }
.sd-hero .sk-bar.big { position: absolute; left: 24px; right: 24px; bottom: 14px; z-index: 1; background: rgba(255, 255, 255, .15); }
.sd-cols { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(240px, .8fr); gap: 36px; align-items: start; }
.sd-edit { border-left: 1px solid var(--line); padding-left: 30px; }
.col { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.col label { font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.gtabs { display: flex; gap: 4px; align-items: center; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.tab-l { border: 0; background: none; color: var(--muted); padding: 8px 10px; position: relative; }
.tab-l.active { color: var(--text); }
.tab-l.active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 1px; background: var(--accent); }
.goal-form { display: flex; gap: 8px; align-items: center; margin: 6px 0 10px; flex-wrap: wrap; }
.goal-form .input { flex: 1; min-width: 200px; }
.grec { font-size: 12px; color: var(--muted); display: inline-flex; gap: 5px; align-items: center; white-space: nowrap; }
ul.goals { list-style: none; margin: 0; padding: 0; }
ul.goals ul.goals { padding-left: 24px; border-left: 1px solid var(--line); margin-left: 8px; }
.goal-row { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 5px; }
.goal-row:hover { background: var(--faint); }
.gsel { width: 15px; height: 15px; accent-color: var(--accent); }
.gsel-ph { width: 15px; text-align: center; color: var(--muted); font-size: 11px; }
.gtitle { flex: 1; min-width: 0; }
.goal-edit { flex: 1; padding: 3px 8px; }
.goal-tools { display: inline-flex; align-items: center; gap: 2px; opacity: 0; transition: opacity .12s; }
.goal-row:hover .goal-tools, .goal-row:focus-within .goal-tools { opacity: 1; }
.gmove { max-width: 150px; background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; font-size: 11px; padding: 2px 4px; }
.gmove option { background: #121110; color: var(--text); }
ul.goals.flat .goal-row { border-bottom: 1px solid var(--line); border-radius: 0; }

/* ---------- Roadmap a pantalla completa ---------- */
.rm-full { position: fixed; inset: 0; z-index: 20; pointer-events: none; }
.rm-full .rm-back { pointer-events: auto; }
body.rm::before, body.rm::after { display: none; }
.roadmap-host { position: absolute; inset: 0; }
.roadmap-frame { position: fixed; inset: 0; width: 100vw; height: 100vh; border: 0; background: #0b1012; visibility: hidden; pointer-events: none; z-index: 5; }
.roadmap-frame.shown { visibility: visible; pointer-events: auto; }
.rm-back {
  position: fixed; left: 12px; bottom: 12px; z-index: 20; display: flex; align-items: center; gap: 6px;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(12, 11, 10, .72); color: #ebe6dc; border-radius: 999px;
  padding: 6px 12px 6px 8px; font-size: 12px; backdrop-filter: blur(6px); opacity: .75; transition: opacity .15s;
}
.rm-back:hover { opacity: 1; border-color: var(--accent); }
.rm-back svg { width: 14px; height: 14px; }

@media (max-width: 1150px) {
  .home-grid { grid-template-columns: 1fr; gap: 26px; }
  .clock .date { display: none; }
}

/* =====================================================================
   2.1 · Fluidez, luz y atmósfera
   ===================================================================== */

/* Entrada de vista: el contenido se asienta desde un leve desenfoque */
.content.enter > * { animation: settle .46s var(--ease) both; }
.content.enter .kpi, .content.enter .slide, .content.enter .skill-card, .content.enter .ms-row { animation: settle .5s var(--ease) both; }
.content.enter .kpi:nth-child(2), .content.enter .skill-card:nth-child(2) { animation-delay: .04s; }
.content.enter .kpi:nth-child(3), .content.enter .skill-card:nth-child(3) { animation-delay: .08s; }
.content.enter .kpi:nth-child(4), .content.enter .skill-card:nth-child(4) { animation-delay: .12s; }
.content.enter .kpi:nth-child(n+5), .content.enter .skill-card:nth-child(n+5) { animation-delay: .16s; }
@keyframes settle { from { opacity: 0; transform: translateY(8px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }

/* Encabezados con luz: jerarquía mediante pequeños LED dorados */
.sec-title { display: flex; align-items: center; gap: 8px; }
.sec-title::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #f1d595; box-shadow: var(--glow); }
.slide-label { display: flex; align-items: center; gap: 9px; text-shadow: 0 0 12px rgba(224, 190, 120, .45); }
.slide-label::before { content: ""; width: 18px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent-2)); box-shadow: var(--glow); }
.hello h1 {
  background: linear-gradient(100deg, #f6e7c4 0%, #ebe6dc 35%, #c9a45c 60%, #ebe6dc 85%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 9s ease-in-out infinite; filter: drop-shadow(0 0 18px rgba(201, 164, 92, .18));
}
@keyframes sheen { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.kpi { position: relative; transition: background .25s; }
.kpi:hover { background: linear-gradient(180deg, rgba(201, 164, 92, .06), transparent); }
.kpi:first-child .k-v { color: #f3dca5; text-shadow: 0 0 14px rgba(224, 190, 120, .55), 0 0 40px rgba(201, 164, 92, .25); }
.kpi::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: -1px; height: 1px; background: var(--accent-2); box-shadow: var(--glow); transform: scaleX(0); transition: transform .35s var(--ease); }
.kpi:first-child::after { left: 0; }
.kpi:hover::after { transform: scaleX(1); }
.railbtn.active { color: #f1d595; filter: drop-shadow(0 0 6px rgba(224, 190, 120, .7)); }
.railbtn:hover:not(:disabled) svg { transform: scale(1.1); }
.railbtn svg { transition: transform .2s var(--ease); }
.icon-btn:hover svg { filter: drop-shadow(0 0 5px rgba(224, 190, 120, .8)); }
.brand { text-shadow: 0 0 16px rgba(224, 190, 120, .35); }

/* Tabla: celdas fijas translúcidas para que el fondo atmosférico siga vivo */
.grid .sticky, .grid thead th { background: #070605; }
.grid .sticky { box-shadow: 8px 0 14px -10px rgba(0, 0, 0, .9); }
.grid tbody tr { transition: background .2s; }
.grid tbody tr:not(.pct):not(.jorgi):not(.addrow):hover { background: linear-gradient(90deg, rgba(201, 164, 92, .06), transparent 60%); }
.chk { transition: background .2s, border-color .2s, box-shadow .3s, transform .15s var(--ease); }
.chk:hover { box-shadow: 0 0 0 3px rgba(201, 164, 92, .1); }
.chk.on { background: linear-gradient(160deg, #f0d696, #c9a45c); box-shadow: 0 0 8px -1px rgba(224, 190, 120, .6); }
.chk.pop { animation: pop .5s var(--ease); }
.chk.on.pop { animation: pop .5s var(--ease), flare .9s ease-out; }
@keyframes pop { 0% { transform: scale(.7); } 55% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes flare { 0% { box-shadow: 0 0 0 0 rgba(240, 210, 140, .9), 0 0 24px rgba(240, 210, 140, .9); } 100% { box-shadow: 0 0 0 10px rgba(240, 210, 140, 0), 0 0 8px -1px rgba(224, 190, 120, .6); } }
.ginput { transition: border-color .2s, box-shadow .25s; }
.ginput:focus { box-shadow: 0 0 0 3px rgba(201, 164, 92, .15), 0 0 14px rgba(201, 164, 92, .25); }
.rank { text-shadow: 0 0 8px currentColor; }

/* ---------- Imagen circular: marco dorado vivo ---------- */
.centro { grid-template-columns: minmax(0, 1fr) clamp(300px, 30vw, 440px); }
.center-side { padding-top: 8px; overflow: hidden; }
.orb { overflow: visible; background: none; box-shadow: none; isolation: isolate; }
.orb .orb-img { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; background: #0a0908; box-shadow: 0 0 0 1px var(--line-2); z-index: 2; }
.orb .orb-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08) translate(calc(var(--mx, 0) * 2.5%), calc(var(--my, 0) * 2.5%)); transition: transform .9s var(--ease); }
.orb.empty .orb-img { display: grid; place-items: center; color: var(--muted); box-shadow: 0 0 0 1px var(--line-2) inset; background: rgba(10, 9, 8, .6); }
.orb-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; }
.orb-empty em { font-style: normal; }
.orb.empty:hover .orb-img { color: var(--accent-2); }
.orb:not(.big):hover .orb-img { box-shadow: 0 0 0 1px var(--accent), 0 0 22px rgba(201, 164, 92, .35); }

.orb.big { --i: .55; --spin: 26s; width: min(calc(100% - 48px), 360px); margin: 30px 0 6px; }
.orb.big.tier-positiva { --i: .8; --spin: 18s; }
.orb.big.tier-superior { --i: 1; --spin: 11s; }
.orb.big .orb-img { inset: 7%; box-shadow: 0 0 0 1px rgba(255, 235, 190, calc(.25 + var(--i) * .4)), inset 0 0 40px rgba(0, 0, 0, .55); }
.orb.big .orb-img::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 35% 25%, rgba(255, 240, 200, .18), transparent 45%), radial-gradient(circle, transparent 60%, rgba(0, 0, 0, .45)); pointer-events: none; }
.orb.big .orb-img img { animation: drift 22s ease-in-out infinite alternate; }
@keyframes drift { from { scale: 1; rotate: -1deg; } to { scale: 1.07; rotate: 1.2deg; } }
.orb-aura { position: absolute; inset: -16%; border-radius: 50%; z-index: 0; pointer-events: none;
  background: conic-gradient(from 0deg, transparent, rgba(240, 200, 110, calc(.55 * var(--i))), transparent 25%, rgba(255, 225, 150, calc(.45 * var(--i))), transparent 55%, rgba(201, 150, 60, calc(.6 * var(--i))), transparent 80%);
  filter: blur(26px); opacity: calc(.5 + var(--i) * .5); animation: spin var(--spin) linear infinite; }
.orb-ring { position: absolute; border-radius: 50%; z-index: 1; pointer-events: none; }
.orb-ring.r1 { inset: 1.5%; padding: 2.2%;
  background: conic-gradient(from 0deg, #5a3d14, #f7e0a3, #a8772c, #fff4d2, #7a5420, #e9c477, #4a3210, #f7e0a3, #5a3d14);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
  filter: drop-shadow(0 0 calc(6px + 14px * var(--i)) rgba(240, 200, 110, calc(.35 + .5 * var(--i)))); animation: spin var(--spin) linear infinite; }
.orb-ring.r2 { inset: 4.5%; border: 1px solid rgba(255, 228, 160, calc(.2 + .35 * var(--i)));
  background: conic-gradient(from 90deg, transparent 0 40%, rgba(255, 240, 200, calc(.6 * var(--i))) 48%, transparent 56% 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  animation: spin calc(var(--spin) * .45) linear infinite reverse; }
.orb-orn { position: absolute; inset: -5%; width: 110%; height: 110%; z-index: 1; pointer-events: none; animation: spin calc(var(--spin) * 3) linear infinite reverse; overflow: visible; }
.orb-orn .ticks line { stroke: rgba(240, 205, 130, calc(.25 + .45 * var(--i))); stroke-width: .35; }
.orb-orn .gem { fill: #f6dc9c; filter: drop-shadow(0 0 1.5px rgba(255, 230, 160, .9)); }
.orb-sparks { position: absolute; inset: -6%; z-index: 3; pointer-events: none; animation: spin calc(var(--spin) * .8) linear infinite; opacity: calc(var(--i) * 1.1 - .3); }
.orb-sparks i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff6dc; box-shadow: 0 0 6px 2px rgba(255, 220, 140, .8); animation: twinkle 2.4s ease-in-out infinite; }
.orb-sparks i:nth-child(1) { left: 50%; top: 0; }
.orb-sparks i:nth-child(2) { left: 93%; top: 30%; animation-delay: .5s; }
.orb-sparks i:nth-child(3) { left: 80%; top: 88%; animation-delay: 1s; }
.orb-sparks i:nth-child(4) { left: 10%; top: 80%; animation-delay: 1.5s; }
.orb-sparks i:nth-child(5) { left: 4%; top: 25%; animation-delay: 2s; }
@keyframes spin { to { transform: rotate(1turn); } }
@keyframes twinkle { 0%, 100% { opacity: .15; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.3); } }
.orb.big:hover .orb-ring.r1 { filter: drop-shadow(0 0 22px rgba(255, 220, 140, .85)); }
.orb.big.pop .orb-img { animation: reveal .8s var(--ease); }
@keyframes reveal { from { clip-path: circle(0 at 50% 50%); } to { clip-path: circle(75% at 50% 50%); } }
.avg { font-size: 54px; text-shadow: 0 0 22px rgba(224, 190, 120, calc(.2 + .4 * var(--i, .5))); margin-top: 22px; }
.tier-label { color: var(--accent-2); }

/* ---------- Slides: imágenes a la izquierda, texto del mismo alto a la derecha ---------- */
.slide-body { --q: clamp(260px, min(40vw, 66vh), 640px); grid-template-columns: var(--q) minmax(0, 1fr); align-items: start; gap: 32px; }
.quad { width: var(--q); height: var(--q); aspect-ratio: auto; }
.slide .rt-wrap { height: var(--q); }
.slide .rt { max-height: none; min-height: 0; }
.ph { transition: box-shadow .3s, filter .3s; }
.ph img { transition: transform .9s var(--ease), filter .3s; }
.ph:not(.empty):hover img { transform: scale(1.035); filter: brightness(1.08); }
.ph:not(.empty):hover { box-shadow: 0 0 0 1px rgba(224, 190, 120, .5), 0 10px 40px -12px rgba(201, 164, 92, .45); z-index: 1; }
.ph.empty { transition: color .2s, border-color .2s, background .3s; }
.ph.empty:hover { background: radial-gradient(circle, rgba(201, 164, 92, .08), transparent 70%); }
.ph.pop img, .ph.pop { animation: reveal-sq .7s var(--ease); }
@keyframes reveal-sq { from { clip-path: inset(50% 50% 50% 50%); } to { clip-path: inset(0); } }
.rt-wrap { transition: box-shadow .3s; }
.rt-wrap:focus-within .rt-bar { border-bottom-color: rgba(201, 164, 92, .35); }
.rt-wrap.fs { animation: rise .38s var(--ease); background: rgba(5, 5, 5, .94); backdrop-filter: blur(14px); }
@keyframes rise { from { opacity: 0; transform: scale(.985); } }

/* ---------- Capas ---------- */
.modal-back { animation: fadein .25s ease-out; }
.modal { animation: rise .35s var(--ease); box-shadow: 0 30px 80px rgba(0, 0, 0, .7), 0 0 0 1px rgba(201, 164, 92, .12), 0 0 60px -20px rgba(201, 164, 92, .35); }
.ctx { animation: rise .2s var(--ease); transform-origin: top left; }
.toast:not([hidden]) { animation: toast-in .4s var(--ease); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } }
.toast.ok { box-shadow: 0 20px 60px rgba(0, 0, 0, .6), 0 0 24px -6px rgba(201, 164, 92, .5); }

/* ---------- Interruptores ---------- */
.toggles { display: flex; flex-direction: column; gap: 12px; }
.toggle { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.sw-track { flex: none; width: 34px; height: 18px; border-radius: 999px; border: 1px solid var(--line-2); position: relative; margin-top: 2px; transition: background .25s, border-color .25s, box-shadow .25s; }
.sw-track i { position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--muted); transition: transform .3s var(--ease), background .25s, box-shadow .25s; }
.toggle input:checked + .sw-track { background: rgba(201, 164, 92, .2); border-color: var(--accent); }
.toggle input:checked + .sw-track i { transform: translateX(16px); background: #f1d595; box-shadow: var(--glow); }
.toggle input:focus-visible + .sw-track { outline: 1px solid var(--accent); outline-offset: 2px; }
.toggle b { display: block; font-weight: 500; }
.toggle em { display: block; font-style: normal; color: var(--muted); font-size: 12px; }

/* ---------- Gráfico de calificaciones ---------- */
.line .seg { stroke-width: 2; stroke-linecap: round; }
.line .dot { stroke: #050505; stroke-width: 1.5; filter: drop-shadow(0 0 3px var(--c)); transition: r .2s; }
.line g:hover .dot { r: 5; }
/* Portal 2.2 · Obsidianas: círculo grande, anillo fino y brillo morado que respira */
.line g.obs .dot { stroke: #0b0614; stroke-width: 1.6; filter: drop-shadow(0 0 5px var(--c)) drop-shadow(0 0 12px rgba(150, 110, 255, .55)); }
.line g.obs:hover .dot { r: 7.4; }
.line .obs-ring { fill: none; stroke: var(--c); stroke-width: 1.2; opacity: .55; filter: drop-shadow(0 0 4px var(--c)); animation: obs-breathe 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes obs-breathe { 50% { opacity: .95; transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .line .obs-ring { animation: none; } }
.rank-legend { display: flex; gap: 12px; }
.rank-legend span { display: inline-flex; align-items: center; gap: 5px; }
.rank-legend i { width: 7px; height: 7px; border-radius: 50%; box-shadow: 0 0 5px currentColor; }
.bars .bar { transition: opacity .2s; }
.orb.big { box-shadow: none; }
.center-side { --i: .55; } .center-side.tier-positiva { --i: .8; } .center-side.tier-superior { --i: 1; }
.bars g:hover .bar { opacity: 1; filter: brightness(1.25) drop-shadow(0 0 4px rgba(224, 190, 120, .7)); }
.hm { transition: filter .2s; }
.hm.l5 { filter: drop-shadow(0 0 3px rgba(240, 210, 140, .8)); }
.skill-card { transition: border-color .25s, box-shadow .3s, background .3s; }
.skill-card:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--lv-a) 30%, transparent), 0 16px 40px -20px color-mix(in srgb, var(--lv-a) 70%, transparent); }
.skill-card:hover .sk-img img { transform: scale(1.05); }
.sk-img img { transition: transform .9s var(--ease); }
.sk-bar i { box-shadow: 0 0 8px var(--lv-a); }

/* ---------- Movimiento reducido: sin desplazamientos ni bucles, conservando los cambios de estado ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .orb-aura, .orb-ring, .orb-orn, .orb-sparks, .orb.big .orb-img img, .hello h1 { animation: none !important; }
  .content.enter > * { animation: fadein .2s both !important; }
}

/* =====================================================================
   v2.1 · Hábitos con más aire, imagen del día, 10 creencias clave y marcos por calificación
   ===================================================================== */

/* ---------- Columna de hábitos: más espacio y hasta dos líneas ---------- */
.grid .sticky { min-width: 268px; max-width: 268px; padding: 0 14px 0 22px; }
.grid tbody th.sticky { padding-top: 6px; padding-bottom: 6px; }
.habitname { gap: 4px; }
.habitname .nm {
  white-space: normal; text-overflow: clip; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  line-height: 1.3; overflow-wrap: anywhere; font-size: 13.5px;
}
.grid .sticky .input.slim { width: 100%; }

/* ---------- Inicio: imagen del día junto al mapa de participación ---------- */
.heat-row { display: flex; gap: 22px; align-items: stretch; }
.heat-col { flex: none; min-width: 0; }
.daily-img {
  flex: 1; min-width: 120px; max-width: 520px; min-height: 118px; position: relative; padding: 0; border: 0; border-radius: 4px; overflow: hidden;
  background: rgba(235, 225, 205, .03); box-shadow: 0 0 0 1px rgba(201, 164, 92, .22), 0 18px 50px -26px rgba(201, 164, 92, .5);
  animation: daily-in 1.2s var(--ease) both;
}
.daily-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), filter .4s; filter: saturate(.92) brightness(.92); }
.daily-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(5, 5, 5, .75)); pointer-events: none; }
.daily-img .di-cap { position: absolute; left: 12px; bottom: 9px; z-index: 1; font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: #f1d595; text-shadow: 0 0 10px rgba(224, 190, 120, .6); }
.daily-img:hover img { transform: scale(1.04); filter: saturate(1) brightness(1); }
.daily-img:hover { box-shadow: 0 0 0 1px rgba(224, 190, 120, .55), 0 18px 50px -20px rgba(201, 164, 92, .6); }
.daily-img.empty { display: grid; place-items: center; color: var(--muted); box-shadow: 0 0 0 1px var(--line-2) inset; background: transparent; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
@keyframes daily-in { from { opacity: 0; clip-path: inset(0 0 0 100%); } to { opacity: 1; clip-path: inset(0); } }

/* ---------- Portal: 10 creencias clave ---------- */
.beliefs { border-top: 1px solid var(--line); padding: 22px 0 30px; }
.bl-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 48px; }
.bl-col { list-style: none; margin: 0; padding: 0; }
.belief { display: flex; gap: 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); transition: border-color .25s, background .3s; }
.belief:focus-within { border-bottom-color: rgba(201, 164, 92, .55); background: linear-gradient(90deg, rgba(201, 164, 92, .06), transparent 70%); }
.bl-n { flex: none; min-width: 24px; font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif; font-style: italic; font-size: 15px; color: var(--accent-2); text-shadow: 0 0 10px rgba(224, 190, 120, .45); }
.bl-t { flex: 1; min-width: 0; outline: none; font-size: 15px; line-height: 1.5; min-height: 1.5em; overflow-wrap: anywhere; cursor: text; }
.bl-t:empty::before { content: attr(data-ph); color: var(--muted); opacity: .55; }
.bl-t:focus { color: #f6ead0; }

/* ---------- Marcos de la imagen circular ---------- */
.orb.big .orb-img img { transition: transform .9s var(--ease), filter .8s; }
.orb-orn .gem { transition: fill .4s; }
.orb-orn .gem.silver { fill: #f1f5f9; filter: drop-shadow(0 0 1.6px rgba(235, 242, 250, .95)); }
.orb-orn .gem.gold { fill: #ffe08a; filter: drop-shadow(0 0 2px rgba(255, 214, 110, 1)); }
.orb-orn .gem.sapphire { fill: #3f7dff; stroke: #cfe0ff; stroke-width: .18; filter: drop-shadow(0 0 2.2px rgba(90, 150, 255, 1)); }
.orb-orn .gem.emerald { fill: #22d184; stroke: #d2ffe9; stroke-width: .18; filter: drop-shadow(0 0 2.2px rgba(60, 230, 150, 1)); }
.orb-orn .gem.amethyst { fill: #a65cff; stroke: #f0dcff; stroke-width: .18; filter: drop-shadow(0 0 2.4px rgba(185, 120, 255, 1)); }
.orb-orn .gem.big { animation: gem-pulse 3.2s ease-in-out infinite; }
.orb-orn .spike { fill: #0c0a10; stroke: rgba(175, 125, 255, .7); stroke-width: .22; }
.orb-orn .cracks path { fill: none; stroke: rgba(12, 10, 8, .95); stroke-width: .55; stroke-linecap: round; }
.orb-orn .rust circle { fill: rgba(92, 48, 22, .5); filter: blur(.9px); }
@keyframes gem-pulse { 0%, 100% { filter: drop-shadow(0 0 1.5px rgba(185, 120, 255, .8)); } 50% { filter: drop-shadow(0 0 4px rgba(200, 140, 255, 1)); } }

/* Menor · plata sin brillo, oxidada y rota: pérdida y oscuridad */
.orb.big.tier-menor { --i: .12; --spin: 90s; }
.orb.big.tier-menor .orb-ring.r1 {
  animation: none; filter: drop-shadow(0 0 6px rgba(0, 0, 0, .9));
  background: conic-gradient(from 20deg, #3a3936, #6f6d68, #4a3b2d, #7c7a74, #5a3b20, #615f5a, #2b2a28, #6d5a45, #3a3936);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px)), conic-gradient(#000 0 28deg, transparent 28deg 37deg, #000 37deg 142deg, transparent 142deg 150deg, #000 150deg 251deg, transparent 251deg 256deg, #000 256deg);
  -webkit-mask-composite: source-in;
  mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px)), conic-gradient(#000 0 28deg, transparent 28deg 37deg, #000 37deg 142deg, transparent 142deg 150deg, #000 150deg 251deg, transparent 251deg 256deg, #000 256deg);
  mask-composite: intersect;
}
.orb.big.tier-menor .orb-ring.r2 { animation: none; border-color: rgba(140, 136, 128, .14); background: none; }
.orb.big.tier-menor .orb-aura { animation: none; filter: blur(30px); opacity: 1; background: radial-gradient(circle, rgba(0, 0, 0, .85) 45%, rgba(60, 30, 14, .25) 62%, transparent 72%); }
.orb.big.tier-menor .orb-orn { animation: none; transform: rotate(-7deg); }
.orb.big.tier-menor .orb-orn .ticks line { stroke: rgba(150, 146, 138, .32); }
.orb.big.tier-menor .orb-sparks { display: none; }
.orb.big.tier-menor .orb-img { box-shadow: 0 0 0 1px rgba(120, 116, 110, .25), inset 0 0 60px rgba(0, 0, 0, .9); }
.orb.big.tier-menor .orb-img img { filter: grayscale(.6) sepia(.18) brightness(.62) contrast(1.08); }
.orb-grime { position: absolute; inset: 7%; border-radius: 50%; z-index: 3; pointer-events: none;
  background: radial-gradient(circle at 70% 30%, transparent 25%, rgba(0, 0, 0, .55) 80%), radial-gradient(circle at 25% 80%, rgba(40, 18, 6, .35), transparent 45%);
  animation: grime 9s ease-in-out infinite; }
@keyframes grime { 0%, 100% { opacity: .85; } 50% { opacity: 1; } }
.orb.big.tier-menor:hover .orb-ring.r1 { filter: drop-shadow(0 0 6px rgba(0, 0, 0, .9)); }

/* Media · plata brillante */
.orb.big.tier-base { --i: .6; --spin: 24s; }
.orb.big.tier-base .orb-ring.r1 { background: conic-gradient(from 0deg, #565b61, #f6f9fc, #98a0a8, #ffffff, #69707a, #dfe5ea, #474b51, #f6f9fc, #565b61); filter: drop-shadow(0 0 10px rgba(215, 225, 235, .5)); }
.orb.big.tier-base .orb-ring.r2 { border-color: rgba(230, 238, 245, .35); background: conic-gradient(from 90deg, transparent 0 40%, rgba(250, 252, 255, .6) 48%, transparent 56% 100%); }
.orb.big.tier-base .orb-aura { background: conic-gradient(from 0deg, transparent, rgba(215, 225, 238, .32), transparent 25%, rgba(240, 245, 250, .25), transparent 55%, rgba(170, 182, 196, .3), transparent 80%); }
.orb.big.tier-base .orb-orn .ticks line { stroke: rgba(228, 235, 242, .5); }
.orb.big.tier-base .orb-sparks i { background: #fff; box-shadow: 0 0 6px 2px rgba(220, 232, 245, .85); }
.orb.big.tier-base:hover .orb-ring.r1 { filter: drop-shadow(0 0 20px rgba(230, 238, 248, .8)); }

/* Positiva · oro con partes de oro puro */
.orb.big.tier-positiva { --i: .85; --spin: 17s; }
.orb.big.tier-positiva .orb-ring.r1 { background: conic-gradient(from 0deg, #6b4a17, #ffe9a8, #b8862f, #fff8de, #c9952e, #ffd96b, #7a5520, #fff3c4, #e2aa3a, #6b4a17); }
.orb.big.tier-positiva .orb-orn .ticks line { stroke: rgba(255, 218, 130, .7); }

/* Superior · oro con gemas azules y verdes */
.orb.big.tier-superior { --i: 1; --spin: 12s; }
.orb.big.tier-superior .orb-ring.r1 { background: conic-gradient(from 0deg, #6b4a17, #ffe9a8, #b8862f, #fff4d2, #7a5420, #f0cd7c, #4a3210, #ffe9a8, #6b4a17); }
.orb.big.tier-superior .orb-aura { background: conic-gradient(from 0deg, transparent, rgba(240, 200, 110, .55), transparent 18%, rgba(70, 130, 255, .42), transparent 38%, rgba(255, 225, 150, .45), transparent 58%, rgba(50, 215, 140, .38), transparent 78%, rgba(201, 150, 60, .5), transparent 95%); }
.orb.big.tier-superior .orb-sparks i:nth-child(2n) { background: #e3f0ff; box-shadow: 0 0 6px 2px rgba(90, 150, 255, .85); }
.orb.big.tier-superior .orb-sparks i:nth-child(3) { background: #e0ffef; box-shadow: 0 0 6px 2px rgba(60, 230, 150, .85); }

/* Máxima · obsidiana negra, gemas moradas y azules, brillo morado */
.orb.big.tier-maxima { --i: 1; --spin: 9s; }
.orb.big.tier-maxima .orb-ring.r1 {
  inset: 0; padding: 3.5%;
  background: conic-gradient(from 0deg, #050407, #2c2338, #0a090d, #55456a, #060509, #1d1828, #000, #43345a, #0c0a11, #2c2338, #050407);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 12px), #000 calc(100% - 11px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 12px), #000 calc(100% - 11px));
  filter: drop-shadow(0 0 8px rgba(150, 80, 255, .9)) drop-shadow(0 0 26px rgba(120, 70, 255, .55));
}
.orb.big.tier-maxima .orb-ring.r2 { border-color: rgba(190, 140, 255, .55); background: conic-gradient(from 90deg, transparent 0 35%, rgba(200, 150, 255, .8) 46%, rgba(90, 130, 255, .6) 52%, transparent 60% 100%); }
.orb.big.tier-maxima .orb-aura { inset: -22%; opacity: 1; background: conic-gradient(from 0deg, transparent, rgba(150, 80, 255, .65), transparent 20%, rgba(70, 110, 255, .5), transparent 42%, rgba(190, 110, 255, .6), transparent 64%, rgba(90, 60, 220, .55), transparent 86%); }
.orb.big.tier-maxima .orb-orn { inset: -9%; width: 118%; height: 118%; }
.orb.big.tier-maxima .orb-orn .ticks line { stroke: rgba(185, 145, 255, .6); }
.orb.big.tier-maxima .orb-sparks { opacity: 1; }
.orb.big.tier-maxima .orb-sparks i { background: #f3e6ff; box-shadow: 0 0 8px 3px rgba(170, 100, 255, .9); }
.orb.big.tier-maxima .orb-img { box-shadow: 0 0 0 1px rgba(190, 140, 255, .55), inset 0 0 40px rgba(20, 0, 40, .6); }
.orb.big.tier-maxima::before { content: ""; position: absolute; inset: -4%; border-radius: 50%; z-index: 0; pointer-events: none; box-shadow: 0 0 60px 6px rgba(140, 70, 255, .35); animation: max-breathe 4s ease-in-out infinite; }
@keyframes max-breathe { 0%, 100% { opacity: .55; transform: scale(.98); } 50% { opacity: 1; transform: scale(1.03); } }
.orb.big.tier-maxima:hover .orb-ring.r1 { filter: drop-shadow(0 0 10px rgba(170, 100, 255, 1)) drop-shadow(0 0 32px rgba(120, 70, 255, .7)); }

/* Cifra de la media acompañando al marco */
.center-side.tier-menor { --i: .1; } .center-side.tier-base { --i: .55; } .center-side.tier-maxima { --i: 1; }
.center-side.tier-menor .avg { color: #a8a49c; text-shadow: none; }
.center-side.tier-base .avg { text-shadow: 0 0 22px rgba(220, 230, 240, .35); }
.center-side.tier-maxima .avg { color: #efe2ff; text-shadow: 0 0 24px rgba(170, 100, 255, .65); }

/* Configuración: cuatro imágenes */
.orbs { gap: 28px; }

@media (prefers-reduced-motion: reduce) {
  .orb-grime, .orb.big.tier-maxima::before, .orb-orn .gem.big, .daily-img { animation: none !important; }
}

/* =====================================================================
   v2.2 · Roadmap en la cabecera, hoja activa, To-do, menú de hábitos, reporte, porcentajes y galería
   ===================================================================== */

/* ---------- Cabecera: Roadmap grande y llamativo ---------- */
.brand { margin-right: 14px; }
.rm-big {
  position: relative; margin-right: 22px; padding: 5px 16px 6px; border-radius: 999px; border: 1px solid rgba(224, 190, 120, .55);
  background: linear-gradient(160deg, rgba(240, 214, 150, .16), rgba(201, 164, 92, .06)); color: #f6e2ae;
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif; font-style: italic; font-size: 17px; letter-spacing: .03em; line-height: 1.1;
  text-shadow: 0 0 12px rgba(224, 190, 120, .55); box-shadow: 0 0 18px -6px rgba(224, 190, 120, .7), inset 0 1px 0 rgba(255, 240, 200, .18); overflow: hidden;
}
.rm-big::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 240, 200, .28) 50%, transparent 70%); transform: translateX(-120%); animation: rm-sheen 6s ease-in-out infinite; pointer-events: none; }
.rm-big:hover:not(:disabled) { border-color: #f1d595; box-shadow: 0 0 26px -4px rgba(224, 190, 120, .9), inset 0 1px 0 rgba(255, 240, 200, .25); color: #fff1cc; }
@keyframes rm-sheen { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.nav { flex: 0 1 auto; }

/* ---------- Hoja activa: indicador dorado a la derecha de Bandeja ---------- */
.rm-live {
  display: inline-flex; align-items: center; gap: 9px; margin-left: 14px; min-width: 0; max-width: 440px; flex: 0 1 auto;
  padding: 5px 14px 5px 11px; border-radius: 999px; border: 1px solid rgba(240, 210, 140, .75);
  background: linear-gradient(160deg, rgba(240, 214, 150, .26), rgba(150, 110, 45, .16)); color: #fff1cc;
  box-shadow: 0 0 22px -4px rgba(224, 190, 120, .85), inset 0 1px 0 rgba(255, 240, 200, .25); white-space: nowrap; font-size: 12.5px;
  animation: live-in .5s var(--ease);
}
.rm-live[hidden] { display: none; }
.rm-live:hover { box-shadow: 0 0 30px -2px rgba(240, 210, 140, 1), inset 0 1px 0 rgba(255, 240, 200, .3); }
.rl-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #fff3d6; box-shadow: var(--glow); animation: rl-pulse 1.4s ease-in-out infinite; }
.rl-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.rl-tag { flex: none; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: #e0c27f; }
.rl-time { flex: none; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; color: #fff8e4; text-shadow: 0 0 10px rgba(255, 225, 150, .8); }
.rl-total { flex: none; font-size: 11px; color: #d9c08a; font-variant-numeric: tabular-nums; padding-left: 9px; border-left: 1px solid rgba(240, 210, 140, .35); }
.rm-live.urgent { border-color: #ffd98a; animation: live-urgent 1s ease-in-out infinite; }
@keyframes live-in { from { opacity: 0; transform: translateY(-4px) scale(.96); } }
@keyframes live-urgent { 0%, 100% { box-shadow: 0 0 18px -4px rgba(255, 210, 120, .8); } 50% { box-shadow: 0 0 34px 0 rgba(255, 210, 120, 1); } }
@keyframes rl-pulse { 0%, 100% { opacity: .5; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.15); } }

/* ---------- Hábitos: menú ⋯, vínculo y subtareas ---------- */
.habitname .ib.more { font-size: 15px; line-height: 1; padding: 2px 6px; letter-spacing: 1px; }
.h-link { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 6px var(--c); }
.h-subs { flex: none; font-size: 9.5px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px; display: inline-grid; place-items: center; color: var(--accent-2); border: 1px solid rgba(201, 164, 92, .4); }
.modal.wide-m { width: min(620px, calc(100vw - 40px)); }
.subs { list-style: none; margin: 10px 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 46vh; overflow: auto; }
.subs li { display: flex; gap: 6px; align-items: center; }
.link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.link-opt { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(235, 225, 205, .03); text-align: left; }
.link-opt i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 6px var(--c); }
.link-opt:hover:not(:disabled) { border-color: color-mix(in srgb, var(--c) 70%, transparent); }
.link-opt.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.btn.danger-btn { border-color: rgba(217, 122, 108, .6); color: #f0b7ad; }
.btn.danger-btn:hover:not(:disabled) { background: rgba(217, 122, 108, .15); border-color: var(--danger); color: #fff; }
.ctx-ico { width: 15px; text-align: center; color: var(--muted); }

/* ---------- Reporte del día ---------- */
.report-m .rep-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 10px; }
.report-m .rep-nav b { font-weight: 500; }
.rep-text { width: 100%; min-height: 46vh; resize: vertical; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .35); color: var(--text); font: 13px/1.55 "Cascadia Mono", Consolas, monospace; }
.rep-text:focus { outline: none; border-color: var(--accent); }

/* ---------- Porcentajes personales y vínculos ---------- */
.pct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 22px; }
.pct-in { display: flex; align-items: center; gap: 9px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.pct-in i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 6px var(--c); flex: none; }
.pct-in span { flex: 1; }
.pct-in .input.num { width: 70px; text-align: right; }
.pct-in b { color: var(--accent-2); font-weight: 500; }
.link-table select { max-width: 260px; }

/* ---------- To-do ---------- */
.todo { max-width: 860px; margin: 0 auto; }
.todo-help { margin-top: -4px; }
.todo-help b { color: var(--accent-2); font-weight: 500; }
.tsec { margin: 18px 0 8px; padding: 14px 18px 10px; border-radius: 10px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(235, 225, 205, .035), rgba(235, 225, 205, .01)); box-shadow: 0 14px 40px -26px rgba(0, 0, 0, .9); }
.tsec-h { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.tsec-h h3 { margin: 0; font-size: 15px; font-weight: 600; }
.tsec-h .sec-name-in { max-width: 320px; }
.tcount { font-size: 11.5px; color: var(--muted); }
.tskill { display: inline-flex; align-items: center; gap: 6px; padding: 1px 9px 1px 7px; border-radius: 999px; font-family: "Palatino Linotype", Georgia, serif; font-style: italic; font-size: 12px; color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); background: color-mix(in srgb, var(--c) 10%, transparent); }
.tskill i { width: 5px; height: 5px; border-radius: 50%; background: var(--c); box-shadow: 0 0 6px var(--c); }
.tsec-h .ib.more { font-size: 16px; letter-spacing: 1px; }
.tlist { list-style: none; margin: 0; padding: 0; }
.trow { display: flex; align-items: center; gap: 12px; padding: 9px 2px; border-bottom: 1px solid var(--line); min-height: 42px; }
.trow:hover { background: linear-gradient(90deg, rgba(201, 164, 92, .05), transparent 70%); }
.tchk { flex: none; width: 19px; height: 19px; padding: 0; border-radius: 50%; border: 1.5px solid rgba(224, 190, 120, .6); background: transparent; display: grid; place-items: center; color: var(--on-accent); }
.tchk:hover { background: rgba(224, 190, 120, .15); box-shadow: 0 0 10px -2px rgba(224, 190, 120, .6); }
.tchk svg { width: 11px; height: 11px; stroke-width: 2.6; }
.trow.done .tchk { background: linear-gradient(160deg, #f0d696, #c9a45c); border-color: transparent; }
.ttl { flex: 1; min-width: 0; overflow-wrap: anywhere; cursor: text; line-height: 1.4; }
.trow.done .ttl { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(201, 164, 92, .4); }
.tgoal { color: var(--accent); font-size: 10px; flex: none; }
/* 2.7: faltante de Roadmap conectada (una línea, sin recuadro) */
.tmiss { flex: none; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); opacity: .8; padding-bottom: 1px; border-bottom: 1.5px solid currentColor; box-shadow: 0 2px 6px -4px currentColor; cursor: default; }
.due { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--accent-2); padding: 1px 8px; border-radius: 999px; border: 1px solid rgba(201, 164, 92, .3); }
.due.late { color: #f0a39a; border-color: rgba(217, 122, 108, .5); }
.due-x { border: 0; background: none; color: inherit; opacity: .5; padding: 0 0 0 2px; font-size: 13px; line-height: 1; }
.due-x:hover { opacity: 1; }
.tdel { opacity: 0; }
.trow:hover .tdel { opacity: 1; }
.trow.editing { gap: 10px; }
.tdone-n { font-size: 11.5px; color: var(--muted); padding: 8px 2px 0; }
.tadd { display: flex; align-items: center; gap: 10px; padding: 10px 2px 4px; }
.tplus { color: var(--accent); display: inline-flex; }
.tplus svg { width: 15px; height: 15px; }
.tadd-in { flex: 1; border: 0; background: transparent; padding: 6px 0; font-size: 13.5px; outline: none; border-bottom: 1px solid transparent; }
.tadd-in:focus { border-bottom-color: rgba(201, 164, 92, .45); }
.tadd-in::placeholder { color: var(--muted); }
.tadd-hint { flex: none; font-size: 11.5px; color: #f1d595; opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .25s var(--ease); text-shadow: 0 0 8px rgba(224, 190, 120, .5); }
.tadd-hint.on { opacity: 1; transform: none; }
.secadd { display: flex; gap: 8px; margin: 18px 0 30px; }
.secadd .input { flex: 1; max-width: 360px; }

/* ---------- Portal: galería más contenida y espacios más visibles ---------- */
.pgallery { width: 100%; max-width: 1180px; align-self: center; margin: 6px auto 22px; padding: 0 2%; gap: 10px; grid-auto-rows: clamp(150px, calc((100vh - 52px - 120px) / 2.35), 340px); }
.ph { box-shadow: 0 10px 30px -16px rgba(0, 0, 0, .95), 0 0 0 1px rgba(235, 225, 205, .07); border-radius: 6px; }
.ph.empty { border: 1px dashed rgba(224, 190, 120, .32); background: linear-gradient(160deg, rgba(235, 225, 205, .05), rgba(235, 225, 205, .015)); box-shadow: inset 0 0 24px rgba(0, 0, 0, .45), 0 10px 30px -18px rgba(0, 0, 0, .9); }
.ph.empty svg { opacity: .8; }
.quad { gap: 6px; }
.rt-wrap { padding: 12px 16px 14px; border-radius: 8px; background: rgba(235, 225, 205, .025); box-shadow: inset 0 0 0 1px rgba(235, 225, 205, .06), 0 14px 40px -28px rgba(0, 0, 0, .95); }
.rt-wrap:focus-within { box-shadow: inset 0 0 0 1px rgba(201, 164, 92, .3), 0 14px 40px -24px rgba(201, 164, 92, .35); }
.beliefs .bl-cols { padding: 6px 18px; border-radius: 8px; background: rgba(235, 225, 205, .02); box-shadow: inset 0 0 0 1px rgba(235, 225, 205, .06); }

/* Cabecera compacta cuando hay hoja activa o la ventana es estrecha */
.top { gap: 0; }
.top-r, .rm-big, .brand { flex: none; }
.top:has(.rm-live:not([hidden])) .nav-i { padding: 0 9px; }
.top:has(.rm-live:not([hidden])) .savestate, .top:has(.rm-live:not([hidden])) .led { display: none; }
.top:has(.rm-live:not([hidden])) .clock .date { display: none; }
.rl-name { max-width: 190px; }
.clock .date { white-space: nowrap; }
@media (max-width: 1500px) { .clock .date { display: none; } }
@media (max-width: 1250px) { .rl-total { display: none; } .rl-name { max-width: 120px; } .nav-i { padding: 0 8px; } }
.bell { color: #f1d595; margin-right: 2px; }
/* =====================================================================
   Portal 2.0
   ===================================================================== */
/* ---------- Lenguaje de Roadmap en textos ---------- */
.mk-tag { display: inline-flex; align-items: center; gap: 5px; margin-left: 4px; padding: 0 7px 0 6px; border-radius: 999px; vertical-align: 1px; white-space: nowrap;
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif; font-style: italic; font-weight: 600; font-size: .82em; color: var(--c);
  background: color-mix(in srgb, var(--c) 11%, transparent); border: 1px solid color-mix(in srgb, var(--c) 38%, transparent); text-decoration: none; }
.mk-tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--c); box-shadow: 0 0 6px var(--c); }
.mk-nim, .mk-off { display: inline-block; margin-left: 4px; font-size: 10.5px; letter-spacing: .04em; color: var(--accent-2); border: 1px solid rgba(201, 164, 92, .35); border-radius: 5px; padding: 0 5px; vertical-align: 1px; }
.mk-off { color: var(--muted); border-color: var(--line-2); }

/* ---------- Cronómetro de habilidad ---------- */
.tm-live { display: inline-flex; align-items: center; gap: 8px; margin-left: 10px; padding: 5px 13px 5px 10px; border-radius: 999px; white-space: nowrap; font-size: 12.5px;
  border: 1px solid color-mix(in srgb, var(--c) 70%, transparent); color: #fff; background: color-mix(in srgb, var(--c) 18%, rgba(0, 0, 0, .3));
  box-shadow: 0 0 20px -6px var(--c); animation: live-in .5s var(--ease); }
.tm-live[hidden] { display: none; }
.tm-live .rl-dot { background: var(--c); box-shadow: 0 0 8px var(--c); }
.tm-live .rl-time { color: #fff; text-shadow: 0 0 10px var(--c); }
.tm-live .rl-total { color: color-mix(in srgb, var(--c) 50%, #ddd); border-left-color: color-mix(in srgb, var(--c) 40%, transparent); }
.tm-live.paused { opacity: .75; box-shadow: none; }
.tm-live.paused .rl-dot { animation: none; opacity: .5; }
.top:has(.tm-live:not([hidden])) .savestate, .top:has(.tm-live:not([hidden])) .led { display: none; }

.tmr-panel { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--sc) 30%, var(--line));
  background: linear-gradient(110deg, color-mix(in srgb, var(--sc) 9%, transparent), transparent 70%); }
.tmr-start { display: flex; align-items: center; gap: 14px; border: 0; background: none; color: var(--text); text-align: left; padding: 0; width: 100%; }
.tmr-start b { display: block; font-size: 15px; font-weight: 500; }
.tmr-start em { display: block; font-style: normal; color: var(--muted); font-size: 12px; margin-top: 2px; }
.tmr-start:hover b { color: color-mix(in srgb, var(--sc) 60%, #fff); }
.tmr-play { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--sc) 70%, transparent); display: grid; place-items: center;
  background: color-mix(in srgb, var(--sc) 16%, transparent); box-shadow: 0 0 18px -6px var(--sc); transition: transform .2s var(--ease), box-shadow .25s; }
.tmr-play::before { content: ""; margin-left: 3px; border-left: 11px solid color-mix(in srgb, var(--sc) 55%, #fff); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.tmr-start:hover .tmr-play { transform: scale(1.06); box-shadow: 0 0 26px -4px var(--sc); }
.tmr-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--sc); box-shadow: 0 0 10px var(--sc); animation: rl-pulse 1.4s ease-in-out infinite; }
.tmr-panel.paused .tmr-dot { animation: none; background: var(--danger); box-shadow: 0 0 10px var(--danger); }
.tmr-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tmr-info b { font-size: 20px; font-weight: 300; font-variant-numeric: tabular-nums; }
.tmr-panel.paused .tmr-info b { font-size: 15px; font-weight: 500; }
.tmr-info span { color: var(--muted); font-size: 12px; }
.tmr-prog { height: 3px; border-radius: 3px; background: var(--faint-2); overflow: hidden; margin-top: 4px; }
.tmr-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--sc) 50%, #000), var(--sc)); box-shadow: 0 0 8px var(--sc); transition: width .45s linear; }

.tmr-overlay { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; background: radial-gradient(ellipse at center, rgba(10, 8, 6, .55), rgba(2, 2, 2, .84)); backdrop-filter: blur(7px); animation: fadein .25s ease-out; }
.tmr-modal { position: relative; width: min(480px, 92vw); background: linear-gradient(180deg, #120f0a, #080706); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); border-radius: 14px;
  padding: 26px 26px 22px; box-shadow: 0 40px 120px #000d, 0 0 70px -24px var(--c); animation: settle .4s var(--ease); }
.tmr-modal::before { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--c), transparent); box-shadow: 0 0 10px var(--c); }
.tmr-eye { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--c); font-weight: 600; }
.tmr-modal h2 { margin: 8px 0 16px; font-size: 23px; font-weight: 300; }
.tmr-bar { height: 4px; border-radius: 9px; background: color-mix(in srgb, var(--c) 15%, transparent); overflow: hidden; }
.tmr-bar i { display: block; height: 100%; background: var(--c); box-shadow: 0 0 10px var(--c); transition: width .45s linear; }
.tmr-left { font-size: 12px; color: var(--muted); margin: 7px 0 12px; }
.tmr-opt { display: flex; gap: 9px; align-items: center; font-size: 13.5px; cursor: pointer; }
.tmr-opt input { width: 17px; height: 17px; accent-color: var(--c); }
.tmr-btns { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.tmr-btns button { font-weight: 600; border-radius: 8px; padding: 10px 26px; border: 1px solid var(--line-2); background: rgba(235, 225, 205, .04); }
.tmr-btns .yes { background: var(--c); color: #0b0907; border-color: transparent; box-shadow: 0 0 18px -4px var(--c); }

/* ---------- Habilidad: volver, ⋯, objetivos lejanos, logros, mapa de calor ---------- */
.sd-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px 9px 13px; border-radius: 999px; font-size: 14.5px; font-weight: 500;
  border: 1px solid color-mix(in srgb, var(--sc) 45%, var(--line-2)); background: color-mix(in srgb, var(--sc) 8%, rgba(0, 0, 0, .25)); color: var(--text); }
.sd-back-arrow { font-size: 19px; line-height: 1; transition: transform .2s var(--ease); }
.sd-back:hover { border-color: var(--sc); box-shadow: 0 0 20px -8px var(--sc); }
.sd-back:hover .sd-back-arrow { transform: translateX(-4px); }
.sd-more { position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 32px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(0, 0, 0, .45); color: #fff; font-size: 18px; letter-spacing: 1px; line-height: 1; opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s var(--ease); backdrop-filter: blur(4px); }
.sd-hero:hover .sd-more, .sd-more:focus-visible { opacity: 1; transform: none; }
.sd-more:hover { background: rgba(0, 0, 0, .7); border-color: var(--sc); }
.far-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.far-list { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.far { padding: 10px 12px; border-radius: 9px; border: 1px solid color-mix(in srgb, var(--sc) 22%, var(--line)); background: linear-gradient(120deg, color-mix(in srgb, var(--sc) 7%, transparent), transparent); }
.far-row { display: flex; align-items: center; gap: 8px; }
.far-t { flex: 1; min-width: 0; font-size: 13.5px; }
.far-t::before { content: "✦ "; color: var(--sc); }
.far-tools { display: flex; gap: 2px; opacity: 0; transition: opacity .15s; }
.far:hover .far-tools { opacity: 1; }
.far-ms { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ms { position: relative; overflow: hidden; display: inline-flex; align-items: baseline; gap: 6px; padding: 3px 22px 3px 9px; border-radius: 6px; border: 1px solid var(--line-2); font-size: 11.5px; }
.ms i { position: absolute; left: 0; top: 0; bottom: 0; background: color-mix(in srgb, var(--sc) 18%, transparent); z-index: 0; }
.ms b, .ms em { position: relative; z-index: 1; }
.ms b { font-weight: 500; }
.ms em { font-style: normal; color: var(--muted); }
.ms.on { border-color: var(--sc); box-shadow: 0 0 12px -6px var(--sc); }
.ms.on em { color: color-mix(in srgb, var(--sc) 60%, #fff); }
.ms-x { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); z-index: 1; border: 0; background: none; color: var(--muted); padding: 0 3px; opacity: 0; }
.ms:hover .ms-x { opacity: 1; }
.ms-form, .far-add { display: flex; gap: 6px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.ms-form .input:first-child, .far-add .input { flex: 1; min-width: 140px; }
.ms-form .num { width: 70px; }
.sd-ach, .sd-heat { margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; }
.ach { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); opacity: .5; }
.ach-ico { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; border: 1px solid var(--line-2); color: var(--muted); }
.ach-t b { display: block; font-size: 12.5px; font-weight: 500; }
.ach-t em { display: block; font-style: normal; font-size: 11px; color: var(--muted); }
.ach.on { opacity: 1; border-color: color-mix(in srgb, var(--sc) 40%, transparent); background: linear-gradient(120deg, color-mix(in srgb, var(--sc) 10%, transparent), transparent); }
.ach.on .ach-ico { color: #120e08; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--sc) 40%, #fff), var(--sc)); border-color: transparent; box-shadow: 0 0 12px -3px var(--sc); }
.ach.custom.on .ach-ico { background: radial-gradient(circle at 35% 30%, #fff3d6, #c9a45c); box-shadow: var(--glow); }
.skheat .sh { fill: rgba(235, 225, 205, .05); }
.skheat .sh.l1 { fill: color-mix(in srgb, var(--sc) 18%, transparent); }
.skheat .sh.l2 { fill: color-mix(in srgb, var(--sc) 36%, transparent); }
.skheat .sh.l3 { fill: color-mix(in srgb, var(--sc) 56%, transparent); }
.skheat .sh.l4 { fill: color-mix(in srgb, var(--sc) 78%, transparent); }
.skheat .sh.l5 { fill: var(--sc); }
.skheat .sh:hover { stroke: #fff; stroke-width: 1; }

/* Tarjetas: rango, foco dorado, habilidad olvidada, cronómetro */
.sk-img { position: relative; }
.sk-rank, .sk-focus, .sk-forgot, .sk-timing { position: absolute; z-index: 1; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; backdrop-filter: blur(4px); }
.sk-rank { left: 8px; bottom: 8px; background: rgba(0, 0, 0, .55); color: color-mix(in srgb, var(--sc) 55%, #fff); border: 1px solid color-mix(in srgb, var(--sc) 40%, transparent); }
.sk-focus { right: 8px; top: 8px; background: linear-gradient(160deg, #f0d696, #c9a45c); color: #17120a; font-weight: 600; box-shadow: var(--glow); }
.sk-forgot { left: 8px; top: 8px; background: rgba(0, 0, 0, .6); color: #e0b0a6; border: 1px solid rgba(217, 122, 108, .4); }
.sk-timing { right: 8px; bottom: 8px; background: color-mix(in srgb, var(--sc) 70%, #000); color: #fff; animation: rl-pulse 1.6s ease-in-out infinite; }
.skill-card.rk3, .skill-card.rk4 { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sc) 22%, transparent); }
.skill-card.rk5 { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sc) 45%, transparent), 0 0 24px -12px var(--sc); }
.skill-card.focus-gold { border-color: rgba(224, 190, 120, .75); box-shadow: 0 0 0 1px rgba(224, 190, 120, .35), 0 0 30px -10px rgba(224, 190, 120, .9); }
.skill-card.focus-gold .sk-name { color: #f1d595; }
.skill-card.forgotten .sk-img img { filter: grayscale(var(--dim)) brightness(calc(1 - var(--dim) * .45)); }
.skill-card.forgotten { opacity: calc(1 - var(--dim) * .35); }
.skill-detail.focus-gold .sd-hero { box-shadow: 0 0 0 1px rgba(224, 190, 120, .6), 0 0 40px -14px rgba(224, 190, 120, .9); }
.ms-row.focus-gold .ms-n { color: #f1d595; }
.ms-row.focus-gold .ms-n::after { content: " ✦"; font-size: 10px; color: #e0c27f; }

/* ---------- Inicio: creencia, prioridades, avisos ---------- */
.belief-day { margin: 6px 0 0; max-width: 820px; font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif; font-style: italic; font-size: 16px; color: #e8dcc0; line-height: 1.45; }
.belief-day span { display: block; font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif; font-style: normal; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 3px; }
.home-v2 { margin-top: 22px; }
.prio-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.prio-row .prio-in { flex: 1; background: transparent; border-color: transparent; font-size: 14px; }
.prio-row .prio-in:hover, .prio-row .prio-in:focus { border-color: var(--line-2); background: rgba(0, 0, 0, .3); }
.prio-row.done .prio-in { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(201, 164, 92, .5); }
.prio-row.done .tchk { background: linear-gradient(160deg, #f0d696, #c9a45c); border-color: transparent; }
/* Portal 2.2 · Prioridades más llamativas: número dorado, línea con brillo a la izquierda y texto más grande */
.prio .sec-title { display: flex; align-items: center; gap: 10px; }
.prio .prio-count { margin-left: auto; font-variant-numeric: tabular-nums; color: #f1d595; letter-spacing: .08em; text-shadow: 0 0 10px rgba(224, 190, 120, .5); }
.prio-row { position: relative; padding: 9px 0 9px 14px; border-bottom: 1px solid rgba(201, 164, 92, .14); }
.prio-row::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1.5px; border-radius: 2px; background: rgba(201, 164, 92, .22); transition: background .3s, box-shadow .3s; }
.prio-row.filled::before { background: linear-gradient(180deg, #f1d595, #c9a45c); box-shadow: 0 0 8px rgba(224, 190, 120, .75), 0 0 18px rgba(201, 164, 92, .35); }
.prio-row.done::before { background: rgba(155, 185, 138, .7); box-shadow: 0 0 8px rgba(155, 185, 138, .45); }
.prio-n { width: 16px; flex: none; text-align: center; font: 300 19px/1 "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-style: italic; color: rgba(201, 164, 92, .45); }
.prio-row.filled .prio-n { color: #f1d595; text-shadow: 0 0 12px rgba(224, 190, 120, .7); }
.prio-row.filled .prio-in { font-size: 15.5px; color: #f6ead0; letter-spacing: .01em; }
.prio-row.filled:not(.done) .prio-in { text-shadow: 0 0 14px rgba(224, 190, 120, .18); }
.prio-row.done .prio-n { color: rgba(155, 185, 138, .8); text-shadow: none; }
.notices { display: flex; flex-direction: column; gap: 8px; }
.notices .sec-title { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.notices .sec-title .link { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 400; }
.notice { --c: #c9a45c; display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 9px 12px; border-radius: 8px; color: var(--text);
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); background: linear-gradient(110deg, color-mix(in srgb, var(--c) 10%, transparent), transparent); }
.notice b { font-weight: 500; }
.notice span { color: var(--muted); font-size: 12px; }
.notice.gold { border-color: rgba(224, 190, 120, .7); box-shadow: 0 0 22px -10px rgba(224, 190, 120, .9); }
.notice:hover { border-color: var(--c); }
.setup { border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; }
.setup-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.setup-h b { font-weight: 500; }
.setup-i { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; border: 0; background: none; padding: 6px 2px; color: var(--text); border-radius: 6px; }
.setup-i:hover { background: var(--faint); }
.setup-i i { flex: none; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; border: 1.5px solid rgba(224, 190, 120, .6); display: grid; place-items: center; }
.setup-i i svg { width: 9px; height: 9px; stroke-width: 3; }
.setup-i.done i { background: linear-gradient(160deg, #f0d696, #c9a45c); border-color: transparent; color: #17120a; }
.setup-i b { display: block; font-weight: 400; font-size: 13px; }
.setup-i em { display: block; font-style: normal; color: var(--muted); font-size: 11.5px; }
.setup-i.done b { color: var(--muted); text-decoration: line-through; }
.focus-week > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.focus-chip { padding: 4px 11px; border-radius: 999px; font-size: 12px; color: #17120a; font-weight: 600; border: 0; background: linear-gradient(160deg, #f0d696, #c9a45c); box-shadow: 0 0 14px -5px rgba(224, 190, 120, .9); }

/* ---------- Centro: bitácora ---------- */
th.dcol[data-act="journal"] { cursor: pointer; }
th.dcol[data-act="journal"]:hover .dn { color: var(--accent-2); }
th.dcol.has-note .dhead { position: relative; }
th.dcol.has-note .dhead::after { content: ""; position: absolute; left: 50%; bottom: -3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: #f1d595; box-shadow: var(--glow); }
.hovercard { position: fixed; z-index: 80; max-width: 290px; padding: 9px 12px; border-radius: 8px; background: #0e0d0c; border: 1px solid rgba(201, 164, 92, .4); box-shadow: 0 16px 40px rgba(0, 0, 0, .6);
  font-size: 12.5px; line-height: 1.45; white-space: pre-line; pointer-events: none; animation: fadein .15s ease-out; }
.hovercard::first-line { color: var(--accent-2); font-size: 11px; letter-spacing: .06em; }
.jr-text { width: 100%; resize: vertical; min-height: 80px; font-family: inherit; line-height: 1.5; }

/* ---------- To-do: columnas y envío a Roadmap ---------- */
.todo.cols-2, .todo.cols-3 { max-width: none; }
.tcols { display: grid; gap: 0 20px; align-items: start; }
.cols-1 .tcols { grid-template-columns: minmax(0, 1fr); }
.cols-2 .tcols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 .tcols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tcol { min-width: 0; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 7px; overflow: hidden; margin-right: 8px; }
.seg button { border: 0; background: none; color: var(--muted); padding: 3px 11px; font-size: 12px; }
.seg button + button { border-left: 1px solid var(--line-2); }
.seg button.on { background: rgba(201, 164, 92, .18); color: var(--accent-2); }
.trm { opacity: 0; }
.trm svg { width: 14px; height: 14px; }
.trow:hover .trm { opacity: .8; }

/* ---------- Calendario ---------- */
.cal { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.cal-range { color: var(--muted); font-size: 13px; margin-left: 10px; }
.cal-quick { margin: 4px 0 12px; max-width: 760px; }
.cal-headrow { display: grid; grid-template-columns: 54px repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.cal-dh { text-align: center; padding: 6px 0; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.cal-dh b { display: block; font-size: 20px; font-weight: 300; color: var(--text); letter-spacing: 0; }
.cal-dh.today b { color: #f1d595; text-shadow: 0 0 12px rgba(224, 190, 120, .7); }
.cal-scroll { flex: 1; min-height: 340px; max-height: calc(100vh - 290px); overflow-y: auto; overflow-x: hidden; border-bottom: 1px solid var(--line); scrollbar-gutter: stable; }
.cal-headrow { overflow: hidden; scrollbar-gutter: stable; }
.cal-grid { position: relative; display: grid; grid-template-columns: 54px repeat(7, minmax(0, 1fr)); }
.cal-hours { position: relative; }
.cal-hr { position: absolute; right: 8px; transform: translateY(-6px); font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cal-col { position: relative; border-left: 1px solid var(--line); cursor: copy;
  background-image: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 42px); }
.cal-col.today { background-color: rgba(201, 164, 92, .035); }
.cal-rm { position: absolute; left: 0; right: 0; overflow: hidden; pointer-events: auto; cursor: default;
  background: color-mix(in srgb, var(--c) 13%, transparent); border-left: 2px solid color-mix(in srgb, var(--c) 70%, transparent); }
.cal-rm span { display: block; padding: 2px 6px; font-size: 10.5px; color: color-mix(in srgb, var(--c) 55%, #ddd); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-it { position: absolute; z-index: 2; overflow: hidden; text-align: left; padding: 3px 6px; border-radius: 6px; font-size: 11.5px; line-height: 1.25; color: #17120a;
  border: 1px solid transparent; background: linear-gradient(160deg, #f0d696, #c9a45c); box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .8); cursor: pointer; }
.cal-it b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-it em { display: block; font-style: normal; font-size: 10.5px; opacity: .8; }
.cal-it.tarea { background: #2a2620; color: var(--text); border-color: var(--line-2); }
.cal-it.clash { outline: 2px solid #d97a6c; outline-offset: -1px; }
/* Portal 2.1 · calendario preciso: medias horas, categoría, importante, recordatorios y arrastre */
.cal-col { background-image: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px calc(var(--calh, 42px) / 2), rgba(235, 225, 205, .03) calc(var(--calh, 42px) / 2) calc(var(--calh, 42px) / 2 + 1px), transparent calc(var(--calh, 42px) / 2 + 1px) var(--calh, 42px)); }
.cal-it.cat { background: linear-gradient(160deg, color-mix(in srgb, var(--c) 55%, #fff), var(--c)); color: #120e08; }
.cal-it.clash { outline: 0; box-shadow: inset 0 -3px 0 #d97a6c, 0 6px 16px -8px rgba(0, 0, 0, .8); }
.cal-it.important { outline: 2px solid #f1d595; outline-offset: 1px; box-shadow: 0 0 6px rgba(224, 190, 120, .9), 0 0 18px rgba(201, 164, 92, .55); z-index: 3; }
.cal-it.important.clash { box-shadow: inset 0 -3px 0 #d97a6c, 0 0 6px rgba(224, 190, 120, .9), 0 0 18px rgba(201, 164, 92, .55); }
.cal-rem { position: absolute; left: 0; right: 0; height: 0; border-top: 1.5px dashed #e0c27f; z-index: 4; pointer-events: auto; cursor: default; }
.cal-rem span { position: absolute; left: 3px; top: -9px; max-width: calc(100% - 6px); padding: 0 5px; border-radius: 4px; background: rgba(5, 5, 5, .85); color: #f1d595; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-rem.done { opacity: .5; }
.cal-guide { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid rgba(241, 213, 149, .7); z-index: 5; pointer-events: none; }
.cal-guide::after { content: attr(data-t); position: absolute; right: 3px; top: -8px; font-size: 10px; color: #f1d595; background: rgba(5, 5, 5, .85); padding: 0 4px; border-radius: 3px; font-variant-numeric: tabular-nums; }
.cal-ghost { position: absolute; left: 2px; right: 2px; z-index: 6; pointer-events: none; border-radius: 6px; border: 1.5px solid #f1d595; background: rgba(201, 164, 92, .18); box-shadow: 0 0 6px rgba(224, 190, 120, .9), 0 0 18px rgba(201, 164, 92, .55); }
.cal-ghost::after { content: attr(data-t); position: absolute; left: 6px; top: 3px; font-size: 11px; font-weight: 600; color: #fff1cc; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ev-imp { margin: 4px 0 2px; }
.ev-imp .toggle { display: flex; flex-direction: row; align-items: flex-start; gap: 12px; }
.cal-now { position: absolute; left: 0; right: 0; height: 2px; background: #f1d595; box-shadow: var(--glow); z-index: 3; pointer-events: none; }
.cal-now::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: #f1d595; }
.content[data-view="calendario"] { display: flex; flex-direction: column; }

/* ---------- Revisión semanal ---------- */
.semana .kpis { margin: 10px 0 24px; }
.delta { font-size: 11px; margin-right: 4px; }
.delta.up { color: #8fd19e; }
.delta.down { color: #e0837a; }
.wk-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 70px; gap: 12px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.wk-bars { position: relative; height: 12px; }
.wk-bars i { position: absolute; left: 0; border-radius: 3px; }
.wk-bars .prev { top: 7px; height: 4px; background: color-mix(in srgb, var(--c) 30%, transparent); }
.wk-bars .now { top: 0; height: 6px; background: var(--c); box-shadow: 0 0 8px -2px var(--c); }
.wk-v { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.week-pick.on { box-shadow: 0 0 16px -6px var(--c); }

/* ---------- Configuración ---------- */
.cfg-i.cfg-hidden { opacity: .06; margin-top: 18px; font-size: 11px; }
.cfg-i.cfg-hidden:hover, .cfg-i.cfg-hidden.active { opacity: .9; }
.cfg-nums { margin: 10px 0 4px; align-items: flex-end; }
.cfg-area { width: min(520px, 100%); resize: vertical; font-family: inherit; line-height: 1.5; }
.toggle.inline { display: inline-flex; vertical-align: middle; margin-left: 8px; }
.rank-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 22px; }
.rank-grid .pct-in .input.slim { flex: 1; }
.ideas { list-style: none; padding: 0; margin: 12px 0; display: flex; flex-direction: column; gap: 8px; }
.ideas li { padding: 10px 14px; border-radius: 8px; border: 1px dashed var(--line-2); }
.ideas b { display: block; font-weight: 500; }
.ideas span { color: var(--muted); font-size: 12.5px; }
.cfg-body.wide { max-width: none; padding-right: 0; }
.guide-wrap { height: calc(100vh - 120px); }
.guide-frame { width: 100%; height: 100%; border: 1px solid var(--line); border-radius: 10px; background: #0b0a09; }

/* Portal 2.2 · Todas las listas desplegables con opciones oscuras (elegir categoría, día, modo…) */
select, select.input { color-scheme: dark; }
select option, select optgroup { background: #0e0c0a; color: #ebe6dc; }
select option:checked { background: #2a2116; color: #f6ead0; }

/* =====================================================================
   2.3 · Cuarto de pantalla: Portal usable en ventanas pequeñas (≈ 640 × 340 en adelante)
   ===================================================================== */
@media (max-width: 1000px) {
  .app { grid-template-columns: minmax(0, 1fr) 40px; }
  .top { padding: 0 8px 0 12px; }
  .brand { display: none; }
  .rm-big { padding: 4px 12px !important; font-size: 15px !important; margin-right: 6px; }
  .nav { overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav-i { padding: 0 7px; font-size: 12px; }
  .savestate, .led { display: none; }
  .clock { padding-left: 8px; }
  .clock .time { font-size: 16px; }
  .railbtn { width: 30px; height: 30px; }
  .railbtn svg { width: 15px; height: 15px; }
  .content { padding: 14px 14px 22px; }
  .rl-name { max-width: 90px; }
}
@media (max-width: 760px) {
  .top-r .icon-btn { display: none; }
  .rm-live .rl-total, .tm-live .rl-total { display: none; }
  .content h2 { font-size: 18px; }
  .home-grid, .cfg-grid, .grid2, .two-col { grid-template-columns: 1fr !important; }
}
@media (max-height: 560px) {
  .app { grid-template-rows: 40px minmax(0, 1fr); }
  .content { padding-top: 10px; padding-bottom: 14px; }
  .rail { gap: 1px; }
  .rail-sep { margin: 2px 0; }
  .railbtn { width: 28px; height: 28px; }
}
@media (max-width: 1000px) {
  /* Centro: en ventana pequeña la tabla ocupa todo el ancho; la imagen del día pasa abajo */
  .centro { grid-template-columns: minmax(0, 1fr); height: auto; gap: 18px; }
  .centro .tracker { min-height: min(78vh, 560px); }
}

/* =====================================================================
   2.3 · Tu día (anillo) y avisos priorizados
   ===================================================================== */
.notices .sec-title { display: flex; align-items: center; gap: 12px; }
.notices .sec-title .spacer { flex: 1; }
.dayring { --c: #e7c46a; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; align-items: center; padding: 4px 0 16px; margin-bottom: 6px;
  border-bottom: 1px solid rgba(201, 164, 92, .14); position: relative; }
.dayring svg { width: 112px; height: 112px; grid-column: 1; grid-row: 1; transform: rotate(-90deg); overflow: visible; }
.dayring .trk { fill: none; stroke: rgba(235, 225, 205, .07); stroke-width: 7; }
.dayring .arc { fill: none; stroke: var(--c); stroke-width: 7; stroke-linecap: round; filter: drop-shadow(0 0 6px var(--c)) drop-shadow(0 0 14px color-mix(in srgb, var(--c) 45%, transparent));
  transition: stroke-dasharray 1.2s var(--ease), stroke .8s; }
.dayring .dr-in { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
.dayring .dr-in b { font: 300 32px/1 "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; color: #f6ead0; font-variant-numeric: tabular-nums; text-shadow: 0 0 18px color-mix(in srgb, var(--c) 50%, transparent); }
.dayring .dr-in span { margin-top: 4px; font-size: 9.5px; letter-spacing: .2em; color: color-mix(in srgb, var(--c) 75%, #d8cfbf); }
.dayring .dr-in em { font-style: normal; font-size: 10.5px; color: #8f877a; margin-top: 2px; font-variant-numeric: tabular-nums; }
.dayring .dr-txt { min-width: 0; }
.dayring .dr-h { font-size: 15.5px; color: #f6ead0; margin-bottom: 6px; position: relative; padding-left: 14px; }
.dayring .dr-h::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1.5px; background: var(--c); box-shadow: 0 0 8px var(--c); border-radius: 2px; }
.dayring .dr-l { font-size: 12.5px; color: #b9b1a3; line-height: 1.6; }
.dayring .dr-l b { color: #ebe6dc; font-weight: 500; }
.dayring .dr-chip { margin-top: 8px; border: 1px solid rgba(235, 225, 205, .14); background: transparent; color: #b9b1a3; border-radius: 999px; padding: 3px 12px; font-size: 12px; }
.dayring .dr-chip:hover { border-color: color-mix(in srgb, var(--c) 60%, transparent); color: #ebe6dc; }
.notice .n-row { display: flex; gap: 14px; margin-top: 4px; }
.notice .n-act { font-size: 12.5px; padding: 0; }
div.notice { cursor: default; }
.notice.n0 { --c: #d97a6c; }
.notice.n3 { --c: #9bb98a; }
.more-notices { display: block; margin-top: 8px; font-size: 12.5px; }
@media (max-width: 760px) { .dayring { grid-template-columns: 86px minmax(0, 1fr); gap: 12px; } .dayring svg { width: 86px; height: 86px; } .dayring .dr-in b { font-size: 24px; } }
/* 2.3 · Botón de modo enfoque en la barra superior */
.icon-btn.focus-btn.on { color: #f1d595; filter: drop-shadow(0 0 6px rgba(224, 190, 120, .8)); }
.icon-btn.focus-btn.on svg { animation: focus-pulse 2.6s ease-in-out infinite; }
@keyframes focus-pulse { 50% { opacity: .65; } }
@media (max-width: 760px) { .top-r .icon-btn.focus-btn { display: inline-grid; } }
/* 2.3 · × del recordatorio mientras escribes */
.tadd-hint .hint-x { border: 0; background: none; color: inherit; opacity: .7; cursor: pointer; margin-left: 6px; padding: 0 3px; font-size: 13px; line-height: 1; }
.tadd-hint .hint-x:hover { opacity: 1; color: #f1d595; }
.tadd-hint .hint-off { opacity: .7; font-style: italic; }
.ginput.today { border-style: dashed; }
.ginput.today:placeholder-shown { color: #8f877a; }
/* 2.3 · Avisos como líneas (no cajas): línea de color con brillo a la izquierda y separador fino */
.notices .notice { border: 0 !important; border-radius: 0; background: transparent !important; box-shadow: none !important; position: relative;
  padding: 9px 4px 11px 16px; border-bottom: 1px solid rgba(201, 164, 92, .1) !important; }
.notices .notice::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 12px; width: 1.5px; border-radius: 2px;
  background: var(--c); box-shadow: 0 0 7px color-mix(in srgb, var(--c) 80%, transparent), 0 0 16px color-mix(in srgb, var(--c) 35%, transparent); }
.notices .notice.gold::before { background: linear-gradient(180deg, #f1d595, #c9a45c); }
.notices button.notice:hover b, .notices .notice .n-act:hover { color: #f6ead0; }
.notices .notice b { color: #f1e6cf; }
.notices .notice .n-act { color: color-mix(in srgb, var(--c) 75%, #f1d595); }

/* =====================================================================
   2.4 · Calendario: vistas, zoom, color y objetivos
   ===================================================================== */
.cal-headrow, .cal-grid { grid-template-columns: 54px repeat(var(--cols, 7), minmax(0, 1fr)); }
.cal-views { margin-right: 10px; }
.cal-dh { cursor: pointer; }
.cal-dh:hover b { color: #f1d595; }
body.cal-zooming .cal-scroll { cursor: ns-resize; }
.cal-it { display: block; }
.cal-goals { list-style: none; margin: 4px 0 0; padding: 0; font-size: 10.5px; line-height: 1.35; }
.cal-goals li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; border-radius: 3px; padding: 0 2px; }
.cal-goals li:hover { background: rgba(0, 0, 0, .18); }
.cal-goals li.done { opacity: .6; text-decoration: line-through; }
.ev-color { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 2px 0 4px; }
.ev-color .m-lbl-s { font-size: 12px; color: var(--muted); margin-right: 6px; }
.ev-sw { position: relative; width: 20px; height: 20px; cursor: pointer; }
.ev-sw input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ev-sw i { position: absolute; inset: 2px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(235, 225, 205, .2); transition: box-shadow .2s, transform .2s; }
.ev-sw.auto i { background: conic-gradient(#c9a45c 0 25%, #39c6e6 0 50%, #b37bf2 0 75%, #7fb36a 0); opacity: .55; }
.ev-sw input:checked + i { box-shadow: 0 0 0 2px #050505, 0 0 0 3.5px #f1d595, 0 0 10px rgba(224, 190, 120, .8); transform: scale(1.08); }
.ev-sw.custom { width: 24px; height: 24px; border-radius: 50%; overflow: hidden; background: conic-gradient(#d97a6c, #e0c27f, #7fb3a5, #6f8fd9, #b48ad9, #d97a6c); }
.ev-sw.custom input[type=color] { opacity: 0; width: 100%; height: 100%; }
/* Vista mes */
.calm { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.calm-head { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.calm-dow { padding: 6px 8px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.calm-grid { flex: 1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: minmax(92px, 1fr); }
.calm-cell { position: relative; padding: 5px 6px; border-right: 1px solid rgba(235, 225, 205, .05); border-bottom: 1px solid rgba(235, 225, 205, .05); cursor: pointer; min-width: 0; overflow: hidden; }
.calm-cell:hover { background: rgba(201, 164, 92, .04); }
.calm-cell.out { opacity: .38; }
.calm-cell.today .calm-n { color: #f1d595; text-shadow: 0 0 10px rgba(224, 190, 120, .7); }
.calm-cell.today::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1.5px; background: #f1d595; box-shadow: var(--glow); }
.calm-n { font-size: 15px; font-weight: 300; }
.calm-rm { float: right; font-size: 10px; color: var(--muted); }
.calm-it { display: flex; align-items: center; gap: 5px; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 1px 2px; border-radius: 3px; }
.calm-it i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 6px var(--c); }
.calm-it.important { color: #f6ead0; }
.calm-it:hover { background: rgba(235, 225, 205, .06); }
.calm-more { font-size: 10.5px; color: var(--muted); padding-left: 2px; }
.centro-time { margin-left: 14px; font-size: 12.5px; color: var(--muted); padding-left: 12px; border-left: 1.5px solid rgba(201, 164, 92, .45); }
.centro-time b { color: #ebe6dc; font-weight: 500; }
/* 2.4 · Revisiones: botones visibles (sin exceso de dorado), navegación e historial, sección de Jorgi */
.rev-btns { display: flex; gap: 10px; margin: 2px 0 14px; flex-wrap: wrap; }
.rev-btn { display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px; border-radius: 999px; border: 1.5px solid rgba(235, 225, 205, .22);
  background: rgba(235, 225, 205, .03); color: #ebe6dc; font-size: 13px; letter-spacing: .02em; }
.rev-btn i { width: 6px; height: 6px; border-radius: 50%; background: #c9a45c; box-shadow: 0 0 8px rgba(224, 190, 120, .8); }
.rev-btn:hover { border-color: rgba(224, 190, 120, .6); box-shadow: 0 0 18px -6px rgba(224, 190, 120, .7); color: #f6ead0; }
.rev-nav { display: flex; align-items: center; gap: 10px; margin: 4px 0 6px; flex-wrap: wrap; }
.rev-label { min-width: 150px; text-align: center; font-size: 13.5px; color: #f1e6cf; }
.rev-jorgi { margin: 6px 0 26px; }
.rj-top { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.rj-avg { --c: #e7c46a; padding-left: 16px; border-left: 1.5px solid var(--c); box-shadow: -6px 0 14px -10px var(--c); }
.rj-avg b { display: block; font: 300 40px/1 "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; color: var(--c); text-shadow: 0 0 18px color-mix(in srgb, var(--c) 50%, transparent); }
.rj-avg span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.rj-meta { font-size: 13px; color: #b9b1a3; line-height: 1.75; }
.rj-meta b { font-weight: 500; }
.rj-bar { display: flex; height: 5px; gap: 2px; margin: 14px 0 6px; border-radius: 4px; overflow: hidden; }
.rj-bar i { background: var(--c); box-shadow: 0 0 8px var(--c); }
.rj-legend { font-size: 11.5px; color: var(--muted); flex-wrap: wrap; }
.rj-chart { width: 100%; height: auto; margin-top: 8px; overflow: visible; }
.rj-chart .rj-ten { stroke: rgba(185, 147, 255, .35); stroke-dasharray: 3 4; }
/* 2.4 · Imagen arrastrada encima de un cuadro: línea dorada con brillo */
.drop-on { outline: 1.5px solid #f1d595 !important; outline-offset: -2px; box-shadow: 0 0 0 1px rgba(5, 5, 5, .6), 0 0 22px -2px rgba(224, 190, 120, .9) !important; }
[data-slot]:hover, [data-skill-drop]:hover { cursor: pointer; }
/* 2.4 · Portal y Antiportal se desplazan dentro de su recuadro */
.ptext .rt { max-height: 72vh; }
.rt { overscroll-behavior: contain; }

/* =====================================================================
   2.4 · BOSS · lucha contra el jefe (líneas, no cajas; color del jefe en --bc)
   ===================================================================== */
.boss { --bc: #c4334a; max-width: 980px; margin: 0 auto; }
.boss-h { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.boss-h .eyebrow::before { content: ""; display: inline-block; width: 22px; height: 1px; background: rgba(201, 164, 92, .6); margin-right: 10px; vertical-align: middle; }
.boss-arena { position: relative; padding: 18px 0 4px; text-align: center;
  background: radial-gradient(ellipse 60% 70% at 50% 55%, color-mix(in srgb, var(--bc) 22%, transparent), transparent 70%);
  border-top: 1.5px solid color-mix(in srgb, var(--bc) 50%, transparent); border-bottom: 1.5px solid color-mix(in srgb, var(--bc) 30%, transparent);
  box-shadow: 0 -8px 24px -18px var(--bc); }
.ba-title { display: flex; align-items: baseline; justify-content: center; gap: 14px; flex-wrap: wrap; }
.ba-title h2 { margin: 0; font-size: 34px; font-weight: 700 !important; color: #fff2f0 !important; letter-spacing: -.01em; text-shadow: 0 0 22px color-mix(in srgb, var(--bc) 70%, transparent); }
.ba-tag { font-size: 11px; letter-spacing: .24em; font-weight: 700; color: color-mix(in srgb, var(--bc) 80%, #fff); }
.ba-hp { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 10px auto 2px; max-width: 460px; font-size: 12px; }
.ba-hp span { color: color-mix(in srgb, var(--bc) 80%, #fff); letter-spacing: .2em; font-weight: 700; font-size: 10px; }
.ba-hp b { font-weight: 600; font-variant-numeric: tabular-nums; color: #f1e6cf; min-width: 70px; text-align: left; }
.hp-bar { flex: 1; height: 7px; border-radius: 6px; background: rgba(0, 0, 0, .55); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bc) 45%, transparent); overflow: hidden; }
.hp-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, color-mix(in srgb, var(--bc) 70%, #000), var(--bc), color-mix(in srgb, var(--bc) 55%, #ffd0c8));
  box-shadow: 0 0 12px var(--bc); transition: width .8s cubic-bezier(.16, 1, .3, 1); }
#boss-cv { display: block; margin: 0 auto; image-rendering: pixelated; max-width: 100%; }
.boss-attack { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; gap: 12px; align-items: stretch; margin: 18px 0 8px; }
.boss-attack textarea { resize: vertical; min-height: 46px; line-height: 1.5; }
.ba-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 6px; }
.ba-est { font-size: 11.5px; color: #f1c96a; min-height: 15px; text-align: right; max-width: 220px; }
.ba-est.none { color: var(--muted); }
.btn.boss-hit { background: linear-gradient(160deg, color-mix(in srgb, var(--bc) 85%, #fff), var(--bc)); color: #fff; border-color: transparent; letter-spacing: .14em; font-weight: 700; padding: 10px 26px; box-shadow: 0 0 18px -4px var(--bc); }
.btn.boss-hit:hover { box-shadow: 0 0 26px -2px var(--bc); }
.boss-list { list-style: none; margin: 10px 0 18px; padding: 0; }
.boss-list li { --k: #e0705f; position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 6px 10px 14px; border-bottom: 1px solid rgba(235, 225, 205, .07); }
.boss-list li::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 1.5px; border-radius: 2px; background: var(--k); box-shadow: 0 0 8px var(--k); }
.boss-list li.old { opacity: .55; }
.bk-tag { font-size: 10px; letter-spacing: .14em; font-weight: 700; color: var(--k); border: 1px solid color-mix(in srgb, var(--k) 70%, transparent); border-radius: 4px; padding: 2px 0; text-align: center; }
.bk-t { font-size: 14px; color: #ebe6dc; line-height: 1.45; overflow-wrap: anywhere; }
.bk-meta { font-size: 11px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bk-x { opacity: .45; } .boss-list li:hover .bk-x { opacity: 1; }
.boss-empty { margin: 14px 0; }
.boss-actions { display: flex; justify-content: center; gap: 14px; margin: 6px 0 26px; flex-wrap: wrap; }
.boss-actions .btn { letter-spacing: .14em; font-size: 12px; padding: 10px 22px; border-radius: 999px; }
.btn.boss-kill { color: color-mix(in srgb, var(--bc) 70%, #fff); border-color: color-mix(in srgb, var(--bc) 60%, transparent); background: color-mix(in srgb, var(--bc) 12%, transparent); }
.btn.boss-kill:hover { box-shadow: 0 0 20px -4px var(--bc); }
.boss-past { margin: 18px 0 8px; }
.bp-row { display: flex; align-items: center; gap: 14px; padding: 8px 0; border-bottom: 1px solid rgba(235, 225, 205, .07); }
.bp-img { width: 44px; height: 44px; image-rendering: pixelated; }
.bp-img.dead { filter: grayscale(.85) brightness(.6); }
.bp-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bp-t b { font-weight: 500; } .bp-t span { font-size: 12px; color: var(--muted); }
.boss-new h2 { margin: 6px 0 6px; }
.boss-form { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.boss-form > .input { max-width: 420px; font-size: 16px; }
.boss-pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.bpk { --c: #c4334a; position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px 10px; cursor: pointer; text-align: center; border-bottom: 1.5px solid transparent; transition: border-color .2s, background .2s; }
.bpk input { position: absolute; opacity: 0; }
.bpk img { width: 96px; height: 96px; image-rendering: pixelated; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--c) 60%, transparent)); transition: transform .25s; }
.bpk b { font-weight: 500; font-size: 13.5px; } .bpk span { font-size: 11.5px; color: var(--muted); }
.bpk:hover img { transform: translateY(-3px); }
.bpk.on { border-bottom-color: var(--c); background: radial-gradient(ellipse at 50% 60%, color-mix(in srgb, var(--c) 16%, transparent), transparent 70%); box-shadow: 0 8px 16px -14px var(--c); }
.boss-go { align-self: flex-start; }
@media (max-width: 760px) { .boss-attack { grid-template-columns: 1fr; } .boss-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ba-title h2 { font-size: 24px; } }
.calm { overflow: auto; min-height: 0; }
.calm-grid { grid-auto-rows: minmax(74px, 1fr); }

/* ---------- Portal 2.5 · Centro: filas con tonos alternos y nombre ajustado ---------- */
.grid .sticky { min-width: var(--namew, 268px); max-width: var(--namew, 268px); }
.grid tr.hrow.t0 { --rt: rgba(201, 164, 92, .1); --rl: rgba(224, 190, 120, .7); }
.grid tr.hrow.t1 { --rt: rgba(176, 160, 140, .075); --rl: rgba(190, 176, 156, .55); }
.grid tr.hrow.t2 { --rt: rgba(206, 128, 62, .1); --rl: rgba(222, 146, 82, .65); }
.grid tr.hrow > td { background: var(--rt); border-bottom-color: rgba(0, 0, 0, .35); }
.grid tr.hrow > td.na { background: repeating-linear-gradient(135deg, var(--rt) 0 5px, var(--faint) 5px 6px); }
.grid tr.hrow > th.sticky { background: linear-gradient(var(--rt), var(--rt)), #070605; box-shadow: inset 2px 0 0 var(--rl), 8px 0 14px -10px rgba(0, 0, 0, .9); border-bottom-color: rgba(0, 0, 0, .35); }
.grid tr.hrow:hover { --rt: rgba(224, 190, 120, .15); }
.grid tr.hrow:hover > th.sticky { box-shadow: inset 3px 0 0 var(--rl), 0 0 12px -4px var(--rl), 8px 0 14px -10px rgba(0, 0, 0, .9); }
.grid tr.hrow:hover .nm { color: #f6e3b4; }
/* ---------- Portal 2.5 · calendario: selección, arrastre, recortar, pegar, repetir ---------- */
.cal-it.evento { cursor: pointer; touch-action: none; }
.cal-it.sel { z-index: 5; outline: 2px solid #fff1cc; outline-offset: 1px; box-shadow: 0 0 0 4px rgba(241, 213, 149, .18), 0 0 14px rgba(241, 213, 149, .75), 0 10px 24px -10px #000; cursor: grab; }
.cal-it.sel.dragging { opacity: .35; cursor: grabbing; }
.cal-edge { position: absolute; left: 0; right: 0; height: 8px; z-index: 2; cursor: ns-resize; }
.cal-edge.top { top: 0; } .cal-edge.bot { bottom: 0; }
.cal-edge.top { background: linear-gradient(rgba(255, 246, 220, .35), transparent); } .cal-edge.bot { background: linear-gradient(transparent, rgba(23, 18, 10, .3)); }
.cal-edge:hover { background: rgba(255, 246, 220, .35); }
.cal-it.cutting, .calm-it.cutting { opacity: .45; outline: 1.5px dashed #f1d595; outline-offset: -1px; }
.calm-it.sel { background: rgba(241, 213, 149, .14); box-shadow: inset 2px 0 0 #f1d595, 0 0 10px -2px rgba(241, 213, 149, .6); color: #fff1cc; }
.calm-cell.target { box-shadow: inset 0 0 0 1.5px #f1d595, inset 0 0 18px -6px rgba(241, 213, 149, .7); background: rgba(201, 164, 92, .07); }
.cal-target { position: absolute; left: 0; right: 0; height: 0; border-top: 1.5px dashed #f1d595; z-index: 7; pointer-events: none; box-shadow: 0 0 8px rgba(241, 213, 149, .7); }
.cal-target span { position: absolute; left: 6px; top: 2px; font-size: 10.5px; font-weight: 600; color: #fff1cc; white-space: nowrap; text-shadow: 0 1px 2px #000; }
.cal-clipbar { display: flex; align-items: center; gap: 12px; padding: 6px 0 6px 10px; margin: 4px 0; font-size: 12.5px; color: #e8dcc0; border-left: 1.5px solid #f1d595; box-shadow: -6px 0 12px -8px rgba(241, 213, 149, .8); }
.cal-clipbar span { flex: 1; }
.ev-repeat { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line); }
.ev-repeat .m-lbl-s { font-size: 12px; color: var(--muted); }
.ev-days { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.ev-day { position: relative; cursor: pointer; }
.ev-day input { position: absolute; opacity: 0; }
.ev-day span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: 12px; font-weight: 600; color: #cfc6b4; border: 1.5px solid rgba(235, 225, 205, .2); transition: all .2s; }
.ev-day input:checked + span { color: #17120a; background: linear-gradient(160deg, #f0d696, #c9a45c); border-color: transparent; box-shadow: 0 0 10px -2px rgba(224, 190, 120, .8); }
.ev-day input:focus-visible + span { outline: 1px solid #f1d595; outline-offset: 2px; }
.ev-rnote { margin-left: 10px; }
.ev-rwarn { margin: 0; color: #f0b7ad; }
textarea.input[name=notes] { resize: vertical; min-height: 44px; }
/* Teclado y ratón */
.key-list { display: flex; flex-direction: column; }
.key-row { display: grid; grid-template-columns: 1fr auto 96px; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.key-lbl { font-size: 13.5px; }
.keycap { min-width: 74px; padding: 4px 12px; border-radius: 6px; border: 1.5px solid rgba(241, 213, 149, .45); background: rgba(201, 164, 92, .06); color: #f6e3b4; font: 600 12.5px/1.4 "Cascadia Mono", Consolas, monospace; box-shadow: 0 2px 0 rgba(0, 0, 0, .6); cursor: pointer; }
.keycap:hover { border-color: #f1d595; box-shadow: 0 2px 0 rgba(0, 0, 0, .6), 0 0 12px -3px rgba(241, 213, 149, .8); }
.key-row.capturing .keycap { border-style: dashed; color: #fff1cc; animation: keypulse 1.1s ease-in-out infinite; font-family: inherit; }
@keyframes keypulse { 50% { box-shadow: 0 0 16px -2px rgba(241, 213, 149, .9); } }
.mouse-list { list-style: none; margin: 0; padding: 0; }
.mouse-list li { display: grid; grid-template-columns: 230px 1fr; gap: 12px; padding: 7px 0 7px 10px; border-left: 1.5px solid rgba(241, 213, 149, .4); margin-bottom: 4px; font-size: 13px; }
.mouse-list b { font-weight: 600; color: #f1d595; } .mouse-list span { color: #cfc6b4; }
/* ---------- Portal 2.5 · BOSS en Inicio (debajo de las prioridades, con 3 o 4 avisos a la vista) ---------- */
.home-left { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.boss-cv { display: block; margin: 0 auto; image-rendering: pixelated; max-width: 100%; }
.boss-mini { max-width: none; margin: 0; padding-top: 14px; border-top: 1.5px solid color-mix(in srgb, var(--bc) 45%, transparent); box-shadow: 0 -10px 18px -16px var(--bc); }
.boss-mini .boss-arena { padding: 4px 0 0; }
.boss-mini .ba-title { gap: 10px; }
.boss-mini .ba-title h2 { font-size: 24px; }
.boss-mini .ba-title .link { font-size: 12px; }
.boss-mini .boss-cv { width: 100%; max-width: 300px; height: auto; }
.boss-mini .boss-attack { grid-template-columns: minmax(0, 1fr) auto; margin: 10px 0 4px; }
.boss-mini .boss-attack select { grid-column: 1 / -1; }
.boss-mini .bm-last { margin-top: 6px; }
.boss-mini .bm-last .boss-list { margin: 4px 0 0; }
.boss-mini .boss-list li { grid-template-columns: 40px minmax(0, 1fr) auto; padding: 7px 4px 7px 12px; }
/* Solo aparece si hay espacio: con Inicio en una sola columna (ventana angosta o celular) no se muestra. */
@media (max-width: 1150px) { .boss-mini { display: none; } }
/* ---------- Portal 2.5 · To-do «Todas juntas» ---------- */
.todo-all-sw { margin-right: 14px; font-size: 12.5px; }
.todo-all .tsec.tall { max-width: 920px; }
.todo-all .tsec.tall .tadd { margin: 4px 0 10px; }
.tsec-pick { position: relative; display: inline-flex; align-items: center; gap: 5px; flex: none; margin-left: 4px; }
.tsec-pick i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 6px var(--c); }
.tsec-pick select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: #b9a477; font: 600 10.5px/1.6 inherit; font-variant: small-caps; letter-spacing: .08em; text-transform: lowercase; cursor: pointer; padding: 0 2px; max-width: 150px; text-overflow: ellipsis; }
.tsec-pick select option { background: #0d0b08; color: #ebe6dc; font-variant: normal; text-transform: none; letter-spacing: 0; }
.tsec-pick:hover select, .tsec-pick select:focus { color: #f1d595; outline: none; text-shadow: 0 0 8px rgba(241, 213, 149, .5); }
.tsec-pick.is-entrada select { color: rgba(185, 164, 119, .45); }
.trow:hover .tsec-pick.is-entrada select { color: #b9a477; }
/* 2.5: los cuadros de texto usan la misma letra que la app (no monoespaciada). */
textarea.input { font-family: inherit; }

/* =====================================================================
   Portal 3.0 · Celular (html.is-phone): barra abajo, una columna, botones grandes.
   Líneas doradas con brillo en lugar de cajas (preferencias de la usuaria).
   ===================================================================== */
html.is-phone { --ph-bar: calc(62px + env(safe-area-inset-bottom, 0px)); -webkit-tap-highlight-color: transparent; }
html.is-phone body { overscroll-behavior: none; }
html.is-phone .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: 46px minmax(0, 1fr); height: calc(100dvh - var(--ph-bar)); }
html.is-phone .rail { display: none; }
html.is-phone .top { padding: 0 12px; gap: 8px; }
html.is-phone .top .nav, html.is-phone .top .rm-big, html.is-phone .top-r .icon-btn, html.is-phone .tm-live .rl-total { display: none !important; }
html.is-phone .brand { display: block; font-size: 13px; letter-spacing: .32em; }
html.is-phone .savestate, html.is-phone .led { display: inline-block; font-size: 10.5px; }
html.is-phone .rm-live { margin-left: auto; max-width: 52vw; }
html.is-phone .rm-live .rl-total, html.is-phone .rm-live .rl-tag { display: none; }
html.is-phone .clock .time { font-size: 15px; }
html.is-phone .clock .date { display: none; }
html.is-phone .content { padding: 12px 14px 28px; -webkit-overflow-scrolling: touch; }
html.is-phone .content h2 { font-size: 18px; }
html.is-phone .home-grid, html.is-phone .cfg-grid, html.is-phone .grid2, html.is-phone .two-col { grid-template-columns: 1fr !important; gap: 22px; }
html.is-phone .home-imgs { grid-template-columns: repeat(2, minmax(0, 1fr)); height: auto; }
html.is-phone .home-imgs .ph { aspect-ratio: 4 / 3; height: auto; }
html.is-phone button, html.is-phone .btn { min-height: 38px; }
html.is-phone .modal { width: calc(100vw - 20px); max-height: calc(100dvh - 30px); overflow: auto; padding: 14px 14px 16px; }
html.is-phone .roadmap-frame { height: calc(100dvh - var(--ph-bar)); }
html.is-phone .toast { bottom: calc(var(--ph-bar) + 10px) !important; }

/* Barra de abajo */
.ph-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: var(--ph-bar); padding-bottom: env(safe-area-inset-bottom, 0px);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: rgba(11, 9, 8, .96); backdrop-filter: blur(8px);
  border-top: 1.5px solid rgba(201, 164, 92, .45); box-shadow: 0 -6px 18px -10px rgba(224, 190, 120, .55); }
.ph-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; background: none; border: 0; color: #8f877a;
  font: 500 10.5px/1 var(--font, inherit); letter-spacing: .04em; position: relative; }
.ph-tab svg { width: 21px; height: 21px; }
.ph-tab .ph-dots { font-size: 22px; line-height: 18px; height: 21px; }
.ph-tab.on { color: #f1d595; }
.ph-tab.on::before { content: ''; position: absolute; top: -1.5px; left: 22%; right: 22%; height: 2px; background: #f1d595; box-shadow: var(--glow); border-radius: 2px; }
.ph-tab:disabled { opacity: .35; }
.ph-tab sup { color: #f1d595; margin-left: 2px; font-size: 9px; }

/* «Más»: filas separadas por líneas, desde abajo */
.ph-sheet { position: fixed; left: 0; right: 0; bottom: var(--ph-bar); z-index: 61; background: #0e0c0a; border-top: 1.5px solid rgba(201, 164, 92, .55);
  box-shadow: 0 -18px 40px rgba(0, 0, 0, .7), 0 -2px 14px -6px rgba(224, 190, 120, .5); padding: 6px 0; animation: rise .25s var(--ease); }
.ph-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; padding: 0 22px; background: none; border: 0; border-bottom: 1px solid rgba(201, 164, 92, .14);
  color: #ebe6dc; font-size: 15px; text-align: left; }
.ph-row:last-child { border-bottom: 0; }
.ph-row svg { width: 19px; height: 19px; color: #c9a45c; flex: none; }
.ph-row sup { margin-left: auto; color: #f1d595; }
.ph-guide-modal { height: calc(100dvh - 40px); display: flex; flex-direction: column; }
.ph-guide-modal .guide-frame { flex: 1; width: 100%; border: 0; background: transparent; }

/* Inicio: resumen de la hoja de Roadmap en curso */
.ph-route { border-left: 2px solid var(--c, #c9a45c); box-shadow: -6px 0 14px -10px var(--c, #c9a45c); padding: 4px 0 4px 14px; display: flex; flex-direction: column; gap: 6px; }
.ph-route-eye { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--c, #c9a45c); }
.ph-route h3 { margin: 0; font-size: 18px; color: #ebe6dc; font-weight: 600; }
.ph-route-time { display: flex; align-items: baseline; gap: 10px; }
.ph-route-time b { font-size: 30px; font-variant-numeric: tabular-nums; color: #f1d595; text-shadow: 0 0 14px rgba(224, 190, 120, .35); }
.ph-route-time span { color: #8f877a; font-size: 12px; }
.ph-route-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ph-route ul { margin: 0; padding-left: 16px; color: #cfc8bb; font-size: 13px; }
.ph-route .deep { font-size: 12px; color: #8f877a; display: flex; gap: 6px; align-items: center; }

/* Calendario en el celular */
html.is-phone .cal .sec-head { flex-wrap: wrap; gap: 6px 8px; }
html.is-phone .cal .sec-head h2 { display: none; }
html.is-phone .cal-range { order: -1; width: 100%; font-size: 13px; color: #cfc8bb; }
html.is-phone .cal-views button { padding: 0 8px; font-size: 11.5px; }
html.is-phone .cal-quick { display: none; }
html.is-phone .cal-scroll { max-height: none; flex: 1; touch-action: pan-y; }
html.is-phone .cal { height: 100%; }
html.is-phone .cal-headrow, html.is-phone .cal-grid { grid-template-columns: 34px repeat(var(--cols, 7), minmax(0, 1fr)); }
html.is-phone .cal-hr { font-size: 9px; }
html.is-phone .cal-v-semana .cal-it { font-size: 9.5px; padding: 2px 3px; }
html.is-phone .cal-v-semana .cal-it em { display: none; }
html.is-phone .cal-it { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
html.is-phone.cal-adjusting .cal-it.sel, html.is-phone .ph-adjust.on ~ * .cal-it.sel { touch-action: none; }
html.is-phone .cal-it.sel { touch-action: none; }
html.is-phone .ph-adjust { margin-left: auto; }
.ph-adjust.on { color: #17120a; background: #f1d595; border-color: #f1d595; box-shadow: var(--glow); }
html.is-phone .cal-it .cal-edge { height: 14px; }
html.is-phone .cal-clipbar { position: sticky; bottom: 0; z-index: 4; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ph-paste { position: absolute; left: 4px; top: -2px; z-index: 6; min-height: 30px !important; padding: 0 12px; border-radius: 15px; border: 1.5px solid #f1d595; background: rgba(11, 9, 8, .92); color: #f1d595; font-size: 12px; box-shadow: var(--glow); }
.ph-ctx { min-width: 220px; }
.ph-ctx button { min-height: 44px; font-size: 14px; }
.ph-ctx-h { padding: 8px 12px 6px; font-size: 12px; color: #c9a45c; border-bottom: 1px solid rgba(201, 164, 92, .2); margin-bottom: 2px; }
.ph-ctx-h em { color: #8f877a; font-style: normal; margin-left: 4px; }

/* Vista Día (PC y celular): la nota del evento a la derecha del bloque */
.cal-v-dia .cal-it.has-note { display: grid !important; grid-template-columns: minmax(0, 44%) minmax(0, 1fr); column-gap: 12px; align-content: start; }
.cal-v-dia .cal-it.has-note > b, .cal-v-dia .cal-it.has-note > em, .cal-v-dia .cal-it.has-note > .cal-goals { grid-column: 1; }
.cal-v-dia .cal-it.has-note > .cal-note { grid-column: 2; grid-row: 1 / span 6; white-space: pre-wrap; overflow: hidden; font-size: 11.5px; line-height: 1.35;
  padding-left: 10px; border-left: 1.5px solid rgba(23, 18, 10, .35); opacity: .9; }

/* Portal 3.0 · Cuenta y nube */
.acc-eye { margin: 22px 0 8px; }
.acc-form { display: flex; flex-direction: column; gap: 10px; max-width: 460px; }
.acc-form label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: #8f877a; letter-spacing: .04em; }
.acc-form .btn { align-self: flex-start; }
.mono { font-family: ui-monospace, Consolas, monospace; letter-spacing: .03em; }
.acc-rows { display: flex; flex-direction: column; max-width: 640px; }
.acc-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 46px; border-bottom: 1px solid rgba(201, 164, 92, .16); }
.acc-row > span { width: 72px; color: #8f877a; font-size: 12px; }
.acc-row > b { font-weight: 500; color: #ebe6dc; word-break: break-all; }
.acc-qr { display: flex; align-items: center; gap: 18px; margin: 18px 0; flex-wrap: wrap; }
.acc-qr svg { border-radius: 6px; box-shadow: 0 0 0 1.5px rgba(201, 164, 92, .55), 0 0 18px -6px rgba(224, 190, 120, .6); flex: none; }
.acc-qr .hint { max-width: 300px; }
.sync-err { color: #e08a72 !important; }
.savestate[data-act] { cursor: pointer; }
.web-welcome { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 24px; overflow: auto; }
.ww-in { width: min(420px, 100%); display: flex; flex-direction: column; gap: 14px; }
.ww-brand { font-size: 14px; letter-spacing: .4em; color: #c9a45c; }
.ww-in h1 { margin: 0; font-size: 26px; font-weight: 500; color: #ebe6dc; }
.ww-in .acc-form { max-width: none; }
.ww-in .acc-form .btn { align-self: stretch; min-height: 46px; }
.ww-more { margin-top: 6px; }

/* 3.0 · Configuración en el celular: secciones en una fila deslizable arriba, contenido a todo el ancho */
html.is-phone .config { display: block !important; }
html.is-phone .cfg-list { display: flex !important; flex-direction: row !important; overflow-x: auto; gap: 4px; padding: 0 0 6px; margin: 0 0 12px; border-bottom: 1.5px solid rgba(201, 164, 92, .3); scrollbar-width: none; position: static !important; width: auto !important; }
html.is-phone .cfg-list::-webkit-scrollbar { display: none; }
html.is-phone .cfg-i { flex: none; white-space: nowrap; width: auto !important; padding: 8px 12px !important; }
html.is-phone .cfg-body { padding: 0 !important; max-width: none !important; }
html.is-phone .field { display: block !important; }
html.is-phone .field > label { display: block; margin-bottom: 6px; }