/* To Do's - lifted out of index.html with the screen. v1226 */
.td-top{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin:4px 0 14px; }
.td-title{ font-size:20px; font-weight:900; color:var(--navy); margin:0; }
.td-tabs{ display:flex; gap:7px; flex-wrap:wrap; min-width:0; }   /* wraps on a phone instead of pushing the page sideways. v1747 */
.td-tabs .td-btn{ white-space:nowrap; }
.td-err{ background:#fdecea; border:1px solid #f3c2bd; color:#a03028; border-radius:10px; padding:9px 12px; font-weight:700; }
.td-btn{ height:36px; padding:0 13px; border-radius:9px; border:1px solid var(--line); background:#fff;
  font:inherit; font-weight:800; font-size:12.5px; color:var(--navy); cursor:pointer; }
.td-btn.td-go{ background:var(--royal); border-color:var(--royal); color:#fff; }
.td-btn.td-no{ color:#c0392b; }
.td-sec{ margin-bottom:20px; }
.td-h{ font-size:13px; font-weight:900; color:var(--navy); text-transform:uppercase; letter-spacing:.03em; margin-bottom:8px; }
.td-subh{ color:var(--muted); font-size:12.5px; margin:-4px 0 10px; }
.td-sec-late .td-h{ color:#a35a12; }
.td-row{ display:flex; align-items:center; gap:10px; background:#fff; border:1px solid var(--line);
  border-radius:12px; padding:10px 13px; margin-bottom:8px; }
.td-row.td-late{ border-left:4px solid var(--orange); background:#fff8f0; }
.td-row.td-wait{ border-left:4px solid var(--purple); }
.td-row.td-done{ opacity:.62; }
.td-late-tag{ background:var(--orange); color:#fff; font-size:10.5px; font-weight:900; text-transform:uppercase;
  letter-spacing:.04em; padding:3px 7px; border-radius:6px; flex:none; }
.td-main{ flex:1; min-width:0; }
.td-nm{ font-weight:900; color:var(--royal); cursor:pointer; }
.td-sub{ font-size:12px; color:var(--muted); font-weight:700; margin-top:1px; }
.td-acts{ display:flex; gap:7px; flex:none; }
.td-tag{ font-size:11.5px; font-weight:800; padding:4px 9px; border-radius:7px; }
.td-tag-ok{ background:#eaf7e3; color:#3d8526; }
.td-tag-wait{ background:#f1ecfd; color:var(--purple); }
.td-mnav{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:9px; }
.td-mnav b{ font-size:15px; color:var(--navy); }
.td-mhead{ display:grid; grid-template-columns:repeat(7,1fr); gap:5px; margin-bottom:5px; }
.td-mhead span{ font-size:11px; font-weight:900; color:var(--muted); text-align:center; text-transform:uppercase; }
.td-grid{ display:grid; grid-template-columns:repeat(7,1fr); gap:5px; }
.td-cell{ background:#fff; border:1px solid var(--line); border-radius:9px; min-height:86px; padding:5px 6px; cursor:pointer; }
.td-cell.td-blank{ background:transparent; border:0; cursor:default; }
.td-cell.td-now{ border-color:var(--royal); box-shadow:inset 0 0 0 1px var(--royal); }
.td-cell.td-cell-late{ background:#fff8f0; }
.td-dnum{ font-size:11.5px; font-weight:900; color:var(--navy); margin-bottom:3px; }
.td-chip{ font-size:10.5px; font-weight:700; background:#eef1fb; color:var(--navy); border-radius:5px;
  padding:2px 5px; margin-bottom:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.td-chip-late{ background:#fae3cd; color:#a35a12; }
.td-chip-done{ background:#eaf7e3; color:#3d8526; }
.td-more{ font-size:10px; font-weight:800; color:var(--muted); }
.td-card{ background:#fff; border:1px solid var(--line); border-radius:14px; padding:14px; margin-bottom:18px; }
.td-card-h{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }
.td-card-h b{ font-size:16px; color:var(--navy); }
.td-card-f{ display:flex; gap:8px; margin-top:13px; }
.td-meta{ font-size:12.5px; color:var(--muted); font-weight:700; margin-bottom:8px; }
.td-det{ font-size:13.5px; color:var(--navy); white-space:pre-wrap; margin:0 0 9px; }
.td-link{ color:var(--royal); font-weight:800; word-break:break-all; }
.td-vid{ position:relative; padding-top:56.25%; border-radius:11px; overflow:hidden; margin:10px 0; }
.td-vid iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }
.td-lab{ display:block; font-size:11.5px; font-weight:900; color:var(--muted); margin:11px 0 4px; text-transform:uppercase; }
.td-in{ width:100%; height:36px; padding:0 11px; border:1px solid var(--line); border-radius:9px; font:inherit; font-size:13.5px; color:var(--navy); background:#fff; }
.td-in.td-area{ height:auto; min-height:64px; padding:9px 11px; resize:vertical; }
.td-in.td-nar{ width:150px; }
.td-two{ display:flex; gap:8px; }
.td-two .td-in{ flex:1; }
.td-days, .td-whos{ display:flex; gap:6px; flex-wrap:wrap; }
.td-day, .td-who{ height:36px; padding:0 12px; border-radius:9px; border:1px solid var(--line);
  background:#fff; font:inherit; font-weight:800; font-size:12.5px; color:var(--navy); cursor:pointer; }
.td-day.on, .td-who.on{ background:var(--royal); border-color:var(--royal); color:#fff; }
.td-chk{ display:flex; align-items:center; gap:8px; margin-top:13px; font-size:13px; font-weight:700; color:var(--navy); }
@media(max-width:760px){
  .td-cell{ min-height:66px; }
  .td-row{ flex-wrap:wrap; }
  .td-acts{ width:100%; }
  .td-acts .td-btn{ flex:1; }
}
.td-pickrow{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.td-picked{ font-size:12.5px; font-weight:700; color:var(--muted); }
.td-pics{ display:flex; gap:8px; flex-wrap:wrap; margin:10px 0; }
.td-pic{ position:relative; display:inline-block; width:92px; height:92px; border-radius:10px;
  overflow:hidden; border:1px solid var(--line); background:var(--field); }
.td-pic img{ width:100%; height:100%; object-fit:cover; display:block; }
.td-pic-wait{ display:flex; align-items:center; justify-content:center; width:100%; height:100%;
  font-size:11px; font-weight:800; color:var(--muted); }
.td-picx{ position:absolute; right:0; bottom:0; border:0; background:rgba(22,36,107,.82); color:#fff;
  font:inherit; font-weight:800; font-size:10.5px; padding:3px 7px; cursor:pointer; }

/* the form as a card that pops over the screen, a little tighter than the page */
.td-veil{ position:fixed; inset:0; background:rgba(16,22,48,.44); z-index:60; }
.td-pop{ position:fixed; inset:0; z-index:61; display:flex; align-items:flex-start;
  justify-content:center; padding:44px 16px; overflow:auto; pointer-events:none; }
.td-card-pop{ pointer-events:auto; width:100%; max-width:560px; margin:0;
  box-shadow:0 26px 70px rgba(16,22,48,.3); border-radius:18px; padding:18px 20px 20px; }
.td-card-pop .td-lab{ margin:9px 0 3px; font-size:11px; }
.td-card-pop .td-in{ height:34px; font-size:13px; }
.td-card-pop .td-in.td-area{ min-height:56px; }
.td-card-pop .td-day, .td-card-pop .td-who{ height:32px; padding:0 10px; font-size:12px; }
.td-card-pop .td-btn{ height:34px; }
.td-card-pop .td-card-h{ margin-bottom:6px; }
.td-card-pop .td-card-f{ margin-top:16px; position:sticky; bottom:-20px; background:#fff;
  padding:12px 0 2px; border-top:1px solid var(--line); }

/* who a task belongs to, read off the edge of the row */
.td-bar{ display:flex; flex-direction:column; width:5px; align-self:stretch; min-height:34px;
  border-radius:999px; overflow:hidden; flex:none; margin:-2px 2px -2px -4px; }
.td-bar i{ flex:1; display:block; }
.td-bar-none{ background:var(--line); }
.td-dot{ display:inline-block; width:8px; height:8px; border-radius:999px; margin-right:5px;
  vertical-align:middle; }
.td-row{ position:relative; }
.td-row.td-appr{ padding-right:20px; }
.td-apprbar{ position:absolute; right:0; top:0; bottom:0; width:7px; background:var(--purple);
  border-radius:0 12px 12px 0; }
.td-chip{ border-left:3px solid transparent; }
.td-chip-appr{ box-shadow:inset -3px 0 0 var(--purple); }
.td-vidbad{ font-size:12.5px; font-weight:700; color:#a35a12; background:#fff8f0;
  border:1px solid #f0d8bd; border-radius:9px; padding:8px 11px; }
.td-page .td-grid{ gap:6px; }

/* sections, and a cleaner read down the day */
.td-gh{ font-size:11.5px; font-weight:900; color:var(--royal); text-transform:uppercase;
  letter-spacing:.05em; margin:16px 0 7px; padding-bottom:5px; border-bottom:2px solid #e2e8fb; }
.td-gh:first-child{ margin-top:2px; }
.td-gh-none{ color:var(--muted); border-bottom-color:var(--line); }
.td-sectag{ display:inline-block; background:#eef1fb; color:var(--royal); font-size:11px;
  font-weight:900; border-radius:6px; padding:2px 7px; margin-right:7px; }
.td-secrow{ display:flex; gap:7px; align-items:center; margin-bottom:7px; }
.td-secrow .td-in{ flex:1; }
.td-row{ transition:border-color .12s ease, box-shadow .12s ease; }
.td-row:hover{ border-color:#c8d4f0; box-shadow:0 4px 14px rgba(22,36,107,.07); }
.td-nm{ font-size:14px; letter-spacing:-.01em; }
.td-sec .td-h{ padding-bottom:6px; border-bottom:1px solid var(--line); }
.td-tabs .td-btn{ box-shadow:0 1px 2px rgba(22,36,107,.05); }

/* the date leads the day */
.td-dayhead{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; background:#fff;
  border:1px solid var(--line); border-radius:14px; padding:12px 14px; margin-bottom:16px; }
.td-dayname{ display:flex; flex-direction:column; line-height:1.15; margin-right:2px; }
.td-dayname b{ font-size:19px; font-weight:900; color:var(--navy); letter-spacing:-.02em; }
.td-dayname span{ font-size:12.5px; font-weight:700; color:var(--muted); }
.td-step{ width:36px; height:36px; border-radius:10px; border:1px solid var(--line); background:#fff;
  font:inherit; font-size:19px; line-height:1; font-weight:800; color:var(--navy); cursor:pointer; }
.td-step:hover{ border-color:#c8d4f0; }
.td-daycount{ margin-left:auto; background:#eef1fb; color:var(--royal); font-size:12px;
  font-weight:900; border-radius:999px; padding:6px 12px; }

/* one switch instead of three loose buttons */
.td-seg{ display:inline-flex; background:var(--field); border:1px solid var(--line);
  border-radius:11px; padding:3px; gap:2px; }
.td-segb{ height:30px; padding:0 14px; border:0; border-radius:8px; background:transparent;
  font:inherit; font-weight:800; font-size:12.5px; color:var(--muted); cursor:pointer; }
.td-segb.on{ background:#fff; color:var(--navy); box-shadow:0 1px 3px rgba(22,36,107,.13); }
.td-btn:hover{ border-color:#c8d4f0; }
.td-btn.td-go:hover{ background:var(--royal-dark); border-color:var(--royal-dark); }

/* the week */
.td-week{ display:grid; grid-template-columns:repeat(7,1fr); gap:6px; }
.td-wcol{ background:#fff; border:1px solid var(--line); border-radius:11px; padding:8px 7px;
  min-height:150px; cursor:pointer; }
.td-wcol:hover{ border-color:#c8d4f0; }
.td-wnow{ border-color:var(--royal); box-shadow:inset 0 0 0 1px var(--royal); }
.td-wlate{ background:#fff8f0; }
.td-wh{ display:flex; align-items:baseline; gap:6px; margin-bottom:2px; }
.td-wh b{ font-size:11px; font-weight:900; color:var(--muted); text-transform:uppercase; }
.td-wh span{ font-size:15px; font-weight:900; color:var(--navy); }
.td-wn{ font-size:10.5px; font-weight:800; color:var(--muted); margin-bottom:6px; }
@media(max-width:860px){
  .td-week{ grid-template-columns:repeat(2,1fr); }
  .td-wcol{ min-height:auto; }
}

/* tighter rows, more on a screen */
.td-row{ padding:7px 11px; margin-bottom:5px; gap:8px; }
.td-nm{ font-size:13.5px; }
.td-sub{ font-size:11.5px; }
.td-bar{ min-height:26px; }
.td-btn{ height:32px; padding:0 11px; font-size:12px; }
.td-tag{ padding:3px 8px; }
.td-gh{ margin:13px 0 6px; }

/* the section picker that lives on the row */
.td-rowsec{ height:32px; border:1px solid var(--line); border-radius:8px; background:#fff;
  font:inherit; font-size:12px; font-weight:700; color:var(--navy); padding:0 7px; max-width:150px; }

/* dragging */
[data-tdrow]{ cursor:grab; }
.td-dragging{ opacity:.45; }
.td-over{ outline:2px dashed var(--royal); outline-offset:2px; }
.td-gh.td-over{ background:#eef1fb; }

/* the week runs as deep as the day needs */
.td-wcol{ min-height:120px; }
.td-week .td-chip{ white-space:normal; }

/* the grip is what drags, so the controls on the row still work */
.td-grip{ color:#b9c2d6; font-size:13px; letter-spacing:-3px; cursor:grab; flex:none;
  padding:0 3px; user-select:none; }
.td-grip:active{ cursor:grabbing; }
[data-tdrow]{ cursor:default; }
.td-chip-go{ cursor:pointer; }
.td-chip-go:hover{ filter:brightness(.96); }
/* the card sits under the row it belongs to */
.td-card{ margin:-2px 0 12px; }

/* dragging with a pointer, so it works on a phone too */
.td-ghost{ position:fixed; z-index:90; pointer-events:none; transform:translate(10px,10px);
  background:var(--royal); color:#fff; font-size:12px; font-weight:800; padding:6px 11px;
  border-radius:9px; max-width:260px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis;
  box-shadow:0 8px 22px rgba(22,36,107,.3); }
.td-grip{ touch-action:none; }
.td-gh{ display:flex; align-items:center; gap:7px; }
.td-gh .td-grip{ color:#9fb0d4; }
.td-noterow{ display:flex; align-items:center; gap:10px; margin-top:7px; }
.td-noteok{ font-size:12px; font-weight:800; color:#3d8526; }
.td-gh-rem{ color:var(--orange); border-bottom-color:#f3ddc4; }

/* compact: a box to tick, the name, the color. Roughly double fits a screen. */
.td-row.td-tight{ padding:4px 9px; margin-bottom:3px; min-height:32px; align-items:center; gap:7px; }
.td-tight .td-nm{ font-size:13px; }
.td-tight .td-main{ min-width:0; }
.td-tight .td-bar{ min-height:20px; width:3px; }
.td-tight .td-grip,
.td-tight .td-rowsec{ opacity:0; transition:opacity .1s ease; }
.td-tight:hover .td-grip,
.td-tight:hover .td-rowsec,
.td-tight:focus-within .td-grip,
.td-tight:focus-within .td-rowsec{ opacity:1; }
.td-tight .td-rowsec{ height:26px; font-size:11px; max-width:124px; }
@media(hover:none){ .td-tight .td-grip, .td-tight .td-rowsec{ opacity:1; } }
.td-box{ width:19px; height:19px; flex:none; border:2px solid #c3cde3; border-radius:6px;
  background:#fff; cursor:pointer; font:inherit; font-size:12px; font-weight:900; line-height:1;
  color:#fff; padding:0; }
.td-box:hover{ border-color:var(--royal); }
.td-box-on{ background:var(--green); border-color:var(--green); }
.td-box-wait{ background:#f3ddc4; border-color:var(--orange); color:var(--orange);
  display:flex; align-items:center; justify-content:center; cursor:default; }
.td-gcount{ margin-left:auto; background:#eef1fb; color:var(--royal); font-size:10.5px;
  font-weight:900; border-radius:999px; padding:2px 8px; }
.td-caret{ font-size:10px; margin-right:5px; color:var(--muted); }
.td-gh a{ cursor:pointer; color:inherit; }

/* tick off a whole section at once */
.td-all{ margin-left:auto; height:26px; padding:0 10px; border-radius:8px; border:1px solid var(--line);
  background:#fff; color:var(--royal); font:inherit; font-weight:800; font-size:11px; cursor:pointer; }
.td-all:hover{ border-color:#c8d4f0; background:#f5f8ff; }
.td-h{ display:flex; align-items:center; gap:8px; }
