/* The client's console: phone first, the mockup's look (teal on a warm ground, Manrope and Inter). */
:root {
  --ground: #F7F6F2; --card: #FFFFFF; --ink: #16181D; --muted: #5C616A; --line: #EEEBE4; --edge: #D9D6CE;
  --teal: #0B6B61; --teal-soft: #E4EFEC; --bar: #FBFAF7;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 15px/1.45 Inter, system-ui, sans-serif; }
a { color: var(--teal); }
.frame { min-height: 100vh; display: flex; flex-direction: column; max-width: 720px; margin: 0 auto; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 20px 8px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 600; }
.mark { width: 26px; height: 26px; border-radius: 9px; background: var(--teal); color: var(--ground); display: grid; place-items: center; font-size: 13px; }
.avatar { width: 44px; height: 44px; border-radius: 22px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; font-weight: 600; text-decoration: none; }
.avatar.big { width: 64px; height: 64px; border-radius: 32px; font: 800 22px Manrope, Inter, sans-serif; flex-shrink: 0; }
.back { width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink); text-decoration: none; font-size: 28px; }
.back-label { flex-grow: 1; font-weight: 600; }
.main { flex-grow: 1; padding: 8px 20px 24px; display: flex; flex-direction: column; gap: 14px; }
h1 { margin: 0; font: 800 28px/1.15 Manrope, Inter, sans-serif; letter-spacing: -0.02em; }
.lead { margin: 0; color: #4A4F57; }
.muted { color: var(--muted); font-size: 13px; margin: 0; }
.label { margin: 4px 0 0; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.card { background: var(--card); border-radius: 16px; box-shadow: 0 1px 2px rgba(22,24,29,.05); padding: 4px 14px; }
.card.link { display: block; padding: 14px; color: var(--ink); text-decoration: none; font-weight: 600; }
.list { margin: 0; padding: 0 14px; list-style: none; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 6px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.card .row:first-child, .card form:first-child .row, .card > form.row { border-top: 0; }
.who { display: flex; flex-direction: column; min-width: 0; }
.who strong { font-size: 15px; overflow-wrap: anywhere; }
.person { display: flex; align-items: center; gap: 14px; }
.note { margin: 0; background: var(--teal-soft); border-radius: 14px; padding: 12px 14px; font-size: 14px; color: #0B3F39; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips a { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--edge); background: var(--card); color: var(--ink); text-decoration: none; font: 600 13px Inter, sans-serif; display: inline-flex; align-items: center; }
.chips a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
button { min-height: 44px; padding: 0 16px; border-radius: 12px; border: 0; background: var(--teal); color: #fff; font: 600 14px Inter, sans-serif; cursor: pointer; }
button.quiet { background: #F1EFEA; color: var(--ink); }
.segmented { display: inline-flex; background: #F1EFEA; border-radius: 12px; padding: 3px; }
.segmented button { min-height: 38px; background: transparent; color: var(--ink); }
.segmented button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 2px rgba(22,24,29,.12); }
.add { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.add .row { border: 0; min-height: 0; padding: 0; }
input { flex-grow: 1; min-height: 44px; border: 1px solid var(--edge); border-radius: 12px; padding: 0 12px; font: 400 15px Inter, sans-serif; min-width: 0; }
.tabs { position: sticky; bottom: 0; display: flex; justify-content: space-around; padding: 8px 4px 20px; border-top: 1px solid #E3E0D8; background: var(--bar); }
.tabs a { min-width: 64px; min-height: 48px; display: grid; place-items: center; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 600; }
.tabs a[aria-current] { color: var(--teal); }
.pill { flex-shrink: 0; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #ECEAE4; color: #4A4F57; }
.pill.on { background: var(--teal-soft); color: #0B5A51; }
form.inline { display: flex; gap: 6px; align-items: center; max-width: 60%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.row.bare { border: 0; min-height: 0; padding: 0; }
.deck { background: var(--card); border-radius: 24px; padding: 18px; box-shadow: 0 6px 20px rgba(22,24,29,.08); display: flex; flex-direction: column; gap: 14px; }
.deck.done { text-align: center; align-items: center; }
.kind { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.kind.check { background: var(--teal-soft); color: #0B5A51; }
.claim { margin: 0; font: 700 22px/1.3 Manrope, Inter, sans-serif; }
.source { background: var(--ground); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.source em { color: #4A4F57; }
.actions { display: flex; gap: 8px; }
.actions button { flex: 1; }
.undo { align-self: center; }
.kind.choice { background: #FBEDE6; color: #9A4321; }
.source.side button { align-self: flex-start; }
