/* ---------------------------------------------------------------
   Slate — application stylesheet (Phase 2a).
   Ported from design/prototype-v2-light.html, which is the approved
   design (spec.md §4). Only the pieces Phase 2a renders are here;
   routines / people / notes styles arrive with their phases.
   Colour encodes exactly one axis: time (blue = info, red = running out).
   --------------------------------------------------------------- */
:root{
  /* NOTHING IS PURE WHITE (spec §4.1). Panels sit lighter than the page. */
  --bg:#eeece6;
  --surface:#f9f8f4;
  --rule:#d5d2c9;      /* panel borders, column dividers */
  --hair:#e5e2d9;      /* row separators */
  --txt:#1f1f1c;       /* primary — softened off pure black */
  --txt2:#4a4a44;      /* secondary */
  --dim:#6b6b64;       /* metadata — clears 4.5:1 on --surface */
  --edge:#adaca4;      /* borders, empty boxes. NEVER text (spec §4.3) */
  --accent:#1f5fbf;    /* time information. nothing else */
  --alarm:#c2382b;     /* time running out. nothing else */
  --tint:#e7ecf5;      /* today column wash */
  --sel:#e8eaf0;       /* menu selection */
  --sunk:#f3f1eb;      /* expanded note background */
  --focusbg:#fffdf6;
  --zebra:#f2f0ea;     /* row hover */
  /* warm paper — the note family (pinned + scratchpad). Warm so notes
     never read as another list of tasks (spec §3.6). */
  --paper:#f6efdc;
  --paperline:#e4d9be;
  --papertxt:#8a7647;
  --shadow:rgba(40,38,32,.16);
  --sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --mono:ui-monospace,SFMono-Regular,"Cascadia Mono",Consolas,"Liberation Mono",monospace;
}
/* Dark is a class toggle on <html>, not a second theme (spec §4.1). */
html.dark{
  --bg:#16171a;
  --surface:#1c1d21;
  --rule:#2e2f35;
  --hair:#242529;
  --txt:#e9e9e6;
  --txt2:#b6b6b0;
  --dim:#8c8c86;
  --edge:#73747c;
  --accent:#7aa2f7;
  --alarm:#f0645a;
  --tint:#1b2130;
  --sel:#232329;
  --sunk:#191a1e;
  --focusbg:#1f2025;
  --zebra:#1f2024;
  --paper:#241f16;
  --paperline:#3a3123;
  --papertxt:#b09a63;
  --shadow:rgba(0,0,0,.55);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:var(--bg); color:var(--txt);
  font-family:var(--sans); font-size:13.5px; line-height:1.4;
  -webkit-font-smoothing:antialiased;
}
button{font:inherit;color:inherit;background:none;border:none;padding:0;cursor:pointer}
.wrap{max-width:1600px;margin:0 auto;padding:0 18px 80px}
.hidden{display:none !important}

/* ---------- header ---------- */
header{
  position:sticky;top:0;z-index:40;background:var(--bg);
  display:flex;align-items:center;gap:14px;
  padding:11px 0 10px;border-bottom:1px solid var(--rule);
}
.logo{font-size:14px;letter-spacing:.3em;font-weight:600;flex-shrink:0}
/* the add bar's desktop home — on the phone the .addwrap node moves into
   the capture sheet (spec §7.9), so the anchor carries the flex sizing */
#addanchor{flex:1;max-width:620px;min-width:0}
.addwrap{position:relative;width:100%}
#add{
  width:100%;background:var(--surface);border:1px solid var(--rule);border-radius:4px;
  padding:6px 11px;color:var(--txt);font-size:13px;font-family:var(--sans);
  caret-color:var(--accent);
}
#add:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 2px rgba(31,95,191,.12)}
#add::placeholder{color:var(--dim)}
/* pending-target chips inside the add bar: "→ Fri 8 Aug" (blue = time) and
   "@Trey" (grey — colour means time and nothing else, spec §4.2) */
.addchips{
  position:absolute;right:8px;top:50%;transform:translateY(-50%);
  display:flex;gap:5px;pointer-events:none;
}
.daychip{
  font-size:11px;color:var(--accent);background:var(--tint);
  border-radius:3px;padding:1px 7px;
}
.daychip.who{color:var(--txt2);background:var(--zebra)}
/* @ menu rows: person names are grey, not command-blue */
.mi.who code{color:var(--txt2)}
.hint{font-size:11px;color:var(--dim);flex-shrink:0}
/* quick-add menu — commands only, never dates (spec §7.2) */
#menu{
  position:absolute;top:calc(100% + 4px);left:0;min-width:280px;z-index:60;
  background:var(--surface);border:1px solid var(--rule);border-radius:5px;padding:4px;
  box-shadow:0 8px 26px var(--shadow);display:none;
}
#menu.on{display:block}
.mi{display:flex;gap:12px;align-items:baseline;padding:5px 9px;border-radius:3px;cursor:pointer}
.mi.sel{background:var(--sel)}
.mi code{font-family:var(--mono);font-size:12px;color:var(--accent);min-width:96px}
.mi span{font-size:12.5px;color:var(--txt2)}
/* Tab-to-note strip: attached under the add bar, italic = note (spec §6.5) */
#notewrap{
  position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:59;
  display:flex;align-items:center;gap:9px;
  background:var(--surface);border:1px solid var(--rule);border-radius:5px;
  padding:6px 11px;box-shadow:0 8px 26px var(--shadow);
}
#notewrap .notelbl{font-size:10px;letter-spacing:.14em;font-weight:600;color:var(--dim);flex-shrink:0}
#addnote{
  flex:1;background:none;border:none;outline:none;
  font-family:var(--sans);font-size:12.5px;font-style:italic;color:var(--txt2);
  caret-color:var(--accent);
}
#addnote::placeholder{color:var(--dim);opacity:.8}
.today-str{font-size:12px;color:var(--txt2);font-variant-numeric:tabular-nums;flex-shrink:0;margin-left:auto}
.themebtn{
  font-size:11px;color:var(--dim);border:1px solid var(--rule);border-radius:3px;
  padding:3px 9px;flex-shrink:0;background:var(--surface);
}
.themebtn:hover{color:var(--txt);border-color:var(--edge)}

/* ---------- section chrome (20 / 7 / 12 rhythm, spec §4.6) ---------- */
section{margin-top:20px}
.shead{display:flex;align-items:center;gap:10px;margin-bottom:7px}
.shead h2{margin:0;font-size:10px;letter-spacing:.17em;color:var(--dim);font-weight:600}
.shead .line{flex:1;height:1px;background:var(--rule)}
.shead .meta{font-size:11px;color:var(--dim);font-variant-numeric:tabular-nums}
.navbtn{
  width:20px;height:20px;border:1px solid var(--rule);border-radius:3px;background:var(--surface);
  color:var(--txt2);font-size:10px;line-height:1;display:flex;align-items:center;justify-content:center;
}
.navbtn:hover{border-color:var(--edge);color:var(--txt)}
.addrt{font-size:11px;color:var(--dim);border:1px solid var(--rule);border-radius:3px;padding:1px 8px;background:var(--surface)}
.addrt:hover{color:var(--txt);border-color:var(--edge)}
.addrt.on{color:var(--accent);border-color:var(--accent)}

/* ---------- days band: ONE panel divided by rules (spec §3.2) ---------- */
.days{display:flex;align-items:stretch}
.daystrip{
  display:flex;flex:1;min-width:0;
  background:var(--surface);border:1px solid var(--rule);border-radius:4px;
}
.card{min-width:0}
.daystrip .card{flex:1;border-right:1px solid var(--rule);padding-bottom:3px}
.daystrip .card:last-child{border-right:none}
.daystrip .card.is-today{background:var(--tint)}
.chead{
  display:flex;align-items:baseline;gap:7px;
  padding:6px 9px 5px;border-bottom:1px solid var(--rule);
}
.chead .d{font-size:12.5px;font-weight:600}
.chead .n{font-size:11px;color:var(--dim);font-variant-numeric:tabular-nums}
.card.is-today .chead .d{color:var(--accent)}
.empty{padding:7px 9px;font-size:12px;color:var(--dim)}
/* + on a day header (hover) — fastest path to "this goes there" */
.plus{
  opacity:0;font-size:14px;line-height:1;color:var(--dim);padding:0 3px;
  border-radius:3px;flex-shrink:0;
}
.card:hover .plus{opacity:1}
.plus:hover{color:var(--accent);background:var(--sel)}

/* Future: collapsed 34px rail, click to open (spec §3.2) */
.card.future{
  width:230px;flex-shrink:0;margin-left:9px;background:var(--surface);
  border:1px solid var(--rule);border-radius:4px;transition:width .12s ease;padding-bottom:3px;
}
.card.future.shut{width:34px;padding-bottom:0;cursor:pointer}
.card.future.shut .chead{
  flex-direction:column;gap:8px;align-items:center;padding:9px 0;border-bottom:none;height:100%;
}
.card.future.shut .d{
  writing-mode:vertical-rl;transform:rotate(180deg);letter-spacing:.19em;
  font-size:10.5px;color:var(--txt2);
}
.card.future .chead{cursor:pointer}
.card.future .chead:hover .d{color:var(--txt)}
/* rail count turns red while anything inside is due within 5 days (spec §6.8) */
.card.future .n.soon{color:var(--alarm);font-weight:600}

/* ---------- task rows (spec §3.3) ---------- */
.task{padding:4px 9px;border-bottom:1px solid var(--hair)}
.task:last-child{border-bottom:none}
.trow{display:flex;gap:8px;align-items:flex-start}
.box{
  width:13px;height:13px;flex-shrink:0;margin-top:2px;
  border:1.5px solid var(--edge);background:var(--surface);border-radius:2px;cursor:pointer;
}
.box:hover{border-color:var(--txt)}
.box.done{background:var(--edge);border-color:var(--edge)}
/* the title is clickable (opens the editor) — say so on hover (Nick, Aug 6) */
.ttl{flex:1;font-size:13px;line-height:1.35;word-break:break-word;cursor:pointer;border-radius:2px;padding:0 3px;margin:0 -3px}
.ttl:hover{background:var(--sel)}
.task.done .ttl{color:var(--dim);text-decoration:line-through}
.tm{font-family:var(--mono);font-size:11px;color:var(--accent);flex-shrink:0;padding-top:1px;cursor:pointer}
.tm:hover{text-decoration:underline}
.task.done .tm{color:var(--dim)}
/* reschedule affordance, revealed on hover — opens the day picker */
.when{
  opacity:0;font-size:11px;color:var(--dim);border:1px solid transparent;
  border-radius:3px;padding:0 5px;flex-shrink:0;line-height:1.4;
}
.task:hover .when{opacity:1;border-color:var(--rule)}
.when:hover{color:var(--txt);border-color:var(--edge)}
/* metadata: ONE line, ever (spec §3.3) */
.chips{
  display:flex;flex-wrap:nowrap;overflow:hidden;white-space:nowrap;
  margin:1px 0 0 21px;font-size:11.5px;line-height:1.5;
}
.chip{color:var(--dim);flex-shrink:0}
.chip + .chip::before{content:"·";margin:0 5px;color:var(--edge)}
.chip.date{color:var(--accent)}
.chip.late{color:var(--alarm)}
.chip.note{flex-shrink:1;min-width:0;overflow:hidden;text-overflow:ellipsis;font-style:italic}
/* carried-over-from-an-earlier-day marker (proto-tray until Phase 2b) */
.chip.carried{color:var(--alarm)}

/* sub-tasks: indented under their parent, one level only (spec §3.3) */
.subs{margin:1px 0 1px 21px;border-left:1px solid var(--hair)}
.subs .task{padding:2px 0 2px 8px;border-bottom:none}
.subs .task .box{width:11px;height:11px;margin-top:3px}
.subs .task .ttl{font-size:12.5px}

/* carried-over tray at the top of Today — highlighted, must be cleared
   (spec §6.6): complete each item or give it a new day */
.tray{border-left:2px solid var(--alarm);background:var(--sunk)}
.trayhead{
  padding:4px 9px 2px;font-size:10px;letter-spacing:.14em;font-weight:600;
  color:var(--alarm);
}
/* status + person + tag chips */
.chip.who{color:var(--dim)}
.chip.status{color:var(--dim)}
.chip.rec{color:var(--accent)}
/* expanded note text (click the italic preview) */
.notefull{
  margin:3px 0 2px 21px;padding:7px 10px;background:var(--sunk);border-left:2px solid var(--edge);
  font-size:12.5px;color:var(--txt2);line-height:1.6;white-space:pre-wrap;
}
.chip.note{cursor:pointer}
.chip.note:hover{color:var(--txt2);text-decoration:underline}
/* chips that edit in place on click (deadline — spec §7.4) */
.chip.edit{cursor:pointer}
.chip.edit:hover{text-decoration:underline}

/* expand-in-place editor (spec §7.4 — no modals, ever) */
.ted{
  margin:4px 0 3px 21px;padding:8px 10px;background:var(--sunk);
  border-left:2px solid var(--accent);display:flex;flex-direction:column;gap:7px;
}
.ted input[type=text],.ted textarea{
  width:100%;background:var(--surface);border:1px solid var(--rule);border-radius:3px;
  padding:4px 8px;color:var(--txt);font-size:12.5px;font-family:var(--sans);resize:vertical;
}
.ted input:focus,.ted textarea:focus{outline:none;border-color:var(--accent)}
.ted .row{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.ted .lbl{font-size:10px;letter-spacing:.1em;color:var(--dim);font-weight:600;min-width:52px}
.tbtn{
  font-size:11px;color:var(--txt2);border:1px solid var(--rule);border-radius:3px;
  padding:2px 8px;background:var(--surface);
}
.tbtn:hover{border-color:var(--edge);color:var(--txt)}
.tbtn.on{border-color:var(--accent);color:var(--accent);font-weight:600}
.tbtn.danger:hover{border-color:var(--alarm);color:var(--alarm)}

/* "Done today (n)" collapse at the foot of a card (spec §6.7) */
.donefoot{
  padding:4px 9px;font-size:11.5px;color:var(--dim);cursor:pointer;
  border-top:1px solid var(--hair);
}
.donefoot:hover{color:var(--txt2)}

/* ---------- placeholder bands for phases not yet built ---------- */
.phband{
  background:var(--surface);border:1px dashed var(--rule);border-radius:4px;
  padding:14px;font-size:12px;color:var(--dim);
}

/* ---------- pinned note (spec §3.1) ----------
   Warm paper like the scratchpad notes — the whole note family shares one
   treatment (REVISED Aug 7 2026: the blue left edge stood out too much,
   and blue is reserved for time, §4.2). */
.pinwrap{
  position:relative;margin-top:14px;background:var(--paper);border-radius:3px;
  box-shadow:inset 0 0 0 1px var(--paperline);padding:7px 12px 9px;
}
.pinlbl{
  font-size:10px;font-weight:600;letter-spacing:.09em;
  color:var(--papertxt);margin-bottom:3px;
}
.pinned{
  font-size:13px;color:var(--txt2);line-height:1.55;outline:none;min-height:18px;
  white-space:pre-wrap;
}
.pinned b,.pinned strong{color:var(--txt);font-weight:600}
.pinned:empty::before{content:"Standing note — always here. Ctrl+B / Ctrl+I to format.";color:var(--dim)}

/* ---------- scratchpad notes (spec §3.6) ----------
   Notes must not read as another list of tasks: warm paper, no border,
   an uppercase label instead of a heading. */
.notes{display:grid;grid-template-columns:repeat(auto-fill,minmax(244px,1fr));gap:9px;align-items:start}
.scratch{
  position:relative;background:var(--paper);border:none;border-radius:3px;
  padding:8px 12px 11px;box-shadow:inset 0 0 0 1px var(--paperline);
}
.ntitle{
  font-size:11px;font-weight:600;letter-spacing:.09em;text-transform:uppercase;
  color:var(--papertxt);outline:none;margin-bottom:5px;padding-right:16px;
}
.ntitle:empty::before{content:"TITLE";color:var(--papertxt);opacity:.6}
.nbody{font-size:12.5px;color:var(--txt2);line-height:1.6;outline:none;white-space:pre-wrap;min-height:18px}
.nbody:empty::before{content:"\2026";color:var(--dim)}
.nbody b,.nbody strong,.ntitle b{color:var(--txt)}
/* delete — revealed on hover, undoable like everything else */
.ndel{
  position:absolute;top:5px;right:7px;opacity:0;font-size:14px;line-height:1;
  color:var(--dim);padding:1px 4px;border-radius:3px;
}
.scratch:hover .ndel{opacity:1}
.ndel:hover{color:var(--alarm);background:var(--sunk)}
.newnote{
  border:1px dashed var(--paperline);border-radius:3px;padding:11px;text-align:center;
  color:var(--dim);font-size:12.5px;cursor:pointer;background:none;width:100%;
}
.newnote:hover{border-color:var(--edge);color:var(--txt2)}
/* live B / I / U state while editing a note (Nick, Aug 7) — tiny grey
   letters in the card's corner, lit when that format is on at the cursor.
   Grey only: colour still means time and nothing else (§4.2). */
.fmtind{position:absolute;top:6px;right:26px;display:none;gap:2px}
.scratch:focus-within .fmtind,.pinwrap:focus-within .fmtind{display:flex}
.pinwrap .fmtind{right:12px;top:7px}
.fmtind span{
  width:15px;line-height:15px;text-align:center;font-size:10px;
  color:var(--dim);border-radius:2px;opacity:.55;
}
.fmtind span.on{color:var(--txt);background:var(--sel);opacity:1}
.fmtind [data-fmt=b]{font-weight:700}
.fmtind [data-fmt=i]{font-style:italic}
.fmtind [data-fmt=u]{text-decoration:underline}

/* ---------- History + Settings — the only things off the main page (§3) --- */
.pageview{margin-top:20px}
#histsearch{
  width:100%;max-width:460px;background:var(--surface);border:1px solid var(--rule);
  border-radius:4px;padding:6px 11px;color:var(--txt);font-size:13px;font-family:var(--sans);
  caret-color:var(--accent);margin-bottom:12px;
}
#histsearch:focus{outline:none;border-color:var(--accent)}
#histsearch::placeholder{color:var(--dim)}
.histday{
  font-size:10px;letter-spacing:.15em;font-weight:600;color:var(--dim);
  margin:14px 0 4px;padding-bottom:3px;border-bottom:1px solid var(--rule);
}
.histday:first-child{margin-top:0}
.histlist{background:var(--surface);border:1px solid var(--rule);border-radius:4px;padding:4px 12px 8px;max-width:760px}
.histrow{display:flex;gap:9px;align-items:baseline;padding:3px 0;border-bottom:1px solid var(--hair);font-size:13px}
.histrow:last-child{border-bottom:none}
.histrow .t{color:var(--txt2)}
.histrow .sub{color:var(--dim);font-size:12.5px}
.histrow .meta2{margin-left:auto;flex-shrink:0;font-size:11.5px;color:var(--dim);font-family:var(--mono)}
.histempty{padding:10px 0;font-size:12.5px;color:var(--dim)}

.setlist{background:var(--surface);border:1px solid var(--rule);border-radius:4px;padding:8px 16px;max-width:640px}
.setrow{display:flex;gap:8px;align-items:center;padding:12px 0;border-bottom:1px solid var(--hair)}
.setrow:last-child{border-bottom:none}
.setrow .lbl{font-size:10px;letter-spacing:.1em;color:var(--dim);font-weight:600;min-width:88px}
.setnote{flex-basis:100%;margin:4px 0 0 96px;font-size:11.5px;color:var(--dim);line-height:1.5}
.setrow{flex-wrap:wrap}
/* the People manager (Settings): everyone the @ menu knows, deletable */
.setppl{flex:1;min-width:0}
.setperson{display:flex;align-items:center;gap:10px;padding:5px 0;border-bottom:1px solid var(--hair)}
.setperson:last-child{border-bottom:none}
.spname{font-size:13px;color:var(--txt)}
.spcount{font-size:11.5px;color:var(--dim);flex:1;font-variant-numeric:tabular-nums}
.lower{display:flex;gap:20px;align-items:flex-start;margin-top:20px}
.lower > section{margin-top:0;min-width:0}
.lower .routines-col{flex:1.55}
.lower .people-col{flex:1}

/* ---------- routines band (spec §3.4) ----------
   Ported from the approved prototype. Three grouped tables; each group's
   header is ONE tinted band carrying the section name AND that section's
   own column labels (monthly says DUE and DONE, not weekdays). The status
   zone is a fixed 162px block behind a vertical rule, so every Wednesday
   square sits at the same x. */
.rout{background:var(--surface);border:1px solid var(--rule);border-radius:4px;padding:0 12px 8px}
.rgroup{
  display:flex;align-items:center;gap:10px;
  margin:0 -12px;padding:5px 12px;background:var(--zebra);
  border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);
}
.rgroup:first-child{border-top:none}
.glabel{font-size:10px;letter-spacing:.15em;font-weight:600;color:var(--txt)}
.gnote{flex:1;font-size:11px;color:var(--dim);font-weight:400}
.gdue{width:146px;text-align:right;font-size:10px;letter-spacing:.13em;color:var(--dim);font-weight:600}
.gcols{
  display:flex;justify-content:flex-end;gap:5px;width:162px;flex-shrink:0;
  padding-left:12px;border-left:1px solid var(--rule);
}
.gcols b{
  width:26px;text-align:center;font-family:var(--mono);font-size:10.5px;
  color:var(--dim);font-weight:400;
}
.gcols b.now{color:var(--accent);font-weight:600}
.gcols b.wide{width:auto;font-family:var(--sans);font-size:10px;letter-spacing:.13em;font-weight:600}

.rrow{display:flex;align-items:center;gap:14px;padding:4px 8px;margin:0 -8px;border-top:1px solid var(--hair)}
.rrow:hover{background:var(--zebra)}
/* the cadence text is the quick control for "how often" (spec §7.4) */
.cad{cursor:pointer;border-bottom:1px dashed transparent}
.rrow:hover .cad{border-bottom-color:var(--edge)}
.rname{flex:1;font-size:13px;min-width:0;display:flex;align-items:baseline;gap:0;white-space:nowrap;overflow:hidden}
.rname .cad{font-size:11.5px;color:var(--dim);margin-left:7px;flex-shrink:0}
/* the routine title opens the in-place editor, same affordance as tasks */
.rttl{cursor:pointer;border-radius:2px;padding:0 3px;margin:0 -3px}
.rttl:hover{background:var(--sel)}
.rname .chip{margin-left:8px}
.rname .chip.note{min-width:0;overflow:hidden;text-overflow:ellipsis}
.chip.time{color:var(--accent);font-family:var(--mono);font-size:11px}

/* reorder arrows — revealed on row hover, weekly rows only */
.rmv{display:flex;flex-direction:column;gap:0;opacity:0;flex-shrink:0;margin:-2px 0}
.rrow:hover .rmv{opacity:1}
.rmv button{font-size:7px;line-height:1.3;color:var(--dim);padding:1px 4px;border-radius:2px}
.rmv button:hover{color:var(--txt);background:var(--sel)}

/* The square grid. Cycle: Open → Done → Partial → Not needed (spec §5.1). */
.sq{
  display:flex;justify-content:flex-end;gap:5px;flex-shrink:0;width:162px;
  padding-left:12px;border-left:1px solid var(--hair);
}
.sq button{
  width:26px;height:19px;border:1.5px solid var(--edge);background:var(--surface);
  cursor:pointer;border-radius:2px;font-size:12px;line-height:1;color:transparent;
}
.sq button:hover{border-color:var(--txt)}
.sq button.today{border-color:var(--accent);border-width:2px}
.sq button.done{background:var(--txt);border-color:var(--txt)}
.sq button.part{background:linear-gradient(135deg,var(--txt) 50%,var(--surface) 50%);border-color:var(--txt)}
/* Not needed: the box itself struck through at its own diagonal angle
   (26 × 19 → 36.15°), 80% of the full diagonal, no outline (spec §5.1) */
.sq button.na{border:none;background:none;color:transparent;position:relative}
.sq button.na::before,.sq button.na::after{
  content:"";position:absolute;left:50%;top:50%;
  width:25.8px;height:1.5px;background:var(--edge);border-radius:1px;
}
.sq button.na::before{transform:translate(-50%,-50%) rotate(36.15deg)}
.sq button.na::after {transform:translate(-50%,-50%) rotate(-36.15deg)}
.sq button.na:hover::before,.sq button.na:hover::after{background:var(--txt2)}
/* day the routine does not apply — a dash (a middot read as a rendering fault) */
.sq button.off{border-color:transparent;background:none;cursor:default;color:var(--edge)}
.sq button.off::after{content:"\2013"}

/* ---------- checklist nested under a monthly routine (spec §6.4) ---------- */
.caret{color:var(--dim);font-size:9px;margin-right:6px;display:inline-block;width:12px;flex-shrink:0}
.caret:hover{color:var(--txt)}
.prog{font-family:var(--mono);font-size:11.5px;color:var(--txt2);margin-left:7px;flex-shrink:0}
/* the checklist is visibly INSIDE its parent — tinted, inset, and its own
   Schedule column lined up under the status zone */
.mlist{
  margin:0 -12px;padding:3px 12px 6px 34px;background:var(--sunk);
  border-bottom:1px solid var(--hair);
}
.mitem{display:flex;align-items:center;gap:9px;padding:2px 0}
.mitem .box{margin-top:0}
.mitem .t{flex:1;font-size:12.5px;color:var(--txt2)}
.mitem.done .t{color:var(--dim);text-decoration:line-through}
.pull{width:150px;text-align:right;font-size:11px;color:var(--dim);border:1px solid transparent;border-radius:3px;padding:0 6px;flex-shrink:0}
.mitem:hover .pull{border-color:var(--rule);color:var(--txt2)}
.pull.set{color:var(--accent);border-color:var(--tint)}
/* a completed item's schedule text fades too, so the right-hand column
   can be scanned on its own to count what is still open */
.mitem.done .pull,.mitem.done:hover .pull{color:var(--dim);border-color:transparent}

/* countdown on monthly rows — one line, red inside five days (spec §6.2).
   Clickable: the per-period date override (spec §10). */
.due{font-family:var(--mono);font-size:11.5px;color:var(--txt2);width:146px;text-align:right;flex-shrink:0;white-space:nowrap;cursor:pointer;border-bottom:1px dashed transparent}
.rrow:hover .due{border-bottom-color:var(--edge)}
.due.soon{color:var(--alarm)}
.due small{font-size:11px;color:var(--dim);font-family:var(--sans)}
.due small::before{content:"·";margin:0 5px;color:var(--edge)}

/* square-state legend under the band */
.legend{display:flex;gap:16px;flex-wrap:wrap;margin-top:8px;font-size:11.5px;color:var(--txt2)}
.legend i{display:inline-block;width:11px;height:11px;vertical-align:-1px;margin-right:5px;border:1.5px solid var(--edge);background:var(--surface)}
.legend i.d{background:var(--txt);border-color:var(--txt)}
.legend i.p{background:linear-gradient(135deg,var(--txt) 50%,var(--surface) 50%);border-color:var(--txt)}
.legend b{color:var(--dim);font-weight:400;margin-right:5px;font-size:13px}

/* ---------- the frequency editor popover (spec §7.4) ----------
   Same popover pattern as the day picker, deliberately NOT a modal: a
   dialog would cover the routines list you are editing against. */
#cadpick{
  position:absolute;z-index:80;display:none;width:250px;
  background:var(--surface);border:1px solid var(--rule);border-radius:5px;padding:6px;
  box-shadow:0 8px 26px var(--shadow);
}
#cadpick.on{display:block}
#cadpick h4{margin:2px 4px 6px;font-size:10px;letter-spacing:.14em;color:var(--dim);font-weight:600;text-transform:uppercase;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#cadpick .note{margin:4px 4px 2px;font-size:11px;color:var(--dim);line-height:1.5}
.cop{display:block;width:100%;text-align:left;padding:5px 8px;border-radius:3px;font-size:12.5px;color:var(--txt)}
.cop:hover{background:var(--sel)}
.cop.cur{color:var(--accent);font-weight:600}
.cop.cur::after{content:"\2713";float:right}
.wk{display:flex;gap:3px;padding:5px 6px 3px;align-items:center}
.wk button{
  flex:1;font-size:11px;padding:4px 0;border:1px solid var(--rule);border-radius:3px;
  color:var(--dim);background:var(--surface);
}
.wk button.on{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:600}
.wk input[type=number]{
  width:56px;background:var(--surface);border:1px solid var(--rule);border-radius:3px;
  padding:3px 6px;color:var(--txt);font-size:12px;font-family:var(--mono);
}
.wk input[type=number]:focus{outline:none;border-color:var(--accent)}
.wk .wlbl{font-size:10px;letter-spacing:.1em;color:var(--dim);font-weight:600;flex-shrink:0;padding:0 2px}

/* ---------- people band (spec §3.5): a view, not a container ---------- */
.people{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:9px;align-items:start}
.people .card{background:var(--surface);border:1px solid var(--rule);border-radius:4px}
.phead{padding:5px 9px 4px;border-bottom:1px solid var(--rule);font-size:12.5px;font-weight:600}
.phead .c{float:right;font-size:11px;color:var(--dim);font-weight:400;font-variant-numeric:tabular-nums}

/* ---------- undo strip (spec §7.1) ---------- */
#undo{
  position:fixed;left:18px;bottom:18px;z-index:70;display:none;align-items:center;gap:14px;
  background:var(--surface);border:1px solid var(--rule);border-radius:5px;padding:8px 13px;font-size:12.5px;
  box-shadow:0 8px 24px var(--shadow);
}
#undo.on{display:flex}
#undo b{font-weight:400;color:var(--txt2)}
#undo button{color:var(--accent);font-size:12.5px}

/* ---------- sync-failure strip — honesty when optimistic UI misses ---------- */
#syncerr{
  position:fixed;right:18px;bottom:18px;z-index:70;display:none;
  background:var(--surface);border:1px solid var(--alarm);border-radius:5px;
  padding:8px 13px;font-size:12.5px;color:var(--alarm);box-shadow:0 8px 24px var(--shadow);
}
#syncerr.on{display:block}

/* ---------- the shared day picker (spec §7.3) ---------- */
#daypick{
  position:absolute;z-index:80;display:none;min-width:158px;
  background:var(--surface);border:1px solid var(--rule);border-radius:5px;padding:4px;
  box-shadow:0 8px 26px var(--shadow);
}
#daypick.on{display:block}
#daypick .dp{
  display:flex;justify-content:space-between;gap:14px;align-items:baseline;
  padding:5px 9px;border-radius:3px;cursor:pointer;font-size:12.5px;color:var(--txt);
}
#daypick .dp:hover{background:var(--sel)}
#daypick .dp.cur{color:var(--accent);font-weight:600}
#daypick .dp small{color:var(--dim);font-family:var(--mono);font-size:11px}
#daypick .sep{height:1px;background:var(--hair);margin:4px 2px}
#daypick .dp.clear{color:var(--dim)}
#daypick .dp.danger{color:var(--alarm)}
.cal{padding:2px 4px 4px}
.calhead{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--txt2);padding:2px 2px 5px}
.mnav{width:20px;height:20px;border-radius:3px;color:var(--dim);font-size:14px;line-height:1}
.mnav:hover{background:var(--sel);color:var(--txt)}
.calgrid{display:grid;grid-template-columns:repeat(7,26px);gap:1px}
.calgrid b{font-size:9.5px;color:var(--dim);text-align:center;font-weight:400;padding-bottom:3px}
.calgrid button{font-size:11.5px;padding:3px 0;border-radius:3px;color:var(--txt);font-variant-numeric:tabular-nums}
.calgrid button:hover:not(:disabled){background:var(--sel)}
.calgrid button.out{color:var(--edge);cursor:default}
.calgrid button.today{box-shadow:inset 0 0 0 1px var(--accent)}
.calgrid button.cur{background:var(--accent);color:#fff}

/* ---------- the time picker popover ----------
   A chip edit should LOOK like a deliberate, saved change — not a bare
   text box (Nick, Aug 7). Same popover pattern as the day picker. */
#timepick{
  position:absolute;z-index:80;display:none;width:190px;
  background:var(--surface);border:1px solid var(--rule);border-radius:5px;padding:8px;
  box-shadow:0 8px 26px var(--shadow);
}
#timepick.on{display:block}
#timepick .tplbl{font-size:10px;letter-spacing:.14em;color:var(--dim);font-weight:600;margin:0 1px 5px}
#timepick input{
  width:100%;background:var(--surface);border:1px solid var(--rule);border-radius:3px;
  padding:4px 8px;color:var(--txt);font-size:12.5px;font-family:var(--mono);
}
#timepick input:focus{outline:none;border-color:var(--accent)}
#timepick input::placeholder{color:var(--dim);font-family:var(--sans);font-size:11.5px}
.tpgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:3px;margin-top:6px}
.tpgrid button{
  font-size:11.5px;font-family:var(--mono);padding:3px 0;border:1px solid var(--rule);
  border-radius:3px;color:var(--txt2);background:var(--surface);
}
.tpgrid button:hover{border-color:var(--edge);color:var(--txt)}
.tpgrid button.cur{border-color:var(--accent);color:var(--accent);font-weight:600}
.tpclear{margin-top:6px;padding:5px 2px 1px;font-size:12px;color:var(--dim);cursor:pointer;border-top:1px solid var(--hair)}
.tpclear:hover{color:var(--txt)}

/* ---------- the month calendar (expands under the Days strip) ---------- */
.calview{
  margin-top:9px;background:var(--surface);border:1px solid var(--rule);
  border-radius:4px;padding:10px 12px 12px;
}
.cvhead{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.cvhead .m{font-size:12.5px;font-weight:600;min-width:96px;text-align:center;font-variant-numeric:tabular-nums}
.cvgrid{display:grid;grid-template-columns:repeat(7,1fr);border-top:1px solid var(--rule);border-left:1px solid var(--hair)}
.cvdow{
  font-size:9.5px;letter-spacing:.13em;color:var(--dim);font-weight:600;text-align:center;
  padding:4px 0;background:var(--zebra);border-right:1px solid var(--hair);border-bottom:1px solid var(--rule);
}
.cvcell{
  min-height:84px;min-width:0;padding:3px 6px 5px;cursor:pointer;
  border-right:1px solid var(--hair);border-bottom:1px solid var(--hair);
}
.cvcell:hover:not(.out){background:var(--zebra)}
.cvcell.out{cursor:default}
.cvcell.today{background:var(--tint)}
.cvnum{font-size:11px;color:var(--dim);font-variant-numeric:tabular-nums;margin-bottom:1px}
.cvcell.today .cvnum{color:var(--accent);font-weight:600}
.cvit{font-size:11.5px;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--txt2)}
.cvit .t{font-family:var(--mono);font-size:10.5px;color:var(--accent);margin-right:4px}
.cvmore{font-size:11px;color:var(--accent)}

/* ---------- keyboard layer (spec §7.7) ---------- */
/* the highlight — the keyboard's cursor. Blue edge = the cursor is time-
   neutral chrome, same family as the today marker (§4.2). */
.task.kbsel{background:var(--sel);box-shadow:inset 2px 0 0 var(--accent)}
.rwrap.kbsel .rrow{background:var(--sel);box-shadow:inset 2px 0 0 var(--accent)}
.sq button.kbsq{outline:2px solid var(--accent);outline-offset:1px}

/* the shortcuts cheat-sheet — a popover, not a modal (decision 17) */
#helppick{
  position:fixed;top:64px;left:50%;transform:translateX(-50%);z-index:90;display:none;
  width:340px;background:var(--surface);border:1px solid var(--rule);border-radius:5px;
  padding:10px 14px 12px;box-shadow:0 12px 34px var(--shadow);
}
#helppick.on{display:block}
.hphead{
  font-size:10px;letter-spacing:.15em;font-weight:600;color:var(--dim);
  margin:8px 0 4px;padding-bottom:3px;border-bottom:1px solid var(--hair);
}
.hphead:first-child{margin-top:0}
.hprow{display:flex;gap:12px;align-items:baseline;padding:2px 0;font-size:12.5px;color:var(--txt2)}
.hprow kbd{
  font-family:var(--mono);font-size:11px;color:var(--txt);background:var(--zebra);
  border:1px solid var(--rule);border-radius:3px;padding:0 5px;min-width:64px;
  text-align:center;flex-shrink:0;
}

/* ---------- login ---------- */
#login{
  min-height:100vh;display:flex;align-items:center;justify-content:center;
  flex-direction:column;gap:14px;
}
.loginbox{
  background:var(--surface);border:1px solid var(--rule);border-radius:4px;
  padding:26px 30px;width:300px;
}
.loginbox h1{margin:0 0 16px;font-size:14px;letter-spacing:.3em;font-weight:600;text-align:center}
.loginbox label{display:block;font-size:11px;color:var(--dim);margin:10px 0 3px}
.loginbox input{
  width:100%;background:var(--bg);border:1px solid var(--rule);border-radius:4px;
  padding:7px 10px;color:var(--txt);font-size:13px;font-family:var(--sans);
}
.loginbox input:focus{outline:none;border-color:var(--accent)}
.loginbox .go{
  width:100%;margin-top:16px;padding:7px 0;border:1px solid var(--accent);
  border-radius:4px;color:var(--accent);font-size:13px;font-weight:600;
}
.loginbox .go:hover{background:var(--tint)}
.loginbox .err{margin-top:10px;font-size:12px;color:var(--alarm);min-height:16px}

/* ---------- footer ---------- */
.foot{
  margin-top:34px;display:flex;gap:14px;align-items:center;
  font-size:11px;color:var(--dim);font-family:var(--mono);
}
.foot button{font-size:11px;color:var(--dim);font-family:var(--sans);text-decoration:underline}
.foot button:hover{color:var(--txt)}

/* ---------- phone chrome: hidden until the phone breakpoint ---------- */
#pills,#fab,#fabnote,#sheetbg,#addsheet,#jumpbar,.phc{display:none}

/* ---------- narrow desktop window (NOT the phone design) ---------- */
@media(max-width:900px) and (min-width:701px){
  .wrap{padding:0 10px 80px}
  header{flex-wrap:wrap;gap:8px}
  #addanchor{order:3;flex-basis:100%;max-width:none}
  .days{flex-direction:column}
  .daystrip{overflow-x:auto;scroll-snap-type:x mandatory}
  .daystrip .card{min-width:236px;scroll-snap-align:start}
  .card.future{width:100%;margin-left:0;margin-top:9px}
  .lower{flex-direction:column}
  .due{width:110px}
  .mlist{padding-left:24px}
  .task{padding:7px 9px}           /* touch targets back up on phone */
  .box{width:16px;height:16px}
  .when{opacity:1;border-color:var(--rule)}  /* no hover on touch — always visible */
}

/* ================= the phone layout (spec §7.9, decision 52) =================
   The LOCKED phone design: Today-first day carousel with edge-to-edge day
   pills, Cal + Today in the DAYS header, Routines/People/Notes collapsible
   (default shut — a phone-only unlock of decision 4), a bottom jump bar,
   and capture via a floating + opening a bottom sheet. Reference:
   design/phone-a-carousel.html (four rounds on Nick's actual phone). */
@media(max-width:700px){
  .wrap{padding:0 12px 96px}       /* room for the jump bar */
  header{gap:10px}
  header .hint,.themebtn,#addanchor{display:none}   /* theme lives in Settings */

  /* DAYS header: Cal + Today only — day/week steps live on the pills */
  #prev,#next,#prevwk,#nextwk,#range{display:none}

  /* « + five equal-width day pills + » spread edge to edge: flex:1 with
     basis 0 sizes every pill from the SCREEN, not the text, so M7 and M14
     sit centered in identical boxes (round 3–4 feedback) */
  #pills{display:flex;gap:6px;margin-bottom:8px;align-items:stretch}
  .pill{
    flex:1 1 0;min-width:0;text-align:center;font-family:var(--mono);font-size:12.5px;
    color:var(--txt2);padding:8px 0;border:1px solid var(--rule);border-radius:14px;
    background:var(--surface);
  }
  .pill.on{color:var(--accent);border-color:var(--accent);background:var(--tint);font-weight:600}
  .pill.nav{flex:0 0 40px;font-weight:600;font-size:14px}
  .pill.dropover{border-color:var(--accent);background:var(--tint)}

  /* the day carousel: one full-width card, siblings translated offscreen */
  .days{flex-direction:column}
  .daystrip{overflow:hidden;touch-action:pan-y}
  .daystrip .card{flex:0 0 100%;min-width:0;border-right:none}

  /* Future below the strip, a horizontal bar when shut */
  .card.future{width:100%;margin-left:0;margin-top:9px}
  .card.future.shut{width:100%;padding-bottom:0}
  .card.future.shut .chead{flex-direction:row;align-items:baseline;gap:7px;padding:8px 10px;height:auto}
  .card.future.shut .d{writing-mode:horizontal-tb;transform:none;letter-spacing:.14em}
  .card.future.shut .n{margin-left:auto}

  /* touch-sized rows (spec §4.6: phone rows grow, bigger checkboxes) */
  .task{padding:8px 9px}
  .box{width:18px;height:18px;margin-top:0}
  .ttl{font-size:14px}
  .when{opacity:1;border-color:var(--rule)}
  .plus{opacity:1}
  .chips{margin-left:26px}
  .subs{margin-left:26px}
  .ted{margin-left:0}
  /* 16px inputs so phone browsers don't zoom the page on focus */
  #add,.ted input[type=text],.ted textarea,#histsearch,#timepick input{font-size:16px}
  /* hold-to-drag: a long-press must not start a text selection or callout */
  .task,.rrow{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
  .task .ted,.task .ted *{-webkit-user-select:auto;user-select:auto}

  /* collapsible bands (phone-only unlock of decision 4): the header is the
     tap target; shut hides everything but the header and shows the count */
  .lower{flex-direction:column;align-items:stretch}   /* desktop's flex-start would size bands to content */
  #rsec .shead,#psec .shead,#nsec .shead{cursor:pointer}
  #rsec .shead h2::before,#psec .shead h2::before,#nsec .shead h2::before{
    content:"\25BE";margin-right:6px;color:var(--dim);font-size:9px}
  #rsec.bandshut .shead h2::before,#psec.bandshut .shead h2::before,#nsec.bandshut .shead h2::before{
    content:"\25B8"}
  #rsec.bandshut > :not(.shead),#psec.bandshut > :not(.shead),#nsec.bandshut > :not(.shead){display:none}
  .phc{display:inline}
  .deskmeta{display:none}
  /* open bands show their real controls, shut ones just the count */
  #rsec:not(.bandshut) #routcount{display:none}
  #rsec.bandshut #rweek,#rsec.bandshut #addroutine{display:none}
  .legend{display:none}
  .due{width:110px}
  .mlist{padding-left:24px}

  /* the routines status zone tightens so name + squares fit a phone width */
  .gcols,.sq{width:150px;padding-left:8px}
  .sq button{width:24px;height:22px}

  /* the month calendar becomes a bottom sheet: tap a date, land on its card */
  .calview{
    position:fixed;left:0;right:0;bottom:0;z-index:75;margin:0;
    max-height:75vh;overflow:auto;border-radius:8px 8px 0 0;
    border-left:none;border-right:none;border-bottom:none;
    padding-bottom:calc(12px + env(safe-area-inset-bottom));
  }
  .cvcell{min-height:42px;padding:2px 0 4px;text-align:center}
  .cvit,.cvmore{display:none}
  .cvnum{margin:0;font-size:13px}

  /* the floating + (above the jump bar) and the capture sheet */
  #fab{
    display:flex;align-items:center;justify-content:center;position:fixed;
    right:14px;bottom:calc(64px + env(safe-area-inset-bottom));z-index:71;
    width:52px;height:52px;border-radius:50%;background:var(--accent);color:#fff;
    font-size:26px;line-height:1;box-shadow:0 4px 14px var(--shadow);
  }
  /* a small Note button in thumb reach above the + — the card's own
     Task/Note switch sits at the top of the screen, too far for a quick
     mode change (Nick, Aug 8). A smaller circle with a drawn note glyph,
     lifted well clear of the + so reaching for one can't hit the other.
     Grey, not blue: notes aren't time (§4.2). */
  #fabnote{
    display:flex;align-items:center;justify-content:center;position:fixed;
    right:22px;bottom:calc(130px + env(safe-area-inset-bottom));z-index:71;
    width:36px;height:36px;border-radius:50%;
    background:var(--edge);border:none;color:#fff;
    box-shadow:0 3px 10px var(--shadow);
  }
  body.offpage #fabnote{display:none}
  #sheetbg.on{display:block;position:fixed;inset:0;background:rgba(0,0,0,.25);z-index:72}
  /* the capture card docks at the TOP — the keyboard owns the bottom of a
     phone screen and the two must never meet (revised decision 52). It
     fades in place (~100ms, the design's fade budget); hidden = opacity 0,
     NOT visibility, so the input stays focusable for the opening tap. */
  #addsheet{
    display:block;position:fixed;left:0;right:0;top:0;z-index:75;
    background:var(--surface);border-bottom:1px solid var(--rule);
    border-radius:0 0 8px 8px;padding:calc(12px + env(safe-area-inset-top)) 16px 16px;
    opacity:0;pointer-events:none;transform:translateY(-10px);
    transition:opacity 100ms ease,transform 100ms ease;
  }
  #addsheet.on{opacity:1;pointer-events:auto;transform:none}
  .kind{display:flex;gap:8px;margin-bottom:12px}
  .kind button{
    font-size:12px;font-weight:600;color:var(--dim);padding:6px 14px;
    border:1px solid var(--rule);border-radius:14px;background:var(--surface);
  }
  .kind button.on{color:var(--accent);border-color:var(--accent);background:var(--tint)}
  .sheetrow{display:flex;gap:10px;align-items:stretch}
  #sheetslot{flex:1;min-width:0;display:block}
  #sheetslot #add{padding:11px 12px}
  #sheetadd{background:var(--accent);color:#fff;font-weight:600;padding:0 20px;border-radius:3px}
  /* the pending day/time/person chips move ABOVE the input — overlaid on
     the right they ate a third of a phone-width text box */
  #addsheet .addwrap{display:flex;flex-direction:column-reverse}
  #addsheet .addchips{position:static;transform:none;margin:0 0 7px;justify-content:flex-start}
  #addsheet .daychip{font-size:12px;padding:2px 8px}
  /* with the card at the top, the // @ menu and note strip open DOWNWARD
     (their default) into the free space between card and keyboard */
  /* + Note: the phone's Tab-to-note (§7.2) — quiet and dashed so it reads
     as an optional extra, not a second submit. Hidden while the strip is
     open (JS) and in Note mode; the strip closes the desktop ways. */
  #addnotebtn{
    display:block;margin-top:10px;font-size:12px;color:var(--dim);
    border:1px dashed var(--rule);border-radius:3px;padding:5px 14px;
    background:none;
  }

  /* the jump bar: thumb-height, expands a shut band and scrolls to it */
  #jumpbar{
    display:flex;position:fixed;left:0;right:0;bottom:0;z-index:70;
    background:var(--surface);border-top:1px solid var(--rule);
    padding:6px 6px calc(6px + env(safe-area-inset-bottom));
  }
  #jumpbar button{
    flex:1;font-size:10.5px;letter-spacing:.08em;font-weight:600;color:var(--dim);
    padding:10px 0;border-radius:3px;
  }
  #jumpbar button.on{color:var(--accent);background:var(--tint)}
  /* History / Settings replace the board — hide board-only chrome there */
  body.offpage #jumpbar,body.offpage #fab{display:none}

  /* strips clear the jump bar */
  #undo{left:10px;bottom:calc(64px + env(safe-area-inset-bottom))}
  #syncerr{right:10px;bottom:calc(64px + env(safe-area-inset-bottom))}
}

/* ================= Phase 5: drag and drop (spec §9) ================= */
/* the ghost — the dragged row travelling with the pointer */
#dragghost{
  position:fixed;left:0;top:0;z-index:90;pointer-events:none;
  background:var(--surface);border:1px solid var(--rule);border-radius:3px;
  box-shadow:0 6px 18px rgba(0,0,0,.18);opacity:.95;
}
#dragghost .task{border-bottom:none}
/* the source row stays put, dimmed, while its ghost travels */
.task.dragsrc{opacity:.35}
/* the insertion indicator — a cursor, and the cursor is blue (§4.2) */
#dropline{
  position:fixed;display:none;z-index:89;pointer-events:none;
  height:2px;background:var(--accent);border-radius:1px;
}
/* the drop target under the pointer — same wash the keyboard cursor uses */
.card.dropover{background:var(--sel)}
body.dragging{user-select:none;cursor:grabbing}
/* while panning, the sliding cards clip at the strip's edge instead of
   riding over the Future rail */
body.panning .daystrip{overflow:hidden}
