/* ===== Winsmate 2.5 look =====
   A rail of sections, the list of pages next to it, the page on the right. Neutral graphite, gold only
   for what you press and what's on, green / amber / red only for status. No decoration: the visuals
   are real data (your tweaks, your PC, your clips). Loaded after style.css. */
:root{
  --bg:#0c0c0d; --side:#111112; --surface:#151517; --surface2:#1b1b1e; --hover:#212124;
  --border:#232326; --border2:#303034;
  --text:#ececee; --muted:#a3a3a9; --dim:#707077;
  --accent:#f5b82e; --accent-hover:#ffc94a; --accent-ink:#1b1400; --accent-soft:rgba(245,184,46,.11);
  --ok:#3ecf8e; --danger:#f2555a; --warn:#f0a23b; --info:#69a7f5;
  --r:10px; --r-sm:7px;
}
body{background:var(--bg);}
::selection{background:rgba(245,184,46,.28);}
::-webkit-scrollbar-thumb{background:#2c2c30;}
::-webkit-scrollbar-thumb:hover{background:#3a3a3f;}

/* ---------- frame ---------- */
.app-shell{display:flex;flex-direction:column;height:100vh;}
.titlebar{height:42px;gap:12px;padding:0 0 0 16px;background:var(--side);border-bottom:1px solid var(--border);}
.tb-brand{display:flex;align-items:center;gap:9px;width:236px;flex-shrink:0;font-weight:600;font-size:13.5px;color:var(--text);}
.tb-brand img{width:18px;height:18px;}
.title-search{flex:1;max-width:460px;margin:0 auto;height:30px;border-radius:8px;background:var(--surface);border-color:var(--border);}
.title-search:focus-within{background:var(--surface2);border-color:var(--border2);}
.tb-status{-webkit-app-region:no-drag;display:flex;align-items:center;gap:8px;flex-shrink:0;}
.window-controls{margin-left:4px;}
.control{height:42px;border-radius:0;}
.tb-pill{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 10px;border-radius:999px;font-size:12px;font-weight:600;color:var(--muted);background:var(--surface);border:1px solid var(--border);white-space:nowrap;}
.tb-pill i{width:6px;height:6px;border-radius:50%;background:var(--dim);}
.tb-pill.ok i{background:var(--ok);}
.tb-pill.bad{color:#ffb0ad;border-color:rgba(242,85,90,.35);}
.tb-pill.bad i{background:var(--danger);}
.tb-restart{cursor:pointer;color:var(--info);font-family:var(--font);}
.tb-restart:hover{background:var(--hover);}
.tb-restart svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;}
.tb-ver{font-size:11.5px;color:var(--dim);font-variant-numeric:tabular-nums;padding:0 4px;}

.shell-body{flex:1;display:flex;min-height:0;}
.background{flex:1;min-width:0;display:flex;}

/* ---------- rail ---------- */
.rail{width:76px;flex-shrink:0;display:flex;flex-direction:column;align-items:center;gap:2px;padding:10px 0;background:var(--side);border-right:1px solid var(--border);overflow-y:auto;overflow-x:hidden;}
.rail .nav-item{width:64px;height:54px;flex-direction:column;justify-content:center;align-items:center;gap:3px;padding:0;border-radius:10px;color:var(--dim);text-align:center;flex-shrink:0;}
.rail .nav-item .nav-label{flex:none;font-size:11px;font-weight:500;line-height:1.2;max-width:60px;}
.rail .nav-item .nav-icon{width:22px;height:22px;}
.rail .nav-item .nav-icon svg{width:20px;height:20px;stroke-width:1.65;}
.rail .nav-item:hover{background:var(--hover);color:var(--text);}
.rail .nav-item.active{background:var(--surface2);color:var(--text);}
.rail .nav-item.active .nav-label{font-weight:600;}
.rail .nav-item.active .nav-icon{color:var(--accent);}
.rail .nav-item.active::before{left:-6px;top:16px;bottom:16px;width:3px;border-radius:0 3px 3px 0;}
.rail-count{position:absolute;top:5px;right:9px;min-width:16px;height:16px;padding:0 4px!important;border-radius:8px!important;font-size:10px!important;line-height:16px;text-align:center;}
.rail-count:empty{display:none;}
.rail-gap{flex:1;min-height:12px;}
.rail .nav-account .nav-icon .cm-av{width:24px!important;height:24px!important;}
.rail .nav-account:not(.signed-in){color:var(--accent);}
.rail .nav-account:not(.signed-in) .nav-label{font-weight:600;}
.rail .nav-owner .nav-label{color:var(--accent);}

/* ---------- the list of pages ---------- */
.subnav{width:244px;flex-shrink:0;display:flex;flex-direction:column;background:var(--side);border-right:1px solid var(--border);min-height:0;}
.subnav-head{padding:20px 18px 10px;}
.subnav-head h2{font:600 17px/1.2 var(--font-head);color:var(--text);letter-spacing:-.005em;}
.subnav-sum{display:block;margin-top:4px;font-size:12px;color:var(--dim);font-variant-numeric:tabular-nums;}
.subnav-list{flex:1;overflow-y:auto;padding:4px 10px 12px;display:flex;flex-direction:column;gap:1px;}
.sn-group{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--dim);padding:10px 10px 5px;}
.sn-sep{height:6px;flex-shrink:0;}
.sn-item{position:relative;display:flex;align-items:center;gap:11px;width:100%;height:34px;flex-shrink:0;padding:0 10px;border:none;border-radius:7px;background:transparent;color:var(--muted);font-family:var(--font);font-size:13.5px;text-align:left;cursor:pointer;}
.sn-item:hover{background:var(--hover);color:var(--text);}
.sn-item.active{background:var(--surface2);color:var(--text);font-weight:600;}
.sn-item.active::before{content:"";position:absolute;left:-10px;top:9px;bottom:9px;width:3px;border-radius:0 3px 3px 0;background:var(--accent);}
.sn-ic{display:flex;width:17px;height:17px;flex-shrink:0;color:var(--dim);}
.sn-item:hover .sn-ic,.sn-item.active .sn-ic{color:var(--text);}
.sn-ic svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;}
.sn-ic svg.ico-fill,.sn-ic svg .ico-fill,.sn-ic svg .ico-dot{fill:currentColor;stroke:none;}
.sn-ic .potato-body{fill:currentColor;stroke:none;}
.sn-ic .potato-spot{fill:var(--side);stroke:none;}
.sn-ic .potato-highlight{display:none;}
.sn-label{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.subnav .nav-count{font-size:11.5px;font-weight:500;}
.subnav .nav-count-full{color:var(--ok);}
.subnav-foot{padding:8px 10px;border-top:1px solid var(--border);}
.sn-foot-btn{display:flex;align-items:center;gap:10px;width:100%;height:32px;padding:0 10px;border:none;border-radius:7px;background:transparent;color:var(--muted);font-family:var(--font);font-size:12.5px;cursor:pointer;}
.sn-foot-btn:hover{background:var(--hover);color:var(--text);}
.sn-foot-btn svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}

/* ---------- page ---------- */
.page-content{flex:1;overflow-y:auto;padding:30px 40px 64px;}
.panel{max-width:1060px;margin:0 auto;}
.panel-home,.panel-clips{max-width:1200px;}
.page-head{margin-bottom:22px;}
.page-head h1,.hero h1,.potato-hero h1{font:600 26px/1.15 var(--font-head);letter-spacing:-.018em;margin-bottom:6px;}
.page-head p,.hero p,.potato-hero p{font-size:13.5px;line-height:1.55;color:var(--muted);max-width:70ch;}
.ph-row{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;}
.ph-main{flex:1;min-width:0;}
.ph-side{display:flex;align-items:center;gap:18px;flex-shrink:0;padding-bottom:2px;}
.ph-stat{display:flex;align-items:baseline;gap:6px;font-size:12.5px;color:var(--dim);font-variant-numeric:tabular-nums;white-space:nowrap;}
.ph-stat b{font:600 22px/1 var(--font-head);color:var(--text);}
.ph-actions{display:flex;gap:8px;}
.ph-stat{flex-direction:column;align-items:flex-end;gap:6px;}
.ph-stat-n b{font:600 15px/1 var(--font-head);color:var(--text);}
.ph-mini{display:block;width:96px;height:4px;border-radius:2px;background:var(--surface2);overflow:hidden;}
.ph-mini i{display:block;height:100%;border-radius:2px;background:var(--accent);transition:width .4s ease;}
.ph-mini.full i{background:var(--ok);}
.ph-cta{flex-direction:row;align-items:center;gap:14px;}
.ph-cta .kbd-hint{margin:0;white-space:nowrap;}
.ph-cta .btn-lg svg{width:16px;height:16px;}
/* numbers in a row (test results) */
.stat-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));border:1px solid var(--border);border-radius:var(--r);background:var(--surface);margin-bottom:6px;}
.stat-strip>div{display:flex;flex-direction:column;gap:3px;padding:14px 18px;border-left:1px solid var(--border);}
.stat-strip>div:first-child{border-left:none;}
.stat-strip b{font:600 24px/1.1 var(--font-head);color:var(--text);font-variant-numeric:tabular-nums;letter-spacing:-.01em;}
.stat-strip b small{font-size:13px;color:var(--dim);font-weight:600;}
.stat-strip span{font-size:12px;color:var(--dim);}
.does-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));}
.does-row{display:flex;gap:12px;padding:14px 18px;border-top:1px solid var(--border);}
.does-row:nth-child(-n+2){border-top:none;}
.does-row:nth-child(even){border-left:1px solid var(--border);}
.does-row>svg{width:16px;height:16px;margin-top:2px;flex-shrink:0;fill:none;stroke:var(--ok);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;}
.does-row b{display:block;font-size:13.5px;color:var(--text);margin-bottom:2px;}
.does-row span{font-size:12.5px;color:var(--muted);}
/* tweak rows: the badges and "What it changes" on one line under the description */
.tweak-foot{justify-content:flex-start;gap:12px;margin-top:7px;}
.tweak-foot:has(.tweak-badges:empty){margin-top:5px;}
.tweak-badges:empty{display:none;}
.tweak-more{color:var(--dim);}
.tweak-desc{max-width:80ch;}
.settings-row .tweak-desc{max-width:88ch;}
.panel-settings .section-head:first-of-type{margin-top:8px;}
.section-head{margin:30px 0 12px;}
.section-head h2{font:600 15px/1.3 var(--font-head);}
.section-sub{gap:14px;}

/* ---------- controls ---------- */
.btn{border-radius:8px;letter-spacing:.005em;}
.btn-primary{box-shadow:inset 0 -1px 0 rgba(0,0,0,.2);}
.btn-secondary{background:var(--surface2);border-color:var(--border2);}
.btn-secondary:hover{background:var(--hover);}
.btn-ghost{background:transparent;border-color:var(--border2);}
.btn-ghost:hover{background:var(--hover);}
.btn-icon{padding:0;width:32px;min-width:32px;}
.btn-sm.btn-icon{width:28px;min-width:28px;}
.btn-icon svg{margin:0;}
.btn-danger{background:#b23a32;}
.input,.search-input,.select{border-radius:8px;background:var(--surface);}
.seg{border-radius:8px;background:var(--surface);}
.seg-btn.on{background:var(--accent-soft);color:var(--accent);}
.chip-btn.on{background:var(--accent-soft);}
.badge{border-radius:5px;}
.toggle{border-color:#7a7a82;}
.toggle .toggle-knob{background:#c4c4ca;}
.linkbtn{color:var(--accent);}

/* tabs */
.tabs{display:flex;align-items:center;gap:2px;border-bottom:1px solid var(--border);margin:4px 0 18px;}
.tab{position:relative;height:38px;padding:0 12px;border:none;background:none;color:var(--muted);font-family:var(--font);font-size:13.5px;font-weight:600;cursor:pointer;}
.tab:hover{color:var(--text);}
.tab.on{color:var(--text);}
.tab.on::after{content:"";position:absolute;left:10px;right:10px;bottom:-1px;height:2px;border-radius:2px;background:var(--accent);}
.tab-n{margin-left:7px;font-size:11.5px;font-weight:600;color:var(--dim);font-variant-numeric:tabular-nums;}
.tabs-end{margin-left:auto;display:flex;align-items:center;gap:12px;}

/* lists and cards */
.settings-card,.tweak-list,.startup-list,.g-steps{border-radius:var(--r);background:var(--surface);border-color:var(--border);}
.tweak-card{padding:15px 20px;}
.tweak-card:hover,.settings-row:hover{background:#18181a;}
.tweak-card.is-on .tweak-name{color:var(--text);}
.tweak-details{background:var(--bg);border-color:var(--border);}
.banner{border-radius:var(--r);background:var(--surface);}
.empty-state{border-color:var(--border2);background:transparent;}
.empty-art{width:132px;height:99px;opacity:.9;}
.preset-card,.review-card,.cat-card,.live-card,.setup-step,.cm-card,.cm-side-card{border-radius:var(--r);}

/* ---------- Home ---------- */
.hm-greet{display:flex;align-items:center;gap:14px;margin-bottom:12px;font-size:12.5px;font-weight:600;color:var(--dim);}
.hm-live-pill{display:inline-flex;align-items:center;gap:7px;font-weight:500;color:var(--muted);}
.hm-live-pill i{width:6px;height:6px;border-radius:50%;background:var(--ok);box-shadow:0 0 0 3px rgba(62,207,142,.14);}
.hm-card{border:1px solid var(--border);border-radius:12px;background:var(--surface);}
.hm-top,.hm-row2{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(300px,1fr);gap:14px;}
.hm-row2{margin-top:14px;}
.hm-status{display:flex;flex-direction:column;padding:26px 28px 24px;}
.hm-status h1{font:600 30px/1.12 var(--font-head);letter-spacing:-.022em;margin-bottom:8px;text-wrap:balance;}
.hm-status p{font-size:13.5px;line-height:1.55;color:var(--muted);max-width:58ch;}
.hm-meter{display:flex;align-items:flex-end;gap:24px;margin:26px 0 24px;}
.hm-num{display:flex;align-items:baseline;gap:7px;flex-shrink:0;}
.hm-num b{font:600 58px/.86 var(--font-head);letter-spacing:-.035em;color:var(--text);font-variant-numeric:tabular-nums;}
.hm-num span{font:600 19px/1 var(--font-head);color:var(--dim);}
.hm-meter-r{flex:1;min-width:0;display:flex;flex-direction:column;gap:9px;padding-bottom:2px;}
.hm-meter-label{font-size:12px;font-weight:600;color:var(--dim);}
.hm-ticks{display:flex;gap:3px;height:28px;}
.hm-ticks i{flex:1 1 0;min-width:2px;border-radius:1.5px;background:#27272b;}
.hm-ticks i.on{background:var(--accent);}
.hm-actions{display:flex;gap:8px;margin-top:auto;}
.hm-pc,.hm-attn,.hm-guide{padding:18px 20px;}
.hm-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;}
.hm-card-head h3{font:600 14px/1.2 var(--font-head);color:var(--text);}
.hm-sub{font-size:12px;color:var(--dim);font-variant-numeric:tabular-nums;}
.hm-n{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:rgba(240,162,59,.14);color:var(--warn);font-size:11.5px;font-weight:700;}
.hm-spec{display:flex;flex-direction:column;}
.hm-spec>div{display:grid;grid-template-columns:84px minmax(0,1fr);gap:12px;padding:8px 0;border-top:1px solid var(--border);}
.hm-spec>div:first-child{border-top:none;padding-top:2px;}
.hm-spec dt{font-size:12px;color:var(--dim);}
.hm-spec dd{font-size:13px;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.hm-live{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:14px;}
.hm-live .live-card{padding:14px 16px 12px;border-radius:12px;}
.hm-live .live-top span{font-size:12px;font-weight:600;color:var(--muted);}
.hm-live .live-val{font:600 22px/1 var(--font-head);}
.hm-live .spark{display:block;height:56px;margin:10px 0 6px;}
.hm-live .spark svg{display:block;width:100%;height:100%;overflow:visible;}
.sp-line{fill:none;stroke:var(--accent);stroke-width:1.5;stroke-linejoin:round;vector-effect:non-scaling-stroke;}
.sp-area{fill:var(--accent);opacity:.07;}
.sp-grid{stroke:var(--border2);stroke-width:1;stroke-dasharray:2 5;vector-effect:non-scaling-stroke;}
.hm-attn-list{display:flex;flex-direction:column;}
.hm-attn-row{display:flex;align-items:center;gap:14px;padding:12px 0;border-top:1px solid var(--border);}
.hm-attn-row:first-child{border-top:none;padding-top:2px;}
.hm-attn-ic{display:flex;align-items:center;justify-content:center;width:32px;height:32px;flex-shrink:0;border-radius:8px;background:var(--surface2);color:var(--muted);}
.hm-attn-ic svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;}
.hm-attn-ic svg .ico-dot{fill:currentColor;stroke:none;}
.tone-warn .hm-attn-ic{color:var(--warn);background:rgba(240,162,59,.1);}
.tone-bad .hm-attn-ic{color:var(--danger);background:rgba(242,85,90,.1);}
.tone-gold .hm-attn-ic{color:var(--accent);background:var(--accent-soft);}
.tone-info .hm-attn-ic{color:var(--info);background:rgba(105,167,245,.1);}
.hm-attn-txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;}
.hm-attn-txt b{font-size:13.5px;color:var(--text);}
.hm-attn-txt span{font-size:12.5px;line-height:1.45;color:var(--muted);}
.hm-attn-act{display:flex;align-items:center;gap:10px;flex-shrink:0;}
.hm-allgood{display:flex;align-items:flex-start;gap:12px;padding:4px 0;}
.hm-allgood>svg{width:18px;height:18px;margin-top:1px;flex-shrink:0;fill:none;stroke:var(--ok);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;}
.hm-allgood b{display:block;font-size:13.5px;color:var(--text);margin-bottom:2px;}
.hm-allgood span{font-size:12.5px;color:var(--muted);}
.hm-guide{display:flex;flex-direction:column;gap:12px;}
.hm-guide .hm-card-head{margin-bottom:0;}
.hm-steps{display:flex;gap:4px;}
.hm-steps i{flex:1;height:6px;border-radius:3px;background:var(--surface2);}
.hm-steps i.done{background:var(--ok);}
.hm-steps i.cur{background:var(--accent);}
.hm-guide p{font-size:13px;color:var(--muted);}
.hm-guide p b{color:var(--text);}
.hm-guide .btn{align-self:flex-start;margin-top:auto;}
.hm-clips .section-head{margin-top:28px;}
.clip-grid.clip-row{grid-template-columns:repeat(4,minmax(0,1fr));}
.hm-empty-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 18px;font-size:13px;color:var(--muted);}
.rec-mini{display:inline-flex;align-items:center;gap:7px;font-size:12.5px;color:var(--dim);}
.rec-mini i{width:7px;height:7px;border-radius:50%;background:var(--dim);}
.rec-mini.on i{background:var(--ok);}
#dash-trend .section-head{margin-top:28px;}

/* ---------- Clips ---------- */
.rec-hero{border-radius:12px;padding:16px 18px;margin-bottom:8px;background:var(--surface);}
.rec-text b{font:600 15px/1.3 var(--font-head);}
.clip-grid{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:18px 16px;}
.clip-card{gap:7px;padding:0;border:none;border-radius:0;background:transparent;overflow:visible;}
.clip-thumb{border-radius:10px;overflow:hidden;border:1px solid var(--border);transition:transform .15s ease,border-color .15s ease;}
.clip-card:hover .clip-thumb{transform:translateY(-2px);border-color:var(--border2);}
.clip-card:focus-visible{outline:none;}
.clip-card:focus-visible .clip-thumb{outline:2px solid var(--accent);outline-offset:2px;}
.clip-name{padding:4px 2px 0;font-size:13px;line-height:1.3;}
.clip-meta{padding:0 2px;margin-top:-4px;line-height:1.3;}
.clip-len{border-radius:5px;background:rgba(0,0,0,.72);}
.clip-tag{background:var(--danger);}
.clip-grid > .empty-state,.clip-grid > .loading{grid-column:1 / -1;}

/* clip editor */
.clip-view{display:flex;flex-direction:column;gap:12px;padding:14px 16px 16px;}
.clip-head{display:flex;align-items:center;gap:12px;}
.clip-head .clip-title{font-size:13.5px;color:var(--muted);}
.clip-video{max-height:58vh;}
/* the editor plays the clip's sound itself (Game / Mic sliders), so the video's own volume button goes */
.clip-video.own-sound::-webkit-media-controls-mute-button,
.clip-video.own-sound::-webkit-media-controls-volume-slider,
.clip-video.own-sound::-webkit-media-controls-volume-control-container{display:none!important;}
.clip-edit{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;}
.clip-ed{display:flex;flex-direction:column;gap:8px;padding:12px 14px;border:1px solid var(--border);border-radius:10px;background:var(--surface);min-width:0;}
.clip-ed-h{display:flex;align-items:baseline;justify-content:space-between;gap:10px;font-size:11.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--dim);}
.clip-ed-h b{font-weight:600;letter-spacing:0;text-transform:none;font-size:12.5px;color:var(--muted);font-variant-numeric:tabular-nums;}
.clip-ed-h .link-btn{text-transform:none;letter-spacing:0;font-weight:500;}
.clip-ed-note{font-size:12.5px;line-height:1.45;color:var(--dim);}
.clip-ed-note.bad{color:var(--danger);}
.clip-trim{margin:0;}
.clip-trim-row,.vol-row{display:flex;align-items:center;gap:12px;font-size:12.5px;color:var(--muted);}
.clip-trim-row span,.vol-row span{width:52px;flex-shrink:0;}
.vol-row input{flex:1;min-width:0;accent-color:var(--accent);}
.vol-row b{width:46px;text-align:right;color:var(--text);font-weight:600;font-variant-numeric:tabular-nums;}
.vol-row b.up{color:var(--accent);}
.clip-actions{margin-top:0;flex-wrap:wrap;}
.clip-gap{flex:1;}
.clip-post{display:flex;flex-direction:column;gap:8px;padding:12px 14px;border:1px solid var(--border2);border-radius:10px;background:var(--surface);}
.clip-post[hidden]{display:none;}
.clip-post-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.clip-post-row .input{flex:1;min-width:200px;}
.clip-post-mic{display:inline-flex;align-items:center;gap:7px;font-size:13px;color:var(--muted);cursor:pointer;user-select:none;}
.clip-post-mic input{accent-color:var(--accent);width:15px;height:15px;margin:0;}
.clip-post-mic[hidden]{display:none;}
@media (max-width:900px){.clip-edit{grid-template-columns:minmax(0,1fr);}}

/* Community: clips */
.cm-card .cm-prev.clip,.cm-prev.clip{position:relative;padding:0;background:#000;cursor:pointer;}
.cm-clip-pic{width:100%;height:100%;object-fit:cover;display:block;}
.cm-clip-play{position:absolute;left:50%;top:50%;width:42px;height:42px;margin:-21px 0 0 -21px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:rgba(0,0,0,.62);color:#fff;transition:background .15s ease,transform .15s ease;}
.cm-prev.clip:hover .cm-clip-play{background:rgba(0,0,0,.8);transform:scale(1.06);}
.cm-post.is-clip{width:min(1000px,calc(100vw - 48px));grid-template-columns:minmax(0,1fr) 300px;}
.cm-post-prev.clip{padding:0;background:#000;min-height:0;}
.cm-post-video{width:100%;max-height:70vh;display:block;background:#000;}
.cm-clip-gone{padding:40px 24px;color:var(--muted);font-size:13.5px;text-align:center;}
@media (max-width:860px){.cm-post.is-clip{grid-template-columns:1fr;}}

/* ---------- Games (names only) ---------- */
.games-list{display:flex;flex-direction:column;border:1px solid var(--border);border-radius:var(--r);background:var(--surface);overflow:hidden;}
.game-row{display:flex;align-items:center;gap:16px;padding:14px 18px;border-top:1px solid var(--border);}
.game-row:first-child{border-top:none;}
.game-row:hover{background:#18181a;}
.game-row .game-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px;}
.game-row .game-info b{font:600 15px/1.3 var(--font-head);color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.game-row .game-info span{font-size:12.5px;color:var(--dim);}
.game-row .game-actions{display:flex;gap:8px;flex-shrink:0;}
.game-row .game-actions .btn-primary{flex:none;}
.games-list > .empty-state{border:none;margin:0;border-radius:0;}
.games-list > .loading{padding:18px;}

/* ---------- dialogs, toasts ---------- */
.progress-card,.confirm-card{border-radius:12px;background:#18181b;border-color:var(--border2);}
.progress-overlay{background:rgba(0,0,0,.6);}
.toast{border-radius:9px;background:#1d1d20;cursor:pointer;}
.toast:hover{background:#232327;}

/* the "update available" mark on the rail is a dot, so it doesn't cover the Settings icon */
.rail-count.nav-count-new{font-size:0!important;min-width:0;width:9px;height:9px;padding:0!important;top:7px;right:15px;border-radius:50%!important;box-shadow:0 0 0 2px var(--side);}
.si-screen:focus{outline:none;}
/* crosshair sliders for a part that's switched off */
.xh-slider.is-off{opacity:.42;}

/* ---------- narrower windows ---------- */
@media (max-width:1240px){
  .subnav{width:214px;}
  .page-content{padding:26px 30px 56px;}
  .hm-top,.hm-row2{grid-template-columns:minmax(0,1fr);}
  .clip-grid.clip-row{grid-template-columns:repeat(2,minmax(0,1fr));}
  .tb-brand{width:180px;}
}
@media (max-width:1100px){
  .hm-live{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
  .ph-row{flex-direction:column;align-items:flex-start;}
  .ph-stat{align-items:flex-start;}
  .tb-ver{display:none;}
}


/* ---------------- Free & Pro ---------------- */
:root{--gold-1:#ffe08a;--gold-2:#f5b82e;--gold-3:#d9920c;--gold-glow:rgba(245,184,46,.45);}
@keyframes wsFloat{0%,100%{transform:translate(0,0) scale(1)}50%{transform:translate(18px,-14px) scale(1.06)}}
@keyframes wsPulse{0%,100%{filter:drop-shadow(0 0 18px rgba(245,184,46,.45))}50%{filter:drop-shadow(0 0 34px rgba(245,184,46,.75))}}
@keyframes wsShine{0%{transform:translateX(-120%) skewX(-20deg)}60%,100%{transform:translateX(260%) skewX(-20deg)}}
@keyframes wsRise{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}
.btn-gold{position:relative;overflow:hidden;border:0;color:#1b1200;font-weight:700;background:linear-gradient(180deg,var(--gold-1) 0%,var(--gold-2) 45%,var(--gold-3) 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.55),0 10px 30px rgba(245,184,46,.28);transition:transform .15s ease,box-shadow .15s ease;}
.btn-gold:hover{transform:translateY(-1px);box-shadow:inset 0 1px 0 rgba(255,255,255,.6),0 14px 38px rgba(245,184,46,.42);}
.btn-gold::after{content:"";position:absolute;top:0;bottom:0;left:0;width:38%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.55),transparent);animation:wsShine 3.2s ease-in-out infinite;}
.btn-gold svg{fill:currentColor;stroke:none;}
.btn-glass{border:1px solid rgba(245,184,46,.35);background:rgba(245,184,46,.07);color:var(--gold-1);font-weight:600;}
.btn-glass:hover{background:rgba(245,184,46,.14);border-color:rgba(245,184,46,.55);}
.btn-glass svg{fill:currentColor;stroke:none;}

/* the unlock box */
.pro-card{position:relative;overflow:hidden;width:min(480px,92vw);padding:28px 28px 22px;border-radius:18px;background:linear-gradient(180deg,#1d1b17 0%,#151517 38%);border:1px solid rgba(245,184,46,.22);box-shadow:0 40px 100px rgba(0,0,0,.65),0 0 0 1px rgba(255,255,255,.03) inset;animation:wsRise .28s ease-out;}
.pro-card::before{content:"";position:absolute;left:50%;top:-140px;width:420px;height:260px;transform:translateX(-50%);background:radial-gradient(closest-side,rgba(245,184,46,.32),transparent);pointer-events:none;}
.pro-card > *{position:relative;}
.pro-close{position:absolute;top:12px;right:14px;width:30px;height:30px;border:0;border-radius:9px;background:rgba(255,255,255,.04);color:var(--muted);font-size:20px;line-height:1;cursor:pointer;z-index:2;}
.pro-close:hover{background:rgba(255,255,255,.1);color:var(--text);}
.pro-badge{display:inline-flex;align-items:center;gap:7px;height:26px;padding:0 12px;border-radius:999px;background:linear-gradient(180deg,rgba(255,224,138,.22),rgba(245,184,46,.12));border:1px solid rgba(245,184,46,.4);color:var(--gold-1);font-size:12px;font-weight:700;letter-spacing:.02em;margin-bottom:14px;box-shadow:0 0 24px rgba(245,184,46,.18);}
.pro-badge svg{width:13px;height:13px;fill:currentColor;stroke:none;}
.pro-card .confirm-title{font-size:21px;line-height:1.3;margin-bottom:16px;}
.pro-list{list-style:none;margin:0 0 18px;padding:0;display:grid;gap:9px;}
.pro-list li{display:flex;align-items:center;gap:10px;font-size:13.5px;color:var(--text);}
.pro-list li svg{flex:none;width:20px;height:20px;padding:3px;border-radius:50%;background:rgba(245,184,46,.14);fill:none;stroke:var(--gold-2);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;box-sizing:border-box;}
.pro-price{display:flex;align-items:baseline;gap:8px;font-size:13px;color:var(--muted);margin-bottom:14px;}
.pro-price b{font-size:34px;font-weight:800;letter-spacing:-.02em;background:linear-gradient(180deg,var(--gold-1),var(--gold-2) 60%,var(--gold-3));-webkit-background-clip:text;background-clip:text;color:transparent;}
.pro-buy{width:100%;height:46px;font-size:15px;border-radius:12px;}
.pro-key{margin-top:18px;padding-top:16px;border-top:1px solid rgba(255,255,255,.06);}
.pro-key label{display:block;font-size:12.5px;color:var(--muted);margin-bottom:8px;}
.pro-key-row{display:flex;gap:8px;}
.pro-key-row .input{flex:1;min-width:0;height:38px;font-family:var(--mono);font-size:12.5px;letter-spacing:.03em;background:rgba(255,255,255,.03);border-color:rgba(255,255,255,.1);}
.pro-key-row .input:focus{border-color:rgba(245,184,46,.6);box-shadow:0 0 0 3px rgba(245,184,46,.15);}
.pro-key-err{margin-top:8px;font-size:12.5px;color:var(--danger);}

/* a Pro page in the free version */
.locked-page{position:relative;max-width:540px;margin:8vh auto 0;text-align:center;animation:wsRise .3s ease-out;}
.locked-page::before{content:"";position:absolute;left:50%;top:-60px;width:380px;height:260px;transform:translateX(-50%);background:radial-gradient(closest-side,rgba(245,184,46,.16),transparent);pointer-events:none;z-index:-1;}
.locked-ic{width:78px;height:78px;margin:0 auto 20px;border-radius:22px;background:linear-gradient(160deg,#2a2518,#16161a);border:1px solid rgba(245,184,46,.35);display:flex;align-items:center;justify-content:center;box-shadow:0 0 40px rgba(245,184,46,.22),inset 0 1px 0 rgba(255,255,255,.08);}
.locked-ic svg{width:32px;height:32px;fill:none;stroke:var(--gold-1);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;}
.locked-page h1{font-size:30px;margin:0 0 10px;letter-spacing:-.01em;}
.locked-page p{color:var(--muted);font-size:14.5px;line-height:1.6;margin:0 auto 16px;max-width:460px;}
.locked-pro{font-size:13px;color:var(--muted);margin-bottom:20px;}
.locked-pro b{color:var(--gold-1);}
.locked-actions{display:flex;gap:10px;justify-content:center;}
.locked-actions .btn{height:42px;padding:0 20px;border-radius:11px;}
.locked-actions .btn svg{width:14px;height:14px;margin-right:7px;}

/* locks in the menus, the Pro pill, Pro rows */
.sn-lock{margin-left:auto;display:inline-flex;color:rgba(245,184,46,.7);}
.sn-lock svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.rail-item{position:relative;}
.rail-lock{position:absolute;top:6px;right:8px;display:inline-flex;color:var(--gold-2);}
.rail-lock svg{width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;}
.tb-pro{cursor:pointer;position:relative;overflow:hidden;color:#1b1200;border:0;background:linear-gradient(180deg,var(--gold-1),var(--gold-2) 55%,var(--gold-3));font-family:var(--font);font-weight:700;box-shadow:0 0 18px rgba(245,184,46,.35);}
.tb-pro::after{content:"";position:absolute;top:0;bottom:0;left:0;width:40%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.6),transparent);animation:wsShine 3.6s ease-in-out infinite;}
.tb-pro svg{width:12px;height:12px;fill:currentColor;stroke:none;}
.pro-tag{display:inline-flex;align-items:center;gap:4px;margin-left:6px;padding:1px 8px;border-radius:999px;background:linear-gradient(180deg,rgba(255,224,138,.2),rgba(245,184,46,.1));border:1px solid rgba(245,184,46,.35);color:var(--gold-1);font-size:11px;font-weight:700;vertical-align:1px;}
.pro-tag svg{width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:2.2;}
.st-pro-btns{display:flex;gap:8px;flex:none;}

/* first start of the free version */
.welcome-overlay{position:fixed;inset:0;z-index:1100;display:flex;align-items:center;justify-content:center;overflow:hidden;background:radial-gradient(1200px 600px at 50% -10%,rgba(245,184,46,.16),transparent 60%),rgba(6,6,7,.94);backdrop-filter:blur(6px);}
.welcome-overlay::before,.welcome-overlay::after{content:"";position:absolute;width:520px;height:520px;border-radius:50%;filter:blur(60px);opacity:.5;pointer-events:none;animation:wsFloat 9s ease-in-out infinite;}
.welcome-overlay::before{left:-140px;bottom:-180px;background:radial-gradient(closest-side,rgba(245,184,46,.28),transparent);}
.welcome-overlay::after{right:-160px;top:-200px;background:radial-gradient(closest-side,rgba(255,224,138,.18),transparent);animation-delay:-4s;}
.welcome-card{position:relative;width:min(540px,92vw);padding:38px 36px 28px;border-radius:22px;text-align:center;background:linear-gradient(180deg,rgba(32,30,26,.92),rgba(18,18,21,.94));border:1px solid rgba(245,184,46,.22);box-shadow:0 50px 120px rgba(0,0,0,.7),inset 0 1px 0 rgba(255,255,255,.06);animation:wsRise .35s ease-out;}
.welcome-logo{width:76px;height:76px;object-fit:contain;margin-bottom:18px;animation:wsPulse 3.2s ease-in-out infinite;}
.welcome-card h1{font-size:32px;margin:0 0 10px;letter-spacing:-.015em;background:linear-gradient(180deg,#ffffff 30%,var(--gold-1));-webkit-background-clip:text;background-clip:text;color:transparent;}
.welcome-card p{font-size:14.5px;line-height:1.6;color:var(--muted);margin:0 auto 16px;max-width:440px;}
.welcome-card p b{color:var(--text);}
.welcome-chips{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:0 0 24px;}
.welcome-chips span{padding:5px 11px;border-radius:999px;font-size:12px;font-weight:600;color:var(--text);background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.09);}
.welcome-actions{display:grid;gap:10px;}
.welcome-actions .btn{height:48px;font-size:15px;justify-content:center;border-radius:13px;}
.welcome-actions .btn svg{width:14px;height:14px;margin-right:7px;}
.welcome-key{margin-top:16px;border:0;background:none;color:var(--muted);font-size:13px;cursor:pointer;text-decoration:underline;text-underline-offset:3px;font-family:var(--font);}
.welcome-key:hover{color:var(--gold-1);}
@media (prefers-reduced-motion: reduce){.btn-gold::after,.tb-pro::after,.welcome-overlay::before,.welcome-overlay::after,.welcome-logo{animation:none;}}
/* a Pro page in the free version: the real page, blurred, under a "Needs Pro" panel */
.page-content.is-veiled{overflow:hidden;}
.page-content.is-veiled > *{filter:blur(3px) saturate(.7);opacity:.5;pointer-events:none;user-select:none;}
.pro-veil{position:absolute;inset:0;z-index:5;display:flex;align-items:center;justify-content:center;padding:30px;background:radial-gradient(ellipse 60% 55% at 50% 45%,rgba(10,10,12,.25),rgba(7,7,8,.82) 75%);animation:wsRise .25s ease-out;}
.pro-veil-card{position:relative;overflow:hidden;width:min(480px,100%);padding:30px 30px 24px;border-radius:20px;text-align:center;background:linear-gradient(180deg,rgba(34,31,24,.95),rgba(19,19,22,.97));border:1px solid rgba(245,184,46,.3);box-shadow:0 40px 110px rgba(0,0,0,.7),0 0 60px rgba(245,184,46,.1),inset 0 1px 0 rgba(255,255,255,.07);}
.pro-veil-card::before{content:"";position:absolute;left:50%;top:-120px;width:380px;height:240px;transform:translateX(-50%);background:radial-gradient(closest-side,rgba(245,184,46,.28),transparent);pointer-events:none;}
.pro-veil-card > *{position:relative;}
.pro-veil-card .locked-ic{margin-bottom:14px;}
.pro-veil-card h2{font-size:26px;margin:4px 0 8px;letter-spacing:-.01em;}
.pro-veil-card p{color:var(--muted);font-size:14px;line-height:1.6;margin:0 0 18px;}
.pro-veil-note{margin-top:14px;font-size:12px;color:var(--dim);}

/* the free version's bar on the tweak pages */
.free-bar{display:grid;grid-template-columns:1fr minmax(160px,240px) auto;align-items:center;gap:18px;margin:0 0 18px;padding:16px 18px;border-radius:14px;background:linear-gradient(90deg,rgba(245,184,46,.10),rgba(245,184,46,.03));border:1px solid rgba(245,184,46,.28);}
.free-bar.full{background:linear-gradient(90deg,rgba(245,184,46,.18),rgba(245,184,46,.05));border-color:rgba(245,184,46,.5);box-shadow:0 0 30px rgba(245,184,46,.12);}
.fb-tag{display:inline-block;margin-bottom:4px;padding:1px 8px;border-radius:999px;background:rgba(245,184,46,.16);color:var(--gold-1);font-size:11px;font-weight:700;letter-spacing:.03em;text-transform:uppercase;}
.fb-main{font-size:16px;color:var(--text);}
.fb-main b{color:var(--gold-1);font-size:18px;}
.fb-sub{font-size:12.5px;color:var(--muted);margin-top:2px;}
.fb-meter{height:10px;border-radius:999px;background:rgba(255,255,255,.07);overflow:hidden;}
.fb-meter i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--gold-3),var(--gold-2),var(--gold-1));box-shadow:0 0 12px rgba(245,184,46,.5);}
.free-bar .btn svg{width:13px;height:13px;margin-right:6px;}
.toggle-lock{display:inline-flex;align-items:center;gap:5px;height:26px;padding:0 10px;border-radius:999px;border:1px solid rgba(245,184,46,.4);background:rgba(245,184,46,.08);color:var(--gold-1);font-size:11.5px;font-weight:700;cursor:pointer;font-family:var(--font);}
.toggle-lock:hover{background:rgba(245,184,46,.16);}
.toggle-lock svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;}
.tweak-card.is-capped{opacity:.78;}
@media (max-width:900px){.free-bar{grid-template-columns:1fr;}}