:root{
  --navy:#0b1f4a;
  --blue:#1573d6;
  --blue-deep:#0e5bb5;
  --bg:#f4f6f9;
  --card:#ffffff;
  --line:#d7dee8;
  --ink:#1b2434;
  --ink-dim:#5b6575;
  --ink-faint:#8b95a5;
  --ok:#168a5a;
  --ok-soft:#e7f6ee;
  --warn:#c47a00;
  --warn-soft:#fff4dc;
  --alert:#d13b43;
  --alert-soft:#fdecec;
  --radius:16px;
  --shadow:0 10px 28px rgba(11,31,74,.08);
  --font:"Plus Jakarta Sans",system-ui,-apple-system,Segoe UI,sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
html,body{min-height:100%}
body{
  font-family:var(--font);
  background:var(--bg);
  color:var(--ink);
  -webkit-font-smoothing:antialiased;
}
.site-header{
  background:#fff;
  border-bottom:1px solid var(--line);
  padding:16px 20px;
}
.site-header .inner,.wrap{max-width:440px;margin:0 auto}
.brand{
  display:flex;align-items:center;gap:10px;
  font-weight:700;font-size:17px;color:var(--navy);letter-spacing:-.3px;
}
.mark{
  width:32px;height:32px;border-radius:10px;
  background:linear-gradient(160deg,var(--blue),var(--navy));
  display:grid;place-items:center;color:#fff;flex:0 0 32px;
}
.mark svg{width:16px;height:16px}
.page{padding:28px 18px 40px}
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:28px 24px 24px;
  box-shadow:var(--shadow);
}
h1{font-size:28px;line-height:1.2;letter-spacing:-.6px;color:var(--navy);font-weight:700;margin-bottom:10px}
.desc,.muted{color:var(--ink-dim);font-size:15px;line-height:1.55}
label{display:block;font-size:13px;font-weight:600;color:var(--navy);margin:18px 0 8px}
input[type=text],input[type=password],input[type=email]{
  width:100%;height:52px;border-radius:12px;border:1px solid #b9c3d0;
  background:#fff;color:var(--ink);font-family:inherit;font-size:16px;
  outline:none;padding:0 14px;
}
input[type=text]:focus,input[type=password]:focus,input[type=email]:focus{
  border-color:var(--blue);box-shadow:0 0 0 3px rgba(21,115,214,.18);
}
input.code-input{
  font-size:22px;font-weight:700;letter-spacing:.28em;text-align:center;text-transform:uppercase;
}
.err{margin-top:12px;color:var(--alert);font-size:13.5px;font-weight:600}
.btn-primary,button[type=submit]{
  margin-top:20px;width:100%;height:50px;border:0;border-radius:999px;cursor:pointer;
  background:var(--blue);color:#fff;font-family:inherit;font-weight:700;font-size:16px;
}
.btn-primary:hover,button[type=submit]:hover{background:var(--blue-deep)}
.hint{margin-top:16px;text-align:center;color:var(--ink-faint);font-size:12.5px;line-height:1.5}
.media-stack{margin-top:18px;display:flex;flex-direction:row;gap:10px;align-items:stretch}
.media-block{
  flex:1;border:1px solid var(--line);border-radius:12px;background:#fff;
  overflow:hidden;min-height:48px;display:flex;align-items:center;justify-content:center;padding:10px;
}
.media-block img{display:block;width:auto;max-width:100%;height:auto;max-height:83px;object-fit:contain}
.media-block.empty{border-style:dashed;color:var(--ink-faint);font-size:11px;text-align:center}

.topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}
.top-actions{display:flex;gap:8px;align-items:center}
.bell,.out{
  height:40px;border-radius:999px;display:grid;place-items:center;
  background:#fff;border:1px solid var(--line);color:var(--ink-dim);text-decoration:none;font-size:13px;font-weight:600;
}
.bell{width:40px;position:relative}
.bell svg{width:18px;height:18px;stroke:var(--navy)}
.bell .badge{position:absolute;top:8px;right:9px;width:8px;height:8px;border-radius:50%;background:var(--alert);border:2px solid #fff;display:none}
.bell.has-new .badge{display:block}
.out{width:auto;padding:0 14px}
.greeting{margin-bottom:18px}
.greeting .hi{color:var(--ink-dim);font-size:14px;margin-bottom:4px}
.greeting h1{margin:0;font-size:26px}

.hero{
  position:relative;background:var(--card);border:1px solid var(--line);
  border-radius:var(--radius);padding:26px 22px 22px;box-shadow:var(--shadow);
  overflow:hidden;margin-bottom:20px;
}
.hero::before{
  content:"";position:absolute;inset:0;
  background:radial-gradient(90% 120% at 50% -30%, var(--halo,rgba(22,138,90,.12)) 0%, transparent 62%);
}
.ring{position:relative;width:96px;height:96px;margin:2px auto 16px;display:grid;place-items:center}
.ring .pulse{position:absolute;inset:0;border-radius:50%;border:2px solid var(--state,var(--ok));opacity:.45;animation:pulse 2.6s ease-out infinite}
.ring .core{
  width:72px;height:72px;border-radius:50%;display:grid;place-items:center;
  background:#fff;border:2px solid var(--state,var(--ok));
}
.ring .core svg{width:32px;height:32px;stroke:var(--state,var(--ok));fill:none;stroke-width:2.4}
@keyframes pulse{0%{transform:scale(1);opacity:.45}70%{opacity:0}100%{transform:scale(1.5);opacity:0}}
.hero .status-title{position:relative;text-align:center;font-weight:700;font-size:18px;color:var(--navy);margin-bottom:6px}
.hero .status-sub{position:relative;text-align:center;color:var(--ink-dim);font-size:14px;line-height:1.5}
.hero .checked{position:relative;text-align:center;color:var(--ink-faint);font-size:12px;margin-top:14px;display:flex;align-items:center;justify-content:center;gap:6px}
.hero .checked .live{width:6px;height:6px;border-radius:50%;background:var(--ok)}
.sec-head{display:flex;align-items:baseline;justify-content:space-between;margin:6px 2px 12px}
.sec-head h2{font-weight:700;font-size:15px;color:var(--navy)}
.sec-head .count{color:var(--ink-faint);font-size:12.5px}
.feed{display:flex;flex-direction:column;gap:10px}
.event{
  display:flex;gap:13px;align-items:flex-start;background:var(--card);
  border:1px solid var(--line);border-radius:14px;padding:14px 15px;
}
.ev-ic{flex:0 0 38px;width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:#eef3f9}
.ev-ic svg{width:18px;height:18px;stroke-width:2;fill:none}
.ev-ic.login svg{stroke:var(--blue)} .ev-ic.login{background:#e7f1fc}
.ev-ic.view svg{stroke:var(--ok)} .ev-ic.view{background:var(--ok-soft)}
.ev-ic.edit svg{stroke:var(--warn)} .ev-ic.edit{background:var(--warn-soft)}
.ev-ic.alert svg{stroke:var(--alert)} .ev-ic.alert{background:var(--alert-soft)}
.ev-body{flex:1;min-width:0}
.ev-title{font-size:14px;font-weight:600;line-height:1.35;color:var(--navy)}
.ev-meta{color:var(--ink-faint);font-size:12px;margin-top:3px;display:flex;gap:8px;flex-wrap:wrap}
.ev-meta .tag{color:var(--ink-dim)}
.empty{text-align:center;color:var(--ink-faint);font-size:13.5px;padding:34px 10px;border:1px dashed var(--line);border-radius:14px;background:#fff}
.foot{text-align:center;color:var(--ink-faint);font-size:11.5px;margin-top:24px;line-height:1.6}
.center-note{max-width:440px;margin:48px auto;padding:0 18px;text-align:center}
.center-note h1{margin-bottom:10px}

/* App install page */
.btn-download{
  margin-top:20px;width:100%;height:50px;border:0;border-radius:999px;cursor:pointer;
  background:var(--navy);color:#fff;font-family:inherit;font-weight:700;font-size:16px;
  display:flex;align-items:center;justify-content:center;gap:10px;text-decoration:none;
}
.btn-download:hover{background:#071533}
.btn-download.is-done{background:var(--ok)}
.btn-download-ic{display:grid;place-items:center;width:22px;height:22px}
.btn-download-ic svg{width:18px;height:18px}
.access-panel{margin-top:8px}
.access-panel[hidden]{display:none !important}
.access-divider{
  display:flex;align-items:center;gap:12px;margin:22px 0 4px;color:var(--ink-faint);
  font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;
}
.access-divider::before,.access-divider::after{
  content:"";flex:1;height:1px;background:var(--line);
}
.access-divider span{flex:0 0 auto}

.next-steps{margin-top:4px}
.next-steps .desc{margin:0}
.next-steps strong{color:var(--navy);font-weight:700}

.btn-secondary{
  margin-top:16px;width:100%;height:50px;border:1px solid var(--line);border-radius:999px;cursor:pointer;
  background:#fff;color:var(--navy);font-family:inherit;font-weight:700;font-size:16px;
}
.btn-secondary:hover{background:#eef3f9}
