/* The phone app (Round 168). Every colour and size is a token; shared rules with the site are the tokens themselves, not its stylesheet. */
@font-face { font-family: Inter; src: url(/wp-content/themes/hychem-flooring/assets/fonts/inter-latin-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }

/* iOS sets this size from the phone's text-size setting; rem then scales everything */
html { font: -apple-system-body; font-family: var(--hf-font-family-sans), system-ui, sans-serif; -webkit-text-size-adjust: 100%; }
@supports not (font: -apple-system-body) { html { font-size: var(--hf-font-size-body); } }
* { box-sizing: border-box; }
:root { --app-inset: env(safe-area-inset-top, 0px); --app-top: calc(var(--app-inset) + var(--hf-component-app-top-gap)); }
/* round 222 (Gabriel): one top on every screen; every screen starts --app-top below the top. Never pad a screen's top by hand.
   round 223: the solid strip is a real fixed element (.status-band, first in <body>, router.php) reaching 8px below the status bar.
   iOS 26 blurs the top of the page unless it finds a fixed header just below the status bar; a pseudo-element that stopped at the
   safe area (round 222) wasn't found, so the logo row stayed soft. */
.status-band { position: fixed; top: 0; left: 0; right: 0; z-index: 3; height: var(--app-top); background: var(--hf-component-app-page); pointer-events: none; }
body { margin: 0; min-height: 100dvh; background: var(--hf-component-app-page); color: var(--hf-color-text-body); font-size: var(--hf-component-app-text-body); line-height: 1.5; font-feature-settings: 'tnum' 1; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ul, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--hf-color-action-focus); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.view { padding-top: var(--app-top); /* round 222: the shared top (round 184's +16px gone) */ padding-bottom: calc(var(--hf-component-app-tab-height) + max(env(safe-area-inset-bottom), var(--hf-component-app-float-inset)) + var(--hf-space-6)); }
.view:focus { outline: none; }
[tabindex='-1']:focus { outline: none; }

/* top bars */
.bar { min-height: var(--hf-component-app-top-bar-height); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--hf-space-4); }
.bar__logo { display: block; width: var(--hf-component-app-bar-logo-width); height: auto; }
.bar__acts { display: flex; gap: var(--hf-space-2); } /* round 221: How the app works, then Settings */
.bar__btn { width: var(--hf-component-control-height); height: var(--hf-component-control-height); display: grid; place-items: center; background: var(--hf-component-app-surface); box-shadow: inset 0 0 0 1px var(--hf-component-app-card-border); border-radius: 50%; color: var(--hf-color-icon-default); }
.bar__btn--tour { background: var(--hf-color-action-primary); box-shadow: none; color: var(--hf-color-text-inverse); }
.bar__btn--tour:active { background: var(--hf-color-action-primary-hover); }
.back { min-height: var(--hf-component-control-height); display: inline-flex; align-items: center; gap: var(--hf-space-1); margin: var(--hf-space-1) 0 0 var(--hf-space-2); padding-right: var(--hf-space-3); color: var(--hf-color-text-link); font-size: var(--hf-component-app-text-nav); font-weight: var(--hf-font-weight-medium); }
/* Round 262 (Gabriel): one heading scale on every screen. One h1 per screen at text-h1 (32px); every section heading an h2 at text-h2 (19px);
   a heading inside a section an h3 at text-h3 (17px semibold). A sheet's title is text-sheet-title, numbers are text-figure / text-display. */
.home-title { padding: var(--hf-space-3) var(--hf-space-4) 0; font-size: var(--hf-component-app-text-h1); font-weight: var(--hf-font-weight-medium); letter-spacing: var(--hf-font-letterspacing-h1); line-height: 1.15; color: var(--hf-color-text-heading); } /* round 184: above Home's period; round 262: the h1 size, like every screen's title */
.title { padding: var(--hf-space-3) var(--hf-space-4) var(--hf-space-2); font-size: var(--hf-component-app-text-h1); font-weight: var(--hf-font-weight-medium); letter-spacing: var(--hf-font-letterspacing-h1); line-height: 1.15; color: var(--hf-color-text-heading); }

.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon--sm { width: 20px; height: 20px; }

/* the period: one joined control on every screen */
/* round 180: iOS's segmented control, 32px to the eye, 44px to the finger; round 203: the track on the highlighted sand, the chosen period solid blue */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; min-height: var(--hf-component-app-seg-height); margin: var(--hf-space-3) var(--hf-space-4) var(--hf-space-2); padding: calc(var(--hf-space-1) / 2); background: var(--hf-component-app-surface-quiet); border-radius: var(--hf-component-app-pill); }
.seg__opt { position: relative; padding: 0 var(--hf-space-2); border-radius: var(--hf-component-app-pill); font-size: var(--hf-component-app-text-small); font-weight: var(--hf-font-weight-medium); color: var(--hf-color-text-body); }
.seg__opt::after { content: ''; position: absolute; inset: calc((var(--hf-component-app-seg-height) - var(--hf-component-control-height)) / 2 - var(--hf-space-1) / 2) 0; } /* the option sits 2px inside the track */
.seg__opt[aria-pressed='true'] { background: var(--hf-component-app-seg-thumb); box-shadow: var(--hf-component-app-seg-thumb-shadow); color: var(--hf-component-app-seg-thumb-text); } /* round 183: solid blue, white text */
.seg__opt[aria-pressed='true']:focus-visible { outline-color: var(--hf-component-app-seg-thumb-text); }
/* tap feedback, before the redraw (round 178) */
.seg__opt:active:not([aria-pressed='true']), .area:active { background: var(--hf-component-app-tab-active); }
.seg__opt:focus-visible { outline-offset: -4px; }

/* Insights: the areas, equal-width tabs on a rule. The rule is on the outer element, because the scrolling row clips anything that overlaps it: the current tab's line sits exactly on it. */
.areas { position: relative; box-shadow: inset 0 -1px 0 var(--hf-color-border-rule); }
.areas__row { overflow-x: auto; overscroll-behavior-x: none; scrollbar-width: none; } /* round 212: no rubber band at either end */
.areas__row::-webkit-scrollbar { display: none; }
.areas__list { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; width: max-content; min-width: 100%; }
.area { min-height: var(--hf-component-app-area-height); padding: 0 var(--hf-space-3); display: flex; align-items: center; justify-content: center; border-bottom: var(--hf-component-app-tab-line) solid transparent; font-size: var(--hf-component-app-text-caption); font-weight: var(--hf-font-weight-medium); color: var(--hf-color-text-muted); white-space: nowrap; }
.area[aria-current='page'] { color: var(--hf-component-app-area-active); border-bottom-color: var(--hf-component-app-area-active); }
/* when they can't all fit: an arrow on the side that has more, over the end of the row */
.areas__more { position: absolute; top: 0; bottom: 1px; width: var(--hf-component-control-height); display: grid; place-items: center; color: var(--hf-color-action-primary); }
.areas__more[hidden] { display: none; }
.areas__more--right { right: 0; background: linear-gradient(to right, transparent, var(--hf-component-app-page) 40%); justify-items: end; padding-right: var(--hf-space-2); }
.areas__more--left { left: 0; background: linear-gradient(to left, transparent, var(--hf-component-app-page) 40%); justify-items: start; padding-left: var(--hf-space-2); }

/* the figure and chart; on Home they share a tile */
.lead { margin: var(--hf-space-2) var(--hf-space-4) 0; padding-bottom: var(--hf-space-3); background: var(--hf-component-app-lead-bg); border-radius: var(--hf-radius-medium); color: var(--hf-component-app-lead-fg); }
/* round 203 (Gabriel): Home's Leads card is the app's one dark card, the website's call-to-action band: white figures, blue bars, light grey labels */
.lead .figure__n, .lead .figure__note { color: var(--hf-component-app-lead-fg); }
.lead .figure__label, .lead .figure__trend, .lead .axis { color: var(--hf-component-app-lead-muted); }
.lead .chart i { background-color: var(--hf-component-app-lead-bar); }
.lead .chart i.is-zero, .lead .chart.is-picking i:not(.is-on):not(.is-zero) { background-color: var(--hf-component-app-lead-bar-faded); }
.lead .chart i.is-zero.is-on { background-color: var(--hf-component-app-lead-bar); }
.lead :focus-visible { outline-color: var(--hf-component-app-lead-fg); }
.lead .sk { background-color: var(--hf-component-app-lead-skeleton); background-image: none; }
/* round 204: Insights' figures on the same charcoal card: the total, then its tiles one step lighter */
.lead--figures { padding-bottom: var(--hf-space-4); }
.lead .stat { background: var(--hf-component-app-lead-tile); }
.lead .stat b { color: var(--hf-component-app-lead-fg); }
.lead .stat span, .lead .stat b.is-none, .lead .figure__n.is-none { color: var(--hf-component-app-lead-muted); }
.lead .pill { background: var(--hf-component-app-lead-tile); color: var(--hf-component-app-lead-fg); }
.lead .pill__dot { background: var(--hf-component-app-lead-bar); }
/* round 206 (Gabriel): each tile's icon in the chart bars' blue; the period's daily bars under the big number where the site keeps daily figures */
/* round 243: figures that switch the chart (TikTok's viewers card): buttons that look like the other tiles, the chosen one outlined in the bars' blue */
/* round 256 (Gabriel: the tiles that switch the chart looked like the read-only tiles under them): the figures that pick the chart are the
   standard 7 / 30 / 60 control on charcoal, labels only (second pass: same height as the period control); the chosen figure is the big number
   under it; every tile on a card is read-only */
.lead .seg--metric { margin: var(--hf-space-3) var(--hf-space-4) 0; background: var(--hf-component-app-lead-tile); }
.seg--metric .seg__opt { border: 0; font: inherit; font-size: var(--hf-component-app-text-small); font-weight: var(--hf-font-weight-medium); color: var(--hf-component-app-lead-fg); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.seg--metric .seg__opt[disabled] { cursor: default; color: var(--hf-component-app-lead-muted); }
.seg--metric .seg__opt:active:not([aria-pressed='true']):not([disabled]) { background: var(--hf-component-app-lead-bg); }
.figure--metric { padding-top: var(--hf-space-2); }
.stat__sub { display: block; font-size: var(--hf-component-app-text-caption); }
.lead .stat .stat__sub { margin-top: 0; color: var(--hf-component-app-lead-muted); }
.chart--ease i { transition: height var(--hf-motion-base) var(--hf-motion-ease-out); }
@media (prefers-reduced-motion: reduce) { .chart--ease i { transition: none; } }
.chips--list { padding-top: 0; }
.lead .stat .stat__icon { display: block; margin-bottom: var(--hf-space-2); color: var(--hf-component-app-lead-bar); }
.figure__chart .chart { height: var(--hf-component-app-figure-chart); margin-top: var(--hf-space-1); padding: 0; }
.sk--chart { height: var(--hf-component-app-figure-chart); padding: 0; margin-top: var(--hf-space-1); }
.sk--icon { width: 20px; height: 20px; padding: 0; }
.figure { padding: var(--hf-space-3) var(--hf-space-4) 0; }
/* round 245: the date row with "× All 7 days" on its right while a bar is pinned; its height is kept, so the button never moves the number */
.figure__head { display: flex; align-items: center; justify-content: space-between; gap: var(--hf-space-2); min-height: var(--hf-component-app-control-height-small); }
.figure__head .figure__label { flex: 1; min-width: 0; }
.chart-clear { position: relative; flex: none; display: inline-flex; align-items: center; gap: var(--hf-space-1); min-height: var(--hf-component-app-control-height-small); padding: 0 var(--hf-space-3); border: 0; border-radius: var(--hf-component-app-pill); background: var(--hf-component-app-btn-tertiary); color: var(--hf-component-app-btn-tertiary-fg); font-size: var(--hf-component-app-text-small); font-weight: var(--hf-font-weight-medium); white-space: nowrap; }
.chart-clear::after { content: ''; position: absolute; inset: calc((var(--hf-component-app-control-height-small) - var(--hf-component-control-height)) / 2) 0; } /* 32px to the eye, 44px to the finger */
.chart-clear[hidden] { display: none; }
.lead .chart-clear { background: var(--hf-component-app-lead-tile); color: var(--hf-component-app-lead-fg); }
.lead .chart-clear:active { background: var(--hf-component-app-lead-bg); }
.figure__label { font-size: var(--hf-component-app-text-small); font-weight: var(--hf-font-weight-regular); color: var(--hf-color-text-muted); }
.figure__n { font-size: var(--hf-component-app-text-display); font-weight: var(--hf-font-weight-regular); letter-spacing: var(--hf-font-letterspacing-display); line-height: 1; color: var(--hf-color-text-heading); margin: var(--hf-space-1) 0 var(--hf-space-2); }
.figure__note { min-height: 1lh; font-size: var(--hf-component-app-text-nav); }
.figure__note.is-empty { visibility: hidden; }
.figure__trend { font-size: var(--hf-component-app-text-small); color: var(--hf-color-text-muted); }
.figure__trend.is-empty { visibility: hidden; } /* round 183: Home's line for a picked day's split keeps its room */
/* round 258 (Gabriel, after Vanguard's pill): a period's total against the period before — the pill, then "vs previous 7 days" in the card's muted text */
.figure__trend:has(.trend) { display: flex; flex-wrap: wrap; align-items: center; gap: var(--hf-space-1) var(--hf-space-2); margin: 0 0 var(--hf-space-2); line-height: 1.4; } /* one line box: the pill's height, which the loading placeholder keeps (.sk--trend) */
.trend { display: inline-flex; align-items: center; gap: var(--hf-space-1); padding: calc(var(--hf-space-1) / 2) var(--hf-space-2); border-radius: var(--hf-component-app-pill); font-size: var(--hf-component-app-text-small); font-weight: var(--hf-font-weight-medium); line-height: 1.4; font-variant-numeric: tabular-nums; white-space: nowrap; }
.trend__arrow { font-size: 0.75em; }
.trend--up { background: var(--hf-component-app-trend-up-bg); color: var(--hf-component-app-trend-up-fg); }
.trend--down { background: var(--hf-component-app-trend-down-bg); color: var(--hf-component-app-trend-down-fg); }
.trend--same { background: var(--hf-component-app-trend-same-bg); color: var(--hf-component-app-trend-same-fg); }
.trend__vs { font-size: var(--hf-component-app-text-small); color: var(--hf-component-app-lead-muted); }
.figure__trendbox { min-height: calc(var(--hf-component-app-text-small) * 1.4 + var(--hf-space-1) + var(--hf-space-2)); } /* the pill's room on Google's cards, kept while a day is shown or the other figure has none */
.figure__trendbox.is-empty > * { visibility: hidden; }
.figure__trend--sk { display: flex; margin: 0 0 var(--hf-space-2); }
/* round 259 (Gabriel): the pill's small form on a tile or a line — the arrow and the change, green / red / grey text, no % */
.tick { margin-left: var(--hf-space-1); font-size: var(--hf-component-app-text-small); font-weight: var(--hf-font-weight-medium); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lead .stat .tick, .lead .stat .tick span { display: inline; margin-top: 0; font-size: var(--hf-component-app-text-small); color: inherit; } /* inside a tile: not the label's block line or its grey (.lead .stat span) */
.lead .stat .tick { margin-left: var(--hf-space-1); }
.tick--up, .lead .stat .tick--up { color: var(--hf-component-app-tick-up); }
.tick--down, .lead .stat .tick--down { color: var(--hf-component-app-tick-down); }
.tick--same, .lead .stat .tick--same { color: var(--hf-component-app-tick-same); }
/* round 259: on Google's cards, until a fair comparison exists, when it starts — quiet text in the pill's place */
.figure__trend--later { margin: 0 0 var(--hf-space-2); line-height: 1.4; padding-block: calc(var(--hf-space-1) / 2); }
.figure__trend--sk .sk--trend { display: block; height: calc(var(--hf-component-app-text-small) * 1.4 + var(--hf-space-1)); border-radius: var(--hf-component-app-pill); }
.lead .chart { margin-top: var(--hf-space-3); } /* the note line sits above it now */
/* round 248 (Gabriel): the way to Insights → Leads is the Leads card's own foot, under a hairline (the Lead details row went) */
.lead__more { display: flex; align-items: center; gap: var(--hf-space-3); margin: var(--hf-space-3) 0 calc(var(--hf-space-3) * -1); padding: var(--hf-space-3) var(--hf-space-4); border-radius: 0 0 var(--hf-radius-medium) var(--hf-radius-medium); border-top: 1px solid var(--hf-component-app-lead-tile); color: var(--hf-component-app-lead-fg); }
.lead__more-text { flex: 1; min-width: 0; }
.lead__more-title { display: block; font-size: var(--hf-component-app-text-body); font-weight: var(--hf-font-weight-medium); color: var(--hf-component-app-lead-fg); }
.lead__more-line { display: block; font-size: var(--hf-component-app-text-small); color: var(--hf-component-app-lead-muted); }
.lead__more .tile__chev { color: var(--hf-component-app-lead-muted); }
a.lead__more:active { background: var(--hf-component-app-lead-tile); }
.chart { display: flex; align-items: flex-end; gap: var(--hf-component-app-chart-gap); height: var(--hf-component-app-chart-height); margin-top: var(--hf-space-5); padding: 0 var(--hf-space-4); }
.chart--dense { gap: 2px; }
.chart i { flex: 1; display: block; min-height: 2px; background-color: var(--hf-color-action-primary); }
.chart i.is-zero { background-color: var(--hf-color-border-rule); }
/* round 183–184: hold or drag to read a day (home.js → pickable); vertical swipes still scroll the page */
.chart[role='slider'] { touch-action: pan-y; cursor: pointer; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.chart[role='slider']:focus-visible { outline-offset: var(--hf-space-1); }
.chart.is-picking i:not(.is-on):not(.is-zero) { background-color: var(--hf-component-app-chart-faded); }
.chart i.is-zero.is-on { background-color: var(--hf-color-action-primary); }
.axis { display: flex; justify-content: space-between; padding: var(--hf-space-1) var(--hf-space-4) 0; font-size: var(--hf-component-app-text-caption); color: var(--hf-color-text-muted); }

/* tiles: white cards on the sand page (round 203). Home's four open their detail in Insights (round 185: icon top left above the number, label and chevron on the bottom row); Insights' own tiles stay plain */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--hf-space-2); margin: var(--hf-space-2) var(--hf-space-4) 0; }
.tile { position: relative; padding: var(--hf-space-3) var(--hf-space-4); background: var(--hf-component-app-surface); border-radius: var(--hf-radius-medium); }
/* round 181: a small line icon in the corner of Home's four tiles (line, not the nav's two-tone) */
.tile__label { display: flex; align-items: center; justify-content: space-between; gap: var(--hf-space-1); }
.tile .tile__label { font-size: var(--hf-component-app-text-small); color: var(--hf-color-text-muted); }
.tile__icon { display: block; margin-bottom: var(--hf-space-2); color: var(--hf-color-icon-default); }
.tile__chev { flex: none; color: var(--hf-color-icon-default); }
.tile--link { display: block; color: inherit; }
.tile--link:active { background: var(--hf-component-app-tab-active); }
.tile b { display: block; font-size: var(--hf-component-app-text-figure); font-weight: var(--hf-font-weight-medium); line-height: 1.2; color: var(--hf-color-text-heading); }
.tile span { font-size: var(--hf-component-app-text-small); color: var(--hf-color-text-muted); }
.tiles--odd .tile:last-child { grid-column: 1 / -1; }
/* round 246, second pass (Gabriel: shorter full-width tiles; Spotify for Creators, Reddit insights rows): a wide tile is one row —
   icon, title over its line, the number on the right, the chevron. Same surfaces as the other tiles (.tile--dark for charcoal). */
.tile--row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; column-gap: var(--hf-space-3); }
.tile--row .tile__icon { margin: 0; }
.tile--row .tile__text { min-width: 0; }
.tile--row .tile__title { display: flex; align-items: center; gap: var(--hf-space-2); font-size: var(--hf-component-app-text-body); font-weight: var(--hf-font-weight-medium); color: var(--hf-color-text-heading); }
.tile--row .tile__line { margin: 0; } /* a long line (Google still collecting) wraps rather than cutting off */
.tile--row b { text-align: right; }
.tile--row .tile__chev { margin-left: calc(var(--hf-space-1) * -1); }
.tile__line { display: block; margin: var(--hf-space-1) 0 var(--hf-space-2); } /* round 198: Visitors' line under its number */
/* round 191: read-only figures sit on the page, not on a card (cards are for what you tap): one row, split by thin rules */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: var(--hf-space-3) var(--hf-space-4) 0; }
.stats > .stat:last-child:nth-child(odd) { grid-column: 1 / -1; } /* round 206 (Gabriel): never more than two tiles in a row; an odd one out takes the full width */
.stats { gap: var(--hf-space-2); }
/* round 193 (Gabriel): the figures get a quiet surface, the enquiry tiles' light one, with no hairline or chevron, so they never read as something to tap */
.stat { padding: var(--hf-space-3) var(--hf-space-4); background: var(--hf-component-app-surface-quiet); border-radius: var(--hf-radius-medium); }
.stat b { display: block; font-size: var(--hf-component-app-text-figure); font-weight: var(--hf-font-weight-medium); line-height: 1.2; color: var(--hf-color-text-heading); }
.stat span { display: block; margin-top: var(--hf-space-1); font-size: var(--hf-component-app-text-small); color: var(--hf-color-text-muted); }

/* round 189: lists are modules. One sand card per list (the What's new card of round 182), 16px from the screen's edges, with round 188's hairline;
   rows are split by a line drawn from the text's left edge, never across the screen. ::after, because .enq uses ::before for its unread dot */
.card { margin: 0 var(--hf-space-4); background: var(--hf-component-app-surface); border-radius: var(--hf-radius-medium); overflow: hidden; }
.card + .card { margin-top: var(--hf-space-3); }
.card--top { margin-top: var(--hf-space-2); }
.row ~ .row, .fact ~ .fact, .news__item ~ .news__item { position: relative; }
.row ~ .row::after, .fact ~ .fact::after, .news__item ~ .news__item::after { content: ''; position: absolute; top: 0; right: 0; left: var(--hf-space-4); height: 1px; background: var(--hf-component-app-card-border); }

/* sections */
.sect { display: flex; align-items: baseline; justify-content: space-between; gap: var(--hf-space-3); padding: var(--hf-space-6) var(--hf-space-4) var(--hf-space-2); }
.sect h2 { font-size: var(--hf-component-app-text-h2); font-weight: var(--hf-font-weight-medium); letter-spacing: var(--hf-font-letterspacing-card); color: var(--hf-color-text-heading); }
/* Round 261 (Gabriel): Home in sections — a slim sand band edge to edge, then the heading; a line under it where the source could be mistaken (Site search, Google) */
.band { height: var(--hf-component-app-section-band-height); margin-top: var(--hf-space-6); background: var(--hf-component-app-section-band); }
.band + .sect { padding-top: var(--hf-space-4); }
.sect--stack { flex-direction: column; align-items: flex-start; gap: var(--hf-space-1); }
.sect__line { font-size: var(--hf-component-app-text-small); color: var(--hf-color-text-muted); }
.band ~ .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } /* a long top word stays inside its half (ellipsis), so a pair stays equal */
.tile--row .tile__line.tile__line--one { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tile__sub { display: block; margin-top: var(--hf-space-1); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--hf-component-app-text-small); }
.tile b .tick { vertical-align: middle; }
.tile--dark .tick.tick--up { color: var(--hf-component-app-tick-up); }
.tile--dark .tick.tick--down { color: var(--hf-component-app-tick-down); }
.tile--dark .tick.tick--same { color: var(--hf-component-app-tick-same); }
.sect a { min-height: var(--hf-component-control-height); margin: calc(var(--hf-space-3) * -1) 0; display: inline-flex; align-items: center; font-size: var(--hf-component-app-text-small); font-weight: var(--hf-font-weight-medium); color: var(--hf-color-text-link); }
.empty { padding: var(--hf-space-5) var(--hf-space-4); color: var(--hf-color-text-muted); font-size: var(--hf-component-app-text-nav); }

/* enquiry rows */
/* round 190: each enquiry its own tile (Gabriel, after Wise's Send again card), 8px apart like Home's number tiles */
.enqs { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--hf-space-2); margin: 0 var(--hf-space-4); }
.enq { position: relative; background: var(--hf-component-app-surface-light); border-radius: var(--hf-radius-medium); }
.enqs > .empty { padding-left: var(--hf-space-4); background: var(--hf-component-app-surface-light); border-radius: var(--hf-radius-medium); }
.enq__open { display: block; width: 100%; padding: var(--hf-space-4); border-radius: inherit; text-align: left; font: inherit; color: inherit; } /* round 226: the whole tile is one button that opens the enquiry's sheet */
.enq__open:active { background: var(--hf-component-app-tab-active); }
.enq__open:focus-visible { outline-offset: -2px; }
.enq__reason, .enq__msg { display: block; }
.enq__chev { color: var(--hf-color-text-muted); margin-left: calc(var(--hf-space-1) * -1); }
.enq__top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--hf-space-2); }
.enq__name { font-weight: var(--hf-font-weight-medium); color: var(--hf-color-text-heading); overflow-wrap: anywhere; }
.enq.is-new .enq__name { font-weight: var(--hf-font-weight-semibold); }
.enq__when { flex: none; display: inline-flex; align-items: center; gap: var(--hf-space-2); }
/* round 192: enquiry tiles are lighter than the figure tiles and end their top row with a chevron, as the rest of the tile opens the enquiry */
/* round 193: a new enquiry's blue New pill takes the time's place (no dot); the time shows again once it's seen */
.enq__new { padding: 1px var(--hf-space-2); background: var(--hf-component-app-new-bg); color: var(--hf-component-app-new); border-radius: var(--hf-component-app-pill); font-size: var(--hf-component-app-text-tab); font-weight: var(--hf-font-weight-semibold); }
.enq:not(.is-new) .enq__new, .enq.is-new time { display: none; }
.enq time { flex: none; font-size: var(--hf-component-app-text-caption); color: var(--hf-color-text-muted); }
.enq__reason { font-size: var(--hf-component-app-text-small); }
.enq__msg { font-size: var(--hf-component-app-text-small); color: var(--hf-color-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Round 220 (Gabriel): one button component. .btn is the shape only (a pill; ::after keeps the tap area at 44px); every button names
   its variant — primary (blue), secondary (charcoal), tertiary (light grey, muted) — and a size, large (40px, the default) or small
   (32px). The border stays the fill's colour so every variant is the same size. README → Phone app → Buttons. */
.btn { position: relative; flex: 1; white-space: nowrap; min-height: var(--hf-component-app-control-height); padding: 0 var(--hf-space-4); border-radius: var(--hf-component-app-pill); display: flex; align-items: center; justify-content: center; gap: var(--hf-space-2); border: 1px solid transparent; font-size: var(--hf-component-app-text-small); font-weight: var(--hf-font-weight-medium); }
.btn::after { content: ''; position: absolute; inset: calc((var(--hf-component-app-control-height) - var(--hf-component-control-height)) / 2 - 1px) -1px; } /* measured from inside the 1px border */
.btn--primary { background: var(--hf-component-app-btn-primary); border-color: var(--hf-component-app-btn-primary); color: var(--hf-component-app-btn-primary-fg); }
.btn--primary:active:not([disabled]) { background: var(--hf-component-app-btn-primary-pressed); border-color: var(--hf-component-app-btn-primary-pressed); }
.btn--secondary { background: var(--hf-component-app-btn-secondary); border-color: var(--hf-component-app-btn-secondary); color: var(--hf-component-app-btn-secondary-fg); }
.btn--secondary:active:not([disabled]) { background: var(--hf-component-app-btn-secondary-pressed); border-color: var(--hf-component-app-btn-secondary-pressed); }
.btn--tertiary { background: var(--hf-component-app-btn-tertiary); border-color: var(--hf-component-app-btn-tertiary); color: var(--hf-component-app-btn-tertiary-fg); }
.btn--tertiary:active:not([disabled]) { background: var(--hf-component-app-btn-tertiary-pressed); border-color: var(--hf-component-app-btn-tertiary-pressed); }
.btn--large { min-height: var(--hf-component-app-control-height); padding: 0 var(--hf-space-4); }
.btn--small { min-height: var(--hf-component-app-control-height-small); padding: 0 var(--hf-space-3); }
.btn--small::after { inset: calc((var(--hf-component-app-control-height-small) - var(--hf-component-control-height)) / 2 - 1px) -1px; }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: .5; }



/* round 205: the search runs the full width; under it a row of filter chips (Instacart, Viator), each opening a short sheet of choices */
.finders { padding: var(--hf-space-2) 0 0; }
.search { position: relative; display: block; margin: 0 var(--hf-space-4); }
.search > .icon { position: absolute; left: var(--hf-space-3); top: 50%; transform: translateY(-50%); color: var(--hf-color-text-muted); pointer-events: none; }
.search input { width: 100%; min-height: var(--hf-component-app-control-height); padding: 0 var(--hf-component-control-height) 0 calc(var(--hf-space-3) + 20px + var(--hf-space-2)); border: 1px solid var(--hf-color-border-strong); border-radius: var(--hf-component-app-pill); background: var(--hf-component-app-surface); font-size: var(--hf-component-app-text-body); appearance: none; }
.search input::-webkit-search-cancel-button { display: none; }
.search__clear { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: var(--hf-component-control-height); height: var(--hf-component-control-height); display: grid; place-items: center; color: var(--hf-color-text-muted); }
.search__clear[hidden] { display: none; }
.chips { display: flex; align-items: center; gap: var(--hf-space-2); overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; padding: var(--hf-space-3) var(--hf-space-4) var(--hf-space-2); } /* round 226: the chips' 44px tap areas fit inside the row, so it scrolls only sideways (it drifted up and down on iOS) */
.chips::-webkit-scrollbar { display: none; }
.chip { position: relative; flex: none; display: inline-flex; align-items: center; gap: var(--hf-space-1); min-height: var(--hf-component-app-control-height-small); padding: 0 var(--hf-space-3); border-radius: var(--hf-component-app-pill); background: var(--hf-component-app-surface); box-shadow: inset 0 0 0 1px var(--hf-color-border-rule); font-size: var(--hf-component-app-text-small); font-weight: var(--hf-font-weight-medium); color: var(--hf-color-text-heading); white-space: nowrap; }
.chip::after { content: ''; position: absolute; inset: calc((var(--hf-component-app-control-height-small) - var(--hf-component-control-height)) / 2) 0; } /* 32px to the eye, 44px to the finger */
.chip .icon { width: 16px; height: 16px; }
.chip[aria-pressed='true'], .chip.is-on { background: var(--hf-color-action-primary); box-shadow: none; color: var(--hf-color-text-inverse); }
.chip.is-on { padding: 0; }
.chip.is-on::after { content: none; } /* each of its two buttons has its own tap area */
.chip.is-on > button { position: relative; display: inline-flex; align-items: center; min-height: var(--hf-component-app-control-height-small); color: inherit; }
.chip.is-on > button:first-child { padding-left: var(--hf-space-3); }
.chip.is-on > button + button { width: var(--hf-component-app-control-height-small); justify-content: center; }
.chip.is-on > button::after { content: ''; position: absolute; inset: calc((var(--hf-component-app-control-height-small) - var(--hf-component-control-height)) / 2) 0; }
.chips__clear { flex: none; min-height: var(--hf-component-control-height); padding: 0 var(--hf-space-2); font-size: var(--hf-component-app-text-small); font-weight: var(--hf-font-weight-medium); color: var(--hf-color-text-link); }
.results { margin: var(--hf-space-2) var(--hf-space-4) var(--hf-space-3); font-size: var(--hf-component-app-text-small); color: var(--hf-color-text-muted); }
.choices { margin-top: var(--hf-space-3); }
.choice { width: 100%; min-height: 48px; display: flex; align-items: center; gap: var(--hf-space-3); text-align: left; box-shadow: inset 0 1px 0 var(--hf-component-app-card-border); }
.choice:first-child { box-shadow: none; }
.choice:active { background: var(--hf-component-app-tab-active); }
.choice__mark { flex: none; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--hf-color-border-strong); }
.choice[aria-checked='true'] .choice__mark { box-shadow: inset 0 0 0 2px var(--hf-color-action-primary), inset 0 0 0 6px var(--hf-component-app-surface), inset 0 0 0 10px var(--hf-color-action-primary); }
.choice__label { flex: 1; min-width: 0; color: var(--hf-color-text-heading); }
.choice__n { flex: none; font-size: var(--hf-component-app-text-small); color: var(--hf-color-text-muted); }
.choice[aria-disabled='true'] .choice__label { color: var(--hf-color-text-muted); }
.more { padding: var(--hf-space-4); }

/* enquiry detail */
.message { padding: var(--hf-space-4); white-space: pre-wrap; overflow-wrap: anywhere; }
.fact { padding: var(--hf-space-3) var(--hf-space-4); }
.fact dt { font-size: var(--hf-component-app-text-caption); color: var(--hf-color-text-muted); }
.fact dd { font-size: var(--hf-component-app-text-nav); overflow-wrap: anywhere; }
.fact a:not(.btn) { color: var(--hf-color-text-link); text-decoration: underline; text-underline-offset: 2px; }
/* round 216: Phone with Call, Email with Copy — the value wraps beside its small button, which never leaves the line */
/* round 216: a tile's More — the whole message, then the contact rows, inside the tile's own padding */
.sheet--enquiry .sheet__body { padding-bottom: var(--hf-space-4); }
/* round 227 (Gabriel, after Wise's sheets): a close circle at the top right, the same circle as Home's gear; it stays in view while the sheet scrolls */
.sheet__close { position: sticky; top: var(--hf-space-2); z-index: 2; display: grid; place-items: center; width: var(--hf-component-control-height); height: var(--hf-component-control-height); margin: 0 var(--hf-space-3) calc(var(--hf-component-control-height) * -1) auto; border-radius: 50%; background: var(--hf-component-app-surface); box-shadow: inset 0 0 0 1px var(--hf-component-app-card-border); color: var(--hf-color-text-heading); }
.sheet__close:active { background: var(--hf-component-app-tab-active); }
.sheet--enquiry .enq-sheet__head, .tour-enq__sheet .enq-sheet__head { padding-right: calc(var(--hf-component-control-height) + var(--hf-space-1)); } /* a long name never runs under the circle */
.enq-sheet__head { padding-bottom: var(--hf-space-4); }
.enq-sheet__co { margin-top: var(--hf-space-1); font-weight: var(--hf-font-weight-medium); }
.enq-sheet__line { margin-top: var(--hf-space-1); font-size: var(--hf-component-app-text-nav); }
.enq-sheet__head .quiet { margin-top: var(--hf-space-1); }
.enq-sheet .message { font-size: var(--hf-component-app-text-nav); }
.enq-sheet .card { margin: 0; background: var(--hf-component-app-surface-light); } /* a step off the sheet's white */
.enq-sheet .card + .card, .enq-sheet .notice { margin-top: var(--hf-space-3); }
/* round 226: the actions come after the context, in a bar that stays at the sheet's foot (thumb reach) */
.sheet__bar { position: sticky; bottom: 0; display: flex; gap: var(--hf-space-2); padding: var(--hf-space-3) var(--hf-space-4) calc(var(--hf-space-3) + env(safe-area-inset-bottom)); background: var(--hf-component-app-surface); box-shadow: 0 -1px 0 var(--hf-component-app-card-border); }
.sheet__bar:empty { display: none; }
.pad { padding: var(--hf-space-5) var(--hf-space-4) 0; }
.quiet { font-size: var(--hf-component-app-text-small); color: var(--hf-color-text-muted); }
.pad .quiet { margin-top: var(--hf-space-2); }

/* ranked lists */
/* round 191: ranked lists are read-only, so plain rows on the page, the bar on a pale sand track (Alta, theScore) */
.ranks { margin: 0 var(--hf-space-4); }
.rank { padding: var(--hf-space-2) 0; }
.rank__top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--hf-space-3); font-size: var(--hf-component-app-text-nav); }
.rank__top span { overflow-wrap: anywhere; }
.rank__top b { font-weight: var(--hf-font-weight-medium); color: var(--hf-color-text-heading); }
.rank__track { display: block; height: 4px; margin-top: var(--hf-space-1); background: var(--hf-component-app-surface-quiet); }
.rank__track .rank__bar { height: 100%; margin: 0; }
.rank__bar { display: block; height: 4px; margin-top: var(--hf-space-1); background: var(--hf-color-action-primary); }
.ranks__note { margin: 0 var(--hf-space-4) var(--hf-space-2); font-size: var(--hf-component-app-text-small); color: var(--hf-color-text-muted); } /* round 198: a list's totals, above its rows */
.rank__sub { font-size: var(--hf-component-app-text-caption); color: var(--hf-color-text-muted); }
.rank.is-quiet .rank__top { color: var(--hf-color-text-muted); }

.hero-table { width: calc(100% - 2 * var(--hf-space-4)); margin: 0 var(--hf-space-4); border-collapse: collapse; font-size: var(--hf-component-app-text-nav); }
.hero-table th, .hero-table td { padding: var(--hf-space-3) 0 var(--hf-space-3) var(--hf-space-4); text-align: right; font-weight: var(--hf-font-weight-regular); border-top: 1px solid var(--hf-color-border-soft); }
.hero-table thead th { border-top: 0; }
.hero-table th:first-child { padding-left: 0; text-align: left; }

/* settings */
.row { display: flex; align-items: center; justify-content: space-between; gap: var(--hf-space-4); min-height: var(--hf-component-app-row-min); padding: var(--hf-space-2) var(--hf-space-4); }
.row--link:active { background: var(--hf-component-app-tab-active); }
.row small { display: block; font-size: var(--hf-component-app-text-small); color: var(--hf-color-text-muted); }
/* round 239 (Gabriel: a switch, not a checkbox): one switch for every on/off setting — <input type="checkbox" role="switch" class="switch">
   from toggle() in lib.js. Off: a light track with a grey outline and a small grey thumb; on: the blue track with a larger white thumb
   (Material 3's off state, so off reads without colour and passes 3:1 on the white card; the iOS proportions otherwise). The row is its label. */
.switch { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: var(--hf-component-app-switch-width); height: var(--hf-component-app-switch-height); margin: 0; border-radius: var(--hf-component-app-pill); background: var(--hf-component-app-switch-off); box-shadow: inset 0 0 0 var(--hf-component-app-switch-edge) var(--hf-component-app-switch-off-edge); cursor: pointer; transition: background-color var(--hf-motion-fast) var(--hf-motion-ease-out), box-shadow var(--hf-motion-fast) var(--hf-motion-ease-out); }
.switch::before { content: ''; position: absolute; top: 50%; left: calc((var(--hf-component-app-switch-height) - var(--hf-component-app-switch-thumb-off)) / 2); width: var(--hf-component-app-switch-thumb-off); height: var(--hf-component-app-switch-thumb-off); border-radius: 50%; background: var(--hf-component-app-switch-off-edge); transform: translateY(-50%); transition: left var(--hf-motion-fast) var(--hf-motion-ease-out), width var(--hf-motion-fast) var(--hf-motion-ease-out), height var(--hf-motion-fast) var(--hf-motion-ease-out), background-color var(--hf-motion-fast) var(--hf-motion-ease-out); }
.switch:checked { background: var(--hf-component-app-switch-on); box-shadow: none; }
.switch:checked::before { left: calc(var(--hf-component-app-switch-width) - var(--hf-component-app-switch-height) + (var(--hf-component-app-switch-height) - var(--hf-component-app-switch-thumb-on)) / 2); width: var(--hf-component-app-switch-thumb-on); height: var(--hf-component-app-switch-thumb-on); background: var(--hf-component-app-switch-on-thumb); }
.switch:disabled { opacity: .45; cursor: default; }
@media (prefers-reduced-motion: reduce) { .switch, .switch::before { transition: none; } }
@media (forced-colors: active) { .switch { border: 1px solid CanvasText; } .switch::before { background: CanvasText; } .switch:checked { background: Highlight; } }
.notice { margin: var(--hf-space-2) var(--hf-space-4); padding: var(--hf-space-3); background: var(--hf-component-app-alert-bg); color: var(--hf-component-app-alert-fg); border-radius: var(--hf-radius-medium); font-size: var(--hf-component-app-text-small); }

/* what's new */
.dot { display: block; width: var(--hf-component-app-dot); height: var(--hf-component-app-dot); border-radius: 50%; background: var(--hf-color-action-primary); }
.bar__btn.has-dot { position: relative; }
.bar__btn.has-dot::after { content: ''; position: absolute; top: var(--hf-space-1); right: var(--hf-space-1); width: var(--hf-component-app-dot); height: var(--hf-component-app-dot); border-radius: 50%; background: var(--hf-component-app-badge-bg); }
/* round 194: a dot that says there is something to see (the gear, Settings' What's new row) is red like the tab's count, the notification colour; What's new's own entries keep the blue new mark */
.row__end .dot { background: var(--hf-component-app-badge-bg); }
.row--link .row__end { display: flex; align-items: center; gap: var(--hf-space-2); color: var(--hf-color-text-muted); }
.news { margin: var(--hf-space-4) var(--hf-space-4) 0; }
.news .card { margin: 0; } /* the day's section already sits 16px in */
.news__day { padding: var(--hf-space-4) 0 var(--hf-space-2); font-size: var(--hf-component-app-text-h2); font-weight: var(--hf-font-weight-medium); letter-spacing: var(--hf-font-letterspacing-card); color: var(--hf-color-text-heading); } /* round 262: a section heading like the rest */
/* round 188: one card system. Every card sits on the sand with a warm hairline drawn inside (no layout shift); Leads, the one emphasised card, a shade darker with a firmer line */
.lead, .tile, .card, .enq, .enqs > .empty { box-shadow: inset 0 0 0 1px var(--hf-component-app-card-border); }
.lead { box-shadow: none; }
/* round 210 (Gabriel): Home's tiles in the Leads card's charcoal, so the whole overview reads as one set; the tiles that only show numbers (Insights) keep their quiet surface */
/* round 211 (Gabriel): the Visitors tile (Google's figures, full width) stays light as before
   round 246: the charcoal is its own modifier, .tile--dark (Downloads, Site search, and the wide Leads and Products tiles); Visitors keeps the white card */
.tile--dark { background: var(--hf-component-app-lead-bg); box-shadow: none; color: var(--hf-component-app-lead-fg); }
.tile--dark:active { background: var(--hf-component-app-lead-tile); }
.tile--dark b { color: var(--hf-component-app-lead-fg); }
.tile--dark .tile__label, .tile--dark span, .tile--dark .tile__line, .tile.tile--dark b.is-none { color: var(--hf-component-app-lead-muted); }
.tile--dark .tile__icon { color: var(--hf-component-app-lead-bar); }
.tile--dark .tile__title { color: var(--hf-component-app-lead-fg); }
.tile--dark .tile__chev { color: var(--hf-component-app-lead-muted); }
.tile--dark .sk { background-color: var(--hf-component-app-lead-skeleton); background-image: none; }
.tile--dark .pill { background: var(--hf-component-app-lead-tile); color: var(--hf-component-app-lead-fg); }
.tile--dark .pill__dot { background: var(--hf-component-app-lead-bar); }
.tile--dark:focus-visible { outline-offset: 2px; }
/* a dot column on every entry, so titles line up whether or not they're new; the dot is centred on the title's first line (same size and line height) */
.news__item { display: grid; grid-template-columns: var(--hf-component-app-dot) 1fr; column-gap: var(--hf-space-3); padding: var(--hf-space-4); }
.news__item ~ .news__item::after { left: calc(var(--hf-space-4) + var(--hf-component-app-dot) + var(--hf-space-3)); } /* the divider starts where the text does, as in iOS lists */
.news__mark { grid-row: 1; display: flex; align-items: center; height: 1lh; font-size: var(--hf-component-app-text-body); line-height: 1.3; }
.news__item:not(.is-new) .news__mark .dot { visibility: hidden; }
.news__item h3 { grid-column: 2; grid-row: 1; font-size: var(--hf-component-app-text-h3); font-weight: var(--hf-font-weight-semibold); line-height: 1.3; color: var(--hf-color-text-heading); }
/* round 236: the Change log has no dot column */
.news__card--plain .news__item { grid-template-columns: 1fr; }
.news__card--plain .news__item h3, .news__card--plain .news__item p { grid-column: 1; }
.news__card--plain .news__item ~ .news__item::after { left: var(--hf-space-4); }
.news__item p { grid-column: 2; margin-top: var(--hf-space-1); font-size: var(--hf-component-app-text-nav); }
/* Round 231: Notifications — What's new's day cards; under each, its group and time, then a link to see it */
.nitem__meta { display: flex; align-items: center; gap: var(--hf-space-1); font-size: var(--hf-component-app-text-small); color: var(--hf-color-text-muted); }
.news__item .nitem__meta { margin-top: var(--hf-space-2); }
.nitem__kind { display: inline-flex; color: var(--hf-color-action-primary); }
.nitem__go { grid-column: 2; justify-self: start; margin-top: var(--hf-space-3); gap: var(--hf-space-1); }
.nitem.is-hit { animation: hf-nitem-hit var(--hf-motion-counter) var(--hf-motion-ease-out) var(--hf-motion-base) both; }
@keyframes hf-nitem-hit { from { background: var(--hf-color-surface-tint-soft); } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .nitem.is-hit { animation: none; background: var(--hf-color-surface-tint-soft); } }
.empty strong { color: var(--hf-color-text-heading); }
.empty p + p { margin-top: var(--hf-space-2); }

/* the bottom nav: a glass pill, centred and low, as in iOS */
.tabs { position: fixed; left: 0; right: 0; bottom: max(calc(env(safe-area-inset-bottom) - var(--hf-component-app-tab-lift)), var(--hf-component-app-float-inset)); z-index: 2; width: fit-content; margin-inline: auto; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(var(--hf-component-app-tab-width), auto); gap: var(--hf-component-app-tab-gap); padding: var(--hf-space-1); background: var(--hf-component-app-tab-glass); -webkit-backdrop-filter: var(--hf-component-app-tab-blur); backdrop-filter: var(--hf-component-app-tab-blur); border-radius: calc(var(--hf-component-app-tab-height) / 2); box-shadow: inset 0 0 0 1px var(--hf-component-app-card-border), var(--hf-component-app-float-shadow); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .tabs { background: var(--hf-component-app-surface); } }
@media (prefers-reduced-transparency: reduce) { .tabs { background: var(--hf-component-app-surface); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.tab { position: relative; min-height: calc(var(--hf-component-app-tab-height) - var(--hf-space-1) * 2); padding: 0 var(--hf-space-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border-radius: calc(var(--hf-component-app-tab-height) / 2 - var(--hf-space-1)); font-size: var(--hf-component-app-text-tab); font-weight: var(--hf-font-weight-medium); line-height: 1.2; color: var(--hf-color-text-body); --hf-icon-tint: var(--hf-component-app-rest-tint); }
.tab svg { width: var(--hf-component-app-tab-icon); height: var(--hf-component-app-tab-icon); color: var(--hf-component-app-rest-icon); }
/* round 203: the current tab from the active-* tokens (was the super menu's sand hover) */
.tab[aria-current='page'] { background: var(--hf-component-app-active-bg); color: var(--hf-component-app-active-fg); --hf-icon-tint: var(--hf-component-app-active-tint); }
.tab[aria-current='page'] svg { color: var(--hf-component-app-active-icon); }
.tab em { position: absolute; top: 2px; left: calc(50% + var(--hf-space-2)); min-width: var(--hf-component-app-badge); height: var(--hf-component-app-badge); padding: 0 5px; border-radius: 9px; background: var(--hf-component-app-badge-bg); color: var(--hf-color-text-inverse); font-style: normal; font-weight: var(--hf-font-weight-semibold); line-height: var(--hf-component-app-badge); text-align: center; }

/* round 260 (Gabriel, after Instagram on iOS 26): the nav shrinks to its icons while scrolling down (html.is-nav-compact, set in app.js), on iPhone
   and Android alike. Each item has a set width so the change can move; the labels fold away but stay in the accessibility tree (never display:none). */
.tabs { --tab-w: var(--hf-component-app-tab-width); --tab-h: var(--hf-component-app-tab-height); grid-auto-columns: auto; border-radius: calc(var(--tab-h) / 2); }
.tab { width: var(--tab-w); min-height: calc(var(--tab-h) - var(--hf-space-1) * 2); border-radius: calc(var(--tab-h) / 2 - var(--hf-space-1)); transition: width var(--hf-motion-base) var(--hf-motion-ease-out), min-height var(--hf-motion-base) var(--hf-motion-ease-out), border-radius var(--hf-motion-base) var(--hf-motion-ease-out); }
.tab__label { display: block; max-height: 1.4em; overflow: hidden; white-space: nowrap; transition: opacity var(--hf-motion-base) var(--hf-motion-ease-out), max-height var(--hf-motion-base) var(--hf-motion-ease-out); }
html.is-nav-compact .tabs { --tab-w: var(--hf-component-app-tab-width-compact); --tab-h: var(--hf-component-app-tab-height-compact); }
html.is-nav-compact .tab__label { opacity: 0; max-height: 0; }
@media (prefers-reduced-motion: reduce) { .tab, .tab__label { transition: none; } }

/* connect, install and alert screens */
.gate { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; gap: var(--hf-space-3); padding: var(--app-top) var(--hf-space-5) calc(env(safe-area-inset-bottom) + var(--hf-space-6)); } /* round 222: the shared top */
.gate__logo { width: var(--hf-component-app-logo-width); height: auto; margin-bottom: var(--hf-space-5); }
.gate__title { font-size: var(--hf-component-app-text-h1); font-weight: var(--hf-font-weight-medium); letter-spacing: var(--hf-font-letterspacing-h1); line-height: 1.15; color: var(--hf-color-text-heading); }
.gate__text { color: var(--hf-color-text-body); }
.gate .btn { flex: none; margin-top: var(--hf-space-5); }
.gate .btn + .btn { margin-top: 0; }
.steps { counter-reset: s; margin-top: var(--hf-space-4); padding: 0; list-style: none; }
.steps li { counter-increment: s; display: flex; gap: var(--hf-space-3); padding: var(--hf-space-3) 0; border-top: 1px solid var(--hf-color-border-soft); }
.steps li::before { content: counter(s); flex: none; width: 1.5rem; font-weight: var(--hf-font-weight-semibold); color: var(--hf-color-action-primary); }
/* loading placeholders (round 177): a bone sits inside the element its data will fill and takes one line of its text (1lh; the grey is the text's height, padded to the line, not margins, which would collapse through the parent), so nothing jumps when the data arrives */
.sk { display: block; max-width: 100%; height: 1lh; padding-block: calc((1lh - 1em) / 2); background-clip: content-box; background-origin: content-box; border-radius: var(--hf-radius-small); background-color: var(--hf-component-app-skeleton); background-image: linear-gradient(100deg, transparent 35%, var(--hf-component-app-skeleton-shine) 50%, transparent 65%); background-size: 300% calc(100% + 1px); background-repeat: no-repeat; animation: hf-sk-sweep var(--hf-component-app-skeleton-duration) linear infinite; }
.skel { animation: hf-sk-in var(--hf-motion-base) var(--hf-motion-ease) var(--hf-component-app-skeleton-delay) both; }
.sheet .skel { animation: none; } /* round 240: a sheet's placeholders are there from its first frame, so it never grows into them */
@keyframes hf-sk-sweep { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes hf-sk-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sk, .skel { animation: none; } }
.sk--caption { font-size: var(--hf-component-app-text-caption); }
.sk--small { font-size: var(--hf-component-app-text-small); }
.sk--btn { flex: 1; width: 100%; height: var(--hf-component-app-control-height); padding: 0; border-radius: var(--hf-component-app-pill); }
.sk--btn-small { height: var(--hf-component-app-control-height-small); }
.sk--box { flex: none; width: 24px; height: 24px; padding: 0; margin: 10px; }
.chart .sk { flex: 1; min-height: 2px; padding: 0; border-radius: 0; background-color: var(--hf-component-app-skeleton); }
.rank__bar.sk { height: 4px; padding: 0; margin: var(--hf-space-1) 0 0; border-radius: 0; }
.row .sk-label { flex: 1; min-width: 0; }

/* round 199: Visitors while Google collects its first figures — a dash, a Collecting pill, a quiet box under each heading (Brick, YouTube Studio, Substack) */
.tile__top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--hf-space-2); }
.pill { display: inline-flex; align-items: center; gap: var(--hf-space-1); padding: var(--hf-space-1) var(--hf-space-2); border-radius: 999px; background: var(--hf-component-app-surface-quiet); color: var(--hf-color-text-body); font-size: var(--hf-component-app-text-caption); font-weight: var(--hf-font-weight-medium); line-height: 1.2; }
.pill__dot { flex: none; width: var(--hf-component-app-pill-dot); height: var(--hf-component-app-pill-dot); border-radius: 50%; background: var(--hf-color-action-primary); animation: hf-pulse var(--hf-component-app-pulse-duration) var(--hf-motion-ease) infinite; }
@keyframes hf-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .pill__dot { animation: none; } }
.figure__label--pill { display: flex; align-items: center; justify-content: space-between; gap: var(--hf-space-2); }
.tile b.is-none, .stat b.is-none, .figure__n.is-none { color: var(--hf-color-text-muted); }
.empty-box { margin: 0 var(--hf-space-4); padding: var(--hf-space-3) var(--hf-space-4); background: var(--hf-component-app-surface-quiet); border-radius: var(--hf-radius-medium); font-size: var(--hf-component-app-text-small); color: var(--hf-color-text-muted); }

/* Round 201: the bottom sheet (Settings → Email me a report) — Instacart / LinkedIn's confirm sheet, Rocket Money / Liven's "sent" state */
.sheet { position: fixed; inset: auto 0 0; width: 100%; max-width: 100%; max-height: calc(100dvh - var(--app-top) - var(--hf-space-4)); margin: 0; padding: 0; border: 0; border-radius: var(--hf-component-app-sheet-radius) var(--hf-component-app-sheet-radius) 0 0; background: var(--hf-component-app-surface); color: var(--hf-color-text-body); overflow-y: auto; overscroll-behavior: contain; }
.sheet::backdrop { background: var(--hf-component-app-sheet-backdrop); }
.sheet[open] { animation: hf-sheet-in var(--hf-motion-base) var(--hf-motion-ease-out); }
.sheet[open]::backdrop { animation: hf-fade-in var(--hf-motion-base) var(--hf-motion-ease-out); }
@keyframes hf-sheet-in { from { transform: translateY(100%); } }
@keyframes hf-fade-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sheet[open], .sheet[open]::backdrop { animation: none; } }
/* round 209: the sheet follows the finger and slides away when let go far enough; the page behind is locked while it is open */
.sheet { transition: transform var(--hf-motion-base) var(--hf-motion-ease-out); touch-action: pan-y; }
.sheet__handle { position: relative; touch-action: none; }
.sheet__handle::after { content: ''; position: absolute; inset: calc(var(--hf-space-3) * -1) calc(var(--hf-space-6) * -1); } /* a grab area well beyond the 4px bar */
.sheet.is-closing::backdrop { opacity: 0; transition: opacity var(--hf-motion-base) var(--hf-motion-ease-out); }
html.is-sheet-open, html.is-sheet-open body { overflow: hidden; overscroll-behavior: none; }
.sheet__handle { width: var(--hf-component-app-sheet-handle); height: 4px; margin: var(--hf-space-2) auto 0; border-radius: 2px; background: var(--hf-component-app-card-border); }
.sheet__body { padding: var(--hf-space-4) var(--hf-space-4) calc(var(--hf-space-5) + env(safe-area-inset-bottom)); }
.sheet__title { font-size: var(--hf-component-app-text-sheet-title); font-weight: var(--hf-font-weight-medium); line-height: 1.2; color: var(--hf-color-text-heading); }
.sheet__lead { margin-top: var(--hf-space-2); }
.sheet__period .seg { margin: var(--hf-space-4) 0 0; } /* round 207: 7 / 15 / 30 days, the app's own period control */
.sheet__list .quiet { font-size: inherit; }
.sheet__label { margin-top: var(--hf-space-4); font-size: var(--hf-component-app-text-h3); font-weight: var(--hf-font-weight-semibold); color: var(--hf-color-text-heading); } /* round 262: an h3 */
.sheet__list { margin-top: var(--hf-space-2); }
.sheet__list li { position: relative; padding-left: var(--hf-space-4); font-size: var(--hf-component-app-text-small); }
.sheet__list li + li { margin-top: var(--hf-space-1); }
.sheet__list li::before { content: ''; position: absolute; left: var(--hf-space-1); top: .62em; width: 5px; height: 5px; background: var(--hf-color-action-primary); }
.sheet .notice { margin: var(--hf-space-4) 0 0; }
.sheet__to { margin-top: var(--hf-space-4); }
.sheet__to strong { font-weight: var(--hf-font-weight-medium); color: var(--hf-color-text-heading); overflow-wrap: anywhere; }
.sheet__to + .quiet { margin-top: var(--hf-space-1); }
.sheet__say:empty { display: none; }
.sheet__say { margin-top: var(--hf-space-3); font-size: var(--hf-component-app-text-small); color: var(--hf-component-app-alert-fg); }
.sheet__actions { display: flex; flex-direction: column; gap: var(--hf-space-2); margin-top: var(--hf-space-5); }
.sheet__done { display: flex; flex-direction: column; align-items: center; text-align: center; }
.sheet__done .sheet__lead { max-width: 30ch; }
.sheet__done .sheet__actions { align-self: stretch; }
.sheet__icon { width: 64px; height: 64px; display: grid; place-items: center; margin: var(--hf-space-2) 0 var(--hf-space-4); border-radius: 50%; background: var(--hf-component-app-surface-quiet); color: var(--hf-color-action-primary); }
.sheet__icon .icon { width: 28px; height: 28px; }
.row--button { width: 100%; text-align: left; }
.row--button:active { background: var(--hf-component-app-tab-active); }

/* Round 213: the install page's pictures — one carousel linked to the numbered steps (Truecaller / Google's setup guides on Mobbin) */
.guide { margin-top: var(--hf-space-4); }
.guide__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; border-radius: var(--hf-radius-medium); background: var(--hf-component-app-tour-panel); } /* round 225 (Gabriel): the tour's light blue panel; it stays still while the pictures slide inside it */
.guide__track::-webkit-scrollbar { display: none; }
.guide__slide { flex: 0 0 100%; scroll-snap-align: start; padding: var(--hf-space-5); } /* the tour panel's safe margin */
.guide-pic { display: block; width: 100%; background-repeat: no-repeat; background-color: var(--hf-component-app-surface); border: 1px solid var(--hf-component-app-card-border); border-radius: var(--hf-radius-medium); }
.guide__dots { display: flex; justify-content: center; margin-top: var(--hf-space-1); }
.guide__dot { width: var(--hf-component-app-guide-dot-target); height: var(--hf-component-app-guide-dot-target); padding: 0; border: 0; background: none; display: grid; place-items: center; }
.guide__dot::before { content: ''; width: var(--hf-component-app-guide-dot); height: var(--hf-component-app-guide-dot); border-radius: 50%; background: var(--hf-component-app-guide-dot-off); }
.guide__dot[aria-current="true"]::before { background: var(--hf-color-action-primary); }
.steps--linked { margin: var(--hf-space-2) 0 0; }
.steps--linked li { display: block; padding: 0; }
.steps--linked li::before { content: none; }
.steps__pick { display: flex; align-items: flex-start; gap: var(--hf-space-3); width: 100%; padding: var(--hf-space-3) 0; border: 0; background: none; font: inherit; color: var(--hf-color-text-body); text-align: left; }
.steps__pick::before { content: counter(s); flex: none; display: grid; place-items: center; width: var(--hf-component-app-guide-step); height: var(--hf-component-app-guide-step); border-radius: 50%; background: var(--hf-component-app-surface); box-shadow: inset 0 0 0 1px var(--hf-component-app-card-border); font-size: var(--hf-component-app-text-small); font-weight: var(--hf-font-weight-semibold); line-height: 1; color: var(--hf-color-text-muted); transition: background-color var(--hf-motion-base) var(--hf-motion-ease-out), color var(--hf-motion-base) var(--hf-motion-ease-out), box-shadow var(--hf-motion-base) var(--hf-motion-ease-out); } /* round 225 (Gabriel): each number in a white circle */
.steps__text { padding-top: calc((var(--hf-component-app-guide-step) - 1lh) / 2); } /* the first line's middle on the circle's middle, however many lines follow */
.steps--linked li.is-on .steps__pick { color: var(--hf-color-text-heading); font-weight: var(--hf-font-weight-medium); }
.steps--linked li.is-on .steps__pick::before { background: var(--hf-color-action-primary); box-shadow: none; color: var(--hf-color-text-inverse); } /* the step whose picture shows: a blue circle */
@media (prefers-reduced-motion: reduce) { .steps__pick::before { transition: none; } }
/* Gabriel, 10 Nov: the app needs a website account — said before anyone installs it */
.account-note { display: flex; gap: var(--hf-space-2); margin-top: var(--hf-space-1); padding: var(--hf-space-3); background: var(--hf-component-app-surface-quiet); border-radius: var(--hf-radius-medium); font-size: var(--hf-component-app-text-small); color: var(--hf-color-text-body); }
.account-note .icon { flex: none; margin-top: .15em; color: var(--hf-color-action-primary); }
.account-note b { font-weight: var(--hf-font-weight-medium); color: var(--hf-color-text-heading); }
.gate__note { margin-top: var(--hf-space-1); }
/* on a computer: the QR code, as on wp-admin's Phones page */
.gate--wide { max-width: var(--hf-component-app-gate-max); margin: 0 auto; }
.qr-card { display: flex; align-items: center; gap: var(--hf-space-4); margin: var(--hf-space-4) 0 0; padding: var(--hf-space-4); background: var(--hf-component-app-surface); border: 1px solid var(--hf-component-app-card-border); border-radius: var(--hf-radius-medium); }
.qr-card__code { flex: none; width: var(--hf-component-app-guide-qr); height: auto; }
.qr-card figcaption { font-size: var(--hf-component-app-text-small); }
.qr-card b { font-weight: var(--hf-font-weight-medium); color: var(--hf-color-text-heading); }

/* Round 217: one row for Settings and Security (setRow / group in lib.js) — a 20px blue line icon, a title and an optional second line, the end
   (chevron, switch, tag, dot) on the right; groups under a heading, a note under the card. Meetup, Zocdoc, Obsidian on Mobbin. */
.row--set { justify-content: flex-start; gap: var(--hf-space-3); padding-top: var(--hf-space-3); padding-bottom: var(--hf-space-3); }
.row__icon { flex: none; display: flex; color: var(--hf-color-action-primary); }
.row__icon .icon { width: var(--hf-component-app-row-icon); height: var(--hf-component-app-row-icon); }
.row__text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.row__title { display: block; color: var(--hf-color-text-heading); }
.row--set .row__end { flex: none; display: flex; align-items: center; gap: var(--hf-space-2); max-width: 50%; color: var(--hf-color-text-muted); font-size: var(--hf-component-app-text-small); text-align: right; }
.row small.row__sub--warn { color: var(--hf-component-app-alert-fg); font-weight: var(--hf-font-weight-medium); }
.row--set ~ .row--set::after, .row--set ~ .sec-how::before { left: calc(var(--hf-space-4) + var(--hf-component-app-row-icon) + var(--hf-space-3)); } /* the line starts at the text, past the icon */
.row--danger .row__icon, .row--danger .row__title { color: var(--hf-color-status-error-fg); }
.row--line .row__title { font-size: var(--hf-component-app-text-small); } /* a sentence rather than a name: warnings, protections */
.row--button:disabled { cursor: default; opacity: .5; }
.row--button:disabled:active { background: none; }
.group-note { padding: var(--hf-space-2) var(--hf-space-4) 0; font-size: var(--hf-component-app-text-small); color: var(--hf-color-text-muted); }
.source-note { padding: var(--hf-space-4) var(--hf-space-4) 0; font-size: var(--hf-component-app-text-small); color: var(--hf-color-text-muted); } /* round 249: where an Insights area's figures come from */
.group-note:empty { display: none; }

/* Round 215: the Security screen — anything to do in the alert amber (status.warning) */
.sec-lead { padding: 0 var(--hf-space-4); color: var(--hf-color-text-body); }
.row--ok .row__icon { color: var(--hf-color-status-success-fg); }
.row--warn .row__icon { color: var(--hf-component-app-alert-fg); }
.row--warn > .row__text > .row__title:only-child { color: var(--hf-component-app-alert-fg); font-weight: var(--hf-font-weight-medium); } /* a warning on its own row */
.sec-tag { display: inline-block; margin-top: var(--hf-space-1); padding: var(--hf-space-1) var(--hf-space-2); border-radius: var(--hf-component-app-pill); background: var(--hf-component-app-surface-quiet); font-size: var(--hf-component-app-text-caption); font-weight: var(--hf-font-weight-medium); text-align: center; line-height: 1.25; color: var(--hf-color-text-heading); }
.sec-tag--needs { background: var(--hf-component-app-alert-bg); color: var(--hf-component-app-alert-fg); }
.sec-tag--recommended { color: var(--hf-color-text-muted); }
.sec-how { position: relative; }
.sec-how::before { content: ''; position: absolute; top: 0; right: 0; height: 1px; background: var(--hf-component-app-card-border); }
.sec-how summary { list-style: none; cursor: pointer; }
.sec-how summary::-webkit-details-marker { display: none; }
.sec-how[open] summary .row__end .icon { transform: rotate(180deg); }
.sec-steps { margin: 0; padding: 0 var(--hf-space-4) 0 calc(var(--hf-space-4) + var(--hf-component-app-row-icon) + var(--hf-space-3) + 1.2em); font-size: var(--hf-component-app-text-small); }
.sec-steps li + li { margin-top: var(--hf-space-2); }
.sec-alt { padding: var(--hf-space-3) var(--hf-space-4) var(--hf-space-4) calc(var(--hf-space-4) + var(--hf-component-app-row-icon) + var(--hf-space-3)); }
.sec-foot { padding: var(--hf-space-5) var(--hf-space-4) 0; }

/* Round 219: How the app works — five slides, each a whole piece of the app's own screen on a soft blue panel (Air NZ, Qantas on Mobbin).
   Full screen, no tab bar; the panel keeps one 4:3 shape so nothing jumps between slides; Skip top right, dots and one button at the foot. */
.tour { min-height: 100dvh; display: flex; flex-direction: column; max-width: var(--hf-component-app-gate-max); margin: 0 auto; padding: var(--app-top) 0 calc(env(safe-area-inset-bottom) + var(--hf-space-4)); } /* round 222: the shared top */
.tour__top { display: flex; justify-content: space-between; min-height: var(--hf-component-control-height); padding: 0 calc(var(--hf-component-app-tour-gutter) - var(--hf-space-3)) 0 calc(var(--hf-component-app-tour-gutter) - var(--hf-space-1)); } /* round 221: ‹ Previous and Skip line up with the wider margin */
.tour__skip { min-height: var(--hf-component-control-height); padding: 0 var(--hf-space-3); font-weight: var(--hf-font-weight-medium); color: var(--hf-color-text-link); }
.tour__skip[hidden], .tour__prev[hidden] { display: inline-flex; visibility: hidden; }
.tour__prev { display: inline-flex; align-items: center; gap: var(--hf-space-1); min-height: var(--hf-component-control-height); padding: 0 var(--hf-space-3) 0 var(--hf-space-1); font-weight: var(--hf-font-weight-medium); color: var(--hf-color-text-link); } /* Gabriel: a way back besides swiping, like the app's ‹ Settings */ /* keeps the slides from moving up on the last one */
.tour__track { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.tour__track::-webkit-scrollbar { display: none; }
.tour__track:focus-visible { outline-offset: -2px; }
.tour__slide { flex: 0 0 100%; scroll-snap-align: start; display: flex; flex-direction: column; justify-content: center; padding: var(--hf-space-2) var(--hf-component-app-tour-gutter) var(--hf-space-4); } /* round 221: 24px a side (tour-gutter); centred in the space left, so a tall phone has no empty band */
.tour__pic { position: relative; overflow: hidden; aspect-ratio: 4 / 3; padding: var(--hf-space-5); background: var(--hf-component-app-tour-panel); border-radius: var(--hf-radius-medium); } /* a soft panel with a safe margin */
/* the live scene: laid out at the app's content width, scaled by tour.js (--fit) into the panel's padded area, never cut */
.tour__scene { position: absolute; left: 50%; top: 50%; width: var(--hf-component-app-tour-scene-width); transform: translate(-50%, -50%) scale(var(--fit, 1)); pointer-events: none; }
.tour__scene .seg, .tour__scene .lead, .tour__scene .card, .tour__scene .enqs { margin-left: 0; margin-right: 0; }
.tour__scene .seg { margin-top: 0; }
.tour__scene .seg__opt { transition: background-color var(--hf-motion-base) var(--hf-motion-ease-out), color var(--hf-motion-base) var(--hf-motion-ease-out); }
.tour__title { margin-top: var(--hf-space-5); font-size: var(--hf-component-app-text-h1); font-weight: var(--hf-font-weight-medium); letter-spacing: var(--hf-font-letterspacing-h1); line-height: 1.15; color: var(--hf-color-text-heading); }
.tour__text { margin-top: var(--hf-space-2); color: var(--hf-color-text-body); }
.tour__copy { min-height: 10.5em; } /* two-line title + three-line text on every slide, so the picture sits at the same height on each */
.tour__foot { display: flex; flex-direction: column; gap: var(--hf-space-3); padding: var(--hf-space-4) var(--hf-component-app-tour-gutter) 0; }

/* Round 219: the tour's scenes — each plays once when its slide arrives (.is-on, set by tour.js); the app's own timings and ease-out, no bounce */
@keyframes hf-tour-rise { from { transform: scaleY(0); } }
@keyframes hf-tour-drop { from { opacity: 0; transform: translateY(calc(var(--hf-motion-page-shift) * -1)); } }
@keyframes hf-tour-nudge { from { transform: translateY(calc(var(--hf-space-2) * -1)); } }
@keyframes hf-tour-pop { from { transform: scale(0); } }
@keyframes hf-tour-settle { from { transform: scale(.6); opacity: 0; } }
@keyframes hf-tour-open { from { clip-path: inset(0 0 100% 0); opacity: 0; } }
@keyframes hf-tour-turn { from { transform: rotate(0deg); } }
@keyframes hf-tour-from-above { from { opacity: 0; transform: translateY(calc(var(--hf-motion-page-shift) * -1)); } }
@keyframes hf-tour-from-below { from { opacity: 0; transform: translateY(var(--hf-motion-page-shift)); } }
@keyframes hf-tour-up { from { opacity: 0; transform: translateY(var(--hf-space-2)); } }
@keyframes hf-tour-arrive { from { opacity: 0; transform: translateY(calc(var(--hf-motion-distance) * -1)) scale(.96); } }
@keyframes hf-tour-ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(2.6); } }
/* 1 · the bars rise left to right */
.tour__scene .chart i { transform-origin: bottom; }
.tour__scene--overview.is-on .chart i { animation: hf-tour-rise var(--hf-motion-slow) var(--hf-motion-ease-out) calc(var(--i) * var(--hf-motion-stagger) / 2) both; } /* 40ms a bar: the 12 principles' 50ms ceiling */
/* 2 · an alert lands on the ones before it, which give way; then its red dot */
.tour-notes { display: grid; gap: var(--hf-space-2); }
.tour-note { display: flex; align-items: center; gap: var(--hf-space-3); padding: var(--hf-space-3); background: var(--hf-component-app-surface); border-radius: var(--hf-radius-medium); box-shadow: inset 0 0 0 1px var(--hf-component-app-card-border); }
.tour-note--ghost { margin: 0 var(--hf-space-3); opacity: .6; } /* the alerts before and after: lighter and a step in, so the new one stands forward */
.tour-block { display: block; border-radius: var(--hf-radius-small); background: var(--hf-component-app-skeleton); }
.tour-block--line { width: 70%; height: .9em; }
.tour-block--short { width: 45%; height: .75em; margin-top: var(--hf-space-2); }
.tour-note__icon.tour-block { border-radius: var(--hf-radius-medium); }
.tour-note__icon { position: relative; flex: none; width: var(--hf-component-app-control-height); height: var(--hf-component-app-control-height); padding: 0; }
.tour-note__icon img { display: block; box-sizing: border-box; width: 100%; height: 100%; border: 1px solid var(--hf-component-app-card-border); border-radius: var(--hf-radius-medium); background: var(--hf-component-app-surface); } /* the app icon reads as an icon, so its red dot sits on something */
.tour-note__dot { position: absolute; top: -3px; right: -3px; width: calc(var(--hf-component-app-dot) * 1.5); height: calc(var(--hf-component-app-dot) * 1.5); border-radius: 50%; background: var(--hf-component-app-badge-bg); box-shadow: 0 0 0 2px var(--hf-component-app-surface); }
.tour-note__text { flex: 1; min-width: 0; font-size: var(--hf-component-app-text-small); line-height: 1.35; }
.tour-note__top { display: flex; justify-content: space-between; gap: var(--hf-space-2); }
.tour-note__top b { font-weight: var(--hf-font-weight-medium); color: var(--hf-color-text-heading); }
.tour-note__top span, .tour-note__app { color: var(--hf-color-text-muted); }
.tour-note__app { font-size: var(--hf-component-app-text-caption); }
.tour__scene--alerts .tour-note--new { position: relative; z-index: 1; box-shadow: inset 0 0 0 1px var(--hf-component-app-card-border), var(--hf-component-app-float-shadow); }
.tour__scene--alerts:not(.is-on) .tour-note { opacity: 0; } /* waits hidden until its slide arrives, so nothing shows and then vanishes */
.tour__scene--alerts.is-on .tour-note--above { animation: hf-tour-from-above var(--hf-motion-slow) var(--hf-motion-ease-out) var(--hf-motion-fast) both; } /* Gabriel: the two around it arrive first, each in turn */
.tour__scene--alerts.is-on .tour-note--below { animation: hf-tour-from-below var(--hf-motion-slow) var(--hf-motion-ease-out) calc(var(--hf-motion-fast) + var(--hf-motion-slow) / 2) both; }
.tour__scene--alerts.is-on .tour-note--new { animation: hf-tour-arrive var(--hf-motion-reveal) var(--hf-motion-ease-out) calc(var(--hf-motion-fast) + var(--hf-motion-slow) * 1.5) both; }
.tour__scene--alerts.is-on .tour-note__dot { animation: hf-tour-pop var(--hf-motion-base) var(--hf-motion-ease-out) calc(var(--hf-motion-fast) + var(--hf-motion-slow) * 1.5 + var(--hf-motion-reveal)) both; }
.tour-note__dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--hf-component-app-badge-bg); opacity: 0; }
.tour__scene--alerts.is-on .tour-note__dot::after { animation: hf-tour-ring var(--hf-motion-hero) var(--hf-motion-ease-out) calc(var(--hf-motion-fast) + var(--hf-motion-slow) * 1.5 + var(--hf-motion-reveal) + var(--hf-motion-base)) both; }
/* 3 · More opens: the message and contact rows unfold, the chevron turns */
.tour__scene .btn { transition: transform var(--hf-motion-fast) var(--hf-motion-ease-out); }
/* round 226: slide 3 — the tile pressed, the list dims, the enquiry's sheet rises over it (the app's own sheet classes) */
.tour-enq { position: relative; overflow: hidden; padding-top: var(--hf-space-2); border-radius: var(--hf-radius-medium); }
.tour-enq .enqs { margin: 0; }
.tour-enq__dim { position: absolute; inset: 0; background: var(--hf-component-app-sheet-backdrop); opacity: 0; transition: opacity var(--hf-motion-slow) var(--hf-motion-ease-out); }
.tour-enq__sheet { position: relative; margin-top: calc(var(--hf-space-8) * -1); background: var(--hf-component-app-surface); border-radius: var(--hf-component-app-sheet-radius) var(--hf-component-app-sheet-radius) 0 0; transform: translateY(100%); transition: transform var(--hf-motion-hero) var(--hf-motion-ease-gentle); }
.tour-enq__sheet .enq-sheet { padding: var(--hf-space-4) var(--hf-space-4) 0; }
.tour-enq__sheet .sheet__bar { position: static; box-shadow: none; padding-bottom: var(--hf-space-4); }
.tour-enq.is-up .tour-enq__dim { opacity: 1; }
.tour-enq.is-up .tour-enq__sheet { transform: none; }
.tour__scene .enq__open { transition: background-color var(--hf-motion-fast) var(--hf-motion-ease-out); }
.tour__scene .enq__open.is-press { background: var(--hf-component-app-tab-active); }
.tour__scene .btn.is-press { transform: scale(.97); } /* a tap, shown: Call in the enquiry's sheet */
/* 4 · the report: 30 days chosen, then Send report dips and says it's on its way */
.tour-sheet { padding: var(--hf-space-2) var(--hf-space-4) var(--hf-space-4); background: var(--hf-component-app-surface); border-radius: var(--hf-component-app-sheet-radius); box-shadow: inset 0 0 0 1px var(--hf-component-app-card-border); }
.tour-sheet .sheet__title { margin-top: var(--hf-space-4); } /* round 224: under the handle, as on the real sheet */
.tour-sheet .sheet__handle { margin-top: 0; }
.tour__scene .sheet__period .seg { margin-top: var(--hf-space-4); }
.tour__scene--report .seg { position: relative; }
.tour__scene--report .seg__opt { position: relative; z-index: 1; transition-duration: var(--hf-motion-slow); }
.tour__scene--report .seg__opt[aria-pressed='true'] { background: none; box-shadow: none; } /* the sliding thumb below draws the choice */
.tour-thumb { position: absolute; top: calc(var(--hf-space-1) / 2); bottom: calc(var(--hf-space-1) / 2); left: 0; width: var(--w, calc((100% - var(--hf-space-1)) / 3)); border-radius: var(--hf-component-app-pill); background: var(--hf-component-app-seg-thumb); box-shadow: var(--hf-component-app-seg-thumb-shadow); transform: translateX(var(--x, calc(var(--hf-space-1) / 2))); transition: transform var(--hf-motion-reveal) var(--hf-motion-ease-gentle), width var(--hf-motion-reveal) var(--hf-motion-ease-gentle); } /* round 224: placed on the chosen option by tour.js (--x, --w), so it lands whatever the font's widths */
.tour-sheet .sheet__actions { margin-top: var(--hf-space-4); }
.tour__scene .tour-send { transition: transform var(--hf-motion-fast) var(--hf-motion-ease-out), background-color var(--hf-motion-slow) var(--hf-motion-ease-out), border-color var(--hf-motion-slow) var(--hf-motion-ease-out); }
.tour-send.is-sent { background-color: var(--hf-color-status-success-fg); border-color: var(--hf-color-status-success-fg); } /* sent: green, the tick after the words */
/* 5 · Security: the rows land one after another, each icon settling as it arrives */
.tour__scene--security.is-on .row { animation: hf-tour-up var(--hf-motion-slow) var(--hf-motion-ease-out) calc(var(--hf-motion-base) + var(--i) * var(--hf-motion-slow) * .6) both; } /* one row at a time: a story, not a list (Gabriel: the 40ms stagger was too quick to read) */
.tour__scene--security .row__icon .icon circle { fill: currentColor; } /* a filled status disc with a white mark (Gabriel) */
.tour__scene--security .row__icon .icon path, .tour__scene--security .row__icon .icon line { stroke: var(--hf-color-neutral-white); }
.tour__scene--security.is-on .row__icon { animation: hf-tour-settle var(--hf-motion-slow) var(--hf-motion-ease-out) calc(var(--hf-motion-base) * 2 + var(--i) * var(--hf-motion-slow) * .6) both; }
@media (prefers-reduced-motion: reduce) { .tour__scene, .tour__scene * { animation: none !important; transition: none !important; } }
/* round 236 (Gabriel): a website page in the app's own bottom sheet — iOS's and Android's in-app browsers can't be a sheet from a web app.
   The sheet takes the full height a sheet may have (the app dims above it); a bar with the title, Open in browser and the close circle;
   the page fills the rest in a frame, a shimmer until it has loaded. The frame takes its own touches, so the drag is on the handle and the bar. */
.sheet--web[open] { display: flex; flex-direction: column; height: calc(100dvh - var(--app-top) - var(--hf-space-4)); overflow: hidden; }
.sheet--web .sheet__body { display: flex; flex-direction: column; flex: 1; min-height: 0; padding: 0; }
.web-sheet__bar { display: flex; align-items: center; gap: var(--hf-space-1); padding: var(--hf-space-2) var(--hf-space-3) var(--hf-space-2) var(--hf-space-4); box-shadow: 0 1px 0 var(--hf-component-app-card-border); touch-action: none; }
.web-sheet__title { font-size: var(--hf-component-app-text-body); flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.web-sheet__title:focus { outline: none; }
.sheet--web .sheet__close { position: static; margin: 0; flex: none; }
.web-sheet__out { display: grid; place-items: center; flex: none; width: var(--hf-component-control-height); height: var(--hf-component-control-height); border-radius: 50%; color: var(--hf-color-text-heading); }
.web-sheet__out:active { background: var(--hf-component-app-tab-active); }
.web-sheet__page { position: relative; flex: 1; min-height: 0; background: var(--hf-component-app-surface); }
.web-sheet__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.web-sheet__wait { position: absolute; inset: 0; display: flex; flex-direction: column; gap: var(--hf-space-3); padding: var(--hf-space-5) var(--hf-space-4); background: var(--hf-component-app-surface); }
.web-sheet__page .notice { position: absolute; inset: var(--hf-space-4) var(--hf-space-4) auto; margin: 0; }

/* round 250 (Gabriel): Insights → Products — the All products row under the top products, and the sheet with every product live and a search */
.all-products { margin-top: var(--hf-space-3); }
.sheet--products[open] { height: calc(100dvh - var(--app-top) - var(--hf-space-4)); } /* the sheet keeps its height while the search narrows the list */
/* round 251 (Gabriel: the title and search scrolled away): the sheet itself doesn't scroll; its body is a column — title, search, count — and only the list scrolls */
.sheet--products[open] { display: flex; flex-direction: column; overflow: hidden; }
.sheet--products .sheet__body { display: flex; flex-direction: column; flex: 1; min-height: 0; padding-bottom: 0; }
.sheet--products .sheet__close { position: absolute; top: var(--hf-space-2); right: var(--hf-space-3); margin: 0; }
.sheet--products .prods { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--hf-component-app-card-border); margin: var(--hf-space-2) calc(var(--hf-space-4) * -1) 0; padding: 0 var(--hf-space-4) calc(var(--hf-space-5) + env(safe-area-inset-bottom)); }
.sheet--products .sheet__title { padding-right: calc(var(--hf-component-control-height) + var(--hf-space-1)); } /* clear of the close circle */
.search--sheet { margin: var(--hf-space-3) 0 var(--hf-space-2); }
.prods__count { font-size: var(--hf-component-app-text-small); color: var(--hf-color-text-muted); }
.prods { margin-top: var(--hf-space-2); }
.prods li + li { box-shadow: inset 0 1px 0 var(--hf-component-app-card-border); }
.prod { display: flex; align-items: center; gap: var(--hf-space-3); min-height: var(--hf-component-control-height); padding: var(--hf-space-3) 0; color: inherit; text-decoration: none; }
.prod__text { flex: 1; min-width: 0; }
.prod__name { display: block; font-size: var(--hf-component-app-text-body); font-weight: var(--hf-font-weight-medium); color: var(--hf-color-text-heading); }
.prod__line { display: block; margin-top: var(--hf-space-1); font-size: var(--hf-component-app-text-small); color: var(--hf-color-text-muted); }
.prod > .icon { flex: none; color: var(--hf-color-icon-default); }
/* round 254: a brochure's cover beside its row, A4, on the quiet surface with the hairline; an icon when it has none */
.prod__thumb { flex: none; display: grid; place-items: center; width: var(--hf-component-app-doc-thumb-width); aspect-ratio: var(--hf-component-card-doc-ratio); overflow: hidden; box-sizing: border-box; background: var(--hf-component-app-surface-quiet); border: 1px solid var(--hf-component-app-card-border); color: var(--hf-color-icon-default); }
.prod__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ranks__more { margin: var(--hf-space-2) var(--hf-space-4) 0; } /* round 252: Show N more under Products' first 5 */
.rank[hidden] { display: none; }
.rank:focus { outline: none; }
.rank:focus-visible { outline: 2px solid var(--hf-color-action-focus); outline-offset: 2px; }
