/* Tech Ops — aligned with Resourcing gold / black wash */

.tech-ops-page.resource-page {
  max-width: none;
}

/* Snapshot cards: equal width across the full line, equal height. */
.tech-ops-page .section-header-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  align-items: stretch;
}

.tech-ops-page .section-stat {
  min-width: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 5.25rem;
}

.tech-ops-page .section-stat strong {
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

@media (max-width: 720px) {
  .tech-ops-page .section-header-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.tech-ops-notice {
  margin: 0 0 1rem;
}

.tech-ops-tabs.resource-page-tabs {
  margin: 0.5rem 0 1.25rem;
}

.tech-ops-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tech-ops-flow-panel {
  margin-bottom: 0.25rem;
}

.tech-ops-flow-panel .ap-flow-panel-head .ap-purpose {
  max-width: none;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .tech-ops-flow-panel .ap-flow-panel-head .ap-purpose {
    white-space: normal;
  }
}

.tech-ops-flow-steps {
  list-style: none;
  margin: 0;
  padding: 0 0 4px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.tech-ops-flow-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--resource-border, rgba(201, 169, 110, 0.22));
  background: var(--ap-panel-bg, linear-gradient(165deg, rgba(201, 169, 110, 0.07) 0%, rgba(0, 0, 0, 0.28) 42%, rgba(0, 0, 0, 0.38) 100%));
  min-width: 0;
}

.tech-ops-flow-step-num {
  flex: 0 0 auto;
  font-family: var(--resource-display, "Cormorant Garamond", Georgia, serif);
  font-size: 20px;
  line-height: 1;
  color: var(--resource-gold, var(--brand-gold, #c9a96e));
}

.tech-ops-flow-step strong {
  display: block;
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--resource-text, inherit);
}

.tech-ops-flow-step p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--resource-muted, inherit);
}

.tech-ops-split {
  display: grid;
  grid-template-columns: minmax(240px, 0.95fr) minmax(280px, 1.25fr);
  gap: 1rem;
}

@media (max-width: 900px) {
  .tech-ops-split {
    grid-template-columns: 1fr;
  }
}

.tech-ops-panel,
.tech-ops-card,
.tech-ops-agent-card {
  border: 1px solid var(--resource-border, rgba(201, 169, 110, 0.22));
  background: var(--ap-panel-bg, linear-gradient(165deg, rgba(201, 169, 110, 0.07) 0%, rgba(0, 0, 0, 0.28) 42%, rgba(0, 0, 0, 0.38) 100%));
  padding: 16px 18px;
  box-sizing: border-box;
}

.tech-ops-panel > .resource-section-head {
  margin-bottom: 12px;
}

.tech-ops-section-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.tech-ops-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tech-ops-list-item {
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--resource-line, rgba(255, 255, 255, 0.07));
  background: var(--resource-inset, rgba(0, 0, 0, 0.35));
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.tech-ops-list-item.is-active {
  border-color: rgba(201, 169, 110, 0.45);
  background: var(--resource-inset-active, rgba(201, 169, 110, 0.06));
}

.tech-ops-list-item strong {
  font-size: 13px;
  font-weight: 500;
  color: var(--resource-muted, inherit);
}

.tech-ops-when {
  font-size: 11px;
  color: var(--resource-subtle, inherit);
}

.tech-ops-pill {
  display: inline-block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.45rem;
  width: fit-content;
  color: var(--resource-gold, var(--brand-gold, #c9a96e));
  border: 1px solid rgba(201, 169, 110, 0.35);
  background: rgba(201, 169, 110, 0.08);
}

.tech-ops-pill--ok {
  color: #7d9e88;
  border-color: rgba(125, 158, 136, 0.4);
  background: rgba(125, 158, 136, 0.1);
}

.tech-ops-pill--warn {
  color: var(--resource-gold, #c9a96e);
}

.tech-ops-pill--muted {
  opacity: 0.65;
}

.tech-ops-stack {
  font-size: 11px;
  white-space: pre-wrap;
  max-height: 14rem;
  overflow: auto;
  margin-top: 0.65rem;
  padding: 0.75rem;
  background: var(--resource-inset, rgba(0, 0, 0, 0.35));
  border: 1px solid var(--resource-line, rgba(255, 255, 255, 0.07));
}

.tech-ops-kill-chain {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  font-size: 12px;
  color: var(--resource-muted, inherit);
}

.tech-ops-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.tech-ops-prompt-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.tech-ops-prompt {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.7rem;
  font: inherit;
  border: 1px solid var(--resource-line, rgba(255, 255, 255, 0.07));
  background: var(--resource-input, rgba(0, 0, 0, 0.35));
  color: inherit;
}

.tech-ops-sec-card {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.tech-ops-schedule-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 2px;
}

.tech-ops-schedule-card .resource-section-head {
  margin-bottom: 8px;
}

.tech-ops-schedule-card .resource-section-head p {
  margin-bottom: 0;
}

.tech-ops-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--resource-line, rgba(255, 255, 255, 0.07));
  background: var(--resource-inset, rgba(0, 0, 0, 0.35));
}

.tech-ops-field-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--resource-gold, var(--brand-gold, #c9a96e));
}

.tech-ops-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.4;
  color: var(--resource-text, inherit);
}

.tech-ops-toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.tech-ops-toggle-ui {
  flex: 0 0 auto;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid rgba(201, 169, 110, 0.4);
  background: rgba(255, 255, 255, 0.06);
  position: relative;
}

.tech-ops-toggle-ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--resource-muted, #8a9099);
  transition: transform 0.15s ease, background 0.15s ease;
}

.tech-ops-toggle input:checked + .tech-ops-toggle-ui {
  background: rgba(201, 169, 110, 0.22);
  border-color: rgba(201, 169, 110, 0.65);
}

.tech-ops-toggle input:checked + .tech-ops-toggle-ui::after {
  transform: translateX(16px);
  background: var(--resource-gold, #c9a96e);
}

.tech-ops-toggle-copy {
  flex: 1;
  min-width: 0;
}

.tech-ops-select {
  width: 100%;
  max-width: 280px;
  padding: 0.5rem 0.65rem;
  font: inherit;
  border: 1px solid var(--resource-line, rgba(255, 255, 255, 0.07));
  background: var(--resource-input, rgba(0, 0, 0, 0.35));
  color: inherit;
}

.tech-ops-schedule-times {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.tech-ops-schedule-times label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--resource-muted, inherit);
}

.tech-ops-schedule-times input[type="time"] {
  padding: 0.45rem 0.55rem;
  font: inherit;
  border: 1px solid var(--resource-line, rgba(255, 255, 255, 0.07));
  background: var(--resource-input, rgba(0, 0, 0, 0.35));
  color: inherit;
}

.tech-ops-schedule-next {
  margin: 0;
  font-size: 12px;
}

.tech-ops-activity-card {
  margin-top: 12px;
}

.tech-ops-schedule-enable {
  display: none;
}

.tech-ops-agent-toggle {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.tech-ops-agent-chevron {
  flex: 0 0 auto;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--resource-gold, var(--brand-gold, #c9a96e));
  padding-top: 4px;
}

.tech-ops-agent-body {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(201, 169, 110, 0.18);
}

.tech-ops-agent-card.is-expanded {
  border-color: rgba(201, 169, 110, 0.4);
}

.tech-ops-mini-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--resource-line, rgba(255, 255, 255, 0.07));
  background: var(--resource-inset, rgba(0, 0, 0, 0.35));
}

.tech-ops-agent-card h3 {
  margin: 0.25rem 0 0.5rem;
  font-family: var(--resource-display, "Cormorant Garamond", Georgia, serif);
  font-size: 22px;
  font-weight: 400;
}

.tech-ops-table-wrap {
  overflow-x: auto;
  margin-top: 0.75rem;
}

.tech-ops-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.tech-ops-table th,
.tech-ops-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--resource-line, rgba(255, 255, 255, 0.07));
  vertical-align: top;
}

.tech-ops-table th {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--resource-gold, var(--brand-gold, #c9a96e));
  font-weight: 500;
}

.tech-ops-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.tech-ops-pager-meta {
  margin: 0;
  font-size: 12px;
  color: var(--resource-muted, inherit);
}

.tech-ops-pager-actions {
  display: flex;
  gap: 0.4rem;
}

.tech-ops-report-stats {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.tech-ops-report-stats li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.tech-ops-report-stats span {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--resource-muted, inherit);
}

.tech-ops-report-stats strong {
  font-family: var(--resource-display, "Cormorant Garamond", Georgia, serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--resource-text, inherit);
}

.tech-ops-kill-block {
  margin-bottom: 0.75rem;
}

.tech-ops-agents {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.tech-ops-detail section,
.tech-ops-detail .tech-ops-card {
  margin-top: 0.85rem;
}

.tech-ops-detail > .resource-section-head {
  margin-bottom: 0;
}

.tech-ops-gateway-card {
  margin-top: 0;
}

.tech-ops-gateway-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 4px;
}

.tech-ops-gateway-form .tech-ops-actions {
  margin-top: 12px;
}

.tech-ops-conn {
  margin: 8px 0 0;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tech-ops-conn.is-on {
  color: #7d9e88;
}

.tech-ops-conn.is-off {
  color: var(--resource-muted, #8a9099);
}

.tech-ops-gateway-logs {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(201, 169, 110, 0.18);
}

/* Reliability & Security Watch work products */

.tech-ops-firm-impact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tech-ops-firm-impact-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tech-ops-gate-copy,
.tech-ops-handoff-preview,
.tech-ops-map-intro {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.tech-ops-field-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--text-secondary, var(--resource-muted, #c8c0b0));
}

.tech-ops-field-block h4 {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--brand-gold, var(--resource-gold, #c9a96e));
}

.tech-ops-field-block p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--resource-text, inherit);
}

.tech-ops-impact-form textarea,
.tech-ops-impact-form input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid rgba(201, 169, 110, 0.22);
  border-radius: 2px;
  background: rgba(10, 10, 10, 0.55);
  color: inherit;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.45;
}

.theme-light .tech-ops-impact-form textarea,
.theme-light .tech-ops-impact-form input[type="text"] {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(201, 169, 110, 0.4);
}

.tech-ops-impact-form textarea:focus,
.tech-ops-impact-form input[type="text"]:focus {
  outline: 1px solid rgba(201, 169, 110, 0.45);
}

.tech-ops-firm-map {
  display: grid;
  gap: 10px;
}

.tech-ops-firm-map h5 {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(201, 169, 110, 0.85);
}

.tech-ops-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tech-ops-chip {
  padding: 4px 8px;
  border: 1px solid rgba(201, 169, 110, 0.22);
  background: rgba(201, 169, 110, 0.06);
  font-size: 11px;
  line-height: 1.35;
}

.tech-ops-map-empty {
  margin: 0;
  font-size: 12px;
}

.tech-ops-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-ops-page .ri-agent-pill,
.tech-ops-firm-impact .ri-agent-pill {
  margin: 0;
}
