/* DroidUpdater admin. Colors are the Material Design 3 baseline scheme (Material Theme Builder default,
   source #6750A4); each token names the M3 color role it maps to. Status colors use M3 custom-color tones. */

:root {
  --paper: #fef7ff;          /* surface */
  --surface: #ffffff;        /* surface-container-lowest (cards) */
  --sunken: #f3edf7;         /* surface-container */
  --ink: #1d1b20;            /* on-surface */
  --ink-2: #1d1b20;          /* on-surface */
  --muted: #49454f;          /* on-surface-variant */
  --faint: #79747e;          /* outline */
  --line: #cac4d0;           /* outline-variant */
  --line-strong: #79747e;    /* outline */
  --accent: #6750a4;         /* primary */
  --accent-ink: #ffffff;     /* on-primary */
  --accent-soft: #eaddff;    /* primary-container */
  --secondary-soft: #e8def8; /* secondary-container */
  --on-secondary-soft: #1d192b; /* on-secondary-container */
  --ok: #146c2e;
  --ok-soft: #b7f1b9;
  --warn: #785900;
  --warn-soft: #ffdf9e;
  --warn-fill: #e3a400;      /* amber for bars and dots; --warn is for text */
  --danger: #b3261e;         /* error */
  --danger-soft: #f9dedc;    /* error-container */
  --idle: #49454f;
  --idle-soft: #e7e0ec;      /* surface-variant */
  --nav-bg: #f7f2fa;         /* surface-container-low (navigation drawer) */
  --nav-ink: #49454f;        /* on-surface-variant */
  --nav-ink-strong: #1d1b20; /* on-surface */
  --nav-hover: rgba(29, 27, 32, 0.08); /* on-surface hover state layer */

  --font: Roboto, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "Roboto Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --radius-s: 8px;           /* M3 shape: small */
  --radius: 8px;
  --radius-l: 12px;          /* M3 shape: medium (cards) */
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141218;
    --surface: #1d1b20;      /* surface-container-low */
    --sunken: #211f26;       /* surface-container */
    --ink: #e6e0e9;
    --ink-2: #e6e0e9;
    --muted: #cac4d0;
    --faint: #938f99;
    --line: #49454f;
    --line-strong: #938f99;
    --accent: #d0bcff;
    --accent-ink: #381e72;
    --accent-soft: #4f378b;
    --secondary-soft: #4a4458;
    --on-secondary-soft: #e8def8;
    --ok: #9cd49f;
    --ok-soft: #005321;
    --warn: #f8bd2a;
    --warn-soft: #5b4300;
    --warn-fill: #f8bd2a;
    --danger: #f2b8b5;
    --danger-soft: #8c1d18;
    --idle: #cac4d0;
    --idle-soft: #49454f;
    --nav-bg: #1d1b20;
    --nav-ink: #cac4d0;
    --nav-ink-strong: #e6e0e9;
    --nav-hover: rgba(230, 224, 233, 0.08);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 14px/1.5 var(--font);
  font-feature-settings: "tnum" 1;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 22px; line-height: 1.25; }
h2 { font-size: 15px; }
h3 { font-size: 13px; }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: 12.5px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.nowrap { white-space: nowrap; }
.break { word-break: break-all; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: 100vh; }
.nav {
  background: var(--nav-bg);
  color: var(--nav-ink);
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; color: var(--nav-ink-strong); }
.brand svg { flex: none; }
.brand-name { font-weight: 600; font-size: 14px; line-height: 1.2; }
.brand-tenant { font-size: 12px; color: var(--nav-ink); }
.nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px; min-height: 44px; border-radius: 999px;
  color: var(--nav-ink); font-weight: 500;
}
.nav a:hover { background: var(--nav-hover); color: var(--nav-ink-strong); text-decoration: none; }
.nav a[aria-current="page"] { background: var(--secondary-soft); color: var(--on-secondary-soft); font-weight: 600; }
.nav svg { width: 20px; height: 20px; flex: none; }
.nav-group { margin-top: 14px; padding: 0 16px 6px; font-size: 13px; font-weight: 500; color: var(--nav-ink); }
.nav-foot { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid var(--line); font-size: 12.5px; }
.nav-foot .who { color: var(--nav-ink-strong); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-foot form { display: inline; }
.nav-foot .link-btn { color: var(--nav-ink); }
.nav-foot .row { display: flex; gap: 12px; margin-top: 4px; }
.nav-foot a { padding: 0; display: inline; color: var(--nav-ink); font-weight: 400; }
.nav-foot a:hover { background: none; }

.main { padding: 28px 36px 64px; max-width: 1280px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head p { color: var(--muted); margin-top: 4px; max-width: 70ch; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 6px; display: block; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- Surfaces ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); }
.panel + .panel, .grid + .panel, .panel + .grid { margin-top: 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.panel-head p { color: var(--muted); font-size: 13px; }
.panel-body { padding: 18px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.grid-main-side { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }

/* ---------- Fleet strip (dashboard) ---------- */
.fleet { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); margin-bottom: 20px; }
.fleet > a, .fleet > div { padding: 16px 18px; color: inherit; border-left: 1px solid var(--line); }
.fleet > :first-child { border-left: 0; }
.fleet > a:hover { background: var(--sunken); text-decoration: none; }
.fleet .num { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.fleet .lbl { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.fleet .sub { color: var(--faint); font-size: 12px; margin-top: 2px; }
.fleet-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--sunken); margin-top: 12px; }
.fleet-bar span { display: block; height: 100%; }

/* ---------- Status ---------- */
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot.current, .seg.current { background: var(--ok); }
.dot.pending, .seg.pending { background: var(--warn-fill); }
.dot.offline, .seg.offline { background: var(--faint); }
.dot.unmanaged, .seg.unmanaged { background: var(--danger); }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500; line-height: 1;
  padding: 4px 8px; border-radius: 999px; white-space: nowrap;
  background: var(--idle-soft); color: var(--idle);
}
.badge.published, .badge.current, .badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.paused, .badge.pending, .badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.rejected, .badge.unmanaged, .badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.draft { background: var(--accent-soft); color: var(--accent); }
.badge.kind { background: transparent; border: 1px solid var(--line-strong); color: var(--ink-2); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 12.5px; font-weight: 500; color: var(--muted); background: var(--surface); position: sticky; top: 0; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: color-mix(in srgb, var(--sunken) 55%, transparent); }
td.num, th.num { text-align: right; }
td .primary { font-weight: 500; color: var(--ink); }
td .secondary { color: var(--muted); font-size: 12.5px; }
.row-link { color: inherit; }
.row-link:hover { text-decoration: none; }
.row-link:hover .primary { color: var(--accent); }
.empty { padding: 40px 18px; text-align: center; color: var(--muted); }
.empty h3 { color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.empty .btn { margin-top: 14px; }

/* ---------- Toolbar / filters ---------- */
.toolbar { display: flex; gap: 8px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.toolbar .grow { flex: 1 1 220px; }
.seg-tabs { display: inline-flex; background: var(--sunken); padding: 3px; border-radius: var(--radius); gap: 2px; flex-wrap: wrap; }
.seg-tabs a { padding: 4px 10px; border-radius: var(--radius-s); color: var(--muted); font-weight: 500; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.seg-tabs a:hover { color: var(--ink); text-decoration: none; }
.seg-tabs a[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* ---------- Forms ---------- */
label, .label { display: block; font-weight: 500; font-size: 13px; margin-bottom: 6px; color: var(--ink-2); }
.hint { color: var(--muted); font-size: 12.5px; margin-top: 5px; }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="search"], select, textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 8px 10px; min-height: 36px;
}
textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
textarea.mono { font-family: var(--mono); font-size: 12px; min-height: 180px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
.error-text { color: var(--danger); font-size: 12.5px; margin-top: 5px; }
.toolbar input, .toolbar select { width: auto; min-height: 32px; padding: 5px 9px; }
.toolbar input[type="search"] { width: 100%; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 3px; accent-color: var(--accent); }
.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.radio-cards label { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 10px 12px; margin: 0; cursor: pointer; font-weight: 400; display: flex; gap: 10px; }
.radio-cards label:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: var(--accent-soft); }
.radio-cards input { accent-color: var(--accent); margin-top: 3px; }
.radio-cards strong { display: block; font-weight: 500; }
.radio-cards span { color: var(--muted); font-size: 12.5px; }
input[type="range"] { width: 100%; accent-color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-weight: 500; font-size: 13.5px; line-height: 1;
  height: 40px; padding: 0 24px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--sunken); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.btn.danger { color: var(--danger); }
.btn.danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.btn.small { height: 32px; padding: 0 14px; font-size: 12.5px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn svg { width: 15px; height: 15px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Alerts ---------- */
.alert { border-radius: var(--radius); padding: 10px 14px; margin-bottom: 18px; border: 1px solid; font-size: 13.5px; display: flex; gap: 10px; align-items: flex-start; }
.alert.ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 30%, transparent); color: var(--ok); }
.alert.error { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 30%, transparent); color: var(--danger); }
.alert.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); color: var(--warn); }
.alert.info { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, transparent); color: var(--ink-2); }
.alert strong { color: inherit; }

/* ---------- Key/value lists ---------- */
.kv { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 0; margin: 0; }
.kv dt, .kv dd { padding: 9px 0; border-bottom: 1px solid var(--line); margin: 0; }
.kv dt { color: var(--muted); font-size: 13px; }
.kv dd { word-break: break-word; }
.kv > :nth-last-child(-n+2) { border-bottom: 0; }
.hash { font-family: var(--mono); font-size: 12px; word-break: break-all; color: var(--ink-2); }

/* ---------- Trust chain: the signature element of this product ---------- */
.chain { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: relative; }
.chain-step { padding: 16px 18px 18px; position: relative; border-left: 1px solid var(--line); }
.chain-step:first-child { border-left: 0; }
.chain-step .n {
  width: 24px; height: 24px; border-radius: 50%;
  display: inline-grid; place-items: center;
  font-size: 12px; font-weight: 600;
  background: var(--accent); color: var(--accent-ink);
  margin-bottom: 10px;
}
.chain-step.device .n { background: var(--surface); color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.chain-step h3 { font-size: 13.5px; margin-bottom: 2px; }
.chain-step .where { color: var(--muted); font-size: 12.5px; margin-bottom: 8px; }
.chain-step .proof { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); word-break: break-all; }
.chain-step::after {
  content: ""; position: absolute; top: 27px; right: -5px; width: 9px; height: 9px;
  border-top: 1.5px solid var(--line-strong); border-right: 1.5px solid var(--line-strong);
  transform: rotate(45deg); background: var(--surface); z-index: 1;
}
.chain-step:last-child::after { display: none; }

/* ---------- Upload pipeline ---------- */
.dropzone {
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius-l);
  padding: 28px; text-align: center; cursor: pointer; background: var(--sunken);
  transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone strong { display: block; font-size: 14px; margin-bottom: 2px; }
.dropzone .file-chosen { font-family: var(--mono); font-size: 12.5px; color: var(--ink); }
.pipeline { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.pipeline li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 0 0 18px; position: relative; }
.pipeline li::before {
  counter-increment: step; content: counter(step);
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 600; color: var(--faint);
  box-shadow: inset 0 0 0 1.5px var(--line-strong); background: var(--surface); z-index: 1;
}
.pipeline li::after { content: ""; position: absolute; left: 11.5px; top: 26px; bottom: 2px; width: 1px; background: var(--line-strong); }
.pipeline li:last-child::after { display: none; }
.pipeline li.active::before { color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.pipeline li.done::before { content: "✓"; background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.pipeline li.failed::before { content: "✕"; background: var(--danger); color: #fff; box-shadow: none; }
.pipeline .t { font-weight: 500; }
.pipeline .d { color: var(--muted); font-size: 12.5px; }
.pipeline li.active .t { color: var(--accent); }
.progress { height: 4px; background: var(--sunken); border-radius: 2px; overflow: hidden; margin-top: 8px; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.progress.indeterminate span { width: 30%; animation: slide 1.1s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(340%); } }

/* ---------- Builds in the field ---------- */
.builds { display: flex; flex-direction: column; gap: 10px; }
.build-row { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) 48px; gap: 12px; align-items: center; font-size: 13px; }
.build-row .bar { height: 8px; background: var(--sunken); border-radius: 4px; overflow: hidden; }
.build-row .bar span { display: block; height: 100%; background: var(--warn-fill); border-radius: 4px; }
.build-row.latest .bar span { background: var(--ok); }
.build-row .id { font-family: var(--mono); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.model-block + .model-block { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.model-block-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }

/* ---------- Activity ---------- */
.activity { list-style: none; margin: 0; padding: 0; }
.activity li { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 10px; padding: 10px 18px; border-bottom: 1px solid var(--line); align-items: baseline; font-size: 13px; }
.activity li:last-child { border-bottom: 0; }
.activity .dot { transform: translateY(-1px); }
.activity .when { color: var(--faint); font-size: 12px; white-space: nowrap; }
.activity .what { min-width: 0; }
.activity .what .mono { color: var(--ink-2); }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card .brand { color: var(--ink); padding: 0 0 22px; }
.auth-card .brand-tenant { color: var(--muted); }
.auth-card .panel-body { padding: 26px; }
.auth-card h1 { font-size: 19px; margin-bottom: 4px; }
.auth-card .lede { color: var(--muted); margin-bottom: 20px; }
.auth-card .btn.primary { width: 100%; height: 38px; }
.code-input { font-family: var(--mono) !important; font-size: 20px !important; letter-spacing: .35em; text-align: center; }
.qr { display: flex; justify-content: center; padding: 10px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 14px; }
.qr svg { display: block; }
.secret { font-family: var(--mono); font-size: 12.5px; background: var(--sunken); padding: 8px 10px; border-radius: var(--radius); word-break: break-all; text-align: center; letter-spacing: .08em; }
.auth-foot { text-align: center; color: var(--faint); font-size: 12px; margin-top: 18px; }

.callout { background: var(--sunken); border-radius: var(--radius); padding: 12px 14px; font-size: 13px; color: var(--ink-2); }
.callout + .callout { margin-top: 10px; }
.stack > * + * { margin-top: 14px; }
.cert { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.cert + .cert { margin-top: 10px; }
details summary { cursor: pointer; color: var(--accent); font-size: 13px; }
pre.meta { font-family: var(--mono); font-size: 12px; background: var(--sunken); padding: 12px; border-radius: var(--radius); overflow-x: auto; margin: 10px 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid-main-side, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .fleet { grid-template-columns: repeat(2, 1fr); }
  .fleet > :first-child { grid-column: 1 / -1; }
  .fleet > * { border-top: 1px solid var(--line); }
  .fleet > :first-child { border-top: 0; }
  .fleet > :nth-child(2n) { border-left: 0; }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .nav { position: static; height: auto; flex-direction: row; flex-wrap: wrap; padding: 10px 12px; gap: 2px; border-bottom: 1px solid var(--line); }
  .brand { padding: 4px 8px; width: 100%; }
  .nav-group { display: none; }
  .nav a { padding: 0 12px; min-height: 36px; }
  .nav a span { font-size: 13px; }
  .nav-foot { width: 100%; margin-top: 6px; }
  .main { padding: 20px 16px 48px; }
  .chain { grid-template-columns: minmax(0, 1fr); }
  .chain-step { border-left: 0; border-top: 1px solid var(--line); }
  .chain-step:first-child { border-top: 0; }
  .chain-step::after { display: none; }
  .field-row, .radio-cards { grid-template-columns: minmax(0, 1fr); }
  .kv { grid-template-columns: minmax(0, 1fr); }
  .kv dt { border-bottom: 0; padding-bottom: 0; }
  .build-row { grid-template-columns: minmax(0, 1fr) 48px; }
  .build-row .bar { grid-column: 1 / -1; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
.narrow-panel { max-width: 520px; }
.details-body { margin: 12px 0 0; }
.user-actions { justify-content: flex-end; }
.user-actions form { display: inline; }
.secret-inline { background: var(--surface); padding: 2px 6px; border-radius: var(--radius-s); user-select: all; }
.actions form { display: inline; }
.qr svg { width: 232px; height: 232px; shape-rendering: crispEdges; }
.grid > .panel, .grid > .grid { margin-top: 0; }
.nav .brand svg { width: 28px; height: 28px; opacity: 1; }
[hidden] { display: none !important; }
.pipeline .d, .alert { overflow-wrap: anywhere; }
.nav .nav-foot a { padding: 0; }
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.cert-grid .cert + .cert { margin-top: 0; }
.narrow-form { max-width: 640px; }
.group-picker { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; margin: 10px 0 0; display: grid; gap: 8px; max-height: 220px; overflow: auto; }
.audience:has(input[name="audience"][value="all"]:checked) .group-picker { display: none; }
.audience-note { margin-top: 4px; }
.member-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.member-row form { display: inline; }
.add-group { display: flex; gap: 8px; margin-top: 12px; }
.add-group select { flex: 1; min-height: 28px; padding: 3px 8px; }
.side-form .radio-cards { grid-template-columns: minmax(0, 1fr); }
.key-reveal { margin-top: 8px; color: var(--ink); user-select: all; text-align: left; }
