/* ToDoing for teams: what this page adds to the kit. The page parts are tm-; each demo's
   parts are named after it (tmh hero, tmc composer, tmo hand-over, tmi inbox, tmd drawer,
   tml leave, tmn insights, tmr report), and the static fragments are tmf-.

   Rules this file keeps (the kit's):
   - Every colour inside a screen is a screen token (--s-*), so all three themes hold. The
     two exceptions are emails (the budget alert, the digest preview): white in every theme.
   - A demo's height is fixed here or locked by the kit, so no beat changes it.
   - Things move by transform; the only heights that change are inside floating cards (a
     picker well, a row folding away), which never move the page. */

/* The fallback faces ('DM Sans Fallback', and 'DM Sans Fallback 38' for the hero's heading at
   its 38px floor) live in /assets/fonts/dm-sans.css, and --sans names the first in kit.css. */

/* The hero's measures in ems, not ch: a ch is the width of a "0", far narrower in
   Arial than in DM Sans (0.51em against 0.69em), so in ch the heading wrapped to three lines
   until the font came, then jumped to two. 17ch and 20ch of DM Sans at 620. */
.tm-hero h1{max-width:11.69em}
@media (max-width: 1099px){ .tm-hero h1{max-width:13.75em} }
@media (max-width: 825px){ .tm-hero h1{font-family:'DM Sans','DM Sans Fallback 38', ui-sans-serif, system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif} }

figure.dm{margin:0}
/* the cursor rides above every card, drawer, popover and tip a demo floats */
.tm-demo .ui-cursor{z-index:14}

/* ── Page parts ─────────────────────────────────────────────── */
#faq{padding-top:clamp(64px,7vw,112px)}
/* "Also": the small things that ride on a chapter, separated by quiet dots */
.pg-also.tm-also{display:block;line-height:1.75}
.pg-also.tm-also > b{font-weight:600;margin-right:10px}
.pg-also.tm-also > span{font-weight:450;color:var(--muted)}
.pg-also.tm-also > span + span::before{content:"";display:inline-block;width:3px;height:3px;margin:0 10px 3px;border-radius:99px;background:var(--rule);vertical-align:middle}
.pg-kick .pg-plan{margin-left:4px}
.tm-cap-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* the shelf: its fragments are small pieces of the app */
.tm-shelf{--art-h:156px}
.tm-shelf .pg-card-art > .screen{padding:16px}

/* use cases: a tiny fragment beside one line */
.tm-uses{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(12px,1.4vw,20px);margin:0;padding:0;list-style:none}
.tm-use{display:grid;grid-template-columns:212px minmax(0,1fr);gap:22px;align-items:center;padding:14px 20px 14px 14px;border-radius:20px;background:#fff;box-shadow:inset 0 0 0 1px var(--rule)}
.tm-use-art{position:relative;height:118px}
.tm-use-art > .screen{position:absolute;inset:0;border-radius:12px;box-shadow:0 0 0 1px rgba(15,16,18,.07);padding:12px;display:flex;flex-direction:column;justify-content:center;gap:6px;overflow:hidden}
.tm-use h3{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 5px;font-size:17px;line-height:1.25;letter-spacing:-.02em}
.tm-use h3 .pg-plan{margin-left:0;top:0}
.tm-use p{margin:0;font-size:15px;line-height:1.5;color:var(--ink-2)}
.tm-use p a,.pg-faq-a a,.tm-compare a{text-decoration:underline;text-decoration-color:var(--rule);text-underline-offset:4px;text-decoration-thickness:1.5px;transition:text-decoration-color .2s}
.tm-use p a:hover,.tm-compare a:hover{text-decoration-color:currentColor}
.tm-uses-more{margin-top:22px}

/* the price, then one line of comparisons */
.tm-price .pg-price{align-items:flex-start;padding:18px 22px}
.tm-price .pg-price > i{margin-top:.55em}
.tm-price .pg-price > span{flex:1 1 27.387em;line-height:1.55} /* 40ch of DM Sans, in ems as the kit explains */
.tm-price .pg-price .pg-link{margin-left:auto;align-self:center}
.tm-compare{margin:14px 2px 0;font-size:14.5px;line-height:1.7;color:var(--muted)}
.tm-compare a{color:var(--ink-2);font-weight:550}
.tm-compare .tm-dot{display:inline-block;width:3px;height:3px;margin:0 8px 3px;border-radius:99px;background:var(--rule);vertical-align:middle}

/* the door: its heading is the section's, so an h2 at the door's size */
.pg-door h2{margin:0;font-size:clamp(24px,2.2vw,32px);line-height:1.08;letter-spacing:-.035em;font-weight:620;max-width:12.58em} /* 18ch of DM Sans */
@media (max-width: 1341px){ .pg-door h2{max-width:12.643em} }
@media (max-width: 1211px){ .pg-door h2{max-width:12.71em} }
.tm-door .door-art{--ah:330px}
.tm-door .phone{width:min(292px, 80%)}

/* the close: the five of them, as the app draws people */
.tm-crew{display:flex;justify-content:center;margin-bottom:34px}
.tm-crew .av{--av:44px;box-shadow:0 0 0 3px #fff}
.tm-crew .av + .av{margin-left:-10px}

/* ════════════ Shared inside screens ════════════ */
.tm-eff{flex:none;font-size:.77em;font-weight:500;color:var(--s-muted);margin-left:-.05em;align-self:center}
.wk .task.dw-full{display:flex;width:100%}
.tm-board-v{border-radius:0}
.tm-pdot{flex:none;display:inline-block;width:8px;height:8px;border-radius:99px;background:var(--c)}
/* a leave pill in its type's colour, as leaveChip draws it */
.tm-awp{display:inline-flex;align-items:center;gap:5px;height:20px;max-width:100%;padding:0 7px 0 3px;border-radius:6px;font-size:11.5px;font-weight:600;white-space:nowrap;overflow:hidden;
  --lc:var(--teal);background:color-mix(in srgb, var(--lc) 16%, var(--s-paper));box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--lc) 38%, var(--s-paper));color:color-mix(in srgb, var(--lc) 65%, var(--s-ink))}
.tm-awp .av{--av:14px}
.wk-ms.tm-away{border-top-color:transparent}
/* a day on leave in the person grid: the type's hatch, its name in a small chip */
.tm-lvd{position:absolute;top:0;bottom:0;display:grid;place-items:center;pointer-events:none;
  background:repeating-linear-gradient(135deg, transparent 0 4px, color-mix(in srgb, var(--teal) 17%, transparent) 4px 8px)}
.tm-lvd > em,.tm-awc{font-style:normal;font-size:10.5px;font-weight:600;line-height:1;padding:3px 5px;border-radius:4px;white-space:nowrap;
  background:color-mix(in srgb, var(--teal) 16%, var(--s-paper));box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--teal) 38%, var(--s-paper));color:color-mix(in srgb, var(--teal) 65%, var(--s-ink))}
.tm-awc{flex:none;margin-left:2px;font-size:10px;padding:2px 4px}
/* the 14px support lane, in outline */
.tm-demo .tbar.sup{height:14px;font-size:10.5px;padding-left:7px}
/* a section of one object, as ui/Section draws it: a title and its count */
.tm-st{display:flex;align-items:center;gap:8px;margin:0 0 9px;font-size:13px;font-weight:600;letter-spacing:-.005em;color:var(--s-ink)}
.tm-count{font-size:11px;font-weight:550;letter-spacing:0;color:var(--s-ink-2);background:color-mix(in srgb, var(--s-ink) 6%, transparent);border-radius:99px;padding:1px 7px;font-variant-numeric:tabular-nums;white-space:nowrap}
.tm-label{font-size:11px;font-weight:600;letter-spacing:.07em;text-transform:uppercase;color:var(--s-muted);white-space:nowrap}
.tm-amber{color:var(--s-amber)}
/* a milestone past its date: amber, as the app draws it in every row */
.tm-late{--c:var(--s-amber) !important}
.ms-name.tm-late,.tmd-pill.tm-late > b{color:var(--s-amber)}

/* ════════════ Hero: your week becomes the team's week (tmh) ════════════ */
.tmh .sbar{position:relative;padding:0}
.tmh-tb{position:absolute;inset:0;display:flex;align-items:center;gap:12px;padding:0 16px}
.tmh-stage{position:relative;height:376px}
.tmh-wk,.tmh-ov{position:absolute;inset:0;transform-origin:50% 0}
.tmh .wk{height:100%;--slot-h:0px}
.tmh .ruler{height:100%;--lab:136px}
.tmh-ov .trow-who .av{--av:18px}
.tmh[data-ph="week"] .tmh-ov{opacity:0}
.tmh[data-ph="ov"] .tmh-wk{opacity:0;visibility:hidden}
.tmh[data-tb="w"] [data-k="tbo"],.tmh[data-tb="o"] [data-k="tbw"]{opacity:0;visibility:hidden}
.tmh .ui-fly{z-index:6}
.tmh-clone{pointer-events:none}
.tmh .tbar-ms > span{min-width:0;overflow:hidden;text-overflow:ellipsis}
@container (max-width: 559px){
  .tmh-stage{height:384px}
  .tmh .ruler{--lab:84px}
  .tmh .trow-who:has(.tm-awc){padding-bottom:15px}
  .tmh .tm-awc{position:absolute;left:29px;top:calc(50% + 1px);margin:0}
  .tmh .tm-lvd > em{display:none}
  .tmh .tbar-ms{width:calc((100% - var(--lab)) / var(--days) - 6px);max-width:none;justify-content:center;padding:0}
  .tmh .tbar-ms > span{display:none}
  .tmh .wk-day .tm-away{grid-column:2/-1;padding:0 10px 8px 6px;height:auto}
  .tmh .wk-day .tm-away:empty{display:none}
}

/* ════════════ Chapter 1: the composer, for a colleague (tmc) ════════════ */
.tmc-stage{position:relative}
.tmc .wk{--slot-h:300px}
.tmc .wk-ms{height:30px}
.tmc .dw-qa{z-index:7}
.tmc .dw-qa-ch .ui-chip .ui-dia{--c:var(--azure)}
.tmc-pw{height:0;overflow:hidden;margin:0 16px}
.tmc-pwin{margin:-6px 0 14px;padding:6px;border-radius:12px;background:color-mix(in srgb, var(--s-ink) 4%, transparent)}
.tmc-pf{height:28px;margin:0 0 4px;padding:0 9px;display:flex;align-items:center;border-radius:8px;background:var(--s-paper);box-shadow:inset 0 0 0 1px var(--s-rule);font-size:12px;color:var(--s-muted)}
.tmc-pr{position:relative;display:flex;align-items:center;gap:8px;height:28px;padding:0 6px;border-radius:7px;font-size:12px;font-weight:550;color:var(--s-ink);white-space:nowrap}
.tmc-pr .av{--av:18px}
.tmc-pr > b{flex:1;min-width:0;font-weight:550;overflow:hidden;text-overflow:ellipsis}
.tmc-pr .tmc-sw{position:relative;display:inline-grid;min-width:92px;justify-items:end}
.tmc-pr .tmc-sw > *{grid-area:1/1;transition:opacity .2s}
.tmc-acts{display:inline-flex;gap:2px}
.tmc-act{font-size:11px;font-weight:600;color:var(--s-muted);padding:3px 6px;border-radius:6px;transition:background-color .2s, color .2s, box-shadow .2s}
.tmc-act.on{background:var(--s-paper);color:var(--s-ink);box-shadow:0 0 0 1px var(--s-rule)}
.tmc-role{display:inline-flex;align-items:center;gap:6px}
.tmc-role em{font-style:normal;font-size:10.5px;font-weight:600;padding:2px 6px;border-radius:5px;color:color-mix(in srgb, var(--indigo) 72%, var(--s-ink));
  background:color-mix(in srgb, var(--indigo) 14%, transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--indigo) 30%, transparent)}
.tmc-role svg{width:12px;height:12px;fill:none;stroke:var(--s-muted);stroke-width:2.2;stroke-linecap:round}
.tmc-pr[data-lead="1"] .tmc-acts,.tmc-pr:not([data-lead="1"]) .tmc-role{opacity:0}
.tmc .ui-meter.mini > i{background:color-mix(in srgb, var(--s-ink) 42%, transparent)}
.tmc .ui-meter.mini.amber > i{background:var(--s-amber)}
.tmc .ui-meter.mini.red > i{background:var(--s-red)}
.tmc .dw-tipw > .ui-tip{max-width:min(262px, 74cqw)}
.tmc-wl{display:none}
/* on a laptop the tip starts at the chip's left edge, so it sits beside the title rather than over it */
@container (min-width: 560px){
  .tmc .dw-tipw > .ui-tip{left:0;transform:translateY(3px)}
  .tmc .dw-tipw > .ui-tip.on{transform:none}
}
@container (max-width: 559px){
  .tmc .wk{--slot-h:0px}
  .tmc-stage{min-height:446px}
  .tmc-pw{margin:0 16px}
  .tmc-pwin{margin-bottom:9px}
  .tmc .dw-tipw > .ui-tip{display:none}
  .tmc-wl{display:block;box-sizing:border-box;margin:0 16px 10px;padding:6px 10px;border-radius:8px;background:var(--s-ink);color:var(--s-paper);
    font-size:12px;line-height:1.42;font-weight:550;opacity:0;transition:opacity .18s}
  .tmc-wl.on{opacity:1}
  .tmc-wlt{display:block}
}

/* ════════════ Chapter 2: hand-over (tmo) ════════════ */
.tmo .ruler{--lab:96px;--rh:392px}
.tmo .trow.tmo-two{height:62px}
.tmo .tbar.sup{top:39px}
@container (max-width: 559px){
  .tmo .ruler{--lab:76px;--rh:404px}
}

/* ════════════ Chapter 3: the inbox (tmi) ════════════ */
.tmi .wk{--slot-h:214px}
.tmi-bell{position:relative;color:var(--s-ink)}
.tmi-badge{position:absolute;top:-2px;right:-6px;min-width:16px;height:16px;padding:0 4px;border-radius:99px;display:grid;place-items:center;
  background:#F59E0B;color:#451A03;font-size:10px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums;transform:scale(0);transition:transform var(--settle-ms) var(--settle)}
.tmi-badge.on{transform:none}
.tmi-pop{top:46px;right:10px;width:min(372px, calc(100% - 20px));padding:6px 6px 8px}
.tmi-pop .ui-pop-head{padding:8px 10px 6px}
.tmi-row{display:flex;gap:11px;padding:9px 10px 10px;border-radius:9px;font-size:13px;line-height:1.38;color:var(--s-ink)}
.tmi-row .av{--av:26px;margin-top:1px}
.tmi-tx{flex:1;min-width:0}
.tmi-tx p{margin:0}
.tmi-tx b{font-weight:650}
.tmi-q{margin-top:4px !important;color:var(--s-ink-2);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tmi-d{margin-top:2px !important;font-size:12px;color:var(--s-muted)}
.tmi-t{flex:none;font-size:11.5px;color:var(--s-muted);white-space:nowrap;margin-top:2px}
@container (max-width: 559px){
  .tmi .wk-some .wk-slot{min-height:38px}
  .tmi-stage{min-height:420px}
  .tmi-pop{top:46px;left:8px;right:8px;width:auto}
}

/* ════════════ Chapter 4: the milestone drawer (tmd) ════════════ */
.tmd .pjd-stage{height:716px}
.tmd .pjd-panel{width:min(410px, 90%);--c:var(--azure)}
.tmd-strip{padding:14px 16px 0}
.tmd .pjd-stage .ruler{height:var(--rh,118px)}
.tmd .ruler{--rh:118px}
.tmd .g-rows{top:6px}
.tmd .g-row{height:32px}
/* a one-day milestone on the strip: a pill the width of its day, the name floating after it */
.tmd-pill{position:absolute;top:5px;height:22px;left:calc(var(--lab) + (100% - var(--lab)) * (var(--a) - var(--o)) / var(--days) + 3px);width:calc((100% - var(--lab)) / var(--days) - 6px);
  border-radius:99px;display:flex;align-items:center;padding:0 8px;background:var(--s-paper);box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, var(--s-rule));font-size:12px}
.tmd-pill .ui-dia{margin:0}
.tmd-pill > b{position:absolute;left:calc(100% + 6px);top:50%;transform:translateY(-50%);font-size:12px;font-weight:600;white-space:nowrap;color:color-mix(in srgb, var(--c) 60%, var(--s-ink))}
.tmd-list{padding:16px 16px 0}
.tmd-list .tm-label{display:block;margin:0 0 8px 4px}
.tmd-list .tmd-mrow + .tm-label{margin-top:18px}
.tmd-mrow{display:flex;align-items:center;gap:10px;height:40px;padding:0 12px;margin-bottom:6px;border-radius:10px;background:var(--s-paper);box-shadow:inset 0 0 0 1px var(--s-rule);font-size:13px;font-weight:550;white-space:nowrap}
.tmd-mrow .ui-dia{font-size:13px}
.tmd-mrow > span:nth-child(2){flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
.tmd-mrow small{font-size:12px;font-weight:500;color:var(--s-muted)}
.tmd-mrow .av{--av:18px}
.tmd-hist{margin:10px 16px 0;font-size:12px;color:var(--s-muted)}
.tmd-notes{margin:10px 16px 0;font-size:13.5px;line-height:1.5;color:var(--s-ink-2)}
.tmd .pjd-chips{flex-wrap:nowrap}
.tmd .pjd-chips .ui-chip{flex:none}
.tmd .pjd-at.tmd-all{background:none}
.tmd .pjd-cmt + .pjd-cmt{margin-top:0}
@container (max-width: 559px){
  .tmd .pjd-stage{height:640px}
  .tmd .pjd-chips{flex-wrap:wrap}
  .tmd .ruler{--rh:104px}
}

/* ════════════ Chapter 5: leave (tml) ════════════ */
/* the calendar and the card are one height: the request card sets it, and the calendar's rows
   share what it leaves, so neither column ends in a band of nothing */
.tml-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,262px);gap:16px;padding:16px}
.tml-cal{min-width:0;display:flex;flex-direction:column}
.tml .lc{--lab:82px;flex:1;display:flex;flex-direction:column}
.tml .lc-row{flex:1;height:auto;min-height:40px}
.tml .lc-bar{top:calc(50% - 11px)}
.tml .lc-legend{height:30px}
.tml .lc-head > span.tml-hd small{font-size:0}
.tml .lc-head > span.tml-hd small::before{content:"";display:inline-block;width:6px;height:6px;margin:3px 0 1px;border-radius:99px;background:#E5A21A}
.tml-hcol{position:absolute;top:44px;bottom:0;left:calc(var(--lab) + (100% - var(--lab)) * var(--h) / var(--days));width:calc((100% - var(--lab)) / var(--days));
  background:color-mix(in srgb, var(--s-ink) 4.5%, transparent);pointer-events:none}
.tml .lc-bar{transition:background-color .45s, box-shadow .45s, outline-color .45s, color .3s}
.tml .lc-bar.tml-req{z-index:1}
.tml .lc-bar.tml-req.ghost{color:transparent}
/* the request and the decision share one place: a cell both sit in */
.tml-side{position:relative;display:grid;align-content:start;min-width:0}
.tml-ask,.tml-dec{grid-area:1/1;align-self:start;min-width:0}
.tml[data-phase="ask"] .tml-dec,.tml[data-phase="decide"] .tml-ask,.tml[data-phase="done"] .tml-ask{opacity:0;visibility:hidden}
.tm-faqwrap{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(24px,4vw,64px);align-items:start}
.tm-faqhead{position:sticky;top:100px}
.tm-faqhead h2{max-width:9.64em} /* 14ch of DM Sans */
@media (max-width: 1255px){ .tm-faqhead h2{max-width:9.69em} }
@media (max-width: 1157px){ .tm-faqhead h2{max-width:9.73em} }
.tm-faqwrap .pg-faq{max-width:none}
@media (max-width: 1099px){
  .tm-faqwrap{grid-template-columns:minmax(0,1fr);gap:0}
  .tm-faqhead{position:static;margin-bottom:28px}
  .tm-faqhead h2{max-width:13.95em} /* 20ch of DM Sans */
}
@media (max-width: 1028px){ .tm-faqhead h2{max-width:13.99em} }
.tml-chip{flex:none;font-size:11.5px;font-weight:600;padding:3px 9px;border-radius:99px;color:#047857;background:rgba(16,185,129,.10);box-shadow:inset 0 0 0 1px rgba(52,211,153,.30)}
.screen[data-theme="dark"] .tml-chip{color:#6EE7B7}
.tml-h{display:flex;align-items:center;gap:8px;margin:0 0 9px;font-size:11px;font-weight:600;letter-spacing:.07em;text-transform:uppercase;color:var(--s-muted)}
.tml-n{min-width:18px;height:18px;padding:0 5px;border-radius:99px;display:inline-grid;place-items:center;background:#F59E0B;color:#451A03;font-size:10px;font-weight:700;letter-spacing:0}
.tml-ask .dm-lv-box{padding:14px 14px 0}
.tml-dates{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:8px 0 12px}
.tml-dates .ui-chip{justify-content:flex-start}
.tml .dm-lv-fig small{white-space:nowrap}
.tml-more{display:grid;gap:9px;transition:opacity .35s}
.tml-more.off{opacity:0}
.tml-dec .dm-lv-box{position:relative;display:flex;gap:11px;padding:15px 14px 15px 22px}
.tml-dec .dm-lv-box::before{content:"";position:absolute;left:8.5px;top:8.5px;bottom:8.5px;width:3px;border-radius:99px;background:color-mix(in srgb, var(--teal) 80%, var(--s-ink))}
.tml-dec .av{--av:30px}
.tml-asked{margin-left:auto;font-size:11px;font-weight:500;color:var(--s-muted);white-space:nowrap}
/* once decided, the same card says so: the title and the buttons cross-fade to what happened */
.tml-h > span{transition:opacity .22s}
.tml-hw{display:inline-flex;align-items:center;gap:8px}
.tml-hk{position:absolute;inset:0;display:flex;align-items:center;opacity:0}
.tml-h{position:relative}
.tml[data-phase="done"] .tml-hw{opacity:0}
.tml[data-phase="done"] .tml-hk{opacity:1}
.tml-act{display:grid;margin-top:12px}
.tml-btns,.tml-done{grid-area:1/1;display:flex;align-items:center;gap:6px;transition:opacity .24s}
.tml-done{gap:8px;font-size:11.5px;color:var(--s-muted);opacity:0}
.tml[data-phase="done"] .tml-btns{opacity:0}
.tml[data-phase="done"] .tml-done{opacity:1}
@container (max-width: 559px){
  .tml-grid{grid-template-columns:minmax(0,1fr);padding:12px 10px 14px;gap:14px}
  .tml .lc-row{flex:none;height:40px}
  .tml .lc{--lab:76px;--days:5}
  /* a phone shows the requested week only */
  .tml .lc .lc-head > span:nth-child(n+2):nth-child(-n+6),.tml .lc .lc-row > span:not(.lc-bar):nth-child(n+2):nth-child(-n+6){display:none}
  .tml .lc .lc-head > span:nth-child(n+7){display:flex}
  .tml .lc .lc-row > span:not(.lc-bar):nth-child(n+7){display:block}
  .tml .lc .lc-bar{left:calc(var(--lab) + (100% - var(--lab)) * (var(--a) - 5) / 5 + 2px)}
  .tml .lc .lc-bar.tml-early{display:none}
  .tml-hcol{left:calc(var(--lab) + (100% - var(--lab)) * (var(--h) - 5) / 5)}
}

/* ════════════ Chapter 6: Insights, This week (tmn) ════════════ */
.tmn-body{padding:14px 20px 14px}
.tmn-lede{margin:0;max-width:42.39em;font-size:14px;line-height:1.55;color:var(--s-ink);text-wrap:pretty} /* 62ch of DM Sans */
.tmn-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:12px}
.tmn-tile{padding:9px 13px;border-radius:11px;box-shadow:inset 0 0 0 1px var(--s-rule);background:var(--s-paper)}
.tmn-tile b{display:block;font-size:21px;line-height:1.1;font-weight:650;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.tmn-tile span{display:block;margin-top:3px;font-size:11.5px;line-height:1.3;color:var(--s-muted)}
.tmn-sec{margin-top:15px}
.tmn-sec .tm-st{margin-bottom:7px}
.tmn-sec .tm-label{display:block;margin:0 0 6px}
.tmn-m{display:flex;gap:10px;align-items:flex-start;padding:7px 13px 8px;margin-bottom:6px;border-radius:11px;background:var(--s-paper);box-shadow:inset 0 0 0 1px var(--s-rule)}
.tmn-m > .ui-dia{margin-top:6px;font-size:13px}
.tmn-m:last-child{margin-bottom:0}
:where(.dm-insights p){margin:0}
.tmn-m > div{flex:1;min-width:0}
.tmn-l1{display:flex;align-items:baseline;gap:12px;font-size:13px;line-height:18px;font-weight:600;color:var(--s-ink)}
.tmn-l1 > span:first-child{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tmn-l1 > span:last-child{flex:none;font-size:12px;font-weight:500;color:var(--s-ink-2);font-variant-numeric:tabular-nums}
.tmn-l1 > span.tm-amber{color:var(--s-amber)}
.tmn-l2{display:flex;align-items:center;flex-wrap:wrap;gap:3px 12px;margin-top:3px;font-size:12px;color:var(--s-muted)}
.tmn-l2 > :last-child{margin-left:auto}
.tmn-pj{display:inline-flex;align-items:center;gap:6px;color:color-mix(in srgb, var(--c) 62%, var(--s-ink));white-space:nowrap}
.tmn-who{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.tmn-who .av{--av:15px}
.tmn-more{margin:1px 0 0 13px;font-size:12px;color:var(--s-muted)}
.tmn-card{border-radius:12px;background:var(--s-paper);box-shadow:inset 0 0 0 1px var(--s-rule);padding:4px}
.tmn-ch{display:flex;align-items:center;gap:8px;padding:7px 10px 2px;font-size:13px;font-weight:600}
.tmn-ch .av{--av:20px}
.tmn-ch > span:last-child{margin-left:auto;font-size:12px;font-weight:500;color:var(--s-muted);font-variant-numeric:tabular-nums}
.tmn-fold{overflow:hidden}
.tmn-t{display:flex;align-items:center;gap:10px;padding:6px 10px;border-radius:8px}
.tmn-t > div{flex:1;min-width:0}
.tmn-t b{display:block;font-size:13px;font-weight:550;color:var(--s-ink)}
.tmn-t small{display:flex;align-items:center;flex-wrap:wrap;gap:2px 8px;margin-top:2px;font-size:12px;color:var(--s-muted)}
.tmn-t .ui-btn{height:26px;font-size:11.5px;padding:0 9px}
.tmn-t .ui-btn.line{background:none}
.tmn-t .ui-btn:not(.line){background:none}
.tmn-acts{flex:none;display:flex;gap:4px}
@container (max-width: 559px){
  .tmn-body{padding:14px 12px 16px}
  .tmn-tiles{gap:6px}
  .tmn-tile{padding:9px 9px}
  .tmn-tile b{font-size:19px}
  .tmn-t{flex-wrap:wrap}
  .tmn-acts{width:100%;justify-content:flex-end}
}

/* ════════════ Chapter 7: tracking and the budget alert (tmr) ════════════ */
.tmr .pjr-body{height:452px}
.tmr-head{display:flex;align-items:center;gap:20px;height:42px;padding:0 16px;border-bottom:1px solid var(--s-rule);min-width:0}
.tmr-head .pchip{flex:none}
.tmr-head .pj-tabs{flex:1;min-width:0;height:42px;padding:0;border-bottom:0}
.tmr-head .end{flex:none;display:flex;gap:4px;margin-left:auto}
.tmr-head .end .ui-btn:not(.ink){background:none}
.tmr .pjr-strip{justify-content:flex-start}
.tmr .pjr-task{--c:var(--violet)}
.tmr-who{flex:none;display:flex;align-items:center;gap:8px;font-size:11.5px;color:var(--s-muted);white-space:nowrap}
.tmr-who .av{--av:22px}
.tmr-who b{display:block;font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase}
.tmr .pjr-log .pjr-q:last-child{padding:0 7px}
.tmr .pjr-pm > i{background:color-mix(in srgb, var(--violet) 75%, var(--s-ink))}
.tmr .pjr-pn{width:58px}
.tmr .pjr-pq{flex:none;width:52px;font-size:12px;color:var(--s-ink-2);text-align:right;font-variant-numeric:tabular-nums}
/* the alert email, landed in the corner: an email, so white in every theme */
.tmr-mail{position:absolute;right:14px;bottom:14px;z-index:8;width:min(318px, calc(100% - 28px));padding:12px 14px 13px;border-radius:12px;background:#fff;color:#101828;
  box-shadow:0 0 0 1px rgba(15,16,18,.09), 0 22px 44px -22px rgba(15,16,18,.42);font-size:12.5px;line-height:1.45}
.tmr-mail-from{display:flex;align-items:center;gap:7px;margin-bottom:4px;font-size:11.5px;color:#475467}
.tmr-mail-from svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tmr-mail-from b{color:#101828;font-weight:650}
.tmr-mail-s{margin:0 0 3px;font-size:13px;font-weight:650;color:#101828}
.tmr-mail-l{margin:0;color:#344054}
@container (max-width: 559px){
  .tmr .pjr-body{height:520px}
  .tmr-head{gap:12px}
  .tmr-head .end{display:none}
  .tmr .pjr-strip{flex-wrap:wrap;height:auto;padding:10px 12px;gap:8px}
  .tmr .pjr-bh{flex-direction:column;gap:2px}
}

/* ════════════ Static fragments, shelf and use cases (tmf) ════════════ */
.tmf{width:100%;max-width:300px;display:grid;gap:7px;font-size:12px;color:var(--s-ink)}
.tmf-row{display:flex;align-items:center;gap:8px;min-width:0;height:26px;padding:0 9px;border-radius:8px;background:var(--s-paper);box-shadow:inset 0 0 0 1px var(--s-rule);font-weight:550;white-space:nowrap}
.tmf-row .av{--av:16px}
.tmf-row > span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
.tmf-tag{flex:none;font-style:normal;font-size:10.5px;font-weight:600;padding:2px 6px;border-radius:5px;color:color-mix(in srgb, var(--indigo) 72%, var(--s-ink));
  background:color-mix(in srgb, var(--indigo) 13%, transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--indigo) 28%, transparent)}
.tmf-two{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:10px;align-items:center;width:100%;max-width:320px}
.tmf-panel{display:grid;gap:8px;justify-items:start;padding:10px;border-radius:10px;background:var(--s-paper);box-shadow:0 0 0 1px var(--s-rule), 0 12px 24px -16px var(--s-shadow)}
.tmf-panel .av{--av:24px}
.tmf-panel b{font-size:12px;font-weight:600}
.tmf .seg{font-size:11.5px}
.tmf-field{display:flex;align-items:center;height:28px;padding:0 9px;border-radius:8px;background:var(--s-paper);box-shadow:inset 0 0 0 1px var(--s-rule);font-size:12px;color:var(--s-ink-2);white-space:nowrap;overflow:hidden}
.tmf-field.ph{color:var(--s-muted)}
.tmf-field svg{width:13px;height:13px;margin-right:7px;fill:none;stroke:var(--s-muted);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tmf-lab{font-size:11px;font-weight:550;color:var(--s-ink-2)}
.tmf-line{display:flex;align-items:center;gap:6px;min-width:0}
.tmf-link{flex:1;min-width:0;height:26px;line-height:26px;padding:0 9px;border-radius:8px;background:var(--s-bg);box-shadow:inset 0 0 0 1px var(--s-rule);font:500 11px/26px ui-monospace, SFMono-Regular, Menlo, monospace;color:var(--s-ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tmf .ui-btn{height:26px;font-size:11.5px}
.tmf-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.tmf-days span{display:grid;place-items:center;height:28px;border-radius:7px;font-size:11px;font-weight:600;background:var(--s-ink);color:var(--s-paper)}
.tmf-days span.off{background:var(--s-wash);color:var(--s-muted)}
.tmf-hist{display:grid;gap:5px}
.tmf-hist p{margin:0;font-size:12px;line-height:1.45;color:var(--s-ink-2)}
.tmf-hist p b{font-weight:600;color:var(--s-ink)}
.tmf-doc svg{width:14px;height:14px;flex:none;fill:none;stroke:var(--s-muted);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.tmf-doc em{font-style:normal;font-size:11px;color:var(--s-muted)}
.tmf-live{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%;max-width:300px}
.tmf-mini{position:relative;height:84px;border-radius:9px;background:var(--s-paper);box-shadow:0 0 0 1px var(--s-rule), 0 10px 20px -14px var(--s-shadow);overflow:hidden}
/* the day lines; the avatar is an i too, and must not become a line */
.tmf-mini i:not(.av){position:absolute;top:0;bottom:0;width:1px;background:var(--s-rule-2)}
.tmf-mini .av{position:absolute;left:8px;top:11px;--av:14px}
.tmf-mini .tbar{position:absolute;top:34px;height:20px;font-size:11px;left:calc(28% + 2px);width:calc(48% - 4px);padding:0 6px 0 10px}
.tmf-mini .tbar::before{left:3px;top:3px;bottom:3px}
.tmf-mini > span:last-child{position:absolute;left:8px;bottom:8px;font-size:10px;font-weight:600;color:var(--s-muted);letter-spacing:.06em}
.tmf-bar{position:relative;display:flex;align-items:center;height:24px;padding:0 9px 0 12px;border-radius:5px;font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;background:color-mix(in srgb, var(--c) 14%, var(--s-warm))}
.tmf-bar::before{content:"";position:absolute;left:3.5px;top:3.5px;bottom:3.5px;width:2.5px;border-radius:9px;background:color-mix(in srgb, var(--c) 80%, var(--s-ink))}
.tmf-bar.busy{background:var(--s-warm);box-shadow:inset 0 0 0 1px var(--s-rule);color:var(--s-muted);font-weight:550;gap:5px;padding-left:8px}
.tmf-bar.busy::before{display:none}
.tmf-bar.busy svg{width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.tmf-owner{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:11px;background:var(--s-paper);box-shadow:0 0 0 1px var(--s-rule)}
.tmf-owner .av{--av:28px}
.tmf-owner > span{flex:1;font-size:13px;font-weight:600}
.tmf-owner small{display:block;font-size:11px;font-weight:500;color:var(--s-muted)}
/* six switches in the card's height: each row 16px, the switch drawn small (zoom, so it takes less room) */
#shelf-emails .pg-card-art > .screen{padding:12px 16px}
.tmf-sws{display:grid;gap:2px;width:100%;max-width:300px}
.tmf-sws b{font-size:12px;font-weight:650;margin-bottom:2px}
.tmf-sw{display:flex;align-items:center;justify-content:space-between;gap:10px;height:16px;font-size:11.5px;color:var(--s-ink-2);white-space:nowrap}
.tmf-sw .ui-switch{zoom:.72}
.tmf-eu{display:grid;grid-template-columns:auto minmax(0,1fr);gap:16px;align-items:center;width:100%;max-width:300px}
.tmf-map{position:relative;width:104px;height:92px;border-radius:12px;background:radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--s-ink) 22%, transparent) 1px, transparent 1.4px) 0 0/8px 8px, var(--s-paper);box-shadow:0 0 0 1px var(--s-rule)}
.tmf-pin{position:absolute;left:50px;top:24px;display:grid;justify-items:center;gap:3px}
.tmf-pin svg{width:18px;height:22px}
.tmf-pin span{font-size:10.5px;font-weight:650;padding:1px 5px;border-radius:5px;background:var(--s-paper);box-shadow:0 0 0 1px var(--s-rule)}
.tmf-stack{position:relative;height:86px}
.tmf-stack i{position:absolute;left:0;right:0;height:52px;border-radius:10px;background:var(--s-paper);box-shadow:0 0 0 1px var(--s-rule), 0 8px 16px -12px var(--s-shadow);display:flex;align-items:center;gap:6px;padding:0 10px}
.tmf-stack i:nth-child(1){top:0;transform:scale(.88);opacity:.6}
.tmf-stack i:nth-child(2){top:14px;transform:scale(.94);opacity:.85}
.tmf-stack i:nth-child(3){top:30px}
.tmf-stack i .av{--av:16px}
.tmf-stack i .av + .av{margin-left:-8px;box-shadow:0 0 0 2px var(--s-paper)}
.tmf-stack i em{flex:1;height:6px;margin-left:6px;border-radius:99px;background:var(--s-wash)}
.tmf-bill{display:grid;gap:6px;width:100%;max-width:300px}
.tmf-bill > p{margin:0 0 3px;font-size:12.5px;font-weight:600;font-variant-numeric:tabular-nums}
.tmf-rc{display:flex;align-items:center;justify-content:space-between;gap:10px;height:24px;padding:0 8px;border-radius:7px;background:var(--s-paper);box-shadow:inset 0 0 0 1px var(--s-rule);font-size:11.5px;color:var(--s-ink-2);font-variant-numeric:tabular-nums}
.tmf-rc u{text-underline-offset:2px;text-decoration-color:color-mix(in srgb, var(--s-muted) 60%, transparent);color:var(--s-muted)}

/* the use cases' scenes: small pieces of the app, every bar and chip named */
.tmu-grid{display:grid;gap:5px}
.tmu-hd,.tmu-r{position:relative;display:grid;grid-template-columns:20px repeat(5,minmax(0,1fr));align-items:center;column-gap:2px}
.tmu-hd{height:14px;font-size:9.5px;font-weight:600;color:var(--s-muted);text-align:center}
.tmu-hd b{font-weight:600}
.tmu-hd b.hol{position:relative}
.tmu-hd b.hol::after{content:"";position:absolute;left:50%;top:-4px;width:4px;height:4px;margin-left:-2px;border-radius:99px;background:#E5A21A}
.tmu-r{height:20px}
.tmu-r > .av{--av:14px}
.tmu-b,.tmu-leave,.tmu-ghost,.tmu-hday{grid-row:1;min-width:0;height:18px;border-radius:4px}
.tmu-b{position:relative;display:flex;align-items:center;padding:0 5px 0 8px;font-size:10px;font-weight:600;line-height:1;color:var(--s-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  background:color-mix(in srgb, var(--c) 14%, var(--s-warm))}
.tmu-b::before{content:"";position:absolute;left:2.5px;top:3px;bottom:3px;width:2px;border-radius:9px;background:color-mix(in srgb, var(--c) 80%, var(--s-ink))}
.tmu-b.lift{z-index:1;box-shadow:0 8px 14px -6px rgba(15,16,18,.42);transform:translate(-3px,-15px) rotate(-1.5deg)}
.tmu-ghost{box-shadow:inset 0 0 0 1px var(--s-rule);background:var(--s-wash)}
.tmu-leave{display:flex;align-items:center;padding:0 7px;font-size:10px;font-weight:600;white-space:nowrap;overflow:hidden;
  background:color-mix(in srgb, var(--teal) 16%, var(--s-paper));box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--teal) 38%, var(--s-paper));color:color-mix(in srgb, var(--teal) 65%, var(--s-ink))}
.tmu-hday{z-index:1;margin:2px;height:14px;border-radius:3px;background:repeating-linear-gradient(135deg, color-mix(in srgb, var(--s-paper) 70%, transparent) 0 3px, transparent 3px 6px), color-mix(in srgb, var(--s-amber) 22%, var(--s-paper))}
.tmu-note{margin-top:2px;font-size:10.5px;color:var(--s-ink-2)}
.tmu-load{display:grid;gap:9px}
.tmu-lr{display:grid;grid-template-columns:auto 44px minmax(0,1fr) auto;align-items:center;gap:6px;font-size:11px;white-space:nowrap}
.tmu-lr .av{--av:16px}
.tmu-lr b{font-weight:600}
.tmu-lr em{font-style:normal;font-size:10.5px;color:var(--s-ink-2);font-variant-numeric:tabular-nums}
.tmu-lr .ui-meter > i{background:color-mix(in srgb, var(--s-ink) 42%, transparent)}
.tmu-lr .ui-meter.amber > i{background:var(--s-amber)}
.tmu-wl{display:grid;justify-items:start;gap:7px}
.tmu-tip{max-width:100%;padding:5px 8px;border-radius:7px;background:var(--s-ink);color:var(--s-paper);font-size:10.5px;line-height:1.38;font-weight:550}
.tmu-wl .ui-chip .av{--av:14px}
.tmu-wl .ui-meter.mini{width:22px;height:4px}
.tmu-wl .ui-meter.mini.amber > i{background:var(--s-amber)}
.tmu-wp{display:grid;gap:5px;justify-items:start}
.tmu-wp .pchip{font-size:11px;margin:0 0 2px 2px}
.tmu-mrow{display:flex;align-items:center;gap:7px;width:100%;height:24px;padding:0 9px;border-radius:7px;background:var(--s-paper);box-shadow:inset 0 0 0 1px var(--s-rule);font-size:11px;font-weight:550;white-space:nowrap}
.tmu-mrow .ui-dia{font-size:12px;margin:0}
.tmu-mrow > span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
.tmu-mrow svg{width:12px;height:12px;fill:none;stroke:var(--s-muted);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.tmu-th{display:grid;gap:8px}
.tmu-mh{display:flex;align-items:center;gap:6px;font-size:11.5px;font-weight:600}
.tmu-mh .ui-dia{font-size:12px;margin:0}
.tmu-cmt{display:flex;gap:7px;font-size:10.5px;line-height:1.4;color:var(--s-ink)}
.tmu-cmt .av{--av:18px;margin-top:1px}
.tmu-cmt b{display:block;font-size:10.5px;font-weight:600}
.tmu-at{font-weight:600;border-radius:3px;padding:0 2px;margin:0 -2px;background:var(--s-amber-bg)}
.tmu-mail{display:grid;gap:2px;padding:9px 10px;border-radius:8px;background:#fff;color:#344054;box-shadow:0 0 0 1px rgba(15,16,18,.08);font-size:10.5px;line-height:1.35}
.tmu-mail b{font-size:11.5px;font-weight:650;color:#101828;margin-bottom:1px}
.tmu-from{display:flex;align-items:center;gap:5px;font-size:10px;color:#475467}
.tmu-from svg{width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tmu-burn{display:grid;gap:7px}
.tmu-bh{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;white-space:nowrap}
.tmu-bh b{font-weight:600}
.tmu-bh .pchip{font-size:10.5px;color:var(--s-ink-2)}
.tmu-bf{display:flex;justify-content:space-between;gap:8px;font-size:10px;color:var(--s-ink-2);white-space:nowrap}

@media (max-width: 1023px){
  .tm-uses{grid-template-columns:minmax(0,1fr)}
}
@media (max-width: 599px){
  .tm-use{grid-template-columns:minmax(0,1fr);gap:14px;padding:14px}
  .tm-use-art{height:118px}
  .tm-use-art > .screen{padding:12px 16px}
  .tm-price .pg-price{padding:16px 18px}
}
