/* Mortals and Monsters — browser HUD (gothic on black). */
:root {
  --bg: #0a0a0a;
  --panel: #101214;
  --rule: #3a3a3a;
  --silver: #e8e8e8;
  --teal: #7ec8a8;
  --muted: #8a8a8a;
  --gold: #c9a227;
  --crimson: #8b2942;
  --input-bg: #121212;
  --input-border: #333;
  --hud-width: 420px;
  --comm-height: 28vh;
  --ui-font-size: 15px;
}

/* High-contrast theme: pure black/white, thicker rules -- never the only
   way meaning is conveyed (tags/text already carry it), just easier to
   read for low-vision / bright-room players. */
body.theme-contrast {
  --bg: #000000;
  --panel: #000000;
  --rule: #ffffff;
  --silver: #ffffff;
  --teal: #7fffd4;
  --muted: #cfcfcf;
  --gold: #ffd700;
  --input-bg: #000000;
  --input-border: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--bg);
}

body {
  margin: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--app-height, 100vh);
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--bg);
  color: var(--silver);
  font-family: Consolas, "Courier New", Courier, monospace;
  font-size: var(--ui-font-size);
  line-height: 1.35;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

@supports (height: 100dvh) {
  body {
    height: var(--app-height, 100dvh);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

header {
  flex: 0 0 auto;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1.1rem;
}

header h1 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

header .meta {
  color: var(--muted);
  font-size: 0.82rem;
}

header .meta a,
header .hint {
  color: var(--teal);
}

header button.hint {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--teal);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.build-stamp {
  color: var(--muted);
  font-size: 0.72rem;
}

/* Text size / theme now live in the "display" popover (below, near the
   shortcuts dialog) instead of a permanent full-width header row -- that
   row was pushing the whole header down a line on every load. */
.display-pref {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0.6rem 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.display-pref select {
  background: var(--input-bg);
  color: var(--silver);
  border: 1px solid var(--input-border);
  border-radius: 2px;
  font: inherit;
  font-size: 0.78rem;
  padding: 0.1rem 0.3rem;
}

#status {
  margin-left: auto;
  font-size: 0.82rem;
  color: var(--muted);
}

#status.connected {
  color: var(--teal);
}

#status.error {
  color: #e07070;
}

#status.wait {
  color: var(--gold);
}

#play {
  flex: 1 1 0;
  display: flex;
  min-height: 0;
  overflow: hidden;
}

#play-main {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

#comm-pane {
  flex: 0 0 auto;
  height: var(--comm-height, 28vh);
  max-height: 50vh;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--rule);
  background: #0c0e10;
  min-height: 4.5rem;
  overflow: hidden;
}

/* Drag handles between chat capture / story log / HUD column. Hidden on
   stacked and phone-tab layouts where fixed splits would fight tabs. */
.pane-split {
  flex: 0 0 auto;
  position: relative;
  background: #141414;
  touch-action: none;
  user-select: none;
  border: 0;
  padding: 0;
}

.pane-split-h {
  height: 6px;
  min-height: 6px;
  cursor: ns-resize;
  border-bottom: 1px solid var(--rule);
}

.pane-split-v {
  width: 6px;
  min-width: 6px;
  cursor: ew-resize;
  border-left: 1px solid var(--rule);
}

.pane-split::before {
  position: absolute;
  pointer-events: none;
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1;
  letter-spacing: 0.12em;
}

.pane-split-h::before {
  content: "···";
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.pane-split-v::before {
  content: "⋮";
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.pane-split:hover,
.pane-split:focus {
  outline: 1px solid var(--teal);
  outline-offset: -1px;
}

.pane-split:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 0;
}

body[data-pane-split-off="true"] .pane-split {
  display: none;
}

body.pane-split-dragging {
  user-select: none;
}

#comm-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.comm-toolbar {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.85rem;
  padding: 0.35rem 0.85rem 0.25rem;
  border-bottom: 1px solid #222;
}

/* Chevron toggles shared by comm / atlas / zone / status panes. Collapsing
   hides the body only -- the header (tabs, gag checkbox, zoom, title)
   stays visible so state controls are never hidden along with content. */
.pane-toggle {
  background: none;
  border: 0;
  color: var(--silver);
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  padding: 0.1rem 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 44px;
  min-height: 44px;
}

.pane-toggle:hover,
.pane-toggle:focus {
  color: var(--teal);
}

.chevron {
  display: inline-block;
  transition: transform 0.12s ease;
}

.pane-toggle[aria-expanded="false"] .chevron {
  transform: rotate(-90deg);
}

.pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.pane-head .pane-toggle {
  flex: 1 1 auto;
  text-transform: uppercase;
  color: var(--muted);
}

#atlas-panel[data-collapsed="true"] #atlas-body,
#zone-panel[data-collapsed="true"] #zone-body,
#status-panel[data-collapsed="true"] #status-body,
#combat-panel[data-collapsed="true"] #combat-body,
#comm-pane[data-collapsed="true"] #comm-body {
  display: none;
}

.zoom-controls {
  display: flex;
  gap: 0.2rem;
}

.zoom-btn {
  background: #161616;
  color: var(--silver);
  border: 1px solid var(--input-border);
  border-radius: 2px;
  font: inherit;
  font-size: 0.85rem;
  line-height: 1;
  width: 1.5rem;
  height: 1.5rem;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
}

.zoom-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
}

#atlas-scroll,
#zone-scroll {
  overflow: auto;
  max-height: 320px;
}

.comm-tabs {
  display: flex;
  gap: 0.25rem;
}

.comm-tabs button {
  background: #161616;
  color: var(--muted);
  border: 1px solid var(--input-border);
  border-radius: 2px;
  font: inherit;
  font-size: 0.78rem;
  padding: 0.15rem 0.55rem;
  cursor: pointer;
}

.comm-tabs button[aria-selected="true"] {
  color: var(--silver);
  border-color: var(--teal);
}

.comm-gag {
  color: var(--muted);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.comm-log {
  flex: 1 1 auto;
  overflow: auto;
  padding: 0.35rem 0.85rem 0.5rem;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.88rem;
  min-height: 0;
}

.comm-line {
  display: block;
}

.comm-line .chan {
  color: var(--gold);
}

/* Own-input echo: shows what you typed in the transcript before the
   server's reply lands. Muted + italic so it never reads like game prose. */
.echo-line {
  display: block;
  color: var(--muted);
  font-style: italic;
}

/* Complete telnet lines are block boxes -- same idea as .comm-line.
   Inline unstyled spans plus leftover \\r made consecutive rooms smear
   over each other in the story log. white-space lives on the row, not the
   scroller, so rows cannot paint on top of each other. The live strip
   (scroll-up split) uses the same row contract. */
#output .out-line,
#output .echo-line,
#output-live .out-line,
#output-live .echo-line {
  display: block;
  position: relative;
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 1.2em;
}

#output .out-line:empty::before,
#output-live .out-line:empty::before {
  content: "\00a0";
}

#output .out-partial,
#output-live .out-partial {
  display: block;
  white-space: pre-wrap;
  word-break: break-word;
}

#room-card {
  flex: 0 0 auto;
  padding: 0.4rem 1rem 0.45rem;
  border-bottom: 1px solid var(--rule);
  background: #0c0e10;
}

#room-title {
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

#room-sub {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: lowercase;
}

#room-sub:empty {
  display: none;
}

#output-split {
  flex: 1 1 0;
  min-width: 0;
  min-height: 8rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#output {
  flex: 1 1 0;
  margin: 0;
  padding: 0.85rem 1rem;
  overflow: auto;
  overscroll-behavior: contain;
  min-width: 0;
  min-height: 8rem;
  /* flex-basis 0 -- grow into leftover space, never size to the log
     length (that is what pushed the command bar up the page). No
     translateZ layer: Chrome keeps a stale tile after tab-away and
     smears rows. */
}

/* Live strip while the story log is scrolled up -- new incoming stays
   on screen without yanking the history pane. hidden must stay none
   (author display:flex would beat the UA [hidden] rule). */
#output-live {
  flex: 0 0 auto;
  max-height: 40%;
  overflow: auto;
  overscroll-behavior: contain;
  min-height: 0;
  padding: 0.4rem 1rem 0.55rem;
  border-top: 1px solid var(--teal);
  background: #0c0e10;
  cursor: pointer;
}

#output-live[hidden] {
  display: none !important;
}

#output-live:not([hidden])::before {
  content: "Live -- click or press End to catch up";
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

#hud {
  flex: 0 0 var(--hud-width);
  width: var(--hud-width);
  border-left: 1px solid var(--rule);
  background: var(--panel);
  padding: 0.65rem 0.7rem 0.85rem;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-height: 0;
}

#atlas-panel {
  flex: 0 0 auto;
}

#atlas {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  background: #080a0e;
  border: 1px solid var(--rule);
  cursor: crosshair;
  touch-action: manipulation;
  user-select: none;
}

#atlas-caption {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

#zone-panel {
  flex: 0 0 auto;
}

#zone-map {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  background: #080a0e;
  border: 1px solid var(--rule);
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
}

#zone-caption {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

#combat-panel {
  flex: 0 0 auto;
  margin-bottom: 0.35rem;
}

#combat-lead {
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0 0 0.35rem;
}

#combat-scroll {
  max-height: 9rem;
  overflow-y: auto;
  border: 1px solid var(--rule);
  background: #0c0d0e;
  padding: 0.35rem 0.45rem;
}

#combat-swing-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.combat-swing {
  border-bottom: 1px solid #222;
  padding: 0.35rem 0;
  font-size: 0.75rem;
  color: var(--silver);
}

.combat-swing:last-child {
  border-bottom: 0;
}

.combat-swing-head {
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.combat-swing-details {
  color: var(--muted);
  line-height: 1.35;
}

.combat-field-label {
  color: var(--muted);
}

.combat-field-value {
  color: var(--silver);
}

#status-panel {
  flex: 0 0 auto;
}

#compass {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

#compass button {
  background: #161616;
  color: var(--silver);
  border: 1px solid var(--input-border);
  border-radius: 2px;
  font: inherit;
  font-size: 0.78rem;
  padding: 0.2rem 0.4rem;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
}

#compass button:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.gauge {
  margin-bottom: 0.4rem;
}

.gauge-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.12rem;
}

.gauge-label strong {
  color: var(--silver);
  font-weight: 600;
}

.gauge-track {
  height: 8px;
  background: #1a1a1a;
  border: 1px solid var(--rule);
  overflow: hidden;
}

.gauge-fill {
  height: 100%;
  background: var(--teal);
  width: 0%;
}

.gauge-fill.hp {
  background: #8b2942;
}

.gauge-fill.stamina {
  background: #c9a227;
}

.gauge-fill.energy {
  background: #6080c0;
}

.gauge-fill.fuel {
  background: #a060a0;
}

.gauge-fill.mana {
  background: #7ec8a8;
}

.gauge-fill.momentum {
  background: #e8d080;
}

#prompt-mirror {
  flex: 0 0 auto;
  padding: 0.15rem 1rem;
  font-size: 0.78rem;
  color: var(--muted);
  border-top: 1px solid #222;
  min-height: 1.2rem;
}

#input-row {
  flex: 0 0 auto;
  display: flex;
  gap: 0.5rem;
  padding: 0.65rem 1rem 0.85rem;
  border-top: 1px solid var(--rule);
  background: #080808;
  position: relative;
  z-index: 4;
  flex-shrink: 0;
}

#cmd {
  flex: 1 1 auto;
  background: var(--input-bg);
  color: var(--silver);
  border: 1px solid var(--input-border);
  border-radius: 3px;
  padding: 0.5rem 0.65rem;
  font: inherit;
}

#cmd:focus {
  outline: 1px solid var(--teal);
  border-color: var(--teal);
}

#cmd:disabled {
  opacity: 0.5;
}

#send {
  background: #1a1a1a;
  color: var(--silver);
  border: 1px solid var(--input-border);
  border-radius: 3px;
  padding: 0.5rem 0.85rem;
  font: inherit;
  cursor: pointer;
}

#send:hover:not(:disabled) {
  border-color: var(--teal);
  color: var(--teal);
}

#send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#phone-nav {
  display: none;
  position: relative;
  z-index: 4;
}

#more-sheet {
  display: none;
  padding: 1rem 1.1rem 1.25rem;
  overflow: auto;
  min-height: 0;
}

#more-sheet h2 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--gold);
}

.more-lead,
.more-meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 0.85rem;
}

.more-meta a {
  color: var(--teal);
}

#more-sheet button {
  display: block;
  width: 100%;
  margin: 0 0 0.45rem;
  background: #1a1a1a;
  color: var(--silver);
  border: 1px solid var(--input-border);
  border-radius: 3px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  cursor: pointer;
  min-height: 44px;
}

#more-sheet button:hover,
#more-sheet button:focus {
  border-color: var(--teal);
  color: var(--teal);
}

#ctx-menu {
  position: fixed;
  z-index: 20;
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  background: #141414;
  border: 1px solid var(--gold);
  min-width: 11rem;
}

#ctx-menu li {
  margin: 0;
}

#ctx-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--silver);
  border: 0;
  font: inherit;
  font-size: 0.82rem;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}

#ctx-menu button:hover,
#ctx-menu button:focus {
  background: #1e1a12;
  color: var(--gold);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  z-index: 50;
  background: #141414;
  color: var(--teal);
  border: 1px solid var(--teal);
  padding: 0.35rem 0.7rem;
  text-decoration: none;
}

.skip:focus {
  left: 0.5rem;
}

body.screenreader #atlas-panel,
body.screenreader #zone-panel {
  display: none;
}

.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;
}

/* Text size preference -- a plain scale on the root font-size variable,
   not a separate zoom system, so every panel (transcript, comm log, HUD
   labels) grows together. */
body[data-fontsize="small"] { --ui-font-size: 13px; }
body[data-fontsize="normal"] { --ui-font-size: 15px; }
body[data-fontsize="large"] { --ui-font-size: 18px; }
body[data-fontsize="xlarge"] { --ui-font-size: 22px; }

#shortcuts-dialog,
#display-dialog {
  position: fixed;
  inset: 0;
  z-index: 40;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
}

/* An ID selector for display:flex would outrank the browser's own
   [hidden] { display: none; } rule (author styles always beat the UA
   stylesheet, no matter the specificity) -- so toggling `hidden` in JS
   would never actually hide the dialog. Make both states explicit. */
#shortcuts-dialog[hidden],
#display-dialog[hidden] {
  display: none;
}

#shortcuts-dialog:not([hidden]),
#display-dialog:not([hidden]) {
  display: flex;
}

#shortcuts-panel,
#display-panel {
  background: #141414;
  border: 1px solid var(--gold);
  padding: 1rem 1.25rem;
  max-width: 28rem;
  max-height: 80vh;
  overflow: auto;
}

#shortcuts-panel h2,
#display-panel h2 {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  color: var(--silver);
}

#shortcuts-panel dl {
  margin: 0 0 0.9rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.9rem;
  font-size: 0.82rem;
}

#shortcuts-panel dt {
  color: var(--gold);
  white-space: nowrap;
}

#shortcuts-panel dd {
  margin: 0;
  color: var(--muted);
}

#shortcuts-close,
#display-close {
  background: #1a1a1a;
  color: var(--silver);
  border: 1px solid var(--input-border);
  border-radius: 3px;
  padding: 0.35rem 0.8rem;
  font: inherit;
  cursor: pointer;
}

#shortcuts-close:hover,
#display-close:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* Narrow computer windows: stack the HUD under the log. Keep header
   links (site, Discord, shortcuts, display) and keep maps/gauges on
   screen -- do not hide them behind phone tabs. */
@media (max-width: 720px) {
  header {
    padding: 0.4rem 0.75rem;
  }
  #status {
    margin-left: 0;
  }
  .pane-split {
    display: none;
  }
  #play {
    flex-direction: column;
  }
  #hud {
    flex: 1 1 0;
    width: 100%;
    border-left: 0;
    border-top: 1px solid var(--rule);
    max-height: none;
    min-height: 0;
  }
  #input-row {
    padding: 0.5rem 0.75rem;
  }
  #cmd,
  #send {
    min-height: 44px;
  }
  #compass button,
  .zoom-btn,
  .pane-toggle,
  .comm-tabs button {
    min-width: 44px;
    min-height: 44px;
  }
}

/* Touch phones only (must match JS phoneShell): Log / Maps / Status / More.
   pointer:coarse keeps a mouse desktop at 700px from losing the HUD. */
@media (max-width: 720px) and (pointer: coarse) {
  header .meta {
    display: none;
  }
  #phone-nav {
    display: flex;
    flex: 0 0 auto;
    gap: 0;
    border-top: 1px solid var(--rule);
    background: #080808;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  #phone-nav button {
    flex: 1 1 0;
    min-height: 44px;
    background: transparent;
    color: var(--muted);
    border: 0;
    border-top: 2px solid transparent;
    font: inherit;
    font-size: 0.78rem;
    cursor: pointer;
    padding: 0.35rem 0.2rem;
  }
  #phone-nav button[aria-pressed="true"] {
    color: var(--silver);
    border-top-color: var(--gold);
  }
  #play[data-phone-tab="log"] #hud {
    display: none;
  }
  #play[data-phone-tab="maps"] #play-main,
  #play[data-phone-tab="status"] #play-main {
    display: none;
  }
  #play[data-phone-tab="maps"] #status-panel,
  #play[data-phone-tab="maps"] #combat-panel {
    display: none;
  }
  #play[data-phone-tab="status"] #atlas-panel,
  #play[data-phone-tab="status"] #zone-panel {
    display: none;
  }
  #play[data-phone-tab="more"] {
    display: none;
  }
  body[data-phone-tab="more"] #more-sheet {
    display: block;
    flex: 1 1 auto;
    min-height: 0;
  }
  #ctx-menu.ctx-sheet {
    left: 0 !important;
    right: 0;
    top: auto !important;
    bottom: 0;
    width: 100%;
    min-width: 0;
    border-left: 0;
    border-right: 0;
    padding-bottom: env(safe-area-inset-bottom, 0.5rem);
  }
  #ctx-menu.ctx-sheet button {
    min-height: 44px;
  }
}

/* ---------------------------------------------------------------------
   Tier 0 client diagnostics (docs/plans/web_client_drop_diagnostics.md).
   The badge only appears after a real fault, so it costs nothing in the
   normal case. Crimson carries no meaning on its own -- the button text
   says "client problem", and an aria-label repeats the count (hard rule 7).
   --------------------------------------------------------------------- */
#client-error-badge {
  color: var(--silver);
  background: var(--crimson);
  border: 1px solid var(--gold);
  border-radius: 2px;
  padding: 0 0.4rem;
  margin-left: 0.4rem;
  font-size: 0.72rem;
  cursor: pointer;
}

#client-error-badge:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

#diag-block {
  margin: 0.9rem 0 0.6rem;
  border-top: 1px solid var(--rule);
  padding-top: 0.7rem;
}

#diag-block h3 {
  margin: 0 0 0.3rem;
  font-size: 0.85rem;
  color: var(--silver);
}

#diag-note {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  color: var(--muted);
}

#diag-text {
  /* Scrolls rather than stretching the popover; wraps so long user-agent
     strings do not force a horizontal scrollbar on phones. */
  max-height: 14rem;
  overflow: auto;
  margin: 0 0 0.5rem;
  padding: 0.5rem;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  font-size: 0.72rem;
  line-height: 1.35;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--silver);
}

#diag-copied {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: var(--teal);
}
