body[data-admin-app] {
  --ink: #172338;
  --muted: #62738a;
  --blue: #2563eb;
  color-scheme: light;
  background: #f3f6fa;
  color: #172338;
  font-family: system-ui, sans-serif;
  font-size: 14px;
}
.ops-authenticated .admin-header {
  margin-left: 224px;
}
.admin-header {
  background: #fff;
  border-bottom: 1px solid #dfe6ef;
  padding: 18px 30px;
}
.admin-header > a {
  color: #172338;
  font-size: 20px;
}
.admin-header > a span {
  color: #64748b;
}
.admin-header > div {
  color: #51627b;
}
.admin-header button {
  background: #eef2f7;
  color: #24364e;
}
#ops-nav {
  position: fixed;
  inset: 0 auto 0 0;
  width: 224px;
  background: #101d32;
  color: #c3cee0;
  overflow: auto;
  padding: 26px 14px;
  z-index: 10;
}
.ops-brand {
  font-size: 25px;
  color: #fff;
  font-weight: 850;
  padding: 0 14px 24px;
}
.ops-brand span {
  display: block;
  font-size: 12px;
  color: #8295b2;
  letter-spacing: 2px;
  margin-top: 8px;
}
#ops-nav section {
  margin: 14px 0;
}
#ops-nav small {
  display: block;
  font-size: 11px;
  letter-spacing: 1px;
  color: #8497b1;
  padding: 8px 14px;
}
#ops-nav a {
  display: block;
  padding: 11px 14px;
  border-radius: 7px;
  margin: 2px 0;
  color: #b6c5da;
}
#ops-nav a:hover {
  background: #1c2d48;
}
#ops-nav a.active {
  background: #2563eb;
  color: #fff;
}
.ops-authenticated #admin-main {
  margin: 0 0 0 224px;
  padding: 30px;
  max-width: none;
}
#admin-main h1 {
  font-size: 28px;
  letter-spacing: -0.5px;
  color: #172338;
}
#admin-main h2 {
  font-size: 18px;
  color: #22344c;
}
#admin-main .admin-tabs {
  display: none;
}
.ops-title {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.ops-title > div > span {
  color: #7d8da3;
  font-size: 12px;
}
.ops-note {
  color: #6d7c91;
  font-size: 13px;
  line-height: 1.7;
}
.ops-badge {
  white-space: nowrap;
  display: inline-block;
  background: #edf2f8;
  color: #61738e;
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 12px;
}
.ops-badge.ok {
  background: #e7f7ef;
  color: #19764a;
}
#admin-main .primary {
  background: #2563eb;
  color: white;
  border-radius: 6px;
  padding: 10px 17px;
  font-size: 14px;
}
#admin-main .secondary,
#admin-main .ops-edit,
.ops-toolbar button {
  background: #fff;
  color: #324b6e;
  border: 1px solid #d7e0ed;
  padding: 9px 13px;
  border-radius: 6px;
  font-size: 14px;
}
#admin-main .admin-card,
#admin-main .metric,
#admin-main .auth-panel,
#admin-main .ad-preview {
  background: #fff;
  border: 1px solid #dfe6ef;
  border-radius: 9px;
  color: #24364f;
  box-shadow: 0 2px 5px #26375204;
}
#admin-main .inline-help,
#admin-main .auth-panel p {
  color: #6b7c94;
}
#admin-main .eyebrow {
  color: #6b7c94;
}
#admin-main input,
#admin-main select,
#admin-main textarea {
  background: #fff;
  color: #263b55;
  border: 1px solid #d7e1ed;
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
  min-width: 0;
  width: 100%;
}
#admin-main input[type='checkbox'] {
  width: auto;
}
#admin-main .field {
  color: #354c68;
}
#admin-main .form-error {
  color: #bb3344;
}
.ops-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
}
.ops-toolbar p,
.ops-toolbar h2 {
  margin: 0;
}
.ops-toolbar > div {
  display: flex;
  gap: 8px;
}
.ops-form,
.ops-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  background: white;
  padding: 22px;
  border: 1px solid #dfe6ef;
  border-radius: 9px;
  margin: 18px 0;
}
.ops-form h2,
.ops-wide {
  grid-column: 1/-1;
}
.ops-form label,
.ops-filters label {
  display: grid;
  gap: 7px;
  color: #5c6e87;
  font-size: 13px;
}
.ops-filters {
  grid-template-columns: repeat(4, minmax(100px, 1fr)) auto;
  align-items: end;
}
.ops-form iframe {
  width: 100%;
  height: 220px;
  border: 1px solid #dfe6ef;
  border-radius: 8px;
  background: white;
}
.ops-table {
  overflow: auto;
  border: 1px solid #dfe6ef;
  border-radius: 9px;
  background: #fff;
}
.ops-table table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
.ops-table th {
  background: #f8fafc;
  color: #65768d;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}
.ops-table td,
.ops-table th {
  padding: 14px 16px;
  border-bottom: 1px solid #edf1f6;
  max-width: 330px;
  overflow-wrap: anywhere;
}
.ops-table td {
  color: #32465e;
}
.ops-table a {
  color: #2563eb;
}
.ops-empty {
  text-align: center;
  padding: 55px 25px !important;
  color: #8492a6 !important;
}
.ops-metrics {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin: 22px 0;
}
.ops-metrics article {
  padding: 22px;
  background: #fff;
  border: 1px solid #dfe6ef;
  border-radius: 9px;
}
.ops-metrics span {
  font-size: 13px;
  color: #70819a;
}
.ops-metrics strong {
  display: block;
  font-size: 30px;
  letter-spacing: -1px;
  margin-top: 14px;
  color: #172b49;
}
.ops-callout {
  padding: 22px;
  background: #eff5ff;
  border: 1px solid #dce8fd;
  border-radius: 9px;
  margin: 22px 0;
  line-height: 1.8;
}
.ops-chart {
  padding: 20px;
  background: white;
  border: 1px solid #dfe6ef;
  border-radius: 9px;
  margin: 18px 0;
}
.ops-chart > div {
  display: grid;
  grid-template-columns: 100px 1fr 35px;
  gap: 12px;
  align-items: center;
  margin: 12px 0;
  color: #6b7c94;
  font-size: 12px;
}
.ops-chart i {
  height: 16px;
  background: #6b97f2;
  border-radius: 3px;
}
.ops-chart b {
  color: #334b6a;
}
@media (max-width: 1000px) {
  .ops-metrics {
    grid-template-columns: repeat(3, 1fr);
  }
  .ops-filters {
    grid-template-columns: repeat(2, 1fr);
  }
  .ops-form {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 680px) {
  #ops-nav {
    position: static;
    width: 100%;
    padding: 14px;
    display: flex;
    overflow: auto;
    gap: 16px;
  }
  .ops-brand {
    display: none;
  }
  #ops-nav section {
    display: flex;
    gap: 4px;
    margin: 0;
  }
  #ops-nav small {
    display: none;
  }
  #ops-nav a {
    white-space: nowrap;
    padding: 9px 12px;
  }
  .ops-authenticated .admin-header,
  .ops-authenticated #admin-main {
    margin-left: 0;
  }
  .ops-authenticated #admin-main {
    padding: 20px 14px;
  }
  .ops-form {
    grid-template-columns: 1fr;
  }
  .ops-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .ops-metrics article {
    padding: 16px;
  }
  .ops-title {
    align-items: flex-start;
  }
  .ops-filters {
    padding: 15px;
    gap: 12px;
  }
  .admin-header {
    padding: 16px;
  }
}
dialog.ops-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(780px, calc(100vw - 40px));
  max-width: 780px;
  max-height: 88vh;
  padding: 0;
  border: 1px solid #dce3ef;
  border-radius: 18px;
  background: #fff;
  color: #172337;
  box-shadow: 0 28px 90px #0f172a55;
  overflow: auto;
}
dialog.ops-modal::backdrop {
  background: #0c142a99;
  backdrop-filter: blur(3px);
}
.ops-modal > header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid #e6eaf1;
  padding: 18px 24px;
}
.ops-modal > header h2 {
  font-size: 20px;
  margin: 0;
}
.ops-modal > header button {
  font-size: 26px;
  border: 0;
  background: #edf1f7;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  cursor: pointer;
}
.ops-modal-body {
  padding: 24px;
}
.ops-modal .ops-form {
  padding: 0;
  border: 0;
  margin: 0;
  box-shadow: none;
}
.ops-modal .ops-form h2 {
  display: none;
}
.ops-modal label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: #526078;
}
.ops-modal input,
.ops-modal select,
.ops-modal textarea {
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  color: #172337;
  border: 1px solid #ccd5e3;
  border-radius: 8px;
  padding: 11px;
  font: inherit;
}
.ops-modal .admin-form {
  display: grid;
  gap: 20px;
}
.ops-modal input[type='checkbox'] {
  width: auto;
}
.ops-modal .primary {
  color: #fff;
  background: #365fe8;
}
.ops-modal .secondary {
  color: #24324c;
  background: #edf1f7;
}
.ops-modal .form-error {
  color: #b42318;
}
.ops-modal-body > p {
  line-height: 1.7;
}
.ops-modal .ops-wide {
  grid-column: 1/-1;
}
.ops-table td {
  vertical-align: middle;
}
.ops-table small {
  display: block;
  color: #76859c;
  margin-top: 5px;
}
.ops-callout {
  border-left: 3px solid #365fe8;
}
.ops-metrics strong {
  font-variant-numeric: tabular-nums;
}
.ops-modal p {
  color: #617089;
}
.ops-modal .ops-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ops-modal .action-row {
  display: flex;
  gap: 12px;
}
.ops-modal button {
  padding: 10px 18px;
  border-radius: 8px;
}
.ops-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 680px) {
  .ops-modal .ops-form {
    grid-template-columns: 1fr;
  }
  .ops-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
