:root{
  --bg:#0D0608;
  --text:#F5EDE8;
  --muted:#C7B7A3;
  --dim:rgba(199,183,163,.62);
  --vino:#561C24;
  --terra:#A0453A;
  --terra-hi:#c2604f;
  --glass:rgba(245,237,232,.045);
  --glass-2:rgba(245,237,232,.075);
  --glass-3:rgba(245,237,232,.11);
  --line:rgba(245,237,232,.09);
  --line-2:rgba(245,237,232,.16);
  --radius:18px;
  --radius-sm:12px;
  --shadow:0 10px 30px rgba(0,0,0,.35);
  --safe-b:env(safe-area-inset-bottom,0px);
  --ok:#86efac; --ok-bg:rgba(34,197,94,.14);
  --warn:#fcd34d; --warn-bg:rgba(245,158,11,.15);
  --chg:#fdba74; --chg-bg:rgba(249,115,22,.15);
  --late:#fca5a5; --late-bg:rgba(239,68,68,.16);
  --info:#93c5fd; --info-bg:rgba(96,165,250,.15);
  --idle:#C7B7A3; --idle-bg:rgba(199,183,163,.12);
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%;background:var(--bg)}
body{
  font-family:'Plus Jakarta Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  color:var(--text);min-height:100vh;line-height:1.45;
  -webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;
}
button,input,textarea,select{font:inherit;color:inherit}
button{cursor:pointer;border:0;background:none}
a{color:inherit}
.orbs{position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden}
.orbs::before,.orbs::after{content:"";position:absolute;border-radius:50%;filter:blur(60px);opacity:.7}
.orbs::before{width:420px;height:420px;left:-140px;top:-120px;background:radial-gradient(circle,#7a2631 0%,rgba(86,28,36,0) 70%)}
.orbs::after{width:460px;height:460px;right:-180px;bottom:-160px;background:radial-gradient(circle,#b0513f 0%,rgba(160,69,58,0) 70%);opacity:.4}

.shell{max-width:560px;margin:0 auto;padding:0 16px calc(96px + var(--safe-b))}
.shell.home{padding-bottom:40px}

/* ── Inicio ── */
.brand{display:flex;align-items:center;gap:10px;padding:28px 2px 0}
.brand img{width:30px;height:30px}
.brand span{font-weight:700;letter-spacing:.02em;font-size:15px;color:var(--muted)}
.brand b{color:var(--text);font-weight:800}
.hello{margin:34px 2px 6px;font-size:30px;font-weight:800;letter-spacing:-.02em;line-height:1.15}
.hello-sub{color:var(--muted);font-size:15px;margin:0 2px 22px}
.people{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.person{
  position:relative;text-align:left;padding:18px 16px 16px;border-radius:var(--radius);
  background:var(--glass);border:1px solid var(--line);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  transition:transform .15s ease,background .15s ease,border-color .15s ease;min-height:132px;
  display:flex;flex-direction:column;justify-content:space-between;
}
.person:hover,.person:focus-visible{background:var(--glass-2);border-color:var(--line-2);outline:none}
.person:active{transform:scale(.98)}
.person .av{width:46px;height:46px;font-size:19px}
.person .n{font-weight:800;font-size:18px;margin-top:14px}
.person .r{color:var(--dim);font-size:12.5px;font-weight:500}
.person .lock{position:absolute;top:14px;right:14px;color:var(--dim)}
.person .lock svg{width:16px;height:16px}
.av{border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:800;color:#fff;flex-shrink:0;
  background:linear-gradient(135deg,var(--terra),var(--vino));box-shadow:inset 0 1px 0 rgba(255,255,255,.18)}
.av.gregory{background:linear-gradient(135deg,#c2604f,#6e2430)}
.av.alonso{background:linear-gradient(135deg,#b07a3f,#5a3419)}
.av.miriam{background:linear-gradient(135deg,#9a5a86,#4b1f3e)}
.av.keyder{background:linear-gradient(135deg,#A0453A,#561C24)}
.home-foot{margin-top:28px;color:var(--dim);font-size:12.5px;text-align:center}

/* ── Barra superior ── */
.top{position:sticky;top:0;z-index:5;margin:0 -16px;padding:14px 16px 12px;
  background:linear-gradient(180deg,rgba(13,6,8,.92),rgba(13,6,8,.72));backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
  border-bottom:1px solid var(--line);display:flex;align-items:center;gap:12px}
.top .av{width:40px;height:40px;font-size:16px}
.top .who{flex:1;min-width:0}
.top .who b{display:block;font-size:17px;font-weight:800;line-height:1.2}
.top .who span{color:var(--dim);font-size:12.5px}
.icon-btn{height:36px;padding:0 12px;border-radius:999px;background:var(--glass-2);border:1px solid var(--line);
  color:var(--muted);font-size:13px;font-weight:600;display:inline-flex;align-items:center;gap:6px}
.icon-btn svg{width:15px;height:15px}

.section-title{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:22px 2px 12px}
.section-title h2{font-size:20px;font-weight:800;letter-spacing:-.01em}
.section-title .count{color:var(--dim);font-size:13px;font-weight:600}
.sub-title{color:var(--dim);font-size:11.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;margin:24px 2px 10px}

/* ── Tarjetas ── */
.list{display:flex;flex-direction:column;gap:12px}
.card{border-radius:var(--radius);background:var(--glass);border:1px solid var(--line);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);padding:16px;overflow:hidden}
.card.flash{animation:flash 1.6s ease}
@keyframes flash{0%{border-color:var(--terra-hi);box-shadow:0 0 0 3px rgba(194,96,79,.25)}100%{border-color:var(--line);box-shadow:none}}
.meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.meta .spacer{flex:1}
.acc{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:700;color:var(--muted)}
.acc i{width:8px;height:8px;border-radius:50%;display:inline-block}
.pill{display:inline-flex;align-items:center;gap:5px;height:24px;padding:0 10px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap}
.pill.idle{color:var(--idle);background:var(--idle-bg)}
.pill.late{color:var(--late);background:var(--late-bg)}
.pill.warn{color:var(--warn);background:var(--warn-bg)}
.pill.chg{color:var(--chg);background:var(--chg-bg)}
.pill.info{color:var(--info);background:var(--info-bg)}
.pill.ok{color:var(--ok);background:var(--ok-bg)}
.card h3{font-size:17px;font-weight:700;line-height:1.3;margin:10px 0 4px;letter-spacing:-.005em}
.card .line{color:var(--dim);font-size:13px}
.card .line b{color:var(--muted);font-weight:600}
.note{margin-top:12px;border-radius:var(--radius-sm);padding:12px 14px;font-size:14px;line-height:1.5;white-space:pre-wrap}
.note.chg{background:var(--chg-bg);color:#fde2cc;border:1px solid rgba(249,115,22,.25)}
.note.chg b{color:var(--chg);display:block;font-size:12px;letter-spacing:.06em;text-transform:uppercase;margin-bottom:4px}
.brief{margin-top:12px}
.brief summary{list-style:none;cursor:pointer;color:var(--muted);font-size:13.5px;font-weight:600;display:inline-flex;align-items:center;gap:6px}
.brief summary::-webkit-details-marker{display:none}
.brief summary svg{width:14px;height:14px;transition:transform .2s ease}
.brief[open] summary svg{transform:rotate(90deg)}
.brief > div:not(.player-wrap){margin-top:8px;padding:12px 14px;border-radius:var(--radius-sm);background:rgba(0,0,0,.22);color:var(--muted);font-size:14px;white-space:pre-wrap;line-height:1.55}

.actions{display:flex;gap:10px;margin-top:14px;flex-wrap:wrap}
.btn{text-decoration:none;height:48px;padding:0 18px;border-radius:14px;font-weight:700;font-size:15px;display:inline-flex;align-items:center;justify-content:center;gap:8px;
  transition:transform .12s ease,filter .15s ease,background .15s ease;white-space:nowrap}
.btn:active{transform:scale(.98)}
.btn svg{width:18px;height:18px;flex-shrink:0}
.btn.block{width:100%}
.btn.grow{flex:1}
.btn.primary{background:linear-gradient(135deg,var(--terra-hi),var(--terra) 55%,#7d2f31);color:#fff;box-shadow:0 8px 22px rgba(160,69,58,.35)}
.btn.primary:hover{filter:brightness(1.07)}
.btn.soft{background:var(--glass-2);border:1px solid var(--line-2);color:var(--text)}
.btn.soft:hover{background:var(--glass-3)}
.btn.ok{background:rgba(34,197,94,.18);border:1px solid rgba(34,197,94,.35);color:#bbf7d0}
.btn.chg{background:var(--chg-bg);border:1px solid rgba(249,115,22,.32);color:#fed7aa}
.btn.danger{background:transparent;border:1px solid rgba(239,68,68,.35);color:var(--late)}
.btn[disabled]{opacity:.5;pointer-events:none}

/* ── Video ── */
.player-wrap{margin-top:14px;border-radius:14px;overflow:hidden;background:#000;position:relative}
.player{display:block;width:100%;max-height:70vh;background:#000}
.player.small{max-height:46vh}
.brief .player-wrap{margin-top:10px}
.player-fallback{padding:26px 16px;text-align:center;color:var(--muted);font-size:14px}
.tools{display:flex;gap:8px;margin-top:10px}
.tools .btn{height:42px;font-size:14px}

/* ── Subida ── */
.progress{margin-top:14px;border-radius:var(--radius-sm);padding:14px;background:rgba(0,0,0,.25);border:1px solid var(--line)}
.progress .bar{height:8px;border-radius:99px;background:rgba(245,237,232,.1);overflow:hidden}
.progress .bar i{display:block;height:100%;width:0;border-radius:99px;background:linear-gradient(90deg,var(--terra),var(--terra-hi));transition:width .3s ease}
.progress .row{display:flex;justify-content:space-between;gap:10px;margin-top:10px;font-size:13px;color:var(--muted)}
.progress .row b{color:var(--text)}
.progress.err .bar i{background:var(--late)}
.progress .hint{margin-top:8px;font-size:12.5px;color:var(--dim)}

/* ── Publicar ── */
.publish{margin-top:14px;display:flex;flex-direction:column;gap:10px}
.field{width:100%;height:48px;border-radius:14px;padding:0 14px;background:rgba(0,0,0,.28);border:1px solid var(--line-2);font-size:15px;color:var(--text)}
.field:focus{outline:none;border-color:var(--terra-hi);box-shadow:0 0 0 3px rgba(194,96,79,.2)}
textarea.field{height:auto;min-height:110px;padding:12px 14px;resize:vertical;line-height:1.5}
.field::placeholder{color:var(--dim)}
input[type=date].field{color-scheme:dark;min-width:0;width:100%;padding:0 10px;font-size:14px;-webkit-appearance:none;appearance:none}
.two > label{min-width:0}
.post-link{display:inline-flex;align-items:center;gap:6px;margin-top:10px;color:var(--info);font-size:13.5px;font-weight:600;text-decoration:none}
.post-link svg{width:14px;height:14px}

/* ── Calendario ── */
.week{margin-top:18px}
.week h4{color:var(--dim);font-size:11.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;margin:0 2px 8px}
.rows{border-radius:var(--radius);background:var(--glass);border:1px solid var(--line);overflow:hidden}
.row{display:flex;align-items:center;gap:12px;padding:12px 14px;width:100%;text-align:left}
.row + .row{border-top:1px solid var(--line)}
button.row:hover{background:var(--glass-2)}
.day{width:40px;flex-shrink:0;text-align:center;line-height:1.05}
.day b{display:block;font-size:19px;font-weight:800}
.day span{font-size:11px;color:var(--dim);text-transform:uppercase;font-weight:700;letter-spacing:.04em}
.row .body{flex:1;min-width:0}
.row .t{font-weight:700;font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.row .s{font-size:12.5px;color:var(--dim);display:flex;align-items:center;gap:6px;margin-top:2px;white-space:nowrap;overflow:hidden}
.row .s i{width:7px;height:7px;border-radius:50%;flex-shrink:0}

/* ── Equipo ── */
.stats{display:grid;gap:12px}
.stat-card h3{display:flex;align-items:center;gap:10px;margin:0 0 14px}
.stat-card h3 .av{width:34px;height:34px;font-size:14px}
.nums{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.num{border-radius:12px;background:rgba(0,0,0,.22);padding:12px 10px;text-align:center}
.num b{display:block;font-size:22px;font-weight:800;line-height:1.1}
.num span{font-size:11.5px;color:var(--dim);font-weight:600}
.num.bad b{color:var(--late)} .num.good b{color:var(--ok)}
.stat-foot{margin-top:12px;font-size:13px;color:var(--muted)}

/* ── Vacío ── */
.empty{text-align:center;padding:40px 20px;color:var(--dim);border:1px dashed var(--line-2);border-radius:var(--radius)}
.empty svg{width:34px;height:34px;margin-bottom:10px;color:var(--muted);opacity:.7}
.empty b{display:block;color:var(--text);font-size:16px;margin-bottom:4px}

/* ── Pestañas ── */
.tabs{position:fixed;left:0;right:0;bottom:0;z-index:6;padding:8px 12px calc(8px + var(--safe-b));
  background:linear-gradient(0deg,rgba(13,6,8,.96),rgba(13,6,8,.82));backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border-top:1px solid var(--line)}
.tabs nav{max-width:560px;margin:0 auto;display:flex;gap:6px}
.tab{flex:1;height:54px;border-radius:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
  color:var(--dim);font-size:11.5px;font-weight:700;position:relative}
.tab svg{width:21px;height:21px}
.tab.on{color:var(--text);background:var(--glass-2)}
.tab .badge{position:absolute;top:6px;left:calc(50% + 6px);min-width:18px;height:18px;padding:0 5px;border-radius:99px;background:var(--terra);color:#fff;font-size:10.5px;line-height:18px;text-align:center}

/* ── Hoja inferior ── */
.sheet-bg{position:fixed;inset:0;z-index:20;background:rgba(0,0,0,.55);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);animation:fade .2s ease}
.sheet{position:fixed;left:0;right:0;bottom:0;z-index:21;max-height:92vh;overflow:auto;
  background:#170b0e;border-top:1px solid var(--line-2);border-radius:24px 24px 0 0;padding:10px 18px calc(22px + var(--safe-b));animation:up .25s ease}
.sheet-in{max-width:560px;margin:0 auto}
.grip{width:40px;height:5px;border-radius:99px;background:var(--line-2);margin:4px auto 14px}
.sheet h3{font-size:20px;font-weight:800;margin-bottom:4px}
.sheet p.lead{color:var(--muted);font-size:14px;margin-bottom:16px}
.form{display:flex;flex-direction:column;gap:14px}
.form label{display:flex;flex-direction:column;gap:6px;font-size:12.5px;font-weight:700;color:var(--muted);letter-spacing:.02em}
.two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{height:40px;padding:0 14px;border-radius:999px;border:1px solid var(--line-2);background:var(--glass);font-size:14px;font-weight:600;color:var(--muted);display:inline-flex;align-items:center;gap:7px}
.chip i{width:8px;height:8px;border-radius:50%}
.chip.on{background:rgba(160,69,58,.22);border-color:var(--terra-hi);color:var(--text)}
.err{color:var(--late);font-size:13.5px;min-height:18px}
@keyframes up{from{transform:translateY(30px);opacity:0}to{transform:none;opacity:1}}
@keyframes fade{from{opacity:0}to{opacity:1}}

/* ── Aviso ── */
#toast{position:fixed;left:50%;bottom:calc(92px + var(--safe-b));transform:translateX(-50%) translateY(20px);z-index:30;opacity:0;pointer-events:none;
  background:#241114;border:1px solid var(--line-2);color:var(--text);padding:12px 16px;border-radius:14px;font-size:14px;font-weight:600;
  box-shadow:var(--shadow);transition:opacity .2s ease,transform .2s ease;max-width:calc(100vw - 32px);text-align:center}
#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}

.loading{padding:60px 0;text-align:center;color:var(--dim)}
.fab{position:fixed;right:max(16px,calc(50% - 264px));bottom:calc(84px + var(--safe-b));z-index:7;height:52px;padding:0 20px;border-radius:999px}

@media (min-width:700px){
  .hello{font-size:34px}
  .people{grid-template-columns:repeat(4,1fr)}
}

/* ── Calendario del mes ── */
.month-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:20px 0 10px}
.month-head h2{font-size:20px;font-weight:800;letter-spacing:-.01em;text-align:center;flex:1}
.icon-btn.round{width:40px;height:40px;padding:0;justify-content:center}
.icon-btn.round svg{width:18px;height:18px}
.month-sum{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 14px;color:var(--muted);font-size:12.5px;margin-bottom:12px}
.month-sum b{color:var(--text);font-weight:800}
.month-sum i{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:5px}
.grid-wrap{border-radius:var(--radius);background:var(--glass);border:1px solid var(--line);padding:10px 8px 12px;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.wk,.grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.cell{min-width:0;overflow:hidden}
.wk span{text-align:center;font-size:11px;font-weight:700;color:var(--dim);padding:2px 0 6px}
.cell{aspect-ratio:1/1.05;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding-top:6px;gap:4px;color:var(--dim);font-size:13.5px}
.cell.out{visibility:hidden}
.cell.has{color:var(--text);background:rgba(245,237,232,.04)}
.cell.has:hover{background:var(--glass-3)}
.cell b{font-weight:700;line-height:1}
.cell.today b{color:#fff;background:var(--terra);width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin-top:-3px}
.mks{display:flex;gap:3px;flex-wrap:wrap;justify-content:center;max-width:32px}
.mk{display:inline-block;width:6px;height:6px;border-radius:50%}
.mk.rec{width:12px;border-radius:3px;background:var(--terra-hi)}
.mk.due{background:var(--warn)}
.legend{display:flex;flex-wrap:wrap;gap:6px 14px;justify-content:center;margin-top:12px;font-size:11.5px;color:var(--dim)}
.legend span{display:inline-flex;align-items:center;gap:6px}

.agenda{margin-top:16px;display:flex;flex-direction:column;gap:12px}
.aday{border-radius:var(--radius);background:var(--glass);border:1px solid var(--line);overflow:hidden;scroll-margin-top:84px}
.aday.today{border-color:rgba(194,96,79,.45)}
.aday.flash{animation:flash 1.6s ease}
.aday-h{display:flex;align-items:baseline;gap:8px;padding:12px 14px 6px}
.aday-h b{font-size:20px;font-weight:800}
.aday-h span{color:var(--muted);font-size:13px;font-weight:600;text-transform:capitalize}
.aday-h em{font-style:normal;margin-left:auto;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.1em;color:var(--terra-hi)}
.aday-items{display:flex;flex-direction:column}
.it{display:flex;align-items:flex-start;gap:12px;padding:10px 14px;width:100%;text-align:left;border-top:1px solid var(--line)}
button.it:hover{background:var(--glass-2)}
.it .ic{width:32px;height:32px;border-radius:10px;display:flex;align-items:center;justify-content:center;flex-shrink:0;background:var(--glass-2);color:var(--muted)}
.it .ic svg{width:16px;height:16px}
.it.rec .ic{background:rgba(194,96,79,.22);color:#f3b3a6}
.it.due .ic{background:var(--warn-bg);color:var(--warn)}
.it .body{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.it .t{font-weight:700;font-size:14.5px;line-height:1.3}
.it .s{font-size:12.5px;color:var(--dim);display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.it .s.kind{color:var(--muted);font-weight:600;font-size:12px}
.plist{list-style:none;display:flex;flex-direction:column;gap:3px;margin-top:4px}
.plist li{font-size:13px;color:var(--muted);display:flex;gap:8px;align-items:baseline}
.plist li i{width:6px;height:6px;border-radius:50%;flex-shrink:0;transform:translateY(-1px)}
.note-s{margin-top:8px;font-size:12.5px;color:var(--dim);line-height:1.5;padding:8px 10px;border-radius:10px;background:rgba(0,0,0,.2)}
.it .s i{width:7px;height:7px;border-radius:50%;display:inline-block}
.it .pill{margin-top:2px}
.fmt{font-size:11.5px;font-weight:700;color:var(--dim);border:1px solid var(--line-2);border-radius:99px;padding:1px 8px}
.chips.mini{margin-top:6px}
.chips.mini .chip{height:32px;font-size:12.5px;padding:0 10px}
.chips.mini .chip svg{width:14px;height:14px}
input[type=time].field{color-scheme:dark}

/* ───────── Computador y tableta ───────── */
.side{display:none}
.desk-head{display:none}
.lbls{display:none}

@media (min-width:700px){
  .shell{max-width:900px}
  .tabs nav{max-width:900px}
  .list{display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:16px;align-items:start}
  .stats{grid-template-columns:repeat(auto-fill,minmax(330px,1fr))}
  .shell.home{max-width:980px}
  .hello{font-size:44px;margin-top:64px}
  .hello-sub{font-size:17px;margin-bottom:32px}
  .people{grid-template-columns:repeat(4,1fr);gap:16px}
  .person{min-height:190px;padding:24px 22px 22px}
  .person .av{width:60px;height:60px;font-size:24px}
  .person .n{font-size:21px}
  .person .r{font-size:13.5px}
  .home-foot{margin-top:40px;font-size:13.5px}

  /* formularios en ventana centrada */
  .sheet{left:50%;right:auto;top:50%;bottom:auto;width:min(620px,92vw);max-height:88vh;transform:translate(-50%,-50%);
    border:1px solid var(--line-2);border-radius:24px;padding:26px 30px 28px;animation:pop .2s ease}
  .grip{display:none}
  @keyframes pop{from{opacity:0;transform:translate(-50%,-48%) scale(.98)}to{opacity:1;transform:translate(-50%,-50%)}}
}

@media (min-width:1024px){
  .side{display:flex;flex-direction:column;position:fixed;left:0;top:0;bottom:0;width:256px;z-index:8;padding:26px 16px 18px;
    background:linear-gradient(180deg,rgba(23,11,14,.92),rgba(13,6,8,.92));border-right:1px solid var(--line);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
  .side .brand{padding:0 10px 26px}
  .side-nav{display:flex;flex-direction:column;gap:4px;flex:1}
  .side-link{display:flex;align-items:center;gap:12px;height:46px;padding:0 14px;border-radius:12px;color:var(--muted);font-weight:600;font-size:14.5px;text-align:left}
  .side-link svg{width:19px;height:19px;flex-shrink:0}
  .side-link span{flex:1}
  .side-link em{font-style:normal;min-width:22px;height:22px;padding:0 7px;border-radius:99px;background:var(--terra);color:#fff;font-size:12px;font-weight:700;line-height:22px;text-align:center}
  .side-link:hover{background:var(--glass-2);color:var(--text)}
  .side-link.on{background:rgba(160,69,58,.2);color:var(--text);box-shadow:inset 0 0 0 1px rgba(194,96,79,.35)}
  .side-me{display:flex;align-items:center;gap:10px;padding:14px 10px 0;border-top:1px solid var(--line)}
  .side-me .av{width:38px;height:38px;font-size:15px}
  .side-me .who{flex:1;min-width:0}
  .side-me .who b{display:block;font-size:14.5px}
  .side-me .who span{font-size:12px;color:var(--dim)}

  .shell.main{max-width:none;margin:0 0 0 256px;padding:0 44px 60px}
  .main .top{display:none}
  .desk-head{display:block;padding:38px 0 6px}
  .desk-head h1{font-size:34px;font-weight:800;letter-spacing:-.02em;line-height:1.15}
  .desk-head span{display:block;color:var(--dim);font-size:14px;font-weight:600;margin-top:4px}
  .main .section-title{margin-top:26px}
  .main .section-title h2{font-size:22px}
  .tabs{display:none}
  .fab{position:absolute;top:40px;bottom:auto;right:44px}
  #toast{bottom:32px}

  .list{grid-template-columns:repeat(auto-fill,minmax(380px,1fr));gap:20px}
  .card{padding:20px}
  .player{max-height:62vh}

  /* calendario a todo el ancho + agenda debajo en columnas */
  .cal-layout{display:block;margin-top:8px}
  .cal-side .agenda{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:16px;align-items:start;margin-top:22px}
  .month-head{margin-top:14px}
  .month-head h2{font-size:24px}
  .month-sum{justify-content:flex-start;font-size:13.5px;padding:0 4px}
  .grid-wrap{padding:14px}
  .wk span{font-size:12px;text-align:left;padding-left:8px}
  .grid{gap:6px}
  .cell{aspect-ratio:auto;min-height:118px;align-items:stretch;padding:8px 8px 6px;gap:5px;text-align:left}
  .cell b{font-size:13px;align-self:flex-start;padding-left:2px}
  .cell.today b{margin:0}
  .mks{display:none}
  .lbls{display:flex;flex-direction:column;gap:3px;min-width:0;width:100%}
  .lb{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;max-width:100%;font-size:11.5px;line-height:1.3;padding:3px 6px;border-radius:6px;
    overflow:hidden;color:var(--text);background:rgba(245,237,232,.06);word-break:break-word}
  .lb.rec,.lb.more{-webkit-line-clamp:1}
  .lb svg{width:12px;height:12px;vertical-align:-2px;margin-right:4px}
  .lb b{font-weight:700;color:var(--muted)}
  .lb.rec{background:rgba(194,96,79,.25);color:#f6c7bd;font-weight:700}
  .lb.due{background:var(--warn-bg);color:#fde68a}
  .lb.pub{box-shadow:inset 3px 0 0 var(--c);padding-left:8px}
  .lb.more{background:none;color:var(--dim);padding-left:6px}
}

  /* revisar: video a la izquierda, datos y botones a la derecha */
  .list.review-list{grid-template-columns:1fr;max-width:1100px}
  .card.review{display:grid;grid-template-columns:minmax(260px,380px) minmax(0,1fr);grid-template-areas:"media top" "media actions";gap:0 28px;align-content:start}
  .card.review .rv-top{grid-area:top}
  .card.review .rv-media{grid-area:media}
  .card.review .rv-media .player-wrap{margin-top:0}
  .card.review .rv-actions{grid-area:actions;align-self:end}
  .card.review h3{font-size:22px}
  /* editar pieza: formulario e historial lado a lado */
  .sheet.wide{width:min(1020px,94vw)}
  .sheet.wide .sheet-in{max-width:none;display:grid;grid-template-columns:minmax(0,1.45fr) minmax(260px,1fr);gap:0 34px;align-items:start}
  .sheet.wide .sheet-in > h3,.sheet.wide .sheet-in > .lead,.sheet.wide .sheet-in > .grip{grid-column:1/-1}
  .sheet.wide .hist{margin-top:0;position:sticky;top:0;padding:16px 18px;border-radius:16px;background:rgba(0,0,0,.2);border:1px solid var(--line)}
}

@media (min-width:1500px){
  .cell{min-height:132px}
}

/* ── Auditoría: filtros, historial, avisos ── */
.acc-filter{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 10px;scrollbar-width:none}
.acc-filter::-webkit-scrollbar{display:none}
.acc-filter .chip{height:34px;font-size:13px;flex-shrink:0}
.icon-btn.round.sm{width:32px;height:32px;margin-left:4px}
.icon-btn.round.sm svg{width:15px;height:15px}
.hist{margin-top:22px}
.hist .sub-title{margin-top:0}
.hist-list{display:flex;flex-direction:column;border-left:2px solid var(--line-2);margin-left:6px;padding-left:14px;gap:10px}
.hist-it{font-size:13.5px;color:var(--muted);line-height:1.45;position:relative}
.hist-it::before{content:"";position:absolute;left:-19.5px;top:6px;width:9px;height:9px;border-radius:50%;background:var(--terra)}
.hist-it b{color:var(--text);font-weight:700}
.hist-it span{color:var(--dim)}
.hist-it em{display:block;font-style:normal;font-size:12px;color:var(--dim)}
.hist .s{font-size:13px;color:var(--dim)}
#toast{display:flex;align-items:center;gap:12px;pointer-events:none}
#toast.show{pointer-events:auto}
.toast-act{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;padding:7px 12px;border-radius:10px;background:rgba(37,211,102,.16);color:#86efac;text-decoration:none;font-size:13px;font-weight:700}
.toast-act svg{width:15px;height:15px}
.logout-m{margin-top:22px;width:100%}
@media (min-width:1024px){ .logout-m{display:none} }
