:root {
  color: #172026;
  background: #f4f6f8;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: #f4f6f8;
}

button,
input,
select {
  font: inherit;
}

.ops-shell {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.ops-header {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.ops-header p,
.ops-detail-head p {
  color: #66717b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.ops-header h1,
.ops-detail-head h2 {
  font-size: 24px;
  line-height: 1.2;
  margin: 0;
}

.ops-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.ops-user {
  color: #66717b;
  font-size: 13px;
  font-weight: 700;
}

.ops-logout {
  align-items: center;
  border: 1px solid #c8d0d8;
  border-radius: 6px;
  color: #172026;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  min-height: 36px;
  padding: 0 12px;
  text-decoration: none;
}

.ops-actions button,
.ops-rule-form button {
  background: #ffffff;
  border: 1px solid #c8d0d8;
  border-radius: 6px;
  color: #172026;
  cursor: pointer;
  min-height: 36px;
  padding: 0 14px;
}

.auth-body {
  background:
    radial-gradient(circle at 10% 12%, rgba(107, 83, 210, 0.16), transparent 28%),
    linear-gradient(135deg, #f7f7fb 0%, #eef2f7 48%, #f7faf8 100%);
  color: #172033;
  min-height: 100vh;
}

.auth-shell {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(360px, 1.05fr) minmax(360px, 0.85fr);
  min-height: 100vh;
  padding: clamp(18px, 4vw, 54px);
}

.auth-brand,
.auth-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(210, 216, 226, 0.92);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(34, 44, 65, 0.12);
}

.auth-brand {
  display: grid;
  gap: 24px;
  min-height: 520px;
  padding: 32px;
}

.auth-brand h1 {
  font-size: clamp(38px, 5vw, 58px);
  letter-spacing: 0;
  line-height: 0.96;
  margin: 0 0 18px;
}

.auth-brand p,
.auth-copy {
  color: #53617a;
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}

.auth-visual {
  align-items: center;
  background: #fbfcff;
  border: 1px solid #dce2eb;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  min-height: 320px;
  overflow: hidden;
  position: relative;
}

.auth-grid {
  background-image:
    linear-gradient(#edf1f7 1px, transparent 1px),
    linear-gradient(90deg, #edf1f7 1px, transparent 1px);
  background-size: 28px 28px;
  inset: 0;
  position: absolute;
}

.auth-iguana {
  background: linear-gradient(145deg, #7d55c7, #4d2c82);
  border: 8px solid #2c1d49;
  border-radius: 42% 42% 34% 34%;
  height: 190px;
  position: relative;
  width: 230px;
}

.auth-iguana::before,
.auth-iguana::after {
  background: #6bed82;
  border-radius: 999px;
  content: "";
  position: absolute;
}

.auth-iguana::before {
  height: 18px;
  left: 34px;
  top: -28px;
  transform: rotate(-28deg);
  width: 118px;
}

.auth-iguana::after {
  bottom: -24px;
  height: 22px;
  right: 28px;
  width: 150px;
}

.auth-eye {
  background: #ffe36a;
  border: 6px solid #25173e;
  border-radius: 50%;
  height: 56px;
  position: absolute;
  top: 38px;
  width: 56px;
}

.auth-eye::after {
  background: #241735;
  border-radius: 50%;
  content: "";
  height: 18px;
  left: 19px;
  position: absolute;
  top: 18px;
  width: 18px;
}

.auth-eye.left {
  left: 48px;
}

.auth-eye.right {
  right: 48px;
}

.auth-smile {
  border-bottom: 6px solid #25173e;
  border-radius: 0 0 80px 80px;
  bottom: 54px;
  height: 46px;
  left: 58px;
  position: absolute;
  width: 112px;
}

.auth-board {
  background: #20293a;
  border: 5px solid #111827;
  border-radius: 8px;
  bottom: -38px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.28);
  display: grid;
  gap: 8px;
  left: 54px;
  padding: 14px;
  position: absolute;
  transform: rotate(-2deg);
  width: 130px;
}

.auth-board span {
  background: linear-gradient(90deg, #b66df1, #9ce954);
  border-radius: 999px;
  display: block;
  height: 8px;
}

.auth-card {
  padding: 32px;
}

.auth-eyebrow {
  color: #6b4bd2;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.auth-card h2 {
  font-size: 30px;
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0 0 18px;
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.auth-form label {
  color: #5a6678;
  display: grid;
  font-size: 12px;
  font-weight: 900;
  gap: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-form input,
.auth-form select {
  background: #ffffff;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  color: #172033;
  min-height: 56px;
  padding: 0 16px;
}

.auth-primary,
.auth-provider {
  align-items: center;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  letter-spacing: 0.08em;
  min-height: 52px;
  text-transform: uppercase;
}

.auth-primary {
  background: #6b4bd2;
  border: 0;
  color: #ffffff;
  margin-top: 18px;
}

.auth-provider {
  background: #ffffff;
  border: 1px solid #d8dee8;
  color: #172033;
  gap: 12px;
  width: 100%;
}

.auth-primary:disabled,
.auth-provider:disabled {
  cursor: wait;
  opacity: 0.62;
}

.google-mark {
  color: #4285f4;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.auth-separator {
  background: #e4e9f1;
  height: 1px;
  margin: 26px 0;
}

.auth-message {
  color: #5a6678;
  font-size: 13px;
  min-height: 18px;
}

.auth-message.error {
  color: #9b2c20;
}

.ops-rule-form button {
  background: #146c94;
  border-color: #146c94;
  color: #ffffff;
}

.ops-error {
  background: #fff2f0;
  border: 1px solid #efb6ad;
  border-radius: 6px;
  color: #9b2c20;
  margin-bottom: 12px;
  padding: 10px 12px;
}

.ops-kpis,
.ops-grid,
.ops-lower {
  display: grid;
  gap: 12px;
}

.ops-tabs {
  align-items: center;
  border-bottom: 1px solid #dce2e8;
  display: flex;
  gap: 4px;
  margin: 0 0 12px;
}

.ops-tabs button {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  color: #66717b;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  min-height: 42px;
  padding: 0 16px;
}

.ops-tabs button.active {
  border-color: #146c94;
  color: #172026;
}

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

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

.ops-kpis article,
.ops-panel {
  background: #ffffff;
  border: 1px solid #dce2e8;
  border-radius: 8px;
}

.ops-kpis article {
  min-height: 84px;
  padding: 16px;
}

.ops-kpis span,
.ops-metrics span {
  color: #66717b;
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.ops-kpis strong {
  font-size: 28px;
}

.ops-grid {
  grid-template-columns: 360px minmax(0, 1fr);
  margin-bottom: 12px;
}

.ops-workbench {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  margin-bottom: 12px;
}

.ops-resource-panel {
  min-width: 0;
}

.ops-resource-head {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(180px, 0.3fr) minmax(0, 1fr);
  margin-bottom: 12px;
}

.ops-resource-head span,
.ops-chart-head span {
  color: #66717b;
  display: block;
  font-size: 12px;
  font-weight: 700;
}

.ops-filters {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(180px, 1fr) repeat(3, minmax(130px, 0.7fr));
}

.ops-filters input,
.ops-filters select,
.ops-chart-head select {
  background: #ffffff;
  border: 1px solid #c8d0d8;
  border-radius: 6px;
  color: #172026;
  min-height: 34px;
  min-width: 0;
  padding: 0 10px;
}

.ops-resource-table-wrap {
  border: 1px solid #e4e9ee;
  border-radius: 6px;
  max-height: 650px;
  min-height: 0;
  overflow: auto;
}

.ops-resource-table {
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  min-width: 1120px;
  width: 100%;
}

.ops-resource-table th {
  background: #f7f9fb;
  border-bottom: 1px solid #dce2e8;
  position: sticky;
  text-align: left;
  top: 0;
  z-index: 1;
}

.ops-resource-table th button {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #4d5963;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  min-height: 36px;
  padding: 0 9px;
  text-align: left;
  text-transform: uppercase;
  width: 100%;
}

.ops-resource-table th button.active::after {
  content: " " attr(data-indicator);
  color: #146c94;
}

.ops-resource-table td {
  border-bottom: 1px solid #edf1f5;
  color: #27313a;
  height: 40px;
  padding: 6px 9px;
  vertical-align: middle;
  white-space: nowrap;
}

.ops-resource-table td:nth-child(3) {
  max-width: 260px;
}

.ops-resource-table td:nth-child(3) strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ops-resource-table tr {
  cursor: pointer;
}

.ops-resource-table tr:hover {
  background: #f8fbfd;
}

.ops-resource-table tr.active {
  background: #edf6fa;
  outline: 2px solid #c8e6f2;
  outline-offset: -2px;
}

.ops-resource-table tr[hidden] {
  display: none;
}

.ops-panel {
  padding: 14px;
}

.ops-grid > .ops-panel:first-child {
  align-self: start;
  max-height: calc(100vh - 196px);
  overflow: hidden;
  position: sticky;
  top: 12px;
}

.ops-list-head {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) 128px;
  margin-bottom: 10px;
}

.ops-list-head .ops-section-title {
  margin-bottom: 2px;
}

.ops-list-head span {
  color: #66717b;
  display: block;
  font-size: 12px;
  font-weight: 700;
}

.ops-list-head input {
  border: 1px solid #c8d0d8;
  border-radius: 6px;
  color: #172026;
  min-height: 34px;
  min-width: 0;
  padding: 0 10px;
}

#targetList {
  max-height: calc(100vh - 270px);
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-color: #9aa8b5 #eef2f5;
  scrollbar-width: thin;
}

#targetList::-webkit-scrollbar {
  width: 10px;
}

#targetList::-webkit-scrollbar-track {
  background: #eef2f5;
  border-radius: 999px;
}

#targetList::-webkit-scrollbar-thumb {
  background: #9aa8b5;
  border: 2px solid #eef2f5;
  border-radius: 999px;
}

.ops-section-title {
  color: #3a4650;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 10px;
}

.ops-target {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: 12px minmax(0, 1fr) 52px;
  min-height: 54px;
  padding: 8px;
  text-align: left;
  width: 100%;
}

.ops-target.active {
  background: #edf6fa;
}

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

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

.ops-target small {
  color: #66717b;
  margin-top: 3px;
}

.ops-dot {
  border-radius: 50%;
  display: block;
  height: 10px;
  width: 10px;
}

.ops-dot.ok,
.ops-pill.ok,
.ops-pill.dry_run,
.ops-pill.applied {
  background: #dff3e6;
  color: #17623a;
}

.ops-dot.warning,
.ops-pill.warning {
  background: #fff1c7;
  color: #7a5300;
}

.ops-pill.stale,
.ops-pill.no_metrics,
.ops-pill.disabled,
.ops-pill.no_op {
  background: #edf1f5;
  color: #4d5963;
}

.ops-dot.critical,
.ops-pill.critical,
.ops-pill.failed,
.ops-pill.blocked {
  background: #ffe0dc;
  color: #9b2c20;
}

.ops-pill {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 7px 9px;
}

.ops-detail-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

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

.ops-metrics > div {
  border: 1px solid #e4e9ee;
  border-radius: 6px;
  min-height: 92px;
  padding: 12px;
}

.ops-metrics strong {
  display: block;
  font-size: 18px;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}

.ops-bar {
  background: #e8edf2;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.ops-bar i {
  display: block;
  height: 100%;
}

.green {
  background: #38a169;
}

.blue {
  background: #2b6cb0;
}

.amber {
  background: #d69e2e;
}

.red {
  background: #e53e3e;
}

.ops-chart-head {
  align-items: end;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: 18px 0 10px;
}

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

.ops-chart {
  border: 1px solid #e4e9ee;
  border-radius: 6px;
  min-height: 132px;
  padding: 10px;
}

.ops-chart > span {
  color: #66717b;
  display: block;
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.ops-chart div {
  min-height: 92px;
  position: relative;
}

.ops-chart svg {
  display: block;
  height: 94px;
  width: 100%;
}

.ops-chart line {
  stroke: #dfe5eb;
  stroke-width: 1;
}

.ops-chart path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.ops-chart path.green {
  stroke: #38a169;
}

.ops-chart path.blue {
  stroke: #2b6cb0;
}

.ops-chart path.amber {
  stroke: #d69e2e;
}

.ops-chart path.red {
  stroke: #e53e3e;
}

.ops-chart b {
  color: #172026;
  font-size: 12px;
  position: absolute;
  right: 0;
  top: 0;
}

.ops-chart-empty {
  align-items: center;
  color: #66717b;
  display: flex;
  font-size: 12px;
  justify-content: center;
  min-height: 92px;
}

.ops-lower {
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.8fr);
  margin-bottom: 12px;
}

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

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

.ops-activity-summary article {
  background: #ffffff;
  border: 1px solid #dce2e8;
  border-radius: 8px;
  min-height: 88px;
  padding: 14px;
}

.ops-activity-summary span {
  color: #66717b;
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.ops-activity-summary strong {
  display: block;
  font-size: 22px;
  line-height: 1.15;
  margin-bottom: 6px;
}

.ops-activity-summary small {
  color: #66717b;
  display: block;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-activity-table,
.ops-alert-table {
  display: grid;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.ops-activity-head,
.ops-activity-row,
.ops-alert-head,
.ops-alert-row {
  align-items: center;
  display: grid;
  gap: 10px;
  min-width: 1080px;
}

.ops-activity-head,
.ops-activity-row {
  grid-template-columns: 150px 96px 78px minmax(210px, 1.2fr) 80px 64px 72px minmax(260px, 1.4fr);
}

.ops-alert-head,
.ops-alert-row {
  grid-template-columns: 150px 100px 76px minmax(210px, 1.2fr) 130px 90px 80px minmax(260px, 1.4fr);
}

.ops-activity-head,
.ops-alert-head {
  color: #596672;
  font-size: 11px;
  font-weight: 900;
  padding: 6px 10px 0;
  text-transform: uppercase;
}

.ops-activity-row,
.ops-alert-row {
  border: 1px solid #e4e9ee;
  border-radius: 6px;
  min-height: 44px;
  padding: 8px 10px;
}

.ops-activity-row span,
.ops-activity-row strong,
.ops-alert-row span,
.ops-alert-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-rules-stack {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  margin-bottom: 12px;
  max-height: calc(100vh - 210px);
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-color: #9aa8b5 #eef2f5;
  scrollbar-width: thin;
}

.ops-rules-stack::-webkit-scrollbar {
  width: 10px;
}

.ops-rules-stack::-webkit-scrollbar-track {
  background: #eef2f5;
  border-radius: 999px;
}

.ops-rules-stack::-webkit-scrollbar-thumb {
  background: #9aa8b5;
  border: 2px solid #eef2f5;
  border-radius: 999px;
}

.ops-table {
  display: grid;
  gap: 6px;
}

.ops-row {
  align-items: center;
  border: 1px solid #e4e9ee;
  border-radius: 6px;
  display: grid;
  gap: 10px;
  grid-template-columns: 72px minmax(160px, 1fr) minmax(180px, 1.1fr) 130px;
  min-height: 42px;
  padding: 8px 10px;
}

.ops-row span,
.ops-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.ops-rule-form label {
  color: #4d5963;
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 5px;
  text-transform: uppercase;
}

.ops-field-label {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.ops-help {
  align-items: center;
  background: #edf1f5;
  border: 1px solid #c8d0d8;
  border-radius: 50%;
  color: #4d5963;
  cursor: help;
  display: inline-flex;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  height: 18px;
  justify-content: center;
  line-height: 1;
  position: relative;
  text-transform: none;
  width: 18px;
}

.ops-help:hover,
.ops-help:focus {
  background: #146c94;
  border-color: #146c94;
  color: #ffffff;
  outline: 0;
}

.ops-tooltip {
  background: #172026;
  border-radius: 6px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  max-width: min(320px, calc(100vw - 24px));
  padding: 8px 10px;
  pointer-events: none;
  position: fixed;
  text-transform: none;
  width: max-content;
  z-index: 1000;
}

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

.ops-rule-form input,
.ops-rule-form select {
  border: 1px solid #c8d0d8;
  border-radius: 6px;
  min-height: 36px;
  min-width: 0;
  padding: 0 10px;
}

.ops-rule-form label:first-child {
  grid-column: 1 / -1;
}

.ops-empty {
  color: #66717b;
  border: 1px dashed #c8d0d8;
  border-radius: 6px;
  padding: 12px;
}

.ops-rules-page {
  display: grid;
  gap: 12px;
}

.ops-rules-toolbar {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(160px, 0.4fr) minmax(0, 1.6fr);
  margin-bottom: 12px;
}

.ops-rules-toolbar > div:first-child > span {
  color: #66717b;
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-top: 4px;
}

.ops-rule-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(180px, 1.3fr) repeat(5, minmax(120px, 0.75fr)) 40px;
}

.ops-rule-actions input,
.ops-rule-actions select {
  border: 1px solid #c8d0d8;
  border-radius: 6px;
  min-height: 36px;
  min-width: 0;
  padding: 0 10px;
}

.ops-icon-button {
  align-items: center;
  background: #146c94;
  border: 1px solid #146c94;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-size: 24px;
  font-weight: 900;
  height: 36px;
  justify-content: center;
  line-height: 1;
  width: 40px;
}

.ops-rules-table-wrap {
  border: 1px solid #dce2e8;
  border-radius: 8px;
  max-height: 650px;
  overflow: auto;
  scrollbar-color: #9aa8b5 #eef2f5;
  scrollbar-width: thin;
}

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

.ops-rules-table thead {
  background: #f4f7fa;
  position: sticky;
  top: 0;
  z-index: 2;
}

.ops-rules-table th,
.ops-rules-table td {
  border-bottom: 1px solid #e6ebf0;
  font-size: 13px;
  padding: 9px 10px;
  text-align: left;
  white-space: nowrap;
}

.ops-rules-table td {
  color: #172026;
}

.ops-rules-table td:nth-child(2),
.ops-rules-table td:nth-child(3),
.ops-rules-table td:nth-child(4) {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ops-rules-table th button {
  background: transparent;
  border: 0;
  color: #596672;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  padding: 0;
  text-transform: uppercase;
}

.ops-rules-table th button::after {
  content: attr(data-indicator);
  display: inline-block;
  margin-left: 4px;
  min-width: 10px;
}

.ops-rules-table tbody tr:hover {
  background: #f8fbfd;
}

.ops-rules-table td:last-child {
  text-align: right;
}

.ops-rules-table td:last-child button,
.ops-form-actions button {
  background: #ffffff;
  border: 1px solid #c8d0d8;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
  min-height: 32px;
  padding: 0 12px;
}

.ops-modal-open {
  overflow: hidden;
}

.ops-modal-backdrop {
  align-items: center;
  background: rgba(23, 32, 38, 0.42);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 900;
}

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

.ops-modal {
  background: #ffffff;
  border: 1px solid #dce2e8;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(23, 32, 38, 0.24);
  max-height: min(820px, calc(100vh - 48px));
  max-width: 880px;
  overflow: auto;
  padding: 18px;
  width: min(880px, calc(100vw - 48px));
}

.ops-modal-head {
  align-items: start;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.ops-modal-head span {
  color: #66717b;
  display: block;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.ops-modal-head h2 {
  font-size: 22px;
  margin: 4px 0 0;
}

.ops-modal-head button {
  background: #ffffff;
  border: 1px solid #c8d0d8;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 900;
  height: 32px;
  width: 32px;
}

.ops-form-actions {
  display: flex;
  gap: 8px;
  grid-column: 1 / -1;
  justify-content: flex-end;
}

.ops-form-actions button[type="submit"] {
  background: #146c94;
  border-color: #146c94;
  color: #ffffff;
}

@media (max-width: 980px) {
  .ops-shell {
    padding: 14px;
  }

  .auth-shell {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .auth-brand {
    min-height: auto;
    padding: 22px;
  }

  .auth-visual {
    min-height: 240px;
  }

  .auth-card {
    padding: 22px;
  }

  .ops-header,
  .ops-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ops-kpis,
  .ops-grid,
  .ops-workbench,
  .ops-lower,
  .ops-activity-summary,
  .ops-metrics {
    grid-template-columns: 1fr;
  }

  .ops-resource-head,
  .ops-filters,
  .ops-rules-toolbar,
  .ops-rule-actions,
  .ops-rule-form,
  .ops-charts {
    grid-template-columns: 1fr;
  }

  .ops-resource-table-wrap {
    max-height: 520px;
    min-height: 340px;
  }

  .ops-grid > .ops-panel:first-child {
    max-height: 420px;
    position: static;
  }

  #targetList {
    max-height: 330px;
  }

  .ops-row {
    grid-template-columns: 68px minmax(0, 1fr);
  }
}
