/* Homepage hero demo (templates/_home_demo.html, static/js/home-demo.js). Loaded after home.css.
   A miniature of the signed-in app at readable sizes: sidebar plus six screens. It carries its own
   tokens (--dm-*); in the hero it always wears the app's dark theme (.dm.is-dark). Motion is transform and opacity only and runs under .dm.is-live, which the
   script sets while the demo is on screen and the tab is visible. */

.dm {
  --dm-ground: #F4F4F5; --dm-surface: #FFFFFF; --dm-side: #FFFFFF; --dm-fill: #F4F4F5; --dm-hover: #F4F4F5;
  --dm-ink: #0F0F0F; --dm-ink-2: #2B2B2B; --dm-muted: #525252; --dm-cap: #6B6B6B;
  --dm-line: #EBEBEB; --dm-line-2: #DCDCDC;
  --dm-accent: #0007CD; --dm-on-accent: #FFFFFF;
  --dm-pub: #16A34A; --dm-rev: #F79009; --dm-sch: #0007CD; --dm-wri: #7C5CFC; --dm-pln: #9A9A9A;
  --dm-pub-bg: #EFFAF2; --dm-pub-bd: #C9ECD3; --dm-pub-tx: #15803D;
  --dm-rev-bg: #FFFAEB; --dm-rev-bd: #FBE7B4; --dm-rev-tx: #B54708;
  --dm-sch-bg: #F0F1FF; --dm-sch-bd: #D3D7FF; --dm-sch-tx: #0007CD;
  --dm-wri-bg: #F4F1FF; --dm-wri-bd: #DDD5FF; --dm-wri-tx: #5B3FD6;
  --dm-red: #D92D20; --dm-amber: #DC8B06; --dm-green: #12A150; --dm-grey: #A1A1AA;   /* calendar chips, as in planner.css */
  --dm-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dm-h: 532px;
  display: grid; grid-template-columns: 188px minmax(0, 1fr); height: var(--dm-h);
  background: var(--dm-ground); color: var(--dm-ink); border-radius: 7px; overflow: hidden;
  font-family: var(--font-sans); font-size: 12.5px; line-height: 1.4; text-align: left; letter-spacing: 0;
}
html[data-theme="dark"] .dm, .dm.is-dark {
  --dm-ground: #050505; --dm-surface: #111111; --dm-side: #0A0A0A; --dm-fill: #191919; --dm-hover: #191919;
  --dm-ink: #F2F2F2; --dm-ink-2: #DADADA; --dm-muted: #A8A8A8; --dm-cap: #8A8A8A;
  --dm-line: #222222; --dm-line-2: #303030;
  --dm-accent: #2433FF; --dm-on-accent: #FFFFFF;
  --dm-pub: #4ADE80; --dm-rev: #FBBF5A; --dm-sch: #6FA8FF; --dm-wri: #A78BFA; --dm-pln: #6B6B6B;
  --dm-pub-bg: rgba(34, 197, 94, 0.11); --dm-pub-bd: rgba(34, 197, 94, 0.32); --dm-pub-tx: #4ADE80;
  --dm-rev-bg: rgba(247, 144, 9, 0.12); --dm-rev-bd: rgba(247, 144, 9, 0.34); --dm-rev-tx: #FBBF5A;
  --dm-sch-bg: rgba(81, 162, 255, 0.11); --dm-sch-bd: rgba(81, 162, 255, 0.30); --dm-sch-tx: #8EBBFF;
  --dm-wri-bg: rgba(167, 139, 250, 0.12); --dm-wri-bd: rgba(167, 139, 250, 0.32); --dm-wri-tx: #C4B5FD;
  --dm-red: #FF6B5E; --dm-amber: #F5B544; --dm-green: #3DDC84; --dm-grey: #71717A;
}
.dm *, .dm *::before, .dm *::after { box-sizing: border-box; }
.dm :where(p, ul, h3, h4) { margin: 0; padding: 0; }
.dm :where(ul) { list-style: none; }
.dm svg { flex: none; }

/* ---------- Frame ---------- */
.dm-frame { border-bottom: 1px solid rgba(255, 255, 255, 0.10); border-radius: 12px; padding: 0 6px 6px; }
.dm-bar { position: relative; }
.dm-bar em { padding-right: 33px; }
.dm-bar em b { font-weight: 400; color: #C8C8C8; }
.dm-play {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; padding: 0; border: 0; border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center; background: transparent; color: #8A8A8A; cursor: pointer;
  transition: background-color 150ms, color 150ms;
}
.dm-play[hidden] { display: none; }
.dm-play:hover { background: rgba(255, 255, 255, 0.08); color: #FFFFFF; }
.dm-play:focus-visible { outline: 2px solid #51A2FF; outline-offset: 1px; }
.dm-play svg { fill: currentColor; }
.dm-play svg:last-child, .dm-play[aria-pressed="true"] svg:first-child { display: none; }
.dm-play[aria-pressed="true"] svg:last-child { display: block; }

/* ---------- Sidebar ---------- */
.dm-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 0; overflow: hidden; padding: 14px 10px 12px; background: var(--dm-side); border-right: 1px solid var(--dm-line); }
.dm-brand { display: flex; align-items: center; gap: 8px; padding: 0 4px 2px; color: var(--dm-ink); }
.dm-brand .brand-logo { height: 17px; width: auto; }
.dm-plan { font-family: var(--font-mono); font-size: 9.5px; line-height: 1; text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 4px; border: 1px solid var(--dm-accent); color: var(--dm-accent); }
html[data-theme="dark"] .dm-plan, .dm.is-dark .dm-plan { border-color: var(--dm-pub); color: var(--dm-pub); }
.dm-site { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px; border: 1px solid var(--dm-line-2); border-radius: 6px; font-weight: 500; color: var(--dm-ink); }
.dm-site-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-site svg { color: var(--dm-cap); }
.dm-av { flex: none; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--dm-line-2); border-radius: 4px; background: var(--dm-surface); font-size: 10.5px; font-weight: 600; color: var(--dm-ink); }
.dm-av.is-lg { width: 24px; height: 24px; font-size: 12px; }
.dm-nav { display: flex; flex-direction: column; gap: 2px; }
.dm-tab {
  position: relative; flex: none; display: flex; align-items: center; gap: 9px; width: 100%; height: 30px; padding: 0 8px; border: 0; border-radius: 6px;
  background: transparent; color: var(--dm-muted); font: inherit; font-weight: 500; text-align: left; cursor: pointer; overflow: hidden;
  transition: background-color 180ms var(--dm-ease), color 180ms var(--dm-ease);
}
.dm-tab svg { color: var(--dm-cap); transition: color 180ms; }
.dm-tab-t { flex: 1; min-width: 0; }
.dm-tab:hover { background: var(--dm-hover); color: var(--dm-ink); }
.dm-tab[aria-selected="true"] { background: var(--dm-fill); color: var(--dm-ink); }
.dm-tab[aria-selected="true"] svg { color: var(--dm-ink); }
.dm-tab:focus-visible { outline: 2px solid var(--dm-accent); outline-offset: -2px; }
.dm-badge { min-width: 17px; height: 17px; padding: 0 4px; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; background: var(--dm-accent); color: var(--dm-on-accent); font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; }
.dm-badge[data-n="0"] { background: var(--dm-fill); color: var(--dm-cap); box-shadow: inset 0 0 0 1px var(--dm-line-2); }
.dm-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; opacity: 0; transition: opacity 200ms; }
.dm-prog i { display: block; height: 100%; background: var(--dm-accent); transform: scaleX(var(--p, 0)); transform-origin: left center; }
html[data-theme="dark"] .dm-prog i, .dm.is-dark .dm-prog i { background: #6FA8FF; }
.dm.is-auto .dm-tab[aria-selected="true"] .dm-prog { opacity: 1; }
.dm-nav-l { flex: none; padding: 10px 8px 3px; font-family: var(--font-mono); font-size: 9.5px; line-height: 1.3; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dm-cap); }
.dm-nav-x { flex: none; display: flex; align-items: center; gap: 9px; height: 30px; padding: 0 8px; font-weight: 500; color: var(--dm-muted); opacity: 0.62; white-space: nowrap; }
.dm-nav-x svg { color: var(--dm-cap); }
.dm-quota { flex: none; margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 34px; padding: 0 10px; border: 1px solid var(--dm-line); border-radius: 6px; background: var(--dm-surface); color: var(--dm-muted); white-space: nowrap; }
.dm-quota b { font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--dm-ink); }
.dm-live { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--dm-pub); }
.dm.is-live .dm-live { animation: dmHalo 2.4s var(--dm-ease) infinite; }
@keyframes dmHalo { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); } 70%, 100% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); } }

/* ---------- Panes ---------- */
.dm-main { position: relative; min-width: 0; }
.dm-pane {
  position: absolute; inset: 0; display: flex; flex-direction: column; min-width: 0; padding: 14px 16px 0;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 260ms var(--dm-ease), transform 320ms var(--dm-ease), visibility 0s linear 260ms;
}
.dm-pane.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 60ms, 60ms, 0s; }
.dm-head { display: flex; align-items: center; gap: 10px; min-height: 30px; flex: none; }
.dm-h { font-size: 18px; font-weight: 500; letter-spacing: -0.025em; line-height: 1.2; color: var(--dm-ink); white-space: nowrap; }
.dm-tag { font-family: var(--font-mono); font-size: 10.5px; padding: 2px 6px; background: var(--dm-fill); border: 1px solid var(--dm-line); color: var(--dm-cap); white-space: nowrap; }
.dm-url { color: var(--dm-cap); white-space: nowrap; }
.dm-head-r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.dm-note { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; color: var(--dm-ink-2); white-space: nowrap; }
.dm-sub { margin-top: 4px !important; color: var(--dm-cap); }
.dm-seg { display: inline-flex; padding: 2px; border: 1px solid var(--dm-line); border-radius: 6px; background: var(--dm-fill); white-space: nowrap; }
.dm-seg > * { padding: 3px 9px; border-radius: 4px; font-size: 12px; font-weight: 500; color: var(--dm-cap); }
.dm-seg > b { background: var(--dm-surface); color: var(--dm-ink); box-shadow: 0 0 0 1px var(--dm-line); }
.dm-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid var(--dm-line-2); border-radius: 4px;
  background: var(--dm-surface); color: var(--dm-ink); font: inherit; font-size: 12.5px; font-weight: 500; white-space: nowrap;
}
.dm-btn.is-primary { background: var(--dm-accent); border-color: var(--dm-accent); color: var(--dm-on-accent); }
.dm-card { background: var(--dm-surface); border: 1px solid var(--dm-line); border-radius: 8px; }
.dm-card-h { font-size: 13px; font-weight: 500; color: var(--dm-ink); }
.dm-label { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--dm-cap); }
.dm-cap { font-size: 11.5px; line-height: 1.45; color: var(--dm-cap); }

/* Status: dots, pills, inline labels. data-s is one of planned, writing, review, scheduled, published, busy. */
.dm [data-s="planned"] { --s: var(--dm-pln); --s-bg: var(--dm-surface); --s-bd: var(--dm-line-2); --s-tx: var(--dm-muted); }
.dm [data-s="writing"], .dm [data-s="busy"] { --s: var(--dm-wri); --s-bg: var(--dm-wri-bg); --s-bd: var(--dm-wri-bd); --s-tx: var(--dm-wri-tx); }
.dm [data-s="review"] { --s: var(--dm-rev); --s-bg: var(--dm-rev-bg); --s-bd: var(--dm-rev-bd); --s-tx: var(--dm-rev-tx); }
.dm [data-s="scheduled"] { --s: var(--dm-sch); --s-bg: var(--dm-sch-bg); --s-bd: var(--dm-sch-bd); --s-tx: var(--dm-sch-tx); }
.dm [data-s="published"] { --s: var(--dm-pub); --s-bg: var(--dm-pub-bg); --s-bd: var(--dm-pub-bd); --s-tx: var(--dm-pub-tx); }
.dm .dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--s); transition: background-color 260ms; }
.dm [data-s="planned"] > .dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--s); }
.dm-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border: 1px solid var(--s-bd); border-radius: 4px;
  background: var(--s-bg); color: var(--s-tx); font-size: 12px; font-weight: 500; line-height: 1; white-space: nowrap;
  transition: background-color 260ms, border-color 260ms, color 260ms;
}
.dm-pill::before, .dm-st::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--s); }
.dm-pill:has(> svg)::before { content: none; }
.dm-pill[data-s="busy"]::before, .dm-ck.is-busy { width: 9px; height: 9px; background: none; border: 1.5px solid var(--s-bd); border-top-color: var(--s); border-radius: 50%; }
.dm.is-live .dm-pill[data-s="busy"]::before, .dm.is-live .dm-ck.is-busy { animation: dmSpin 700ms linear infinite; }
.dm.is-live .dm-pill[data-s="writing"]::before { animation: dmPulse 900ms ease-in-out infinite; }
.dm-st { display: inline-flex; align-items: center; gap: 6px; color: var(--s-tx); font-weight: 500; }
@keyframes dmSpin { to { transform: rotate(360deg); } }
@keyframes dmPulse { 50% { opacity: 0.3; transform: scale(0.7); } }
.dm-ck { flex: none; width: 15px; height: 15px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--dm-pub); color: #FFFFFF; }
html[data-theme="dark"] .dm-ck, .dm.is-dark .dm-ck { color: #06240F; }
.dm-ck.is-wait { background: transparent; box-shadow: inset 0 0 0 1.5px var(--dm-line-2); }
.dm-ck.is-busy { --s: var(--dm-wri); --s-bd: var(--dm-wri-bd); width: 15px; height: 15px; }
.dm-ck.is-wait svg, .dm-ck.is-busy svg { display: none; }
.dm-ck.is-pop { animation: dmPop 420ms var(--dm-ease); }
@keyframes dmPop { 0% { transform: scale(0.4); } 60% { transform: scale(1.15); } 100% { transform: none; } }

/* ---------- Calendar ----------
   Mirrors the app's calendar (static/css/planner.css, "Calendar chips, v4"): every day of the month is a
   plain white cell, only the days of another month are muted, and each article is a soft borderless pill
   with a status glyph and its title. The glyph and a faint wash carry the status: amber is being written
   (half disc) or waiting for you (target), green is scheduled (clock) or live (solid check), grey is
   planned (dashed ring). The status in words is there for screen readers and in the filter row. */
.dm-cal { padding-bottom: 14px; }
.dm-cal [data-s="planned"] { --s: var(--dm-grey); }
.dm-cal [data-s="writing"], .dm-cal [data-s="review"] { --s: var(--dm-amber); }
.dm-cal [data-s="scheduled"], .dm-cal [data-s="published"] { --s: var(--dm-green); }
.dm-step { display: inline-flex; border: 1px solid var(--dm-line-2); border-radius: 6px; background: var(--dm-surface); overflow: hidden; white-space: nowrap; margin-left: 4px; }
.dm-step > * { display: inline-flex; align-items: center; justify-content: center; height: 26px; min-width: 26px; padding: 0 8px; font-size: 12px; font-weight: 500; color: var(--dm-ink); }
.dm-step > * + * { border-left: 1px solid var(--dm-line-2); }
.dm-step svg { color: var(--dm-muted); }
.dm-mode i { width: 6px; height: 6px; border-radius: 50%; background: var(--dm-amber); }
.dm-grid { flex: 1; min-height: 0; display: flex; flex-direction: column; margin-top: 12px; background: var(--dm-surface); border: 1px solid var(--dm-line); border-radius: 8px; overflow: hidden; }
.dm-filter { flex: none; display: flex; align-items: center; gap: 4px 18px; height: 38px; padding: 0 8px; border-bottom: 1px solid var(--dm-line); font-size: 12px; color: var(--dm-muted); white-space: nowrap; overflow: hidden; }
.dm-filter li { display: inline-flex; align-items: center; gap: 6px; }
.dm-filter b { font-family: var(--font-mono); font-size: 10.5px; font-weight: 400; font-variant-numeric: tabular-nums; color: var(--dm-cap); }
.dm-filter li.is-on { height: 24px; padding: 0 10px; border: 1px solid var(--dm-line-2); border-radius: 12px; font-weight: 500; color: var(--dm-ink); }
.dm-filter li.is-on b { color: var(--dm-ink); }
.dm-filter [data-s="scheduled"] > .dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--s); }
.dm-dow { flex: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--dm-line); }
.dm-dow span { padding: 6px 8px; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dm-cap); }
.dm-dow span + span, .dm-day:not(:nth-child(7n + 1)) { border-left: 1px solid var(--dm-line); }
.dm-days { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); }
.dm-day { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 3px; padding: 5px 5px 0; overflow: hidden; background: var(--dm-surface); border-bottom: 1px solid var(--dm-line); }
.dm-day:nth-last-child(-n + 7) { border-bottom: 0; }
.dm-day.is-out { background: var(--dm-fill); }
.dm-day.is-out .dm-num { color: color-mix(in srgb, var(--dm-cap) 62%, transparent); }
.dm-day.is-out .dm-chip { opacity: 0.6; }
.dm-num { flex: none; display: flex; align-items: center; height: 20px; padding-left: 3px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--dm-ink-2); white-space: nowrap; }
.dm-day.is-today { box-shadow: inset 0 2px 0 var(--dm-accent); }
.dm-day.is-today .dm-num { padding-left: 0; }
.dm-day.is-today .dm-num b { min-width: 22px; height: 20px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--dm-accent); color: var(--dm-on-accent); font-weight: 500; }
.dm-chip {
  position: relative; flex: none; display: flex; align-items: flex-start; gap: 6px; min-width: 0; padding: 4px 7px 4px 6px;
  border: 0; border-radius: 6px; background: color-mix(in srgb, var(--s) 9%, var(--dm-surface)); overflow: hidden;
  color: var(--dm-ink); font-size: 12px; font-weight: 500; line-height: 16px; letter-spacing: -0.006em;
  transition: opacity 320ms var(--dm-ease), transform 420ms var(--dm-ease), background-color 300ms, box-shadow 300ms;
}
.dm-chip[data-s="planned"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='6' stroke-dasharray='2.4 2.4'/%3E%3C/svg%3E"); background: color-mix(in srgb, var(--dm-ink) 4.5%, var(--dm-surface)); }
.dm-chip[data-s="writing"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='M8 2a6 6 0 0 1 0 12z' fill='black' stroke='none'/%3E%3C/svg%3E"); }
.dm-chip[data-s="review"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Ccircle cx='8' cy='8' r='2.4' fill='black' stroke='none'/%3E%3C/svg%3E"); }
.dm-chip[data-s="scheduled"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='M8 4.9V8l2.1 1.4'/%3E%3C/svg%3E"); }
.dm-chip[data-s="published"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='7' fill='white' stroke='none'/%3E%3Cpath d='M5 8.2l2.1 2.1L11 6.1' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E"); }
.dm .dm-chip > .dot { position: relative; flex: none; width: 13px; height: 13px; margin-top: 1.5px; border-radius: 0; box-shadow: none; background: var(--s); -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.dm .dm-chip[data-s="published"] > .dot { -webkit-mask-mode: luminance; mask-mode: luminance; }
.dm-chip .t { position: relative; flex: 1 1 auto; min-width: 0; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: break-word; }
.dm-chip[data-s="published"] .t, .dm-chip[data-s="planned"] .t { color: var(--dm-ink-2); }
/* Writing: a slow shimmer crosses the chip, as in the app. */
.dm-chip[data-s="writing"]::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 20%, color-mix(in srgb, var(--s) 24%, transparent) 50%, transparent 80%); background-size: 220% 100%; }
.dm.is-live .dm-chip[data-s="writing"]::before { animation: dmShimmer 1.8s linear infinite; }
.dm.is-live .dm-chip[data-s="writing"] > .dot { animation: dmPulse 1.2s ease-in-out infinite; }
@keyframes dmShimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
html[data-theme="dark"] .dm-chip, .dm.is-dark .dm-chip { background: color-mix(in srgb, var(--s) 14%, var(--dm-surface)); }
html[data-theme="dark"] .dm-chip[data-s="planned"], .dm.is-dark .dm-chip[data-s="planned"] { background: color-mix(in srgb, var(--dm-ink) 7%, var(--dm-surface)); }
.dm-chip.is-hid { opacity: 0; transform: translateY(5px) scale(0.96); }
.dm-chip.is-bump { animation: dmBump 600ms var(--dm-ease); }
@keyframes dmBump { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--s) 55%, transparent); } 100% { box-shadow: 0 0 0 7px transparent; } }

/* ---------- Article ---------- */
.dm-back { display: inline-flex; align-items: center; gap: 6px; color: var(--dm-muted); font-weight: 500; }
.dm-saved { display: inline-flex; align-items: center; gap: 6px; color: var(--dm-cap); white-space: nowrap; }
.dm-saved i { width: 6px; height: 6px; border-radius: 50%; background: var(--dm-pub); }
.dm-saved.is-busy i { background: var(--dm-wri); }
.dm-art-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 236px; gap: 12px; margin-top: 12px; }
.dm-doc { border-radius: 8px 8px 0 0; border-bottom: 0; padding: 22px 28px 0; overflow: hidden; }
.dm-doc-title { font-size: 23px; font-weight: 500; letter-spacing: -0.025em; line-height: 1.2; color: var(--dm-ink); }
.dm-tools { display: flex; align-items: center; gap: 2px; height: 30px; margin-top: 14px; padding: 0 4px; border: 1px solid var(--dm-line); border-radius: 6px; background: var(--dm-surface); box-shadow: 0 1px 2px rgba(15, 15, 15, 0.05); font-size: 11.5px; font-weight: 500; color: var(--dm-muted); white-space: nowrap; overflow: hidden; }
.dm-tools > span { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 7px; border-radius: 4px; }
.dm-tools b { font-weight: 700; color: var(--dm-ink); }
.dm-tools i { font-family: Georgia, serif; }
.dm-tools-ai { margin-left: auto; padding-left: 12px !important; border-left: 1px solid var(--dm-line); border-radius: 0 !important; color: var(--dm-accent); }
html[data-theme="dark"] .dm-tools-ai, .dm.is-dark .dm-tools-ai { color: var(--dm-sch-tx); }
.dm-doc-p { margin-top: 12px !important; font-size: 13.5px; line-height: 1.6; color: var(--dm-ink-2); text-wrap: pretty; }
.dm-doc-h2 { margin-top: 20px !important; font-size: 16px; font-weight: 600; letter-spacing: -0.015em; color: var(--dm-ink); }
.dm-doc-h2 + .dm-doc-p { margin-top: 5px !important; }
.dm-take { margin-top: 14px; padding: 12px 16px; border: 1px solid var(--dm-line); border-radius: 8px; background: var(--dm-fill); transition: opacity 320ms var(--dm-ease), transform 420ms var(--dm-ease); }
.dm-take.is-hid { opacity: 0; transform: translateY(6px); }
.dm-take-h { font-size: 13px; font-weight: 600; color: var(--dm-ink); }
.dm-take ul { margin-top: 6px; display: grid; gap: 4px; }
.dm-take li { position: relative; padding-left: 16px; font-size: 13px; color: var(--dm-ink-2); }
.dm-take li::before { content: ""; position: absolute; left: 3px; top: 0.58em; width: 4px; height: 4px; border-radius: 50%; background: var(--dm-ink-2); }
.dm .w { opacity: 0; transition: opacity 240ms ease-out; }
.dm .w.on { opacity: 1; }
.dm .w.cur { position: relative; }
.dm .w.cur::after { content: ""; position: absolute; left: calc(100% + 2px); top: 8%; bottom: 8%; width: 2px; background: var(--dm-accent); }
.dm.is-live .w.cur::after { animation: dmCaret 800ms steps(1) infinite; }
html[data-theme="dark"] .dm .w.cur::after, .dm.is-dark .w.cur::after { background: #6FA8FF; }
@keyframes dmCaret { 50% { opacity: 0; } }
.dm-rail { align-self: start; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.dm-field { padding: 7px 9px; border: 1px solid var(--dm-line-2); border-radius: 4px; background: var(--dm-fill); font-size: 12.5px; color: var(--dm-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-kv { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 8px; margin: 4px 0 8px; }
.dm-kv > div { min-width: 0; padding: 8px 9px; border: 1px solid var(--dm-line); border-radius: 6px; background: var(--dm-fill); display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.dm-kv span { font-size: 11.5px; color: var(--dm-cap); }
.dm-kv .dm-pill { padding: 0 6px; font-size: 11.5px; }
.dm-words { height: 22px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--dm-ink); }
.dm-checks { display: grid; }
.dm-checks li { display: flex; align-items: center; gap: 8px; height: 32px; border-top: 1px solid var(--dm-line); }
.dm-checks li:first-child { border-top: 0; }
.dm-checks span { flex: 1; min-width: 0; color: var(--dm-ink); }
.dm-checks b { font-weight: 500; font-size: 12px; color: var(--dm-pub-tx); white-space: nowrap; }
.dm-checks li:not([data-k="ok"]) b { color: var(--dm-cap); font-weight: 400; }
.dm-rail .dm-cap { transition: opacity 300ms; }
.dm-rail .dm-cap.is-hid { opacity: 0; }

/* ---------- Review: the app's list page. Tabs with counts, then one plain row per article ---------- */
.dm-rv-body { flex: 1; min-height: 0; min-width: 0; display: flex; flex-direction: column; margin-top: 12px; border-radius: 8px 8px 0 0; border-bottom: 0; overflow: hidden; }
.dm-rv-bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--dm-line); }
.dm-rv-tabs { display: inline-flex; padding: 2px; border: 1px solid var(--dm-line); border-radius: 6px; background: var(--dm-fill); white-space: nowrap; }
.dm-rv-tabs > span { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 4px; font-size: 12px; font-weight: 500; color: var(--dm-cap); }
.dm-rv-tabs > span.is-on { background: var(--dm-surface); color: var(--dm-ink); box-shadow: 0 0 0 1px var(--dm-line); }
.dm-rv-tabs b { min-width: 16px; height: 16px; padding: 0 4px; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; background: var(--dm-surface); box-shadow: inset 0 0 0 1px var(--dm-line); font-family: var(--font-mono); font-size: 10px; font-weight: 500; color: var(--dm-cap); }
.dm-rv-tabs > span.is-on b { background: var(--dm-ink); color: var(--dm-ground); box-shadow: none; }
.dm-rv-tabs > span.is-on b[data-n="0"] { background: var(--dm-fill); color: var(--dm-cap); box-shadow: inset 0 0 0 1px var(--dm-line-2); }
.dm-rv-search { flex: 0 1 230px; min-width: 0; display: flex; align-items: center; gap: 7px; height: 28px; padding: 0 9px; border: 1px solid var(--dm-line-2); border-radius: 4px; background: var(--dm-fill); color: var(--dm-cap); font-size: 12px; white-space: nowrap; overflow: hidden; }
.dm-rv-th, .dm-row { display: grid; grid-template-columns: minmax(0, 1fr) 122px 96px 132px 96px; align-items: center; column-gap: 12px; padding: 0 12px 0 14px; }
.dm-rv-th { flex: none; height: 30px; border-bottom: 1px solid var(--dm-line); background: var(--dm-surface); font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dm-cap); }
.dm-rv-h { flex: none; display: flex; align-items: center; height: 30px; padding: 0 14px; border-bottom: 1px solid var(--dm-line); background: var(--dm-fill); font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dm-cap); }
.dm-rows { flex: none; display: block; }
.dm-rows.is-next .dm-row-t { color: var(--dm-ink-2); }
.dm-rows.is-next .dm-row-ck { color: var(--dm-cap); }
.dm-row-open { justify-self: end; justify-content: center; min-width: 92px; color: var(--dm-muted); }
.dm-rows:empty { display: none; }
.dm-row { height: 54px; background: var(--dm-surface); border-bottom: 1px solid var(--dm-line); will-change: transform; }
.dm-row-main { min-width: 0; overflow: hidden; }
.dm-row-t { font-size: 13px; font-weight: 500; color: var(--dm-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-row-m { margin-top: 3px !important; min-width: 0; font-family: var(--font-mono); font-size: 10.5px; color: var(--dm-cap); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-row .dm-st { font-size: 12px; white-space: nowrap; }
.dm-row-due { display: flex; flex-direction: column; gap: 2px; min-width: 0; white-space: nowrap; }
.dm-row-due b { font-size: 12px; font-weight: 400; color: var(--dm-ink); }
.dm-row-due i { font-style: normal; font-size: 11px; color: var(--dm-cap); }
.dm-row-ck { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; color: var(--dm-ink-2); white-space: nowrap; }
.dm-row-ck b { padding: 1px 5px; border-radius: 4px; background: var(--dm-fill); font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; color: var(--dm-ink-2); }
.dm-approve { justify-self: end; justify-content: center; min-width: 92px; cursor: pointer; transition: background-color 160ms var(--dm-ease), border-color 160ms var(--dm-ease), color 160ms var(--dm-ease), transform 160ms var(--dm-ease); }
.dm-approve:hover { border-color: var(--dm-ink); }
.dm-approve:active, .dm-approve.is-press { transform: scale(0.95); background: var(--dm-accent); border-color: var(--dm-accent); color: var(--dm-on-accent); }
.dm-approve:focus-visible { outline: 2px solid var(--dm-accent); outline-offset: 2px; }
.dm-approve:disabled { cursor: default; background: var(--dm-sch-bg); border-color: var(--dm-sch-bd); color: var(--dm-sch-tx); transform: none; }
.dm-empty { flex: none; display: flex; align-items: center; min-height: 46px; padding: 6px 14px; border-bottom: 1px solid var(--dm-line); color: var(--dm-cap); }
.dm-empty[hidden] { display: none; }

/* ---------- Dashboard ---------- */
.dm-hero { flex: none; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; margin-top: 12px; padding: 14px 16px; overflow: hidden; }
.dm-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, var(--dm-surface) 36%, transparent 70%), linear-gradient(135deg, #D6E8FF 0%, #BFE0FF 40%, #BDF6F3 100%);
}
html[data-theme="dark"] .dm-hero::before, .dm.is-dark .dm-hero::before { background: linear-gradient(100deg, var(--dm-surface) 36%, transparent 70%), linear-gradient(135deg, #0A1550 0%, #0E2A78 45%, #0B4F63 100%); }
.dm-hero > * { position: relative; min-width: 0; }
.dm-hero .dm-tag { display: inline-block; text-transform: uppercase; letter-spacing: 0.06em; font-size: 9.5px; background: var(--dm-surface); border-color: var(--dm-sch-bd); color: var(--dm-sch-tx); }
.dm-hero-t { margin-top: 8px !important; font-size: 21px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; color: var(--dm-ink); }
.dm-hero-t em { display: block; font-style: normal; color: var(--dm-accent); }
html[data-theme="dark"] .dm-hero-t em, .dm.is-dark .dm-hero-t em { color: var(--dm-sch-tx); }
.dm-hero-s { margin-top: 6px !important; font-size: 12px; color: var(--dm-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-hero-r { display: grid; grid-template-columns: repeat(3, 132px); gap: 8px; }
.dm-hero-r li { min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--dm-surface) 70%, transparent); border-radius: 6px; background: color-mix(in srgb, var(--dm-surface) 62%, transparent); }
.dm-hero-r b { font-size: 18px; font-weight: 500; letter-spacing: -0.025em; line-height: 1.2; color: var(--dm-ink); white-space: nowrap; }
.dm-hero-r em { font-style: normal; font-size: 11px; color: var(--dm-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-stats { flex: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 10px !important; }
.dm-stats li { min-width: 0; display: flex; flex-direction: column; gap: 1px; padding: 10px 14px; background: var(--dm-surface); border: 1px solid var(--dm-line); border-radius: 8px; }
.dm-stat-l { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--dm-cap); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-stat-n { margin-top: 2px; font-size: 22px; font-weight: 400; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--dm-ink); }
.dm-stat-n small { margin-left: 2px; font-size: 13px; letter-spacing: 0; color: var(--dm-cap); }
.dm-stat-n.is-pop, .dm-stat-n .is-pop { display: inline-block; animation: dmTick 520ms var(--dm-ease); }
@keyframes dmTick { 0% { transform: translateY(6px); opacity: 0; } 100% { transform: none; opacity: 1; } }
.dm-stat-s { font-size: 12px; color: var(--dm-cap); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-meter { display: block; height: 4px; margin-top: 8px; border-radius: 2px; background: var(--dm-fill); overflow: hidden; }
.dm-meter i { display: block; height: 100%; background: var(--dm-ink); transform: scaleX(var(--p, 0)); transform-origin: left center; transition: transform 700ms var(--dm-ease); }
.dm-db-cols { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 10px; }
.dm-db-cols .dm-card { min-width: 0; border-radius: 8px 8px 0 0; border-bottom: 0; padding: 12px 14px 0; display: flex; flex-direction: column; overflow: hidden; }
.dm-list { margin-top: 6px !important; }
.dm-list li { display: flex; align-items: center; gap: 10px; height: 40px; border-top: 1px solid var(--dm-line); min-width: 0; }
.dm-list-d { flex: none; width: 46px; font-size: 12px; color: var(--dm-cap); white-space: nowrap; }
.dm-list-t { flex: 1; min-width: 0; font-weight: 500; color: var(--dm-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-list-t em { font-style: normal; font-weight: 400; color: var(--dm-cap); }
.dm-act .dm-list-d { width: auto; }
.dm-act-clip { flex: 1; min-height: 0; overflow: hidden; }
.dm-act .dm-list { transition: transform 620ms var(--dm-ease); }
.dm-act .dm-list.is-back { transform: translateY(-40px); transition: none; }
.dm-act-new { transition: opacity 420ms var(--dm-ease) 120ms; }
.dm-act .dm-list.is-back .dm-act-new { opacity: 0; transition: none; }
.dm-act .platform-logo { flex: none; }
html[data-theme="dark"] .dm .platform-logo path, .dm.is-dark .platform-logo path { fill: #6FB3D9; }
.dm-pill .platform-logo { margin-left: -1px; }

/* ---------- Narrow desktop and tablet ---------- */
@media (max-width: 1180px) {
  .dm { grid-template-columns: 168px minmax(0, 1fr); }
}
/* Laid out by the width of the screen's own pane (a container query, .dm-pane below), not of the browser
   window: in the hero the demo shows only the part of its window that is on screen. */
@container dm (max-width: 780px) {
  .dm-art-body { grid-template-columns: minmax(0, 1fr) 210px; }
  .dm-kv { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 6px; }
  .dm-kv > div { padding: 8px 7px; }
  .dm-kv .dm-pill { padding: 0 5px; font-size: 11px; gap: 5px; }
  .dm-rv-th, .dm-row { grid-template-columns: minmax(0, 1fr) 118px 92px 92px; }
  .dm-rv-th > :nth-child(4), .dm-row-ck { display: none; }
  .dm-hero-r { grid-template-columns: repeat(2, 112px); }
  .dm-hero-r li:last-child { display: none; }
  .dm-cal .dm-mode { display: none; }
  .dm-tools > span:nth-child(n + 9) { display: none; }
}
@media (max-width: 960px) {
  .dm { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .dm-side { flex-direction: row; align-items: center; gap: 0; padding: 6px; border-right: 0; border-bottom: 1px solid var(--dm-line); }
  .dm-brand, .dm-site, .dm-quota, .dm-nav-l, .dm-nav-x { display: none; }
  .dm-nav { flex: 1; flex-direction: row; gap: 4px; }
  .dm-tab { flex: 1; justify-content: center; padding: 0 6px; }
  .dm-tab-t { flex: none; }
  .dm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dm-stats li { padding: 10px 12px; }
  .dm-stat-n { font-size: 22px; }
  .dm-db-cols { grid-template-columns: 1fr; }
  .dm-next { display: none !important; }
  .dm-cal .dm-seg, .dm-cal .dm-head-r .dm-note { display: none; }
  .dm-filter li:last-child { display: none; }
  .dm-hero-r { display: none; }
  .dm-hero { grid-template-columns: minmax(0, 1fr); }
  .dm-rv-search { display: none; }
}

/* ---------- Phone: one column, the same screens ---------- */
@media (max-width: 640px) {
  .dm { --dm-h: 448px; font-size: 12.5px; border-radius: 5px; }
  .dm-frame { border-radius: 8px; padding: 0 3px 3px; }
  .dm-play { right: 2px; }
  .dm-bar em { padding-right: 24px; }
  .dm-tab { gap: 6px; padding: 0 4px; font-size: 12px; }
  .dm-tab svg { display: none; }
  .dm-badge { min-width: 15px; height: 15px; font-size: 10px; }
  .dm-pane { padding: 12px 10px 0; }
  .dm-h { font-size: 16px; }
  .dm-head-r { display: none; }
  .dm-sub { font-size: 12px; }

  /* Calendar becomes a two week agenda: one row per weekday. */
  .dm-cal { padding-bottom: 0; }
  .dm-step, .dm-filter, .dm-dow { display: none; }
  .dm-grid { border-radius: 8px 8px 0 0; border-bottom: 0; }
  .dm-days { display: block; }
  .dm-day { display: none; }
  .dm-day[data-w="2"]:not(.is-off), .dm-day[data-w="3"]:not(.is-off) { display: grid; grid-template-columns: 50px minmax(0, 1fr); align-items: center; gap: 8px; height: 35px; padding: 0 8px; border-left: 0; border-bottom: 1px solid var(--dm-line); }
  .dm-day.is-today { box-shadow: inset 2px 0 0 var(--dm-accent); }
  .dm-num { height: auto; padding: 0; gap: 5px; }
  .dm-num::before { content: "Nov"; }
  .dm-day.is-today .dm-num::before { display: none; }
  .dm-day.is-today .dm-num b::before { content: "Nov\00A0"; }
  .dm-chip { padding: 5px 8px 5px 7px; gap: 7px; }
  .dm-chip .t { display: block; white-space: nowrap; text-overflow: ellipsis; }

  .dm-saved { display: none; }
  .dm-art-body { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: 8px; }
  .dm-doc { padding: 14px 14px 0; border-radius: 8px; border-bottom: 1px solid var(--dm-line); }
  .dm-doc-title { font-size: 18px; }
  .dm-doc-p { font-size: 13px; margin-top: 8px !important; }
  .dm-take { margin-top: 10px; padding: 10px 12px; }
  .dm-rail { padding: 4px 12px; margin-bottom: 10px; gap: 0; align-self: stretch; }
  .dm-rail > .dm-label, .dm-rail > .dm-field, .dm-rail > .dm-kv, .dm-rail > .dm-cap { display: none; }
  .dm-checks li { height: 30px; }

  .dm-rv-body { margin-top: 8px; }
  .dm-rv-bar { padding: 8px; }
  .dm-rv-tabs > span { padding: 0 7px; font-size: 11.5px; }
  .dm-rv-tabs > span:nth-child(n + 3) { display: none; }
  .dm-rv-th { display: none; }
  .dm-row { grid-template-columns: minmax(0, 1fr) auto; padding: 0 8px 0 10px; column-gap: 8px; }
  .dm-row .dm-st, .dm-row-due { display: none; }
  .dm-hero { margin-top: 10px; padding: 10px 12px; }
  .dm-hero-t { font-size: 17px; margin-top: 6px !important; }
  .dm-hero-s { display: none; }
  .dm-tools { display: none; }
  .dm-approve { min-width: 0; padding: 0 9px; }
  .dm-empty { font-size: 12px; padding: 0 10px; }

  .dm-db .dm-url, .dm-db .dm-av { display: none; }
  .dm-stats { gap: 6px; margin-top: 10px !important; }
  .dm-stats li { padding: 8px 10px; }
  .dm-stat-s, .dm-meter { display: none; }
  .dm-stat-l { white-space: normal; font-size: 10px; letter-spacing: 0.03em; line-height: 1.35; min-height: 27px; }
  .dm-stat-n { font-size: 20px; margin-top: 2px; }
  .dm-db-cols { margin-top: 6px; }
  .dm-db-cols .dm-card { padding: 10px 10px 0; }
  .dm-list li { height: 36px; gap: 8px; }
  .dm-act .dm-list.is-back { transform: translateY(-36px); }
  .dm-list-t em { display: none; }
}
@media (max-width: 380px) {
  .dm-tab { font-size: 11.5px; }
}

/* ---------- Results and AI visibility ----------
   The app's dark analytics pages, always in the dark theme. The parts (.dmx-*: cards, funnel, figures, the
   chart, answer cards, lists) are the demo's own: nothing here depends on the stylesheets of the homepage
   sections further down the page, so those can change freely. First the parts at their base sizes, then
   their fit inside a demo pane: tighter, and laid out by the width of the pane (a container query), not
   of the window, because the same demo runs at many sizes. */
.dmx-ui {
  --u-ground: #050505; --u-surface: #111111; --u-soft: #0C0C0C; --u-fill: #1A1A1A; --u-fill2: #222222;
  --u-line: #222222; --u-line2: #2E2E2E; --u-strong: #525252;
  --u-ink: #F2F2F2; --u-ink2: #E0E0E0; --u-muted: #A8A8A8; --u-cap: #8A8A8A; --u-faint: #5C5C5C;
  --u-clicks: #3D5CFF; --u-impr: #86AEFF; --u-green: #4ADE80; --u-amber: #FBBF5A; --u-violet: #A78BFA; --u-accent-text: #8EBBFF;
  --u-tint-green: rgba(34, 197, 94, 0.11); --u-tint-blue: rgba(81, 162, 255, 0.11); --u-tint-amber: rgba(247, 144, 9, 0.12);
  --u-bar: linear-gradient(90deg, #86AEFF 0%, #3D5CFF 100%);
  --u-bar2: linear-gradient(90deg, rgba(134, 174, 255, 0.3) 0%, #86AEFF 100%);
  --u-pop: #181818; --u-area: 0.36; --u-mark: rgba(61, 92, 255, 0.62); --u-mark-ink: #FFFFFF; --u-bubble: #3D5CFF;
  --u-ease: cubic-bezier(0.22, 1, 0.36, 1);
}
.dmx-ui { color: var(--u-ink); font-family: var(--font-sans); font-size: 13px; line-height: 1.4; letter-spacing: 0; text-align: left; }
.dmx-ui *, .dmx-ui *::before, .dmx-ui *::after { box-sizing: border-box; }
.dmx-ui :where(p, ol, ul, h3) { margin: 0; padding: 0; }
.dmx-ui :where(ol, ul) { list-style: none; }
.dmx-ui svg { flex: none; }
.dmx-c-clicks, .dmx-c-all { --c: var(--u-clicks); }
.dmx-c-impr, .dmx-c-perplexity { --c: var(--u-impr); }
.dmx-c-claude { --c: var(--u-violet); }
.dmx-c-chatgpt { --c: var(--u-green); }
.dmx-rx { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 8px; background: var(--u-ground); }
.dmx-rx .dmx-chart { --dmx-plot-h: 206px; }
.dmx-card { min-width: 0; background: var(--u-surface); border: 1px solid var(--u-line); border-radius: 8px; overflow: hidden; }
.dmx-eyebrow { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase; color: var(--u-cap); }
.dmx-head { display: flex; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; min-height: 46px; padding: 12px 16px; border-bottom: 1px solid var(--u-line); }
.dmx-head h3 { font-size: 14px; font-weight: 500; letter-spacing: -0.01em; color: var(--u-ink); }
.dmx-head > span { font-size: 12px; color: var(--u-cap); }
.dmx-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--c, var(--u-strong)); }
.dmx-key { display: inline-block; width: 14px; height: 3px; border-radius: 2px; flex: none; background: var(--c, var(--u-strong)); }
.dmx-funnel { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.5fr); }
.dmx-funnel-main { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 20px; min-width: 0; }
.dmx-funnel-h { font-size: 22px; font-weight: 500; line-height: 1.16; letter-spacing: -0.025em; text-wrap: balance; font-variant-numeric: tabular-nums; }
.dmx-steps { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; border-left: 1px solid var(--u-line); background: var(--u-soft); }
.dmx-step { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 20px 18px; }
.dmx-step-k { display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 9.5px; font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase; color: var(--u-cap); white-space: nowrap; }
.dmx-step-k i { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--u-green); box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18); }
.dmx-step-v { margin-top: 4px; font-size: 36px; font-weight: 500; line-height: 1.02; letter-spacing: -0.04em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dmx-step-v small { font-size: 14px; font-weight: 400; letter-spacing: -0.01em; color: var(--u-cap); }
.dmx-step-s { font-size: 12px; color: var(--u-cap); }
.dmx-conv { align-self: stretch; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 88px; text-align: center; }
.dmx-conv::before { content: ""; position: absolute; top: 12px; bottom: 12px; left: 50%; width: 1px; background: var(--u-line); }
.dmx-conv > * { position: relative; background: var(--u-soft); }
.dmx-conv-arrow { display: grid; place-items: center; width: 26px; height: 26px; margin-bottom: 3px; border-radius: 50%; border: 1px solid rgba(34, 197, 94, 0.32); color: var(--u-green); background: #0F1A13 !important; }
.dmx-conv b { padding: 2px 4px 0; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; color: var(--u-green); font-variant-numeric: tabular-nums; }
.dmx-conv > span:last-child { padding: 0 4px 2px; font-size: 11px; color: var(--u-cap); white-space: nowrap; }
.dmx-rx-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.44fr); gap: 10px; align-items: stretch; }
.dmx-perf, .dmx-queries { display: flex; flex-direction: column; }
.dmx-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--u-line); }
.dmx-kpi {
  position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 2px; min-width: 0; padding: 12px 14px; border: 0; border-right: 1px solid var(--u-line); border-radius: 0;
  background: transparent; font: inherit; color: inherit; text-align: left; cursor: pointer; transition: background-color 180ms var(--u-ease);
}
.dmx-kpi:last-child { border-right: 0; }
.dmx-kpi::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform 260ms var(--u-ease); }
.dmx-kpi.is-on::before { transform: scaleX(1); }
.dmx-kpi:hover { background: var(--u-soft); }
.dmx-kpi:active .dmx-kpi-v { transform: translateY(1px); }
.dmx-kpi-k { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.dmx-sw { width: 11px; height: 11px; border-radius: 3px; flex: none; border: 1.5px solid var(--u-strong); transition: background-color 180ms var(--u-ease), border-color 180ms var(--u-ease), box-shadow 180ms var(--u-ease); }
.dmx-kpi.is-on .dmx-sw { background: var(--c); border-color: var(--c); box-shadow: inset 0 0 0 2px var(--u-surface); }
.dmx-kpi-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 6px; }
.dmx-kpi-v { font-size: 26px; font-weight: 500; line-height: 1.05; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; transition: transform 120ms var(--u-ease), color 180ms; }
.dmx-kpi:not(.is-on) .dmx-kpi-v { color: var(--u-muted); }
.dmx-spark { width: 64px; height: 24px; flex: 0 1 64px; min-width: 28px; overflow: visible; opacity: 0.5; transition: opacity 180ms var(--u-ease); }
.dmx-spark path { fill: none; stroke: var(--c); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.dmx-kpi.is-on .dmx-spark, .dmx-kpi:hover .dmx-spark { opacity: 1; }
.dmx-kpi-f { display: flex; align-items: center; gap: 7px; margin-top: 8px; min-height: 18px; }
.dmx-kpi-vs { font-size: 11px; color: var(--u-cap); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dmx-delta { display: inline-flex; align-items: center; gap: 4px; height: 18px; padding: 0 5px; border-radius: 3px; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; background: var(--u-tint-green); color: var(--u-green); }
.dmx-arw { width: 0; height: 0; border-left: 3.5px solid transparent; border-right: 3.5px solid transparent; border-bottom: 5px solid currentColor; }
.dmx-fig { flex: 1 1 auto; display: flex; flex-direction: column; padding: 18px 14px 12px; min-height: 0; }
.dmx-chart { --rows: 5; flex: 1 1 auto; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: minmax(var(--dmx-plot-h, 230px), 1fr) 24px; column-gap: 10px; }
.dmx-chart.is-pct { --rows: 4; --dmx-plot-h: 190px; grid-template-columns: auto minmax(0, 1fr) 6px; }
.dmx-y { grid-row: 1; grid-column: 1; display: flex; flex-direction: column; justify-content: space-between; font-family: var(--font-mono); font-size: 10px; color: var(--u-cap); text-align: right; transition: opacity 240ms var(--u-ease); }
.dmx-y span { display: block; height: 0; line-height: 0; }
.dmx-y.is-r { grid-column: 3; text-align: left; color: var(--u-impr); }
.dmx-plot {
  grid-row: 1; grid-column: 2; position: relative; cursor: crosshair; touch-action: pan-y;
  background: linear-gradient(to bottom, var(--u-line) 1px, transparent 1px) 0 0 / 100% calc(100% / var(--rows)); box-shadow: 0 1px 0 var(--u-line2);
}
.dmx-area, .dmx-lines, .dmx-lines svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.dmx-area { transition: opacity 240ms var(--u-ease); }
.dmx-line { fill: none; stroke: var(--c); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; transition: opacity 240ms var(--u-ease); }
.dmx-line.dmx-c-clicks, .dmx-line.dmx-c-all { stroke-width: 2.5; }
.dmx-pts { position: absolute; inset: 0; transition: opacity 240ms var(--u-ease); }
.dmx-pts i { position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--u-ptbg, var(--u-surface)); border: 1.5px solid var(--c); }
.dmx-chart [data-k].is-off { opacity: 0; }
.dmx-x { grid-row: 2; grid-column: 2; position: relative; font-family: var(--font-mono); font-size: 10px; color: var(--u-cap); }
.dmx-x span { position: absolute; top: 10px; transform: translateX(-50%); white-space: nowrap; }
.dmx-pub { position: absolute; top: 0; bottom: 0; width: 0; }
.dmx-pub-line { position: absolute; top: 0; bottom: 0; left: 0; border-left: 1px dashed var(--u-green); opacity: 0.75; transform-origin: top; }
.dmx-pub-dot { position: absolute; top: -4px; left: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--u-green); box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22); }
.dmx-pub-tip { position: absolute; top: 8px; left: 10px; padding: 6px 9px; border: 1px solid var(--u-line2); border-radius: 6px; background: var(--u-pop); font-size: 11.5px; color: var(--u-ink2); white-space: nowrap; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.7); }
.dmx-pub-tip b { display: block; margin-bottom: 1px; font-family: var(--font-mono); font-size: 9.5px; font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase; color: var(--u-green); }
.dmx-plot.is-hover .dmx-pub-tip { opacity: 0; }
.dmx-qhead, .dmx-qlist li { display: grid; grid-template-columns: minmax(0, 1fr) 40px 46px; align-items: center; gap: 0 12px; padding: 0 16px; }
.dmx-qhead { height: 32px; border-bottom: 1px solid var(--u-line); font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--u-cap); }
.dmx-qhead span:nth-child(n + 2) { text-align: right; }
.dmx-qlist { flex: 1 1 auto; display: flex; flex-direction: column; padding: 4px 0; }
.dmx-qlist li { --b: var(--u-amber); flex: 1 1 auto; min-height: 44px; font-size: 12.5px; transition: background-color 140ms var(--u-ease); }
.dmx-qlist li:hover { background: var(--u-soft); }
.dmx-qlist li.is-top3 { --b: var(--u-green); }
.dmx-qlist li.is-top10 { --b: var(--u-clicks); }
.dmx-q-t { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.dmx-qbar { display: block; height: 4px; border-radius: 2px; background: var(--u-fill); overflow: hidden; }
.dmx-qbar i { display: block; height: 100%; width: var(--w); min-width: 2px; border-radius: 2px; background: var(--b, var(--u-bar)); transform-origin: left; }
.dmx-q-n { text-align: right; font-variant-numeric: tabular-nums; }
.dmx-rank { justify-self: end; display: inline-grid; place-items: center; min-width: 36px; height: 21px; padding: 0 6px; border-radius: 3px; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; background: var(--u-tint-amber); color: var(--u-amber); }
.is-top3 > .dmx-rank { background: var(--u-tint-green); color: var(--u-green); }
.is-top10 > .dmx-rank { background: var(--u-tint-blue); color: var(--u-accent-text); }
.dmx-ax { display: flex; flex-direction: column; gap: 10px; }
.dmx-ask { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.dmx-ticks { display: grid; grid-template-columns: repeat(32, minmax(0, 1fr)); gap: 3px; max-width: 460px; margin-top: 16px; }
.dmx-ticks i { height: 16px; border-radius: 2px; background: var(--u-fill2); }
.dmx-ticks i.is-named { background: var(--u-clicks); }
.dmx-ticks i.is-linked { background: var(--u-green); }
.dmx-eyebrow { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase; color: var(--u-cap); }
.dmx-q { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 9px 14px; border: 1px solid var(--u-line); border-radius: 8px; background: var(--u-surface); font-size: 15px; line-height: 1.35; letter-spacing: -0.01em; color: var(--u-ink); }
.dmx-q svg { color: var(--u-cap); }
.dmx-q-text { min-width: 0; }
.dmx-rest { visibility: hidden; }
.dmx-caret { display: inline-block; width: 1.5px; height: 1.05em; margin: 0 -0.75px; vertical-align: -0.18em; background: #FFFFFF; animation: dmxBlink 1s steps(1) infinite; }
.dmx-answers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dmx-ans {
  --bd: var(--u-line);
  position: relative; display: flex; flex-direction: column; gap: 9px; min-width: 0; padding: 12px 14px; border: 1px solid var(--bd); border-radius: 8px; background: var(--u-surface);
  transition: border-color 500ms var(--u-ease);
}
.dmx-ans.is-named { --bd: color-mix(in srgb, var(--u-clicks) 34%, var(--u-line)); }
.dmx-ans.is-linked { --bd: color-mix(in srgb, var(--u-green) 38%, var(--u-line)); }
.dmx-ans-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 22px; }
.dmx-ans-who { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; letter-spacing: -0.01em; color: var(--u-ink); }
.dmx-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--c, var(--u-strong)); }
.dmx-ans-who .dmx-dot { width: 9px; height: 9px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 20%, transparent); }
.dmx-ans-main { position: relative; }
.dmx-ans-body { font-size: 15px; line-height: 1.55; color: var(--u-ink2); text-wrap: pretty; }
.dmx-ans.is-absent .dmx-ans-body { color: var(--u-cap); }
.dmx-ans-body mark { padding: 1px 4px; margin: 0 -2px; border-radius: 4px; color: var(--u-mark-ink); font-weight: 500; background: linear-gradient(var(--u-mark), var(--u-mark)) no-repeat 0 0 / 100% 100%; }
.dmx-dots { position: absolute; left: 0; top: 8px; display: inline-flex; align-items: center; gap: 4px; opacity: 0; pointer-events: none; }
.dmx-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--u-strong); }
.dmx-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--u-line2); background: var(--u-fill); font-size: 11px; font-weight: 500; color: var(--u-cap); white-space: nowrap; }
.dmx-chip.is-named { border-color: color-mix(in srgb, var(--u-clicks) 34%, transparent); background: var(--u-tint-blue); color: var(--u-accent-text); }
.dmx-chip.is-linked { border-color: color-mix(in srgb, var(--u-green) 38%, transparent); background: var(--u-tint-green); color: var(--u-green); }
.dmx-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.dmx-chipbtn { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 9px; border: 1px solid var(--u-line2); border-radius: 999px; background: transparent; font: inherit; font-size: 11.5px; color: var(--u-cap); cursor: pointer; white-space: nowrap; transition: background-color 160ms var(--u-ease), border-color 160ms var(--u-ease), color 160ms var(--u-ease); }
.dmx-chipbtn .dmx-key { opacity: 0.35; transition: opacity 160ms; }
.dmx-chipbtn.is-on { background: var(--u-surface); color: var(--u-ink2); }
.dmx-chipbtn.is-on .dmx-key { opacity: 1; }
.dmx-chipbtn:hover { border-color: var(--u-strong); color: var(--u-ink); }
.dmx-chipbtn:active { transform: translateY(1px); }
.dmx-leadlist { flex: 1 1 auto; display: flex; flex-direction: column; }
.dmx-leadlist li { --b: var(--u-bar2); flex: 1 1 auto; display: grid; grid-template-columns: 14px minmax(0, 1fr) 26px; align-items: center; gap: 0 10px; min-height: 42px; padding: 0 12px; border-radius: 6px; font-size: 13.5px; color: var(--u-muted); }
.dmx-leadlist li.is-you { --b: var(--u-bar); background: var(--u-tint-blue); color: var(--u-ink); box-shadow: inset 2px 0 0 var(--u-clicks); }
.dmx-lead-r { font-family: var(--font-mono); font-size: 10.5px; color: var(--u-cap); }
.dmx-lead-b { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dmx-lead-n { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dmx-you { display: inline-flex; align-items: center; height: 16px; padding: 0 5px; border-radius: 3px; background: var(--u-clicks); color: #FFFFFF; font-family: var(--font-mono); font-size: 9.5px; font-style: normal; font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase; flex: none; }
.dmx-lead-c { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--u-ink); }
.dmx-fig.is-armed:not(.is-in) .dmx-lines { clip-path: inset(-12px 100% -12px 0); }
.dmx-fig.is-armed.is-in .dmx-lines { clip-path: inset(-12px -12px -12px -12px); transition: clip-path 1500ms cubic-bezier(0.5, 0.05, 0.25, 1) 150ms; }
.dmx-fig.is-armed:not(.is-in) .dmx-area { opacity: 0; }
.dmx-fig.is-armed.is-in:not(.is-done) .dmx-area { transition: opacity 800ms ease 1300ms; }
.dmx-fig.is-armed:not(.is-in) .dmx-pts { opacity: 0; }
.dmx-fig.is-armed.is-in:not(.is-done) .dmx-pts { transition: opacity 500ms ease 1300ms; }
.dmx-fig.is-armed:not(.is-in) .dmx-pub-line { transform: scaleY(0); }
.dmx-fig.is-armed.is-in .dmx-pub-line { transition: transform 520ms var(--u-ease) 1750ms; }
.dmx-fig.is-armed:not(.is-in) .dmx-pub-dot { transform: translateY(-14px) scale(0.4); opacity: 0; }
.dmx-fig.is-armed.is-in .dmx-pub-dot { transition: transform 420ms var(--u-ease) 1650ms, opacity 200ms ease 1650ms; }
.dmx-fig.is-armed:not(.is-in) .dmx-pub-tip { opacity: 0; transform: translateY(6px); }
.dmx-fig.is-armed.is-in:not(.is-done) .dmx-pub-tip { transition: opacity 320ms ease 2250ms, transform 420ms var(--u-ease) 2250ms; }
.dmx-fig.is-armed.is-done .dmx-pub-tip { transition: opacity 160ms ease, transform 520ms var(--u-ease), border-color 300ms, box-shadow 300ms; }
.is-armed:not(.is-in) .dmx-qbar i { transform: scaleX(0); }
.is-armed.is-in .dmx-qbar i { transition: transform 900ms var(--u-ease) calc(var(--i, 0) * 70ms + 250ms); }
.is-armed:not(.is-in) :is(.dmx-step, .dmx-conv, .dmx-qlist li > *, .dmx-leadlist li > *) { opacity: 0; transform: translateY(8px); }
.is-armed.is-in :is(.dmx-step, .dmx-conv, .dmx-qlist li > *, .dmx-leadlist li > *) { transition: opacity 500ms var(--u-ease) calc(var(--i, 0) * 70ms + 80ms), transform 600ms var(--u-ease) calc(var(--i, 0) * 70ms + 80ms); }
.dmx-lead.is-armed li.is-you { transition: background-color 500ms ease, box-shadow 500ms ease; }
.dmx-lead.is-armed:not(.is-in) li.is-you { background-color: transparent; box-shadow: inset 2px 0 0 transparent; }
.dmx-ax.is-seq .dmx-ans:not(.is-on) { --bd: var(--u-line); }
.dmx-ax.is-seq .dmx-ans:not(.is-on) :is(.dmx-ans-body, .dmx-chip) { opacity: 0; }
.dmx-ax.is-seq .dmx-ans:not(.is-on) .dmx-ans-body { transform: translateY(6px); }
.dmx-ax.is-seq .dmx-ans:not(.is-on) .dmx-chip { transform: scale(0.9); }
.dmx-ax.is-seq .dmx-ans:not(.is-on):not(.is-think) { opacity: 0.55; }
.dmx-ax.is-seq .dmx-ans { transition: opacity 300ms ease, border-color 500ms var(--u-ease); }
.dmx-ax.is-seq .dmx-ans:not(.is-on) mark { background-size: 0% 100%; color: inherit; }
.dmx-ax.is-seq .dmx-ans.is-think .dmx-dots { opacity: 1; }
.dmx-ax.is-seq .dmx-ans.is-think .dmx-dots i { animation: dmxDot 900ms ease-in-out infinite; }
.dmx-ax.is-seq .dmx-ans.is-think .dmx-dots i:nth-child(2) { animation-delay: 150ms; }
.dmx-ax.is-seq .dmx-ans.is-think .dmx-dots i:nth-child(3) { animation-delay: 300ms; }
.dmx-ax.is-seq .dmx-ans.is-on .dmx-ans-body { transition: opacity 420ms ease, transform 560ms var(--u-ease); }
.dmx-ax.is-seq .dmx-ans.is-on .dmx-chip { transition: opacity 260ms ease 320ms, transform 360ms var(--u-ease) 320ms; }
.dmx-ax.is-seq .dmx-ans.is-on mark { transition: background-size 520ms var(--u-ease) 260ms, color 300ms ease 300ms; }
.dmx-ax.is-away :is(.dmx-caret, .dmx-dots i) { animation-play-state: paused; }
@keyframes dmxBlink { 50% { opacity: 0; } }
@keyframes dmxTick { from { background: var(--u-fill2); transform: scaleY(0.5); } }
@keyframes dmxDot { 0%, 60%, 100% { transform: none; opacity: 0.5; } 30% { transform: translateY(-3px); opacity: 1; } }
.dmx-tier { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.7fr) minmax(0, 0.95fr); }
.dmx-tier > * { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.dmx-tier > * + * { border-left: 1px solid var(--u-line); }
.dmx-sum { padding: 13px 16px; gap: 6px; }
.dmx-sum-big { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; font-size: 50px; font-weight: 500; line-height: 1; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; color: var(--u-ink); }
.dmx-sum-big em { font-style: normal; font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--u-cap); }
.dmx-sum-h { font-size: 13px; line-height: 1.45; color: var(--u-muted); text-wrap: balance; }
.dmx-sum-h b { font-weight: 500; color: var(--u-ink); }
.dmx-sum .dmx-ticks { grid-template-columns: repeat(16, minmax(0, 1fr)); max-width: none; margin-top: auto; padding-top: 8px; }
.dmx-vis .dmx-fig, .dmx-lead .dmx-leadlist { flex: 1 1 auto; min-height: 0; }
.dmx-sum.is-armed:not(.is-in) .dmx-ticks i { background: var(--u-fill2); }
.dmx-sum.is-armed.is-in .dmx-ticks i { animation: dmxTick 420ms var(--u-ease) calc(var(--i) * 26ms + 200ms) backwards; }
.dmx-tier > .is-armed:not(.is-in) > * { opacity: 0; transform: translateY(8px); }
.dmx-tier > .is-armed.is-in:not(.is-done) > * { transition: opacity 500ms var(--u-ease), transform 600ms var(--u-ease); }

.dm-pane { container: dm / inline-size; }
.dm-rx, .dm-ax { padding-bottom: 14px; }
.dm .dm-hp { flex: 1 1 auto; min-height: 0; margin-top: 12px; padding: 0; gap: 10px; border-radius: 0; background: transparent; font-size: 12.5px; }
.dm:not(.is-live) :is(.dmx-caret, .dmx-dots i) { animation-play-state: paused !important; }
/* Results */
.dm .dmx-funnel { flex: none; grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.5fr); }
.dm .dmx-funnel-main { padding: 12px 16px; gap: 5px; }
.dm .dmx-funnel-h { font-size: 17px; line-height: 1.2; }
.dm .dmx-steps { border-left: 1px solid var(--u-line); border-top: 0; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); }
.dm .dmx-step { display: flex; padding: 12px 14px; gap: 2px; }
.dm .dmx-step-v { margin-top: 3px; font-size: 27px; }
.dm .dmx-step-s { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm .dmx-conv { min-width: 78px; flex-direction: column; padding: 0; }
.dm .dmx-conv-arrow { width: 22px; height: 22px; transform: none; margin-bottom: 2px; }
.dm .dmx-conv b { font-size: 13px; }
.dm .dmx-conv > span:last-child { font-size: 10.5px; }
.dm .dmx-rx-split { flex: 1 1 auto; min-height: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 0.36fr); }
.dm .dmx-perf, .dm .dmx-queries { min-height: 0; }
.dm .dmx-kpis { flex: none; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dm .dmx-kpi { padding: 10px 12px 9px; cursor: default; border-bottom: 0; }
.dm .dmx-kpi:nth-child(2) { border-right: 1px solid var(--u-line); }
.dm .dmx-kpi:hover { background: transparent; }
.dm .dmx-kpi-k { font-size: 12px; }
.dm .dmx-kpi-row { margin-top: 5px; }
.dm .dmx-kpi-v { font-size: 22px; }
.dm .dmx-kpi-f { margin-top: 5px; min-height: 18px; }
.dm .dmx-spark { flex-basis: 52px; height: 20px; }
.dm .dmx-q-t > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm .dmx-chip, .dm .dmx-chipbtn { border-radius: 4px; }
.dm .dmx-fig { padding: 14px 12px 6px; }
.dm .dmx-rx .dmx-chart { --dmx-plot-h: 80px; column-gap: 8px; }
.dm .dmx-plot { cursor: default; }
.dm .dmx-y, .dm .dmx-x { font-size: 9.5px; }
.dm .dmx-pub-tip { top: 6px; padding: 5px 8px; font-size: 11px; }
.dm .dmx-pub-tip b { font-size: 9px; }
.dm .dmx-head { min-height: 38px; padding: 9px 14px; }
.dm .dmx-head h3 { font-size: 13px; }
.dm .dmx-qhead, .dm .dmx-qlist li { padding: 0 14px; grid-template-columns: minmax(0, 1fr) 30px 40px; gap: 0 8px; }
.dm .dmx-qhead { height: 28px; }
.dm .dmx-qlist { overflow: hidden; }
.dm .dmx-qlist li { flex: 1 1 0; min-height: 0; font-size: 12px; }
.dm .dmx-qlist li:hover { background: transparent; }
.dm .dmx-rank { min-width: 32px; height: 19px; font-size: 11px; }
/* The chart is the first thing seen, so it draws at once and a little quicker than on the page below. */
.dm .dmx-fig.is-armed.is-in .dmx-lines { transition: clip-path 1250ms cubic-bezier(0.5, 0.05, 0.25, 1) 0ms; }
.dm .dmx-fig.is-armed.is-in:not(.is-done) .dmx-area { transition: opacity 700ms ease 800ms; }
.dm .dmx-fig.is-armed.is-in .dmx-pub-line { transition: transform 480ms var(--u-ease) 1250ms; }
.dm .dmx-fig.is-armed.is-in .dmx-pub-dot { transition: transform 400ms var(--u-ease) 1150ms, opacity 200ms ease 1150ms; }
.dm .dmx-fig.is-armed.is-in:not(.is-done) .dmx-pub-tip { transition: opacity 300ms ease 1550ms, transform 400ms var(--u-ease) 1550ms; }
/* AI visibility */
.dm .dmx-ax { gap: 10px; }
.dm .dmx-ask { flex: none; gap: 10px; }
.dm .dmx-q { min-height: 42px; padding: 9px 14px; gap: 10px; border-radius: 8px; font-size: 15px; align-items: center; }
.dm .dmx-q svg { margin: 0; }
.dm .dmx-answers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dm .dmx-ans { padding: 12px 14px; gap: 9px; border-radius: 8px; }
.dm .dmx-ans-who { font-size: 13px; gap: 9px; }
.dm .dmx-ans-body { font-size: 12.5px; line-height: 1.5; }
.dm .dmx-chip { height: 20px; padding: 0 7px; font-size: 10.5px; }
.dm .dmx-tier { flex: 1 1 auto; min-height: 0; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.7fr) minmax(0, 0.95fr); }
.dm .dmx-tier > * + * { border-left: 1px solid var(--u-line); border-top: 0; }
.dm .dmx-tier .dmx-head { min-height: 40px; padding: 8px 14px; flex-wrap: nowrap; }
.dm .dmx-tier .dmx-head h3 { white-space: nowrap; }
.dm .dmx-vis { grid-column: auto; grid-row: auto; }
.dm .dmx-sum { padding: 13px 16px; gap: 6px; }
.dm .dmx-sum-big { margin-top: 4px; font-size: 50px; }
.dm .dmx-sum-big em { font-size: 12px; }
.dm .dmx-sum-h { font-size: 13px; }
.dm .dmx-ticks { padding-top: 8px; }
.dm .dmx-ticks i { height: 9px; }
.dm .dmx-chips { flex-wrap: nowrap; gap: 4px; overflow: hidden; }
.dm .dmx-chipbtn { height: 21px; padding: 0 6px; gap: 5px; font-size: 10.5px; cursor: default; }
.dm .dmx-chipbtn .dmx-key { width: 10px; }
.dm .dmx-vis .dmx-fig { padding: 14px 12px 6px; }
.dm .dmx-vis .dmx-chart.is-pct { --dmx-plot-h: 60px; }
.dm .dmx-vis .dmx-line:not(.dmx-c-all) { opacity: 0.8; }
.dm .dmx-leadlist { overflow: hidden; }
.dm .dmx-leadlist li { min-height: 0; flex: 1 1 0; padding: 0 14px; font-size: 12.5px; }
/* A full menu with six screens: the labels of the unselected ones give way first. */
.dm.is-v2 .dm-nav-x { display: none; }
@container dm (max-width: 780px) {
  /* The calendar shows the working week: articles go out Monday to Friday, so nothing is lost. */
  .dm-dow, .dm-days { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .dm-dow span:nth-child(n + 6), .dm-day.is-off { display: none; }
  .dm .dmx-rx-split { grid-template-columns: minmax(0, 1fr); }
  .dm .dmx-queries { display: none; }
  .dm .dmx-funnel { grid-template-columns: minmax(0, 1fr); }
  .dm .dmx-funnel-main { display: none; }
  .dm .dmx-steps { border-left: 0; }
  .dm .dmx-tier { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr); }
  .dm .dmx-lead { display: none; }
  .dm .dmx-chips > :nth-child(n + 4) { display: none; }
  .dm .dmx-vis .dmx-x span:nth-child(even) { display: none; }
  .dm .dmx-sum-big { font-size: 44px; }
  .dm .dmx-sum-big em { display: none; }
  .dm-rx .dm-url, .dm-ax .dm-url { display: none; }
}
/* The smallest layout is for the stacked hero (tablet and phone), where the window is the width of the page. */
@media (max-width: 1020px) { @container dm (max-width: 560px) {
  .dm .dm-hp { margin-top: 8px; gap: 8px; }
  .dm .dmx-funnel-main { display: flex; padding: 10px 12px; }
  .dm .dmx-funnel-main .dmx-eyebrow { display: none; }
  .dm .dmx-funnel-h { font-size: 16px; }
  .dm .dmx-steps { display: none; }
  .dm .dmx-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dm .dmx-kpi:nth-child(n + 3) { display: none; }
  .dm .dmx-kpi:nth-child(2) { border-right: 0; }
  .dm .dmx-fig { padding: 12px 8px 4px; }
  .dm .dmx-y.is-r { display: none; }
  .dm .dmx-rx .dmx-chart { grid-template-columns: auto minmax(0, 1fr) 2px; }
  .dm .dmx-x span:nth-child(even) { display: none; }
  .dm .dmx-pub-tip { font-size: 0; padding: 4px 7px; }
  .dm .dmx-pub-tip b { font-size: 9px; margin: 0; }
  .dm .dmx-q { min-height: 0; padding: 8px 10px; font-size: 13px; line-height: 1.35; align-items: flex-start; }
  .dm .dmx-q svg { margin-top: 2px; }
  .dm .dmx-answers { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .dm .dmx-ans { padding: 9px 11px; }
  .dm .dmx-ans-main { display: none; }
  .dm .dmx-tier { grid-template-columns: minmax(0, 1fr); }
  .dm .dmx-vis { display: none; }
  .dm .dmx-sum { padding: 11px 12px; }
  .dm .dmx-sum-big { font-size: 40px; }
  .dm .dm-ax .dm-note { display: none; }
} }
/* Beside the copy (desktop), the part of the window on screen gets narrow on small laptops. Each screen
   gives up its least important column or control, so everything that shows is whole. */
@media (min-width: 1021px) {
  @container dm (max-width: 640px) {
    .dm-cal .dm-seg, .dm-saved, .dm-rv-search { display: none; }
    .dm-art-body { grid-template-columns: minmax(0, 1fr) 196px; }
    .dm-doc { padding: 18px 20px 0; }
    .dm-doc-title { font-size: 21px; }
    .dm-tools > span:nth-child(n + 6):not(.dm-tools-ai) { display: none; }
    .dm .dmx-spark { display: none; }
    .dm .dmx-conv { min-width: 62px; }
    .dm .dmx-step { padding: 12px 12px; }
    .dm .dmx-step-k { white-space: normal; line-height: 1.35; align-items: flex-start; }
    .dm .dmx-step-k i { margin-top: 3px; }
    .dm .dmx-ans { padding: 11px 12px; }
    .dm .dmx-chips > :nth-child(n + 3) { display: none; }
  }
  @container dm (max-width: 560px) {
    .dm-cal .dm-head-r .dm-note { display: none; }
    .dm-pane { padding-left: 12px; padding-right: 12px; }
    .dm-filter { gap: 4px 11px; }
    .dm-day { padding: 4px 3px 0; }
    .dm-chip { padding: 4px 5px; gap: 4px; font-size: 11.5px; letter-spacing: -0.012em; }
    .dm .dm-chip > .dot { width: 12px; height: 12px; }
    .dm .dmx-rx .dmx-x span:nth-child(even) { display: none; }
    .dm-rv-th, .dm-row { grid-template-columns: minmax(0, 1fr) 118px 92px; }
    .dm-rv-th > :nth-child(3), .dm-row-due { display: none; }
    .dm-rv-tabs > span:nth-child(4) { display: none; }
    .dm-art-body { grid-template-columns: minmax(0, 1fr) 176px; gap: 10px; }
    .dm-doc { padding: 16px 16px 0; }
    .dm-rail { padding: 12px; }
    .dm-rail > .dm-kv { grid-template-columns: minmax(0, 1fr); }
    .dm-art .dm-back { display: none; }
    .dm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dm-db-cols { grid-template-columns: minmax(0, 1fr); }
    .dm-next { display: none !important; }
    .dm .dmx-conv > span:last-child { display: none; }
    .dm .dmx-conv { min-width: 46px; }
    .dm .dmx-kpi { padding: 10px 10px 9px; }
    .dm .dmx-kpi-v { font-size: 20px; }
    .dm .dmx-kpi-vs { display: none; }
    /* Two answers side by side, and the assistant that left the site out as a single line under them. */
    .dm .dmx-answers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dm .dmx-ans:nth-child(3) { grid-column: 1 / -1; padding-top: 9px; padding-bottom: 9px; }
    .dm .dmx-ans:nth-child(3) .dmx-ans-main { display: none; }
    .dm .dmx-ticks i { height: 7px; }
  }
  @container dm (max-width: 500px) {
    .dm-chip .t { display: block; white-space: nowrap; text-overflow: ellipsis; }
  }
}
/* Six tabs in the top row (tablet and phone layouts): icons, and the name of the screen that is showing. */
@media (max-width: 960px) {
  .dm.is-v2 .dm-tab { flex: 0 0 auto; width: auto; min-width: 36px; justify-content: center; padding: 0 9px; gap: 6px; }
  .dm.is-v2 .dm-tab[aria-selected="true"] { flex: 1 1 auto; }
  .dm.is-v2 .dm-tab svg { display: block; }
  .dm.is-v2 .dm-tab:not([aria-selected="true"]) .dm-tab-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .dm.is-v2 .dm-tab:not([aria-selected="true"]) .dm-badge { position: absolute; top: 1px; right: 0; min-width: 13px; height: 13px; font-size: 9px; }
  .dm.is-v2 .dm-nav { justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  .dm *, .dm *::before, .dm *::after { animation: none !important; transition: none !important; }
  .dm-prog { display: none; }
}
