:root {
    --bg: #f6f7f9;
    --fg: #1d2330;
    --muted: #6b7385;
    --line: #dde1e8;
    --accent: #2b5fd9;
    --pad: .75rem;
    --tap: 2.75rem;      /* minimum touch target */
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--fg);
    background: var(--bg);
    -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
body { margin: 0; }
h1 { font-size: 1.3rem; margin: .3rem 0 .8rem; }
/* FocusOnNavigate focuses the h1 after each navigation (for screen readers) – no visible frame */
h1:focus { outline: none; }
input, button { font: inherit; min-height: var(--tap); border-radius: 10px; }
input { flex: 1; min-width: 0; padding: 0 .75rem; border: 1px solid var(--line); background: #fff; }
button { padding: 0 1rem; border: none; background: var(--accent); color: #fff; font-weight: 600; cursor: pointer; }
button.secondary { border: 1px solid var(--line); background: #fff; color: var(--fg); }
.muted { color: var(--muted); }
.loading { padding: 20vh var(--pad); text-align: center; color: var(--muted); }
.topbar { padding: var(--pad) max(var(--pad), env(safe-area-inset-left)); background: var(--fg); }
.brand { color: #fff; font-weight: 700; text-decoration: none; }
.content { max-width: 40rem; margin: 0 auto; padding: var(--pad); }
.row { display: flex; gap: .5rem; margin-bottom: .5rem; }
.list { list-style: none; padding: 0; }
.list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem .75rem; padding: .6rem 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }

/* new version ready (js/update.js) */
#update-ui {
    display: none; position: fixed; z-index: 30; left: 0; right: 0; bottom: 0;
    align-items: center; justify-content: space-between; gap: .75rem;
    padding: .6rem var(--pad) max(.6rem, env(safe-area-inset-bottom));
    background: var(--fg); color: #fff;
}
#update-ui.show { display: flex; }
#update-ui button { flex: none; }

#blazor-error-ui {
    display: none; position: fixed; z-index: 1000; left: 0; right: 0; bottom: 0;
    padding: .6rem var(--pad); background: lightyellow; color: #000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; }

h2 { font-size: 1rem; margin: 1.2rem 0 .5rem; }
.error { color: #b3261e; }
button:disabled { opacity: .6; }
.topbar { display: flex; align-items: center; gap: .75rem; }
.topbar .brand { margin-right: auto; }
.topbar a { color: #fff; }
.who { color: #fff; max-width: 8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
