:root{
--ink:#152033;--muted:#66788a;--line:#e4e9f0;--line-strong:#cfd8e3;
--surface:#ffffff;--bg:#f4f1ea;--paper:#fffdf8;
--nav:#0b1220;--nav-2:#121c2e;
--accent:#c9a227;--accent-strong:#a78412;--accent-soft:#f8efd4;
--teal:#0f766e;--teal-soft:#e6f5f2;
--danger:#b42318;--danger-soft:#fde8e6;--warning:#b54708;--warning-soft:#fff4e5;
--ok:#087f5b;--ok-soft:#e4f7ef;--focus:#ead79a;
--shadow:0 18px 40px rgba(18,28,46,.08);--radius:18px}
*{box-sizing:border-box}
html,body{margin:0}
body{font-family:"PingFang SC","Noto Sans SC",Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:
radial-gradient(900px 360px at 0% -8%,#efe3c4 0%,transparent 55%),
radial-gradient(800px 320px at 100% 0%,#dce8e6 0%,transparent 50%),
var(--bg);color:var(--ink);line-height:1.6;font-size:15px}
a{color:#8a6d12}
a:hover{color:var(--accent-strong)}
.site-top{position:sticky;top:0;z-index:30;background:rgba(11,18,32,.94);backdrop-filter:blur(16px);color:#fff;padding:14px 28px;display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap;border-bottom:1px solid rgba(255,255,255,.08)}
.site-top .brand,.brand-block,.brand{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none}
.brand-mark{width:36px;height:36px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(180deg,#e8c55a,#c9a227);color:#1a1404;font-size:11px;font-weight:800;letter-spacing:.04em}.brand-logo{width:150px;height:44px;object-fit:contain;display:block}.top .brand-logo{width:110px;height:38px}.login-logo{width:220px;height:auto;margin:0 auto 12px}
.top b,.brand{font-size:15px;letter-spacing:.01em}
.brand-sub,.top .brand-sub{display:block;color:#9aa8bb;font-size:12px;font-weight:500;margin-top:1px}
.site-top nav{display:flex;flex-wrap:wrap;gap:6px}
.site-top nav a{color:#d7e0ec;text-decoration:none;padding:8px 12px;border-radius:999px;font-size:13px}
.site-top nav a:hover{background:rgba(255,255,255,.1);color:#fff}
.top{position:fixed;left:0;top:0;bottom:0;width:248px;z-index:40;background:linear-gradient(180deg,#0b1220,#151f33);color:#fff;padding:22px 16px;display:flex;flex-direction:column;gap:18px;box-shadow:12px 0 40px rgba(11,18,32,.18)}
.top-nav{display:flex;flex-direction:column;gap:4px}
.top a{color:#c9d4e3;text-decoration:none;padding:10px 12px;border-radius:10px;font-size:14px}
.top a:hover{background:rgba(255,255,255,.08);color:#fff}
.top a.logout{margin-top:auto;background:rgba(255,255,255,.06)}
body:has(.top) .wrap{margin-left:248px;max-width:none;padding:28px 32px 72px}
.wrap{max-width:1180px;margin:0 auto;padding:28px 24px 72px}
.wrap>h2,.page-head h2{font-size:28px;line-height:1.2;margin:0 0 6px;letter-spacing:.01em}
.page-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-end;flex-wrap:wrap;margin:0 0 20px}
.page-head p{margin:0;max-width:720px}
.card{background:var(--paper);border:1px solid rgba(201,162,39,.14);border-radius:var(--radius);padding:22px;margin:14px 0;box-shadow:var(--shadow)}
.card h3{font-size:16px;margin:0 0 12px}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
.metric{font-size:32px;font-weight:760;letter-spacing:.01em}.pnl{font-variant-numeric:tabular-nums;font-weight:700}.pnl.positive{color:#087f5b}.pnl.negative{color:#b42318}.pnl.zero{color:#66788a}.pnl.drawdown{color:#b54708}
.metric.small{font-size:20px;line-height:1.35}
.metric-card{background:linear-gradient(180deg,#fffdf8,#f7f3ea)}
.broker-mini-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin:14px 0 20px}.broker-mini{display:block;text-decoration:none;color:#f8fafc;background:linear-gradient(135deg,#120d09,#0b1020);border:1px solid rgba(201,162,39,.45);border-radius:16px;padding:16px 20px;text-align:center;box-shadow:0 12px 34px rgba(0,0,0,.14);transition:transform .16s ease,border-color .16s ease}.broker-mini:hover{transform:translateY(-2px);border-color:#f4c542;color:#fff}.broker-mini b{display:block;font-size:18px;color:#f7d36a;margin-bottom:4px}.broker-mini p{margin:0;color:#f7d36a;font-weight:800}.broker-mini.exness{background:linear-gradient(135deg,#061a13,#07111d);border-color:rgba(40,185,129,.45)}.broker-mini.exness b,.broker-mini.exness p{color:#83f1c7}.broker-mini.vt{background:linear-gradient(135deg,#07121d,#061928);border-color:rgba(34,211,238,.42)}.broker-mini.vt b,.broker-mini.vt p{color:#74e6ff}.leopard-hero{background:linear-gradient(135deg,#101827 0%,#111827 45%,#201509 100%);color:#fff;border:1px solid rgba(201,162,39,.26)}.leopard-hero h1{color:#fff}.leopard-hero p{color:#dbe4ef}.leopard-hero .kicker{background:rgba(244,197,66,.14);color:#f7d36a}.leopard-hero .hero-panel{background:rgba(3,7,18,.48);border:1px solid rgba(244,197,66,.18)}
pre{white-space:pre-wrap;background:#121c2e;color:#eef6fb;padding:14px;border-radius:14px;overflow:auto}
.login-body{min-height:100vh;display:grid;place-items:center;padding:32px 16px;background:
radial-gradient(700px 280px at 20% 0%,#e8d7a4 0%,transparent 60%),
#0b1220}
.login{width:min(440px,100%);margin:0;background:#fffdf8}
.login h2{margin:0 0 8px}
.hero{background:
linear-gradient(135deg,rgba(11,18,32,.92),rgba(18,28,46,.78)),
url("data:image/svg+xml,%3Csvg width='160' height='160' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 80h160M80 0v160' stroke='%23c9a227' stroke-opacity='.12'/%3E%3C/svg%3E");
background-size:cover,80px 80px;color:#fff;border-radius:28px;padding:48px 36px;margin:10px 0 22px;box-shadow:var(--shadow);position:relative;overflow:hidden;display:grid;grid-template-columns:1.4fr .8fr;gap:24px;align-items:center}
.hero:after{content:"";position:absolute;right:-70px;top:-80px;width:260px;height:260px;border-radius:50%;background:rgba(201,162,39,.18)}
.hero h1{font-size:42px;margin:0 0 12px;position:relative;z-index:1}
.hero p{max-width:680px;line-height:1.75;position:relative;z-index:1;color:#e8e0cc}
.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px;position:relative;z-index:1}.cta-actions{gap:16px;margin-top:30px}.hero-cta{display:flex;align-items:center;gap:12px;min-width:220px;padding:16px 20px;border-radius:18px;text-decoration:none;font-weight:850;box-shadow:0 18px 42px rgba(0,0,0,.28);border:1px solid rgba(255,255,255,.18);transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}.hero-cta:hover{transform:translateY(-2px);box-shadow:0 24px 56px rgba(0,0,0,.34)}.hero-cta.primary{background:linear-gradient(180deg,#f7d36a,#c9a227);color:#1a1404}.hero-cta.secondary{background:rgba(255,255,255,.10);color:#fff;border-color:rgba(247,211,106,.45)}.hero-cta.secondary:hover{background:rgba(247,211,106,.14);color:#fff}.hero-cta b{display:block;font-size:18px;line-height:1.15}.hero-cta small{display:block;font-size:12px;font-weight:650;opacity:.82;margin-top:3px}.cta-icon{width:36px;height:36px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;background:rgba(0,0,0,.16);font-size:20px;flex:0 0 auto}.hero-cta.secondary .cta-icon{background:rgba(247,211,106,.18)}
.hero-panel{position:relative;z-index:1;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);border-radius:18px;padding:18px}
.hero-panel b{display:block;font-size:28px;margin:4px 0 2px}
.notice-body{white-space:pre-wrap;line-height:1.8}
.steps{counter-reset:s}
.step{position:relative;padding-left:52px;background:#fff}
.step:before{counter-increment:s;content:counter(s);position:absolute;left:16px;top:20px;background:var(--accent);color:#1a1404;border-radius:50%;width:28px;height:28px;text-align:center;line-height:28px;font-weight:800}
.release-meta{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px}
.release-meta div{background:#f7f4ec;border:1px solid var(--line);border-radius:14px;padding:12px}
.hash{font-family:ui-monospace,Menlo,monospace;word-break:break-all}
.admin-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;align-items:end}
.full{grid-column:1/-1}
.admin-form label{display:flex;flex-direction:column;gap:5px;color:#5c6b7c;font-size:13px;font-weight:600}
.site-footer{margin-top:32px;padding-top:18px;border-top:1px solid rgba(18,28,46,.08);color:var(--muted);font-size:13px}
.empty{padding:28px;text-align:center;color:var(--muted)}
details.card summary{cursor:pointer}

.user-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(420px,1fr));gap:16px;margin:16px 0}.user-card{background:#fffdf8;border:1px solid rgba(201,162,39,.18);border-radius:20px;padding:18px;box-shadow:var(--shadow)}.user-top{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:14px}.user-title{min-width:0}.user-id{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;color:#66788a;word-break:break-all}.user-name{display:inline-block;font-size:18px;font-weight:850;color:#152033;text-decoration:none;margin-top:3px}.user-status{display:flex;flex-direction:column;gap:6px;align-items:flex-end}.info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0}.info-box{background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px;min-height:88px}.info-label{display:block;color:#66788a;font-size:12px;font-weight:750;margin-bottom:6px}.info-value{font-size:13px;color:#152033}.info-value b{font-size:16px}.ops-panel{background:#f8f4eb;border:1px solid rgba(201,162,39,.18);border-radius:16px;padding:12px;margin-top:12px}.ops-panel h4{margin:0 0 10px;font-size:13px;color:#5c6b7c}.ops-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:8px 0}.ops-row form{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0}.ops-row input,.ops-row select{min-height:36px;padding:7px 10px}.ops-row button{min-height:36px;padding:7px 12px}.empty-state{text-align:center;padding:32px;color:#66788a}.license-table{margin-top:10px}.license-table table{font-size:13px}@media(max-width:760px){.user-grid{grid-template-columns:1fr}.info-grid{grid-template-columns:1fr}.user-top{flex-direction:column}.user-status{align-items:flex-start}}.admin-card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(380px,1fr));gap:16px;margin:16px 0}.admin-card{background:#fffdf8;border:1px solid rgba(201,162,39,.18);border-radius:20px;padding:18px;box-shadow:var(--shadow)}.admin-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:12px}.admin-card-title{min-width:0}.admin-card-title b{font-size:18px}.admin-id{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;color:#66788a;word-break:break-all}.mini-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.compact-form{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0}.compact-form input,.compact-form select{min-height:36px;padding:7px 10px}.compact-form button{min-height:36px;padding:7px 12px}.log-card{display:grid;grid-template-columns:160px 1fr;gap:10px;align-items:start}.code-pill{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;background:#f4f6f8;border:1px solid var(--line);border-radius:8px;padding:2px 7px;display:inline-block}.file-hash{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px;word-break:break-all;color:#5c6b7c}.admin-list{display:grid;gap:12px}.admin-list .admin-card{margin:0}@media(max-width:760px){.admin-card-grid{grid-template-columns:1fr}.admin-card-head{flex-direction:column}.log-card{grid-template-columns:1fr}}
body:has(.license-table) .card:has(>.license-table){display:none}
@media(max-width:980px){
.hero{grid-template-columns:1fr;padding:32px 20px}
.hero h1{font-size:30px}
.top{position:static;width:auto;flex-direction:row;flex-wrap:wrap;align-items:center;padding:14px}
.top-nav{flex-direction:row;flex-wrap:wrap}
body:has(.top) .wrap{margin-left:0;padding:18px 14px 48px}
.wrap{padding:18px 14px 48px}
.brand-sub{display:none}
.card{padding:16px}
.action-row form{width:100%}
button,.btn{min-height:42px}
th,td{padding:9px 10px}
}
.download-page{max-width:960px}.download-page h1{font-size:34px;margin:0 0 8px}.download-card{display:flex;align-items:center;gap:24px;padding:30px;margin-top:8px}.download-icon{width:72px;height:72px;display:grid;place-items:center;border-radius:18px;background:#0B1220;color:#FFD978;font-size:42px;flex:0 0 auto}.download-copy h2{margin:0;font-size:22px}.download-version{margin:4px 0 2px;font-size:18px;font-weight:700;color:#111827}.download-button{margin-top:14px;min-width:180px;text-align:center}.download-note{margin:14px 0 0;color:#667085;font-size:13px}.download-help{margin-top:18px}.download-help ol{margin:8px 0 18px;padding-left:22px;color:#344054}.download-help li{margin:6px 0}@media(max-width:640px){.download-card{align-items:flex-start;gap:16px;padding:20px}.download-icon{width:56px;height:56px;border-radius:14px;font-size:32px}.download-page h1{font-size:28px}.download-copy{min-width:0}.download-button{width:100%;min-width:0}}
/* Admin-only visual refinement for the previous production baseline. */
body:has(.top){background:#F4F6FA;color:#111827;overflow-x:hidden}
body:has(.top) .top{background:#0B1220;border-right:1px solid rgba(255,255,255,.08);box-shadow:8px 0 26px rgba(15,23,42,.12);padding:22px 14px;gap:20px}
body:has(.top) .top .brand-block{padding:4px 8px 18px;border-bottom:1px solid rgba(255,255,255,.1);gap:12px}
body:has(.top) .top .brand-logo{width:46px;height:46px;border-radius:10px}
body:has(.top) .top .brand-block b{font-size:17px;color:#F7F8FC}
body:has(.top) .top .brand-sub{color:#98A2B3;font-size:12px;margin-top:3px}
body:has(.top) .top-nav{gap:5px;overflow:auto;padding-right:2px}
body:has(.top) .top-nav a{color:#CBD5E1;padding:11px 12px;border-radius:9px;font-size:14px;line-height:1.35;transition:background .15s ease,color .15s ease}
body:has(.top) .top-nav a[href$="/admin/lot-policies"]{display:none}
body:has(.top) .top-nav a:hover,body:has(.top) .top-nav a:focus{background:#17243D;color:#FFD978}
body:has(.top) .top-nav a.logout{margin-top:12px;border:1px solid rgba(255,255,255,.1);background:transparent;color:#FCA5A5}
body:has(.top) .wrap{max-width:1440px;padding:30px 36px 72px}
body:has(.top) .page-head{padding-bottom:18px;border-bottom:1px solid #E5E7EB;margin-bottom:22px}
body:has(.top) .page-head h2{font-size:29px;color:#111827;margin-bottom:7px}
body:has(.top) .page-head .kicker{color:#B98520;font-size:12px;font-weight:700;letter-spacing:.08em}
body:has(.top) .card,body:has(.top) .admin-card,body:has(.top) .user-card{background:#fff;border:1px solid #E5E7EB;border-radius:14px;box-shadow:0 5px 18px rgba(15,23,42,.05);padding:22px}
body:has(.top) .card h3,body:has(.top) .admin-card h3{color:#111827}
body:has(.top) .admin-card-grid,body:has(.top) .user-grid{gap:18px}
body:has(.top) .info-grid{gap:10px}
body:has(.top) .info-box{background:#F8FAFC;border:1px solid #E5E7EB;border-radius:10px;padding:12px;min-height:84px}
body:has(.top) .info-label{color:#667085;font-size:11px;font-weight:700;letter-spacing:.02em}
body:has(.top) .info-value{color:#1D2939;font-size:13px}
body:has(.top) .ops-panel{background:#F8FAFC;border:1px solid #E5E7EB;border-radius:11px;padding:14px;margin-top:14px}
body:has(.top) .ops-panel h4{color:#344054;margin-bottom:10px}
body:has(.top) input,body:has(.top) select,body:has(.top) textarea{min-height:42px;border:1px solid #D0D5DD;border-radius:9px;background:#fff;color:#1D2939;padding:9px 11px}
body:has(.top) button,body:has(.top) .btn{min-height:42px;border-radius:9px;background:#D7A73B;border:1px solid #D7A73B;color:#111827;font-weight:700;padding:9px 15px}
body:has(.top) button:hover,body:has(.top) .btn:hover{background:#B98520;border-color:#B98520;color:#fff}
body:has(.top) button.secondary,body:has(.top) .secondary{background:#fff;border-color:#D0D5DD;color:#344054}
body:has(.top) button.danger,body:has(.top) .danger{background:#fff;border-color:#DC4C4C;color:#B42318}
body:has(.top) table{border-collapse:separate;border-spacing:0;border:1px solid #E5E7EB;border-radius:10px;overflow:hidden;background:#fff}
body:has(.top) th{background:#F8FAFC;color:#475467;font-size:12px;font-weight:700;text-align:left}
body:has(.top) th,body:has(.top) td{border-bottom:1px solid #EEF2F6}
body:has(.top) tr:last-child td{border-bottom:0}
body:has(.top) .status.ok{background:#ECFDF3;color:#067647;border-color:#ABEFC6}
body:has(.top) .status.warn{background:#FFFAEB;color:#B54708;border-color:#FEDF89}
body:has(.top) .status.bad{background:#FEF3F2;color:#B42318;border-color:#FECDCA}
@media(max-width:900px){body:has(.top) .top{position:static;width:100%;height:auto;min-height:0;padding:14px;box-shadow:none;border-right:0;border-bottom:1px solid rgba(255,255,255,.08)}body:has(.top) .top .brand-block{padding:2px 4px 12px}body:has(.top) .top-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}body:has(.top) .top-nav a{padding:10px}body:has(.top) .top-nav a.logout{margin-top:4px}body:has(.top) .wrap{padding:20px 14px 48px}body:has(.top) .page-head{align-items:flex-start}body:has(.top) .card,body:has(.top) .admin-card,body:has(.top) .user-card{padding:16px}body:has(.top) .admin-card-grid,body:has(.top) .user-grid{grid-template-columns:1fr}body:has(.top) .info-grid{grid-template-columns:1fr}body:has(.top) .compact-form button,body:has(.top) .compact-form input,body:has(.top) .compact-form select{width:100%}}
body:has(.top) .switch-section{margin-left:248px;padding:20px 36px 24px;max-width:none;border-radius:0;border-left:0;border-right:0;box-shadow:none}
body:has(.top) .switch-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}
body:has(.top) .switch-section-head h3{margin:0 0 4px;font-size:17px}
body:has(.top) .switch-section-head p{margin:0;font-size:13px}
body:has(.top) .switch-hint,.switch-badge{display:inline-flex;align-items:center;white-space:nowrap;border:1px solid #D0D5DD;border-radius:999px;padding:4px 9px;color:#667085;background:#F8FAFC;font-size:12px;font-weight:650}
body:has(.top) .switch-list{display:grid;gap:10px}
body:has(.top) .switch-card{padding:14px 16px;border:1px solid #E5E7EB;border-radius:11px;background:#fff;box-shadow:none}
body:has(.top) .switch-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
body:has(.top) .switch-card-head b{font-size:15px;color:#1D2939}
body:has(.top) .switch-card-head .muted{font-size:12px}
body:has(.top) .switch-form{display:grid;grid-template-columns:minmax(190px,1.2fr) minmax(190px,1.2fr) 118px minmax(245px,1.5fr) auto;gap:9px;align-items:end}
body:has(.top) .switch-field{display:flex;flex-direction:column;gap:4px;color:#667085;font-size:12px;font-weight:650}
body:has(.top) .switch-field select,body:has(.top) .switch-field input{width:100%;min-height:36px;padding:7px 9px}
body:has(.top) .switch-checks{display:flex;align-items:center;gap:12px;min-height:36px;padding:0 2px}
body:has(.top) .switch-check{display:inline-flex;align-items:center;gap:6px;color:#344054;font-size:12px;font-weight:550;white-space:nowrap;cursor:pointer}
body:has(.top) .switch-check input[type=checkbox]{appearance:none;width:16px;height:16px;min-height:16px;margin:0;border:1px solid #98A2B3;border-radius:4px;background:#fff;padding:0;cursor:pointer}
body:has(.top) .switch-check input[type=checkbox]:checked{border-color:#B98520;background:#D7A73B;box-shadow:inset 0 0 0 3px #fff}
body:has(.top) .switch-submit{min-height:36px;padding:7px 14px;white-space:nowrap}
@media(max-width:1100px){body:has(.top) .switch-form{grid-template-columns:repeat(2,minmax(0,1fr))}body:has(.top) .switch-checks{grid-column:1/-1}body:has(.top) .switch-submit{justify-self:start}}
@media(max-width:900px){body:has(.top) .switch-section{margin-left:0;padding:16px 14px 24px}body:has(.top) .switch-section-head{flex-direction:column;gap:8px}body:has(.top) .switch-form{grid-template-columns:1fr}body:has(.top) .switch-checks{grid-column:auto;align-items:flex-start;flex-direction:column;gap:7px;padding:3px 0}body:has(.top) .switch-submit{width:auto}}
body:has(.top) .admin-notifications{position:relative;margin:0 4px 2px}
body:has(.top) .notification-toggle{width:100%;display:flex;align-items:center;gap:8px;justify-content:flex-start;background:#17243d;border:1px solid rgba(255,255,255,.1);color:#f8fafc;padding:9px 11px;min-height:38px;border-radius:8px;cursor:pointer}
body:has(.top) .notification-toggle:hover,body:has(.top) .notification-toggle:focus{background:#213252;color:#ffd978}
.notification-symbol{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#dc2626;color:#fff;font-size:12px;font-weight:800;line-height:1}
.notification-count{margin-left:auto;display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#dc2626;color:#fff;font-size:11px;line-height:1}
.notification-count[hidden],.notification-panel[hidden],.notification-read-all[hidden],.notification-clear[hidden]{display:none!important}
.notification-panel{position:absolute;left:0;top:calc(100% + 7px);width:min(390px,calc(100vw - 32px));z-index:80;background:#fff;border:1px solid #d0d5dd;border-radius:8px;box-shadow:0 18px 42px rgba(15,23,42,.22);color:#1d2939;overflow:hidden}
.notification-panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 13px;border-bottom:1px solid #eaecf0;font-size:13px}.notification-head-actions{display:flex;align-items:center;gap:6px}
.notification-panel-head button{min-height:30px!important;padding:5px 8px!important;font-size:11px!important;background:#fff!important;border:1px solid #d0d5dd!important;color:#344054!important;border-radius:6px!important;cursor:pointer}
.notification-list{max-height:430px;overflow:auto}.notification-item{padding:11px 13px;border-bottom:1px solid #f2f4f7}.notification-item:last-child{border-bottom:0}.notification-item.is-unread{background:#fffbeb}
.notification-item-head{display:flex;align-items:flex-start;gap:8px}.notification-item-head b{font-size:13px;line-height:1.4}.notification-severity{margin-left:auto;flex:0 0 auto;padding:2px 6px;border-radius:4px;font-size:10px;font-weight:700;background:#fff4e5;color:#b54708}.notification-severity.critical{background:#fef3f2;color:#b42318}
.notification-item p{margin:5px 0;color:#667085;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.notification-item-foot{display:flex;align-items:center;gap:9px;color:#98a2b3;font-size:10px}.notification-item-foot a{color:#8a6d12;text-decoration:none}.notification-item-foot button{margin-left:auto;min-height:26px!important;padding:3px 7px!important;border-radius:5px!important;font-size:11px!important;cursor:pointer}.notification-read{background:#fff!important;border:1px solid #d0d5dd!important;color:#344054!important}.notification-delete{background:#fff!important;border:1px solid #f3b4b4!important;color:#b42318!important}.notification-empty{padding:24px 14px;text-align:center;margin:0;font-size:12px}
@media(max-width:900px){body:has(.top) .admin-notifications{margin:0 4px 8px}body:has(.top) .notification-panel{position:fixed;left:14px;top:94px;width:calc(100vw - 28px);max-width:none}}
/* Admin UI v2: compact operations layout, consistent with the approved preview. */
body:has(.top){background:#f3f5f8;color:#142033;font-size:14px}
body:has(.top) .top{width:228px;padding:18px 14px;background:#090f1b;box-shadow:8px 0 26px rgba(15,23,42,.12);gap:18px}
body:has(.top) .top .brand-block{min-height:56px;padding:0 8px 16px;border-bottom:1px solid rgba(255,255,255,.09);gap:10px}
body:has(.top) .top .brand-logo{width:174px;height:50px;object-position:left center}
body:has(.top) .top .brand-block>div{display:none}
body:has(.top) .top-nav{gap:3px;overflow:auto;padding-right:0}
body:has(.top) .top-nav a{padding:9px 12px;border-radius:7px;color:#c7d0dd;font-size:13px}
body:has(.top) .top-nav a:hover,body:has(.top) .top-nav a:focus{background:#182235;color:#fff}
body:has(.top) .top-nav a[href$="/admin/lot-policies"]{display:none}
body:has(.top) .wrap{margin-left:228px;max-width:1440px;padding:26px 30px 52px}
body:has(.top) .page-head{padding-bottom:16px;border-bottom:1px solid #e1e6ee;margin-bottom:18px;align-items:flex-end}
body:has(.top) .page-head h2{font-size:26px;line-height:1.25;color:#142033;margin:0 0 5px}
body:has(.top) .page-head .kicker{color:#986a08;font-size:12px;font-weight:800;letter-spacing:0}
body:has(.top) .grid{gap:12px}
body:has(.top) .metric-card{min-height:112px;padding:17px 18px;border:1px solid #e1e6ee;border-top:3px solid #9aa7b8;border-radius:8px;background:#fff;box-shadow:0 4px 14px rgba(17,29,49,.05)}
body:has(.top) .metric-card:nth-child(1){border-top-color:#21a179}body:has(.top) .metric-card:nth-child(2){border-top-color:#d7a93f}body:has(.top) .metric-card:nth-child(3){border-top-color:#4c82c3}body:has(.top) .metric-card:nth-child(4){border-top-color:#d05a50}
body:has(.top) .metric-card .metric{font-size:27px;margin-top:7px;font-weight:800;font-variant-numeric:tabular-nums}
body:has(.top) .card,body:has(.top) .admin-card,body:has(.top) .user-card{border:1px solid #e1e6ee;border-radius:8px;background:#fff;box-shadow:0 4px 14px rgba(17,29,49,.05)}
body:has(.top) .card>h3,body:has(.top) .admin-card>h3,body:has(.top) .user-card>h3{margin:0;padding:14px 16px;border-bottom:1px solid #e1e6ee;font-size:15px;color:#142033}
body:has(.top) table{width:100%;border:0;border-radius:0;background:#fff;font-size:13px;border-collapse:collapse}
body:has(.top) th{padding:10px 12px;background:#f8fafc;color:#536174;font-size:11px;font-weight:750;white-space:nowrap;text-align:left}
body:has(.top) td{padding:11px 12px;border-top:1px solid #edf0f4;vertical-align:middle}
body:has(.top) tr:hover td{background:#fbfcfe}
body:has(.top) .admin-form{gap:12px;padding:18px 16px!important}
body:has(.top) .admin-form label{gap:6px;color:#475467;font-size:12px;font-weight:700}
body:has(.top) input,body:has(.top) select,body:has(.top) textarea{min-height:40px;border:1px solid #cbd3df;border-radius:6px;background:#fff;color:#142033;padding:8px 10px}
body:has(.top) input[type=checkbox]{appearance:none;width:16px;height:16px;min-height:16px;margin:0 7px 0 0;padding:0;border:1px solid #98a2b3;border-radius:4px;vertical-align:-3px}
body:has(.top) input[type=checkbox]:checked{border-color:#b98520;background:#d7a93f;box-shadow:inset 0 0 0 3px #fff}
body:has(.top) button,body:has(.top) .btn{min-height:38px;padding:8px 14px;border:1px solid #d7a93f;border-radius:7px;background:#d7a93f;color:#17130a;font-weight:750}
body:has(.top) button:hover,body:has(.top) .btn:hover{background:#bd8c21;border-color:#bd8c21;color:#fff}
body:has(.top) button.secondary,body:has(.top) .secondary{border-color:#cbd3df;background:#fff;color:#344054}
body:has(.top) button.danger,body:has(.top) .danger{border-color:#efc3bf;background:#fff;color:#b42318}
body:has(.top) .admin-card-grid,body:has(.top) .user-grid{gap:12px}
body:has(.top) .admin-card{padding:16px;overflow:visible}
body:has(.top) .ops-panel{border:1px solid #e1e6ee;border-radius:7px;background:#f8fafc;padding:12px;margin-top:12px}
body:has(.top) .ops-row{gap:7px;margin:7px 0}
body:has(.top) .compact-form{gap:7px}
body:has(.top) .compact-form input,body:has(.top) .compact-form select,body:has(.top) .compact-form button{min-height:36px;padding:7px 10px}
body:has(.top) .license-table{padding:0!important}
body:has(.top) .status.ok{background:#e9f8f1;color:#087a57;border-color:#bce8d3}
body:has(.top) .status.warn{background:#fff6df;color:#a15c00;border-color:#efd89a}
body:has(.top) .status.bad{background:#fff0ef;color:#b42318;border-color:#efc3bf}
body:has(.top) .pill{border-radius:12px;background:#eef1f5;color:#596579;padding:2px 7px;font-size:11px}
body:has(.top) form.admin-form[action$="/admin/announcements"]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:14px;padding:20px 18px!important}
body:has(.top) form.admin-form[action$="/admin/announcements"] label:nth-of-type(1),body:has(.top) form.admin-form[action$="/admin/announcements"] label:nth-of-type(2),body:has(.top) form.admin-form[action$="/admin/announcements"] label:nth-of-type(7),body:has(.top) form.admin-form[action$="/admin/announcements"] label:nth-of-type(8){grid-column:1/-1}
body:has(.top) form.admin-form[action$="/admin/announcements"] button{justify-self:start}
@media(max-width:900px){body:has(.top) .top{position:static;width:100%;padding:10px 12px;box-shadow:none;border-right:0;border-bottom:1px solid rgba(255,255,255,.08)}body:has(.top) .top .brand-block{min-height:48px;padding:0 2px 8px}body:has(.top) .top .brand-logo{width:142px;height:42px}body:has(.top) .top-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;overflow:visible}body:has(.top) .top-nav a{padding:8px;text-align:center;font-size:12px}body:has(.top) .wrap{margin-left:0;padding:18px 12px 38px}body:has(.top) .page-head{align-items:flex-start}body:has(.top) .metric-card{padding:13px;min-height:96px}body:has(.top) .metric-card .metric{font-size:22px}body:has(.top) .admin-card-grid,body:has(.top) .user-grid{grid-template-columns:1fr}body:has(.top) .info-grid{grid-template-columns:1fr}body:has(.top) .admin-card{padding:14px}body:has(.top) .ops-row form{width:100%}body:has(.top) .compact-form input,body:has(.top) .compact-form select,body:has(.top) .compact-form button{width:100%}body:has(.top) form.admin-form[action$="/admin/announcements"]{grid-template-columns:1fr;padding:16px 14px!important}body:has(.top) form.admin-form[action$="/admin/announcements"] button{width:100%;justify-self:stretch}}
/* Public signal hall. Keep these styles global because brand templates override the page template. */
.signal-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:38px 0 24px;border-bottom:1px solid #e1e6ec;margin-bottom:24px}
.signal-head h1{font-size:38px;line-height:1.15;margin:6px 0 8px;color:#101828}
.signal-head p{margin:0;max-width:680px}.signal-head .kicker{color:#b98520;font-size:12px;font-weight:800;letter-spacing:.12em}
.signal-count{flex:0 0 auto;background:#fff;border:1px solid #e1e6ec;border-radius:8px;padding:9px 13px;color:#475467;font-size:13px;font-weight:700;box-shadow:0 3px 10px rgba(15,23,42,.04)}
.signal-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:0 0 28px}
.signal-card{min-width:0;background:#fff;border:1px solid #e1e6ec;border-radius:8px;padding:20px;box-shadow:0 7px 22px rgba(15,23,42,.055)}
.signal-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:14px;border-bottom:1px solid #edf0f3}
.signal-title{font-size:20px;line-height:1.35;margin:0 0 9px;color:#101828;overflow-wrap:anywhere}
.signal-badges{display:flex;flex-wrap:wrap;gap:6px}.signal-badges .badge,.signal-status,.signal-risk{display:inline-flex;align-items:center;min-height:25px;padding:3px 8px;border:0;border-radius:5px;font-size:12px;font-weight:750;line-height:1.2}
.signal-badges .badge{background:#eaf1ff;color:#315ba6}.signal-badges .badge.mt4{background:#fff0e7;color:#a74413}.signal-badges .badge.mt5{background:#eaf1ff;color:#315ba6}
.signal-status.online{background:#e8f7ef;color:#137345}.signal-status.offline{background:#eef1f5;color:#586476}.signal-status.paused{background:#fff3d8;color:#8a5b00}
.signal-risk.risk-low{background:#e8f7ef;color:#137345}.signal-risk.risk-medium{background:#fff3d8;color:#8a5b00}.signal-risk.risk-high{background:#ffe9e8;color:#a52d26}
.signal-desc{min-height:44px;margin:14px 0;color:#667085;line-height:1.65;white-space:pre-wrap}
.signal-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;border:0}
.signal-metric{min-width:0;padding:10px 11px;background:#f8fafc;border:1px solid #e7ebf0;border-radius:7px}
.signal-metric:nth-child(1),.signal-metric:nth-child(2){grid-column:span 2;background:#f6fafb}
.signal-metric span{display:block;margin-bottom:4px;color:#667085;font-size:11px;line-height:1.35}
.signal-metric b{display:block;color:#243144;font-size:14px;font-variant-numeric:tabular-nums;line-height:1.35;overflow-wrap:anywhere}
.signal-metric:nth-child(1) b,.signal-metric:nth-child(2) b{font-size:20px}.signal-metric .pnl{font-size:inherit}
.profit-positive,.signal-metric .pnl.positive{color:#087f5b}.profit-negative,.signal-metric .pnl.negative{color:#b42318}.profit-flat,.signal-metric .pnl.zero{color:#344054}
.observer-button{display:inline-flex;align-items:center;justify-content:center;min-height:38px;margin-top:15px;padding:8px 13px;border-radius:6px;background:#111a2e;color:#fff;text-decoration:none;font-size:13px;font-weight:700}
.observer-button:hover{background:#080d18;color:#ffd978}.observer-unavailable{min-height:38px;margin:15px 0 0;font-size:13px}
.signal-foot{display:flex;justify-content:space-between;gap:10px;margin-top:15px;padding-top:12px;border-top:1px solid #edf0f3;color:#98a2b3;font-size:12px}
.signal-empty{grid-column:1/-1;padding:38px;text-align:center;border:1px dashed #cfd7e1;border-radius:8px;background:#fff;color:#667085}
@media(max-width:800px){.signal-head{align-items:flex-start;flex-direction:column;padding:26px 0 18px;margin-bottom:18px}.signal-head h1{font-size:30px}.signal-list{grid-template-columns:1fr;gap:14px}.signal-card{padding:16px}.signal-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.signal-metric:nth-child(1),.signal-metric:nth-child(2){grid-column:span 1}.signal-metric:nth-child(1) b,.signal-metric:nth-child(2) b{font-size:17px}}
 @media(max-width:420px){.signal-foot{flex-direction:column;gap:4px}.signal-count{width:100%;text-align:center}}
 /* User authorization editor: keep identity and editable fields visually separate. */
 body:has(.top) .user-license-panel{margin-top:16px;border:1px solid #e1e6ee;border-radius:10px;background:#f7f9fc;overflow:hidden}
 body:has(.top) .user-license-panel .section-title{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:15px 16px 12px;border-bottom:1px solid #e1e6ee;background:#fff}
 body:has(.top) .user-license-panel .section-title h4{margin:0 0 4px;font-size:15px;color:#142033}
 body:has(.top) .user-license-panel .section-title p{margin:0;color:#667085;font-size:12px}
 body:has(.top) .user-license-form,body:has(.top) .new-license-form{display:grid;grid-template-columns:minmax(190px,1.35fr) minmax(150px,1fr) minmax(130px,.9fr) minmax(130px,.9fr) auto;gap:10px;align-items:end;padding:14px 16px 16px}
 body:has(.top) .user-license-form label,body:has(.top) .new-license-form label{display:flex;flex-direction:column;gap:5px;min-width:0;color:#526176;font-size:11px;font-weight:750}
 body:has(.top) .user-license-form label input,body:has(.top) .user-license-form label select,body:has(.top) .new-license-form label input,body:has(.top) .new-license-form label select{width:100%;min-width:0;min-height:38px}
 body:has(.top) .current-channel{grid-column:1/-1;display:flex;align-items:baseline;gap:9px;min-width:0;padding:10px 12px;border:1px solid #e1e6ee;border-radius:8px;background:#fff;color:#667085;font-size:11px}
 body:has(.top) .current-channel b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#142033;font-size:15px}
 body:has(.top) .current-channel small{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:#98a2b3;font-size:10px}
 body:has(.top) .user-license-form .license-save,body:has(.top) .new-license-form button{min-width:98px;white-space:nowrap}
 body:has(.top) .no-license{padding:14px 16px 0;color:#667085;font-size:13px}
 body:has(.top) .user-actions{margin-top:14px;padding-top:12px;border-top:1px solid #edf0f4}
 body:has(.top) .user-actions h4{margin:0 0 9px;color:#526176;font-size:12px}
 @media(max-width:1180px){body:has(.top) .user-license-form,body:has(.top) .new-license-form{grid-template-columns:repeat(3,minmax(0,1fr))}body:has(.top) .current-channel{grid-column:1/-1}body:has(.top) .user-license-form .license-save,body:has(.top) .new-license-form button{justify-self:start}}
 @media(max-width:900px){body:has(.top) .user-license-form,body:has(.top) .new-license-form{grid-template-columns:repeat(2,minmax(0,1fr));padding:13px 14px 15px}body:has(.top) .user-license-form .license-save,body:has(.top) .new-license-form button{grid-column:1/-1;justify-self:start}}
 @media(max-width:560px){body:has(.top) .user-license-form,body:has(.top) .new-license-form{grid-template-columns:1fr}body:has(.top) .user-license-form .license-save,body:has(.top) .new-license-form button{grid-column:auto;width:100%}body:has(.top) .current-channel{align-items:flex-start;flex-direction:column;gap:3px}}
 /* Final overflow guard: authorization controls must fit inside each user card. */
 body:has(.top) .user-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));min-width:0}
 body:has(.top) .user-card,body:has(.top) .user-license-panel{min-width:0;overflow:hidden}
 body:has(.top) .user-license-form,body:has(.top) .new-license-form{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}
 body:has(.top) .user-license-form .current-channel{grid-column:1/-1;min-width:0}
 body:has(.top) .user-license-form .license-save,body:has(.top) .new-license-form button{grid-column:1/-1;justify-self:start}
 @media(max-width:560px){body:has(.top) .user-license-form,body:has(.top) .new-license-form{grid-template-columns:1fr}body:has(.top) .user-license-form .license-save,body:has(.top) .new-license-form button{grid-column:auto;justify-self:stretch;width:100%}}
 }