#hd{--bg:var(--paper);--surface:var(--paper-2);--surface-2:var(--paper-3);--fg:var(--ink);--muted:var(--ink-soft);
--accent:var(--cobalt);--accent-fg:var(--on-cobalt);--accent-soft:var(--cobalt-soft);--danger:var(--bad);--danger-soft:var(--bad-soft);
--fest:var(--bad);--fest-soft:var(--bad-soft);--hero:var(--night);--hero-2:var(--night-2);--hero-fg:var(--on-night);
--c1:var(--b-tut);--c2:var(--b-eva);--c3:var(--b-dis);--c4:var(--b-pla);--c5:var(--b-acc);--c6:var(--b-pro);--c7:#FF8FB8;--c8:#9BD36A;--on-cc:#0A1024;
--f-display:var(--display);--f-body:var(--body);--f-mono:var(--mono);--hour:52px;--radius:18px}
#hd *, #hd{box-sizing:border-box}
#hd [hidden]{display:none!important}
#hd{background:var(--bg);color:var(--fg);font-family:var(--f-body);font-size:15px;line-height:1.5}
#hd .wrap{max-width:1180px;margin:0 auto;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px));padding-block:20px 48px;display:flex;flex-direction:column;gap:22px}
#hd h1,#hd h2,#hd h3{font-family:var(--f-display);text-wrap:balance;margin:0;line-height:1.15}
#hd h1{font-size:1.65rem;font-weight:800;letter-spacing:-.01em}
#hd h2{font-size:1.2rem;font-weight:600}
#hd .mono{font-family:var(--f-mono);font-variant-numeric:tabular-nums}
#hd .muted{color:var(--muted)}
#hd .label{font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:700}
#hd button,#hd .btn{font:inherit;cursor:pointer;border-radius:8px;border:1px solid var(--line);background:var(--surface);color:var(--fg);padding:8px 14px;display:inline-flex;align-items:center;gap:8px;text-decoration:none;font-weight:700;font-size:.92rem}
#hd button:hover,#hd .btn:hover{background:var(--surface-2)}
#hd button.primary,#hd .btn.primary{background:var(--accent);color:var(--accent-fg);border-color:var(--accent)}
#hd button.primary:hover,#hd .btn.primary:hover{filter:brightness(1.08)}
#hd button.ghost{background:transparent;border-color:transparent}
#hd button.danger{color:var(--danger);border-color:var(--danger)}
#hd button:focus-visible,#hd .btn:focus-visible,#hd input:focus-visible,#hd select:focus-visible,#hd textarea:focus-visible,#hd a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
#hd svg.i{width:18px;height:18px;flex:none}
#hd header.top{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px}
#hd .hero{position:relative;overflow:hidden;border-radius:18px;color:var(--hero-fg);background:
  radial-gradient(120% 140% at 100% 0%, var(--hero-2) 0%, transparent 55%),
  linear-gradient(135deg, var(--hero) 0%, color-mix(in oklab,var(--hero) 80%,#000) 100%);
  padding:22px 24px 20px;display:flex;flex-direction:column;gap:18px}
#hd .hero::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.12;
  background-image:linear-gradient(to right,var(--hero-fg) 1px,transparent 1px),linear-gradient(to bottom,var(--hero-fg) 1px,transparent 1px);
  background-size:44px 44px;mask-image:linear-gradient(105deg,transparent 35%,#000 100%);-webkit-mask-image:linear-gradient(105deg,transparent 35%,#000 100%)}
#hd .hero > *{position:relative}
#hd .hero-row{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:14px}
#hd .hero h1{font-size:clamp(2rem,5vw,2.9rem);letter-spacing:-.025em;color:var(--hero-fg)}
#hd .hero .today-line{color:color-mix(in oklab,var(--hero-fg) 80%,transparent);font-size:1rem;margin-top:6px}
#hd .hero .today-line .mono{color:var(--hero-fg);font-size:1.05rem}
#hd .hero #btnAdd{background:var(--hero-fg);color:var(--hero);border-color:var(--hero-fg);padding:11px 18px;font-size:1rem;box-shadow:0 6px 18px rgb(0 0 0 / .18)}
#hd .hero #btnAdd:hover{filter:brightness(.95)}
#hd .stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
@media (max-width:760px){#hd .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:520px){#hd .stats .stat{padding:10px 12px;align-items:flex-start}
#hd .stats .stat .ico{width:32px;height:32px;border-radius:10px}
#hd .stats .stat .ico svg{width:16px;height:16px}
#hd .stats .stat .k{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
}
#hd .stat{background:color-mix(in oklab,var(--hero-fg) 12%,transparent);border:1px solid color-mix(in oklab,var(--hero-fg) 20%,transparent);border-radius:14px;padding:12px 14px;display:flex;gap:12px;align-items:center;min-width:0;backdrop-filter:blur(2px)}
#hd .stat .ico{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;flex:none;background:var(--hero-fg);color:var(--hero)}
#hd .stat .ico svg{width:20px;height:20px}
#hd .stat .ico.amber{color:#9a5100}
#hd .stat .ico.red{color:#c0392b}
#hd .stat .ico.indigo{color:#4a58d1}
#hd .stat .v{font-family:var(--f-display);font-weight:800;font-size:1.5rem;line-height:1;font-variant-numeric:tabular-nums}
#hd .stat .k{font-size:.8rem;opacity:.85;line-height:1.25;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#hd .stat > div{min-width:0}
#hd .hero .authorbar{background:transparent;border:0;border-bottom:1px solid color-mix(in oklab,var(--hero-fg) 22%,transparent);border-radius:0;padding:0 0 12px}
#hd .hero .authorbar .who{color:color-mix(in oklab,var(--hero-fg) 85%,transparent)}
#hd .hero .authorbar .who b{color:var(--hero-fg)}
#hd .hero .authorbar .btn.primary{background:var(--hero-fg);color:var(--hero);border-color:var(--hero-fg)}
#hd .hero .authorbar button{background:transparent;color:var(--hero-fg);border-color:color-mix(in oklab,var(--hero-fg) 45%,transparent)}
#hd .hero .authorbar button:hover{background:color-mix(in oklab,var(--hero-fg) 12%,transparent)}
#hd .ph{display:flex;align-items:center;gap:10px}
#hd .ph .pico{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;flex:none}
#hd .ph .pico svg{width:17px;height:17px}
#hd .pico.teal{background:var(--accent-soft);color:var(--accent)}
#hd .pico.red{background:var(--fest-soft);color:var(--fest)}
#hd .pico.amber{background:var(--warn-soft);color:var(--warn)}
#hd .ph .label{font-size:.78rem}
#hd .sec-title{display:flex;align-items:center;gap:10px}
#hd .sec-title .count{font-family:var(--f-body);font-size:.8rem;font-weight:700;background:var(--accent-soft);color:var(--accent);border-radius:99px;padding:2px 10px}
#hd .today-line{color:var(--muted);margin-top:4px}
#hd .today-line .mono{color:var(--fg)}
#hd .top-actions{display:flex;flex-wrap:wrap;gap:8px}
#hd .band{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:16px;align-items:start}
#hd .follow{background:var(--warn-soft);border:1px solid color-mix(in oklab,var(--warn) 45%,transparent);border-radius:var(--radius);padding:12px 14px;display:flex;flex-direction:column;gap:8px}
#hd .follow-head{display:flex;align-items:center;gap:10px;font-family:var(--f-display);font-weight:600;font-size:1.05rem;color:var(--warn)}
#hd .follow-head svg{width:22px;height:22px}
#hd .follow ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
#hd .follow li{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:var(--surface);border-radius:8px;padding:8px 8px 8px 12px}
#hd .follow li .t{flex:1 1 220px;min-width:0;overflow-wrap:anywhere}
#hd .follow li .t small{display:block;color:var(--muted);font-size:.82rem}
#hd .follow li button{padding:5px 12px;font-size:.85rem}
#hd .follow li.late .t small{color:var(--danger);font-weight:700}
#hd .follow li.done{opacity:.7}
#hd .follow li.done .t b{text-decoration:line-through;text-decoration-color:var(--muted)}
#hd .livebar{display:flex;align-items:center;gap:8px 14px;flex-wrap:wrap;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:9px 14px;font-size:.92rem}
#hd .livebar.live{background:var(--accent-soft);border-color:var(--accent)}
#hd .livebar .bar{flex:1 1 100px;min-width:80px;max-width:220px}
#hd .livebar .btn{padding:5px 10px;font-size:.85rem}
#hd .today{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:20px;display:flex;flex-direction:column;gap:16px;min-width:0}
#hd .today-head{display:flex;flex-direction:column;gap:4px}
#hd .today-title{font-size:clamp(1.7rem,4.5vw,2.4rem);font-weight:800;letter-spacing:-.02em}
#hd .today-title em{font-style:normal;color:var(--accent)}
#hd .agenda{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
#hd .ag{display:grid;grid-template-columns:6rem minmax(0,1fr) auto;gap:16px;align-items:center;padding:12px;border-radius:12px;background:color-mix(in oklab,var(--cc) 9%,var(--surface));border:1px solid color-mix(in oklab,var(--cc) 30%,var(--line));cursor:pointer}
#hd .ag .tchip{background:var(--cc);color:var(--on-cc);border-radius:10px;padding:10px 6px;text-align:center;display:flex;flex-direction:column;line-height:1.15}
#hd .ag .tchip b{font-family:var(--f-mono);font-size:1.3rem;font-weight:500}
#hd .ag .tchip span{font-family:var(--f-mono);font-size:.78rem;opacity:.9}
#hd .ag .info{min-width:0;display:flex;flex-direction:column;gap:4px}
#hd .ag .name{font-family:var(--f-display);font-weight:600;font-size:1.15rem;line-height:1.2;overflow-wrap:anywhere}
#hd .ag .sub{color:var(--muted);font-size:.88rem}
#hd .ag .act{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
#hd .ag.past{background:var(--surface);border-color:var(--line)}
#hd .ag.past .tchip{background:var(--surface-2);color:var(--muted)}
#hd .ag.past .name{color:var(--muted)}
#hd .ag.live{box-shadow:0 0 0 2px var(--cc)}
#hd .ag .bar{width:100%;max-width:260px}
#hd .ag .bar > i{background:var(--cc)}
@media (max-width:560px){#hd .ag{grid-template-columns:4.8rem minmax(0,1fr)}
#hd .ag .act{grid-column:1 / -1;flex-direction:row;flex-wrap:wrap;align-items:center}
#hd .ag .tchip b{font-size:1.1rem}
}
#hd .ag-gap{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:.84rem;padding-left:7.4rem}
#hd .ag-gap::before,#hd .ag-gap::after{content:"";flex:1;border-top:1px dashed var(--line)}
@media (max-width:560px){#hd .ag-gap{padding-left:0}
}
#hd .today-free{display:flex;flex-direction:column;gap:6px;padding:18px;border-radius:12px;background:var(--surface-2)}
#hd .today-free b{font-family:var(--f-display);font-size:1.25rem}
#hd .today-free.fest{background:var(--fest-soft)}
#hd .today-free.fest b{color:var(--fest)}
#hd .tomorrow{border-top:1px solid var(--line);padding-top:12px;color:var(--muted);font-size:.9rem}
#hd .weekbox{display:flex;flex-direction:column}
#hd .money-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}
#hd .tile{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:14px 16px;display:flex;flex-direction:column;gap:2px}
#hd .tile .v{font-family:var(--f-display);font-weight:800;font-size:1.6rem;font-variant-numeric:tabular-nums;letter-spacing:-.01em}
#hd .tile .s{font-size:.82rem;color:var(--muted);font-variant-numeric:tabular-nums}
#hd .money-scroll{overflow-x:auto;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}
#hd table.money{width:100%;border-collapse:collapse;font-size:.9rem;min-width:620px}
#hd table.money th{text-align:left;font-size:.72rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:700;padding:10px 12px;border-bottom:1px solid var(--line)}
#hd table.money td{padding:10px 12px;border-bottom:1px solid var(--line);vertical-align:top}
#hd table.money tr:last-child td{border-bottom:0}
#hd table.money .num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
#hd table.money tfoot td{font-weight:700;border-top:2px solid var(--line)}
#hd .paybox{border:1px solid var(--line);border-radius:10px;padding:12px;display:flex;flex-direction:column;gap:10px;margin:0}
#hd .paybox legend{font-weight:700;font-size:.88rem;padding:0 6px}
#hd .grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
@media (max-width:520px){#hd .grid3{grid-template-columns:1fr 1fr}
}
#hd .weekbox > summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:10px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:12px 16px}
#hd .weekbox > summary::-webkit-details-marker{display:none}
#hd .weekbox > summary:hover{background:var(--surface-2)}
#hd .weekbox > summary .chev{transition:transform .2s}
#hd .weekbox[open] > summary .chev{transform:rotate(90deg)}
#hd .weekbox[open] > summary{border-bottom-left-radius:0;border-bottom-right-radius:0}
#hd .weekbox .week-body{display:flex;flex-direction:column;gap:10px;padding-top:12px}
@media (prefers-reduced-motion:reduce){#hd .weekbox > summary .chev{transition:none}
}
@media (max-width:860px){#hd .band{grid-template-columns:minmax(0,1fr)}
}
#hd .now{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:20px;display:flex;flex-direction:column;gap:12px;min-width:0}
#hd .now .big{font-family:var(--f-display);font-weight:800;font-size:clamp(1.9rem,5vw,2.8rem);line-height:1;letter-spacing:-.02em}
#hd .now .course-name{font-size:1.15rem;font-weight:700}
#hd .now .meta{display:flex;flex-wrap:wrap;gap:6px 16px;color:var(--muted)}
#hd .now.live{border-color:var(--accent);background:var(--accent-soft)}
#hd .bar{height:6px;border-radius:99px;background:var(--surface-2);overflow:hidden}
#hd .bar > i{display:block;height:100%;background:var(--accent);border-radius:99px}
#hd .side{display:flex;flex-direction:column;gap:12px;min-width:0}
#hd .panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:16px;display:flex;flex-direction:column;gap:10px}
#hd .alerts-state{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
#hd .dot{width:9px;height:9px;border-radius:50%;display:inline-block;flex:none}
#hd .end-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
#hd .end-list li{display:flex;justify-content:space-between;gap:10px;align-items:baseline}
#hd .end-list li span:first-child{min-width:0;overflow-wrap:anywhere}
#hd .pill{display:inline-flex;align-items:center;gap:6px;font-size:.75rem;font-weight:700;padding:2px 9px;border-radius:99px;white-space:nowrap}
#hd .p-live{background:var(--accent-soft);color:var(--accent)}
#hd .p-soon{background:var(--warn-soft);color:var(--warn)}
#hd .p-ok{background:var(--ok-soft);color:var(--ok)}
#hd .p-next{background:var(--surface-2);color:var(--muted)}
#hd .p-done{background:var(--surface-2);color:var(--muted)}
#hd .p-ex{background:var(--warn-soft);color:var(--warn)}
#hd .examples{background:var(--warn-soft);color:var(--fg);border:1px dashed var(--warn);border-radius:var(--radius);padding:12px 16px;display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between}
#hd .week-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}
#hd .week-nav{display:flex;gap:6px;align-items:center}
#hd .board-scroll{overflow-x:auto;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}
#hd .board{display:grid;grid-template-columns:52px repeat(7,minmax(96px,1fr));min-width:760px}
#hd .board .dh{position:sticky;top:0;padding:10px 8px;border-bottom:1px solid var(--line);border-left:1px solid var(--line);background:var(--surface);display:flex;flex-direction:column;z-index:2}
#hd .board .dh.corner{border-left:0}
#hd .board .dh b{font-family:var(--f-display);font-weight:600;font-size:.95rem}
#hd .board .dh.is-today{background:var(--accent-soft)}
#hd .board .dh.is-today b{color:var(--accent)}
#hd .hours{position:relative}
#hd .hours span{position:absolute;right:8px;transform:translateY(-50%);font-family:var(--f-mono);font-size:.7rem;color:var(--muted)}
#hd .col{position:relative;border-left:1px solid var(--line);background-image:repeating-linear-gradient(to bottom,transparent 0,transparent calc(var(--hour) - 1px),var(--line) calc(var(--hour) - 1px),var(--line) var(--hour))}
#hd .col.is-today{background-color:color-mix(in oklab,var(--accent-soft) 45%,transparent)}
#hd .col.off{background-color:color-mix(in oklab,var(--surface-2) 60%,transparent)}
#hd .blk{position:absolute;left:4px;right:4px;border-radius:8px;padding:6px 8px;overflow:hidden;font-size:.8rem;line-height:1.25;cursor:pointer;border:0;background:var(--cc);color:var(--on-cc);text-align:left;display:flex;flex-direction:column;gap:2px;font-weight:400;box-shadow:0 2px 6px color-mix(in oklab,var(--cc) 35%,transparent)}
#hd .blk:hover{filter:brightness(1.08)}
#hd .blk .t{font-family:var(--f-mono);font-size:.7rem;font-weight:500;opacity:.9}
#hd .blk .n{font-weight:700;overflow-wrap:anywhere}
#hd .blk.past{background:color-mix(in oklab,var(--cc) 22%,var(--surface));color:var(--muted);box-shadow:none}
#hd .blk.live{outline:3px solid color-mix(in oklab,var(--cc) 40%,transparent);outline-offset:2px}
#hd .blk.last::after{content:"Última sesión";font-size:.66rem;font-weight:700;margin-top:auto;background:var(--on-cc);color:var(--cc);align-self:flex-start;padding:0 6px;border-radius:99px}
#hd .day-strip{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:16px 16px 12px;display:flex;flex-direction:column;gap:10px}
#hd .day-strip-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap}
#hd .strip-scroll{overflow-x:auto}
#hd .strip{position:relative;height:74px;min-width:640px;margin-top:4px}
#hd .strip .tick{position:absolute;top:0;bottom:16px;border-left:1px dashed var(--line)}
#hd .strip .tick span{position:absolute;bottom:-18px;left:0;transform:translateX(-50%);font-family:var(--f-mono);font-size:.68rem;color:var(--muted)}
#hd .strip .seg{position:absolute;top:4px;height:50px;border-radius:9px;background:var(--cc);color:var(--on-cc);padding:6px 10px;overflow:hidden;display:flex;flex-direction:column;justify-content:center;font-size:.8rem;line-height:1.2;border:0;cursor:pointer;text-align:left;font-weight:400}
#hd .strip .seg b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#hd .strip .seg.past{background:color-mix(in oklab,var(--cc) 22%,var(--surface));color:var(--muted)}
#hd .strip .nowmark{position:absolute;top:-4px;bottom:12px;width:2px;background:var(--danger);z-index:2}
#hd .strip .nowmark::before{content:"Ahora";position:absolute;top:-16px;left:50%;transform:translateX(-50%);font-size:.66rem;font-weight:700;color:var(--danger)}
#hd .strip-free{color:var(--muted);padding:12px 0}
#hd .wdots{display:flex;gap:4px}
#hd .wdots span{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;font-size:.7rem;font-weight:700;background:var(--surface-2);color:var(--muted)}
#hd .wdots span.on{background:var(--cc);color:var(--on-cc)}
#hd .ring{--p:0;width:64px;height:64px;border-radius:50%;flex:none;display:grid;place-items:center;background:conic-gradient(var(--cc) calc(var(--p)*1%),var(--surface-2) 0)}
#hd .ring b{width:48px;height:48px;border-radius:50%;background:var(--surface);display:grid;place-items:center;font-family:var(--f-mono);font-size:.82rem;font-weight:500}
#hd .board .dh.fest{background:var(--fest-soft)}
#hd .board .dh .fest-name{font-size:.68rem;color:var(--fest);font-weight:700;line-height:1.2;margin-top:2px}
#hd .col.fest{background-image:repeating-linear-gradient(135deg,var(--fest-soft) 0 7px,transparent 7px 14px),repeating-linear-gradient(to bottom,transparent 0,transparent calc(var(--hour) - 1px),var(--line) calc(var(--hour) - 1px),var(--line) var(--hour))}
#hd .fest-tag{position:absolute;top:8px;left:50%;transform:translateX(-50%);background:var(--fest);color:var(--surface);font-size:.68rem;font-weight:700;padding:2px 8px;border-radius:99px;white-space:nowrap;z-index:1}
#hd .p-fest{background:var(--fest-soft);color:var(--fest)}
#hd .cal{display:flex;flex-direction:column;gap:8px}
#hd .cal-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
#hd .cal-head b{font-family:var(--f-display);font-weight:600;font-size:1.05rem}
#hd .cal-head button{padding:6px 8px}
#hd .cal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
#hd .cal-grid .wd{font-size:.7rem;text-align:center;color:var(--muted);font-weight:700;text-transform:uppercase;letter-spacing:.06em;padding-bottom:2px}
#hd .cal-grid .cd{aspect-ratio:1/1;max-width:100%;min-height:34px;border-radius:8px;border:1px solid var(--line);background:var(--surface);font-family:var(--f-mono);font-size:.85rem;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;padding:0;position:relative;line-height:1;font-weight:500;color:var(--fg)}
#hd .cal-grid .cd small{font-family:var(--f-body);font-size:.55rem;font-weight:700;letter-spacing:.02em}
#hd .cal-grid .cd.out{visibility:hidden}
#hd .cal-grid .cd.dim{color:var(--muted);background:transparent;border-style:dashed;cursor:default}
#hd .cal-grid .cd.wkend{background:var(--surface-2)}
#hd .cal-grid .cd.today{box-shadow:inset 0 0 0 2px var(--accent)}
#hd .cal-grid .cd.f-nac,#hd .cal-grid .cd.f-aut,#hd .cal-grid .cd.f-loc{background:var(--fest-soft);color:var(--fest);border-color:color-mix(in oklab,var(--fest) 35%,transparent)}
#hd .cal-grid .cd.f-own{background:var(--fest);color:var(--surface);border-color:var(--fest)}
#hd .cal-grid .cd.cls{background:var(--cc);color:var(--on-cc);border-color:var(--cc)}
#hd .cal-grid .cd.cls.extra{box-shadow:inset 0 0 0 2px var(--on-cc)}
#hd .cal-grid .cd.off{background:repeating-linear-gradient(135deg,var(--surface-2) 0 5px,var(--surface) 5px 10px);color:var(--muted);text-decoration:line-through}
#hd .cal-legend{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:.78rem;color:var(--muted)}
#hd .cal-legend span{display:inline-flex;align-items:center;gap:6px}
#hd .cal-legend i{width:14px;height:14px;border-radius:4px;display:inline-block;border:1px solid var(--line)}
#hd .cal-count{font-size:.85rem}
#hd .addfest{background:var(--fest-soft);border-radius:10px;padding:14px;display:flex;flex-direction:column;gap:10px}
#hd .addfest .row3{display:grid;grid-template-columns:1fr 1fr 2fr auto;gap:8px;align-items:end}
@media (max-width:560px){#hd .addfest .row3{grid-template-columns:1fr 1fr}
#hd .addfest .row3 > :nth-child(3){grid-column:1 / -1}
#hd .addfest .row3 button{grid-column:1 / -1;justify-content:center}
}
#hd .mine{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
#hd .mine li{display:flex;align-items:center;gap:10px;background:var(--surface);border-radius:8px;padding:6px 6px 6px 12px;font-size:.9rem}
#hd .mine li .d{font-family:var(--f-mono);font-size:.82rem;white-space:nowrap}
#hd .mine li span:nth-child(2){flex:1;min-width:0;overflow-wrap:anywhere}
#hd .p-own{background:var(--surface-2);color:var(--fg)}
#hd .fest-full{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;max-height:46vh;overflow-y:auto;border:1px solid var(--line);border-radius:8px}
#hd .fest-full li{display:grid;grid-template-columns:5.2rem minmax(0,1fr) auto auto;gap:10px;align-items:center;padding:8px 12px;border-top:1px solid var(--line);font-size:.9rem}
#hd .fest-full li:first-child{border-top:0}
#hd .fest-full li.month{display:block;background:var(--surface-2);font-weight:700;font-size:.75rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);padding:5px 12px}
#hd .fest-full .d{font-family:var(--f-mono);font-size:.82rem}
#hd .fest-full .sun{color:var(--muted)}
#hd .nowline{position:absolute;left:0;right:0;height:2px;background:var(--danger);z-index:1;pointer-events:none}
#hd .nowline::before{content:"";position:absolute;left:-4px;top:-3px;width:8px;height:8px;border-radius:50%;background:var(--danger)}
#hd .board-empty{padding:28px;text-align:center;color:var(--muted)}
#hd .courses{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:14px}
#hd .card{background:linear-gradient(to bottom,color-mix(in oklab,var(--cc,var(--accent)) 11%,var(--surface)) 0,var(--surface) 92px);border:1px solid color-mix(in oklab,var(--cc,var(--accent)) 22%,var(--line));border-radius:14px;padding:16px;box-shadow:0 1px 2px rgb(0 0 0 / .04);display:flex;flex-direction:column;gap:10px;min-width:0}
#hd .card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
#hd .card h3{font-size:1.05rem;font-weight:600;overflow-wrap:anywhere}
#hd .card .org{color:var(--muted);font-size:.88rem}
#hd .kv{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;font-size:.88rem}
#hd .kv dt{color:var(--muted)}
#hd .kv dd{margin:0;min-width:0;overflow-wrap:anywhere}
#hd .card-foot{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto}
#hd details.finished summary{cursor:pointer;color:var(--muted);font-weight:700;padding:4px 0}
#hd details.finished .courses{margin-top:12px}
#hd .empty{background:var(--surface);border:1px dashed var(--line);border-radius:var(--radius);padding:28px;text-align:center;display:flex;flex-direction:column;gap:10px;align-items:center}
#hd .toasts{position:fixed;top:calc(12px + env(safe-area-inset-top,0px));right:calc(12px + env(safe-area-inset-right,0px));left:calc(12px + env(safe-area-inset-left,0px));display:flex;flex-direction:column;align-items:flex-end;gap:10px;z-index:50;pointer-events:none}
#hd .toast{pointer-events:auto;width:min(380px,100%);background:var(--surface);border:2px solid var(--cc,var(--accent));border-radius:12px;padding:14px 16px;box-shadow:0 10px 30px rgb(0 0 0 / .18);display:flex;flex-direction:column;gap:8px;animation:pop .25s ease-out}
#hd .toast .tt{font-family:var(--f-display);font-weight:800;font-size:1.05rem}
#hd .toast .row{display:flex;gap:8px;flex-wrap:wrap}

@keyframes pop{from{transform:translateY(-8px);opacity:0}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){#hd .toast{animation:none}
}
#hd .overlay{position:fixed;inset:0;background:rgb(10 18 24 / .45);z-index:40;display:flex;justify-content:center;align-items:flex-start;overflow-y:auto;padding:calc(24px + env(safe-area-inset-top,0px)) max(12px,env(safe-area-inset-right,0px)) calc(24px + env(safe-area-inset-bottom,0px)) max(12px,env(safe-area-inset-left,0px))}
#hd .sheet{background:var(--surface);border-radius:14px;width:min(640px,100%);padding:22px;display:flex;flex-direction:column;gap:16px;border:1px solid var(--line)}
#hd .sheet-head{display:flex;justify-content:space-between;align-items:center;gap:10px}
#hd .grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width:520px){#hd .grid2{grid-template-columns:1fr}
}
#hd .field{display:flex;flex-direction:column;gap:5px;min-width:0}
#hd .field label,#hd .field .lbl{font-weight:700;font-size:.88rem}
#hd .field .hint{font-size:.8rem;color:var(--muted)}
#hd input,#hd select,#hd textarea{font:inherit;color:var(--fg);background:var(--bg);border:1px solid var(--line);border-radius:8px;padding:8px 10px;width:100%;min-width:0}
#hd textarea{min-height:64px;resize:vertical}
#hd .swatches{display:flex;flex-wrap:wrap;gap:8px}
#hd .swatches label{position:relative;cursor:pointer}
#hd .swatches input{position:absolute;opacity:0;width:1px;height:1px}
#hd .swatches span{display:block;width:30px;height:30px;border-radius:50%;background:var(--cc);border:3px solid var(--surface);box-shadow:0 0 0 1px var(--line)}
#hd .swatches input:checked + span{box-shadow:0 0 0 2px var(--fg)}
#hd .swatches input:focus-visible + span{outline:2px solid var(--accent);outline-offset:3px}
#hd .presets{display:flex;flex-wrap:wrap;gap:6px}
#hd .presets button{padding:5px 12px;font-size:.84rem;border-radius:99px}
#hd .presets button[aria-pressed="true"]{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}
#hd .daychips{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
#hd .daychips button{justify-content:center;padding:10px 0;border-radius:10px;font-family:var(--f-display);font-size:1rem;flex-direction:column;gap:0;line-height:1.1}
#hd .daychips button small{font-family:var(--f-body);font-size:.66rem;font-weight:400;color:var(--muted)}
#hd .daychips button[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:var(--accent-fg)}
#hd .daychips button[aria-pressed="true"] small{color:var(--accent-fg);opacity:.85}
#hd .timebox{display:grid;grid-template-columns:1fr auto 1fr;gap:10px;align-items:end}
#hd .timebox .arrow{padding-bottom:9px;color:var(--muted)}
#hd .timebox input{font-family:var(--f-mono);font-size:1.05rem}
#hd .switch{display:flex;align-items:center;gap:10px;cursor:pointer;font-size:.9rem}
#hd .switch input{width:auto}
#hd .summary-line{background:var(--surface-2);border-radius:8px;padding:8px 12px;font-size:.9rem}
#hd .sess{display:flex;flex-direction:column;gap:8px}
#hd .sess-row .dname{font-weight:700}
#hd .sess-row{display:grid;grid-template-columns:1.3fr 1fr 1fr auto;gap:8px;align-items:center}
@media (max-width:460px){#hd .sess-row{grid-template-columns:1fr 1fr;}
#hd .sess-row select{grid-column:1 / -1}
}
#hd .chips{display:flex;flex-wrap:wrap;gap:6px}
#hd .special{border:1px dashed var(--line);border-radius:10px;padding:12px;display:flex;flex-direction:column;gap:8px}
#hd .special .row4{display:grid;grid-template-columns:1.3fr 1fr 1fr auto;gap:8px;align-items:end}
@media (max-width:520px){#hd .special .row4{grid-template-columns:1fr 1fr}
#hd .special .row4 > :first-child{grid-column:1 / -1}
#hd .special .row4 button{grid-column:1 / -1;justify-content:center}
}
#hd .splist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
#hd .splist li{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:var(--surface-2);border-radius:8px;padding:6px 6px 6px 12px;font-size:.9rem}
#hd .splist li .d{font-weight:700;flex:1 1 auto}
#hd .splist li .h{font-family:var(--f-mono);flex:1 1 100%;order:5;font-size:.85rem}
#hd .splist li .h .muted{font-family:var(--f-body)}
#hd .splist li .delta{font-size:.78rem;font-weight:700;color:var(--accent)}
#hd .chip{display:inline-flex;align-items:center;gap:4px;background:var(--surface-2);border-radius:99px;padding:2px 4px 2px 10px;font-size:.82rem}
#hd .chip button{padding:2px 6px;border:0;background:transparent;font-size:.9rem}
#hd .inline-add{display:flex;gap:8px}
#hd .err{color:var(--danger);font-weight:700;font-size:.88rem}
#hd .sheet-foot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;align-items:center}
#hd .confirm{display:flex;gap:8px;align-items:center;flex-wrap:wrap;background:var(--danger-soft);padding:8px 10px;border-radius:8px}
#hd .authorbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:10px 14px}
#hd .authorbar .who{font-size:.9rem;color:var(--muted)}
#hd .authorbar .who b{color:var(--fg);font-family:var(--f-display);font-weight:600}
#hd .authorbar .who{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1 1 320px}
#hd .authorbar .pitch{font-size:.95rem;font-weight:600;color:var(--fg)}
#hd .authorbar .pitch a{color:var(--accent);font-weight:800;white-space:nowrap}
#hd .hero .authorbar .pitch{color:#fff}
#hd .hero .authorbar .pitch a{color:#fff3c4;text-decoration:underline;text-underline-offset:3px}
#hd .authorbar .acts{display:flex;flex-wrap:wrap;gap:8px}
#hd .authorbar .btn,#hd .authorbar button{padding:6px 12px;font-size:.85rem}
#hd .credits{border-top:1px solid var(--line);padding-top:18px;display:flex;flex-direction:column;gap:8px;font-size:.88rem;color:var(--muted);max-width:72ch}
#hd .credits .by{font-family:var(--f-display);font-weight:600;font-size:1.05rem;color:var(--fg)}
#hd .credits h3{font-size:.95rem;color:var(--fg)}
#hd .credits p{margin:0}
#hd .credits a{color:var(--accent)}
#hd .credits .cite{background:var(--surface-2);border-radius:8px;padding:8px 12px;color:var(--fg);font-size:.85rem;user-select:all}
#hd .backup{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:16px;display:flex;flex-direction:column;gap:10px}
#hd .backup .row{display:flex;flex-wrap:wrap;gap:8px}
#hd .backup .msg{font-size:.88rem;font-weight:700}
#hd .backup .msg.ok{color:var(--ok)}
#hd .backup .msg.bad{color:var(--danger)}
#hd .offline-only{display:none}
#hd .is-offline .offline-only{display:revert}
#hd .is-offline .online-only{display:none}
#hd footer.foot{color:var(--muted);font-size:.85rem;display:flex;flex-wrap:wrap;gap:6px 18px;justify-content:space-between}


/* ===== aspecto b·tutora ===== */
#hd .wrap{padding-block:26px 30px;gap:24px}
#hd button,#hd .btn{border:2px solid var(--ink);border-radius:999px;font-family:var(--body);background:var(--paper-2);color:var(--ink)}
#hd button.primary,#hd .btn.primary{background:var(--cobalt);border-color:var(--cobalt);color:var(--on-cobalt)}
#hd button.ghost{border-color:transparent;background:transparent}
#hd button.danger{background:var(--paper-2);color:var(--bad);border-color:var(--bad)}
#hd .hero{background:var(--night);color:var(--on-night);border:2px solid var(--ink);border-radius:26px;padding:24px 26px;box-shadow:10px 10px 0 var(--cobalt);overflow:hidden}
#hd .hero::before{opacity:.07;background-size:24px 24px;-webkit-mask-image:none;mask-image:none}
#hd .hero::after{content:"";position:absolute;width:420px;height:300px;right:-120px;top:-140px;background:radial-gradient(closest-side,rgba(43,59,242,.6),transparent);pointer-events:none}
#hd .hero .crumbs{font-size:14px;color:var(--on-night-soft)}#hd .hero .crumbs a{color:var(--on-night)}#hd .hero .crumbs span{margin:0 6px}
#hd .hero h1{font:800 clamp(44px,7vw,88px)/.92 var(--display);letter-spacing:-.035em;color:var(--on-night)}
#hd .hero h1 .hl{color:var(--marker)}
#hd .hero .tagline{font-size:clamp(17px,1.6vw,20px);color:var(--on-night-soft);margin-top:12px;max-width:52ch}
#hd .hero .today-line{color:var(--on-night-soft);margin-top:10px}
#hd .hero .today-line .mono{color:var(--on-marker);background:var(--marker);padding:1px 9px;border-radius:999px}
#hd .hero #btnAdd{background:var(--marker);color:var(--on-marker);border:2px solid var(--marker);padding:12px 22px;font-size:17px;box-shadow:5px 5px 0 var(--cobalt)}
#hd .stat{background:var(--paper-2);color:var(--ink);border:2px solid var(--ink);border-radius:18px;box-shadow:5px 5px 0 rgba(0,0,0,.35)}
#hd .stat .ico{background:var(--b-tut);color:var(--night);border:2px solid var(--ink)}#hd .stat .ico.amber{background:var(--marker);color:var(--night)}#hd .stat .ico.red{background:var(--bad);color:#fff}#hd .stat .ico.indigo{background:var(--b-eva);color:var(--night)}
#hd .stat .v{font-size:30px;color:var(--ink)}#hd .stat .k{color:var(--ink-soft);opacity:1}
#hd .panel,#hd .today,#hd .card,#hd .livebar,#hd .weekbox>summary,#hd .backup,#hd .board-scroll,#hd .empty{border:2px solid var(--ink);border-radius:20px;background:var(--paper-2)}
#hd .today{box-shadow:8px 8px 0 var(--marker)}
#hd .today-title{font:800 clamp(30px,4.4vw,46px)/1 var(--display)}#hd .today-title em{color:var(--cobalt)}
#hd .ag{border:2px solid var(--ink);border-radius:16px;background:color-mix(in srgb,var(--cc) 22%,var(--paper-2))}
#hd .ag .tchip{border:2px solid var(--ink)}
#hd .ag.past{background:var(--paper)}#hd .ag.past .tchip{border-color:var(--line)}
#hd .ag.live{box-shadow:5px 5px 0 var(--ink)}
#hd .follow{background:var(--marker);color:var(--on-marker);border:2px solid var(--ink);border-radius:20px;box-shadow:6px 6px 0 var(--ink)}
#hd .follow-head{color:var(--on-marker);font-size:20px;font-weight:800}
#hd .follow li{background:var(--paper-2);color:var(--ink);border:1.5px solid var(--ink)}
#hd .examples{background:var(--cobalt-soft);border:2px dashed var(--cobalt);border-radius:20px}
#hd .ph .pico{border:2px solid var(--ink);width:38px;height:38px;border-radius:12px}
#hd .pico.teal{background:var(--b-tut);color:var(--night)}#hd .pico.red{background:var(--bad);color:#fff}#hd .pico.amber{background:var(--marker);color:var(--night)}
#hd .card{background:linear-gradient(to bottom,color-mix(in srgb,var(--cc) 34%,var(--paper-2)) 0,var(--paper-2) 110px);box-shadow:6px 6px 0 var(--ink)}
#hd .card h3{font:800 22px/1.15 var(--display)}
#hd .ring b{background:var(--paper-2)}
#hd .sec-title{font:800 clamp(28px,3.4vw,40px)/1 var(--display)}
#hd .sec-title .count{background:var(--marker);color:var(--on-marker);border:1.5px solid var(--ink)}
#hd .weekbox>summary h2{font:800 24px var(--display)}
#hd .board .dh b{font-weight:800}
#hd .blk{border:1.5px solid var(--ink);color:var(--on-cc)}
#hd .sheet{border:2px solid var(--ink);border-radius:22px;background:var(--paper-2);box-shadow:10px 10px 0 var(--ink)}
#hd .sheet h2{font:800 28px var(--display)}
#hd input,#hd select,#hd textarea{background:var(--paper);border:1.5px solid var(--line);border-radius:10px;padding:10px 12px;color:var(--ink)}
#hd .daychips button[aria-pressed="true"],#hd .presets button[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:var(--paper)}
#hd .daychips button[aria-pressed="true"] small{color:var(--paper)}
#hd .toast{border:2px solid var(--ink);border-left:12px solid var(--cc,var(--cobalt));border-radius:18px;background:var(--paper-2);box-shadow:6px 6px 0 var(--ink)}
#hd .pill{border:1.5px solid currentColor}
#hd .p-ok{background:var(--ok-soft);color:var(--ok)}#hd .p-soon{background:var(--warn-soft);color:var(--warn)}#hd .p-live{background:var(--cobalt-soft);color:var(--cobalt)}#hd .p-fest{background:var(--bad-soft);color:var(--bad)}
#hd .backup h2{font:800 24px var(--display)}
#hd .backup .msg.ok{color:var(--ok)}#hd .backup .msg.bad{color:var(--bad)}
#hd .cal-grid .cd.cls{color:var(--on-cc)}
#hd .overlay{z-index:120}
#hd .toasts{z-index:130;top:calc(76px + env(safe-area-inset-top,0px))}
#hd .crumbs{display:flex;gap:4px;flex-wrap:wrap}
