/* Color roles come from the validated reference palette (dark surface). Data
   marks use the single categorical slot 1; status hues are reserved and always
   ship with an icon + label so meaning never rests on color alone. */
:root {
  color-scheme: dark;
  --plane: #0d0d0d;
  --surface-1: #1a1a19;
  --surface-2: #212120;
  --text-primary: #ffffff;
  --text-secondary: #c3c2b7;
  --text-muted: #898781;
  --grid: #2c2c2a;
  --baseline: #383835;
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --series-1: #3987e5;
  --good: #0ca30c;
  --warning: #fab219;
  --serious: #ec835a;
  --critical: #d03b3b;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 10px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--plane);
  color: var(--text-primary);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
}

body {
  background-image:
    radial-gradient(900px 420px at 12% -8%, rgba(57, 135, 229, 0.13), transparent 62%),
    radial-gradient(760px 380px at 92% 4%, rgba(57, 135, 229, 0.07), transparent 60%);
  background-repeat: no-repeat;
  min-height: 100vh;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 26px 22px 90px; }

/* ------------------------------------------------------------------ header */

header.top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

h1 {
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}

.tagline { color: var(--text-secondary); font-size: 13px; margin: 0; max-width: 62ch; }
.tagline strong { color: var(--text-primary); font-weight: 600; }

.badges { display: flex; gap: 8px; flex-wrap: wrap; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-1);
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); flex: none; }
.badge.on { border-color: rgba(12, 163, 12, 0.45); color: var(--text-primary); }
.badge.on .dot { background: var(--good); box-shadow: 0 0 8px rgba(12, 163, 12, 0.75); }
.badge.off .dot { background: var(--text-muted); }
.badge code { font-family: var(--mono); font-size: 11px; color: var(--text-primary); }

/* ------------------------------------------------------------------- cards */

.card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }

/* Grid items default to min-width:auto, so they refuse to shrink below their
   min-content width. A <select> contributes the width of its longest <option>,
   which is enough to push the whole card past a phone viewport. Note that
   max-width:100% on the select does NOT fix this -- the grid item is what has
   to be allowed to shrink. */
.grid-2 > *, .dash > * { min-width: 0; }
select { max-width: 100%; }
#wl-preset { width: 100%; }

.card h2 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  margin: 0 0 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(57, 135, 229, 0.16);
  border: 1px solid rgba(57, 135, 229, 0.5);
  color: var(--series-1);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

/* -------------------------------------------------------------- drop zones */

.drop {
  /* a <label> is inline by default, which fragments the dashed border */
  display: block;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  background: rgba(255, 255, 255, 0.012);
}
.drop:hover, .drop.hot {
  border-color: var(--series-1);
  background: rgba(57, 135, 229, 0.07);
}
.drop .big { font-size: 14px; font-weight: 550; margin-bottom: 5px; }
.drop .small { color: var(--text-muted); font-size: 12px; }
.drop input[type=file] { display: none; }

.row { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.row.mt { margin-top: 12px; }
.spacer { flex: 1 1 auto; }

/* ----------------------------------------------------------------- buttons */

button {
  font-family: inherit;
  font-size: 13px;
  padding: 8px 15px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color .15s, background .15s, opacity .15s;
}
button:hover:not(:disabled) { border-color: var(--text-muted); background: #2a2a28; }
button:disabled { opacity: .4; cursor: not-allowed; }

button.primary {
  background: var(--series-1);
  border-color: var(--series-1);
  color: #ffffff;
  font-weight: 600;
}
button.primary:hover:not(:disabled) { background: #4b93e8; border-color: #4b93e8; }
button.danger { border-color: rgba(208, 59, 59, 0.5); color: #f0a2a2; }
button.ghost { background: transparent; }
button.small { padding: 5px 10px; font-size: 12px; }

textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  background: var(--plane);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  font-family: var(--mono);
  font-size: 12px;
}
textarea:focus, input:focus, select:focus { outline: 2px solid rgba(57,135,229,.55); outline-offset: 1px; }

input[type=number], input[type=text], select {
  background: var(--plane);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 6px 9px;
  font-family: var(--mono);
  font-size: 12px;
}
label.inline { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-secondary); cursor: pointer; }
input[type=checkbox] { accent-color: var(--series-1); width: 15px; height: 15px; }
input[type=range] { accent-color: var(--series-1); }

.hint { color: var(--text-muted); font-size: 12px; margin: 10px 0 0; }
.hint code, code.inline { font-family: var(--mono); font-size: 11.5px; background: rgba(255,255,255,.06); padding: 1px 5px; border-radius: 4px; }

/* ------------------------------------------------- wordlist source tabs */

.tabs {
  display: flex;
  gap: 3px;
  padding: 3px;
  background: var(--plane);
  border: 1px solid var(--border);
  border-radius: 9px;
  margin-bottom: 13px;
}
.tab {
  flex: 1 1 0;
  min-width: 0;
  padding: 7px 6px;
  font-size: 12.5px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  border-radius: 6px;
}
.tab:hover:not(.active) { background: rgba(255, 255, 255, .05); color: var(--text-secondary); }
.tab.active {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text-primary);
  font-weight: 600;
}

.tabpanel { display: none; }
.tabpanel.active { display: block; }

#wl-preset, #mask-input, #wl-url { width: 100%; }
#mask-input { font-size: 15px; letter-spacing: .06em; padding: 9px 10px; }

.formgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
@media (max-width: 620px) { .formgrid { grid-template-columns: 1fr; } }
.formgrid label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
  color: var(--text-muted);
  min-width: 0;
}
.formgrid input { width: 100%; font-family: var(--sans); font-size: 12.5px; }

details.opts { margin-top: 12px; }
details.opts summary {
  cursor: pointer;
  color: var(--text-muted);
  font-size: 12px;
  padding: 4px 0;
}
details.opts[open] summary { color: var(--text-secondary); }

table.legend {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
  font-size: 11.5px;
}
table.legend td { padding: 2px 0; color: var(--text-muted); vertical-align: top; }
table.legend td:first-child {
  font-family: var(--mono);
  color: var(--series-1);
  width: 46px;
  white-space: nowrap;
}

/* rules */
.rules-row {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--border);
}
.rules-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 8px;
}
.hint-inline {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--text-muted);
  opacity: .8;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}
.chip:hover { border-color: var(--text-muted); }
.chip.on {
  border-color: var(--series-1);
  background: rgba(57, 135, 229, .14);
  color: var(--text-primary);
}
.chip input { display: none; }
.chip .x { font-family: var(--mono); font-size: 10.5px; color: var(--text-muted); }
.chip.on .x { color: #9cc6f4; }

.bigfield { display: block; }
.bigfield span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.bigfield input {
  width: 100%;
  font-size: 26px;
  font-family: var(--mono);
  letter-spacing: .18em;
  text-align: center;
  padding: 12px 10px;
}

.rulelist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 14px;
  margin-top: 9px;
}
@media (max-width: 620px) { .rulelist { grid-template-columns: 1fr; } }
.rulelist label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  min-width: 0;
}
.rulelist .rname { font-weight: 600; }
.rulelist .rmul { font-family: var(--mono); font-size: 11px; color: var(--text-muted); }
.rulelist .rdesc {
  color: var(--text-muted);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* "you have a wordlist loaded" bar */
.loaded {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 14px;
  padding: 11px 13px;
  border: 1px solid rgba(12, 163, 12, 0.45);
  border-radius: 9px;
  background: rgba(12, 163, 12, 0.09);
}
.loaded-tick { color: var(--good); font-weight: 700; flex: none; }
.loaded-text { flex: 1 1 auto; min-width: 0; }
.loaded-title { font-size: 13px; font-weight: 600; color: var(--text-primary); word-break: break-word; }
.loaded-sub { font-size: 11.5px; color: var(--text-secondary); margin-top: 2px; }
.loaded button { flex: none; }

.wl-warn { color: var(--warning); }
.wl-big { color: var(--critical); }

/* ---------------------------------------------------------- join modal */

.modal {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(3px);
  padding: 20px;
}
.modal.hidden { display: none; }
.modal-card {
  background: var(--surface-1);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 28px 26px;
  text-align: center;
  max-width: 380px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .6);
}
.jm-icon {
  font-size: 30px; line-height: 1;
  width: 62px; height: 62px; margin: 0 auto 14px;
  display: grid; place-items: center; border-radius: 50%;
}
.jm-icon.good { color: var(--good); background: rgba(12,163,12,.14); border: 1px solid rgba(12,163,12,.45); }
.jm-icon.warn { color: var(--warning); background: rgba(250,178,25,.12); border: 1px solid rgba(250,178,25,.45); }
.jm-title { font-size: 18px; font-weight: 650; margin-bottom: 8px; }
.jm-detail { font-size: 13px; color: var(--text-secondary); line-height: 1.55; }

/* ------------------------------------------------------------------ team */

.team-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.team-role { font-size: 15px; font-weight: 650; }
.team-stats { font-size: 12.5px; color: var(--text-secondary); margin-top: 2px; }
.team-stats b { color: var(--text-primary); }

.team-share { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.team-share canvas {
  border-radius: 8px; background: #fff; flex: none;
  image-rendering: pixelated;
}
.team-share-text { flex: 1 1 240px; min-width: 0; }
#team-url { width: 100%; font-size: 11.5px; }

#team-bench { margin-top: 14px; }
.bench-rows { display: flex; flex-direction: column; gap: 4px; }
.bench-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 10px; align-items: baseline;
  padding: 8px 11px; border: 1px solid var(--border);
  border-radius: 7px; background: var(--surface-2); font-size: 12.5px;
}
.bench-row.bench-sum { border-color: rgba(57,135,229,.5); background: rgba(57,135,229,.10); }
.bench-name { font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bench-part { color: var(--text-muted); font-size: 11.5px; font-family: var(--mono); }
.bench-total { font-family: var(--mono); font-weight: 650; min-width: 74px; text-align: right; }
@media (max-width: 560px) {
  .bench-row { grid-template-columns: 1fr auto; row-gap: 2px; }
  .bench-part { grid-column: 1 / -1; }
}

.devices { margin-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.dev {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 10px; border: 1px solid var(--border);
  border-radius: 7px; background: var(--surface-2); font-size: 12.5px;
}
.dev .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dev .dot.good { background: var(--good); box-shadow: 0 0 7px rgba(12,163,12,.7); }
.dev .dot.warn { background: var(--warning); }
.dev .dot.bad { background: var(--critical); }
.dev .dot.muted { background: var(--text-muted); }
.dev-name { font-family: var(--mono); flex: 1 1 auto; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dev-state { color: var(--text-muted); font-size: 11.5px; }
.dev-rate { font-family: var(--mono); color: var(--text-secondary); min-width: 62px; text-align: right; }

@media (max-width: 560px) {
  .team-share { gap: 12px; }
  .team-share canvas { margin: 0 auto; }
}

/* ---------------------------------------------------------------- targets */

.section { margin-top: 22px; }
.section > h2.big {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  margin: 0 0 12px;
  font-weight: 600;
}

.target {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 15px;
  background: var(--surface-1);
  cursor: pointer;
  margin-bottom: 10px;
  transition: border-color .15s, background .15s;
}
.target:hover { border-color: var(--border-strong); }
.target.sel { border-color: var(--series-1); background: rgba(57, 135, 229, 0.08); }
.target input[type=radio] { margin-top: 3px; accent-color: var(--series-1); flex: none; }
.target .name { font-weight: 600; font-size: 14px; margin-bottom: 3px; }
.target .name .nossid { color: var(--warning); font-weight: 500; }
.target .meta { color: var(--text-secondary); font-size: 12px; font-family: var(--mono); word-break: break-all; }
.target .note { color: var(--text-muted); font-size: 12px; margin-top: 5px; }

.tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  margin-left: 7px;
  vertical-align: 2px;
}
.tag.pmkid { border-color: rgba(57,135,229,.55); color: #9cc6f4; }
.tag.auth { border-color: rgba(12,163,12,.5); color: #7ed37e; }

/* --------------------------------------------------------------- callouts */

.callout {
  display: flex;
  gap: 11px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--text-muted);
  border-radius: 8px;
  padding: 13px 15px;
  background: var(--surface-1);
  margin-bottom: 10px;
  font-size: 13px;
}
.callout .ico { flex: none; font-size: 14px; line-height: 1.4; }
.callout .body { color: var(--text-secondary); }
.callout .body b { color: var(--text-primary); font-weight: 600; }
.callout.warn { border-left-color: var(--warning); }
.callout.warn .ico { color: var(--warning); }
.callout.bad { border-left-color: var(--critical); }
.callout.bad .ico { color: var(--critical); }
.callout.good { border-left-color: var(--good); }
.callout.good .ico { color: var(--good); }
.callout.info { border-left-color: var(--series-1); }
.callout.info .ico { color: var(--series-1); }

/* -------------------------------------------------------------- dashboard */

.dash { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; }
@media (max-width: 980px) { .dash { grid-template-columns: 1fr; } }

.hero-rate {
  font-size: 46px;
  font-weight: 640;
  letter-spacing: -0.022em;
  line-height: 1.05;
  margin: 0;
}
.hero-rate .unit { font-size: 15px; font-weight: 500; color: var(--text-muted); letter-spacing: 0; margin-left: 7px; }
.chart-wrap { height: 168px; margin-top: 8px; }
canvas#chart { width: 100%; height: 100%; display: block; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 11px 13px;
  background: var(--surface-2);
}
.tile .k { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 4px; }
.tile .v { font-size: 19px; font-weight: 620; letter-spacing: -0.01em; }
.tile .v.mono { font-family: var(--mono); font-size: 15px; font-weight: 500; }
.tile .sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.bar {
  height: 7px;
  border-radius: 999px;
  background: var(--grid);
  overflow: hidden;
  margin: 11px 0 7px;
}
.bar > i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--series-1);
  transition: width .35s ease;
}

.telemetry {
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 14px;
  font-size: 11.5px;
  color: var(--text-muted);
}
.telemetry div { display: flex; justify-content: space-between; gap: 8px; }
.telemetry b { color: var(--text-secondary); font-family: var(--mono); font-weight: 500; }

/* ----------------------------------------------------------------- result */

.result {
  border: 1px solid rgba(12, 163, 12, 0.45);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(12, 163, 12, 0.10), rgba(12, 163, 12, 0.02));
  padding: 22px;
  margin-bottom: 16px;
}
.result .lab { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #7ed37e; margin-bottom: 8px; font-weight: 650; }
.result .pw {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 600;
  word-break: break-all;
  margin-bottom: 12px;
  user-select: all;
}
.result .kv { font-size: 12px; color: var(--text-secondary); font-family: var(--mono); word-break: break-all; margin-bottom: 3px; }
.result .kv span { color: var(--text-muted); }

.exhausted {
  border: 1px solid rgba(250, 178, 25, 0.4);
  border-radius: var(--radius);
  background: rgba(250, 178, 25, 0.06);
  padding: 18px;
  margin-bottom: 16px;
}

.hidden { display: none !important; }

details.diag { margin-top: 12px; }
details.diag summary { cursor: pointer; color: var(--text-muted); font-size: 12px; }
details.diag pre {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-secondary);
  background: var(--plane);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 11px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

/* ------------------------------------------------------------ small screens
   The primary target is a phone, so this is not an afterthought: tighter
   padding, a single-column telemetry grid, and a hero figure that still reads
   as the headline at 390px without pushing the chart off screen. */
@media (max-width: 560px) {
  .wrap { padding: 16px 13px 60px; }
  header.top { gap: 12px; }
  h1 { font-size: 18px; }
  .tagline { font-size: 12.5px; }
  .card { padding: 14px; }
  .drop { padding: 17px 12px; }
  .drop .big { font-size: 13px; }
  .hero-rate { font-size: 36px; }
  .hero-rate .unit { display: block; margin: 3px 0 0; font-size: 12px; }
  .chart-wrap { height: 140px; }
  .telemetry { grid-template-columns: 1fr; }
  .result { padding: 16px; }
  .result .pw { font-size: 21px; }
  .tile .v { font-size: 17px; }
  .badges { width: 100%; }
  .badge { font-size: 11px; padding: 4px 9px; }
  /* Comfortable touch targets. */
  button { padding: 10px 15px; }
  button.small { padding: 8px 12px; }
  .target { padding: 13px 12px; }
  input[type=number], input[type=text], select, textarea { font-size: 13px; }
}

/* Two tiles per row still fit comfortably at 390px; only stack on tiny screens. */
@media (max-width: 340px) {
  .tiles { grid-template-columns: 1fr; }
}

footer.legal {
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
}
footer.legal b { color: var(--text-secondary); }

footer.legal .credit {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--text-secondary);
}
footer.legal .credit strong { color: var(--text-primary); font-weight: 600; }

a {
  color: var(--series-1);
  text-decoration: none;
  border-bottom: 1px solid rgba(57, 135, 229, 0.4);
}
a:hover { border-bottom-color: var(--series-1); }
a:focus-visible { outline: 2px solid rgba(57, 135, 229, .55); outline-offset: 2px; }

/* The telemetry grid reports this machine's engines, while the headline above
   it is the whole fleet in a shared job. Labeled so the two aren't confused. */
.telemetry-head {
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-muted); margin: 14px 0 -2px;
}

/* --------------------------------------------------- narrow-screen hardening
   Grid and flex children default to min-width:auto, so a single long
   unbreakable value widens its track and pushes the whole page sideways. The
   dashboard only fills these in while a job is running, which is why the
   sideways scroll appeared during cracking and not before. */
.tiles > *,
.telemetry > *,
.telemetry div { min-width: 0; }

.telemetry b {
  overflow-wrap: anywhere;
  text-align: right;
}
.tile .k, .tile .v, .tile .sub,
.hero-rate, #s-bar-label { overflow-wrap: anywhere; }
.hero-rate .unit { display: inline-block; }

/* The 22000 dump is one very long unbreakable line: let it scroll inside its
   own box rather than stretching the page. */
#s-target-dump { overflow-x: auto; max-width: 100%; }

@media (max-width: 460px) {
  /* Two monospace columns do not fit a phone once the values are populated. */
  .telemetry { grid-template-columns: 1fr; }
  .hero-rate { font-size: 38px; }
}

.dl-warn {
  margin-top: 7px;
  font-size: 11.5px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.dl-warn.warn { color: var(--warning); }
.dl-warn.bad { color: var(--critical); }
