:root {
  --ink: #23332e;
  --muted: #75817c;
  --faint: #98a39e;
  --green: #176349;
  --green-dark: #124b39;
  --green-soft: #eaf5ee;
  --canvas: #f5f7f8;
  --line: #e5eae7;
  --amber: #a86b12;
  --amber-soft: #fff7e8;
  --red: #bd4949;
  --red-soft: #fff1ef;
  --blue: #53759c;
  --blue-soft: #edf3f9;
  --white: #fff;
  --shadow: 0 4px 18px #253e3010;
  --font: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--font);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button {
  border: 0;
  background: none;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #74bfa0;
  outline-offset: 3px;
}
button:hover:disabled {
  background: inherit;
}
svg.lucide {
  width: 18px;
  height: 18px;
  stroke-width: 1.65;
  flex-shrink: 0;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1 {
  font-size: 28px;
  font-weight: 550;
  letter-spacing: -0.9px;
  line-height: 1.25;
}
h2 {
  font-size: 16px;
  font-weight: 550;
}
h3 {
  font-size: 14px;
  font-weight: 550;
}
small {
  font-size: 12px;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--faint);
}
.dot.green {
  background: #369d70;
}
.dot.amber {
  background: #d49b3a;
}
.dot.red {
  background: #ce6363;
}
.dot.blue {
  background: var(--blue);
}
.muted {
  color: var(--muted);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
[hidden] {
  display: none !important;
}
.app-shell {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 27px 15px 0;
  z-index: 40;
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 15px 25px;
  gap: 8px;
}
.brand img {
  width: 111px;
  height: auto;
  max-height: 38px;
  object-fit: contain;
}
.brand span {
  font-size: 10px;
  letter-spacing: 0.8px;
  color: #81948a;
}
.workspace-switch {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  text-align: left;
  margin: 0 0 28px;
  background: #fdfefd;
}
.workspace-switch > span:nth-child(2) {
  display: grid;
  gap: 2px;
  flex: 1;
}
.workspace-switch strong {
  font-size: 12px;
  font-weight: 550;
}
.workspace-switch small {
  font-size: 10px;
  color: var(--muted);
}
.workspace-switch > svg {
  width: 12px;
  color: var(--muted);
}
.workspace-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #edf2ef;
  border: 1px solid #dbe5df;
  color: var(--green);
  font-weight: 600;
}
.nav-label {
  font-size: 11px;
  color: #9ba69f;
  padding: 0 13px 9px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 40px;
  width: 100%;
  padding: 9px 13px;
  border-radius: 6px;
  color: #738079;
  font-size: 12px;
  font-weight: 450;
  text-align: left;
  margin-bottom: 4px;
}
.nav-item svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.7;
}
.nav-item > span {
  flex: 1;
}
.nav-item.active {
  background: #eaf3ed;
  color: var(--green);
  font-weight: 550;
}
.nav-item:hover {
  background: #f2f6f3;
  color: var(--ink);
}
.nav-item b {
  font-size: 10px;
  font-weight: 500;
  border: 1px solid #e0e6e2;
  border-radius: 4px;
  padding: 0 5px;
  line-height: 17px;
  background: #fff;
  color: #748178;
}
.nav-item b.alert {
  background: #fff2e2;
  color: var(--amber);
  border-color: #f1e1c6;
}
.nav-divider {
  height: 1px;
  background: var(--line);
  margin: 14px 12px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 24px;
}
.automation-summary {
  border: 1px solid #e6ece8;
  background: #fafcfb;
  border-radius: 7px;
  margin: 0 0 16px;
  padding: 14px 12px;
}
.automation-summary strong {
  display: block;
  font-size: 11px;
  font-weight: 550;
  margin-top: 9px;
}
.automation-summary p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.automation-summary > div {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  margin-top: 14px;
  color: #667b6e;
}
.tiny-orbit {
  color: var(--green);
}
.tiny-orbit svg {
  width: 21px;
  height: 21px;
}
.profile {
  display: flex;
  gap: 9px;
  align-items: center;
  border-top: 1px solid var(--line);
  margin-top: 17px;
  width: 100%;
  padding: 17px 2px;
  text-align: left;
}
.profile > span:nth-child(2) {
  display: grid;
  gap: 3px;
  flex: 1;
}
.profile strong {
  font-size: 12px;
  font-weight: 550;
}
.profile small {
  font-size: 10px;
  color: var(--muted);
}
.profile > svg {
  width: 12px;
  color: var(--faint);
}
.avatar {
  height: 30px;
  width: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #dbe5de;
  border-radius: 8px;
  background: #eff4f0;
  color: #5a7664;
  font-size: 10px;
  font-weight: 550;
  flex-shrink: 0;
}
.avatar.human {
  background: #f0ebdf;
  color: #887959;
  border-color: #e3dcc9;
  border-radius: 50%;
}
.avatar.small {
  height: 27px;
  width: 27px;
  font-size: 9px;
}
.avatar.blue {
  background: #edf2f9;
  border-color: #dee7f2;
  color: #607d9c;
}
.avatar.purple {
  background: #f2eef8;
  border-color: #e4dff0;
  color: #8b75a3;
}
.avatar-stack {
  display: flex;
}
.avatar-stack .avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin-left: -5px;
  border: 2px solid white;
  font-size: 8px;
}
.avatar-stack .avatar:first-child {
  margin-left: 0;
}
.workspace {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 63px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 31px;
  background: #fff;
  flex-shrink: 0;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 12px;
  color: #8b9790;
}
.breadcrumbs > svg {
  width: 12px;
  height: 12px;
  color: #b0b9b3;
}
.breadcrumbs strong {
  font-weight: 450;
  color: #54625a;
}
.topbar-actions {
  display: flex;
  gap: 18px;
  align-items: center;
}
.demo-label {
  border: 1px solid #e4e9e5;
  background: #fafbfa;
  color: #7c8b80;
  font-size: 10px;
  padding: 4px 7px;
  border-radius: 4px;
}
.search-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #8a978e;
}
.search-trigger svg {
  width: 15px;
  height: 15px;
}
.search-trigger kbd {
  margin-left: 15px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 2px 4px;
  font-size: 9px;
  font-family: inherit;
}
.icon-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 31px;
  height: 31px;
  position: relative;
  border-radius: 5px;
  color: #76857c;
}
.icon-button:hover {
  background: #edf2ef;
}
.notification-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #d8aa4b;
  position: absolute;
  right: 7px;
  top: 6px;
}
.mobile-nav-toggle {
  display: none;
}
.workspace-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: #99a69e;
  padding: 15px 30px;
  border-top: 1px solid var(--line);
}
.workspace-footer > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.workspace-footer button {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #89988f;
}
.workspace-footer svg {
  width: 12px;
  height: 12px;
}
.footer-divider {
  margin: 0 4px;
  color: #c2cbc5;
}
main {
  padding: 29px 31px 22px;
  flex: 1;
  min-width: 0;
  outline: none;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 23px;
}
.page-heading p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.5;
}
.heading-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  border: 1px solid #dfe6e0;
  border-radius: 6px;
  padding: 7px 12px;
  background: #fff;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  line-height: 1.35;
}
.button:hover {
  background: #f6f9f7;
  border-color: #c5d3c9;
}
.button svg {
  width: 14px;
  height: 14px;
}
.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
  box-shadow: 0 1px 2px #164f3920;
}
.button.primary:hover {
  background: var(--green-dark);
}
.button.warning {
  color: var(--amber);
  border-color: #e5cea8;
  background: #fffaf2;
}
.button.danger {
  color: var(--red);
  border-color: #eac6c0;
  background: #fff8f6;
}
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  color: var(--green);
  padding: 4px 0;
}
.text-button svg {
  width: 13px;
  height: 13px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 17px;
  padding: 17px 0;
}
.metric {
  padding: 0 22px;
  border-right: 1px solid var(--line);
}
.metric:last-child {
  border: 0;
}
.metric-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #7f8b84;
  font-size: 11px;
}
.metric-label svg {
  width: 14px;
  height: 14px;
  color: #a1afa5;
}
.metric-value {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 5px 0 4px;
}
.metric-value strong {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.9px;
  font-variant-numeric: tabular-nums;
}
.metric-value span {
  font-size: 10px;
  color: var(--green);
}
.metric-value .amber {
  color: var(--amber);
}
.metric > small {
  font-size: 10px;
  color: #98a198;
}
.attention-banner {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid #ece3ce;
  background: #fffdf7;
  border-radius: 7px;
  padding: 11px 14px;
  margin-bottom: 18px;
}
.attention-banner > svg {
  width: 17px;
  color: var(--amber);
}
.attention-banner p {
  font-size: 11px;
  color: #7a735f;
  flex: 1;
  line-height: 1.5;
}
.attention-banner p strong {
  color: #786334;
  font-weight: 550;
}
.attention-banner .text-button {
  color: #967222;
  font-size: 10px;
  white-space: nowrap;
}
.attention-banner.good {
  background: #f3faf5;
  border-color: #dcebe0;
}
.attention-banner.good > svg,
.attention-banner.good p strong {
  color: var(--green);
}
.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 294px;
  gap: 17px;
  align-items: start;
}
.map-layout.no-inspector {
  grid-template-columns: 1fr;
}
.map-column {
  min-width: 0;
}
.map-panel {
  background: #fff;
  border: 1px solid #dfe6e1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 3px #233f2c03;
}
.map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  min-height: 59px;
}
.segmented {
  display: flex;
  gap: 3px;
  align-items: center;
  border-radius: 5px;
  padding: 3px;
  background: #f2f5f3;
}
.segmented button {
  display: flex;
  gap: 6px;
  align-items: center;
  border-radius: 4px;
  padding: 6px 10px;
  color: #829086;
  font-size: 10px;
  white-space: nowrap;
}
.segmented button svg {
  width: 13px;
  height: 13px;
}
.segmented button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px #20322815;
}
.toolbar-options {
  display: flex;
  gap: 9px;
  align-items: center;
}
.toolbar-options select {
  border: 0;
  background: none;
  max-width: 135px;
  font-size: 10px;
  color: #7d8b81;
  padding: 5px 2px;
  cursor: pointer;
}
.toolbar-options .icon-button {
  width: 27px;
  height: 27px;
}
.toolbar-options .icon-button svg {
  width: 14px;
}
.separator {
  height: 19px;
  width: 1px;
  background: var(--line);
}
.map-scroll {
  overflow: auto;
  background-color: #fcfdfc;
  background-image: radial-gradient(#dfe5e0 0.7px, transparent 0.7px);
  background-size: 16px 16px;
  min-height: 443px;
}
.process-map {
  min-width: 720px;
  padding: 24px 25px 18px;
  transform-origin: top left;
}
.lane {
  position: relative;
  margin-bottom: 25px;
}
.lane-head {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 13px;
  color: #798d7f;
}
.lane-head > svg {
  width: 14px;
  height: 14px;
}
.lane-head h3 {
  font-size: 10px;
  font-weight: 500;
}
.lane-head span {
  font-size: 9px;
  color: #adb7ae;
  margin-left: 5px;
}
.lane-nodes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}
.process-node {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  min-width: 0;
  padding: 12px 12px 10px;
  min-height: 116px;
  border: 1px solid #dce6de;
  background: #fff;
  border-radius: 7px;
  box-shadow: 0 2px 2px #24452c04;
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    opacity 0.2s;
}
.process-node:hover {
  border-color: #8bae98;
  box-shadow: 0 3px 9px #24452c0c;
}
.process-node:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 48%;
  left: calc(100% + 1px);
  width: 25px;
  height: 1px;
  background: #cdd9cf;
  pointer-events: none;
}
.process-node:not(:last-child)::before {
  content: "";
  position: absolute;
  top: calc(48% - 3px);
  left: calc(100% + 20px);
  width: 5px;
  height: 5px;
  border-right: 1px solid #a8b8ac;
  border-top: 1px solid #a8b8ac;
  transform: rotate(45deg);
  pointer-events: none;
}
.process-node.selected {
  border-color: #559073;
  box-shadow: 0 0 0 2px #39846116;
}
.process-node.warning {
  border-color: #e9d4ad;
  background: #fffefa;
}
.process-node.warning.selected {
  border-color: #caa359;
  box-shadow: 0 0 0 2px #c89c4217;
}
.process-node.blocked {
  border-color: #e6c6c0;
  background: #fffcfb;
}
.process-node.blocked.selected {
  border-color: #c87970;
  box-shadow: 0 0 0 2px #c8797019;
}
.process-node.dimmed {
  opacity: 0.34;
}
.node-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 11px;
  gap: 7px;
}
.node-symbol {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #698a73;
}
.node-symbol > svg {
  width: 15px;
  height: 15px;
}
.node-number {
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  color: #a6b4a9;
}
.node-health {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  color: #84958a;
  white-space: nowrap;
}
.warning .node-health {
  color: var(--amber);
}
.blocked .node-health {
  color: var(--red);
}
.process-node h4 {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.1px;
}
.node-subtitle {
  font-size: 10px;
  color: #8b9990;
  margin: 4px 0 11px;
  line-height: 1.4;
}
.node-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin-top: auto;
  border-top: 1px solid #edf1ed;
  padding-top: 8px;
  font-size: 9px;
  color: #8e9b91;
}
.node-footer > span:first-child {
  display: flex;
  align-items: center;
  gap: 5px;
}
.node-footer .mini-avatar {
  display: grid;
  place-items: center;
  font-size: 7px;
  background: #edf3ef;
  border-radius: 3px;
  height: 17px;
  width: 17px;
  color: #738b7a;
}
.node-footer b {
  font-weight: 500;
  color: #566d5e;
}
.node-flag {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 7px -12px -10px;
  padding: 6px 10px;
  background: var(--amber-soft);
  border-top: 1px solid #f3e6cb;
  border-radius: 0 0 6px 6px;
  font-size: 9px;
  color: #ac7824;
  line-height: 1.35;
}
.node-flag svg {
  width: 11px;
  height: 11px;
}
.blocked .node-flag {
  color: var(--red);
  background: #fff0ed;
  border-color: #f3dcd7;
}
.foundation {
  border-top: 1px dashed #d9e2db;
  padding-top: 16px;
}
.foundation .lane-head {
  margin-bottom: 10px;
}
.foundation-nodes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.foundation .process-node {
  min-height: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  column-gap: 9px;
  align-items: center;
  padding: 10px 12px;
  background: #f9fbf9;
  box-shadow: none;
}
.foundation .process-node::before,
.foundation .process-node::after {
  display: none;
}
.foundation .node-top {
  margin: 0;
}
.foundation .node-number {
  display: none;
}
.foundation .node-health {
  display: none;
}
.foundation .process-node h4 {
  font-size: 11px;
}
.foundation .node-subtitle {
  margin: 2px 0 0;
  font-size: 9px;
}
.foundation .node-footer {
  padding: 0;
  border: 0;
  margin: 0;
}
.foundation .node-footer > span:first-child {
  display: none;
}
.map-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 10px 15px;
  background: #fff;
  gap: 10px;
  font-size: 9px;
  color: #9ba69e;
}
.legend {
  display: flex;
  gap: 14px;
  align-items: center;
}
.legend span {
  display: flex;
  gap: 5px;
  align-items: center;
}
.legend .dot {
  width: 5px;
  height: 5px;
}
.zoom-controls {
  display: flex;
  gap: 3px;
  align-items: center;
  font-size: 9px;
}
.zoom-controls .icon-button {
  width: 21px;
  height: 21px;
}
.zoom-controls svg {
  width: 12px;
  height: 12px;
}
.map-context {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  padding: 11px 4px;
  font-size: 10px;
  color: #94a096;
  line-height: 1.5;
}
.map-context svg {
  width: 13px;
  height: 13px;
  margin-top: 1px;
}
.inspector {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  position: sticky;
  top: 16px;
  box-shadow: 0 2px 3px #233f2c03;
}
.inspector-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  color: #94a096;
}
.inspector-top > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.inspector-top svg {
  width: 13px;
  height: 13px;
}
.inspector-top .icon-button {
  width: 24px;
  height: 24px;
}
.inspector-body {
  padding: 18px 17px;
}
.inspector-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 11px 0 5px;
}
.inspector-title h2 {
  font-size: 18px;
  font-weight: 550;
  letter-spacing: -0.45px;
  line-height: 1.25;
}
.inspector-summary {
  font-size: 11px;
  line-height: 1.65;
  color: #7c8b80;
  margin-bottom: 17px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #dce9de;
  background: #f3f9f4;
  color: #65866b;
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 9px;
  font-weight: 500;
  white-space: nowrap;
}
.status-pill.warning {
  background: var(--amber-soft);
  border-color: #f0dfbd;
  color: var(--amber);
}
.status-pill.blocked {
  background: var(--red-soft);
  border-color: #f0d1cb;
  color: var(--red);
}
.status-pill.blue {
  background: var(--blue-soft);
  border-color: #dce5f1;
  color: var(--blue);
}
.inspector-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px 6px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 17px;
}
.inspector-facts div {
  display: grid;
  gap: 5px;
}
.inspector-facts span {
  font-size: 9px;
  color: #9aa69c;
}
.inspector-facts strong {
  font-size: 11px;
  font-weight: 500;
}
.inspector-section {
  margin-top: 18px;
}
.inspector-section h3 {
  font-size: 10px;
  color: #85958a;
  font-weight: 500;
  margin-bottom: 10px;
}
.impact-box {
  background: #fdfbf6;
  border: 1px solid #ede2ca;
  border-radius: 6px;
  padding: 12px;
}
.impact-box h4 {
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 5px;
}
.impact-box p {
  font-size: 10px;
  line-height: 1.6;
  color: #958467;
}
.impact-box.blocked {
  background: #fff7f5;
  border-color: #efd9d3;
}
.impact-box.blocked p {
  color: #a37a71;
}
.impact-box.good {
  background: #f3faf5;
  border-color: #dbeadd;
}
.impact-box.good p {
  color: #738f78;
}
.owner-row {
  display: flex;
  align-items: center;
  gap: 9px;
}
.owner-row > div {
  flex: 1;
  display: grid;
  gap: 2px;
}
.owner-row strong {
  font-size: 11px;
  font-weight: 500;
}
.owner-row small {
  font-size: 9px;
  color: #97a398;
}
.owner-row > .status-pill {
  font-size: 8px;
}
.evidence-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.evidence-list li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 10px;
  color: #819085;
  line-height: 1.5;
}
.evidence-list svg {
  width: 12px;
  height: 12px;
  color: #79a184;
  margin-top: 2px;
}
.recommendation {
  border-top: 1px solid var(--line);
  padding-top: 17px;
  margin-top: 17px;
}
.recommendation h3 {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 10px;
  color: #6f8576;
  margin-bottom: 9px;
}
.recommendation h3 svg {
  width: 13px;
  height: 13px;
}
.recommendation p {
  font-size: 11px;
  color: #849287;
  line-height: 1.65;
  margin-bottom: 12px;
}
.recommendation > .button {
  width: 100%;
  min-height: 36px;
}
.recommendation .secondary-actions {
  display: flex;
  gap: 7px;
  margin-top: 8px;
}
.secondary-actions > .button {
  flex: 1;
  font-size: 10px;
  padding: 6px;
  min-width: 0;
}
.inspect-link {
  margin-top: 13px;
  width: 100%;
  justify-content: center;
  font-size: 10px;
}
.priority-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 13px 0 0;
  font-size: 10px;
  color: #88978d;
}
.priority-row select {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: #6c8173;
  padding: 3px 6px;
  font-size: 10px;
}
.queue-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 13px;
  overflow: hidden;
}
.section-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.section-bar h2 {
  font-size: 12px;
  font-weight: 500;
  display: flex;
  gap: 8px;
  align-items: center;
}
.count-pill {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #f0f3f1;
  color: #7b8c81;
  font-size: 9px;
}
.section-bar > p {
  font-size: 11px;
  color: var(--muted);
}
.queue-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 10px;
}
.queue-table th {
  font-size: 9px;
  font-weight: 450;
  color: #99a69d;
  background: #fcfdfc;
  padding: 9px 16px;
  border-bottom: 1px solid var(--line);
}
.queue-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #edf1ed;
  color: #7b8a80;
}
.queue-table tr:last-child td {
  border-bottom: 0;
}
.queue-table tbody tr:hover {
  background: #fcfdfb;
}
.issue-cell {
  display: flex;
  gap: 8px;
  align-items: center;
}
.issue-cell > svg {
  width: 13px;
  height: 13px;
  color: #c79542;
}
.issue-cell .red {
  color: var(--red);
}
.issue-cell button {
  text-align: left;
  padding: 0;
  color: #566b5d;
  font-weight: 450;
  font-size: 11px;
}
.issue-cell small {
  display: block;
  margin-top: 3px;
  font-size: 9px;
  color: #98a59b;
}
.queue-table .text-button {
  font-size: 10px;
}
.queue-table .avatar {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  font-size: 8px;
  margin-right: 6px;
}
.nowrap {
  white-space: nowrap;
}
.table-scroll {
  overflow: auto;
}
.empty-state {
  padding: 42px 24px;
  text-align: center;
}
.empty-state > svg {
  width: 28px;
  height: 28px;
  color: #95b29d;
  margin-bottom: 12px;
}
.empty-state h3 {
  font-size: 15px;
  margin-bottom: 7px;
}
.empty-state p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.trace-header {
  padding: 18px 22px;
  border-bottom: 1px solid #e5ebe6;
  background: #fbfdfb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.trace-person {
  display: flex;
  gap: 11px;
  align-items: center;
}
.trace-person > div {
  display: grid;
  gap: 4px;
}
.trace-person strong {
  font-size: 12px;
  font-weight: 500;
}
.trace-person small {
  font-size: 10px;
  color: #929f94;
}
.trace-controls {
  display: flex;
  gap: 7px;
  align-items: center;
}
.trace-controls select {
  font-size: 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 6px;
  background: white;
  color: #7a8d80;
}
.trace-map {
  min-width: 660px;
  padding: 28px 26px 22px;
}
.trace-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 27px;
  position: relative;
}
.trace-node {
  min-height: 135px;
  cursor: pointer;
}
.trace-node:nth-of-type(3)::before,
.trace-node:nth-of-type(3)::after,
.trace-node:nth-of-type(6)::after,
.trace-node:nth-of-type(6)::before {
  display: none;
}
.trace-node:nth-of-type(3) {
  grid-column: 3;
  grid-row: 1;
}
.trace-node:nth-of-type(4) {
  grid-column: 3;
  grid-row: 2;
}
.trace-node:nth-of-type(5) {
  grid-column: 2;
  grid-row: 2;
}
.trace-node:nth-of-type(6) {
  grid-column: 1;
  grid-row: 2;
}
.trace-node:nth-of-type(4)::after,
.trace-node:nth-of-type(5)::after {
  left: auto;
  right: calc(100% + 1px);
}
.trace-node:nth-of-type(4)::before,
.trace-node:nth-of-type(5)::before {
  left: auto;
  right: calc(100% + 20px);
  transform: rotate(225deg);
}
.trace-turn {
  position: absolute;
  right: calc(16.666% - 1px);
  top: calc(50% - 20px);
  height: 40px;
  width: 1px;
  background: #c9d7cd;
}
.trace-turn:after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-bottom: 1px solid #a8b8ac;
  border-right: 1px solid #a8b8ac;
  bottom: 3px;
  left: -2px;
  transform: rotate(45deg);
}
.trace-node.complete {
  background: #f7fcf8;
}
.trace-node.future {
  background: #fcfdfc;
  opacity: 0.65;
}
.trace-progress {
  height: 3px;
  background: #edf3ee;
  margin-top: 10px;
  border-radius: 4px;
  overflow: hidden;
}
.trace-progress > span {
  display: block;
  height: 100%;
  background: #519c6c;
  transition: width 0.4s;
}
.trace-node.warning .trace-progress > span {
  background: #d3a658;
}
.trace-node.blocked .trace-progress > span {
  background: #ce7a70;
}
.trace-summary {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #e4eae4;
  border-radius: 6px;
  padding: 12px;
  margin-top: 22px;
  background: #fff;
  font-size: 10px;
  color: #829486;
  line-height: 1.5;
}
.trace-summary svg {
  width: 15px;
  color: #82a78c;
}
.trace-summary strong {
  color: #607c67;
  font-weight: 500;
}
.trace-controls .button {
  font-size: 10px;
  min-height: 30px;
}
.trace-summary.success {
  background: #f1faf3;
  border-color: #cee2d3;
}
.view-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.inline-search {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px 11px;
  border-radius: 6px;
}
.inline-search svg {
  width: 14px;
  color: #94a498;
}
.inline-search input {
  border: 0;
  background: none;
  outline: none;
  font-size: 11px;
  width: 190px;
  color: var(--ink);
}
.filter-select {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  font-size: 11px;
  color: #75887b;
  padding: 8px 10px;
}
.agent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}
.agent-tile {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
  padding: 17px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.agent-tile-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.agent-tile h3 {
  font-size: 13px;
  margin-bottom: 5px;
}
.agent-tile p {
  color: #93a096;
  font-size: 11px;
  line-height: 1.5;
  min-height: 32px;
}
.agent-tile-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 10px;
  color: #8e9d92;
}
.agent-tile-footer button {
  font-size: 10px;
  color: var(--green);
  padding: 0;
}
.system-list {
  display: grid;
  gap: 13px;
}
.system-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 21px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 135px 145px;
  align-items: center;
  gap: 16px;
}
.system-card.degraded {
  border-color: #e8cdc6;
}
.system-logo {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: #f8faf8;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #819786;
}
.system-card h3 {
  font-size: 14px;
  margin-bottom: 6px;
}
.system-card p {
  font-size: 11px;
  color: #8c9c90;
  line-height: 1.5;
}
.system-stat {
  display: grid;
  gap: 6px;
  font-size: 10px;
  color: #94a296;
}
.system-stat strong {
  font-size: 13px;
  font-weight: 450;
  color: #6e8273;
}
.activity-list {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.event {
  display: grid;
  grid-template-columns: 70px 30px 1fr auto;
  gap: 15px;
  padding: 18px 21px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.event:last-child {
  border: 0;
}
.event time {
  font-size: 11px;
  color: #95a498;
  padding-top: 5px;
}
.event p {
  font-size: 12px;
  color: #667b6c;
  line-height: 1.6;
}
.event p strong {
  font-weight: 500;
  color: #435e4c;
}
.event small {
  font-size: 10px;
  color: #9aa89d;
  display: block;
  margin-top: 4px;
}
.event-tag {
  font-size: 9px;
  color: #94a597;
  border: 1px solid var(--line);
  padding: 4px 7px;
  border-radius: 4px;
}
.settings-row {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 12px;
}
.settings-row strong {
  font-weight: 500;
}
.settings-row p {
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
  line-height: 1.5;
}
dialog {
  padding: 0;
  color: var(--ink);
  border: 1px solid #dfe7e0;
  border-radius: 12px;
  box-shadow: 0 24px 80px #152e2430;
  background: #fff;
}
dialog::backdrop {
  background: #17372835;
  backdrop-filter: blur(3px);
}
.search-dialog {
  width: min(580px, calc(100% - 32px));
  margin-top: 14vh;
}
.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}
.search-input-wrap > svg {
  color: #8fa194;
}
.search-input-wrap input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: none;
  font-size: 14px;
  color: var(--ink);
}
.key-button {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 10px;
  color: #98a69b;
}
.search-caption {
  font-size: 10px;
  color: #9ba99f;
  font-weight: 450;
  padding: 16px 20px 8px;
}
#search-results {
  max-height: 380px;
  overflow: auto;
  padding: 0 8px 12px;
}
.search-result {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 11px 13px;
  border-radius: 6px;
}
.search-result:hover {
  background: #f2f7f3;
}
.search-result > svg {
  width: 16px;
  color: #75977f;
}
.search-result > div {
  display: grid;
  gap: 4px;
  flex: 1;
}
.search-result strong {
  font-size: 12px;
  font-weight: 500;
}
.search-result small {
  font-size: 10px;
  color: #96a399;
}
.search-result > span {
  font-size: 9px;
  color: #a3afa6;
}
.search-hint {
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: #99a69d;
}
.info-dialog {
  width: min(600px, calc(100% - 30px));
  max-height: 85vh;
}
.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 23px;
  border-bottom: 1px solid var(--line);
}
.dialog-header h2 {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.4px;
}
.dialog-content {
  padding: 21px 23px;
}
.dialog-content > p {
  font-size: 13px;
  color: #7a8d80;
  line-height: 1.7;
  margin-bottom: 18px;
}
.source-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.source-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 11px;
  color: var(--green);
}
.source-list a svg {
  width: 14px;
}
.dialog-note {
  font-size: 11px;
  color: #98a69c;
  margin-top: 18px;
  line-height: 1.65;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #fff;
  color: #526e5a;
  box-shadow: 0 8px 32px #16332424;
  border: 1px solid #d8e6dc;
  border-radius: 8px;
  padding: 12px 17px;
  font-size: 12px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  max-width: calc(100% - 32px);
  transition:
    opacity 0.18s,
    transform 0.18s;
  display: flex;
  align-items: center;
  gap: 9px;
}
.toast svg {
  width: 15px;
  color: #62a178;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.agent-grid .empty-state {
  grid-column: 1/-1;
}
.compact-detail {
  display: grid;
  gap: 12px;
}
.compact-detail div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  font-size: 12px;
  line-height: 1.5;
}
.compact-detail span {
  color: var(--muted);
}
.compact-detail strong {
  font-weight: 450;
}
.dialog-actions {
  display: flex;
  gap: 9px;
  margin-top: 22px;
}
.dialog-actions .button {
  flex: 1;
}
.inspector-mobile-hint {
  display: none;
}
@media (min-width: 1650px) {
  main {
    padding-left: 40px;
    padding-right: 40px;
  }
  .map-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
  .process-map {
    padding: 30px 33px 22px;
  }
  .process-node {
    min-height: 130px;
    padding: 14px;
  }
  .node-flag {
    margin: 8px -14px -14px;
    padding: 8px 12px;
  }
  .process-node h4 {
    font-size: 13px;
  }
  .node-subtitle {
    font-size: 11px;
  }
  .node-footer {
    font-size: 10px;
  }
  .lane {
    margin-bottom: 29px;
  }
  .map-scroll {
    min-height: 477px;
  }
  .inspector-body {
    padding: 20px;
  }
  .inspector-summary,
  .recommendation p {
    font-size: 12px;
  }
  .inspector-section h3,
  .inspector-facts span {
    font-size: 11px;
  }
  .evidence-list li {
    font-size: 11px;
  }
  .metrics {
    padding: 21px 0;
  }
  .metric-value strong {
    font-size: 29px;
  }
}
@media (max-width: 1330px) {
  .app-shell {
    grid-template-columns: 184px minmax(0, 1fr);
  }
  .sidebar {
    padding-left: 10px;
    padding-right: 10px;
  }
  .topbar {
    padding: 0 22px;
  }
  main {
    padding: 25px 22px 20px;
  }
  .map-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 13px;
  }
  .process-map {
    min-width: 655px;
    padding: 20px 17px 17px;
  }
  .lane-nodes {
    gap: 20px;
  }
  .process-node {
    padding: 10px;
    min-height: 113px;
  }
  .process-node:not(:last-child)::after {
    width: 19px;
  }
  .process-node:not(:last-child)::before {
    left: calc(100% + 14px);
  }
  .node-number {
    display: none;
  }
  .node-flag {
    margin: 7px -10px -10px;
    padding: 6px 8px;
    font-size: 8px;
  }
  .node-footer > span:first-child {
    font-size: 8px;
  }
  .map-toolbar {
    padding: 11px 12px;
  }
  .segmented button {
    padding: 6px 8px;
  }
  .toolbar-options {
    gap: 5px;
  }
  .map-scroll {
    min-height: 422px;
  }
  .queue-table th,
  .queue-table td {
    padding-left: 12px;
    padding-right: 12px;
  }
  .queue-table .optional-col {
    display: none;
  }
  .inspector-title h2 {
    font-size: 17px;
  }
  .metrics .metric {
    padding: 0 18px;
  }
  .agent-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .trace-map {
    min-width: 620px;
  }
  .map-bottom {
    padding: 9px 11px;
  }
  .legend {
    gap: 9px;
  }
  .system-card {
    grid-template-columns: 40px minmax(0, 1fr) 110px 130px;
    gap: 12px;
  }
}
@media (max-width: 1130px) {
  .app-shell {
    grid-template-columns: 70px minmax(0, 1fr);
  }
  .sidebar {
    padding: 24px 9px 0;
    align-items: center;
  }
  .brand {
    padding: 0 0 22px;
    width: 43px;
    overflow: hidden;
  }
  .brand img {
    width: 95px;
    max-width: none;
  }
  .brand span,
  .workspace-switch,
  .nav-label,
  .nav-item > span,
  .nav-item b,
  .automation-summary,
  .profile > span:nth-child(2),
  .profile > svg {
    display: none;
  }
  .sidebar nav,
  .sidebar-bottom {
    width: 100%;
  }
  .nav-item {
    justify-content: center;
    padding: 11px;
    margin-bottom: 6px;
  }
  .profile {
    justify-content: center;
  }
  .brand {
    height: 46px;
  }
  .sidebar-bottom {
    padding-bottom: 0;
  }
  .nav-divider {
    margin: 13px 3px;
  }
  .map-layout {
    grid-template-columns: minmax(0, 1fr) 266px;
  }
  .heading-actions .secondary-heading-button {
    display: none;
  }
  .metric-label svg {
    display: none;
  }
  .search-trigger span,
  .search-trigger kbd {
    display: none;
  }
  .topbar-actions {
    gap: 13px;
  }
  .map-context {
    font-size: 9px;
  }
  .queue-table .impact-col {
    display: none;
  }
  .agent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 940px) {
  .map-layout {
    grid-template-columns: 1fr;
  }
  .inspector {
    position: fixed;
    right: 16px;
    top: 80px;
    bottom: 24px;
    width: 310px;
    z-index: 60;
    overflow: auto;
    box-shadow: 0 12px 65px #28473430;
  }
  .inspector-top {
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
  }
  .map-layout:not(.no-inspector) .map-column {
    opacity: 0.85;
  }
  .map-layout.no-inspector .map-column {
    opacity: 1;
  }
  .process-map {
    min-width: 690px;
  }
  .queue-table .impact-col,
  .queue-table .optional-col {
    display: table-cell;
  }
  .inspector-mobile-hint {
    display: inline;
  }
  .map-scroll {
    min-height: 420px;
  }
  .system-card {
    grid-template-columns: 36px minmax(0, 1fr) 125px;
  }
  .system-stat {
    display: none;
  }
  .metrics .metric {
    padding: 0 16px;
  }
  .metric-value strong {
    font-size: 24px;
  }
  .metric-value > span {
    display: none;
  }
  .legend {
    gap: 14px;
  }
  .trace-map {
    min-width: 600px;
  }
  .trace-controls select {
    max-width: 132px;
  }
}
@media (max-width: 620px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
  .sidebar.open {
    display: flex;
    position: fixed;
    left: 0;
    top: 0;
    width: 205px;
    align-items: stretch;
    box-shadow: 0 0 0 100vmax #16372a45;
  }
  .sidebar.open .brand {
    width: auto;
    height: auto;
    padding: 0 13px 20px;
  }
  .sidebar.open .brand img {
    width: 100px;
  }
  .sidebar.open .brand span,
  .sidebar.open .nav-label,
  .sidebar.open .nav-item > span,
  .sidebar.open .nav-item b {
    display: block;
  }
  .sidebar.open .nav-item {
    justify-content: flex-start;
  }
  .sidebar.open .workspace-switch {
    display: flex;
  }
  .sidebar.open .profile > span:nth-child(2) {
    display: grid;
  }
  .sidebar.open .profile {
    justify-content: flex-start;
  }
  .mobile-nav-toggle {
    display: flex;
  }
  .topbar {
    height: 58px;
    padding: 0 15px;
  }
  .breadcrumbs {
    gap: 7px;
    font-size: 11px;
  }
  .breadcrumbs > span,
  .breadcrumbs > svg {
    display: none;
  }
  .topbar-actions {
    gap: 9px;
  }
  .topbar-actions > .avatar {
    display: none;
  }
  .demo-label {
    font-size: 9px;
  }
  .topbar .icon-button {
    width: 26px;
  }
  .search-trigger {
    padding: 0;
  }
  main {
    padding: 22px 15px 18px;
  }
  h1 {
    font-size: 25px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 17px;
  }
  .page-heading p {
    font-size: 11px;
    max-width: 240px;
    line-height: 1.6;
    margin-top: 7px;
  }
  .heading-actions .button {
    padding: 7px 9px;
    font-size: 10px;
  }
  .heading-actions .button > svg {
    display: none;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
    padding: 0;
    margin-bottom: 14px;
  }
  .metric {
    padding: 13px 15px !important;
  }
  .metric:nth-child(2) {
    border-right: 0;
  }
  .metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .metric-value {
    margin: 3px 0;
  }
  .metric-value strong {
    font-size: 24px;
  }
  .metric-label {
    font-size: 10px;
  }
  .metric > small {
    font-size: 9px;
  }
  .attention-banner {
    align-items: flex-start;
    padding: 10px;
    gap: 8px;
    margin-bottom: 14px;
  }
  .attention-banner p {
    font-size: 10px;
  }
  .attention-banner > .text-button {
    display: none;
  }
  .attention-banner > svg {
    width: 15px;
    height: 15px;
    margin-top: 2px;
  }
  .map-toolbar {
    gap: 8px;
    flex-wrap: wrap;
  }
  .segmented button {
    font-size: 10px;
    padding: 6px 8px;
  }
  .toolbar-options select {
    max-width: 109px;
    font-size: 9px;
  }
  .toolbar-options .separator {
    display: none;
  }
  .process-map {
    min-width: 660px;
    padding: 19px 16px;
  }
  .map-bottom {
    align-items: flex-start;
    gap: 7px;
    font-size: 8px;
  }
  .legend {
    gap: 8px;
    flex-wrap: wrap;
  }
  .map-context {
    padding: 9px 2px;
  }
  .map-layout:not(.no-inspector) .map-column {
    opacity: 1;
  }
  .inspector {
    width: calc(100% - 24px);
    right: 12px;
    top: auto;
    bottom: 12px;
    max-height: 80vh;
    border-radius: 11px;
    box-shadow:
      0 0 0 100vmax #16372a35,
      0 -5px 30px #16372a20;
  }
  .inspector-body {
    padding: 18px;
  }
  .inspector-title h2 {
    font-size: 20px;
  }
  .inspector-summary,
  .recommendation p {
    font-size: 12px;
  }
  .inspector-facts span,
  .inspector-section h3 {
    font-size: 11px;
  }
  .inspector-facts strong,
  .owner-row strong {
    font-size: 12px;
  }
  .impact-box p,
  .evidence-list li {
    font-size: 11px;
  }
  .recommendation .button {
    min-height: 41px;
    font-size: 12px;
  }
  .queue-table {
    min-width: 570px;
  }
  .queue-table .optional-col {
    display: none;
  }
  .queue-table .impact-col {
    display: table-cell;
  }
  .section-bar {
    padding: 12px;
  }
  .section-bar h2 {
    font-size: 11px;
  }
  .section-bar .text-button {
    font-size: 10px;
  }
  .workspace-footer {
    padding: 12px 15px;
    font-size: 9px;
  }
  .workspace-footer button {
    display: none;
  }
  .agent-grid {
    grid-template-columns: 1fr;
  }
  .inline-search {
    flex: 1;
    min-width: 0;
  }
  .inline-search input {
    min-width: 0;
    width: 100%;
  }
  .view-toolbar {
    gap: 7px;
  }
  .filter-select {
    max-width: 140px;
    font-size: 10px;
  }
  .system-card {
    grid-template-columns: 34px 1fr;
    padding: 15px;
    gap: 11px;
  }
  .system-card > .button {
    grid-column: 2;
    justify-self: start;
  }
  .system-logo {
    width: 34px;
    height: 34px;
  }
  .system-card h3 {
    font-size: 13px;
  }
  .event {
    grid-template-columns: 35px 23px 1fr;
    gap: 8px;
    padding: 15px 12px;
  }
  .event time {
    font-size: 9px;
  }
  .event p {
    font-size: 11px;
  }
  .event-tag {
    display: none;
  }
  .event .avatar {
    width: 23px;
    height: 23px;
    font-size: 8px;
  }
  .trace-header {
    padding: 14px;
    flex-wrap: wrap;
  }
  .trace-controls {
    width: 100%;
    justify-content: space-between;
  }
  .trace-map {
    min-width: 580px;
    padding: 22px 17px;
  }
  .trace-person small {
    font-size: 9px;
  }
  .trace-grid {
    gap: 40px 22px;
  }
  .trace-node {
    min-height: 132px;
  }
  .trace-node h4 {
    font-size: 12px;
  }
  .trace-node:nth-of-type(4)::before,
  .trace-node:nth-of-type(5)::before {
    right: calc(100% + 16px);
  }
  .trace-node:nth-of-type(4)::after,
  .trace-node:nth-of-type(5)::after {
    width: 21px;
  }
  .trace-summary {
    font-size: 10px;
  }
  .page-heading .heading-actions {
    flex-shrink: 0;
  }
  .toast {
    bottom: 17px;
    font-size: 11px;
    width: max-content;
    line-height: 1.5;
  }
  .dialog-header {
    padding: 17px;
  }
  .dialog-content {
    padding: 18px;
  }
  .legend .dot {
    width: 4px;
    height: 4px;
  }
}
.page-heading p,
.metric-label,
.metric > small,
.node-subtitle,
.node-footer,
.node-health,
.lane-head,
.lane-head span,
.map-context,
.legend,
.map-bottom,
.inspector-top,
.inspector-summary,
.inspector-facts span,
.inspector-section h3,
.evidence-list li,
.recommendation p,
.owner-row small,
.queue-table th,
.queue-table td,
.issue-cell small,
.agent-tile p,
.system-card p,
.event small,
.search-result small,
.search-hint,
.priority-row,
.trace-person small,
.trace-summary,
.workspace-footer,
.workspace-footer button {
  color: #66766c;
}
.impact-box p {
  color: #846e43;
}
.impact-box.blocked p {
  color: #985e54;
}
.impact-box.good p {
  color: #587c62;
}
.process-node h4 {
  font-weight: 550;
}
.nav-item {
  white-space: nowrap;
}
.metric-value strong span {
  display: inline;
}
.workspace-switch strong {
  font-size: 11px;
}
.node-number {
  color: #809087;
}
.node-health {
  font-size: 10px;
}
.node-footer {
  font-size: 10px;
}
.legend svg {
  width: 12px;
  height: 12px;
}
.agent-tile-footer button {
  display: flex;
  gap: 4px;
  align-items: center;
}
.agent-tile-footer button svg {
  width: 12px;
  height: 12px;
}
.status-pill {
  color: #477552;
}
.process-node.blue {
  border-color: #cbdbe7;
  background: #f9fcff;
}
.process-node.blue .node-health,
.process-node.blue .node-flag {
  color: #527598;
}
.process-node.blue .node-flag {
  background: #edf4fa;
  border-color: #dbe7f1;
}
.inspector-body {
  display: flex;
  flex-direction: column;
}
.inspector-body > .status-pill {
  align-self: flex-start;
}
.inspector-body > .recommendation {
  order: 2;
}
.inspector-body > .inspector-section {
  order: 3;
}
.inspector-body > .priority-row {
  order: 4;
}
.inspector-body > .inspect-link {
  order: 5;
}
@media (min-width: 941px) and (max-height: 950px) {
  main {
    padding-top: 21px;
  }
  .page-heading {
    margin-bottom: 18px;
  }
  .metrics {
    padding: 9px 0;
    margin-bottom: 13px;
  }
  .metric > small {
    display: none;
  }
  .metric-value {
    margin-bottom: 0;
  }
  .attention-banner {
    margin-bottom: 14px;
  }
  .process-map {
    padding-top: 18px;
    padding-bottom: 16px;
  }
  .lane {
    margin-bottom: 14px;
  }
  .lane-head {
    margin-bottom: 10px;
  }
  .lane-nodes .node-subtitle {
    display: none;
  }
  .lane-nodes .process-node {
    min-height: 98px;
  }
  .lane-nodes .node-top {
    margin-bottom: 9px;
  }
  .lane-nodes .process-node h4 {
    margin-bottom: 8px;
  }
  .map-scroll {
    min-height: 0;
  }
  .inspector {
    max-height: calc(100vh - 95px);
    overflow: auto;
  }
  .inspector-top {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
  }
  .inspector-summary {
    margin-bottom: 11px;
  }
  .inspector-facts {
    padding: 10px 0;
    gap: 10px 6px;
    margin-bottom: 12px;
  }
  .inspector-body {
    padding-top: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
.case-list-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.case-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}
.case-filter-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: auto;
}
.case-filter-tabs button {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  padding: 8px 10px;
  font-size: 11px;
  color: #6c7e71;
  border-radius: 5px;
}
.case-filter-tabs button.active {
  background: #edf5ef;
  color: var(--green);
  font-weight: 550;
}
.case-filter-tabs button span {
  font-size: 9px;
  border: 1px solid #e1e9e3;
  border-radius: 4px;
  padding: 1px 5px;
  background: #fff;
  color: #788b7c;
}
.case-list-toolbar .inline-search input {
  width: 165px;
}
.case-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
  min-width: 900px;
}
.case-table th {
  font-size: 12px;
  font-weight: 500;
  color: #5b7163;
  background: #fbfdfb;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.case-table td {
  padding: 17px 16px;
  color: #63786a;
  border-bottom: 1px solid #edf1ed;
}
.case-table tbody tr:last-child td {
  border-bottom: 0;
}
.case-table tbody tr:hover {
  background: #fcfefc;
}
.case-customer {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 0;
}
.case-customer > span:last-child {
  display: grid;
  gap: 4px;
}
.case-customer strong {
  color: #354f3f;
  font-size: 14px;
  font-weight: 550;
  white-space: nowrap;
}
.case-customer small {
  font-size: 11px;
  color: #63786a;
}
.case-owner {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-size: 12px;
}
.case-owner .avatar {
  height: 24px;
  width: 24px;
  font-size: 8px;
}
.case-progress-mini {
  display: flex;
  gap: 8px;
  align-items: center;
}
.case-progress-mini > span {
  width: 63px;
  height: 4px;
  background: #eaf0eb;
  border-radius: 4px;
  overflow: hidden;
  display: block;
}
.case-progress-mini i {
  height: 100%;
  display: block;
  background: #6aa77e;
}
.case-progress-mini small {
  font-size: 11px;
  color: #63786a;
}
.priority-select-mini {
  font-size: 12px;
  color: #506759;
  border: 1px solid #e2e9e3;
  background: #fff;
  border-radius: 4px;
  padding: 5px 6px;
}
.case-table .status-pill {
  font-size: 11px;
}
.case-table .text-button {
  font-size: 12px;
}
.related-cases {
  display: grid;
  gap: 8px;
}
.related-cases button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  background: #fff;
}
.related-cases button:hover {
  background: #f2f7f3;
  border-color: #a6c6b1;
}
.related-cases strong {
  display: block;
  font-size: 12px;
  font-weight: 550;
  color: #354f3f;
}
.related-cases small {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: #607667;
}
.related-cases svg {
  width: 14px;
  color: var(--green);
}
.workspace-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: #778b7e;
  font-size: 11px;
  padding: 17px 2px;
  line-height: 1.5;
}
.workspace-note svg {
  width: 14px;
  height: 14px;
  margin-top: 1px;
}
.case-detail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 19px;
}
.case-detail-heading > div {
  display: flex;
  gap: 17px;
  align-items: center;
  font-size: 11px;
  color: #7b8f81;
}
.save-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
}
.save-indicator svg {
  width: 13px;
  height: 13px;
  color: #86a48c;
}
.case-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 302px;
  gap: 18px;
  align-items: start;
}
.case-detail-layout.no-inspector {
  grid-template-columns: 1fr;
}
.case-detail-main {
  min-width: 0;
}
.case-tabs {
  display: flex;
  gap: 22px;
  align-items: center;
  border-bottom: 1px solid #dee7df;
  margin-bottom: 17px;
  min-height: 43px;
}
.case-tabs button {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #829588;
  font-size: 12px;
  padding: 11px 0;
  border-bottom: 2px solid transparent;
  align-self: stretch;
}
.case-tabs button svg {
  width: 15px;
  height: 15px;
}
.case-tabs button.active {
  color: var(--green);
  border-bottom-color: var(--green);
  font-weight: 500;
}
.case-tabs button > span {
  font-size: 9px;
  background: #eaf2ec;
  color: #688273;
  border-radius: 4px;
  padding: 1px 5px;
}
.case-detail-main .map-scroll {
  min-height: 0;
}
.case-detail-main .trace-map {
  min-width: 630px;
}
.case-detail-main .trace-controls select {
  max-width: 205px;
}
.case-notes {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 18px;
  overflow: hidden;
}
.case-notes .section-bar > .muted {
  font-size: 10px;
}
#case-note-form {
  padding: 15px 17px;
}
#case-note {
  display: block;
  border: 1px solid #e1e9e2;
  border-radius: 6px;
  width: 100%;
  min-height: 83px;
  resize: vertical;
  padding: 11px;
  font-size: 12px;
  color: #526c5b;
  font-family: inherit;
  line-height: 1.6;
  background: #fdfefd;
}
#case-note::placeholder {
  color: #99a79c;
}
.note-form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 10px;
  color: #91a196;
}
.case-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 17px;
  border-top: 1px solid #edf1ed;
}
.case-note > div {
  flex: 1;
  min-width: 0;
}
.note-byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.note-byline strong {
  font-size: 11px;
  font-weight: 550;
  color: #607967;
}
.note-byline time {
  font-size: 9px;
  color: #94a298;
}
.case-note p {
  font-size: 12px;
  color: #728779;
  line-height: 1.7;
  margin-top: 7px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.case-record-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.record-intro {
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}
.record-intro h2 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 7px;
}
.record-intro p {
  font-size: 11px;
  color: #7f9385;
  line-height: 1.6;
}
.evidence-records article {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 17px 22px;
  border-bottom: 1px solid #edf1ed;
}
.evidence-records article > div {
  flex: 1;
  min-width: 0;
}
.evidence-records h3 {
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 5px;
}
.evidence-records p {
  font-size: 11px;
  color: #7a8e80;
  line-height: 1.6;
}
.evidence-records small {
  font-size: 9px;
  color: #8fa295;
  display: block;
  margin-top: 5px;
}
.evidence-step {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid #e2eae3;
  border-radius: 50%;
  font-size: 10px;
  color: #9aaa9d;
  flex-shrink: 0;
}
.evidence-step svg {
  width: 13px;
  height: 13px;
}
.evidence-step.done {
  background: #edf7ef;
  border-color: #d3e6d8;
  color: #679675;
}
.decision-record {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.decision-record strong {
  font-size: 11px;
  font-weight: 500;
  margin-left: 8px;
}
.decision-record p {
  font-size: 12px;
  color: #708779;
  line-height: 1.65;
  margin: 10px 0;
}
.decision-record time {
  font-size: 9px;
  color: #92a397;
}
.record-empty {
  padding: 23px;
  font-size: 11px;
  color: #8fa093;
}
.customer-record-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}
.customer-record-head > .avatar {
  width: 44px;
  height: 44px;
  font-size: 13px;
}
.customer-record-head h2 {
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 5px;
  letter-spacing: -0.4px;
}
.customer-record-head p {
  font-size: 11px;
  color: #879b8b;
}
.customer-facts {
  margin: 0;
  padding: 7px 24px;
}
.customer-facts > div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid #edf1ed;
  line-height: 1.6;
  font-size: 12px;
}
.customer-facts dt {
  font-size: 11px;
  color: #8ca08f;
}
.customer-facts dd {
  margin: 0;
  color: #647e6c;
}
.customer-promise {
  display: flex;
  gap: 10px;
  margin: 20px 24px;
  border: 1px solid #ddebe0;
  background: #f6fbf7;
  border-radius: 7px;
  padding: 14px;
}
.customer-promise svg {
  color: #77a184;
}
.customer-promise p {
  font-size: 11px;
  line-height: 1.7;
  color: #789483;
}
.case-form {
  display: grid;
  gap: 18px;
}
.case-form label {
  display: grid;
  gap: 9px;
  font-size: 11px;
  color: #738d7b;
}
.case-form select,
.case-form textarea {
  border: 1px solid #dce6dd;
  border-radius: 6px;
  background: #fff;
  padding: 10px 12px;
  font-size: 12px;
  color: #4b6957;
  width: 100%;
  font-family: inherit;
}
.case-form textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.6;
}
.form-note {
  display: flex;
  gap: 8px;
  background: #f5f9f5;
  border-radius: 6px;
  padding: 12px;
  color: #819c88;
  font-size: 10px;
  line-height: 1.5;
}
.form-note svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.case-form .button {
  justify-self: end;
  min-height: 38px;
}
.snapshot-label {
  display: block;
  font-size: 11px;
  color: #809487;
  margin-bottom: 8px;
}
.snapshot-preview {
  display: block;
  width: 100%;
  height: 245px;
  resize: vertical;
  border: 1px solid #e0e7e1;
  background: #f8fbf8;
  border-radius: 6px;
  padding: 12px;
  font:
    10px/1.6 ui-monospace,
    SFMono-Regular,
    monospace;
  color: #627b6a;
}
@media (max-width: 1330px) {
  .case-detail-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 14px;
  }
  .case-list-toolbar {
    flex-wrap: wrap;
  }
  .case-detail-main .trace-map {
    min-width: 600px;
  }
  .case-table {
    min-width: 760px;
  }
  .case-table th,
  .case-table td {
    padding-left: 12px;
    padding-right: 12px;
  }
  .case-filter-tabs {
    gap: 2px;
  }
  .case-filter-tabs button {
    padding: 7px 8px;
  }
}
@media (max-width: 940px) {
  .case-detail-layout {
    grid-template-columns: 1fr;
  }
  .case-detail-heading > div {
    gap: 10px;
  }
  .case-table {
    min-width: 790px;
  }
  .case-detail-main .trace-map {
    min-width: 660px;
  }
  .case-list-toolbar {
    padding: 12px;
    gap: 12px;
  }
}
@media (max-width: 620px) {
  .case-detail-heading {
    align-items: flex-start;
    margin-bottom: 13px;
  }
  .case-detail-heading > div {
    flex-wrap: wrap;
    gap: 8px;
    font-size: 10px;
  }
  .case-detail-heading > .button {
    font-size: 9px;
    padding: 6px;
    min-width: 80px;
    white-space: normal;
  }
  .case-detail-heading .save-indicator {
    width: 100%;
    font-size: 9px;
  }
  .case-tabs {
    gap: 19px;
    margin-bottom: 13px;
  }
  .case-tabs button {
    font-size: 10px;
    gap: 5px;
  }
  .case-tabs button svg {
    width: 12px;
  }
  .case-tabs button > span {
    display: none;
  }
  .case-detail-main .trace-map {
    min-width: 580px;
  }
  .case-list-toolbar .inline-search {
    flex-basis: 100%;
  }
  .case-filter-tabs {
    width: 100%;
  }
  .case-filter-tabs button {
    font-size: 10px;
    padding: 7px;
  }
  .case-list-toolbar .inline-search input {
    width: 100%;
  }
  .workspace-note {
    font-size: 10px;
  }
  .case-notes .section-bar > .muted {
    display: none;
  }
  #case-note-form {
    padding: 12px;
  }
  .note-form-footer span {
    font-size: 9px;
    max-width: 155px;
  }
  .note-form-footer .button {
    font-size: 10px;
  }
  .case-note {
    padding: 13px;
    gap: 8px;
  }
  .note-byline {
    flex-wrap: wrap;
    gap: 4px;
  }
  .case-note p {
    font-size: 11px;
  }
  .case-note > .avatar {
    width: 24px;
    height: 24px;
    font-size: 8px;
  }
  .case-record-panel .record-intro {
    padding: 17px;
  }
  .evidence-records article {
    padding: 14px;
    gap: 9px;
    align-items: flex-start;
  }
  .evidence-records article > .status-pill {
    font-size: 8px;
  }
  .evidence-records h3 {
    font-size: 11px;
  }
  .evidence-records p {
    font-size: 10px;
  }
  .decision-record {
    padding: 16px;
  }
  .customer-record-head {
    padding: 19px;
  }
  .customer-record-head h2 {
    font-size: 17px;
  }
  .customer-facts {
    padding: 5px 19px;
  }
  .customer-facts > div {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 13px 0;
    font-size: 11px;
  }
  .customer-promise {
    margin: 15px;
    padding: 12px;
  }
  .case-detail-main .trace-controls select {
    max-width: 210px;
  }
  .case-list-panel ~ .workspace-note {
    padding-left: 0;
  }
  .heading-actions .button[data-action="run-eligible"] {
    display: none;
  }
}
