@font-face {
  font-family: "Borscha";
  src: url("/assets/fonts/Borscha-Regular.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Borscha";
  src: url("/assets/fonts/Borscha-Medium.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 500 900;
}

:root {
  --bg: #f6f6f4;
  --text: #161616;
  --muted: #686866;
  --line: #dededa;
  --panel-soft: #efefec;
  --brand-red: #f51f29;
  --logo-red: #ff3337;
  --logo-coral: #ff5a3f;
  --logo-orange: #ff8a42;
  --logo-gold: #ffd25c;
  --logo-ink: #121417;
  --font-ui: "Borscha", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body.login-body {
  position: relative;
  display: grid;
  min-height: 100vh;
  margin: 0;
  place-items: center;
  overflow: hidden;
  padding: 32px;
  background:
    linear-gradient(135deg, rgba(5, 5, 5, 0.035), transparent 34%),
    linear-gradient(180deg, #ffffff, var(--bg));
  color: var(--text);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

body.app-body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #ffffff, var(--bg));
  color: var(--text);
  font-family: var(--font-ui);
  padding: 22px 16px 34px;
}

.login-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.login-bg::before {
  position: absolute;
  inset: -18% -12%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1240' height='520' viewBox='0 0 1240 520'%3E%3Cpath d='M-90 360 C 160 205 335 438 600 292 S 975 180 1330 292' fill='none' stroke='%23050505' stroke-width='3' stroke-opacity='.16'/%3E%3Cpath d='M-90 410 C 168 266 355 482 620 345 S 1005 242 1330 360' fill='none' stroke='%23050505' stroke-width='2' stroke-opacity='.10'/%3E%3Cpath d='M-90 216 C 165 105 355 290 615 178 S 1000 88 1330 190' fill='none' stroke='%23050505' stroke-width='2' stroke-opacity='.08'/%3E%3C/svg%3E");
  background-position: 50% 48%;
  background-repeat: repeat-x;
  background-size: 1180px 495px;
  content: "";
  animation: wave-drift 96s linear infinite;
}

.login-bg::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(246,246,244,0.82)),
    radial-gradient(circle at 78% 18%, rgba(5,5,5,0.04), transparent 34%);
  content: "";
}

.stream-line {
  position: absolute;
  left: -35vw;
  width: 34vw;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(5,5,5,0.16), rgba(5,5,5,0.08), transparent);
  opacity: 0.18;
  transform: rotate(-8deg);
}

.line-one { top: 25%; animation: stream-pass 28s linear infinite; }
.line-two { top: 52%; animation: stream-pass 36s linear -14s infinite; }
.line-three { top: 78%; animation: stream-pass 44s linear -25s infinite; }

.login-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 1040px);
}

body.app-body .login-shell {
  width: 100%;
}

.login-panel {
  display: grid;
  grid-template-columns: minmax(440px, 560px) minmax(320px, 430px);
  grid-template-areas: "identity content";
  gap: 28px;
  align-items: center;
  justify-content: center;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
  animation: login-card-in 1900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.login-brand {
  grid-area: identity;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  animation: login-content-in 1700ms cubic-bezier(0.16, 1, 0.3, 1) 220ms both;
}

.login-identity-mark {
  display: block;
  width: min(620px, 100%);
  height: min(620px, 78vh);
  object-fit: cover;
  object-position: 50% 24%;
  border-radius: 0;
}

.login-brain-lockup {
  display: none;
}

.login-content {
  grid-area: content;
  display: grid;
  gap: 22px;
  align-content: center;
  justify-items: stretch;
  margin-left: -96px;
  max-width: 430px;
  animation: login-content-in 1800ms cubic-bezier(0.16, 1, 0.3, 1) 520ms both;
}

.login-copy {
  grid-area: auto;
}

.eyebrow {
  display: inline-flex;
  border: 1px solid rgba(245,31,41,0.24);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(245,31,41,0.08);
  color: var(--brand-red);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.login-copy h2 {
  max-width: 430px;
  margin: 16px 0 0;
  color: var(--text);
  font-size: 44px;
  font-weight: 850;
  line-height: 0.98;
}

.login-copy p {
  max-width: 430px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.login-action {
  grid-area: auto;
  display: grid;
  gap: 10px;
  width: 100%;
}

.login-panel.logo-only {
  display: block;
  width: fit-content;
  margin: 0 0 8px;
}

.login-panel.logo-only .login-copy,
.login-panel.logo-only .login-action,
.login-panel.logo-only .login-content {
  display: none;
}

.okta-login {
  position: relative;
  display: inline-flex;
  min-height: 52px;
  width: 100%;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(245,31,41,0.62);
  border-radius: 6px;
  background: var(--brand-red);
  box-shadow: 0 18px 42px rgba(245,31,41,0.22);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.okta-login::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 32%, rgba(255,255,255,0.52) 45%, transparent 58%);
  content: "";
  opacity: 0.16;
  transform: translateX(-130%);
  animation: button-sheen 14s ease-in-out infinite;
}

.okta-login span,
.okta-login b {
  position: relative;
  z-index: 1;
}

.okta-login b {
  display: grid;
  width: 28px;
  height: 28px;
  margin-left: 8px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
}

.status-text {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.status-text.error {
  color: #a5181f;
}

.status-text.ok {
  color: #136a34;
}

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(246,246,244,0.74);
  backdrop-filter: blur(8px);
}

.auth-dialog {
  display: grid;
  width: min(360px, calc(100vw - 32px));
  justify-items: center;
  gap: 10px;
  border: 1px solid rgba(22,22,22,0.12);
  border-radius: 8px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 22px 60px rgba(22,22,22,0.16);
  padding: 22px;
  text-align: center;
}

.auth-dialog img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.auth-dialog strong {
  font-size: 16px;
}

.auth-dialog p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.auth-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(245,31,41,0.16);
  border-top-color: var(--brand-red);
  border-radius: 999px;
  animation: auth-spin 760ms linear infinite;
}

.app-panel {
  width: 100%;
  max-width: none;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.app-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
}

.app-header-controls {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 18px;
  margin-left: auto;
  text-align: right;
}

.app-user-block {
  padding-top: 5px;
}

.header-actions {
  display: flex;
  min-width: 0;
  max-width: 100%;
  flex: 1 1 720px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.view-tabs {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  flex: 1 1 620px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-right: 4px;
}

.app-brand {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  align-self: flex-start;
  margin-top: -32px;
  margin-left: -88px;
}

.app-brand-link {
  display: block;
  line-height: 0;
  cursor: pointer;
}

.app-brand-link:focus {
  border-radius: 8px;
  outline: 2px solid rgba(255,90,63,0.34);
  outline-offset: 4px;
}

.app-logo {
  width: 340px;
  height: 340px;
  display: block;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  box-shadow: none;
}

.app-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.mono {
  margin: 4px 0 0;
  font-family: var(--font-ui);
  color: var(--muted);
  font-size: 11px;
}

.app-btn {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 10px;
  cursor: pointer;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.view-tab.active {
  border-color: rgba(245,31,41,0.34);
  background: rgba(245,31,41,0.08);
  color: #a5181f;
}

.dashboard-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-top: -44px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.dashboard-title h1 {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 34px;
  line-height: 1.05;
}

.dashboard-title .eyebrow {
  margin: 0;
}

.telemetry-chip {
  display: inline-flex;
  min-width: 118px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  background: #ffffff;
  color: var(--muted);
  font-size: 12px;
}

.telemetry-chip span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #a6a6a2;
}

.telemetry-chip.live span { background: #1f7a3a; }
.telemetry-chip.offline span { background: #8a6a12; }
.telemetry-chip.loading span { background: #686866; }

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

.metric {
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
}

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

.metric strong {
  display: block;
  margin-top: 11px;
  color: var(--text);
  font-size: 30px;
  line-height: 1;
}

.integrity-metric strong {
  color: #9e1b22;
}

.page-view {
  margin-top: 14px;
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr);
  gap: 14px;
  margin-top: 14px;
}

.support-intake-card,
.support-explainer-card,
.support-result {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  padding: 18px;
}

.support-explainer-card {
  align-self: start;
}

.support-card-head,
.support-result-head,
.support-handoff {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.support-card-head h3,
.support-result-head h2,
.support-receipt-grid h3 {
  margin: 5px 0 0;
}

.support-intake-card > label {
  display: block;
  margin: 18px 0 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.support-intake-section {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.support-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 14px;
}

.support-section-heading > span {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  place-items: center;
  border-radius: 999px;
  background: #171717;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.support-section-heading h4,
.support-section-heading p {
  margin: 0;
}

.support-section-heading h4 {
  font-size: 15px;
}

.support-section-heading p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

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

.support-form-grid label {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.support-form-grid label > span,
.support-evidence-group legend {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.support-field-wide {
  grid-column: 1 / -1;
}

.support-form-grid input,
.support-form-grid select,
.support-form-grid textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fcfcfb;
  color: var(--text);
  font: inherit;
  padding: 11px 12px;
}

.support-form-grid input[readonly] {
  background: #f2f2ef;
  color: var(--muted);
}

.support-form-grid input:focus,
.support-form-grid select:focus,
.support-form-grid textarea:focus {
  outline: 3px solid rgba(245, 31, 41, 0.10);
  border-color: var(--brand-red);
}

.support-evidence-group {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
}

.support-evidence-group + .support-evidence-group {
  margin-top: 12px;
}

.support-evidence-group legend {
  padding: 0 6px;
}

.support-context-details {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fcfcfb;
  padding: 0 14px 14px;
}

.support-context-details summary {
  cursor: pointer;
  padding: 13px 0;
  font-size: 13px;
  font-weight: 800;
}

.support-confirmations {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.support-confirmations label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.support-confirmations input {
  margin-top: 2px;
}

.support-intake-card textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fcfcfb;
  color: var(--text);
  font: inherit;
  padding: 14px;
}

#support-report {
  min-height: 210px;
  font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.support-intake-card textarea:focus {
  outline: 3px solid rgba(245, 31, 41, 0.10);
  border-color: var(--brand-red);
}

.support-warning {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  border-left: 3px solid #b78103;
  background: #fff8e5;
  color: #59470e;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.45;
}

.support-form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.support-form-actions .mono {
  margin-left: auto;
  color: var(--muted);
}

.support-explainer-card ol {
  margin: 16px 0;
  padding-left: 22px;
}

.support-explainer-card li,
.support-explainer-card p {
  color: var(--muted);
  line-height: 1.6;
}

.support-result {
  margin-top: 14px;
}

.support-result-summary,
#support-result-summary {
  max-width: 820px;
  color: var(--muted);
  line-height: 1.55;
}

.support-receipt-meta {
  display: grid;
  justify-items: end;
  gap: 7px;
}

.support-receipt-meta code {
  color: var(--muted);
}

.support-receipt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.support-receipt-grid > article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fcfcfb;
  padding: 14px;
}

.support-receipt-grid dl {
  display: grid;
  grid-template-columns: minmax(90px, auto) minmax(0, 1fr);
  gap: 7px 10px;
  margin: 14px 0 0;
}

.support-receipt-grid dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.support-receipt-grid dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

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

.support-check {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr);
  gap: 9px;
}

.support-check > span {
  width: 9px;
  height: 9px;
  margin-top: 4px;
  border-radius: 999px;
  background: #8e8e8a;
}

.support-check.verified > span,
.support-check.not_denied_by_brain > span { background: #1f7a3a; }
.support-check.mismatch > span,
.support-check.denied > span { background: #bd1c24; }
.support-check.unverified > span { background: #b78103; }

.support-check strong {
  font-size: 12px;
}

.support-check p,
.support-receipt-grid li,
#support-reauth {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.support-owner {
  font-weight: 800;
}

.support-handoff {
  align-items: center;
  margin-top: 12px;
  border-radius: 10px;
  background: #171717;
  color: #fff;
  padding: 14px;
}

.support-handoff p {
  margin: 5px 0 0;
  line-height: 1.5;
}

.support-handoff .dashboard-guide-eyebrow {
  color: #bdbdb7;
}

body.support-company-mode .view-tabs .view-tab:not(#support-link),
body.support-company-mode #server-integration-link,
body.support-company-mode #user-integration-link {
  display: none;
}

body.support-company-mode .view-tabs {
  flex: 0 0 auto;
}

body.support-company-mode .app-user-block h3 {
  white-space: nowrap;
}

@media (max-width: 980px) {
  .support-layout,
  .support-receipt-grid {
    grid-template-columns: 1fr;
  }

  .support-form-actions .mono {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 620px) {
  body.support-route .app-header {
    gap: 14px;
  }

  body.support-route .app-brand {
    align-items: center;
    margin: 0;
  }

  body.support-route .app-logo {
    width: 96px;
    height: 96px;
  }

  body.support-route .app-header-controls {
    width: 100%;
    flex: 0 0 auto;
    align-items: stretch;
    margin-left: 0;
  }

  body.support-route .header-actions {
    width: 100%;
    flex: 0 0 auto;
  }

  body.support-route .app-user-block {
    padding-top: 0;
    text-align: left;
  }

  body.support-route .view-tabs {
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.support-company-mode .view-tabs {
    display: block;
  }

  body.support-route .dashboard-title {
    margin-top: 0;
  }

  body.support-route .support-guide,
  body.support-route .support-card-head,
  body.support-route .support-result-head,
  body.support-route .support-handoff {
    align-items: flex-start;
    flex-direction: column;
  }

  body.support-route .support-intake-card,
  body.support-route .support-explainer-card,
  body.support-route .support-result {
    padding: 14px;
  }

  body.support-route .support-form-grid {
    grid-template-columns: 1fr;
  }

  body.support-route .support-field-wide {
    grid-column: auto;
  }

  body.support-route .support-evidence-group {
    padding: 12px;
  }
}

.dashboard-section {
  margin-top: 24px;
}

.noc-section {
  margin-top: 18px;
}

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

.noc-metric {
  min-height: 66px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 11px 12px;
}

.noc-metric span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.noc-metric strong {
  display: block;
  margin-top: 7px;
  font-size: 22px;
  line-height: 1;
}

.noc-search-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
}

.noc-search-form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(160px, 220px) auto;
  width: min(100%, 860px);
  align-items: end;
  gap: 10px;
}

.noc-search-form label {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.noc-search-form label span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.noc-search-form input,
.noc-search-form select {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  padding: 8px 10px;
}

.noc-search-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#noc-search-status {
  margin: 0;
  text-align: right;
}

.noc-flow-shell {
  position: relative;
  margin-bottom: 10px;
  border: 1px solid rgba(22,22,22,0.14);
  border-radius: 8px;
  background: #10100f;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  color: #ffffff;
  padding: 12px;
  overflow: hidden;
}

.noc-flow-shell::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,0.035), transparent),
    radial-gradient(circle at 50% 50%, rgba(245,31,41,0.16), transparent 34%),
    radial-gradient(circle at 78% 34%, rgba(255,138,66,0.12), transparent 28%);
  content: "";
  pointer-events: none;
}

.noc-flow-shell .section-head {
  position: relative;
  z-index: 1;
}

.noc-flow-shell .section-head h2 {
  color: #ffffff;
}

.noc-flow-map {
  position: relative;
  z-index: 1;
  min-height: 310px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), transparent),
    radial-gradient(circle at 50% 50%, rgba(245,31,41,0.08), transparent 40%),
    #0c0c0b;
}

.noc-flow-map .dashboard-empty {
  margin: 14px;
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.72);
}

.noc-flow-svg {
  display: block;
  width: 100%;
  min-height: 310px;
}

.noc-flow-grid line {
  stroke: rgba(255,255,255,0.055);
  stroke-width: 1;
}

.noc-flow-link {
  fill: none;
  stroke: var(--logo-red);
  stroke-linecap: round;
  stroke-dasharray: 10 18;
  opacity: 0.58;
  animation: flow-dash 1600ms linear infinite;
}

.noc-flow-link-group.denied .noc-flow-link {
  stroke: var(--logo-orange);
}

.noc-flow-link-group.failed .noc-flow-link {
  stroke: var(--logo-gold);
}

.noc-flow-hit {
  fill: none;
  stroke: transparent;
  pointer-events: stroke;
  cursor: crosshair;
}

.noc-flow-pulse {
  fill: #ffffff;
  opacity: 0.82;
  filter: url(#flow-glow);
  pointer-events: none;
}

.noc-flow-link-group.denied .noc-flow-pulse {
  fill: var(--logo-orange);
}

.noc-flow-link-group.failed .noc-flow-pulse {
  fill: var(--logo-gold);
}

.noc-flow-link-group:hover .noc-flow-link {
  opacity: 1;
  stroke-width: 5;
}

.noc-flow-node rect {
  fill: rgba(255,255,255,0.9);
  stroke: rgba(255,255,255,0.5);
  stroke-width: 1;
}

.noc-flow-node.customer rect {
  fill: rgba(255,255,255,0.97);
}

.noc-flow-node.api rect {
  fill: rgba(255,255,255,0.9);
}

.noc-flow-node.attention rect {
  stroke: rgba(245,31,41,0.88);
  stroke-width: 2;
}

.noc-flow-node-title {
  fill: var(--text);
  font-size: 11px;
  font-weight: 900;
}

.noc-flow-node-meta {
  fill: var(--muted);
  font-size: 8.5px;
  font-weight: 800;
}

.noc-flow-brain .brain-ring {
  fill: none;
  stroke: rgba(245,31,41,0.36);
  stroke-width: 2;
  transform-origin: center;
  animation: brain-ring-pulse 2200ms ease-in-out infinite;
}

.noc-flow-brain .brain-ring.inner {
  stroke: rgba(255,138,66,0.42);
  animation-delay: -900ms;
}

.noc-flow-brain .brain-core {
  fill: rgba(18,20,23,0.96);
  stroke: rgba(255,255,255,0.72);
  stroke-width: 2;
  filter: url(#flow-glow);
}

.brain-logo {
  pointer-events: none;
}

.brain-meta {
  fill: rgba(255,255,255,0.7);
  font-size: 9px;
  font-weight: 800;
}

.noc-flow-tooltip {
  position: fixed;
  z-index: 70;
  width: min(360px, calc(100vw - 20px));
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  background: rgba(16,16,15,0.96);
  box-shadow: 0 22px 54px rgba(0,0,0,0.34);
  color: #ffffff;
  padding: 12px;
  pointer-events: none;
}

.noc-flow-tooltip strong {
  display: block;
  margin-bottom: 8px;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.noc-flow-tooltip div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 7px;
  color: rgba(255,255,255,0.64);
  font-size: 11px;
}

.noc-flow-tooltip b {
  overflow-wrap: anywhere;
  color: #ffffff;
  font-weight: 800;
}

.rate-metric-grid,
.route-access-metric-grid,
.retention-metric-grid,
.revoke-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.dashboard-guide {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.55fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--text);
  border-radius: 8px;
  background: linear-gradient(110deg, #ffffff, #fafafa);
  padding: 15px 16px;
}

.dashboard-guide h2,
.dashboard-guide p {
  margin: 0;
}

.dashboard-guide h2 {
  margin-top: 3px;
  font-size: 18px;
  line-height: 1.2;
}

.dashboard-guide div > p {
  max-width: 900px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.dashboard-guide-eyebrow {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-guide-note {
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  padding-left: 16px;
}

.dashboard-guide-note strong {
  color: var(--text);
}

.danger-guide {
  border-left-color: #9e2121;
  background: linear-gradient(110deg, rgba(158,33,33,0.055), #ffffff 48%);
}

.rate-search-panel,
.route-access-search-panel,
.retention-search-panel,
.revoke-search-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
}

.dashboard-controls {
  display: block;
}

.dashboard-controls > summary,
.dashboard-disclosure > summary,
.retention-customer-head,
.retention-key-card > .retention-key-head,
.revoke-customer-head,
.route-access-customer-head {
  cursor: pointer;
  list-style: none;
}

.dashboard-controls > summary::-webkit-details-marker,
.dashboard-disclosure > summary::-webkit-details-marker,
.retention-customer-head::-webkit-details-marker,
.retention-key-card > .retention-key-head::-webkit-details-marker,
.revoke-customer-head::-webkit-details-marker,
.route-access-customer-head::-webkit-details-marker {
  display: none;
}

.dashboard-controls > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 28px;
}

.dashboard-controls > summary span {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.dashboard-controls > summary small,
.dashboard-disclosure > summary small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.dashboard-controls > summary::before,
.dashboard-disclosure > summary::before,
.retention-customer-head::before,
.retention-key-card > .retention-key-head::before,
.revoke-customer-head::before,
.route-access-customer-head::before {
  display: inline-grid;
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  content: "+";
  font-size: 14px;
  line-height: 1;
}

.dashboard-controls[open] > summary::before,
.dashboard-disclosure[open] > summary::before,
.retention-customer-group[open] > .retention-customer-head::before,
.retention-key-card[open] > .retention-key-head::before,
.revoke-customer-group[open] > .revoke-customer-head::before,
.route-access-customer-group[open] > .route-access-customer-head::before {
  content: "−";
}

.dashboard-controls[open] > summary {
  margin-bottom: 10px;
  border-bottom: 1px solid var(--panel-soft);
  padding-bottom: 9px;
}

.dashboard-disclosure > summary {
  margin: 0;
}

.dashboard-disclosure > summary > div {
  display: grid;
  flex: 1;
  gap: 3px;
}

.dashboard-disclosure[open] > summary {
  margin-bottom: 10px;
  border-bottom: 1px solid var(--panel-soft);
  padding-bottom: 9px;
}

.rate-search-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) repeat(5, minmax(130px, 0.7fr)) auto;
  width: min(100%, 1280px);
  align-items: end;
  gap: 10px;
}

.retention-search-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(130px, 0.55fr)) auto;
  width: min(100%, 1280px);
  align-items: end;
  gap: 10px;
}

.route-access-search-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 220px) minmax(150px, 220px) minmax(140px, 190px) auto;
  width: min(100%, 1280px);
  align-items: end;
  gap: 10px;
}

.revoke-search-form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(160px, 220px) auto;
  width: min(100%, 900px);
  align-items: end;
  gap: 10px;
}

.rate-search-form label,
.route-access-search-form label,
.retention-search-form label,
.revoke-search-form label {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.rate-search-form label span,
.route-access-search-form label span,
.retention-search-form label span,
.revoke-search-form label span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.rate-search-form input,
.rate-search-form select,
.route-access-search-form input,
.route-access-search-form select,
.retention-search-form input,
.retention-search-form select,
.revoke-search-form input,
.revoke-search-form select {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  padding: 8px 10px;
}

.rate-search-actions,
.route-access-search-actions,
.retention-search-actions,
.revoke-search-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#rate-search-status,
#route-access-search-status,
#retention-search-status,
#revoke-search-status {
  margin: 0;
  text-align: right;
}

.rate-limit-list {
  display: grid;
  gap: 10px;
}

.compact-results-section {
  display: grid;
  gap: 8px;
}

.compact-results-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.compact-results-head h2,
.compact-results-head p {
  margin: 0;
}

.compact-results-head h2 {
  font-size: 15px;
}

.compact-results-head p {
  color: var(--muted);
  font-size: 11px;
}

.dashboard-load-state {
  display: grid;
  justify-items: start;
  gap: 8px;
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 16px;
}

.dashboard-load-state h2,
.dashboard-load-state p {
  margin: 0;
}

.dashboard-load-state p {
  max-width: 720px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.dashboard-load-state.error {
  border-color: rgba(158,33,33,0.24);
  background: linear-gradient(90deg, rgba(158,33,33,0.055), #ffffff 220px);
}

.dashboard-load-skeleton {
  display: grid;
  width: 100%;
  gap: 8px;
}

.dashboard-load-skeleton span {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ececea 25%, #f7f7f5 45%, #ececea 65%);
  background-size: 240% 100%;
  animation: dashboard-skeleton-pulse 1.25s ease-in-out infinite;
}

.dashboard-load-skeleton span:nth-child(1) { width: min(72%, 560px); }
.dashboard-load-skeleton span:nth-child(2) { width: min(94%, 760px); }
.dashboard-load-skeleton span:nth-child(3) { width: min(56%, 440px); }

@keyframes dashboard-skeleton-pulse {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-load-skeleton span {
    animation: none;
  }
}

.rate-ops-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(540px, 1.22fr);
  gap: 10px;
  margin-bottom: 10px;
}

.rate-pressure-list,
.rate-policy-workbench {
  display: grid;
  gap: 8px;
}

.rate-pressure-row {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--panel-soft);
  padding-top: 9px;
}

.rate-pressure-row.attention .rate-pressure-title strong {
  color: #9e2121;
}

.rate-pressure-title {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.rate-pressure-title strong {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rate-pressure-title span {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.rate-pressure-bars {
  display: grid;
  gap: 4px;
}

.rate-pressure-bar {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--panel-soft);
}

.rate-pressure-bar b {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.rate-pressure-bar.recent b {
  background: var(--logo-red);
}

.rate-pressure-bar.exceptions b {
  background: var(--logo-orange);
}

.rate-pressure-bar.missing b {
  background: var(--logo-gold);
}

.rate-workbench-row {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfb;
  padding: 10px;
}

.rate-workbench-head {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.rate-workbench-status {
  flex: 0 0 auto;
  margin: 0;
  text-align: right;
}

.rate-workbench-status.ok {
  color: #1f7a3a;
}

.rate-workbench-status.error {
  color: #9e2121;
}

.rate-workbench-fields {
  display: grid;
  grid-template-columns: repeat(6, minmax(84px, 1fr));
  gap: 8px;
}

.rate-workbench-fields label {
  display: grid;
  gap: 5px;
}

.rate-workbench-fields span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.rate-workbench-fields input {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  padding: 7px 8px;
}

.rate-workbench-actions {
  display: flex;
  justify-content: flex-end;
}

.retention-key-list,
.retention-customer-group,
.retention-customer-keys {
  display: grid;
  gap: 10px;
}

.retention-customer-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px 12px;
}

.retention-customer-head h2 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 15px;
}

.retention-customer-head p {
  margin: 0;
  text-align: right;
}

.retention-key-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-left-width: 6px;
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.retention-key-card.active {
  border-left-color: #1f7a3a;
  background: linear-gradient(90deg, rgba(31,122,58,0.055), #ffffff 190px);
}

.retention-key-card.stale {
  border-color: rgba(158,33,33,0.28);
  border-left-color: #9e2121;
  background: linear-gradient(90deg, rgba(158,33,33,0.075), #ffffff 190px);
}

.retention-key-card.revoked,
.retention-key-card.auto_revoked {
  border-left-color: #6b7280;
  background: linear-gradient(90deg, rgba(107,114,128,0.08), #fbfbfb 190px);
}

.retention-key-head,
.retention-key-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.retention-key-head {
  justify-content: space-between;
  align-items: flex-start;
}

.user-access-summary-title {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 4px;
}

.user-access-summary-title strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-access-summary-title small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.retention-key-card[open] > .retention-key-head {
  border-bottom: 1px solid var(--panel-soft);
  padding-bottom: 10px;
}

.retention-key-title h3 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.retention-key-head p {
  margin: 0;
  text-align: right;
}

.retention-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.retention-badge.active {
  background: rgba(31,122,58,0.14);
  color: #17612d;
}

.retention-badge.stale {
  background: rgba(158,33,33,0.14);
  color: #9e2121;
}

.retention-badge.revoked,
.retention-badge.auto_revoked {
  background: rgba(107,114,128,0.16);
  color: #4b5563;
}

.retention-key-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.retention-key-grid div {
  min-width: 0;
  border-top: 1px solid var(--panel-soft);
  padding-top: 8px;
}

.retention-key-grid dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.retention-key-grid dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
}

.retention-route-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rate-key-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.rate-key-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  cursor: pointer;
  list-style: none;
}

.rate-key-card[open] .rate-key-head {
  border-bottom: 1px solid var(--line);
}

.rate-key-head::-webkit-details-marker {
  display: none;
}

.rate-key-head::before {
  display: inline-grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  content: "+";
  font-size: 14px;
  line-height: 1;
}

.rate-key-card[open] .rate-key-head::before {
  content: "-";
}

.rate-key-title {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.rate-key-title h3 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.rate-key-body {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.rate-key-grid,
.rate-policy-grid {
  display: grid;
  gap: 8px;
  margin: 0;
}

.rate-key-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rate-policy-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.rate-key-grid div,
.rate-policy-grid div {
  min-width: 0;
  border-top: 1px solid var(--panel-soft);
  padding-top: 8px;
}

.rate-key-grid dt,
.rate-policy-grid dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.rate-key-grid dd,
.rate-policy-grid dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
}

.rate-route-list {
  display: grid;
  gap: 8px;
}

.rate-route {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfb;
  padding: 10px;
}

.rate-route.missing-policy {
  border-color: rgba(158,33,33,0.22);
  background: rgba(158,33,33,0.035);
}

.rate-route-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0;
  cursor: pointer;
  list-style: none;
}

.rate-route-head::-webkit-details-marker {
  display: none;
}

.rate-route-head::before {
  display: inline-grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  content: "+";
  font-size: 14px;
  line-height: 1;
}

.rate-route[open] > .rate-route-head::before {
  content: "−";
}

.rate-route[open] > .rate-route-head {
  margin-bottom: 10px;
  border-bottom: 1px solid var(--panel-soft);
  padding-bottom: 9px;
}

.rate-route-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.rate-route-title strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.rate-policy-badge {
  display: inline-flex;
  min-width: 104px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.rate-policy-badge.active {
  background: rgba(31,122,58,0.1);
  color: #1f7a3a;
}

.rate-policy-badge.missing {
  background: rgba(158,33,33,0.12);
  color: #9e2121;
}

.revoke-application-list {
  display: grid;
  gap: 12px;
}

.route-access-list,
.route-access-apps {
  display: grid;
  gap: 10px;
}

.route-access-customer-group {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.72);
  padding: 12px;
}

.route-access-usage-list {
  display: grid;
  gap: 8px;
}

.route-access-usage-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.3fr) minmax(180px, auto);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-left: 5px solid var(--muted);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px 12px;
}

.route-access-usage-row.allowed {
  border-left-color: #1f7a3a;
}

.route-access-usage-row.denied {
  border-left-color: #9e2121;
}

.route-access-usage-client,
.route-access-usage-route,
.route-access-usage-outcome {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.route-access-usage-client strong,
.route-access-usage-route strong {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-access-usage-client span,
.route-access-usage-route span,
.route-access-usage-outcome span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-access-usage-outcome {
  justify-items: end;
  text-align: right;
}

.route-access-customer-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--text);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px 14px;
}

.route-access-eyebrow {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.route-access-customer-head h2 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 20px;
  line-height: 1.1;
}

.route-access-customer-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.route-access-customer-routes,
.route-access-customer-logs {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.72);
  padding: 10px;
}

.route-access-customer-logs {
  background: rgba(255,255,255,0.9);
}

.route-access-subsection-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--panel-soft);
  padding-bottom: 8px;
}

.route-access-subsection-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.2;
}

.route-access-subsection-head p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.route-access-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.route-access-app-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--panel-soft);
  padding-bottom: 10px;
}

.route-access-app-title {
  min-width: 0;
}

.route-access-app-title h3 {
  display: inline;
  margin: 0 8px 0 0;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.25;
}

.route-access-app-title p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.route-access-app-summary {
  display: grid;
  grid-template-columns: auto auto;
  gap: 2px 8px;
  min-width: 94px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfb;
  padding: 8px 10px;
  text-align: right;
}

.route-access-app-summary strong {
  font-size: 15px;
  line-height: 1;
}

.route-access-app-summary span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.route-access-app-detail-grid,
.route-access-route-detail-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

.route-access-app-detail,
.route-access-route-detail {
  display: grid;
  min-width: 0;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfb;
  padding: 7px 8px;
}

.route-access-app-detail b,
.route-access-route-detail b {
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.route-access-app-detail em,
.route-access-route-detail em {
  overflow: hidden;
  color: var(--text);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
}

.route-access-route-list {
  display: grid;
  gap: 6px;
}

.route-access-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) minmax(118px, auto);
  align-items: start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfb;
  padding: 9px 10px;
}

.route-access-row.active {
  border-color: rgba(31,122,58,0.28);
  background: rgba(31,122,58,0.045);
}

.route-access-row.disabled {
  border-color: rgba(158,33,33,0.22);
  background: rgba(158,33,33,0.045);
}

.route-access-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #1f7a3a;
}

.route-access-row-body {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.route-access-row-top {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.route-access-row-body strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-access-row-body span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-access-row-body > span {
  color: var(--muted);
  font-size: 11px;
}

.route-access-row-details {
  margin-top: 2px;
}

.route-access-row-details > summary {
  width: max-content;
  cursor: pointer;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  list-style: none;
  text-transform: uppercase;
}

.route-access-row-details > summary::-webkit-details-marker {
  display: none;
}

.route-access-row-details > summary::before {
  content: "+ ";
}

.route-access-row-details[open] > summary::before {
  content: "− ";
}

.route-access-row-details[open] > .route-access-route-detail-grid {
  margin-top: 7px;
}

.route-access-product-pill {
  display: inline-flex;
  flex: 0 0 auto;
  max-width: 180px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  padding: 3px 8px;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .dashboard-guide {
    grid-template-columns: 1fr;
  }

  .dashboard-guide-note {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding-top: 11px;
    padding-left: 0;
  }

  .route-access-app-detail-grid,
  .route-access-route-detail-grid {
    grid-template-columns: 1fr;
  }

  .route-access-usage-row {
    grid-template-columns: 1fr;
  }

  .route-access-usage-outcome {
    justify-items: start;
    text-align: left;
  }
}

.revoke-customer-group {
  display: grid;
  gap: 8px;
}

.revoke-customer-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px 12px;
}

.revoke-customer-head h2 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 15px;
}

.revoke-customer-head p {
  margin: 0;
  text-align: right;
}

.revoke-customer-apps {
  display: grid;
  gap: 8px;
}

.revoke-success {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
  border: 1px solid rgba(31,122,58,0.22);
  border-radius: 8px;
  background: rgba(31,122,58,0.06);
  color: #1f7a3a;
  padding: 12px;
}

.revoke-success p {
  margin: 0;
}

.revoke-application-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-left-width: 6px;
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.revoke-application-card.active {
  border-left-color: #1f7a3a;
  background: linear-gradient(90deg, rgba(31,122,58,0.055), #ffffff 180px);
}

.revoke-application-card.deleted {
  border-color: rgba(158,33,33,0.24);
  border-left-color: #9e2121;
  background: linear-gradient(90deg, rgba(158,33,33,0.07), #fbfbfb 190px);
}

.revoke-application-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.revoke-application-title {
  min-width: 0;
}

.revoke-application-title h3 {
  display: inline;
  margin: 0 8px 0 0;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.access-state {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  margin-left: 6px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.access-state.active {
  background: rgba(31,122,58,0.14);
  color: #17612d;
}

.access-state.deleted {
  background: rgba(158,33,33,0.14);
  color: #9e2121;
}

.revoke-application-title p {
  margin: 7px 0 0;
  overflow-wrap: anywhere;
}

.revoke-application-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}

.danger-action {
  border-color: rgba(158,33,33,0.28);
  background: rgba(245,31,41,0.08);
  color: #9e2121;
}

.danger-action:hover:not(:disabled),
.danger-action:focus:not(:disabled) {
  background: rgba(245,31,41,0.12);
}

.revoke-application-card.deleted .danger-action:disabled {
  border-color: rgba(158,33,33,0.18);
  background: rgba(158,33,33,0.07);
  color: #9e2121;
  opacity: 1;
}

.revoke-product-strip,
.revoke-route-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.revoke-app-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.revoke-app-grid div {
  min-width: 0;
  border-top: 1px solid var(--panel-soft);
  padding-top: 8px;
}

.revoke-app-grid dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.revoke-app-grid dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
}

.revoke-route-pill {
  display: inline-flex;
  max-width: 240px;
  min-height: 26px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fafafa;
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.revoke-route-pill.muted,
.revoke-card-confirmation {
  color: var(--muted);
}

.revoke-confirm-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.7fr) auto;
  gap: 10px;
  align-items: end;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.revoke-confirm-copy {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.revoke-confirm-form label {
  display: grid;
  gap: 5px;
}

.revoke-confirm-form label span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.revoke-confirm-form input {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  padding: 8px 10px;
}

.revoke-confirm-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.revoke-confirm-status {
  margin: 0;
}

.revoke-confirm-status.error {
  color: #9e2121;
}

.revoke-confirm-status.ok {
  color: #1f7a3a;
}

.noc-stream {
  display: grid;
  gap: 8px;
}

.noc-latest-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.noc-latest-card {
  display: grid;
  gap: 7px;
  min-width: 0;
  border: 1px solid var(--line);
  border-left: 5px solid #1f7a3a;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
}

.noc-latest-card.attention {
  border-left-color: #9e2121;
  background: linear-gradient(90deg, rgba(158,33,33,0.055), #ffffff 180px);
}

.noc-latest-card-head {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.noc-latest-card-head strong {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.noc-latest-card-head span {
  min-width: 28px;
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  padding: 3px 8px;
  text-align: center;
}

.noc-customer {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.noc-customer-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}

.noc-customer[open] .noc-customer-head {
  border-bottom: 1px solid var(--line);
}

.noc-customer-head::-webkit-details-marker {
  display: none;
}

.noc-customer-head::before {
  display: inline-grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  content: "+";
  font-size: 14px;
  line-height: 1;
}

.noc-customer[open] .noc-customer-head::before {
  content: "-";
}

.noc-customer-title {
  display: inline-flex;
  min-width: 190px;
  align-items: center;
  gap: 8px;
}

.noc-customer-meta-block {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.noc-customer-head h3 {
  margin: 0;
  font-size: 14px;
}

.noc-customer-count {
  display: inline-flex;
  min-width: 30px;
  justify-content: center;
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  padding: 3px 8px;
}

.noc-api-strip {
  display: inline-flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.noc-api-pill,
.noc-api-cell {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.noc-api-pill {
  min-height: 26px;
  max-width: 148px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fafafa;
  padding: 3px 8px 3px 5px;
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
}

.noc-api-logo,
.noc-api-initial {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.noc-api-logo {
  display: block;
  object-fit: contain;
}

.noc-api-initial {
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.noc-api-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.noc-integrity-mark {
  max-width: 82px;
  overflow: hidden;
  border-radius: 999px;
  padding: 2px 6px;
  background: rgba(104,104,102,0.12);
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.noc-integrity-mark.warning {
  background: rgba(245,31,41,0.1);
  color: #9e1b22;
}

.noc-integrity-mark.critical {
  background: rgba(245,31,41,0.18);
  color: #7a1117;
}

.noc-integrity-mark.info {
  background: rgba(255,138,66,0.16);
  color: #7a4a13;
}

.noc-table {
  display: grid;
  grid-template-columns: 92px 132px minmax(190px, 1.2fr) minmax(180px, 1fr) minmax(280px, 1.4fr) minmax(170px, 0.9fr) 98px 80px;
  overflow-x: auto;
}

.noc-latest-table {
  grid-template-columns: 92px minmax(170px, 1fr) 132px minmax(190px, 1.1fr) minmax(170px, 0.9fr) minmax(240px, 1.2fr) minmax(160px, 0.9fr) 98px 80px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.noc-group-row {
  grid-column: 1 / -1;
  border-bottom: 1px solid var(--line);
  background: #f8f8f8;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  padding: 8px 10px;
}

.noc-th,
.noc-td {
  min-width: 0;
  border-bottom: 1px solid var(--panel-soft);
  padding: 8px 10px;
  font-size: 12px;
}

.noc-th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8f8f8;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.noc-td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.noc-transaction-cell {
  cursor: pointer;
}

.noc-transaction-cell:hover,
.noc-transaction-cell:focus {
  background: #fafafa;
  outline: none;
}

.noc-transaction-cell.expanded {
  background: rgba(245,31,41,0.045);
}

.noc-transaction-detail {
  grid-column: 1 / -1;
  border-bottom: 1px solid var(--panel-soft);
  background: #fff;
  padding: 12px;
}

.noc-transaction-detail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.noc-transaction-detail-head strong {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.noc-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.noc-detail-grid div {
  min-width: 0;
  border-top: 1px solid var(--panel-soft);
  padding-top: 8px;
}

.noc-detail-grid dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.noc-detail-grid dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
}

.noc-detail-json {
  max-height: 260px;
  margin: 12px 0 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafafa;
  color: var(--text);
  font: 11px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  padding: 10px;
  white-space: pre-wrap;
}

.noc-status {
  display: inline-flex;
  min-width: 72px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.noc-status.allowed {
  background: rgba(31,122,58,0.1);
  color: #1f7a3a;
}

.noc-status.denied {
  background: rgba(138,106,18,0.13);
  color: #73560f;
}

.noc-status.failed {
  background: rgba(158,33,33,0.12);
  color: #9e2121;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.section-head h2 {
  margin: 0;
  font-size: 16px;
}

.dashboard-overview {
  display: grid;
  grid-template-columns: minmax(360px, 1.25fr) minmax(280px, 0.85fr) minmax(300px, 0.9fr);
  gap: 10px;
  margin-top: 12px;
}

.dashboard-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.dashboard-usage-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1.2fr) minmax(300px, 0.8fr);
  gap: 10px;
  margin-top: 10px;
}

.dashboard-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.trend-chart {
  min-height: 176px;
}

.trend-bars {
  display: grid;
  grid-template-columns: repeat(12, minmax(18px, 1fr));
  gap: 7px;
  align-items: end;
  min-height: 176px;
}

.trend-column {
  display: grid;
  min-width: 0;
  grid-template-rows: 138px 18px;
  gap: 6px;
  align-items: end;
}

.trend-bar {
  display: flex;
  height: 138px;
  align-items: end;
  justify-content: center;
  border-bottom: 1px solid var(--panel-soft);
  cursor: crosshair;
}

.trend-bar:hover,
.trend-bar:focus {
  outline: none;
}

.trend-bar:hover .trend-stack,
.trend-bar:focus .trend-stack {
  box-shadow: 0 0 0 2px rgba(245,31,41,0.18);
  transform: translateY(-2px);
}

.trend-stack {
  display: flex;
  width: min(100%, 22px);
  min-height: 2px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 5px 5px 2px 2px;
  background: var(--panel-soft);
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.trend-segment {
  display: block;
  width: 100%;
}

.trend-segment.allowed {
  background: var(--logo-red);
}

.trend-segment.exception {
  background: linear-gradient(180deg, var(--logo-orange), var(--logo-gold));
}

.trend-label {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-tooltip {
  position: fixed;
  z-index: 50;
  width: min(282px, calc(100vw - 20px));
  border: 1px solid rgba(22,22,22,0.16);
  border-radius: 8px;
  background: rgba(255,255,255,0.98);
  box-shadow: 0 18px 40px rgba(22,22,22,0.16);
  color: var(--text);
  padding: 10px;
  pointer-events: none;
}

.dashboard-tooltip-title {
  display: block;
  margin-bottom: 8px;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-tooltip-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 28px;
  border-top: 1px solid var(--panel-soft);
  padding-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

.dashboard-tooltip-row b {
  max-width: 142px;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-tooltip-icon {
  position: relative;
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 7px;
  background: var(--panel-soft);
}

.dashboard-tooltip-icon.total::before {
  width: 10px;
  height: 10px;
  border: 2px solid var(--muted);
  border-radius: 999px;
  content: "";
}

.dashboard-tooltip-icon.allowed {
  background: rgba(255,51,55,0.12);
}

.dashboard-tooltip-icon.allowed::before {
  width: 9px;
  height: 5px;
  border-right: 2px solid var(--logo-red);
  border-bottom: 2px solid var(--logo-red);
  content: "";
  transform: rotate(38deg);
}

.dashboard-tooltip-icon.exception {
  background: rgba(255,138,66,0.14);
}

.dashboard-tooltip-icon.denied {
  background: rgba(255,138,66,0.14);
}

.dashboard-tooltip-icon.failed {
  background: rgba(255,210,92,0.2);
}

.dashboard-tooltip-icon.exception::before,
.dashboard-tooltip-icon.failed::before {
  width: 0;
  height: 0;
  border-right: 6px solid transparent;
  border-bottom: 11px solid var(--logo-orange);
  border-left: 6px solid transparent;
  content: "";
}

.dashboard-tooltip-icon.failed::before {
  border-bottom-color: var(--logo-gold);
}

.dashboard-tooltip-icon.denied::before {
  width: 11px;
  height: 11px;
  border: 2px solid var(--logo-orange);
  border-radius: 999px;
  content: "";
}

.dashboard-tooltip-icon.denied::after {
  position: absolute;
  width: 11px;
  height: 2px;
  border-radius: 999px;
  background: var(--logo-orange);
  content: "";
  transform: rotate(-38deg);
}

.dashboard-tooltip-icon.percent::before {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: conic-gradient(var(--logo-red) 0 45%, var(--logo-gold) 45% 70%, var(--panel-soft) 70% 100%);
  content: "";
}

.dashboard-tooltip-icon.info::before {
  width: 14px;
  height: 14px;
  border: 2px solid var(--muted);
  border-radius: 999px;
  content: "";
}

.dashboard-tooltip-icon.info::after {
  position: absolute;
  color: var(--muted);
  content: "i";
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.dashboard-tooltip-icon.rank::before {
  color: var(--muted);
  content: "#";
  font-size: 13px;
  font-weight: 900;
}

.dashboard-tooltip-icon.latency::before {
  width: 13px;
  height: 13px;
  border: 2px solid var(--muted);
  border-radius: 999px;
  content: "";
}

.dashboard-tooltip-icon.latency::after {
  position: absolute;
  width: 5px;
  height: 5px;
  border-top: 2px solid var(--muted);
  border-left: 2px solid var(--muted);
  content: "";
  transform: translate(2px, -1px);
}

.dashboard-tooltip-icon.api::before,
.dashboard-tooltip-icon.api::after {
  position: absolute;
  width: 11px;
  height: 7px;
  border: 2px solid var(--muted);
  border-radius: 3px;
  content: "";
}

.dashboard-tooltip-icon.api::before {
  transform: translate(-2px, -2px);
}

.dashboard-tooltip-icon.api::after {
  background: #ffffff;
  transform: translate(3px, 3px);
}

.dashboard-tooltip-icon.customer::before {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--muted);
  content: "";
  transform: translateY(-4px);
}

.dashboard-tooltip-icon.customer::after {
  position: absolute;
  bottom: 4px;
  width: 13px;
  height: 7px;
  border-radius: 999px 999px 4px 4px;
  background: var(--muted);
  content: "";
}

.status-mix {
  display: grid;
  gap: 14px;
}

.status-stack {
  display: flex;
  height: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--panel-soft);
}

.status-segment {
  min-width: 8px;
  cursor: help;
}

.status-segment.empty {
  min-width: 0;
}

.status-segment:hover,
.status-segment:focus {
  outline: 2px solid rgba(245,31,41,0.24);
  outline-offset: 2px;
}

.status-segment.allowed {
  background: var(--logo-red);
}

.status-segment.denied {
  background: var(--logo-orange);
}

.status-segment.failed {
  background: var(--logo-gold);
}

.status-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.status-legend div {
  border-top: 1px solid var(--panel-soft);
  padding-top: 8px;
  cursor: help;
}

.status-legend div:focus,
.status-legend div:hover {
  outline: none;
  color: var(--text);
}

.status-legend dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.status-legend dd {
  margin: 5px 0 0;
  font-size: 20px;
  font-weight: 850;
}

.top-list {
  display: grid;
  gap: 8px;
}

.top-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 62px;
  border-top: 1px solid var(--panel-soft);
  padding-top: 8px;
  cursor: help;
}

.top-item:hover,
.top-item:focus {
  outline: none;
  background: #fafafa;
}

.top-rank {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.top-body {
  min-width: 0;
}

.top-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.top-title strong {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-value {
  font-size: 20px;
  line-height: 1;
  white-space: nowrap;
}

.top-bar {
  height: 5px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--panel-soft);
}

.top-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand-red);
}

.customer-usage-chart {
  display: grid;
  gap: 8px;
}

.customer-usage-row {
  display: grid;
  grid-template-columns: minmax(170px, 0.45fr) minmax(260px, 1fr);
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--panel-soft);
  padding-top: 9px;
}

.customer-usage-title {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.customer-usage-title strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-usage-title span {
  color: var(--muted);
  font-size: 11px;
}

.customer-minute-bars {
  display: grid;
  grid-template-columns: repeat(12, minmax(10px, 1fr));
  gap: 5px;
  align-items: end;
  height: 48px;
}

.customer-minute-bar {
  display: block;
  min-height: 3px;
  border-radius: 4px 4px 2px 2px;
  background: var(--logo-red);
  cursor: crosshair;
}

.customer-minute-bar.has-exception {
  background: linear-gradient(180deg, var(--logo-orange), var(--logo-gold));
}

.customer-minute-bar:hover,
.customer-minute-bar:focus {
  outline: 2px solid rgba(245,31,41,0.22);
  outline-offset: 2px;
}

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

.integrity-row {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.integrity-row.warning {
  border-color: rgba(245,31,41,0.28);
  background: linear-gradient(180deg, rgba(245,31,41,0.045), #ffffff 42%);
}

.integrity-row.critical {
  border-color: rgba(245,31,41,0.48);
  background: linear-gradient(180deg, rgba(245,31,41,0.075), #ffffff 46%);
}

.integrity-row.info {
  border-color: rgba(255,138,66,0.34);
}

.integrity-row-head {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.integrity-count {
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;
}

.integrity-badge {
  display: inline-flex;
  max-width: 132px;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(31,122,58,0.1);
  color: #1f7a3a;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.integrity-badge.warning {
  background: rgba(245,31,41,0.1);
  color: #9e1b22;
}

.integrity-badge.critical {
  background: rgba(245,31,41,0.18);
  color: #7a1117;
}

.integrity-badge.info {
  background: rgba(255,138,66,0.15);
  color: #7a4a13;
}

.route-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 10px 0 0;
}

.route-facts div {
  min-width: 0;
  border-top: 1px solid var(--panel-soft);
  padding-top: 7px;
}

.route-facts dt {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.route-facts dd {
  margin: 4px 0 0;
  overflow: hidden;
  color: var(--text);
  font-size: 11px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-empty {
  margin: 0;
  border-top: 1px solid var(--panel-soft);
  padding-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.hit-list {
  display: grid;
  gap: 8px;
}

.hit-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(360px, 0.9fr) minmax(180px, 0.45fr);
  gap: 14px;
  align-items: center;
  min-height: 94px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 13px;
}

.hit-title {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.app-icon {
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  object-fit: contain;
}

.hit-title strong {
  font-size: 14px;
}

.status-badge {
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.status-badge.enabled {
  background: rgba(31,122,58,0.1);
  color: #1f7a3a;
}

.status-badge.disabled {
  background: rgba(104,104,102,0.12);
  color: #4b4b48;
}

.status-badge.warning {
  background: rgba(178,93,0,0.12);
  color: #9b5200;
}

.status-badge.critical {
  background: rgba(158,27,34,0.1);
  color: #9e1b22;
}

.smoke-tests-list {
  display: grid;
  gap: 8px;
}

.smoke-test-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 9px 10px;
}

.smoke-test-row.enabled {
  border-color: rgba(31,122,58,0.24);
}

.smoke-test-row.warning {
  border-color: rgba(178,93,0,0.28);
}

.smoke-test-row.critical {
  border-color: rgba(158,27,34,0.26);
}

.smoke-test-row.disabled {
  opacity: 0.72;
}

.smoke-test-row strong,
.smoke-test-row p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.smoke-test-row strong {
  display: block;
  font-size: 13px;
}

.smoke-test-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.hit-meta,
.last-hit {
  margin: 7px 0 0;
}

.hit-bar {
  width: 100%;
  height: 7px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--panel-soft);
}

.hit-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--brand-red);
}

.hit-numbers {
  display: grid;
  grid-template-columns: repeat(5, minmax(56px, 1fr));
  gap: 7px;
  margin: 0;
}

.hit-numbers div {
  min-height: 52px;
  border-left: 1px solid var(--line);
  padding-left: 9px;
}

.hit-numbers dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.hit-numbers dd {
  margin: 7px 0 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
}

.last-hit {
  color: var(--muted);
  text-align: right;
}

.empty-state {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 16px;
  color: var(--muted);
  font-size: 13px;
}

.api-request-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.48fr) minmax(360px, 0.52fr);
  gap: 12px;
  align-items: start;
}

.api-request-form,
.api-request-result {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
}

.api-request-form {
  display: grid;
  gap: 12px;
}

.api-request-form label {
  display: grid;
  gap: 6px;
}

.api-request-form label span,
.api-result-grid dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.api-request-form input,
.api-request-form select,
.api-request-form textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  padding: 9px 10px;
}

.api-request-form textarea {
  min-height: 76px;
  resize: vertical;
}

.api-product-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 10px;
  align-items: stretch;
}

.api-product-summary {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafafa;
  padding: 8px 10px;
}

.api-product-summary img {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  object-fit: contain;
}

.api-product-summary strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.api-route-options {
  display: grid;
  max-height: 260px;
  overflow: auto;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafafa;
  padding: 8px;
}

.api-route-mode-notice {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #c8d7ef;
  border-radius: 8px;
  background: #eef5ff;
  padding: 10px 12px;
  color: #17365f;
}

.api-route-mode-notice p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.api-route-mode-notice .app-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.api-route-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(22, 22, 22, 0.08);
  border-radius: 8px;
  background: #fff;
  padding: 9px;
}

.api-route-option input {
  width: auto;
  min-height: auto;
}

.api-route-option.disabled {
  border-style: dashed;
  background: #f3f4f6;
  opacity: 0.72;
}

.api-route-option small {
  display: block;
  margin-top: 3px;
  color: #8a1c1c;
  font-size: 10px;
  font-weight: 800;
}

.api-route-option strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.api-route-option code {
  display: block;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 11px;
}

.api-route-method {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.api-capability-field {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(250, 250, 250, 0.82);
  padding: 10px;
}

.api-capability-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.api-capability-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.api-capability-head p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.api-capability-list {
  display: grid;
  max-height: 300px;
  overflow: auto;
  gap: 8px;
}

.api-capability-item {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(22, 22, 22, 0.08);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.api-capability-item.available {
  border-color: rgba(23, 120, 56, 0.24);
  box-shadow: inset 3px 0 0 rgba(23, 120, 56, 0.72);
}

.api-capability-item.gap {
  border-color: rgba(164, 28, 28, 0.16);
}

.api-capability-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.api-capability-top strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.api-capability-status {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.api-capability-item.available .api-capability-status {
  border-color: rgba(23, 120, 56, 0.24);
  color: #177838;
}

.api-capability-item.gap .api-capability-status {
  border-color: rgba(164, 28, 28, 0.18);
  color: #9f1d1d;
}

.api-capability-copy,
.api-capability-meta {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.api-request-actions,
.api-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.primary-action {
  border-color: rgba(245,31,41,0.35);
  background: rgba(245,31,41,0.09);
  color: #9e1b22;
}

.api-result-head {
  margin-bottom: 12px;
}

.api-result-head h2 {
  margin: 0;
  font-size: 16px;
}

.api-microsoft-oauth {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
  border: 1px solid #c8d7ef;
  border-radius: 8px;
  background: #eef5ff;
  padding: 12px;
  color: #17365f;
}

.api-microsoft-oauth[hidden] {
  display: none;
}

.api-microsoft-oauth[data-status="active"] {
  border-color: rgba(23, 120, 56, 0.24);
  background: #f0faf3;
  color: #175d31;
}

.api-microsoft-oauth[data-status="authorization_required"],
.api-microsoft-oauth[data-status="expired"] {
  border-color: rgba(164, 28, 28, 0.2);
  background: #fff3f3;
  color: #7f1d1d;
}

.api-microsoft-oauth-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.api-microsoft-oauth-head h3,
.api-microsoft-oauth-head p {
  margin: 0;
}

.api-microsoft-oauth-head h3 {
  font-size: 14px;
}

.api-microsoft-oauth-head p {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.45;
}

.api-microsoft-oauth-badge {
  flex: 0 0 auto;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.api-microsoft-oauth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.api-microsoft-oauth-actions .app-btn {
  text-decoration: none;
}

.api-result-grid {
  display: grid;
  gap: 10px;
  margin: 0;
}

.api-result-grid div {
  min-width: 0;
  border-top: 1px solid var(--panel-soft);
  padding-top: 10px;
}

.api-result-grid dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1.45;
}

#api-result-token,
#oauth-result-token {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafafa;
  padding: 9px;
  font-size: 11px;
}

.api-result-advanced {
  margin-top: 12px;
  border-top: 1px solid var(--panel-soft);
  padding-top: 10px;
}

.api-result-advanced summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.api-result-advanced .api-result-grid {
  margin-top: 10px;
}

body.self-service-body.login-body {
  background:
    radial-gradient(ellipse at 50% 35%, rgba(255,255,255,0.64), transparent 58%),
    linear-gradient(180deg, #ffffff 0%, #f7f8f8 48%, #f1f2f1 100%);
}

body.self-service-body.app-body {
  background:
    radial-gradient(ellipse at 76% 20%, rgba(245,31,41,0.09), transparent 42%),
    radial-gradient(ellipse at 22% 82%, rgba(42,165,142,0.07), transparent 46%),
    linear-gradient(180deg, #ffffff 0%, #f8f8f7 48%, #f4f4f2 100%);
}

.oauth-aurora-background {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.oauth-aurora-background::before {
  position: absolute;
  inset: -34%;
  background-image:
    repeating-linear-gradient(
      100deg,
      rgba(255,255,255,0.42) 0%,
      rgba(255,255,255,0.42) 7%,
      transparent 10%,
      transparent 12%,
      rgba(255,255,255,0.42) 16%
    ),
    repeating-linear-gradient(
      100deg,
      rgba(245,31,41,0.98) 10%,
      rgba(255,90,63,0.88) 15%,
      rgba(255,138,66,0.82) 20%,
      rgba(255,210,92,0.66) 25%,
      rgba(42,165,142,0.42) 30%
    );
  background-position:
    50% 50%,
    50% 50%;
  background-size:
    300% 300%,
    200% 200%;
  content: "";
  filter: blur(18px) saturate(1.15);
  -webkit-mask-image: radial-gradient(ellipse at 50% 38%, #000 0%, #000 38%, transparent 74%);
  mask-image: radial-gradient(ellipse at 50% 38%, #000 0%, #000 38%, transparent 74%);
  opacity: 0.72;
  transform: translateZ(0);
  animation: oauth-aurora 60s linear infinite;
}

.oauth-aurora-background::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.22), rgba(246,246,244,0.2)),
    radial-gradient(ellipse at 18% 88%, rgba(255,255,255,0.4), transparent 58%);
  content: "";
}

body.self-service-body .login-bg {
  z-index: 0;
  opacity: 0.24;
}

body.self-service-body .login-shell {
  z-index: 2;
}

body.self-service-body.app-body .oauth-aurora-background::before {
  inset: -24%;
  filter: blur(26px) saturate(0.96);
  -webkit-mask-image: radial-gradient(ellipse at 60% 30%, #000 0%, #000 29%, transparent 68%);
  mask-image: radial-gradient(ellipse at 60% 30%, #000 0%, #000 29%, transparent 68%);
  opacity: 0.24;
}

body.self-service-body.app-body .oauth-aurora-background::after {
  background: rgba(255,255,255,0.55);
}

body.self-service-body.app-body .login-bg {
  opacity: 0.08;
}

body.self-service-body.app-body .api-request-form,
body.self-service-body.app-body .api-request-result {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(10px);
}

body.self-service-body.app-body .login-shell {
  width: min(100%, 1180px);
  margin: 0 auto;
}

body.self-service-body.app-body .app-brand {
  margin: 0;
}

body.self-service-body.app-body .app-logo {
  width: 92px;
  height: 92px;
}

body.self-service-body .dashboard-title {
  margin-top: 18px;
}

.typewriter-heading {
  min-height: 1.96em;
}

.typewriter-line {
  display: inline;
}

.oauth-typewriter {
  display: inline;
}

.typewriter-word {
  display: inline;
  white-space: pre;
}

.typewriter-accent {
  color: var(--brand-red);
}

.oauth-typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 0.92em;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--brand-red);
  transform: translateY(0.08em);
  animation: oauth-typewriter-cursor-blink 860ms steps(2, end) infinite;
}

.self-service-shell {
  grid-template-columns: minmax(620px, 0.64fr) minmax(360px, 0.36fr);
}

.self-service-shell:has(#oauth-request-result[hidden]) {
  grid-template-columns: 1fr;
}

body.self-service-body.app-body .oauth-card-board-form {
  background: transparent;
  border: 0;
  padding: 0;
}

.oauth-card-board-form {
  min-width: 0;
}

.oauth-product-board {
  display: grid;
  gap: 14px;
}

.oauth-product-board-head,
.oauth-product-category-head,
.oauth-card-actions,
.oauth-card-back-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.oauth-product-board-head {
  border-bottom: 1px solid rgba(18,22,30,0.14);
  padding-bottom: 10px;
}

.oauth-product-board-head h2,
.oauth-product-category-head h3,
.oauth-card-main h4,
.oauth-card-back-head h4 {
  margin: 0;
}

.oauth-product-board-head h2 {
  font-size: 18px;
}

.oauth-product-board-head p,
.oauth-card-main p,
.oauth-card-back-head span {
  margin: 4px 0 0;
  color: var(--muted);
}

#oauth-request-status {
  min-width: 150px;
  margin: 0;
  text-align: right;
}

#oauth-request-status.error {
  color: #9e1b22;
}

#oauth-request-status.ok {
  color: #19743b;
}

.oauth-product-categories {
  display: grid;
  gap: 16px;
}

.oauth-product-category {
  display: grid;
  gap: 9px;
}

.oauth-product-category-head h3 {
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.oauth-product-category-head span {
  color: var(--muted);
  font-size: 11px;
}

.oauth-product-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: 10px;
}

.oauth-product-card {
  min-height: 190px;
  perspective: 1200px;
}

.oauth-product-card.flipped {
  min-height: 438px;
}

.oauth-card-inner {
  position: relative;
  min-height: inherit;
  transform-style: preserve-3d;
  transition:
    transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
    min-height 220ms ease;
}

.oauth-product-card.flipped .oauth-card-inner {
  transform: rotateY(180deg);
}

.oauth-card-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(18,22,30,0.16);
  border-radius: 8px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 16px 38px rgba(18,22,30,0.08);
  color: var(--text);
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.oauth-card-front {
  gap: 12px;
  padding: 13px;
  cursor: pointer;
}

.oauth-card-front:focus-visible {
  outline: 2px solid rgba(245,31,41,0.42);
  outline-offset: 2px;
}

.oauth-card-back {
  gap: 12px;
  padding: 13px;
  overflow-y: auto;
  transform: rotateY(180deg);
}

.oauth-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.oauth-card-topline b {
  color: var(--text);
}

.oauth-card-main {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
}

.oauth-card-main img,
.oauth-card-logo-fallback {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.oauth-card-logo-fallback {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f7f7;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.oauth-card-main h4,
.oauth-card-back-head h4 {
  overflow: hidden;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.oauth-card-main p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.oauth-card-route-list {
  display: grid;
  gap: 6px;
  max-height: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  opacity: 0;
  overflow: hidden;
  transition: max-height 220ms ease, opacity 180ms ease;
}

.oauth-product-card.expanded .oauth-card-route-list,
.oauth-product-card.flipped .oauth-card-route-list {
  max-height: 154px;
  opacity: 1;
}

.oauth-card-route-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border-top: 1px solid rgba(18,22,30,0.08);
  padding-top: 6px;
  color: var(--muted);
  font-size: 11px;
}

.oauth-card-route-list span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.oauth-card-route-list b {
  border: 1px solid rgba(18,22,30,0.12);
  border-radius: 999px;
  padding: 2px 7px;
  color: var(--text);
  font-size: 9px;
  text-transform: uppercase;
}

.oauth-card-actions {
  margin-top: auto;
}

.oauth-card-actions .app-btn,
.oauth-card-submit {
  min-height: 36px;
}

.subtle-action {
  background: rgba(255,255,255,0.72);
}

.oauth-card-back-head {
  border-bottom: 1px solid rgba(18,22,30,0.1);
  padding-bottom: 9px;
}

.oauth-card-fields {
  display: grid;
  gap: 10px;
}

.oauth-card-fields label {
  display: grid;
  gap: 6px;
}

.oauth-route-selection {
  display: grid;
  gap: 7px;
}

.oauth-route-selection-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.oauth-route-selection-list {
  display: grid;
  max-height: 144px;
  gap: 6px;
  overflow: auto;
  border: 1px solid rgba(18,22,30,0.12);
  border-radius: 8px;
  background: rgba(255,255,255,0.78);
  padding: 6px;
}

.oauth-route-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(18,22,30,0.1);
  border-radius: 8px;
  background: rgba(255,255,255,0.84);
  padding: 7px 8px;
}

.oauth-card-fields .oauth-route-option input[type="checkbox"] {
  width: 15px;
  min-height: 15px;
  padding: 0;
  accent-color: var(--brand-red);
}

.oauth-route-option strong,
.oauth-route-option code {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.oauth-route-option strong {
  font-size: 12px;
}

.oauth-route-option code,
.oauth-route-option b {
  color: var(--muted);
  font-size: 10px;
}

.oauth-card-fields label span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.oauth-card-fields input,
.oauth-card-fields textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.92);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  padding: 9px 10px;
}

.oauth-device-check-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.oauth-device-check-button {
  min-height: 38px;
  white-space: nowrap;
}

.oauth-device-check-message {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(18,22,30,0.12);
  border-radius: 8px;
  background: rgba(255,255,255,0.78);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
  padding: 9px 10px;
}

.oauth-device-check-message.ok {
  border-color: rgba(31,122,58,0.26);
  background: rgba(31,122,58,0.07);
  color: #1f7a3a;
}

.oauth-device-check-message.error {
  border-color: rgba(158,27,34,0.24);
  background: rgba(158,27,34,0.06);
  color: #9e1b22;
}

.oauth-device-candidates {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.oauth-device-candidate {
  max-width: 100%;
  min-height: 28px;
  border: 1px solid rgba(18,22,30,0.14);
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  padding: 4px 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.oauth-device-candidate:hover,
.oauth-device-candidate:focus-visible {
  border-color: rgba(245,31,41,0.34);
  outline: 0;
}

.oauth-card-fields textarea {
  min-height: 74px;
  resize: vertical;
}

.oauth-card-submit {
  justify-content: center;
  margin-top: auto;
}

.oauth-product-empty {
  border: 1px solid rgba(18,22,30,0.16);
  border-radius: 8px;
  background: rgba(255,255,255,0.88);
  padding: 16px;
}

.oauth-product-empty p {
  margin: 6px 0 0;
  color: var(--muted);
}

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

.oauth-product-card {
  min-height: 124px;
  perspective: none;
}

.oauth-card-inner {
  position: static;
  min-height: 100%;
  transform: none;
}

.oauth-card-face {
  position: static;
  min-height: 124px;
  overflow: visible;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.oauth-card-front {
  background: rgba(255,255,255,0.82);
}

.oauth-product-card:hover .oauth-card-front,
.oauth-card-front:focus-visible {
  border-color: rgba(245,31,41,0.24);
  background: rgba(255,255,255,0.94);
  box-shadow: 0 20px 48px rgba(18,22,30,0.13);
  transform: translateY(-2px);
}

.oauth-card-back {
  display: none;
}

.oauth-card-summary {
  display: -webkit-box;
  min-height: 34px;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.oauth-expanded-shell {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.oauth-expanded-backdrop {
  position: fixed;
  inset: 0;
  border: 0;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(12px);
  cursor: pointer;
  animation: oauth-backdrop-in 180ms ease both;
}

.oauth-expanded-card {
  position: fixed;
  top: 50%;
  left: 50%;
  display: grid;
  width: min(880px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 40px));
  border: 1px solid rgba(18,22,30,0.14);
  border-radius: 8px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 34px 90px rgba(18,22,30,0.22);
  overflow: hidden;
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
}

.oauth-expanded-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(18,22,30,0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.86);
  color: var(--text);
  cursor: pointer;
  font-size: 16px;
  font-weight: 900;
}

.oauth-expanded-hero {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 22px 58px 18px 22px;
  border-bottom: 1px solid rgba(18,22,30,0.1);
}

.oauth-expanded-logo {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid rgba(18,22,30,0.1);
  border-radius: 8px;
  background: #f8f8f8;
}

.oauth-expanded-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.oauth-expanded-logo span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
}

.oauth-expanded-kicker {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.oauth-expanded-hero h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: 0;
}

.oauth-expanded-hero p:last-child {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.oauth-expanded-request {
  min-width: 112px;
  justify-content: center;
}

.oauth-expanded-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: 18px 22px 22px;
  overflow-y: auto;
}

.oauth-expanded-card.requesting .oauth-expanded-body {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
}

.oauth-expanded-context {
  display: grid;
  gap: 16px;
}

.oauth-expanded-context section {
  display: grid;
  gap: 8px;
}

.oauth-expanded-context h3 {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.oauth-expanded-context p,
.oauth-expanded-context li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.oauth-expanded-context p,
.oauth-expanded-context ul {
  margin: 0;
}

.oauth-expanded-context ul {
  display: grid;
  gap: 7px;
  padding-left: 18px;
}

.oauth-expanded-routes {
  padding-left: 0 !important;
  list-style: none;
}

.oauth-expanded-routes li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  border: 1px solid rgba(18,22,30,0.08);
  border-radius: 8px;
  background: rgba(250,250,250,0.76);
  padding: 10px;
}

.oauth-expanded-routes span {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.oauth-expanded-routes b {
  border: 1px solid rgba(18,22,30,0.12);
  border-radius: 999px;
  padding: 2px 8px;
  color: var(--text);
  font-size: 10px;
  text-transform: uppercase;
}

.oauth-expanded-routes p {
  grid-column: 1 / -1;
  overflow-wrap: anywhere;
  font-family: var(--font-ui);
  font-size: 11px;
}

.oauth-expanded-request-panel {
  display: none;
  align-self: start;
  border: 1px solid rgba(18,22,30,0.12);
  border-radius: 8px;
  background: rgba(255,255,255,0.78);
  padding: 12px;
}

.oauth-expanded-card.requesting .oauth-expanded-request-panel {
  display: grid;
  gap: 12px;
}

.oauth-expanded-card.requesting .oauth-expanded-request {
  visibility: hidden;
}

@media (max-width: 760px) {
  .oauth-expanded-card {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .oauth-expanded-hero {
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: start;
    padding: 18px 48px 14px 16px;
  }

  .oauth-expanded-logo {
    width: 52px;
    height: 52px;
  }

  .oauth-expanded-logo img {
    width: 36px;
    height: 36px;
  }

  .oauth-expanded-hero h2 {
    font-size: 22px;
  }

  .oauth-expanded-request {
    grid-column: 1 / -1;
    width: 100%;
  }

  .oauth-expanded-body,
  .oauth-expanded-card.requesting .oauth-expanded-body {
    grid-template-columns: 1fr;
    padding: 14px 16px 18px;
  }

  .oauth-expanded-card.requesting .oauth-expanded-request {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .oauth-expanded-backdrop,
  .oauth-expanded-card {
    animation: none;
  }

  .oauth-product-card:hover .oauth-card-front,
  .oauth-card-front:focus-visible {
    transform: none;
  }
}

@keyframes oauth-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

#oauth-result-token {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafafa;
  padding: 9px;
  font-size: 11px;
}

@keyframes oauth-typewriter-cursor-blink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

@keyframes oauth-aurora {
  from {
    background-position:
      50% 50%,
      50% 50%;
  }
  to {
    background-position:
      350% 50%,
      350% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .oauth-aurora-background::before,
  .oauth-typewriter-cursor {
    animation: none;
  }
}

@media (max-width: 900px) {
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .rate-metric-grid,
  .route-access-metric-grid,
  .retention-metric-grid,
  .revoke-metric-grid,
  .rate-key-grid,
  .retention-key-grid,
  .revoke-app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hit-row {
    grid-template-columns: 1fr;
  }

  .dashboard-overview,
  .dashboard-split,
  .dashboard-usage-grid,
  .rate-ops-grid,
  .integrity-list {
    grid-template-columns: 1fr;
  }

  .noc-latest-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .noc-detail-grid,
  .rate-policy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .noc-search-panel,
  .rate-search-panel,
  .route-access-search-panel,
  .retention-search-panel,
  .revoke-search-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .noc-search-form,
  .rate-search-form,
  .route-access-search-form,
  .retention-search-form,
  .revoke-search-form,
  .revoke-confirm-form,
  .rate-workbench-fields {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .noc-search-actions,
  .rate-search-actions,
  .route-access-search-actions,
  .retention-search-actions,
  .revoke-search-actions,
  .revoke-confirm-actions {
    width: 100%;
  }

  .noc-search-actions .app-btn,
  .rate-search-actions .app-btn,
  .retention-search-actions .app-btn,
  .revoke-search-actions .app-btn,
  .revoke-confirm-actions .app-btn {
    flex: 1;
  }

  #noc-search-status,
  #rate-search-status,
  #retention-search-status,
  #revoke-search-status {
    text-align: left;
  }

  .api-request-shell {
    grid-template-columns: 1fr;
  }

  .api-product-picker {
    grid-template-columns: 1fr;
  }

  .last-hit {
    text-align: left;
  }
}

@media (max-width: 620px) {
  body.app-body {
    padding: 16px 10px 26px;
  }

  .app-header,
  .dashboard-title,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-controls > summary,
  .compact-results-head,
  .route-access-customer-head {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-controls > summary::before,
  .route-access-customer-head::before {
    position: absolute;
  }

  .dashboard-controls > summary > span,
  .dashboard-controls > summary > small,
  .route-access-customer-head > div,
  .route-access-customer-head > p {
    margin-left: 31px;
  }

  .compact-results-head {
    align-items: flex-start;
  }

  .header-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .view-tabs {
    width: 100%;
    margin-right: 0;
  }

  .view-tab {
    flex: 1;
  }

  .header-actions .app-btn {
    flex: 1;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .noc-metric-grid {
    grid-template-columns: 1fr;
  }

  .noc-latest-overview,
  .customer-usage-row {
    grid-template-columns: 1fr;
  }

  .rate-metric-grid,
  .route-access-metric-grid,
  .retention-metric-grid,
  .revoke-metric-grid,
  .rate-key-grid,
  .retention-key-grid,
  .revoke-app-grid,
  .rate-policy-grid {
    grid-template-columns: 1fr;
  }

  .route-facts {
    grid-template-columns: 1fr;
  }

  .route-access-row {
    grid-template-columns: 22px minmax(0, 1fr);
  }

  .route-access-row > .retention-pill {
    grid-column: 2;
    width: max-content;
  }

  .route-access-row-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .noc-customer-head,
  .rate-key-head,
  .rate-route-head,
  .retention-customer-head,
  .retention-key-head,
  .revoke-customer-head,
  .revoke-application-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .retention-customer-head p,
  .retention-key-head p,
  .revoke-customer-head p {
    text-align: left;
  }

  .noc-customer-title,
  .rate-key-title {
    min-width: 0;
  }

  .noc-customer-meta-block {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .noc-api-strip {
    justify-content: flex-start;
  }

  .noc-transaction-detail-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .noc-detail-grid {
    grid-template-columns: 1fr;
  }

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

  .status-legend {
    grid-template-columns: 1fr;
  }

  .top-item {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .top-value {
    grid-column: 2;
    font-size: 18px;
  }
}

@media (max-width: 720px) {
  body.login-body {
    padding: 20px;
  }

  .login-panel {
    grid-template-columns: 1fr;
    grid-template-areas:
      "identity"
      "content";
    gap: 18px;
    text-align: left;
  }

  .login-content {
    justify-self: center;
    margin-left: 0;
    width: min(100%, 430px);
  }

  .login-copy h2 {
    font-size: clamp(30px, 10vw, 42px);
  }

  .login-identity-mark {
    width: min(500px, 100%);
    height: min(500px, 76vw);
    object-position: 50% 22%;
  }

  .okta-login {
    min-height: 50px;
  }

  .app-header {
    align-items: flex-start;
  }

  .app-header-controls {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    margin-left: auto;
  }
}

@keyframes wave-drift {
  0% { transform: translateX(0); }
  100% { transform: translateX(-590px); }
}

@keyframes stream-pass {
  0% { transform: translateX(-8vw) rotate(-8deg); opacity: 0; }
  8% { opacity: 0.18; }
  92% { opacity: 0.18; }
  100% { transform: translateX(142vw) rotate(-8deg); opacity: 0; }
}

@keyframes login-card-in {
  0% { transform: translateY(26px) scale(0.985); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes login-content-in {
  0% { transform: translateY(24px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes button-sheen {
  0% { transform: translateX(-130%); }
  14% { transform: translateX(170%); }
  100% { transform: translateX(170%); }
}

@keyframes auth-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes flow-dash {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -28; }
}

@keyframes brain-ring-pulse {
  0%, 100% { opacity: 0.38; transform: scale(0.96); }
  50% { opacity: 0.92; transform: scale(1.05); }
}
