:root {
  --bg: #08090d; --side: #0c0e14; --panel: #11131b; --card: #151823; --card2: #1a1e2b; --hover: #1e2230;
  --line: rgba(255,255,255,.07); --line2: rgba(255,255,255,.12);
  --text: #eef0f5; --dim: #9aa1b4; --faint: #646c81;
  --red: #ff5a52; --pink: #f0487e; --violet: #8b5cf6; --green: #34d399; --amber: #fbbf24; --blue: #60a5fa;
  --radius: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font: 14.5px/1.5 "Plus Jakarta Sans", system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
.mono { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; }
.dim { color: var(--dim); } .faint { color: var(--faint); }
.hidden { display: none !important; }
svg.i { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ------------------------------------------------ login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(600px 400px at 20% 10%, rgba(255,90,82,.13), transparent), radial-gradient(600px 400px at 85% 90%, rgba(139,92,246,.13), transparent); }
.login-card { width: 100%; max-width: 380px; padding: 36px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 30px 80px -30px rgba(0,0,0,.8); }
.login-card .brand { margin-bottom: 26px; }
.login-card h1 { font-size: 24px; letter-spacing: -.02em; margin-bottom: 4px; }
.login-card p { color: var(--dim); margin-bottom: 24px; }
.login-card .field { margin-bottom: 14px; }
.login-card .btn { width: 100%; margin-top: 8px; }
.login-err { color: var(--red); font-size: 13.5px; min-height: 20px; margin-top: 10px; }

/* ------------------------------------------------ shell */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: var(--side); border-right: 1px solid var(--line); padding: 22px 14px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; padding: 0 10px; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.brand small { font-size: 11px; font-weight: 700; color: var(--faint); letter-spacing: .08em; text-transform: uppercase; margin-left: 2px; }
.side nav { margin-top: 30px; display: flex; flex-direction: column; gap: 3px; }
.side nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; color: var(--dim); font-weight: 600; transition: background .15s, color .15s; }
.side nav a:hover { background: var(--card); color: var(--text); }
.side nav a.on { background: linear-gradient(90deg, rgba(255,90,82,.16), rgba(139,92,246,.1)); color: var(--text); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.side nav a.on svg { stroke: var(--pink); }
.side nav .count { margin-left: auto; font-size: 12px; background: var(--card2); padding: 1px 8px; border-radius: 999px; color: var(--dim); }
.side .me { margin-top: auto; display: flex; align-items: center; gap: 11px; padding: 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.side .me b { display: block; font-size: 14px; } .side .me span { font-size: 12px; color: var(--faint); text-transform: capitalize; }
.side .me button { margin-left: auto; background: none; border: 0; color: var(--faint); cursor: pointer; padding: 6px; border-radius: 8px; }
.side .me button:hover { color: var(--text); background: var(--hover); }
.main { padding: 30px 38px 60px; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.topbar h1 { font-size: 26px; letter-spacing: -.03em; font-weight: 800; }
.topbar .sub { color: var(--dim); margin-top: 2px; }
.topbar .sp { flex: 1; }
.mhead, .scrim { display: none; }
.content { min-width: 0; }

/* ------------------------------------------------ controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 11px; border: 1px solid var(--line2);
  background: var(--card); font-weight: 650; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s; }
.btn:hover { background: var(--hover); border-color: rgba(255,255,255,.18); }
.btn:active { transform: scale(.98); }
.btn.primary { border: 0; background: linear-gradient(100deg, var(--red), var(--pink) 60%, var(--violet)); color: #fff; box-shadow: 0 8px 26px -10px rgba(240,72,126,.7); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: #ff8a84; } .btn.danger:hover { background: rgba(255,90,82,.12); border-color: rgba(255,90,82,.35); }
.btn.sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 9px; }
.btn.icon { width: 36px; padding: 0; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--dim); margin-bottom: 7px; letter-spacing: .01em; }
.input, select.input, textarea.input { width: 100%; height: 44px; padding: 0 14px; border-radius: 11px; background: var(--bg); border: 1px solid var(--line2); outline: none; transition: border-color .15s, box-shadow .15s; }
textarea.input { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
.input:focus { border-color: rgba(240,72,126,.6); box-shadow: 0 0 0 4px rgba(240,72,126,.12); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stack > * + * { margin-top: 14px; }
.search { position: relative; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.search .input { padding-left: 40px; width: 280px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: var(--dim); font-weight: 600; cursor: pointer; }
.chip:hover { color: var(--text); }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.toggle input { display: none; }
.toggle i { width: 40px; height: 23px; border-radius: 999px; background: var(--card2); border: 1px solid var(--line2); position: relative; transition: background .2s; }
.toggle i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: transform .2s; }
.toggle input:checked + i { background: var(--pink); border-color: transparent; }
.toggle input:checked + i::after { transform: translateX(17px); }

/* ------------------------------------------------ cards / stats */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.card-h { display: flex; align-items: center; gap: 10px; padding: 18px 20px 0; }
.card-h h3 { font-size: 15px; font-weight: 750; letter-spacing: -.01em; }
.card-h .sp { flex: 1; }
.card-b { padding: 16px 20px 20px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { padding: 18px 20px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); position: relative; overflow: hidden; }
.stat .n { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-top: 6px; }
.stat .l { color: var(--dim); font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.stat.accent::before { content: ''; position: absolute; inset: 0; background: radial-gradient(260px 120px at 100% 0, rgba(240,72,126,.16), transparent); }
.cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; align-items: start; }
.empty { padding: 34px 20px; text-align: center; color: var(--faint); }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.dot.on { background: var(--green); box-shadow: 0 0 0 3px rgba(52,211,153,.18); }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--card2); color: var(--dim); white-space: nowrap; }
.badge.active { background: rgba(52,211,153,.12); color: var(--green); }
.badge.paused { background: rgba(251,191,36,.12); color: var(--amber); }
.badge.expired, .badge.disabled { background: rgba(255,90,82,.12); color: #ff8a84; }
.badge.live { background: rgba(96,165,250,.14); color: var(--blue); }
.badge.owner { background: rgba(139,92,246,.16); color: #b9a1fc; }

/* ------------------------------------------------ now watching */
.watch { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
.watch:first-child { border-top: 0; }
.thumb { width: 48px; height: 68px; border-radius: 8px; background: var(--card2) center / cover no-repeat; flex: none; }
.thumb.wide { width: 96px; height: 56px; }
.thumb.logo { background-size: contain; background-color: #fff1; }
.watch .t { font-weight: 700; } .watch .s { color: var(--dim); font-size: 13px; }
.prog { height: 4px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; margin-top: 8px; }
.prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--pink)); }

/* ------------------------------------------------ user list */
.list { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.list-head, .urow { display: grid; grid-template-columns: minmax(220px, 2fr) 130px 1.4fr 150px 120px 36px; gap: 16px; align-items: center; padding: 0 20px; }
.list.with-owner .list-head, .list.with-owner .urow { grid-template-columns: minmax(220px, 2fr) 130px 1.4fr 150px 120px 120px 36px; }
.list-head { height: 42px; font-size: 12px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--line); }
.urow { min-height: 72px; border-top: 1px solid var(--line); cursor: pointer; transition: background .12s; }
.urow:first-of-type { border-top: 0; }
.urow:hover { background: rgba(255,255,255,.025); }
.who { display: flex; align-items: center; gap: 13px; min-width: 0; }
.av { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; flex: none; position: relative; color: #fff;
  background: linear-gradient(135deg, hsl(var(--h, 350) 70% 55%), hsl(calc(var(--h, 350) + 50) 60% 40%)); }
.av .dot { position: absolute; right: -2px; bottom: -2px; border: 2px solid var(--panel); width: 12px; height: 12px; }
.av.lg { width: 60px; height: 60px; border-radius: 18px; font-size: 24px; }
.who b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who span { color: var(--faint); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.code { font-family: "JetBrains Mono", monospace; font-weight: 700; letter-spacing: .08em; background: var(--card2); padding: 4px 9px; border-radius: 8px; font-size: 13px; }
.cell-sm { font-size: 13px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell-sm b { color: var(--text); font-weight: 650; }
.row-go { color: var(--faint); }

/* ------------------------------------------------ user page */
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--dim); font-weight: 600; margin-bottom: 18px; }
.back:hover { color: var(--text); }
.uhead { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.uhead h1 { font-size: 28px; letter-spacing: -.03em; font-weight: 800; display: flex; align-items: center; gap: 12px; }
.uhead .meta { display: flex; align-items: center; gap: 10px; margin-top: 6px; color: var(--dim); flex-wrap: wrap; }
.copy { cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.copy:hover .code { background: var(--hover); }
.uhead .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tabs a { padding: 12px 16px; font-weight: 650; color: var(--dim); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--text); border-color: var(--pink); }
.tabs .n { font-size: 11.5px; background: var(--card2); padding: 1px 7px; border-radius: 999px; color: var(--dim); }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 12px 16px; font-size: 14px; }
.kv dt { color: var(--faint); font-weight: 600; } .kv dd { min-width: 0; overflow-wrap: anywhere; }
.alert { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; margin-bottom: 18px; font-weight: 600; }
.alert.paused { background: rgba(251,191,36,.09); border: 1px solid rgba(251,191,36,.25); color: var(--amber); }
.alert.expired, .alert.disabled { background: rgba(255,90,82,.08); border: 1px solid rgba(255,90,82,.25); color: #ff8a84; }
.alert .sp { flex: 1; }
.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mini-stats div { padding: 14px; border-radius: 12px; background: var(--card); }
.mini-stats b { display: block; font-size: 22px; font-weight: 800; }
.mini-stats span { color: var(--dim); font-size: 12.5px; font-weight: 600; }

.devs { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.dev { padding: 18px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.dev-top { display: flex; gap: 13px; align-items: center; }
.dev-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--card2); display: grid; place-items: center; flex: none; }
.dev-ic svg { width: 22px; height: 22px; }
.dev-top b { display: block; font-size: 15px; } .dev-top span { color: var(--faint); font-size: 12.5px; }
.dev-now { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; background: var(--card); }
.dev-now .t { font-weight: 700; font-size: 13.5px; } .dev-now .s { color: var(--dim); font-size: 12.5px; }
.dev-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--faint); font-size: 12.5px; }
.dev-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }

.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); gap: 2px; }
.seg button { height: 32px; padding: 0 14px; border-radius: 9px; border: 0; background: none; color: var(--dim); font-weight: 650; cursor: pointer; }
.seg button.on { background: var(--card2); color: var(--text); }
.day { font-size: 12px; font-weight: 750; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; margin: 22px 0 8px; }
.day:first-child { margin-top: 0; }
.log { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 8px; }
.log .t { font-weight: 700; } .log .s { color: var(--dim); font-size: 13px; }
.log .when { margin-left: auto; text-align: right; color: var(--faint); font-size: 12.5px; white-space: nowrap; }
.log .x { opacity: 0; transition: opacity .15s; }
.log:hover .x { opacity: 1; }
.cw { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.cw-item { position: relative; border-radius: 14px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.cw-img { aspect-ratio: 2 / 3; background: var(--card2) center / cover no-repeat; }
.cw-img.logo { background-size: 60%; }
.cw-item .prog { margin: 0; border-radius: 0; }
.cw-item .cw-t { padding: 10px 12px 12px; }
.cw-item b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-item span { color: var(--dim); font-size: 12px; }
.cw-item .x { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 9px; border: 0; background: rgba(0,0,0,.7); color: #fff; cursor: pointer; display: grid; place-items: center; opacity: 0; transition: opacity .15s; }
.cw-item:hover .x { opacity: 1; }
.tag { position: absolute; top: 8px; left: 8px; font-size: 10px; font-weight: 800; padding: 3px 7px; border-radius: 5px; letter-spacing: .04em; color: #fff; }
.tag.SERIES { background: #7c3aed; } .tag.MOVIES { background: #e5484d; } .tag.LIVE { background: #2563eb; }

.msg { padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 10px; }
.msg p { white-space: pre-wrap; }
.msg .m-meta { display: flex; gap: 10px; align-items: center; color: var(--faint); font-size: 12.5px; margin-top: 8px; flex-wrap: wrap; }

.rel { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-top: 1px solid var(--line); }
.rel:first-child { border-top: 0; }
.rel .v { font-family: "JetBrains Mono", monospace; font-weight: 700; font-size: 16px; min-width: 70px; }
.rel .notes { flex: 1; min-width: 0; }
.rel .notes textarea { min-height: 44px; }
.drop { min-height: 154px; border: 2px dashed var(--line2); border-radius: var(--radius); padding: 24px; text-align: center; color: var(--dim); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; overflow: hidden;
  transition: border-color .15s, background .15s, transform .15s; }
.drop:hover, .drop.over { border-color: var(--pink); background: rgba(240,72,126,.06); }
.drop:active { transform: scale(.995); }
.drop-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: #ff7aa5;
  background: linear-gradient(145deg, rgba(255,90,82,.14), rgba(139,92,246,.15)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.drop-icon svg.i { width: 25px; height: 25px; }
.drop-copy { display: block; line-height: 1.45; }
.drop-copy b { color: var(--text); }
.drop .file-name { min-height: 20px; max-width: 100%; color: var(--faint); font-size: 13px; overflow-wrap: anywhere; }
.drop .file-name:not(:empty) { color: var(--green); }

/* ------------------------------------------------ modal / toast / menu */
.modal-wrap { position: fixed; inset: 0; background: rgba(4,5,8,.7); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; z-index: 50; animation: fade .15s; }
.modal { width: 100%; max-width: 520px; max-height: calc(100vh - 40px); overflow: auto; background: var(--panel); border: 1px solid var(--line2); border-radius: 22px; box-shadow: 0 40px 100px -20px rgba(0,0,0,.8); animation: pop .18s; }
.modal.wide { max-width: 640px; }
.modal-h { display: flex; align-items: center; gap: 12px; padding: 22px 24px 0; }
.modal-h h2 { font-size: 19px; letter-spacing: -.02em; }
.modal-h .x { margin-left: auto; }
.modal-b { padding: 18px 24px; }
.modal-f { display: flex; gap: 10px; justify-content: flex-end; padding: 0 24px 22px; }
.modal-f .sp { flex: 1; }
.created { text-align: center; padding: 10px 0 4px; }
.created .big { font-family: "JetBrains Mono", monospace; font-size: 44px; font-weight: 700; letter-spacing: .14em; margin: 12px 0; background: linear-gradient(100deg, var(--red), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.test-out { font-size: 13px; padding: 10px 12px; border-radius: 10px; margin-top: 12px; }
.test-out.ok { background: rgba(52,211,153,.1); color: var(--green); } .test-out.bad { background: rgba(255,90,82,.1); color: #ff8a84; }
@keyframes fade { from { opacity: 0; } } @keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
#toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { padding: 12px 20px; border-radius: 12px; background: var(--text); color: var(--bg); font-weight: 650; box-shadow: 0 20px 40px -10px rgba(0,0,0,.6); animation: pop .2s; }
.toast.bad { background: var(--red); color: #fff; }
.menu { position: absolute; z-index: 40; min-width: 220px; padding: 6px; border-radius: 14px; background: var(--card); border: 1px solid var(--line2); box-shadow: 0 20px 50px -10px rgba(0,0,0,.7); animation: pop .12s; }
.menu button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; border: 0; background: none; text-align: left; cursor: pointer; font-weight: 600; }
.menu button:hover { background: var(--hover); }
.menu button.danger { color: #ff8a84; }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 5px 4px; }
.skel { background: linear-gradient(90deg, var(--panel), var(--card2), var(--panel)); background-size: 200% 100%; animation: sh 1.2s infinite; border-radius: 12px; }
@keyframes sh { to { background-position: -200% 0; } }

@media (max-width: 1100px) {
  .cols { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .list-head { display: none; }
  .urow, .list.with-owner .urow { grid-template-columns: 1fr auto; padding: 14px 18px; row-gap: 6px; }
  .urow > :nth-child(n+3):not(:last-child) { display: none; }
}
@media (max-width: 800px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 45; left: 0; top: 0; width: 260px; transform: translateX(-100%); transition: transform .2s; }
  .nav-open .side { transform: none; box-shadow: 20px 0 60px rgba(0,0,0,.6); }
  .nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 44; background: rgba(0,0,0,.5); }
  .mhead { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 30; padding: 12px 16px; background: rgba(8,9,13,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  .mhead .brand { padding: 0; font-size: 17px; } .mhead .brand img { width: 28px; height: 28px; }
  .main { padding: 20px 16px 50px; }
  .search .input { width: 100%; }
  .topbar { flex-wrap: wrap; }
  .grid2, .mini-stats { grid-template-columns: 1fr 1fr; }
  .kv { grid-template-columns: 110px 1fr; }
}

/* ------------------------------------------------ proxies */
.pxs { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 16px; }
.px { padding: 20px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.px.off { opacity: .6; }
.px-top { display: flex; align-items: center; gap: 13px; }
.px-top b { display: block; font-size: 16px; }
.px-top .mono { display: block; color: var(--faint); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.px-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, rgba(52,211,153,.2), rgba(96,165,250,.16)); color: var(--green); box-shadow: inset 0 0 0 1px rgba(52,211,153,.2); }
.px-cap-t { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.px-cap-t b { font-size: 20px; font-weight: 800; margin-right: 2px; }
.px-cap .prog { height: 6px; }
.px-cap .prog i { background: linear-gradient(90deg, var(--green), var(--blue)); }
.px-cap .prog.full i { background: linear-gradient(90deg, var(--amber), var(--red)); }
.px-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.px-stats div { padding: 10px 12px; border-radius: 11px; background: var(--card); }
.px-stats b { display: block; font-size: 17px; font-weight: 800; }
.px-stats span { color: var(--dim); font-size: 11.5px; font-weight: 600; }
.px-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; }
.px-empty { grid-column: 1 / -1; text-align: center; padding: 48px 20px; }
.px-empty svg.i { width: 34px; height: 34px; color: var(--green); margin-bottom: 10px; }
.px-empty h3 { margin-bottom: 4px; }
.px-users { display: flex; flex-direction: column; gap: 6px; }
.px-users a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--card); }
.px-users a:hover { background: var(--hover); }
.px-users a > div { flex: 1; min-width: 0; } .px-users b { display: block; }
.px-state { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 12px; background: var(--card); margin-bottom: 14px; }
.px-state svg.i { width: 22px; height: 22px; margin-top: 2px; color: var(--faint); }
.px-state.on { background: linear-gradient(135deg, rgba(52,211,153,.12), rgba(96,165,250,.08)); box-shadow: inset 0 0 0 1px rgba(52,211,153,.18); }
.px-state.on svg.i { color: var(--green); }
.px-state b { display: block; } .px-state span { color: var(--dim); font-size: 13px; }
.px-row { display: flex; gap: 10px; } .px-row select { flex: 1; min-width: 0; }
.px-lock { display: inline-flex; vertical-align: -3px; margin-left: 7px; color: var(--green); }
.px-lock svg.i { width: 15px; height: 15px; }
@media (max-width: 800px) {
  .pxs { grid-template-columns: 1fr; }
  .px-stats { grid-template-columns: 1fr 1fr; }
}

/* ------------------------------------------------ IPTV lines (several per user) */
.lchip { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 6px; font-size: 12px; font-weight: 800; letter-spacing: .01em; white-space: nowrap; }
.lines-ed { display: flex; flex-direction: column; gap: 10px; }
.ln { padding: 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.ln-top { display: flex; align-items: center; gap: 10px; }
.ln-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; box-shadow: 0 0 0 3px rgba(255,255,255,.06); }
.ln-name { flex: 1; min-width: 0; font-weight: 700; }
.ln-colors { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sw { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; position: relative; display: inline-grid; place-items: center; }
.sw.on { border-color: #fff; box-shadow: 0 0 0 2px var(--card), 0 0 0 4px rgba(255,255,255,.35); }
.sw.custom { background: var(--card2); color: var(--dim); font-weight: 800; font-size: 15px; line-height: 1; overflow: hidden; }
.sw.custom input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ln-foot { display: flex; align-items: center; gap: 12px; min-height: 30px; }
.ln-out { font-size: 13px; color: var(--dim); } .ln-out.ok { color: var(--green); } .ln-out.bad { color: #ff8a84; }
.lines-view .lv-head { display: flex; align-items: center; gap: 10px; margin: 18px 0 12px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; }
.lines-view .lv-head:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.card-h h3 .n { font-size: 12px; background: var(--card2); padding: 1px 8px; border-radius: 999px; color: var(--dim); margin-left: 4px; }

/* Private libraries */
.lb-top { margin-bottom: 16px; }
.lb-disk { display: flex; align-items: center; gap: 34px; padding: 16px 20px; flex-wrap: wrap; }
.lb-disk b { display: block; font-size: 19px; font-weight: 800; } .lb-disk span { color: var(--dim); font-size: 12.5px; font-weight: 600; }
.lb-disk .lb-addr { flex: 1; min-width: 200px; display: flex; flex-direction: column-reverse; } .lb-disk .lb-addr b { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
a.px.lb { color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; } a.px.lb:hover { border-color: var(--c); transform: translateY(-2px); }
.lb-ic { background: color-mix(in srgb, var(--c) 18%, transparent) !important; color: var(--c) !important; }
.lb .px-top > svg.i { color: var(--faint); }
.lb-head { display: flex; align-items: center; gap: 12px; margin: 14px 0 20px; flex-wrap: wrap; }
.lb-head .lb-title { flex: 1; min-width: 200px; } .lb-head h1 { font-size: 26px; letter-spacing: -.02em; }
.main > .card + .card { margin-top: 16px; }
.lb-colors { display: flex; gap: 10px; } .lb-colors input { display: none; }
.lb-colors i { display: block; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px transparent; transition: box-shadow .15s; }
.lb-colors input:checked + i { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px #fff; }
.lb-jobs { display: flex; flex-direction: column; gap: 10px; }
.lb-job { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 11px 13px; border-radius: 12px; background: var(--card); }
.lb-job-t { min-width: 0; } .lb-job-t b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .lb-job-t span { font-size: 12.5px; }
.lb-job .code { font-size: 11px; padding: 1px 6px; } .lb-job .prog { grid-column: 1 / -1; margin-top: 4px; }
.lb-prow { display: grid; grid-template-columns: minmax(200px, 1fr) 130px 170px 36px; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.lb-prow.head { border-top: 0; padding: 0 0 8px; font-size: 12px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; }
.lb-prow a.who { color: inherit; text-decoration: none; }
.lb-search { width: 240px; height: 34px; }
.lb-sec { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--dim); margin: 6px 0 10px; } .lb-items + .lb-sec { margin-top: 24px; }
.lb-sec .n { font-size: 12px; background: var(--card2); padding: 1px 8px; border-radius: 999px; margin-left: 4px; }
.lb-items { display: flex; flex-direction: column; gap: 8px; }
.lb-item { display: flex; align-items: center; gap: 14px; padding: 9px 12px 9px 9px; border-radius: 13px; background: var(--card); }
.lb-poster { width: 44px; height: 64px; border-radius: 7px; object-fit: cover; background: var(--card2); flex: none; }
.lb-info { flex: 1; min-width: 0; } .lb-info b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-info span { display: block; font-size: 12.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .lb-info .lb-path { color: var(--faint); font-size: 11.5px; margin-top: 2px; }
.lb-show > summary { list-style: none; cursor: pointer; } .lb-show > summary::-webkit-details-marker { display: none; }
.lb-chev { color: var(--faint); display: flex; transition: transform .15s; } .lb-show[open] .lb-chev { transform: rotate(90deg); }
.lb-show[open] > summary { border-radius: 13px 13px 0 0; }
.lb-seasons { background: var(--card); border-radius: 0 0 13px 13px; padding: 2px 14px 12px 67px; }
.lb-season-h { display: flex; align-items: center; gap: 10px; padding: 10px 0 6px; border-top: 1px solid var(--line); font-size: 14px; } .lb-season-h .sp { flex: 1; }
.lb-ep { display: grid; grid-template-columns: 42px 1fr auto 32px; gap: 10px; align-items: center; font-size: 13.5px; padding: 3px 0; }
.lb-epn { color: var(--faint); font-weight: 700; } .lb-ept { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-ep .btn { height: 28px; width: 28px; border-color: transparent; }
.lb-folder { font-size: 12.5px; margin-top: 18px; overflow-wrap: anywhere; }
.lb-pick { max-height: 300px; overflow: auto; display: flex; flex-direction: column; gap: 4px; }
.lb-pick-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 11px; cursor: pointer; } .lb-pick-row:hover { background: var(--card); }
.lb-pick-row.in { opacity: .55; cursor: default; } .lb-pick-row > div:not(.av) { flex: 1; min-width: 0; } .lb-pick-row b { display: block; } .lb-pick-row span.mono { font-size: 12.5px; color: var(--faint); }
.lb-pick-row input { width: 17px; height: 17px; accent-color: var(--pink); }
.lb-chips { display: flex; flex-direction: column; gap: 6px; }
.lb-chips a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--card); color: inherit; text-decoration: none; } .lb-chips a:hover { background: var(--hover); }
.lb-chips i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); } .lb-chips b { flex: 1; } .lb-chips span { font-size: 12.5px; color: var(--dim); }
@media (max-width: 760px) { .lb-prow { grid-template-columns: 1fr auto; } .lb-prow.head { display: none; } .lb-seasons { padding-left: 14px; } .lb-search { width: 140px; } .lb-item .btn.sm.danger { font-size: 0; gap: 0; width: 32px; padding: 0; } }
