/* Our Money - the app's own look, from the designs (day: light grey and white; night: dark blue-grey, never black).
   Blue means fine or information; orange means something needs you. */
:root {
  --bg: #F4F5F7; --card: #FFFFFF; --line: #E3E5EA; --text: #16181D; --muted: #5B616E;
  --blue: #2D4FD1; --blue-soft: #E9EDFC; --orange: #E8A33D; --orange-soft: #FDF1DF;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #171B24; --card: #1D212C; --line: #2E3446; --text: #EEF0F6; --muted: #A3AABB;
          --blue: #8FA7FF; --blue-soft: #2C3550; --orange: #F2A65A; --orange-soft: #3A2E22; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 1rem; line-height: 1.45; }
main.narrow { max-width: 440px; margin: 0 auto; padding: 32px 22px 48px; display: flex; flex-direction: column; gap: 18px; }
h1 { margin: 0; font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; }
h2 { margin: 0; font-size: 1.05rem; font-weight: 800; }
p { margin: 0; }
a { color: var(--blue); }
.muted { color: var(--muted); }
.warn { color: var(--text); background: var(--orange-soft); border-left: 4px solid var(--orange); padding: 10px 12px; border-radius: 10px; }
.ok { color: var(--blue); font-weight: 700; }
.brand { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 22px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 0.95rem; }
input[type=password], input[name=code] {
  font: inherit; font-size: 1.1rem; padding: 14px 14px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
fieldset.whos { border: 0; padding: 0; margin: 0; display: flex; gap: 10px; flex-wrap: wrap; }
fieldset.whos legend { font-weight: 700; font-size: 0.95rem; margin-bottom: 8px; }
label.who { flex: 1 1 120px; flex-direction: row; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid var(--line);
  border-radius: 16px; background: var(--bg); font-size: 1.05rem; cursor: pointer; }
label.who:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
button, .button { font: inherit; font-weight: 800; border: 0; border-radius: 16px; padding: 14px 18px; background: var(--blue);
  color: #FFFFFF; cursor: pointer; text-align: center; text-decoration: none; display: inline-block; }
@media (prefers-color-scheme: dark) { button, .button { color: #171B24; } }
button.big, .button.big { width: 100%; min-height: 56px; font-size: 1.1rem; }
button[disabled] { opacity: 0.45; cursor: not-allowed; }
button.link { background: none; color: var(--blue); padding: 8px 0; font-weight: 700; }
.qr { align-self: center; border-radius: 12px; background: #FFFFFF; padding: 8px; }
code.key { display: block; word-break: break-all; font-size: 1rem; padding: 10px; background: var(--bg); border-radius: 10px; }
.pill { align-self: flex-start; padding: 4px 12px; border-radius: 14px; background: var(--blue-soft); color: var(--blue);
  font-size: 0.85rem; font-weight: 800; }
.lead { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }

/* the app frame: tabs at the bottom on phones, a menu down the left on bigger screens */
main.wide { min-height: 100vh; }
.app { min-height: 100vh; display: flex; flex-direction: column-reverse; }
.content { flex: 1 1 auto; padding: 24px 22px 28px; display: flex; flex-direction: column; gap: 20px; max-width: 760px; width: 100%; margin: 0 auto; }
.hello { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hello h1 { font-size: 1.75rem; }
.tabs { position: sticky; bottom: 0; background: var(--card); border-top: 1px solid var(--line); display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 8px 6px calc(14px + env(safe-area-inset-bottom)); }
.tab { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: var(--muted);
  font-size: 0.75rem; font-weight: 600; }
.tab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tab.on { color: var(--blue); font-weight: 800; }
.tab[aria-disabled=true] { opacity: 0.55; cursor: default; }
@media (min-width: 900px) {
  .app { flex-direction: row; }
  .tabs { position: sticky; top: 0; height: 100vh; width: 220px; border-top: 0; border-right: 1px solid var(--line);
    display: flex; flex-direction: column; gap: 6px; padding: 28px 14px; }
  .tab { flex-direction: row; gap: 12px; font-size: 1rem; padding: 12px 14px; border-radius: 14px; }
  .tab.on { background: var(--blue-soft); }
  .content { padding: 40px 48px; }
}
