/* The team family's demos: the Overview (who, room, hand-over, private time, add), the inbox
   with its catch-up email, leave, and the brief with Insights' This week. Built on the kit
   (kit.css, app.css); every name here starts dm- so nothing collides in a one-file page.

   Rules this file keeps:
   - Every colour inside a screen is a screen token (--s-*), so the three themes hold. The one
     exception is the catch-up email, which is an email: white in every theme.
   - Each demo's height is fixed here, so no beat ever changes it.
   - Things move by transform. The only heights that change are inside floating cards (a
     picker well opening, as the app's EXPAND does), which never move the page. */

figure.dm{margin:0}
/* the cursor rides above every card, drawer and tip a demo floats */
.dm-ov .ui-cursor,.dm-ib .ui-cursor,.dm-lv .ui-cursor,.dm-br .ui-cursor{z-index:12}

/* ════════════ The Overview, shared by five demos ════════════ */
.dm-ov .ruler{--lab:96px}
.dm-ov .trow-who{font-size:12.5px}
/* a bar's title, then its project (by person) or its lead (by project), quieter */
.dm-ov .tbar{gap:6px}
.dm-ov .tbar > .dm-ov-t{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
.dm-ov .tbar > em{flex:0 10 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;font-style:normal;font-size:11px;font-weight:550;
  color:color-mix(in srgb, var(--c) 62%, var(--s-ink));opacity:.9;transition:opacity .16s}
.dm-ov .tbar.sup > em,.dm-ov .tbar.dm-ov-noem > em{display:none}
/* a public holiday: the app's amber dot in the day's header */
.dm-ov-hol{position:absolute;top:9px;left:calc(var(--x) + var(--cw) - 13px);width:6px;height:6px;border-radius:99px;background:#E5A21A}
.ruler[data-lb="s"] .dm-ov-hol{top:6px;left:calc(var(--x) + var(--cw) - 10px)}
/* private time, as the app draws it: the lock and one word, no project, no line */
.dm-ov .tbar.busy{gap:5px;padding:0 8px;background:var(--s-warm);box-shadow:inset 0 0 0 1px var(--s-rule);color:var(--s-muted)}
.dm-ov .tbar.busy > em{display:none}
.dm-ov-lock{flex:none;width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;display:none}
.dm-ov .tbar.busy .dm-ov-lock{display:block}
/* a row being dropped on */
.dm-ov .trow{transition:background-color .25s}
.dm-ov .trow.dm-ov-over{background:var(--s-wash)}
/* the bar in a hand: above everything, with the lift's shadow */
.dm-ov .tbar.dm-ov-lift{z-index:4;box-shadow:0 1px 2px rgba(15,16,18,.10), 0 14px 26px -12px rgba(15,16,18,.38)}
/* the load beside a dragged bar, as the app's drag overlay shows it: paper, quiet, amber when tight */
.dm-ov-load{position:absolute;left:0;top:0;z-index:5;padding:3px 8px;border-radius:6px;background:var(--s-paper);box-shadow:0 0 0 1px var(--s-rule), 0 6px 14px -8px rgba(15,16,18,.3);
  font-size:11.5px;font-weight:600;white-space:nowrap;color:var(--s-amber);opacity:0;pointer-events:none;will-change:transform;transition:opacity .2s}
.dm-ov-load.on{opacity:1}
/* the hover words of a bar (the app's GridTip): dark, small, wraps once */
.dm-ov-tip{position:absolute;left:0;top:0;z-index:7;max-width:360px;width:max-content;padding:6px 10px;border-radius:8px;background:var(--s-ink);color:var(--s-paper);
  font-size:11.5px;font-weight:550;line-height:1.4;white-space:normal;opacity:0;pointer-events:none;transition:opacity .2s}
.dm-ov-tip.on{opacity:1}
/* an empty day that answers the pointer: the wash and a small plus */
.dm-ov-add{position:absolute;top:0;bottom:0;left:calc(var(--lab) + (100% - var(--lab)) * var(--a) / var(--days));width:var(--cw);background:var(--s-wash);opacity:0;transition:opacity .2s}
.dm-ov-add::after{content:"+";position:absolute;right:6px;bottom:3px;font-size:13px;line-height:1;font-weight:500;color:var(--s-muted)}
.dm-ov-add.on{opacity:1}
/* a quiet scrim over the grid while a card floats over it */
.dm-ov-scrim{position:absolute;inset:0;z-index:6;background:rgba(10,10,12,.16);opacity:0;pointer-events:none;transition:opacity .25s}
.dm-ov-scrim.on{opacity:1}
.screen[data-theme="dark"] .dm-ov-scrim, html[data-screens="dark"] .screen:not([data-fixed]) .dm-ov-scrim{background:rgba(0,0,0,.42)}
@container (max-width: 559px){
  .dm-ov .ruler{--lab:76px}
  .dm-ov .tbar > em{display:none}
  .dm-ov .tbar{padding-right:5px;font-size:11.5px}
  .dm-ov .tbar-ms{font-size:11.5px}
  .dm-ov-tip{max-width:200px}
}

/* ── team-who: one set of bars that regroups between two sets of rows ── */
.dm-ov-who .ruler{--lab:128px;--rh:320px}
.dm-ov-pv .dm-ov-lay{position:absolute;inset:0;transition:opacity .32s var(--ease-out)}
.dm-ov-pv .dm-ov-row{position:absolute;left:0;right:0;top:var(--y);height:var(--h);border-bottom:1px solid var(--s-rule-2)}
.dm-ov-pv .dm-ov-band{background:color-mix(in srgb, var(--c) 5%, var(--s-paper))}
.dm-ov-pv .dm-ov-band.dm-ov-split{border-bottom-color:color-mix(in srgb, var(--s-rule-2) 50%, transparent)}
.dm-ov-pv .dm-ov-band .trow-who{align-items:flex-start;padding-top:15px;line-height:1.2;white-space:normal;color:color-mix(in srgb, var(--c) 62%, var(--s-ink))}
.dm-ov-pd{flex:none;width:8px;height:8px;margin-top:3px;border-radius:99px;background:var(--c)}
.dm-ov-pv .tbar,.dm-ov-pv .tbar-ms,.dm-ov-pv .tbar-away{top:var(--yp)}
.dm-ov-pv[data-mode="project"] .tbar,.dm-ov-pv[data-mode="project"] .tbar-ms{top:var(--yj)}
.dm-ov-pv[data-mode="person"] .dm-ov-lay-j,.dm-ov-pv[data-mode="project"] .dm-ov-lay-p,.dm-ov-pv[data-mode="project"] .tbar-away{opacity:0}
@container (max-width: 559px){
  .dm-ov-who .ruler{--lab:84px}
  .dm-ov-pv .dm-ov-band .trow-who{font-size:11.5px;padding:12px 6px 0 9px;gap:5px}
  .dm-ov-pd{width:7px;height:7px}
}

/* ── team-handover, team-private, team-add ── */
.dm-ov-hand .ruler{--rh:292px}
.dm-ov-priv .ruler{--rh:236px}
.dm-ov-add-d .ruler{--rh:282px}
@container (max-width: 559px){
  .dm-ov-hand .ruler{--rh:304px}
}

/* ── team-room and team-add: the quick-add card, as the composer draws it ── */
.dm-qa{position:absolute;z-index:8;width:min(372px, calc(100% - 24px));background:var(--s-paper);border-radius:16px;
  box-shadow:0 0 0 1px var(--s-rule), 0 28px 56px -22px rgba(15,16,18,.38), 0 2px 6px var(--s-shadow)}
.dm-qa-head{display:flex;align-items:center;gap:6px;height:42px;padding:0 14px;white-space:nowrap}
.dm-qa-label{font-size:11px;font-weight:600;letter-spacing:.07em;text-transform:uppercase;color:var(--s-muted)}
.dm-qa-sep{font-size:12px;color:var(--s-muted);opacity:.6}
.dm-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)}
.dm-qa-day svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.dm-qa-day svg + span + svg{width:10px;height:10px;opacity:.7}
.dm-qa-title{padding:0 16px;font-size:17px;line-height:28px;min-height:28px;font-weight:550;letter-spacing:-.015em;color:var(--s-ink);white-space:nowrap;overflow:hidden}
.dm-qa-title:empty::before{content:"What needs doing?";color:var(--s-muted);font-weight:400;opacity:.7}
.dm-qa-title.ui-caret:empty::before{content:none}
.dm-qa-note{padding:0 16px;font-size:13px;line-height:20px;color:var(--s-muted);opacity:.85}
.dm-qa-body{padding:10px 14px 13px}
.dm-qa .ui-chip .av{--av:16px}
.dm-qa .ui-chip .dm-qa-pdot{flex:none;width:8px;height:8px;border-radius:99px;background:var(--c)}
.dm-qa .ui-chip.open{background:var(--s-warm)}
.dm-qa-ppl{position:relative}
.dm-qa .ui-meter.mini{width:24px;height:4px;margin-left:2px;background:color-mix(in srgb, var(--s-ink) 10%, transparent)}
.dm-qa .ui-meter.mini > i{background:color-mix(in srgb, var(--s-ink) 40%, transparent)}
.dm-qa .ui-meter.mini.amber > i{background:#E39A12}
.dm-qa .ui-meter.mini.red > i{background:#E0473A}
.dm-qa-foot{display:flex;align-items:center;gap:6px;padding:9px 12px 10px 16px;border-top:1px solid var(--s-rule-2)}
.dm-qa-keys{flex:1;min-width:0;font-size:11px;color:var(--s-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dm-qa-keys kbd{font:600 10.5px/1 var(--sans);padding:2px 4px;border-radius:4px;box-shadow:inset 0 0 0 1px var(--s-rule);color:var(--s-ink-2)}
.dm-qa-foot .ui-btn{height:30px}
.dm-qa-foot .ui-btn:not(.ink){background:none}
/* the people picker, opened inline in the well under the chips */
.dm-qa-well{height:0;overflow:hidden}
.dm-qa-wellin{margin-top:9px;padding:6px;border-radius:12px;background:var(--s-wash)}
.dm-qa-pr{display:flex;align-items:center;gap:8px;height:30px;padding:0 6px;border-radius:7px;font-size:12px;font-weight:550;color:var(--s-ink);white-space:nowrap}
.dm-qa-pr .av{--av:18px}
.dm-qa-pr > span:first-of-type{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
.dm-qa-role{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)}
.dm-qa-x{width:12px;height:12px;margin:0 3px;fill:none;stroke:var(--s-muted);stroke-width:2.2;stroke-linecap:round}
.dm-qa-act{font-size:11px;font-weight:600;color:var(--s-muted);padding:3px 6px;border-radius:6px;transition:background-color .2s, color .2s}
.dm-qa-act.on{background:var(--s-paper);color:var(--s-ink);box-shadow:0 0 0 1px var(--s-rule)}
.dm-qa-field{height:30px;margin:6px 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)}
/* the workload sentence: the People chip's hover tip */
.dm-qa-tip{position:absolute;left:0;bottom:calc(100% + 8px);z-index:9;width:max-content;max-width:268px;padding:7px 10px;border-radius:9px;background:var(--s-ink);color:var(--s-paper);
  font-size:12px;font-weight:550;line-height:1.42;white-space:normal;opacity:0;pointer-events:none;transition:opacity .2s;box-shadow:0 10px 22px -12px rgba(15,16,18,.5)}
.dm-qa-tip.on{opacity:1}
/* on a phone the card is a bottom sheet */
@container (max-width: 559px){
  .dm-qa{width:auto;left:0 !important;right:0 !important;bottom:0 !important;top:auto !important;border-radius:18px 18px 0 0;box-shadow:0 0 0 1px var(--s-rule), 0 -18px 40px -22px rgba(15,16,18,.4)}
  .dm-qa::before{content:"";display:block;width:36px;height:4px;margin:8px auto 0;border-radius:99px;background:var(--s-rule)}
  .dm-qa-head{height:36px}
  .dm-qa-keys{display:none}
  .dm-qa-foot{justify-content:flex-end;padding-bottom:14px}
  .dm-qa-foot .ui-btn.ink{flex:1;height:36px}
  .dm-qa-foot .ui-btn{height:36px}
  .dm-qa-tip{max-width:226px}
}

/* ── team-room ── */
.dm-ov-room .ruler{--rh:354px}
.dm-ov-room .dm-qa{left:auto;right:16px;top:62px}
@container (max-width: 559px){
  .dm-ov-room .ruler{--rh:360px}
}

/* ── team-add: the card opens at the click, upward, pinned by its foot ── */
.dm-ov-add-d .dm-qa{transform-origin:var(--ox, 80%) 100%}

/* ════════════ team-inbox ════════════ */
/* the screen is the size container, so its height is set by what is inside it */
.dm-ib .sbody{height:394px}
.dm-ib .wk{--big:13px}
.dm-ib .wk-slot{min-height:300px}
.dm-ib-bell{position:relative;color:var(--s-ink)}
.dm-ib-badge{position:absolute;top:-1px;right:-5px;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)}
.dm-ib-badge.on{transform:none}
.dm-ib-scrim{position:absolute;inset:0;z-index:6;background:rgba(10,10,12,.14);opacity:0;pointer-events:none;transition:opacity .28s}
.dm-ib-scrim.on{opacity:1}
.screen[data-theme="dark"] .dm-ib-scrim, html[data-screens="dark"] .screen:not([data-fixed]) .dm-ib-scrim{background:rgba(0,0,0,.42)}
/* the inbox: a drawer from the right on a wide screen, a sheet from the foot on a phone */
.dm-ib-panel{position:absolute;top:0;right:0;bottom:0;z-index:7;width:min(352px, 58%);display:flex;flex-direction:column;background:var(--s-paper);
  border-left:1px solid var(--s-rule);box-shadow:-28px 0 56px -32px rgba(15,16,18,.34);transform:translateX(104%);visibility:hidden}
.dm-ib-panel.on{transform:none;visibility:visible}
.dm-ib-head{flex:none;display:flex;align-items:center;gap:10px;height:56px;padding:0 10px 0 20px}
.dm-ib-head b{flex:1;font-size:15px;font-weight:650;letter-spacing:-.01em}
.dm-ib-body{flex:1;min-height:0;padding:0 8px}
.dm-ib-label{margin:0;padding:6px 12px 4px;font-size:11px;font-weight:600;letter-spacing:.07em;text-transform:uppercase;color:var(--s-muted)}
.dm-ib-label + .dm-ib-row{margin-top:0}
.dm-ib-row{display:flex;gap:11px;padding:8px 12px 9px;border-radius:9px;font-size:13px;line-height:1.38;color:var(--s-ink-2)}
.dm-ib-row + .dm-ib-label{margin-top:12px}
.dm-ib-row .av{--av:24px;margin-top:1px}
.dm-ib-tx{flex:1;min-width:0}
.dm-ib-tx p{margin:0}
.dm-ib-tx b{font-weight:600;color:var(--s-ink)}
.dm-ib-row.un{color:var(--s-ink)}
.dm-ib-d{margin-top:2px !important;font-size:12px;color:var(--s-muted)}
.dm-ib-warn{color:var(--s-amber);font-weight:600}
.dm-ib-q{margin-top:4px !important;color:var(--s-ink-2);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.dm-ib-m{display:flex;align-items:center;gap:6px;margin-top:4px !important;font-size:12px;color:var(--s-muted);white-space:nowrap}
.dm-ib-m i{flex:none;width:3px;height:12px;border-radius:9px;background:var(--c)}
.dm-ib-m span{color:color-mix(in srgb, var(--c) 62%, var(--s-ink));overflow:hidden;text-overflow:ellipsis}
.dm-ib-dot{flex:none;width:6px;height:6px;margin-top:7px;border-radius:99px;background:var(--s-ink);transition:opacity .3s}
.dm-ib-row:not(.un) .dm-ib-dot{opacity:0}
.dm-ib-grip{display:none}
@container (max-width: 559px){
  .dm-ib .sbody{height:auto;min-height:392px}
  .dm-ib .wk-slot{min-height:0}
  .dm-ib .wk-some .wk-slot{min-height:40px}
  .dm-ib-panel{top:auto;left:0;width:auto;height:93%;border-left:0;border-radius:18px 18px 0 0;box-shadow:0 -20px 44px -24px rgba(15,16,18,.4);transform:translateY(104%)}
  .dm-ib-grip{display:block;width:36px;height:4px;margin:8px auto 0;border-radius:99px;background:var(--s-rule)}
  .dm-ib-head{height:46px;padding-left:18px}
  .dm-ib-body{padding:0 6px}
  .dm-ib-row{padding:8px 10px 9px;gap:10px}
}

/* the catch-up email: an email, so white in every theme */
.dm-mail{max-width:560px}
.dm-mail-win{border-radius:14px;overflow:hidden;background:#fff;color:#101828;box-shadow:0 0 0 1px rgba(15,16,18,.09), 0 24px 48px -30px rgba(15,16,18,.3)}
.dm-mail-env{display:grid;gap:3px;padding:14px 18px;border-bottom:1px solid #EAECF0;background:#F9FAFB;font-size:12.5px;color:#475467}
.dm-mail-env b{color:#101828;font-weight:650}
.dm-mail-subj{font-size:14px;font-weight:650;color:#101828;line-height:1.35}
.dm-mail-body{padding:20px 22px 22px;font-size:14px;line-height:1.5}
.dm-mail-top{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:18px;font-size:14px;font-weight:650}
.dm-mail-top span{font-size:12px;font-weight:400;color:#667085}
.dm-mail-eye{margin:0 0 10px;font-size:11px;font-weight:600;letter-spacing:.07em;text-transform:uppercase;color:#667085}
.dm-mail-e{display:flex;gap:12px;margin-bottom:14px}
.dm-mail-e i{flex:none;width:3px;border-radius:2px;background:var(--c)}
.dm-mail-e a{font-size:15.5px;font-weight:600;color:#101828;text-decoration:underline;text-decoration-color:#D0D5DD;text-underline-offset:3px}
.dm-mail-e small{display:block;margin-top:2px;font-size:13px;color:#667085}
.dm-mail-e small b{color:#B54708;font-weight:600}
.dm-mail-q{margin:6px 0 0;padding-left:10px;border-left:2px solid #EAECF0;font-size:13px;color:#344054}
.dm-mail-also{margin:0 0 6px;font-size:13.5px;color:#344054}
.dm-mail-also b{color:#101828;font-weight:600}
.dm-mail-cta{display:inline-block;margin-top:10px;padding:9px 16px;border-radius:8px;background:#101828;color:#fff;font-size:13.5px;font-weight:600}
.dm-mail-foot{margin:18px 0 0;padding-top:14px;border-top:1px solid #EAECF0;font-size:11.5px;line-height:1.5;color:#667085}
.dm-mail-foot u{text-underline-offset:2px}

/* ════════════ team-leave ════════════ */
/* the screen is the size container, so the grid inside it holds the height */
.dm-lv-tabs{display:flex;gap:18px;height:44px;padding:0 18px;align-items:stretch;border-bottom:1px solid var(--s-rule);font-size:13px;font-weight:550;color:var(--s-muted)}
.dm-lv-tabs span{display:flex;align-items:center;position:relative}
.dm-lv-tabs .on{color:var(--s-ink)}
.dm-lv-tabs .on::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;border-radius:2px;background:var(--s-ink)}
.dm-lv-grid{display:grid;grid-template-columns:minmax(0,272px) minmax(0,1fr);gap:16px;padding:16px;height:446px}
.dm-lv-side{display:grid;gap:14px;align-content:start;min-width:0}
/* the card holds two moments in one grid cell, so it is always as tall as the taller one */
.dm-lv-card{display:grid;min-width:0}
.dm-lv-ask,.dm-lv-dec{grid-area:1/1;align-self:start;min-width:0;transition:opacity .3s var(--ease-out), transform .38s var(--ease-out)}
.dm-lv-card[data-phase="ask"] .dm-lv-dec,.dm-lv-card[data-phase="decide"] .dm-lv-ask{opacity:0;transform:translateY(6px);pointer-events:none}
.dm-lv-h{margin:0 0 9px;font-size:11px;font-weight:600;letter-spacing:.07em;text-transform:uppercase;color:var(--s-muted)}
.dm-lv-box{border-radius:14px;background:var(--s-paper);box-shadow:0 0 0 1px var(--s-rule), 0 18px 34px -24px rgba(15,16,18,.3)}
.dm-lv-ask .dm-lv-box{padding:14px 14px 0}
.dm-lv-ask .ui-chips{margin-bottom:12px}
.dm-lv-tdot{flex:none;width:8px;height:8px;border-radius:99px;background:var(--c)}
.dm-lv-sum{padding:12px 13px;border-radius:11px;box-shadow:inset 0 0 0 1px var(--s-rule);display:grid;gap:9px}
.dm-lv-fig{display:flex;align-items:baseline;gap:6px;white-space:nowrap}
.dm-lv-fig b{font-size:24px;line-height:1;font-weight:650;letter-spacing:-.02em;font-variant-numeric:tabular-nums;display:inline-block;min-width:.62em}
.dm-lv-fig span{font-size:13px;color:var(--s-ink-2)}
.dm-lv-fig small{margin-left:auto;font-size:12px;color:var(--s-muted)}
.dm-lv-hol{margin:0;min-height:2.8em;font-size:12px;line-height:1.4;color:var(--s-muted);transition:opacity .35s}
.dm-lv-hol.off{opacity:0}
.dm-lv-bal{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:var(--s-ink-2);white-space:nowrap}
.dm-lv-bal b{font-weight:650;color:var(--s-ink)}
.dm-lv-sum .ui-meter{--c:var(--teal);height:6px;background:color-mix(in srgb, var(--s-ink) 8%, transparent)}
.dm-lv-sum .ui-meter > i{background:var(--teal)}
.dm-lv-sum .ui-meter > em{background:repeating-linear-gradient(135deg, color-mix(in srgb, var(--teal) 50%, var(--s-paper)) 0 3px, transparent 3px 6px)}
.dm-lv-away{margin:0;font-size:12px;color:var(--s-muted)}
.dm-lv-foot{display:flex;align-items:center;gap:10px;margin:12px -14px 0;padding:11px 14px;border-top:1px solid var(--s-rule-2)}
.dm-lv-foot span{flex:1;font-size:12px;color:var(--s-muted);line-height:1.35}
/* the approver's card: its project line is the leave type's colour */
.dm-lv-dec .dm-lv-box{position:relative;display:flex;gap:11px;padding:15px 14px 15px 22px}
.dm-lv-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))}
.dm-lv-dec .av{--av:30px}
.dm-lv-who{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;font-size:13px;font-weight:600}
.dm-lv-who span{display:inline-flex;align-items:center;gap:6px;font-weight:500;color:var(--s-ink-2)}
.dm-lv-when{margin:5px 0 0;font-size:13px;color:var(--s-ink)}
.dm-lv-when em{font-style:normal;color:var(--s-muted)}
.dm-lv-facts{display:grid;gap:2px;margin:7px 0 0;font-size:12px;color:var(--s-muted)}
.dm-lv-act{position:relative;height:30px;margin-top:12px}
.dm-lv-act > *{position:absolute;left:0;top:0;transition:opacity .25s}
.dm-lv-act .ui-chips{flex-wrap:nowrap}
.dm-lv-ok{display:inline-flex;align-items:center;height:24px;padding:0 9px;border-radius:99px;font-size:11.5px;font-weight:600;
  color:color-mix(in srgb, var(--forest) 80%, var(--s-ink));background:color-mix(in srgb, var(--green) 12%, transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--green) 32%, transparent)}
.dm-lv-act[data-done="0"] .dm-lv-ok,.dm-lv-act[data-done="1"] .dm-lv-btns{opacity:0}
/* who's away, as the Leave tab lists it; the approved booking joins it */
.dm-lv-wa{margin-top:22px}
.dm-lv-sub{margin:-3px 0 9px;font-size:12px;color:var(--s-muted)}
.dm-lv-wa ul{display:grid;gap:10px;margin:0;padding:0;list-style:none}
.dm-lv-wa li{display:flex;align-items:center;gap:10px;min-width:0}
.dm-lv-wa li .av{--av:26px}
.dm-lv-wa li > span{display:grid;gap:1px;min-width:0}
.dm-lv-wa b{font-size:13px;font-weight:550;color:var(--s-ink)}
.dm-lv-wa small{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--s-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dm-lv-wa .dm-lv-tdot{width:6px;height:6px}
.dm-lv-cal{min-width:0}
.dm-lv-cal .lc{--lab:84px}
.dm-lv .lc-legend{height:30px}
/* the holiday: a tag in the day's header, and the day shaded under the rows */
.dm-lv-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%, transparent);opacity:0;transition:opacity .3s}
.dm-lv-htag{position:absolute;top:3px;left:calc(var(--lab) + (100% - var(--lab)) * (var(--h) + .5) / var(--days));z-index:2;width:8px;height:8px;margin-left:-4px;border-radius:99px;
  background:#E5A21A;box-shadow:0 0 0 2px var(--s-paper);opacity:0}
.dm-lv-on .dm-lv-hcol{opacity:1}
.dm-lv-on .dm-lv-htag{opacity:1}
/* the request on the calendar: a dashed ghost, then the leave's colour once approved */
.dm-lv .lc-bar{transition:background-color .45s, box-shadow .45s, outline-color .45s, color .3s}
.dm-lv .lc-bar.dm-lv-req{z-index:1}
.dm-lv .lc-bar.dm-lv-req.ghost{color:transparent}
.dm-lv .lc-bar.dm-lv-hc{z-index:2;top:12px;height:16px;border-radius:4px;background:var(--s-hatch);box-shadow:none;opacity:0;transition:opacity .3s}
.dm-lv-on .lc-bar.dm-lv-hc{opacity:1}
.dm-lv-strip{margin-top:12px}
.dm-lv-strip .ruler{--lab:84px;--rh:94px}
.dm-lv-sh{margin:0 0 7px;font-size:11px;font-weight:600;letter-spacing:.07em;text-transform:uppercase;color:var(--s-muted)}
.dm-lv-strip .trow{border-bottom:0}
.dm-lv-strip .dm-ov-hol{opacity:0;transition:opacity .3s}
.dm-lv-on .dm-lv-strip .dm-ov-hol{opacity:1}
@container (max-width: 559px){
  .dm-lv-grid{height:auto}
  .dm-lv-tabs{gap:14px;padding:0 14px}
  .dm-lv-grid{grid-template-columns:minmax(0,1fr);padding:12px 10px 14px;gap:12px}
  .dm-lv-wa{margin-top:18px}
  .dm-lv-wa .dm-lv-sub,.dm-lv-wa li.dm-lv-quiet{display:none}
  .dm-lv-wa .dm-lv-h{margin-bottom:10px}
  .dm-lv-cal .lc{--lab:76px;--days:5}
  /* a phone shows the requested week only */
  .dm-lv-cal .lc .lc-head > span:nth-child(n+2):nth-child(-n+6),.dm-lv-cal .lc .lc-row > span:not(.lc-bar):nth-child(n+2):nth-child(-n+6){display:none}
  .dm-lv-cal .lc .lc-head > span:nth-child(n+7),.dm-lv-cal .lc .lc-row > span:not(.lc-bar):nth-child(n+7){display:flex}
  .dm-lv-cal .lc .lc-row > span:not(.lc-bar):nth-child(n+7){display:block}
  .dm-lv-cal .lc .lc-bar{left:calc(var(--lab) + (100% - var(--lab)) * (var(--a) - 5) / 5 + 2px)}
  .dm-lv-cal .lc .lc-bar.dm-lv-early{display:none}
  .dm-lv-hcol{left:calc(var(--lab) + (100% - var(--lab)) * (var(--h) - 5) / 5)}
  .dm-lv-htag{left:calc(var(--lab) + (100% - var(--lab)) * (var(--h) - 4.5) / 5)}
  .dm-lv-cal .lc-row.dm-lv-quiet{display:none}
  .dm-lv-strip{display:none}
}

/* the balances strip and the policy card, static */
.dm-bal{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:16px}
.dm-bal-c{padding:13px 14px;border-radius:12px;background:var(--s-paper);box-shadow:0 0 0 1px var(--s-rule)}
.dm-bal-t{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12.5px;color:var(--s-ink-2);white-space:nowrap}
.dm-bal-t span{display:inline-flex;align-items:center;gap:7px;min-width:0;overflow:hidden;text-overflow:ellipsis}
.dm-bal-t small{font-size:11px;color:var(--s-muted)}
.dm-bal-f{display:flex;align-items:baseline;gap:6px;margin:8px 0 10px}
.dm-bal-f b{font-size:26px;line-height:1;font-weight:650;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.dm-bal-f span{font-size:12.5px;color:var(--s-muted)}
.dm-bal-c .ui-meter{height:6px;background:color-mix(in srgb, var(--s-ink) 8%, transparent)}
.dm-bal-c .ui-meter > i{background:var(--c)}
.dm-bal-c .ui-meter > em{background:repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 50%, var(--s-paper)) 0 3px, transparent 3px 6px)}
.dm-bal-p{margin:8px 0 0;font-size:11.5px;color:var(--s-muted)}
.dm-pol{padding:16px}
.dm-pol-c{border-radius:12px;background:var(--s-paper);box-shadow:0 0 0 1px var(--s-rule);padding:14px 16px 6px}
.dm-pol-h{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600}
.dm-pol-s{margin:4px 0 10px;font-size:12px;color:var(--s-muted)}
.dm-pol-r{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--s-rule-2);font-size:12.5px;font-weight:550}
.dm-pol-r > span{flex:1;min-width:0}
.dm-pol-r small{display:block;margin-top:1px;font-size:11.5px;font-weight:400;color:var(--s-muted)}
@container (max-width: 559px){
  .dm-bal{grid-template-columns:minmax(0,1fr);padding:12px 10px}
  .dm-pol{padding:12px 10px}
}

/* ════════════ team-brief, and Insights' This week ════════════ */
.dm-br .ruler{--lab:96px;--rh:322px}
.dm-br .tb-brief{--brief-h:94px}
.dm-br .tb-brief .brief-tx{min-height:58px}
.dm-br-pop{right:12px;top:94px;width:258px}
.dm-br-pop .ui-pop-row{padding:9px 10px}
@container (max-width: 559px){
  .dm-br .ruler{--rh:350px}
  .dm-br .tb-brief{--brief-h:122px;padding:0 12px;align-items:center}
  .dm-br .tb-brief .brief-tx{min-height:92px}
  .dm-br-pop{right:8px;width:min(258px, calc(100% - 16px))}
}
.dm-ins{padding:18px 20px 20px}
.dm-ins-d{margin:0 0 6px;font-size:11px;font-weight:600;letter-spacing:.07em;text-transform:uppercase;color:var(--s-muted)}
.dm-ins-lede{margin:0;max-width:56ch;font-size:14px;line-height:1.55;color:var(--s-ink)}
.dm-ins-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:14px}
.dm-ins-tile{padding:11px 13px;border-radius:11px;box-shadow:inset 0 0 0 1px var(--s-rule);background:var(--s-paper)}
.dm-ins-tile b{display:block;font-size:20px;line-height:1.1;font-weight:650;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.dm-ins-tile span{display:block;margin-top:3px;font-size:11.5px;line-height:1.3;color:var(--s-muted)}
.dm-ins-sec{margin-top:20px}
.dm-ins-st{margin:0 0 9px;font-size:13px;font-weight:600}
.dm-ins-wk{display:flex;align-items:baseline;gap:8px;margin-bottom:8px}
.dm-ins-wk span:first-child{font-size:11px;font-weight:600;letter-spacing:.07em;text-transform:uppercase;color:var(--s-muted)}
.dm-ins-wk span:last-child{font-size:12px;color:var(--s-muted)}
.dm-ins-chips{display:flex;flex-wrap:wrap;gap:6px}
.dm-ins-chip{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 10px 0 3px;border-radius:99px;font-size:12px;font-weight:550;white-space:nowrap}
.dm-ins-chip .av{--av:18px}
.dm-ins-chip b{font-weight:600;color:var(--s-ink)}
.dm-ins-room{color:color-mix(in srgb, var(--forest) 80%, var(--s-ink));background:color-mix(in srgb, var(--green) 11%, transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--green) 30%, transparent)}
.dm-ins-over{color:var(--s-red);background:color-mix(in srgb, var(--s-red) 10%, transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--s-red) 30%, transparent)}
.dm-ins-away{color:var(--s-amber);background:var(--s-amber-bg);box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--s-amber) 30%, transparent)}
.dm-ins-n{margin:10px 0 0;font-size:11.5px;line-height:1.45;color:var(--s-muted)}
@container (max-width: 559px){
  .dm-ins{padding:14px 12px 16px}
  .dm-ins-tiles{gap:6px}
  .dm-ins-tile{padding:9px 9px}
  .dm-ins-tile b{font-size:18px}
}
