:root {
  color-scheme: light dark;
  --bg: light-dark(#F7F6F3, #1A1D20);
  --surface: light-dark(#FFFFFF, #24292D);
  --line: light-dark(#DDDBD6, #363C41);
  --text: light-dark(#24292D, #F1F0EC);
  --muted: light-dark(#5B6166, #A9AEB3);
  --accent: light-dark(#BF4510, #F75F1E);
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; }
main { max-width: 560px; margin: 0 auto; padding: 48px 16px 64px; }
header { display: flex; align-items: center; gap: 14px; margin-bottom: 32px; }
header img { width: 48px; height: 48px; border-radius: 10px; }
h1 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.01em; }
ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
a.app { display: block; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: inherit; text-decoration: none; }
a.app b { display: block; font-size: 20px; }
a.app span { display: block; margin-top: 4px; }
a.app small { display: block; margin-top: 10px; font-size: 15px; color: var(--muted); }
a.app:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (hover: hover) { a.app:hover { border-color: var(--accent); } a.app:hover b { color: var(--accent); } }
.signin { margin: 16px 0 0; font-size: 15px; color: var(--muted); text-align: center; }
.signin a { display: inline-block; padding: 12px 4px; color: var(--muted); } /* 44px touch target */
@media (hover: hover) { .signin a:hover { color: var(--accent); } }
@media (min-width: 900px) { main { padding-top: 96px; } h1 { font-size: 32px; } header img { width: 56px; height: 56px; border-radius: 12px; } }

/* Signed-in and account pages. The landing page above uses none of this. */
:root { --danger: light-dark(#B42318, #FF8A7A); --ok: light-dark(#1E7B45, #6FD39A); }
a { color: var(--text); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
header a.home { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; }
h2 { margin: 0 0 8px; font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
h3 { margin: 36px 0 12px; font-size: 15px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
p { margin: 0 0 16px; }
.muted { color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
form.card { display: grid; gap: 16px; }
label { display: grid; gap: 6px; font-size: 15px; font-weight: 500; }
label > input, label > select { font-weight: 400; }
input, select { width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; font-size: 17px; /* 16px+ or iOS zooms on focus */ color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
input[readonly] { font: 15px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; font: inherit; font-weight: 600; color: var(--bg); background: var(--text); border: 1px solid var(--text); border-radius: 10px; cursor: pointer; text-decoration: none; }
button.quiet { color: var(--text); background: transparent; border-color: var(--line); }
button.danger { color: var(--danger); background: transparent; border-color: var(--line); }
@media (hover: hover) { button:hover { opacity: 0.85; } button.quiet:hover, button.danger:hover { opacity: 1; border-color: currentColor; } }
.note { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.note.error { border-color: var(--danger); color: var(--danger); }
.note.ok { border-color: var(--ok); }
.alt { margin-top: 20px; color: var(--muted); font-size: 15px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.row > select { width: auto; flex: 1 1 140px; }
.grow { flex: 1 1 auto; }
.person { display: grid; gap: 12px; }
.person b { display: block; }
.person .muted { font-size: 15px; overflow-wrap: anywhere; }
.tag { display: inline-block; padding: 1px 8px; margin-left: 6px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--muted); vertical-align: 2px; }
ul.menu { gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
ul.menu li + li { border-top: 1px solid var(--line); }
ul.menu a, ul.menu button { display: flex; width: 100%; justify-content: space-between; min-height: 52px; padding: 14px 20px; font: inherit; font-weight: 400; color: inherit; background: none; border: 0; border-radius: 0; text-decoration: none; text-align: left; }
ul.menu a::after { content: "›"; color: var(--muted); }
ul.menu button { color: var(--danger); }
@media (hover: hover) { ul.menu a:hover, ul.menu button:hover { background: var(--bg); opacity: 1; } }
.hint { margin: -8px 0 0; font-size: 15px; }
.flush { margin: 0; }
