/* 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 feed runs under the header, so the bar stays solid here */
.bar { background: var(--navy); }
/* ───── the feed. Desktop: the page scroll is the thumb, so the phone and the river stay pinned while you scroll. */
.feed-s { position: relative; }
html.gl .feed-s { height: 205vh; padding-block: 0; }
.pin { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(20px, 3vw, 56px); align-items: center; }
html.gl .pin { position: sticky; top: 0; height: 100vh; min-height: 560px; padding-top: 72px; padding-bottom: 14px; }
html:not(.gl) .pin { padding-top: 72px; }
.pin__say { min-width: 0; display: flex; flex-direction: column; gap: clamp(8px, 1.6vh, 18px); }
.pin__h { font-size: clamp(2.3rem, min(4vw, 7.2vh), 6.6rem); text-wrap: balance; }
.pin__line { color: var(--white); max-width: 38ch; text-wrap: pretty; }

/* the river: six budgets over time, each running into its own line of the ledger */
.flow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(216px, 40%); grid-template-rows: minmax(0, 1fr); height: clamp(170px, 30vh, 340px); }   /* the row holds the box's height: left to size itself, a wide canvas grows it and the river runs under the line below */
.flow__river { width: 100%; height: 100%; display: block; }
.flow__ledger { list-style: none; padding: 0; display: grid; grid-auto-rows: 1fr; min-width: 0; container: ledger / inline-size; }
.flow__row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; align-items: center; min-width: 0; color: var(--mist); }
.flow__row img { width: 30px; height: 30px; border-radius: 5px; object-fit: cover; background: var(--night); }
.flow__row span { font-size: .875rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flow__row b { font-weight: 800; font-size: 1rem; font-variant-numeric: tabular-nums; }
.flow__row.is-on { color: var(--white); }
/* a narrow ledger keeps the names whole and lets the thumbnails go: the phone beside it already shows the ad */
@container ledger (max-width: 224px) { .flow__row { grid-template-columns: minmax(0, 1fr) auto; padding-left: 8px; } .flow__row img { display: none; } }
.flow__foot { color: var(--mist); font-size: .98rem; text-wrap: balance; }
.flow__foot b { color: var(--white); font-weight: 800; font-variant-numeric: tabular-nums; }

/* a real phone */
.pin__phone { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.phone { --ph: min(calc(100vh - 146px), max(780px, 40vw)); height: var(--ph); width: calc(var(--ph) * .5); min-width: 250px; min-height: 500px; padding: 9px; border-radius: 42px; background: #06080E; box-shadow: 0 0 0 1.5px #39415A, 0 26px 60px rgba(3, 12, 40, .55); }
.phone__screen { position: relative; height: 100%; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; background: #fff; color: #111; border-radius: 34px; overflow: hidden; font: 500 14px/1.3 "SM Text", system-ui, sans-serif; isolation: isolate; }
.phone__status { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 38px; padding: 8px 20px 0; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.phone__island { width: 74px; height: 21px; border-radius: 12px; background: #06080E; }
.phone__sig { display: flex; justify-content: flex-end; gap: 4px; }
.phone__app { display: flex; align-items: center; justify-content: space-between; height: 36px; padding: 0 14px; border-bottom: 1px solid #ECECEC; }
.phone__app b { font-weight: 800; font-size: 16px; letter-spacing: -.01em; }
.phone__app span { display: flex; gap: 12px; }
.phone__feed { position: relative; overflow: hidden; min-height: 0; background: #fff; }
.phone__list { will-change: transform; }
.phone__nav { display: flex; justify-content: space-around; align-items: center; height: 46px; padding-bottom: 4px; border-top: 1px solid #ECECEC; color: #222; }
.post { background: #fff; color: #111; }
.post__head { display: flex; align-items: center; gap: 9px; height: 50px; padding: 0 12px; }
.post__av { width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font: 800 14px "SM Text", sans-serif; flex: none; }
.post__id { min-width: 0; flex: 1; line-height: 1.2; }
.post__id b { display: block; font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post__id small { font-size: 13px; color: #5F5F5F; }
.post__media { position: relative; aspect-ratio: 1; background: #111; overflow: hidden; }
.post__media img, .post__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.post__media video { opacity: 0; transition: opacity .25s linear; }
.post__media video.is-live { opacity: 1; }
.post__cta { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 40px; padding: 0 12px; background: #F2F4F8; color: #111; font-weight: 700; font-size: 14px; text-align: left; }
@media (hover: hover) { .post__cta:hover { background: #E6EAF2; } }
.post__cta:active { background: #DDE3EE; }
.post__cta.is-hit { background: var(--navy); color: #fff; }
.post__act { display: flex; gap: 12px; align-items: center; padding: 8px 12px 2px; }
.post__act button { display: grid; place-items: center; min-width: 26px; min-height: 26px; color: #111; }
.post__act button.is-hit { color: #C8233A; }
.post__act button.is-hit svg { fill: currentColor; }
.post__act button[data-tap="share"].is-hit svg, .post__act button[data-tap="comment"].is-hit svg { fill: none; stroke-width: 2.6; }
.post__act .post__save { margin-left: auto; }
.post__cap { padding: 2px 12px 12px; font-size: 14px; line-height: 1.3; }
.post__cap b { font-weight: 700; }
.pin__quiet { color: var(--mist); width: 0; min-width: 100%; text-align: center; text-wrap: balance; margin: 0; font-size: .875rem; visibility: hidden; }   /* it holds its place until the concept ads are in, so the phone doesn't move */
.pin__quiet.is-on { visibility: visible; }

/* phones: the page is the feed, and your own thumb is doing the scrolling */
.pagefeed, .stack { display: none; }
@media (max-width: 760px) { .js .pagefeed { min-height: calc(2 * (100vw + 145px)); } }   /* two posts: head 50, a square picture, button 48, actions 46, hairline 1. The script fills them in without moving what's below. */
@media (max-width: 760px) { html.gl .feed-s { height: auto; } html.gl .pin { position: relative; height: auto; min-height: 0; padding-bottom: 0; } }   /* a desktop window dragged narrow gets the phone's feed */
@media (max-width: 760px) {
  .pin { display: block; }
  .pagefeed .post:last-child { border-bottom: 1px solid #E6E6E6; }
  .pin__phone, .flow, .flow__foot { display: none; }
  .pagefeed { display: block; margin: 18px calc(var(--gut) * -1) 0; }
  .pagefeed .post { border-top: 1px solid #E6E6E6; }
  .pagefeed .post__cta { min-height: 48px; }
  .pagefeed .post__act button { min-width: 44px; min-height: 44px; }
  .pagefeed .post__act { gap: 2px; padding: 2px 4px 0; }
  .stack { display: block; position: sticky; bottom: 0; z-index: 3; margin: 0 calc(var(--gut) * -1) calc(var(--air) * -1); padding: 8px var(--gut) calc(8px + env(safe-area-inset-bottom)); background: var(--night); color: var(--white); }
  .stack__bar { display: block; width: 100%; height: 10px; }
  .stack__say { display: flex; justify-content: space-between; gap: 10px; margin-top: 5px; font-size: .875rem; }
  .stack__say b { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .stack__say span { color: var(--mist); font-variant-numeric: tabular-nums; white-space: nowrap; }
}
/* a tablet held upright: the phone leaves the river room to read as a river */
@media (min-width: 761px) and (max-width: 900px) and (min-height: 501px) { .phone { --ph: min(calc(100vh - 146px), 780px, 74vw); } }
/* a mouse in a narrow window: the ribbon takes its share too, so the phone comes down, and under 790 the ledger has the column to itself */
@media (min-width: 761px) and (max-width: 860px) { html.gl .phone { --ph: min(calc(100vh - 146px), 60vw); } }
/* a phone on its side: the frame fits the screen, so one whole post is in view with no page scroll */
@media (max-height: 500px) and (min-width: 761px) {
  .pin { align-items: start; }
  html:not(.gl) .feed-s { padding-top: 0; }
  .phone { --ph: calc(100svh - 84px); width: 250px; min-height: 280px; padding: 6px; border-radius: 26px; }
  .phone__screen { grid-template-rows: minmax(0, 1fr); border-radius: 20px; }
  .phone__status, .phone__app, .phone__nav { display: none; }
}
/* tablets with touch: the phone keeps its own scroller */
html:not(.gl) .phone__feed { overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
html:not(.gl) .post { scroll-snap-align: start; }
html.reduced .feed-s { height: auto; }
html.reduced .pin { position: relative; height: auto; }
html.reduced .phone__feed { overflow-y: auto; }

/* ───── the readout */
.report { display: grid; gap: clamp(16px, 2.2vw, 34px); }
html.gl .report { padding-block: calc(var(--air) * .7) calc(var(--band) / 2 + var(--air) * .6); }
.report__say .line { max-width: 44ch; min-height: calc(3 * 1.42em); }   /* the line grows when it's written from what you did: it keeps the room for that */
.js .rep__t:not(:has(tbody tr)) { margin-bottom: 322px; }   /* room for five rows of 65 under the header until the script writes them. Margin, not height: a tall table would stretch its header row, and the header would jump */
@media (max-width: 760px) { .js .rep__t:not(:has(tbody tr)) { margin-bottom: 116px; } }
.rep { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(16px, 2.6vw, 44px); align-items: start; }
.rep__t { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; table-layout: fixed; }   /* the columns hold still when the rows land */
.rep__t th:nth-child(1) { width: 44%; } .rep__t th:nth-child(2) { width: 26%; } .rep__t th:nth-child(3) { width: 14%; } .rep__t th:nth-child(4) { width: 16%; }
@media (max-width: 760px) { .rep__t th:nth-child(1) { width: 52%; } .rep__t th:nth-child(2) { width: 28%; } .rep__t th:nth-child(3) { width: 20%; } .rep__t th:nth-child(3), .rep__t td:nth-child(3) { padding-right: 0; } }
.rep__t th { text-align: left; font-weight: 600; font-size: .875rem; color: var(--mist); padding: 0 12px 8px 0; border-bottom: 2px solid rgba(220, 230, 247, .28); }
.rep__t th.r, .rep__t td.r { text-align: right; }
.rep__t td { padding: 10px 12px 10px 0; border-bottom: 1px solid rgba(220, 230, 247, .18); vertical-align: middle; }
.rep__ad { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rep__ad img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; flex: none; background: var(--night); }
.rep__ad b { font-weight: 700; display: block; line-height: 1.2; }
.rep__ad small { color: var(--mist); font-size: .8125rem; display: block; line-height: 1.2; }
.rep__time { display: grid; grid-template-columns: 56px minmax(40px, 1fr); gap: 8px; align-items: center; font-weight: 700; }
.rep__bar { height: 8px; border-radius: 4px; background: #304C88; overflow: hidden; }
.rep__bar i { display: block; height: 100%; background: var(--white); border-radius: 4px; transform-origin: left; transition: transform .4s var(--ease); }
.rep__money { font-weight: 800; }
.rep__call { display: inline-block; padding: 3px 9px; border-radius: 5px; font-weight: 700; font-size: .875rem; background: rgba(220, 230, 247, .14); white-space: nowrap; }
.rep__call--scale { background: var(--sky); color: var(--ink); }
.rep__chat { background: var(--white); color: var(--ink); border-radius: 16px; padding: clamp(14px, 1.6vw, 22px); display: flex; flex-direction: column; gap: 6px; }
.rep__who { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.rep__who:first-child { margin-top: 0; }
.rep__who img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }
.rep__who b { font-weight: 800; }
.rep__who span { font-size: .8125rem; color: #4A5A7C; }
.rep__msg { margin-left: 42px; line-height: 1.34; text-wrap: balance; }
.rep__label { font-size: .8125rem; color: #4A5A7C; margin-top: 8px; }

/* ───── the desk */
.desk-s { padding-inline: var(--gut); }
html.gl .desk-s { padding-block: calc(var(--band) / 2 + var(--air) * .55); }
.desk-s__top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px clamp(20px, 4vw, 70px); align-items: end; margin-bottom: clamp(14px, 1.8vw, 26px); }
.desk-s__top .line { max-width: 52ch; text-wrap: pretty; }
.nb { white-space: nowrap; }
/* what to do with the desk depends on what's in your hand */
.v-tablet, .v-phone { display: none; }
@media (pointer: coarse) { .v-fine { display: none; } .v-tablet { display: inline; } }
@media (max-width: 760px) { .v-fine, .v-tablet { display: none; } .v-phone { display: inline; } }
.tn i { display: inline-block; width: .7em; text-align: center; font-style: normal; }
.brands { display: flex; flex-wrap: wrap; gap: 8px; }
.brand { display: grid; place-items: center; height: 48px; width: clamp(104px, 9.6vw, 150px); padding: 8px 14px; background: var(--white); border-radius: 8px; opacity: .78; transition: opacity .15s var(--ease); }
.brand img { max-width: 100%; max-height: 30px; width: auto; height: auto; object-fit: contain; }
@media (hover: hover) { .brand:hover { opacity: 1; } }
.brand:active { opacity: .9; }
.brand[aria-pressed="true"] { opacity: 1; outline: 3px solid var(--navy); outline-offset: 2px; }
.desk-s__note { margin-top: 10px; font-size: .875rem; color: var(--ink); max-width: 68ch; text-wrap: pretty; }
.desk[data-brand="pacsun"] .d-top { box-shadow: inset 0 -1px 0 var(--d-line); }
.a-stats .d-stat b { letter-spacing: .01em; font-size: 20px; }
.a-camp th, .a-camp td { padding-inline: 7px; }
.a-camp td:first-child { padding-left: 12px; }
.a-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px 12px; }   /* five across or the phone's two: a fifth number alone on a row reads as a leftover */
.a-legend { display: flex; gap: 14px; margin-top: 4px; font-size: 12px; color: var(--d-ink2); }
.a-legend i { display: inline-block; width: 12px; height: 2px; vertical-align: 3px; margin-right: 5px; background: var(--d-mute); }
.a-legend i.is-dash { height: 0; background: none; border-top: 2px dashed var(--d-mute); }
.a-task { display: grid; grid-template-columns: 18px 18px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--d-line); }
.a-alert { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; width: 100%; padding: 7px 0; text-align: left; }
@media (hover: hover) { .a-alert:hover { color: var(--d-accent-text); } }
.a-alert__ic { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; background: var(--d-sunk); }
.a-alert__ic--warn { background: var(--d-warn-soft); color: var(--d-warn); }
.a-alert__ic--bad { background: var(--d-bad-soft); color: var(--d-bad); }
.a-log { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 7px; padding: 4px 0; align-items: start; }
.a-log--row { grid-template-columns: 22px minmax(0, 1fr) auto 44px; padding: 9px 14px; border-bottom: 1px solid var(--d-line); align-items: center; }
.a-camp td { height: 36px; }
.a-camp tr.a-c td { background: var(--d-bg); }
.a-camp tr.a-s td { background: var(--d-sunk); }
@media (hover: hover) { .a-camp tr.a-s:hover td, .a-camp tr.a-c:hover td { background: var(--d-sunk); } }
.a-camp tbody tr { cursor: default; }
.a-name { display: inline-flex; align-items: center; gap: 5px; max-width: 300px; text-align: left; min-width: 0; }
.a-star { color: var(--d-mute); fill: var(--d-mute); }
.a-total td { position: sticky; bottom: 0; background: var(--d-bg); border-top: 1px solid var(--d-line2); border-bottom: 0; height: 36px; }
/* off reads as quiet, and stays readable: the switch beside it says it's off */
.a-off, .a-off td, .a-off b, .a-off .b, .a-off .a-pc__nums b { color: var(--d-mute); }
.a-bad { color: var(--d-bad); font-weight: 600; }
.a-up { color: var(--d-good); font-weight: 600; }
.a-down { color: var(--d-bad); font-weight: 600; }
.a-pace { position: relative; display: block; width: 84px; height: 6px; border-radius: 3px; background: var(--d-line); overflow: visible; }
.a-pace i { position: absolute; inset: 0; border-radius: 3px; background: var(--d-ink2); transform-origin: left; }
.a-pace b { position: absolute; top: -3px; width: 2px; height: 12px; background: var(--d-ink); }
.a-pace--hot i { background: var(--d-bad); } .a-pace--cold i { background: var(--d-warn); }
.a-editable { font-variant-numeric: tabular-nums; text-decoration: underline dashed var(--d-line2); text-underline-offset: 3px; }
.a-budget { width: 62px; height: 26px; padding: 0 5px; border: 1px solid var(--d-accent); border-radius: 4px; background: var(--d-raised); text-align: right; font-variant-numeric: tabular-nums; appearance: textfield; -moz-appearance: textfield; }
.a-budget::-webkit-outer-spin-button, .a-budget::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.a-budget:focus-visible { outline-offset: -1px; }
.a-setname { display: inline-block; max-width: 250px; vertical-align: bottom; }
.a-stats--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.t-new { display: flex; gap: 6px; margin-bottom: 8px; }
.a-task__t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-testt { table-layout: fixed; }
.a-testt th:nth-child(1) { width: 34%; }
.a-chips { flex-wrap: wrap; }
.a-pc { padding: 10px 12px; border-bottom: 1px solid var(--d-line); display: grid; gap: 8px; }
.a-pc__top { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 6px; align-items: center; }
.a-pc__top .d-toggle { justify-self: start; }
.a-pc__name { text-align: left; min-height: 44px; }
.a-pc .a-pace { width: 100%; }
.a-pc__nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; font-size: 11px; color: var(--d-mute); }
.a-pc__nums b { display: block; font-size: 14px; color: var(--d-ink); font-weight: 600; }
.a-pc__sets li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 6px; align-items: center; min-height: 44px; border-top: 1px solid var(--d-line); }
.a-cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(204px, 1fr)); gap: 10px; padding: 12px; }
.a-card { display: flex; flex-direction: column; gap: 5px; padding: 0 0 8px; background: var(--d-raised); box-shadow: 0 0 0 1px var(--d-line); border-radius: var(--d-r2); text-align: left; overflow: hidden; }
@media (hover: hover) { .a-card:hover { box-shadow: 0 0 0 1px var(--d-line2), 0 3px 10px rgba(0, 0, 0, .1); } }
.a-card__img { display: block; aspect-ratio: 1; background: var(--d-sunk); overflow: hidden; }
.a-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.a-card__name { padding: 0 9px; font-weight: 600; display: block; }
.a-card__row { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 0 9px; font-size: 12px; }
.a-concept { font-size: 12px; color: var(--d-mute); padding: 0 12px 12px; }
.a-big { display: block; width: 100%; height: auto; max-height: 420px; object-fit: contain; background: var(--d-sunk); }   /* the whole ad: a crop here would slice its headline */
.a-smalls { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.a-small { margin: 0; }
.a-small figcaption { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; color: var(--d-mute); margin-bottom: 2px; }
.a-small figcaption b { color: var(--d-ink); font-weight: 600; }
.a-b { padding: 11px 14px; border-bottom: 1px solid var(--d-line); display: grid; gap: 6px; }
.a-b__t { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.a-b__n { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.a-b__m { margin-left: auto; font-size: 12px; }
.a-range { width: 100%; height: 22px; margin: 0; accent-color: var(--d-accent); cursor: pointer; }
.a-test { padding: 12px 14px; border-bottom: 1px solid var(--d-line); }
.a-test__h { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.a-test__c { display: flex; align-items: center; gap: 10px; }
.a-conf b { font: var(--d-head-weight) 18px/1 var(--d-head); }
.a-var { display: inline-flex; align-items: center; gap: 8px; }
.a-var img { width: 32px; height: 32px; object-fit: cover; border-radius: var(--d-r); }
.a-hover { position: relative; }
.a-tip { position: absolute; left: 0; top: 0; z-index: 2; padding: 6px 9px; font-size: 12px; line-height: 1.35; white-space: nowrap; background: var(--d-top); color: var(--d-top-ink); border-radius: 6px; box-shadow: var(--d-shadow); pointer-events: none; }
.desk[data-brand="pacsun"] .a-tip { background: #111; color: #fff; }
.a-heat { display: grid; grid-template-columns: 30px repeat(12, minmax(0, 1fr)); gap: 2px; align-items: center; }
.a-heat__d { font-size: 11px; color: var(--d-mute); }
.a-heat i { display: block; height: 15px; background: var(--d-accent); border-radius: 2px; }
.a-heat__x { display: grid; grid-template-columns: 30px repeat(4, minmax(0, 1fr)); margin-top: 3px; font-size: 11px; color: var(--d-mute); }
@container desk (max-width: 620px) {
  .a-cgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a-task { min-height: 48px; grid-template-columns: 22px minmax(0, 1fr) auto; }
  .a-task__ic { display: none; }
  .a-task__t { white-space: normal; }
  .a-alert { min-height: 44px; }
  .a-log--row { grid-template-columns: 22px minmax(0, 1fr) auto; }
  .a-range { height: 44px; }
  /* the phone keeps the columns a buyer checks first, so nothing scrolls sideways inside the page */
  .a-test th:nth-child(2), .a-test td:nth-child(2), .a-test th:nth-child(3), .a-test td:nth-child(3), .a-test th:nth-child(5), .a-test td:nth-child(5) { display: none; }
  .a-test td:first-child { white-space: normal; }
  .a-var { white-space: normal; }
  .a-report th:nth-child(2), .a-report td:nth-child(2) { display: none; }
  .d-table th, .d-table td { padding-inline: 5px; }
  .a-hide-phone { display: none; }
  .a-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a-stats:not(.a-stats--4) .d-stat:nth-child(4) { display: none; }
  .a-stats:not(.a-stats--4) .d-stat:nth-child(5) { order: 2; }
  .d-search { height: 44px; }
  .a-test__c { flex-basis: 100%; }
  .d-head--camp .a-chips { order: 4; width: 100%; margin-left: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .d-head--camp .d-filter { flex-direction: column; gap: 0; height: auto; min-height: 44px; padding: 4px 2px; font-size: 12px; line-height: 1.2; justify-content: center; }
}
@container desk (max-width: 380px) { .d-top__ws, .d-top__sep { display: none; } }
@container desk (max-width: 340px) { .d-head__r .d-btn { height: 44px; } .d-head { min-height: 44px; } .d-head__sub { white-space: normal; } }
/* ───── a new batch */
.batch__say .line { max-width: 42ch; }
html.gl .batch { padding-block: calc(var(--band) / 2 + var(--air) * .6) calc(var(--air) * .5); }

/* until the concept batch lands, the section shows real stills from the same shoots */
.batchwall { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(6px, .8vw, 12px); margin-top: clamp(20px, 2.6vw, 36px); }
.batchwall img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--night); }
.batchwall .bw0, .batchwall .bw7 { grid-column: span 2; grid-row: span 2; }
.batchwall:empty { display: none; }
[hidden] { display: none !important; }

/* ───── one shoot, three shapes. Only opacity and transform move. */
.cuts { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 3.4vw, 60px); align-items: center; }
/* section headings stay under the page's own h1: one big thing at a time */
.report .d, .desk-s .d, .batch .d, .cuts__say .d { font-size: clamp(2.3rem, 3.9vw, 5.6rem); }
html.gl .cuts { padding-block: calc(var(--air) * .5) calc(var(--band) / 2 + var(--air) * .5); }
.cuts__tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: clamp(14px, 1.8vw, 24px); }
.cuts__say .line { text-wrap: pretty; }
.cuts__check { margin-top: 8px; }
.cuts__check a { color: var(--white); font-weight: 700; text-underline-offset: 4px; text-decoration-thickness: 2px; display: inline-block; padding-block: 11px; margin-block: -11px; }
.cuts__tab { min-height: 46px; padding: 0 16px; border: 2px solid var(--white); border-radius: 8px; font-weight: 700; white-space: nowrap; transition: background-color .15s var(--ease), color .15s var(--ease); }
@media (hover: hover) { .cuts__tab:hover { background: rgba(255, 255, 255, .14); } .cuts__tab[aria-selected="true"]:hover { background: var(--white); } }
.cuts__tab[aria-selected="true"] { background: var(--white); color: var(--navy); }
.cuts__diy { grid-column: 1 / -1; padding-top: clamp(16px, 2vw, 26px); border-top: 2px solid rgba(220, 230, 247, .28); color: var(--mist); line-height: 1.42; font-size: var(--t-line); max-width: none; padding-right: max(0px, calc(100% - 66ch)); text-wrap: pretty; }
.cuts__diy a { color: var(--white); font-weight: 700; text-underline-offset: 4px; text-decoration-thickness: 2px; display: inline-block; padding-block: 10px; margin-block: -10px; }
.cuts__stage { position: relative; height: clamp(400px, 36vw, 560px); container-type: size; }
.cut { position: absolute; top: 50%; left: 50%; margin: 0; opacity: 0; visibility: hidden; transform: translate(-50%, -48%) scale(.965); transition: opacity .32s var(--ease), transform .42s var(--ease), visibility 0s linear .42s; pointer-events: none; background: #fff; color: #111; border-radius: 16px; overflow: hidden; }
.cut.is-on { opacity: 1; visibility: visible; transform: translate(-50%, -50%); pointer-events: auto; transition-delay: 0s; }
.cut img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cut--meta { width: min(100cqw, 340px, calc(100cqh - 104px)); }
.cut__head { display: flex; align-items: center; gap: 9px; padding: 10px 12px; line-height: 1.2; }
.cut__head b { font-weight: 700; }
.cut__head small { color: #5F5F5F; font-size: .8125rem; }
.cut__av { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; }
.cut--meta img { aspect-ratio: 1; height: auto; }
.cut__cta { display: flex; justify-content: space-between; align-items: center; padding: 11px 12px; background: #F2F4F8; font-weight: 700; }
.cut__arrow { width: 8px; height: 8px; border-top: 2px solid #111; border-right: 2px solid #111; transform: rotate(45deg); }
.cut--tiktok { height: min(100%, 500px); aspect-ratio: 9 / 16; background: #000; color: #fff; container-type: size; }
.cut__tall { position: absolute; inset: 0; }
.cut__blur { position: absolute; inset: 0; opacity: .55; transform: scale(1.3); filter: blur(14px); background-size: cover; background-position: center; }
.cut__fg { position: absolute; left: 0; top: 7%; width: 100%; height: auto !important; aspect-ratio: 1; }   /* the whole ad, with the app's buttons under it: laid over it they'd cover a line at its bottom edge */
.cut__rail { position: absolute; right: 9px; bottom: 14px; display: grid; gap: 2.6cqh; }
.cut__rail i { display: block; width: 5.2cqh; height: 5.2cqh; border-radius: 50%; background: rgba(255, 255, 255, .86); }
.cut--tiktok figcaption { position: absolute; left: 12px; bottom: 14px; right: 46px; font-size: .875rem; line-height: 1.3; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
.cut--google { width: min(76cqw, 290px, calc(100cqh - 86px)); border-radius: 10px; }
.cut--google img { aspect-ratio: 1; height: auto; }
.cut--google figcaption { display: grid; gap: 2px; padding: 10px 12px 12px; line-height: 1.3; }
.cut--google b { font-weight: 600; color: #1A0DAB; }
.cut--google span { font-size: .875rem; color: #1E6B38; }
.cut--google small { font-size: .8125rem; color: #5F5F5F; }

/* ───── close */
/* close: the budget chart fills the field in the page's own dots, and the words stand in the space over its short bars */
.ads-close { display: grid; grid-template-columns: minmax(0, 1fr); padding-bottom: clamp(36px, 4vw, 80px); }
html.gl .ads-close { padding-top: calc(var(--band) / 2 + var(--air) * .55); padding-bottom: clamp(36px, 4vw, 80px); }
.ads-close > * { grid-area: 1 / 1; }
.ads-close__bars { --b: min(36px, var(--gut)); margin-inline: calc(var(--b) * -1); min-height: clamp(440px, 36vw, 820px); }
.ads-close__say { align-self: start; max-width: 56%; padding-top: min(36px, var(--gut)); }
.close__tag { margin-top: clamp(20px, 2.4vw, 34px); }
.ads-close .d { font-size: clamp(2.3rem, 3.9vw, 5.6rem); text-wrap: balance; }

/* ───── huge screens: what's small next to the big heading comes up with it, and the ledger doesn't stretch its names away from their dollars */
@media (min-width: 1800px) {
  .flow { grid-template-columns: minmax(0, 1fr) minmax(216px, 30%); }
  .flow__row { grid-template-columns: clamp(30px, 1.75vw, 46px) minmax(0, 1fr) auto; gap: 12px; }
  .flow__row img { width: clamp(30px, 1.75vw, 46px); height: clamp(30px, 1.75vw, 46px); }
  .flow__row span { font-size: clamp(.875rem, .72vw, 1.2rem); }
  .flow__row b { font-size: clamp(1rem, .8vw, 1.35rem); }
  .flow__foot { font-size: clamp(.98rem, .72vw, 1.25rem); }
}
@media (min-width: 2200px) { .rep { zoom: 1.25; } .cuts__stage { zoom: 1.35; } }

/* ───── narrower screens */
@media (max-width: 1180px) { html.gl .flow { grid-template-columns: minmax(0, 1fr) minmax(208px, 44%); } }
@media (max-width: 900px) { .flow { grid-template-columns: minmax(0, 1fr) 246px; } }
@media (min-width: 761px) and (max-width: 790px) { html.gl .flow { grid-template-columns: minmax(0, 1fr); } html.gl .flow__river { display: none; } }
@media (min-width: 901px) and (max-width: 1180px) { html:not(.gl) .flow { grid-template-columns: minmax(0, 1fr) 256px; } }   /* the phone beside it is big on a tall tablet: the ad names still fit on one line */
@media (max-width: 1000px) { .rep { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .desk-s__top { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 820px) { .cuts { grid-template-columns: minmax(0, 1fr); } .cuts__stage { height: 420px; } .batchwall { grid-template-columns: repeat(4, minmax(0, 1fr)); } .batchwall .bw7 { grid-column: span 1; grid-row: span 1; } }
@media (max-width: 760px) {
  .desk-s { padding-inline: 0; }
  .desk-s__top, .desk-s__note { padding-inline: var(--gut); }
  .brand { flex: 1 1 28%; width: auto; min-width: 0; height: 52px; padding-inline: 10px; }
  .rep__t th:nth-child(4), .rep__t td:nth-child(4) { display: none; }
  .rep__time { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .rep__ad img { width: 38px; height: 38px; }
  .rep__ad small { display: none; }
  .rep__t th { white-space: nowrap; }
  .rep__ad b { text-wrap: balance; }
  .feed-s { padding-bottom: 0; }
  .stack { margin-bottom: 0; }
  .pagefeed .post__cap { display: none; }
  .batchwall img:nth-child(n + 6) { display: none; }
  .batch { padding-bottom: var(--air); }
  .cuts { padding-top: 0; }
  .cuts__stage { height: 372px; }
  .cut--meta { width: min(100%, 262px); }
  .cut--tiktok { height: 356px; }
  .cut--google { width: min(76%, 240px); }
  .ads-close { padding-bottom: 40px; }
  .ads-close > * { grid-area: auto; }
  .ads-close__bars { min-height: calc(58vw + 2 * var(--b)); }
  .ads-close__say { max-width: none; padding-top: 6px; }
}
@media (max-width: 340px) { .cuts__stage { height: 300px; } .cut--meta { width: 196px; } .cut--tiktok { height: 268px; } .cut--google { width: 190px; } }
@media (max-height: 500px) and (min-width: 761px) { .cuts__stage { height: 300px; } }   /* a phone on its side: the whole card fits under the site bar */
.batch__say .line a { padding-block: 11px; }
@media (prefers-reduced-motion: reduce) { .cut, .post__media video, .rep__bar i { transition: none; } }
/* 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; } .rep__ad img { display: none; } }
/* phone headings scale with the screen, so each one breaks the same way on every phone */
@media (max-width: 430px) { .pin__h { font-size: min(2.3rem, 10.5vw); } .report .d, .desk-s .d, .batch .d, .cuts__say .d { font-size: min(2.3rem, 9.1vw); } .ads-close .d { font-size: min(2.3rem, 8.6vw); } }

/* ───── the desk on this page */
.av { font-size: 9px; } .av--l { font-size: 13px; }
.d-icbtn .d-dot { font-size: 11px; }
.d-nav.is-saved.is-picked { background: var(--d-sunk); font-weight: 600; }
.d-sec svg { overflow: visible; }
.d-pop__t { padding: 10px 12px 4px; font-size: 12px; font-weight: 600; color: var(--d-mute); }
.d-pop__t--phone { display: none; }
.d-back { display: none; }
@container desk (max-width: 1020px) {
  .d-body { grid-template-columns: 74px minmax(0, 1fr); }
  .d-nav { flex-direction: column; gap: 2px; height: 50px; padding: 0 2px; justify-content: center; }
  .d-nav__l { display: block !important; font-size: 11px; line-height: 1.1; max-width: 70px; overflow: hidden; text-overflow: ellipsis; }
  .d-nav__n--hot { right: 8px; font-size: 11px; line-height: 14px; }
  .d-nav.is-saved, .d-rail__foot { display: none; }
  .hide-md { display: none; }
}
/* the campaigns table fits its pane at every width, so ROAS never hides off the edge: impressions, CPC and the 14-day line go first, pacing stays */
@container desk (max-width: 1313px) { .a-camp tr > :nth-child(7), .a-camp tr > :nth-child(9), .a-camp tr > :nth-child(13) { display: none; } .a-camp th, .a-camp td { padding-inline: 6px; } }
@container desk (max-width: 800px) { .a-name { max-width: 170px; } .a-setname { max-width: 140px; } .a-camp th, .a-camp td { padding-inline: 5px; } .a-camp td:first-child { padding-left: 8px; } }
@container desk (max-width: 900px) {
  /* a mouse at this width: the pane is one screen tall until it's clicked, so Today keeps the numbers, the list and what needs a look. Reports and the change log hold the rest */
  @media (pointer: fine) and (min-width: 761px) { [data-scroll="today"] .a-hide-phone { display: none; } }
  .hide-sm2 { display: none; }
  .r-grid, .d-split { grid-template-columns: minmax(0, 1fr) !important; }
  .r-grid > *, .d-split > * { border-right: 0 !important; }
}
@container desk (max-width: 620px) {
  .d-nav { flex: 1 1 0; }
  .d-nav__l { font-size: 11px; }
  .d-nav__n--hot { top: 2px; right: 12px; font-size: 11px; padding: 0 4px; line-height: 14px; }
  .d-nav__n:not(.d-nav__n--hot) { display: none; }
  .d-head { gap: 4px 10px; padding: 8px 12px; }
  .d-head__r { margin-left: auto; width: auto; }
  .d-head__sub { order: 3; width: 100%; white-space: normal; }
  .d-sec { padding: 12px; }
}
@media (max-width: 760px) {
  .d-drawer { top: 0; transform: translateY(102%); }
  .d-drawer.is-open { transform: none; }
  .d-scrim { padding-top: max(8px, env(safe-area-inset-top, 0px)); }   /* the site bar is hidden while a sheet is open, so the search box takes its place */
  .d-back { display: block; position: fixed; inset: 0; z-index: 39; background: rgba(0, 0, 0, .35); }
  .d-pop { z-index: 40; overscroll-behavior: contain; }
  .d-pop__t--phone { display: block; }
}
/* one column only where the charts are phone sized: a sideways phone keeps them side by side, or they'd scale up to twice the type */
@media (max-width: 519px) {
  .a-smalls { grid-template-columns: minmax(0, 1fr); }
  .a-stats--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (pointer: coarse), (max-width: 760px) {
  .a-task { min-height: 48px; }
  .a-alert { min-height: 48px; }
  .a-editable { min-height: 44px; }
  .a-range { height: 44px; }
  .a-budget { height: 44px; width: 76px; }
  .a-name { min-height: 44px; }
  .post__act button { min-width: 44px; min-height: 44px; }
  .post__act { gap: 2px; padding: 2px 4px 0; }
}
@media (max-width: 760px) { .d-toasts { z-index: 34; } .d-scrim { z-index: 38; } }   /* a toast sits under a phone's sheets and over an open record */
@media (pointer: coarse) and (min-width: 761px) {
  .a-task { grid-template-columns: 22px 18px minmax(0, 1fr) auto; }
  .d-main { border-left: 1px solid var(--d-line); }
  .d-rail { border-right: 0; }
}
/* focus rings have to show on the brand's own top bar */
.d-top :focus-visible { outline-color: var(--d-top-ink); }
@media (pointer: coarse) { .d-search kbd { display: none; } }
/* 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; } }
/* a long word or a pasted link wraps instead of running out of its row */
.a-task__t, .a-log, .a-note { overflow-wrap: anywhere; }
/* a press answers on this page's own rows; the kit answers on its controls */
.a-alert:active, .a-card:active, .a-name:active, .a-editable:active, .post__act button:active, main a:not([class]):active { opacity: .68; }
.cuts__tab:active { background: rgba(255, 255, 255, .24); } .cuts__tab[aria-selected="true"]:active { background: var(--mist); }
/* the phone's screen clips what runs past it, so this ring draws inside the button */
.post__cta:focus-visible { outline-offset: -3px; }
/* what opens something answers the mouse, on any brand's colors */
@media (hover: hover) {
  .a-alert:hover { background: var(--d-sunk); box-shadow: 0 0 0 4px var(--d-sunk); border-radius: 4px; }
  .d-check:not(.is-on):hover { border-color: var(--d-accent); }
  .post__act button:not(.is-hit):hover { color: #5F5F5F; }
  main a:not([class]):hover { text-decoration-thickness: 3px; }
}
/* with JavaScript off: the words and links read, and nothing looks clickable that isn't */
#adesk noscript .line { padding-inline: var(--gut); max-width: none; }
@media (min-width: 761px) { #adesk noscript .line { padding-inline: 0; } }
.feed-s noscript .line { margin-top: 14px; padding-bottom: var(--air); }
html:not(.js) .phone { height: auto; min-height: 0; } html:not(.js) .phone__screen { height: auto; }   /* one post in the frame: it closes around it instead of hanging empty */
html:not(.js) .stack, html:not(.js) .post__cta, html:not(.js) .post__act, html:not(.js) .phone__nav, html:not(.js) .phone__sig, html:not(.js) .flow, html:not(.js) .flow__foot, html:not(.js) .pin__line, html:not(.js) .report, html:not(.js) .brands, html:not(.js) .cuts__tabs, html:not(.js) #desk-line { display: none; }

