/* ==========================================================================
   TripLead core styles (handle: triplead-core)
   Loaded on triplead-core views only: agent app shell (/agent/*), tracker, lead
   detail. Also a dependency of um-forms.css on the UM pages, for the tokens.

   Map: docs/CSS.md. Rules of the road:
   - Brand colours live in the :root token block below and nowhere else.
   - Every component rule is scoped through a TripLead wrapper (.tl-app for
     tracker/lead views, .tl-agent-app for the agent shell) so Astra's element
     and link rules never out-specify us. !important: the [hidden] contract rule (2b) plus eight that beat UM !important or inline rules (5g); register in docs/CSS.md.
   - Breakpoints: 600px (small), 900px (shell rail <-> bottom tabs).
   ========================================================================== */

/* ---- 0. Font (slice 13) ------------------------------------------------------
   Plus Jakarta Sans, self-hosted: Fontsource 5.3.0, latin subset, WOFF2, weights
   400/500/600/700/800 only (SIL OFL 1.1, fonts/OFL.txt; source in docs/ASSETS.md).
   No italic file: the few italic runs are synthesised. Characters outside the latin
   range (e.g. the → arrow) fall back to the system stack in --tl-font. */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---- 0b. Document: reserve the scrollbar gutter (2 Oct) ----------------------
   Desktop browsers with classic scrollbars (Windows) take ~15-17px from the viewport
   only when a page scrolls, so short pages (/login/, an expired tracker) were wider
   than long ones (/faqs/) and every centred frame, the header included, jumped ~8px
   sideways between them. stable = always keep the gutter, scrollbar or not. Chosen over
   overflow-y: scroll: no dead scrollbar track on short pages, and platforms with overlay
   scrollbars (phones, default macOS) reserve nothing, so they don't change. Browsers
   without support (Safari < 18.2) are overlay-scrollbar platforms anyway. The gutter shows
   the canvas, i.e. the body's background (html sets none), so it is the page colour.
   This file loads on every TripLead front-end page (marketing, info, slim, UM, agent). */
html { scrollbar-gutter: stable; }
/* Slim pages (tracker, not-found, About, legal, /post/, UM): at 768+ their main is wash,
   but the tracker and utility bodies are white, so a short page showed a white gutter strip
   beside a wash main while /login/ (wash body) showed wash. Paint the canvas wash on all of
   them, so the gutter always matches the main. The body still paints its own box, so only
   the gutter (and any canvas below a short body) changes. Phones: no gutter, no change. */
@media (min-width: 768px) {
	html:has(> body:is(.tl-traveller-body, .tl-utility-body)) { background-color: var(--tl-wash); }
}

/* ---- 0c. Links fade colours only; Astra's scroll-to-top gets the ring (STYLE-CHECKLIST §10, chunk 5)
   Astra's a { transition: all .2s linear } also animated the focus outline: for 0.2s after a key
   press a link showed a 3px ring in its own colour at 0 offset, growing into the 2px teal one
   (ux-review U-3 / C-12 on the header, footer and logos). Only the colours fade now. :where()
   keeps this at Astra's (0,0,1): it wins on order (this file loads right after Astra's) and never
   over our own class rules. Funnel pages keep their own styles. */
:where(body:not(.tl-funnel-body)) a { transition-property: color, background-color, border-color, text-decoration-color; }
/* #ast-scroll-top is a div with tabindex=0 and no focus style (C-15). */
body:not(.tl-funnel-body) #ast-scroll-top:focus-visible { outline: 2px solid var(--tl-teal); outline-offset: 2px; }

/* ---- 1. Tokens ---------------------------------------------------------- */
:root {
	/* Brand (TripLead_WP_Build_Plan.md, "Brand tokens"). */
	--tl-navy: #12265c;
	--tl-teal: #087ca4;
	--tl-teal-bright: #0bb5cc;
	--tl-orange: #f08a2a; /* logo orbit only: never UI */
	--tl-body: #425879;
	--tl-mute: #637797;
	--tl-wash: #f4f9fc;
	--tl-line: #dce9f2;

	/* Derived UI colours (documented in docs/CSS.md). */
	--tl-white: #fff;
	--tl-teal-hover: #066786;
	--tl-teal-soft: #e4f2f9;
	--tl-danger: #b42318;
	--tl-danger-soft: #fdeceb;
	--tl-danger-hover: #8f1c13;
	--tl-success: #166534;
	--tl-success-soft: #e9f8f1;
	--tl-amber: #e39a10;       /* pending-review icon only (decorative) */
	--tl-amber-soft: #fff4dc;
	/* Lead status labels (decision: PLAN-lead-status.md §9). Amber itself is never text, so the amber label
	   and the Needs update banner use a dark ink on --tl-amber-soft (7.8:1), with a soft line (decorative).
	   Lilac is Quote sent only (7.1:1 on its soft fill). */
	--tl-status-amber-ink: #6b4500;
	--tl-status-amber-line: #f1d7a0;
	--tl-status-lilac: #4a3f9f;
	--tl-status-lilac-soft: #ecebfb;
	/* Rating stars (decision #77, /feedback/): gold fill (decorative), its edge (5.2:1 on white, so each
	   star's shape meets the 3:1 non-text rule), and the unpicked star's fill. */
	--tl-star: #f2b01e;
	--tl-star-edge: #946200;
	--tl-star-off: #e3ebf2;
	--tl-neutral-soft: #eef1f5;
	--tl-focus-ring: 0 0 0 3px rgba(8, 124, 164, 0.35);
	--tl-shadow-card: 0 1px 2px rgba(18, 38, 92, 0.04), 0 8px 24px rgba(18, 38, 92, 0.05);
	--tl-shadow-pop: 0 12px 32px rgba(18, 38, 92, 0.16);
	--tl-shadow-knob: 0 1px 3px rgba(18, 38, 92, 0.25);
	/* Homepage photo hero (slice 14, 16). The sky gradient shows when no hero image is in
	   rotation, or the container lacks tl-hero-managed; the scrims keep text AA over the photos. */
	/* The page background behind marketing pages (body.tl-marketing-body). The desktop hero
	   photo fades into it at its capped edges (slice 19a), so a dark mode only swaps this. */
	--tl-page-bg: var(--tl-white);
	/* Desktop hero photo: the soft fade on its left/right edges once the viewport is wider
	   than the photo's source width (marketing.css M5d). */
	--tl-hero-edge-fade: 100px;
	--tl-sky-light: #d3eaf6;
	--tl-hero-sky: linear-gradient(160deg, var(--tl-wash) 0%, var(--tl-teal-soft) 45%, var(--tl-sky-light) 100%);
	/* Hero scrims, desktop/tablet (>=768px), three strengths (slice 16). Each hero image in
	   the Hero images library picks one (data-overlay on the hero container); marketing.css
	   M5 maps it onto the working vars below. One horizontal fade from the left edge,
	   masked to the top part of the hero so the photo's lower half stays clean.
	   Gutter = the boxed content's left edge, max(24px, 50% - 600px). The trust row always
	   has its own 82% backing. Contrast per photo: docs/CSS.md (slice 16).
	   Strong = the 27 Sep palms scrim: 0.94 / 0.88 at gutter + 560px / 0.55 at +700px /
	   clear by +900px; mask solid to 58%, clear by 80%. */
	--tl-hero-scrim-x-strong: linear-gradient(90deg, rgb(255 255 255 / 0.94) 0, rgb(255 255 255 / 0.88) calc(max(24px, 50% - 600px) + 560px), rgb(255 255 255 / 0.55) calc(max(24px, 50% - 600px) + 700px), rgb(255 255 255 / 0) calc(max(24px, 50% - 600px) + 900px));
	--tl-hero-scrim-mask-strong: linear-gradient(180deg, black 0, black 58%, transparent 80%);
	/* Standard (Daniel, 27 Sep: AA over both library photos): 0.85 / 0.78 at gutter + 600px /
	   clear by +860px; mask 55% / 82%. (The 26 Sep spec had 0.70 in the middle: failed AA.) */
	--tl-hero-scrim-x-standard: linear-gradient(90deg, rgb(255 255 255 / 0.85) 0, rgb(255 255 255 / 0.78) calc(max(24px, 50% - 600px) + 600px), rgb(255 255 255 / 0) calc(max(24px, 50% - 600px) + 860px));
	--tl-hero-scrim-mask-standard: linear-gradient(180deg, black 0, black 55%, transparent 82%);
	/* Light (Daniel, 27 Sep): about the same white behind the text as standard (the photos need
	   ~0.78 for AA) but less coverage, so more photo shows: 0.83 / 0.78 at gutter + 620px /
	   clear by +800px; mask 50% / 74%. */
	--tl-hero-scrim-x-light: linear-gradient(90deg, rgb(255 255 255 / 0.83) 0, rgb(255 255 255 / 0.78) calc(max(24px, 50% - 600px) + 620px), rgb(255 255 255 / 0) calc(max(24px, 50% - 600px) + 800px));
	--tl-hero-scrim-mask-light: linear-gradient(180deg, black 0, black 50%, transparent 74%);
	/* The working vars (what .tl-home-hero::after reads): strong unless data-overlay says otherwise. */
	--tl-hero-scrim-x: var(--tl-hero-scrim-x-strong);
	--tl-hero-scrim-mask: var(--tl-hero-scrim-mask-strong);
	--tl-hero-trust-backing: rgb(255 255 255 / 0.82);
	/* Mobile (<=767px): one scrim for every overlay (the mobile hero is pending a redesign,
	   slice 16). The top text block only: 0.80 -> 0.78 at 380px (past the body line even on
	   320px phones) -> clear by 470px. Measured on the palms mobile photo: kicker 5.20,
	   H1 navy 10.42 / teal 3.57, body 4.85 (docs/CSS.md). */
	--tl-hero-scrim-y: linear-gradient(180deg, rgb(255 255 255 / 0.8) 0, rgb(255 255 255 / 0.78) 380px, rgb(255 255 255 / 0) 470px);
	--tl-overlay: rgba(18, 38, 92, 0.72);
	/* The profile's photo viewer (traveller.css B10x lightbox): navy at 96%, so a photo reads on it
	   and white text on it is over 13:1 whatever the page behind. */
	--tl-overlay-strong: rgba(18, 38, 92, 0.96);
	/* Text on a solid navy surface (homepage "For travellers" panel, slice 15). Ratios on
	   #12265c: kicker 9.29, text 11.41, note 7.52 (all AA for small text). */
	--tl-on-navy-kicker: #9fd9e6;
	--tl-on-navy-text: #dbe6f3;
	--tl-on-navy-mute: #aebcd6;

	/* Type. System stack until a brand web font is chosen (see docs/CSS.md). */
	--tl-font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	/* Shape and size. Buttons: solid teal, 8px radius, one height everywhere. */
	--tl-radius-btn: 8px;
	--tl-radius-control: 8px;
	--tl-radius-card: 14px;
	--tl-radius-pill: 999px;
	--tl-control-h: 48px;
	/* Form step heading on phones (<768), one style for both wizards (BRIEF-23 follow-up,
	   Daniel 30 Sep): /post/'s step question (traveller.css A12) and /join/'s step headline
	   (um-forms.css, phone block) read these. Desktop sizes stay per form. Groundwork for
	   #43 (shared progress header) and #47 (one mobile form). */
	--tl-form-step-title-size-m: 22px;
	--tl-form-step-title-weight-m: 700;
	--tl-form-step-title-lh-m: 1.25;
	--tl-form-step-title-ls-m: -0.01em;
	/* #47 / QA2-03 (Daniel, 1 Oct): the phone side gutter of both wizards, /post/ and /join/
	   (traveller.css A12 --tl-post-gutter, um-forms.css phone block). The same 16px as the header
	   logo and /contact/. Change it here, not in either form. */
	--tl-form-m-edge: 16px;
	--tl-rail-w: 268px;
	--tl-topbar-h: 76px;
	--tl-tabbar-h: 77px; /* the phone tab bar's height: 1px line + 8 + a 60px tab + 8 (section 7; was 72, 5px short). Safe-area inset on top of it. */
	/* Headings (STYLE-CHECKLIST §1, settled 4 Oct). Page H1: the FAQ / Contact H1 everywhere (40 / 34 at
	   <=1024 / 30 at <=767 / 26 at <=319, 1.15, 800, -0.02em); pages.css P1b sets the same sizes on the
	   info frames from the Kit. Body H3 (sub-headings in a body section, not card titles): 18 / 700 /
	   1.3 / -0.01em at every width. */
	--tl-page-h1-size: 40px;
	--tl-page-h1-lh: 1.15;
	--tl-h3-size: 18px;
	--tl-h3-lh: 1.3;
	/* The arrow link (STYLE-CHECKLIST §8): its arrow and colours, here so the agent app can use
	   them too (#66 chunk 2, the lead page's "Buy extra leads"). marketing.css M1 sets the same
	   values on body.tl-marketing-body (redundant now; same values, safe to drop there later).
	   --tl-arrow-link-color is for white; on the wash use --tl-teal-hover. */
	--tl-i-arrow-right-ui: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16m-6-6 6 6-6 6'/%3E%3C/svg%3E");
	--tl-arrow-link-color: var(--tl-teal);
	--tl-arrow-link-hover: var(--tl-teal-hover);
	/* Booked's tick (7d): the site's small tick (marketing.css --tl-i-tick isn't loaded in the agent app). */
	--tl-i-status-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
@media (max-width: 1024px) { :root { --tl-page-h1-size: 34px; } }
@media (max-width: 767px) { :root { --tl-page-h1-size: 30px; } }
@media (max-width: 319px) { :root { --tl-page-h1-size: 26px; } }

/* ---- 2. Traveller / lead views (.tl-app) --------------------------------- */
.tl-app {
	max-width: 960px;
	margin: 0 auto;
	padding: 32px 16px 64px;
	color: var(--tl-body);
	font-size: 16px;
	line-height: 1.5;
}
.tl-app h1,
.tl-app h2 { color: var(--tl-navy); margin: 0 0 8px; line-height: 1.2; }
.tl-app h1 { font-size: 32px; }
.tl-app h2 { font-size: 20px; }
.tl-app a { color: var(--tl-teal); }
.tl-app .tl-page-head { margin-bottom: 20px; }
.tl-app .tl-sub,
.tl-app .tl-muted { color: var(--tl-mute); }
.tl-app .tl-notice { border-radius: 10px; padding: 14px 16px; margin: 0 0 16px; }
.tl-app .tl-notice-ok { background: var(--tl-success-soft); color: var(--tl-success); }
.tl-app .tl-notice-muted { background: var(--tl-wash); border: 1px solid var(--tl-line); }
.tl-app .tl-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 24px; margin: 16px 0 0; }
.tl-app .tl-facts dt { font-size: 13px; color: var(--tl-mute); }
.tl-app .tl-facts dd { margin: 0; color: var(--tl-navy); font-weight: 600; word-break: break-word; }
.tl-app .tl-agent-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; }
.tl-app .tl-agent { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; border: 1px solid var(--tl-line); border-radius: 10px; padding: 12px 14px; }
.tl-app .tl-agent .tl-pill { margin: 0 0 0 auto; }
@media (max-width: 600px) {
	.tl-app h1 { font-size: 26px; }
	.tl-app .tl-agent .tl-pill { margin-left: 0; }
}

/* ---- 2b. Rules the markup depends on (traveller form, tracker, agent shell) - */
/* Kept here (always loaded on these views) rather than in traveller.css, so the form
   can never break if the second stylesheet is missing or stale.
   1. Steps, conditional blocks, errors and JS-only buttons use the hidden attribute.
      Our own display rules (.tl-btn is inline-flex, .tl-tf-step is block, etc.) would
      otherwise override the UA [hidden]{display:none}. !important is the only way to
      make [hidden] win over every class rule, by design: it is the HTML contract.
      BRIEF-21: + .tl-home-form (the homepage card's form, AI on or off). The pill tray,
      "+N more", the limit note and the errors there are all [hidden] when empty.
      Decision #77: + .tl-followup (/feedback/: the two heads, the alert and Confirm toggle [hidden];
      .tl-slim already covers it, this keeps it true under a theme override without the slim chrome). */
:is(.tl-tf-page, .tl-tracker, .tl-agent-app, .tl-slim, .tl-home-form, .tl-funnel-form, .tl-followup) [hidden] { display: none !important; }
/* 2. Honeypot: off-screen, not display:none (some bots skip display:none fields). The
      input carries tabindex="-1" and autocomplete="off"; the wrapper aria-hidden.
      BRIEF-20: the homepage chat's summary card carries one too (marketing.css M5c4). Decision #75
      step 3: the after-posting extras form too (.tl-extras). Decision #77: the /feedback/ forms (.tl-followup). */
:is(.tl-tf-page, .tl-hero-card, .tl-extras, .tl-followup) .tl-hp {
	position: absolute;
	left: -10000px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---- 3. Shared components (both wrappers) -------------------------------- */
:is(.tl-app, .tl-agent-app, .tl-slim) .tl-card {
	background: var(--tl-white);
	border: 1px solid var(--tl-line);
	border-radius: var(--tl-radius-card);
	padding: 20px;
	margin: 0 0 16px;
}

:is(.tl-app, .tl-agent-app, .tl-slim, .tl-marketing) .tl-icon {
	display: inline-block;
	flex: none;
	width: 22px;
	height: 22px;
	vertical-align: middle;
}

/* Pills (lead / plan status). */
:is(.tl-app, .tl-agent-app, .tl-slim) .tl-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	border-radius: var(--tl-radius-pill);
	padding: 5px 14px;
	margin-bottom: 8px;
	background: var(--tl-wash);
	color: var(--tl-navy);
	white-space: nowrap;
}
:is(.tl-app, .tl-agent-app, .tl-slim) .tl-pill-live,
:is(.tl-app, .tl-agent-app, .tl-slim) .tl-pill-contacted { background: var(--tl-success-soft); color: var(--tl-success); }
:is(.tl-app, .tl-agent-app, .tl-slim) .tl-pill-new { background: var(--tl-teal); color: var(--tl-white); }
:is(.tl-app, .tl-agent-app, .tl-slim) .tl-pill-reviewing { background: var(--tl-teal-soft); color: var(--tl-teal-hover); }
:is(.tl-app, .tl-agent-app, .tl-slim) .tl-pill-expired,
:is(.tl-app, .tl-agent-app, .tl-slim) .tl-pill-closed { background: var(--tl-neutral-soft); color: var(--tl-mute); }
/* Inbox mock: "Contacted" is an outlined teal pill. */
.tl-agent-app .tl-pill-contacted { background: var(--tl-teal-soft); color: var(--tl-teal-hover); box-shadow: inset 0 0 0 1px var(--tl-teal-bright); }

/* Buttons: solid teal, white label, 8px radius, no gradient, one height. .tl-welcome: the agent welcome video
   modal is printed from wp_footer, after .tl-agent-app closes, so it's named here as a wrapper of its own. */
:is(.tl-app, .tl-agent-app, .tl-slim, .tl-marketing, .tl-welcome) .tl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	box-sizing: border-box;
	min-height: var(--tl-control-h);
	padding: 0 24px;
	border: 1.5px solid var(--tl-teal);
	border-radius: var(--tl-radius-btn);
	background: var(--tl-teal);
	color: var(--tl-white);
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
/* Buttons 16 / 700, no shadow (STYLE-CHECKLIST §7, chunk 4; was 600, and Astra's bare
   button { box-shadow: 0 1px 2px } reached submit buttons). /post/'s wizard (.tl-tf) is left as it
   is until wizard part 2, and funnel pages (.tl-funnel) keep their own styles (coordinator, 4 Oct). */
:is(.tl-app, .tl-agent-app, .tl-slim, .tl-marketing, .tl-welcome) .tl-btn:not(.tl-tf *, .tl-funnel *) { font-weight: 700; box-shadow: none; }
:is(.tl-app, .tl-agent-app, .tl-slim, .tl-marketing, .tl-welcome) .tl-btn:hover,
:is(.tl-app, .tl-agent-app, .tl-slim, .tl-marketing, .tl-welcome) .tl-btn:focus { background: var(--tl-teal-hover); border-color: var(--tl-teal-hover); color: var(--tl-white); }
:is(.tl-app, .tl-agent-app, .tl-slim, .tl-marketing, .tl-welcome) .tl-btn-outline { background: var(--tl-white); color: var(--tl-teal); }
:is(.tl-app, .tl-agent-app, .tl-slim, .tl-marketing, .tl-welcome) .tl-btn-outline:hover,
:is(.tl-app, .tl-agent-app, .tl-slim, .tl-marketing, .tl-welcome) .tl-btn-outline:focus { background: var(--tl-teal-soft); border-color: var(--tl-teal); color: var(--tl-teal-hover); }
:is(.tl-app, .tl-agent-app, .tl-slim, .tl-marketing, .tl-welcome) .tl-btn .tl-icon { width: 22px; height: 22px; }
/* Destructive action (tracker "Yes, close it"). White on --tl-danger is 6.4:1,
   on --tl-danger-hover 8.9:1. */
:is(.tl-app, .tl-agent-app, .tl-slim, .tl-marketing, .tl-welcome) .tl-btn-danger { border-color: var(--tl-danger); background: var(--tl-danger); color: var(--tl-white); }
:is(.tl-app, .tl-agent-app, .tl-slim, .tl-marketing, .tl-welcome) .tl-btn-danger:is(:hover, :focus) { border-color: var(--tl-danger-hover); background: var(--tl-danger-hover); color: var(--tl-white); }
:is(.tl-app, .tl-agent-app, .tl-slim, .tl-marketing, .tl-welcome) .tl-btn-danger:focus-visible { outline-color: var(--tl-danger); }

/* Email addresses (80e, Daniel 23 Oct): every front-end address is span.tl-email with <wbr> after "@"
   and before each "." (helpers.php triplead_email_span_html). They break only there, never mid-word,
   and fall back to break-word only for one part wider than its whole column, as the Travellers
   list does (admin.css, Fix 1). This undoes the overflow-wrap: anywhere their parents set for other
   text (lead / About contact values, Work email, the resend "To", the contact done <strong>).
   Where the span is a flex item it needs min-width: 0 too (set where that applies). Unscoped (0,1,0)
   on purpose: the class is ours and it must work inline anywhere this file loads, including spans
   the AI card's JS writes; a class beats the inherited value whatever its parent's specificity.
   Rules that set overflow-wrap on the span itself (.tl-pending-email, .tl-extras-email) no longer do.
   UM's reset card repeats it scoped (um-forms.css 3b). */
.tl-email { overflow-wrap: break-word; word-break: normal; hyphens: manual; }

/* One visible focus style for everything interactive we own. */
:is(.tl-app, .tl-agent-app, .tl-slim, .tl-marketing, .tl-welcome) :is(a, button, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--tl-teal);
	outline-offset: 2px;
	box-shadow: none;
}

/* ---- 3b. Text field skin: traveller form, homepage mini-form, agent app -----------
   One source for .tl-input / .tl-select / .tl-textarea, the icon wrap and the error
   border on the traveller form (.tl-tf-page, all six steps), the homepage card
   (.tl-home-form, whose destination box is S1's destination field; 0.18.7), its Cruises
   tab card (.tl-home-cruise, 0.24.305: the same select, marketing.css M5t) and the
   agent app's Specialties and Account forms (.tl-agent-app; 0.18.14, which deleted
   5d's near-copy and 5e's icon-wrap copy: radius 10px, Daniel 29 Sep). Specificity
   is unchanged ((0,2,0) base, (0,3,0) states/icon); Astra's input rules top out at
   (0,2,1) on :focus, which the (0,3,0) :focus rule still beats.
   Stays per page: S1's gradient select chevron, date and prefix inputs
   (traveller.css); the homepage select's SVG chevron (marketing.css); the agent
   select's chevron (5d). Agent-only behaviour kept below: under .has-error the
   Specialties country search (.tl-picker-input) keeps its normal border; the error
   belongs to the whole "Where do you sell" group, not the search box.
   Visible change on the agent pages besides the radius: the focused border is solid
   teal, not Astra's dotted one (open item 11's fix, which 3b has had since 0.18.7). */
:is(.tl-tf-page, .tl-home-form, .tl-home-cruise, .tl-funnel-form, .tl-agent-app, .tl-extras, .tl-followup) :is(.tl-input, .tl-select, .tl-textarea, .tl-inbox-sort-select, .tl-inbox-perpage-select) {
	display: block;
	width: 100%;
	height: var(--tl-control-h);
	margin: 0;
	padding: 0 14px;
	border: 1px solid var(--tl-line);
	border-radius: 10px;
	background-color: var(--tl-white);
	box-shadow: none;
	color: var(--tl-navy);
	font-family: inherit;
	font-size: 16px;
	line-height: normal;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form, .tl-agent-app, .tl-extras, .tl-followup) .tl-textarea { height: auto; min-height: 120px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form, .tl-agent-app, .tl-extras, .tl-followup) :is(.tl-input, .tl-textarea)::placeholder { color: var(--tl-mute); opacity: 1; }
:is(.tl-tf-page, .tl-home-form, .tl-home-cruise, .tl-funnel-form, .tl-agent-app, .tl-extras, .tl-followup) :is(.tl-input, .tl-select, .tl-textarea, .tl-inbox-sort-select, .tl-inbox-perpage-select):hover { border-color: var(--tl-teal-bright); }
:is(.tl-tf-page, .tl-home-form, .tl-home-cruise, .tl-funnel-form, .tl-agent-app, .tl-extras, .tl-followup) :is(.tl-input, .tl-select, .tl-textarea, .tl-inbox-sort-select, .tl-inbox-perpage-select):focus {
	border-style: solid; /* 0.18.7: Astra's input:focus draws it dotted. */
	border-color: var(--tl-teal);
	box-shadow: var(--tl-focus-ring);
	outline: 0;
}
/* Disabled (30 Sep, BRIEF-21 follow-up): the destination box while "Open to ideas" is ticked
   with no pills (core-dev sets [disabled] and the placeholder "Agents will suggest
   destinations"). Reads as switched off, not as an error: wash fill, the normal line border,
   no hover change, no fade. The placeholder is information, so it's body colour (6.9:1 on
   wash; mute would be 4.28:1). WebKit paints disabled text through -webkit-text-fill-color and
   fades it, so both are set. Unticking removes [disabled], so the normal look is back at once
   (no transition on background). "Get inspired" is outside the input and stays active. */
:is(.tl-tf-page, .tl-home-form, .tl-home-cruise, .tl-funnel-form, .tl-agent-app, .tl-extras, .tl-followup) :is(.tl-input, .tl-select, .tl-textarea):disabled,
:is(.tl-tf-page, .tl-home-form, .tl-home-cruise, .tl-funnel-form, .tl-agent-app, .tl-extras, .tl-followup) :is(.tl-input, .tl-select, .tl-textarea):disabled:hover {
	border-color: var(--tl-line);
	background-color: var(--tl-wash);
	color: var(--tl-body);
	-webkit-text-fill-color: var(--tl-body);
	opacity: 1;
	cursor: not-allowed;
}
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form, .tl-agent-app, .tl-extras, .tl-followup) :is(.tl-input, .tl-textarea):disabled::placeholder { color: var(--tl-body); -webkit-text-fill-color: var(--tl-body); opacity: 1; }
/* ux n2: no native datalist arrow on the destination / origin suggestions. Chrome/Edge
   draw it as the calendar indicator, Safari as the list button. Separate rules: an
   engine that doesn't know one of these pseudo-elements drops the whole rule. */
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form, .tl-agent-app, .tl-extras, .tl-followup) input[list]::-webkit-calendar-picker-indicator { display: none; opacity: 0; pointer-events: none; }
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form, .tl-agent-app, .tl-extras, .tl-followup) input[list]::-webkit-list-button { display: none; }

/* Leading icon (pin, calendar, bag...): 20px, mute, 16px in; text starts at 46px. */
:is(.tl-tf-page, .tl-home-form, .tl-home-cruise, .tl-funnel-form, .tl-agent-app, .tl-extras, .tl-followup) .tl-input-wrap { position: relative; }
:is(.tl-tf-page, .tl-home-form, .tl-home-cruise, .tl-funnel-form, .tl-agent-app, .tl-extras, .tl-followup) .tl-input-wrap--icon > .tl-icon {
	position: absolute;
	top: 50%;
	left: 16px;
	z-index: 1;
	width: 20px;
	height: 20px;
	margin-top: -10px;
	color: var(--tl-mute);
	pointer-events: none;
}
:is(.tl-tf-page, .tl-home-form, .tl-home-cruise, .tl-funnel-form, .tl-agent-app, .tl-extras, .tl-followup) .tl-input-wrap--icon :is(.tl-input, .tl-select) { padding-left: 46px; }
/* 0.24.313: the side-on cruise ship (viewBox 32 x 24, the /post/ trip type with Cruise) keeps the icon's 20px
   height and takes its own width (26.7px), as on the homepage tab and the lead page, at the same 16px in and
   centred; the text still starts at 46px (the hull ends at 40, about 6px clear). */
:is(.tl-tf-page, .tl-home-form, .tl-home-cruise, .tl-funnel-form, .tl-agent-app, .tl-extras, .tl-followup) .tl-input-wrap--icon > .tl-icon.tl-icon-cruise-ship { width: auto; aspect-ratio: 32 / 24; }

/* Error border (the message itself is styled per page). */
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form, .tl-extras, .tl-followup) .has-error :is(.tl-input, .tl-select, .tl-textarea),
.tl-agent-app .has-error :is(.tl-input, .tl-select, .tl-textarea):not(.tl-picker-input),
:is(.tl-tf-page, .tl-home-form, .tl-home-cruise, .tl-funnel-form, .tl-agent-app, .tl-extras, .tl-followup) :is(.tl-input, .tl-select, .tl-textarea)[aria-invalid="true"] { border-color: var(--tl-danger); }
/* 0.18.15 (Daniel): a focused field with an error keeps the teal focus ring on every page
   (the pale pink ring, about 1.1:1 on white, is retired); the red border still marks the error. */
/* 0.18.14: WebKit counts a select's clipped option text as page overflow when the select
   is narrower than its text (200% text, or a 160-195px zoom layout), and the page
   scrolled sideways by up to 55px (S1 and homepage trip type). The text is clipped at
   the box either way, so nothing visible changes. */
:is(.tl-tf-page, .tl-home-form, .tl-home-cruise, .tl-funnel-form) .tl-select { overflow: hidden; }

/* ---- 3c. Label row + "Get inspired": S1 + homepage mini-form (0.18.9; 0.20.2) -----
   One source for both pages (moved from traveller.css A5/A7). Markup (core-dev, 0.20.2):
     div.tl-field-head > label.tl-label + button.tl-inspire-toggle[aria-expanded][hidden until JS]
     div.tl-inspire-panel[hidden] > p.tl-inspire-text
       + ul.tl-inspire-list > li.tl-inspire-item > button.tl-inspire-option (+ p.tl-inspire-more)
   Label row (0.20.2, Daniel 30 Sep): label left, "Get inspired ->" right, on one baseline.
   When the two don't fit (a narrow column, 200% text) the link wraps under the label,
   left-aligned (a lone item on a space-between line starts at the left). No breakpoint.
   12px between the two on one line (0.20.2, was 16), and a 15px arrow 4px after the words
   (0.20.2, Daniel: was 18px and 6px; the size of "Continue with AI ->"'s arrow), so the row
   fits the homepage at 390 with the asterisk (1.9px to spare) and S1 at 390 (9.9px).
   The link is a <button> that must read as a text link, so every box and type property is
   reset (Astra's and the Kit's bare button rules paint a <button>; their :hover/:focus rules
   are (0,2,1), ours (0,3,0)). 22px line box. Its hit area is 44px on touch and 32 with a
   mouse (--tl-check-pad, 3e: 11 or 5) and never grows the row: the padding is cancelled by
   equal negative margins. Below the line it reaches at most 8px (the row's gap to the
   input), so it never covers the input; the rest goes above the line (14px on touch, 5
   with a mouse). The row gap is that same amount, so a wrapped link's hit area stops at
   the label's line and never covers the label (0.20.2 final: with a 4px gap it reached
   10px into it on touch). On one line the row gap does nothing. The display rule carries
   :not([hidden]).
   The panel is absolutely placed. Inside .tl-dest, 3e anchors it 8px under the input,
   left-aligned. Anywhere else, the fallback here is the control height + 8px from its
   containing block's top, right-aligned. 360px or the field's width if narrower, so it
   never leaves the field (fits at 320). z 20 = the suggestion list's (marketing.css lifts
   both to 30 on the homepage). The panel sets no display: [hidden] hides it. */
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form) .tl-field-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: calc(2 * var(--tl-check-pad, 11px) - min(8px, var(--tl-check-pad, 11px))) 12px; margin-bottom: 8px; }
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form) .tl-field-head .tl-label { margin: 0; }
/* The red required asterisk (span.tl-req, aria-hidden, after the label text): S1, the homepage
   card (0.20.2, Daniel 30 Sep) and the agent app. One rule (it was a copy in traveller.css and
   in section 4); --tl-danger on white is 6.4:1. */
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form, .tl-agent-app, .tl-extras) .tl-req { color: var(--tl-danger); }
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form) .tl-inspire-toggle {
	--tl-hit-below: min(8px, var(--tl-check-pad, 11px));
	--tl-hit-above: calc(2 * var(--tl-check-pad, 11px) - var(--tl-hit-below));
	gap: 4px;
	width: auto;
	min-width: 0;
	max-width: 100%;
	min-height: calc(22px + 2 * var(--tl-check-pad, 11px));
	margin: calc(-1 * var(--tl-hit-above)) -4px calc(-1 * var(--tl-hit-below));
	padding: var(--tl-hit-above) 4px var(--tl-hit-below);
	border: 0;
	border-radius: var(--tl-radius-btn);
	background: transparent;
	box-shadow: none;
	color: var(--tl-teal);
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	font-style: normal;
	line-height: 22px;
	letter-spacing: normal;
	text-align: left;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
}
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form) .tl-inspire-toggle:not([hidden]) { display: inline-flex; align-items: center; }
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form) .tl-inspire-toggle:is(:hover, :focus, :active) { background: transparent; box-shadow: none; color: var(--tl-teal-hover); }
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form) .tl-inspire-toggle:hover { text-decoration: underline; }
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form) .tl-inspire-toggle:focus-visible { outline: 2px solid var(--tl-teal); outline-offset: 0; }
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form) .tl-inspire-toggle .tl-icon { flex: none; width: 15px; height: 15px; transition: transform 0.15s ease; }
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form) .tl-inspire-toggle[aria-expanded="true"] .tl-icon { transform: rotate(90deg); }
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form) .tl-inspire-panel {
	position: absolute;
	top: calc(var(--tl-control-h) + 8px);
	right: 0;
	z-index: 20;
	width: min(360px, 100%);
	margin: 0;
	padding: 16px;
	border: 1px solid var(--tl-line);
	border-radius: 14px;
	background: var(--tl-white);
	box-shadow: var(--tl-shadow-pop);
	text-align: left;
}
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form) .tl-inspire-text { margin: 0; color: var(--tl-body); font-size: 14px; line-height: 1.5; }
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form) .tl-inspire-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form) .tl-inspire-item { min-width: 0; max-width: 100%; margin: 0; padding: 0; }
/* 0.19.1: the chat's "Back to summary" chip (marketing.css M5c5) shares this chip look. */
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form) .tl-inspire-option,
.tl-ai .tl-ai__chip {
	min-width: 0;
	max-width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 0 14px;
	overflow-wrap: anywhere; /* 200% zoom on a 320 phone: a 70px-wide panel. */
	border: 1px solid var(--tl-line);
	border-radius: var(--tl-radius-pill);
	background: var(--tl-wash);
	box-shadow: none;
	color: var(--tl-navy);
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: normal;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
}
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form) .tl-inspire-option:is(:hover, :focus, :active),
.tl-ai .tl-ai__chip:is(:hover, :focus, :active) { border-color: var(--tl-teal); background: var(--tl-teal-soft); box-shadow: none; color: var(--tl-teal-hover); }
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form) .tl-inspire-option:focus-visible,
.tl-ai .tl-ai__chip:focus-visible { outline: 2px solid var(--tl-teal); outline-offset: 2px; }
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form) .tl-inspire-more { margin: 12px 0 0; font-size: 14px; }
/* S1's .tl-link look (traveller.css), for the homepage too (only printed once an inspiration page exists). */
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form) .tl-inspire-more .tl-link { color: var(--tl-teal-hover); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form) .tl-inspire-more .tl-link:hover { color: var(--tl-navy); }

/* ---- 3d. Progress header: /post/ wizard (6 steps) + /join/ (4 steps) (29 Sep) -----------
   One component for both forms (docs/CSS.md "Progress header"). Markup, printed by
   core-dev's wizard and um-specialist's join-steps.js, driven by assets/tl-progress.js:
     div.tl-progress[data-tl-progress][style="--tl-progress:0.333"]
       > div.tl-progress__head > .tl-progress__title[tabindex=-1] + p.tl-progress__count
       + div.tl-progress__bar[role=progressbar] > span.tl-progress__fill
   --tl-progress (0 to 1, step/total) is data set by the JS, not a style: the fill reads it.
   The title may be an h2 or an h3, so it's styled by class only. Placement (padding, gap
   to the step) belongs to each host: traveller.css A3, um-forms.css "Progress header".
   Scope: .tl-tf-page (0,1,0) or body.tl-join-page .tl-join (0,2,1); :is() takes the
   higher, so every rule here starts at (0,3,1), above Astra's and UM's h2/p rules. */
:is(.tl-tf-page, body.tl-join-page .tl-join) .tl-progress { margin: 0; font-family: var(--tl-font); }
/* Title left, "Step 2 of 6" right on one row. wrap-reverse stacks the lines bottom-up, so
   when both don't fit (320px, long titles, 200% text) the count's line lands ABOVE the
   title, left-aligned, with no breakpoint: the row decides from the real text widths. */
:is(.tl-tf-page, body.tl-join-page .tl-join) .tl-progress__head {
	display: flex;
	flex-wrap: wrap-reverse;
	align-items: baseline;
	justify-content: space-between;
	gap: 2px 16px;
}
/* Compact label above the bar (Daniel 29 Sep): 18px/700, 17px on phones. The step's big
   question under the header stays the card's heading (locked mocks). */
:is(.tl-tf-page, body.tl-join-page .tl-join) .tl-progress__title {
	flex: 0 1 auto;
	min-width: 0;
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: 0;
	text-transform: none;
	color: var(--tl-navy);
	overflow-wrap: anywhere;
}
/* Programmatic focus (the JS moves focus here on every step change): no ring after a
   click or tap. :focus-visible (keyboard use, e.g. Enter on Next) keeps the site's 2px
   teal ring, hugging the text (the title is a shrink-to-fit flex item). */
:is(.tl-tf-page, body.tl-join-page .tl-join) .tl-progress__title:focus { outline: 0; }
:is(.tl-tf-page, body.tl-join-page .tl-join) .tl-progress__title:focus-visible {
	outline: 2px solid var(--tl-teal);
	outline-offset: 2px;
	border-radius: 4px;
	box-shadow: none;
}
/* Mute on white is 4.6:1 (both hosts are white here: the wizard card, the join card and
   the join page's white phone background). */
:is(.tl-tf-page, body.tl-join-page .tl-join) .tl-progress__count {
	flex: none;
	margin: 0;
	padding: 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--tl-mute);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
/* Bar: 6px, fully rounded, the line token as the track (no new token). The fill animates
   its width, not scaleX, so its rounded right end stays round at every step. */
:is(.tl-tf-page, body.tl-join-page .tl-join) .tl-progress__bar {
	position: relative;
	height: 6px;
	margin: 10px 0 0;
	overflow: hidden;
	border-radius: var(--tl-radius-pill);
	background: var(--tl-line);
}
:is(.tl-tf-page, body.tl-join-page .tl-join) .tl-progress__fill {
	display: block;
	width: calc(var(--tl-progress, 0) * 100%);
	max-width: 100%;
	height: 100%;
	border-radius: inherit;
	background: var(--tl-teal);
	transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Load-time updates (a saved draft resuming at step 3, a bounce to the step with errors)
   should jump, not slide from the server's step. Hook for tl-progress.js: .is-instant on
   the root for an update without focus (page load), removed on a focused (user) update.
   Nothing sets it yet (29 Sep: asked of core-dev); until then every change slides. */
:is(.tl-tf-page, body.tl-join-page .tl-join) .tl-progress.is-instant .tl-progress__fill { transition: none; }
/* /post/ uses the same continuous bar as /join/, filling n/N (decision #56's 5/6 segment mask
   was reverted on 2 Oct, Daniel's call; --tl-progress-steps is still written but unused).
   The unnumbered destination step (a 5-step plan going back to S1: .tl-progress.is-unnumbered,
   empty count, --tl-progress 0). The step name shows alone; the bar stays, empty: the header
   keeps its height and its divider, so nothing jumps when the traveller returns. The empty
   count is taken out so it can't hold a flex line or a gap. */
.tl-tf-page .tl-progress.is-unnumbered .tl-progress__count:empty { display: none; }
@media (max-width: 767px) {
	:is(.tl-tf-page, body.tl-join-page .tl-join) .tl-progress__title { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
	:is(.tl-tf-page, body.tl-join-page .tl-join) .tl-progress__fill { transition: none; }
}
/* Windows high contrast drops backgrounds: keep the track outlined and the fill painted. */
@media (forced-colors: active) {
	:is(.tl-tf-page, body.tl-join-page .tl-join) .tl-progress__bar { border: 1px solid CanvasText; }
	:is(.tl-tf-page, body.tl-join-page .tl-join) .tl-progress__fill { background: Highlight; forced-color-adjust: none; }
}

/* ---- 3g. Hero photo engine: the homepage hero AND the /post/ photo (0.22.3) ------------
   Moved here from marketing.css (M5 library photo, M5d cap / edge fade / fixed scale, the "none"
   sky, the overlay scrim) so both pages run the SAME rules: home's .tl-home-hero.tl-hero-managed
   and /post/'s :is(.tl-traveller-main--post, .tl-traveller-main--funnel) > .tl-post-hero (BRIEF-23 markup, same inline vars).
   Every selector is :is(home, post). The /post/ side is (0,2,0), so each :is() keeps the home
   selector's own specificity exactly ((0,5,1), (0,3,2) for ::after): home computes the same as
   before (0px diff at 390-1920), and the marketing.css rules that override these later (M5m
   portrait phones, M5o band mode) still win by source order, as they did.
   Two hooks, unset on home so its values are untouched:
     --tl-hero-focus-y   vertical position of the desktop photo (>=1025); /post/ sets it to its
                         per-hero --tl-post-hero-y (a %, i.e. (H - Hd) * y), home keeps the
                         h0-centred --tl-hero-bg-top.
     --tl-hero-focus     tablet position (768-1024); /post/ sets it to --tl-post-hero-pos.
   /post/ supplies what home's JS measures: --tl-hero-h0 = its fixed photo height, and
   --tl-hero-w = 100vw until hero-context.js writes the real px width (traveller.css A2).
   Phones: the band photo is shared too (3g-band, below); home's portrait mode (M5m) stays home-only.
   The white scrim (data-overlay strengths + ::after) is home-only since 0.22.24: /post/ draws
   its own ::after, a bottom fade only (traveller.css A2). */
/* Slice 16: the library photo, desktop (>=1025) and tablet (768-1024); mobile is M5m.
   (0,5,1): also beats any background Daniel might set on the container in Elementor later
   ((0,4,0)), so the library stays in charge while .tl-hero-managed is on (BRIEF-16 R8).
   The tablet crop falls back to desktop. */
:is(body.tl-marketing-body .tl-marketing-main .tl-home-hero.tl-hero-managed[data-overlay], :is(.tl-traveller-main--post, .tl-traveller-main--funnel) > .tl-post-hero) {
	background-image: var(--tl-hero-desktop, var(--tl-hero-sky));
	background-position: var(--tl-hero-pos-desktop, center center);
	background-repeat: no-repeat;
	background-size: cover;
}
@media (max-width: 1024px) {
	:is(body.tl-marketing-body .tl-marketing-main .tl-home-hero.tl-hero-managed[data-overlay], :is(.tl-traveller-main--post, .tl-traveller-main--funnel) > .tl-post-hero) {
		background-image: var(--tl-hero-tablet, var(--tl-hero-desktop, var(--tl-hero-sky)));
		background-position: var(--tl-hero-focus, var(--tl-hero-pos-tablet, center center));
	}
}
/* ---- M5d. Desktop photo: capped, edge-faded, fixed scale (slice 19a, >=1025px) --------
   Daniel, 28 Sep. The photo never upscales past its source width, is centred vertically on
   the form-mode height h0 (M5d follow-up: it was top-anchored, which read as the photo
   drifting down as the window widened), and keeps ONE scale and ONE top offset while the AI
   card grows the hero (148 -> 320px card): the extra height shows more of the photo's
   bottom, or the page background below it.
     top = min(0, (h0 - Hd) / 2), Hd = the displayed photo height (below). Usually negative:
     cropped equally top and bottom at h0. Never positive: a photo shorter than h0 (the 1:1
     stop below) stays top-anchored rather than showing a band of page background above it.
   Inputs (core-dev, on the managed hero; all px lengths unless noted):
     --tl-hero-desktop-w / -h   the served desktop image's pixel size (2560px / 1067px;
                                Switzerland is 1920px / 800px). From the server, updated on
                                a swap; omitted when the size is unknown.
     --tl-hero-pos-desktop-x    left | center | right (a keyword): the photo's own x while
                                it's cropped. From the server, updated on a swap; may be
                                absent (-> center).
     --tl-hero-h0               the hero's form-mode height, rounded UP (624px for a 623.2px
                                hero). JS only, so absent until hero-context.js runs;
                                constant while the card grows, updated on resize. It sizes
                                the photo only, never the hero (a ResizeObserver would loop).
     --tl-hero-w                the hero's width, rounded UP. JS only, next to h0.
   Displayed width W = min(source w, max(hero width, h0 * w / h)), height auto (aspect kept):
     w / h is a ratio of two lengths, which calc() can't divide; tan(atan2(h, w)) gives
     the unitless h / w (trig functions: Chromium 111, Safari 15.4, Firefox 108).
     h0 is ceiled by the JS, so covering it covers the real (fractional) height: no +1px.
     - fit the width, or cover the form-mode height if that needs more (the old "cover",
       but frozen at h0 so the card growing never re-zooms);
     - never above 1:1. If covering h0 would need more than the source width (h0 > h at 1:1,
       e.g. a 1920x800 step on a very tall hero), it stops at 1:1 and the page background
       shows under the photo: no upscaling wins over full cover.
   X position (19a follow-up, Daniel): while the photo is cropped (W >= hero width, i.e.
   below the cap) it follows the photo's own keyword; once the hero is wider than the source
   (W = w < hero width) it's centred. CSS can't turn a keyword into a number, so the photo is
   TWO layers of the same image (decoded once): one at the keyword, one centred, and the
   switch zeroes one layer's size (a 0-wide layer isn't painted):
     --tl-hero-bg-wide = max(0, sign(hero width - w)): 1 past the cap, else 0.
   At the switch W = hero width, where left, centre and right all put the photo at x = 0, so
   there's no jump. The switch reads --tl-hero-w (ceiled): at most a sub-pixel early/late.
   Edges beyond the cap: the hero's own colour is the page background (--tl-page-bg), and a
   gradient layer ON TOP of the photo paints the page background outside it and fades the
   photo's outer --tl-hero-edge-fade (100px) into it. The fade ramps from 0 as the gutter
   opens (fade = min(100px, hero width - W)), so at or under the cap there is no fade and
   no jump at the threshold. (Past the cap the photo is always centred, so the gradient is.)
   Bottom (19a follow-up, Daniel): where the photo ends above the hero's bottom (laptop widths
   with the chat open), its last --tl-hero-edge-fade fades into the page background too. The
   photo's displayed height Hd = W(px) * h / w needs W in px, which a vertical gradient can't
   get from 100%, hence --tl-hero-w. The photo's bottom edge is end = top + Hd, and the fade
   finishes there. It ramps like the sides: min(100px, hero height - end), so while the photo
   covers the hero (form mode: end >= h0 >= the real height) it's 0 and invisible, and it
   grows with the chat's extra height past end. No pseudo-element: ::after is the scrim,
   ::before Elementor's.
   Fallbacks: the derived vars reference core-dev's vars without fallbacks, so if any is
   missing (or "initial") they are invalid and each use falls back: keyword layer size ->
   cover, centred layer -> 0 (hidden), edges/bottom -> none, x keyword -> center, y -> center.
   Before the JS runs the card is in form mode, so cover + center IS the h0 scale and the
   centred top at every width up to the cap (at the photo's own x): no jump when h0 arrives;
   only a viewport wider than the source can see it upscaled for that first frame.
   The 19c crossfade layer gets the same rules, recomputed on the layer from ITS OWN
   --tl-hero-desktop-w/-h and --tl-hero-pos-desktop-x (the JS sets the incoming image's
   there, or "initial" -> cover / center); h0 and the hero width inherit from the hero. It
   also takes the page background as its colour, so the fade-in is a complete picture of the
   new state and lines up with the committed hero exactly. */
@media (min-width: 1025px) {
	:is(body.tl-marketing-body .tl-marketing-main .tl-home-hero.tl-hero-managed[data-overlay], :is(.tl-traveller-main--post, .tl-traveller-main--funnel) > .tl-post-hero),
	:is(body.tl-marketing-body .tl-marketing-main .tl-home-hero.tl-hero-managed, :is(.tl-traveller-main--post, .tl-traveller-main--funnel) > .tl-post-hero) > .tl-hero-layer {
		--tl-hero-bg-ratio: tan(atan2(var(--tl-hero-desktop-h), var(--tl-hero-desktop-w)));
		--tl-hero-bg-w: min(var(--tl-hero-desktop-w), max(100%, calc(var(--tl-hero-h0) / var(--tl-hero-bg-ratio))));
		--tl-hero-bg-wide: max(0, sign(var(--tl-hero-w) - var(--tl-hero-desktop-w)));
		--tl-hero-bg-size: var(--tl-hero-bg-w) auto;
		--tl-hero-bg-size-x: calc(var(--tl-hero-bg-w) * (1 - var(--tl-hero-bg-wide))) auto;
		--tl-hero-bg-size-c: calc(var(--tl-hero-bg-w) * var(--tl-hero-bg-wide)) auto;
		--tl-hero-bg-fade: min(var(--tl-hero-edge-fade), max(0px, 100% - var(--tl-hero-bg-w)));
		--tl-hero-bg-edges: linear-gradient(90deg,
			var(--tl-page-bg) calc(50% - var(--tl-hero-bg-w) / 2),
			transparent calc(50% - var(--tl-hero-bg-w) / 2 + var(--tl-hero-bg-fade)),
			transparent calc(50% + var(--tl-hero-bg-w) / 2 - var(--tl-hero-bg-fade)),
			var(--tl-page-bg) calc(50% + var(--tl-hero-bg-w) / 2));
		/* The photo's height in px: W with the hero's px width in place of 100%. */
		--tl-hero-bg-h: calc(min(var(--tl-hero-desktop-w), max(var(--tl-hero-w), calc(var(--tl-hero-h0) / var(--tl-hero-bg-ratio)))) * var(--tl-hero-bg-ratio));
		/* Vertical centring on the form-mode height (h0), never below 0 (a photo shorter than
		   h0 stays top-anchored and the bottom fade takes the rest). Constant while the chat
		   grows the hero, so the photo never moves; the extra height shows more below. */
		--tl-hero-bg-top: min(0px, calc((var(--tl-hero-h0) - var(--tl-hero-bg-h)) / 2));
		--tl-hero-bg-end: calc(var(--tl-hero-bg-top) + var(--tl-hero-bg-h));
		--tl-hero-bg-vfade: min(var(--tl-hero-edge-fade), max(0px, 100% - var(--tl-hero-bg-end)));
		--tl-hero-bg-bottom: linear-gradient(180deg,
			transparent calc(var(--tl-hero-bg-end) - var(--tl-hero-bg-vfade)),
			var(--tl-page-bg) var(--tl-hero-bg-end));
	}
	/* Whole-pixel top where round() exists: a top of about 0 (Hd = h0, e.g. 1280 wide) was
	   snapped a pixel differently in form and chat by Chromium. Older engines keep the exact
	   value above (sub-pixel only). */
	@supports (top: round(1.5px, 1px)) {
		:is(body.tl-marketing-body .tl-marketing-main .tl-home-hero.tl-hero-managed[data-overlay], :is(.tl-traveller-main--post, .tl-traveller-main--funnel) > .tl-post-hero),
		:is(body.tl-marketing-body .tl-marketing-main .tl-home-hero.tl-hero-managed, :is(.tl-traveller-main--post, .tl-traveller-main--funnel) > .tl-post-hero) > .tl-hero-layer {
			--tl-hero-bg-top: round(min(0px, calc((var(--tl-hero-h0) - var(--tl-hero-bg-h)) / 2)), 1px);
		}
	}
	:is(body.tl-marketing-body .tl-marketing-main .tl-home-hero.tl-hero-managed[data-overlay], :is(.tl-traveller-main--post, .tl-traveller-main--funnel) > .tl-post-hero) {
		background-color: var(--tl-page-bg);
		background-image: var(--tl-hero-bg-edges, none), var(--tl-hero-bg-bottom, none), var(--tl-hero-desktop, var(--tl-hero-sky)), var(--tl-hero-desktop, var(--tl-hero-sky));
		background-position: 0 0, 0 0, var(--tl-hero-pos-desktop-x, center) var(--tl-hero-focus-y, var(--tl-hero-bg-top, center)), center var(--tl-hero-focus-y, var(--tl-hero-bg-top, center));
		background-size: 100% 100%, 100% 100%, var(--tl-hero-bg-size-x, var(--tl-hero-bg-size, cover)), var(--tl-hero-bg-size-c, 0 0);
		background-repeat: no-repeat;
	}
	/* (0,5,1) beats M5x's .tl-hero-layer shorthand (0,3,1). */
	:is(body.tl-marketing-body .tl-marketing-main .tl-home-hero.tl-hero-managed, :is(.tl-traveller-main--post, .tl-traveller-main--funnel) > .tl-post-hero) > .tl-hero-layer {
		background-color: var(--tl-page-bg);
		background-image: var(--tl-hero-bg-edges, none), var(--tl-hero-bg-bottom, none), var(--tl-hero-layer-image), var(--tl-hero-layer-image);
		background-position: 0 0, 0 0, var(--tl-hero-pos-desktop-x, center) var(--tl-hero-focus-y, var(--tl-hero-bg-top, center)), center var(--tl-hero-focus-y, var(--tl-hero-bg-top, center));
		background-size: 100% 100%, 100% 100%, var(--tl-hero-bg-size-x, var(--tl-hero-bg-size, cover)), var(--tl-hero-bg-size-c, 0 0);
		background-repeat: no-repeat;
	}
}
/* ---- end M5d ---- */
/* Nothing in rotation: the sky, whatever Elementor holds. */
:is(body.tl-marketing-body .tl-marketing-main .tl-home-hero.tl-hero-managed[data-tl-hero="none"], :is(.tl-traveller-main--post, .tl-traveller-main--funnel) > .tl-post-hero[data-tl-hero="none"]) { background-image: var(--tl-hero-sky); }
/* Scrim strength per image (desktop/tablet). The ::after reads the working vars, which
   inherit from here. Mobile uses one scrim for every overlay (M5m below).
   HOME ONLY since 0.22.24 (Daniel, 2 Oct): /post/ shows its photo at full colour with only a
   bottom fade (traveller.css A2), so data-overlay does nothing there. The /post/ arm was
   dropped from these :is() lists; home's specificity is unchanged (an :is() takes its
   highest arm, which was always home's). */
:is(body.tl-marketing-body .tl-marketing-main .tl-home-hero.tl-hero-managed[data-overlay="strong"]) {
	--tl-hero-scrim-x: var(--tl-hero-scrim-x-strong);
	--tl-hero-scrim-mask: var(--tl-hero-scrim-mask-strong);
}
:is(body.tl-marketing-body .tl-marketing-main .tl-home-hero.tl-hero-managed[data-overlay="standard"]) {
	--tl-hero-scrim-x: var(--tl-hero-scrim-x-standard);
	--tl-hero-scrim-mask: var(--tl-hero-scrim-mask-standard);
}
:is(body.tl-marketing-body .tl-marketing-main .tl-home-hero.tl-hero-managed[data-overlay="light"]) {
	--tl-hero-scrim-x: var(--tl-hero-scrim-x-light);
	--tl-hero-scrim-mask: var(--tl-hero-scrim-mask-light);
}
:is(body.tl-marketing-body .tl-marketing-main .tl-home-hero)::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background: var(--tl-hero-scrim-x);
	-webkit-mask-image: var(--tl-hero-scrim-mask);
	mask-image: var(--tl-hero-scrim-mask);
	pointer-events: none;
}

/* 3g-band. Phones: the wide-crop photo band (BRIEF-18 option A on home, BRIEF-23 on /post/).
   The photo declarations only; each page keeps its own box rules (home M5o, /post/ A12). */
@media (max-width: 767px) {
	:is(body.tl-marketing-body .tl-marketing-main .tl-home-hero.tl-hero-managed.tl-hero-band .tl-home-hero__band, :is(.tl-traveller-main--post, .tl-traveller-main--funnel) > .tl-post-hero) {
		background-color: var(--tl-teal-soft);
		background-image: var(--tl-hero-mobile, var(--tl-hero-sky));
		background-position: var(--tl-hero-pos-mobile, center center);
		background-repeat: no-repeat;
		background-size: cover;
	}
	/* No wide crop (data-tl-mobile-img="none"), or nothing in rotation: the sky gradient at the
	   same height. Never the desktop photo. */
	:is(body.tl-marketing-body .tl-marketing-main .tl-home-hero.tl-hero-managed.tl-hero-band:is([data-tl-mobile-img="none"], [data-tl-hero="none"]) .tl-home-hero__band, :is(.tl-traveller-main--post, .tl-traveller-main--funnel) > .tl-post-hero:is([data-tl-mobile-img="none"], [data-tl-hero="none"])) {
		background-image: var(--tl-hero-sky);
		background-position: center center;
	}
}

/* 3g-layer. The contextual crossfade layer (hero-context.js; home's M5x, slice 19c): the first
   child of its host, absolute, opacity 0; the 700ms fade lives on .is-active only, so removing
   the class hides it at once. (0,3,1) as before on home. */
:is(body.tl-marketing-body .tl-marketing-main, :is(.tl-traveller-main--post, .tl-traveller-main--funnel) > .tl-post-hero) .tl-hero-layer {
	position: absolute;
	inset: 0;
	z-index: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	opacity: 0;
	transition: none;
	background: var(--tl-hero-layer-image) var(--tl-hero-layer-pos, center center) / cover no-repeat;
	pointer-events: none;
}
:is(body.tl-marketing-body .tl-marketing-main, :is(.tl-traveller-main--post, .tl-traveller-main--funnel) > .tl-post-hero) .tl-hero-layer.is-active {
	opacity: 1;
	transition: opacity 700ms ease-in-out;
}
@media (prefers-reduced-motion: reduce) {
	:is(body.tl-marketing-body .tl-marketing-main, :is(.tl-traveller-main--post, .tl-traveller-main--funnel) > .tl-post-hero) .tl-hero-layer.is-active { transition: none; }
}
/* ---- end 3g ---- */

/* ---- 3e. Destination field (BRIEF-21): homepage card + wizard S1 -----------------------
   One control on both pages (docs/CSS.md "BRIEF-21"). Markup (core-dev, 0.20.2: Daniel's
   30 Sep order; the DOM is the visual order, so the tab order is too):
     div.tl-field.tl-dest (+ .tl-home-form__field--destination on the homepage)
       div.tl-field-head > label.tl-label + button.tl-inspire-toggle (3c's label row)
       div.tl-picker.tl-picker--destinations.tl-picker--chips-below
         div.tl-picker-field (the input) + ul.tl-picker-list
         + div.tl-inspire-panel[hidden] (includes/inspire.php)
         + hidden store, template, p.tl-picker-status (all out of flow)
       label.tl-check.tl-dest-open > input.tl-check-input + span.tl-check-label
       (S1: p.tl-tentative, traveller-form.js) + p.tl-field-error[hidden]
       p.tl-help (S1 only: "... Add up to 8.")
       ul.tl-picker-chips#{id}-chips[hidden when empty]
           > li.tl-chip.tl-picker-chip (tick, label, button.tl-picker-remove) ...
           + li.tl-picker-more[hidden] > button.tl-picker-more-btn[aria-expanded]
       p.tl-dest-limit[hidden] (+ datalist)
   Layout: the field is a one-column grid and the picker root is display:contents (a plain
   div, no role), so each piece takes a row, at every width, on both pages:
     1 label row (label + "Get inspired")   2 input (+ suggestion list, + the panel)
     3 "Open to ideas" tick box   4 S1 "Please confirm" (19a)   5 the error
     6 S1 hint   7 pills, "+N more"   8 limit note
   The pills are last, so adding one never moves the label row, the tick box or the error.
   The rows are explicit (not auto-placed) because the homepage at 768+ is a subgrid of the
   form on these same rows (marketing.css M5b2): trip type, the button and the AI link have
   to know which rows are the destination column's. Row gap 0: the spacing is each item's
   own margin-top, and an empty or [hidden] item's row is 0 tall. A NEW child of .tl-dest
   needs a row here: an unplaced one auto-fills the first empty row.
   Spacing (Daniel: tight, 8px): 8px between the visible lines. The tick box is a padded
   hit row (--tl-check-pad above and below a 22px line); the margin after it is 8px less
   that padding, never below 0. After a text line (the error, the hint) it is a plain 8px.
   Sizes (Daniel: 36px with a mouse, 44 on touch): pills and "+N more" are 44px tall, or
   36px at 768+ when the primary pointer is fine and can hover. Anything we can't identify
   gets 44. The x fills the pill's height (44 or 36 square, 5e's clipped fill); the tick box
   row is 44 or 32 tall (--tl-check-pad 11 or 5 above and below its 22px line).
   Every rule is (0,3,0) or more: 5e's picker rules are (0,2,0)-(0,4,0) and come later in
   the file, so the pill rules here start at (0,5,0). The buttons reset every box and type
   property: Astra's and the Kit's bare button rules paint them (up to (0,2,1)). */
:is(.tl-tf-page, .tl-tracker, .tl-home-form, .tl-funnel-form, .tl-extras, .tl-followup) {
	--tl-i-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5h.01'/%3E%3C/svg%3E");
}
/* Error message, one style for both pages (moved from traveller.css A5 and marketing.css
   M5b, which was a byte-for-byte copy with the mask inlined). The red border is 3b's.
   margin-bottom 0: the homepage has no p reset (Astra's p margin). The trip type funnel's 8-choice
   note (.tl-funnel-where__limit, decision #74) blocks Continue, so it is this message too. */
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form, .tl-extras, .tl-followup) :is(.tl-field-error, .tl-funnel-where__limit, .tl-tf-cruise-where__limit) {
	position: relative;
	margin: 8px 0 0;
	padding-left: 24px;
	color: var(--tl-danger);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.45;
}
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form, .tl-extras, .tl-followup) :is(.tl-field-error, .tl-funnel-where__limit, .tl-tf-cruise-where__limit)::before {
	content: "";
	position: absolute;
	top: 1px;
	left: 0;
	width: 18px;
	height: 18px;
	background-color: currentColor;
	-webkit-mask: var(--tl-i-alert) center / contain no-repeat;
	mask: var(--tl-i-alert) center / contain no-repeat;
}
/* 0.24.313 (PLAN-post-cruise-step1.md §3.3): "Mediterranean isn't a river cruise region. Pick another, or
   choose …" under the region chips / select, when a kind change drops a picked region (homepage Cruises tab
   .tl-home-cruise__dropped, /plan/cruise/ .tl-funnel-where__dropped, /post/ .tl-tf-cruise-where__dropped).
   A notice, not an error: the site's hint text (/post/ .tl-help, the homepage card's helper): 14px / 1.45
   mute (4.6:1 on the white cards), no icon, 8px under the control as the error message. It is a live
   region that is never hidden, so empty it takes no room (:empty, no margin; the homepage has no p reset,
   so Astra's p margin would leave a gap). */
:is(.tl-tf-page, .tl-home-form, .tl-home-cruise, .tl-funnel-form) .tl-cruise-dropped { margin: 8px 0 0; padding: 0; color: var(--tl-mute); font-size: 14px; font-weight: 400; line-height: 1.45; text-wrap: pretty; }
:is(.tl-tf-page, .tl-home-form, .tl-home-cruise, .tl-funnel-form) .tl-cruise-dropped:empty { margin: 0; }
/* Checkbox rows: S2 "Flexible by a few days", S5 consent and the destination tick box
   (moved from traveller.css A5; .tl-field--consent stays there). The focus ring is new
   (BRIEF-21): the shared :focus-visible rule (3) covers a, button, summary and [tabindex],
   not inputs, so S2's and S5's boxes had only the browser's own ring until now. */
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form) .tl-check {
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr);
	column-gap: 12px;
	align-items: start;
	cursor: pointer;
}
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form) .tl-check-input {
	grid-row: 1 / span 2;
	width: 22px;
	height: 22px;
	margin: 1px 0 0;
	padding: 0;
	accent-color: var(--tl-teal);
	cursor: pointer;
}
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form) .tl-check-input:focus-visible { outline: 2px solid var(--tl-teal); outline-offset: 2px; }
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form) .tl-check-label { font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--tl-navy); }
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form) .tl-check-help { grid-column: 2; margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--tl-body); }

/* The field: a one-column grid on its rows. */
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form) .tl-dest {
	--tl-pill-h: 44px;
	--tl-check-pad: 11px;
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-content: start;
	min-width: 0;
}
@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
	:is(.tl-tf-page, .tl-home-form, .tl-funnel-form) .tl-dest { --tl-pill-h: 36px; --tl-check-pad: 5px; }
}
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form) .tl-dest > .tl-picker { display: contents; }
/* Row 1: 3c's label row (label left, "Get inspired" right or wrapped under it; 8px under
   it). Its height is the label's line (the link's hit area is cancelled by its margins),
   or two lines plus the row gap (5px, 14 on touch) when the link wraps. */
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form) .tl-dest > .tl-field-head { grid-row: 1; }
/* The row's 8px is the gap; the label's own (marketing.css M5b, (0,3,1)) would double it. */
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form) .tl-dest > .tl-field-head .tl-label { margin: 0; }
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form) .tl-dest > .tl-picker > .tl-picker-field { grid-row: 2; }
/* The suggestion list and the panel: absolutely placed grid items on the input's row, so
   each one's containing block is the input's grid area. Both end lines are explicit: on an
   absolutely placed item an auto end line means the grid's padding edge, so grid-row: 2
   alone spans rows 2 to the bottom and top:100% lands under the whole field (seen in
   Chromium and WebKit). The list opens under the input (+ 5e's 6px margin). The panel opens
   8px under the input, on the field's left edge, 360px or the field's width (3c), over the
   tick box and the pills (z 20/30). core-dev prints it in the picker root, after the list. */
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form) .tl-dest > .tl-picker > .tl-picker-list { grid-area: 2 / 1 / 3 / 2; top: 100%; }
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form) .tl-dest > .tl-picker > .tl-inspire-panel { grid-area: 2 / 1 / 3 / 2; top: calc(100% + 8px); right: auto; left: 0; }
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form) .tl-dest > .tl-dest-open { grid-row: 3; }
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form) .tl-dest > .tl-tentative { grid-row: 4; }
/* The error sits under the tick box: 8px from the tick box's line, less the row's padding. */
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form) .tl-dest > .tl-field-error { grid-row: 5; margin-top: max(0px, calc(8px - var(--tl-check-pad))); }
/* S1's hint, then the pills: 8px under the tick box's line (less its padding), or a plain
   8px under a text line (the error, the hint). */
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form) .tl-dest > .tl-help { grid-row: 6; margin: max(0px, calc(8px - var(--tl-check-pad))) 0 0; }
/* UX23-03: "Open to ideas" ticked with no pills (the input disabled): the typing hint no longer
   applies, so it goes entirely. Since 0.22.3 core-dev puts .is-ideas-only on the hint itself.
   S1 only; the homepage card has no hint. */
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form) .tl-dest > .tl-help.is-ideas-only { display: none; }
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form) .tl-dest > .tl-picker-chips { grid-row: 7; margin: max(0px, calc(8px - var(--tl-check-pad))) 0 0; }
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form) .tl-dest > .tl-field-error:not([hidden]) ~ .tl-picker-chips { margin-top: 8px; }
/* §6.3 (0.22.3): S1's hint is printed right after the label row, before the picker, and shows
   directly under the label, above the input. /post/ only (the homepage has no hint, and its
   768+ subgrid, M5b2, relies on the rows above), so .tl-tf-page renumbers: head 1, hint 2,
   input (+ its list and panel) 3, tick box 4, "Please confirm" 5, error 6; pills 7 and the
   limit note 8 as before. Same specificity as the shared rows, later, so these win on S1. */
.tl-tf-page .tl-dest > .tl-help { grid-row: 2; margin: 0 0 8px; }
.tl-tf-page .tl-dest > .tl-picker > .tl-picker-field { grid-row: 3; }
.tl-tf-page .tl-dest > .tl-picker > .tl-picker-list { grid-area: 3 / 1 / 4 / 2; }
.tl-tf-page .tl-dest > .tl-picker > .tl-inspire-panel { grid-area: 3 / 1 / 4 / 2; }
.tl-tf-page .tl-dest > .tl-dest-open { grid-row: 4; }
.tl-tf-page .tl-dest > .tl-tentative { grid-row: 5; }
.tl-tf-page .tl-dest > .tl-field-error { grid-row: 6; }
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form) .tl-dest > .tl-dest-limit { grid-row: 8; }

/* Pills: S1's chip (5e: teal-soft fill, teal-bright border, 20px tick disc, 15px/600
   teal-hover label; 6.1:1 on teal-soft) with the brief's 8px radius and the 36/44 height.
   The label wraps inside the pill (200% text, a long free-text place) and the x never
   shrinks, so a pill can't push the page sideways. */
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form) .tl-dest .tl-picker-chips > .tl-chip.tl-picker-chip {
	max-width: 100%;
	min-height: var(--tl-pill-h);
	border-radius: var(--tl-radius-control);
}
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form) .tl-dest .tl-picker-chip .tl-chip-label { padding: 4px 0; }
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form) .tl-dest .tl-picker-chip .tl-picker-remove {
	width: var(--tl-pill-h);
	height: var(--tl-pill-h);
	border-radius: var(--tl-radius-control);
}
/* "+N more" / "Show fewer": always the last item. Same height and radius as a pill, but
   quieter: white, a dashed line border, 14px/600 mute (4.6:1 on white). Hover and focus
   take the pill's colours (teal-hover on teal-soft 6.1:1) and the shared 2px teal ring. */
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form) .tl-dest .tl-picker-more { display: flex; min-width: 0; max-width: 100%; margin: 0; padding: 0; }
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form) .tl-dest .tl-picker-more-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: var(--tl-pill-h);
	max-width: 100%;
	min-height: var(--tl-pill-h);
	margin: 0;
	padding: 4px 14px;
	border: 1px dashed var(--tl-line);
	border-radius: var(--tl-radius-control);
	background: var(--tl-white);
	box-shadow: none;
	color: var(--tl-mute);
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	font-style: normal;
	line-height: 1.2;
	letter-spacing: normal;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	white-space: normal;
	overflow-wrap: anywhere;
	cursor: pointer;
}
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form) .tl-dest .tl-picker-more-btn:is(:hover, :focus, :active) { border-color: var(--tl-teal); background: var(--tl-teal-soft); box-shadow: none; color: var(--tl-teal-hover); }
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form) .tl-dest .tl-picker-more-btn:focus-visible { outline: 2px solid var(--tl-teal); outline-offset: 2px; }

/* The limit note: the hint's look (14px mute, 4.6:1), no icon, no colour: not an error. */
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form) .tl-dest > .tl-dest-limit { margin: 8px 0 0; color: var(--tl-mute); font-size: 14px; font-weight: 400; line-height: 1.45; }

/* BRIEF-21 §5, the add confirmation (0.22.2; hooks confirmed by core-dev).
   - "Already added" (D17) is p.tl-dest-limit.is-duplicate (the same element, text swapped):
     the limit note rule above already makes it muted 14px in row 8, so it needs no rule of its own.
   - "{Name} added" placeholder for about 1s (D15): .tl-picker.is-just-added on the picker root (a
     descendant selector, so the homepage root being display:contents at 768+ doesn't matter): the
     normal muted placeholder (mute on white, 4.6:1), upright.
   - li.tl-picker-chip.is-new (set for 150ms): the new pill's 150ms teal (#087ca4) border flash: a 1px teal ring on top of the teal border
     so it reads on the teal-soft fill; it ends on the pill's own border. None under reduced
     motion (the JS also skips the "added" placeholder there, D18). */
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form) .tl-dest :is(.tl-picker.is-just-added .tl-picker-input, .tl-picker-input.is-just-added)::placeholder { color: var(--tl-mute); font-style: normal; opacity: 1; }
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form) .tl-dest .tl-picker-chips > .tl-chip.tl-picker-chip.is-new { animation: tl-pill-new 150ms linear 1; }
@keyframes tl-pill-new {
	from, to { border-color: var(--tl-teal); box-shadow: 0 0 0 1px var(--tl-teal); }
}
@media (prefers-reduced-motion: reduce) {
	:is(.tl-tf-page, .tl-home-form, .tl-funnel-form) .tl-dest .tl-picker-chips > .tl-chip.tl-picker-chip.is-new { animation: none; }
}

/* The "Open to ideas" tick box: the .tl-check row, quieter (15px/500 navy, 14.9:1) and only
   as wide as its content, so the tap area is the box and the words, not the empty width
   to their right. 44px tall on touch (D8), 32 with a mouse; the 8px above it is less the
   row's padding, never below 0 (on touch its hit area starts at the input's edge). The box sits on the first
   line's centre (the label's line is 1.45em; the box takes the label's font size). */
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form) .tl-dest > .tl-dest-open {
	justify-self: start;
	width: fit-content;
	max-width: 100%;
	min-height: calc(22px + 2 * var(--tl-check-pad));
	margin: max(0px, calc(8px - var(--tl-check-pad))) 0 0;
	padding: var(--tl-check-pad) 0;
	column-gap: 10px;
}
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form) .tl-dest-open .tl-check-input { grid-row: 1; margin: calc((1.45em - 22px) / 2) 0 0; font-size: inherit; }
:is(.tl-tf-page, .tl-home-form, .tl-funnel-form) .tl-dest-open .tl-check-label { font-size: 15px; font-weight: 500; line-height: 1.45; overflow-wrap: anywhere; }

/* Reduced motion: no arrow turn on "Get inspired" (3c). */
@media (prefers-reduced-motion: reduce) {
	:is(.tl-tf-page, .tl-home-form, .tl-funnel-form) .tl-inspire-toggle .tl-icon { transition: none; }
}

/* ---- 4. Agent app shell --------------------------------------------------- */
/* Full document of its own (templates/agent-app.php): no Astra header/footer. */
body.tl-agent-app-body,
body.tl-agent-slim-body,
body.tl-traveller-body,
body.tl-utility-body {
	margin: 0;
	background: var(--tl-white);
	color: var(--tl-body);
	font-family: var(--tl-font);
	font-size: 16px;
	line-height: 1.5;
}

.tl-agent-app {
	min-height: 100vh;
	display: grid;
	grid-template-columns: var(--tl-rail-w) minmax(0, 1fr);
	grid-template-rows: var(--tl-topbar-h) minmax(0, 1fr);
	grid-template-areas: "top top" "nav main";
	font-family: var(--tl-font);
	color: var(--tl-body);
}
/* Resets shared by the shell and the slim status layout (both full documents that still
   get Astra CSS through wp_head). */
:is(.tl-agent-app, .tl-slim) *,
:is(.tl-agent-app, .tl-slim) *::before,
:is(.tl-agent-app, .tl-slim) *::after { box-sizing: border-box; }
:is(.tl-agent-app, .tl-slim) p { margin: 0; }
:is(.tl-agent-app, .tl-slim) ul,
:is(.tl-agent-app, .tl-slim) ol { margin: 0; padding: 0; list-style: none; }
:is(.tl-agent-app, .tl-slim) h1,
:is(.tl-agent-app, .tl-slim) h2 { margin: 0; clear: none; font-family: inherit; }
:is(.tl-agent-app, .tl-slim) a { color: var(--tl-teal); text-decoration: none; }

/* Our own copy of the WP screen-reader utility, so the badge text never shows even
   if the theme's CSS is missing. */
:is(.tl-agent-app, .tl-slim, .tl-marketing) .screen-reader-text:not(:focus) {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}
/* Appear instantly on Tab: Astra's bare `a { transition: all .2s linear }` (main.min.css) would
   fade the navy/white in over 0.2s, unreadable for the first frames. (0,2,0) beats Astra's (0,0,1). */
:is(.tl-agent-app, .tl-slim, .tl-marketing) .tl-skip-link { transition: none; }
:is(.tl-agent-app, .tl-slim, .tl-marketing) .tl-skip-link:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 100;
	padding: 12px 16px;
	border-radius: var(--tl-radius-btn);
	background: var(--tl-navy);
	color: var(--tl-white);
	font-weight: 600;
}

/* Top bar. */
.tl-agent-app .tl-agent-topbar {
	grid-area: top;
	position: sticky;
	top: 0;
	z-index: 20;
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	height: var(--tl-topbar-h);
	background: var(--tl-white);
	border-bottom: 1px solid var(--tl-line);
}
.tl-agent-app .tl-agent-logo {
	display: flex;
	flex-direction: column;
	justify-content: center;
	flex: 0 0 var(--tl-rail-w);
	padding: 0 24px 0 48px;
	border-right: 1px solid var(--tl-line);
	color: var(--tl-navy);
	line-height: 1;
}
:is(.tl-agent-app, .tl-slim) .tl-agent-logo-img { display: block; width: auto; height: 48px; max-width: 100%; }
:is(.tl-agent-app, .tl-slim) .tl-agent-logo-word { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; color: var(--tl-navy); }
:is(.tl-agent-app, .tl-slim) .tl-agent-logo-tagline { margin-top: 4px; font-size: 12px; color: var(--tl-body); }

/* Account menu: a disclosure button + list (templates/agent-app.php, assets/agent-app.js).
   div.tl-account-menu[data-tl-account-menu] gets .is-enhanced once the JS is wired, and .is-open
   while open; the list ships WITHOUT [hidden] (the no-JS fallback below) and the JS toggles
   [hidden] + aria-expanded. Order: Inbox, Specialties, Account, View my profile, divider, Log out. */
.tl-agent-app .tl-account-menu {
	position: relative;
	display: flex;
	align-items: center;
	padding: 0 32px;
}
/* The toggle is a real <button>: Astra paints bare buttons (main.min.css + customizer inline:
   global-colour background, 15px 30px padding, 4px radius, box-shadow, weight 500, line-height 1em,
   :hover/:focus white on global-colour-1) and the Elementor Kit repeats that under .elementor-kit-N
   (0,1,1)/(0,2,1). (0,2,0) here and (0,3,0) on the states win without !important. */
.tl-agent-app .tl-account-menu-toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	margin: 0;
	padding: 0 8px;
	border: 0;
	border-radius: var(--tl-radius-btn);
	background: transparent;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
	color: var(--tl-navy);
	font-family: inherit;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease; /* not Astra's button "all": the focus ring would grow in (§10; A11) */
}
.tl-agent-app .tl-account-menu-toggle:focus { background: transparent; color: var(--tl-navy); }
.tl-agent-app .tl-account-menu-toggle:hover,
.tl-agent-app .tl-account-menu-toggle[aria-expanded="true"] { background: var(--tl-wash); color: var(--tl-navy); }
/* Focus ring: the shared :focus-visible rule (section 3) already covers this button (2px teal,
   2px offset) and beats Astra's button:focus { outline: 0 }. */
.tl-agent-app .tl-account-menu-toggle .tl-icon { width: 20px; height: 20px; transition: transform 0.15s ease; }
.tl-agent-app .tl-account-menu-toggle[aria-expanded="true"] .tl-icon { transform: rotate(180deg); }
.tl-agent-app .tl-account-menu-name {
	max-width: 40vw;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.tl-agent-app .tl-account-menu-list {
	position: absolute;
	top: calc(100% - 8px);
	right: 32px;
	z-index: 30;
	min-width: 220px;
	max-width: calc(100vw - 32px);
	padding: 6px;
	background: var(--tl-white);
	border: 1px solid var(--tl-line);
	border-radius: 12px;
	box-shadow: var(--tl-shadow-pop);
}
/* No-JS fallback: closed until something inside has focus, so the list never flashes open
   before agent-app.js runs. Once .is-enhanced, the [hidden] attribute (section 2b) rules. */
.tl-agent-app .tl-account-menu:not(.is-enhanced) .tl-account-menu-list { display: none; }
.tl-agent-app .tl-account-menu:not(.is-enhanced):focus-within .tl-account-menu-list { display: block; }
.tl-agent-app .tl-account-menu-link {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 0 14px;
	border-radius: var(--tl-radius-btn);
	color: var(--tl-navy);
	font-size: 16px;
	font-weight: 500;
	white-space: nowrap;
	/* Same as the side panel links; also replaces Astra's a { transition: all .2s } so the focus ring
	   doesn't animate in from navy/0 offset. */
	transition: background-color 0.15s ease, color 0.15s ease;
}
/* Hover/focus = the side panel's hover (wash, navy), so it never looks like the current page. */
.tl-agent-app .tl-account-menu-link:is(:hover, :focus) { background: var(--tl-wash); color: var(--tl-navy); }
.tl-agent-app .tl-account-menu-divider {
	height: 1px;
	margin: 6px 8px;
	background: var(--tl-line);
}

/* Rail (desktop). The same <nav> becomes bottom tabs under 900px (section 7). */
.tl-agent-app .tl-agent-nav {
	grid-area: nav;
	position: sticky;
	top: var(--tl-topbar-h);
	display: flex;
	flex-direction: column;
	height: calc(100vh - var(--tl-topbar-h));
	padding: 32px 16px 24px;
	background: var(--tl-white);
	border-right: 1px solid var(--tl-line);
}
.tl-agent-app .tl-agent-nav-heading {
	margin: 0 0 12px 16px;
	font-size: 15px;
	color: var(--tl-body);
}
.tl-agent-app .tl-agent-nav-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
}
.tl-agent-app .tl-agent-nav-link {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 48px;
	padding: 0 16px;
	border-radius: 10px;
	color: var(--tl-navy);
	font-size: 16px;
	font-weight: 500;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.tl-agent-app .tl-agent-nav-link .tl-icon { width: 24px; height: 24px; }
.tl-agent-app .tl-agent-nav-link:hover { background: var(--tl-wash); color: var(--tl-navy); }
/* Current page: the side panel and the username menu share this one highlight. */
.tl-agent-app .tl-agent-nav-item.is-current .tl-agent-nav-link,
.tl-agent-app .tl-account-menu-item.is-current .tl-account-menu-link { background: var(--tl-teal-soft); color: var(--tl-teal-hover); font-weight: 600; }
.tl-agent-app .tl-agent-nav-label { flex: 1; }
/* Shell links after a pointer click (decision #81 §10): no ring. Beats Astra main.min.css
   a:focus { outline: thin dotted } (0,1,1) at (0,4,0), no !important; it shows after a click and
   when Back restores the page from cache with focus still on the link. Covers the skip link, the
   logo, the account menu toggle + links and the rail links (= the phone tab bar under 900px).
   Keyboard focus still matches :focus-visible and gets the shared teal ring (section 3); the skip
   link's show-on-focus rule above sets no outline, so it still appears on Tab. */
.tl-agent-app :is(.tl-skip-link, .tl-agent-logo, .tl-account-menu-toggle, .tl-account-menu-link, .tl-agent-nav-link):focus:not(:focus-visible) { outline: 0; }
.tl-agent-app .tl-agent-nav-item-logout {
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid var(--tl-line);
}

/* Count badge (rail). The inbox tabs' .tl-count bubble went in decision #81 §13 (plain numbers, 5b). */
.tl-agent-app .tl-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 30px;
	height: 30px;
	padding: 0 8px;
	border-radius: var(--tl-radius-pill);
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
}
.tl-agent-app .tl-badge { background: var(--tl-teal-soft); color: var(--tl-teal-hover); }
.tl-agent-app .tl-agent-nav-item.is-current .tl-badge { background: var(--tl-white); }

/* Main column. */
.tl-agent-app .tl-agent-main {
	grid-area: main;
	min-width: 0;
	padding: 40px 36px 64px 44px;
}

/* ---- 5. Page head and inbox ----------------------------------------------- */
.tl-agent-app .tl-page-head { margin: 0 0 28px; }
.tl-agent-app .tl-page-title {
	font-size: 44px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--tl-navy);
}
.tl-agent-app .tl-page-sub { margin-top: 4px; font-size: 18px; color: var(--tl-body); }

/* Empty state card. */
.tl-agent-app .tl-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 720px;
	margin: 0 auto;
	padding: 72px 44px 40px;
	text-align: center;
	box-shadow: var(--tl-shadow-card);
}
.tl-agent-app .tl-empty-icon { display: flex; color: var(--tl-teal); margin: -12px 0 8px; }
.tl-agent-app .tl-empty-icon .tl-icon { width: 124px; height: 109px; }
.tl-agent-app .tl-empty-title {
	font-size: 40px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--tl-navy);
}
.tl-agent-app .tl-empty-text {
	max-width: 480px;
	margin: 16px auto 0;
	font-size: 19px;
	line-height: 1.55;
	color: var(--tl-body);
}
.tl-agent-app .tl-empty-actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
	max-width: 344px;
	margin: 28px auto 0;
}
/* The buttons are the shared .tl-btn (section 3) untouched: 48px, 16px/600, 0 24px, 8px radius,
   primary/outline colours. The card only stretches them to its 344px column and sets no type
   size (29 Sep: an 18px/17px override here made them read larger than the other agent buttons). */
.tl-agent-app .tl-empty-actions .tl-btn { width: 100%; }
.tl-agent-app .tl-inbox-note {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	align-self: stretch;
	margin: 28px 0 0;
	padding-top: 24px;
	border-top: 1px solid var(--tl-line);
	font-size: 16px;
	color: var(--tl-mute);
}
.tl-agent-app .tl-empty .tl-inbox-note { margin-left: 4%; margin-right: 4%; }
.tl-agent-app .tl-inbox-note .tl-icon { width: 22px; height: 22px; }
/* Note parts (decision #81 §9, UX P3-8): span.tl-inbox-note-text > span.tl-inbox-note-part per
   sentence. From 640 each sentence starts its own line (the 45-day rule, then where unlocked leads
   go), so the desktop note is two short lines instead of one long run-on (and 640-899 no longer
   breaks mid-sentence). Under 640 the parts stay inline: one paragraph, as in the phone mock, which
   is a line shorter at 320-390 than two separately wrapped sentences. One-sentence notes are
   unchanged. */
.tl-agent-app .tl-inbox-note-text { min-width: 0; }
@media (min-width: 640px) {
	.tl-agent-app .tl-inbox-note-part { display: block; }
}

/* ---- 5b. Inbox: tabs, sort, cards, ⋯ menu (decision #81, BRIEF-inbox-tidy.md §1-§3) -----------
   Mocks: Images/inbox-tabs-mockup.png (phones, option A) and inbox-tabs-desktop-mockup.png (desktop,
   option A), except the mock's tint on new rows: every card is white at rest, NEW ones too; the
   wash tint shows on hover (pointer devices only, so a tap never leaves it stuck) and on keyboard
   focus of the card link; new leads are marked by the NEW label and dot alone (§3).
   Markup: templates/agent-inbox.php, includes/lead-pass.php triplead_pass_row_menu_html().
   - div.tl-inbox(.tl-no-js | .tl-js) root; agent-app.js swaps tl-no-js for tl-js once every ⋯ menu
     runs. The plain "Not for me" form ([data-tl-row-fallback]) shows only under .tl-no-js, the ⋯
     button only under .tl-js, whatever display rules do to [hidden].
   - div.tl-inbox-top grid (§13, mock Images/inbox-sort-mockup.png): children head, tabs, view
     (nav.tl-inbox-view), menu (div.tl-inbox-sortmenu), sort (form.tl-inbox-sort).
     900+: heading | sort select, tabs under them. 768-899: heading, then tabs | sort select.
     Below 768 with JS (.tl-inbox-sortmenu.is-enhanced, .tl-inbox-sort.has-sort-menu): the select
     goes and the sort icon button sits at the right of the heading line; under 360 the tabs give
     way to the view dropdown, with the sort icon beside it. Without JS below 768 (no classes): the
     select stays as the fallback (640-767 beside the tabs, under 640 under them, right) and under
     360 the view dropdown is a plain list of the four links. Never two selects side by side.
   - Tabs: light underline tabs, counts plain small numbers (no bubble, §13). The grey line is the
     list's inset shadow and the current tab's 3px teal bar its own inset shadow, so nothing hangs
     outside the list. From 360 all four fit one row (space-between, 8px floor); if a count ever
     grows past that the row scrolls sideways (JS scrolls the current one into view), the page
     never does. The ring sits inside the tab (-2px) so the scroller can't clip it.
   - Card: li is the positioning box. a.tl-inbox-card-link::after stretches over the whole li
     (z 1), so a click anywhere opens the lead; the ⋯ wrapper (z 2, z 5 while its menu is open, so
     the menu covers the following cards' overlays) sits above it as a SIBLING of the link.
     Focus ring for the card: on the overlay (-2px inside the card), so it outlines the whole card.
   - Layouts: 1360+ one row per lead in columns (title + dates | travellers | budget | shared |
     ⋯ | chevron), under 1360 a stacked card (title / facts on 1-2 wrapping lines / footer), ⋯ top
     right, chevron bottom right. Both are grids on the li: .tl-inbox-card-main is display: contents
     at every width (and .tl-inbox-card-facts in the columns), and placement is by grid-area. 900+ the rows share one bordered list with dividers; under 900 each lead is its own
     card (mobile mock).
   - Text colours: body (not mute) for everything on the card, because the wash hover would take
     mute under 4.5:1. Mute is for icons, the chevron and the "·" separator only. */

/* Top: heading, sort, tabs. */
.tl-agent-app .tl-inbox-top {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas: "head sort" "tabs tabs";
	column-gap: 24px;
	align-items: start;
}
.tl-agent-app .tl-inbox-top > .tl-page-head { grid-area: head; min-width: 0; margin-bottom: 24px; }
.tl-agent-app .tl-inbox-tabs { grid-area: tabs; min-width: 0; margin: 0 0 24px; }
.tl-agent-app .tl-inbox-sort { grid-area: sort; display: flex; align-items: center; gap: 8px; margin: 2px 0 0; }
/* The select uses the shared field skin (3b) and the agent chevron (5d); here only its width. */
.tl-agent-app .tl-inbox-sort .tl-inbox-sort-select { width: auto; min-width: 172px; font-weight: 600; }
/* Nothing to sort (§9): the form is [hidden] (fewer than 2 cards) or not printed (first-run card).
   The empty auto column is 0 wide, so dropping the gap gives the tabs (640-899: "tabs sort") and the
   heading the full width; the tabs' underline then runs to the right edge as on every other view. */
.tl-agent-app .tl-inbox-top:not(:has(> .tl-inbox-sort:not([hidden]))) { column-gap: 0; }

/* Tabs. */
.tl-agent-app .tl-inbox-tabs-list {
	display: flex;
	gap: 32px;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	box-shadow: inset 0 -1px 0 var(--tl-line);
}
.tl-agent-app .tl-inbox-tabs-list::-webkit-scrollbar { display: none; }
.tl-agent-app .tl-inbox-tabs-item { flex: none; margin: 0; }
.tl-agent-app .tl-inbox-tabs .tl-inbox-tab {
	display: flex;
	align-items: baseline; /* the smaller count sits on the label's baseline (centred, it rode 2px high) */
	gap: 6px;
	min-height: 48px;
	padding: 0 2px;
	border-radius: 6px 6px 0 0;
	background: none;
	color: var(--tl-body);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.15s ease, box-shadow 0.15s ease;
}
.tl-agent-app .tl-inbox-tabs .tl-inbox-tab:hover { color: var(--tl-navy); box-shadow: inset 0 -3px 0 var(--tl-line); }
.tl-agent-app .tl-inbox-tabs .tl-inbox-tab.is-current { color: var(--tl-teal); box-shadow: inset 0 -3px 0 var(--tl-teal); } /* teal on white 4.7:1 */
.tl-agent-app .tl-inbox-tabs .tl-inbox-tab:focus-visible { outline-offset: -2px; }
/* 81j (UX N1): agent-app.js focuses the current tab (else the first) when a mouse / tap "Not for me"
   empties the view, or the Undo bar closes with nothing left. That is :focus without :focus-visible,
   and Astra's a:focus { outline: thin dotted } (0,1,1) drew a dotted box round "Open 0". (0,5,0)
   turns it off for pointer focus only; the keyboard ring (section 3, offset -2px above) is kept. */
.tl-agent-app .tl-inbox-tabs .tl-inbox-tab:focus:not(:focus-visible) { outline: 0; }
/* Counts (§13): a plain small number after the label, the tab's own colour (body / navy on hover /
   teal when current: same contrast as the label), lighter weight. No bubble. */
.tl-agent-app .tl-inbox-tab .tl-inbox-tab-label { line-height: 48px; } /* centres the row in the 48px tab */
.tl-agent-app .tl-inbox-tab .tl-inbox-tab-count {
	color: inherit;
	font-size: 14px;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	line-height: 1;
}

/* View dropdown (§13): shown under 360px only (the tabs from 360). nav.tl-inbox-view >
   button.tl-inbox-view-toggle ([hidden] until agent-app.js runs) + ul.tl-inbox-view-list.
   Without JS the list is a plain bordered list of the four views (button stays [hidden]); with
   JS (.is-enhanced) it is the button's menu, [hidden] until opened, laid over the cards like the
   ⋯ menu (mock panel 3: full width of the button, 4px under it). The toggle wears the select
   skin (3b: 48px, line border, 10px radius, teal-bright hover, teal while open), since it stands
   in for one; the menu items share the ⋯ menu's item skin (below). */
.tl-agent-app .tl-inbox-view { display: none; position: relative; min-width: 0; margin: 0 0 16px; }
.tl-agent-app .tl-inbox-view.is-open { z-index: 6; }
.tl-agent-app .tl-inbox-view .tl-inbox-view-toggle {
	display: flex;
	align-items: center;
	gap: 4px;
	box-sizing: border-box;
	width: 100%;
	height: var(--tl-control-h);
	margin: 0;
	padding: 0 12px 0 14px;
	border: 1px solid var(--tl-line);
	border-radius: 10px;
	background: var(--tl-white);
	box-shadow: none;
	color: var(--tl-navy);
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-align: left;
	text-transform: none;
	white-space: nowrap;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.tl-agent-app .tl-inbox-view .tl-inbox-view-toggle:hover { border-color: var(--tl-teal-bright); background: var(--tl-white); color: var(--tl-navy); }
.tl-agent-app .tl-inbox-view .tl-inbox-view-toggle[aria-expanded="true"] { border-color: var(--tl-teal); background: var(--tl-white); color: var(--tl-navy); }
.tl-agent-app .tl-inbox-view .tl-inbox-view-toggle:focus:not(:focus-visible) { outline: 0; }
.tl-agent-app .tl-inbox-view-toggle-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tl-agent-app .tl-inbox-view-toggle-count { font-variant-numeric: tabular-nums; }
.tl-agent-app .tl-inbox-view-toggle .tl-icon { width: 20px; height: 20px; margin-left: auto; color: var(--tl-mute); transition: transform 0.15s ease; }
.tl-agent-app .tl-inbox-view-toggle[aria-expanded="true"] .tl-icon { transform: rotate(180deg); }
.tl-agent-app .tl-inbox-view-list {
	margin: 0;
	padding: 0;
	list-style: none;
	border: 1px solid var(--tl-line);
	border-radius: 10px;
	background: var(--tl-white);
	overflow: hidden;
}
.tl-agent-app .tl-inbox-view.is-enhanced .tl-inbox-view-list {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	padding: 4px 0;
	border-radius: 12px;
	box-shadow: var(--tl-shadow-pop);
}
.tl-agent-app .tl-inbox-view-item { margin: 0; }
.tl-agent-app .tl-inbox-view-item + .tl-inbox-view-item { border-top: 1px solid var(--tl-line); }
.tl-agent-app .tl-inbox-view-link-count { margin-left: auto; color: var(--tl-body); font-weight: 500; font-variant-numeric: tabular-nums; }
.tl-agent-app .tl-inbox-view-link.is-current .tl-inbox-view-link-count { color: inherit; }

/* Sort icon button + menu (§13): below 768px only, once agent-app.js has set it up (.is-enhanced);
   placed by the media queries at the end of 5b. A 44px square with the field border (mock panels
   1-2); hover / open as the ⋯ button (teal-soft, teal-hover icon), open adds the teal border.
   The menu is the ⋯ menu's popover (shared skin below), right-aligned under the button, headed
   "Sort"; future inbox filters join as more .tl-inbox-menu-group, divided by a line. */
.tl-agent-app .tl-inbox-sortmenu { display: none; position: relative; }
.tl-agent-app .tl-inbox-sortmenu.is-open { z-index: 6; }
.tl-agent-app .tl-inbox-sortmenu .tl-inbox-sortmenu-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--tl-line);
	border-radius: 10px;
	background: var(--tl-white);
	box-shadow: none;
	color: var(--tl-navy);
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.tl-agent-app .tl-inbox-sortmenu .tl-inbox-sortmenu-toggle .tl-icon { width: 22px; height: 22px; stroke-width: 2; }
.tl-agent-app .tl-inbox-sortmenu .tl-inbox-sortmenu-toggle:hover { border-color: var(--tl-teal-bright); background: var(--tl-teal-soft); color: var(--tl-teal-hover); }
.tl-agent-app .tl-inbox-sortmenu .tl-inbox-sortmenu-toggle[aria-expanded="true"] { border-color: var(--tl-teal); background: var(--tl-teal-soft); color: var(--tl-teal-hover); }
.tl-agent-app .tl-inbox-sortmenu .tl-inbox-sortmenu-toggle:focus:not(:focus-visible) { outline: 0; }
.tl-agent-app .tl-inbox-sortmenu .tl-inbox-sortmenu-toggle:focus-visible { outline-offset: 2px; }
.tl-agent-app .tl-inbox-menu-group + .tl-inbox-menu-group { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--tl-line); }
.tl-agent-app .tl-inbox-menu-heading {
	display: block;
	padding: 10px 18px 6px;
	color: var(--tl-mute); /* 4.55:1 on white */
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* The list. 900+: one bordered list, rows divided by a line (desktop mock). */
.tl-agent-app .tl-inbox-list-card { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.tl-agent-app .tl-inbox-list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--tl-line); border-radius: var(--tl-radius-card); background: var(--tl-white); }
.tl-agent-app .tl-inbox-card + .tl-inbox-card { border-top: 1px solid var(--tl-line); }
.tl-agent-app .tl-inbox-card:first-child { border-top-left-radius: calc(var(--tl-radius-card) - 1px); border-top-right-radius: calc(var(--tl-radius-card) - 1px); }
.tl-agent-app .tl-inbox-card:last-child { border-bottom-left-radius: calc(var(--tl-radius-card) - 1px); border-bottom-right-radius: calc(var(--tl-radius-card) - 1px); }
/* The footer note: left-aligned, outside the list box (desktop mock). Since inbox search UX P1 it is the last child of .tl-inbox-results, after the pager; it was inside the list card. */
.tl-agent-app :is(.tl-inbox-list-card, .tl-inbox-results) > .tl-inbox-note { align-items: flex-start; justify-content: flex-start; gap: 10px; margin: 16px 0 0; padding: 0 0 0 4px; border-top: 0; font-size: 15px; line-height: 1.5; text-align: left; }
.tl-agent-app .tl-inbox-pagebar + .tl-inbox-note { margin-top: 24px; } /* clear of the 40-44px pager buttons */
.tl-agent-app :is(.tl-inbox-list-card, .tl-inbox-results) > .tl-inbox-note .tl-icon { width: 20px; height: 20px; margin-top: 1px; }

/* Card. */
.tl-agent-app .tl-inbox-card { position: relative; margin: 0; background: var(--tl-white); color: var(--tl-body); transition: background-color 0.15s ease; }
.tl-agent-app .tl-inbox-card.is-busy { opacity: 0.55; pointer-events: none; transition: opacity 0.15s ease; }
/* Hover / keyboard tint (decision #81 check, 25 Oct): teal-soft, the agent app's control hover. The
   wash it had (1.06:1 on white; teal-soft 1.14:1) applied but was invisible on most screens. Every
   tab, muted cards too. Not while the pointer is on the ⋯ button or its open menu (both inside
   .tl-inbox-card-actions): ⋯ keeps its own teal-soft hover on a white card. Mouse only
   (hover: hover), so a tap never leaves it; keyboard via the link's :focus-visible. */
@media (hover: hover) {
	.tl-agent-app .tl-inbox-card:hover:not(:has(.tl-inbox-card-actions:hover)) { background: var(--tl-teal-soft); }
	.tl-agent-app .tl-inbox-card:hover:not(:has(.tl-inbox-card-actions:hover)) .tl-inbox-card-chevron { color: var(--tl-teal); }
	.tl-agent-app .tl-inbox-card:hover:not(:has(.tl-inbox-card-actions:hover)) .tl-inbox-status:not(.tl-inbox-status--new) { background: var(--tl-white); }
}
.tl-agent-app .tl-inbox-card:has(.tl-inbox-card-link:focus-visible) { background: var(--tl-teal-soft); }
/* The soft labels (CONTACTED teal-soft, TAKEN / CLOSED / EXPIRED / PASSED neutral-soft) would melt into
   the tint: white while it shows (teal-hover 6.38:1, body 7.23:1). Text on the tint: navy 12.6, body
   6.33, teal-hover 5.58; mute is only icons and the decorative "·" (3.98, over the 3:1 floor). */
.tl-agent-app .tl-inbox-card:has(.tl-inbox-card-link:focus-visible) .tl-inbox-status:not(.tl-inbox-status--new) { background: var(--tl-white); }
.tl-agent-app .tl-inbox-card-main { min-width: 0; }
.tl-agent-app .tl-inbox-card .tl-inbox-card-title { margin: 0; color: var(--tl-navy); font-size: 20px; font-weight: 700; line-height: 1.3; overflow-wrap: break-word; }
.tl-agent-app .tl-inbox-card .tl-inbox-card-link,
.tl-agent-app .tl-inbox-card .tl-inbox-card-link:is(:hover, :focus) { color: inherit; text-decoration: none; }
.tl-agent-app .tl-inbox-card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
/* The link's own outline is off in every focus state: (0,4,0) beats Astra's a:focus { outline: thin
   dotted }, drawn round the title after a mouse / tap "Not for me" (the JS focuses the next card) or
   Back. The ring is the overlay's, keyboard only (STYLE-CHECKLIST §10). */
.tl-agent-app .tl-inbox-card .tl-inbox-card-link:is(:focus, :focus-visible) { outline: 0; }
.tl-agent-app .tl-inbox-card .tl-inbox-card-link:focus-visible::after { outline: 2px solid var(--tl-teal); outline-offset: -2px; }
.tl-agent-app .tl-inbox-card-dest { overflow-wrap: anywhere; } /* one unbroken place name (QA06) still wraps */
/* "and N more" never splits across lines, at any width (#82 N2: it was 1360+ only, so phones read
   "UAE, Oman, Qatar and / 2 more"). The unopened dot after it is word-joined to "more". */
.tl-agent-app .tl-inbox-card-more-count { white-space: nowrap; }
.tl-agent-app .tl-inbox-card-title .tl-ideas-pill { padding: 1px 10px; font-size: 16px; }
.tl-agent-app .tl-inbox-card.is-muted .tl-inbox-card-dest { color: var(--tl-body); }

/* Status label: small, uppercase, compact. The word is printed in sentence case (screen readers
   don't hear it: aria-hidden; the link name carries it after the destination). 13px is the text
   floor (STYLE-CHECKLIST §3). NEW: white on teal 4.7:1; CONTACTED teal-hover on teal-soft 5.6:1;
   TAKEN / CLOSED / EXPIRED / PASSED body on neutral-soft 6.4:1 (the quiet ones). */
.tl-agent-app :is(.tl-inbox-status, .tl-lead-status) {
	display: inline-block;
	margin: 0 8px 0 0;
	padding: 3px 7px;
	border-radius: 6px;
	background: var(--tl-neutral-soft);
	color: var(--tl-body);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
	vertical-align: 3px;
}
.tl-agent-app .tl-inbox-status--new { background: var(--tl-teal); color: var(--tl-white); }
.tl-agent-app .tl-inbox-status--contacted { background: var(--tl-teal-soft); color: var(--tl-teal-hover); }
/* Unopened dot (decision #81 §12: any age, with or without the NEW label; decorative, the link name
   says "unopened"). It must never wrap onto a line of its own ("London, United Kingdom" then "•"):
   the template's span.tl-inbox-card-dot follows the destination after a space, and Chrome breaks
   after that space whatever we do (nowrap on the link, a word joiner in the dot). So the span is
   hidden and the dot is drawn at the end of the destination itself, from the card's .is-unopened
   (same rule, same row): a word joiner (U+2060, no line break either side) holding the 8px circle as
   its background, centred on the line, 1px low like the old vertical-align. 11px gap = the label's
   8px margin + its space, so NEW-to-destination and destination-to-dot read the same. */
.tl-agent-app .tl-inbox-card-dot { display: none; }
.tl-agent-app .tl-inbox-card.is-unopened .tl-inbox-card-dest::after {
	content: "\2060";
	margin: 0 0 0 11px;
	padding: 0 4px;
	background: radial-gradient(circle closest-side, var(--tl-teal) 92%, transparent 100%) 50% calc(50% + 1px) / 8px 8px no-repeat;
	forced-color-adjust: none;
}
/* F1 (ux-review final check, 0.24.100): after an "Open to ideas" pill the word joiner doesn't hold,
   because the pill is an atomic inline box and Chrome may break beside it (JS off at 1360 the dot
   sat alone under the pill). A pill-only destination doesn't wrap between pill and dot; the pill's
   own text still can, and it leaves room for the dot (11px margin + 8px), so nothing overflows. */
.tl-agent-app .tl-inbox-card.is-unopened .tl-inbox-card-dest:has(> .tl-ideas-pill) { white-space: nowrap; }
.tl-agent-app .tl-inbox-card.is-unopened .tl-inbox-card-dest > .tl-ideas-pill { max-width: calc(100% - 19px); white-space: normal; }

/* Facts and footer. */
.tl-agent-app .tl-inbox-card-ideas { margin: 2px 0 0; }
.tl-agent-app .tl-inbox-card-facts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 8px 0 0; color: var(--tl-body); font-size: 16px; line-height: 1.45; }
.tl-agent-app .tl-inbox-card-fact { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.tl-agent-app .tl-inbox-card .tl-inbox-row-text { min-width: 0; overflow-wrap: break-word; }
/* Decision #82: the budget's worked-out "≈" line (span.tl-inbox-card-approx) sits on its own line under
   the budget, in the text column (the 1360+ footer's icon | text grid), at the footer's 15px. Body colour,
   not mute: mute drops under 4.5:1 on the card's hover tint (see the passed foot below). */
.tl-agent-app .tl-inbox-card-fact--budget { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 8px; }
.tl-agent-app .tl-inbox-card-approx { grid-column: 2; min-width: 0; font-size: 15px; line-height: 1.45; overflow-wrap: break-word; }
/* A2 follow-up (option B, Daniel 13 Nov): the flights line is the budget fact's third row: the plane icon in the icon
   column (the facts' 18px mute icon, set below; 6px down to sit on the line after the 4px gap), the words in the
   text column at the ≈ line's 15px, 4px under it. Body colour, as the ≈ line (4.5:1+ on the hover tint). */
.tl-agent-app .tl-inbox-card-fact--budget > .tl-inbox-card-flights-icon { grid-column: 1; }
.tl-agent-app .tl-inbox-card .tl-inbox-card-fact--budget > .tl-icon.tl-inbox-card-flights-icon { margin-top: 6px; }
.tl-agent-app .tl-inbox-card-flights { grid-column: 2; min-width: 0; margin-top: 4px; font-size: 15px; line-height: 1.45; overflow-wrap: break-word; }
/* Trello 45 (D1): span.tl-inbox-card-length "Length: 2–3 weeks" is the when fact's second row, the Flights
   line's shape without an icon: the when fact becomes the budget fact's icon | text grid (only when the line
   is there, so a card without it keeps the plain flex fact), the line in the text column under the dates at
   the Flights line's 15px / 1.45, 4px under it, body colour (4.5:1+ on the hover tint). align-content: start:
   from 600 to 899 the facts share a flex row and stretch to the tallest (the budget fact with its ≈ and
   Flights lines); without it the grid would share that height out and drop the line under a gap. */
.tl-agent-app .tl-inbox-card-fact--when:has(> .tl-inbox-card-length) { display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: start; gap: 0 8px; }
.tl-agent-app .tl-inbox-card-length { grid-column: 2; min-width: 0; margin-top: 4px; font-size: 15px; line-height: 1.45; overflow-wrap: break-word; }
/* Decision #85: p.tl-inbox-card-activity, Adventure plans with activities only: "Adventure" (the
   footer's 15px body text) + the first activity as a small tag + "+N". The tag is the card's label
   family (the status label's 6px radius and 13px floor, not a 999px pill: a long admin-made name may
   wrap inside it at 320 or in the 1360+ title column), teal-hover on teal-soft 5.6:1, 600 not
   uppercase (it's a name, not a status). The line wraps between its parts, never past the card.
   Placed by grid-area "act" in both card layouts below (an unplaced item would get an implicit column). */
.tl-agent-app .tl-inbox-card-activity { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; margin: 8px 0 0; color: var(--tl-body); font-size: 15px; line-height: 1.45; }
.tl-agent-app .tl-inbox-card-activity-tag { min-width: 0; padding: 2px 7px; border-radius: 6px; background: var(--tl-teal-soft); color: var(--tl-teal-hover); font-size: 13px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
/* A tag long enough to fill the line leaves room for its "+N" (36px: 8px gap + "+12" at 13px), so
   "+N" never sits alone on a line under it; the tag's text wraps instead. */
.tl-agent-app .tl-inbox-card-activity-tag:has(+ .tl-inbox-card-activity-more) { max-width: calc(100% - 36px); }
.tl-agent-app .tl-inbox-card-activity-more { color: var(--tl-body); font-size: 13px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
/* 0.24.316: "Would love to do" + the first pick + "+N" (p.tl-inbox-card-activity--love) is the same line
   in a row of its own ("love", under "act" in both card layouts), so an Adventure plan with activities
   and picks shows both lines instead of one on top of the other. (0,3,0), over the layouts' "act". */
.tl-agent-app .tl-inbox-card .tl-inbox-card-activity--love { grid-area: love; }
.tl-agent-app .tl-inbox-card .tl-inbox-card-activity + .tl-inbox-card-activity--love { margin-top: 4px; }
/* On the card's hover / focus tint the tag goes white, as the soft status labels do. */
@media (hover: hover) {
	.tl-agent-app .tl-inbox-card:hover:not(:has(.tl-inbox-card-actions:hover)) .tl-inbox-card-activity-tag { background: var(--tl-white); }
}
.tl-agent-app .tl-inbox-card:has(.tl-inbox-card-link:focus-visible) .tl-inbox-card-activity-tag { background: var(--tl-white); }
/* Muted cards (Taken / Closed / Expired): the quiet label colours, as the ideas pill there. */
.tl-agent-app .tl-inbox-card.is-muted .tl-inbox-card-activity-tag { background: var(--tl-neutral-soft); color: var(--tl-body); }
.tl-agent-app .tl-inbox-card :is(.tl-inbox-card-fact, .tl-inbox-card-foot) > .tl-icon { width: 18px; height: 18px; margin-top: 2px; color: var(--tl-mute); stroke-width: 1.6; }
.tl-agent-app .tl-inbox-card-foot { display: flex; flex-wrap: wrap; align-items: flex-start; column-gap: 6px; margin: 10px 0 0; color: var(--tl-body); font-size: 15px; line-height: 1.45; }
.tl-agent-app .tl-inbox-card-foot > .tl-icon { margin-right: 2px; }
.tl-agent-app .tl-inbox-card-sep { color: var(--tl-mute); }
/* Passed foot: the reason at the footer size, body colour even for "No reason given" (the lead page's
   passed meta does the same): mute would drop under 4.5:1 on the hover tint. */
.tl-agent-app .tl-inbox-card .tl-inbox-card-foot .tl-inbox-row-reason { font-size: inherit; color: var(--tl-body); }
.tl-agent-app .tl-inbox-card-chevron { display: flex; align-items: center; justify-content: center; color: var(--tl-mute); transition: color 0.15s ease; }
.tl-agent-app .tl-inbox-card-chevron .tl-icon { width: 20px; height: 20px; }

/* ⋯ button and its menu. (0,3,0) and up beats Astra's bare button rules in every state. */
.tl-agent-app .tl-inbox-card-actions { position: relative; z-index: 2; }
.tl-agent-app .tl-inbox-card.is-menu-open .tl-inbox-card-actions { z-index: 5; }
.tl-agent-app .tl-inbox-card .tl-inbox-card-more {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: transparent;
	box-shadow: none;
	color: var(--tl-navy);
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.tl-agent-app .tl-inbox-card .tl-inbox-card-more .tl-icon { width: 22px; height: 22px; }
.tl-agent-app .tl-inbox-card .tl-inbox-card-more:hover,
.tl-agent-app .tl-inbox-card .tl-inbox-card-more[aria-expanded="true"] { background: var(--tl-teal-soft); color: var(--tl-teal-hover); }
.tl-agent-app .tl-inbox-card .tl-inbox-card-more:focus-visible { outline-offset: -2px; }
/* The popover skin is shared with the phone sort menu (.tl-inbox-menu, §13), and the item skin with
   its items and the view dropdown's links, so all three menus look and behave the same. */
.tl-agent-app :is(.tl-inbox-card-menu, .tl-inbox-menu) {
	position: absolute;
	top: calc(100% + 4px);
	right: 0;
	min-width: 200px;
	max-width: calc(100vw - 32px);
	padding: 4px 0;
	border: 1px solid var(--tl-line);
	border-radius: 12px;
	background: var(--tl-white);
	box-shadow: var(--tl-shadow-pop);
}
.tl-agent-app :is(.tl-inbox-card-menu .tl-inbox-card-menu-item, .tl-inbox-menu .tl-inbox-menu-item, .tl-inbox-view .tl-inbox-view-link) {
	display: flex;
	align-items: center;
	gap: 8px;
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 0 18px;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--tl-navy);
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	text-align: left;
	text-decoration: none;
	text-transform: none;
	white-space: nowrap;
	cursor: pointer;
}
.tl-agent-app :is(.tl-inbox-card-menu .tl-inbox-card-menu-item, .tl-inbox-menu .tl-inbox-menu-item) + :is(.tl-inbox-card-menu-item, .tl-inbox-menu-item) { border-top: 1px solid var(--tl-line); }
/* Hover and focus: teal-soft, the inbox cards' tint (decision #81, 25 Oct; the wash it had was 1.06:1
   on white, invisible on most screens). Navy text 12.6:1 on it, the view count (body) 6.33:1; "Not
   for me" stays navy with its navy × (never a warning colour). Keyboard focus (:focus-visible) gets
   the tint and the teal ring, inside the item. Focus the JS moves after a click or tap (the first
   item) gets neither, and no Astra dotted a:focus outline: with the stronger tint, tinting it too
   showed two tinted rows once the pointer moved to another item. Same for the no-JS view list. */
.tl-agent-app :is(.tl-inbox-card-menu .tl-inbox-card-menu-item, .tl-inbox-menu .tl-inbox-menu-item, .tl-inbox-view .tl-inbox-view-link):focus { outline: 0; }
.tl-agent-app :is(.tl-inbox-card-menu .tl-inbox-card-menu-item, .tl-inbox-menu .tl-inbox-menu-item, .tl-inbox-view .tl-inbox-view-link):is(:hover, :focus-visible) { background: var(--tl-teal-soft); color: var(--tl-navy); }
.tl-agent-app :is(.tl-inbox-card-menu .tl-inbox-card-menu-item, .tl-inbox-menu .tl-inbox-menu-item, .tl-inbox-view .tl-inbox-view-link):focus-visible { outline: 2px solid var(--tl-teal); outline-offset: -2px; }
/* The current view / order (§13): teal label, bold, and tick (teal 4.74:1 on white), so it reads apart
   from a hovered row (tint, navy, no tick). Hovered or focused it keeps bold and tick on the tint in
   teal-hover (5.58:1 on teal-soft; plain teal would be 4.15). The tick sits at the right end, after
   the view's count. */
.tl-agent-app :is(.tl-inbox-menu .tl-inbox-menu-item, .tl-inbox-view .tl-inbox-view-link).is-current { color: var(--tl-teal); font-weight: 700; }
.tl-agent-app :is(.tl-inbox-menu .tl-inbox-menu-item, .tl-inbox-view .tl-inbox-view-link).is-current:is(:hover, :focus-visible) { color: var(--tl-teal-hover); }
.tl-agent-app :is(.tl-inbox-menu-tick, .tl-inbox-view-tick) { display: flex; margin-left: auto; color: inherit; }
.tl-agent-app .tl-inbox-view-link-count + .tl-inbox-view-tick { margin-left: 0; }
.tl-agent-app :is(.tl-inbox-menu-tick, .tl-inbox-view-tick) .tl-icon { width: 18px; height: 18px; stroke-width: 2.4; }
.tl-agent-app .tl-inbox-card-menu .tl-inbox-card-menu-item .tl-icon { width: 18px; height: 18px; color: var(--tl-navy); stroke-width: 2; }
/* JS on: never the plain fallback beside ⋯. JS off (or failed before the menus ran): no ⋯. */
.tl-agent-app .tl-inbox.tl-js [data-tl-row-fallback],
.tl-agent-app .tl-inbox.tl-no-js :is(.tl-inbox-card-more, .tl-inbox-card-menu) { display: none; }
.tl-agent-app .tl-inbox-row-actions { display: flex; justify-content: flex-end; }
.tl-agent-app .tl-inbox-row-actions form { display: flex; margin: 0; }
.tl-agent-app .tl-inbox-row-actions .tl-restore-btn { white-space: nowrap; }

/* 1360+: one row per lead, in columns (desktop mock). Not narrower: with the rail the columns got
   130-150px each at 1200-1280 and travellers, budgets and long titles ran to 3-5 lines.
   Decision #82: the budget column is wider (1.5fr, was 1.2) for its "≈" line; travellers 0.9 (1).
   #82 F1: the time column is a fixed 172px (18px clock + 8 + 146 of text: "Shared 23 hours ago" is
   145 at 15px), not 1.1fr (180 at 1360, 199 at 1440), and the title takes what that frees (1.3fr, was
   1.25): title 213 / 241 at 1360 / 1440 (was 205 / 226), travellers 148 / 167, budget 246 / 279. */
@media (min-width: 1360px) {
	.tl-agent-app .tl-inbox-card {
		display: grid;
		grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr) minmax(0, 1.5fr) 172px 44px 20px;
		/* The 1fr rows above and below take any extra height (a 3-line footer), so the title and its
		   dates stay together, centred, instead of the extra being shared out between them. */
		grid-template-rows: 1fr auto auto auto auto auto 1fr auto;
		/* Release C (UX-release-C P2-1): the note line is a row of its own under the columns, title to ⋯,
		   as below 1360; empty (0px high) on a card without a note. */
		grid-template-areas:
			".     party budget foot more chev"
			"title party budget foot more chev"
			"ideas party budget foot more chev"
			"when  party budget foot more chev"
			"act   party budget foot more chev"
			"love  party budget foot more chev"
			".     party budget foot more chev"
			"note  note  note   note note .";
		column-gap: 24px;
		align-items: center;
		padding: 18px 12px 18px 20px;
	}
	.tl-agent-app :is(.tl-inbox-card-main, .tl-inbox-card-facts) { display: contents; }
	.tl-agent-app .tl-inbox-card-title { grid-area: title; }
	/* #82 F1: the title stops at 2 lines, with "…" after the last word that fits (the link's
	   aria-label still has the whole name, and the lead page the full list of places). Not
	   positioned, so the link's overlay (z 1, contained by the li) and its focus ring aren't clipped. */
	.tl-agent-app .tl-inbox-card .tl-inbox-card-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
	/* The unopened dot on a cut title: the inline dot (.tl-inbox-card-dest::after) is on the hidden
	   third line, so a second dot waits at the right end of line 2.
	   - Room: the title keeps 19px on the right (the dot's 11px gap + 8px), so the text and "…" stop
	     short of it. A float can't make that room on line 2 alone: the -webkit-box contains its
	     floats, so a one-line title would grow to two lines.
	   - The waiting dot: the destination's ::before floats right into that padding (-19px margin)
	     under a 0-wide, one-line spacer (the link's ::before; not the title's, which the -webkit-box
	     would turn into a box of its own), so it sits on line 2. Its -1.3em margin-bottom keeps a
	     one-line title one line high; there line 2 is clipped and the dot with it.
	   - Not cut (2 lines): the inline dot shows, after the last word, and its padding runs on to the
	     right edge in the card's own background (inherited from the li, so it follows the hover /
	     focus tint and its transition), covering the waiting dot. The negative margin gives the
	     space back, so wrapping doesn't change. On a one-line title there's nothing to its right. */
	.tl-agent-app .tl-inbox-card.is-unopened :is(.tl-inbox-card-main, .tl-inbox-card-title, .tl-inbox-card-link, .tl-inbox-card-dest) { background-color: inherit; }
	.tl-agent-app .tl-inbox-card.is-unopened .tl-inbox-card-title { padding-right: 19px; }
	/* #82 short names: a long word that fits the column but not the text box (the dot's 19px off)
	   runs into that padding instead of breaking mid-word. "Thiruvananthapuram" is 200px ("...," 207)
	   and the text box 194px at 1360, so "Thiruvananthapuram, India" and "Thiruvananthapuram and 5
	   more" read "Thiruvananthapura / m ..." on unopened cards up to about 1395. The server's title
	   rules put a word that long first, on line 1. Known limits (typed places only): a word over
	   194px on the LAST line pushes the dot partly off the edge, and a word wider than the whole
	   column (~19+ letters) is clipped at the column edge. */
	.tl-agent-app .tl-inbox-card.is-unopened .tl-inbox-card-dest { overflow-wrap: normal; }
	.tl-agent-app .tl-inbox-card.is-unopened .tl-inbox-card-link::before { content: ""; float: right; width: 0; height: 1.3em; }
	.tl-agent-app .tl-inbox-card.is-unopened .tl-inbox-card-dest::before {
		content: "";
		float: right;
		clear: right;
		width: 19px;
		height: 1.3em;
		margin: 0 -19px -1.3em 0;
		background: radial-gradient(circle closest-side, var(--tl-teal) 92%, transparent 100%) 100% calc(50% + 1px) / 8px 8px no-repeat;
		forced-color-adjust: none;
	}
	.tl-agent-app .tl-inbox-card.is-unopened .tl-inbox-card-dest::after { margin-right: -400px; padding-right: 404px; background-color: inherit; background-position: 0 calc(50% + 1px); }
	/* Decision #82 option B (Daniel, 26 Oct): the label (NEW, and for consistency every other label:
	   CONTACTED / TAKEN / CLOSED / EXPIRED / PASSED) on its own compact line above the destination, so
	   the destination gets both lines of the column. A card with no label (an older Available lead)
	   has no empty line: the line is the label itself. The label is line 1 of the clamped box, so the
	   clamp is 3 there (label + 2 title lines), and the waiting dot's spacer is one label line taller
	   (13px x 1.2 + 6px padding + 4px gap = 25.6px, plus the title line), so the dot still waits on
	   the last title line. Phones and tablets keep the inline label. */
	.tl-agent-app .tl-inbox-card .tl-inbox-card-title .tl-inbox-status { display: block; width: fit-content; margin: 0 0 4px; vertical-align: baseline; }
	.tl-agent-app .tl-inbox-card .tl-inbox-card-title:has(.tl-inbox-status) { -webkit-line-clamp: 3; }
	.tl-agent-app .tl-inbox-card.is-unopened .tl-inbox-card-title:has(.tl-inbox-status) .tl-inbox-card-link::before { height: calc(13px * 1.2 + 6px + 4px + 1.3em); }
	.tl-agent-app .tl-inbox-card-ideas { grid-area: ideas; }
	.tl-agent-app .tl-inbox-card-fact--when { grid-area: when; margin-top: 4px; }
	/* Decision #85: the activity line under the dates, in the title column (empty row = 0 high). */
	.tl-agent-app .tl-inbox-card-activity { grid-area: act; margin-top: 6px; }
	.tl-agent-app .tl-inbox-card-fact--party { grid-area: party; }
	.tl-agent-app .tl-inbox-card-fact--budget { grid-area: budget; }
	.tl-agent-app .tl-inbox-card .tl-inbox-card-foot { grid-area: foot; display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 8px; margin: 0; }
	.tl-agent-app .tl-inbox-card-foot > .tl-icon { grid-row: 1 / span 2; margin-right: 0; }
	.tl-agent-app .tl-inbox-card-foot > span { grid-column: 2; }
	.tl-agent-app .tl-inbox-card-foot > .tl-inbox-card-sep { display: none; }
	.tl-agent-app .tl-inbox-card-actions { grid-area: more; }
	.tl-agent-app .tl-inbox-card-chevron { grid-area: chev; }
	/* No JS (#82 N1): the columns stay exactly as with JS, the ⋯ slot a fixed 44px, so the title keeps
	   its 213 / 241px at 1360 / 1440. The plain "Not for me" pill (119px) / "Move back to inbox"
	   button (199px) took an `auto` column there, which cut the title to 187 / 159px. It now sits on
	   a row of its own under the card's text, right-aligned under the ⋯ slot: the same place as JS
	   off under 1360, the same pill as the lead page, label and 44px tap target unchanged. A card
	   with no control (Contacted / ended) leaves that row empty, 0px high. */
	.tl-agent-app .tl-inbox.tl-no-js .tl-inbox-card {
		grid-template-rows: 1fr auto auto auto auto auto 1fr auto auto;
		grid-template-areas:
			".     party budget foot more chev"
			"title party budget foot more chev"
			"ideas party budget foot more chev"
			"when  party budget foot more chev"
			"act   party budget foot more chev"
			"love  party budget foot more chev"
			".     party budget foot more chev"
			"note  note  note   note note ."
			"nojs  nojs  nojs   nojs nojs .";
	}
	.tl-agent-app .tl-inbox.tl-no-js .tl-inbox-card-actions { grid-area: nojs; justify-self: end; margin: 12px 0 0; }
}

/* Under 1360: a stacked card (.tl-inbox-card-main is display: contents here too, so only the title
   line shares its width with ⋯: the facts and the footer get the card's full width, which keeps
   dates + travellers on one line at 390). ⋯ top right, centred on the title line (title 26px, ⋯
   44px: -9px); the chevron bottom right, on the footer line. */
@media (max-width: 1359px) {
	.tl-agent-app .tl-inbox-card {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 44px;
		grid-template-areas: "title more" "ideas ideas" "facts facts" "act act" "love love" "note note" "foot chev" "nojs nojs";
		column-gap: 8px;
		padding: 16px 8px 16px 20px;
	}
	.tl-agent-app .tl-inbox-card-main { display: contents; }
	.tl-agent-app .tl-inbox-card-title { grid-area: title; }
	.tl-agent-app .tl-inbox-card-ideas { grid-area: ideas; }
	.tl-agent-app .tl-inbox-card-facts { grid-area: facts; margin-right: 12px; }
	.tl-agent-app .tl-inbox-card-activity { grid-area: act; margin-right: 12px; } /* decision #85: full width, under the facts */
	/* Footer "·" never left hanging at a line end (UX-inbox-tidy P3-1). The markup's separator span is
	   hidden and the dot is drawn in the 16px gap before the second part instead; when that part wraps
	   to its own line the dot falls left of the footer's edge and overflow-x: clip hides it, so the
	   wrapped line reads "3 agents have the details" with no separator. "/ ''" keeps it silent, as
	   the span's aria-hidden did. Icon (900-1359): -8px keeps it 8px from "Shared", as before. */
	.tl-agent-app .tl-inbox-card .tl-inbox-card-foot { grid-area: foot; column-gap: 16px; overflow-x: clip; }
	.tl-agent-app .tl-inbox-card .tl-inbox-card-foot > .tl-icon { margin-right: -8px; }
	.tl-agent-app .tl-inbox-card-foot > .tl-inbox-card-sep { display: none; }
	.tl-agent-app .tl-inbox-card-foot > .tl-inbox-card-sep + span { position: relative; }
	.tl-agent-app .tl-inbox-card-foot > .tl-inbox-card-sep + span::before {
		content: "\00B7";
		content: "\00B7" / "";
		position: absolute;
		top: 0;
		left: -16px;
		width: 16px;
		color: var(--tl-mute);
		text-align: center;
	}
	.tl-agent-app .tl-inbox-card-actions { grid-area: more; margin: -9px 0; } /* counts as 26px: the title line sets the row */
	.tl-agent-app .tl-inbox-card-chevron { grid-area: chev; align-self: end; height: 22px; }
	/* No JS: the plain control on its own line under the card's text, right-aligned. */
	.tl-agent-app .tl-inbox.tl-no-js .tl-inbox-card-actions { grid-area: nojs; margin: 12px 0 0; }
}

/* Under 900: each lead its own card (mobile mock), 12px apart; the footer note under them. */
@media (max-width: 899px) {
	.tl-agent-app .tl-inbox-top > .tl-page-head { margin-bottom: 20px; }
	.tl-agent-app .tl-inbox-tabs { margin-bottom: 16px; }
	.tl-agent-app .tl-inbox-list { display: grid; gap: 12px; border: 0; border-radius: 0; background: none; }
	.tl-agent-app .tl-inbox-list > .tl-inbox-card { border: 1px solid var(--tl-line); border-radius: var(--tl-radius-card); }
	.tl-agent-app .tl-inbox-card { padding: 14px 6px 14px 16px; }
	.tl-agent-app :is(.tl-inbox-card-facts, .tl-inbox-card-activity) { margin-right: 10px; }
	.tl-agent-app .tl-inbox-card .tl-inbox-card-title { font-size: 19px; }
	.tl-agent-app .tl-inbox-card-foot > .tl-icon { display: none; } /* phone mock: no clock */
	.tl-agent-app :is(.tl-inbox-list-card, .tl-inbox-results) > .tl-inbox-note { padding-left: 0; }
}
/* Tablets (768-899): the sort select beside the tabs, under the heading. Without JS the form also
   carries its "Sort" button (264px), which left the tabs 16px short at 768, so there (no .is-enhanced)
   it goes under the tabs, right, as on phones. */
@media (max-width: 899px) and (min-width: 768px) {
	.tl-agent-app .tl-inbox-top { grid-template-areas: "head head" "tabs sort"; }
	.tl-agent-app .tl-inbox-sort { margin: 0; }
	.tl-agent-app .tl-inbox-top:has(> .tl-inbox-sort:not(.is-enhanced)) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "tabs" "sort"; }
	.tl-agent-app .tl-inbox-sort:not(.is-enhanced) { justify-self: end; margin: -4px 0 16px; }
}
/* Phones (below 768, §13, mock panels 1-3). With JS the sort is the icon button at the right end of
   the heading line and the select goes; without JS (no .is-enhanced / .has-sort-menu) the select is
   the fallback, under the tabs, right (as at 768-899 without JS). The button shares the
   head cell (justify-self end) instead of taking a column, so the "Requests that match your
   specialties." line still runs the full width under it (it starts below the 44px button) and the
   tabs' underline always runs edge to edge. -4px: centred on the 32px h1's 37px line (mock panel 1);
   the h1 keeps 60px clear of it. */
@media (max-width: 767px) {
	.tl-agent-app .tl-inbox-top { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "tabs" "sort"; column-gap: 0; }
	.tl-agent-app .tl-inbox-sortmenu.is-enhanced { display: block; grid-area: head; justify-self: end; align-self: start; margin: -4px 0 0 16px; }
	.tl-agent-app .tl-inbox-top:has(> .tl-inbox-sortmenu.is-enhanced:not([hidden])) > .tl-page-head .tl-page-title { padding-right: 60px; }
	.tl-agent-app .tl-inbox-sort.has-sort-menu { display: none; }
	.tl-agent-app .tl-inbox-sort { grid-area: sort; justify-self: end; margin: -4px 0 16px; }
}
/* Below 640: the four tabs share the row edge to edge (space-between, 8px floor), 15px labels and
   13px counts (the text floor). 360-389: 14px labels, so all four still fit with a three-digit
   Available and two-digit others (e.g. 128 / 23 / 14 / 9); today's counts fit at 15px with room. */
@media (max-width: 639px) {
	.tl-agent-app .tl-inbox-tabs-list { justify-content: space-between; gap: 8px; }
	.tl-agent-app .tl-inbox-tabs .tl-inbox-tab { gap: 4px; padding: 0; font-size: 15px; }
	.tl-agent-app .tl-inbox-tab .tl-inbox-tab-count { font-size: 13px; }
}
@media (max-width: 389px) {
	.tl-agent-app .tl-inbox-tabs .tl-inbox-tab { font-size: 14px; }
}
/* Under 360 (§13, mock panel 3): the view dropdown replaces the tabs, the sort icon beside it.
   81g1: here the icon grows to the toggle's 48px (--tl-control-h) and sits flush with its top,
   so the two line up top and bottom (44px elsewhere, where it sits alone on the heading line). */
@media (max-width: 359px) {
	.tl-agent-app .tl-inbox-top { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "head head" "view menu" "sort sort"; }
	.tl-agent-app .tl-inbox-tabs { display: none; }
	.tl-agent-app .tl-inbox-view { display: block; grid-area: view; }
	.tl-agent-app .tl-inbox-sortmenu.is-enhanced { grid-area: menu; justify-self: auto; margin: 0 0 0 12px; }
	.tl-agent-app .tl-inbox-sortmenu .tl-inbox-sortmenu-toggle { width: var(--tl-control-h); height: var(--tl-control-h); }
	.tl-agent-app .tl-inbox-top:has(> .tl-inbox-sortmenu.is-enhanced:not([hidden])) > .tl-page-head .tl-page-title { padding-right: 0; }
}

/* Lead page Taken pill (decision #14): quiet and clearly not "New". */
.tl-agent-app .tl-pill-taken { background: var(--tl-neutral-soft); color: var(--tl-body); box-shadow: inset 0 0 0 1px var(--tl-line); }
/* Match pill (#33): a quiet outline tag, never a status. Lead page only since decision #81
   (the inbox list dropped it). Own white fill (mute on white 4.55:1, teal-hover 6.38:1). */
.tl-agent-app .tl-match-pill {
	display: inline-flex;
	align-items: center;
	padding: 2px 9px;
	border: 1px solid var(--tl-line);
	border-radius: var(--tl-radius-pill);
	background: var(--tl-white);
	color: var(--tl-mute);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	white-space: nowrap;
}
.tl-agent-app .tl-match-pill--country {
	border-color: var(--tl-teal-bright); /* fallback */
	border-color: color-mix(in srgb, var(--tl-teal) 45%, var(--tl-white));
	color: var(--tl-teal-hover);
}
.tl-agent-app .tl-lead-head.is-muted .tl-match-pill { border-color: var(--tl-line); color: var(--tl-mute); }
/* BRIEF-21 "Open to ideas" (templates/agent-inbox.php, lead-detail.php; Daniel #14):
   - span.tl-ideas-pill: a plan with no destination, only the flag. The destination slot IS the
     pill: in the inbox row's destination line and in the lead page's h1. The look is the
     traveller's destination pill (teal-soft fill, teal-bright border, 8px radius, teal-hover
     text 6.1:1), smaller than the headline it replaces so it reads as a tag, not a place.
     Quiet on a Taken/ended row, like the rest of the row.
   - p.tl-ideas-note.tl-inbox-card-ideas: "Also open to other places" on its own line under the
     destination (inbox card), and the lead page's note. Body colour, not mute: the card's wash
     hover would take mute under 4.5:1 (body on wash 7.1:1). */
.tl-agent-app .tl-ideas-pill {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	padding: 3px 12px;
	border: 1px solid var(--tl-teal-bright);
	border-radius: var(--tl-radius-control);
	background: var(--tl-teal-soft);
	color: var(--tl-teal-hover);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: normal;
	vertical-align: middle;
	overflow-wrap: anywhere;
}
.tl-agent-app .tl-lead-title .tl-ideas-pill { padding: 6px 16px; font-size: 24px; line-height: 1.25; }
.tl-agent-app :is(.tl-inbox-card.is-muted, .tl-lead-head.is-muted) .tl-ideas-pill { border-color: var(--tl-line); background: var(--tl-neutral-soft); color: var(--tl-body); }
.tl-agent-app .tl-ideas-note { color: var(--tl-body); font-size: 15px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }

/* A tab with no leads (section.tl-inbox-none--{view}). Decision #81: the list's full width, so the
   card lines up with the tab line and the list it stands in for (it was a centred 720px card). */
.tl-agent-app .tl-inbox-none {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 32px 24px;
	text-align: center;
}
.tl-agent-app .tl-inbox-none-text { font-size: 17px; color: var(--tl-body); }
.tl-agent-app .tl-muted { color: var(--tl-mute); }

/* ---- 5c. Lead detail (desktop-mobile-lead-detail.png) --------------------- */
.tl-agent-app .tl-lead { max-width: 860px; }
/* Lead status: .has-status widens it (section 7d). */
/* a.tl-back-link, the plain name of the tab the agent came from ("Contacted", "Taken", "Passed", "Inbox"): the shared back link, section 7b. */
.tl-agent-app .tl-lead-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 4px 0 24px; }
.tl-agent-app .tl-lead-title { font-size: 48px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; color: var(--tl-navy); overflow-wrap: anywhere; }
.tl-agent-app .tl-lead-head .tl-pill { margin: 0; padding: 8px 30px; font-size: 18px; }
/* Match pill beside the status pill: 12px between the pills, 24px after the title. */
.tl-agent-app .tl-lead-head { column-gap: 12px; }
.tl-agent-app .tl-lead-title { margin-right: 12px; }
.tl-agent-app .tl-lead-head .tl-match-pill { padding: 4px 12px; font-size: 14px; }

/* Flash after an unlock attempt (colour from tl-notice-ok / -muted / -error), and the
   admin-preview note. */
.tl-agent-app :is(.tl-lead-flash, .tl-lead-admin-note) {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 20px;
	padding: 14px 18px;
	border-radius: 12px;
	font-size: 16px;
	line-height: 1.5;
}
.tl-agent-app .tl-lead-flash { font-weight: 600; }
.tl-agent-app .tl-lead-admin-note { background: var(--tl-wash); border: 1px solid var(--tl-line); color: var(--tl-body); }
.tl-agent-app :is(.tl-lead-flash, .tl-lead-admin-note) .tl-icon { width: 22px; height: 22px; margin-top: 1px; }

/* Cards and their titles. */
.tl-agent-app :is(.tl-lead, .tl-lead-main, .tl-lead-side) > .tl-card { margin: 0 0 20px; padding: 28px 28px 24px; }
:is(.tl-app, .tl-agent-app, .tl-slim) .tl-card-title { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.3; color: var(--tl-navy); }

/* Snapshot: two columns of facts with a divider. The dt steps aside
   (display:contents) so its icon and label land in separate grid cells. */
.tl-agent-app .tl-lead-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 20px; }
.tl-agent-app .tl-lead-facts-col { display: grid; align-content: start; gap: 22px; margin: 0; padding-right: 28px; }
.tl-agent-app .tl-lead-facts-col + .tl-lead-facts-col { padding: 0 0 0 28px; border-left: 1px solid var(--tl-line); }
.tl-agent-app .tl-lead-fact {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	grid-template-areas: "icon label" "icon value";
	align-items: start;
}
.tl-agent-app .tl-lead-fact-label { display: contents; }
.tl-agent-app .tl-lead-fact-label .tl-icon { grid-area: icon; width: 28px; height: 28px; color: var(--tl-navy); stroke-width: 1.5; }
/* Trello 57: the Cruise row's side-on ship (viewBox 32 x 24): the row icon's height (28 here, 20 on
   phones from the rule there), its own width (37.3 / 26.7), so it isn't squashed into the square. Same
   navy and 1.5 stroke (the same scale per viewBox unit as the 24-unit icons). Fits the 44 / 30px icon
   column, so the label doesn't move. (0,4,0), over the phone rule's width. */
.tl-agent-app .tl-lead-fact-label .tl-icon.tl-icon-cruise-ship { width: auto; aspect-ratio: 32 / 24; }
.tl-agent-app .tl-lead-fact-label span { grid-area: label; font-size: 15px; color: var(--tl-body); }
.tl-agent-app .tl-lead-fact-value { grid-area: value; display: flex; flex-direction: column; margin: 2px 0 0; min-width: 0; }
.tl-agent-app .tl-lead-fact-main { font-size: 20px; line-height: 1.35; color: var(--tl-navy); overflow-wrap: anywhere; }
.tl-agent-app .tl-lead-fact-sub { margin-top: 2px; font-size: 14px; color: var(--tl-mute); }

/* "More about this trip". */
.tl-agent-app .tl-lead-more { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--tl-line); }
/* ux m4 pre-check: if "More about this trip" moves out of the snapshot to its own block
   after the contact card, it becomes a card of its own instead of a divided section. */
.tl-agent-app :is(.tl-lead, .tl-lead-main) > .tl-lead-more {
	margin: 0 0 20px;
	padding: 24px 28px;
	border: 1px solid var(--tl-line);
	border-radius: var(--tl-radius-card);
	background: var(--tl-white);
}
.tl-agent-app .tl-lead-more-title { font-size: 17px; font-weight: 700; color: var(--tl-navy); }
.tl-agent-app .tl-lead-more-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px 28px; margin: 14px 0 0; }
.tl-agent-app .tl-lead-more-item { min-width: 0; }
/* The label / value list, shared with Account's "Plan and leads" dl.tl-plan-leads (#66 chunk 2 P4,
   STYLE-CHECKLIST §6 repeated components; this list is the reference). The stacked phone list
   (<=899, 10px rows) is shared too. Label 14 / 21px (the 1.5 it used to inherit, now explicit). */
.tl-agent-app :is(.tl-lead-more-label, .tl-plan-leads-label) { font-size: 14px; line-height: 1.5; color: var(--tl-mute); }
.tl-agent-app :is(.tl-lead-more-value, .tl-plan-leads-value) { margin: 2px 0 0; font-size: 16px; line-height: 1.45; color: var(--tl-navy); overflow-wrap: anywhere; }
/* Decision #85: "Matches your focus: Ski & snow" under the Trip type value (span.tl-lead-focus in the dd).
   Its own line, as a soft teal highlight rather than a muted note: the brief says the focus is
   "highlighted on matching leads", and it's the inbox activity tag's look (teal-hover on teal-soft
   5.6:1, 6px radius, 600) at the label size, 14px. Wraps at word gaps inside its box. */
.tl-agent-app .tl-lead-more-value .tl-lead-focus { display: block; width: fit-content; max-width: 100%; box-sizing: border-box; margin-top: 6px; padding: 2px 8px; border-radius: 6px; background: var(--tl-teal-soft); color: var(--tl-teal-hover); font-size: 14px; font-weight: 600; line-height: 1.45; overflow-wrap: break-word; }

/* Contact card. */
.tl-agent-app .tl-lead-contact-sub { margin-top: 4px; font-size: 17px; line-height: 1.5; color: var(--tl-body); }
.tl-agent-app .tl-contact-list { margin: 16px 0 0; }
.tl-agent-app .tl-contact-row {
	display: grid;
	grid-template-columns: 48px 120px minmax(0, 1fr);
	grid-template-areas: "icon label value";
	align-items: center;
	min-height: 56px;
	padding: 6px 0;
}
.tl-agent-app .tl-contact-row + .tl-contact-row { border-top: 1px solid var(--tl-line); }
.tl-agent-app .tl-contact-label { display: contents; }
.tl-agent-app .tl-contact-label .tl-icon { grid-area: icon; width: 26px; height: 26px; color: var(--tl-navy); stroke-width: 1.5; }
.tl-agent-app .tl-contact-label span { grid-area: label; font-size: 17px; color: var(--tl-body); }
.tl-agent-app .tl-contact-value { grid-area: value; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; margin: 0; min-width: 0; }
.tl-agent-app .tl-contact-text { font-size: 20px; line-height: 1.35; color: var(--tl-navy); overflow-wrap: anywhere; }
.tl-agent-app .tl-contact-row--name .tl-contact-text { font-weight: 700; }
/* The email and mobile values (a.tl-contact-link): data in the label / value rows, not links in copy,
   so they keep the value size and stay ununderlined until hover, as the agent About page's website
   value (traveller.css). A11 (5 Oct): left as they are and flagged for Daniel. */
.tl-agent-app .tl-contact-link { color: var(--tl-teal); }
.tl-agent-app .tl-contact-link:hover { text-decoration: underline; }
.tl-agent-app :is(.tl-contact-row--prefs, .tl-contact-row--call-time) .tl-contact-text { font-size: 17px; }

/* Copy buttons ship hidden and appear with JS. */
.tl-agent-app .tl-copy-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	margin: 0;
	min-width: 44px;
	padding: 0 12px;
	border: 1px solid var(--tl-line); /* QA polish: a visible 44px target, not bare text */
	border-radius: var(--tl-radius-btn);
	background: transparent;
	box-shadow: none;
	color: var(--tl-teal);
	font-family: inherit;
	font-size: 16px; /* buttons 16 / 700, STYLE-CHECKLIST §7 (A11; was 17 / 600, 15 on phones) */
	font-weight: 700;
	line-height: 1;
	text-transform: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease; /* not Astra's button "all" (§10; A11) */
}
.tl-agent-app .tl-copy-btn .tl-icon { width: 22px; height: 22px; }
.tl-agent-app .tl-copy-btn:hover,
.tl-agent-app .tl-copy-btn:focus { border-color: var(--tl-teal); background: var(--tl-teal-soft); color: var(--tl-teal-hover); }
.tl-agent-app .tl-copy-btn.is-copied { color: var(--tl-success); }

/* The four contact-card states (BRIEF-06b §6). */
.tl-agent-app .tl-lead-unlock-form { margin: 20px 0 0; }
.tl-agent-app .tl-btn-block { display: flex; width: 100%; }
/* "Get contact details" is the shared .tl-btn at 16 / 700 (STYLE-CHECKLIST §7; A11 dropped its 19px, 17 on phones). */
.tl-agent-app .tl-lead-unlock-note { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--tl-mute); text-align: center; }
/* VIS-02 (1 Oct; Daniel approved css-check's mock-up): a lead not yet unlocked shows ONE locked
   panel instead of the three blanked rows (their .is-locked / .tl-contact-hidden rules are deleted):
   div.tl-lead-locked > div.tl-lead-locked-head (span.tl-lead-locked-icon, p.tl-lead-locked-text),
   then (owner) the unchanged unlock form and the permanent / first-3 note. A wash panel with a
   line border; a 40px teal-soft disc with the lock; the note in body colour, left-aligned
   (mute on wash would be 4.28:1). Unlocked leads keep the full rows. No sticky bar. */
.tl-agent-app .tl-lead-locked { margin-top: 16px; padding: 18px 20px 16px; border: 1px solid var(--tl-line); border-radius: var(--tl-radius-card); background: var(--tl-wash); }
.tl-agent-app .tl-lead-locked-head { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; column-gap: 12px; }
.tl-agent-app .tl-lead-locked-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--tl-teal-soft); color: var(--tl-teal-hover); }
.tl-agent-app .tl-lead-locked-icon .tl-icon { width: 20px; height: 20px; }
.tl-agent-app .tl-lead-locked-text { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.45; color: var(--tl-navy); }
.tl-agent-app .tl-lead-locked .tl-lead-unlock-form { margin-top: 16px; }
.tl-agent-app .tl-lead-locked .tl-lead-unlock-note { margin: 10px 0 0; color: var(--tl-body); text-align: left; }
/* Monthly limit reached (#66 §4, chunk 2 P1/P2): p.tl-lead-limit#tl-lead-limit > span + a.tl-lead-limit-link,
   where the "Get contact details" form was (its 16px top margin). A white box on the locked
   panel's wash: 1px --tl-line border, the card radius (--tl-radius-card, 14 at every width: the
   agent app's settled card radius, STYLE-CHECKLIST "Agent app"; P2, was 10px). Padding 13 / 16:
   the link's 11px hit padding and its focus ring stay inside the border, and one row comes to
   about 48px, the height of the button it stands in for. The sentence in body colour, 15 / 1.5.
   Then the arrow link (§8, the For agents F10 / homepage M6b look): 15 / 600 / 22,
   --tl-arrow-link-color (teal, on white), --tl-arrow-link-hover plus underline on hover, the 15px
   --tl-i-arrow-right-ui mask 4px after the text, 44px hit area from 11px padding cancelled by
   margins, ring at offset 0 on an 8px radius. One row when it fits (1440); on phones the
   sentence wraps and the link takes its own row. */
.tl-agent-app .tl-lead-limit {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 12px; /* rows: the link's 11px hit padding and ring clear the sentence above */
	margin: 16px 0 0;
	padding: 13px 16px;
	border: 1px solid var(--tl-line);
	border-radius: var(--tl-radius-card);
	background: var(--tl-white);
	color: var(--tl-body);
	font-size: 15px;
	line-height: 1.5;
}
/* The link itself: the agent app's arrow link, section 7b (A11 moved it there unchanged). */
/* Taken / expired: the card goes quiet. */
.tl-agent-app .tl-lead-contact.is-muted { background: var(--tl-wash); box-shadow: none; }
.tl-agent-app .tl-lead-contact.is-muted .tl-card-title { color: var(--tl-body); }
.tl-agent-app .tl-lead-contact-taken { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 17px; line-height: 1.5; color: var(--tl-body); }
.tl-agent-app .tl-lead-contact-taken .tl-icon { width: 22px; height: 22px; color: var(--tl-mute); }
.tl-agent-app .tl-lead-contact.is-muted .tl-lead-contact-gone { background: var(--tl-white); }
.tl-agent-app .tl-lead-contacted-note {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 20px;
	padding: 14px 18px;
	border-radius: 12px;
	background: var(--tl-success-soft);
	color: var(--tl-success);
	font-size: 16px;
	font-weight: 600;
}
.tl-agent-app .tl-lead-contacted-note .tl-icon { width: 22px; height: 22px; }
.tl-agent-app .tl-lead-privacy { margin-top: 14px; font-size: 14px; line-height: 1.5; color: var(--tl-mute); }
.tl-agent-app .tl-lead-contact-gone { margin-top: 14px; padding: 16px 18px; border-radius: 12px; background: var(--tl-wash); font-size: 16px; line-height: 1.5; color: var(--tl-body); }
/* The stay note sits under the cards, centred, no divider (mock). */
.tl-agent-app .tl-inbox-note.tl-lead-stay-note { margin: -4px 0 20px; padding-top: 0; border-top: 0; } /* sits between cards since 6b: same 20px rhythm below */

/* 403 "not in your inbox", the gone lead and "You removed this lead" (PLAN-remove-lead §4: the same page). */
.tl-agent-app :is(.tl-lead-forbidden, .tl-lead-gone, .tl-lead-removed) { max-width: 720px; }
.tl-agent-app :is(.tl-lead-forbidden, .tl-lead-gone) .tl-back-link { margin-bottom: 16px; }
.tl-agent-app :is(.tl-lead-forbidden-card, .tl-lead-gone-card, .tl-lead-removed-card) { padding-top: 48px; }
/* Ended plan, agent still has the details (slice 10): the note is a muted notice;
   the contact card keeps the full unlocked look (no .is-muted). */
.tl-agent-app .tl-lead-ended-note { margin-bottom: 20px; }

/* ---- 5c-80. Closed plans and "Report a problem with this lead" (decision #80 §D, §E; 23 Oct) ----
   Markup: templates/lead-detail.php (contact card) and templates/lead-report.php (the report block).
   Every piece reuses an existing look; nothing new is drawn:
   - Closed, not unlocked: div.tl-lead-locked.tl-lead-closed is VIS-02's locked panel (lock disc +
     text, grid-centred), with div.tl-lead-closed-body holding the title (the panel's 16 / 600 navy
     line) and p.tl-lead-closed-sub (15 / 1.5 body, 2px under it). The card is .is-muted (wash), so the
     panel goes white there, as the passed panel and the gone note do.
   - Closed, unlocked: div.tl-lead-closed-kept (16px under the title) > the muted notice, then the
     report block; the "Contact this traveller directly" line follows 16px down.
   - The report block, div.tl-lead-report#report: after the privacy line it is a footer under a 1px
     --tl-line rule (20px down; 8px under the rule for the link, 20px for the form and the summary).
     Inside div.tl-lead-closed-kept there is no rule above it (it hangs off the note), and the form /
     summary close with a rule below instead, so the contact details start on a clean edge.
   - Links (a.tl-lead-report-link "Report a problem with this lead", a.tl-lead-report-edit "Edit
     report"): the app's plain "Back" link (7b: 15px teal-hover 600, 1px underline at 3px, 44px row),
     a quiet text action, never a button or an arrow link. Cancel is a.tl-form-cancel (7b) already.
   - The form reuses Account's field classes, which are scoped to .tl-agent-app (5d), not to the
     Account card, so they apply here as they are. Only the report's own spacing is set: 20px between
     fields (Account's .tl-form-card rhythm), the 4 reasons stacked at every width (sentences, not
     Account's short side-by-side choices), "Send report" / "Update report" at Account's Save width
     (220, full width under 900 like .tl-form-save). The footer is Account's .tl-form-actions as is.
   - The summary dl is the agent app's label / value list (5c "More about this trip": label 14 mute,
     value 16 navy, 2px apart), one column, 12px between rows. */
.tl-agent-app .tl-lead-contact.is-muted .tl-lead-closed { background: var(--tl-white); }
.tl-agent-app .tl-lead-closed-body { min-width: 0; }
.tl-agent-app .tl-lead-closed-sub { margin: 2px 0 0; font-size: 15px; line-height: 1.5; color: var(--tl-body); }

.tl-agent-app .tl-lead-closed-kept { margin-top: 16px; }
.tl-agent-app .tl-lead-closed-kept > .tl-lead-closed-note { margin: 0; }
.tl-agent-app .tl-lead-closed-kept + .tl-lead-contact-sub { margin-top: 16px; }

.tl-agent-app .tl-lead-report { margin-top: 20px; padding-top: 8px; border-top: 1px solid var(--tl-line); }
.tl-agent-app .tl-lead-report:is(.tl-lead-report--form, .tl-lead-report--done) { padding-top: 20px; }
.tl-agent-app .tl-lead-closed-kept > .tl-lead-report { margin-top: 4px; padding-top: 0; border-top: 0; }
.tl-agent-app .tl-lead-closed-kept > .tl-lead-report:is(.tl-lead-report--form, .tl-lead-report--done) { margin-top: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--tl-line); }
.tl-agent-app .tl-lead-report > .tl-lead-report-flash { margin: 0 0 12px; }
.tl-agent-app .tl-lead-closed-kept > .tl-lead-report--link > .tl-lead-report-flash { margin-top: 12px; }
.tl-agent-app .tl-lead-report-title { margin: 0; font-size: var(--tl-h3-size); font-weight: 700; line-height: var(--tl-h3-lh); letter-spacing: -0.01em; color: var(--tl-navy); }
.tl-agent-app .tl-lead-report-intro { margin: 4px 0 0; font-size: 16px; line-height: 1.5; color: var(--tl-body); }
.tl-agent-app .tl-lead-report > .tl-form-errors { margin: 16px 0 0; }
.tl-agent-app .tl-lead-report-form { margin: 20px 0 0; }
.tl-agent-app .tl-lead-report-form > * + * { margin-top: 20px; }
.tl-agent-app .tl-field--report-reason .tl-radios { flex-direction: column; gap: 0; }
.tl-agent-app .tl-field--report-reason .tl-field-error { margin: 4px 0 0; }
.tl-agent-app .tl-lead-report-submit { min-width: 220px; }
.tl-agent-app .tl-lead-report > .tl-lead-report-thanks { margin: 0; }
.tl-agent-app .tl-lead-report-summary { display: grid; gap: 12px; margin: 16px 0 0; }
.tl-agent-app .tl-lead-report-row { min-width: 0; }
.tl-agent-app .tl-lead-report-row > dt { font-size: 14px; font-weight: 400; line-height: 1.5; color: var(--tl-mute); }
.tl-agent-app .tl-lead-report-row > dd { margin: 2px 0 0; font-size: 16px; line-height: 1.45; color: var(--tl-navy); overflow-wrap: anywhere; }
.tl-agent-app .tl-lead-report-summary + .tl-lead-report-edit { margin-top: 8px; }
@media (max-width: 899px) {
	.tl-agent-app .tl-lead-report-submit { width: 100%; min-width: 0; }
}


/* ---- 5d. Profile forms: Specialties and Account (desktop-mobile-agent-specialties.png)
   Field classes (tl-field, tl-input, tl-label, tl-chips) also exist in traveller.css;
   both are scoped (.tl-agent-app here, .tl-tf-page there), and the two files never
   load on the same page, so neither can leak into the other. */
.tl-agent-app {
	--tl-i-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5h.01'/%3E%3C/svg%3E");
}
.tl-agent-app .tl-profile { max-width: 860px; }
.tl-agent-app .tl-profile .tl-page-head { margin-bottom: 24px; }
.tl-agent-app .tl-profile-form { margin: 0; }
.tl-agent-app .tl-profile .tl-card { margin: 0 0 20px; padding: 24px 28px; }
.tl-agent-app fieldset.tl-card,
.tl-agent-app fieldset.tl-field { min-width: 0; }
.tl-agent-app fieldset.tl-field { margin: 0; padding: 0; border: 0; }
.tl-agent-app .tl-optional { font-size: 0.8em; font-weight: 400; color: var(--tl-mute); }

/* Notices (shared with .tl-app, where they started). */
.tl-agent-app .tl-notice {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 20px;
	padding: 14px 18px;
	border-radius: 12px;
	font-size: 16px;
	line-height: 1.5;
}
.tl-agent-app .tl-notice .tl-icon { width: 22px; height: 22px; margin-top: 1px; }
.tl-agent-app .tl-notice-ok { background: var(--tl-success-soft); color: var(--tl-success); font-weight: 600; }
.tl-agent-app .tl-notice-muted { background: var(--tl-wash); border: 1px solid var(--tl-line); color: var(--tl-body); }
.tl-agent-app .tl-notice-error { background: var(--tl-danger-soft); color: var(--tl-danger); }
.tl-agent-app .tl-form-errors { display: block; }
.tl-agent-app .tl-notice-error:focus { outline: 2px solid var(--tl-danger); outline-offset: 2px; }
.tl-agent-app .tl-form-errors-title { font-weight: 700; }
.tl-agent-app .tl-form-errors-list { margin: 6px 0 0 20px; list-style: disc; }
.tl-agent-app .tl-form-errors-item { margin: 2px 0; }
/* Teal on the pink error wash is under 4.5:1, so the links take the error colour. Otherwise the
   inline link (STYLE-CHECKLIST §8): 1px underline at 3px, 2px on hover, colour fade only; hover
   --tl-danger-hover, as the Contact form's error links (pages.css P6). A11, 5 Oct. */
.tl-agent-app .tl-form-errors .tl-link { color: var(--tl-danger); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 0.15s ease; }
.tl-agent-app .tl-form-errors .tl-link:hover { color: var(--tl-danger-hover); text-decoration-thickness: 2px; }

/* ---- Specialties: chip cards ---- */
.tl-agent-app .tl-chip-card.has-error { border-color: var(--tl-danger); }
/* A legend on a bordered fieldset sits on the border line; floating it puts it back
   in normal flow inside the card. */
.tl-agent-app .tl-chip-card-legend { float: left; width: 100%; margin: 0; padding: 0; }
.tl-agent-app .tl-chip-card-legend + * { clear: both; }
.tl-agent-app .tl-chip-card-hint { margin-top: 4px; font-size: 16px; line-height: 1.5; color: var(--tl-body); }

/* Equal-width grid, as in the mock: 4 columns on wide desktop, as many 150px columns as
   fit in between, 2 columns on phones (section below). */
.tl-agent-app .tl-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 16px; }
.tl-agent-app .tl-chip {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-width: 0;
	min-height: 48px;
	padding: 6px 14px;
	border: 1px solid var(--tl-line);
	border-radius: 10px;
	background: var(--tl-white);
	color: var(--tl-body);
	font-size: 16px;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.tl-agent-app .tl-chip:hover { border-color: var(--tl-teal-bright); color: var(--tl-navy); }
/* The checkbox stays in the DOM and focusable, just not visible. */
.tl-agent-app .tl-chip-input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.tl-agent-app .tl-chip:has(.tl-chip-input:focus-visible) { outline: 2px solid var(--tl-teal); outline-offset: 2px; }
.tl-agent-app :is(.tl-chip-tick, .tl-chip-x) { display: none; flex: none; }
/* Checked: .is-checked from JS, or :has(:checked) without JS. Tint, border and text colour only:
   no weight change (a bolder label is wider, so it re-wrapped and the chip grew; Daniel, #85). */
.tl-agent-app .tl-chip:is(.is-checked, :has(.tl-chip-input:checked)) {
	border-color: var(--tl-teal-bright);
	background: var(--tl-teal-soft);
	color: var(--tl-teal-hover);
}
.tl-agent-app .tl-chip:is(.is-checked, :has(.tl-chip-input:checked)) :is(.tl-chip-tick, .tl-chip-x) { display: inline-flex; }
.tl-agent-app .tl-chip-tick {
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--tl-teal);
	color: var(--tl-white);
}
.tl-agent-app .tl-chip-tick .tl-icon { width: 14px; height: 14px; stroke-width: 3; }
.tl-agent-app .tl-chip-label { flex: 1; text-align: center; }
.tl-agent-app .tl-chip-x { color: var(--tl-teal); }
.tl-agent-app .tl-chip-x .tl-icon { width: 18px; height: 18px; }

/* Grid chips (label.tl-chip in div.tl-chips: trip types, Adventure focus, budget, regions, open to
   anywhere; not the country pills, which are li.tl-picker-chip in ul.tl-picker-chips). Fixed slots
   (Daniel, #85): the tick and the × sit absolutely in the chip's side padding, which is the same
   ticked and unticked, so ticking never changes the label's width, its wrapping or the chip's size,
   and no other chip moves. The label centres in the space between the slots and may wrap; a word
   longer than that space (only the 40-character stress name at the test widths) breaks inside the
   chip rather than run past it. The slots are as small as reads well (tick 18 at 5px from the
   border + 4px gap = 27px left; × 14 at 5px + 4px gap = 23px right; the label sits 2px right of
   centre), because every px they take comes off the label: the focus panel's cells go down to 138px
   between 601 and 1199 (measured, desktop scrollbar included), and the longest single words are
   Honeymoon 95px at 16px / 89 at 15, snorkelling 83 / 78, Canyoning and expedition 83 / 78. At 1440
   this keeps every trip type and budget label and Hiking / Safari on one line; the longer focus and
   region names take two lines ticked or not (they took two when ticked before).
   Under 400 there is no room for the × as well (see below). */
.tl-agent-app .tl-chips > .tl-chip { padding-right: 23px; padding-left: 27px; }
.tl-agent-app .tl-chips > .tl-chip .tl-chip-label { min-width: 0; overflow-wrap: anywhere; }
.tl-agent-app .tl-chips > .tl-chip :is(.tl-chip-tick, .tl-chip-x) { position: absolute; top: 50%; transform: translateY(-50%); }
.tl-agent-app .tl-chips > .tl-chip .tl-chip-tick { left: 5px; width: 18px; height: 18px; }
.tl-agent-app .tl-chips > .tl-chip .tl-chip-tick .tl-icon { width: 12px; height: 12px; }
.tl-agent-app .tl-chips > .tl-chip .tl-chip-x { right: 5px; }
.tl-agent-app .tl-chips > .tl-chip .tl-chip-x .tl-icon { width: 14px; height: 14px; }
/* Under 400 a 2-column chip is 106-141px inside its border: tick + label + × doesn't fit with the
   longer words (the × used to run into the next chip at 320 / 360). The × only repeats what a tap
   does (the whole chip toggles; the tick and fill say it's on), so it goes.
   SB-2 (Daniel, 28 Oct): a ticked label keeps the same right padding as an unticked one (it was
   16 / 16 unticked, 27 / 5 ticked: one-line text 6px from the border). So the tick slot is reserved
   on the left in both states, with a 14px tick (10px check) 3px inside the border + 3px gap = 20px,
   and the side padding stays at the old 32px total (20 / 12; 30 = 20 / 10 under 360). The label
   space is exactly what the unticked chip had, so no label wraps or breaks differently than before
   and ticking still changes nothing; the label sits 4-5px right of centre. Rejected: the 18px tick
   at 27 / 16 (11px less label space) put "Business + leisure" and "Safari & wildlife" on two lines
   at 390 and "Central America & Caribbean" on three (+18px row), and at 320 split "Honeymoon",
   "snorkelling" and "expedition" mid-word. Under 360 the chips drop to 14px (as the join page's
   region chips). (0,6,0) beats the checked display rule (0,5,0). */
@media (max-width: 399px) {
	.tl-agent-app .tl-chips > .tl-chip { padding-right: 12px; padding-left: 20px; }
	.tl-agent-app .tl-chips > .tl-chip .tl-chip-tick { left: 3px; width: 14px; height: 14px; }
	.tl-agent-app .tl-chips > .tl-chip .tl-chip-tick .tl-icon { width: 10px; height: 10px; }
	.tl-agent-app .tl-chip-card .tl-chips > .tl-chip:is(.is-checked, :has(.tl-chip-input:checked)) .tl-chip-x { display: none; }
}
@media (max-width: 359px) {
	.tl-agent-app .tl-chips > .tl-chip { padding-right: 10px; font-size: 14px; }
}
.tl-agent-app .tl-chip-note { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--tl-mute); }

/* ---- Account: fields ---- */
.tl-agent-app .tl-form-card > * + * { margin-top: 20px; }
.tl-agent-app .tl-form-card > .tl-card-title + * { margin-top: 16px; }
.tl-agent-app .tl-field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; align-items: start; }
.tl-agent-app .tl-field { min-width: 0; }
.tl-agent-app legend.tl-label { padding: 0; }
.tl-agent-app .tl-label { display: block; margin: 0 0 8px; font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--tl-navy); }
/* Text field skin: triplead.css 3b (0.18.14; this block had its own 8px copy). Only the
   agent select chevron stays here, as S1 and the homepage keep theirs per page. */
.tl-agent-app :is(.tl-select, .tl-inbox-sort-select, .tl-inbox-perpage-select) {
	padding-right: 40px;
	-webkit-appearance: none;
	appearance: none;
	background-image:
		linear-gradient(45deg, transparent 50%, var(--tl-mute) 50%),
		linear-gradient(135deg, var(--tl-mute) 50%, transparent 50%);
	background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
	cursor: pointer;
}
.tl-agent-app .tl-field-hint { margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--tl-mute); }
.tl-agent-app .tl-field-error {
	position: relative;
	margin-top: 8px;
	padding-left: 24px;
	color: var(--tl-danger);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.45;
}
.tl-agent-app .tl-field-error::before {
	content: "";
	position: absolute;
	top: 1px;
	left: 0;
	width: 18px;
	height: 18px;
	background-color: currentColor;
	-webkit-mask: var(--tl-i-alert) center / contain no-repeat;
	mask: var(--tl-i-alert) center / contain no-repeat;
}
/* In a chip card the error sits between the hint and the chips. */
.tl-agent-app .tl-chip-card .tl-field-error { margin-top: 12px; }
.tl-agent-app .tl-field--radios .tl-field-error { margin: 0 0 8px; }
.tl-agent-app .tl-bio-count { margin-top: 6px; font-size: 13px; color: var(--tl-mute); text-align: right; }
/* Low (nearly full): amber warning text is too pale, so body colour, bold. Over: error red. */
.tl-agent-app .tl-bio-count.is-low { color: var(--tl-navy); font-weight: 600; }
.tl-agent-app .tl-bio-count.is-over { color: var(--tl-danger); font-weight: 700; }

/* Radios. */
.tl-agent-app .tl-radios { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.tl-agent-app .tl-radio { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--tl-navy); font-size: 16px; cursor: pointer; }
.tl-agent-app .tl-radio-input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--tl-teal); cursor: pointer; }
.tl-agent-app .tl-radio-input:focus-visible { outline: 2px solid var(--tl-teal); outline-offset: 2px; }

/* Read-only rows (email, ABN): look like a locked field. */
.tl-agent-app .tl-readonly { margin: 20px 0 0; }
.tl-agent-app .tl-readonly-row { display: grid; gap: 8px; }
.tl-agent-app .tl-readonly-label { font-size: 16px; font-weight: 600; color: var(--tl-navy); }
.tl-agent-app .tl-readonly-value {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: var(--tl-control-h);
	margin: 0;
	padding: 0 14px;
	border: 1px dashed var(--tl-line);
	border-radius: 10px; /* 0.18.15: matches the shared fields */
	background: var(--tl-wash);
	color: var(--tl-navy);
	font-size: 16px;
	overflow-wrap: anywhere;
}
.tl-agent-app .tl-readonly-value .tl-icon { width: 18px; height: 18px; color: var(--tl-mute); }
/* 80e: the Work email (span.tl-email) wraps at its <wbr> points inside the box: the row's one column
   and the email (a flex item) may shrink below the address's longest part (min-width 0), so a part
   wider than the box breaks (the .tl-email fallback) instead of widening the box past the card.
   10px top / bottom so a second line clears the dashed border (one line still sits in the 48px
   min-height). */
.tl-agent-app .tl-readonly-row { grid-template-columns: minmax(0, 1fr); }
.tl-agent-app .tl-readonly-value { padding-top: 10px; padding-bottom: 10px; }
.tl-agent-app .tl-readonly-value .tl-email { min-width: 0; }
.tl-agent-app .tl-form-card > .tl-readonly-note { margin-top: 6px; }
.tl-agent-app .tl-readonly-note { font-size: 14px; line-height: 1.5; color: var(--tl-mute); }
/* Their links ("Contact us to change it", "Contact us"): the inline link, section 7b (A11). */

/* Toggle: a real checkbox (visually hidden, still focusable) drives the track. */
.tl-agent-app .tl-toggle { position: relative; display: inline-flex; align-items: center; gap: 14px; min-height: 44px; cursor: pointer; }
.tl-agent-app .tl-toggle-input { position: absolute; top: 8px; left: 0; width: 52px; height: 28px; margin: 0; opacity: 0; cursor: pointer; }
.tl-agent-app .tl-toggle-track {
	position: relative;
	flex: none;
	width: 52px;
	height: 28px;
	border-radius: var(--tl-radius-pill);
	background: var(--tl-line);
	transition: background-color 0.15s ease;
}
.tl-agent-app .tl-toggle-track::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--tl-white);
	box-shadow: var(--tl-shadow-knob);
	transition: transform 0.15s ease;
}
.tl-agent-app .tl-toggle-input:checked + .tl-toggle-track { background: var(--tl-teal); }
.tl-agent-app .tl-toggle-input:checked + .tl-toggle-track::after { transform: translateX(24px); }
.tl-agent-app .tl-toggle-input:focus-visible + .tl-toggle-track { outline: 2px solid var(--tl-teal); outline-offset: 3px; }
.tl-agent-app .tl-toggle-text { font-size: 16px; font-weight: 600; color: var(--tl-navy); }
.tl-agent-app .tl-toggle + .tl-field-hint { margin-top: 4px; }

/* ---- Form footer: Save first in the DOM (mobile order), Cancel left on desktop. ---- */
.tl-agent-app .tl-form-actions {
	display: flex;
	flex-direction: row-reverse;
	justify-content: flex-start;
	align-items: center;
	gap: 16px 32px;
	margin-top: 8px;
	padding-top: 20px;
	border-top: 1px solid var(--tl-line);
}
.tl-agent-app .tl-form-save { min-width: 220px; } /* 0.18.12: the shared .tl-btn 16px (was 18px). */
/* a.tl-form-cancel "Cancel": a plain "Back" link, section 7b (A11; was teal 17 / 700, underlined on hover only). */
.tl-agent-app .tl-form-footnote { display: flex; align-items: flex-start; justify-content: center; gap: 10px; margin-top: 20px; font-size: 15px; line-height: 1.5; color: var(--tl-mute); text-align: center; }
.tl-agent-app .tl-form-footnote .tl-icon { width: 20px; height: 20px; margin-top: 1px; }

/* ---- Account: plan and leads, password, close ---- */
.tl-agent-app .tl-profile > .tl-account-card:first-of-type { margin-top: 28px; }
/* "Plan and leads" (#66, BRIEF-for-agents-extra-leads §3; replaces the old .tl-plan-summary card).
     section.tl-card.tl-account-card.tl-account-card--plan-leads#plan-leads[tabindex=-1][data-want]
       > h2.tl-card-title
       + approved: div.tl-account-strip[role=note] > p.tl-account-strip__lead (one plain line; agent quick wins
           E5, Daniel 13 Nov: Account no longer prints the shared membership strip, which For agents keeps)
           (+ dl.tl-plan-leads > div.tl-plan-leads-row--extra only, when the agent has bought credits)
       | pending: p.tl-notice.tl-plan-leads-flash? + p.tl-account-card-text.tl-plan-leads-pending
   The card is the other Account cards' (.tl-profile .tl-card). The row is the lead page's
   "More about this trip" list (label 14px mute, value 16px navy).
   A1 removed the interest buttons and the "Your plan" / "Leads left" rows (.tl-plan-leads-actions /
   -form / -btn / .is-wanted rules gone; -row--plan / --left never had rules of their own).
   ?want=pro|leads still focuses and scrolls to the section (scroll-margin clears the sticky top
   bar: 76px, 64px under 900). The section's own focus (tabindex=-1, from the script or
   #plan-leads) draws no box unless it's keyboard focus. */
.tl-agent-app .tl-account-card--plan-leads { scroll-margin-top: calc(var(--tl-topbar-h) + 16px); }
/* The About field: the Profile page's "Edit it there" lands on #tl-acct-bio-field (PLAN §13); clear the sticky top bar the same way. */
.tl-agent-app #tl-acct-bio-field { scroll-margin-top: calc(var(--tl-topbar-h) + 16px); }
/* The card image choice: Account's Business logo note links to /agent/profile/#tl-pe-card-image (2 Nov); clear the sticky top bar the same way. */
.tl-agent-app #tl-pe-card-image { scroll-margin-top: calc(var(--tl-topbar-h) + 16px); }
.tl-agent-app .tl-account-card--plan-leads:focus { outline: 0; } /* tabindex=-1, never in the tab order: the script focuses it on ?want=, often straight after a page load, where :focus-visible still matches; the scroll is the cue */
.tl-agent-app .tl-account-card--plan-leads > .tl-plan-leads-flash { margin: 16px 0 0; }
/* Account's note box: the For agents approved strip's box (for-agents.css F7c .tl-fa-strip: the muted
   notice's wash, 1px line, 12px radius, 14 / 18 padding) holding one plain line in 16 / 1.5 body, the
   Account screen's own text (.tl-account-card-text), as it sits among the Account cards (A1 step 5 fix,
   Daniel). The For agents strip stays 15 / 1.6 with its navy lead-in (for-agents.css). Body on wash 6.8:1. */
.tl-agent-app .tl-account-card--plan-leads > .tl-account-strip {
	box-sizing: border-box;
	margin: 16px 0 0;
	padding: 14px 18px;
	border: 1px solid var(--tl-line);
	border-radius: 12px;
	background: var(--tl-wash);
	color: var(--tl-body);
	font-size: 16px;
	line-height: 1.5;
}
.tl-agent-app .tl-account-strip .tl-account-strip__lead { margin: 0; color: var(--tl-body); font-size: inherit; line-height: inherit; }
.tl-agent-app .tl-plan-leads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 28px; margin: 16px 0 0; }
.tl-agent-app .tl-plan-leads-row { min-width: 0; }
.tl-agent-app .tl-plan-leads-value { font-weight: 700; } /* label and value otherwise the lead page's list (5c) */
.tl-agent-app .tl-plan-leads-note { display: block; font-size: 14px; font-weight: 400; color: var(--tl-mute); }
.tl-agent-app .tl-account-card--plan-leads .tl-plan-leads-pending { margin-top: 16px; } /* (0,3,0): over .tl-account-card-text 10 */
@media (max-width: 899px) {
	.tl-agent-app .tl-account-card--plan-leads { scroll-margin-top: 80px; } /* the 64px top bar + 16 */
	.tl-agent-app :is(#tl-acct-bio-field, #tl-pe-card-image) { scroll-margin-top: 80px; }
}
.tl-agent-app .tl-account-card-text { margin-top: 10px; font-size: 16px; line-height: 1.5; color: var(--tl-body); }
.tl-agent-app .tl-account-password-link { margin-top: 16px; }
.tl-agent-app .tl-account-password-link .tl-icon { width: 20px; height: 20px; }
/* Account: "Your public profile" card (slice 9). */
.tl-agent-app .tl-account-profile { margin-top: 4px; }
/* a.tl-account-profile-link "View my profile" (was "View your public profile"): the arrow link, section 7b (A11; was teal-hover 16 / 700, underlined, with an 18px svg arrow). */
.tl-agent-app .tl-account-profile:is(.tl-account-profile--pending, .tl-account-profile--hidden, .tl-account-profile--incomplete) {
	padding: 12px 16px;
	border: 1px solid var(--tl-line);
	border-radius: 10px;
	background: var(--tl-wash);
	font-size: 15px;
	line-height: 1.5;
	color: var(--tl-body);
}
.tl-agent-app .tl-account-close { margin-top: 8px; font-size: 15px; color: var(--tl-mute); text-align: center; }

@media (max-width: 899px) {
	.tl-agent-app .tl-profile .tl-card { padding: 18px 16px; }
	.tl-agent-app .tl-form-actions { flex-direction: column; align-items: stretch; gap: 8px; border-top: 0; padding-top: 4px; }
	.tl-agent-app .tl-form-save { width: 100%; min-width: 0; }
	.tl-agent-app .tl-form-cancel { justify-content: center; }
	.tl-agent-app .tl-form-footnote { justify-content: flex-start; text-align: left; font-size: 14px; }
}
@media (min-width: 1200px) {
	.tl-agent-app .tl-chips { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.tl-agent-app .tl-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.tl-agent-app .tl-chip { min-height: 44px; padding: 4px 12px; font-size: 15px; }
	.tl-agent-app .tl-chip--exclusive { grid-column: 1 / -1; }
	.tl-agent-app .tl-field-row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.tl-agent-app .tl-radios { flex-direction: column; gap: 0; }
}

/* ---- 5e. Destination / country picker (assets/tl-picker.js) ----------------------
   Shared by S1 (.tl-tf-page, where traveller.css also loads) and Specialties
   (.tl-agent-app). triplead.css loads on both, so the picker is styled once here and
   is self-contained: it doesn't lean on the agent-only .tl-chip rules or on
   traveller.css. The chip selectors are (0,4,0) so they settle the agent .tl-chip
   checked state rather than fight it. */
:is(.tl-tf-page, .tl-agent-app, .tl-home-form, .tl-funnel-form) .tl-picker { position: relative; }
:is(.tl-tf-page, .tl-agent-app, .tl-home-form, .tl-funnel-form) .tl-picker--countries { margin-top: 16px; }

/* The field with a leading search/pin icon is 3b's .tl-input-wrap--icon on every page
   (the agent copy that lived here went in 0.18.14). */

/* Suggestions: an absolutely placed list at its static position (straight under the
   field, whatever comes after it). */
:is(.tl-tf-page, .tl-agent-app, .tl-home-form, .tl-funnel-form) .tl-picker-list {
	position: absolute;
	left: 0;
	right: 0;
	z-index: 20;
	max-height: 320px;
	margin: 6px 0 0;
	padding: 6px;
	overflow-y: auto;
	list-style: none;
	border: 1px solid var(--tl-line);
	border-radius: 12px;
	background: var(--tl-white);
	box-shadow: var(--tl-shadow-pop);
}
:is(.tl-tf-page, .tl-agent-app, .tl-home-form, .tl-funnel-form) .tl-picker-option {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 2px 12px;
	min-height: 44px;
	margin: 0;
	padding: 11px 14px;
	border-radius: var(--tl-radius-btn);
	color: var(--tl-navy);
	font-size: 16px;
	line-height: 1.35;
	cursor: pointer;
}
:is(.tl-tf-page, .tl-agent-app, .tl-home-form, .tl-funnel-form) .tl-picker-option:hover { background: var(--tl-wash); }
/* One highlight at a time (0.22.3 polish): while a row is keyboard-active (tl-picker.js sets
   .is-active; it has no mouse tracking), the pointer resting over another row paints nothing,
   so the list never shows two highlighted rows. The pinned free row keeps its solid white. */
:is(.tl-tf-page, .tl-agent-app, .tl-home-form, .tl-funnel-form) .tl-picker-list:has(> .tl-picker-option.is-active) > .tl-picker-option:not(.is-active):not(.tl-picker-option--free):hover { background: none; }
:is(.tl-tf-page, .tl-agent-app, .tl-home-form, .tl-funnel-form) .tl-picker-list:has(> .tl-picker-option.is-active) > .tl-picker-option--free:not(.is-active):hover { background: var(--tl-white); }
/* The keyboard-active option: teal wash, a teal bar and teal text, so it reads as
   "this one" without relying on colour alone. */
:is(.tl-tf-page, .tl-agent-app, .tl-home-form, .tl-funnel-form) .tl-picker-option.is-active,
:is(.tl-tf-page, .tl-agent-app, .tl-home-form, .tl-funnel-form) .tl-picker-option[aria-selected="true"] {
	background: var(--tl-teal-soft);
	box-shadow: inset 3px 0 0 var(--tl-teal);
	color: var(--tl-teal-hover);
	font-weight: 600;
}
:is(.tl-tf-page, .tl-agent-app, .tl-home-form, .tl-funnel-form) .tl-picker-option-label { overflow-wrap: anywhere; }
:is(.tl-tf-page, .tl-agent-app, .tl-home-form, .tl-funnel-form) .tl-picker-option-hint { font-size: 13px; font-weight: 400; color: var(--tl-mute); }
:is(.tl-tf-page, .tl-agent-app, .tl-home-form, .tl-funnel-form) .tl-picker-option--free { margin-top: 4px; border-top: 1px solid var(--tl-line); border-radius: 0 0 var(--tl-radius-btn) var(--tl-radius-btn); font-style: italic; }
/* PS-03 (0.22.2): with 8 suggestions the list scrolls (about 7 rows show), and "Use "…"" was
   below the fold. It's pinned to the list's bottom edge instead: solid white, its top hairline,
   and a 5px white band over its 4px top margin (box-shadow, so it takes no space) so no row
   text shows through the gap while rows scroll behind it. Last in the tree and positioned, so
   it paints over the rows without a z-index. At the end of the scroll it rests in place. */
:is(.tl-tf-page, .tl-agent-app, .tl-home-form, .tl-funnel-form) .tl-picker-option--free {
	position: sticky;
	bottom: 0;
	background: var(--tl-white);
	box-shadow: 0 -5px 0 var(--tl-white);
}
:is(.tl-tf-page, .tl-agent-app, .tl-home-form, .tl-funnel-form) .tl-picker-option--free:is(:hover) { background: var(--tl-wash); }
:is(.tl-tf-page, .tl-agent-app, .tl-home-form, .tl-funnel-form) .tl-picker-option--free:is(.is-active, [aria-selected="true"]) {
	background: var(--tl-teal-soft);
	box-shadow: inset 3px 0 0 var(--tl-teal), 0 -5px 0 var(--tl-white);
}
/* §6.2 (0.22.3): the "Added" row. Typed text naming a pill already picked lists that place
   first, as li.is-added[aria-disabled="true"] (arrow keys skip it, click and Enter do nothing):
   greyed out (mute text on white, 4.6:1; regular weight; no hover, active or selected fill),
   cursor default, and span.tl-picker-option-tag "Added" as a small quiet pill on the right
   (13px/600 mute on white inside a line border, 4.6:1). */
:is(.tl-tf-page, .tl-agent-app, .tl-home-form, .tl-funnel-form) .tl-picker-option.is-added,
:is(.tl-tf-page, .tl-agent-app, .tl-home-form, .tl-funnel-form) .tl-picker-option.is-added:is(:hover, .is-active, [aria-selected="true"]) {
	background: none;
	box-shadow: none;
	color: var(--tl-mute);
	font-weight: 400;
	cursor: default;
}
:is(.tl-tf-page, .tl-agent-app, .tl-home-form, .tl-funnel-form) .tl-picker-option-tag {
	flex: none;
	margin-left: auto;
	padding: 1px 8px;
	border: 1px solid var(--tl-line);
	border-radius: var(--tl-radius-pill);
	background: var(--tl-white);
	color: var(--tl-mute);
	font-size: 13px;
	font-style: normal;
	font-weight: 600;
	line-height: 1.5;
}
/* ...and a keyboard-highlighted row (tl-picker.js: scrollIntoView block:nearest) stops a row's
   height above the pinned one, never under it. Only when there is a free row. */
:is(.tl-tf-page, .tl-agent-app, .tl-home-form, .tl-funnel-form) .tl-picker-list:has(> .tl-picker-option--free) { scroll-padding-bottom: 56px; }

/* Picked chips. BRIEF-21: the x is the chip's full 44px height (it was 40x40, under our
   44px rule): 44 square on -1px margins, so it covers the chip's border on the right and
   the chip stays 44 tall; its 1px padding and a content-box fill keep the hover white
   inside the border. The destination field sizes it to the pill (3e). */
:is(.tl-tf-page, .tl-agent-app, .tl-home-form, .tl-funnel-form) .tl-picker-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
:is(.tl-tf-page, .tl-agent-app, .tl-home-form, .tl-funnel-form) .tl-picker > .tl-picker-chips:first-child { margin-bottom: 10px; }
:is(.tl-tf-page, .tl-agent-app, .tl-home-form, .tl-funnel-form) .tl-picker-list + .tl-picker-chips { margin-top: 12px; }
:is(.tl-tf-page, .tl-agent-app, .tl-home-form, .tl-funnel-form) .tl-picker-chips > .tl-chip.tl-picker-chip {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	min-width: 0;
	min-height: 44px;
	margin: 0;
	padding: 0 0 0 10px;
	border: 1px solid var(--tl-teal-bright);
	border-radius: 10px;
	background: var(--tl-teal-soft);
	color: var(--tl-teal-hover);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	cursor: default;
}
:is(.tl-tf-page, .tl-agent-app, .tl-home-form, .tl-funnel-form) .tl-picker-chips > .tl-chip.tl-picker-chip .tl-chip-tick {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--tl-teal);
	color: var(--tl-white);
}
:is(.tl-tf-page, .tl-agent-app, .tl-home-form, .tl-funnel-form) .tl-picker-chip .tl-chip-tick .tl-icon { width: 13px; height: 13px; stroke-width: 3; }
:is(.tl-tf-page, .tl-agent-app, .tl-home-form, .tl-funnel-form) .tl-picker-chip .tl-chip-label { flex: 0 1 auto; text-align: left; overflow-wrap: anywhere; }
/* A server-printed pill before the JS adds its x (BRIEF-21 pre-fill): keep the text off the border. */
:is(.tl-tf-page, .tl-agent-app, .tl-home-form, .tl-funnel-form) .tl-picker-chip > .tl-chip-label:last-child { margin-right: 12px; }
/* Specialties country pills sit on the same card as the region chips (5d "Grid chips"), so they take
   the region chip's ticked look (Daniel, #85 SB-1): regular weight (was 600), an 18px tick (12px
   check) 5px inside the border with a 4px gap to the label, and a 14px ×. The × button stays the
   full 44px pill height (the tap target; BRIEF-21), so its icon sits 15px in from the border rather
   than 5. The pills are always ticked, so nothing here can move on tick. Agent app only (0,4,0) /
   (0,5,0), after the shared rules: the S1, homepage and funnel pills keep theirs. */
.tl-agent-app .tl-picker-chips > .tl-chip.tl-picker-chip { gap: 4px; padding-left: 5px; font-weight: 400; }
.tl-agent-app .tl-picker-chips > .tl-chip.tl-picker-chip .tl-chip-tick { width: 18px; height: 18px; }
.tl-agent-app .tl-picker-chips > .tl-chip.tl-picker-chip .tl-chip-tick .tl-icon { width: 12px; height: 12px; }
.tl-agent-app .tl-picker-chips > .tl-chip.tl-picker-chip .tl-picker-remove .tl-icon { width: 14px; height: 14px; }
/* Under 400 the region chips' tick is 14px (10px check) 3px inside the border + 3px gap (5d, SB-2): same here. */
@media (max-width: 399px) {
	.tl-agent-app .tl-picker-chips > .tl-chip.tl-picker-chip { gap: 3px; padding-left: 3px; }
	.tl-agent-app .tl-picker-chips > .tl-chip.tl-picker-chip .tl-chip-tick { width: 14px; height: 14px; }
	.tl-agent-app .tl-picker-chips > .tl-chip.tl-picker-chip .tl-chip-tick .tl-icon { width: 10px; height: 10px; }
}
:is(.tl-tf-page, .tl-agent-app, .tl-home-form, .tl-funnel-form) .tl-picker-remove {
	position: relative;
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: -1px -1px -1px 0;
	padding: 1px;
	border: 0;
	border-radius: var(--tl-radius-btn);
	background: transparent;
	background-clip: content-box;
	box-shadow: none;
	color: var(--tl-teal);
	cursor: pointer;
}
:is(.tl-tf-page, .tl-agent-app, .tl-home-form, .tl-funnel-form) .tl-picker-remove .tl-icon { width: 18px; height: 18px; }
/* JS fallback builds an empty button: draw the x. */
:is(.tl-tf-page, .tl-agent-app, .tl-home-form, .tl-funnel-form) .tl-picker-remove:empty::before,
:is(.tl-tf-page, .tl-agent-app, .tl-home-form, .tl-funnel-form) .tl-picker-remove:empty::after {
	content: "";
	position: absolute;
	width: 14px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transform: rotate(45deg);
}
:is(.tl-tf-page, .tl-agent-app, .tl-home-form, .tl-funnel-form) .tl-picker-remove:empty::after { transform: rotate(-45deg); }
:is(.tl-tf-page, .tl-agent-app, .tl-home-form, .tl-funnel-form) .tl-picker-remove:is(:hover, :focus) { background-color: var(--tl-white); color: var(--tl-teal-hover); }
:is(.tl-tf-page, .tl-agent-app, .tl-home-form, .tl-funnel-form) .tl-picker-remove:focus-visible { outline: 2px solid var(--tl-teal); outline-offset: 0; }

/* Disabled (open to anywhere ticked). */
:is(.tl-tf-page, .tl-agent-app, .tl-home-form, .tl-funnel-form) .tl-picker.is-disabled { opacity: 0.5; }
:is(.tl-tf-page, .tl-agent-app, .tl-home-form, .tl-funnel-form) .tl-picker.is-disabled :is(.tl-picker-field, .tl-picker-chips) { pointer-events: none; }

/* No-JS fallback: a native multi-select. */
:is(.tl-tf-page, .tl-agent-app, .tl-home-form, .tl-funnel-form) .tl-picker-nojs-label { margin-bottom: 8px; }
:is(.tl-tf-page, .tl-agent-app) select.tl-picker-select {
	height: auto;
	min-height: 180px;
	padding: 6px;
	background-image: none;
	-webkit-appearance: auto;
	appearance: auto;
}

/* ---- 5f. Specialties destinations (6b): regions + countries + open to anywhere ---- */
.tl-agent-app .tl-chip-subhead { margin: 24px 0 0; font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--tl-navy); }
.tl-agent-app .tl-chip-subhint { margin-top: 2px; font-size: 14px; line-height: 1.45; color: var(--tl-mute); }
/* 12 region chips: 3 even columns on wide desktop (four rows), so the long names
   (Central America & Caribbean) stay on one line. */
.tl-agent-app .tl-chips--regions { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.tl-agent-app .tl-chips--open { display: flex; flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--tl-line); }
.tl-agent-app .tl-chips--open .tl-chip { min-width: 220px; }
.tl-agent-app .tl-chip.is-disabled { opacity: 0.5; cursor: not-allowed; }
.tl-agent-app .tl-chip.is-disabled:hover { border-color: var(--tl-line); color: var(--tl-body); }
/* Server-rendered "open to anywhere" (also the no-JS state): regions and countries
   read as switched off. The JS adds .is-disabled per chip on top; this rule is the
   only dimming inside the card so the two never stack. */
.tl-agent-app .tl-chip-card--destinations.is-open-anywhere :is(.tl-chips--regions, .tl-picker--countries) { opacity: 0.5; }
.tl-agent-app .tl-chip-card--destinations.is-open-anywhere .tl-chip.is-disabled { opacity: 1; }

/* ---- 5f2. Specialties "Adventure focus" (decision #85, mock adventure-activities-mockup.png) ----
   div.tl-spec-focus inside the Trip types card, after its chips: a wash panel with a 3px teal rule on
   the left (the mock's tinted panel), the same h3.tl-chip-subhead / p.tl-chip-subhint as the
   Destinations card's Regions, and the same chip grid and chip. It is [hidden] while Adventure is
   unticked (server-rendered from the saved trip types, UX P3-4, then toggled live by agent-app.js);
   the shell's [hidden] rule (2b) wins over the display here. Text on wash: navy, and body for the hint and "(optional)" (mute is 4.28:1 there). */
.tl-agent-app .tl-spec-focus { display: block; margin-top: 20px; padding: 16px 20px 20px 17px; border-left: 3px solid var(--tl-teal); border-radius: 0 10px 10px 0; background: var(--tl-wash); }
.tl-agent-app .tl-spec-focus .tl-chip-subhead { margin-top: 0; }
.tl-agent-app .tl-spec-focus :is(.tl-chip-subhint, .tl-optional) { color: var(--tl-body); }
/* The focus chips ARE the trip type chips (Daniel, 27 Oct, BRIEF-adventure-activities.md §14, which
   replaces the §12 / 0.24.129-132 focus pill rules): div.tl-chips.tl-chips--focus > label.tl-chip
   takes the shared .tl-chips grid (auto-fill 150px columns, 4 from 1200, 2 under 600, the same gaps)
   and the shared .tl-chip in every state (48 / 44px, 10px radius, 1px line border, centred label,
   ticked: teal-soft, bright teal border, teal-hover text at the same weight, tick and × in the fixed
   side slots of 5d "Grid chips", × hidden under 400). Nothing here styles the chip itself.
   .is-retired: an activity the admin has hidden that this agent still holds (kept so a re-save keeps
   it). A dashed edge marks it (bright teal when ticked, from the shared checked rule; decorative).
   UX P3-3: its visible "(no longer offered)" note (span.tl-chip-note after the label) takes its own
   line under the tick / label / × line (order 1 puts it after the ×), centred like the label, and
   wraps inside the grid cell when the cell is narrow (2 lines at 320-390). 13px regular body in both
   states (7.2:1 on white, 6.3:1 on teal-soft), so ticking never changes its size. The child
   combinator leaves the block p.tl-chip-note notes under the region / open chips unchanged. */
/* Same column count as the trip type grid at every width. From 1200 (4) and under 600 (2) the shared
   counts already apply to both. In between the shared grid is auto-fill 150px + 12px gaps, and the
   panel's padding (40px, 30 under 900) made the focus grid drop a column at 717-746, 879-934 and
   1057-1096 (measured). The Trip types card is the size container, so these steps are the trip type
   grid's own auto-fill breakpoints on the card's content width: n columns from n x 150 + (n - 1) x 12.
   Each cell is 40 / n px (30 / n) narrower than the trip type cell above it: the panel's padding. */
.tl-agent-app .tl-chip-card--trip-types { container: tl-trip-types / inline-size; }
@media (min-width: 601px) and (max-width: 1199px) {
	@container tl-trip-types (min-width: 312px) { .tl-agent-app .tl-chips--focus { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
	@container tl-trip-types (min-width: 474px) { .tl-agent-app .tl-chips--focus { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
	@container tl-trip-types (min-width: 636px) { .tl-agent-app .tl-chips--focus { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
	@container tl-trip-types (min-width: 798px) { .tl-agent-app .tl-chips--focus { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
	@container tl-trip-types (min-width: 960px) { .tl-agent-app .tl-chips--focus { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
}
.tl-agent-app .tl-chips--focus .tl-chip.is-retired { flex-wrap: wrap; row-gap: 2px; border-style: dashed; }
.tl-agent-app .tl-chip > .tl-chip-note { flex: 0 0 100%; order: 1; min-width: 0; margin: 0; font-size: 13px; font-weight: 400; line-height: 1.3; color: var(--tl-body); text-align: center; overflow-wrap: break-word; }
@media (max-width: 899px) {
	.tl-agent-app .tl-spec-focus { margin-top: 16px; padding: 14px 14px 16px 13px; }
}

@media (min-width: 1200px) {
	.tl-agent-app .tl-chips--regions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.tl-agent-app .tl-chips--regions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tl-agent-app .tl-chips--open .tl-chip { flex: 1 1 100%; min-width: 0; }
	:is(.tl-tf-page, .tl-agent-app, .tl-home-form, .tl-funnel-form) .tl-picker-list { max-height: 260px; }
}

/* ---- 5g. Agent avatar, business logo, UM crop modal (slice 9) ------------------
   Shared avatar: a logo is a rounded square with the line border; initials are a
   circle, teal on pale teal. (0,3,0) so it settles the older tracker
   .tl-agent-card-avatar circle (0,2,0) in traveller.css. */
:is(.tl-app, .tl-agent-app, .tl-slim) .tl-agent-avatar.tl-agent-avatar--initials,
:is(.tl-app, .tl-agent-app, .tl-slim) .tl-agent-avatar.tl-agent-avatar--logo {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	line-height: 1;
}
:is(.tl-app, .tl-agent-app, .tl-slim) .tl-agent-avatar.tl-agent-avatar--initials {
	border: 0;
	border-radius: 50%;
	background: var(--tl-teal-soft);
	color: var(--tl-teal-hover);
	font-weight: 800;
	letter-spacing: 0.02em;
}
:is(.tl-app, .tl-agent-app, .tl-slim) .tl-agent-avatar.tl-agent-avatar--logo {
	border: 1px solid var(--tl-line);
	border-radius: 14px;
	background: var(--tl-white);
}
/* Trello 36, the no-photo circle (Profile, Your photo): the initials circle exactly (shape, box, teal-soft
   fill, teal-hover ink), holding a person icon at 44% (32px at --md) instead of letters. Before --photo, which
   has the same specificity, so a picked file's preview (--photo + .is-preview, --icon left on) takes the
   photo's rounded square and fill. */
:is(.tl-app, .tl-agent-app, .tl-slim) .tl-agent-avatar.tl-agent-avatar--icon { display: inline-flex; flex: none; align-items: center; justify-content: center; overflow: hidden; border: 0; border-radius: 50%; background: var(--tl-teal-soft); color: var(--tl-teal-hover); line-height: 1; }
:is(.tl-app, .tl-agent-app, .tl-slim) .tl-agent-avatar.tl-agent-avatar--icon > .tl-icon { width: 44%; height: 44%; }
:is(.tl-app, .tl-agent-app, .tl-slim) .tl-agent-avatar-img { display: block; width: 100%; height: 100%; object-fit: cover; }
:is(.tl-app, .tl-agent-app, .tl-slim) .tl-agent-avatar.tl-agent-avatar--sm { width: 56px; height: 56px; font-size: 20px; }
:is(.tl-app, .tl-agent-app, .tl-slim) .tl-agent-avatar.tl-agent-avatar--sm.tl-agent-avatar--logo { border-radius: 12px; }
:is(.tl-app, .tl-agent-app, .tl-slim) .tl-agent-avatar.tl-agent-avatar--md { width: 72px; height: 72px; font-size: 26px; }
:is(.tl-app, .tl-agent-app, .tl-slim) .tl-agent-avatar.tl-agent-avatar--lg { width: 112px; height: 112px; font-size: 40px; }
:is(.tl-app, .tl-agent-app, .tl-slim) .tl-agent-avatar.tl-agent-avatar--lg.tl-agent-avatar--logo { border-radius: 18px; }
/* The agent's photo (profile extras, PLAN §11.5: photo, else logo, else initials). A square
   WebP shown as a rounded square like the mock and the logo (same radius per size, no border:
   the photo fills it). Teal-soft shows only while the image loads. Same sizes as the others,
   so the profile (--lg, 72px under 600) and the tracker card (--sm, .tl-agent-card-avatar)
   need nothing extra. */
:is(.tl-app, .tl-agent-app, .tl-slim) .tl-agent-avatar.tl-agent-avatar--photo {
	display: inline-flex;
	flex: none;
	overflow: hidden;
	border: 0;
	border-radius: 14px;
	background: var(--tl-teal-soft);
	line-height: 1;
}
:is(.tl-app, .tl-agent-app, .tl-slim) .tl-agent-avatar.tl-agent-avatar--sm.tl-agent-avatar--photo { border-radius: 12px; }
:is(.tl-app, .tl-agent-app, .tl-slim) .tl-agent-avatar.tl-agent-avatar--lg.tl-agent-avatar--photo { border-radius: 18px; }

/* Account: business logo card. */
.tl-agent-app .tl-account-logo-flash { margin: 12px 0 0; }
.tl-agent-app .tl-account-logo { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 16px 20px; margin-top: 14px; }
.tl-agent-app .tl-account-logo-preview { display: flex; }
.tl-agent-app .tl-account-logo-body { grid-column: 2; min-width: 0; }
.tl-agent-app .tl-account-logo:not(:has(.tl-account-logo-preview)) .tl-account-logo-body { grid-column: 1 / -1; }
.tl-agent-app .tl-account-logo-note { margin-top: 0; }
.tl-agent-app .tl-account-logo-soon { margin-top: 8px; color: var(--tl-mute); }
.tl-agent-app .tl-account-logo-controls { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 20px; margin-top: 14px; }
/* um-specialist's uploader: once UM has put a logo in (the img has a src), core-dev's
   initials preview is redundant; while the src is empty the uploader's own current
   logo box is hidden. */
.tl-agent-app .tl-account-logo:has(.tl-logo-uploader__img:not([src=""])) .tl-account-logo-preview { display: none; }
.tl-agent-app .tl-account-logo:has(.tl-logo-uploader__img:not([src=""])) .tl-account-logo-body { grid-column: 1 / -1; }
.tl-agent-app .tl-logo-uploader__current:has(.tl-logo-uploader__img[src=""]),
.tl-agent-app .tl-logo-uploader__img[src=""] { display: none; }
/* The uploader is a UM .um block inside the agent shell. um-forms.css doesn't load here,
   so it's styled from scratch. */
.tl-agent-app .tl-logo-uploader.um { margin: 0; color: var(--tl-body); font-family: inherit; font-size: 16px; }
.tl-agent-app .tl-logo-uploader .um-form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.tl-agent-app .tl-logo-uploader__current {
	width: 72px;
	height: 72px;
	overflow: hidden;
	border: 1px solid var(--tl-line);
	border-radius: 14px;
	background: var(--tl-white);
}
.tl-agent-app .tl-logo-uploader__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tl-agent-app .tl-logo-uploader .um-field { padding: 0; }
.tl-agent-app .tl-logo-uploader .um-field-label {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}
/* "Upload logo" / "Change logo": our outline button. !important beats um-styles
   a.um-button{padding:16px 20px!important;border:none!important;border-radius:4px!important;
   font-weight:400!important;line-height:1em!important} and
   .um-button.um-btn-auto-width{padding:14px 20px!important}. */
.tl-agent-app .tl-logo-uploader a.um-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	min-width: 0;
	min-height: var(--tl-control-h);
	padding: 0 20px !important;
	border: 1.5px solid var(--tl-teal) !important;
	border-radius: var(--tl-radius-btn) !important;
	background: var(--tl-white);
	box-shadow: none;
	color: var(--tl-teal);
	font-size: 16px;
	font-weight: 700 !important; /* buttons 16 / 700 (STYLE-CHECKLIST §7, A11; was 600) */
	line-height: 1.2 !important;
}
.tl-agent-app .tl-logo-uploader a.um-button:is(:hover, :focus) { background: var(--tl-teal-soft); color: var(--tl-teal-hover); }
/* !important beats um-styles .um:not(.um-admin) a:focus { outline: 0 !important }, which removed the
   ring (A11: measured 0px none). The colours fade only, not UM's 0.25s "all" (the ring would grow in). */
.tl-agent-app .tl-logo-uploader a.um-button { transition: background-color 0.15s ease, color 0.15s ease; }
.tl-agent-app .tl-logo-uploader a.um-button:focus-visible { outline: 2px solid var(--tl-teal) !important; outline-offset: 2px !important; }
.tl-agent-app .tl-logo-uploader .um-single-image-preview:not(.show) { display: none; }
.tl-agent-app .tl-logo-uploader__hint { flex-basis: 100%; margin: 0; font-size: 14px; line-height: 1.45; color: var(--tl-mute); }
.tl-agent-app .tl-logo-remove { margin: 0; }
.tl-agent-app .tl-logo-remove__btn {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin: 0;
	padding: 0 4px;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: var(--tl-danger);
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}
.tl-agent-app .tl-logo-remove__btn:is(:hover, :focus) { background: transparent; color: var(--tl-danger-hover); }
.tl-agent-app .tl-logo-remove__btn:focus-visible { outline: 2px solid var(--tl-danger); outline-offset: 2px; }

/* UM crop modal (#um_upload_single), shared by /join/ A2 and /agent/account/. UM appends
   it to <body>, outside our wrappers, so it's scoped by body class. Mobile full-screen
   comes from UM's own .uimob500 rules. */
:is(body.tl-um-page, body.tl-agent-app-body) .um-modal-overlay { background: var(--tl-overlay); }
:is(body.tl-um-page, body.tl-agent-app-body) .um-modal { font-family: var(--tl-font); color: var(--tl-body); }
:is(body.tl-um-page, body.tl-agent-app-body) .um-modal .um-modal-header {
	height: auto;
	padding: 14px 20px;
	border-radius: 12px 12px 0 0;
	background: var(--tl-navy);
	color: var(--tl-white);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
}
:is(body.tl-um-page, body.tl-agent-app-body) .um-modal .um-modal-body { padding: 20px; border-radius: 0 0 12px 12px; background: var(--tl-white); }
:is(body.tl-um-page, body.tl-agent-app-body) .um-modal .um-single-image-preview img { border-radius: 8px; }
:is(body.tl-um-page, body.tl-agent-app-body) .um-modal .um-modal-footer { margin-top: 20px; }
/* Buttons. line-height/cursor are !important in um-modal (.um-modal-btn{line-height:34px!important}). */
:is(body.tl-um-page, body.tl-agent-app-body) .um-modal a.um-modal-btn {
	height: 44px;
	padding: 0 20px;
	border: 1.5px solid var(--tl-teal);
	border-radius: var(--tl-radius-btn);
	background: var(--tl-teal);
	color: var(--tl-white);
	font-size: 16px; /* buttons 16 / 700 (STYLE-CHECKLIST §7; A11, was 15 / 600) */
	font-weight: 700;
	line-height: 41px !important;
	text-decoration: none;
}
:is(body.tl-um-page, body.tl-agent-app-body) .um-modal a.um-modal-btn:is(:hover, :focus) { border-color: var(--tl-teal-hover); background: var(--tl-teal-hover); color: var(--tl-white); }
:is(body.tl-um-page, body.tl-agent-app-body) .um-modal a.um-modal-btn.alt { background: var(--tl-white); color: var(--tl-teal); }
:is(body.tl-um-page, body.tl-agent-app-body) .um-modal a.um-modal-btn.alt:is(:hover, :focus) { background: var(--tl-teal-soft); color: var(--tl-teal-hover); }
:is(body.tl-um-page, body.tl-agent-app-body) .um-modal a.um-modal-btn:focus-visible { outline: 2px solid var(--tl-teal); outline-offset: 2px; } /* the standard teal ring on the white modal (STYLE-CHECKLIST §10; A11, was navy) */
/* "Remove image" x on the upload/crop preview (UM's a.cancel). UM draws a 30px grey
   circle at 75% opacity with a #888 glyph (um-fileupload.css .um-single-image-preview
   a.cancel), too small and too faint. Make it a 44px navy circle inside the corner.
   UM's text-decoration:none!important needs no fight. Accessible name is markup (um-specialist). */
:is(body.tl-um-page, body.tl-agent-app-body) .um-single-image-preview a.cancel {
	top: 8px;
	right: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 999px;
	background: var(--tl-navy);
	box-shadow: var(--tl-shadow-pop);
	opacity: 1;
}
:is(body.tl-um-page, body.tl-agent-app-body) .um-single-image-preview a.cancel i { width: auto; height: auto; color: var(--tl-white); font-size: 20px; line-height: 1; }
:is(body.tl-um-page, body.tl-agent-app-body) .um-single-image-preview a.cancel:is(:hover, :focus) { background: var(--tl-teal-hover); }
:is(body.tl-um-page, body.tl-agent-app-body) .um-single-image-preview a.cancel:focus-visible { outline: 2px solid var(--tl-navy); outline-offset: 2px; }
/* Small 96px field previews (join A2 logo, Account logo): sit the x on the corner, not over the image. */
:is(body.tl-join-page .um-field[data-key="profile_photo"], .tl-agent-app .tl-logo-uploader) .um-single-image-preview a.cancel { top: -14px; right: -14px; }
/* Disabled "Apply" (UM .um-finish-upload.disabled at opacity .5 = 2.28:1). Disabled is
   exempt, but make it read as disabled and stay legible: grey fill, body text, no fade. */
:is(body.tl-um-page, body.tl-agent-app-body) .um-modal a.um-modal-btn.disabled,
:is(body.tl-um-page, body.tl-agent-app-body) .um-modal a.um-modal-btn.disabled:is(:hover, :focus) {
	border-color: var(--tl-line);
	background: var(--tl-neutral-soft);
	color: var(--tl-body);
	opacity: 1;
	cursor: not-allowed;
}
/* Drop zone: UM's help line is #aaa (2.3:1) and its "Upload" button is 34px in UM blue
   (um-fileupload.css div.um-modal .ajax-upload-dragdrop span.help / div.um-modal .upload). */
:is(body.tl-um-page, body.tl-agent-app-body) .um-modal .ajax-upload-dragdrop span.help { color: var(--tl-mute); }
:is(body.tl-um-page, body.tl-agent-app-body) .um-modal .ajax-upload-dragdrop span.str { color: var(--tl-body); }
:is(body.tl-um-page, body.tl-agent-app-body) .um-modal .upload {
	height: 44px;
	padding: 0 20px;
	border-radius: var(--tl-radius-btn);
	background: var(--tl-teal);
	color: var(--tl-white);
	font-size: 16px; /* buttons 16 / 700 (A11, was 15 / 600) */
	font-weight: 700;
	line-height: 44px !important; /* beats um-fileupload.css div.um-modal .upload{line-height:34px!important} */
}
:is(body.tl-um-page, body.tl-agent-app-body) .um-modal .upload:is(:hover, :focus-within) { background: var(--tl-teal-hover); }
/* QA14: UM only adds .uimob500 (full-width) after a debounced resize, so for ~150-300ms
   after rotating/resizing, .um-modal.normal is still 500px at margin-left:-250px and
   clips off-screen. Match UM's own <=500px switch in CSS so it never waits on JS.
   width/left/margin need no !important (UM sets them in a stylesheet, .um-modal.normal).
   bottom does: UM writes an inline bottom (animated to centre the modal), so on phones
   the sheet pins to the top and scrolls itself instead (Codex PR15). */
@media (max-width: 500px) {
	:is(body.tl-um-page, body.tl-agent-app-body) .um-modal:is(.normal, .small) {
		top: 0;
		bottom: auto !important; /* beats UM's inline style="bottom:…" (um-functions.js um_modal_responsive) */
		left: 0;
		width: 100%;
		max-height: 100vh;
		max-height: 100dvh;
		margin-left: 0;
		overflow-y: auto;
	}
}
@media (max-width: 599px) {
	:is(body.tl-um-page, body.tl-agent-app-body) .um-modal .um-modal-header,
	:is(body.tl-um-page, body.tl-agent-app-body) .um-modal .um-modal-body { border-radius: 0; }
	.tl-agent-app .tl-account-logo { grid-template-columns: minmax(0, 1fr); }
	.tl-agent-app .tl-account-logo-body { grid-column: 1; }
}

/* ---- 5h. Profile page (agent admin → Profile; profile extras step 3) ------------------
   Markup: templates/agent-profile-extras.php (contract in its docblock). Mock:
   Images/agent-profile-admin-mockup.png. Everything that already exists is reused as it is:
   the .tl-profile column (860), .tl-card.tl-form-card (24 / 28, 18 / 16 under 900), .tl-field,
   .tl-label, .tl-input / .tl-select (3b), .tl-field-hint, .tl-field-error, .tl-bio-count (Account),
   the picker and its chips (5e, as Specialties), .tl-btn.tl-form-save, the error summary (5d) and
   the arrow link (7b). Only what's new is here. One breakpoint inside the cards, 600 (the shared
   .tl-field-row's, as Account), so the experience row, the training / award rows and the social
   rows all go side by side together. */

/* Head: title, intro, and the public-profile status. "View my profile →" sits on the title's
   line at the right (mock, both widths); the other three states are a sentence, so they go under
   the intro in Account's "Your public profile" box (.tl-account-profile--pending look). */
.tl-agent-app .tl-profile-extras__head:has(> .tl-profile-extras__status--live) {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	column-gap: 16px;
}
.tl-agent-app .tl-profile-extras__head:has(> .tl-profile-extras__status--live) > .tl-page-sub { grid-column: 1 / -1; }
.tl-agent-app .tl-profile-extras__head > .tl-profile-extras__status--live { grid-row: 1; grid-column: 2; margin: 0 4px 0 0; }
.tl-agent-app .tl-profile-extras__status:not(.tl-profile-extras__status--live) {
	margin-top: 16px;
	padding: 12px 16px;
	border: 1px solid var(--tl-line);
	border-radius: 10px;
	background: var(--tl-wash);
	font-size: 15px;
	line-height: 1.5;
	color: var(--tl-body);
	overflow-wrap: anywhere;
}

/* Cards: the hint under each card title is Specialties' chip-card hint (16 / 1.5 body, 4px
   under the title). (0,3,0) after 5d's ".tl-form-card > .tl-card-title + *" 16px. */
.tl-agent-app .tl-profile-extras__card > .tl-profile-extras__card-hint { margin-top: 4px; font-size: 16px; line-height: 1.5; color: var(--tl-body); }
/* The places card is a focus target for the error summary (tabindex=-1): no box on that focus. */
.tl-agent-app .tl-profile-extras__card--places:focus,
.tl-agent-app .tl-profile-extras__rows:focus { outline: 0; }

/* Experience: In travel since + Languages are the shared .tl-field-row (2 columns, 1 under 600).
   The years preview reads as the hint under the select, in body colour (it's what travellers see,
   not an instruction). */
.tl-agent-app .tl-profile-extras__years { margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--tl-body); }

/* Lock line (Pro gate, later): a quiet wash tag between the label and the field. Body on wash 6.8:1. */
.tl-agent-app .tl-profile-extras__lock {
	display: flex;
	align-items: center;
	gap: 6px;
	width: fit-content;
	max-width: 100%;
	margin: 0 0 10px;
	padding: 4px 10px;
	border: 1px solid var(--tl-line);
	border-radius: var(--tl-radius-pill);
	background: var(--tl-wash);
	color: var(--tl-body);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
}
.tl-agent-app .tl-profile-extras__lock .tl-icon { width: 15px; height: 15px; color: var(--tl-mute); }

/* Training and awards: two unboxed fieldsets with a line between them. */
.tl-agent-app fieldset:is(.tl-profile-extras__rows, .tl-profile-extras__social) { min-width: 0; margin: 20px 0 0; padding: 0; border: 0; } /* 20px: the card rhythm (5d) */
.tl-agent-app .tl-profile-extras__rows + .tl-profile-extras__rows { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--tl-line); }
/* The legend is floated back into the flow (as Specialties' .tl-chip-card-legend), so the second
   fieldset's top line doesn't run through it. Hints sit 6px under the legend, then the rows. */
.tl-agent-app :is(.tl-profile-extras__rows, .tl-profile-extras__social) > legend.tl-label { float: left; width: 100%; margin: 0 0 8px; }
.tl-agent-app :is(.tl-profile-extras__rows, .tl-profile-extras__social) > legend.tl-label:has(+ .tl-field-hint) { margin-bottom: 6px; }
.tl-agent-app :is(.tl-profile-extras__rows, .tl-profile-extras__social) > legend + * { clear: both; }
.tl-agent-app :is(.tl-profile-extras__rows, .tl-profile-extras__social) > .tl-field-hint { margin-top: 0; }
.tl-agent-app .tl-profile-extras__rows > .tl-field-error { margin-top: 8px; }
/* The fieldset and the row carry .has-error too (for the summary links), and 3b's error border is
   ".tl-agent-app .has-error .tl-input" (0,4,0), so every input in the list went red. Only the field
   that's wrong keeps it: the others get 3b's normal, hover and focus borders back. (0,6,0)-(0,7,0). */
.tl-agent-app .tl-profile-extras__rows.has-error .tl-field:not(.has-error) .tl-input { border-color: var(--tl-line); }
.tl-agent-app .tl-profile-extras__rows.has-error .tl-field:not(.has-error) .tl-input:hover { border-color: var(--tl-teal-bright); }
.tl-agent-app .tl-profile-extras__rows.has-error .tl-field:not(.has-error) .tl-input:focus { border-color: var(--tl-teal); }
.tl-agent-app .tl-profile-extras__row-list { display: grid; gap: 16px; margin-top: 16px; }
/* A row: name, year, remove. Under 600 the name is full width and the year + remove share the
   next line; from 600 all three sit on one line, the year 132px. The × is the input's height and
   starts one label line down (16px × 1.35 + 8px), so it lines up with the inputs whether or not
   a field error grows a column. */
.tl-agent-app .tl-profile-extras__row {
	display: grid;
	grid-template-columns: minmax(0, 132px) 44px minmax(0, 1fr);
	grid-template-areas: "name name name" "year remove .";
	gap: 12px;
	align-items: start;
}
.tl-agent-app .tl-profile-extras__row + .tl-profile-extras__row { padding-top: 16px; border-top: 1px solid var(--tl-line); }
.tl-agent-app .tl-profile-extras__row-name { grid-area: name; }
.tl-agent-app .tl-profile-extras__row-year { grid-area: year; }
.tl-agent-app .tl-profile-extras__row-remove { grid-area: remove; }
.tl-agent-app .tl-profile-extras__row-remove:not([hidden]) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: var(--tl-control-h);
	margin: calc(16px * 1.35 + 8px) 0 0;
	padding: 0;
	border: 0;
	border-radius: var(--tl-radius-btn);
	background: transparent;
	box-shadow: none;
	color: var(--tl-mute);
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease; /* not Astra's button "all" */
}
.tl-agent-app .tl-profile-extras__row-remove .tl-icon { width: 20px; height: 20px; }
/* Hover = the account menu's hover (wash, navy). Astra's button:hover / :focus fill is beaten at (0,3,0). */
.tl-agent-app .tl-profile-extras__row-remove:is(:hover, :focus) { background: var(--tl-wash); color: var(--tl-navy); }
.tl-agent-app .tl-profile-extras__rows > .tl-profile-extras__rows-nojs { margin-top: 12px; }
/* "+ Add another": the arrow link's metrics (7b: 15 / 600 / 22, teal, underline on hover, 44px
   hit area from padding cancelled by margins, ring at offset 0) with a plus in front. */
.tl-agent-app .tl-profile-extras__add:not([hidden]) {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 5px -4px -11px;
	padding: 11px 4px;
	border: 0;
	border-radius: var(--tl-radius-btn);
	background: transparent;
	box-shadow: none;
	color: var(--tl-arrow-link-color);
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 22px;
	text-transform: none;
	cursor: pointer;
	transition: none;
}
.tl-agent-app .tl-profile-extras__add .tl-icon { width: 16px; height: 16px; }
.tl-agent-app .tl-profile-extras__add:is(:hover, :focus) { background: transparent; color: var(--tl-arrow-link-hover); }
.tl-agent-app .tl-profile-extras__add:hover > span:not(.screen-reader-text) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.tl-agent-app .tl-profile-extras__add:focus-visible { outline-offset: 0; }

/* Find me online: label over input under 600; a 120px label column from 600 (mock). */
.tl-agent-app .tl-profile-extras__social-row + .tl-profile-extras__social-row { margin-top: 16px; }
.tl-agent-app .tl-profile-extras__social > .tl-field-hint + .tl-profile-extras__social-row { margin-top: 16px; }

/* Phones 360-599 (PLAN §13.1, Daniel 2 Nov: match the mock): name and year on one line, a narrow
   76px year box (4 digits + the input's 14px padding), the × beside it. "Year (optional)" wraps to
   two lines in 76px, so each .tl-field is display: contents and its label / input / error sit on
   the row's grid: labels on one row (bottom-aligned, so both inputs start level), the inputs and
   the × on the next, then each error full width under both (a long error stays readable, not
   squeezed into the year column). The DOM is unchanged, so the .has-error rules above still match.
   No hairline between rows, as from 600. 320-359 keeps the stacked layout above (the name box
   would be about 110px). */
@media (min-width: 360px) and (max-width: 599px) {
	.tl-agent-app .tl-profile-extras__row {
		grid-template-columns: minmax(0, 1fr) 76px 44px;
		grid-template-areas: "name-label year-label ." "name-input year-input remove" "name-error name-error name-error" "year-error year-error year-error";
		gap: 0 10px;
	}
	.tl-agent-app .tl-profile-extras__row + .tl-profile-extras__row { padding-top: 0; border-top: 0; }
	.tl-agent-app .tl-profile-extras__row > .tl-field { display: contents; }
	.tl-agent-app .tl-profile-extras__row-name > .tl-label { grid-area: name-label; align-self: end; }
	.tl-agent-app .tl-profile-extras__row-year > .tl-label { grid-area: year-label; align-self: end; }
	.tl-agent-app .tl-profile-extras__row-name > .tl-input { grid-area: name-input; }
	.tl-agent-app .tl-profile-extras__row-year > .tl-input { grid-area: year-input; }
	.tl-agent-app .tl-profile-extras__row-name > .tl-field-error { grid-area: name-error; }
	.tl-agent-app .tl-profile-extras__row-year > .tl-field-error { grid-area: year-error; }
	.tl-agent-app .tl-profile-extras__row > .tl-profile-extras__row-remove { grid-area: remove; }
	.tl-agent-app .tl-profile-extras__row-remove:not([hidden]) { margin-top: 0; }
}

@media (min-width: 600px) {
	.tl-agent-app .tl-profile-extras__row {
		grid-template-columns: minmax(0, 1fr) 132px 44px;
		grid-template-areas: "name year remove";
	}
	.tl-agent-app .tl-profile-extras__row + .tl-profile-extras__row { padding-top: 0; border-top: 0; }
	.tl-agent-app .tl-profile-extras__social-row {
		display: grid;
		grid-template-columns: 120px minmax(0, 1fr);
		column-gap: 16px;
		align-items: center;
	}
	.tl-agent-app .tl-profile-extras__social-row + .tl-profile-extras__social-row { margin-top: 12px; }
	.tl-agent-app .tl-profile-extras__social-label { margin: 0; overflow-wrap: anywhere; }
	.tl-agent-app .tl-profile-extras__social-row > .tl-field-error { grid-column: 2; }
}

/* ---- Sticky Save bar, one set of rules: .tl-savebar (Profile 5h + Specialties, Trello 44) ----------
   Markup (the bar is always its form's LAST child; that is what makes it settle under the last field):
     Profile:     div.tl-profile-extras__savebar.tl-savebar > p.tl-profile-extras__savebar-note + button.tl-form-save
     Specialties: div.tl-form-actions.tl-savebar > button.tl-btn.tl-btn-primary.tl-form-save + a.tl-link.tl-form-cancel
   Sticky to the bottom of the viewport while the form is on screen, so it behaves as a fixed bar but
   stays in the content column (never under the rail) and, at the end of the form, settles in the flow
   under the last card, so it can never cover the last field (no padding to keep in step with its
   height). Desktop: a card the column's width (line border, card shadow), 16px off the bottom, the
   note or Cancel then Save on the right (mock). Height: 1 + 14 + the 48px button + 14 + 1 = 78px.
   Specialties also carries .tl-form-actions (Account's and the report form's footer, ~2670 / ~2752:
   row-reverse, 16/32 gap, padding-top 20, border-top, a column stack under 900). Every one of those
   properties is restated here at the same specificity, later in the file, so the bar wins on source
   order with no !important, and .tl-form-actions itself is untouched (Account / report unchanged). */
.tl-agent-app .tl-savebar {
	position: sticky;
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	z-index: 10;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-end;
	gap: 12px 20px;
	margin-top: 8px;
	padding: 14px 20px;
	border: 1px solid var(--tl-line);
	border-radius: var(--tl-radius-card);
	background: var(--tl-white);
	box-shadow: var(--tl-shadow-card);
}
.tl-agent-app .tl-savebar .tl-form-save { flex: none; }
/* Cancel sits left of Save (where Profile's note sits) by order only: Save stays first in the DOM
   and in the tab order. */
.tl-agent-app .tl-savebar .tl-form-cancel { order: -1; flex: none; }
/* Specialties: the footnote is the last thing above the bar. A 20px bottom margin (collapses with the
   bar's 8px top margin) gives the same 20px gap to the settled bar as Profile's last card (F2). */
.tl-agent-app .tl-specialties-form .tl-form-footnote { margin-bottom: 20px; }
.tl-agent-app .tl-profile-extras__savebar-note { min-width: 0; font-size: 14px; line-height: 1.45; color: var(--tl-mute); text-align: right; }

/* Under 900 the bottom tabs are fixed under it: the bar sits on top of them (the tab bar's own
   top line is the divider), full bleed across the 16px gutters. Height: 1 + 12 + 48 + 12 = 73px.
   The row stays a row (Cancel beside Save, not the .tl-form-actions column stack). Under 600 the
   note goes, as in the phone mock (the head's status line says the same thing for pending agents),
   and Save takes the rest of the row: the whole row on Profile, beside the 44px-tall Cancel on
   Specialties. */
@media (max-width: 899px) {
	.tl-agent-app .tl-savebar {
		bottom: calc(var(--tl-tabbar-h) + env(safe-area-inset-bottom, 0px));
		margin: 8px -16px 0;
		padding: 12px 16px;
		border-width: 1px 0 0;
		border-radius: 0;
		box-shadow: none;
	}
	.tl-agent-app .tl-savebar .tl-form-save { width: auto; min-width: 220px; }
	/* Fix 1 (Trello 44): .tl-agent-main's phone padding-bottom (~4031) is the tab bar + 32px +
	   safe area, so the settled bar stopped 32px above the tab bar and jumped up at the very end.
	   On a page with the bar (always the last thing in main), drop the 32: the settled bar lands
	   flush on the tab bar, exactly where it sits while sticky. Keep in step with ~4031. */
	.tl-agent-app .tl-agent-main:has(.tl-savebar) { padding-bottom: calc(var(--tl-tabbar-h) + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 599px) {
	.tl-agent-app .tl-profile-extras__savebar-note { display: none; }
	.tl-agent-app .tl-savebar .tl-form-save { flex: 1 1 0; width: auto; min-width: 0; }
}

/* ---- 5h, step 5: Your photo and Trip highlights (profile extras step 5) --------------------------
   Markup: the "Step 5" part of templates/agent-profile-extras.php's docblock. Existing pattern wins:
   the photo row is Account's logo card (avatar + body grid, one column under 600, controls 14px
   down with a 12px gap), buttons are .tl-btn.tl-btn-outline, text actions are "+ Add another"'s
   metrics (Move) and the logo's Remove link (Remove), the rights box is S5's consent box. The mock's
   photo tiles with an overlaid "Replace · ×" chip aren't copied: each highlight here carries its own
   caption, country, move and replace controls, so it's a bordered row (thumb + fields). */

/* The two upload forms are empty (their controls join them with form="…"): they take no space.
   A form's controls submit it whatever its display. */
.tl-agent-app .tl-profile-extras__upload-form { display: none; }
/* The hidden default submits (button.tl-profile-extras__default-submit[hidden]: Enter = Save profile
   in the main form; --hl: Enter in the Add-photo caption = Add photo) need no rule. Section 2's
   ":is(…, .tl-agent-app, …) [hidden] { display: none !important }" hides them, and implicit
   submission still uses a display:none default button (HTML: the first submit button in tree
   order; checked in Chromium, step 6: both Enters post the right button). Step 5's visually-hidden
   rule here never applied (that !important won), so it was removed. */
/* Error-summary targets (tabindex=-1): no box on that focus, as the Places card. */
.tl-agent-app :is(.tl-profile-extras__photo, .tl-profile-extras__card--highlights, .tl-profile-extras__hl):focus { outline: 0; }

/* A file input: the native control in the field skin. Its button is a secondary control (white,
   line border, navy 600 text, the field height); hover / error borders are the inputs' (3b). */
.tl-agent-app .tl-profile-extras__file {
	display: block;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--tl-body);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.4;
	cursor: pointer;
}
.tl-agent-app .tl-profile-extras__file::file-selector-button {
	box-sizing: border-box;
	min-height: var(--tl-control-h);
	margin: 0 12px 0 0;
	padding: 0 16px;
	border: 1.5px solid var(--tl-line);
	border-radius: var(--tl-radius-control);
	background: var(--tl-white);
	color: var(--tl-navy);
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.15s ease;
}
.tl-agent-app .tl-profile-extras__file:hover::file-selector-button { border-color: var(--tl-teal-bright); }
.tl-agent-app .tl-profile-extras__file:focus-visible { outline: 2px solid var(--tl-teal); outline-offset: 2px; border-radius: var(--tl-radius-control); }
.tl-agent-app :is(.has-error .tl-profile-extras__file, .tl-profile-extras__file[aria-invalid="true"])::file-selector-button { border-color: var(--tl-danger); }

/* Trello 36 (Daniel): "Your logo" and "Your photo" (div.tl-profile-extras__images > two __image-block), one
   pattern: the title, then the 72px preview on the left (an uploaded logo or photo the avatar's rounded
   square, initials and the person icon circles, as on the card and the public profile) and the controls on
   the right, tops level. The logo's controls: "Add / Change your logo" (a.tl-btn.tl-btn-outline, Upload
   photo's button exactly) with "Save your profile first." (the field hint, 6px) under it.
   Stacked, 20px apart (the card's field gap, 5d); side by side from 1024 in equal columns, 24px apart (the
   lead page's two-column line and gap). Under 1024 the columns are too narrow: 227px at 900, a 139px body,
   under the 157px Upload photo button. The file input puts "No file chosen" (or the file's name) on its own
   line under its button, so it reads in a 200px body instead of being cut (its one-line width is 297px). */
.tl-agent-app .tl-profile-extras__images { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px 24px; }
.tl-agent-app .tl-profile-extras__image-title { margin-bottom: 12px; }
.tl-agent-app .tl-profile-extras__image-row { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 16px; }
.tl-agent-app .tl-profile-extras__image-body { min-width: 0; }
.tl-agent-app .tl-profile-extras__image-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.tl-agent-app .tl-profile-extras__images .tl-profile-extras__file { white-space: normal; overflow-wrap: anywhere; }
.tl-agent-app .tl-profile-extras__images .tl-profile-extras__file::file-selector-button { margin: 0 100% 6px 0; }
@media (min-width: 1024px) {
	.tl-agent-app .tl-profile-extras__images { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* A chosen, not yet uploaded photo: a dashed teal ring says "preview". */
.tl-agent-app .tl-profile-extras__photo-preview.is-preview { outline: 2px dashed var(--tl-teal); outline-offset: 3px; }
.tl-agent-app .tl-profile-extras__photo-actions { margin-top: 14px; } /* the box is __image-actions (above) */
/* "Remove photo": a plain native <button> since step 6 (no .tl-btn), given Account's logo Remove
   look (.tl-logo-remove__btn, the existing control; the highlights' Remove matches): danger
   15 / 600 underlined text, 44px tall, danger ring. Every native button property is reset here so
   Astra's bare button rules (theme fill, padding, border, radius, font size, hover fill; (0,1,1)
   at most) don't reach it. (0,3,0)-(0,4,0). */
.tl-agent-app .tl-profile-extras__photo-actions > .tl-profile-extras__photo-remove {
	display: inline-flex;
	align-items: center;
	box-sizing: border-box;
	min-width: 0;
	min-height: 44px;
	margin: 0;
	padding: 0 4px;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--tl-danger);
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: normal;
	text-decoration: underline;
	text-underline-offset: 2px;
	text-transform: none;
	cursor: pointer;
}
.tl-agent-app .tl-profile-extras__photo-actions > .tl-profile-extras__photo-remove:is(:hover, :focus) { border: 0; background: transparent; box-shadow: none; color: var(--tl-danger-hover); }
.tl-agent-app .tl-profile-extras__photo-actions > .tl-profile-extras__photo-remove:focus-visible { outline: 2px solid var(--tl-danger); outline-offset: 2px; }

/* Card image (2 Nov): fieldset.tl-field.tl-field--radios.tl-profile-extras__card-image is Account's
   "Your role" group as it is (3b radios: 44px rows, 20px teal inputs, 16px navy labels, a column
   under 600). 20px under Your photo, the card rhythm (5d), restated as on the rows / social
   fieldsets because 3b's "fieldset.tl-field { margin: 0 }" (0,2,1) beats ".tl-form-card > * + *".
   Its hint is 3b's .tl-field-hint (14 / mute 4.55:1, 6px top), as Headline's. New here only the
   unavailable option (a generic radio state; no other radio uses it yet): the label goes to mute
   (4.55:1 on the white card, so it stays readable; no opacity fade) with a not-allowed cursor;
   the native disabled input draws itself greyed. */
.tl-agent-app fieldset.tl-profile-extras__card-image { margin-top: 20px; }
.tl-agent-app .tl-radio.is-disabled { color: var(--tl-mute); cursor: not-allowed; }
/* Trello 36: "Upload a photo to use it." after the disabled Photo option: the field hint's look (14 / 1.45 mute,
   4.55:1 on white), never faded with the option. In the radios' row (601+) it follows Photo on its line; in
   their column (600 and under) it sits under Photo's words (20px radio + 10px gap in), close under its 44px row. */
.tl-agent-app .tl-profile-extras__card-image-note { align-self: center; color: var(--tl-mute); font-size: 14px; line-height: 1.45; }
@media (max-width: 600px) {
	.tl-agent-app .tl-profile-extras__card-image-note { align-self: flex-start; margin: -8px 0 4px; padding-left: 30px; }
}
.tl-agent-app .tl-radio-input:disabled { cursor: not-allowed; }

/* "View my profile" in the saved notice (2 Nov). The notice is a flex row (icon, text); a link as
   a third flex item would sit in its own column and squeeze the text. With the link, the notice
   flows as a block instead: the icon is pinned where the flex row puts it (18 / 15) and the text
   starts at 50px (18 + 22 + 10, the flex gap: 46px padding + a 4px first-line indent), so the
   text lands where it always did and the link runs inline after it, wrapping under the text (not
   under the icon) as one nowrap unit. Wrapped (320), the link's line starts at 46px, so its box
   (4px side padding, below) puts the link text at 50px, under "Profile saved." (R2, 2 Nov).
   Notices without the link (Upload, Move, other pages) don't match and are unchanged. The link
   is the arrow link (7b), but teal is 4.33:1 on the green wash, so here it takes --tl-teal-hover
   (5.82:1; the token's "on the wash" colour) and hovers to navy (13.15:1) with 7b's underline. */
.tl-agent-app .tl-form-flash:has(> .tl-profile-extras__flash-link) {
	display: block;
	position: relative;
	padding-left: 46px;
	text-indent: 4px;
	--tl-arrow-link-color: var(--tl-teal-hover);
	--tl-arrow-link-hover: var(--tl-navy);
}
.tl-agent-app .tl-form-flash:has(> .tl-profile-extras__flash-link) > .tl-icon { position: absolute; top: 14px; left: 18px; }
/* 7b's link box is 44px tall (11px padding, cancelled by margins) and pulled 4px left. Inline in
   the notice that box drew the focus ring over the full stop before it and, wrapped (320), over
   the "Profile saved." line above. Here the box is the text line (22px, 4px side padding, no left
   pull, so the ring stays 4px clear of the full stop) and the 44px hit area moves to ::before (as
   7c's pill does with ::after; ::after is the arrow). text-indent: 0 stops the notice's first-line
   indent reaching the link's own (blockified) spans. (0,4,0): 7b's (0,3,0) comes later. */
.tl-agent-app .tl-form-flash.tl-notice .tl-profile-extras__flash-link { position: relative; margin: 0 -4px 0 0; padding: 0 4px; text-indent: 0; }
.tl-agent-app .tl-form-flash.tl-notice .tl-profile-extras__flash-link::before { content: ""; position: absolute; inset: -11px 0; }

/* Trip highlights: the help line sits under the card hint, then the count, then the list. (0,3,0)
   over 5d's ".tl-form-card > * + *" 20px. */
.tl-agent-app .tl-profile-extras__card--highlights > .tl-profile-extras__hl-help { margin-top: 8px; }
.tl-agent-app .tl-profile-extras__card--highlights > .tl-profile-extras__hl-count { margin-top: 12px; }
.tl-agent-app .tl-profile-extras__hl-count { font-size: 14px; font-weight: 600; line-height: 1.45; color: var(--tl-body); }
.tl-agent-app .tl-profile-extras__card--highlights > .tl-profile-extras__hl-list { margin-top: 16px; }
.tl-agent-app .tl-profile-extras__hl-list { display: grid; gap: 16px; margin-bottom: 0; padding: 0; list-style: none; }

/* One highlight: a bordered row. Under 600: the thumb (128px) with Remove beside it, then caption,
   country, replace and move, one per line. From 600: a 200px thumb on the left of caption, country
   and replace; Move and Remove share the bottom line. */
.tl-agent-app .tl-profile-extras__hl {
	display: grid;
	grid-template-columns: 128px minmax(0, 1fr);
	grid-template-areas: "media remove" "caption caption" "country country" "replace replace" "move move";
	align-items: start;
	gap: 16px;
	margin: 0;
	padding: 16px;
	border: 1px solid var(--tl-line);
	border-radius: 12px;
	background: var(--tl-white);
}
.tl-agent-app .tl-profile-extras__hl.has-error { border-color: var(--tl-danger); }
.tl-agent-app .tl-profile-extras__hl-media { grid-area: media; position: relative; min-width: 0; }
.tl-agent-app .tl-profile-extras__hl-caption { grid-area: caption; }
.tl-agent-app .tl-profile-extras__hl > .tl-profile-extras__hl-country { grid-area: country; }
.tl-agent-app .tl-profile-extras__hl-replace { grid-area: replace; }
.tl-agent-app .tl-profile-extras__hl-move { grid-area: move; }
.tl-agent-app .tl-profile-extras__hl-remove { grid-area: remove; justify-self: end; }
/* The li carries .has-error for a replace error too, and 3b's ".tl-agent-app .has-error .tl-input"
   (0,4,0) then turned the caption and country red. Only the field that's wrong stays red (as the
   training rows, above). (0,6,0)-(0,7,0). */
.tl-agent-app .tl-profile-extras__hl.has-error .tl-field:not(.has-error) :is(.tl-input, .tl-select) { border-color: var(--tl-line); }
.tl-agent-app .tl-profile-extras__hl.has-error .tl-field:not(.has-error) :is(.tl-input, .tl-select):hover { border-color: var(--tl-teal-bright); }
.tl-agent-app .tl-profile-extras__hl.has-error .tl-field:not(.has-error) :is(.tl-input, .tl-select):focus { border-color: var(--tl-teal); }

/* The thumb (4:3) with its number chip top left (navy, white 13 / 700); once JS adds drag, the grip
   shows inside the chip, before the number (the mock's "⠿ 1"). */
.tl-agent-app .tl-profile-extras__hl-img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: var(--tl-wash); }
.tl-agent-app .tl-profile-extras__hl-num {
	position: absolute;
	top: 6px;
	left: 6px;
	box-sizing: border-box;
	min-width: 24px;
	padding: 2px 8px;
	border-radius: 6px;
	background: var(--tl-navy);
	color: var(--tl-white);
	font-size: 13px;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
	font-variant-numeric: tabular-nums;
}
.tl-agent-app .tl-profile-extras__hl-media:has(> .tl-profile-extras__hl-handle:not([hidden])) .tl-profile-extras__hl-num { padding-left: 24px; }
.tl-agent-app .tl-profile-extras__hl-handle:not([hidden]) {
	position: absolute;
	top: 6px;
	left: 8px;
	display: flex;
	align-items: center;
	height: 24px;
	color: var(--tl-white);
	pointer-events: none;
}
.tl-agent-app .tl-profile-extras__hl-handle .tl-icon { width: 14px; height: 14px; }
/* Drag (desktop, once JS runs): grab on the photo; the item being dragged fades with a dashed edge. */
.tl-agent-app .tl-profile-extras__hl-list.is-sortable .tl-profile-extras__hl-media { cursor: grab; }
.tl-agent-app .tl-profile-extras__hl.is-dragging { border-style: dashed; border-color: var(--tl-teal); opacity: 0.6; }

/* Replace: the label, then the file input and its Upload button on one line where they fit. */
.tl-agent-app .tl-profile-extras__hl-replace { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.tl-agent-app .tl-profile-extras__hl-replace > .tl-label { flex: 1 1 100%; margin: 0; }
.tl-agent-app .tl-profile-extras__hl-replace > .tl-profile-extras__file { flex: 1 1 220px; width: auto; min-width: 0; }
.tl-agent-app .tl-profile-extras__hl-replace > .tl-field-error { flex: 1 1 100%; margin-top: 0; }
.tl-agent-app .tl-profile-extras__hl-replace-btn { flex: none; }

/* Move up / Move down: "+ Add another"'s metrics (teal 15 / 600, 44px tall, underline on hover).
   Remove: the logo's Remove (danger, underlined, danger ring). An item with neither Move button
   (a single highlight) drops the empty row. */
.tl-agent-app .tl-profile-extras__hl-move { display: flex; flex-wrap: wrap; gap: 0 20px; margin-left: -4px; }
.tl-agent-app .tl-profile-extras__hl-move:not(:has(> button:not([hidden]))) { display: none; }
.tl-agent-app :is(.tl-profile-extras__hl-move-btn, .tl-profile-extras__hl-remove):not([hidden]) {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	margin: 0;
	padding: 0 4px;
	border: 0;
	border-radius: var(--tl-radius-btn);
	background: transparent;
	box-shadow: none;
	color: var(--tl-arrow-link-color);
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 22px;
	text-transform: none;
	cursor: pointer;
	transition: none;
}
.tl-agent-app :is(.tl-profile-extras__hl-move-btn, .tl-profile-extras__hl-remove) .tl-icon { flex: none; width: 16px; height: 16px; }
.tl-agent-app .tl-profile-extras__hl-move-btn:is(:hover, :focus) { background: transparent; color: var(--tl-arrow-link-hover); }
.tl-agent-app .tl-profile-extras__hl-move-btn:hover > span:not(.screen-reader-text) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.tl-agent-app .tl-profile-extras__hl-remove:not([hidden]) { margin-right: -4px; color: var(--tl-danger); }
.tl-agent-app .tl-profile-extras__hl-remove > span:not(.screen-reader-text) { text-decoration: underline; text-underline-offset: 2px; }
.tl-agent-app .tl-profile-extras__hl-remove:is(:hover, :focus) { background: transparent; color: var(--tl-danger-hover); }
.tl-agent-app .tl-profile-extras__hl-remove:focus-visible { outline: 2px solid var(--tl-danger); outline-offset: 0; }

/* Add a photo: a dashed wash box (the mock's add tile), fields 16px apart. */
.tl-agent-app .tl-profile-extras__hl-add { padding: 20px; border: 2px dashed var(--tl-line); border-radius: 12px; background: var(--tl-wash); }
.tl-agent-app .tl-profile-extras__hl-add > * + * { margin-top: 16px; }
/* Mute on the wash is 4.3:1, under 4.5: the box's hints, counter and "(optional)" use body (7.0:1). */
.tl-agent-app .tl-profile-extras__hl-add :is(.tl-field-hint, .tl-bio-count, .tl-optional) { color: var(--tl-body); }
.tl-agent-app .tl-profile-extras__hl-add-title { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--tl-navy); }
.tl-agent-app .tl-profile-extras__hl-preview:not([hidden]) { display: block; width: 100%; max-width: 320px; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
/* Rights tick box: S5's consent box (white here, on the wash), with the .tl-check grid of the forms. */
.tl-agent-app .tl-profile-extras__hl-rights { padding: 14px 16px; border: 1px solid var(--tl-line); border-radius: 10px; background: var(--tl-white); }
.tl-agent-app .tl-profile-extras__hl-rights.has-error { border-color: var(--tl-danger); }
.tl-agent-app .tl-profile-extras__hl-rights .tl-check { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 12px; align-items: start; margin: 0; cursor: pointer; }
.tl-agent-app .tl-profile-extras__hl-rights .tl-check-input { width: 22px; height: 22px; margin: 0; padding: 0; accent-color: var(--tl-teal); cursor: pointer; }
.tl-agent-app .tl-profile-extras__hl-rights .tl-check-input:focus-visible { outline: 2px solid var(--tl-teal); outline-offset: 2px; }
.tl-agent-app .tl-profile-extras__hl-rights .tl-check-label { min-width: 0; font-size: 15px; font-weight: 500; line-height: 1.45; color: var(--tl-navy); overflow-wrap: anywhere; }
.tl-agent-app .tl-profile-extras__hl-rights > .tl-field-error { margin-left: 34px; }
/* At 6: Account's "Your public profile" box. After the rights date: a quiet ticked line. */
.tl-agent-app .tl-profile-extras__hl-full { padding: 12px 16px; border: 1px solid var(--tl-line); border-radius: 10px; background: var(--tl-wash); font-size: 15px; line-height: 1.5; color: var(--tl-body); }
.tl-agent-app .tl-profile-extras__hl-rights-done { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.5; color: var(--tl-mute); }
.tl-agent-app .tl-profile-extras__card--highlights > .tl-profile-extras__hl-rights-done { margin-top: 16px; }
.tl-agent-app .tl-profile-extras__hl-rights-done .tl-icon { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--tl-success); }
.tl-agent-app .tl-profile-extras__hl-rights-done > span { min-width: 0; overflow-wrap: anywhere; }

@media (min-width: 600px) {
	.tl-agent-app .tl-profile-extras__hl {
		grid-template-columns: 200px minmax(0, 1fr) auto;
		grid-template-areas: "media caption caption" "media country country" "media replace replace" "move move remove";
		gap: 16px 20px;
		padding: 20px;
	}
	.tl-agent-app .tl-profile-extras__hl-remove { align-self: center; }
}
@media (max-width: 599px) {
	.tl-agent-app .tl-profile-extras__hl-add { padding: 16px; }
}
/* Trello 36: the image blocks keep the preview on the left on phones (a 221px body at 390). Under 360 the body
   would be narrower than the 157px Upload photo button (151 at 320), so the preview goes above its controls. */
@media (max-width: 359px) {
	.tl-agent-app .tl-profile-extras__image-row { grid-template-columns: minmax(0, 1fr); }
}

/* No scroll-padding-bottom on the Save bar pages (Trello 44 phase 3, ux-review F1). It used to keep
   a focused field clear of the sticky bar, but with it Chrome counts a field partly under the bar as
   obscured and centres it on focus (a 330-400px jump; a tapped chip slid out from under the finger).
   agent-app.js initSavebarFocus() now lifts any focused field 12px clear of the stuck bar (or the
   tab bar / viewport bottom) and does nothing when it's already clear, on Profile and Specialties
   alike. Don't add the padding back without re-measuring that. */

/* ---- 5h, step 6: "Save your other changes first?" (dialog.tl-profile-extras__unsaved) ------------
   Markup: the dialog lines of templates/agent-profile-extras.php's docblock (native <dialog>,
   showModal, agent-app.js initUnsavedDialog()). Existing pattern wins: the agent app's one modal is
   the Pass reason picker (.tl-pass-sheet / .tl-pass-dialog, 7c), so this is the same box: a bottom
   sheet under 768 (full width, card radius on top, 24 / 16 padding + the safe area), a centred
   440px card from 768 (28px padding, card radius), white, the --tl-overlay behind, 22 / 700 navy
   title, a 0.2s opacity fade. Actions as .tl-pass-actions: one column 20px under the title, the
   primary on top, both full width (Cancel is an outline button here, not the Pass "Cancel" link:
   that's the markup). It sits in the top layer, over the bottom tabs and the Save bar.
   The overlay is a spread box-shadow on the dialog, not ::backdrop: older engines don't pass custom
   properties to ::backdrop, and the token must apply everywhere (the lightbox's reason, B10x). */
.tl-agent-app .tl-profile-extras__unsaved {
	box-sizing: border-box;
	inset: 0;
	width: 100%;
	max-width: 100%;
	max-height: calc(100dvh - 24px);
	margin: auto 0 0;
	padding: 24px 16px calc(16px + env(safe-area-inset-bottom, 0px));
	overflow-y: auto;
	overscroll-behavior: contain;
	border: 0;
	border-radius: var(--tl-radius-card) var(--tl-radius-card) 0 0;
	background: var(--tl-white);
	box-shadow: 0 0 0 100vmax var(--tl-overlay);
	color: var(--tl-body);
	font-family: inherit;
}
.tl-agent-app .tl-profile-extras__unsaved::backdrop { background: transparent; }
.tl-agent-app .tl-profile-extras__unsaved:focus { outline: none; } /* if focus falls to the box while the buttons are disabled; the buttons carry the rings */
.tl-agent-app .tl-profile-extras__unsaved[open] { animation: tl-pass-fade-in 0.2s ease-out; }
/* While it's open the page doesn't scroll behind it. The reserved scrollbar gutter (0b) is outside
   the viewport the overlay covers and shows the canvas, so the canvas takes the overlay too (over
   the browser's white: the same tint as the overlay on the page), not a pale 15px strip on the
   right on desktops with classic scrollbars. Phones reserve no gutter. */
html:has(.tl-profile-extras__unsaved[open]) { overflow: hidden; background-color: var(--tl-overlay); }
@media (min-width: 768px) {
	.tl-agent-app .tl-profile-extras__unsaved {
		width: calc(100% - 48px);
		max-width: 440px;
		max-height: calc(100dvh - 48px);
		margin: auto;
		padding: 28px;
		border-radius: var(--tl-radius-card);
	}
}
@media (prefers-reduced-motion: reduce) {
	.tl-agent-app .tl-profile-extras__unsaved[open] { animation: none; }
}
.tl-agent-app .tl-profile-extras__unsaved-title { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.3; color: var(--tl-navy); overflow-wrap: anywhere; }
/* The one line under the question: the Pass picker's .tl-pass-text (15 / 1.5 body, 6px under the title). */
.tl-agent-app .tl-profile-extras__unsaved-text { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--tl-body); overflow-wrap: anywhere; }
/* Actions = .tl-pass-actions (PLAN §13: Cancel is the Pass picker's text link, button.tl-pass-cancel):
   one column, centred, 4px apart, 20px under the text; the primary full width. Cancel takes the
   Pass Cancel rules (7c), whose selector names this wrapper too. */
.tl-agent-app .tl-profile-extras__unsaved-actions { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 20px; }
.tl-agent-app .tl-profile-extras__unsaved-actions > .tl-btn { width: 100%; margin: 0; }
/* While the save runs (.is-busy, both buttons [disabled]), the site's "posting" pattern (the AI
   card's Post button, marketing.css M5c): the button doing the work stays teal with a spinning ring
   before its label and a progress cursor; the other reads as off: the disabled look (neutral fill,
   line border, body text 6.4:1, no fade; also the UM modal's disabled Apply) with no hover change.
   Reduced motion: a still ring. (0,4,0)-(0,6,0) over 2's .tl-btn / .tl-btn-outline states. */
.tl-agent-app .tl-profile-extras__unsaved-actions > .tl-btn:disabled,
.tl-agent-app .tl-profile-extras__unsaved-actions > .tl-btn:disabled:is(:hover, :focus) {
	border-color: var(--tl-line);
	background: var(--tl-neutral-soft);
	color: var(--tl-body);
	opacity: 1;
	cursor: not-allowed;
}
.tl-agent-app .tl-profile-extras__unsaved.is-busy .tl-profile-extras__unsaved-actions > .tl-profile-extras__unsaved-save:disabled,
.tl-agent-app .tl-profile-extras__unsaved.is-busy .tl-profile-extras__unsaved-actions > .tl-profile-extras__unsaved-save:disabled:is(:hover, :focus) {
	border-color: var(--tl-teal);
	background: var(--tl-teal);
	color: var(--tl-white);
	cursor: progress;
}
.tl-agent-app .tl-profile-extras__unsaved.is-busy .tl-profile-extras__unsaved-save::before {
	content: "";
	flex: none;
	box-sizing: border-box;
	width: 18px;
	height: 18px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: tl-pe-spin 0.8s linear infinite;
}
/* The Cancel link while the save runs ([disabled]): mute (4.6:1), no hover change, not-allowed. */
.tl-agent-app .tl-profile-extras__unsaved-actions > .tl-pass-cancel:disabled,
.tl-agent-app .tl-profile-extras__unsaved-actions > .tl-pass-cancel:disabled:is(:hover, :focus) { color: var(--tl-mute); text-decoration-thickness: 1px; cursor: not-allowed; }
@keyframes tl-pe-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
	.tl-agent-app .tl-profile-extras__unsaved.is-busy .tl-profile-extras__unsaved-save::before { animation: none; }
}

/* ---- 6. Placeholders ------------------------------------------------------- */
.tl-agent-app .tl-placeholder-card { max-width: 720px; padding: 28px; color: var(--tl-body); }
.tl-agent-app .tl-placeholder-text { font-size: 17px; }

/* ---- 7. Mobile: bottom tabs (< 900px) ------------------------------------- */
@media (max-width: 899px) {
	.tl-agent-app {
		display: block;
		min-height: 100vh;
	}
	.tl-agent-app .tl-agent-topbar {
		height: 64px;
		padding: 0 8px 0 16px;
	}
	.tl-agent-app .tl-agent-logo { flex: 0 1 auto; padding: 0; border-right: 0; }
	.tl-agent-app .tl-agent-logo-img { height: 40px; }
	.tl-agent-app .tl-account-menu { min-width: 0; padding: 0; }
	/* min-width 0 (decision #81 §13 check): at 375 a 17-character name at 42vw still ran the toggle
	   1px past the screen (page-wide sideways scroll); now the toggle can shrink and the name ellipsises. */
	.tl-agent-app .tl-account-menu-toggle { min-width: 0; font-size: 15px; gap: 6px; }
	.tl-agent-app .tl-account-menu-name { max-width: 42vw; }
	/* Right edge under the username's right edge (8px from the screen edge); never wider than the screen. */
	.tl-agent-app .tl-account-menu-list { right: 0; top: calc(100% - 4px); max-width: calc(100vw - 16px); }

	.tl-agent-app .tl-agent-nav {
		position: fixed;
		top: auto;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 20;
		height: auto;
		padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
		border-right: 0;
		border-top: 1px solid var(--tl-line);
	}
	.tl-agent-app .tl-agent-nav-heading { display: none; }
	/* Profile extras step 3 (2 Nov): 5 tabs (Inbox, Specialties, Profile, Account, Log out). Equal
	   columns where they fit, but never narrower than a label: "Specialties" (13px, about 70px) got
	   58px of an equal fifth at 320, so the columns are content-sized from there (1fr with a
	   max-content floor) and the gaps / side padding went down to 2 / 8px (were 6 / 12). The 13px
	   text floor stays (STYLE-CHECKLIST §3). Works for any number of tabs. */
	.tl-agent-app .tl-agent-nav-list {
		display: grid;
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: minmax(max-content, 1fr);
		gap: 2px;
	}
	.tl-agent-app .tl-agent-nav-link {
		position: relative;
		flex-direction: column;
		justify-content: center;
		gap: 4px;
		min-height: 60px; /* = the 24px icon + 4 + a 19.5px label + 12, so the bar is --tl-tabbar-h exactly */
		min-width: 44px;
		padding: 6px 4px;
		font-size: 13px;
		text-align: center;
	}
	.tl-agent-app .tl-agent-nav-label { flex: none; white-space: nowrap; }
	.tl-agent-app .tl-agent-nav-item-logout {
		margin-top: 0;
		padding: 0 0 0 2px;
		border-top: 0;
		border-left: 1px solid var(--tl-line);
	}
	/* Trello 41 (Daniel, 13 Nov): Help stays out of the phone bar, which keeps its five tabs; phones
	   reach Help through the name drop-down (li.tl-account-menu-item-help). display: none takes the
	   item out of the grid, so the columns, gaps and Log out's divider are exactly as before. */
	.tl-agent-app .tl-agent-nav-item-help { display: none; }
	/* Mock shows no badge at 0 on mobile; a live count sits on the icon. */
	.tl-agent-app .tl-agent-nav .tl-agent-nav-item .tl-badge { display: none; }
	/* ux m1: (0,5,0) so it also beats the desktop .is-current white badge (0,4,0):
	   a live count is white on teal on every tab, current or not. */
	.tl-agent-app .tl-agent-nav .tl-agent-nav-item .tl-badge.tl-badge-has-new {
		display: inline-flex;
		position: absolute;
		top: 2px;
		left: calc(50% + 6px);
		min-width: 20px;
		height: 20px;
		padding: 0 5px;
		font-size: 13px; /* the 13px text floor (STYLE-CHECKLIST §3; A11, was 12) */
		background: var(--tl-teal);
		color: var(--tl-white);
	}

	.tl-agent-app .tl-agent-main {
		padding: 28px 16px calc(var(--tl-tabbar-h) + 32px + env(safe-area-inset-bottom, 0px));
	}

	.tl-agent-app .tl-page-title { font-size: 32px; }
	.tl-agent-app .tl-page-sub { font-size: 16px; }

	.tl-agent-app .tl-empty { padding: 40px 20px 24px; }
	.tl-agent-app .tl-empty-icon .tl-icon { width: 96px; height: 84px; }
	.tl-agent-app .tl-empty-title { font-size: 30px; }
	.tl-agent-app .tl-empty-text { font-size: 17px; }
	.tl-agent-app .tl-inbox-note { align-items: flex-start; text-align: left; font-size: 15px; }
	.tl-agent-app .tl-empty .tl-inbox-note { margin-left: 0; margin-right: 0; }

	/* Lead detail: compact one-line facts and contact rows (mobile mock). */
	.tl-agent-app .tl-lead-title { font-size: 34px; }
	.tl-agent-app .tl-lead-head { align-items: center; gap: 10px; margin-bottom: 18px; }
	.tl-agent-app .tl-lead-title { flex-basis: 100%; margin-right: 0; }
	.tl-agent-app .tl-lead-head .tl-pill { padding: 6px 22px; font-size: 16px; }
	.tl-agent-app :is(.tl-lead, .tl-lead-main, .tl-lead-side) > .tl-card,
	.tl-agent-app :is(.tl-lead, .tl-lead-main) > .tl-lead-more { padding: 18px 16px; }
	.tl-agent-app .tl-card-title { font-size: 19px; }
	.tl-agent-app .tl-lead-facts { grid-template-columns: minmax(0, 1fr); margin-top: 12px; }
	.tl-agent-app .tl-lead-facts-col { gap: 12px; padding: 0; }
	.tl-agent-app .tl-lead-facts-col + .tl-lead-facts-col { margin-top: 14px; padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--tl-line); }
	.tl-agent-app .tl-lead-fact {
		grid-template-columns: 30px 86px minmax(0, 1fr);
		grid-template-areas: "icon label value";
		align-items: baseline;
	}
	.tl-agent-app .tl-lead-fact-label .tl-icon { width: 20px; height: 20px; align-self: start; margin-top: 1px; }
	.tl-agent-app .tl-lead-fact-label span { font-size: 14px; }
	.tl-agent-app .tl-lead-fact-value { margin: 0; }
	.tl-agent-app .tl-lead-fact-main { font-size: 16px; }
	.tl-agent-app .tl-lead-fact-sub { font-size: 13px; }
	.tl-agent-app :is(.tl-lead-more-list, .tl-plan-leads) { grid-template-columns: minmax(0, 1fr); gap: 10px; } /* one stacked list on both pages (P4) */
	.tl-agent-app .tl-lead-contact-sub { font-size: 15px; }
	.tl-agent-app .tl-contact-row { grid-template-columns: 30px 76px minmax(0, 1fr); min-height: 48px; }
	/* "Best time to call" is too long for the 76px label column: its value drops under the
	   label instead of the label wrapping over three lines. */
	.tl-agent-app .tl-contact-row--call-time { grid-template-columns: 30px minmax(0, 1fr); grid-template-areas: "icon label" ". value"; row-gap: 2px; padding: 8px 0; }
	.tl-agent-app .tl-contact-label .tl-icon { width: 20px; height: 20px; }
	.tl-agent-app .tl-contact-label span { font-size: 14px; }
	.tl-agent-app .tl-contact-text,
	.tl-agent-app :is(.tl-contact-row--prefs, .tl-contact-row--call-time) .tl-contact-text { font-size: 16px; }
	/* Keep Copy on the same line: the value wraps instead. */
	.tl-agent-app .tl-contact-value { flex-wrap: nowrap; gap: 8px; }
	.tl-agent-app .tl-contact-value .tl-contact-text { flex: 1 1 auto; min-width: 0; }
	.tl-agent-app .tl-copy-btn { flex: none; }
	/* 80e: the email wraps only at its <wbr> points (3, .tl-email). In the 76px-label grid it had
	   about 150px at 320 ("longcompanynam/e"), so on phones (below) its value drops under the label
	   as "Best time to call" does, and here Copy wraps under the address when both don't fit on a
	   line; a short address keeps Copy beside it. */
	.tl-agent-app .tl-contact-row--email .tl-contact-value { flex-wrap: wrap; }
	.tl-agent-app .tl-copy-btn .tl-icon { width: 18px; height: 18px; }
	.tl-agent-app .tl-inbox-note.tl-lead-stay-note {
		margin: 0 0 20px;
		padding: 14px 16px;
		border: 1px solid var(--tl-line);
		border-radius: 14px;
		background: var(--tl-white);
	}
}

/* 80e: phones only, the email value under its label (224px at 320, 294 at 390; 7, 899px block).
   80m: the Mobile row too. Beside the 76px label the number had 148px at 320, less the 93px Copy,
   so "0491 570 156" split over three lines. Under the label it has 224px, Copy stays beside it
   (same order, size and right alignment), and the number never breaks. */
@media (max-width: 767px) {
	.tl-agent-app :is(.tl-contact-row--email, .tl-contact-row--phone) { grid-template-columns: 30px minmax(0, 1fr); grid-template-areas: "icon label" ". value"; row-gap: 2px; padding: 8px 0; }
	.tl-agent-app .tl-contact-row--phone .tl-contact-text { white-space: nowrap; }
}
/* 80m (ux-review N2): from 768 up, the Email row's icon and label line up with the FIRST line of a
   wrapped address, not the middle of the whole value (address lines + Copy under them). Everything
   sits on a 44px first line: the text gets half of (44px - its line) on top, so a one-line address
   is centred on Copy exactly as before; the label is a 44px line; the icon is centred in 44px
   (26px icon: 9px, 20px icon at 768-899: 12px). Copy beside a wrapped address centres on its first
   line. A one-line row measures the same as the Mobile row (57px, all centres equal). Phones stack
   the value under the label (above), so this stays out of them. */
@media (min-width: 768px) {
	.tl-agent-app .tl-contact-row--email { align-items: start; }
	.tl-agent-app .tl-contact-row--email .tl-contact-value { align-items: flex-start; }
	.tl-agent-app .tl-contact-row--email .tl-contact-text { margin-top: calc((44px - 1.35em) / 2); }
	.tl-agent-app .tl-contact-row--email .tl-contact-label span { line-height: 44px; }
	.tl-agent-app .tl-contact-row--email .tl-contact-label .tl-icon { margin-top: 9px; }
}
@media (min-width: 768px) and (max-width: 899px) {
	.tl-agent-app .tl-contact-row--email .tl-contact-label .tl-icon { margin-top: 12px; }
}
@media (max-width: 360px) {
	.tl-agent-app .tl-agent-logo-img { height: 34px; }
	/* 320: a 17-character agency name at 42vw pushed the top bar 4px past the screen on every agent
	   page (found in the decision #81 inbox check); at 34vw it ends 6px inside the screen (the name ellipsises). */
	.tl-agent-app .tl-account-menu-name { max-width: 34vw; }
}

/* ---- 7b. Agent app links (STYLE-CHECKLIST §8 and "Agent app"; LAUNCH-READINESS A11, 5 Oct) ----
   One look per link type on the inbox, lead pages, Specialties and Account. The slim
   /agent/pending/ layout's links are in section 8. Every rule is (0,3,0), after the older
   per-page rules, so nothing below 7 needs !important.
   Inline link: --tl-teal-hover, 600, a 1px underline at 3px; hover navy with a 2px underline;
   only the colour fades; the shared 2px teal ring at 2px (section 3). pages.css P2 and the UM
   screens (um-forms.css, chunk 5) use the same values.
     In copy: Account's notes ("Contact us to change it", "Contact us"), any a.tl-link on a lead.
     Back links are their own look, the block after these rules: a.tl-back-link on the lead page, the
     plain name of the tab the agent came from ("Contacted", "Taken", "Passed", "Inbox"; the 403 page's
     "Back to inbox" is a .tl-btn button, not this link). Same 15px in a 44px row as:
     a.tl-form-cancel "Cancel" (Specialties, Account, the report form), a.tl-lead-report-link "Report a
     problem with this lead" and a.tl-lead-report-edit "Edit report" (decision #80), 15px in a 44px row.
   Arrow link (an onward link that ends a card or stands in for a secondary button): 15 / 600 / 22,
   --tl-arrow-link-color (teal; every host here is a white card), hover --tl-arrow-link-hover plus
   a 1px underline at 3px, the 15px --tl-i-arrow-right-ui mask 4px after the text, a 44px hit area
   from 11px padding cancelled by margins, the ring at offset 0 on an 8px radius. marketing.css
   a.tl-arrow-link (M13) is the same; it is scoped to the marketing body, so it's restated here.
     a.tl-lead-limit-link "Buy extra leads" (lead page, limit reached) and a.tl-account-profile-link
     "View my profile" (Account; its svg arrow is hidden and the mask draws it), and
     a.tl-profile-extras__view-link "View my profile" (Profile head, 5h; no svg, the mask draws it) and a.tl-profile-extras__flash-link "View my profile" (the saved notice, 5h: wash colours there).
   Profile (5h) inline links: the status line's Account links. */
.tl-agent-app :is(.tl-lead .tl-link, .tl-readonly-note .tl-link, .tl-account-card-text .tl-link, .tl-account-close .tl-link, .tl-profile-extras__status .tl-link, .tl-form-cancel, .tl-lead-report-link, .tl-lead-report-edit, .tl-lead-status-add, .tl-lead-status-open-lead, .tl-lead-report-remove-link, .tl-lead-admin-note-link, .tl-help .tl-help-step-link, .tl-help .tl-help-faq-a :where(a)) {
	color: var(--tl-teal-hover);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color 0.15s ease;
}
.tl-agent-app :is(.tl-lead .tl-link, .tl-readonly-note .tl-link, .tl-account-card-text .tl-link, .tl-account-close .tl-link, .tl-profile-extras__status .tl-link, .tl-form-cancel, .tl-lead-report-link, .tl-lead-report-edit, .tl-lead-status-add, .tl-lead-status-open-lead, .tl-lead-report-remove-link, .tl-lead-admin-note-link, .tl-help .tl-help-step-link, .tl-help .tl-help-faq-a :where(a)):hover { color: var(--tl-navy); text-decoration-thickness: 2px; }
.tl-agent-app :is(.tl-back-link, .tl-form-cancel, .tl-lead-report-link, .tl-lead-report-edit, .tl-lead-status-add, .tl-lead-status-open-lead, .tl-lead-status-no-reply-no) {
	display: inline-flex;
	align-items: center;
	gap: 0;
	min-height: 44px;
	font-size: 15px;
	line-height: 1.5;
}
/* Back links, one look everywhere (Daniel, 6 Nov, replaces "plain, no arrow"): a.tl-back-link (lead page),
   a.tl-about-back-link, button.tl-tf-back (/post/), a.tl-pending-home-link, a.tl-back-home (link not found),
   a.tl-reset-back__link (um-forms.css) and button.tl-ai__fs-close (marketing.css). Markup: svg.tl-icon
   (chevron-left) + span. No underline at rest; hover and focus underline the span only, never the icon, so
   any text-decoration on the link itself is a bug. Each link keeps its own colour, weight and size.
   (0,2,1): one above the page rules, which load after this file. Grid, not flex, so a wrapped label keeps
   the icon on its first line while one line still centres in the 44px row. gap 0: the chevron's box already
   leaves 0.33em of clear space (about 5px) before the text, and -0.3em pulls its tip onto the left edge.
   tl-ai__fs-close sets its box in marketing.css (Astra's and the Kit's button rules); /join/'s boxed Back
   (tl-join-btn--back) takes only the icon, um-forms.css. Those UM pages sit outside the .tl-icon rule
   (section 3): the 1em here is their only size. */
body :is(.tl-agent-app .tl-back-link, .tl-about .tl-about-back-link, .tl-tf-page .tl-tf-back, .tl-slim .tl-pending-home-link, .tl-tracker .tl-back-home, .tl-reset-page .tl-reset-back__link) {
	display: inline-grid;
	grid-template-columns: auto minmax(0, auto);
	align-content: center;
	justify-content: start;
	align-items: start;
	gap: 0;
	min-height: 44px;
	text-decoration: none;
}
body :is(.tl-back-link, .tl-about-back-link, .tl-tf-back, .tl-pending-home-link, .tl-back-home, .tl-reset-back__link, .tl-ai__fs-close, .tl-join-btn--back) .tl-icon {
	display: block;
	flex: none;
	width: 1em;
	height: 1em;
	margin: calc((1lh - 1em) / 2 + 0.06em) 0 0 -0.3em; /* centred on the first line, 0.06em down onto the capitals' centre */
	color: inherit;
	stroke-width: 2.2; /* as .tl-tracker-resend-button's chevron */
	transition: none;
}
body :is(.tl-back-link, .tl-about-back-link, .tl-tf-back, .tl-pending-home-link, .tl-back-home, .tl-reset-back__link, .tl-ai__fs-close):is(:hover, :focus) > span {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
/* The four teal-hover ones. tl-tf-back (traveller.css, with Save for later) and tl-ai__fs-close (navy) keep theirs. */
:is(.tl-agent-app .tl-back-link, .tl-about .tl-about-back-link, .tl-slim .tl-pending-home-link, .tl-tracker .tl-back-home) {
	color: var(--tl-teal-hover);
	font-weight: 600;
	transition: color 0.15s ease;
}
:is(.tl-agent-app .tl-back-link, .tl-about .tl-about-back-link, .tl-slim .tl-pending-home-link, .tl-tracker .tl-back-home):hover { color: var(--tl-navy); }
.tl-agent-app :is(.tl-lead-limit .tl-lead-limit-link, .tl-account-profile .tl-account-profile-link, .tl-profile-extras__status .tl-profile-extras__view-link, .tl-form-flash .tl-profile-extras__flash-link, .tl-status-banner .tl-status-banner-link, .tl-lead-flash .tl-lead-jump-contact) {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: 0;
	margin: -11px -4px;
	padding: 11px 4px;
	border-radius: var(--tl-radius-btn);
	color: var(--tl-arrow-link-color);
	font-size: 15px;
	font-weight: 600;
	line-height: 22px;
	text-decoration: none;
	white-space: nowrap;
	transition: none; /* Astra's "a { transition: all }" would fade the focus ring in */
}
.tl-agent-app :is(.tl-lead-limit .tl-lead-limit-link, .tl-account-profile .tl-account-profile-link, .tl-profile-extras__status .tl-profile-extras__view-link, .tl-form-flash .tl-profile-extras__flash-link, .tl-status-banner .tl-status-banner-link, .tl-lead-flash .tl-lead-jump-contact)::after {
	content: "";
	flex: none;
	width: 15px;
	height: 15px;
	background-color: currentColor;
	-webkit-mask: var(--tl-i-arrow-right-ui) center / contain no-repeat;
	mask: var(--tl-i-arrow-right-ui) center / contain no-repeat;
}
.tl-agent-app :is(.tl-lead-limit .tl-lead-limit-link, .tl-account-profile .tl-account-profile-link, .tl-profile-extras__status .tl-profile-extras__view-link, .tl-form-flash .tl-profile-extras__flash-link, .tl-status-banner .tl-status-banner-link, .tl-lead-flash .tl-lead-jump-contact):hover { color: var(--tl-arrow-link-hover); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.tl-agent-app :is(.tl-lead-limit .tl-lead-limit-link, .tl-account-profile .tl-account-profile-link, .tl-profile-extras__status .tl-profile-extras__view-link, .tl-form-flash .tl-profile-extras__flash-link, .tl-status-banner .tl-status-banner-link, .tl-lead-flash .tl-lead-jump-contact):focus-visible { outline-offset: 0; } /* (0,4,0) over the shared ring's 2px offset (section 3) */
.tl-agent-app .tl-account-profile .tl-account-profile-link .tl-icon { display: none; }
/* Its paragraph had 4px over a 44px-tall link; the arrow link is 22px tall, so the gap under the
   hint goes to 16px (the hit area still clears the hint). */
.tl-agent-app .tl-account-profile:has(> .tl-account-profile-link) { margin-top: 16px; }
/* end 7b */

/* ---- 7c. "Not for me" (decision #76, BRIEF-not-for-me §2; mock Images/not-for-me-mockup.png 1-3) ----
   Markup: templates/agent-inbox.php, templates/lead-detail.php, includes/lead-pass.php.
   Since decision #81 the inbox's "Not for me" / "Move back to inbox" live in each card's ⋯ menu
   (section 5b); what stays here: the result bar, the pill (lead page and the no-JS row fallback),
   the Passed tab's intro and the reason picker.
   - The pill: 36px to look at, 44px to hit (::after). Quiet outline, like the Copy button. */
.tl-agent-app {
	--tl-pass-pill-h: 36px;
}

/* The result slot under the tabs (empty until a result): 24px under the tab line (16 on phones,
   the tabs' margin), the list 24 (16) under the bar. */
.tl-agent-app .tl-pass-slot:empty { display: none; }
.tl-agent-app .tl-pass-slot { margin: 0 0 24px; }
.tl-agent-app .tl-pass-slot > * { margin: 0; }
.tl-agent-app .tl-pass-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	min-height: var(--tl-control-h);
	padding: 6px 6px 6px 18px; /* room for the Undo ring (3px offset + 2px) on navy */
	border-radius: 12px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
}
/* Dismissed: navy, as in the mock. White 14.9:1, Undo in --tl-on-navy-kicker 9.3:1. */
.tl-agent-app .tl-pass-bar--dismissed { background: var(--tl-navy); color: var(--tl-white); }
/* Restored: calm, the agent app's success notice (the lead page's "Moved back" is the same). */
.tl-agent-app :is(.tl-pass-bar--restored, .tl-pass-bar--status) { padding: 2px 18px; background: var(--tl-success-soft); color: var(--tl-success); }
.tl-agent-app .tl-pass-bar-form { display: flex; flex: none; margin: 0; }
.tl-agent-app .tl-pass-bar .tl-pass-bar-undo {
	min-height: 44px;
	margin: 0;
	padding: 0 12px;
	border: 0;
	border-radius: var(--tl-radius-btn);
	background: transparent;
	box-shadow: none;
	color: var(--tl-on-navy-kicker);
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	text-transform: none;
	cursor: pointer;
	transition: color 0.15s ease;
}
.tl-agent-app .tl-pass-bar .tl-pass-bar-undo:is(:hover, :focus) { background: transparent; color: var(--tl-white); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
/* On navy: the white ring (STYLE-CHECKLIST §10). */
.tl-agent-app .tl-pass-bar .tl-pass-bar-undo:focus-visible { outline: 2px solid var(--tl-white); outline-offset: 3px; } /* outside the button; the bar's 6px padding keeps the whole ring on navy */

/* The pill (rows and the lead page). (0,2,0) and up beats Astra's bare button rules. */
.tl-agent-app .tl-pass-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	box-sizing: border-box;
	height: var(--tl-pass-pill-h);
	margin: 0;
	padding: 0 14px 0 11px;
	border: 1px solid var(--tl-line);
	border-radius: var(--tl-radius-pill);
	background: var(--tl-white);
	box-shadow: none;
	color: var(--tl-navy);
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	text-transform: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.tl-agent-app .tl-pass-btn::after { content: ""; position: absolute; inset: calc((var(--tl-pass-pill-h) - 44px) / 2 - 1px) -1px; } /* 44px tap target (the -1px covers the border: the inset counts from the padding box, so it was 42px) */
.tl-agent-app .tl-pass-btn .tl-icon { width: 16px; height: 16px; color: var(--tl-mute); stroke-width: 2; }
.tl-agent-app .tl-pass-btn:is(:hover, :focus) { border-color: var(--tl-teal); background: var(--tl-teal-soft); color: var(--tl-teal-hover); }
.tl-agent-app .tl-pass-btn:is(:hover, :focus) .tl-icon { color: currentColor; }
.tl-agent-app .tl-pass-btn:disabled { cursor: progress; }

/* Lead page: the Passed pill. The passed card's foot (inbox) and the lead page's passed meta share
   span.tl-inbox-row-passed and span.tl-inbox-row-reason(.is-none). */
.tl-agent-app .tl-pill-passed { background: var(--tl-neutral-soft); color: var(--tl-body); box-shadow: inset 0 0 0 1px var(--tl-line); }
.tl-agent-app .tl-inbox-row-reason { font-size: 14px; color: var(--tl-body); }
.tl-agent-app .tl-inbox-row-reason.is-none { color: var(--tl-mute); }

/* The Passed tab's intro. */
.tl-agent-app .tl-inbox-intro { margin: 0 0 24px; font-size: 16px; line-height: 1.5; color: var(--tl-body); }
.tl-agent-app .tl-pass-slot:not(:empty) + .tl-inbox-intro { margin-top: 0; }
@media (max-width: 899px) {
	.tl-agent-app .tl-pass-slot { margin: 0 0 16px; }
	.tl-agent-app .tl-inbox-intro { margin: 0 0 16px; font-size: 15px; }
}

/* The reason picker: a bottom sheet under 768, a small centred dialog from 768. */
body:is(.tl-pass-sheet-open, .tl-status-sheet-open, .tl-filter-sheet-open, .tl-export-sheet-open, .tl-remove-sheet-open) { overflow: hidden; }
.tl-agent-app :is(.tl-pass-sheet, .tl-status-sheet, .tl-filter-sheet, .tl-remove-sheet) {
	position: fixed;
	inset: 0;
	z-index: 100; /* over the bottom tabs (20) */
	display: flex;
	align-items: flex-end;
	justify-content: center;
}
.tl-agent-app :is(.tl-pass-sheet-backdrop, .tl-status-sheet-backdrop, .tl-filter-sheet-backdrop, .tl-remove-sheet-backdrop) { position: absolute; inset: 0; background: var(--tl-overlay); }
.tl-agent-app :is(.tl-pass-dialog, .tl-status-dialog, .tl-filter-dialog, .tl-remove-dialog) {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-height: calc(100dvh - 24px);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 24px 16px calc(16px + env(safe-area-inset-bottom, 0px));
	border-radius: var(--tl-radius-card) var(--tl-radius-card) 0 0;
	background: var(--tl-white);
	color: var(--tl-body);
}
.tl-agent-app :is(.tl-pass-dialog, .tl-status-dialog, .tl-filter-dialog, .tl-remove-dialog):focus { outline: none; } /* the container takes focus on open; its controls carry the rings */
/* P2 (Daniel, BRIEF §10): the sheet and the dialog fade in (opacity only, no slide), backdrop and all. */
.tl-agent-app :is(.tl-pass-sheet, .tl-status-sheet, .tl-filter-sheet, .tl-remove-sheet).is-open { animation: tl-pass-fade-in 0.2s ease-out; }
@keyframes tl-pass-fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 768px) {
	.tl-agent-app :is(.tl-pass-sheet, .tl-remove-sheet) { align-items: center; padding: 24px; }
	.tl-agent-app :is(.tl-pass-dialog, .tl-remove-dialog) { max-width: 440px; max-height: calc(100dvh - 48px); padding: 28px; border-radius: var(--tl-radius-card); }
}
@media (prefers-reduced-motion: reduce) {
	.tl-agent-app :is(.tl-pass-sheet, .tl-status-sheet, .tl-filter-sheet, .tl-remove-sheet).is-open { animation: none; }
}
.tl-agent-app .tl-pass-picker { margin: 0; }
.tl-agent-app :is(.tl-pass-title, .tl-status-sheet-title, .tl-filter-sheet-title, .tl-remove-title) { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.3; color: var(--tl-navy); }
.tl-agent-app .tl-pass-text { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--tl-body); }
.tl-agent-app .tl-pass-reasons { min-width: 0; margin: 18px 0 0; padding: 0; border: 0; }
.tl-agent-app :is(.tl-pass-legend, .tl-lead-status-why-legend) { margin: 0 0 10px; padding: 0; font-size: 16px; font-weight: 700; line-height: 1.4; color: var(--tl-navy); }
.tl-agent-app :is(.tl-pass-optional, .tl-lead-status-optional) { font-size: 14px; font-weight: 500; color: var(--tl-mute); }
.tl-agent-app :is(.tl-pass-reason, .tl-lead-status-option) {
	position: relative;
	display: flex;
	align-items: center;
	min-height: var(--tl-control-h);
	padding: 0 16px;
	border: 1px solid var(--tl-line);
	border-radius: var(--tl-radius-control);
	background: var(--tl-white);
	color: var(--tl-navy);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.tl-agent-app .tl-pass-reason + .tl-pass-reason { margin-top: 8px; }
.tl-agent-app :is(.tl-pass-reason, .tl-lead-status-option):hover { border-color: var(--tl-teal-bright); }
/* The radio stays in the DOM and focusable, just not visible (as the Specialties chips). */
.tl-agent-app :is(.tl-pass-reason-input, .tl-lead-status-input, .tl-lead-status-reason-input) { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.tl-agent-app :is(.tl-pass-reason, .tl-lead-status-option, .tl-lead-status-reason):has(:is(.tl-pass-reason-input, .tl-lead-status-input, .tl-lead-status-reason-input):focus-visible) { outline: 2px solid var(--tl-teal); outline-offset: 2px; }
/* Picked: .is-checked from JS, or :has(:checked). A 2px teal edge as well as the fill, so it
   doesn't rest on colour alone. Text teal-hover on teal-soft 5.6:1. */
.tl-agent-app :is(.tl-pass-reason:is(.is-checked, :has(.tl-pass-reason-input:checked)), .tl-lead-status-option:is(.is-checked, :has(.tl-lead-status-input:checked)), .tl-lead-status-reason:is(.is-checked, :has(.tl-lead-status-reason-input:checked))) {
	border-color: var(--tl-teal);
	background: var(--tl-teal-soft);
	box-shadow: inset 0 0 0 1px var(--tl-teal);
	color: var(--tl-teal-hover);
	font-weight: 600;
}
.tl-agent-app .tl-pass-actions { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 20px; }
/* "Cancel": the app's plain "Back" link look (section 7b's a.tl-form-cancel), on a button. */
.tl-agent-app :is(.tl-pass-actions .tl-pass-cancel, .tl-profile-extras__unsaved-actions .tl-pass-cancel, .tl-lead-status-actions .tl-lead-status-cancel, .tl-export-actions .tl-export-cancel, .tl-help .tl-help-news-toggle, .tl-help .tl-help-start-toggle) {
	min-height: 44px;
	margin: 0;
	padding: 0 12px;
	border: 0;
	border-radius: var(--tl-radius-btn);
	background: transparent;
	box-shadow: none;
	color: var(--tl-teal-hover);
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	text-transform: none;
	cursor: pointer;
	transition: color 0.15s ease;
}
.tl-agent-app :is(.tl-pass-actions .tl-pass-cancel, .tl-profile-extras__unsaved-actions .tl-pass-cancel, .tl-lead-status-actions .tl-lead-status-cancel, .tl-export-actions .tl-export-cancel, .tl-help .tl-help-news-toggle, .tl-help .tl-help-start-toggle):is(:hover, :focus) { background: transparent; color: var(--tl-navy); text-decoration-thickness: 2px; }

/* Lead page. */
.tl-agent-app .tl-lead-pass { display: flex; justify-content: center; margin-top: 16px; }
/* UX S1 + P5: div.tl-lead-passed replaces the locked panel (right after p.tl-lead-contact-sub), so
   it takes the locked panel's box: 16px down, wash, line border, card radius, 18/20/16 padding. On
   a Taken lead the card itself is wash (.is-muted), so the panel is white there, like the gone note.
   p.tl-lead-passed-meta = the Not for me row's line: "Passed …" 16 body, " · ", reason 14 body
   ("No reason given" mute on white only: mute on wash is 4.28:1). */
.tl-agent-app .tl-lead-passed { margin-top: 16px; padding: 18px 20px 16px; border: 1px solid var(--tl-line); border-radius: var(--tl-radius-card); background: var(--tl-wash); }
.tl-agent-app .tl-lead-contact.is-muted .tl-lead-passed { background: var(--tl-white); }
.tl-agent-app .tl-lead-passed-meta { margin: 0 0 8px; font-size: 16px; line-height: 1.45; color: var(--tl-body); }
.tl-agent-app .tl-lead-passed-meta .tl-inbox-row-passed { color: var(--tl-body); }
.tl-agent-app .tl-lead-passed-sep { margin: 0 6px; color: var(--tl-mute); }
.tl-agent-app .tl-lead-passed-meta .tl-inbox-row-reason.is-none { color: var(--tl-body); }
.tl-agent-app .tl-lead-contact.is-muted .tl-lead-passed-meta .tl-inbox-row-reason.is-none { color: var(--tl-mute); }
.tl-agent-app .tl-lead-passed-text { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 16px; font-weight: 600; line-height: 1.45; color: var(--tl-navy); }
.tl-agent-app .tl-lead-passed-text .tl-icon { width: 20px; height: 20px; color: var(--tl-mute); }
.tl-agent-app .tl-restore-form--lead { margin: 12px 0 0; }
.tl-agent-app .tl-restore-form--lead .tl-restore-btn { width: 100%; }
.tl-agent-app .tl-lead-head.is-passed .tl-match-pill { border-color: var(--tl-line); color: var(--tl-mute); }
/* end 7c */

/* ---- 7d. Lead status (PLAN-lead-status.md §9, §11; mock Images/lead-status-agent-mockup.png) -----
   Markup: includes/lead-status-ui.php, templates/agent-inbox.php, templates/lead-detail.php. §11 C2: the
   mock's card layout doesn't apply; today's inbox card gains the status label, the button and the
   amber edge. New controls copy their neighbours on the same screen (STYLE-CHECKLIST "How to use" 6):
   - label: the inbox status label (5b), same box in the card and in the lead panel;
   - filter and reason chips: the "Not for me" pill's box (36px to look at, 44px to hit), picked as a
     picked pass reason (teal-soft, teal edge);
   - status options: the pass reason rows (7c shares its rules with them);
   - the sheet: the pass sheet under 768 (7c), the ⋯ popover's skin from 768;
   - the banner: the result bar's box (12px, 7c); the saved bar is the restored bar.
   The hover / focus tint turns every soft label white (5b's rule also catches these), and each ink
   passes on white too. Ratios: docs/CSS.md. */
.tl-agent-app .tl-lead-status--unlocked { background: var(--tl-amber-soft); color: var(--tl-status-amber-ink); }
.tl-agent-app :is(.tl-lead-status--reached-out, .tl-lead-status--made-contact, .tl-lead-status--planning) { background: var(--tl-teal-soft); color: var(--tl-teal-hover); }
.tl-agent-app .tl-lead-status--quote-sent { background: var(--tl-status-lilac-soft); color: var(--tl-status-lilac); }
.tl-agent-app .tl-lead-status--unable { background: var(--tl-danger-soft); color: var(--tl-danger); }
.tl-agent-app .tl-lead-status--booked { background: var(--tl-success-soft); color: var(--tl-success); }
.tl-agent-app .tl-lead-status--no-go { background: var(--tl-neutral-soft); color: var(--tl-body); }
/* Earlier leads (PLAN §10): no status yet reads quiet, not amber. */
.tl-agent-app .tl-lead-status--unlocked.is-earlier { background: var(--tl-neutral-soft); color: var(--tl-body); }
/* end earlier */
/* Booked's tick, the site's 2.4 tick, drawn in the label's own colour. */
.tl-agent-app .tl-lead-status--booked::before {
	content: "";
	display: inline-block;
	width: 13px;
	height: 13px;
	margin-right: 4px;
	vertical-align: -2px;
	background-color: currentColor;
	-webkit-mask: var(--tl-i-status-tick) center / contain no-repeat;
	mask: var(--tl-i-status-tick) center / contain no-repeat;
}

/* The Needs update count beside the Contacted tab's own count, and in the under-360 view list. Amber
   ink on amber-soft, the banner's colours, so it reads as the same thing. */
.tl-agent-app .tl-inbox-tab-needs { display: inline-flex; flex: none; line-height: 1; }
.tl-agent-app .tl-inbox-tab-needs-num {
	min-width: 20px;
	box-sizing: border-box;
	padding: 2px 6px;
	border-radius: var(--tl-radius-pill);
	background: var(--tl-amber-soft);
	color: var(--tl-status-amber-ink);
	font-size: 13px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	line-height: 1.2;
	text-align: center;
}
.tl-agent-app .tl-inbox-tab-needs + .tl-inbox-view-tick { margin-left: 0; }

/* Banner: the result bar's box on the amber fill. "Show them" is the arrow link (7b; Daniel): teal is
   3.9:1 on this fill, so here it takes teal-hover (5.4:1) and hovers to navy (13.2:1). */
.tl-agent-app .tl-status-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	margin: 0 0 16px;
	min-height: var(--tl-control-h);
	box-sizing: border-box;
	padding: 6px 18px;
	border: 1px solid var(--tl-status-amber-line);
	border-radius: 12px;
	background: var(--tl-amber-soft);
	--tl-arrow-link-color: var(--tl-teal-hover);
	--tl-arrow-link-hover: var(--tl-navy);
}
.tl-agent-app .tl-status-banner-text { min-width: 0; margin: 0; color: var(--tl-navy); font-size: 16px; line-height: 1.45; }
.tl-agent-app .tl-status-banner-text strong { font-weight: 700; }
.tl-agent-app .tl-status-banner .tl-status-banner-link { flex: none; align-self: center; }

/* Filter chips: wrap, never scroll, so the current one is always on screen. */
.tl-agent-app .tl-status-chips { margin: 0 0 16px; }
.tl-agent-app .tl-status-chips-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tl-agent-app .tl-status-chips-item { margin: 0; }
/* The pill's box (7c .tl-pass-btn). 8px between rows + 36px = 44px, so the hit areas just touch. */
.tl-agent-app :is(.tl-status-chips .tl-status-chip, .tl-lead-status-why .tl-lead-status-reason) {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	box-sizing: border-box;
	min-height: var(--tl-pass-pill-h);
	margin: 0;
	padding: 0 13px;
	border: 1px solid var(--tl-line);
	border-radius: var(--tl-radius-pill);
	background: var(--tl-white);
	color: var(--tl-navy);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.tl-agent-app :is(.tl-status-chip, .tl-lead-status-reason)::after { content: ""; position: absolute; inset: calc((var(--tl-pass-pill-h) - 44px) / 2 - 1px) -1px; }
.tl-agent-app .tl-status-chip-count { font-weight: 500; font-variant-numeric: tabular-nums; }
.tl-agent-app .tl-status-chips .tl-status-chip--needs-update { border-color: var(--tl-status-amber-line); background: var(--tl-amber-soft); color: var(--tl-status-amber-ink); }
/* At 0 it's a plain chip: nothing needs attention. The markup has no 0 class; the tab's count is [hidden] at 0. */
.tl-agent-app .tl-inbox:has(.tl-inbox-tab-needs[hidden]) .tl-status-chips .tl-status-chip--needs-update { border-color: var(--tl-line); background: var(--tl-white); color: var(--tl-navy); }
.tl-agent-app .tl-inbox .tl-status-chips .tl-status-chip:is(:hover, :focus),
.tl-agent-app .tl-lead-status-why .tl-lead-status-reason:hover { border-color: var(--tl-teal); background: var(--tl-teal-soft); color: var(--tl-teal-hover); }
.tl-agent-app .tl-status-chips .tl-status-chip:focus:not(:focus-visible) { outline: 0; }
.tl-agent-app .tl-inbox .tl-status-chips .tl-status-chip.is-current {
	border-color: var(--tl-teal);
	background: var(--tl-teal-soft);
	box-shadow: inset 0 0 0 1px var(--tl-teal);
	color: var(--tl-teal-hover);
}

/* The status label sits on its own line above the name at every width (5b does this for every label
   from 1360): the longest, "Unlocked · needs update", is 200px, and inline it left "Ben ·" alone on a line. */
.tl-agent-app .tl-inbox-card .tl-inbox-card-title .tl-inbox-status.tl-lead-status { display: block; width: fit-content; margin: 0 0 4px; vertical-align: baseline; }

/* Name · destination. The dot is the card's own separator colour, decorative. */
.tl-agent-app .tl-inbox-card-name { overflow-wrap: anywhere; }
.tl-agent-app .tl-inbox-card-name-sep { color: var(--tl-mute); font-weight: 500; }
.tl-agent-app .tl-inbox-card.is-muted .tl-inbox-card-name { color: var(--tl-body); }

/* Amber edge: 4px inside the card, following its radius. On the wash tint too. */
.tl-agent-app .tl-inbox-card.is-needs-update { box-shadow: inset 4px 0 0 var(--tl-amber); }

/* The control. (0,4,0) over the no-JS rule (5b) too: this one is a link, so it needs no fallback. */
.tl-agent-app .tl-inbox .tl-inbox-card .tl-inbox-card-actions--status { grid-area: more; display: flex; align-items: center; justify-content: flex-end; min-width: 0; margin: 0; }
.tl-agent-app .tl-inbox-card .tl-lead-status-btn { padding: 0 16px; white-space: nowrap; }
.tl-agent-app .tl-inbox-card .tl-lead-status-add { white-space: nowrap; }

/* 1360+ columns: the ⋯ column widens to the button for every card in a list that has one, so a card
   with no control keeps the others' columns. 148 = "Update status" at 16 / 700 + its padding. */
@media (min-width: 1360px) {
	.tl-agent-app .tl-inbox-list:has(> .has-status-action) > .tl-inbox-card {
		grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr) minmax(0, 1.5fr) 172px 148px 20px;
		column-gap: 20px;
	}
	/* "Add a status (optional)" is 166px on one line. */
	.tl-agent-app .tl-inbox-list:has(.tl-lead-status-add) > .tl-inbox-card { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr) minmax(0, 1.5fr) 172px 168px 20px; column-gap: 16px; }
	/* "Unlocked · needs update" is 204.75px and the title column here is 183.75 at 1360, so the title's
	   overflow cut it. It wraps, only while it doesn't fit; the columns stay.
	   - A left float, not a block: Chrome and Safari disagree on whether a block's lines count towards
	     the -webkit-box clamp (Safari counted a flow-root's too), and neither counts a float's. So the
	     clamp is 2 (name and destination) on any number of label lines, in both. A clamp of 3 here
	     would give the title one line when the label wraps.
	   - The 100% right margin leaves no room beside it, so the name starts under it, 4px below, as with
	     the block. max-content + max-width sizes it, as a percentage margin would zero fit-content.
	   - Unopened: max-width takes in the dot's 19px of padding, so it wraps at the same width as an
	     opened card. The waiting dot's spacer moves under the label (clear: left), one title line high, as
	     the label's height is no longer known; with no first name the dot's own margin does its job. */
	.tl-agent-app .tl-inbox-card .tl-inbox-card-title .tl-inbox-status.tl-lead-status--unlocked.is-needs-update { float: left; box-sizing: border-box; width: max-content; max-width: 100%; margin: 0 100% 4px 0; white-space: normal; }
	.tl-agent-app .tl-inbox-card .tl-inbox-card-title:has(.tl-lead-status--unlocked.is-needs-update) { -webkit-line-clamp: 2; }
	.tl-agent-app .tl-inbox-card.is-unopened .tl-inbox-card-title .tl-inbox-status.tl-lead-status--unlocked.is-needs-update { max-width: calc(100% + 19px); }
	.tl-agent-app .tl-inbox-card.is-unopened .tl-inbox-card-title:has(.tl-lead-status--unlocked.is-needs-update) .tl-inbox-card-link::before { content: none; }
	.tl-agent-app .tl-inbox-card.is-unopened .tl-inbox-card-title:has(.tl-lead-status--unlocked.is-needs-update) .tl-inbox-card-name::before { content: ""; float: right; clear: left; width: 0; height: 1.3em; }
	.tl-agent-app .tl-inbox-card.is-unopened .tl-inbox-card-title:has(.tl-lead-status--unlocked.is-needs-update) .tl-inbox-card-link:not(:has(.tl-inbox-card-name)) .tl-inbox-card-dest::before { clear: both; margin-top: 1.3em; }
}
/* 768-1359 stacked: the control at the right, centred on the card's text; the chevron stays on the
   footer line. */
@media (min-width: 768px) and (max-width: 1359px) {
	.tl-agent-app .tl-inbox-card.has-status-action {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas: "title more" "ideas more" "facts more" "act more" "love more" "note more" "foot chev" "nojs nojs";
	}
	.tl-agent-app .tl-inbox .tl-inbox-card .tl-inbox-card-actions--status { margin-right: 8px; }
	.tl-agent-app .tl-inbox-card.has-status-action .tl-inbox-card-chevron { justify-self: end; width: 44px; }
}
/* Phones: the shared rule, a primary button is full width. On its own line under the footer. */
@media (max-width: 767px) {
	.tl-agent-app .tl-inbox-card.has-status-action {
		grid-template-areas: "title title" "ideas ideas" "facts facts" "act act" "love love" "note note" "foot chev" "more more" "nojs nojs";
	}
	.tl-agent-app .tl-inbox .tl-inbox-card .tl-inbox-card-actions--status { justify-content: flex-start; margin: 12px 10px 0 0; }
	.tl-agent-app .tl-inbox-card .tl-lead-status-btn { width: 100%; }
	.tl-agent-app .tl-status-banner { flex-direction: column; align-items: flex-start; gap: 0; padding: 12px; }
	.tl-agent-app .tl-status-banner-text { font-size: 15px; }
	.tl-agent-app .tl-status-banner .tl-status-banner-link { align-self: flex-start; margin-top: 0; } /* its 44px box starts under the text, so the focus ring clears it */
}

/* The saved line on the updated card (UX 5): the restored bar's colours at card scale, on its own fill
   so it reads the same on a muted or amber-edged card and on the hover tint (6.51:1). .tl-inbox-card-main
   is display: contents, so this is a grid item: full width, on the card's first free row, under the rest. */
.tl-agent-app .tl-inbox-card .tl-inbox-card-saved {
	grid-column: 1 / -1;
	display: flex;
	align-items: flex-start;
	gap: 6px;
	justify-self: start;
	min-width: 0;
	margin: 10px 0 0;
	padding: 6px 10px;
	border-radius: var(--tl-radius-control);
	background: var(--tl-success-soft);
	color: var(--tl-success);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
}
.tl-agent-app .tl-inbox-card .tl-inbox-card-saved .tl-icon { width: 18px; height: 18px; margin-top: 2px; }

/* The lead page. Two columns from 1024, the panel on the right; below that .tl-lead-side comes first
   in the DOM, straight after the head. Only .has-status widens the 860px page, and the main column
   keeps that 860 at most. A narrow main column (1024-1279) stacks the snapshot's two fact columns. */
.tl-agent-app :is(#tl-lead-status, #tl-lead-contact-title, #tl-no-reply, #tl-no-reply-note) { scroll-margin-top: calc(var(--tl-topbar-h) + 16px); }
@media (max-width: 899px) {
	.tl-agent-app :is(#tl-lead-status, #tl-lead-contact-title, #tl-no-reply, #tl-no-reply-note) { scroll-margin-top: 80px; }
}
.tl-agent-app #tl-lead-contact-title:focus:not(:focus-visible) { outline: 0; } /* the jump link moves focus here */
/* "Jump to contact details" in the unlock note: the app's link in a green notice (5h's saved notice):
   the arrow link (7b), teal-hover 5.82:1, navy on hover. On its own line under the text, so it never
   squeezes it. It stays at every width: the snapshot sits above the contact card in the left column, so
   that card starts low from 1024 too (972 at 1024, 821 at 1360, 794 at 1440, with the details below 900). */
.tl-agent-app .tl-lead-flash:is(:has(> .tl-lead-jump-contact), .has-actions) {
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr);
	gap: 2px 10px;
	--tl-arrow-link-color: var(--tl-teal-hover);
	--tl-arrow-link-hover: var(--tl-navy);
}
.tl-agent-app .tl-lead-flash .tl-lead-jump-contact { grid-column: 2; justify-self: start; margin-top: 0; }
/* Agent quick wins Q2: Email / Call / Text after an unlock (div.tl-lead-flash.has-actions). Everything after
   the icon sits in the text's column. The buttons are the shared .tl-btn untouched (48px, 16 / 700, 0 24px,
   8px radius, primary then outline), in a row 12px under the text with 12px between them, as the app's
   other button pairs. On a phone (under 600) each grows to fill its row, as About's Call and Email pair: two
   short ones share a row once they fit (about 420px), otherwise they stack full width as Remove lead's do.
   There they take About's 12px side padding, so a name wider than the column ("Email Maximiliana-Josephine"
   at 320) wraps to two lines inside its button and still fits the 48px. The
   preference line is the notice's green, 15px / 500 (6.5:1), 8px under the buttons. "Jump to contact details"
   keeps its 13px. */
.tl-agent-app .tl-lead-flash.has-actions > :not(.tl-icon) { grid-column: 2; min-width: 0; }
.tl-agent-app .tl-lead-flash-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0 0; }
.tl-agent-app .tl-lead-flash-actions > .tl-btn { flex: none; max-width: 100%; margin: 0; white-space: normal; overflow-wrap: anywhere; }
/* Their icons (mail; phone for Call and Text) as About's Call / Email pair: 20px, the button's 10px gap, centred.
   (0,3,0) after the flash's own 22px icon rule (with its 1px nudge) and the shared .tl-btn icon's 22px. */
.tl-agent-app .tl-lead-flash-btn .tl-icon { flex: none; width: 20px; height: 20px; margin: 0; }
.tl-agent-app .tl-lead-flash-pref { margin: 6px 0 0; color: var(--tl-success); font-size: 15px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
@media (max-width: 599px) {
	.tl-agent-app .tl-lead-flash-actions > .tl-btn { flex: 1 1 auto; padding: 0 12px; }
}
@media (min-width: 1024px) {
	.tl-agent-app .tl-lead.has-status { max-width: 1184px; }
	.tl-agent-app .tl-lead-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 0 20px; align-items: start; }
	.tl-agent-app .tl-lead-side { grid-column: 2; grid-row: 1; min-width: 0; }
	.tl-agent-app .tl-lead-main { grid-column: 1; grid-row: 1; min-width: 0; }
	.tl-agent-app .tl-lead-side > .tl-card { padding: 22px 20px 20px; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
	.tl-agent-app .tl-lead-main .tl-lead-facts { grid-template-columns: minmax(0, 1fr); }
	.tl-agent-app .tl-lead-main .tl-lead-facts-col { padding-right: 0; }
	.tl-agent-app .tl-lead-main .tl-lead-facts-col + .tl-lead-facts-col { margin-top: 22px; padding: 22px 0 0; border-left: 0; border-top: 1px solid var(--tl-line); }
	/* The phone rows' idea (7): every value under its label, the full width of the card (301px at 1024,
	   at 18px), so an address of about 30 characters stays on one line (UX 12: it broke before ".com").
	   Copy sits under it. The two 20px email offsets (7) don't apply. */
	.tl-agent-app .tl-lead-main > :is(.tl-card, .tl-lead-more) { padding: 22px 20px 20px; }
	.tl-agent-app .tl-lead-main .tl-contact-row { grid-template-columns: 34px minmax(0, 1fr); grid-template-areas: "icon label" "value value"; row-gap: 2px; padding: 8px 0; }
	.tl-agent-app .tl-lead-main :is(.tl-contact-row--email, .tl-contact-row--phone) .tl-contact-text { font-size: 18px; }
	.tl-agent-app .tl-lead-main .tl-contact-row--email .tl-contact-text { margin-top: 0; }
	.tl-agent-app .tl-lead-main .tl-contact-row--email .tl-contact-label span { line-height: inherit; }
	.tl-agent-app .tl-lead-main .tl-contact-row--email .tl-contact-label .tl-icon { margin-top: 0; }
	.tl-agent-app .tl-lead-main .tl-contact-row--phone .tl-contact-text { white-space: nowrap; }
}
@media (min-width: 1280px) {
	.tl-agent-app .tl-lead-layout { grid-template-columns: minmax(0, 1fr) 340px; }
	.tl-agent-app .tl-lead-side > .tl-card { padding: 28px 28px 24px; }
}

/* The panel, and the same form in the sheet. */
.tl-agent-app .tl-lead-status-now { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 8px 0 0; color: var(--tl-body); font-size: 15px; line-height: 1.5; }
.tl-agent-app .tl-lead-status-now .tl-lead-status { margin: 0; vertical-align: baseline; }
.tl-agent-app .tl-lead-status-reason-now { flex-basis: 100%; }
.tl-agent-app .tl-lead-status-form { margin: 16px 0 0; }
.tl-agent-app .tl-lead-status-options { min-width: 0; margin: 0; padding: 0; border: 0; }
/* 7c's row, tall enough for its note. */
.tl-agent-app .tl-lead-status-option { padding: 10px 16px; }
.tl-agent-app .tl-lead-status-option + .tl-lead-status-option { margin-top: 8px; }
.tl-agent-app .tl-lead-status-option-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tl-agent-app .tl-lead-status-option-note { color: var(--tl-body); font-size: 14px; font-weight: 400; line-height: 1.4; }
/* Why? The legend is a block on its own line; the reasons wrap under it. */
.tl-agent-app .tl-lead-status-why { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; margin: 14px 0 0; padding: 0; border: 0; }
.tl-agent-app .tl-lead-status-why-legend { float: left; width: 100%; margin: 0 0 2px; }
.tl-agent-app .tl-lead-status-actions { margin: 16px 0 0; }
.tl-agent-app .tl-lead-status-error { margin: 0 0 12px; }
.tl-agent-app .tl-lead-status-prompt { margin: 12px 0 0; padding: 8px 12px; border: 1px solid var(--tl-status-amber-line); border-radius: var(--tl-radius-control); background: var(--tl-amber-soft); color: var(--tl-status-amber-ink); font-size: 15px; font-weight: 600; line-height: 1.4; }
.tl-agent-app :is(.tl-lead-status-private, .tl-lead-status-no-reply-help) { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: var(--tl-mute); }
.tl-agent-app :is(.tl-lead-status-closed, .tl-lead-status-earlier, .tl-lead-status-no-reply-note) { margin: 12px 0 0; font-size: 15px; line-height: 1.5; color: var(--tl-body); }
/* The panel's error box, for the form's error and Still no reply's two problem notes. After the plain
   line above, which the notes also carry: they keep its 12px top margin. */
.tl-agent-app :is(.tl-lead-status-error, .tl-lead-status-no-reply-note--failed, .tl-lead-status-no-reply-note--bad-email) { padding: 10px 14px; border-radius: var(--tl-radius-control); background: var(--tl-danger-soft); color: var(--tl-danger); font-size: 15px; font-weight: 600; line-height: 1.45; }

/* Still no reply (§13, lead page only). Secondary to Save status, so the outline button under it; the
   confirm step is the tracker's Close this plan panel (traveller.css B7b) with a teal edge, not red,
   because nothing is lost. It's stacked at every width (the tracker stacks on phones): the panel's
   other buttons are full width, and a side column can't fit both in a row. The queued and emailed
   notes are the panel's plain line, above. */
.tl-agent-app .tl-lead-status-no-reply { margin: 12px 0 0; }
.tl-agent-app .tl-lead-status-no-reply-link { text-wrap: balance; } /* two lines in the side column: no "know" alone on the second */
.tl-agent-app .tl-lead-status-no-reply-help { margin-top: 8px; overflow-wrap: anywhere; } /* the panel's quiet line (above), held closer to its button */
.tl-agent-app .tl-lead-status-no-reply-confirm { padding: 14px 16px; border: 1px solid var(--tl-line); border-left: 4px solid var(--tl-teal); border-radius: 10px; background: var(--tl-white); }
.tl-agent-app .tl-lead-status-no-reply-question { margin: 0; color: var(--tl-navy); font-size: 16px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.tl-agent-app .tl-lead-status-no-reply-text { margin: 4px 0 0; color: var(--tl-body); font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.tl-agent-app .tl-lead-status-no-reply-form { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin: 12px 0 0; }
.tl-agent-app .tl-lead-status-no-reply-no { align-self: center; padding: 0 12px; } /* as the panel sheet's Cancel, so the focus ring clears the word */

/* History: a dot per change, joined by a line (decorative; the order is the list's). */
.tl-agent-app .tl-status-history { margin: 14px 0 0; padding: 0; list-style: none; }
.tl-agent-app .tl-status-history-item { position: relative; margin: 0; padding: 0 0 14px 22px; color: var(--tl-body); font-size: 14px; line-height: 1.45; }
.tl-agent-app .tl-status-history-item:last-child { padding-bottom: 0; }
.tl-agent-app .tl-status-history-item::before { content: ""; position: absolute; top: 6px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--tl-teal); }
.tl-agent-app .tl-status-history-item:not(:last-child)::after { content: ""; position: absolute; top: 18px; bottom: -4px; left: 4px; width: 2px; background: var(--tl-line); }
.tl-agent-app .tl-status-history-label { color: var(--tl-navy); font-size: 15px; font-weight: 600; }
.tl-agent-app .tl-status-history-time { display: block; color: var(--tl-mute); }

/* The quick update. Under 768 the pass sheet as it is (7c). From 768 the ⋯ popover's skin, under the
   button: agent-app.js gives the button's bottom and right edges, on the dialog. The dialog is a
   clear column the height of the screen, clicks pass through it to the backdrop, and the visible box
   is .tl-status-sheet-body. ::before is a spacer that pushes the box down to the button and shrinks
   when the box doesn't fit, so a button low on the screen opens the box higher up, by exactly what
   it needs, and picking Didn't go ahead lifts it for the Why? reasons. Taller than the screen, it
   scrolls inside. Nothing dims the page (a popover, as ⋯); the clear backdrop still closes it. */
.tl-agent-app .tl-status-sheet-title { overflow-wrap: anywhere; }
.tl-agent-app .tl-status-sheet-body .tl-lead-status-now { margin-top: 6px; }
.tl-agent-app .tl-lead-status-form--sheet .tl-lead-status-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 20px; }
.tl-agent-app .tl-lead-status-form--sheet .tl-lead-status-save { flex: 0 0 100%; }
@media (min-width: 768px) {
	.tl-agent-app .tl-status-sheet-backdrop { background: transparent; }
	.tl-agent-app .tl-status-dialog {
		position: fixed;
		top: 0;
		right: max(16px, var(--tl-status-right, 16px));
		bottom: 0;
		display: flex;
		flex-direction: column;
		width: 400px;
		max-width: calc(100vw - 32px);
		max-height: none;
		overflow: visible;
		padding: 16px 0;
		border-radius: 0;
		background: transparent;
		pointer-events: none;
	}
	.tl-agent-app .tl-status-dialog::before { content: ""; flex: 0 1 calc(var(--tl-status-top, 16px) - 8px); } /* the button's bottom + 8px, less this padding's 16px */
	.tl-agent-app .tl-status-sheet-body {
		flex: none;
		box-sizing: border-box;
		max-height: calc(100dvh - 32px);
		overflow-y: auto;
		overscroll-behavior: contain;
		padding: 20px;
		border: 1px solid var(--tl-line);
		border-radius: 12px;
		background: var(--tl-white);
		box-shadow: var(--tl-shadow-pop);
		pointer-events: auto;
	}
}
/* end 7d */

/* ---- 7e. Tracker status (PLAN-lead-status.md §4, §11 C6) ----------------------------------------
   The agent card's pill keeps its box (traveller.css B5: 13px, 4 / 12 padding, pill radius, nowrap);
   only the colours change, as the agent's label except Reached out and Unable (both amber here). in-touch has no
   rule here, so it stays exactly as it was, and made-contact and planning are that same teal-soft. (0,3,0) over
   traveller.css's .tl-tracker .tl-pill-contacted, whatever the load order. Ratios: docs/CSS.md. */
.tl-tracker .tl-pill-contacted.tl-tracker-status--quote-sent { background: var(--tl-status-lilac-soft); color: var(--tl-status-lilac); }
.tl-tracker .tl-pill-contacted.tl-tracker-status--booked { background: var(--tl-success-soft); color: var(--tl-success); }
.tl-tracker .tl-pill-contacted:is(.tl-tracker-status--reached-out, .tl-tracker-status--unable) { background: var(--tl-amber-soft); color: var(--tl-status-amber-ink); } /* amber, not the agent label's red or teal (Daniel): both ask the traveller to check their details */
.tl-tracker .tl-pill-contacted.tl-tracker-status--booked::before {
	content: "";
	flex: none;
	width: 13px;
	height: 13px;
	margin-right: 4px;
	background-color: currentColor;
	-webkit-mask: var(--tl-i-status-tick) center / contain no-repeat;
	mask: var(--tl-i-status-tick) center / contain no-repeat;
}
/* end 7e */

/* ---- 7f. Booked celebration (includes/booked-celebration.php, assets/booked-celebration.js) -------
   Reference: Images/booked-confetti-demo.html (.toast, Daniel 8 Nov). Agent inbox and lead pages only
   (body.tl-agent-app-body). The message is position: fixed, never in the flow, and never takes a
   click. It sits on <body>, or inside .tl-status-dialog in the quick update; neither has a transform,
   filter or contain, so fixed is the viewport's there too, and the dialog's overflow can't clip it.
   Stack (checked, this file): topbar 20, phone tabs 20, account menu 30, skip link 100, pass / status
   sheets 100. Confetti 101 (over the open sheet, so it isn't drawn behind the dialog); the message 102
   (over the confetti on the page; inside the dialog it lives in the sheet's 100 layer, so confetti
   can cross it there, briefly; the text stays readable).
   Place (JS sets each var only when known, viewport px): centred on --tl-booked-x, its bottom 14px above
   --tl-booked-panel-top (else --tl-booked-y, the button's top), as the demo. The translate lifts it by
   its own height but never past 12px from the top. None set (the no-JS copy): top centre, 12px under
   the top bar, centred on the main column from 900. x is clamped by the widest the box can be, so it
   never runs off either side. States: base visible (no-JS), .is-entering / .is-leaving fade and scale
   (.9 → 1, the demo's .25s); the no-JS copy also fades itself out after 2.5s, an animation the state
   classes switch off. Text on navy: title white 14.4:1, line --tl-on-navy-text 11.41:1.
   Demo differences (site rules win): the line is 13px, not 12.5 (the 13px floor); the shadow is
   --tl-shadow-pop, the popover's, not a new rgba. */
body.tl-agent-app-body .tl-booked-confetti { z-index: 101; }
body.tl-agent-app-body .tl-booked-toast {
	--tl-booked-max-w: min(calc(100% - 32px), 360px);
	--tl-booked-gap: 14px;
	position: fixed;
	z-index: 102;
	top: calc(var(--tl-booked-panel-top, var(--tl-booked-y, calc(var(--tl-topbar-h) + 12px + var(--tl-booked-gap)))) - var(--tl-booked-gap));
	left: clamp(calc(16px + var(--tl-booked-max-w) / 2), var(--tl-booked-x, 50%), calc(100% - 16px - var(--tl-booked-max-w) / 2));
	box-sizing: border-box;
	width: max-content;
	max-width: var(--tl-booked-max-w);
	margin: 0;
	padding: 10px 16px;
	border-radius: 12px;
	background: var(--tl-navy);
	box-shadow: var(--tl-shadow-pop);
	color: var(--tl-white);
	font-family: var(--tl-font);
	text-align: center;
	text-wrap: balance;
	overflow-wrap: anywhere;
	pointer-events: none;
	translate: -50% 0;
	/* Lift by its own height, stopping 12px from the top. With no y var this is invalid, so none: the
	   no-JS copy hangs from its top. */
	transform: translateY(max(-100%, calc(12px + var(--tl-booked-gap) - var(--tl-booked-panel-top, var(--tl-booked-y)))));
	transition: opacity 0.25s ease, scale 0.25s ease;
	animation: tl-booked-toast-in 0.25s ease-out, tl-booked-toast-out 0.3s ease-in 2.5s forwards;
}
@media (min-width: 900px) {
	body.tl-agent-app-body .tl-booked-toast { left: clamp(calc(16px + var(--tl-booked-max-w) / 2), var(--tl-booked-x, calc((100% + var(--tl-rail-w)) / 2)), calc(100% - 16px - var(--tl-booked-max-w) / 2)); }
}
body.tl-agent-app-body .tl-booked-toast:is(.is-entering, .is-leaving) { opacity: 0; scale: 0.9; animation: none; }
body.tl-agent-app-body .tl-booked-toast__title { display: block; font-size: 15px; font-weight: 700; line-height: 1.35; }
body.tl-agent-app-body .tl-booked-toast__sub { display: block; margin-top: 2px; color: var(--tl-on-navy-text); font-size: 13px; font-weight: 500; line-height: 1.4; }
/* Under the lead page's "Status saved" banner (ux-review P2-1, coordinator 8 Nov: keep the banner,
   the message just under it). core-dev adds .tl-booked-toast--under-flash and --tl-booked-flash-bottom
   (viewport px, the banner's bottom edge) while the banner shows; this beats the above-the-panel place.
   8px under the banner, never over the top bar (top bar + 12px at least), centred on the main column
   as the no-JS copy (the banner spans it; --tl-booked-x is the panel's Save button, off to the side
   from 1024). The transform keeps its bottom 12px off the screen's bottom edge (the phone tab bar's
   top under 900). (0,3,1) over the base (0,2,1). */
body.tl-agent-app-body .tl-booked-toast.tl-booked-toast--under-flash {
	--tl-booked-under-top: max(calc(var(--tl-topbar-h) + 12px), calc(var(--tl-booked-flash-bottom, 0px) + 8px));
	--tl-booked-floor: 12px;
	top: var(--tl-booked-under-top);
	left: 50%;
	transform: translateY(min(0px, calc(100vh - var(--tl-booked-floor) - var(--tl-booked-under-top) - 100%)));
}
@media (min-width: 900px) {
	body.tl-agent-app-body .tl-booked-toast.tl-booked-toast--under-flash { left: calc((100% + var(--tl-rail-w)) / 2); }
}
@media (max-width: 899px) {
	body.tl-agent-app-body .tl-booked-toast.tl-booked-toast--under-flash { --tl-booked-floor: calc(var(--tl-tabbar-h) + env(safe-area-inset-bottom, 0px) + 12px); }
}
/* Save in the quick update while the celebration holds (ux-review P3-2; agent-app.js sets [disabled]
   from the click until the reload): the site's disabled button, as the profile's unsaved-changes
   dialog (5h): neutral fill, line border, body text 6.4:1, no fade, no hover change. (0,4,0) / (0,5,0)
   over section 3's .tl-btn states (0,2,0). */
.tl-agent-app .tl-status-sheet .tl-lead-status-save:disabled,
.tl-agent-app .tl-status-sheet .tl-lead-status-save:disabled:is(:hover, :focus) {
	border-color: var(--tl-line);
	background: var(--tl-neutral-soft);
	color: var(--tl-body);
	opacity: 1;
	cursor: not-allowed;
}
/* The phone sheet: the visible box is the dialog itself, and --tl-booked-panel-top is the top of
   .tl-status-sheet-body inside it (asked of core-dev), so add back the dialog's 24px top padding. */
@media (max-width: 767px) {
	body.tl-agent-app-body .tl-status-dialog > .tl-booked-toast { --tl-booked-gap: 38px; }
}
@keyframes tl-booked-toast-in { from { opacity: 0; scale: 0.9; } }
@keyframes tl-booked-toast-fade-in { from { opacity: 0; } }
@keyframes tl-booked-toast-out { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
	body.tl-agent-app-body .tl-booked-toast { transition: opacity 0.25s ease; animation-name: tl-booked-toast-fade-in, tl-booked-toast-out; }
	body.tl-agent-app-body .tl-booked-toast:is(.is-entering, .is-leaving) { scale: none; }
}
/* end 7f */

/* ---- 7g. Inbox search, filters and paging (BRIEF-inbox-search-filters.md + -decisions.md, step 3) ----
   Mocks: Images/inbox-search-paging-mockup.png, Images/inbox-available-filters-mockup.png (dashed pink =
   new). Markup: the headers of templates/agent-inbox.php, agent-inbox-filters.php, agent-inbox-list.php.
   Every control copies the existing one on the same screen (STYLE-CHECKLIST "How to use" 6):
   - phone icon buttons (search, Sort and filter): the 5b sort icon button (44px, line border, 10px);
   - search field: the 3b field skin at the icon buttons' 44px; Filters button: the icon button's skin
     with a label; their count badge: teal, white number;
   - filter options, applied chips, pager pages: the Contacted status chip's box (7d, 36px to look at,
     44px to hit), picked = the picked chip (teal-soft, teal edge); a ticked option adds Booked's tick;
   - the sheet: the status / pass sheet (7c, 7d): a bottom sheet under 768, a popover from 768 (clear
     backdrop, the ⋯ popover's border, radius and shadow), placed under its button by agent-app.js
     (--tl-filter-top / --tl-filter-right, as --tl-status-*); group headings: the sort menu's heading (5b);
   - "Clear …" links: the 7b inline link; Cancel: the sheets' Cancel (7c);
   - loading: the card's .is-busy fade (5b).
   Layout (.tl-inbox-top grid, only when the search form is printed, so first-run and ?filter=all keep 5b):
   - 1280+: the search and Filters at the right end of the tab row (no extra height), the tab line run on
     under them; the sort select stays top right.
   - 900-1279: search (full width) + Filters on a row under the tabs (the tab row has no room: 676px at 1024).
   - 768-899: search + Filters + the sort select on one row under the tabs.
   - under 768 with JS: the search and Sort and filter / sort icons at the right of the heading; the field
     opens under the heading (.is-search-open) with Cancel. Without JS the field always shows there, with
     its Search button, and the no-JS <details> panel under it.
   - under 360: the search icon stays on the heading line; Sort and filter joins the view dropdown's row,
     as the sort icon does there (5b).
   Specificity: (0,3,0) and up through .tl-agent-app .tl-inbox, over Astra's input / button rules
   (top (0,2,1)); the top-grid rules are (0,4,0)+ to follow 5b's :has() rules. No !important. */

/* Shared: the phone icon buttons (5b's sort icon button). */
.tl-agent-app .tl-inbox :is(.tl-inbox-search-toggle, .tl-inbox-sortfilter-btn, .tl-inbox-export-toggle) {
	position: relative;
	display: none;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--tl-line);
	border-radius: 10px;
	background: var(--tl-white);
	box-shadow: none;
	color: var(--tl-navy);
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.tl-agent-app .tl-inbox :is(.tl-inbox-search-toggle, .tl-inbox-sortfilter-btn, .tl-inbox-export-toggle) .tl-icon { width: 22px; height: 22px; stroke-width: 2; }
.tl-agent-app .tl-inbox :is(.tl-inbox-search-toggle, .tl-inbox-sortfilter-btn, .tl-inbox-export-toggle):hover { border-color: var(--tl-teal-bright); background: var(--tl-teal-soft); color: var(--tl-teal-hover); }
/* Open (search field showing / sheet open), or something applied (a search, filters): the open sort icon's look. */
.tl-agent-app .tl-inbox :is(.tl-inbox-search-toggle[aria-expanded="true"], .tl-inbox-sortfilter-btn[aria-expanded="true"], .tl-inbox-export-toggle[aria-expanded="true"], .tl-inbox-sortfilter-btn:has(> .tl-inbox-sortfilter-badge:not([hidden]))) { border-color: var(--tl-teal); background: var(--tl-teal-soft); color: var(--tl-teal-hover); }
.tl-agent-app .tl-inbox :is(.tl-inbox-search-toggle, .tl-inbox-sortfilter-btn, .tl-inbox-export-toggle):focus:not(:focus-visible) { outline: 0; }
/* The search-on dot: the unopened dot's teal, 8px, ringed white so it reads on the icon's corner. */
.tl-agent-app .tl-inbox .tl-inbox-search-dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--tl-teal); box-shadow: 0 0 0 2px var(--tl-white); }
/* Count badges: Filters (inline) and Sort and filter (on the icon's corner). White on teal 4.7:1. */
.tl-agent-app .tl-inbox :is(.tl-inbox-filters-count, .tl-inbox-sortfilter-badge) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: var(--tl-radius-pill);
	background: var(--tl-teal);
	color: var(--tl-white);
	font-size: 13px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	line-height: 1;
}
.tl-agent-app .tl-inbox .tl-inbox-sortfilter-badge { position: absolute; top: -7px; right: -7px; box-shadow: 0 0 0 2px var(--tl-white); }

/* Search field. The form is a one-row grid: the field's cell holds the icon, input, "/" and ✕ on top of
   each other (the input is the visible box); then the no-JS Search button, then Cancel (phones, JS). */
.tl-agent-app .tl-inbox .tl-inbox-search {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	align-items: center;
	min-width: 0;
	margin: 0;
}
.tl-agent-app .tl-inbox .tl-inbox-search-keep { display: contents; }
.tl-agent-app .tl-inbox .tl-inbox-search :is(.tl-inbox-search-icon, .tl-inbox-search-input, .tl-inbox-search-key, .tl-inbox-search-clear-wrap) { grid-row: 1; grid-column: 1; }
.tl-agent-app .tl-inbox .tl-inbox-search-icon { z-index: 1; display: flex; justify-self: start; margin-left: 13px; color: var(--tl-mute); pointer-events: none; }
.tl-agent-app .tl-inbox .tl-inbox-search-icon .tl-icon { width: 20px; height: 20px; }
.tl-agent-app .tl-inbox .tl-inbox-search .tl-inbox-search-input {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	height: 44px;
	margin: 0;
	padding: 0 44px 0 42px;
	border: 1px solid var(--tl-line);
	border-radius: 10px;
	background: var(--tl-white);
	box-shadow: none;
	color: var(--tl-navy);
	font-family: inherit;
	font-size: 16px; /* 16: no iOS zoom on focus */
	line-height: normal;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.tl-agent-app .tl-inbox .tl-inbox-search .tl-inbox-search-input::placeholder { color: var(--tl-mute); opacity: 1; } /* 4.55:1 */
.tl-agent-app .tl-inbox .tl-inbox-search .tl-inbox-search-input:hover { border-color: var(--tl-teal-bright); }
.tl-agent-app .tl-inbox .tl-inbox-search .tl-inbox-search-input:focus { border-style: solid; border-color: var(--tl-teal); box-shadow: var(--tl-focus-ring); outline: 0; }
/* Our ✕ only (the server's link, a real view without the search), never the browser's own. */
.tl-agent-app .tl-inbox .tl-inbox-search-input::-webkit-search-cancel-button,
.tl-agent-app .tl-inbox .tl-inbox-search-input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
/* "/": a quiet key cap at the field's right end, while the field is empty and on keyboards (900+). */
.tl-agent-app .tl-inbox .tl-inbox-search-key {
	display: none;
	justify-self: end;
	box-sizing: border-box;
	min-width: 22px;
	height: 22px;
	margin: 0 12px 0 0;
	padding: 0 6px;
	border: 1px solid var(--tl-line);
	border-radius: 6px;
	background: var(--tl-wash);
	box-shadow: none;
	color: var(--tl-body);
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 20px;
	text-align: center;
	pointer-events: none;
}
.tl-agent-app .tl-inbox .tl-inbox-search-input:not(:placeholder-shown) ~ .tl-inbox-search-key,
.tl-agent-app .tl-inbox .tl-inbox-search:has(.tl-inbox-search-clear) .tl-inbox-search-key { display: none; }
.tl-agent-app .tl-inbox .tl-inbox-search-clear-wrap { z-index: 1; display: flex; justify-self: end; }
.tl-agent-app .tl-inbox .tl-inbox-search .tl-inbox-search-clear {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	color: var(--tl-mute);
	text-decoration: none;
	transition: color 0.15s ease;
}
/* The mock's small round ✕: a 24px neutral disc inside the 44px target. */
.tl-agent-app .tl-inbox .tl-inbox-search-clear .tl-icon { box-sizing: border-box; width: 24px; height: 24px; padding: 5px; border-radius: 50%; background: var(--tl-neutral-soft); color: var(--tl-body); stroke-width: 2.4; transition: background-color 0.15s ease, color 0.15s ease; }
.tl-agent-app .tl-inbox .tl-inbox-search-clear:hover .tl-icon { background: var(--tl-teal-soft); color: var(--tl-teal-hover); }
.tl-agent-app .tl-inbox .tl-inbox-search-clear:focus-visible { outline-offset: -4px; }
.tl-agent-app .tl-inbox .tl-inbox-search-clear:focus:not(:focus-visible) { outline: 0; }
/* No JS: the Search button beside the field, at its 44px. */
.tl-agent-app .tl-inbox .tl-inbox-search .tl-inbox-search-go { grid-column: 2; min-height: 44px; margin-left: 8px; padding: 0 16px; }
/* Cancel (phones): the sheets' Cancel (7c), beside the field. Shown only on phones (below). */
.tl-agent-app .tl-inbox .tl-inbox-search .tl-inbox-search-cancel {
	grid-column: 3;
	display: none;
	min-height: 44px;
	margin: 0 -8px 0 4px;
	padding: 0 8px;
	border: 0;
	border-radius: var(--tl-radius-btn);
	background: transparent;
	box-shadow: none;
	color: var(--tl-teal-hover);
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	text-transform: none;
	white-space: nowrap;
	cursor: pointer;
	transition: color 0.15s ease;
}
.tl-agent-app .tl-inbox .tl-inbox-search .tl-inbox-search-cancel:is(:hover, :focus) { background: transparent; color: var(--tl-navy); text-decoration-thickness: 2px; }
.tl-agent-app .tl-inbox .tl-inbox-search .tl-inbox-search-cancel:focus:not(:focus-visible) { outline: 0; }

/* Filters button (768+, JS) and the no-JS <details> summary: the icon button's skin with a label. */
.tl-agent-app .tl-inbox .tl-inbox-filters-wrap { min-width: 0; }
.tl-agent-app .tl-inbox :is(.tl-inbox-filters-btn, .tl-inbox-filters-toggle, .tl-inbox-export-btn, .tl-inbox-export-summary) {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	box-sizing: border-box;
	height: 44px;
	margin: 0;
	padding: 0 14px 0 12px;
	border: 1px solid var(--tl-line);
	border-radius: 10px;
	background: var(--tl-white);
	box-shadow: none;
	color: var(--tl-navy);
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-transform: none;
	white-space: nowrap;
	list-style: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.tl-agent-app .tl-inbox :is(.tl-inbox-filters-toggle, .tl-inbox-export-summary)::-webkit-details-marker { display: none; }
.tl-agent-app .tl-inbox :is(.tl-inbox-filters-btn, .tl-inbox-filters-toggle, .tl-inbox-export-btn, .tl-inbox-export-summary) .tl-icon { width: 20px; height: 20px; stroke-width: 2; }
.tl-agent-app .tl-inbox :is(.tl-inbox-filters-btn, .tl-inbox-filters-toggle, .tl-inbox-export-btn, .tl-inbox-export-summary):hover { border-color: var(--tl-teal-bright); background: var(--tl-teal-soft); color: var(--tl-teal-hover); }
.tl-agent-app .tl-inbox :is(.tl-inbox-filters-btn[aria-expanded="true"], .tl-inbox-filters-btn.has-filters, .tl-inbox-filters.has-filters > .tl-inbox-filters-toggle, .tl-inbox-filters[open] > .tl-inbox-filters-toggle, .tl-inbox-export-btn[aria-expanded="true"], .tl-inbox-export[open] > .tl-inbox-export-summary) { border-color: var(--tl-teal); background: var(--tl-teal-soft); color: var(--tl-teal-hover); }
.tl-agent-app .tl-inbox :is(.tl-inbox-filters-btn, .tl-inbox-filters-toggle, .tl-inbox-export-btn, .tl-inbox-export-summary):focus:not(:focus-visible) { outline: 0; }
/* No JS: the panel opens under its summary (a popover from 768, in the flow on phones). */
.tl-agent-app .tl-inbox .tl-inbox-filters { position: relative; }
.tl-agent-app .tl-inbox .tl-inbox-filters > .tl-inbox-filters-form { margin-top: 8px; padding: 20px; border: 1px solid var(--tl-line); border-radius: 12px; background: var(--tl-white); box-shadow: var(--tl-shadow-pop); }

/* The filters form (in the sheet with JS, in the <details> without). */
.tl-agent-app .tl-inbox .tl-inbox-filters-form { margin: 0; }
.tl-agent-app .tl-inbox .tl-inbox-filter-group { min-width: 0; margin: 0 0 16px; padding: 0; border: 0; }
/* The sort menu's heading (5b): 13 / 700 uppercase mute, 4.55:1. Floated so the options wrap under it
   (a legend can't be a flex item). */
.tl-agent-app .tl-inbox :is(.tl-inbox-filter-legend, .tl-export-legend) { float: left; width: 100%; margin: 0 0 8px; padding: 0; color: var(--tl-mute); font-size: 13px; font-weight: 700; line-height: 1.2; letter-spacing: 0.08em; text-transform: uppercase; }
.tl-agent-app .tl-inbox :is(.tl-inbox-filter-options, .tl-inbox-filter-sort) { clear: both; display: flex; flex-wrap: wrap; gap: 8px; }
/* Options: the status chip (7d). 8px between rows + 36px = 44px, so the hit areas just touch. */
.tl-agent-app .tl-inbox :is(.tl-inbox-filter-option, .tl-inbox-filter-sort-option) {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	box-sizing: border-box;
	min-height: var(--tl-pass-pill-h);
	margin: 0;
	padding: 0 13px;
	border: 1px solid var(--tl-line);
	border-radius: var(--tl-radius-pill);
	background: var(--tl-white);
	color: var(--tl-navy);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.tl-agent-app .tl-inbox :is(.tl-inbox-filter-option, .tl-inbox-filter-sort-option)::after { content: ""; position: absolute; inset: calc((var(--tl-pass-pill-h) - 44px) / 2 - 1px) -1px; }
/* The box stays in the DOM and focusable, just not visible (as the pass reasons, 7c). */
.tl-agent-app .tl-inbox :is(.tl-inbox-filter-input, .tl-inbox-filter-sort-input) { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.tl-agent-app .tl-inbox .tl-inbox-filter-count { font-weight: 500; font-variant-numeric: tabular-nums; }
.tl-agent-app .tl-inbox :is(.tl-inbox-filter-option, .tl-inbox-filter-sort-option):hover { border-color: var(--tl-teal); background: var(--tl-teal-soft); color: var(--tl-teal-hover); }
.tl-agent-app .tl-inbox :is(.tl-inbox-filter-option, .tl-inbox-filter-sort-option):has(:focus-visible) { outline: 2px solid var(--tl-teal); outline-offset: 2px; }
/* Ticked: the picked chip, plus Booked's tick (7d), so it doesn't rest on colour alone. teal-hover on
   teal-soft 5.6:1. A ticked option at 0 (.is-empty) keeps the look: it shows only so it can be unticked. */
.tl-agent-app .tl-inbox :is(.tl-inbox-filter-option, .tl-inbox-filter-sort-option):is(.is-checked, :has(:checked)) {
	border-color: var(--tl-teal);
	background: var(--tl-teal-soft);
	box-shadow: inset 0 0 0 1px var(--tl-teal);
	color: var(--tl-teal-hover);
}
.tl-agent-app .tl-inbox :is(.tl-inbox-filter-option, .tl-inbox-filter-sort-option):is(.is-checked, :has(:checked))::before {
	content: "";
	flex: none;
	width: 13px;
	height: 13px;
	margin-right: -1px;
	background-color: currentColor;
	-webkit-mask: var(--tl-i-status-tick) center / contain no-repeat;
	mask: var(--tl-i-status-tick) center / contain no-repeat;
}
.tl-agent-app .tl-inbox .tl-inbox-filters-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 4px 0 0; padding: 16px 0 0; border-top: 1px solid var(--tl-line); }
/* "Clear all" / the head's Clear all / "Clear filters" / "Clear search" / "also 2 in Available": the
   7b inline link at 15px. Hit area 44px from 11px padding cancelled by margins (7b's arrow link), so
   the line they sit in keeps its height. */
.tl-agent-app .tl-inbox :is(.tl-inbox-filters-clear, .tl-filter-sheet-clear, .tl-inbox-applied-clear, .tl-inbox-result-clear, .tl-inbox-result-also-link, .tl-inbox-none-clear:not(.tl-btn)) {
	display: inline-block;
	margin: -11px -4px;
	padding: 11px 4px;
	border: 0;
	border-radius: var(--tl-radius-btn);
	background: transparent;
	box-shadow: none;
	color: var(--tl-teal-hover);
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 22px;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	text-transform: none;
	white-space: nowrap;
	cursor: pointer;
	transition: color 0.15s ease;
}
.tl-agent-app .tl-inbox :is(.tl-inbox-filters-clear, .tl-filter-sheet-clear, .tl-inbox-applied-clear, .tl-inbox-result-clear, .tl-inbox-result-also-link, .tl-inbox-none-clear:not(.tl-btn)):is(:hover, :focus) { background: transparent; color: var(--tl-navy); text-decoration-thickness: 2px; }
.tl-agent-app .tl-inbox :is(.tl-inbox-filters-clear, .tl-filter-sheet-clear, .tl-inbox-applied-clear, .tl-inbox-result-clear, .tl-inbox-result-also-link, .tl-inbox-none-clear:not(.tl-btn)):focus:not(:focus-visible) { outline: 0; }
.tl-agent-app .tl-inbox :is(.tl-inbox-filters-clear, .tl-filter-sheet-clear, .tl-inbox-applied-clear, .tl-inbox-result-clear, .tl-inbox-result-also-link, .tl-inbox-none-clear:not(.tl-btn)):focus-visible { outline-offset: 0; }
/* The sort pair is the phone sheet's (the select does it from 768). */
@media (min-width: 768px) {
	.tl-agent-app .tl-inbox .tl-inbox-filter-group--sort { display: none; }
}

/* The filter sheet. Mechanics, backdrop, fade and the phone sheet's box are 7c's shared rules. */
.tl-agent-app .tl-inbox .tl-filter-sheet-head { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; }
.tl-agent-app .tl-inbox .tl-filter-sheet-title { flex: 1 1 auto; min-width: 0; margin: 0; }
/* ✕: the card ⋯ button's skin (5b): 44px, no border, teal-soft on hover. */
.tl-agent-app .tl-inbox .tl-filter-sheet-head .tl-filter-sheet-close {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 44px;
	height: 44px;
	margin: -10px -10px -10px 0;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: transparent;
	box-shadow: none;
	color: var(--tl-navy);
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.tl-agent-app .tl-inbox .tl-filter-sheet-head .tl-filter-sheet-close .tl-icon { width: 22px; height: 22px; stroke-width: 2; }
.tl-agent-app .tl-inbox .tl-filter-sheet-head .tl-filter-sheet-close:hover { background: var(--tl-teal-soft); color: var(--tl-teal-hover); }
.tl-agent-app .tl-inbox .tl-filter-sheet-head .tl-filter-sheet-close:focus-visible { outline-offset: -2px; }
.tl-agent-app .tl-inbox .tl-filter-sheet-head .tl-filter-sheet-close:focus:not(:focus-visible) { outline: 0; }
.tl-agent-app .tl-inbox .tl-filter-sheet-head .tl-filter-sheet-clear { flex: none; margin-right: 4px; }
/* Show {n} leads stays in reach while a long sheet scrolls: the actions stick to the box's bottom. */
.tl-agent-app .tl-inbox .tl-filter-sheet .tl-inbox-filters-actions { position: sticky; bottom: -1px; z-index: 1; background: var(--tl-white); }
/* Phones: "Sort and filter", Clear all in the head, Show full width (mock 4). */
@media (max-width: 767px) {
	.tl-agent-app .tl-inbox .tl-filter-sheet-title-desktop { display: none; }
	.tl-agent-app .tl-inbox .tl-filter-sheet .tl-inbox-filters-clear { display: none; }
	.tl-agent-app .tl-inbox .tl-filter-sheet .tl-inbox-filters-actions { margin: 0 -16px calc(-16px - env(safe-area-inset-bottom, 0px)); padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px)); bottom: calc(-16px - env(safe-area-inset-bottom, 0px)); }
	.tl-agent-app .tl-inbox .tl-filter-sheet .tl-inbox-filters-show { width: 100%; }
}
/* 768+: the popover under Filters (mock 1), right edge on the button's, 8px below it. The ⋯ popover's
   border, 12px radius and shadow; no dimming (the clear backdrop still closes it, as the status
   popover). Titled "Filters"; Clear all sits with Show at the bottom. */
@media (min-width: 768px) {
	.tl-agent-app .tl-inbox .tl-filter-sheet { align-items: flex-start; justify-content: flex-end; }
	.tl-agent-app .tl-inbox .tl-filter-sheet-backdrop { background: transparent; }
	.tl-agent-app .tl-inbox .tl-filter-dialog {
		position: fixed;
		top: calc(var(--tl-filter-top, 120px) + 8px);
		/* 56: less the scrollbar gutter (html's scrollbar-gutter: stable). agent-app.js measures from the
		   full width (clientWidth reads 1440 at 1440 while the sheet is open), but a fixed box's right: 0
		   is the gutter's edge, so with a classic 15px scrollbar (Windows) the box sat 15px left of its
		   button. 100vw - 100% is that gutter (0 with overlay scrollbars: Mac, phones). */
		right: max(16px, calc(var(--tl-filter-right, 16px) - (100vw - 100%)));
		width: 480px;
		max-width: calc(100vw - 32px);
		max-height: max(280px, calc(100dvh - var(--tl-filter-top, 120px) - 24px));
		padding: 20px 20px 16px;
		border: 1px solid var(--tl-line);
		border-radius: 12px;
		box-shadow: var(--tl-shadow-pop);
	}
	.tl-agent-app .tl-inbox .tl-filter-sheet-title-phone,
	.tl-agent-app .tl-inbox .tl-filter-sheet-head .tl-filter-sheet-clear { display: none; }
	.tl-agent-app .tl-inbox .tl-filter-sheet-head { margin-bottom: 12px; }
	.tl-agent-app .tl-inbox .tl-filter-sheet .tl-filter-sheet-title { font-size: 18px; }
	.tl-agent-app .tl-inbox .tl-filter-sheet .tl-inbox-filters-actions { bottom: -16px; margin-bottom: -16px; padding-bottom: 16px; }
	/* No JS: the <details> panel as the same popover, right-aligned under its summary. */
	.tl-agent-app .tl-inbox .tl-inbox-filters > .tl-inbox-filters-form { position: absolute; top: 100%; right: 0; z-index: 6; box-sizing: border-box; width: 480px; max-width: calc(100vw - 32px); }
}

/* ---- 7g-x. Contacted export (Trello 56, 0.24.311, PLAN-contacted-export.md) ----
   Mock: Images/agent-contacted-export-mockup.png. Markup: includes/contacted-export.php (header).
   Every control is the existing one on the same screen (STYLE-CHECKLIST "How to use" 6):
   - Export button (768+, JS) and the no-JS summary: the Filters button's skin (7g: 44px, line border,
     10px radius, navy 16/600 label, 20px icon), in the slot Filters takes on Available. The markup's
     .tl-btn.tl-btn-outline is overridden here (min-height, weight, focus fill), so it matches Filters
     rather than the mock's teal outline (flagged).
   - phone download icon: 7g's icon button (search, Sort and filter), at the right end of the heading
     line; the sort icon and search move left 52px each (mock panel 4: search, sort, download).
   - the sheet: the filter sheet itself (shared classes): bottom sheet under 768, the popover under its
     button from 768 (--tl-filter-top / --tl-filter-right), 480 wide as Filters (UX P3-1).
   - legends: the filter sheet's group heading (13 / 700 uppercase mute); options: the remove sheet's
     tick row (.tl-remove-tick: 22px box, 15 / 500 navy, 14px mute help) with the 3c radio (20px);
     each row 44px to tap, rows touching;
   - note: the A1 note strip (wash, 1px line, 12px radius) at the sheet's 14px, as the footer's first,
     full-width line (UX P2-1: always visible with Download);
   - actions: the filter sheet's (top rule, sticky at the box's bottom, 12px top padding here); Cancel is 7c's link-look
     Cancel; Download CSV the primary button. Phones: no Cancel (the filter sheet's phone footer has
     none either: the X closes), Download full width.
   The wrapper is empty off Contacted (no whitespace), so :empty drops it from the grid.
   Specificity (0,3,0)+ through .tl-agent-app .tl-inbox; no !important. */
.tl-agent-app .tl-inbox .tl-inbox-export-wrap { display: flex; align-items: center; min-width: 0; }
.tl-agent-app .tl-inbox .tl-inbox-export-wrap:empty { display: none; }
.tl-agent-app .tl-inbox .tl-inbox-top > .tl-inbox-export-wrap:has(> :not([hidden])) { margin-left: 8px; }
/* Over .tl-btn's 48px floor, 700 weight and focus fills (section 2), so it reads as Filters does. */
.tl-agent-app .tl-inbox .tl-inbox-export-btn { min-height: 44px; font-weight: 600; }
.tl-agent-app .tl-inbox .tl-inbox-export-btn:focus:not(:hover):not([aria-expanded="true"]) { border-color: var(--tl-line); background: var(--tl-white); color: var(--tl-navy); }
/* No JS: the panel under its summary (a popover from 768, in the flow on phones), as the Filters one. */
.tl-agent-app .tl-inbox .tl-inbox-export { position: relative; }
.tl-agent-app .tl-inbox .tl-inbox-export > .tl-export-form { margin-top: 8px; padding: 20px; border: 1px solid var(--tl-line); border-radius: 12px; background: var(--tl-white); box-shadow: var(--tl-shadow-pop); }

/* The form (in the sheet with JS, in the <details> without). */
.tl-agent-app .tl-inbox .tl-export-form { margin: 0; }
.tl-agent-app .tl-inbox .tl-export-intro { margin: 0 0 16px; color: var(--tl-mute); font-size: 14px; line-height: 1.5; } /* mute on white 4.6:1 */
.tl-agent-app .tl-inbox .tl-export-group { min-width: 0; margin: 0 0 12px; padding: 0; border: 0; }
.tl-agent-app .tl-inbox .tl-export-legend { margin-bottom: 0; }
/* One row: the box in a 22px column, the text beside it; 11px above and below a 22px line = 44px. */
.tl-agent-app .tl-inbox .tl-export-option {
	clear: both;
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr);
	column-gap: 12px;
	align-items: start;
	margin: 0;
	padding: 11px 0;
	cursor: pointer;
}
.tl-agent-app .tl-inbox .tl-export-input { justify-self: center; margin: 0; padding: 0; accent-color: var(--tl-teal); cursor: pointer; }
.tl-agent-app .tl-inbox .tl-export-input[type="checkbox"] { width: 22px; height: 22px; }
.tl-agent-app .tl-inbox .tl-export-input[type="radio"] { width: 20px; height: 20px; margin-top: 1px; }
.tl-agent-app .tl-inbox .tl-export-input:focus-visible { outline: 2px solid var(--tl-teal); outline-offset: 2px; }
.tl-agent-app .tl-inbox .tl-export-option-text { display: flex; flex-direction: column; min-width: 0; }
.tl-agent-app .tl-inbox .tl-export-option-label { color: var(--tl-navy); font-size: 15px; font-weight: 500; line-height: 22px; overflow-wrap: anywhere; }
.tl-agent-app .tl-inbox .tl-export-option-sub { margin-top: 2px; color: var(--tl-mute); font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; } /* mute on white 4.6:1 */
/* UX P2-1: the reminder is the footer's first line (full width), so it always shows with Download. */
.tl-agent-app .tl-inbox .tl-export-note { flex: 1 1 100%; margin: 0; padding: 10px 14px; border: 1px solid var(--tl-line); border-radius: 12px; background: var(--tl-wash); color: var(--tl-body); font-size: 14px; line-height: 1.5; } /* body on wash 6.9:1 */
.tl-agent-app .tl-inbox .tl-export-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 16px; margin: 4px 0 0; padding: 12px 0 0; border-top: 1px solid var(--tl-line); }
/* The footer (reminder + buttons) stays in reach while a short window scrolls the choices above it (the filter sheet's Show). */
.tl-agent-app .tl-inbox .tl-export-sheet .tl-export-actions { position: sticky; bottom: -1px; z-index: 1; background: var(--tl-white); }
@media (max-width: 767px) {
	/* JS: the download icon joins search and sort on the heading line, at the right end. */
	.tl-agent-app .tl-inbox .tl-inbox-export-btn { display: none; }
	.tl-agent-app .tl-inbox .tl-inbox-export-toggle { display: flex; }
	.tl-agent-app .tl-inbox .tl-inbox-top > .tl-inbox-export-wrap:has(> .tl-inbox-export-toggle:not([hidden])) { grid-area: head; justify-self: end; align-self: start; margin: -4px 0 0 16px; }
	.tl-agent-app .tl-inbox .tl-inbox-top:has(> .tl-inbox-export-wrap > .tl-inbox-export-toggle:not([hidden])) > :is(.tl-inbox-sortmenu.is-enhanced, .tl-inbox-sortfilter-btn) { margin-right: 52px; }
	.tl-agent-app .tl-inbox .tl-inbox-top:has(> .tl-inbox-export-wrap > .tl-inbox-export-toggle:not([hidden])) > .tl-inbox-search-toggle { margin-right: 52px; }
	.tl-agent-app .tl-inbox .tl-inbox-top:has(> .tl-inbox-export-wrap > .tl-inbox-export-toggle:not([hidden])):has(> .tl-inbox-sortmenu.is-enhanced:not([hidden]), > .tl-inbox-sortfilter-btn:not([hidden])) > .tl-inbox-search-toggle { margin-right: 104px; }
	.tl-agent-app .tl-inbox .tl-inbox-top:has(> .tl-inbox-export-wrap > .tl-inbox-export-toggle:not([hidden])):has(> .tl-inbox-search-toggle:not([hidden])) > .tl-page-head .tl-page-title { padding-right: 112px; }
	.tl-agent-app .tl-inbox .tl-inbox-top:has(> .tl-inbox-export-wrap > .tl-inbox-export-toggle:not([hidden])):has(> .tl-inbox-search-toggle:not([hidden])):has(> .tl-inbox-sortmenu.is-enhanced:not([hidden]), > .tl-inbox-sortfilter-btn:not([hidden])) > .tl-page-head .tl-page-title { padding-right: 164px; }
	/* No JS: the summary on its own row under the search field, the panel in the flow under it. */
	.tl-agent-app .tl-inbox .tl-inbox-top > .tl-inbox-export-wrap:has(> .tl-inbox-export:not([hidden])) { grid-area: export; display: block; margin: 0 0 16px; }
	/* The sheet: no Cancel (the X closes, as the filter sheet), Download full width in a sticky footer. */
	.tl-agent-app .tl-inbox .tl-export-sheet .tl-export-cancel { display: none; }
	.tl-agent-app .tl-inbox .tl-export-sheet .tl-export-actions { margin: 4px -16px calc(-16px - env(safe-area-inset-bottom, 0px)); padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px)); bottom: calc(-16px - env(safe-area-inset-bottom, 0px)); }
	.tl-agent-app .tl-inbox .tl-export-submit { width: 100%; }
}
@media (min-width: 768px) {
	.tl-agent-app .tl-inbox .tl-export-sheet .tl-export-actions { bottom: -16px; margin-bottom: -16px; padding-bottom: 16px; }
	.tl-agent-app .tl-inbox .tl-inbox-export > .tl-export-form { position: absolute; top: 100%; right: 0; z-index: 6; box-sizing: border-box; width: 480px; max-width: calc(100vw - 32px); }
}

/* The top: placement (see the header). Only when the search form is printed. */
@media (min-width: 1280px) {
	.tl-agent-app .tl-inbox .tl-inbox-top:has(> .tl-inbox-search) {
		/* The tabs take their full width while there's room (searching keeps 200px at least), the field the rest. */
		grid-template-columns: minmax(0, max-content) minmax(200px, 1fr) auto auto;
		grid-template-areas: "head sort sort sort" "tabs search filters export";
		column-gap: 0; /* the controls space themselves (8px); 5b's 24px gap was for the heading and sort */
	}
	.tl-agent-app .tl-inbox .tl-inbox-top:has(> .tl-inbox-search) > .tl-inbox-sort { justify-self: end; margin-left: 24px; }
	.tl-agent-app .tl-inbox .tl-inbox-top > .tl-inbox-search { grid-area: search; align-self: start; justify-self: end; box-sizing: border-box; width: 100%; max-width: 336px; margin: 2px 0 0; padding-left: 16px; }
	.tl-agent-app .tl-inbox .tl-inbox-top:has(> .tl-inbox-search) .tl-inbox-tabs-list { gap: 28px; }
	.tl-agent-app .tl-inbox .tl-inbox-top > .tl-inbox-filters-wrap { grid-area: filters; align-self: start; margin: 2px 0 0; }
	.tl-agent-app .tl-inbox .tl-inbox-top > .tl-inbox-filters-wrap:has(> *:not([hidden])) { margin-left: 8px; }
	.tl-agent-app .tl-inbox .tl-inbox-top > .tl-inbox-export-wrap { grid-area: export; align-self: start; margin: 2px 0 0; }
	/* The tab line runs on under the search and Filters, to the right edge (a grid item of its own). */
	.tl-agent-app .tl-inbox .tl-inbox-top:has(> .tl-inbox-search)::after { content: ""; grid-row: 2; grid-column: 2 / -1; align-self: end; height: 1px; margin: 0 0 24px; background: var(--tl-line); }
}
@media (min-width: 900px) and (max-width: 1279px) {
	.tl-agent-app .tl-inbox .tl-inbox-top:has(> .tl-inbox-search) {
		/* Three columns so the sort select (spanning 2-3) doesn't widen the Filters column: the field runs up to
		   Filters, or to the edge on tabs without it (the column is then 0 wide). */
		grid-template-columns: minmax(0, 1fr) auto auto auto;
		grid-template-areas: "head sort sort sort" "tabs tabs tabs tabs" "search search filters export";
		column-gap: 0; /* the controls space themselves (8px); 5b's 24px gap was for the heading and sort */
	}
	.tl-agent-app .tl-inbox .tl-inbox-top:has(> .tl-inbox-search) > .tl-inbox-tabs { margin-bottom: 16px; }
	.tl-agent-app .tl-inbox .tl-inbox-top:has(> .tl-inbox-search) > .tl-inbox-sort { justify-self: end; margin-left: 24px; }
	.tl-agent-app .tl-inbox .tl-inbox-top > .tl-inbox-search { grid-area: search; margin: 0 0 24px; }
	.tl-agent-app .tl-inbox .tl-inbox-top > .tl-inbox-filters-wrap { grid-area: filters; margin: 0 0 24px; }
	.tl-agent-app .tl-inbox .tl-inbox-top > .tl-inbox-filters-wrap:has(> *:not([hidden])) { margin-left: 8px; }
	.tl-agent-app .tl-inbox .tl-inbox-top > .tl-inbox-export-wrap { grid-area: export; margin: 0 0 24px; }
}
@media (min-width: 768px) and (max-width: 899px) {
	.tl-agent-app .tl-inbox .tl-inbox-top:has(> .tl-inbox-search) {
		grid-template-columns: minmax(0, 1fr) auto auto auto;
		grid-template-areas: "head head head head" "tabs tabs tabs tabs" "search filters export sort";
		column-gap: 0; /* the controls space themselves (8px); 5b's 24px gap was for the heading and sort */
	}
	.tl-agent-app .tl-inbox .tl-inbox-top > .tl-inbox-search { grid-area: search; margin: 0 0 16px; }
	.tl-agent-app .tl-inbox .tl-inbox-top > .tl-inbox-filters-wrap { grid-area: filters; margin: 0 0 16px; }
	.tl-agent-app .tl-inbox .tl-inbox-top > .tl-inbox-filters-wrap:has(> *:not([hidden])) { margin-left: 8px; }
	.tl-agent-app .tl-inbox .tl-inbox-top > .tl-inbox-export-wrap { grid-area: export; margin: 0 0 16px; }
	.tl-agent-app .tl-inbox .tl-inbox-top:has(> .tl-inbox-search) > .tl-inbox-sort { grid-area: sort; justify-self: end; margin: 0 0 16px 8px; }
	.tl-agent-app .tl-inbox .tl-inbox-top:has(> .tl-inbox-search) > .tl-inbox-sort .tl-inbox-sort-select { height: 44px; }
}
/* "/" on keyboard widths only, and only with JS (it does nothing without). */
@media (min-width: 900px) {
	.tl-agent-app .tl-inbox .tl-inbox-search-input:placeholder-shown ~ .tl-inbox-search-key { display: block; }
	.tl-agent-app .tl-inbox .tl-inbox-search .tl-inbox-search-input:placeholder-shown { padding-right: 44px; }
}
.tl-agent-app .tl-inbox.tl-no-js .tl-inbox-search .tl-inbox-search-key { display: none; }
/* Phones. */
@media (max-width: 767px) {
	.tl-agent-app .tl-inbox .tl-inbox-top:has(> .tl-inbox-search) { grid-template-areas: "head" "search" "filters" "export" "tabs" "sort"; }
	.tl-agent-app .tl-inbox .tl-inbox-top > .tl-inbox-search { grid-area: search; margin: 0 0 16px; }
	.tl-agent-app .tl-inbox .tl-inbox-top > .tl-inbox-filters-wrap { grid-area: filters; }
	.tl-agent-app .tl-inbox .tl-inbox-top > .tl-inbox-filters-wrap > .tl-inbox-filters { margin: 0 0 16px; }
	.tl-agent-app .tl-inbox .tl-inbox-filters-btn { display: none; }
	/* JS: the field hides until the icon opens it; Cancel shows beside it. */
	.tl-agent-app .tl-inbox.tl-js:not(.is-search-open) .tl-inbox-top > .tl-inbox-search { display: none; }
	.tl-agent-app .tl-inbox .tl-inbox-search .tl-inbox-search-cancel { display: inline-flex; align-items: center; }
	/* The icons share the heading's cell at its right end (as 5b's sort icon): sort / Sort and filter at
	   the edge, search 8px left of it. */
	.tl-agent-app .tl-inbox .tl-inbox-top > :is(.tl-inbox-search-toggle, .tl-inbox-sortfilter-btn) { display: flex; grid-area: head; justify-self: end; align-self: start; margin: -4px 0 0 16px; }
	.tl-agent-app .tl-inbox .tl-inbox-top:has(> .tl-inbox-sortmenu.is-enhanced:not([hidden]), > .tl-inbox-sortfilter-btn:not([hidden])) > .tl-inbox-search-toggle { margin-right: 52px; }
	.tl-agent-app .tl-inbox .tl-inbox-top:has(> .tl-inbox-search-toggle:not([hidden])) > .tl-page-head .tl-page-title { padding-right: 60px; }
	.tl-agent-app .tl-inbox .tl-inbox-top:has(> .tl-inbox-search-toggle:not([hidden])):has(> .tl-inbox-sortmenu.is-enhanced:not([hidden]), > .tl-inbox-sortfilter-btn:not([hidden])) > .tl-page-head .tl-page-title { padding-right: 112px; }
}
/* Under 360 (UX P3-1): the two icons stay together beside the heading, as from 360 (mocks 3-5). 5b's
   under-360 sort icon beside the view dropdown is for a page without the search icon (first run,
   ?filter=all); with it, the sort icon joins the heading line at 44px and the dropdown takes the full
   row. "Inbox" (26-30px) + 112px of icons fits 288px with room. */
@media (max-width: 359px) {
	.tl-agent-app .tl-inbox .tl-inbox-top:has(> .tl-inbox-search) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "search" "filters" "export" "view" "sort"; }
	.tl-agent-app .tl-inbox .tl-inbox-top:has(> .tl-inbox-search) > .tl-inbox-sortmenu.is-enhanced { grid-area: head; justify-self: end; align-self: start; margin: -4px 0 0 16px; }
	.tl-agent-app .tl-inbox .tl-inbox-top:has(> .tl-inbox-search) > .tl-inbox-sortmenu .tl-inbox-sortmenu-toggle { width: 44px; height: 44px; }
}

/* Results region: the Taken cap line, applied filters, the search result line. */
.tl-agent-app .tl-inbox .tl-inbox-taken-cap { margin: 0 0 16px; color: var(--tl-body); font-size: 15px; line-height: 1.5; }
.tl-agent-app .tl-inbox :is(.tl-inbox-applied, .tl-inbox-result) { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 16px; }
.tl-agent-app .tl-inbox .tl-inbox-applied-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tl-agent-app .tl-inbox .tl-inbox-applied-item { margin: 0; }
/* Applied chip: the picked chip (7d) with a ✕; hover as a chip's. */
.tl-agent-app .tl-inbox .tl-inbox-applied-chip {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	box-sizing: border-box;
	min-height: var(--tl-pass-pill-h);
	padding: 0 10px 0 13px;
	border: 1px solid var(--tl-teal);
	border-radius: var(--tl-radius-pill);
	background: var(--tl-teal-soft);
	box-shadow: inset 0 0 0 1px var(--tl-teal);
	color: var(--tl-teal-hover);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.tl-agent-app .tl-inbox .tl-inbox-applied-chip::after { content: ""; position: absolute; inset: calc((var(--tl-pass-pill-h) - 44px) / 2 - 1px) -1px; }
.tl-agent-app .tl-inbox .tl-inbox-applied-chip .tl-icon { width: 16px; height: 16px; stroke-width: 2.4; }
.tl-agent-app .tl-inbox .tl-inbox-applied-chip:is(:hover, :focus) { background: var(--tl-white); color: var(--tl-navy); }
.tl-agent-app .tl-inbox .tl-inbox-applied-chip:focus:not(:focus-visible) { outline: 0; }
.tl-agent-app .tl-inbox :is(.tl-inbox-applied-count, .tl-inbox-result-text) { margin: 0; color: var(--tl-body); font-size: 15px; line-height: 22px; }
.tl-agent-app .tl-inbox .tl-inbox-result-text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
/* "also 20 in Contacted, 7 in Taken, 4 in Passed" (UX P3-2): no negative-margin hit areas on text that
   wraps. 768+: plain inline links in the sentence (22px, as the app's other links in running text).
   Phones: the "also" part is an inline flex box that wraps between its parts; each link is a 44px row
   item (row gap 0, so the targets touch and never overlap). Flex drops the spaces round the anonymous
   text items ("· also", ","), so each link carries a 0.28em left padding (a space's width) instead. */
.tl-agent-app .tl-inbox .tl-inbox-result .tl-inbox-result-also-link { display: inline; margin: 0; padding: 0; white-space: normal; } /* (0,4,0): over the link rule above */
@media (max-width: 767px) {
	.tl-agent-app .tl-inbox .tl-inbox-result .tl-inbox-result-also { display: inline-flex; flex-wrap: wrap; align-items: center; max-width: 100%; margin-left: 0.28em; }
	.tl-agent-app .tl-inbox .tl-inbox-result .tl-inbox-result-also-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0 0 0.28em; border-radius: 0; white-space: nowrap; }
	.tl-agent-app .tl-inbox .tl-inbox-result .tl-inbox-result-also-link:focus-visible { outline-offset: -2px; }
	/* Clear search / Clear filters: a real 44px box here too (the negative-margin one reached 3px into the
	   also links' row above when the line wrapped, 390). */
	.tl-agent-app .tl-inbox :is(.tl-inbox-applied, .tl-inbox-result) > :is(.tl-inbox-applied-clear, .tl-inbox-result-clear) { display: inline-flex; align-items: center; min-height: 44px; margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; }
	.tl-agent-app .tl-inbox :is(.tl-inbox-applied, .tl-inbox-result) { row-gap: 0; }
}
.tl-agent-app .tl-inbox :is(.tl-inbox-applied, .tl-inbox-result) > :is(.tl-inbox-applied-clear, .tl-inbox-result-clear) { margin-left: auto; margin-right: -4px; }
/* Phones: the applied chips on their own line(s); "Showing 4 of 11" and Clear filters under them (mock 5). */
@media (max-width: 767px) {
	.tl-agent-app .tl-inbox .tl-inbox-applied-list { flex: 1 1 100%; }
	.tl-agent-app .tl-inbox :is(.tl-inbox-applied, .tl-inbox-result, .tl-inbox-taken-cap) { margin-bottom: 12px; }
}

/* Search match: the mock's soft yellow (the amber label's line colour; navy on it 11:1, body 5.6:1). */
.tl-agent-app .tl-inbox mark.tl-inbox-mark { padding: 0 1px; border-radius: 3px; background: var(--tl-status-amber-line); color: inherit; }

/* Empty states. The section is 5b's .tl-inbox-none card. */
.tl-agent-app .tl-inbox .tl-inbox-none-title { margin: 0; color: var(--tl-navy); font-size: 17px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.tl-agent-app .tl-inbox .tl-inbox-none--search .tl-inbox-none-text { font-size: 15px; line-height: 1.5; }
.tl-agent-app .tl-inbox .tl-inbox-none :is(.tl-inbox-none-go, .tl-inbox-none-all, .tl-btn.tl-inbox-none-clear) { margin-top: 8px; }
/* P2-2: "Show all contacted", then the other tabs' line and "Show Available": the second part starts
   16px under the first button (gap 8 + 8), the same as text-to-button, so the two pairs read apart. */
.tl-agent-app .tl-inbox .tl-inbox-none .tl-btn + .tl-inbox-none-text { margin-top: 8px; }
.tl-agent-app .tl-inbox .tl-inbox-none--search-chip .tl-inbox-none-text--all { font-size: 15px; line-height: 1.5; }
.tl-agent-app .tl-inbox .tl-inbox-none .tl-btn { max-width: 100%; white-space: normal; }
.tl-agent-app .tl-inbox .tl-inbox-none .tl-inbox-none-clear:not(.tl-btn) { margin-top: 0; }

/* Loading: the card's .is-busy fade, on the whole region, without moving anything. */
.tl-agent-app .tl-inbox .tl-inbox-results > * { transition: opacity 0.15s ease; }
.tl-agent-app .tl-inbox .tl-inbox-results.is-loading { cursor: progress; }
.tl-agent-app .tl-inbox .tl-inbox-results.is-loading > * { opacity: 0.55; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
	.tl-agent-app .tl-inbox .tl-inbox-results > * { transition: none; }
}

/* Pager bar. Desktop (1280+, mock 1): "Showing …" left, the pages centred, per page right, in one row.
   768-1279: the pages on a row of their own above (they don't fit beside the other two at 676px). */
.tl-agent-app .tl-inbox .tl-inbox-pagebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas: "pager pager" "show per";
	align-items: center;
	gap: 12px 16px;
	margin: 20px 0 0;
}
.tl-agent-app .tl-inbox .tl-inbox-showing { grid-area: show; margin: 0; color: var(--tl-body); font-size: 15px; line-height: 1.5; }
.tl-agent-app .tl-inbox .tl-inbox-pager { grid-area: pager; display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; }
.tl-agent-app .tl-inbox .tl-inbox-pagebar:not(:has(.tl-inbox-pager)) { grid-template-areas: "show per"; }
.tl-agent-app .tl-inbox .tl-inbox-pager-list { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tl-agent-app .tl-inbox .tl-inbox-pager-item { margin: 0; }
/* Prev / next / page: the chip's line border and hover, 40px squares (an 8px radius, the field's
   family, as numbers read better in squares than pills). Current: the picked chip. */
.tl-agent-app .tl-inbox :is(.tl-inbox-pager-prev, .tl-inbox-pager-next, .tl-inbox-pager-page) {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	box-sizing: border-box;
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
	border: 1px solid var(--tl-line);
	border-radius: var(--tl-radius-btn);
	background: var(--tl-white);
	color: var(--tl-navy);
	font-size: 15px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.tl-agent-app .tl-inbox :is(.tl-inbox-pager-prev, .tl-inbox-pager-next) .tl-icon { width: 18px; height: 18px; stroke-width: 2; }
.tl-agent-app .tl-inbox .tl-inbox-pager-prev { padding-left: 8px; }
.tl-agent-app .tl-inbox .tl-inbox-pager-next { padding-right: 8px; }
.tl-agent-app .tl-inbox :is(a.tl-inbox-pager-prev, a.tl-inbox-pager-next, a.tl-inbox-pager-page):is(:hover, :focus) { border-color: var(--tl-teal); background: var(--tl-teal-soft); color: var(--tl-teal-hover); }
.tl-agent-app .tl-inbox :is(.tl-inbox-pager-prev, .tl-inbox-pager-next, .tl-inbox-pager-page):focus:not(:focus-visible) { outline: 0; }
.tl-agent-app .tl-inbox .tl-inbox-pager-page.is-current { border-color: var(--tl-teal); background: var(--tl-teal-soft); box-shadow: inset 0 0 0 1px var(--tl-teal); color: var(--tl-teal-hover); font-weight: 700; }
/* Disabled: mute (4.55:1, though disabled controls are exempt), no hover. */
.tl-agent-app .tl-inbox :is(.tl-inbox-pager-prev, .tl-inbox-pager-next).is-disabled { color: var(--tl-mute); cursor: default; }
.tl-agent-app .tl-inbox .tl-inbox-pager-gap { display: flex; align-items: center; justify-content: center; min-width: 24px; height: 40px; color: var(--tl-mute); font-size: 15px; }
.tl-agent-app .tl-inbox .tl-inbox-pager-status { display: none; }
/* Per page: the field skin (3b) and agent chevron (5d) at the pager's 40px. */
.tl-agent-app .tl-inbox .tl-inbox-perpage { grid-area: per; display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: 0; }
.tl-agent-app .tl-inbox .tl-inbox-perpage-label { margin: 0; color: var(--tl-body); font-size: 15px; font-weight: 400; line-height: 1.5; white-space: nowrap; }
.tl-agent-app .tl-inbox .tl-inbox-perpage .tl-inbox-perpage-select { width: auto; min-width: 84px; height: 40px; font-weight: 600; }
.tl-agent-app .tl-inbox .tl-inbox-perpage .tl-inbox-perpage-go { min-height: 40px; padding: 0 16px; }
@media (min-width: 1280px) {
	.tl-agent-app .tl-inbox .tl-inbox-pagebar { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-areas: "show pager per"; }
	.tl-agent-app .tl-inbox .tl-inbox-pagebar:not(:has(.tl-inbox-pager)) { grid-template-areas: "show . per"; }
}
/* Phones (mock 3): "‹  Page 2 of 4 / 21–40 of 64  ›", 44px buttons; no "Showing" line beside it, no per page.
   The words stay for screen readers (the links' names). */
@media (max-width: 767px) {
	.tl-agent-app .tl-inbox .tl-inbox-pagebar { grid-template-columns: minmax(0, 1fr); grid-template-areas: "pager" "show"; margin-top: 16px; }
	.tl-agent-app .tl-inbox .tl-inbox-pagebar:has(.tl-inbox-pager) .tl-inbox-showing,
	.tl-agent-app .tl-inbox .tl-inbox-perpage,
	.tl-agent-app .tl-inbox .tl-inbox-pager-list { display: none; }
	.tl-agent-app .tl-inbox .tl-inbox-pager { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 8px; }
	.tl-agent-app .tl-inbox :is(.tl-inbox-pager-prev, .tl-inbox-pager-next) { width: 44px; min-width: 44px; height: 44px; padding: 0; }
	.tl-agent-app .tl-inbox :is(.tl-inbox-pager-prev, .tl-inbox-pager-next) .tl-icon { width: 20px; height: 20px; }
	.tl-agent-app .tl-inbox .tl-inbox-pager-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
	.tl-agent-app .tl-inbox .tl-inbox-pager-status { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 0; text-align: center; }
	.tl-agent-app .tl-inbox .tl-inbox-pager-of { color: var(--tl-navy); font-size: 16px; font-weight: 700; line-height: 1.3; }
	.tl-agent-app .tl-inbox .tl-inbox-pager-range { color: var(--tl-body); font-size: 14px; line-height: 1.3; font-variant-numeric: tabular-nums; }
}
/* end 7g */

/* ---- 7h. Remove a contacted lead (PLAN-remove-lead.md §1-4, §9, §10; mock Images/remove-lead-mockup.png) ----
   Markup: includes/lead-remove-ui.php (link, warning, no-JS confirm, report line), templates/lead-detail.php,
   templates/lead-removed.php, includes/lead-pass.php (the inbox bar); JS agent-app.js initLeadRemove().
   Existing pattern wins (STYLE-CHECKLIST "How to use" 6); every piece reuses a look already on the site:
   - the warning's box, backdrop, body lock, fade and reduced motion are the Pass sheet's (7c shares its
     lists with .tl-remove-*): a bottom sheet under 768, a centred 440px card from 768, 22 / 700 title;
   - the red box is the panel's error box (7d .tl-lead-status-error: danger on danger-soft, 8px radius);
   - the tick is the agent app's .tl-check (5h rights box): a 22px native box in teal, 12px gap, 15 / 500;
   - Remove lead is the shared .tl-btn-danger (section 2, the tracker's "Yes, close it"); Cancel the
     outline .tl-btn (the markup); the saving state is the "posting" ring of the unsaved dialog (5h step 6);
   - the no-JS confirm in the side column is the inline confirm box of the tracker's Close this plan
     (traveller.css B7b: white, line border, 4px danger edge) and of Still no reply (7d);
   - the quiet red link is the red text action of the logo / photo Remove buttons (5g, 5h): danger 15 / 600,
     underlined, danger-hover on hover, a danger ring;
   - the removed page is the 403 / gone page (5c, the .tl-empty card); the inbox bar is the navy pass bar.
   Mock differences kept to the site's pattern are listed in docs/CSS.md. */

/* The block. PLAN §11.3: with a right column it's printed twice, .tl-lead-remove--side (last in the column,
   under History) shown from 1024, and .tl-lead-remove--end (right after .tl-lead-layout, so the last thing
   on the page, after the trip, contact and More cards) shown below 1024. display: none, so the hidden copy
   is out of the tab order and the accessibility tree. .tl-lead-remove--standalone (no right column) is the
   only copy and shows at every width. Not a card: its text lines up with the cards' text above it, so the
   inset follows the card padding at each width (28, 20 at 1024-1279 in the side column, 16 under 900). */
.tl-agent-app .tl-lead-remove--end { display: none; }
@media (max-width: 1023px) {
	.tl-agent-app .tl-lead-remove--side { display: none; }
	.tl-agent-app .tl-lead-remove--end { display: block; }
}
.tl-agent-app .tl-lead-remove { margin: 0 0 20px; padding: 0 28px; }
.tl-agent-app .tl-lead-remove-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	margin: -6px 0 -4px; /* the 44px hit area, without a 44px gap above the help line */
	border-radius: var(--tl-radius-btn);
	color: var(--tl-danger);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	transition: color 0.15s ease;
}
.tl-agent-app .tl-lead-remove-link .tl-icon { flex: none; width: 18px; height: 18px; stroke-width: 2; }
.tl-agent-app .tl-lead-remove-label { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.tl-agent-app .tl-lead-remove-link:is(:hover, :focus) { color: var(--tl-danger-hover); }
.tl-agent-app .tl-lead-remove-link:hover .tl-lead-remove-label { text-decoration-thickness: 2px; }
.tl-agent-app .tl-lead-remove-link:focus-visible { outline: 2px solid var(--tl-danger); outline-offset: 2px; }
.tl-agent-app .tl-lead-remove-help { margin: 0; color: var(--tl-mute); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; text-wrap: pretty; } /* no word alone on the last line (UX P3-1, §13.1) */
/* The no-JS confirm takes the column's full width, as the cards. */
.tl-agent-app .tl-lead-remove.is-confirm { padding: 0; }
.tl-agent-app :is(.tl-lead-remove--standalone, .tl-lead-remove--end).is-confirm { max-width: 560px; } /* the tracker's Close confirm measure */
@media (min-width: 1024px) and (max-width: 1279px) {
	.tl-agent-app .tl-lead-side > .tl-lead-remove:not(.is-confirm) { padding: 0 20px; }
}
@media (max-width: 899px) {
	.tl-agent-app .tl-lead-remove:not(.is-confirm) { padding: 0 16px; }
}

/* The warning: shared parts (sheet and no-JS page). */
.tl-agent-app .tl-remove-confirm { min-width: 0; }
.tl-agent-app .tl-remove-title { overflow-wrap: anywhere; }
.tl-agent-app .tl-remove-text { margin: 6px 0 0; color: var(--tl-body); font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; } /* the Pass picker's .tl-pass-text */
.tl-agent-app .tl-remove-trip { color: var(--tl-navy); font-weight: 700; }
.tl-agent-app .tl-remove-warning {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 16px 0 0;
	padding: 12px 14px;
	border-radius: var(--tl-radius-control);
	background: var(--tl-danger-soft);
	color: var(--tl-danger); /* 5.9:1 on danger-soft */
}
.tl-agent-app .tl-remove-warning .tl-icon { flex: none; width: 20px; height: 20px; margin-top: 1px; stroke-width: 2; }
.tl-agent-app .tl-remove-warning-text { min-width: 0; margin: 0; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.tl-agent-app .tl-remove-warning-lead { font-weight: 700; }
.tl-agent-app .tl-remove-form { margin: 0; }
/* The tick: a 44px-tall row (11px padding, cancelled by margins), the help line under the label's text. */
.tl-agent-app .tl-remove-tick { margin: 18px 0 0; }
.tl-agent-app .tl-remove-tick-label { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 12px; align-items: start; margin: -11px 0; padding: 11px 0; cursor: pointer; }
.tl-agent-app .tl-remove-tick-input { width: 22px; height: 22px; margin: 0; padding: 0; accent-color: var(--tl-teal); cursor: pointer; }
.tl-agent-app .tl-remove-tick-input:focus-visible { outline: 2px solid var(--tl-teal); outline-offset: 2px; }
.tl-agent-app .tl-remove-tick-text { min-width: 0; color: var(--tl-navy); font-size: 15px; font-weight: 500; line-height: 22px; overflow-wrap: anywhere; }
.tl-agent-app .tl-remove-tick-help { margin: 2px 0 0 34px; color: var(--tl-mute); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; } /* mute on white 4.6:1 */
/* Buttons: Cancel first in the DOM (focus starts there). Stacked, full width, Remove lead on top. */
.tl-agent-app .tl-remove-actions { display: flex; flex-direction: column-reverse; gap: 12px; margin: 24px 0 0; }
.tl-agent-app .tl-remove-actions > .tl-btn { width: 100%; margin: 0; }
/* Saving (.is-busy, Remove lead [disabled]; the sheet won't close): the unsaved dialog's posting look (5h
   step 6), in red: the button stays red with a turning ring, and Cancel reads as off. */
.tl-agent-app .tl-remove-form.is-busy .tl-remove-submit:disabled,
.tl-agent-app .tl-remove-form.is-busy .tl-remove-submit:disabled:is(:hover, :focus) { border-color: var(--tl-danger); background: var(--tl-danger); color: var(--tl-white); opacity: 1; cursor: progress; }
.tl-agent-app .tl-remove-form.is-busy .tl-remove-submit::before {
	content: "";
	flex: none;
	box-sizing: border-box;
	width: 18px;
	height: 18px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: tl-pe-spin 0.8s linear infinite;
}
.tl-agent-app .tl-remove-form.is-busy .tl-remove-cancel,
.tl-agent-app .tl-remove-form.is-busy .tl-remove-cancel:is(:hover, :focus) { border-color: var(--tl-line); background: var(--tl-neutral-soft); color: var(--tl-body); cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) {
	.tl-agent-app .tl-remove-form.is-busy .tl-remove-submit::before { animation: none; }
}

/* The sheet (box, backdrop, lock and fade: 7c; no grab handle, as the other sheets: PLAN §11.2). From 768:
   Cancel then Remove lead, right-aligned (§11.1, the mock). */
@media (min-width: 768px) {
	.tl-agent-app .tl-remove-confirm--sheet .tl-remove-actions { flex-direction: row; justify-content: flex-end; }
	.tl-agent-app .tl-remove-confirm--sheet .tl-remove-actions > .tl-btn { width: auto; }
}

/* The no-JS confirm (?remove=confirm), in place of the link: the inline confirm box (tracker B7b, 7d). */
.tl-agent-app .tl-remove-confirm--page { padding: 14px 16px; border: 1px solid var(--tl-line); border-left: 4px solid var(--tl-danger); border-radius: 10px; background: var(--tl-white); }
.tl-agent-app .tl-remove-confirm--page .tl-remove-title { font-size: 16px; line-height: 1.4; } /* the inline confirms' question, 16 / 700 navy */
.tl-agent-app .tl-remove-confirm--page .tl-remove-text { margin-top: 4px; }
.tl-agent-app .tl-remove-confirm--page .tl-remove-warning { margin-top: 12px; }
.tl-agent-app .tl-remove-confirm--page .tl-remove-tick { margin-top: 16px; }
.tl-agent-app .tl-remove-confirm--page .tl-remove-actions { margin-top: 20px; }

/* PLAN §10: under "Thanks, we've got your report." The link is the app's inline link (7b). */
.tl-agent-app .tl-lead-report-remove { margin: 12px 0 0; color: var(--tl-body); font-size: 15px; line-height: 1.5; text-wrap: pretty; }
/* The removed page's line, centred and short: balanced lines, as the site's other short centred lines
   (pages.css, marketing.css). Only this page's line; the 403 and inbox empty lines keep theirs. */
.tl-agent-app .tl-lead-removed-text { text-wrap: balance; }
/* The admin's note on a removed lead (lead page): text + a.tl-lead-admin-note-link "Leads box" + ".", no icon.
   A plain block, not the icon + text flex row of .tl-lead-admin-note (5c), which put each piece in a column.
   The link is the app's inline link (7b). The other admin note is unchanged. */
.tl-agent-app .tl-lead-admin-note--removed { display: block; text-wrap: pretty; }
.tl-agent-app .tl-lead-admin-note--removed .tl-lead-admin-note-link { white-space: nowrap; } /* "Leads box" stays on one line (it split at 1440) */

/* The inbox bar after a remove: the navy "Not for me" bar (7c), a ✕ in place of Undo. 44px, white, the
   white ring on navy (STYLE-CHECKLIST §10), as Undo. */
.tl-agent-app .tl-pass-bar--removed { background: var(--tl-navy); color: var(--tl-white); }
.tl-agent-app .tl-pass-bar .tl-pass-bar-close {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: var(--tl-radius-btn);
	background: transparent;
	box-shadow: none;
	color: var(--tl-white);
	cursor: pointer;
	transition: color 0.15s ease;
}
.tl-agent-app .tl-pass-bar .tl-pass-bar-close .tl-icon { width: 20px; height: 20px; stroke-width: 2.2; }
.tl-agent-app .tl-pass-bar .tl-pass-bar-close:is(:hover, :focus) { background: transparent; color: var(--tl-on-navy-kicker); }
.tl-agent-app .tl-pass-bar .tl-pass-bar-close:focus-visible { outline: 2px solid var(--tl-white); outline-offset: -2px; }
.tl-agent-app .tl-pass-bar .tl-pass-bar-close:focus:not(:focus-visible) { outline: 0; }
/* end 7h */

/* ---- 7i. Agent notes (release C; BRIEF-agent-notes.md §1, §6, §10; mock Images/agent-notes-mockup.png) ----
   Markup: includes/lead-notes-ui.php (contract in its header); JS: agent-app.js initLeadNotes() (.is-open on
   the add form, .is-collapsed on the box, [hidden] on Add note / the counter / Show more / the errors).
   Existing pattern wins: the box is a lead-page card (the contact card's padding and title); the text box
   is the field skin (3b) with the app's character counter (.tl-bio-count, Account / Profile); the error is
   the status panel's error box (7d); Edit is the app's inline link (7b), Delete the red text action of the
   Remove buttons (5g, 5h, 7h); the delete confirm is the inline confirm box (tracker B7b, 7h's no-JS
   confirm); "Show {n} more" is the inline link. Daniel, 10 Nov: no 7-day window, so every note has Edit and
   Delete. Mock differences kept: Edit / Delete under the note, not beside its date (they are <details>,
   whose form opens under its own summary). Phones (under 768): the latest 2 notes, then "Show {n} more". */
.tl-agent-app .tl-lead-notes__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tl-agent-app .tl-lead-notes__title { min-width: 0; }
.tl-agent-app .tl-lead-notes__count { flex: none; color: var(--tl-mute); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
/* The private line: mute (4.6:1 on white) with the lock, 6px under the title (the status panel's "Now:" line gap). */
.tl-agent-app .tl-lead-notes__private { display: flex; align-items: flex-start; gap: 6px; margin: 6px 0 0; color: var(--tl-mute); font-size: 14px; line-height: 1.5; }
.tl-agent-app .tl-lead-notes__private .tl-icon { flex: none; width: 16px; height: 16px; margin-top: 2px; }
/* The result line ("Note added."): success ink, in words; nothing when empty. */
.tl-agent-app .tl-lead-notes__status { margin: 0; color: var(--tl-success); font-size: 15px; font-weight: 600; line-height: 1.45; }
.tl-agent-app .tl-lead-notes__status:not(:empty) { margin-top: 12px; }
/* Add a note: the label, a 2-line text box that grows to the field skin's 120px while it has focus or
   text (.is-open; no animation), the error, then the counter left and Add note right. */
.tl-agent-app .tl-lead-notes__add { margin: 16px 0 0; }
.tl-agent-app .tl-lead-notes__label { display: block; margin: 0 0 6px; }
.tl-agent-app .tl-lead-notes__input { min-height: calc(2 * 1.5em + 26px); white-space: pre-wrap; } /* 2 lines + padding and border */
.tl-agent-app .tl-lead-notes__add.is-open .tl-lead-notes__input { min-height: 120px; }
.tl-agent-app .tl-lead-notes__error { margin: 8px 0 0; padding: 10px 14px; border-radius: var(--tl-radius-control); background: var(--tl-danger-soft); color: var(--tl-danger); font-size: 15px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.tl-agent-app :is(.tl-lead-notes__add-foot, .tl-lead-notes__edit-foot) { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 8px 0 0; }
.tl-agent-app :is(.tl-lead-notes__add-foot, .tl-lead-notes__edit-foot) .tl-lead-notes__left { flex: 1 1 auto; margin: 0; text-align: left; }
.tl-agent-app :is(.tl-lead-notes__add-foot, .tl-lead-notes__edit-foot) .tl-btn { flex: none; margin: 0; }
.tl-agent-app .tl-lead-notes__add-foot .tl-lead-notes__submit { margin-left: auto; }
/* The list: newest first, a hairline between notes (the contact rows' line). */
.tl-agent-app .tl-lead-notes__body { margin: 16px 0 0; }
.tl-agent-app .tl-lead-notes__empty { margin: 0; padding-top: 14px; border-top: 1px solid var(--tl-line); color: var(--tl-body); font-size: 15px; line-height: 1.5; }
.tl-agent-app .tl-lead-notes__list { margin: 0; padding: 0; list-style: none; }
.tl-agent-app .tl-lead-notes__item { margin: 0; padding: 14px 0; border-top: 1px solid var(--tl-line); }
.tl-agent-app .tl-lead-notes__item:last-child { padding-bottom: 0; }
.tl-agent-app .tl-lead-notes__item:focus { outline: none; } /* takes focus after an edit or Show more; its links carry the rings */
.tl-agent-app .tl-lead-notes__meta { margin: 0; color: var(--tl-mute); font-size: 14px; line-height: 1.45; }
.tl-agent-app .tl-lead-notes__edited { color: var(--tl-mute); }
/* The note: plain text, its line breaks kept (nl2br), long words wrap. */
.tl-agent-app .tl-lead-notes__text { margin: 4px 0 0; color: var(--tl-navy); font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
/* Edit and Delete: a row under the note; an open one takes the full width so its form sits under it. */
.tl-agent-app .tl-lead-notes__actions { display: flex; flex-wrap: wrap; align-items: flex-start; column-gap: 16px; margin: 4px 0 0; }
.tl-agent-app :is(.tl-lead-notes__edit, .tl-lead-notes__delete) { min-width: 0; }
.tl-agent-app :is(.tl-lead-notes__edit, .tl-lead-notes__delete)[open] { flex: 1 1 100%; }
.tl-agent-app .tl-lead-notes__action {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	border-radius: var(--tl-radius-btn);
	color: var(--tl-teal-hover);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	list-style: none;
	cursor: pointer;
	transition: color 0.15s ease;
}
.tl-agent-app .tl-lead-notes__action::-webkit-details-marker { display: none; }
.tl-agent-app .tl-lead-notes__action::marker { content: ""; }
.tl-agent-app .tl-lead-notes__action:hover { color: var(--tl-navy); text-decoration-thickness: 2px; }
.tl-agent-app .tl-lead-notes__action:focus-visible { outline: 2px solid var(--tl-teal); outline-offset: 2px; }
.tl-agent-app .tl-lead-notes__action--delete { color: var(--tl-danger); }
.tl-agent-app .tl-lead-notes__action--delete:hover { color: var(--tl-danger-hover); }
.tl-agent-app .tl-lead-notes__action--delete:focus-visible { outline-color: var(--tl-danger); }
.tl-agent-app [open] > .tl-lead-notes__action { text-decoration-thickness: 2px; }
.tl-agent-app .tl-lead-notes__edit-form { margin: 8px 0 0; }
/* Delete this note?: the inline confirm box (white, line border, 4px danger edge), Delete then Cancel. */
.tl-agent-app .tl-lead-notes__delete-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 8px 0 0; padding: 12px 14px; border: 1px solid var(--tl-line); border-left: 4px solid var(--tl-danger); border-radius: 10px; background: var(--tl-white); }
.tl-agent-app .tl-lead-notes__confirm { flex: 1 1 100%; margin: 0; color: var(--tl-navy); font-size: 16px; font-weight: 700; line-height: 1.4; }
.tl-agent-app .tl-lead-notes__delete-form .tl-lead-notes__error { flex: 1 1 100%; margin: 0; }
.tl-agent-app .tl-lead-notes__delete-form .tl-btn { margin: 0; }
.tl-agent-app .tl-lead-notes__error--list { margin-top: 12px; }
/* Show {n} more: the inline link on a button (Astra's bare button rules reset). Phones only: from 768
   every note shows, so it has nothing to do. */
.tl-agent-app .tl-lead-notes .tl-lead-notes__more { display: inline-flex; align-items: center; min-height: 44px; margin: 4px 0 -12px; padding: 0; border: 0; border-radius: var(--tl-radius-btn); background: transparent; box-shadow: none; color: var(--tl-teal-hover); font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.5; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-transform: none; cursor: pointer; }
.tl-agent-app .tl-lead-notes .tl-lead-notes__more:is(:hover, :focus) { background: transparent; color: var(--tl-navy); text-decoration-thickness: 2px; }
@media (min-width: 768px) {
	.tl-agent-app .tl-lead-notes .tl-lead-notes__more { display: none; }
}
@media (max-width: 767px) {
	.tl-agent-app .tl-lead-notes.is-collapsed .tl-lead-notes__item--more { display: none; }
	.tl-agent-app .tl-lead-notes.is-collapsed .tl-lead-notes__item:nth-child(2) { padding-bottom: 0; }
	/* 44px targets: Edit / Delete, with the row's gap trimmed so the list keeps its rhythm. */
	.tl-agent-app .tl-lead-notes__action { min-height: 44px; }
	.tl-agent-app .tl-lead-notes__actions { margin: 0 0 -6px; }
	.tl-agent-app .tl-lead-notes__delete-form .tl-btn { flex: 1 1 100%; }
	.tl-agent-app .tl-lead-notes__add-foot .tl-lead-notes__submit { flex: 1 1 100%; }
	/* Edit: the counter on its own line, then Save and Cancel side by side. */
	.tl-agent-app .tl-lead-notes__edit-foot .tl-lead-notes__left { flex-basis: 100%; }
	.tl-agent-app .tl-lead-notes__edit-foot .tl-btn { flex: 1 1 0; }
}

/* The inbox card's note line (Contacted): the facts' look, smaller: pencil, the latest note on one line
   with "…", then "and {n} more". Its own grid row ("note") under the activity line. */
.tl-agent-app .tl-inbox-card-note { grid-area: note; display: flex; align-items: center; gap: 8px; min-width: 0; margin: 8px 12px 0 0; color: var(--tl-body); font-size: 15px; line-height: 1.45; }
.tl-agent-app .tl-inbox-card-note .tl-icon { flex: none; width: 16px; height: 16px; color: var(--tl-mute); }
.tl-agent-app .tl-inbox-card-note-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-agent-app .tl-inbox-card-note-more { flex: none; color: var(--tl-body); font-size: 14px; white-space: nowrap; } /* body, not mute: the card takes a teal-soft hover tint */
@media (min-width: 1360px) {
	.tl-agent-app .tl-inbox-card-note { margin: 10px 0 0; } /* full width under the columns (5b), the stacked card's 15px */
}
/* end 7i */

/* ---- 7j. Agent Help page (Trello 41; markup contract in the header of templates/agent-help.php; audit
   reviews/AUDIT-agent-help.md §1, §4, §8, §10 and Daniel's decisions of 13 Nov) -------------------------
   Existing pattern wins (STYLE-CHECKLIST "How to use" 6). Every piece reuses a look already in the app:
   - frame: one column at every width, 860px from 768 (Trello 50, Daniel 15 Nov: Profile / Specialties /
     Account's .tl-profile column and the lead page), 20px gaps as the lead page; the page head is the shared one (Inbox, Specialties, Account, Profile: 5);
   - jump chips: the inbox status chips (7d .tl-status-chip: 36px pill box, 44px hit, 14 / 600 navy on
     white, 1px line, hover teal-soft with a teal edge), as links that wrap at every width;
   - cards: Profile / Account's .tl-card (24 / 28, 18 / 16 under 900; 14px radius, 1px line, no shadow), the 22 / 700 card title
     (19 under 900), the card hint (Specialties / Profile: 16 / 1.5 body, 4px under the title);
   - Getting started: the chip tick (5d .tl-chip-tick: a teal disc, white 3px tick) for a done step, the
     locked panel's teal-soft disc (5c) with a teal-hover digit for a step to do; the steps' text is the
     app's 16 / 700 navy title over 15 / 1.5 body, rows split by the contact rows' 1px line (5c);
   - statuses: the inbox labels (5b / 7d .tl-lead-status--*) unchanged, the label / value list's rhythm;
     the tip is the panel's plain line (7d), "Why it matters" the muted notice (5d .tl-notice-muted);
   - messages: an inner box with the card line and the muted notice's 12px radius; Copy is the lead
     page's .tl-copy-btn unchanged (5c);
   - questions: the /faqs/ accordion as the funnel guide restates it (traveller.css D6: 16 / 600 / 1.4
     navy question, 13px padding, 8px bleed, the 14px chevron mask down / up, hover teal-hover, the inset
     ring, the answer's wash panel), with the app card's 1px line between rows; group titles are the
     in-card label (STYLE-CHECKLIST §2: 13 / 700 / 0.16em uppercase mute);
   - What's new: label / value rows (14 mute date, 15 body text) on the contact rows' line; "See all"
     and "Show again" are the Pass picker's link-look button (7c .tl-pass-cancel);
   - Still stuck: For agents' launch card (for-agents.css: navy into teal-hover at 120deg, on-navy text,
     the "Primary on navy" white button with the white ring at 3px), at the app card's 14px radius.
   Scope: .tl-agent-app .tl-help (0,2,0)+. No !important, tokens only. The welcome player is restyled
   in the welcome video section at the end of this file (:is(.tl-welcome, .tl-help)). */
.tl-agent-app .tl-help {
	--tl-help-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 9 7 7 7-7'/%3E%3C/svg%3E"); /* = traveller.css --tl-guide-i-chevron (the /faqs/ chevron) */
	max-width: 1184px;
}
.tl-agent-app .tl-help .tl-page-head { margin-bottom: 24px; } /* Profile's head (5d) */
/* Section anchors land under the sticky top bar (76px, 64 under 900), with 16px of air. */
.tl-agent-app .tl-help :is(.tl-help-card, .tl-help-faq) { scroll-margin-top: calc(var(--tl-topbar-h) + 16px); }

/* Jump chips. */
.tl-agent-app .tl-help-jump { margin: 0 0 24px; }
.tl-agent-app .tl-help-jump-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tl-agent-app .tl-help-jump-item { min-width: 0; max-width: 100%; margin: 0; }
.tl-agent-app .tl-help-jump .tl-help-chip {
	position: relative;
	display: inline-flex;
	align-items: center;
	box-sizing: border-box;
	max-width: 100%;
	min-height: var(--tl-pass-pill-h);
	margin: 0;
	padding: 0 13px;
	border: 1px solid var(--tl-line);
	border-radius: var(--tl-radius-pill);
	background: var(--tl-white);
	color: var(--tl-navy);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.tl-agent-app .tl-help-jump .tl-help-chip::after { content: ""; position: absolute; inset: calc((var(--tl-pass-pill-h) - 44px) / 2 - 1px) -1px; } /* 44px to hit; rows 8px apart, so the hit areas just touch */
.tl-agent-app .tl-help-jump .tl-help-chip:is(:hover, :focus) { border-color: var(--tl-teal); background: var(--tl-teal-soft); color: var(--tl-teal-hover); }
.tl-agent-app .tl-help-jump .tl-help-chip:focus:not(:focus-visible) { outline: 0; }

/* Layout: one column in DOM order at every width (Trello 50, Daniel 15 Nov: the two-column split from 1200
   is gone). The two .tl-help-col wrappers stack in the layout's 20px grid gap, and each column's cards sit
   20px apart, so the last left card and the first right card are 20px apart like every other pair.
   The 860px cap and the sticky chip row are in the "from 768" block after the phone rules below. */
.tl-agent-app .tl-help-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.tl-agent-app .tl-help-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* Cards. */
.tl-agent-app .tl-help .tl-help-card { min-width: 0; margin: 0; padding: 24px 28px; }
.tl-agent-app .tl-help-card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px; }
.tl-agent-app .tl-help-card-head > .tl-help-card-title { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.tl-agent-app .tl-help-card-meta { flex: none; color: var(--tl-mute); font-size: 14px; line-height: 1.5; }
.tl-agent-app .tl-help-card > * + * { margin-top: 16px; }
.tl-agent-app .tl-help-card > .tl-help-card-head + .tl-help-card-intro { margin-top: 4px; }
.tl-agent-app .tl-help-card-intro { max-width: 40em; color: var(--tl-body); font-size: 16px; line-height: 1.5; }

/* Video: the player fills the card's width (the look is the welcome section's, end of file). */
.tl-agent-app .tl-help-video { min-width: 0; }

/* Getting started. */
.tl-agent-app .tl-help-steps { padding: 0; list-style: none; }
.tl-agent-app .tl-help-step { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 12px; margin: 0; padding: 14px 0; }
.tl-agent-app .tl-help-step:first-child { padding-top: 0; }
.tl-agent-app .tl-help-step:last-child { padding-bottom: 0; }
.tl-agent-app .tl-help-step + .tl-help-step { border-top: 1px solid var(--tl-line); }
/* 24px disc on the title's first line (16px x 1.4 = 22.4px: 1px up). */
.tl-agent-app .tl-help-step-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	margin-top: -1px;
	border-radius: 50%;
	background: var(--tl-teal-soft);
	color: var(--tl-teal-hover);
}
.tl-agent-app .tl-help-step.is-done .tl-help-step-mark { background: var(--tl-teal); color: var(--tl-white); }
.tl-agent-app .tl-help-step-mark .tl-icon { width: 14px; height: 14px; stroke-width: 3; }
.tl-agent-app .tl-help-step-num { font-size: 13px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.tl-agent-app .tl-help-step-body { min-width: 0; }
.tl-agent-app .tl-help-step-title { color: var(--tl-navy); font-size: 16px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.tl-agent-app .tl-help-step-text { margin-top: 2px; color: var(--tl-body); font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
/* 4 of 4: one line and "Show again". */
.tl-agent-app .tl-help-card > .tl-help-start-done { margin-top: 12px; color: var(--tl-body); font-size: 16px; line-height: 1.5; }
.tl-agent-app .tl-help-card > .tl-help-start-more { margin-top: 4px; }
.tl-agent-app .tl-help-start-more > .tl-help-steps { margin-top: 12px; }
.tl-agent-app .tl-help .tl-help-start-toggle { display: inline-flex; align-items: center; margin-left: -12px; list-style: none; }
.tl-agent-app .tl-help .tl-help-start-toggle::-webkit-details-marker { display: none; }
.tl-agent-app .tl-help .tl-help-start-toggle::marker { content: ""; }

/* Statuses: one row per status, the label column as wide as the widest label (subgrid); stacked when
   the card is narrow (the card is the size container). */
.tl-agent-app .tl-help-card--statuses { container-type: inline-size; }
.tl-agent-app .tl-help-statuses { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 20px; margin-bottom: 0; }
.tl-agent-app .tl-help-status { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: baseline; padding: 12px 0; }
.tl-agent-app .tl-help-status:first-child { padding-top: 0; }
.tl-agent-app .tl-help-status:last-child { padding-bottom: 0; }
.tl-agent-app .tl-help-status + .tl-help-status { border-top: 1px solid var(--tl-line); }
.tl-agent-app .tl-help-status-name { margin: 0; line-height: 1; }
.tl-agent-app .tl-help-status-name .tl-lead-status { margin: 0; vertical-align: baseline; }
.tl-agent-app .tl-help-status-text { min-width: 0; margin: 0; color: var(--tl-body); font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.tl-agent-app .tl-help :is(.tl-help-status-text, .tl-help-statuses-tip, .tl-help-statuses-why) strong { color: var(--tl-navy); font-weight: 700; }
@container (max-width: 459px) {
	.tl-agent-app .tl-help-statuses { display: block; }
	.tl-agent-app .tl-help-status { display: block; }
	.tl-agent-app .tl-help-status-text { margin-top: 6px; }
}
.tl-agent-app .tl-help-card > .tl-help-statuses + .tl-help-statuses-tip { padding-top: 12px; border-top: 1px solid var(--tl-line); }
.tl-agent-app .tl-help-statuses-tip { color: var(--tl-body); font-size: 15px; line-height: 1.5; }
.tl-agent-app .tl-help-card > .tl-help-statuses-why { margin-top: 12px; padding: 14px 18px; border: 1px solid var(--tl-line); border-radius: 12px; background: var(--tl-wash); color: var(--tl-body); font-size: 15px; line-height: 1.5; }

/* Quick messages. */
.tl-agent-app .tl-help-msgs { display: flex; flex-direction: column; gap: 12px; }
.tl-agent-app .tl-help-msg { min-width: 0; padding: 14px 16px 16px; border: 1px solid var(--tl-line); border-radius: 12px; background: var(--tl-white); }
.tl-agent-app .tl-help-msg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tl-agent-app .tl-help-msg-title { min-width: 0; margin: 0; color: var(--tl-navy); font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.tl-agent-app .tl-help-msg .tl-copy-btn { flex: none; }
.tl-agent-app .tl-help-msg-subject { display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; margin: 8px 0 0; padding: 0 0 10px; border-bottom: 1px solid var(--tl-line); color: var(--tl-body); font-size: 15px; line-height: 1.5; }
.tl-agent-app .tl-help-msg-subject-label { color: var(--tl-navy); font-weight: 600; }
.tl-agent-app .tl-help-msg-subject-text { flex: 1 1 8em; min-width: 0; overflow-wrap: anywhere; }
.tl-agent-app .tl-help-msg-subject .tl-copy-btn { margin-left: auto; }
.tl-agent-app .tl-help-msg-body { margin-top: 8px; color: var(--tl-body); font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.tl-agent-app .tl-help-msg-subject + .tl-help-msg-body { margin-top: 10px; }
.tl-agent-app .tl-help-msg-p + .tl-help-msg-p { margin-top: 0.6em; }
.tl-agent-app .tl-help-card > .tl-copy-status { margin: 0; } /* the live region (screen-reader-text) takes no space */

/* Questions. */
.tl-agent-app .tl-help-faq-group { min-width: 0; }
.tl-agent-app .tl-help-card > .tl-help-faq-group + .tl-help-faq-group { margin-top: 24px; }
.tl-agent-app .tl-help-faq-group-title { margin: 0 0 4px; color: var(--tl-mute); font-family: inherit; font-size: 13px; font-weight: 700; line-height: 1.4; letter-spacing: 0.16em; text-transform: uppercase; }
.tl-agent-app .tl-help-faq { margin: 0; border-top: 1px solid var(--tl-line); }
.tl-agent-app .tl-help-faq:last-child { border-bottom: 1px solid var(--tl-line); }
.tl-agent-app .tl-help-faq-q {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	min-height: 44px;
	margin: 0 -8px;
	padding: 13px 8px;
	border-radius: 8px;
	color: var(--tl-navy);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	list-style: none;
	cursor: pointer;
	transition: none; /* no motion on open or hover (the /faqs/ rule) */
}
.tl-agent-app .tl-help-faq-q::-webkit-details-marker { display: none; }
.tl-agent-app .tl-help-faq-q::marker { content: ""; }
.tl-agent-app .tl-help-faq-q-text { min-width: 0; overflow-wrap: anywhere; }
.tl-agent-app .tl-help-faq-icon {
	flex: none;
	width: 14px;
	height: 14px;
	margin-top: calc((1.4em - 14px) / 2); /* on the first line */
	background-color: currentColor;
	-webkit-mask: var(--tl-help-chevron) center / contain no-repeat;
	mask: var(--tl-help-chevron) center / contain no-repeat;
}
.tl-agent-app .tl-help-faq[open] > .tl-help-faq-q .tl-help-faq-icon { transform: rotate(180deg); }
.tl-agent-app .tl-help-faq-q:hover { color: var(--tl-teal-hover); }
.tl-agent-app .tl-help .tl-help-faq-q:focus-visible { outline-offset: -2px; }
.tl-agent-app .tl-help-faq-a { margin: 0 -16px 16px; padding: 14px 16px 16px; border-radius: 8px; background: var(--tl-wash); color: var(--tl-body); font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.tl-agent-app .tl-help-faq-a > * + * { margin-top: 0.75em; }
.tl-agent-app .tl-help-faq-a ul { padding-left: 20px; list-style: disc; }
.tl-agent-app .tl-help-faq-a ol { padding-left: 20px; list-style: decimal; }
.tl-agent-app .tl-help-faq-a li + li { margin-top: 4px; }
.tl-agent-app .tl-help-faq-a strong { color: var(--tl-navy); font-weight: 700; }

/* What's new. */
.tl-agent-app .tl-help-news-list { padding: 0; list-style: none; }
.tl-agent-app .tl-help-news-item { display: grid; grid-template-columns: 4.25em minmax(0, 1fr); column-gap: 12px; align-items: baseline; margin: 0; padding: 10px 0; }
.tl-agent-app .tl-help-news-item:first-child { padding-top: 0; }
.tl-agent-app .tl-help-news-item:not(:first-child) { border-top: 1px solid var(--tl-line); }
.tl-agent-app .tl-help-news-date { color: var(--tl-mute); font-size: 14px; line-height: 1.5; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl-agent-app .tl-help-news-text { min-width: 0; color: var(--tl-body); font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.tl-agent-app .tl-help-card > .tl-help-news-toggle { margin: 4px 0 -8px -12px; }

/* "Show again" and "See all": 7c's link-look button (.tl-pass-cancel), shared rules in 7c. */
.tl-agent-app .tl-help .tl-help-news-toggle[hidden] { display: none; }

/* Still stuck? (no .tl-card: its own box). */
.tl-agent-app .tl-help .tl-help-card--contact {
	padding: 24px 28px;
	border-radius: var(--tl-radius-card);
	background: var(--tl-navy) linear-gradient(120deg, var(--tl-navy) 35%, var(--tl-teal-hover) 100%);
	color: var(--tl-on-navy-text);
}
.tl-agent-app .tl-help-card--contact .tl-help-card-title { margin: 0; color: var(--tl-white); font-size: 22px; font-weight: 700; line-height: 1.3; }
.tl-agent-app .tl-help-card--contact > .tl-help-card-title + * { margin-top: 4px; }
.tl-agent-app .tl-help-contact-text { color: var(--tl-on-navy-text); font-size: 16px; line-height: 1.5; }
.tl-agent-app .tl-help-card--contact > .tl-help-contact-btn { margin-top: 16px; }
.tl-agent-app .tl-help .tl-help-contact-btn { border-color: var(--tl-white); background: var(--tl-white); color: var(--tl-navy); }
.tl-agent-app .tl-help .tl-help-contact-btn:is(:hover, :focus) { border-color: var(--tl-white); background: var(--tl-white); color: var(--tl-navy); }
.tl-agent-app .tl-help .tl-help-contact-btn:hover { border-color: var(--tl-on-navy-text); background: var(--tl-on-navy-text); }
.tl-agent-app .tl-help .tl-help-contact-btn:focus-visible { outline-color: var(--tl-white); outline-offset: 3px; } /* §10: the white ring on navy */

@media (max-width: 899px) {
	.tl-agent-app .tl-help-card-head > .tl-help-card-title,
	.tl-agent-app .tl-help-card--contact .tl-help-card-title { font-size: 19px; } /* the app's phone card title */
	.tl-agent-app .tl-help :is(.tl-help-card, .tl-help-card--contact) { padding: 18px 16px; }
	.tl-agent-app .tl-help .tl-help-faq-a { margin-right: -10px; margin-left: -10px; padding-right: 10px; padding-left: 10px; }
	.tl-agent-app .tl-help :is(.tl-help-card, .tl-help-faq) { scroll-margin-top: 80px; } /* the 64px phone bar + 16 */
}
@media (max-width: 767px) {
	.tl-agent-app .tl-help .tl-help-contact-btn { width: 100%; } /* primary buttons full width on phones (§7) */
}
@media (max-width: 599px) {
	.tl-agent-app .tl-help-msg { padding: 12px 14px 14px; }
}

/* Tablet and desktop (Trello 50, mock Images/agent-help-single-column-mockup.png). Nothing here reaches
   phones: every rule is inside min-width 768, and it sits after the max-width 899 block so the
   scroll-margin-top below wins at 768-899 by order (both (0,3,0)).
   - One column capped at 860px, the .tl-profile column of Profile / Specialties / Account (Daniel 15 Nov;
     the mock's 800 is replaced), left-aligned under the "Help" title: head, chips and cards share the
     main column's left edge, and the cards' right edge is those pages' right edge.
   - The chip row sticks under the top bar. The bar is position: sticky; top: 0 at every width (section 4),
     76px tall from 900 (--tl-topbar-h), 64px under 900 (section 7 sets the height, not the variable), so
     --tl-help-stick-top is 76 / 64. White like the page (body.tl-agent-app-body), 12px of air above and
     below the chips; the -12px top margin keeps the resting position exactly where it was (title to chips
     24px, chips to the first card 24px). z-index 5: over the player's controls (z 1-3), under the bar (20).
   - Sections land under the stuck row: bar + row + 16px. --tl-help-jump-h is the row's height: two rows
     (12 + 36 + 8 + 36 + 12 = 104) by default, one row (60) from 1200, where the list is 837-860px and the
     seven chips take 829. Between those (about 861-899 and 1192-1199) the chips can fit on one row while 104 is
     used: the heading lands 44px lower, never under the row. agent-help.js may set the variable on
     .tl-help from the nav's live offsetHeight to be exact.
   - Current chip (agent-help.js puts .is-current + aria-current="location" on it): the inbox status chip's
     current look (7d .tl-status-chip.is-current: teal-soft, a 2px teal edge, teal-hover text), the agent
     app's only selected-pill style. The mock's filled teal is flagged to Daniel (existing pattern wins).
     Hover on it goes navy, as hover on teal-soft does everywhere (QA03); focus is the shared 2px ring. */
@media (min-width: 768px) {
	.tl-agent-app .tl-help {
		--tl-help-stick-top: var(--tl-topbar-h);
		--tl-help-jump-h: 104px;
		max-width: 860px; /* = .tl-profile (5d), the Profile / Specialties / Account column (Daniel 15 Nov) */
	}
	.tl-agent-app .tl-help .tl-help-jump {
		position: sticky;
		top: var(--tl-help-stick-top);
		z-index: 5;
		margin: -12px 0 12px;
		padding: 12px 0;
		background: var(--tl-white);
	}
	.tl-agent-app .tl-help :is(.tl-help-card, .tl-help-faq) { scroll-margin-top: calc(var(--tl-help-stick-top) + var(--tl-help-jump-h) + 16px); }
	.tl-agent-app .tl-help-jump .tl-help-chip.is-current {
		border-color: var(--tl-teal);
		background: var(--tl-teal-soft);
		box-shadow: inset 0 0 0 1px var(--tl-teal);
		color: var(--tl-teal-hover);
	}
	.tl-agent-app .tl-help-jump .tl-help-chip.is-current:hover { color: var(--tl-navy); }
}
@media (min-width: 768px) and (max-width: 899px) {
	.tl-agent-app .tl-help { --tl-help-stick-top: 64px; } /* the phone bar's height (section 7) */
}
@media (min-width: 1200px) {
	.tl-agent-app .tl-help { --tl-help-jump-h: 60px; } /* one row: 12 + 36 + 12. The chips are 829px; the list is 837 at 1200 (measured), 860 from ~1225 */
}

/* "?" links into Help (a.tl-help-q > svg.tl-icon-help, icon only, new tab): the status form (lead page
   panel and inbox sheet) and after both Remove blocks. A 20px teal icon in a 24px box, 44px to hit
   (::after), the shared 2px teal ring (round). */
.tl-agent-app .tl-help-q {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	color: var(--tl-teal);
	text-decoration: none;
	vertical-align: middle;
	transition: color 0.15s ease;
}
.tl-agent-app .tl-help-q::after { content: ""; position: absolute; inset: -10px; }
.tl-agent-app .tl-help-q .tl-icon { width: 20px; height: 20px; }
.tl-agent-app .tl-help-q:hover { color: var(--tl-teal-hover); }
.tl-agent-app .tl-help-q:focus:not(:focus-visible) { outline: 0; }
/* Status form: its own line, at the right above the options; its 44px hit area overlaps the gaps. */
.tl-agent-app .tl-lead-status-help { display: flex; justify-content: flex-end; margin: -8px 0 4px; line-height: 0; }
/* Remove blocks: the "?" sits on the link's line, after "Remove this lead" (as the mock's "Status (?)"). The help
   line is floated (full width) so the "?", which follows it in the DOM, flows back onto the link's line;
   a float, so the block's display: none at each width stays as 7h sets it. Tab order is link, then "?"; the
   link's aria-describedby still reads the paragraph alone. */
.tl-agent-app .tl-lead-remove:has(> .tl-help-q) > .tl-lead-remove-help { float: left; width: 100%; }
.tl-agent-app .tl-lead-remove > .tl-help-q { margin: 0 0 0 6px; vertical-align: middle; }
.tl-agent-app .tl-lead-remove:has(> .tl-help-q)::after { content: ""; display: block; clear: both; }
/* end 7j */

/* ---- 7k. "How long are you thinking?" on /post/ (Trello 45; mock Images/trip-length-question-mockup.png) ----
   Step 2, under Month / Flexibility (rough) or the "That's fine…" note (not sure); hidden for exact dates:
     div.tl-tf-cond.tl-tf-cond--length > fieldset.tl-fieldset.tl-fieldset--length > legend.tl-label
       (+ span.tl-optional) + div.tl-options.tl-options--chips > label.tl-option.tl-option--chips[.is-checked]
       > input.tl-option-input + span.tl-option-label  (six chips)
     + div.tl-field--trip-nights[data-tl-nights-box][hidden] > div.tl-counter-row >
       div.tl-counter.tl-counter--nights (the Adults stepper) + span.tl-counter-suffix "nights"
   The chips ARE the step's budget chips (traveller.css A6 .tl-option--chips: wash fill, line border, pill,
   44px, 15px/500, chosen = teal-soft + teal border + 700, the hover and focus ring): this block only lays
   them out in equal columns: 2 on phones (the mock), 3 from 768 (Daniel 15 Nov: 2 rows of 3). 768 is the
   form's phone/desktop breakpoint (traveller.css 767/768: card, stepper, step padding). Every chip is 1fr
   wide and its row is the height of the tallest, so all six are the same size at every width. Gaps are
   10px both ways at every width, the chip group's own gap (budget and contact chips): with 3 columns the
   inner edges can't meet the 2-column .tl-field-row above whatever the gap, and the outer edges line up
   with any gap, so the old 601+ 24px column gap (and its 601 breakpoint) is gone. Side padding drops
   from 18px to 8px and the label is centred: at 320 a column is
   139px (123px inside) and the longest label, "Set exact nights", is 115px (117px chosen, at 700), so
   every label is one line from 320 up. Not nowrap: under 320 a label wraps inside its chip rather than
   running past the border. The rest is the existing pattern, which wins over the mock: 24px above the
   block (the step body), 16px between the chips and the nights box (.tl-tf-cond), 44px chips (mock ~48).
   The nights box: the Adults counter unchanged (48px, 10px radius, line border, 48px buttons, 18px/700
   number; 220px wide from 601 as Adults; on phones full width as Adults, less the suffix), then
   "nights" 12px after it, centred on the row, in the 16px body text. The suffix keeps one width for
   "night" and "nights", so the counter never changes size as the number changes. Opening the box adds
   height under the chips only; the chips never move. traveller.css loads after this file, hence the
   extra scope (.tl-fieldset--length / .tl-field--trip-nights) rather than relying on order. */
.tl-tf-page .tl-fieldset--length .tl-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 768px) {
	.tl-tf-page .tl-fieldset--length .tl-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.tl-tf-page .tl-fieldset--length .tl-option { display: flex; justify-content: center; min-width: 0; padding: 0 8px; text-align: center; }
.tl-tf-page .tl-fieldset--length .tl-option-label { min-width: 0; }
.tl-tf-page .tl-field--trip-nights .tl-counter-row { display: flex; align-items: center; gap: 12px; }
.tl-tf-page .tl-field--trip-nights .tl-counter { flex: 1 1 auto; min-width: 0; }
.tl-tf-page .tl-field--trip-nights .tl-counter-suffix { flex: none; min-width: 3.25em; color: var(--tl-body); font-size: 16px; line-height: 1.35; }
.tl-tf-page .tl-field--trip-nights.has-error .tl-counter { border-color: var(--tl-danger); }
/* end 7k */






/* ---- 8. Slim status layout (templates/agent-slim.php) ----------------------
   Logo-only header, centred status panel, one-line footer: locked join mock panel 6
   "Pending review". The tl-status* classes are generic: slice 8 payment-failed reuses
   them with its own .tl-status-icon-{state} colour. */
.tl-slim {
	/* Header + footer frame = the marketing header's (marketing.css M2) and footer's (M10),
	   so the logo, the right-hand item, the logo size and the bar height don't move when you
	   go from /faqs/ to /login/, /join/, /post/, the tracker or any other slim page (Daniel,
	   2 Oct; replaces 0.22.26's 1120 alignment and /post/'s 48px). M2's tokens live on
	   header.tl-site-header under body.tl-marketing-body and don't reach these pages, so its
	   values are REPEATED here: change both together.
	     M2 bar: max-width 1248px, centred; sides --tl-hdr-pad-x 24 / 20 (<=1279) / 16
	     (compact, <=900) / 12 (<=319); logo 48 / 40 (<=1279) / 36 (901-1179) / 40 (<=900)
	     / 34 (<=380) / 28 (<=319); min-height 88 / 72 (<=900) / none (<=319, wraps);
	     12px top and bottom (8px at <=319); 1px --tl-line border under the bar.
	   The slim header is one full-bleed element (no inner bar), so the bar's centring is
	   folded into the side padding: (100% - 1248px) / 2, never under 0, plus the pad. It
	   resolves in each rule's padding, so 100% is the slim layout's width. The marketing
	   bar's JS compact state (enlarged text) has no slim equivalent: these pages have no
	   nav to run out of room, so only the <=900 media step applies. The footer uses the
	   same edge, which is M10's (--tl-ftr-pad-x follows the same steps). */
	--tl-slim-pad-x: 24px;
	--tl-slim-logo-h: 48px;
	--tl-slim-bar-h: 88px;
	--tl-slim-edge: calc(max(0px, (100% - 1248px) / 2) + var(--tl-slim-pad-x));
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	background: var(--tl-white);
	font-family: var(--tl-font);
	color: var(--tl-body);
}
@media (max-width: 1359px) {
	.tl-slim { --tl-slim-pad-x: 20px; --tl-slim-logo-h: 40px; }
}
@media (max-width: 1179px) and (min-width: 901px) {
	.tl-slim { --tl-slim-logo-h: 36px; }
}
@media (max-width: 900px) {
	.tl-slim { --tl-slim-pad-x: 16px; --tl-slim-logo-h: 40px; --tl-slim-bar-h: 72px; }
}
@media (max-width: 380px) {
	.tl-slim { --tl-slim-logo-h: 34px; }
}
/* The bar box is M2's: min-height (border-box) is the bar plus the 1px rule under it. The
   rule is transparent here and coloured by the pages that draw it (traveller.css
   .tl-traveller-header, and every slim header at <=767 below), so a header without the
   line (pending, at 768+) still has the same height and logo position. */
.tl-slim .tl-slim-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: calc(var(--tl-slim-bar-h) + 1px);
	padding: 12px var(--tl-slim-edge);
	border-bottom: 1px solid transparent;
}
.tl-slim .tl-slim-header .tl-agent-logo-img { height: var(--tl-slim-logo-h); }
.tl-slim .tl-agent-logo { display: flex; flex-direction: column; justify-content: center; line-height: 1; color: var(--tl-navy); }
/* "Log out" = every other slim header's right-hand link (traveller.css B1, chunk 5) and the main nav
   link (STYLE-CHECKLIST §8 "Header links"): navy 15 / 600 / 1.2, no underline, 44px tall; hover and
   focus teal-hover with a 2px underline at 6px; the 2px teal ring (section 3). No outline box (A11,
   5 Oct; was a 1px --tl-line box with a wash hover). */
.tl-slim .tl-slim-logout {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0;
	border-radius: var(--tl-radius-btn);
	color: var(--tl-navy);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}
.tl-slim .tl-slim-logout:is(:hover, :focus) { color: var(--tl-teal-hover); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.tl-slim .tl-slim-main {
	flex: 1;
	display: flex;
	justify-content: center;
	padding: 56px 16px 72px;
	background: var(--tl-white); /* join mock panel 6: white page, wash card */
}

/* Status panel. */
.tl-slim .tl-status {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: 600px;
	text-align: center;
}
.tl-slim .tl-status-icon {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 104px;
	height: 104px;
	margin: 12px 0 32px;
	border-radius: 50%;
	background: var(--tl-teal-soft);
	color: var(--tl-teal-hover);
}
.tl-slim .tl-status-icon .tl-icon { width: 52px; height: 52px; stroke-width: 2; }
/* The mock's short "rays" either side of the circle, drawn as a mask so the colour
   follows the state. */
.tl-slim .tl-status-icon::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 168px;
	height: 120px;
	transform: translate(-50%, -50%);
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 168 120' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M20 22l10 9M8 54h13M148 22l-10 9M160 54h-13'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 168 120' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M20 22l10 9M8 54h13M148 22l-10 9M160 54h-13'/%3E%3C/svg%3E") center / contain no-repeat;
	pointer-events: none;
}
.tl-slim .tl-status-icon-pending { background: var(--tl-amber-soft); color: var(--tl-amber); }
.tl-slim .tl-status-title {
	font-size: 34px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--tl-navy);
}
.tl-slim .tl-status-text {
	max-width: 480px;
	margin: 14px auto 0;
	font-size: 18px;
	line-height: 1.55;
	color: var(--tl-body);
}

/* Info card inside the panel ("We'll be in touch"). */
.tl-slim .tl-status-card {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	width: 100%;
	margin: 36px 0 0;
	padding: 22px 24px;
	border: 1px solid var(--tl-line);
	border-radius: var(--tl-radius-card);
	background: var(--tl-wash);
	text-align: left;
}
.tl-slim .tl-status-card-icon { display: flex; flex: none; padding-top: 2px; color: var(--tl-teal); }
.tl-slim .tl-status-card-icon .tl-icon { width: 34px; height: 34px; stroke-width: 1.6; }
.tl-slim .tl-status-card-body { min-width: 0; }
.tl-slim .tl-status-card-title { font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--tl-navy); }
.tl-slim .tl-status-card-text { margin-top: 6px; font-size: 16px; line-height: 1.55; color: var(--tl-body); }
.tl-slim .tl-pending-email { font-weight: 600; color: var(--tl-navy); } /* wraps as .tl-email (3, 80e) */
/* "contact us" (in the sentence): the inline link (STYLE-CHECKLIST §8): teal-hover 600, 1px underline
   at 3px; hover navy, 2px; colour fade only; the shared ring (section 3). A11, 5 Oct (was 2px offset).
   "Back to home" (a.tl-pending-home-link) is the shared back link, section 7b. */
.tl-slim .tl-pending-contact-link {
	color: var(--tl-teal-hover);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color 0.15s ease;
}
.tl-slim .tl-pending-contact-link:hover { color: var(--tl-navy); text-decoration-thickness: 2px; }
/* VIS-06 (1 Oct): "While you wait" is a small heading over two clear, full-width links
   (div.tl-pending-next > h2.tl-pending-next-title + ul.tl-pending-next-list > li > a.tl-pending-next-link),
   each a quiet outlined row with a chevron: the same width as the status card, left-aligned,
   48px tall. "Back to home" (p.tl-status-actions.tl-pending-home > a.tl-pending-home-link) is a
   plain text link below, lower emphasis than the two actions. */
.tl-slim .tl-pending-next { width: 100%; margin: 28px 0 0; text-align: left; }
.tl-slim .tl-pending-next-title { margin: 0 0 10px; font-size: 16px; font-weight: 700; line-height: 1.35; color: var(--tl-navy); }
.tl-slim .tl-pending-next-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tl-slim .tl-pending-next-item { margin: 0; }
.tl-slim .tl-pending-next-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 48px;
	padding: 8px 16px;
	border: 1px solid var(--tl-line);
	border-radius: var(--tl-radius-control);
	background: var(--tl-white);
	color: var(--tl-teal);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}
.tl-slim .tl-pending-next-link::after {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	margin-right: 4px;
	border: solid currentColor;
	border-width: 2px 2px 0 0;
	transform: rotate(45deg);
}
.tl-slim .tl-pending-next-link:hover { border-color: var(--tl-teal); background: var(--tl-wash); color: var(--tl-teal-hover); }
.tl-slim .tl-pending-next-link:focus-visible { outline: 2px solid var(--tl-teal); outline-offset: 2px; }
.tl-slim .tl-pending-home { margin-top: 20px; }
.tl-slim .tl-pending-home-link { font-size: 15px; } /* the rest: the shared back link, section 7b */
@media (prefers-reduced-motion: reduce) {
	.tl-slim .tl-pending-next-link { transition: none; }
}

.tl-slim .tl-status-actions { display: flex; justify-content: center; width: 100%; margin: 32px 0 0; }
.tl-slim .tl-status-actions .tl-btn { min-width: 240px; }

/* Footer. */
.tl-slim .tl-slim-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 24px;
	padding: 16px var(--tl-slim-edge);
	border-top: 1px solid var(--tl-line);
	background: var(--tl-white);
	font-size: 14px;
	color: var(--tl-mute);
}
.tl-slim .tl-slim-footer-links { display: flex; gap: 8px; }
.tl-slim .tl-slim-footer-link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 8px;
	color: var(--tl-mute);
}
.tl-slim .tl-slim-footer-link:hover { color: var(--tl-teal); text-decoration: underline; }
/* Copyright small print (traveller-footer.php + agent-slim.php); marketing.css M10's
   .tl-site-footer__copy matches it. Decision #60: " · ABN …" never splits; at narrow widths
   it drops to its own line whole. */
.tl-slim .tl-slim-copyright { margin: 0; font-size: 14px; line-height: 1.5; color: var(--tl-mute); }
.tl-slim .tl-slim-copyright .tl-footer-abn { white-space: nowrap; }

@media (max-width: 767px) {
	.tl-slim .tl-slim-header { border-bottom-color: var(--tl-line); }
	.tl-slim .tl-slim-main { padding: 40px 16px 48px; }
	.tl-slim .tl-status-icon { width: 88px; height: 88px; margin-bottom: 28px; }
	.tl-slim .tl-status-icon .tl-icon { width: 44px; height: 44px; }
	.tl-slim .tl-status-icon::before { width: 148px; height: 104px; }
	.tl-slim .tl-status-title { font-size: 28px; }
	.tl-slim .tl-status-text { font-size: 17px; }
	.tl-slim .tl-status-card { gap: 14px; margin-top: 28px; padding: 18px 16px; }
	.tl-slim .tl-status-card-icon .tl-icon { width: 30px; height: 30px; }
	.tl-slim .tl-status-actions .tl-btn { width: 100%; min-width: 0; }
	.tl-slim .tl-slim-footer { flex-direction: column; justify-content: center; padding: 12px 16px 16px; text-align: center; }
	/* 0.18.14 (200% text on a phone): the links wrap, centred, instead of running ~45px
	   past the edge in one row (they did only below 320 before). At normal sizes they
	   fit on one line, so nothing moves. */
	.tl-slim .tl-slim-footer-links { flex-wrap: wrap; justify-content: center; max-width: 100%; }
	.tl-slim .tl-slim-footer > * { max-width: 100%; overflow-wrap: break-word; }
}
/* Large text: below 320px layout width, only reachable with zoom (200% on a phone = 160-215).
   The logo img's max-width:100% let the flex row squash it (to ~28px wide at 160,
   distorted) next to the help link, and the three footer links (no wrap) ran ~60px past
   the edge. The header may wrap (the help link / log out drops to a right-aligned second
   row), the logo keeps its ratio at 28px, and the footer links wrap. */
@media (max-width: 319px) {
	/* M2 <=319: 28px logo, 12px sides, 8px top and bottom, wraps. M2's one-row bar is 65px
	   (its 48px menu button + 16 + the 1px rule); the slim bar has no 48px item, so that is
	   its min-height here, keeping the logo at the same y. */
	.tl-slim { --tl-slim-pad-x: 12px; --tl-slim-logo-h: 28px; }
	.tl-slim .tl-slim-header { flex-wrap: wrap; gap: 8px; min-height: calc(48px + 16px + 1px); padding: 8px 12px; }
	.tl-slim .tl-agent-logo { flex: none; }
	.tl-slim .tl-slim-header .tl-agent-logo-img { max-width: none; }
	.tl-slim .tl-slim-header > :last-child:not(.tl-agent-logo) { margin-left: auto; }
	.tl-slim .tl-slim-footer { padding: 12px 12px 16px; }
	.tl-slim .tl-slim-footer-links { gap: 0 4px; }
}

/* ---- 9. Astra scroll-to-top button ------------------------------------------
   Astra prints #ast-scroll-top via wp_footer on every page, ours included. Brand it,
   and on the agent shell lift it above the mobile bottom tabs. Beats Astra's inline
   #ast-scroll-top{background-color:var(--ast-global-color-0)} by specificity. */
:is(body.tl-traveller-body, body.tl-traveller-form-body, body.tl-agent-app-body, body.tl-agent-slim-body, body.tl-utility-body, body.tl-marketing-body) #ast-scroll-top {
	border-radius: var(--tl-radius-btn);
	background-color: var(--tl-teal);
	color: var(--tl-white);
}
@media (max-width: 899px) {
	/* ux m5: on the agent shell under 900px the button still sat over content above the
	   bottom tabs, and the pages are short enough not to need it, so it is hidden there.
	   visibility (not display) because Astra's JS writes an inline display:block on
	   scroll, which would beat a stylesheet display:none without !important. */
	body.tl-agent-app-body #ast-scroll-top { visibility: hidden; pointer-events: none; }
}
/* Lifted clear of the footers (Daniel, 5 Oct). Astra's .ast-scroll-to-top-right puts it 30px
   off the bottom, 30 off the right (31px square), which at the foot of the page is over the
   footer's right-hand link:
   - Marketing from 900: the one-row footer (marketing.css M10, 32 / 44 / 32) has its links
     row 32-76px off the bottom, so the button goes to 84px, 8px above it. 768-899 keeps the
     0.22.80 two rows and Astra's 30 (the links end 69 off the bottom, above the button).
   - Slim footer from 768 (tracker, agent slim pages): the links are 16-60px off the bottom
     ("Agent log in" was under the button at 768-1200), so the same 84px. Not the agent About
     page below 900, where the fixed Call/Email bar sits at the bottom (not measured).
   Phones are unchanged. Keep 84 in step with marketing.css M10's footer padding. */
@media (min-width: 900px) {
	body.tl-marketing-body #ast-scroll-top { bottom: 117px; } /* Daniel, 5 Oct: fully above the footer's top line (84 straddled it). */
}
@media (min-width: 768px) {
	:is(body.tl-traveller-body, body.tl-agent-slim-body, body.tl-utility-body):not(.tl-agent-about-body) #ast-scroll-top { bottom: 84px; }
}
@media (min-width: 900px) {
	body.tl-agent-about-body #ast-scroll-top { bottom: 84px; }
}
/* Agent pages with the sticky .tl-savebar (Profile 5h, Specialties; Trello 44) from 900: under about
   1250 the bar's Save ran under the button (30px off the bottom, 30 off the right). The bar is 78px
   tall and 16px off the bottom while sticky, but once it settles at the end of the form it sits on
   .tl-agent-main's 64px padding-bottom (~1363), so its top is 64 + 78 = 142px off the bottom; the
   0.24.29x 106px cleared the sticky bar only and still covered the settled Save. Lifted 12px above
   the settled bar: 142 + 12 = 154. Keep in step with the bar's height and main's padding-bottom.
   Under 900 the button is hidden on the agent shell (above). */
@media (min-width: 900px) {
	body.tl-agent-app-body:is(.tl-section-profile, .tl-section-specialties) #ast-scroll-top { bottom: calc(154px + env(safe-area-inset-bottom, 0px)); }
	/* At 154 the button lands over the 2-3 lines straight above the settled bar. On Profile that is the
	   last card's border and padding; on Specialties it is the centred footnote (Specialties only), whose
	   lines ran under the button. The button overlaps the content column's right 25px (Astra: 31.5px
	   wide, 30 off the right; main's padding-right is 36), so the footnote is inset 40px on both sides
	   (centred, so both) to clear it. */
	body.tl-agent-app-body.tl-section-specialties .tl-agent-app .tl-form-footnote { padding-inline: 40px; }
}
/* Utility UM pages (join, login, reset): short forms, and join has its own step nav, so
   the button only covers the form. Hidden at every width; legal pages keep it (branded)
   for long reading. visibility, not display: Astra's JS writes an inline display:block. */
body.tl-utility-body--um #ast-scroll-top { visibility: hidden; pointer-events: none; }

/* ---- QA06. Long unbroken text ------------------------------------------------------
   Travellers' notes and agents' names/agency/bio can be one unbroken string. Wrap
   anywhere and let grid/flex children shrink below min-content. */
.tl-agent-app :is(.tl-lead-head, .tl-lead-facts-col, .tl-lead-fact-value, .tl-lead-more-item, .tl-contact-value, .tl-account-card, .tl-account-logo-body, .tl-account-profile) { min-width: 0; }
.tl-agent-app :is(.tl-lead-fact-sub, .tl-lead-more-label, .tl-lead-admin-note, .tl-lead-contacted-note, .tl-account-card-text, .tl-account-profile-text) { min-width: 0; overflow-wrap: anywhere; }
.tl-slim :is(.tl-status-card-text, .tl-status-card-title) { overflow-wrap: anywhere; }
/* Profile extras step 3: the error summary and field errors quote example links ("e.g. https://www.linkedin.com/in/yourname"),
   one unbroken word that widened the page at 320 / 360 (the summary links). Agent app, so Account and Specialties too. */
.tl-agent-app :is(.tl-form-errors-item, .tl-field-error) { min-width: 0; overflow-wrap: anywhere; }
/* .tl-slim-main is a centring flex row: without this its child keeps min-width:auto and grows to the longest word. */
.tl-slim .tl-slim-main > * { min-width: 0; }

@media (prefers-reduced-motion: reduce) {
	.tl-agent-app *,
	.tl-slim *,
	.tl-app * { transition: none; }
}

/* ---- QA2-05: reduced motion on the forms (1 Oct) ----------------------------------------
   Under prefers-reduced-motion every transition in the form areas is 0s: the field skin (3b),
   .tl-btn, chips, option cards, the picker, and UM's inputs and our join buttons. Several of
   those rules outrank the per-file "* { transition: none }" backups (3b is (0,2,0), UM's input
   rule (0,4,2), .tl-join-btn (0,3,1)), so this one is lifted by body:not(#tl-rm), which matches
   every body (no element has that id) and adds an id's worth of specificity: (1,1,1). That
   beats all of them without !important. Durations and delays only; the properties and the end
   states stay. /post/ (.tl-tf-page), the homepage card (.tl-home-form), the agent app, /join/
   (.tl-join) and the other UM pages (body.tl-um-page .um). Decision #77: + /feedback/ (.tl-followup). */
@media (prefers-reduced-motion: reduce) {
	body:not(#tl-rm) :is(.tl-tf-page, .tl-home-form, .tl-funnel-form, .tl-agent-app, .tl-join, .tl-followup) *,
	body:not(#tl-rm) :is(.tl-tf-page, .tl-home-form, .tl-funnel-form, .tl-agent-app, .tl-join, .tl-followup) *::before,
	body:not(#tl-rm) :is(.tl-tf-page, .tl-home-form, .tl-funnel-form, .tl-agent-app, .tl-join, .tl-followup) *::after,
	body.tl-um-page:not(#tl-rm) .um *,
	body.tl-um-page:not(#tl-rm) .um *::before,
	body.tl-um-page:not(#tl-rm) .um *::after {
		transition-duration: 0s;
		transition-delay: 0s;
	}
}

/* ==========================================================================
   Agent welcome video modal (Trello 39; markup includes/welcome-video.php, dialog behaviour
   assets/agent-welcome.js). Printed from wp_footer, so it sits OUTSIDE .tl-agent-app: everything is
   scoped through .tl-welcome (named in the shared button and focus-ring rules, section 3).
   Existing pattern wins: the agent app's modal is the Pass picker (7c) and 5h's "Save your other
   changes first?" dialog: --tl-overlay behind, a white card with the card radius, 28px padding from
   768 (16px side padding on phones), the 22 / 700 navy sheet title, a 0.2s opacity fade (none with
   reduced motion), the page locked while open. The ✕ is the filter sheet's close (44px, no border,
   navy, teal-soft on hover, 10px radius); the actions are the Remove sheet's (a full-width button on
   phones, one button at the right from 768). The player IS the How it works player (M6p, restated
   below under .tl-how-player--welcome: teal play button, control pill, progress line; 16px radius,
   14 under 768), 16:9 and 1:1 on .is-square (the picker, under 768). Phones keep the centred card,
   not the Pass picker's bottom sheet: a deliberate exception (UX F3, Daniel 13 Nov 2026, docs/CSS.md).
   Fit: the dialog is at most 920px wide and the window less 48px tall (24px under 768); the player
   is at most the window height less the dialog's own chrome (title, actions, padding: 200px from
   768, 180px under), so the whole dialog, Close included, fits 1280 x 720, 1440 x 900, 390 x 844
   and 360 x 640 without scrolling. In a shorter window the box scrolls inside itself.
   z-index 100000: over the agent nav / bottom tabs (20), the 7c sheets (100-102) and Astra's header.
   ========================================================================== */
html.tl-welcome-open { overflow: hidden; background-color: var(--tl-overlay); } /* as 5h: the scrollbar gutter takes the overlay */
.tl-welcome {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	padding: 12px;
	animation: tl-pass-fade-in 0.2s ease-out;
}
.tl-welcome .tl-welcome-backdrop { position: absolute; inset: 0; background: var(--tl-overlay); }
.tl-welcome .tl-welcome-dialog {
	--tl-welcome-chrome: 180px;
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 920px;
	max-height: calc(100dvh - 24px);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 20px 16px 16px;
	border-radius: var(--tl-radius-card);
	background: var(--tl-white);
	color: var(--tl-body);
	font-family: inherit;
	text-align: left;
}
.tl-welcome .tl-welcome-dialog:focus { outline: none; } /* tabindex=-1, the fallback focus; its controls carry the rings */
/* The title leaves the ✕ its 44px (+ 8px). */
.tl-welcome .tl-welcome-dialog .tl-welcome-title { margin: 0 52px 16px 0; padding: 0; color: var(--tl-navy); font-family: inherit; font-size: 22px; font-weight: 700; line-height: 1.3; letter-spacing: normal; text-transform: none; overflow-wrap: anywhere; }
/* ✕: the filter sheet's close skin (button: (0,3,0) over Astra / Elementor's button rules, (0,4,0) states). */
.tl-welcome .tl-welcome-dialog .tl-welcome-x {
	position: absolute;
	top: 12px;
	right: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: transparent;
	box-shadow: none;
	color: var(--tl-navy);
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.tl-welcome .tl-welcome-dialog .tl-welcome-x .tl-icon { width: 22px; height: 22px; stroke-width: 2; }
.tl-welcome .tl-welcome-dialog .tl-welcome-x:hover { background: var(--tl-teal-soft); color: var(--tl-teal-hover); }
.tl-welcome .tl-welcome-dialog .tl-welcome-x:focus { background: transparent; color: var(--tl-navy); }
.tl-welcome .tl-welcome-dialog .tl-welcome-x:focus-visible { outline-offset: -2px; }
.tl-welcome .tl-welcome-dialog .tl-welcome-x:focus:not(:focus-visible) { outline: 0; }
/* ---- The player: the How it works player (marketing.css M6p), re-scoped (UX F5, Daniel 13 Nov 2026:
   "reuse the How it works player component, no new look"). Markup: div.tl-how-player.tl-how-player--welcome
   .tl-welcome-player[data-tl-how-player] (+ .is-square under 768) > video.tl-how-video.tl-welcome-video;
   assets/how-video.js (shared, unchanged) removes the native controls and builds button.tl-how-play,
   span.tl-how-spinner, div.tl-how-controls (.tl-how-btn--play|--mute|--cc|--fs) and div.tl-how-progress
   (> __fill), and sets is-enhanced is-started is-playing is-paused is-ended is-idle is-cc is-muted
   is-fullscreen is-loading is-error on the player. marketing.css doesn't load on agent pages, so M6p is
   restated here for this player only, the guide-video.css way (G2-G5: same values, its own scope). Every
   value is M6p's (the homepage reference), NOT the guide player's: 72px play button and spinner (56 under
   768), 28px triangle (22), 16px captions (14), the plain 2px-offset ring on the play button (the guide's
   white-spread ring is for its teal-sea poster), the full 40 / 44px pill (no G4f), no frame line.
   Radius (UX F4): 16px, 14px under 768 (STYLE-CHECKLIST 6, video players; the old 12px is retired).
   Differences from M6p, each forced by this player, not a look: the poster is the video's own poster
   attribute (the inline picker sets it), not a CSS --tl-how-poster, so the frame paints only the wash;
   the width follows the window height (the modal's fit); the spinner turns on tl-pe-spin (this file;
   the same 360deg turn as marketing.css tl-ai-spin, which isn't loaded here); and the no-JS ring also
   takes :focus-within (Tab into Chrome's native controls matches only :focus-within on the video,
   measured 13 Nov). Specificity: (0,2,0) on the player, (0,3,0) on its parts, (0,4,0)+ for states: over
   Astra's button rules ((0,1,1) at most) and the shared focus ring ((0,3,0), section 3). No !important.
   Trello 41: the same player on the agent Help page (div.tl-help, inside .tl-agent-app), so every rule is
   :is(.tl-welcome, .tl-help): :is() of single classes keeps each selector's specificity exactly as it was,
   and the modal's computed styles are unchanged (checked at 1440 / 1280 / 390 / 360, docs/CSS.md). Only the
   modal's fit (its width from the window height) stays on .tl-welcome; on Help the player is the card's
   width (16:9, 1:1 under 768 from the picker; 16px radius, 14 under 768). */
:is(.tl-welcome, .tl-help) .tl-how-player--welcome {
	--tl-how-glass: rgba(255, 255, 255, 0.9);
	--tl-how-track: rgba(255, 255, 255, 0.6);
	position: relative;
	isolation: isolate;
	overflow: hidden;
	box-sizing: border-box;
	width: 100%; /* the Help card's width; the modal's fit follows */
	margin: 0 auto;
	border-radius: 16px;
	background-color: var(--tl-wash);
	-webkit-tap-highlight-color: transparent;
}
/* The modal's fit (the window height less its chrome): the modal only. */
.tl-welcome .tl-how-player--welcome { width: min(100%, calc((100dvh - 24px - var(--tl-welcome-chrome)) * 16 / 9)); }
.tl-welcome .tl-how-player--welcome.is-square { width: min(100%, calc(100dvh - 24px - var(--tl-welcome-chrome))); }
:is(.tl-welcome, .tl-help) .tl-how-player--welcome .tl-how-video {
	display: block;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: inherit;
	background: transparent; /* the wash shows until the poster / first frame */
	box-shadow: none;
	object-fit: cover;
}
:is(.tl-welcome, .tl-help) .tl-how-player--welcome.is-square .tl-how-video { aspect-ratio: 1 / 1; }
:is(.tl-welcome, .tl-help) .tl-how-player--welcome.is-enhanced .tl-how-video { cursor: pointer; }
/* Focus. Enhanced, the video isn't focusable (the play button, pill and slider carry the rings). No JS:
   the native controls are, and the ring goes on the player (not clipped by its own overflow). */
:is(.tl-welcome, .tl-help) .tl-how-player--welcome .tl-how-video:focus { outline: 0; }
:is(.tl-welcome, .tl-help) .tl-how-player--welcome:not(.is-enhanced):has(> .tl-how-video:is(:focus-visible, :focus-within)) { outline: 2px solid var(--tl-teal); outline-offset: 2px; }
/* Enhanced: no native chrome (one rule each: an unknown ::-webkit pseudo drops a whole list in Firefox). */
:is(.tl-welcome, .tl-help) .tl-how-player--welcome.is-enhanced .tl-how-video::-webkit-media-controls { display: none; }
:is(.tl-welcome, .tl-help) .tl-how-player--welcome.is-enhanced .tl-how-video::-webkit-media-controls-overlay-play-button { display: none; }
:is(.tl-welcome, .tl-help) .tl-how-player--welcome.is-enhanced .tl-how-video::-webkit-media-controls-start-playback-button { display: none; }
:is(.tl-welcome, .tl-help) .tl-how-player--welcome.is-enhanced .tl-how-video::-webkit-media-controls-panel { display: none; }
/* Captions: navy on white 90%, the site font, 16px (14 under 768). */
:is(.tl-welcome, .tl-help) .tl-how-player--welcome .tl-how-video::cue {
	color: var(--tl-navy);
	background-color: var(--tl-how-glass);
	text-shadow: none;
	font-family: var(--tl-font);
	font-size: 16px;
	line-height: 1.4;
}
/* Once started, cues rise above the pill (12px inset + 48px pill + 4px). */
:is(.tl-welcome, .tl-help) .tl-how-player--welcome.is-enhanced.is-started:not(.is-ended) .tl-how-video::-webkit-media-text-track-container { transform: translateY(-64px); }
/* No JS: Chrome's native control layer is dark grey until a frame loads; transparent shows the poster. */
:is(.tl-welcome, .tl-help) .tl-how-player--welcome:not(.is-enhanced) .tl-how-video::-webkit-media-controls { background: transparent; }
:is(.tl-welcome, .tl-help) .tl-how-player--welcome:not(.is-enhanced) :is(.tl-how-play, .tl-how-controls, .tl-how-progress, .tl-how-spinner) { display: none; }
/* Big play / replay: 72px teal circle (56 under 768), white triangle, the pop shadow. */
:is(.tl-welcome, .tl-help) .tl-how-player--welcome .tl-how-play {
	position: absolute;
	z-index: 2;
	top: 50%;
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 72px;
	height: 72px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--tl-teal);
	box-shadow: var(--tl-shadow-pop);
	color: var(--tl-white);
	line-height: 1;
	cursor: pointer;
	transform: translate(-50%, -50%);
	transition: background-color 0.15s ease;
}
:is(.tl-welcome, .tl-help) .tl-how-player--welcome .tl-how-play:is(:hover, :focus, :active) { background: var(--tl-teal-hover); color: var(--tl-white); }
:is(.tl-welcome, .tl-help) .tl-how-player--welcome .tl-how-play:focus:not(:focus-visible) { outline: 0; }
:is(.tl-welcome, .tl-help) .tl-how-player--welcome .tl-how-play:focus-visible { outline: 2px solid var(--tl-teal); outline-offset: 2px; box-shadow: var(--tl-shadow-pop); }
:is(.tl-welcome, .tl-help) .tl-how-player--welcome .tl-how-play svg { display: block; flex: none; width: 28px; height: 28px; margin: 0; pointer-events: none; }
/* Started and not ended / errored: the big button goes; .is-error brings it back as the retry. */
:is(.tl-welcome, .tl-help) .tl-how-player--welcome.is-started:not(.is-ended):not(.is-error) .tl-how-play { display: none; }
/* Loading before the first frame: the spinner takes the button's place. */
:is(.tl-welcome, .tl-help) .tl-how-player--welcome.is-loading .tl-how-play { visibility: hidden; }
/* Spinner: a white-90% disc the size of the play button, a thin teal arc turning every 0.8s. */
:is(.tl-welcome, .tl-help) .tl-how-player--welcome .tl-how-spinner {
	position: absolute;
	z-index: 3;
	top: 50%;
	left: 50%;
	display: block;
	box-sizing: border-box;
	width: 72px;
	height: 72px;
	margin: -36px 0 0 -36px;
	border-radius: 50%;
	background: var(--tl-how-glass);
	box-shadow: var(--tl-shadow-card);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.15s ease, visibility 0s linear 0.15s;
}
:is(.tl-welcome, .tl-help) .tl-how-player--welcome .tl-how-spinner::before {
	content: "";
	position: absolute;
	inset: 22px;
	box-sizing: border-box;
	border: 3px solid var(--tl-teal-soft);
	border-top-color: var(--tl-teal);
	border-radius: 50%;
	animation: tl-pe-spin 0.8s linear infinite;
}
:is(.tl-welcome, .tl-help) .tl-how-player--welcome.is-enhanced.is-loading .tl-how-spinner {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.15s ease, visibility 0s;
}
/* The pill and the progress line: shown once started (playing or paused), hidden before Play and when
   ended; faded while idle (Tab still reaches them; keyboard focus keeps them up). */
:is(.tl-welcome, .tl-help) .tl-how-player--welcome :is(.tl-how-controls, .tl-how-progress) {
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}
:is(.tl-welcome, .tl-help) .tl-how-player--welcome.is-enhanced.is-started:not(.is-ended) :is(.tl-how-controls, .tl-how-progress) {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.2s ease, visibility 0s;
}
:is(.tl-welcome, .tl-help) .tl-how-player--welcome.is-enhanced.is-started.is-idle:not(.is-ended):not(:has(:focus-visible)) :is(.tl-how-controls, .tl-how-progress) {
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}
:is(.tl-welcome, .tl-help) .tl-how-player--welcome .tl-how-controls {
	position: absolute;
	z-index: 2;
	right: 12px;
	bottom: 12px;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0;
	margin: 0;
	padding: 4px;
	border-radius: 999px;
	background: var(--tl-how-glass);
	box-shadow: var(--tl-shadow-card);
}
:is(.tl-welcome, .tl-help) .tl-how-player--welcome .tl-how-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	box-sizing: border-box;
	width: 40px;
	height: 40px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	box-shadow: none;
	color: var(--tl-navy);
	line-height: 1;
	cursor: pointer;
}
:is(.tl-welcome, .tl-help) .tl-how-player--welcome .tl-how-btn:is(:hover, :focus, :active) { background: var(--tl-teal-soft); color: var(--tl-navy); }
:is(.tl-welcome, .tl-help) .tl-how-player--welcome .tl-how-btn[aria-pressed="true"] { background: var(--tl-teal-soft); }
:is(.tl-welcome, .tl-help) .tl-how-player--welcome .tl-how-btn:focus:not(:focus-visible) { outline: 0; }
:is(.tl-welcome, .tl-help) .tl-how-player--welcome .tl-how-btn:focus:not(:focus-visible):not(:hover):not([aria-pressed="true"]) { background: transparent; }
:is(.tl-welcome, .tl-help) .tl-how-player--welcome .tl-how-btn:focus-visible { outline: 2px solid var(--tl-teal); outline-offset: 2px; box-shadow: none; }
:is(.tl-welcome, .tl-help) .tl-how-player--welcome .tl-how-btn svg { display: block; flex: none; width: 20px; height: 20px; pointer-events: none; }
/* [hidden] must keep winning over the flex displays above; icon pairs follow the player state. */
:is(.tl-welcome, .tl-help) .tl-how-player--welcome :is(.tl-how-btn, .tl-how-play) svg[hidden],
:is(.tl-welcome, .tl-help) .tl-how-player--welcome :is(.tl-how-play, .tl-how-btn)[hidden] { display: none; }
:is(.tl-welcome, .tl-help) .tl-how-player--welcome.is-playing .tl-how-icon--play,
:is(.tl-welcome, .tl-help) .tl-how-player--welcome:not(.is-playing) .tl-how-icon--pause,
:is(.tl-welcome, .tl-help) .tl-how-player--welcome.is-muted .tl-how-icon--volume,
:is(.tl-welcome, .tl-help) .tl-how-player--welcome:not(.is-muted) .tl-how-icon--muted,
:is(.tl-welcome, .tl-help) .tl-how-player--welcome.is-fullscreen .tl-how-icon--fs,
:is(.tl-welcome, .tl-help) .tl-how-player--welcome:not(.is-fullscreen) .tl-how-icon--fs-exit { display: none; }
/* Progress line: 3px on the bottom edge, a 20px invisible hit band above it (under the pill). */
:is(.tl-welcome, .tl-help) .tl-how-player--welcome .tl-how-progress {
	position: absolute;
	z-index: 1;
	right: 0;
	bottom: 0;
	left: 0;
	height: 3px;
	margin: 0;
	padding: 0;
	background: var(--tl-how-track);
	cursor: pointer;
	touch-action: none;
}
:is(.tl-welcome, .tl-help) .tl-how-player--welcome .tl-how-progress::before { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 20px; }
:is(.tl-welcome, .tl-help) .tl-how-player--welcome .tl-how-progress__fill {
	position: absolute;
	inset: 0;
	background: var(--tl-teal);
	transform: scaleX(var(--tl-how-progress, 0));
	transform-origin: left center;
	pointer-events: none;
}
:is(.tl-welcome, .tl-help) .tl-how-player--welcome .tl-how-progress:focus { outline: 0; }
:is(.tl-welcome, .tl-help) .tl-how-player--welcome .tl-how-progress:focus-visible { outline: 0; box-shadow: none; }
/* A drawn ring round the hit band: an outline on the bottom edge would be clipped by the player. */
:is(.tl-welcome, .tl-help) .tl-how-player--welcome .tl-how-progress:focus-visible::after {
	content: "";
	position: absolute;
	right: 4px;
	bottom: 4px;
	left: 4px;
	height: 12px;
	border: 2px solid var(--tl-teal);
	border-radius: 6px;
	box-shadow: 0 0 0 2px var(--tl-how-glass);
	pointer-events: none;
}
/* Touch: the site's 44px tap target (40px holds for a mouse). */
@media (pointer: coarse) {
	:is(.tl-welcome, .tl-help) .tl-how-player--welcome .tl-how-btn { width: 44px; height: 44px; }
	:is(.tl-welcome, .tl-help) .tl-how-player--welcome .tl-how-controls { padding: 2px; }
}
/* Phones: the 14px card radius, a 56px play button and spinner, 14px captions. */
@media (max-width: 767px) {
	:is(.tl-welcome, .tl-help) .tl-how-player--welcome { border-radius: 14px; }
	:is(.tl-welcome, .tl-help) .tl-how-player--welcome .tl-how-play { width: 56px; height: 56px; }
	:is(.tl-welcome, .tl-help) .tl-how-player--welcome .tl-how-play svg { width: 22px; height: 22px; }
	:is(.tl-welcome, .tl-help) .tl-how-player--welcome .tl-how-spinner { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
	:is(.tl-welcome, .tl-help) .tl-how-player--welcome .tl-how-spinner::before { inset: 17px; }
	:is(.tl-welcome, .tl-help) .tl-how-player--welcome .tl-how-video::cue { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	:is(.tl-welcome, .tl-help) .tl-how-player--welcome :is(.tl-how-controls, .tl-how-progress),
	:is(.tl-welcome, .tl-help) .tl-how-player--welcome.is-enhanced.is-started:not(.is-ended) :is(.tl-how-controls, .tl-how-progress),
	:is(.tl-welcome, .tl-help) .tl-how-player--welcome.is-enhanced.is-started.is-idle:not(.is-ended):not(:has(:focus-visible)) :is(.tl-how-controls, .tl-how-progress),
	:is(.tl-welcome, .tl-help) .tl-how-player--welcome .tl-how-play,
	:is(.tl-welcome, .tl-help) .tl-how-player--welcome .tl-how-spinner,
	:is(.tl-welcome, .tl-help) .tl-how-player--welcome.is-enhanced.is-loading .tl-how-spinner { transition: none; }
	/* A still arc: no turning, still on screen while loading. */
	:is(.tl-welcome, .tl-help) .tl-how-player--welcome .tl-how-spinner::before { animation: none; }
}
.tl-welcome .tl-welcome-actions { display: flex; margin: 16px 0 0; }
.tl-welcome .tl-welcome-actions .tl-welcome-close { flex: 1 1 auto; margin: 0; }
@media (min-width: 768px) {
	.tl-welcome { padding: 24px; }
	.tl-welcome .tl-welcome-dialog { --tl-welcome-chrome: 200px; max-height: calc(100dvh - 48px); padding: 28px; }
	.tl-welcome .tl-welcome-dialog .tl-welcome-title { margin-bottom: 20px; }
	.tl-welcome .tl-welcome-dialog .tl-welcome-x { top: 20px; right: 16px; }
	.tl-welcome .tl-how-player--welcome { width: min(100%, calc((100dvh - 48px - var(--tl-welcome-chrome)) * 16 / 9)); }
	.tl-welcome .tl-how-player--welcome.is-square { width: min(100%, calc(100dvh - 48px - var(--tl-welcome-chrome))); }
	.tl-welcome .tl-welcome-actions { justify-content: flex-end; margin-top: 20px; }
	.tl-welcome .tl-welcome-actions .tl-welcome-close { flex: none; }
}
@media (prefers-reduced-motion: reduce) {
	.tl-welcome { animation: none; }
}
/* Full screen (requestFullscreen on the player; iPhone uses the video's own): the player fills the
   screen and the whole frame shows (contain), as M6p. Separate rules (an unsupported :-webkit-full-screen
   would drop a whole list); last in the section, so they beat the modal's fit widths and the phone radius. */
:is(.tl-welcome, .tl-help) .tl-how-player--welcome.is-fullscreen { width: 100%; height: 100%; border-radius: 0; }
:is(.tl-welcome, .tl-help) .tl-how-player--welcome:fullscreen { width: 100%; height: 100%; border-radius: 0; }
:is(.tl-welcome, .tl-help) .tl-how-player--welcome:-webkit-full-screen { width: 100%; height: 100%; border-radius: 0; }
:is(.tl-welcome, .tl-help) .tl-how-player--welcome.is-fullscreen .tl-how-video { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; object-fit: contain; }
:is(.tl-welcome, .tl-help) .tl-how-player--welcome:fullscreen .tl-how-video { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; object-fit: contain; }
:is(.tl-welcome, .tl-help) .tl-how-player--welcome:-webkit-full-screen .tl-how-video { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; object-fit: contain; }
/* end welcome video */
