.ops-body {
  min-width: 320px;
  background: #f6f8f6;
  color: var(--ink);
}

.ops-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 66px;
  padding: 8px clamp(16px, 3vw, 42px);
  border-bottom: 1px solid var(--line);
  background: rgba(250, 251, 249, 0.96);
  backdrop-filter: blur(14px);
}

.ops-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: inherit;
  text-decoration: none;
}

.ops-brand > span:first-child {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 18px;
}

.ops-brand > span:last-child {
  display: grid;
  gap: 1px;
}

.ops-brand small {
  color: var(--muted);
  font-size: 9px;
}

.ops-header nav {
  display: flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f2f5f2;
}

.ops-header nav a {
  min-height: 32px;
  border-radius: 5px;
  padding: 8px 11px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  text-decoration: none;
}

.ops-header nav a.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(31, 49, 40, 0.08);
}

.ops-header > a:last-child,
.ops-header > span:last-child {
  justify-self: end;
}

.ops-status {
  border: 1px solid #d8c79f;
  border-radius: 5px;
  padding: 5px 8px;
  background: #fff9ed;
  color: #805d20;
  font-size: 9px;
  font-weight: 780;
}

.ops-main {
  width: min(1380px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 70px;
}

.ops-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.ops-title > div {
  display: grid;
  gap: 7px;
  max-width: 840px;
}

.ops-title h1 {
  font-size: clamp(31px, 4vw, 48px);
  line-height: 1.02;
}

.ops-title p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
}

.ops-actions,
.ops-segmented,
.ops-tabs {
  display: flex;
  gap: 7px;
  align-items: center;
}

.ops-segmented,
.ops-tabs {
  gap: 2px;
  overflow-x: auto;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #eef2ee;
}

.ops-segmented button,
.ops-tabs button {
  min-height: 34px;
  border: 0;
  border-radius: 5px;
  padding: 0 11px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
  white-space: nowrap;
}

.ops-segmented button.is-active,
.ops-tabs button.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 5px rgba(30, 48, 39, 0.09);
}

.ops-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.ops-kpis article {
  display: grid;
  gap: 5px;
  min-height: 102px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.ops-kpis span,
.ops-kpis small {
  color: var(--muted);
  font-size: 9px;
}

.ops-kpis b {
  align-self: end;
  font-size: 24px;
}

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

.ops-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
  border-bottom: 1px solid var(--line);
  padding: 12px 15px;
}

.ops-panel > header > div {
  display: grid;
  gap: 2px;
}

.ops-panel > header span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 760;
  text-transform: uppercase;
}

.ops-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.42fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.ops-stack {
  display: grid;
  gap: 14px;
}

.ops-form {
  display: grid;
  gap: 13px;
  padding: 16px;
}

.ops-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 720;
}

.ops-form input,
.ops-form select,
.ops-form textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  background: #fafbfa;
  color: var(--ink);
  font: inherit;
}

.ops-form textarea {
  resize: vertical;
}

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

.ops-form .is-wide {
  grid-column: 1 / -1;
}

.ops-preview {
  min-height: 680px;
}

.report-sheet {
  display: grid;
  gap: 20px;
  margin: 18px;
  border: 1px solid #ccd6d0;
  padding: clamp(18px, 3vw, 34px);
  background: #fff;
  box-shadow: 0 14px 40px rgba(28, 45, 36, 0.07);
}

.report-sheet > header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 3px solid var(--green);
}

.report-sheet h2 {
  max-width: 680px;
  font-size: 30px;
  line-height: 1.08;
}

.report-sheet header strong {
  align-self: start;
  border: 1px solid #ccd8d0;
  border-radius: 5px;
  padding: 5px 8px;
  color: var(--green);
  font-size: 9px;
}

.report-sheet > p {
  max-width: 840px;
  color: #465750;
  font-size: 14px;
  line-height: 1.62;
}

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

.report-metrics > div,
.report-evidence > div {
  display: grid;
  gap: 4px;
  min-height: 94px;
  padding: 13px;
  background: #f8faf8;
}

.report-metrics span,
.report-metrics small,
.report-evidence span,
.report-evidence small {
  color: var(--muted);
  font-size: 9px;
}

.report-metrics b {
  align-self: end;
  font-size: 20px;
}

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

.report-outline div {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.report-outline span {
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
}

.report-caveat {
  border-left: 3px solid #c28b3a;
  padding: 12px 14px;
  background: #fff9ee;
  color: #66532e;
  font-size: 11px;
}

.ops-table-wrap {
  overflow: auto;
}

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

.ops-table th,
.ops-table td {
  border-bottom: 1px solid var(--line);
  padding: 11px 14px;
  text-align: left;
}

.ops-table th {
  background: #f7f9f7;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

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

.ops-badge {
  display: inline-block;
  border-radius: 5px;
  padding: 4px 7px;
  background: #e5f0e7;
  color: #286242;
  font-size: 8px;
  font-weight: 800;
}

.ops-badge.is-pending {
  background: #fff3de;
  color: #78561e;
}

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

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

.partner-material-grid,
.billing-plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.partner-material-grid a,
.billing-plan {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.partner-material-grid span,
.partner-material-grid small,
.billing-plan span,
.billing-plan small {
  color: var(--muted);
  font-size: 9px;
}

.partner-material-grid strong {
  align-self: end;
  color: var(--green);
}

.billing-plan.is-selected {
  border-color: #7fa08a;
  background: #eef5ef;
}

.billing-plan h3 {
  font-size: 20px;
}

.billing-plan > b {
  font-size: 22px;
}

.billing-plan ul {
  display: grid;
  gap: 6px;
  margin: 4px 0 0;
  padding-left: 16px;
  color: #52605c;
  font-size: 10px;
}

.billing-plan button {
  align-self: end;
  margin-top: auto;
}

.billing-checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.38fr);
  gap: 14px;
  margin-top: 14px;
}

.billing-summary {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
}

.billing-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.billing-summary > div:last-of-type {
  border-bottom: 0;
}

.billing-summary span,
.billing-summary small {
  color: var(--muted);
  font-size: 10px;
}

.billing-summary > b {
  font-size: 28px;
}

.usage-meter {
  display: grid;
  gap: 7px;
}

.usage-meter > div {
  overflow: hidden;
  height: 6px;
  border-radius: 4px;
  background: #e1e8e3;
}

.usage-meter i {
  display: block;
  width: var(--usage);
  height: 100%;
  background: var(--green);
}

.ops-empty {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.ops-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  transform: translateY(10px);
  border: 1px solid #315941;
  border-radius: 7px;
  padding: 11px 14px;
  background: #173d2a;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms cubic-bezier(0.23, 1, 0.32, 1), transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}

.ops-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.ops-body button:active,
.ops-body a.primary-action:active,
.ops-body a.ghost-action:active {
  transform: scale(0.98);
}

@media (max-width: 1040px) {
  .ops-header {
    grid-template-columns: 1fr auto;
  }

  .ops-header nav {
    display: none;
  }

  .ops-kpis,
  .partner-material-grid,
  .billing-plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ops-grid,
  .billing-checkout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .ops-main {
    width: min(100% - 22px, 1380px);
    padding-top: 20px;
  }

  .ops-title {
    align-items: stretch;
    flex-direction: column;
  }

  .ops-title h1 {
    font-size: 32px;
  }

  .ops-kpis,
  .partner-material-grid,
  .billing-plan-grid,
  .ops-form-grid,
  .report-metrics,
  .report-evidence,
  .report-outline {
    grid-template-columns: 1fr;
  }

  .report-sheet {
    margin: 10px;
    padding: 16px;
  }

  .report-sheet > header {
    grid-template-columns: 1fr;
  }

  .ops-panel > header {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ops-toast {
    transition-duration: 0ms;
  }
}
