/* BEYOU Studio: coherent, readable application surfaces */
:root { color-scheme: light; --be-black:#10100f; --be-lime:#c7ff4a; --be-text:#20251c; --be-muted:#616b59; --be-border:#dce3d6; --be-canvas:#f3f5f0; --be-card:#fff; --be-shadow:0 8px 28px rgba(25,35,18,.055); --hg-ink:#20251c; --hg-muted:#616b59; --hg-line:#dce3d6; --hg-bg:#f3f5f0; --hg-accent:#9acb30; --hg-deep:#304d23; --hg-radius:16px; --hg-shadow:0 8px 28px rgba(25,35,18,.055); --ink:#20251c; --muted:#616b59; --line:#dce3d6; --paper:#f3f5f0; --bg:#f3f5f0; --surface:#fff; --green:#304d23; --green2:#ebf4e0; --lime:#c7ff4a; --orange:#9acb30 }
body { color:var(--be-text); background:var(--be-canvas); }
body:has(.studio-shell-main) .rail, .app-shell>.rail, .sidebar { background:#10100f!important; border-color:#343b30!important; color:#f6f8f1!important; box-shadow:4px 0 28px rgba(0,0,0,.08)!important; scrollbar-color:#555e4c transparent }
body:has(.studio-shell-main) .brand, .app-shell .brand, .sidebar .brand { color:#f7f8f4!important; display:flex; align-items:center; gap:10px; }
.brand img.brand-mark { width:108px!important; height:48px!important; object-fit:contain; object-position:left center; background:none!important; border-radius:0!important; flex:none; }
.brand>span { font-size:11px!important; letter-spacing:.12em!important; text-transform:uppercase; color:#bec8b6!important; }
.brand small,.brand-dot { display:none!important }
body:has(.studio-shell-main) .rail-title,.rail-title,.nav-label { color:#a4b09b!important; letter-spacing:.13em }
body:has(.studio-shell-main) .rail-link,.rail-link,.sidebar .nav,.sidebar .account-nav-link { color:#d4dccf!important; border:1px solid transparent; border-radius:11px; }
body:has(.studio-shell-main) .rail-link:hover,.rail-link:hover,.sidebar .nav:hover,.sidebar .account-nav-link:hover { background:#282f24!important; color:#fff!important }
body:has(.studio-shell-main) .rail-link.active,.rail-link.active,.rail-link[aria-current=page],.sidebar .nav.active { background:var(--be-lime)!important; color:#18200f!important; border-color:var(--be-lime)!important; font-weight:700; }
body:has(.studio-shell-main) .rail-foot,.rail-foot,.sidebar-foot { color:#acb8a5!important; border-color:#343b30!important }
.rail-foot i,.status-dot,.online-dot { background:#c7ff4a!important }
.studio-shell-main,#studio-frames { background:var(--be-canvas)!important }
.hg-refined .main,.main { min-width:0 }
.hg-refined .topbar,.topbar { border-color:var(--be-border); color:var(--be-muted) }
.hg-refined :is(.hero,.page-head),:is(.hero,.page-head) { gap:20px }
.hg-refined :is(.hero h1,.page-head h1),:is(.hero h1,.page-head h1) { color:var(--be-text); letter-spacing:-.04em; line-height:1.1 }
.hg-refined :is(.hero p,.page-head p,.ws-section-head p,.ig-head p,.of-intro p) { color:var(--be-muted); line-height:1.6 }
.hg-refined :is(.eyebrow,.rail-title),.eyebrow { color:#587737!important; letter-spacing:.12em }
.hg-refined :is(.hero h1 span,.page-head h1 span),.hero h1 span { color:#94c52e!important }
.hg-refined :is(.panel,.card,.ws-metric,.ws-studio-card,.users-item,.of-order,.ig-creator-card),:is(.panel,.card,.ws-metric,.ws-studio-card,.ig-creator-card) { background:#fff; border:1px solid var(--be-border); border-radius:16px; box-shadow:var(--be-shadow) }
.hg-refined :is(.ws-metric,.ws-studio-card) { padding:22px; }
.hg-refined :is(.ws-metric span,.ws-studio-card span) { font-size:13px; font-weight:600; color:#5e6a59 }
.hg-refined :is(.ws-metric strong,.ws-studio-card strong) { font-size:clamp(23px,2vw,30px); color:#202b1a; letter-spacing:-.04em }
.hg-refined :is(.ws-section-head h2,.of-intro h2,.ig-head h2,.account-wrap h2){color:#202b1a;letter-spacing:-.03em}
.hg-refined :is(.ws-panel,.of-filters,.of-kpi-toolbar,.ig-card){padding:22px}
.hg-refined :is(.button.primary,button.primary),.button:not(.secondary),.btn-primary { background:#c7ff4a!important; border-color:#c7ff4a!important; color:#192210!important; border-radius:10px; }
.hg-refined :is(.button.secondary,button.secondary),.button.secondary { background:#edf2e8; border-color:#d9e2d2; color:#304523; border-radius:10px; }
.hg-refined :is(.button,button.primary,button.secondary){min-height:42px}
.hg-refined :is(.of-tabs,.ig-tabs,.discord-tabs){max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin}
.hg-refined :is(.of-tabs,.ig-tabs){background:#e9eee5;border:1px solid #d9e2d3;border-radius:13px;padding:5px}
.hg-refined :is(.of-tabs,.ig-tabs) button{border-radius:9px;min-height:42px;white-space:nowrap}
.hg-refined :is(.of-tabs,.ig-tabs) button[aria-pressed=true]{background:white;color:#263b1e;box-shadow:0 2px 8px #00000012}
.hg-refined :is(.of-main input:not([type=checkbox]):not([type=radio]):not([type=file]),.of-main select,.of-main textarea,.ig-main input:not([type=checkbox]):not([type=radio]):not([type=file]),.ig-main select,.ig-main textarea){border:1px solid #d5dfd0;border-radius:10px;background:#fff;color:#20291c;min-height:42px}
.ig-avatar{background:#e8f6d2!important;color:#416321!important}
.hg-refined .ws-table-wrap{border:1px solid var(--be-border);border-radius:14px;overflow:auto;background:#fff}
.hg-refined .ws-table{width:100%;border-collapse:collapse}
.hg-refined :is(.ws-table th,.ws-table td){padding:12px 14px;border-bottom:1px solid #edf1ea}
.hg-refined .ws-table th{color:#61715a}
.hg-refined .account-wrap .card{border:1px solid var(--be-border);border-radius:16px}
:where(a,button,input,select,textarea):focus-visible{outline:3px solid #8ebd36!important;outline-offset:2px}
.login-wrap{max-width:450px!important;margin:8vh auto!important}
body:has(.login-wrap){background:#10100f!important;color:#f7f5ed}
.login-wrap .card{background:#1b1d19!important;color:#f7f5ed;border:1px solid #383e33!important;padding:36px!important;box-shadow:0 24px 70px #0005!important}
.login-wrap .be-login-logo{display:block;width:150px;height:60px;object-fit:contain;object-position:left center;margin-bottom:20px}
.login-wrap .muted{color:#b5beb0}
.login-wrap input{background:#272c25;color:#fff;border:1px solid #4a5345}
.login-wrap button{background:#c7ff4a;color:#172010;width:100%;padding:13px}
@media(max-width:850px){.hg-refined .of-order-list{grid-template-columns:1fr}.hg-refined :is(.of-filters,.of-kpi-toolbar){flex-wrap:wrap}}
@media(max-width:760px){.brand img.brand-mark{width:74px!important;height:36px!important}.login-wrap .card{padding:24px!important}.main{min-width:0}}
@media(max-width:600px){.hg-refined :is(.hero,.page-head){align-items:flex-start;flex-wrap:wrap}.hg-refined :is(.ws-panel,.of-filters,.of-kpi-toolbar,.ig-card,.of-order-list>.panel){padding:16px}.hg-refined :is(.of-tabs,.ig-tabs){width:100%;min-width:0}.hg-refined :is(.of-tabs,.ig-tabs) button{flex:1;padding:9px 12px}.hg-refined :is(.ws-table th,.ws-table td){padding:10px 12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition-duration:0s!important}}

/* Schermata di accesso BEYOU: il modulo esistente resta invariato. */
body.be-auth{min-height:100vh;display:grid;grid-template-columns:minmax(300px,1fr) minmax(390px,520px);align-items:center;gap:clamp(32px,7vw,110px);padding:clamp(24px,5vw,76px);background:#10100f!important;color:#f6f8f1;position:relative;overflow-x:hidden;font-family:'DM Sans',system-ui,sans-serif}
body.be-auth:before{content:"";position:fixed;z-index:0;width:min(56vw,760px);aspect-ratio:1;top:-36%;left:-14%;border-radius:50%;background:radial-gradient(circle,#c7ff4a18,transparent 66%);pointer-events:none}
.be-auth-brand{position:relative;z-index:1;max-width:650px;align-self:center}
.be-auth-brand img{display:block;width:clamp(165px,20vw,240px);height:auto;max-height:100px;object-fit:contain;object-position:left center;margin:0 0 clamp(36px,7vh,76px)}
.be-auth-eyebrow{font-size:12px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:#c7ff4a;margin-bottom:20px}
.be-auth-brand h2{font-size:clamp(44px,5.7vw,78px);line-height:1.04;letter-spacing:-.055em;margin:0 0 22px;font-weight:750;max-width:11ch}
.be-auth-brand h2 span{color:#c7ff4a}
.be-auth-brand p{font-size:16px;line-height:1.7;color:#b8c1b1;max-width:420px;margin:0}
body.be-auth main{position:relative;z-index:1;width:100%;max-width:520px;margin:0!important;padding:0!important}
body.be-auth :is(.login-wrap,.account-wrap){width:100%;max-width:520px}
body.be-auth :is(.card,.login-card){background:#1b1e19!important;border:1px solid #3a4235!important;color:#f6f8f1!important;border-radius:24px!important;padding:clamp(26px,3.3vw,44px)!important;box-shadow:0 28px 70px #0006!important}
body.be-auth h1{color:#f7f9f4;font-size:clamp(28px,2.7vw,38px);letter-spacing:-.035em;margin:0 0 10px}
body.be-auth :is(p,.muted,small){color:#b6c0af;line-height:1.55}
body.be-auth label{display:block;color:#e0e7dc;font-size:14px;font-weight:650;margin:16px 0}
body.be-auth :is(input:not([type=checkbox]):not([type=radio]),select){width:100%;min-height:48px;background:#262c23!important;border:1px solid #485343!important;color:#fff!important;border-radius:11px!important;padding:12px 14px;box-sizing:border-box}
body.be-auth input::placeholder{color:#a5b19f}
body.be-auth :is(button[type=submit],form button:not([type=button])){min-height:50px;width:100%;background:#c7ff4a!important;color:#19220f!important;border:0!important;border-radius:11px!important;font-size:15px;font-weight:750;margin-top:10px}
body.be-auth :is(input,button,a):focus-visible{outline:3px solid #c7ff4a;outline-offset:3px}
body.be-auth :is(.error,[role=alert]){color:#ffaaa3}
@media(max-width:800px){body.be-auth{display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:32px;padding:28px 20px 44px}.be-auth-brand img{width:145px;max-height:70px;margin-bottom:28px}.be-auth-brand h2{font-size:clamp(36px,9vw,52px);max-width:15ch;margin-bottom:12px}.be-auth-brand p{font-size:14px}.be-auth-eyebrow{margin-bottom:12px}body.be-auth main{max-width:100%}}


*,*::before,*::after{box-sizing:border-box}
body.be-auth{min-height:100svh!important;grid-template-columns:minmax(0,1fr) minmax(320px,440px)!important;gap:clamp(22px,4vw,60px)!important;padding:clamp(20px,3vw,42px)!important;align-items:center!important}
body.be-auth .be-auth-brand img{width:clamp(145px,14vw,190px)!important;max-height:70px!important;margin-bottom:clamp(20px,4vh,40px)!important}
body.be-auth .be-auth-brand h2{font-size:clamp(38px,4vw,58px)!important;margin-bottom:12px!important;line-height:1.05!important}
body.be-auth .be-auth-brand p{font-size:15px!important;line-height:1.45!important}
body.be-auth .be-auth-eyebrow{margin-bottom:12px!important}
body.be-auth :is(.card,.login-card){padding:clamp(20px,2.4vw,30px)!important;border-radius:20px!important}
body.be-auth h1{font-size:clamp(25px,2.4vw,32px)!important;margin-bottom:6px!important}
body.be-auth label{margin:10px 0!important;font-size:13px!important}
body.be-auth :is(input:not([type=checkbox]):not([type=radio]),select){min-height:42px!important;padding:9px 12px!important}
body.be-auth :is(button[type=submit],form button:not([type=button])){min-height:44px!important;margin-top:6px!important}
@media(max-height:760px) and (min-width:801px){body.be-auth{padding:16px 28px!important}body.be-auth .be-auth-brand img{margin-bottom:20px!important}body.be-auth :is(.card,.login-card){padding:20px!important}body.be-auth label{margin:7px 0!important}}
@media(max-width:800px){body.be-auth{display:flex!important;flex-direction:column!important;justify-content:center!important;gap:18px!important;padding:20px!important}body.be-auth .be-auth-brand img{width:135px!important;height:auto!important;margin:0 0 12px!important}body.be-auth .be-auth-brand h2{font-size:32px!important;max-width:none!important;margin:0 0 6px!important}body.be-auth .be-auth-brand p{font-size:13px!important;line-height:1.3!important}body.be-auth .be-auth-eyebrow{font-size:10px!important;margin-bottom:6px!important}body.be-auth :is(.card,.login-card){padding:20px!important}}
