:root {
  color: #1d2730;
  font-family: Inter, "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  background: #f6f8fb;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(217, 33, 33, 0.06), transparent 32%),
    linear-gradient(315deg, rgba(39, 117, 182, 0.08), transparent 38%),
    #f6f8fb;
}

.geo-shell {
  align-items: center;
  display: flex;
  min-height: 100vh;
  padding: 24px;
}

.status-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #dbe2ea;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(31, 44, 58, 0.12);
  margin: 0 auto;
  max-width: 520px;
  padding: 28px;
  width: 100%;
}

.brand-row {
  align-items: center;
  border-bottom: 1px solid #e7ecf2;
  display: flex;
  gap: 14px;
  padding-bottom: 22px;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, #d92121, #d4af37 55%, #2bae85);
  border-radius: 8px;
  color: white;
  display: flex;
  font-size: 18px;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.eyebrow {
  color: #5c6b78;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 2px;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  color: #1d2730;
  font-size: 24px;
  font-weight: 760;
  line-height: 1.15;
}

.state-block {
  padding-top: 26px;
}

.state-block h2 {
  color: #1d2730;
  font-size: 22px;
  font-weight: 720;
  line-height: 1.2;
  margin-top: 14px;
}

.state-block p {
  color: #5c6b78;
  font-size: 15px;
  line-height: 1.6;
  margin-top: 8px;
}

.spinner {
  animation: spin 0.85s linear infinite;
  border: 3px solid #dbe2ea;
  border-top-color: #2775b6;
  border-radius: 50%;
  height: 34px;
  width: 34px;
}

.status-dot {
  border-radius: 50%;
  height: 18px;
  width: 18px;
}

.status-dot.success {
  background: #2bae85;
  box-shadow: 0 0 0 8px rgba(43, 174, 133, 0.12);
}

.status-dot.warning {
  background: #d4af37;
  box-shadow: 0 0 0 8px rgba(212, 175, 55, 0.16);
}

.status-dot.danger {
  background: #d92121;
  box-shadow: 0 0 0 8px rgba(217, 33, 33, 0.12);
}

.account-summary {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
}

.account-summary div {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  grid-template-columns: 72px 1fr;
  min-height: 48px;
  padding: 10px 12px;
}

.account-summary dt {
  color: #687785;
  font-size: 13px;
}

.account-summary dd {
  color: #1d2730;
  font-size: 14px;
  font-weight: 650;
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.service-panel {
  background: #f8fafc;
  border: 1px solid #dbe2ea;
  border-radius: 8px;
  margin-top: 16px;
  padding: 16px;
}

.service-header {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.service-header h3 {
  color: #1d2730;
  font-size: 16px;
  font-weight: 760;
  line-height: 1.25;
  margin: 0;
}

.service-badge {
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 760;
  min-height: 24px;
  padding: 4px 10px;
}

.service-badge[data-variant="success"] {
  background: rgba(43, 174, 133, 0.12);
  color: #16745c;
}

.service-badge[data-variant="warning"] {
  background: rgba(212, 175, 55, 0.16);
  color: #8a6a12;
}

.service-badge[data-variant="danger"] {
  background: rgba(217, 33, 33, 0.1);
  color: #aa1a1a;
}

.service-badge[data-variant="neutral"],
.service-badge:not([data-variant]) {
  background: #edf2f7;
  color: #506172;
}

.service-meta {
  margin: 14px 0 0;
}

.service-meta div {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 72px 1fr;
}

.service-meta dt {
  color: #687785;
  font-size: 13px;
}

.service-meta dd {
  color: #1d2730;
  font-size: 14px;
  font-weight: 650;
  margin: 0;
  overflow-wrap: anywhere;
}

.service-result {
  border-left: 3px solid #cbd5df;
  color: #506172;
  font-size: 13px;
  line-height: 1.55;
  margin: 14px 0 0;
  overflow-wrap: anywhere;
  padding-left: 10px;
}

.service-result[data-variant="success"] {
  border-left-color: #2bae85;
  color: #16745c;
}

.service-result[data-variant="danger"] {
  border-left-color: #d92121;
  color: #aa1a1a;
}

.service-actions {
  margin-top: 16px;
}

.actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.primary-action,
.secondary-action,
.icon-action {
  align-items: center;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 720;
  justify-content: center;
  min-height: 42px;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.primary-action:disabled,
.secondary-action:disabled,
.icon-action:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.primary-action {
  background: #1f6199;
  border: 1px solid #1f6199;
  color: white;
  padding: 0 16px;
}

.secondary-action {
  background: white;
  border: 1px solid #cbd5df;
  color: #263545;
  padding: 0 16px;
}

.icon-action {
  background: white;
  border: 1px solid #cbd5df;
  color: #263545;
  font-size: 19px;
  width: 42px;
}

.primary-action:hover,
.secondary-action:hover,
.icon-action:hover {
  transform: translateY(-1px);
}

.primary-action:hover {
  background: #2775b6;
  border-color: #2775b6;
}

.secondary-action:hover,
.icon-action:hover {
  background: #f8fafc;
  border-color: #9aa8b5;
}

button.primary-action {
  font-family: inherit;
}

[hidden] {
  display: none !important;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 560px) {
  .geo-shell {
    align-items: stretch;
    padding: 14px;
  }

  .status-panel {
    margin: auto 0;
    padding: 22px;
  }

  .actions,
  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .icon-action {
    flex: 1;
  }
}
