:root {
  --ink: #1c1915;
  --muted: #5c564c;
  --paper: #f6f1e7;
  --card: #fffaf3;
  --line: #d9d0c1;
  --rust: #9a3412;
  --rust-deep: #7c2d12;
  --ok: #1f6b45;
  --bad: #9f1239;
  color: var(--ink);
  background: var(--paper);
  font-family: "Avenir Next", "Segoe UI", "PingFang SC", "Noto Sans SC", "WenQuanYi Micro Hei", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--rust-deep); }
a:hover { color: var(--rust); }
h1, h2 {
  font-family: "Iowan Old Style", Palatino, "Palatino Linotype", "Songti SC", serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 { font-size: 1.85rem; line-height: 1.25; margin: 0 0 0.45rem; }
h2 { font-size: 1.12rem; line-height: 1.35; margin: 0; }

.top {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0.9rem 1.5rem 0.85rem;
  border-bottom: 1px solid var(--line);
  background: #efe7d8;
}
.brand-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.1rem;
  width: 100%;
}
.brand-lockup { display: flex; align-items: baseline; gap: 0.55rem; flex: none; }
.brand { font-weight: 700; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-sub { margin: 0; color: var(--muted); letter-spacing: 0.12em; font-size: 0.75rem; }
.runtime {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.runtime li {
  font-size: 0.78rem;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 0.14rem 0.55rem;
  font-variant-numeric: tabular-nums;
}
.auth { margin: 0 0 0 auto; color: var(--muted); font-size: 0.82rem; white-space: nowrap; }

nav.modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6.4rem, 1fr));
  gap: 0.35rem;
  width: 100%;
}
nav.modules a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 0;
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.38rem 0.35rem;
  font-size: 0.92rem;
  line-height: 1.2;
}
nav.modules a span {
  color: var(--rust);
  font-variant-numeric: tabular-nums;
  font-size: 0.72rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}
nav.modules a:hover { background: rgba(255, 250, 243, 0.55); }
nav.modules a.on {
  background: var(--card);
  border-color: var(--line);
  box-shadow: inset 0 -2px 0 var(--rust);
}

main { padding: 1.5rem 1.5rem 2.75rem; max-width: 1200px; margin: 0 auto; }
.stack { display: flex; flex-direction: column; gap: 1.25rem; }
.stack > .lede,
.stack > .status-row,
.stack > .fact-grid,
.stack > .notes,
.stack > .actions,
.stack > .sheet { margin: 0; }

.lede p, .lede-inline, .meta { color: var(--muted); }
.lede p { margin: 0; max-width: 70ch; }
.kicker { margin: 0 0 0.3rem; color: var(--rust); letter-spacing: 0.08em; font-size: 0.78rem; }
.crumb { margin: 0 0 1rem; color: var(--muted); font-size: 0.88rem; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--rust-deep); }

.notice, .error, .empty { padding: 0.75rem 0.9rem; border-radius: 8px; }
.notice { background: #e5f4ec; color: var(--ok); }
.error { background: #fde8ee; color: var(--bad); }
.empty { background: transparent; color: var(--muted); border: 1px dashed var(--line); }

.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.35rem;
}
.flow li {
  background: #efe7d8;
  border-radius: 999px;
  padding: 0.22rem 0.7rem;
  font-size: 0.86rem;
}
.flow li + li::before { content: "→"; color: var(--muted); margin-right: 0.35rem; }

.grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1rem; }
article, .card, .sheet {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.05rem 1.15rem 1.1rem;
}
dl { display: grid; gap: 0; margin: 0; }
dl div, .stats div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1px solid #efe6d8;
  padding: 0.4rem 0;
}
dt { color: var(--muted); }
dd {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-family: "IBM Plex Mono", ui-monospace, "Noto Sans SC", monospace;
}
.counts { font-variant-numeric: tabular-nums; }
.pending { list-style: none; padding: 0; margin: 0; }
.pending li { display: flex; flex-direction: column; gap: 0.15rem; margin-bottom: 0.75rem; }
.pending li:last-child { margin-bottom: 0; }
.pending span, .log { color: var(--muted); font-size: 0.92rem; }

.fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem 1rem;
}
.inline, .search { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: end; }
label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.88rem;
  color: var(--muted);
  min-width: 0;
}
.check {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  width: fit-content;
  max-width: 100%;
  grid-column: 1 / -1;
  margin: 0.15rem 0 0;
  color: var(--ink);
}
.check input[type="checkbox"] {
  width: auto;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
}
input, select, button {
  font: inherit;
  color: var(--ink);
  background: white;
  border: 1px solid #c9bfae;
  border-radius: 8px;
  padding: 0.48rem 0.6rem;
  width: 100%;
}
button, .search button, .inline button, .actions button { width: auto; }
button { cursor: pointer; background: #fff; }
button:hover { border-color: #a89880; }
button.primary { background: var(--rust); color: white; border-color: var(--rust-deep); }
button.primary:hover { background: var(--rust-deep); }
input:focus, select:focus, button:focus-visible, a:focus-visible {
  outline: 2px solid rgba(154, 52, 18, 0.35);
  outline-offset: 2px;
}
.actions, .split { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.sheet .actions, .sheet .split { margin-top: 1rem; }
.ladder { width: 100%; border-collapse: collapse; margin: 0.75rem 0 0.15rem; }
.ladder th, .ladder td {
  text-align: left;
  padding: 0.55rem 0.5rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.ladder th {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.ladder input { width: 100%; }
.cards { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.card header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.35rem; }
.card header p { margin: 0; color: var(--muted); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
.presence, .log { padding-left: 1.15rem; }
.sheet h2 { margin-bottom: 0.35rem; }
.sheet > .meta { margin-top: 0; }

.module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  align-items: stretch;
}
.mod {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.95rem 1rem 1rem;
}
.mod-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "idx pill" "title title";
  align-items: center;
  gap: 0.35rem 0.5rem;
}
.mod .idx {
  grid-area: idx;
  margin: 0;
  color: var(--rust);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}
.mod-head .pill { grid-area: pill; justify-self: end; }
.mod h2 { grid-area: title; font-size: 1.08rem; }
.mod .purpose {
  margin: 0;
  min-height: 4.5em;
  color: var(--ink);
}
.mod .meta { margin: 0; font-size: 0.9rem; }
.mod .cta {
  margin-top: auto;
  align-self: flex-start;
  text-decoration: none;
  color: white;
  background: var(--rust);
  border-radius: 8px;
  padding: 0.38rem 0.75rem;
  font-size: 0.9rem;
}
.mod .cta:hover { background: var(--rust-deep); color: white; }

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.12rem 0.55rem;
  font-size: 0.75rem;
  line-height: 1.35;
  letter-spacing: 0.01em;
  border: 1px solid var(--line);
  background: #efe7d8;
  color: var(--ink);
  white-space: nowrap;
}
.pill.demo { background: #efe6d4; color: #6b5428; }
.pill.paper { background: #e7eef6; color: #1e3a5f; }
.pill.ok { background: #e5f4ec; color: var(--ok); }
.pill.warn { background: #fde8ee; color: var(--bad); }

.status-row { display: flex; flex-wrap: wrap; gap: 0.65rem 0.9rem; align-items: center; }
.status-row .meta { margin: 0; flex: 1; min-width: 16rem; }
.fact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}
.fact-grid div {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
  min-width: 0;
}
.fact-grid dt { font-size: 0.8rem; }
.fact-grid dd { text-align: left; font-size: 1rem; overflow-wrap: anywhere; }
.notes { margin: 0; padding-left: 1.15rem; color: var(--muted); }
.notes li + li { margin-top: 0.35rem; }
.table-wrap { overflow-x: auto; }
a.button {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  background: white;
  border: 1px solid #c9bfae;
  border-radius: 8px;
  padding: 0.48rem 0.75rem;
}
a.button:hover { border-color: #a89880; }
a.button.primary { background: var(--rust); color: white; border-color: var(--rust-deep); }
a.button.primary:hover { background: var(--rust-deep); color: white; }

@media (max-width: 1100px) {
  nav.modules { display: flex; overflow-x: auto; }
  nav.modules a { flex: 0 0 auto; padding-inline: 0.65rem; }
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact-grid, .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .grid, .stats, .module-grid, .fact-grid, .fields { grid-template-columns: 1fr; }
  .auth { margin-left: 0; white-space: normal; }
  main { padding: 1.1rem 0.95rem 2rem; }
  .top { padding-inline: 0.95rem; }
  .mod .purpose { min-height: 0; }
}

.console { min-height: 100vh; }
.tape {
  position: sticky;
  top: 0;
  z-index: 6;
  background: #efe7d8;
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0.9rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.tape-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.7rem; }
.tape .notice, .tape .error { margin: 0; }
.lamps { display: flex; flex-wrap: wrap; gap: 0.3rem; list-style: none; margin: 0; padding: 0; }
.lamp, .chip, .btn {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.78rem;
  line-height: 1.2;
  padding: 0.16rem 0.5rem;
}
.lamp.ok { box-shadow: inset 3px 0 0 #1f6b45; }
.lamp.bad { box-shadow: inset 3px 0 0 var(--bad); color: var(--bad); }
.lamp.read { box-shadow: inset 3px 0 0 #1e3a5f; color: #1e3a5f; }
.controls .btn { border-radius: 8px; padding: 0.32rem 0.6rem; background: white; }
.tape-form { display: inline-flex; margin: 0; }
.controls button.btn { font-size: 0.78rem; line-height: 1.2; padding: 0.32rem 0.6rem; width: auto; }
.controls button.btn.on { background: #fde8ee; }
.btn.danger { color: var(--bad); border-color: #e4b3c0; }
.chip.warn { color: var(--bad); }
.tpl-switch { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.35rem 0 0.9rem; }
.tpl-switch .chip.on { border-color: var(--rust); box-shadow: inset 0 -2px 0 var(--rust); }
.console-body { display: grid; grid-template-columns: 132px minmax(0, 1fr); align-items: start; }
.anchors {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 0.7rem;
}
.anchors a {
  text-decoration: none;
  color: var(--muted);
  border-radius: 6px;
  padding: 0.28rem 0.4rem;
  font-size: 0.88rem;
}
.anchors a:hover { background: #efe7d8; color: var(--ink); }
.anchors a.on {
  background: #efe7d8;
  color: var(--ink);
  font-weight: 650;
  box-shadow: inset 3px 0 0 var(--rust);
}
.console-main { min-width: 0; padding: 0.9rem 1rem 2.5rem 0.3rem; display: flex; flex-direction: column; gap: 0.9rem; }
.block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 0.9rem 0.95rem;
}
.block-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.35rem 1rem; margin-bottom: 0.65rem; }
.block-head p { margin: 0; color: var(--muted); font-size: 0.88rem; max-width: 70ch; }
.kpi { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 0.45rem; margin: 0; }
.kpi.mini { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 0.65rem; }
.kpi div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.4rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.kpi dd { text-align: left; font-size: 0.95rem; }
.fund-foot { display: flex; flex-wrap: wrap; gap: 0.8rem 1.2rem; align-items: flex-end; margin-top: 0.7rem; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 36px; }
.bars i { display: block; width: 7px; background: var(--rust); border-radius: 2px 2px 0 0; opacity: 0.85; }
.channels { list-style: none; margin: 0; padding: 0; color: var(--muted); font-size: 0.82rem; }
.channels li + li { margin-top: 0.15rem; }
.scroll-x { overflow-x: auto; }
table.dense { width: max-content; min-width: 100%; border-collapse: collapse; font-size: 0.82rem; }
table.dense th, table.dense td {
  text-align: left;
  white-space: nowrap;
  padding: 0.32rem 0.45rem;
  border-bottom: 1px solid #efe6d8;
  vertical-align: middle;
}
table.dense th { color: var(--muted); font-size: 0.75rem; font-weight: 600; }
table.dense button { padding: 0.2rem 0.45rem; font-size: 0.78rem; }
.actions-cell { display: flex; gap: 0.3rem; }
.actions-cell form { margin: 0; }
table.dense th.sticky-end,
table.dense td.actions-cell {
  position: sticky;
  right: 0;
  background: var(--card);
  box-shadow: -8px 0 8px rgba(28, 25, 21, 0.04);
}
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.banner { margin: 0; padding: 0.45rem 0.7rem; border-radius: 8px; background: #fde8ee; color: var(--bad); }
.banner.quiet { background: #efe7d8; color: var(--muted); }
.banner a { color: var(--rust-deep); font-weight: 650; }
.qr { margin: 0.6rem 0; background: white; display: inline-block; padding: 0.4rem; border: 1px solid var(--line); border-radius: 8px; }
.qr svg { width: 196px; height: 196px; display: block; }
.secret-code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: 0.04em; word-break: break-all; }
.recovery-codes { list-style: none; padding: 0; margin: 0.6rem 0 1rem; }
.recovery-codes li { margin: 0.2rem 0; }
.push-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; align-items: stretch; }
.push-grid fieldset {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  padding: 0.55rem 0.7rem 0.7rem;
  min-width: 0;
}
.push-grid legend { padding: 0 0.25rem; color: var(--muted); font-size: 0.78rem; }
.push-grid .check { margin: 0; grid-column: auto; }
.push-grid .check:has(input:disabled) { color: var(--muted); }
.push-grid .primary { grid-column: 1 / -1; justify-self: start; margin-top: 0.2rem; }
.account-form { margin-top: 0.7rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; margin: 0.6rem 0 0; padding: 0; }
.chips li { border: 1px solid var(--line); border-radius: 999px; padding: 0.1rem 0.5rem; font-size: 0.82rem; }
@media (max-width: 1100px) {
  .kpi { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .push-grid, .split-2 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .console-body { grid-template-columns: 1fr; }
  .anchors { position: static; flex-direction: row; overflow-x: auto; }
  .kpi, .kpi.mini, .push-grid, .split-2 { grid-template-columns: 1fr; }
  .console-main { padding-right: 0.75rem; }
}

.lamp.stale, .chip.md-stale, .latency-item.stale {
  box-shadow: inset 3px 0 0 #b7791f;
  color: #8a5a12;
}
.chip.md-ok { box-shadow: inset 3px 0 0 #1f6b45; }
.chip.md-down, .chip.md-bad, .latency-item.down, .latency-item.bad {
  box-shadow: inset 3px 0 0 var(--bad);
  color: var(--bad);
}
.chip.md-read, .latency-item.read {
  box-shadow: inset 3px 0 0 #1e3a5f;
  color: #1e3a5f;
}
.chip.md-sample, .latency-item.sample { color: var(--muted); }
.latency-item.ok { box-shadow: inset 3px 0 0 #1f6b45; padding-left: 0.45rem; }

.acct-keys, .acct-rank {
  margin-top: 1.15rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 96px;
}
.acct-keys > h3 { margin: 0 0 0.35rem; }
#accounts { scroll-margin-top: 96px; }
.cred-section { margin-top: 1rem; }
.cred-section > h3 { font-size: 1rem; margin: 0 0 0.2rem; }
.cred-stack { display: flex; flex-direction: column; gap: 0.65rem; margin-top: 0.55rem; }
.cred-row {
  display: grid;
  grid-template-columns: minmax(14rem, 22rem) minmax(0, 1fr);
  gap: 0.75rem 1.25rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  margin: 0;
}
.cred-copy { min-width: 0; }
.cred-title { margin: 0; font-size: 0.92rem; }
.cred-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
  align-items: flex-end;
}
.cred-fields label {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.78rem;
  color: var(--muted);
  flex: 1 1 9rem;
  min-width: 8.5rem;
}
.cred-fields input, .cred-fields select { width: 100%; }
.cred-fields button { align-self: flex-end; }
.borrow-extra { margin-top: 0.85rem; }
.borrow-extra h4 { margin: 0 0 0.3rem; font-size: 0.95rem; }
.borrow-extra .cred-row { margin-top: 0.45rem; }
.mask { letter-spacing: 0.08em; color: var(--muted); }
dialog.sheet-modal {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  padding: 1rem 1.1rem 1.05rem;
  max-width: 32rem;
  width: calc(100% - 2rem);
}
dialog.sheet-modal::backdrop { background: rgba(28, 25, 21, 0.35); }
dialog.sheet-modal h3 { margin: 0 0 0.4rem; }
dialog.sheet-modal p { margin: 0 0 0.65rem; color: var(--muted); font-size: 0.9rem; }
dialog.sheet-modal label { display: block; margin: 0.35rem 0; }
dialog.sheet-modal .actions { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem; }
@media (max-width: 800px) {
  .cred-row { grid-template-columns: 1fr; }
}
.latency-list .latency-item {
  border-radius: 6px;
  padding: 0.05rem 0.35rem 0.05rem 0.45rem;
}
.md-summary { margin: 0.35rem 0 0; max-width: 96ch; }
.spread-up { color: #1f6b45; font-weight: 600; }
.spread-down { color: #9b2335; font-weight: 600; }
.tag-ban {
  color: #9b2335;
  border: 1px solid #e4b3c0;
  border-radius: 4px;
  padding: 0 0.25rem;
  margin-left: 0.25rem;
  font-size: 0.75rem;
}
.st-pill {
  display: inline-block;
  border-radius: 999px;
  padding: 0.05rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.4;
}
.st-run { background: #e5f4ec; color: #1f6b45; }
.st-pause { background: #f8e6ea; color: #9b2335; }
.actions-cell button.link-danger { color: #9b2335; border-color: #e4b3c0; }
.acct-block + .acct-block { margin-top: 1.15rem; padding-top: 0.85rem; border-top: 1px solid var(--line); }
.acct-overview-tools { align-items: flex-end; }
.acct-entry { display: flex; flex-wrap: wrap; gap: 0.45rem 0.7rem; align-items: flex-end; margin: 0 0 0.7rem; }
#acct-drafts { display: flex; flex-direction: column; gap: 0.45rem; flex: 1 1 36rem; min-width: 0; }
.acct-add, .matrix-tools { display: flex; flex-wrap: wrap; gap: 0.45rem 0.6rem; align-items: flex-end; margin: 0; }
.matrix-tools { margin: 0 0 0.7rem; }
.acct-add label, .matrix-tools label { display: flex; flex-direction: column; gap: 0.15rem; font-size: 0.78rem; color: var(--muted); }
.acct-add input, .acct-add select { min-width: 8rem; }
button.add-account {
  background: var(--ok);
  color: #fff;
  border-color: #174d32;
  font-weight: 650;
  white-space: nowrap;
}
button.add-account:hover { background: #174d32; }
.system-keys, .bl-fold { margin-top: 0.8rem; border-top: 1px solid var(--line); padding-top: 0.6rem; }
.system-keys summary, .bl-fold summary { cursor: pointer; font-weight: 600; }
.push-actions { display: flex; gap: 0.5rem; align-items: center; }
.push-grid .check small { display: block; color: var(--muted); font-weight: 400; font-size: 0.72rem; }
.event-pane { min-width: 0; }
.event-log { list-style: none; margin: 0.4rem 0 0; padding: 0; font-size: 0.8rem; }
.event-log li { padding: 0.28rem 0; border-bottom: 1px solid #efe6d8; }
.event-log time { color: var(--muted); margin-right: 0.35rem; }
.event-log .kind { color: #1e3a5f; margin-right: 0.3rem; }
