.seg-demo-notice {
  padding: 12px 15px;
  border: 1px solid #3a5272;
  border-left: 3px solid #83b8ff;
  background: #132238;
  border-radius: 9px;
  margin-bottom: 18px;
  font-size: 11px;
  line-height: 1.7;
  color: #a9bfd7;
  display: grid;
  gap: 3px;
}
.seg-demo-notice strong {
  font-size: 12px;
  color: #cee3ff;
}
.seg-command .inventory-heading h3 {
  font-size: 22px;
}
.seg-command .inventory-heading-main {
  align-items: flex-start;
}
.seg-command .inventory-emblem {
  color: #c3aeff;
  background: linear-gradient(145deg, #3b3268, #263d61);
  border-color: #75629b;
}
.seg-reset,
.seg-isolate {
  border: 1px solid #5f5189;
  background: linear-gradient(125deg, #2e3157, #282241);
  color: #dfd3ff;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
}
.seg-reset:hover,
.seg-isolate:hover {
  border-color: #b598ff;
}
.seg-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.seg-stats > div {
  padding: 14px 15px;
  border: 1px solid #30465e;
  background: linear-gradient(130deg, #192c42, #111d2e);
  border-top: 2px solid var(--stat);
  border-radius: 10px;
}
.seg-stats span {
  display: block;
  font-size: 11px;
  color: #a2bad1;
  min-height: 16px;
}
.seg-stats b {
  display: block;
  color: var(--stat);
  font-size: 29px;
  font-weight: 750;
  line-height: 1.2;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}
.seg-stats small {
  font-size: 9px;
  font-weight: 500;
  color: #7d99b5;
  letter-spacing: 0;
}
.seg-principles {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 17px;
}
.seg-principles > span {
  padding: 5px 8px;
  border: 1px solid #34475e;
  border-radius: 5px;
  color: #a6bfd7;
  font-size: 9px;
  background: #111f31;
}
.seg-panel {
  padding: 23px;
  border: 1px solid #30445d;
  background: linear-gradient(145deg, #132239, #0d1929 65%);
  border-radius: 14px;
  margin-bottom: 20px;
  box-shadow: 0 10px 25px #0002;
}
.seg-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}
.seg-panel h3,
.seg-section-title h3 {
  margin: 0 0 7px;
  font-size: 18px;
  letter-spacing: -0.25px;
  color: #e9f3ff;
}
.seg-panel-head p:not(.inventory-eyebrow),
.seg-inspector p:not(.inventory-eyebrow) {
  margin: 0;
  font-size: 11px;
  line-height: 1.7;
  color: #98afc8;
}
.seg-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  color: #acbfd4;
  white-space: nowrap;
  padding-top: 4px;
}
.seg-dot {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  display: inline-block;
  margin-left: 8px;
}
.seg-dot.violet {
  background: #b598ff;
}
.seg-dot.teal {
  background: #55dcd5;
}
.seg-diagram-scroll {
  overflow-x: auto;
  background:
    radial-gradient(ellipse at 35% 20%, #24254533, transparent 65%), #0a1625;
  border: 1px solid #273c53;
  border-radius: 11px;
  padding: 13px 8px;
}
.seg-diagram {
  display: block;
  width: 100%;
  min-width: 800px;
  height: auto;
}
.seg-column-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  fill: #819fbd;
  font-weight: 650;
}
.seg-node {
  cursor: pointer;
  outline: none;
}
.seg-node:hover > rect:first-of-type,
.seg-node:focus-visible > rect:first-of-type {
  stroke: #e7eeff;
  stroke-width: 2;
}
.seg-route {
  opacity: 0.67;
}
.seg-route.route-selected {
  opacity: 1;
}
.seg-graph-note {
  display: flex;
  align-items: baseline;
  gap: 15px;
  line-height: 1.7;
  font-size: 10px;
  color: #8ca6c1;
  margin-top: 13px;
}
.seg-graph-note b {
  color: #71dec5;
  white-space: nowrap;
}
.seg-inspector {
  border-left: 3px solid #b598ff;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 17px;
}
.seg-inspector > div:nth-child(2) {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 10px;
}
.seg-inspector > div:nth-child(2) > small {
  font-size: 9px;
  color: #829bb7;
}
.seg-identity {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
  font-size: 10px;
  color: #87a3bd;
}
.seg-identity code,
.seg-identity span {
  border: 1px solid #374a63;
  background: #142338;
  padding: 4px 7px;
  border-radius: 5px;
  color: #c4cee5;
}
.seg-selected-rules {
  grid-column: 1/-1;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  padding-top: 13px;
  border-top: 1px solid #2d4058;
  font-size: 10px;
  color: #8da6c0;
}
.seg-selected-rules span {
  border: 1px solid #38445d;
  border-radius: 5px;
  padding: 5px 8px;
  background: #172337;
}
.seg-selected-rules b {
  color: #c2adf1;
}
.seg-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 26px 0 13px;
}
.seg-section-title > span {
  font-size: 10px;
  color: #8eabc7;
  border: 1px solid #30465f;
  border-radius: 20px;
  padding: 6px 10px;
  white-space: nowrap;
}
.seg-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 14px;
  margin-bottom: 25px;
}
.seg-workload {
  padding-top: 17px;
}
.seg-card-selected {
  border-color: var(--asset-accent);
  box-shadow: 0 0 0 1px rgba(var(--asset-rgb), 0.1);
}
.seg-workload .inventory-asset-top {
  margin-bottom: 12px;
}
.seg-workload-id {
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 1px;
  color: var(--asset-accent);
  margin: 0 0 7px;
}
.seg-workload h4 {
  font-size: 15px;
}
.seg-purpose {
  color: #94abc4;
  font-size: 10px;
  line-height: 1.7;
  margin: 7px 0 14px;
  min-height: 50px;
}
.seg-boundary {
  border: 1px solid #30435c;
  background: #0d1929;
  border-radius: 8px;
  padding: 10px;
}
.seg-boundary > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  font-size: 9px;
}
.seg-boundary span {
  color: #90a9c3;
}
.seg-boundary b {
  color: #cfdeef;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 9px;
  font-weight: 550;
  text-align: right;
}
.seg-boundary .seg-ok {
  color: #78daba;
}
.seg-boundary .seg-warn {
  color: #ffc173;
}
.seg-card-routes {
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid #293c54;
  color: #8ca5be;
  font-size: 9px;
  gap: 8px;
}
.seg-card-routes b {
  color: var(--asset-accent);
  font-size: 14px;
  margin-right: 3px;
}
.seg-owner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #b0c4d9;
  font-size: 10px;
  padding: 13px 0;
}
.seg-owner small {
  font-size: 8px;
  border: 1px solid #40526c;
  border-radius: 4px;
  padding: 3px 5px;
  color: #8ca7c2;
}
.seg-inspect {
  border: 0;
  border-top: 1px solid #2b4057;
  border-radius: 0;
  margin: 0 -18px;
  padding: 11px 16px;
  width: calc(100% + 36px);
  background: rgba(var(--asset-rgb), 0.055);
  color: var(--asset-accent);
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.seg-inspect:hover {
  background: rgba(var(--asset-rgb), 0.13);
}
.seg-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  padding: 4px 7px;
  border: 1px solid #47566d;
  font-size: 9px;
  font-weight: 650;
  white-space: nowrap;
}
.seg-status.approved {
  background: #16382e;
  border-color: #2e6755;
  color: #80e1bc;
}
.seg-status.pending {
  background: #3c3021;
  border-color: #6d5332;
  color: #ffd096;
}
.seg-status.denied {
  background: #38273c;
  border-color: #65445f;
  color: #e1aacb;
}
.seg-rule-filter {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 10px;
  color: #92acc6;
  white-space: nowrap;
}
.seg-rule-filter select,
.seg-approval-select {
  border: 1px solid #40536e;
  background: #17273a;
  color: #d4e3f7;
  border-radius: 6px;
  padding: 7px 8px;
  font-size: 10px;
}
.seg-table-scroll {
  overflow-x: auto;
  border: 1px solid #2c425b;
  border-radius: 9px;
}
.seg-rule-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 900px;
}
.seg-rule-table th {
  text-align: left;
  padding: 12px 13px;
  background: #15263c;
  font-size: 9px;
  letter-spacing: 0.6px;
  color: #96b1cc;
  border-bottom: 1px solid #30465e;
  text-transform: uppercase;
}
.seg-rule-table td {
  vertical-align: top;
  padding: 14px 13px;
  font-size: 10px;
  color: #b5cbe1;
  border-bottom: 1px solid #273c54;
  line-height: 1.6;
}
.seg-rule-table tr:last-child td {
  border-bottom: 0;
}
.seg-rule-table td:first-child {
  min-width: 200px;
  max-width: 250px;
}
.seg-rule-table td:nth-child(2) {
  min-width: 150px;
  max-width: 210px;
}
.seg-rule-table td:nth-child(3) {
  min-width: 190px;
  max-width: 260px;
}
.seg-rule-table td:last-child {
  min-width: 160px;
  max-width: 200px;
}
.seg-rule-table b {
  color: #e1ebfa;
  font-size: 11px;
  font-weight: 650;
}
.seg-rule-table small {
  display: block;
  color: #829eb9;
  font-size: 9px;
  line-height: 1.65;
  margin-top: 5px;
}
.seg-rule-table code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 10px;
  color: #c8b6f6;
}
.seg-operation {
  display: block;
  color: #79d9d2 !important;
  margin: 5px 0;
}
.seg-approval-select.approved {
  border-color: #367b62;
  color: #88e6c1;
  background: #17372d;
}
.seg-approval-select.pending {
  border-color: #76603b;
  color: #ffcb87;
  background: #382f21;
}
.seg-approval-select.denied {
  border-color: #74516c;
  color: #e2b5d4;
  background: #35263a;
}
.seg-events {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.seg-events li {
  border-left: 2px solid #6f69a5;
  background: #13233a;
  padding: 9px 12px;
  color: #a7bed7;
  font-size: 10px;
  line-height: 1.7;
  border-radius: 0 6px 6px 0;
}
.seg-muted {
  font-size: 9px;
  color: #7e9ab6;
}
.seg-design-contract summary {
  font-weight: 650;
  font-size: 12px;
  color: #c2d7ef;
  cursor: pointer;
}
.seg-design-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin-top: 18px;
}
.seg-design-grid article {
  border: 1px solid #2c425d;
  border-radius: 9px;
  padding: 15px;
  background: #101f32;
}
.seg-design-grid b {
  color: #bba7ef;
  font-size: 11px;
}
.seg-design-grid p {
  color: #95adc7;
  font-size: 11px;
  line-height: 1.8;
  margin: 9px 0 0;
}
.seg-no-rules {
  color: #8da6bf;
  font-size: 11px;
  padding: 12px;
}
@media (min-width: 1500px) {
  .seg-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1050px) {
  .seg-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .seg-panel-head {
    flex-wrap: wrap;
  }
  .seg-command .inventory-heading h3 {
    font-size: 20px;
  }
}
@media (max-width: 600px) {
  .seg-command .inventory-heading {
    align-items: flex-start;
  }
  .seg-command .inventory-heading h3 {
    font-size: 18px;
  }
  .seg-command .inventory-emblem {
    display: none;
  }
  .seg-command .inventory-subtitle {
    font-size: 10px;
  }
  .seg-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .seg-stats > div:last-child {
    grid-column: 1/-1;
  }
  .seg-stats > div {
    padding: 12px;
  }
  .seg-stats b {
    font-size: 26px;
  }
  .seg-panel {
    padding: 16px;
  }
  .seg-panel h3 {
    font-size: 16px;
  }
  .seg-graph-note {
    display: block;
  }
  .seg-graph-note span {
    display: block;
    margin-top: 5px;
  }
  .seg-inspector {
    grid-template-columns: 1fr;
  }
  .seg-inspector > div:nth-child(2) {
    justify-items: start;
  }
  .seg-card-grid,
  .seg-design-grid {
    grid-template-columns: 1fr;
  }
  .seg-purpose {
    min-height: 0;
  }
  .seg-section-title > span {
    font-size: 9px;
  }
  .seg-section-title .inventory-eyebrow {
    font-size: 8px;
  }
  .seg-reset {
    font-size: 9px;
    padding: 8px;
  }
  .seg-diagram {
    min-width: 800px;
  }
}

/* Preserve compact rule controls; workload cards use their original vibrant styling. */
.seg-selected-rules {
  font-size: 9px;
  gap: 6px;
}
.seg-selected-rules span {
  padding: 4px 7px;
  border-radius: 4px;
}
.seg-rule-table th {
  font-size: 8px;
  padding: 10px 12px;
}
.seg-rule-table td {
  font-size: 9px;
  padding: 12px;
}
.seg-rule-table b {
  font-size: 10px;
}
.seg-rule-table small {
  font-size: 8px;
}
.seg-rule-table code {
  font-size: 9px;
}
.seg-approval-select {
  font-size: 9px;
  padding: 6px 7px;
  border-radius: 5px;
}
.seg-rule-table .seg-status {
  font-size: 8px;
  padding: 3px 6px;
  border-radius: 4px;
}

/* AI agent workload cards: two font steps larger, one spacing step smaller. */
.seg-agent-grid {
  gap: 12px;
}
.seg-agent-grid .seg-workload {
  padding: 15px 16px 0;
  border-radius: 11px;
}
.seg-agent-grid .inventory-asset-top {
  margin-bottom: 10px;
}
.seg-agent-grid .inventory-asset-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}
.seg-agent-grid .seg-workload-id {
  font-size: 11px;
  letter-spacing: 0.8px;
  margin: 0 0 5px;
}
.seg-agent-grid .seg-workload h4 {
  font-size: 17px;
  margin-bottom: 5px;
}
.seg-agent-grid .seg-status {
  font-size: 11px;
  padding: 3px 6px;
}
.seg-agent-grid .seg-purpose {
  font-size: 12px;
  line-height: 1.5;
  min-height: 0;
  margin: 5px 0 10px;
}
.seg-agent-grid .seg-boundary {
  padding: 8px;
  border-radius: 7px;
}
.seg-agent-grid .seg-boundary > div {
  font-size: 11px;
  padding: 3px 0;
  gap: 8px;
  line-height: 1.35;
}
.seg-agent-grid .seg-boundary b {
  font-size: 11px;
}
.seg-agent-grid .seg-card-routes {
  padding: 9px 0;
  font-size: 11px;
}
.seg-agent-grid .seg-card-routes b {
  font-size: 16px;
}
.seg-agent-grid .seg-owner {
  font-size: 12px;
  padding: 9px 0;
}
.seg-agent-grid .seg-owner small {
  font-size: 10px;
  padding: 2px 4px;
}
.seg-agent-grid .seg-inspect {
  font-size: 12px;
  margin: 0 -16px;
  width: calc(100% + 32px);
  padding: 9px 14px;
}

/* Matching MCP cards: larger text and compact spacing. */
/* AI agent workload cards: two font steps larger, one spacing step smaller. */
.seg-mcp-grid {
  gap: 12px;
}
.seg-mcp-grid .seg-workload {
  padding: 15px 16px 0;
  border-radius: 11px;
}
.seg-mcp-grid .inventory-asset-top {
  margin-bottom: 10px;
}
.seg-mcp-grid .inventory-asset-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}
.seg-mcp-grid .seg-workload-id {
  font-size: 11px;
  letter-spacing: 0.8px;
  margin: 0 0 5px;
}
.seg-mcp-grid .seg-workload h4 {
  font-size: 17px;
  margin-bottom: 5px;
}
.seg-mcp-grid .seg-status {
  font-size: 11px;
  padding: 3px 6px;
}
.seg-mcp-grid .seg-purpose {
  font-size: 12px;
  line-height: 1.5;
  min-height: 0;
  margin: 5px 0 10px;
}
.seg-mcp-grid .seg-boundary {
  padding: 8px;
  border-radius: 7px;
}
.seg-mcp-grid .seg-boundary > div {
  font-size: 11px;
  padding: 3px 0;
  gap: 8px;
  line-height: 1.35;
}
.seg-mcp-grid .seg-boundary b {
  font-size: 11px;
}
.seg-mcp-grid .seg-card-routes {
  padding: 9px 0;
  font-size: 11px;
}
.seg-mcp-grid .seg-card-routes b {
  font-size: 16px;
}
.seg-mcp-grid .seg-owner {
  font-size: 12px;
  padding: 9px 0;
}
.seg-mcp-grid .seg-owner small {
  font-size: 10px;
  padding: 2px 4px;
}
.seg-mcp-grid .seg-inspect {
  font-size: 12px;
  margin: 0 -16px;
  width: calc(100% + 32px);
  padding: 9px 14px;
}

/* Business-rule approval register: two font steps larger. */
.seg-rule-panel h3 {
  font-size: 20px;
}
.seg-rule-panel .inventory-eyebrow {
  font-size: 11px;
}
.seg-rule-panel .seg-panel-head p:not(.inventory-eyebrow) {
  font-size: 13px;
}
.seg-rule-panel .seg-rule-filter {
  font-size: 12px;
}
.seg-rule-panel .seg-rule-filter select {
  font-size: 12px;
}
.seg-rule-panel .seg-rule-table th {
  font-size: 10px;
}
.seg-rule-panel .seg-rule-table td {
  font-size: 11px;
}
.seg-rule-panel .seg-rule-table b {
  font-size: 12px;
}
.seg-rule-panel .seg-rule-table small {
  font-size: 10px;
}
.seg-rule-panel .seg-rule-table code {
  font-size: 11px;
}
.seg-rule-panel .seg-approval-select {
  font-size: 11px;
}
.seg-rule-panel .seg-rule-table .seg-status {
  font-size: 10px;
}
.seg-rule-panel .seg-no-rules {
  font-size: 13px;
}
@media (max-width: 600px) {
  .seg-rule-panel h3 {
    font-size: 18px;
  }
}

.seg-kill-switch{cursor:pointer;outline:none}.seg-kill-switch:hover rect{fill:#ed536a}.seg-kill-switch:focus-visible rect{stroke:#fff;stroke-width:2}.seg-kill-switch text{pointer-events:none}
