/* Styles for the pages the push workstream owns (/install, /account, /offline).
   Tokens fall back to the brand palette until app.css defines them. */
:root {
  --ms-coral: #ff5a36;
  --ms-yellow: #ffc83d;
  --ms-navy: #14213d;
  --ms-cream: #fff8f0;
  --ms-ink: #1b1b1f;
  --ms-muted: #5c6270;
  --ms-line: #e6ded3;
  --ms-card: #ffffff;
  --ms-ok: #1d8a4b;
  --ms-warn: #b45309;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ms-cream: #14171c;
    --ms-ink: #f3f1ec;
    --ms-muted: #a8adb8;
    --ms-line: #2b303a;
    --ms-card: #1d2129;
  }
}
.ms-page { background: var(--ms-cream); color: var(--ms-ink); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.45; -webkit-font-smoothing: antialiased; }
.ms-wrap { max-width: 560px; margin: 0 auto; padding: 16px 16px calc(32px + env(safe-area-inset-bottom)); }
.ms-centre { text-align: center; padding-top: 48px; }
.ms-logo { border-radius: 22%; }
.ms-top { display: flex; align-items: center; gap: 10px; padding: 8px 0 12px; }
.ms-top img { width: 36px; height: 36px; border-radius: 9px; }
.ms-top a { color: var(--ms-navy); font-weight: 700; text-decoration: none; font-size: 1.05rem; }
@media (prefers-color-scheme: dark) { .ms-top a { color: var(--ms-ink); } }
.ms-top .ms-spacer { flex: 1; }
.ms-top .ms-link { font-weight: 500; font-size: 0.9rem; color: var(--ms-muted); }
h1 { font-size: 1.6rem; line-height: 1.2; margin: 8px 0 6px; }
h2 { font-size: 1.05rem; margin: 0 0 8px; }
.ms-lead { color: var(--ms-muted); margin: 0 0 18px; }
.ms-card { background: var(--ms-card); border: 1px solid var(--ms-line); border-radius: 14px; padding: 14px 16px; margin: 0 0 12px; }
.ms-card.ms-hidden, .ms-hidden { display: none !important; }
.ms-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; }
.ms-row + .ms-row { border-top: 1px solid var(--ms-line); }
.ms-row .ms-k { color: var(--ms-muted); font-size: 0.9rem; }
.ms-row .ms-v { font-weight: 600; text-align: right; }
.ms-btn { box-sizing: border-box; appearance: none; border: 0; border-radius: 12px; background: var(--ms-coral); color: #fff; font: inherit; font-weight: 700; padding: 13px 18px; width: 100%; cursor: pointer; }
.ms-btn:disabled { opacity: 0.55; cursor: default; }
.ms-btn.ms-secondary { background: transparent; color: var(--ms-navy); border: 2px solid var(--ms-line); }
@media (prefers-color-scheme: dark) { .ms-btn.ms-secondary { color: var(--ms-ink); } }
.ms-btn.ms-small { width: auto; padding: 8px 14px; font-size: 0.9rem; }
.ms-btn + .ms-btn { margin-top: 8px; }
.ms-status { font-size: 0.9rem; color: var(--ms-muted); margin: 8px 0 0; min-height: 1.2em; }
.ms-status.ok { color: var(--ms-ok); }
.ms-status.warn { color: var(--ms-warn); }
.ms-pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; background: var(--ms-line); color: var(--ms-ink); }
.ms-pill.on { background: #d9f2e3; color: var(--ms-ok); }
.ms-pill.off { background: #fde8e2; color: #a63a1f; }
.ms-steps { list-style: none; padding: 0; margin: 12px 0 0; counter-reset: step; }
.ms-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--ms-line); }
.ms-steps li:first-child { border-top: 0; }
.ms-steps .ms-n { counter-increment: step; flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--ms-navy); color: #fff; font-weight: 700; font-size: 0.85rem; display: grid; place-items: center; }
.ms-steps .ms-n::before { content: counter(step); }
.ms-steps svg { width: 22px; height: 22px; vertical-align: -5px; margin: 0 2px; }
.ms-steps .ms-icon-box { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--ms-line); vertical-align: middle; margin: 0 3px; }
.ms-switch { position: relative; width: 50px; height: 30px; flex: 0 0 auto; }
.ms-switch input { opacity: 0; width: 0; height: 0; }
.ms-switch span { position: absolute; inset: 0; border-radius: 999px; background: #c9c3b8; transition: background 0.15s; }
.ms-switch span::after { content: ""; position: absolute; width: 24px; height: 24px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: transform 0.15s; }
.ms-switch input:checked + span { background: var(--ms-ok); }
.ms-switch input:checked + span::after { transform: translateX(20px); }
.ms-switch input:disabled + span { opacity: 0.5; }
select.ms-select { font: inherit; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--ms-line); background: var(--ms-card); color: var(--ms-ink); max-width: 60%; }
.ms-list { margin: 0; padding: 0; list-style: none; }
.ms-list li { padding: 6px 0; border-top: 1px solid var(--ms-line); font-size: 0.95rem; }
.ms-list li:first-child { border-top: 0; }
.ms-foot { color: var(--ms-muted); font-size: 0.8rem; text-align: center; margin-top: 24px; }
.ms-foot a { color: inherit; }
a.ms-inline { color: var(--ms-coral); font-weight: 600; }
.ms-danger { color: #a63a1f; }
