/*
 * The admin screens' look. The two token blocks are copied from card at
 * 7845b9a4 (app/assets/stylesheets/application.css, :root and
 * :root[data-theme="dark"]); card is the source, change there first.
 *
 * A colour is written once, in a token block, under a name that says what
 * it means; a literal colour in a rule below cannot follow the look, and
 * test/assets/site_theme_contrast_test.rb refuses one. A house palette lays
 * its look tokens over its scheme's block from <html>'s style attribute
 * (SiteLook). Light is the default; data-theme on <html> picks dark.
 *
 * Direction is never hard-coded: logical properties only, so one sheet
 * serves the dir attribute on <html>. The one face is the app's own
 * files, swapped in when they arrive, so nothing blocks the first paint.
 *
 * The design language (#78, after listing-publisher's docs/design.md, its
 * colours left out): hierarchy by surface, ground < panel < raised; one
 * accent, for the screen's primary press and the current area; radius by
 * rank, 16 for panels and tiles, 10 for presses and fields, 8 for small
 * things; 1px line edges; no shadows, gradients or capitals.
 */
:root {
  color-scheme: light;

  --v-font: "Heebo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --v-font-size: 16px;
  --v-line-height: 1.55;
  --v-radius: 16px;
  --v-radius-control: 10px;
  --v-radius-small: 8px;
  --v-gap: 1rem;
  /* A listing state's outline inside a card's 1px edge (#211); each theme sets its own. */
  --v-state-edge: 2px;
  /* A thing that can be picked up rising and growing a little: a photo tile, a listing card. */
  --v-lift: translateY(-4px) scale(1.03);

  /* The surface ladder, named for what each step is and derived from the
     look's own tokens, so every block and every palette carries it: the
     ground, a panel on it, a thing raised on the panel, a hovered panel. */
  --v-ground: var(--v-page);
  --v-panel: var(--v-surface);
  --v-raised: var(--v-tray);
  --v-hover: color-mix(in srgb, var(--v-surface), var(--v-tray) 50%);

  --v-acting-bg: #ffd23f;
  --v-acting-ink: #1a1a1a;
  --v-acting-on-ink: #fff;

  --v-ink: #14161a;
  --v-ink-muted: #5b6472;
  --v-accent: #1f5fd0;
  --v-surface: #ffffff;
  --v-page: #f4f5f7;
  --v-line: #e2e5ea;
  --v-field: #e6eaf1;
  --v-shadow: 0 1px 2px rgba(16, 20, 28, .06), 0 8px 24px rgba(16, 20, 28, .08);
  /* The dim behind every pop-up, dark enough for the viewer's white chevrons. */
  --v-scrim: rgba(0, 0, 0, .6);

  --v-danger: #b3261e;
  --v-danger-strong: #c62828;
  --v-danger-line: #f2b8b5;
  --v-danger-bg: #fdeceb;
  --v-danger-fill: var(--v-danger);
  --v-danger-fill-hover: var(--v-danger-strong);
  --v-on-danger: var(--v-danger-bg);

  --v-ok: #0f7a45;
  --v-ok-soft: #146c43;
  --v-ok-strong: #1e8e4f;
  --v-ok-line: #a6d9bd;
  --v-ok-bg: #e8f5ed;
  --v-ok-wash: rgba(15, 122, 69, .1);
  --v-ok-wash-line: rgba(15, 122, 69, .35);
  --v-ok-badge: rgba(15, 122, 69, .16);
  /* The success press (#133): light words on its deep green. */
  --v-ok-fill: var(--v-ok);
  --v-ok-fill-hover: var(--v-ok-soft);
  --v-on-ok: var(--v-ok-bg);

  --v-go: #3bb072;
  --v-go-line: #2f8f5b;
  --v-on-go: #000000;

  --v-linkedin: #0a66c2;

  --v-warn: #8a6100;
  --v-warn-soft: #7a5600;
  --v-warn-strong: #8a4e00;
  /* A listing's state colours (#211), as UiTheme derives them for light;
     the core's screens take each theme's own from UiTheme's bridge. */
  --v-star: #ab7101;
  --v-star-text: #14161a;
  --v-draft: #17609e;
  --v-sale: #a91d4e;
  --v-hidden: #585f65;
  --v-deleted: #ae2313;
  --v-live-bg: #d5e0d9;
  --v-star-bg: #ebddc2;
  --v-draft-bg: #d1dfec;
  --v-sale-bg: #f0d6df;
  --v-hidden-bg: #dcdddf;
  --v-deleted-bg: #f0d7d5;
  --v-live-hover: #c6d5cb;
  --v-star-hover: #e6d4b3;
  --v-draft-hover: #c2d5e6;
  --v-sale-hover: #eac7d3;
  --v-hidden-hover: #d1d3d5;
  --v-deleted-hover: #ebc9c5;
  --v-warn-line: #e7cf9a;
  --v-warn-bg: #fdf4e0;
  --v-warn-wash: rgba(176, 106, 0, .1);
  --v-warn-wash-line: rgba(176, 106, 0, .35);
  --v-warn-badge: rgba(176, 106, 0, .16);

  /* Core only, not in card: orange, between warn's yellow and danger's red. */
  --v-caution: #a8430a;
  --v-caution-line: #f3c09c;
  --v-caution-bg: #fdefe4;

  --v-accent-soft: #1a4fa8;
  --v-accent-line: #b6c9ee;
  --v-soft-ink: #5b3fa8;
  --v-soft-line: #d3c8ee;
  --v-graph-ink: #1a43c0;
  --v-graph-line: #2c5cc5;
  --v-share-ink: #0b5e34;
  --v-share-line: #1f774a;
  --v-on-accent: #ffffff;

  --v-accent-wash: rgba(31, 95, 208, .16);
  /* The wash a step deeper, a washed press hovered (#183). */
  --v-accent-wash-deep: rgba(31, 95, 208, .3);
  --v-accent-on-wash: #1f5fd0;

  --v-tray: #eef0f3;
  --v-frame: #6e7a8a;
  --v-divider: #e2e5ea;

  /* Core only, not in card: the places tree's tag fills, hues spread wide. */
  --v-tag-district: #1d4ed8;
  --v-tag-subdistrict: #a3196e;
  --v-tag-settlement: #2e7d32;
  --v-tag-neighborhood: #00796b;
  --v-tag-problem: #f2b01e;
  --v-tag-unused: #5b6472;
  --v-tag-on: #ffffff;
  --v-tag-on-problem: #1a1a1a;
}

/* Core only (#461, #171): with no pick a dark device wears dark whole. The
   theme sheet's bridge flips the --v- tokens it maps; these are the rest a
   core sheet reads, each at the dark block's value below. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --v-scrim: rgba(0, 0, 0, .6);
    --v-danger-line: #5c2f2a;
    --v-ok-line: #2f5c3f;
    --v-go: #3bb072;
    --v-go-line: #2f8f5b;
    --v-on-go: #000000;
    --v-warn-line: #5c4d1e;
    --v-caution-line: #5c351e;
    --v-tag-district: #8fb4ff;
    --v-tag-subdistrict: #f59ad3;
    --v-tag-settlement: #a6e07a;
    --v-tag-neighborhood: #4fd8c4;
    --v-tag-unused: #98a1ad;
    --v-tag-on: #17191d;
    --v-acting-on-ink: #fff;
    --v-panel: var(--v-tray);
    --v-raised: var(--v-surface);
  }
}

:root[data-theme="dark"] {
  --v-acting-bg: #ffd23f;
  --v-acting-ink: #1a1a1a;
  --v-acting-on-ink: #fff;
  color-scheme: dark;

  --v-ink: #e7e9ec;
  --v-ink-muted: #98a1ad;
  --v-accent: #4c8dff;
  --v-surface: #17191d;
  --v-page: #0f1114;
  --v-line: #2a2f36;
  --v-field: #22262c;
  --v-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 24px rgba(0, 0, 0, .35);
  --v-scrim: rgba(0, 0, 0, .6);

  --v-danger: #ff9b93;
  --v-danger-strong: #e06a5e;
  --v-danger-line: #5c2f2a;
  --v-danger-bg: #2a1a18;
  --v-danger-fill: #b3261e;
  --v-danger-fill-hover: #c62828;
  --v-on-danger: #fdeceb;

  --v-ok: #6fdf9f;
  --v-ok-soft: #8fe0b0;
  --v-ok-strong: #3fa96e;
  --v-ok-line: #2f5c3f;
  --v-ok-bg: #172a1f;
  --v-ok-wash: rgba(63, 169, 110, .12);
  --v-ok-wash-line: rgba(63, 169, 110, .4);
  --v-ok-badge: rgba(63, 169, 110, .25);
  /* The mint is too light to fill with: its greens mixed deeper. */
  --v-ok-fill: color-mix(in srgb, var(--v-ok-strong), var(--v-ok-bg) 35%);
  --v-ok-fill-hover: color-mix(in srgb, var(--v-ok-strong), var(--v-ok-bg) 45%);
  --v-on-ok: var(--v-acting-on-ink);

  --v-go: #3bb072;
  --v-go-line: #2f8f5b;
  --v-on-go: #000000;

  --v-linkedin: #5aa9e6;

  --v-warn: #e0b21e;
  --v-warn-soft: #e0c46a;
  --v-warn-strong: #f5b455;
  --v-star: #f5a40a;
  --v-star-text: #f5a40a;
  --v-draft: #59a7ec;
  --v-sale: #ee81a7;
  --v-hidden: #9ea4ab;
  --v-deleted: #f58276;
  --v-live-bg: #1f2228;
  --v-star-bg: #1f2228;
  --v-draft-bg: #1f2228;
  --v-sale-bg: #1f2228;
  --v-hidden-bg: #1f2228;
  --v-deleted-bg: #1f2228;
  --v-live-hover: #1b1e23;
  --v-star-hover: #1b1e23;
  --v-draft-hover: #1b1e23;
  --v-sale-hover: #1b1e23;
  --v-hidden-hover: #1b1e23;
  --v-deleted-hover: #1b1e23;
  --v-warn-line: #5c4d1e;
  --v-warn-bg: #2a2414;
  --v-warn-wash: rgba(224, 138, 30, .12);
  --v-warn-wash-line: rgba(224, 138, 30, .4);
  --v-warn-badge: rgba(224, 138, 30, .25);

  --v-caution: #ff9d5c;
  --v-caution-line: #5c351e;
  --v-caution-bg: #2c1d13;

  --v-accent-soft: #7fb0ff;
  --v-accent-line: #2f4a7a;
  --v-soft-ink: #c9b8ff;
  --v-soft-line: #4a3f7a;
  --v-graph-ink: #a8c5ff;
  --v-graph-line: #5a86d8;
  --v-share-ink: #8fe6b4;
  --v-share-line: #3f9a68;
  --v-on-accent: #0b1220;

  --v-accent-wash: rgba(76, 141, 255, .16);
  --v-accent-wash-deep: rgba(76, 141, 255, .3);
  --v-accent-on-wash: #7fb0ff;

  --v-tray: #1f2228;
  --v-frame: #6b7480;
  --v-divider: #3a414b;

  --v-tag-district: #8fb4ff;
  --v-tag-subdistrict: #f59ad3;
  --v-tag-settlement: #a6e07a;
  --v-tag-neighborhood: #4fd8c4;
  --v-tag-problem: #f5b455;
  --v-tag-unused: #98a1ad;
  --v-tag-on: #17191d;
  --v-tag-on-problem: #1a1a1a;

  /* A dark look's panel stands a clear shade above the ground: the tray's
     tone, and a thing raised on it the darker surface. */
  --v-panel: var(--v-tray);
  --v-raised: var(--v-surface);
}

/* The one face, Heebo: self-hosted woff2 from fontsource (OFL, beside them
   in app/assets/fonts), headings and words alike. Each script is its own
   file, fetched only when a page shows it. */
@font-face {
  font-family: "Heebo"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/heebo-hebrew-400-normal-07a6534b.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Heebo"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/assets/heebo-hebrew-500-normal-933112d0.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Heebo"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/heebo-hebrew-600-normal-472d52b0.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Heebo"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/heebo-latin-400-normal-3c513fd9.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: "Heebo"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/assets/heebo-latin-500-normal-4ee084c5.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: "Heebo"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/heebo-latin-600-normal-0cefb51f.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;
}

*, *::before, *::after { box-sizing: border-box; }

/* hidden means hidden, whatever display a class gives the element. */
[hidden] { display: none !important; }

.v-sr-only {
  position: absolute; inline-size: 1px; block-size: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* The skip link: out of sight until a keyboard reaches it, then a raised
   press at the window's top start, over every bar and layer of the
   pages that carry it, the agency sites' and the board's
   (test/assets/skip_link_test.rb). The screen it lands on is not a
   control, so it takes focus without a ring. */
.v-skip {
  position: absolute; inset-block-start: .75rem; inset-inline-start: .75rem; z-index: 30;
  padding: .625rem 1rem; color: var(--v-ink); background: var(--v-raised);
  border: 1px solid var(--v-frame); border-radius: var(--v-radius-control);
}
.v-skip:not(:focus) { clip-path: inset(50%); inline-size: 1px; block-size: 1px; overflow: hidden; padding: 0; border: 0; }
#main:focus { outline: none; }
/* A notice that takes focus so a screen reader says it is not a control:
   no ring, like the screen itself. */
:is([role="status"], [role="alert"])[tabindex="-1"]:focus { outline: none; }
/* A step's heading, focused by the script for a screen reader as a step
   opens, is no control either (#133). */
.v-step-title[tabindex="-1"]:focus { outline: none; }

/* The scrollbar's room is kept whether the page scrolls or not, so a page
   that grows under a press keeps its width and its panels' columns. */
html { scrollbar-gutter: stable; }

body {
  margin: 0; min-block-size: 100vh;
  font-family: var(--v-font); font-size: var(--v-font-size); line-height: var(--v-line-height);
  background: var(--v-ground); color: var(--v-ink);
}

a { color: var(--v-accent); }
/* Headings at 600, by the scale: page 30, section 21, part 18. */
h1, h2, h3 { font-weight: 600; }
h1 { margin-block: 0 1.5rem; font-size: 1.875rem; line-height: 1.2; letter-spacing: -.01em; }
h2 { margin-block: 1.75rem .75rem; font-size: 1.3125rem; line-height: 1.3; }
h3 { margin-block: 1.25rem .5rem; font-size: 1.125rem; line-height: 1.3; }
p { margin-block: 0 var(--v-gap); }

/* One ring for every control: the accent, clear of the control's own edge. */
:focus-visible { outline: 2px solid var(--v-accent); outline-offset: 2px; }

/* An inline stroke icon, drawn in the colour of the words beside it. */
.v-icon {
  flex: none; inline-size: 1.125rem; block-size: 1.125rem;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
/* An icon that points a way (back, next, send) is drawn left to right and
   turns over on a right-to-left page. */
[dir="rtl"] .v-icon--dir { scale: -1 1; }

/* The shell: the sidebar at the start of the window, the screen beside it
   across the rest of the width. On a narrow window the sidebar is a bar on top. */
.v-shell { display: flex; min-block-size: 100vh; }
.v-main { flex: 1; min-inline-size: 0; padding: 2rem 2.5rem 3rem; }

.v-side {
  flex: none; inline-size: 13rem; display: flex; flex-direction: column; gap: 1.5rem;
  padding-block: 1.5rem; padding-inline: .375rem .875rem; background: var(--v-panel); border-inline-end: 1px solid var(--v-line);
  /* Stays in the window as a long screen scrolls, its foot always in reach. */
  position: sticky; inset-block-start: 0; align-self: flex-start; block-size: 100vh; overflow-y: auto;
}
.v-side-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-inline: .375rem; }
.v-side-brand { display: flex; align-items: center; gap: .625rem; font: 600 1.125rem/1.3 var(--v-font); }
.v-side-mark {
  display: flex; align-items: center; justify-content: center; flex: none;
  inline-size: 1.75rem; block-size: 1.75rem; border-radius: var(--v-radius-small);
  color: var(--v-on-accent); background: var(--v-accent);
}
.v-side-mark .v-icon { stroke-width: 2.2; }
.v-side-toggle {
  display: none; align-items: center; justify-content: center; inline-size: 2.75rem; block-size: 2.75rem; padding: 0;
  color: var(--v-ink); background: none; border: 1px solid var(--v-frame); border-radius: var(--v-radius-control); cursor: pointer;
}
.v-side-toggle .v-icon { inline-size: 1.375rem; block-size: 1.375rem; }
.v-side-menu { display: flex; flex: 1; flex-direction: column; gap: 1.5rem; }
.v-side-nav ul { display: flex; flex-direction: column; gap: .25rem; margin: 0; padding: 0; list-style: none; }
/* An area: muted until hovered or current; the current one raised, in ink,
   its icon in the accent, so it reads by surface and colour both. */
.v-side-nav a {
  display: flex; align-items: center; gap: .625rem; min-block-size: 2.25rem; padding: .375rem .625rem;
  color: var(--v-ink-muted); font-size: .8125rem; text-decoration: none; border-radius: var(--v-radius-small);
}
.v-side-nav a:hover { color: var(--v-ink); background: var(--v-hover); }
.v-side-nav a[aria-current="page"] { color: var(--v-ink); background: var(--v-raised); font-weight: 500; }
.v-side-nav a[aria-current="page"] .v-icon { color: var(--v-accent); }
.v-side-foot {
  display: flex; flex-direction: column; gap: .5rem; margin-block-start: auto;
  padding: .75rem .875rem; background: var(--v-raised); border-radius: var(--v-radius-control);
}
.v-side-foot p { margin: 0; color: var(--v-ink-muted); font-size: .8125rem; }
.v-side-foot .v-btn, .v-side-foot form { inline-size: 100%; }
.v-side-foot .v-btn { justify-content: center; }

/* A screen's head: its title at the start, its one primary press at the end. */
.v-page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem; margin-block-end: 1.5rem; }
.v-page-head > * { margin: 0; }
/* A list's page press sits right beside its title, within the eye's
   reach (#133); below 40rem it floats at the screen's foot. */
.v-page-head:has(> .v-page-press) { justify-content: flex-start; align-items: center; gap: 1rem; }
/* A title with a line under it that belongs to it (the realtor's office under their name). */
.v-title-group h1 { margin-block-end: .25rem; }

.v-panel {
  padding: 1.5rem 1.75rem; background: var(--v-panel); border: 1px solid var(--v-line); border-radius: var(--v-radius);
  /* A thin line of the look's accent along its top. */
  border-block-start: 2px solid var(--v-accent);
}
.v-panel :is(h1, h2, h3) { color: var(--v-ink); }
/* A panel jumped to by its #id stops a step below the window's top. */
.v-panel { scroll-margin-block-start: 1rem; }
.v-panel--narrow { max-inline-size: 28rem; margin-inline: auto; }
/* A form of paired fields (#231, My details): wide enough for two a row. */
.v-panel--pairs { max-inline-size: 52rem; margin-inline: auto; }
/* A panel of a line or two of facts, as wide as they are, at the inline start. */
.v-panel--fit { inline-size: fit-content; max-inline-size: 100%; padding-block: .5rem; }
.v-panel > :first-child { margin-block-start: 0; }
.v-panel > :last-child { margin-block-end: 0; }
/* A screen of parts, each its own panel: side by side where the window has
   room, one under another where it has not. */
.v-panels { display: grid; gap: 1.5rem; align-items: start; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); }
/* Two side by side at most, however wide the window: each column at least half the row. */
.v-panels--pairs { grid-template-columns: repeat(auto-fit, minmax(min(100%, max(26rem, (100% - 1.5rem) / 2)), 1fr)); }
.v-panels > * > :first-child { margin-block-start: 0; }
.v-panels + * { margin-block-start: 1.75rem; }
/* Search results (#461): a row a hit, its name the one link, its other facts
   under it in muted text, a hairline between rows; no dots, no bullets. */
.v-hits { margin: 0; padding: 0; list-style: none; }
.v-hits > li { display: grid; gap: .15rem; padding-block: .65rem; border-block-end: 1px solid var(--v-divider); }
.v-hits > li:last-child { border-block-end: 0; }
.v-hits > li > a { font-weight: 600; text-decoration: none; }
.v-hits > li > a:hover { text-decoration: underline; }
.v-hits-facts { display: flex; flex-wrap: wrap; column-gap: 1.25rem; color: var(--v-ink-muted); font-size: .875rem; }
.v-hits > li > div { justify-self: start; }
/* A short line of facts, each its own span, a hairline between them in place
   of a dot (#461); a line too long wraps whole facts. */
.v-fact-line { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .6rem; row-gap: .1rem; }
.v-fact-line > * + * { padding-inline-start: .6rem; border-inline-start: 1px solid color-mix(in srgb, currentColor 45%, transparent); }
/* A row of secondary presses. */
.v-presses { display: flex; flex-wrap: wrap; gap: .5rem; margin-block-end: 1.5rem; }
/* A few labelled numbers: each label beside its number, never across the width. */
.v-facts { border-collapse: collapse; margin-block-end: var(--v-gap); }
.v-facts th, .v-facts td { padding: .5rem 0; border-block-end: 1px solid var(--v-divider); }
.v-facts th { padding-inline-end: 3rem; color: var(--v-ink-muted); font-weight: 400; text-align: start; }
.v-facts td { font-weight: 500; text-align: end; font-variant-numeric: tabular-nums; }
.v-facts tr:last-child > * { border-block-end: 0; }
.v-muted { color: var(--v-ink-muted); }
/* Home's areas: at most three tiles a row, wrapping to two, then one. */
.v-home-tiles {
  display: grid; gap: 1.125rem; margin-block: 1.75rem 0;
  grid-template-columns: repeat(auto-fill, minmax(max(15rem, calc((100% - 2.25rem) / 3)), 1fr));
  grid-auto-rows: 1fr;
}
.v-tile {
  display: flex; align-items: center; gap: .875rem; padding: 1.5rem; text-decoration: none;
  color: var(--v-ink); background: var(--v-panel); border: 1px solid var(--v-line); border-radius: var(--v-radius);
}
.v-tile:hover { background: var(--v-hover); }
.v-tile-icon {
  display: flex; align-items: center; justify-content: center; flex: none;
  inline-size: 2.75rem; block-size: 2.75rem; border-radius: var(--v-radius-control);
  color: var(--v-accent); background: var(--v-raised);
}
.v-tile-icon .v-icon { inline-size: 1.375rem; block-size: 1.375rem; }
.v-tile-title { font: 600 1.3125rem/1.3 var(--v-font); }
/* A tile's live numbers under its title: the figure at h2's size, its words small. */
.v-tile-text { display: grid; gap: .125rem; }
.v-tile-number { font: 400 .9375rem/1.4 var(--v-font); color: var(--v-ink-muted); }
.v-tile-figure { font: 600 1.3125rem/1.3 var(--v-font); color: var(--v-ink); font-variant-numeric: tabular-nums; }
/* Home's waiting box: on the tiles' column grid, as many columns wide as it
   holds cards, from the inline start; full width once the tiles leave three
   columns (below 47.25rem, where a third of the row drops under 15rem). */
.v-home-waiting {
  display: grid; gap: 1.125rem; margin-block-start: 1.75rem; container-type: inline-size;
  grid-template-columns: repeat(auto-fill, minmax(max(15rem, calc((100% - 2.25rem) / 3)), 1fr));
}
.v-waiting--2 { grid-column: span 2; }
.v-waiting--3 { grid-column: 1 / -1; }
@container (width < 47.25rem) { .v-waiting { grid-column: 1 / -1; } }
/* The box is no panel (#461): its head straight over its cards on the page. */
.v-waiting > h2 { margin: 0 0 .75rem; }
.v-waiting ul {
  display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}
/* One open item: its level, its count large, its words, its press at the
   foot; tinted by urgency, red, orange, yellow, the level said in words too. */
.v-issue {
  display: flex; flex-direction: column; align-items: flex-start; gap: .5rem;
  padding: 1rem 1.25rem; color: var(--v-ink); border: 1px solid; border-radius: var(--v-radius-control);
}
.v-issue .v-btn { margin-block-start: auto; }
.v-issue-level { font: 500 .8125rem/1.4 var(--v-font); }
.v-issue-figure { display: block; font: 600 1.875rem/1.2 var(--v-font); font-variant-numeric: tabular-nums; }
.v-issue--danger { background: var(--v-danger-bg); border-color: var(--v-danger-line); }
.v-issue--danger :is(.v-issue-level, .v-issue-figure) { color: var(--v-danger); }
.v-issue--caution { background: var(--v-caution-bg); border-color: var(--v-caution-line); }
.v-issue--caution :is(.v-issue-level, .v-issue-figure) { color: var(--v-caution); }
.v-issue--warn { background: var(--v-warn-bg); border-color: var(--v-warn-line); }
.v-issue--warn :is(.v-issue-level, .v-issue-figure) { color: var(--v-warn-soft); }
/* Nothing waiting: one green all-clear card, no level, no press. */
.v-issue--ok { margin: 0; background: var(--v-ok-bg); border-color: var(--v-ok-line); }

/* A press: the look's ink on the panel, a control's edge. The screen's one
   filled press is .v-btn--primary: the look's own accent, its words in the
   accent's ink, a step larger and bolder (docs/design.md, one filled press). */
.v-btn {
  display: inline-flex; align-items: center; gap: .5rem; min-block-size: 2.5rem; padding: .375rem 1rem;
  font: 500 .9375rem/1.4 var(--v-font); text-decoration: none; cursor: pointer;
  color: var(--v-ink); background: var(--v-panel); border: 1px solid var(--v-frame); border-radius: var(--v-radius-control);
}
/* A press's icon, before its words, the height of its letters. */
.v-btn .v-icon { inline-size: 1.125em; block-size: 1.125em; }
/* A fact's link ends in its icon, set on the words' line, a little apart. */
.v-facts a .v-icon { inline-size: 1.125em; block-size: 1.125em; vertical-align: -.2em; margin-inline-start: .3em; }
.v-btn:hover { color: var(--v-ink); background: var(--v-hover); border-color: var(--v-frame); }
/* The ring in ink, so it never melts into the primary's accent fill. */
.v-btn:focus-visible { outline-color: var(--v-ink); }
.v-btn--primary { min-block-size: 2.75rem; padding-inline: 1.5rem; font-weight: 600; color: var(--v-on-accent); background: var(--v-accent); border-color: var(--v-accent); }
.v-btn--primary:hover { color: var(--v-on-accent); background: var(--v-accent-soft); border-color: var(--v-accent-soft); }
/* A press that removes something: a deep red with light words in both
   looks (the dark look's own danger ink is a salmon, too light to fill
   with); hovered, a near step. */
.v-btn--danger { color: var(--v-on-danger); background: var(--v-danger-fill); border-color: var(--v-danger-fill); }
.v-btn--danger:hover { color: var(--v-on-danger); background: var(--v-danger-fill-hover); border-color: var(--v-danger-fill-hover); }
/* A neutral press beside the accent's: the look's ink on the panel, a
   control's edge; hovered, a near step, the hover ground. */
.v-btn--neutral { color: var(--v-ink); background: var(--v-panel); border-color: var(--v-frame); }
.v-btn--neutral:hover { color: var(--v-ink); background: var(--v-hover); border-color: var(--v-frame); }
.v-btn--danger-outline { color: var(--v-danger); background: var(--v-panel); border-color: var(--v-danger); }
.v-btn--danger-outline:hover { color: var(--v-danger); background: var(--v-danger-bg); border-color: var(--v-danger); }
.v-btn:is([aria-current="true"], [aria-current="page"]) { color: var(--v-accent-on-wash); background: var(--v-accent-wash); }
/* The chosen one stays washed when hovered, its edge the accent; never the filled press. */
.v-btn:is([aria-current="true"], [aria-current="page"]):hover { color: var(--v-accent-on-wash); background: var(--v-accent-wash); border-color: var(--v-accent); }
.v-inline-form { display: inline; margin: 0; }
/* A press that opens a part in place: a details' summary, no native marker. */
summary.v-btn { list-style: none; }
summary.v-btn::-webkit-details-marker { display: none; }
details[open] > summary.v-btn { margin-block-end: var(--v-gap); }
/* A part of a panel folded up under its summary, which reads as an h3. */
.v-fold { margin-block-start: var(--v-gap); }
.v-fold > summary { cursor: pointer; color: var(--v-accent); }
.v-fold > summary > h3 { display: inline; margin: 0; }
.v-fold[open] > summary { margin-block-end: .5rem; }

.v-input {
  inline-size: 100%; min-block-size: 2.5rem; padding: .375rem .875rem; font: inherit; color: var(--v-ink);
  background: var(--v-field);
  border: 1px solid var(--v-frame); border-radius: var(--v-radius-control);
}
textarea.v-input { padding-block: .625rem; }
/* An example in an empty box, in the checked secondary ink. */
.v-input::placeholder { color: var(--v-ink-muted); opacity: 1; }
/* A box as wide as its longest value, at the start side: short for a few
   figures, medium for a date or an area, wide for a pick or a name; the
   money size fits 99999999 and the ₪ (on .v-input-unit, the box inside it full).
   A fit box is as wide as the --v-fit letters its page sets, never past 40. */
.v-input--short { max-inline-size: calc(4ch + 3rem + 2px); }
.v-input--medium { max-inline-size: calc(10ch + 3rem + 2px); }
.v-input--wide { max-inline-size: calc(18ch + 3rem + 2px); }
.v-input--money { max-inline-size: calc(9ch + 3.125rem + 2px); }
.v-input--fit { max-inline-size: calc(min(var(--v-fit, 40), 40) * 1ch + 3rem + 2px); }

.v-form { display: grid; gap: .6rem; }
/* A form's press at its own width, at the start, a step below the last field. */
.v-form > .v-btn { justify-self: start; margin-block-start: .4rem; }
.v-form + p { margin-block-start: 1rem; }
/* A field: its label over its box, or a checkbox before its label; an error under either. */
.v-form-row { display: grid; gap: .25rem; }
/* A group of choices: its legend reads as a field's label, the choices on one row. */
.v-choices { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.v-choices > legend { margin-block-end: .25rem; padding: 0; }
.v-choices > input { inline-size: 1.1rem; block-size: 1.1rem; margin: 0; accent-color: var(--v-accent); }
.v-choices > label { margin-inline-end: 1rem; }
/* A radio and its label held together, so the choices wrap only as whole pairs. */
.v-choices > .v-choice { display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; }
.v-choices > .v-choice > input { inline-size: 1.1rem; block-size: 1.1rem; margin: 0; accent-color: var(--v-accent); }
.v-choices > .v-choice > label { margin-inline-end: 1rem; }
.v-choices > .v-choices-hint { flex-basis: 100%; margin: 0 0 .25rem; }
.v-form-row--check { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; }
.v-form-row--check > .flash, .v-form-row--check > .v-error { flex-basis: 100%; }
/* Two columns of fields side by side on a computer, the first at the
   reading start; each side a column of rows. On a phone, one under the other (#231). */
.v-form-pair, .v-form-side { display: grid; gap: var(--ic-5); align-content: start; }
@media (min-width: 48rem) {
  .v-form-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--ic-6); }
  /* The photo first on a phone, top at the reading end on a computer (#231). */
  .v-form-side--photo { grid-column: 2; grid-row: 1; }
}
/* A realtor's fields in titled groups (#231): a small heading over each, a line between them. */
.v-form-groups { display: grid; gap: var(--ic-6); }
.v-form-group { display: grid; gap: var(--ic-4); min-inline-size: 0; }
.v-form-group + .v-form-group { padding-block-start: var(--ic-6); border-block-start: 1px solid var(--ic-border); }
.v-form-group > .v-form-group-title { margin: 0; font-size: var(--ic-fs-3); line-height: 1.3; }
/* A field and what belongs to it (a box's checkbox), the field gap under them both. */
.v-form-field { display: grid; gap: var(--ic-2); }
/* Role and gender (#264): separate fields, each with the gap of the form around them. */
.v-role-fields { display: contents; }
.v-form-hints { display: grid; gap: .25rem; }
.v-form-row > input[type=checkbox] { inline-size: 1.1rem; block-size: 1.1rem; accent-color: var(--v-accent); }
.v-form-row > input[type=checkbox]:focus-visible { outline: 2px solid var(--v-accent); outline-offset: 2px; }
/* A list's search: a panel holding the box and its press, the sorts and
   filters on a row under them. */
.v-search {
  display: flex; flex-wrap: wrap; gap: .75rem; margin-block-end: 1.5rem; padding: 1.25rem 1.5rem;
  background: var(--v-panel); border: 1px solid var(--v-line); border-radius: var(--v-radius);
}
.v-search > .v-input { flex: 1 1 18rem; inline-size: auto; min-inline-size: 0; max-inline-size: 32rem; }
/* A list's sorts and filters: a row of labelled selects under the box, wrapping on a phone. */
.v-search-options { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem .875rem; }
.v-search-options > :is(h2, p) { margin: 0; }
.v-search-option { display: grid; gap: .375rem; color: var(--v-ink-muted); font-size: .8125rem; }
.v-search-option .v-input { inline-size: auto; font-size: .9375rem; color: var(--v-ink); }

/* An edit screen: a label over each field, its error under it. */
.v-edit { max-inline-size: 48rem; }
.v-field { display: grid; gap: .25rem; }
/* A field's hint under its label: secondary words at the small size. */
.v-field > .v-muted { font-size: .9375rem; }
/* An info button beside a label: a filled accent dot, a press's own pair,
   in a larger target. It opens a .v-bubble. */
.v-field:has(> .v-bubble), .v-form-row:has(> .v-bubble) { anchor-name: --v-bubble-field; anchor-scope: --v-bubble-field, --v-info; }
.v-info {
  display: inline-flex; align-items: center; justify-content: center; inline-size: 1.75rem; block-size: 1.75rem;
  position: relative; margin-inline-start: .25rem; padding: 0; vertical-align: middle; cursor: pointer;
  background: none; border: 0; border-radius: var(--v-radius-small); anchor-name: --v-info;
}
.v-info:hover { background: var(--v-hover); }
.v-info-dot {
  display: grid; place-items: center; inline-size: 1.25rem; block-size: 1.25rem; border-radius: 50%;
  background: var(--v-accent); color: var(--v-on-accent); font: 600 .8125rem/1 var(--v-font);
}
/* A speech bubble over the page, never pushing the form: ink with the
   panel's colour for words (the words-on-panel pair, turned over), as wide
   as its words, never past its field or 40 letters, .625rem above the
   button; a link in it whole on its own line (.v-bubble-url). Its tail is the
   button's own, since nothing inside the bubble may anchor to the button;
   the bubble covers the tail's upper half, the same fill, so they read as
   one. A browser without anchor positioning shows it along the window's
   foot, tailless. Each field scopes the two names, so a screen with
   several buttons opens each bubble at its own. */
.v-bubble {
  position: fixed; inset: auto; margin: 0;
  inset-block-end: calc(anchor(--v-info start) + .625rem);
  inset-inline-start: anchor(--v-bubble-field start);
  inline-size: fit-content; max-inline-size: min(anchor-size(--v-bubble-field inline), calc(40ch + 2rem));
  /* The button is its anchor, so it scrolls with the button, and unsafe so
     it is never shifted back into the window: it stays above its button. */
  position-anchor: --v-info; align-self: unsafe end; justify-self: unsafe start;
  padding: .75rem 1rem; color: var(--v-panel); background: var(--v-ink); font-size: .9375rem; line-height: 1.5;
  border: 0; border-radius: var(--v-radius-control);
}
.v-bubble-url { display: block; overflow-wrap: anywhere; }
@supports (anchor-name: --v-a) {
  :is(.v-field, .v-form-row):has(> .v-bubble:popover-open) .v-info::after {
    content: ""; position: absolute; inset-block-end: calc(100% + .25rem); inset-inline-start: calc(50% - .375rem);
    inline-size: .75rem; block-size: .75rem; background: var(--v-ink); rotate: 45deg;
  }
}
@supports not (anchor-name: --v-a) {
  .v-bubble { inset-block: auto 1rem; inset-inline: 1rem; inline-size: auto; max-inline-size: 30rem; }
}
.v-error { margin: 0; color: var(--v-danger); font-size: .875rem; }
.v-done { margin: 0; color: var(--v-ok); font-size: .875rem; }
.v-code { font-family: ui-monospace, monospace; font-size: .875rem; }
/* The office edit screen: cards in a grid, the office and its domains on the
   right, the site's texts and codes on the left, the save under the codes.
   The edit form lays its cards straight into the grid. */
.v-edit-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--v-gap) 1.5rem; align-items: start;
  grid-template-areas: "office texts" "office codes" "domains codes";
}
.v-edit-split > form { display: contents; }
#edit-office { grid-area: office; }
#edit-texts { grid-area: texts; }
.v-edit-codes { grid-area: codes; display: grid; gap: var(--v-gap); min-inline-size: 0; }
.v-edit-split > #domains { grid-area: domains; }
.v-edit-split .v-panel { min-inline-size: 0; padding: 1rem 1.25rem; }
.v-edit-split fieldset { display: grid; gap: .35rem; min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.v-edit-split legend, .v-edit-split summary, .v-edit-split h2 {
  padding: 0; margin-block: 0 .25rem; font: 600 1.1875rem/1.3 var(--v-font); color: var(--v-ink);
}
.v-edit-split summary { cursor: pointer; }
.v-edit-split details[open] { display: grid; gap: .35rem; }
.v-edit-split fieldset p, .v-edit-split #domains p { margin: 0 0 .5rem; }
.v-pairs { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem 1rem; }
.v-edit-split .v-field > label { line-height: 1.3; }
.v-edit-split textarea { resize: vertical; }
.v-edit-split .v-code { line-height: 1.4; }
.v-switches { display: grid; gap: .4rem; border: 0; padding: 0; margin: 0; }
/* A switch confirm's line by direction; the words say on or off too. */
.v-change--on { color: var(--v-ok); }
.v-change--off { color: var(--v-danger); }
.v-rule { border: 0; border-block-start: 1px solid var(--v-divider); margin-block: 1rem; }
.flash { padding: .75rem 1rem; border-radius: var(--v-radius-control); border: 1px solid var(--v-ok-line); background: var(--v-ok-bg); color: var(--v-ok-soft); }
.flash--alert { border-color: var(--v-danger-line); background: var(--v-danger-bg); color: var(--v-danger); }

/* A wide table scrolls inside its own box, so the page never scrolls sideways on a phone. */
.v-table-wrap { overflow-x: auto; background: var(--v-panel); border: 1px solid var(--v-line); border-radius: var(--v-radius); }
.v-table { inline-size: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.v-table th, .v-table td { padding: .75rem 1rem; text-align: start; white-space: nowrap; border-block-end: 1px solid var(--v-divider); }
.v-table th { color: var(--v-ink-muted); font-size: .8125rem; font-weight: 500; }
/* A row's own header is the row's first fact, read like the rest. */
.v-table tbody th { color: var(--v-ink); font-size: inherit; font-weight: 400; }
/* Only a row that does something lights up under the pointer. */
.v-table tbody tr:has(a, button):hover > * { background: var(--v-hover); }
/* The last row, or the last office row while its panel after it is closed. */
.v-table tbody :is(tr:last-child, tr:has(+ tr[hidden]:last-child)) > * { border-block-end: 0; }
/* A short table at its content's width, not stretched across the window. */
/* A table in a panel is the panel's: no box of its own, its first column on the heading's edge. */
.v-panel .v-table-wrap { background: none; border: 0; border-radius: 0; }
.v-panel .v-table :is(th, td):first-child { padding-inline-start: 0; }
.v-table-wrap--fit { inline-size: fit-content; max-inline-size: 100%; }
.v-table-wrap--fit .v-table :is(th, td) { padding-inline-end: 3rem; }
/* Every list's table fits a 1000px window: tighter cells, headers on one
   line, the address wrapping anywhere, the short columns at their content. */
#list .v-table :is(th, td) { padding: .45rem .4rem; }
#list .v-table td[data-col="email"] { white-space: normal; overflow-wrap: anywhere; min-inline-size: 9rem; }
#list .v-table :is(th, td):is([data-col="opened"], [data-col="nadlanneto"], [data-col="nadlan2"], [data-col="id"], [data-col="more"]) { inline-size: 1%; }
#list .v-table :is(th, td):is([data-col="nadlanneto"], [data-col="nadlan2"]) { text-align: center; }
/* An office's row opens in place: the chevron button at its end turns up and
   a panel of the office's links shows under it, wrapping as more join. */
.v-table tr:has(.v-more-toggle:not([hidden])) { cursor: pointer; }
.v-more-toggle {
  display: inline-flex; padding: .35rem; color: var(--v-ink); background: none;
  border: 0; border-radius: var(--v-radius-small); cursor: pointer;
}
.v-more-toggle:hover { background: var(--v-raised); }
.v-more > td { background: var(--v-raised); }
.v-more-toggle[aria-expanded="true"] .v-chevron { transform: rotate(180deg); }
.v-more-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0; padding: 2.5rem 0; list-style: none; }
.flag-on { color: var(--v-ok); }
.flag-off { color: var(--v-ink-muted); }
.v-pages { display: flex; flex-wrap: wrap; align-items: center; gap: var(--v-gap); margin-block-start: var(--v-gap); }
/* Which of how many (#295): the count leads the pager's presses. */
.v-pages-count { margin: 0; color: var(--v-ink-muted); font-size: .875rem; font-variant-numeric: tabular-nums; }
/* The list's turbo-frame, which the live search draws again. */
#list { display: block; }

/* The places tree's look lives in places.css, scoped to its page. */
.v-check { margin-block-start: 1.5rem; }

/* A phone's rows: a one-line summary that opens in place to label: value lines. */
.v-rows { display: none; list-style: none; margin: 0; padding: 0; }
.v-rows > li { min-inline-size: 0; background: var(--v-panel); border: 1px solid var(--v-line); border-radius: var(--v-radius-control); }
/* The summary is one flex line without the native marker: the name fills the
   start, wrapping to two lines at most and cut there; the rest (the office,
   the id) follows it whole, on the next line when it must; the pill sits
   locked beside a thin chevron at the far end, which turns up when the row is open. */
.v-rows summary { display: flex; align-items: center; gap: .6rem; list-style: none; padding: .65rem .85rem; cursor: pointer; }
.v-rows summary::-webkit-details-marker { display: none; }
.v-row-line { flex: 1; min-inline-size: 0; }
.v-row-name { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .3rem; overflow-wrap: anywhere; }
.v-row-title {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
  min-inline-size: 0; overflow: hidden; unicode-bidi: plaintext;
}
.v-row-rest { min-inline-size: 0; }
/* Both labels share one cell, so every pill is as wide as the wider; only the row's own shows. */
.v-row-state { display: grid; flex: none; }
.v-row-state > .v-state { grid-area: 1 / 1; text-align: center; }
.v-state--ghost { visibility: hidden; }
.v-chevron {
  flex: none; inline-size: 1rem; block-size: .5625rem;
  fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .15s ease;
}
.v-rows details[open] > summary .v-chevron { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .v-chevron { transition: none; } }
/* card's status pill: active in card's live green, inactive in the amber card gives an archived card. */
.v-state { font-size: .8125rem; padding: .1875rem .625rem; border-radius: 999px; border: 1px solid currentColor; flex: none; white-space: nowrap; }
.v-state--active { color: var(--v-ok-soft); background: var(--v-ok-badge); }
.v-state--inactive { color: var(--v-warn-strong); background: var(--v-warn-badge); }
/* A listing's draft badge (#211), in the draft line's blue. */
.v-state--draft { color: var(--v-draft); background: var(--v-draft-bg); }
/* Something went wrong: the house danger red, on the alert's own opaque
   ground, which no palette's tinted panel can pull under AA. */
.v-state--error { color: var(--v-danger); background: var(--v-danger-bg); }
.v-row-facts {
  display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .25rem .75rem;
  margin: 0; padding: .6rem .85rem; border-block-start: 1px solid var(--v-divider);
}
.v-row-facts dt { color: var(--v-ink-muted); }
.v-row-facts dt::after { content: ":"; }
.v-row-facts dd { margin: 0; min-inline-size: 0; overflow-wrap: anywhere; }

/* A long error: its first line cut short, and the offices list's toggle
   under it, opening a panel of the whole error under the row. The error
   column takes what the row leaves, so the table never grows past its window. */
#list .v-table td[data-col="error"] { inline-size: 100%; max-inline-size: 0; white-space: normal; }
/* A row's panel fades in as it opens and out as it closes (a table's panel
   row by its cell; an AI report's open part as itself). */
@keyframes v-fade-in { from { opacity: 0; } }
@keyframes v-fade-out { to { opacity: 0; } }
.v-more:not([hidden]) > td, .ic-lead > .v-more:not([hidden]) { animation: v-fade-in .2s ease; }
.v-more.v-more--leaving > td, .ic-lead > .v-more.v-more--leaving { animation: v-fade-out .15s ease forwards; }
@media (prefers-reduced-motion: reduce) { .v-more > td, .ic-lead > .v-more { animation: none; } }
/* Each call reads from its own start, so its number sits inside the line, never past the panel's edge. */
#ai-report-recent ~ ol { padding: 0; list-style-position: inside; font-variant-numeric: tabular-nums; }
/* Facts that hold someone's own words (#435): each label on one line in a
   column wide enough for it, each value from its own start (dir=auto puts
   English left to right, Hebrew right to left); on a narrow screen the label
   sits above its value. */
.v-facts--words th { inline-size: 1%; white-space: nowrap; vertical-align: top; }
.v-facts--words td { text-align: start; overflow-wrap: anywhere; }
.v-facts--words td > p { margin: 0 0 .5em; }
.v-facts--words td > p:last-child { margin: 0; }
@media (max-width: 640px) {
  .v-facts--words :is(tbody, tr, th, td) { display: block; }
  .v-facts--words th { inline-size: auto; padding-block-end: .15rem; border-block-end: 0; white-space: normal; }
}
.v-error-line { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* The toggle's words in the accent, as a link reads; they say what a press does. */
.v-error-toggle { padding: .1rem .35rem; margin-inline-start: -.35rem; color: var(--v-accent); }
.v-error-toggle[aria-expanded="true"] .v-error-show, .v-error-toggle:not([aria-expanded="true"]) .v-error-hide { display: none; }
.v-error-full { display: block; padding-block: .5rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.v-error-panel { padding: 0 .85rem .6rem; }
/* A monthly charge's result: the pill, then Cardcom's error on one line cut
   short, its chevron opening the whole of it in place (clip controller). The
   cell takes what the row leaves, never less than the pill and a few words. */
.v-table td:has(> .v-charge-result) { inline-size: 100%; max-inline-size: 0; white-space: normal; }
.v-charge-result { display: flex; align-items: center; gap: .5rem; min-inline-size: 14rem; }
.v-charge-result:has(.is-open) { align-items: start; }
.v-clip { display: flex; flex: 1; align-items: center; gap: .25rem; min-inline-size: 0; }
.v-clip.is-open { align-items: start; }
.v-clip-text { min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-clip.is-open .v-clip-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.v-clip-toggle { flex: none; }

/* The looks pop-up, card's shape: two columns filled down, one on a phone. */
.v-dialog {
  inline-size: fit-content; min-inline-size: min(24rem, 92vw); max-inline-size: 96vw; padding: 1.25rem 1.4rem;
  color: var(--v-ink); background: var(--v-panel); border: 1px solid var(--v-line); border-radius: var(--v-radius);
}
/* The page behind a pop-up holds still under a blur, as the viewer's does. */
.v-dialog::backdrop { background: var(--v-scrim); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
html:has(dialog.v-dialog:modal) { overflow: hidden; scrollbar-gutter: stable; }
.v-dialog-title { margin: 0 0 .75rem; font-size: 1.3125rem; text-align: center; }
/* Card's live-change box (#172): the count, then what is about to go
   public, box by box, in a framed list that scrolls inside the box so the
   presses stay in view. What goes reads red, what arrives green, a long
   text's rewrite neither; "היה" and "יהיה" keep the ink. */
.v-dialog-body { margin: 0 0 1rem; color: var(--v-ink-muted); }
.v-dialog-list {
  margin: 0 0 1.25rem; padding: .75rem 1rem; list-style: none; max-block-size: 40vh; overflow-y: auto;
  border: 1px solid var(--v-line); border-radius: var(--v-radius);
}
.v-dialog-list[hidden] { display: none; }
.v-dialog-item { display: flex; flex-direction: column; margin-block-end: .75rem; overflow-wrap: anywhere; }
.v-dialog-item:is(:last-child, :has(+ .v-dialog-item[hidden]:last-child)) { margin-block-end: 0; }
.v-dialog-name { font-weight: 600; }
.v-dialog-was, .v-dialog-note--cleared { color: var(--v-danger); }
.v-dialog-will, .v-dialog-note--added { color: var(--v-ok); }
.v-dialog-side { color: var(--v-ink); }
.v-dialog-note { color: var(--v-ink-muted); }
/* A dialog's presses sit centred under its centred title, side by side,
   each as wide as the other. */
.v-dialog .v-actions { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; justify-content: center; }
.v-dialog .v-actions .v-btn { justify-content: center; }
.v-actions { display: flex; justify-content: center; gap: .75rem; }

/* Calm: what little moves stands still when the reader asks for less motion. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Below 70rem the sidebar folds to a bar on top, so the lists keep the
   whole width and still fit a 1000px window. */
@media (max-width: 70rem) {
  .v-shell { flex-direction: column; }
  .v-side {
    position: static; align-self: auto; block-size: auto; overflow-y: visible;
    inline-size: auto; gap: 1rem; padding: .75rem 1rem; border-inline-end: 0; border-block-end: 1px solid var(--v-line);
  }
  .v-side-toggle { display: inline-flex; }
  /* Folded, the menu's rows are a thumb's height again. */
  .v-side-nav a { min-block-size: 2.75rem; }
  .v-side-foot .v-btn { min-block-size: 2.75rem; }
  .v-side:has(.v-side-toggle[aria-expanded="false"]:not([hidden])) .v-side-menu { display: none; }
}

@media (max-width: 40rem) {
  .v-main { padding: 1.25rem 1rem 2rem; }
  .v-search { padding: 1rem; }
  .v-edit-split { grid-template-columns: 1fr; grid-template-areas: "office" "texts" "codes" "domains"; }
  .v-pairs { grid-template-columns: 1fr; }
  .v-panel { padding: 1rem; }
  #list .v-table-wrap { display: none; }
  .v-rows { display: grid; gap: .5rem; }
  /* A floating page press: the screen's one primary press, kept in its head
     for the keyboard and screen reader, sits fixed at the foot of a phone
     screen, full width, clear of the home bar; the page pads its foot so the
     last row is never under it. */
  .v-page-press {
    position: fixed; inset-inline: 1rem; inset-block-end: calc(.75rem + env(safe-area-inset-bottom)); z-index: 10;
    justify-content: center; min-block-size: 2.75rem;
  }
  .v-main:has(.v-page-press) { padding-block-end: calc(5rem + env(safe-area-inset-bottom)); }
}

/* The customer pages (/pay and its done, failed and closed pages): card's
   light block, never the admin's picked look; one panel in a narrow column
   centred on the ground, as read on a phone; the press 44px tall and full width. */
.v-pay { max-inline-size: 30rem; margin-inline: auto; padding: 3rem 1rem; }
/* The office and the amount, as labelled numbers: each label beside its value. */
.v-pay-summary { display: grid; grid-template-columns: auto 1fr; margin-block: 0 var(--v-gap); }
.v-pay-summary dt, .v-pay-summary dd { padding-block: .625rem; border-block-end: 1px solid var(--v-divider); }
.v-pay-summary dt { padding-inline-end: 1.5rem; color: var(--v-ink-muted); }
.v-pay-summary dd { margin: 0; font-weight: 500; text-align: end; font-variant-numeric: tabular-nums; }
.v-pay-summary :is(dt, dd):nth-last-child(-n + 2) { border-block-end: 0; }
.v-pay form { margin-block-start: 1.5rem; }
.v-pay .v-btn { min-block-size: 2.75rem; inline-size: 100%; justify-content: center; }
/* A customer page's secondary press: normal height, washed, framed; the
   same wash anywhere as .v-btn--wash, a helpful second way on (#189). */
.v-pay .v-presses .v-btn { min-block-size: 2.5rem; }
:is(.v-pay .v-presses .v-btn, .v-btn--wash) { color: var(--v-accent-on-wash); background: var(--v-accent-wash); border-color: var(--v-frame); }
/* Hovered, the same wash a step deeper, its edge the accent and its words
   the accent's darker step; never the filled press (#183). */
:is(.v-pay .v-presses .v-btn, .v-btn--wash):hover { color: var(--v-accent-soft); background: var(--v-accent-wash-deep); border-color: var(--v-accent); }
.v-pay .v-input { min-block-size: 2.75rem; }
.v-pay .v-info, .v-listing-form .v-info { inline-size: 2.75rem; block-size: 2.75rem; }
@media (max-width: 40rem) { .v-pay { padding-block: 1.25rem 2rem; } }
/* The AI sign-in's consent (#433): one accent only, on Approve; the app's
   mark, the summary, the note and the area rows quiet. */
.v-consent { display: grid; gap: 1rem; }
.v-consent > *, .v-consent > form, .v-consent form > * { margin: 0; }
.v-panel .v-consent :is(h1, h2) { color: var(--v-ink); }
.v-consent .v-title-group h1 { font-size: 1rem; font-weight: 600; }
.v-consent__app { display: flex; align-items: center; gap: .75rem; }
.v-consent__app > h2 { margin: 0; font-size: 1.25rem; font-weight: 600; line-height: 1.35; }
.v-consent__app > .ic-app-mark { flex: none; display: inline-grid; place-items: center; border: 1px solid; border-radius: var(--v-radius-control); font-weight: 700; line-height: 1; direction: ltr; inline-size: 2.75rem; block-size: 2.75rem; font-size: 1rem; background: var(--v-panel); border-color: var(--v-line); color: var(--v-ink); overflow: hidden; }
/* The asking app's logo, a fixed size inside its square, whole (its own proportions kept); this page loads no IC8 sheet, whose rule sizes it in Connections. */
.v-consent__app .ic-app-logo { inline-size: 1.5rem; block-size: 1.5rem; max-inline-size: 100%; max-block-size: 100%; object-fit: contain; }
.v-consent__summary { display: grid; gap: .5rem; padding: .75rem 1rem; border-radius: var(--v-radius-control); background: var(--v-raised); color: var(--v-ink-muted); }
.v-consent__summary > p, .v-consent__note { display: flex; align-items: flex-start; gap: .625rem; margin: 0; }
.v-consent__summary strong, .v-consent__summary bdi { color: var(--v-ink); }
.v-consent :is(.v-consent__summary, .v-consent__note) .v-icon { flex: none; inline-size: 1.125rem; block-size: 1.125rem; margin-block-start: .2em; }
.v-consent form.button_to { margin-block-start: -.75rem; }
.v-consent .v-consent__not-you { min-block-size: 2.75rem; padding-inline: 0; font-size: .875rem; color: var(--v-ink-muted); text-decoration: underline; text-underline-offset: 3px; }
.v-consent__note { padding: .75rem 1rem; border: 1px solid var(--v-line); border-radius: var(--v-radius-control); color: var(--v-ink); }
.v-consent form { display: grid; gap: 1rem; }
.v-consent__areas { display: grid; gap: .5rem; padding: 0; border: 0; min-inline-size: 0; }
.v-consent__areas > legend { padding: 0; margin-block-end: .5rem; font-weight: 600; color: var(--v-ink); }
.v-consent__area {
  display: flex; align-items: flex-start; gap: .75rem; min-block-size: 2.75rem; padding: .75rem 1rem; cursor: pointer;
  border: 1px solid var(--v-line); border-radius: var(--v-radius-control);
  transition: border-color 140ms ease-out;
}
.v-consent__area:hover { border-color: var(--v-ink-muted); }
.v-consent__area:has(input:focus-visible) { outline: 2px solid var(--v-ink); outline-offset: 2px; }
.v-consent__area > input { flex: none; inline-size: 1.25rem; block-size: 1.25rem; margin: .1em 0 0; accent-color: var(--v-accent); }
.v-consent__presses { display: grid; gap: .5rem; }
.v-consent__presses > .v-btn { inline-size: 100%; justify-content: center; min-block-size: 2.75rem; }
.v-consent__presses > .v-consent__deny { color: var(--v-ink); background: transparent; border-color: var(--v-line); }
.v-consent__presses > .v-consent__deny:hover { color: var(--v-ink); background: var(--v-hover); border-color: var(--v-ink-muted); }
@media (prefers-reduced-motion: reduce) { .v-consent__area { transition: none; } }

/* An agency site's page (#138): card's light block, one panel in a reading
   column centred on the ground, its presses 44px tall. */
.v-site { max-inline-size: 48rem; margin-inline: auto; padding: 3rem 1rem 0; }
.v-site .v-btn { min-block-size: 2.75rem; }
.v-site ul { margin-block: 0 var(--v-gap); padding-inline-start: 1.25rem; }
.v-site li + li { margin-block-start: .375rem; }
@media (max-width: 40rem) { .v-site { padding-block-start: 1.25rem; } }

/* The agency site's footer (#148), card's accessibility footer: the icon
   that reveals the widget's button, centred, the statement link a muted
   row beneath. */
.v-a11y { text-align: center; padding-block: 1.5rem 1.25rem; }
.v-a11y-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  inline-size: 44px; block-size: 44px; border-radius: 50%; cursor: pointer;
  color: var(--v-accent); background: var(--v-panel); border: 2px solid var(--v-frame);
}
.v-a11y-toggle:hover { border-color: var(--v-accent); }
/* Card's glyph at card's size (its font-size, 1.35rem), filled. */
.v-a11y-toggle .v-icon { inline-size: 1.35rem; block-size: 1.35rem; }
.v-icon--solid { fill: currentColor; stroke: none; }
/* A language's flag before its name on a switch, card's size, its own colours; a hairline keeps the white edges off a white press. */
/* A plain press (#183): words and their picture, no frame, in a link's ink,
   44px tall for a thumb. The realtor's language switch, and a signed-out
   page's way back. Signed out the switch sits in the panel's top corner at
   the inline end, what comes first after it keeps clear of it, and a way
   back sits on the same row at the start. */
.v-lang-link, .v-plain-link {
  display: inline-flex; align-items: center; gap: .5rem; min-block-size: 2.75rem; padding: 0 .5rem; margin: 0;
  color: var(--v-accent); background: none; border: 0; font: inherit; cursor: pointer;
}
.v-plain-link { text-decoration: none; }
.v-plain-link .v-icon { inline-size: 1.125rem; block-size: 1.125rem; }
.v-lang-link:hover, .v-plain-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.v-side-foot .v-lang-link { inline-size: 100%; justify-content: center; }
/* The signed-out panel's top row (#260): the switch at the end, a way back at
   the start, both in the flow, so whatever comes next starts under them.
   Reversed so the switch stays first in reading order. */
.v-pay .v-panel-top { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: center; gap: .5rem; margin: -.5rem -.5rem .75rem; }
.v-pay .v-panel-top > .v-lang-switch { margin: 0; }
.v-pay .v-back-row { margin: 0; }
.v-flag { flex: none; inline-size: 1.5rem; block-size: 1rem; border-radius: 2px; outline: 1px solid var(--v-line); }
.v-a11y-legal-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-block: .85rem 0; font-size: .9375rem; }
.v-a11y-legal { display: inline-flex; align-items: center; min-block-size: 2.75rem; color: var(--v-ink-muted); }
.v-a11y-legal:hover { color: var(--v-ink); }
/* An agency site's footer (#362): three links, a dot between, the statement
   on the line under them; the empty item breaks the line. */
.v-a11y-dot { display: inline-flex; align-items: center; color: var(--v-ink-muted); }
.v-a11y-line-break { flex-basis: 100%; block-size: 0; }

/* The realtor's listings (#131): cards, the cover photo on top, one column
   on a phone; the form and its board checklist beside it, the checklist
   first on a phone. Touch targets 44px, as a customer page's. */
/* The list's search (#211), above its chips, the column's full width. */
.v-listings-search { margin-block: 0 var(--v-gap); }
.v-listings-search .ic-search { inline-size: 100%; max-inline-size: none; }
/* The listings (#211): three across at most, so a card has room, each at
   least 18rem, so a tablet takes two and a phone one; the cards grow to
   fill their columns, a wide gap between them both ways. */
.v-listings {
  --v-listings-gap: calc(var(--v-gap) * 2);
  display: grid; gap: var(--v-listings-gap); margin: 0; padding: 0; list-style: none;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, max(18rem, (100% - 2 * var(--v-listings-gap)) / 3)), 1fr));
}
.v-listing {
  display: flex; flex-direction: column; min-inline-size: 0; overflow: hidden;
  background: var(--v-panel); border: 1px solid var(--v-line); border-radius: var(--v-radius);
}
.v-listing:has(h2 a:hover) { background: var(--v-hover); }
.v-listing-cover { display: block; inline-size: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--v-raised); }
.v-listing-cover--none { display: grid; place-items: center; color: var(--v-ink-muted); }
.v-listing-cover--none .v-icon { inline-size: 2.5rem; block-size: 2.5rem; }
/* A sold or rented listing's stamp (#211), at the photo's top inline-end
   corner, turned a little as a rubber stamp lands: the accent, a sale celebrated, on the
   card's own solid ground so any photo under it reads, framed by a double
   rule; hidden from a screen reader, the badge carrying the words. */
.v-listing-stamp {
  position: absolute; inset-block-start: .875rem; inset-inline-end: .875rem; z-index: 1; pointer-events: none;
  padding: .25rem .875rem; font-size: 1.125rem; font-weight: 700; line-height: 1.3; color: var(--v-sale);
  background: var(--v-panel); border: 4px double var(--v-sale); border-radius: var(--v-radius-small); rotate: -8deg;
}
/* Its state's seal, or the star, before its word. */
.v-listing-stamp { display: inline-flex; align-items: center; gap: .375rem; }
.v-listing-stamp .v-icon { inline-size: 1.375rem; block-size: 1.375rem; }
/* The starred stamp: the star's gold frame and filled star, its word in
   the starred words' ink; shown only while the card's star is pressed. */
.v-listing-stamp--starred { display: none; color: var(--v-star-text); background: var(--v-star-bg); border-color: var(--v-star); }
.v-listing-stamp--starred .v-icon { color: var(--v-star); fill: currentColor; }
.v-listing:has(:is(.v-listing-star-press[aria-pressed="true"], .v-listing-star-text)) .v-listing-stamp--starred { display: inline-flex; }
/* Every card not on the board (#211): its photo dimmed under IC8's veil,
   still recognisable, and its stamp in its state's colour: a draft and any
   other card off the board the draft blue, sold and rented the sale pink,
   hidden and deleted the muted ink. */
.v-listing--off::before {
  content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; aspect-ratio: 4 / 3; z-index: 1; pointer-events: none;
  background: var(--ic-overlay);
}
/* With no photo there is nothing to dim (#461). */
.v-listing--off:has(.v-listing-cover--none)::before { content: none; }
/* Each stamp on its state's ground (#211): a pale tint of its hue on a
   light theme, the card's own ground on a dark one. */
.v-listing-stamp--sold, .v-listing-stamp--rented { background: var(--v-sale-bg); }
.v-listing-stamp--draft, .v-listing-stamp--off_board { color: var(--v-draft); background: var(--v-draft-bg); border-color: var(--v-draft); }
.v-listing-stamp--hidden { color: var(--v-hidden); background: var(--v-hidden-bg); border-color: var(--v-hidden); }
.v-listing-stamp--removed { color: var(--v-deleted); background: var(--v-deleted-bg); border-color: var(--v-deleted); }
/* Its card's outline in the same accent, 5px as the starred edge: its own
   1px edge and 4px inside it on the edge's layer, so nothing shifts; drawn
   at once, never drawn round. */
/* A card's body on its state's ground (#211): a pale tint of its hue on a
   light theme, the card's own ground on a dark one; a starred card's gold
   wins, as its edge does. */
.v-listing--live { background: var(--v-live-bg); }
.v-listing--closed { background: var(--v-sale-bg); }
.v-listing--draft, .v-listing--off:not(.v-listing--closed, .v-listing--muted, .v-listing--deleted) { background: var(--v-draft-bg); }
.v-listing--muted { background: var(--v-hidden-bg); }
.v-listing--deleted { background: var(--v-deleted-bg); }
.v-listing:has(:is(.v-listing-star-press[aria-pressed="true"], .v-listing-star-text)) { background: var(--v-star-bg); }
/* Hovered, a small step deeper in its own hue on a light theme; on a dark
   one the hover every card has. */
.v-listing--live:has(h2 a:hover) { background: var(--v-live-hover); }
.v-listing--closed:has(h2 a:hover) { background: var(--v-sale-hover); }
.v-listing--draft:has(h2 a:hover), .v-listing--off:not(.v-listing--closed, .v-listing--muted, .v-listing--deleted):has(h2 a:hover) { background: var(--v-draft-hover); }
.v-listing--muted:has(h2 a:hover) { background: var(--v-hidden-hover); }
.v-listing--deleted:has(h2 a:hover) { background: var(--v-deleted-hover); }
.v-listing:has(:is(.v-listing-star-press[aria-pressed="true"], .v-listing-star-text)):has(h2 a:hover) { background: var(--v-star-hover); }
/* The card's edit press sits in it (#211): see-through, on the card's own
   ground, edged in a soft mix of its state's colour, hovered on its step;
   on a dark theme the edge is the theme's control edge, as before. */
.v-listing--live { --v-card-line: var(--v-live-line); }
.v-listing--closed { --v-card-line: var(--v-sale-line); }
.v-listing--draft, .v-listing--off:not(.v-listing--closed, .v-listing--muted, .v-listing--deleted) { --v-card-line: var(--v-draft-line); }
.v-listing--muted { --v-card-line: var(--v-hidden-line); }
.v-listing--deleted { --v-card-line: var(--v-deleted-line); }
.v-listing:has(:is(.v-listing-star-press[aria-pressed="true"], .v-listing-star-text)) { --v-card-line: var(--v-star-line); }
.v-listing-edit .v-btn--neutral, .v-listing-edit .v-btn--neutral:hover { background-color: transparent; border-color: var(--v-card-line, var(--v-frame)); }
/* The card's own presses, its star row and its edit press, hovered on the
   same step as the card: never the plain hover, near white on a tint. */
.v-listing--live :is(.v-listing-star-press, .v-listing-edit .v-btn):hover { background: var(--v-live-hover); }
.v-listing--closed :is(.v-listing-star-press, .v-listing-edit .v-btn):hover { background: var(--v-sale-hover); }
:is(.v-listing--draft, .v-listing--off:not(.v-listing--closed, .v-listing--muted, .v-listing--deleted)) :is(.v-listing-star-press, .v-listing-edit .v-btn):hover { background: var(--v-draft-hover); }
.v-listing--muted .v-listing-edit .v-btn:hover { background: var(--v-hidden-hover); }
.v-listing:has(:is(.v-listing-star-press[aria-pressed="true"], .v-listing-star-text)) :is(.v-listing-star-press, .v-listing-edit .v-btn):hover { background: var(--v-star-hover); }
.v-listing--closed { border-color: var(--v-sale); }
.v-listing.v-listing--closed::after { border-color: var(--v-sale); opacity: 1; }
/* A draft's card outlined the same way in the draft blue; a starred
   card's gold wins over either, should one ever be both. */
.v-listing--draft { border-color: var(--v-draft); }
.v-listing.v-listing--draft::after { border-color: var(--v-draft); opacity: 1; }
/* A card on the board the same way in green, its stamp too; while a
   card's star is pressed, on the board or off it, the starred gold takes
   the place of its outline and stamp. */
.v-listing--live { border-color: var(--v-ok); }
.v-listing.v-listing--live::after { border-color: var(--v-ok); opacity: 1; }
.v-listing-stamp--live { color: var(--v-ok); background: var(--v-live-bg); border-color: var(--v-ok); }
/* A starred card, on the board or off it, wears the gold stamp alone. */
.v-listing:has(:is(.v-listing-star-press[aria-pressed="true"], .v-listing-star-text)) .v-listing-stamp:not(.v-listing-stamp--starred) { display: none; }
/* A hidden card the same way in the muted grey; a deleted one in its own
   bold red, its stamp, line, seal and chip too. */
.v-listing--muted { border-color: var(--v-hidden); }
.v-listing.v-listing--muted::after { border-color: var(--v-hidden); opacity: 1; }
.v-listing--deleted { border-color: var(--v-deleted); }
.v-listing.v-listing--deleted::after { border-color: var(--v-deleted); opacity: 1; }
.v-listing-body { display: grid; gap: .375rem; padding: 1rem 1.25rem 1.25rem; }
.v-listing-body > * { margin: 0; }
.v-listing h2 { font-size: 1.125rem; line-height: 1.4; }
.v-listing h2 a { color: var(--v-ink); text-decoration: none; }
/* The whole card is the link's press area; the focus ring rides on the card. */
.v-listing { position: relative; }
.v-listing h2 a::after { content: ""; position: absolute; inset: 0; }
.v-listing:has(h2 a:focus-visible) { outline: 2px solid var(--v-accent); outline-offset: 2px; }
.v-listing h2 a:focus-visible { outline: none; }
.v-listing-price { font: 600 1.3125rem/1.3 var(--v-font); font-variant-numeric: tabular-nums; }
/* A rent's price is a month's (#211), said small beside it. */
.v-listing-per { font-size: .875rem; font-weight: 400; }
/* The deal's tag beside the price, at its own small size; the place under the name. */
.v-listing-price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .5rem; }
.v-listing-deal { font-weight: 500; align-self: center; }
.v-listing-place { font-size: .9375rem; }
/* The realtor's note on the price (#220), small, held close under it. */
.v-listing-body > .v-listing-price-note { margin-block-start: -.25rem; font-size: .875rem; }
/* The price, then its on-request switch under it (#391), at the step's own gap;
   while on, the box shut and greyed: no fill, a dashed frame, its ₪ quiet. */
.v-price-scope { display: contents; }
.v-price-request { display: grid; gap: .6rem; min-inline-size: 0; }
.v-price-request .v-input:disabled { background: transparent; border-style: dashed; cursor: not-allowed; }
.v-price-request .v-input-unit:has(.v-input:disabled) { color: var(--v-ink-muted); }
/* The note's box, then its quick picks under their label (#220), at the step's own gap. */
.v-price-note { display: grid; gap: .6rem; min-inline-size: 0; }
/* The label over its presses as a field's over its box. */
.v-price-note-picks { display: grid; gap: .25rem; min-inline-size: 0; }
.v-price-note-picks > * { margin: 0; }
.v-price-note-picks .v-btn { min-block-size: 2.75rem; }
/* The note's count under its box's end corner, the warning colour at the cap. */
.v-chars-count { margin: 0; font-size: .875rem; font-variant-numeric: tabular-nums; justify-self: end; }
.v-chars-count.is-full { color: var(--v-warn); }
.v-listing-facts, .v-listing-handler { font-size: .9375rem; }
.v-board { display: grid; gap: .375rem; }
.v-listing .v-board { margin-block-start: .375rem; padding-block-start: .625rem; border-block-start: 1px solid var(--v-divider); }
.v-board-check { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: 0; padding: 0; list-style: none; font-size: .9375rem; }
.v-board-done > [aria-hidden] { color: var(--v-ok); font-weight: 600; }
.v-board-missing > [aria-hidden] { color: var(--v-danger); font-weight: 600; }
.v-board-line { margin: 0; font-size: .9375rem; }
.v-board-line--live { color: var(--v-ok); }
/* A card on the board (#211): its line alone, larger, led by a green
   seal, the words carrying the meaning, centred both ways in the room
   between the divider above it and the star row or the card's foot. */
.v-board-line--sealed { display: flex; align-items: center; justify-content: center; gap: .625rem; padding-block: .25rem; font-size: 1.25rem; font-weight: 600; line-height: 1.3; text-align: center; }
/* A label on its state's ground, as its stamp (#211): a centred pill. */
.v-board-line--sealed { justify-self: center; padding: .375rem 1rem; border-radius: 999px; }
.v-board-line--sealed.v-board-line--live { background: var(--v-live-bg); }
.v-board-line--sealed.v-board-line--draft { background: var(--v-draft-bg); }
.v-board-line--sealed:is(.v-board-line--sold, .v-board-line--rented) { background: var(--v-sale-bg); }
.v-board-line--sealed.v-board-line--hidden { background: var(--v-hidden-bg); }
.v-board-line--sealed.v-board-line--removed { background: var(--v-deleted-bg); }
.v-board-line--sealed .v-icon--seal { inline-size: 2rem; block-size: 2rem; stroke-width: 1.9; }
.v-listing .v-board:has(> .v-board-line--sealed) { flex: 1; align-content: center; }
/* Each sealed state in its own colour: on the board green (above), a draft
   its blue, sold and rented the sale pink, a sale celebrated, hidden the
   muted ink, deleted its own bold red. */
.v-board-line--draft { color: var(--v-draft); }
/* Under a card's status line, what it still needs to be published, each a
   link to its step, muted and centred (#211). */
.v-board-need { margin: 0; font-size: .9375rem; text-align: center; }
/* A chip's state glyph (#211), small before its word, in its state's
   colour; on the picked chip, and hovered, in the chip's own words' colour. */
.v-chips .v-chip-glyph { inline-size: 1.1em; block-size: 1.1em; }
.v-chip-glyph--board { color: var(--v-ok); }
.v-chip-glyph--starred { color: var(--v-star); }
.v-chip-glyph--off_board, .v-chip-glyph--drafts { color: var(--v-draft); }
.v-chip-glyph--sold { color: var(--v-sale); }
.v-chip-glyph--hidden { color: var(--v-hidden); }
.v-chip-glyph--removed { color: var(--v-deleted); }
.v-chips :is(a[aria-current="page"], a:hover) .v-chip-glyph { color: inherit; }
.v-board-line--sold, .v-board-line--rented { color: var(--v-sale); }
.v-board-line--hidden { color: var(--v-hidden); }
.v-board-line--removed { color: var(--v-deleted); }
.v-board-line--off { color: var(--v-ink-muted); }
/* Each thing the board still needs, in the red x's ink (#133). */
.v-board-line strong { color: var(--v-danger); font-weight: 600; white-space: nowrap; }

.v-listing-form .v-input { min-block-size: 2.75rem; }
.v-listing-form textarea.v-input { resize: vertical; }
.v-listing-hint { margin: 0; font-size: .9375rem; }
/* A label's tag after its words, as card's: needed or optional. */
.v-required, .v-optional { font-size: .875rem; font-weight: 400; }
.v-required { color: var(--v-danger); }
.v-optional { color: var(--v-ink-muted); }
/* A money box (ltr) with its ₪ sign inside at the right edge, the digits clear of it. */
.v-input-unit { position: relative; display: block; }
.v-input-unit > .v-input { inline-size: 100%; padding-inline-end: 2.25rem; }
/* The unit box is left to right on either page, so its sign sits at the digits' end, the right (#184). */
.v-input-unit > span { position: absolute; inset-block: 0; inset-inline-end: .875rem; display: flex; align-items: center; color: var(--v-ink-muted); pointer-events: none; }
/* A money box and, beside it, its copy in thousands; under it when the row is narrow. */
/* The box, then its thousands at its end on the same line at every size,
   never under it: the box gives up room before the thousands do (#220). */
.v-money { display: flex; flex-wrap: nowrap; align-items: center; gap: .75rem; min-inline-size: 0; }
.v-money > .v-input-unit { flex: 0 1 auto; min-inline-size: 0; }
.v-money > .v-input-unit > .v-input { min-inline-size: 0; }
.v-money-preview { flex: none; color: var(--v-ink-muted); font-size: .875rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* A few lines of text: three rows to start, growing with what is typed. */
textarea.v-input--grow { field-sizing: content; min-block-size: calc(3lh + 1.25rem + 2px); resize: vertical; }
/* One line of text, wrapping and growing as typed, never scrolling inside. */
textarea.v-input--line { display: block; field-sizing: content; min-block-size: calc(1lh + 1.25rem + 2px); resize: none; overflow: hidden; }
/* A capped box's count under it; past the cap, red words on their wash. */
.v-chars-left { margin: 0; font-size: .875rem; justify-self: start; }
.v-chars-left.is-over { padding: 0 .5rem; border-radius: 999px; color: var(--v-danger); background: var(--v-danger-bg); }
.v-listing-draft { display: grid; gap: .5rem; }
.v-listing-draft[hidden] { display: none; }
.v-listing-draft > p { margin: 0; }
/* A private field to type again after a draft was restored. */
.v-input--retype { background: var(--v-warn-bg); }
.v-listing-draft .v-actions { justify-content: start; flex-wrap: wrap; }
.v-listing-draft .v-btn { min-block-size: 2.75rem; }
.v-listing-choices { margin-block-start: .25rem; }
.v-listing-choices > input { inline-size: 1.375rem; block-size: 1.375rem; }
.v-listing-choices > label { min-block-size: 2.75rem; display: inline-flex; align-items: center; }
.v-listing-form .v-form-row--check > input[type=checkbox] { inline-size: 1.375rem; block-size: 1.375rem; }
.v-listing-form .v-form-row--check { min-block-size: 2.75rem; }

/* The listing form as a step editor (#172), in card's format: one step on
   the screen at a time, a step bar saying where the realtor is. The whole
   listing is one form in one panel; the panel's own width decides the bar:
   a list down its start side on a computer, four over four inside it on
   a middling screen, one swiping row inside it on a phone. Without script
   every step shows, one under another, and the bar links to each. */
.v-step-editor { container: listing-steps / inline-size; max-inline-size: 60rem; }
/* The panel is the form's grid item: without this it grows to the phone's whole swiping row. */
.v-step-panel { min-inline-size: 0; }
.v-step-screen { display: grid; gap: .6rem; min-inline-size: 0; scroll-margin-block-start: 1rem; }
.v-step-screen + .v-step-screen { margin-block-start: 2rem; padding-block-start: 1.5rem; border-block-start: 1px solid var(--v-divider); }
.v-step-fields { display: grid; gap: .6rem; min-inline-size: 0; }
/* One step at a time once script runs: asked of the browser, so no other
   step shows for a moment as the page loads, and set by the script too
   (is-stepped) where the browser cannot be asked. */
@media (scripting: enabled) {
  .v-step-screen:not(.is-current) { display: none; }
  .v-step-screen + .v-step-screen { margin-block-start: 0; padding-block-start: 0; border-block-start: 0; }
  .v-step[data-ahead] { opacity: .45; cursor: not-allowed; }
}
.is-stepped .v-step-screen:not(.is-current) { display: none; }
.is-stepped .v-step-screen + .v-step-screen { margin-block-start: 0; padding-block-start: 0; border-block-start: 0; }
.is-stepped .v-step[data-ahead] { opacity: .45; cursor: not-allowed; }
/* Without script the steps are one long form: one save, at its foot. */
@media (scripting: none) {
  .v-step-move { display: none; }
}
/* The step that arrives slides a little in from the side it comes from:
   on from the reading end, back from the start. Only the arriving screen
   moves, briefly; reduced motion keeps it still (the calm rule above). */
@keyframes v-step-in { from { opacity: 0; translate: var(--v-step-from) 0; } }
.v-step-screen { --v-step-shift: 1.25rem; }
[dir="rtl"] .v-step-screen { --v-step-shift: -1.25rem; }
.v-step-screen.is-arriving-next { --v-step-from: var(--v-step-shift); animation: v-step-in .22s ease-out; }
.v-step-screen.is-arriving-back { --v-step-from: calc(-1 * var(--v-step-shift)); animation: v-step-in .22s ease-out; }
/* The step leaving fades out first, its card kept (listing-steps#go; reduced motion never marks it). */
.v-step-screen.is-leaving > * { opacity: 0; transition: opacity .2s ease-in; }
/* A step's head: its icon on a raised tile, as home's tiles, and its name
   under the step's place in the order. */
.v-step-head { display: flex; align-items: center; gap: .875rem; margin-block-end: .25rem; }
.v-step-icon {
  display: grid; place-items: center; flex: none; inline-size: 2.75rem; block-size: 2.75rem;
  color: var(--v-accent); background: var(--v-raised); border-radius: var(--v-radius-control);
}
.v-step-icon .v-icon { inline-size: 1.375rem; block-size: 1.375rem; }
.v-step-title { margin: 0; font-size: 1.3125rem; line-height: 1.3; }
.v-step-count { display: block; font: 400 .9375rem/1.4 var(--v-font); color: var(--v-ink-muted); }
/* A step's presses under a rule: back at the start, the way on and the save at the end. */
.v-step-presses {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem;
  margin-block-start: .75rem; padding-block-start: 1rem; border-block-start: 1px solid var(--v-divider);
}
.v-step-on { display: flex; flex-wrap: wrap; gap: .75rem; margin-inline-start: auto; }
.v-step-presses .v-btn { min-block-size: 2.75rem; justify-content: center; }

/* The step bar, card's tabs: the icon over the word, one width a tab.
   Once script runs it stays pinned to the window's top as a step scrolls,
   on the panel's own ground, and a field the keyboard reaches scrolls in
   below it (the script sets its height); without script every step shows
   and the bar's links must not land under it. */
.v-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin: 0 0 1.5rem; }
.is-stepped .v-steps-pin { display: flow-root; position: sticky; inset-block-start: 0; z-index: 2; background: var(--v-panel); }
html:has(.v-step-editor) { scroll-padding-block-start: var(--v-steps-pin, 0px); }
.v-step {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem;
  min-block-size: 2.75rem; padding: .5rem; font-size: .875rem; line-height: 1.2; text-align: center; white-space: nowrap; text-decoration: none;
  color: var(--v-ink-muted); background: var(--v-field); border: 1px solid var(--v-line); border-radius: var(--v-radius-small);
}
.v-step .v-icon { inline-size: 1.25rem; block-size: 1.25rem; }
.v-step:not([data-ahead]):hover { color: var(--v-ink); }
.v-step--current { color: var(--v-ink); font-weight: 500; border-color: var(--v-accent); }
.v-step--current .v-icon { color: var(--v-accent); }
/* Finish is a tab among the others, a pill, green once it can be pressed. */
.v-step--finish { border-radius: 999px; }
.v-step--finish:not([data-ahead]) { color: var(--v-on-go); background: var(--v-go); border-color: var(--v-go-line); }
.v-step--finish.v-step--current .v-icon { color: inherit; }
/* Eight steps over two rows of four, finish on its own row under them. */
.v-steps > .v-step--finish { grid-column: 1 / -1; }
/* A listing's two last steps, the summary and manage, side by side under them (#225). */
.v-listing-form .v-steps > .v-step--finish { grid-column: span 2; }
/* A step holding a field a save refused: a steady dot in its corner, the count in words to a screen reader. */
.v-step-mark {
  position: absolute; inset-block-start: .3rem; inset-inline-end: .3rem;
  inline-size: 0; block-size: 0; border: .25rem solid var(--v-danger-strong); border-radius: 50%;
}
.v-steps-arrow { display: none; }
/* Below the side column, a phone or a tablet: one row that swipes, an arrow
   between each two steps, the edge with more steps behind it faded; the 4px
   is the focus ring's room. */
@container listing-steps (width < 52rem) {
  .v-steps {
    display: flex; gap: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
    padding: 4px; margin-block: -4px 1.25rem; margin-inline: -4px; scroll-padding-inline: calc(2rem + 4px);
  }
  /* Pinned, the focus ring's room above the row stays on the window. */
  .is-stepped .v-steps-pin { margin-block-start: -4px; padding-block-start: 4px; }
  .v-steps::-webkit-scrollbar { display: none; }
  .v-step { flex: 0 0 6rem; }
  .v-steps-arrow { display: flex; flex: 0 0 .75rem; align-items: center; justify-content: center; color: var(--v-ink-muted); pointer-events: none; }
  .v-steps-arrow svg { inline-size: .4rem; block-size: .6rem; overflow: visible; }
  .v-steps-arrow path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
  [dir="rtl"] .v-steps-arrow svg { transform: scaleX(-1); }
  .v-steps[data-more="end"] { mask-image: linear-gradient(to right, black calc(100% - 2rem), transparent); }
  .v-steps[data-more="start"] { mask-image: linear-gradient(to left, black calc(100% - 2rem), transparent); }
  [dir="rtl"] .v-steps[data-more="end"] { mask-image: linear-gradient(to left, black calc(100% - 2rem), transparent); }
  [dir="rtl"] .v-steps[data-more="start"] { mask-image: linear-gradient(to right, black calc(100% - 2rem), transparent); }
  .v-steps[data-more="both"] { mask-image: linear-gradient(to right, transparent, black 2rem, black calc(100% - 2rem), transparent); }
}
/* On a phone: the presses one under another, full width, the way on first. */
@container listing-steps (max-width: 32rem) {
  .v-step-presses { flex-direction: column-reverse; align-items: stretch; }
  .v-step-on { margin-inline-start: 0; }
  span.v-step-on { flex-direction: column; }
}
/* On a computer the steps leave the panel and run down the ground on its
   start side, the current one filled with the accent; they start level
   with the card's top and ride up with it as the page scrolls, then stay
   2rem under the window's top (the main's own top padding) while a long
   step scrolls (#133). A float pulled out past the panel's padding and
   edge takes no room from the form. */
@container listing-steps (min-width: 52rem) {
  .v-step-panel { margin-inline-start: 12.5rem; min-block-size: 22rem; }
  /* A listing's banner in the card's own column (#133). */
  .v-state-banner { margin-inline-start: 12.5rem; }
  .v-steps-pin, .is-stepped .v-steps-pin {
    position: sticky; inset-block-start: 2rem; float: inline-start; z-index: 1;
    inline-size: 11rem; margin-inline-start: calc(-1 * (11rem + 1.5rem + 1.75rem + 1px)); background: none;
  }
  .v-steps { display: flex; flex-direction: column; gap: .25rem; margin: 0; }
  .v-step, .v-step--finish:not([data-ahead]) {
    flex-direction: row; justify-content: flex-start; gap: .6rem; padding: .55rem .8rem;
    font-size: .9375rem; text-align: start; white-space: normal;
    color: var(--v-ink-muted); background: transparent; border-color: transparent; border-radius: var(--v-radius-small);
  }
  .v-step:not([data-ahead], .v-step--current):hover { color: var(--v-ink); background: var(--v-hover); }
  .v-step.v-step--current { color: var(--v-on-accent); background: var(--v-accent); border-color: var(--v-accent); }
  .v-step.v-step--current .v-icon { color: inherit; }
  .v-step--current .v-step-mark { outline: 2px solid var(--v-on-accent); }
}

/* Finish: what each step holds, each row the way back to it. */
.v-step-summary { display: grid; gap: .375rem; margin: 0; padding: 0; list-style: none; }
.v-step-summary a {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: .25rem .75rem; min-block-size: 2.75rem; padding: .5rem .875rem;
  color: var(--v-ink); text-decoration: none; background: var(--v-raised); border-radius: var(--v-radius-small);
}
.v-step-summary a:hover { background: var(--v-hover); }
.v-step-summary a > .v-icon:first-child { color: var(--v-accent); }
.v-step-summary a > .v-icon:last-of-type { color: var(--v-ink-muted); }
.v-step-summary-name { font-weight: 500; }
/* A step's count is grey however full, as most fields are optional; a
   step holding what keeps the listing off the board is red, the danger
   card's ink on its tint, and says so on a line of its own under its
   name, in the same pill. */
.v-step-filled {
  margin-inline-start: auto; font-size: .9375rem; font-variant-numeric: tabular-nums; padding: .125rem .625rem; border-radius: 999px; white-space: nowrap;
  color: var(--v-ink-muted); background: var(--v-panel);
}
.v-step-need {
  grid-column: 2 / -1; justify-self: start; padding: 0 .5rem; border-radius: 999px;
  font-size: .8125rem; font-weight: 400; color: var(--v-danger); background: var(--v-danger-bg);
}
.v-step-need[hidden] { display: none; }

/* The photos step (#132): the photos in order, each on a raised tile with
   its place box and its presses under it, the first marked the cover;
   then the lines of photos going up, each with its progress. Without
   script the picker and a send press show; with it, one pick press. */
/* A photo moved never drags the page after it (the browser's scroll anchoring).
   Large photos, what is in each seen without opening it (#133): three a
   row, two where three would leave one under 12rem (room for its three
   icon presses in one row with air around them); on a phone, too narrow
   for two such, two a row all the same, their presses in two rows. A wide
   card grows the photos, not the gaps. The photos step's card grows to
   72rem for them, the other steps keeping 60rem. */
.v-step-editor:has(#listing-step-photos.is-current) { max-inline-size: 72rem; }
.v-photos-region { container: photos / inline-size; }
.v-photos {
  overflow-anchor: none; display: grid; gap: var(--v-gap); margin: 0 0 var(--v-gap); padding: 0; list-style: none;
  grid-template-columns: repeat(auto-fill, minmax(max(12rem, calc((100% - 2 * var(--v-gap)) / 3)), 1fr));
}
@container photos (width < 25rem) { .v-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* A photo reads as something to drag: a dashed edge in the controls' own
   edge colour (3:1). Held, it is lifted, edged in the accent and drawn over
   the others, which slide aside (their own transform, set by script) to
   open the place it would land on; that gap is the mark, so the photo
   whose place is aimed (is-target) has no look of its own. */
.v-photo {
  display: grid; gap: .625rem; align-content: start; padding: .625rem; background: var(--v-raised);
  border: 2px dashed var(--v-frame); border-radius: var(--v-radius);
}
.v-photo { cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.v-photo .v-photo-presses { cursor: auto; }
.v-photo.is-lifted { position: relative; z-index: 3; border-style: solid; border-color: var(--v-accent); opacity: .92; cursor: grabbing; }
/* A tile looks grabbable (#133): hovered with a mouse, or its handle
   focused by the keyboard, it rises and grows a little, settling back on
   leave; a touch screen has no hover. The held tile follows the finger by
   its own transform, never eased, and stays the stronger look; moved by
   keyboard, or dropped, it eases into its place. A photo that slides
   aside or back (is-sliding) eases slower than the lift; while the list
   comes back after a drop (is-settling) nothing eases, so the script can
   draw each photo where it was and ease it on from there. */
.v-photo { transition: transform .15s ease, border-color .15s ease; }
.v-photo.is-lifted { transition: none; }
.v-photo.is-sliding:not(.is-lifted) { transition: transform .5s ease, border-color .15s ease; }
.v-photo.is-lifted.is-easing { transition: transform .5s ease; }
.v-photos-step.is-settling .v-photo { transition: none; }
.v-photo:not(.is-lifted):has(.v-photo-grab:focus-visible) { transform: var(--v-lift); }
@media (hover: hover) and (pointer: fine) {
  .v-photo:not(.is-lifted):hover { transform: var(--v-lift); }
}
/* With less motion nothing moves: only the edge turns the accent. */
@media (prefers-reduced-motion: reduce) {
  .v-photo { transition: none; }
  .v-photo:not(.is-lifted):has(.v-photo-grab:focus-visible) { transform: none; border-color: var(--v-accent); }
}
@media (prefers-reduced-motion: reduce) and (hover: hover) and (pointer: fine) {
  .v-photo:not(.is-lifted):hover { transform: none; border-color: var(--v-accent); }
}
.v-photo-frame { position: relative; }
/* The photo is the button a keyboard or a reader moves it by. */
.v-photo-grab { display: block; inline-size: 100%; padding: 0; background: none; border: 0; border-radius: var(--v-radius-small); cursor: inherit; }
.v-photo-frame img { display: block; inline-size: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--v-panel); border-radius: var(--v-radius-small); }
/* On the photo's start corner: its place in the order, and on the first
   the cover's pill, design.md's .v-state--active, on its state's opaque
   ground so the photo under it never shows through the words; on a photo
   too narrow for both in a row, the pill goes under the place. */
.v-photo-tags { position: absolute; inset-block-start: .5rem; inset-inline: .5rem; display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; pointer-events: none; }
/* The place number: the accent's fill and its words, ringed in the panel,
   so it stands out on any photo. */
.v-photo-place {
  display: grid; place-items: center; min-inline-size: 2.25rem; block-size: 2.25rem; padding-inline: .5rem;
  font-weight: 700; font-size: 1.0625rem; color: var(--v-on-accent); background: var(--v-accent);
  border: 2px solid var(--v-panel); border-radius: 999px;
}
.v-photo-cover { background: var(--v-ok-bg); }
/* On a phone's small photo, nearer the corner and the pill a little slimmer. */
@container photo (max-width: 8rem) {
  .v-photo-tags { inset-block-start: .375rem; inset-inline: .375rem; }
  .v-photo-cover { padding-inline: .5rem; }
}
/* Three icon presses in one row, each 44px high, always icons: the words
   are each one's name to a screen reader (.v-sr-only) and its hover title.
   On a tile too narrow for three icons (a phone's two a row), set as main
   takes the top row, turn and delete side by side under it.
   Each press has its own place, so the main photo, with no set as main,
   leaves that place empty and its two stand where every photo's do. */
.v-photo { container: photo / inline-size; }
.v-photo-presses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .25rem; }
.v-photo-make-cover { grid-column: 1; }
.v-photo-rotate { grid-column: 2; }
.v-photo-remove { grid-column: 3; }
@container photo (width < 8.75rem) {
  .v-photo-presses { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(2.75rem, auto)); }
  .v-photo-make-cover { grid-area: 1 / 1 / 2 / -1; }
  .v-photo-rotate { grid-area: 2 / 1; }
  .v-photo-remove { grid-area: 2 / 2; }
}
.v-photo-presses .v-btn { justify-content: center; min-block-size: 2.75rem; min-inline-size: 2.75rem; padding-inline: .375rem; }
.v-photos-none { margin: 0 0 var(--v-gap); }
/* The drag hint sits a gap above the photos, plus room for a first-row
   tile's lift (4px up, 3% larger: under .75rem for a tile under 33rem tall). */
.v-photos-drag { margin-block-end: calc(var(--v-gap) + .75rem); }
.v-photo-pick { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.v-photo-pick > p { margin: 0; }
/* The small note beside the pick press: a file already in the list. */
.v-photo-pick-said {
  padding: .25rem .75rem; font-size: .9375rem; color: var(--v-ink);
  background: var(--v-raised); border: 1px solid var(--v-line); border-radius: var(--v-radius-small);
}
.v-photo-pick-said:empty { display: none; }
/* A file not taken: the alert's flash, beside the press, with its close press. */
.v-photo-pick-refused { display: flex; align-items: center; gap: .25rem; padding-block: .25rem; padding-inline-end: .25rem; }
.v-photo-pick-refused[hidden] { display: none; }
.v-photo-pick-refused-text { flex: 1; }
.v-photo-pick-refused-text p { margin: 0; }
.v-photo-press { min-block-size: 2.75rem; }
/* With script, the press opens the picker; the browser's own picker and the send press only without (#225: by the media, so a redraw never shows the picker). */
.v-photo-press { display: none; }
@media (scripting: enabled) {
  .v-photo-input, .v-photo-send { display: none; }
  .v-photo-press { display: inline-flex; }
}
.v-photo-uploads { display: grid; gap: .5rem; margin: var(--v-gap) 0 0; padding: 0; list-style: none; }
.v-photo-uploads[hidden] { display: none; }
.v-photo-upload {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(6rem, 12rem); align-items: center; gap: .25rem .75rem;
  padding: .625rem .875rem; background: var(--v-raised); border-radius: var(--v-radius-small);
}
.v-photo-upload-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-photo-upload progress { inline-size: 100%; accent-color: var(--v-accent); }
.v-photo-upload-said { grid-column: 1 / -1; margin: 0; font-size: .9375rem; color: var(--v-ink-muted); }
.v-photo-upload[data-state="failed"] .v-photo-upload-said { color: var(--v-danger); }
.v-photo-upload .v-presses { grid-column: 1 / -1; margin: 0; }
.v-photo-upload .v-presses:empty { display: none; }
/* The board check's photo line is a way to the photos step, over the card's own link. */
.v-board-link { position: relative; z-index: 1; color: inherit; }
/* A deleted listing's restore sits over the card's stretched link too
   (#133), and so does the manager's star (#211). */
.v-listing-restore, .v-listing-star, .v-listing-edit { position: relative; z-index: 1; }
/* A card's edit press (#211): a thumb's 44px, at the details' end. */
.v-listing-edit .v-btn { min-block-size: 2.75rem; }
/* A starred listing's star is filled, its words saying so too (#211). */
.v-btn[aria-pressed="true"] .v-icon--star { fill: currentColor; }
/* The card's star row (#211): its last row, across the card's whole width,
   divided off as the board's checks are, set as the status line is:
   centred, larger, the star first at the seal's size, in the draft badge's gold, filled, and the words gold too,
   once starred. For the manager the whole row is the press; the card clips
   what leaves it, so the focus ring sits inside. A plain realtor sees a
   starred listing's row as plain text (.v-listing-star-text). */
/* A card stretched to its row's tallest keeps the star row at its foot. */
.v-listing-body:has(> .v-listing-star, .v-board-line--sealed) { display: flex; flex-direction: column; flex: 1; }
.v-listing-star { margin: auto -1.25rem -1.25rem; }
:is(.v-listing-star-press, .v-listing-star-text) {
  display: flex; align-items: center; justify-content: center; gap: .625rem; inline-size: 100%; min-block-size: 2.75rem;
  margin: 0; padding: .875rem 1.25rem; font: inherit; font-size: 1.25rem; font-weight: 600; line-height: 1.3; color: var(--v-ink); text-align: center;
  background: none; border: 0; border-block-start: 1px solid var(--v-divider);
}
.v-listing-star-press { cursor: pointer; }
.v-listing-star-press:hover { background: var(--v-hover); }
/* Inside the starred card's 4px inner edge too, so the gold never hides it. */
.v-listing-star-press:focus-visible { outline-offset: -6px; }
:is(.v-listing-star-press, .v-listing-star-text) .v-icon { inline-size: 2rem; block-size: 2rem; color: var(--v-star); }
/* Starred, the words take the star's gold, on the card's own ground and
   its hover, as an unstarred row's. */
:is(.v-listing-star-press[aria-pressed="true"], .v-listing-star-text) { color: var(--v-star-text); }
:is(.v-listing-star-press[aria-pressed="true"], .v-listing-star-text) .v-icon { fill: currentColor; }
/* A starred card's edge is the star's gold: its own 1px edge, and more
   drawn inside it (--v-state-edge: 3px in all on a light theme, 5px on a
   dark one) over the photo and the rows, letting presses
   through, so nothing shifts; it follows the corners and the row a press
   draws again. The focus ring rides outside it. The inner layer is on
   every card, unseen, so an unstar fades it out (.15s). */
/* A card lifts as a photo tile does, hovered with a mouse or anything in
   it focused by the keyboard; its layers ride with it and the grid stays.
   With less motion it stays still. */
.v-listing { transition: transform .15s ease, border-color .15s ease-out; }
.v-listing:has(:focus-visible) { transform: var(--v-lift); }
@media (hover: hover) and (pointer: fine) {
  .v-listing:hover { transform: var(--v-lift); }
}
.v-listing::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  border: var(--v-state-edge) solid var(--v-star); border-radius: calc(var(--v-radius) - 1px);
  opacity: 0; transition: opacity .15s ease-out;
}
.v-listing:has(:is(.v-listing-star-press[aria-pressed="true"], .v-listing-star-text)) { border-color: var(--v-star); transition: transform .15s ease; }
.v-listing:has(:is(.v-listing-star-press[aria-pressed="true"], .v-listing-star-text))::after {
  border: var(--v-state-edge) solid var(--v-star); opacity: 1; transition: none;
}
/* A fresh star (the row its press drew, popping) draws the edge: from the
   bottom's middle two lines run out both ways, up the sides and across
   the top, meeting at its middle in .47s, as the sweep's angle opens from the
   bottom; the card's own 1px edge joins as they meet. On a page load a
   starred card's edge is already drawn; with less motion it just appears. */
@property --v-edge-sweep { syntax: "<angle>"; inherits: false; initial-value: 180deg; }
.v-listing:has(.v-star-pop) { animation: v-edge-outer .47s step-end; }
.v-listing:has(.v-star-pop)::after {
  mask: conic-gradient(from 180deg, black var(--v-edge-sweep), transparent 0 calc(360deg - var(--v-edge-sweep)), black 0);
  animation: v-edge-draw .47s ease-out;
}
@keyframes v-edge-draw { from { --v-edge-sweep: 0deg; } }
@keyframes v-edge-outer { from { border-color: var(--v-line); } }
@media (prefers-reduced-motion: reduce) {
  .v-listing, .v-listing::after { transition: none; }
  .v-listing:is(:hover, :has(:focus-visible)) { transform: none; }
  .v-listing:has(.v-star-pop), .v-listing:has(.v-star-pop)::after { animation: none; }
}
/* Finish's starred state for a plain realtor: the press's words and gold star, as text. */
.v-star-state { display: inline-flex; align-items: center; gap: .375rem; min-block-size: 2.75rem; color: var(--v-star-text); }
.v-star-state .v-icon { color: var(--v-star); fill: currentColor; }
/* A star just pressed on (the row or finish's press, drawn again by the
   press's answer) pops: a touch past full size with a slight turn, then
   settles. Pressed off it goes back to the outline at once; with less
   motion only the fill changes. */
.v-star-pop .v-icon--star { animation: v-star-pop .4s ease-out; }
@keyframes v-star-pop {
  45% { transform: scale(1.35) rotate(-12deg); }
  75% { transform: scale(.94) rotate(4deg); }
}
@media (prefers-reduced-motion: reduce) { .v-star-pop .v-icon--star { animation: none; } }
/* How many are starred, a fitted panel above the list, its hint under it. */
.v-listing-highlights { display: grid; gap: .125rem; margin-block: 0 var(--v-gap); }
.v-listing-highlights p { display: flex; align-items: center; gap: .375rem; margin: 0; }
/* The count wears the stars' gold: its top line and its star, an outline
   at none starred, filled once any is; its words stay the panel's. */
.v-listing-highlights { border-block-start-color: var(--v-star); }
.v-listing-highlights > p:first-child { color: var(--v-star-text); }
.v-listing-highlights .v-icon--star { color: var(--v-star); }
.v-listing-highlights--some .v-icon--star { fill: currentColor; }

/* The photo viewer (shared/_photo_viewer): one photo big and whole,
   centred over the page, which stays blurred under the scrim; the close
   press at the top end corner, the photo's place in the order a pill right
   under it. Its chevrons are big and bare, white on the scrim: on a
   computer just outside the photo's sides, level with its middle; on a
   phone right under it, at its two ends, the pill between them. The frame
   keeps their room, and the photo, in its own shape (--ratio, set by the
   controller), is as large as the rest lets it be. The ground around the
   photo is the dialog's own, so a click there closes it. It fades in and
   the photo rises a little, short and calm; with less motion it shows at
   once. While it is open the page under it does not scroll, its
   scrollbar's room kept so nothing shifts. */
html:has(dialog.v-viewer[open]) { overflow: hidden; scrollbar-gutter: stable; }
.v-viewer[open] {
  display: grid; grid-template-rows: auto minmax(0, 1fr); gap: .75rem;
  inline-size: 100%; block-size: 100%; max-inline-size: none; max-block-size: none; margin: 0; padding: 1rem 1.5rem 1.5rem;
  border: 0; background: none; outline: none; touch-action: pinch-zoom; animation: v-viewer-in .2s ease-out;
}
.v-viewer::backdrop { background: var(--v-scrim); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); animation: v-viewer-in .2s ease-out; }
.v-viewer-figure { display: contents; }
.v-viewer-frame {
  /* Beside the photo, a chevron's room each side; under it, the row's. The
     chevrons stand in fixed places, whatever the photo's shape, so they never
     move from photo to photo. */
  --chevron-x: 4.5rem; --chevron-y: 8rem; --chevron-icon: 6rem; --gap: .5rem; --row: 2rem;
  --room-x: calc(var(--chevron-x) + var(--gap)); --room-y: calc(var(--row) + var(--gap));
  --photo: min(100cqi - 2 * var(--room-x), var(--most-x, 100cqi), (100cqb - var(--room-y)) * var(--ratio, 4 / 3));
  --photo-bottom: calc(50% + (var(--photo) / var(--ratio, 4 / 3) - var(--room-y)) / 2);
  min-block-size: 0; position: relative; display: grid; place-items: center; container-type: size; overflow-x: clip;
}
/* The photos as card's home carousel (#419): a slide sits on the photo's
   centre and the controller places it with custom properties: --pos its
   place (-1, 0, 1), --dir the page's direction, each slide sized by its own
   --ratio. Only transform and opacity move; the blur is a fixed copy
   cross-faded in, never a filter that animates. On a computer the centre
   photo leaves room for its neighbours to show on each side. */
.v-viewer-track { position: absolute; inset: 0 0 var(--room-y); animation: v-viewer-rise .2s ease-out; }
.v-viewer-slide {
  --photo: min(100cqi - 2 * var(--room-x), var(--most-x, 100cqi), (100cqb - var(--room-y)) * var(--ratio, 4 / 3));
  --s: .7; --o: 0; --z: 1; --bo: 1;
  position: absolute; inset-block-start: 50%; left: 50%; inline-size: var(--photo); aspect-ratio: var(--ratio, 4 / 3);
  transform: translate(-50%, -50%) translateX(calc(var(--pos, 0) * var(--dir, 1) * 58%)) scale(var(--s));
  opacity: var(--o); z-index: var(--z); visibility: hidden;
  transition: transform .34s cubic-bezier(.22, .8, .25, 1), opacity .34s cubic-bezier(.22, .8, .25, 1), visibility 0s linear .34s;
}
.v-viewer-slide[data-state="current"] {
  --s: 1; --o: 1; --z: 10; --bo: 0; visibility: visible; will-change: transform, opacity;
  /* Solid from the first frame, so it is never seen through to the photo it covers. */
  transition: transform .34s cubic-bezier(.22, .8, .25, 1), opacity 0s, visibility 0s;
}
.v-viewer-slide[data-state="side"] { --s: .86; --o: .7; --z: 5; --bo: 1; visibility: visible; will-change: transform, opacity; cursor: pointer; }
/* The far photo leaving is gone at once, then moves behind the centre
   unseen; the one arriving slides out from behind it and shows as it goes. */
.v-viewer-slide.is-leaving { transition: opacity .11s linear, transform .34s cubic-bezier(.22, .8, .25, 1) .11s, visibility 0s linear .45s; }
.v-viewer-slide.is-arriving { transition: transform .34s cubic-bezier(.22, .8, .25, 1), opacity .2s cubic-bezier(.22, .8, .25, 1) .14s, visibility 0s; }
.v-viewer-layer {
  position: absolute; inset: 0; display: block; inline-size: 100%; block-size: 100%;
  object-fit: cover; border-radius: var(--v-radius); user-select: none;
}
/* The blurred copy never takes a press: the photo under it does. */
.v-viewer-layer--blurred { filter: blur(8px); opacity: var(--bo); pointer-events: none; transition: opacity .34s cubic-bezier(.22, .8, .25, 1); }
/* The sharp copy is never half there: the centre's shows at once under its
   blurred copy fading out, and one leaving the centre keeps its sharp copy
   until its blurred copy has covered it. */
.v-viewer-layer--sharp { opacity: calc(1 - var(--bo)); transition: opacity 0s linear .34s; }
.v-viewer-slide[data-state="current"] .v-viewer-layer--sharp { transition: none; }
.v-viewer-track--snap .v-viewer-slide, .v-viewer-track--snap .v-viewer-layer { transition: none !important; }
@media (min-width: 40.01rem) {
  .v-viewer-frame { --most-x: 72cqi; }
}
.v-viewer-place {
  position: absolute; z-index: 20; inset-block-start: calc(var(--photo-bottom) + var(--gap) + var(--row) / 2); translate: 0 -50%;
  padding: .25rem .9rem; font-size: .9375rem; font-variant-numeric: tabular-nums; white-space: nowrap;
  color: var(--v-ink); background: var(--v-panel); border-radius: 999px;
}
.v-viewer-close { justify-self: end; }
.v-viewer .v-btn { justify-content: center; min-inline-size: 3rem; min-block-size: 3rem; padding: 0; }
.v-viewer .v-btn .v-icon { inline-size: 1.5rem; block-size: 1.5rem; }
.v-viewer-step, .v-viewer-step:hover {
  position: absolute; z-index: 20; inset-block-start: calc(50% - var(--room-y) / 2); translate: 0 -50%;
  inline-size: var(--chevron-x); block-size: var(--chevron-y); color: var(--v-acting-on-ink); background: none; border: 0;
  opacity: .85; transition: opacity .15s ease-out;
}
/* Hovered or focused, a chevron comes up full white. */
.v-viewer-step:hover, .v-viewer-step:focus-visible { opacity: 1; }
.v-viewer-step[hidden] { display: none; }
.v-viewer-previous { inset-inline-start: 0; }
.v-viewer-next { inset-inline-end: 0; }
/* The frame runs left to right in every language (shared/_photo_viewer): its chevrons never mirrored. */
.v-viewer-frame[dir="ltr"] .v-icon--dir { scale: none; }
.v-viewer .v-viewer-step .v-icon { flex: none; inline-size: var(--chevron-icon); block-size: var(--chevron-icon); stroke-width: 1.6; }
.v-viewer-step:focus-visible { outline-color: var(--v-acting-on-ink); }
@keyframes v-viewer-in { from { opacity: 0; } }
@keyframes v-viewer-rise { from { transform: scale(.96); } }
@media (max-width: 40rem) {
  .v-viewer[open] { padding: .75rem 1rem 1.25rem; }
  .v-viewer-frame { --chevron-x: 3.5rem; --chevron-y: 4.5rem; --chevron-icon: 4.5rem; --gap: .5rem; --row: var(--chevron-y); --room-x: 0rem; }
  /* The row pinned to the frame's foot, the place between the chevrons. */
  .v-viewer-step, .v-viewer-step:hover, .v-viewer-place { inset-block-start: calc(100% - var(--row) / 2); }
}
@media (prefers-reduced-motion: reduce) {
  .v-viewer[open], .v-viewer::backdrop, .v-viewer-track { animation: none; }
  .v-viewer-step, .v-viewer-slide, .v-viewer-slide[data-state], .v-viewer-slide.is-leaving, .v-viewer-slide.is-arriving, .v-viewer-layer { transition: none; }
}

/* Card's veil (#122): while a way on waits for the last photo, the whole
   screen dims behind it and nothing under it takes a press, a tab or the
   reader; open only, so a closed one never stands in the step. The
   spinner and its words sit on the panel, so every look can read them. */
.v-saving[open] {
  margin: auto; padding: 1.25rem 1.75rem; color: var(--v-ink); background: var(--v-panel);
  border: 1px solid var(--v-line); border-radius: var(--v-radius);
  display: flex; flex-direction: column; align-items: center; gap: .7rem; outline: none;
}
.v-saving::backdrop { background: var(--v-scrim); backdrop-filter: blur(4px); }
.v-spinner {
  display: block; inline-size: 2rem; block-size: 2rem; border-radius: 50%;
  border: 3px solid currentColor; border-inline-end-color: transparent; animation: v-spin .8s linear infinite;
}
@keyframes v-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .v-spinner { animation: none; } }
.v-saving-word { margin: 0; font-size: 1.05rem; }

/* A press's answer at the foot of the screen, where the realtor is: never
   moving the page, a close press at its end; the page's foot pads so the
   last press can still be scrolled clear of it. */
@keyframes v-toast-in { from { opacity: 0; translate: 0 .75rem; } }
.v-toast {
  position: fixed; z-index: 20; inset-inline: 1rem; inset-block-end: calc(1rem + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: .5rem; max-inline-size: 30rem; margin: 0 auto; padding-inline-end: .375rem;
  animation: v-toast-in .2s ease-out;
}
.v-toast-text { flex: 1; margin: 0; }
.v-toast-close {
  display: grid; place-items: center; flex: none; inline-size: 2.75rem; block-size: 2.75rem; padding: 0;
  color: inherit; background: none; border: 0; border-radius: var(--v-radius-small); cursor: pointer;
}
.v-main:has(.v-toast) { padding-block-end: calc(6rem + env(safe-area-inset-bottom)); }
/* A sale's confetti (#133, card's): over the page, under the toast, never
   taking a tap. */
.v-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 15; }
/* A sold, rented or hidden listing (#133): its banner right above the
   steps card, big and bold, solid green with the sold badge or a soft
   orange panel with the hidden eye; the card edged to match. */
.v-state-banner {
  display: flex; align-items: center; gap: 1rem; margin-block-end: 1rem; padding: 1.25rem 1.5rem;
  color: var(--v-ink); border: 1px solid; border-radius: var(--v-radius);
}
.v-state-banner > .v-icon { flex: none; inline-size: 2rem; block-size: 2rem; }
.v-state-banner p { margin: 0; }
/* The title and its line on one row, the line wrapping under it only
   when there is no room. */
.v-state-banner > div { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 1rem; row-gap: .25rem; }
.v-state-banner-title { font-size: 1.3125rem; font-weight: 700; line-height: 1.3; }
/* Each fact whole on its line; a narrow screen breaks between them. */
.v-state-banner-line span { white-space: nowrap; }
/* Sold or rented stands out: the success press's own solid pair. */
.v-state-banner--sold { color: var(--v-on-ok); background: var(--v-ok-fill); border-color: var(--v-ok-fill); }
.v-state-banner--sold > .v-icon { color: var(--v-on-ok); }
.v-state-banner--hidden { background: var(--v-caution-bg); border-color: var(--v-caution-line); }
.v-state-banner--hidden > .v-icon { color: var(--v-caution); }
.v-step-panel--sold { border-color: var(--v-ok-strong); }
.v-step-panel--hidden { border-color: var(--v-caution); }
/* The day-first date box (#133): its value, and over it, in the same
   place and letters, the rest of __/__/____ in muted ink, never taking a tap. */
/* As wide as a full date (eight even digits, two slashes) and the field's
   own padding, so a whole date sits centred while the text and the
   pattern still start at the same place. */
.v-date-mask { position: relative; display: block; inline-size: calc(8ch + 1em + 1.75rem + 2px); max-inline-size: 100%; }
.v-date-mask > .v-input { inline-size: 100%; font-variant-numeric: tabular-nums; }
.v-date-mask-ghost {
  position: absolute; inset: 0; display: flex; align-items: center; padding: .375rem calc(.875rem + 1px);
  color: var(--v-ink-muted); white-space: pre; pointer-events: none; overflow: hidden; font-variant-numeric: tabular-nums;
}
.v-date-mask-typed { color: transparent; }
/* A listing's boxes (#133): as wide as their widest line or press row,
   at most 30rem, the width less its gutters on a phone; the grey text
   centred under the title; the presses as wide as their words, side by
   side, stacked full width on a phone. */
.v-listing-dialog { inline-size: fit-content; min-inline-size: 0; max-inline-size: min(30rem, 100vw - 2rem); padding: 1.5rem 1.75rem; }
.v-listing-dialog .v-dialog-body { text-align: center; text-wrap: balance; }
.v-listing-dialog .v-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
/* The sell box's presses as far under its date as the confirm box's under its words: the form's .6rem gap and .4rem more (#225). */
.v-listing-dialog .v-form > .v-actions { margin-block-start: .4rem; }
@media (max-width: 40rem) {
  .v-listing-dialog { inline-size: calc(100vw - 2rem); }
  .v-listing-dialog .v-actions { flex-direction: column; align-items: stretch; }
}
/* A listing's state presses, the list's chips, a deleted listing's restore,
   the listing's boxes (#133) and the new phone's code page (#189): 44 px
   targets, as the step presses. */
:is(.v-listing-states, .v-chips, .v-listing-restore, .v-listing-dialog, .v-phone-change) :is(.v-btn, .v-input) { min-block-size: 2.75rem; justify-content: center; }
/* The new number, whole on its line, never broken at its dash. */
.v-phone-number { white-space: nowrap; }
/* A new email (#351) the same, but one longer than the line breaks
   anywhere in it, in its own order, never past the card. */
.v-email-address { display: inline-block; max-inline-size: 100%; overflow-wrap: anywhere; }
/* A card in the middle of the screen (#189): My details' form and the new
   phone's code page. On a computer the screen's content is stretched so the
   card sits centred both ways, one taller than the screen starting at its
   top. On a phone it follows the page. */
@media (min-width: 40.0625rem) {
  .ic-main-content:has(.v-panel--card) { display: flex; flex-direction: column; }
  .ic-main-content:has(.v-panel--card) > .ic-content { flex: 1; display: flex; flex-direction: column; }
  .ic-main-content:has(.v-panel--card) .ic-page-wrapper { flex: 1; }
  .v-panel--card { inline-size: 100%; margin-block: auto; }
  /* A two-column card starts at the top of the page area, not centred (#231). */
  .v-panel--card.v-panel--pairs { margin-block-start: 0; }
}
/* A 6-digit code's box: as wide as the code, its digits spaced and centred. */
.v-code-box {
  max-inline-size: 11rem; font-size: 1.375rem; font-variant-numeric: tabular-nums;
  letter-spacing: .4em; text-indent: .4em; text-align: center;
}
/* The code box then its confirm, and the other two presses under them: one
   two-column grid each, the same halves and gap, so the box sits over the
   new code and the confirm over the old number, edges lined up; stacked
   when they don't fit. */
:is(.v-code-row, .v-code-presses) { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: .5rem; }
.v-code-row > .v-code-box { max-inline-size: none; }
/* The error right under the box, a row of its own; dense keeps the confirm
   beside the box when they share a row, under the error when stacked. */
.v-code-row { grid-auto-flow: row dense; }
.v-code-row > .v-error { grid-column: 1 / -1; margin: 0; }
.v-code-presses { margin-block-start: .5rem; }
.v-code-presses > form { display: grid; }
.v-code-presses .v-btn { inline-size: 100%; }
/* A long press's words wrap inside it rather than ever run past its half (fix 26). */
.v-code-presses > form { min-inline-size: 0; }
.v-code-presses > form .v-btn { padding-inline: .5rem; text-wrap: balance; }
/* The code pages on a phone (#338 fix 26): the card centred both ways as on
   a computer, its parts spread out, the box then each press one per row,
   full width and thumb-sized, a long press's words wrapping inside it,
   never past the card. */
@media (max-width: 40rem) {
  .ic-main-content:has(.v-phone-change) { display: flex; flex-direction: column; }
  .ic-main-content:has(.v-phone-change) > .ic-content { flex: 1; display: flex; flex-direction: column; }
  .ic-main-content:has(.v-phone-change) .ic-page-wrapper { flex: 1; }
  .v-phone-change { inline-size: 100%; margin-block: auto; display: grid; gap: var(--ic-5); padding: var(--ic-5); }
  .v-phone-change > * { margin: 0; }
  .v-phone-change .v-title-group { display: grid; gap: var(--ic-2); }
  .v-phone-change .v-title-group > * { margin: 0; }
  .v-phone-change .v-form-row { gap: var(--ic-2); }
  .v-phone-change :is(.v-code-row, .v-code-presses) { grid-template-columns: minmax(0, 1fr); gap: var(--ic-3); }
  .v-phone-change .v-code-presses { margin-block-start: calc(var(--ic-3) - var(--ic-5)); }
  .v-phone-change :is(.v-btn, .v-code-box) { min-block-size: 3rem; }
}

/* The neighborhood box's list, under it, over what follows. */
.v-combo { position: relative; }
.v-combo-list {
  position: absolute; inset-inline: 0; inset-block-start: 100%; z-index: 5; max-block-size: 16rem; overflow-y: auto;
  margin: .25rem 0 0; padding: .25rem; list-style: none;
  background: var(--v-panel); border: 1px solid var(--v-frame); border-radius: var(--v-radius-control);
}
.v-combo-list[hidden] { display: none; }
.v-combo-list > li { display: flex; align-items: center; min-block-size: 2.75rem; padding: .25rem .75rem; border-radius: var(--v-radius-small); cursor: pointer; }
.v-combo-list > li:hover { background: var(--v-hover); }
.v-combo-list > li[aria-selected="true"] { color: var(--v-accent-on-wash); background: var(--v-accent-wash); outline: 2px solid var(--v-accent); outline-offset: -2px; }

/* A realtor's photo box (#175), card's image field: a compact drop zone,
   the photo in the circle the sites draw (the person mark when none), the
   line to drag a photo there and the presses beside it; on a computer a
   dashed edge drawn as an SVG, on a phone no drop line. The file input is
   never seen; its label is the press and wears the ring. */
.v-image-frame {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem;
  inline-size: fit-content; max-inline-size: 100%; padding: .75rem 1rem; background: var(--v-field); border-radius: var(--v-radius);
}
.v-image-shown, .v-image-empty { flex: none; inline-size: 6rem; aspect-ratio: 1; border-radius: 50%; }
.v-image-shown { display: block; object-fit: cover; }
/* A pick fades into the circle. */
.v-image-shown.is-picked { animation: v-viewer-in 320ms ease-out; }
.v-image-empty { display: grid; place-items: center; color: var(--v-ink-muted); background: var(--v-raised); }
.v-image-empty .v-icon { inline-size: 3rem; block-size: 3rem; }
.v-image-side { display: grid; gap: .5rem; justify-items: start; }
.v-image-drop-here { color: var(--v-ink-muted); font-size: .9375rem; }
.v-image-none { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.v-image-edge { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; overflow: visible; pointer-events: none; }
.v-image-edge rect {
  x: 1.5px; y: 1.5px; width: calc(100% - 3px); height: calc(100% - 3px); rx: var(--v-radius);
  fill: none; stroke: var(--v-frame); stroke-width: 3px; stroke-dasharray: 12px 8px;
}
@media (hover: none) and (pointer: coarse) {
  .v-image-frame { padding: 0; background: none; }
  .v-image-edge, .v-image-drop-here { display: none; }
}
.v-image-field--drop .v-image-frame { outline: 3px solid var(--v-accent); outline-offset: 2px; }
.v-image-field:has([data-image-field-target=message]:not(:empty), .v-file[aria-invalid=true]) .v-image-edge rect { stroke: var(--v-danger-strong); }
.v-image-presses { margin: 0; }
.v-image-field [hidden] { display: none; }
.v-file { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; pointer-events: none; }
label.v-btn { cursor: pointer; }
label.v-btn:has(> .v-file:focus-visible) { outline: 2px solid var(--v-accent); outline-offset: 2px; }
/* The crop box, over the whole screen, the page dimmed and blurred behind
   it: the box and the circle beside it, the circle above on a phone. */
.v-crop {
  inline-size: min(96vw, 60rem); max-inline-size: none; padding: 1rem; color: var(--v-ink); background: var(--v-panel);
  border: 1px solid var(--v-line); border-radius: var(--v-radius);
}
.v-crop::backdrop { background: var(--v-scrim); backdrop-filter: blur(6px); }
.v-crop-panes { display: flex; flex-wrap: wrap-reverse; align-items: center; gap: 1.5rem; }
.v-crop-box { flex: 1 1 20rem; display: flex; justify-content: center; min-inline-size: 0; }
.v-crop-box img { display: block; max-inline-size: 100%; max-block-size: 66vh; }
.v-crop-preview { flex: 1 1 14rem; display: flex; flex-direction: column; align-items: center; gap: .5rem; margin: 0; }
.v-crop-preview-shape { inline-size: 14rem; max-inline-size: 100%; block-size: auto; aspect-ratio: 1; border: 2px solid var(--v-line); border-radius: 50%; background: var(--v-raised); }
.cropper-crop-box:focus-visible { outline: 3px solid var(--v-accent); outline-offset: 0; }
.v-crop-presses { margin-block-start: .75rem; }
.v-crop-presses .v-btn { min-block-size: 2.75rem; justify-content: center; }
/* On a phone the circle and the photo give way, so all three presses show
   without a scroll; the presses share the row's width. */
@media (max-width: 38rem) {
  .v-crop-panes { gap: 1rem; }
  .v-crop-preview-shape { inline-size: 7rem; }
  .v-crop-box img { max-block-size: 36vh; }
  .v-crop-presses .v-btn { flex: 1 1 auto; }
}

/* A box's live mark (#175, field-errors): at its inline end, a check in
   the ok family when good, an x in the danger family once left wrong;
   the words under the box say it too. A left-to-right box (a phone) is
   wrapped left to right too, so its mark sits at its right and its text
   starts flush left, padded as every other box. */
.v-input-mark { position: relative; display: block; }
.v-input-mark > .v-input { padding-inline-end: 2.5rem; }
/* A sized box with a mark (design.md's .ic-w-*, #231): the wrapper takes the
   width, its box filling it, room kept for the mark past the value. */
.v-input-mark:is(.ic-w-xs, .ic-w-s, .ic-w-m) { max-inline-size: calc(var(--ic-w) + .875rem + 2.5rem + 2px); }
/* The check and the x share one spot, each fading in and out (#231). */
.v-mark { position: absolute; inset-block: 0; inset-inline-end: .75rem; display: grid; align-items: center; pointer-events: none; }
.v-mark .v-icon { grid-area: 1 / 1; inline-size: 1.25rem; block-size: 1.25rem; stroke-width: 2.4; opacity: 0; }
.v-mark .v-icon:first-child { color: var(--v-ok-strong); }
.v-mark .v-icon:last-child { color: var(--v-danger-strong); }
.v-input-mark[data-mark="ok"] .v-mark .v-icon:first-child, .v-input-mark[data-mark="bad"] .v-mark .v-icon:last-child { opacity: 1; }

/* Whatever appears fades in and whatever leaves fades out, never a pop
   (#231): a field's error line, a box's mark and anything going
   (.v-leaving, fade_out.js), the other role's boxes (#264) and the
   neighborhood box's whom-to-ask line (#427). Less motion: all at once. */
@media (prefers-reduced-motion: no-preference) {
  .v-error, .v-mark .v-icon, .v-leaving, .v-role-other, .v-combo-missing { transition: opacity .2s ease; }  @starting-style { .v-error, .v-role-other, .v-combo-missing { opacity: 0; } }
}
.v-leaving { opacity: 0; animation: none; }
@media (prefers-reduced-motion: reduce) { .v-crop::backdrop { backdrop-filter: none; } }

/* The NadlanCard links in My details (#239): a box per language under a
   plain legend, the way to open a card under them. */
.v-card-links { display: grid; gap: .6rem; min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.v-card-links legend { padding: 0; font-weight: 600; color: var(--v-ink); }
.v-card-signup { margin: 0; }
