:root {
  font-family:Arial,'Segoe UI',sans-serif;
  color:#1f2b2e;
  background:#e9ece7;
  font-synthesis:none;
  --ink:#20363b;
  --muted:#718083;
  --line:#cbd3cc;
  --teal:#17685c;
  --nav:#1d2b2e;
  --mint:#e2eee7;
  --white:#fff
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  background:linear-gradient(90deg,#e5e9e3 0 222px,#f8f8f4 222px 100%)
}
button,input,select {
  font:inherit
}
button,a,input,select,summary {
  -webkit-tap-highlight-color:transparent
}
button,a,summary {
  touch-action:manipulation
}
button {
  cursor:pointer
}
button:disabled {
  cursor:not-allowed;
  opacity:.45
}
button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible {
  outline:3px solid #3fa98d;
  outline-offset:4px
}
button {
  color:inherit
}
a {
  text-decoration:none;
  color:inherit
}
svg {
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.6;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex-shrink:0
}
.sprite {
  position:absolute;
  width:0;
  height:0;
  overflow:hidden
}
.hidden {
  display:none!important
}
.sidebar {
  width:222px;
  background:var(--nav);
  color:#dcebe7;
  position:fixed;
  inset:0 auto 0 0;
  z-index:5;
  display:flex;
  flex-direction:column;
  padding:31px 19px 22px
}
.brand {
  display:flex;
  align-items:center;
  gap:10px;
  font-size:22px;
  letter-spacing:-.8px;
  font-weight:600
}
.brand-sub {
  display:block;
  font-size:7px;
  font-weight:500;
  letter-spacing:1.25px;
  margin-top:6px;
  color:#95afa9
}
.brand-mark {
  display:grid;
  grid-template-columns:9px 9px;
  gap:4px;
  transform:rotate(-15deg);
  margin:0 4px
}
.brand-mark i {
  display:block;
  width:9px;
  height:9px;
  border-radius:3px;
  background:#69c7a7
}
.brand-mark i:nth-child(2) {
  opacity:.35
}
.brand-mark i:nth-child(3) {
  opacity:.65
}
.workspace-tag {
  display:flex;
  gap:8px;
  align-items:center;
  border:1px solid #355056;
  border-radius:6px;
  padding:10px;
  font-size:10px;
  letter-spacing:.8px;
  margin:31px 0
}
.workspace-tag>span:last-child {
  color:#829d99;
  margin-left:auto;
  font-size:9px
}
.tiny-dot {
  display:inline-block;
  width:6px;
  height:6px;
  border-radius:100%;
  background:#64b899;
  flex-shrink:0
}
.nav-label {
  font-size:9px;
  color:#7d9997;
  letter-spacing:1.5px;
  margin:2px 12px 13px
}
nav {
  display:grid;
  gap:7px
}
.nav-item {
  display:flex;
  align-items:center;
  gap:12px;
  border:0;
  background:transparent;
  color:#a5bcb7;
  width:100%;
  text-align:left;
  padding:13px 12px;
  border-radius:7px;
  font-size:13px
}
.nav-item span {
  margin-left:auto;
  font-size:10px;
  opacity:.6
}
.nav-item svg {
  width:17px;
  height:17px
}
.nav-item:hover {
  background:#1b3c40;
  color:#fff
}
.nav-item.selected {
  background:#275049;
  color:#e8fff2;
  box-shadow:inset 2px 0 #85ceaf
}
.sidebar-bottom {
  margin-top:auto;
  padding:16px 12px 0
}
.field-emblem {
  margin:10px 0 12px
}
.field-emblem svg {
  width:160px;
  height:90px;
  color:#3b5e59;
  stroke-width:.7
}
.field-emblem .well {
  stroke:#79bba3;
  stroke-width:1.3
}
.sidebar-bottom b {
  font-size:13px;
  font-weight:500
}
.sidebar-bottom p {
  font-size:11px;
  color:#90a9a4;
  line-height:1.8
}
.sidebar-foot {
  display:flex;
  align-items:center;
  gap:8px;
  border-top:1px solid #2c484b;
  padding-top:20px;
  margin-top:23px;
  font-size:10px;
  color:#9cb5ae
}
.main-shell {
  margin-left:222px
}
.topbar {
  height:74px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 36px;
  border-bottom:1px solid var(--line);
  background:#f9faf9
}
.breadcrumb {
  font-size:12px;
  color:var(--muted)
}
.breadcrumb span {
  margin:0 13px;
  color:#a6b1af
}
.breadcrumb b {
  font-weight:500;
  color:var(--ink)
}
.top-actions {
  display:flex;
  align-items:center;
  gap:19px
}
.source-badge {
  font-size:11px;
  color:#657774;
  display:flex;
  align-items:center;
  gap:7px
}
.source-badge:before {
  content:'';
  width:6px;
  height:6px;
  border-radius:50%;
  background:#94a29d
}
.source-badge.live:before {
  background:var(--teal)
}
.icon-button {
  border:1px solid var(--line);
  background:#fff;
  border-radius:7px;
  width:34px;
  height:34px;
  display:grid;
  place-items:center
}
main {
  max-width:1610px;
  margin:auto;
  padding:31px 36px 0
}
.page-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:25px;
  gap:18px
}
.eyebrow {
  font-size:9px;
  font-weight:600;
  letter-spacing:1.6px;
  color:var(--teal)
}
h1 {
  font-size:31px;
  line-height:1.2;
  letter-spacing:-1.1px;
  font-weight:600;
  margin:9px 0 9px
}
p {
  font-size:13px;
  line-height:1.65;
  color:var(--muted);
  margin:8px 0
}
h2 {
  font-size:16px;
  font-weight:600;
  letter-spacing:-.25px;
  margin:0
}
h3 {
  font-size:17px;
  line-height:1.5;
  font-weight:500;
  letter-spacing:-.2px;
  margin:15px 0 8px
}
.button {
  border:1px solid transparent;
  border-radius:3px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  padding:10px 15px;
  font-size:11px;
  font-weight:600;
  min-height:38px;
  white-space:nowrap;
  transition:background .15s
}
.button svg {
  width:15px;
  height:15px
}
.secondary {
  background:#fff;
  border-color:#d7e0db;
  color:#405954
}
.secondary:hover {
  background:#edf4f0
}
.primary {
  background:var(--teal);
  color:#fff
}
.primary:hover {
  background:#106452
}
.danger {
  background:#f9eeee;
  border-color:#e1b6b1;
  color:#97483d
}
.primary span {
  margin-left:12px
}
.runbar {
  border:1px solid var(--line);
  border-radius:3px;
  background:#fcfcf8;
  display:flex;
  align-items:center;
  padding:15px 18px;
  gap:22px
}
.source-control {
  display:block;
  min-width:225px;
  max-width:360px
}
.source-control>span {
  display:block;
  font-size:8px;
  letter-spacing:1.3px;
  font-weight:600;
  color:#899691;
  margin-bottom:4px
}
.source-control select {
  border:none;
  max-width:100%;
  width:100%;
  font-size:12px;
  font-weight:600;
  background:#fff;
  padding:3px 20px 3px 0;
  color:var(--ink)
}
.run-context {
  display:flex;
  align-items:center;
  gap:10px;
  border-left:1px solid var(--line);
  padding-left:22px;
  min-width:0
}
.context-dot {
  width:7px;
  height:7px;
  background:var(--teal);
  border-radius:100%;
  flex-shrink:0
}
.run-context b {
  font-size:11px;
  font-weight:600
}
.run-context small {
  font-size:10px;
  color:var(--muted);
  display:block;
  margin-top:5px;
  line-height:1.4;
  max-width:330px
}
.run-actions {
  margin-left:auto;
  display:flex;
  gap:8px
}
.metrics {
  display:grid;
  grid-template-columns:1.18fr 1fr 1fr 1fr;
  gap:14px;
  margin:20px 0 29px
}
.metric {
  background:#fcfcf8;
  border:1px solid var(--line);
  border-radius:3px;
  padding:17px 19px
}
.metric:first-child {
  background:#e4eee7;
  border-color:#a9c2b1
}
.metric-label {
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:11px;
  color:#71827c;
  gap:8px
}
.metric-label svg {
  width:15px;
  height:15px;
  opacity:.6
}
.metric-label>span {
  font-size:16px;
  opacity:.6
}
.metric-value {
  font-size:31px;
  letter-spacing:-1.1px;
  font-weight:500;
  font-variant-numeric:tabular-nums;
  line-height:1.25;
  margin:10px 0
}
.metric-bottom {
  display:flex;
  justify-content:space-between;
  gap:7px;
  font-size:9px;
  color:#8a9590;
  flex-wrap:wrap
}
.metric-bottom b {
  color:var(--teal);
  font-weight:600
}
.section-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:15px;
  gap:12px
}
.section-heading>div {
  display:flex;
  gap:11px;
  align-items:center;
  flex-wrap:wrap
}
.section-number {
  font-size:10px;
  color:#99a59e;
  font-variant-numeric:tabular-nums
}
.tag {
  font-size:9px;
  border:1px solid #dce5df;
  border-radius:5px;
  padding:4px 7px;
  color:#708579;
  white-space:nowrap
}
.detail-switch {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:11px;
  color:#71807a;
  cursor:pointer;
  position:relative
}
.detail-switch input {
  position:absolute;
  opacity:0;
  width:31px;
  height:20px;
  left:0;
  margin:0
}
.detail-switch>span {
  width:28px;
  height:16px;
  border-radius:10px;
  background:#d7dfda;
  position:relative
}
.detail-switch>span:after {
  content:'';
  position:absolute;
  width:12px;
  height:12px;
  border-radius:50%;
  background:#fff;
  left:2px;
  top:2px;
  transition:transform .2s
}
.detail-switch input:checked+span {
  background:var(--teal)
}
.detail-switch input:checked+span:after {
  transform:translateX(12px)
}
.detail-switch input:focus-visible+span {
  outline:3px solid #3fa98d;
  outline-offset:3px
}
.system-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) 289px;
  gap:17px;
  align-items:stretch
}
.graph-panel {
  border:1px solid #dce5df;
  border-radius:3px;
  background:#fdfdf9;
  overflow:hidden
}
.graph-top {
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
  padding:15px 18px;
  border-bottom:1px solid #e8eee9;
  font-size:9px;
  color:#8b9790
}
.graph-top>span {
  display:flex;
  align-items:center;
  gap:7px
}
.graph-legend {
  display:flex;
  gap:11px
}
.graph-legend>span {
  display:flex;
  align-items:center;
  gap:5px;
  white-space:nowrap
}
.legend-dot {
  width:5px;
  height:5px;
  border-radius:50%;
  display:inline-block
}
.legend-dot.done {
  background:#67a88c
}
.legend-dot.active {
  background:#c79b4a
}
.graph {
  padding:21px 22px 0;
  background-image:radial-gradient(#dce5df .7px,transparent .7px);
  background-size:16px 16px;
  position:relative
}
.input-strip {
  display:flex;
  justify-content:center;
  gap:8px;
  flex-wrap:wrap
}
.input-strip span {
  background:#eff3ee;
  border:1px solid #e0e7df;
  font-size:9px;
  padding:5px 9px;
  border-radius:4px;
  color:#85917f
}
.connector {
  height:32px;
  position:relative;
  display:flex;
  justify-content:center;
  align-items:center
}
.connector:before {
  content:'';
  position:absolute;
  inset:0 auto;
  width:1px;
  background:#cadbd1
}
.connector:after {
  content:'';
  position:absolute;
  bottom:0;
  border:3px solid transparent;
  border-top:4px solid #9cb4a5;
  transform:translateY(3px)
}
.connector span {
  font-size:8px;
  background:#fbfcfb;
  color:#92a091;
  z-index:1;
  margin-left:127px;
  padding:3px
}
.connector.short {
  height:20px
}
.node {
  border:1px solid #d7e2da;
  background:#fff;
  border-radius:8px;
  padding:13px;
  color:var(--ink);
  text-align:left;
  position:relative;
  transition:border-color .15s,box-shadow .15s;
  min-width:0
}
.node:hover {
  border-color:#70ac91;
  box-shadow:0 3px 10px #194f3410
}
.node.selected {
  border-color:#208765;
  box-shadow:0 0 0 2px #20876512;
  background:#f1f8f3
}
.node.confirmed:after {
  content:'✓';
  position:absolute;
  top:-6px;
  right:-5px;
  background:#2a8b6d;
  color:white;
  font-size:8px;
  width:14px;
  height:14px;
  display:grid;
  place-items:center;
  border:2px solid #fbfcfb;
  border-radius:50%
}
.node.running {
  border-color:#c69841;
  background:#fffcf5
}
.node.running:after {
  content:'';
  width:7px;
  height:7px;
  position:absolute;
  right:9px;
  top:9px;
  background:#c39b50;
  border-radius:50%;
  animation:pulse 1.5s infinite
}
.observer-node,.vote-node {
  width:65%;
  min-width:255px;
  margin:auto;
  display:flex;
  align-items:center;
  gap:11px
}
.node-icon {
  width:31px;
  height:31px;
  border-radius:7px;
  background:#e9f3ec;
  color:#4d8c70;
  display:grid;
  place-items:center;
  flex-shrink:0
}
.node-icon svg {
  width:18px;
  height:18px
}
.node-icon.violet {
  background:#f2eef8;
  color:#9a82b5
}
.node-icon.amber {
  background:#f8f1e5;
  color:#ba9a64
}
.node-icon.blue {
  background:#eaf1f7;
  color:#7c9dbd
}
.node-copy {
  min-width:0
}
.node-copy b {
  display:block;
  font-size:12px;
  font-weight:600
}
.node small {
  display:block;
  font-size:9px;
  color:#8b9990;
  line-height:1.5;
  margin-top:4px
}
.node-state {
  margin-left:auto;
  color:#9faf9f;
  font-size:9px
}
.branch {
  height:38px;
  position:relative;
  margin:0 16.7%;
  border-bottom:1px solid #c3d6c9
}
.branch:before {
  content:'';
  position:absolute;
  left:50%;
  height:100%;
  border-left:1px solid #c3d6c9
}
.branch span {
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  top:12px;
  padding:2px 8px;
  background:#fbfcfb;
  white-space:nowrap;
  font-size:8px;
  color:#8fa28f
}
.peers {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:13px;
  padding-top:15px
}
.peer:before {
  content:'';
  position:absolute;
  top:-16px;
  left:50%;
  height:15px;
  border-left:1px solid #c3d6c9
}
.node-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:10px
}
.peer>b {
  font-size:12px;
  display:block;
  font-weight:600
}
.proposal-preview {
  display:block;
  border-top:1px solid #edf1ed;
  padding-top:8px;
  margin-top:11px;
  color:#9da69b;
  font-size:8px;
  white-space:nowrap;
  text-overflow:ellipsis;
  overflow:hidden
}
.peer.has-proposal .proposal-preview {
  color:var(--teal)
}
.branch.merge {
  border-top:1px solid #c3d6c9;
  border-bottom:none;
  margin-top:15px;
  height:34px
}
.branch.merge:after {
  content:'';
  position:absolute;
  top:-16px;
  left:0;
  right:0;
  height:15px;
  border-left:1px solid #c3d6c9;
  border-right:1px solid #c3d6c9
}
.branch.merge span {
  top:8px
}
.vote-node {
  padding:11px 13px;
  width:65%
}
.execution {
  display:grid;
  grid-template-columns:1fr 12px 1fr 12px 1fr 12px 1fr;
  gap:3px;
  align-items:center
}
.compact {
  display:flex;
  align-items:center;
  flex-direction:column;
  text-align:center;
  padding:13px 4px;
  min-height:92px
}
.compact>svg {
  width:18px;
  height:18px;
  color:#7a9984;
  margin-bottom:8px
}
.compact b {
  font-size:10px;
  font-weight:600
}
.compact small {
  font-size:8px;
  line-height:1.3
}
.flow-arrow {
  color:#acc0ae;
  font-size:14px;
  text-align:center
}
.feedback-loop {
  margin:14px 0 0;
  padding:10px 3px 14px;
  text-align:center;
  color:#9aab98;
  font-size:8px;
  border-bottom:1px dashed #cddacd;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px
}
.feedback-loop span {
  font-size:18px
}
.graph-footer {
  display:flex;
  align-items:center;
  gap:7px;
  font-size:9px;
  color:#8c9b90;
  padding:12px 18px
}
.graph-footer svg {
  width:13px;
  height:13px
}
.inspector {
  background:#16393b;
  border:1px solid #244b49;
  border-radius:10px;
  padding:22px;
  color:#e1ede5;
  display:flex;
  flex-direction:column;
  min-width:0
}
.inspector-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  color:#91b0a5;
  font-size:8px;
  letter-spacing:1.6px
}
.inspector-marker {
  font-size:8px;
  color:#9ac7a4
}
.inspector-icon {
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  background:#2a514c;
  border:1px solid #40645b;
  border-radius:10px;
  color:#afcdb6;
  margin:27px 0 17px
}
.inspector-icon svg {
  width:23px;
  height:23px
}
.inspector h2 {
  font-size:22px;
  font-weight:500
}
.inspector p {
  color:#adc0b6;
  font-size:11px;
  line-height:1.8
}
.inspector-divider {
  border-top:1px solid #35524e;
  margin:18px 0
}
.inspector .eyebrow {
  color:#85a995;
  font-size:8px;
  letter-spacing:1.3px
}
.inspector-evidence {
  font-size:12px
}
.inspector #inspector-evidence p {
  font-size:11px
}
.inspector strong {
  color:#dcece0;
  font-weight:500
}
.evidence-item {
  border:1px solid #35564e;
  padding:10px 11px;
  border-radius:6px;
  margin-top:10px;
  font-size:11px;
  line-height:1.6;
  color:#c4d7c9
}
.evidence-item small {
  display:block;
  font-size:9px;
  color:#85a693;
  margin-bottom:5px
}
.technical {
  background:#102e30;
  border-radius:5px;
  padding:10px;
  margin-top:12px;
  font-family:Consolas,monospace;
  font-size:9px;
  line-height:1.6;
  color:#9cbbab;
  overflow-wrap:anywhere;
  white-space:pre-wrap
}
.inspector-nav {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding-top:26px;
  margin-top:auto;
  color:#90ad9f;
  font-size:10px
}
.inspector-nav button {
  width:30px;
  height:30px;
  border:1px solid #466257;
  border-radius:5px;
  background:transparent;
  color:#c4dac9
}
.inspector-nav button:hover {
  background:#2d5148
}
.bottom-grid {
  display:grid;
  grid-template-columns:1.22fr 1fr;
  gap:17px;
  margin-top:19px
}
.summary-card {
  background:#fcfcf8;
  border:1px solid var(--line);
  border-radius:3px;
  padding:22px;
  min-width:0
}
.summary-card .section-heading {
  margin-bottom:17px
}
.summary-card .section-heading h2 {
  font-size:13px
}
.summary-card h3 {
  font-size:16px;
  margin-top:0;
  line-height:1.55
}
.summary-card>p {
  font-size:11px
}
.well-chips {
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  margin-top:15px
}
.well-chip {
  font-size:9px;
  color:#866e50;
  background:#f7f1e7;
  border:1px solid #ece2d0;
  border-radius:4px;
  padding:6px 9px
}
.well-chip:before {
  content:'■';
  font-size:5px;
  vertical-align:2px;
  margin-right:5px;
  color:#b49a77
}
.trust-checks {
  display:grid;
  gap:11px;
  font-size:11px;
  color:#74847a
}
.trust-checks>div {
  display:flex;
  align-items:center;
  gap:9px;
  line-height:1.5
}
.trust-checks svg {
  width:14px;
  height:14px;
  color:#4d9874
}
.trust-checks .pending {
  color:#9ea99f
}
.text-button {
  border:0;
  background:none;
  padding:0;
  font-size:10px;
  color:var(--teal);
  font-weight:600;
  display:flex;
  align-items:center;
  gap:18px;
  margin-top:21px
}
.result-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  margin-bottom:18px
}
.result-grid h2,.files-card h2 {
  margin-top:9px;
  font-size:21px
}
.chart-row {
  margin-top:22px
}
.chart-row>div:first-child {
  display:flex;
  justify-content:space-between;
  font-size:11px;
  margin-bottom:9px;
  gap:8px
}
.chart-row strong {
  font-weight:600;
  font-variant-numeric:tabular-nums
}
.bar-track {
  height:28px;
  background:#f1f4f0;
  border-radius:4px;
  overflow:hidden
}
.bar-fill {
  height:100%;
  background:#8da69a;
  border-radius:4px;
  min-width:1px
}
.chart-row:last-child .bar-fill {
  background:#288666
}
.caption {
  font-size:10px!important;
  color:#8a968e!important;
  line-height:1.6
}
.meter {
  margin:24px 0
}
.meter>div {
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-size:11px
}
.meter progress {
  display:block;
  width:100%;
  height:8px;
  border:0;
  margin-top:11px;
  accent-color:#399172;
  border-radius:8px;
  overflow:hidden
}
.meter progress::-webkit-progress-bar {
  background:#edf1ed
}
.meter progress::-webkit-progress-value {
  background:#399172;
  border-radius:8px
}
.meter.danger progress {
  accent-color:#bc6857
}
.meter.danger progress::-webkit-progress-value {
  background:#bc6857
}
.meter small {
  font-size:9px;
  color:#8c988e;
  display:block;
  margin-top:7px
}
.files-card {
  display:grid;
  grid-template-columns:1fr auto;
  gap:12px;
  align-items:center
}
.download-actions {
  display:flex;
  gap:10px
}
.files-card details,.files-card>p {
  grid-column:1/-1
}
.files-card details {
  border-top:1px solid var(--line);
  padding-top:15px;
  margin-top:8px
}
.schedule-overview {
  grid-column:1/-1;
  display:block;
  border-top:2px solid #244b45;
  padding-top:20px;
  margin-top:6px
}
/* Well calendar: labels stay visible while the time axis scrolls. */
.plan-heading { display:flex; align-items:baseline; justify-content:space-between; gap:12px; flex-wrap:wrap }
.plan-heading h3 { margin:0; font-size:23px; font-weight:500 }
.plan-period,.plan-hint { color:#62746b; font-size:12px; line-height:1.6 }
.plan-toolbar { display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin:20px 0 14px }
.plan-toolbar input,.plan-toolbar select { padding:10px 12px; border:1px solid #bccbc2; border-radius:6px; background:white; color:#244b45; font-size:13px }
.plan-toolbar input { width:210px; max-width:100% }
.plan-count { margin-left:auto; font-size:12px; color:#62746b }
.plan-legend { display:flex; gap:22px; flex-wrap:wrap; margin-bottom:14px; font-size:12px }
.plan-key { display:flex; align-items:center; gap:7px }
.plan-key::before { content:""; width:18px; height:10px; border-radius:2px; background:#2d7962 }
.plan-key.injector::before { background:#397a9a }
.plan-key.shut::before { background:repeating-linear-gradient(135deg,#f4d5be 0 3px,#b9663b 3px 5px) }
.plan-inspector { display:flex; align-items:center; gap:16px; flex-wrap:wrap; padding:16px; margin-bottom:16px; min-height:62px; border:1px solid #c5d4ca; background:#edf3ec; border-radius:7px; color:#244b45; font-size:13px }
.plan-inspector span { color:#5f7168 }
.plan-inspector b { margin-left:auto; font-size:13px }
.plan-inspector h4 { flex-basis:100%; margin:5px 0 -10px; font-size:12px; color:#345a49 }
.plan-reason { flex-basis:100%; margin:0; color:#40584d; line-height:1.55 }
.plan-reason-type { flex-basis:100%; font-size:11px; font-weight:600; color:#52715f!important }
.plan-reason-repair { color:#854b32 }
.plan-evidence { flex-basis:100%; border-top:1px solid #d8e1d8; padding-top:8px; margin-top:2px }
.plan-evidence summary { color:#315d50; font-weight:600 }
.plan-evidence-item { margin-top:10px; padding-left:10px; border-left:2px solid #a8bca9 }
.plan-evidence-item strong { font-size:11px }
.plan-evidence-item p { margin:4px 0; font-size:12px; line-height:1.5; color:#52675b }
.plan-evidence-item small { display:block; font-size:10px; color:#74847a; overflow-wrap:anywhere }
.plan-viewport { max-height:560px; overflow:auto; border:1px solid #cbd3cc; border-radius:7px; background:#fff; isolation:isolate }
.plan-row { display:grid; grid-template-columns:150px 1fr; min-height:42px; border-bottom:1px solid #e4e9e3 }
.plan-row:last-child { border-bottom:0 }
.plan-row:hover { background:#f5f8f2 }
.plan-well { position:sticky; left:0; z-index:2; background:#fafbf7; padding:8px 14px; border-right:1px solid #cbd3cc; display:flex; align-items:center; justify-content:space-between; gap:8px; color:#294b40; font-size:12px }
.plan-well small { font-size:10px; color:#65796e }
.plan-track { position:relative; min-width:0; background:#fff }
.plan-gridline { position:absolute; top:0; bottom:0; border-left:1px solid #e0e7de; pointer-events:none }
.plan-axis { position:sticky; top:0; z-index:3; background:#eaf0e7; min-height:36px }
.plan-axis .plan-well { background:#eaf0e7 }
.plan-years span { position:absolute; padding:10px 9px; border-left:1px solid #cbd3cc; font-size:12px; font-weight:600; color:#345a49 }
.plan-months { min-height:25px; background:#f4f7f1 }
.plan-months .plan-track span { position:absolute; padding:5px 4px; font-size:10px; color:#64776c }
.plan-bar { position:absolute; top:8px; height:26px; border:1px solid white; border-radius:4px; padding:0 7px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; text-align:left; color:white; background:#2d7962; font-size:10px; cursor:pointer; min-width:3px }
.plan-bar.injector { background:#397a9a }
.plan-bar.shut { background:repeating-linear-gradient(135deg,#f7e1d2 0 5px,#efd1bd 5px 8px); color:#7e4128; border-color:#d59b79 }
.plan-bar:hover { filter:brightness(.92) }
.plan-bar[aria-pressed=true],.plan-bar:focus-visible { outline:2px solid #172f29; outline-offset:1px; z-index:1 }
.plan-empty { padding:24px; color:#62746b }
@media (max-width:700px) {
  .plan-count { margin-left:0 }
  .plan-toolbar { gap:8px }
  .plan-toolbar input { width:100% }
  .plan-inspector { gap:7px; align-items:flex-start; flex-direction:column }
  .plan-inspector b { margin-left:0 }
  .plan-viewport { max-height:460px }
}

summary {
  cursor:pointer;
  font-size:11px;
  color:#678275
}
pre {
  background:#122f32;
  color:#b5d2bf;
  padding:20px;
  border-radius:6px;
  max-height:370px;
  overflow:auto;
  font:11px/1.7 Consolas,monospace
}
.hash {
  font:10px/1.6 Consolas,monospace;
  overflow-wrap:anywhere
}
.journal {
  list-style:none;
  padding:0;
  margin-top:25px
}
.journal li {
  position:relative;
  margin:0 0 0 8px;
  padding:0 0 24px 25px;
  border-left:1px solid var(--line);
  font-size:12px
}
.journal li:before {
  content:'';
  position:absolute;
  left:-4px;
  top:4px;
  width:7px;
  height:7px;
  border-radius:50%;
  background:#71977d
}
.journal li b {
  display:block;
  font-weight:500
}
.journal li small {
  display:block;
  color:#87988a;
  margin-top:7px;
  font-size:10px
}
.error-banner {
  padding:13px 17px;
  margin-bottom:20px;
  border:1px solid #e1c7be;
  background:#fbefeb;
  color:#9b5546;
  border-radius:7px;
  font-size:12px;
  line-height:1.5
}
footer {
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  gap:15px;
  color:#9ca79e;
  font-size:9px;
  padding:22px 0;
  margin-top:30px
}
dialog {
  position:fixed;
  inset:0 0 0 auto;
  margin:0;
  height:100dvh;
  max-height:100dvh;
  width:420px;
  max-width:100vw;
  border:0;
  border-left:1px solid var(--line);
  padding:28px;
  background:#fafcf9;
  color:var(--ink);
  box-shadow:-12px 0 60px #10332b20;
  overflow:auto
}
dialog::backdrop {
  background:#0b24245c;
  backdrop-filter:blur(2px)
}
.dialog-head {
  display:flex;
  justify-content:space-between;
  align-items:center
}
.dialog-head h2 {
  font-size:23px;
  margin:10px 0
}
.close-button {
  background:#fff;
  border:1px solid var(--line);
  width:32px;
  height:32px;
  border-radius:6px;
  font-size:23px;
  color:#6e8176
}
.settings-group {
  margin-top:24px;
  padding-top:17px;
  border-top:1px solid var(--line)
}
.settings-group h3 {
  font-size:14px;
  font-weight:600;
  margin:0 0 18px
}
.settings-group label {
  font-size:11px;
  display:block;
  margin:17px 0 8px
}
.settings-group input,.settings-group select {
  width:100%;
  background:#fff;
  border:1px solid #d4dfd4;
  color:var(--ink);
  padding:11px 12px;
  border-radius:6px;
  font-size:12px
}
.settings-group input:disabled {
  background:#eff3ee;
  color:#9da89e
}
.settings-group input[type="radio"] { width:16px; flex:0 0 16px; margin:2px 0 0; accent-color:#28775f }
.settings-group .choice-row { display:flex; gap:10px; align-items:flex-start; margin:15px 0; line-height:1.5; cursor:pointer }
.choice-row span { display:block; flex:1 }
.choice-row b { display:block; font-size:12px; color:#294b40 }
.choice-row small { margin-top:4px }
.choice-row input:disabled+span { opacity:.5 }
.launch-review { margin-top:24px; padding:18px; background:#eef4ec; border:1px solid #d4dfd4; border-radius:7px }
.launch-review h3 { margin:0 0 12px; font-size:14px }
.launch-review .dialog-foot { padding-bottom:0; justify-content:flex-end; flex-wrap:wrap }
.launch-error { padding:10px 12px; border-radius:5px; background:#fbefeb; color:#9b5546; font-size:11px; line-height:1.5 }
.settings-group select:disabled,.settings-group input:disabled { cursor:not-allowed }
.settings-group small {
  font-size:10px;
  color:#8c9b8c;
  display:block;
  line-height:1.5;
  margin-top:8px
}
.settings-note {
  padding:10px 12px;
  background:#eef4ec;
  border-radius:5px;
  font-size:11px
}
.parameter-row {
  display:flex;
  justify-content:space-between;
  gap:15px;
  border-bottom:1px solid #e7ede4;
  padding:10px 0;
  font-size:11px
}
.parameter-row span:first-child {
  color:#849582
}
.parameter-row span:last-child {
  text-align:right
}
.dialog-foot {
  padding:25px 0 5px;
  display:flex;
  align-items:center;
  gap:15px;
  font-size:11px;
  color:var(--teal)
}
@keyframes pulse {
  50% {
    opacity:.3
  }
}
@media(min-width:1550px) {
  .graph {
    padding-left:36px;
    padding-right:36px
  }
  .system-layout {
    grid-template-columns:minmax(0,1fr) 330px
  }
  .inspector {
    padding:27px
  }
  .node {
    padding:16px
  }
  .compact {
    padding:15px 5px
  }
  .peer>b {
    font-size:13px
  }
  .node small {
    font-size:10px
  }
  .branch {
    height:44px
  }
  .branch.merge {
    height:40px
  }
  .proposal-preview {
    font-size:9px
  }
  .graph-footer {
    padding:15px 25px
  }
  .inspector p {
    font-size:12px
  }
  .inspector #inspector-evidence p {
    font-size:12px
  }
}
@media(max-width:1200px) {
  .sidebar {
    width:184px;
    padding-left:13px;
    padding-right:13px
  }
  .main-shell {
    margin-left:184px
  }
  .brand {
    font-size:19px
  }
  .brand-sub {
    font-size:6px;
    letter-spacing:1px
  }
  .workspace-tag {
    font-size:9px
  }
  .nav-item {
    font-size:12px
  }
  .field-emblem svg {
    width:135px
  }
  main {
    padding:25px 24px 0
  }
  .topbar {
    padding:0 24px
  }
  .system-layout {
    grid-template-columns:minmax(0,1fr) 255px;
    gap:12px
  }
  .graph {
    padding:18px 15px 0
  }
  .inspector {
    padding:18px
  }
  .node small,.graph-footer {
    font-size:10px
  }
  .inspector p,.inspector #inspector-evidence p {
    font-size:12px
  }
  .meter small,.caption {
    font-size:10px!important
  }
  .metrics {
    gap:10px
  }
  .metric {
    padding:15px
  }
  .metric-value {
    font-size:27px
  }
  .metric-label {
    font-size:10px
  }
  .runbar {
    gap:15px;
    padding:13px
  }
  .run-context {
    padding-left:15px
  }
  .run-context small {
    max-width:200px
  }
  .source-control {
    min-width:190px
  }
  .button {
    padding:10px 12px;
    font-size:10px
  }
  .graph-legend {
    gap:6px;
    font-size:8px
  }
  .graph-top {
    padding:13px
  }
  .peer {
    padding:11px
  }
  .peer small {
    font-size:8px
  }
  .peers {
    gap:9px
  }
  .compact b {
    font-size:9px
  }
  .compact small {
    font-size:7px
  }
  h1 {
    font-size:28px
  }
}
@media(max-width:1020px) {
  .sidebar {
    width:74px;
    padding:27px 12px
  }
  .brand>span:last-child,.workspace-tag,.nav-label,.nav-item>span,.sidebar-bottom {
    display:none
  }
  .brand {
    justify-content:center
  }
  .brand-mark {
    margin:0
  }
  .sidebar nav {
    margin-top:40px
  }
  .nav-item {
    font-size:0;
    justify-content:center;
    padding:14px 0
  }
  .nav-item svg {
    width:20px;
    height:20px
  }
  .main-shell {
    margin-left:74px
  }
  .system-layout {
    grid-template-columns:minmax(0,1fr) 250px
  }
  .run-context small {
    max-width:220px
  }
  .run-actions .button {
    padding:10px
  }
  .runbar {
    flex-wrap:wrap
  }
  .run-actions {
    margin-left:auto
  }
  .metrics {
    margin-top:16px
  }
  .source-control {
    max-width:280px
  }
  .topbar {
    height:62px
  }
  .page-heading {
    margin-bottom:19px
  }
  .bottom-grid {
    grid-template-columns:1fr 1fr
  }
  .summary-card {
    padding:18px
  }
  .graph-top>span {
    font-size:8px
  }
  .graph-legend span:first-child {
    display:none
  }
}
@media(max-width:800px) {
  .system-layout {
    grid-template-columns:1fr
  }
  .inspector {
    min-height:0;
    display:grid;
    grid-template-columns:1fr auto;
    gap:0 20px
  }
  .inspector-top {
    grid-column:1/-1
  }
  .inspector-icon {
    grid-column:2;
    grid-row:2/4;
    margin:15px 0 0
  }
  .inspector h2 {
    margin-top:17px
  }
  .inspector-description {
    grid-column:1
  }
  .inspector-divider,.inspector .eyebrow,#inspector-evidence,.technical {
    grid-column:1/-1
  }
  .inspector-nav {
    grid-column:1/-1;
    padding-top:15px
  }
  .metrics {
    grid-template-columns:repeat(2,1fr)
  }
  .metric-value {
    font-size:30px
  }
  .graph-legend span:first-child {
    display:flex
  }
  .bottom-grid,.result-grid {
    grid-template-columns:1fr
  }
  .files-card {
    grid-template-columns:1fr
  }
  .files-card details,.files-card>p {
    grid-column:1
  }
  .operation-cards { grid-template-columns:1fr }
  .operation-card { min-height:0 }
  .run-context {
    border:none;
    padding-left:0
  }
  .section-heading .tag {
    font-size:8px
  }
  .graph {
    padding:22px 28px 0
  }
  .peer small {
    font-size:10px
  }
  .peer>b {
    font-size:12px
  }
  .compact b {
    font-size:11px
  }
  .compact small {
    font-size:9px
  }
  .page-heading .button {
    max-width:135px;
    white-space:normal
  }
  .page-heading h1 {
    font-size:25px
  }
  .source-control {
    max-width:100%
  }
  .run-actions {
    width:100%;
    justify-content:flex-end
  }
  .run-context small {
    max-width:100%
  }
  footer span:last-child {
    max-width:240px;
    text-align:right
  }
}
@media(max-width:520px) {
  .sidebar {
    position:static;
    width:100%;
    height:56px;
    padding:10px 16px;
    flex-direction:row;
    align-items:center;
    justify-content:space-between
  }
  .brand>span:last-child {
    display:block;
    font-size:17px
  }
  .brand-sub {
    display:none
  }
  .sidebar nav {
    display:flex;
    margin:0;
    gap:8px
  }
  .nav-item {
    padding:8px;
    width:34px
  }
  .nav-item svg {
    width:17px;
    height:17px
  }
  .main-shell {
    margin-left:0
  }
  .topbar {
    height:51px;
    padding:0 17px
  }
  .breadcrumb {
    font-size:10px
  }
  .source-badge {
    font-size:9px
  }
  .top-actions {
    gap:9px
  }
  .icon-button {
    width:28px;
    height:28px
  }
  .icon-button svg {
    width:16px;
    height:16px
  }
  main {
    padding:23px 16px 0
  }
  .eyebrow {
    font-size:8px
  }
  .page-heading {
    align-items:flex-start;
    gap:10px
  }
  .page-heading h1 {
    font-size:23px;
    max-width:220px
  }
  .page-heading p {
    font-size:11px
  }
  .page-heading .button {
    font-size:0;
    padding:9px;
    max-width:36px;
    margin-top:25px
  }
  .page-heading .button svg {
    width:16px;
    height:16px
  }
  .runbar {
    gap:14px
  }
  .source-control {
    width:100%;
    min-width:0
  }
  .run-actions {
    justify-content:stretch
  }
  .run-actions .button {
    flex:1
  }
  .metric {
    padding:14px
  }
  .metric-label {
    font-size:10px
  }
  .metric-value {
    font-size:27px
  }
  .metric-bottom {
    font-size:8px
  }
  .metrics {
    gap:10px;
    margin-bottom:25px
  }
  .section-heading>div {
    gap:8px
  }
  .section-heading h2 {
    font-size:14px
  }
  .section-heading .tag {
    display:none
  }
  .detail-switch {
    font-size:10px
  }
  .graph-top {
    padding:12px
  }
  .graph-legend {
    font-size:7px
  }
  .graph {
    padding:18px 10px 0
  }
  .input-strip {
    gap:5px
  }
  .input-strip span {
    font-size:7px;
    padding:4px 5px
  }
  .observer-node,.vote-node {
    min-width:235px
  }
  .peers {
    gap:7px
  }
  .peer {
    padding:9px
  }
  .node-icon {
    width:28px;
    height:28px
  }
  .peer>b {
    font-size:10px
  }
  .peer small {
    font-size:8px
  }
  .proposal-preview {
    font-size:7px
  }
  .compact {
    padding:10px 2px;
    min-height:87px
  }
  .compact b {
    font-size:8px
  }
  .compact small {
    font-size:7px
  }
  .execution {
    grid-template-columns:1fr 8px 1fr 8px 1fr 8px 1fr;
    gap:1px
  }
  .flow-arrow {
    font-size:10px
  }
  .feedback-loop {
    font-size:7px
  }
  .graph-footer {
    font-size:8px;
    padding:10px
  }
  .download-actions {
    flex-wrap:wrap
  }
  .download-actions .button {
    flex:1
  }
  .metric-bottom b {
    font-size:8px
  }
  footer {
    font-size:8px;
    line-height:1.5
  }
  dialog {
    width:100%;
    padding:24px
  }
  .inspector {
    padding:22px
  }
  .error-banner {
    font-size:11px
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important
  }
}

#decision-history > details { padding: 18px 0; border-bottom: 1px solid #dce5e3; }
#decision-history summary { cursor: pointer; font-weight: 600; overflow-wrap: anywhere; }
#decision-history pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; }
#decision-history .evidence-item { margin-top: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }

#new-case-editor { border: 1px solid #dce5e3; padding: 16px; min-width: 0; }
.case-well-row { border-top: 1px solid #dce5e3; margin-top: 18px; padding-top: 12px; }
.case-shutdown-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.case-shutdown-row select { min-width: 0; }
/* Keep the well calendar scroll inside its own viewport on small screens. */
.files-card { grid-template-columns: minmax(0, 1fr) auto; }
.files-card > * { min-width: 0; }
@media (max-width: 520px) {
  .files-card { grid-template-columns: minmax(0, 1fr); }
}
