/* cw-ops console — one neutral grey scale plus exactly five health colours; no external resources. */
:root {
  color-scheme: light dark;
  --bg: #f4f5f6;
  --surface: #ffffff;
  --surface-2: #eceef0;
  --border: #d3d7dc;
  --border-strong: #a9b0b8;
  --text: #1b1e22;
  --muted: #59626c;
  --faint: #8a929b;
  --focus: #1b1e22;

  --healthy: #1d7a3a;
  --degraded: #8f5b00;
  --down: #c0262d;
  --busy: #1d5fbf;
  --unknown: #626a74;

  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  --radius: 6px;
  --gutter: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121416;
    --surface: #1a1d20;
    --surface-2: #24282c;
    --border: #353a40;
    --border-strong: #545b63;
    --text: #e5e7e9;
    --muted: #a2aab2;
    --faint: #737b84;
    --focus: #e5e7e9;

    --healthy: #52c47e;
    --degraded: #e3a63e;
    --down: #f2706e;
    --busy: #6fa8ff;
    --unknown: #9aa2ab;
  }
}

* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.45 var(--font);
  overflow-x: hidden;
}
a {
  color: inherit;
  text-underline-offset: 2px;
}
h1 {
  font-size: 1.35rem;
  margin: 0;
}
h2 {
  font-size: 1.05rem;
  margin: 28px 0 10px;
}
h3 {
  font-size: 1rem;
  margin: 0;
}
code,
pre,
.mono {
  font-family: var(--mono);
  font-size: 0.92em;
}
.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
main {
  padding-top: 16px;
  padding-bottom: 48px;
  outline: none;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.86em;
}
.error-text {
  color: var(--down);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* keyboard focus */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}
.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 10;
  background: var(--surface);
  padding: 6px 10px;
  border: 1px solid var(--border-strong);
}
.skip:focus {
  left: 8px;
}

/* header */
.top {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 5;
}
.top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  min-height: 52px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.brand {
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
}
nav {
  display: flex;
  gap: 4px;
}
nav a {
  text-decoration: none;
  padding: 4px 10px;
  border-radius: var(--radius);
  color: var(--muted);
}
nav a:hover {
  background: var(--surface-2);
}
nav a[aria-current='page'] {
  color: var(--text);
  background: var(--surface-2);
  font-weight: 600;
}
.spacer {
  flex: 1;
}
.freshness {
  color: var(--muted);
  font-size: 0.9em;
}
.freshness.stale {
  color: var(--degraded);
  font-weight: 600;
}
.freshness.busy {
  color: var(--busy);
}

/* buttons */
.button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 5px 12px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.button:hover {
  background: var(--surface-2);
}
.button:disabled {
  opacity: 0.55;
  cursor: progress;
}
.button.primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* badges, chips, health */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.8em;
  font-weight: 600;
  line-height: 1.2;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--muted);
  white-space: nowrap;
}
.badge.ro {
  background: var(--surface-2);
}
.badge.stale,
.badge.demo {
  border-style: dashed;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.h-healthy {
  --h: var(--healthy);
}
.h-degraded {
  --h: var(--degraded);
}
.h-down {
  --h: var(--down);
}
.h-busy {
  --h: var(--busy);
}
.h-unknown {
  --h: var(--unknown);
}
.badge[class*='h-'],
.chip,
.mark {
  color: var(--h);
  border-color: color-mix(in srgb, var(--h) 55%, transparent);
  background: color-mix(in srgb, var(--h) 11%, transparent);
}
.mark {
  display: inline-block;
  min-width: 1.4em;
  text-align: center;
  border: 1px solid;
  border-radius: 3px;
  font-weight: 700;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.chip {
  display: inline-flex;
  gap: 4px;
  font-family: var(--mono);
  font-size: 0.8em;
  padding: 1px 7px;
  border: 1px solid;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
}
.chip:hover {
  text-decoration: underline;
}
.stale-text {
  color: var(--degraded);
}
.legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 8px 0 12px;
  font-size: 0.9em;
}

.title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  margin-bottom: 4px;
}
.crumbs {
  margin: 0 0 8px;
  font-size: 0.9em;
  color: var(--muted);
}
.callout {
  border: 1px solid color-mix(in srgb, var(--h) 55%, transparent);
  border-left: 4px solid var(--h);
  background: color-mix(in srgb, var(--h) 8%, var(--surface));
  border-radius: var(--radius);
  padding: 10px 14px;
  margin: 12px 0;
}
.callout ul {
  margin: 6px 0 0;
  padding-left: 18px;
  overflow-wrap: anywhere;
}

/* tables */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.table-wrap.scroll {
  overflow: auto;
  max-height: calc(100vh - 190px);
}
table.grid {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}
.grid th,
.grid td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
.grid tbody tr:last-child > * {
  border-bottom: 0;
}
.grid thead th {
  position: sticky;
  top: 52px;
  z-index: 2;
  background: var(--surface-2);
  font-size: 0.82em;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.scroll .grid thead th {
  top: 0;
}
.grid tr.is-stale > td,
.grid tr.is-stopped > td {
  color: var(--muted);
}
.host-link {
  font-weight: 600;
}

/* matrix */
.matrix td,
.matrix th {
  white-space: nowrap;
}
.matrix .sticky-col {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--surface);
  border-right: 1px solid var(--border);
}
.matrix thead .sticky-col {
  z-index: 3;
  background: var(--surface-2);
}
.matrix td.differs,
.legend-swatch.differs {
  background: var(--surface-2);
  box-shadow: inset 0 0 0 2px var(--border-strong);
  font-weight: 700;
}
.legend-swatch {
  font-family: var(--mono);
  padding: 1px 6px;
  border-radius: 3px;
}
.differs-mark {
  font-family: var(--mono);
}
.matrix td.absent {
  color: var(--faint);
  text-align: center;
}
.matrix .small {
  margin-top: 3px;
}

/* host cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 12px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--h, var(--border));
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  scroll-margin-top: 70px;
}
.card:target {
  box-shadow: 0 0 0 2px var(--border-strong);
}
.h-edge-healthy {
  --h: var(--healthy);
}
.h-edge-degraded {
  --h: var(--degraded);
}
.h-edge-down {
  --h: var(--down);
}
.h-edge-busy {
  --h: var(--busy);
}
.h-edge-unknown {
  --h: var(--unknown);
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.reason {
  margin: 0;
  color: var(--muted);
  font-size: 0.9em;
  overflow-wrap: anywhere;
}
.facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 3px 12px;
  margin: 0;
}
.facts dt {
  color: var(--muted);
}
.facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.facts.wide {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.lastlog pre {
  margin: 2px 0 0;
}
.oneline {
  white-space: pre;
  overflow: hidden;
  text-overflow: ellipsis;
  background: var(--surface-2);
  padding: 4px 6px;
  border-radius: 4px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.keys {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.keys li code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
}

/* logs */
.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 12px;
  margin: 12px 0;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.86em;
  color: var(--muted);
}
input {
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 5px 8px;
  min-width: 0;
}
.field input {
  width: 13em;
  max-width: 100%;
}
.field input.narrow {
  width: 6em;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 6px;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.toolbar input[type='search'] {
  flex: 1 1 260px;
}
.log-status {
  margin: 8px 0;
}
pre.log {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  height: calc(100vh - 300px);
  min-height: 280px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.4;
}

/* actions panel */
.panel {
  margin-top: 28px;
  padding: 4px 16px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.panel.is-disabled .action-form {
  opacity: 0.6;
}
.action-form {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.action-desc {
  margin: -4px 0 4px;
}
select {
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 5px 8px;
  max-width: 100%;
}
.button.danger {
  background: var(--down);
  border-color: var(--down);
  color: #fff;
}
.panel .button:disabled {
  cursor: not-allowed;
}
pre.cmd {
  margin: 4px 0 8px;
  padding: 8px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.plan,
.confirm {
  margin: 12px 0;
}
pre.run-log {
  height: auto;
  min-height: 0;
  max-height: 50vh;
}
.run-status {
  margin: 10px 0 6px;
  overflow-wrap: anywhere;
}
table.audit td:last-child {
  overflow-wrap: anywhere;
}
.linkish {
  font: inherit;
  color: var(--muted);
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  cursor: pointer;
}

/* vpn chips */
.vpn-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.vpn-chip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.vpn-routes {
  font-family: var(--mono, monospace);
  max-width: 28em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.button.small-button {
  padding: 1px 8px;
  font-size: 0.86em;
}

/* database panel */
.db-panel h3 {
  margin: 14px 0 4px;
}
.dump-field select {
  max-width: min(640px, calc(100vw - 64px));
}
.field input.wide-input {
  width: 26em;
}
.restore-dialog {
  margin: 12px 0;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  counter-reset: step;
}
.step {
  display: grid;
  grid-template-columns: 1.8em minmax(0, 1fr);
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  counter-increment: step;
}
.step-mark::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  font-weight: 600;
  font-size: 0.86em;
}
.step.done .step-mark::before {
  content: '✓';
  color: var(--healthy);
  border-color: var(--healthy);
}
.step.locked {
  opacity: 0.5;
}
.step-label {
  margin-bottom: 4px;
}
.restore-plan .facts {
  margin: 4px 0;
}
.plan-steps {
  margin: 6px 0;
  padding-left: 1.4em;
}

/* tag autocomplete */
.tag-field {
  flex: 1 1 340px;
  max-width: 640px;
}
.tag-box {
  position: relative;
}
.field .tag-input {
  width: 100%;
}
.tag-popup {
  position: absolute;
  z-index: 20;
  top: calc(100% + 2px);
  left: 0;
  width: max(100%, min(620px, calc(100vw - 32px)));
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgb(0 0 0 / 18%);
  color: var(--text);
  font-size: 14px;
}
.tag-list {
  max-height: 320px;
  overflow-y: auto;
}
.tag-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 10.5em 5.5em 7.5em;
  gap: 8px;
  align-items: center;
  padding: 5px 10px;
  cursor: pointer;
}
.tag-row .tag-name {
  overflow-wrap: anywhere;
}
.tag-row[aria-selected='true'] {
  background: var(--surface-2);
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}
.tag-head {
  cursor: default;
  font-size: 0.8em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.tag-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 5px 10px;
  border-top: 1px solid var(--border);
}
.badge.src-git {
  border-style: dashed;
}

/* phone width: tables become stacked cards, no horizontal page scroll */
@media (max-width: 760px) {
  .table-wrap:not(.scroll) {
    border: 0;
  }
  table.stack,
  table.stack tbody,
  table.stack tr,
  table.stack td {
    display: block;
    width: 100%;
  }
  table.stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  table.stack tr {
    border-bottom: 1px solid var(--border-strong);
    padding: 6px 0;
  }
  table.stack tbody tr:last-child {
    border-bottom: 0;
  }
  table.stack td {
    display: grid;
    grid-template-columns: 7.5em minmax(0, 1fr);
    gap: 8px;
    border: 0;
    padding: 4px 10px;
    overflow-wrap: anywhere;
  }
  table.stack td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.86em;
  }
  .spacer {
    display: none;
  }
  #refresh {
    margin-left: auto;
  }
  .freshness {
    order: 10;
    width: 100%;
  }
  pre.log {
    height: 60vh;
  }
  .panel {
    padding: 4px 10px 10px;
  }
  .tag-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .tag-row > :nth-child(3),
  .tag-head {
    display: none;
  }
}

/* vault / VPN login dialogs */
.login-dialog {
  max-width: min(420px, calc(100vw - 32px));
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  color: inherit;
  padding: 16px 20px;
}
.login-dialog::backdrop {
  background: rgb(0 0 0 / 0.45);
}
.login-dialog h2 {
  margin: 0 0 4px;
  font-size: 1.1em;
}
.login-dialog .stack {
  display: grid;
  gap: 10px;
}
.login-dialog .field {
  display: grid;
  gap: 4px;
}
.login-dialog .field input {
  font: inherit;
  padding: 5px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: var(--bg);
  color: inherit;
}
.login-dialog .row {
  display: flex;
  gap: 8px;
}

/* console login */
[data-auth-hidden] {
  display: none !important;
}
.auth-banner {
  background: color-mix(in srgb, var(--degraded) 14%, var(--surface));
  border-top: 1px solid color-mix(in srgb, var(--degraded) 55%, transparent);
  color: var(--text);
  padding: 8px 0;
}
.auth-page {
  max-width: 420px;
  margin: 40px auto;
}
.auth-form {
  display: grid;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.auth-form .field input {
  width: 100%;
}
.auth-form .field input.narrow {
  width: 8em;
}
.auth-form .error-text:empty {
  display: none;
}
.key-cards {
  margin-top: 24px;
}
.key-line {
  margin: 0;
  padding: 8px;
  background: var(--surface-2);
  border-radius: var(--radius);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.86em;
}
.stack-sm {
  display: grid;
  gap: 8px;
}
.auth-form .row,
.ssh-key-card .row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.ssh-key-card h2 {
  margin: 0;
  font-size: 1em;
}

/* web terminals: tab strip, one pane per tab, xterm fills the window below the header */
.terminal-view {
  margin-top: 12px;
}
.term-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--border);
}
.term-tab {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--surface-2);
}
.term-tab.active {
  background: var(--surface);
  border-color: var(--border-strong);
}
.term-tab.sensitive {
  border-top: 3px solid var(--down);
}
.term-tab a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 4px 5px 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.9em;
}
.term-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--unknown);
}
.term-tab[data-state='open'] .term-dot {
  background: var(--healthy);
}
.term-tab[data-state='connecting'] .term-dot {
  background: var(--busy);
}
.term-tab[data-state='ended'] .term-dot {
  background: var(--down);
}
.term-x {
  font: inherit;
  border: none;
  background: none;
  color: var(--muted);
  cursor: pointer;
  padding: 2px 8px;
}
.term-x:hover {
  color: var(--down);
}
.term-pane {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
}
.term-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
}
.term-bar strong {
  font-family: var(--mono);
}
.badge.term-warn {
  color: #fff;
  background: var(--down);
  border-color: var(--down);
}
.button.term-sensitive {
  border-color: var(--down);
}
.term-notice {
  margin: 0 10px 8px;
}
.term-screen {
  height: calc(100vh - 230px);
  min-height: 280px;
  padding: 4px;
  background: #1b1e22;
}
.term-help {
  margin-top: 8px;
}

/* setup page, connection tests */
.cfg-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 8px 0 16px;
  border-bottom: 1px solid var(--border);
}
.cfg-tabs a {
  padding: 6px 12px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.cfg-tabs a[aria-current='page'] {
  color: var(--text);
  border-bottom-color: var(--text);
  font-weight: 600;
}
.cfg-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 10px 0;
}
.cfg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.cfg-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 16px 12px;
}
.cfg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15em), 1fr));
  gap: 12px 16px;
  align-items: start;
}
.cfg-field input,
.cfg-field select,
.cfg-field textarea,
.cfg-ssh .field input {
  width: 100%;
}
.cfg-field textarea {
  font: inherit;
  resize: vertical;
}
.cfg-issue:empty {
  display: none;
}
.warn-text {
  color: var(--degraded);
}
.cfg-sub {
  border-left: 3px solid var(--border);
  padding-left: 12px;
}
.cfg-steps {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}
.cfg-step {
  display: grid;
  grid-template-columns: 1.8em minmax(0, 1fr);
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
}
.cfg-mark {
  display: inline-grid;
  place-items: center;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  border: 1px solid var(--h);
  color: var(--h);
  font-weight: 700;
}
.cfg-step.st-running .cfg-mark {
  animation: cfg-pulse 1s ease-in-out infinite;
}
@keyframes cfg-pulse {
  50% {
    opacity: 0.35;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cfg-step.st-running .cfg-mark {
    animation: none;
  }
}
.cfg-detail,
.cfg-pre {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.cfg-hint {
  color: var(--degraded);
  margin-top: 2px;
}
.cfg-fix {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.login-dialog.cfg-dialog.wide {
  max-width: none;
  width: min(760px, calc(100vw - 32px));
}
.cfg-keys {
  list-style: none;
  padding: 0;
}
.cfg-changes .cfg-from {
  color: var(--down);
  overflow-wrap: anywhere;
}
.cfg-changes .cfg-to {
  color: var(--healthy);
  overflow-wrap: anywhere;
}
.cfg-raw {
  width: 100%;
  font-family: var(--mono);
  font-size: 0.86em;
  resize: vertical;
}
.cfg-files {
  list-style: none;
  padding: 0;
}
.cfg-files li {
  padding: 3px 0;
}
.cfg-details {
  margin: 10px 0;
}
.totp-qr {
  display: block;
  background: #fff;
  padding: 8px;
  border-radius: var(--radius);
}
.cfg-ovpn {
  white-space: pre;
  overflow-wrap: normal;
  overflow-x: auto;
  tab-size: 2;
}
