/* The Deadlines page.
 *
 * Sits on top of msz-dash.css, which dresses the dark header, the row of tabs,
 * the ring and the gate exactly as the boards have them. Everything here is new
 * and prefixed dl-, because msz-dash.css already owns short names like .chip,
 * .tabs and .block and this page must not inherit their rules by accident.
 *
 * The one bold thing is the road to the event: the committee's milestones as
 * stops on a line, the planning stretch in green and the event itself in ink,
 * today marked where it falls, and the next stop drawn large. Everything around
 * it stays quiet. The composer's own device is the invitation preview beside
 * it, which shows what Google will send before anything is sent.
 *
 * Built for a laptop and a phone: 16px fields (iOS zooms on anything smaller),
 * 44px targets, the road turning from a line across the page into a line down
 * it, and sheets that rise from the bottom on a phone. */

.msz-dl {
  --plan:#427d46; --plan-deep:#336137; --plan-wash:#ecf2ec; --plan-line:#cfe0cc;
  --ev:#121309; --ev-wash:#ecedea;
  --post:#8a6a1d;
  --paper:#fff; --rule:#e9ebe5;
}

/* Themes style bare controls -- uppercase buttons, coloured fills, input
   borders -- and they print after this sheet. Two classes put these back on
   our side of that argument. */
.msz-dash.msz-dl button,.msz-dash.msz-dl input,.msz-dash.msz-dl select,
.msz-dash.msz-dl textarea { font:inherit; color:inherit; margin:0;
  letter-spacing:normal; text-transform:none; text-shadow:none; box-shadow:none;
  min-height:0; line-height:1.3; }
.msz-dash.msz-dl button { cursor:pointer; background:none; border:0;
  padding:0; border-radius:0; width:auto; -webkit-tap-highlight-color:transparent; }
.msz-dash.msz-dl button:disabled { cursor:default; opacity:.55; }
.msz-dash.msz-dl [hidden] { display:none !important; }
.msz-dash.msz-dl a { color:inherit; }
.msz-dl .dl-app svg,.msz-dl .dl-sheet svg,.msz-dl .dl-toast svg {
  width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8;
  stroke-linecap:round; stroke-linejoin:round; flex:0 0 auto; }
.msz-dl :focus-visible { outline:3px solid rgba(66,125,70,.45); outline-offset:2px; }
.msz-dl .rk { max-width:92px; text-align:center; line-height:1.3; }
.msz-dl .dl-app { max-width:1180px; margin:0 auto; display:grid; grid-template-columns:minmax(0,1fr); gap:22px; }
/* A road longer than the page scrolls inside its own track, not the page. */
.msz-dl .dl-app > * { min-width:0; }
.msz-dl .dl-chip span { max-width:200px; }

/* Text fields, all 16px and up so iOS does not zoom into them. */
.msz-dash.msz-dl input[type="text"],.msz-dash.msz-dl input[type="email"],
.msz-dash.msz-dl input[type="date"],.msz-dash.msz-dl input[type="time"],
.msz-dash.msz-dl textarea { display:block; width:100%; font-size:16px;
  background:#fff; border:1.5px solid var(--line); border-radius:11px;
  padding:10px 12px; height:46px; color:var(--ink);
  transition:border-color .15s, box-shadow .15s; }
.msz-dash.msz-dl textarea { height:auto; min-height:84px; resize:vertical; line-height:1.45; }
.msz-dash.msz-dl input::placeholder,.msz-dash.msz-dl textarea::placeholder { color:#9da197; }
.msz-dash.msz-dl input:focus,.msz-dash.msz-dl textarea:focus { outline:none;
  border-color:var(--plan); box-shadow:0 0 0 3px rgba(66,125,70,.16); }
.msz-dash.msz-dl input[type="checkbox"] { width:20px; height:20px; accent-color:var(--plan-deep);
  flex:0 0 auto; cursor:pointer; }

/* ------------------------------------------------------------ buttons -- */

.msz-dash.msz-dl .dl-btn { display:inline-flex; align-items:center; gap:7px;
  height:44px; padding:0 16px; border-radius:11px; border:1.5px solid var(--line);
  background:#fff; color:var(--ink); font-size:14.5px; font-weight:700;
  text-decoration:none; white-space:nowrap; transition:border-color .15s, background .15s; }
.msz-dash.msz-dl .dl-btn.strong { background:var(--plan-deep); border-color:var(--plan-deep); color:#fff; }
.msz-dash.msz-dl .dl-btn.sm { height:36px; padding:0 12px; font-size:13.5px; border-radius:9px; }
.msz-dash.msz-dl .dl-btn.quiet { border-color:transparent; color:var(--muted); padding:0 8px; }
.msz-dl .dl-btn svg { width:17px; height:17px; }
.msz-dash.msz-dl .dl-primary { display:inline-flex; align-items:center; justify-content:center;
  gap:9px; height:50px; padding:0 24px; border-radius:12px; background:var(--plan-deep);
  color:#fff; font-size:15.5px; font-weight:700; white-space:nowrap;
  transition:background .15s, transform .1s; }
.msz-dash.msz-dl .dl-primary:active { transform:scale(.98); }
.msz-dash.msz-dl .dl-primary.danger { background:var(--alert); }
.msz-dl .dl-primary svg { width:19px; height:19px; stroke-width:2.1; }
.msz-dash.msz-dl .dl-linkbtn { display:inline-flex; align-items:center; gap:6px;
  color:var(--plan-deep); font-weight:700; font-size:14px;
  text-decoration:underline; text-underline-offset:3px; min-height:36px; }
.msz-dash.msz-dl .dl-linkbtn.danger { color:var(--alert); }
.msz-dl .dl-linkbtn svg { width:17px; height:17px; }
@media (hover:hover) {
  .msz-dash.msz-dl .dl-btn:hover:not(:disabled) { border-color:#b9bdb4; }
  .msz-dash.msz-dl .dl-btn.strong:hover:not(:disabled) { background:var(--ink); border-color:var(--ink); }
  .msz-dash.msz-dl .dl-btn.quiet:hover:not(:disabled) { color:var(--ink); background:var(--canvas); }
  .msz-dash.msz-dl .dl-primary:hover:not(:disabled) { background:var(--ink); }
  .msz-dash.msz-dl .dl-primary.danger:hover:not(:disabled) { background:#5a1313; }
  .msz-dash.msz-dl .dl-linkbtn:hover { color:var(--ink); }
}

/* The date, as a leaf torn off a desk calendar. */
.msz-dl .dl-leaf { display:inline-flex; flex-direction:column; align-items:center;
  justify-content:center; width:54px; padding:4px 0 5px; border-radius:10px;
  background:#fff; border:1.5px solid var(--ink); line-height:1.05; flex:0 0 auto;
  font-variant-numeric:tabular-nums; }
.msz-dl .dl-leaf i { font-style:normal; font-size:11px; font-weight:700; color:var(--muted); }
.msz-dl .dl-leaf b { font-size:22px; font-weight:800; letter-spacing:-.03em; color:var(--ink); margin:1px 0; }
.msz-dl .dl-leaf.sm { width:50px; }
.msz-dl .dl-leaf.sm b { font-size:20px; }
.msz-dl .dl-leaf.lg { width:70px; padding:6px 0 7px; border-radius:12px; border-width:2px; }
.msz-dl .dl-leaf.lg b { font-size:30px; }
.msz-dl .dl-leaf.lg i { font-size:12px; }
.msz-dl .dl-leaf.blank { border-style:dashed; border-color:#b9bdb4; }
.msz-dl .dl-leaf.blank b { color:#b9bdb4; }

/* ------------------------------------------------------------ section -- */

.msz-dl .dl-sechead { display:flex; align-items:center; gap:14px; flex-wrap:wrap;
  margin:0 0 16px; }
.msz-dl .dl-sechead h2 { display:flex; align-items:center; gap:10px; margin:0;
  font-size:21px; font-weight:800; letter-spacing:-.02em; color:var(--ink); flex:1 1 auto; }
.msz-dl .dl-sechead h2 svg { width:22px; height:22px; color:var(--plan-deep); }
.msz-dl .dl-legend { display:flex; gap:16px; margin:0; font-size:13px; color:var(--muted); font-weight:600; }
.msz-dl .dl-legend .lg { display:inline-flex; align-items:center; gap:7px; }
.msz-dl .dl-legend .lg::before { content:''; width:22px; height:4px; border-radius:4px; background:var(--plan); }
.msz-dl .dl-legend .lg.lg-ev::before { background:var(--ev); }
.msz-dl .dl-legend .lg.lg-after::before { background:var(--post); }

.msz-dl .dl-banner { display:flex; align-items:flex-start; gap:10px; flex-wrap:wrap; margin:0;
  padding:12px 16px; border-radius:12px; background:var(--warn-wash); color:var(--warn);
  font-size:14px; font-weight:600; line-height:1.5; }
.msz-dl .dl-banner > span { flex:1 1 360px; }
.msz-dl .dl-banner a { text-decoration:underline; text-underline-offset:2px; }
.msz-dash.msz-dl .dl-banner .dl-linkbtn { color:var(--warn); min-height:0; }

/* ----------------------------------------------------------- composer -- */

.msz-dl .dl-compose { background:var(--paper); border:1px solid var(--line);
  border-radius:18px; box-shadow:var(--lift-hi); padding:22px 24px 20px; }
.msz-dl .dl-composehead { display:flex; align-items:center; gap:14px; flex-wrap:wrap;
  margin:0 0 18px; }
.msz-dl .dl-composehead h2 { margin:0; flex:1 1 auto; font-size:23px; font-weight:800;
  letter-spacing:-.022em; color:var(--ink); line-height:1.2; }
.msz-dl .dl-composegrid { display:grid; grid-template-columns:minmax(0,1fr) 330px; gap:26px; }
.msz-dl .dl-fields { display:grid; gap:18px; min-width:0; }
.msz-dl .dl-field { display:block; border:0; padding:0; margin:0; min-width:0; }
.msz-dl .dl-field legend,.msz-dl .dl-label { display:block; font-size:13.5px; font-weight:700;
  color:var(--ink); margin:0 0 8px; padding:0; }

.msz-dl .dl-kinds { display:flex; flex-wrap:wrap; gap:7px; }
.msz-dash.msz-dl .dl-kindbtn { display:inline-flex; align-items:center; gap:7px; height:42px;
  padding:0 14px 0 11px; border-radius:99px; border:1.5px solid var(--line); background:#fff;
  font-size:14px; font-weight:700; color:#3d403a; transition:background .15s, border-color .15s, color .15s; }
.msz-dl .dl-kindbtn svg { width:18px; height:18px; color:var(--plan-deep); }
.msz-dl .dl-kindbtn.ph-event svg { color:var(--ev); }
.msz-dash.msz-dl .dl-kindbtn.on { background:var(--plan-deep); border-color:var(--plan-deep); color:#fff; }
.msz-dash.msz-dl .dl-kindbtn.ph-event.on { background:var(--ev); border-color:var(--ev); }
.msz-dl .dl-kindbtn.on svg { color:#fff; }
@media (hover:hover) {
  .msz-dash.msz-dl .dl-kindbtn:not(.on):hover { border-color:#b9bdb4; color:var(--ink); }
}

.msz-dash.msz-dl .dl-title { font-size:20px; font-weight:600; height:54px; padding:10px 14px; }

.msz-dl .dl-when { display:grid; grid-template-columns:minmax(0,200px) minmax(0,1fr); gap:16px; align-items:start; }
.msz-dl .dl-timefield { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.msz-dl .dl-timefield .dl-label { flex:0 0 100%; }
.msz-dl .dl-timeswitch { display:inline-flex; background:var(--canvas); border-radius:11px; padding:3px; }
.msz-dash.msz-dl .dl-tsw { height:40px; padding:0 14px; border-radius:9px; font-size:14px;
  font-weight:700; color:var(--muted); }
.msz-dash.msz-dl .dl-tsw.on { background:#fff; color:var(--ink); box-shadow:0 1px 3px rgba(18,19,9,.12); }
.msz-dl .dl-times { display:inline-flex; align-items:center; gap:8px; }
.msz-dash.msz-dl .dl-times input { width:132px; }
.msz-dl .dl-to { font-size:14px; color:var(--muted); }

.msz-dl .dl-auds { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.msz-dash.msz-dl .dl-aud { display:flex; flex-direction:column; align-items:flex-start; gap:2px;
  text-align:left; padding:11px 13px; min-height:60px; border-radius:12px;
  border:1.5px solid var(--line); background:#fff; transition:border-color .15s, background .15s; }
.msz-dl .dl-aud b { font-size:14.5px; font-weight:800; color:var(--ink); }
.msz-dl .dl-aud span { font-size:12.5px; color:var(--muted); font-weight:600; }
.msz-dash.msz-dl .dl-aud.on { border-color:var(--plan-deep); background:var(--plan-wash);
  box-shadow:inset 0 0 0 1px var(--plan-deep); }
.msz-dl .dl-aud.on b { color:var(--plan-deep); }
@media (hover:hover) {
  .msz-dash.msz-dl .dl-aud:not(.on):hover { border-color:#b9bdb4; }
}

.msz-dl .dl-picker { margin-top:10px; }
.msz-dl .dl-picker:empty { display:none; }
.msz-dl .dl-hint { margin:0; font-size:13.5px; color:var(--muted); line-height:1.5; max-width:64ch; }
.msz-dl .dl-chips { display:flex; flex-wrap:wrap; gap:7px; }
.msz-dl .dl-chipwrap { display:inline-flex; align-items:stretch; }
.msz-dash.msz-dl .dl-chip { display:flex; flex-direction:column; align-items:flex-start; text-align:left;
  padding:7px 12px 8px; min-height:44px; border-radius:11px; border:1.5px solid var(--line);
  background:#fff; transition:border-color .15s, background .15s; }
.msz-dl .dl-chip b { font-size:14px; font-weight:700; color:var(--ink); }
.msz-dl .dl-chip span { font-size:12px; color:var(--muted); font-weight:600; }
.msz-dash.msz-dl .dl-chip.on { border-color:var(--plan-deep); background:var(--plan-wash); }
.msz-dl .dl-chip.on b { color:var(--plan-deep); }
.msz-dl .dl-chip.on b::before { content:'\2713'; margin-right:6px; font-weight:800; }
.msz-dash.msz-dl .dl-chip.none { border-style:dashed; }
.msz-dl .dl-chip.none span { color:var(--warn); }
.msz-dash.msz-dl .dl-chipwrap .dl-chip { border-top-right-radius:0; border-bottom-right-radius:0; }
.msz-dash.msz-dl .dl-chipwrap .dl-chip:only-child { border-radius:11px; }
.msz-dash.msz-dl .dl-forget { display:inline-flex; align-items:center; justify-content:center;
  width:34px; border:1.5px solid var(--line); border-left:0; border-radius:0 11px 11px 0;
  background:#fff; color:var(--muted); }
.msz-dl .dl-forget svg { width:15px; height:15px; }
@media (hover:hover) {
  .msz-dash.msz-dl .dl-chip:not(.on):hover { border-color:#b9bdb4; }
  .msz-dash.msz-dl .dl-forget:hover { color:var(--alert); }
}
.msz-dl .dl-addperson { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) auto;
  gap:8px; margin-top:10px; }

.msz-dl .dl-more { border-top:1px solid var(--rule); padding-top:12px; }
.msz-dl .dl-more summary { cursor:pointer; font-size:14px; font-weight:700; color:var(--plan-deep);
  list-style:none; display:inline-flex; align-items:center; gap:6px; min-height:32px; }
.msz-dl .dl-more summary::-webkit-details-marker { display:none; }
.msz-dl .dl-more summary::before { content:'+'; font-size:18px; line-height:1; width:14px; }
.msz-dl .dl-more[open] summary::before { content:'\2212'; }
.msz-dl .dl-more .dl-field { margin-top:12px; }

.msz-dl .dl-majorline { display:flex; align-items:flex-start; gap:12px; cursor:pointer;
  padding:12px 14px; border-radius:12px; background:var(--canvas); }
.msz-dl .dl-majorline span { display:flex; flex-direction:column; font-size:13px; color:var(--muted); line-height:1.4; }
.msz-dl .dl-majorline b { font-size:14.5px; color:var(--ink); }

/* What goes out: the invitation as Google will show it. */
.msz-dl .dl-preview { align-self:start; position:sticky; top:16px; background:var(--canvas);
  border-radius:16px; padding:16px 16px 14px; }
.msz-dl .dl-pvlabel { margin:0 0 10px; font-size:13px; font-weight:700; color:var(--muted); }
.msz-dl .dl-invite { display:flex; gap:14px; align-items:flex-start; background:#fff;
  border-radius:13px; padding:14px; border-top:5px solid var(--plan); box-shadow:var(--lift); }
.msz-dl .dl-invite.ph-event { border-top-color:var(--ev); }
.msz-dl .dl-invitebody { min-width:0; }
.msz-dl .dl-invitetitle { margin:2px 0 4px; font-size:17px; font-weight:800; letter-spacing:-.015em;
  color:var(--ink); line-height:1.25; overflow-wrap:anywhere; }
.msz-dl .dl-invitewhen,.msz-dl .dl-invitewhere { margin:0; font-size:13.5px; color:#4d5049; line-height:1.4; }
.msz-dl .dl-invitewhere { display:flex; gap:5px; align-items:center; margin-top:4px; }
.msz-dl .dl-invitewhere svg { width:15px; height:15px; }
.msz-dl .dl-pvfacts { list-style:none; margin:12px 0 0; padding:0; display:grid; gap:7px; }
.msz-dl .dl-pvfacts li { display:flex; gap:9px; align-items:flex-start; margin:0; font-size:13.5px;
  color:#3d403a; line-height:1.4; }
.msz-dl .dl-pvfacts svg { width:16px; height:16px; margin-top:1px; color:var(--plan-deep); }
.msz-dl .dl-pvfacts li.warn { color:var(--warn); }
.msz-dl .dl-pvfacts li.warn svg { color:var(--warn); }
.msz-dl .dl-pvnote { display:flex; gap:8px; margin:10px 0 0; padding:9px 11px; border-radius:10px;
  background:var(--warn-wash); color:var(--warn); font-size:13px; font-weight:600; line-height:1.45; }
.msz-dl .dl-pvnote svg { width:16px; height:16px; margin-top:1px; }

.msz-dl .dl-msg { margin:14px 0 0; font-size:14px; font-weight:600; color:var(--muted); min-height:1.4em; }
.msz-dl .dl-msg:empty { min-height:0; margin:0; }
.msz-dl .dl-msg.bad { color:var(--alert); }
.msz-dl .dl-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  margin-top:16px; padding-top:16px; border-top:1px solid var(--rule); }
.msz-dl .dl-grow { flex:1 1 auto; }

/* ----------------------------------------------------------- the road -- */

.msz-dl .dl-road,.msz-dl .dl-teamroad { background:var(--paper); border:1px solid var(--line); border-radius:18px;
  box-shadow:var(--lift); padding:22px 24px 10px; }
.msz-dl .dl-nextup { display:flex; align-items:baseline; gap:16px; flex-wrap:wrap; margin:0 0 6px; }
.msz-dl .dl-nextcount { font-size:44px; font-weight:800; letter-spacing:-.035em; line-height:1;
  color:var(--plan-deep); font-variant-numeric:tabular-nums; }
.msz-dl .dl-nexttext { display:flex; flex-direction:column; font-size:14px; color:var(--muted); line-height:1.4; }
.msz-dl .dl-nexttext b { font-size:18px; font-weight:800; color:var(--ink); letter-spacing:-.015em; }
.msz-dl .dl-nextup.done .dl-nexttext b { font-size:16px; }

.msz-dl .dl-track { overflow-x:auto; overflow-y:hidden; margin:0 -24px; padding:0 24px 14px;
  scrollbar-width:thin; -webkit-overflow-scrolling:touch; }
.msz-dl .dl-track:focus-visible { outline-offset:-3px; }
.msz-dl .dl-stops { list-style:none; margin:0; padding:0; display:flex; min-width:min-content; }

/* One stop. The line runs through every stop at the height of its dot; the
   first and last stops draw only the half that leads inward. */
.msz-dl .dl-stop,.msz-dl .dl-now { position:relative; margin:0; display:flex; flex-direction:column;
  align-items:center; text-align:center; --line-y:64px; }
/* Narrow enough that the usual eight milestones and Today fit a laptop unscrolled. */
.msz-dl .dl-stop { flex:1 0 112px; max-width:240px; padding:0 6px; }
.msz-dl .dl-stop::before,.msz-dl .dl-now::before { content:''; position:absolute; left:0; right:0;
  top:calc(var(--line-y) - 2px); height:5px; background:var(--plan); }
.msz-dl .dl-stop.ph-event::before { background:var(--ev); }
.msz-dl .dl-stops > :first-child::before { left:50%; }
.msz-dl .dl-stops > :last-child::before { right:50%; }
/* Ahead of today the line is the road still to travel: drawn, but faint. */
.msz-dl .dl-stop.is-ahead::before,.msz-dl .dl-stop.is-next::before {
  background:repeating-linear-gradient(90deg, var(--plan) 0 10px, transparent 10px 16px); }
.msz-dl .dl-stop.ph-event.is-ahead::before,.msz-dl .dl-stop.ph-event.is-next::before {
  background:repeating-linear-gradient(90deg, var(--ev) 0 10px, transparent 10px 16px); }

.msz-dl .dl-phase { height:18px; font-size:12.5px; font-weight:700; color:var(--plan-deep);
  align-self:flex-start; white-space:nowrap; }
.msz-dl .dl-stop.ph-event .dl-phase { color:var(--ev); }
.msz-dl .dl-gap { position:absolute; left:0; top:calc(var(--line-y) - 27px); transform:translateX(-50%);
  font-size:12px; font-weight:600; color:var(--muted); white-space:nowrap; background:var(--paper);
  padding:0 6px; }
.msz-dl .dl-now + .dl-stop .dl-gap { display:none; }

.msz-dl .dl-dot { position:relative; z-index:1; display:flex; align-items:center; justify-content:center;
  width:36px; height:36px; margin:28px 0 10px; border-radius:50%; background:#fff;
  border:3px solid var(--plan); color:var(--plan-deep); }
.msz-dl .dl-stop.ph-event .dl-dot { border-color:var(--ev); color:var(--ev); border-radius:10px; }
.msz-dl .dl-dot svg { width:17px; height:17px; stroke-width:2; }
.msz-dl .dl-stop.is-past .dl-dot { background:var(--plan); color:#fff; }
.msz-dl .dl-stop.ph-event.is-past .dl-dot { background:var(--ev); }
.msz-dl .dl-stop.is-past .dl-dot svg { stroke-width:2.6; }
/* The next stop: larger, and ringed, the one thing on the page that draws the eye. */
.msz-dl .dl-stop.is-next .dl-dot { width:50px; height:50px; margin:21px 0 7px;
  background:var(--plan-deep); border-color:var(--plan-deep); color:#fff;
  box-shadow:0 0 0 6px rgba(66,125,70,.16), 0 0 0 12px rgba(66,125,70,.07); }
.msz-dl .dl-stop.ph-event.is-next .dl-dot { background:var(--ev); border-color:var(--ev);
  box-shadow:0 0 0 6px rgba(18,19,9,.12), 0 0 0 12px rgba(18,19,9,.05); }
.msz-dl .dl-stop.is-next .dl-dot svg { width:22px; height:22px; }

/* A team's road has an After stretch: what the team still does once the event is over. */
.msz-dl .dl-stop.ph-after::before { background:var(--post); }
.msz-dl .dl-stop.ph-after.is-ahead::before,.msz-dl .dl-stop.ph-after.is-next::before {
  background:repeating-linear-gradient(90deg, var(--post) 0 10px, transparent 10px 16px); }
.msz-dl .dl-stop.ph-after .dl-phase { color:var(--post); }
.msz-dl .dl-stop.ph-after .dl-dot { border-color:var(--post); color:var(--post); }
.msz-dl .dl-stop.ph-after.is-past .dl-dot { background:var(--post); color:#fff; }
.msz-dl .dl-stop.ph-after.is-next .dl-dot { background:var(--post); border-color:var(--post); color:#fff;
  box-shadow:0 0 0 6px rgba(138,106,29,.16), 0 0 0 12px rgba(138,106,29,.07); }

.msz-dl .dl-stop .dl-leaf { margin:0 0 8px; }
.msz-dl .dl-stop.is-past .dl-leaf { border-color:#c5c8c0; }
.msz-dl .dl-stop.is-past .dl-leaf b { color:#6d7169; }
.msz-dl .dl-stoptitle { font-size:14.5px; font-weight:700; color:var(--ink); line-height:1.3;
  overflow-wrap:anywhere; max-width:200px; }
.msz-dl .dl-stop.is-past .dl-stoptitle { color:#5c5f58; font-weight:600; }
.msz-dl .dl-stop.is-next .dl-stoptitle { font-size:16px; font-weight:800; }
.msz-dl .dl-stopwhen { margin-top:3px; font-size:12.5px; font-weight:600; color:var(--muted); }
.msz-dl .dl-stop.is-next .dl-stopwhen { color:var(--plan-deep); font-weight:800; }

/* Today, where it falls between two stops. */
.msz-dl .dl-now { flex:0 0 70px; }
.msz-dl .dl-now::before { background:var(--plan); }
.msz-dl .dl-now.end::before { right:50%; }
.msz-dl .dl-nowpill { position:relative; z-index:1; margin-top:calc(var(--line-y) - 14px);
  height:28px; padding:0 11px; border-radius:99px; background:var(--ink); color:#fff;
  font-size:12.5px; font-weight:800; display:inline-flex; align-items:center; }
.msz-dl .dl-nowpill::after { content:''; position:absolute; left:50%; top:100%; width:2px; height:14px;
  margin-left:-1px; background:var(--ink); }

.msz-dl .dl-roadempty { display:flex; align-items:center; gap:18px; flex-wrap:wrap; padding:6px 0 16px; }
.msz-dl .dl-roadempty p { flex:1 1 360px; margin:0; font-size:15px; color:var(--muted); line-height:1.55; max-width:70ch; }
.msz-dl .dl-roadempty b { color:var(--ink); }
.msz-dl .dl-roadfoot { margin:4px 0 14px; }

/* ----------------------------------------------------------- the list -- */

.msz-dl .dl-list { background:var(--paper); border:1px solid var(--line); border-radius:18px;
  box-shadow:var(--lift); padding:22px 24px 16px; }
.msz-dl .dl-filters { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.msz-dash.msz-dl .dl-seg { height:38px; padding:0 13px; border-radius:99px; font-size:14px;
  font-weight:700; color:var(--muted); border:1.5px solid transparent; display:inline-flex;
  align-items:center; gap:7px; }
.msz-dl .dl-seg span { font-size:12px; background:var(--canvas); color:var(--muted); border-radius:99px;
  padding:1px 8px; font-variant-numeric:tabular-nums; }
.msz-dash.msz-dl .dl-seg.on { background:var(--ink); color:#fff; }
.msz-dl .dl-seg.on span { background:rgba(255,255,255,.18); color:#fff; }
.msz-dl .dl-only { display:inline-flex; align-items:center; gap:8px; margin-left:8px; font-size:14px;
  font-weight:600; color:#3d403a; cursor:pointer; min-height:38px; }
@media (hover:hover) {
  .msz-dash.msz-dl .dl-seg:not(.on):hover { color:var(--ink); border-color:var(--line); }
}

.msz-dl .dl-month { margin:18px 0 8px; font-size:14px; font-weight:800; color:var(--muted);
  letter-spacing:.01em; }
.msz-dl .dl-month:first-of-type { margin-top:4px; }
.msz-dl .dl-rows { list-style:none; margin:0; padding:0; }
.msz-dl .dl-row { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:4px 16px;
  align-items:start; margin:0; padding:14px 6px; border-top:1px solid var(--rule);
  border-radius:4px; transition:background .6s; }
.msz-dl .dl-rows .dl-row:first-child { border-top:0; }
.msz-dl .dl-row.gone .dl-leaf { border-color:#c5c8c0; }
.msz-dl .dl-row.gone .dl-leaf b,.msz-dl .dl-row.gone .dl-rowtitle > span:first-child { color:#5c5f58; }
.msz-dl .dl-row.editing { background:var(--plan-wash); box-shadow:inset 3px 0 0 var(--plan-deep); }
.msz-dl .dl-row.fresh { background:#e4efe2; }
.msz-dl .dl-rowmain { min-width:0; }
.msz-dl .dl-rowtitle { display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; margin:2px 0 5px; }
.msz-dl .dl-rowtitle > span:first-child { font-size:16px; font-weight:800; color:var(--ink);
  letter-spacing:-.012em; overflow-wrap:anywhere; }
.msz-dl .dl-kind { display:inline-flex; align-items:center; gap:5px; font-size:12px; font-weight:700;
  padding:2px 9px 2px 7px; border-radius:99px; background:var(--plan-wash); color:var(--plan-deep); }
.msz-dl .dl-row.ph-event .dl-kind { background:var(--ev-wash); color:var(--ev); }
.msz-dl .dl-kind svg { width:14px; height:14px; }
.msz-dl .dl-mile { font-size:12px; font-weight:700; color:var(--muted); padding:1px 8px;
  border:1.5px solid var(--line); border-radius:99px; }
.msz-dl .dl-rowmeta { display:flex; flex-wrap:wrap; gap:4px 16px; margin:0; font-size:13.5px; color:#4d5049; }
.msz-dl .dl-rowmeta span { display:inline-flex; align-items:center; gap:6px; }
.msz-dl .dl-rowmeta svg { width:15px; height:15px; color:var(--muted); }
.msz-dl .dl-rownote { margin:6px 0 0; font-size:13.5px; color:var(--muted); line-height:1.5;
  max-width:72ch; white-space:pre-line; }
.msz-dl .dl-calstate { display:flex; align-items:flex-start; gap:6px; margin:7px 0 0; font-size:13px;
  font-weight:700; line-height:1.4; }
.msz-dl .dl-calstate svg { width:15px; height:15px; margin-top:1px; stroke-width:2.2; }
.msz-dl .dl-calstate.ok { color:var(--plan-deep); }
.msz-dl .dl-calstate.warn { color:var(--warn); }
.msz-dl .dl-calstate.bad { color:var(--alert); }
.msz-dl .dl-calstate.dim { color:var(--muted); font-weight:600; }
.msz-dl .dl-rowacts { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:4px; max-width:340px; }
.msz-dl .dl-empty { margin:0 0 8px; font-size:14.5px; color:var(--muted); padding:16px 18px;
  background:var(--canvas); border-radius:12px; }

/* ------------------------------------------------------ sheet, toast -- */

.msz-dl .dl-sheet { position:fixed; inset:0; z-index:100000; display:flex; align-items:center;
  justify-content:center; padding:20px; }
.msz-dl .dl-backdrop { position:absolute; inset:0; background:rgba(18,19,9,.5); }
.msz-dl .dl-panel { position:relative; width:min(760px,100%); max-height:calc(100vh - 40px);
  overflow:auto; background:#fff; border-radius:18px; padding:24px 24px 20px;
  box-shadow:0 30px 80px rgba(18,19,9,.35); animation:dl-rise .2s ease both; }
@keyframes dl-rise { from { opacity:0; transform:translateY(14px); } }
.msz-dl .dl-sheettitle { margin:0 0 8px; font-size:22px; font-weight:800; letter-spacing:-.02em; color:var(--ink); }
.msz-dl .dl-sheettext { margin:0 0 16px; font-size:14.5px; color:var(--muted); line-height:1.55; max-width:66ch; }
.msz-dl .dl-sheeterr { margin:12px 0 0; padding:10px 12px; border-radius:10px; background:var(--alert-wash);
  color:var(--alert); font-size:14px; font-weight:600; }
.msz-dl .dl-sheetacts { display:flex; justify-content:flex-end; gap:10px; flex-wrap:wrap; margin-top:18px; }
html.dl-locked { overflow:hidden; }

.msz-dl .dl-usualhead { display:grid; grid-template-columns:200px minmax(0,1fr); gap:14px; margin:0 0 14px; }
.msz-dl .dl-usuallist { list-style:none; margin:0; padding:0; border-top:1px solid var(--rule); }
.msz-dl .dl-usual { display:grid; grid-template-columns:auto auto minmax(0,1fr) 170px 120px;
  gap:10px; align-items:center; margin:0; padding:8px 0; border-bottom:1px solid var(--rule); }
.msz-dl .dl-usualtick { display:flex; padding:0 2px; cursor:pointer; }
.msz-dl .dl-usualicon { display:flex; width:32px; height:32px; align-items:center; justify-content:center;
  border-radius:50%; border:2px solid var(--plan); color:var(--plan-deep); }
.msz-dl .dl-usual.ph-event .dl-usualicon { border-color:var(--ev); color:var(--ev); border-radius:9px; }
.msz-dl .dl-usualicon svg { width:16px; height:16px; }
.msz-dl .dl-uoff { font-size:12.5px; color:var(--muted); font-weight:600; }
.msz-dl .dl-usual.working { opacity:.6; }
.msz-dl .dl-usual.done .dl-usualicon { background:var(--plan); color:#fff; border-color:var(--plan); }
.msz-dl .dl-usual.failed .dl-usualicon { border-color:var(--alert); color:var(--alert); }

.msz-dl .dl-toast { position:fixed; left:50%; bottom:22px; z-index:100001; transform:translate(-50%,30px);
  opacity:0; pointer-events:none; display:flex; align-items:center; gap:12px; flex-wrap:wrap;
  max-width:min(640px,calc(100vw - 28px)); padding:13px 16px; border-radius:14px; background:var(--ink);
  color:#fff; font-size:14.5px; font-weight:600; line-height:1.45;
  box-shadow:0 16px 40px rgba(18,19,9,.3); transition:opacity .2s, transform .2s;
  padding-bottom:calc(13px + env(safe-area-inset-bottom, 0px)); }
.msz-dl .dl-toast.show { opacity:1; transform:translate(-50%,0); pointer-events:auto; }
.msz-dl .dl-toast span { flex:1 1 260px; }
.msz-dl .dl-toast.good { border-left:5px solid #7fbe7a; }
.msz-dl .dl-toast.warn { border-left:5px solid #e6be5c; }
.msz-dl .dl-toast.bad { border-left:5px solid #e07b7b; }
.msz-dash.msz-dl .dl-toast button { color:#c9e3c4; font-weight:800; text-decoration:underline;
  text-underline-offset:3px; min-height:32px; }

/* --------------------------------------------------------- skeleton -- */

.msz-dl .dl-ghosts { display:grid; gap:18px; }
.msz-dl .dl-ghost { height:150px; border-radius:18px; background:linear-gradient(90deg,#e9ebe5,#f4f5f2,#e9ebe5);
  background-size:200% 100%; animation:dl-shimmer 1.4s infinite; }
.msz-dl .dl-ghost.tall { height:280px; }
@keyframes dl-shimmer { to { background-position:-200% 0; } }

/* ----------------------------------------------------------- narrow -- */

@media (max-width:960px) {
  .msz-dl .dl-composegrid { grid-template-columns:minmax(0,1fr); }
  .msz-dl .dl-preview { position:static; }
  .msz-dl .dl-auds { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width:700px) {
  .msz-dl .dl-app { gap:16px; }
  .msz-dl .dl-compose,.msz-dl .dl-road,.msz-dl .dl-teamroad,.msz-dl .dl-list { padding:18px 16px 14px; border-radius:16px; }
  .msz-dl .dl-composehead h2 { font-size:20px; }
  .msz-dl .dl-when { grid-template-columns:minmax(0,1fr); }
  .msz-dl .dl-times { width:100%; }
  .msz-dash.msz-dl .dl-times input { width:auto; flex:1 1 0; min-width:0; }
  .msz-dl .dl-addperson { grid-template-columns:minmax(0,1fr) auto; }
  .msz-dl .dl-addperson .dl-newmail { grid-column:1 / -1; }
  .msz-dl .dl-actions { flex-direction:column-reverse; align-items:stretch; }
  .msz-dl .dl-actions .dl-grow { display:none; }
  .msz-dash.msz-dl .dl-actions .dl-btn,.msz-dash.msz-dl .dl-actions .dl-primary { width:100%; justify-content:center; }
  .msz-dash.msz-dl .dl-actions .dl-linkbtn { align-self:center; }
  .msz-dl .dl-nextcount { font-size:36px; }

  /* The road turns to run down the page. */
  .msz-dl .dl-track { margin:0; padding:4px 0 6px; overflow:visible; }
  .msz-dl .dl-stops { flex-direction:column; min-width:0; }
  .msz-dl .dl-stop { flex:none; max-width:none; display:grid; grid-template-columns:44px auto minmax(0,1fr);
    grid-template-areas:"phase phase phase" "dot leaf title" "dot leaf when";
    column-gap:12px; align-items:center; text-align:left; padding:8px 0; --line-x:22px; }
  .msz-dl .dl-stop::before,.msz-dl .dl-now::before { left:calc(var(--line-x, 22px) - 2.5px); right:auto;
    top:0; bottom:0; width:5px; height:auto; }
  .msz-dl .dl-stops > :first-child::before { left:calc(var(--line-x, 22px) - 2.5px); top:50%; }
  .msz-dl .dl-stops > :last-child::before { right:auto; bottom:50%; }
  .msz-dl .dl-stop.is-ahead::before,.msz-dl .dl-stop.is-next::before {
    background:repeating-linear-gradient(180deg, var(--plan) 0 10px, transparent 10px 16px); }
  .msz-dl .dl-stop.ph-event.is-ahead::before,.msz-dl .dl-stop.ph-event.is-next::before {
    background:repeating-linear-gradient(180deg, var(--ev) 0 10px, transparent 10px 16px); }
  .msz-dl .dl-stop.ph-after.is-ahead::before,.msz-dl .dl-stop.ph-after.is-next::before {
    background:repeating-linear-gradient(180deg, var(--post) 0 10px, transparent 10px 16px); }
  .msz-dl .dl-phase { grid-area:phase; height:auto; margin:6px 0 2px 56px; }
  .msz-dl .dl-phase:empty { display:none; }
  .msz-dl .dl-gap { display:none; }
  .msz-dl .dl-dot { grid-area:dot; margin:0; justify-self:center; }
  .msz-dl .dl-stop.is-next .dl-dot { margin:6px 0; width:44px; height:44px; }
  .msz-dl .dl-stop .dl-leaf { grid-area:leaf; margin:0; }
  .msz-dl .dl-stoptitle { grid-area:title; align-self:end; max-width:none; }
  .msz-dl .dl-stopwhen { grid-area:when; align-self:start; margin:0; }
  .msz-dl .dl-now { flex:none; flex-direction:row; align-items:center; padding:6px 0; }
  .msz-dl .dl-now.end::before { bottom:50%; }
  .msz-dl .dl-nowpill { margin:0 0 0 2px; }
  .msz-dl .dl-nowpill::after { display:none; }

  .msz-dl .dl-row { grid-template-columns:auto minmax(0,1fr); padding:14px 0; }
  .msz-dl .dl-rowacts { grid-column:1 / -1; justify-content:flex-start; max-width:none; margin-top:4px; }
  .msz-dl .dl-only { margin-left:0; }

  .msz-dl .dl-sheet { align-items:flex-end; padding:0; }
  .msz-dl .dl-panel { border-radius:20px 20px 0 0; max-height:92vh; padding:20px 16px;
    padding-bottom:calc(20px + env(safe-area-inset-bottom, 0px)); }
  .msz-dl .dl-usualhead { grid-template-columns:minmax(0,1fr); }
  .msz-dl .dl-usual { grid-template-columns:auto auto minmax(0,1fr); }
  .msz-dl .dl-usual .dl-udate { grid-column:3; }
  .msz-dl .dl-usual .dl-uoff { grid-column:3; margin-top:-4px; }
  .msz-dl .dl-sheetacts { flex-direction:column-reverse; }
  .msz-dash.msz-dl .dl-sheetacts .dl-btn,.msz-dash.msz-dl .dl-sheetacts .dl-primary { width:100%; justify-content:center; }
}

@media (max-width:420px) {
  .msz-dl .dl-auds { grid-template-columns:minmax(0,1fr); }
  .msz-dash.msz-dl .dl-aud { min-height:0; flex-direction:row; align-items:baseline; gap:8px; }
}

@media (prefers-reduced-motion:reduce) {
  .msz-dl .dl-ghost { animation:none; }
  .msz-dl .dl-panel { animation:none; }
}
