/* Loyalz — wspólna skorupa widoków (po audycie). Warstwy: #161616 page → #1A1A1A chrome → #212121 card */
*{box-sizing:border-box}
body{margin:0;background:#161616;color:#F6F6F6;font-family:'Space Grotesk',system-ui,sans-serif;font-size:14px}
a{color:#A78BFA}a:hover{color:#C4B5FD}
.app{display:grid;grid-template-columns:248px 1fr;min-height:100%}
/* sidebar */
.side{background:#1A1A1A;border-right:1px solid #2A2A2A;padding:18px 0 24px;display:flex;flex-direction:column}
.brand{display:flex;align-items:center;justify-content:space-between;padding:0 18px 22px}
.wordmark{font-weight:700;font-size:19px;letter-spacing:-.04em}
.wordmark i{font-style:normal;color:#A78BFA;font-size:11px;letter-spacing:0;vertical-align:super}
.collapse{width:28px;height:28px;border-radius:8px;border:1px solid #333;background:#212121;color:#959595;display:grid;place-items:center;cursor:pointer}
.collapse svg{width:12px;height:12px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round}
.navgroup{padding:0 10px;margin-bottom:6px}
.gtitle{display:flex;align-items:center;gap:8px;padding:10px 8px 8px;font-size:10px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#7A7A7A}
.gtitle svg{width:13px;height:13px;stroke:#7A7A7A;stroke-width:1.6;fill:none}
.nav{list-style:none;margin:0;padding:0}
.nav a{display:flex;align-items:center;gap:9px;padding:8px 10px;border-radius:8px;color:#C8C8C8;text-decoration:none;font-size:13px;line-height:1.2}
.nav a:hover{background:#242424;color:#F6F6F6}
.nav .sub{padding-left:18px;font-size:13px;color:#959595}
.nav .cur{background:#2A1B47;color:#F6F6F6;font-weight:600;box-shadow:inset 2px 0 0 #A78BFA}
.nav .parent-open{color:#F6F6F6}
.nav .caret{margin-left:auto;width:11px;height:11px;stroke:#7A7A7A;stroke-width:2;fill:none}
.eu{margin-top:auto;padding:16px 18px 0;border-top:1px solid #242424}
.eu p{margin:0 0 8px;font-size:9px;letter-spacing:.06em;text-transform:uppercase;color:#5E5E5E}
.eu .strip{height:26px;border-radius:4px;background:repeating-linear-gradient(90deg,#2A2A2A 0 14px,#232323 14px 28px);display:grid;place-items:center;font-family:'Space Mono',monospace;font-size:8px;color:#6E6E6E}
/* topbar */
.main{min-width:0;display:flex;flex-direction:column}
.topbar{height:60px;border-bottom:1px solid #2A2A2A;background:#1A1A1A;display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:0 26px;position:sticky;top:0;z-index:5}
.acct{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 12px;border-radius:9px;border:1px solid #333;background:#212121;font-size:13px;color:#C8C8C8;cursor:pointer;font-family:inherit}
.acct svg{width:12px;height:12px;stroke:#8A8A8A;stroke-width:2;fill:none;stroke-linecap:round}
.avatar{width:20px;height:20px;border-radius:50%;background:#620AE2;color:#fff;display:grid;place-items:center;font-size:10px;font-weight:700}
/* page head */
.canvas{padding:22px 26px 60px}
.head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:16px}
h1{margin:0;font-size:23px;font-weight:700;letter-spacing:-.02em}
.crumb{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:#7A7A7A;margin-bottom:6px}
.ctx{margin-top:5px;font-size:12.5px;color:#959595;font-family:'Space Mono',monospace}
.tabs{display:inline-flex;background:#1E1E1E;border:1px solid #333;border-radius:10px;padding:3px}
.tab{padding:7px 15px;border-radius:8px;font-size:13px;font-weight:600;color:#959595;cursor:pointer}
.tab.on{background:#2F2F2F;color:#F6F6F6}
/* toolbar */
.bar{display:flex;gap:9px;align-items:center;flex-wrap:wrap;background:#1E1E1E;border:1px solid #303030;border-radius:12px;padding:10px}
.ctrl{display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 12px;border-radius:9px;border:1px solid #3D3D3D;background:#242424;font-size:13px;color:#C8C8C8;cursor:pointer;font-family:inherit;white-space:nowrap}
.ctrl:hover{border-color:#8A8A8A;color:#F6F6F6}
.ctrl svg{width:12px;height:12px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;flex:none}
.ctrl.icon{width:36px;padding:0;justify-content:center}
.ctrl .cnt{background:#620AE2;color:#fff;font-size:11px;font-weight:700;border-radius:99px;padding:1px 7px;font-family:'Space Mono',monospace}
.search{display:flex;align-items:center;gap:8px;height:36px;padding:0 12px;border-radius:9px;border:1px solid #3D3D3D;background:#242424;color:#8A8A8A;font-size:13px;flex:1;min-width:200px;max-width:300px}
.grp{display:flex;align-items:center;gap:7px}
.grp>span.lab{font-size:11px;color:#8A8A8A;letter-spacing:.04em}
.vr{width:1px;height:22px;background:#333}
.spacer{flex:1}
/* filter chips */
.chips{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-top:10px}
.chip{display:inline-flex;align-items:center;gap:7px;height:28px;padding:0 6px 0 10px;border-radius:99px;background:#2A1B47;border:1px solid #46346E;font-size:12px;color:#C4B5FD}
.chip b{font-weight:600;color:#E9E1FF}
.chip .x{width:16px;height:16px;border-radius:50%;background:rgba(196,181,253,.16);display:grid;place-items:center;cursor:pointer}
.chip .x svg{width:8px;height:8px;stroke:#C4B5FD;stroke-width:2.4;fill:none}
.clearall{font-size:12px;color:#959595;text-decoration:underline;text-underline-offset:2px;cursor:pointer;margin-left:2px}
/* selection bar */
.selbar{display:flex;align-items:center;gap:10px;margin-top:12px;background:#211533;border:1px solid #46346E;border-radius:12px;padding:9px 12px;flex-wrap:wrap}
.selbar .n{font-family:'Space Mono',monospace;font-size:13px;color:#E9E1FF;font-weight:700}
.selbar .t{font-size:13px;color:#B9A9E0}
.act{display:inline-flex;align-items:center;gap:7px;height:32px;padding:0 12px;border-radius:8px;font-size:12.5px;font-weight:600;cursor:pointer;border:1px solid #4A3A73;background:#2C1F47;color:#E4DAFF;font-family:inherit}
.act svg{width:12px;height:12px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round}
.act.warn{border-color:#7A5A22;background:#3A2A10;color:#F5BC65}
.act.ghost{border-color:transparent;background:transparent;color:#9C8FBE}
/* legend */
.legend{display:flex;align-items:center;gap:16px;margin:22px 0 12px;font-size:12px;color:#8A8A8A;flex-wrap:wrap}
.legend .k{display:inline-flex;align-items:center;gap:6px}
.legend .d{width:8px;height:8px;border-radius:2px}
.legend .cntx{margin-left:auto;font-family:'Space Mono',monospace;font-size:12px;color:#8A8A8A}
/* ad cards */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px}
.card{background:#212121;border:1px solid #2E2E2E;border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:11px;position:relative}
.card:hover{border-color:#454545}
.card.sel{border-color:#A78BFA;box-shadow:0 0 0 1px #A78BFA}
.card.off{opacity:.55}
.thumb{position:relative;aspect-ratio:1;border-radius:9px;overflow:hidden;background:#191919;border:1px solid #2E2E2E}
.ph{width:100%;height:100%;display:grid;place-items:center;background:repeating-linear-gradient(135deg,#232323 0 7px,#1C1C1C 7px 14px);padding:10px;text-align:center}
.ph span{font-family:'Space Mono',monospace;font-size:10px;color:#6E6E6E;background:rgba(22,22,22,.7);padding:3px 7px;border-radius:5px;line-height:1.4}
.tl{position:absolute;top:7px;left:7px;display:flex;gap:6px;align-items:center}
.tr{position:absolute;top:7px;right:7px;display:flex;gap:6px;align-items:center}
.bl{position:absolute;bottom:7px;left:7px;display:flex;gap:5px;flex-wrap:wrap;max-width:78%}
.br{position:absolute;bottom:7px;right:7px}
.rank{background:#161616;color:#F6F6F6;border:1px solid #3D3D3D;font-family:'Space Mono',monospace;font-size:11px;font-weight:700;padding:3px 8px;border-radius:99px}
.rank.gold{background:#F5BC65;border-color:#F5BC65;color:#161616}
.check{width:22px;height:22px;border-radius:7px;border:1.5px solid rgba(246,246,246,.7);background:rgba(22,22,22,.55);display:grid;place-items:center;cursor:pointer}
.check.on{background:#620AE2;border-color:#620AE2}
.check svg{width:12px;height:12px;stroke:#fff;stroke-width:2.6;fill:none;stroke-linecap:round}
.pill{background:rgba(22,22,22,.82);font-size:9.5px;letter-spacing:.06em;text-transform:uppercase;padding:3px 7px;border-radius:5px;color:#C8C8C8}
.pill.lbl{color:#C4B5FD}
.pill.state{color:#F5BC65;display:inline-flex;align-items:center;gap:4px}
.pill.state svg{width:8px;height:8px;fill:#F5BC65}
.name{font-size:13px;line-height:1.42;color:#EDEDED;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:37px;margin:0}
.kpi{display:flex;align-items:flex-end;justify-content:space-between;gap:8px;padding:10px 11px;border-radius:10px;background:#1A1A1A;border:1px solid #2E2E2E}
.kpi .k{font-size:10px;letter-spacing:.11em;text-transform:uppercase;color:#8A8A8A;margin-bottom:3px}
.kpi .v{font-family:'Space Mono',monospace;font-size:27px;font-weight:700;line-height:1;letter-spacing:-.03em}
.kpi .v.good{color:#74EDB3}.kpi .v.mid{color:#F5BC65}.kpi .v.bad{color:#F98080}.kpi .v.none{color:#6E6E6E;font-size:22px}
.kpi .meta{text-align:right;font-family:'Space Mono',monospace;font-size:11px;color:#8A8A8A;line-height:1.5}
.kpi .meta b{display:block;font-size:13px;color:#EDEDED;font-weight:700}
.gauge{height:4px;border-radius:99px;background:#2E2E2E;overflow:hidden;position:relative}
.gauge i{display:block;height:100%;border-radius:99px}
.gauge .tick{position:absolute;top:-2px;bottom:-2px;width:1.5px;background:#6E6E6E;left:33%}
.mx{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:#2A2A2A;border-radius:9px;overflow:hidden;margin:0}
.mx>div{background:#1D1D1D;padding:7px 9px}
.mx dt{font-size:10px;letter-spacing:.07em;text-transform:uppercase;color:#8A8A8A;margin-bottom:2px}
.mx dd{margin:0;font-family:'Space Mono',monospace;font-size:13.5px;color:#EDEDED;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.mx dd small{color:#7A7A7A;font-size:9.5px;padding-left:3px}
.mx dd.nd{color:#6E6E6E}
.foot{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11.5px;color:#8A8A8A}
.foot a{color:#A78BFA;text-decoration:none}
.foot a:hover{color:#C4B5FD;text-decoration:underline}
.note{font-size:12px;color:#8A8A8A;line-height:1.65;margin:26px 0 0;max-width:900px;border-top:1px solid #2A2A2A;padding-top:16px}
.note b{color:#C8C8C8;font-weight:600}
@media (max-width:640px){.mx{grid-template-columns:1fr}}
.mx>div.hi{background:#241A3A}
.mx>div.hi dt{color:#C4B5FD}
.mx>div.hi dd{color:#E9E1FF}
.bbar{position:absolute;left:7px;right:7px;bottom:7px;display:flex;justify-content:space-between;align-items:flex-end;gap:6px}
.bbar .bl,.bbar .br{position:static;left:auto;right:auto;bottom:auto}
.bbar .bl{min-width:0;max-width:none;flex-wrap:wrap}
.bbar .br{flex:none}
