
:root{
  --bg:#0f172a;
  --panel:#111827;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --primary:#2563eb;
  --soft:#eff6ff;
  --border:#e5e7eb;
  --green:#16a34a;
  --danger:#dc2626;
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:var(--bg);
  color:var(--text);
}
.app-shell{
  max-width:520px;
  min-height:100vh;
  margin:0 auto;
  background:#f8fafc;
  padding-bottom:78px;
}
.topbar{
  position:sticky;
  top:0;
  z-index:10;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:18px 18px 14px;
  background:linear-gradient(135deg,#0f172a,#1e3a8a);
  color:#fff;
}
.eyebrow{margin:0;font-size:12px;opacity:.75}
h1{font-size:23px;margin:2px 0 0}
h2{font-size:22px;margin:0 0 10px}
h3{font-size:16px;margin:0 0 8px}
.install{
  border:0;
  padding:9px 12px;
  border-radius:12px;
  background:#fff;
  color:#0f172a;
  font-weight:700;
}
.hidden{display:none}
main{padding:16px}
.hero{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:22px;
  padding:18px;
  box-shadow:0 8px 24px rgba(15,23,42,.08);
}
.hero p{color:var(--muted);margin:6px 0 0}
.grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:16px;
}
.card-btn,.module,.list-item{
  border:1px solid var(--border);
  background:#fff;
  border-radius:18px;
  padding:15px;
  text-align:left;
  box-shadow:0 3px 14px rgba(15,23,42,.05);
}
.card-btn{font-weight:800;font-size:15px}
.card-btn small{display:block;font-weight:500;color:var(--muted);margin-top:4px}
.section{margin-top:20px}
.module{margin:10px 0}
.module p,.list-item p{color:var(--muted);font-size:14px;margin:4px 0 0}
.checklist label{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:12px 0;
  border-bottom:1px solid var(--border);
}
.checklist input{width:20px;height:20px}
.search-input, textarea{
  width:100%;
  border:1px solid var(--border);
  border-radius:16px;
  padding:14px;
  font-size:16px;
  background:#fff;
}
textarea{min-height:160px;resize:vertical}
.primary{
  width:100%;
  margin-top:12px;
  border:0;
  border-radius:16px;
  padding:14px 16px;
  background:var(--primary);
  color:#fff;
  font-weight:800;
  font-size:16px;
}
.notice{
  background:#fff7ed;
  border:1px solid #fed7aa;
  color:#9a3412;
  border-radius:16px;
  padding:12px;
  font-size:14px;
  margin-top:12px;
}
.bottom-nav{
  position:fixed;
  bottom:0;
  left:50%;
  transform:translateX(-50%);
  max-width:520px;
  width:100%;
  display:grid;
  grid-template-columns:repeat(5,1fr);
  background:#fff;
  border-top:1px solid var(--border);
  padding:8px 4px calc(8px + env(safe-area-inset-bottom));
}
.bottom-nav button{
  border:0;
  background:transparent;
  padding:6px 2px;
  border-radius:14px;
  color:#64748b;
  font-size:18px;
}
.bottom-nav span{display:block;font-size:11px;margin-top:2px}
.bottom-nav button.active{background:var(--soft);color:var(--primary);font-weight:800}
.badge{
  display:inline-block;
  padding:5px 9px;
  background:var(--soft);
  color:var(--primary);
  border-radius:999px;
  font-size:12px;
  font-weight:800;
}
@media(min-width:760px){
  body{background:#e2e8f0}
  .app-shell{box-shadow:0 0 40px rgba(15,23,42,.25)}
}
