:root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #102a43;
  background: #f4f7fb;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 90% 0%, rgba(39, 104, 245, 0.17), transparent 35%),
    #f4f7fb;
}

.shell {
  width: min(100%, 620px);
  margin: 0 auto;
  padding: calc(24px + env(safe-area-inset-top)) 18px calc(32px + env(safe-area-inset-bottom));
}

.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.brand-mark {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px;
  color: white; background: linear-gradient(135deg, #1769ff, #3e9bff); font-weight: 800;
  box-shadow: 0 10px 28px rgba(23, 105, 255, 0.25);
}
.eyebrow { margin: 0 0 2px; color: #627d98; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 28px; }

.card, .hero-card { border-radius: 24px; box-shadow: 0 18px 50px rgba(30, 55, 85, 0.08); }
.hero-card { padding: 24px; color: white; background: linear-gradient(145deg, #105bd8, #2389f5); }
.status-line { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border-radius: 999px; background: rgba(255,255,255,.16); font-size: 13px; font-weight: 700; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #7dffbc; box-shadow: 0 0 0 4px rgba(125,255,188,.18); }
.role { margin: 28px 0 8px; opacity: .8; }
.hero-card h2 { margin-bottom: 8px; font-size: clamp(26px, 8vw, 38px); line-height: 1.08; }
.hoa-name { margin-bottom: 0; font-size: 17px; opacity: .92; }

.card { margin-top: 16px; padding: 22px; background: white; }
.details h3 { margin-bottom: 18px; }
dl { margin: 0; }
dl > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid #edf2f7; }
dt { color: #829ab1; }
dd { margin: 0; overflow-wrap: anywhere; font-weight: 600; }

.state-card { min-height: 210px; display: grid; place-items: center; align-content: center; text-align: center; gap: 14px; }
.state-card p { margin-bottom: 0; color: #627d98; }
.spinner { width: 34px; height: 34px; border: 3px solid #d9e2ec; border-top-color: #1769ff; border-radius: 50%; animation: spin .8s linear infinite; }
.status-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-size: 24px; font-weight: 800; }
.status-error { color: #b42318; background: #fee4e2; }
.hidden { display: none !important; }

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

@media (max-width: 420px) {
  dl > div { grid-template-columns: 1fr; gap: 5px; }
}
