/* "Your account". Tokens from Alex's v2 mockup (MOCKUP_V2_REVIEW.md). Self-hosted Figtree only. No inline styles anywhere (CSP style-src 'self'). */
@font-face { font-family: Figtree; src: url(/fonts/figtree-latin-wght-normal.woff2) format('woff2'); font-weight: 300 900; font-display: swap; }
:root {
  --ink: #14110F; --blue: #1B5C92; --blue-dk: #164B77; --muted: #5B5348; --line: #E0D9CC; --cream: #F6F3EE; --sand: #EFEAE0;
  --tint: #D5E2EC; --green: #D9E8E1; --white: #fff; --warn-bg: #FBEFD9; --focus: #1B5C92;
  --r-card: 22px; --r-pill: 99px; --max: 860px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Figtree, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--sand); }
a { color: var(--blue); text-underline-offset: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; margin: 8px 0 20px; }
h1:focus { outline: none; }
h1:focus-visible { outline: 3px solid var(--focus); }
h2 { font-size: 1.15rem; font-weight: 700; margin: 0 0 6px; }
p { margin: 0 0 10px; }
strong { font-weight: 700; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); padding: 10px 14px; border-radius: var(--r-pill); z-index: 20; }
.skip:focus { left: 12px; }

.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px max(16px, env(safe-area-inset-left)); background: rgba(242, 237, 228, .96); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: .04em; font-size: 15px; }
.brand small { font-weight: 600; color: var(--muted); font-size: 12px; }
#nav { display: flex; gap: 4px; background: var(--sand); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 4px; }
#nav[hidden] { display: none; }
#nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
#nav a[aria-current="page"] { background: var(--blue); color: var(--white); }

main { max-width: var(--max); margin: 0 auto; padding: 24px 16px 120px; }
.card, .box, .task { background: var(--white); border-radius: var(--r-card); padding: 22px; margin: 0 0 14px; border: 1px solid var(--line); }
.card.narrow { max-width: 520px; }
.task.urgent { background: var(--tint); border-color: #BFD2E2; }
.task.info { background: var(--white); }
.task.quiet { background: var(--cream); }
.sub { font-size: 1.05rem; margin-bottom: 16px; }
.empty { background: var(--green); border-radius: var(--r-card); padding: 20px 22px; }
.fine { font-size: 15px; color: var(--muted); }
.loading { padding: 24px 4px; color: var(--muted); }
.foot-note { max-width: 520px; font-size: 15px; color: var(--muted); margin-top: 18px; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 4px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: var(--r-pill); border: 1.5px solid var(--ink);
  background: var(--white); color: var(--ink); font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn.primary:hover { background: var(--blue-dk); }
.btn:disabled { opacity: .55; cursor: progress; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); text-decoration: underline; cursor: pointer; min-height: 24px; }

form label { display: block; font-weight: 600; margin: 14px 0 6px; }
input { width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; font-size: 17px; border: 1.5px solid #8A8172; border-radius: 14px; background: var(--white); color: var(--ink); }
input[aria-invalid="true"] { border-color: #A3261B; }
form .btn { margin-top: 16px; width: 100%; }

.live { position: fixed; left: 50%; transform: translateX(-50%); bottom: 88px; width: min(560px, calc(100% - 24px)); z-index: 15; }
.live p { margin: 8px 0 0; padding: 12px 16px; border-radius: 14px; background: var(--ink); color: var(--white); box-shadow: 0 6px 24px rgba(20, 17, 15, .2); }
.live a, .live .linkbtn { color: #BFD8EE; }
#alert p { background: #7A1D14; }


@media (max-width: 767px) {
  .top { justify-content: center; }
  #nav { position: fixed; bottom: 0; left: 0; right: 0; border-radius: 0; border: 0; border-top: 1px solid var(--line); background: rgba(246, 243, 238, .98);
    justify-content: space-around; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  #nav a { flex: 1; justify-content: center; padding: 0 6px; font-size: 14px; text-align: center; }
  .btn { width: 100%; }
}
@media (min-width: 768px) { .live { bottom: 24px; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
