:root {
  --nav: #102630;
  --paper: #f7f7f2;
  --white: #fff;
  --ink: #172e36;
  --muted: #58666a;
  --line: #dce1dc;
  --teal: #006e62;
  --green: #006e62;
  --amber: #825609;
  --soft: #edf4ef;
  --amber-soft: #fbf3e3;
  --blue: #365665;
  font-family: "Lato", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}
button,
input,
select,
textarea {
  font-family: "Lato", Arial, sans-serif;
  font-size: inherit;
  line-height: inherit;
}
option,
optgroup {
  font-family: "Lato", Arial, sans-serif;
}
button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
a,
summary {
  cursor: pointer;
}
button,
a {
  transition:
    background-color 0.18s,
    color 0.18s,
    border-color 0.18s;
}
button {
  color: inherit;
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
a {
  color: var(--teal);
}
button:hover {
  background: #eaf0eb;
}
a:hover {
  text-decoration: underline;
}
:focus-visible {
  outline: 3px solid #a66b0b;
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -1.2px;
  font-weight: 650;
}
h2 {
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: -0.35px;
  font-weight: 650;
}
h3 {
  font-size: 17px;
  margin-bottom: 16px;
}
small {
  font-size: 12px;
}
.icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.65;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
  vertical-align: middle;
}
.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.app {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  min-height: 100dvh;
}
.rail {
  position: sticky;
  top: 0;
  height: 100dvh;
  background: var(--nav);
  color: #fff;
  padding: 38px 18px 20px;
  display: flex;
  flex-direction: column;
}
.brand {
  padding: 0 16px 44px;
}
.brand img {
  width: 144px;
  height: 41px;
  object-fit: contain;
  object-position: left;
}
.brand > span {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  color: #bbc9ca;
  margin-top: 12px;
}
.workspace-label {
  color: #a8babc;
  font-size: 10px;
  letter-spacing: 1.4px;
  padding: 0 16px 14px;
}
.rail nav {
  display: grid;
  gap: 6px;
}
.workspace-tools {
  border-top: 1px solid #365059;
  margin-top: 18px;
  padding-top: 16px;
  display: grid;
  gap: 6px;
}
.workspace-tools-label {
  color: #8fa6a9;
  font-size: 9px;
  letter-spacing: 1.4px;
  padding: 0 16px 5px;
}
.workspace-tool {
  color: #c9d5d7;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 14px;
  text-decoration: none;
  border-left: 3px solid transparent;
}
.workspace-tool:hover,
.workspace-tool:focus-visible {
  background: #28414a;
  color: #fff;
}
.workspace-tool .external-icon {
  width: 14px;
  height: 14px;
  margin-left: auto;
}
.tab-btn {
  background: transparent;
  color: #c9d5d7;
  border: 0;
  min-height: 49px;
  padding: 12px 16px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  font-size: 14px;
  border-left: 3px solid transparent;
  width: 100%;
  line-height: 20px;
  white-space: nowrap;
}
.tab-btn.active {
  background: #233c44;
  color: #fff;
  border-left-color: #72cab0;
}
.tab-btn:hover {
  background: #28414a;
  color: white;
}
.rail-bottom {
  margin-top: auto;
}
.scope-note {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #b8ccce;
  font-size: 12px;
  line-height: 1.6;
  padding: 22px 15px;
}
.account {
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid #365059;
  padding: 22px 6px 0;
}
.avatar {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid #597078;
  border-radius: 50%;
  font-size: 11px;
}
.account strong {
  font-size: 13px;
  font-weight: 550;
}
.account small {
  display: block;
  color: #b6c6c9;
  font-size: 10px;
  margin-top: 3px;
}
.workspace {
  min-width: 0;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  background: #fcfcf8;
}
.topbar #partnerName {
  margin-right: auto;
  font-weight: 600;
}
.demo-label {
  font-size: 11px;
  border: 1px solid #d0d9d1;
  border-radius: 4px;
  padding: 4px 8px;
  color: #526258;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
}
.topbar .icon-btn {
  border: 0;
}
main {
  max-width: 1510px;
  margin: auto;
  padding: 35px 40px 0;
}
.impact-ribbon {
  display: flex; align-items: center; gap: 12px; min-height: 64px;
  background: var(--nav); color: #fff; border-radius: 8px;
  padding: 8px 12px 8px 20px; margin-bottom: 24px;
}
.impact-ribbon[hidden], .impact-controls button[hidden] { display: none; }
.impact-viewport { min-width: 0; flex: 1; }
.impact-fact { margin: 0; color: #fff; font-size: 14px; line-height: 1.5; animation: impact-enter 220ms ease-out; }
.impact-fact span { display: inline-block; color: #83ddc9; font-size: 17px; font-weight: 700; letter-spacing: 0; margin-right: 16px; }
.impact-fact strong { font-size: 17px; color: #fff; }
.impact-controls { display: flex; flex: none; gap: 2px; }
.impact-control, .impact-method { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: #fff; }
.impact-control:hover, .impact-method:hover, .impact-control[aria-pressed=true] { background: #36515a; }
@keyframes impact-enter { from { opacity: .25; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
.methodology-copy {
  padding: 22px 24px 26px;
  display: grid;
  gap: 16px;
  color: var(--muted);
  line-height: 1.7;
}
.methodology-copy a {
  width: fit-content;
}
.richard-preview {
  padding: 24px;
  display: grid;
  gap: 20px;
  overflow-y: auto;
}
.richard-preview-title { display: grid; gap: 4px; }
.richard-preview-title .eyebrow { margin: 0; }
.richard-preview-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #b8d8cf;
  border-radius: 7px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.richard-preview-notice .icon { flex: none; color: var(--teal); margin-top: 2px; }
.richard-preview-notice strong { display: block; color: var(--ink); font-size: 13px; }
.richard-preview-notice p { margin-top: 3px; }
.richard-unit-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.richard-unit-heading > div > span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.richard-unit-heading strong { font-size: 18px; }
.richard-context-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--line);
}
.richard-context-grid > div { min-width: 0; padding: 13px 14px; background: #fff; }
.richard-context-grid .wide { grid-column: 1 / -1; }
.richard-context-grid dt {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .7px;
}
.richard-context-grid dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.45;
}
.richard-question { display: grid; gap: 8px; color: var(--ink); font-size: 12px; font-weight: 600; }
.richard-question textarea { resize: vertical; min-height: 116px; line-height: 1.5; background: #f8faf7; }
.richard-privacy { color: var(--muted); font-size: 11px; line-height: 1.55; }
.richard-preview-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.richard-preview-actions button:disabled { cursor: not-allowed; opacity: .55; }
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 28px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--teal);
  margin-bottom: 9px;
}
.page-intro {
  font-size: 14px;
  color: var(--muted);
  margin-top: 10px;
}
.text-btn,
.small-btn,
.seg-btn,
.action-menu-trigger,
.link-btn,
.doc-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid #c9d3cd;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.primary,
.primary-action {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}
.primary:hover,
.primary-action:hover {
  background: #00564d;
  color: white;
}
.plain-btn {
  border: 0;
  background: transparent;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  min-height: 44px;
  padding: 8px;
}
.tab-page:not(.active) {
  display: none !important;
}
.health-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid #e2d5b9;
  background: #fcf8ee;
  border-radius: 8px;
  padding: 20px 22px;
}
.health-icon {
  display: grid;
  place-items: center;
  color: var(--amber);
  border: 1px solid #c6a565;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  flex: none;
}
.health-banner h2 {
  font-size: 18px;
}
.health-banner p {
  font-size: 12px;
  color: #665b43;
  margin-top: 3px;
}
.health-banner .text-btn {
  margin-left: auto;
  flex: none;
  background: transparent;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 22px 0 25px;
}
.metric {
  display: flex;
  align-items: center;
  gap: 13px;
  border-right: 1px solid var(--line);
  padding-left: 24px;
}
.metric:first-child {
  padding-left: 4px;
}
.metric:last-child {
  border: 0;
}
.metric strong {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.6px;
}
.metric span {
  font-size: 12px;
  color: var(--muted);
}
.overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr);
  gap: 22px;
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 9px;
  min-width: 0;
}
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 23px 24px 19px;
}
.panel-title .eyebrow {
  margin-bottom: 5px;
}
.panel-title p.muted {
  margin-top: 5px;
}
.overview-unit {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 19px 24px;
  border-top: 1px solid #edf0eb;
}
.equipment-icon {
  background: var(--soft);
  color: var(--teal);
  width: 42px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 5px;
}
.equipment-icon .icon {
  width: 23px;
  height: 26px;
}
.overview-unit strong {
  font-size: 14px;
  font-weight: 600;
}
.overview-unit small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.overview-unit .unit-reading {
  text-align: right;
  font-size: 19px;
  font-weight: 600;
}
.unit-reading small {
  font-size: 10px;
  font-weight: 400;
}
.overview-unit .status-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.dot {
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
  display: inline-block;
}
.dot.amber {
  background: #946006;
}
.footer-note {
  padding: 14px 24px;
  font-size: 11px;
  color: var(--muted);
  background: #f9faf6;
  border-radius: 0 0 9px 9px;
  border-top: 1px solid var(--line);
}
.surge-panel {
  padding: 26px;
  background: #edf3ed;
  border: 1px solid #cfdcd0;
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.surge-mark {
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 17px;
}
.surge-panel h2 {
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.6px;
}
.surge-panel > p {
  font-size: 13px;
  color: #4f6257;
  margin: 12px 0 20px;
  max-width: 33ch;
}
.surge-panel > .text-btn {
  width: 100%;
  justify-content: space-between;
}
.surge-prompts {
  width: 100%;
  margin-top: 13px;
}
.surge-prompts button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  gap: 8px;
  font-size: 12px;
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid #d3ddd2;
  background: transparent;
  width: 100%;
  color: #355344;
}
.surge-panel .support-availability {
  font-size: 11px;
  line-height: 1.5;
  margin: 16px 0 0;
}
.resource-panel {
  padding: 24px;
}
.resource-panel > h2 {
  margin-bottom: 8px;
}
.resource-link {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  min-height: 78px;
  width: 100%;
  padding: 13px 0;
  text-align: left;
}
.resource-link > span {
  flex: 1;
  min-width: 0;
}
.resource-link strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
.resource-link small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.resource-link .icon {
  color: var(--teal);
}
.mobile-workspace-tool {
  display: none;
}
.resource-panel > p.muted {
  margin-top: 17px;
  font-size: 12px;
}
.muted,
.serial {
  color: var(--muted);
  font-size: 13px;
}
.agenda-item {
  padding: 17px 24px;
  border-top: 1px solid #edf0eb;
  display: flex;
  align-items: center;
  gap: 13px;
}
.date-block {
  width: 43px;
  flex: none;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
  line-height: 1.3;
  text-transform: uppercase;
}
.date-block strong {
  display: block;
  font-size: 21px;
  color: var(--ink);
  font-weight: 500;
}
.agenda-copy {
  min-width: 0;
  flex: 1;
}
.agenda-copy strong {
  font-size: 13px;
  font-weight: 600;
  display: block;
}
.agenda-copy small {
  font-size: 11px;
  color: var(--muted);
}
.agenda-item .pill {
  margin-left: auto;
}
.agenda-foot {
  padding: 14px 24px;
  color: var(--muted);
  font-size: 11px;
  border-top: 1px solid var(--line);
}
.pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 5px;
  border-radius: 4px;
  background: #eaf3ed;
  color: #126146;
  padding: 4px 8px;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 600;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.pill.amber {
  background: var(--amber-soft);
  color: var(--amber);
}
.pill.blue {
  background: #edf1f4;
  color: #3c596a;
}
.workspace-footer {
  padding: 29px 0 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 10px;
  color: var(--muted);
}
.fleet-group {
  border-top: 1px solid var(--line);
  padding: 0 24px;
}
.fleet-group summary {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}
.fleet-group summary:before {
  content: "›";
  font-size: 20px;
  transform: rotate(0deg);
}
.fleet-group[open] summary:before {
  transform: rotate(90deg);
}
.fleet-count,
.count {
  font-size: 11px;
  border-radius: 4px;
  background: #f1f3ee;
  padding: 2px 7px;
  margin-left: auto;
}
.fleet-board {
  display: grid;
  gap: 12px;
  padding-bottom: 20px;
}
.fleet-row {
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  grid-template-columns:
    minmax(170px, 1.6fr) minmax(100px, 0.8fr) minmax(100px, 1fr)
    auto;
  gap: 18px;
  padding: 20px;
  align-items: start;
}
.fleet-cell {
  min-width: 0;
}
.fleet-cell strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}
.fleet-cell > span:not(.pill) {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.fleet-cell.actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-self: center;
}
.action-menu {
  position: relative;
}
.action-menu-panel {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  min-width: 210px;
  border: 1px solid #c8d3cc;
  border-radius: 7px;
  padding: 6px;
  background: white;
  box-shadow: 0 8px 24px #10263022;
}
.action-menu.open .action-menu-panel {
  display: grid;
}
.menu-action {
  border: 0;
  background: white;
  text-align: left;
  padding: 10px 12px;
  min-height: 44px;
  font-size: 13px;
  border-radius: 4px;
}
.range-buttons {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 6px;
  padding: 0 24px 20px;
}
.range-buttons .seg-btn { min-height: 44px; line-height: 20px; white-space: nowrap; }
.tab-btn .icon { flex: 0 0 20px; }
.link-row { display: flex; align-items: stretch; flex-wrap: wrap; gap: 8px; }
.link-row > button { margin: 0; }
.seg-btn.active {
  background: var(--nav);
  color: white;
  border-color: var(--nav);
}
.programme-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  margin-top: 20px;
  max-width: 85ch;
}
.project-list {
  margin-top: 22px;
}
.empty-state,
.empty-lane {
  padding: 24px;
  color: var(--muted);
  font-size: 13px;
}
.empty-state strong {
  color: var(--ink);
  font-size: 15px;
  display: block;
  margin-bottom: 6px;
}
.empty-state .text-btn {
  margin-top: 15px;
}
.section {
  padding: 24px;
  border-top: 1px solid var(--line);
}
#tab-assumptions > .panel > h2 {
  padding: 24px;
}
.chat-box {
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}
.chat-status {
  padding: 12px 16px;
  background: #f7f8f4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}
.chat-messages {
  height: 280px;
  overflow: auto;
  padding: 22px;
  overscroll-behavior: contain;
}
.chat-messages > .muted {
  max-width: 65ch;
  line-height: 1.8;
}
.chat-message {
  border: 1px solid var(--line);
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
  max-width: 85%;
}
.chat-message strong {
  display: block;
  color: var(--teal);
  font-size: 12px;
  margin-bottom: 5px;
}
.chat-compose {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 16px;
  border-top: 1px solid var(--line);
  background: #fcfcf9;
}
.chat-compose textarea {
  min-height: 74px;
  flex: 1;
  resize: vertical;
}
.typing-indicator {
  display: none;
  padding: 12px 20px;
  color: var(--muted);
  font-size: 12px;
}
.typing-indicator.active {
  display: flex;
}
.typing-dots {
  display: none;
}
.availability-form,
.add-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}
.availability-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  min-width: 0;
}
input,
select,
textarea {
  border: 1px solid #b9c7bf;
  background: #fff;
  color: var(--ink);
  border-radius: 5px;
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
  min-width: 0;
  font-size: 14px;
}
textarea {
  line-height: 1.6;
  min-height: 88px;
  resize: vertical;
}
input::placeholder,
textarea::placeholder {
  color: #68746e;
  opacity: 1;
}
.wide {
  grid-column: 1/-1;
}
.result {
  padding: 18px;
  margin-top: 20px;
  border: 1px solid #d8e2d8;
  border-radius: 6px;
  background: #f4f7f1;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.result .serial {
  line-height: 1.7;
}
.request-history {
  display: grid;
  gap: 12px;
}
.action-card,
.job-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.unit-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}
.unit-head strong {
  font-size: 15px;
}
.unit-head .pill {
  flex: none;
}
.job-summary-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 12px;
  color: var(--muted);
  margin: 15px 0;
}
.allocation-panel {
  background: #f6f8f3;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
  margin: 16px 0;
}
.allocation-title {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 12px;
  margin-bottom: 14px;
}
.job-meta-grid,
.job-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.job-name-field {
  grid-column: 1/-1;
}
.unit-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.job-card details {
  margin-top: 15px;
}
.job-card summary {
  min-height: 44px;
  font-size: 13px;
  padding: 10px 0;
}
.job-card details .muted,
.job-card details .serial {
  margin: 8px 0;
}
#pipelineJobs {
  padding: 0 24px 24px;
  display: grid;
  gap: 20px;
}
.docs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding: 0 24px 24px;
}
.doc-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.doc-card img {
  width: 100%;
  height: 160px;
  object-fit: contain;
}
.doc-body strong {
  font-size: 15px;
}
.doc-body p {
  font-size: 12px;
  color: var(--muted);
  margin: 9px 0 15px;
}
.doc-link {
  color: var(--teal);
}
.pending-guides {
  margin-top: 22px;
  padding: 24px;
}
.pending-guides > p {
  margin: 8px 0 22px;
}
.pending-guide {
  padding: 17px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.pending-guide .pill {
  flex: none;
}
dialog {
  width: min(600px, calc(100% - 32px));
  max-height: calc(100dvh - 40px);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0;
  color: var(--ink);
  box-shadow: 0 15px 80px #10263033;
}
dialog::backdrop {
  background: #10263088;
}
.modal-head {
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.add-form {
  padding: 24px;
}
.checkbox-line {
  flex-direction: row;
  align-items: center;
  min-height: 44px;
}
.checkbox-line input {
  width: 22px;
  min-height: 22px;
  margin: 11px;
}
.save-status {
  color: var(--amber);
  font-size: 13px;
}
.save-status:empty {
  display: none;
}
#pageError {
  padding: 15px 18px;
  border: 1px solid #ba8d41;
  color: #734900;
  background: var(--amber-soft);
  margin-bottom: 22px;
  border-radius: 6px;
  font-size: 13px;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  background: var(--nav);
  color: white;
  padding: 16px 22px;
  border-radius: 7px;
  z-index: 60;
  font-size: 13px;
}
.skip-link {
  position: fixed;
  top: 5px;
  left: 5px;
  padding: 12px;
  background: white;
  z-index: 99;
  transform: translateY(-150%);
}
.skip-link:focus {
  transform: none;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1550px) {
  main {
    padding-top: 42px;
  }
  .overview-layout {
    gap: 26px;
  }
  .overview-unit {
    padding-top: 25px;
    padding-bottom: 25px;
  }
}
@media (max-width: 1200px) {
  .app {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .rail {
    padding-inline: 12px;
  }
  .workspace-tool { padding-inline: 10px; gap: 10px; font-size: 13px; line-height: 20px; white-space: nowrap; }
  .workspace-tool .icon { flex-shrink: 0; }
  .brand {
    padding-inline: 12px;
  }
  .brand img {
    width: 135px;
  }
  .topbar {
    padding-inline: 28px;
  }
  main {
    padding: 28px 28px 0;
  }
  .overview-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(255px, 1fr);
    gap: 16px;
  }
  .overview-unit {
    padding: 18px;
    gap: 10px;
  }
  .panel-title {
    padding: 20px 18px;
  }
  .surge-panel {
    padding: 22px;
  }
  .fleet-row {
    grid-template-columns: minmax(130px, 1.5fr) minmax(100px, 1fr) auto;
  }
  .fleet-row .actions {
    grid-column: 1/-1;
    justify-content: flex-start;
  }
  .docs-grid {
    grid-template-columns: 1fr;
  }
  .availability-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .app {
    grid-template-columns: 174px minmax(0, 1fr);
  }
  .brand img {
    width: 124px;
  }
  .tab-btn {
    padding-inline: 10px;
    gap: 10px;
    font-size: 13px;
  }
  .workspace-label {
    padding-left: 10px;
  }
  .account {
    gap: 7px;
  }
  .account small {
    font-size: 9px;
  }
  .overview-layout {
    grid-template-columns: 1fr;
  }
  .surge-panel {
    grid-row: 2;
  }
  .surge-panel h2 br {
    display: none;
  }
  .surge-panel > p {
    max-width: none;
  }
  .surge-panel > .text-btn {
    max-width: 320px;
  }
  .surge-prompts {
    display: flex;
    gap: 20px;
  }
  .health-banner {
    flex-wrap: wrap;
    padding: 18px;
  }
  .health-banner > div {
    flex: 1;
  }
  .health-banner .text-btn {
    margin-left: 63px;
  }
  .metric {
    padding-left: 14px;
    gap: 8px;
  }
  .metric strong {
    font-size: 25px;
  }
  .metric span {
    font-size: 11px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading > .text-btn {
    font-size: 0;
    padding: 10px;
  }
  .page-heading > .text-btn .icon {
    width: 20px;
  }
  h1 {
    font-size: 30px;
  }
  .fleet-row {
    grid-template-columns: 1fr 1fr;
  }
  .fleet-row .actions {
    grid-column: 1/-1;
  }
  .workspace-footer {
    flex-direction: column;
    gap: 6px;
  }
  .unit-head {
    flex-wrap: wrap;
  }
}
@media (max-width: 600px) {
  body {
    font-size: 16px;
  }
  .app {
    display: block;
  }
  .rail {
    height: auto;
    position: fixed;
    inset: auto 0 0;
    z-index: 40;
    padding: 0;
    background: var(--nav);
    border-top: 1px solid #33505a;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .brand,
  .workspace-label,
  .workspace-tools,
  .rail-bottom {
    display: none;
  }
  .rail nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
  }
  .tab-btn {
    min-height: 68px;
    height: 68px;
    padding: 10px 2px 8px;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
    border: 0;
    border-top: 3px solid transparent;
    border-radius: 0;
    font-size: 10px;
    line-height: 14px;
  }
  .tab-btn.active {
    border-top-color: #72cab0;
    background: #233c44;
  }
  .tab-btn .icon {
    width: 21px;
    height: 21px;
    flex-basis: 21px;
  }
  .mobile-workspace-tool {
    display: flex;
  }
  .topbar {
    height: 60px;
    padding: 0 18px;
    gap: 8px;
  }
  .topbar #partnerName {
    font-size: 14px;
  }
  .demo-label {
    font-size: 9px;
    padding: 3px 5px;
  }
  .topbar .icon-btn {
    min-width: 44px;
  }
  main {
    padding: 27px 18px 84px;
  }
  .impact-ribbon { padding: 8px 6px 8px 12px; gap: 4px; margin: -5px 0 20px; }
  .impact-fact { font-size: 11px; }
  .impact-fact span { display: block; font-size: 14px; margin: 0 0 2px; }
  .impact-fact strong { font-size: 14px; }
  .impact-controls { gap: 0; }
  .page-heading {
    margin-bottom: 23px;
    gap: 8px;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 1.1px;
  }
  .page-heading .eyebrow {
    max-width: 220px;
  }
  .page-intro {
    font-size: 13px;
    max-width: 27ch;
    line-height: 1.65;
  }
  h1 {
    font-size: 29px;
    letter-spacing: -0.9px;
  }
  .page-heading > .text-btn {
    margin-top: 20px;
  }
  .health-banner {
    gap: 12px;
    padding: 18px;
  }
  .health-banner h2 {
    font-size: 16px;
  }
  .health-banner p {
    font-size: 12px;
    line-height: 1.65;
  }
  .health-icon {
    width: 38px;
    height: 38px;
    align-self: flex-start;
  }
  .health-banner .text-btn {
    margin-left: 50px;
    font-size: 12px;
    min-height: 44px;
  }
  .metrics {
    padding: 23px 0;
  }
  .metric {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 17px;
    gap: 5px;
  }
  .metric:first-child {
    padding-left: 4px;
  }
  .metric strong {
    font-size: 26px;
  }
  .metric span {
    font-size: 10px;
  }
  .overview-layout {
    gap: 18px;
  }
  .panel-title {
    padding: 20px 18px 16px;
  }
  h2 {
    font-size: 18px;
  }
  .plain-btn {
    font-size: 11px;
    gap: 4px;
    padding: 6px;
  }
  .overview-unit {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    padding: 18px 14px;
    gap: 10px;
  }
  .equipment-icon {
    width: 34px;
    height: 44px;
  }
  .overview-unit strong {
    font-size: 13px;
  }
  .overview-unit small {
    font-size: 10px;
  }
  .overview-unit .unit-reading {
    font-size: 18px;
  }
  .overview-unit .status-line {
    font-size: 10px;
  }
  .footer-note {
    padding: 14px 18px;
    font-size: 10px;
    line-height: 1.7;
  }
  .surge-panel {
    padding: 23px;
  }
  .surge-panel h2 {
    font-size: 25px;
  }
  .surge-panel > p {
    font-size: 14px;
  }
  .surge-prompts {
    display: block;
  }
  .surge-prompts button {
    font-size: 12px;
  }
  .agenda-item {
    padding: 17px 16px;
    gap: 9px;
    flex-wrap: wrap;
  }
  .agenda-copy strong {
    font-size: 12px;
  }
  .agenda-item .pill {
    font-size: 10px;
    max-width: 118px;
  }
  .date-block {
    width: 34px;
  }
  .resource-panel {
    padding: 22px 18px;
  }
  .resource-link small {
    font-size: 11px;
  }
  .workspace-footer {
    font-size: 10px;
    line-height: 1.7;
    padding-top: 25px;
  }
  .fleet-group {
    padding: 0 16px;
  }
  .fleet-row {
    padding: 16px;
    gap: 18px 12px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .fleet-row .fleet-cell:first-child {
    grid-column: 1/-1;
  }
  .fleet-row .actions {
    justify-content: flex-start;
  }
  .action-menu-panel {
    right: auto;
    left: 0;
    min-width: 185px;
    max-width: 210px;
  }
  .panel-title {
    flex-wrap: wrap;
  }
  .section {
    padding: 20px 16px;
  }
  .chat-status {
    align-items: flex-start;
  }
  .chat-messages {
    padding: 16px;
    height: 260px;
  }
  .chat-message {
    max-width: 100%;
  }
  .chat-compose {
    padding: 12px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .chat-compose textarea {
    flex-basis: 100%;
    font-size: 16px;
  }
  .chat-compose button {
    margin-left: auto;
  }
  .availability-form,
  .add-form {
    gap: 16px;
  }
  .availability-form button {
    grid-column: 1/-1;
  }
  input,
  select,
  textarea {
    font-size: 16px;
  }
  label {
    font-size: 12px;
  }
  .range-buttons {
    padding-inline: 18px;
    gap: 5px;
  }
  .seg-btn {
    font-size: 12px;
    padding: 9px 8px;
  }
  .job-meta-grid,
  .job-edit-grid {
    grid-template-columns: 1fr;
  }
  .allocation-title {
    flex-wrap: wrap;
  }
  .docs-grid {
    padding: 0 16px 20px;
    gap: 16px;
  }
  .doc-card {
    grid-template-columns: 75px minmax(0, 1fr);
    gap: 13px;
    padding: 16px;
  }
  .doc-card img {
    height: 130px;
  }
  .doc-body strong {
    font-size: 14px;
  }
  .doc-body p {
    font-size: 12px;
  }
  .pending-guides {
    padding: 22px 18px;
  }
  .pending-guide {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .modal-head {
    padding: 14px 18px;
  }
  .richard-preview { padding: 18px; gap: 16px; }
  .richard-context-grid { grid-template-columns: 1fr; }
  .richard-context-grid .wide { grid-column: auto; }
  .richard-preview-actions { display: grid; }
  .richard-preview-actions .text-btn { width: 100%; }
  .add-form {
    padding: 20px;
  }
  .checkbox-line input {
    flex: none;
  }
  #pipelineJobs {
    padding: 0 16px 20px;
  }
  .job-card {
    padding: 16px;
  }
  .toast {
    bottom: 86px;
  }
  #tab-assumptions > .panel > h2 {
    padding: 22px 18px;
  }
  .resource-link {
    min-height: 88px;
  }
  .health-banner .text-btn .icon {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
@media (max-width: 600px) {
  .health-banner {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: start;
  }
  .health-banner .text-btn {
    grid-column: 2;
    margin: 0;
    justify-self: start;
  }
  .health-banner > div {
    min-width: 0;
  }
  .page-heading > .text-btn {
    font-size: 0;
  }
  .request-history summary,
  .result summary {
    min-height: 44px;
    padding: 10px 0;
  }
  .fleet-cell > span.pill {
    margin-top: 9px;
  }
}
.request-history summary,
.result summary {
  min-height: 44px;
  padding: 10px 0;
}

.action-menu.open-up .action-menu-panel {
  top: auto;
  bottom: calc(100% + 6px);
}

.skip-link:not(:focus) {
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
}
