/* ToDoing site kit, the week family: My Week, the phone, the composer, undo and the calendar
   link. Every part inside a screen is prefixed dw- (shared parts stay ui-); the demo roots are
   .dm-week, .dm-undo, .dm-phone, .dm-composer and .dm-subscribe. Colours are screen tokens only,
   so all three themes hold. Motion lives in demos-week.js and moves by transform; nothing here
   changes a demo's height between beats. */

.dm-week,.dm-undo,.dm-phone,.dm-composer,.dm-subscribe{margin:0}

/* ── A task that fills its column: a multi-day task and its later days ── */
.wk .task.dw-full{display:flex;width:100%}
.task.dw-cont{color:var(--s-ink-2);font-weight:550}
.task.dw-cont .dw-arr{flex:none;margin-right:-.1em;color:var(--s-muted);font-weight:500}

/* ── The quick-add card (the task composer): a floating card beside its day, a sheet on a
   narrow screen. JS places it with left/top; it opens by opacity and transform. ── */
.dw-qa{position:absolute;z-index:6;left:0;top:0;width:min(420px, calc(100% - 16px));background:var(--s-paper);border-radius:16px;
  box-shadow:0 0 0 1px var(--s-rule), 0 26px 50px -20px rgba(15,16,18,.34), 0 2px 8px var(--s-shadow);
  opacity:0;visibility:hidden;transform:translateY(6px) scale(.97);transform-origin:50% 0;pointer-events:none;
  transition:opacity .18s, transform .26s var(--ease-out), visibility 0s .26s}
.dw-qa.on{opacity:1;visibility:visible;transform:none;transition:opacity .2s, transform .3s var(--ease-out), visibility 0s}
.dw-qa-hd{display:flex;align-items:center;gap:6px;height:36px;padding:2px 10px 0 16px}
.dw-qa-lb{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--s-muted)}
.dw-qa-sep{color:var(--s-muted);opacity:.6;font-size:12px}
.dw-qa-day{display:inline-flex;align-items:center;gap:5px;height:24px;padding:0 6px;border-radius:6px;font-size:12px;font-weight:550;color:var(--s-ink-2);white-space:nowrap}
.dw-qa-day svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.dw-qa-day svg + span + svg{width:10px;height:10px;opacity:.7}
.dw-qa-x{margin-left:auto;width:20px;height:20px;display:grid;place-items:center;color:var(--s-muted);opacity:.7}
.dw-qa-x svg{width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}
.dw-qa-ti{padding:0 16px;height:28px;font-size:17px;line-height:28px;font-weight:550;letter-spacing:-.015em;color:var(--s-ink);white-space:nowrap;overflow:hidden}
.dw-qa-ti > span{display:inline-block}
.dw-qa-nt{padding:0 16px;height:20px;font-size:13px;line-height:20px;color:color-mix(in srgb, var(--s-muted) 62%, transparent)}
.dw-qa-ch{padding:9px 16px 14px}
.dw-qa-ch .ui-chip{white-space:nowrap}
.dw-pdot{flex:none;width:8px;height:8px;border-radius:99px;background:var(--c)}
.dw-qa-ch .av{--av:16px}
.dw-qa-ch .ui-chip .ui-dia{font-size:13px;margin:0}
.dw-qa-ch .ui-meter.mini{width:24px;height:4px}
.dw-qa-ch .ui-meter.mini > i{transition:transform .55s var(--ease-ui), background-color .35s}
/* the picker's well, under the chips; it opens by a height tween (never a spring) */
.dw-qa-ww{height:0;overflow:hidden;margin:0 16px}
.dw-qa-well{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin:-6px 0 14px;padding:6px;border-radius:12px;background:color-mix(in srgb, var(--s-ink) 4%, transparent)}
.dw-qa-o{display:inline-grid;place-items:center;height:28px;min-width:34px;padding:0 8px;border-radius:8px;font-size:12px;font-weight:550;font-variant-numeric:tabular-nums;color:var(--s-ink);
  box-shadow:inset 0 0 0 1px var(--s-rule);transition:background-color .2s, color .2s, box-shadow .2s}
.dw-qa-o.on{background:var(--s-ink);color:var(--s-paper);box-shadow:none}
.dw-qa-o.hl:not(.on){background:var(--s-wash)}
.dw-qa-or{display:inline-flex;align-items:center;gap:6px;margin-left:4px;font-size:12px;color:var(--s-muted);white-space:nowrap}
.dw-qa-or i{font-style:normal;display:inline-grid;place-items:center;width:44px;height:26px;border-radius:7px;box-shadow:inset 0 0 0 1px var(--s-rule);color:var(--s-ink);font-variant-numeric:tabular-nums}
.dw-qa-ft{display:flex;align-items:center;gap:8px;padding:9px 12px 9px 16px;border-top:1px solid var(--s-rule)}
.dw-qa-hint{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;color:var(--s-muted);white-space:nowrap}
.dw-kb{display:inline-grid;place-items:center;min-width:19px;height:19px;padding:0 4px;border-radius:5px;box-shadow:inset 0 0 0 1px var(--s-rule);
  font:600 11px/1 var(--sans);color:var(--s-ink-2);transition:transform .12s var(--ease-out), background-color .12s}
.dw-kb.down{transform:scale(.88);background:var(--s-wash)}
.dw-qa-btns{margin-left:auto;display:flex;gap:6px}
.dw-qa-btns .ui-btn{height:30px}
.dw-qa-btns .ui-btn:not(.ink){background:none}
/* the workload sentence: the People chip's hover tip, as in the app */
.dw-tipw{position:relative;display:inline-flex}
.dw-tipw > .ui-tip{left:50%;top:auto;bottom:calc(100% + 8px);width:max-content;max-width:min(258px, 70cqw);white-space:normal;line-height:1.42;padding:6px 10px;font-weight:550;
  transform:translateX(-50%) translateY(3px);transition:opacity .18s, transform .22s var(--ease-out)}
.dw-tipw > .ui-tip.on{transform:translateX(-50%)}
@container (max-width: 559px){
  /* a phone's composer is a sheet from the screen's foot */
  .dw-qa{left:0 !important;right:0;top:auto !important;bottom:0;width:auto;border-radius:18px 18px 0 0;transform:translateY(102%);transform-origin:50% 100%;
    transition:opacity .26s, transform .34s var(--ease-out), visibility 0s .34s;
    box-shadow:0 0 0 1px var(--s-rule), 0 -18px 40px -22px rgba(15,16,18,.4)}
  .dw-qa.on{transition:opacity .2s, transform .38s var(--ease-out), visibility 0s}
  .dw-qa::before{content:"";display:block;width:36px;height:4px;margin:8px auto 0;border-radius:99px;background:var(--s-rule)}
  .dw-qa-hd{height:28px;padding-top:0}
  .dw-qa-ti{height:26px;line-height:26px}
  .dw-qa-nt{height:18px;line-height:18px}
  .dw-qa-ch{padding:7px 16px 9px}
  .dw-qa-well{margin-bottom:9px}
  .dw-qa-hint{display:none}
  .dw-qa-ft{padding:8px 12px 10px}
  /* room under Okoye's row for the sheet, with its picker open */
  .dm-composer .ruler{--rh:384px !important}
  .dw-qa-btns{margin-left:0;flex:1}
  .dw-qa-btns .ui-btn{flex:1;height:34px}
}

/* ── The note's peek, beside the card, as the app's hover card ── */
.ui-pop.dw-peek{width:264px;min-width:0;padding:11px 14px 12px;font-size:13px;line-height:20px;font-weight:450;color:var(--s-ink-2)}
.dw-peek p{margin:0}
.dw-lnk{color:var(--s-ink);text-decoration:underline;text-decoration-color:color-mix(in srgb, var(--s-ink) 30%, transparent);text-decoration-thickness:1.5px;text-underline-offset:2px;overflow-wrap:anywhere}

/* ── Your calendar: the day card beside a day, and the busy line under every date ── */
.dm-week .wk-dh{position:relative}
.dm-week .wk-dd{transition:background-color .2s, color .2s}
.dm-week .wk-day:not(.today) .wk-dd.dw-pt{background:var(--s-wash);color:var(--s-ink)}
.dw-busy{position:absolute;left:10px;right:10px;bottom:4px;height:2px;opacity:0;transition:opacity .22s var(--ease-out);pointer-events:none}
.dw-busy.on{opacity:1}
.dw-busy i{position:absolute;top:0;bottom:0;min-width:2px;border-radius:99px;background:color-mix(in srgb, var(--s-ink) 50%, transparent)}
.dw-dayp{position:absolute;left:0;top:0;z-index:8;width:280px;max-width:calc(100% - 16px);pointer-events:none;will-change:transform}
.dw-dayp > .ui-pop{position:relative;min-width:0;width:100%;padding:0;transform-origin:0 0}
.dw-dayh{overflow:hidden}
.dw-dayi{padding:10px 12px 9px}
.dw-dayt{font-size:13px;font-weight:600;color:var(--s-ink);letter-spacing:-.005em}
.dw-days{margin-top:2px;font-size:12px;color:var(--s-muted);font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dw-rib{position:relative;height:6px;margin-top:10px;border-radius:99px;background:var(--s-wash)}
.dw-rib i{position:absolute;top:0;bottom:0;min-width:3px;border-radius:99px;background:color-mix(in srgb, var(--s-ink) 50%, transparent)}
.dw-ax{display:flex;justify-content:space-between;margin-top:4px;font-size:11px;color:var(--s-muted);font-variant-numeric:tabular-nums}
.dw-rows{margin-top:6px}
.dw-row{display:flex;align-items:baseline;gap:8px;padding:3px 0}
.dw-row b{flex:none;width:94px;font-size:12px;font-weight:500;color:var(--s-muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.dw-row span{min-width:0;flex:1;font-size:13px;font-weight:500;color:var(--s-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@container (max-width: 559px){
  .dw-busy{left:10px;right:6px;bottom:5px}
  .dw-row b{width:88px}
}

/* ── A dense chip, as the app's Month view draws a task: the project line, one line, cut
   with an ellipsis. Used by the month grid and the ten-day repeat ruler. ── */
.dw-mc{--c:var(--azure);position:relative;display:inline-flex;align-items:center;gap:3px;max-width:100%;height:18px;padding:0 6px 0 9px;border-radius:4px;
  font-size:11px;font-weight:600;letter-spacing:-.01em;white-space:nowrap;
  background:color-mix(in srgb, var(--c) 14%, var(--s-warm));color:color-mix(in srgb, var(--c) 60%, var(--s-ink))}
.dw-mc::before{content:"";position:absolute;left:3px;top:3px;bottom:3px;width:2.5px;border-radius:99px;background:color-mix(in srgb, var(--c) 80%, var(--s-ink))}
.dw-mc .t{min-width:0;overflow:hidden;text-overflow:ellipsis}
.dw-mc svg{flex:none;width:9px;height:9px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.dw-mc.done{opacity:.45}
.dw-mc.done .t{text-decoration:line-through}
.dw-mc.lifted{box-shadow:0 1px 2px rgba(15,16,18,.08), 0 14px 26px -12px rgba(15,16,18,.34)}
.dw-msn{display:flex;align-items:center;gap:5px;min-width:0;font-size:11px;font-weight:600;white-space:nowrap;overflow:hidden;color:color-mix(in srgb, var(--c) 60%, var(--s-ink))}
.dw-msn .ui-dia{font-size:12px;margin:0}

/* ── The month grid ── */
.dw-views{position:relative}
.dw-pane{position:relative}
.dw-pane.off{position:absolute;inset:0 0 auto;visibility:hidden}
.dw-pane.dw-out{position:absolute;inset:0 0 auto;z-index:1;pointer-events:none}
.dw-mon{display:flex;flex-direction:column;gap:4px}
.dw-mon-dow,.dw-mon-wk{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}
.dw-mon-dow{height:24px;align-items:center}
.dw-mon-dow span{text-align:center;font-size:11px;font-weight:600;letter-spacing:.07em;text-transform:uppercase;color:var(--s-muted)}
.dw-mcell{position:relative;min-width:0;height:var(--mh,66px);display:flex;flex-direction:column;gap:2px;padding:4px;border-radius:8px;background:var(--s-paper);box-shadow:inset 0 0 0 1px var(--s-rule);overflow:hidden;transition:background-color .22s}
.dw-mcell.out{opacity:.38}
.dw-mcell.over{background:color-mix(in srgb, var(--s-ink) 5%, var(--s-paper))}
.dw-mcd{flex:none;align-self:flex-start;padding:0 3px;height:15px;font-size:11.5px;line-height:15px;font-weight:600;color:var(--s-muted);font-variant-numeric:tabular-nums}
.dw-mcs{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}
.dw-mcell .dw-msn{margin-top:auto;padding:0 3px}
@container (max-width: 559px){
  .dw-mcell{--mh:60px;padding:3px;border-radius:7px}
  .dw-mon,.dw-mon-wk,.dw-mon-dow{gap:3px}
  .dw-mc{padding:0 4px 0 8px}
  .dw-mcell .dw-msn{font-size:0;gap:0}
  .dw-mcell .dw-msn .ui-dia{font-size:11px}
}

/* ── The ten-day repeat ruler, and the date picker with Repeat at its foot ── */
.dm-week .dw-rpr .vw-slot{padding:8px 5px;gap:4px}
.dm-week .dw-rpr .vw-mi{padding:0 8px;width:auto;overflow:visible}
.dw-rpr .dw-mc{padding:0 5px 0 8px;gap:2px}
.dw-rpr .dw-mc{max-width:100%}
.dw-rpr .dw-mc .dw-rg{transform-origin:50% 50%}
.ui-pop.dw-dp{width:258px;min-width:0;padding:8px}
.dw-dp-days{display:flex;gap:4px}
.dw-dp-d{flex:1;height:38px;border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;box-shadow:inset 0 0 0 1px var(--s-rule);color:var(--s-ink)}
.dw-dp-d small{font-size:10.5px;line-height:1;color:var(--s-muted)}
.dw-dp-d b{font-size:13px;line-height:1.1;font-weight:600;font-variant-numeric:tabular-nums}
.dw-dp-d.on{background:var(--s-ink);color:var(--s-paper);box-shadow:none}
.dw-dp-d.on small{color:inherit;opacity:.75}
.dw-dp-d.sd{flex:1.6;font-size:12px;font-weight:550}
.dw-rp{margin-top:8px;padding-top:5px;border-top:1px solid color-mix(in srgb, var(--s-rule) 75%, transparent)}
.dw-rp-b{display:flex;align-items:center;gap:6px;height:30px;padding:0 8px;border-radius:7px;font-size:12px;white-space:nowrap;transition:background-color .2s}
.dw-rp-b.hl{background:var(--s-wash)}
.dw-rp-b svg{flex:none;width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;color:var(--s-muted)}
.dw-rp-b > span:first-of-type{color:var(--s-muted)}
.dw-rp-v{min-width:0;overflow:hidden;text-overflow:ellipsis;color:var(--s-muted)}
.dw-rp-v.set{color:var(--s-ink);font-weight:600}
.dw-rp-b .dw-caret{margin-left:auto;width:10px;height:10px;opacity:.6;transition:transform .25s var(--ease-ui)}
.dw-rp-b.open .dw-caret{transform:rotate(180deg)}
.dw-rp-ww{height:0;overflow:hidden}
.dw-rp-l{padding-top:2px}
.dw-rp-o{display:flex;align-items:center;gap:8px;height:25px;padding:0 8px;border-radius:7px;font-size:12px;color:var(--s-ink);white-space:nowrap;transition:background-color .2s}
.dw-rp-o.hl{background:var(--s-wash)}
.dw-rp-o.on{font-weight:600}
.dw-rp-o svg{margin-left:auto;width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}

/* ── The keys an undo is made with, rising from the screen's foot ── */
.dw-keys{position:absolute;left:50%;bottom:16px;z-index:7;display:flex;align-items:center;gap:8px;padding:6px 10px 6px 6px;border-radius:12px;background:var(--s-paper);
  box-shadow:0 0 0 1px var(--s-rule), 0 14px 28px -14px rgba(15,16,18,.3);font-size:12px;font-weight:600;color:var(--s-muted);white-space:nowrap;
  opacity:0;transform:translate(-50%,8px);pointer-events:none;transition:opacity .2s, transform .3s var(--ease-out)}
.dw-keys.on{opacity:1;transform:translate(-50%,0)}

/* the period's arrow, pressed */
.dm-week .pnav .chev{border-radius:7px;transition:background-color .2s, color .2s}
.dm-week .pnav .chev.dw-press{background:var(--s-wash);color:var(--s-ink)}

/* ── The phone ── */
.dm-phone .phone{position:relative}
.dm-phone .ph-chip{position:relative}
.dm-phone .ph-dots{justify-content:center;min-width:4px}
.dm-phone .ph-list{position:relative}
.dm-phone .ph-day{position:relative;height:42px;box-sizing:border-box}
.dm-phone .task.prow{transform-origin:22% 50%}

/* ── The Overview with the composer open over it (dm-composer) ── */
.dm-composer .trow.dw-2l{height:70px}
.dm-composer .tbar.dw-l2{top:39px}
.dm-composer .tbar{transform-origin:20% 50%}
.dm-composer .tbar.dw-lift{box-shadow:0 1px 2px rgba(15,16,18,.08), 0 16px 30px -14px rgba(15,16,18,.36)}
.dw-addc{position:absolute;top:0;bottom:0;display:grid;place-items:center;background:var(--s-wash);color:var(--s-muted);opacity:0;transition:opacity .2s;pointer-events:none}
.dw-addc svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.dw-addc.on{opacity:1}

/* ── Your week in your calendar (dm-subscribe): the dialog, still ── */
.dw-subs{display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;align-items:center;padding:28px 20px;background:color-mix(in srgb, var(--s-ink) 4%, var(--s-bg))}
.dw-sub{width:min(420px, 100%);background:var(--s-paper);border-radius:18px;box-shadow:0 0 0 1px var(--s-rule), 0 26px 52px -24px rgba(15,16,18,.36);padding:16px 20px 18px}
.dw-sub-hd{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.dw-sub-t{flex:1;font-size:16px;font-weight:620;letter-spacing:-.015em;color:var(--s-ink);line-height:1.3}
.dw-sub-hd .ib{width:26px;height:26px;margin-right:-6px}
.dw-sub-hd .ib svg{width:13px;height:13px}
.dw-sub p{margin:0}
.dw-sub-p{font-size:13.5px;line-height:1.55;color:var(--s-ink-2)}
.dw-sub-btns{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:16px}
.dw-sub-btns .ui-btn{height:36px;font-size:13px;color:var(--s-ink)}
.dw-sub-btns .ui-btn svg{width:13px;height:13px}
.dw-sub-lb{margin-top:16px;font-size:12px;font-weight:550;color:var(--s-ink-2)}
.dw-sub-ln{display:flex;align-items:center;gap:8px;margin-top:6px}
.dw-sub-url{flex:1;min-width:0;height:34px;display:block;line-height:34px;padding:0 10px;border-radius:9px;box-shadow:inset 0 0 0 1px var(--s-rule);background:var(--s-bg);
  font:500 11.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace;color:var(--s-ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dw-sub-ln .ui-btn{height:34px;color:var(--s-ink)}
.dw-sub-hint{margin-top:6px !important;font-size:12px;line-height:1.5;color:var(--s-muted)}
.dw-sub-warn{margin-top:16px !important;padding-top:14px;border-top:1px solid var(--s-rule);font-size:12px;line-height:1.5;color:var(--s-muted)}
.dw-sub-warn u{text-underline-offset:2px;text-decoration-color:color-mix(in srgb, var(--s-muted) 60%, transparent)}
@container (max-width: 420px){ .dw-sub-btns{grid-template-columns:1fr} .dw-subs{padding:18px 12px} .dw-sub{padding:14px 16px 16px} }

/* ── The family gallery (week.html) only: a demo's name over its notes ── */
.dwg-name{font-family:ui-monospace, SFMono-Regular, Menlo, monospace;font-size:clamp(20px,1.7vw,24px) !important;letter-spacing:-.02em !important;font-weight:600 !important}
.dwg-beats{margin:16px 0 0;padding:0;list-style:none;display:grid;gap:4px;font-size:14px;color:var(--muted)}
.dwg-beats li{display:flex;gap:8px}
.dwg-beats li::before{content:"";flex:none;width:5px;height:5px;margin-top:.62em;border-radius:1px;transform:rotate(45deg);background:var(--rule)}
