/* kit/accounts: styles for accounts.js. Every colour is a token with a fallback to the app's own (--bg, --fg, --muted,
   --accent, --surface-2, --line, --warn, --ok, --bad), so the app's light/dark/Larger-text settings apply (Playbook 3.7). Link
   this file after the app's styles.css. No inline styles are used anywhere (the site's CSP forbids style=""). */
:root { --acc-bg: var(--bg, #fff); --acc-fg: var(--fg, #1d1d1f); --acc-muted: var(--muted, #6b6b70); --acc-line: var(--line, #d9d9de);
  --acc-surface: var(--surface-2, #f3f3f6); --acc-accent: var(--accent, #0b57d0); --acc-on-accent: #fff;
  --acc-ok: var(--ok, #1a7f37); --acc-warn: var(--warn, #9a6700); --acc-bad: var(--bad, #b42318); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --acc-bg: var(--bg, #121214); --acc-fg: var(--fg, #ececf0); --acc-muted: var(--muted, #9a9aa2);
  --acc-line: var(--line, #3a3a40); --acc-surface: var(--surface-2, #232327); --acc-accent: var(--accent, #8ab4f8); --acc-on-accent: #101014;
  --acc-ok: var(--ok, #56d364); --acc-warn: var(--warn, #e3b341); --acc-bad: var(--bad, #ff7b72); } }
:root[data-theme="dark"] { --acc-bg: var(--bg, #121214); --acc-fg: var(--fg, #ececf0); --acc-muted: var(--muted, #9a9aa2); --acc-line: var(--line, #3a3a40);
  --acc-surface: var(--surface-2, #232327); --acc-accent: var(--accent, #8ab4f8); --acc-on-accent: #101014; --acc-ok: var(--ok, #56d364); --acc-warn: var(--warn, #e3b341); --acc-bad: var(--bad, #ff7b72); }

.acc-screen { max-width: 440px; margin: 0 auto; padding: 32px 16px calc(32px + env(safe-area-inset-bottom)); color: var(--acc-fg); }
.acc-muted { color: var(--acc-muted); } .acc-small { font-size: 13px; } .acc-spacer { flex: 1; }
.acc-h { font-size: 17px; margin: 18px 0 8px; } .acc-day { font-size: 14px; color: var(--acc-muted); margin: 18px 0 6px; font-weight: 600; }
.acc-foot { margin-top: 28px; font-size: 13px; }
.acc-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.acc-card { background: var(--acc-surface); border-radius: 12px; padding: 14px; margin: 12px 0; }
.acc-card h3 { margin: 0 0 4px; font-size: 16px; }

/* 44px tap targets */
.acc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--acc-line);
  background: var(--acc-bg); color: var(--acc-fg); font: inherit; cursor: pointer; text-decoration: none; }
.acc-btn.primary { background: var(--acc-accent); color: var(--acc-on-accent); border-color: transparent; font-weight: 600; }
.acc-btn.ghost { border-color: transparent; background: transparent; color: var(--acc-muted); }
.acc-btn:disabled { opacity: .55; cursor: default; }
.acc-btn:focus-visible, .acc-input:focus-visible, .acc-menu:focus-visible { outline: 2px solid var(--acc-accent); outline-offset: 2px; }
.acc-google { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 8px; background: #fff; color: #1f1f1f; border: 1px solid #747775;
  border-radius: 22px; padding: 0 18px; font-weight: 500; text-decoration: none; }

.acc-field { display: block; margin: 0 0 12px; } .acc-field > span { display: block; font-size: 13px; color: var(--acc-muted); margin-bottom: 4px; }
.acc-field small { display: block; margin-top: 3px; }
.acc-field input, .acc-field textarea, .acc-input { width: 100%; box-sizing: border-box; min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--acc-line);
  background: var(--acc-bg); color: var(--acc-fg); font: inherit; }
.acc-check, .acc-opt { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; align-items: center; }
.acc-opt { padding: 4px 0; } .acc-opt input, .acc-check input { width: 20px; height: 20px; flex: none; }
/* iPhone Safari zooms into any text box under 16px and stays zoomed: on touch screens every field is at least 16px; a person can still
   zoom by hand (never maximum-scale=1 / user-scalable=no). Owner's global rule, 18 Oct 2026. */
@media (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="button"]):not([type="submit"]), textarea, select, [contenteditable="true"] { font-size: max(16px, 1em); }
}

.acc-chips { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 6px 0; }
.acc-chip { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--acc-surface); border: 1px solid var(--acc-line); color: var(--acc-muted); }
.acc-chip.ok { color: var(--acc-ok); } .acc-chip.warn { color: var(--acc-warn); } .acc-chip.bad { color: var(--acc-bad); }
.acc-count { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 999px; background: var(--acc-bad); color: #fff; font-size: 12px; line-height: 18px; text-align: center; }

.acc-list { list-style: none; margin: 0; padding: 0; } .acc-list > li { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--acc-line); }
.acc-filters { margin-top: 0; } .acc-filters .acc-input { flex: 1; min-width: 160px; }
.acc-sess { border-bottom: 1px solid var(--acc-line); padding: 8px 0; } .acc-sess summary { cursor: pointer; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-height: 32px; }
.acc-sess.flag, .acc-table tr.flag { background: color-mix(in srgb, var(--acc-warn) 12%, transparent); }
.acc-pages { margin: 6px 0 0; padding-left: 20px; }
.acc-tablewrap { overflow-x: auto; } .acc-table { border-collapse: collapse; font-size: 13px; width: 100%; } .acc-table td { padding: 6px 8px; border-bottom: 1px solid var(--acc-line); vertical-align: top; }
[hidden] { display: none !important; }

/* View as: a bar at the top of the app while it's on */
.acc-viewas { position: sticky; top: 0; z-index: 60; display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 8px 16px;
  background: color-mix(in srgb, var(--acc-warn) 18%, var(--acc-bg)); color: var(--acc-fg); font-size: 14px; }

/* Windows that close from their top: a sticky X (44px target, 34px circle), Escape, backdrop, swipe down (S1, S2, S10) */
@keyframes acc-up { from { transform: translateY(100%); } to { transform: none; } }
.acc-back { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; }
.acc-sheet { position: relative; width: 100%; max-width: 520px; max-height: 88dvh; overflow-y: auto; overscroll-behavior: contain; box-sizing: border-box; background: var(--acc-bg); color: var(--acc-fg);
  border-radius: 20px 20px 0 0; padding: 12px 18px calc(22px + env(safe-area-inset-bottom)); animation: acc-up .22s ease-out; }
.acc-sheet > .acc-x { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -6px -8px -38px auto; border: 0; border-radius: 50%;
  background: radial-gradient(circle, var(--acc-surface) 16.5px, transparent 17px); color: var(--acc-fg); cursor: pointer; }
.acc-sheet > .acc-h:first-of-type { margin-top: 6px; padding-right: 40px; }
@media (min-width: 641px) { .acc-back { align-items: center; } .acc-sheet { border-radius: 16px; } }
.acc-noscroll { overflow: hidden; }
.acc-menu { display: block; width: 100%; min-height: 48px; padding: 0 4px; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--acc-line); color: var(--acc-fg); font: inherit; cursor: pointer; }
.acc-menu.danger { color: var(--acc-bad); }
.acc-qrbox { max-width: 280px; margin: 8px auto; background: #fff; border-radius: 12px; } .acc-qrbox svg { display: block; width: 100%; height: auto; }

.acc-toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 90; width: max-content; max-width: calc(100vw - 32px);
  box-sizing: border-box; background: var(--acc-fg); color: var(--acc-bg); padding: 10px 16px; border-radius: 8px; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .acc-sheet { animation: none; } }
