/* Soft Zen tokens borrowed from the Panel (Panel/src/css/style.css) for the Beacon demo. */
:root {
  --bg-a: #101318; --bg-b: #171b23;
  --card: #1d222c; --card-2: #232936; --card-press: #2a3140;
  --text: #f2f4f8; --text-dim: #8b93a7; --text-mute: #5c6474;
  --amber: #fde68a; --amber-fg: #3f2d00;
  --blue: #93c5fd; --blue-fg: #0f2740;
  --green: #6ee7b7; --green-fg: #053b2a;
  --danger-bg: #3a2328; --danger-fg: #fca5a5;
  --radius: 22px; --radius-sm: 16px; --gap: 12px;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; color: var(--text); font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif; -webkit-tap-highlight-color: transparent; }
body { overflow-x: hidden; background: linear-gradient(160deg, var(--bg-a), var(--bg-b)); background-attachment: fixed; }
a { color: inherit; text-decoration: none; }
#app { max-width: 480px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; gap: var(--gap);
  padding: calc(18px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left)); }

/* header */
.topbar { display: flex; align-items: center; gap: 12px; padding: 2px 4px 4px; }
.back { width: 38px; height: 38px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font-size: 22px; color: var(--text-dim); flex-shrink: 0; }
.eyebrow { font-size: 13px; color: var(--text-dim); }
h1 { font-size: 24px; font-weight: 600; letter-spacing: -0.3px; line-height: 1.15; }
.status-line { margin-top: 3px; font-size: 13px; color: var(--text-dim); }
.grow { flex: 1; min-width: 0; }
.pill { font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.pill.ok { background: var(--green); color: var(--green-fg); }
.pill.warn { background: var(--amber); color: var(--amber-fg); }
.pill.bad { background: var(--danger-fg); color: #3a0d0d; }

/* cards */
.card { background: var(--card); border-radius: var(--radius); position: relative; overflow: hidden; padding: 16px 18px; }
.card h2 { font-size: 13px; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 12px; }
.hero { display: flex; justify-content: space-between; gap: 14px; padding: 18px; }
.hero-label { font-size: 13px; color: var(--text-dim); }
.hero-value { font-size: 48px; font-weight: 300; line-height: 1.05; letter-spacing: -1.5px; font-variant-numeric: tabular-nums; margin-top: 2px; }
.hero-secondary { font-size: 15px; color: var(--blue); margin-top: 4px; font-variant-numeric: tabular-nums; }
.hero-symbol { width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; background: radial-gradient(circle at 35% 35%, #fcd34d, #f59e0b); box-shadow: 0 0 26px rgba(245, 158, 11, 0.25); }
.hero-symbol.calm { background: radial-gradient(circle at 35% 35%, #a7f3d0, #34d399); box-shadow: 0 0 26px rgba(52, 211, 153, 0.25); }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.tile { background: var(--card); border-radius: var(--radius-sm); padding: 13px 16px; }
.tile .label { font-size: 12px; color: var(--text-dim); }
.tile .value { font-size: 20px; font-weight: 500; margin-top: 2px; font-variant-numeric: tabular-nums; }
.tile .value.ok { color: var(--green); }
.tile .value.amber { color: var(--amber); }

/* timeline */
.timeline { list-style: none; }
.timeline li { display: grid; grid-template-columns: 58px 18px 1fr; column-gap: 8px; align-items: start; min-height: 44px; }
.timeline .t { font-size: 13px; color: var(--blue); font-variant-numeric: tabular-nums; padding-top: 2px; text-align: right; }
.timeline .rail { position: relative; height: 100%; min-height: 44px; }
.timeline .rail::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--card-2); }
.timeline li:first-child .rail::before { top: 10px; }
.timeline li:last-child .rail::before { bottom: auto; height: 10px; }
.timeline .dot { position: absolute; left: 3px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--text-mute); border: 2px solid var(--card); }
.timeline .dot.crit { background: var(--danger-fg); }
.timeline .dot.warn { background: var(--amber); }
.timeline .dot.ok { background: var(--green); }
.timeline .what { font-size: 15px; padding-bottom: 14px; }
.timeline .meta { display: block; font-size: 13px; color: var(--text-dim); margin-top: 2px; }

/* lists */
.list { list-style: none; }
.list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--card-2); font-size: 15px; }
.list li:first-child { border-top: 0; padding-top: 0; }
.list .dim { color: var(--text-dim); font-size: 13px; white-space: nowrap; }

/* inbox */
.notif { display: block; background: var(--card); border-radius: var(--radius-sm); padding: 14px 16px; }
.notif:active { background: var(--card-press); }
.notif-top { display: flex; align-items: center; gap: 10px; }
.notif .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--text-mute); flex-shrink: 0; }
.notif.critical .dot { background: var(--danger-fg); box-shadow: 0 0 10px rgba(252, 165, 165, 0.5); }
.notif.normal .dot { background: var(--amber); }
.notif.silent .dot { background: var(--text-mute); }
.notif .title { font-size: 15px; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif .time { font-size: 13px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.notif .body { font-size: 14px; color: var(--text-dim); margin-top: 6px; line-height: 1.4; }
.day { font-size: 12px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.6px; padding: 6px 4px 0; }

/* actions */
.actions { display: flex; gap: var(--gap); }
.btn { flex: 1; border: 0; border-radius: var(--radius-sm); padding: 14px 16px; font-size: 15px; font-weight: 600; background: var(--amber); color: var(--amber-fg); }
.btn.secondary { background: var(--card-2); color: var(--text); }
.btn.ghost { background: transparent; color: var(--text-dim); border: 1px solid var(--card-2); }
.btn:disabled { opacity: 0.4; }
.foot { font-size: 12px; color: var(--text-mute); text-align: center; padding: 8px 0 0; line-height: 1.5; }
.mono { font: 12px/1.5 ui-monospace, monospace; color: var(--text-dim); white-space: pre-wrap; }
