/* ── Follow Up — warm & pastoral, MOBILE FIRST ─────────────────────────────
   Base styles target a phone. Larger screens are progressive enhancement
   via min-width queries. Layout is deliberately compact: the goal is to fit
   as many leaders on screen as possible.                                    */
:root{
  --bg:#FAF6F0; --surface:#FFFFFF; --surface-2:#FDFAF6; --surface-3:#F5EEE4;
  --ink:#2E2823; --ink-2:#574E45; --muted:#8A7D70;
  --line:#E8DFD2; --line-strong:#D9CCB9;
  --green:#3F6B52; --green-soft:#EDF3EF; --green-line:#CADCD1;
  --amber:#B57F2E; --amber-soft:#FBF2E3; --amber-line:#EAD7B4;
  --gold:#8A6122;
  --terra:#B4573E; --terra-soft:#FBEDE9; --terra-line:#EFCFC4;
  --radius:13px; --tap:44px;
  --shadow-sm:0 1px 2px rgba(46,40,35,.05);
  --shadow:0 1px 2px rgba(46,40,35,.05), 0 10px 28px -14px rgba(46,40,35,.22);
  --shadow-lg:0 24px 60px -20px rgba(46,40,35,.35);
  --serif:Fraunces,'Iowan Old Style',Georgia,serif;
  --sans:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);
  font:15px/1.5 var(--sans);-webkit-font-smoothing:antialiased}
[hidden]{display:none!important}
a{color:var(--green);text-decoration:none}
img{max-width:100%}
.wrap{width:100%;margin:0 auto;padding:0 12px}
@media(min-width:721px){ .wrap{max-width:1140px;padding:0 20px} }

/* ── typography ── */
h1,h2,h3{font-family:var(--serif);font-weight:600;letter-spacing:-.015em;margin:0}
h1{font-size:23px} h2{font-size:19px}
.sub{color:var(--muted);font-size:13px}
@media(min-width:721px){ h1{font-size:27px} h2{font-size:20px} }

/* ── buttons ── */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;
  min-height:var(--tap);padding:11px 16px;border-radius:11px;
  border:1px solid var(--line-strong);background:var(--surface);color:var(--ink);
  font:600 14.5px var(--sans);cursor:pointer;transition:.14s;white-space:nowrap;
  -webkit-tap-highlight-color:transparent;touch-action:manipulation}
.btn:active{transform:scale(.97)}
.btn.pri{background:var(--green);border-color:var(--green);color:#fff}
.btn.ghost{background:transparent;border-color:transparent;color:var(--muted);
  padding:8px 9px;min-height:36px;font-size:13px}
.btn.sm{min-height:36px;padding:8px 12px;font-size:13.5px;border-radius:9px}
.btn.subtle{border-color:transparent;background:transparent;color:var(--muted);
  min-height:26px;padding:2px 6px;font-size:12.5px;font-weight:500;position:relative}
.btn.subtle::after{content:"";position:absolute;inset:-9px -8px}  /* real tap area, no extra height */
.btn.danger{color:var(--terra);border-color:var(--terra-line)}
.btn:disabled{opacity:.5;cursor:not-allowed;transform:none}
@media(hover:hover){
  .btn:hover{background:var(--surface-2);border-color:var(--muted)}
  .btn.pri:hover{background:#365C46;border-color:#365C46}
  .btn.ghost:hover,.btn.subtle:hover{background:var(--surface-3);color:var(--ink)}
  .btn.danger:hover{background:var(--terra-soft);border-color:var(--terra)}
  a:hover{text-decoration:underline}
}

/* ── inputs — 16px keeps iOS from zooming on focus ── */
input[type=text],input[type=password],input[type=search],input[type=date],
input[type=number],select,textarea{
  width:100%;min-height:var(--tap);padding:11px 14px;border:1px solid var(--line-strong);
  border-radius:11px;background:var(--surface);font:16px var(--sans);color:var(--ink);
  transition:.14s;-webkit-appearance:none;appearance:none}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--green);
  box-shadow:0 0 0 3px rgba(63,107,82,.13)}
textarea{resize:vertical;min-height:130px;line-height:1.6}
label{display:block;font-size:13px;font-weight:600;color:var(--ink-2);margin:0 0 6px}
.field{margin-bottom:15px}
.hint{font-size:12.5px;color:var(--muted);margin-top:6px}
select{background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),
  linear-gradient(135deg,var(--muted) 50%,transparent 50%);
  background-position:calc(100% - 18px) 50%,calc(100% - 13px) 50%;
  background-size:5px 5px,5px 5px;background-repeat:no-repeat;padding-right:38px}

/* ── login ── */
.login-shell{min-height:100dvh;display:grid;place-items:center;padding:18px;
  background:radial-gradient(900px 480px at 50% -8%,#FFFDF9 0%,var(--bg) 62%)}
.login-card{width:100%;max-width:396px;background:var(--surface);border:1px solid var(--line);
  border-radius:20px;padding:28px 22px;box-shadow:var(--shadow)}
@media(min-width:721px){ .login-card{padding:36px 32px} }
.brandmark{display:flex;justify-content:center;margin-bottom:6px}
.brandmark .dot,.brand .dot{width:34px;height:34px;border-radius:11px;background:var(--green);
  display:grid;place-items:center;color:#fff;font-family:var(--serif);font-size:17px;
  font-weight:700;flex:none}
.login-card h1{text-align:center;font-size:25px}
.pcobtn{width:100%;text-decoration:none}
.pcobtn:hover{text-decoration:none}
.orline{display:flex;align-items:center;gap:12px;margin:18px 0;color:var(--muted);font-size:12.5px}
.orline::before,.orline::after{content:"";flex:1;height:1px;background:var(--line)}
.linky{width:100%;border-color:transparent;background:transparent;color:var(--muted);
  font-weight:500;font-size:13.5px;min-height:38px}
@media(hover:hover){ .linky:hover{background:var(--surface-3);color:var(--ink)} }
.login-card .sub{text-align:center;margin:6px 0 24px}

/* ── app bar ── */
.appbar{position:sticky;top:0;z-index:40;background:rgba(250,246,240,.93);
  backdrop-filter:saturate(140%) blur(12px);border-bottom:1px solid var(--line);
  padding-top:env(safe-area-inset-top)}
.appbar-in{display:flex;align-items:center;gap:6px;padding:8px 0}
.brand{display:flex;align-items:center;gap:8px;flex:1;min-width:0}
.brand .dot{width:27px;height:27px;font-size:13px;border-radius:9px}
.brand .btxt{min-width:0}
.brand h1{font-size:16px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* with Add + Admin + Sign out in the bar there isn't room for the wordmark on a
   phone; the logo carries the brand and a truncated "Follow ..." looks broken */
@media(max-width:600px){ .brand h1{display:none} }
.iconbtn{padding:8px;min-width:34px}
.iconbtn .lbl{display:none}
.brand .sub{display:none}
.who{display:flex;align-items:center;gap:2px;flex:none}
.who .nm{display:none}
@media(min-width:721px){
  .appbar-in{padding:12px 0;gap:12px}
  .brand .dot{width:31px;height:31px;font-size:15px;border-radius:10px}
  .brand h1{font-size:19px}
  .brand .sub{display:block;font-size:12px}
  .who{gap:7px}
  .who .nm{display:inline;font-size:13.5px;font-weight:600;color:var(--ink-2)}
  .iconbtn{padding:8px 11px;min-width:0}
  .iconbtn .lbl{display:inline}
}

/* ── add-person button + shared search results ── */
.btn.sm.addbtn{min-height:36px;padding:7px 11px;gap:5px;border-color:var(--line-strong);
  background:var(--surface);color:var(--ink);font-size:13.5px}
.addbtn svg{opacity:.75}
.lbl-long{display:none}
@media(min-width:721px){ .lbl-long{display:inline} .btn.sm.addbtn{padding:8px 14px} }
@media(hover:hover){ .btn.sm.addbtn:hover{border-color:var(--green);color:var(--green)}
  .btn.sm.addbtn:hover svg{opacity:1} }

.results{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-direction:column;gap:7px;
  max-height:min(46vh,330px);overflow-y:auto;-webkit-overflow-scrolling:touch}
.res{display:flex;align-items:center;gap:10px;padding:8px;border:1px solid var(--line);
  border-radius:11px;background:var(--surface-2)}
.res img,.res .cinit{width:38px;height:38px;border-radius:50%;object-fit:cover;
  background:var(--surface-3);flex:none;font-size:13px}
.res .n{flex:1;min-width:0}
.res .n b{display:block;font-size:14px;line-height:1.25}
.res .n span{font-size:12px;color:var(--muted);display:block;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap}
.res .btn{flex:none}
.res .already{font-size:11.5px;font-weight:600;color:var(--green);
  background:var(--green-soft);padding:5px 9px;border-radius:7px;flex:none}
.searching{font-size:13px;color:var(--muted);padding:10px 2px 0}
.checkrow{display:flex;align-items:flex-start;gap:11px;padding:12px;margin-bottom:14px;
  border:1px solid var(--line-strong);border-radius:11px;background:var(--surface-2);
  cursor:pointer;min-height:var(--tap)}
.checkrow input[type=checkbox]{width:20px;height:20px;margin:1px 0 0;flex:none;
  accent-color:var(--green);cursor:pointer}
.checkrow span{display:block;font-size:14px;line-height:1.35}
.checkrow b{display:block;font-weight:600}
.checkrow em{display:block;font-style:normal;font-size:12.5px;color:var(--muted);margin-top:1px}
@media(hover:hover){ .checkrow:hover{border-color:var(--green)} }

/* ── admin dropdown ── */
.menu{position:relative}
#adminBtn{gap:4px}
#adminBtn .chev{transition:transform .16s;opacity:.7}
#adminBtn[aria-expanded="true"]{background:var(--surface-3);color:var(--ink)}
#adminBtn[aria-expanded="true"] .chev{transform:rotate(180deg)}
.dropdown{position:absolute;right:0;top:calc(100% + 7px);z-index:60;min-width:232px;
  background:var(--surface);border:1px solid var(--line);border-radius:13px;
  box-shadow:var(--shadow-lg);padding:6px;animation:drop .14s ease-out}
@keyframes drop{from{opacity:0;transform:translateY(-5px)}}
.ditem{display:block;width:100%;text-align:left;background:transparent;border:0;
  border-radius:9px;padding:9px 11px;cursor:pointer;font:inherit;color:var(--ink);
  -webkit-tap-highlight-color:transparent;text-decoration:none}
.ditem:active{background:var(--surface-3)}
@media(hover:hover){ .ditem:hover{background:var(--surface-2);text-decoration:none} }
.ditem .dlabel{display:block;font-size:14px;font-weight:600;line-height:1.3}
.ditem .dhint{display:block;font-size:12px;color:var(--muted);margin-top:1px;line-height:1.35}
.ditem:disabled{opacity:.55;cursor:progress}
.dsep{height:1px;background:var(--line);margin:5px 8px}

/* ── tabs ── */
.tabs{display:flex;gap:4px;padding:8px 0 0;border-bottom:1px solid var(--line)}
.tab{position:relative;background:none;border:0;padding:11px 14px 12px;cursor:pointer;
  font:600 14.5px var(--sans);color:var(--muted);border-bottom:2px solid transparent;
  margin-bottom:-1px;-webkit-tap-highlight-color:transparent;min-height:var(--tap)}
.tab.on{color:var(--ink);border-bottom-color:var(--green)}
@media(hover:hover){ .tab:hover{color:var(--ink)} }
.tbadge{display:inline-grid;place-items:center;min-width:19px;height:19px;padding:0 5px;
  margin-left:6px;border-radius:999px;background:var(--terra);color:#fff;
  font:700 11px var(--sans);vertical-align:middle}

/* ── to-do ── */
.addtask{background:var(--surface);border:1px solid var(--line);border-radius:14px;
  padding:12px;margin:14px 0 12px;box-shadow:var(--shadow-sm)}
.addtask input[type=text]{border:0;padding:6px 4px;font-size:16px;font-weight:500}
.addtask input[type=text]:focus{box-shadow:none}
.addrow{display:flex;gap:8px;margin-top:8px;flex-wrap:wrap}
/* An empty <input type=date> shows nothing at all on iOS and a cryptic
   "mm/dd/yyyy" on desktop, so overlay our own label until a date is picked. */
.datefield{position:relative;flex:1 1 150px;min-width:0}
.datefield input[type=date]{width:100%}
.datefield .dateph{position:absolute;left:14px;top:50%;transform:translateY(-50%);
  pointer-events:none;color:var(--muted);font-size:15px;white-space:nowrap}
.datefield.filled .dateph{display:none}
.datefield:not(.filled) input[type=date]::-webkit-datetime-edit{opacity:0}
.addrow select{flex:1 1 130px;min-width:0}
.addrow .btn{flex:0 0 auto}
/* on a phone the three controls can't share one line; make the button a
   deliberate full-width action rather than a stranded stub */
@media(max-width:600px){ .addrow .btn{flex:1 1 100%} }
.tfilter{display:flex;gap:7px;overflow-x:auto;scrollbar-width:none;padding-bottom:12px}
.tfilter::-webkit-scrollbar{display:none}
.tgroup{font:700 11px var(--sans);letter-spacing:.07em;text-transform:uppercase;
  color:var(--muted);margin:14px 0 7px}
.tgroup.over{color:var(--terra)}
.tlist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.todo{display:grid;grid-template-columns:auto 1fr auto;gap:11px;align-items:start;
  background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:12px;
  box-shadow:var(--shadow-sm)}
.todo.over{border-color:#EFCFC4;background:var(--terra-soft)}
.todo.done{opacity:.55}
.todo.done .ttitle{text-decoration:line-through}
.tcheck{width:21px;height:21px;margin:1px 0 0;flex:none;accent-color:var(--green);cursor:pointer}
.tmain{min-width:0}
.ttitle{font-size:14.5px;font-weight:600;line-height:1.35;word-break:break-word}
.tmeta{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-top:6px}
.tmeta input[type=date]{width:auto;min-height:32px;padding:5px 9px;font-size:12.5px;
  border-radius:8px;flex:0 0 auto}
.towner{font:600 10.5px var(--sans);padding:3px 8px;border-radius:5px;
  background:var(--surface-3);color:var(--ink-2)}
/* owner chip with a face, used when viewing the whole team's list */
.towner.pic{display:inline-flex;align-items:center;gap:5px;padding:2px 9px 2px 2px;
  border-radius:999px;font-size:11px}
.towner.pic img,.towner.pic .tinit{width:20px;height:20px;border-radius:50%;
  object-fit:cover;flex:none;display:block}
.towner.pic .tinit{background:var(--line);color:var(--ink-2);display:grid;
  place-items:center;font:700 9px var(--sans)}
.tdue{font-size:12.5px;color:var(--muted)}
.tdue.over{color:var(--terra);font-weight:600}
.tright{display:flex;align-items:center;gap:2px;flex:none}
.tstar{background:none;border:0;padding:6px;border-radius:8px;cursor:pointer;line-height:0;
  -webkit-tap-highlight-color:transparent;min-height:34px}
.tstar svg{fill:none;stroke:var(--line-strong);stroke-width:1.8;stroke-linejoin:round}
.tstar.on svg{fill:var(--amber);stroke:var(--amber)}
.tstar:active{transform:scale(.88)}
@media(hover:hover){
  .tstar:hover svg{stroke:var(--amber)}
  .tstar.on:hover svg{fill:#A5701F;stroke:#A5701F}
}
.todo.starred{border-color:var(--amber-line);background:var(--amber-soft)}
.todo.starred.over{border-color:#EFCFC4;background:var(--terra-soft)}
.tgroup.star{color:var(--gold)}
.tdel{background:none;border:0;color:var(--muted);font-size:19px;line-height:1;
  cursor:pointer;padding:4px 6px;border-radius:7px;-webkit-tap-highlight-color:transparent}
@media(hover:hover){ .tdel:hover{background:var(--terra-soft);color:var(--terra)} }
/* a task counting down to complete — stays in place until it lands */
.todo.pending{opacity:.72}
.todo.pending .ttitle{text-decoration:line-through;
  text-decoration-color:var(--line-strong)}
/* Sits on top of the meta line instead of below it, so ticking a task off
   never makes the row grow and shove the list around. */
.tmain{position:relative}
.todo.pending .tmeta{visibility:hidden}
.tpending{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:center;
  gap:10px;min-height:34px;font-size:12.5px;color:var(--green);font-weight:600}
.tpending .tcount{font-variant-numeric:tabular-nums;font-weight:700}
.tcancel{background:var(--surface);border:1px solid var(--green-line);color:var(--green);
  font:600 12.5px var(--sans);padding:5px 12px;border-radius:8px;cursor:pointer;
  min-height:32px;-webkit-tap-highlight-color:transparent}
.tcancel:active{transform:scale(.95)}
@media(hover:hover){ .tcancel:hover{background:var(--green);color:#fff;
  border-color:var(--green)} }

.tempty{text-align:center;padding:44px 16px;color:var(--muted)}

/* Filter chips, shared by the to-do and time tabs. */
.chip{flex:none;background:var(--surface);border:1px solid var(--line);border-radius:999px;
  padding:8px 14px;min-height:36px;font:600 13px var(--sans);color:var(--ink-2);cursor:pointer;
  -webkit-tap-highlight-color:transparent;transition:.14s;white-space:nowrap}
.chip .n{color:var(--muted);font-weight:500;margin-left:2px}
.chip.on{background:var(--green);border-color:var(--green);color:#fff}
.chip.on .n{color:rgba(255,255,255,.75)}
.chip:active{transform:scale(.97)}
@media(hover:hover){ .chip:hover{border-color:var(--muted)}
  .chip.on:hover{background:#365C46;border-color:#365C46} }

/* ── time tracking ── */
/* Minutes are typed by hand, so the unit sits inside the field rather than
   making the row wider with a separate label. */
.minfield{position:relative;flex:1 1 110px;min-width:0}
.minfield input{width:100%;padding-right:44px;font-variant-numeric:tabular-nums}
.minfield input::-webkit-outer-spin-button,
.minfield input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.minfield input[type=number]{-moz-appearance:textfield}
.minsuffix{position:absolute;right:13px;top:50%;transform:translateY(-50%);
  pointer-events:none;color:var(--muted);font-size:14px}
/* The notes box is secondary to the title, so it stays short and grows only if
   someone actually writes a lot. */
.addtask textarea.tnote{margin-top:10px;min-height:0;padding:10px 14px;font-size:15px;
  line-height:1.5;resize:vertical}

.monthbar{display:flex;align-items:center;gap:6px;margin:14px 0 12px}
.mnav{flex:none;width:38px;height:38px;border-radius:10px;background:var(--surface);
  border:1px solid var(--line);color:var(--ink-2);font-size:20px;line-height:1;cursor:pointer;
  -webkit-tap-highlight-color:transparent}
.mnav:disabled{opacity:.35;cursor:not-allowed}
@media(hover:hover){ .mnav:not(:disabled):hover{border-color:var(--muted);color:var(--ink)} }
.mlabel{flex:1;min-width:0;text-align:center}
.mlabel b{display:block;font:600 15px var(--sans);color:var(--ink)}
.mlabel span{display:block;font:600 20px var(--serif);color:var(--green);
  font-variant-numeric:tabular-nums;margin-top:1px}

/* Per-person totals, shown when you're looking at everyone. */
.tsum{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}
.tsumrow{display:flex;align-items:center;gap:9px;background:var(--surface);
  border:1px solid var(--line);border-radius:10px;padding:9px 12px;box-shadow:var(--shadow-sm)}
.tsumrow .nm{flex:1;min-width:0;font:600 13.5px var(--sans);overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap}
.tsumrow .amt{font:700 13.5px var(--sans);font-variant-numeric:tabular-nums;color:var(--ink)}
.tsumrow.zero .nm,.tsumrow.zero .amt{color:var(--muted)}
.tsumrow img,.tsumrow .tinit{width:24px;height:24px;border-radius:50%;object-fit:cover;flex:none}
.tsumrow .tinit{background:var(--line);color:var(--ink-2);display:grid;place-items:center;
  font:600 10.5px var(--sans)}

.tlog .tmins{font:700 13.5px var(--sans);color:var(--green);font-variant-numeric:tabular-nums;
  white-space:nowrap;padding-top:1px;min-width:52px}
.tnotes{font-size:13px;line-height:1.5;color:var(--ink-2);margin-top:4px;
  white-space:pre-wrap;word-break:break-word}

.timefoot{display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  margin:20px 0 8px;padding-top:16px;border-top:1px solid var(--line)}

/* ── toolbar: just the search box ── */
.toolbar{padding:11px 0 3px}
@media(min-width:721px){ .toolbar{padding:16px 0 4px} }

/* ── team leaderboard strip ── */
.board{display:flex;gap:12px;align-items:flex-start;overflow-x:auto;scrollbar-width:none;
  padding:10px 2px 4px;margin:0 -12px;padding-left:12px;padding-right:12px;
  max-height:96px;opacity:1;transition:max-height .24s ease,opacity .18s ease,
    padding .24s ease,margin .24s ease}
.board::-webkit-scrollbar{display:none}
.board.hide{max-height:0;opacity:0;padding-top:0;padding-bottom:0;overflow:hidden}
.bperson{flex:none;width:56px;display:flex;flex-direction:column;align-items:center;gap:4px;
  background:none;border:0;padding:0;cursor:pointer;-webkit-tap-highlight-color:transparent}
.bwrap{position:relative;width:46px;height:46px}
.bperson img,.binit{width:46px;height:46px;border-radius:50%;object-fit:cover;display:block;
  border:2px solid var(--surface);box-shadow:0 0 0 1px var(--line)}
.binit{background:var(--surface-3);color:var(--ink-2);display:grid;place-items:center;
  font:600 15px var(--sans)}
.bbadge{position:absolute;bottom:-3px;right:-4px;min-width:21px;height:21px;padding:0 5px;
  border-radius:999px;background:var(--green);color:#fff;font:700 11.5px var(--sans);
  display:grid;place-items:center;border:2px solid var(--bg);font-variant-numeric:tabular-nums}
.bbadge.zero{background:var(--line-strong);color:var(--ink-2)}
.bname{font-size:10.5px;color:var(--muted);max-width:56px;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap;text-align:center}
.bperson:active .bwrap{transform:scale(.94)}
@media(hover:hover){ .bperson:hover .bname{color:var(--ink)}
  .bperson:hover img,.bperson:hover .binit{box-shadow:0 0 0 2px var(--green)} }
@media(min-width:721px){ .board{margin:0;padding-left:2px;padding-right:2px} }

/* stats modal */
.statrow{display:flex;gap:10px;margin-bottom:14px}
.statrow div{flex:1;background:var(--surface-2);border:1px solid var(--line);
  border-radius:12px;padding:11px 13px}
.statrow b{display:block;font-family:var(--serif);font-size:23px;font-weight:600;line-height:1.1}
.statrow span{display:block;font-size:12px;color:var(--muted);margin-top:2px}
.clist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:7px;
  max-height:min(42vh,300px);overflow-y:auto;-webkit-overflow-scrolling:touch}
.clist li{border:1px solid var(--line);border-radius:11px;padding:10px 12px;
  background:var(--surface-2)}
.clist .ctop{display:flex;justify-content:space-between;gap:10px;align-items:baseline}
.clist .cwho{font-weight:600;font-size:14px}
.clist .cwhen{font-size:12px;color:var(--muted);white-space:nowrap;
  font-variant-numeric:tabular-nums}
.clist .cnote{font-size:12.5px;color:var(--muted);margin-top:4px;line-height:1.45;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* ── leader cards — compact 3-column row at every width ── */
.list{display:flex;flex-direction:column;gap:8px;padding:11px 0 70px}
.card{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
  padding:10px 11px;box-shadow:var(--shadow-sm);transition:.18s}
.card.justdone{border-color:var(--green-line);background:var(--green-soft)}
.avatar{width:44px;height:44px;border-radius:50%;object-fit:cover;background:var(--surface-3);
  border:1px solid var(--line);flex:none;display:block}
.pcolink{display:block;border-radius:50%;-webkit-tap-highlight-color:transparent;flex:none}
.info{min-width:0}
/* flex + fit-content keeps the tap area tight to the text while still forcing
   the phone row onto its own line */
.info .nm{display:block;font-family:var(--serif);font-size:15.5px;font-weight:600;
  letter-spacing:-.01em;line-height:1.22;color:var(--ink)}
/* on phones a long name pushes this icon onto its own line, costing ~19px of
   card height; the name itself is still the link, so hide it below 721px */
.info .nm .ext{display:none;vertical-align:baseline;margin-left:3px;opacity:.3}
@media(hover:hover){ .info .nm:hover{color:var(--green);text-decoration:none}
  .info .nm:hover .ext{opacity:.8} }
.rec{font-size:12.5px;font-weight:600;white-space:nowrap}
.rec.never,.rec.hot{color:var(--terra)}
.rec.warm{color:var(--amber)}
.rec.mid{color:var(--gold)}
.rec.fresh{color:var(--green)}
.telrow{position:relative;display:inline-flex;align-items:center;gap:5px;
  color:var(--ink-2);font-size:13.5px;font-weight:500;font-variant-numeric:tabular-nums;
  -webkit-tap-highlight-color:transparent}
.telrow::after{content:"";position:absolute;inset:-10px -10px}  /* 44px-class tap area */
.telrow svg{flex:none;opacity:.5}
@media(hover:hover){ .telrow:hover{color:var(--green);text-decoration:none} }
.telrow.none{color:var(--muted)}
.telrow.none::after{display:none}
.tags{display:flex;gap:4px;flex-wrap:nowrap;overflow:hidden;margin-top:5px;align-items:center}
.tag{font:600 10.5px var(--sans);letter-spacing:.015em;padding:2px 7px;border-radius:5px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:0 0 auto}
.tag.td{flex:0 1 auto;min-width:0}
.tag.gl{background:var(--green-soft);color:var(--green)}
.tag.td{background:var(--amber-soft);color:var(--gold)}
.notepeek{margin-top:6px;font-size:12.5px;color:var(--muted);line-height:1.45;
  border-left:2px solid var(--line-strong);padding-left:8px;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.notepeek b{color:var(--ink-2);font-weight:600}
.acts{display:flex;flex-direction:column;align-items:flex-end;gap:5px;flex:none}
.acts .toprow{display:flex;align-items:center;gap:5px;white-space:nowrap}
.acts .toprow .sep{color:var(--line-strong);font-size:11px}
.hist{position:relative;font-size:12.5px;font-weight:500;color:var(--muted)}
.hist::after{content:"";position:absolute;inset:-10px -8px}   /* tap area without extra height */
@media(hover:hover){ .hist:hover{color:var(--ink);text-decoration:none} }
.acts .btn.pri{min-height:35px;padding:8px 11px;font-size:13px;border-radius:9px}
@media(min-width:721px){
  .list{gap:9px;padding:14px 0 80px}
  .card{gap:14px;padding:12px 15px}
  .card:hover{box-shadow:var(--shadow);border-color:var(--line-strong)}
  .avatar{width:52px;height:52px}
  .info .nm{font-size:16.5px}
  .info .nm .ext{display:inline-block}
  .telrow{font-size:14px}
  .tag{font-size:11px;padding:3px 8px}
  .acts .btn.pri{min-height:38px;padding:9px 17px;font-size:14px}
}

/* ── modal — bottom sheet on phones, centred dialog on desktop ── */
.scrim{position:fixed;inset:0;background:rgba(46,40,35,.42);backdrop-filter:blur(3px);
  z-index:100;display:flex;align-items:flex-end;justify-content:center;overflow-y:auto}
.modal{width:100%;background:var(--surface);border:1px solid var(--line);
  border-radius:20px 20px 0 0;padding:20px 16px calc(20px + env(safe-area-inset-bottom));
  box-shadow:var(--shadow-lg);animation:sheet .22s ease-out}
@keyframes sheet{from{transform:translateY(14px);opacity:.6}}
.modal-head{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.modal-head .avatar{width:46px;height:46px}
.modal-head h2{font-size:18px}
.modal-actions{display:flex;gap:9px;margin-top:16px}
.modal-actions .btn{flex:1}
@media(min-width:721px){
  .scrim{align-items:center;padding:20px}
  .modal{max-width:520px;border-radius:18px;padding:26px;animation:pop2 .18s ease-out}
  @keyframes pop2{from{transform:scale(.97);opacity:0}}
  .modal-actions{justify-content:flex-end;margin-top:20px}
  .modal-actions .btn{flex:none}
}

.daterow{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.daterow input[type=date]{flex:1;min-width:150px}
.btn.sm.daychip{flex:none;border-radius:10px;min-height:44px;padding:10px 15px;font-size:14px}
.daterow input[type=date]{min-height:44px}
/* iOS renders the native picker indicator; keep it from crowding the text */
input[type=date]::-webkit-calendar-picker-indicator{opacity:.5;cursor:pointer}
.daychip.on{background:var(--green);border-color:var(--green);color:#fff}
@media(hover:hover){ .daychip.on:hover{background:#365C46;border-color:#365C46} }

/* ── misc ── */
.msg{padding:11px 14px;border-radius:10px;font-size:13.5px;margin-bottom:14px}
.msg.err{background:var(--terra-soft);color:var(--terra);border:1px solid var(--terra-line)}
.msg.ok{background:var(--green-soft);color:var(--green);border:1px solid var(--green-line)}
.pill-role{font-size:10px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;
  padding:3px 6px;border-radius:5px;background:var(--green-soft);color:var(--green)}
.empty{text-align:center;padding:52px 16px;color:var(--muted)}
.empty h2{color:var(--ink);margin-bottom:8px}
.skeleton{height:72px;border-radius:var(--radius);border:1px solid var(--line);
  background:linear-gradient(90deg,var(--surface) 25%,var(--surface-3) 50%,var(--surface) 75%);
  background-size:200% 100%;animation:sh 1.3s infinite}
@keyframes sh{0%{background-position:200% 0}100%{background-position:-200% 0}}
.toast{position:fixed;left:12px;right:12px;bottom:calc(16px + env(safe-area-inset-bottom));
  z-index:200;background:var(--ink);color:#fff;padding:12px 17px;border-radius:12px;
  font-size:14px;box-shadow:var(--shadow-lg);animation:pop .22s ease-out;text-align:center;
  text-align:center}
@keyframes pop{from{opacity:0;transform:translateY(8px)}}
@media(min-width:721px){
  .toast{left:50%;right:auto;transform:translateX(-50%);bottom:26px;text-align:left}
  @keyframes pop{from{opacity:0;transform:translateX(-50%) translateY(8px)}}
}

/* ── admin ── */
.utable{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.urow{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
  padding:14px;box-shadow:var(--shadow-sm)}
.urow.inactive{opacity:.55}
.urow .top{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:3px}
.urow .top b{font-size:15px}
.urow .meta{font-size:12.5px;color:var(--muted);margin-bottom:11px}
.urow .ract{display:flex;gap:7px;flex-wrap:wrap}

/* ── pastoral care ───────────────────────────────────────────────────────
   Same card language as the leader list, but built around a household rather
   than one person, and with the note living inside the card. */
.wrange{font:600 20px var(--serif);color:var(--green)}

.cgroup{margin:0 0 26px}
/* Whose block this is, said once: face, first name, and how far through. */
.cglabel{display:flex;align-items:center;gap:8px;margin:0 0 9px}
.cgface{width:26px;height:26px;border-radius:50%;object-fit:cover;flex:none;
  box-shadow:0 0 0 1px var(--line)}
.cgface.cinit{font-size:10px}
.cgname{font:600 15px var(--serif);color:var(--ink)}
.cgroup.me .cgname{color:var(--green)}
.cgcount{font:600 12px var(--sans);color:var(--muted);
  font-variant-numeric:tabular-nums}

.ccard{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:13px;
  padding:14px;margin-bottom:10px;box-shadow:var(--shadow-sm)}
.ccard.done{border-color:var(--green-line);background:var(--green-soft)}
.chead{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.ctitle{flex:1;min-width:0;font:600 15.5px var(--serif);color:var(--ink);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.cpeople{display:flex;flex-direction:column;gap:11px}
.cperson{display:flex;align-items:flex-start;gap:11px}
.cbody{flex:1;min-width:0}
.cphones{display:flex;flex-wrap:wrap;gap:6px;margin-top:5px}
.cface{position:relative;flex:none;width:64px;height:64px}
.cface img,.cface .cinit{width:64px;height:64px;border-radius:50%;object-fit:cover;display:block;
  box-shadow:0 0 0 1px var(--line)}
.cinit{background:var(--surface-3);color:var(--ink-2);display:grid;place-items:center;
  font:600 20px var(--sans)}
.cinit.sm{font-size:9.5px}
.ctick{position:absolute;bottom:0;right:0;width:20px;height:20px;border-radius:50%;
  background:var(--green);color:#fff;display:grid;place-items:center;
  border:2px solid var(--surface)}
.ccard.done .ctick{border-color:var(--green-soft)}
.cname{font:600 14.5px var(--sans);color:var(--green);text-decoration:none;
  display:inline-flex;align-items:center;gap:4px}
.cname .ext{opacity:.5}
@media(hover:hover){ .cname:hover{text-decoration:underline} }
/* Every number on file. The primary one carries the weight, so a pastor's eye
   lands on the one to try first. */
.cphone{font:500 13.5px var(--sans);color:var(--ink-2);text-decoration:none;
  background:var(--surface-3);padding:3px 9px;border-radius:7px;min-height:26px;
  display:inline-flex;align-items:center}
.cphone.primary{font-weight:700;color:var(--ink)}
@media(hover:hover){ .cphone:hover{background:var(--green);color:#fff} }
.cnophone{font-size:12.5px;color:var(--muted)}

.cnote{margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.ccard.done .cnote{border-top-color:var(--green-line)}
.cnotebox{width:100%;min-height:0;padding:10px 12px;font:15px var(--sans);line-height:1.5;
  border:1px solid var(--line-strong);border-radius:10px;background:var(--surface);
  color:var(--ink);resize:vertical}
.cnoteact{display:flex;gap:8px;margin-top:8px;justify-content:flex-end}
.cnotetext{font-size:14.5px;line-height:1.5;color:var(--ink);white-space:pre-wrap;
  word-break:break-word}
.cnotemeta{display:flex;align-items:center;gap:8px;margin-top:8px;
  font-size:12px;color:var(--muted)}
.cnotemeta .cedit{margin-left:auto}
.cnoteact .cdel{margin-right:auto}

/* The italics are the only separator the two lines need. */
.cnotetr{margin-top:1px;font-size:13.5px;line-height:1.5;color:var(--ink-2);
  white-space:pre-wrap;word-break:break-word;font-style:italic}
.cnotetr.err{font-style:normal;font-size:12.5px;color:var(--terra)}

/* Carried over: assigned in an earlier week and still unvisited. */
.csub{font:700 11px var(--sans);letter-spacing:.07em;text-transform:uppercase;
  color:var(--amber);margin:18px 0 8px}
.ccard.waiting{border-color:var(--amber-line)}
.ccard.waiting.done{border-color:var(--green-line)}
/* Pinned to the card corner so it reads the same whether the card is a household
   with a heading or a single person without one. */
.cwait{position:absolute;top:9px;right:11px;padding:2px 8px;border-radius:6px;
  background:var(--amber-soft);color:var(--gold);font:600 10.5px var(--sans);
  letter-spacing:.02em;white-space:nowrap}
.ccard.waiting{padding-top:30px}

/* ── prayer view ──
   Read from a screen with a few people round it: legible at a step back, but
   compact enough that a pastor's whole week fits without scrolling. */
.praytoggle{display:block;margin:5px auto 0;background:none;border:0;padding:2px 6px;
  color:var(--muted);font:600 12px var(--sans);cursor:pointer;
  border-bottom:1px dashed var(--line-strong);-webkit-tap-highlight-color:transparent}
@media(hover:hover){ .praytoggle:hover{color:var(--green);border-bottom-color:var(--green)} }
body.praymode .praytoggle{color:var(--green);border-bottom-color:var(--green)}
body.praymode #careErr{display:none}

.pgroup{margin:0 0 18px}
.pglabel{display:flex;align-items:center;gap:8px;font:600 13px var(--serif);color:var(--green);
  padding-bottom:5px;border-bottom:1px solid var(--green-line);margin-bottom:6px}
.pgface{width:21px;height:21px;border-radius:50%;object-fit:cover;flex:none;
  box-shadow:0 0 0 1px var(--green-line)}
/* Indented under the pastor's name, so who-belongs-to-whom reads at a glance. */
.pcard{padding:6px 0;margin-left:16px}
.pcard + .pcard{border-top:1px solid var(--line)}
.ppeople{display:flex;flex-wrap:wrap;gap:5px 18px}
.pperson{display:flex;align-items:center;gap:7px}
.pface{width:26px;height:26px;border-radius:50%;object-fit:cover;flex:none;
  box-shadow:0 0 0 1px var(--line)}
.pinit{background:var(--surface-3);color:var(--ink-2);display:grid;place-items:center;
  font:600 10px var(--sans)}
.pgface.pinit{font-size:8.5px}
.pname{font:600 14px var(--sans);color:var(--ink)}
.prequest{margin:4px 0 0 33px;font-size:12.5px;line-height:1.45;color:var(--ink-2);
  word-break:break-word;border-left:2px solid var(--green-line);padding-left:9px}
.prequest > div{white-space:pre-wrap}

/* With room to spare, the request sits beside the names instead of under them,
   so a pastor's whole week keeps its height however much was written. */
@media(min-width:721px){
  .pcard{display:flex;align-items:flex-start;gap:14px;padding:7px 0;margin-left:22px}
  /* The names take only the width they need, so the request sits right against
     them — after the second person when it's a couple. */
  .ppeople{flex:0 1 auto}
  .prequest{flex:1;min-width:0;margin:0;padding-left:12px;font-size:13px}
}

/* A one-person card drops the heading row entirely and lets the pastor chip sit
   at the end of the person's own line. */
.cpeople.solo .cperson{flex:1 1 auto;min-width:0}

/* ── role picker (admin page) ── */
.rolepick{display:flex;flex-direction:column;gap:7px}
.rolepick label{display:flex;align-items:flex-start;gap:9px;cursor:pointer;font-weight:400;margin:0}
.rolepick input{width:18px;height:18px;margin:1px 0 0;flex:none;accent-color:var(--green)}
.rolepick b{display:block;font-size:14px;font-weight:600;color:var(--ink)}
.rolepick em{display:block;font-style:normal;font-size:12.5px;color:var(--muted);margin-top:1px}
.rolepick.inline{flex-direction:row;flex-wrap:wrap;gap:12px;align-items:center}
.rolepick.inline label{align-items:center;font-size:12.5px;color:var(--ink-2);text-transform:capitalize}
.rolepick.inline input{width:16px;height:16px;margin:0}
.pill-role.r-admin{background:var(--terra-soft);color:var(--terra)}
.pill-role.r-pastor{background:var(--amber-soft);color:var(--gold)}
.pill-role.r-intern{background:var(--green-soft);color:var(--green)}

/* Prayer-mode translation, under the request it belongs to. */
.prequesttr{margin-top:0;font-size:12px;line-height:1.45;color:var(--muted);
  font-style:italic;word-break:break-word}
@media(min-width:721px){ .prequesttr{font-size:12.5px} }

/* Undo toast: the delete has not happened yet while this is on screen.
   It hugs its own content instead of stretching the width of the phone. */
.toast.undo{display:flex;align-items:center;gap:14px;justify-content:center;text-align:left;
  left:50%;right:auto;transform:translateX(-50%);width:max-content;
  max-width:calc(100% - 24px);animation:popc .22s ease-out}
@keyframes popc{from{opacity:0;transform:translateX(-50%) translateY(8px)}}
.toast .tundo{background:none;border:1px solid rgba(255,255,255,.4);color:#fff;
  font:600 13px var(--sans);padding:5px 12px;border-radius:8px;cursor:pointer;flex:none}
.toast .tundo:active{transform:scale(.96)}
@media(hover:hover){ .toast .tundo:hover{background:rgba(255,255,255,.15)} }
.toast .tcount{font-variant-numeric:tabular-nums;opacity:.7;font-size:13px}

/* Another pastor's note: readable, not editable. */
.cnote.readonly .cnotemeta{justify-content:flex-end}

/* "Add people" sits at the foot of your own block, in the same quiet register
   as the Pray toggle. */
.addpeople{display:block;margin:10px 0 0 auto}
/* An ad-hoc addition is a normal card; it just never joins the rota. */
.ccard.adhoc{border-style:dashed}

/* No photo in Planning Center — worth a quiet nudge while the pastor is with
   them, since a face makes the whole list easier to work from. */
.cnophoto{margin:5px 0 0;font-size:11.5px;line-height:1.4;
  color:var(--muted)}

/* Age sits with the name — useful context a pastor would otherwise have to
   open Planning Center for. */
.cage{font-weight:500;color:var(--muted)}

/* Skip for now: deliberately quiet — it sits in the corner and only firms up
   when you go for it, so it never competes with Save. */
.cskip{position:absolute;left:10px;bottom:9px;width:26px;height:26px;padding:0;
  display:grid;place-items:center;border:0;border-radius:7px;background:none;
  color:var(--line-strong);cursor:pointer;-webkit-tap-highlight-color:transparent;
  transition:.14s}
.cskip:active{transform:scale(.92)}
@media(hover:hover){ .cskip:hover{background:var(--surface-3);color:var(--ink-2)} }
/* Only cards that carry the control need room for it. */
.ccard.skippable{padding-bottom:40px}
