/* The Desk: working software inside a page. Each brand sets the tokens; nothing below names a color.
   Built like tools people live in: 13px base, tabular figures, hairlines over boxes, brand color in small exact doses. */
.desk {
  --d-font: "Inter", system-ui, sans-serif; --d-head: var(--d-font); --d-head-weight: 700; --d-head-track: 0; --d-head-case: none;
  --d-bg: #FFFFFF; --d-sunk: #F5F5F5; --d-raised: #FFFFFF; --d-ink: #121212; --d-ink2: #4A4A4A; --d-mute: #6B6B6B; --d-line: #E4E4E4; --d-line2: #D2D2D2;
  --d-top: #121212; --d-top-ink: #FFFFFF; --d-top-mute: #B4B4B4; --d-top-line: rgba(255,255,255,.16);
  --d-rail: #FAFAFA; --d-rail-ink: #2A2A2A; --d-rail-on: #121212; --d-rail-on-ink: #FFFFFF;
  --d-accent: #BB2233; --d-accent-ink: #FFFFFF; --d-accent-soft: #FBE9EB; --d-accent-text: #A81D2D;
  --d-good: #15703F; --d-good-soft: #E3F3EA; --d-warn: #8F5A00; --d-warn-soft: #FBF0DB; --d-bad: #B3202F; --d-bad-soft: #FBE7E9; --d-info: #1B5FAA; --d-info-soft: #E5EEF8;
  --d-r: 6px; --d-r2: 10px; --d-shadow: 0 1px 2px rgba(0,0,0,.08), 0 8px 24px rgba(0,0,0,.12);
  position: relative; display: block; height: clamp(600px, 86vh, 920px); overflow: hidden;
  background: var(--d-bg); color: var(--d-ink); font: 400 13px/1.38 var(--d-font); border-radius: 12px; text-align: left; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; letter-spacing: 0; text-transform: none;
}
.desk__c { height: 100%; display: flex; flex-direction: column; container: desk / inline-size; }
.desk__c > .d-body { flex: 1 1 auto; min-height: 0; }
.desk__c > .d-top, .desk__c > .d-demobar, .desk__c > .d-replay { flex: none; }
.d-demobar { display: none; }
/* the box an app mounts into already has its height, so nothing under it jumps when the app lands (with JS off the box just holds its message) */
html.js div[aria-label^="Working demonstration"]:not(.desk) { height: clamp(600px, 86vh, 920px); }
@media (pointer: coarse), (max-width: 760px) { html.js div[aria-label^="Working demonstration"]:not(.desk) { height: 100svh; } }
@media (pointer: coarse) and (min-width: 761px) { html.js div[aria-label^="Working demonstration"]:not(.desk) { height: calc(min(76svh, 760px) + 80px); } }   /* a tablet desk starts at its held height */
/* until a person is actually working in it, the wheel keeps moving the page */
.desk:not(.is-engaged) .d-scroll { overflow: hidden; }
.desk *, .desk *::before, .desk *::after { box-sizing: border-box; }
:where(.desk) :where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(.desk) :where(button) { background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
.desk :focus-visible { outline: 2px solid var(--d-accent); outline-offset: 1px; }
:where(.desk) :where(p, h3, h4, ul, ol, dl, dd) { margin: 0; padding: 0; }
:where(.desk) :where(ul, ol) { list-style: none; }
.desk a { color: inherit; }
.desk .i { display: inline-block; flex: none; vertical-align: -3px; stroke-width: 1.8; }
.desk .mute { color: var(--d-mute); } .desk .ink2 { color: var(--d-ink2); } .desk .b { font-weight: 600; } .desk .r { text-align: right; } .desk .nw { white-space: nowrap; } .desk .trunc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.desk .num { font-variant-numeric: tabular-nums; }
.desk h3 { font: var(--d-head-weight) 15px/1.2 var(--d-head); letter-spacing: var(--d-head-track); text-transform: var(--d-head-case); }

/* top bar */
.d-top { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 12px; background: var(--d-top); color: var(--d-top-ink); }
.d-top__logo { height: 24px; width: auto; display: block; }
.d-top__ws { display: flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 5px; font-weight: 600; white-space: nowrap; }
@media (hover: hover) { .d-top__ws:hover { background: var(--d-top-line); } }
.d-top__sep { width: 1px; height: 20px; background: var(--d-top-line); }
.d-search { flex: 1; max-width: 460px; display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; border-radius: 6px; background: var(--d-top-line); color: var(--d-top-mute); text-align: left; min-width: 0; }
@media (hover: hover) { .d-search:hover { color: var(--d-top-ink); } }
.d-search kbd { margin-left: auto; font: 500 11px var(--d-font); padding: 1px 5px; border: 1px solid var(--d-top-line); border-radius: 4px; color: var(--d-top-mute); }
.d-top__right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.d-demo { font-size: 11px; font-weight: 600; line-height: 1.15; padding: 4px 8px; border-radius: 4px; background: var(--d-top-line); color: var(--d-top-ink); white-space: nowrap; }
.d-icbtn { position: relative; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; }
@media (hover: hover) { .d-icbtn:hover { background: var(--d-top-line); } }
.d-icbtn .d-dot { position: absolute; top: 3px; right: 2px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 8px; background: var(--d-accent); color: var(--d-accent-ink); font: 700 10px/15px var(--d-font); text-align: center; }
.d-me { display: flex; align-items: center; gap: 6px; padding: 3px 6px 3px 3px; border-radius: 6px; }
@media (hover: hover) { .d-me:hover { background: var(--d-top-line); } }

/* avatars */
.av { --s: 22px; width: var(--s); height: var(--s); flex: none; display: inline-grid; place-items: center; border-radius: 50%; font: 600 calc(var(--s) * .42)/1 var(--d-font); color: #fff; background: hsl(var(--h, 210) 42% 31%); letter-spacing: 0; }
.av--s { --s: 18px; } .av--l { --s: 32px; } .av--xl { --s: 44px; }
.av-stack { display: inline-flex; } .av-stack .av { box-shadow: 0 0 0 2px var(--d-bg); } .av-stack .av + .av { margin-left: -6px; }
.presence { position: relative; } .presence::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 7px; height: 7px; border-radius: 50%; background: #2DBE6C; box-shadow: 0 0 0 2px var(--d-bg); }

/* body layout */
.d-body { display: grid; grid-template-columns: 190px minmax(0, 1fr); min-height: 0; position: relative; }
.d-rail { display: flex; flex-direction: column; gap: 1px; padding: 8px; background: var(--d-rail); border-right: 1px solid var(--d-line); overflow-y: auto; min-height: 0; }
.d-rail__h { font-size: 11px; font-weight: 600; color: var(--d-mute); padding: 12px 8px 4px; }
.d-nav { display: flex; align-items: center; gap: 9px; width: 100%; height: 30px; padding: 0 8px; border-radius: 5px; color: var(--d-rail-ink); font-weight: 500; white-space: nowrap; }
@media (hover: hover) { .d-nav:hover { background: var(--d-line); } }
.d-nav.is-on { background: var(--d-rail-on); color: var(--d-rail-on-ink); }
.d-nav__n { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--d-mute); }
.d-nav.is-on .d-nav__n { color: inherit; opacity: .85; }
.d-nav--tab, .d-short { display: none; }   /* the phone's More tab, and a short name for a tab that won't fit */
.d-nav__n--hot { background: var(--d-accent); color: var(--d-accent-ink) !important; opacity: 1 !important; border-radius: 8px; padding: 0 5px; line-height: 16px; }
.d-rail__foot { margin-top: auto; padding-top: 8px; }
.d-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; position: relative; background: var(--d-bg); }
.d-head { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 14px; border-bottom: 1px solid var(--d-line); flex-wrap: wrap; }
.d-head h3 { font-size: 16px; white-space: nowrap; }
.d-head__sub { color: var(--d-mute); white-space: nowrap; }
.d-head__r { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.d-views { display: flex; align-items: center; gap: 2px; padding: 0 10px; border-bottom: 1px solid var(--d-line); overflow-x: auto; scrollbar-width: none; flex: none; }
.d-views::-webkit-scrollbar { display: none; }
.d-view { height: 34px; padding: 0 9px; white-space: nowrap; color: var(--d-mute); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
@media (hover: hover) { .d-view:hover { color: var(--d-ink); } }
.d-view.is-on { color: var(--d-ink); border-bottom-color: var(--d-accent); font-weight: 600; }
.d-view em { font-style: normal; font-size: 11px; color: var(--d-mute); margin-left: 4px; }
.d-scroll { flex: 1; min-height: 0; overflow: auto; scrollbar-gutter: stable; }   /* a classic scrollbar arriving on hover doesn't shift the rows */

/* controls */
.d-btn { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: var(--d-r); border: 1px solid var(--d-line2); background: var(--d-raised); font-weight: 500; white-space: nowrap; }
@media (hover: hover) { .d-btn:hover { background: var(--d-sunk); } }
.d-btn--pri { background: var(--d-accent); color: var(--d-accent-ink); border-color: var(--d-accent); font-weight: 600; }
@media (hover: hover) { .d-btn--pri:hover { filter: brightness(.93); background: var(--d-accent); } }
.d-btn--on { background: var(--d-rail-on); color: var(--d-rail-on-ink); border-color: var(--d-rail-on); }
.d-seg { display: inline-flex; border: 1px solid var(--d-line2); border-radius: 6px; overflow: hidden; }
.d-seg button { display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; color: var(--d-ink2); font-weight: 500; }
.d-seg button + button { border-left: 1px solid var(--d-line2); }
@media (hover: hover) { .d-seg button:hover { background: var(--d-sunk); } }
.d-seg button.is-on { background: var(--d-rail-on); color: var(--d-rail-on-ink); }
.d-chip { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 4px; background: var(--d-sunk); color: var(--d-ink2); font-size: 11px; font-weight: 600; white-space: nowrap; }
.d-chip--accent { background: var(--d-accent-soft); color: var(--d-accent-text); }
.d-chip--good { background: var(--d-good-soft); color: var(--d-good); } .d-chip--warn { background: var(--d-warn-soft); color: var(--d-warn); } .d-chip--bad { background: var(--d-bad-soft); color: var(--d-bad); } .d-chip--info { background: var(--d-info-soft); color: var(--d-info); }
.d-filter { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 8px; border: 1px dashed var(--d-line2); border-radius: 6px; color: var(--d-ink2); font-weight: 500; white-space: nowrap; }
@media (hover: hover) { .d-filter:hover { border-style: solid; } }
.d-filter.is-on { border: 1px solid var(--d-rail-on); background: var(--d-sunk); color: var(--d-ink); }
.d-input { height: 28px; padding: 0 8px; border: 1px solid var(--d-line2); border-radius: 6px; background: var(--d-raised); width: 100%; }
.d-input:focus { outline: 2px solid var(--d-accent); outline-offset: -1px; border-color: transparent; }
textarea.d-input { height: auto; padding: 7px 8px; resize: none; line-height: 1.38; display: block; }
.d-check { width: 15px; height: 15px; flex: none; border: 1.5px solid var(--d-line2); border-radius: 4px; background: var(--d-raised); display: inline-grid; place-items: center; color: transparent; }
.d-check.is-on { background: var(--d-accent); border-color: var(--d-accent); color: var(--d-accent-ink); }
.d-toggle { width: 30px; height: 17px; border-radius: 9px; background: var(--d-line2); position: relative; flex: none; transition: background-color .15s; }
.d-toggle::after { content: ""; position: absolute; left: 2px; top: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; transition: transform .15s; }
.d-toggle.is-on { background: var(--d-accent); } .d-toggle.is-on::after { transform: translateX(13px); }

/* tables */
.d-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.d-table th { position: sticky; top: 0; z-index: 1; background: var(--d-bg); height: 30px; padding: 0 10px; font-size: 11px; font-weight: 600; color: var(--d-mute); text-align: left; border-bottom: 1px solid var(--d-line); white-space: nowrap; }
.d-table th button { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; }
@media (hover: hover) { .d-table th button:hover { color: var(--d-ink); } }
.d-table td { height: 34px; padding: 0 10px; border-bottom: 1px solid var(--d-line); white-space: nowrap; }
.d-table tbody tr { cursor: pointer; }
.d-table tr[data-act]:focus-visible { outline: none; }
.d-table tr[data-act]:focus-visible td { background: var(--d-accent-soft); }
@media (hover: hover) { .d-table tbody tr:hover td { background: var(--d-sunk); } }
.d-table tr.is-sel td { background: var(--d-accent-soft); }
.d-table .r, .d-table th.r { text-align: right; }

/* panels: hairline sections, not cards */
.d-sec { padding: 12px 14px; border-bottom: 1px solid var(--d-line); }
.d-sec__h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.d-sec__h h4 { font-size: 12px; font-weight: 600; color: var(--d-ink); }
.d-sec__h .mute { font-size: 12px; }
.d-sec__h .d-link { margin-left: auto; font-size: 12px; }
.d-link { color: var(--d-accent-text); font-weight: 500; }
@media (hover: hover) { .d-link:hover { text-decoration: underline; } }
.d-kv { display: grid; grid-template-columns: 98px minmax(0, 1fr); gap: 5px 8px; }
.d-kv dt { color: var(--d-mute); } .d-kv dd { margin: 0; min-width: 0; }
.d-stat b { display: block; font: var(--d-head-weight) 19px/1.1 var(--d-head); letter-spacing: var(--d-head-track); }
.d-stat span { font-size: 11px; color: var(--d-mute); }
.d-bar { height: 5px; border-radius: 3px; background: var(--d-line); overflow: hidden; }
.d-bar i { display: block; height: 100%; background: var(--d-accent); border-radius: 3px; }

/* the drawer */
.d-drawer { position: absolute; top: 46px; right: 0; bottom: 0; width: min(440px, 100%); background: var(--d-raised); border-left: 1px solid var(--d-line2); box-shadow: -12px 0 28px rgba(0,0,0,.1); display: flex; flex-direction: column; z-index: 6; transform: translateX(102%); transition: transform .22s cubic-bezier(.22,.8,.24,1), visibility 0s linear .22s; visibility: hidden; }
.d-drawer.is-open { transform: none; visibility: visible; transition: transform .22s cubic-bezier(.22,.8,.24,1), visibility 0s; }   /* it slides out too, rather than vanishing */
/* anything open in a desk paints over the sections after it, whatever the width (still under the site bar) */
.s > *:has(.d-drawer.is-open, .d-pop, .d-scrim, .d-toast) { z-index: 4; }
.d-drawer__head { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-bottom: 1px solid var(--d-line); }
.d-steps { display: flex; gap: 2px; padding: 8px 14px; border-bottom: 1px solid var(--d-line); }
.d-step { flex: 1; height: 26px; padding: 0 4px; font-size: 11px; font-weight: 600; text-align: center; background: var(--d-sunk); color: var(--d-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-step:first-child { border-radius: 5px 0 0 5px; } .d-step:last-child { border-radius: 0 5px 5px 0; }
.d-step.is-done { background: var(--d-rail-on); color: var(--d-rail-on-ink); }
.d-step.is-on { background: var(--d-accent); color: var(--d-accent-ink); }

/* activity timeline */
.d-tl { display: flex; flex-direction: column; }
.d-tl li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; padding: 6px 0; position: relative; }
.d-tl li::before { content: ""; position: absolute; left: 10.5px; top: 26px; bottom: -6px; width: 1px; background: var(--d-line); }
.d-tl li:last-child::before { display: none; }
.d-tl__ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--d-sunk); color: var(--d-ink2); }
.d-tl__t { color: var(--d-mute); font-size: 11px; white-space: nowrap; padding-top: 2px; }

/* message bubbles */
.d-msgs { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; }
.d-msg { max-width: 76%; padding: 7px 10px; border-radius: 12px; background: var(--d-sunk); align-self: flex-start; border-bottom-left-radius: 4px; }
.d-msg--me { align-self: flex-end; background: var(--d-rail-on); color: var(--d-rail-on-ink); border-radius: 12px; border-bottom-right-radius: 4px; }
.d-msg--auto { align-self: flex-end; background: var(--d-accent-soft); color: var(--d-ink); border-radius: 12px; border-bottom-right-radius: 4px; }
.d-msg__m { font-size: 11px; color: var(--d-mute); align-self: flex-start; padding: 0 2px; }
.d-msg__m--me { align-self: flex-end; }

/* the palette, popovers, toasts */
.d-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.28); z-index: 8; display: flex; justify-content: center; padding-top: 70px; }
.d-pal { width: min(560px, 92%); max-height: 420px; background: var(--d-raised); border-radius: var(--d-r2); box-shadow: var(--d-shadow); display: flex; flex-direction: column; overflow: hidden; align-self: flex-start; }
.d-pal input { height: 44px; padding: 0 14px; border: 0; border-bottom: 1px solid var(--d-line); background: transparent; width: 100%; outline: none; font-size: 14px; }
.d-pal__list { overflow: auto; padding: 4px; }
.d-pal__row { display: flex; align-items: center; gap: 9px; width: 100%; height: 34px; padding: 0 10px; border-radius: 5px; }
.d-pal__row.is-on { background: var(--d-sunk); }
@media (hover: hover) { .d-pal__row:hover { background: var(--d-sunk); } }
.d-pop { position: absolute; z-index: 7; background: var(--d-raised); color: var(--d-ink); border: 1px solid var(--d-line); border-radius: var(--d-r2); box-shadow: var(--d-shadow); width: 340px; max-height: 420px; overflow: auto; }
.d-pop__row { display: flex; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--d-line); width: 100%; }
@media (hover: hover) { .d-pop__row:hover { background: var(--d-sunk); } }
.d-toasts { position: absolute; left: 12px; bottom: 46px; z-index: 9; display: flex; flex-direction: column; gap: 6px; pointer-events: none; max-width: min(360px, 90%); }
.d-toast { display: flex; align-items: flex-start; gap: 8px; padding: 9px 12px; border-radius: 8px; background: var(--d-top); color: var(--d-top-ink); box-shadow: var(--d-shadow); animation: d-toast .24s cubic-bezier(.22,.8,.24,1); pointer-events: none; }
@keyframes d-toast { from { opacity: 0; transform: translateY(8px); } }

/* replay bar */
.d-replay { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; border-top: 1px solid var(--d-line); background: var(--d-bg); font-size: 12px; }
.d-replay__btn { display: flex; align-items: center; gap: 5px; height: 24px; min-width: 128px; padding: 0 8px; border-radius: 5px; font-weight: 600; white-space: nowrap; }   /* as wide as "Replay the day", so nothing shifts when it turns into "Pause" */
@media (hover: hover) { .d-replay__btn:hover { background: var(--d-sunk); } }
.d-replay__clock { font-weight: 600; white-space: nowrap; min-width: 15ch; }   /* wide enough for 12:45 PM, so the slider doesn't shift when the hour gains a digit */
.d-replay__track { flex: 1; height: 24px; position: relative; display: flex; align-items: center; min-width: 40px; cursor: pointer; touch-action: pan-y; }   /* a vertical swipe that starts here still moves the page */
.d-replay__track::before { content: ""; position: absolute; left: 0; right: 0; height: 3px; border-radius: 2px; background: var(--d-line); }
.d-replay__fill { position: absolute; left: 0; height: 3px; border-radius: 2px; background: var(--d-accent); }
.d-replay__knob { position: absolute; width: 11px; height: 11px; border-radius: 50%; background: var(--d-accent); transform: translateX(-50%); box-shadow: 0 0 0 2px var(--d-bg); }
.d-replay__tick { position: absolute; width: 1px; height: 7px; background: var(--d-line2); }
.d-replay__note { color: var(--d-mute); flex: 0 0 var(--d-note, auto); max-width: 42%; line-height: 1.2; text-wrap: balance; }   /* one box for the whole day, sized in desk.js to this desk's longest note, so the slider holds one width and its ticks stay put. Past the cap a note takes two lines. */

/* the other person in the room: a named cursor */
.d-ghost { position: absolute; left: 0; top: 0; z-index: 12; pointer-events: none; transition: transform .62s cubic-bezier(.45,.05,.2,1); display: none; }
.d-ghost.is-on { display: block; }
.d-ghost svg { display: block; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
.d-ghost b { position: absolute; left: 14px; top: 16px; padding: 1px 6px; border-radius: 4px; background: var(--d-accent); color: var(--d-accent-ink); font: 600 11px/1.5 var(--d-font); white-space: nowrap; }
.d-ghost.is-click::after { content: ""; position: absolute; left: -8px; top: -8px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--d-accent); animation: d-click .4s ease-out forwards; }
@keyframes d-click { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }

/* board */
.d-board { display: flex; gap: 8px; padding: 10px; min-height: 100%; width: max-content; min-width: 100%; align-items: stretch; }
.d-col { width: 232px; flex: 1 0 232px; display: flex; flex-direction: column; background: var(--d-sunk); border-radius: var(--d-r2); min-height: 0; }
.d-col.is-over { outline: 2px solid var(--d-accent); outline-offset: -2px; }
.d-col__h { display: flex; align-items: center; gap: 6px; padding: 8px 10px 4px; font-weight: 600; }
.d-col__h .mute { font-weight: 500; }
.d-col__v { padding: 0 10px 6px; font-size: 11px; color: var(--d-mute); }
.d-col__list { display: flex; flex-direction: column; gap: 6px; padding: 0 6px 6px; flex: 1; }
.d-card { display: block; width: 100%; padding: 8px 9px; background: var(--d-raised); border-radius: var(--d-r); box-shadow: 0 0 0 1px var(--d-line), 0 1px 1px rgba(0,0,0,.03); cursor: grab; text-align: left; position: relative; touch-action: pan-y; }
@media (hover: hover) { .d-card:hover { box-shadow: 0 0 0 1px var(--d-line2), 0 2px 6px rgba(0,0,0,.08); } }
.d-card.is-sel { box-shadow: 0 0 0 2px var(--d-accent); }
.d-card.is-fresh { animation: d-fresh 2.4s ease-out; }
@keyframes d-fresh { 0% { box-shadow: 0 0 0 2px var(--d-accent), 0 0 0 7px var(--d-accent-soft); } 100% { box-shadow: 0 0 0 1px var(--d-line); } }
.d-card__t { font-weight: 600; line-height: 1.25; }
.d-card__s { color: var(--d-mute); font-size: 12px; margin-top: 1px; }
.d-card__m { display: flex; align-items: center; gap: 5px; margin-top: 7px; flex-wrap: wrap; }
.d-card__f { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 7px; }
.d-card__v { font-weight: 600; }
.d-age { font-size: 11px; font-weight: 600; color: var(--d-mute); display: inline-flex; align-items: center; gap: 3px; }
.d-age--warn { color: var(--d-warn); } .d-age--bad { color: var(--d-bad); }
.d-dragging { position: fixed !important; z-index: 40; pointer-events: none; transform: rotate(2deg); box-shadow: 0 10px 28px rgba(0,0,0,.25) !important; }

/* calendar */
.d-week { display: grid; grid-template-columns: 44px repeat(5, minmax(0, 1fr)); min-width: 620px; position: relative; }
.d-week__d { position: sticky; top: 0; z-index: 2; height: 34px; display: flex; align-items: center; justify-content: center; gap: 4px; font-weight: 600; background: var(--d-bg); border-bottom: 1px solid var(--d-line); border-left: 1px solid var(--d-line); }
.d-week__d.is-today { color: var(--d-accent-text); }
.d-week__h { height: 46px; border-bottom: 1px solid var(--d-line); font-size: 11px; color: var(--d-mute); padding: 2px 6px 0 0; text-align: right; }
.d-week__c { height: 46px; border-bottom: 1px solid var(--d-line); border-left: 1px solid var(--d-line); position: relative; }
.d-ev { position: absolute; left: 2px; right: 2px; z-index: 1; padding: 3px 6px; border-radius: 5px; background: var(--d-accent-soft); color: var(--d-ink); font-size: 12px; line-height: 1.2; overflow: hidden; border-left: 3px solid var(--d-accent); text-align: left; }
.d-ev--alt { background: var(--d-sunk); border-left-color: var(--d-ink2); }
.d-now { position: absolute; left: 44px; right: 0; height: 2px; background: var(--d-bad); z-index: 3; pointer-events: none; }

/* tablet: icon rail */
@container desk (max-width: 1020px) {
  .d-body { grid-template-columns: 50px minmax(0, 1fr); }
  .d-nav { justify-content: center; padding: 0; height: 38px; position: relative; }
  .d-nav__l, .d-rail__h { display: none; }
  .d-nav__n { display: none; } .d-nav__n--hot { display: block; position: absolute; right: 2px; top: 2px; font-size: 9px; padding: 0 4px; line-height: 13px; margin: 0; }
}
/* phone: the same software as its phone app. Nothing scrolls inside anything; the page does the scrolling, and targets are thumb-sized. */
@container desk (max-width: 620px) {
  .d-body { display: flex !important; flex-direction: column; }
  .d-main { order: 1; min-height: 340px; }
  .d-split { grid-template-columns: minmax(0, 1fr) !important; }
  .d-split > * { border-right: 0 !important; }
  .d-head__r { margin-left: 0; width: 100%; }
  .d-rail { order: 2; position: sticky !important; bottom: 0; z-index: 6; flex-direction: row; justify-content: space-around; padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px)); border-right: 0; border-top: 1px solid var(--d-line); background: var(--d-bg); overflow: visible; }
  .d-nav { flex: 1; height: 48px; flex-direction: column; justify-content: center; gap: 2px; font-size: 10px; min-width: 0; padding: 0 2px; }
  .d-nav__l { display: block; font-size: 10px; }
  .d-nav.is-more, .d-rail__h, .d-rail__foot, .d-long { display: none; }
  .d-nav--tab { display: flex; position: relative; }
  .d-short { display: inline; }
  .d-search kbd, .d-top__ws span { display: none; }
  .d-search { flex: 1; }
  .d-top { height: 56px; gap: 8px; }
  .desk__c button:not(.d-toggle):not(.d-check), .desk__c input { min-height: 44px; }
  button.d-chip { min-height: 44px; padding: 0 12px; }
  .d-search { height: 44px; }
  .d-top .d-demo { display: none; }
  .d-demobar { display: block; position: sticky; top: var(--bar-h, 64px); z-index: 5; padding: 5px 12px; font-size: 12px; font-weight: 600; background: var(--d-sunk); color: var(--d-ink); border-bottom: 1px solid var(--d-line); }
  .d-icbtn { width: 44px; height: 44px; }
  .d-me { display: none; }
  .d-board { flex-direction: column; width: 100%; padding: 8px; }
  .d-col { width: 100%; flex: none; }
  .d-btn { height: 44px; padding: 0 14px; }
  .d-seg button { height: 44px; padding: 0 12px; }
  .d-view { height: 44px; }
  .d-filter { height: 44px; padding: 0 12px; }
  .d-table td { height: 44px; }
  .d-replay { height: auto; min-height: 48px; flex-wrap: wrap; padding: 6px 10px; }
  .d-replay__btn { padding: 0 10px; }
  .d-replay__note { display: none; }
  .d-week { min-width: 560px; }
}
/* a narrow top bar: the logo keeps its size, the workspace name and the search give way, and nothing leaves the bar */
@container desk (max-width: 480px) {
  .d-top { padding-inline: 10px 6px; gap: 6px; }
  .d-top__logo { flex: none; }
  .d-top__sep { display: none; }
  .d-top__ws { flex: 0 1 auto; min-width: 0; overflow: hidden; padding-inline: 4px; }
  .d-search { flex: 1 1 44px; min-width: 44px; padding-inline: 12px; overflow: hidden; }
  .d-top__right { flex: none; margin-left: 0; }
}
/* height: fills most of a screen on a desktop; the phone app grows with the page */
@media (max-width: 760px) {
  .desk { height: auto; border-radius: 0; overflow: visible; }
  .desk .d-scroll, .desk:not(.is-engaged) .d-scroll { overflow: visible; }
  .desk .d-scroll--x, .desk:not(.is-engaged) .d-scroll--x { overflow-x: auto; }
  .d-main { min-height: 0; }
  .d-drawer { position: fixed; inset: 0; width: 100%; z-index: 30; border: 0; transform: translateY(102%); }   /* a closed record waits below the screen, not beside it */
  /* a menu rises from the bottom, under the thumb that opened it */
  .d-pop { position: fixed; left: 0 !important; right: 0 !important; top: auto !important; bottom: 0; width: auto !important; max-height: 72svh; z-index: 31; border-radius: 14px 14px 0 0; border-width: 1px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); overscroll-behavior: contain; }
  .d-scrim { position: fixed; z-index: 32; padding-top: calc(var(--bar-h, 64px) + 8px); overscroll-behavior: contain; }   /* the search box opens below the site bar, not behind it */
  .d-pal { max-height: calc(100svh - var(--bar-h, 64px) - 20px); }
  html.desk-modal { overflow: hidden; }
  html.desk-modal .bar { display: none; }
  .d-drawer .d-btn, .d-drawer .d-input { height: 44px; }
  .d-drawer button { min-height: 44px; min-width: 44px; }
  .d-toasts { bottom: calc(68px + env(safe-area-inset-bottom, 0px)); z-index: 45; margin-block: -122px 122px; }   /* just above the tabs, and over an open record */
}
/* the label comes with a record that covers the top bar, on any desk that doesn't bring its own */
.d-drawer:not(:has(> .d-demobar))::before { content: "For demonstration purposes only"; display: none; flex: none; padding: 5px 14px; font-size: 12px; font-weight: 600; background: var(--d-sunk); color: var(--d-ink); border-bottom: 1px solid var(--d-line); }
/* Touch screens of every size: the page scrolls, not the desk. A finger on a desk moves the page or a row of columns, nothing else, and everything is finger-sized. */
@media (pointer: coarse), (max-width: 760px) {
  .desk { height: auto !important; overflow: visible; display: flow-root; }   /* flow-root: the toast layer's margins stop at the desk, or they'd collapse through it and end the desk above its last bar */
  .desk__c { height: auto; }
  .desk .d-scroll, .desk:not(.is-engaged) .d-scroll { overflow: visible; scrollbar-gutter: auto; }
  .desk .d-scroll--x, .desk:not(.is-engaged) .d-scroll--x { overflow-x: auto; overflow-y: visible; }
  .d-main { min-height: min(62svh, 640px); }
  /* while the day plays by itself the frame holds still, so the page never jumps under the visitor */
  .desk.is-playing .d-main, .desk.is-held .d-main { height: min(76svh, 760px); min-height: 0; overflow: hidden; }
  .desk.is-playing .d-scroll, .desk.is-held .d-scroll { overflow: hidden; }
  /* a toast stays inside the desk: it rides the bottom of the screen while the desk is on screen, and it can't land on the next section */
  .d-toasts { position: sticky; left: auto; right: auto; width: auto; height: 0; margin-inline: 8px; max-width: none; justify-content: flex-end; }
  /* nothing drags by touch, so a card must not stop a finger panning the board */
  .d-card { touch-action: auto; cursor: pointer; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
  .desk input:not([type="checkbox"], [type="radio"], [type="range"]), .desk textarea, .desk select { font-size: 16px; }   /* iOS zooms the page on anything smaller */
  .desk__c button:not(.d-toggle):not(.d-check), .d-layer button, .d-drawer button:not(.d-toggle):not(.d-check), .d-link { min-height: 44px; }
  .d-table th button { min-width: 44px; }
  .d-link { display: inline-flex; align-items: center; justify-content: flex-end; min-width: 44px; }
  .d-btn, .d-view, .d-me { min-width: 44px; flex: none; justify-content: center; }   /* flex: none, because a set min-width lets a tab row squeeze its labels on top of each other */
  .desk select { min-height: 44px; }
  .d-icbtn { width: 44px; height: 44px; }
  .d-input { height: 44px; }
  textarea.d-input { height: auto; min-height: 44px; }
  .d-replay__btn, .d-replay__track { min-height: 44px; }
  .d-pop__row, .d-pal__row { min-height: 48px; height: auto; align-items: center; }
  .d-step { height: 44px; }
  .d-table td { height: 44px; }
  .d-table th button { min-height: 44px; }
  /* the box stays small to look at and big to hit */
  .d-check { width: 44px; height: 44px; margin: -11px; border: 0; background: none; border-radius: 0; position: relative; color: transparent; }
  .d-check::before { content: ""; position: absolute; inset: 13px; border: 1.5px solid var(--d-line2); border-radius: 5px; background: var(--d-raised); }
  .d-check .i { position: relative; }
  .d-check.is-on { background: none; color: var(--d-accent-ink); }
  .d-check.is-on::before { background: var(--d-accent); border-color: var(--d-accent); }
  /* the switch is drawn 26 tall inside a 44 box, so the box you can hit is the box that's measured */
  .d-toggle, .d-toggle.is-on { --t: var(--d-line2); position: relative; width: 44px; height: 44px; border-radius: 0; transition: none; background: radial-gradient(circle 13px at 13px 50%, var(--t) 96%, transparent) no-repeat, radial-gradient(circle 13px at 31px 50%, var(--t) 96%, transparent) no-repeat, linear-gradient(var(--t), var(--t)) 13px 50% / 18px 26px no-repeat; }
  .d-toggle.is-on { --t: var(--d-accent); }
  .d-toggle::before { content: ""; position: absolute; inset: -9px 0; }   /* a desk that sets its own 26px height keeps the 44 to hit */
  .d-toggle::after { top: calc(50% - 11px); width: 22px; height: 22px; } .d-toggle.is-on::after { transform: translateX(18px); }
  button.d-chip { min-height: 44px; padding: 0 12px; }
  .d-col__list .d-card { min-height: 44px; }
  .d-drawer button { min-height: 44px; min-width: 44px; }
  .d-drawer:not(:has(> .d-demobar))::before { display: block; }
  .d-drawer > :last-child { overscroll-behavior: contain; }
}
/* a phone desk's tabs rise once it's 120 px onto the screen, so they never sit on its first line while it arrives */
@container desk (max-width: 620px) { .d-rail { transition: transform .2s cubic-bezier(.22,.8,.24,1); } .desk.is-far .d-rail { visibility: hidden; transform: translateY(100%); transition: transform .2s cubic-bezier(.22,.8,.24,1), visibility 0s .2s; } }
/* a phone: the held frame leaves room for the bars above it and the tabs and replay bar under it, so Pause stays on screen */
@media (max-width: 760px) { .desk.is-playing .d-main, .desk.is-held .d-main { height: max(300px, calc(100svh - 268px)); } }
/* a phone under 400 wide: the button and the clock leave the slider 49 to 119 px, too short to scrub a day with a finger, so it takes its own row. The frame and the toast make room for that row. */
@media (max-width: 400px) {
  .d-replay { row-gap: 0; }
  .d-replay__clock { margin-left: auto; }
  .d-replay__track { flex: 1 0 100%; order: 3; }
  .desk.is-playing .d-main, .desk.is-held .d-main { height: max(256px, calc(100svh - 312px)); }
  .d-toasts { margin-block: -166px 166px; }
}
/* tablets: the top bar and rail stay put while the page moves; a record slides over from the right */
@media (pointer: coarse) and (min-width: 761px) {
  .d-top { position: sticky; top: var(--bar-h, 64px); z-index: 6; border-radius: 12px 12px 0 0; }
  .d-replay { border-radius: 0 0 12px 12px; }
  .d-rail { position: sticky; z-index: 5; top: calc(var(--bar-h, 64px) + 46px); align-self: start; max-height: calc(100svh - var(--bar-h, 64px) - 46px); }   /* a rail across the top of a desk stays over what scrolls under it */
  .d-drawer { position: fixed; top: var(--bar-h, 64px); bottom: 0; right: 0; z-index: 30; }
  .d-scrim { position: fixed; z-index: 32; padding-top: calc(var(--bar-h, 64px) + 12px); overscroll-behavior: contain; }   /* search opens on the screen the visitor is on, not at the desk's far-off top */
  .d-pal { max-height: calc(100svh - var(--bar-h, 64px) - 24px); }
  .desk.is-far .d-scrim { visibility: hidden; }
  .desk.is-far .d-drawer.is-open { transform: translateX(102%); visibility: hidden; transition: transform .22s cubic-bezier(.22,.8,.24,1), visibility 0s linear .22s; }   /* a record belongs to its desk: it slides out once the desk has scrolled away, and back when the desk returns */
  /* a sticky rail stops short of the desk's foot, so the column keeps its color and its line without it. Two desks run their rail across the top instead. */
  .desk:not(.desk--nord, .desk--nug) .d-body { background: var(--d-rail); }
  .desk:not(.desk--nord, .desk--nug) .d-rail { border-right: 0; }
  .desk:not(.desk--nord, .desk--nug) .d-main { border-left: 1px solid var(--d-line); }
  .d-toasts { bottom: 16px; width: min(360px, 90%); margin: -42px 16px 42px auto; z-index: 31; }   /* the margins keep it above the replay bar at the desk's foot; on the way down it still rides the screen */
  @container desk (max-width: 1020px) { .d-body { grid-template-columns: 56px minmax(0, 1fr); } .d-rail { padding: 4px; } }
}
/* a short landscape screen: the top bar scrolls away with the page, and the label stays */
@media (pointer: coarse) and (max-height: 500px) {
  .d-top { position: static; }
  .d-demobar { display: block; position: sticky; top: var(--bar-h, 64px) !important; z-index: 6; padding: 2px 12px; font-size: 11px; font-weight: 600; background: var(--d-sunk); color: var(--d-ink); border-bottom: 1px solid var(--d-line); }
  .d-top .d-demo { display: none; }
  .d-rail { top: calc(var(--bar-h, 64px) + 22px) !important; max-height: calc(100svh - var(--bar-h, 64px) - 22px); overflow-y: auto; }
}
/* on touch a desk changes height when a hand lands on it. Scroll anchoring then picks a row inside the desk and moves the page to keep that row still (/services/compliance/ at 820: 468 px on a tap). The desk's own top is the steady thing to hold. */
@media (pointer: coarse) { .desk * { overflow-anchor: none; } }
/* a press answers, on a mouse or a finger */
:is(.d-btn, .d-nav, .d-icbtn, .d-search, .d-link, .d-filter, .d-view, .d-me, .d-top__ws, .d-replay__btn, .d-check, .d-toggle, .d-card, .d-pal__row, .d-pop__row):active:not(:disabled) { opacity: .68; }
.d-table tbody tr:active td { background: var(--d-sunk); opacity: .68; }   /* with a mouse the row is already sunk from hovering, so the dimming is what answers */
@media (prefers-reduced-motion: reduce) { .d-ghost, .d-drawer, .d-drawer.is-open, .desk.is-far .d-drawer.is-open, .d-toggle, .d-toggle::after, .d-rail, .desk.is-far .d-rail { transition: none; } .d-toast, .d-card.is-fresh { animation: none; } }

/* The page is an inbox. Left of the ribbon: the message list on white paper. Right of it: the reading pane, a phone on navy. The ribbon is the divider between the two panes, and sends ride it. */
:root { --band: clamp(104px, 12vw, 240px); --pc: clamp(290px, 28vw, 420px); --g: clamp(16px, 2vw, 32px); --subj: clamp(1.9rem, 3.1vw, 5rem); --air: clamp(26px, 3vw, 60px); --muted: #46536F; --rule: rgba(11,37,89,.16); --b: clamp(1rem, .72vw, 1.3rem); --n: clamp(.875rem, .62vw, 1.1rem); }
.nb { white-space: nowrap; }
button.tag { padding: 0; }   /* a button's own padding pushed its tip 6 px off every left edge */
button.link { text-decoration: underline; }   /* a plain link's underline: a button doesn't get one for free */
html.gl #fields rect { fill: transparent; }
html.gl #fields path { fill: var(--navy); }
.bar { background: var(--navy); }

/* ───── the two panes */
.mailbox { display: grid; grid-template-columns: minmax(0, 1fr) var(--pc); column-gap: var(--g); padding: 64px 0 0 var(--gut); font-size: var(--b); }
html.gl .mailbox { grid-template-columns: minmax(0, 1fr) calc(var(--band) + 2 * var(--g)) var(--pc); column-gap: 0; padding: 72px var(--gut) calc(var(--band) / 2 + var(--air)); }
.list { grid-column: 1; min-width: 0; color: var(--ink); padding-bottom: var(--air); }
html.gl .list { padding-bottom: 0; }
.reader { grid-column: 2; align-self: stretch; background: var(--navy); padding: 16px 0 0; }
html.gl .reader { grid-column: 3; background: none; padding: 0; }
.phone { position: sticky; top: 76px; --h: min(calc(100svh - 92px), 820px, calc(var(--pc) / .486)); height: var(--h); width: calc(var(--h) * .486); margin-inline: auto; }
html.gl .phone { top: 72px; }

/* ───── rows: every section is a message */
.list__bar { position: sticky; top: 64px; z-index: 3; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; background: var(--white); border-bottom: 2px solid var(--ink); }
.list__title { font: 800 var(--t-line) "SM Text", sans-serif; }
.list__n { font-weight: 600; color: var(--muted); }
.row { padding: clamp(16px, 1.7vw, 28px) 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 112px; }
.platform, .wall, .compose-s { scroll-margin-top: 64px; }
.row--wide { padding: 0 0 clamp(10px, 1.2vw, 18px); border: 0; }
.row__meta { display: flex; align-items: center; gap: 9px; font-size: var(--b); color: var(--ink); }
.row__meta b { font-weight: 800; }
.row__t { margin-left: auto; color: var(--muted); font-weight: 500; }
.row__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); flex: none; }
.row__dot { transition: opacity .3s ease; }
.row__dot.is-read { opacity: .22; }
.row__subj { font-size: var(--subj); margin-top: clamp(8px, 1vw, 14px); }
.on-white .row__subj { color: var(--navy); }
.row--hero .row__subj { font-size: clamp(2.5rem, 4.7vw, 7.4rem); }
.row__pre { margin-top: clamp(8px, 1vw, 14px); font-size: var(--t-line); line-height: 1.38; color: var(--muted); max-width: 40ch; text-wrap: pretty; }
.row__pre a { color: var(--ink); font-weight: 600; text-underline-offset: 4px; text-decoration-thickness: 2px; display: inline-block; padding-block: 11px; margin-block: -11px; }
.row__go { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: clamp(14px, 1.8vw, 24px); }
.row__after { margin-top: 10px; font-weight: 600; color: var(--ink); text-wrap: pretty; }
.row__open { display: none; padding: 0; }
.row__meta--d, .row__meta--d .row__t { color: var(--mist); }
.platform .row__pre, .compose-s .row__pre { color: var(--mist); }
.platform .row__subj, .compose-s .row__subj { color: var(--white); }
.row--ink .row__pre { color: var(--ink); } .row--ink .row__t { color: var(--ink); }
.note { margin-top: 12px; font-size: var(--n); line-height: 1.4; color: var(--muted); max-width: 70ch; text-wrap: pretty; }
.note--d { color: var(--mist); }
.note--i { color: var(--ink); }

/* ───── whose inbox */
.whose { padding: clamp(16px, 2vw, 30px) 0; border-bottom: 1px solid var(--rule); }
.whose__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; }
.whose__h { font: 800 var(--t-line)/1.2 "SM Text", sans-serif; color: var(--ink); }
.brands { display: flex; flex-wrap: wrap; gap: 8px; }
.brand { display: grid; place-items: center; height: 48px; width: clamp(92px, 8vw, 128px); padding: 7px 12px; background: var(--white); border-radius: 8px; box-shadow: 0 0 0 1.5px var(--rule); }
.brand img { display: block; max-width: 100%; max-height: 32px; width: auto; height: auto; object-fit: contain; }
@media (hover: hover) { .brand:hover { box-shadow: 0 0 0 1.5px var(--ink); } }
.brand:active { transform: scale(.98); }
.brand[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--navy); }
.platform .brand { box-shadow: none; opacity: .86; transition: opacity .18s var(--ease); }
@media (hover: hover) { .platform .brand:hover { opacity: 1; } }
.platform .brand[aria-pressed="true"] { opacity: 1; outline: 3px solid var(--sky); outline-offset: 2px; }
.mails { list-style: none; padding: 0; margin-top: 12px; }
.mails li + li { border-top: 1px solid var(--rule); }
.mailrow { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; width: calc(100% + 16px); margin-inline: -8px; padding: 12px 8px; border-radius: 8px; text-align: left; color: var(--ink); align-items: start; }   /* the hover wash runs past the text; the text keeps the page's edges */
@media (hover: hover) { button.mailrow:hover { background: rgba(196,226,243,.32); } }
button.mailrow:active { background: rgba(196,226,243,.6); }
.mailrow[aria-current="true"] { background: rgba(196,226,243,.5); }
.mailrow__t { display: block; min-width: 0; }
.mailrow__top { display: flex; gap: 10px; justify-content: space-between; }
.mailrow__top b { font-weight: 800; }
.mailrow__top em { font-style: normal; color: var(--muted); font-size: var(--n); white-space: nowrap; }
.mailrow__s { display: block; font-weight: 700; line-height: 1.3; margin-top: 2px; text-wrap: pretty; }
.mailrow__p { display: block; color: var(--muted); line-height: 1.34; font-size: var(--b); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-av { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font: 800 .86rem/1 "SM Text", sans-serif; flex: none; }

/* ───── subject line lab */
.lab { margin-top: clamp(12px, 1.4vw, 20px); display: grid; gap: 10px; }
.lab__fs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.lab__f { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: baseline; }
.lab__f label { grid-column: 1 / -1; font-weight: 800; }
.lab__in { width: 100%; height: 46px; padding: 0 12px; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--white); color: var(--ink); font: 600 var(--b) "SM Text", sans-serif; }
.lab__in:focus { outline: 2px solid var(--navy); outline-offset: 1px; }
.lab__len { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; min-width: 2.2em; text-align: right; }
.lab__dev { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.lab__dev button { min-height: 44px; padding: 0 14px; border-radius: 22px; font-weight: 700; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--rule); }
.lab__dev button[aria-pressed="true"] { background: var(--ink); color: var(--white); box-shadow: none; }
@media (hover: hover) { .lab__dev button:not([aria-pressed="true"]):hover, .pick__days button:not([aria-pressed="true"]):hover { box-shadow: inset 0 0 0 1.5px var(--ink); } }
.lab__dev button:active, .pick__days button:active { opacity: .7; }
.mock-wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mock { margin: 0; min-width: 0; }
.mock figcaption { font-size: var(--b); line-height: 1.3; padding-bottom: 4px; color: var(--ink); }
.mock figcaption b { font-weight: 800; }
.mock figcaption span:empty::before { content: "\00a0"; }   /* the caption's second line has its height before the script fills it */
.mock figcaption span { display: block; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }   /* each caption is two lines, so the two previews always start level */
.mock__fit { position: relative; width: 100%; overflow: hidden; border-radius: 10px; box-shadow: inset 0 0 0 1.5px var(--rule); background: var(--white); height: var(--fit-h, auto); aspect-ratio: 393 / 101; max-height: 101px; }
.mock + .mock .mock__fit { aspect-ratio: 393 / 84; max-height: 84px; }   /* a preview's real height at its real scale, before the script measures it */
.mock__row { position: absolute; left: 0; top: 0; transform-origin: 0 0; background: #fff; color: #000; }
.mock__row--ios { font-family: -apple-system, "SF Pro Text", system-ui, "Inter", sans-serif; padding: 9px 16px 10px 30px; }
.mock__row--ios .m-from { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; font-size: 17px; line-height: 22px; white-space: nowrap; }
.mock__row--ios .m-from em { font: 400 15px/20px -apple-system, "SF Pro Text", system-ui, sans-serif; color: #6C6C70; }
.mock__row--ios .m-sub { font-size: 15px; line-height: 20px; white-space: nowrap; }
.mock__row--ios .m-pre { font-size: 15px; line-height: 20px; color: #6C6C70; white-space: nowrap; }
.mock__row--ios::before { content: ""; position: absolute; left: 11px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: #0A84FF; }
.mock__row--gm { font-family: "Roboto", system-ui, sans-serif; padding: 12px 16px 12px 68px; }
.mock__row--gm::before { content: "S"; position: absolute; left: 16px; top: 13px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #1F6E43; color: #fff; font-size: 18px; }
.mock__row--gm .m-from { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: 15px; line-height: 20px; white-space: nowrap; color: #1F1F1F; }
.mock__row--gm .m-from em { font: 700 12px/16px "Roboto", system-ui, sans-serif; color: #1F1F1F; }
.mock__row--gm .m-sub { font-weight: 700; font-size: 14px; line-height: 20px; color: #1F1F1F; white-space: nowrap; }
.mock__row--gm .m-pre { font-size: 14px; line-height: 20px; color: #444746; white-space: nowrap; }
.lab__cut { font-weight: 600; line-height: 1.45; color: var(--muted); word-break: break-word; }
@media (min-width: 761px) and (max-width: 1100px) { .lab__cut { min-height: 5.9em; } }   /* three lines and the key: this is near the top of a tablet, and typing a longer subject shouldn't move the page either */
.lab__cut b { color: var(--ink); font-weight: 800; }
.lab__cut i { display: inline-block; width: 2px; height: 1.05em; vertical-align: -.12em; margin: 0 1px; background: var(--ink); }
.lab__cut i.g { background: #1F6E43; }
.lab__key { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 4px; font-size: var(--n); font-weight: 600; }
.lab__key span::before { content: ""; display: inline-block; width: 2px; height: .95em; margin-right: 6px; vertical-align: -.1em; background: var(--ink); }
.lab__key span.g::before { background: #1F6E43; }
.lab__go { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.lab__how { flex: 1 1 240px; font-size: var(--n); line-height: 1.38; color: var(--muted); text-wrap: pretty; }

/* ───── the abandoned cart */
.cartbox { margin-top: clamp(14px, 1.8vw, 24px); padding: clamp(14px, 1.6vw, 24px); background: var(--sky); border-radius: 14px; color: var(--ink); }
.cart__item { display: grid; grid-template-columns: clamp(76px, 8vw, 112px) minmax(0, 1fr); gap: 14px; align-items: center; }
.cart__pic { display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--white); }
.cart__pic img { width: 100%; height: 100%; object-fit: cover; }
.cart__pic .ej-bottle { height: 92%; width: auto; }
.cart__n { font: 800 var(--t-line)/1.2 "SM Text", sans-serif; text-wrap: balance; }
.cart__s, .cart__p { font-weight: 600; }
.cart__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 12px; }
.cartbox .tag > span { background: var(--navy); color: var(--white); }
.run { margin-top: 14px; padding-top: 12px; border-top: 1.5px solid rgba(11,37,89,.25); }
.run__clock { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; }
.run__h { font: 900 var(--subj)/1 "SM Display", sans-serif; text-transform: uppercase; font-variant-numeric: tabular-nums; color: var(--navy); min-width: 5.6ch; }
.run__say { font-weight: 700; }
.run__track { height: 6px; border-radius: 3px; background: rgba(11,37,89,.18); overflow: hidden; margin-top: 10px; }
.run__track i { display: block; height: 100%; background: var(--navy); border-radius: 3px; transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s linear; will-change: transform; }
.run__steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.run__steps li { font-size: var(--n); line-height: 1.25; text-wrap: pretty; transition: opacity .24s var(--ease); }
.run__steps span { display: block; font-weight: 600; }
.run__steps b { display: block; font-weight: 800; }
.js .cartbox[data-state="idle"] .run__steps li, .js .cartbox[data-state="added"] .run__steps li, .js .cartbox[data-state="running"] .run__steps li:not(.is-done) { opacity: .72; }   /* waiting, and still readable: 5:1 on the sky field */
.cart__buy, .cart__again { padding: 0; }
.cart__acts [hidden] { display: none; }

/* ───── welcome and win-back */
.seq { list-style: none; padding: 0; margin-top: 14px; }
.seq li + li { border-top: 1px solid var(--rule); }
.seqrow { display: grid; grid-template-columns: clamp(124px, 10vw, 170px) minmax(0, 1fr); gap: 12px; width: calc(100% + 16px); margin-inline: -8px; padding: 12px 8px; border-radius: 8px; text-align: left; color: var(--ink); align-items: baseline; min-height: 44px; }
@media (hover: hover) { button.seqrow:hover { background: rgba(196,226,243,.32); } }
button.seqrow:active { background: rgba(196,226,243,.6); }
.seqrow__w { color: var(--muted); font-weight: 600; }
.seqrow__s { font-weight: 700; line-height: 1.3; text-wrap: pretty; }
.pick { margin-top: 14px; }
.pick__days { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pick__days button { min-width: 56px; min-height: 44px; border-radius: 22px; font-weight: 800; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--rule); font-variant-numeric: tabular-nums; }
.pick__days button[aria-pressed="true"] { background: var(--ink); color: var(--white); box-shadow: none; }
.pick__days span { font-weight: 700; margin-left: 4px; }
.pick__n { margin-top: 10px; font-size: var(--t-line); line-height: 1.35; color: var(--ink); max-width: 36ch; text-wrap: pretty; }
.pick__n b { font: 900 var(--subj)/1 "SM Display", sans-serif; display: block; color: var(--navy); font-variant-numeric: tabular-nums; }

/* the desk's replay bar has to stay on screen whatever is above it: with the phone label hidden the kit's grid rows land one off, so this desk stacks with flex */
#email-desk .desk__c { display: flex; flex-direction: column; }
#email-desk .d-body { flex: 1; min-height: 0; }
#email-desk[data-brand="uniqlo"] .d-top, #email-desk[data-brand="nordstrom"] .d-top { border-bottom: 1px solid var(--d-line); }
#email-desk[data-brand="nordstrom"] .d-nav, #email-desk[data-brand="nordstrom"] .d-btn, #email-desk[data-brand="nordstrom"] .d-seg button { letter-spacing: .02em; }
#email-desk .d-stat b { font-size: 22px; }
#email-desk .av { font-size: 11px; letter-spacing: -.02em; }
#email-desk h3 { font-size: 16px; }
#email-desk[data-brand="nordstrom"] .d-stat b { font-weight: 400; letter-spacing: .02em; text-transform: none; }
#email-desk[data-brand="jarritos"] .d-stat b { font-size: 16px; text-transform: none; }

/* ───── the platform on navy */
.platform { background: var(--navy); }
.platform__top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 12px clamp(20px, 4vw, 70px); align-items: end; }
.platform__side .brands { margin-top: 12px; }
#email-desk { margin-top: 6px; height: clamp(600px, 76vh, 860px); }
#email-desk .d-nav__l { font-size: 12px; }
#email-desk .d-replay__btn { min-width: 124px; } #email-desk .d-replay__clock { min-width: 112px; }
@container desk (max-width: 620px) { #email-desk .d-replay__btn { min-width: 0; } #email-desk .d-replay__clock { min-width: 96px; } }   /* a phone doesn't autoplay, and at 320 those widths would push the track to a second row */
@container desk (min-width: 621px) { #email-desk .d-replay__note { flex: 0 0 clamp(150px, 22%, 216px); white-space: normal; line-height: 1.2; text-wrap: balance; } }   /* each note used to resize the track, so the knob and ticks slid sideways while nobody touched anything. The note has its own box, two lines where it's narrow. */
#email-desk .d-replay__clock { flex: none; }   /* the button's label and the time changing width moved the track and the knob: a layout shift nobody asked for */
#email-desk .d-view { flex: none; }   /* with a 44 px minimum on touch, a row of tabs squeezed its labels on top of each other */
#email-desk .d-pop__row { text-align: left; }
#email-desk .d-nav__n--hot, #email-desk .d-icbtn .d-dot { font-size: 11px; }   /* the kit's 9 and 10 px badges pushed the page past the 12-size budget at 820 */
.d-pop__t { padding: 10px 12px 4px; font-size: 12px; font-weight: 600; color: var(--d-mute); }
.d-pop__t--phone, .d-back { display: none; }
#email-desk .d-sec svg { overflow: visible; }
#email-desk .m-ev--sched { background: var(--d-info-soft); border-left-color: var(--d-info); }

/* ───── the wall */
.wall { color: var(--ink); }
html.gl .wall { padding-right: calc(var(--edge) + var(--band) + var(--gut)); }
.plates { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 20px); align-items: start; margin-top: clamp(12px, 1.6vw, 24px); }
.plate { display: block; width: 100%; padding: 0; text-align: left; border-radius: 10px; overflow: hidden; background: var(--white); position: relative; transition: transform .28s var(--ease); }
@media (hover: hover) { .plate:hover { transform: translateY(-4px); } }
.plate:active { transform: translateY(-1px); }
.plate__view { display: block; overflow: hidden; height: var(--ph, 460px); position: relative; }
.plate__scale { display: block; width: 375px; transform-origin: 0 0; transform: scale(var(--s, .7)); }
.plate__cap { display: block; padding: 8px 10px; font-size: var(--n); font-weight: 700; color: var(--ink); line-height: 1.25; border-top: 1px solid var(--rule); min-height: 44px; }
.plate__cap span { display: block; font-weight: 600; color: var(--muted); }
.plate:nth-child(4n+2) { margin-top: clamp(10px, 1.6vw, 30px); } .plate:nth-child(4n+4) { margin-top: clamp(6px, .9vw, 16px); }

/* ───── the closer: an envelope in the page's own dots, on the left, and the last message in the inbox beside it */
.compose-s { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 70px); align-items: center; background: var(--navy); padding-bottom: clamp(44px, 6vw, 110px); }
.compose-led { min-height: clamp(260px, 26vw, 600px); margin-left: -38px; }
.compose-tag { margin-top: clamp(18px, 2.2vw, 30px); }
.compose-tag > span { --h: clamp(58px, 4.6vw, 86px); height: var(--h); font-size: clamp(1.08rem, 1.4vw, 1.9rem); padding-inline: calc(var(--h) * .86) calc(var(--h) * .5); }

/* ───── the phone */
.phone__body { position: relative; width: 100%; height: 100%; padding: 2%; border-radius: 13.5% / 6.5%; background: #10141F; box-shadow: inset 0 0 0 1.5px #5B6478, inset 0 0 0 3px #181D2B, 0 22px 60px rgba(8,28,73,.5); }
.phone__btn { position: absolute; width: 1%; left: -.8%; background: #3D4557; border-radius: 2px 0 0 2px; }
.phone__btn--a { top: 15%; height: 4%; } .phone__btn--b { top: 22%; height: 7.5%; } .phone__btn--c { top: 31%; height: 7.5%; }
.phone__screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 12% / 5.700%; background: #000; container-type: size; }
.phone__off { color: var(--white); padding: 24px; }
.phone.is-buzz .phone__body, .phone.is-buzz { animation: buzz .6s linear; }
@keyframes buzz { 0%, 100% { transform: none; } 10%, 30%, 50%, 70% { transform: translateX(-2px); } 20%, 40%, 60%, 80% { transform: translateX(2px); } }
.ph { position: absolute; inset: 0; font-size: calc(100cqw / 39); font-family: -apple-system, "SF Pro Text", system-ui, "Inter", sans-serif; color: #000; line-height: 1.25; }
.ph-layer { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility 0s linear .22s; display: flex; flex-direction: column; background: #fff; }
.ph-layer.is-on { opacity: 1; visibility: visible; transition: opacity .22s ease; }
.ph-status { position: relative; display: flex; align-items: center; justify-content: space-between; flex: none; height: 5.6em; padding: 1.4em 2.8em 0; font-weight: 600; }
.ph-status .ph-t { font-size: max(1.6em, 11px); }
.ph-status--lock { color: #fff; }
.ph-island { position: absolute; left: 50%; top: 1.2em; width: 11.6em; height: 3.2em; margin-left: -5.8em; border-radius: 2em; background: #000; }
.ph-icons { display: inline-flex; align-items: center; gap: .5em; }
.ph-lock { background: linear-gradient(172deg, #1A3F8F 0%, #0F2F73 38%, #081C49 100%); color: #fff; text-align: center; }
.ph-date { font-size: 1.8em; font-weight: 600; margin-top: .5em; opacity: .94; }
.ph-time { font-size: 7.8em; font-weight: 600; line-height: 1; letter-spacing: -.02em; }
.ph-stack { position: absolute; left: 1.3em; right: 1.3em; top: 19.5em; bottom: 8em; text-align: left; }
.ph-banner { position: absolute; left: 0; right: 0; top: 0; display: flex; gap: 1em; padding: 1.1em 1.2em; background: rgba(245,245,247,.97); border-radius: 2.1em; color: #000; text-align: left; font: inherit; transition: transform .46s cubic-bezier(.2,.9,.25,1), opacity .3s ease; will-change: transform; }
.ph-banner__ic { flex: none; width: 3.8em; height: 3.8em; }
.ph-banner__ic svg { display: block; width: 100%; height: 100%; }
.ph-banner__t { display: block; min-width: 0; flex: 1; }
.ph-banner__top { display: flex; justify-content: space-between; gap: .6em; }
.ph-banner__top b { font-size: max(1.4em, 11px); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-banner__top em { font-style: normal; font-size: max(1.4em, 11px); color: #5C5C60; white-space: nowrap; }
.ph-banner__s { display: block; font-size: max(1.4em, 11px); font-weight: 600; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-banner__p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: max(1.4em, 11px); line-height: 1.26; color: #1C1C1E; }
.ph-lockfoot { position: absolute; left: 4.4em; right: 4.4em; bottom: 4.4em; display: flex; justify-content: space-between; }
.ph-lockfoot i { width: 4.8em; height: 4.8em; border-radius: 50%; background: rgba(255,255,255,.14); }
.ph-demo { position: absolute; left: 0; right: 0; bottom: 0; padding: .55em 0 2.1em; text-align: center; font-size: max(1.1em, 11px); font-weight: 600; pointer-events: none; color: #636366; background: #fff; box-shadow: 0 -1px 0 #E5E5EA; transition: background-color .22s ease, box-shadow .22s ease, color .22s ease; }
.phone[data-view="lock"] .ph-demo { color: #DCE6F7; background: transparent; box-shadow: none; }
.ph-home { position: absolute; left: 50%; bottom: .8em; width: 13.4em; height: .5em; margin-left: -6.7em; border-radius: .3em; background: rgba(120,120,128,.55); pointer-events: none; }
.ph-mailtop { flex: none; padding: .2em 1.6em .8em; }
.ph-mailtop__b { color: #0A6FD6; font-size: 1.7em; }
.ph-mailtop__h { font-size: 3.4em; font-weight: 700; letter-spacing: -.01em; }
.ph-list { flex: 1; min-height: 0; overflow: hidden; border-top: 1px solid #E5E5EA; padding-bottom: 4.6em; }
.phone.is-engaged .ph-list, .phone.is-engaged .ph-readbody { overflow-y: auto; }
.ph-row { position: relative; display: flex; width: 100%; padding: 1em 1.6em 1em 3em; text-align: left; border-bottom: 1px solid #E5E5EA; font: inherit; color: #000; }
.ph-row__dot { position: absolute; left: 1.1em; top: 1.6em; width: 1em; height: 1em; border-radius: 50%; background: #0A84FF; }
.ph-row__dot.is-read { opacity: 0; }
.ph-row__t { display: block; min-width: 0; flex: 1; }
.ph-row__top { display: flex; justify-content: space-between; gap: 1em; }
.ph-row__top b { font-size: 1.7em; font-weight: 600; }
.ph-row__top em { font-style: normal; color: #6C6C70; font-size: max(1.5em, 11px); white-space: nowrap; }
.ph-row__s { display: block; font-size: max(1.5em, 11px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-row__p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: max(1.5em, 11px); color: #6C6C70; line-height: 1.3; }
.ph-readtop { flex: none; padding: 0 1.2em .6em; border-bottom: 1px solid #E5E5EA; }
.ph-back { color: #0A6FD6; font: inherit; font-size: 1.7em; min-height: 1.6em; padding: 0; }
.ph-readbody { flex: 1; min-height: 0; overflow: hidden; padding-bottom: 4.6em; transition: opacity .15s ease; }
.ph-readhead { padding: 1em 1.6em; border-bottom: 1px solid #E5E5EA; }
.ph-readhead__s { font-size: 1.9em; font-weight: 700; line-height: 1.2; }
.ph-readhead__f { font-size: 1.4em; color: #6C6C70; margin-top: .2em; }
.ph-readhead__f b { color: #000; font-weight: 600; }
.ph-plain { padding: 1.6em; }
.ph-plain p { font-size: 1.6em; line-height: 1.35; }
.ph-plain__n { color: #6C6C70; margin-top: .8em; }
.ph-smstop { flex: none; display: grid; grid-template-columns: 3em 1fr 3em; justify-items: center; align-items: center; padding: 0 .8em .6em; border-bottom: 1px solid #E5E5EA; }
.ph-smstop .ph-back { justify-self: start; font-size: 2.6em; line-height: 1; }
.ph-smsav .ph-av { width: 4.2em; height: 4.2em; font-size: 1em; }
.ph-smsn { grid-column: 1 / -1; font-size: 1.3em; color: #000; margin-top: .2em; }
.ph-thread { flex: 1; min-height: 0; padding: 1em 1.4em; display: flex; flex-direction: column; gap: .6em; overflow: hidden; }
.ph-thread__d { font-size: 1.2em; color: #6C6C70; text-align: center; }
.ph-thread__o { font-size: 1.15em; color: #6C6C70; padding-left: .2em; }
.ph-bub { max-width: 82%; align-self: flex-start; padding: .55em .9em; font-size: 1.65em; line-height: 1.28; background: #E9E9EB; color: #000; border-radius: 1.1em; animation: bub .3s ease; }
@keyframes bub { from { opacity: 0; transform: translateY(.5em); } }
.ph-smsbar { flex: none; margin: .6em 1.2em 4.200em; padding: .55em 1em; border-radius: 1.4em; box-shadow: inset 0 0 0 1px #C7C7CC; font-size: 1.5em; color: #8A8A8E; }

/* a real notification, when the page's phone is off screen or this is a phone */
.osb { position: fixed; z-index: 70; top: 10px; left: 10px; right: 10px; max-width: 390px; margin-inline: auto; font-size: 10.5px; font-family: -apple-system, "SF Pro Text", system-ui, "Inter", sans-serif; transform: translateY(-140%); transition: transform .42s cubic-bezier(.2,.9,.25,1); will-change: transform; }
.osb.is-in { transform: none; }
.ph-banner__d { display: block; margin-top: .35em; font-size: max(1.1em, 11px); font-weight: 600; color: #5C5C60; }
.osb .ph-banner { position: relative; box-shadow: 0 10px 34px rgba(8,28,73,.4); background: #F5F5F7; width: 100%; }
@media (min-width: 761px) { .osb { left: auto; right: 16px; top: 76px; width: 360px; } }

/* the reader: an email, full size */
.rd { position: fixed; inset: 0; z-index: 80; display: flex; justify-content: center; align-items: stretch; padding: 14px; background: rgba(8,28,73,.72); opacity: 0; transition: opacity .2s ease; }
.rd.is-in { opacity: 1; }
.rd__card { position: relative; width: min(430px, 100%); display: flex; flex-direction: column; background: var(--white); color: var(--ink); border-radius: 14px; overflow: hidden; transform: translateY(14px); transition: transform .26s var(--ease); }
.rd.is-in .rd__card { transform: none; }
.rd__top { flex: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 8px 8px 14px; border-bottom: 1px solid var(--rule); }
.rd__s { font-weight: 800; line-height: 1.25; }
.rd__f { font-size: var(--n); color: var(--muted); text-wrap: pretty; }
.rd__x { min-height: 44px; padding: 0 12px; font-weight: 800; color: var(--ink); }
.rd__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
html.rd-open { overflow: hidden; }
html.rd-open .bar { z-index: 1; }

/* ───── EMAILS. Laid out at 375 wide; 1em is 10px at that width, whatever the container is. */
.em { container-type: inline-size; width: 100%; background: #fff; color: #111; text-align: left; overflow: hidden; }
.em__in { font-size: calc(100cqw / 37.5); line-height: 1.35; font-weight: 400; letter-spacing: 0; text-transform: none; }
.em p { margin: 0; }
.em img { display: block; width: 100%; height: auto; max-width: none; }
.em-demo { font-size: 1em; opacity: .8; margin-top: .6em !important; line-height: 1.3; }

/* UNIQLO */
.em--uniqlo { font-family: "Archivo", system-ui, sans-serif; color: #1B1B1B; }
.eu-top { display: flex; align-items: center; justify-content: space-between; padding: 1.4em 1.6em; }
.eu-top img { width: 4.6em; }
.eu-nav { display: flex; gap: 1.5em; }
.eu-nav span { font-size: 1.15em; font-weight: 700; letter-spacing: .02em; }
.eu-pad { padding: 1.8em 1.6em; display: flex; flex-direction: column; gap: .9em; align-items: flex-start; }
.eu-pad--tint { background: #F4F4F4; align-items: stretch; }
.eu-pad--tight { padding-bottom: .8em; }
.eu-h { font-size: 5.6em; font-weight: 700; line-height: .95; letter-spacing: -.03em; }
.eu-h--m { font-size: 5em; }
.eu-sub { font-size: 2.2em; font-weight: 600; line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; }
.eu-p { font-size: 1.5em; line-height: 1.38; color: #333; text-wrap: pretty; }
.eu-lab { font-size: 1.3em; font-weight: 700; }
.eu-btn { display: inline-flex; align-items: center; min-height: 3.4em; padding: 0 1.5em; background: #1B1B1B; color: #fff; font-size: 1.4em; font-weight: 700; }
.eu-heat { display: grid; gap: 1em; width: 100%; }
.eu-heat > div { display: grid; gap: .3em; }
.eu-heat span { display: block; height: .8em; background: #ED1D24; }
.eu-heat p { font-size: 1.3em; line-height: 1.25; }
.eu-heat b { font-weight: 600; color: #555; }
.eu-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1em; width: 100%; padding: .9em 0; border-top: 1px solid #DDD; }
.eu-row__n { font-size: 1.45em; font-weight: 600; line-height: 1.2; }
.eu-row__s { font-size: 1.25em; color: #666; }
.eu-row__p { font-size: 1.5em; font-weight: 700; color: #D9000D; white-space: nowrap; }
.eu-item { display: grid; grid-template-columns: 11em 1fr; align-items: center; gap: 1.4em; width: 100%; padding: 1.2em 0; border-block: 1px solid #DDD; }
.eu-item img { width: 11em; }
.eu-item .eu-row__p { margin-top: .5em !important; }
.eu-sw { display: flex; gap: .7em; }
.eu-sw i { width: 2.6em; height: 2.6em; display: block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); }
.eu-utme { position: relative; background: #ED1D24; padding: 1.8em 1.6em 0; overflow: hidden; }
.eu-utme__t { font-size: 7em; font-weight: 700; letter-spacing: -.03em; color: #fff; line-height: .9; }
.eu-utme svg { display: block; width: 76%; margin: .4em auto -1.6em; }
.eu-red { background: #D9000D; padding: 2.4em 1.6em 2em; display: grid; gap: .8em; }
.eu-red__t { font-size: 8.4em; font-weight: 700; line-height: .88; letter-spacing: -.035em; color: #fff; }
.eu-red__s { font-size: 2.4em; font-weight: 600; line-height: 1.1; color: #fff; }
.eu-foot { padding: 1.6em; background: #1B1B1B; color: #fff; }
.eu-foot p { font-size: 1.15em; }
.eu-foot__t { font-size: 2em !important; font-weight: 700; margin-bottom: .3em !important; }

/* Nordstrom */
.em--nordstrom { font-family: "Jost", system-ui, sans-serif; color: #111; }
.en-top { padding: 2em 1.6em 1.2em; display: grid; justify-items: center; gap: 1.2em; }
.en-top img { width: 18em; }
.en-nav { display: flex; gap: 1.6em; }
.en-nav span { font-size: 1.2em; letter-spacing: .06em; }
.en-pad { padding: 2.4em 2em; display: grid; justify-items: center; gap: .9em; text-align: center; }
.en-pad--t0 { padding-top: 0; }
.en-k { font-size: 1.15em; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; }
.en-h { font-size: 2.7em; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; line-height: 1.18; text-wrap: balance; }
.en-h--s { font-size: 1.9em; }
.en-big { font-size: 8em; font-weight: 400; line-height: 1; letter-spacing: .01em; }
.en-p { font-size: 1.55em; line-height: 1.45; color: #2D2B28; text-wrap: pretty; }
.en-c { font-size: 1.3em; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; line-height: 1.3; }
.en-small { font-size: 1.4em; line-height: 1.38; color: #4A4843; }
.en-link { font-size: 1.35em; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; padding-bottom: .25em; border-bottom: 1px solid #111; }
.en-two { display: grid; grid-template-columns: 1fr 1fr; gap: 1em; padding: 0 1em 2em; align-items: center; }
.en-two__t { display: grid; gap: .8em; justify-items: start; padding-left: .6em; }
.en-two .en-c { margin-top: .6em; }
.en-tier { display: grid; border-top: 1px solid #111; margin: 0 2em 2.2em; }
.en-tier > div { display: flex; justify-content: space-between; gap: 1em; padding: .9em 0; border-bottom: 1px solid #DDD8CD; align-items: baseline; }
.en-tier span { font-size: 1.35em; color: #4A4843; }
.en-tier b { font-size: 1.35em; font-weight: 500; text-align: right; }
.en-tier .is-you span, .en-tier .is-you b { color: #111; font-weight: 600; }
.en-bar { width: 100%; height: .5em; background: #E8E5DD; }
.en-bar i { display: block; height: 100%; background: #111; }
.en-foot { padding: 2em; background: #F6F4EF; text-align: center; display: grid; gap: .4em; }
.en-foot p { font-size: 1.2em; color: #4A4843; }
.en-foot__t { font-size: 1.3em !important; font-weight: 500; letter-spacing: .08em; color: #111 !important; text-transform: uppercase; text-wrap: balance; }

/* Jarritos */
.em--jarritos { font-family: "TikTok Sans", system-ui, sans-serif; color: #212121; background: #FF5100; }
.ej-top { display: flex; justify-content: space-between; align-items: center; gap: 1em; padding: 1.6em 1.6em 1em; background: #FF5100; }
.ej-top img { width: 13em; }
.ej-top p { font-size: 1.05em; font-weight: 700; color: #212121; text-align: right; line-height: 1.1; max-width: 9em; }
.ej-hero { position: relative; height: 40em; background: #FF5100; overflow: hidden; display: grid; place-items: end center; }
.ej-hero--s { height: 30em; } .ej-hero--p { background: #F4F1E8; }
.ej-sun { position: absolute; left: 50%; top: 2em; width: 32em; height: 32em; margin-left: -16em; border-radius: 50%; }
.ej-hero--s .ej-sun { width: 25em; height: 25em; margin-left: -12.5em; }
.ej-bottle { position: relative; display: block; height: 37em; width: auto; margin-bottom: -2.4em; }
.ej-hero--s .ej-bottle { height: 28em; }
.ej-pad { padding: 2em 1.6em; display: flex; flex-direction: column; gap: .8em; align-items: flex-start; }
.ej-pad--o { background: #FF5100; color: #212121; }
.ej-pad--g { background: #0B6A35; color: #fff; }
.ej-pad--w { background: #fff; color: #212121; }
.ej-h { font-family: "Unbounded", sans-serif; font-weight: 700; font-size: 3.5em; line-height: 1.02; letter-spacing: -.02em; text-transform: uppercase; text-wrap: balance; }
.ej-pad--o .ej-h { color: #fff; }
.ej-sub { font-size: 1.8em; font-weight: 600; line-height: 1.2; text-wrap: balance; }
.ej-p { font-size: 1.5em; line-height: 1.36; text-wrap: pretty; }
.ej-p--o { color: #212121; }
.ej-k { font-size: 1.15em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #0B6A35; }
.ej-m { font-family: "Unbounded", sans-serif; font-weight: 700; font-size: 2.1em; line-height: 1.1; text-transform: uppercase; color: #0B6A35; }
.ej-btn { display: inline-flex; align-items: center; min-height: 3.2em; padding: 0 1.5em; border-radius: 2em; background: #0B6A35; color: #fff; font-size: 1.45em; font-weight: 700; }
.ej-pad--g .ej-btn { background: #fff; color: #0B6A35; }
.ej-chip { display: inline-flex; align-items: center; gap: .5em; font-size: 1.35em; font-weight: 700; }
.ej-chip i { width: .95em; height: .95em; border-radius: 50%; display: block; }
.ej-chips { display: flex; flex-wrap: wrap; gap: .3em 1em; }
.ej-chart { background: #fff; padding: .6em 1.6em; }
.ej-chart > div { display: flex; justify-content: space-between; align-items: center; gap: 1em; padding: .9em 0; border-bottom: 1px solid #F1E4DC; }
.ej-chart__t { font-family: "Unbounded", sans-serif; font-weight: 700; font-size: 1.3em; text-transform: uppercase; }
.ej-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.ej-grid > div { aspect-ratio: 1; display: flex; align-items: flex-end; padding: .7em; }
.ej-grid span { font-size: 1.2em; font-weight: 700; color: #fff; line-height: 1.1; }
.ej-foot { padding: 1.6em; background: #212121; color: #fff; }
.ej-foot p { font-size: 1.15em; }
.ej-foot__t { font-family: "Unbounded", sans-serif; font-weight: 700; font-size: 1.6em !important; margin-bottom: .3em !important; }

/* ───── the platform's own screens */
.m-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 12px 16px; padding: 12px 14px; border-bottom: 1px solid var(--d-line); }
.m-split { display: grid; min-height: 100%; }
.m-chart { position: relative; touch-action: pan-y; }
.m-chart__x { position: absolute; top: 0; bottom: 16px; width: 1px; background: var(--d-ink2); opacity: 0; pointer-events: none; }
.m-chart__tip { position: absolute; top: 0; z-index: 3; padding: 6px 9px; border-radius: 6px; background: var(--d-top); color: var(--d-top-ink); box-shadow: var(--d-shadow); font-size: 12px; line-height: 1.35; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s; }
.m-chart:hover .m-chart__x, .m-chart:hover .m-chart__tip, .m-chart.is-touch .m-chart__x, .m-chart.is-touch .m-chart__tip { opacity: 1; }
.m-leg { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--d-ink2); margin-top: 4px; }
.m-leg i { display: inline-block; width: 12px; height: 2px; margin-right: 5px; vertical-align: 3px; }
.m-need { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 8px; align-items: start; width: 100%; padding: 8px 0; border-bottom: 1px solid var(--d-line); text-align: left; }
@media (hover: hover) { .m-need:hover .m-need__t { text-decoration: underline; } }
.m-flows { flex: 1; min-height: 0; display: grid; grid-template-columns: 200px minmax(0, 1fr) 300px; }
.m-flowlist { border-right: 1px solid var(--d-line); overflow: auto; }
.m-flowlist button { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 8px; width: 100%; padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--d-line); }
@media (hover: hover) { .m-flowlist button:hover { background: var(--d-sunk); } }
.m-flowlist button.is-on { background: var(--d-sunk); box-shadow: inset 2px 0 0 var(--d-accent); }
.m-canvas { background-color: var(--d-sunk); background-image: radial-gradient(var(--d-line2) 1px, transparent 1px); background-size: 16px 16px; padding: 18px 16px 40px; min-height: 100%; }
.m-flow { display: flex; flex-direction: column; align-items: center; width: max-content; min-width: 100%; }
.m-flow > * + *::before { content: ""; position: absolute; left: 50%; top: -14px; height: 14px; width: 1px; background: var(--d-line2); }
.m-flow > * { position: relative; margin-top: 14px; }
.m-flow > *:first-child { margin-top: 0; }
.m-node { display: block; width: 256px; padding: 8px 10px; background: var(--d-raised); border-radius: var(--d-r); box-shadow: 0 0 0 1px var(--d-line2); text-align: left; }
@media (hover: hover) { .m-node:hover { box-shadow: 0 0 0 1px var(--d-ink2); } }
.m-node.is-sel { box-shadow: 0 0 0 2px var(--d-accent); }
.m-node__t { display: flex; align-items: center; gap: 6px; font-weight: 600; line-height: 1.25; }
.m-node__s { display: block; margin-top: 2px; color: var(--d-mute); font-size: 12px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-node__nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--d-line); font-size: 12px; }
.m-node__nums b { display: block; font-weight: 600; }
.m-node__nums span { color: var(--d-mute); font-size: 11px; }
.m-here { display: inline-flex; margin-left: auto; font-size: 11px; font-weight: 600; color: var(--d-info); white-space: nowrap; }
.m-wait { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 12px; background: var(--d-raised); box-shadow: 0 0 0 1px var(--d-line2); font-size: 12px; color: var(--d-ink2); }
.m-wait.is-sel { box-shadow: 0 0 0 2px var(--d-accent); }
.m-exit { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--d-mute); background: var(--d-sunk); padding: 2px 6px; }
.m-branch { display: grid; grid-template-columns: repeat(2, max-content); gap: 16px; margin-top: 14px; position: relative; }
.m-branch::before { content: ""; position: absolute; left: 25%; right: 25%; top: -7px; height: 1px; background: var(--d-line2); }
.m-branch > div { position: relative; display: flex; flex-direction: column; align-items: center; }
.m-branch > div > * { position: relative; margin-top: 14px; }
.m-branch > div > *:first-child { margin-top: 0; }
.m-branch > div > * + *::before { content: ""; position: absolute; left: 50%; top: -14px; height: 14px; width: 1px; background: var(--d-line2); }
.m-branch__l { font-size: 11px; font-weight: 600; color: var(--d-ink2); background: var(--d-sunk); padding: 0 6px; }
.m-ab { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
.m-ab > div { padding: 6px; background: var(--d-sunk); border-radius: var(--d-r); font-size: 12px; line-height: 1.25; min-width: 0; }
.m-ab > div.is-win { box-shadow: inset 0 0 0 1.5px var(--d-good); }
.m-panel { border-left: 1px solid var(--d-line); overflow: auto; min-height: 0; }
.m-mini { width: 100%; max-width: 280px; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px var(--d-line2); margin: 0 auto; }
.m-mini--sms { padding: 12px; background: #fff; }
.m-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); min-width: 680px; }
.m-cal__d { padding: 6px 8px; font-size: 11px; font-weight: 600; color: var(--d-mute); border-bottom: 1px solid var(--d-line); border-left: 1px solid var(--d-line); background: var(--d-bg); }
.m-cal__c { min-height: 92px; padding: 4px; border-bottom: 1px solid var(--d-line); border-left: 1px solid var(--d-line); display: flex; flex-direction: column; gap: 2px; }
.m-cal__c.is-off { background: var(--d-sunk); }
.m-cal__c.is-over { outline: 2px solid var(--d-accent); outline-offset: -2px; }
.m-cal__n { font-size: 11px; font-weight: 600; color: var(--d-mute); padding: 0 2px 1px; }
.m-cal__c.is-today .m-cal__n { color: var(--d-accent-text); font-weight: 700; }
.m-ev { display: block; width: 100%; padding: 2px 5px; border-radius: 3px; font-size: 11px; line-height: 1.3; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: var(--d-sunk); color: var(--d-ink); cursor: grab; border-left: 2px solid var(--d-ink2); }
.m-ev { -webkit-user-select: none; user-select: none; }
.m-ev:not(.m-ev--sched):not(.m-ev--draft) { cursor: pointer; }   /* a sent campaign can't be dragged, so it doesn't offer to be */
.m-ev--sched { background: var(--d-accent-soft); border-left-color: var(--d-accent); }
.m-ev--sms { border-left-style: dotted; }
.m-ev--draft { background: var(--d-warn-soft); border-left-color: var(--d-warn); }
.m-ev.is-fresh { animation: d-toast .3s ease; }
.m-edit { display: grid; grid-template-columns: minmax(250px, .9fr) minmax(280px, 1fr) minmax(220px, .78fr); min-height: 100%; }
.m-edit > div { min-width: 0; padding: 12px 14px; border-right: 1px solid var(--d-line); }
.m-edit > div:last-child { border-right: 0; }
.m-field { display: grid; gap: 3px; margin-bottom: 10px; }
.m-field > span, .m-field > label { font-size: 11px; font-weight: 600; color: var(--d-mute); }
.m-inprev { padding: 8px 10px; background: var(--d-sunk); border-radius: var(--d-r); line-height: 1.3; margin-bottom: 10px; }
.m-inprev .trunc { display: block; }
.m-count { font-size: 11px; color: var(--d-mute); float: right; font-weight: 500; }
.m-count.is-over { color: var(--d-warn); font-weight: 600; }
.m-prev { display: flex; justify-content: center; background: var(--d-sunk); border-radius: var(--d-r); padding: 10px; }
.m-prev__w { width: 100%; max-width: 300px; box-shadow: 0 0 0 1px var(--d-line2); }
.m-prev__w.is-wide { max-width: 420px; }
.m-comment { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--d-line); }
.m-comment.is-done { opacity: .55; }
.m-checks li { display: flex; gap: 7px; align-items: center; padding: 3px 0; }
.m-seg { display: grid; grid-template-columns: 210px minmax(0, 1fr) 280px; min-height: 100%; }
.m-seg > * { min-width: 0; }
.m-rule { display: grid; grid-template-columns: 1.1fr .8fr .8fr 26px; gap: 6px; align-items: center; margin-bottom: 6px; }
.m-rule select { height: 28px; padding: 0 4px; border: 1px solid var(--d-line2); border-radius: var(--d-r); background: var(--d-raised); min-width: 0; width: 100%; }
.m-count-big { font: var(--d-head-weight) 27px/1.05 var(--d-head); letter-spacing: var(--d-head-track); font-variant-numeric: tabular-nums; }
.m-tpl { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 44%), 1fr)); gap: 16px 14px; padding: 14px; }
.m-tpl button { display: block; text-align: left; width: 100%; }
.m-tpl__v { display: block; position: relative; aspect-ratio: 3 / 4; overflow: hidden; box-shadow: 0 0 0 1px var(--d-line2); border-radius: var(--d-r); margin-bottom: 6px; background: #fff; }
@media (hover: hover) { .m-tpl button:hover .m-tpl__v { box-shadow: 0 0 0 1px var(--d-ink2); } }
.m-tpl__s { display: block; width: 375px; transform-origin: 0 0; transform: scale(var(--ts, .45)); }
.m-tpl__v::after { content: ""; position: absolute; inset: auto 0 0; height: 10%; background: linear-gradient(to bottom, rgba(255,255,255,0), #fff); }
.m-lights { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px 14px; padding: 12px 14px; border-bottom: 1px solid var(--d-line); }
.m-light b { display: flex; align-items: center; gap: 5px; font-weight: 600; }
.m-light span { font-size: 11px; color: var(--d-mute); }
.m-alert { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 10px 14px; background: var(--d-bad-soft); color: var(--d-ink); border-bottom: 1px solid var(--d-line); }
.m-alert.is-ok { background: var(--d-good-soft); }

.mailbox .tag > span, .foot .tag > span, .bar .tag > span { font-size: var(--b); }
.compose-s .compose-tag > span { font-size: clamp(1rem, 1.1vw, 1.9rem); }
.foot__cols a, .foot__legal, .foot__legal a { font-size: var(--n); }
.row__meta, .row__t { font-size: var(--b); }
.brand { flex: none; }
.wedo__h { font-size: var(--t-line); }

/* without JavaScript the words stay and the controls that need it go, and the boxes the apps mount into don't hold a screen of nothing */
html:not(.js) #email-desk { height: auto; margin-top: 12px; }
html:not(.js) .platform noscript .line { max-width: none; }
@media (max-width: 760px) { html:not(.js) .reader { height: auto; padding-bottom: 14px; } html:not(.js) .platform noscript .line { padding-inline: var(--gut); } }
html:not(.js) .mock-wrap, html:not(.js) .lab__dev, html:not(.js) .lab__go, html:not(.js) .brands, html:not(.js) .pick__days, html:not(.js) .pick__n, html:not(.js) .cart__acts, html:not(.js) .run__clock, html:not(.js) .run__track { display: none; }
html:not(.js) .mailrow { grid-template-columns: minmax(0, 1fr); }
html:not(.js) .mailrow .ph-av { display: none; }
html.js .mails li:nth-child(n+4) { display: none; }   /* the script keeps three rows. The HTML's first paint matches it, avatars included, so swapping them moves nothing. */
html:not(.js) .phone { height: auto; }

/* the kit footer's five columns overflow by 7px around 900 wide; three columns here until the kit takes this */
@media (min-width: 861px) and (max-width: 980px) { .foot__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* narrower desks: the flow keeps its full width, because its branches can't get smaller than two nodes */
@container desk (max-width: 1260px) { .m-flows { grid-template-columns: 170px minmax(0, 1fr) 262px; } }
@container desk (max-width: 1120px) {
  .m-flows { display: block; overflow-y: auto; }
  .m-flows .m-flowlist { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-right: 0; border-bottom: 1px solid var(--d-line); overflow: visible; }
  .m-flows .m-flowlist button { border-right: 1px solid var(--d-line); }
  .m-canvas { min-height: 0; overflow-x: auto; }
  .m-panel { border-left: 0; border-top: 1px solid var(--d-line); overflow: visible; }
  .m-hl { display: none; }
  .m-seg { grid-template-columns: 180px minmax(0, 1fr); }
  .m-seg > :last-child { grid-column: 1 / -1; border-top: 1px solid var(--d-line); }
}
@container desk (max-width: 900px) { .m-hm { display: none; } }
@container desk (max-width: 760px) { .m-cal { min-width: 0; } }
/* the phone's bottom tabs slide in once the desk is really on screen, so they never sit on its first line while it's arriving */
@container desk (max-width: 620px) { .d-rail { transition: transform .2s var(--ease); } .desk:not(.tabs-on) .d-rail { visibility: hidden; transform: translateY(100%); transition: transform .2s var(--ease), visibility 0s .2s; } }
/* on a mouse the frame is a fixed height, and its replay bar is the frame's own bar over whatever the pane has scrolled under it */
@media (pointer: fine) and (min-width: 761px) { #email-desk .d-replay { position: sticky; bottom: 0; z-index: 2; } }
@container desk (max-width: 620px) { #email-desk .d-views { flex-wrap: wrap; overflow: visible; } }   /* nothing scrolls inside anything on a phone: five flows would run 119 px off the frame */
@container desk (max-width: 620px) { .m-rule { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; } .m-rule > [data-r="f"] { grid-column: 1 / -1; } .m-rule select { height: 44px; } #email-desk .d-seg button { white-space: nowrap; padding-inline: 10px; } }
@media (hover: none) { .d-search kbd { display: none; } }
.d-top :focus-visible { outline-color: var(--d-top-ink); }
/* a 2560 screen: the software scales up with it instead of sitting as tiny type in a wide frame */
@media (min-width: 2200px) and (pointer: fine) { .desk { zoom: 1.25; } .d-ghost { zoom: .8; } }
/* the footer block's longest word runs past a 320 screen (kit request logged) */
@media (max-width: 340px) { .wedo__list b { font-size: 1.86rem; } }
/* a phone on its side: the site bar is all the fixed chrome it can afford */
@media (max-height: 500px) { .list__bar { position: static; } }

/* ───── tablet and narrow windows: list over reader once the panes won't fit */
@media (min-width: 761px) and (max-width: 1000px) { .phone { --h: min(calc(100svh - 92px), 820px, calc((var(--pc) - 36px) / .486)); } }
@media (max-width: 480px) {
  #email-desk .d-top { padding-inline: 10px 6px; gap: 6px; }
  #email-desk .d-top__logo { flex: none; }
  #email-desk .d-top__sep { display: none; }
  #email-desk .d-top__ws { display: block; flex: 0 1 auto; min-width: 0; padding-inline: 4px; line-height: 44px; overflow: hidden; text-overflow: ellipsis; }
  #email-desk .d-top__ws > :not(span) { display: none; }
  #email-desk .d-search { flex: none; width: 44px; margin-left: auto; padding: 0; justify-content: center; }
  #email-desk .d-search .trunc { display: none; }
  #email-desk .d-top__right { flex: none; margin-left: 0; }
}
@media (max-width: 1000px) { html.gl .wall { padding-right: var(--gut); } html.gl .mailbox { grid-template-columns: minmax(0, 1fr) var(--pc); column-gap: var(--g); padding: 64px 0 calc(var(--band) / 2) var(--gut); } html.gl .reader { grid-column: 2; background: var(--navy); padding-top: 16px; margin-bottom: calc(var(--band) / -2); } html.gl #fields path { fill: transparent; } }
@media (max-width: 1100px) { .plates { grid-template-columns: repeat(3, minmax(0, 1fr)); } .plate:nth-child(n) { margin-top: 0; } }
@media (max-width: 900px) { .platform__top { grid-template-columns: minmax(0, 1fr); } .m-edit { grid-template-columns: minmax(0, 1fr); } .m-edit > div { border-right: 0; border-bottom: 1px solid var(--d-line); } .m-seg { grid-template-columns: minmax(0, 1fr); } }

/* ───── phones: the list is the page, the phone sits under the first message, and rows open like real mail */
@media (max-width: 760px) {
  .mailbox { display: flex; flex-direction: column; padding: 64px 0 0; }
  .list { display: contents; }
  .list > * { position: relative; z-index: 2; }   /* display: contents cancels the list's own layer, and without one these sit under the dots */
  .list__bar { order: 0; position: static; padding-inline: var(--gut); }   /* full width, and it scrolls away: the site bar is the one fixed thing on a phone */
  .ph-status { height: 7.8em; padding-bottom: 2.2em; }   /* the phone is cropped here, so the label moves up to where it can be seen */
  .ph-demo { top: calc(100cqw / 39 * 5.1); bottom: auto; padding: 0; line-height: 1.1; box-shadow: none; }
  .ph-stack { top: 21.7em; }
  .d-back { display: block; position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, .45); }
  .d-pop__t--phone { display: block; }
  #email-desk .d-drawer { transform: translateY(102%); }   /* a phone sheet comes up from the thumb, and parked below the screen it can't widen the page */
  #email-desk .d-drawer.is-open { transform: none; }
  .row--hero { order: 1; }
  .reader { order: 2; height: clamp(320px, 88vw, 440px); overflow: hidden; padding-top: 14px; }
  .whose { order: 3; } #lab { order: 4; } #cart { order: 5; } #welcome { order: 6; } #winback { order: 7; }
  .mailbox .row, .whose { padding-inline: var(--gut); }
  .phone { position: relative; top: 0; --h: min(calc(78vw / .486), 660px); }
  .row--hero .row__subj { font-size: clamp(2.05rem, 9.4vw, 3.4rem); }
  .row__subj { font-size: clamp(1.7rem, 7.6vw, 2.6rem); }
  .lab__fs { grid-template-columns: minmax(0, 1fr); }
  .lab__dev { display: none; }
  .js .row__open { display: inline-flex; margin-top: 4px; }
  .js .row:not(.is-open) > .row__body { display: none; }
  #email-desk { height: auto; }
  .run__h, .pick__n b { font-size: clamp(1.7rem, 7.6vw, 2.6rem); }
  .foot__cols a[href^="mailto"] { font-size: .8125rem; }
  .lab__cut { display: none; }
  #email-desk .m-kpis .d-stat:nth-child(n+5), #email-desk .d-head [data-act="export"], #email-desk .d-head [data-act="trans"], #email-desk .m-need:nth-of-type(n+4) { display: none; }
  #email-desk .d-search { min-width: 44px; }
  #email-desk .d-nav__l { font-size: 11px; }
  .brand { flex: 1 1 28%; width: auto; min-width: 82px; height: 52px; }
  .whose__bar { display: grid; grid-template-columns: minmax(0, 1fr); }
  .mock-wrap { grid-template-columns: minmax(0, 1fr); }
  .run__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform { padding-inline: 0; }
  .platform .row--wide, .note--d { padding-inline: var(--gut); }
  .plates { display: flex; align-items: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin-inline: calc(var(--gut) * -1); padding: 4px var(--gut) 12px; scrollbar-width: none; }
  .plates::-webkit-scrollbar { display: none; }
  .plate { flex: 0 0 72vw; scroll-snap-align: center; }
  .wall + .strip { display: none; }   /* sky runs straight into navy here, so this one strip can go: the phone page was over nine screens */
  .compose-s { grid-template-columns: minmax(0, 1fr); gap: 6px; padding-top: 14px; }
  .compose-led { min-height: calc(54vw + 76px); margin-inline: calc(var(--gut) * -1); }
  .rd { padding: 0; }
  .rd__card { width: 100%; border-radius: 0; }
  .cart__item { grid-template-columns: 84px minmax(0, 1fr); }
  /* the software's phone app: tabs at the thumb, stuck to the bottom of the screen while the app is on it */
  #email-desk .d-table td, #email-desk .d-table th { padding-inline: 6px; }
  #email-desk .m-hs { display: none; }
  #email-desk .m-canvas { padding: 12px 10px 20px; }
  #email-desk .m-flow, #email-desk .m-branch { width: 100%; }
  #email-desk .m-branch { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  #email-desk .m-branch::before { display: none; }
  #email-desk .m-node { width: 100%; }
  #email-desk .m-node[style] { width: 100% !important; }
  #email-desk .m-flow > div { width: 100%; }
  .m-panel { border-left: 0; border-top: 1px solid var(--d-line); }
}
@media (max-width: 360px) {
  .mails li:nth-child(3), .platform .brands { display: none; }   /* the brand row above the lab still switches the desk */
  .reader { height: 280px; }
}
@media (prefers-reduced-motion: reduce) { .d-rail, .desk:not(.tabs-on) .d-rail { transition: none; } .ph-readbody, .ph-banner, .ph-layer, .run__track i, .run__steps li, .osb, .rd, .rd__card, .plate, .platform .brand { transition: none; } .phone.is-buzz, .phone.is-buzz .phone__body, .ph-bub, .m-ev.is-fresh { animation: none; } }
.d-table td.m-hl { max-width: 250px; }
@container desk (max-width: 1250px) { .d-table td.m-hl { max-width: 0; width: 100%; } }   /* the subject takes what's left and trims, so the table can't outgrow its pane by a few px */
