:root{--bg:#f4f5f6;--surface:#fff;--surface-2:#ededee;--border:#dfe0e2;--grid:#e8e9ea;--text:#101112;--muted:#5c5c5c;--accent:#18ac4d;--accent-text:#fff;--series-1:#2562ac;--series-2:#b58100;--series-3:#18ac4d;--ok:#18ac4d;--warn:#b58100;--error:#b21313;--radius:12px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:dark){:root{--bg:#101112;--surface:#171717;--surface-2:#1e1e1e;--border:#2a2a2a;--grid:#242424;--text:#fff;--muted:#8c8c8c;--accent:#1ed760;--accent-text:#101112;--series-1:#2e7bd7;--series-2:#e8c823;--series-3:#1ed760;--ok:#4bdf80;--warn:#e8c823;--error:#df1818;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}*{box-sizing:border-box}body{background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;margin:0;font:14px/1.45 Inter,system-ui,-apple-system,sans-serif}h1,h2{margin:0;font-weight:600}h1{font-size:20px}h2{font-size:15px}button,input,select{font:inherit;color:inherit}button{background:var(--accent);color:var(--accent-text);cursor:pointer;white-space:nowrap;border:1px solid #0000;border-radius:8px;padding:7px 14px;font-weight:500}button:disabled{opacity:.5;cursor:not-allowed}button.ghost{background:var(--surface);color:var(--text);border-color:var(--border)}button.ghost:hover:not(:disabled){background:var(--surface-2)}input,select{background:var(--surface);border:1px solid var(--border);border-radius:8px;min-width:0;padding:7px 10px}input:focus,select:focus,button:focus-visible{outline:2px solid var(--accent);outline-offset:1px}.muted{color:var(--muted)}.small{font-size:12px}.grow{flex:1}.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.center-text{text-align:center;padding:24px}.center{place-items:center;min-height:100vh;padding:16px;display:grid}.logo{background:var(--accent);width:34px;height:34px;color:var(--accent-text);letter-spacing:.5px;border-radius:9px;place-items:center;font-weight:700;display:inline-grid}.logo.big{width:48px;height:48px;font-size:18px}button.logo{font-family:inherit;font-size:inherit;cursor:pointer;border:0;padding:0;font-weight:700}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px}.card h2{margin-bottom:12px}.card-head{justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;display:flex}.card-head h2{margin:0}.login-form{flex-direction:column;align-items:stretch;gap:14px;width:min(360px,100%);display:flex}.login-form .logo{align-self:flex-start}.login-form label{color:var(--muted);flex-direction:column;gap:6px;font-size:13px;display:flex}.error-text{color:var(--error);margin:0;font-size:13px}.app{min-height:100vh}.topbar{z-index:5;background:var(--surface);border-bottom:1px solid var(--border);flex-wrap:wrap;align-items:center;gap:20px;padding:10px 24px;display:flex;position:sticky;top:0}.brand{align-items:center;gap:10px;display:flex}.brand>div{flex-direction:column;display:flex}.topbar-actions{align-items:center;gap:8px;margin-left:auto;display:flex}.role-badge{border:1px solid var(--border);color:var(--muted);white-space:nowrap;border-radius:999px;padding:3px 9px;font-size:12px;font-weight:500}.role-badge.superadmin{color:var(--accent);border-color:var(--accent)}.role-badge.modo{color:var(--series-2);border-color:var(--series-2)}.secret{letter-spacing:.5px;-webkit-user-select:all;user-select:all;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:15px}.row-actions{white-space:nowrap;justify-content:flex-end;gap:4px;display:flex}.ghost.danger{color:var(--error)}.tabs{gap:2px;display:flex;overflow-x:auto}.tabs button{color:var(--muted);background:0 0;border-radius:8px}.tabs button:hover,.tabs button.active{color:var(--text);background:var(--surface-2)}main{max-width:1400px;margin:0 auto;padding:20px 24px 48px}.stack{flex-direction:column;gap:16px;display:flex}.stack.narrow{max-width:640px}.toolbar{align-items:center;gap:10px;display:flex}.toolbar.wrap{flex-wrap:wrap}.search{width:260px}.segmented{background:var(--surface);border:1px solid var(--border);border-radius:9px;max-width:100%;padding:2px;display:inline-flex;overflow-x:auto}.segmented button{color:var(--muted);background:0 0;border-radius:7px;padding:5px 12px}.segmented button.active{background:var(--accent);color:var(--accent-text)}.segmented.small button{padding:3px 10px;font-size:12px}.banner{border:1px solid;border-radius:8px;margin:12px 24px 0;padding:10px 14px;font-size:13px}.stack .banner{margin:0}.banner.warn{color:var(--warn)}.banner.info{color:var(--muted);border-color:var(--border);background:var(--surface)}.banner.error{color:var(--error)}.banner.ok{color:var(--ok)}.empty{text-align:center;color:var(--muted);padding:80px 16px}.kpis{grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px;display:grid}.kpi{text-align:left;color:var(--text);white-space:normal;flex-direction:column;align-items:stretch;gap:4px;font-weight:400;transition:border-color .15s,box-shadow .15s;display:flex}.kpi:hover{border-color:var(--accent);box-shadow:0 2px 10px #0000000f}.kpi-label{justify-content:space-between;gap:8px;display:flex}.kpi-more{color:var(--accent);opacity:0;transition:opacity .15s}.kpi:hover .kpi-more,.kpi:focus-visible .kpi-more{opacity:1}@media (hover:none){.kpi-more{opacity:1}}.kpi-label{color:var(--muted);font-size:12px;font-weight:500}.kpi-value{font-variant-numeric:tabular-nums;letter-spacing:-.3px;font-size:24px;font-weight:600}.grid-2{grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:16px;display:grid}.toplist{counter-reset:rank;margin:0;padding:0;list-style:none}.toplist li{border-top:1px solid var(--border);counter-increment:rank;grid-template-columns:24px 1fr auto auto;align-items:baseline;gap:10px;padding:7px 0;display:grid}.toplist li:first-child{border-top:0}.toplist li:before{content:counter(rank);color:var(--muted);font-size:12px}.toplist .login{text-overflow:ellipsis;font-weight:500;overflow:hidden}.toplist.wide li{grid-template-columns:24px 1fr auto auto auto}.table-wrap{padding:0;overflow-x:auto}table{border-collapse:collapse;width:100%}th,td{text-align:left;border-bottom:1px solid var(--border);padding:9px 12px}th{color:var(--muted);white-space:nowrap;cursor:pointer;-webkit-user-select:none;user-select:none;background:var(--surface);font-size:12px;font-weight:500;position:sticky;top:0}th.num{text-align:right}th .sort{margin-left:4px;font-size:9px}tbody tr{cursor:pointer}tbody tr:hover{background:var(--surface-2)}tbody tr:last-child td{border-bottom:0}td.login{white-space:nowrap;font-weight:500}table.compact th,table.compact tbody tr{cursor:default}.pager{justify-content:center;align-items:center;gap:12px;display:flex}.overlay{z-index:10;background:#00000059;justify-content:flex-end;display:flex;position:fixed;inset:0}.drawer{background:var(--surface);border-left:1px solid var(--border);flex-direction:column;gap:16px;width:min(440px,100%);height:100%;padding:20px;display:flex;overflow-y:auto}.drawer.wide{width:min(880px,100%)}.summary{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px;display:grid}.summary>div{background:var(--surface-2);border-radius:8px;flex-direction:column;gap:2px;padding:10px 12px;display:flex}.summary strong{font-variant-numeric:tabular-nums;font-size:16px}.table-wrap.bordered{border:1px solid var(--border);border-radius:8px;overflow:auto}.facts{grid-template-columns:max-content 1fr;gap:8px 16px;margin:0;display:grid}.facts dt{color:var(--muted)}.facts dd{margin:0}.pill{white-space:nowrap;vertical-align:middle;border:1px solid;border-radius:999px;margin-left:6px;padding:1px 8px;font-size:11.5px;font-weight:500;line-height:1.5;display:inline-block}td>.pill:first-child,.alert-meta>.pill:first-child{margin-left:0}.pill.ok{color:var(--ok)}.pill.warn{color:var(--warn)}.pill.error{color:var(--error)}.pill.muted{color:var(--muted);border-color:var(--border)}.tab-badge{background:var(--error);color:#fff;border-radius:999px;place-items:center;min-width:18px;height:18px;margin-left:6px;padding:0 5px;font-size:11px;font-weight:600;line-height:1;display:inline-grid}.alert-banner{align-items:center;gap:12px;display:flex}.alert-banner button{flex:none}.alert-list{flex-direction:column;gap:8px;margin:0 0 12px;padding:0;list-style:none;display:flex}.alert-item{border:1px solid var(--border);border-left:3px solid var(--warn);border-radius:8px;align-items:flex-start;gap:12px;padding:10px 12px;display:flex}.alert-item.critical{border-left-color:var(--error)}.alert-item.read{border-left-color:var(--border);opacity:.75}.alert-item p{margin:4px 0 2px}.alert-meta{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.security .static-kpi{cursor:default}.security .static-kpi:hover{border-color:var(--border);box-shadow:none}.kpi-value.tone-warn{color:var(--warn)}.kpi-value.tone-error{color:var(--error)}.security tbody tr.static{cursor:default}.security tbody tr.static:hover{background:0 0}.security td.nowrap{white-space:nowrap}.security .log-filters,.security .block-form,.security .block-error{margin-bottom:12px}.security .pager{margin-top:12px}.steps{flex-direction:column;gap:6px;margin:0 0 12px;padding-left:20px;display:flex}.steps li.done{text-decoration:line-through}.steps code,.security code{color:var(--text);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12.5px}.icon-wrap{display:inline-flex;position:relative}.nav-dot{background:var(--error);border:2px solid var(--surface);border-radius:50%;width:9px;height:9px;position:absolute;top:-1px;right:-3px}.mobile-only,.bottom-nav{display:none}.icon{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:22px;height:22px}@media (width<=720px){:root{--nav-h:58px;--gutter:16px}html{-webkit-text-size-adjust:100%}body{-webkit-tap-highlight-color:transparent}.desktop-only{display:none!important}.mobile-only{display:revert}body:has(.overlay){overflow:hidden}input,select{border-radius:10px;min-height:44px;padding:9px 12px;font-size:16px}button{border-radius:10px;min-height:44px;padding:10px 16px}button:active:not(:disabled){opacity:.8}.center{min-height:100dvh;padding:max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom))}.login-form{padding:24px 20px}.topbar{padding:calc(8px + env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right)) 8px max(var(--gutter), env(safe-area-inset-left));flex-wrap:nowrap;gap:10px}.brand{flex:1;min-width:0}.brand>div{min-width:0}.brand strong{font-size:15px}.brand .small{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.topbar .logo{flex:none;width:36px;height:36px;min-height:0}.topbar-actions{flex:none;margin-left:0}.currency-select{text-overflow:ellipsis;max-width:132px;min-height:38px;padding:6px 10px;font-size:15px}main{padding:16px max(var(--gutter), env(safe-area-inset-right)) calc(var(--nav-h) + env(safe-area-inset-bottom) + 24px) max(var(--gutter), env(safe-area-inset-left))}.banner{margin:12px var(--gutter) 0}.stack{gap:14px}.stack.narrow{max-width:none}.empty{padding:56px 16px}.card{padding:14px}.card.table-wrap{padding:0}.card-head{flex-wrap:wrap;row-gap:8px}h2{font-size:16px}.toolbar{flex-wrap:wrap;row-gap:10px}.toolbar>.search,.toolbar.wrap>.search{flex:100%;width:100%}.toolbar.wrap>select{flex:40%}.toolbar>.grow.small{flex:auto}.stack>.toolbar>.segmented{flex:100%}.mobile-sort{flex:100%;gap:8px;display:flex}.mobile-sort select{flex:1;min-width:0}.mobile-sort button{flex:none;width:44px;padding:0}.segmented{scrollbar-width:none;-webkit-overflow-scrolling:touch;border-radius:11px}.segmented::-webkit-scrollbar{display:none}.segmented button{border-radius:9px;flex:1 0 auto;min-height:38px;padding:6px 8px;font-size:13px}.segmented.small button{min-height:32px;padding:4px 12px}.kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.kpi{border-radius:var(--radius);min-height:0;padding:12px}.kpi-label{font-size:12px}.kpi-more{display:none}.kpi-value{overflow-wrap:anywhere;font-size:19px;line-height:1.25}.kpi .small{font-size:11.5px}.grid-2{grid-template-columns:minmax(0,1fr);gap:14px}.toplist li,.toplist.wide li{grid-template-columns:24px minmax(0,1fr) auto;grid-template-areas:"rank login amount""rank promo when";align-items:baseline;gap:1px 10px;padding:10px 0}.toplist li:before{grid-area:rank}.toplist .login{white-space:nowrap;grid-area:login}.toplist .num{grid-area:amount;font-weight:600}.toplist .promo{text-overflow:ellipsis;white-space:nowrap;grid-area:promo;overflow:hidden}.toplist .when{text-align:right;grid-area:when}table.cards,table.cards tbody{display:block}table.cards thead{display:none}table.cards tr{border-bottom:1px solid var(--border);grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;padding:14px;display:grid}table.cards tbody tr:last-child{border-bottom:0}table.cards tbody tr:hover{background:0 0}table.cards tbody tr:not(.static):active{background:var(--surface-2)}table.cards td{text-align:left;white-space:normal;overflow-wrap:anywhere;border:0;flex-direction:column;gap:1px;min-width:0;padding:0;display:flex}table.cards td:before{content:attr(data-label);color:var(--muted);font-size:11.5px;font-weight:500}table.cards td.num{text-align:left;font-weight:500}table.cards td.card-title,table.cards td[colspan],table.cards td.row-actions{grid-column:1/-1}table.cards td.card-title{font-size:15px;font-weight:600}table.cards tr:not(.static) td.card-title{flex-direction:row;justify-content:space-between}table.cards tr:not(.static) td.card-title:after{content:"›";color:var(--muted);font-size:20px;line-height:1}table.cards td.card-title:before,table.cards td[colspan]:before,table.cards td.row-actions:before{content:none}table.cards td.m-hide{display:none}table.cards td[colspan]{text-align:center;padding:12px 0}table.cards td select{width:100%}table.cards td.row-actions{flex-flow:wrap;justify-content:flex-start;gap:8px}table.cards td.row-actions button{flex:auto}.pager{gap:8px}.pager button{flex:1}.overlay{background:#00000080}.drawer,.drawer.wide{width:100%;padding:0 max(var(--gutter), env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));overscroll-behavior:contain;border-left:0;gap:14px;animation:.22s ease-out sheet-in}.drawer>*{flex-shrink:0}.drawer .table-wrap.bordered{overflow:visible}.drawer>.card-head:first-child{z-index:1;margin:0 calc(-1 * var(--gutter));padding:calc(12px + env(safe-area-inset-top)) var(--gutter) 12px;background:var(--surface);border-bottom:1px solid var(--border);flex-wrap:nowrap;position:sticky;top:0}.drawer>.card-head:first-child>div{min-width:0}.drawer>.card-head:first-child button{flex:none;width:44px;padding:0}.summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.summary strong{overflow-wrap:anywhere}.drawer table.compact th,.drawer table.compact td{padding:10px 8px}.drawer table.compact th{position:static}.facts{gap:6px 14px}.facts dd{overflow-wrap:anywhere;min-width:0}.stack.narrow .card>button,form.toolbar>button[type=submit]{width:100%}.bottom-nav{z-index:8;padding:0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);background:var(--surface);border-top:1px solid var(--border);display:flex;position:fixed;bottom:0;left:0;right:0}@supports (background:color-mix(in srgb, red 50%, transparent)){.topbar,.bottom-nav{background:color-mix(in srgb, var(--surface) 88%, transparent);-webkit-backdrop-filter:saturate(180%)blur(16px);backdrop-filter:saturate(180%)blur(16px)}}.bottom-nav button{min-width:0;height:var(--nav-h);color:var(--muted);background:0 0;border:0;border-radius:0;flex-direction:column;flex:1 1 0;justify-content:center;align-items:center;gap:3px;padding:6px 2px 4px;font-size:11px;font-weight:500;display:flex}.bottom-nav button span{text-overflow:ellipsis;max-width:100%;overflow:hidden}.bottom-nav button.active{color:var(--accent)}.bottom-nav button .icon{transition:transform .15s}.bottom-nav button.active .icon{stroke-width:2.2px}.bottom-nav button:active:not(:disabled){opacity:1}.bottom-nav button:active .icon{transform:scale(.9)}.sheet-overlay{z-index:20;animation:.2s ease-out fade-in}.side-sheet{overscroll-behavior:contain;width:min(320px,86vw);height:100%;padding:calc(14px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) 16px;background:var(--surface);border-left:1px solid var(--border);flex-direction:column;gap:16px;margin-left:auto;animation:.24s cubic-bezier(.2,.8,.2,1) sheet-in;display:flex;overflow-y:auto;box-shadow:-12px 0 32px #00000040}.side-sheet-head{align-items:center;gap:10px;display:flex}.side-sheet-head>div{flex-direction:column;min-width:0;display:flex}.side-sheet-head .small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.side-sheet .logo{flex:none}.side-sheet>.role-badge{align-self:flex-start}.icon-button{flex:none;place-items:center;width:44px;padding:0;display:inline-grid}.sheet-nav{flex-direction:column;gap:4px;display:flex}.sheet-nav button{width:100%;min-height:48px;color:var(--text);text-align:left;background:0 0;align-items:center;gap:12px;padding:10px 12px;font-weight:500;display:flex}.sheet-nav button .icon:last-child{width:18px;height:18px;color:var(--muted)}.sheet-nav button.active{background:var(--surface-2);color:var(--accent)}.sheet-facts{background:var(--surface-2);border-radius:10px;padding:12px}.sheet-logout{justify-content:center;align-items:center;gap:8px;width:100%;display:flex}.sheet-logout .icon{width:18px;height:18px}.alert-banner{flex-wrap:wrap}.alert-banner button{width:100%}.alert-item{flex-direction:column;gap:8px}.alert-item button,.security .card-head .toolbar{width:100%}.security .card-head .toolbar button{flex:1}.security .card-head>select{width:100%}.security .log-filters .segmented,.security .log-filters select{flex:100%}.security table.cards td.card-title>span{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.security table.cards td.card-title .pill{margin-left:0}.security table.cards td>.pill{align-self:flex-start}.security table.cards td.actions-cell{grid-column:1/-1}.security table.cards td.actions-cell:before{content:none}.security table.cards td.actions-cell:not(:has(button)){display:none}.security .row-actions{flex-wrap:wrap;justify-content:flex-start;gap:8px}.security .row-actions button{flex:auto}}@media (width<=720px) and (prefers-color-scheme:light){.topbar{box-shadow:inset 0 env(safe-area-inset-top) 0 0 var(--text)}}@keyframes sheet-in{0%{transform:translate(100%)}to{transform:none}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@media (prefers-reduced-motion:reduce){.drawer,.side-sheet,.sheet-overlay{animation:none!important}}
