:root{
  --bg:#fff7fa; --surface:#ffffff; --surface-2:#fff0f5; --surface-3:#ffe4ee;
  --border:#f6d6e3; --border-strong:#ecb5cb;
  --text:#2b1621; --muted:#7a5767; --faint:#a88596;
  --pink:#d6336c; --pink-hover:#c02a5f; --pink-ink:#b0245a; --pink-soft:#ffe1ec; --pink-line:#e0457f;
  --good:#1f7a4d; --good-soft:#e3f5ea; --warn:#9a5b00; --warn-soft:#fff1d6; --bad:#b42318; --bad-soft:#fde4e1;
  --radius:14px; --radius-sm:10px;
  --shadow:0 1px 2px rgba(120,30,70,.05), 0 8px 24px -12px rgba(160,40,90,.18);
  --font:'Plus Jakarta Sans',system-ui,-apple-system,Segoe UI,sans-serif;
  --cursor:url('/assets/cursor.cur'), auto;
  --cursor-pointer:url('/assets/cursor.cur'), pointer;
  --grid:#f3e1e9; --badge-bg:rgba(255,255,255,.92);
  color-scheme:light;
}
/* Dark theme: follows the system unless the user picked one (data-theme on <html>). */
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
  --bg:#140b10; --surface:#1d1218; --surface-2:#26171f; --surface-3:#321e29;
  --border:#3a2430; --border-strong:#5a3446;
  --text:#f6e9ef; --muted:#c6a7b5; --faint:#93737f;
  --pink:#d6336c; --pink-hover:#e0457f; --pink-ink:#ff8fb8; --pink-soft:#3d1a2a; --pink-line:#ff6fa3;
  --good:#5fd39a; --good-soft:#12301f; --warn:#f0b75a; --warn-soft:#33260e; --bad:#ff7b72; --bad-soft:#3a1517;
  --shadow:0 1px 2px rgba(0,0,0,.3), 0 10px 30px -12px rgba(0,0,0,.6);
  --grid:#2c1b24; --badge-bg:rgba(29,18,24,.88);
  color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --bg:#140b10; --surface:#1d1218; --surface-2:#26171f; --surface-3:#321e29;
  --border:#3a2430; --border-strong:#5a3446;
  --text:#f6e9ef; --muted:#c6a7b5; --faint:#93737f;
  --pink:#d6336c; --pink-hover:#e0457f; --pink-ink:#ff8fb8; --pink-soft:#3d1a2a; --pink-line:#ff6fa3;
  --good:#5fd39a; --good-soft:#12301f; --warn:#f0b75a; --warn-soft:#33260e; --bad:#ff7b72; --bad-soft:#3a1517;
  --shadow:0 1px 2px rgba(0,0,0,.3), 0 10px 30px -12px rgba(0,0,0,.6);
  --grid:#2c1b24; --badge-bg:rgba(29,18,24,.88);
  color-scheme:dark;
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
html,body,*{cursor:var(--cursor)}
a,button,select,summary,label[for],[role="button"],.clickable,input[type="checkbox"]{cursor:var(--cursor-pointer)}
input,textarea,select{cursor:var(--cursor)}
body{font-family:var(--font);font-size:15px;line-height:1.5;color:var(--text);background:var(--bg);-webkit-font-smoothing:antialiased}
img{display:block;max-width:100%}
svg[aria-hidden="true"]{width:1em;height:1em;flex:none} /* fallback: icons never blow up */
a{color:var(--pink-ink);text-decoration:none}
a:hover{text-decoration:underline}
:focus-visible{outline:2px solid var(--pink);outline-offset:2px;border-radius:6px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- buttons & inputs ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:0 16px;border-radius:999px;
  border:1px solid transparent;font:600 14px var(--font);transition:background .15s,border-color .15s,color .15s,transform .1s;white-space:nowrap}
.btn:active{transform:scale(.98)}
.btn svg{width:16px;height:16px}
.btn-primary{background:var(--pink);color:#fff}
.btn-primary:hover{background:var(--pink-hover)}
.btn-ghost{background:var(--surface);color:var(--text);border-color:var(--border)}
.btn-ghost:hover{border-color:var(--border-strong);background:var(--surface-2)}
.btn-danger{background:var(--surface);color:var(--bad);border-color:#f3c7c2}
.btn-danger:hover{background:var(--bad-soft)}
.btn[disabled]{opacity:.55;pointer-events:none}
.icon-btn{width:36px;height:36px;display:inline-grid;place-items:center;border-radius:999px;border:1px solid transparent;background:none;color:var(--muted);transition:background .15s,color .15s}
.icon-btn:hover{background:var(--surface-3);color:var(--pink-ink)}
.icon-btn svg{width:18px;height:18px}

.input,select.input{width:100%;min-height:42px;padding:0 14px;border:1px solid var(--border);border-radius:var(--radius-sm);
  background:var(--surface);font:500 15px var(--font);color:var(--text);transition:border-color .15s,box-shadow .15s}
.input::placeholder{color:var(--faint)}
.input:hover{border-color:var(--border-strong)}
.input:focus{outline:none;border-color:var(--pink);box-shadow:0 0 0 3px rgba(214,51,108,.15)}
select.input{appearance:none;padding-right:36px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237a5767' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}
.field{display:flex;flex-direction:column;gap:6px}
.field label{font-size:13px;font-weight:600;color:var(--text)}
.field .hint{font-size:12.5px;color:var(--muted)}

/* ---------- login ---------- */
.login-wrap{min-height:100%;display:grid;place-items:center;padding:24px 16px;
  background:radial-gradient(ellipse at 20% 0%,var(--pink-soft) 0%,transparent 50%),radial-gradient(ellipse at 100% 100%,var(--surface-2) 0%,transparent 55%),var(--bg)}
.login-card{width:100%;max-width:380px;background:var(--surface);border:1px solid var(--border);border-radius:22px;padding:36px 28px 28px;box-shadow:var(--shadow)}
.login-card .brand{justify-content:center;margin-bottom:6px}
.login-card .brand .name{font-size:24px}
.login-card .sub{text-align:center;color:var(--muted);margin-bottom:26px;font-size:14px}
.login-card form{display:flex;flex-direction:column;gap:16px}
.login-card .btn{min-height:46px;margin-top:4px}
.form-error{min-height:20px;font-size:13.5px;color:var(--bad);text-align:center}

/* ---------- shell ---------- */
.brand{display:flex;align-items:center;gap:10px}
.brand img{width:32px;height:32px}
.brand .name{font-weight:800;font-size:18px;letter-spacing:-.02em}
.brand .name span{color:var(--pink)}
.shell{display:grid;grid-template-columns:248px 1fr;min-height:100%}
.shell>div{min-width:0}
.sidebar{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;gap:20px;padding:20px 14px;background:var(--surface);border-right:1px solid var(--border)}
.sidebar .brand{padding:4px 8px}
.nav{display:flex;flex-direction:column;gap:2px;flex:1;overflow-y:auto}
.nav-item,.nav-group>button{display:flex;align-items:center;gap:10px;width:100%;min-height:40px;padding:0 12px;border-radius:10px;border:0;background:none;
  font:600 14.5px var(--font);color:var(--muted);text-align:left;transition:background .15s,color .15s;text-decoration:none!important}
.nav-item svg,.nav-group>button svg{width:18px;height:18px;flex:none}
.nav-item:hover,.nav-group>button:hover{background:var(--surface-2);color:var(--text)}
.nav-item.active{background:var(--pink-soft);color:var(--pink-ink)}
.nav-group>button .chev{margin-left:auto;transition:rotate .2s}
.nav-group.open>button .chev{rotate:90deg}
.nav-group.has-active>button{color:var(--text)}
.nav-sub{display:none;flex-direction:column;gap:2px;margin:2px 0 6px 21px;padding-left:10px;border-left:1.5px solid var(--border)}
.nav-group.open .nav-sub{display:flex}
.nav-sub .nav-item{min-height:36px;font-size:14px}
.sidebar-foot{display:flex;flex-direction:column;gap:10px;border-top:1px solid var(--border);padding-top:14px}
.job{font-size:12.5px;color:var(--muted);padding:0 8px;display:flex;flex-direction:column;gap:6px}
.job .row{display:flex;align-items:center;gap:6px}
.dot{width:8px;height:8px;border-radius:50%;background:var(--good);flex:none}
.dot.warn{background:#e0a100}.dot.bad{background:var(--bad)}.dot.busy{background:var(--pink);animation:pulse 1.2s ease-in-out infinite}
@keyframes pulse{50%{opacity:.35}}
.progress{height:4px;border-radius:4px;background:var(--surface-3);overflow:hidden}
.progress i{display:block;height:100%;background:var(--pink);border-radius:4px;transition:width .4s}
.user-row{display:flex;align-items:center;gap:10px;padding:0 4px 0 8px;font-size:14px;font-weight:600}
.user-row .avatar-sm{width:30px;height:30px;border-radius:50%;background:var(--pink-soft);color:var(--pink-ink);display:grid;place-items:center;font-size:13px;font-weight:800}
.user-row .icon-btn{margin-left:auto}
.user-row .icon-btn+.icon-btn{margin-left:0}
.theme-fab{position:fixed;top:16px;right:16px}

.topbar{display:none}
main{min-width:0;padding:32px 36px 60px;max-width:1360px}
.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:22px}
.page-head h1{font-size:26px;font-weight:800;letter-spacing:-.025em}
.page-head p{color:var(--muted);margin-top:2px;max-width:640px}
.crumb{font-size:13px;font-weight:600;color:var(--pink-ink);margin-bottom:4px}

/* ---------- cards / panels ---------- */
.panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:22px;box-shadow:0 1px 2px rgba(120,30,70,.04)}
.panel+.panel{margin-top:18px}
.panel h2{font-size:16px;font-weight:700;margin-bottom:4px;display:flex;align-items:center;gap:8px}
.panel h2 svg{width:18px;height:18px;color:var(--pink-ink)}
.panel .desc{color:var(--muted);font-size:14px;margin-bottom:18px;max-width:720px}
.grid-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px;align-items:end}
.actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:18px}

.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin-bottom:22px}
.tile{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:18px}
.tile .label{font-size:13px;color:var(--muted);font-weight:600}
.tile .value{font-size:28px;font-weight:800;letter-spacing:-.02em;margin-top:4px;font-variant-numeric:tabular-nums}

/* ---------- toolbar ---------- */
.toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:20px}
.seg{display:inline-flex;background:var(--surface);border:1px solid var(--border);border-radius:999px;padding:3px}
.seg button{min-height:34px;padding:0 16px;border:0;border-radius:999px;background:none;font:600 14px var(--font);color:var(--muted);transition:background .15s,color .15s}
.seg button:hover{color:var(--text)}
.seg button[aria-pressed="true"]{background:var(--pink);color:#fff}
.toolbar select.input{width:auto;min-height:40px;border-radius:999px;font-size:14px}
.toggle{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:var(--muted);padding:0 6px;min-height:40px}
.toggle input{accent-color:var(--pink);width:16px;height:16px}
.toolbar .spacer{flex:1}
.count{font-size:13.5px;color:var(--muted)}

/* ---------- video grid ---------- */
.vgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:18px}
.vcard{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;transition:box-shadow .18s,border-color .18s}
.vcard:hover{box-shadow:var(--shadow);border-color:var(--border-strong)}
.vthumb{position:relative;aspect-ratio:9/16;background:var(--surface-3);overflow:hidden}
.vthumb img{width:100%;height:100%;object-fit:cover}
.vthumb video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#000;z-index:3}
.vthumb .noimg{position:absolute;inset:0;display:grid;place-items:center;color:var(--faint)}
.vthumb .noimg svg{width:32px;height:32px}
.playbtn{position:absolute;inset:0;margin:auto;width:58px;height:58px;border-radius:50%;border:0;display:grid;place-items:center;z-index:2;
  background:rgba(255,255,255,.88);color:var(--pink);box-shadow:0 6px 24px rgba(60,10,30,.25);transition:transform .15s,background .15s}
.playbtn svg{width:24px;height:24px;margin-left:3px}
.vthumb:hover .playbtn{transform:scale(1.08);background:#fff}
.vthumb.playing .playbtn,.vthumb.playing .badge,.vthumb.playing .dur{display:none}
.dur{position:absolute;right:10px;bottom:10px;z-index:1;padding:2px 8px;border-radius:999px;background:rgba(30,5,15,.55);color:#fff;font-size:12px;font-weight:600}
.badge{position:absolute;top:10px;left:10px;z-index:1;display:inline-flex;align-items:center;gap:4px;padding:4px 10px;border-radius:999px;font-size:12.5px;font-weight:700;background:var(--badge-bg);color:var(--text)}
.badge svg{width:13px;height:13px}
.badge.viral{background:var(--pink);color:#fff}
.vbody{padding:12px 14px 14px;display:flex;flex-direction:column;gap:10px}
.vacc{display:flex;align-items:center;gap:10px;min-width:0}
.vacc img,.vacc .ph{width:34px;height:34px;border-radius:50%;flex:none;object-fit:cover;background:var(--surface-3)}
.vacc .who{display:flex;flex-direction:column;min-width:0;line-height:1.3}
.vacc .u{font-size:14px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vacc .t{color:var(--muted);font-size:12.5px;white-space:nowrap}
.vacc .ig{margin-left:auto;width:32px;height:32px}
.vacc .ig svg{width:16px;height:16px}
.vstats{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:13px;color:var(--muted)}
.vstats div{display:flex;align-items:center;gap:5px;font-variant-numeric:tabular-nums}
.vstats svg{width:15px;height:15px;flex:none}
.vstats b{color:var(--text);font-weight:700}

/* ---------- accounts table ---------- */
.addbar{display:flex;gap:10px;flex-wrap:wrap}
.addbar .input{flex:1;min-width:240px}
.addmsg{font-size:13.5px;color:var(--muted);margin-top:10px;min-height:20px}
.table-wrap{overflow-x:auto;margin-top:18px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}
table{width:100%;border-collapse:collapse;font-size:14px}
th{text-align:left;font-size:12.5px;font-weight:700;color:var(--muted);padding:12px 14px;border-bottom:1px solid var(--border);white-space:nowrap;background:var(--surface-2)}
td{padding:12px 14px;border-bottom:1px solid var(--border);vertical-align:middle;white-space:nowrap}
tr:last-child td{border-bottom:0}
tbody tr.clickable:hover{background:var(--surface-2)}
td.num,th.num{text-align:right;font-variant-numeric:tabular-nums}
.acc{display:flex;align-items:center;gap:12px;min-width:0}
.acc img,.acc .ph{width:40px;height:40px;border-radius:50%;object-fit:cover;background:var(--surface-3);flex:none}
.acc .n{font-weight:700;display:flex;align-items:center;gap:4px}
.acc .f{font-size:13px;color:var(--muted);max-width:220px;overflow:hidden;text-overflow:ellipsis}
.verified{width:15px;height:15px;color:#3b82f6}
.delta{font-size:13px;font-weight:600}
.delta.up{color:var(--good)}.delta.down{color:var(--bad)}.delta.flat{color:var(--faint)}
.pill{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:999px;font-size:12.5px;font-weight:600;background:var(--surface-2);color:var(--muted)}
.pill.ok{background:var(--good-soft);color:var(--good)}
.pill.warn{background:var(--warn-soft);color:var(--warn)}
.pill.bad{background:var(--bad-soft);color:var(--bad)}
.pill.busy{background:var(--pink-soft);color:var(--pink-ink)}
.pill svg{width:12px;height:12px}
.row-actions{display:flex;gap:2px;justify-content:flex-end}
.err-text{font-size:12.5px;color:var(--bad);max-width:280px;white-space:normal}

/* ---------- drawer ---------- */
.scrim{position:fixed;inset:0;background:rgba(43,22,33,.28);opacity:0;pointer-events:none;transition:opacity .2s;z-index:40}
.scrim.open{opacity:1;pointer-events:auto}
.drawer{position:fixed;top:0;right:0;height:100%;width:min(560px,100%);background:var(--surface);z-index:41;box-shadow:-20px 0 60px -20px rgba(120,30,70,.3);
  translate:100% 0;transition:translate .25s cubic-bezier(.2,.8,.2,1);overflow-y:auto;display:flex;flex-direction:column}
.drawer.open{translate:0 0}
.drawer[hidden]{display:none}
.drawer-head{display:flex;justify-content:flex-end;padding:12px 12px 0;position:sticky;top:0;background:var(--surface);z-index:2}
.drawer-body{padding:0 28px 32px;display:flex;flex-direction:column;gap:22px}
.profile{display:flex;gap:18px;align-items:center}
.profile img,.profile .ph{width:84px;height:84px;border-radius:50%;object-fit:cover;background:var(--surface-3);border:3px solid var(--pink-soft);flex:none}
.profile h2{font-size:21px;font-weight:800;letter-spacing:-.02em;display:flex;align-items:center;gap:6px}
.profile .handle{color:var(--muted);font-weight:600;display:inline-flex;align-items:center;gap:5px}
.profile .handle svg{width:14px;height:14px}
.profile .cat{font-size:13px;color:var(--faint);margin-top:2px}
.bio{white-space:pre-wrap;font-size:14.5px;line-height:1.6;background:var(--surface-2);border-radius:var(--radius-sm);padding:14px 16px}
.links{display:flex;flex-direction:column;gap:6px;font-size:14px}
.links a{display:inline-flex;align-items:center;gap:6px;word-break:break-all}
.links svg{width:14px;height:14px;flex:none}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.stat{border:1px solid var(--border);border-radius:var(--radius-sm);padding:12px 14px}
.stat .label{font-size:12.5px;color:var(--muted);font-weight:600}
.stat .value{font-size:20px;font-weight:800;font-variant-numeric:tabular-nums;margin-top:2px}
.stat .sub{font-size:12.5px;margin-top:2px}
.section-title{font-size:14px;font-weight:700;margin-bottom:10px;display:flex;justify-content:space-between;align-items:baseline}
.section-title span{font-size:12.5px;color:var(--muted);font-weight:500}
.vgrid.mini{grid-template-columns:repeat(3,1fr);gap:10px}
.vgrid.mini .vbody{padding:8px 10px 10px}
.drawer-actions{display:flex;gap:10px;flex-wrap:wrap}

/* ---------- chart ---------- */
.chart{position:relative;border:1px solid var(--border);border-radius:var(--radius-sm);padding:12px 12px 4px}
.chart svg{display:block;width:100%;height:auto;overflow:visible}
.chart .grid line{stroke:var(--grid);stroke-width:1}
.chart .axis text{fill:var(--faint);font:500 11px var(--font)}
.chart .line{fill:none;stroke:var(--pink-line);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.chart .area{fill:url(#chartFill)}
.chart .cross{stroke:var(--border-strong);stroke-width:1;stroke-dasharray:3 3}
.chart .marker{fill:var(--pink-line);stroke:#fff;stroke-width:2}
.tooltip{position:absolute;pointer-events:none;background:var(--text);color:var(--bg);font-size:12.5px;padding:6px 10px;border-radius:8px;white-space:nowrap;translate:-50% -115%;opacity:0;transition:opacity .1s}
.tooltip b{font-weight:700}
.chart-empty{font-size:13.5px;color:var(--muted);background:var(--surface-2);border-radius:var(--radius-sm);padding:16px}

/* ---------- models ---------- */
.mgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:18px}
.mcard{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;color:inherit;text-decoration:none!important;transition:box-shadow .18s,border-color .18s,transform .18s}
.mcard:hover{box-shadow:var(--shadow);border-color:var(--border-strong);transform:translateY(-2px)}
.mcover{aspect-ratio:9/14;background:var(--surface-3);position:relative}
.mcover img{width:100%;height:100%;object-fit:cover;object-position:center top}
#mform{margin-bottom:22px}
.mcover .noimg,.ocard .noimg{position:absolute;inset:0;display:grid;place-items:center;color:var(--faint)}
.mcover .noimg svg{width:40px;height:40px}
.mmeta{padding:12px 14px;display:flex;flex-direction:column;line-height:1.35}
.mmeta b{font-size:15px}.mmeta span{font-size:13px;color:var(--muted)}
.newmodel{display:flex;gap:20px;flex-wrap:wrap;align-items:flex-start}
.newmodel-fields{flex:1;min-width:240px;display:flex;flex-direction:column;gap:12px}
.drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;padding:28px 16px;border:1.5px dashed var(--border-strong);
  border-radius:var(--radius);background:var(--surface-2);color:var(--muted);transition:background .15s,border-color .15s}
.drop svg{width:26px;height:26px;color:var(--pink-ink)}
.drop b{color:var(--text);font-size:14.5px}.drop small{font-size:12.5px}
.drop:hover,.drop.over{border-color:var(--pink);background:var(--pink-soft)}
.drop.small{width:170px;aspect-ratio:3/4;padding:12px;position:relative;overflow:hidden}
.drop.small span{display:flex;flex-direction:column;align-items:center;gap:6px}
.drop.small img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.backlink{display:inline-flex;align-items:center;gap:4px;font-size:13.5px;font-weight:600;margin-bottom:10px}
.backlink svg{width:16px;height:16px}
.mtitle{display:inline-flex;align-items:center;gap:12px}
.mtitle img{width:44px;height:44px;border-radius:50%;object-fit:cover;border:2px solid var(--pink-soft)}
.ogrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:16px}
.ocard{position:relative;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;margin:0}
.othumb{display:block;width:100%;aspect-ratio:9/16;border:0;padding:0;background:var(--surface-3)}
.othumb img{width:100%;height:100%;object-fit:cover;object-position:center top}
.ocard figcaption{display:flex;align-items:center;gap:4px;padding:6px 6px 6px 12px}
.olabel{flex:1;font-size:13.5px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ocard .row-actions .icon-btn{width:30px;height:30px}
.ocard .row-actions svg{width:15px;height:15px}
.tips{margin-top:10px;font-size:13.5px;color:var(--muted)}
.tips summary{font-weight:600;color:var(--pink-ink)}
.tips ul{margin:8px 0 0 18px;display:flex;flex-direction:column;gap:4px}
.tips b{color:var(--text)}
.lightbox{position:fixed;inset:0;z-index:70;background:rgba(15,5,10,.85);display:grid;place-items:center;padding:24px}
.lightbox[hidden]{display:none}
.lightbox img{max-width:calc(100vw - 48px);max-height:calc(100vh - 48px);object-fit:contain;border-radius:12px;box-shadow:0 20px 60px rgba(0,0,0,.5)}
.lightbox .icon-btn{position:absolute;top:16px;right:16px;color:#fff;background:rgba(255,255,255,.12)}

/* ---------- CloneAI ---------- */
.clonebtn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;border-radius:999px;border:1px solid var(--border-strong);
  background:var(--surface);color:var(--pink-ink);font:700 13px var(--font);text-decoration:none!important;transition:background .15s,border-color .15s}
.clonebtn:hover{background:var(--pink-soft);border-color:var(--pink)}
.clonebtn svg{width:15px;height:15px}
.clonebtn.done{color:var(--good);border-color:transparent;background:var(--good-soft)}
.chip{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border-radius:999px;background:var(--surface);border:1px solid var(--border);font-weight:700;font-size:14px;color:var(--text);text-decoration:none!important;white-space:nowrap}
.chip small{font-weight:500;color:var(--muted);font-size:12px}
.chip svg{width:16px;height:16px;color:var(--pink-ink)}
.chip.warn{color:var(--warn);background:var(--warn-soft);border-color:transparent}.chip.warn svg{color:var(--warn)}
.modal-wrap{position:fixed;inset:0;z-index:80;background:rgba(20,6,13,.45);display:grid;place-items:center;padding:16px;animation:tin .15s ease-out}
.modal{width:min(440px,100%);max-height:calc(100vh - 32px);overflow:auto;background:var(--surface);border:1px solid var(--border);border-radius:18px;padding:22px;box-shadow:0 30px 80px -20px rgba(60,10,30,.45)}
.modal.wide{width:min(720px,100%)}
.modal h2{font-size:18px;font-weight:800;display:flex;align-items:center;gap:8px}
.modal h2 svg{width:20px;height:20px;color:var(--pink-ink)}
.modal .desc{color:var(--muted);margin:8px 0 0}
.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}
.modal-actions{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin-top:20px;flex-wrap:wrap}
.modal-actions .count{margin-right:auto}
.confirm-text{margin-top:10px;font-size:15.5px;line-height:1.55}
.clone-src{display:flex;gap:12px;align-items:center;padding:10px;border-radius:var(--radius-sm);background:var(--surface-2);margin-bottom:6px}
.clone-src img{width:44px;height:78px;object-fit:cover;border-radius:8px}
.clone-src div{display:flex;flex-direction:column;font-size:13.5px}.clone-src span{color:var(--muted)}
.step{margin-top:16px}.step-t{font-size:13px;font-weight:700;color:var(--muted);margin-bottom:8px;text-transform:uppercase;letter-spacing:.04em}
.pick-row{display:flex;gap:8px;flex-wrap:wrap}
.pick-model{display:inline-flex;align-items:center;gap:8px;padding:5px 14px 5px 5px;border-radius:999px;border:1.5px solid var(--border);background:var(--surface);font:600 14px var(--font);color:var(--text)}
.pick-model img,.pick-model .ph{width:30px;height:30px;border-radius:50%;object-fit:cover;object-position:top;background:var(--surface-3)}
.pick-model svg{width:18px;height:18px;margin-left:6px;color:var(--muted)}
.pick-model.on{border-color:var(--pink);background:var(--pink-soft)}
.pick-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:10px}
.pick-outfit{display:flex;flex-direction:column;gap:4px;padding:0;border:2px solid transparent;border-radius:12px;background:none;overflow:hidden;font:600 12px var(--font);color:var(--text)}
.pick-outfit img{width:100%;aspect-ratio:9/16;object-fit:cover;object-position:top;border-radius:10px;background:var(--surface-3)}
.pick-outfit span{padding:0 4px 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pick-outfit.on{border-color:var(--pink);background:var(--pink-soft)}
.lib-models{margin-bottom:18px}
.vthumb.busy img{filter:blur(6px) brightness(.7);transform:scale(1.08)}
.busy-over{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#fff;text-align:center;padding:16px;z-index:2}
.busy-over b{font-size:15px}.busy-over small{font-size:12px;opacity:.85}
.busy-over svg{width:28px;height:28px}
.vthumb.failed .busy-over{background:rgba(120,10,20,.35)}
.spinner{width:38px;height:38px;border-radius:50%;border:3.5px solid rgba(255,255,255,.35);border-top-color:#fff;animation:spin 0.9s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion: reduce){.spinner{animation:spin 2s linear infinite!important}}

.txid{font-size:12px;display:inline-block;max-width:150px;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;cursor:var(--cursor-pointer)}
.logs-table td .count{white-space:normal}
.row-failed td{color:var(--faint)}.row-failed td b{text-decoration:line-through}

.engines{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.engine{display:flex;flex-direction:column;gap:4px;text-align:left;padding:12px 14px;border-radius:12px;border:1.5px solid var(--border);background:var(--surface);font:500 13px var(--font);color:var(--muted)}
.engine b{color:var(--text);font-size:14.5px}
.engine[aria-pressed="true"]{border-color:var(--pink);background:var(--pink-soft)}
.engine[disabled]{opacity:.5}
@media (max-width:600px){.engines{grid-template-columns:1fr}}

/* fullscreen: show the whole video instead of the card's crop */
.vthumb video:fullscreen,.vthumb video:-webkit-full-screen{object-fit:contain;background:#000}
.vacc .who{flex:1;min-width:0}
.vacc .who .t,.vacc .who .u{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vacc .icon-btn,.vacc a.icon-btn{flex:none}
.prices{display:flex;gap:4px;flex-wrap:wrap}
.vfoot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:-4px}
.vfoot .row-actions .icon-btn{width:30px;height:30px}
.vfoot .count{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.vfoot .row-actions{flex:none;gap:0}
.vfoot .row-actions svg{width:16px;height:16px}
.logs-table td.num .count,.logs-table td.num{white-space:nowrap}
.prices span{display:inline-flex;align-items:baseline;gap:4px;padding:3px 8px;border-radius:999px;background:var(--surface-2);font-size:12.5px;font-weight:700;color:var(--text);white-space:nowrap}
.prices small{font-weight:600;color:var(--muted);font-size:11.5px}
.reels-toggle{align-items:flex-start;gap:10px;padding:12px 14px;border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--text)}
.reels-toggle input{margin-top:3px}
.reels-toggle small{color:var(--muted);font-weight:500}

/* ---------- clone editor ---------- */
@font-face{font-family:'PoppinsXB';src:url('/assets/fonts/Poppins-ExtraBold.ttf')}
@font-face{font-family:'PoppinsSB';src:url('/assets/fonts/Poppins-SemiBold.ttf')}
@font-face{font-family:'AntonC';src:url('/assets/fonts/Anton-Regular.ttf')}
@font-face{font-family:'PublicSansV';src:url('/assets/fonts/PublicSans-Variable.ttf');font-weight:100 900}
.modal.xwide{width:min(1060px,100%)}
.editor{display:grid;grid-template-columns:minmax(260px,380px) 1fr;gap:22px;align-items:start}
.ed-stage{position:relative;width:100%;max-height:72vh;margin:0 auto;background:#000;border-radius:12px;overflow:hidden;container-type:inline-size}
.ed-stage video{width:100%;height:100%;object-fit:contain;display:block}
.ed-cap,.ed-snap{position:absolute;left:0;right:0;transform:translateY(-50%);text-align:center;cursor:grab;touch-action:none;user-select:none;z-index:2}
.ed-cap{padding:0 7%;line-height:1.08}
.ed-cap span{display:inline;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.ed-snap{background:rgba(0,0,0,.506);color:#fff;font-family:Arial,'Liberation Sans',Helvetica,sans-serif;font-weight:400;padding:.0775em 4%;line-height:1.15}
.cs-classic,.cs-yellow{font-family:'PoppinsXB',sans-serif;color:#fff;-webkit-text-stroke:.09em #000;paint-order:stroke fill}
.cs-yellow{color:#FFE14D}
.cs-bold{font-family:'AntonC',sans-serif;color:#fff;-webkit-text-stroke:.11em #000;paint-order:stroke fill;text-shadow:.05em .07em 0 rgba(0,0,0,.6)}
.ed-cap.cs-boxed span,.ed-cap.cs-pink span{padding:.08em .38em;border-radius:.28em}
.cs-boxed{font-family:'PoppinsSB',sans-serif;color:#111}.ed-cap.cs-boxed span{background:#fff}
.cs-pink{font-family:'PoppinsXB',sans-serif;color:#fff}.ed-cap.cs-pink span{background:#E0457F}
.ed-right{display:flex;flex-direction:column;gap:14px;min-width:0}
.ed-sec{border:1px solid var(--border);border-radius:var(--radius-sm);padding:14px;display:flex;flex-direction:column;gap:10px}
.ed-row{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13.5px;color:var(--muted);font-weight:600}
.ed-row input[type=range]{flex:1;max-width:220px;accent-color:var(--pink)}
.ed-row .seg button{min-height:30px;padding:0 12px}
.ed-styles{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}
.ed-style{min-height:44px;border-radius:10px;border:1.5px solid var(--border);background:#6b6b6b;font-size:14px;display:grid;place-items:center}
.ed-style[aria-pressed="true"]{border-color:var(--pink);box-shadow:0 0 0 2px var(--pink-soft)}
.ed-style.cs-boxed span{background:#fff;padding:1px 6px;border-radius:5px}.ed-style.cs-pink span{background:#E0457F;padding:1px 6px;border-radius:5px}
.ed-chunks{display:flex;flex-direction:column;gap:6px;max-height:260px;overflow:auto;padding-right:2px}
.ed-chunk{display:flex;gap:6px;align-items:center}
.ed-chunk .input{min-height:34px;font-size:14px}
.ed-time{flex:none;min-width:86px;min-height:34px;border-radius:8px;border:1px solid var(--border);background:var(--surface-2);font:600 12px var(--font);color:var(--muted)}
.ed-render{display:flex;align-items:center;gap:8px;font-size:13.5px;padding:6px 0;border-bottom:1px solid var(--border)}
.ed-render:last-child{border-bottom:0}.ed-render .row-actions{margin-left:auto}
.ed-render>svg{width:16px;height:16px;color:var(--good)}
.spinner.dark{width:18px;height:18px;border-width:2.5px;border-color:var(--border-strong);border-top-color:var(--pink)}
@media (max-width:820px){.editor{grid-template-columns:1fr}.ed-stage{max-width:320px}}

.ed-version{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px;flex-wrap:wrap}
.ed-version .pill svg{width:12px;height:12px}
.btn-sm{min-height:30px;padding:0 12px;font-size:13px}
.ed-render .btn-sm{margin-left:6px}

.step-t .opt{font-weight:500;text-transform:none;letter-spacing:0;color:var(--faint);margin-left:6px}
textarea.input{min-height:64px;padding:10px 14px;resize:vertical;line-height:1.45}

/* ---------- misc ---------- */
.empty{text-align:center;padding:56px 20px;border:1.5px dashed var(--border-strong);border-radius:var(--radius);background:var(--surface);color:var(--muted)}
.empty h3{color:var(--text);font-size:17px;margin-bottom:6px}
.empty .btn{margin-top:16px}
.skeleton{background:linear-gradient(90deg,var(--surface-2),var(--surface-3),var(--surface-2));background-size:200% 100%;animation:sk 1.2s infinite;border-radius:var(--radius)}
@keyframes sk{to{background-position:-200% 0}}
.toasts{position:fixed;bottom:20px;right:20px;display:flex;flex-direction:column;gap:8px;z-index:60}
.toast{background:var(--text);color:var(--bg);padding:12px 16px;border-radius:12px;font-size:14px;box-shadow:var(--shadow);max-width:360px;animation:tin .2s ease-out}
.toast.bad{background:var(--bad)}
@keyframes tin{from{opacity:0;translate:0 8px}}
.callout{font-size:13.5px;background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius-sm);padding:12px 14px;color:var(--muted);margin-bottom:16px}
.callout b{color:var(--text)}
.callout svg{width:16px;height:16px;vertical-align:-3px;color:var(--pink-ink)}
code{font-size:12.5px;background:var(--surface-3);padding:1px 6px;border-radius:5px}

/* ---------- responsive ---------- */
@media (max-width: 900px){
  .shell{grid-template-columns:1fr}
  .sidebar{position:fixed;left:0;top:0;width:272px;z-index:50;translate:-100% 0;transition:translate .22s}
  .shell.nav-open .sidebar{translate:0 0;box-shadow:20px 0 60px -20px rgba(120,30,70,.3)}
  .topbar{display:flex;align-items:center;gap:10px;padding:10px 16px;background:var(--surface);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:30}
  main{padding:22px 16px 48px}
  .page-head h1{font-size:22px}
  .vgrid{grid-template-columns:repeat(2,1fr);gap:12px}
  .mgrid,.ogrid{grid-template-columns:repeat(2,1fr);gap:12px}
  .tiles{grid-template-columns:repeat(2,1fr);gap:10px}
  .tile .value{font-size:22px}
  .stats{grid-template-columns:repeat(2,1fr)}
  .drawer-body{padding:0 18px 28px}
  .hide-sm{display:none}
  .vacc .ig{display:none}
  .ocard .row-actions .icon-btn{width:28px;height:28px}
  .ocard figcaption{padding-left:8px}
  .vacc img,.vacc .ph{width:28px;height:28px}
  .vbody{padding:10px 10px 12px}
}
@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* ---------- IG ---------- */
.faint{color:var(--faint)}
.tile .sub{font-size:12.5px;margin-top:4px;display:flex;gap:4px;flex-wrap:wrap}
.igform{display:grid;gap:14px;margin-top:4px}
.field .opt{font-weight:500;color:var(--faint);font-size:12px;margin-left:4px}
.igmore summary{font-size:13px;font-weight:600;color:var(--muted);cursor:inherit}
.igmore[open] summary{margin-bottom:8px}
.igcode{display:flex;align-items:center;gap:10px;flex-wrap:wrap;color:var(--text)}
.igcode>svg{width:18px;height:18px;color:var(--warn);flex:none}
.igcode span{flex:1;min-width:200px}
.igcode .input{width:130px;min-height:38px;letter-spacing:.2em;font-variant-numeric:tabular-nums}
.vcard .igh{width:100%;justify-content:center;margin-top:8px}
.vcard .igh svg{width:14px;height:14px}
.gain{color:var(--muted);font-weight:600}.gain.up{color:var(--good)}
.igh2{font-size:17px;font-weight:800;margin-right:auto}
.igh2 span{color:var(--muted);font-weight:600;font-size:14px;margin-left:4px}
.igcap{font-size:13.5px}

/* ---------- Phones ---------- */
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.sub-ok{font-size:12px;color:var(--good);margin-top:4px;font-weight:600}
.perr{max-width:260px}
.menu-wrap{position:relative}
.menu{position:fixed;z-index:60;min-width:190px;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:6px;box-shadow:0 18px 40px -16px rgba(60,10,30,.35)}
.menu button{display:flex;align-items:center;gap:8px;width:100%;min-height:36px;padding:0 10px;border:0;background:none;border-radius:8px;font:600 13.5px var(--font);color:var(--text);text-align:left}
.menu button:hover:not(:disabled){background:var(--surface-2)}
.menu button:disabled{opacity:.45}
.menu button svg{width:15px;height:15px;color:var(--muted)}
.menu button.danger,.menu button.danger svg{color:var(--bad)}
.row-actions .btn-sm svg{width:14px;height:14px}
.nophone{display:flex;flex-wrap:wrap;gap:10px}
.nophone .acc{border:1px solid var(--border);border-radius:12px;padding:8px 10px;gap:10px}
.callout.warnbox{color:var(--text)}
.callout .btn-sm{margin-left:6px}
.lsbody{min-height:200px}
.lsframe{width:100%;height:min(72vh,760px);border:1px solid var(--border);border-radius:12px;background:#000}
.lsshot{display:flex;flex-direction:column;align-items:center;gap:8px}
.lsshot img{max-height:68vh;max-width:100%;border-radius:14px;border:1px solid var(--border);background:var(--surface-2);min-height:300px;min-width:170px}
.lgsum{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.lgsum .chip{padding:6px 12px;font-size:13px}
.lglist{list-style:none;margin:0;padding:0;max-height:58vh;overflow:auto;border:1px solid var(--border);border-radius:12px}
.lg{display:grid;grid-template-columns:92px 18px 1fr;gap:8px;padding:9px 12px;border-bottom:1px solid var(--border);font-size:13.5px}
.lg:last-child{border-bottom:0}
.lgt{color:var(--faint);font-variant-numeric:tabular-nums}
.lgi{font-weight:800;color:var(--faint)}
.lg.ok .lgi{color:var(--good)}.lg.fail .lgi{color:var(--bad)}.lg.fail{background:var(--bad-soft)}
.linkbtn{border:0;background:none;padding:0 0 0 6px;font:600 12.5px var(--font);color:var(--pink-ink);text-decoration:underline}
.lgtask{margin-top:8px}
.lgtask pre{white-space:pre-wrap;font-size:12px;background:var(--surface-2);border-radius:8px;padding:10px;max-height:240px;overflow:auto}
.lgimgs{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.lgimgs img{height:160px;border-radius:8px;border:1px solid var(--border)}
@media (max-width:640px){.grid2{grid-template-columns:1fr}.row-actions .btn-sm{padding:0 8px}}
.igsec{margin-top:6px;padding-top:14px;border-top:1px solid var(--border);font-weight:800;font-size:14px}
.igsec span{display:block;font-weight:500;font-size:12.5px;color:var(--muted);margin-top:2px}
.pfprow{display:flex;gap:14px;align-items:flex-start}
.drop.pfpdrop{width:112px;height:112px;flex:none;border-radius:50%;overflow:hidden;padding:0}
.drop.pfpdrop img{width:100%;height:100%;object-fit:cover}
.drop.pfpdrop span{font-size:12px;text-align:center;padding:8px}
.rt b{font-size:13.5px}
.rt .f{font-size:12px;margin-top:2px}
@media (max-width:520px){.pfprow{flex-direction:column}}
.drop.pfpdrop span{display:flex;flex-direction:column;align-items:center;gap:3px}.drop.pfpdrop svg{width:20px;height:20px}.drop.pfpdrop b{font-size:12.5px}.drop.pfpdrop small{font-size:11px}

.igmkrow{display:flex;gap:18px;align-items:flex-start;flex-wrap:wrap}
.igmkpfp{width:96px;height:96px;border-radius:50%;overflow:hidden;flex:none;background:var(--surface-2);display:grid;place-items:center;border:1px solid var(--border)}
.igmkpfp img{width:100%;height:100%;object-fit:cover}
.igmkpfp span{display:flex;flex-direction:column;align-items:center;font-size:11.5px;color:var(--muted);gap:4px}
.igmkpfp svg{width:22px;height:22px}
.igmk dl{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;margin:0;flex:1;min-width:240px;font-size:14px}
.igmk dt{color:var(--muted);font-weight:600}.igmk dd{margin:0;white-space:pre-wrap}
td.perr{min-width:190px;max-width:300px}
td.pip .f{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.row-actions{flex-wrap:nowrap}

.missing{border-color:var(--bad)!important;box-shadow:0 0 0 3px var(--bad-soft)!important}

/* ---------- IG → Posting ---------- */
.navbadge{margin-left:auto;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--bad);color:#fff;font-size:11.5px;font-weight:800;display:inline-grid;place-items:center}
.weeknav{display:flex;align-items:center;gap:6px}
.weeknav #prange{font-size:13.5px;font-weight:600;margin-left:6px}
.pmiss{display:flex;flex-wrap:wrap;align-items:center;gap:8px;color:var(--text);border-color:var(--bad);background:var(--bad-soft)}
.pmiss>svg{width:18px;height:18px;color:var(--bad)}
.pok{display:flex;align-items:center;gap:8px;color:var(--good);background:var(--good-soft);border-color:transparent}
.pok svg{width:16px;height:16px}
.pchip{padding:4px 10px;font-size:12.5px;cursor:inherit}
.pboard{display:grid;grid-template-columns:232px 1fr;gap:16px;align-items:start}
.ptray{position:sticky;top:16px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:12px;max-height:calc(100vh - 32px);overflow:auto}
.ptrayhead{display:flex;justify-content:space-between;align-items:center;font-size:14px}
.ptray .hint{margin:4px 0 10px;font-size:12px}
.ptraylist,.ppick{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.ppick{grid-template-columns:repeat(auto-fill,minmax(110px,1fr));max-height:60vh;overflow:auto}
.ppick.small{grid-template-columns:repeat(auto-fill,minmax(72px,1fr));max-height:260px}
.ptile{position:relative;display:block;aspect-ratio:9/16;border-radius:10px;overflow:hidden;background:var(--surface-2);border:2px solid transparent;padding:0;cursor:grab;width:100%}
.ptile img{width:100%;height:100%;object-fit:cover;display:block;pointer-events:none}
.ptile .noimg{display:grid;place-items:center;height:100%;color:var(--muted)}
.ptile.sel{border-color:var(--pink);box-shadow:0 0 0 3px var(--pink-soft)}
.ptile:disabled{opacity:.35}
.ptile .puses{position:absolute;top:5px;left:5px;background:rgba(0,0,0,.6);color:#fff;font-size:11px;font-weight:700;padding:1px 6px;border-radius:999px}
.ptile .pt{position:absolute;left:0;right:0;bottom:0;padding:14px 6px 5px;font-size:10.5px;color:#fff;background:linear-gradient(transparent,rgba(0,0,0,.7));white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left}
.ptile .pdel{position:absolute;top:4px;right:4px;width:22px;height:22px;border-radius:50%;border:0;background:rgba(0,0,0,.6);color:#fff;display:grid;place-items:center;padding:0}
.ptile .pdel svg{width:12px;height:12px}
.pchk input{position:absolute;top:5px;right:5px;z-index:2;width:16px;height:16px;accent-color:var(--pink)}
.pchk:has(input:not(:checked)) img{opacity:.35}
.pupl{width:100%;margin-top:10px}
.pgrid{overflow-x:auto;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius)}
.ptable{border-collapse:separate;border-spacing:0;width:100%}
.ptable th,.ptable td{border-bottom:1px solid var(--border);padding:6px}
.ptable thead th{font-size:12px;color:var(--muted);text-align:center;font-weight:600;padding:10px 6px;white-space:nowrap}
.ptable thead th span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.04em}
.ptable thead th b{color:var(--text);font-size:13px}
.ptable th.ptoday,.ptable td.ptoday{background:var(--pink-soft)}
.ptable .pacc{position:sticky;left:0;z-index:2;background:var(--surface);text-align:left;min-width:170px;padding:8px 10px}
.ptable .pacc .acc img,.ptable .pacc .acc .ph{width:30px;height:30px}
.pcell{width:84px;min-width:84px;text-align:center;vertical-align:middle}
.pcell .padd{width:64px;height:96px;border:1.5px dashed var(--border-strong);border-radius:10px;background:none;color:var(--faint);display:grid;place-items:center;margin:auto;transition:border-color .15s,color .15s,background .15s}
.pcell .padd svg{width:18px;height:18px}
.pcell.empty:hover .padd,.pcell.over .padd{border-color:var(--pink);color:var(--pink-ink);background:var(--pink-soft)}
.pcell.pnext .padd{border-color:var(--bad);color:var(--bad)}
.pcell .pfill{position:relative;width:64px;height:96px;border-radius:10px;overflow:hidden;border:0;padding:0;margin:auto;display:block;background:var(--surface-2)}
.pcell .pfill img{width:100%;height:100%;object-fit:cover}
.pcell .pst{position:absolute;left:0;right:0;bottom:0;font-size:10px;font-weight:700;color:#fff;padding:12px 2px 4px;background:linear-gradient(transparent,rgba(0,0,0,.75))}
.pcell .pcap{position:absolute;top:4px;right:4px;width:18px;height:18px;border-radius:50%;background:rgba(0,0,0,.55);display:grid;place-items:center;color:#fff}
.pcell .pcap svg{width:10px;height:10px}
.pcell.st-posted .pfill{outline:2px solid var(--good)}.pcell.st-posted .pst{background:var(--good)}
.pcell.st-failed .pfill,.pcell.st-missed .pfill{outline:2px solid var(--bad)}.pcell.st-failed .pst,.pcell.st-missed .pst{background:var(--bad)}
.pcell.over .pfill{outline:2px dashed var(--pink)}
.pcell.locked .plock{font-size:11px;color:var(--faint)}
.pcell.flash{animation:pflash 1.4s}
@keyframes pflash{0%,60%{background:var(--warn-soft)}}
.pslot{display:grid;grid-template-columns:240px 1fr;gap:16px}
.pslot video{width:240px;aspect-ratio:9/16;border-radius:12px;background:#000}
.pslotside{display:flex;flex-direction:column;gap:10px}
@media (max-width:860px){.pboard{grid-template-columns:1fr}.ptray{position:static;max-height:none}.ptraylist{grid-template-columns:repeat(auto-fill,minmax(90px,1fr))}.pslot{grid-template-columns:1fr}.pslot video{width:100%;max-height:60vh}}

/* ---------- Proxies ---------- */
.pxgrid{grid-template-columns:1fr 1.6fr 1.6fr}
.pxchips{display:flex;flex-wrap:wrap;gap:6px}
.pxchip{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:0 12px;border-radius:999px;border:1px solid var(--border);background:var(--surface);font:600 13px var(--font);color:var(--text)}
.pxchip svg{width:12px;height:12px;color:var(--good)}
.pxchip small{font-weight:600;color:var(--faint);font-size:11px}
.pxchip:hover{border-color:var(--pink)}
.pxchip.on{background:var(--pink);border-color:var(--pink);color:#fff}.pxchip.on small,.pxchip.on svg{color:#fff}
@media (max-width:760px){.pxgrid{grid-template-columns:1fr}}

.inputbtn{position:relative}
.inputbtn .input{padding-right:48px}
.inputbtn .icon-btn{position:absolute;right:5px;top:50%;transform:translateY(-50%);color:var(--pink-ink)}
.inputbtn .icon-btn svg{width:18px;height:18px}
.inputbtn .icon-btn.spinning svg{animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* ---------- Home (own accounts) ---------- */
.homefilter{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.customrange{display:flex;align-items:center;gap:8px}
.customrange .input{width:auto;min-height:36px}
.htiles{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.tile .value small{font-size:16px;color:var(--faint);font-weight:700;margin-left:2px}
.htop{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:22px}
.hrank{position:relative}
.hnum{position:absolute;top:10px;left:10px;z-index:2;width:28px;height:28px;border-radius:50%;background:var(--pink);color:#fff;font-weight:800;display:grid;place-items:center;font-size:14px}
.hvid{display:flex;gap:12px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:10px;color:inherit;text-decoration:none!important;height:100%}
.hvid:hover{border-color:var(--pink)}
.hthumb{width:78px;aspect-ratio:9/16;border-radius:10px;overflow:hidden;background:var(--surface-2);flex:none}
.hthumb img{width:100%;height:100%;object-fit:cover}
.hthumb .noimg{display:grid;place-items:center;height:100%;color:var(--muted)}
.hvbody{display:flex;flex-direction:column;gap:6px;min-width:0;justify-content:center}
.hacc{display:inline-flex;align-items:center;gap:8px;min-width:0}
.hacc img,.hacc .ph{width:26px;height:26px;border-radius:50%;object-fit:cover;flex:none}
.hacc b{font-size:13.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hbig{font-size:20px;font-weight:800;letter-spacing:-.01em;font-variant-numeric:tabular-nums}
.hbig.up{color:var(--good)}
.hsmall{font-size:12.5px;color:var(--muted);display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.hsmall svg{width:13px;height:13px}
.hgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}
.hcard{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:14px;display:flex;flex-direction:column;gap:8px}
.hcard .hvid{border:0;padding:0;background:none}
.hcardt{font-size:12.5px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.hnone{font-size:13px;padding:8px 0}
@media (max-width:860px){.htop{grid-template-columns:1fr}.homefilter{align-items:flex-start}}
.customrange[hidden]{display:none}
.htop+.hgrid,.empty+.hgrid{margin-top:14px}
@media (max-width:640px){.homefilter{width:100%}.homefilter .seg{flex-wrap:wrap;border-radius:14px}.homefilter .seg button{padding:0 12px}.customrange{flex-wrap:wrap}}

/* ---------- Reactions ---------- */
.rxcat{margin-bottom:16px}
.rxhead{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.rxhead h2{font-size:17px;font-weight:800;display:flex;gap:8px;align-items:baseline}
.rxhead h2 span{font-size:13px;font-weight:600}
.rxgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px}
.rxclip{position:relative;aspect-ratio:9/16;border-radius:12px;overflow:hidden;background:var(--surface-2)}
.rxclip video{width:100%;height:100%;object-fit:cover;display:block}
.rxdur,.rxuses{position:absolute;bottom:6px;font-size:11px;font-weight:700;color:#fff;background:rgba(0,0,0,.6);padding:1px 6px;border-radius:999px}
.rxdur{left:6px}.rxuses{right:6px}
.rxclip .pdel{position:absolute;top:5px;right:5px;width:22px;height:22px;border-radius:50%;border:0;background:rgba(0,0,0,.6);color:#fff;display:grid;place-items:center;padding:0}
.rxclip .pdel svg{width:12px;height:12px}
.rxempty{font-size:13.5px;margin:0}
.rxseg{margin-top:8px;flex-wrap:wrap}
.rxtag{display:flex;align-items:center;gap:4px;color:var(--pink-ink)}
.rxtag svg{width:12px;height:12px}

/* ---------- dashboard posts modal ---------- */
.tile-btn{text-align:left;cursor:pointer;border:1px solid var(--border);font:inherit;width:100%}
.tile-btn:hover{border-color:var(--pink)}
.pmlist{display:flex;flex-direction:column;gap:10px;max-height:62vh;overflow:auto}
.pmrow{display:flex;gap:12px;align-items:center;padding:8px;border:1px solid var(--border);border-radius:12px}
.pmthumb{width:54px;aspect-ratio:9/16;border-radius:8px;overflow:hidden;background:var(--surface-2);flex:none}
.pmthumb img{width:100%;height:100%;object-fit:cover}
.pmbody{flex:1;min-width:0}
.pmacc{display:flex;align-items:center;gap:8px}
.pmacc img,.pmacc .ph{width:24px;height:24px;border-radius:50%;object-fit:cover}
.pmacc b{font-size:13.5px}
.pmcap{font-size:12.5px;color:var(--muted);margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pmstats{display:flex;gap:16px;flex:none}
.pmstats b{font-size:16px;font-variant-numeric:tabular-nums}
.pmstats span{display:block;font-size:11px;color:var(--muted)}
