:root {
  color-scheme:dark;
  --paper:#121417;
  --surface:#1a1d22;
  --ink:#edf0f4;
  --muted:#a7afbb;
  --line:#343a43;
  --sidebar:#101216;
  --accent:#d1d8e2;
  --accent-ink:#252b33;
  --green:#9fc6ad;
  --amber:#dbb77a;
  --red:#e4a099;
  --radius:14px;
  --font:"Avenir Next","Apple SD Gothic Neo","Malgun Gothic",sans-serif;
  --mono:"SFMono-Regular",Consolas,"Liberation Mono",monospace;
}

* {
  box-sizing:border-box;
}

html {
  scroll-behavior:smooth;
}

body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  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;
}

button:disabled {
  cursor:wait;
}

button,a,input,select {
  outline-offset:4px;
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible {
  outline:2px solid #b8c7db;
}

a {
  color:inherit;
}

button {
  color:inherit;
}

svg {
  width:18px;
  height:18px;
  display:block;
  flex:none;
}

button svg {
  pointer-events:none;
}

h1,h2,h3,p {
  margin:0;
}

button {
  border:0;
}

button:disabled {
  opacity:.6;
}

.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

[hidden] {
  display:none!important;
}

.skip-link {
  position:fixed;
  top:-100px;
  left:16px;
  z-index:100;
  background:var(--accent);
  padding:12px 18px;
  border-radius:8px;
}

.skip-link:focus {
  top:12px;
}

.app-shell {
  display:grid;
  grid-template-columns:234px minmax(0,1fr);
  min-height:100vh;
}

.sidebar {
  position:sticky;
  top:0;
  height:100vh;
  display:flex;
  flex-direction:column;
  padding:35px 20px 20px;
  background:var(--sidebar);
  color:#a7afbb;
}

.brand {
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  padding:0 10px;
}

.brand-mark {
  width:31px;
  height:31px;
  border:1.3px solid #b9c4d3;
  border-radius:50%;
  position:relative;
  flex:none;
  display:flex;
  align-items:center;
  justify-content:center;
}

.brand-mark:before {
  content:"";
  position:absolute;
  width:42px;
  height:13px;
  border:1.3px solid #b9c4d3;
  border-radius:50%;
  transform:rotate(-43deg);
}

.brand-mark span {
  width:8px;
  height:8px;
  background:#c4cdd9;
  border-radius:50%;
}

.brand-kicker {
  display:block;
  font-size:9px;
  letter-spacing:2.5px;
  font-weight:650;
  color:#a7afbb;
  margin-bottom:2px;
}

.brand strong {
  font-size:21px;
  color:#edf0f4;
  letter-spacing:-.8px;
  font-weight:600;
}

.brand-dot {
  color:var(--accent);
}

.workspace-label {
  margin:36px 10px 34px;
  display:flex;
  align-items:center;
  gap:8px;
  font-family:var(--mono);
  font-size:9px;
  letter-spacing:1.1px;
  color:#a7afbb;
}

.tiny-dot {
  width:5px;
  height:5px;
  border-radius:50%;
  display:inline-block;
  flex:none;
  background:#8997a6;
}

.workspace-version {
  margin-left:auto;
  font-size:9px;
  color:#a7afbb;
  border:1px solid #343a43;
  padding:2px 4px;
  border-radius:3px;
}

.nav-label {
  font-size:9px;
  letter-spacing:1.8px;
  font-weight:600;
  color:#a7afbb;
  margin:0 13px 13px;
}

.navigation {
  display:flex;
  flex-direction:column;
  gap:5px;
}

.nav-section-label {
  margin:26px 13px 9px;
  color:#7f8b9c;
  font-family:var(--mono);
  font-size:9px;
  font-weight:500;
  letter-spacing:1.8px;
}

.nav-item {
  background:transparent;
  display:flex;
  align-items:center;
  gap:12px;
  min-height:46px;
  border-radius:8px;
  padding:10px 13px;
  text-align:left;
  color:#a7afbb;
  transition:background .15s,color .15s;
  font-size:13px;
  white-space:nowrap;
}

.nav-item:hover {
  background:#252a32;
  color:#a7afbb;
}

.nav-item.is-active {
  background:var(--accent);
  color:#20252c;
  font-weight:650;
}

.nav-icon {
  display:flex;
  align-items:center;
  justify-content:center;
}

.nav-icon svg {
  width:17px;
  height:17px;
}

.nav-count {
  margin-left:auto;
  min-width:22px;
  text-align:center;
  border-radius:4px;
  font-family:var(--mono);
  font-size:10px;
  padding:2px 4px;
  color:#a7afbb;
  background:#303640;
}

.nav-shortcut {
  margin-left:auto;
  font-size:15px;
  color:#4f5b6b;
}

.workspace-main {
  min-width:0;
}

.topbar {
  height:77px;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 37px;
  background:rgba(20,23,28,.88);
  gap:12px;
}

.breadcrumb {
  display:flex;
  align-items:center;
  gap:14px;
  font-size:11px;
  color:#a7afbb;
  min-width:0;
  flex:1;
}

.breadcrumb strong {
  font-weight:500;
  color:#a7afbb;
  display:inline-flex;
  align-items:center;
  flex-wrap:wrap;
  gap:7px;
  min-width:0;
}

.breadcrumb strong .text-button {
  min-height:32px;
  font-size:11px;
  color:#d2dbe7;
}

.breadcrumb-divider {
  color:#a7afbb;
}

.topbar-right {
  display:flex;
  align-items:center;
  gap:23px;
}

.locale-switch {
  display:inline-flex;
  align-items:center;
  flex:none;
  gap:3px;
  padding:3px;
  border:1px solid #3c444f;
  border-radius:7px;
  background:#1b2027;
}

.locale-switch button {
  min-width:34px;
  min-height:30px;
  padding:5px 8px;
  border-radius:4px;
  background:transparent;
  color:#9cabbf;
  font-family:var(--mono);
  font-size:10px;
  font-weight:550;
  line-height:1.5;
}

.locale-switch button:hover {
  color:#e5edf8;
  background:#2c3542;
}

.locale-switch button[aria-pressed="true"] {
  color:#20262f;
  background:#cdd7e5;
}

.readonly-pill {
  display:flex;
  align-items:center;
  gap:6px;
  font-size:10px;
  color:#a7afbb;
}

.readonly-pill svg {
  width:13px;
  height:13px;
}

.profile-avatar {
  height:29px;
  width:29px;
  border:1px solid #343a43;
  background:#272d36;
  border-radius:50%;
  display:grid;
  place-items:center;
  color:#a7afbb;
  font-size:9px;
  font-weight:600;
}

main {
  max-width:1790px;
  margin:auto;
  padding:38px 37px 0;
  min-height:calc(100vh - 77px);
  display:flex;
  flex-direction:column;
}

.page-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  margin-bottom:28px;
}

.eyebrow {
  font-family:var(--mono);
  font-size:9px;
  letter-spacing:1.4px;
  font-weight:500;
  color:#a7afbb;
  margin-bottom:11px;
}

h1 {
  font-size:31px;
  letter-spacing:-1.5px;
  line-height:1.35;
  font-weight:650;
}

.heading-dot {
  color:#a7afbb;
}

.page-heading p {
  margin-top:9px;
  font-size:12px;
  line-height:1.8;
  color:#a7afbb;
  word-break:keep-all;
}

.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:1px solid #343a43;
  border-radius:7px;
  min-height:37px;
  padding:8px 12px;
  background:#1a1d22;
  font-size:11px;
  font-weight:600;
  white-space:nowrap;
  transition:background .15s;
}

.button:hover {
  background:#2a3039;
}

.button svg {
  width:14px;
  height:14px;
}

.button-refresh {
  align-self:center;
}

.button-refresh.is-loading svg {
  animation:spin 1.2s linear infinite;
}

.toolbar {
  display:flex;
  align-items:center;
  gap:12px;
  border-bottom:1px solid var(--line);
  padding-bottom:24px;
  margin-bottom:26px;
}

.search-field {
  height:38px;
  display:flex;
  align-items:center;
  gap:9px;
  background:#1a1d22;
  border:1px solid #343a43;
  border-radius:7px;
  padding:0 11px;
  width:280px;
  max-width:100%;
}

.search-field>span svg {
  width:15px;
  height:15px;
  color:#a7afbb;
}

.search-field input {
  border:0;
  outline:0!important;
  width:100%;
  min-width:0;
  font-size:11px;
  background:transparent;
  color:var(--ink);
  height:100%;
}

.search-field:focus-within {
  border-color:#535e6e;
  box-shadow:0 0 0 2px #4a566638;
}

.search-field input::placeholder {
  color:#a7afbb;
}

.search-field kbd {
  border:1px solid #343a43;
  min-width:18px;
  border-radius:3px;
  padding:1px 4px;
  color:#a7afbb;
  font-size:10px;
}

.agent-filter {
  height:38px;
  display:flex;
  align-items:center;
  border:1px solid #343a43;
  border-radius:7px;
  padding-left:11px;
  gap:7px;
  background:#1a1d22;
}

.agent-filter svg {
  width:13px;
  height:13px;
  color:#a7afbb;
}

.agent-filter select {
  max-width:200px;
  min-width:125px;
  background:transparent;
  border:0;
  height:100%;
  color:#a7afbb;
  padding:0 25px 0 1px;
  font-size:11px;
  cursor:pointer;
}

.freshness {
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:7px;
  color:#a7afbb;
  font-size:10px;
  white-space:nowrap;
}

.freshness .tiny-dot {
  background:#8997a6;
}

.freshness .tiny-dot.stale {
  background:#d2ac72;
}

.error-banner {
  padding:13px 16px;
  background:#332426;
  border:1px solid #563b3b;
  color:#e4a099;
  line-height:1.7;
  border-radius:8px;
  margin:0 0 20px;
  font-size:12px;
  overflow-wrap:anywhere;
}

#content {
  min-height:320px;
}

.metrics-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:15px;
  margin-bottom:28px;
}

.metric {
  min-height:130px;
  background:#1a1d22;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:20px 21px;
  position:relative;
  overflow:hidden;
}

.metric-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:#a7afbb;
  font-size:11px;
  gap:10px;
}

.metric-icon {
  width:28px;
  height:28px;
  border-radius:8px;
  background:#272d36;
  display:grid;
  place-items:center;
  color:#a7afbb;
}

.metric-icon svg {
  width:14px;
  height:14px;
}

.metric-value {
  font-size:34px;
  line-height:1;
  letter-spacing:-1.6px;
  font-weight:550;
  margin:13px 0 10px;
  display:flex;
  align-items:baseline;
  gap:7px;
}

.metric-value>small {
  font-size:11px;
  font-weight:400;
  color:#edf0f4;
  letter-spacing:0;
}

.metric-foot {
  font-size:10px;
  color:#a7afbb;
}

.metric.is-accent {
  background:#20252b;
  border-color:#343a43;
}

.metric.is-accent .metric-icon {
  background:#272d36;
}

.metric.is-alert {
  background:#2d2820;
  border-color:#544633;
}

.metric.is-alert .metric-icon {
  background:#2d2820;
  color:#dbb77a;
}

.section {
  margin-top:28px;
}

.section:first-child {
  margin-top:0;
}

.section-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
  min-height:23px;
}

.section-title {
  display:flex;
  align-items:baseline;
  gap:9px;
  min-width:0;
}

.section-title h2 {
  font-size:15px;
  letter-spacing:-.5px;
  font-weight:650;
}

.section-title .count {
  font-family:var(--mono);
  color:#d9e0e9;
  font-size:10px;
}

.section-subtitle {
  font-size:11px;
  color:#a7afbb;
  margin-top:7px;
  line-height:1.8;
}

.text-button {
  display:inline-flex;
  align-items:center;
  gap:5px;
  background:none;
  padding:3px 0;
  color:#a7afbb;
  font-size:10px;
  white-space:nowrap;
}

.text-button:hover {
  color:#a7afbb;
}

.text-button svg {
  width:12px;
  height:12px;
}

.overview-columns {
  display:grid;
  grid-template-columns:minmax(0,1fr) 310px;
  gap:24px;
  align-items:start;
}

.overview-registers {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  margin-top:28px;
}

.overview-registers>.section {
  margin:0;
  min-width:0;
}

.overview-registers .section-heading {
  align-items:flex-start;
  margin-bottom:13px;
  gap:12px;
}

.overview-registers .section-subtitle {
  color:#939eae;
  font-size:10px;
}

.overview-list {
  list-style:none;
  padding:0 16px;
  margin:0;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--surface);
}

.overview-list>li {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:13px;
  min-height:84px;
  padding:15px 0;
  border-bottom:1px solid var(--line);
}

.overview-list>li:last-child {
  border-bottom:0;
}

.overview-list>li>div {
  min-width:0;
}

.overview-list .record-title {
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  font-size:11px;
  font-weight:500;
}

.overview-list .record-subtitle {
  font-size:9px;
}

.overview-list .badge {
  flex:none;
}

.agent-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}

.agent-grid.is-compact {
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.agent-card {
  display:flex;
  flex-direction:column;
  position:relative;
  background:#1a1d22;
  border:1px solid var(--line);
  border-radius:12px;
  padding:18px 17px 15px;
  text-align:left;
  width:100%;
  min-width:0;
  transition:border-color .15s,box-shadow .15s,transform .15s;
}

.agent-card:hover {
  border-color:#535e6e;
  box-shadow:0 4px 15px #00000035;
  transform:translateY(-2px);
}

.agent-card-top {
  display:flex;
  align-items:center;
  gap:11px;
  margin-bottom:12px;
  min-width:0;
}

.agent-avatar {
  width:34px;
  height:34px;
  flex:none;
  display:grid;
  place-items:center;
  border:1px solid #343a43;
  background:#272d36;
  border-radius:10px;
  font-family:var(--mono);
  font-size:11px;
  font-weight:600;
  color:#a7afbb;
  text-transform:uppercase;
}

.agent-avatar.tone-1 {
  background:#272d36;
  border-color:#343a43;
  color:#a7afbb;
}

.agent-avatar.tone-2 {
  background:#272d36;
  border-color:#343a43;
  color:#a7afbb;
}

.agent-avatar.tone-3 {
  background:#272d36;
  border-color:#343a43;
  color:#a7afbb;
}

.agent-card-name {
  display:block;
  font-size:13px;
  font-weight:650;
  overflow-wrap:anywhere;
  letter-spacing:-.2px;
}

.agent-card-id {
  display:block;
  font-family:var(--mono);
  font-size:9px;
  color:#a7afbb;
  margin-top:3px;
  overflow-wrap:anywhere;
}

.agent-card-arrow {
  margin-left:auto;
  color:#a7afbb;
  align-self:flex-start;
}

.agent-card-arrow svg {
  width:13px;
  height:13px;
}

.agent-role {
  font-size:10px;
  color:#a7afbb;
  line-height:1.75;
  min-height:35px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  overflow-wrap:anywhere;
}

.agent-model {
  font-family:var(--mono);
  font-size:9px;
  color:#a7afbb;
  background:#20252c;
  border-radius:4px;
  padding:5px 7px;
  display:block;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:100%;
  margin:11px 0 14px;
}

.agent-card-bottom {
  border-top:1px solid #343a43;
  padding-top:11px;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  color:#a7afbb;
  font-size:9px;
  line-height:1.7;
}

.agent-card-bottom strong {
  font-family:var(--mono);
  font-weight:500;
  color:#a7afbb;
  margin-right:3px;
}

.agent-status {
  margin-left:auto;
  display:inline-flex;
  align-items:center;
  gap:4px;
  color:#a7afbb;
  font-size:8px;
}

.agent-status:before {
  content:"";
  width:4px;
  height:4px;
  border-radius:50%;
  background:#8997a6;
}

.panel {
  background:#1a1d22;
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
}

.upcoming-panel {
  padding:20px;
}

.panel-eyebrow {
  font-family:var(--mono);
  font-size:8px;
  letter-spacing:1.5px;
  color:#a7afbb;
  margin-bottom:8px;
}

.upcoming-panel h3 {
  font-size:15px;
  letter-spacing:-.5px;
  margin-bottom:4px;
}

.panel-description {
  color:#a7afbb;
  font-size:10px;
  line-height:1.8;
}

.upcoming-list {
  margin-top:17px;
}

.upcoming-item {
  padding:14px 0;
  border-bottom:1px solid #343a43;
}

.upcoming-item:first-child {
  padding-top:0;
}

.upcoming-item:last-child {
  border-bottom:0;
  padding-bottom:0;
}

.upcoming-item-top {
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:7px;
}

.upcoming-time {
  font-family:var(--mono);
  font-size:10px;
  font-weight:500;
  color:#a7afbb;
}

.upcoming-index {
  font-family:var(--mono);
  font-size:9px;
  color:#a7afbb;
  margin-left:auto;
}

.upcoming-name {
  font-size:11px;
  line-height:1.75;
  color:#a7afbb;
  overflow-wrap:anywhere;
}

.upcoming-owner {
  color:#a7afbb;
  font-size:9px;
  margin-top:6px;
  display:flex;
  align-items:center;
  gap:5px;
}

.upcoming-owner svg {
  width:11px;
  height:11px;
}

.hint-panel {
  display:flex;
  gap:11px;
  background:#20252c;
  border:1px solid #343a43;
  border-radius:11px;
  padding:16px;
  margin-top:15px;
}

.hint-panel>span {
  color:#a7afbb;
  padding-top:2px;
}

.hint-panel svg {
  width:15px;
  height:15px;
}

.hint-panel strong {
  font-size:10px;
  color:#a7afbb;
  font-weight:600;
  display:block;
  margin-bottom:6px;
}

.hint-panel p {
  font-size:9px;
  line-height:1.9;
  color:#a7afbb;
  word-break:keep-all;
}

.table-scroll {
  overflow:auto;
  max-width:100%;
  border-radius:var(--radius);
  border:1px solid var(--line);
  background:#1a1d22;
}

table {
  border-collapse:collapse;
  width:100%;
  text-align:left;
  table-layout:auto;
}

th {
  background:#20242b;
  color:#a7afbb;
  font-size:9px;
  font-weight:500;
  padding:14px 18px;
  border-bottom:1px solid var(--line);
  white-space:nowrap;
}

td {
  padding:17px 18px;
  border-bottom:1px solid #343a43;
  vertical-align:middle;
  font-size:11px;
  color:#a7afbb;
  max-width:340px;
  overflow-wrap:anywhere;
}

tr:last-child td {
  border-bottom:0;
}

tbody tr:hover {
  background:#232830;
}

.record-title {
  font-size:11px;
  color:#d9e0e9;
  font-weight:500;
  line-height:1.65;
  overflow-wrap:anywhere;
}

.record-subtitle {
  font-family:var(--mono);
  font-size:9px;
  color:#a7afbb;
  margin-top:5px;
  line-height:1.7;
  overflow-wrap:anywhere;
}

.record-mono {
  font-family:var(--mono);
  font-size:10px;
  line-height:1.8;
  overflow-wrap:anywhere;
}

.record-time {
  font-family:var(--mono);
  font-size:9px;
  color:#a7afbb;
  line-height:1.8;
  white-space:nowrap;
}

.record-time small {
  font-family:var(--font);
  font-size:8px;
  color:#a7afbb;
  display:block;
}

.owner-button {
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:10px;
  background:transparent;
  color:#a7afbb;
  padding:3px 0;
  max-width:100%;
  text-align:left;
  overflow-wrap:anywhere;
}

.owner-button:hover {
  color:#a7afbb;
}

.owner-dot {
  width:5px;
  height:5px;
  background:#8997a6;
  border-radius:50%;
  flex:none;
}

.badge {
  display:inline-flex;
  align-items:center;
  gap:5px;
  font-size:9px;
  line-height:1.5;
  padding:4px 7px;
  border-radius:4px;
  white-space:nowrap;
  font-weight:500;
  background:#1a1d22;
  color:#a7afbb;
}

.badge:before {
  content:"";
  width:4px;
  height:4px;
  background:currentColor;
  border-radius:50%;
  opacity:.7;
}

.badge.good {
  color:#9fc6ad;
  background:#25332d;
}

.badge.warning {
  color:#dbb77a;
  background:#2d2820;
}

.badge.bad {
  color:#e4a099;
  background:#332426;
}

.badge.neutral {
  color:#a7afbb;
  background:#1a1d22;
}

.status-stack {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:6px;
}

.status-detail {
  font-size:9px;
  color:#a7afbb;
}

.run-name-cell {
  min-width:190px;
}

.run-status-cell {
  width:95px;
}

.view-intro {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:18px;
  gap:16px;
}

.view-count {
  font-size:11px;
  color:#a7afbb;
  line-height:1.8;
}

.view-count strong {
  color:#a7afbb;
  font-weight:600;
}

.view-help {
  font-size:10px;
  color:#a7afbb;
}

.filter-chip {
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:10px;
  background:#20252c;
  border-radius:5px;
  padding:6px 9px;
  color:#a7afbb;
}

.filter-chip button {
  background:transparent;
  padding:0;
  display:grid;
  place-items:center;
}

.filter-chip button svg {
  width:12px;
  height:12px;
}

.empty-state {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  min-height:210px;
  padding:30px 20px;
  border:1px dashed #343a43;
  border-radius:12px;
  color:#a7afbb;
  background:#181c21;
}

.empty-state svg {
  width:27px;
  height:27px;
  color:#a7afbb;
  margin-bottom:14px;
}

.empty-state strong {
  font-size:12px;
  font-weight:500;
  color:#d9e0e9;
  margin-bottom:8px;
}

.empty-state p {
  font-size:11px;
  line-height:1.9;
  max-width:380px;
  word-break:keep-all;
}

.empty-state .text-button {
  margin-top:12px;
}

.empty-state.is-small {
  min-height:130px;
  border:0;
  background:transparent;
  padding:17px 5px;
}

.empty-state.is-small svg {
  width:22px;
  height:22px;
  margin-bottom:10px;
}

.empty-state.is-small strong {
  font-size:11px;
}

.empty-state.is-small p {
  font-size:10px;
}

.loading-state {
  min-height:420px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  color:#a7afbb;
}

.loading-state strong {
  font-size:13px;
  font-weight:500;
  margin-top:25px;
}

.loading-state p {
  margin-top:9px;
  font-size:11px;
  color:#a7afbb;
}

.loading-orbit {
  height:36px;
  width:36px;
  border:1px solid #343a43;
  border-top-color:#343a43;
  border-radius:50%;
  animation:spin 1s linear infinite;
}

.warnings-panel {
  margin:0 0 22px;
  padding:18px 20px;
  background:#2d2820;
  border:1px solid #544633;
  border-radius:12px;
}

.warnings-heading {
  display:flex;
  gap:9px;
  align-items:center;
  color:#dbb77a;
  font-size:11px;
  font-weight:600;
}

.warnings-heading svg {
  width:15px;
  height:15px;
}

.warning-item {
  display:flex;
  gap:10px;
  font-size:10px;
  line-height:1.9;
  color:#dbb77a;
  padding-top:10px;
  overflow-wrap:anywhere;
}

.warning-code {
  font-family:var(--mono);
  font-size:8px;
  color:#dbb77a;
  flex:none;
  margin-top:2px;
}

.warning-more {
  margin-top:10px;
}

.resource-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

.resource-card {
  background:#1a1d22;
  border:1px solid var(--line);
  border-radius:12px;
  padding:20px;
  min-width:0;
}

.resource-card-head {
  display:flex;
  gap:12px;
  align-items:flex-start;
  margin-bottom:13px;
}

.resource-icon {
  width:33px;
  height:33px;
  border-radius:9px;
  background:#272d36;
  color:#a7afbb;
  display:grid;
  place-items:center;
  flex:none;
}

.resource-icon svg {
  width:16px;
  height:16px;
}

.resource-name {
  font-size:12px;
  line-height:1.7;
  color:#d9e0e9;
  overflow-wrap:anywhere;
  font-weight:600;
}

.resource-type {
  font-size:9px;
  color:#a7afbb;
  margin-top:3px;
}

.resource-detail {
  font-size:11px;
  color:#a7afbb;
  line-height:1.9;
  overflow-wrap:anywhere;
  margin-bottom:13px;
}

.resource-path {
  font-family:var(--mono);
  font-size:9px;
  background:#20252c;
  padding:10px;
  border-radius:5px;
  color:#a7afbb;
  line-height:1.8;
  overflow-wrap:anywhere;
  margin:12px 0;
}

.resource-bottom {
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
}

.page-footer {
  display:flex;
  justify-content:space-between;
  gap:20px;
  border-top:1px solid var(--line);
  margin-top:34px;
  padding:21px 0 24px;
  color:#a7afbb;
  font-family:var(--mono);
  font-size:8px;
  letter-spacing:.7px;
  line-height:1.8;
}

.page-footer>span:last-child {
  font-family:var(--font);
  letter-spacing:0;
}

.footer-slash {
  margin:0 6px;
  color:#a7afbb;
}

.agent-dialog {
  width:min(680px,calc(100% - 32px));
  max-height:calc(100vh - 48px);
  border:1px solid #343a43;
  border-radius:18px;
  padding:0;
  color:var(--ink);
  background:var(--paper);
  box-shadow:0 30px 100px #00000070;
}

.agent-dialog::backdrop {
  background:#080a0cc9;
  backdrop-filter:blur(3px);
}

.dialog-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:21px 25px 0;
}

.dialog-top .eyebrow {
  margin:0;
}

.icon-button {
  background:transparent;
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  border-radius:7px;
  color:#a7afbb;
}

.icon-button:hover {
  background:#2a3039;
}

.icon-button svg {
  width:17px;
  height:17px;
}

#dialog-content {
  padding:18px 25px 28px;
}

.dialog-profile {
  display:flex;
  gap:14px;
  align-items:center;
  margin-bottom:19px;
}

.dialog-profile .agent-avatar {
  width:48px;
  height:48px;
  font-size:15px;
  border-radius:13px;
}

.dialog-profile h2 {
  font-size:23px;
  line-height:1.4;
  letter-spacing:-.8px;
  overflow-wrap:anywhere;
}

.dialog-profile .agent-card-id {
  font-size:10px;
}

.dialog-role {
  font-size:12px;
  line-height:1.9;
  color:#a7afbb;
  overflow-wrap:anywhere;
}

.dialog-facts {
  display:grid;
  grid-template-columns:80px minmax(0,1fr);
  gap:10px;
  margin:20px 0 25px;
  padding:18px;
  border:1px solid var(--line);
  background:#1a1d22;
  border-radius:10px;
  font-size:10px;
}

.dialog-facts dt {
  color:#a7afbb;
}

.dialog-facts dd {
  margin:0;
  color:#a7afbb;
  font-family:var(--mono);
  font-size:10px;
  line-height:1.7;
  overflow-wrap:anywhere;
}

.dialog-section {
  margin-top:23px;
}

.dialog-section h3 {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  margin-bottom:11px;
  color:#a7afbb;
}

.dialog-section h3 small {
  font-family:var(--mono);
  font-size:9px;
  font-weight:400;
  color:#a7afbb;
}

.dialog-list {
  list-style:none;
  padding:0;
  margin:0;
  background:#1a1d22;
  border:1px solid var(--line);
  border-radius:10px;
}

.dialog-list li {
  padding:13px 15px;
  border-bottom:1px solid #343a43;
  min-width:0;
}

.dialog-list li:last-child {
  border:0;
}

.dialog-list .record-title {
  font-size:11px;
}

.dialog-list .record-subtitle {
  font-size:9px;
}

.dialog-empty {
  color:#a7afbb;
  font-size:10px;
  border:1px dashed #343a43;
  padding:14px;
  border-radius:8px;
}

.dialog-footnote {
  font-size:10px;
  color:#a7afbb;
  line-height:1.9;
  border-top:1px solid var(--line);
  padding-top:17px;
  margin-top:24px;
  word-break:keep-all;
}

.result-reveal {
  animation:reveal .28s ease both;
}

@keyframes spin {
  to {
    transform:rotate(360deg);
  }
}

@keyframes reveal {
  from {
    opacity:0;
    transform:translateY(5px);
  }
  to {
    opacity:1;
    transform:translateY(0);
  }
}

@media(min-width:1500px) {
  main {
    padding-left:48px;
    padding-right:48px;
  }
  .topbar {
    padding-left:48px;
    padding-right:48px;
  }
  .overview-columns {
    grid-template-columns:minmax(0,1fr) 350px;
    gap:28px;
  }
  .agent-grid.is-compact {
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .agent-card {
    padding:20px;
  }
  .agent-grid {
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
}

@media(max-width:1180px) {
  .app-shell {
    grid-template-columns:205px minmax(0,1fr);
  }
  .sidebar {
    padding-left:14px;
    padding-right:14px;
  }
  .brand {
    gap:10px;
  }
  .brand strong {
    font-size:18px;
  }
  .brand-mark {
    height:27px;
    width:27px;
  }
  .brand-mark:before {
    width:36px;
    height:12px;
  }
  .topbar {
    padding:0 26px;
  }
  main {
    padding:30px 26px 0;
  }
  .overview-columns {
    grid-template-columns:minmax(0,1fr) 270px;
    gap:17px;
  }
  .agent-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .agent-grid.is-compact {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .agent-card {
    padding:15px 13px;
  }
  .agent-card-bottom {
    gap:6px;
  }
  .agent-status {
    display:none;
  }
  .metrics-grid {
    gap:11px;
  }
  .metric {
    padding:17px;
  }
  .metric-value {
    font-size:30px;
  }
  .freshness {
    font-size:9px;
  }
  .search-field {
    width:240px;
  }
  .agent-filter select {
    min-width:110px;
    max-width:150px;
  }
  .section-title h2 {
    font-size:14px;
  }
}

@media(max-width:1000px) {
  .overview-registers {
    grid-template-columns:1fr;
    gap:22px;
  }
  .overview-columns {
    grid-template-columns:minmax(0,1fr);
  }
  .overview-aside {
    display:grid;
    grid-template-columns:1.5fr 1fr;
    gap:14px;
  }
  .hint-panel {
    margin-top:0;
    align-self:start;
    min-height:160px;
  }
  .upcoming-list {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
  }
  .upcoming-item {
    padding:0;
    border:0;
  }
  .upcoming-item:nth-child(n+3) {
    display:none;
  }
  .freshness {
    display:none;
  }
  .toolbar {
    gap:9px;
  }
  .search-field {
    flex:1;
  }
  .metric-top {
    font-size:10px;
  }
  .metric-icon {
    display:none;
  }
  .metric-foot {
    font-size:9px;
  }
  .metric {
    min-height:121px;
  }
  .page-heading p {
    font-size:11px;
  }
  .resource-grid {
    grid-template-columns:1fr;
  }
}

@media(max-width:760px) {
  .topbar-right {
    gap:10px;
  }
  .topbar-right .readonly-pill,
  .topbar-right .profile-avatar {
    display:none;
  }
  .locale-switch {
    gap:2px;
    padding:2px;
  }
  .locale-switch button {
    min-width:44px;
    min-height:44px;
    font-size:11px;
  }
  .nav-section-label {
    display:none;
  }
  .overview-list .record-title,
  .overview-list .record-subtitle,
  .overview-registers .section-subtitle {
    font-size:12px;
  }
  .overview-registers .section-heading {
    align-items:center;
  }
  .app-shell {
    grid-template-columns:minmax(0,1fr);
  }
  .sidebar {
    position:relative;
    height:auto;
    padding:20px 20px 0;
    gap:0;
  }
  .brand {
    padding:0;
    max-width:230px;
  }
  .brand strong {
    font-size:20px;
  }
  .brand-kicker {
    font-size:8px;
  }
  .brand-mark {
    width:29px;
    height:29px;
  }
  .workspace-label,.nav-label {
    display:none;
  }
  .navigation {
    flex-direction:row;
    gap:3px;
    overflow:auto;
    margin:22px -20px 0;
    padding:0 14px 12px;
    scrollbar-width:thin;
    scrollbar-color:#697689 transparent;
  }
  .nav-item {
    flex:none;
    min-height:44px;
    padding:8px 11px;
    font-size:12px;
    gap:7px;
    border-radius:6px;
  }
  .nav-icon svg {
    width:14px;
    height:14px;
  }
  .nav-count {
    font-size:8px;
    background:#303640;
    min-width:16px;
    padding:1px 3px;
  }
  .nav-item.is-active .nav-count {
    background:#b7c1cf;
    color:#20252c;
  }
  .nav-shortcut {
    display:none;
  }
  .topbar {
    height:57px;
    padding:0 21px;
  }
  .topbar-right {
    gap:15px;
  }
  .breadcrumb {
    font-size:12px;
    gap:10px;
  }
  .readonly-pill {
    font-size:12px;
  }
  .profile-avatar {
    height:25px;
    width:25px;
    font-size:8px;
  }
  main {
    padding:27px 21px 0;
    min-height:calc(100vh - 200px);
  }
  .page-heading {
    align-items:flex-start;
    gap:12px;
    margin-bottom:23px;
  }
  .eyebrow {
    font-size:8px;
    letter-spacing:1.1px;
    margin-bottom:9px;
  }
  h1 {
    font-size:27px;
    letter-spacing:-1.3px;
  }
  .page-heading p {
    font-size:12px;
    line-height:1.9;
    max-width:370px;
  }
  .button-refresh {
    align-self:flex-start;
    margin-top:21px;
    font-size:0;
    gap:0;
    height:44px;
    min-height:44px;
    width:44px;
    padding:8px;
  }
  .button-refresh svg {
    width:15px;
    height:15px;
  }
  .toolbar {
    padding-bottom:20px;
    margin-bottom:21px;
    flex-wrap:wrap;
  }
  .search-field {
    min-width:160px;
    height:44px;
  }
  .agent-filter {
    height:44px;
  }
  .agent-filter select {
    font-size:12px;
    min-width:120px;
    max-width:180px;
  }
  .metrics-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:11px;
    margin-bottom:24px;
  }
  .metric {
    padding:17px;
    min-height:121px;
  }
  .metric-icon {
    display:grid;
    height:25px;
    width:25px;
  }
  .metric-top {
    font-size:12px;
  }
  .metric-value {
    font-size:30px;
    margin:10px 0 10px;
  }
  .metric-foot {
    font-size:12px;
  }
  .agent-grid,.agent-grid.is-compact {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .agent-card {
    padding:16px 14px;
  }
  .agent-role {
    font-size:12px;
    min-height:35px;
  }
  .agent-status {
    display:inline-flex;
  }
  .overview-aside {
    grid-template-columns:minmax(0,1fr);
  }
  .hint-panel {
    min-height:0;
  }
  .hint-panel p {
    font-size:12px;
  }
  .upcoming-list {
    gap:20px;
  }
  .upcoming-panel {
    padding:20px;
  }
  .section {
    margin-top:25px;
  }
  .section-heading {
    margin-bottom:14px;
  }
  .section-title h2 {
    font-size:14px;
  }
  .text-button {
    font-size:12px;
  }
  .section-subtitle {
    font-size:12px;
  }
  .table-scroll table {
    min-width:660px;
  }
  .table-scroll td {
    padding:15px;
  }
  .table-scroll th {
    padding:13px 15px;
  }
  .page-footer {
    font-size:7px;
    gap:15px;
    margin-top:28px;
    padding-bottom:23px;
  }
  .page-footer>span:last-child {
    font-size:8px;
  }
  .view-intro {
    align-items:flex-start;
  }
  .view-help {
    max-width:180px;
    text-align:right;
    font-size:12px;
    line-height:1.8;
  }
  .warnings-panel {
    padding:15px;
  }
  .warning-item {
    display:block;
  }
  .warning-code {
    display:block;
    margin-bottom:2px;
  }
  .agent-dialog {
    max-height:calc(100dvh - 28px);
  }
  .dialog-top {
    padding:15px 19px 0;
  }
  #dialog-content {
    padding:15px 19px 23px;
  }
  .dialog-facts {
    grid-template-columns:64px minmax(0,1fr);
    padding:15px;
  }
  .dialog-profile h2 {
    font-size:21px;
  }
  .search-field input,
  .agent-card-bottom,
  .agent-role,
  .agent-status,
  .record-title,
  .record-subtitle,
  .record-time,
  .record-time small,
  .record-mono,
  .owner-button,
  .badge,
  .upcoming-name,
  .upcoming-owner,
  .upcoming-time,
  .panel-description,
  .resource-detail,
  .resource-type,
  .resource-path,
  .resource-bottom,
  .dialog-role,
  .dialog-list .record-title,
  .dialog-list .record-subtitle,
  .dialog-empty,
  .dialog-footnote,
  .empty-state p,
  .empty-state.is-small p,
  .warning-item,
  .warnings-heading {
    font-size:12px;
  }
  .agent-card-name,
  .resource-name,
  .dialog-section h3,
  .empty-state strong {
    font-size:14px;
  }
  .agent-card-id,
  .agent-model {
    font-size:11px;
  }
  .agent-role {
    min-height:42px;
  }
  .agent-card-bottom {
    column-gap:10px;
    row-gap:4px;
  }
  .agent-status {
    display:none;
  }
  .agent-grid,
  .agent-grid.is-compact {
    grid-template-columns:1fr;
  }
  .agent-card-top {
    margin-bottom:10px;
  }
  .agent-role,
  .metric-foot,
  .record-subtitle,
  .record-time,
  .view-help,
  .page-heading p,
  .section-subtitle,
  .resource-detail,
  .resource-type,
  .resource-path,
  .dialog-role,
  .dialog-footnote,
  .empty-state p,
  .hint-panel p,
  .panel-description,
  .upcoming-owner,
  .warning-item {
    color:#dbb77a;
  }
  .owner-button,
  .text-button,
  .icon-button {
    min-height:44px;
  }
  .icon-button {
    min-width:44px;
  }
  .dialog-facts {
    grid-template-columns:80px minmax(0,1fr);
    font-size:12px;
  }
  .dialog-facts dd {
    font-size:12px;
  }
  .upcoming-list {
    grid-template-columns:1fr;
  }
  .upcoming-item:nth-child(n+3) {
    display:block;
  }
  .view-intro {
    flex-direction:column;
    gap:7px;
  }
  .view-help {
    max-width:none;
    text-align:left;
  }
  .table-scroll th {
    font-size:12px;
  }
  .warnings-heading {
    flex-wrap:wrap;
  }
  .warnings-heading .view-help {
    flex-basis:100%;
    margin-left:24px;
  }
  .freshness {
    display:flex;
    flex-basis:100%;
    margin-left:0;
    padding-top:4px;
    white-space:normal;
    font-size:11px;
  }
}

@media(max-width:410px) {
  main {
    padding-left:17px;
    padding-right:17px;
  }
  .topbar {
    padding-left:17px;
    padding-right:17px;
  }
  .sidebar {
    padding-left:17px;
    padding-right:17px;
  }
  .navigation {
    margin-left:-17px;
    margin-right:-17px;
  }
  .agent-card {
    padding:14px 12px;
  }
  .agent-avatar {
    width:29px;
    height:29px;
    border-radius:8px;
    font-size:12px;
  }
  .agent-card-top {
    gap:8px;
  }
  .agent-card-name {
    display:block;
    font-size:12px;
  }
  .agent-card-bottom {
    font-size:11px;
    gap:6px;
  }
  .agent-status {
    display:none;
  }
  .agent-card-id {
    font-size:11px;
  }
  .search-field {
    min-width:160px;
  }
  .agent-filter {
    padding-left:8px;
  }
  .agent-filter select {
    max-width:150px;
    min-width:120px;
    font-size:12px;
    padding-right:5px;
  }
  .agent-filter svg {
    width:11px;
    height:11px;
  }
  .metric {
    padding:15px;
  }
  .upcoming-list {
    gap:12px;
  }
  .upcoming-time {
    font-size:12px;
  }
  .page-heading p {
    font-size:12px;
  }
  h1 {
    font-size:25px;
  }
  .view-count {
    font-size:12px;
  }
  .resource-card {
    padding:17px;
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    scroll-behavior:auto!important;
    animation:none!important;
    transition:none!important;
  }
}

/* Trading is a read-only source monitor; its styles stay inside this view. */
.trading-monitor {
  --tr-muted:#a7afbb;
}

.tr-date-strip {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  column-gap:32px;
  row-gap:13px;
  border:1px solid var(--line);
  border-radius:11px;
  background:#20252c;
  padding:17px 20px;
  margin-bottom:18px;
}

.tr-date-strip>div {
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  column-gap:10px;
  row-gap:5px;
}

.tr-strip-label {
  color:var(--tr-muted);
  font-size:11px;
}

.tr-date-strip strong {
  font-size:12px;
  font-weight:600;
  color:#a7afbb;
  overflow-wrap:anywhere;
}

.tr-date-note {
  display:flex;
  align-items:flex-start;
  gap:7px;
  flex-basis:100%;
  font-size:11px;
  line-height:1.8;
  color:#dbb77a;
  border-top:1px solid #544633;
  padding-top:10px;
  overflow-wrap:anywhere;
}

.tr-date-note svg {
  width:14px;
  height:14px;
  margin-top:3px;
}

.tr-money {
  font-family:var(--mono);
  font-size:11px;
  overflow-wrap:anywhere;
}

.tr-money.is-positive {
  color:#9fc6ad;
}

.tr-money.is-negative {
  color:#e4a099;
}

.tr-money.is-unknown {
  font-family:var(--font);
  color:#a7afbb;
}

.tr-percent {
  font-family:var(--mono);
  font-size:10px;
  line-height:1.8;
  color:var(--tr-muted);
  overflow-wrap:anywhere;
}

.tr-coverage-text {
  font-size:10px;
  line-height:1.8;
  color:var(--tr-muted);
}

.tr-profit-details,.tr-stage-details {
  border:1px solid var(--line);
  border-radius:10px;
  background:#1a1d22;
}

.tr-profit-details>summary,.tr-stage-details>summary {
  padding:15px 18px;
  color:#a7afbb;
  font-size:11px;
  font-weight:550;
  line-height:1.8;
  cursor:pointer;
  min-height:44px;
  overflow-wrap:anywhere;
}

.tr-summary-note {
  display:inline-block;
  color:var(--tr-muted);
  font-size:10px;
  font-weight:400;
  margin-left:12px;
}

.tr-details-body {
  padding:0 15px 15px;
}

.tr-details-body table {
  min-width:1000px;
}

.tr-section .section-subtitle {
  color:var(--tr-muted);
  font-size:11px;
}

.tr-process-panel {
  padding:22px;
}

.tr-process-summary {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px;
}

.tr-process-summary h3 {
  font-size:19px;
  font-weight:600;
  line-height:1.7;
  letter-spacing:-.5px;
  overflow-wrap:anywhere;
}

.tr-process-date {
  color:var(--tr-muted);
  font-size:11px;
  line-height:1.8;
  margin-top:6px;
}

.tr-process-status {
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  flex:none;
  gap:8px;
  font-size:10px;
  color:var(--tr-muted);
  line-height:1.7;
}

.tr-heartbeat {
  display:flex;
  align-items:flex-start;
  flex-wrap:wrap;
  gap:8px;
  padding:15px 0;
  margin:15px 0 0;
  border-top:1px solid var(--line);
  font-size:10px;
  line-height:1.9;
  color:var(--tr-muted);
}

.tr-heartbeat>svg {
  margin-top:4px;
  width:14px;
  height:14px;
}

.tr-heartbeat-note {
  margin-left:auto;
  font-size:10px;
}

.tr-stage-groups {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin:0 0 18px;
}

.tr-stage-group {
  position:relative;
  background:#20252c;
  border:1px solid #343a43;
  border-radius:9px;
  padding:16px;
  min-width:0;
}

.tr-stage-group.is-current {
  background:#20252c;
  border-color:#343a43;
}

.tr-group-number {
  display:block;
  font-family:var(--mono);
  font-size:9px;
  color:#a7afbb;
  margin-bottom:9px;
}

.tr-stage-group h3 {
  color:#d9e0e9;
  font-size:12px;
  font-weight:600;
  line-height:1.8;
  overflow-wrap:anywhere;
}

.tr-stage-group p {
  font-size:10px;
  line-height:1.8;
  color:var(--tr-muted);
  margin-top:4px;
}

.tr-stage-group .tr-group-current {
  color:#a7afbb;
  font-size:10px;
  overflow-wrap:anywhere;
}

.tr-stage-list {
  list-style:none;
  margin:0;
  padding:0 17px 9px;
}

.tr-stage-list>li {
  display:flex;
  gap:13px;
  padding:15px 0;
  border-top:1px solid #343a43;
}

.tr-stage-number {
  font-family:var(--mono);
  font-size:10px;
  color:#a7afbb;
  padding-top:4px;
}

.tr-stage-content {
  flex:1;
  min-width:0;
}

.tr-stage-heading {
  display:flex;
  align-items:flex-start;
  flex-wrap:wrap;
  gap:10px;
}

.tr-stage-heading strong {
  font-size:12px;
  font-weight:550;
  line-height:1.8;
  color:#d9e0e9;
  overflow-wrap:anywhere;
}

.tr-stage-list>li.is-current .tr-stage-heading strong {
  color:#d9e0e9;
}

.tr-stage-content>p {
  font-size:10px;
  line-height:1.9;
  color:var(--tr-muted);
  margin-top:5px;
  overflow-wrap:anywhere;
}

.tr-service-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:15px;
}

.tr-service-card {
  padding:20px;
}

.tr-service-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.tr-service-head h3 {
  font-size:17px;
  line-height:1.5;
}

.tr-service-meta {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:7px;
  font-size:10px;
  color:var(--tr-muted);
  margin:16px 0 12px;
}

.tr-service-detail,.tr-service-source {
  font-size:11px;
  line-height:1.9;
  color:var(--tr-muted);
  overflow-wrap:anywhere;
}

.tr-service-source {
  font-size:10px;
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid var(--line);
}

.trading-monitor .table-scroll table {
  min-width:880px;
}

.trading-monitor .table-scroll td {
  color:var(--tr-muted);
}

.tr-execution-top {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  font-size:10px;
  color:var(--tr-muted);
  margin-bottom:15px;
}

.tr-execution-counts {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  border:1px solid var(--line);
  border-radius:10px;
  background:#1a1d22;
  margin-bottom:15px;
}

.tr-execution-counts>div {
  padding:16px 19px;
  border-right:1px solid var(--line);
  min-width:0;
}

.tr-execution-counts>div:last-child {
  border-right:0;
}

.tr-execution-counts span {
  display:block;
  font-size:11px;
  color:var(--tr-muted);
  margin-bottom:8px;
}

.tr-execution-counts strong {
  font-family:var(--mono);
  font-size:20px;
  font-weight:500;
  color:#a7afbb;
  overflow-wrap:anywhere;
}

.tr-signals {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-bottom:16px;
}

.tr-signal {
  background:#20252c;
  border:1px solid #343a43;
  border-radius:8px;
  padding:13px 15px;
  min-width:0;
}

.tr-signal>div {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}

.tr-signal strong {
  font-size:11px;
  font-weight:550;
  color:#d9e0e9;
  overflow-wrap:anywhere;
}

.tr-signal p {
  font-size:10px;
  color:var(--tr-muted);
  line-height:1.9;
  margin-top:7px;
  overflow-wrap:anywhere;
}

.tr-provenance {
  font-size:10px;
  line-height:1.9;
  color:var(--tr-muted);
  margin-top:23px;
  border-top:1px solid var(--line);
  padding-top:17px;
}

@media(max-width:760px) {
  .tr-date-strip {
    column-gap:25px;
    padding:17px;
  }
  .tr-strip-label,.tr-date-note,.tr-coverage-text,.tr-section .section-subtitle,.tr-process-date,.tr-process-status,.tr-heartbeat,.tr-heartbeat-note,.tr-stage-group p,.tr-stage-group .tr-group-current,.tr-stage-content>p,.tr-service-meta,.tr-service-detail,.tr-service-source,.tr-money,.tr-percent,.tr-execution-top,.tr-execution-counts span,.tr-signal p,.tr-provenance {
    font-size:12px;
  }
  .tr-process-panel {
    padding:17px;
  }
  .tr-process-summary {
    flex-direction:column;
    gap:13px;
  }
  .tr-process-status {
    align-items:flex-start;
    gap:5px;
  }
  .tr-heartbeat-note {
    flex-basis:100%;
    margin-left:22px;
  }
  .tr-stage-groups {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .tr-stage-group {
    padding:13px;
  }
  .tr-stage-group h3,.tr-stage-heading strong,.tr-signal strong {
    font-size:13px;
  }
  .tr-stage-list {
    padding-left:13px;
    padding-right:13px;
  }
  .tr-stage-list>li {
    gap:10px;
  }
  .tr-service-grid,.tr-signals {
    grid-template-columns:1fr;
  }
  .tr-service-card {
    padding:17px;
  }
  .tr-profit-details>summary,.tr-stage-details>summary {
    font-size:12px;
    padding:15px;
  }
  .tr-summary-note {
    font-size:12px;
    display:block;
    margin-left:0;
    margin-top:5px;
  }
  .tr-execution-counts {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .tr-execution-counts>div {
    padding:15px;
  }
  .tr-execution-counts>div:nth-child(2) {
    border-right:0;
  }
  .tr-execution-counts>div:nth-child(-n+2) {
    border-bottom:1px solid var(--line);
  }
}

/* Actual daily-process DAG. SVG coordinates/viewBox are attributes, never styles. */
.wf-section {
  margin:26px 0 28px;
  color:var(--ink);
}

.wf-heading {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  margin-bottom:18px;
}

.wf-heading .panel-eyebrow {
  color:#8592a4;
  margin-bottom:8px;
}

.wf-heading h2 {
  font-size:21px;
  line-height:1.5;
  letter-spacing:-.6px;
  font-weight:600;
}

.wf-heading p:not(.panel-eyebrow) {
  color:var(--muted);
  font-size:11px;
  line-height:1.8;
  margin-top:7px;
}

.wf-heading-status {
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:10px;
}

.wf-heading-status>strong {
  font-size:12px;
  font-family:var(--mono);
  font-weight:500;
  color:#c2ccd9;
}

.wf-status {
  display:inline-flex;
  align-items:center;
  gap:6px;
  flex:none;
  padding:4px 8px;
  border:1px solid #3d4653;
  border-radius:5px;
  font-size:10px;
  line-height:1.6;
  font-weight:500;
  color:#a3adbc;
  background:#252b34;
  white-space:nowrap;
}

.wf-status:before {
  content:"";
  width:4px;
  height:4px;
  border-radius:50%;
  background:currentColor;
}

.wf-status.wf-completed {
  color:#a7c6b3;
  background:#25332d;
  border-color:#3b5546;
}

.wf-status.wf-running {
  color:#c8d7ea;
  border-color:#62738b;
  background:#2d3949;
}

.wf-status.wf-partial {
  color:#d4b783;
  border-color:#655439;
  background:#332c22;
}

.wf-status.wf-failed,.wf-status.wf-blocked {
  color:#d7a397;
  border-color:#67453f;
  background:#382a29;
}

.wf-summary {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin-bottom:13px;
}

.wf-summary-item {
  display:flex;
  align-items:center;
  gap:5px;
  border:1px solid #333c48;
  border-radius:5px;
  padding:6px 9px;
  color:#9ba9ba;
  font-size:10px;
  line-height:1.6;
}

.wf-summary-item strong {
  color:#d7e0ed;
  font-family:var(--mono);
  font-size:11px;
  font-weight:500;
}

.wf-summary-item.wf-partial,.wf-summary-item.wf-missing {
  border-color:#534937;
  color:#d0b483;
}

.wf-summary-item.wf-failed,.wf-summary-item.wf-blocked {
  border-color:#55413e;
  color:#cba196;
}

.wf-heartbeat {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:9px 17px;
  font-size:10px;
  line-height:1.9;
  color:#94a0b1;
  margin-bottom:15px;
}

.wf-heartbeat .is-fresh {
  color:#9dbca8;
}

.wf-heartbeat .is-stale {
  color:#d0b483;
}

.wf-workspace {
  border:1px solid #3b424d;
  border-radius:13px;
  overflow:hidden;
  background:#15191f;
}

.wf-controls {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px;
  padding:12px 15px;
  background:#20252d;
  border-bottom:1px solid #3b424d;
}

.wf-controls-label {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:9px;
  color:#cad3df;
  font-family:var(--mono);
  font-size:9px;
  letter-spacing:1.1px;
}

.wf-controls-label>span:last-child {
  color:#8190a4;
  font-size:9px;
  letter-spacing:0;
}

.wf-canvas-dot {
  width:6px;
  height:6px;
  border-radius:2px;
  border:1px solid #acbacd;
  transform:rotate(45deg);
}

.wf-controls-buttons {
  display:flex;
  align-items:center;
  gap:5px;
}

.wf-controls-buttons button {
  min-width:32px;
  min-height:32px;
  padding:6px 9px;
  border:1px solid #414b59;
  border-radius:5px;
  background:#262d37;
  color:#c1ccdc;
  font-size:10px;
  line-height:1.5;
  white-space:nowrap;
}

.wf-controls-buttons button:hover {
  background:#354150;
  color:#e4edf9;
}

.wf-controls-buttons button:disabled {
  color:#707c8d;
  cursor:default;
}

.wf-body {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  min-height:540px;
}

.wf-canvas {
  position:relative;
  min-width:0;
  min-height:540px;
  background-color:#15191f;
  background-image:radial-gradient(#3c4654 0.7px,transparent 0.7px);
  background-size:19px 19px;
  overflow:hidden;
}

.wf-graph {
  display:block;
  width:100%;
  height:100%;
  min-height:540px;
  touch-action:none;
  cursor:grab;
}

.wf-graph.is-panning {
  cursor:grabbing;
}

.wf-graph:focus-visible {
  outline:2px solid #a9bcd5;
  outline-offset:-4px;
}

.wf-edge {
  fill:none;
  stroke:#596474;
  stroke-width:1.7;
  opacity:.7;
}

.wf-arrowhead {
  fill:#68778b;
}

.wf-edge.is-active {
  stroke:#a9c5b7;
  stroke-width:2.8;
  stroke-dasharray:8 9;
  opacity:1;
}

.wf-graph.is-live:not(.motion-paused) .wf-edge.is-active {
  animation:workflow-flow 1.4s linear infinite;
}

.wf-node {
  cursor:pointer;
  outline:none;
}

.wf-node-body {
  fill:#242a33;
  stroke:#505d70;
  stroke-width:1.4;
}

.wf-node:hover .wf-node-body {
  fill:#2b3440;
  stroke:#8d9eb5;
}

.wf-node.wf-completed .wf-node-body {
  stroke:#5c786b;
}

.wf-node.wf-partial .wf-node-body {
  stroke:#8f7852;
}

.wf-node.wf-failed .wf-node-body,.wf-node.wf-blocked .wf-node-body {
  stroke:#9d6a60;
}

.wf-node.is-current .wf-node-body {
  fill:#2b3744;
  stroke:#bfd0e7;
  stroke-width:2.2;
}

.wf-node.is-selected .wf-node-body,.wf-node:focus-visible .wf-node-body {
  stroke:#e0e9f6;
  stroke-width:3;
}

.wf-node-glyph-bg {
  fill:#354050;
  stroke:#4f5c70;
  stroke-width:.8;
}

.wf-node-glyph {
  stroke:#b7c8de;
  stroke-width:1.6;
  fill:none;
  stroke-linecap:round;
}

.wf-node-state {
  font-family:var(--font);
  font-size:11px;
  fill:#aab8cc;
  font-weight:500;
}

.wf-node.wf-completed .wf-node-state {
  fill:#aacbb9;
}

.wf-node.wf-partial .wf-node-state {
  fill:#d6bb89;
}

.wf-node.wf-failed .wf-node-state,.wf-node.wf-blocked .wf-node-state {
  fill:#dfaa9e;
}

.wf-node-title {
  font-family:var(--font);
  font-size:15px;
  fill:#edf2fa;
  font-weight:550;
}

.wf-node-counter {
  font-family:var(--font);
  font-size:12px;
  fill:#b7c4d6;
}

.wf-node-group {
  font-family:var(--font);
  font-size:8px;
  fill:#8999ae;
}

.wf-port {
  fill:#171c23;
  stroke:#8999ae;
  stroke-width:1.3;
}

.wf-inspector {
  min-width:0;
  padding:21px 18px;
  background:#1d222a;
  border-top:1px solid #3b424d;
  max-height:380px;
  overflow:auto;
  scrollbar-width:thin;
  scrollbar-color:#54657b #1d222a;
}

.wf-inspector-kicker {
  color:#8393a8;
  font-family:var(--mono);
  font-size:8px;
  letter-spacing:1.3px;
  margin-bottom:14px;
}

.wf-inspector-heading {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
}

.wf-inspector-heading h3 {
  font-size:15px;
  line-height:1.8;
  color:#dce6f4;
  font-weight:600;
  overflow-wrap:anywhere;
}

.wf-inspector-id {
  color:#91a1b6;
  font-family:var(--mono);
  font-size:9px;
  line-height:1.8;
  margin-top:9px;
  overflow-wrap:anywhere;
}

.wf-inspector-group {
  font-size:10px;
  color:#a4b0c1;
  margin-top:6px;
}

.wf-counter-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  margin:18px 0 13px;
  gap:8px;
}

.wf-counter-grid>div {
  padding:10px;
  border:1px solid #3c4654;
  border-radius:6px;
  background:#242c36;
  min-width:0;
}

.wf-counter-grid dt {
  font-size:9px;
  line-height:1.7;
  color:#a4b1c4;
}

.wf-counter-grid dd {
  font-family:var(--mono);
  font-size:14px;
  color:#dce6f4;
  line-height:1.8;
  margin:3px 0 0;
  overflow-wrap:anywhere;
}

.wf-counter-grid .has-missing {
  background:#302b25;
  border-color:#6c5a3e;
}

.wf-counter-grid .has-missing dd {
  color:#dcbf8c;
}

.wf-inspector-note,.wf-inspector-field {
  color:#a0afc3;
  font-size:10px;
  line-height:1.9;
  overflow-wrap:anywhere;
}

.wf-inspector-field {
  margin-top:10px;
}

.wf-inspector-field strong {
  font-weight:500;
  color:#c2cfe0;
}

.wf-inspector-section {
  border-top:1px solid #394250;
  padding-top:13px;
  margin-top:14px;
}

.wf-inspector-section h4 {
  color:#c3cfe0;
  font-size:10px;
  font-weight:550;
  margin:0 0 7px;
}

.wf-inspector-section p {
  color:#9facbf;
  font-size:10px;
  line-height:1.9;
  overflow-wrap:anywhere;
}

.wf-inspector-empty {
  color:#a9b6c8;
  font-size:11px;
  line-height:1.9;
}

.wf-inspector-empty>svg {
  margin-bottom:13px;
}

.wf-inspector-empty strong {
  display:block;
  color:#d0dceb;
  margin-bottom:10px;
}

.wf-legend {
  display:flex;
  flex-wrap:wrap;
  gap:8px 18px;
  border-top:1px solid #394250;
  padding:12px 16px;
  background:#20252d;
  color:#9baabd;
  font-size:9px;
  line-height:1.9;
}

.wf-caution {
  color:#d5b986;
}

.wf-list-details {
  border:1px solid #343e4b;
  border-radius:8px;
  margin-top:12px;
  overflow:hidden;
}

.wf-list-details>summary {
  cursor:pointer;
  padding:12px 15px;
  font-size:11px;
  color:#b6c5d9;
  line-height:1.8;
  min-height:44px;
}

.wf-list-details ol {
  padding:0 15px 12px 35px;
  margin:0;
  color:#8396af;
  font-family:var(--mono);
  font-size:10px;
}

.wf-list-details li {
  border-top:1px solid #333e4d;
}

.wf-list-details button {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  width:100%;
  min-height:44px;
  text-align:left;
  background:transparent;
  color:#bac9dc;
  font-size:11px;
  padding:12px 5px;
  line-height:1.8;
}

.wf-list-details button>span:last-child {
  margin-left:auto;
  font-size:10px;
  color:#8fa3bd;
}

.wf-canvas-empty {
  position:absolute;
  inset:30px;
  display:grid;
  align-items:center;
  text-align:center;
  color:#a4b3c9;
  font-size:12px;
  line-height:1.9;
}

.wf-section.is-expanded {
  position:fixed;
  z-index:100;
  inset:18px;
  padding:23px;
  margin:0;
  border:1px solid #59697f;
  border-radius:15px;
  background:#151a21;
  overflow:auto;
  box-shadow:0 0 0 40px #070a0ee6,0 35px 100px #00000080;
}

.wf-section.is-expanded .wf-body {
  min-height:calc(100dvh - 360px);
}

.wf-section.is-expanded .wf-canvas,
.wf-section.is-expanded .wf-graph {
  min-height:calc(100dvh - 360px);
}

.wf-section.is-expanded .wf-inspector {
  max-height:calc(100dvh - 360px);
}

@keyframes workflow-flow {
  to { stroke-dashoffset:-34; }
}

@media(max-width:1180px) {
  .wf-body {
    grid-template-columns:minmax(0,1fr);
  }
  .wf-inspector {
    padding:18px 14px;
  }
}

.is-trading-view .topbar {
  height:52px;
}

.is-trading-view main {
  padding-top:12px;
}

.is-trading-view .page-heading {
  margin-bottom:6px;
}

.is-trading-view .page-heading .eyebrow {
  display:none;
}

.is-trading-view .page-heading h1 {
  font-size:25px;
}

.is-trading-view .page-heading p {
  display:none;
}

.is-trading-view .toolbar {
  padding-bottom:6px;
  margin-bottom:6px;
}

.is-trading-view .warnings-panel {
  padding:10px 16px;
  margin-bottom:11px;
}

.is-trading-view .tr-date-strip {
  padding:10px 17px;
  margin-bottom:10px;
  row-gap:7px;
}

.is-trading-view .tr-date-note {
  padding-top:6px;
}

.is-trading-view .wf-section {
  margin-top:8px;
}

.is-trading-view .wf-heading {
  margin-bottom:8px;
}

.is-trading-view .wf-heading .panel-eyebrow {
  display:none;
}

.is-trading-view .wf-heading h2 {
  font-size:19px;
}

.is-trading-view .wf-heading p:not(.panel-eyebrow) {
  margin-top:4px;
}

.is-trading-view .wf-summary {
  margin-bottom:7px;
}

.is-trading-view .wf-heartbeat {
  margin-bottom:8px;
}

@media(max-width:1000px) {
  .wf-body {
    grid-template-columns:1fr;
  }
  .wf-canvas,.wf-graph {
    min-height:480px;
    height:480px;
  }
  .wf-inspector {
    max-height:360px;
    border-left:0;
    border-top:1px solid #3b424d;
  }
  .wf-counter-grid {
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media(max-width:760px) {
  .wf-heading {
    gap:13px;
  }
  .wf-heading h2 {
    font-size:19px;
  }
  .wf-heading p:not(.panel-eyebrow),.wf-heading-status>strong,
  .wf-summary-item,.wf-heartbeat,.wf-inspector-group,.wf-counter-grid dt,
  .wf-inspector-note,.wf-inspector-field,.wf-inspector-section h4,
  .wf-inspector-section p,.wf-legend,.wf-list-details>summary,
  .wf-list-details button,.wf-list-details button>span:last-child {
    font-size:12px;
  }
  .wf-heading-status .wf-status {
    font-size:11px;
  }
  .wf-summary {
    gap:6px;
  }
  .wf-summary-item {
    padding:6px 8px;
  }
  .wf-controls {
    padding:12px;
  }
  .wf-controls-label {
    font-size:9px;
    gap:8px;
  }
  .wf-controls-buttons {
    flex-wrap:wrap;
    width:100%;
    gap:6px;
  }
  .wf-controls-buttons button {
    min-height:44px;
    min-width:44px;
    padding:8px 10px;
    font-size:12px;
  }
  .wf-canvas,.wf-graph {
    min-height:410px;
    height:410px;
  }
  .wf-inspector {
    padding:19px 16px;
    max-height:430px;
  }
  .wf-counter-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .wf-counter-grid dd {
    font-size:17px;
  }
  .wf-inspector-heading h3 {
    font-size:16px;
  }
  .wf-inspector-id {
    font-size:11px;
  }
  .wf-inspector-section h4 {
    margin-bottom:8px;
  }
  .wf-list-details button>span:last-child {
    margin-left:0;
    flex-basis:100%;
  }
  .wf-section.is-expanded {
    inset:7px;
    padding:17px 12px;
    border-radius:10px;
  }
  .wf-section.is-expanded .wf-canvas,
  .wf-section.is-expanded .wf-graph {
    min-height:410px;
  }
  .wf-section.is-expanded .wf-inspector {
    max-height:none;
  }
}

@media(prefers-reduced-motion:reduce) {
  .wf-graph.is-live .wf-edge.is-active {
    animation:none!important;
    stroke-dasharray:none;
  }
}

/* Readable overview: HTML text stays at its actual size, independent of the DAG. */
.wf-heading-side {
  display:flex;
  align-items:center;
  gap:16px;
}

.wf-overview-section .wf-heading-status {
  flex-direction:row;
  align-items:center;
  gap:8px;
}

.wf-overview-section .wf-summary-item {
  padding:4px 8px;
}

.wf-overview-section .wf-heartbeat {
  font-size:11px;
}

.wf-overview {
  position:relative;
  padding:12px;
  background:#171b21;
  background-image:radial-gradient(#343c47 .6px,transparent .6px);
  background-size:18px 18px;
}

.wf-lanes {
  position:relative;
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  align-items:start;
  gap:18px;
}

.wf-lane {
  min-width:0;
}

.wf-lane.is-wide {
  grid-column:span 2;
}

.wf-lane-heading {
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  min-height:31px;
  padding:0 2px 9px;
  margin-bottom:9px;
  border-bottom:1px solid #3a4351;
}

.wf-lane-heading h3 {
  font-size:14px;
  font-weight:600;
  color:#dbe2ed;
  line-height:1.4;
}

.wf-lane-count {
  flex:none;
  font-size:11px;
  color:#a3afc0;
}

.wf-lane-nodes {
  display:grid;
  row-gap:26px;
  column-gap:18px;
}

.wf-lane.is-wide .wf-lane-nodes {
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.wf-step {
  position:relative;
  display:flex;
  align-items:flex-start;
  gap:7px;
  min-width:0;
  min-height:56px;
  width:100%;
  padding:7px 9px;
  border:1px solid #536173;
  border-radius:10px;
  background:#212831;
  color:#e9eef6;
  text-align:left;
  cursor:pointer;
}

.wf-step-number {
  flex:none;
  padding-top:2px;
  color:#9eacbf;
  font:10px/1.4 var(--mono);
}

.wf-step-content {
  display:flex;
  flex-direction:column;
  gap:5px;
  min-width:0;
}

.wf-step-title {
  font-size:13px;
  font-weight:550;
  line-height:1.35;
  overflow-wrap:anywhere;
}

.wf-step-meta {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:3px 7px;
  font-size:11px;
  line-height:1.35;
  overflow-wrap:anywhere;
}

.wf-step .wf-status {
  padding:0;
  border:0;
  background:transparent;
  font-size:11px;
  line-height:1.35;
}

.wf-step.wf-completed { border-color:#687f75; }
.wf-step.wf-partial { border-color:#a08a63; }
.wf-step.wf-failed,.wf-step.wf-blocked { border-color:#b77f74; }
.wf-step.wf-running { border-color:#b5cced; }
.wf-step-missing { color:#e0bd81; }
.wf-step-remaining { color:#acb8cb; }

.wf-step.is-current {
  background:#2b3542;
  border-color:#8da4c3;
}

.wf-step:hover { background:#2d3642; border-color:#8d9eb5; }
.wf-step.is-selected,.wf-step:focus-visible { outline:2px solid #d5e1f1; outline-offset:1px; }

.wf-overview-routes {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  z-index:2;
  pointer-events:none;
}

.wf-overview-edge {
  fill:none;
  stroke:#8291a5;
  stroke-width:1.5;
  opacity:.88;
  stroke-linejoin:round;
  stroke-linecap:round;
}

.wf-flow-arrow { fill:#adbed2; }
.wf-flow-port { fill:#171b21; stroke:#b3c4d8; stroke-width:1.3; }
.wf-flow-junction { fill:#b5c9df; stroke:#171b21; stroke-width:.6; }
.wf-route-completed { stroke:#8fb6a2; }
.wf-route-partial { stroke:#c3a470; }
.wf-route-failed,.wf-route-blocked { stroke:#d39d92; }
.wf-route-pending { stroke-dasharray:3 4; }
.wf-overview.has-selection .wf-overview-edge:not(.is-related) { opacity:.18; }
.wf-overview.has-selection .wf-overview-edge.is-related { stroke:#d5e7ff; stroke-width:2.2; opacity:1; }
.wf-overview.has-selection .wf-step:not(.is-related) { opacity:.5; }
.wf-overview.has-selection .wf-step.is-related { border-color:#a5bcd9; }

.wf-overview-edge.is-active {
  stroke:#b6d2c3;
  stroke-width:2;
  stroke-dasharray:7 8;
  opacity:1;
}

.wf-overview.is-live:not(.motion-paused) .wf-overview-edge.is-active {
  animation:workflow-flow 1.4s linear infinite;
}

.wf-overview-note {
  padding:0 12px 11px;
  font-size:11px;
  line-height:1.5;
  color:#a4b1c4;
}

.wf-route-warning {
  display:block;
  margin-top:5px;
  color:#dfbc82;
}

.wf-dependency-cautions {
  display:flex;
  flex-wrap:wrap;
  gap:5px 15px;
  margin-bottom:9px;
  color:#dfbc82;
  font-size:12px;
  line-height:1.6;
}

.wf-overview.is-live:not(.motion-paused) .wf-step.is-current.wf-running .wf-status:before {
  animation:workflow-stage-pulse 1.6s ease-in-out infinite;
}

@keyframes workflow-stage-pulse {
  50% { opacity:.3; box-shadow:0 0 0 4px #b5cced22; }
}

.wf-overview-empty {
  padding:30px 12px;
  font-size:13px;
  line-height:1.8;
  color:#b6c1d2;
}

.wf-dag-details {
  margin:0;
  border:0;
  border-top:1px solid #3b424d;
  border-radius:0;
}

.wf-dag-details>summary {
  padding:11px 14px;
  font-size:12px;
}

@media(max-width:1200px) {
  .wf-lanes { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .wf-lane.is-wide { grid-column:span 1; }
  .wf-lane.is-wide .wf-lane-nodes { grid-template-columns:1fr; }
  .wf-lane-heading { margin-top:8px; }
}

@media(min-width:1201px) and (max-width:1550px) {
  .wf-lane-heading { min-height:50px; }
  .wf-lane-nodes { row-gap:18px; }
}

@media(max-width:760px) {
  .wf-lanes { grid-template-columns:1fr; gap:17px; }
  .wf-step { min-height:64px; padding:10px; }
  .wf-step-title { font-size:14px; }
  .wf-step-meta,.wf-step .wf-status { font-size:12px; }
  .wf-heading-side { flex-direction:column; align-items:flex-end; gap:9px; }
  .wf-heading-side .wf-controls-buttons { width:auto; }
}

@media(prefers-reduced-motion:reduce) {
  .wf-overview .wf-step.is-current.wf-running .wf-status:before {
    animation:none!important;
  }
  .wf-overview.is-live .wf-overview-edge.is-active {
    animation:none!important;
    stroke-dasharray:none;
  }
}

/* Decision participants are separate from the workflow's fixed-size node view. */
.ta-section {
  margin:0 0 24px;
  padding:18px;
  border:1px solid #3b424d;
  border-radius:12px;
  background:#1b2027;
  color:var(--ink);
}

.ta-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  margin-bottom:15px;
}

.ta-heading>div { min-width:0; }
.ta-heading h2 { font-size:17px; line-height:1.5; font-weight:600; }
.ta-heading p,.ta-footnote { font-size:12px; line-height:1.7; color:#a3afc0; }
.ta-heading p { margin-top:4px; }
.ta-footnote { margin-top:12px; }

.ta-refresh,.ta-close,.ta-notice button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  flex:none;
  min-height:36px;
  padding:7px 11px;
  border:1px solid #475362;
  border-radius:6px;
  background:#2a323d;
  color:#d8e2ef;
  font-size:12px;
  line-height:1.5;
  cursor:pointer;
}

.ta-refresh svg { width:14px; height:14px; }
.ta-refresh:disabled { opacity:.55; cursor:default; }
.ta-list { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:10px; }

.ta-agent {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:6px;
  min-width:0;
  padding:13px;
  border:1px solid #424d5c;
  border-radius:8px;
  background:#232a33;
  text-align:left;
  color:#e0e8f3;
  cursor:pointer;
}

.ta-role { display:flex; align-items:center; gap:6px; flex-wrap:wrap; font-size:12px; line-height:1.5; color:#b3c4da; }
.ta-service { padding:1px 4px; border:1px solid #506074; border-radius:4px; font:10px/1.5 var(--mono); color:#c3cfdf; }
.ta-agent-name { font-size:14px; line-height:1.45; font-weight:550; overflow-wrap:anywhere; }
.ta-agent-id { font:11px/1.7 var(--mono); color:#9facbf; overflow-wrap:anywhere; }
.ta-model { font-size:11px; line-height:1.7; color:#adb9ca; overflow-wrap:anywhere; }
.ta-status { width:100%; margin-top:auto; padding-top:8px; font-size:12px; line-height:1.6; color:#cedbef; border-top:1px solid #3c4654; }
.ta-agent:hover,.ta-refresh:hover,.ta-close:hover,.ta-notice button:hover { background:#303b49; border-color:#91a7c4; }
.ta-agent:focus-visible,.ta-refresh:focus-visible,.ta-close:focus-visible,.ta-markdown:focus-visible,.ta-notice button:focus-visible { outline:2px solid #c8daf2; outline-offset:3px; }
.ta-notice { margin:12px 0; font-size:13px; line-height:1.8; color:#c7b38d; }
.ta-notice button { margin-top:10px; }

.ta-dialog {
  width:min(980px,calc(100vw - 48px));
  max-height:calc(100dvh - 48px);
  margin:auto;
  padding:0;
  border:1px solid #65768d;
  border-radius:13px;
  background:#1b212a;
  color:#e0e8f3;
  overflow:hidden;
  box-shadow:0 25px 90px #0008;
}

.ta-dialog[open] { display:flex; flex-direction:column; }
.ta-dialog::backdrop { background:#06090dd9; backdrop-filter:blur(2px); }
.ta-dialog-top { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; padding:20px 24px; border-bottom:1px solid #414d5d; }
.ta-dialog-identity { min-width:0; }
.ta-dialog-kicker { font-size:11px; line-height:1.6; color:#aebed3; }
.ta-dialog h2 { margin:5px 0; font-size:23px; line-height:1.45; font-weight:550; overflow-wrap:anywhere; }
.ta-dialog-role { font-size:13px; line-height:1.7; color:#b4c0d1; }
.ta-close { min-height:40px; }
.ta-reader { min-height:0; overflow:auto; overscroll-behavior:contain; padding:20px 24px 24px; background:#171c23; scrollbar-width:thin; scrollbar-color:#5d6d83 #171c23; }
.ta-reader-note { font-size:13px; line-height:1.7; color:#bac8da; }
.ta-facts { display:grid; grid-template-columns:100px minmax(0,1fr); gap:8px 14px; margin:17px 0; font-size:12px; line-height:1.7; }
.ta-facts dt { color:#96a7bf; }
.ta-facts dd { margin:0; color:#d4dfed; overflow-wrap:anywhere; }
.ta-document-warning { margin-bottom:10px; color:#d7b981; font-size:12px; line-height:1.7; }
.ta-markdown { max-width:100%; margin:0; padding:18px; border:1px solid #3b4656; border-radius:8px; background:#11161d; color:#dce5f1; white-space:pre-wrap; overflow-wrap:anywhere; font:13px/1.8 var(--mono); tab-size:2; }

@media(max-width:1550px) {
  .ta-list { grid-template-columns:repeat(3,minmax(0,1fr)); }
}

@media(max-width:760px) {
  .ta-section { padding:14px; }
  .ta-heading { align-items:flex-start; gap:10px; }
  .ta-heading h2 { font-size:16px; }
  .ta-refresh,.ta-close,.ta-notice button { min-height:44px; }
  .ta-list { grid-template-columns:1fr; }
  .ta-agent { padding:15px; }
  .ta-model { font-size:12px; }
  .ta-dialog { width:calc(100vw - 20px); max-height:calc(100dvh - 20px); }
  .ta-dialog-top { padding:16px 14px; gap:12px; }
  .ta-dialog h2 { font-size:19px; }
  .ta-reader { padding:16px 14px; }
  .ta-facts { grid-template-columns:1fr; gap:4px; }
  .ta-facts dd { margin-bottom:8px; }
  .ta-markdown { padding:12px; }
}

/* Trading cockpit: one-screen summary above the detailed workflow and tables. */
.tc {
  --tc-done:#7fb894;
  --tc-partial:#d9b36a;
  --tc-running:#8db2e6;
  --tc-pending:#4a525e;
  --tc-skipped:#68717d;
  --tc-blocked:#e3906b;
  --tc-failed:#e0766c;
  --tc-panel:#1c2026;
  display:grid;
  gap:16px;
  margin-bottom:22px;
}

.tc-kpis {
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:12px;
}

.tc-tile {
  display:flex;
  flex-direction:column;
  gap:10px;
  min-width:0;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--tc-panel);
  padding:16px 16px 14px;
}

.tc-tile.is-alert { border-color:#5a3a35; box-shadow:inset 3px 0 0 var(--tc-failed); }
.tc-tile.is-warn { border-color:#4d4230; box-shadow:inset 3px 0 0 var(--tc-partial); }

.tc-tile-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:var(--muted);
  font-size:12px;
  font-weight:600;
}

.tc-tile-icon svg { width:16px; height:16px; color:#6f7885; }

.tc-tile-value {
  font-size:26px;
  font-weight:650;
  line-height:1.15;
  letter-spacing:-.01em;
  overflow-wrap:anywhere;
}

.tc-tile-value small { font-size:13px; font-weight:500; color:var(--muted); }
.tc-tile-value .tr-money { font-size:inherit; }
.tc-tile.is-up .tc-tile-value .tr-money { color:#9fc6ad; }
.tc-tile.is-down .tc-tile-value .tr-money { color:#e4a099; }

.tc-tile-foot {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:5px 8px;
  margin-top:auto;
  color:var(--muted);
  font-size:11px;
  line-height:1.5;
}

.tc-tile-foot .tr-money { font-size:11px; font-weight:600; }
.tc-muted { color:#7d8693; }

.tc-warn {
  display:inline-flex;
  align-items:center;
  gap:4px;
  color:#dbb77a;
}

.tc-warn svg { width:13px; height:13px; }

.tc-decisions { display:flex; gap:14px; }
.tc-decision { display:flex; flex-direction:column; gap:2px; }
.tc-decision b { font-size:24px; font-weight:650; line-height:1.1; }
.tc-decision small { font-size:11px; color:var(--muted); font-weight:500; }
.tc-decision.is-buy b { color:#9fc6ad; }
.tc-decision.is-reject b { color:#e4a099; }

.tc-strip {
  display:flex;
  gap:2px;
  list-style:none;
  margin:0;
  padding:0;
}

.tc-cell {
  flex:1 1 0;
  height:10px;
  border-radius:2px;
  background:var(--tc-pending);
}

.tc-cell:first-child { border-radius:5px 2px 2px 5px; }
.tc-cell:last-child { border-radius:2px 5px 5px 2px; }
.tc-cell.is-current { outline:2px solid var(--ink); outline-offset:1px; }

.tc .is-done { --tc-fill:var(--tc-done); }
.tc .is-partial { --tc-fill:var(--tc-partial); }
.tc .is-running { --tc-fill:var(--tc-running); }
.tc .is-pending { --tc-fill:var(--tc-pending); }
.tc .is-skipped { --tc-fill:var(--tc-skipped); }
.tc .is-blocked { --tc-fill:var(--tc-blocked); }
.tc .is-failed { --tc-fill:var(--tc-failed); }
.tc-cell,.tc-swatch { background:var(--tc-fill,var(--tc-pending)); }
.tc-cell.is-skipped,.tc-swatch.is-skipped { background:repeating-linear-gradient(135deg,var(--tc-skipped) 0 2px,var(--tc-pending) 2px 4px); }

.tc-grid {
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);
  gap:16px;
  align-items:start;
}

.tc-side { display:grid; gap:16px; min-width:0; }

.tc-panel {
  min-width:0;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--tc-panel);
  padding:18px 20px;
}

.tc-panel>header {
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  justify-content:space-between;
  gap:6px 12px;
  margin-bottom:14px;
}

.tc-panel h2 { font-size:15px; font-weight:650; }
.tc-panel-meta { display:inline-flex; flex-wrap:wrap; align-items:center; gap:4px; color:var(--muted); font-size:11px; }
.tc-panel-foot { margin-top:12px; color:var(--muted); font-size:11px; display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
.tc-panel-foot strong { color:var(--ink); }

.tc-runner {
  display:flex;
  flex-wrap:wrap;
  gap:8px 20px;
  font-size:12px;
  color:var(--muted);
  padding-bottom:12px;
  border-bottom:1px solid var(--line);
}

.tc-runner strong { color:#c3c9d2; font-weight:600; }

.tc-legend {
  display:flex;
  flex-wrap:wrap;
  gap:6px 14px;
  list-style:none;
  margin:12px 0;
  padding:0;
  font-size:12px;
  color:var(--muted);
}

.tc-legend li { display:inline-flex; align-items:center; gap:6px; }
.tc-legend b { color:var(--ink); font-weight:650; }
.tc-swatch { width:10px; height:10px; border-radius:3px; display:inline-block; }

.tc-attention {
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
}

.tc-attention>li {
  display:grid;
  grid-template-columns:76px minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  padding:9px 0;
  border-top:1px solid #2a2f37;
}

.tc-attention>li .badge { justify-self:start; }
.tc-attention-main { display:flex; flex-direction:column; gap:2px; min-width:0; }
.tc-attention-main strong { font-size:12px; font-weight:600; overflow-wrap:anywhere; }
.tc-attention-main span { font-size:11px; color:var(--muted); overflow-wrap:anywhere; }
.tc-attention-meta { font-size:11px; color:#7d8693; text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
.tc-attention>li.tc-more { display:block; color:var(--muted); font-size:11px; }

.tc-empty { display:flex; align-items:center; gap:8px; color:var(--muted); font-size:12px; padding:8px 0; }
.tc-empty svg { width:15px; height:15px; }
.tc-empty.is-good { color:#9fc6ad; }

.tc-markets { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }

.tc-market {
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width:0;
  border:1px solid #2c323a;
  border-radius:10px;
  padding:14px;
  background:#20252c;
}

.tc-market-head { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.tc-market-head strong { font-size:13px; letter-spacing:.02em; }
.tc-market-value { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 8px; font-size:22px; font-weight:650; }
.tc-market-value small { font-size:11px; font-weight:500; }
.tc-market-value small.is-up { color:#9fc6ad; }
.tc-market-value small.is-down { color:#e4a099; }
.tc-market-reason { font-size:11px; color:#dbb77a; line-height:1.5; }
.tc-market p.tc-muted { font-size:11px; }

.tc-breadth { display:flex; gap:2px; height:8px; }
.tc-breadth>span { min-width:2px; border-radius:2px; }
.tc-breadth>span:first-child { border-radius:4px 2px 2px 4px; }
.tc-breadth>span:last-child { border-radius:2px 4px 4px 2px; }
.tc-breadth .is-up { background:var(--tc-done); }
.tc-breadth .is-flat { background:var(--tc-skipped); }
.tc-breadth .is-down { background:var(--tc-failed); }
.tc-breadth-text { font-size:11px; color:#c3c9d2; font-variant-numeric:tabular-nums; }

.tc-checks { display:grid; gap:10px; }
.tc-check { display:grid; gap:5px; border:1px solid #2c323a; border-radius:10px; padding:12px 14px; background:#20252c; }
.tc-check-head { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.tc-check-head strong { font-size:12px; font-weight:600; }
.tc-check p { font-size:11px; line-height:1.6; color:#c3c9d2; }
.tc-check p.tc-muted { color:#7d8693; }
.tc-tables { display:block; font-family:var(--mono); font-size:10px; color:#dbb77a; overflow-wrap:anywhere; }

@media(max-width:1400px) {
  .tc-kpis { grid-template-columns:repeat(3,minmax(0,1fr)); }
}

@media(max-width:1100px) {
  .tc-grid { grid-template-columns:minmax(0,1fr); }
}

@media(max-width:760px) {
  .tc-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .tc-markets { grid-template-columns:minmax(0,1fr); }
  .tc-attention>li { grid-template-columns:minmax(0,1fr); gap:4px; }
  .tc-attention-meta { text-align:left; }
}

@media(max-width:430px) {
  .tc-kpis { grid-template-columns:minmax(0,1fr); }
}

/* Big standalone figures read better in proportional digits than in the table mono face. */
.tc-tile-value .tr-money,.tc-tile-foot .tr-money { font-family:var(--font); }

/* Admin login: account data stays server-side until the admin signs in. */
.admin-button {
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:30px;
  padding:5px 11px;
  border:1px solid #4a5563;
  border-radius:7px;
  background:#20252c;
  color:var(--ink);
  font-size:11px;
  font-weight:600;
}

.admin-button:hover { background:#2a3039; }
.admin-button svg { width:13px; height:13px; }
.admin-button.is-admin { border-color:#3d5a48; color:#9fc6ad; }

.admin-dialog {
  width:min(380px,calc(100vw - 32px));
  margin:auto;
  padding:0;
  border:1px solid #4a5563;
  border-radius:13px;
  background:#1b212a;
  color:var(--ink);
  box-shadow:0 25px 90px #0008;
}

.admin-dialog::backdrop { background:#06090dd9; backdrop-filter:blur(2px); }
.admin-dialog form { display:grid; gap:10px; padding:22px; }
.admin-dialog h2 { font-size:17px; font-weight:650; }
.admin-dialog p { font-size:12px; line-height:1.6; color:var(--muted); }
.admin-dialog label { font-size:12px; font-weight:600; margin-top:4px; }

.admin-dialog input {
  min-height:40px;
  padding:8px 12px;
  border:1px solid #4a5563;
  border-radius:8px;
  background:#121417;
  color:var(--ink);
}

.admin-dialog p.admin-error { color:#e4a099; }
.admin-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:6px; }
.admin-submit { background:#d1d8e2; color:#252b33; border-color:#d1d8e2; }
.admin-submit:hover { background:#e6ebf1; }
.tc-locked { font-size:18px; font-weight:600; color:var(--muted); }

@media(max-width:760px) {
  .topbar-right .admin-button { padding:5px 8px; }
}

/* Loading: skeleton on first load, a moving bar while an existing snapshot refreshes. */
.loading-orbit { border-top-color:var(--ink); }
.tc-loading { display:grid; gap:16px; margin-bottom:22px; }
.tc-loading-head { display:flex; align-items:center; gap:14px; padding:4px 2px; }
.tc-loading-head .loading-orbit { width:24px; height:24px; flex:none; border-width:2px; }
.tc-loading-head strong { display:block; font-size:13px; font-weight:600; }
.tc-loading-head p { margin-top:4px; font-size:11px; color:var(--muted); }

.tc-skeleton {
  border:1px solid var(--line);
  border-radius:12px;
  background:linear-gradient(100deg,#1c2026 30%,#272c34 50%,#1c2026 70%);
  background-size:300% 100%;
  animation:skeleton-shimmer 1.4s ease-in-out infinite;
}

.tc-skeleton.is-tile { height:150px; }
.tc-skeleton.is-panel { height:360px; }
.tc-skeleton.is-short { height:172px; }

@keyframes skeleton-shimmer {
  from { background-position:100% 0; }
  to { background-position:0 0; }
}

#content.is-refreshing { position:relative; }

#content.is-refreshing::before {
  content:'';
  position:absolute;
  z-index:5;
  top:-1px;
  left:0;
  right:0;
  height:2px;
  border-radius:2px;
  background:linear-gradient(90deg,transparent,#8db2e6,transparent) no-repeat;
  background-size:35% 100%;
  animation:refresh-bar 1.1s ease-in-out infinite;
}

@keyframes refresh-bar {
  from { background-position:-40% 0; }
  to { background-position:140% 0; }
}
