.stitch-quality-page,
.stitch-audit-page,
.stitch-strategy-page {
  width: 100%;
  min-width: 0;
  color: #1d2a3a;
  font-size: 11px;
}

.stitch-quality-page *,
.stitch-audit-page *,
.stitch-strategy-page * {
  min-width: 0;
}

.stitch-quality-page .stitch-card,
.stitch-audit-page .stitch-card,
.stitch-strategy-page .stitch-card {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dce3ee;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(29, 52, 84, .045);
}

.stitch-quality-page .stitch-card-head,
.stitch-audit-page .stitch-card-head,
.stitch-strategy-page .stitch-card-head {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  background: #fff;
  border-bottom: 1px solid #e1e6ef;
}

.stitch-quality-page .stitch-card-head > div,
.stitch-audit-page .stitch-card-head > div,
.stitch-strategy-page .stitch-card-head > div {
  min-width: 0;
}

.stitch-quality-page .stitch-card-head strong,
.stitch-quality-page .stitch-card-head small,
.stitch-audit-page .stitch-card-head strong,
.stitch-audit-page .stitch-card-head small,
.stitch-strategy-page .stitch-card-head strong,
.stitch-strategy-page .stitch-card-head small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-quality-page .stitch-card-head strong,
.stitch-audit-page .stitch-card-head strong,
.stitch-strategy-page .stitch-card-head strong {
  color: #22324a;
  font-size: 11px;
  font-weight: 750;
}

.stitch-quality-page .stitch-card-head small,
.stitch-audit-page .stitch-card-head small,
.stitch-strategy-page .stitch-card-head small {
  margin-top: 2px;
  color: #798598;
  font-size: 8px;
}

.stitch-quality-page .stitch-status,
.stitch-quality-page .stitch-chip,
.stitch-audit-page .stitch-status,
.stitch-audit-page .stitch-chip,
.stitch-strategy-page .stitch-status,
.stitch-strategy-page .stitch-chip {
  max-width: 100%;
  min-height: 19px;
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  overflow: hidden;
  color: #5c6878;
  background: #f0f3f8;
  border: 1px solid #dbe1e9;
  border-radius: 2px;
  font-size: 8px;
  font-weight: 750;
  line-height: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-quality-page .stitch-status-success,
.stitch-audit-page .stitch-status-success,
.stitch-strategy-page .stitch-status-success {
  color: #126a46;
  background: #eaf7f0;
  border-color: #bfe1cf;
}

.stitch-quality-page .stitch-status-warning,
.stitch-audit-page .stitch-status-warning,
.stitch-strategy-page .stitch-status-warning {
  color: #8a470f;
  background: #fff1e6;
  border-color: #efc8aa;
}

.stitch-quality-page .stitch-status-danger,
.stitch-audit-page .stitch-status-danger,
.stitch-strategy-page .stitch-status-danger {
  color: #a32229;
  background: #ffecea;
  border-color: #edbbb8;
}

.stitch-quality-page .stitch-empty-state,
.stitch-quality-page .stitch-unreported,
.stitch-audit-page .stitch-empty-state,
.stitch-audit-page .stitch-unreported,
.stitch-strategy-page .stitch-empty-state,
.stitch-strategy-page .stitch-unreported {
  min-height: 58px;
  display: grid;
  place-content: center;
  gap: 3px;
  padding: 10px;
  color: #7a8798;
  text-align: center;
}

.stitch-quality-page .stitch-empty-state strong,
.stitch-quality-page .stitch-unreported strong,
.stitch-audit-page .stitch-empty-state strong,
.stitch-audit-page .stitch-unreported strong,
.stitch-strategy-page .stitch-empty-state strong,
.stitch-strategy-page .stitch-unreported strong {
  color: #58667a;
  font-size: 10px;
}

.stitch-quality-page .stitch-empty-state span,
.stitch-quality-page .stitch-unreported span,
.stitch-audit-page .stitch-empty-state span,
.stitch-audit-page .stitch-unreported span,
.stitch-strategy-page .stitch-empty-state span,
.stitch-strategy-page .stitch-unreported span {
  font-size: 8px;
}

/* qmt_8 · 数据与运行质量 */
@font-face {
  font-family: "Material Symbols QMT8";
  src: url("/fonts/material-symbols-outlined-qmt8.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

.workspace.route-quality:has(#page > .stitch-quality-page) #page,
.workspace:has(#page > .stitch-quality-page) #page {
  padding-bottom: 0;
}

.stitch-quality-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 0;
  font-size: 13px;
}

.stitch-quality-page .material-symbols-outlined {
  width: 1em;
  height: 1em;
  display: inline-block;
  flex: 0 0 auto;
  overflow: hidden;
  font-family: "Material Symbols QMT8";
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 20;
  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-quality-page .stitch-card {
  box-sizing: border-box;
  padding: 12px;
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: 0 1px 3px rgba(29, 52, 84, .09);
}

.stitch-quality-page .stitch-card-head {
  width: 100%;
  height: 20px;
  min-height: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0;
  background: transparent;
  border: 0;
  flex: 0 0 20px;
}

.stitch-quality-page .stitch-quality-log-card .stitch-card-head {
  height: 14px;
  min-height: 14px;
  flex-basis: 14px;
}

.stitch-quality-page .stitch-quality-log-card .stitch-card-head small {
  display: none;
}

.stitch-quality-page .stitch-card-head > div {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.stitch-quality-page .stitch-card-head strong {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  color: #172435;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-quality-page .stitch-card-head strong > span:last-child,
.stitch-quality-page .stitch-card-head small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-quality-page .stitch-card-head small {
  display: block;
  margin: 0;
  color: #647286;
  font: 10px/14px var(--mono);
}

.stitch-quality-page .stitch-status,
.stitch-quality-page .stitch-chip {
  min-height: 18px;
  padding: 2px 6px;
  border: 0;
  border-radius: 2px;
  font-size: 10px;
  line-height: 14px;
}

.stitch-quality-context {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 12px;
  overflow: hidden;
  color: #341100;
  background: #ffdbcb;
  border: 0;
  font-size: 11px;
  line-height: 20px;
  white-space: nowrap;
}

.stitch-quality-context > span,
.stitch-quality-context-primary > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-quality-context-primary {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.stitch-quality-context .material-symbols-outlined {
  width: 16px;
  height: 16px;
  color: #a33b00;
  font-size: 16px;
}

.stitch-quality-top-grid,
.stitch-quality-main-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
}

.stitch-quality-top-grid {
  height: 178px;
}

.stitch-quality-browser-card {
  grid-column: span 5;
  height: 178px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stitch-quality-decoupling {
  grid-column: span 7;
  height: 178px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stitch-quality-browser-card > .stitch-card-head {
  height: 34px;
  min-height: 34px;
  flex-basis: 34px;
}

.stitch-quality-browser-card > .stitch-card-head > div {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.stitch-quality-browser-card > .stitch-card-head small {
  max-width: 100%;
}

.stitch-browser-telemetry {
  height: 50px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 0;
}

.stitch-browser-telemetry > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3px 8px;
  overflow: hidden;
  background: #f1f6fd;
  border: 0;
}

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

.stitch-browser-telemetry span {
  color: #536278;
  font-size: 9px;
  line-height: 11px;
}

.stitch-browser-telemetry strong {
  margin: 1px 0;
  color: #00479f;
  font: 700 16px/18px var(--mono);
}

.stitch-browser-telemetry small {
  color: #718096;
  font-size: 8px;
  line-height: 10px;
}

.stitch-browser-foot {
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0;
  overflow: hidden;
  color: #58677c;
  background: transparent;
  border: 0;
  font-size: 10px;
  line-height: 18px;
}

.stitch-browser-foot span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-fault-grid {
  height: auto;
  min-height: 0;
  display: grid;
  flex: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
}

.stitch-fault-grid article {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px;
  overflow: hidden;
  color: #17304f;
  background: #eef5ff;
  border: 0;
  border-left: 3px solid #1769aa;
}

.stitch-fault-grid article:last-child {
  color: #5b1b18;
  background: #fff1f0;
  border-left-color: #ba1a1a;
}

.stitch-fault-title {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 18px;
}

.stitch-fault-title .material-symbols-outlined {
  width: 16px;
  height: 16px;
  color: #1769aa;
  font-size: 16px;
}

.stitch-fault-grid article:last-child .material-symbols-outlined {
  color: #ba1a1a;
}

.stitch-fault-title > span:not(.material-symbols-outlined) {
  padding: 1px 4px;
  color: #fff;
  background: #1769aa;
  font-size: 9px;
  font-weight: 700;
  line-height: 14px;
}

.stitch-fault-grid article:last-child .stitch-fault-title > span:not(.material-symbols-outlined) {
  background: #ba1a1a;
}

.stitch-fault-title strong {
  overflow: hidden;
  color: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-fault-grid p {
  margin: 3px 0;
  color: inherit;
  font-size: 10px;
  line-height: 1.35;
}

.stitch-fault-grid small {
  display: block;
  overflow: hidden;
  color: #536b87;
  font-size: 9px;
  line-height: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-fault-grid article:last-child small {
  color: #8c4340;
}

.stitch-quality-main-grid {
  height: 620px;
  min-height: 620px;
  align-items: stretch;
}

.stitch-quality-left-stack {
  grid-column: span 8;
  height: 620px;
  display: grid;
  grid-template-rows: 324px 280px;
  gap: 16px;
}

.stitch-quality-right-stack {
  grid-column: span 4;
  height: 620px;
  display: grid;
  grid-template-rows: 337px 218px;
  align-content: start;
  gap: 16px;
}

.stitch-infra-card,
.stitch-quality-data-card,
.stitch-heal-card,
.stitch-quality-log-card {
  height: 100%;
}

.stitch-infra-card,
.stitch-quality-data-card,
.stitch-quality-log-card {
  display: flex;
  flex-direction: column;
}

.stitch-infra-card,
.stitch-quality-data-card {
  gap: 8px;
}

.stitch-quality-node-grid {
  height: 272px;
  min-height: 272px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, 88px);
  gap: 4px;
  padding: 0;
}

.stitch-quality-node {
  width: 100%;
  height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 5px;
  padding: 8px;
  overflow: hidden;
  color: inherit;
  background: #f1f6fd;
  border: 0;
  border-radius: 2px;
  text-align: left;
  transition: background-color .15s ease;
}

.stitch-quality-node:hover {
  background: #e5effc;
}

.stitch-quality-node:focus-visible {
  outline: 2px solid #0057b8;
  outline-offset: -2px;
}

.stitch-quality-node-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.stitch-quality-node-title {
  overflow: hidden;
  color: #526176;
  font: 600 10px/14px var(--sans);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-quality-node-head i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  background: #77869a;
  border-radius: 50%;
}

.stitch-quality-node-success .stitch-quality-node-head i { background: #087a51; }
.stitch-quality-node-warning .stitch-quality-node-head i { background: #bd5b12; }
.stitch-quality-node-danger .stitch-quality-node-head i { background: #ba1a1a; }

.stitch-quality-node-copy {
  display: block;
  overflow: hidden;
}

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

.stitch-quality-node-copy strong {
  color: #172435;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
}

.stitch-quality-node-success .stitch-quality-node-copy strong { color: #006c49; }
.stitch-quality-node-danger .stitch-quality-node-copy strong { color: #9f1b1b; }
.stitch-quality-node-warning .stitch-quality-node-copy strong { color: #93500f; }

.stitch-quality-node-copy small {
  color: #647286;
  font: 10px/14px var(--mono);
}

.stitch-quality-table-wrap {
  width: 100%;
  height: 188px;
  flex: 0 0 188px;
  overflow-x: auto;
  overflow-y: hidden;
  margin: 0;
  scrollbar-gutter: auto;
  scrollbar-width: thin;
}

.stitch-quality-table-wrap:focus-visible {
  outline: 2px solid #0057b8;
  outline-offset: 1px;
}

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

.stitch-quality-table th,
.stitch-quality-table td {
  height: 32px;
  padding: 2px 4px;
  overflow: hidden;
  border-bottom: 1px solid #e4e9f1;
  color: #34445a;
  font-size: 11px;
  line-height: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-quality-table tbody tr:last-child td {
  border-bottom: 0;
}

.stitch-quality-table th {
  height: 28px;
  color: #526176;
  background: #edf2f8;
  border-bottom: 0;
  font-size: 11px;
  font-weight: 600;
  line-height: 14px;
  text-align: left;
}

.stitch-quality-table th:nth-child(1) { width: 20%; }
.stitch-quality-table th:nth-child(2) { width: 13%; text-align: right; }
.stitch-quality-table th:nth-child(3) { width: 15%; text-align: right; }
.stitch-quality-table th:nth-child(4) { width: 12%; text-align: center; }
.stitch-quality-table th:nth-child(5) { width: 25%; }
.stitch-quality-table th:nth-child(6) { width: 15%; text-align: right; }
.stitch-quality-table td:nth-child(2),
.stitch-quality-table td:nth-child(3),
.stitch-quality-table td:nth-child(6) { text-align: right; }
.stitch-quality-table td:nth-child(4) { text-align: center; }

.stitch-quality-table td strong,
.stitch-quality-table td code {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-quality-table td strong {
  color: #172435;
  font-size: 12px;
  font-weight: 600;
  line-height: 14px;
}

.stitch-quality-table td code {
  color: #6f7d90;
  font: 8px/10px var(--mono);
}

.stitch-quality-table .stitch-number {
  color: #004f9f;
  font-size: 12px;
}

.stitch-quality-retained {
  color: #8c4d16 !important;
}

.stitch-quality-table .stitch-status {
  min-height: 18px;
  max-width: 100%;
  font-size: 9px;
  line-height: 12px;
}

.stitch-quality-repair-strip {
  width: 100%;
  height: 28px;
  min-height: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  padding: 6px 8px;
  overflow: hidden;
  color: #526176;
  background: #edf2f8;
  border: 0;
  font: 10px/16px var(--mono);
  white-space: nowrap;
}

.stitch-quality-repair-strip strong {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #172435;
  font: 600 12px/16px var(--sans);
}

.stitch-quality-repair-strip .material-symbols-outlined {
  width: 16px;
  height: 16px;
  color: #526176;
  font-size: 16px;
}

.stitch-quality-repair-strip span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.stitch-heal-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stitch-heal-card > .stitch-card-head {
  flex: 0 0 20px;
}

.stitch-heal-steps {
  min-height: 0;
  display: grid;
  flex: 1 1 auto;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stitch-heal-steps li {
  min-height: 0;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 5px 7px;
  overflow: hidden;
  background: #f1f6fd;
  border: 0;
}

.stitch-heal-steps li > span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #1769aa;
  border-radius: 50%;
  font: 700 10px/20px var(--mono);
}

.stitch-heal-steps .stitch-heal-gate {
  background: #fff1f0;
}

.stitch-heal-steps .stitch-heal-gate > span {
  background: #ba1a1a;
}

.stitch-heal-steps strong,
.stitch-heal-steps p {
  display: block;
  margin: 0;
}

.stitch-heal-steps strong {
  overflow: hidden;
  color: #172435;
  font-size: 11px;
  font-weight: 600;
  line-height: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-heal-steps p {
  margin-top: 1px;
  overflow: hidden;
  color: #526176;
  font-size: 9px;
  line-height: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-heal-steps em {
  color: #6c7a8d;
  font: 9px/12px var(--mono);
  font-style: normal;
  white-space: nowrap;
}

.stitch-heal-steps .material-symbols-outlined {
  width: 14px;
  height: 14px;
  display: inline-block;
  color: #ba1a1a;
  font-size: 14px;
  vertical-align: -2px;
}

.stitch-audit-report {
  min-height: 45px;
  display: flex;
  flex: 0 0 45px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding: 6px 8px;
  background: #edf2f8;
  border: 0;
}

.stitch-audit-report span,
.stitch-audit-report strong,
.stitch-audit-report small {
  display: block;
}

.stitch-audit-report span,
.stitch-audit-report small {
  overflow: hidden;
  color: #647286;
  font: 9px/12px var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-audit-report strong {
  margin: 1px 0;
  color: #172435;
  font-size: 12px;
  line-height: 16px;
}

.stitch-quality-audit-button {
  width: 100% !important;
  min-height: 32px !important;
  flex: 0 0 32px;
  justify-content: center;
  gap: 6px;
  margin: 0;
  font-size: 12px !important;
}

.stitch-quality-audit-button .material-symbols-outlined {
  width: 16px;
  height: 16px;
  font-size: 16px;
}

.stitch-card-note {
  min-height: 14px;
  margin: -2px 0 0;
  overflow: hidden;
  color: #647286;
  font-size: 9px;
  line-height: 14px;
  text-align: center;
}

.stitch-quality-log-card {
  gap: 8px;
}

.stitch-quality-log-card > .stitch-card-head {
  flex: 0 0 20px;
}

.stitch-log-buffer {
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  padding: 4px 8px;
  color: #34445a;
  background: #edf2f8;
  scrollbar-width: thin;
}

.stitch-log-line {
  width: 100%;
  min-height: 25px;
  display: grid;
  grid-template-columns: 72px 88px 58px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  padding: 3px 1px;
  overflow: hidden;
  color: #34445a;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #d9e1ec;
  font: 10px/14px var(--mono);
  text-align: left;
}

button.stitch-log-line:hover {
  background: #e2ebf7;
}

.stitch-log-line time,
.stitch-log-line strong,
.stitch-log-line > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-log-line time { color: #647286; }
.stitch-log-line strong { color: #00549f; }

.stitch-log-buffer .stitch-empty-state {
  height: 100%;
  min-height: 0;
}

@media (min-width: 1601px) {
  .stitch-quality-top-grid,
  .stitch-quality-browser-card,
  .stitch-quality-decoupling {
    height: 147px;
  }

  .stitch-quality-right-stack {
    grid-template-rows: 307px 218px;
  }
}

@media (max-width: 1280px) {
  .stitch-quality-top-grid,
  .stitch-quality-browser-card,
  .stitch-quality-decoupling {
    height: 179px;
  }

  .stitch-quality-main-grid,
  .stitch-quality-left-stack,
  .stitch-quality-right-stack {
    height: 640px;
    min-height: 640px;
  }

  .stitch-quality-left-stack {
    grid-template-rows: 324px 300px;
  }

  .stitch-quality-right-stack {
    grid-template-rows: 352px 218px;
  }

  .stitch-quality-repair-strip {
    height: 48px;
    min-height: 48px;
    align-content: center;
    flex-wrap: wrap;
    row-gap: 0;
  }
}

@media (max-width: 1279px) and (min-width: 901px) {
  .stitch-quality-top-grid {
    height: 303px;
    grid-template-rows: 144px 147px;
  }

  .stitch-quality-browser-card,
  .stitch-quality-decoupling {
    grid-column: span 12;
  }

  .stitch-quality-browser-card { height: 144px; }
  .stitch-quality-decoupling { height: 147px; }
}

/* qmt_9 · 日志与审计 */
@font-face {
  font-family: "Material Symbols QMT9";
  src: url("/fonts/material-symbols-outlined-qmt5.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

.workspace.route-audit:has(#page > .stitch-audit-page) #page,
.workspace:has(#page > .stitch-audit-page) #page {
  padding-bottom: 0;
}

.stitch-audit-page {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 16px;
  color: #0f1c2d;
  font-family: var(--sans);
  font-size: 13px;
}

.stitch-audit-page .stitch-audit-icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  flex: 0 0 auto;
  overflow: hidden;
  font-family: "Material Symbols QMT9";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  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;
}

.stitch-audit-page .stitch-card {
  box-sizing: border-box;
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.stitch-audit-page .stitch-status,
.stitch-audit-page .stitch-chip {
  min-height: 18px;
  padding: 2px 6px;
  border: 0;
  border-radius: 2px;
  font-size: 10px;
  line-height: 14px;
}

.stitch-audit-header {
  width: 100%;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  overflow: hidden;
  background: #fff;
  border: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.stitch-audit-title,
.stitch-audit-actions,
.stitch-audit-title > div > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.stitch-audit-title {
  gap: 8px;
  overflow: hidden;
}

.stitch-audit-title > span:first-child {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  color: #00479f;
  background: rgba(29, 95, 196, .1);
  font-size: 20px;
  line-height: 20px;
}

.stitch-audit-title > div {
  min-width: 0;
  overflow: hidden;
}

.stitch-audit-title h2,
.stitch-audit-title p {
  margin: 0;
}

.stitch-audit-title h2 {
  color: #0f1c2d;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.stitch-audit-title p {
  overflow: hidden;
  color: #505f74;
  font-size: 12px;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-audit-replay {
  min-height: 18px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  overflow: hidden;
  color: #00479f;
  background: rgba(0, 71, 159, .1);
  border-radius: 2px;
  font: 500 10px/14px var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-audit-actions {
  flex: 0 0 auto;
  gap: 4px;
}

.stitch-audit-actions .button {
  min-height: 23px;
  height: 23px;
  padding: 4px 8px;
  color: #0f1c2d;
  background: #e6eeff;
  border: 0;
  border-radius: 0;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  line-height: 14px;
  letter-spacing: .04em;
}

.stitch-audit-actions .button .stitch-audit-icon {
  font-size: 15px;
}

.stitch-audit-actions .button,
.stitch-audit-identity,
.stitch-audit-filter-grid label > span:first-child,
.stitch-audit-page .stitch-card-head strong,
.stitch-audit-stream-actions > button,
.stitch-audit-readonly span,
.stitch-evidence-footer button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.stitch-audit-identity {
  max-width: 220px;
  min-height: 23px;
  display: inline-flex;
  align-items: center;
  padding: 4px;
  overflow: hidden;
  color: #505f74;
  background: #eff4ff;
  border-radius: 0;
  font: 400 11px/16.5px var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-audit-identity .stitch-audit-icon {
  font-size: 14px;
}

.stitch-audit-filters {
  width: 100%;
  height: 82.5px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
}

.stitch-audit-filter-grid {
  width: 100%;
  height: 38px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 4px;
  align-items: center;
}

.stitch-audit-filter-grid label {
  height: auto;
  grid-column: span 2;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  overflow: hidden;
  background: #eff4ff;
  border-radius: 0;
}

.stitch-audit-filter-grid label > .stitch-audit-icon {
  color: #505f74;
  font-size: 16px;
}

.stitch-audit-filter-grid .stitch-audit-trace-filter > .stitch-audit-icon {
  color: #00479f;
}

.stitch-audit-filter-label {
  min-width: 0;
  flex: 0 1 auto;
  margin: 0;
  overflow: hidden;
  color: #505f74;
  font-size: 10px;
  font-weight: 400;
  line-height: 15px;
  text-overflow: ellipsis;
  white-space: normal;
}

.stitch-audit-filter-date { height: 38px !important; }
.stitch-audit-filter-search { height: 24px !important; }
.stitch-audit-filter-select,
.stitch-audit-trace-filter { height: 25px !important; }

.stitch-audit-filter-grid input,
.stitch-audit-filter-grid select {
  width: 100%;
  height: auto;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  color: #0f1c2d;
  background: transparent;
  border: 0;
  border-radius: 0;
  outline-offset: 2px;
  font: 400 12px/16px var(--sans);
  text-overflow: ellipsis;
}

.stitch-audit-filter-date select {
  height: 18px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

.stitch-audit-filter-search input {
  height: 14px;
  font: 400 12px/14px var(--mono);
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

.stitch-audit-filter-select select {
  height: 17px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  line-height: normal;
}

.stitch-audit-trace-filter input {
  height: 14px;
  font: 400 11px/14px var(--mono);
  font-variant-numeric: tabular-nums;
}

.stitch-audit-esc {
  flex: 0 0 auto;
  padding: 0 4px;
  overflow: hidden;
  color: #505f74;
  background: #e6eeff;
  border-radius: 0;
  font: 400 9px/14px var(--mono);
}

.stitch-audit-trace-filter > button {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #fff;
  background: #00479f;
  border: 0;
  border-radius: 2px;
  font: 600 12px/17px var(--sans);
}

.stitch-audit-trace-filter > button .stitch-audit-icon {
  font-size: 13px;
}

.stitch-audit-filter-foot {
  width: 100%;
  height: 24.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 4px;
  overflow: hidden;
}

.stitch-audit-tags,
.stitch-audit-filter-stats {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  white-space: nowrap;
}

.stitch-audit-tags > button:not(.text-button) {
  max-width: 160px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 5px;
  overflow: hidden;
  color: #0f1c2d;
  background: #e6eeff;
  border: 0;
  border-radius: 2px;
  font: 600 11px/14px var(--sans);
  letter-spacing: .04em;
}

.stitch-audit-tags > button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-audit-tags > button b {
  flex: 0 0 auto;
  color: #505f74;
  font-size: 12px;
}

.stitch-audit-tags .stitch-audit-tag-muted {
  color: #737784;
  font-size: 11px;
  line-height: 14px;
  letter-spacing: .04em;
}

.stitch-audit-tags .text-button {
  color: #00479f;
  font-size: 11px;
  line-height: 16.5px;
}

.stitch-audit-filter-stats {
  flex: 0 0 auto;
  gap: 8px;
  color: #505f74;
  font: 400 11px/14px var(--mono);
}

.stitch-audit-filter-stats strong,
.stitch-audit-filter-stats b {
  color: #0f1c2d;
}

.stitch-audit-main-grid {
  width: 100%;
  height: 608.875px;
  min-height: 608.875px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
}

.stitch-audit-stream-card {
  height: 369px;
  grid-column: span 8;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.stitch-audit-page .stitch-card-head {
  width: 100%;
  height: 37.5px;
  min-height: 37.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: #eff4ff;
  border: 0;
  border-bottom: 1px solid #e6eeff;
}

.stitch-audit-stream-card > .stitch-card-head {
  height: 43.5px;
  min-height: 43.5px;
}

.stitch-audit-page .stitch-card-head > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
}

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

.stitch-audit-page .stitch-card-head strong {
  color: #0f1c2d;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.stitch-audit-page .stitch-card-head small {
  color: #505f74;
  font: 400 10px/14px var(--mono);
}

.stitch-audit-stream-actions {
  flex: 0 0 auto;
}

.stitch-audit-stream-actions > button {
  height: 24px;
  padding: 3px 5px;
  color: #505f74;
  background: transparent;
  border: 0;
  border-radius: 2px;
  font: 600 10px/14px var(--sans);
}

.stitch-audit-stream-card #audit-table {
  height: 325.5px;
  display: grid;
  grid-template-rows: 264px 37px 24.5px;
}

.stitch-audit-table-scroll {
  width: 100%;
  height: 264px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.stitch-audit-table-scroll::-webkit-scrollbar {
  display: none;
}

.stitch-audit-table {
  width: 100%;
  min-width: 897.03px;
  height: 264px;
  table-layout: fixed;
  border-collapse: collapse;
  color: #0f1c2d;
}

.stitch-audit-table th,
.stitch-audit-table td {
  padding: 4px;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid rgba(230, 238, 255, .6);
  color: #505f74;
  font-size: 12px;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-audit-table th {
  height: 30.5px;
  padding: 8px 4px;
  color: #505f74;
  background: #eff4ff;
  font-size: 11px;
  font-weight: 700;
  line-height: 14px;
  letter-spacing: .04em;
  text-align: left;
}

.stitch-audit-table td {
  height: auto;
}

.stitch-audit-table tbody:has(> tr:nth-child(6):last-child) > tr:nth-child(1) { height: 36px; }
.stitch-audit-table tbody:has(> tr:nth-child(6):last-child) > tr:nth-child(2),
.stitch-audit-table tbody:has(> tr:nth-child(6):last-child) > tr:nth-child(3),
.stitch-audit-table tbody:has(> tr:nth-child(6):last-child) > tr:nth-child(4) { height: 42px; }
.stitch-audit-table tbody:has(> tr:nth-child(6):last-child) > tr:nth-child(5) { height: 36px; }
.stitch-audit-table tbody:has(> tr:nth-child(6):last-child) > tr:nth-child(6) { height: 35.5px; }
.stitch-audit-table tbody:has(> tr:nth-child(6):last-child) td { padding-block: 2px; }

.stitch-audit-table th:nth-child(1) { width: 11.3%; }
.stitch-audit-table th:nth-child(2) { width: 12.9%; }
.stitch-audit-table th:nth-child(3) { width: 7.2%; }
.stitch-audit-table th:nth-child(4) { width: 9.6%; }
.stitch-audit-table th:nth-child(5) { width: 9.5%; }
.stitch-audit-table th:nth-child(6) { width: 31.2%; }
.stitch-audit-table th:nth-child(7) { width: 7.8%; }
.stitch-audit-table th:nth-child(8) { width: 10.5%; }

.stitch-audit-table td:first-child,
.stitch-audit-table td:last-child,
.stitch-audit-table time,
.stitch-audit-table code {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

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

.stitch-audit-table td strong {
  color: #0f1c2d;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.stitch-audit-table td small {
  color: #505f74;
  font-size: 10px;
  line-height: 12px;
}

.stitch-audit-table tr[data-stitch-audit-select] {
  cursor: pointer;
}

.stitch-audit-table tr[data-stitch-audit-select]:hover td,
.stitch-audit-table .stitch-audit-row-selected td {
  background: rgba(220, 233, 255, .4);
}

.stitch-audit-row-select-button {
  width: 100%;
  min-height: 16px;
  display: block;
  padding: 0;
  overflow: hidden;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  line-height: inherit;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-audit-table .stitch-audit-row-selected td:first-child {
  box-shadow: inset 3px 0 #00479f;
}

.stitch-audit-table .stitch-audit-row-danger td {
  color: #ba1a1a;
  background: rgba(255, 218, 214, .1);
}

.stitch-audit-table .stitch-audit-row-warning td:first-child {
  color: #a54600;
}

.stitch-audit-trace-button,
.stitch-audit-trace-missing {
  width: 100%;
  min-height: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  color: #00479f;
  background: transparent;
  border: 0;
  text-align: right;
}

.stitch-audit-trace-button:hover code {
  text-decoration: underline;
}

.stitch-audit-pagination {
  width: 100%;
  height: 37px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  overflow: hidden;
  color: #505f74;
  background: #eff4ff;
  border-top: 1px solid #e6eeff;
  font: 400 11px/14px var(--mono);
}

.stitch-audit-pagination > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  white-space: nowrap;
}

.stitch-audit-pagination label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
}

.stitch-audit-pagination input {
  width: 13px;
  height: 13px;
  margin: 0;
  accent-color: #00479f;
}

.stitch-audit-pagination .button {
  min-height: 20px;
  height: 20px;
  padding: 2px 8px;
  color: #505f74;
  background: #e6eeff;
  border: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
}

.stitch-audit-readonly {
  width: 100%;
  height: 24.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 12px;
  overflow: hidden;
  color: #505f74;
  background: #e6eeff;
  font: 400 11px/16.5px var(--mono);
  white-space: nowrap;
}

.stitch-audit-readonly span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.stitch-audit-evidence-column {
  height: 608.875px;
  grid-column: span 4;
  display: grid;
  grid-template-rows: 54px 550.875px;
  gap: 4px;
}

.stitch-audit-security {
  width: 100%;
  height: 54px;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  padding: 8px;
  overflow: hidden;
  color: #0f1c2d;
  background: rgba(220, 233, 255, .6);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.stitch-audit-security > span {
  flex: 0 0 auto;
  color: #00479f;
  font-size: 18px;
  line-height: 20px;
}

.stitch-audit-security strong,
.stitch-audit-security p {
  display: block;
  margin: 0;
}

.stitch-audit-security strong {
  color: #0f1c2d;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.stitch-audit-security p {
  color: #505f74;
  font-size: 12px;
  line-height: 16px;
}

.stitch-evidence-card {
  height: 550.875px;
  display: grid;
  grid-template-rows: 37.5px minmax(0, 1fr) 32px;
  overflow: hidden;
}

.stitch-evidence-card > .stitch-card-head code {
  max-width: 48%;
  padding: 2px 6px;
  overflow: hidden;
  color: #00479f;
  background: rgba(0, 71, 159, .1);
  border-radius: 2px;
  font: 600 11px/14px var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-evidence-body {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
  padding: 12px;
  scrollbar-width: thin;
}

.stitch-evidence-section {
  margin: 0;
  border: 0;
}

.stitch-evidence-section > header {
  min-height: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 0;
  color: #505f74;
  background: transparent;
  border: 0;
  font-size: 11px;
  line-height: 14px;
}

.stitch-evidence-section > header strong {
  color: #505f74;
  font-weight: 600;
}

.stitch-evidence-section > header span {
  max-width: 55%;
  overflow: hidden;
  color: #505f74;
  font: 400 10px/14px var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-evidence-timeline {
  display: grid;
  gap: 0;
  margin: 4px 0 0 8px;
  padding: 4px 0 4px 12px;
  border-left: 2px solid rgba(0, 71, 159, .4);
  list-style: none;
}

.stitch-evidence-timeline li {
  position: relative;
  min-height: 39px;
  display: grid;
  grid-template-columns: 90px minmax(72px, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 5px;
  color: #505f74;
  font-size: 11px;
  line-height: 14px;
}

.stitch-evidence-timeline li::before {
  content: "";
  position: absolute;
  left: -18px;
  width: 9px;
  height: 9px;
  background: #00479f;
  border: 2px solid #f8f9ff;
  border-radius: 50%;
}

.stitch-evidence-timeline time {
  color: #0f1c2d;
  font-family: var(--mono);
}

.stitch-evidence-timeline strong,
.stitch-evidence-timeline span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-evidence-diff {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
  padding: 10px;
  background: #e6eeff;
  border: 1px solid #d6e3fb;
}

.stitch-evidence-diff > div {
  min-height: 31px;
  display: grid;
  grid-template-columns: minmax(80px, 1.2fr) minmax(0, 1fr) 10px minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  padding: 5px 6px;
  background: #fff;
  border: 1px solid rgba(194, 198, 213, .4);
  font: 400 10px/14px var(--mono);
}

.stitch-evidence-diff code,
.stitch-evidence-diff span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-evidence-diff code { color: #0f1c2d; }
.stitch-evidence-diff span { color: #ba1a1a; }
.stitch-evidence-diff span:last-child { color: #00479f; font-weight: 600; }

.stitch-order-chain {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin-top: 4px;
  padding: 0;
}

.stitch-order-chain span {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px;
  overflow: hidden;
  color: #0f1c2d;
  background: #eff4ff;
  border-left: 2px solid #00479f;
  font: 400 10px/13px var(--mono);
  text-align: center;
  text-overflow: ellipsis;
}

.stitch-order-chain i {
  flex: 0 0 auto;
  color: #00479f;
  font-style: normal;
  font-weight: 600;
}

.stitch-order-status-groups {
  display: grid;
  gap: 5px;
}

.stitch-order-status-group > small {
  display: block;
  margin-bottom: 2px;
  overflow: hidden;
  color: #505f74;
  font: 400 9px/12px var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-evidence-meta {
  padding: 8px;
  background: #eff4ff;
}

.stitch-evidence-meta > header {
  margin-bottom: 3px;
}

.stitch-evidence-meta > div {
  min-height: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 0;
  border: 0;
  font: 400 10px/14px var(--mono);
}

.stitch-evidence-meta > div span { color: #505f74; }
.stitch-evidence-meta > div strong {
  max-width: 70%;
  overflow: hidden;
  color: #505f74;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-evidence-body .stitch-unreported {
  min-height: 48px;
  margin-top: 4px;
  padding: 6px;
  background: #eff4ff;
}

.stitch-evidence-footer {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: #eff4ff;
  border-top: 1px solid #e6eeff;
}

.stitch-evidence-footer button {
  min-height: 16px;
  padding: 0;
  color: #00479f;
  background: transparent;
  border: 0;
  font-size: 11px;
  font-weight: 600;
  line-height: 14px;
  letter-spacing: .04em;
}

.stitch-evidence-footer button:last-child { color: #505f74; }
.stitch-evidence-footer button:disabled { opacity: .45; cursor: not-allowed; }

.stitch-audit-page button:focus-visible,
.stitch-audit-page input:focus-visible,
.stitch-audit-page select:focus-visible {
  outline: 2px solid #00479f;
  outline-offset: 1px;
}

.stitch-audit-table-fullscreen::before,
.stitch-audit-evidence-fullscreen::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 89;
  background: rgba(15, 28, 45, .42);
}

.stitch-audit-table-fullscreen .stitch-audit-stream-card {
  position: fixed;
  inset: 16px;
  z-index: 90;
  width: auto;
  height: auto;
  display: grid;
  grid-template-rows: 43.5px minmax(0, 1fr);
  box-shadow: 0 10px 40px rgba(15, 28, 45, .28);
}

.stitch-audit-table-fullscreen .stitch-audit-stream-card #audit-table {
  height: auto;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) 37px 24.5px;
}

.stitch-audit-table-fullscreen .stitch-audit-table-scroll {
  height: auto;
  min-height: 0;
  overflow: auto;
}

.stitch-audit-table-fullscreen .stitch-audit-table {
  min-width: 1100px;
  height: auto;
}

.stitch-audit-evidence-fullscreen .stitch-evidence-card {
  position: fixed;
  inset: 16px;
  z-index: 90;
  width: auto;
  height: auto;
  grid-template-rows: 37.5px minmax(0, 1fr) 32px;
  box-shadow: 0 10px 40px rgba(15, 28, 45, .28);
}

@media (max-width: 1581px) {
  .stitch-audit-main-grid {
    height: 624.875px;
    min-height: 624.875px;
  }

  .stitch-audit-evidence-column {
    height: 624.875px;
    grid-template-rows: 70px 550.875px;
  }

  .stitch-audit-security { height: 70px; }
}

@media (max-width: 1280px) {
  .stitch-audit-main-grid {
    height: 639.875px;
    min-height: 639.875px;
  }

  .stitch-audit-evidence-column {
    height: 639.875px;
    grid-template-rows: 70px 565.875px;
  }

  .stitch-evidence-card { height: 565.875px; }
}

@media (max-width: 1279px) {
  .stitch-audit-main-grid {
    height: 657.75px;
    min-height: 657.75px;
  }

  .stitch-audit-evidence-column {
    height: 657.75px;
    grid-template-rows: 70px 583.75px;
  }

  .stitch-evidence-card { height: 583.75px; }
}

/* qmt_10 · 策略与参数 */
.stitch-strategy-page {
  padding-bottom: 16px;
}

.stitch-strategy-sync-head {
  height: 148.5px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: minmax(86px, 1fr) 30px;
  gap: 6px 10px;
  padding: 10px;
}

.stitch-sync-flow {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr) 18px minmax(0, 1fr);
  align-items: center;
  gap: 4px;
}

.stitch-sync-flow > b {
  color: #8d9aae;
  text-align: center;
}

.stitch-sync-node {
  min-height: 70px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 7px;
  overflow: hidden;
  background: #f5f8fc;
  border: 1px solid #dde4ee;
}

.stitch-sync-node-draft {
  background: #eef5ff;
  border-color: #c8d8ed;
}

.stitch-sync-node > span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #2b63a7;
  border-radius: 50%;
  font: 700 9px var(--mono);
}

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

.stitch-sync-node small {
  color: #718096;
  font-size: 7px;
}

.stitch-sync-node strong {
  margin: 4px 0;
  color: #25364d;
  font: 700 9px var(--mono);
}

.stitch-sync-node em {
  color: #8a95a4;
  font-size: 7px;
  font-style: normal;
}

.stitch-strategy-head-actions {
  max-width: 390px;
  display: flex;
  align-content: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 5px;
}

.stitch-strategy-head-actions .button {
  min-height: 27px;
  padding: 4px 7px;
  font-size: 8px;
}

.stitch-strategy-integrity {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 7px;
  overflow: hidden;
  color: #657389;
  background: #f2f5fa;
  border: 1px solid #e0e5ed;
  font-size: 7px;
  white-space: nowrap;
}

.stitch-strategy-integrity span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.stitch-integrity-ok {
  color: #176c49;
  font-weight: 750;
}

.stitch-integrity-warn {
  color: #a34419;
  font-weight: 750;
}

.stitch-strategy-warning {
  margin-top: 8px;
  padding: 7px 9px;
  color: #8b450f;
  background: #fff0e7;
  border: 1px solid #edc7a9;
  font-size: 8px;
}

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

.stitch-config-nav-panel {
  position: sticky;
  top: 68px;
  grid-column: span 2;
}

.stitch-config-nav-panel > header {
  min-height: 39px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 7px;
  color: #2d3e55;
  background: #e9f0fb;
  border-bottom: 1px solid #d9e2ef;
  font-size: 9px;
}

.stitch-config-nav-panel > header span {
  color: #69768a;
  font: 7px var(--mono);
}

.stitch-config-nav-tools {
  display: grid;
  gap: 5px;
  padding: 6px;
  border-bottom: 1px solid #e2e7ef;
}

.stitch-config-nav-tools input[type="text"],
.stitch-config-nav-tools > input {
  width: 100%;
  height: 26px;
  padding: 3px 6px;
  border: 1px solid #ccd5e2;
  font-size: 8px;
}

.stitch-config-nav-tools label {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #657287;
  font-size: 7px;
}

.stitch-config-nav-tools label input {
  width: 13px;
  height: 13px;
}

.stitch-config-nav-list {
  display: grid;
  gap: 1px;
  padding: 4px;
}

.stitch-config-nav-list button {
  width: 100%;
  min-height: 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 4px 5px;
  overflow: hidden;
  color: #4f5e72;
  background: transparent;
  border: 0;
  font-size: 7px;
  text-align: left;
}

.stitch-config-nav-list button:hover,
.stitch-config-nav-list button.active {
  color: #0753a8;
  background: #eaf2ff;
}

.stitch-config-nav-list button > span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-config-nav-list i {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #4775ad;
  border-radius: 50%;
  font: normal 700 7px var(--mono);
}

.stitch-config-nav-list small {
  color: #7d899a;
  font: 7px var(--mono);
}

.stitch-config-mode-note {
  padding: 7px;
  color: #6c798c;
  background: #f5f7fa;
  border-top: 1px solid #e1e6ee;
  font-size: 7px;
  line-height: 1.45;
}

.stitch-config-mode-note strong {
  color: #3a4b62;
  font-size: 8px;
}

.stitch-config-mode-note p {
  margin: 4px 0 0;
}

.stitch-config-editor {
  grid-column: span 7;
  display: block;
  padding: 0 !important;
  overflow: visible !important;
}

.stitch-config-section {
  margin: 0 0 8px !important;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dbe2ed;
  border-radius: 3px;
  scroll-margin-top: 68px;
}

.stitch-config-details > summary {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  color: #2c3d54;
  background: #edf3fc;
  border-bottom: 1px solid #dbe4f0;
  cursor: pointer;
  list-style: none;
}

.stitch-config-details > summary::-webkit-details-marker {
  display: none;
}

.stitch-config-details > summary > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.stitch-config-details > summary strong,
.stitch-config-details > summary small {
  display: block;
}

.stitch-config-details > summary strong {
  font-size: 10px;
}

.stitch-config-details > summary small {
  margin-top: 3px;
  color: #758298;
  font-size: 7px;
}

.stitch-config-index {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #2662a8;
  border-radius: 50%;
  font: 700 9px var(--mono);
}

.stitch-config-chevron {
  color: #64758b;
  font-size: 16px;
  transition: transform .15s ease;
}

.stitch-config-details[open] .stitch-config-chevron {
  transform: rotate(180deg);
}

.stitch-config-details:not([open]) > summary {
  min-height: 69px;
}

.stitch-config-section-body {
  padding: 7px;
}

.stitch-config-rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.stitch-config-rows-fees_market,
.stitch-config-rows-quality {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stitch-config-row {
  min-height: 60px;
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(90px, .85fr) !important;
  align-items: center !important;
  align-content: center;
  gap: 6px !important;
  padding: 5px !important;
  overflow: hidden;
  background: #fbfcfe;
  border: 1px solid #e3e8ef !important;
}

.stitch-strategy-page .stitch-config-row.hidden,
.stitch-strategy-page .stitch-config-section.hidden {
  display: none !important;
}

.stitch-config-row:last-child {
  border-bottom: 1px solid #e3e8ef !important;
}

.stitch-config-row:has(.stitch-config-array) {
  grid-column: auto;
}

.stitch-config-row.changed {
  background: #fff5e9 !important;
  border-color: #e3bd91 !important;
  box-shadow: inset 3px 0 #cf721d !important;
}

.stitch-config-rows-entry .stitch-config-row,
.stitch-config-rows-entry_finance .stitch-config-row {
  min-height: 78px;
}

.stitch-config-copy strong,
.stitch-config-copy small,
.stitch-config-copy code {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stitch-config-copy strong {
  color: #293a50;
  font-size: 8px !important;
  white-space: nowrap;
}

.stitch-config-copy small {
  max-height: 19px;
  margin-top: 2px;
  color: #778498 !important;
  font-size: 7px !important;
  line-height: 1.4;
}

.stitch-config-copy code {
  margin-top: 3px;
  color: #58739a !important;
  font-size: 6px !important;
  white-space: nowrap;
}

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

.stitch-config-control input,
.stitch-config-control select,
.stitch-config-control textarea {
  width: 100%;
  min-height: 27px;
  padding: 4px 6px;
  overflow: hidden;
  color: #24364e;
  background: #fff;
  border: 1px solid #cbd4e1;
  border-radius: 1px;
  font: 8px var(--mono);
  text-overflow: ellipsis;
}

.stitch-config-control textarea {
  min-height: 42px;
  resize: vertical;
  white-space: pre-wrap;
}

.stitch-config-control input:disabled,
.stitch-config-control select:disabled,
.stitch-config-control textarea:disabled {
  color: #778396;
  background: #f0f2f5;
}

.stitch-config-control > span {
  display: none;
}

.stitch-config-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 7px;
}

.stitch-config-preview-grid > div,
.stitch-addon-preview {
  overflow: hidden;
  background: #f8fafe;
  border: 1px solid #dfe5ee;
}

.stitch-config-preview-grid > div > strong,
.stitch-addon-preview > div {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 7px;
  color: #35475e;
  background: #eef3fa;
  border-bottom: 1px solid #dfe5ee;
  font-size: 8px;
}

.stitch-config-preview-grid table,
.stitch-addon-preview table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
}

.stitch-config-preview-grid th,
.stitch-config-preview-grid td,
.stitch-addon-preview th,
.stitch-addon-preview td {
  height: 24px;
  padding: 3px 5px;
  border-bottom: 1px solid #e6eaf0;
  color: #526176;
  font-size: 7px;
  text-align: left;
}

.stitch-config-preview-grid th,
.stitch-addon-preview th {
  color: #718095;
  background: #fafbfd;
}

.stitch-addon-preview {
  margin-bottom: 7px;
}

.stitch-addon-preview > div span {
  color: #778498;
  font-size: 7px;
}

.stitch-addon-preview > div {
  min-height: 24px;
}

.stitch-addon-preview th,
.stitch-addon-preview td {
  height: 18px;
  padding-top: 2px;
  padding-bottom: 2px;
}

.stitch-preview-values {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px;
}

.stitch-preview-values span {
  min-width: 58px;
  display: grid;
  gap: 2px;
  padding: 4px;
  color: #35485f;
  background: #fff;
  border: 1px solid #dce3ed;
  font-size: 7px;
}

.stitch-preview-values small {
  color: #7b8798;
  font-size: 6px;
}

.stitch-strategy-side {
  position: sticky;
  top: 68px;
  grid-column: span 3;
  display: grid;
  gap: 8px;
}

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

.stitch-legend-item {
  min-height: 23px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 5px;
  overflow: hidden;
  color: #8994a3;
  background: #f7f8fa;
  border: 1px solid #e5e8ed;
  font-size: 6.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-legend-item i {
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  background: #bdc4ce;
  border-radius: 50%;
}

.stitch-legend-active {
  color: #2f516f;
  background: #edf4fd;
  border-color: #c9d9ed;
  font-weight: 750;
}

.stitch-legend-active i {
  background: #2464ad;
}

.stitch-config-diff {
  max-height: 156px;
  overflow: auto;
  padding: 7px;
  border-top: 1px solid #e0e5ed;
}

.stitch-config-diff .diff-item {
  padding: 5px;
  background: #fbfcfe;
  border-bottom: 1px solid #e7eaf0;
}

.stitch-config-diff .diff-item code,
.stitch-config-diff .diff-item span {
  display: block;
  overflow: hidden;
  font-size: 6px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-config-diff .diff-item code {
  margin-bottom: 3px;
  color: #315f9d;
}

.stitch-sync-pipeline {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 7px;
  list-style: none;
}

.stitch-sync-pipeline li {
  min-height: 43px;
  display: grid;
  grid-template-columns: 21px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #e6eaf0;
}

.stitch-sync-pipeline li:last-child {
  border-bottom: 0;
}

.stitch-sync-pipeline li > span {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #4a75a9;
  border-radius: 50%;
  font: 700 7px var(--mono);
}

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

.stitch-sync-pipeline strong {
  color: #35465c;
  font-size: 7.5px;
}

.stitch-sync-pipeline small {
  margin-top: 3px;
  color: #7c8899;
  font-size: 6px;
}

.stitch-sync-pipeline em {
  max-width: 75px;
  overflow: hidden;
  color: #6f7d90;
  font-size: 6px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-tone-success { color: #13724a !important; }
.stitch-tone-warning { color: #9a4c10 !important; }
.stitch-tone-danger { color: #a7242c !important; }

.stitch-sync-discipline {
  margin: 0 7px 7px;
  padding: 6px;
  color: #8a450e;
  background: #fff0e5;
  border: 1px solid #efc7a8;
  font-size: 6.5px;
  line-height: 1.45;
}

.stitch-version-history > div:last-child {
  max-height: 342px;
  overflow: auto;
  padding: 5px 7px;
}

.stitch-version-card {
  padding: 6px 0;
  border-bottom: 1px solid #e3e7ee;
}

.stitch-version-card:last-child {
  border-bottom: 0;
}

.stitch-version-card > div:first-child,
.stitch-version-card > div:last-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}

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

.stitch-version-card strong {
  color: #33445b;
  font-size: 7.5px;
}

.stitch-version-card code {
  margin: 4px 0 2px;
  color: #2c629f;
  font-size: 6px;
}

.stitch-version-card small {
  color: #7b8798;
  font-size: 6px;
}

.stitch-version-card > div:last-child {
  justify-content: flex-start;
  margin-top: 5px;
}

.stitch-version-card .button {
  min-height: 21px;
  font-size: 6px;
}

.stitch-version-current {
  background: #f0f6ff;
}

.stitch-config-standard {
  padding: 8px;
}

.stitch-config-standard > strong {
  color: #304259;
  font-size: 8px;
}

.stitch-config-standard dl {
  display: grid;
  gap: 0;
  margin: 5px 0 0;
}

.stitch-config-standard dl > div {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  border-bottom: 1px solid #e6e9ef;
  font-size: 6.5px;
}

.stitch-config-standard dt {
  color: #7b8799;
}

.stitch-config-standard dd {
  margin: 0;
  overflow: hidden;
  color: #3e526c;
  font-family: var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1279px) {
  .stitch-config-nav-panel {
    grid-column: span 2;
  }

  .stitch-config-editor {
    grid-column: span 10;
  }

  .stitch-strategy-side {
    position: static;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .stitch-quality-context,
  .stitch-audit-header,
  .stitch-strategy-integrity {
    height: auto;
    min-height: 28px;
    flex-wrap: wrap;
    white-space: normal;
  }

  .stitch-quality-browser-card,
  .stitch-quality-decoupling,
  .stitch-quality-left-stack,
  .stitch-quality-right-stack {
    height: auto;
  }

  .stitch-quality-left-stack,
  .stitch-quality-right-stack {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
  }

  .stitch-quality-node-grid,
  .stitch-fault-grid,
  .stitch-browser-telemetry {
    height: auto;
    grid-template-columns: minmax(0, 1fr);
  }

  .stitch-audit-filters {
    height: auto;
  }

  .stitch-audit-filter-grid {
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .stitch-audit-filter-grid label {
    height: 38px !important;
    grid-column: auto;
  }

  .stitch-audit-filter-foot,
  .stitch-audit-tags,
  .stitch-audit-filter-stats {
    height: auto;
    flex-wrap: wrap;
    white-space: normal;
  }

  .stitch-audit-main-grid {
    height: auto;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .stitch-audit-stream-card,
  .stitch-audit-evidence-column {
    width: 100%;
    grid-column: 1 / -1;
  }

  .stitch-audit-evidence-column {
    height: auto;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
  }

  .stitch-audit-security {
    height: auto;
    min-height: 70px;
  }

  .stitch-evidence-card {
    height: auto;
    min-height: 565.875px;
  }

  .stitch-strategy-sync-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .stitch-strategy-integrity {
    grid-column: auto;
  }

  .stitch-config-nav-panel,
  .stitch-config-editor,
  .stitch-strategy-side {
    position: static;
    grid-column: 1 / -1;
  }

  .stitch-strategy-side,
  .stitch-config-preview-grid,
  .stitch-config-rows {
    grid-template-columns: minmax(0, 1fr);
  }

  .stitch-config-row:has(.stitch-config-array) {
    grid-column: auto;
  }
}

/* qmt_10 parity pass: route-scoped so pages 1-9 keep their accepted geometry. */
.stitch-strategy-page {
  display: flex;
  flex-direction: column;
  color: #17263b;
  font-size: 13px;
}

.stitch-strategy-page .stitch-card-head {
  min-height: 46px;
  padding: 8px 10px;
}

.stitch-strategy-page .stitch-card-head strong {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
}

.stitch-strategy-page .stitch-card-head small {
  font-size: 10px;
}

.stitch-strategy-page .material-symbols-outlined {
  width: 1em;
  height: 1em;
  display: inline-block;
  flex: 0 0 auto;
  overflow: hidden;
  font-family: "Material Symbols QMT9";
  font-style: normal;
  font-weight: 400;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 20;
  font-size: 17px;
  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-strategy-sync-head {
  height: 148.5px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 72px 28px 30px;
  gap: 4px;
  padding: 7px 10px;
  overflow: visible !important;
}

.stitch-sync-flow {
  grid-column: 1;
  grid-row: 1;
  grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr) 18px minmax(0, 1fr);
  gap: 5px;
}

.stitch-sync-node {
  min-height: 62px;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  padding: 7px 9px;
  border-radius: 2px;
}

.stitch-sync-node > .material-symbols-outlined {
  color: #1d5fa9;
  font-size: 18px;
}

.stitch-sync-node small { font-size: 10px; text-transform: uppercase; }
.stitch-sync-node strong { margin: 3px 0; font-size: 11px; }
.stitch-sync-node em { font-size: 10px; }

.stitch-strategy-head-actions {
  max-width: none;
  grid-column: 1;
  grid-row: 2;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 7px;
}

.stitch-strategy-head-actions .button {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  font-size: 10px;
  white-space: nowrap;
}

.stitch-strategy-head-actions .badge {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  font-size: 10px;
}

.stitch-strategy-integrity {
  min-height: 30px;
  grid-column: 1;
  grid-row: 3;
  gap: 9px;
  padding: 4px 9px;
  overflow: hidden;
  font-size: 11px;
}

.stitch-strategy-integrity .material-symbols-outlined {
  color: #145fae;
  font-size: 16px;
}

.stitch-draft-offer {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding: 9px 11px;
  color: #264c75;
  background: #edf5ff;
  border: 1px solid #bfd4ed;
  border-radius: 3px;
}

.stitch-draft-offer > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stitch-draft-offer span strong,
.stitch-draft-offer span small { display: block; }
.stitch-draft-offer span strong { font-size: 12px; }
.stitch-draft-offer span small { margin-top: 3px; color: #60738b; font-size: 10px; }
.stitch-draft-offer .button { font-size: 10px; white-space: nowrap; }
.stitch-draft-stale { color: #843f12; background: #fff2e8; border-color: #e7bd9c; }

.stitch-strategy-warning { font-size: 11px; }

.stitch-strategy-grid {
  gap: 8px;
}

.stitch-config-nav-panel > header {
  min-height: 43px;
  padding: 7px 9px;
  font-size: 11px;
}

.stitch-config-nav-panel > header span { font-size: 10px; }

.stitch-config-nav-tools {
  gap: 7px;
  padding: 8px;
}

.stitch-config-nav-tools .stitch-config-search {
  position: relative;
  display: block;
}

.stitch-config-search .material-symbols-outlined {
  position: absolute;
  z-index: 1;
  left: 7px;
  top: 7px;
  color: #77869a;
  font-size: 15px;
}

.stitch-config-nav-tools input[type="text"],
.stitch-config-nav-tools > input {
  height: 30px;
  padding: 4px 7px 4px 27px;
  font-size: 11px;
}

.stitch-config-nav-tools label { font-size: 11px; }

.stitch-config-nav-list {
  gap: 2px;
  padding: 5px;
}

.stitch-config-nav-list button {
  min-height: 38px;
  padding: 5px 7px;
  font-size: 11px;
}

.stitch-config-nav-list button > span { gap: 7px; }
.stitch-config-nav-list button > span b { overflow: hidden; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.stitch-config-nav-list button.active > span b { font-weight: 700; }
.stitch-config-nav-list i { display: none; }
.stitch-config-nav-list .material-symbols-outlined { font-size: 17px; }
.stitch-config-nav-list small { flex: 0 0 auto; font-size: 9px; }

.stitch-config-mode-note {
  padding: 9px;
  font-size: 10px;
}

.stitch-config-mode-note strong { font-size: 10px; }

.stitch-config-section {
  margin-bottom: 8px !important;
}

.stitch-config-details > summary {
  min-height: 58px;
  padding: 8px 10px;
  background: #fff;
}

.stitch-config-details > summary strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-config-details > summary small {
  overflow: hidden;
  margin-top: 3px;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-config-index {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  color: #145ca6;
  background: transparent;
  border-radius: 0;
}

.stitch-config-index .material-symbols-outlined { font-size: 21px; }
.stitch-config-details:not([open]) > summary { min-height: 58px; }
.stitch-config-section-body { padding: 9px; }

.stitch-config-rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.stitch-capital-limits { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stitch-entry-basics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stitch-entry-matrices { grid-template-columns: minmax(0, 1.45fr) minmax(0, .55fr); }
.stitch-entry-matrices .stitch-config-row:nth-child(3) { grid-column: 1 / -1; }
.stitch-entry-tail { margin-top: 7px; }
.stitch-addon-editors { grid-template-columns: minmax(0, 1fr); }
.stitch-exit-finance,
.stitch-exit-controls,
.stitch-finance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.stitch-config-subhead {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 0 7px;
  padding: 6px 8px;
  color: #36495f;
  background: #eef3fa;
  border: 1px solid #dae3ef;
}

.stitch-config-subhead strong { font-size: 11px; }
.stitch-config-subhead span { color: #68768b; font: 10px var(--mono); }

.stitch-config-row {
  min-height: 64px;
  grid-template-columns: minmax(0, 1.12fr) minmax(110px, .88fr) !important;
  gap: 6px !important;
  padding: 6px !important;
  overflow: visible;
  border-radius: 2px;
}

.stitch-capital-limits .stitch-config-row,
.stitch-entry-basics .stitch-config-row,
.stitch-finance-grid .stitch-config-row,
.stitch-addon-editors .stitch-config-row {
  min-height: 82px;
  grid-template-columns: minmax(0, 1fr) !important;
  align-content: space-between;
}

.stitch-config-row.invalid {
  background: #fff0ef !important;
  border-color: #d68782 !important;
  box-shadow: inset 3px 0 #b52d35 !important;
}

.stitch-config-copy strong { font-size: 12px !important; }
.stitch-config-copy small {
  max-height: 15px;
  margin-top: 3px;
  font-size: 10px !important;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stitch-config-copy code { margin-top: 4px; font-size: 9px !important; }

.stitch-config-control { gap: 4px; }
.stitch-config-control input,
.stitch-config-control select,
.stitch-config-control textarea {
  min-height: 30px;
  padding: 5px 7px;
  font-size: 13px;
  line-height: 1.35;
}
.stitch-config-control textarea { min-height: 36px; }
.stitch-config-control > span {
  display: none;
  overflow: hidden;
  color: #7b8798;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-raw-editors {
  margin: 8px 0;
  border: 1px solid #d9e2ed;
  border-radius: 2px;
}

.stitch-raw-editors > summary {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  color: #36495f;
  background: #eef3fa;
  cursor: pointer;
  list-style: none;
}

.stitch-raw-editors > summary::-webkit-details-marker { display: none; }
.stitch-raw-editors > summary strong { font-size: 11px; }
.stitch-raw-editors > summary span { flex: 1; color: #68768b; font: 10px var(--mono); }
.stitch-raw-editors > summary b { color: #60738b; font-size: 15px; transition: transform .15s ease; }
.stitch-raw-editors[open] > summary b { transform: rotate(180deg); }
.stitch-raw-editors > .stitch-config-rows { padding: 7px; border-top: 1px solid #d9e2ed; }

.stitch-live-preview { min-width: 0; }
.stitch-config-preview-grid {
  gap: 7px;
  margin: 8px 0;
}
.stitch-config-preview-grid > div > strong,
.stitch-addon-preview > div {
  min-height: 34px;
  padding: 6px 8px;
  font-size: 11px;
}
.stitch-config-preview-grid th,
.stitch-config-preview-grid td,
.stitch-addon-preview th,
.stitch-addon-preview td {
  height: 28px;
  padding: 4px 7px;
  font-size: 10px;
}
.stitch-addon-preview { height: 100%; margin: 0; }
.stitch-addon-preview > div span { font-size: 10px; }
.stitch-addon-preview th,
.stitch-addon-preview td { height: 26px; }

.stitch-addon-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.stitch-preview-values { gap: 5px; padding: 8px; }
.stitch-preview-values span { min-width: 68px; padding: 6px; font-size: 10px; }
.stitch-preview-values small { font-size: 9px; }
.stitch-config-preview-error {
  margin: 8px 0;
  padding: 9px;
  color: #a02a31;
  background: #fff0ef;
  border: 1px solid #e4b3b0;
  font-size: 11px;
}

.stitch-status-legend { gap: 4px; padding: 8px; }
.stitch-legend-item { min-height: 27px; padding: 4px 6px; font-size: 9px; }
.stitch-config-diff { max-height: 190px; padding: 8px; }
.stitch-config-diff .diff-item { padding: 7px; }
.stitch-config-diff .diff-item code,
.stitch-config-diff .diff-item span { font-size: 9px; }

.stitch-sync-pipeline { padding: 8px; }
.stitch-sync-pipeline li { min-height: 48px; grid-template-columns: 23px minmax(0, 1fr) auto; }
.stitch-sync-pipeline li > span { width: 23px; height: 23px; font-size: 9px; }
.stitch-sync-pipeline strong { font-size: 10px; }
.stitch-sync-pipeline small { font-size: 9px; }
.stitch-sync-pipeline em { max-width: 100px; font-size: 9px; }
.stitch-sync-discipline { padding: 8px; font-size: 10px; }

.stitch-version-history > div:last-child { max-height: 380px; padding: 6px 9px; }
.stitch-version-card { padding: 8px 0; }
.stitch-version-card strong { font-size: 10px; }
.stitch-version-card code,
.stitch-version-card small { font-size: 9px; }
.stitch-version-card .button { min-height: 25px; padding: 4px 7px; font-size: 9px; }
.stitch-version-current { margin: 0 -5px; padding-right: 5px; padding-left: 5px; }

.stitch-config-standard { padding: 10px; }
.stitch-config-standard > strong { font-size: 11px; }
.stitch-config-standard dl > div { min-height: 29px; font-size: 9px; }

@media (min-width: 1600px) {
  .stitch-strategy-sync-head {
    height: 92px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 46px 30px;
    gap: 4px 10px;
  }
  .stitch-sync-flow { grid-column: 1; grid-row: 1; }
  .stitch-sync-node { min-height: 42px; }
  .stitch-strategy-head-actions { grid-column: 2; grid-row: 1; }
  .stitch-strategy-integrity { grid-column: 1 / -1; grid-row: 2; }
}

@media (min-width: 901px) and (max-width: 1279px) {
  .stitch-config-nav-panel { grid-column: span 3; }
  .stitch-config-editor { grid-column: span 9; }
  .stitch-strategy-side {
    position: static;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 761px) and (max-width: 1040px) {
  #app-shell.route-strategy { --sidebar-w: 208px; }
}

@media (max-width: 900px) {
  .stitch-strategy-sync-head {
    height: auto;
    min-height: 249px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 7px;
    padding: 9px;
  }
  .stitch-sync-flow,
  .stitch-strategy-head-actions,
  .stitch-strategy-integrity { grid-column: 1; }
  .stitch-sync-flow { grid-row: 1; }
  .stitch-strategy-head-actions { grid-row: 2; justify-content: flex-start; flex-wrap: wrap; }
  .stitch-strategy-integrity { grid-row: 3; min-height: 38px; align-items: flex-start; flex-wrap: wrap; white-space: normal; }
  .stitch-strategy-integrity span { flex: 1 1 180px; overflow: visible; }
  .stitch-draft-offer { align-items: flex-start; flex-direction: column; }
  .stitch-config-nav-panel,
  .stitch-config-editor,
  .stitch-strategy-side { grid-column: 1 / -1; }
  .stitch-strategy-side { grid-template-columns: minmax(0, 1fr); }
  .stitch-config-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stitch-capital-limits { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stitch-entry-basics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stitch-addon-workspace,
  .stitch-config-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stitch-entry-matrices { grid-template-columns: minmax(0, 1.45fr) minmax(0, .55fr); }
  .stitch-config-row:has(.stitch-config-array) { grid-column: auto; }
}

@media (max-width: 680px) {
  .stitch-sync-flow {
    grid-template-columns: minmax(0, 1fr);
  }
  .stitch-sync-flow > b { display: none; }
  .stitch-capital-limits,
  .stitch-entry-basics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stitch-addon-workspace,
  .stitch-config-preview-grid,
  .stitch-entry-matrices { grid-template-columns: minmax(0, 1fr); }
  .stitch-entry-matrices .stitch-config-row:nth-child(3) { grid-column: auto; }
  .stitch-config-details > summary { align-items: flex-start; }
  .stitch-config-details > summary > div:last-child .stitch-status { display: none; }
}

html:has(#app-shell.route-strategy),
body:has(#app-shell.route-strategy) { scrollbar-width: none; }
html:has(#app-shell.route-strategy)::-webkit-scrollbar,
body:has(#app-shell.route-strategy)::-webkit-scrollbar { width: 0; height: 0; }
