:root{--bg: #0d0d12;--surface: #15151c;--surface-2: #1c1c26;--border: #2a2a37;--text: #ececf1;--muted: #9a9aab;--accent: #8b6cff;--accent-2: #5b8cff;--danger: #ff5c63;--ok: #3ccf8e;--radius: 14px;color-scheme:dark}@media(prefers-color-scheme:light){:root{--bg: #f6f6f9;--surface: #ffffff;--surface-2: #f0f0f5;--border: #e1e1ea;--text: #17171f;--muted: #63637a;--accent: #6d4dff;--danger: #dc3540;color-scheme:light}}*{box-sizing:border-box}html,body{margin:0}body{background:var(--bg);color:var(--text);font:15px/1.5 Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;-webkit-font-smoothing:antialiased}a{color:var(--accent)}h1{font-size:1.6rem;margin:0;letter-spacing:-.02em}h2{font-size:1.05rem;margin:0 0 12px}code,pre{font-family:ui-monospace,JetBrains Mono,Menlo,monospace;font-size:.85em}code{background:var(--surface-2);padding:1px 6px;border-radius:6px;word-break:break-all}pre{background:var(--surface-2);padding:12px;border-radius:10px;overflow-x:auto;white-space:pre-wrap;word-break:break-all}.muted{color:var(--muted)}.small{font-size:.85rem}.error{color:var(--danger);margin:0}.icon{display:inline-flex;width:20px;height:20px;flex:none}.icon svg{width:100%;height:100%;fill:currentColor}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:6px;font:inherit;font-weight:500;color:var(--text);text-decoration:none;background:var(--surface-2);border:1px solid var(--border);border-radius:999px;padding:8px 16px;min-height:40px;cursor:pointer;transition:border-color .15s,background .15s,transform .1s}button:hover,.button:hover{border-color:var(--accent)}button:active{transform:scale(.98)}button:disabled{opacity:.6;cursor:default}.primary{background:linear-gradient(135deg,var(--accent),var(--accent-2));border-color:transparent;color:#fff}.danger{color:var(--danger)}.ghost{background:transparent}.wide{width:100%;margin-top:16px}input,textarea{font:inherit;color:var(--text);background:var(--surface-2);border:1px solid var(--border);border-radius:10px;padding:10px 12px;width:100%;min-height:42px}input:focus,textarea:focus{border-color:var(--accent);outline:none}input[type=color]{padding:2px;width:56px;height:40px}label{display:flex;flex-direction:column;gap:6px;font-size:.9rem;color:var(--muted)}label.inline{flex-direction:row;align-items:center;justify-content:space-between}.switch{flex-direction:row;align-items:center;gap:10px;color:var(--text);cursor:pointer}.switch input{appearance:none;width:42px;height:24px;min-height:0;padding:0;border-radius:999px;position:relative;flex:none;cursor:pointer}.switch input:after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:var(--muted);transition:.2s}.switch input:checked{background:var(--accent);border-color:var(--accent)}.switch input:checked:after{left:21px;background:#fff}.center{min-height:100vh;display:grid;place-items:center;padding:16px}.shell{display:flex;min-height:100vh}.sidebar{width:232px;flex:none;position:sticky;top:0;height:100vh;display:flex;flex-direction:column;gap:8px;padding:20px 14px;border-right:1px solid var(--border);background:var(--surface)}.brand{display:flex;align-items:center;gap:10px;font-weight:700;color:var(--text);text-decoration:none;padding:4px 10px 16px}.brand img{width:30px;height:30px}.sidebar nav{display:flex;flex-direction:column;gap:4px;flex:1}.sidebar nav a{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:10px;color:var(--muted);text-decoration:none;font-weight:500}.sidebar nav a:hover{background:var(--surface-2);color:var(--text)}.sidebar nav a.active{background:var(--surface-2);color:var(--text)}.sidebar nav a.active .icon{color:var(--accent)}.sidebar-foot{display:flex;flex-direction:column;gap:4px;padding-top:12px;border-top:1px solid var(--border)}.profile{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:10px;color:var(--text);text-decoration:none;font-weight:600;min-width:0}.profile:hover,.profile.active{background:var(--surface-2)}.profile-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.avatar{width:30px;height:30px;flex:none;border-radius:50%;display:grid;place-items:center;font-size:.85rem;font-weight:700;color:#fff;background:linear-gradient(135deg,var(--accent),var(--accent-2))}.logout{justify-content:flex-start;border:0;color:var(--muted)}main{flex:1;min-width:0}.page{max-width:1200px;margin:0 auto;padding:32px 24px 48px;display:flex;flex-direction:column;gap:16px}.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}.page-head>div:not(.chips){display:flex;flex-direction:column;gap:6px;min-width:200px}.page-head p{margin:0}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:20px}.actions{display:flex;flex-wrap:wrap;gap:8px}@media(max-width:760px){.shell{flex-direction:column}.sidebar{position:fixed;z-index:20;inset:auto 0 0;width:auto;height:auto;flex-direction:row;padding:6px 8px calc(6px + env(safe-area-inset-bottom));border-right:0;border-top:1px solid var(--border);background:color-mix(in srgb,var(--surface) 88%,transparent);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.brand{display:none}.sidebar nav{flex-direction:row;justify-content:space-around}.sidebar nav a{flex-direction:column;gap:2px;padding:6px 8px;font-size:.7rem;flex:1}.sidebar nav a.active{color:var(--accent);background:transparent}.sidebar-foot{display:contents}.profile{flex-direction:column;gap:2px;padding:6px 4px;font-size:.7rem;font-weight:500;color:var(--muted);max-width:72px}.profile:hover,.profile.active{background:transparent}.profile.active{color:var(--accent)}.profile-name{max-width:100%}.avatar{width:22px;height:22px;font-size:.7rem}.logout{flex-direction:column;gap:2px;font-size:.7rem;padding:6px;min-height:0}.page{padding:20px 16px calc(96px + env(safe-area-inset-bottom))}.card{padding:16px}}.auth-card{width:100%;max-width:380px;display:flex;flex-direction:column;gap:14px;text-align:center}.auth-card img{margin:0 auto}.auth-card label{text-align:left}.auth-card p{margin:0}.tabs{display:grid;grid-template-columns:1fr 1fr;background:var(--surface-2);border-radius:999px;padding:4px}.tabs button{border:0;background:transparent;min-height:34px}.tabs button[aria-selected=true]{background:var(--surface);box-shadow:0 1px 3px #0003}.dropzone{display:flex;align-items:center;justify-content:center;gap:10px;text-align:center;padding:22px;border:2px dashed var(--border);border-radius:var(--radius);color:var(--muted);cursor:pointer;transition:.15s}.dropzone:hover,.dropzone.active{border-color:var(--accent);color:var(--text);background:color-mix(in srgb,var(--accent) 8%,transparent)}.upload-row{display:flex;align-items:center;gap:12px;font-size:.9rem}.upload-row span{flex:0 1 40%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.upload-row .meter{flex:1}.toolbar{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.search{flex:1 1 220px;flex-direction:row;align-items:center;position:relative}.search .icon{position:absolute;left:12px}.search input{padding-left:38px;border-radius:999px}.chips{display:flex;gap:6px;flex-wrap:wrap}.chip{min-height:36px;padding:6px 14px}.chip.active{background:var(--accent);border-color:var(--accent);color:#fff}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px}@media(max-width:480px){.grid{grid-template-columns:repeat(2,1fr);gap:8px}}.tile{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:0;border-radius:var(--radius);overflow:hidden;background:var(--surface);text-align:left;min-height:0}.tile img,.tile video,.tile .vid,.tile .file-thumb{width:100%;aspect-ratio:4 / 3;object-fit:cover;display:block;background:var(--surface-2)}.vid{position:relative}.badge{position:absolute;right:8px;top:8px;background:#000a;color:#fff;border-radius:999px;padding:2px 8px;font-size:.75rem;font-weight:700;display:flex}.badge .icon{width:14px;height:14px}.tile-meta{display:flex;justify-content:space-between;gap:8px;padding:8px 10px;font-size:.82rem}.tile-meta .name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-thumb{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:var(--muted);font-size:.75rem}.file-thumb .icon{width:36px;height:36px}.file-thumb.big{min-height:240px}.empty{text-align:center;padding:48px 16px;color:var(--muted)}.empty .icon{width:40px;height:40px}.empty p{margin:6px 0}.modal{position:fixed;inset:0;z-index:50;background:#000c;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);display:grid;place-items:center;padding:16px}.modal-body{position:relative;max-width:min(1100px,100%);max-height:100%;display:flex;flex-direction:column;gap:12px;background:var(--surface);border-radius:var(--radius);padding:12px;overflow:auto}.modal-body>img,.modal-body>video{max-width:100%;max-height:70vh;object-fit:contain;border-radius:10px;background:#000;margin:0 auto}.modal-info{display:flex;flex-direction:column;gap:8px;padding:4px;word-break:break-word}.icon-btn{padding:0;width:40px;min-height:40px}.close{position:absolute;right:18px;top:18px;z-index:1;background:#000a;color:#fff;border:0}@media(max-width:760px){.modal{padding:0;place-items:end stretch}.modal-body{border-radius:var(--radius) var(--radius) 0 0;max-height:92vh;padding-bottom:calc(12px + env(safe-area-inset-bottom))}.modal-info .actions>*{flex:1 1 calc(50% - 8px)}}.meter{height:6px;border-radius:999px;background:var(--surface-2);overflow:hidden}.meter>div{height:100%;background:linear-gradient(90deg,var(--accent),var(--accent-2));border-radius:inherit;transition:width .2s}.meter>div.danger{background:var(--danger)}.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}.kpi{display:flex;flex-direction:column;gap:4px}.kpi strong{font-size:1.6rem;letter-spacing:-.02em}.bars{display:flex;align-items:flex-end;gap:3px;height:140px;margin-top:24px}.bar{flex:1;height:100%;display:flex;align-items:flex-end;position:relative;cursor:default;border-radius:4px}.bar>div:first-child{width:100%;min-height:2px;border-radius:4px 4px 0 0;background:linear-gradient(180deg,var(--accent),var(--accent-2));transition:opacity .15s}.bars:hover .bar>div:first-child{opacity:.45}.bars .bar.hover>div:first-child{opacity:1}.bar:focus-visible{outline-offset:0}.tooltip{position:absolute;bottom:min(calc(var(--h) + 8px),calc(100% - 70px));left:50%;transform:translate(-50%);z-index:5;display:flex;flex-direction:column;gap:2px;white-space:nowrap;pointer-events:none;background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:8px 12px;font-size:.85rem;box-shadow:0 8px 24px #0004}.tooltip.left{left:0;transform:none}.tooltip.right{left:auto;right:0;transform:none}.rows{list-style:none;margin:0 0 12px;padding:0}.rows li{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--border);flex-wrap:wrap}.rows li:last-child{border-bottom:0}.rows.api li>span:last-child{text-align:right}.token{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.token code{flex:1 1 240px;padding:10px 12px}.clients{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:12px}@media(max-width:400px){.clients{grid-template-columns:1fr}}.client{display:flex;flex-direction:column;gap:8px}.client h2{margin:0}.client ol{margin:4px 0 8px;padding-left:20px;display:flex;flex-direction:column;gap:6px;color:var(--muted);font-size:.9rem}.pill{align-self:flex-start;font-size:.75rem;background:var(--surface-2);border:1px solid var(--border);border-radius:999px;padding:2px 10px;color:var(--muted)}.form{display:flex;flex-direction:column;gap:14px}.form>button{align-self:flex-start}.narrow{max-width:420px}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}@media(max-width:760px){.two-col{grid-template-columns:1fr}}.grid-form{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));align-items:end}.inline-form{flex-direction:row;flex-wrap:wrap;align-items:center;margin-top:16px}.inline-form input:not([type=checkbox]){flex:1 1 160px;width:auto}.users{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:10px}.users li{display:flex;flex-direction:column;gap:6px;padding:12px;background:var(--surface-2);border-radius:12px}.user-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.update{display:flex;flex-direction:column;gap:10px}.update p{margin:0}.notes{max-height:240px;overflow:auto}.discord{background:#313338;border-radius:12px;padding:16px;color:#dbdee1}.discord-embed{display:flex;flex-direction:column;gap:6px;background:#2b2d31;border-left:4px solid;border-radius:4px;padding:10px 14px 14px;max-width:420px}.d-site{font-size:.75rem;color:#b5bac1}.d-title{font-weight:600;color:#00a8fc}.d-desc{font-size:.875rem}.ph{margin-top:6px;aspect-ratio:16 / 9;border-radius:6px;background:linear-gradient(135deg,var(--accent),var(--accent-2));opacity:.8}.discord-raw .ph{max-width:360px}.discord .muted{color:#949ba4;margin:10px 0 0}.toasts{position:fixed;z-index:60;left:50%;transform:translate(-50%);bottom:24px;display:flex;flex-direction:column;gap:8px;align-items:center;pointer-events:none;width:max-content;max-width:calc(100% - 32px)}@media(max-width:760px){.toasts{bottom:calc(84px + env(safe-area-inset-bottom))}}.toast{background:var(--text);color:var(--bg);padding:10px 18px;border-radius:999px;font-weight:500;box-shadow:0 6px 24px #0005;animation:pop .2s ease-out}.toast.error{background:var(--danger);color:#fff}@keyframes pop{0%{opacity:0;transform:translateY(8px)}}.spinner{width:32px;height:32px;border-radius:50%;border:3px solid var(--border);border-top-color:var(--accent);animation:spin .8s linear infinite;margin:40px auto}@keyframes spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}.page-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px 16px;padding-top:16px;margin-top:8px;border-top:1px solid var(--border)}.page-foot a{display:inline-flex;align-items:center;gap:6px;color:var(--muted);text-decoration:none}.page-foot a:hover{color:var(--text)}.page-foot .icon{width:16px;height:16px}.auth-card .page-foot{margin-top:0}.dialog{width:min(440px,calc(100% - 32px));padding:0;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);color:var(--text);box-shadow:0 24px 64px #0008}.dialog::backdrop{background:#000a;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.dialog[open]{animation:dialog-in .16s ease-out}.dialog form{display:flex;flex-direction:column;gap:14px;padding:22px}.dialog h2{margin:0;font-size:1.15rem}.dialog p{margin:0}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:4px}.danger-solid{background:var(--danger);border-color:transparent;color:#fff}.danger-solid:hover{border-color:transparent;filter:brightness(1.1)}@keyframes dialog-in{0%{opacity:0;transform:translateY(8px) scale(.98)}}@media(max-width:760px){.dialog{margin:auto auto 0;width:100%;max-width:100%;border-radius:var(--radius) var(--radius) 0 0}.dialog form{padding-bottom:calc(22px + env(safe-area-inset-bottom))}.dialog-actions>button{flex:1}}
