:root[data-theme="rose"]{--bg:#fff7fa;--panel:#fff;--panel2:#f9edf3;--border:#efdce6;--text:#442c3a;--muted:#7e5b6b;--lime:#b83f75;--mint:#db78a3;--red:#ba424b;--soft:#f9eaf1;--glow:#f4bbd5;--shadow:#79365414;--accent-ink:#fff}
:root[data-theme="peach"]{--bg:#fff8f3;--panel:#fffdfb;--panel2:#faeee6;--border:#efdcd2;--text:#51342e;--muted:#8a635b;--lime:#a94f45;--mint:#d88a6c;--red:#b33846;--soft:#f8e8df;--glow:#f8d2b8;--shadow:#87462c14;--accent-ink:#fff}
:root[data-theme="lilac"]{--bg:#faf7ff;--panel:#fff;--panel2:#f3edf9;--border:#e7dcf1;--text:#3e2f51;--muted:#756281;--lime:#8352b6;--mint:#b183ce;--red:#b04167;--soft:#f0e7f8;--glow:#dbc5f2;--shadow:#64388114;--accent-ink:#fff}
:root[data-theme="mint"]{--bg:#f1faf7;--panel:#fff;--panel2:#e8f4ef;--border:#cfe3da;--text:#213c33;--muted:#587367;--lime:#146b55;--mint:#358a72;--red:#ae384f;--soft:#e1f1e9;--glow:#a7dcc7;--shadow:#164c3512;--accent-ink:#fff}
:root[data-theme="sky"]{--bg:#f3f8ff;--panel:#fff;--panel2:#eaf1fc;--border:#d0def1;--text:#263b56;--muted:#62738b;--lime:#285eae;--mint:#467ab8;--red:#b23850;--soft:#e2edfc;--glow:#b6d1f8;--shadow:#204c8014;--accent-ink:#fff}
:root[data-theme="amber"]{--bg:#fffbf1;--panel:#fffefa;--panel2:#f8efdc;--border:#eadbb8;--text:#443925;--muted:#786c52;--lime:#805819;--mint:#a46f25;--red:#ac3544;--soft:#f5e9cc;--glow:#edcf91;--shadow:#75551c14;--accent-ink:#fff}
:root[data-theme="slate"]{--bg:#f5f6f8;--panel:#fff;--panel2:#eceff3;--border:#d8dde5;--text:#303844;--muted:#687281;--lime:#4b586c;--mint:#6d7b91;--red:#ac354c;--soft:#e8ecf2;--glow:#c2ccd9;--shadow:#29364c12;--accent-ink:#fff}
:root[data-theme="midnight"]{--bg:#0d1526;--panel:#152239;--panel2:#1c2d48;--border:#34465f;--text:#e8effb;--muted:#b0bfd5;--lime:#96bcff;--mint:#69b8c9;--red:#ffadb8;--soft:#223958;--glow:#2b568d;--shadow:#00000030;--accent-ink:#10203b}
:root[data-theme="gold"]{--bg:#191715;--panel:#25211d;--panel2:#302a22;--border:#514735;--text:#f3eee3;--muted:#c4b9a6;--lime:#e6c477;--mint:#c8ac78;--red:#ffaaa0;--soft:#3a3021;--glow:#71572d;--shadow:#00000035;--accent-ink:#2b2110}
:root[data-theme-mode="dark"]{color-scheme:dark}
:root[data-theme-mode="light"]{color-scheme:light}
:root:where([data-theme]):not([data-theme="dark"]) body{background:radial-gradient(ellipse at 5% 0%,var(--soft),transparent 55%),var(--bg)}
:root:where([data-theme]):not([data-theme="dark"]) .brand-mark{color:var(--accent-ink);background:var(--lime);box-shadow:0 6px 16px var(--shadow)}
:root:where([data-theme]):not([data-theme="dark"]) button{background:var(--panel2);border-color:var(--border);color:var(--text)}
:root:where([data-theme]):not([data-theme="dark"]) button:hover{background:var(--soft)}
:root:where([data-theme]):not([data-theme="dark"]) .primary{background:var(--lime);border-color:var(--lime);color:var(--accent-ink)}
:root:where([data-theme]):not([data-theme="dark"]) .primary:hover{background:var(--lime);filter:brightness(1.07);box-shadow:0 7px 22px var(--shadow)}
:root:where([data-theme]):not([data-theme="dark"]) .ghost{background:transparent}
:root:where([data-theme]):not([data-theme="dark"]) .danger{color:var(--red)}
:root:where([data-theme]):not([data-theme="dark"]) input,:root:where([data-theme]):not([data-theme="dark"]) select{background:var(--panel);border-color:var(--border);color:var(--text)}
:root:where([data-theme]):not([data-theme="dark"]) input:focus,:root:where([data-theme]):not([data-theme="dark"]) select:focus{box-shadow:0 0 0 4px var(--soft);outline-color:var(--lime)}
:root:where([data-theme]):not([data-theme="dark"]) label,:root:where([data-theme]):not([data-theme="dark"]) .brand small{color:var(--muted)}
:root:where([data-theme]):not([data-theme="dark"]) .login-shell::before{background:radial-gradient(circle,var(--glow),transparent 66%);opacity:.4}
:root:where([data-theme]):not([data-theme="dark"]) .login-shell::after{background-image:linear-gradient(var(--shadow) 1px,transparent 1px),linear-gradient(90deg,var(--shadow) 1px,transparent 1px);opacity:.35}
:root:where([data-theme]):not([data-theme="dark"]) .intro h1 span{background-image:linear-gradient(100deg,var(--lime) 20%,var(--mint) 45%,var(--lime) 65%,var(--mint) 85%)}
:root:where([data-theme]):not([data-theme="dark"]) .login-box{background:var(--panel);border-color:var(--border);border-radius:24px;box-shadow:0 20px 65px var(--shadow)}
:root:where([data-theme]):not([data-theme="dark"]) .login-box:focus-within{border-color:var(--mint);box-shadow:0 20px 65px var(--shadow),0 0 0 4px var(--soft)}
:root:where([data-theme]):not([data-theme="dark"]) .info-note,:root:where([data-theme]):not([data-theme="dark"]) .security-strip{background:var(--soft);color:var(--muted);border-color:var(--border)}
:root:where([data-theme]):not([data-theme="dark"]) .pill{background:var(--soft);border-color:var(--border);color:var(--lime)}
:root:where([data-theme]):not([data-theme="dark"]) .pill.off{background:var(--panel2);color:var(--muted)}
:root:where([data-theme]):not([data-theme="dark"]) .pill.red{color:var(--red)}
:root:where([data-theme]):not([data-theme="dark"]) .pill:not(.off):not(.red)::before{animation-name:pastel-status}
:root:where([data-theme]):not([data-theme="dark"]) .sidebar{background:var(--panel);border-color:var(--border)}
:root:where([data-theme]):not([data-theme="dark"]) .workspace-label,:root:where([data-theme]):not([data-theme="dark"]) .nav-link,:root:where([data-theme]):not([data-theme="dark"]) .profile small{color:var(--muted)}
:root:where([data-theme]):not([data-theme="dark"]) .nav-link:hover,:root:where([data-theme]):not([data-theme="dark"]) .nav-link.active{background:var(--soft);color:var(--lime)}
:root:where([data-theme]):not([data-theme="dark"]) .nav-link.active::after{box-shadow:0 0 10px var(--glow)}
:root:where([data-theme]):not([data-theme="dark"]) .system-card,:root:where([data-theme]):not([data-theme="dark"]) .avatar{background:var(--soft);border-color:var(--border);color:var(--lime)}
:root:where([data-theme]):not([data-theme="dark"]) .topbar{background:var(--panel);color:var(--muted)}
:root:where([data-theme]):not([data-theme="dark"]) .topbar strong{color:var(--text)}
:root:where([data-theme]):not([data-theme="dark"]) .stat,:root:where([data-theme]):not([data-theme="dark"]) .panel{background:var(--panel);border-color:var(--border);box-shadow:0 3px 18px var(--shadow)}
:root:where([data-theme]):not([data-theme="dark"]) .stat:first-child{background:var(--soft)}
:root:where([data-theme]):not([data-theme="dark"]) .stat .top,:root:where([data-theme]):not([data-theme="dark"]) .stat .sub,:root:where([data-theme]):not([data-theme="dark"]) .stat .top .icon,:root:where([data-theme]):not([data-theme="dark"]) .pack-body .version{color:var(--muted)}
:root:where([data-theme]):not([data-theme="dark"]) .stat:hover,:root:where([data-theme]):not([data-theme="dark"]) .pack-grid>.panel:hover{border-color:var(--mint);box-shadow:0 14px 30px var(--shadow)}
:root:where([data-theme]):not([data-theme="dark"]) .flow-number,:root:where([data-theme]):not([data-theme="dark"]) .flow-item:hover .flow-number{background:var(--soft);border-color:var(--border);color:var(--lime);box-shadow:none}
:root:where([data-theme]):not([data-theme="dark"]) .flow-item:not(:last-child)::before{background:var(--border)}
:root:where([data-theme]):not([data-theme="dark"]) .flow-note{border-color:var(--border);color:var(--muted)}
:root:where([data-theme]):not([data-theme="dark"]) th{background:var(--panel2);color:var(--muted);border-color:var(--border)}
:root:where([data-theme]):not([data-theme="dark"]) td{color:var(--text);border-color:var(--border)}
:root:where([data-theme]):not([data-theme="dark"]) td code,:root:where([data-theme]):not([data-theme="dark"]) .event-icon,:root:where([data-theme]):not([data-theme="dark"]) .empty .icon,:root:where([data-theme]):not([data-theme="dark"]) .content-footer{color:var(--muted)}
:root:where([data-theme]):not([data-theme="dark"]) .pack-row:hover,:root:where([data-theme]):not([data-theme="dark"]) tbody tr:hover{background:var(--bg)}
:root:where([data-theme]):not([data-theme="dark"]) .notice{color:var(--lime)}
:root:where([data-theme]):not([data-theme="dark"]) dialog{background:var(--panel);border-color:var(--border);box-shadow:0 25px 100px var(--shadow)}
:root:where([data-theme]):not([data-theme="dark"]) dialog::backdrop{background:#35213155}
:root:where([data-theme]):not([data-theme="dark"]) #toast{background:var(--panel);border-color:var(--mint);color:var(--text)}
:root:where([data-theme]):not([data-theme="dark"]) #toast.error{background:#fff0f1;border-color:#e8acb7;color:#8c263c}
.theme-picker{display:flex;align-items:center;gap:10px;white-space:nowrap;font-size:11px}.theme-picker select{width:auto;min-width:108px;padding:8px 10px;border-radius:99px;font-size:12px}.login-tools{display:flex;gap:20px;align-items:center}.sidebar .theme-picker{padding:10px 3px;justify-content:space-between}.sidebar .theme-picker select{min-width:104px}
.catalog-item{display:flex;gap:15px;align-items:center;min-width:280px}.catalog-cover{position:relative;overflow:hidden;background:var(--panel2);flex:none}.catalog-cover img{display:block;width:100%;height:100%;object-fit:cover}.catalog-cover-thumb{width:104px;height:66px;border-radius:10px}.catalog-cover-full{width:100%;aspect-ratio:16/10;border-radius:14px}.catalog-cover-placeholder{display:flex;align-items:center;justify-content:center;flex-direction:column;color:var(--muted);gap:8px;border:1px dashed var(--border);font-size:11px}.catalog-cover-placeholder strong{font-size:20px;letter-spacing:4px;color:var(--lime)}
.catalog-cards{gap:18px;background:transparent;padding:22px;grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}.catalog-product{display:block;padding:12px 12px 18px;border:1px solid var(--border);border-radius:18px;box-shadow:0 5px 20px var(--shadow,#0001);transition:transform .3s}.catalog-product:hover{transform:translateY(-4px)}.catalog-product-body{padding:16px 7px 0}.catalog-product-title{font-weight:600;line-height:1.7;min-height:48px;margin-bottom:15px}.catalog-product .pill{font-weight:400}.catalog-title{max-width:450px;white-space:normal;line-height:1.6}
.catalog-cover-full img{object-fit:contain}.authority-panel+.portal-grid{margin-top:22px}
.install-guide{margin-bottom:24px}.install-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px 24px 0}.install-heading h2{font-size:22px;margin:9px 0}.install-heading p{font-size:13px;color:var(--muted);margin:0}.install-heading .download-link{gap:4px;flex-shrink:0}.install-heading .download-link span{font-size:11px}.install-requirements{font-size:12px;color:var(--muted);padding:14px 24px 0;margin:0}.install-steps{padding:0 24px 0 47px;margin:20px 0}.install-steps li{padding:0 0 16px 5px;color:var(--lime)}.install-steps strong{color:var(--text);font-size:14px}.install-steps p{margin:7px 0 0;color:var(--muted);font-size:12px;line-height:1.9}.install-guide code{color:var(--lime);overflow-wrap:anywhere}.install-guide kbd{border:1px solid var(--border);padding:1px 5px;border-radius:4px;font-size:11px}.install-help{padding:17px 24px;border-top:1px solid var(--border);font-size:12px;color:var(--muted);line-height:1.9}.install-help summary{cursor:pointer;color:var(--lime)}.install-help p{margin:10px 0 0}@media(max-width:850px){.install-heading{align-items:flex-start;flex-direction:column}.install-heading .download-link{width:100%;justify-content:center}}
.authority-panel{margin-top:24px}.authority-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;padding:22px}.authority-step{padding:18px;border:1px solid var(--border);border-radius:14px;background:var(--panel2)}.authority-step small{color:var(--muted);font-size:11px}.authority-step strong{display:block;font-size:24px;margin:10px 0;color:var(--lime)}.authority-step p{font-size:12px;color:var(--muted);margin:0}.authority-detail{border-top:1px solid var(--border);padding:18px 22px;font-size:12px;line-height:1.9}.authority-detail summary{cursor:pointer;color:var(--lime)}.authority-detail ol{padding-left:22px;color:var(--muted)}.authority-leases{padding:0 22px 20px;font-size:12px;color:var(--muted)}
@keyframes pastel-status{0%{box-shadow:0 0 0 0 var(--glow)}75%,100%{box-shadow:0 0 0 6px transparent}}
@media(max-width:850px){.login-tools{gap:10px}.login-tools>.pill{display:none}.authority-grid{grid-template-columns:1fr}.catalog-cards{padding:15px}}
@media(max-width:550px){.theme-picker>span{display:none}.login-nav .brand{font-size:16px}.theme-picker select{min-width:100px}.login-tools{margin-left:auto}.catalog-cover-thumb{width:80px;height:56px}}
@media(prefers-reduced-motion:reduce){:root:where([data-theme]):not([data-theme="dark"]) .intro h1 span{background:none;color:var(--lime)}.catalog-product:hover{transform:none}}

.install-downloads{display:flex;flex-direction:column;gap:9px;min-width:240px}.install-downloads>span{font-size:12px;color:var(--muted)}.install-downloads .download-link{justify-content:center}@media(max-width:850px){.install-downloads{width:100%;min-width:0}}

#upload-progress,#import-progress progress{width:100%;height:10px;accent-color:var(--lime)}
#import-progress{margin-top:22px}
.pack-actions{flex-wrap:wrap;gap:8px}
:root[data-theme-mode="dark"] #toast.error{background:var(--status-error-bg);border-color:var(--status-error-border);color:var(--status-error)}
:root[data-theme-mode="dark"] .feedback-open{color:var(--status-info);background:var(--status-info-bg)}
:root[data-theme-mode="dark"] .feedback-reviewing,:root[data-theme-mode="dark"] .feedback-warning{color:var(--status-warning);background:var(--status-warning-bg);border-color:var(--border)}
:root[data-theme-mode="dark"] .feedback-needs_info{color:#d2b6f6;background:#342847}
:root[data-theme-mode="dark"] .feedback-resolved{color:var(--status-ok);background:var(--status-ok-bg)}
:root[data-theme-mode="dark"] .feedback-invalid{color:var(--status-error);background:var(--status-error-bg)}
:root[data-theme-mode="dark"] dialog::backdrop{background:#050810b8}
