/* PackOps GRAPHITE preview (2026-11-15). Wolf: "now i want to see how this style would look on the packops site" —
   the wolfstyle.fun graphite look (after Stake): flat near-black ground, charcoal panels, white text, lime the only
   colour, soft rounded corners, the side menu a rounded panel floating off the edge. The default look since 2026-11-15:
   every admin page's <head> adds html.po-graphite unless this browser chose ?theme=off. */
html.po-graphite{
  --bg:#0F1112; --bg2:#141618; --card:#1A1D20; --card2:#202427; --card3:#272B2F;
  --hair:rgba(255,255,255,.07); --hair2:rgba(255,255,255,.11);
  --green:#B7FF1A; --green2:#93D10F; --green-ink:#0F1112; --green-soft:rgba(183,255,26,.10); --green-glow:rgba(183,255,26,0);
  --txt:#FFFFFF; --muted:#A3AAB0; --dim:#737B82;
  --r:18px; --r-sm:12px; --r-xs:9px; --ch:0px; --ch-sm:0px;
  --shadow:0 8px 24px rgba(0,0,0,.45);
}
html.po-graphite, html.po-graphite body{background:#0F1112}
html.po-graphite body{background-image:none}

/* no cut corners: everything clipped by the chamfer helpers becomes softly rounded */
html.po-graphite .ch{clip-path:none;border-radius:var(--r)}
html.po-graphite .ch-sm{clip-path:none;border-radius:var(--r-sm)}
html.po-graphite [class*="card"],html.po-graphite .panel,html.po-graphite .tile,html.po-graphite .kpi,html.po-graphite .stat{clip-path:none}

/* headings: bold sentence case instead of the wide all-caps display face */
html.po-graphite h1,html.po-graphite h2,html.po-graphite h3{font-family:var(--font);font-weight:800;text-transform:none;letter-spacing:-.015em;font-style:normal}

/* top bar: flat black, no divider */
html.po-graphite .topbar{background:#0F1112;border-bottom:0;backdrop-filter:none;-webkit-backdrop-filter:none}

/* side menu: a rounded charcoal panel floating 10px off the edges, the active page a soft grey pill */
@media (min-width:901px){
  html.po-graphite .sidenav{background:#1A1D20;border-right:0;border-radius:18px;margin:2px 0 10px 10px;top:calc(var(--nav-h) + 2px);height:calc(100vh - var(--nav-h) - 12px)}
}
html.po-graphite .sidenav a{color:#D5DADE;border-radius:12px;border-left:0}
html.po-graphite .sidenav a:hover{background:#24282C;color:#fff}
html.po-graphite .sidenav a.on{background:#2A2E33;color:#fff;font-weight:700;box-shadow:none}
html.po-graphite .sidenav .sect{color:#8A9298}
html.po-graphite .side-earn{border:0;background:rgba(183,255,26,.08)}
html.po-graphite .side-partner,html.po-graphite .sidenav a.side-powered{border-top:0}

/* cards and inputs: flat charcoal, hairlines only where they help */
html.po-graphite .card,html.po-graphite .panel{background:#1A1D20;border-color:transparent;box-shadow:none}
html.po-graphite input,html.po-graphite select,html.po-graphite textarea{background:#141618;border-color:rgba(255,255,255,.09);border-radius:var(--r-sm)}
html.po-graphite input:focus,html.po-graphite select:focus,html.po-graphite textarea:focus{border-color:rgba(183,255,26,.5);box-shadow:0 0 0 3px rgba(183,255,26,.12)}

/* buttons: rounded, primary lime with dark text, secondary grey */
html.po-graphite .btn{border-radius:12px;clip-path:none}
html.po-graphite .btn:not(.p):not(.primary){background:#24282C;border-color:transparent;color:#fff}
html.po-graphite .btn:not(.p):not(.primary):hover{background:#2C3136}

/* tables */
html.po-graphite .tbl th{color:#8A9298;border-color:rgba(255,255,255,.06)}
html.po-graphite .tbl td{border-color:rgba(255,255,255,.05)}

/* bottom tab bar on phones */
html.po-graphite .tabbar{background:#141618;border-top:0}

/* popups */
html.po-graphite .modal .box{background:#1A1D20;border-color:transparent;border-radius:20px;clip-path:none}

/* wide screens: use the whole width (Wolf: "why do we leave such big gaps on left and right on bigger screens") —
   the old 1560px cap left empty bands on big monitors; now the content fills, with normal padding */
html.po-graphite .main{max-width:none;padding-left:28px;padding-right:28px}
@media (min-width:1800px){html.po-graphite .main{padding-left:36px;padding-right:36px}}

/* ---- top bar (after wolfstyle.fun's): the logo in a rounded charcoal block the width of the side menu, every
   control a 40px rounded charcoal pill with no outline, colour only in the text; quiet round buttons on the right ---- */
html.po-graphite .topbar{gap:8px;padding:0 14px 0 10px}
@media (min-width:901px){
  html.po-graphite .topbar .logo{flex:none;width:222px;height:46px;display:flex;align-items:center;padding:0 16px;border-radius:16px;background:#1A1D20}
  html.po-graphite .topbar .logo img{height:30px}
}
html.po-graphite .switch{height:40px;border:0;border-radius:12px;background:#1A1D20;padding:0 4px 0 12px}
html.po-graphite .switch select{border:0;background:#24282C;border-radius:9px;min-height:32px}
html.po-graphite .botsw,html.po-graphite .giftchip{height:40px;padding:0 14px;border:0;border-radius:12px;background:#1A1D20;color:#C9CED2}
html.po-graphite .botsw:hover,html.po-graphite .giftchip:hover{background:#24282C;color:#fff}
html.po-graphite .botsw.on{color:#B7FF1A;background:#1A1D20}
html.po-graphite #botSw:not(.on){color:#FF7A7A;background:rgba(255,92,92,.10)}
html.po-graphite .botsw.dbsw.on{border:0;color:#FF6B6B;background:rgba(255,40,40,.14)}
html.po-graphite .botsw.dbhit{border:0;color:#FFC940;background:rgba(255,201,64,.12);font-weight:800}
html.po-graphite .botsw.dbhit:hover{background:rgba(255,201,64,.2);filter:none}
html.po-graphite .pkbtn{height:40px;min-width:210px;border:0;border-radius:12px;background:#1A1D20;color:#A3AAB0;padding:0 10px 0 14px}
html.po-graphite .pkbtn:hover{background:#24282C;color:#fff}
html.po-graphite .pkbtn kbd{background:#2A2E33;border:0;border-radius:6px}
@media (max-width:1100px){html.po-graphite .pkbtn{min-width:0;width:40px}}
html.po-graphite .bell{width:40px;height:40px;border:0;border-radius:12px;background:transparent}
html.po-graphite .bell:hover{background:#24282C}
html.po-graphite .live-pill{height:32px;display:inline-flex;align-items:center;border:0;background:#1A1D20;color:#A3AAB0}
html.po-graphite .live-pill.on{background:#FF3B44;color:#fff}
html.po-graphite .who{background:#1A1D20;border:0;border-radius:14px;padding:4px 12px 4px 6px}
html.po-graphite .topbar .btn.ic.g{width:40px;height:40px;border:0;border-radius:12px;background:transparent}
html.po-graphite .topbar .btn.ic.g:hover{background:#24282C}

/* ---- "dashboard was updated" notice: a small floating charcoal card, not a full-width lime bar ---- */
html.po-graphite .upd-strip{left:50%;right:auto;bottom:18px;transform:translateX(-50%);width:max-content;max-width:calc(100vw - 24px);
  gap:14px;padding:8px 8px 8px 16px;border-radius:16px;background:#1A1D20;color:#fff;font-weight:600;font-size:14px;
  box-shadow:0 12px 36px rgba(0,0,0,.55),0 0 0 1px rgba(255,255,255,.06);animation:poUpdIn .35s cubic-bezier(.2,.9,.3,1.2) both}
html.po-graphite .upd-strip::before{content:'';width:8px;height:8px;border-radius:50%;background:#B7FF1A;box-shadow:0 0 0 4px rgba(183,255,26,.15);flex:none}
html.po-graphite .upd-strip .btn,html.po-graphite .upd-strip .btn:not(.p):not(.primary){height:36px;border:0;border-radius:11px;background:#B7FF1A;color:#0F1112;font-weight:800;padding:0 14px}
html.po-graphite .upd-strip .btn:not(.p):not(.primary):hover{background:#B7FF1A;filter:brightness(1.06)}
@keyframes poUpdIn{from{opacity:0;transform:translate(-50%,14px)}to{opacity:1;transform:translate(-50%,0)}}
@media (max-width:900px){html.po-graphite .upd-strip{bottom:calc(var(--tab-h) + env(safe-area-inset-bottom) + 10px);padding-bottom:8px}}
@media (prefers-reduced-motion:reduce){html.po-graphite .upd-strip{animation:none}}

/* ---- popups: one calm look for all of them (Wolf: "clean up the other popups on packops too") ---- */
/* standard windows (App.modal): charcoal card, big soft corners, a faint ring instead of a border, no green */
html.po-graphite .modal{background:rgba(0,0,0,.62);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
html.po-graphite .modal .box{background:#1A1D20;border:0;border-radius:20px;box-shadow:0 0 0 1px rgba(255,255,255,.06),0 30px 80px rgba(0,0,0,.6)}
html.po-graphite .mhd,html.po-graphite .mft{background:#1A1D20;border-color:rgba(255,255,255,.06)}
html.po-graphite .mhd{border-radius:20px 20px 0 0}
html.po-graphite .modal .x,html.po-graphite .mhd .x{width:36px;height:36px;min-height:36px;border:0;border-radius:10px;background:#24282C;color:#C9CED2;display:inline-grid;place-items:center}
html.po-graphite .modal .x:hover,html.po-graphite .mhd .x:hover{background:#2E3237;color:#fff}
html.po-graphite .modal .box h2{font-family:var(--font);font-style:normal;text-transform:none;font-weight:800;letter-spacing:-.015em}
@media (max-width:900px){html.po-graphite .modal .box{border-radius:22px 22px 0 0}}

/* what's new / billing / thank-you notices: same card, no lime frame or glow (billing keeps its warn/bad edge) */
html.po-graphite .nw-pop{background:rgba(0,0,0,.62);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
html.po-graphite .nw-pop .bx{background:#1A1D20;border:1px solid transparent;border-radius:22px;padding:26px;box-shadow:0 0 0 1px rgba(255,255,255,.06),0 30px 80px rgba(0,0,0,.6)}
html.po-graphite .nw-pop h2{font-family:var(--font);font-style:normal;text-transform:none;font-weight:800;font-size:24px;letter-spacing:-.02em}
html.po-graphite .nw-pop ul{gap:10px}
html.po-graphite .nw-pop li{padding:10px 12px;border-radius:14px;background:#202427;color:#C9CED2}
html.po-graphite .nw-pop .setup{border:0;border-radius:16px;background:#141618}
html.po-graphite .nw-pop #nwGb{border:0 !important;border-radius:16px;background:rgba(183,255,26,.07) !important}

/* toasts: a small charcoal pill with a coloured dot for good / bad */
html.po-graphite .toast{display:flex;align-items:center;gap:10px;border:0;border-radius:14px;background:#24282C;padding:11px 16px;box-shadow:0 12px 32px rgba(0,0,0,.5)}
html.po-graphite .toast.ok,html.po-graphite .toast.err{border:0;box-shadow:0 12px 32px rgba(0,0,0,.5)}
html.po-graphite .toast.ok::before,html.po-graphite .toast.err::before{content:'';width:8px;height:8px;border-radius:50%;flex:none}
html.po-graphite .toast.ok::before{background:#B7FF1A;box-shadow:0 0 0 4px rgba(183,255,26,.15)}
html.po-graphite .toast.err::before{background:#FF5C5C;box-shadow:0 0 0 4px rgba(255,92,92,.15)}

/* notification bell panel */
html.po-graphite .bellp{background:#1A1D20;border:0;border-radius:18px;box-shadow:0 0 0 1px rgba(255,255,255,.06),0 20px 50px rgba(0,0,0,.6)}

/* ---- loading: neutral grey shimmer (no green), and a slightly softer fade when the page is ready ---- */
html.po-graphite .skel i{background:linear-gradient(100deg,#1A1D20 30%,#24282C 50%,#1A1D20 70%) 0 0/300% 100%;box-shadow:none;border-radius:18px}
html.po-graphite .skel .s{border-radius:8px}
html.po-graphite .main>*{transition:opacity .3s ease-out}
@media (prefers-reduced-motion:reduce){html.po-graphite .main>*{transition:none}}

/* ---- the newer stacked toasts (.tst): charcoal pills, no outlines ---- */
html.po-graphite .tst{background:#24282C;border:0;border-radius:14px;box-shadow:0 12px 32px rgba(0,0,0,.5)}
html.po-graphite .tst.ok,html.po-graphite .tst.err{border:0}
html.po-graphite .tst>i{background:#B7FF1A;color:#0F1112}
html.po-graphite .tst.err>i{background:#FF5C5C;color:#fff}
html.po-graphite .tst .bar{background:#B7FF1A;opacity:.5;border-radius:0 0 14px 14px}

/* ---- top bar layout (same as wolfstyle.fun): icon cluster above the side menu, logo, Viewing + live in the middle,
   stream switches + round icons on the right ---- */
html.po-graphite .tcl{display:none}
@media (min-width:901px){
  html.po-graphite .tcl{flex:none;width:222px;height:46px;display:flex;align-items:center;gap:4px;padding:0 6px;border-radius:16px;background:#1A1D20}
  html.po-graphite .tcl a{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;transition:background .15s}
  html.po-graphite .tcl a:hover{background:#24282C}
  html.po-graphite .tcl a.on{background:#2A2E33}
  html.po-graphite .tcl a svg,html.po-graphite .tcl a .navart{width:22px;height:22px}
  html.po-graphite .topbar .tcl + .logo{width:auto;height:auto;padding:0 6px 0 10px;background:none;border-radius:0}
}
html.po-graphite .tmid{display:flex;align-items:center;gap:8px;min-width:0}
/* search: a round icon like the others (Ctrl+K still works) */
html.po-graphite .topbar .pkbtn{min-width:0;width:40px;padding:0;justify-content:center;background:transparent}
html.po-graphite .topbar .pkbtn span,html.po-graphite .topbar .pkbtn kbd{display:none}
html.po-graphite .topbar .pkbtn:hover{background:#24282C}

/* ---- foldable side menu (graphite, desktop): the ☰ in the top bar folds it to an icon strip; hover an icon for its name ---- */
html.po-graphite .tcl .tmenu{width:40px;height:40px;display:grid;place-items:center;border:0;border-radius:12px;background:transparent;color:#C9CED2;cursor:pointer;margin-right:auto}
html.po-graphite .tcl .tmenu:hover{background:#24282C;color:#fff}
html.po-graphite .tcl{transition:width .2s ease}
html.po-graphite .layout{transition:grid-template-columns .2s ease}
@media (min-width:901px){
  html.po-graphite.po-side-mini .layout{grid-template-columns:78px minmax(0,1fr)}
  html.po-graphite.po-side-mini .tcl{width:58px}
  html.po-graphite.po-side-mini .tcl a{display:none}
  html.po-graphite.po-side-mini .sidenav{padding:12px 8px;overflow-x:hidden}
  html.po-graphite.po-side-mini .sidenav a{justify-content:center;padding:10px 0;gap:0}
  html.po-graphite.po-side-mini .sidenav a .nl{display:none}
  html.po-graphite.po-side-mini .sidenav a .nbadge{position:absolute;top:4px;right:6px}
  html.po-graphite.po-side-mini .sidenav a{position:relative}
  html.po-graphite.po-side-mini .sidenav .sect,
  html.po-graphite.po-side-mini .sidenav .live-sites,
  html.po-graphite.po-side-mini .sidenav .side-check,
  html.po-graphite.po-side-mini .sidenav .side-earn,
  html.po-graphite.po-side-mini .sidenav .side-partner,
  html.po-graphite.po-side-mini .sidenav a.side-powered{display:none}
  html.po-graphite.po-side-mini .sidenav .sect + a{margin-top:10px}
}

/* ---- LIVE SITE switcher (overlays follow): charcoal tiles; the live one keeps its casino colour as a ring + pill ---- */
html.po-graphite .live-sites{border-bottom:0;margin-bottom:10px}
html.po-graphite .ls-grid{gap:8px;padding:0 4px}
html.po-graphite .ls-flip{margin:0 4px 8px;border:0;border-radius:12px;background:#17191B;padding:4px}html.po-graphite .ls-flip button{border-radius:9px}html.po-graphite .ls-flip button.on{background:#2A2F33;box-shadow:none;color:#fff}
html.po-graphite .ls{background:#202427;border:0;border-radius:14px;min-height:54px;box-shadow:none}
html.po-graphite .ls:hover{background:#262A2E}
html.po-graphite .ls.on{background:color-mix(in srgb,var(--ls) 12%,#202427);box-shadow:0 0 0 2px var(--ls) inset}
html.po-graphite .ls.on:after{top:-8px;right:-4px;border:0;border-radius:999px;padding:2px 7px;background:var(--ls);color:#0F1112;font-family:var(--font);font-weight:800;letter-spacing:.08em}

/* ---- phones, like wolfstyle.fun (2026-11-16, Wolf: "update the mobile as well .. the bottom pills and the popups should fit
   properly"): two floating charcoal pills instead of the full-width tab bar; chat lives in the right pill (no bubble) ---- */
@media (max-width:900px){
  html.po-graphite .tabbar.tpills{display:flex;justify-content:space-between;align-items:center;gap:10px;left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom));
    height:auto;padding:0;background:transparent;border:0;box-shadow:none;pointer-events:none}
  html.po-graphite .tpills .tp{pointer-events:auto;display:flex;align-items:center;gap:2px;padding:5px;border-radius:999px;background:#1A1D20;
    box-shadow:0 0 0 1px rgba(255,255,255,.06),0 12px 32px rgba(0,0,0,.55)}
  html.po-graphite .tpills a{position:relative;width:50px;height:46px;border-radius:999px;display:grid;place-items:center;color:#C9CED2;padding:0;gap:0;font-size:0}
  html.po-graphite .tpills a::before{display:none}
  html.po-graphite .tpills a .tl{display:none}
  html.po-graphite .tpills a svg,html.po-graphite .tpills a .navart{width:24px;height:24px}
  html.po-graphite .tpills a:active{background:#24282C}
  html.po-graphite .tpills a.on{background:#2C3136;color:#fff}
  html.po-graphite .tpills a .dot{top:4px;right:4px}
  html.po-graphite .tpills .cdot{position:absolute;top:9px;right:11px;width:8px;height:8px;border-radius:50%;background:#B7FF1A;box-shadow:0 0 0 2px #1A1D20}
  html.po-graphite .tcfab{display:none !important}
  /* the page scrolls clear of the pills */
  html.po-graphite .main{padding-bottom:calc(96px + env(safe-area-inset-bottom))}
}

/* ---- popups fit the phone: never taller than the visible screen (dvh skips the browser bars), compact padding,
   footer buttons always reachable ---- */
@media (max-width:640px){
  html.po-graphite .modal .box{max-height:calc(100dvh - 12px);--mp:16px;padding:var(--mp) var(--mp) calc(var(--mp) + env(safe-area-inset-bottom));border-radius:22px 22px 0 0}
  html.po-graphite .modal .box>.mhd{padding:14px var(--mp) 12px}
  html.po-graphite .nw-pop{align-items:flex-end;padding:0}
  html.po-graphite .nw-pop .bx{width:100%;max-height:calc(100dvh - 12px);overflow:auto;padding:20px 16px calc(18px + env(safe-area-inset-bottom));border-radius:22px 22px 0 0}
  html.po-graphite .nw-pop h2{font-size:20px}
  html.po-graphite .nw-pop .btnrow{position:sticky;bottom:-18px;background:#1A1D20;padding:12px 0 2px;margin-top:8px}
  html.po-graphite .nw-pop .btnrow .btn{flex:1}
  html.po-graphite .bellp{position:fixed;left:10px;right:10px;top:calc(var(--nav-h) + 6px);width:auto;max-width:none;max-height:calc(100dvh - var(--nav-h) - 120px);overflow:auto}
}

/* phone top bar: fit in one row (it ran 70px past a 375px screen) */
@media (max-width:640px){
  html.po-graphite .topbar{gap:6px;padding:0 8px}
  html.po-graphite .topbar .grow{display:none}
  html.po-graphite .tmid{flex:1;min-width:0}
  html.po-graphite .tmid .live-pill{display:none}
  html.po-graphite .switch{min-width:0;flex:1;padding:0 2px 0 6px}
  html.po-graphite .switch label{display:none}
  html.po-graphite .switch select{min-width:0;width:100%;max-width:150px;text-overflow:ellipsis}
  html.po-graphite .botsw,html.po-graphite .giftchip{width:36px;padding:0;justify-content:center;flex:none}
  html.po-graphite .bell,html.po-graphite .topbar .pkbtn{width:36px;flex:none}
}
@media (max-width:400px){ html.po-graphite .topbar .pkbtn{display:none} }
