/* ---------- Gate / PIN ---------- */
.gate{position:fixed;inset:0;z-index:200;background:#0B0B0F;display:grid;place-items:center;padding:24px;transition:opacity .3s}
.gate.hidden{opacity:0;pointer-events:none}
.gate-card{text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px;max-width:320px;width:100%}
.gate-mark{width:64px;height:64px;border-radius:18px;background:linear-gradient(135deg,#FF7A18,#E01E2B);display:grid;place-items:center;font-weight:800;font-size:22px;color:#fff;box-shadow:0 10px 30px -8px rgba(224,30,43,.6);margin-bottom:8px}
.gate-card h1{font-size:26px;font-weight:800;color:#F4F4F7;letter-spacing:.5px}
.gate-card p{color:#8B8B98;font-size:14px;margin-bottom:14px}
.gate-pin{display:flex;gap:14px;margin-bottom:26px}
.gate-pin i{width:14px;height:14px;border-radius:50%;background:#242430;transition:.2s}
.gate-pin i.on{background:linear-gradient(135deg,#FF7A18,#E01E2B);transform:scale(1.1)}
.gate-pad{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;width:100%;max-width:280px}
.gate-pad button{aspect-ratio:1;border-radius:50%;background:#15151C;border:1px solid #242430;color:#F4F4F7;font-size:24px;font-weight:600;transition:.15s}
.gate-pad button:hover{background:#1C1C25;border-color:#3a3a46}
.gate-pad button:active{transform:scale(.94);background:#242430}
.gate-err{color:#ff5b6a;font-size:13px;font-weight:600;height:18px;margin-top:16px}

:root{
  --bg:#0B0B0F; --surface:#15151C; --surface2:#1C1C25; --line:#262632;
  --txt:#F4F4F7; --muted:#8B8B98; --muted2:#5E5E6B;
  --accent:#FF7A18; --accent2:#E01E2B;
  --grad:linear-gradient(135deg,#FF7A18 0%,#E01E2B 100%);
  --ok:#25C26E; --warn:#FFB020;
  --r:22px; --r-sm:14px;
  --sh:0 10px 30px -12px rgba(0,0,0,.6);
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{background:var(--bg);color:var(--txt);font-family:Inter,system-ui,sans-serif;-webkit-font-smoothing:antialiased}
button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit}
input{font-family:inherit}
svg{width:100%;height:100%;display:block}
.muted{color:var(--muted)}

#app{display:grid;grid-template-columns:248px 1fr;min-height:100vh}

/* ---------- Sidebar ---------- */
.side{background:var(--surface);border-right:1px solid var(--line);padding:22px 16px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}
.brand{display:flex;align-items:center;gap:12px;padding:6px 8px 26px}
.brand-mark{width:42px;height:42px;border-radius:12px;background:var(--grad);display:grid;place-items:center;font-weight:800;font-size:15px;color:#fff;box-shadow:0 6px 18px -6px rgba(224,30,43,.6)}
.brand b{font-size:16px;letter-spacing:.3px}
.brand small{display:block;color:var(--muted);font-size:11px}
nav{display:flex;flex-direction:column;gap:4px}
.nav-item{display:flex;align-items:center;gap:12px;padding:11px 12px;border-radius:12px;color:var(--muted);font-weight:500;font-size:14.5px;transition:.18s}
.nav-item:hover{background:var(--surface2);color:var(--txt)}
.nav-item.on{background:var(--surface2);color:var(--txt)}
.nav-item.on .nav-ic{color:var(--accent)}
.nav-ic{width:20px;height:20px;color:var(--muted2);transition:.18s}
.nav-item.on .nav-ic svg,.nav-item:hover .nav-ic{color:inherit}
.side-foot{margin-top:auto;padding-top:18px;border-top:1px solid var(--line)}
.coach,.ci-txt{display:flex;align-items:center;gap:10px}
.coach{padding:6px}
.coach-av{width:36px;height:36px;border-radius:10px;background:var(--surface2);display:grid;place-items:center;font-weight:700;font-size:13px;border:1px solid var(--line)}
.coach b{font-size:13.5px}.coach small{display:block;color:var(--muted);font-size:11px}

/* ---------- Main / top ---------- */
.main{padding:26px 34px 60px;max-width:1300px}
.top{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:26px;gap:20px;flex-wrap:wrap}
.top h1{font-size:30px;font-weight:800;letter-spacing:-.5px}
.top-sub{color:var(--muted);margin-top:4px;font-size:14px}
.top-actions{display:flex;align-items:center;gap:12px}
.search{display:flex;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:9px 14px;width:260px}
.search span{width:17px;height:17px;color:var(--muted2)}
.search input{background:none;border:none;color:var(--txt);outline:none;width:100%;font-size:13.5px}
.btn-ghost{width:40px;height:40px;border-radius:12px;background:var(--surface);border:1px solid var(--line);display:grid;place-items:center;color:var(--muted);transition:.18s}
.btn-ghost:hover{color:var(--txt);border-color:var(--muted2)}
.btn-ghost.sm{width:auto;height:auto;padding:7px 14px;font-size:12.5px;font-weight:600;border-radius:10px}
.btn-primary{background:var(--grad);color:#fff;font-weight:600;padding:10px 18px;border-radius:12px;font-size:14px;transition:.18s;box-shadow:0 8px 20px -8px rgba(224,30,43,.55)}
.btn-primary:hover{transform:translateY(-1px);box-shadow:0 12px 26px -8px rgba(224,30,43,.7)}
.btn-primary.right{margin-left:auto}

/* ---------- Bento ---------- */
.bento{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:22px;transition:.2s;animation:rise .5s both}
.card:hover{border-color:#33333f}
.span2{grid-column:span 2}.span4{grid-column:span 4}
@keyframes rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.card-k{color:var(--muted);font-size:12.5px;font-weight:600;text-transform:uppercase;letter-spacing:.5px}
.card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}
.big{display:block;font-size:26px;font-weight:800;margin:10px 0 4px;letter-spacing:-.5px}
.center-col{display:flex;flex-direction:column;align-items:center;gap:14px;justify-content:center}
.link{color:var(--accent);font-weight:600;font-size:13.5px}
.link:hover{text-decoration:underline}

.c-hero{background:radial-gradient(120% 140% at 0% 0%,rgba(255,122,24,.16),transparent 55%),var(--surface)}
.hero-top .pill{background:var(--surface2);border:1px solid var(--line);color:var(--muted);font-size:11.5px;font-weight:600;padding:5px 12px;border-radius:20px}
.hero-stats{display:flex;gap:34px;margin:20px 0 12px}
.hero-stats b{font-size:38px;font-weight:800;letter-spacing:-1px;display:block}
.hero-stats small{color:var(--muted);font-size:12.5px}
.hero-note{color:var(--muted);font-size:13.5px}
.c-accent{background:var(--grad);border:none;color:#fff}
.c-accent .card-k{color:rgba(255,255,255,.8)}
.c-accent .big{font-size:34px}
.c-accent small{color:rgba(255,255,255,.85);font-size:12.5px}
.lib-mini{display:flex;gap:26px;margin-top:14px}
.lib-mini b{font-size:30px;font-weight:800;display:block}
.lib-mini small{color:var(--muted);font-size:12px}

/* clientes grid en dashboard */
.clients-card .card-head b{font-size:16px}
.client-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.client-tile{background:var(--surface2);border:1px solid var(--line);border-radius:18px;padding:16px;text-align:left;display:flex;flex-direction:column;gap:8px;transition:.2s}
.client-tile:hover{transform:translateY(-3px);border-color:#3a3a46;box-shadow:var(--sh)}
.ct-top{display:flex;justify-content:space-between;align-items:flex-start}
.avatar{position:relative;width:46px;height:46px;border-radius:13px;background:var(--grad);display:grid;place-items:center;font-weight:700;font-size:15px;color:#fff}
.avatar.sm{width:34px;height:34px;font-size:12px;border-radius:10px;flex-shrink:0}
.dot{position:absolute;right:-2px;bottom:-2px;width:12px;height:12px;border-radius:50%;border:2.5px solid var(--surface2)}
.dot.online{background:var(--ok)}.dot.nuevo{background:var(--warn)}
.ct-name{font-size:15px;font-weight:700}
.ct-goal{color:var(--muted);font-size:12px;line-height:1.4;min-height:33px}
.ct-foot{display:flex;justify-content:space-between;color:var(--muted);font-size:11.5px;margin-top:2px;border-top:1px solid var(--line);padding-top:9px}
.ct-foot svg{width:12px;height:12px;display:inline;vertical-align:-1px;color:var(--accent)}

/* rings & spark */
.ring{width:auto;height:auto;flex-shrink:0}
.ring-bg{fill:none;stroke:var(--line);stroke-width:6}
.ring-fg{fill:none;stroke:url(#g);stroke-width:6;stroke-linecap:round;transition:stroke-dashoffset 1s ease}
.ring-fg{stroke:var(--accent)}
.ring-txt{fill:var(--txt);font-size:13px;font-weight:700;text-anchor:middle;dominant-baseline:middle;font-family:Inter}
.spark{width:100%;height:60px;margin-top:8px}
.spark-line{fill:none;stroke:var(--accent);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.spark-area{fill:rgba(255,122,24,.12);stroke:none}
.spark-dot{fill:var(--accent2)}
.spark-empty{color:var(--muted2);font-size:13px;padding:18px 0;text-align:center}

.metric-big{font-size:34px;font-weight:800;letter-spacing:-1px;margin-top:6px}
.metric-big span{font-size:15px;color:var(--muted);font-weight:600;margin-left:4px}
.delta{font-size:12.5px;font-weight:700;padding:3px 9px;border-radius:20px}
.delta.up{background:rgba(37,194,110,.14);color:var(--ok)}
.delta.down{background:rgba(255,176,32,.14);color:var(--warn)}

/* ---------- Lista clientes ---------- */
.list-wrap{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
.list-head,.list-row{display:grid;grid-template-columns:2.2fr 3fr .7fr .7fr 1fr;align-items:center;gap:14px;padding:14px 22px}
.list-head{color:var(--muted);font-size:11.5px;font-weight:600;text-transform:uppercase;letter-spacing:.5px;border-bottom:1px solid var(--line)}
.list-row{border-bottom:1px solid var(--line);text-align:left;width:100%;transition:.15s}
.list-row:last-child{border-bottom:none}
.list-row:hover{background:var(--surface2)}
.lr-name{display:flex;align-items:center;gap:12px;font-weight:600;font-size:14.5px}
.tag{font-size:11px;font-weight:700;padding:4px 10px;border-radius:8px}
.tag.ok{background:rgba(37,194,110,.14);color:var(--ok)}
.tag.warn{background:rgba(255,176,32,.14);color:var(--warn)}

/* ---------- Ficha cliente ---------- */
.ctabs{display:flex;align-items:center;gap:6px;margin-bottom:22px;border-bottom:1px solid var(--line);padding-bottom:0}
.ctab{padding:10px 16px;color:var(--muted);font-weight:600;font-size:14px;border-bottom:2px solid transparent;margin-bottom:-1px;transition:.18s}
.ctab:hover{color:var(--txt)}
.ctab.on{color:var(--txt);border-color:var(--accent)}
.c-goal .big{font-size:22px;margin-top:8px}
.meta-row{display:flex;gap:20px;margin-top:14px;flex-wrap:wrap}
.meta-row span{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:13px}
.meta-row svg{width:15px;height:15px;flex-shrink:0}
.chip-accent{display:inline-block;margin-top:14px;background:rgba(255,122,24,.12);color:var(--accent);border:1px solid rgba(255,122,24,.25);font-size:12.5px;font-weight:600;padding:7px 14px;border-radius:10px}
.body{color:#cfcfd8;font-size:14px;line-height:1.6;margin-top:10px}
.big-body{font-size:15px;line-height:1.75}
.updates{list-style:none;margin-top:12px;display:flex;flex-direction:column;gap:2px}
.updates li{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid var(--line);font-size:13.5px}
.updates li:last-child{border-bottom:none}
.up-time{color:var(--muted2);font-size:12px;flex-shrink:0}
.onboard{background:radial-gradient(120% 140% at 100% 0%,rgba(255,176,32,.12),transparent 55%),var(--surface)}
.onboard b{font-size:16px}
.notes-full .body{margin-top:14px}

/* ---------- Ejercicios ---------- */
.filters{display:flex;gap:8px;margin-bottom:20px;flex-wrap:wrap}
.chip{background:var(--surface);border:1px solid var(--line);color:var(--muted);font-size:13px;font-weight:600;padding:8px 16px;border-radius:20px;transition:.18s}
.chip:hover{color:var(--txt)}
.chip.on{background:var(--grad);color:#fff;border-color:transparent}
.ex-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.ex-card{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:10px;transition:.2s;animation:rise .4s both}
.ex-card:hover{transform:translateY(-3px);border-color:#3a3a46;box-shadow:var(--sh)}
.ex-card b{font-size:14px;font-weight:600;line-height:1.35}
.ex-ic{width:40px;height:40px;border-radius:11px;display:grid;place-items:center}
.ex-ic svg{width:20px;height:20px}
.ex-ic.str{background:rgba(255,122,24,.14);color:var(--accent)}
.ex-ic.bw{background:rgba(37,194,110,.14);color:var(--ok)}
.ex-ic.tm{background:rgba(120,120,255,.16);color:#8f8fff}
.ex-ic.dis{background:rgba(255,80,120,.14);color:#ff5078}
.tag.str{background:rgba(255,122,24,.12);color:var(--accent)}
.tag.bw{background:rgba(37,194,110,.12);color:var(--ok)}
.tag.tm{background:rgba(120,120,255,.14);color:#8f8fff}
.tag.dis{background:rgba(255,80,120,.12);color:#ff5078}
.ex-card .tag{align-self:flex-start}

/* ---------- Workouts ---------- */
.wk-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:14px}
.wk-grid.full{grid-template-columns:repeat(3,1fr);margin-top:0}
.wk-card{background:var(--surface2);border:1px solid var(--line);border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:8px}
.wk-card.big{background:var(--surface);animation:rise .4s both}
.wk-card.big:hover{border-color:#3a3a46}
.wk-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.wk-card b{font-size:14.5px;font-weight:700;line-height:1.3}
.wk-card small{color:var(--muted);font-size:12px}
.wk-ex{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.wk-ex span{background:var(--bg);border:1px solid var(--line);color:var(--muted);font-size:11.5px;padding:4px 9px;border-radius:8px}
.wk-ex .more{color:var(--accent);border-color:rgba(255,122,24,.3)}

/* ---------- Chat ---------- */
.chat-view{display:grid;grid-template-columns:300px 1fr;gap:16px;height:calc(100vh - 160px)}
.chat-view.single{grid-template-columns:1fr;max-width:760px}
.chat-list{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:10px;overflow-y:auto}
.chat-item{display:flex;align-items:center;gap:11px;padding:11px;border-radius:14px;width:100%;text-align:left;transition:.15s}
.chat-item:hover{background:var(--surface2)}
.chat-item.on{background:var(--surface2)}
.ci-txt b{font-size:14px;font-weight:600}
.ci-txt small{display:block;color:var(--muted);font-size:12px;margin-top:1px}
.chat-panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);display:flex;flex-direction:column;overflow:hidden}
.chat-top{display:flex;align-items:center;gap:12px;padding:16px 20px;border-bottom:1px solid var(--line)}
.chat-top b{font-size:15px}
.chat-body{flex:1;overflow-y:auto;padding:22px;display:flex;flex-direction:column;gap:12px;background:radial-gradient(100% 60% at 50% 0%,rgba(255,122,24,.04),transparent)}
.bubble{max-width:70%;padding:11px 15px;border-radius:16px;font-size:14px;line-height:1.5;animation:rise .3s both}
.bubble time{display:block;font-size:10.5px;margin-top:5px;opacity:.6}
.bubble.them{background:var(--surface2);border:1px solid var(--line);align-self:flex-start;border-bottom-left-radius:5px}
.bubble.me{background:var(--grad);color:#fff;align-self:flex-end;border-bottom-right-radius:5px}
.chat-input{display:flex;gap:10px;padding:14px 16px;border-top:1px solid var(--line)}
.chat-input input{flex:1;background:var(--surface2);border:1px solid var(--line);border-radius:12px;padding:12px 16px;color:var(--txt);outline:none;font-size:14px}
.chat-input input:focus{border-color:var(--accent)}
.chat-input .btn-primary{width:46px;padding:0;display:grid;place-items:center}
.chat-input .btn-primary svg{width:19px;height:19px}

/* svg gradient def helper (rings use url(#g)) */
svg .ring-fg{stroke:var(--accent)}

/* ---------- Comunidad Atlas (lock) ---------- */
.atlas-lock{position:relative;overflow:hidden;background:var(--surface);border:1px solid var(--line);border-radius:28px;padding:56px 40px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:18px}
.atlas-glow{position:absolute;top:-260px;left:50%;transform:translateX(-50%);width:560px;height:460px;background:radial-gradient(circle,rgba(224,30,43,.22),rgba(255,122,24,.12) 40%,transparent 65%);pointer-events:none}
.atlas-lock>*{position:relative;z-index:1}
.lock-badge{display:inline-flex;align-items:center;gap:8px;background:var(--surface2);border:1px solid var(--line);color:var(--accent);font-weight:600;font-size:13px;padding:8px 16px;border-radius:20px}
.lock-badge svg{width:15px;height:15px}
.atlas-title{font-size:38px;font-weight:800;line-height:1.15;letter-spacing:-1px;max-width:760px}
.atlas-title span{background:var(--grad);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.atlas-sub{color:var(--muted);max-width:560px;font-size:15px;line-height:1.6}
.count{display:flex;gap:14px;margin-top:10px}
.count-cell{background:var(--surface2);border:1px solid var(--line);border-radius:16px;padding:16px 22px;min-width:92px}
.count-cell b{font-size:40px;font-weight:800;letter-spacing:-1px;display:block;font-variant-numeric:tabular-nums}
.count-cell small{color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:1px}
.count-live{font-size:26px;font-weight:800;color:var(--ok)}
.atlas-date{color:var(--muted);font-weight:600;font-size:14px}
.atlas-vip{margin-top:14px;background:var(--surface2);border:1px solid var(--line);border-radius:18px;padding:18px 24px}
.atlas-vip b{font-size:13px}
.vip-row{display:flex;align-items:center;gap:8px;margin-top:12px}

/* ---------- Bienestar ---------- */
.wb-head{display:flex;justify-content:space-between;align-items:center;gap:20px}
.wb-score{text-align:center;background:var(--grad);border-radius:16px;padding:14px 26px;color:#fff;flex-shrink:0}
.wb-score b{font-size:32px;font-weight:800;display:block}
.wb-score small{font-size:11.5px;opacity:.9}
.wb-ic{width:34px;height:34px;border-radius:10px;background:var(--surface2);display:grid;place-items:center;color:var(--accent)}
.wb-ic svg{width:18px;height:18px}
.wb-card .spark{margin-top:12px}
.dev-card .tag{align-self:flex-start;margin-bottom:12px;display:inline-block}
.dev-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:6px}
.dev-grid b{font-size:20px;font-weight:800;display:block}
.dev-grid small{color:var(--muted);font-size:11.5px}
.dev-run{display:flex;align-items:center;gap:10px;margin-top:16px;padding-top:14px;border-top:1px solid var(--line);color:var(--muted);font-size:13.5px}
.dev-run svg{width:18px;height:18px;color:var(--accent);flex-shrink:0}
.dev-btns{display:flex;gap:10px;margin-top:14px}
.dev-btn{flex:1;padding:11px;border-radius:12px;font-weight:600;font-size:13px;border:1px solid var(--line);background:var(--surface2);color:var(--txt);transition:.18s}
.dev-btn:hover{border-color:var(--accent)}
.dev-btn.garmin:hover{border-color:#00a0e0;color:#4bc4ff}
.dev-btn.whoop:hover{border-color:#25C26E;color:#25C26E}

/* ---------- Botón Loom + modal ---------- */
.btn-loom{display:inline-flex;align-items:center;gap:8px;background:var(--surface2);border:1px solid var(--line);color:var(--txt);font-weight:600;font-size:14px;padding:9px 16px;border-radius:12px;margin-left:auto;transition:.18s}
.btn-loom svg{width:17px;height:17px;color:var(--accent)}
.btn-loom:hover{border-color:var(--accent)}
.ctabs .btn-primary{padding:9px 16px}
.modal-bg{position:fixed;inset:0;background:rgba(0,0,0,.6);backdrop-filter:blur(6px);display:grid;place-items:center;z-index:50;animation:rise .25s both;padding:20px}
.loom{background:var(--surface);border:1px solid var(--line);border-radius:24px;width:min(760px,100%);max-height:90vh;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 30px 80px -20px #000}
.loom-head{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid var(--line)}
.loom-head b{font-size:17px}
.loom-body{padding:24px;overflow-y:auto;position:relative}
.rep-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.rep-card{background:var(--surface2);border:1px solid var(--line);border-radius:16px;padding:16px}
.rep-card .metric-big{font-size:26px;margin-top:8px}
.rep-notes{margin-top:18px;background:var(--surface2);border:1px solid var(--line);border-radius:16px;padding:18px}
.rep-notes b{font-size:14px}
.rep-notes p{color:#cfcfd8;font-size:14px;line-height:1.65;margin-top:8px}
.loom-cam-wrap{position:absolute;top:16px;right:16px;width:150px;height:150px;border-radius:50%;overflow:hidden;border:3px solid var(--accent);box-shadow:0 10px 30px -8px #000;z-index:2}
.loom-cam-wrap video{width:100%;height:100%;object-fit:cover;transform:scaleX(-1)}
.loom-foot{display:flex;justify-content:space-between;align-items:center;padding:16px 24px;border-top:1px solid var(--line);gap:14px;flex-wrap:wrap}
.loom-status{color:var(--muted);font-size:13px;display:flex;align-items:center;gap:8px}
.loom-actions{display:flex;gap:10px;align-items:center}
.loom-actions .btn-ghost{width:auto;height:auto;padding:10px 16px;display:inline-flex;align-items:center;gap:8px;font-weight:600;font-size:14px;color:var(--txt)}
.loom-actions .btn-ghost svg{width:17px;height:17px;color:var(--accent)}
.loom-actions .btn-primary:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}
.rec-dot{width:11px;height:11px;border-radius:50%;background:#ff3b3b;display:inline-block;animation:pulse 1s infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.3}}

/* ---------- Chat media + reporte ---------- */
.chat-media{display:flex;gap:4px;margin-right:4px}
.media-btn{width:40px;height:40px;border-radius:11px;background:var(--surface2);border:1px solid var(--line);display:grid;place-items:center;color:var(--muted);transition:.18s}
.media-btn svg{width:18px;height:18px}
.media-btn:hover{color:var(--accent);border-color:var(--accent)}
.bubble.media-msg .mm{display:flex;align-items:center;gap:8px;font-size:13.5px}
.bubble.media-msg svg{width:16px;height:16px}
.bubble.report{max-width:78%;background:var(--surface2);border:1px solid var(--line)}
.rep-bubble{display:flex;flex-direction:column;gap:10px}
.rep-tag{display:inline-flex;align-items:center;gap:7px;font-weight:700;color:var(--accent);font-size:13px}
.rep-tag svg{width:15px;height:15px}
.rep-video{width:300px;max-width:100%;border-radius:12px;background:#000;aspect-ratio:16/9}
.rep-video.placeholder{display:grid;place-items:center;color:var(--muted);gap:6px}
.rep-video.placeholder svg{width:34px;height:34px}
.bubble.report time{opacity:.6}

/* responsive */
@media(max-width:1080px){
  #app{grid-template-columns:1fr}
  .side{position:fixed;left:0;bottom:0;top:auto;flex-direction:row;height:auto;width:100%;z-index:20;padding:8px;justify-content:space-around;border-right:none;border-top:1px solid var(--line)}
  .brand,.side-foot{display:none}
  nav{flex-direction:row;gap:2px}
  .nav-item span:last-child{display:none}
  .main{padding:20px 16px 90px}
  .bento,.client-grid,.ex-grid{grid-template-columns:repeat(2,1fr)}
  .span2,.span4{grid-column:span 2}
  .wk-grid.full{grid-template-columns:1fr}
  .chat-view{grid-template-columns:1fr}
}
@media(max-width:640px){
  .main{padding:16px 12px 92px}
  .top h1{font-size:24px}
  .search{display:none}
  .bento,.client-grid,.ex-grid,.dev-grid,.rep-grid{grid-template-columns:1fr}
  .span2,.span4{grid-column:span 1}
  .hero-stats{gap:20px;flex-wrap:wrap}
  .hero-stats b{font-size:30px}
  .count{flex-wrap:wrap;justify-content:center}
  .count-cell{min-width:70px;padding:12px 16px}
  .count-cell b{font-size:30px}
  .atlas-title{font-size:26px}
  .ctabs{overflow-x:auto;white-space:nowrap}
  .btn-loom,.ctabs .btn-primary{margin-left:8px}
  .list-head{display:none}
  .list-row{grid-template-columns:1fr auto;gap:6px 12px}
  .list-row .muted,.list-row span:nth-child(3),.list-row span:nth-child(4){display:none}
  .bubble,.bubble.report{max-width:88%}
  .loom-cam-wrap{width:110px;height:110px}
  .nav-item{padding:9px}
}
