/* StayAhead — shared styles (the portal's dark palette, plus account/settings bits). */
:root {
  --bg: #0b0f17; --card: #141a26; --card2: #0f1420; --line: #1f2937;
  --text: #e8edf5; --muted: #8b97a8; --accent: #38bdf8;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', system-ui, sans-serif; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 1rem; }
.muted { color: var(--muted); }
.sec-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.sec-title .accent { color: var(--accent); }

.brand { display:flex; align-items:center; gap:.55rem; text-decoration:none; color:inherit; }
.brand-mark { width:2.25rem; height:2.25rem; border-radius:.8rem; display:grid; place-items:center;
  background:#0f2a1a; border:1px solid #166534; color:#4ade80; font-weight:800; }
.brand h1 { font-size:1.1rem; font-weight:800; line-height:1; margin:0; }
.brand p { font-size:.7rem; color:var(--muted); line-height:1; margin:.3rem 0 0; }

.ac-pill { font-size:11px; font-weight:700; padding:3px 9px; border-radius:999px; border:1px solid; white-space:nowrap; }
.ac-pill-trial { color:#7dd3fc; border-color:#0369a1; background:#0c2a3d; }
.ac-pill-pro { color:#86efac; border-color:#166534; background:#0f2a1a; }
.ac-pill-exp { color:#fca5a5; border-color:#991b1b; background:#2a0f12; }
.ac-nav { font-size:.8rem; color:var(--muted); background:var(--card2); border:1px solid var(--line);
  padding:.35rem .7rem; border-radius:.65rem; text-decoration:none; cursor:pointer; white-space:nowrap; }
.ac-nav:hover { color:var(--text); border-color:#334155; }

.btn { display:inline-flex; align-items:center; justify-content:center; gap:.4rem; font-size:.85rem; font-weight:600;
  padding:.5rem .95rem; border-radius:.7rem; border:1px solid #0369a1; background:#0c4a6e; color:#e0f2fe; cursor:pointer; }
.btn:hover { background:#075985; }
.btn:disabled { opacity:.5; cursor:default; }
.btn-ghost { background:var(--card2); border-color:var(--line); color:var(--text); font-weight:500; }
.btn-ghost:hover { background:#161d2b; border-color:#334155; }
.btn-danger { background:#2a0f12; border-color:#991b1b; color:#fca5a5; }
.btn-danger:hover { background:#3b1216; }
.btn-sm { font-size:.75rem; padding:.3rem .6rem; border-radius:.55rem; }

.field { width:100%; background:var(--card2); border:1px solid #334155; border-radius:.7rem; padding:.55rem .75rem;
  font-size:.9rem; color:var(--text); }
.field:focus { outline:none; border-color:var(--accent); }
textarea.field { resize:vertical; min-height:5.5rem; line-height:1.45; }
select.field { padding-right:2rem; }
label.lbl { display:block; font-size:.75rem; color:var(--muted); margin-bottom:.3rem; font-weight:600; }

.switch { position:relative; width:42px; height:24px; flex:0 0 auto; }
.switch input { opacity:0; width:0; height:0; }
.switch span { position:absolute; inset:0; background:#334155; border-radius:999px; transition:.15s; cursor:pointer; }
.switch span::before { content:''; position:absolute; left:3px; top:3px; width:18px; height:18px; border-radius:50%; background:#e2e8f0; transition:.15s; }
.switch input:checked + span { background:#0284c7; }
.switch input:checked + span::before { transform:translateX(18px); }

.chip { display:inline-flex; align-items:center; gap:.3rem; font-size:11px; padding:2px 8px; border-radius:999px;
  background:#1e293b; color:#cbd5e1; border:1px solid #334155; }
.chip-ok { background:#0f2a1a; color:#86efac; border-color:#166534; }
.chip-warn { background:#2a230f; color:#fcd34d; border-color:#92650e; }
.chip-bad { background:#2a0f12; color:#fca5a5; border-color:#991b1b; }
.chip-info { background:#0c2a3d; color:#7dd3fc; border-color:#0369a1; }

.st-dot { width:9px; height:9px; border-radius:50%; display:inline-block; flex:0 0 auto; background:#475569; }
.st-STAY { background:#22c55e; } .st-WALK { background:#f59e0b; } .st-RUN { background:#ef4444; box-shadow:0 0 0 3px #ef444433; }

.spinner { width:14px; height:14px; border-radius:50%; border:2px solid #334155; border-top-color:var(--accent);
  animation:spin .8s linear infinite; display:inline-block; }
@keyframes spin { to { transform:rotate(360deg); } }

.autocomplete { position:absolute; z-index:40; left:0; right:0; margin-top:4px; background:var(--card); border:1px solid var(--line);
  border-radius:.8rem; overflow:hidden; box-shadow:0 12px 40px #000a; }
.autocomplete div { padding:.55rem .75rem; font-size:.82rem; cursor:pointer; border-top:1px solid var(--line); }
.autocomplete div:first-child { border-top:0; }
.autocomplete div:hover, .autocomplete div.on { background:#1f2937; }

.banner { border-radius:.9rem; padding:.6rem .85rem; font-size:.82rem; border:1px solid; display:flex; flex-wrap:wrap; gap:.4rem .8rem; align-items:center; }
.banner-trial { background:#0c2a3d; border-color:#0369a1; color:#bae6fd; }
.banner-warn { background:#2a230f; border-color:#92650e; color:#fde68a; }
.banner a { color:inherit; text-decoration:underline; }

@media (max-width: 640px) {
  .hide-sm { display:none !important; }
}
