:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #687387;
  --paper: #f4f6f8;
  --card: #ffffff;
  --accent: #b88746;
  --accent-soft: #f3e9dc;
  --green: #217a57;
  --green-soft: #e6f4ee;
  --line: #e5e9ef;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
.shell { width: min(100%, 720px); margin: 0 auto; min-height: 100vh; padding: max(18px, env(safe-area-inset-top)) 16px max(32px, env(safe-area-inset-bottom)); }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 4px 2px 18px; }
.eyebrow { margin: 0 0 2px; font-size: 10px; font-weight: 800; letter-spacing: .18em; color: var(--muted); }
h1 { margin: 0; font-family: Georgia, serif; font-size: 29px; letter-spacing: -.03em; }
.avatar { width: 42px; height: 42px; border-radius: 15px; display: grid; place-items: center; background: var(--ink); color: white; font-weight: 800; font-size: 13px; }
.hero { position: relative; overflow: hidden; background: var(--ink); color: white; padding: 24px; border-radius: 25px; min-height: 184px; display: flex; align-items: flex-end; box-shadow: 0 18px 44px rgba(17,24,39,.16); }
.hero h2 { position: relative; margin: 12px 0 7px; max-width: 420px; font-size: clamp(25px, 8vw, 38px); line-height: 1.03; letter-spacing: -.04em; }
.hero p { position: relative; margin: 0; max-width: 460px; color: #cdd3dd; line-height: 1.45; }
.pill { position: relative; display: inline-flex; padding: 7px 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: #f5dcb9; font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.pulse { position: absolute; width: 190px; height: 190px; right: -70px; top: -65px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(184,135,70,.9), rgba(184,135,70,0)); filter: blur(2px); }
.locations { display: flex; gap: 8px; overflow-x: auto; padding: 18px 2px 12px; scrollbar-width: none; }
.location { flex: 0 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 9px 12px; color: #374151; font-size: 12px; font-weight: 700; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { min-height: 145px; padding: 17px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; }
.tile-icon { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: #765126; font-weight: 900; }
.tile h3 { margin: 18px 0 4px; font-size: 17px; }
.tile p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.state { display: inline-block; margin-top: 12px; color: var(--accent); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.systems { margin-top: 18px; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.section-heading h3 { margin: 0; font-size: 17px; }
.section-heading span { color: var(--muted); font-size: 11px; }
.system-row { display: grid; grid-template-columns: 10px 1fr; gap: 11px; padding: 13px 0; border-top: 1px solid var(--line); }
.system-row:first-child { border-top: 0; }
.dot { width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: #c8ced8; }
.dot.connected { background: var(--green); box-shadow: 0 0 0 5px var(--green-soft); }
.system-row strong { display: block; font-size: 14px; }
.system-row small { color: var(--muted); }
.notice { margin-top: 18px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; }
.notice p { color: var(--muted); line-height: 1.5; }
.notice.danger { border-color: #efc6c6; background: #fff8f8; }
.primary { display: inline-flex; padding: 11px 14px; border-radius: 12px; background: var(--ink); color: white; text-decoration: none; font-weight: 750; }
.hidden { display: none !important; }
@media (max-width: 360px) { .grid { grid-template-columns: 1fr; } .tile { min-height: 125px; } }
