
.filter-bar{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;margin-bottom:4px}
.filter-bar label{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--muted)}
.filter-bar .grow{flex:1;min-width:220px}
.filter-bar input,.filter-bar select{padding:7px 9px;background:var(--bg);border:1px solid var(--line);border-radius:6px;color:var(--fg)}
.filter-bar .actions{display:flex;gap:8px;align-items:center}
:root{--bg:#0f1115;--panel:#171a21;--panel2:#1e222b;--line:#2a2f3a;--text:#e6e9ef;--muted:#9aa3b2;--accent:#4c8dff;--ok:#2fbf71;--bad:#e5484d;--warn:#f5a524}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);font:14px/1.5 ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
code,pre,.code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.sidebar{position:fixed;inset:0 auto 0 0;width:232px;display:flex;flex-direction:column;gap:2px;
  padding:14px 10px;background:var(--panel);border-right:1px solid var(--line);z-index:20;
  transition:width .15s ease;overflow:hidden}
.brand{display:flex;align-items:center;gap:10px;padding:6px 8px 14px;font-weight:700;font-size:16px;color:var(--text)}
.logo{color:var(--accent);font-size:18px;line-height:1}
.side-nav{display:flex;flex-direction:column;gap:2px;flex:1;overflow-y:auto;overflow-x:hidden}
/* Collapsible cards: the artifacts list is long and is not what you open a repository page for. */
details.collapsible>summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:8px}
details.collapsible>summary::-webkit-details-marker{display:none}
details.collapsible>summary h2{margin:0}
details.collapsible>summary::before{content:'▸';color:var(--muted);transition:transform .12s ease}
details.collapsible[open]>summary::before{transform:rotate(90deg)}
details.collapsible[open]>summary{margin-bottom:10px}
/* The account sits at the foot of the rail: identity, then the action that ends the session. */
.nav-account{margin-top:auto;padding:10px 0 2px;border-top:1px solid var(--line);display:flex;
  flex-direction:column;gap:6px}
.nav-account-name{display:flex;flex-direction:column;gap:1px;padding:0 10px;overflow:hidden}
.nav-account-label{color:var(--text);font-size:13px;font-weight:600;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis}
.nav-account-role{color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.07em}
.nav-signout-form{margin:0}
.nav-signout{width:100%;background:none;border:0;cursor:pointer;font:inherit;text-align:left;
  /* the global button rule centres its content; a nav item's icon must sit with the others */
  justify-content:flex-start;height:auto;padding:8px 10px}
.nav-signout:hover{background:var(--panel2);color:var(--text)}
html.nav-collapsed .nav-account-name{display:none}
html.nav-collapsed .nav-signout{justify-content:center;padding:8px 0}
.nav-item{display:flex;align-items:center;gap:11px;padding:8px 10px;border-radius:7px;color:var(--muted);
  white-space:nowrap;text-decoration:none}
.nav-item:hover{background:var(--panel2);color:var(--text);text-decoration:none}
.nav-item.active{background:var(--panel2);color:var(--text);box-shadow:inset 2px 0 0 var(--accent)}
.nav-icon{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;
  stroke-linecap:round;stroke-linejoin:round}
.nav-item.sub{padding-left:34px;font-size:13px;color:var(--muted)}
.nav-item.sub .nav-icon{width:15px;height:15px;opacity:.85}
html.nav-collapsed .nav-item.sub{padding-left:0}
html.nav-collapsed .nav-item.sub .nav-icon{width:16px;height:16px;opacity:1}
.nav-separator{margin:10px 10px 6px;border-top:1px solid var(--line)}
html.nav-collapsed .nav-separator{margin:10px 6px 6px}
.nav-group-label{margin:14px 10px 4px;font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);opacity:.7}
.nav-toggle{margin-top:8px;display:flex;align-items:center;justify-content:center;gap:8px;padding:8px;
  background:transparent;border:1px solid var(--line);border-radius:7px;color:var(--muted);cursor:pointer}
.nav-toggle:hover{color:var(--text);border-color:var(--accent)}
.nav-toggle svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;
  stroke-linejoin:round;transition:transform .15s ease}
html.nav-collapsed .sidebar{width:64px}
html.nav-collapsed .nav-text,.nav-collapsed .nav-group-label{display:none}
html.nav-collapsed .nav-item{justify-content:center;padding:9px 0}
html.nav-collapsed .brand{justify-content:center;padding:6px 0 14px}
html.nav-collapsed .nav-toggle svg{transform:rotate(180deg)}
.shell{margin-left:232px;min-height:100vh;display:flex;flex-direction:column;
  transition:margin-left .15s ease,margin-right .15s ease}
html.nav-collapsed .shell{margin-left:64px}
/* The right panel reserves space the way the left rail does: the content is pushed, not covered. */
html.panel-open .shell{margin-right:var(--panel-w,440px)}
html.panel-open.panel-collapsed .shell{margin-right:44px}
.topbar{display:flex;align-items:center;justify-content:flex-end;gap:16px;padding:10px 24px;
  background:var(--panel);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:10}
.user{display:flex;align-items:center;gap:10px;color:var(--muted)}
main{flex:1;width:100%;max-width:1180px;margin:0 auto;padding:24px}
h1{font-size:22px;margin:0 0 16px}
h2{font-size:15px;margin:0 0 12px;color:var(--text)}
.page-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
.linkish{background:none;border:0;padding:0;color:var(--accent,#5b9dff);font:inherit;cursor:pointer}
.linkish:hover{text-decoration:underline}
.dialog{border:1px solid var(--line);border-radius:12px;background:var(--panel);color:inherit;
  padding:20px;width:min(640px,92vw);max-height:88vh;overflow:auto}
.dialog::backdrop{background:rgba(0,0,0,.55)}
.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.dialog-head h2{margin:0;font-size:17px}
.card{background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:18px;margin-bottom:18px;
  /* A table with many columns (the audit log gained Node and Subject) is wider than the card. Scrolling
     the card keeps the page layout intact; without it the last columns are simply clipped away. */
  overflow-x:auto}
th{white-space:nowrap}
.card summary{cursor:pointer;padding:2px 0}
table{width:100%;border-collapse:collapse;font-size:13px}
th,td{text-align:left;padding:8px 10px;border-bottom:1px solid var(--line);vertical-align:top}
th{color:var(--muted);font-weight:600;font-size:12px;text-transform:uppercase;letter-spacing:.04em;white-space:nowrap}
tr:last-child td{border-bottom:none}
.muted{color:var(--muted)}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin-bottom:18px}
.stat{background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:16px}
.chip{display:inline-flex;align-items:center;gap:5px}
.chip svg{width:12px;height:12px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round;opacity:.85}
code.ip{font-size:12px;color:var(--muted)}
/* Pager: rows-per-page on the left, position in the middle, navigation on the right. */
.pager{display:flex;align-items:center;gap:16px;justify-content:space-between;margin-top:12px;flex-wrap:wrap}
.pager .inline-form{display:flex;align-items:center;gap:8px}
.pager-buttons{display:inline-flex;gap:8px}
.button.disabled{opacity:.45;pointer-events:none}
.status-icon{display:inline-flex;align-items:center;margin-left:8px;vertical-align:middle}
.stat-value{font-size:26px;font-weight:700}
.stat-label{color:var(--accent);text-transform:uppercase;font-size:11px;letter-spacing:.08em}
.stat-sub{color:var(--muted);font-size:12px;margin-top:4px}
.pill{display:inline-block;padding:2px 8px;border-radius:999px;background:var(--panel2);border:1px solid var(--line);font-size:11px;text-transform:uppercase;letter-spacing:.04em}
.pill.pypi{color:#8ab4ff}.pill.deb{color:#ffb86b}.pill.rpm{color:#9be3b4}.pill.oci{color:#c9a8ff}
.badge{display:inline-block;padding:1px 7px;border-radius:5px;font-size:11px;background:var(--panel2);border:1px solid var(--line)}
.badge.ok{color:var(--ok);border-color:#1f4d38}
.badge.bad{color:var(--bad);border-color:#5a2326}
.badge.admin{color:var(--warn);border-color:#5a4520}
.notice-fading{opacity:0;transition:opacity .25s ease}
.notice{padding:12px 14px;border-radius:8px;margin-bottom:16px;border:1px solid var(--line);background:var(--panel)}
.notice.ok{border-color:#1f4d38;color:#b9f0d0}
.notice.err{border-color:#5a2326;color:#ffc9cb}
/* The edge node's read-only banner: neutral, but marked with the accent so it reads as an
   explanation rather than as a failure. It is not [data-flash], so it stays on the page. */
.notice.edge-readonly{border-color:var(--accent)}
.notice.edge-readonly strong{color:var(--accent)}
pre.code{background:#0b0d11;border:1px solid var(--line);border-radius:8px;padding:14px;overflow:auto;font-size:12.5px;color:#cfe1ff}
form.form{display:flex;flex-direction:column;gap:12px}
form.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
form.inline-form{display:flex;flex-direction:row;flex-wrap:wrap;gap:8px;align-items:flex-end;margin-top:12px}
label{display:block;color:var(--muted);font-size:12px}
label>input,label>select,label>textarea{display:block;margin-top:5px;width:100%}
label>.hint{display:inline;margin-left:6px;font-size:11px}
label>input[type=number]{max-width:200px}
label.checkbox{display:flex;flex-direction:row;align-items:center;gap:8px}
label.radio{display:flex;flex-direction:row;align-items:center;gap:8px;color:var(--text);font-size:13px;cursor:pointer}
label.radio>input{width:auto;margin:0;accent-color:var(--accent)}
.checks{gap:22px}
.auth-panel{margin-top:14px}
/* Show only the selected provider's form. Without :has() support every panel stays visible, which
   is untidy but never hides the active configuration. */
body:has(#externalProvider-local:checked) .auth-panel:not(.auth-panel-local),
body:has(#externalProvider-oidc:checked) .auth-panel:not(.auth-panel-oidc),
body:has(#externalProvider-oauth2:checked) .auth-panel:not(.auth-panel-oauth2),
body:has(#externalProvider-google:checked) .auth-panel:not(.auth-panel-google),
body:has(#externalProvider-github:checked) .auth-panel:not(.auth-panel-github){display:none}
.create-panel{margin-top:14px}
.create-panel[hidden]{display:none}
button.button{background:var(--panel2);border:1px solid var(--line);color:var(--text);border-radius:6px;
  padding:0 14px;font:inherit;cursor:pointer}
button.button:hover{border-color:var(--accent)}
label.checkbox>input{width:auto;margin:0}
/* One control height everywhere: an input, a select and the button beside it must line up, and the
   buttons were 4-6px taller than the fields they sat next to. */
:root{--control-h:32px}
input:not([type="checkbox"]):not([type="radio"]),select{background:#0b0d11;border:1px solid var(--line);
  border-radius:6px;padding:0 10px;color:var(--text);font:inherit;height:var(--control-h);box-sizing:border-box}
textarea{background:#0b0d11;border:1px solid var(--line);border-radius:6px;padding:8px 10px;color:var(--text);font:inherit}
input:focus,select:focus,textarea:focus{outline:1px solid var(--accent)}
textarea{font-family:ui-monospace,monospace;font-size:12px}
button{background:var(--panel2);border:1px solid var(--line);color:var(--text);border-radius:6px;
  padding:0 14px;height:var(--control-h);font:inherit;cursor:pointer;box-sizing:border-box;
  display:inline-flex;align-items:center;justify-content:center;gap:6px}
button.primary{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:600}
button.danger{color:var(--bad);border-color:#5a2326}
button.link{background:none;border:none;color:var(--accent);padding:0;height:auto;cursor:pointer;
  text-decoration:underline;font:inherit;display:inline;align-items:baseline}
button.small,.button.small{height:26px;padding:0 10px;font-size:12px}
button.link.danger{color:var(--bad)}
.inline{display:inline}
.actions{display:flex;align-items:flex-end}
.login-wrap{max-width:380px;margin:6vh auto}
.login-logo{display:block;background:#f4f6fb;border-radius:14px;padding:14px;margin:0 auto 18px;width:258px}
.login-logo img{display:block;width:230px;height:auto}
.brand-mark{width:26px;height:26px;display:block;flex:none}
.account-table td{padding-top:10px;padding-bottom:10px}
.account-table input{width:100%;max-width:520px}
.account-table .actions{margin-top:0}
.pw-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;max-width:620px}
.pw-fields label{display:block;font-size:12px;color:var(--muted)}
.pw-fields input{display:block;width:100%;margin-top:4px}
.account-table .hint{margin-left:6px}
/* Startup splash: shown once per browser session, centred, then fades out. */
#splash{position:fixed;inset:0;z-index:9999;display:flex;flex-direction:column;align-items:center;
  justify-content:center;gap:16px;background:var(--bg);transition:opacity .45s ease}
html.splash-seen #splash{display:none}
#splash.hiding{opacity:0;pointer-events:none}
#splash .splash-logo{background:#f4f6fb;border-radius:16px;padding:16px;width:272px}
#splash .splash-logo img{display:block;width:240px;height:auto}
#splash .splash-bar{width:120px;height:2px;border-radius:2px;background:var(--line);overflow:hidden}
#splash .splash-bar span{display:block;height:100%;width:40%;background:var(--accent);
  animation:splashbar 1.1s ease-in-out infinite}
@keyframes splashbar{0%{transform:translateX(-100%)}100%{transform:translateX(320%)}}
@media (prefers-reduced-motion: reduce){
  #splash .splash-bar span{animation:none;width:100%}
  #splash{transition:none}
}
.sso-group{display:flex;flex-direction:column;gap:10px;margin-bottom:16px}
.shell-bare{margin-left:0}
.signin-note{text-align:center;font-size:12px;max-width:420px;margin:0 auto 14px}
.sso{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;text-align:center;
  padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--text)}
/* The mark is decorative: fixed size, and it must not shrink when the label is long. */
.provider-mark{width:16px;height:16px;flex:none;fill:currentColor}
.divider{text-align:center;color:var(--muted);margin:16px 0;position:relative}
.footer{max-width:1180px;width:100%;margin:0 auto;padding:20px 24px;color:var(--muted);font-size:12px;border-top:1px solid var(--line)}
.path{font-size:12px;word-break:break-all}
.digest{font-size:12px;color:var(--muted)}
.created-token pre{margin:10px 0}
.upload{margin-top:16px;border-top:1px solid var(--line);padding-top:12px}
.upload summary{cursor:pointer;color:var(--accent)}
.danger-zone{margin-top:18px;border-top:1px solid var(--line);padding-top:14px}
button.ghost{background:transparent}
.probe-slot{margin-top:8px}
.probe{border:1px solid var(--line);border-radius:8px;padding:10px 12px;background:#0b0d11;font-size:12.5px}
.probe.ok{border-color:#1f4d38}
.probe.bad{border-color:#5a2326}
.probe ul{margin:8px 0 0 18px;padding:0;color:var(--muted)}
.probe .ok-line{color:var(--ok);margin-top:4px}
.probe .bad-line{color:var(--bad);margin-top:4px}
.anonymous-row td{background:rgba(255,255,255,0.02)}
.caret{color:var(--muted);font-size:10px}
.panel-row td{padding:0;background:#12151b}
.panel{padding:12px 16px;border-top:1px dashed var(--line);width:100%}
/* Settings summary: one row per setting, action aligned right. */
.test-status{display:inline-block;margin-left:8px;vertical-align:middle}
/* Actions sit apart from the numeric columns so the row does not read as one long run of cells. */
td.actions-cell{padding-left:20px;padding-right:0;text-align:right}
td.actions-cell>*{margin-left:6px}
.panel-rows{display:grid;grid-template-columns:120px minmax(0,1fr) auto;gap:8px 16px;align-items:center;width:100%}
.pr-label{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.pr-value{font-size:13px;min-width:0;overflow-wrap:anywhere}
.pr-actions{justify-self:end}
/* The one navigation action sits centred under the settings rows. */
.panel-footer{display:flex;justify-content:center;margin-top:12px}
.pr-actions form{display:flex;gap:8px;align-items:center;margin:0}
/* One control height for the whole panel: the select and the button were different heights, which made
   the row look ragged. */
.pr-actions select{min-width:260px}
.panel-rows select,
.panel-rows button,
.panel-rows a.button,
.panel-footer button{height:34px;padding:0 14px;box-sizing:border-box;
  display:inline-flex;align-items:center;line-height:1}
.panel-rows .checkbox{display:inline-flex;align-items:center;gap:6px;height:34px}
.panel .notice{margin:0 0 10px}
/* Explicit tracks: auto-fit collapsed to a single column inside a table cell, which left two thirds of
   the panel empty and pushed four small controls down the page. */
.panel-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px 24px;align-items:start;width:100%}
@media (max-width:1000px){.panel-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.panel-grid{grid-template-columns:1fr}}
.panel h3.fact{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--accent);margin:0 0 6px}
.panel form{display:flex;flex-direction:row;flex-wrap:wrap;align-items:flex-end;gap:8px;margin:0}
.panel form label{font-size:12px;display:flex;flex-direction:column;gap:4px}
.panel p{margin:0 0 6px}
.panel .muted{font-size:12px;line-height:1.45}
.panel-row>td{padding:0;border:0}
.panel-slot:empty{display:none}
/* Row action: same size as every other control, filled like a primary button. Hover brightens rather
   than inverting — the glyph stays legible instead of flipping to an outline. */
.icon-link{display:inline-flex;align-items:center;justify-content:center;width:var(--control-h);
  height:var(--control-h);padding:0;gap:0;border:1px solid var(--accent);border-radius:6px;
  background:var(--accent);color:#fff;text-decoration:none;line-height:1;box-sizing:border-box;
  transition:background .12s ease}
/* flex:none matters: inside a 32px button the inherited padding left a 4px content box and the icon
   was being shrunk to a sliver. */
.icon-link svg{width:17px;height:17px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;
  stroke-linecap:round;stroke-linejoin:round}
.icon-link:hover{background:#5d97ff;border-color:#5d97ff}
.row-expander{background:none;border:0;color:var(--muted);cursor:pointer;padding:0 6px 0 0;
  font-size:12px;line-height:1}
.row-expander:hover{color:var(--text)}
.child-row>td{background:rgba(255,255,255,.02)}
.child-first{padding-left:26px !important;font-size:12px}
.child-row>td{font-size:12px;color:var(--muted)}
.child-row code{font-size:12px}
.icon-link:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
/* Destructive variant: same shape, red, brightened on hover. */
.icon-link.danger{background:var(--bad);border-color:var(--bad);color:#fff}
.icon-link.danger:hover{background:#ef6068;border-color:#ef6068}
/* Bulk action bar: appears with the selection and states how many rows it will act on. */
/* Below the table and always present: hiding it with display:none made the page jump as soon as a row
   was selected, because everything above moved up. */
.bulk-bar{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin:10px 0 0;min-height:32px}
.bulk-count{font-size:12px;color:var(--muted)}
.bulk-bar button.danger{display:inline-flex;align-items:center;gap:8px}
.bulk-bar button.danger svg{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;
  stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
button.danger:not(.link){background:var(--bad);border-color:var(--bad);color:#fff}
button.danger:not(.link):hover{background:#ef6068;border-color:#ef6068}
.artifact-path{cursor:pointer;text-decoration:underline dotted}
.artifact-path:hover{color:var(--accent)}
.artifact-detail-slot:empty{display:none}
/* Side panel on the right: the mirror of the navigation rail. Context that would otherwise be an
   injected table row, closed with Escape or the × button. */
.drawer{position:fixed;top:0;right:0;bottom:0;width:var(--panel-w,440px);max-width:100vw;z-index:30;
  background:var(--panel);border-left:1px solid var(--line);box-shadow:-18px 0 40px rgba(0,0,0,.45);
  display:flex;flex-direction:column;transition:transform .15s ease}
.drawer[hidden]{display:none}
/* [hidden] flips display, so a transform transition has nothing to animate from: the panel used to
   appear instantly while the page slid, which is what read as "not smooth". */
.drawer:not([hidden]){animation:packorama-panel-in .15s ease both}
@keyframes packorama-panel-in{from{transform:translateX(18px);opacity:.55}to{transform:none;opacity:1}}
/* Drag the left edge to widen the panel; the shell margin follows because both read --panel-w. */
.drawer-grip{position:absolute;left:0;top:0;bottom:0;width:7px;cursor:col-resize;z-index:2}
.drawer-grip:hover,.drawer-grip.dragging{background:linear-gradient(to right,rgba(91,157,255,.45),transparent)}
html.panel-collapsed .drawer-grip{display:none}
.drawer-head{display:flex;align-items:center;gap:10px;padding:12px 16px;border-bottom:1px solid var(--line)}
.drawer-head h2{margin:0;font-size:14px;flex:1}
.drawer-close{background:none;border:0;color:var(--muted);font-size:20px;line-height:1;cursor:pointer;padding:0 4px}
.drawer-close:hover{color:var(--text)}
.drawer-toggle{background:none;border:0;color:var(--muted);font-size:18px;line-height:1;cursor:pointer;padding:0 4px}
.drawer-toggle:hover{color:var(--text)}
/* Collapsed like the navigation rail: a narrow strip that keeps the reopen control visible. */
/* Any panel, not just the artifact one: keyed to a single id, a second panel stayed 440px wide with
   its body visible when the rail collapsed. */
html.panel-collapsed .drawer{width:44px}
html.panel-collapsed .drawer .drawer-body,
html.panel-collapsed .drawer h2,
html.panel-collapsed .drawer .drawer-close{display:none}
html.panel-collapsed .drawer .drawer-head{flex-direction:column;padding:10px 6px}
html.panel-collapsed .drawer .drawer-toggle{transform:rotate(180deg)}
.drawer-body{overflow-y:auto;padding:14px 16px}
@media (max-width:820px){.drawer{width:100%}}
.artifact-detail{padding:12px 14px;background:#12151b;border-top:1px dashed var(--line)}
.detail-head{margin-bottom:8px}
.detail-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:6px 18px}
.detail-field{display:flex;gap:8px;font-size:12.5px}
.detail-label{color:var(--muted);min-width:120px}
.detail-value{word-break:break-word}
.detail-value.mono{font-family:ui-monospace,monospace;font-size:12px}
.detail-links{margin-top:10px;font-size:12.5px}

/* --- layout pass: stat cards, buttons-as-links, form groups, table polish --- */
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px;margin-bottom:18px}
.cards .card{margin:0;padding:16px 18px}
.cards .card h3{margin:0;font-size:24px;font-weight:700;letter-spacing:-0.01em}
.cards .card p{margin:2px 0 0;font-size:12px}
a.button{display:inline-flex;align-items:center;justify-content:center;height:var(--control-h);box-sizing:border-box;padding:0 14px;border:1px solid var(--line);
  border-radius:6px;background:var(--panel2);color:var(--text);text-decoration:none;font-size:14px;line-height:1.2}
a.button:hover{background:#262b36;text-decoration:none}
.actions{gap:8px;flex-wrap:wrap}
.card>h2{font-size:13px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);
  margin:0 0 14px;padding-bottom:10px;border-bottom:1px solid var(--line)}
.card>h2 .count{color:var(--muted);font-weight:400;text-transform:none;letter-spacing:0}
tbody tr:hover td{background:rgba(255,255,255,.025)}
th.num,td.num{text-align:right;font-variant-numeric:tabular-nums}
td.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px}
.fieldgroup{display:flex;flex-direction:column;gap:10px;padding:14px;border:1px solid var(--line);
  border-radius:8px;background:#12151b}
.fieldgroup>h3{margin:0;font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--accent)}
/* A row of fields is a grid everywhere: scoping this to .fieldgroup left the storage form's first row
   as a plain block, so Name, Kind and the default toggle each took a full line. */
.row{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px;align-items:start}
.fieldgroup .row{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}
.fieldgroup .row .wide{grid-column:span 2}
form.form{margin-bottom:16px}
input[type=number]{max-width:200px}
.fieldgroup label.checkbox{align-self:flex-start}
.grant-row{display:grid;grid-template-columns:130px minmax(240px,1fr) 150px auto;gap:12px;align-items:end}
.grant-row .actions{padding-bottom:1px}
.grant-row.is-disabled{opacity:.55}
.grant-row.is-disabled input,.grant-row.is-disabled select,.grant-row.is-disabled button{cursor:not-allowed}
.grant-row.is-disabled select,.grant-row.is-disabled input{background:#0a0c10}
@media (max-width:820px){.grant-row{grid-template-columns:1fr}}
.cards + .card,form.form + .cards{margin-top:16px}
.checks{display:flex;gap:18px;flex-wrap:wrap}
.chips{display:flex;flex-wrap:wrap;gap:4px}
.chip{border:1px solid var(--line);border-radius:999px;padding:1px 8px;font-size:11px;color:var(--muted);
  white-space:nowrap;background:#12151b}
.pill{display:inline-flex;align-items:center;gap:4px}
.package-type-mark{width:12px;height:12px;flex:none;fill:currentColor}
.pill.compliance{color:#ffd479}
.pill.maven{color:#ff9ecd}
.nowrap{white-space:nowrap}
.prose{margin:0 0 12px 18px;padding:0;color:var(--text);font-size:13.5px;line-height:1.65}
.prose li{margin-bottom:6px}
.prose code,td code{font-size:12px}
.card>pre.code{margin-top:10px}
.secret-row{display:flex;gap:8px;align-items:stretch;margin-top:5px}
.secret-row>input{flex:1;margin-top:0}
.eye{display:inline-flex;align-items:center;justify-content:center;width:38px;padding:0;
  background:#0b0d11;border:1px solid var(--line);border-radius:6px;color:var(--muted);cursor:pointer}
.eye:hover{border-color:var(--accent);color:var(--accent)}
.eye.is-on{color:var(--accent);border-color:var(--accent);position:relative}
.eye.is-on::after{content:"";position:absolute;left:9px;right:9px;top:50%;height:1px;background:currentColor;
  transform:rotate(-38deg)}
.user-menu{position:relative}
.user-menu summary{display:flex;align-items:center;gap:8px;cursor:pointer;list-style:none;
  padding:5px 8px;border-radius:6px;border:1px solid transparent}
.user-menu summary::-webkit-details-marker{display:none}
.user-menu summary:hover,.user-menu[open] summary{border-color:var(--line);background:var(--panel2)}
.user-menu .menu{position:absolute;right:0;top:calc(100% + 8px);min-width:190px;padding:6px;
  background:var(--panel);border:1px solid var(--line);border-radius:8px;
  box-shadow:0 12px 30px rgba(0,0,0,.45);z-index:40;display:flex;flex-direction:column;gap:2px}
.user-menu .menu a,.user-menu .menu button{display:block;width:100%;text-align:left;padding:8px 10px;
  border-radius:6px;background:none;border:none;color:var(--text);font:inherit;cursor:pointer;text-decoration:none}
.user-menu .menu a:hover,.user-menu .menu button:hover{background:var(--panel2);text-decoration:none}
.user-menu .menu .muted{font-size:12px}
.menu-head{padding:6px 10px 9px;border-bottom:1px solid var(--line);margin-bottom:4px}
.menu-name{color:var(--text);font-size:13px;font-weight:600}
.menu-sub{color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.06em}
.label-group{display:block;color:var(--muted);font-size:12px}
.label-group>.checks{margin-top:6px}
.hint{color:var(--muted);font-size:11px;opacity:.8;font-weight:400;text-transform:none;letter-spacing:0}
.info{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;margin-left:6px;
  border:1px solid rgba(76,141,255,.55);border-radius:50%;background:rgba(76,141,255,.12);color:var(--accent);
  font-size:10px;font-weight:700;font-style:normal;line-height:1;cursor:help;position:relative;
  vertical-align:middle;flex:none;font-family:ui-sans-serif,system-ui,sans-serif;letter-spacing:0}
.info:hover,.info:focus{border-color:var(--accent);background:rgba(76,141,255,.24);color:#9dc0ff;outline:none}
.info::before{content:"";position:absolute;inset:-4px}
.info::after{content:attr(data-tip);position:absolute;left:50%;bottom:150%;transform:translateX(-50%);
  width:max-content;max-width:300px;white-space:normal;padding:8px 10px;border-radius:8px;background:#0b0d11;
  border:1px solid var(--line);color:var(--text);font-size:12px;font-weight:400;line-height:1.45;
  box-shadow:0 10px 30px rgba(0,0,0,.45);opacity:0;pointer-events:none;transition:opacity .12s ease;z-index:60}
.info:hover::after,.info:focus::after{opacity:1}
/* Two classes so this beats the base tooltip's white-space rule; the capability list keeps its line
   breaks, and each line is a name plus its description. */
.info.info-list::after{white-space:pre-line;text-align:left;max-width:440px;line-height:1.6}
label.checkbox .info{margin-left:0;margin-right:6px}
select[multiple]{min-height:104px;padding:6px}
form.grid .actions.full{grid-column:1/-1;margin-top:2px}
.truncate{display:inline-block;max-width:360px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom}
.nav-sep{width:1px;height:20px;background:var(--line);margin:0 6px}
.user .who{color:var(--muted);font-size:13px}
.danger-zone{margin-top:18px;border:1px solid #5a2326;border-radius:8px;padding:14px 16px;background:rgba(229,72,77,.06)}
.danger-zone h2{color:var(--bad);border-color:#5a2326}
.page-head h1{margin:0}
.page-head .sub{color:var(--muted);font-size:13px;margin-top:4px}
@media (max-width:880px){
  .sidebar{width:64px}
  .sidebar .nav-text,.sidebar .nav-group-label{display:none}
  .sidebar .nav-item{justify-content:center;padding:9px 0}
  .shell{margin-left:64px}
  .nav-toggle{display:none}
  .topbar{padding:10px 14px}
  main{padding:16px}
  .page-head{flex-direction:column;align-items:flex-start;gap:10px}
  .fieldgroup .row .wide{grid-column:auto}
}
