:root {
  /* The Monitor's colours, so that a tab does not change the walls: its ground, surface,
     raised band, stripe, rule, the outline of a control, and the selected and hovered row
     (the decorator's review, 23 November 2026). */
  --bg: var(--brand-paper);
  --panel: #0b0f12;
  --raised: #131a1f;
  --stripe: #10151a;
  --line: #1b252c;
  --ctl-rule: #27353e;
  --row-selected: #072a30;
  --row-hover: #121e24;
  --ink: var(--brand-ink);
  --dim: #8a9ca6;
  /* A darker teal than the brand's, used sparingly: the current tab, a link, the one main
     button. Green says a thing is up, answered or running. (Owner, 23 November 2026: the teal
     "is coming across a little bit strong".) */
  --accent: #2a9d8f;
  --good: #45c97a;
  --on: #071715;
  --bad: #ff5e4a;
  /* The ground of the bar across the top, and of the Monitor's own bar under it; the neutral
     rule under it; and the status line's ground and rule, which are the Monitor's. */
  --bar: #0d161a;
  --bar-rule: #1b252c;
  --foot: #0b0f12;
  --foot-rule: #1b252c;
  --mono: "Cascadia Mono", "Cascadia Code", Consolas, ui-monospace, "SF Mono", Menlo, "DejaVu Sans Mono", monospace;
  color-scheme: dark;
  font:
    15px/1.5 "Segoe UI",
    system-ui,
    sans-serif;
}
:root[data-look="workbench"] {
  --bg: #fbfcfc;
  --panel: #f1f4f5;
  --raised: #e6ebed;
  --stripe: #edf1f2;
  --line: #d2dbdf;
  --ctl-rule: #b4c1c7;
  --row-selected: #d0eaed;
  --row-hover: #e0f0f1;
  --ink: #0d181d;
  --dim: #48575f;
  --accent: #006c76;
  --good: #1a7f43;
  --on: #fff;
  --bad: #c9301d;
  /* Charcoal, not black: near-black bars over a light table were too stark (owner, 23 November
     2026). It is the Grey look's ground, and the Monitor's bar takes the same by day. */
  --bar: #262c30;
  --bar-rule: #3a444b;
  --foot: #f1f4f5;
  --foot-rule: #d2dbdf;
  color-scheme: light;
}
:root[data-look="slate"] {
  --bg: #262c30;
  --panel: #2b3237;
  --raised: #343c42;
  --stripe: #2d343a;
  --line: #3a444b;
  --ctl-rule: #46525a;
  --row-selected: #1f4147;
  --row-hover: #303a40;
  --bad: #ff8a75;
  --ink: #e6edf0;
  --dim: #a9b8bf;
  --bar: #1b2125;
  --bar-rule: #354047;
  --foot: #2b3237;
  --foot-rule: #3a444b;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}
header,
footer,
.sectionhead,
.title,
.actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
header {
  min-height: 62px;
  background: var(--bar);
  color: #d6e2e9;
  border-bottom: 2px solid #248775;
  padding: 8px 26px;
}
.brand {
  display: inline-flex;
  align-items: center;
}
.brand img {
  height: 25px;
  width: auto;
}
.product {
  border-left: 1px solid #415058;
  padding-left: 15px;
  color: #a9bec6;
}
.look i {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 7px;
  border: 1.5px solid currentColor;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
  vertical-align: -1px;
}
main {
  min-width: 0;
  padding: clamp(20px, 4vw, 62px);
  max-width: 1440px;
  width: 100%;
}
.layout {
  display: grid;
  grid-template-columns: minmax(175px, 19%) 1fr;
  min-height: calc(100vh - 106px);
}
aside {
  padding: 24px 16px;
  background: var(--panel);
  border-right: 1px solid var(--line);
}
.sectionhead,
.title {
  justify-content: space-between;
}
.sectionhead {
  margin-bottom: 16px;
}
h1,
h2,
h3,
p {
  margin: 0 0 12px;
}
h1 {
  font-size: clamp(30px, 3.7vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}
h2 {
  font-size: 19px;
}
h3 {
  font-size: 16px;
}
aside h2,
.sectionhead h2,
.title h1 {
  margin: 0;
}
#cases {
  display: grid;
  gap: 6px;
  margin-bottom: 24px;
}
#cases button {
  text-align: left;
  overflow-wrap: anywhere;
}
button,
select,
input,
textarea {
  font: inherit;
}
button,
select,
input,
textarea,
fieldset {
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--panel);
  color: var(--ink);
}
button {
  cursor: pointer;
  padding: 6px 12px;
  font-weight: 550;
}
button:hover,
button[aria-current="true"] {
  background: var(--raised);
  border-color: var(--accent);
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.primary {
  background: var(--accent);
  color: var(--on);
  border-color: var(--accent);
}
.primary:hover {
  color: var(--ink);
}
a {
  color: var(--accent);
}
#welcome {
  max-width: 56ch;
  padding: 8vh 0;
}
#welcome p {
  font-size: 17px;
  color: var(--dim);
  margin-bottom: 24px;
}
.tabs {
  display: flex;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  margin: 26px 0;
}
.tabs button {
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  padding: 8px 2px;
}
.tabs [aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent);
}
article > section {
  margin-bottom: 24px;
}
#tags,
.meta,
small,
#capture-status {
  color: var(--dim);
  font: 12px/1.6 var(--mono);
}
.run,
.point,
.finding {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.metrics {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin: 12px 0;
  font: 14px var(--mono);
}
.metrics strong {
  display: block;
  font-size: 23px;
}
.actions {
  flex-wrap: wrap;
}
.tablewrap {
  overflow: auto;
  max-height: 460px;
}
.tablewrap th {
  position: sticky;
  top: 0;
  background: var(--raised);
}
.tablewrap button {
  font: inherit;
  padding: 1px 6px;
}
.run dd,
dd {
  margin: 0;
  overflow-wrap: anywhere;
}
#attempt-data {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) 2fr;
  gap: 8px;
}
dt {
  font-weight: 600;
}
table {
  width: 100%;
  border-collapse: collapse;
  font: 13px/1.5 var(--mono);
}
th,
td {
  text-align: left;
  padding: 6px 10px;
  border-bottom: 1px solid var(--line);
}
td:last-child {
  overflow-wrap: anywhere;
}
th {
  color: var(--dim);
}
tbody tr:nth-child(odd) {
  background: var(--panel);
}
.bad {
  color: var(--bad);
}
dialog {
  width: min(550px, 95vw);
  max-height: 88vh;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 24px;
  overflow: auto;
}
dialog::backdrop {
  background: #060c10af;
}
form,
label,
details {
  display: block;
}
label {
  font-weight: 550;
  font-size: 13px;
}
form > *,
fieldset > * {
  margin: 12px 0;
}
input,
select,
textarea {
  padding: 8px;
  width: 100%;
  margin-top: 4px;
  font-weight: 400;
}
.pair,
.triple {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
summary {
  cursor: pointer;
  color: var(--dim);
}
fieldset {
  padding: 4px 14px 12px;
}
pre {
  overflow: auto;
  white-space: pre-wrap;
  font: 13px var(--mono);
}
#message,
.error {
  border-left: 3px solid var(--bad);
  padding: 8px 12px;
  background: var(--panel);
}
footer {
  min-height: 44px;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 8px 26px;
  color: var(--dim);
  font: 12px var(--mono);
}
@media (max-width: 700px) {
  .layout {
    display: block;
  }
  aside {
    padding: 10px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 12px;
    align-items: center;
  }
  aside .sectionhead {
    margin: 0;
  }
  #cases {
    display: flex;
    overflow: auto;
    margin: 0;
    flex: 1;
  }
  .product {
    display: none;
  }
  main {
    padding: 20px 16px;
  }
  .tabs {
    gap: 10px;
  }
  .title {
    align-items: start;
  }
  .triple {
    grid-template-columns: 1fr 1fr;
  }
  .metrics {
    gap: 12px;
  }
  header {
    padding: 8px 16px;
  }
}
.point input[type="checkbox"] {
  width: auto;
  margin-right: 6px;
  accent-color: var(--accent);
}

.frame-range {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--dim);
  font-weight: 400;
}
.frame-range input {
  width: 90px;
}
.finding .meta {
  margin-top: 6px;
}

#results details {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
#results details p {
  max-width: 72ch;
  margin-top: 10px;
  color: var(--dim);
}
.observation {
  border-left: 3px solid #c58b4d;
  background: var(--panel);
  padding: 16px 20px;
  margin: 10px 0 22px;
}
.observation p {
  max-width: 76ch;
}
.observation > small:first-child {
  display: block;
  margin-bottom: 3px;
}
.point {
  display: grid;
  gap: 5px;
}
.point > small {
  display: block;
}
.title > #run {
  flex: none;
}
:root[data-look="terminal"] .finding h3,
:root[data-look="slate"] .finding h3 {
  font: 600 16px/1.4 var(--mono);
}
:root[data-look="workbench"] .observation {
  border-left-width: 5px;
}
:root[data-look="workbench"] .run {
  background: var(--panel);
  padding: 16px;
  border: 1px solid var(--line);
}
#monitor-frame {
  display: block;
  width: 100%;
  height: calc(100dvh - 72px);
  border: 0;
  background: var(--bg);
}
#route-list {
  padding: 12px 12px 12px 38px;
  min-height: 3rem;
  border: 1px dashed var(--line);
}
#route-list li {
  padding: 8px;
  cursor: grab;
  border-bottom: 1px solid var(--line);
}
#route-list button,
.point button {
  margin-left: 6px;
}
.finding summary {
  cursor: pointer;
  font-weight: 600;
}
@media (max-width: 650px) {
  header {
    flex-wrap: wrap;
    padding: 8px;
  }
  .look {
    margin-left: 0;
  }
  #monitor-frame {
    height: 75dvh;
  }
}
.simulation-note {
  margin: 0;
  padding: 7px 18px;
  background: var(--panel);
  color: var(--dim);
  font-size: 13px;
}

header { flex-wrap:wrap; }
#tools-pane {max-width:1150px;margin:auto;padding:20px;min-width:0}
#tools-pane details {margin:14px 0;padding:12px;border:1px solid var(--line)}
#tools-pane summary {cursor:pointer;color:var(--accent)}
#tools-pane pre {white-space:pre-wrap;overflow-wrap:anywhere}
#tools-pane label {display:grid;gap:4px;margin:6px 0}
#case-toolbar {display:flex;align-items:center;gap:12px}
#tools-pane a {color:var(--accent)}
#tools-pane .choices label {display:flex;align-items:center;gap:8px;font:13px/1.5 var(--mono)}
#tools-pane .choices input {width:auto;margin:0;accent-color:var(--accent)}
#tools-pane td.bad,#tools-pane tr.is-failed td {color:var(--bad)}
#tools-pane tr.is-membership td:last-child {font-weight:600}
#tools-pane tbody tr[aria-current="true"] {background:var(--raised);box-shadow:inset 3px 0 var(--accent)}
#lookup-status:empty,#tls-status:empty {display:none}
#tls-rows th,#tls-rows td {white-space:nowrap}
#tls-rows td:nth-child(4),#tls-rows td:nth-child(8),#tls-rows td:nth-child(9) {white-space:normal;overflow-wrap:normal}
#tls-rows tr.batch th {position:static;color:var(--ink);padding-top:14px}
#lookup-addresses,#tls-detail,#lookup-registration-result {margin-top:20px}
#tls-detail {border-top:1px solid var(--line);padding-top:16px}
.chains {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.chains ol {margin:0 0 12px;padding-left:22px}
.chains li {margin-bottom:12px;overflow-wrap:anywhere}
.chains small {display:block}
.facts {display:grid;grid-template-columns:minmax(110px,max-content) 1fr;gap:6px 16px}
@media (max-width:800px) {.chains {grid-template-columns:1fr}}
#traffic-compose {border:1px solid var(--line);padding:14px 16px;margin:14px 0}
#traffic-tests td {padding:4px 6px;vertical-align:middle}
#traffic-tests input,#traffic-tests select {margin:0;padding:5px 6px}
#traffic-tests tr.test td {width:104px}
#traffic-tests tr.test td:nth-child(2) {width:auto;min-width:220px}
#traffic-tests tr.test td:last-child {width:1%;white-space:nowrap}
#traffic-tests tr.test .actions {flex-wrap:nowrap;gap:6px}
/* What the Monitor says of a destination: its square, as in the Monitor, and the reading. */
.watch {display:inline-flex;align-items:center;gap:6px;white-space:nowrap;color:var(--dim);font:var(--fs-small)/1.35 var(--mono)}
.watch i {flex:none;width:8px;height:8px;background:var(--dim)}
#traffic-answer {margin:0 0 6px}
/* A count that filters the list is a button, drawn as the counts beside it are. */
button.tally {background:none;border:0;border-right:1px solid var(--line);border-radius:0;font:inherit;color:inherit;cursor:pointer}
button.tally:hover {background:var(--raised)}
button.tally[aria-pressed="true"] {box-shadow:inset 0 -2px 0 var(--accent)}
.watch[data-state="up"] i,.watch[data-state="recovering"] i {background:var(--good)}
.watch[data-state="down"] i,.watch[data-state="failing"] i {background:var(--bad)}
.watch[data-state="down"],.watch[data-state="failing"] {color:var(--bad)}
#traffic-tests .dest {display:flex;align-items:center;gap:10px}
#traffic-tests .dest input {flex:1 1 160px;min-width:0}
.watchline {display:flex;flex-wrap:wrap;align-items:center;gap:6px 18px;margin:0 0 10px;color:var(--dim);font-size:var(--fs-small)}
#traffic-tests tr.options input,#traffic-tests tr.options select {min-width:150px}
#traffic-tests tr.options label {display:inline-grid;margin:4px 14px 8px 0;vertical-align:top}
#traffic-tests tr.options input[type="checkbox"] {width:auto;min-width:0;justify-self:start;accent-color:var(--accent)}
#traffic-plan {color:var(--dim);font:12px/1.6 var(--mono)}
#traffic-rows th,#traffic-rows td {white-space:nowrap}
#traffic-rows td:last-child {overflow-wrap:normal}
#traffic-detail-body h3 {margin-top:18px}
#traffic-status:empty {display:none}
#traffic-detail {margin-top:20px;border-top:1px solid var(--line);padding-top:16px}
#traffic-detail .sectionhead {align-items:start}
#traffic-tally,#session-tally {margin-top:18px}
#traffic-tally .tablewrap,#session-tally .tablewrap {margin-bottom:12px}
#traffic-attempts h3 {margin-top:18px}
#traffic-tally h3,#session-tally h3 {margin-top:16px}
#traffic-tally p,#session-tally p {max-width:90ch}
#traffic-patterns,#session-patterns,#capture-explain {margin-top:18px}
#traffic-patterns h3,#session-patterns h3,#capture-explain h3 {margin-top:16px}
#traffic-patterns p,#session-patterns p,#capture-explain p {max-width:90ch}
#traffic-patterns pre,#session-patterns pre,#capture-explain pre {color:var(--dim);margin:0 0 10px}
#programs {width:min(1180px,96vw)}
#programs p {max-width:100ch}

/* ==== The tools beside the Monitor ====
   From the independent review of 23 November 2026. The Monitor's own language, spoken with this
   sheet's tokens: a 48 px bar, dense rows of mono, numbers aligned right, square state marks and
   square corners. Nothing here animates. The Monitor itself is untouched. */

/* Faces for systems without Segoe UI or Cascadia. Only fonts already on the machine: none is
   downloaded. */
:root {--sans:"Segoe UI Variable Text","Segoe UI",system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif;--mono:"Cascadia Mono","Cascadia Code",Consolas,ui-monospace,"SF Mono",Menlo,"DejaVu Sans Mono",monospace;font-family:var(--sans)}

/* One set of type and rows for the whole app, the Monitor's own (owner, 23 November 2026:
   "more stable common crisp readble rows and fonts"). Words are 13px, data is 12.5px in the
   one mono, small print is 12px. A row is 26px and its header 28px, as in the Monitor's table.
   Only faces already on the machine are used, the same ones in every tab: nothing is
   downloaded, and the system draws them at their sharpest. */
:root {--fs:13px;--fs-data:12.5px;--fs-small:12px;--row-h:24px;--head-h:28px}
:root[data-density="roomy"] {--row-h:32px}
body {font:var(--fs)/1.4 var(--sans)}

/* The page is as tall as the window, so the Monitor fills exactly what the header leaves. */
body {min-height:100dvh;display:flex;flex-direction:column}
body:has(#monitor-pane:not([hidden]) #monitor-frame:not([hidden])) {height:100dvh}
/* The status line: one row of 24px on the Monitor's ground and rule, in its small mono, so
   that under the Monitor the two read as one block. */
footer {margin-top:auto;min-height:24px;padding:0 12px;gap:12px;background:var(--foot);border-top:1px solid var(--foot-rule);color:var(--dim);font:11px/1 var(--mono)}
#monitor-pane {flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
/* The case view fills what the bar, the strip under it and the footer leave. */
.layout {flex:1 1 auto;min-height:0}
#monitor-frame {flex:1 1 auto;height:auto;min-height:0}
#workspace-down {margin:0;padding:10px 18px;background:var(--bad);color:var(--bg);font-weight:700}
/* A line of the bar while it shows, so no light strip sits between two dark bars. */
#monitor-note {margin:0;padding:6px 18px;background:var(--bar);color:var(--brand-ink)}

/* Classic application commands above the workspace tabs. The area strip belongs to the
   same sticky header, so keyboard zoom or a smaller window needs no fixed offset. */
header {position:sticky;top:0;z-index:30;display:block;flex:none;min-height:0;padding:0;border:0;background:var(--bar)}
:root[data-look="workbench"] header {--accent:#2a9d8f;--brand-wash:#323a40}
.menu-line,#menubar,#workspace-tabs,#subtools {display:flex;align-items:stretch}
.menu-line {min-height:1.5rem;align-items:stretch;border-bottom:1px solid var(--bar-rule)}
#menubar {padding-left:2px}
.menu-line button,#workspace-tabs button {border:0;border-radius:0;background:none;color:var(--brand-muted)}
.menu-line button {padding:0 9px;font:400 .8125rem/1.3 var(--sans);color:var(--brand-ink)}
.menu-line button:hover,.menu-line .top.on {background:var(--brand-wash);color:var(--brand-primary)}
#menubar u {text-decoration:none}
.alt-held #menubar u {text-decoration:underline}
.menu-line .look {margin-left:auto;color:var(--brand-muted);white-space:nowrap}
#workspace-tabs {align-items:center;min-height:2.375rem;padding-left:12px;border-bottom:1px solid var(--bar-rule)}
#workspace-tabs .brand {margin-right:14px}
#workspace-tabs button {align-self:stretch;padding:0 12px;font:600 .875rem/1.15 var(--sans)}
#workspace-tabs button:hover {background:var(--brand-wash);color:var(--brand-ink)}
#workspace-tabs button[aria-pressed="true"] {color:var(--brand-ink);box-shadow:inset 0 -2px 0 var(--accent)}
#subtools {padding:0 14px;background:var(--panel);border-bottom:1px solid var(--line)}
#subtools button {height:36px;padding:0 12px;border:0;border-radius:0;background:none;color:var(--dim);font-size:13px;font-weight:600}
#subtools button:hover {color:var(--ink)}
#subtools button[aria-pressed="true"] {color:var(--ink);box-shadow:inset 0 -2px 0 var(--accent)}
header :focus-visible {outline-color:var(--brand-focus);outline-offset:-3px}

/* A bar in place of a 54 px title, with counts as the Monitor has them. */
#tools-pane {width:100%;max-width:1400px;margin:0 auto;padding:0 20px 28px}
#tools-pane h1 {display:flex;align-items:center;gap:10px;min-height:48px;margin:0 0 16px;border-bottom:1px solid var(--line);font:900 17px/1 "Segoe UI Variable Display",var(--sans);letter-spacing:.04em;text-transform:uppercase;overflow-wrap:normal}
.toolbar {display:flex;align-items:stretch;flex-wrap:wrap;min-height:48px;margin:0 0 16px;border-bottom:1px solid var(--line)}
#tools-pane .toolbar h1 {min-height:0;margin:0;border-bottom:0;padding-right:16px;border-right:1px solid var(--line)}
.tallies {display:flex;align-items:stretch}
.tally {display:flex;align-items:baseline;align-self:center;gap:5px;padding:0 14px;border-right:1px solid var(--line)}
.tally b {font:600 19px/1 var(--mono);letter-spacing:-.02em}
.tally small {font:12px/1 var(--sans);color:var(--dim)}
.tally.is-live b {color:var(--good)}
.tally.is-bad b,.tally.is-bad small {color:var(--bad)}
.toolbar .actions {margin-left:auto;align-items:center}
.title h1 {font-size:28px;letter-spacing:-.02em}

/* Tables at the Monitor's density. A number is never broken across lines. */
table {font:var(--fs-data)/1.35 var(--mono);font-variant-numeric:tabular-nums;font-variant-ligatures:none}
/* A cell holds one line, so a row keeps its height while its numbers change. */
th,td {padding:0 10px;height:var(--row-h);white-space:nowrap}
th {height:var(--head-h);font:600 var(--fs-small)/1.35 var(--sans)}
td.num,th.num {text-align:right}
td.wrap {white-space:normal}
td:last-child {overflow-wrap:normal}
.tablewrap {margin:8px 0 10px}
#traffic-rows td button,#traffic-attempts td button,#runs td button,#tls-rows td button {border:0;padding:0;background:none;color:var(--accent);font-weight:600;text-decoration:underline;text-underline-offset:3px}
#traffic-rows td button:hover,#traffic-attempts td button:hover,#runs td button:hover,#tls-rows td button:hover {background:none;color:var(--ink)}
#traffic-detail-body table,#traffic-tally table,#session-tally table,#traffic-attempts table,#runs table,details table {width:auto;min-width:48%}
#traffic-detail-body th,#traffic-detail-body td,#traffic-tally th,#traffic-tally td,#traffic-attempts th,#traffic-attempts td {padding-right:22px}
/* Keep the identity and its tag memberships together as neighbouring columns resize. */
#traffic-rows .session-heading,#traffic-rows .session-assignments {width:clamp(210px,29vw,450px);display:flex;align-items:center}
#traffic-rows .session-heading :is(button,small) {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#traffic-rows .session-heading .mark {flex:none}
#traffic-rows .session-heading small {margin-left:10px;color:var(--dim)}
#traffic-rows .session-assignments {box-sizing:border-box;flex-wrap:wrap;gap:2px 12px;padding:2px 0 4px 16px}
#traffic-rows .session-assignments .assignment {margin:0;max-width:100%}
#traffic-rows .session-assignments .row-tags {max-width:100%;flex-wrap:wrap}
#traffic-rows .session-assignments .row-tag {overflow:hidden;text-overflow:ellipsis}
#traffic-rows td:nth-child(2) {width:100%;min-width:9ch;max-width:0;overflow:hidden;text-overflow:ellipsis}
#traffic-rows td:nth-child(2) div {display:inline}
#traffic-rows td:nth-child(2) div + div::before {content:" · ";color:var(--dim)}
#traffic-rows tbody tr {cursor:pointer}
#traffic-rows.has-choice .tablewrap {max-height:236px}
#tools-pane tbody tr.is-failed td {color:var(--bad)}
#lookup-rows td:nth-child(5) {white-space:normal}
.actions label.grow {flex:1 1 320px}
/* A select is as tall as the field beside it, so their labels stand on one line. */
#tools-pane .actions label > select {min-height:38px}
#lookup-summary,#tls-summary {margin:14px 0 10px}
#lookup-summary:empty,#tls-summary:empty,#lookup-status:empty,#tls-status:empty {display:none}
#lookup-addresses .actions {margin-top:12px}
#tls-detail small.bad {color:var(--bad)}

/* State marks, as the Monitor's squares. The glow is a still shadow. */
/* Flat squares of 8px, as the Monitor's are: a mark says a state and is not a lamp. */
.mark {display:inline-block;width:8px;height:8px;margin-right:8px;background:var(--dim)}
.mark.running {background:var(--good)}
.mark.ok {background:var(--good)}
.mark.failed {background:var(--bad)}
.mark.stopped {background:none;box-shadow:inset 0 0 0 2px var(--dim)}
/* A host's state, as the Monitor reports it, on the same square. */
.mark:is(.up,.recovering) {background:var(--good)}
.mark:is(.down,.failing) {background:var(--bad)}

/* The answer in large figures. */
.metrics {gap:0;margin:12px 0 14px;border:1px solid var(--line);background:var(--panel);width:max-content;max-width:100%}
.metrics > div {padding:10px 18px;border-right:1px solid var(--line)}
.metrics > div:last-child {border-right:0}
.metrics strong {font:600 23px/1.15 var(--mono);letter-spacing:-.02em}
.metrics small {font:12px/1.4 var(--sans);color:var(--dim)}
.metrics .bad strong {color:var(--bad)}

/* A finding is a block with a rule in its state's colour. The sentence stays in ink. */
.verdict {max-width:860px;margin:10px 0;padding:10px 14px;border-left:3px solid var(--accent);background:var(--panel)}
.verdict.bad {border-left-color:var(--bad)}
.verdict p {margin:0 0 4px;color:var(--ink);max-width:none}
.verdict p.meta {color:var(--dim)}
.verdict p:last-child {margin-bottom:0}
.verdict code,#traffic-plan code,#programs code {font:12.5px/1.4 var(--mono);white-space:nowrap}

/* Controls: square, and a disabled one looks disabled. */
button,select,input,textarea,fieldset {border-radius:0}
button {white-space:nowrap}
button:disabled,input:disabled,select:disabled,textarea:disabled {opacity:.45;cursor:not-allowed}
button:disabled:hover {background:var(--panel);border-color:var(--line)}
.primary:disabled:hover {background:var(--accent);color:var(--on)}
header button:disabled:hover {background:none}
::placeholder {color:var(--dim);opacity:1}
.actions {align-items:flex-end}
header .actions,.toolbar .actions,.sectionhead .actions {align-items:center}
#tools-pane label {margin:0}
:root {--focus:var(--brand-focus)}
:root[data-look="workbench"] {--focus:#172924}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,h2:focus-visible {outline-color:var(--focus)}
[aria-expanded="true"] {background:var(--raised);border-color:var(--accent)}
dialog {background:var(--panel);border-top:3px solid var(--accent);box-shadow:0 14px 34px rgb(0 0 0 / .35)}
/* A long dialog scrolls inside itself and keeps its Close in view. */
#programs[open] {display:flex;flex-direction:column;overflow:hidden;max-height:calc(100dvh - 32px)}
#programs-body {flex:1 1 auto;min-height:0;overflow:auto}
#programs > button {flex:none;align-self:flex-start;margin-top:12px}
[aria-invalid="true"] {border-color:var(--bad);box-shadow:inset 0 0 0 1px var(--bad)}
.nowrap {white-space:nowrap}
#attempt {width:min(620px,95vw)}
#message.note {border-left-color:var(--accent)}
.sectionhead select {width:auto}

/* The composer. */
#traffic-compose {background:var(--panel)}
#traffic-tests tr.test td:first-child {width:132px}
#traffic-tests tr.options td {padding:8px 6px 10px 22px;box-shadow:inset 3px 0 0 var(--line);white-space:normal}
#traffic-tests tbody tr {background:none}
/* Fields of one test stand on one line, whatever is written under one of them. */
#traffic-tests tr.test td {vertical-align:top}
#traffic-tests label {font-family:var(--sans)}
#traffic-tests tr.test .actions {margin-top:0;min-height:30px;align-items:center}
#traffic-tests td[data-unit]:not([data-unit=""])::after {content:attr(data-unit);display:block;font:12px/1.3 var(--mono);color:var(--dim)}
#traffic-plan {margin:10px 0 14px}
#traffic-plan p {margin:0 0 6px;max-width:860px}
#traffic-plan p.notice {padding:6px 12px;border-left:3px solid var(--accent);color:var(--ink)}
#traffic-status:empty,#traffic-list-status:empty {display:none}
#traffic-compose > .actions:last-child {margin-top:14px}
#traffic-compose > .tablewrap + .actions {margin-top:10px}

/* Text measures that do not depend on the font of the line. */
#traffic-tally p,#session-tally p,#traffic-patterns p,#session-patterns p,#programs p,.reading p {max-width:860px}
#traffic-detail-body p.meta {margin:8px 0}

/* Capture points: one line each, with the reading under the point it is about. */
.point {grid-template-columns:minmax(0,1fr) auto auto;align-items:center;column-gap:8px}
.point > * {grid-column:1}
.point > button {margin-left:0;grid-row:1 / span 2}
.point > button:nth-of-type(1) {grid-column:2}
.point > button:nth-of-type(2) {grid-column:3}
.point > .reading {grid-column:1 / -1;grid-row:auto}
.reading:empty {display:none}
.reading > button,#traffic-tally > button {margin:10px 0}
/* The frames of a finding open in Wireshark from a row of small buttons. */
.reading .actions {gap:6px;margin:8px 0;align-items:center}
.reading .actions button {margin:0;padding:3px 9px;font:400 12.5px/1.4 var(--mono)}
.reading details,#runs details {margin:10px 0;padding:10px 12px;border:1px solid var(--line)}
.reading summary,#runs summary {color:var(--accent)}

/* Programs: one block a program. */
#programs {width:min(900px,96vw)}
.program {border-top:1px solid var(--line);padding:12px 0}
.program h3 {margin:0 0 4px;font:600 15px/1.3 var(--mono)}
.program h3 small {font-weight:400;color:var(--dim);margin-left:8px}
.program p {margin:0 0 6px}
.program dl {display:grid;grid-template-columns:max-content 1fr;gap:2px 14px;margin:0;font-size:13px}
.program dt {color:var(--dim);font-weight:400}
.program code {white-space:normal;overflow-wrap:anywhere}

@media (max-width:900px) {
  /* The tally keeps its last column in view: headers may wrap and cells sit closer. */
  #traffic-tally th,#session-tally th {white-space:normal}
  #traffic-tally th,#traffic-tally td,#session-tally th,#session-tally td {padding-right:10px}
  /* Each test of the composer is a card with its labels written out. */
  #traffic-tests thead {display:none}
  #traffic-tests tr.test {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px 8px;padding:8px 0}
  #traffic-tests tr.test td,#traffic-tests tr.test td:first-child,#traffic-tests tr.test td:nth-child(2) {width:auto;min-width:0;padding:0;border:0}
  #traffic-tests tr.test td:nth-child(1),#traffic-tests tr.test td:nth-child(2) {grid-column:span 2}
  #traffic-tests tr.test td:last-child {grid-column:1 / -1;width:auto}
  #traffic-tests tr.options,#traffic-tests tr.options td {display:block}
  #traffic-tests td[data-label]::before {content:attr(data-label);display:block;font:600 12px/1.5 var(--sans);color:var(--dim)}
  /* The label over the field already says seconds. */
  #traffic-tests td[data-unit]:not([data-unit=""])::after {content:none}
  /* The session list keeps its name, tests, answered, failed and status. */
  #traffic-rows th:nth-child(4),#traffic-rows td:nth-child(4),#traffic-rows th:nth-child(n+7),#traffic-rows td:nth-child(n+7) {display:none}
}

@media (max-width:620px) {
  #workspace-tabs {padding-left:4px}
  #workspace-tabs .brand {margin-right:4px}
  #workspace-tabs .brand img {width:25px;object-fit:cover;object-position:left}
  #workspace-tabs button {min-width:0;padding:4px 6px;font-size:.8125rem}
}
@media (max-width:390px) {
  #workspace-tabs .brand {display:none}
  #workspace-tabs button {flex:1 1 auto;padding-inline:3px}
  .menu-line .look {padding-inline:5px}
}

/* ------------------------------------------- The decorator's review of the Traffic Generator,
   23 November 2026 (docs/reviews/2026-11-23-traffic-generator.md, D1 to D10). The tab is the
   Monitor's sibling: one toolbar, the Monitor's rows and colours, tables edge to edge, and
   red only on what failed. Troubleshooting and Tools share most of it. */

/* D3. Rows are striped and have no rule of their own; controls have a rule of theirs. */
th,td {padding:0 9px;border-bottom:0}
th {border-bottom:1px solid var(--ctl-rule)}
tbody tr:nth-child(odd) {background:none}
tbody tr:nth-child(even) {background:var(--stripe)}
button,input,select,textarea {border-color:var(--ctl-rule)}
#tools-pane tbody tr[aria-current="true"] {background:var(--row-selected);box-shadow:inset 2px 0 var(--accent)}

/* D2. No page title: the tab names the page. It stays for a screen reader. */
#tools-pane h1 {position:absolute;width:1px;height:1px;min-height:0;margin:0;padding:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* One gutter of 12px, and the pane as wide as the window. */
#tools-pane {max-width:none;margin:0;padding:0 12px 28px}
/* The band under the top bar is the Monitor's toolbar: 36px on the bar's ground, beginning
   with the counts, with the one accent rule beneath it. Inside it the colours are the grey
   look's, as in the Monitor's own bar by day. */
#traffic-tool .toolbar,
#throughput-tool .toolbar,
.ws-toolbar {
  --ink:#e6edf0;--dim:#a9b8bf;--line:#3a444b;--raised:#343c42;--ctl-rule:#46525a;--accent:#2a9d8f;--good:#45c97a;--bad:#ff8a75;
  min-height:36px;flex-wrap:wrap;margin:0 -12px;background:var(--bar);color:var(--ink);
  border-bottom:1px solid color-mix(in srgb,var(--accent) 45%,var(--bar));
}
.tally {align-self:stretch;align-items:center}
.tally b,.tally small {align-self:center}
.tally:first-child {padding-left:12px}
button.tally:disabled {opacity:1;cursor:default}
button.tally:disabled:hover {background:none}
#traffic-tool .toolbar .actions,
#throughput-tool .toolbar .actions,
.ws-toolbar .actions {gap:6px;padding-right:12px}
#traffic-tool .toolbar button:not(.tally),
#throughput-tool .toolbar button:not(.tally),
.ws-toolbar button:not(.tally) {height:28px;padding:0 12px;background:transparent;color:var(--ink);border-color:var(--ctl-rule)}
#traffic-tool .toolbar button:not(.tally):hover,
#throughput-tool .toolbar button:not(.tally):hover,
.ws-toolbar button:not(.tally):hover {background:var(--raised)}
#throughput-tool .toolbar input[type="search"],
.ws-toolbar input[type="search"] {background:color-mix(in srgb,var(--bar) 65%,#000);color:var(--ink);border-color:var(--ctl-rule)}
/* The one main button is a tint with an outline in the accent, as the Monitor's is: not a
   solid block. */
.primary,#traffic-tool .toolbar button.primary,#throughput-tool .toolbar button.primary,.ws-toolbar button.primary {background:color-mix(in srgb,var(--accent) 14%,transparent);border-color:color-mix(in srgb,var(--accent) 60%,var(--bg));color:var(--accent)}
.primary:hover,#traffic-tool .toolbar button.primary:hover,#throughput-tool .toolbar button.primary:hover,.ws-toolbar button.primary:hover {background:color-mix(in srgb,var(--accent) 20%,transparent);border-color:var(--accent);color:var(--accent)}

/* D6. Tables run from edge to edge, text starting on the gutter, and one wordy column takes
   what is left. */
#tools-pane .tablewrap {margin:0 -12px}
#tools-pane .tablewrap th:first-child,#tools-pane .tablewrap td:first-child {padding-left:12px}
#tools-pane .tablewrap th:last-child,#tools-pane .tablewrap td:last-child {padding-right:12px}
#traffic-detail-body table,#traffic-tally table,#session-tally table,#traffic-attempts table,#runs table,details table {width:100%;min-width:0}
#traffic-detail-body th,#traffic-detail-body td,#traffic-tally th,#traffic-tally td,#traffic-attempts th,#traffic-attempts td {padding-right:9px}
#traffic-detail-body td:first-child,#traffic-attempts td:last-child {width:100%}

/* D5. A detail opens under its list with no gap: a band with its name and buttons, the answer
   as one line in ink, then each table under a band that names it. */
#traffic-rows .tablewrap {margin-bottom:0}
#traffic-detail {margin-top:0;padding-top:0;border-top:0}
#traffic-detail .sectionhead {height:36px;margin:0 -12px;padding:0 12px;background:var(--raised);align-items:center}
#traffic-detail-title {margin:0;font:600 13px/1 var(--sans)}
#traffic-detail-actions {gap:6px}
#traffic-detail-actions button {height:28px;padding:0 10px}
#traffic-answer {margin:0;color:var(--ink);font:var(--fs-data)/24px var(--mono);display:flex;flex-wrap:wrap;align-items:center;column-gap:0;white-space:pre-wrap}
#traffic-answer .mark {margin-right:8px}
.watchline {margin:0;line-height:24px}
#tools-pane h2,#traffic-detail-body h3,#traffic-attempts h3,#traffic-tally h3,#traffic-patterns h3 {height:24px;margin:8px -12px 0;padding:0 12px;background:var(--raised);font:600 13px/24px var(--sans);letter-spacing:0;text-transform:none}
#traffic-detail .sectionhead h2 {height:auto;margin:0;padding:0;background:none}

/* D7. A failure is a chip and a word, as in the Monitor; the rest of the row stays in ink. */
.chipbad {display:inline-block;height:18px;padding:0 6px;border:1px solid color-mix(in srgb,var(--bad) 45%,transparent);background:color-mix(in srgb,var(--bad) 10%,transparent);color:var(--bad);font:600 11px/16px var(--sans);vertical-align:middle}
#tools-pane tr.is-failed td,#tools-pane tbody tr.is-failed td {color:inherit}
#tools-pane tr.is-failed td.bad,#tools-pane td.bad {color:var(--bad)}

/* D8. The composer is one form: no panel and no frame inside it, and every field and button
   the Monitor's 28px. A field that does not apply to a test is not drawn. */
#tools-pane :is(input:not([type="checkbox"]):not([type="file"]),select,button:not(.tally):not(.chip):not(.mini):not(.manage)):not(#traffic-rows td *):not(#traffic-attempts td *):not(#tls-rows td *) {height:28px;min-height:0;padding-top:0;padding-bottom:0}
#tools-pane .actions label > select {min-height:0}
#traffic-compose {border:0;padding:0;margin:0;background:none}
#traffic-capture {border:0;margin:8px 0 0;padding:0;background:none}
#traffic-capture legend {padding:0;font:600 12px/1.5 var(--sans);color:var(--dim)}
#traffic-tests th {padding-left:6px}
/* The form is as long as its tests: it does not scroll inside itself. */
#traffic-compose > .tablewrap {max-height:none;overflow:visible}
/* A label is the small dim line over its field, flush with the field's left edge. */
#tools-pane label {font:600 12px/1.5 var(--sans);color:var(--dim)}
#tools-pane label :is(input,select,textarea) {color:var(--ink)}
#traffic-tests tr.test td {height:36px}
#traffic-tests .dest:has(.watch) {display:grid;grid-template-columns:minmax(0,1fr) 34ch}
#traffic-tests .watch {overflow:hidden;text-overflow:ellipsis}
#traffic-tests tr.test input:disabled {visibility:hidden}
.watch[data-state="none"] {color:var(--dim)}

/* D9. A session's name is plain: the whole row opens it, and answers the pointer. An
   attempt's number is a true link to its record and keeps its accent. */
#traffic-rows td button {color:inherit;font-weight:600;text-decoration:none}
#traffic-rows td button:hover {color:inherit}
#traffic-rows tbody tr:hover {background:var(--row-hover)}
#traffic-rows td .mark {margin-right:8px}
/* "Session" stands over the names; the mark sits alone on the gutter, as in the Monitor. */
#traffic-rows .tablewrap th:first-child {padding-left:28px}
#traffic-attempts td button {font-weight:inherit}

/* D10. The status line stays in the window while a long page scrolls, and the scrollbar is
   thin and takes the look's own colours. */
footer {position:sticky;bottom:0;z-index:20}
html {scrollbar-width:thin;scrollbar-color:var(--dim) var(--bg)}

@media (max-width:900px) {
  /* D1. A cell that has become a card holds a label and a field, so it is as tall as they
     are: held to a row's height they lay on top of each other. */
  #traffic-tests td,#traffic-tests tr.test td {height:auto}
  /* A card keeps the gutter the table's first cell gave it. */
  #traffic-tests tr.test {padding:8px 12px}
  #traffic-tests tr.options td {padding:0 12px}
  /* A field that is not drawn has no label either. */
  #traffic-tests td[data-label]:has(input:disabled)::before {visibility:hidden}
}

/* Findings: the answer first, in a block of its own (the engineer's review of
   Troubleshooting, 23 November 2026). The line that names a packet is set in the data face
   and may wrap; nothing in it is cut. */
#results .answer {margin:0 0 14px;padding:10px 12px;border-left:3px solid var(--accent);background:var(--panel)}
#results .answer h3 {margin:0 0 4px;font:600 15px/1.3 var(--sans)}
#results .answer p {margin:0 0 6px;max-width:none}
#results .frameline {font:var(--fs-data)/1.5 var(--mono);overflow-wrap:anywhere}
#results .answer button {margin:4px 8px 0 0}

/* ------------------------------------------------------------------ Tags, as rheaCRT has them.
   Owner, 23 November 2026: "literally the exact system and the layout and the way it looks".
   These rules are rheaCRT's (ui/app.css: chips, the tag bar, the two tag dialogs, the menu),
   on this sheet's tokens, which carry the same names. Change them there first. */
.tag-bar {display:flex;flex-wrap:wrap;gap:4px;padding:6px 12px;margin:0 -12px}
.chip {display:inline-flex;align-items:center;gap:4px;height:16px;padding:0 5px;font:10px/14px var(--mono);color:var(--ink);border:1px solid var(--line);background:none;border-radius:0;white-space:nowrap}
.chip::before {content:"";width:7px;height:7px;background:var(--tag)}
button.chip {cursor:pointer}
button.chip:hover {border-color:var(--tag);background:none}
button.chip.on {border-color:var(--tag);box-shadow:inset 0 -2px 0 var(--tag)}
#tools-pane button.chip,#tools-pane .tag-bar .manage {height:16px;padding:0 5px}
.tag-bar .manage {font:10px var(--mono);color:var(--dim);padding:0 4px;height:16px;border:0;background:none}
.tag-bar .manage:hover {color:var(--accent);background:none}
/* The tags a new session starts with, under its name in the composer. */
.carried {display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;min-height:24px;margin:4px 0;font-size:var(--fs-small);color:var(--dim)}
/* A thing's tags beside its name on one line: a looked-up name in Tools. */
.tag-bar.inline {display:inline-flex;flex-wrap:nowrap;margin:0 0 0 10px;padding:0;vertical-align:middle}
/* The tags of a row: names beside dots of their colour. */
.row-tags {display:inline-flex;flex-wrap:wrap;gap:1px 8px;margin-left:10px;color:var(--dim);font:10px/13px var(--mono);vertical-align:middle}
.row-tag {max-width:100%;white-space:nowrap}
/* In a table a row is one line, so its tags stand beside the name and the cell makes room. */
td .row-tags {flex-wrap:nowrap}
/* In a column of their own the tags share its heading's edge; the 10px is for tags that follow a name. */
td > .row-tags:only-child {margin-left:0}
.row-tag::before {content:"";display:inline-block;width:6px;height:6px;margin-inline-end:4px;border-radius:50%;background-color:var(--tag)}
/* The small button that shows or hides the tag bar. */
.mini {min-width:22px;height:20px;padding:0 4px;border:0;background:none;color:var(--dim);font:11px var(--mono)}
.mini:hover {color:var(--accent);background:var(--raised)}
.mini[aria-pressed="true"] {color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
#traffic-tool .toolbar button.mini {height:20px;padding:0 4px;border:0;align-self:center;margin-left:8px;color:var(--dim)}
#traffic-tool .toolbar button.mini[aria-pressed="true"] {color:var(--accent)}

/* The two tag dialogs. */
dialog.tags-modal {min-width:380px;max-width:560px;width:auto;padding:0;color:var(--ink);background:var(--panel);border:1px solid var(--line);box-shadow:0 20px 50px #000b}
dialog.tags-modal.wide {max-width:760px}
dialog.tags-modal::backdrop {background:#060c10a0}
dialog.tags-modal h2 {margin:0;padding:10px 14px;font:600 13px/1.3 var(--sans);background:var(--bar);color:#d6e2e9;border-bottom:1px solid var(--accent);letter-spacing:0;text-transform:none}
dialog.tags-modal .body {padding:14px;max-height:60vh;overflow:auto}
dialog.tags-modal .body p {margin:0 0 10px;font-size:var(--fs-small);color:var(--dim)}
dialog.tags-modal .buttons {display:flex;justify-content:flex-end;gap:8px;padding:0 14px 14px}
dialog.tags-modal .buttons button {height:24px;padding:0 14px;border:1px solid var(--line)}
.tag-list {display:grid;gap:4px;max-height:260px;overflow:auto;white-space:normal}
.tag-row {display:flex;align-items:center;justify-content:space-between;gap:12px}
.tag-row label {display:flex;align-items:center;gap:6px;margin:0}
.tag-row input[type="checkbox"] {width:auto;margin:0;accent-color:var(--accent)}
.swatches {display:flex;flex-wrap:nowrap;gap:3px}
.swatches button {width:14px;height:14px;min-width:0;padding:0;border:1px solid transparent;border-radius:0}
.swatches button.on {outline:1px solid var(--ink);outline-offset:1px}
.tag-mgr {white-space:normal;min-width:520px}
:is(.tag-mgr,.tag-edit) .add {display:flex;gap:6px;margin:0 0 10px}
:is(.tag-mgr,.tag-edit) .add > * {margin:0}
:is(.tag-mgr,.tag-edit) .add input {flex:1;width:auto;height:26px;padding:0 8px;margin:0;border:1px solid var(--line);background:var(--bg);font:12px var(--mono)}
:is(.tag-mgr,.tag-edit) .add button {height:26px;padding:0 12px;border:1px solid var(--line)}
.tag-mgr .rows {display:grid;gap:6px;max-height:340px;overflow:auto}
.tag-mgr .trow {display:grid;grid-template-columns:150px auto 32px 24px;align-items:center;gap:8px}
.tag-mgr .trow input {width:auto;height:22px;padding:0 6px;margin:0;border:1px solid var(--line);background:var(--bg);font:11.5px var(--mono);border-left:4px solid var(--tag)}
.tag-mgr .trow .uses {font:10.5px var(--mono);color:var(--dim);text-align:right}
.tag-mgr .trow .del {color:var(--dim);font-size:14px;border:0;background:none;padding:0}
.tag-mgr .trow .del:hover {color:var(--bad);background:none}
.tag-mgr .none {color:var(--dim)}
/* "Tagged items": every tag as a chip, then what carries the ones pressed, in the Monitor's
   rows. A row is a button that opens its thing in its own tab. */
dialog.tags-modal.tags-find {width:min(1100px,calc(100vw - 32px));max-width:none}
/* It has one top edge and one height, and its list scrolls inside: sized by its list it moved
   under the pointer with every chip pressed (the decorator, 24 November 2026, D2). */
dialog.tags-find[open] {display:flex;flex-direction:column;margin-top:48px;height:min(640px,calc(100vh - 96px))}
dialog.tags-find h2 {height:36px;padding:0 12px;line-height:35px}
dialog.tags-find .buttons {padding:0 12px 12px}
dialog.tags-find .buttons button {height:28px}
/* One gutter of 12px: the chips, the box and the sentence are on it, and the bands and rows
   of the list run from frame to frame with their words on it (D4). */
dialog.tags-find .body {display:flex;flex-direction:column;gap:8px;flex:1;min-height:0;max-height:none;padding:12px 0}
dialog.tags-find .tag-bar {margin:0;padding:0 12px}
dialog.tags-find input[type="search"] {width:auto;height:28px;margin:0 12px;padding:0 8px;border:1px solid var(--line);background:var(--bg);font:var(--fs-data) var(--mono)}
/* A focused field is the accent, one pixel, in its place, as in the Monitor (D7). */
dialog.tags-find input[type="search"]:focus-visible {outline:0;border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
dialog.tags-find input[type="search"]::-webkit-search-cancel-button {filter:grayscale(1);opacity:.6}
dialog.tags-find .body p.said {margin:0 12px;font-size:var(--fs-small);color:var(--dim)}
dialog.tags-find .found {flex:1;min-height:0;overflow:auto;border-top:1px solid var(--line)}
/* A band as the Monitor's group is: 24px, its name at 13px, standing over the names of its
   rows and not over their squares (D1, D4). */
dialog.tags-find h3 {margin:0;padding:0 12px 0 28px;height:24px;font:600 13px/24px var(--sans);background:var(--raised);letter-spacing:0;text-transform:none}
dialog.tags-find h3 small {margin-left:10px;font-weight:400;color:var(--dim)}
/* Every row is on one grid, so that a column starts in the same place from row to row and
   from group to group. The last track holds the longest time a row writes (D1). */
dialog.tags-find .thing {display:grid;grid-template-columns:minmax(0,7fr) minmax(0,6fr) minmax(0,4fr) 23ch;align-items:center;gap:0 12px;width:100%;height:var(--row-h);min-height:0;padding:0 12px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none;color:var(--ink);font:var(--fs-data) var(--mono);text-align:left;cursor:pointer}
dialog.tags-find .thing:nth-of-type(even) {background:var(--stripe)}
dialog.tags-find .thing:hover,dialog.tags-find .thing:focus-visible {background:var(--row-hover);outline:0}
dialog.tags-find .thing :is(strong,.detail) {overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
dialog.tags-find .thing strong {font-weight:600}
/* A name without a state square keeps the square's room. */
dialog.tags-find .thing strong:not(:has(.mark)) {padding-left:16px}
dialog.tags-find .thing .detail {color:var(--dim)}
dialog.tags-find .thing small {color:var(--dim);text-align:right;white-space:nowrap}
dialog.tags-find .thing .row-tags {display:flex;margin:0;flex-wrap:nowrap;overflow:hidden;min-width:0}
/* A row with no time gives that room to its tags, on the same grid. */
dialog.tags-find .thing.undated .row-tags {grid-column:3 / -1}
/* Tags that did not fit a cell: how many more there are. The names are in the tooltip. */
.row-tags .more {flex:none;color:var(--dim)}
.tag-mgr .trow.head {font:600 var(--fs-small)/1.4 var(--sans);color:var(--dim)}
.tag-mgr .trow.head .uses {font:inherit}
dialog.tags-modal .body p.plan {margin:12px 0 0;font-size:var(--fs-small);color:var(--ink)}
/* The session a tag brought to Troubleshooting, among its case's sessions. */
#runs tr[aria-current="true"] {background:var(--row-selected)}
.brought button .mark {margin-right:8px}
.brought .manage {justify-self:start;height:24px;border:0;padding:0 12px;background:none;font:var(--fs-small)/24px var(--mono);color:var(--dim);font-weight:400}
.brought .manage:hover {color:var(--accent);background:none}

/* The right-click menu, on the bar's ground as rheaCRT's is on its head's. */
.dropdown {
  --head:var(--bar);--head-raised:#262e33;--head-line:#354047;--head-ink:#d6e2e9;--head-dim:#8fa6af;--head-off:#5d6f77;--head-accent:#36d1b7;
  max-height:calc(100vh - 8px);overflow-y:auto;position:fixed;z-index:80;min-width:250px;padding:3px 0;
  background:var(--head);color:var(--head-ink);border:1px solid var(--head-line);box-shadow:0 10px 28px #000a;font:var(--fs)/1.3 var(--sans);
}
.dropdown button {display:grid;grid-template-columns:18px 1fr auto;align-items:center;width:100%;height:auto;padding:4px 12px 4px 4px;text-align:left;gap:4px;border:0;border-radius:0;background:none;color:inherit;font:inherit}
.dropdown button:hover:not(:disabled),.dropdown button:focus-visible {background:var(--head-raised);color:var(--head-accent);outline:0}
.dropdown button:disabled {color:var(--head-off)}
.dropdown .ck {text-align:center;color:var(--head-accent)}
.dropdown .kb {font:11px var(--mono);color:var(--head-dim);padding-left:24px}
.dropdown hr {border:0;border-top:1px solid var(--head-line);margin:3px 0}
.dropdown .menu-tag-color {display:inline-block;width:10px;height:10px;margin-inline-end:8px;border-radius:2px;vertical-align:baseline}
.dropdown .sub[aria-expanded="true"] {background:var(--head-raised);color:var(--head-accent)}
.dropdown.child {max-width:calc(100vw - 4px)}
.dropdown.child .lb {overflow-wrap:anywhere}
/* Where the tags stand in the case view: over the list of cases, and over a case's name. */
aside .sectionhead .acts {display:flex;align-items:center;gap:6px}
aside .tag-bar {margin:0 0 8px;padding:0}
#tags.tag-bar {margin:0 0 6px;padding:0}
#cases button .row-tags {display:flex;margin:2px 0 0}
/* Sessions that a tag brings to Troubleshooting, over the cases and drawn as they are. */
.brought {display:grid;gap:0;margin:0 -12px 8px;padding:0;border-bottom:0}
.brought h3 {margin:0;height:24px;padding:0 12px;background:var(--raised);font:600 13px/24px var(--sans);color:var(--ink);letter-spacing:0;text-transform:none}
.brought button {display:block;width:100%;height:auto;min-height:0;padding:0 12px 3px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none;text-align:left;white-space:normal;font:600 var(--fs-data)/24px var(--mono)}
.brought button:hover {background:var(--row-hover)}
.brought button small {display:block;font:var(--fs-small)/16px var(--mono);font-weight:400;color:var(--dim)}
/* The hosts a tag brought to the Traffic Generator: what the Monitor says of each, then
   the button that sends them traffic. */
#traffic-hosts {margin:0 -12px;padding:2px 12px 6px;line-height:20px;border-bottom:1px solid var(--line)}
#traffic-hosts button {height:20px;padding:0 8px;font:var(--fs-small)/1 var(--sans);margin-left:auto}
/* A case's sessions are listed as the Traffic Generator lists them: one line each, the name
   in ink, the row answering the pointer and opening the session there. */
#runs .tablewrap {margin:0;max-height:none}
#runs table {width:100%}
#runs td button {color:inherit;font-weight:600;text-decoration:none}
#runs td button:hover {color:inherit}
#runs tbody tr {cursor:pointer}
#runs tbody tr:hover {background:var(--row-hover)}
#runs td .mark {margin-right:8px}
#runs td:nth-child(2) {width:100%;max-width:0;overflow:hidden;text-overflow:ellipsis}
#runs td:nth-child(2) {white-space:nowrap}

/* --------------------------------------------- The decorator's review of Troubleshooting,
   23 November 2026 (docs/reviews/2026-11-23-troubleshooting.md, D1 to D10). The case is a
   detail under one bar: a band with its name, tags, views and buttons, then tables and
   bands on the 12px gutter, as in the Monitor and the Traffic Generator. */
/* D1. A case's name wraps inside the side list. */
#cases button {white-space:normal}

/* D2. One gutter; the case is a detail: a 36px band with its name, tags, views and buttons. */
#investigation-pane main {max-width:none;padding:0 12px 28px}
#case .title {min-height:36px;margin:0 -12px;padding:0 12px;gap:0 12px;flex-wrap:wrap;justify-content:flex-start;background:var(--raised)}
#name {max-width:100%;margin:0;font:600 13px/36px var(--sans);letter-spacing:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#tags.tag-bar {margin:0;flex:none;flex-wrap:nowrap}
#case .tabs {margin:0;border:0;gap:0}
#case .tabs button {height:36px;padding:0 10px;border:0;color:var(--dim);font-weight:600}
#case .tabs button:hover {background:none;color:var(--ink)}
#case .tabs [aria-pressed="true"] {color:var(--ink);box-shadow:inset 0 -2px 0 var(--accent)}
#case .title .actions {margin-left:auto;flex-wrap:nowrap;gap:6px;align-items:center}
#case > section {margin:0}
#runs > .tablewrap {margin:0 -12px}
#runs th:first-child {padding-left:28px}
#runs td:first-child {padding-left:12px}
#runs th:last-child,#runs td:last-child {padding-right:12px}
/* The side list's heading is the same band, so one line runs across the pane. */
aside {padding:0 12px 12px}
aside .sectionhead {height:36px;margin:0 -12px 8px;padding:0 12px;background:var(--raised)}
aside h2 {font:600 13px/1 var(--sans)}

/* D3. Findings: segments as bands; their lines at the row's pitch and as wide as the pane. */
#results {padding-top:8px}
#results .answer {margin:0 0 8px}
#results details {margin:0 -12px;padding:0;border:0}
#results details > summary {height:24px;padding:0 12px;background:var(--raised);color:var(--ink);font:600 13px/24px var(--sans)}
#results details + details > summary {box-shadow:inset 0 1px 0 var(--bg)}
#results details > :not(summary) {display:block;margin:0;padding:2px 12px;max-width:none;line-height:20px}
#results details p {max-width:none;margin:0}
#results details p:not(.frameline):not(.meta) {color:var(--ink)}

/* D4. The packet path: one hop a row, its buttons in columns. */
#route-list {counter-reset:hop;margin:8px 0;padding:0;min-height:36px;border-color:var(--ctl-rule)}
#route-list li {counter-increment:hop;display:grid;grid-template-columns:2ch minmax(14ch,max-content) 28px 28px auto;justify-content:start;align-items:center;column-gap:6px;height:36px;padding:0 9px;border:0}
#route-list li::before {content:counter(hop);color:var(--dim);font:var(--fs-data)/1 var(--mono);text-align:right}
#route-list li:nth-child(even) {background:var(--stripe)}
#route-list button {margin:0}
#route-list li button:not(:last-child) {padding:0}
#captures > p {margin:6px 0}

/* D5. Voice: the form is one row of 28px controls. */
#voice-tool {display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px 12px;padding-top:8px}
#voice-results {flex:1 1 100%}
#voice-file {width:auto;height:28px;margin-top:4px;padding:0;border:0;background:none;font:var(--fs)/28px var(--sans)}
#voice-file::file-selector-button {height:28px;margin:0 8px 0 0;padding:0 12px;border:1px solid var(--ctl-rule);border-radius:0;background:var(--panel);color:var(--ink);font:550 13px/1 var(--sans);cursor:pointer}
#case-toolbar {align-items:flex-end;padding-top:8px}

/* D6. A voice reading: a band that names it, the answer in ink, tables that give the slack to one column. */
.voice-result h3 {height:24px;margin:8px -12px 0;padding:0 12px;background:var(--raised);font:600 13px/24px var(--sans)}
.voice-result p {margin:0;line-height:24px}
.voice-result .mark {margin-right:8px}
.voice-result td:last-child {width:100%}
#tools-pane .voice-result .tablewrap + .tablewrap {margin-top:8px}

/* D7. The strip of an area's tools is the toolbar. */
#subtools {
  --ink:#e6edf0;--dim:#a9b8bf;--line:#3a444b;--raised:#343c42;--ctl-rule:#46525a;--accent:#2a9d8f;
  height:36px;padding:0;background:var(--bar);
  border-bottom:1px solid color-mix(in srgb,var(--accent) 45%,var(--bar));
}
#subtools button {height:auto}

/* D8. Controls of the case view: 28px, one look for one button, and a label over its field. */
#investigation-pane :is(input:not([type="checkbox"]):not([type="file"]),select,button:not(.chip):not(.mini):not(.manage)):not(#cases *):not(#case-brought *):not(td *):not(.tabs *) {height:28px;min-height:0;padding-top:0;padding-bottom:0}
#investigation-pane label {font:600 12px/1.5 var(--sans);color:var(--dim)}
#investigation-pane label :is(input,select,textarea) {color:var(--ink)}
.reading > .actions button {padding:0 12px;font:550 13px/1.4 var(--sans)}
#results .actions,#findings > .actions {margin:8px 0}
#findings > p.meta {margin:8px 0 0}
#notes {padding-top:8px}

/* D9. A view's heading that repeats its tab is for a screen reader; the others are bands. */
#sessions > h2,#captures > h2:first-of-type,#findings > h2,#notes > h2 {position:absolute;width:1px;height:1px;margin:0;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#captures > h2 {height:24px;margin:8px -12px 0;padding:0 12px;background:var(--raised);font:600 13px/24px var(--sans)}
.reading h3,#results > h3 {margin:8px 0 4px;font:600 15px/1.3 var(--sans)}

/* D10. A column header stands on the surface, as the Monitor's does; a band is one step darker. */
.tablewrap th {background:var(--panel)}


/* Capture points as a table, directly under the case's band: a 28px header, 24px rows, the
   file's name taking the slack, the actions as text in the last cell, and a reading as a
   detail under its row (the engineer's E5, in the look the decorator described). */
#points .tablewrap {margin:0 -12px;max-height:none}
#points table {width:100%}
#points th:first-child,#points td:first-child {padding-left:12px}
#points th:last-child,#points td:last-child {padding-right:12px}
#points td:first-child small {margin-left:10px;color:var(--dim)}
/* The point's name is never cut. What it was taken at follows it and gives way first: the
   cell takes what the other columns leave. */
#points td:first-child {width:100%;max-width:0;min-width:14ch;overflow:hidden;text-overflow:ellipsis}
#points tbody tr:not(.reading-row) {cursor:grab}
#points td.acts {text-align:right}
#points td .chip + .chip {margin-left:4px}
#points td.acts button {height:auto;margin-left:14px;padding:0;border:0;background:none;color:var(--accent);font:inherit;text-decoration:underline;text-underline-offset:3px}
#points td.acts button:hover {background:none;color:var(--ink)}
#points td.acts button:disabled {color:var(--dim);text-decoration:none}
#points tbody tr,#points tbody tr:nth-child(even) {background:none}
#points tbody tr.alt {background:var(--stripe)}
#points tr.reading-row td {height:auto;padding:4px 12px 10px;white-space:normal}
@media (max-width:1100px) {
  /* The duration and the client address give way; the times and the frames stay. */
  #points [data-narrow="off"] {display:none}
}

/* ------------------------------------------------ The decorator's review of Tools,
   23 November 2026 (docs/reviews/2026-11-23-tools.md, D1 to D10). Column numbers follow the order the tables have today. */

/* D1. One line a row. Protocol takes the slack and is the one cut short; under 1000px the
   handshake times give way to the results, their cells keeping their place so that a row
   that spans columns still lines up. A fingerprint breaks only where it is told to. */
#tls-rows td:nth-child(8),#tls-rows td:nth-child(9) {white-space:nowrap}
#tls-rows td:nth-child(4):nth-last-child(6) {white-space:nowrap;width:100%;max-width:0;overflow:hidden;text-overflow:ellipsis}
@media (max-width:1000px) {
  #tls-rows thead th:nth-child(2),#tls-rows thead th:nth-child(3),#tls-rows td:nth-child(2):not([colspan]),#tls-rows td:nth-child(3):nth-last-child(7) {max-width:0;padding:0;overflow:hidden}
}
.chains small {overflow-wrap:normal}

/* D3. The row opens its endpoint and answers the pointer; the name is plain. */
#tls-rows td button {color:inherit;text-decoration:none}
#tls-rows td button:hover {color:inherit}
#tls-rows tr.opens {cursor:pointer}
#tls-rows tr.opens:not([aria-current="true"]):hover {background:var(--row-hover)}

/* D4. The focus ring shows on the charcoal bars in the Light look too. */
header :focus-visible,#subtools :focus-visible,#traffic-tool .toolbar :focus-visible {outline-color:var(--brand-focus);outline-offset:-3px}

/* D5. The forms: an address field no wider than a list of addresses, the notice close under
   its row, and 8px between a form, its answer and its table. */
.actions label.grow {max-width:560px}
#lookups-tool > p.meta {margin:4px 0 0}
#lookup-summary,#tls-summary {margin:8px 0}

/* D6. An endpoint's detail opens under its list with no gap: a 36px band, then the two
   chains under headings drawn as a table's. */
#tls-detail {margin-top:0;padding-top:0;border-top:0}
#tools-pane #tls-detail-title {height:36px;margin-top:0;line-height:36px}
.chains {gap:0;margin:0 -12px}
.chains > div {min-width:0;padding:0 12px 8px}
.chains h3 {height:var(--head-h);margin:0 -12px 8px;padding:0 12px;background:var(--panel);border-bottom:1px solid var(--ctl-rule);font:600 var(--fs-small)/27px var(--sans);color:var(--dim)}

/* D7. Addresses returned: rows of 24px in columns, in ink, with the Monitor's tick box. */
#lookup-addresses,#lookup-registration-result {margin-top:0}
#tools-pane .choices {columns:300px;column-gap:24px}
#tools-pane .choices label {height:24px;break-inside:avoid;color:var(--ink);font:500 var(--fs-data)/24px var(--mono)}
#tools-pane .choices input {appearance:none;width:12px;height:12px;margin:0;padding:0;flex:none;border:1px solid var(--dim);border-radius:0;background:var(--bg);display:grid;place-items:center}
#tools-pane .choices input:checked {background:var(--accent);border-color:var(--accent)}
#tools-pane .choices input:checked::after {content:"";width:4px;height:4px;background:var(--bg)}
#lookup-addresses .actions {margin-top:8px}

/* D8. The answers take the slack of the lookup table. */
#lookup-rows td:nth-child(5) {width:100%}

/* D9. A check's heading is the Monitor's group row, and data has the Monitor's weight. */
#tls-rows tr.batch th {height:var(--row-h);padding-top:0;border-bottom:0;background:var(--raised);font:600 13px/1 var(--sans)}
table {font-weight:500}

/* D10. A certificate's facts are data: in ink at the data size, their labels dim. */
.chains li {margin-bottom:8px}
.chains strong {font:600 var(--fs-data)/20px var(--mono)}
.chains small {color:var(--ink);font:500 var(--fs-data)/20px var(--mono)}
.chains small:not(.bad) span {color:var(--dim)}
/* The engineer's remaining facts, in the decorator's form: a certificate's names may wrap,
   and the button that checks the other addresses stands in its sentence. */
.chains small.names {overflow-wrap:anywhere}
#tls-summary .verdict button {height:22px;padding:0 8px;margin-left:4px;font:var(--fs-small)/1 var(--sans)}
/* Pairing a far end: the commands for the other machine, each a line to copy. */
dialog#farend-pair {width:min(760px, 95vw)}
#farend-pair h3 {margin:14px 0 6px;font:600 13px/1.3 var(--sans)}
.guide-block {margin:0 0 8px}
.guide-block h3 {margin:6px 0 4px;font:500 12px/1.3 var(--sans);color:var(--dim)}
.copyline {display:flex;align-items:center;gap:8px;margin:0 0 4px}
.copyline code {flex:1;min-width:0;overflow-x:auto;white-space:nowrap;padding:5px 8px;background:var(--raised);border:1px solid var(--line);font:12px/1.4 var(--mono);user-select:all}
.copyline.multiline {align-items:flex-start}
.copyline.multiline code {white-space:pre-wrap;overflow-wrap:anywhere}
#farend-rows table {width:100%}
/* The company's shared menus (menus.css), in Binaric's looks: the dark panel the old
   right-click menu had, in every look, with the accent and the warning red. */
.lm-menu {
  --menu-bg: var(--bar);
  --menu-ink: #d6e2e9;
  --menu-dim: #8fa6af;
  --menu-off: #5d6f77;
  --menu-line: #354047;
  --menu-raised: #262e33;
  --menu-accent: #36d1b7;
  --menu-danger: #ff7a6b;
  --menu-shadow: #000a;
  --menu-mono: var(--mono);
  font: var(--fs)/1.3 var(--sans);
}
/* A throughput run's rate each second. Series colours from the company chart method's
   categorical slots 1 and 2, stepped for each look and checked against its surface. */
#throughput-tool {--tp-up:#338ced;--tp-down:#e76624}
:root[data-look="workbench"] #throughput-tool {--tp-up:#257de0;--tp-down:#f47230}
.tp-plot {position:relative;margin:4px 0 8px}
#tp-chart {display:block;width:100%;height:170px;background:var(--raised);border:1px solid var(--line)}
#tp-chart:focus-visible {outline:2px solid var(--accent);outline-offset:2px}
#tp-chart .tp-line {fill:none;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
#tp-chart .tp-up {stroke:var(--tp-up);fill:var(--tp-up)}
#tp-chart .tp-down {stroke:var(--tp-down);fill:var(--tp-down)}
#tp-chart .tp-line.tp-up, #tp-chart .tp-line.tp-down {fill:none}
#tp-chart .tp-end {stroke:var(--raised);stroke-width:2}
#tp-chart .tp-grid {stroke:var(--line);stroke-width:1}
#tp-chart .tp-base {stroke:var(--ctl-rule);stroke-width:1}
#tp-chart .tp-cross {stroke:var(--dim);stroke-width:1}
#tp-chart text {font:11px var(--mono);fill:var(--dim)}
#tp-chart .tp-name {font:600 12px var(--sans);fill:var(--ink)}
.tp-legend {display:flex;gap:16px;font-size:13px;color:var(--ink)}
.tp-key {display:inline-flex;align-items:center;gap:6px}
.tp-key::before {content:"";width:16px;height:2px;border-radius:1px;background:var(--tp-up)}
.tp-key.tp-down::before {background:var(--tp-down)}
.tp-tip .tp-key::before {width:12px}
.tp-tip {position:absolute;pointer-events:none;padding:6px 9px;background:var(--panel);border:1px solid var(--ctl-rule);font:12px/1.6 var(--mono);color:var(--dim);white-space:nowrap}
.tp-tip strong {color:var(--ink);font-weight:600;margin-left:6px}
#tp-runs table, #farend-rows table {width:100%}
/* A line of checkboxes, each beside its words, in any window or pane. */
.choices label {display:flex;align-items:center;gap:8px}
.choices input[type=checkbox] {width:auto;margin:0;accent-color:var(--accent)}
#capture-form textarea {width:100%;box-sizing:border-box}
#capture-form input[name=ports] {width:14ch}
#capture-form .actions:not(.choices) label {display:grid;gap:4px;align-content:start}
/* The capture bar, in the footer on every tab while anything records. */
.capture-bar {display:flex;flex-direction:column;gap:2px;flex:1;align-items:flex-end;padding:3px 0}
.capture-line {display:flex;align-items:center;gap:10px;font:12px/1.4 var(--mono);color:var(--ink)}
.capture-line b {font-weight:600}
.capture-line .rec-what {color:var(--dim)}
.capture-line .rec-dot {width:9px;height:9px;border-radius:50%;background:var(--bad);animation:rec-pulse 1.6s ease-in-out infinite}
@keyframes rec-pulse {50% {opacity:.35}}
@media (prefers-reduced-motion: reduce) {.capture-line .rec-dot {animation:none}}
/* Sessions or Captures, in the Traffic Generator's bar. */
.seg {display:inline-flex;align-items:stretch;gap:4px;margin-right:12px}
#traffic-tool .toolbar .seg button {height:auto;padding:0 10px;border:0;border-bottom:2px solid transparent;background:none;color:var(--dim);font:600 13px var(--sans)}
#traffic-tool .toolbar .seg button[aria-pressed="true"] {color:var(--ink);border-bottom-color:var(--accent)}
#traffic-tool .toolbar .seg button:hover {color:var(--ink);background:none}
.view-off {display:none !important}
/* Address translations as pairs: observed → canonical. */
.pair-table {margin:6px 0}
.pair-row {display:flex;align-items:center;gap:8px;margin:0 0 4px}
.pair-row input {flex:1;min-width:0;font-family:var(--mono)}

/* A guide stays one keyboard-accessible line until the operator needs it. */
#tools-pane details.workflow-guide, .workflow-guide {
  margin: 6px 0;
  padding: 0;
  border: 0;
  color: var(--dim);
}
.workflow-guide summary { width: fit-content; padding: 4px 0; cursor: pointer; }
.workflow-guide[open] summary { color: var(--ink); }
.workflow-guide ol { max-width: 78ch; margin: 4px 0 10px; padding-left: 2em; }
.workflow-guide li { padding: 2px 0; line-height: 1.5; }

#terminal-dock {
  margin: .5rem 0;
  padding: .65rem 12px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0;
  background: var(--panel);
}
#terminal-dock h2, #terminal-dock p { margin: .35rem 0; }
#terminal-dock select { max-width: min(28rem, 82vw); }

/* Quick preset strip in Traffic Generator composer & actionable empty cues in non-Monitor tabs. */
.preset-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 8px 0;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.preset-strip .preset-label {
  font: 600 var(--fs-small)/1.4 var(--sans);
  color: var(--dim);
  margin-right: 4px;
}
#tools-pane .preset-strip button.preset-chip {
  height: 24px;
  padding: 0 9px;
  font: 500 12px/1 var(--mono);
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--ctl-rule);
}
#tools-pane .preset-strip button.preset-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}
#tools-pane .preset-strip button.preset-chip[aria-pressed="true"] {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}
.attempt-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 6px 0;
}
#tools-pane .attempt-filters button.filter-pill {
  height: 22px;
  padding: 0 8px;
  font: 500 11.5px/1 var(--mono);
  background: var(--panel);
  color: var(--dim);
  border: 1px solid var(--line);
}
#tools-pane .attempt-filters button.filter-pill[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--ink);
  background: color-mix(in srgb, var(--accent) 12%, var(--panel));
}
.empty-cue {
  max-width: 78ch;
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--panel);
}
.empty-cue h3 {
  margin: 0 0 4px;
  font: 600 13.5px/1.3 var(--sans);
  color: var(--ink);
}
.empty-cue p {
  margin: 0 0 8px;
  color: var(--dim);
  font-size: var(--fs);
}
.empty-cue p:last-child { margin-bottom: 0; }
.empty-cue .actions { margin-top: 8px; gap: 8px; }
#traffic-captures-list tr.reading-row td {
  height: auto;
  padding: 6px 12px 10px;
  white-space: normal;
  background: var(--panel);
}
#traffic-captures-list td.cap-acts {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}
.port-summary {
  margin: 8px 0 6px;
  font: 600 var(--fs-small)/1.4 var(--mono);
  color: var(--ink);
}
.raw-fold { margin-top: 8px; }
.raw-fold summary { cursor: pointer; color: var(--dim); font-size: var(--fs-small); }
.raw-fold pre { margin: 6px 0 0; max-height: 220px; overflow: auto; }
#traffic-detail-actions button.danger {
  color: var(--bad);
  border-color: color-mix(in srgb, var(--bad) 45%, var(--ctl-rule));
}
#traffic-detail-actions button.danger:hover {
  border-color: var(--bad);
  background: color-mix(in srgb, var(--bad) 12%, transparent);
}
#lookups-tool > .actions,
#tls-tool > .actions {
  padding-top: 8px;
}
#lookup-resolver { min-width: 24ch; }
.ws-toolbar :focus-visible,
#throughput-tool .toolbar :focus-visible { outline-color: var(--brand-focus); outline-offset: -3px; }

/* Case context and direct assignments retain their own names at every density. */
.assignment {display:inline-flex;align-items:baseline;flex-wrap:wrap;gap:.35em;margin-inline-start:.65em}
.assignment-kind {color:var(--ink);font:600 var(--fs-small)/1.3 var(--sans)}
.assignment .row-tags {margin:0}
.detail-tags {display:flex;flex-wrap:wrap;gap:.5em}
.detail-tags:empty {display:none}
.chip::before,.row-tag::before {box-shadow:0 0 0 1px var(--ink)}
#traffic-filter {max-width:16em;min-width:8em}
.collection-actions,.collection-host {display:flex;align-items:center;gap:.5em}
.collection-actions {padding:.35em .75em}
dialog.tags-find .collection-host > input[type=checkbox] {flex:0 0 1rem;inline-size:1rem;block-size:1rem;margin:0 0 0 .75em}
.collection-host > button {flex:1;min-width:0}
#traffic-guidance {border-inline-start:3px solid var(--accent);padding:.3em .8em;margin-block:.5em;background:var(--panel)}
.guided-control {outline:2px solid var(--accent);outline-offset:1px}
.collection-actions[hidden],#traffic-guidance[hidden],#traffic-filter[hidden] {display:none}

dialog.tags-find .collection-filters {display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 12px}
dialog.tags-find .collection-filters input {flex:1;min-width:12ch;width:auto;margin:0}

@media (max-width: 700px) {
  dialog.tags-find .thing {
    grid-template-columns:minmax(0,1fr);height:auto;min-height:44px;
    gap:3px;padding:7px 12px;align-content:center;
  }
  dialog.tags-find .thing strong {grid-column:1;white-space:normal;overflow-wrap:anywhere}
  dialog.tags-find .thing strong:not(:has(.mark)) {padding-left:0}
  dialog.tags-find .thing .detail {white-space:normal;overflow-wrap:anywhere}
  dialog.tags-find .thing.undated .row-tags {grid-column:1}
  dialog.tags-find .thing .row-tags {flex-wrap:wrap}
  dialog.tags-find .thing small {text-align:left}
  dialog.tags-find .thing :is(.detail,.row-tags):empty {display:none}
  dialog.tags-find :is(.buttons,.collection-actions) {flex-wrap:wrap}
}

#monitor-setup { margin: clamp(16px, 6vh, 64px) auto; width: min(36em, calc(100% - 32px)); padding: 20px; box-sizing: border-box; }
#monitor-setup .actions { display: flex; flex-wrap: wrap; gap: 8px; }
#monitor-start-error:empty { display: none; }

.ls-sheet .option-fields {display:grid;gap:.7rem;align-content:start}
.ls-sheet .option-fields p {margin:0;color:var(--dim);max-width:63ch}
.ls-sheet .option-fields h3 {margin:0;font-size:1em}
.ls-sheet .option-fields .option-field {display:grid;grid-template-columns:minmax(10em,1fr) minmax(7em,1fr);gap:.8em;align-items:center}
.ls-sheet .option-field input,.ls-sheet .option-field select {width:100%;min-width:0}
.ls-sheet .option-fields .option-check {display:flex;align-items:center;gap:.6em}
.ls-sheet .option-check input {width:auto}
.ls-sheet .option-fields>button {justify-self:start}
.ls-sheet .option-fields output {overflow-wrap:anywhere;font-family:var(--mono)}
@media (max-width:540px) {.ls-sheet .option-fields .option-field:not(.option-check) {grid-template-columns:1fr;gap:.2em}}

.ls-sheet .option-conflict {min-width:0;margin:0;padding:.55em .7em;border:1px solid var(--ls-line)}
.ls-sheet .option-conflict legend {font-weight:600}
.ls-sheet .option-conflict dl {display:grid;grid-template-columns:auto 1fr;gap:.25em .7em;margin:.3em 0 .6em}
.ls-sheet .option-conflict dd {margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.ls-sheet .option-conflict div {display:flex;flex-wrap:wrap;gap:.5em}

/* File → Save entries as… and Import entries… modals. */
dialog.entries-modal {width:min(540px,calc(100vw - 24px));max-width:none;overflow:hidden}
dialog.entries-modal[open] {display:flex;flex-direction:column;max-height:min(760px,calc(100dvh - 32px))}
.entries-shell {display:flex;flex-direction:column;min-height:0;flex:1 1 auto;margin:0}
.entries-shell > * {margin:0}
dialog.entries-modal .body {flex:1 1 auto;min-height:0;max-height:none;overflow:auto;padding:12px 14px}
.entries-form {display:grid;gap:10px;align-content:start}
.entries-form > * {margin:0}
.entries-group {display:grid;gap:6px;margin:0;padding:8px 12px 10px;border:1px solid var(--line);background:var(--bg)}
.entries-group > * {margin:0}
.entries-group legend {padding:0 4px;font:600 var(--fs-small)/1.3 var(--sans);color:var(--dim)}
.entries-radio {display:flex;align-items:flex-start;gap:8px;margin:0;font-weight:400;cursor:pointer}
.entries-radio input[type="radio"] {width:auto;margin:3px 0 0;flex:none;accent-color:var(--accent)}
.entries-radio-text {display:grid;gap:1px;min-width:0}
.entries-radio-text strong {font:550 var(--fs)/1.35 var(--sans);color:var(--ink)}
.entries-radio-text small {font:var(--fs-small)/1.35 var(--mono);color:var(--dim)}
.entries-tag-row {display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.entries-tag-select {width:auto;min-width:14ch;max-width:100%;height:26px;margin:0;padding:0 8px;font:var(--fs-small) var(--mono)}
.entries-check {display:flex;align-items:center;gap:8px;margin:0;font:550 var(--fs)/1.35 var(--sans);color:var(--ink);cursor:pointer}
.entries-check input[type="checkbox"] {width:auto;margin:0;flex:none;accent-color:var(--accent)}
.entries-subcheck {margin-left:22px;font-weight:400;color:var(--dim)}
.entries-file-label {display:grid;gap:5px;margin:0}
.entries-file-label input[type="file"] {width:100%;margin:0;padding:5px 8px;background:var(--bg);font:var(--fs-small) var(--mono)}
.entries-preview {padding:8px 12px;border:1px solid var(--line);border-left:3px solid var(--accent);background:var(--bg)}
.entries-preview-title {margin:0 0 4px;font:600 var(--fs)/1.35 var(--sans);color:var(--ink)}
.entries-preview-list,.entries-warnings {margin:0;padding-left:18px;font:var(--fs-small)/1.45 var(--mono);color:var(--ink)}
.entries-warnings {margin-top:6px;color:var(--bad)}
.entries-note,.entries-security,.entries-status {margin:0;font:var(--fs-small)/1.4 var(--sans)}
.entries-status:empty {display:none}
.entries-status.bad {color:var(--bad)}
dialog.entries-modal .buttons {flex:none;padding:10px 14px;border-top:1px solid var(--line);background:var(--panel)}
dialog.entries-modal .buttons button {height:28px;padding:0 14px}

.packets-dialog {
  box-sizing: border-box;
  width: min(94vw, 1240px);
  max-width: 100%;
  max-height: 90vh;
  padding: 0 14px 14px;
  overflow: auto;
  background: var(--panel);
  color: var(--ink);
}
.packets-dialog .packets-heading,
.packets-dialog .packets-controls,
.packets-dialog .packets-jump { display: flex; align-items: center; flex-wrap: wrap; gap: 7px }
.packets-dialog .packets-heading {
  position: static;
  height: auto;
  justify-content: space-between;
  padding: 10px 0;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.packets-heading h2, .packets-detail h3 { margin: 0; color: var(--ink) }
.packets-source { margin: 8px 0 }
.packets-source select { max-width: 100% }
button.packet-reference { display: inline; border: 0; background: transparent; padding: 0 1px; color: var(--accent); font: inherit; text-decoration: underline; text-underline-offset: 2px }
.packets-content { display: grid; grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr); gap: 14px }
.packets-list, .packets-detail { min-width: 0 }
.packets-controls { margin-bottom: 5px }
.packets-jump { margin-left: auto }
.packets-jump input { width: 6.5em }
.packets-grid { overflow: auto; max-height: 56vh; border: 1px solid var(--line) }
.packets-grid table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums }
.packets-grid th, .packets-grid td { padding: 4px 6px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line) }
.packets-grid th { position: sticky; top: 0; z-index: 1; background: var(--raised) }
.packets-grid tbody tr { cursor: pointer }
.packets-grid tbody tr:hover { background: var(--row-hover) }
.packets-grid tr[aria-current="true"] { background: var(--row-selected); box-shadow: inset 3px 0 var(--accent) }
.packets-grid td button { border: 0; background: transparent; color: var(--accent); font: inherit; padding: 0 2px }
.packets-detail { max-height: 63vh; overflow: auto; border-left: 1px solid var(--line); padding-left: 12px }
.packets-detail details { margin: 8px 0; border-top: 1px solid var(--line) }
.packets-detail summary { padding: 4px 0; cursor: pointer; font-weight: 600 }
.packets-detail dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 12px; margin: 3px 0 7px }
.packets-detail dt { color: var(--dim) }
.packets-detail dd { margin: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums }
.packets-detail pre { overflow: auto; font: 12px/1.5 var(--mono); white-space: pre }
@media (max-width: 850px) {
  .packets-content { grid-template-columns: 1fr }
  .packets-grid { max-height: 28vh }
  .packets-detail { max-height: none; padding: 8px 0 0; border: 0; border-top: 1px solid var(--line) }
}

/* Path Tests (#throughput-tool): goals, the preview before a run, the saved runs and the
   detail of one, and the walkthrough. Rows and type are the app's own; this only lays out
   what is new. Every colour is one of the look's variables, so Dark, Grey and Light hold. */

/* The search in the toolbar, beside the counts, as the Monitor's filter sits. */
#pt-search {width:220px;max-width:40vw}

/* Goals: 4 compact equal-height cards on desktop so Runs stays visible above the fold. */
.pt-goals {display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px;margin:6px 0 8px}
.pt-preset-group {display:contents}
.pt-goal {display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:8px 10px;border:1px solid var(--line);background:var(--panel)}
.pt-goal > p {margin:0}
.pt-goal button[aria-pressed="true"] {box-shadow:inset 0 0 0 1px var(--accent);color:var(--accent)}
.pt-spec {font:12px/1.4 var(--mono);color:var(--dim);margin-top:auto}
.pt-goal.pt-manual {background:none;border-style:dashed}
.pt-onboard {display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:10px;margin:8px 0}
.pt-onboard-card {padding:10px 12px;border:1px solid var(--line);background:var(--panel);display:flex;flex-direction:column;gap:6px}
.pt-onboard-card.recommended {border-left:3px solid var(--accent)}
.pt-onboard-card h3 {margin:0;font:600 13.5px/1.3 var(--sans);color:var(--ink)}
.pt-onboard-card p {margin:0;color:var(--dim)}
.pt-onboard-card .actions {margin-top:auto;padding-top:4px;gap:8px}

/* The manual latency plan. */
.pt-plan {margin:0 0 10px;padding:8px 12px;border-left:2px solid var(--accent);background:var(--panel)}
.pt-plan h3 {margin:0 0 4px}
.pt-plan ol {margin:4px 0;padding-left:1.6em}
.pt-plan li {padding:2px 0;line-height:1.6}

/* Advanced settings, folded until asked for or a goal is chosen. */
.pt-advanced {margin:2px 0 6px}
.pt-advanced > summary {width:fit-content;padding:4px 0;cursor:pointer}
.pt-advanced > summary .meta {margin-left:8px}

/* What a run will send, read before Run. */
.pt-preview {margin:6px 0 8px;padding:8px 12px;border:1px solid var(--line);background:var(--raised)}
.pt-preview h3 {margin:0 0 4px}
.pt-preview dl {display:grid;grid-template-columns:max-content 1fr;gap:2px 14px;margin:0 0 4px}
.pt-preview dt {color:var(--dim)}
.pt-preview dd {margin:0}
.pt-preview p {margin:4px 0 0}

/* The saved runs: a steady list that scrolls inside itself, the selected run marked. */
.pt-runs .tablewrap {max-height:280px;overflow:auto}
.pt-runs tbody tr {cursor:pointer}
.pt-runs tbody tr:hover {background:var(--row-hover)}

/* One run's detail, under the list. */
.pt-detail {margin:0 0 12px;padding:8px 12px;border:1px solid var(--line);background:var(--panel)}
.pt-detail .sectionhead h2 {margin:0}
.pt-detail p {margin:2px 0}

/* The walkthrough, and the control a step points at. */
.pt-walk {margin:0 0 12px;padding:8px 12px;border:1px solid var(--accent);background:var(--panel)}
.pt-walk h2 {margin:0 0 4px}
.pt-walk p {margin:2px 0;max-width:78ch}
.pt-spot {outline:2px solid var(--accent);outline-offset:3px}

/* Product themes supply the surface, border, type and accent colours. */
dialog.ls-sheet {
  --ls-ink: var(--ink, var(--text, CanvasText));
  --ls-surface: var(--panel, var(--surface, Canvas));
  --ls-line: var(--ctl-rule, var(--line, var(--rule, GrayText)));
  box-sizing: border-box; width: min(840px, calc(100vw - 24px));
  height: min(560px, calc(100vh - 24px)); height: min(560px, calc(100dvh - 24px));
  max-width: none; max-height: none; min-width: 0; min-height: 0;
  padding: 0; margin: auto; overflow: hidden;
  background: var(--bg, Canvas); color: var(--ls-ink); border: 1px solid var(--ls-line);
  font: inherit; box-shadow: 0 12px 48px #0005;
}
dialog.ls-sheet[open] { container: settings-sheet / inline-size; display: flex; flex-direction: column; }
.ls-sheet::backdrop { background: #07101888; }
.ls-sheet [hidden] { display: none !important; }
.ls-heading, .ls-footer { display: flex; flex: none; align-items: center; gap: .8em; padding: .65em 1em; background: var(--ls-surface); }
.ls-heading { border-bottom: 1px solid var(--ls-line); }
.ls-heading h2 { font: 600 1.1em/1.3 system-ui,sans-serif; margin: 0; padding: 0; }
.ls-scope { color: var(--dim, GrayText); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-main { display: grid; grid-template-columns: minmax(9em, 24%) minmax(0,1fr); flex: 1 1 0; min-height: 0; }
.ls-categories { overflow: auto; border-inline-end: 1px solid var(--ls-line); padding: .5em 0; background: var(--ls-surface); }
.ls-sheet button.ls-category {
  display: block; width: 100%; height: auto; margin: 0; border: 0; border-inline-start: 3px solid transparent;
  text-align: start; padding: .55em .85em; white-space: normal; background: transparent; color: var(--ls-ink); font: inherit;
}
.ls-sheet .ls-category[aria-selected="true"] { border-inline-start-color: var(--accent, Highlight); background: var(--raised, ButtonFace); font-weight: 600; }
.ls-pages, .ls-page { min-width: 0; min-height: 0; }
.ls-page { box-sizing: border-box; height: 100%; overflow: auto; padding: 1em 1.15em; overscroll-behavior: contain; }
.ls-page input, .ls-page select, .ls-page textarea { max-width: 100%; }
.ls-sheet .ls-picker { display: none; }
.ls-footer { justify-content: flex-end; border-top: 1px solid var(--ls-line); }
.ls-status { flex: 1; min-width: 0; overflow: auto; max-height: 3.1em; color: var(--bad, var(--down, #b84236)); font-size: .92em; overflow-wrap: anywhere; }
.ls-footer button { flex: none; min-width: 5em; height: auto; padding: .33em .75em; font: inherit; border: 1px solid var(--ls-line); background: var(--bg, ButtonFace); color: var(--ls-ink); }
.ls-footer button.ls-save { background: var(--accent, Highlight); color: var(--on, var(--bg, HighlightText)); }
.ls-sheet :focus-visible { outline: 2px solid var(--accent, Highlight); outline-offset: -2px; }
@media (max-width: 665px) {
  .ls-main { grid-template-columns: minmax(0,1fr); }
  .ls-categories { display: none; }
  .ls-sheet .ls-picker { display: block; flex: none; align-self: stretch; margin: .4em 1em; width: auto; font: inherit; }
}
.ls-footer { box-sizing: border-box; height: 3.7em; }
.ls-status { max-height: 100%; }

/* Text-only zoom may increase the font without reducing the viewport in CSS pixels. */
@container settings-sheet (max-width: 40em) {
  .ls-main { grid-template-columns: minmax(0,1fr); }
  .ls-categories { display: none; }
  .ls-sheet .ls-picker { display: block; flex: none; align-self: stretch; margin: .4em 1em; width: auto; font: inherit; }
}

#demo-guide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .4rem 1.2rem;
  padding: .45rem .85rem;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
#demo-guide.active { border-inline-start: 3px solid var(--accent); }
#traffic-detail > #demo-guide, #session-patterns > #demo-guide { position: sticky; top: 0; z-index: 2; }
.demo-guide-copy, .demo-guide-actions { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .65rem; }
.demo-guide-copy { flex: 1 1 22rem; }
.demo-guide-copy strong { font-weight: 650; }
#demo-step, #demo-instruction { color: var(--dim); }
#demo-step { font-variant-numeric: tabular-nums; white-space: nowrap; }
.demo-guide-actions { gap: .3rem; }
#demo-guide [hidden] { display: none; }
dialog #demo-guide { align-self: stretch; margin: 0 0 .45rem; }
@media (max-width: 640px) {
  #demo-guide { padding: .4rem .55rem; }
  .demo-guide-copy { flex-basis: 100%; }
}
