:root {
  color-scheme: light;
  --bg: #edf8f2;
  --ridge-1: #d8f3e3;
  --ridge-2: #b9e6ce;
  --ridge-3: #8fd7b4;
  --green-strong: #117149;
  --ink: #12352b;
  --muted: #587568;
  --line: rgba(41, 111, 82, .16);
  --glass: rgba(255, 255, 255, .62);
  --glass-strong: rgba(255, 255, 255, .78);
  --warning: #a66b19;
  --critical: #b64c48;
  --info: #39709a;
  --shadow: 0 22px 58px rgba(27, 91, 66, .12);
  --shadow-soft: 0 10px 28px rgba(27, 91, 66, .08);
  --radius-panel: 28px;
  --radius-control: 18px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background:
    radial-gradient(920px 540px at -8% -12%, rgba(143, 215, 180, .58), transparent 67%),
    radial-gradient(840px 500px at 108% 16%, rgba(185, 230, 206, .62), transparent 64%),
    linear-gradient(145deg, var(--bg) 0%, #f7fcf9 54%, #e3f4eb 100%);
}

/* Static green ridges keep the page calm while giving the glass surfaces depth. */
body::before,
body::after {
  position: fixed;
  z-index: -1;
  display: block;
  width: 100vw;
  height: 52vh;
  pointer-events: none;
  content: "";
  opacity: .52;
}

body::before {
  right: -13vw;
  bottom: -19vh;
  background: linear-gradient(154deg, transparent 8%, rgba(216, 243, 227, .8) 9% 37%, rgba(185, 230, 206, .55) 38% 61%, transparent 62%);
  clip-path: polygon(0 48%, 18% 33%, 35% 40%, 52% 19%, 69% 31%, 85% 14%, 100% 27%, 100% 100%, 0 100%);
}

body::after {
  left: -16vw;
  bottom: -26vh;
  background: linear-gradient(151deg, transparent 12%, rgba(185, 230, 206, .4) 13% 42%, rgba(143, 215, 180, .26) 43% 64%, transparent 65%);
  clip-path: polygon(0 65%, 15% 51%, 31% 57%, 48% 36%, 64% 49%, 81% 29%, 100% 42%, 100% 100%, 0 100%);
}

a {
  color: inherit;
}

button,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(17, 113, 73, .58);
  outline-offset: 3px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px max(18px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, .72);
  background: rgba(247, 253, 249, .7);
  box-shadow: 0 8px 26px rgba(27, 91, 66, .07);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
  backdrop-filter: blur(22px) saturate(135%);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 11px;
  font-weight: 750;
  letter-spacing: -.02em;
  text-decoration: none;
}

.brand > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand small {
  display: block;
  margin-top: 1px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 14px;
  color: #f3fff8;
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(145deg, var(--green-strong), #2a9b6b);
  box-shadow: 0 9px 20px rgba(17, 113, 73, .2), inset 0 1px 0 rgba(255, 255, 255, .32);
}

.back-link {
  flex: 0 0 auto;
  color: var(--green-strong);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.shell {
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 68px 24px 72px;
}

.hero {
  position: relative;
  max-width: 860px;
  margin: 0 0 44px;
  padding: 4px 4px 28px;
}

.hero::after {
  position: absolute;
  bottom: 0;
  left: 4px;
  width: min(260px, 62vw);
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--ridge-3), rgba(143, 215, 180, .1));
  content: "";
}

.eyebrow,
.section-kicker {
  color: var(--green-strong);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin: 13px 0 15px;
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 760;
  line-height: 1.03;
  letter-spacing: -.065em;
}

h2 {
  margin-bottom: 0;
  font-size: 21px;
  font-weight: 740;
  line-height: 1.2;
  letter-spacing: -.03em;
}

.hero p {
  max-width: 620px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 17px;
}

.provenance {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  gap: 8px;
  padding: 8px 13px;
  overflow: hidden;
  border: 1px solid rgba(17, 113, 73, .12);
  border-radius: 99px;
  color: #2d6550;
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(255, 255, 255, .5);
  box-shadow: var(--shadow-soft);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  backdrop-filter: blur(14px) saturate(125%);
}

.dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2e9e70;
  box-shadow: 0 0 0 4px rgba(46, 158, 112, .13);
}

.connect-panel,
.panel,
.boundary {
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: var(--radius-panel);
  background: linear-gradient(145deg, var(--glass-strong), var(--glass));
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
  backdrop-filter: blur(22px) saturate(135%);
}

.connect-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 15px 28px;
  align-items: center;
  margin-bottom: 20px;
  padding: 26px 30px;
}

.connect-panel p {
  margin: 7px 0 0;
  color: var(--muted);
}

.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.line-discipline {
  max-width: 100%;
  padding: 8px 11px;
  overflow: hidden;
  border: 1px solid rgba(17, 113, 73, .12);
  border-radius: 13px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(255, 255, 255, .48);
}

.connection-settings {
  position: relative;
  max-width: min(100%, 520px);
}

.connection-settings summary {
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.connection-settings summary::-webkit-details-marker {
  display: none;
}

.connection-settings summary::after {
  margin-left: 8px;
  content: "⌔";
}

.connection-settings[open] summary::after {
  content: "⌓";
}

.connection-options {
  position: absolute;
  z-index: 5;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  width: min(520px, calc(100vw - 48px));
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(250, 255, 252, .97);
  box-shadow: 0 18px 48px rgba(15, 66, 45, .18);
}

.connection-options input,
.connection-options select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, .88);
}

.connection-options .topology-option,
.connection-options > small {
  grid-column: 1 / -1;
}

.connection-options > small {
  color: var(--muted);
  line-height: 1.45;
}

.controls label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
}

.controls select {
  padding: 10px 28px 10px 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, .75);
}

.button {
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #f8fffb;
  background: var(--green-strong);
  box-shadow: 0 10px 22px rgba(17, 113, 73, .2);
}

.button.primary:hover {
  background: #0c5e3c;
  box-shadow: 0 13px 26px rgba(17, 113, 73, .26);
}

.button.quiet {
  border-color: rgba(17, 113, 73, .16);
  color: var(--green-strong);
  background: rgba(255, 255, 255, .52);
}

.button.quiet:hover {
  background: rgba(255, 255, 255, .8);
}

button:disabled {
  cursor: wait;
  opacity: .55;
}

.status-line {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 13px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.status-line span:first-child {
  padding: 4px 10px;
  border-radius: 99px;
  color: var(--green-strong);
  font-weight: 750;
  background: rgba(143, 215, 180, .24);
}

.status-line span:last-child {
  color: var(--muted);
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.panel {
  min-width: 0;
  padding: 26px 28px;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.pill {
  flex: 0 0 auto;
  padding: 5px 10px;
  border: 1px solid rgba(17, 113, 73, .1);
  border-radius: 99px;
  color: #2d755b;
  font-size: 11px;
  line-height: 1.25;
  white-space: nowrap;
  background: rgba(216, 243, 227, .66);
}

.pill.soft {
  border-color: rgba(74, 104, 91, .1);
  color: var(--muted);
  background: rgba(255, 255, 255, .54);
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(17, 113, 73, .12);
  border-radius: 18px;
  background: rgba(17, 113, 73, .12);
}

.data-card {
  display: flex;
  min-width: 0;
  min-height: 88px;
  flex-direction: column;
  justify-content: center;
  padding: 13px 12px;
  background: rgba(255, 255, 255, .57);
}

.data-label {
  margin-bottom: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-card strong {
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  font-weight: 700;
}

.data-card small {
  color: var(--muted);
  font-size: 10px;
}

.raw-observation {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.raw-observation-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.raw-observation-grid .data-card {
  min-height: 68px;
}

.lower {
  margin-top: 20px;
}

.check-list,
.log-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 11px 0;
  border-bottom: 1px solid rgba(17, 113, 73, .1);
}

.check-row:last-child {
  border-bottom: 0;
}

.check-icon {
  display: grid;
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 9px;
  color: #789087;
  font-weight: 800;
  background: rgba(88, 117, 104, .1);
}

.check-pass .check-icon {
  color: #237a59;
  background: rgba(143, 215, 180, .34);
}

.check-warning .check-icon {
  color: var(--warning);
  background: rgba(244, 218, 165, .45);
}

.check-row > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.check-row b {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.check-row small {
  color: var(--muted);
  font-size: 11px;
}

.check-row em {
  flex: 0 0 auto;
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
}

.check-pass em {
  color: #237a59;
}

.callout {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 18px;
  padding: 13px 14px;
  border: 1px solid rgba(166, 107, 25, .22);
  border-radius: 17px;
  color: #805f2a;
  font-size: 12px;
  background: rgba(255, 248, 235, .75);
}

.callout strong {
  margin-bottom: 1px;
  color: var(--warning);
  font-size: 12px;
}

.callout small {
  color: #8b7652;
  font-size: 11px;
}

.log-row {
  display: flex;
  min-width: 0;
  gap: 11px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(17, 113, 73, .1);
  font-size: 12px;
}

.log-row time {
  flex: 0 0 auto;
  color: #789087;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.log-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.log-ok span {
  color: #237a59;
}

.log-warn span {
  color: var(--warning);
}

.empty-log {
  padding: 15px 0;
  color: var(--muted);
  font-size: 12px;
}

.next-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.next-number {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 13px;
  color: var(--green-strong);
  font-size: 11px;
  font-weight: 800;
  background: rgba(143, 215, 180, .34);
}

.next-step strong,
.next-step small {
  display: block;
}

.next-step strong {
  font-size: 13px;
}

.next-step small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.diagnostic-panel {
  margin-top: 20px;
}

.diagnostic-intro {
  margin: -7px 0 19px;
  color: var(--muted);
  font-size: 12px;
}

.diagnostic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.diagnostic-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(17, 113, 73, .13);
  border-radius: 19px;
  background: rgba(255, 255, 255, .48);
}

.diagnostic-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.diagnostic-card h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
}

.diagnostic-status {
  flex: 0 0 auto;
  padding: 4px 9px;
  border: 1px solid rgba(17, 113, 73, .1);
  border-radius: 99px;
  color: var(--green-strong);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  white-space: nowrap;
  background: rgba(216, 243, 227, .64);
}

.diagnostic-warning {
  border-color: rgba(166, 107, 25, .25);
  background: rgba(255, 250, 242, .68);
}

.diagnostic-warning .diagnostic-status {
  border-color: rgba(166, 107, 25, .15);
  color: var(--warning);
  background: rgba(255, 240, 217, .82);
}

.diagnostic-critical {
  border-color: rgba(182, 76, 72, .28);
  background: rgba(255, 247, 247, .72);
}

.diagnostic-critical .diagnostic-status {
  border-color: rgba(182, 76, 72, .16);
  color: var(--critical);
  background: rgba(251, 227, 227, .86);
}

.diagnostic-unverified {
  background: rgba(255, 255, 255, .4);
}

.diagnostic-unverified .diagnostic-status,
.diagnostic-not_run .diagnostic-status {
  border-color: rgba(88, 117, 104, .12);
  color: var(--muted);
  background: rgba(238, 242, 242, .76);
}

.diagnostic-info .diagnostic-status {
  border-color: rgba(57, 112, 154, .13);
  color: var(--info);
  background: rgba(232, 241, 249, .78);
}

.diagnostic-details {
  display: grid;
  gap: 9px;
  margin: 0;
}

.diagnostic-details > div {
  min-width: 0;
}

.diagnostic-details dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .05em;
}

.diagnostic-details dd {
  margin: 1px 0 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.45;
}

.diagnostic-details dd:empty::after {
  color: var(--muted);
  content: "UNVERIFIED";
}

.diagnostic-empty {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px dashed rgba(17, 113, 73, .22);
  border-radius: 17px;
  color: var(--muted);
  font-size: 12px;
  background: rgba(255, 255, 255, .38);
}

.diagnostic-empty strong {
  color: var(--warning);
  font-size: 11px;
  letter-spacing: .05em;
}

.action-panel,
.parameter-panel {
  margin-top: 20px;
}

.action-note {
  max-width: 880px;
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.arm-row,
.emergency-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.arm-button {
  min-height: 44px;
}

.arm-boundary {
  color: var(--muted);
  font-size: 11px;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.action-grid .button,
.emergency-actions .button {
  min-height: 44px;
  overflow-wrap: anywhere;
}

.empty-action {
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px;
  border: 1px dashed rgba(17, 113, 73, .2);
  border-radius: 16px;
  color: var(--muted);
  font-size: 12px;
}

.button.secondary {
  border-color: rgba(166, 107, 25, .2);
  color: var(--warning);
  background: rgba(255, 248, 232, .74);
}

.button.danger {
  border-color: rgba(182, 76, 72, .25);
  color: #fff;
  background: var(--critical);
}

.button:disabled {
  cursor: not-allowed;
  opacity: .5;
  transform: none;
}

.transaction-status {
  margin: 13px 0 0;
  min-height: 24px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.channel-card {
  grid-column: 1 / -1;
}

.channel-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
  overflow-wrap: anywhere;
}

.channel-chip {
  padding: 3px 8px;
  border-radius: 99px;
  color: var(--muted);
  font-size: 10px;
  background: rgba(255, 255, 255, .66);
}

.parameter-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.parameter-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .46);
  overflow-wrap: anywhere;
}

.parameter-card-head,
.parameter-inputs,
.parameter-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.parameter-card small {
  display: block;
  color: var(--muted);
}

.parameter-inputs {
  margin: 13px 0;
}

.parameter-inputs input[type="range"] {
  min-width: 0;
  flex: 1 1 auto;
  accent-color: var(--green-strong);
}

.parameter-inputs input[type="number"] {
  width: 92px;
  min-height: 42px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, .76);
}

.boundary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 20px;
  padding: 23px 28px;
}

.boundary-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.boundary-items span {
  padding: 6px 11px;
  border: 1px solid rgba(17, 113, 73, .14);
  border-radius: 99px;
  color: var(--muted);
  font-size: 12px;
  background: rgba(255, 255, 255, .44);
}

footer {
  display: flex;
  justify-content: space-between;
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 0 24px 34px;
  color: #6d897d;
  font-size: 11px;
}

@media(max-width:760px) {
  .topbar {
    min-height: 64px;
    padding: 10px 16px;
  }

  .brand {
    gap: 9px;
    font-size: 14px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    font-size: 18px;
  }

  .brand small {
    font-size: 8px;
  }

  .back-link {
    font-size: 12px;
  }

  .shell {
    padding: 45px 16px 48px;
  }

  .hero {
    margin-bottom: 34px;
    padding-bottom: 23px;
  }

  .hero p {
    margin-bottom: 17px;
    font-size: 15px;
  }

  .provenance {
    max-width: 100%;
    font-size: 10px;
  }

  .connect-panel,
  .panel,
  .boundary {
    border-radius: 22px;
  }

  .connect-panel {
    display: block;
    padding: 21px 19px;
  }

  .connect-panel p {
    font-size: 13px;
  }

  .controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    margin-top: 18px;
  }

  .controls .line-discipline {
    grid-column: 1 / -1;
    width: 100%;
  }

  .connection-settings {
    grid-column: 1 / -1;
    max-width: none;
  }

  .connection-options {
    position: static;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 8px;
  }

  .controls .button {
    width: 100%;
  }

  .status-line {
    margin-top: 16px;
  }

  .grid-two {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .panel {
    padding: 21px 19px;
  }

  .section-heading {
    margin-bottom: 17px;
  }

  .data-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 16px;
  }

  .data-card {
    min-height: 76px;
    padding: 11px 10px;
  }

  .data-card strong {
    font-size: 13px;
  }

  .diagnostic-grid {
    grid-template-columns: 1fr;
  }

  .diagnostic-card {
    padding: 14px;
    border-radius: 17px;
  }

  .diagnostic-intro {
    margin-top: -3px;
  }

  .action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .parameter-list {
    grid-template-columns: 1fr;
  }

  .boundary {
    display: block;
    padding: 21px 19px;
  }

  .boundary-items {
    justify-content: flex-start;
    margin-top: 15px;
  }

  footer {
    display: block;
    padding: 0 16px 27px;
  }

  footer span {
    display: block;
    margin-top: 4px;
  }
}

@media(max-width:390px) {
  .action-grid,
  .parameter-list {
    grid-template-columns: 1fr;
  }

  .arm-row,
  .arm-button,
  .emergency-actions .button {
    width: 100%;
  }

  .emergency-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .parameter-inputs {
    align-items: stretch;
    flex-direction: column;
  }

  .parameter-inputs input[type="number"] {
    width: 100%;
  }
}

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

@supports not ((backdrop-filter: blur(1px))) {
  .topbar,
  .provenance,
  .connect-panel,
  .panel,
  .boundary {
    background: var(--glass-strong);
  }
}

.origin-note {
  margin-top: 8px !important;
  color: var(--warning) !important;
  font-size: 11px !important;
}
