/* text keeps its size when an iPhone is turned sideways, and a quick second tap never zooms the page */
html{color-scheme:light;-webkit-text-size-adjust:100%;text-size-adjust:100%;touch-action:manipulation}
:root{
  --page:#F5F8F8; --card:#FFFFFF; --line:rgba(25,75,80,.14);
  --ink:#194B50; --ink2:#56716F; --accent:#287C83; --tint:#E3F1F1; --on:#FFFFFF;
  --red:#B42318; --redbg:#FBE9E7; --ok:#287C83;
  --serif:"Instrument Serif",Georgia,"Times New Roman",serif;
  --sans:"Manrope",system-ui,-apple-system,"Segoe UI",sans-serif;
  --rec:clamp(132px,31vh,200px); /* the Record button: full size on a tall phone, smaller on a short one so the whole Start page fits */
}
*{box-sizing:border-box}
html,body{height:100%;overscroll-behavior-y:contain} /* no pull-to-refresh: a reload would cut a recording */
body{margin:0;background:var(--page);color:var(--ink);font:16px/1.5 var(--sans);-webkit-tap-highlight-color:transparent}
main{max-width:480px;margin:0 auto;min-height:100%;display:flex}
/* clear of the notch, the rounded corners and the home bar on every side; 100vh is for phones that do not know dvh yet */
.screen{flex:1;min-width:0;display:flex;flex-direction:column;padding:max(20px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));gap:16px;min-height:100vh;min-height:100dvh}
[hidden]{display:none!important}
h1{font:400 40px/1.05 var(--serif);margin:24px 0 0}
.muted{color:var(--ink2);margin:0}
button{font:inherit;color:inherit;border:0;background:none;cursor:pointer}
/* the box being typed in is marked in the theme's own colour, not the browser's black or blue ring */
textarea:focus-visible,input[type=text]:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.link-form{display:flex;flex-direction:column;gap:10px;margin-top:8px}
.names{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:8px}
.names button{min-height:56px;border-radius:14px;background:var(--card);border:1px solid var(--line);font-weight:700;font-size:17px}
.names button:active{background:var(--tint)}
.top{display:flex;justify-content:space-between;align-items:center;min-height:48px}
.me{font-size:14px;color:var(--ink2);padding:10px 0;min-height:48px;min-width:48px;text-align:left}
.center{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px}
.rec{width:var(--rec);height:var(--rec);border-radius:50%;background:var(--accent);color:var(--on);font-size:20px;font-weight:700;
  box-shadow:0 0 0 calc(var(--rec)*.09) var(--tint);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px}
.rec:active{transform:scale(.97)}
.mic{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.links{display:flex;gap:4px 20px;margin-top:14px;flex-wrap:wrap;justify-content:center}
.link{color:var(--accent);font-weight:700;padding:12px 4px;min-height:48px;display:flex;align-items:center;cursor:pointer}
.ask{color:var(--ink2);font-style:italic;font-size:14px;text-align:center;max-width:260px;margin:0}
.status{min-height:56px;display:flex;flex-direction:column;gap:6px}
/* a short screen (a small iPhone inside Safari): the Start page still fits without scrolling */
@media (max-height:640px){.status{min-height:0}.center{gap:12px}.links{margin-top:2px}.ask{font-size:13px}}
@media (max-width:350px){.links{gap:4px 10px}.center{gap:14px}}
.toast{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:12px 14px;font-size:15px;display:flex;justify-content:space-between;align-items:center;gap:10px}
.toast a,.toast button{color:var(--accent);font-weight:700;text-decoration:none;white-space:nowrap;min-height:48px;min-width:48px;display:flex;align-items:center;justify-content:flex-end;margin:-12px 0}
.toast.wait{background:var(--tint);border-color:transparent}
.toast.err button{color:var(--red)}
.toast.err{background:var(--redbg);color:var(--red);border-color:transparent}
/* the capture page is in the same light theme as every other page (owner, 2026-11-23): one theme, one teal accent, red only for trouble */
.live{gap:12px}
.live-top{font-size:14px;font-weight:600}
.dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--red);margin-right:8px;animation:blink 1.2s infinite}
@keyframes blink{50%{opacity:.3}}
.timer-sm{font:600 28px/1 var(--sans);font-variant-numeric:tabular-nums}
.note{width:100%;background:var(--card);border:1px solid var(--line);border-radius:14px;color:inherit;font:inherit;padding:14px;resize:none}
.note::placeholder{color:var(--ink2)}
.stop-bar{position:fixed;left:0;right:0;bottom:0;z-index:5;max-width:480px;margin:0 auto;padding:12px max(20px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));display:flex;justify-content:center;background:var(--page);box-shadow:0 -12px 16px var(--page)}
.live{padding-bottom:112px}
/* "Which is this for?" chips */
.for{display:flex;flex-direction:column;gap:8px}
.label{margin:0;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--ink2)}
.chips{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px;scrollbar-width:none;margin:0 -20px;padding-inline:20px}
.chips::-webkit-scrollbar{display:none}
.chip{flex:none;min-height:48px;padding:8px 14px;border-radius:999px;background:var(--card);border:1px solid var(--line);font-size:14px;font-weight:600;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;line-height:1.2;text-align:left}
.chip small{font-weight:500;color:var(--ink2);font-size:12px}
.chip[aria-selected="true"]{background:var(--accent);border-color:var(--accent);color:var(--on)}
.chip[aria-selected="true"] small{color:var(--on);opacity:.85}
.chip.add{color:var(--accent);border-style:dashed}
.chips-wrap{flex-wrap:wrap;margin:0;padding:0;overflow:visible}
/* recording extras */
.row-btns{display:flex;gap:10px;justify-content:flex-end}
.btn{min-height:48px;padding:0 20px;border-radius:999px;font-weight:700}
.btn.main{background:var(--accent);color:var(--on)}
.btn.quiet{color:var(--ink2)}
.chip-input{min-width:150px;font:inherit;font-size:16px;color:inherit;background:var(--card)} /* 16 px: an iPhone zooms the page for a smaller text box */
/* who a capture is for, on every capture page and on the Save page: one line once it is known, the choices when it is not */
.for-row{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:48px}
.for-row .label b{display:block;margin-top:2px;font-size:16px;font-weight:700;letter-spacing:0;text-transform:none;color:var(--ink)}
.for-row .label b:empty{display:none}
.hint{margin:0;font-size:14px;color:var(--ink2)}
/* that person's pages from Notion: each a card that opens and closes */
.lists{display:flex;flex-direction:column;gap:10px}
.lists:empty{display:none}
.sec{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:0 14px;display:flex;flex-direction:column}
.sec-head{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:48px;text-align:left;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--ink2)}
/* the name of an open card stays at the top of the screen while its lines scroll under it: it says which list this is, and one tap closes it.
   Its background is the card's own colour, solid, so the lines do not show through; a hairline under it shows where the list goes under */
.sec-head{position:sticky;top:env(safe-area-inset-top,0px);z-index:1;background:var(--card);scroll-margin-top:calc(env(safe-area-inset-top,0px) + 8px)}
.sec-head[aria-expanded="true"]{box-shadow:0 1px 0 var(--line)}
.sec-head .n{letter-spacing:0;font-weight:600;white-space:nowrap;text-transform:none}
.sec-head .n::after{content:"";display:inline-block;width:7px;height:7px;margin:0 2px 2px 10px;border-right:2px solid;border-bottom:2px solid;transform:rotate(45deg)}
.sec-head[aria-expanded="false"] .n::after{transform:rotate(-45deg);margin-bottom:0}
.sec-body{display:flex;flex-direction:column;gap:6px;padding-bottom:6px}
.sec-title{margin:8px 0 0;font-size:14px;font-weight:700}
.sec-note,.sec-quiet{margin:0;font-size:14px;color:var(--ink2)}
.sec-quiet{padding:12px 0}
.sec-body ul{margin:0;padding:0;list-style:none}
.sec-body li{position:relative;padding:6px 0 6px 20px;font-size:15px;line-height:1.45}
.sec-body li::before{content:"";position:absolute;left:7px;top:15px;width:6px;height:6px;border-radius:50%;background:var(--ink2);opacity:.55}
.sec-body li span,.tick span{white-space:pre-wrap;overflow-wrap:anywhere}
.clamp{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;line-clamp:4;overflow:hidden}
.sec-note.clamp{-webkit-line-clamp:2;line-clamp:2}
.tick{display:flex;gap:12px;align-items:flex-start;min-height:48px;padding:10px 0;font-size:15px;line-height:1.45;cursor:pointer}
.tick input{appearance:none;-webkit-appearance:none;flex:none;width:24px;height:24px;margin:0;border:2px solid var(--ink2);border-radius:7px;background:var(--card);display:grid;place-content:center;cursor:pointer}
.tick input:checked{background:var(--accent);border-color:var(--accent)}
.tick input:checked::after{content:"";width:6px;height:11px;margin-top:-2px;border:solid var(--on);border-width:0 2.5px 2.5px 0;transform:rotate(45deg)}
.tick input:checked+span{text-decoration:line-through;opacity:.6}
.sec-more{align-self:flex-start;min-height:48px;padding:0 4px 0 20px;font-size:14px;font-weight:700;color:var(--accent)}
.sec-foot{display:flex;justify-content:space-between;align-items:center;gap:4px 12px;flex-wrap:wrap;margin-top:4px;border-top:1px solid var(--line);font-size:13px;color:var(--ink2)}
.sec-foot span{padding:8px 0}
.sec-foot a{display:flex;align-items:center;min-height:48px;min-width:48px;color:var(--accent);font-weight:600;text-decoration:none}
/* where the family drew a line across the page in Notion: what is under it is their notes, not the list */
.sec-rule{border:0;border-top:1px dashed var(--line);margin:10px 0 2px}
.chip.person{min-width:64px;align-items:center}
.chip.person[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:var(--on)}
/* capture screen extras */
.preview{display:flex;gap:10px;overflow-x:auto}
.preview img{height:96px;border-radius:12px;object-fit:cover;border:1px solid var(--line)}   /* a white sheet of paper still has an edge on the light page */
.preview .file{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:12px 14px 30px;font-size:14px;min-width:96px;height:96px;overflow:hidden}
.stop-bar .row-btns{width:100%}
.btn.grow{flex:1}
/* the note box: its name and the two add buttons share one row, so the lists below start higher on the screen */
.note-top{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px}
.adds{display:flex;gap:8px}
.add-btn{min-height:48px;min-width:84px;padding:0 12px;border-radius:12px;border:1px dashed rgba(25,75,80,.32);background:var(--card);color:var(--accent);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px;white-space:nowrap;cursor:pointer}
.thumb{position:relative;flex:none}
/* a photo or a file you just took or chose is the first thing on the page */
.live.file-first .live-top{order:-3}
.live.file-first #preview{order:-1}
.live.file-first #pileBox{order:-1}   /* right under the files it is about */
.thumb b{position:absolute;left:6px;bottom:6px;background:rgba(11,27,29,.75);color:#fff;font-size:11px;padding:1px 6px;border-radius:6px}
/* pause + stop: two buttons that say what they do; the one that ends the capture is on the right, like Next */
.stop-bar .btn{min-height:56px;display:flex;align-items:center;justify-content:center;gap:10px;font-size:16px}
.btn.soft{background:var(--tint);color:var(--ink);min-width:132px}
.bars{width:12px;height:14px;border-left:4px solid var(--ink);border-right:4px solid var(--ink)}
.btn.paused .bars{width:0;height:0;border:0;border-left:13px solid var(--ink);border-top:8px solid transparent;border-bottom:8px solid transparent}
.square{width:14px;height:14px;border-radius:3px;background:var(--on)}
.live.paused .dot{animation:none;background:var(--ink2)}
.mic-note{margin:0;background:var(--tint);border-radius:12px;padding:10px 14px;font-size:14px}
.mic-note.quiet{background:none;padding:0;font-size:13px;color:var(--ink2)}
.mic-note.warn{background:var(--redbg);color:var(--red)}   /* not recording right now: the one thing on this page that must be seen */
/* save page */
.save-title{font:400 34px/1.1 var(--serif);margin:16px 0 4px}
.save-bar{margin-top:auto;padding-top:16px}
.btn.wide{width:100%;min-height:56px;font-size:17px}

/* bottom tabs: Capture | Notes */
/* the bar at the bottom holds as many pages as there are: they share the width equally, with smaller words from four pages on.
   Only when even 48 px each does not fit (six or more on a small phone) does the bar scroll sideways by itself */
.tabs{display:flex;gap:8px;margin-top:auto;padding-top:12px;border-top:1px solid var(--line);overflow-x:auto;scrollbar-width:none}
.tabs::-webkit-scrollbar{display:none}
.tab{flex:1 1 0;min-width:48px;min-height:48px;padding:0 4px;border-radius:12px;font-size:15px;font-weight:600;color:var(--ink2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tabs:has(.tab:nth-child(4)){gap:4px}
.tabs:has(.tab:nth-child(4)) .tab{font-size:13px}
.tab[aria-current="page"]{background:var(--tint);color:var(--ink)}
.board-head{display:flex;justify-content:space-between;align-items:center}
.board-head .save-title{margin:8px 0 0}
.pill-btn{min-height:48px;padding:0 18px;border-radius:999px;border:1px solid var(--line);background:var(--card);font-weight:600;color:var(--accent)}
.pill-btn.on{background:var(--accent);color:var(--on);border-color:var(--accent)}
.hcard{display:flex;flex-direction:column;gap:8px;padding:2px 0 14px;border-bottom:1px solid var(--line)}
.hcard.now{background:var(--tint);border:0;border-radius:14px;padding:12px 14px}
.hcard-row{display:flex;justify-content:space-between;align-items:center}
.hcard-row .label b{color:var(--ink)}
.link-sm{font-size:14px;font-weight:600;color:var(--accent);min-height:48px;min-width:48px;padding:0 4px}
.facts{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;margin:0;font-size:15px}
.facts dt{color:var(--ink2)}
.facts dd{margin:0;font-weight:600;color:var(--ink)}
.facts dd.full{grid-column:1/-1;font-weight:500}
.lines{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:4px;font-size:15px;color:var(--ink)}
.tasks{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.tasks li{border-top:1px solid var(--line)}
.tasks li:first-child{border-top:0}
.tasks .row{display:grid;grid-template-columns:auto 1fr;column-gap:10px;align-content:center;min-height:48px;padding:8px 0;color:var(--ink);text-decoration:none}
.tasks .num{grid-row:span 2;font-size:12px;font-weight:700;color:var(--ink2);padding-top:3px}
.tasks .t{font-size:15px;font-weight:600}
.tasks small{grid-column:2;font-size:13px;color:var(--ink2)}
.tasks small.late{color:#B4462E}
.tasks li.empty,.lines .empty{border:0;padding:6px 0;list-style:none}
.empty{color:var(--ink2);font-size:14px}
.board-text{width:100%;resize:vertical;font:inherit;font-size:16px;line-height:1.5;color:var(--ink);background:var(--card);border:1px solid var(--line);border-radius:12px;padding:10px 12px}
.small{font-size:13px;margin:0}
.projects{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.proj{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:0 12px}
.proj-head{width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:12px 0;text-align:left;min-height:48px}
.proj-head .t{font-size:15px;font-weight:600;color:var(--ink)}
.proj-head small{font-size:13px;color:var(--ink2)}
.proj-head::after{content:'';}
.proj .tasks{border-top:1px solid var(--line)}
.open-notion{display:flex;align-items:center;min-height:48px;font-size:14px;font-weight:600;color:var(--accent);text-decoration:none}
.field{font:inherit;font-size:16px;color:var(--ink);background:var(--card);border:1px solid var(--line);border-radius:10px;padding:10px 12px;min-height:48px}
