:root {
  color-scheme: dark;
  --bg: #070d16;
  --sidebar: #091321;
  --surface: #101b2a;
  --surface-hi: #152234;
  --input: #0a1421;
  --border: #223147;
  --border-hi: #32465f;
  --text: #f4f8fc;
  --muted: #91a0b5;
  --faint: #65758c;
  --green: #1bd69b;
  --green-soft: #123d34;
  --cyan: #31bfe8;
  --rose: #fb7185;
  --gold: #f5c95e;
  --radius: 14px;
  font-family:
    Inter,
    "SF Pro Display",
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
}
[hidden] {
  display: none !important;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
}
.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
}
.app-shell {
  min-height: 100vh;
}
.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(400px, 0.9fr);
  background:
    radial-gradient(circle at 20% 25%, #123d42 0, transparent 32%),
    linear-gradient(135deg, #07111e, #0a1422 55%, #0d1d2d);
}
.login-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8vw;
  max-width: 820px;
}
.login-visual h1 {
  font-size: clamp(46px, 6vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  margin: 16px 0 28px;
}
.login-visual h1 em {
  font-style: normal;
  color: var(--green);
}
.login-visual > p:not(.eyebrow) {
  color: #afbdcd;
  font-size: 18px;
  line-height: 1.7;
  max-width: 610px;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 42px;
  color: #b8c5d4;
  font-size: 13px;
}
.trust-row span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.trust-row i,
.status-line i,
.live-pill i,
.heading-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
}
.login-card {
  align-self: center;
  width: min(480px, calc(100% - 48px));
  margin: auto;
  background: #0e1928e8;
  border: 1px solid var(--border-hi);
  border-radius: 22px;
  padding: 40px;
  box-shadow: 0 32px 90px #0009;
}
.registration-card {
  width: min(720px, calc(100% - 48px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.form-grid label {
  min-width: 0;
}
.form-stack label small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  margin-top: 7px;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
  margin: 24px 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: var(--border);
  flex: 1;
}
.auth-back {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--green);
  font-weight: 700;
  cursor: pointer;
}
.field-success {
  color: var(--green);
  line-height: 1.5;
}
.platform-login-option {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--input);
  cursor: pointer;
}
.platform-login-option input {
  width: 20px;
  height: 20px;
  accent-color: var(--green);
}
.platform-login-option span {
  display: grid;
  gap: 2px;
}
.platform-login-option small {
  margin: 0;
}
.platform-grid {
  display: grid;
  grid-template-columns: minmax(330px, 0.75fr) minmax(0, 1.25fr);
  gap: 22px;
  align-items: start;
}
.platform-create-card {
  position: sticky;
  top: 98px;
}
.history-transfer-view {
  display: grid;
  gap: 22px;
  max-width: 1320px;
  margin: 0 auto;
}
.history-transfer-view[hidden] {
  display: none;
}
.transfer-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 28px 30px;
  background:
    linear-gradient(135deg, rgba(18, 208, 150, 0.08), transparent 48%),
    var(--surface);
}
.transfer-hero h2 {
  margin-bottom: 8px;
}
.transfer-hero p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  max-width: 720px;
}
.transfer-safety {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 250px;
  padding: 14px 16px;
  border: 1px solid rgba(43, 215, 161, 0.28);
  border-radius: 14px;
  background: rgba(14, 107, 80, 0.18);
}
.transfer-safety svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  stroke: var(--green);
  fill: none;
}
.transfer-safety span,
.transfer-safety strong,
.transfer-safety small {
  display: block;
}
.transfer-safety small {
  margin-top: 3px;
  color: var(--muted);
}
.transfer-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 22px;
  align-items: start;
}
.transfer-form-card {
  padding: 28px;
}
.transfer-form {
  display: grid;
  gap: 20px;
}
.transfer-step {
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(3, 14, 27, 0.28);
}
.transfer-step legend {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
  color: var(--text);
  font-weight: 800;
}
.transfer-step legend span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  color: var(--green);
  background: var(--green-soft);
}
.transfer-step .form-grid + .form-grid {
  margin-top: 16px;
}
.transfer-webhook-option {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(3, 14, 27, 0.28);
  cursor: pointer;
}
.transfer-webhook-option input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--green);
}
.transfer-webhook-option span,
.transfer-webhook-option strong,
.transfer-webhook-option small {
  display: block;
}
.transfer-webhook-option small {
  margin-top: 4px;
  color: var(--muted);
}
.history-transfer-preview {
  display: grid;
  gap: 5px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(3, 14, 27, 0.45);
  color: var(--muted);
}
.history-transfer-preview strong {
  color: var(--text);
}
.transfer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.transfer-guidance {
  position: sticky;
  top: 98px;
  padding: 24px;
}
.transfer-guidance h3 {
  margin-bottom: 20px;
}
.transfer-guidance ol {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.transfer-guidance li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
}
.transfer-guidance li > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(43, 215, 161, 0.3);
  border-radius: 10px;
  color: var(--green);
  font-weight: 800;
}
.transfer-guidance li strong,
.transfer-guidance li small {
  display: block;
}
.transfer-guidance li small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}
.transfer-jobs-card {
  padding: 28px;
}
.history-jobs-heading {
  margin-bottom: 18px;
}
.history-transfer-jobs {
  display: grid;
  gap: 10px;
}
.history-transfer-job {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 105px repeat(
      3,
      minmax(70px, 0.35fr)
    );
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(3, 14, 27, 0.26);
}
.history-transfer-job small,
.history-transfer-job strong {
  display: block;
}
.history-transfer-job small {
  color: var(--muted);
  margin-top: 4px;
}
.transfer-job-status {
  justify-self: start;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(126, 151, 184, 0.12);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.transfer-job-status.completed {
  color: var(--green);
  background: var(--green-soft);
}
.transfer-job-status.running {
  color: #ffd77a;
  background: rgba(255, 190, 68, 0.12);
}
.transfer-job-status.failed {
  color: #ff96aa;
  background: rgba(255, 79, 115, 0.14);
}
.transfer-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 130px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
}
.transfer-empty svg {
  width: 28px;
  height: 28px;
  stroke: var(--green);
  fill: none;
}
.transfer-empty strong {
  color: var(--text);
}
.transfer-empty p {
  margin: 4px 0 0;
}
@media (max-width: 1050px) {
  .transfer-workspace {
    grid-template-columns: 1fr;
  }
  .transfer-guidance {
    position: static;
  }
}
@media (max-width: 760px) {
  .transfer-hero {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px;
  }
  .transfer-safety {
    min-width: 0;
    width: 100%;
  }
  .transfer-form-card,
  .transfer-jobs-card {
    padding: 20px;
  }
  .transfer-step {
    padding: 16px;
  }
  .transfer-actions {
    flex-direction: column-reverse;
  }
  .transfer-actions button {
    width: 100%;
  }
  .history-transfer-job {
    grid-template-columns: 1fr 1fr;
  }
  .transfer-job-primary {
    grid-column: 1/-1;
  }
}
.organization-cards {
  display: grid;
  gap: 14px;
}
.organization-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--surface-hi), var(--surface));
}
.organization-card-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
}
.organization-card-head h3 {
  margin: 0 0 4px;
}
.organization-avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 20px;
  font-weight: 900;
}
.organization-card dl {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.organization-card dl div {
  display: grid;
  gap: 5px;
}
.organization-card dt {
  color: var(--faint);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.organization-card dd {
  margin: 0;
  font-weight: 700;
}
.mobile-brand {
  display: none;
}
.logo {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(145deg, #25dda2, #14976f);
  color: #03120d;
  font-size: 23px;
  font-weight: 900;
  transform: skew(-7deg);
  box-shadow: 0 10px 30px #13bd8740;
  border: 0;
  padding: 0;
}
.logo span {
  transform: skew(7deg);
}
.logo-large {
  width: 64px;
  height: 64px;
  font-size: 34px;
}
.eyebrow {
  margin: 0 0 8px;
  color: #4edbb0;
  font:
    700 11px/1.2 ui-monospace,
    SFMono-Regular,
    monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 40px;
  letter-spacing: -0.04em;
}
h2 {
  font-size: 23px;
  letter-spacing: -0.025em;
}
h3 {
  margin-bottom: 8px;
}
.muted,
.hint {
  color: var(--muted);
  line-height: 1.55;
}
.form-stack {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}
label,
legend {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #ccd6e3;
}
label span {
  color: var(--faint);
  font-weight: 500;
}
input,
select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--input);
  color: var(--text);
  font: inherit;
}
input::placeholder {
  color: #53647a;
}
input:hover,
select:hover {
  border-color: var(--border-hi);
}
input:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid #41dcb099;
  outline-offset: 2px;
}
button {
  min-height: 44px;
  border-radius: 9px;
  padding: 0 17px;
  border: 1px solid transparent;
  font: 750 13px/1 inherit;
  cursor: pointer;
  transition:
    background 0.18s,
    border-color 0.18s,
    opacity 0.18s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.primary {
  background: linear-gradient(135deg, #28dba5, #15b984);
  color: #03130d;
  box-shadow: 0 8px 24px #12b27d28;
}
.primary:hover {
  background: linear-gradient(135deg, #4be4b6, #1bc68f);
}
.full {
  width: 100%;
}
.secondary {
  background: #111e2e;
  color: #dce6f1;
  border-color: var(--border);
}
.secondary:hover {
  background: #17273a;
  border-color: var(--border-hi);
}
.danger {
  background: #a92e47;
  color: #fff;
}
.field-error {
  min-height: 20px;
  margin: 0;
  color: #fda4af;
}
.security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 22px 0 0;
  color: var(--faint);
  font-size: 12px;
}
.security-note svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
}
.dashboard {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: linear-gradient(180deg, #0a1727, #08111d);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 24px 16px 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 28px;
}
.sidebar-toggle,
.mobile-sidebar-toggle {
  cursor: pointer;
  flex: 0 0 44px;
  transition:
    box-shadow 0.2s ease,
    filter 0.2s ease;
}
.sidebar-toggle:hover,
.mobile-sidebar-toggle:hover {
  filter: brightness(1.08);
}
.sidebar-toggle:focus-visible,
.mobile-sidebar-toggle:focus-visible {
  outline: 3px solid #72e8c2;
  outline-offset: 3px;
}
.mobile-sidebar-toggle,
.sidebar-scrim {
  display: none;
}
.brand strong,
.brand small {
  display: block;
}
.brand strong {
  font-size: 18px;
}
.brand small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}
.sidebar nav {
  display: grid;
  gap: 8px;
}
.nav-item {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 13px;
  border-radius: 10px;
  color: #aebbc9;
  text-decoration: none;
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  justify-content: flex-start;
  font-weight: 600;
}
.nav-item svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
.nav-item.active {
  background: #12362f;
  color: #52e0b6;
  border: 1px solid #1e604e;
}
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.05fr;
  gap: 16px;
}
.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.dashboard-data-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  background: #0b1724;
  font-size: 13px;
}
.dashboard-data-status.ready {
  border-color: #17795d;
  color: #8aefcc;
}
.dashboard-data-status.error {
  border-color: #9f2942;
  color: #fecdd3;
  background: #351720;
}
.dashboard-data-status button {
  min-height: 44px;
}
.dashboard-scope {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
  padding: 16px 20px;
}
.dashboard-scope strong,
.dashboard-scope small {
  display: block;
}
.dashboard-scope strong {
  margin: 3px 0;
}
.dashboard-scope small {
  color: var(--muted);
  font-size: 12px;
}
.dashboard-scope label {
  min-width: 260px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.dashboard-scope select {
  margin-top: 6px;
}
.dashboard-kpis article {
  position: relative;
  overflow: hidden;
  min-height: 118px;
  padding: 20px;
  background: linear-gradient(145deg, #111f2f, #0d1826);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.dashboard-kpis article::after {
  content: "";
  position: absolute;
  width: 72px;
  height: 72px;
  right: -25px;
  bottom: -30px;
  border-radius: 50%;
  background: #1bd69b12;
}
.dashboard-kpis span,
.dashboard-kpis small {
  display: block;
  color: var(--muted);
}
.dashboard-kpis span {
  font-size: 12px;
  font-weight: 700;
}
.dashboard-kpis strong {
  display: block;
  margin: 9px 0 5px;
  font:
    800 30px/1 ui-monospace,
    monospace;
  color: var(--text);
}
.dashboard-kpis small {
  font-size: 11px;
}
.overview-grid .panel {
  margin: 0;
}
.hero-stat {
  grid-column: span 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 190px;
  padding: 28px;
  background:
    radial-gradient(circle at 85% 20%, #1a675450, transparent 35%),
    linear-gradient(135deg, #112334, #0c1826);
}
.hero-stat h2 {
  font-size: 30px;
  margin: 12px 0 8px;
}
.hero-stat h2 span {
  color: var(--green);
  font-family: ui-monospace, monospace;
}
.hero-stat p {
  color: var(--muted);
  margin: 0;
}
.hero-orbit {
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  border: 1px solid #2d6a59;
  background: #0d2d27;
  box-shadow:
    inset 0 0 0 12px #102a26,
    0 0 38px #1bd69b20;
}
.hero-orbit span {
  font:
    800 34px/1 ui-monospace,
    monospace;
  color: #5ce7bc;
}
.hero-orbit small {
  font-size: 10px;
  color: var(--muted);
  margin-top: -30px;
}
.checkpoint-card {
  grid-column: 3;
  display: flex;
  flex-direction: column;
  min-height: 190px;
  min-width: 0;
  overflow: hidden;
}
.checkpoint-card .panel-heading {
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}
.checkpoint-card .panel-heading h2 {
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.2;
}
.checkpoint-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}
.checkpoint-controls .muted {
  font-size: 11px;
  white-space: nowrap;
}
.checkpoint-control {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  background: #0c1828;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.checkpoint-control:disabled {
  opacity: 0.35;
  cursor: default;
}
.checkpoint-devices {
  display: flex;
  flex: 1 1 auto;
  width: 100%;
  gap: 14px;
  margin-top: 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.checkpoint-devices::-webkit-scrollbar {
  display: none;
}
.checkpoint-device {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: start;
  gap: 7px 10px;
}
.checkpoint-device > * {
  min-width: 0;
}
.checkpoint-device strong,
.checkpoint-device small {
  display: block;
}
.checkpoint-device small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.checkpoint-device .checkpoint-number {
  grid-column: 1 / -1;
  margin: 14px 0 3px;
}
.checkpoint-device-progress {
  grid-column: 1 / -1;
  height: 7px;
  border-radius: 9px;
  overflow: hidden;
  background: #1b2a3d;
}
.checkpoint-device-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--cyan));
}
.checkpoint-device p {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  margin: 0;
  overflow-wrap: anywhere;
}
.checkpoint-device > small {
  grid-column: 1 / -1;
  margin: -4px 0 0;
}
.checkpoint-actions {
  grid-column: 1/-1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}
.checkpoint-actions button {
  min-height: 44px;
  width: auto;
  padding: 8px 12px;
  font-size: 10px;
  font-weight: 800;
}
.checkpoint-retry {
  border-color: #238d70;
  background: linear-gradient(135deg, #29d3a7, #20b98f);
  color: #061c17;
  line-height: 1.25;
  box-shadow: 0 8px 20px rgba(26, 190, 145, 0.18);
}
.checkpoint-retry:hover {
  border-color: #55e7bf;
  background: linear-gradient(135deg, #4be1ba, #2bc79a);
}
.checkpoint-retry:focus-visible {
  outline: 3px solid rgba(81, 226, 186, 0.38);
  outline-offset: 2px;
}
.checkpoint-evidence-summary {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 2px 0;
}
.checkpoint-evidence-summary div {
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(6, 16, 28, 0.48);
}
.checkpoint-evidence-summary dt,
.checkpoint-observation dt {
  color: var(--faint);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.checkpoint-evidence-summary dd,
.checkpoint-observation dd {
  margin: 3px 0 0;
  color: var(--text);
  font-size: 11px;
  overflow-wrap: anywhere;
}
.checkpoint-no-evidence {
  border-left: 2px solid #f2cb72;
  padding-left: 8px;
}
.checkpoint-evidence {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.checkpoint-observation {
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(6, 16, 28, 0.66);
}
.checkpoint-observation-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.checkpoint-observation-heading strong,
.checkpoint-observation-heading small {
  display: block;
}
.checkpoint-observation-heading small {
  margin-top: 4px;
  color: var(--muted);
}
.checkpoint-observation dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 0;
}
.checkpoint-observation dl div {
  min-width: 0;
}
@media (max-width: 680px) {
  .checkpoint-observation dl {
    grid-template-columns: 1fr;
  }
  .checkpoint-actions button {
    flex: 1;
  }
}
.checkpoint-number {
  margin: 23px 0 12px;
}
.checkpoint-number strong {
  font:
    800 32px/1 ui-monospace,
    monospace;
}
.checkpoint-number span {
  color: var(--muted);
}
.progress-track {
  height: 7px;
  background: #1b2a3d;
  border-radius: 9px;
  overflow: hidden;
}
.progress-track i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  border-radius: inherit;
}
.checkpoint-card > p {
  font-size: 12px;
  color: var(--muted);
  margin: 13px 0 0;
}
.throughput-card {
  grid-column: span 2;
}
.traffic-chart {
  display: flex;
  align-items: end;
  gap: 7px;
  height: 170px;
  margin-top: 18px;
  padding-top: 20px;
  border-bottom: 1px solid var(--border);
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 41px,
    #1c2b3c 42px
  );
}
.traffic-chart .traffic-bar {
  position: relative;
  flex: 1;
  min-width: 8px;
  padding: 0;
  border: 0;
  background: linear-gradient(to top, #137a65, #34dbb0);
  border-radius: 5px 5px 0 0;
  opacity: 0.82;
  cursor: help;
}
.traffic-chart .traffic-bar:hover,
.traffic-chart .traffic-bar:focus-visible {
  opacity: 1;
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.traffic-chart .traffic-bar::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(4px);
  width: max-content;
  max-width: 180px;
  padding: 7px 9px;
  border: 1px solid var(--border-hi);
  border-radius: 8px;
  color: var(--text);
  background: #07111eee;
  box-shadow: 0 10px 28px #0008;
  font:
    700 10px/1.35 Inter,
    sans-serif;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}
.traffic-chart .traffic-bar:hover::after,
.traffic-chart .traffic-bar:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.message-detail-button {
  min-height: 38px;
  white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  .traffic-chart .traffic-bar::after {
    transition: none;
  }
}

.account-picker-field {
  position: relative;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}
.account-picker-button {
  min-height: 52px;
  width: 100%;
  padding: 0 44px 0 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--input);
  color: var(--text);
  text-align: left;
  font: inherit;
  position: relative;
}
.account-picker-button::after {
  content: "⌄";
  position: absolute;
  right: 16px;
  font-size: 20px;
}
.account-picker-button.has-selection {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 211, 162, 0.12);
}
.account-picker-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 360px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}
.account-picker-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.account-picker-actions button {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 800;
}
.account-picker-options {
  max-height: 300px;
  overflow-y: auto;
  padding: 8px;
}
.account-picker-option {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--text);
  cursor: pointer;
}
.account-picker-option:hover,
.account-picker-option:focus-within {
  background: rgba(31, 211, 162, 0.09);
}
.account-picker-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
.outbound-view {
  display: grid;
  gap: 22px;
}
.outbound-compose textarea {
  width: 100%;
  min-height: 156px;
  padding: 16px 17px;
  resize: vertical;
  border: 1px solid var(--border-hi);
  border-radius: 12px;
  background: linear-gradient(145deg, #091421, #0b1826);
  color: var(--text);
  box-shadow:
    inset 0 1px 0 #ffffff08,
    0 10px 28px #0002;
  font:
    500 15px/1.6 Inter,
    ui-sans-serif,
    system-ui,
    sans-serif;
  caret-color: var(--green);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}
.outbound-compose textarea::placeholder {
  color: #62738a;
}
.outbound-compose textarea:hover {
  border-color: #3b526d;
}
.outbound-compose textarea:focus {
  outline: 3px solid #41dcb04d;
  outline-offset: 2px;
  border-color: var(--green);
  background: #0a1724;
  box-shadow:
    inset 0 1px 0 #ffffff0a,
    0 0 0 1px #1bd69b33,
    0 14px 36px #0003;
}
.outbound-compose label > small {
  color: var(--muted);
  font-weight: 550;
  line-height: 1.5;
}
.outbound-compose #outboundRecipients {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.outbound-compose {
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0, #14304a44, transparent 32%), #0a1623;
}
.outbound-compose-heading {
  padding: 28px 30px 22px;
  margin: 0;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(130deg, #10243a, #0b1928);
}
.secure-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid #24644f;
  border-radius: 999px;
  background: #0b2b24;
  color: var(--green);
  font-size: 11px;
  font-weight: 750;
}
.secure-chip svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
}
.compose-progress {
  padding: 14px 30px 8px;
}
.compose-progress ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}
.compose-progress li {
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
}
.compose-progress li:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 42px;
  right: 10px;
  top: 17px;
  height: 1px;
  background: var(--border-hi);
}
.compose-progress li:nth-child(2) {
  justify-self: center;
}
.compose-progress li:last-child {
  justify-self: end;
}
.compose-progress li > span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-hi);
  border-radius: 50%;
  background: #0b1725;
  color: #b8c6d6;
  font-weight: 800;
}
.compose-progress li > strong {
  position: relative;
  z-index: 1;
  padding-right: 12px;
  background: #0a1725;
  white-space: nowrap;
}
.compose-progress li.active {
  color: var(--text);
}
.compose-progress li.active > span {
  border-color: var(--green);
  color: var(--green);
  box-shadow: 0 0 0 3px #20d5a01a;
}
.outbound-form {
  display: grid;
  gap: 16px;
  padding: 16px 26px 0;
}
.compose-section {
  margin: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(145deg, #102033, #0c1928);
  box-shadow:
    inset 0 1px 0 #ffffff08,
    0 12px 32px #0002;
}
.compose-section legend {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 0 0 2px;
  font-size: 13px;
  color: var(--text);
}
.compose-section legend > span:first-child {
  display: grid;
  place-items: center;
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  border-radius: 8px;
  background: linear-gradient(145deg, #0a624d, #0b463c);
  color: var(--green);
  font-weight: 800;
}
.compose-legend-copy {
  display: grid;
  gap: 4px;
  padding-top: 2px;
}
.compose-legend-copy strong {
  font-size: 13px;
}
.compose-legend-copy small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}
.compact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}
.message-timing-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr);
}
.recipient-layout {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(320px, 1fr);
  gap: 20px;
  margin-top: 16px;
}
.recipient-import {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #091725;
}
.import-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.import-heading div {
  display: grid;
  gap: 4px;
}
.import-heading small {
  color: var(--muted);
  font-weight: 500;
}
.import-heading > svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--green);
}
.file-drop {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 112px;
  margin-top: 12px;
  border: 1px dashed #35627a;
  border-radius: 10px;
  background: #0c2030;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}
.file-drop:hover,
.file-drop:focus-within {
  border-color: var(--green);
  background: #102b31;
}
.file-drop input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.file-drop svg {
  width: 25px;
  height: 25px;
  margin-bottom: 6px;
  fill: none;
  stroke: var(--green);
}
.file-drop span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}
.import-status {
  min-height: 20px;
  margin-top: 9px;
  color: #b9c8d7;
  font-size: 11px;
  line-height: 1.5;
}
.template-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.template-actions > span {
  margin-right: auto;
  color: var(--muted);
  font-size: 11px;
}
.template-actions a {
  min-height: 36px;
  padding: 7px 10px;
  font-size: 11px;
  text-decoration: none;
}
.outbound-form-error {
  margin: 0 4px;
}
.outbound-submit {
  margin: 0 -26px;
  align-items: center;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: #081521;
}
.outbound-submit > span {
  margin-right: auto;
  color: var(--muted);
  font-size: 12px;
}
.outbound-submit .primary {
  min-height: 44px;
  padding: 0 18px;
  box-shadow: 0 10px 28px #11b98c2b;
}
.outbound-submit .primary span {
  margin: 0 0 0 8px;
  color: inherit;
  font-size: 16px;
}
.file-drop.dragging {
  border-color: var(--green);
  background: #102b31;
}
.compose-progress li {
  display: flex;
  grid-template-columns: none;
  justify-content: center;
}
.compose-progress li:first-child {
  justify-content: flex-start;
}
.compose-progress li:last-child {
  justify-content: flex-end;
}
.compose-progress li:nth-child(2) {
  justify-self: stretch;
}
.compose-progress li:not(:last-child)::after {
  left: calc(50% + 28px);
  right: calc(-50% + 28px);
}
.compose-progress li > span {
  flex: 0 0 36px;
}
.compose-progress li > strong {
  padding: 2px 8px;
}
.compose-section legend {
  float: left;
  margin: 0 0 16px;
  padding: 0;
  width: 100%;
}
.compose-section > .compact-grid,
.compose-section > .recipient-layout {
  clear: both;
  margin-top: 0;
}
.compact-grid,
.message-timing-grid {
  align-items: start;
}
.compact-grid > label,
.message-timing-grid > label {
  align-content: start;
}
.outbound-compose .compact-grid select,
.outbound-compose .compact-grid input {
  height: 48px;
  min-height: 48px;
}
.outbound-compose .message-timing-grid textarea {
  min-height: 110px;
}
.message-timing-grid:has(#outboundScheduleLabel:not([hidden])) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.outbound-preview {
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.form-error {
  min-height: 20px;
  margin: 0;
  color: #ff9aaa;
  font-size: 12px;
  line-height: 1.5;
}
.loading-state {
  padding: 18px;
  margin: 16px 0 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  background: var(--input);
}
.view-loading {
  position: fixed;
  z-index: 80;
  inset: 50% auto auto calc(50% + 72px);
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: min(360px, calc(100vw - 32px));
  padding: 24px 28px;
  border: 1px solid #315a66;
  border-radius: 18px;
  background: rgba(7, 19, 31, 0.96);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.58),
    0 0 0 9999px rgba(2, 8, 15, 0.58);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(10px);
  text-align: center;
}
.view-loading[hidden] {
  display: none;
}
.view-loading strong {
  color: var(--text);
  font-size: 15px;
}
.view-loading small {
  color: var(--muted);
  line-height: 1.45;
}
.loading-spinner {
  width: 34px;
  height: 34px;
  margin-bottom: 4px;
  border: 3px solid rgba(42, 211, 159, 0.2);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: loading-spin 0.75s linear infinite;
  box-shadow: 0 0 20px rgba(42, 211, 159, 0.14);
}
@keyframes loading-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .loading-spinner {
    animation-duration: 1.8s;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.review-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0 24px;
}
.review-summary > div {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--input);
}
.review-summary span {
  color: var(--faint);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.review-summary small {
  color: var(--muted);
}
.review-list {
  display: grid;
  gap: 7px;
  padding: 0;
  list-style: none;
}
.review-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--input);
  overflow-wrap: anywhere;
}
.review-list.accepted strong {
  color: var(--green);
  font-family: ui-monospace, monospace;
}
.review-list.rejected li {
  border-color: #713747;
  color: #ffb4c0;
  background: #321b25;
}
.review-dialog .dialog-actions {
  position: sticky;
  bottom: 0;
  padding-top: 14px;
  background: var(--panel);
}
.review-dialog button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.chart-axis {
  display: flex;
  justify-content: space-between;
  padding-top: 8px;
  color: var(--faint);
  font-size: 10px;
}
.breakdown-card {
  min-height: 290px;
}
.distribution-list,
.ranked-list {
  display: grid;
  gap: 15px;
  margin-top: 20px;
}
.distribution-list > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px 14px;
  align-items: center;
}
.distribution-list span strong,
.distribution-list span small,
.ranked-list span strong,
.ranked-list span small {
  display: block;
}
.distribution-list span strong,
.ranked-list span strong {
  text-transform: capitalize;
}
.distribution-list span small,
.ranked-list span small {
  color: var(--muted);
  margin-top: 3px;
  font-size: 10px;
}
.distribution-value,
.sender-total {
  color: var(--green);
  font:
    750 12px ui-monospace,
    monospace;
}
.distribution-list > div > i {
  grid-column: 1 / -1;
  height: 5px;
  background: #1b2a3c;
  border-radius: 9px;
  overflow: hidden;
}
.distribution-list i b {
  display: block;
  height: 100%;
  min-width: 3px;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  border-radius: inherit;
}
.ranked-list > div {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
}
.ranked-list > div > b {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 11px;
}
.ranked-list > div > i {
  grid-column: 2 / -1;
  height: 3px;
  background: #1b2a3c;
  border-radius: 9px;
  overflow: hidden;
}
.ranked-list i em {
  display: block;
  height: 100%;
  background: var(--green);
}
.chart-legend {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
}
.chart-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}
.health-card h2 {
  font-size: 28px;
  margin: 16px 0;
}
.health-card p {
  color: var(--muted);
  font-size: 12px;
  margin: 16px 0 0;
}
.fleet-bars {
  display: flex;
  gap: 5px;
  height: 50px;
  align-items: end;
}
.fleet-bars i {
  flex: 1;
  height: 100%;
  border-radius: 4px;
  background: #26354a;
}
.fleet-bars i.online {
  background: linear-gradient(to top, #16866c, var(--green));
}
.recent-card {
  grid-column: span 2;
}
.message-stream {
  margin-top: 17px;
}
.message-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 155px auto;
  gap: 14px;
  align-items: center;
  padding: 13px 3px;
  border-top: 1px solid var(--border);
}
.message-row code {
  color: #5fe3bb;
  font-weight: 700;
}
.message-row p {
  margin: 0;
  color: #cad5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.messages-view {
  display: grid;
  gap: 16px;
}
.message-mode-tabs {
  display: flex;
  gap: 8px;
}
.inbox-shell {
  display: grid;
  grid-template-columns: minmax(250px, 0.75fr) minmax(320px, 0.95fr) minmax(
      460px,
      2fr
    );
  padding: 0;
  height: min(720px, calc(100vh - 245px));
  min-height: 600px;
  overflow: hidden;
  box-shadow: 0 24px 70px #0003;
}
.inbox-devices,
.inbox-senders {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-right: 1px solid var(--border);
}
.inbox-column-head,
.conversation-head {
  min-height: 104px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
  background: #101d2c;
}
.inbox-column-head h2,
.conversation-head h2 {
  margin: 0;
  font-size: 19px;
}
.inbox-list {
  display: grid;
  align-content: start;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.inbox-list:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -2px;
}
.inbox-list::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.inbox-list::-webkit-scrollbar-track {
  background: #091521;
}
.inbox-list::-webkit-scrollbar-thumb {
  border: 2px solid #091521;
  border-radius: 999px;
  background: #36526a;
}
.inbox-list::-webkit-scrollbar-thumb:hover {
  background: #4c6f89;
}
.inbox-item {
  min-height: 88px;
  width: 100%;
  padding: 14px 18px;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  justify-content: flex-start;
  text-align: left;
}
.inbox-item:hover,
.inbox-item.active {
  background: #142538;
}
.inbox-item.active {
  box-shadow: inset 3px 0 var(--green);
}
.inbox-item > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.inbox-item strong,
.inbox-item small,
.inbox-item time {
  display: block;
}
.inbox-item small {
  color: var(--muted);
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}
.inbox-item time {
  color: var(--faint);
  font-size: 10px;
  margin-top: 5px;
}
.inbox-item b {
  min-width: 24px;
  height: 24px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green);
  font-size: 11px;
}
.inbox-avatar,
.sender-avatar {
  flex: 0 0 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: #173148;
  color: var(--cyan);
}
.inbox-avatar svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
}
.sender-avatar {
  border-radius: 50%;
  color: var(--green);
  background: var(--green-soft);
  font-weight: 800;
}
.presence {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--faint);
}
.presence.online {
  background: var(--green);
  box-shadow: 0 0 9px var(--green);
}
.inbox-empty {
  padding: 24px;
  color: var(--muted);
  text-align: center;
}
.conversation {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background:
    radial-gradient(circle at 50% 35%, #122a3d80, transparent 62%), #0b1624;
}
.conversation-head {
  flex: 0 0 auto;
}
.conversation-head h2 {
  font-size: 24px;
}
.conversation-head p:last-child {
  margin: 6px 0 0;
}
.conversation-messages {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  overflow-y: auto;
  padding: 26px clamp(20px, 3vw, 38px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  scrollbar-gutter: stable;
}
.conversation-placeholder {
  margin: auto;
  text-align: center;
  color: var(--muted);
}
.conversation-placeholder svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: var(--green);
  margin-bottom: 12px;
}
.sms-bubble {
  flex: 0 0 auto;
  display: block;
  width: fit-content;
  min-width: 220px;
  max-width: min(84%, 680px);
  padding: 16px 18px 12px;
  border-radius: 7px 19px 19px 19px;
  background: linear-gradient(145deg, #173047, #142a3e);
  border: 1px solid #2a4962;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 22px #0002;
  overflow: visible;
}
.sms-bubble:hover {
  background: linear-gradient(145deg, #1b3851, #173149);
  border-color: #37607e;
  transform: translateY(-1px);
}
.sms-bubble:focus-visible {
  outline: 3px solid #41dcb099;
  outline-offset: 3px;
}
.sms-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.62;
}
.sms-bubble footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 11px;
  color: #8fa3b8;
  font-size: 10px;
  line-height: 1.3;
}
.message-state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 750;
  color: #7ce4c1;
}
.message-state i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.load-older {
  align-self: center;
  margin: 0 0 16px;
}
.message-filters,
.message-results {
  margin: 0;
}
.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.filter-grid .wide {
  grid-column: span 2;
}
.export-actions {
  align-items: center;
}
.export-actions .primary {
  margin-left: auto;
}
.table-sub {
  display: block;
  color: var(--faint);
  margin-top: 6px;
}
.message-preview {
  max-width: 440px;
  margin: 8px 0 0;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 18px;
  color: var(--muted);
}
.device-pagination {
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.device-pagination button {
  min-width: 88px;
  min-height: 44px;
}
.pagination-range {
  margin-right: auto;
  color: var(--faint);
}
.detail-dialog {
  width: min(760px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
}
.detail-dialog form {
  max-height: calc(100vh - 70px);
  overflow: auto;
}
.detail-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 22px 0;
}
.detail-meta div {
  padding: 13px;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.detail-meta span,
.detail-meta strong {
  display: block;
  overflow-wrap: anywhere;
}
.detail-meta span {
  color: var(--faint);
  font-size: 11px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.message-detail pre {
  padding: 18px;
  background: #07111d;
  border: 1px solid var(--border);
  border-radius: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font:
    14px/1.65 ui-monospace,
    monospace;
}
.timeline {
  padding-left: 20px;
  color: var(--muted);
}
.timeline li {
  padding: 5px 0;
}
.timeline time {
  margin-left: 10px;
  font-size: 12px;
}
.delivery-list {
  display: grid;
  gap: 10px;
}
.delivery-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--input);
}
.delivery-outcome {
  padding: 15px 16px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: linear-gradient(135deg, #0b1725, #0d1d2d);
  box-shadow: 0 10px 30px #0002;
}
.delivery-outcome-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.delivery-outcome-head > strong {
  font:
    750 15px/1.35 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  font-variant-numeric: tabular-nums;
}
.delivery-outcome dl {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px 22px;
  margin: 14px 0 0;
  padding-top: 13px;
  border-top: 1px solid var(--border);
}
.delivery-outcome dl > div {
  display: grid;
  gap: 3px;
}
.delivery-outcome dt {
  color: var(--faint);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.delivery-outcome dd {
  margin: 0;
  color: #cbd7e4;
  font-size: 12px;
}
.delivery-outcome .delivery-next {
  margin-left: auto;
}
.delivery-error {
  display: grid;
  gap: 4px;
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #321b25;
  color: #ffb4c0;
  font-size: 12px;
  line-height: 1.45;
}
.delivery-error strong {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.delivery-error.retrying {
  border: 1px solid #665229;
  background: #292719;
  color: #f1d48a;
}
.command-primary {
  display: block;
  color: var(--text);
  font-weight: 750;
  line-height: 1.4;
}
.command-secondary {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.webhooks-view {
  display: grid;
  gap: 16px;
}
.webhook-builder .form-actions {
  align-self: end;
}
.webhook-family {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}
.webhook-family legend {
  grid-column: 1/-1;
}
.webhook-family label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--input);
  cursor: pointer;
}
.webhook-family input {
  width: 19px;
  min-height: 19px;
  accent-color: var(--green);
}
.webhook-family small {
  grid-column: 1/-1;
  color: var(--muted);
  font-weight: 500;
}
.event-family-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 13px 0;
}
.event-family-chips span,
.family-tag {
  display: inline-flex;
  padding: 5px 8px;
  border: 1px solid #28546a;
  border-radius: 999px;
  background: #102838;
  color: #8fd9ee;
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.webhook-delivery-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(105px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.delivery-summary-card {
  display: grid;
  gap: 7px;
  padding: 14px 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(145deg, #102033, #0b1724);
}
.delivery-summary-card span {
  color: var(--faint);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.delivery-summary-card strong {
  font:
    800 24px/1 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}
.delivery-summary-card.delivered {
  border-color: #24644f;
}
.delivery-summary-card.delivered strong {
  color: var(--green);
}
.delivery-summary-card.failed,
.delivery-summary-card.dead {
  border-color: #713247;
}
.delivery-summary-card.failed strong,
.delivery-summary-card.dead strong {
  color: #ff9daf;
}
.delivery-summary-card.pending strong {
  color: #f1d48a;
}
.webhook-delivery-list {
  display: grid;
  gap: 12px;
}
.webhook-delivery-list article {
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: linear-gradient(135deg, var(--input), #0d1d2c);
}
.webhook-delivery-list article.status-failed,
.webhook-delivery-list article.status-dead {
  border-color: #713247;
}
.webhook-delivery-list article > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.webhook-delivery-list code {
  display: block;
  margin: 11px 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.webhook-delivery-list dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
.webhook-delivery-list dt {
  color: var(--faint);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.webhook-delivery-list dd {
  margin: 4px 0 0;
  font-size: 12px;
}
.webhook-delivery-list p {
  padding: 9px 11px;
  border-radius: 8px;
  background: #321b25;
  color: #ffb4c0;
  font-size: 12px;
}
.webhook-delivery-list button {
  margin-top: 12px;
}
.webhook-delivery-summary {
  grid-template-columns: repeat(8, minmax(92px, 1fr));
}
.delivery-summary-card.duplicate {
  border-color: #5d4b91;
}
.delivery-summary-card.duplicate strong {
  color: #bda5ff;
}
.delivery-summary-card.ownership-changed {
  border-color: #426176;
}
.delivery-summary-card.ownership-changed strong {
  color: #8fc7df;
}
.delivery-summary-card.other {
  border-color: #856f39;
}
.delivery-summary-card.other strong {
  color: #f1d48a;
}
.webhook-delivery-list article.status-duplicate {
  border-color: #5d4b91;
}
.webhook-delivery-list article.status-ownership_changed {
  border-color: #426176;
}
.replay-preview {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--input);
}
.delivery-summary-card.internal-transfer {
  border-color: #2f6b62;
}
.delivery-summary-card.internal-transfer strong {
  color: #7ed9c6;
}
.webhook-delivery-list article.status-internal_transfer {
  border-color: #2f6b62;
}

.replay-dialog {
  width: min(920px, calc(100% - 32px));
}
.replay-dialog form {
  overflow-x: hidden;
}
.replay-dialog-heading {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.replay-dialog-heading h2 {
  margin-bottom: 6px;
}
.replay-dialog-heading p:last-child {
  max-width: 680px;
}
.replay-form-section {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(7, 19, 31, 0.48);
}
.replay-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.replay-section-heading > span {
  display: grid;
  flex: 0 0 30px;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(42, 211, 167, 0.14);
  color: var(--green);
  font-weight: 800;
}
.replay-section-heading h3 {
  margin: 1px 0 3px;
  font-size: 15px;
}
.replay-section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.replay-range-grid,
.replay-scope-grid {
  display: grid;
  gap: 14px;
}
.replay-range-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.replay-scope-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.replay-range-grid label,
.replay-scope-grid label {
  min-width: 0;
}
.replay-range-grid input,
.replay-scope-grid input,
.replay-scope-grid select {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  font-size: 14px;
}
.replay-rate-field {
  grid-column: span 2;
}
.replay-rate-field small {
  display: block;
  margin-top: 7px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
}
.required-mark {
  color: var(--green);
}
.replay-preview {
  display: grid;
  gap: 4px;
  min-height: 70px;
  align-content: center;
  padding: 16px 18px;
  border-color: rgba(42, 211, 167, 0.2);
  background: rgba(42, 211, 167, 0.045);
}
.replay-preview strong {
  color: #dffbf2;
  font-size: 13px;
}
.replay-preview span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.replay-dialog-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  gap: 10px;
  margin: 18px -2px -2px;
  padding: 14px 2px 2px;
  background: linear-gradient(180deg, transparent, var(--panel) 24%);
}
.replay-dialog-actions button {
  min-width: 112px;
  min-height: 44px;
  padding: 10px 16px;
}
@media (max-width: 760px) {
  .replay-dialog {
    width: min(100% - 20px, 620px);
  }
  .replay-scope-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .replay-rate-field {
    grid-column: span 2;
  }
}
@media (max-width: 560px) {
  .replay-dialog {
    width: calc(100% - 12px);
    max-height: calc(100vh - 16px);
  }
  .replay-dialog form {
    max-height: calc(100vh - 28px);
  }
  .replay-form-section {
    padding: 14px;
  }
  .replay-range-grid,
  .replay-scope-grid {
    grid-template-columns: 1fr;
  }
  .replay-rate-field {
    grid-column: auto;
  }
  .replay-dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .replay-dialog-actions .primary {
    grid-column: 1/-1;
    grid-row: 1;
  }
  .replay-dialog-actions button {
    width: 100%;
    min-width: 0;
  }
}
.webhook-delivery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: -2px 0 18px;
  padding: 12px 14px;
  border: 1px solid #713247;
  border-radius: 12px;
  background: #261722;
  color: #ffb4c0;
}
.webhook-delivery-toolbar button {
  flex: 0 0 auto;
}
.webhook-delivery-toolbar.replay-accelerator {
  border-color: #24644f;
  background: #10291f;
  color: #78e4bd;
}
.webhook-delivery-list dl.delivery-timing {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.failure-recovery {
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
  padding: 17px;
  border: 1px solid #35516a;
  border-radius: 14px;
  background: #0b1928;
}
.failure-recovery-heading h3 {
  margin: 3px 0 5px;
}
.failure-recovery-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.failure-recovery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.failure-recovery-grid article {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 170px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--input);
}
.failure-recovery-grid article > strong {
  font:
    800 25px/1 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}
.failure-recovery-grid article > small {
  min-height: 32px;
  color: var(--muted);
  line-height: 1.45;
}
.failure-recovery-grid article button {
  align-self: end;
  width: 100%;
  min-height: 44px;
}
.failure-kind {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.failure-kind.invalid {
  color: #ffb4c0;
}
.failure-kind.temporary {
  color: #f1d48a;
}
.failure-kind.permanent {
  color: #ff9daf;
}
.failure-kind.other {
  color: #8fc7df;
}
.failure-recovery-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
  border: 1px solid #35516a;
  border-radius: 11px;
  background: #102033;
}
.failure-recovery-preview > div,
.failure-recovery-preview > span {
  display: grid;
  gap: 4px;
}
.failure-recovery-preview span {
  color: var(--muted);
  font-size: 11px;
}
.recovery-dead-option {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
.recovery-dead-option input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--green);
}
.delivery-filter-panel {
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #091624;
}
.delivery-filter-panel h3 {
  margin: 3px 0 0;
  font-size: 15px;
}
.delivery-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.delivery-filter-chips button {
  min-height: 44px;
  margin: 0;
  padding: 0 13px;
}
.delivery-filter-chips button.active {
  border-color: #2aa981;
  background: #0c382e;
  color: var(--green);
  box-shadow: 0 0 0 1px #2aa98155;
}
.delivery-filter-result {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.failure-diagnostics {
  margin: 0 0 16px;
  border: 1px solid #35516a;
  border-radius: 13px;
  background: #0b1928;
  overflow: hidden;
}
.failure-diagnostics > summary {
  min-height: 48px;
  padding: 15px 17px;
  color: #b9ccdc;
  font-weight: 750;
  cursor: pointer;
}
.failure-diagnostics[open] > summary {
  border-bottom: 1px solid #35516a;
}
.failure-diagnostics > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 15px;
}
.failure-diagnostics section {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--input);
}
.failure-diagnostics h4 {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.failure-diagnostics dl {
  display: grid;
  gap: 7px;
  margin: 0;
}
.failure-diagnostics dl div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.failure-diagnostics dt {
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}
.failure-diagnostics dd {
  margin: 0;
  color: var(--text);
  font:
    700 11px/1.4 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}
.failure-diagnostics p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.webhook-json {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #07111d;
  overflow: hidden;
}
.webhook-json summary {
  padding: 12px 14px;
  color: #8fd9ee;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  user-select: none;
}
.webhook-json[open] summary {
  border-bottom: 1px solid var(--border);
}
.webhook-json pre {
  max-height: 430px;
  margin: 0;
  padding: 16px;
  color: #c8f5e7;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font:
    12px/1.6 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}
.webhook-json-missing {
  margin-top: 12px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--muted);
  font-size: 12px;
}
.webhook-response.response-error {
  border-color: #713247;
  background: #180e15;
}
.webhook-response.response-error summary {
  color: #ffb4c0;
}
.webhook-response.response-error pre {
  color: #ffd5dc;
}
.webhook-response.response-ok {
  border-color: #24644f;
  background: #0a1d18;
}
.webhook-response.response-ok summary {
  color: var(--green);
}
.webhook-response.response-ok pre {
  color: #c8f5e7;
}
.webhook-json-copy {
  display: flex;
  justify-content: flex-end;
  padding: 10px 12px 0;
  background: #07111d;
}
.webhook-response.response-error .webhook-json-copy {
  background: #180e15;
}
.webhook-response.response-ok .webhook-json-copy {
  background: #0a1d18;
}
.webhook-json-copy button {
  min-height: 36px;
  padding: 0 13px;
  font-size: 11px;
}
.webhook-json-copy button.copied {
  border-color: #2aa981;
  background: #0c2d27;
  color: var(--green);
}
.webhook-delivery-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}
.webhook-delivery-pagination span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.webhook-delivery-pagination button {
  min-width: 100px;
}
.webhook-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.webhook-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(145deg, #122133, #0d1826);
}
.webhook-card > code {
  display: block;
  padding: 11px;
  margin: 15px 0;
  border-radius: 8px;
  background: var(--input);
  color: #8edfc5;
  overflow-wrap: anywhere;
}
.webhook-card dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.webhook-card dt {
  color: var(--faint);
  font-size: 10px;
  text-transform: uppercase;
}
.webhook-card dd {
  margin: 5px 0 0;
  color: var(--text);
  font-size: 12px;
}
.secret-copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
  margin: 20px 0;
}
.secret-value {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 14px 18px;
  margin: 0;
  border: 1px solid var(--border-hi);
  border-radius: 10px;
  background: var(--input);
  color: var(--green);
  overflow-wrap: anywhere;
  user-select: all;
}
.copy-secret-button {
  min-width: 112px;
  min-height: 56px;
  justify-content: center;
}
.copy-secret-button.copied {
  border-color: #2aa981;
  color: var(--green);
  background: #0c2d27;
}
.webhook-actions {
  position: static;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 16px;
}
.webhook-actions .danger {
  min-height: 44px;
}
.api-tokens-view {
  display: grid;
  gap: 18px;
}
.token-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(120deg, var(--panel), #0b2130);
}
.token-hero h2 {
  margin: 5px 0 7px;
}
.token-hero p {
  margin: 0;
  max-width: 670px;
  color: var(--muted);
  line-height: 1.55;
}
.security-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  padding: 13px 16px;
  border: 1px solid #24644f;
  border-radius: 13px;
  background: #0c2d27;
}
.security-chip svg,
.token-avatar svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: var(--green);
}
.security-chip span {
  display: grid;
}
.security-chip small {
  color: var(--muted);
}
.token-layout {
  display: grid;
  grid-template-columns: minmax(290px, 380px) 1fr;
  gap: 18px;
}
.token-builder {
  display: grid;
  align-content: start;
  gap: 18px;
}
.token-builder > label {
  display: grid;
  gap: 8px;
}
.token-builder fieldset {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}
.scope-option {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--input);
  cursor: pointer;
}
.scope-option input {
  margin-top: 3px;
}
.scope-option span {
  display: grid;
  gap: 3px;
}
.scope-option small {
  color: var(--muted);
  font-weight: 400;
  line-height: 1.35;
}
.token-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.token-card {
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: linear-gradient(135deg, var(--input), rgba(16, 44, 57, 0.45));
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}
.token-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-1px);
}
.token-card-head {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
}
.token-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: #0b382e;
}
.token-card h3 {
  margin: 0 0 3px;
}
.token-card code {
  font-size: 12px;
  color: var(--muted);
}
.scope-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 15px 0;
}
.scope-row span {
  padding: 5px 8px;
  border: 1px solid #245167;
  border-radius: 999px;
  background: #102a38;
  color: #8ed5ec;
  font: 600 11px/1 monospace;
}
.token-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
}
.token-card dl div {
  display: grid;
  gap: 3px;
}
.token-card dt {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.token-card dd {
  margin: 0;
  font-size: 13px;
}
.token-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid var(--border);
}
@media (max-width: 900px) {
  .webhook-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1000px) {
  .token-layout {
    grid-template-columns: 1fr;
  }
  .token-hero {
    align-items: flex-start;
  }
  .security-chip {
    display: none;
  }
}
@media (max-width: 1050px) {
  .filter-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.analytics-view {
  display: grid;
  gap: 18px;
}
.analytics-filters {
  position: relative;
  padding: 0;
  overflow: hidden;
  border-color: #29445c;
  background:
    radial-gradient(
      circle at 88% -30%,
      rgba(35, 188, 157, 0.22),
      transparent 38%
    ),
    linear-gradient(145deg, #102237, #091522 72%);
}
.analytics-filters::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(var(--green), #38a8ca);
}
.analytics-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 30px 24px;
}
.analytics-hero h2 {
  margin: 4px 0 8px;
  font-size: clamp(25px, 2.4vw, 38px);
  letter-spacing: -0.035em;
}
.analytics-hero > div > p:last-of-type {
  max-width: 720px;
  margin: 0;
  color: #9aabc0;
  line-height: 1.6;
}
.analytics-export-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
}
.analytics-export-actions .icon-button {
  width: 44px;
  min-height: 44px;
  padding: 0;
}
.analytics-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.analytics-trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid #2b4b61;
  border-radius: 999px;
  background: #09192899;
  color: #a8bacb;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.04em;
}
.analytics-trust i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px #2ad39f;
}
.analytics-filter-surface {
  padding: 20px 30px 26px;
  border-top: 1px solid #263c51;
  background: #07131f99;
}
.analytics-filter-surface .filter-grid {
  margin: 0;
}
.analytics-insights {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 12px;
}
.analytics-insight {
  position: relative;
  min-width: 0;
  padding: 17px 19px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: linear-gradient(145deg, #102033, #0a1725);
  overflow: hidden;
}
.analytics-insight.primary {
  border-color: #2c5c61;
  background:
    radial-gradient(
      circle at 100% 0,
      rgba(42, 211, 159, 0.15),
      transparent 45%
    ),
    linear-gradient(145deg, #102737, #0a1725);
}
.analytics-insight span,
.analytics-insight small {
  display: block;
  color: var(--muted);
}
.analytics-insight span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.analytics-insight strong {
  display: block;
  margin: 8px 0 5px;
  font-size: 16px;
  overflow-wrap: anywhere;
}
.analytics-insight strong.good {
  color: var(--green);
}
.analytics-insight strong.bad {
  color: #ff8fa3;
}
.analytics-insight small {
  font-size: 11px;
}
.analytics-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
}
.analytics-kpi {
  position: relative;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(
    145deg,
    rgba(14, 30, 49, 0.98),
    rgba(8, 20, 34, 0.98)
  );
  overflow: hidden;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}
.analytics-kpi::after {
  content: "";
  position: absolute;
  inset: auto 18px 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: #344a60;
}
.analytics-kpi:hover {
  transform: translateY(-2px);
  border-color: #3b566f;
}
.analytics-kpi span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.analytics-kpi strong {
  display: block;
  margin-top: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(17px, 1.4vw, 24px);
  overflow-wrap: anywhere;
}
.analytics-kpi small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}
.analytics-kpi.balance {
  border-color: rgba(100, 196, 255, 0.34);
}
.analytics-kpi.balance strong {
  color: #9bddff;
}
.analytics-kpi.balance::after {
  background: #64c4ff;
}
.analytics-kpi.positive {
  border-color: rgba(42, 211, 159, 0.36);
}
.analytics-kpi.positive strong {
  color: var(--green);
}
.analytics-kpi.positive::after {
  background: var(--green);
}
.analytics-kpi.negative {
  border-color: rgba(255, 113, 136, 0.34);
}
.analytics-kpi.negative strong {
  color: #ff8fa3;
}
.analytics-kpi.negative::after {
  background: #ff7188;
}
.analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 18px;
}
.analytics-chart-panel {
  background:
    radial-gradient(
      circle at 0 100%,
      rgba(42, 211, 159, 0.07),
      transparent 40%
    ),
    var(--panel);
}
.analytics-legend {
  display: flex;
  gap: 13px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}
.analytics-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.analytics-legend span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
}
.analytics-legend .deposit::before {
  background: var(--green);
}
.analytics-legend .withdrawal::before {
  background: #ff7188;
}
.analytics-trend {
  display: grid;
  gap: 15px;
  min-height: 160px;
}
.trend-row {
  display: grid;
  grid-template-columns: 88px minmax(110px, 1fr) 104px;
  gap: 12px;
  align-items: center;
}
.trend-row time {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}
.trend-row > strong {
  color: #c5d1de;
  font:
    650 11px/1.2 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  text-align: right;
}
.trend-bars {
  display: grid;
  gap: 4px;
}
.trend-bars span {
  display: block;
  min-width: 3px;
  height: 7px;
  border-radius: 999px;
}
.trend-bars .deposit {
  background: var(--green);
  box-shadow: 0 0 14px rgba(42, 211, 159, 0.18);
}
.trend-bars .withdrawal {
  background: #ff7188;
}
.analytics-reconciliation {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
}
.reconciliation-row {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) auto;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(6, 16, 28, 0.58);
}
.reconciliation-row strong,
.reconciliation-row small {
  display: block;
}
.reconciliation-row small {
  margin-top: 4px;
  color: var(--muted);
}
.reconciliation-row dl {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0;
}
.reconciliation-row dt {
  color: var(--faint);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.reconciliation-row dd {
  margin: 4px 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.reconciliation-status {
  display: inline-flex;
  align-items: center;
  align-self: start;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(128, 149, 177, 0.12);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.reconciliation-status.reconciled,
.reconciliation-status.confirmed {
  color: var(--green);
  background: rgba(42, 211, 159, 0.12);
}
.reconciliation-status.mismatch,
.reconciliation-status.review_required {
  color: #ff9aac;
  background: rgba(255, 113, 136, 0.12);
}
.reconciliation-status.insufficient_evidence {
  color: #f2cb72;
  background: rgba(242, 203, 114, 0.12);
}
.analytics-view td small,
.analytics-view td strong {
  display: block;
}
.analytics-view td small {
  margin-top: 5px;
  color: var(--muted);
}
.transaction-direction {
  display: inline-flex;
  margin-bottom: 7px;
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(128, 149, 177, 0.12);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.transaction-direction.deposit {
  color: var(--green);
  background: rgba(42, 211, 159, 0.12);
}
.transaction-direction.withdrawal {
  color: #ff8fa3;
  background: rgba(255, 113, 136, 0.12);
}
.analytics-transfer-list {
  display: grid;
  gap: 12px;
}
.transfer-review {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 113, 136, 0.34);
  border-radius: 14px;
  background: rgba(35, 14, 24, 0.32);
}
.transfer-review-summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.transfer-review-summary strong,
.transfer-review-summary small {
  display: block;
}
.transfer-review-summary strong {
  overflow-wrap: anywhere;
}
.transfer-review-summary small {
  margin-top: 5px;
  color: var(--muted);
}
.transfer-review label {
  max-width: 620px;
}
.transfer-review .actions {
  position: static;
  display: flex;
  gap: 10px;
}

@media (max-width: 1250px) {
  .analytics-kpis {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 900px) {
  .analytics-grid,
  .analytics-insights {
    grid-template-columns: 1fr;
  }
  .analytics-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .analytics-export-actions {
    width: 100%;
    flex-wrap: wrap;
  }
}
@media (max-width: 1050px) {
  .recipient-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1050px) {
  .dashboard-kpis {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 1250px) {
  .inbox-shell {
    grid-template-columns: 220px 280px minmax(380px, 1fr);
  }
}
@media (max-width: 900px) {
  .inbox-shell {
    display: block;
    height: auto;
    max-height: none;
  }
  .inbox-devices,
  .inbox-senders {
    display: block;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .inbox-list {
    display: flex;
    overflow-x: auto;
    height: auto;
  }
  .inbox-item {
    min-width: 230px;
    border-right: 1px solid var(--border);
  }
  .conversation {
    min-height: 620px;
  }
  .conversation-messages {
    height: 500px;
    flex: none;
  }
  .sms-bubble {
    max-width: 92%;
  }
}
@media (max-width: 680px) {
  .filter-grid,
  .detail-meta {
    grid-template-columns: 1fr;
  }
  .filter-grid .wide {
    grid-column: auto;
  }
  .export-actions {
    flex-wrap: wrap;
  }
  .export-actions .primary {
    width: 100%;
    margin-left: 0;
  }
}
@media (max-width: 680px) {
  .analytics-hero,
  .analytics-filter-surface {
    padding-left: 18px;
    padding-right: 18px;
  }
  .analytics-export-actions .primary,
  .analytics-export-actions .secondary {
    flex: 1;
  }
  .analytics-kpis {
    grid-template-columns: 1fr 1fr;
  }
  .trend-row {
    grid-template-columns: 80px 1fr;
  }
  .trend-row > strong {
    grid-column: 2;
  }
  .analytics-legend {
    width: 100%;
    margin-top: 8px;
  }
  .reconciliation-row dl {
    grid-template-columns: 1fr;
  }
  .transfer-review-summary {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 900px) {
  .view-loading {
    left: 50%;
  }
}
@media (max-width: 680px) {
  .outbound-compose-heading {
    padding-left: 18px;
    padding-right: 18px;
  }
  .outbound-form {
    padding: 14px 14px 0;
  }
  .compose-section {
    padding: 16px;
  }
  .compose-progress {
    padding: 14px 18px 6px;
  }
  .compose-progress li {
    display: flex;
    justify-content: center;
  }
  .compose-progress li > strong {
    position: absolute;
    top: 42px;
    padding: 0;
    background: transparent;
    font-size: 9px;
  }
  .compose-progress li:not(:last-child)::after {
    left: calc(50% + 22px);
    right: calc(-50% + 22px);
  }
  .compact-grid,
  .message-timing-grid {
    grid-template-columns: 1fr;
  }
  .outbound-submit {
    display: grid;
    gap: 12px;
    margin-left: -14px;
    margin-right: -14px;
    padding-left: 18px;
    padding-right: 18px;
  }
  .outbound-submit .primary {
    width: 100%;
  }
  .template-actions a {
    width: 100%;
    justify-content: center;
  }
  .recipient-import {
    padding: 14px;
  }
  .outbound-view .panel {
    padding: 18px;
  }
  .outbound-view .panel-heading {
    align-items: flex-start;
  }
  .outbound-view .table-wrap {
    overflow: visible;
  }
  .outbound-view table,
  .outbound-view thead,
  .outbound-view tbody,
  .outbound-view tr,
  .outbound-view td {
    display: block;
    width: 100%;
  }
  .outbound-view thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .outbound-view tr {
    position: relative;
    margin-top: 14px;
    padding: 18px;
    border: 1px solid #2a4058;
    border-radius: 16px;
    background:
      radial-gradient(circle at 100% 0, #153c3a66, transparent 34%),
      linear-gradient(145deg, #0d1927, #0a1522);
    box-shadow: 0 16px 40px #0003;
    overflow: hidden;
  }
  .outbound-view tr::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(var(--green), #1684a7);
  }
  .outbound-view td {
    display: grid;
    grid-template-columns: minmax(76px, 0.32fr) minmax(0, 1fr);
    gap: 14px;
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid #223247;
    white-space: normal;
    align-items: start;
  }
  .outbound-view td:last-child {
    padding: 14px 0 0;
    border-bottom: 0;
  }
  .outbound-view td:first-child {
    padding-top: 0;
  }
  .outbound-view td[data-label="Status"] .badge {
    width: fit-content;
  }
  .outbound-view td[data-label="Actions"] {
    display: block;
    padding-top: 16px;
    margin-top: 2px;
    border-top: 1px solid #223247;
  }
  .outbound-view td[data-label="Actions"]::before {
    display: block;
    margin-bottom: 12px;
  }
  .outbound-view td[data-label="Actions"] .actions {
    position: static;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    padding: 0;
  }
  .outbound-view td[data-label="Actions"] button {
    width: auto;
    min-width: 96px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 11px;
  }
  .outbound-view td[data-label="Actions"] .danger {
    border-color: #7f2d43;
    background: #351a25;
    color: #ff9daf;
  }
  .outbound-view td[data-label="Actions"] .danger:hover {
    border-color: #b83a59;
    background: #49202e;
  }
  .command-primary {
    font-size: 13px;
  }
  .command-secondary {
    font-size: 11px;
  }
  .outbound-view td::before {
    content: attr(data-label);
    color: var(--faint);
    font-size: 10px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.07em;
  }
  .outbound-preview {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .outbound-view .actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .outbound-view .actions button {
    min-height: 44px;
  }
  .review-summary {
    grid-template-columns: 1fr;
  }
  .review-list li {
    display: grid;
  }
  .review-dialog .dialog-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .delivery-outcome {
    padding: 14px;
  }
  .delivery-outcome-head {
    align-items: flex-start;
  }
  .delivery-outcome dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .delivery-outcome .delivery-next {
    grid-column: 1/-1;
    margin: 0;
  }
  .outbound-compose textarea {
    min-height: 132px;
    padding: 14px;
    font-size: 16px;
  }
  .recipient-layout {
    gap: 16px;
  }
  .file-drop {
    min-height: 124px;
  }
}
@media (max-width: 560px) {
  .secret-copy-row {
    grid-template-columns: 1fr;
  }
  .copy-secret-button {
    width: 100%;
  }
  .webhook-delivery-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .webhook-delivery-toolbar button {
    width: 100%;
  }
}
@media (max-width: 760px) {
  .webhook-delivery-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .delivery-summary-card.total {
    grid-column: 1/-1;
  }
}
@media (max-width: 900px) {
  .failure-recovery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .failure-recovery-preview {
    align-items: stretch;
    flex-direction: column;
  }
  .failure-recovery-preview button {
    width: 100%;
  }
}
@media (max-width: 900px) {
  .failure-diagnostics > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .failure-recovery-grid,
  .failure-diagnostics > div {
    grid-template-columns: 1fr;
  }
  .delivery-filter-chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .delivery-filter-chips button {
    width: 100%;
  }
}
@media (max-width: 580px) {
  .dashboard-kpis {
    grid-template-columns: 1fr;
  }
}
.message-row time {
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}
.command-card {
  grid-column: 3;
}
.command-list {
  margin-top: 17px;
}
.command-list > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  font-size: 12px;
}
.command-list span {
  color: var(--muted);
}
.command-list strong {
  font-size: 11px;
  text-align: right;
}
.signal {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 8px;
}
.signal.green {
  background: var(--green);
}
.signal.cyan {
  background: var(--cyan);
}
.signal.gold {
  background: var(--gold);
}
.signal.rose {
  background: var(--rose);
}
.settings-view {
  max-width: 850px;
}
.settings-card {
  padding: 28px;
}
.settings-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 26px;
}
.duration-input {
  display: grid;
  grid-template-columns: 1fr 130px;
  gap: 9px;
}
.settings-form label > small {
  color: var(--muted);
  font-weight: 400;
  line-height: 1.5;
}
.policy-warning {
  grid-column: 1/-1;
  display: flex;
  gap: 13px;
  padding: 15px;
  border: 1px solid #6c592a;
  border-radius: 11px;
  background: #2e291a;
}
.policy-warning svg {
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: var(--gold);
}
.policy-warning p {
  margin: 0;
  color: #d7c897;
  font-size: 12px;
  line-height: 1.55;
}
.policy-warning strong {
  display: block;
  color: var(--gold);
}
.settings-form .form-actions {
  grid-column: 1/-1;
}
.nav-item b {
  margin-left: auto;
  font-size: 10px;
  background: #185344;
  padding: 4px 7px;
  border-radius: 999px;
}
.nav-item small {
  margin-left: auto;
}
.device-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.device-card {
  background: #0a1522;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}
.device-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 17px;
}
.device-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.device-rename {
  padding: 7px 10px;
  font-size: 12px;
}
.device-detail {
  padding: 7px 10px;
  font-size: 12px;
}
.device-edit-fields {
  display: grid;
  gap: 16px;
}
.device-edit-fields label > small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
.device-inventory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.device-inventory > div,
.sim-card {
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #0a1522;
}
.device-inventory span,
.sim-card span {
  display: block;
  color: var(--faint);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.device-inventory strong,
.sim-card strong {
  display: block;
  margin-top: 6px;
  color: #edf4fb;
}
.device-inventory small,
.sim-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}
.sim-heading {
  margin: 22px 0 10px;
  font-size: 14px;
}
.sim-list {
  display: grid;
  gap: 10px;
}
.sim-note {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.55;
}
.device-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.device-title .metric-icon {
  width: 40px;
  height: 40px;
}
.device-title strong,
.device-title small {
  display: block;
}
.device-title small {
  color: var(--muted);
  margin-top: 3px;
  font-size: 11px;
}
.device-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  border-top: 1px solid var(--border);
  padding-top: 15px;
}
.device-details span,
.device-details strong {
  display: block;
}
.device-details span {
  font-size: 10px;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.device-details strong {
  margin-top: 4px;
  font-size: 12px;
  color: #cdd7e3;
  word-break: break-word;
}
.device-card-polished {
  display: grid;
  gap: 14px;
  min-height: 360px;
  padding: 18px;
  background: linear-gradient(145deg, #0b1929, #081421);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
.device-card-polished .device-card-head {
  align-items: flex-start;
  margin: 0;
}
.device-title-copy {
  min-width: 0;
}
.device-title-copy > strong,
.device-title-copy > small,
.device-holder-line {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.device-title-copy > strong {
  color: #f8fafc;
  font-size: 16px;
}
.device-holder-line {
  margin-top: 4px;
  color: #6ee7c2;
  font-size: 12px;
  font-weight: 700;
}
.device-title-copy > small {
  margin-top: 4px;
  color: var(--faint);
  font-size: 10px;
}
.device-presence {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #091725;
}
.device-presence span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 700;
}
.device-presence i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748b;
}
.device-presence i.online {
  background: var(--green);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.6);
}
.device-presence small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.device-card-polished .device-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding-top: 0;
  border-top: 0;
}
.device-card-polished .device-metrics > div {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}
.device-card-polished .device-metrics strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.metric-danger {
  color: var(--red) !important;
}
.device-sim-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.device-sim-chip {
  display: grid;
  gap: 3px;
  min-width: 190px;
  padding: 10px;
  border: 1px solid rgba(76, 111, 139, 0.35);
  border-radius: 9px;
  color: var(--faint);
  background: #091725;
}
.device-sim-chip > span {
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.device-sim-chips b {
  overflow: hidden;
  color: #dbe5f2;
  font-size: 11px;
  letter-spacing: 0;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}
.device-wallet-balances {
  display: grid;
  gap: 5px;
  margin-top: 7px;
}
.device-wallet-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 7px;
}
.device-wallet-balance small {
  margin: 0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.device-wallet-balance strong {
  margin: 0;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.device-wallet-balance.telebirr {
  border-color: rgba(42, 211, 167, 0.22);
  background: rgba(42, 211, 167, 0.07);
}
.device-wallet-balance.telebirr small {
  color: #84a89d;
}
.device-wallet-balance.telebirr strong {
  color: #59dfba;
}
.device-wallet-balance.cbebirr {
  border-color: rgba(168, 120, 255, 0.28);
  background: rgba(139, 92, 246, 0.09);
}
.device-wallet-balance.cbebirr small {
  color: #b9a2e8;
}
.device-wallet-balance.cbebirr strong {
  color: #bd9cff;
}
.device-wallet-total {
  border-color: rgba(126, 151, 178, 0.48);
  background: linear-gradient(
    145deg,
    rgba(18, 40, 58, 0.96),
    rgba(9, 23, 37, 0.98)
  );
}
.device-wallet-total > b {
  color: #edf4fb;
}
.device-wallet-balance.unavailable {
  opacity: 0.55;
}
.device-wallet-balance.unavailable strong {
  color: var(--muted);
  font-size: 9px;
}
.wallet-balance-empty {
  display: block;
  margin-top: 7px;
  color: var(--faint);
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0;
  text-transform: none;
}
.sim-card .device-wallet-balances {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.device-card-footer {
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.device-card-footer button {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 11px;
}
.device-card-footer .device-retry {
  width: auto;
}
@media (max-width: 620px) {
  .device-card-polished .device-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .device-presence {
    align-items: flex-start;
    flex-direction: column;
  }
}
.badge.revoked {
  background: #3b202a;
  color: #f99aaa;
}
.badge.offline {
  background: #373326;
  color: #f5c95e;
}
.system-card {
  margin-top: auto;
  background: #0d1b2b;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px;
}
.status-line {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #5ee5b7;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.system-card small {
  display: block;
  margin: 7px 0 0 17px;
  color: var(--faint);
}
.profile {
  display: grid;
  grid-template-columns: 38px 1fr 44px;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--border);
  margin: 16px -16px -16px;
  padding: 16px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #1b4b42;
  color: #6ce9c2;
  font-weight: 800;
}
.profile strong,
.profile small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.profile button {
  padding: 0;
  background: transparent;
  color: var(--muted);
}
.workspace {
  min-width: 0;
}
.topbar {
  height: 72px;
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: #09121eed;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}
.search-box {
  position: relative;
  width: min(460px, 48%);
}
.search-box svg {
  position: absolute;
  left: 14px;
  top: 15px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
}
.search-box input {
  padding-left: 43px;
  min-height: 46px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.topbar-refresh {
  padding: 9px 12px;
  white-space: nowrap;
}
.live-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9aabbe;
  font-size: 12px;
}
.content {
  padding: 32px;
  max-width: 1500px;
  margin: 0 auto;
}
.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 26px;
}
.page-heading h1 {
  margin-bottom: 4px;
}
.page-heading p {
  margin-bottom: 0;
}
.heading-status {
  background: #0d1927;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 14px;
}
.heading-status span,
.heading-status strong {
  display: block;
}
.heading-status span {
  color: var(--faint);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.heading-status strong {
  margin-top: 4px;
  font-size: 13px;
  color: #67e3bd;
}
.heading-status i {
  display: inline-block;
  margin-right: 5px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.metrics article,
.panel {
  background: linear-gradient(145deg, #101c2b, #0d1826);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px #0002;
}
.metrics article {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px;
}
.metric-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
}
.metric-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.metric-icon.green {
  background: #123d34;
  color: var(--green);
}
.metric-icon.cyan {
  background: #103847;
  color: var(--cyan);
}
.metric-icon.rose {
  background: #402330;
  color: var(--rose);
}
.metric-icon.gold {
  background: #3b3420;
  color: var(--gold);
}
.metrics span,
.metrics small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.metrics strong {
  display: block;
  font:
    750 25px/1.2 ui-monospace,
    SFMono-Regular,
    monospace;
  margin: 2px 0;
}
.metrics small {
  color: var(--faint);
}
.panel {
  padding: 22px;
  margin-bottom: 20px;
}
.builder-panel {
  border-color: #286850;
  box-shadow:
    0 0 0 1px #1dcc9840,
    0 18px 60px #0004;
}
.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.panel-heading h2 {
  margin-bottom: 5px;
}
.panel-heading p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
.icon-button {
  padding: 0;
  width: 44px;
  background: transparent;
  color: var(--muted);
  font-size: 25px;
}
.rule-form {
  display: grid;
  grid-template-columns: 1fr 1.8fr 1.2fr;
  gap: 16px;
  align-items: start;
  margin-top: 24px;
}
.rule-form label small {
  color: var(--faint);
  font-weight: 400;
  font-size: 11px;
}
.rule-form fieldset {
  grid-column: 1/-1;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 16px;
}
.device-options {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 10px;
}
.device-check {
  display: flex;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 9px;
  background: #0a1522;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 9px 11px;
}
.device-check input {
  width: 17px;
  min-height: 17px;
  accent-color: var(--green);
}
.device-check small {
  color: var(--faint);
}
.hint {
  margin: 10px 0 0;
  font-size: 11px;
}
.form-actions {
  grid-column: 1/-1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.filter-row {
  display: flex;
  gap: 7px;
  margin-top: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.filter {
  min-height: 34px;
  padding: 0 12px;
  background: transparent;
  color: var(--muted);
  border-color: transparent;
}
.filter.active {
  background: #15362f;
  color: #65e7c0;
  border-color: #245d4e;
}
.filter b {
  font-size: 10px;
  background: #1f443b;
  padding: 2px 6px;
  border-radius: 99px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  text-align: left;
  padding: 15px 12px;
  border-bottom: 1px solid #1c2a3d;
  vertical-align: middle;
}
th {
  color: #73849b;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
td {
  color: #c7d2df;
  font-size: 13px;
}
td:first-child code {
  display: block;
  color: #f3f7fb;
  font-size: 14px;
  font-weight: 750;
}
td:first-child .muted {
  font-size: 11px;
  margin-top: 4px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge.active {
  background: #11382f;
  color: #5fe3bb;
}
.badge.disabled {
  background: #3b202a;
  color: #f99aaa;
}
.actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}
.actions button {
  min-height: 34px;
  padding: 0 11px;
}
.notice {
  margin-bottom: 16px;
  padding: 13px 16px;
  border: 1px solid #17795d;
  border-radius: 10px;
  background: #0b352c;
  color: #8aefcc;
}
.notice.error {
  border-color: #9f2942;
  background: #351720;
  color: #fecdd3;
}
.empty {
  text-align: center;
  color: var(--muted);
  padding: 48px;
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin: 0 auto 14px;
  border-radius: 13px;
  background: #152537;
  color: #71849b;
}
.empty-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
}
.empty p {
  font-size: 13px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
dialog {
  width: min(430px, calc(100% - 32px));
  background: #101b2a;
  color: var(--text);
  border: 1px solid var(--border-hi);
  border-radius: 17px;
  padding: 26px;
  box-shadow: 0 30px 100px #000b;
}
dialog::backdrop {
  background: #02060ccc;
  backdrop-filter: blur(3px);
}
.dialog-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #3d2730;
  color: #f99aaa;
  margin-bottom: 18px;
}
.dialog-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 24px;
}
@media (max-width: 1050px) {
  .platform-grid {
    grid-template-columns: 1fr;
  }
  .platform-create-card {
    position: static;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard {
    display: block;
  }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    width: min(320px, 86vw);
    height: 100dvh;
    padding: 20px 16px 16px;
    transform: translateX(-105%);
    box-shadow: 24px 0 70px #0009;
    transition: transform 0.24s ease;
    overflow-y: auto;
  }
  body.sidebar-open {
    overflow: hidden;
  }
  body.sidebar-open .sidebar {
    transform: translateX(0);
  }
  .sidebar-scrim {
    position: fixed;
    inset: 0;
    z-index: 35;
    width: 100%;
    height: 100%;
    border: 0;
    background: #02060db8;
    backdrop-filter: blur(3px);
    cursor: pointer;
  }
  body.sidebar-open .sidebar-scrim {
    display: block;
  }
  .mobile-sidebar-toggle {
    display: grid;
  }
  .topbar {
    gap: 14px;
  }
  .content,
  .topbar {
    padding-left: 22px;
    padding-right: 22px;
  }
  .overview-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-stat,
  .throughput-card,
  .recent-card {
    grid-column: span 2;
  }
  .checkpoint-card,
  .health-card,
  .command-card {
    grid-column: auto;
  }
}
@media (max-width: 640px) {
  .organization-card-head {
    grid-template-columns: auto 1fr;
  }
  .organization-card-head .badge {
    grid-column: 1 / -1;
    width: fit-content;
  }
  .organization-card dl {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  .login-layout {
    display: block;
    padding: 24px;
  }
  .login-visual {
    display: none;
  }
  .login-card {
    width: 100%;
    margin: 8vh auto;
    padding: 28px;
  }
  .registration-card {
    max-height: none;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 36px;
  }
  .sidebar {
    display: flex;
    padding: 20px 16px 16px;
  }
  .brand {
    padding: 0 8px 28px;
  }
  .brand div:last-child,
  .sidebar nav,
  .system-card {
    display: initial;
  }
  .sidebar nav {
    display: grid;
  }
  .system-card {
    display: block;
  }
  .profile {
    margin: 16px -16px -16px;
    padding: 16px;
    border-top: 1px solid var(--border);
    grid-template-columns: 38px 1fr 44px;
  }
  .topbar {
    top: 0;
    height: auto;
    min-height: 68px;
    padding: 10px 16px;
  }
  .mobile-sidebar-toggle {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }
  .search-box {
    width: 100%;
  }
  .live-pill {
    display: none;
  }
  .top-actions .primary {
    font-size: 0;
    width: 44px;
    padding: 0;
  }
  .top-actions .primary svg {
    margin: 0;
  }
  .content {
    padding: 22px 14px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .heading-status {
    display: none;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .metrics article {
    padding: 13px;
    gap: 10px;
  }
  .metric-icon {
    width: 37px;
    height: 37px;
  }
  .metrics small {
    display: none;
  }
  .panel {
    padding: 16px;
  }
  .dashboard-scope {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }
  .dashboard-scope label {
    min-width: 0;
  }
  .rule-form {
    grid-template-columns: 1fr;
  }
  .device-grid {
    grid-template-columns: 1fr;
  }
  .settings-form {
    grid-template-columns: 1fr;
  }
  .policy-warning,
  .settings-form .form-actions {
    grid-column: 1;
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .hero-stat,
  .throughput-card,
  .recent-card,
  .checkpoint-card,
  .health-card,
  .command-card {
    grid-column: 1;
  }
  .hero-stat {
    align-items: flex-start;
  }
  .hero-orbit {
    width: 96px;
    height: 96px;
  }
  .message-row {
    grid-template-columns: 80px 1fr;
  }
  .message-row time {
    grid-column: 2;
    text-align: left;
  }
  .message-row .message-detail-button {
    grid-column: 2;
    justify-self: start;
  }
  .rule-form > *,
  .rule-form fieldset,
  .form-actions {
    grid-column: 1;
  }
  .panel-heading {
    align-items: flex-start;
  }
  .table-wrap {
    overflow: visible;
  }
  table,
  tbody,
  tr,
  td {
    display: block;
  }
  thead {
    display: none;
  }
  tr {
    position: relative;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }
  td {
    border: 0;
    padding: 4px 0;
    padding-right: 0;
  }
  td:nth-child(2),
  td:nth-child(3) {
    color: var(--muted);
  }
  .actions {
    position: absolute;
    right: 0;
    bottom: 12px;
  }
  .actions button {
    font-size: 11px;
  }
  .filter-row {
    overflow-x: auto;
  }
}
@media (min-width: 1051px) {
  .dashboard,
  .sidebar,
  .workspace {
    transition:
      grid-template-columns 0.22s ease,
      width 0.22s ease;
  }
  body.sidebar-collapsed .dashboard {
    grid-template-columns: 82px minmax(0, 1fr);
  }
  body.sidebar-collapsed .sidebar {
    padding-left: 12px;
    padding-right: 12px;
  }
  body.sidebar-collapsed .brand {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
  }
  body.sidebar-collapsed .brand > div:last-child,
  body.sidebar-collapsed .nav-item span,
  body.sidebar-collapsed .nav-item b,
  body.sidebar-collapsed .nav-item small,
  body.sidebar-collapsed .system-card,
  body.sidebar-collapsed .profile > div:nth-child(2) {
    display: none;
  }
  body.sidebar-collapsed .nav-item {
    justify-content: center;
    padding: 0;
  }
  body.sidebar-collapsed .profile {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  body.sidebar-collapsed .profile #signOut {
    margin-top: 6px;
  }
}
@media (max-width: 420px) {
  .metrics {
    grid-template-columns: 1fr;
  }
  .profile > div:nth-child(2) {
    display: none;
  }
  .page-heading h1 {
    font-size: 34px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
