:root {
  --bg: #0f1115;
  --card: #1a1d24;
  --card-2: #21252e;
  --card-hover: #2b3140;
  --border: #2a2f3a;
  --border-2: #3a414f;
  --text: #e6e6e6;
  --muted: #8b93a3;
  --accent: #4f8cff;
  --accent-2: #3b6fd6;
  --green: #35c46b;
  --amber: #e0a53b;
  --red: #e5544b;
  --grey: #6b7280;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.hidden { display: none !important; }
.spacer { flex: 1; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--card-2); padding: 1px 6px; border-radius: 5px; }

/* Topbar */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; background: #12151b; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo { color: var(--accent); font-size: 22px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-title { font-weight: 700; font-size: 16px; }
.brand-sub { color: var(--muted); font-size: 12px; }
.topbar-right { display: flex; align-items: center; gap: 12px; }

.vmbox { display: flex; align-items: center; gap: 10px; }
.vm-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); font-weight: 500; }
.vm-specs { color: var(--muted); font-size: 12px; }

.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--grey); flex: none; }
.dot.running { background: var(--green); box-shadow: 0 0 8px rgba(53,196,107,.6); }
.dot.stopped { background: var(--grey); }
.dot.paused, .dot.restarting { background: var(--amber); }
.dot.dead, .dot.removing { background: var(--red); }
.dot.busy { background: var(--accent); animation: pulse 1s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

.icon-btn {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--card-2); color: var(--muted); cursor: pointer; font-weight: 700; font-size: 14px;
}
.icon-btn:hover { background: var(--card-hover); color: var(--text); }

/* Help popover */
.help-pop {
  position: absolute; right: 20px; top: 62px; z-index: 30;
  width: min(420px, calc(100vw - 40px));
  background: var(--card); border: 1px solid var(--border-2); border-radius: 12px;
  padding: 16px 18px; box-shadow: 0 12px 40px rgba(0,0,0,.5);
}
.help-pop h3 { margin: 0 0 8px; font-size: 15px; }
.help-pop p { margin: 8px 0; color: #cbd2df; }
.help-pop ul { margin: 8px 0; padding-left: 18px; color: #cbd2df; }
.help-pop li { margin: 4px 0; }
.help-foot { color: var(--muted); font-size: 12px; }

/* Buttons */
.btn {
  border: 1px solid var(--border); background: var(--card-2); color: var(--text);
  padding: 6px 12px; border-radius: 7px; cursor: pointer; font-size: 13px; font-family: inherit;
  transition: background .12s, border-color .12s, opacity .12s; display: inline-flex; align-items: center; gap: 6px;
}
.btn:hover:not(:disabled) { background: var(--card-hover); border-color: var(--border-2); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn.primary:hover:not(:disabled) { background: var(--accent-2); }
.btn.danger { background: #3a1f1f; border-color: #5c2b2b; color: #ff9b95; }
.btn.danger:hover:not(:disabled) { background: #4c2626; }
.btn.ghost { background: transparent; }
.btn.small { padding: 4px 9px; font-size: 12px; }
.btn .ico { width: 14px; height: 14px; }

/* Layout */
.wrap { max-width: 1400px; margin: 0 auto; padding: 22px 20px 60px; }
.loading { color: var(--muted); text-align: center; padding: 60px; }

.section-title { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 26px 0 14px; font-weight: 600; }
.section-title:first-child { margin-top: 0; }
.count { color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; }

.banner {
  padding: 12px 16px; border-radius: 10px; margin-bottom: 8px;
  background: #2a2416; border: 1px solid #4a3f1e; color: #f0d38a;
  display: flex; align-items: center; gap: 12px;
}
.banner.offline { background: #2a1616; border-color: #4a1e1e; color: #f0a0a0; }
.banner .btn { margin-left: auto; }

/* Create tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.tile {
  text-align: left; background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px; cursor: pointer; display: flex; flex-direction: column; gap: 4px;
  transition: background .12s, border-color .12s, transform .06s; font-family: inherit; color: var(--text);
}
.tile:hover:not(:disabled) { background: var(--card-2); border-color: var(--accent); }
.tile:active:not(:disabled) { transform: translateY(1px); }
.tile:disabled { opacity: .5; cursor: not-allowed; }
.tile-icon { width: 26px; height: 26px; color: var(--accent); margin-bottom: 4px; }
.tile-icon svg { width: 100%; height: 100%; }
.tile-name { font-weight: 600; font-size: 15px; }
.tile-desc { color: var(--muted); font-size: 12px; }

/* Grid + cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.empty { color: var(--muted); text-align: center; padding: 30px; }

.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 11px; }
.card.stale { opacity: .55; }
.card-head { display: flex; align-items: center; gap: 10px; }
.card-ico { width: 26px; height: 26px; color: var(--accent); flex: none; }
.card-ico svg { width: 100%; height: 100%; }
.card-headmeta { display: flex; flex-direction: column; min-width: 0; }
.card-name { font-weight: 600; font-size: 15px; }
.card-type { color: var(--muted); font-size: 12px; }
.badges { display: flex; gap: 6px; margin-left: auto; flex: none; }
.badge { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--border); color: var(--muted); cursor: default; }
.badge.shield { color: var(--amber); border-color: #4a3f1e; background: #2a2416; }
.badge.media-badge { color: var(--accent); border-color: #2e4066; background: #16233d; }

.card-status { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; }

.access { background: var(--card-2); border: 1px solid var(--border); border-radius: 9px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.access-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.link-chip { font-size: 12px; color: var(--muted); font-family: ui-monospace, monospace; }
.pw-chip { font-size: 12px; padding: 3px 8px; border-radius: 6px; background: #16233d; border: 1px solid #2e4066; color: #9db8ff; display: inline-flex; align-items: center; gap: 6px; }
.copy-btn { cursor: pointer; border: none; background: transparent; color: inherit; padding: 2px; display: inline-flex; opacity: .7; }
.copy-btn:hover { opacity: 1; }
.copy-btn .ico { width: 13px; height: 13px; }

.card-actions { display: flex; flex-wrap: wrap; gap: 6px; }

/* Overlays */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.72); display: flex; align-items: center; justify-content: center; z-index: 100; }
.overlay-panel { width: 92vw; height: 92vh; background: var(--card); border: 1px solid var(--border); border-radius: 12px; display: flex; flex-direction: column; overflow: hidden; }
.modal { width: min(900px, 92vw); max-height: 82vh; background: var(--card); border: 1px solid var(--border); border-radius: 12px; display: flex; flex-direction: column; overflow: hidden; }
.modal.small { width: min(460px, 92vw); }
.overlay-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: #12151b; }
.overlay-title { font-weight: 600; }
.viewer-frame { flex: 1; width: 100%; border: 0; background: #000; }
.viewer-tip { padding: 8px 16px; background: #16233d; color: #9db8ff; font-size: 13px; border-bottom: 1px solid #2e4066; display: flex; align-items: center; gap: 8px; }

.logs-body { margin: 0; padding: 14px 16px; overflow: auto; flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: #cfd6e2; white-space: pre-wrap; word-break: break-word; }
.select, .text-input { background: var(--card-2); color: var(--text); border: 1px solid var(--border); border-radius: 6px; padding: 5px 8px; font-family: inherit; font-size: 13px; }
.text-input { width: 100%; margin-top: 8px; }
.confirm-body { padding: 16px; }
.confirm-body p { margin: 0; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); }

/* Toasts */
.toasts { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 200; }
.toast { background: var(--card-2); border: 1px solid var(--border); border-radius: 9px; padding: 10px 14px; max-width: 400px; box-shadow: 0 6px 20px rgba(0,0,0,.4); animation: slidein .2s; }
.toast.ok { border-left: 3px solid var(--green); }
.toast.err { border-left: 3px solid var(--red); }
.toast.info { border-left: 3px solid var(--accent); }
.toast .t-title { font-weight: 600; margin-bottom: 2px; }
.toast .t-detail { color: var(--muted); font-size: 12px; font-family: ui-monospace, monospace; white-space: pre-wrap; word-break: break-word; max-height: 120px; overflow: auto; margin-top: 4px; }
@keyframes slidein { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ===== v2: auth, account menu, tabs, admin, skeletons ===================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.block { width: 100%; justify-content: center; margin-top: 6px; }
.btn.loading { position: relative; color: transparent; }
.btn.loading::after { content: ""; position: absolute; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Auth views */
.auth-wrap { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.auth-card { width: 100%; max-width: 380px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 28px 24px; display: flex; flex-direction: column; }
.auth-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--muted); margin-bottom: 14px; }
.auth-brand .logo { color: var(--accent); }
.auth-title { font-size: 20px; margin: 0 0 4px; }
.auth-sub { color: var(--muted); font-size: 13px; margin: 0 0 18px; }
.auth-card label { font-size: 12px; color: var(--muted); margin: 12px 0 5px; }
.auth-card .text-input { width: 100%; padding: 9px 11px; }
.pw-strength { font-size: 12px; color: var(--muted); min-height: 16px; margin-top: 5px; }
.pw-reveal { display: inline-block; margin-top: 4px; padding: 2px 6px; background: none; border: 0; color: var(--accent); font-size: 12px; font-weight: 600; cursor: pointer; }
.pw-reveal:hover { text-decoration: underline; }
.loading-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 18px; }
.card-hint { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.card-hint.warn { color: #f0b429; }
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.list-search { flex: 1 1 180px; min-width: 140px; }
.confirm-body.drag-over { outline: 2px dashed var(--accent); outline-offset: 4px; border-radius: 8px; }
.form-error { color: #ff9b95; font-size: 13px; min-height: 18px; margin-top: 8px; }
.notice { background: #16233d; border: 1px solid #2e4066; color: #9db8ff; padding: 9px 12px; border-radius: 8px; font-size: 13px; margin-bottom: 12px; }

/* Topbar right */
.quota-chip { font-size: 12px; padding: 5px 11px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); color: var(--muted); }
.quota-chip.full { color: var(--amber); border-color: #4a3f1e; background: #2a2416; }
.account-btn { display: flex; align-items: center; gap: 8px; background: transparent; border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px 4px 4px; cursor: pointer; color: var(--text); font-family: inherit; font-size: 13px; }
.account-btn:hover { background: var(--card-2); }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }

/* Menus */
.menu { position: fixed; z-index: 40; min-width: 180px; background: var(--card); border: 1px solid var(--border-2); border-radius: 10px; padding: 6px; box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.menu-head { padding: 8px 10px; color: var(--muted); font-size: 12px; }
.menu-item { display: block; width: 100%; text-align: left; background: transparent; border: none; color: var(--text); padding: 9px 10px; border-radius: 7px; cursor: pointer; font-size: 13px; font-family: inherit; }
.menu-item:hover { background: var(--card-2); }
.menu-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* Nav tabs */
.nav-tabs { display: flex; gap: 4px; padding: 0 20px; background: #12151b; border-bottom: 1px solid var(--border); overflow-x: auto; }
.nav-tab { background: transparent; border: none; border-bottom: 2px solid transparent; color: var(--muted); padding: 12px 14px; cursor: pointer; font-size: 13px; font-family: inherit; white-space: nowrap; }
.nav-tab:hover { color: var(--text); }
.nav-tab.active { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }

/* Admin */
.admin-section { margin-top: 6px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 0 14px; }
.admin-head .section-title { margin: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table th { color: var(--muted); font-weight: 600; font-size: 12px; }
.table tr:last-child td { border-bottom: none; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--border); color: var(--muted); }
.tag.on { color: var(--green); border-color: #1e4a33; background: #16281f; }
.tag.off { color: var(--muted); }
.owner-badge { color: var(--accent); border-color: #2e4066; background: #16233d; }
.filter-bar { margin-bottom: 12px; }
.tile-quota-note { color: var(--amber); font-size: 11px; margin-top: 4px; }
.check-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; }
.pw-gen-row { display: flex; gap: 8px; }
.field-label { display: block; font-size: 12px; color: var(--muted); margin: 0 0 5px; font-weight: 600; }
.field-label .stat-note { font-weight: 400; }

/* Two-step create wizard: template picker cards */
.pick-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 6px; }
.pick-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; cursor: pointer; transition: border-color .12s, background .12s; }
.pick-card:hover { background: var(--card-2); border-color: var(--border-2); }
.pick-card:has(input:checked) { border-color: var(--accent); background: #16233d; }
.pick-card input { accent-color: var(--accent); flex: none; }
.pick-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pick-name { font-weight: 600; font-size: 14px; }
.pick-desc { color: var(--muted); font-size: 12px; }
.viewer-res { display: inline-flex; align-items: center; margin-right: 8px; }
.viewer-res .select { padding: 5px 8px; font-size: 12px; }
.pw-gen-row .text-input { flex: 1; }

/* Panel cards (System tab) */
.panel-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.panel-card-head { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.panel-card-sub { color: var(--muted); font-size: 13px; margin: 8px 0 12px; }
.panel-card-actions { display: flex; gap: 8px; }
.danger-zone { border-color: #4a1e1e; }
.credential-box { background: var(--card-2); border: 1px solid var(--border); border-radius: 8px; padding: 12px; margin: 12px 0; display: flex; flex-direction: column; gap: 6px; }
.cred-label { color: var(--muted); font-size: 12px; display: inline-block; width: 74px; }

/* Skeletons */
.skeleton-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; margin-top: 20px; }
.skeleton-card { height: 150px; border-radius: 12px; background: linear-gradient(90deg, var(--card) 25%, var(--card-2) 50%, var(--card) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ===== Responsive ========================================================= */
@media (max-width: 900px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .brand-sub, .vm-specs { display: none; }
  .wrap { padding: 16px 12px 40px; }
  .account-name { display: none; }
  .quota-chip.full, .quota-chip { font-size: 11px; padding: 4px 9px; }
  .tiles, .grid, .skeleton-row { grid-template-columns: 1fr; }
  .overlay-panel, .modal { width: 100vw; height: 100dvh; max-height: none; border-radius: 0; }
  .overlay-head { flex-wrap: wrap; }
  .toasts { left: 12px; right: 12px; bottom: 12px; }
  .toast { max-width: none; }
}
@media (pointer: coarse) {
  .btn, .icon-btn, .copy-btn, .nav-tab, .menu-item, .account-btn { min-height: 44px; }
  .btn.small { min-height: 38px; }
  .card-actions { gap: 10px; }
}

/* ===== v3: tiles hint, sharing, ⓘ popover, resources, charts ============== */
.tile { position: relative; }
.tile-hint { position: absolute; top: 12px; right: 12px; font-size: 10px; padding: 2px 7px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.tile-hint.rec { color: var(--accent); background: #16233d; border: 1px solid #2e4066; }
.tile-hint.lite { color: var(--muted); background: var(--card-2); border: 1px solid var(--border); }

.shared-badge { color: var(--green); border-color: #1e4a33; background: #16281f; }
.info-btn { width: 24px; height: 24px; font-style: italic; font-weight: 700; font-family: Georgia, serif; }

.stat-note { color: var(--muted); font-size: 13px; margin: 4px 0; }
.stat-note.warn { color: var(--amber); background: #2a2416; border: 1px solid #4a3f1e; border-radius: 8px; padding: 8px 10px; }
.access-list { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; max-height: 320px; overflow: auto; }
.muted { color: var(--muted); }

/* ⓘ stats popover */
.stats-pop { position: fixed; z-index: 120; background: var(--card); border: 1px solid var(--border-2); border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.5); padding: 12px 14px; }
.stats-pop-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.stats-pop-title { font-weight: 600; font-size: 14px; }
.stats-pop-body { display: flex; flex-direction: column; gap: 6px; }
.stat-row { display: flex; justify-content: space-between; font-size: 13px; }
.stat-label { color: var(--muted); }
.stat-val { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.stats-pop-foot { color: var(--muted); font-size: 11px; margin-top: 8px; }

/* meters */
.meter { height: 6px; border-radius: 999px; background: var(--card-2); overflow: hidden; margin: 2px 0 4px; }
.meter-fill { height: 100%; background: var(--accent); border-radius: 999px; transition: width .3s; }
.meter-fill.warn { background: var(--amber); }
.meter-fill.crit { background: var(--red); }

/* Resources tab */
.res-warn { padding: 12px 16px; border-radius: 10px; margin: 8px 0 16px; background: #2a2416; border: 1px solid #4a3f1e; color: #f0d38a; }
.res-warn.crit { background: #2a1616; border-color: #4a1e1e; color: #f0a0a0; }
.res-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 20px; }
.res-tile { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.res-tile-label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.res-tile-value { font-size: 22px; font-weight: 600; margin: 6px 0; }
.res-tile-value .muted { font-size: 14px; font-weight: 400; }
.res-tile-sub { color: var(--muted); font-size: 12px; }

.chart-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.chart-title { font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.chart-svg { width: 100%; height: auto; display: block; }
.chart-svg.stacked { height: 22px; }
.chart-empty { color: var(--muted); font-size: 13px; padding: 8px 0; }
.chart-caveat { color: var(--muted); font-size: 11px; margin: 8px 0 0; }

/* SVG chart marks (colors here so charts.js stays palette-free) */
.c-label { fill: var(--text); font-size: 12px; font-family: -apple-system, sans-serif; }
.c-owner { fill: var(--muted); }
.c-val { fill: var(--muted); font-size: 11px; font-family: ui-monospace, monospace; }
.c-track { fill: var(--card-2); }
.c-fill { fill: var(--accent); transition: width .35s ease; }
.c-fill.warn { fill: var(--amber); }
.c-fill.crit { fill: var(--red); }

/* Real-time Resources: chart/legend holders are re-injected in place each tick. */
.chart-holder { min-height: 22px; }
.legend-holder { margin-top: 4px; }

/* Disk composition segments + legend (categorical; labelled so not color-alone) */
.c-seg { stroke: var(--card); stroke-width: 0; }
.seg-images { fill: #4f8cff; }
.seg-containers { fill: #6f7bef; }
.seg-volumes { fill: #35b8c4; }
.seg-cache { fill: var(--muted); }
.seg-free { fill: var(--card-2); }
.legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; font-size: 12px; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.legend-item b { color: var(--text); font-weight: 600; }
.legend-swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.legend-swatch.seg-images { background: #4f8cff; }
.legend-swatch.seg-containers { background: #6f7bef; }
.legend-swatch.seg-volumes { background: #35b8c4; }
.legend-swatch.seg-cache { background: var(--muted); }
.legend-swatch.seg-free { background: var(--card-2); }
