.ops-app {
  --ops-bg: #f4f6f8;
  --ops-panel: #ffffff;
  --ops-panel-soft: #eef3f7;
  --ops-line: #d5dde6;
  --ops-text: #15212e;
  --ops-muted: #627182;
  --ops-orange: #f97316;
  --ops-orange-dark: #ea580c;
  --ops-blue: #2563eb;
  --ops-green: #15803d;
  --ops-red: #b42318;
  --ops-amber: #b45309;
  --ops-shadow: 0 20px 48px rgba(15, 23, 42, .16);
  color: var(--ops-text);
  font: 14px/1.45 Inter, Segoe UI, Arial, sans-serif;
}

.ops-app * {
  box-sizing: border-box;
}

.ops-app button,
.ops-app input,
.ops-app select,
.ops-app textarea {
  font: inherit;
}

.ops-shell {
  width: min(1450px, 100%);
  min-height: calc(100vh - 130px);
  margin: 0 auto 48px;
  overflow: hidden;
  background: var(--ops-bg);
  border: 1px solid var(--ops-line);
  border-radius: 8px;
  box-shadow: var(--ops-shadow);
}

.ops-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
  padding: 18px 20px 16px;
  background: linear-gradient(180deg, #ffffff, #edf3f8);
  border-bottom: 1px solid var(--ops-line);
}

.ops-kicker {
  margin: 0 0 3px;
  color: #9a3412;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.ops-header h1 {
  margin: 0;
  color: var(--ops-text);
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: 0;
}

.ops-header p {
  max-width: 920px;
  margin: 6px 0 0;
  color: var(--ops-muted);
}

.ops-site-box {
  min-width: 0;
  padding: 13px;
  background: #fff;
  border: 1px solid var(--ops-line);
  border-radius: 8px;
}

.ops-site-box b,
.ops-info b,
.ops-metric b {
  display: block;
  color: var(--ops-text);
}

.ops-site-box span,
.ops-info span,
.ops-metric span {
  display: block;
  margin-top: 3px;
  color: var(--ops-muted);
  font-size: 12px;
}

.ops-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid var(--ops-line);
}

.ops-actions.compact {
  padding: 12px 0;
  background: transparent;
  border-bottom: 0;
}

.ops-tabs {
  display: flex;
  gap: 1px;
  overflow-x: auto;
  background: var(--ops-line);
  border-bottom: 1px solid var(--ops-line);
}

.ops-tab,
.ops-button {
  min-height: 39px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 9px 12px;
  color: #fff;
  background: var(--ops-orange);
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.ops-tab {
  min-height: 44px;
  color: var(--ops-muted);
  background: #f9fbfd;
  border: 0;
  border-radius: 0;
  padding: 10px 15px;
}

.ops-tab.active {
  color: #fff;
  background: var(--ops-orange);
}

.ops-button:hover,
.ops-tab.active:hover {
  background: var(--ops-orange-dark);
}

.ops-button.blue {
  background: var(--ops-blue);
  border-color: var(--ops-blue);
}

.ops-button.green {
  background: var(--ops-green);
  border-color: var(--ops-green);
}

.ops-button.red {
  background: var(--ops-red);
  border-color: var(--ops-red);
}

.ops-button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.ops-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  background: var(--ops-line);
  border-bottom: 1px solid var(--ops-line);
}

.ops-metric {
  min-width: 0;
  padding: 13px 15px;
  background: #fff;
}

.ops-metric b {
  font-size: 25px;
  line-height: 1;
}

.ops-metric span {
  margin-top: 2px;
  font-weight: 800;
}

#opsStatus {
  background: #fff;
}

.ops-alert {
  margin: 14px 16px 0;
  padding: 13px 15px;
  color: #7c2d12;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-left: 4px solid var(--ops-orange);
  border-radius: 8px;
}

.ops-alert.error {
  color: #8a241e;
  background: #fff0ef;
  border-color: #f1b9b3;
  border-left-color: var(--ops-red);
}

#opsBody {
  padding: 16px;
}

.ops-grid {
  display: grid;
  grid-template-columns: minmax(360px, .92fr) minmax(520px, 1.28fr);
  gap: 16px;
}

.ops-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 14px;
}

.ops-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  gap: 14px;
}

.ops-dashboard-grid {
  grid-template-columns: minmax(360px, .82fr) minmax(620px, 1.18fr);
}

.ops-launch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.ops-launch-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 132px;
  padding: 16px;
  color: var(--ops-text);
  text-align: left;
  background: #fff;
  border: 1px solid var(--ops-line);
  border-radius: 8px;
  cursor: pointer;
}

.ops-launch-card:hover {
  border-color: var(--ops-orange);
  box-shadow: inset 4px 0 0 var(--ops-orange);
}

.ops-launch-card strong {
  font-size: 18px;
}

.ops-launch-card span {
  color: var(--ops-muted);
  line-height: 1.35;
}

.ops-stage-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(170px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.ops-document-flow {
  display: grid;
  gap: 16px;
}

.ops-document-flow .ops-stage-flow {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ops-document-flow .ops-stage {
  min-width: 0;
}

.ops-document-flow .ops-stage p,
.ops-document-flow .ops-admin-scope span {
  overflow-wrap: anywhere;
}

.ops-stage-flow.compact {
  grid-template-columns: repeat(5, minmax(135px, 1fr));
}

.ops-stage {
  min-height: 174px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--ops-line);
  border-radius: 8px;
}

.ops-stage span {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  color: #fff;
  background: var(--ops-orange);
  border-radius: 999px;
  font-weight: 900;
}

.ops-lab-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 18px;
  align-items: start;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--ops-line);
  border-radius: 8px 8px 0 0;
}

.ops-lab-heading h2,
.ops-lab-heading p {
  margin: 0;
}

.ops-lab-heading h2 {
  font-size: 28px;
}

.ops-lab-heading > div > p:last-child {
  margin-top: 6px;
  color: var(--ops-muted);
}

.ops-lab-summary {
  display: grid;
  gap: 4px;
  padding: 13px;
  background: #f8fafc;
  border: 1px solid var(--ops-line);
  border-radius: 8px;
}

.ops-lab-summary span {
  color: var(--ops-muted);
  font-size: 12px;
}

.ops-subtabs {
  display: flex;
  gap: 1px;
  overflow-x: auto;
  margin-bottom: 16px;
  background: var(--ops-line);
  border: 1px solid var(--ops-line);
  border-top: 0;
}

.ops-subtab {
  min-height: 42px;
  padding: 9px 14px;
  color: var(--ops-muted);
  background: #f9fbfd;
  border: 0;
  cursor: pointer;
  font-weight: 900;
  white-space: nowrap;
}

.ops-subtab.active {
  color: #fff;
  background: var(--ops-orange);
}

.ops-lab-grid {
  grid-template-columns: minmax(560px, 1.35fr) minmax(300px, .65fr);
}

.ops-scan-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.ops-lab-stat-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 14px 0 20px;
}

.ops-lab-stat-list > div {
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--ops-line);
  border-radius: 8px;
}

.ops-lab-stat-list b,
.ops-lab-stat-list span {
  display: block;
}

.ops-lab-stat-list b {
  font-size: 24px;
}

.ops-lab-stat-list span,
.ops-lab-steps {
  color: var(--ops-muted);
}

.ops-lab-steps {
  display: grid;
  gap: 8px;
  padding-left: 20px;
}

.ops-panel-heading {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

.ops-lab-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.ops-lab-card {
  padding: 14px;
  background: #f8fafc;
  border: 1px solid var(--ops-line);
  border-left: 4px solid var(--ops-blue);
  border-radius: 8px;
}

.ops-lab-card.overdue {
  border-left-color: var(--ops-red);
}

.ops-lab-card > div:first-child {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.ops-lab-card h3 {
  margin: 12px 0 8px;
}

.ops-lab-card p {
  margin: 5px 0;
  color: var(--ops-muted);
}

.ops-lab-wall {
  min-height: 650px;
  padding: 22px;
  overflow: auto;
  color: #f8fafc;
  background: #07111b;
  border: 1px solid #203449;
  border-radius: 10px;
}

.ops-lab-wall:fullscreen {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  padding: 28px;
  border: 0;
  border-radius: 0;
}

.ops-lab-wall-header {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) auto auto;
  gap: 24px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid #284057;
}

.ops-lab-wall-header p,
.ops-lab-wall-header h2,
.ops-lab-wall-header span { margin: 0; }

.ops-lab-wall-header p {
  color: #ff6a00;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .15em;
}

.ops-lab-wall-header h2 {
  margin: 4px 0;
  color: #fff;
  font-size: clamp(28px, 3vw, 46px);
}

.ops-lab-wall-header > div:first-child > span { color: #a9bdd0; }

.ops-lab-wall-clock {
  display: grid;
  min-width: 210px;
  text-align: right;
}

.ops-lab-wall-clock strong {
  color: #fff;
  font-size: clamp(26px, 2.5vw, 40px);
  font-variant-numeric: tabular-nums;
}

.ops-lab-wall-clock span { color: #a9bdd0; }

.ops-lab-wall-metrics {
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 16px 0;
}

.ops-lab-wall-metrics > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: baseline;
  min-width: 130px;
  padding: 10px 14px;
  background: #102131;
  border: 1px solid #284057;
  border-radius: 8px;
}

.ops-lab-wall-metrics b { color: #4ea5ff; font-size: 28px; }
.ops-lab-wall-metrics span { color: #d8e5ef; font-weight: 800; }
.ops-lab-wall-metrics small { margin-left: auto; align-self: center; color: #8fa8bb; }

.ops-lab-wall-columns {
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: 12px;
  min-width: 1160px;
}

.ops-lab-wall-column {
  min-height: 430px;
  overflow: hidden;
  background: #0d1b28;
  border: 1px solid #284057;
  border-radius: 9px;
}

.ops-lab-wall-column > h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding: 13px 14px;
  color: #fff;
  background: #172b3d;
  border-bottom: 3px solid #4ea5ff;
}

.ops-lab-wall-column[data-stage="Ready to Collect"] > h3 { border-bottom-color: #32d583; }
.ops-lab-wall-column > h3 b { color: #fff; font-size: 22px; }
.ops-lab-wall-column > div { display: grid; gap: 10px; padding: 10px; }

.ops-lab-wall-card {
  display: grid;
  gap: 7px;
  min-height: 148px;
  padding: 13px;
  background: #152638;
  border: 1px solid #35516a;
  border-left: 5px solid #4ea5ff;
  border-radius: 7px;
}

.ops-lab-wall-card.ready { border-left-color: #32d583; background: #0f3028; }
.ops-lab-wall-card.overdue { border-left-color: #ff4d4f; background: #35191e; }

.ops-lab-wall-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ops-lab-wall-card-top b { color: #fdba74; }
.ops-lab-wall-card-top span { color: #bfdbfe; font-size: 12px; font-weight: 800; }
.ops-lab-wall-card strong { color: #fff; font-size: 20px; line-height: 1.2; }
.ops-lab-wall-card small { color: #b7cad8; }
.ops-lab-wall-card time { margin-top: auto; color: #fff; font-size: 13px; font-weight: 900; }
.ops-lab-wall-card.overdue time { color: #ff9b9b; }

.ops-lab-wall-empty {
  margin: 0;
  padding: 24px 12px;
  color: #7893a8;
  text-align: center;
  border: 1px dashed #35516a;
  border-radius: 7px;
}

.ops-lab-wall > footer { margin-top: 16px; padding: 12px 14px; color: #ffd1d1; background: #35191e; border-radius: 7px; }

.ops-scanner[hidden] {
  display: none;
}

.ops-scanner {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, .78);
}

.ops-scanner-dialog {
  width: min(620px, 100%);
  padding: 16px;
  color: var(--ops-text);
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--ops-shadow);
}

.ops-scanner-dialog > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ops-scanner-dialog h3,
.ops-scanner-dialog p {
  margin: 0;
}

.ops-scanner-dialog video {
  display: block;
  width: 100%;
  max-height: 55vh;
  margin: 14px 0;
  background: #111827;
  border-radius: 8px;
}

@media (max-width: 1100px) {
  .ops-lab-grid,
  .ops-lab-heading {
    grid-template-columns: 1fr;
  }

  .ops-lab-board,
  .ops-lab-wall-columns {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }

  .ops-lab-wall-columns { min-width: 0; }
  .ops-lab-wall-header { grid-template-columns: 1fr auto; }
  .ops-lab-wall-header .ops-actions { grid-column: 1 / -1; }
  .ops-lab-wall-metrics { flex-wrap: wrap; }
  .ops-lab-wall-metrics small { width: 100%; margin-left: 0; }
}

@media (max-width: 680px) {
  .ops-lab-board,
  .ops-lab-wall-columns,
  .ops-lab-stat-list {
    grid-template-columns: 1fr;
  }

  .ops-lab-wall { min-height: 0; padding: 14px; }
  .ops-lab-wall-header { grid-template-columns: 1fr; }
  .ops-lab-wall-header .ops-actions { grid-column: auto; }
  .ops-lab-wall-clock { text-align: left; }
  .ops-lab-wall-metrics > div { flex: 1 1 45%; min-width: 120px; }
}

.ops-stage strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ops-text);
  font-size: 17px;
}

.ops-stage p {
  margin: 0;
  color: var(--ops-muted);
  line-height: 1.38;
}

.ops-stage-flow.compact .ops-stage {
  min-height: 156px;
}

.ops-card,
.ops-panel {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--ops-line);
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(20, 42, 70, .06);
}

.ops-card h2,
.ops-panel h2 {
  margin: 0 0 5px;
  color: var(--ops-text);
  font-size: 21px;
  letter-spacing: 0;
}

.ops-card p,
.ops-panel p {
  margin: 4px 0 0;
  color: var(--ops-muted);
}

.ops-checkbook-intro {
  margin-bottom: 16px;
}

.ops-embedded-checkbook {
  min-width: 0;
}

.ops-embedded-checkbook .cb-app {
  margin: 0;
  max-width: none;
}

.ops-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.ops-row {
  width: 100%;
  min-height: 70px;
  padding: 11px;
  color: var(--ops-text);
  text-align: left;
  background: #fff;
  border: 1px solid var(--ops-line);
  border-radius: 8px;
  cursor: pointer;
}

.ops-row.active,
.ops-row:hover {
  border-color: var(--ops-orange);
  background: #fff7ed;
  box-shadow: inset 4px 0 0 var(--ops-orange);
}

.ops-row-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.ops-row strong {
  display: block;
  color: var(--ops-text);
}

.ops-row small {
  display: block;
  margin-top: 5px;
  color: var(--ops-muted);
}

.ops-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  color: #43566b;
  background: #eef2f7;
  border: 1px solid #d9e2ec;
  font-size: 12px;
  font-weight: 900;
}

.ops-pill.green {
  color: #17633b;
  background: #eaf8ef;
  border-color: #a9d7b9;
}

.ops-pill.blue {
  color: #1d4ed8;
  background: #e8f1ff;
  border-color: #bfd3ff;
}

.ops-pill.orange {
  color: #9a3412;
  background: #fff7ed;
  border-color: #fed7aa;
}

.ops-pill.red {
  color: #8a241e;
  background: #fff0ef;
  border-color: #e3aaa4;
}

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

.ops-field {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--ops-text);
  font-size: 12px;
  font-weight: 900;
}

.ops-field.full {
  grid-column: 1 / -1;
}

.ops-field > input,
.ops-field > select,
.ops-field > textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 11px;
  color: var(--ops-text);
  background: #fff;
  border: 1px solid var(--ops-line);
  border-radius: 6px;
  outline: 0;
}

.ops-field > textarea {
  min-height: 112px;
  resize: vertical;
}

.ops-field > input:focus,
.ops-field > select:focus,
.ops-field > textarea:focus {
  border-color: var(--ops-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

.ops-label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--ops-text);
  font-size: 12px;
  font-weight: 900;
}

.ops-label.full,
.ops-form .full {
  grid-column: 1 / -1;
}

.ops-input,
.ops-select,
.ops-textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  min-width: 0;
  padding: 10px 11px;
  color: var(--ops-text);
  background: #fff;
  border: 1px solid var(--ops-line);
  border-radius: 6px;
  outline: 0;
}

.ops-input:focus,
.ops-select:focus,
.ops-textarea:focus {
  border-color: var(--ops-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

.ops-textarea {
  min-height: 118px;
  resize: vertical;
}

.ops-required {
  color: var(--ops-orange);
}

.onefsg-label-caption .ops-required {
  display: inline;
  margin-left: 3px;
  color: var(--ops-orange);
}

.ops-inline-status {
  margin: 10px 0 14px;
  padding: 11px 12px;
  color: var(--ops-muted);
  background: #f8fafc;
  border: 1px dashed #b8c5d2;
  border-radius: 8px;
}

.ops-inline-status.ok {
  color: #17633b;
  background: #eaf8ef;
  border-color: #a9d7b9;
}

.ops-inline-status.error {
  color: #8a241e;
  background: #fff0ef;
  border-color: #e3aaa4;
}

.ops-platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.ops-platform-card {
  display: grid;
  gap: 9px;
  min-height: 160px;
  padding: 16px;
  color: var(--ops-text);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--ops-line);
  border-radius: 8px;
}

.ops-platform-card:hover {
  border-color: var(--ops-orange);
  box-shadow: inset 4px 0 0 var(--ops-orange);
}

.ops-platform-card strong {
  font-size: 19px;
}

.ops-platform-card span {
  color: var(--ops-muted);
}

.ops-platform-card b {
  align-self: end;
  justify-self: start;
  padding: 8px 12px;
  color: #fff;
  background: var(--ops-orange);
  border-radius: 6px;
}

.ops-compact-table {
  min-width: 640px;
}

.ops-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 13px 0;
}

.ops-info {
  min-width: 0;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid var(--ops-line);
  border-radius: 8px;
}

.ops-table-wrap {
  max-width: 100%;
  margin-top: 12px;
  overflow: auto;
}

.ops-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.ops-table th {
  padding: 10px;
  color: var(--ops-muted);
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .07em;
  background: #f1f5f9;
  border-bottom: 1px solid var(--ops-line);
  font-size: 12px;
}

.ops-table td {
  padding: 11px;
  vertical-align: top;
  border-bottom: 1px solid #e0e7ef;
}

.ops-empty {
  margin-top: 12px;
  padding: 22px;
  color: var(--ops-muted);
  text-align: center;
  background: #fff;
  border: 1px dashed #b8c5d2;
  border-radius: 8px;
}

.ops-ai-box {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  background: #eef6ff;
  border: 1px solid #bfd3ff;
  border-radius: 8px;
}

.ops-admin-scope {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 12px;
}

.ops-admin-scope div {
  padding: 14px;
  background: #f8fafc;
  border: 1px solid var(--ops-line);
  border-radius: 8px;
}

.ops-admin-scope strong,
.ops-admin-scope span {
  display: block;
}

.ops-admin-scope strong {
  margin-bottom: 8px;
  color: var(--ops-text);
  line-height: 1.25;
}

.ops-admin-scope span {
  color: var(--ops-muted);
  line-height: 1.45;
}

.ops-muted {
  color: var(--ops-muted);
}

.ops-workflow-card {
  margin: 16px 0;
  padding: 16px;
  background: #f7fbff;
  border: 1px solid #b9d1e6;
  border-left: 5px solid var(--ops-blue);
  border-radius: 8px;
}

.ops-workflow-card h3 {
  margin: 0 0 5px;
}

.ops-workflow-card p {
  margin: 0;
  color: var(--ops-muted);
}

.ops-workflow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.ops-report-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.ops-report-metrics div {
  padding: 16px;
  background: #f8fafc;
  border: 1px solid var(--ops-line);
  border-radius: 8px;
}

.ops-report-metrics b,
.ops-report-metrics span {
  display: block;
}

.ops-report-metrics b {
  color: var(--ops-blue);
  font-size: 28px;
}

.ops-report-metrics span {
  margin-top: 4px;
  color: var(--ops-muted);
}

.ops-report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.ops-report-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.ops-report-card h3,
.ops-report-card p {
  margin: 0;
}

.ops-report-card .ops-actions {
  margin-top: auto;
}

.ops-evidence-card {
  margin-top: 16px;
}

.ops-period-bar,
.ops-period-buttons,
.ops-period-custom,
.ops-actions.compact {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ops-period-bar {
  justify-content: space-between;
  padding: 10px 0 14px;
}

.ops-period-button {
  border: 1px solid var(--ops-border);
  border-radius: 8px;
  background: #fff;
  color: var(--ops-ink);
  padding: 8px 13px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.ops-period-button.active {
  border-color: #1769d2;
  background: #eaf3ff;
  color: #0c57b7;
}

.ops-period-custom label {
  display: grid;
  gap: 3px;
  color: var(--ops-muted);
  font-size: 12px;
  font-weight: 700;
}

.ops-period-custom input {
  border: 1px solid var(--ops-border);
  border-radius: 7px;
  padding: 7px 9px;
  font: inherit;
}

.ops-quality-command {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
  padding: 18px 20px;
  border: 1px solid #bfd5ec;
  border-left: 4px solid #1769d2;
  border-radius: 10px;
  background: linear-gradient(110deg, #fff 0%, #eff6fd 100%);
}

.ops-quality-command h2,
.ops-quality-command p {
  margin: 3px 0;
}

.ops-quality-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 14px;
  border: 1px solid var(--ops-border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.ops-quality-metric {
  display: grid;
  gap: 3px;
  min-height: 78px;
  padding: 12px 14px;
  border: 0;
  border-right: 1px solid var(--ops-border);
  background: transparent;
  color: var(--ops-ink);
  text-align: left;
  cursor: pointer;
}

.ops-quality-metric:last-child {
  border-right: 0;
}

.ops-quality-metric:hover {
  background: #f1f7fd;
}

.ops-quality-metric b {
  color: #145fc4;
  font-size: 25px;
}

.ops-quality-metric span {
  color: var(--ops-muted);
  font-size: 12px;
  font-weight: 700;
}

.ops-quality-dashboard-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr);
}

.ops-work-list,
.ops-team-load,
.ops-support-list {
  display: grid;
  gap: 9px;
}

.ops-work-item,
.ops-team-load button,
.ops-support-card {
  border: 1px solid var(--ops-border);
  border-radius: 9px;
  background: #fff;
  padding: 12px;
}

.ops-work-item,
.ops-team-load button {
  display: grid;
  gap: 4px;
  color: var(--ops-ink);
  text-align: left;
  cursor: pointer;
}

.ops-work-item:hover,
.ops-team-load button:hover {
  border-color: #1769d2;
  background: #f4f8fd;
}

.ops-work-item small,
.ops-team-load small,
.ops-support-card small {
  color: var(--ops-muted);
}

.ops-support-card {
  display: grid;
  gap: 7px;
}

.ops-queue-controls {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}

.ops-ai-box li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

@media (max-width: 1200px) {
  .ops-header,
  .ops-grid,
  .ops-grid-3,
  .ops-grid-4,
  .ops-launch-grid,
  .ops-platform-grid,
  .ops-stage-flow {
    grid-template-columns: 1fr;
  }

  .ops-document-flow .ops-stage-flow,
  .ops-document-flow .ops-admin-scope {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ops-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ops-admin-scope {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .ops-report-grid {
    grid-template-columns: 1fr;
  }

  .ops-quality-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ops-quality-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .ops-header {
    padding: 16px;
  }

  .ops-actions {
    display: grid;
  }

  .ops-button {
    width: 100%;
  }

  .ops-document-flow .ops-stage-flow,
  .ops-document-flow .ops-admin-scope {
    grid-template-columns: 1fr;
  }

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

  #opsBody {
    padding: 10px;
  }

  .ops-form,
  .ops-workflow-grid,
  .ops-info-grid,
  .ops-admin-scope,
  .ops-report-metrics {
    grid-template-columns: 1fr;
  }

  .ops-tabs {
    flex-wrap: nowrap;
  }

  .ops-quality-command,
  .ops-period-bar {
    display: grid;
  }

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

  .ops-quality-metric {
    border-bottom: 1px solid var(--ops-border);
  }

  .ops-ai-box li {
    display: grid;
  }
}

@media (max-width: 420px) {
  .ops-metrics {
    grid-template-columns: 1fr;
  }

  .ops-card,
  .ops-panel {
    padding: 14px;
  }

  .ops-header h1 {
    font-size: 25px;
  }
}
