/* ==========================================================================
   gday core: the www design system, hand-written and served as written
   ==========================================================================
   No build: this file and the area files beside it are what the browser
   loads. Every www page links this core and at most one area file, through
   cf_layout_www / cf_layout_auth styles="<area>" (lib gday_styles), each
   versioned by its content:

     core.css        every page: the fonts, tokens, reset, base, layout,
                     type, buttons, spinner, notices, fields, choices,
                     dialogs, the address search, start selling, header, footer, the
                     focused chrome, address strip, icon disc, map card,
                     photos, action row, journey strip, solo pages, toasts,
                     the impersonation banner
     home.css        the home page
     quiz.css        the quiz, the hand-off after search and the Counter
     property.css    the property page
     pitches.css     the Agent Pitch pages (the Select list, tray, dialogs,
                     Meet, Choose) and a Second Opinion friend's list
     watch.css       the Watch decks, the homeowner's and a Second Opinion
                     friend's (the guide and one pitch per slide)
     cash-offer.css  the Cash Offer page and its checklists
     account.css     the homeowner's own pages (My Properties, Second Opinions,
                     Edit Profile) and register interest
     status.css      the status pages: 404, 403, 500, property not found,
                     restarting

   Checked, not built: stylelint (config/stylelint/gday.mjs, `npm run
   lint:css`, and on every pull request) enforces the design rules - tokens
   only, semantic tokens in components, re-* / is-* class names, the known
   breakpoints, no bare element name leading a nested selector.

   Cascade layers, lowest first: re-reset (element defaults), re-tokens,
   re-base (the page's type and colour), re-layout (page frame helpers),
   re-components (everything else; area files put all their rules here). The
   names are flat (re-reset, not re.reset): a dotted name is a sublayer, and
   all of re.* would then sit wherever its parent "re" was first named. Any
   unlayered stylesheet on the page (Mapbox's, Font Awesome's) beats every
   layer, so size map canvases explicitly and show or hide an icon through a
   wrapper, never on the <i>.

   Breakpoints (written out in each query; the lint allows only these):

     phone           (width <= 37.5rem)       above phone  (width > 37.5rem)
     tablet          (37.5rem < width <= 61.25rem)
     desktop         (width > 61.25rem)
     header compact  (width <= 52.5rem)       header wide  (width > 52.5rem)
     Agent Pitch     (width < 40rem) / (width >= 40rem), (width < 48rem) /
                     (width >= 48rem), (width < 64rem) / (width >= 64rem):
                     the pitch pages keep the breakpoints their layout was
                     tuned on (640, 768, 1024px)
     Watch deck      its phone layout also in a portrait tablet-width window:
                     (width <= 37.5rem), (width <= 61.25rem) and (orientation: portrait),
                     and its opposite (width > 61.25rem), (37.5rem < width <= 61.25rem)
                     and (orientation: landscape) (watch.css: a 9:16 video beside a panel
                     needs the width; the deck is the one place orientation is used)
     hover           (hover: hover) and (pointer: fine)
     motion          (prefers-reduced-motion: no-preference | reduce)
     forced colours  (forced-colors: active)

   Support floor: Safari 16.5, Chrome 112, Firefox 128 (native nesting). A
   nested selector starts with &, a class or a pseudo-class, never an element
   name (wrap it: :is(li) > &), which Safari before 17.2 and Chrome before 120
   cannot read; and a query wraps a pseudo-element rule, never sits inside it
   with declarations (@media … { &::after { … } }), which those browsers cannot
   match. The lint enforces both (config/stylelint/gday-plugin.mjs). Safari's
   -webkit- prefixes are written beside their properties (backdrop-filter,
   mask-image, text-decoration, user-select).
   ========================================================================== */

@layer re-reset, re-tokens, re-base, re-layout, re-components;

/* ==========================================================================
   Fonts
   ==========================================================================
   Inter and Poppins, served from www's own origin (fonts/, beside this file),
   never a font service. scripts/www-fonts/vendor.sh builds the files these
   rules load, from the fonts' upstream releases, and reads these rules to do
   it: a rule here is the whole specification of its file. So a change here
   (a weight, a subset, a release) is followed by running it and committing
   what it writes.

   The weights gday renders, and no others: Inter 400 to 900 (the regular,
   medium, semibold and bold tokens, and 900 where `bolder` lands on semibold
   or bold), one variable file per subset; Poppins 400 (a Watch deck's plain
   agency name) and 700 (every heading). No italic: italic text is
   synthesised from these, as it always was. The subsets, their unicode-ranges and their order are
   Google Fonts' for these families, so the browser fetches only the files a
   page's text needs. File names carry the release's version, so a new
   release is a new URL.
   ========================================================================== */

/* stylelint-disable declaration-property-value-allowed-list -- @font-face descriptors declare what each file is (its family and weights) and cannot take var() */

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url("fonts/inter/inter-4.1-cyrillic-ext.woff2") format("woff2");
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url("fonts/inter/inter-4.1-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url("fonts/inter/inter-4.1-greek-ext.woff2") format("woff2");
    unicode-range: U+1F00-1FFF;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url("fonts/inter/inter-4.1-greek.woff2") format("woff2");
    unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url("fonts/inter/inter-4.1-vietnamese.woff2") format("woff2");
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url("fonts/inter/inter-4.1-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url("fonts/inter/inter-4.1-latin.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: "Poppins";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/poppins/poppins-4.003-400-devanagari.woff2") format("woff2");
    unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A;
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/poppins/poppins-4.003-400-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/poppins/poppins-4.003-400-latin.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: "Poppins";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("fonts/poppins/poppins-4.003-700-devanagari.woff2") format("woff2");
    unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A;
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("fonts/poppins/poppins-4.003-700-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("fonts/poppins/poppins-4.003-700-latin.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;
}

/* stylelint-enable declaration-property-value-allowed-list */

@layer re-reset {

/* stylelint-disable declaration-no-important, declaration-property-value-allowed-list -- the reset's values are the browser-normalising defaults (Tailwind v4's preflight, value for value), not design values */

/* ==========================================================================
   Reset
   ==========================================================================
   Equivalent to Tailwind v4's preflight for every property preflight sets
   (www ran on Tailwind before gday, and every screen was moved against it),
   so the move off Tailwind changed no element's defaults. Differences from
   preflight are additions only, marked "gday".
   ========================================================================== */

*,
::after,
::before,
::backdrop,
::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
}

html,
:host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: var(--re-font-body);
    font-feature-settings: normal;
    font-variation-settings: normal;
    -webkit-tap-highlight-color: transparent;
}

hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
}

abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: inherit;
    font-weight: inherit;
}

a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
}

b,
strong {
    font-weight: bolder;
}

code,
kbd,
samp,
pre {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 1em;
}

small {
    font-size: 80%;
}

sub,
sup {
    position: relative;
    font-size: 75%;
    line-height: 0;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
}

:-moz-focusring {
    outline: auto;
}

progress {
    vertical-align: baseline;
}

summary {
    display: list-item;
}

ol,
ul,
menu {
    list-style: none;
}

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
    display: block;
    vertical-align: middle;
}

img,
video {
    max-width: 100%;
    height: auto;
}

button,
input,
select,
optgroup,
textarea,
::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
}

:where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
}

:where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
}

::file-selector-button {
    margin-inline-end: 4px;
}

::placeholder {
    opacity: 1;
    color: color-mix(in oklab, currentcolor 50%, transparent);
}

textarea {
    resize: vertical;
}

::-webkit-search-decoration {
    -webkit-appearance: none;
}

::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
}

::-webkit-datetime-edit {
    display: inline-flex;
}

::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
}

::-webkit-datetime-edit,
::-webkit-datetime-edit-year-field,
::-webkit-datetime-edit-month-field,
::-webkit-datetime-edit-day-field,
::-webkit-datetime-edit-hour-field,
::-webkit-datetime-edit-minute-field,
::-webkit-datetime-edit-second-field,
::-webkit-datetime-edit-millisecond-field,
::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
}

::-webkit-calendar-picker-indicator {
    line-height: 1;
}

:-moz-ui-invalid {
    box-shadow: none;
}

button,
input:where([type="button"], [type="reset"], [type="submit"]),
::file-selector-button {
    appearance: button;
}

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
    height: auto;
}

[hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
}

/* gday: Alpine's cloak, so nothing flashes before Alpine initialises. */
[x-cloak] {
    display: none !important;
}


/* stylelint-enable declaration-no-important, declaration-property-value-allowed-list */

}

@layer re-tokens {

/* stylelint-disable color-no-hex, declaration-property-value-disallowed-list -- the one place raw values live */

/* ==========================================================================
   gday design tokens
   ==========================================================================
   The ONE place raw values live. Every other gday file uses these custom
   properties; stylelint (config/stylelint/gday.mjs) rejects hex colours, raw font
   sizes, font stacks and radii anywhere else, so the system cannot drift.

   Two tiers:
     1. Primitives (--re-pink-500, --re-grey-100 …): the palette and scales,
        named for what they are. Components never use these directly.
     2. Semantic tokens (--re-color-action, --re-text-h1 …): named for what
        they do. Components use only these, so a theme is a swap of tier 2.

   Source: the designer's Seller Flow Rewrite kit (styles.html "General
   styles" and the per-screen mockups, 2 to 7 Oct 2026), with one deliberate
   change: muted text is #6B6B6B, not #777777, so it passes WCAG AA on white
   (5.3:1) and on the grey fill (4.8:1). #777777 failed on both.

   Known, accepted exception: white on brand pink is 3.56:1, under AA for
   text below 18.66px bold. Kept by decision (8 Oct 2026) so the brand pink
   stays the one pink. Do not "fix" it here without that decision changing.

   Dark mode: the dark theme is defined (html[data-theme="dark"]) but not
   shipped. cf_layout_www always renders data-theme="light".
   ========================================================================== */

:root {
    /* ---- Primitives: colour ---------------------------------------------- */
    --re-pink-500: #FF2D78;          /* Brand pink: the one main action, rings, progress */
    --re-pink-700: #C9188F;          /* Deep magenta: the end of the deck gradient */
    --re-pink-50: #FFF0F5;           /* Pink tint: done steps, highlight surfaces */
    --re-ink: #111111;               /* Text, secondary (black) buttons, footer */
    --re-grey-800: #3A3A3C;          /* Softened ink: body copy on the product cards */
    --re-grey-700: #555555;          /* Text on a disabled button */
    --re-grey-600: #6B6B6B;          /* Muted text (AA on white and on grey-100) */
    --re-grey-500: #8A8A8A;          /* Footer headings on ink */
    --re-grey-400: #BBBBBB;          /* Footer links on ink */
    --re-grey-300: #CFCACF;          /* Unticked radio and checkbox rings */
    --re-grey-200: #E6E6E6;          /* Tracks, disabled fills */
    --re-grey-100: #F3F3F3;          /* The soft fill: rows, cards, fields */
    --re-white: #FFFFFF;
    --re-green-500: #3BB273;         /* Price estimate bars and the Shared state only */
    --re-green-700: #1F7A4B;         /* Green text */
    --re-green-50: #E9F7EF;          /* Green surface */
    --re-violet-600: #7A2FBE;        /* The glow in the corner of the rating deck */

    /* Dark-theme primitives (not shipped; see the dark block below) */
    --re-night-950: #0F0D0E;
    --re-night-900: #1E1A1D;
    --re-night-800: #2C272B;
    --re-night-700: #3A3438;
    --re-night-pink: #3A1C2A;
    --re-night-text: #F3EFF2;
    --re-night-muted: #B7AEB4;
    --re-night-green-500: #4CC285;
    --re-night-green-300: #7FD6A5;
    --re-night-green-900: #173326;

    /* ---- Semantic: colour (light) ---------------------------------------- */
    --re-color-page: var(--re-white);
    --re-color-surface: var(--re-white);        /* a card on the grey fill */
    --re-color-fill: var(--re-grey-100);        /* rows, cards and fields on white */
    --re-color-fill-hover: color-mix(in srgb, var(--re-grey-100), var(--re-ink) 4%);
    --re-color-track: var(--re-grey-200);       /* progress tracks, bar backgrounds */
    --re-color-text: var(--re-ink);
    --re-color-text-muted: var(--re-grey-600);
    --re-color-text-soft: var(--re-grey-800);
    --re-color-text-inverse: var(--re-white);
    --re-color-text-inverse-muted: color-mix(in srgb, var(--re-white) 88%, transparent);
    --re-color-photo-card: color-mix(in srgb, var(--re-white) 10%, transparent);       /* a card on the hero photo (a tint, no blur) */
    --re-color-photo-card-hover: color-mix(in srgb, var(--re-white) 16%, transparent);
    --re-color-action: var(--re-pink-500);
    --re-color-action-hover: color-mix(in srgb, var(--re-pink-500) 90%, var(--re-ink));
    --re-color-on-action: var(--re-white);
    --re-color-action-tint: var(--re-pink-50);
    --re-color-action-halo: color-mix(in srgb, var(--re-pink-500) 16%, transparent);
    --re-color-secondary: var(--re-ink);
    --re-color-secondary-hover: color-mix(in srgb, var(--re-ink) 82%, var(--re-white));
    --re-color-on-secondary: var(--re-white);
    --re-color-disabled: var(--re-grey-200);
    --re-color-on-disabled: var(--re-grey-700);
    --re-color-control-ring: var(--re-grey-300);
    --re-color-focus: var(--re-pink-500);
    --re-color-positive: var(--re-green-500);
    --re-color-positive-text: var(--re-green-700);
    --re-color-positive-surface: var(--re-green-50);
    --re-color-scrim: color-mix(in srgb, var(--re-ink) 50%, transparent);
    --re-color-line: var(--re-grey-200);        /* a hairline, where a layout needs one: a table's edges, a sticky tray's edge */
    --re-color-on-media: color-mix(in srgb, var(--re-ink) 50%, transparent);           /* a control's disc over a video or photo */
    --re-color-on-media-hover: color-mix(in srgb, var(--re-ink) 65%, transparent);
    --re-color-deck-glass: color-mix(in srgb, var(--re-white) 12%, transparent);       /* a quiet panel on the deck's gradient */
    --re-color-deck-glass-hover: color-mix(in srgb, var(--re-white) 22%, transparent);
    --re-color-deck-text-muted: color-mix(in srgb, var(--re-white) 80%, transparent); /* secondary text on the deck's gradient */
    --re-color-deck-glow: color-mix(in srgb, var(--re-violet-600) 50%, transparent);
    --re-color-hero-ink: #1A130D;               /* the hero photo's warm black, for its scrim */
    --re-color-hero-ground: var(--re-night-950); /* the home hero, behind its photo */
    --re-color-hero-text: var(--re-night-text);  /* the home hero's line under its heading */
    --re-color-brand-ink: #141113;              /* the home page's brand band */
    --re-color-on-brand-ink-muted: color-mix(in srgb, var(--re-white) 75%, transparent);
    --re-color-glass-sheen: color-mix(in srgb, var(--re-white) 16%, transparent);       /* light across a phone's glass */
    --re-color-phone-speaker: var(--re-night-800); /* the slot at the top of a phone's body */
    --re-color-footer: var(--re-ink);
    --re-color-footer-text: var(--re-grey-400);
    --re-color-footer-heading: var(--re-grey-500);
    --re-color-footer-line: color-mix(in srgb, var(--re-white) 12%, transparent);

    --re-gradient-deck: linear-gradient(180deg, var(--re-pink-500) 0%, var(--re-pink-700) 100%);
    --re-gradient-brand: radial-gradient(125% 125% at 78% 12%, #FF3D86 0%, #F0247F 38%, #CC1F93 68%, #9D18B4 100%);

    /* ---- Type ------------------------------------------------------------ */
    /* Poppins 700 for headings only; Inter for everything else. Nothing under
       13px. Sizes step down on a phone (see the media block below). */
    --re-font-display: "Poppins", system-ui, sans-serif;
    --re-font-body: "Inter", system-ui, sans-serif;
    --re-font-mono: ui-monospace, "SF Mono", Menlo, monospace;   /* a link to copy, shown as it is */

    --re-weight-regular: 400;
    --re-weight-medium: 500;
    --re-weight-semibold: 600;
    --re-weight-bold: 700;

    --re-text-display: 3.5rem;       /* 56px  the home page's hero heading and its first section's */
    /* The home page's brand line: as large as its column lets its longest line be, on one line. */
    --re-text-brand-line: min(5.75rem, calc(100cqi / 9));   /* 92px at most */
    --re-text-h1: 2.125rem;          /* 34px  one per screen: the page or quiz question */
    --re-text-h2: 1.625rem;          /* 26px  section headings, dialog titles */
    --re-text-h3: 1.25rem;           /* 20px  card titles, big stats */
    --re-text-lede: 1.125rem;        /* 18px  the one line under an h1 */
    --re-text-body: 1rem;            /* 16px  paragraphs, option labels, buttons */
    --re-text-row: 0.9375rem;        /* 15px  names in dense lists */
    --re-text-small: 0.875rem;       /* 14px  detail lines, helper text, nav */
    --re-text-caption: 0.8125rem;    /* 13px  column heads, chips, step counts, legal */
    --re-text-stat: 1.375rem;        /* 22px  one-time-code digits, an agent's name in the comparison */
    /* The one exception to "nothing under 13px": the pitch comparison on a phone,
       where a whole metric column must fit beside the pinned agent column, and the
       journey strip squeezed to a phone's width. Never for running text. */
    --re-text-dense: 0.75rem;        /* 12px  a phone comparison's figures, strip labels */
    --re-text-dense-small: 0.6875rem; /* 11px a phone comparison's chips and counts, strip statuses */
    /* Icon glyphs: an icon sized to sit in its disc or line. Never for text. */
    --re-text-icon-xs: 0.5rem;       /* 8px   a tick in a tiny badge */
    --re-text-icon-sm: 0.625rem;     /* 10px  a chevron beside small text */
    --re-text-icon-md: 0.75rem;      /* 12px  a tick in a step node, an icon in a 20px badge */

    --re-leading-heading: 1.1;
    --re-leading-title: 1.2;
    --re-leading-snug: 1.3;
    --re-leading-body: 1.5;
    --re-leading-small: 1.45;
    --re-leading-none: 1;

    --re-tracking-display: -0.03em;
    --re-tracking-title: -0.02em;
    --re-tracking-caps: 0.06em;

    /* ---- Space ----------------------------------------------------------- */
    /* Named by their pixel size at the default 16px root, set in rem so they
       follow the reader's text size. The kit's rhythm, rounded to one scale. */
    --re-space-2: 0.125rem;
    --re-space-4: 0.25rem;
    --re-space-6: 0.375rem;
    --re-space-8: 0.5rem;
    --re-space-10: 0.625rem;
    --re-space-12: 0.75rem;
    --re-space-14: 0.875rem;
    --re-space-16: 1rem;
    --re-space-18: 1.125rem;
    --re-space-20: 1.25rem;
    --re-space-24: 1.5rem;
    --re-space-28: 1.75rem;
    --re-space-32: 2rem;
    --re-space-36: 2.25rem;
    --re-space-40: 2.5rem;
    --re-space-48: 3rem;
    --re-space-56: 3.5rem;
    --re-space-64: 4rem;
    --re-space-72: 4.5rem;
    --re-space-80: 5rem;
    --re-space-96: 6rem;

    /* ---- Sizes ----------------------------------------------------------- */
    --re-size-tap: 2.75rem;          /* 44px  the smallest tap target, links included */
    --re-size-control: 3.5rem;       /* 56px  every button, desktop and phone */
    --re-size-option: 3.75rem;       /* 60px  an answer row */
    --re-size-field: 3.75rem;        /* 60px  a text field */
    --re-size-indicator: 1.5rem;     /* 24px  radio / checkbox / row icon */
    --re-size-progress: 0.375rem;    /* 6px   the quiz progress bar */
    --re-size-tile: 4rem;            /* 64px  an illustration tile */

    --re-measure: 65ch;              /* prose line length */
    --re-width-page: 63rem;          /* 1008px the site's content width, as the Marketing site's */
    --re-width-deck: 72rem;          /* 1152px a Watch deck's sheet: a 9:16 video beside its panel */
    --re-width-column: 35rem;        /* 560px  the quiz's question column */
    --re-width-property: 55.5rem;    /* 888px  the property page's column */
    --re-gutter: var(--re-space-36); /* page side padding (16px on a phone) */

    /* ---- Radius ---------------------------------------------------------- */
    --re-radius-key: 5px;            /* a keyboard key in a hint */
    --re-radius-check: 7px;          /* a multi-select tick box */
    --re-radius-sm: 12px;            /* chips, thumbnails, menu items */
    --re-radius-tile: 16px;          /* illustration tiles, code digits */
    --re-radius-md: 18px;            /* answer rows, fields, guide links */
    --re-radius-lg: 24px;            /* cards: map card, address strip, notices */
    --re-radius-xl: 28px;            /* the home product cards, the photo panel */
    --re-radius-phone: 46px;         /* a phone's body, in a picture of the product */
    --re-radius-phone-screen: 35px;  /* that phone's screen */
    --re-radius-phone-glass: 44px;   /* the screen of the phone in the home hero's photo */
    --re-radius-pill: 999px;         /* buttons, the search field, tags */
    --re-radius-round: 50%;          /* discs and circular buttons */

    /* ---- Elevation ------------------------------------------------------- */
    /* No borders: separation is space and soft fill. Shadows only lift a
       control off a fill or float a layer over the page. */
    --re-shadow-raised: 0 1px 2px color-mix(in srgb, var(--re-ink) 8%, transparent);
    --re-shadow-float: 0 10px 30px -12px color-mix(in srgb, var(--re-ink) 30%, transparent);
    --re-shadow-overlay: 0 24px 64px -16px color-mix(in srgb, var(--re-ink) 35%, transparent);
    --re-shadow-header: 0 8px 24px -16px color-mix(in srgb, var(--re-ink) 18%, transparent);   /* under a header that stays with the window, once the page has scrolled */
    /* A phone lit from the upper left, standing off a white page: a contact edge, then three softer, longer falls. */
    --re-shadow-phone:
        1px 2px 3px color-mix(in srgb, var(--re-ink) 30%, transparent),
        6px 12px 18px -6px color-mix(in srgb, var(--re-ink) 32%, transparent),
        30px 56px 90px -20px color-mix(in srgb, var(--re-ink) 50%, transparent),
        70px 100px 150px -50px color-mix(in srgb, var(--re-ink) 32%, transparent);
    /* The rim where a photographed phone's glass meets its body. */
    --re-shadow-phone-glass:
        inset 0 0 0 1.5px color-mix(in srgb, var(--re-ink) 30%, transparent),
        inset 0 0 16px color-mix(in srgb, var(--re-ink) 20%, transparent);

    /* ---- Motion ---------------------------------------------------------- */
    --re-duration-fast: 150ms;
    --re-duration-base: 200ms;
    --re-duration-morph: 320ms;                /* a control changing shape, as the search's go button drawing in to its spinner */
    --re-ease: cubic-bezier(0.2, 0.7, 0.2, 1);

    /* ---- Layers ---------------------------------------------------------- */
    --re-z-raised: 10;
    --re-z-header-scrim: 40;    /* under an open header menu: over the page, under the header */
    --re-z-header: 50;
    --re-z-overlay: 60;
}

/* Phone: the type scale steps down and the page gutter narrows. */
@media (width <= 37.5rem) {
    :root {
        --re-text-display: 2.375rem; /* 38px */
        --re-text-brand-line: min(2.75rem, calc(100cqi / 9)); /* 44px at most */
        --re-text-h1: 1.875rem;      /* 30px */
        --re-text-h2: 1.375rem;      /* 22px */
        --re-text-h3: 1.125rem;      /* 18px */
        --re-text-lede: 1rem;        /* 16px */
        --re-gutter: var(--re-space-16);
    }
}

/* Dark theme: defined so the components are built theme-ready, not shipped.
   Only semantic tokens change; components need no dark rules of their own. */
html[data-theme="dark"] {
    color-scheme: dark;
    --re-color-page: var(--re-night-950);
    --re-color-surface: var(--re-night-900);
    --re-color-fill: var(--re-night-900);
    --re-color-fill-hover: var(--re-night-800);
    --re-color-track: var(--re-night-700);
    --re-color-text: var(--re-night-text);
    --re-color-text-muted: var(--re-night-muted);
    --re-color-text-soft: var(--re-night-muted);
    --re-color-action-tint: var(--re-night-pink);
    --re-color-secondary: var(--re-night-text);
    --re-color-secondary-hover: var(--re-white);
    --re-color-on-secondary: var(--re-ink);
    --re-color-disabled: var(--re-night-800);
    --re-color-on-disabled: var(--re-night-muted);
    --re-color-control-ring: var(--re-night-700);
    --re-color-positive: var(--re-night-green-500);
    --re-color-positive-text: var(--re-night-green-300);
    --re-color-positive-surface: var(--re-night-green-900);
    --re-color-footer: var(--re-night-950);
}


/* stylelint-enable color-no-hex, declaration-property-value-disallowed-list */

}

@layer re-base {

/* ==========================================================================
   Base
   ==========================================================================
   Page-wide defaults only: the body's type and colour, focus and selection.
   No element gets a visual style here beyond what every page shares;
   headings, buttons and text styles are components.
   ========================================================================== */

/* In-page jumps glide (the old site's html rule), unless motion is reduced. */
html {
    @media (prefers-reduced-motion: no-preference) {
        scroll-behavior: smooth;
    }
}

body {
    background: var(--re-color-page);
    color: var(--re-color-text);
    font-family: var(--re-font-body);
    font-size: var(--re-text-body);
    line-height: var(--re-leading-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* One focus ring everywhere: 2px pink, 2px clear of the control. Pink on
   white is 3.56:1, above the 3:1 non-text minimum. */
:focus-visible {
    outline: 2px solid var(--re-color-focus);
    outline-offset: 2px;
}

::selection {
    background: var(--re-color-action-tint);
    color: var(--re-color-text);
}

/* Reduced motion is handled per component: decorative motion (the pulse,
   hover nudges) only runs under (--re-motion-ok); spinners keep turning,
   slower, because a frozen spinner reads as a hung page. */

}

@layer re-layout {

/* ==========================================================================
   Layout primitives
   ==========================================================================
   The page frame and the few structural helpers every screen shares. Pages
   compose these with components; there are no spacing utilities.
   ========================================================================== */

/* <body> of every cf_layout_www page: header, main, footer in a column that
   fills the viewport so the footer sits at the foot of short pages. */
.re-site {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
}

/* <body> of cf_layout_auth pages (sign in, the friend pages): at least the
   window's height, never a sideways scroll. The page's own layout is its
   main's (the solo column, the friend's list or deck). */
.re-auth-body {
    min-height: 100vh;
    overflow-x: hidden;
}

.re-site-main {
    flex: 1 0 auto;
}

/* The page surface for migrated screens: white, the colour the kit puts
   every page on. */
.re-page {
    background: var(--re-color-page);
    color: var(--re-color-text);
}

/* The brand surface (cf_layout_www theme="brand"): the full-bleed pink
   gradient under the overlay header, white type, top padding to clear it. */
.re-surface-brand {
    padding-top: var(--re-space-96);
    background: var(--re-gradient-brand);
    color: var(--re-color-text-inverse);
}

/* Centred content at the site width, with the page gutter. */
.re-container {
    width: 100%;
    max-width: calc(var(--re-width-page) + 2 * var(--re-gutter));
    margin-inline: auto;
    padding-inline: var(--re-gutter);
}

/* The column every property sub-page sits in (the pitches, Meet, Choose, the Cash
   offer's pages, Data management, and a friend's pitch list): the property's width,
   and the one space above the address line (tags/property_page_header.cfm), so it sits
   at the same height on every page. A phone starts at the way back, whose tap height
   is room enough. The pages set their own sides and foot, never their top. */
.re-property-column {
    max-width: calc(var(--re-width-property) + 2 * var(--re-gutter));
    padding-top: var(--re-space-24);

    @media (width <= 37.5rem) {
        padding-top: var(--re-space-4);
    }
}

/* Set on <html> while a full-screen layer (the address tray, a sheet) owns
   the screen, so the page beneath cannot scroll. */
.re-scroll-locked {
    overflow: hidden;
}

/* Read by screen readers, not shown. */
.re-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    /* stylelint-disable-next-line declaration-property-value-allowed-list -- the standard visually-hidden pattern, not layout spacing */
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

}

@layer re-components {

/* ==========================================================================
   Text styles
   ==========================================================================
   The one type scale, as classes so a heading's look is independent of its
   level in the outline. Poppins 700 for headings; Inter for the rest. Sizes come from tokens, which step down on a phone.

     .re-h1       34/30  one per screen
     .re-h2       26/22  section headings, dialog titles
     .re-h3       20/18  card titles
     .re-lede     18/16  the one line under an h1
     .re-small    14     detail lines, helper text
     .re-caption  13     column heads, step counts, legal
   ========================================================================== */

.re-h1,
.re-h2,
.re-h3 {
    margin: 0;
    font-family: var(--re-font-display);
    font-weight: var(--re-weight-bold);
    text-wrap: balance;
}

.re-h1 {
    font-size: var(--re-text-h1);
    line-height: var(--re-leading-heading);
    letter-spacing: var(--re-tracking-display);
}

.re-h2 {
    font-size: var(--re-text-h2);
    line-height: var(--re-leading-heading);
    letter-spacing: var(--re-tracking-display);
}

.re-h3 {
    font-size: var(--re-text-h3);
    line-height: var(--re-leading-title);
    letter-spacing: var(--re-tracking-title);
}

.re-lede {
    margin: 0;
    font-size: var(--re-text-lede);
    line-height: var(--re-leading-small);
    color: var(--re-color-text-muted);
    text-wrap: pretty;
}

.re-prose {
    margin: 0;
    font-size: var(--re-text-body);
    line-height: var(--re-leading-body);
    text-wrap: pretty;
}

.re-small {
    margin: 0;
    font-size: var(--re-text-small);
    line-height: var(--re-leading-small);
}

.re-caption {
    margin: 0;
    font-size: var(--re-text-caption);
    line-height: var(--re-leading-small);
}

.re-muted {
    color: var(--re-color-text-muted);
}

.re-strong {
    font-weight: var(--re-weight-semibold);
    color: var(--re-color-text);
}


/* ==========================================================================
   Buttons and links
   ==========================================================================
   Every button is a 56px pill whose label says what happens. One pink
   (primary) button per screen; the second action is a black pill or a text
   button. Disabled stays visible, grey, until the question is answered.

     .re-btn                     the pill (pair with a variant)
     .re-btn--primary            pink, the screen's one main action
     .re-btn--secondary          black, the second action
     .re-btn--light              white, on a dark or photo surface
     .re-btn--soft               grey fill, a supporting action on a white page
     .re-btn--small              44px, inside cards, steppers and notices
     .re-btn--block              full width
     .re-btn--icon               a 48px circle holding one icon
     .re-btn.is-busy             spinner showing, label kept
     .re-pulse                   the reward pulse: three beats, then still
     .re-pulse--quiet            the same beats as a thin ring: a primary action among content
     .re-text-btn                Back and quiet exits: grey text, 44px tall
     .re-text-btn--strong        ink text: Cancel
     .re-text-btn--ink           ink, underlined: Resend code, Use another email
     .re-text-btn--underlined    grey, underlined: a quiet exit beside Back (Not right now)
     .re-link                    a link inside a sentence: underlined
   ========================================================================== */

.re-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--re-space-8);
    min-height: var(--re-size-control);
    padding: 0 var(--re-space-32);
    border-radius: var(--re-radius-pill);
    font-family: var(--re-font-body);
    font-size: var(--re-text-body);
    font-weight: var(--re-weight-semibold);
    line-height: var(--re-leading-none);
    white-space: nowrap;
    text-align: center;
    -webkit-text-decoration: none;
    text-decoration: none;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    transition: background-color var(--re-duration-fast) ease, color var(--re-duration-fast) ease;

    /* Forced colours drop fills; a transparent outline becomes the edge. */
    outline: 1px solid transparent;
    outline-offset: -1px;

    &:focus-visible {
        outline: 2px solid var(--re-color-focus);
        outline-offset: 2px;
    }

    &:is(:disabled, [aria-disabled="true"]) {
        background: var(--re-color-disabled);
        color: var(--re-color-on-disabled);
        cursor: not-allowed;
    }

    & > i {
        font-size: var(--re-text-small);
    }
}

.re-btn--primary {
    background: var(--re-color-action);
    color: var(--re-color-on-action);

    @media (hover: hover) and (pointer: fine) {
        &:not(:disabled, [aria-disabled="true"]):hover {
            background: var(--re-color-action-hover);
        }
    }
}

.re-btn--secondary {
    background: var(--re-color-secondary);
    color: var(--re-color-on-secondary);

    @media (hover: hover) and (pointer: fine) {
        &:not(:disabled, [aria-disabled="true"]):hover {
            background: var(--re-color-secondary-hover);
        }
    }
}

.re-btn--light {
    background: var(--re-color-surface);
    color: var(--re-color-text);

    @media (hover: hover) and (pointer: fine) {
        &:not(:disabled, [aria-disabled="true"]):hover {
            background: var(--re-color-fill);
        }
    }
}

/* Soft: grey fill, ink text. A supporting action on a white page that must
   not compete with the pink one (Add photos). */
.re-btn--soft {
    background: var(--re-color-fill);
    color: var(--re-color-text);

    @media (hover: hover) and (pointer: fine) {
        &:not(:disabled, [aria-disabled="true"]):hover {
            background: var(--re-color-fill-hover);
        }
    }
}

.re-btn--small {
    min-height: var(--re-size-tap);
    padding: 0 var(--re-space-20);
    font-size: var(--re-text-small);
}

.re-btn--block {
    display: flex;
    width: 100%;
}

.re-btn--icon {
    flex: none;
    width: var(--re-space-48);
    min-height: var(--re-space-48);
    height: var(--re-space-48);
    padding: 0;
    border-radius: var(--re-radius-round);
}

/* A busy button keeps its label and gains a spinner (.re-spinner inside). */
.re-btn.is-busy {
    cursor: progress;
}

/* The reward pulse: only on the key reward actions (watch your pitches, see
   your offer). Three beats then still, so it draws the eye without nagging. */
@keyframes re-pulse {
    0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--re-color-action) 70%, transparent); transform: scale(1); }
    45% { transform: scale(1.035); }
    70% { box-shadow: 0 0 0 18px color-mix(in srgb, var(--re-color-action) 0%, transparent); transform: scale(1); }
    100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--re-color-action) 0%, transparent); transform: scale(1); }
}

/* The quiet pulse: the same three beats as a thin ring and no growth, for a primary
   action that sits among other content (a page header, a tray) rather than alone. */
@keyframes re-pulse-quiet {
    0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--re-color-action) 40%, transparent); }
    70% { box-shadow: 0 0 0 var(--re-space-8) color-mix(in srgb, var(--re-color-action) 0%, transparent); }
    100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--re-color-action) 0%, transparent); }
}

@media (prefers-reduced-motion: no-preference) {
    .re-pulse {
        animation: re-pulse 1.6s cubic-bezier(0.4, 0, 0.2, 1) 3;
    }

    .re-pulse--quiet {
        animation-name: re-pulse-quiet;
        animation-duration: 1.8s;
    }
}

.re-text-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--re-space-6);
    min-height: var(--re-size-tap);
    padding: 0;
    background: none;
    font-family: var(--re-font-body);
    font-size: var(--re-text-body);
    font-weight: var(--re-weight-semibold);
    line-height: var(--re-leading-none);
    color: var(--re-color-text-muted);
    -webkit-text-decoration: none;
    text-decoration: none;
    cursor: pointer;
    transition: color var(--re-duration-fast) ease;

    @media (hover: hover) and (pointer: fine) {
        &:not(:disabled):hover {
            color: var(--re-color-text);
        }
    }

    &:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }

    &:focus-visible {
        border-radius: var(--re-radius-sm);
    }
}

/* Strong: an ink text action that closes or cancels (Cancel). */
.re-text-btn--strong {
    color: var(--re-color-text);
}

/* The ink variant: a text action that carries weight (Resend code). */
.re-text-btn--ink {
    color: var(--re-color-text);
    -webkit-text-decoration: underline;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Underlined, in the text button's own grey: a quiet exit that sits beside
   Back and must still read as an action (Not right now). */
.re-text-btn--underlined {
    -webkit-text-decoration: underline;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.re-text-btn--small {
    font-size: var(--re-text-small);
}

.re-link {
    color: var(--re-color-action);
    font-weight: var(--re-weight-semibold);
    -webkit-text-decoration: underline;
    text-decoration: underline;
    text-underline-offset: 3px;

    @media (hover: hover) and (pointer: fine) {
        &:hover {
            color: var(--re-color-action-hover);
        }
    }
}


/* ==========================================================================
   Spinner
   ==========================================================================
   A ring with a pink arc. Inside a pink button it turns white on pink.

     .re-spinner          16px, inline (inside buttons)
     .re-spinner--large   48px, a page or panel loading state
   ========================================================================== */

@keyframes re-spin {
    to { transform: rotate(360deg); }
}

.re-spinner {
    display: inline-block;
    flex: none;
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--re-color-action-tint);
    border-top-color: var(--re-color-action);
    border-radius: var(--re-radius-round);
    animation: re-spin 0.8s linear infinite;

    .re-btn--primary &,
    .re-btn--secondary &,
    .re-search-go & {
        border-color: color-mix(in srgb, currentcolor 40%, transparent);
        border-top-color: currentcolor;
    }
}

.re-spinner--large {
    width: var(--re-space-48);
    height: var(--re-space-48);
    border-width: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .re-spinner {
        animation: re-spin 2.4s linear infinite;
    }
}


/* ==========================================================================
   Notices
   ==========================================================================
   One look for every error and heads-up: a grey card, the icon in a white
   disc, a bold line, grey detail, and (for errors with a way forward) the
   retry action under the text. Pink marks it, never red.

     .re-notice           the card
     .re-notice--info     a heads-up rather than a problem (ink icon)
     .re-notice--centred  a full-state message in the middle of the page
     .re-notice-text      the bold line and detail, apart from the actions
     .re-notice-actions   a row of actions under the text
   ========================================================================== */

.re-notice {
    display: flex;
    align-items: flex-start;
    gap: var(--re-space-14);
    padding: var(--re-space-16) var(--re-space-18);
    border-radius: var(--re-radius-lg);
    background: var(--re-color-fill);
    color: var(--re-color-text);
    outline: 1px solid transparent;

    @media (width <= 37.5rem) {
        gap: var(--re-space-12);
        padding: var(--re-space-14) var(--re-space-16);
    }
}

.re-notice-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: var(--re-space-40);
    height: var(--re-space-40);
    border-radius: var(--re-radius-round);
    background: var(--re-color-surface);
    color: var(--re-color-action);
    font-size: var(--re-text-body);

    .re-notice--info & {
        color: var(--re-color-text);
    }
}

.re-notice-body {
    display: grid;
    flex: 1;
    gap: var(--re-space-2);
    min-width: 0;
    align-self: center;

    & :is(b, .re-notice-title) {
        margin: 0;
        font-size: var(--re-text-body);
        font-weight: var(--re-weight-semibold);
        line-height: 1.35;
    }

    & p,
    & span {
        margin: 0;
        font-size: var(--re-text-small);
        line-height: var(--re-leading-small);
        color: var(--re-color-text-muted);
    }

    & .re-btn {
        justify-self: start;
        margin-top: var(--re-space-10);
    }
}

/* Wraps the bold line and detail when something must point at them alone
   (aria-describedby), apart from the actions below. */
.re-notice-text {
    display: grid;
    gap: var(--re-space-2);
}

/* A bold line holding an email address, which may break anywhere. */
.re-notice-title--wraps {
    overflow-wrap: anywhere;
}

/* More than one action under the text. */
.re-notice-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--re-space-10);
    margin-top: var(--re-space-10);

    & .re-btn {
        margin-top: 0;
    }
}

.re-notice--centred {
    max-width: 30rem;
    margin-inline: auto;
}

/* A full-page state (couldn't find the property): the notice and a way back. */
.re-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--re-space-16);
    padding-block: var(--re-space-80);
}


/* ==========================================================================
   Fields
   ==========================================================================
   Grey filled boxes, no borders; focus draws the 2px pink ring. Labels are
   14/600 ink above the field, an "(optional)" note in regular grey.

     .re-field            label + control + help, stacked
     .re-label            the label (with .re-label-note for "(optional)")
     .re-input            a text input, textarea or wrapped input row
     .re-input--code      the one-time code: large, centred, spaced digits
     .re-input--amount    a currency amount: large semibold
     .re-input--select    a <select>: the same box, a drawn chevron
     .re-field-error      why the value is not accepted yet
     .re-field-hint       a quiet line under the control (where a value came from)
   ========================================================================== */

.re-field {
    display: grid;
    gap: var(--re-space-8);
    margin: 0;
}

.re-label {
    display: block;
    font-size: var(--re-text-small);
    font-weight: var(--re-weight-semibold);
    line-height: var(--re-leading-snug);
    color: var(--re-color-text);
}

.re-label-note {
    margin-left: var(--re-space-4);
    font-weight: var(--re-weight-regular);
    color: var(--re-color-text-muted);
}

.re-input {
    display: block;
    width: 100%;
    min-height: var(--re-size-field);
    padding: var(--re-space-14) var(--re-space-20);
    border-radius: var(--re-radius-md);
    background: var(--re-color-fill);
    color: var(--re-color-text);
    font-size: var(--re-text-body);
    line-height: var(--re-leading-small);
    outline: 1px solid transparent;
    outline-offset: -1px;
    transition: box-shadow var(--re-duration-fast) ease, background-color var(--re-duration-fast) ease;

    &::placeholder {
        color: var(--re-color-text-muted);
    }

    &:focus,
    &:focus-visible {
        outline: 1px solid transparent;
        box-shadow: inset 0 0 0 2px var(--re-color-action);
    }

    &[aria-invalid="true"] {
        box-shadow: inset 0 0 0 2px var(--re-color-text);
    }

    /* A value that is set elsewhere (the account's email): readable, plainly
       not for editing, no focus ring. */
    /* (:read-only also matches any element that is not a text control, so
       wrapped rows and selects are excluded by name.) */
    &:is(input, textarea):read-only:not(:disabled) {
        color: var(--re-color-text-muted);
        cursor: default;

        &:focus,
        &:focus-visible {
            box-shadow: inset 0 0 0 2px var(--re-color-track);
        }
    }

    @media (width <= 37.5rem) {
        padding-inline: var(--re-space-18);
    }

    @media (forced-colors: active) {
        border: 1px solid CanvasText;

        &:focus {
            outline: 2px solid Highlight;
        }
    }
}

textarea.re-input {
    min-height: 5.75rem;
    resize: vertical;
}

.re-input--amount {
    font-size: var(--re-text-lede);
    font-weight: var(--re-weight-semibold);
    font-variant-numeric: tabular-nums;
}

.re-input--code {
    font-family: var(--re-font-display);
    font-size: var(--re-text-stat);
    font-weight: var(--re-weight-bold);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.45em;
    text-align: center;

    &::placeholder {
        color: var(--re-color-control-ring);
    }
}

/* Why a value is not accepted yet. Ink with a pink mark, not red: there is no
   error red on a homeowner page, and pink text at this size is under AA. */
.re-field-error {
    display: flex;
    align-items: flex-start;
    gap: var(--re-space-8);
    margin: 0;
    font-size: var(--re-text-small);
    font-weight: var(--re-weight-semibold);
    line-height: var(--re-leading-small);
    color: var(--re-color-text);

    & > i {
        flex: none;
        margin-top: var(--re-space-2);
        color: var(--re-color-action);
    }
}

/* A <select> in the field's box: the native arrow off, a chevron drawn in
   the text colour at the right. */
.re-input--select {
    padding-right: var(--re-space-48);
    background-image:
        linear-gradient(45deg, transparent 50%, currentcolor 50%),
        linear-gradient(135deg, currentcolor 50%, transparent 50%);
    background-position: calc(100% - 1.375rem) 50%, calc(100% - 1rem) 50%;
    background-repeat: no-repeat;
    background-size: 0.375rem 0.375rem;
    appearance: none;
    cursor: pointer;
}

/* A quiet line under the control: where its value came from, what it is for. */
.re-field-hint {
    margin: 0;
    font-size: var(--re-text-caption);
    line-height: var(--re-leading-small);
    color: var(--re-color-text-muted);
}

/* ---- Amount stepper (the Counter's number) ------------------------------- */

.re-amount {
    display: grid;
    justify-items: center;
    gap: var(--re-space-12);
    padding: var(--re-space-20);
    border-radius: var(--re-radius-lg);
    background: var(--re-color-fill);
    text-align: center;
    outline: 1px solid transparent;
}

.re-amount-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--re-space-12);
}

.re-amount-value {
    min-width: 11rem;
    padding: var(--re-space-14) var(--re-space-16);
    border-radius: var(--re-radius-md);
    background: var(--re-color-surface);
    font-family: var(--re-font-display);
    font-size: var(--re-text-h2);
    font-weight: var(--re-weight-bold);
    font-variant-numeric: tabular-nums;
    line-height: var(--re-leading-heading);
    color: var(--re-color-text);

    @media (width <= 37.5rem) {
        min-width: 0;
    }
}


/* ==========================================================================
   Answers: option rows, picture cards, method cards, counters, chips
   ==========================================================================
   Soft grey rows, no borders. The current choice turns white with a 2px pink
   ring and its indicator fills pink with a white tick. Nothing is chosen
   until the seller chooses.

     .re-options            the vertical list of answers
     .re-option             one answer row (button, aria-pressed / aria-checked;
                            or a <label> around a checkbox, chosen while it is checked)
     .re-indicator          its radio disc (default) or .re-indicator--box
     .re-picture-cards      three image answers in a row
     .re-method             an answer with an illustration tile (How to sell)
     .re-counters           bedrooms / bathrooms / car spaces steppers
     .re-chip               a small pill: an add-a-change tag, a band choice
   ========================================================================== */

/* The selected look, shared: white, pink ring. Forced colours draw it as a
   Highlight outline because box shadows are dropped there. */
.re-option,
.re-picture-card,
.re-method,
.re-chip {
    outline: 1px solid transparent;
    outline-offset: -1px;

    &:is([aria-pressed="true"], [aria-checked="true"], :has(> input:checked)) {
        background: var(--re-color-surface);
        box-shadow: inset 0 0 0 2px var(--re-color-action);
    }

    &:is(:focus-visible, :has(> input:focus-visible)) {
        outline: 2px solid var(--re-color-focus);
        outline-offset: 2px;
    }

    @media (forced-colors: active) {
        &:is([aria-pressed="true"], [aria-checked="true"], :has(> input:checked)) {
            outline: 2px solid Highlight;
            outline-offset: -2px;
        }
    }
}

/* ---- Option rows -------------------------------------------------------------- */

.re-options {
    display: grid;
    gap: var(--re-space-10);
}

.re-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--re-space-14);
    width: 100%;
    min-height: var(--re-size-option);
    padding: var(--re-space-14) var(--re-space-18);
    border-radius: var(--re-radius-md);
    background: var(--re-color-fill);
    color: var(--re-color-text);
    font-size: var(--re-text-body);
    font-weight: var(--re-weight-semibold);
    line-height: var(--re-leading-snug);
    text-align: left;
    cursor: pointer;
    transition: background-color var(--re-duration-fast) ease;

    @media (hover: hover) and (pointer: fine) {
        &:not([aria-pressed="true"], [aria-checked="true"], :disabled):hover {
            background: var(--re-color-fill-hover);
        }
    }

    @media (width <= 37.5rem) {
        gap: var(--re-space-12);
        padding: var(--re-space-12) var(--re-space-16);
    }
}

.re-option-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: var(--re-size-indicator);
    color: var(--re-color-text);
    font-size: var(--re-text-lede);
}

.re-option-text {
    display: grid;
    flex: 1;
    gap: var(--re-space-2);
    min-width: 0;

    & small {
        font-size: var(--re-text-small);
        font-weight: var(--re-weight-regular);
        line-height: var(--re-leading-small);
        color: var(--re-color-text-muted);
    }
}

/* ---- Indicators ------------------------------------------------------------------ */

.re-indicator {
    display: grid;
    place-items: center;
    flex: none;
    width: var(--re-size-indicator);
    height: var(--re-size-indicator);
    border-radius: var(--re-radius-round);
    background: var(--re-color-surface);
    box-shadow: inset 0 0 0 1.5px var(--re-color-control-ring);
    color: transparent;
    font-size: var(--re-text-caption);
    transition: transform var(--re-duration-fast) ease, background-color var(--re-duration-fast) ease;

    :is([aria-pressed="true"], [aria-checked="true"], :has(> input:checked)) > & {
        background: var(--re-color-action);
        box-shadow: none;
        color: var(--re-color-on-action);
        transform: scale(1.08);
    }

    @media (forced-colors: active) {
        border: 1.5px solid CanvasText;

        :is([aria-pressed="true"], [aria-checked="true"], :has(> input:checked)) > & {
            background: Highlight;
            color: HighlightText;
        }
    }
}

/* The square tick box of a multi-select (How to sell). */
.re-indicator--box {
    border-radius: var(--re-radius-check);
    box-shadow: inset 0 0 0 2px var(--re-color-control-ring);

    :is([aria-pressed="true"], [aria-checked="true"], :has(> input:checked)) > & {
        transform: none;
    }
}

/* ---- Picture cards (Changes since you bought) ---------------------------------- */

.re-picture-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--re-space-10);

    @media (width <= 37.5rem) {
        gap: var(--re-space-8);
    }
}

.re-picture-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--re-space-4);
    min-width: 0;
    padding: var(--re-space-14) var(--re-space-14) var(--re-space-18);
    border-radius: var(--re-radius-md);
    background: var(--re-color-fill);
    color: var(--re-color-text);
    text-align: left;
    cursor: pointer;
    transition: background-color var(--re-duration-fast) ease;

    & img {
        width: 100%;
        max-width: 9.375rem;
        aspect-ratio: 1;
        margin: 0 auto var(--re-space-8);
        object-fit: contain;
        filter: grayscale(1);
        opacity: 0.4;
        transition: filter var(--re-duration-base) ease, opacity var(--re-duration-base) ease;
    }

    & b {
        font-size: var(--re-text-body);
        font-weight: var(--re-weight-semibold);
        line-height: var(--re-leading-snug);
        text-wrap: balance;
    }

    & small {
        font-size: var(--re-text-small);
        line-height: 1.4;
        color: var(--re-color-text-muted);
    }

    & .re-indicator {
        position: absolute;
        top: var(--re-space-10);
        right: var(--re-space-10);
    }

    &[aria-pressed="true"] img {
        filter: none;
        opacity: 1;
    }

    @media (hover: hover) and (pointer: fine) {
        &:not([aria-pressed="true"]):hover img {
            filter: none;
            opacity: 1;
        }
    }

    @media (width <= 37.5rem) {
        padding: var(--re-space-10) var(--re-space-10) var(--re-space-14);
        border-radius: var(--re-radius-tile);

        & b {
            font-size: var(--re-text-small);
        }

        & small {
            font-size: var(--re-text-caption);
        }

        & .re-indicator {
            top: var(--re-space-8);
            right: var(--re-space-8);
        }
    }
}

/* ---- Method cards (How to sell; the review step's method rows) ----------------- */

.re-method {
    display: flex;
    align-items: center;
    gap: var(--re-space-14);
    width: 100%;
    min-height: var(--re-size-option);
    padding: var(--re-space-14) var(--re-space-18);
    border-radius: var(--re-radius-md);
    background: var(--re-color-fill);
    color: var(--re-color-text);
    text-align: left;
    cursor: pointer;
    transition: background-color var(--re-duration-fast) ease;

    &:disabled {
        cursor: default;
    }

    @media (hover: hover) and (pointer: fine) {
        &:not([aria-checked="true"], :disabled):hover {
            background: var(--re-color-fill-hover);
        }
    }

    @media (width <= 37.5rem) {
        gap: var(--re-space-12);
        padding: var(--re-space-12) var(--re-space-16);
    }
}

.re-method-tile {
    display: grid;
    place-items: center;
    flex: none;
    align-self: flex-start;
    width: var(--re-size-tile);
    height: var(--re-size-tile);
    border-radius: var(--re-radius-tile);
    background: var(--re-color-surface);

    & img {
        width: 2.875rem;
        height: 2.875rem;
    }

    :is([aria-checked="true"], .is-running) > & {
        background: var(--re-color-fill);
    }

    &.is-muted img {
        filter: grayscale(1);
        opacity: 0.45;
    }

    @media (width <= 37.5rem) {
        width: 3.5rem;
        height: 3.5rem;
        border-radius: var(--re-radius-sm);

        & img {
            width: 2.5rem;
            height: 2.5rem;
        }
    }
}

.re-method-text {
    display: grid;
    flex: 1;
    gap: var(--re-space-2);
    min-width: 0;
}

.re-method-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--re-space-4) var(--re-space-8);
    font-size: var(--re-text-body);
    font-weight: var(--re-weight-semibold);
    line-height: var(--re-leading-snug);
}

.re-method-sub {
    font-size: var(--re-text-small);
    line-height: var(--re-leading-small);
    color: var(--re-color-text-muted);
}

/* A status tag beside a title: white on the grey row, grey once chosen. */
.re-tag-pill {
    display: inline-flex;
    align-items: center;
    padding: var(--re-space-6) var(--re-space-10);
    border-radius: var(--re-radius-pill);
    background: var(--re-color-surface);
    font-size: var(--re-text-caption);
    font-weight: var(--re-weight-semibold);
    line-height: var(--re-leading-none);
    font-style: normal;
    color: var(--re-color-text);

    :is([aria-checked="true"], [aria-pressed="true"]) & {
        background: var(--re-color-fill);
    }
}

/* ---- Counters (bedrooms, bathrooms, car spaces) ------------------------------- */

.re-counters {
    display: grid;
    gap: var(--re-space-6);
}

.re-counter {
    display: flex;
    align-items: center;
    gap: var(--re-space-12);
    min-height: var(--re-space-56);
    padding: var(--re-space-6) var(--re-space-6) var(--re-space-6) var(--re-space-16);
    border-radius: var(--re-radius-md);
    background: var(--re-color-fill);
    outline: 1px solid transparent;
}

.re-counter-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: var(--re-size-indicator);
    color: var(--re-color-action);
    font-size: var(--re-text-lede);
}

.re-counter-label {
    flex: 1;
    min-width: 0;
    font-size: var(--re-text-body);
    font-weight: var(--re-weight-semibold);
}

.re-counter-controls {
    display: flex;
    align-items: center;
    gap: var(--re-space-6);
}

.re-counter-btn {
    display: grid;
    place-items: center;
    width: var(--re-size-tap);
    height: var(--re-size-tap);
    border-radius: var(--re-radius-round);
    background: var(--re-color-surface);
    box-shadow: var(--re-shadow-raised);
    color: var(--re-color-text);
    font-size: var(--re-text-small);
    cursor: pointer;
    outline: 1px solid transparent;
    transition: color var(--re-duration-fast) ease;

    &:disabled {
        color: var(--re-color-control-ring);
        cursor: default;
    }

    @media (hover: hover) and (pointer: fine) {
        &:not(:disabled):hover {
            color: var(--re-color-action);
        }
    }

    &:focus-visible {
        outline: 2px solid var(--re-color-focus);
        outline-offset: 2px;
    }
}

.re-counter-value {
    min-width: 2.125rem;
    text-align: center;
    font-size: var(--re-text-body);
    font-weight: var(--re-weight-semibold);
    font-variant-numeric: tabular-nums;
}

/* ---- Chips ------------------------------------------------------------------------ */

.re-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--re-space-8);
}

/* A grid of chips that share the width (cost and timing bands). */
.re-chips--grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
}

.re-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--re-space-8);
    min-height: var(--re-size-tap);
    padding: var(--re-space-8) var(--re-space-14);
    border-radius: var(--re-radius-pill);
    background: var(--re-color-fill);
    color: var(--re-color-text);
    font-size: var(--re-text-small);
    font-weight: var(--re-weight-semibold);
    line-height: var(--re-leading-snug);
    text-align: left;
    cursor: pointer;
    transition: background-color var(--re-duration-fast) ease;

    @media (hover: hover) and (pointer: fine) {
        &:not([aria-pressed="true"], [aria-checked="true"]):hover {
            background: var(--re-color-fill-hover);
        }
    }

    & > i {
        font-size: var(--re-text-caption);
        color: var(--re-color-text-muted);
    }

    & .re-indicator {
        width: 1.125rem;
        height: 1.125rem;
    }
}

/* Band chips sit in a grid and read as small option rows. */
.re-chips--grid .re-chip {
    border-radius: var(--re-radius-sm);
    font-size: var(--re-text-caption);
}


/* ==========================================================================
   Dialogs and sheets
   ==========================================================================
   A scrim over the page and a white panel: centred on desktop, rising from
   the foot of the screen on a phone (with a grab handle).

     .re-dialog            the scrim (fixed, full screen)
     .re-dialog--sheet     the panel docks to the foot of the screen on a phone
     .re-dialog-panel      the panel
     .re-dialog-panel--narrow  a confirm (small, centred text)
     .re-dialog-close--soft    the close on a grey disc (the Agent Pitch dialogs)
     .re-modal             a native <dialog>; --narrow, --confirm
     .re-modal-head        its title row (title, close)
     .re-modal-body        its scrolling body
   ========================================================================== */

.re-dialog {
    position: fixed;
    inset: 0;
    z-index: var(--re-z-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--re-space-16);
    background: var(--re-color-scrim);
}

.re-dialog--sheet {
    @media (width <= 37.5rem) {
        align-items: flex-end;
    }
}

.re-dialog-panel {
    width: 100%;
    max-width: 32rem;
    max-height: calc(100dvh - var(--re-space-32));
    overflow-y: auto;
    padding: var(--re-space-24);
    border-radius: var(--re-radius-xl);
    background: var(--re-color-surface);
    color: var(--re-color-text);
    box-shadow: var(--re-shadow-overlay);
    outline: 1px solid transparent;
}

.re-dialog-panel--narrow {
    max-width: 24rem;
    text-align: center;
}

.re-dialog-handle {
    display: none;
    width: var(--re-space-48);
    height: var(--re-size-progress);
    margin: 0 auto var(--re-space-20);
    border-radius: var(--re-radius-pill);
    background: var(--re-color-track);

    @media (width <= 37.5rem) {
        display: block;
    }
}

.re-dialog-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--re-space-16);
}

.re-dialog-close {
    display: grid;
    place-items: center;
    flex: none;
    width: var(--re-size-tap);
    height: var(--re-size-tap);
    margin: calc(-1 * var(--re-space-8)) calc(-1 * var(--re-space-8)) 0 0;
    border-radius: var(--re-radius-round);
    color: var(--re-color-text-muted);
    cursor: pointer;

    @media (hover: hover) and (pointer: fine) {
        &:not(:disabled):hover {
            background: var(--re-color-fill);
            color: var(--re-color-text);
        }
    }

    &:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }
}

/* On a grey disc at rest (the Agent Pitch dialogs, sp27): a dialog whose
   title runs long, so the close needs to read as a button, not an icon. */
.re-dialog-close--soft {
    margin: 0;
    background: var(--re-color-fill);
    color: var(--re-color-text);

    @media (hover: hover) and (pointer: fine) {
        &:not(:disabled):hover {
            background: var(--re-color-fill-hover);
        }
    }
}

/* A block of the panel under a small heading. */
.re-dialog-section {
    display: grid;
    gap: var(--re-space-10);
    margin-top: var(--re-space-28);
}

.re-dialog-actions {
    display: flex;
    gap: var(--re-space-12);
    margin-top: var(--re-space-24);

    & .re-btn {
        flex: 1;
        padding-inline: var(--re-space-16);
    }
}

/* ---- Native dialogs (<dialog>, opened with showModal()) --------------------------------------
   The property page's map and photos, and the Cash Offer page's confirms. */

.re-modal {
    width: calc(100% - 2 * var(--re-space-16));
    max-width: 56rem;
    max-height: calc(100dvh - var(--re-space-32));
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: var(--re-radius-xl);
    background: var(--re-color-surface);
    color: var(--re-color-text);
    box-shadow: var(--re-shadow-overlay);

    &[open] {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
    }

    /* The scrim, and the page behind it softened, as the dialogs have always
       drawn it (the blur came from www's old Tailwind base rule). */
    &::backdrop {
        background: var(--re-color-scrim);
        -webkit-backdrop-filter: blur(4px);
        backdrop-filter: blur(4px);
    }

    @media (width <= 37.5rem) {
        border-radius: var(--re-radius-lg);
    }
}

.re-modal--narrow {
    max-width: 40rem;
}

.re-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--re-space-12);
    padding: var(--re-space-12) var(--re-space-16) var(--re-space-12) var(--re-space-24);

    & .re-dialog-close {
        margin: 0;
    }

    @media (width <= 37.5rem) {
        padding-left: var(--re-space-20);
    }
}

.re-modal-title {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: var(--re-text-body);
    font-weight: var(--re-weight-semibold);
}

.re-modal-body {
    display: grid;
    gap: var(--re-space-16);
    overflow-y: auto;
    padding: 0 var(--re-space-24) var(--re-space-24);

    @media (width <= 37.5rem) {
        padding: 0 var(--re-space-20) var(--re-space-20);
    }
}

/* A confirm: the quiz's confirm anatomy (an icon disc, the question, one
   line, the actions) in a native dialog. */
.re-modal--confirm {
    max-width: 28rem;

    & .re-modal-body {
        padding-top: var(--re-space-24);
    }
}

.re-modal-confirm-head {
    display: flex;
    align-items: flex-start;
    gap: var(--re-space-16);

    & .re-dialog-close {
        margin: calc(-1 * var(--re-space-8)) calc(-1 * var(--re-space-8)) 0 auto;
    }
}

.re-modal-confirm-text {
    display: grid;
    flex: 1;
    gap: var(--re-space-4);
    min-width: 0;

    & p {
        margin: 0;
    }
}


/* ==========================================================================
   Address search (tags/address_search.cfm)
   ==========================================================================
   In core because more than one area draws it: the home page's hero and My
   Properties. A white pill, a button's height: pin, field, go button. Typing opens a floating list of
   suggestions; on a phone a full-height tray takes over the screen instead
   (script-driven, see the tag). The highlighted suggestion gets the pink
   ring the kit uses for every current choice.

     .re-search--ink       black go button (the default is pink)
     .re-search--labelled  the go button has words: on a phone it sits under
                           the field, full width
   ========================================================================== */

.re-search {
    width: 100%;
}

.re-search-shell {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--re-space-8);
    padding: var(--re-space-6) var(--re-space-6) var(--re-space-6) var(--re-space-20);
    border-radius: var(--re-radius-pill);
    background: var(--re-color-surface);
    color: var(--re-color-text);
    box-shadow: var(--re-shadow-float);
    outline: 1px solid transparent;
    transition: box-shadow var(--re-duration-fast) ease;

    &:focus-within {
        box-shadow: var(--re-shadow-float), inset 0 0 0 2px var(--re-color-action);
    }
}

/* The pin and the field. Part of the shell's row, except in a labelled search
   on a phone, where they are a pill of their own (below). */
.re-search-field {
    display: contents;
}

.re-search-pin {
    display: grid;
    place-items: center;
    flex: none;
    width: var(--re-size-indicator);
    color: var(--re-color-action);
    font-size: var(--re-text-h3);
}

/* In the field on the page the pin is a quiet grey mark, as the Marketing
   site's address fields draw it; in the tray it stays pink. */
.re-search-field .re-search-pin {
    width: var(--re-space-20);
    color: var(--re-color-text-muted);
    font-size: var(--re-text-lede);
}

.re-search-input {
    display: block;
    flex: 1;
    min-width: 0;
    min-height: var(--re-size-tap);
    padding: 0;
    border: 0;
    background: transparent;
    font-size: var(--re-text-body);
    color: var(--re-color-text);
    outline: none;
    /* A link to the field's fragment (/#address) lands with the field around the
       middle of the window, where the search then brings it, not under its top edge. */
    scroll-margin-block: 45vh;

    &::placeholder {
        color: var(--re-color-text-muted);
    }

    &:focus-visible {
        outline: none;
    }
}

/* The go button: round arrow by default, a labelled pill when it has text. */
.re-search-go {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    min-width: var(--re-size-tap);
    height: var(--re-size-tap);
    padding: 0 var(--re-space-24);
    border-radius: var(--re-radius-pill);
    background: var(--re-color-action);
    color: var(--re-color-on-action);
    font-size: var(--re-text-body);
    font-weight: var(--re-weight-semibold);
    line-height: var(--re-leading-none);
    white-space: nowrap;
    cursor: pointer;
    transition: background-color var(--re-duration-fast) ease;

    @media (hover: hover) and (pointer: fine) {
        &:hover {
            background: var(--re-color-action-hover);
        }
    }

    &:focus-visible {
        outline-offset: 3px;
    }

    /* Busy, while a chosen address becomes a property: the pill draws in to a
       round button holding a spinner, at the field's end, and the field takes the
       room it gives up, so more of the chosen address shows. The search sets
       --re-search-go-width to the button's own width as the choice starts, so the
       width has a length to ease from (auto has none); without it the button just
       becomes round. Its words stay in the page, unseen, so it keeps its name. */
    width: var(--re-search-go-width, auto);
    overflow: hidden;

    &:disabled {
        cursor: progress;
    }

    &.is-busy {
        width: var(--re-size-tap);
        padding-inline: 0;
    }

    &.is-busy .re-search-go-face {
        opacity: 0;
    }

    &.is-busy .re-search-go-spinner {
        opacity: 1;
        transform: scale(1);
    }
}

.re-search-go-face {
    flex: none;
}

/* No text caret blinking in the field while its choice resolves. */
.re-search-input[aria-busy="true"] {
    caret-color: transparent;
}

.re-search-go-spinner {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 1.25rem;
    height: 1.25rem;
    opacity: 0;
    transform: scale(0.5);
}

/* The order of the change: going busy, the words go first, the pill draws in,
   and the spinner arrives as it closes. Coming back (a choice that failed), the
   spinner goes, the pill opens, and the words return last. */
@media (prefers-reduced-motion: no-preference) {
    .re-search-go {
        transition:
            background-color var(--re-duration-fast) ease,
            width var(--re-duration-morph) var(--re-ease),
            padding var(--re-duration-morph) var(--re-ease);
    }

    .re-search-go-face {
        transition: opacity var(--re-duration-fast) ease var(--re-duration-base);
    }

    .re-search-go.is-busy .re-search-go-face {
        transition-delay: 0s;
    }

    .re-search-go-spinner {
        transition: opacity var(--re-duration-fast) ease, transform var(--re-duration-base) var(--re-ease);
    }

    .re-search-go.is-busy .re-search-go-spinner {
        transition-delay: var(--re-duration-fast);
    }
}

.re-search-go--icon {
    width: var(--re-size-tap);
    padding: 0;
}

.re-search--ink .re-search-go {
    background: var(--re-color-secondary);
    color: var(--re-color-on-secondary);

    @media (hover: hover) and (pointer: fine) {
        &:hover {
            background: var(--re-color-secondary-hover);
        }
    }
}

/* A labelled search on a phone: the field keeps the white pill and the button
   goes under it at a button's full height, since side by side the words would
   leave no room to read the field. */
@media (width <= 37.5rem) {
    .re-search--labelled {
        & .re-search-shell {
            flex-direction: column;
            align-items: stretch;
            gap: var(--re-space-8);
            padding: 0;
            border-radius: 0;
            background: transparent;
            box-shadow: none;
        }

        & .re-search-field {
            display: flex;
            align-items: center;
            gap: var(--re-space-8);
            min-height: var(--re-size-control);
            padding: 0 var(--re-space-20);
            border-radius: var(--re-radius-pill);
            background: var(--re-color-surface);
            box-shadow: var(--re-shadow-float);
            outline: 1px solid transparent;
            transition: box-shadow var(--re-duration-fast) ease;
        }

        /* The pink ring the shell takes on focus, on the pill that is the field
           here. With script the field hands focus to the tray, so this shows
           where the field itself keeps it. */
        & .re-search-field:focus-within {
            box-shadow: var(--re-shadow-float), inset 0 0 0 2px var(--re-color-action);
        }

        & .re-search-go {
            height: var(--re-size-control);
        }
    }
}

/* ---- Suggestions (floating list, desktop) ------------------------------ */

.re-search-popover {
    position: fixed;
    z-index: var(--re-z-overlay);
    overflow: hidden;
    border-radius: var(--re-radius-md);
    background: var(--re-color-surface);
    color: var(--re-color-text);
    box-shadow: var(--re-shadow-overlay);
    outline: 1px solid transparent;
}

.re-search-list {
    overflow-y: auto;
    padding: var(--re-space-6);

    &::-webkit-scrollbar {
        width: 6px;
    }

    &::-webkit-scrollbar-track {
        background: transparent;
    }

    &::-webkit-scrollbar-thumb {
        border-radius: var(--re-radius-pill);
        background: var(--re-color-track);
    }
}

.re-search-option {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--re-space-4);
    min-height: var(--re-space-56);
    padding: var(--re-space-8) var(--re-space-14);
    border-radius: var(--re-radius-sm);
    cursor: default;

    &.is-highlighted {
        box-shadow: inset 0 0 0 2px var(--re-color-action);
    }

    @media (forced-colors: active) {
        &.is-highlighted {
            outline: 2px solid Highlight;
            outline-offset: -2px;
        }
    }
}

/* The typed words come back wrapped (<mark> from Google Places, <em> from the
   older search): bold in the text's own colour, never the browser's yellow. */
.re-search-option-text {
    font-size: var(--re-text-body);
    line-height: var(--re-leading-snug);

    & :is(mark, em) {
        background: none;
        color: inherit;
        font-style: normal;
        font-weight: var(--re-weight-bold);
    }
}

/* The tray's row: a pin, then street over suburb. */
.re-search-option--pinned {
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: var(--re-space-12);
    padding-block: var(--re-space-10);
}

.re-search-option-pin {
    flex: none;
    margin-top: var(--re-space-2);
    color: var(--re-color-action);
    font-size: var(--re-text-lede);
}

.re-search-option-lines {
    display: grid;
    gap: var(--re-space-2);
    min-width: 0;
}

.re-search-option-street {
    font-weight: var(--re-weight-semibold);
}

.re-search-option-place {
    font-size: var(--re-text-small);
    color: var(--re-color-text-muted);
}

.re-search-recent {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: var(--re-space-4);
    padding: var(--re-space-4) var(--re-space-8);
    border-radius: var(--re-radius-pill);
    background: var(--re-color-fill);
    font-size: var(--re-text-caption);
    font-weight: var(--re-weight-semibold);
    line-height: var(--re-leading-none);
    color: var(--re-color-text-muted);
}

/* The keyboard hint under the floating list. */
.re-search-keys {
    display: flex;
    flex-wrap: wrap;
    gap: var(--re-space-4) var(--re-space-14);
    margin: 0 var(--re-space-6);
    padding: var(--re-space-8) var(--re-space-8) var(--re-space-10);
    border-top: 1px solid var(--re-color-fill);
    font-size: var(--re-text-caption);
    line-height: var(--re-leading-snug);
    color: var(--re-color-text-muted);

    & kbd {
        margin-right: var(--re-space-2);
        padding: var(--re-space-2) var(--re-space-6);
        border: 1px solid var(--re-color-track);
        border-radius: var(--re-radius-key);
        font-family: var(--re-font-body);
        font-size: var(--re-text-caption);
        font-weight: var(--re-weight-semibold);
        color: var(--re-color-text);
    }
}

.re-search-empty {
    padding: var(--re-space-20) var(--re-space-16);
    text-align: center;
    font-size: var(--re-text-small);
    color: var(--re-color-text-muted);
}

/* Why the last choice failed, above the suggestions to pick again. */
.re-search-failure {
    padding: var(--re-space-12) var(--re-space-16);
    text-align: center;
    font-size: var(--re-text-small);
    font-weight: var(--re-weight-semibold);
    color: var(--re-color-text);
}

/* ---- Tray (phone) -------------------------------------------------------- */

/* A manual popover so it renders in the top layer above any stacking context
   the search sits in. The UA popover box is reset; height and top are set
   from visualViewport by script so the tray never sits under the keyboard. */
.re-search-tray {
    display: none;
    flex-direction: column;
    position: fixed;
    inset: 0 0 auto;
    width: auto;
    height: 100dvh;
    margin: 0;
    padding: 0;
    border: 0;
    background: var(--re-color-page);
    color: var(--re-color-text);

    /* Two rules, not one list: a browser without the Popover API drops any
       selector list containing :popover-open, which would take the
       data-open fallback down with it. */
    &:popover-open {
        display: flex;
    }

    &[data-open] {
        display: flex;
    }
}

.re-search-tray-brand {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: space-between;
    padding: calc(var(--re-space-12) + env(safe-area-inset-top)) var(--re-space-16) var(--re-space-4);

    & img {
        width: auto;
        height: 1.25rem;
    }
}

.re-search-tray-field {
    flex: none;
    padding: var(--re-space-4) var(--re-space-12) var(--re-space-8);
}

/* The address search's Cloudflare Turnstile step (lib turnstile, action gday_address_choice):
   only after a pick, and only when Cloudflare asks the visitor to tick its box. The address
   picked, as its suggestion looked, then the box, in place of the suggestions: inset as the
   desktop list's rows are, and as the tray's are under its field. */
.re-search-check {
    display: grid;
    gap: var(--re-space-8);
    padding: var(--re-space-6);
}

.re-search-chosen {
    margin: 0;
}

.re-search-tray .re-search-check {
    flex: none;
    padding: var(--re-space-4) var(--re-space-8) var(--re-space-8);
}

.re-search-tray-label {
    display: flex;
    align-items: center;
    gap: var(--re-space-8);
    min-width: 0;
    padding: var(--re-space-2) var(--re-space-12) var(--re-space-2) var(--re-space-14);
    border-radius: var(--re-radius-pill);
    background: var(--re-color-surface);
    box-shadow: inset 0 0 0 2px var(--re-color-track);
    outline: 1px solid transparent;

    &:focus-within {
        box-shadow: inset 0 0 0 2px var(--re-color-action);
    }

    & .re-search-input {
        min-height: var(--re-size-tap);
    }
}

.re-search-clear {
    display: grid;
    place-items: center;
    flex: none;
    width: var(--re-size-tap);
    height: var(--re-size-tap);
    margin-inline-end: calc(-1 * var(--re-space-8));
    border-radius: var(--re-radius-round);
    color: var(--re-color-text-muted);
    cursor: pointer;
}

/* The visible clear mark: a small grey disc inside the 44px target. */
.re-search-clear-disc {
    display: grid;
    place-items: center;
    width: 1.625rem;
    height: 1.625rem;
    border-radius: var(--re-radius-round);
    background: var(--re-color-fill);
    font-size: var(--re-text-small);
}

.re-search-tray-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: var(--re-space-4) var(--re-space-8) var(--re-space-8);
    transition: opacity var(--re-duration-fast) ease;

    &[aria-busy="true"] {
        pointer-events: none;
        opacity: 0.5;
    }
}


/* ==========================================================================
   Start selling (tags/start_selling.cfm)
   ==========================================================================
   The words a sale starts with, on a dark ground: the home page's hero and
   My Properties with no property yet. In core because two areas draw them.

     .re-start-title   the heading, the white wordmark in its line
     .re-start-line    the line under it
     .re-start-chips   three reassurances under the address search
   ========================================================================== */

/* One heading, the wordmark in its line, so its accessible name reads as the
   sentence. */
.re-start-title {
    margin: 0 0 var(--re-space-24);
    font-family: var(--re-font-display);
    font-size: var(--re-text-display);
    font-weight: var(--re-weight-bold);
    line-height: 1.05;
    letter-spacing: var(--re-tracking-display);

    & span {
        white-space: nowrap;
    }

    & img {
        display: inline-block;
        width: auto;
        height: 1.55em;
        /* stylelint-disable-next-line declaration-property-value-allowed-list -- the wordmark sits in the line of type, so its offsets are the type's (em), not the page's space scale */
        margin: 0 0 0 0.08em;
        vertical-align: -0.5em;
    }
}

.re-start-line {
    max-width: 33.75rem;
    margin: 0 0 var(--re-space-32);
    font-size: var(--re-text-lede);
    line-height: var(--re-leading-body);
    color: var(--re-color-hero-text);
    text-wrap: pretty;
}

/* Three reassurances under the search: the first two share a row and the
   third starts the next (the break between them is the ::after), each on its
   own line on a phone. */
.re-start-chips {
    display: flex;
    flex-wrap: wrap;
    column-gap: var(--re-space-8);
    margin-top: var(--re-space-6);

    /* A row of no height, which is why the rows' space is each chip's margin, not a gap. */
    &::after {
        content: "";
        flex-basis: 100%;
        order: 2;
    }

    & li {
        order: 1;
        display: inline-flex;
        margin-top: var(--re-space-8);
        align-items: center;
        gap: var(--re-space-8);
        padding: var(--re-space-8) var(--re-space-14) var(--re-space-8) var(--re-space-12);
        border-radius: var(--re-radius-pill);
        background: var(--re-color-photo-card);
        color: var(--re-color-text-inverse-muted);
        font-size: var(--re-text-small);
        font-weight: var(--re-weight-medium);
        line-height: var(--re-leading-title);
    }

    & li:nth-child(n + 3) {
        order: 3;
    }

    & li > i {
        flex: none;
        font-size: var(--re-text-icon-md);
        color: var(--re-color-action);
    }

    @media (width <= 37.5rem) {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (width <= 37.5rem) {
    .re-start-chips::after {
        display: none;
    }
}


/* ==========================================================================
   Site header (tags/re_header.cfm, tags/re_header_account.cfm)
   ==========================================================================
   The same on every page, and drawn as the Marketing site's header is, so the
   bar reads the same on its pages and www's: logo, nav (14/500), then Log in
   (or the account slot), the pink Get started and, for a visitor, the black
   For agents pill. No hairline: the bar is white on the page. Each nav group
   opens a white panel on hover and on keyboard focus (the Marketing site's
   nav, lib marketing_nav). Below --re-header-compact (where the nav no longer
   fits on one row) the nav, Log in and For agents fold into a menu behind the
   burger, at the bar's end; Get started and a signed-in account slot stay in
   the bar.

     .re-header--solid    white bar in the page flow (default)
     .re-header--sticky   the solid bar stays at the top of the window, with a
                          soft shadow once the page has scrolled (the homepage)
     .re-header--overlay  transparent, white type, over a photo or gradient
   ========================================================================== */

/* --re-header-bar-height: the bar's height, which the sheets measure the
   room below it by. */
.re-header {
    --re-header-bar-height: 4rem;

    position: relative;
    z-index: var(--re-z-header);
    width: 100%;
}

.re-header--solid {
    background: var(--re-color-surface);
    color: var(--re-color-text);
}

/* For a page with no sticky chrome of its own. The shadow comes in over the
   first 64px of scroll, where the browser can tie an animation to the scroll
   position; elsewhere the bar stays flat. */
.re-header--sticky {
    position: sticky;
    top: 0;

    @supports (animation-timeline: scroll()) {
        animation: re-header-shadow linear both;
        animation-timeline: scroll(root);
        animation-range: 0 64px;
    }
}

@keyframes re-header-shadow {
    from {
        box-shadow: none;
    }

    to {
        box-shadow: var(--re-shadow-header);
    }
}

/* Below the environment bar, which is 0 high in production (cf_environment_bar). */
.re-header--overlay {
    position: absolute;
    inset: var(--environment-bar-height, 0px) 0 auto;
    background: transparent;
    color: var(--re-color-text-inverse);
}

.re-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--re-space-16);
    min-height: var(--re-header-bar-height);
}

.re-header-start {
    display: flex;
    align-items: center;
    gap: var(--re-space-40);
    min-width: 0;
}

.re-header-logo {
    display: flex;
    align-items: center;
    min-height: var(--re-size-tap);
    -webkit-user-select: none;
    user-select: none;

    & img {
        width: auto;
        height: 1.8125rem;

        @media (width <= 52.5rem) {
            height: 1.5rem;
        }
    }
}

.re-header-nav {
    display: flex;
    align-items: center;
    gap: var(--re-space-24);

    @media (width <= 52.5rem) {
        display: none;
    }
}

/* A nav link: softened ink that turns pink under the pointer. Over a photo or
   gradient (the overlay header) pink would not read, so the label takes an
   underline instead. */
.re-header-link {
    display: inline-flex;
    align-items: center;
    min-height: var(--re-size-tap);
    font-size: var(--re-text-small);
    font-weight: var(--re-weight-medium);
    line-height: var(--re-leading-none);
    white-space: nowrap;
    color: inherit;

    .re-header--solid & {
        color: color-mix(in srgb, var(--re-color-text) 85%, transparent);
        transition: color var(--re-duration-fast) ease;
    }

    .re-header--solid &:focus-visible {
        color: var(--re-color-action);
    }

    @media (hover: hover) and (pointer: fine) {
        .re-header--solid &:hover,
        .re-header--solid .re-header-group:hover > & {
            color: var(--re-color-action);
        }
    }
}

/* The underline is the label's own: on the link it would reach the chevron (a
   flex item, so it inherits the decoration) and flip above it when it turns. */
.re-header--overlay .re-header-link-text {
    -webkit-text-decoration: underline;
    text-decoration: underline;
    -webkit-text-decoration-color: transparent;
    text-decoration-color: transparent;
    text-underline-offset: 4px;
    transition: text-decoration-color var(--re-duration-fast) ease;

    @media (hover: hover) and (pointer: fine) {
        .re-header-link:hover > & {
            -webkit-text-decoration-color: currentcolor;
            text-decoration-color: currentcolor;
        }
    }

    .re-header-link:focus-visible > & {
        -webkit-text-decoration-color: currentcolor;
        text-decoration-color: currentcolor;
    }
}

/* A nav group: its link, and the panel it opens on hover or keyboard focus. */
.re-header-group {
    position: relative;

    & .re-header-link {
        gap: var(--re-space-6);
    }
}

/* A wrapper, not the icon itself: Font Awesome's unlayered stylesheet sets the
   icon's display and would beat a transform on it. */
.re-header-chevron {
    display: inline-flex;
    font-size: var(--re-text-icon-sm);
    line-height: var(--re-leading-none);
    opacity: 0.7;
    transition: transform var(--re-duration-fast) ease;
}

/* Centred under its link, starting at the link's foot (inside the bar's own
   height), so the pointer crosses no gap on its way into the panel. */
.re-header-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    visibility: hidden;
    opacity: 0;
    transform: translateX(-50%);
    transition: opacity var(--re-duration-base) ease, visibility var(--re-duration-base);
}

.re-header-group:is(:hover, :focus-within) {
    & .re-header-panel {
        visibility: visible;
        opacity: 1;
    }

    & .re-header-chevron {
        transform: rotate(180deg);
    }
}

.re-header-panel-card {
    display: grid;
    gap: var(--re-space-4);
    width: 22.5rem;
    padding: var(--re-space-12);
    border-radius: var(--re-radius-md);
    background: var(--re-color-surface);
    color: var(--re-color-text);
    box-shadow: var(--re-shadow-overlay);
    outline: 1px solid transparent;
}

.re-header-panel--wide .re-header-panel-card {
    width: 37.5rem;
}

.re-header-panel-items {
    display: grid;
    gap: var(--re-space-4);

    .re-header-panel--wide & {
        grid-template-columns: 1fr 1fr;
    }
}

/* An item's tile turns white as its row takes the pink tint. */
.re-header-panel-item {
    display: flex;
    align-items: center;
    gap: var(--re-space-12);
    min-height: var(--re-size-tap);
    padding: var(--re-space-8) var(--re-space-12);
    border-radius: var(--re-radius-sm);
    font-size: var(--re-text-small);
    font-weight: var(--re-weight-semibold);
    line-height: 1.35;
    transition: background-color var(--re-duration-fast) ease;

    @media (hover: hover) and (pointer: fine) {
        &:hover {
            background: var(--re-color-action-tint);
        }

        &:hover .re-header-panel-icon {
            background: var(--re-color-surface);
        }
    }
}

.re-header-panel-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--re-radius-sm);
    background: var(--re-color-action-tint);
    color: var(--re-color-action);

    & svg {
        width: 1.125rem;
        height: 1.125rem;
    }
}

/* A product illustration in place of an icon: on white, so its own colours read. */
.re-header-panel-icon--illustration {
    background: var(--re-color-surface);

    & img {
        width: 1.75rem;
        height: 1.75rem;
    }
}

.re-header-panel-note {
    padding: var(--re-space-6) var(--re-space-12) var(--re-space-10);
    font-size: var(--re-text-small);
    line-height: var(--re-leading-body);
    color: var(--re-color-text-muted);
}

.re-header-panel-foot {
    display: flex;
    gap: var(--re-space-8);
    margin-top: var(--re-space-8);
}

/* A panel's way to the rest of its section: a grey row, its arrow pink. */
.re-header-panel-foot-link {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: var(--re-space-8);
    min-height: var(--re-size-tap);
    padding: var(--re-space-12);
    border-radius: var(--re-radius-sm);
    background: var(--re-color-fill);
    font-size: var(--re-text-small);
    font-weight: var(--re-weight-semibold);
    line-height: var(--re-leading-none);
    transition: background-color var(--re-duration-fast) ease;

    & > i {
        font-size: var(--re-text-icon-md);
        color: var(--re-color-action);
    }

    @media (hover: hover) and (pointer: fine) {
        &:hover {
            background: var(--re-color-action-tint);
        }
    }
}

/* Right: Log in or the account slot, Get started, the agents' link for a
   visitor, and the burger at the compact width. It fills the bar's height, so
   the account menu can hang from the bar's bottom edge. */
.re-header-end {
    display: flex;
    align-self: stretch;
    align-items: center;
    gap: var(--re-space-8);
}

/* The header's one pink action: the way to the address search. */
.re-header-start-link {
    display: inline-flex;
    align-items: center;
    min-height: var(--re-size-tap);
    padding: 0 var(--re-space-20);
    border-radius: var(--re-radius-pill);
    background: var(--re-color-action);
    color: var(--re-color-on-action);
    font-size: var(--re-text-small);
    font-weight: var(--re-weight-semibold);
    line-height: var(--re-leading-none);
    white-space: nowrap;
    transition: background-color var(--re-duration-fast) ease;

    @media (hover: hover) and (pointer: fine) {
        &:hover {
            background: var(--re-color-action-hover);
        }
    }

    @media (width <= 52.5rem) {
        padding: 0 var(--re-space-16);
    }
}

/* A black pill with an arrow out: the way to the agents' pages, for a visitor.
   Over a photo or gradient it is white. */
.re-header-agents {
    display: inline-flex;
    align-items: center;
    gap: var(--re-space-4);
    min-height: var(--re-size-tap);
    padding: 0 var(--re-space-18);
    border-radius: var(--re-radius-pill);
    background: var(--re-color-secondary);
    color: var(--re-color-on-secondary);
    font-size: var(--re-text-small);
    font-weight: var(--re-weight-semibold);
    line-height: var(--re-leading-none);
    white-space: nowrap;
    transition: background-color var(--re-duration-fast) ease;

    & > i {
        font-size: var(--re-text-icon-md);
    }

    .re-header--overlay & {
        background: var(--re-color-surface);
        color: var(--re-color-text);
    }

    @media (hover: hover) and (pointer: fine) {
        &:hover {
            background: var(--re-color-secondary-hover);
        }

        .re-header--overlay &:hover {
            background: var(--re-color-fill);
        }
    }

    @media (width <= 52.5rem) {
        display: none;
    }
}

.re-header-burger {
    position: relative;
    display: none;
    place-items: center;
    width: var(--re-size-tap);
    height: var(--re-size-tap);
    border-radius: var(--re-radius-round);
    color: inherit;
    font-size: var(--re-text-h3);
    cursor: pointer;

    @media (width <= 52.5rem) {
        display: grid;
    }
}

/* ---- Header sheets ------------------------------------------------------- */

/* The two menus the bar opens (the site menu behind the burger, the account
   menu behind the avatar) hang from the bar's bottom edge: square where they
   meet it, with a hairline along that edge, and rounded below. So each reads as part of the bar that opened it, not as a
   card floating over the page. At the header compact width both span the
   header over a scrim (.re-header-scrim); above it the account menu sits
   under its trigger (.re-account-menu). One is open at a time (re_header.cfm's
   menu). A sheet is never taller than the window below the bar: on a short
   screen (a phone on its side) it scrolls within itself, since the page
   beneath is held still. */
.re-header-sheet {
    position: absolute;
    top: 100%;
    max-height: calc(100dvh - var(--environment-bar-height, 0px) - var(--re-header-bar-height));
    overflow-y: auto;
    overscroll-behavior: contain;
    border-top: 1px solid var(--re-color-track);
    border-end-start-radius: var(--re-radius-lg);
    border-end-end-radius: var(--re-radius-lg);
    background: var(--re-color-surface);
    color: var(--re-color-text);
    box-shadow: var(--re-shadow-float);
    outline: 1px solid transparent;
}

/* Behind an open sheet at the header compact width: dims the page, takes the
   tap that closes the sheet, and the page beneath stops scrolling. Teleported
   to <body> (re_header.cfm): inside the header's own layer it could not sit
   under the bar and over the page at once. */
.re-header-scrim {
    position: fixed;
    inset: 0;
    z-index: var(--re-z-header-scrim);
    background: var(--re-color-scrim);

    @media (width > 52.5rem) {
        display: none;
    }
}

/* Set on <html> while a header sheet is open (re_header.cfm). */
.re-header-sheet-open {
    @media (width <= 52.5rem) {
        overflow: hidden;
    }
}

/* The site menu at the header compact width, the header's full width: Log in
   for a visitor, the nav's links, Support, the agents' link, then Get started. */
.re-header-menu {
    inset-inline: 0;
    padding: var(--re-space-8) var(--re-space-8) var(--re-space-16);
    display: flex;
    flex-direction: column;
    gap: var(--re-space-2);

    @media (width > 52.5rem) {
        display: none;
    }
}

.re-header-menu-link {
    display: flex;
    align-items: center;
    gap: var(--re-space-6);
    min-height: var(--re-size-tap);
    padding: 0 var(--re-space-16);
    border-radius: var(--re-radius-sm);
    font-size: var(--re-text-body);
    font-weight: var(--re-weight-semibold);

    & > i {
        font-size: var(--re-text-icon-md);
    }

    @media (hover: hover) and (pointer: fine) {
        &:hover {
            background: var(--re-color-fill);
        }
    }
}

/* The agents' link is the way out of the homeowners' site: grey, a little apart. */
.re-header-menu-link--agents {
    margin-top: var(--re-space-8);
    color: var(--re-color-text-muted);
}

/* Get started closes the site menu: the pink button, full width. */
.re-header-menu-start {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--re-size-control);
    margin: var(--re-space-12) var(--re-space-8) 0;
    padding: 0 var(--re-space-32);
    border-radius: var(--re-radius-pill);
    background: var(--re-color-action);
    color: var(--re-color-on-action);
    font-size: var(--re-text-body);
    font-weight: var(--re-weight-semibold);
    line-height: var(--re-leading-none);

    @media (hover: hover) and (pointer: fine) {
        &:hover {
            background: var(--re-color-action-hover);
        }
    }
}

/* ---- Account slot -------------------------------------------------------- */

/* The slot, and the menu's wrap in it, fill the bar's height (as .re-header-end
   does), so the account menu's top: 100% is the bar's bottom edge, where the
   sheets hang. */
.re-account {
    display: flex;
    align-self: stretch;
    align-items: center;
}

/* Signed out: the log in link as plain text, so Get started stays the bar's one
   pink action. At the header compact width it is in the site menu instead. */
.re-account-login {
    display: inline-flex;
    align-items: center;
    min-height: var(--re-size-tap);
    padding: 0 var(--re-space-12);
    font-size: var(--re-text-small);
    font-weight: var(--re-weight-semibold);
    line-height: var(--re-leading-none);
    color: inherit;
    transition: color var(--re-duration-fast) ease;

    @media (hover: hover) and (pointer: fine) {
        .re-header--solid &:hover {
            color: var(--re-color-action);
        }

        .re-header--overlay &:hover {
            -webkit-text-decoration: underline;
            text-decoration: underline;
            text-underline-offset: 4px;
        }
    }

    @media (width <= 52.5rem) {
        display: none;
    }
}

/* The menu's anchor above the header compact width. At that width and below,
   it lets go, so the menu spans the header like the site menu. */
.re-account-menu-wrap {
    position: relative;
    display: flex;
    align-self: stretch;
    align-items: center;

    @media (width <= 52.5rem) {
        position: static;
    }
}

/* Signed in: the avatar disc, then the name and a chevron from tablet up. */
.re-account-trigger {
    display: inline-flex;
    align-items: center;
    gap: var(--re-space-8);
    min-height: var(--re-size-tap);
    padding: 0 var(--re-space-4);
    color: inherit;
    font-size: var(--re-text-small);
    font-weight: var(--re-weight-semibold);
    line-height: var(--re-leading-none);
    cursor: pointer;

    /* A wrapper, not the icon itself: Font Awesome's unlayered stylesheet sets
       the icon's display, which would beat the phone rule that hides it. */
    & .re-account-chevron {
        display: inline-flex;
        font-size: var(--re-text-caption);
        transition: transform var(--re-duration-fast) ease;

        @media (width <= 37.5rem) {
            display: none;
        }
    }

    &[aria-expanded="true"] .re-account-chevron {
        transform: rotate(180deg);
    }

    /* Open, the disc takes a pink ring: on a phone, where the chevron is
       hidden, it is the one mark of which control opened the menu. */
    &[aria-expanded="true"] .re-avatar {
        box-shadow: 0 0 0 2px var(--re-color-surface), 0 0 0 4px var(--re-color-action);
    }
}

.re-account-name {
    max-width: 10rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    @media (width <= 37.5rem) {
        display: none;
    }
}

.re-avatar {
    position: relative;
    display: grid;
    place-items: center;
    flex: none;
    width: 2.125rem;
    height: 2.125rem;
    border-radius: var(--re-radius-round);
    background: var(--re-color-secondary);
    color: var(--re-color-on-secondary);
    font-size: var(--re-text-caption);
    font-weight: var(--re-weight-semibold);
    transition: box-shadow var(--re-duration-fast) ease;

    & img {
        width: 100%;
        height: 100%;
        border-radius: inherit;
        object-fit: cover;
    }
}

/* Over a photo or gradient the disc turns white so it reads on any surface. */
.re-header--overlay .re-avatar {
    background: var(--re-color-surface);
    color: var(--re-color-text);
}

/* Unread messenger replies, waiting behind Help in the account menu at the
   header compact width (where the messenger's launcher is hidden): a pink dot
   on the disc's corner (cf_intercom_snippet shows it). Above that width the
   launcher carries its own badge. */
.re-account-unread {
    position: absolute;
    top: calc(-1 * var(--re-space-2));
    right: calc(-1 * var(--re-space-2));
    width: var(--re-space-10);
    height: var(--re-space-10);
    border: 2px solid var(--re-color-surface);
    border-radius: var(--re-radius-round);
    background: var(--re-color-action);

    @media (width > 52.5rem) {
        display: none;
    }
}

.re-account-menu {
    right: 0;
    width: 16rem;

    @media (width <= 52.5rem) {
        left: 0;
        width: auto;
    }
}

.re-account-menu-head {
    padding: var(--re-space-14) var(--re-space-16) var(--re-space-10);

    & p {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

.re-account-menu-list {
    display: flex;
    flex-direction: column;
    padding: 0 var(--re-space-6) var(--re-space-6);
}

.re-account-menu-item {
    display: flex;
    align-items: center;
    gap: var(--re-space-10);
    min-height: var(--re-size-tap);
    padding: 0 var(--re-space-10);
    border-radius: var(--re-radius-sm);
    font-size: var(--re-text-small);

    & > i {
        width: 1rem;
        text-align: center;
        color: var(--re-color-text-muted);
    }

    @media (hover: hover) and (pointer: fine) {
        &:hover {
            background: var(--re-color-fill);
        }
    }
}

/* A property under My Properties: indented under its parent item. */
.re-account-menu-item--sub {
    padding-inline-start: var(--re-space-36);
    color: var(--re-color-text-muted);

    & span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Help: the messenger's way in at the header compact width, where its launcher
   is hidden (cf_intercom_snippet); above it, the launcher is the way in. */
.re-account-menu-item--help {
    @media (width > 52.5rem) {
        display: none;
    }
}

/* Help's count of unread messenger replies (cf_intercom_snippet fills it). */
.re-account-menu-unread {
    display: inline-grid;
    place-items: center;
    min-width: var(--re-space-20);
    height: var(--re-space-20);
    padding: 0 var(--re-space-6);
    border-radius: var(--re-radius-pill);
    background: var(--re-color-action);
    color: var(--re-color-on-action);
    font-size: var(--re-text-caption);
    font-weight: var(--re-weight-semibold);
    line-height: var(--re-leading-none);
}


/* ==========================================================================
   Site footer (tags/re_footer.cfm)
   ==========================================================================
   Ink band: the wordmark and line, the link columns under small caps
   headings, then the legal line. Two columns on a phone.
   ========================================================================== */

.re-footer {
    padding-block: var(--re-space-40) var(--re-space-24);
    background: var(--re-color-footer);
    color: var(--re-color-footer-text);
    font-size: var(--re-text-small);
    line-height: 1.6;

    @media (width <= 37.5rem) {
        padding-block: var(--re-space-32) var(--re-space-20);
    }
}

.re-footer-top {
    display: grid;
    gap: var(--re-space-28);
}

.re-footer-brand {
    & img {
        width: auto;
        height: 1.5rem;
    }

    & p {
        max-width: 22rem;
        margin: var(--re-space-10) 0 0;
        font-size: var(--re-text-caption);
        line-height: var(--re-leading-small);
    }
}

.re-footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: var(--re-space-18);

    @media (width <= 37.5rem) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: var(--re-space-28);
    }
}

.re-footer-heading {
    margin: 0 0 var(--re-space-10);
    font-size: var(--re-text-caption);
    font-weight: var(--re-weight-semibold);
    line-height: var(--re-leading-snug);
    letter-spacing: var(--re-tracking-caps);
    text-transform: uppercase;
    color: var(--re-color-footer-heading);
}

.re-footer-links {
    display: grid;
}

.re-footer-link {
    display: inline-flex;
    align-items: center;
    min-height: var(--re-size-tap);
    white-space: nowrap;
    color: inherit;

    /* Two columns on a phone: a link longer than its column wraps rather than pushing
       the page wider than the screen. */
    @media (width <= 37.5rem) {
        white-space: normal;
    }

    @media (hover: hover) and (pointer: fine) {
        &:hover {
            color: var(--re-color-text-inverse);
            -webkit-text-decoration: underline;
            text-decoration: underline;
            text-underline-offset: 3px;
        }
    }
}

.re-footer-bottom {
    margin-top: var(--re-space-28);
    padding-top: var(--re-space-16);
    border-top: 1px solid var(--re-color-footer-line);
    font-size: var(--re-text-caption);
    line-height: var(--re-leading-body);
    color: var(--re-color-footer-heading);
}


/* ==========================================================================
   Focused chrome (tags/re_focused_header.cfm, tags/re_focused_footer.cfm)
   ==========================================================================
   For a task the seller should finish without wandering off (the quiz): the
   wordmark and "Save and exit" (with Help before it at the header compact
   width, where the messenger's launcher is hidden), no site nav, no divider;
   and at the foot only
   the legal line, grey on the page, centred, sitting at the bottom of short
   screens (the layout's column pushes it down).
   ========================================================================== */

.re-focus-header {
    position: relative;
    z-index: var(--re-z-header);
    background: var(--re-color-page);
    color: var(--re-color-text);
}

.re-focus-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--re-space-16);
    min-height: 4rem;

    @media (width <= 37.5rem) {
        min-height: 3.5rem;
    }
}

.re-focus-links {
    display: flex;
    align-items: center;
    gap: var(--re-space-20);
}

.re-focus-exit {
    display: inline-flex;
    align-items: center;
    min-height: var(--re-size-tap);
    font-size: var(--re-text-small);
    font-weight: var(--re-weight-semibold);
    line-height: var(--re-leading-none);
    color: var(--re-color-text-muted);
    -webkit-text-decoration: underline;
    text-decoration: underline;
    -webkit-text-decoration-color: transparent;
    text-decoration-color: transparent;
    text-underline-offset: 4px;
    transition: color var(--re-duration-fast) ease, text-decoration-color var(--re-duration-fast) ease;

    @media (hover: hover) and (pointer: fine) {
        &:hover {
            color: var(--re-color-text);
            -webkit-text-decoration-color: currentcolor;
            text-decoration-color: currentcolor;
        }
    }

    &:focus-visible {
        border-radius: var(--re-radius-sm);
    }
}

.re-focus-footer {
    padding-block: var(--re-space-40) var(--re-space-28);
    background: var(--re-color-page);
    color: var(--re-color-text-muted);
    font-size: var(--re-text-caption);
    line-height: var(--re-leading-body);

    @media (width <= 37.5rem) {
        padding-block: var(--re-space-32) var(--re-space-24);
    }
}

.re-focus-footer-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0 var(--re-space-20);

    /* On a phone the copyright takes its own line and the links share one. */
    @media (width <= 37.5rem) {
        gap: 0 var(--re-space-16);

        & > span {
            flex-basis: 100%;
            text-align: center;
        }
    }
}

.re-focus-footer-link {
    display: inline-flex;
    align-items: center;
    min-height: var(--re-size-tap);
    color: inherit;

    @media (hover: hover) and (pointer: fine) {
        &:hover {
            color: var(--re-color-text);
            -webkit-text-decoration: underline;
            text-decoration: underline;
            text-underline-offset: 3px;
        }
    }
}


/* ==========================================================================
   Help link (tags/re_focused_header.cfm, tags/friend_shell.cfm, the sign-in page)
   ==========================================================================
   On a page with no site menu, the way to the messenger at the header compact
   width, where its launcher is hidden (cf_intercom_snippet): quiet text, as
   Save and exit. Above it the launcher is there instead, so the link is not.
   ========================================================================== */

.re-help-link {
    display: inline-flex;
    align-items: center;
    min-height: var(--re-size-tap);
    font-size: var(--re-text-small);
    font-weight: var(--re-weight-semibold);
    line-height: var(--re-leading-none);
    color: var(--re-color-text-muted);
    -webkit-text-decoration: underline;
    text-decoration: underline;
    -webkit-text-decoration-color: transparent;
    text-decoration-color: transparent;
    text-underline-offset: 4px;

    &:focus-visible {
        border-radius: var(--re-radius-sm);
    }

    @media (width > 52.5rem) {
        display: none;
    }
}


/* ==========================================================================
   Address line (tags/property_page_header.cfm) and the facts
   (tags/property_facts.cfm)
   ==========================================================================
   Heads every property sub-page on the white page, with no card, in one line
   at every width: the address, led by a chevron and a pin, is the way back to
   the property, first and on the left, where a way back is looked for. A
   parent crumb, when there is one, follows it (and the chevron goes). The
   address ends in an ellipsis when it runs long; the parent never shrinks.
   .re-strip-address is the address alone, led by its pin, quiet, where it is
   not a way back (the friend's pitch list).
   ========================================================================== */

.re-strip {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--re-space-2);
    min-width: 0;
    margin-bottom: var(--re-space-16);
}

.re-strip-crumbs {
    display: flex;
    flex: none;
    align-items: center;
    gap: var(--re-space-4);
    min-width: 0;
    max-width: 100%;
    margin: 0;
    font-size: var(--re-text-caption);
    font-weight: var(--re-weight-semibold);
    line-height: 1.4;
    color: var(--re-color-action);

    & > [aria-hidden="true"] {
        color: var(--re-color-text-muted);
    }

    @media (width <= 37.5rem) {
        font-size: var(--re-text-small);
    }
}

/* The links stay a full tap target tall on a line of small text. */
.re-strip-home,
.re-strip-parent {
    display: inline-flex;
    align-items: center;
    min-height: var(--re-size-tap);

    @media (hover: hover) and (pointer: fine) {
        &:hover {
            color: var(--re-color-text);
        }
    }
}

.re-strip-home {
    flex: 0 1 auto;
    gap: var(--re-space-6);
    min-width: 0;

    & > .re-strip-back {
        /* stylelint-disable-next-line declaration-property-value-allowed-list -- an icon glyph sized to its line, not text */
        font-size: 0.625em;
    }
}

/* One line, whatever the address: a long one ends in an ellipsis (the whole address is
   still the link's name, for a screen reader). */
.re-strip-address-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.re-strip-parent {
    flex: none;
    white-space: nowrap;
}

.re-strip-address {
    display: flex;
    align-items: baseline;
    gap: var(--re-space-8);
    min-width: 0;
    max-width: 100%;
    margin: 0;
    font-size: var(--re-text-caption);
    line-height: var(--re-leading-snug);
    color: var(--re-color-text-muted);

    /* One line, whatever the address: a long one ends in an ellipsis rather than
       pushing the page down (the full address is in the text, for a screen reader). */
    & > span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    @media (width <= 37.5rem) {
        font-size: var(--re-text-body);
    }
}

/* The Real Easy pin over a mini map (the property page's): its tip on the
   centre, where the map image is centred on the property. */
.re-mini-map-pin {
    position: absolute;
    bottom: 50%;
    left: 50%;
    width: 1.375rem;
    aspect-ratio: 41 / 53;
    background: url("/_static/assets/map/pin.svg") center / contain no-repeat;
    filter: drop-shadow(0 2px 3px color-mix(in srgb, var(--re-color-text) 25%, transparent));
    transform: translateX(-50%);
}

/* ---- Facts: [bed] 3  [bath] 1  [car] 0 ----------------------------------- */

.re-facts {
    gap: var(--re-space-14);
    font-size: var(--re-text-small);
    line-height: var(--re-leading-snug);
    color: var(--re-color-text-muted);

    & li {
        display: inline-flex;
        align-items: center;
        gap: var(--re-space-6);
    }

    & .re-facts-count {
        font-weight: var(--re-weight-medium);
        font-variant-numeric: tabular-nums;
        color: var(--re-color-text);
    }
}


/* ==========================================================================
   Icon disc (moved from the quiz: the pink or neutral disc that heads a
   confirm, an empty state or a sign-in step, on many pages)
   ========================================================================== */

.re-icon-disc {
    display: grid;
    place-items: center;
    flex: none;
    width: var(--re-size-tile);
    height: var(--re-size-tile);
    border-radius: var(--re-radius-round);
    background: var(--re-color-action-tint);
    color: var(--re-color-action);
    font-size: var(--re-text-h2);
}

/* A neutral disc for a confirm dialog's icon (no red on a homeowner page). */
.re-icon-disc--neutral {
    background: var(--re-color-fill);
    color: var(--re-color-text);
}



/* ==========================================================================
   Map card (the quiz's first step, "Your property")
   ==========================================================================
   The map (greyscale Mapbox Light, or Satellite from the switch) with the pink
   pin and parcel, and beneath it in the same grey card the address being
   confirmed, set like an answer row.
   ========================================================================== */

.re-map-card {
    overflow: hidden;
    border-radius: var(--re-radius-lg);
    background: var(--re-color-fill);
    outline: 1px solid transparent;
}

/* A short strip: enough to say "this is the place" beside the address, so the
   rooms stay above the fold. */
.re-map {
    position: relative;
    height: 8.75rem;

    @media (width <= 37.5rem) {
        height: 7.5rem;
    }
}

/* Mapbox's stylesheet is unlayered, so its .mapboxgl-map (position:
   relative) beats this layered rule; the explicit size keeps the canvas
   filling the box either way. */
.re-map-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Map / Satellite: a small segmented switch over the map's top-left corner. */
.re-map-switch {
    position: absolute;
    top: var(--re-space-12);
    left: var(--re-space-12);
    z-index: 1;
    display: flex;
    padding: var(--re-space-4);
    border-radius: var(--re-radius-pill);
    background: var(--re-color-surface);
    box-shadow: var(--re-shadow-float);
    outline: 1px solid transparent;
}

.re-map-switch-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--re-space-6);
    min-height: 2.25rem;
    padding: 0 var(--re-space-12);
    border-radius: var(--re-radius-pill);
    font-size: var(--re-text-caption);
    font-weight: var(--re-weight-semibold);
    color: var(--re-color-text-muted);
    cursor: pointer;
    transition: background-color var(--re-duration-fast) ease, color var(--re-duration-fast) ease;

    &[aria-pressed="true"] {
        background: var(--re-color-secondary);
        color: var(--re-color-on-secondary);
    }

    @media (hover: hover) and (pointer: fine) {
        &:not([aria-pressed="true"]):hover {
            color: var(--re-color-text);
        }
    }

    @media (forced-colors: active) {
        &[aria-pressed="true"] {
            outline: 2px solid Highlight;
        }
    }

    /* On a phone, the icons alone, so the switch covers less of the strip; the
       labels stay for screen readers. */
    @media (width <= 37.5rem) {
        justify-content: center;
        min-width: 2.25rem;
        padding: 0;
    }
}

.re-map-switch-label {
    @media (width <= 37.5rem) {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
}

.re-map-address {
    display: flex;
    align-items: center;
    gap: var(--re-space-12);
    padding: var(--re-space-14) var(--re-space-20);
    font-size: var(--re-text-body);
    font-weight: var(--re-weight-semibold);
    line-height: 1.35;

    & > i {
        flex: none;
        color: var(--re-color-action);
        font-size: var(--re-text-lede);
    }

    @media (width <= 37.5rem) {
        gap: var(--re-space-10);
        padding: var(--re-space-12) var(--re-space-16);
    }
}


/* ==========================================================================
   Photos (the quiz's photo step and the change-detail sheet)
   ==========================================================================
   Square thumbnails with a white remove disc, the add buttons beneath, an
   upload progress card while files go up.
   ========================================================================== */

.re-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--re-space-10);

    @media (width <= 37.5rem) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: var(--re-space-8);
    }
}

.re-photo {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--re-radius-md);
    background: var(--re-color-fill);

    & img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    @media (width <= 37.5rem) {
        border-radius: var(--re-radius-sm);
    }
}

/* The remove disc: a 32px white circle, inside a 44px tap target. */
.re-photo-remove {
    position: absolute;
    top: 0;
    right: 0;
    display: grid;
    place-items: center;
    width: var(--re-size-tap);
    height: var(--re-size-tap);
    color: var(--re-color-text);
    font-size: var(--re-text-small);
    cursor: pointer;

    &::before {
        content: "";
        position: absolute;
        inset: var(--re-space-6);
        z-index: -1;
        border-radius: var(--re-radius-round);
        background: var(--re-color-surface);
        box-shadow: var(--re-shadow-float);
    }

    &:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }
}

/* The add tile at the end of a grid (the property page's photos): a dashed
   square that is also the drop target. */
.re-photo-add {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--re-space-6);
    aspect-ratio: 1;
    border: 2px dashed var(--re-color-control-ring);
    border-radius: var(--re-radius-md);
    color: var(--re-color-text-muted);
    font-size: var(--re-text-caption);
    font-weight: var(--re-weight-semibold);
    text-align: center;
    cursor: pointer;
    transition: border-color var(--re-duration-fast) ease, color var(--re-duration-fast) ease, background-color var(--re-duration-fast) ease;

    & > i {
        font-size: var(--re-text-h3);
    }

    & > small {
        font-size: var(--re-text-caption);
        font-weight: var(--re-weight-regular);

        @media (width <= 37.5rem) {
            display: none;
        }
    }

    &.is-dragover {
        border-color: var(--re-color-action);
        background: var(--re-color-action-tint);
        color: var(--re-color-action);
    }

    @media (hover: hover) and (pointer: fine) {
        &:not(:disabled):hover {
            border-color: var(--re-color-action);
            color: var(--re-color-action);
        }
    }

    &:disabled {
        opacity: 0.6;
        cursor: progress;
    }

    @media (width <= 37.5rem) {
        border-radius: var(--re-radius-sm);
    }
}

.re-photo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--re-space-8) var(--re-space-16);
}

/* A small preview row (the change-detail sheet). */
.re-photo-strip {
    display: flex;
    flex-wrap: wrap;
    gap: var(--re-space-8);

    & > * {
        width: var(--re-space-64);
        height: var(--re-space-64);
        overflow: hidden;
        border-radius: var(--re-radius-sm);
        background: var(--re-color-fill);
    }

    & img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* ---- Upload progress ---------------------------------------------------------- */

.re-progress-card {
    display: grid;
    gap: var(--re-space-8);
    padding: var(--re-space-14) var(--re-space-16);
    border-radius: var(--re-radius-lg);
    background: var(--re-color-fill);
    outline: 1px solid transparent;
}

.re-progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--re-space-12);
    font-size: var(--re-text-caption);
    font-weight: var(--re-weight-semibold);
    font-variant-numeric: tabular-nums;
    color: var(--re-color-text-muted);
}

.re-progress-bar {
    height: var(--re-size-progress);
    overflow: hidden;
    border-radius: var(--re-radius-pill);
    background: var(--re-color-surface);

    & > span {
        display: block;
        height: 100%;
        border-radius: var(--re-radius-pill);
        background: var(--re-color-action);
        transition: width var(--re-duration-base) ease;
    }
}


/* ==========================================================================
   Action row (moved from the property page: a grey row with an icon disc and
   a way on - sign in, your data, search a different address)
   ========================================================================== */

/* ---- The quiet rows ------------------------------------------------------------- */
.re-action-row {
    display: flex;
    align-items: center;
    gap: var(--re-space-14);
    min-height: var(--re-space-64);
    padding: var(--re-space-14) var(--re-space-20);
    border-radius: var(--re-radius-lg);
    background: var(--re-color-fill);
    color: var(--re-color-text);
    -webkit-text-decoration: none;
    text-decoration: none;
    outline: 1px solid transparent;
    transition: background-color var(--re-duration-fast) ease;

    @media (hover: hover) and (pointer: fine) {
        &:is(a):hover {
            background: var(--re-color-fill-hover);
        }
    }

    @media (width <= 37.5rem) {
        padding: var(--re-space-14) var(--re-space-16);

        /* A row with a button gives it a line of its own. */
        &:has(> .re-btn) {
            flex-wrap: wrap;

            & > .re-btn {
                width: 100%;
            }
        }
    }
}

.re-action-row-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: var(--re-space-40);
    height: var(--re-space-40);
    border-radius: var(--re-radius-round);
    background: var(--re-color-surface);
    color: var(--re-color-text);
    font-size: var(--re-text-small);
}

.re-action-row-text {
    display: grid;
    flex: 1;
    gap: var(--re-space-2);
    min-width: 0;
    font-size: var(--re-text-body);
    font-weight: var(--re-weight-semibold);
    line-height: 1.35;

    & small {
        font-size: var(--re-text-small);
        font-weight: var(--re-weight-regular);
        line-height: 1.4;
        color: var(--re-color-text-muted);
    }
}

.re-action-row-go {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: var(--re-space-6);
    font-size: var(--re-text-small);
    font-weight: var(--re-weight-semibold);
    color: var(--re-color-text-muted);

    & > i {
        font-size: var(--re-text-caption);
    }
}



/* ==========================================================================
   The Journey strip and the Now panel (the two Agent Pitch pages)
   ==========================================================================
   tags/journey_strip.cfm and tags/journey_panel.cfm: both render the model
   from lib/shortlist.journey() and compute nothing.

   The strip (GLOSSARY.md: Journey): three steps, drawn as the prototype on
   prototype/pitch-journey - a 6px bar per step, filled to the model's own
   progress (done full, upcoming empty, Watch filling with the answers, Meet
   half), with the label and its status on one line beneath. The current
   label is ink, the others muted; a step on another page links there in
   pink. No card: the strip sits on the page. A container query hides the
   statuses visually on narrow columns (they stay announced).

   The Now panel: the one instruction on a pitch page, directly under the
   strip. One column in reading order: heading, body, the action directly
   under the sentence that explains it, then the quiet line. Tones: pink
   means act (a pick of yours is pending), green means settled, white (the
   model's name for the neutral tone; a grey card on the white page) informs.
   The button is always pink: an action is an act, whatever the panel's tone.

     .re-journey               the strip (three bars on the page)
     .re-now                   the panel; .is-white | .is-pink | .is-green
   ========================================================================== */

/* ---- The strip ------------------------------------------------------------- */

.re-journey {
    container-type: inline-size;
}

.re-journey-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--re-space-8);
    margin: 0;
    padding: 0;
    list-style: none;
}

.re-journey-step {
    min-width: 0;
}

/* The step's one element: a link when the step lives on another page, plain
   text (an <a> with no href) otherwise. Every step is a full tap target tall,
   link or not, so the three stay level. */
.re-journey-link {
    display: grid;
    gap: var(--re-space-8);
    align-content: start;
    min-height: var(--re-size-tap);
    color: inherit;
    text-decoration: none;

    &:focus-visible {
        border-radius: var(--re-radius-key);
        outline-offset: 3px;
    }
}

.re-journey-bar {
    position: relative;
    display: block;
    height: var(--re-size-progress);
    overflow: hidden;
    border-radius: var(--re-radius-pill);
    background: var(--re-color-track);

    & > span {
        position: absolute;
        inset: 0 auto 0 0;
        border-radius: inherit;
        background: var(--re-color-action);
        transition: width var(--re-duration-base) var(--re-ease);
    }
}

.re-journey-label {
    display: flex;
    justify-content: space-between;
    gap: var(--re-space-8);
    min-width: 0;
    font-size: var(--re-text-caption);
    font-weight: var(--re-weight-semibold);
    line-height: var(--re-leading-snug);
    color: var(--re-color-text-muted);
    white-space: nowrap;

    .re-journey-step:is(.is-current, .is-here) & {
        color: var(--re-color-text);
    }
}

/* A step on another page: its label is the way there. The current step stays
   ink even when it links (Meet on the pitch page), as in the prototype. */
.re-journey-step:not(.is-current) .re-journey-link[href] .re-journey-label {
    color: var(--re-color-action);
}

@media (hover: hover) and (pointer: fine) {
    .re-journey-link[href]:hover .re-journey-label > span:first-child {
        -webkit-text-decoration: underline;
        text-decoration: underline;
        text-underline-offset: 3px;
    }
}

.re-journey-status {
    min-width: 0;
    overflow: hidden;
    font-size: inherit;
    font-weight: var(--re-weight-regular);
    text-overflow: ellipsis;
}

/* A narrow strip (the prototype's 600px): the labels alone; the statuses stay
   for screen readers. */
@container (width <= 37.5rem) {
    .re-journey-status {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
}

/* ---- The Now panel ---------------------------------------------------------- */

/* Row spacing is on the elements (not row-gap) so a hidden line leaves no hole. */
.re-now {
    --re-now-bg: var(--re-color-fill);

    container-type: inline-size;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "heading" "body" "actions" "quiet";
    align-items: center;
    padding: var(--re-space-20) var(--re-space-24);
    border-radius: var(--re-radius-lg);
    background: var(--re-now-bg);
    outline: 1px solid transparent;

    &.is-pink {
        --re-now-bg: var(--re-color-action-tint);

        box-shadow: inset 0 0 0 1.5px var(--re-color-action);
    }

    &.is-green {
        --re-now-bg: var(--re-color-positive-surface);

        box-shadow: inset 0 0 0 1.5px var(--re-color-positive);
    }
}

.re-now-heading {
    grid-area: heading;
    margin: 0;
    font-family: var(--re-font-display);
    font-size: var(--re-text-h3);
    font-weight: var(--re-weight-bold);
    line-height: var(--re-leading-title);
    letter-spacing: var(--re-tracking-title);
    color: var(--re-color-text);
    text-wrap: balance;
}

/* Body and quiet line run the panel's full width: every panel's copy is a
   sentence or two, so a measure cap only broke it early on a wide screen. */
.re-now-body {
    grid-area: body;
    margin: var(--re-space-8) 0 0;
    font-size: var(--re-text-body);
    line-height: var(--re-leading-body);
    color: var(--re-color-text);
}

.re-now-quiet {
    grid-area: quiet;
    margin: var(--re-space-12) 0 0;
    font-size: var(--re-text-small);
    line-height: var(--re-leading-small);
    color: var(--re-color-text-muted);
}

.re-now-actions {
    grid-area: actions;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--re-space-12);
    margin-top: var(--re-space-20);
}

.re-now-btn-icon {
    font-size: var(--re-text-caption);
}

/* The panel is its own container, so its children switch on it. */
@container (max-width: 640px) {
    .re-now-body {
        font-size: var(--re-text-small);
    }

    .re-now-actions {
        margin-top: var(--re-space-14);

        & .re-btn {
            width: 100%;
        }
    }
}


/* ==========================================================================
   A page on its own (cf_layout_auth): sign-in and the friend pages
   ==========================================================================
   routes/login/index.cfc, tags/friend_shell.cfm (the Second Opinion join,
   waiting and no-longer-available pages). No site header: each is a task
   with one way on, and the wordmark is the way home. One narrow column on
   the white page: the wordmark, the heading and its line, then the step in
   the shared fields, notices and buttons (the kit's s11).

     .re-solo                  the page: the column, centred in the screen
     .re-solo-panel            the column; --centred for a message page
     .re-solo-top              the wordmark's row, with a Help link at its end
     .re-solo-logo             the wordmark, home
     .re-solo-head             the kicker, h1 and lede
     .re-solo-kicker           the small pink line above a heading
     .re-solo-step             a step's fields, notices and buttons; --wide on a centred page
     .re-solo-list             a short list, each item led by a pink icon
     .re-solo-links            a row of quiet text buttons
     .re-solo-note             a quiet line under the action
     .re-solo-foot             the closing line, over a hairline
   ========================================================================== */

/* The viewport less the environment bar above it (0 high in production). */
.re-solo {
    display: grid;
    place-items: center;
    min-height: calc(100vh - var(--environment-bar-height, 0px));
    min-height: calc(100dvh - var(--environment-bar-height, 0px));
    padding: var(--re-space-40) var(--re-space-20);
}

/* A message page inside the site's header and footer (privacy, terms,
   support): the same centred column, sized to sit between them rather than
   fill the window. */
.re-solo--site {
    min-height: 60vh;
}

.re-solo-panel {
    width: 100%;
    max-width: 30rem;
}

.re-solo-panel--centred {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.re-solo-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--re-space-16);

    /* A centred panel shrink-wraps its children: the row spans the column, the
       wordmark stays in its middle and Help sits at its end. */
    .re-solo-panel--centred > & {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-self: stretch;

        & > .re-solo-logo {
            grid-column: 2;
        }

        & > .re-help-link {
            grid-column: 3;
            justify-self: end;
        }
    }
}

.re-solo-logo {
    display: inline-flex;

    & img {
        display: block;
        width: auto;
        height: var(--re-space-36);
    }
}

.re-solo-head {
    display: grid;
    gap: var(--re-space-10);
    margin: var(--re-space-32) 0;

    .re-solo-panel--centred & {
        justify-items: center;
        margin-bottom: var(--re-space-24);
    }
}

.re-solo-kicker {
    margin: 0;
    font-size: var(--re-text-caption);
    font-weight: var(--re-weight-semibold);
    color: var(--re-color-action);
}

/* An icon disc above a message page's heading. */
.re-solo-panel--centred > .re-icon-disc {
    margin-top: var(--re-space-32);
}

.re-solo-panel--centred > .re-icon-disc + .re-solo-head {
    margin-top: var(--re-space-20);
}

.re-solo-step {
    display: grid;
    gap: var(--re-space-20);
}

/* On a centred page, a step of full-width buttons spans the column. */
.re-solo-step--wide {
    justify-items: center;
    width: 100%;
    gap: var(--re-space-8);
}

.re-solo-list {
    display: grid;
    gap: var(--re-space-12);
    margin: 0;
    padding: 0;
    list-style: none;

    & li {
        display: flex;
        align-items: flex-start;
        gap: var(--re-space-12);
        font-size: var(--re-text-body);
        line-height: var(--re-leading-snug);
        color: var(--re-color-text);
    }

    & i {
        flex: none;
        width: var(--re-space-20);
        margin-top: var(--re-space-2);
        color: var(--re-color-action);
        text-align: center;
    }
}

.re-solo-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--re-space-8) var(--re-space-16);
}

.re-solo-note {
    margin: 0;
    font-size: var(--re-text-caption);
    line-height: var(--re-leading-small);
    text-align: center;
    color: var(--re-color-text-muted);

    .re-solo-panel--centred & {
        max-width: 26rem;
    }
}

.re-solo-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--re-space-8) var(--re-space-16);
    margin-top: var(--re-space-40);
    padding-top: var(--re-space-20);
    border-top: 1px solid var(--re-color-line);
    font-size: var(--re-text-caption);
    color: var(--re-color-text-muted);

    & p {
        margin: 0;
    }
}

.re-solo-home {
    font-weight: var(--re-weight-semibold);
    color: var(--re-color-text);
    -webkit-text-decoration: none;
    text-decoration: none;

    @media (hover: hover) and (pointer: fine) {
        &:hover {
            color: var(--re-color-action);
        }
    }
}

/* ==========================================================================
   Toasts (_static/js/sonner-alpine.js, window.toast)
   ==========================================================================
   The script draws the toaster and each toast and drives them by data
   attributes (data-sonner-toaster, data-sonner-toast, data-type, data-front,
   data-expanded …); this is their look. A white card floating over the page:
   the icon pink for a problem (error, warning) and ink otherwise, as gday's
   notices; no red, blue or amber on a homeowner page. The stacking and
   timing are the script's: it sets --width, --gap, --offset,
   --initial-height, --front-toast-height, --toasts-before and --z-index.
   ========================================================================== */

[data-sonner-toaster] {
    position: fixed;
    top: var(--re-space-24);
    left: 50%;
    z-index: calc(var(--re-z-overlay) + 1);
    width: var(--width);
    margin: 0;
    padding: 0;
    list-style: none;
    outline: none;
    transform: translateX(-50%);
    transition: transform 400ms ease;

    @media (width <= 37.5rem) {
        top: var(--re-space-16);
        right: var(--re-space-8);
        left: var(--re-space-8);
        width: auto;
        transform: none;
    }
}

[data-sonner-toast] {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: var(--z-index);
    box-sizing: border-box;
    opacity: 0;
    overflow-wrap: anywhere;
    outline: none;
    transform: translateY(-100%);
    transition: transform 400ms, opacity 400ms, height 400ms, box-shadow 200ms;

    @media (prefers-reduced-motion: reduce) {
        transition: none;
    }
}

[data-sonner-toast][data-mounted="true"] {
    opacity: 1;
    transform: translateY(0);
}

[data-sonner-toast][data-styled="true"] {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: flex-start;
    column-gap: var(--re-space-10);
    padding: var(--re-space-14) var(--re-space-40) var(--re-space-14) var(--re-space-16);
    border-radius: var(--re-radius-lg);
    background: var(--re-color-surface);
    color: var(--re-color-text);
    font-size: var(--re-text-caption);
    box-shadow: var(--re-shadow-float);
    outline: 1px solid transparent;
}

[data-sonner-toast][data-expanded="false"][data-front="false"] {
    height: var(--front-toast-height);
    transform: translateY(calc(var(--toasts-before) * var(--gap))) scale(calc(1 - (var(--toasts-before) * 0.05)));
}

[data-sonner-toast][data-expanded="false"][data-front="false"] > * {
    opacity: 0;
    transition: opacity 200ms;

    @media (prefers-reduced-motion: reduce) {
        transition: none;
    }
}

[data-sonner-toast][data-expanded="true"] {
    height: var(--initial-height);
    transform: translateY(var(--offset));
}

[data-sonner-toast][data-visible="false"] {
    opacity: 0;
    pointer-events: none;
}

[data-sonner-toast][data-removed="true"] {
    opacity: 0;
    transform: translateY(-100%);
}

[data-sonner-toast] [data-content] {
    display: flex;
    flex: 1;
    flex-direction: column;
    grid-column: 2;
    gap: var(--re-space-2);
    min-width: 0;
}

[data-sonner-toast] [data-title] {
    font-size: var(--re-text-caption);
    font-weight: var(--re-weight-semibold);
    line-height: var(--re-leading-body);
    color: var(--re-color-text);
}

[data-sonner-toast] [data-description] {
    font-size: var(--re-text-caption);
    line-height: var(--re-leading-small);
    color: var(--re-color-text-muted);
}

[data-sonner-toast] [data-icon] {
    display: inline-flex;
    grid-column: 1;
    align-items: center;
    justify-content: center;
    width: var(--re-space-18);
    min-width: var(--re-space-18);
    height: var(--re-space-18);
    margin-top: var(--re-space-2);
    font-size: var(--re-text-row);
    color: var(--re-color-text);
}

[data-sonner-toast]:is([data-type="error"], [data-type="warning"]) [data-icon] {
    color: var(--re-color-action);
}

[data-sonner-toast] [data-action] {
    display: inline-flex;
    grid-column: 3;
    align-items: center;
    align-self: center;
    justify-content: center;
    margin-top: var(--re-space-2);
    padding: var(--re-space-6) var(--re-space-12);
    border-radius: var(--re-radius-pill);
    background: var(--re-color-secondary);
    color: var(--re-color-on-secondary);
    font-size: var(--re-text-caption);
    font-weight: var(--re-weight-semibold);
    line-height: var(--re-leading-none);
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;

    @media (hover: hover) and (pointer: fine) {
        &:hover {
            background: var(--re-color-secondary-hover);
        }
    }
}

[data-sonner-toast] [data-close] {
    position: absolute;
    top: var(--re-space-6);
    right: var(--re-space-6);
    display: grid;
    place-items: center;
    width: var(--re-space-24);
    height: var(--re-space-24);
    border-radius: var(--re-radius-round);
    background: transparent;
    color: var(--re-color-text-muted);
    font-size: var(--re-text-small);
    line-height: var(--re-leading-none);
    cursor: pointer;

    @media (hover: hover) and (pointer: fine) {
        &:hover {
            background: var(--re-color-fill);
            color: var(--re-color-text);
        }
    }
}

/* ==========================================================================
   Impersonation banner (shared/tags/impersonation_banner.cfm)
   ==========================================================================
   Staff only, while impersonating: a dark pill floating over the page, the
   one piece of operator chrome on www, so it reads as nothing a homeowner
   sees. It sits at the foot of the screen, or the top (data-edge="top"),
   moved by its own button.
   ========================================================================== */

.re-impersonation {
    position: fixed;
    right: 0;
    bottom: var(--re-space-16);
    left: 0;
    z-index: calc(var(--re-z-overlay) + 1);
    display: flex;
    justify-content: center;
    padding: 0 var(--re-space-16);
    pointer-events: none;

    &[data-edge="top"] {
        top: var(--re-space-16);
        bottom: auto;
    }
}

.re-impersonation-pill {
    display: flex;
    align-items: center;
    gap: var(--re-space-10);
    max-width: 100%;
    min-height: var(--re-space-36);
    padding: var(--re-space-6) var(--re-space-14);
    overflow: hidden;
    border-radius: var(--re-radius-pill);
    background: color-mix(in srgb, var(--re-color-secondary) 78%, transparent);
    color: var(--re-color-on-secondary);
    font-size: var(--re-text-caption);
    font-weight: var(--re-weight-medium);
    line-height: var(--re-leading-snug);
    box-shadow: var(--re-shadow-float);
    pointer-events: auto;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);

    & > i {
        flex: none;
    }
}

.re-impersonation-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    & strong {
        font-weight: var(--re-weight-bold);
    }
}

.re-impersonation-dot {
    margin: 0 var(--re-space-4);
    opacity: 0.7;
}

.re-impersonation-action {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    gap: var(--re-space-4);
    min-width: var(--re-space-24);
    min-height: var(--re-space-24);
    padding: 0 var(--re-space-8);
    border: 1px solid color-mix(in srgb, var(--re-color-on-secondary) 60%, transparent);
    border-radius: var(--re-radius-sm);
    background: color-mix(in srgb, var(--re-color-on-secondary) 15%, transparent);
    color: var(--re-color-on-secondary);
    font-size: var(--re-text-caption);
    font-weight: var(--re-weight-bold);
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--re-duration-fast) ease, border-color var(--re-duration-fast) ease;

    @media (hover: hover) and (pointer: fine) {
        &:hover {
            border-color: var(--re-color-on-secondary);
            background: color-mix(in srgb, var(--re-color-on-secondary) 25%, transparent);
        }
    }

    &:focus-visible {
        outline: 2px solid var(--re-color-on-secondary);
        outline-offset: 1px;
    }
}

/* "End Session" from tablet up, "End" on a phone. */
.re-impersonation-long {
    @media (width <= 37.5rem) {
        display: none;
    }
}

.re-impersonation-short {
    @media (width > 37.5rem) {
        display: none;
    }
}

}
