.product-body {
  min-height: 100dvh;
  overflow: auto;
  background: var(--paper);
}

.product-body.drawer-open { overflow: hidden; }

.product-body [hidden] { display: none !important; }

.product-body button,
.product-body input,
.product-body textarea,
.product-body select { font: inherit; }

.product-body button:focus-visible,
.product-body input:focus-visible,
.product-body textarea:focus-visible,
.product-body select:focus-visible,
.product-body a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--blue);
}

.product-body input::placeholder,
.product-body textarea::placeholder { color: var(--slate); opacity: 1; }

.brand-inverse { color: #f7f5ee; }
.brand-inverse > span > span { color: #8fb6cc; }

.status-lamp {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(25, 112, 75, .12);
}

.status-lamp.warning { background: var(--orange); box-shadow: 0 0 0 3px rgba(212, 91, 33, .14); }
.status-lamp.denied { background: #b7362e; box-shadow: 0 0 0 3px rgba(183, 54, 46, .12); }

.onboarding-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
}

.commissioning-rail,
.product-index {
  background: var(--ink);
  color: #f7f5ee;
}

.commissioning-rail {
  position: sticky;
  top: 0;
  min-height: 100dvh;
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
}

.commissioning-steps {
  margin: 96px 0 0;
  padding: 0;
  list-style: none;
}

.commissioning-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 13px;
  min-height: 92px;
  color: #82909e;
}

.commissioning-steps li::after {
  content: "";
  position: absolute;
  top: 31px;
  bottom: 2px;
  left: 14px;
  width: 1px;
  background: #405166;
}

.commissioning-steps li:last-child::after { display: none; }

.commissioning-steps li > span {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 1px solid #526579;
  border-radius: 50%;
  font: 600 11px/1 var(--display);
}

.commissioning-steps strong { display: block; margin-top: 2px; font: 620 14px/1.2 var(--display); color: #aab5c0; }
.commissioning-steps small { display: block; margin-top: 7px; font-size: 11px; line-height: 1.45; }
.commissioning-steps li.active { color: #b7c2cc; }
.commissioning-steps li.active > span { border-color: #f7f5ee; background: #f7f5ee; color: var(--ink); }
.commissioning-steps li.active strong { color: #fff; }
.commissioning-steps li.complete > span { border-color: #6ba486; background: var(--green); color: #fff; }

.rail-boundary {
  margin-top: auto;
  padding: 19px 8px 2px;
  border-top: 1px solid #405166;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.rail-boundary .status-lamp { margin-top: 5px; }
.rail-boundary p { margin: 0; color: #9facb9; font-size: 11px; line-height: 1.5; }
.rail-boundary strong { display: block; margin-bottom: 4px; color: #fff; font: 620 11px/1.2 var(--display); letter-spacing: .04em; text-transform: uppercase; }

.commissioning-workbench { min-width: 0; }

.workbench-header,
.product-topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.workbench-header { padding: 0 clamp(28px, 5vw, 76px); }
.workbench-header > span { color: var(--slate); font: 600 11px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.workbench-header a { color: var(--blue); min-height: 44px; display: inline-flex; align-items: center; font-size: 12px; text-decoration: none; }
.workbench-header a:hover { text-decoration: underline; }

.onboarding-step {
  min-height: calc(100dvh - 76px);
  display: grid;
  grid-template-columns: minmax(380px, 1.05fr) minmax(420px, .95fr);
}

.step-introduction {
  padding: clamp(54px, 8vh, 98px) clamp(36px, 7vw, 110px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.step-count { margin: 0 0 32px; color: var(--blue); font: 620 11px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.step-introduction h1 { max-width: 720px; margin: 0 0 25px; font: 630 clamp(48px, 5.2vw, 76px)/.96 var(--display); letter-spacing: -.035em; text-wrap: balance; }
.step-introduction > p:not(.step-count) { max-width: 56ch; margin: 0; color: var(--slate); font-size: 19px; line-height: 1.6; }

.authority-preview,
.connection-flow {
  display: flex;
  align-items: center;
  margin-top: 64px;
  color: var(--slate);
  font: 620 10px/1 var(--display);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.authority-preview i,
.connection-flow i { position: relative; height: 1px; min-width: 32px; flex: 1; margin: 0 10px; background: var(--line); }
.authority-preview i::after,
.connection-flow i::after { content: ""; position: absolute; right: 0; top: -2px; width: 4px; height: 4px; border-top: 1px solid var(--slate); border-right: 1px solid var(--slate); transform: rotate(45deg); }
.authority-preview strong,
.connection-flow strong { padding: 10px 12px; background: var(--ink); color: #fff; font-weight: 620; white-space: nowrap; }

.control-form { display: grid; gap: 20px; }
.commissioning-form { padding: clamp(48px, 7vh, 82px) clamp(30px, 5vw, 72px); background: var(--blue); color: #fff; justify-content: center; align-content: center; box-shadow: -16px 0 40px rgba(16, 37, 60, .1); }

.form-heading,
.section-bar,
.drawer-heading,
.inspector-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.form-heading { padding-bottom: 18px; margin-bottom: 8px; border-bottom: 1px solid currentColor; }
.commissioning-form .form-heading { border-color: #5d83a0; }
.form-heading h2 { margin: 0; font: 650 22px/1.2 var(--display); letter-spacing: -.015em; }
.form-heading > span { color: #bbcedb; font: 580 10px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }

.control-form label,
.activity-selector {
  display: grid;
  gap: 8px;
  font: 610 11px/1.2 var(--display);
  letter-spacing: .045em;
  text-transform: uppercase;
}

.control-form input,
.control-form textarea,
.activity-selector select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font: 400 14px/1.45 var(--body);
  letter-spacing: normal;
  text-transform: none;
}

.commissioning-form input,
.commissioning-form textarea { border-color: transparent; background: #f8fafb; }
.control-form textarea { resize: vertical; }
.control-form label small { font: 400 11px/1.4 var(--body); letter-spacing: normal; text-transform: none; opacity: .76; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.money-field { display: flex; align-items: center; padding-left: 12px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--slate); }
.money-field input { border: 0; padding-left: 7px; }
.commissioning-form .money-field { border-color: transparent; }
.form-error { min-height: 18px; margin: -5px 0 0; color: #ffdbce; font-size: 14px; line-height: 1.4; }
.create-drawer .form-error { color: #b7362e; }

.instrument-button {
  min-height: 46px;
  border: 0;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  cursor: pointer;
  font: 640 12px/1 var(--display);
  text-decoration: none;
}

.instrument-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.instrument-button:disabled { cursor: wait; opacity: .58; }
.primary-instrument { background: #fff; color: var(--ink); }
.primary-instrument:hover { background: #e9f0f4; }
.blue-instrument { background: var(--blue); color: #fff; }
.blue-instrument:hover { background: var(--blue-deep); }

.connection-step .step-introduction { background: #e8e6de; }
.created-control-summary { display: grid; grid-template-columns: 1fr 1fr; margin: 56px 0 0; border-top: 1px solid var(--line); }
.created-control-summary div { padding: 18px 12px 18px 0; border-bottom: 1px solid var(--line); }
.created-control-summary div:nth-child(odd) { border-right: 1px solid var(--line); }
.created-control-summary div:nth-child(even) { padding-left: 18px; }
.created-control-summary dt { color: var(--slate); font: 600 10px/1 var(--display); letter-spacing: .07em; text-transform: uppercase; }
.created-control-summary dd { margin: 9px 0 0; font: 630 16px/1.2 var(--display); }
.created-control-summary dd .status-lamp { margin-right: 7px; }

.connection-bench { min-width: 0; padding: clamp(48px, 8vh, 92px) clamp(30px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; }
.connection-bench .form-heading { border-color: var(--line); }
.connection-bench .form-heading > span { color: var(--slate); }

.cli-provenance { margin-top: 16px; border-block: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; }
.cli-provenance > div:first-child { padding: 16px 0; }
.cli-provenance strong,
.pairing-introduction strong { display: block; font: 650 14px/1.2 var(--display); }
.cli-provenance p,
.pairing-introduction p { margin: 5px 0 0; color: var(--slate); font-size: 12px; line-height: 1.45; }
.cli-source-actions,
.inspector-cli-links { display: flex; gap: 8px; }
.cli-source-actions a,
.inspector-cli-links a { min-height: 44px; padding: 0 12px; border: 1px solid var(--ink); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); font: 610 11px/1 var(--display); text-decoration: none; }
.cli-source-actions a:first-child,
.inspector-cli-links a:first-child { background: var(--blue); border-color: var(--blue); color: #fff; }
.cli-fingerprint { grid-column: 1 / -1; min-width: 0; padding: 11px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: start; gap: 10px; }
.cli-fingerprint span { color: var(--slate); font: 600 10px/1.4 var(--display); letter-spacing: .07em; }
.cli-fingerprint code { color: var(--ink); font: 11px/1.4 "Cascadia Code", Consolas, monospace; overflow-wrap: anywhere; }

.command-housing { margin-top: 24px; background: var(--ink); color: #d8e2eb; }
.command-meta { display: flex; justify-content: space-between; padding: 13px 18px; border-bottom: 1px solid #405166; color: #9facb9; font: 580 9px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.command-housing code { display: block; min-height: 130px; padding: 20px; font: 400 12px/1.7 "Cascadia Code", Consolas, monospace; overflow-wrap: anywhere; }
.connection-bench .command-housing code { min-height: auto; font-size: 14px; }
.command-housing > button { width: 100%; min-height: 46px; border: 0; border-top: 1px solid #405166; background: transparent; color: #fff; cursor: pointer; font: 620 11px/1 var(--display); }
.command-housing > button:hover { background: #21384e; }
.pairing-note { min-height: 54px; padding: 10px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 11px; }
.pairing-note p { margin: 0; color: var(--slate); font-size: 11px; line-height: 1.45; }
.pairing-note button { min-height: 44px; padding: 0 10px; border: 0; background: transparent; color: var(--blue); cursor: pointer; font: 610 11px/1 var(--display); }
.connection-flow { margin-block: 48px 34px; }

.product-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  padding: 13px 18px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 32px rgba(16, 37, 60, .22);
  font-size: 14px;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 180ms ease-out, transform 260ms cubic-bezier(.16, 1, .3, 1);
}
.product-toast.visible { opacity: 1; transform: translateY(0); }

/* Product shell */
.product-shell { min-height: 100dvh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.product-index { position: sticky; top: 0; height: 100dvh; padding: 28px 20px 20px; display: flex; flex-direction: column; }
.product-navigation { display: grid; gap: 4px; margin-top: 58px; }
.product-navigation button { min-height: 46px; padding: 0 12px; border: 0; border-radius: 6px; display: flex; align-items: center; gap: 12px; background: transparent; color: #c7d0d8; cursor: pointer; text-align: left; font: 610 13px/1 var(--display); }
.product-navigation button:hover { background: #1a3249; color: #fff; }
.product-navigation button.active { background: var(--paper); color: var(--ink); }
.product-navigation svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.product-navigation circle { fill: var(--ink); stroke: none; }

.index-controls { margin-top: 42px; min-height: 0; }
.index-controls > span { display: block; padding: 0 8px 12px; border-bottom: 1px solid #405166; color: #9facb9; font: 600 10px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.index-control-list { display: grid; gap: 3px; padding-top: 9px; max-height: 36vh; overflow-y: auto; }
.index-control-list button { min-height: 40px; width: 100%; border: 0; border-radius: 6px; padding: 0 8px; display: grid; grid-template-columns: 8px minmax(0, 1fr); align-items: center; gap: 10px; background: transparent; color: #c7d0d8; cursor: pointer; text-align: left; font-size: 12px; }
.index-control-list button:hover { background: #1a3249; color: #fff; }
.index-control-list button.active { background: #263c53; color: #fff; }
.index-control-list button > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.product-workspace { min-width: 0; }
.product-topbar { padding: 0 clamp(24px, 4vw, 58px); }
.product-topbar > div { display: flex; align-items: center; gap: 10px; color: var(--slate); font: 600 10px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.product-topbar nav { display: flex; gap: 12px; }
.product-topbar a { min-height: 44px; padding: 0 8px; display: inline-flex; align-items: center; color: var(--slate); font-size: 12px; text-decoration: none; }
.product-topbar a:hover { color: var(--blue); }
.product-topbar nav button { min-height: 44px; padding: 0 8px; border: 0; background: transparent; color: var(--slate); cursor: pointer; font: 12px/1 var(--display); }
.product-topbar nav button:hover { color: var(--blue); }

.product-view { min-width: 0; }
.view-heading { min-height: 152px; padding: 35px clamp(24px, 4vw, 58px) 30px; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; border-bottom: 1px solid var(--line); }
.view-heading h1 { margin: 0; font: 650 clamp(38px, 4vw, 50px)/1 var(--display); letter-spacing: -.03em; }
.view-heading p { max-width: 65ch; margin: 11px 0 0; color: var(--slate); font-size: 14px; line-height: 1.5; }
.view-heading .instrument-button { min-width: 160px; }

.summary-strip { display: grid; grid-template-columns: repeat(4, 1fr); background: #e8e6de; border-bottom: 1px solid var(--line); }
.summary-strip > div { min-height: 104px; padding: 25px clamp(18px, 3vw, 38px); border-right: 1px solid var(--line); }
.summary-strip > div:last-child { border-right: 0; }
.summary-strip span { display: block; color: var(--slate); font: 600 10px/1 var(--display); letter-spacing: .07em; text-transform: uppercase; }
.summary-strip strong { display: block; margin-top: 10px; font: 650 28px/1 var(--display); letter-spacing: -.025em; }

.controls-workbench { min-height: calc(100dvh - 333px); display: grid; grid-template-columns: minmax(560px, 1fr) 390px; }
.control-ledger { min-width: 0; }
.section-bar { min-height: 72px; padding: 20px clamp(24px, 4vw, 58px); align-items: center; border-bottom: 1px solid var(--line); }
.section-bar h2 { margin: 0; font: 650 19px/1.2 var(--display); }
.section-bar > span { color: var(--slate); font-size: 11px; }
.section-bar p { margin: 5px 0 0; color: var(--slate); font-size: 12px; }
.section-bar > button { min-height: 44px; padding: 0 10px; border: 0; background: transparent; color: var(--blue); cursor: pointer; font-size: 12px; }

.ledger-head,
.control-ledger-row { display: grid; grid-template-columns: minmax(180px, 1.5fr) .65fr .75fr .75fr .65fr; gap: 16px; align-items: center; }
.ledger-head { min-height: 42px; padding: 0 clamp(24px, 4vw, 58px); border-bottom: 1px solid var(--line); color: var(--slate); font: 600 9px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.control-ledger-row { width: 100%; min-height: 74px; padding: 0 clamp(24px, 4vw, 58px); border: 0; border-bottom: 1px solid var(--fine); background: transparent; color: var(--ink); cursor: pointer; text-align: left; font-size: 12px; }
.control-ledger-row:hover { background: #eceae3; }
.control-ledger-row.selected { background: #e4e8e8; box-shadow: inset 2px 0 0 var(--blue); }
.ledger-identity { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 11px; align-items: center; }
.ledger-identity strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 630 14px/1.25 var(--display); }
.ledger-identity small { display: block; margin-top: 5px; color: var(--slate); font-size: 11px; }
.control-ledger-row time { color: var(--slate); }
.ledger-empty { min-height: 330px; padding: 70px 40px; display: grid; place-content: center; text-align: center; }
.ledger-empty strong { font: 650 21px/1.2 var(--display); }
.ledger-empty p { max-width: 42ch; margin: 10px auto 20px; color: var(--slate); font-size: 14px; line-height: 1.5; }
.ledger-empty button,
.activity-empty button { min-height: 44px; border: 0; background: transparent; color: var(--blue); cursor: pointer; text-decoration: underline; }

.control-inspector { min-width: 0; overflow: hidden; border-left: 1px solid var(--line); background: var(--panel); }
.empty-inspector { min-height: 100%; padding: 48px; display: grid; align-content: center; text-align: center; }
.empty-inspector svg { width: 72px; margin: 0 auto 24px; fill: none; stroke: var(--line); stroke-width: 1; }
.empty-inspector h2 { margin: 0; font: 650 19px/1.2 var(--display); }
.empty-inspector p { margin: 10px auto 0; color: var(--slate); font-size: 12px; line-height: 1.55; }
.inspector-heading { padding: 30px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.inspector-heading > div > span { color: var(--slate); font: 600 9px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.inspector-heading h2 { margin: 10px 0 0; font: 650 26px/1 var(--display); letter-spacing: -.02em; }
.inspector-budget { padding: 26px 30px; border-bottom: 1px solid var(--line); background: #e8e6de; }
.inspector-budget > span { color: var(--slate); font: 600 10px/1 var(--display); letter-spacing: .07em; text-transform: uppercase; }
.inspector-budget > strong { display: block; margin-top: 9px; font: 650 26px/1 var(--display); }
.inspector-budget strong small { color: var(--slate); font-size: 14px; font-weight: 500; }
.mini-track { height: 9px; margin-top: 18px; border: 1px solid #a9aaa4; background: #fff; overflow: hidden; }
.mini-track i { display: block; width: 100%; height: 100%; background: var(--blue); transform: scaleX(var(--fill, 0)); transform-origin: left; transition: transform 620ms cubic-bezier(.16, 1, .3, 1); }
.inspector-rules { margin: 0; }
.inspector-rules div { min-width: 0; padding: 17px 30px; display: grid; grid-template-columns: 110px minmax(0, 1fr); border-bottom: 1px solid var(--fine); }
.inspector-rules dt { color: var(--slate); font: 600 9px/1.3 var(--display); letter-spacing: .07em; text-transform: uppercase; }
.inspector-rules dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: 12px; line-height: 1.5; }
.inspector-authority { border-bottom: 1px solid var(--line); }
.inspector-authority > div:first-child { padding: 24px 30px 18px; }
.inspector-authority h3 { margin: 0; font: 650 17px/1.2 var(--display); }
.inspector-authority p { margin: 8px 0 0; color: var(--slate); font-size: 11px; line-height: 1.55; }
.authority-row { min-height: 76px; padding: 10px 30px; display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 11px; border-top: 1px solid var(--fine); }
.authority-row strong { display: block; font: 620 12px/1.2 var(--display); }
.authority-row small { display: block; min-width: 0; margin-top: 5px; color: var(--slate); font: 10px/1.3 var(--body); white-space: normal; }
.authority-row small code { overflow-wrap: anywhere; font: 10px/1.3 "Cascadia Code", Consolas, monospace; }
.authority-actions { display: flex; flex-direction: column; align-items: stretch; }
.authority-row button { min-height: 38px; padding: 0 10px; border: 0; background: transparent; color: var(--blue); cursor: pointer; font: 610 10px/1 var(--display); }

@media (pointer: coarse) {
  .authority-row button { min-height: 44px; }
}
.inspector-command { padding: 24px 30px; border-bottom: 1px solid var(--line); }
.pairing-introduction { margin-bottom: 14px; }
.inspector-cli-links { margin-bottom: 14px; }
.inspector-cli-links a { flex: 1; }
.inspector-fingerprint { margin-bottom: 14px; }
.fingerprint-explanation { margin-bottom: 15px !important; }
.inspector-command code { display: block; max-height: 110px; margin-top: 15px; padding: 14px; overflow: auto; background: var(--ink); color: #d8e2eb; font: 11px/1.55 "Cascadia Code", Consolas, monospace; overflow-wrap: anywhere; }
.inspector-command > button { width: 100%; min-height: 42px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; font: 610 11px/1 var(--display); }
.inspector-command code + button { border-color: #405166; background: var(--ink); color: #fff; }
.inspector-command p { margin: 0 0 15px; color: var(--slate); font-size: 12px; line-height: 1.5; }
.pairing-instrument > button:not(.text-instrument) { background: var(--ink); border-color: var(--ink); color: #fff; }
.pairing-instrument .text-instrument { margin-top: 8px; border: 0; background: transparent; color: var(--blue); }
.inspector-actions { padding: 22px 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.inspector-actions button { min-height: 44px; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; font: 610 11px/1 var(--display); }
.inspector-actions button:first-child { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Activity */
.activity-heading { align-items: flex-end; }
.activity-selector { min-width: 240px; }
.spend-calibration { min-height: 180px; padding: 30px clamp(24px, 4vw, 58px); display: grid; grid-template-columns: minmax(220px, .75fr) minmax(330px, 1.4fr) minmax(270px, .85fr); align-items: center; gap: clamp(26px, 4vw, 60px); background: #e8e6de; border-bottom: 1px solid var(--line); }
.spend-number > span { color: var(--slate); font: 600 10px/1 var(--display); letter-spacing: .07em; text-transform: uppercase; }
.spend-number strong { display: block; margin-top: 10px; font: 650 38px/1 var(--display); letter-spacing: -.03em; }
.spend-number p { max-width: 290px; margin: 10px 0 0; color: var(--slate); font-size: 11px; line-height: 1.45; }
.spend-track { position: relative; height: 44px; overflow: hidden; border: 1px solid #a9aaa4; background: repeating-linear-gradient(90deg, transparent 0, transparent calc(10% - 1px), rgba(16,37,60,.14) calc(10% - 1px), rgba(16,37,60,.14) 10%); }
#activity-spend-fill { position: absolute; inset: 0; background: var(--blue); transform: scaleX(var(--fill, 0)); transform-origin: left; transition: transform 620ms cubic-bezier(.16, 1, .3, 1); }
#activity-cap-marker { position: absolute; inset-block: 0; width: 2px; background: var(--orange); z-index: 2; }
.track-labels { display: flex; justify-content: space-between; margin-top: 8px; color: var(--slate); font: 10px/1 var(--display); }
.activity-calibrations { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; }
.activity-calibrations div { padding-left: 14px; border-left: 1px solid #b8b8b0; }
.activity-calibrations dt { color: var(--slate); font: 600 9px/1 var(--display); letter-spacing: .07em; text-transform: uppercase; }
.activity-calibrations dd { margin: 9px 0 0; font: 620 14px/1.2 var(--display); }
.attempt-ledger { min-width: 0; }
.attempt-head,
.attempt-row { display: grid; grid-template-columns: 105px minmax(220px, 1fr) minmax(120px, .7fr) 90px 84px; gap: 18px; align-items: center; }
.attempt-head { min-height: 42px; padding: 0 clamp(24px, 4vw, 58px); border-block: 1px solid var(--line); color: var(--slate); font: 600 9px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.attempt-row { min-height: 70px; padding: 0 clamp(24px, 4vw, 58px); border-bottom: 1px solid var(--fine); }
.attempt-row > span:nth-child(2) strong { display: block; font-size: 14px; }
.attempt-row small { display: block; margin-top: 4px; color: var(--slate); font-size: 11px; }
.attempt-row code { color: var(--slate); font: 10px/1.4 "Cascadia Code", Consolas, monospace; }
.attempt-row > strong { text-align: right; font: 650 17px/1 var(--display); }
.attempt-row time { color: var(--slate); font-size: 11px; text-align: right; }
.attempt-decision { display: flex; align-items: center; gap: 9px; font: 650 10px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; }
.attempt-decision.allowed { color: var(--green); }
.attempt-decision.denied { color: #b7362e; }
.activity-empty { min-height: 330px; padding: 60px 30px; display: grid; place-content: center; text-align: center; }
.activity-empty svg { width: 120px; margin: 0 auto 20px; fill: none; stroke: var(--blue); stroke-width: 1.5; }
.activity-empty strong { font: 650 19px/1.2 var(--display); }
.activity-empty p { max-width: 48ch; margin: 10px auto 8px; color: var(--slate); font-size: 12px; line-height: 1.55; }

/* Create drawer */
.create-drawer { position: fixed; z-index: 12; inset: 0 0 0 auto; width: min(430px, 100%); overflow-y: auto; background: var(--panel); box-shadow: -16px 0 40px rgba(16,37,60,.16); }
.grant-drawer { position: fixed; z-index: 12; inset: 0 0 0 auto; width: min(470px, 100%); overflow-y: auto; background: var(--panel); box-shadow: -16px 0 40px rgba(16,37,60,.16); }
.drawer-heading { padding: 28px 30px 24px; border-bottom: 1px solid var(--line); }
.drawer-heading span { color: var(--slate); font: 600 9px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.drawer-heading h2 { margin: 9px 0 0; font: 650 25px/1.1 var(--display); }
.drawer-heading button { width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; cursor: pointer; display: grid; place-items: center; }
.drawer-heading svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.create-drawer .control-form { padding: 28px 30px 40px; }
.grant-drawer .control-form { padding: 28px 30px 40px; }
.grant-chain-readout { padding: 17px 0; display: grid; grid-template-columns: 1fr auto; align-items: end; border-block: 1px solid var(--line); }
.grant-chain-readout span { grid-column: 1 / -1; color: var(--slate); font: 600 9px/1 var(--display); letter-spacing: .07em; text-transform: uppercase; }
.grant-chain-readout strong { margin-top: 9px; font: 650 20px/1 var(--display); }
.grant-chain-readout small { color: var(--slate); font-size: 11px; }
.drawer-scrim { position: fixed; z-index: 11; inset: 0; background: rgba(16,37,60,.38); }

@media (max-width: 1120px) {
  .onboarding-shell { grid-template-columns: 226px minmax(0, 1fr); }
  .onboarding-step { grid-template-columns: 1fr; }
  .step-introduction { min-height: 520px; }
  .commissioning-form { box-shadow: none; }
  .product-shell { grid-template-columns: 210px minmax(0, 1fr); }
  .controls-workbench { grid-template-columns: 1fr; }
  .control-inspector { border-left: 0; border-top: 1px solid var(--line); }
  .empty-inspector { min-height: 320px; }
  .spend-calibration { grid-template-columns: 1fr 1.4fr; }
  .activity-calibrations { grid-column: 1 / -1; }
}

.login-body { min-height: 100vh; overflow: auto; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(300px, .72fr) minmax(520px, 1.28fr); background: var(--paper); }
.login-context { min-height: 100vh; padding: clamp(28px, 4vw, 58px); display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); }
.login-context > div { max-width: 520px; }
.login-kicker { display: flex; align-items: center; gap: 10px; color: #9f3f12; font: 650 10px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.login-bench .form-heading > span { color: var(--slate); }
.login-context h1 { margin: 22px 0 16px; color: var(--ink); font: 650 clamp(46px, 6vw, 82px)/.92 var(--display); letter-spacing: -.055em; }
.login-context p { max-width: 560px; color: var(--slate); font-size: 14px; line-height: 1.65; }
.login-boundary { padding-top: 18px; border-top: 1px solid var(--line); font-size: 11px !important; }
.login-bench { min-height: 100vh; display: grid; grid-template-rows: 64px 1fr; }
.login-bench > header { padding: 0 clamp(24px, 4vw, 58px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); color: var(--slate); font: 600 10px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.login-bench > header a { color: var(--blue); }
.login-form-wrap { width: min(620px, calc(100% - 48px)); margin: auto; }
.login-form-wrap form { display: grid; gap: 16px; margin-top: 34px; }
.login-form-wrap #bootstrap-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.login-form-wrap #bootstrap-fields[hidden] { display: none; }
.login-form-wrap label { display: grid; gap: 8px; color: var(--ink); font: 620 11px/1.2 var(--display); }
.login-form-wrap input { min-height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: 0; background: #f8f7f2; color: var(--ink); font: 14px/1 var(--display); }
.login-form-wrap input:focus { outline: 2px solid var(--blue); outline-offset: 2px; }
.login-form-wrap button { margin-top: 8px; justify-self: start; min-width: 180px; }
.login-note { margin-top: 22px; color: var(--slate); font-size: 11px; }

@media (max-width: 760px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-context { min-height: 46vh; border-right: 0; border-bottom: 1px solid var(--line); }
  .login-bench { min-height: 54vh; }
  .login-form-wrap { padding: 48px 0; }
  .login-form-wrap #bootstrap-fields { grid-template-columns: 1fr; }
  .onboarding-shell,
  .product-shell { display: block; }
  .commissioning-rail,
  .product-index { position: relative; width: 100%; height: auto; min-height: auto; padding: 18px; }
  .commissioning-steps { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .commissioning-steps li { min-height: auto; grid-template-columns: 30px 1fr; }
  .commissioning-steps li::after { top: 15px; right: -9px; bottom: auto; left: 31px; width: calc(100% - 18px); }
  .commissioning-steps small { display: none; }
  .rail-boundary { margin-top: 22px; }
  .workbench-header,
  .product-topbar { height: 64px; padding-inline: 20px; }
  .onboarding-step { min-height: auto; }
  .step-introduction { min-height: auto; padding: 50px 22px; }
  .step-introduction h1 { font-size: 48px; }
  .step-introduction > p:not(.step-count) { font-size: 14px; }
  .authority-preview { margin-top: 44px; }
  .commissioning-form,
  .connection-bench { padding: 42px 22px; }
  .created-control-summary { margin-top: 40px; }
  .connection-flow { margin-top: 38px; }
  .cli-provenance { grid-template-columns: 1fr; }
  .cli-source-actions { grid-row: 2; }
  .cli-source-actions a { flex: 1; }
  .cli-fingerprint { grid-row: 3; }
  .product-navigation { display: flex; margin-top: 24px; overflow-x: auto; }
  .product-navigation button { min-width: 140px; }
  .index-controls { display: none; }
  .product-index .rail-boundary { display: none; }
  .view-heading { min-height: auto; padding: 30px 20px 24px; align-items: flex-start; }
  .view-heading h1 { font-size: 32px; }
  .view-heading p { font-size: 12px; }
  .summary-strip { grid-template-columns: 1fr 1fr; }
  .summary-strip > div:nth-child(2) { border-right: 0; }
  .summary-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .ledger-head { display: none; }
  .control-ledger-row { grid-template-columns: 1.4fr .7fr .7fr; padding: 15px 20px; gap: 12px; }
  .control-ledger-row > span:nth-child(4),
  .control-ledger-row time { display: none; }
  .control-ledger-row > span:nth-child(2)::before,
  .control-ledger-row > span:nth-child(3)::before { display: block; margin-bottom: 5px; color: var(--slate); font: 600 11px/1 var(--display); letter-spacing: .045em; text-transform: uppercase; }
  .control-ledger-row > span:nth-child(2)::before { content: "State"; }
  .control-ledger-row > span:nth-child(3)::before { content: "Observed"; }
  .control-inspector { min-height: 0; }
  .activity-heading { display: block; }
  .activity-selector { margin-top: 24px; }
  .spend-calibration { grid-template-columns: 1fr; padding: 28px 20px; }
  .activity-calibrations { grid-column: auto; }
  .attempt-head { display: none; }
  .attempt-row { grid-template-columns: 96px 1fr auto; padding: 15px 20px; gap: 12px; }
  .attempt-row code { display: none; }
  .attempt-row time { grid-column: 2; grid-row: 2; text-align: left; }
  .attempt-row > strong { grid-column: 3; grid-row: 1 / span 2; }
}

@media (max-width: 480px) {
  .field-pair { grid-template-columns: 1fr; }
  .commissioning-steps strong { font-size: 12px; }
  .authority-preview,
  .connection-flow { font-size: 11px; }
  .authority-preview strong,
  .connection-flow strong { padding-inline: 8px; }
  .connection-flow { display: grid; grid-template-columns: 1fr; gap: 8px; text-align: center; }
  .connection-flow i { width: 1px; height: 18px; min-width: 0; margin: 0 auto; }
  .connection-flow i::after { right: -2px; top: auto; bottom: 0; transform: rotate(135deg); }
  .created-control-summary { grid-template-columns: 1fr; }
  .created-control-summary div:nth-child(odd) { border-right: 0; }
  .created-control-summary div:nth-child(even) { padding-left: 0; }
  .view-heading { display: block; }
  .view-heading .instrument-button { width: 100%; margin-top: 22px; }
  .summary-strip strong { font-size: 19px; }
  .inspector-actions { grid-template-columns: 1fr; }
  .product-toast { right: 16px; bottom: 16px; left: 16px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .product-body *, .product-body *::before, .product-body *::after { transition-duration: .01ms !important; }
}
