/* ============================================================
   TrueMetriks - feature pages (/features/*, /chrome-extension, /compliance)
   Loaded ONLY by the feature pages, after analytics.css.
   Light-only: page chrome (plan line, limits, related cards) uses tokens;
   mocks and diagrams use literal light colors, like dashboard-replicas.css.
   One breakpoint: 768px. Every animation has a reduced-motion final state
   in the single prefers-reduced-motion block at the end.

   Markup reference (class names are an interface for the page tasks):

   Plan line under the hero lead (the .ft-badge text is checked by tests):
     <p class="ft-plan"><span class="ft-badge ft-badge--all">Included on all plans</span>
       <span>Included in the free trial</span></p>
     modifiers: --all (green), --growth (blue), --unlimited (violet)

   Step diagram: horizontal with arrows above 768px, vertical rail at or below
   768px; add .ft-flow--vertical for a rail at every width (timelines):
     <ol class="ft-flow">
       <li class="ft-flow__step"><small>Day 1</small><b>Clicked a Facebook ad</b><span>fbclid saved</span></li>
       <li class="ft-flow__step ft-flow__step--ok">...</li>
     </ol>
     step modifiers: --ok, --lost, --warn, --muted
     Several steps in one column (alternatives, or inputs that arrive together):
       <li class="ft-flow__group"><div class="ft-flow__step">...</div><div class="ft-flow__step">...</div></li>
     Logos inside a step: <span class="ft-logos"><img ...><span class="an-mini__tt"><img tiktok></span></span>

   Stacked lanes, label then flow, repeated:
     <div class="ft-lanes">
       <p class="ft-lanes__label">Browser pixel only</p><ol class="ft-flow">...</ol>
       <p class="ft-lanes__label">TrueMetriks</p><ol class="ft-flow">...</ol>
     </div>

   Mock card:
     <div class="ft-mock">
       <div class="ft-mock__bar"><span>What Facebook receives</span><span>Purchase</span></div>
       <dl class="ft-kv"><dt>em</dt><dd><span class="ft-hash">a1b2c3&hellip;</span></dd>...</dl>
     </div>
     Every direct child after the bar gets the card padding.
     A muted line under a value: <dd>203.0.113.24 <span class="ft-kv__note">from the buyer's device</span></dd>
     Narrow card (560px, e.g. a small table or a single row): <div class="ft-mock ft-mock--narrow">
     .ft-bars or .ft-table as a DIRECT child of .ft-mock drops its own border, radius and
       max-width (the card frames it); a .ft-table there spans the card edge to edge and keeps
       no 560px phone min-width, so use it only for tables that fit a phone.
     Red alert row (a failed check, bold title on its own line, then the detail):
       <p class="ft-mock__alert"><b>What Meta kept: fewer than we sent</b>Meta kept 48 of 120</p>
     Foot line (muted, tinted, label left and bold value right), with optional legend swatches:
       <p class="ft-mock__foot"><span><i class="ft-key"></i>Paid ads <i class="ft-key ft-key--alt"></i>Everything else</span><b>Total $44,005</b></p>
       .ft-key = blue swatch, .ft-key--alt = green swatch

   AI chat inside a mock (question right, tool chip, answer left), e.g. an MCP question and answer:
     <div class="ft-mock ft-mock--narrow"><div class="ft-mock__bar"><span>Your AI app</span><span>...</span></div>
       <div class="ft-chat"><p class="ft-chat__q">Which ad made the most revenue?</p>
         <p class="ft-chat__tool">Used <b>get_ad_breakdown</b> - level: ad</p>
         <p class="ft-chat__a">For Nov 10 to Nov 16: <b>...</b></p></div></div>

   Summary strip inside a mock (label above value, cells wrap), e.g. a journey's First touch / Touches:
     <dl class="ft-strip"><div><dt>First touch</dt><dd>Facebook Ads - Instagram</dd></div>...</dl>
   Reason chips (green dot; .ft-chips__weak = amber dot) and mock buttons (not links):
     <ul class="ft-chips"><li>Same home network</li><li class="ft-chips__weak">Same town</li></ul>
     <span class="ft-btns"><span class="ft-btn">Not the same person</span><span class="ft-btn ft-btn--primary">Link</span></span>
   Homepage buyer path (analytics.css .an-path) with any number of steps or credit boxes in one row:
     <div class="an-path ft-path"><ol class="an-path__steps">5 steps</ol><div class="an-path__credit">3 boxes</div></div>
     The dashed line runs between the first and last icon for 5 steps; for another count set style="--n:4".
     (desktop only, from 761px, the breakpoint analytics.css uses for .an-path; phones keep its stacked rail)

   Rows (icon, title + detail, status on the right), e.g. a fan-out or delivery board:
     <ul class="ft-rows">
       <li><span class="ft-rows__ic"><img ...></span><span class="ft-rows__txt"><b>Facebook pixel</b><span>Main pixel</span></span>
         <span class="ft-status ft-status--sent">Sent</span></li>
     </ul>
     icon modifiers: --tt (black TikTok tile), --sale (green tint, for an svg icon)
     Long titles (e.g. a delivery log line): <ul class="ft-rows ft-rows--stack"> moves the
       status pill under the text on phones, so the text keeps the row's width

   Status pill: <span class="ft-status ft-status--sent">Sent</span>
     modifiers: --sent, --retry, --skipped, --failed, --off

   Bars (home.js adds .in to [data-bar] when it scrolls into view):
     <ul class="ft-bars">
       <li><span>Paid Social</span><span data-bar style="--w:100%"><i></i></span><b>$17,745</b></li>
     </ul>
     optional per-row fill color: style="--w:40%;--c:#DC2626"

   CSS-only tabs (up to 4; inputs, then labels, then panels in the same order):
     <div class="ft-tabs">
       <input type="radio" name="credit" id="credit-first" checked><label for="credit-first">First touch</label>
       <input type="radio" name="credit" id="credit-last"><label for="credit-last">Last touch</label>
       <div class="ft-tabs__panel">...</div>
       <div class="ft-tabs__panel">...</div>
     </div>
     Panels must be the only <div> children of .ft-tabs.
     A browser frame per tab: an .an-frame directly inside each panel (no extra side margin).
     A dashboard replica per tab: <div class="an-widget-wide ft-scroll"><figure ...></div> directly inside
     the panel takes the .ft-mock width (760px).

   Table (scrolls inside its own box on phones):
     <div class="ft-table" role="region" aria-label="Platform by platform" tabindex="0"><table>...</table></div>
     Logo + name in a cell: <span class="ft-table__plat"><img ...>Google Ads</span>
     Svg icon instead of a logo: <span class="ft-table__plat"><svg class="ft-table__ic" ...></svg>Email</span>
     Right-aligned number cell (and its header): <td class="ft-num">20</td>, <th class="ft-num">Sales</th>
     Bold tinted total row: <tr class="ft-table__total"><th scope="row">Total</th><td class="ft-num">20</td></tr>
     Two columns with a <code> name first (endpoints, tool names): <div class="ft-table ft-table--fit" ...>
       fits a phone without scrolling; the code name wraps (add <wbr> after "_" for clean breaks)

   Code: <pre class="ft-code"><code>...</code></pre>
     As a DIRECT child of .ft-mock (a payload under a title bar) it drops its own border,
     radius and max-width, like .ft-bars and .ft-table.

   Bold one-line statement under a diagram or mock (centered, darker than .an-lead):
     <p class="ft-stmt">TrueMetriks measures your test. It does not split your traffic</p>
   A second block in the same section (e.g. an .an-feature after a diagram), spaced like a new section:
     <div class="an-wide ft-more"><div class="an-feature">...</div></div>

   Fake URL bar: <p class="ft-url">store.com/<span class="ft-url__hl">ivf</span>-consult<span class="ft-url__param">?_tmid=ev_k3f9q2</span></p>

   Fake website with a card over it (e.g. a consent banner), inside an .an-frame:
     <div class="ft-site"><span class="ft-site__line ft-site__line--title"></span><span class="ft-site__line" style="--w:70%"></span>
       <span class="ft-site__block"></span>
       <div class="ft-site__pop"><p>Text <u>Link</u></p><span class="ft-site__btns"><span>Reject</span><span>Accept</span></span></div></div>
     card position: bottom left (default), --center, --right; on phones it spans the bottom edge
   Limits: <ul class="ft-limits"><li>...</li></ul>
   Related: <div class="ft-related"><a href="/features/x"><b>Title</b><span>One line</span></a>...</div>
   Wide replica wrapper: <div class="an-widget-wide ft-scroll">...</div>

   Motion: .ft-pulse (fades a row in with a ring, once; stagger with style="--d:.3s"),
   .ft-flip (a looping fade-out/collapse, e.g. the _tmid param; final state = gone;
   inside .ft-url it wraps on phones instead of clipping:
   <p class="ft-url">store.com/product<span class="ft-url__param ft-flip">?_tmid=ev_k3f9q2_a1b2c3d4.1731900000</span></p>).
   ============================================================ */

/* Shared spacing for the block components */
.ft-flow, .ft-lanes, .ft-mock, .ft-rows, .ft-bars, .ft-tabs, .ft-table, .ft-code, .ft-url, .ft-limits, .ft-related { margin-top: var(--space-6); }
:is(.ft-flow, .ft-lanes, .ft-mock, .ft-rows, .ft-bars, .ft-tabs, .ft-table, .ft-code, .ft-url, .ft-limits, .ft-related):first-child { margin-top: 0; }

/* --- Plan badge + "Included in the free trial" line --- */
.ft-plan {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2) var(--space-3);
  margin: var(--space-5) 0 0;
  font-size: 15px;
  color: var(--color-text-muted);
}
.an .ft-plan { color: var(--color-text-muted); }
.ft-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  border: 1px solid #A7E3C9;
  background: #E7F8F0;
  color: #05603A;
  font-size: 14px;
  font-weight: var(--font-weight-bold);
  line-height: 1.4;
  white-space: nowrap;
}
.ft-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.ft-badge--all { border-color: #A7E3C9; background: #E7F8F0; color: #05603A; }
.ft-badge--growth { border-color: #BFC6FF; background: #ECEEFF; color: #1A2BD9; }
.ft-badge--unlimited { border-color: #D6C6FB; background: #F3EEFF; color: #5B21B6; }

/* --- Step diagram --- */
.ft-flow {
  --ft-gap: 32px;
  list-style: none;
  padding: 0;
  max-width: 1080px;
  margin-inline: auto;
  display: flex;
  gap: var(--ft-gap);
  position: relative;
  text-align: left;
}
.ft-flow__step {
  --ft-dot: #8A93B2;
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  padding: 12px 14px;
  background: #FFFFFF;
  border: 1px solid #D5DAEB;
  border-radius: 12px;
  box-shadow: 0 6px 18px -12px rgba(15, 23, 42, 0.25);
  color: #0F172A;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.ft-flow__step small {
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6B7280;
}
.ft-flow__step b { display: block; font-size: 15px; font-weight: var(--font-weight-bold); }
.ft-flow__step b + span, .ft-flow__step b + .ft-status { display: inline-block; margin-top: 4px; }
.an .ft-flow__step p { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: #4B5160; }
.ft-flow__step--ok { --ft-dot: #10B981; background: #ECFDF5; border-color: #86D7B2; }
.ft-flow__step--ok b { color: #05603A; }
.ft-flow__step--lost { --ft-dot: #DC2626; background: #FEF2F2; border-color: #F5A3A3; border-style: dashed; }
.ft-flow__step--lost b { color: #991B1B; }
.ft-flow__step--warn { --ft-dot: #F59E0B; background: #FFFBEB; border-color: #F5CF6B; }
.ft-flow__step--warn b { color: #92400E; }
.ft-flow__step--muted { --ft-dot: #C4C9D6; background: #F5F6F8; border-color: #E2E5EC; box-shadow: none; color: #6B7280; }
.ft-flow__step--muted b { color: #4B5160; }
/* Arrow in the gap before every step (or group) after the first */
.ft-flow__step + .ft-flow__step::before,
.ft-flow__group + .ft-flow__step::before,
.ft-flow__step + .ft-flow__group::before,
.ft-flow__group + .ft-flow__group::before {
  content: "";
  position: absolute;
  left: calc(var(--ft-gap) / -2 - 9px);
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M2 9h13M10 4l5 5-5 5' fill='none' stroke='%238A93B2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* Group: several steps stacked in one column, no arrows between them */
.ft-flow__group {
  --ft-dot: #8A93B2;
  position: relative;
  flex: 1 1 30px; /* = a step's padding + border, so every column gets the same width */
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ft-flow__group > .ft-flow__step { flex: none; padding: 9px 14px; }
.ft-flow .ft-flow__group > .ft-flow__step::before,
.ft-flow .ft-flow__group > .ft-flow__step::after { content: none; }
@media (min-width: 769px) {
  .ft-flow:has(> .ft-flow__group) { align-items: center; }
}
/* Logos row inside a step */
.ft-flow__step .ft-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.ft-logos > img { width: 18px; height: 18px; display: block; object-fit: contain; }

/* Vertical rail: a dot per step, joined by a line segment to the next dot */
.ft-flow.ft-flow--vertical { --ft-gap: 12px; flex-direction: column; padding-left: 28px; }
.ft-flow--vertical > :is(.ft-flow__step, .ft-flow__group) { flex: none; }
.ft-flow--vertical > :is(.ft-flow__step, .ft-flow__group)::before,
.ft-flow--vertical > * + :is(.ft-flow__step, .ft-flow__group)::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 16px;
  width: 12px;
  height: 12px;
  transform: none;
  border-radius: 50%;
  background: var(--ft-dot);
  box-shadow: 0 0 0 3px #FFFFFF;
}
.ft-flow--vertical > :is(.ft-flow__step, .ft-flow__group):not(:last-child)::after {
  content: "";
  position: absolute;
  left: -21px;
  top: 31px;
  bottom: calc(-16px - var(--ft-gap));
  width: 2px;
  background: #C9D0EA;
}
@media (max-width: 768px) {
  .ft-flow { --ft-gap: 12px; flex-direction: column; padding-left: 28px; }
  .ft-flow > :is(.ft-flow__step, .ft-flow__group) { flex: none; }
  .ft-flow > :is(.ft-flow__step, .ft-flow__group)::before,
  .ft-flow > * + :is(.ft-flow__step, .ft-flow__group)::before {
    content: "";
    position: absolute;
    left: -26px;
    top: 16px;
    width: 12px;
    height: 12px;
    transform: none;
    border-radius: 50%;
    background: var(--ft-dot);
    box-shadow: 0 0 0 3px #FFFFFF;
  }
  .ft-flow > :is(.ft-flow__step, .ft-flow__group):not(:last-child)::after {
    content: "";
    position: absolute;
    left: -21px;
    top: 31px;
    bottom: calc(-16px - var(--ft-gap));
    width: 2px;
    background: #C9D0EA;
  }
}

/* --- Lanes: label + flow rows inside one light card --- */
.ft-lanes {
  max-width: 1080px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: var(--space-5) var(--space-5);
  align-items: center;
  padding: var(--space-5);
  background: #F7F8FC;
  border: 1px solid #D5DAEB;
  border-radius: 16px;
  text-align: left;
}
.ft-lanes .ft-flow { margin: 0; }
.an .ft-lanes__label,
.ft-lanes__label {
  margin: 0;
  font-size: 14px;
  font-weight: var(--font-weight-bold);
  line-height: 1.35;
  color: #0F172A;
}
@media (max-width: 768px) {
  .ft-lanes { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); padding: var(--space-4); }
  .ft-lanes .ft-lanes__label:not(:first-child) { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid #D5DAEB; }
}

/* --- Mock card --- */
.ft-mock {
  max-width: 760px;
  margin-inline: auto;
  background: #FFFFFF;
  color: #0F172A;
  border: 1px solid #D5DAEB;
  border-radius: 14px;
  box-shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}
.ft-mock__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px 12px;
  padding: 12px 18px;
  background: #F0F3FF;
  border-bottom: 1px solid #D5DAEB;
  font-size: 14px;
  font-weight: var(--font-weight-bold);
  color: #0F172A;
}
.ft-mock__bar > span + span {
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  color: #4B5160;
  background: #FFFFFF;
  border: 1px solid #D5DAEB;
  border-radius: 999px;
  padding: 2px 10px;
}
.ft-mock > :not(.ft-mock__bar) { margin: 0; padding: 14px 18px; }
.ft-mock > :not(.ft-mock__bar) + :not(.ft-mock__bar) { border-top: 1px solid #E6E9F4; }
.ft-mock > .ft-flow--vertical { padding-left: 46px; }
.an .ft-mock p { margin: 0; font-size: 14px; line-height: 1.5; color: #3A3F52; }
@media (max-width: 768px) {
  .ft-mock__bar, .ft-mock > :not(.ft-mock__bar) { padding-inline: 14px; }
  .ft-mock > .ft-flow { padding-left: 42px; }
}

/* Key/value rows */
.ft-kv {
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(0, 1fr);
  column-gap: var(--space-4);
  font-variant-numeric: tabular-nums;
}
.ft-kv dt, .ft-kv dd { margin: 0; padding: 8px 0; border-bottom: 1px solid #EEF0F4; overflow-wrap: anywhere; }
.ft-kv dt:last-of-type, .ft-kv dd:last-of-type { border-bottom: 0; }
.ft-kv dt { font-family: var(--font-family-mono); font-size: 13px; color: #6B7280; max-width: 170px; }
.ft-kv dd { font-weight: var(--font-weight-semibold); color: #0F172A; }
@media (max-width: 768px) {
  /* Phones: key above value, so long keys do not squeeze the values */
  .ft-kv { grid-template-columns: minmax(0, 1fr); }
  .ft-kv dt { max-width: none; padding-bottom: 0; border-bottom: 0; }
  .ft-kv dd { padding-top: 2px; }
}
.ft-kv__note { display: block; font-size: 12.5px; font-weight: var(--font-weight-regular); color: #6B7280; }

/* Monospace truncated hash / ID */
.ft-hash {
  display: inline-block;
  max-width: 100%;
  padding: 1px 7px;
  font-family: var(--font-family-mono);
  font-size: 12.5px;
  font-weight: var(--font-weight-regular);
  color: #374151;
  background: #F3F4F6;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  overflow-wrap: anywhere;
}

/* --- Rows: icon, title + detail, status --- */
.ft-rows { list-style: none; padding: 0; display: grid; gap: 8px; text-align: left; }
.ft-rows > li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #FFFFFF;
  border: 1px solid #E6E9F4;
  border-radius: 10px;
}
.ft-rows__ic {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #F4F6FC;
  border: 1px solid #E6E9F4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2233FF;
}
.ft-rows__ic img, .ft-rows__ic svg { width: 18px; height: 18px; display: block; object-fit: contain; }
.ft-rows__ic--tt { background: #000000; border-color: #000000; }
.ft-rows__ic--tt img { width: 14px; height: 14px; filter: invert(1); }
.ft-rows__ic--sale { background: #E7F8F0; border-color: #A7E3C9; color: #05603A; }
.ft-rows__txt { min-width: 0; }
.ft-rows__txt b { display: block; font-size: 14.5px; font-weight: var(--font-weight-bold); color: #0F172A; overflow-wrap: anywhere; }
.ft-rows__txt > span { display: block; font-size: 13px; color: #6B7280; overflow-wrap: anywhere; }
@media (max-width: 768px) {
  .ft-rows > li { gap: 10px; padding: 9px 10px; }
  .ft-rows--stack > li { grid-template-columns: auto minmax(0, 1fr); row-gap: 6px; }
  .ft-rows--stack > li > .ft-status { grid-column: 2; justify-self: start; }
}

/* --- Status pill --- */
.ft-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid #D1D5DB;
  background: #F3F4F6;
  color: #4B5160;
  font-size: 12.5px;
  font-weight: var(--font-weight-bold);
  line-height: 1.5;
  white-space: nowrap;
  vertical-align: middle;
}
.ft-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.ft-status--sent { border-color: #A7E3C9; background: #E7F8F0; color: #05603A; }
.ft-status--retry { border-color: #F5CF6B; background: #FFF7E0; color: #92400E; }
.ft-status--skipped { border-color: #C9D0EA; background: #F0F3FF; color: #3B4470; }
.ft-status--failed { border-color: #F5A3A3; background: #FEF2F2; color: #991B1B; }
.ft-status--off { border-color: #E2E5EC; background: #F5F6F8; color: #6B7280; }

/* --- Bars --- */
.ft-bars {
  max-width: 760px;
  margin-inline: auto;
  list-style: none;
  padding: var(--space-4) var(--space-5);
  display: grid;
  gap: 10px;
  background: #FFFFFF;
  border: 1px solid #D5DAEB;
  border-radius: 14px;
  color: #0F172A;
  font-size: 14px;
  text-align: left;
}
.ft-bars > li {
  display: grid;
  grid-template-columns: minmax(0, 150px) minmax(0, 1fr) minmax(64px, auto);
  align-items: center;
  gap: 12px;
}
.ft-bars > li > :first-child { font-weight: var(--font-weight-semibold); overflow-wrap: anywhere; }
.ft-bars > li > :last-child { text-align: right; font-weight: var(--font-weight-bold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ft-bars [data-bar] { display: block; height: 10px; border-radius: 999px; background: #E8EBF4; overflow: hidden; }
.ft-bars [data-bar] i { height: 100%; border-radius: inherit; background: var(--c, #2233FF); }
@media (max-width: 768px) {
  .ft-bars { padding: var(--space-3) var(--space-4); }
  .ft-bars > li { grid-template-columns: minmax(0, 96px) minmax(0, 1fr) auto; gap: 8px; font-size: 13px; }
}

/* home.js hook: [data-bar] carries --w, its <i> grows to it once .in is added */
[data-bar] i { display: block; width: 0; transition: width .9s ease; }
[data-bar].in i { width: var(--w); }

/* --- CSS-only radio tabs --- */
.ft-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.ft-tabs > input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
}
.ft-tabs > label {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid #D5DAEB;
  background: #FFFFFF;
  color: #2E3340;
  font-size: 15px;
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.ft-tabs > label:hover { border-color: #2233FF; color: #2233FF; }
.ft-tabs > input:checked + label { background: #2233FF; border-color: #2233FF; color: #FFFFFF; }
.ft-tabs > input:focus-visible + label { outline: 2px solid #2233FF; outline-offset: 3px; }
.ft-tabs__panel { display: none; flex: 0 0 100%; min-width: 0; margin-top: var(--space-4); text-align: left; }
.ft-tabs__panel > :first-child { margin-top: 0; }
.ft-tabs > input:nth-of-type(1):checked ~ .ft-tabs__panel:nth-of-type(1),
.ft-tabs > input:nth-of-type(2):checked ~ .ft-tabs__panel:nth-of-type(2),
.ft-tabs > input:nth-of-type(3):checked ~ .ft-tabs__panel:nth-of-type(3),
.ft-tabs > input:nth-of-type(4):checked ~ .ft-tabs__panel:nth-of-type(4) { display: block; }
@media (max-width: 768px) {
  .ft-tabs > label { padding: 8px 10px; font-size: 14px; }
}

/* --- Table: scrolls inside its box on phones --- */
.ft-table {
  max-width: 1040px;
  margin-inline: auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #FFFFFF;
  border: 1px solid #D5DAEB;
  border-radius: 14px;
  text-align: left;
}
.ft-table:focus-visible { outline: 2px solid #2233FF; outline-offset: 2px; }
.ft-table table { width: 100%; border-collapse: collapse; color: #0F172A; font-size: 15px; line-height: 1.5; }
.ft-table th, .ft-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid #E6E9F4; }
.ft-table thead th { background: #F4F6FC; font-size: 13px; font-weight: var(--font-weight-bold); letter-spacing: 0.04em; text-transform: uppercase; color: #4B5160; }
.ft-table tbody th { font-weight: var(--font-weight-bold); }
.ft-table tbody tr:last-child > * { border-bottom: 0; }
.ft-table code { font-family: var(--font-family-mono); font-size: 13px; }
.ft-table__plat { display: inline-flex; align-items: flex-start; gap: 8px; }
.ft-table__plat > img, .ft-table__plat > .an-mini__tt { margin-top: 3px; }
.ft-table__plat img { width: 18px; height: 18px; display: block; flex: none; }
.ft-table__plat .an-mini__tt img { width: 9px; height: 9px; }
@media (max-width: 768px) {
  .ft-table table { min-width: 560px; font-size: 14px; }
  .ft-table th, .ft-table td { padding: 10px 12px; }
}
/* Two-column table with a code name in the first column (e.g. API endpoints, MCP tools):
   on phones it fits the screen instead of scrolling, and the code name wraps */
@media (max-width: 768px) {
  .ft-table--fit table { min-width: 0; }
  .ft-table--fit tbody th { width: 42%; }
  .ft-table--fit code { overflow-wrap: anywhere; }
}

/* --- Bold statement under a diagram or mock --- */
.ft-stmt {
  max-width: 64ch;
  margin: var(--space-6) auto 0;
  text-align: center;
  font-size: 20px;
  line-height: 1.5;
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
}
@media (max-width: 768px) {
  .ft-stmt { font-size: 17px; }
}

/* --- A second block in the same section --- */
.ft-more { margin-top: var(--space-8); }
@media (max-width: 768px) {
  .ft-more { margin-top: var(--space-7); }
}

/* --- Code block (light) --- */
.ft-code {
  max-width: 760px;
  margin-inline: auto;
  padding: 14px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #F6F8FC;
  border: 1px solid #D5DAEB;
  border-radius: 12px;
  color: #0F172A;
  font-family: var(--font-family-mono);
  font-size: 13.5px;
  line-height: 1.6;
  white-space: pre;
  text-align: left;
  tab-size: 2;
}
.ft-code code { font: inherit; color: inherit; background: none; padding: 0; }

/* --- Fake URL bar --- */
.an .ft-url,
.ft-url {
  max-width: 760px;
  margin-inline: auto;
  padding: 10px 18px 10px 40px;
  position: relative;
  background: #FFFFFF;
  border: 1px solid #D5DAEB;
  border-radius: 999px;
  box-shadow: 0 6px 18px -12px rgba(15, 23, 42, 0.3);
  color: #0F172A;
  font-family: var(--font-family-mono);
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
  overflow-wrap: anywhere;
}
.ft-url::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Crect x='2.5' y='6' width='9' height='6.5' rx='1.5' fill='%236B7280'/%3E%3Cpath d='M4.5 6V4.5a2.5 2.5 0 0 1 5 0V6' fill='none' stroke='%236B7280' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ft-url__hl { padding: 0 3px; border-radius: 4px; background: #FDE68A; color: #713F12; font-weight: var(--font-weight-bold); }
.ft-url__param { padding: 0 3px; border-radius: 4px; background: #E6E9FF; color: #1A2BD9; }
@media (max-width: 768px) {
  .an .ft-url, .ft-url { border-radius: 14px; font-size: 13px; padding-left: 36px; }
  /* A long fading param wraps instead of being clipped at the bar's edge */
  .ft-url .ft-flip { white-space: normal; overflow-wrap: anywhere; word-break: break-all; }
}

/* --- Fake website with a card over it (consent banner preview) --- */
.ft-site { position: relative; min-height: 340px; padding: 26px 28px 150px; background: #FFFFFF; text-align: left; }
.ft-site__line { display: block; width: var(--w, 100%); height: 10px; margin-top: 12px; border-radius: 6px; background: #E8EBF4; }
.ft-site__line--title { width: 46%; height: 20px; margin-top: 0; background: #CBD2E6; }
.ft-site__block { display: block; height: 90px; margin-top: 22px; border-radius: 10px; background: #F0F3FA; }
.ft-site__pop {
  position: absolute;
  bottom: 16px;
  left: 16px;
  width: min(380px, calc(100% - 32px));
  box-sizing: border-box;
  padding: 16px;
  border-radius: 12px;
  background: #FFFFFF;
  color: #1A1A1A;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.ft-site__pop--center { left: 50%; transform: translateX(-50%); }
.ft-site__pop--right { left: auto; right: 16px; }
.an .ft-site__pop p { margin: 0 0 12px; font-size: 14px; line-height: 1.45; color: #1A1A1A; }
.ft-site__btns { display: flex; gap: 8px; }
.ft-site__btns > span { flex: 1 1 0; padding: 9px 12px; border-radius: 8px; background: #1A1A1A; color: #FFFFFF; font-size: 14px; font-weight: 600; text-align: center; }
@media (max-width: 768px) {
  .ft-site { min-height: 300px; padding: 18px 16px 170px; }
  .ft-site__pop, .ft-site__pop--center, .ft-site__pop--right { left: 0; right: 0; bottom: 0; width: auto; transform: none; border-radius: 12px 12px 0 0; }
}

/* --- "What it does not do" --- */
.ft-limits {
  max-width: 960px;
  margin-inline: auto;
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4) var(--space-6);
  text-align: left;
}
.ft-limits li {
  position: relative;
  padding-left: 34px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text-muted);
}
.ft-limits li::before {
  content: "\2715";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-subtle);
  font-size: 11px;
  font-weight: var(--font-weight-extra);
}
.ft-limits b { color: var(--color-text); }
@media (max-width: 768px) {
  .ft-limits { grid-template-columns: minmax(0, 1fr); }
}

/* --- Related features --- */
.ft-related {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  text-align: left;
}
.ft-related a {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5) 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  color: var(--color-text);
  text-decoration: none;
  transition: border-color var(--motion-fast) var(--ease-out), box-shadow var(--motion-fast) var(--ease-out);
}
.ft-related a:hover { border-color: var(--color-brand); box-shadow: var(--shadow-lg); color: var(--color-text); }
.ft-related a:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 3px; }
.ft-related b { font-size: 18px; font-weight: var(--font-weight-bold); }
/* No-break space: the arrow always stays on the line of the last word, never alone */
.ft-related b::after { content: "\00a0\2192"; color: var(--color-brand); }
.ft-related span { font-size: 16px; line-height: 1.55; color: var(--color-text-muted); }
@media (max-width: 768px) {
  .ft-related { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
}

/* --- Mock variants: narrow card, bars or a table as the card body, a foot line --- */
.ft-mock.ft-mock--narrow { max-width: 560px; }
.ft-mock > .ft-bars, .ft-mock > .ft-table, .ft-mock > .ft-code { max-width: none; border: 0; border-radius: 0; }
.ft-mock > .ft-table { padding: 0; }
.ft-mock > .ft-table table { min-width: 0; }
.ft-mock__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 16px; }
.an .ft-mock .ft-mock__foot { font-size: 13px; color: #4B5160; background: #F7F8FC; }
.ft-mock__foot b { font-size: 14px; color: #0F172A; font-variant-numeric: tabular-nums; }
.an .ft-mock .ft-mock__alert { background: #FEF2F2; border-left: 4px solid #DC2626; color: #7F1D1D; }
.ft-mock__alert b { display: block; color: #991B1B; }
.ft-key { display: inline-block; width: 10px; height: 10px; margin: 0 6px 0 0; border-radius: 3px; background: #2233FF; vertical-align: -1px; }
.ft-key + .ft-key { margin-left: 12px; }
.ft-key--alt { background: #10B981; }
/* Table extras: right-aligned numbers, a bold total row, an svg icon beside a name */
.ft-table .ft-num { text-align: right; font-variant-numeric: tabular-nums; }
.ft-table tr.ft-table__total > * { background: #F7F8FC; font-weight: var(--font-weight-bold); }
.ft-table__plat > .ft-table__ic { width: 18px; height: 18px; margin-top: 3px; flex: none; color: #4B5160; }

/* --- Summary strip, reason chips, mock buttons --- */
.ft-mock > .ft-strip { display: flex; flex-wrap: wrap; gap: 10px 26px; background: #F7F8FC; }
.ft-strip > div { min-width: 0; }
.ft-strip dt { font-size: 11px; font-weight: var(--font-weight-bold); letter-spacing: 0.06em; text-transform: uppercase; color: #4B5160; }
.ft-strip dd { margin: 2px 0 0; font-size: 14px; font-weight: var(--font-weight-bold); color: #0F172A; overflow-wrap: anywhere; }
.ft-chips { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ft-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 6px; background: #F3F4F6; color: #0F172A; font-size: 13px; line-height: 1.4; }
.ft-chips li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #10B981; flex: none; }
.ft-chips li.ft-chips__weak::before { background: #F59E0B; }
.ft-btns { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.ft-btn { display: inline-block; padding: 5px 12px; border: 1px solid #D5DAEB; border-radius: 8px; background: #FFFFFF; color: #0F172A; font-size: 13px; font-weight: var(--font-weight-semibold); white-space: nowrap; }
.ft-btn--primary { background: #0F172A; border-color: #0F172A; color: #FFFFFF; }

/* --- AI chat inside a mock: question bubble right, tool chip, answer left --- */
.ft-mock > .ft-chat { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-block: 18px; }
.an .ft-mock .ft-chat__q { align-self: flex-end; max-width: 85%; padding: 9px 14px; border-radius: 16px 16px 4px 16px; background: #EEF1FF; color: #0F172A; font-size: 15px; }
.an .ft-mock .ft-chat__tool { display: inline-flex; flex-wrap: wrap; gap: 0 6px; max-width: 100%; padding: 4px 10px; border: 1px solid #E5E7EB; border-radius: 8px; background: #F7F8FC; color: #4B5160; font-size: 12.5px; line-height: 1.5; }
.ft-chat__tool b { font-family: var(--font-family-mono); font-weight: 600; color: #2945E6; overflow-wrap: anywhere; }
.an .ft-mock .ft-chat__a { max-width: 95%; color: #0F172A; font-size: 15px; line-height: 1.6; }
.ft-chat__a b { color: #0F172A; }

/* --- Buyer path (.an-path) with any number of columns, desktop only (its own breakpoint is 760px) --- */
@media (min-width: 761px) {
  .ft-path .an-path__steps, .ft-path .an-path__credit { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .ft-path .an-path__steps::before { left: calc(50% / var(--n, 5)); right: calc(50% / var(--n, 5)); }
}

/* --- Wide replica wrapper --- */
.ft-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* Allowed-events fork in a half-width column: as many checkbox columns as fit */
.an .widget--mock.mock-tm-fb-pixel-allowed-events .mock-tm-fb-pixel-allowed-events__grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)) !important; }

/* Revenue fork KPIs 2-up on phones: shrink the value so $44,005.00 fits its card */
@media (max-width: 768px) {
  .an .widget--mock.mock-tm-rev-overview .dd-kpi .dd-v { font-size: 18px !important; }
}

/* Phones: long campaign IDs in the upstream-paths fork wrap instead of running into the Visits column */
@media (max-width: 768px) {
  .an .widget--mock.mock-leads .leads-path { grid-template-columns: minmax(0, 1fr) 44px 56px !important; gap: 8px !important; }
  .an .widget--mock.mock-leads .leads-seg { min-width: 0 !important; overflow-wrap: anywhere !important; }
}

/* Phones: the duration fork's four columns fit the card instead of hiding the medians behind a scroll */
@media (max-width: 768px) {
  .an .widget--mock.mock-tm-rev-duration .rd-scroll { overflow-x: auto !important; }
  .an .widget--mock.mock-tm-rev-duration .rd-table { min-width: 0 !important; font-size: 12px !important; }
  .an .widget--mock.mock-tm-rev-duration .rd-table th,
  .an .widget--mock.mock-tm-rev-duration .rd-table td { padding: 10px 8px !important; white-space: normal !important; }
  .an .widget--mock.mock-tm-rev-duration .rd-chev { display: none !important; }
  .an .widget--mock.mock-tm-rev-duration .rd-cellval,
  .an .widget--mock.mock-tm-rev-duration .rd-dur { white-space: nowrap !important; }
}

/* Phones: the Converts to fork's five columns fit the card (no 260px picker, no info icons, values on one line) */
@media (max-width: 768px) {
  .an .widget--mock.mock-leads-converts .leads-inner { padding: 0 !important; }
  .an .widget--mock.mock-leads-converts .leads-card { padding: 14px !important; margin-bottom: 0 !important; }
  .an .widget--mock.mock-leads-converts .leads-converts__head { flex-wrap: wrap !important; }
  .an .widget--mock.mock-leads-converts .leads-converts__sel { min-width: 0 !important; }
  .an .widget--mock.mock-leads-converts .leads-ct__row { grid-template-columns: minmax(0, 1.25fr) repeat(4, minmax(0, 1fr)) !important; gap: 6px !important; font-size: 13px !important; }
  .an .widget--mock.mock-leads-converts .leads-ct__row--head span { font-size: 10px !important; }
  .an .widget--mock.mock-leads-converts .leads-ct__row:not(.leads-ct__row--head) span { white-space: nowrap !important; }
  .an .widget--mock.mock-leads-converts .leads-ct .leads-i { display: none !important; }
}

/* Phones: the Import data fork (tm-import-data) stacks its header above Import into,
   and its Past imports table scrolls inside its own box instead of squeezing seven columns */
@media (max-width: 768px) {
  .an .widget--mock.mock-tm-import-data .mock-tm-id__inner { padding: 10px !important; }
  .an .widget--mock.mock-tm-import-data .mock-tm-id__card { padding: 14px !important; }
  .an .widget--mock.mock-tm-import-data .mock-tm-id__head { flex-direction: column !important; gap: 10px !important; }
  .an .widget--mock.mock-tm-import-data .mock-tm-id__ptitle { flex-wrap: wrap !important; gap: 6px !important; }
  .an .widget--mock.mock-tm-import-data .mock-tm-id__table { overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
  .an .widget--mock.mock-tm-import-data .mock-tm-id__row { min-width: 680px !important; }
}

/* A browser frame inside a tab panel: the panel already sits in .an-wide, so no extra side margin */
.ft-tabs__panel > .an-frame { margin: 0 auto; }
/* A dashboard replica inside a tab panel (wrapped in .an-widget-wide): as wide as an .ft-mock, so tabs keep one width */
.ft-tabs__panel > .an-widget-wide { max-width: 760px; margin: 0 auto; }

/* Extension overlay forks (tm-ext-overlay / tm-ext-google): scroll inside the frame on phones,
   a Campaign column wide enough for the names, a "Live" label */
.an .widget--mock.mock-tm-ext-overlay, .an .widget--mock.mock-tm-ext-google { min-width: 860px !important; }
.an .widget--mock.mock-tm-ext-overlay .mock-tm-xfb__ad, .an .widget--mock.mock-tm-ext-google .mock-tm-xg__ad { flex-basis: 200px !important; }
.an .mock-tmext .tmx-bar__live { margin-left: -2px; font-weight: 600; color: #34D399; }
/* Open-dropdown forks (tm-ext-attribution / -audience / -columns): the chip label stays on one line in a narrow card */
.an .widget--mock.mock-tm-ext-dd .mock-tm-xdd__chip { white-space: nowrap !important; }

/* Funnel forks (tm-funnel-*): the amber "Uneven split" chip next to the blue A/B chip */
.an .widget--mock.mock-fnl .fnl-abbadge--warn { background: #FEF3C7 !important; color: #B45309 !important; }
/* Phones: funnel forks stack (KPIs one per row, counts above the bars, variant numbers under the label),
   the step header and the A/B chips wrap, and the empty preview pane of the create dialog is dropped */
@media (max-width: 768px) {
  .an .widget--mock.mock-fnl .fnl-res, .an .widget--mock.mock-fnl .fnl-create { padding: 14px !important; }
  .an .widget--mock.mock-fnl .fnl-res__name { flex-basis: 100% !important; }
  .an .widget--mock.mock-fnl .fnl-res__icons { display: none !important; }
  .an .widget--mock.mock-fnl .fnl-kpis { grid-template-columns: 1fr !important; gap: 8px !important; }
  .an .widget--mock.mock-fnl .fnl-kpi { padding: 10px 12px !important; }
  .an .widget--mock.mock-fnl .fnl-kpi__v { font-size: 20px !important; }
  .an .widget--mock.mock-fnl .fnl-rstep__hd { flex-wrap: wrap !important; gap: 6px 8px !important; }
  .an .widget--mock.mock-fnl .fnl-rstep__bd { grid-template-columns: minmax(0, 1fr) !important; gap: 8px !important; }
  .an .widget--mock.mock-fnl .fnl-bars--rev { flex-wrap: wrap !important; }
  .an .widget--mock.mock-fnl .fnl-bars__stack { flex-basis: 100% !important; }
  .an .widget--mock.mock-fnl .fnl-bar__pct { font-size: 12px !important; }
  .an .widget--mock.mock-fnl .fnl-vargroup { margin-left: 0 !important; padding-left: 10px !important; }
  .an .widget--mock.mock-fnl .fnl-varrow { flex-wrap: wrap !important; gap: 4px 12px !important; padding: 8px 10px !important; }
  .an .widget--mock.mock-fnl .fnl-varmet { justify-content: flex-start !important; gap: 4px 10px !important; }
  .an .widget--mock.mock-fnl .fnl-create__body { grid-template-columns: minmax(0, 1fr) !important; }
  .an .widget--mock.mock-fnl .fnl-create__preview { display: none !important; }
}

/* Phones: the cross-domain settings fork (tm-cross-domain) keeps its title beside the icon
   and drops the "Open the setup guide" link to its own line under it */
@media (max-width: 768px) {
  .an .widget--mock.mock-tm-xdomain .mock-tm-xdomain__inner { padding: 16px !important; }
  .an .widget--mock.mock-tm-xdomain .mock-tm-xdomain__head { flex-wrap: wrap !important; row-gap: 6px !important; }
  .an .widget--mock.mock-tm-xdomain .mock-tm-xdomain__headtext { flex: 1 1 calc(100% - 46px) !important; }
  .an .widget--mock.mock-tm-xdomain .mock-tm-xdomain__guide { margin-left: 46px !important; }
}

/* Phones: the Platform health forks fit a phone instead of clipping at the frame edge.
   tm-platform-health: tighter padding, smaller KPIs, and the per-event table drops its
   Success rate column (the platform tabs already show the rate). */
@media (max-width: 768px) {
  .an .widget--mock.mock-tm-plat-health .mock-tm-ph__inner,
  .an .widget--mock.mock-tm-plat-health .mock-tm-ph__card { padding: 10px !important; }
  .an .widget--mock.mock-tm-plat-health .mock-tm-ph__topbar { flex-wrap: wrap !important; }
  .an .widget--mock.mock-tm-plat-health .mock-tm-ph__kpis { gap: 8px !important; }
  .an .widget--mock.mock-tm-plat-health .mock-tm-ph__kpi { padding: 10px !important; gap: 4px !important; }
  .an .widget--mock.mock-tm-plat-health .mock-tm-ph__kpilabel { font-size: 11px !important; }
  .an .widget--mock.mock-tm-plat-health .mock-tm-ph__kpival { font-size: 18px !important; }
  .an .widget--mock.mock-tm-plat-health .mock-tm-ph__c { font-size: 12px !important; }
  .an .widget--mock.mock-tm-plat-health .mock-tm-ph__row--head .mock-tm-ph__c { font-size: 10px !important; }
  .an .widget--mock.mock-tm-plat-health .mock-tm-ph__c--ev { overflow-wrap: anywhere !important; }
  .an .widget--mock.mock-tm-plat-health .mock-tm-ph__c--num:nth-child(2) { flex-basis: 34px !important; }
  .an .widget--mock.mock-tm-plat-health .mock-tm-ph__c--num:nth-child(3) { flex-basis: 56px !important; }
  .an .widget--mock.mock-tm-plat-health .mock-tm-ph__c--num:nth-child(4) { flex-basis: 40px !important; }
  .an .widget--mock.mock-tm-plat-health .mock-tm-ph__c--rate { display: none !important; }
}
/* Phones: Meta data safety forks (tm-meta-data-safety, -states, -auto-clean-dialog): the header and
   buttons wrap, page addresses wrap instead of running off the card, the dialog's two lists stack */
@media (max-width: 768px) {
  .an .widget--mock.mock-tmmds .mds__card { padding: 14px !important; }
  .an .widget--mock.mock-tmmds .mds__alert { padding: 12px !important; }
  .an .widget--mock.mock-tmmds .mds__head, .an .widget--mock.mock-tmmds .mds__title { flex-wrap: wrap !important; }
  .an .widget--mock.mock-tmmds .mds__title { font-size: 17px !important; }
  .an .widget--mock.mock-tmmds .mds__addr > div { gap: 8px !important; }
  .an .widget--mock.mock-tmmds .mds__cnt { width: 72px !important; white-space: nowrap !important; }
  .an .widget--mock.mock-tmmds .mds__url { min-width: 0 !important; white-space: normal !important; overflow-wrap: anywhere !important; }
  .an .widget--mock.mock-tmmds .mds__btn { height: auto !important; min-height: 34px !important; white-space: normal !important; }
  .an .widget--mock.mock-tmmds .mds__cols { grid-template-columns: minmax(0, 1fr) !important; }
}
/* Phones: the Paid traffic fork (tm-paid-traffic): KPIs one per row and the controls wrap;
   its per-event table keeps scrolling inside its card */
@media (max-width: 768px) {
  .an .widget--mock.mock-tm-paid-traffic .mock-tm-pt__inner { padding: 12px !important; }
  .an .widget--mock.mock-tm-paid-traffic .mock-tm-pt__controls { flex-wrap: wrap !important; flex-shrink: 1 !important; }
  .an .widget--mock.mock-tm-paid-traffic .mock-tm-pt__kpis { grid-template-columns: minmax(0, 1fr) !important; gap: 8px !important; }
  .an .widget--mock.mock-tm-paid-traffic .mock-tm-pt__card--table { overflow-x: auto !important; }
}

/* Install chips (analytics.css .an-platforms): wrap into two even rows */
.an-platforms { max-width: 780px; margin-inline: auto; }

/* --- Motion --- */
.ft-pulse { animation: ft-pulse .9s ease-out var(--d, 0s) both; }
@keyframes ft-pulse {
  0%   { opacity: .35; box-shadow: 0 0 0 0 rgba(16, 185, 129, .45); }
  60%  { opacity: 1;   box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { opacity: 1;   box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.ft-flip {
  display: inline-block;
  max-width: 100%;
  padding-inline: 0;
  overflow: hidden;
  vertical-align: bottom;
  white-space: nowrap;
  animation: ft-flip 7s ease-in-out infinite;
}
@keyframes ft-flip {
  0%, 40%   { opacity: 1; max-width: 100%; }
  55%       { opacity: 0; max-width: 100%; }
  65%, 92%  { opacity: 0; max-width: 0; }
  100%      { opacity: 1; max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .ft-pulse, .ft-flip, [data-bar] i, .ft-tabs > label, .ft-related a { animation: none; transition: none; }
  [data-bar] i { width: var(--w); }
  .ft-flip { display: none; }
}
