/* UA Design Group brand tokens, the same ones the team site uses. */
:root {
  --canvas: #e9e8e4;
  --paper: #f4f3f0;
  --ink: #0d0d0e;
  --line: #d2d2cf;
  --line-strong: #c9c8c4;
  --muted: #5b5d62;
  --body: #1a1a1c;
  --danger: #8c3b3b;
  --display: "Bellefair", Georgia, "Times New Roman", serif;
  --sans: "Jost", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --r: 3px;
  --gutter: 24px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--canvas); }
body { color: var(--body); font-family: var(--sans); font-weight: 300; font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
a { color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.app { max-width: 560px; min-height: 100dvh; margin: 0 auto; display: flex; flex-direction: column; padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left); }
.loading { padding: 40px var(--gutter); color: var(--muted); }

.eyebrow { margin: 0; font-size: 11px; font-weight: 400; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); }
h1, h2 { font-family: var(--display); font-weight: 400; color: var(--ink); margin: 0; }
h1 { font-size: 38px; line-height: 1.05; margin-top: 10px; }
h1.small { font-size: 32px; line-height: 1.08; margin-top: 0; }
h2 { font-size: 24px; }
.head { padding: 28px var(--gutter) 0; }
.pad { padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.hint { margin: 0; font-size: 14px; color: var(--muted); }
.error { margin: 0; padding: 12px 14px; border: 1px solid var(--danger); border-radius: var(--r); color: var(--danger); font-weight: 400; background: var(--paper); }

.topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px 0; }
.topbar .eyebrow { padding-left: 12px; }
.textbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 0; background: none; font-size: 15px; font-weight: 400; color: var(--muted); text-decoration: none; }

.addbtn { display: flex; align-items: center; gap: 16px; width: 100%; padding: 18px 20px; border: 0; border-radius: var(--r); background: var(--ink); color: var(--paper); text-align: left; text-decoration: none; }
.addbtn svg { flex: none; }
.addbtn b { display: block; font-size: 17px; font-weight: 400; letter-spacing: 0.02em; }
.addbtn span span { display: block; font-size: 14px; color: var(--line-strong); }

.sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line-strong); }
.sechead .count { font-size: 13px; font-weight: 400; color: var(--muted); }
.section { padding: 30px var(--gutter) 0; }

.row { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 76px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.row .who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.row .who b { font-size: 17px; font-weight: 400; color: var(--ink); overflow-wrap: anywhere; }
.row .who span { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.due { flex: none; font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.due.late { color: var(--danger); }
.empty { margin: 0; padding: 18px 0; color: var(--muted); }

.vrow { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.vrow b { font-family: var(--display); font-weight: 400; font-size: 23px; line-height: 1.15; color: var(--ink); overflow-wrap: anywhere; }
.vrow .what { font-size: 15px; font-weight: 400; color: var(--body); }
.vrow .where { font-size: 14px; color: var(--muted); }

.search { display: flex; align-items: center; gap: 12px; height: 50px; padding: 0 14px; background: var(--paper); border: 1px solid var(--ink); border-radius: var(--r); }
.search input { flex: 1; min-width: 0; height: 46px; border: 0; background: transparent; font-weight: 400; color: var(--ink); }
.search input:focus { outline: none; }
.search:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.fakesearch { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--r); text-decoration: none; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--paper); color: var(--ink); font-size: 15px; font-weight: 400; }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }

.tabs { position: sticky; bottom: 0; margin-top: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); background: var(--paper); font-size: 12px; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase; text-align: center; padding-bottom: env(safe-area-inset-bottom); }
.tabs a { padding: 20px 0 22px; text-decoration: none; color: var(--muted); }
.tabs a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 2px 0 var(--ink); }
.spacer { height: 36px; }

.form { display: flex; flex-direction: column; gap: 18px; padding: 24px var(--gutter) 0; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend { padding: 0; font-size: 12px; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.field > legend { padding-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--paper); font-weight: 400; color: var(--ink); }
.field textarea { padding: 12px 14px; font-weight: 300; resize: vertical; }
.field.key input { border-color: var(--ink); }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--ink); border-radius: var(--r); overflow: hidden; }
.seg button { min-height: 48px; padding: 6px 8px; border: 0; background: var(--paper); color: var(--ink); font-weight: 400; letter-spacing: 0.02em; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.primary { min-height: 54px; border: 0; border-radius: var(--r); background: var(--ink); color: var(--paper); font-size: 17px; font-weight: 400; letter-spacing: 0.04em; }
.primary[disabled] { opacity: 0.55; }
.secondary { min-height: 48px; border: 1px solid var(--ink); border-radius: var(--r); background: transparent; color: var(--ink); font-weight: 400; }
.dangerbtn { min-height: 48px; border: 0; background: none; color: var(--danger); font-weight: 400; text-align: left; padding: 0; }
.more summary { min-height: 44px; display: flex; align-items: center; font-weight: 400; color: var(--muted); cursor: pointer; }
.more .form { padding: 6px 0 0; }

.shot { display: flex; align-items: center; gap: 14px; margin: 20px var(--gutter) 0; padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.shot img { flex: none; width: 54px; height: 84px; object-fit: cover; border: 1px solid var(--line-strong); }
.picker { display: grid; gap: 12px; padding: 22px var(--gutter) 0; }
.picker label.addbtn { cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.duecard { margin: 22px var(--gutter) 0; padding: 18px 20px 20px; background: var(--ink); color: var(--paper); border-radius: var(--r); }
.duecard .eyebrow { color: var(--line-strong); letter-spacing: 0.22em; }
.duecard .big { margin: 6px 0 0; font-family: var(--display); font-size: 26px; line-height: 1.15; }
.duecard .hint { margin-top: 6px; color: var(--line-strong); }
.duecard .acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.duecard button { min-height: 48px; padding: 6px 8px; border-radius: var(--r); font-size: 15px; font-weight: 400; }
.duecard .a1 { border: 0; background: var(--paper); color: var(--ink); }
.duecard .a2 { border: 1px solid var(--muted); background: transparent; color: var(--paper); }
.duecard .reached { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.duecard .reached label { font-size: 14px; color: var(--line-strong); }
.duecard .reached input { min-height: 48px; padding: 0 14px; border: 1px solid var(--muted); border-radius: var(--r); background: transparent; color: var(--paper); font-weight: 400; }
.duecard .reached input::placeholder { color: var(--muted); }
.duecard .reached :focus-visible { outline-color: var(--paper); }
.facts { margin: 26px var(--gutter) 0; }
.facts > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.facts > div:first-child { border-top-color: var(--line-strong); }
.facts > div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-size: 12px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.facts dd { margin: 0; font-weight: 400; overflow-wrap: anywhere; white-space: pre-line; }
.facts dd a { display: inline-block; padding: 10px 0; margin: -10px 0; }
.history p { margin: 0 0 8px; font-size: 15px; }
.history img { margin-top: 8px; width: 96px; border: 1px solid var(--line-strong); display: block; }
.login { padding: 64px var(--gutter) 0; display: flex; flex-direction: column; gap: 18px; }

@media (prefers-reduced-motion: reduce) { * { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; } }
