@font-face {
  font-family: "Material Symbols Outlined";
  src: url("/fonts/material-symbols-outlined-qmt234.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

.workspace.stitch-p24-pages-route .page-toolbar,
.workspace.stitch-p24-pages-route .global-banner,
.app-shell.stitch-p24-pages-route .agent-indicator {
  display: none !important;
}

.workspace.stitch-p24-pages-route main {
  padding: 0 12px 20px;
  overflow: visible;
}

.workspace.stitch-p24-pages-route.route-selections main {
  padding-bottom: 0;
}

.workspace.stitch-p24-pages-route.route-signals main {
  padding-bottom: 0;
}

.workspace.stitch-p24-pages-route.route-account main {
  padding-bottom: 0;
}

.stitch-p24-page {
  --stitch-blue: #00479f;
  --stitch-blue-strong: #1d5fc4;
  --stitch-blue-soft: #e6eeff;
  --stitch-blue-pale: #eff4ff;
  --stitch-ink: #0f1c2d;
  --stitch-muted: #59687d;
  --stitch-line: #d5ddea;
  --stitch-line-strong: #c2cbd9;
  --stitch-red: #be2531;
  --stitch-green: #137a50;
  --stitch-orange: #92500f;
  width: 100%;
  min-width: 0;
  color: var(--stitch-ink);
  font-size: 12px;
}

.stitch-p24-page *,
.stitch-p24-page *::before,
.stitch-p24-page *::after {
  min-width: 0;
  box-sizing: border-box;
}

.stitch-p24-page button,
.stitch-p24-page input,
.stitch-p24-page select {
  font: inherit;
}

.stitch-p24-page code,
.stitch-p24-number,
.stitch-p24-time-cell,
.stitch-table-foot,
.stitch-panel-foot,
.stitch-account-metric > strong,
.stitch-account-metric footer,
.stitch-id-grid strong,
.stitch-filter-meta,
.stitch-title-cluster code,
.stitch-scheduler code {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.stitch-topbar {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 12px;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid var(--stitch-line-strong);
  box-shadow: 0 1px 2px rgba(29, 56, 96, .05);
}

.stitch-title-cluster,
.stitch-top-actions,
.stitch-scheduler {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.stitch-title-cluster {
  flex: 1 1 auto;
  overflow: hidden;
}

.stitch-title-cluster > strong {
  flex: 0 0 auto;
  font-size: 17px;
  line-height: 1.2;
}

.stitch-title-cluster > span:not(.stitch-p24-title-icon):not(.stitch-demo-chip):not(.stitch-live-dot) {
  overflow: hidden;
  color: var(--stitch-muted);
  text-overflow: ellipsis;
}

.stitch-title-cluster > i {
  flex: 0 0 1px;
  width: 1px;
  height: 20px;
  background: var(--stitch-line);
}

.stitch-p24-title-icon {
  flex: 0 0 auto;
  color: var(--stitch-blue);
  font-size: 20px;
  font-weight: 800;
}

.stitch-title-cluster code {
  flex: 0 0 auto;
  padding: 2px 4px;
  color: var(--stitch-blue);
  background: var(--stitch-blue-soft);
  font-size: 11px;
  font-weight: 700;
}

.stitch-demo-chip {
  flex: 0 0 auto;
  padding: 3px 7px;
  color: #703514;
  background: #ffe4d6;
  border: 1px solid #efb192;
  font-size: 10px;
  font-weight: 700;
}

.stitch-live-dot {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--stitch-blue-strong);
}

.stitch-live-dot.is-offline {
  background: #8f99a8;
}

.stitch-top-actions {
  flex: 0 1 auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.stitch-top-actions::-webkit-scrollbar,
.stitch-segment-row::-webkit-scrollbar,
.stitch-p24-table-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.stitch-state-button,
.stitch-action-button,
.stitch-row-button {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 4px 9px;
  color: #344359;
  background: #f5f8fe;
  border: 1px solid var(--stitch-line-strong);
  border-radius: 1px;
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}

.stitch-state-button {
  min-height: 24px;
  padding: 3px 7px;
  border: 0;
  background: transparent;
}

.stitch-state-button.is-active {
  color: var(--stitch-blue);
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 43, 82, .12);
}

.stitch-action-button.is-primary,
.stitch-row-button.is-primary {
  color: #fff;
  background: var(--stitch-blue);
  border-color: var(--stitch-blue);
}

.stitch-state-button:disabled,
.stitch-action-button:disabled,
.stitch-row-button:disabled {
  opacity: .48;
  cursor: not-allowed;
}

.stitch-filter-card {
  margin-top: 8px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--stitch-line);
  box-shadow: 0 1px 2px rgba(29, 56, 96, .025);
}

.stitch-filter-grid {
  display: grid;
  align-items: stretch;
  gap: 8px;
}

.stitch-selection-filter-grid {
  grid-template-columns: minmax(260px, 4fr) repeat(4, minmax(120px, 2fr));
}

.stitch-filter-grid > label,
.stitch-plan-filter-row > label {
  height: 29px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  overflow: hidden;
  color: var(--stitch-muted);
  background: #fff;
  border: 1px solid var(--stitch-line);
  white-space: nowrap;
}

.stitch-filter-grid > label > span:first-child,
.stitch-plan-filter-row > label > span:first-child {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 650;
}

.stitch-filter-grid input,
.stitch-filter-grid select,
.stitch-plan-filter-row input,
.stitch-plan-filter-row select {
  width: 100%;
  height: 26px;
  padding: 0;
  overflow: hidden;
  color: var(--stitch-ink);
  background: transparent;
  border: 0;
  outline: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-search-field > span {
  color: #718096;
  font-size: 16px !important;
}

.stitch-segment-row {
  min-height: 29px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.stitch-segment-row > button {
  flex: 0 0 auto;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  color: #56657a;
  background: var(--stitch-blue-soft);
  border: 1px solid transparent;
  font-size: 10px;
}

.stitch-segment-row > button.is-active {
  color: var(--stitch-blue);
  background: #dce8fc;
  border-color: #9bb9ea;
  font-weight: 750;
}

.stitch-segment-row > button.is-danger,
.stitch-segment-row > button.is-active.is-danger {
  color: #a9232c;
  background: #ffe9e8;
  border-color: #ebb2b3;
}

.stitch-segment-row > button i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #768397;
}

.stitch-segment-row > button i.is-green { background: var(--stitch-green); }
.stitch-segment-row > button i.is-red { background: #d27985; }
.stitch-segment-row > button i.is-orange { background: #8f4307; }

.stitch-filter-meta {
  flex: 1 0 auto;
  margin-left: auto;
  color: var(--stitch-muted);
  text-align: right;
  font-size: 10px;
}

.stitch-filter-meta strong {
  color: var(--stitch-ink);
}

.stitch-split-grid {
  min-width: 0;
  display: grid;
  align-items: start;
  gap: 8px;
  margin-top: 8px;
}

.stitch-split-7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.stitch-split-8-4 { grid-template-columns: minmax(0, 8fr) minmax(330px, 4fr); }

.stitch-panel,
.stitch-detail-panel,
.stitch-equity-card,
.stitch-account-metric {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--stitch-line);
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(29, 56, 96, .035);
}

.stitch-list-panel {
  overflow: hidden;
}

.stitch-panel-head {
  min-height: 33px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 8px;
  background: var(--stitch-blue-pale);
  border-bottom: 1px solid var(--stitch-line);
}

.stitch-panel-head > div:first-child,
.stitch-ledger-head > div,
.stitch-equity-card header > div {
  min-width: 0;
}

.stitch-panel-head strong,
.stitch-ledger-head strong,
.stitch-equity-card header strong {
  font-size: 12px;
}

.stitch-panel-head span,
.stitch-ledger-head span,
.stitch-equity-card header span {
  margin-left: 5px;
  color: var(--stitch-muted);
  font-size: 9px;
}

.stitch-panel-head > div:last-child {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stitch-panel-head label {
  color: var(--stitch-muted);
  font-size: 9px;
}

.stitch-panel-head select {
  margin-left: 4px;
  color: var(--stitch-ink);
  background: transparent;
  border: 0;
  font-weight: 650;
}

.stitch-panel-head button {
  width: 24px;
  height: 24px;
  padding: 0;
  color: var(--stitch-muted);
  background: transparent;
  border: 0;
  font-size: 16px;
}

.stitch-table-region {
  min-height: 580px;
}

.stitch-p24-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
}

.stitch-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
}

.stitch-table th {
  height: 32px;
  padding: 4px 7px;
  color: #53647b;
  background: #e5edfb;
  border-bottom: 1px solid var(--stitch-line-strong);
  text-align: left;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.15;
  white-space: normal;
}

.stitch-table td {
  height: 55px;
  max-width: none;
  padding: 5px 7px;
  overflow: hidden;
  color: #27384d;
  border-bottom: 1px solid #e6eaf1;
  font-size: 9px;
  line-height: 1.3;
  vertical-align: middle;
  overflow-wrap: normal;
}

.stitch-table tbody tr {
  cursor: pointer;
}

.stitch-table tbody tr:hover {
  background: #f5f8fe;
}

.stitch-table tbody tr.is-selected {
  background: #edf3fd;
  box-shadow: inset 2px 0 var(--stitch-blue);
}

.stitch-selection-table { min-width: 0; }
.stitch-selection-table th:nth-child(1) { width: 7%; }
.stitch-selection-table th:nth-child(2) { width: 19%; }
.stitch-selection-table th:nth-child(3) { width: 15%; }
.stitch-selection-table th:nth-child(4) { width: 22%; }
.stitch-selection-table th:nth-child(5) { width: 9%; }
.stitch-selection-table th:nth-child(6) { width: 9%; }
.stitch-selection-table th:nth-child(7) { width: 10%; }
.stitch-selection-table th:nth-child(8) { width: 9%; }

.stitch-rank {
  color: var(--stitch-blue);
  font: 700 10px var(--mono);
}

.stitch-p24-code-cell strong,
.stitch-p24-code-cell small,
.stitch-p24-number strong,
.stitch-p24-number small,
.stitch-p24-time-cell strong,
.stitch-p24-time-cell small,
.stitch-decision-cell > * {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-p24-code-cell strong {
  color: #233248;
  font-size: 10px;
}

.stitch-p24-code-cell small,
.stitch-p24-number small,
.stitch-p24-time-cell small,
.stitch-cell-note {
  margin-top: 2px;
  color: #708097;
  font: 8px var(--mono);
}

.stitch-cell-note {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-p24-number {
  text-align: right;
  white-space: nowrap;
}

.stitch-p24-number strong {
  font: 700 10px var(--mono);
}

.stitch-soft-tag,
.stitch-signal-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 19px;
  padding: 2px 5px;
  overflow: hidden;
  color: #41628e;
  background: #eaf1fc;
  border: 1px solid #d4e0f1;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-decision-cell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3px 5px;
}

.stitch-decision-cell small {
  grid-column: 1 / -1;
  color: #68778c;
  font-size: 8px;
}

.stitch-decision-cell > strong {
  color: var(--stitch-blue);
  font: 700 10px var(--mono);
}

.stitch-row-button {
  min-height: 24px;
  padding: 3px 6px;
  font-size: 8px;
}

.stitch-p24-row-actions,
.stitch-p24-detail-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stitch-table-foot,
.stitch-panel-foot {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 8px;
  overflow: hidden;
  color: var(--stitch-muted);
  background: #eaf1fc;
  border-top: 1px solid var(--stitch-line);
  font-size: 9px;
  white-space: nowrap;
}

.stitch-panel-foot {
  justify-content: flex-start;
  gap: 24px;
}

.stitch-empty {
  min-height: 180px;
  display: grid;
  place-content: center;
  gap: 5px;
  padding: 24px;
  color: var(--stitch-muted);
  text-align: center;
  font-size: 10px;
}

.stitch-empty strong,
.stitch-p24-inline-empty strong {
  color: #485970;
  font-size: 12px;
}

.stitch-p24-inline-empty {
  min-height: 70px;
  display: grid;
  place-content: center;
  gap: 4px;
  padding: 12px;
  color: var(--stitch-muted);
  text-align: center;
  font-size: 9px;
}

.stitch-detail-panel {
  overflow: hidden;
}

.stitch-selection-detail {
  min-height: 655px;
}

.stitch-plan-detail {
  min-height: 650px;
}

.stitch-detail-head {
  min-height: 52px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  border-bottom: 1px solid var(--stitch-line);
}

.stitch-detail-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--stitch-blue);
  background: #dce8fc;
  font-size: 18px;
  font-weight: 800;
}

.stitch-detail-head > div:nth-child(2) > strong,
.stitch-detail-head > div:nth-child(2) > small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-detail-head > div:nth-child(2) > strong {
  font-size: 13px;
}

.stitch-detail-head > div:nth-child(2) > small {
  margin-top: 2px;
  color: var(--stitch-muted);
  font-size: 9px;
}

.stitch-score-strip {
  min-height: 64px;
  display: grid;
  grid-template-columns: 1fr 1.5fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: linear-gradient(90deg, #edf3fd, #e3ecfb);
  border-bottom: 1px solid var(--stitch-line);
}

.stitch-score-strip > div {
  min-width: 0;
}

.stitch-score-strip > div + div {
  padding-left: 8px;
  border-left: 1px solid var(--stitch-line);
}

.stitch-score-strip small,
.stitch-score-strip strong {
  display: block;
}

.stitch-score-strip small {
  color: var(--stitch-muted);
  font-size: 9px;
}

.stitch-score-strip strong {
  margin-top: 3px;
  overflow: hidden;
  color: var(--stitch-blue);
  font: 700 17px var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-score-strip strong em {
  color: var(--stitch-muted);
  font-size: 10px;
  font-style: normal;
}

.stitch-score-strip > div:nth-child(2) strong {
  color: var(--stitch-ink);
  font: 700 11px var(--sans);
}

.stitch-signal-chip {
  color: var(--stitch-green);
  background: #edf9f3;
  border-color: #bfe2d0;
  font: 700 10px var(--mono);
}

.stitch-detail-section,
.stitch-audit-box,
.stitch-market-box,
.stitch-exposure-box {
  margin: 8px;
  overflow: hidden;
  border: 1px solid var(--stitch-line);
}

.stitch-section-title {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 7px;
  color: #29394e;
  background: #fff;
  border-bottom: 1px solid var(--stitch-line);
  font-size: 10px;
}

.stitch-section-title span,
.stitch-section-title code {
  color: var(--stitch-green);
  font-size: 9px;
}

.stitch-check-list {
  display: grid;
  gap: 6px;
  padding: 6px;
}

.stitch-check-card {
  padding: 6px;
  background: #fff;
  border: 1px solid #e0e5ed;
}

.stitch-check-card > div {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
}

.stitch-check-card > div > span:last-child {
  color: var(--stitch-green);
  font-size: 9px;
}

.stitch-check-icon {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #7f8b9b;
  font-size: 11px;
}

.stitch-check-icon.is-pass { background: var(--stitch-green); }
.stitch-check-icon.is-fail { background: var(--stitch-red); }

.stitch-check-card p {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 4px;
  margin: 5px 0;
  padding: 5px;
  color: #31445e;
  background: var(--stitch-blue-pale);
  font: 9px var(--mono);
}

.stitch-check-card p b {
  font-family: var(--sans);
}

.stitch-check-card footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--stitch-muted);
  font: 8px var(--mono);
}

.stitch-audit-box {
  padding: 0;
  background: var(--stitch-blue-pale);
}

.stitch-audit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 12px;
  padding: 8px;
}

.stitch-audit-grid small,
.stitch-audit-grid strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-audit-grid small {
  color: var(--stitch-muted);
  font-size: 8px;
}

.stitch-audit-grid strong {
  margin-top: 2px;
  font: 700 9px var(--mono);
}

.stitch-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 9px 7px;
}

.stitch-flow > span {
  position: relative;
  min-width: 0;
  text-align: center;
}

.stitch-flow > span:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 10px;
  left: calc(50% + 13px);
  width: calc(100% - 22px);
  height: 2px;
  background: #b5becd;
}

.stitch-flow > span.is-done:not(:last-child)::after {
  background: var(--stitch-blue);
}

.stitch-flow b {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 50%;
  color: #fff;
  background: #8b96a6;
  font: 700 9px var(--mono);
}

.stitch-flow .is-done b { background: var(--stitch-blue); }

.stitch-flow strong,
.stitch-flow small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-flow strong {
  margin-top: 4px;
  font-size: 8px;
}

.stitch-flow small {
  margin-top: 2px;
  color: var(--stitch-muted);
  font: 7px var(--mono);
}

.stitch-linkage-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  padding: 6px;
  background: var(--stitch-blue-pale);
  border-top: 1px solid var(--stitch-line);
  font: 8px var(--mono);
}

.stitch-linkage-summary strong {
  color: var(--stitch-blue);
}

.stitch-p24-detail-actions {
  padding: 7px;
}

.stitch-p24-detail-actions .stitch-row-button {
  flex: 1 1 0;
}

.stitch-detail-note,
.stitch-hard-limit-note {
  padding: 7px 8px;
  color: var(--stitch-muted);
  background: #e7eefb;
  border-top: 1px solid var(--stitch-line);
  font-size: 9px;
}

.stitch-hard-limit-note {
  margin: 0 8px 8px;
  color: #8e2229;
  background: #fff0ef;
  border: 1px solid #edc0bf;
}

/* signals and trade plans */
.stitch-scheduler {
  flex: 0 0 auto;
  color: var(--stitch-muted);
  font-size: 9px;
}

.stitch-scheduler strong {
  color: var(--stitch-blue);
}

.stitch-plan-filters {
  min-height: 76px;
}

.stitch-plan-segments {
  margin-top: 0;
}

.stitch-plan-filter-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(120px, .8fr) minmax(120px, .8fr) minmax(200px, 1.2fr) auto auto;
  gap: 8px;
  margin-top: 4px;
}

.stitch-hidden-control {
  display: none !important;
}

.stitch-plan-table {
  min-width: 0;
}

.stitch-plan-table th:nth-child(1) { width: 14%; }
.stitch-plan-table th:nth-child(2) { width: 11%; }
.stitch-plan-table th:nth-child(3) { width: 8%; }
.stitch-plan-table th:nth-child(4) { width: 12%; }
.stitch-plan-table th:nth-child(5) { width: 9%; }
.stitch-plan-table th:nth-child(6) { width: 11%; }
.stitch-plan-table th:nth-child(7) { width: 10%; }
.stitch-plan-table th:nth-child(8) { width: 10%; }
.stitch-plan-table th:nth-child(9) { width: 10%; }
.stitch-plan-table th:nth-child(10) { width: 8%; }

.stitch-plan-table td {
  height: 69px;
}

.stitch-side-chip,
.stitch-risk-result {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 3px 5px;
  overflow: hidden;
  font-size: 8px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-side-chip.is-buy {
  color: #b62430;
  background: #fff0ef;
}

.stitch-side-chip.is-sell {
  color: #167651;
  background: #eef9f4;
}

.stitch-risk-result {
  color: #5f6d80;
  background: #eff2f7;
}

.stitch-risk-result.is-pass {
  color: var(--stitch-green);
  background: #ebf8f1;
}

.stitch-risk-result.is-blocked {
  color: var(--stitch-red);
  background: #ffe9e8;
}

.stitch-plan-identity {
  min-height: 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  background: var(--stitch-blue-pale);
  border-bottom: 1px solid var(--stitch-line);
}

.stitch-plan-identity strong,
.stitch-plan-identity small,
.stitch-plan-identity span {
  display: block;
}

.stitch-plan-identity small {
  margin-top: 2px;
  color: var(--stitch-muted);
  font-size: 8px;
}

.stitch-plan-identity > div:last-child {
  text-align: right;
  font: 8px var(--mono);
}

.stitch-plan-identity > div:last-child b {
  color: var(--stitch-red);
}

.stitch-timeline {
  padding: 7px 8px 2px;
}

.stitch-timeline > article {
  position: relative;
  display: grid;
  grid-template-columns: 15px minmax(0, 1fr);
  gap: 6px;
  padding-bottom: 9px;
}

.stitch-timeline > article:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  bottom: -1px;
  width: 1px;
  background: #cdd5e1;
}

.stitch-timeline > article.is-done:not(:last-child)::before { background: var(--stitch-blue); }
.stitch-timeline > article > i {
  position: relative;
  z-index: 1;
  width: 13px;
  height: 13px;
  margin-top: 2px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #8994a4;
  box-shadow: 0 0 0 1px #8994a4;
}

.stitch-timeline > article.is-done > i { background: var(--stitch-green); box-shadow: 0 0 0 1px var(--stitch-green); }
.stitch-timeline > article.is-blocked > i { background: var(--stitch-red); box-shadow: 0 0 0 1px var(--stitch-red); }

.stitch-timeline article > div > strong {
  font-size: 10px;
}

.stitch-timeline article > div > span {
  float: right;
  color: var(--stitch-blue);
  font: 8px var(--mono);
}

.stitch-timeline article > div > p {
  margin: 3px 0 0;
  color: var(--stitch-muted);
  font-size: 8px;
  line-height: 1.4;
}

.stitch-p24-risk-detail {
  margin-top: 5px;
  padding: 5px;
  color: #34445a;
  background: #fff5f4;
  border: 1px solid #efcecc;
}

.stitch-p24-risk-detail p {
  display: grid;
  grid-template-columns: minmax(100px, .8fr) minmax(0, 1.2fr);
  gap: 5px;
  margin: 0 !important;
  padding: 3px 0;
  border-bottom: 1px solid #f0d9d7;
}

.stitch-p24-risk-detail p:last-child { border-bottom: 0; }
.stitch-p24-risk-detail p.is-fail b { color: var(--stitch-red); }

.stitch-id-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin: 0 8px 8px;
  padding: 6px;
  background: var(--stitch-blue-pale);
}

.stitch-id-grid small,
.stitch-id-grid strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-id-grid small {
  color: var(--stitch-muted);
  font-size: 7px;
}

.stitch-id-grid strong {
  margin-top: 2px;
  font-size: 8px;
}

.stitch-market-box,
.stitch-exposure-box {
  margin-top: 0;
}

.stitch-exposure-box progress {
  width: calc(100% - 14px);
  height: 8px;
  margin: 7px;
  border: 0;
  appearance: none;
  background: #e4eaf4;
}

.stitch-exposure-box progress::-webkit-progress-bar { background: #e4eaf4; }
.stitch-exposure-box progress::-webkit-progress-value { background: var(--stitch-red); }
.stitch-exposure-box progress::-moz-progress-bar { background: var(--stitch-red); }

.stitch-progress-empty {
  margin: 7px;
  padding: 5px 7px;
  border: 1px dashed var(--stitch-border);
  background: #f6f8fc;
  color: var(--stitch-muted);
  font: 8px var(--mono);
  text-align: center;
}

.stitch-exposure-box > div:last-child {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  padding: 0 7px 7px;
  color: var(--stitch-muted);
  font: 8px var(--mono);
}

/* account and P&L */
.stitch-account-top {
  min-height: 80px;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(0, 1.45fr);
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(29, 56, 96, .05);
}

.stitch-account-title,
.stitch-account-tools {
  min-width: 0;
}

.stitch-account-title > div,
.stitch-account-actions,
.stitch-period,
.stitch-range-pills {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stitch-account-title > div:first-child strong {
  font-size: 16px;
}

.stitch-account-title > div:first-child small {
  color: var(--stitch-muted);
  font-size: 9px;
}

.stitch-account-title > div + div {
  margin-top: 5px;
  overflow: hidden;
  white-space: nowrap;
}

.stitch-account-title code {
  overflow: hidden;
  color: var(--stitch-blue);
  font-size: 9px;
  text-overflow: ellipsis;
}

.stitch-account-tools {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.stitch-period {
  color: var(--stitch-muted);
  font-size: 9px;
}

.stitch-period strong {
  color: var(--stitch-ink);
  font: 700 9px var(--mono);
}

.stitch-account-actions {
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.stitch-range-pills {
  padding: 2px;
  background: var(--stitch-blue-pale);
}

.stitch-range-pills button,
.stitch-ledger-tabs button {
  min-height: 22px;
  padding: 3px 8px;
  color: var(--stitch-muted);
  background: transparent;
  border: 0;
  font-size: 9px;
  white-space: nowrap;
}

.stitch-range-pills button.is-active,
.stitch-ledger-tabs button.is-active {
  color: #fff;
  background: var(--stitch-blue);
  font-weight: 700;
}

.stitch-account-metrics {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.stitch-account-metric {
  height: 108px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px;
  overflow: hidden;
}

.stitch-account-metric > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  color: var(--stitch-muted);
  font-size: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.stitch-account-metric > div:first-child span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.stitch-account-metric > div:first-child i {
  color: var(--stitch-blue);
  font-style: normal;
}

.stitch-account-metric > strong {
  display: block;
  overflow: hidden;
  font-size: clamp(13px, 1.35vw, 18px);
  line-height: 1.2;
  letter-spacing: -.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-account-metric > small {
  min-height: 24px;
  overflow: hidden;
  color: var(--stitch-muted);
  font-size: 8px;
  line-height: 1.35;
}

.stitch-account-metric footer {
  overflow: hidden;
  color: #768398;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-account-main {
  gap: 12px;
  margin-top: 12px;
}

.stitch-account-left,
.stitch-account-right {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 12px;
}

.stitch-equity-card {
  min-height: 65px;
  padding: 8px 10px;
  overflow: hidden;
}

.stitch-equity-card header {
  min-height: 27px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.stitch-equity-card header b {
  color: var(--stitch-red);
  font: 700 10px var(--mono);
}

.stitch-account-chart {
  height: 48px;
  overflow: hidden;
}

.stitch-account-chart svg {
  width: 100%;
  height: 100%;
}

.stitch-equity-card > small {
  display: block;
  color: var(--stitch-muted);
  font-size: 7px;
}

.stitch-ledger-panel {
  overflow: hidden;
}

.stitch-ledger-head {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 6px 9px;
  background: var(--stitch-blue-pale);
  border-bottom: 1px solid var(--stitch-line);
}

.stitch-ledger-tabs {
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px 8px;
  overflow-x: auto;
  white-space: nowrap;
}

.stitch-ledger-table {
  min-width: 0;
}

.stitch-ledger-table th,
.stitch-ledger-table td {
  text-align: right;
}

.stitch-ledger-table th:first-child,
.stitch-ledger-table td:first-child,
.stitch-ledger-table th:last-child,
.stitch-ledger-table td:last-child {
  text-align: left;
}

.stitch-ledger-table td {
  height: 44px;
  white-space: nowrap;
}

.stitch-ledger-table td:first-child strong,
.stitch-ledger-table td:first-child small {
  display: block;
}

.stitch-ledger-table td:first-child small {
  color: var(--stitch-muted);
  font-size: 7px;
}

.stitch-reconcile-panel,
.stitch-policy-panel {
  overflow: hidden;
}

.stitch-reconcile-notice {
  display: grid;
  gap: 3px;
  margin: 8px;
  padding: 8px;
  color: #98420b;
  background: #fff8eb;
  border: 1px solid #edcda1;
  font-size: 9px;
  line-height: 1.4;
}

.stitch-reconcile-notice.is-muted {
  color: #57667a;
  background: #f5f7fb;
  border-color: var(--stitch-line);
}

.stitch-compare-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 8px;
  border-top: 1px solid var(--stitch-line);
  border-bottom: 1px solid var(--stitch-line);
}

.stitch-compare-title strong {
  font-size: 10px;
}

.stitch-compare-title span {
  color: var(--stitch-muted);
  font: 7px var(--mono);
}

.stitch-compare-table {
  min-width: 0;
  table-layout: auto;
}

.stitch-compare-table td {
  height: 35px;
  font: 8px var(--mono);
  white-space: nowrap;
}

.stitch-policy-panel > header {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 7px 9px;
  border-bottom: 1px solid var(--stitch-line);
  font-size: 11px;
}

.stitch-policy-list {
  display: grid;
  gap: 7px;
  padding: 8px;
}

.stitch-policy-list > div {
  display: grid;
  gap: 3px;
  padding: 7px;
  background: var(--stitch-blue-pale);
}

.stitch-policy-list b {
  font-size: 9px;
}

.stitch-policy-list span {
  color: var(--stitch-muted);
  font-size: 8px;
  line-height: 1.4;
}

.stitch-policy-panel > p {
  margin: 0;
  padding: 0 8px 8px;
  color: var(--stitch-muted);
  font-size: 8px;
}

@media (max-width: 1320px) {
  .stitch-title-cluster > strong { font-size: 15px; }
  .stitch-title-cluster > span:not(.stitch-p24-title-icon):not(.stitch-demo-chip):not(.stitch-live-dot) { max-width: 220px; }
  .stitch-filter-meta { font-size: 8px; }
  .stitch-account-top { grid-template-columns: minmax(270px, .75fr) minmax(0, 1.4fr); }
  .stitch-account-metric { padding: 7px 6px; }
  .stitch-account-metric > strong { font-size: 14px; }
  .stitch-plan-filter-row { grid-template-columns: minmax(120px, 1fr) minmax(100px, .75fr) minmax(100px, .75fr) minmax(170px, 1.2fr) auto auto; gap: 5px; }
}

@media (max-width: 1199px) {
  .stitch-split-7-5,
  .stitch-split-8-4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .stitch-selection-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stitch-selection-filter-grid .stitch-search-field {
    grid-column: 1 / -1;
  }

  .stitch-account-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .stitch-account-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .stitch-account-tools {
    justify-items: start;
  }

  .stitch-account-actions {
    justify-content: flex-start;
  }

  .stitch-plan-filter-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stitch-plan-filter-row .stitch-search-field {
    grid-column: 1 / 3;
  }
}

@media (max-width: 800px) {
  .stitch-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .stitch-top-actions,
  .stitch-scheduler {
    width: 100%;
  }

  .stitch-selection-filter-grid,
  .stitch-plan-filter-row,
  .stitch-account-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stitch-plan-filter-row .stitch-search-field {
    grid-column: 1 / -1;
  }

  .stitch-account-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* qmt_3 / 信号与交易计划：按 Stitch 参考稿的 8/4 双栏和审计链路对齐。 */
.stitch-signals-page {
  --stitch-blue: #00479f;
  --stitch-blue-strong: #1d5fc4;
  --stitch-blue-soft: #e6eeff;
  --stitch-blue-pale: #eff4ff;
  --stitch-ink: #0f1c2d;
  --stitch-muted: #505f74;
  --stitch-line: rgba(194, 198, 213, .6);
  --stitch-line-strong: rgba(194, 198, 213, .72);
  --stitch-red: #ba1a1a;
  --stitch-green: #16754b;
  display: flex;
  flex-direction: column;
  color: var(--stitch-ink);
  font-size: 13px;
  line-height: 18px;
}

.stitch-signals-page .material-symbols-outlined {
  display: inline-block;
  flex: 0 0 auto;
  font-family: "Material Symbols Outlined" !important;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: "liga";
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}

.stitch-signals-page .stitch-topbar {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 12px;
  overflow: visible;
  background: #fff;
  border-color: var(--stitch-line-strong);
  border-radius: 0;
}

.stitch-signals-page .stitch-title-cluster {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: visible;
  white-space: nowrap;
}

.stitch-signals-page .stitch-p24-title-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  font-size: 20px;
  line-height: 20px;
}

.stitch-signals-page .stitch-p24-title-icon .material-symbols-outlined { font-size: 20px; }
.stitch-signals-page .stitch-title-cluster > strong { font-size: 18px; font-weight: 600; line-height: 24px; }
.stitch-signals-page .stitch-title-cluster > span:not(.stitch-p24-title-icon):not(.stitch-demo-chip):not(.stitch-live-dot) {
  flex: 0 1 auto;
  max-width: none;
  color: #505f74;
  font-size: 12px;
  line-height: 16px;
}

.stitch-signals-page .stitch-engine-chip {
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  color: #00479f;
  background: #e6eeff;
  border: 0;
  border-radius: 1px;
  font: 600 11px/14px var(--mono);
}

.stitch-signals-page .stitch-demo-chip {
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  color: #341100;
  background: #ffdbcb;
  border-color: #ffb691;
  font-size: 11px;
  line-height: 14px;
}

.stitch-signals-page .stitch-scheduler {
  flex: 0 0 auto;
  height: 28px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #505f74;
  font-size: 11px;
  line-height: 14px;
  white-space: nowrap;
}

.stitch-signals-page .stitch-scheduler strong { color: #00479f; font: 600 11px/14px var(--mono); }
.stitch-signals-page .stitch-scheduler code { color: #00479f; font: 600 11px/14px var(--mono); }
.stitch-signals-page .stitch-scheduler .stitch-action-button {
  width: 88px;
  min-height: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 2px 8px;
  color: #00479f;
  background: #e6eeff;
  border: 0;
  font-size: 11px;
  line-height: 14px;
}
.stitch-signals-page .stitch-scheduler .material-symbols-outlined { font-size: 16px; }

.stitch-signals-page .stitch-plan-filters {
  height: 76px;
  min-height: 76px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  padding: 8px;
  overflow: hidden;
  border: 0;
  box-shadow: inset 0 0 0 1px var(--stitch-line), 0 1px 2px rgba(29, 56, 96, .025);
}

.stitch-signals-page .stitch-plan-segments {
  flex: 0 0 28px;
  min-height: 28px;
  height: 28px;
  gap: 6px;
  margin: 0;
  overflow: hidden;
}

.stitch-signals-page .stitch-plan-segments > button {
  min-height: 24px;
  height: 24px;
  padding: 2px 10px;
  color: #505f74;
  background: #eff4ff;
  border: 0;
  font-size: 11px;
  line-height: 14px;
}

.stitch-signals-page .stitch-plan-segments > button.is-active {
  color: #fff;
  background: #00479f;
  border: 0;
}

.stitch-signals-page .stitch-plan-segments > button.is-danger,
.stitch-signals-page .stitch-plan-segments > button.is-active.is-danger {
  color: #ba1a1a;
  background: #ffdad6;
}

.stitch-signals-page .stitch-plan-segments .material-symbols-outlined { font-size: 14px; }
.stitch-signals-page .stitch-filter-meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-left: auto;
  color: #505f74;
  font: 400 11px/14px var(--mono);
}
.stitch-signals-page .stitch-filter-meta .material-symbols-outlined { font-size: 14px; }

.stitch-signals-page .stitch-plan-filter-row {
  flex: 0 0 28px;
  height: 28px;
  display: grid;
  grid-template-columns: minmax(140px, 1.2fr) minmax(125px, .9fr) minmax(125px, .9fr) minmax(200px, 1fr) 88px 88px;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.stitch-signals-page .stitch-plan-filter-row > label {
  height: 24px;
  min-height: 24px;
  padding: 0 8px;
  color: #505f74;
  background: #eff4ff;
  border: 0;
  font-size: 11px;
  line-height: 14px;
}

.stitch-signals-page .stitch-plan-filter-row > label > span:first-child { font-size: 11px; font-weight: 600; }
.stitch-signals-page .stitch-plan-filter-row input,
.stitch-signals-page .stitch-plan-filter-row select { height: 22px; color: #0f1c2d; font-size: 11px; line-height: 14px; }
.stitch-signals-page .stitch-search-field .material-symbols-outlined { color: #505f74; font-size: 16px; }
.stitch-signals-page .stitch-plan-filter-row > .stitch-action-button {
  width: 88px;
  min-height: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 2px 8px;
  color: #0f1c2d;
  background: #eff4ff;
  border: 0;
  font-size: 11px;
  line-height: 14px;
}
.stitch-signals-page .stitch-plan-filter-row > .stitch-action-button .material-symbols-outlined { font-size: 15px; }

.stitch-signals-page .stitch-split-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: 8px;
  margin-top: 8px;
}

.stitch-signals-page .stitch-split-grid > .stitch-list-panel { grid-column: span 8 / span 8; }
.stitch-signals-page .stitch-split-grid > .stitch-plan-inspector { grid-column: span 4 / span 4; }

.stitch-signals-page .stitch-list-panel { border: 0; border-radius: 1px; box-shadow: 0 1px 2px rgba(29,56,96,.08); }
.stitch-signals-page .stitch-panel-head {
  min-height: 36px;
  height: 36px;
  padding: 4px 8px;
  background: #eff4ff;
  border: 0;
}
.stitch-signals-page .stitch-panel-head > div:first-child { display: flex; align-items: center; gap: 7px; }
.stitch-signals-page .stitch-panel-head > div:first-child .material-symbols-outlined { color: #00479f; font-size: 18px; }
.stitch-signals-page .stitch-panel-head strong { font-size: 14px; font-weight: 600; line-height: 20px; }
.stitch-signals-page .stitch-panel-head span {
  margin: 0;
  padding: 1px 6px;
  color: #505f74;
  background: #e6eeff;
  font: 400 11px/14px var(--mono);
}
.stitch-signals-page .stitch-panel-head .material-symbols-outlined {
  margin: 0;
  padding: 0;
  background: transparent;
}
.stitch-signals-page .stitch-panel-head code { color: #505f74; font: 400 11px/14px var(--mono); }
.stitch-signals-page .stitch-panel-head button { width: 24px; height: 24px; display: grid; place-items: center; }
.stitch-signals-page .stitch-panel-head button .material-symbols-outlined { font-size: 16px; }

.stitch-signals-page .stitch-table-region { min-height: 0; background: #fff; }
.stitch-signals-page .stitch-p24-table-scroll { overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.stitch-signals-page .stitch-plan-table { width: 100%; min-width: 0; table-layout: fixed; }
.stitch-signals-page .stitch-plan-table th {
  height: 28px;
  padding: 4px 8px;
  color: #505f74;
  background: #eff4ff;
  border-color: var(--stitch-line);
  font-size: 11px;
  font-weight: 600;
  line-height: 14px;
  letter-spacing: .035em;
  white-space: nowrap;
}
.stitch-signals-page .stitch-plan-table td {
  height: 43px;
  padding: 4px 8px;
  color: #0f1c2d;
  border-color: rgba(220,227,236,.8);
  font-size: 11px;
  line-height: 14px;
}
.stitch-signals-page .stitch-plan-table tbody tr:focus { outline: 2px solid #00479f; outline-offset: -2px; }
.stitch-signals-page .stitch-plan-table tbody tr.is-selected { background: #e6eeff; box-shadow: inset 3px 0 #00479f; }
.stitch-signals-page .stitch-plan-table th:nth-child(1) { width: 13.5%; }
.stitch-signals-page .stitch-plan-table th:nth-child(2) { width: 8.4%; }
.stitch-signals-page .stitch-plan-table th:nth-child(3) { width: 8.1%; }
.stitch-signals-page .stitch-plan-table th:nth-child(4) { width: 10.9%; }
.stitch-signals-page .stitch-plan-table th:nth-child(5) { width: 8%; }
.stitch-signals-page .stitch-plan-table th:nth-child(6) { width: 9.5%; }
.stitch-signals-page .stitch-plan-table th:nth-child(7) { width: 10.3%; }
.stitch-signals-page .stitch-plan-table th:nth-child(8) { width: 11%; }
.stitch-signals-page .stitch-plan-table th:nth-child(9) { width: 12.7%; }
.stitch-signals-page .stitch-plan-table th:nth-child(10) { width: 7.4%; }
.stitch-signals-page .stitch-p24-code-cell strong { font: 600 12px/14px var(--mono); }
.stitch-signals-page .stitch-p24-code-cell small,
.stitch-signals-page .stitch-p24-number small,
.stitch-signals-page .stitch-p24-time-cell small,
.stitch-signals-page .stitch-cell-note { margin-top: 1px; color: #505f74; font: 400 10px/12px var(--mono); }
.stitch-signals-page .stitch-p24-number strong { font: 600 12px/14px var(--mono); }
.stitch-signals-page .stitch-soft-tag { min-height: 18px; padding: 1px 4px; font-size: 10px; line-height: 14px; }
.stitch-signals-page .stitch-side-chip,
.stitch-signals-page .stitch-risk-result { padding: 2px 5px; font-size: 10px; line-height: 14px; }
.stitch-signals-page .stitch-risk-result + small { display: block; margin-top: 1px; color: #505f74; font-size: 9px; line-height: 11px; }
.stitch-signals-page .stitch-row-button { min-height: 24px; padding: 3px 7px; font-size: 10px; line-height: 14px; }
.stitch-signals-page .stitch-row-button.is-primary { color: #fff; background: #00479f; border-color: #00479f; }
.stitch-signals-page .stitch-panel-foot {
  min-height: 32px;
  height: 32px;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 8px;
  color: #505f74;
  background: #eff4ff;
  border: 0;
  font: 400 10px/14px var(--mono);
}
.stitch-signals-page .stitch-panel-foot > div { display: flex; align-items: center; gap: 16px; white-space: nowrap; }
.stitch-signals-page .stitch-panel-foot strong { color: #00479f; }
.stitch-signals-page .stitch-empty { min-height: 180px; font-size: 11px; }

.stitch-signals-page .stitch-plan-inspector {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stitch-signals-page .stitch-plan-card {
  height: 685px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px;
  overflow: hidden;
  background: #fff;
  border: 0;
  border-radius: 1px;
  box-shadow: 0 1px 2px rgba(29,56,96,.08);
}

.stitch-signals-page .stitch-plan-card .stitch-detail-head {
  flex: 0 0 43px;
  min-height: 43px;
  height: 43px;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 7px;
  padding: 0;
  border-color: rgba(220,227,236,.8);
}
.stitch-signals-page .stitch-plan-card .stitch-detail-icon {
  width: 18px;
  height: 18px;
  color: #00479f;
  background: transparent;
}
.stitch-signals-page .stitch-plan-card .stitch-detail-icon .material-symbols-outlined { font-size: 18px; }
.stitch-signals-page .stitch-plan-card .stitch-detail-head > div:nth-child(2) > strong { font-size: 14px; line-height: 20px; }
.stitch-signals-page .stitch-plan-card .stitch-detail-head > div:nth-child(2) > small { margin: 0; font: 400 10px/14px var(--mono); }

.stitch-signals-page .stitch-plan-identity {
  flex: 0 0 48px;
  min-height: 48px;
  height: 48px;
  padding: 6px 8px;
  background: #eff4ff;
  border: 0;
}
.stitch-signals-page .stitch-plan-identity strong { font-size: 12px; line-height: 16px; }
.stitch-signals-page .stitch-plan-identity small { margin: 0; color: #505f74; font-size: 10px; line-height: 14px; }
.stitch-signals-page .stitch-plan-identity > div:last-child { font: 400 10px/14px var(--mono); }

.stitch-signals-page .stitch-timeline {
  flex: 0 0 435px;
  height: 435px;
  padding: 0 0 0 16px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
}
.stitch-signals-page .stitch-timeline > article {
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 7px;
  padding-bottom: 11px;
}
.stitch-signals-page .stitch-timeline > article:not(:last-child)::before { left: 5px; top: 10px; bottom: -1px; width: 2px; background: #dce3ec; }
.stitch-signals-page .stitch-timeline > article.is-done:not(:last-child)::before,
.stitch-signals-page .stitch-timeline > article.is-active:not(:last-child)::before { background: #16754b; }
.stitch-signals-page .stitch-timeline > article > i { width: 12px; height: 12px; margin-top: 2px; border-width: 2px; }
.stitch-signals-page .stitch-timeline > article.is-active > i { background: #00479f; box-shadow: 0 0 0 1px #00479f; }
.stitch-signals-page .stitch-timeline > article.is-closed > i { background: #737784; box-shadow: 0 0 0 1px #737784; }
.stitch-signals-page .stitch-timeline > article.is-warning > i { background: #f59e0b; box-shadow: 0 0 0 1px #b45309; }
.stitch-signals-page .stitch-timeline article > div > strong { font-size: 12px; font-weight: 600; line-height: 16px; }
.stitch-signals-page .stitch-timeline article > div > span { color: #00479f; font: 500 10px/14px var(--mono); }
.stitch-signals-page .stitch-timeline article > div > p { margin: 2px 0 0; color: #505f74; font-size: 11px; line-height: 15px; }
.stitch-signals-page .stitch-timeline > article.is-blocked > div > strong,
.stitch-signals-page .stitch-timeline > article.is-blocked > div > span { color: #ba1a1a; }
.stitch-signals-page .stitch-timeline > article.is-warning > div > strong,
.stitch-signals-page .stitch-timeline > article.is-warning > div > span { color: #7f3400; }
.stitch-signals-page .stitch-p24-risk-detail { margin-top: 6px; padding: 7px; background: rgba(255,218,214,.22); border: 0; border-left: 2px solid #ba1a1a; }
.stitch-signals-page .stitch-p24-risk-detail { max-height: 200px; overflow-y: auto; scrollbar-width: thin; }
.stitch-signals-page .stitch-p24-risk-detail p {
  grid-template-columns: minmax(105px, .9fr) minmax(0, 1.1fr);
  gap: 7px;
  padding: 3px 0;
  border-color: rgba(186,26,26,.16);
  font: 400 10px/14px var(--mono);
}
.stitch-signals-page .stitch-id-grid {
  flex: 0 0 44px;
  min-height: 44px;
  height: 44px;
  gap: 6px;
  margin: 0;
  padding: 6px 8px;
  background: #eff4ff;
}
.stitch-signals-page .stitch-id-grid small { font-size: 9px; line-height: 12px; }
.stitch-signals-page .stitch-id-grid strong { margin: 0; font-size: 10px; line-height: 14px; }

.stitch-signals-page .stitch-plan-actions {
  flex: 0 0 59px;
  height: 59px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 0;
  overflow: hidden;
}
.stitch-signals-page .stitch-plan-actions > div { height: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stitch-signals-page .stitch-plan-actions .stitch-row-button { min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 5px; font-size: 11px; }
.stitch-signals-page .stitch-plan-actions .material-symbols-outlined { font-size: 16px; }
.stitch-signals-page .stitch-plan-actions > p {
  min-height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0;
  color: #505f74;
  font: 400 10px/14px var(--mono);
  text-align: center;
}
.stitch-signals-page .stitch-plan-actions > p .material-symbols-outlined { color: #ba1a1a; font-size: 14px; }

.stitch-signals-page .stitch-plan-aux {
  height: 189px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  overflow: hidden;
  background: #fff;
  border: 0;
  border-radius: 1px;
  box-shadow: 0 1px 2px rgba(29,56,96,.08);
}
.stitch-signals-page .stitch-plan-aux > .stitch-section-title {
  flex: 0 0 20px;
  min-height: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  font-size: 14px;
  line-height: 20px;
}
.stitch-signals-page .stitch-plan-aux > .stitch-section-title code { color: #505f74; font: 400 10px/14px var(--mono); }
.stitch-signals-page .stitch-depth-empty {
  flex: 0 0 74px;
  height: 74px;
  display: grid;
  place-content: center;
  padding: 8px;
  color: #505f74;
  background: #eff4ff;
  font-size: 11px;
  line-height: 16px;
  text-align: center;
}
.stitch-signals-page .stitch-exposure-card,
.stitch-signals-page .stitch-exposure-empty {
  flex: 0 0 63px;
  height: 63px;
  padding: 6px 8px;
  color: #505f74;
  background: #eff4ff;
  overflow: hidden;
}
.stitch-signals-page .stitch-exposure-card > div,
.stitch-signals-page .stitch-exposure-empty { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.stitch-signals-page .stitch-exposure-card strong,
.stitch-signals-page .stitch-exposure-empty strong { color: #505f74; font-size: 10px; line-height: 14px; }
.stitch-signals-page .stitch-exposure-card > div > span { color: #ba1a1a; font: 600 10px/14px var(--mono); }
.stitch-signals-page .stitch-exposure-card progress { width: 100%; height: 8px; margin: 6px 0 3px; border: 0; appearance: none; background: #dce3ec; }
.stitch-signals-page .stitch-exposure-card progress::-webkit-progress-bar { background: #dce3ec; }
.stitch-signals-page .stitch-exposure-card progress::-webkit-progress-value { background: #00479f; }
.stitch-signals-page .stitch-exposure-card progress::-moz-progress-bar { background: #00479f; }
.stitch-signals-page .stitch-exposure-card > small { display: flex; justify-content: space-between; gap: 5px; font: 400 9px/12px var(--mono); }
.stitch-signals-page .stitch-exposure-card > p { margin: 5px 0 0; color: #7f3400; font: 400 10px/14px var(--mono); }
.stitch-signals-page .stitch-exposure-empty { flex-direction: column; justify-content: center; text-align: center; }
.stitch-signals-page .stitch-exposure-empty span { font-size: 10px; line-height: 14px; }
.stitch-signals-page .stitch-plan-card.is-empty .stitch-empty { flex: 1 1 auto; min-height: 0; }

@media (min-width: 1501px) {
  .stitch-signals-page .stitch-plan-card { height: 605px; }
  .stitch-signals-page .stitch-timeline { flex-basis: 355px; height: 355px; }
  .stitch-signals-page .stitch-p24-risk-detail { max-height: 145px; }
  .stitch-signals-page .stitch-table-region { min-height: 286px; }
  .stitch-signals-page .stitch-table-region > .stitch-empty { min-height: 286px; }
}

@media (max-width: 1500px) {
  .stitch-signals-page .stitch-table-region { min-height: 509px; }
  .stitch-signals-page .stitch-table-region > .stitch-empty { min-height: 509px; }
  .stitch-signals-page .stitch-plan-table { width: 830.77px; min-width: 830.77px; }
  .stitch-signals-page .stitch-plan-table th:nth-child(1) { width: 117.16px; }
  .stitch-signals-page .stitch-plan-table th:nth-child(2) { width: 90.84px; }
  .stitch-signals-page .stitch-plan-table th:nth-child(3) { width: 62.2px; }
  .stitch-signals-page .stitch-plan-table th:nth-child(4) { width: 99.53px; }
  .stitch-signals-page .stitch-plan-table th:nth-child(5) { width: 86.28px; }
  .stitch-signals-page .stitch-plan-table th:nth-child(6) { width: 102.95px; }
  .stitch-signals-page .stitch-plan-table th:nth-child(7) { width: 62.2px; }
  .stitch-signals-page .stitch-plan-table th:nth-child(8) { width: 62.2px; }
  .stitch-signals-page .stitch-plan-table th:nth-child(9) { width: 100.39px; }
  .stitch-signals-page .stitch-plan-table th:nth-child(10) { width: 47px; }
  .stitch-signals-page .stitch-plan-table td { height: 70px; }
  .stitch-signals-page .stitch-p24-row-actions { flex-direction: column; gap: 3px; }
}

@media (max-width: 1320px) {
  .stitch-signals-page .stitch-topbar { min-height: 66px; align-items: center; }
  .stitch-signals-page .stitch-title-cluster { align-content: center; flex-wrap: wrap; row-gap: 3px; }
  .stitch-signals-page .stitch-demo-chip { order: 5; }
  .stitch-signals-page .stitch-plan-card { height: 729px; }
  .stitch-signals-page .stitch-timeline { flex-basis: 449px; height: 449px; }
  .stitch-signals-page .stitch-plan-actions { flex-basis: 89px; height: 89px; }
  .stitch-signals-page .stitch-plan-actions > div { height: 58px; grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .stitch-signals-page .stitch-plan-actions .stitch-row-button { min-height: 27px; }
  .stitch-signals-page .stitch-p24-risk-detail { max-height: 210px; }
}

@media (max-width: 1279px) {
  .stitch-signals-page .stitch-topbar { height: auto; align-items: flex-start; }
  .stitch-signals-page .stitch-title-cluster,
  .stitch-signals-page .stitch-scheduler { flex: 1 1 100%; width: 100%; }
  .stitch-signals-page .stitch-plan-filters { height: auto; overflow: visible; }
  .stitch-signals-page .stitch-plan-segments { height: auto; flex-wrap: wrap; overflow: visible; }
  .stitch-signals-page .stitch-filter-meta { flex: 1 0 100%; justify-content: flex-start; }
  .stitch-signals-page .stitch-plan-filter-row { height: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stitch-signals-page .stitch-plan-filter-row > .stitch-action-button { width: 100%; }
  .stitch-signals-page .stitch-plan-filter-row .stitch-search-field { grid-column: 1 / 2; }
  .stitch-signals-page .stitch-split-grid { grid-template-columns: minmax(0, 1fr); }
  .stitch-signals-page .stitch-split-grid > .stitch-list-panel,
  .stitch-signals-page .stitch-split-grid > .stitch-plan-inspector { grid-column: 1 / -1; }
  .stitch-signals-page .stitch-plan-card { height: auto; min-height: 605px; }
  .stitch-signals-page .stitch-timeline { flex-basis: auto; height: auto; max-height: 520px; }
}

@media (max-width: 800px) {
  .stitch-signals-page .stitch-title-cluster { white-space: normal; }
  .stitch-signals-page .stitch-scheduler { flex-wrap: wrap; height: auto; }
  .stitch-signals-page .stitch-plan-filter-row { grid-template-columns: minmax(0, 1fr); }
  .stitch-signals-page .stitch-plan-filter-row .stitch-search-field { grid-column: 1 / -1; }
  .stitch-signals-page .stitch-panel-head,
  .stitch-signals-page .stitch-panel-foot { height: auto; min-height: 36px; flex-wrap: wrap; }
  .stitch-signals-page .stitch-panel-foot > div { flex-wrap: wrap; }
}

/* qmt_2 / 选股中心：按 Stitch 参考稿的 12 栏、表格和固定抽屉骨架对齐。 */
.stitch-selections-page {
  --stitch-blue: #00479f;
  --stitch-blue-strong: #1d5fc4;
  --stitch-blue-soft: #e6eeff;
  --stitch-blue-pale: #eff4ff;
  --stitch-ink: #0f1c2d;
  --stitch-muted: #505f74;
  --stitch-line: rgba(194, 198, 213, .6);
  --stitch-line-strong: rgba(194, 198, 213, .7);
  --stitch-red: #b42336;
  --stitch-green: #16754b;
  --stitch-orange: #7f3400;
  display: flex;
  flex-direction: column;
  color: var(--stitch-ink);
  font-size: 13px;
  line-height: 18px;
}

.stitch-selections-page .material-symbols-outlined {
  display: inline-block;
  flex: 0 0 auto;
  font-family: "Material Symbols Outlined" !important;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: "liga";
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}

.stitch-selections-page .stitch-topbar {
  min-height: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  row-gap: 4px;
  column-gap: 8px;
  padding: 4px 12px;
  overflow: visible;
  background: #fff;
  border-color: rgba(194, 198, 213, .6);
  border-radius: 0;
}

.stitch-selections-page .stitch-engine-context {
  flex: 0 0 694px;
  width: 694px;
  max-width: 100%;
  min-height: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  white-space: nowrap;
}

.stitch-selections-page .stitch-engine-heading,
.stitch-selections-page .stitch-engine-status {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.stitch-selections-page .stitch-engine-heading {
  flex: 0 0 auto;
}

.stitch-selections-page .stitch-engine-heading > strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.stitch-selections-page .stitch-engine-heading > code {
  padding: 1px 2px;
  color: var(--stitch-blue);
  background: rgba(216, 226, 255, .6);
  font: 600 11px/14px var(--mono);
}

.stitch-selections-page .stitch-engine-divider {
  flex: 0 0 1px;
  width: 1px;
  height: 14px;
  background: rgba(194, 198, 213, .5);
}

.stitch-selections-page .stitch-engine-status {
  flex: 1 1 auto;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.stitch-selections-page .stitch-engine-status > span:not(.stitch-live-dot),
.stitch-selections-page .stitch-engine-status > small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-selections-page .stitch-engine-status > small {
  color: #737784;
  font: 400 11px/14px var(--mono);
}

.stitch-selections-page .stitch-p24-title-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  font-size: 20px;
  line-height: 20px;
}

.stitch-selections-page .stitch-p24-title-icon .material-symbols-outlined { font-size: 20px; }

.stitch-selections-page .stitch-demo-chip {
  min-height: 20px;
  padding: 2px 4px;
  color: #341100;
  background: #ffdbcb;
  border-color: #ffb691;
  font-size: 11px;
  font-weight: 600;
  line-height: 14px;
}

.stitch-selections-page .stitch-top-actions {
  flex: 0 0 414px;
  width: 414px;
  height: 30.5px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: visible;
}

.stitch-selections-page .stitch-state-switch {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 2px;
  background: #eff4ff;
  border: 1px solid rgba(194, 198, 213, .5);
}

.stitch-selections-page .stitch-state-button {
  height: 24.5px;
  min-height: 24.5px;
  padding: 4px 8px;
  color: #505f74;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  line-height: 14px;
}

.stitch-selections-page .stitch-state-button:nth-child(1),
.stitch-selections-page .stitch-state-button:nth-child(2) { width: 52px; }
.stitch-selections-page .stitch-state-button:nth-child(3) { width: 63px; }

.stitch-selections-page .stitch-action-divider {
  flex: 0 0 1px;
  width: 1px;
  height: 16px;
  margin: 0 2px;
  background: rgba(194, 198, 213, .4);
}

.stitch-selections-page .stitch-action-button {
  height: 28px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 8px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.stitch-selections-page .stitch-action-button .material-symbols-outlined { font-size: 15px; }

.stitch-selections-page .stitch-action-button[data-action="unsupported"] { width: 125px; }
.stitch-selections-page .stitch-disabled-action[aria-disabled="true"] {
  color: #505f74;
  background: #f0f2f6;
  border-color: #c2c6d5;
  cursor: not-allowed;
  opacity: .62;
}
.stitch-selections-page .stitch-disabled-action[aria-disabled="true"]:focus-visible {
  outline: 2px solid #00479f;
  outline-offset: 1px;
}
.stitch-selections-page .stitch-action-button.is-primary { width: 99px; }

.stitch-selections-page .stitch-filter-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  padding: 8px;
  background: #fff;
  border-color: rgba(194, 198, 213, .6);
  border-radius: 0;
}

.stitch-selections-page .stitch-selection-filter-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 8px;
}

.stitch-selections-page .stitch-selection-filter-grid > .stitch-search-field { grid-column: span 4; }
.stitch-selections-page .stitch-selection-filter-grid > label:not(.stitch-search-field) { grid-column: span 2; }

.stitch-selections-page .stitch-filter-grid > label {
  height: 28px;
  gap: 6px;
  padding: 0 8px;
  color: #505f74;
  border-color: rgba(194, 198, 213, .7);
  font-size: 12px;
  line-height: 16px;
}

.stitch-selections-page .stitch-filter-grid > label > span:first-child {
  font-size: 11px;
  font-weight: 600;
  line-height: 14px;
}

.stitch-selections-page .stitch-search-field > .material-symbols-outlined {
  color: #737784;
  font-size: 16px;
}

.stitch-selections-page .stitch-filter-grid input,
.stitch-selections-page .stitch-filter-grid select {
  height: 26px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.stitch-selections-page .stitch-segment-row {
  min-height: 29px;
  margin-top: 0;
  padding-top: 4px;
  overflow: visible;
  border-top: 1px solid rgba(194, 198, 213, .3);
}

.stitch-selections-page .stitch-segment-row > button {
  height: 24px;
  min-height: 24px;
  padding: 4px 8px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  line-height: 14px;
}

.stitch-selections-page .stitch-filter-meta {
  display: inline-flex;
  align-items: center;
  font: 400 11px/14px var(--mono);
}

.stitch-selections-page .stitch-filter-meta > .material-symbols-outlined {
  color: #00479f;
  font-size: 13px;
}

.stitch-selections-page .stitch-filter-meta i {
  margin: 0 5px;
  color: #c2c6d5;
  font-style: normal;
}

.stitch-selections-page .stitch-split-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.stitch-selections-page .stitch-split-7-5 > .stitch-list-panel { grid-column: span 7; }
.stitch-selections-page .stitch-split-7-5 > .stitch-selection-detail { grid-column: span 5; }
.stitch-selections-page .stitch-split-7-5.is-detail-collapsed > .stitch-list-panel { grid-column: 1 / -1; }
.stitch-selections-page .stitch-selection-detail.is-collapsed { display: none; }

.stitch-selections-page .stitch-panel,
.stitch-selections-page .stitch-detail-panel {
  border-color: rgba(194, 198, 213, .6);
  border-radius: 0;
}

.stitch-selections-page .stitch-panel-head {
  height: 32px;
  min-height: 32px;
  padding: 4px 8px;
  background: #eff4ff;
  border-color: rgba(194, 198, 213, .6);
  white-space: nowrap;
}

.stitch-selections-page .stitch-panel-head > div:first-child {
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
}

.stitch-selections-page .stitch-panel-head strong {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.stitch-selections-page .stitch-panel-head span {
  overflow: hidden;
  color: #505f74;
  font-size: 11px;
  line-height: 14px;
  text-overflow: ellipsis;
}

.stitch-selections-page .stitch-panel-head label {
  height: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #505f74;
  font-size: 11px;
  font-weight: 600;
  line-height: 14px;
  white-space: nowrap;
}

.stitch-selections-page .stitch-panel-head select {
  width: auto;
  max-width: 145px;
  margin: 0;
  font-family: var(--sans);
  font-size: 11px;
  line-height: 14px;
}

.stitch-selections-page .stitch-panel-head button {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  font-family: var(--sans);
  font-size: 15px;
}

.stitch-selections-page .stitch-panel-head button .material-symbols-outlined { font-size: 15px; }
.stitch-selections-page .stitch-panel-head .stitch-detail-restore {
  width: auto;
  display: none;
  padding: 0 6px;
  color: #00479f;
  font-size: 11px;
  line-height: 18px;
}

.stitch-selections-page .is-detail-collapsed .stitch-detail-restore { display: inline-grid; }

.stitch-selections-page .stitch-table-region,
.stitch-selections-page .stitch-p24-table-scroll {
  height: 580px;
  min-height: 580px;
}

.stitch-selections-page .stitch-p24-table-scroll {
  overflow-x: auto;
  overflow-y: auto;
}

.stitch-selections-page .stitch-selection-table {
  width: 100%;
  min-width: 703.8125px;
  table-layout: auto;
}

.stitch-selections-page .stitch-selection-table th {
  height: auto;
  padding: 6px 4px;
  color: #505f74;
  background: #e6eeff;
  border-color: rgba(194, 198, 213, .6);
  font-size: 11px;
  font-weight: 600;
  line-height: 14px;
  letter-spacing: .44px;
}

.stitch-selections-page .stitch-selection-table th:nth-child(1) { width: 40px; text-align: center; }
.stitch-selections-page .stitch-selection-table th:nth-child(2) { min-width: 130px; }
.stitch-selections-page .stitch-selection-table th:nth-child(3) { min-width: 110px; }
.stitch-selections-page .stitch-selection-table th:nth-child(4) { min-width: 180px; }
.stitch-selections-page .stitch-selection-table th:nth-child(5) { min-width: 70px; text-align: right; }
.stitch-selections-page .stitch-selection-table th:nth-child(6) { min-width: 70px; text-align: right; }
.stitch-selections-page .stitch-selection-table th:nth-child(7) { min-width: 90px; text-align: right; }
.stitch-selections-page .stitch-selection-table th:nth-child(8) { width: 40px; text-align: center; }

.stitch-selections-page .stitch-selection-table td {
  height: 49px;
  padding: 8px 4px;
  color: #0f1c2d;
  border-color: rgba(194, 198, 213, .2);
  font-size: 12px;
  line-height: 16px;
}

.stitch-selections-page .stitch-selection-table td:first-child { text-align: center; }
.stitch-selections-page .stitch-rank { font-size: 11px; line-height: 14px; }

.stitch-selections-page .stitch-p24-code-cell > div {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
}

.stitch-selections-page .stitch-p24-code-cell code,
.stitch-selections-page .stitch-p24-code-cell strong,
.stitch-selections-page .stitch-p24-code-cell small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-selections-page .stitch-p24-code-cell code {
  flex: 0 0 auto;
  color: #0f1c2d;
  font: 600 11px/14px var(--mono);
}

.stitch-selections-page .stitch-p24-code-cell strong {
  color: #0f1c2d;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.stitch-selections-page .stitch-p24-code-cell small {
  display: block;
  margin-top: 1px;
  color: #505f74;
  font-size: 10px;
  line-height: 14px;
}

.stitch-selections-page .stitch-soft-tag {
  min-height: 18px;
  padding: 1px 4px;
  color: #0f1c2d;
  background: #dce9ff;
  border: 0;
  font: 400 11px/14px var(--mono);
}

.stitch-selections-page .stitch-decision-badge {
  max-width: 100%;
  display: block;
  padding: 1px 6px;
  overflow: hidden;
  color: #505f74;
  background: #e6eeff;
  border: 1px solid rgba(194, 198, 213, .5);
  font: 600 10px/14px var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-selections-page .stitch-decision-badge.is-plan { color: #b42336; background: #fdf2f3; border-color: #f8d7da; }
.stitch-selections-page .stitch-decision-badge.is-candidate { color: #16754b; background: #f0f8f4; border-color: #ceeadb; }
.stitch-selections-page .stitch-decision-badge.is-missing { color: #7f3400; background: #ffdbcb; border-color: #ffb691; }

.stitch-selections-page .stitch-decision-cell {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 5px;
}

.stitch-selections-page .stitch-decision-cell > strong {
  color: #00479f;
  font: 600 11px/14px var(--mono);
}

.stitch-selections-page .stitch-decision-cell small {
  color: #505f74;
  font-size: 10px;
  line-height: 14px;
}

.stitch-selections-page .stitch-p24-number {
  font: 600 13px/16px var(--mono);
}

.stitch-selections-page .stitch-p24-number small { font: 400 10px/14px var(--mono); }

.stitch-selections-page .stitch-chevron-cell { text-align: center; }
.stitch-selections-page .stitch-chevron {
  width: 16px;
  height: 24px;
  padding: 0;
  color: #00479f;
  background: transparent;
  border: 0;
  line-height: 20px;
}

.stitch-selections-page .stitch-chevron .material-symbols-outlined { font-size: 16px; }

.stitch-selections-page .stitch-preview-row td { height: 220px !important; }
.stitch-selections-page .stitch-preview-state { display: grid; place-items: center; gap: 4px; color: #505f74; text-align: center; }
.stitch-selections-page .stitch-preview-state > .material-symbols-outlined { color: #737784; font-size: 32px; line-height: 32px; }
.stitch-selections-page .stitch-preview-state strong { font-size: 13px; }
.stitch-selections-page .stitch-preview-state span { font-size: 11px; }
.stitch-selections-page .stitch-preview-row.is-error .stitch-preview-state,
.stitch-selections-page .stitch-preview-row.is-error .stitch-preview-state > .material-symbols-outlined { color: #ba1a1a; }

.stitch-selections-page .stitch-panel-foot {
  min-height: 29px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 8px;
  padding: 6px 8px;
  color: #505f74;
  background: #eff4ff;
  border-color: rgba(194, 198, 213, .6);
  font: 400 11px/14px var(--mono);
  white-space: nowrap;
}

.stitch-selections-page .stitch-panel-foot > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stitch-selections-page .stitch-panel-foot i { color: #c2c6d5; font-style: normal; }
.stitch-selections-page .stitch-panel-foot strong { color: #0f1c2d; font-weight: 600; }
.stitch-selections-page .stitch-panel-foot > div:first-child span:nth-of-type(2) strong,
.stitch-selections-page .stitch-panel-foot > div:last-child span:last-child strong { color: #00479f; }
.stitch-selections-page .stitch-lock-chip { padding: 1px 6px; background: #dce9ff; }

.stitch-selections-page .stitch-selection-detail {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(29, 56, 96, .08);
}

.stitch-selections-page .stitch-detail-head {
  flex: 0 0 51px;
  height: 51px;
  min-height: 51px;
  grid-template-columns: 32px minmax(0, 1fr) 55px;
  gap: 8px;
  padding: 8px;
  border-color: rgba(194, 198, 213, .6);
}

.stitch-selections-page .stitch-detail-icon {
  width: 32px;
  height: 32px;
  color: #00479f;
  background: #d8e2ff;
  border-radius: 0;
  font-size: 20px;
}

.stitch-selections-page .stitch-detail-icon .material-symbols-outlined { font-size: 20px; }

.stitch-selections-page .stitch-detail-identity { overflow: hidden; }
.stitch-selections-page .stitch-detail-identity > div { display: flex; align-items: center; gap: 6px; overflow: hidden; }
.stitch-selections-page .stitch-detail-identity strong { overflow: hidden; font-size: 14px; font-weight: 600; line-height: 20px; text-overflow: ellipsis; white-space: nowrap; }
.stitch-selections-page .stitch-detail-identity small { display: block; overflow: hidden; color: #505f74; font: 400 11px/14px var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.stitch-selections-page .stitch-board-chip { flex: 0 0 auto; padding: 1px 6px; color: #0f1c2d; background: #dce9ff; border: 1px solid rgba(194, 198, 213, .5); font-size: 11px; line-height: 14px; }

.stitch-selections-page .stitch-detail-head-actions { width: 55px; display: flex; align-items: center; justify-content: flex-end; gap: 1px; }
.stitch-selections-page .stitch-detail-head-actions button { width: 27px; height: 32px; display: inline-grid; place-items: center; padding: 0; color: #505f74; background: transparent; border: 0; }
.stitch-selections-page .stitch-detail-head-actions button .material-symbols-outlined { font-size: 18px; }
.stitch-selections-page .stitch-detail-head-actions button:hover { color: #00479f; background: #eff4ff; }

.stitch-selections-page .stitch-score-strip {
  flex: 0 0 64px;
  height: 64px;
  min-height: 64px;
  padding: 8px;
  background: linear-gradient(90deg, rgba(216, 226, 255, .4), #eff4ff, #e6eeff);
  border-color: rgba(194, 198, 213, .5);
}

.stitch-selections-page .stitch-score-strip small { font-size: 11px; line-height: 14px; }
.stitch-selections-page .stitch-score-strip strong { font-size: 22px; line-height: 24px; }
.stitch-selections-page .stitch-score-strip > div:nth-child(2) strong { font-size: 13px; line-height: 18px; }
.stitch-selections-page .stitch-signal-chip { font-size: 11px; line-height: 14px; }
.stitch-selections-page .stitch-signal-chip.is-neutral { color: #56657b; background: #e6eeff; border-color: #c2c6d5; }

.stitch-selections-page .stitch-detail-scroll {
  flex: 0 0 calc(100vh - 280px);
  height: calc(100vh - 280px);
  max-height: calc(100vh - 280px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px;
  overflow-x: hidden;
  overflow-y: auto;
}

.stitch-selections-page .stitch-detail-section,
.stitch-selections-page .stitch-audit-box {
  flex: 0 0 auto;
  margin: 0;
  border-color: rgba(194, 198, 213, .6);
  border-radius: 0;
}

.stitch-selections-page .stitch-check-section { border: 0; }

.stitch-selections-page .stitch-section-title {
  min-height: 23px;
  padding: 0 0 4px;
  color: #0f1c2d;
  background: transparent;
  border: 0;
  font-size: 12px;
  line-height: 16px;
}

.stitch-selections-page .stitch-section-title > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stitch-selections-page .stitch-section-title > strong {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.stitch-selections-page .stitch-section-title > strong .material-symbols-outlined { color: #00479f; font-size: 16px; }
.stitch-selections-page .stitch-section-title > span,
.stitch-selections-page .stitch-section-title > code { flex: 0 0 auto; padding: 1px 6px; color: #16754b; background: #f0f8f4; font-size: 11px; line-height: 14px; }
.stitch-selections-page .stitch-rule-summary.is-neutral,
.stitch-selections-page .stitch-check-state.is-neutral { color: #56657b; background: #e6eeff; border-color: #c2c6d5; }
.stitch-selections-page .stitch-rule-summary.is-fail,
.stitch-selections-page .stitch-check-state.is-fail { color: #93000a; background: #ffdad6; border-color: #ffb4ab; }

.stitch-selections-page .stitch-check-list { gap: 6px; padding: 0; }
.stitch-selections-page .stitch-check-card {
  min-height: 87.5px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  border-color: rgba(194, 198, 213, .5);
  border-radius: 0;
}

.stitch-selections-page .stitch-check-card > div { grid-template-columns: 16px minmax(0, 1fr) auto; gap: 6px; }
.stitch-selections-page .stitch-check-card > div > strong { font-size: 12px; line-height: 16px; }
.stitch-selections-page .stitch-check-card > div > span:last-child { padding: 0 4px; color: #16754b; background: #f0f8f4; border: 1px solid #ceeadb; font-size: 11px; line-height: 14px; }
.stitch-selections-page .stitch-check-icon { width: 16px; height: 16px; font-size: 10px; }

.stitch-selections-page .stitch-check-card p {
  grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 4px;
  margin: 0;
  padding: 6px;
  color: #0f1c2d;
  background: #eff4ff;
  font: 400 11px/14px var(--mono);
}

.stitch-selections-page .stitch-check-card p > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stitch-selections-page .stitch-check-card footer { color: #505f74; font: 400 10px/14px var(--mono); }

.stitch-selections-page .stitch-audit-box {
  min-height: 111px;
  padding: 8px;
  background: #eff4ff;
  border-color: rgba(194, 198, 213, .5);
}

.stitch-selections-page .stitch-audit-box .stitch-section-title { min-height: 19px; }
.stitch-selections-page .stitch-audit-grid { gap: 8px 16px; padding: 4px 0 0; }
.stitch-selections-page .stitch-audit-grid small { font-size: 11px; line-height: 14px; }
.stitch-selections-page .stitch-audit-grid strong { font: 500 11px/14px var(--mono); }

.stitch-selections-page .stitch-linkage-section {
  min-height: 214.5px;
  padding: 8px;
}

.stitch-selections-page .stitch-linkage-section > .stitch-section-title {
  height: 15px;
  min-height: 15px;
  margin-bottom: 4px;
  padding: 0;
  font-size: 11px;
  line-height: 15px;
}

.stitch-selections-page .stitch-linkage-section > .stitch-section-title > code {
  padding: 0;
  background: transparent;
  font-size: 11px;
  line-height: 15px;
}

.stitch-selections-page .stitch-flow {
  height: 56.5px;
  margin: 8px 0;
  padding: 0 4px;
}
.stitch-selections-page .stitch-flow b { width: 24px; height: 24px; font-size: 10px; }
.stitch-selections-page .stitch-flow strong { font-size: 10px; line-height: 14px; }
.stitch-selections-page .stitch-flow small { font-size: 9px; line-height: 12px; }
.stitch-selections-page .stitch-flow > span { min-width: 0; overflow: hidden; }

.stitch-selections-page .stitch-linkage-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0;
  padding: 8px;
  font: 400 11px/16.5px var(--mono);
}

.stitch-selections-page .stitch-linkage-summary span,
.stitch-selections-page .stitch-linkage-summary strong { display: inline; }
.stitch-selections-page .stitch-linkage-summary span { min-width: 0; }
.stitch-selections-page .stitch-p24-detail-actions { height: 28px; margin-top: 4px; padding: 0; }
.stitch-selections-page .stitch-p24-detail-actions .stitch-row-button { min-height: 28px; font-size: 11px; line-height: 14px; }
.stitch-selections-page .stitch-p24-detail-actions .stitch-row-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.stitch-selections-page .stitch-p24-detail-actions .material-symbols-outlined { font-size: 14px; }

.stitch-selections-page .stitch-detail-note {
  flex: 0 0 auto;
  min-height: 25.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 8px;
  color: #505f74;
  background: #e6eeff;
  border-color: rgba(194, 198, 213, .6);
  font: 400 11px/16.5px var(--mono);
}

.stitch-selections-page .stitch-detail-note > span { min-width: 0; }
.stitch-selections-page .stitch-detail-note > span { display: inline-flex; align-items: center; gap: 4px; }
.stitch-selections-page .stitch-detail-note > span .material-symbols-outlined { color: #737784; font-size: 13px; }
.stitch-selections-page .stitch-detail-note > button { flex: 0 0 auto; padding: 0; color: #00479f; background: transparent; border: 0; font-family: var(--sans); font-size: 11px; line-height: 16px; }

@media (max-width: 1500px) {
  .stitch-selections-page .stitch-selection-table th:nth-child(1) { width: 29px; min-width: 29px; max-width: 29px; }
  .stitch-selections-page .stitch-selection-table th:nth-child(8) { width: 24px; min-width: 24px; max-width: 24px; }
  .stitch-selections-page .stitch-panel-foot > div { flex: 0 0 100%; }
  .stitch-selections-page .stitch-panel-foot { min-height: 43px; }
}

@media (min-width: 1501px) {
  .stitch-selections-page .stitch-selection-table th:nth-child(1),
  .stitch-selections-page .stitch-selection-table th:nth-child(8) { width: 40px; min-width: 40px; max-width: 40px; }
}

@media (max-width: 1320px) {
  .stitch-selections-page .stitch-linkage-section { min-height: 247.5px; }
  .stitch-selections-page .stitch-detail-note { min-height: 42px; }
}

/* The Stitch desktop reference starts at 1280px. Below that width, keep every
   control and row reachable instead of forcing the desktop 7/5 geometry. */
@media (max-width: 1199px) {
  .stitch-selections-page .stitch-topbar {
    align-items: flex-start;
  }

  .stitch-selections-page .stitch-engine-context,
  .stitch-selections-page .stitch-top-actions {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
  }

  .stitch-selections-page .stitch-top-actions {
    height: auto;
    flex-wrap: wrap;
  }

  .stitch-selections-page .stitch-selection-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stitch-selections-page .stitch-selection-filter-grid > .stitch-search-field,
  .stitch-selections-page .stitch-selection-filter-grid > label:not(.stitch-search-field) {
    grid-column: auto;
  }

  .stitch-selections-page .stitch-selection-filter-grid > .stitch-search-field {
    grid-column: 1 / -1;
  }

  .stitch-selections-page .stitch-segment-row {
    flex-wrap: wrap;
    overflow-x: hidden;
  }

  .stitch-selections-page .stitch-filter-meta {
    flex: 1 0 100%;
    margin-left: 0;
    text-align: left;
  }

  .stitch-selections-page .stitch-split-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .stitch-selections-page .stitch-split-7-5 > .stitch-list-panel,
  .stitch-selections-page .stitch-split-7-5 > .stitch-selection-detail {
    grid-column: 1 / -1;
  }

  .stitch-selections-page .stitch-detail-scroll {
    flex-basis: auto;
    height: auto;
    max-height: 656px;
  }
}

@media (max-width: 800px) {
  .stitch-selections-page .stitch-topbar {
    flex-direction: column;
  }

  .stitch-selections-page .stitch-engine-context {
    flex-wrap: wrap;
    white-space: normal;
  }

  .stitch-selections-page .stitch-engine-divider {
    display: none;
  }

  .stitch-selections-page .stitch-top-actions {
    align-items: flex-start;
  }

  .stitch-selections-page .stitch-selection-filter-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .stitch-selections-page .stitch-selection-filter-grid > .stitch-search-field,
  .stitch-selections-page .stitch-selection-filter-grid > label:not(.stitch-search-field) {
    grid-column: 1 / -1;
  }

  .stitch-selections-page .stitch-segment-row {
    overflow-x: hidden;
  }

  .stitch-selections-page .stitch-filter-meta {
    flex: 0 0 100%;
  }

  .stitch-selections-page .stitch-panel-head,
  .stitch-selections-page .stitch-panel-foot,
  .stitch-selections-page .stitch-detail-head,
  .stitch-selections-page .stitch-detail-note {
    height: auto;
    white-space: normal;
  }

  .stitch-selections-page .stitch-panel-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .stitch-selections-page .stitch-panel-foot > div {
    flex-wrap: wrap;
    white-space: normal;
  }
}

/* qmt_4 / 账户与收益：严格复现 Stitch 的 12 栅格、密度和响应断点。 */
.stitch-account-page {
  --stitch-blue: #00479f;
  --stitch-blue-strong: #1d5fc4;
  --stitch-blue-soft: #e6eeff;
  --stitch-blue-pale: #eff4ff;
  --stitch-ink: #0f1c2d;
  --stitch-muted: #505f74;
  --stitch-line: #dce3ec;
  --stitch-line-strong: #c2c6d5;
  --stitch-red: #ba1a1a;
  --stitch-green: #047857;
  color: var(--stitch-ink);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 18px;
}

.stitch-account-page .material-symbols-outlined {
  display: inline-block;
  flex: 0 0 auto;
  font-family: "Material Symbols Outlined" !important;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "liga";
}

.stitch-account-page .stitch-account-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  overflow: hidden;
  background: #fff;
  border: 0;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.stitch-account-page .stitch-account-title {
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.stitch-account-page .stitch-account-title > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  overflow: visible;
  white-space: nowrap;
}

.stitch-account-page .stitch-account-title > div:first-child strong {
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -.005em;
}

.stitch-account-page .stitch-account-title > div:first-child small {
  margin-left: 4px;
  color: var(--stitch-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.stitch-account-page .stitch-p24-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--stitch-blue);
}

.stitch-account-page .stitch-p24-title-icon .material-symbols-outlined { font-size: 20px; }

.stitch-account-page .stitch-account-title code,
.stitch-account-page .stitch-account-title .stitch-soft-tag,
.stitch-account-page .stitch-account-title .stitch-snapshot-state {
  max-width: 230px;
  padding: 2px 6px;
  overflow: hidden;
  color: var(--stitch-blue);
  background: var(--stitch-blue-soft);
  border-radius: 2px;
  font: 500 11px/14px var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-account-page .stitch-account-title .stitch-demo-chip {
  padding: 2px 7px;
  font-size: 11px;
  line-height: 14px;
}

.stitch-account-page .stitch-account-title .stitch-snapshot-state {
  color: #3b4b60;
  background: #f1f4f9;
  font-family: var(--sans);
  font-weight: 600;
}

.stitch-account-page .stitch-account-title .stitch-snapshot-state.is-stale {
  color: #8a3c0b;
  background: #fff4df;
}

.stitch-account-page .stitch-account-tools {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.stitch-account-page .stitch-period,
.stitch-account-page .stitch-account-actions,
.stitch-account-page .stitch-account-checkline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stitch-account-page .stitch-period {
  color: var(--stitch-muted);
  font-size: 11px;
  line-height: 14px;
}

.stitch-account-page .stitch-period > span {
  height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  background: var(--stitch-blue-pale);
  border-radius: 2px;
  white-space: nowrap;
}

.stitch-account-page .stitch-period .material-symbols-outlined {
  margin-right: 5px;
  font-size: 15px;
}

.stitch-account-page .stitch-period strong {
  color: var(--stitch-ink);
  font: 500 12px/14px var(--mono);
}

.stitch-account-page .stitch-account-actions {
  flex: 0 1 auto;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 6px;
}

.stitch-account-page .stitch-range-pills {
  height: 26px;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 2px;
  background: var(--stitch-blue-pale);
  border-radius: 2px;
}

.stitch-account-page .stitch-range-pills button,
.stitch-account-page .stitch-ledger-tabs button {
  min-height: 22px;
  padding: 3px 8px;
  color: var(--stitch-muted);
  background: transparent;
  border: 0;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  white-space: nowrap;
}

.stitch-account-page .stitch-range-pills button.is-active,
.stitch-account-page .stitch-ledger-tabs button.is-active {
  color: #fff;
  background: var(--stitch-blue);
  font-weight: 500;
}

.stitch-account-page .stitch-account-actions > .stitch-action-button {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 0;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
}

.stitch-account-page .stitch-account-actions .material-symbols-outlined { font-size: 15px; }

.stitch-account-page .stitch-account-checkline {
  color: var(--stitch-muted);
  font: 400 11px/14px var(--mono);
  white-space: nowrap;
}

.stitch-account-page .stitch-account-checkline > span + span::before {
  content: "·";
  margin-right: 8px;
  color: #a5aebb;
}

.stitch-account-page .stitch-account-metrics {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.stitch-account-page .stitch-account-metric {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px;
  overflow: hidden;
  background: #fff;
  border: 0;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.stitch-account-page .stitch-account-metric > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  color: var(--stitch-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.stitch-account-page .stitch-account-metric > div:first-child span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.stitch-account-page .stitch-account-metric > div:first-child .material-symbols-outlined {
  color: var(--stitch-muted);
  font-size: 14px;
}

.stitch-account-page .stitch-account-metric > strong {
  display: block;
  margin: 2px 0 0;
  overflow: hidden;
  color: var(--stitch-ink);
  font: 600 18px/22px var(--mono);
  letter-spacing: -.03em;
  text-overflow: clip;
  white-space: nowrap;
}

.stitch-account-page .stitch-account-metric > strong.is-positive { color: var(--stitch-red); }
.stitch-account-page .stitch-account-metric > strong.is-negative { color: var(--stitch-green); }

.stitch-account-page .stitch-account-metric > small {
  min-height: 14px;
  display: block;
  margin-top: 1px;
  overflow: hidden;
  color: var(--stitch-muted);
  font: 400 12px/14px var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-account-page .stitch-account-metric footer {
  overflow: hidden;
  color: var(--stitch-muted);
  font: 400 11px/14px var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-account-page .stitch-account-main {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
  margin-top: 12px;
}

.stitch-account-page .stitch-account-left {
  grid-column: span 8;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.stitch-account-page .stitch-account-right {
  grid-column: span 4;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.stitch-account-page .stitch-equity-card {
  flex: 0 0 64px;
  height: 64px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  overflow: hidden;
  background: #fff;
  border: 0;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.stitch-account-page .stitch-equity-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stitch-account-page .stitch-equity-copy > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stitch-account-page .stitch-equity-copy strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-account-page .stitch-equity-copy small {
  margin-top: 1px;
  overflow: hidden;
  color: var(--stitch-muted);
  font: 400 11px/14px var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-account-page .stitch-equity-copy .stitch-soft-tag {
  padding: 1px 6px;
  color: var(--stitch-blue);
  background: var(--stitch-blue-soft);
  border-radius: 2px;
  font-size: 11px;
  font-weight: 600;
  line-height: 14px;
}

.stitch-account-page .stitch-equity-visual {
  flex: 0 1 360px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.stitch-account-page .stitch-account-chart {
  flex: 1 1 280px;
  width: 280px;
  max-width: 280px;
  height: 40px;
  overflow: hidden;
}

.stitch-account-page .stitch-account-chart svg {
  width: 100%;
  height: 100%;
}

.stitch-account-page .stitch-account-chart-empty {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 8px;
  color: var(--stitch-muted);
  background: var(--stitch-blue-pale);
  font: 400 11px/14px var(--mono);
  text-align: center;
}

.stitch-account-page .stitch-account-chart-empty strong,
.stitch-account-page .stitch-account-chart-empty span { white-space: nowrap; }

.stitch-account-page .stitch-equity-visual > b {
  flex: 0 0 auto;
  color: var(--stitch-red);
  font: 500 12px/14px var(--mono);
  white-space: nowrap;
}

.stitch-account-page .stitch-ledger-panel {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 0;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.stitch-account-page .stitch-ledger-head {
  flex: 0 0 44px;
  height: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  overflow: hidden;
  background: var(--stitch-blue-pale);
  border: 0;
}

.stitch-account-page .stitch-ledger-head > div:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  white-space: nowrap;
}

.stitch-account-page .stitch-ledger-head > div:first-child .material-symbols-outlined {
  color: var(--stitch-blue);
  font-size: 18px;
}

.stitch-account-page .stitch-ledger-head strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-account-page .stitch-ledger-head span {
  margin: 0;
  color: var(--stitch-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 14px;
  letter-spacing: .04em;
  white-space: nowrap;
}

.stitch-account-page .stitch-ledger-tabs {
  flex: 0 0 auto;
  min-height: 28px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px;
  overflow-x: auto;
  background: #fff;
  border-radius: 2px;
  white-space: nowrap;
  scrollbar-width: none;
}

.stitch-account-page #stitch-ledger-content {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.stitch-account-page .stitch-ledger-scroll,
.stitch-account-page .stitch-ledger-secondary {
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
}

.stitch-account-page .stitch-ledger-table {
  width: max(100%, 959.3px);
  min-width: 959.3px;
  table-layout: auto;
}

.stitch-account-page .stitch-ledger-table th,
.stitch-account-page .stitch-ledger-table td {
  padding: 5px 8px;
  text-align: right;
  white-space: nowrap;
}

.stitch-account-page .stitch-ledger-table th {
  height: 30px;
  color: var(--stitch-muted);
  background: var(--stitch-blue-pale);
  font-size: 11px;
  font-weight: 600;
  line-height: 14px;
  letter-spacing: .04em;
}

.stitch-account-page .stitch-ledger-table td {
  height: 40px;
  overflow: visible;
  color: var(--stitch-ink);
  font: 500 12px/16px var(--mono);
}

.stitch-account-page .stitch-ledger-table th:first-child,
.stitch-account-page .stitch-ledger-table td:first-child,
.stitch-account-page .stitch-ledger-table th:last-child,
.stitch-account-page .stitch-ledger-table td:last-child { text-align: left; }

.stitch-account-page .stitch-ledger-table td:first-child strong,
.stitch-account-page .stitch-ledger-table td:first-child small { display: block; }

.stitch-account-page .stitch-ledger-table td:first-child small {
  color: var(--stitch-muted);
  font-size: 10px;
  line-height: 12px;
}

.stitch-account-page .stitch-ledger-empty-row td { height: 86px; }

.stitch-account-page .stitch-ledger-empty-row .stitch-p24-inline-empty {
  color: var(--stitch-muted);
  font: 400 12px/16px var(--sans);
  text-align: center;
}

.stitch-account-page .stitch-table-foot {
  flex: 0 0 22px;
  min-height: 22px;
  height: 22px;
  padding: 2px 12px;
  color: var(--stitch-muted);
  background: var(--stitch-blue-pale);
  border: 0;
  font: 400 11px/14px var(--mono);
}

.stitch-account-page .stitch-account-ledger-empty {
  flex: 1 1 auto;
  min-height: 0;
  color: var(--stitch-muted);
  background: #fff;
}

.stitch-account-page .stitch-account-ledger-empty strong { color: var(--stitch-ink); }

.stitch-account-page .stitch-reconcile-panel,
.stitch-account-page .stitch-comparison-panel,
.stitch-account-page .stitch-policy-panel {
  flex: 0 0 auto;
  overflow: hidden;
  background: #fff;
  border: 0;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.stitch-account-page .stitch-reconcile-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}

.stitch-account-page .stitch-reconcile-summary > header {
  flex: 0 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.stitch-account-page .stitch-reconcile-summary > header > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.stitch-account-page .stitch-reconcile-summary > header .material-symbols-outlined {
  color: var(--stitch-blue);
  font-size: 18px;
}

.stitch-account-page .stitch-reconcile-summary > header strong,
.stitch-account-page .stitch-compare-title strong,
.stitch-account-page .stitch-policy-panel > header strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-account-page .stitch-reconcile-summary > header > .stitch-soft-tag {
  flex: 0 0 auto;
  padding: 2px 6px;
  color: var(--stitch-muted);
  background: var(--stitch-blue-pale);
  border-radius: 2px;
  font-size: 11px;
  font-weight: 700;
  line-height: 14px;
}

.stitch-account-page .stitch-reconcile-notice {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  margin: 0;
  padding: 10px;
  overflow: hidden;
  color: #78350f;
  background: #fffbeb;
  border: 0;
  border-radius: 2px;
  font-size: 12px;
  line-height: 16px;
}

.stitch-account-page .stitch-reconcile-notice.is-muted {
  color: var(--stitch-muted);
  background: #f5f7fb;
  border: 0;
}

.stitch-account-page .stitch-reconcile-notice strong {
  color: var(--stitch-ink);
  font-size: 13px;
  line-height: 18px;
}

.stitch-account-page .stitch-comparison-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}

.stitch-account-page .stitch-compare-title {
  flex: 0 0 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0;
  border: 0;
}

.stitch-account-page .stitch-compare-title span {
  color: var(--stitch-muted);
  font: 400 11px/14px var(--mono);
  white-space: nowrap;
}

.stitch-account-page .stitch-comparison-panel > .stitch-p24-table-scroll {
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
}

.stitch-account-page .stitch-compare-table {
  width: 100%;
  min-width: 0;
  table-layout: auto;
}

.stitch-account-page .stitch-compare-table th {
  height: 26px;
  padding: 5px 8px;
  color: var(--stitch-muted);
  background: var(--stitch-blue-pale);
  font-size: 11px;
  font-weight: 600;
  line-height: 14px;
  letter-spacing: .04em;
  text-align: right;
  white-space: nowrap;
}

.stitch-account-page .stitch-compare-table th:first-child { text-align: left; }

.stitch-account-page .stitch-compare-table td {
  height: 33px;
  padding: 6px 8px;
  overflow: visible;
  color: var(--stitch-ink);
  font: 500 12px/16px var(--mono);
  text-align: right;
  white-space: nowrap;
}

.stitch-account-page .stitch-compare-table td:first-child {
  font-family: var(--sans);
  font-weight: 500;
  text-align: left;
}

.stitch-account-page .stitch-policy-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}

.stitch-account-page .stitch-policy-panel > header {
  flex: 0 0 20px;
  min-height: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
}

.stitch-account-page .stitch-policy-panel > header .material-symbols-outlined {
  color: var(--stitch-muted);
  font-size: 16px;
}

.stitch-account-page .stitch-policy-list {
  min-height: 0;
  flex: 1 1 auto;
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
}

.stitch-account-page .stitch-policy-list > div {
  min-height: 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px;
  overflow: hidden;
  background: var(--stitch-blue-pale);
  border-radius: 2px;
}

.stitch-account-page .stitch-policy-list > div > .material-symbols-outlined {
  margin-top: 2px;
  color: var(--stitch-blue);
  font-size: 15px;
}

.stitch-account-page .stitch-policy-list > div > span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.stitch-account-page .stitch-policy-list b {
  color: var(--stitch-ink);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.stitch-account-page .stitch-policy-list small {
  display: block;
  overflow: hidden;
  color: var(--stitch-muted);
  font-size: 12px;
  line-height: 16px;
}

.stitch-account-page .stitch-policy-panel > .stitch-p24-detail-actions {
  flex: 0 0 32px;
  height: 32px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
}

.stitch-account-page .stitch-policy-panel .stitch-row-button {
  width: 100%;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 10px;
  font-size: 12px;
  line-height: 16px;
}

.stitch-account-page .stitch-policy-panel .stitch-row-button .material-symbols-outlined { font-size: 16px; }

.stitch-account-page .stitch-policy-panel > p {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  color: var(--stitch-muted);
  font: 400 11px/14px var(--mono);
  line-height: 14px;
}

@media (min-width: 1600px) {
  .stitch-account-page .stitch-account-top { height: 74px; min-height: 74px; }
  .stitch-account-page .stitch-account-title,
  .stitch-account-page .stitch-account-tools { flex-wrap: nowrap; }
  .stitch-account-page .stitch-account-checkline > span:nth-child(-n+2) { display: none; }
  .stitch-account-page .stitch-account-metrics,
  .stitch-account-page .stitch-account-metric { height: 94px; }
  .stitch-account-page .stitch-account-main { height: 639.75px; }
  .stitch-account-page .stitch-ledger-panel { height: 348.5px; }
  .stitch-account-page .stitch-reconcile-summary { height: 125px; }
  .stitch-account-page .stitch-comparison-panel { height: 209px; }
  .stitch-account-page .stitch-policy-panel { height: 281.75px; }
  .stitch-account-page .stitch-compare-table td { height: 32.75px; }
}

@media (min-width: 1320px) and (max-width: 1599px) {
  .stitch-account-page .stitch-account-top { height: 80px; min-height: 80px; }
  .stitch-account-page .stitch-account-metrics,
  .stitch-account-page .stitch-account-metric { height: 108px; }
  .stitch-account-page .stitch-account-main { height: 729.5px; }
  .stitch-account-page .stitch-ledger-panel { height: 404.5px; }
  .stitch-account-page .stitch-reconcile-summary { height: 125px; }
  .stitch-account-page .stitch-comparison-panel { height: 237px; }
  .stitch-account-page .stitch-policy-panel { height: 343.5px; }
  .stitch-account-page .stitch-ledger-head { height: 72px; min-height: 72px; flex-basis: 72px; flex-wrap: wrap; }
  .stitch-account-page .stitch-compare-table td { height: 39.75px; }
  .stitch-account-page .stitch-account-checkline { display: none; }
}

@media (min-width: 1280px) and (max-width: 1319px) {
  .stitch-account-page .stitch-account-top { height: 80px; min-height: 80px; }
  .stitch-account-page .stitch-account-metrics,
  .stitch-account-page .stitch-account-metric { height: 130px; }
  .stitch-account-page .stitch-account-main { height: 796px; }
  .stitch-account-page .stitch-ledger-panel { height: 418.5px; }
  .stitch-account-page .stitch-reconcile-summary { height: 141.5px; }
  .stitch-account-page .stitch-comparison-panel { height: 287px; }
  .stitch-account-page .stitch-policy-panel { height: 343.5px; }
  .stitch-account-page .stitch-ledger-head { height: 72px; min-height: 72px; flex-basis: 72px; align-content: center; flex-wrap: wrap; }
  .stitch-account-page .stitch-ledger-head > div:first-child,
  .stitch-account-page .stitch-ledger-tabs { flex: 1 0 100%; }
  .stitch-account-page .stitch-table-foot {
    height: 36px;
    min-height: 36px;
    flex-basis: 36px;
    align-content: center;
    flex-wrap: wrap;
  }
  .stitch-account-page .stitch-table-foot > span:last-child { flex: 0 0 100%; }
  .stitch-account-page .stitch-compare-table td { height: 52.25px; white-space: normal; }
  .stitch-account-page .stitch-account-checkline { display: none; }
  .stitch-account-page .stitch-account-title > div:first-child small { display: none; }
  .stitch-account-page .stitch-account-title .stitch-snapshot-state { display: none; }
  .stitch-account-page .stitch-account-metric > div:first-child {
    min-height: 28px;
    align-items: flex-start;
    white-space: normal;
  }
  .stitch-account-page .stitch-account-metric > div:first-child span {
    overflow: visible;
    text-overflow: clip;
  }
  .stitch-account-page .stitch-account-metric > small {
    min-height: 28px;
    white-space: normal;
  }
  .stitch-account-page .stitch-account-metric footer {
    min-height: 28px;
    white-space: normal;
  }
}

@media (max-width: 1279px) {
  .stitch-account-page .stitch-account-top {
    min-height: 0;
    height: auto;
    align-items: flex-start;
    flex-direction: column;
  }

  .stitch-account-page .stitch-account-title,
  .stitch-account-page .stitch-account-tools {
    flex: 1 1 100%;
    width: 100%;
    justify-content: flex-start;
  }

  .stitch-account-page .stitch-account-actions { justify-content: flex-start; flex-wrap: wrap; }
  .stitch-account-page .stitch-account-checkline { flex: 1 0 100%; }
  .stitch-account-page .stitch-account-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stitch-account-page .stitch-account-metric { height: 108px; }
  .stitch-account-page .stitch-account-main { height: auto; grid-template-columns: minmax(0, 1fr); }
  .stitch-account-page .stitch-account-left,
  .stitch-account-page .stitch-account-right { grid-column: 1 / -1; }
  .stitch-account-page .stitch-ledger-panel { min-height: 404px; }
  .stitch-account-page .stitch-reconcile-summary,
  .stitch-account-page .stitch-comparison-panel,
  .stitch-account-page .stitch-policy-panel { height: auto; min-height: 0; }
  .stitch-account-page .stitch-policy-list { grid-template-rows: none; }
}

@media (max-width: 767px) {
  .stitch-account-page .stitch-account-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stitch-account-page .stitch-account-checkline { align-items: flex-start; flex-direction: column; gap: 2px; }
  .stitch-account-page .stitch-account-checkline > span + span::before { display: none; }
  .stitch-account-page .stitch-ledger-head > div:first-child > span:last-child { display: none; }
}

@media (max-width: 639px) {
  .stitch-account-page .stitch-equity-card {
    height: auto;
    min-height: 112px;
    align-items: stretch;
    flex-direction: column;
  }

  .stitch-account-page .stitch-equity-visual { flex: 0 0 40px; width: 100%; }
  .stitch-account-page .stitch-account-chart { max-width: none; }
  .stitch-account-page .stitch-ledger-head { height: auto; min-height: 44px; align-items: flex-start; flex-direction: column; }
}
