[data-theme="aihub"] {
  --p: 54.49% 0.215 262.74;
  --pc: 100.00% 0.000 0.00;
  --s: 96.27% 0.012 264.51;
  --sc: 20.64% 0.039 265.55;
  --a: 50.67% 0.175 4.35;
  --ac: 100.00% 0.000 0.00;
  --n: 23.16% 0.056 264.91;
  --nc: 96.50% 0.008 264.52;
  --b1: 100.00% 0.000 0.00;
  --b2: 97.43% 0.005 264.54;
  --b3: 92.47% 0.011 264.51;
  --bc: 20.64% 0.039 265.55;
  --su: 61.12% 0.161 149.70;
  --er: 57.86% 0.214 27.17;
  --rounded-box: 1.1rem;
  --rounded-btn: 0.7rem;
  --navy: #0a1b3d;
  --navy-2: #0e2452;
  --ink-soft: #44506b;
  --mute: #7c89a6;
}
body { color: oklch(var(--bc)); font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; }

/* brand */
.brand { display: flex; align-items: center; gap: .75rem; }
.brand-title { margin: 0; font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
.brand-lg .brand-title { font-size: 1.4rem; }
.brand-sub { margin: 2px 0 0; font-size: .78rem; color: var(--mute); }
.brand-logo { display: block; width: auto; height: 45px; }
.brand-side, .brand-login { flex-direction: column; align-items: flex-start; gap: .35rem; }
.brand-login .brand-logo { height: 56px; }
.mobile-logo { display: block; width: auto; height: 28px; }

/* login */
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: radial-gradient(1200px 600px at 10% -10%, #dbe7ff 0%, transparent 60%), radial-gradient(900px 500px at 100% 110%, #ffe4ee 0%, transparent 55%), oklch(var(--b2)); }
.login-card { width: 100%; max-width: 26rem; display: grid; gap: 1rem; padding: 2rem; border-radius: 1.4rem; background: #fff; box-shadow: 0 30px 80px -40px rgba(10, 27, 61, .5), 0 1px 3px rgba(10, 27, 61, .06); }

/* shell */
.shell { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: .25rem; padding: 1.1rem .9rem; background: linear-gradient(170deg, var(--navy), var(--navy-2) 70%, #1d3a8a); color: #dbe4f6; overflow-y: auto; }
.side .brand { padding: .3rem .4rem 1rem; color: #fff; }
.side .brand-sub { color: #9fb1d9; }
.side-group { margin: .9rem .5rem .35rem; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8fa3cf; }
.side-link { display: flex; align-items: center; gap: .65rem; padding: .55rem .7rem; border-radius: .8rem; color: #dbe4f6; font-weight: 600; font-size: .9rem; text-decoration: none; transition: background .15s, color .15s; }
.side-link:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.side-link.active { background: #fff; color: var(--navy); box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .6); }
.side-link .count { margin-left: auto; font-size: .7rem; font-weight: 700; padding: .1rem .5rem; border-radius: 999px; background: rgba(255, 255, 255, .14); }
.side-link.active .count { background: oklch(var(--b3)); }
.side-foot { margin-top: auto; padding-top: 1rem; }
.pico { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font-size: .7rem; font-weight: 800; color: #fff; flex: none; }
.pico-lg { width: 44px; height: 44px; border-radius: 13px; font-size: 1rem; }
.pico-xl { width: 60px; height: 60px; border-radius: 18px; font-size: 1.3rem; }
.pico-free { background: linear-gradient(135deg, #2563eb, #1d3a8a); }
.pico-0 { background: linear-gradient(135deg, #b23a5a, #7a1f3b); }
.pico-1 { background: linear-gradient(135deg, #0ea5a4, #0f766e); }
.pico-2 { background: linear-gradient(135deg, #f97316, #c2410c); }
.pico-3 { background: linear-gradient(135deg, #7c3aed, #4c1d95); }
.pico-4 { background: linear-gradient(135deg, #16a34a, #166534); }
.pico-5 { background: linear-gradient(135deg, #0ea5e9, #0369a1); }
.pico-logo { background: #fff; padding: 2px; box-shadow: inset 0 0 0 1px rgba(10, 27, 61, .08); }
.pico-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.pico-lg.pico-logo img, .pico-xl.pico-logo img { border-radius: 10px; }
.pico-premium { background: linear-gradient(135deg, #d4a017, #92400e); }
.shell > div { min-width: 0; }
.main { padding: 1.5rem 2rem 3rem; max-width: 1280px; width: 100%; min-width: 0; }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.topbar h1 { margin: 0; font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.topbar .crumbs { display: flex; gap: .4rem; align-items: center; font-size: .8rem; color: var(--mute); margin-bottom: .25rem; }
.topbar .crumbs a { color: oklch(var(--p)); font-weight: 600; }
.mobile-bar { display: none; }
@media (max-width: 1023px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 264px; z-index: 40; transform: translateX(-100%); transition: transform .2s; }
  .shell.nav-open .side { transform: none; }
  .mobile-bar { display: flex; align-items: center; gap: .75rem; padding: .7rem 1rem; background: #fff; box-shadow: 0 1px 0 oklch(var(--b3)); position: sticky; top: 0; z-index: 30; }
  .main { padding: 1rem 1rem 3rem; }
  .backdrop { position: fixed; inset: 0; background: rgba(10, 27, 61, .4); z-index: 35; }
}

/* cards & stats */
.panel { border-radius: var(--rounded-box); background: #fff; box-shadow: 0 1px 3px rgba(11, 21, 38, .06), 0 10px 30px -22px rgba(11, 21, 38, .35); }
.panel-body { padding: 1.25rem 1.4rem; }
.panel-title { display: flex; align-items: center; gap: .6rem; margin: 0 0 .6rem; font-size: 1rem; font-weight: 800; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .9rem; margin-bottom: 1.25rem; }
.stat-card { border-radius: 1rem; background: #fff; padding: 1rem 1.2rem; box-shadow: 0 1px 3px rgba(11, 21, 38, .06), 0 10px 30px -22px rgba(11, 21, 38, .35); }
.stat-card .value { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.stat-card .label { margin-top: .2rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); font-weight: 700; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.product-card { display: flex; flex-direction: column; gap: .8rem; padding: 1.2rem 1.3rem; }
.product-card .head { display: flex; align-items: center; gap: .8rem; }
.product-card .title { font-weight: 800; font-size: 1.05rem; line-height: 1.2; }
.product-card .desc { color: var(--ink-soft); font-size: .85rem; line-height: 1.5; }
.product-card .facts { display: flex; gap: 1.2rem; }
.product-card .facts span { display: flex; flex-direction: column; }
.product-card .facts small { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); font-weight: 700; }
.product-card .facts b { font-size: 1.15rem; }
.product-card .foot { margin-top: auto; display: flex; gap: .5rem; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .6rem; border-radius: 999px; background: oklch(var(--b2)); font-size: .74rem; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.chip-ok { background: #e2f5e9; color: #15803d; }
.chip-warn { background: #fff1d6; color: #8a5a00; }
.chip-err { background: #fde6e6; color: #b42323; }
.chip-info { background: #eaf1fe; color: #1d4ed8; }
.chip-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.kind-module { background: #eaf1fe; color: #1d4ed8; }
.kind-theme { background: #fde8f0; color: #a3214f; }
.kind-feature { background: #ede9fe; color: #5b21b6; }
.key-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem; border-radius: 999px; background: oklch(var(--b2)); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; font-weight: 700; }
.table :where(th) { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
.table tr.hover:hover td { background: oklch(var(--b2)); cursor: pointer; }
.toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: .9rem; }
.tabs-pill { display: inline-flex; gap: .25rem; padding: .25rem; border-radius: 999px; background: oklch(var(--b3)); margin-bottom: 1rem; }
.tabs-pill a { padding: .45rem 1rem; border-radius: 999px; font-weight: 700; font-size: .85rem; color: var(--ink-soft); text-decoration: none; }
.tabs-pill a.active { background: #fff; color: oklch(var(--bc)); box-shadow: 0 2px 8px -4px rgba(11, 21, 38, .4); }
.release-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; }
.release-col { border: 1px solid oklch(var(--b3)); border-radius: .9rem; padding: .8rem .9rem; }
.release-col .ch { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; font-weight: 800; font-size: .85rem; }
.release-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .35rem 0; border-top: 1px solid oklch(var(--b2)); font-size: .82rem; }
.release-row:first-of-type { border-top: 0; }
.release-main { display: flex; align-items: flex-start; gap: .55rem; min-width: 0; }
.release-main .checkbox { margin-top: .15rem; }
.bulk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-bottom: 1rem; padding: .7rem 1rem; border-radius: var(--rounded-box); background: #fff; box-shadow: 0 1px 3px rgba(11, 21, 38, .06); }
.panel-body > .bulk-bar { padding: 0 0 .8rem; border-radius: 0; box-shadow: none; border-bottom: 1px solid oklch(var(--b3)); }
.release-row .v { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; }
.release-row .meta { color: var(--mute); font-size: .72rem; }
.release-row.latest .v { color: oklch(var(--p)); }
.empty { padding: 1rem 0; color: var(--mute); }
.toast-fixed { position: fixed; right: 1rem; bottom: 1rem; z-index: 60; }
dialog.modal .modal-box { max-width: 42rem; border-radius: 1.2rem; }
.form-control .label-text { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); font-weight: 700; }
.act-row { padding: .6rem 0; border-top: 1px solid oklch(var(--b3)); }
.act-row:first-child { border-top: 0; }
