/* ============ App chrome: login, topbar, tiles, panels, tables ============
   Ported from the static demo's css/portal.css, which covers the same three
   surfaces this app has: the login card, the owner's portal, and the staff
   console. Demo-only artefacts (the demo ribbon, the demo-login buttons, the
   site-preview iframe and the localStorage pipeline modals) are not here
   because nothing in this app renders them.

   The port arrived with the demo's dark chrome - a navy topbar, a pine band
   behind the login card - and that is what made the signed-in app look like a
   different product from the website a client had just been reading. It is
   gone. base.css already carries the website's palette value for value; these
   rules now use it the way the website does, so the bar here and the bar
   there are the same bar. The only dark left is deliberate and local: a chat
   bubble, a selected filter, a small chip - ink on the page, never a ground. */

/* ---------- Wordmark ---------- */
.logo {
  font-family: var(--font-head); font-weight: 700; font-size: 1.25rem;
  color: var(--navy); text-decoration: none; letter-spacing: normal; white-space: nowrap;
}
.logo:hover { text-decoration: none; }
.logo span { color: var(--go); }

/* ---------- Login ---------- */
/* The same gray ground the website's home hero sits on. The sign-in page
   once floated on a dark band of its own, which is what made arriving here
   feel like a different product. */
.portal-bg { background: var(--bg); min-height: 100vh; }
/* The ThreeUI ribbon (site/js/ribbon.js), fixed behind the card. Inverted,
   grayed and multiplied onto the page because the component paints neon on
   black, and this page has no black and no colour. */
.login-ribbon {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  filter: invert(1) hue-rotate(180deg) grayscale(1); mix-blend-mode: multiply;
}
.login-ribbon > div, .login-ribbon canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.login-wrap {
  position: relative; z-index: 1;
  max-width: 440px; margin: 0 auto; padding: 60px 24px;
  display: flex; flex-direction: column; gap: 22px; align-items: center;
}
/* Signed out, the wrap is the whole page, so it centres down the screen as
   well as across it, the way the sign-in page's form does: a short card (a
   "check your inbox", a thank-you) used to sit at the top of an empty screen
   and read as a page that had not finished loading. min-height rather than
   height, so a long form still starts under the wordmark and scrolls.
   .portal-bg is the signed-out body (layouts/application). Some of these
   views draw the wrap for a signed-in reader too, under the topbar, where a
   full screen of height would only push the card down and force a scroll. */
.portal-bg .login-wrap { min-height: 100vh; min-height: 100dvh; justify-content: center; }
/* Only outcome.css uses this now. The signed-out card no longer rises in: on a
   phone its words are the page's largest paint, and the fade held them back
   most of a second. */
@keyframes login-rise {
  from { opacity: 0; filter: blur(4px); transform: translateY(12px); }
  to   { opacity: 1; filter: none; transform: none; }
}
.login-logo { font-size: 1.7rem; }
.login-card {
  background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 36px; width: 100%;
}
/* DESIGN.md's card padding on a phone, where 36px a side took a fifth of the
   width from the words. */
@media (max-width: 640px) {
  .login-card { padding: 28px 24px; }
}
.login-card h1 { font-size: 1.4rem; margin-bottom: 8px; }
.login-sub { color: var(--muted); font-size: .93rem; margin-bottom: 22px; }
.login-card label { display: block; margin: 14px 0 5px; }
/* :not(submit) because the block button is an <input> too, and it wants the
   button's padding rather than a field's. */
.login-card input:not([type="submit"]) { font-size: .97rem; padding: 12px 14px; }
.login-card .btn-block, .login-card input[type="submit"] { margin-top: 20px; }
.login-links { margin-top: 18px; text-align: center; font-size: .9rem; }

/* The card's own flash. The layout keeps its banners out of the signed-out
   pages so a message does not print twice; these three views own theirs. */
.login-flash {
  border-radius: var(--radius-sm); padding: 10px 14px; font-size: .89rem; font-weight: 600;
  margin-bottom: 16px;
}
.login-flash.is-alert { background: var(--red-soft); border: 1px solid var(--red-line); color: var(--red); }
.login-flash.is-notice { background: var(--green-soft); border: 1px solid var(--green-line); color: var(--green); }

/* The status mark (layouts/_status_mark) at the top of a card that reports an
   outcome. A soft tint with its matching line, as every state in DESIGN.md
   is; amber has no -line token, so its edge is the amber mixed thin, the way
   owner_console.css draws its warning pill's. Left-aligned like the heading
   under it.

   It stamps in once, after the card has arrived (the 250ms is the card's
   80ms delay plus most of its rise), on the same overshoot the QR sign-in's
   tick uses. Reduced motion shows it at rest: base.css would shorten the
   stamp but keep the delay, holding the mark invisible for a beat. */
.status-mark {
  width: 44px; height: 44px; border-radius: 999px; border: 1px solid; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  animation: status-stamp .42s cubic-bezier(.2, .8, .2, 1) .25s both;
}
/* Signed out there is no cached preview (layouts/application); signed in
   there is, and the mark would stamp once on it and again on the fresh copy. */
html[data-turbo-preview] .status-mark { animation: none; }
.status-mark svg { width: 22px; height: 22px; }
.status-mark.is-done { background: var(--green-soft); border-color: var(--green-line); color: var(--green); }
.status-mark.is-mail { background: var(--blue-soft); border-color: var(--blue-line); color: var(--navy); }
.status-mark.is-wait,
.status-mark.is-warn {
  background: var(--warn-soft); border-color: color-mix(in srgb, var(--amber-dark) 22%, transparent); color: var(--amber-dark);
}
@keyframes status-stamp {
  0%   { opacity: 0; transform: scale(.6); }
  60%  { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .status-mark { animation: none; }
}

/* The demo credentials box. Development only — the view gates on
   Rails.env.development? and on DEMO_EMAIL/DEMO_PASSWORD being set, and
   config/initializers/local_env.rb only reads .env in development. Styled as a
   visible aside rather than a quiet note, because a password printed on a
   sign-in page should look like the temporary thing it is. */
.login-demo {
  margin-top: 22px; padding: 14px 16px;
  background: var(--amber-soft, var(--bg)); border: 1px dashed var(--line-strong, var(--line));
  border-radius: var(--radius-sm);
}
.login-demo-title {
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.login-demo dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; }
.login-demo dt { font-size: .85rem; color: var(--muted); }
.login-demo dd { margin: 0; }
.login-demo code { font-size: .85rem; word-break: break-all; }

/* ---------- Claiming a listing ---------- */
/* The claim page wears the login card, because that is what it is: the front
   door, arrived at from a town's own domain by somebody who has usually never
   seen this app. It only adds what a login card has no need of - a textarea, a
   line of small print under a pair of fields, and the honeypot.

   BOTH SHELLS, one card. Signed out it sits in .login-wrap on the page ground;
   signed in the layout puts it inside .app-main .container, where it would
   otherwise stretch the full width of the console - hence the cap and the
   centring, which .login-wrap was doing for it on the other side. */
.app-main .claim-card { max-width: 440px; margin: 0 auto; }
/* base.css already dresses every textarea - width, border, focus ring. This is
   only the parity the card asks for: the same slightly larger type and roomier
   padding .login-card gives its inputs, plus a handle that resizes down the
   page rather than out of the card. */
.login-card textarea { font-size: .97rem; padding: 12px 14px; resize: vertical; }
.claim-note { color: var(--muted); font-size: .85rem; margin-top: 6px; }

/* The buy card's price (plan_checkouts/_card). Where a year can be bought it
   is two radio rows that are also the choice; otherwise one line. A row is a
   control, so it takes the control radius and the input's border, and the
   picked one takes the input's focused border. The two-class selectors beat
   .login-card's own label and input rules, which would make each row a field
   label and pad the radio like a text box. */
.billing-choice { border: 0; margin: 0; padding: 0; min-width: 0; }
.login-card .billing-option {
  display: flex; align-items: center; gap: 12px; margin: 0 0 8px; padding: 12px 14px;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  font-size: .97rem; font-weight: 400; color: var(--text); cursor: pointer;
}
.login-card .billing-option:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.login-card .billing-option input[type="radio"] { flex: 0 0 auto; margin: 0; padding: 0; accent-color: var(--blue); }
.billing-option-name { flex: 1 1 auto; font-weight: 600; }
.billing-option-note { display: block; font-size: .85rem; font-weight: 400; color: var(--muted); }
.billing-option-price { font-weight: 600; white-space: nowrap; }
.buy-price { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.buy-setup { color: var(--muted); font-size: .85rem; margin-bottom: 8px; }
/* The bot check sat flush against the box above it. */
.claim-form .cf-turnstile { margin-top: 16px; }

.claim-switch { margin-top: 18px; text-align: center; }
.claim-switch .claim-note { margin-bottom: 8px; }

/* The honeypot. Off the page rather than display:none, because a bot that
   reads the computed style skips a hidden field and fills in a visible one -
   which is the entire point of having it. aria-hidden and tabindex="-1" in the
   markup keep it away from anybody using a reader or a keyboard. */
.claim-pot {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden;
}

/* ---------- Shared app chrome ----------
   The bar is the website's own header, not a second design. Same white, same
   blur, same height, same ink: a client who clicks "Log in" on the marketing
   site should not feel they have arrived somewhere else. What the app adds on
   top of .nav is only what the app has and the website does not - a context
   label, a mail pill and a tray. */
.app-body { background: var(--bg); }
.app-topbar {
  background: var(--glass);
  border-bottom: 1px solid transparent;
  position: sticky; top: 0; z-index: 40;
}
/* The row is the website's .nav-inner: logo left, links centred on the page,
   the account control far right, 66px tall. Same three columns, same height,
   same grid - a client who clicks "Log in" on the marketing site and a staff
   member who opens /admin are looking at one header, not two designs. The one
   thing the app adds is the context label, which shares the left column with
   the wordmark.
   The right column is never narrower than what it holds. With mail waiting
   and a long name it outgrows its half, and then the links move left and the
   context label gives way, instead of the pill running under the links. */
.app-topbar-inner {
  display: grid; grid-template-columns: 1fr auto minmax(max-content, 1fr); align-items: center;
  gap: 18px; height: 66px;
}
/* The whole bar, its hairline included: what a sidebar under it hangs from
   and what a sticky strip sticks below (admin_console.css). It moves with the
   row's height at 1040px. */
:root { --topbar-h: 67px; }
/* No justify-self here on purpose. A grid item that is start- or end-aligned is
   sized to its own content instead of to its track, and this one's content is a
   sentence: aligned, it grows straight through the centred links beside it.
   Stretched (the default) it takes the track it was given and the label inside
   it does the giving way, which is what .app-context is for. */
.app-topbar-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
/* The website's .logo size, so the wordmark doesn't change between pages. */
.app-topbar .logo { font-size: 1.25rem; flex: 0 0 auto; }
/* The label is the one item allowed to give way, so a crowded console bar
   trims copy instead of squashing the controls that do the work. A flex-basis
   of 0 keeps its copy out of the row's width sum, so the label is what the row
   takes room from - and with min-width: 0 it gives way as an ellipsis. */
.app-context {
  font-size: .9rem; color: var(--muted);
  flex: 1 1 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.app-context strong { color: var(--navy); font-weight: 600; }
.app-context a { color: var(--navy); }
.app-context a:hover { color: var(--blue); }

/* The website's links, centred in the row. Same gap, same weight, same size and
   the same refusal to wrap as .nav-links in site/css/style.css: a squeezed link
   would wrap into the wordmark long before the row collapses, and below the
   breakpoint this same element becomes a stacked panel where wrapping is not a
   risk either way. The rules are restated rather than shared because that
   stylesheet is a build artefact this app serves and does not write. */
.app-nav-links { justify-self: center; display: flex; align-items: center; gap: 26px; }
/* The Tools menu (2026-11-01) made the row long enough to cut "Admin console"
   just above the 1040px hamburger; a tighter gap there gives it back. */
@media (min-width: 1041px) and (max-width: 1180px) { .app-nav-links { gap: 16px; } }
.app-nav-links a {
  color: var(--text); text-decoration: none; font-weight: 500; font-size: .875rem;
  white-space: nowrap; transition: color var(--ease);
}
.app-nav-links a:hover { color: var(--blue); }
.app-nav-links a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
/* The Directory menu: the twin of the .nav-menu block in site/css/style.css,
   restated for the same reason as the links. One copy, the last item of the
   links row, as on the website: it used to be centred in the room between the
   links and the controls, and the mail pill shrank that room, so the menu
   jumped 72px whenever mail came or went (Alex, 2026-10-25). The summary
   wears the links' type; the panel is dressed like the account panel, bridge
   included, and opens on hover for a pointer the same way. */
.nav-menu { position: relative; }
.nav-menu > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 4px;
  color: var(--text); font-weight: 500; font-size: .875rem; white-space: nowrap; transition: color var(--ease);
}
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary:hover { color: var(--blue); }
.nav-menu > summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.nav-menu > summary .ico { width: 1.05em; height: 1.05em; flex: none; color: var(--muted); transition: transform var(--ease); }
.nav-menu[open] > summary .ico { transform: rotate(180deg); }
.nav-menu-panel {
  position: absolute; left: -12px; top: calc(100% + 10px); z-index: 60;
  width: max-content; background: var(--card); border: 1px solid var(--line-strong); border-radius: 20px;
  box-shadow: var(--shadow-lg); padding: 6px; display: flex; flex-direction: column;
}
.nav-menu-panel::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 12px; }
.nav-menu-panel a { display: block; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--navy); }
/* No underline: base.css underlines every hovered link. */
.nav-menu-panel a:hover { color: var(--navy); background: var(--tint); text-decoration: none; }
/* On a desktop the towns keep the page's type, not the row's .875rem/500
   that .app-nav-links a would hand them now that the menu sits in the row. */
@media (min-width: 1041px) {
  .nav-menu-panel a { font-size: inherit; font-weight: inherit; }
}
@media (hover: hover) and (pointer: fine) and (min-width: 1041px) {
  .nav-menu:hover::details-content { content-visibility: visible; }
}

/* The mail pill and the account control, at the right-hand end of the row,
   in the website's .nav-end order. */
/* Stretched across its track, its controls packed to the right. */
.app-topbar-actions { justify-self: stretch; display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-width: 0; }
/* A topbar control must never shrink below its label: a wrapped label turns the
   whole bar into tall boxes. button_to's wrapper form is the flex item, so it
   is sized here too, not the button inside it. */
.app-topbar .btn, .app-topbar .button_to { flex: 0 0 auto; white-space: nowrap; }

/* No .btn-ghost override here any more. The base rule is already a light
   button on a light ground, which is exactly what this bar now wants; the old
   white-on-navy inversion existed only for the dark bar. */

.app-main { padding: 34px 0 70px; }
.app-main h1 { font-size: 1.5rem; margin-bottom: 4px; }
.app-sub { color: var(--muted); font-size: .93rem; margin-bottom: 26px; }
/* The paragraph a page leads with, right under its h1, reads as a subtitle
   whether or not the view remembered to say so. */
.app-main h1 + p { color: var(--muted); font-size: .93rem; margin-bottom: 26px; }

/* ---------- Flash banners ----------
   Class names and wording are fixed: the suite reads both. Only the look is
   ported. */
.flash-notice, .flash-alert {
  border-radius: var(--radius); padding: 12px 18px; margin-bottom: 20px;
  font-size: .93rem; font-weight: 600; box-shadow: var(--shadow-sm);
  /* A web address or an error's file path is one long word: it breaks rather
     than making a phone's page scroll sideways. */
  overflow-wrap: anywhere;
}
.flash-notice { background: var(--green-soft); border: 1px solid var(--green-line); color: var(--green); }
.flash-alert { background: var(--red-soft); border: 1px solid var(--red-line); color: var(--red); }

/* ---------- The tile shell ----------
   One card, and only .tile-stats wears it now. The hub used to be six of
   these in a .tiles grid - see the hub block below for why that is gone -
   and .tiles, .tile-note and .tile-value-ico went with the markup that
   used them, as did .tile-label and .tile-value with the hub's doors. */
.tile {
  display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 11px 14px; box-shadow: var(--shadow-sm);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }

/* ---------- The hub: one figures strip ----------

   WHAT THIS REPLACED, because the shape is the whole point. The hub was six
   equal cards in an auto-fit grid, each carrying a label, a number and a
   sentence of explanation. The sentence made every card about 130px tall,
   and six cards needed roughly 1100px of window to stay on one line - so on
   a laptop the page opened as two rows of large boxes and spent four hundred
   pixels before the first business. The grid arithmetic that used to be
   written out here (six columns, 166px minimum) is gone with the grid.

   The figures are a tinted strip read left to right, one line tall; the
   doors that were a row of chips under it are the console's sidebar now
   (admin_console.css). The explanations are on title=. */

/* THE FIGURES, on one line.

   A row, not the column of four it was. The column was right when this had
   to be a card the same height as five cards beside it; there are no cards
   beside it now, so the constraint that shaped it is gone, and four figures
   side by side is both shorter and the way a scoreboard is read.

   Hairline separators rather than gaps, so it reads as one instrument with
   four readings rather than four things that happen to be adjacent. The
   labels stay small, in sentence case like the rest of the console: in a
   strip the number is the content and the label only says which number it
   is.

   flex-wrap, and each cell is allowed to shrink to its content - at a narrow
   window the four fold onto two lines rather than squeezing "$559.97" into
   an ellipsis. A figure that cannot be read in full is not worth printing. */
.tile-stats {
  display: block; width: 100%;
  background: var(--tint); box-shadow: none; cursor: default;
  padding: 9px 4px;
}
.tile-stats:hover { transform: none; box-shadow: none; border-color: var(--line); }
.tile-stats dl {
  margin: 0; display: flex; flex-flow: row wrap; align-items: baseline;
  row-gap: 4px;
}
.tile-stats dl > div {
  display: flex; align-items: baseline; gap: 8px;
  flex: 1 1 auto; min-width: 0; justify-content: center;
  padding: 0 14px; border-left: 1px solid var(--line-strong);
}
.tile-stats dl > div:first-child { border-left: 0; }
.tile-stats dt {
  font-size: .8125rem; color: var(--muted); font-weight: 500; white-space: nowrap;
}
.tile-stats dd {
  margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  color: var(--navy); white-space: nowrap;
}
.tile-stats dd.is-warn { color: var(--amber-dark); }
/* Two by two on a phone, in a grid rather than the wrap: wrapped, each line
   took the widths of its own two figures, so the rules between them did not
   line up and the second line's left rule hung off its edge. */
@media (max-width: 640px) {
  .tile-stats dl { display: grid; grid-template-columns: 1fr 1fr; }
  .tile-stats dl > div { padding: 0 8px; }
  .tile-stats dl > div:nth-child(odd) { border-left: 0; }
}

/* The one heading on the hub that names a row rather than a panel. Quiet, and
   the same size as the label inside the tiles under it: the tiles are the
   content, and a heading that outweighed them would be the page shouting its
   own table of contents. */
.section-head {
  font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase;
  letter-spacing: .06em; margin: 0 0 10px;
}

/* ---------- The account pop-out ----------
   "Hi, <Name>" opens the app's own links. One <details>, so the open state is
   the element's own and no JavaScript is involved: nothing here can be left
   broken by a script that failed to load.

   The summary wears the website's .nav-signin class and these rules restate
   what site/css/style.css already says about it, because the two headers
   render the same partial (layouts/_account_menu) and the app's pages are
   dressed by this file alone. Keep the two in step. */
.nav-account { position: relative; flex: 0 0 auto; }
.nav-account > summary { list-style: none; cursor: pointer; }
.nav-account > summary::-webkit-details-marker { display: none; }
.app-topbar .nav-signin {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--navy); font-weight: 600; font-size: .89rem; text-decoration: none; white-space: nowrap;
  padding: 7px 12px; border-radius: 999px; transition: color var(--ease), background var(--ease);
}
.app-topbar .nav-signin .ico { width: 18px; height: 18px; color: var(--muted); flex: none; transition: color var(--ease); }
.app-topbar .nav-signin:hover { color: var(--blue); background: var(--blue-soft); }
.app-topbar .nav-signin:hover .ico { color: var(--blue); }
.app-topbar .nav-account[open] > .nav-signin { color: var(--blue); background: var(--blue-soft); }
/* The name is capped and clipped rather than trusted to be short: an uncapped
   one stretches the control until the row's centred links are no longer
   centred. The cap itself is written inline by layouts/_account_menu - it has
   to travel with the markup for the website's half of the job - and this rule
   is the colour, which the app's own stylesheet owes it. */
.nav-signin-who { color: var(--navy); }

/* The panel floats over a pale page from a white bar, so it cannot rely on
   contrast to say where it ends. It takes an opaque ground, the strong line
   and the floating shadow - the twin of the rule in site/css/style.css.
   As wide as its widest row and no wider, so Log out spans the same width as
   the links above it rather than a fixed 21rem of mostly empty panel. */
.nav-account-panel {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; width: max-content; max-width: 21rem;
  background: var(--card); border: 1px solid var(--line-strong); border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 6px; display: flex; flex-direction: column;
}
/* HOVER OPENS IT TOO - for a pointer, and only for a pointer.

   A stylesheet cannot open a <details>: [open] is an attribute and :hover
   cannot set one. What it CAN do is un-hide the closed content. The browser
   wraps everything in a <details> that is not the summary in ::details-content
   and the UA stylesheet hides that box with `content-visibility: hidden` while
   the element is closed; this lifts that for as long as the pointer is
   anywhere over the control - summary, panel, or the bridge below.

   :hover on .nav-account is DOM-based, and the panel is a DESCENDANT of it, so
   hovering the panel keeps the control hovered and the panel open. That is the
   whole reason the panel must stay inside the <details> (see
   layouts/_account_menu, which says so too, and the suite asserts it).

   [open] still reveals the panel through the browser's own rule, so the click
   and keyboard toggle are untouched - and a browser that has never heard of
   ::details-content drops this one rule and keeps that toggle. It is a rule of
   its own for exactly that reason: an unknown pseudo-element takes its whole
   selector list down with it, so nothing else may ride along in this block.

   GATED TO A FINE POINTER, because a finger cannot hover: on touch, the
   "hover" a tap synthesises leaves the panel stuck open under the very tap
   that opened it, and the tap that should close it re-opens it. */
@media (hover: hover) and (pointer: fine) {
  .nav-account:hover::details-content { content-visibility: visible; }
  .app-topbar .nav-account:hover > .nav-signin { color: var(--blue); background: var(--blue-soft); }
  .app-topbar .nav-account:hover > .nav-signin .ico { color: var(--blue); }
}

/* THE BRIDGE. The panel hangs 10px below the control, and a pointer crossing
   that gap is over neither box - :hover would drop, and the panel with it,
   halfway to the thing you were reaching for. This is a transparent strip on
   the panel's top edge reaching up across the gap, so the pointer stays inside
   the <details> the whole way down. Absolutely positioned, so the column of
   links does not move; 12px, so it also spans the 8px gap the narrow-screen
   block below uses. Outside the media query on purpose - it is geometry, and it
   costs a closed panel nothing. */
.nav-account-panel::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 12px;
}

.nav-account-item { display: block; padding: 9px 12px; border-radius: var(--radius-sm); }
.nav-account-item:hover { background: var(--tint); text-decoration: none; }
/* A flex row rather than a block, because the label now carries a glyph in
   front of the words on the top-level rows and a block would leave the two
   sitting on their baselines at different heights. The gap is the only thing
   separating them - there is no whitespace in the markup to fall back on, and
   deliberately so: the suite compares this span's whole text content against
   the label. */
.nav-account-label { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy); font-size: .9rem; }
/* Sized here in px because this file has no global .ico rule - icons are sized
   per context (see .app-topbar .nav-signin .ico above), and the website's
   stylesheet is the one that sizes them in em. Colours like that person glyph
   too: muted at rest, the row's blue once the pointer is on it. */
.nav-account-ico { width: 16px; height: 16px; flex: none; color: var(--muted); transition: color var(--ease); }
.nav-account-item:hover .nav-account-ico { color: var(--blue); }
/* .82rem rather than .78: the note is the thing in the panel most at risk of
   going grey-on-grey on a cheap monitor. --muted is a dark zinc, not a light
   grey, so it holds at this size. */
.nav-account-note { display: block; font-size: .82rem; color: var(--muted); margin-top: 1px; }

/* WHO YOU ARE, at the top of the panel, and the rules between its groups
   (TWC-310). Copies in site/css/style.css and lib/assets/town/town_chrome.css -
   keep all three in step.
   The address wraps anywhere rather than widening the panel past its cap. */
.nav-account-who { display: flex; align-items: center; gap: 11px; padding: 10px 12px 8px; }
.nav-account-avatar {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue); color: var(--on-blue); font-weight: 800; font-size: .95rem;
}
.nav-account-whoami { display: flex; flex-direction: column; min-width: 0; }
.nav-account-name { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: .95rem; color: var(--navy); }
.nav-account-staff { padding: .1em .6em; border: .1em dashed currentColor; border-radius: 99em; font-size: .7rem; font-weight: 700; color: var(--muted); }
.nav-account-email { font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }
.nav-account-sep { border: 0; border-top: 1px solid var(--line); margin: 6px 8px; }

/* THE CONSOLE'S OWN TOOLS, hung under "My Admin".

   A rule and an indent, and nothing else: no ground of its own, no border
   round it, no heading. This is one section of the menu, not a box dropped
   into it, and a box is what a card or a tinted panel would make of it.

   The 24px left margin is the parent's 12px padding plus the 16px glyph and
   its 8px gap, less the 12px the child pays back in its own padding - which
   lands the children's text under the parent's text rather than under its
   icon, so the indent reads as "these belong to that" at a glance. The rule
   is the same --line the way-out block is ruled off with; keeping to the one
   value is what stops the panel acquiring a second vocabulary of dividers.

   Children are a size down and a weight down from their parent. They are
   still real destinations - this is not a caption - but the row above them is
   the one being answered. */
.nav-account-children { margin: 0 0 4px 24px; padding-left: 8px; border-left: 2px solid var(--line); }
.nav-account-child { padding: 7px 10px; }
.nav-account-child .nav-account-label { font-weight: 600; font-size: .86rem; }

/* The way out. Last, and ruled off from the links above it: Log out is a
   control you want to be able to find and never the one you want to hit by
   accident. The rule is on this block rather than on each item, so a role with
   no links at all costs nothing. */
.nav-account-out {
  border-top: 1px solid var(--line); margin-top: 6px; padding: 6px 6px 2px;
}
.nav-account-out .button_to { display: block; }

/* ---------- The narrow-screen menu button ----------
   Hidden entirely above the website's nav breakpoint, where the links are a
   visible row and there is nothing to open. */
.app-nav-tray { display: none; position: relative; flex: 0 0 auto; }
.app-nav-tray > summary { list-style: none; cursor: pointer; }
.app-nav-tray > summary::-webkit-details-marker { display: none; }
/* Three bars and the word "Menu" (owner, 2026-11-10: the T-dot tile read as a
   second logo beside the wordmark, so the bars replace the 2026-11-07 mark).
   The bars are a mask over ::before in the button's ink, so dark mode turns
   them over by itself. Open, they give way to an X: it is what shuts the
   drawer. 44px: the smallest target a thumb hits reliably. Of the spans in
   the markup only the second (the word) and the last (the scrim, below)
   show. .nav-toggle in site/css/style.css is the twin. */
.app-nav-tray-toggle {
  display: flex; position: relative; flex: none; align-items: center; height: 44px; padding: 0 14px 0 42px;
  border: 1px solid var(--line-strong); border-radius: 13px; background: var(--card); color: var(--navy);
  font: inherit; font-size: .9rem; font-weight: 600; line-height: 1; cursor: pointer;
  transition: box-shadow var(--ease);
}
.app-nav-tray-toggle span { display: none; }
.app-nav-tray-toggle span:nth-child(2) { display: inline; }
.app-nav-tray-toggle span:nth-child(2)::before { content: "Menu"; }
.app-nav-tray-toggle::before {
  content: ""; position: absolute; left: 12px; top: 10px; width: 24px; height: 24px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E") center / 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E") center / 100% no-repeat;
}
/* A phone's bar has no room for the pill: the bars and the word stand bare,
   and the wordmark beside them steps down a size. */
@media (max-width: 480px) {
  .app-nav-tray-toggle { padding: 0 2px 0 30px; border-color: transparent; font-size: .85rem; }
  .app-nav-tray-toggle::before { left: 0; }
  .app-topbar .logo { font-size: 1.1rem; }
}
/* The app's bar also carries the inbox badge and the account: one step more. */
@media (max-width: 380px) { .app-topbar .logo { font-size: 1rem; } }
/* A ring, not opacity or a transform: either would reach the scrim below,
   which is one of this button's own spans (opacity would fade it, and a
   transform would make the button its containing block). */
.app-nav-tray:not([open]) > .app-nav-tray-toggle:hover { box-shadow: 0 0 0 3px var(--line-strong); }
.app-nav-tray-toggle:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.app-nav-tray[open] > .app-nav-tray-toggle::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E"); }
/* The page beside the open drawer is dimmed by the button's last span, laid
   over everything right of the drawer. Being part of the button, a tap on it
   shuts the drawer and never reaches the link underneath. It starts at the
   drawer's right edge, so it never covers the drawer - the owner's site menu
   included, which hangs outside the bar, under it in the stacking order.
   Fixed inside the bar, whose backdrop-filter makes it the containing block:
   top is the bar's height. */
.app-nav-tray[open] > .app-nav-tray-toggle span:last-child {
  display: block; position: fixed; top: var(--topbar-h); left: min(15rem, 85vw); right: 0;
  height: calc(100vh - var(--topbar-h)); height: calc(100dvh - var(--topbar-h));
  background: rgb(9 9 11 / .35); cursor: default;
}

/* Below the website's own nav breakpoint (1040px, the same number
   site/css/style.css uses) the row stops being a grid: the label goes, the
   hamburger appears, and the centred links row becomes a panel hanging under
   the bar. It is the SAME element in both states - the links are written down
   once in the view - and what opens the panel is the hamburger's own open
   state, read here with :has() because there is no JavaScript to read it with.
   The account panel stops at the viewport rather than hanging off it. */
@media (max-width: 1040px) {
  .app-topbar-inner {
    display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 62px;
  }
  :root { --topbar-h: 63px; }
  .app-context { display: none; }
  .app-topbar-actions { margin-left: auto; }
  .app-nav-tray { display: block; }
  /* A drawer down the LEFT edge, under the bar, where the hamburger now sits:
     the GoDaddy dashboard's side menu (owner, 2026-11-07). justify-self is set
     deliberately: the base rule centres this element in the grid's middle
     column, and a positioned box whose justify-self is anything but stretch is
     aligned inside its insets rather than placed by them. */
  .app-nav-links {
    /* A height, not bottom: 0. The bar's backdrop-filter makes the bar this
       fixed box's containing block, so bottom: 0 would mean the bar's bottom. */
    display: none; position: fixed; top: var(--topbar-h); left: 0; z-index: 55;
    height: calc(100vh - var(--topbar-h)); height: calc(100dvh - var(--topbar-h));
    width: min(15rem, 85vw); overflow-y: auto; overscroll-behavior: contain;
    justify-self: stretch;
    background: var(--bg); border-right: 1px solid var(--line);
    flex-direction: column; padding: 14px 12px; gap: 2px; align-items: stretch;
  }
  .app-topbar-inner:has(.app-nav-tray[open]) .app-nav-links { display: flex; }
  /* The website's chat bubble and window sit over the drawer's last rows on
     the pages that carry it; they step aside while it is open, as they do
     for the owner's menu (admin_console.css). */
  body:has(.app-nav-tray[open]) > :is(.twa-fab, .twa-pop) { display: none; }
  /* One panel at a time. The two <details> share a name, so a click on one
     closes the other; hover opens the account panel without [open], so the
     links panel steps aside for it here. */
  @media (hover: hover) and (pointer: fine) {
    .app-topbar-inner:has(.nav-account:hover) .app-nav-links { display: none; }
  }
  /* The Directory menu is a row like the links, and its towns open under it,
     indented, inside the same panel and at the same pitch. */
  .nav-menu { width: 100%; }
  .nav-menu > summary { justify-content: space-between; }
  .nav-menu-panel { position: static; width: auto; border: 0; border-radius: 0; box-shadow: none; padding: 2px 0 2px 36px; gap: 2px; }
  .nav-menu-panel::before { content: none; }
  /* Each row is a rounded 44px band with an icon, the GoDaddy dashboard's side
     menu (owner, 2026-11-07): a white pill under the finger, the drawer's grey
     round it. Not a .btn: the newsletter's signed-out bar ends this panel with
     its "Get Started" pill, which keeps its own shape. */
  .app-nav-links > a:not(.btn), .app-nav-links .nav-menu > summary, .app-nav-links .nav-menu-panel a {
    display: flex; align-items: center; gap: 14px; min-height: 44px;
    padding: 0 12px; border-radius: 12px; font-size: .95rem; color: var(--text);
    transition: background var(--ease);
  }
  .app-nav-links > a:not(.btn):hover, .app-nav-links .nav-menu > summary:hover,
  .app-nav-links .nav-menu-panel a:hover, .app-nav-links .nav-menu[open] > summary { background: var(--card); color: var(--text); }
  .app-nav-links .nav-menu-panel a { min-height: 38px; color: var(--muted); font-size: .9rem; }
  .app-nav-links > a:not(.btn)::before, .app-nav-links .nav-menu > summary::before {
    content: ""; flex: none; width: 20px; height: 20px; background: currentColor;
    -webkit-mask: var(--nav-ico) center / contain no-repeat; mask: var(--nav-ico) center / contain no-repeat;
  }
  .app-nav-links .nav-menu > summary > .ico { margin-left: auto; }
}
/* The drawer's icons, one per link, keyed on where the link goes so neither
   the view nor ApplicationHelper#marketing_nav_items carries markup for them.
   Stroke icons drawn as masks, so they take the row's colour in both themes.
   site/css/style.css has the same set for the website's own drawer. */
.app-nav-links a[href$="/services"] { --nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='3.5' width='7' height='7' rx='1.5'/%3E%3Crect x='13.5' y='3.5' width='7' height='7' rx='1.5'/%3E%3Crect x='3.5' y='13.5' width='7' height='7' rx='1.5'/%3E%3Crect x='13.5' y='13.5' width='7' height='7' rx='1.5'/%3E%3C/svg%3E"); }
.app-nav-links a[href$="/demo"] { --nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m10 8.5 5 3.5-5 3.5z'/%3E%3C/svg%3E"); }
.app-nav-links a[href$="/about"] { --nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 8h.01'/%3E%3C/svg%3E"); }
.app-nav-links a[href$="/faq"] { --nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9.5 9.5a2.5 2.5 0 1 1 3.5 2.3c-.6.3-1 .9-1 1.6v.4M12 17h.01'/%3E%3C/svg%3E"); }
.app-nav-links a[href$="/contact"] { --nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3.5 7 8.5 6 8.5-6'/%3E%3C/svg%3E"); }
.app-nav-links .nav-menu > summary { --nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E"); }
.app-nav-links .nav-menu:has(a[href*="audit"]) > summary { --nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0-5.4 5.4L4 17l3 3 5.3-5.3a4 4 0 0 0 5.4-5.4l-2.5 2.5-2.4-.6-.6-2.4z'/%3E%3C/svg%3E"); }
/* On a phone the account panel hangs off the BAR, not off the control. At 390px
   the greeting's right edge is some 70px from the screen edge, and a 21rem panel
   anchored to it starts 16px off the left of the screen. Anchored to the header
   - .nav-account goes static, so `absolute` resolves to the sticky bar - it sits
   at the right, inside the viewport's gutter. Wider than a phone there is room
   for it under the control itself, which is the base rule. */
@media (max-width: 640px) {
  .nav-account { position: static; }
  .nav-account-panel { top: calc(100% + 8px); right: 16px; max-width: min(21rem, calc(100vw - 32px)); }
  /* The hover bridge crosses the 17px from the control to the panel, plus the
     panel's 1px border, which it is measured inside. No further: it is as wide
     as the panel, so taller would cover the bottom of the bar's controls. */
  .nav-account-panel::before { height: 18px; }
  /* Without the mail pill the "Hi, name" control is taller, so the bridge's
     top reaches it. The control sits above the bridge (the panel is 60), so a
     pointer on it still lands on it. */
  .nav-account > summary { position: relative; z-index: 61; }
}
/* On a phone the bar holds the wordmark, the account and the hamburger, so
   the gaps close up: each 44px target keeps 11px of air round its glyph
   anyway, and the account control comes in to the website's own phone
   padding. */
@media (max-width: 640px) {
  .app-topbar-inner, .app-topbar-actions { gap: 4px; }
  .app-topbar .nav-signin { padding-inline: 6px; }
  /* A 44px target for the account, not 30px. Same trade as the panel's rows
     above: the padding grows, the margin gives it back, and nothing in the
     bar moves. */
  .app-topbar .nav-signin { padding-block: 13px; margin-block: -6px; }
}
/* Just above the breakpoint the centred links, Directory menu included, come
   close enough to the mail pill that its words would push them off centre,
   so the pill keeps its count alone there, as it does on a phone. */
@media (min-width: 1041px) and (max-width: 1139px) {
  .topbar-inbox-words {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .app-topbar a.topbar-inbox { padding-inline: 8px; }
}
/* The bar stops holding the words: under 600px while the mail pill shows, and
   under 390px without it. The pill keeps its count and the account control
   its person icon; under 370px the gaps also close to 2px, which a two-digit
   count needs at 320. The words stay in the markup, visually hidden, so a
   screen reader still hears "3 new messages" and "Hi, <name>". The name is
   still the link to the reader's page, as at every width, so while it has the
   keyboard the icon wears the focus ring. The twin of the rule in
   site/css/style.css. */
@media (max-width: 599px) {
  .topbar-inbox-words {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .app-topbar a.topbar-inbox { padding-inline: 8px; }
  .app-topbar-actions:has(.topbar-inbox) .nav-signin { font-size: 0; gap: 0; padding-inline: 13px; margin-inline: -7px; }
  .app-topbar-actions:has(.topbar-inbox) .nav-signin-who {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .app-topbar-actions:has(.topbar-inbox) .nav-signin:has(.nav-signin-who:focus-visible) { outline: 2px solid var(--on-dark); outline-offset: 3px; }
}
/* Under 390px the greeting is its icon alone, mail or not: the website's
   threshold for a signed-in greeting (site/css/style.css), so a 375px phone
   sees the same bar on a website page and an app page. */
@media (max-width: 389px) {
  .app-topbar .nav-signin { font-size: 0; gap: 0; padding-inline: 13px; margin-inline: -7px; }
  .app-topbar .nav-signin-who {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .app-topbar .nav-signin:has(.nav-signin-who:focus-visible) { outline: 2px solid var(--on-dark); outline-offset: 3px; }
}
@media (max-width: 369px) {
  .app-topbar-inner, .app-topbar-actions { gap: 2px; }
}

/* ---------- Staff console: zip sections as disclosures ---------- */
.zip-section { border: none; margin-top: 22px; }
.zip-section > summary { list-style: none; cursor: pointer; user-select: none; border-radius: var(--radius-sm); }
.zip-section > summary::-webkit-details-marker { display: none; }
/* The place, then the count at the far edge, on one line. The town's website,
   its sponsor count and its tools are on its strip instead, picked in the
   Towns list (admin/dashboard/_towns). baseline, not center, so the name and the count
   share a line of type. */
.zip-head {
  display: flex; flex-wrap: nowrap; align-items: baseline; gap: 6px;
  border-bottom: 1px solid var(--line); padding-bottom: 10px;
}
.zip-head h2 { margin: 0; font-size: .95rem; letter-spacing: -.01em; flex-shrink: 0; white-space: nowrap; }
.zip-head .biz-caret { order: -1; align-self: baseline; }
.zip-section[open] > summary .biz-caret::before { content: "▴"; }
.zip-section:not([open]) > summary .biz-caret::before { content: "▾"; }
.zip-count { margin-left: auto; font-size: .75rem; color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.zip-section > .biz-list { margin-top: 6px; }
/* On a phone a long place name wraps rather than pushing the count off. */
@media (max-width: 640px) {
  .zip-head h2 { white-space: normal; flex-shrink: 1; min-width: 0; }
}

/* ---------- Panels ---------- */
.panel-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; margin-bottom: 18px; }
.panel-grid.panel-wide { grid-template-columns: 1fr; }
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px 26px; box-shadow: var(--shadow-md);
}
/* Standalone panels need their own rhythm; grid children get theirs from the
   grid's gap, so the rule is scoped to panels the layout yields directly. */
.app-main > .container > .panel + .panel { margin-top: 18px; }
.panel h2 { font-size: 1.05rem; margin-bottom: 14px; }
.panel-note { color: var(--muted); font-size: .85rem; margin: 0 0 14px; }

/* THE TEN-QUESTION ASSESSMENT, the half of the security report the scan
   cannot see. A long radio form, so the browser's own fieldset chrome is
   taken off and replaced with a hairline: ten bordered boxes down a page read
   as ten separate forms. The question is the legend and the options are block
   rows under it, each one a whole label, so the clickable target is the
   sentence and not the 13px circle beside it. */
.assessment-q { border: 0; padding: 0; margin: 0 0 18px; border-bottom: 1px solid var(--line); }
.assessment-q:last-of-type { border-bottom: 0; }
.assessment-q legend { padding: 0; margin-bottom: 8px; font-weight: 600; }
.assessment-q label {
  display: block; padding: 6px 0 10px; font-weight: 400; cursor: pointer;
}
.assessment-q input[type="radio"] { margin-right: 8px; }

/* TWO PANELS THAT ARE NOT THE SAME THING, dressed so the eye knows before the
   words do. .panel-outward asks Google about businesses we do not have and can
   cost money: tinted ground and a blue leading edge, the same "this reaches
   somewhere else" treatment the figures card and outbound links wear. The
   saved-list panel stays plain card white - it is our own database, the
   default surface of the console. The kicker names the source on each. */
.panel-kicker {
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 6px;
}
.panel-outward { background: var(--tint); border-left: 4px solid var(--blue); box-shadow: none; }
.panel-outward .panel-kicker { color: var(--blue-dark); }
/* The head row: kicker and title, with the h2's own bottom margin moved to
   the row. It held the fleet-wide SEO button until that was removed; the
   row stays so the saved-list panel's spacing did not move with it. */
.panel-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.panel-head h2 { margin: 0; }
.panel-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
/* The same row of actions in a page header rather than inside a panel. It takes
   its gap above from the subtitle's own margin and only has to supply the one
   below, so the tiles under it keep the page's rhythm. */
.app-sub + .panel-actions { margin-bottom: 26px; }

/* ---------- The owner's site pages: flow ----------
   Five panels of forms and lists was a long page, and it used to read as one
   undifferentiated scroll: every section the same weight, the "add" form and
   the "here is what you have" list running together with nothing between
   them. These four rules are what changed.

   1. The glance row. The three things an owner checks most - who came, who
      wrote, and that the site is theirs to take - on one line at the top of
      the overview. The state of the business is read before anything is
      scrolled. It used to be a 1.15fr/1fr grid built for two, which stranded
      the third card beside an empty half-width gap; this row is built for
      three.
   2. The jump strip - chips with fragment hrefs that scrolled you down the
      one long page. That page is gone for the owner: each section is its own
      page, and the links between them are the sidebar (portal/sites/_sidebar,
      dressed in admin_console.css). The console's site page still holds
      every section at once, each in a drawer its board of tiles opens
      (admin/sites/_board, .site-board in admin_console.css).
   3. One rhythm for every section, spaced by .site-panels. That mattered most
      when five sections shared one page, and it is still what holds each
      section page's panel - and, unchanged, the CONSOLE page, which really is
      the whole stack at once. Which is why these rules cannot be narrowed to
      a single panel.
   4. The add box. A tinted well around the form that makes something new, so
      it stops looking like the list underneath it. This is the single
      biggest readability change on the page. */
.site-panels > * + * { margin-top: 18px; }
/* An anchored jump lands the heading under the sticky bar rather than behind
   it, and the extra room reads as a section break either way. */
.site-panels > [id] { scroll-margin-top: 80px; }

/* The glance row. Three equal columns, deliberately not .panel-grid: that one
   is 1.15fr/1fr and is shared with the console's own two-panel row, so it
   cannot be widened here without moving a page this file also styles.
   minmax(0, 1fr) rather than a bare 1fr so a long "12 new messages" link
   wraps inside its column instead of pushing the other two narrow. */
.site-glance {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px; margin-bottom: 20px;
}
.site-glance > [id] { scroll-margin-top: 80px; }
/* Column, so the one card with a button can push it to the bottom edge and
   all three cards end on the same line however long their sentences run. The
   padding is .panel's own, so card text lines up with the address above. */
.site-glance .panel { display: flex; flex-direction: column; }
/* The card titles, and the address panel's, are labels rather than headings:
   small and in the body face, in sentence case like every label (DESIGN.md),
   so the number or the address under each is what the eye lands on first. */
.site-glance .panel h2,
#website-address h2 {
  font-family: var(--font-body); font-size: .8125rem; font-weight: 500; line-height: 1.3;
  color: var(--muted-2); margin-bottom: 8px;
}
.site-glance .panel-note { margin: 0; }
.site-glance .panel-actions { margin-top: auto; padding-top: 12px; }
/* The one fact each card exists to say, read before the sentence under it.
   Tabular figures, so the digits keep an even width as the counts change.
   The size eases down to 1.6rem as the window narrows: at 2rem, "No messages
   yet" breaks onto two lines in a third of a ~960px window. */
.glance-value {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(1.6rem, 2.6vw, 2rem);
  line-height: 1.15; color: var(--navy); margin: 0 0 6px;
  font-variant-numeric: tabular-nums;
}
.glance-value a { color: inherit; }
/* Except an address. The display type at 2rem suits "115 visitors" and
   turns a URL into a two-line headline, so the address panel sets its links in
   the body face at reading size, in the link colour, so they read as
   something to click rather than something to admire. */
#website-address .glance-value {
  font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; line-height: 1.45;
}
#website-address .glance-value a { color: var(--blue); }
/* The glance row under it is a <div>, not a .panel, so the panel + panel
   rhythm never spaced the two. The same 18px as the row's own gap. */
#website-address { margin-bottom: 18px; }

/* A readable measure for the overview's longer notes. At full panel width a
   sentence ran well past 100 characters a line. */
#website-address .panel-note,
.site-glance .panel-note,
#publishing .panel-note,
#ask-us .panel-note { max-width: 56ch; }

/* Whether their page is live, said as a state rather than a sentence: small,
   medium weight, with a dot that is green when it is live. Tucked up under
   the title, because it is the first thing the panel answers. */
.publish-status {
  display: flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 500; color: var(--navy); margin: -6px 0 12px;
}
.publish-status::before {
  content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--faint);
}
.publish-status.is-live::before { background: var(--green); }

/* The "Ask us" form straight on its panel: the box, then the button under it
   on the left. It used to sit in .panel-add's well, which made it a bordered
   field in a bordered well in a bordered panel. */
.ask-us-form { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }

/* Their website and their TrueWebCare page, side by side. auto-fit so a
   business with no town page gets the one address across the whole panel
   rather than half of it, and the pair stacks on its own when there is not
   room for two. overflow-wrap because a URL is one long word and would
   otherwise push out of its column rather than wrap inside it. */
.site-addresses {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 18px 32px;
}
.site-addresses .glance-value { overflow-wrap: anywhere; }

/* Fine print under a section's opening line: the file formats, the size cap,
   the privacy note. Demoted rather than deleted - an owner should not have to
   read it to use the section, and should be able to find it when they want
   it. The negative top margin closes the gap the note above it leaves. */
.panel > .panel-hint { margin: -6px 0 14px; }

/* ---------- Staff console: the site-management panels ----------
   The staff-only half of admin/sites#show - how the page is built, where it
   appears, the app kit, starting over - above the panels the owner sees.

   Same rhythm and same spacing as .site-panels below it, deliberately: this
   is one page, not a console page with a portal page stapled underneath. The
   only thing that reads differently is the destructive panel, which reads
   red before it is opened rather than after it is pressed. */
.site-admin > * + * { margin-top: 18px; }
.site-admin { margin-bottom: 26px; }
.site-admin > [id], .site-admin .panel-grid > [id] { scroll-margin-top: 80px; }
/* A form directly under a panel's note needs the same air as the actions row
   it stands in for. */
.site-admin .panel-note + .build-opts { margin-top: 4px; }
.site-admin .build-opts + .panel-actions { margin-top: 14px; }
.panel-danger { border-color: var(--red-line); background: var(--red-soft); }
.panel-danger h2 { color: var(--red); }
/* The sentence that says why a control is absent, or what it will cost. It
   sits in an actions row beside buttons, so it is sized to them. */
.panel-hint { font-size: .82rem; color: var(--muted); margin: 0; }

/* The add box: everything that makes a new thing, in a well of its own. */
.panel-add {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px 16px; margin: 0 0 4px;
}
.panel-add-label {
  display: block; margin-bottom: 10px;
  font-size: .8125rem; font-weight: 500;
  color: var(--muted-2);
}
/* Inside the well the forms need no top margin of their own, and the
   assistant's rule form loses the dashed rule that separated it from the
   greeting - the well is that separation now. */
.panel-add > form { margin-top: 0; }
.panel-add .chat-rule-form { border-top: 0; padding-top: 0; margin-top: 0; }

/* Where a picture came from, under the thumbnail. Google's terms want the
   credit visible; the owner wants to know which pictures are theirs. */
.photo-source {
  display: block; padding: 6px 10px 0; font-size: .74rem; color: var(--muted);
  overflow-wrap: anywhere;
}

/* ---------- Staff console: a tighter top of page ----------
   The overview's furniture (title, four stat tiles, the search panel) filled a
   whole screen before the fleet list started. Same content, less air. */
.admin-console .app-main { padding: 20px 0 60px; }
.admin-console .app-main h1 { margin-bottom: 2px; }
.admin-console .app-sub,
.admin-console .app-main h1 + p { margin-bottom: 14px; }
.admin-console .panel { padding: 16px 18px; }
.admin-console .app-main > .container > .panel + .panel { margin-top: 12px; }
.admin-console .panel h2 { margin-bottom: 8px; }
.admin-console .panel-note { margin: 0 0 10px; }
.admin-console .search-form { margin-top: 10px; }
/* Last line in the panel: its old bottom margin was padding the panel a second
   time, which is what left the dead band under "Say where to look". */
.admin-console .search-note { margin: 8px 0 0; }
.admin-console .fleet-filters { margin-bottom: 10px; }
/* Sentence case in the console, with no tracking (DESIGN.md): the kickers,
   the table heads and the fleet card's labels. Scoped, because .data-table
   is the portal's too. admin_console.css has the console's other labels. */
body.admin-console :is(.panel-kicker, .data-table th, .detail-list dt, .import-summary h3) { text-transform: none; letter-spacing: normal; }

/* ---------- Tables ---------- */
/* position: relative so the box contains a row's .visually-hidden words. They
   are absolutely positioned, and with no positioned ancestor they answered to
   the page instead: on a phone a wide table scrolled inside this box as meant,
   while "Void" at its far end made the whole page 785px wide behind it. */
.table-scroll { overflow-x: auto; position: relative; }
.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.data-table th {
  text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 2px solid var(--line);
  white-space: nowrap;
}
.data-table td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
/* Two of the ten columns hold prose rather than a value, and must be allowed to
   wrap or the table scrolls sideways for the sake of one address. */
.data-table td.wrap { white-space: normal; min-width: 150px; }
.data-table tbody tr { transition: background var(--ease); }
.data-table tbody tr:hover { background: var(--tint); }
.data-table tr:last-child td { border-bottom: none; }

/* THE AUDIT LOOK (audit_reports/_todo_head and _todo_list), on the free
   audit's grade page and the owner's report card on /audits. The full report
   draws the same pieces with an inline copy of these rules, because a printed
   page can't reach this sheet. A short head (the grade, the address, the score
   and one bar split by state), then one numbered list in the order to deal
   with it, each row with its next step under it. */
.td-box { padding: 18px 20px; }
.td-top { display: flex; gap: 14px; align-items: center; }
.td-grade {
  flex: none; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 15px;
  font-family: var(--font-head); font-size: 2rem; font-weight: 800; line-height: 1;
  border: 1.5px solid var(--line-strong); background: var(--tint); color: var(--navy);
}
.td-grade-good { background: var(--green-soft); border-color: var(--green-line); color: var(--green); }
.td-grade-warn { background: var(--warn-soft); border-color: #ecd9ae; color: var(--amber-dark); }
.td-grade-bad { background: var(--red-soft); border-color: var(--red-line); color: var(--red); }
.td-title { min-width: 0; }
/* The address breaks after a dot or a hyphen (host_breaks), and only past
   that anywhere at all. */
.td-title h1, .td-title h2 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 800; line-height: 1.2; margin: 0; overflow-wrap: anywhere; }
.td-title p { margin: 3px 0 0; color: var(--muted); font-size: .9rem; }
.td-title p strong { color: var(--navy); }
.td-bar { display: flex; gap: 3px; height: 10px; margin-top: 16px; }
.td-bar i { min-width: 6px; border-radius: 3px; }
.td-bar-bad { background: var(--red); }
.td-bar-warn { background: var(--amber-dark); }
.td-bar-good { background: var(--green); }
.td-bar-info { background: var(--line-strong); }
.td-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 8px 0 0; font-size: .88rem; font-weight: 700; }
.td-legend span::before {
  content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; background: currentColor;
}
.td-legend-bad { color: var(--red); }
.td-legend-warn { color: var(--amber-dark); }
.td-legend-good { color: var(--green); }
.td-legend-info { color: var(--muted); }
.td-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
}
.td-links { margin-left: auto; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.td-group {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 26px 2px 10px;
  font-size: .8rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
}
.td-group .pill { letter-spacing: 0; text-transform: none; }
.td-list {
  list-style: none; margin: 0; padding: 0; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.td-item { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 14px 16px; border-left: 4px solid var(--line-strong); }
.td-item + .td-item { border-top: 1px solid var(--line); }
.td-item-bad { border-left-color: var(--red); }
.td-item-warn { border-left-color: var(--amber-dark); }
.td-n {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid currentColor; font-size: .8rem; font-weight: 800;
}
.td-item-bad .td-n { color: var(--red); }
.td-item-warn .td-n { color: var(--amber-dark); }
.td-body { min-width: 0; }
.td-body p { margin: 0; }
.td-body p + p { margin-top: 4px; }
.td-name { display: flex; align-items: center; gap: 8px; }
.td-name strong { margin-right: auto; color: var(--navy); }
.td-found { color: var(--muted); font-size: .92rem; overflow-wrap: anywhere; }
.td-do { color: var(--navy); font-size: .95rem; }
.td-do::before { content: "→ "; color: var(--go); font-weight: 800; }
.td-locked { color: var(--muted); font-size: .88rem; font-style: italic; }
.td-ok {
  padding: 12px 16px; font-size: .92rem; color: var(--muted);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.td-ok p { margin: 0; }
.td-ok p + p { margin-top: 6px; }
.td-ok strong { color: var(--navy); }

/* The free audit's grade page (audit_signups/result): the card is wider than
   the sign-in card it borrows, its head gets a box of its own, and the foot
   of the page clears the chat button. */
.td-wrap { padding-bottom: 96px; }
.td-kick { margin: 0 0 8px; font-size: .8rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.td-card .td-box { border: 1px solid var(--line); border-radius: var(--radius); }
.td-card .td-title h1 { margin: 0; }
.td-ai { margin: 14px 2px 0; font-size: .9rem; color: var(--muted); }
.td-ai strong { color: var(--navy); }

/* The owner's report card on /audits (portal/audit_reports/_report_card): the
   head and the list above, then every report on the host, newest first. */
.rc + .rc, .rc + .panel, .panel + .rc { margin-top: 32px; }
.panel.td-box { padding: 18px 20px; }
.rc-later { margin: 12px 0 0; }
.rc-line { list-style: none; margin: 0; padding: 4px 18px; }
.rc-stop { display: grid; grid-template-columns: 44px 1fr auto; gap: 4px 14px; align-items: center; padding: 12px 0; }
.rc-stop + .rc-stop { border-top: 1px solid var(--line); }
.rc-stop .td-grade { width: 44px; height: 44px; font-size: 1.3rem; border-radius: 12px; }
.rc-stop.is-latest .td-grade { box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--line-strong); }
.rc-stop strong { margin-right: 6px; color: var(--navy); }
.rc-stop-score { display: block; font-size: .88rem; color: var(--muted); }
.rc-stop-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 14px; font-size: .9rem; }
.rc-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 24px;
  padding: 16px 22px; border-radius: var(--radius); background: var(--navy); color: var(--on-band);
}
.rc-foot p { margin: 0; flex: 1; min-width: 220px; }
.rc-foot strong { color: #fff; }
/* On a phone: a smaller grade, tighter rows, and the report links under
   each report rather than beside it. The grade page gives the words more of
   the screen than the sign-in card's padding would. */
@media (max-width: 640px) {
  .td-box, .panel.td-box { padding: 16px; }
  .td-grade { width: 52px; height: 52px; font-size: 1.7rem; border-radius: 13px; }
  .td-links { margin-left: 0; }
  .td-item { gap: 10px; padding: 12px 14px; }
  .td-wrap { padding-left: 12px; padding-right: 12px; }
  .td-card { padding: 22px 14px; }
  .rc-line { padding: 4px 14px; }
  .rc-stop { grid-template-columns: 44px 1fr; }
  .rc-stop-links { grid-column: 2; justify-content: flex-start; }
}

/* A client is the loud row; a prospect is the quiet one. */
.kind-client td:first-child { font-weight: 700; color: var(--navy); }
.kind-prospect td:first-child { color: var(--muted); }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; padding: 3px 11px; border-radius: 999px; white-space: nowrap; }
.pill-good { background: var(--green-soft); color: var(--green); }
.pill-warn { background: var(--warn-soft); color: var(--amber-dark); }
.pill-bad { background: var(--red-soft); color: var(--red); }
.pill-info { background: var(--blue-soft); color: var(--blue-dark); }

/* The quiet button. Written out for the button_to case too: base.css makes an
   unclassed button_to blue, and .mini-btn on its own loses that on specificity. */
.mini-btn, .button_to button.mini-btn {
  white-space: nowrap;
  border: 1px solid var(--line); background: var(--bg); color: var(--navy);
  font-family: var(--font-body); font-size: .78rem; font-weight: 600;
  padding: 5px 10px; border-radius: 7px; cursor: pointer; text-decoration: none; display: inline-block;
  box-shadow: none;
  transition: border-color var(--ease), color var(--ease), background var(--ease), transform var(--ease);
}
.mini-btn:hover, .button_to button.mini-btn:hover {
  border-color: var(--blue); color: var(--blue); background: var(--blue-soft);
  transform: translateY(-1px); text-decoration: none;
}

/* ---------- Console tools ---------- */
/* The fleet actions nobody opens the console to reach, such as the backup
   pair. Right-aligned and captionless on purpose - as panels with a
   paragraph each they pushed the pipeline below the fold. Its own class rather
   than .panel-actions, whose margin-top is sized to clear a .panel-note that
   is not there any more. */
.console-tools {
  display: flex; justify-content: flex-end; align-items: center;
  gap: 8px; flex-wrap: wrap; margin: 0 0 14px;
}
/* button_to wraps its button in a form, which would otherwise sit on the
   row's baseline differently from the two plain links beside it. */
.console-tools form, .console-tools form.button_to { margin: 0; display: inline-block; }
/* One of these three is a <button> (button_to) and two are <a> (link_to). A
   button does not inherit the body's line-height, so it came out ~3px shorter
   than its neighbours and sat 2px lower. Matching the box explicitly is the
   only thing that lines all three up. Both selectors again, because base.css
   beats a bare .mini-btn on specificity for button_to. */
.console-tools .mini-btn,
.console-tools .button_to button.mini-btn {
  display: inline-flex; align-items: center; box-sizing: border-box;
  min-height: 30px; line-height: 1;
}

/* ---------- Definition lists (the prospect detail) ---------- */
.detail-list { display: grid; grid-template-columns: 190px 1fr; gap: 0; font-size: .92rem; }
.detail-list dt {
  font-size: .76rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); font-weight: 600; padding: 11px 0; border-bottom: 1px solid var(--line);
}
.detail-list dd { padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.detail-list dt:last-of-type, .detail-list dd:last-of-type { border-bottom: none; }

/* ---------- Owner portal: the site list ---------- */
/* Rows on hairlines, not a card each: the panel is the card, and staff see
   the whole fleet here, so a row is one short line. */
.sites { list-style: none; }
.sites li {
  display: flex; align-items: center; gap: 4px 12px; flex-wrap: wrap;
  padding: 8px 12px; border-bottom: 1px solid var(--line);
  transition: background var(--ease);
}
.sites li:last-child { border-bottom: none; }
.sites li:hover { background: var(--tint); }
/* A long domain with no break in it (www.morrieslittlefallschryslerdodgejeepram.com)
   wraps instead of pushing a phone's page sideways. */
.sites li > a { font-weight: 600; font-size: .92rem; color: var(--navy); min-width: 0; overflow-wrap: anywhere; }
.sites li > a:hover { color: var(--blue); text-decoration: none; }
.sites .status { font-size: .75rem; font-weight: 600; padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
/* Mail waiting, visible from the list. A link, not just a count: the reader's
   next move is always "show me", so the pill goes straight to the inbox. */
.sites .inbox {
  font-size: .75rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; white-space: nowrap;
  background: var(--blue-soft); color: var(--blue); border: 1px solid var(--blue-line);
}
.sites .inbox:hover { text-decoration: none; background: var(--blue-line); }
/* The same pill, worn on the dark bar: solid white so it reads at a glance
   from any page, portal or console. */
.app-topbar .topbar-inbox {
  font-size: .8rem; font-weight: 700; padding: 5px 13px; border-radius: 999px; white-space: nowrap;
  background: var(--blue-soft); color: var(--blue-dark); border: 1px solid var(--blue-line);
}
.app-topbar .topbar-inbox:hover { text-decoration: none; background: var(--blue); color: var(--on-blue); border-color: var(--blue); }

/* ---------- Shared: the parity pass ----------
   The pieces both portal and console audits called for, ported from the
   reference console's portal.css where a rule existed there. */

/* Usage chip inside a panel heading: "4 of 24 · up to 4 MB each". */
.panel h2 .panel-usage {
  float: right; font-size: .78rem; font-weight: 600; color: var(--muted);
  background: var(--tint); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px;
}

/* Empty states: what will happen here, said instead of blank card space. */
.panel-empty { color: var(--muted); font-size: .9rem; margin: 14px 0 0; }

/* Labelled fields for the assistant and text-back forms: label above input,
   the answer field wider, the checkbox on its own line. */
.chat-field { display: flex; flex-direction: column; gap: 4px; flex: 1 1 200px; min-width: 0; }
.chat-field-wide { flex: 2 1 300px; }
/* The field sits in a COLUMN flex box, so a flex-basis inherited from the
   row rules above would be read as a height - which is how the greeting box
   grew to 260px tall. The input sizes itself here. */
.chat-field > input[type="text"] { flex: 0 0 auto; width: 100%; min-width: 0; }
.field-label { font-size: .78rem; font-weight: 600; color: var(--muted-2); }
.field-hint { font-size: .82rem; color: var(--muted); margin: 8px 0 0; }
/* Text-back (part 3): how to forward to the number, a list in a cc-row. */
.textback-forward ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: .875rem; }
.textback-forward code { font-size: .8125rem; padding: 1px 6px; border-radius: 6px; background: var(--tint); white-space: nowrap; user-select: all; }
/* The calls log at the card's foot: caller over time in a first column as
   wide as the settings' label column, so what happened lines up with the
   fields above, and wraps instead of losing its end to an ellipsis. */
.textback-calls caption { padding: 20px 28px 12px; border-top: 1px solid var(--line); text-align: left; font: 600 1rem/1.14 var(--font-head); color: var(--navy); }
.textback-calls th:first-child { width: calc(28px + 220px + 32px - 12px); }
.cc-table.textback-calls td:not(.cc-none-row) { height: auto; padding-top: 10px; padding-bottom: 10px; white-space: normal; vertical-align: top; }
.textback-calls td > span { display: block; }
.textback-calls td > .quiet { font-size: .8125rem; }
@container (max-width: 560px) {
  .textback-calls caption { padding: 18px 18px 10px; }
  .textback-calls th:first-child { width: 150px; }
}
.assistant-lead { flex: 1 1 100%; white-space: normal; }
/* The rule form sits under a dashed rule, apart from the greeting. */
.chat-rule-form { border-top: 1px dashed var(--line-strong); padding-top: 14px; margin-top: 14px; }

/* Live states read green and bold; a switched-off row recedes. */
.coupon-state.is-live, .assistant-state.is-live { color: var(--green); font-weight: 700; }
.coupons li.is-off, .assistant-rules li.is-off { background: var(--tint); }
.coupons li.is-off .coupon-title { color: var(--muted); font-weight: 500; }

/* Small print on its own second line under the offer. */
.coupon-details { flex: 1 1 100%; order: 9; font-size: .82rem; color: var(--muted); }

/* The destructive action is the only red thing in a row. */
.mini-btn.is-danger, .button_to.is-danger button, form.is-danger button.mini-btn { color: var(--red); }
.mini-btn.is-danger:hover { border-color: var(--red-line); background: var(--red-soft); color: var(--red); }
/* .is-paid: every control in the console that bills a Google request. The
   words "SPENDS MONEY" stay on the face - the rule is that a control which
   costs money says so in the loudest words on it - but amber ground beside
   four plain buttons means the eye sorts free from paid before reading a
   single label. Hover keeps the amber rather than turning blue like the
   others: a paid button must never, for the instant of a hover, look free. */
.mini-btn.is-paid, .button_to button.mini-btn.is-paid {
  background: var(--warn-soft); border-color: var(--amber-dark); color: var(--amber-dark);
}
.mini-btn.is-paid:hover, .button_to button.mini-btn.is-paid:hover {
  background: var(--warn-soft); border-color: var(--amber-dark); color: var(--amber-dark);
}

/* Photo tiles carry their own caption form. */
.photo-caption-form { display: flex; gap: 6px; align-items: center; }
.photo-caption-form input[type="text"] { min-width: 0; }

/* The inbox reply: a fold under each message. */
.msg-replybox > summary { display: inline-block; list-style: none; cursor: pointer; }
.msg-replybox > summary::-webkit-details-marker { display: none; }
.msg-reply-form { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.msg-reply-form textarea {
  width: 100%; min-width: 0; padding: 10px 12px; font-family: var(--font-body); font-size: .9rem;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--bg);
}
.msg-reply-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
/* The suggestions arrive with the hidden attribute and stay that way until the
   controller runs; base.css's [hidden] rule is !important, so the flex here
   cannot bring them back early. */
.msg-suggestions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.msg-suggestions-label { font-size: .82rem; color: var(--muted); }
.msg-suggestion { font-size: .82rem; }
/* Pushed to the far end, away from Save: the two are opposites and should not
   sit where a thumb meant for one lands on the other. */
.message-replied {
  margin-top: 12px; padding: 10px 14px; border-left: 3px solid var(--green-line);
  background: var(--green-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.message-replied .when { margin: 0 0 4px; font-size: .8rem; color: var(--green); font-weight: 600; }

/* Sign-in page. The ground is the page gray, so the card can no longer rely on
   contrast alone to read as a card: it takes a line and the page's own shadow.
   The wordmark is the website's, all ink, and is the way back to the site. */
.login-card { border: 1px solid var(--line-strong); }
.login-back { text-align: center; }
.login-back a { color: var(--muted); font-size: .9rem; }
.login-back a:hover { color: var(--blue); }

/* ---------- Staff console: the search panel ---------- */
.search-h2 { display: flex; align-items: center; gap: 8px; }
.search-h2 .ico { width: 18px; height: 18px; color: var(--blue); }
/* One line of placeholder-named controls, no stacked labels: the reference's
   own call, reversed from the earlier deliberate deviation now that the
   static console is the design of record. */
.search-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.search-form input[type="search"], .search-form input[type="text"] { flex: 2 1 220px; width: auto; min-width: 0; }
.search-form select { flex: 1 1 150px; width: auto; min-width: 0; }
/* A form whose controls and button stack instead of sharing a line.
   Everything else about .search-form still applies. */
.search-form-stacked { flex-direction: column; align-items: stretch; }
/* A one-line field in a stacked form (the automation quote's business name):
   in a column, .search-form's flex-basis would set its HEIGHT, not its width. */
.search-form-stacked input[type="text"] { flex: 0 0 auto; width: 100%; }
.search-form-stacked input[type="submit"] { align-self: flex-start; }
/* ---------- Staff console: market research ----------
   admin/market_researches: one card split in two, the runs on the left and the
   open report beside them (variant A of the 2026-10-15 comparison). Scoped
   under the console's body class to outrank .admin-console .panel and friends. */
body.admin-console .mr-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
body.admin-console .mr-head h1 { margin: 0; }

body.admin-console .mr-split {
  display: grid; grid-template-columns: 300px minmax(0, 1fr);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
body.admin-console .mr-runs { padding: 20px 12px; border-right: 1px solid var(--line); }
body.admin-console .mr-runs-head { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0 10px 8px; font-size: .8125rem; color: var(--muted-2); }
body.admin-console .mr-runs-count {
  min-width: 20px; height: 20px; padding: 0 6px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--tint); font-size: .75rem; font-weight: 600; line-height: 18px; text-align: center; color: var(--muted);
}
body.admin-console .mr-runs ul { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
body.admin-console .mr-run { display: block; padding: 10px; border: 1px solid transparent; border-radius: var(--radius-sm); color: var(--navy); }
body.admin-console .mr-run:hover { background: var(--tint); text-decoration: none; }
body.admin-console .mr-run[aria-current] { background: var(--tint); border-color: var(--line); }
body.admin-console .mr-run-topic { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; font-weight: 600; }
body.admin-console .mr-run-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px;
  font-size: .8125rem; color: var(--muted-2); font-variant-numeric: tabular-nums;
}
body.admin-console .mr-run-meta .pill { padding: 2px 9px; font-size: .75rem; }
body.admin-console .mr-none { margin: 0; padding: 0 10px; font-size: .875rem; color: var(--muted-2); }

body.admin-console .mr-reader { min-width: 0; padding: 24px 32px 32px; }
body.admin-console .mr-reader > h2 { margin: 0 0 14px; font-size: 1.125rem; }
body.admin-console .mr-all { display: none; align-items: center; gap: 4px; margin-bottom: 12px; font-size: .875rem; font-weight: 500; color: var(--muted-2); }
body.admin-console .mr-all .ico { width: 16px; height: 16px; }
body.admin-console .mr-asked { max-width: 72ch; margin: 0 0 10px; font-size: .875rem; color: var(--muted-2); }
body.admin-console .mr-summary { max-width: 70ch; margin: 0 0 8px; font-size: 1.0625rem; line-height: 1.5; color: var(--text); }
body.admin-console .mr-receipt { margin: 0 0 16px; font-size: .8125rem; color: var(--faint); }
body.admin-console .mr-note { margin: 0; font-size: .875rem; color: var(--muted); }
body.admin-console .mr-status { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: .875rem; color: var(--muted-2); }
body.admin-console .mr-error {
  max-width: 72ch; margin: 0; padding: 10px 14px; border: 1px solid var(--red-line); border-radius: var(--radius-sm);
  background: var(--red-soft); color: var(--red);
}

/* The themes, numbered, as anchors: a long report is one press from any of them. */
body.admin-console .mr-chips { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
body.admin-console .mr-chips .chip { max-width: 260px; overflow: hidden; text-overflow: ellipsis; padding: 5px 12px; }
body.admin-console .mr-chips .chip:hover { border-color: var(--line-strong); color: var(--navy); text-decoration: none; }
body.admin-console .mr-theme { padding: 24px 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--topbar-h) + 16px); }
body.admin-console .mr-theme:last-child { padding-bottom: 0; border-bottom: 0; }
body.admin-console .mr-theme h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 6px; font-size: 1.125rem; }
body.admin-console .mr-n { color: var(--faint); font-variant-numeric: tabular-nums; }
body.admin-console .mr-theme > p { max-width: 72ch; margin: 0 0 12px; color: var(--muted); }
/* The quote is set apart from our own prose because it is somebody else's
   sentence, and the whole value of it is that a reader can tell the difference. */
body.admin-console .mr-quote { margin: 10px 0; padding-left: 14px; border-left: 2px solid var(--line-strong); }
body.admin-console .mr-quote p { margin: 0; color: var(--text); }
body.admin-console .mr-quote > p:first-child::before { content: "\201C"; }
body.admin-console .mr-quote > p:first-child::after { content: "\201D"; }
body.admin-console .mr-quote .mr-source { margin-top: 2px; font-size: .8125rem; color: var(--muted-2); }
body.admin-console .mr-source a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
body.admin-console .mr-source a:hover { color: var(--navy); }
body.admin-console .mr-offer {
  display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 16px; margin: 16px 0 0; padding: 14px 16px;
  border-radius: var(--radius-sm); background: var(--tint); font-size: .9rem;
}
body.admin-console .mr-offer dt { font-weight: 500; color: var(--muted-2); }
body.admin-console .mr-offer dd { margin: 0; color: var(--text); }

/* The form: in the reader while there are no runs, in the drawer after. */
body.admin-console .mr-form { display: flex; flex-direction: column; gap: 8px; }
body.admin-console .mr-reader > .mr-form { max-width: 560px; }
body.admin-console .mr-label { margin: 6px 0 0; font-size: .8125rem; font-weight: 500; color: var(--muted-2); }
body.admin-console .mr-form textarea { width: 100%; resize: vertical; }
body.admin-console .mr-platforms { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
body.admin-console .mr-off {
  display: flex; align-items: flex-start; gap: 8px; margin: 8px 0 0; padding: 10px 14px;
  border-radius: var(--radius-sm); background: var(--warn-soft); font-size: .875rem; color: var(--amber-dark);
}
body.admin-console .mr-off .ico { flex: none; width: 16px; height: 16px; margin-top: 2px; }
body.admin-console .mr-form-foot { margin-top: 8px; }
body.admin-console .mr-cost { margin: 0 0 10px; font-size: .8125rem; color: var(--muted-2); }
body.admin-console .mr-form-actions { display: flex; flex-wrap: wrap; gap: 8px; }
body.admin-console .mr-form input[type="submit"]:disabled { opacity: .45; cursor: not-allowed; }

/* The drawer: a popover, so the browser draws it in the top layer over the
   header and shuts it on Escape or a click outside. */
body.admin-console .mr-drawer {
  inset: 8px 8px 8px auto; width: min(440px, calc(100vw - 16px)); height: auto; max-height: none; margin: 0;
  padding: 20px 24px 24px; border: 1px solid var(--line); border-radius: 28px;
  background: var(--card); color: var(--text);
}
body.admin-console .mr-drawer:popover-open { display: flex; flex-direction: column; }
body.admin-console .mr-drawer::backdrop { background: rgb(9 9 11 / .45); }
body.admin-console .mr-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
body.admin-console .mr-drawer-head h2 { margin: 0; font-size: 1.125rem; }
body.admin-console .mr-close {
  display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 12px; background: transparent; color: var(--muted-2); cursor: pointer;
}
body.admin-console .mr-close:hover { background: var(--tint); color: var(--navy); }
body.admin-console .mr-close .ico { width: 18px; height: 18px; }
body.admin-console .mr-drawer .mr-form { flex: 1 1 auto; }
/* The narrower column wraps the usual question onto six lines. */
body.admin-console .mr-drawer textarea { min-height: 160px; }
body.admin-console .mr-drawer .mr-form-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }

@media (max-width: 1100px) {
  body.admin-console .mr-split { grid-template-columns: 260px minmax(0, 1fr); }
  body.admin-console .mr-reader { padding: 22px 24px 28px; }
}
/* One pane at a time: the list on the index, the report on its own page. */
@media (max-width: 900px) {
  body.admin-console .mr-split { grid-template-columns: minmax(0, 1fr); }
  body.admin-console .mr-runs { border-right: 0; }
  body.admin-console .mr-split:not(.is-list, .is-reading) .mr-runs { border-bottom: 1px solid var(--line); }
  body.admin-console .mr-split.is-list .mr-reader,
  body.admin-console .mr-split.is-reading .mr-runs { display: none; }
  body.admin-console .mr-all { display: inline-flex; }
  body.admin-console .mr-reader { padding: 20px 18px 24px; }
}
@media (max-width: 640px) {
  body.admin-console .mr-head { flex-direction: column; align-items: stretch; }
  body.admin-console .mr-offer { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  body.admin-console .mr-offer dd + dt { margin-top: 8px; }
}
.fleet-filters { margin-bottom: 16px; }
.search-count { margin-left: auto; font-size: .82rem; color: var(--muted); }

/* Category group headers in the fleet sections. */
.cat-head {
  margin: 16px 0 8px; font-size: .74rem; font-weight: 700; letter-spacing: .06em;
  color: var(--muted-2);
}
/* The fleet list runs sixty-odd businesses over dozens of one- and two-row
   categories, so the header's own margins were most of the page's height.
   Here it is a quiet sub-header row over the rows under it instead: sentence
   case, the label weight, a hairline below, no margins. */
.biz-list .cat-head {
  margin: 0; padding: 14px 12px 6px; border-bottom: 1px solid var(--line);
  font-size: .8125rem; font-weight: 500; letter-spacing: normal;
}
.cat-count {
  display: inline-block; margin-left: 6px; min-width: 1.4em; text-align: center;
  background: var(--tint); border: 1px solid var(--line); border-radius: 999px;
  font-size: .72rem; padding: 1px 5px;
}
/* Under a section's newest fifty cards, the press that draws the rest. */
.zip-more-row { margin: 0; padding: 14px 12px 4px; }

/* ---------- Staff console: the business cards ----------
   The fold is a native <details>, so the summary carries what a closed card
   shows - one row - and needs the browser's default marker switched off.

   CLOSED, A CARD IS A TABLE ROW: no box, a hairline under it, and a tint on
   hover. At 555 businesses a list of three-line boxes was 85,000px tall. */
/* The rows' columns are sized by the list's width, not the window's: from
   641px up the console's sidebar takes 248px of the window. */
.biz-list { display: flex; flex-direction: column; container-type: inline-size; }
/* The scroll-margin keeps the sticky header from parking on top of a card the
   browser jumps to by anchor - a focused one after a row's action, or a plain
   one after a security audit, which sends the anchor alone. */
.biz-card {
  border: 1px solid transparent; border-bottom-color: var(--line); border-radius: 0;
  padding: 0 12px;
  scroll-margin-top: calc(var(--topbar-h) + 17px);
  transition: border-color var(--ease), background var(--ease), box-shadow var(--ease);
}
.biz-card:hover { background: var(--tint); }
/* An open card is an expanded row, tinted between the hairline above it (the
   row or the category header before it) and its own below, so where it ends
   is plain without it becoming a card inside the panel's card. */
.biz-card[open] { padding: 0 12px 14px; background: var(--tint); }
/* The buttons and the info pill are filled with that same gray, so on a tinted
   row they keep the card's fill instead of vanishing into it. A hovered button
   keeps its own look (its ink edge already shows it), and so does every button
   with a fill of its own: primary and paid. */
.biz-card:is(:hover, [open]) .mini-btn:not(.is-primary, .is-paid, :hover:not(:disabled)),
.biz-card:is(:hover, [open]) .pill-info { background: var(--card); }
/* The card an action just finished with, arrived at by anchor. The ring is
   what makes it findable in a column of sixty.

   The highlight fades on its own after a few seconds. It is saying "this one,
   here" to an eye that has just left the flash message, and it has no business
   still shouting at somebody who has been reading the card for a minute -
   while the card stays open, because that part is not decoration.

   prefers-reduced-motion keeps the ring and drops the animation: the marker
   still has to work for somebody who has turned movement off, so it settles at
   the faded end rather than never appearing. */
.biz-card.is-focused {
  border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft);
  animation: biz-focus-fade 5s ease-out forwards;
}
@keyframes biz-focus-fade {
  0%, 55% { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
  100%    { border-color: transparent transparent var(--line); box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  .biz-card.is-focused { animation: none; }
}
.biz-card > summary { display: block; cursor: pointer; user-select: none; list-style: none; border-radius: var(--radius-sm); }
.biz-card > summary::-webkit-details-marker { display: none; }
.biz-card > summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
/* ONE ROW, IN COLUMNS: caret, name and domain, who to ask for, status, tier,
   grade. Fixed tracks, because every summary is a grid of its own and an
   auto track would size to its own row, so the pills would not line up down
   a town. .biz-tags and the grade slot are display: contents, which makes
   each pill a cell of its own; a card with no grade leaves the last cell
   empty.

   nowrap is what keeps every closed card one height. A long name or contact
   truncates instead; the full name is in the title attribute and the open
   card. */
.biz-card > .biz-row {
  display: grid; align-items: center; column-gap: 12px; min-height: 44px;
  grid-template-columns: 1em minmax(0, 3fr) minmax(0, 2fr) 6.5rem 16rem 6.5rem;
}
.biz-id { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.biz-id .site-name { font-weight: 500; color: var(--navy); font-size: .9375rem; margin-right: 8px; }
.biz-id .site-domain a { color: var(--muted-2); font-size: .8125rem; }
.biz-id .site-domain a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.biz-who { font-size: .8125rem; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.biz-tags { display: contents; }
.biz-row .pill {
  display: block; justify-self: start; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; font-weight: 500;
}
/* The status's state as a dot before the word, in the pill's own colour. */
.biz-row .biz-status::before {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px;
  border-radius: 50%; background: currentColor; vertical-align: middle;
}
.biz-opp { display: block; font-size: .86rem; color: var(--amber-dark); margin: 3px 0 0; }
/* In an open card, the pitch over the panel. It is not a state, so it is ink
   rather than amber. */
.biz-card .biz-opp { display: flex; align-items: flex-start; gap: 8px; margin: 4px 0 8px; color: var(--text); }
.biz-card .biz-opp .ico { width: 1.05em; height: 1.05em; flex: none; margin-top: .15em; color: var(--muted-2); }
/* Under 954px of list it is too narrow for five columns, so who to ask for goes (the
   open card has it) and the name takes the room. */
@container (max-width: 954px) {
  .biz-card > .biz-row { grid-template-columns: 1em minmax(0, 1fr) 6.5rem 12rem 6.5rem; }
  .biz-who { display: none; }
}
/* The state of the disclosure, as a glyph: same size, colour and place as the
   static console's caret, flipped by the element that owns the state. */
.biz-caret { flex: 0 0 auto; font-size: .8rem; line-height: 1; color: var(--muted); align-self: center; width: 1em; text-align: center; }
.biz-caret::before { content: "▾"; }
.biz-card[open] .biz-caret::before { content: "▴"; }
.biz-card > summary:hover .biz-caret { color: var(--blue); }
/* The "this is running" overlay. Fixed and full-bleed so nothing underneath
   can be clicked twice while a rebuild is mid-flight, which is the actual job:
   two rebuilds racing would have the second publish over the first. */
.progress-overlay {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--navy) 45%, transparent);
  backdrop-filter: blur(2px);
}
.progress-card {
  background: var(--card); border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  padding: 26px 30px; max-width: 420px; text-align: center;
}
.progress-spinner {
  display: inline-block; width: 26px; height: 26px; margin-bottom: 12px;
  border: 3px solid var(--line); border-top-color: var(--blue);
  border-radius: 50%; animation: progress-spin .8s linear infinite;
}
@keyframes progress-spin { to { transform: rotate(360deg); } }
.progress-text { font-weight: 600; color: var(--navy); margin: 0; }
.progress-note { font-size: .84rem; color: var(--muted); margin: 6px 0 0; }
/* Someone who has asked for less motion gets the card and the words, without
   the spin. */
@media (prefers-reduced-motion: reduce) {
  .progress-spinner { animation: none; border-top-color: var(--blue); }
}
/* The staged bar, for the forms that name their steps (the audit, the
   rebuilds). It replaces the spinner rather than sitting under it. The same
   bar is in site/css/style.css for the marketing audit page. */
.progress-card:has(.stage-bar) .progress-spinner { display: none; }
.stage-bar { position: relative; padding-top: 34px; margin: 14px 0 4px; text-align: left; }
.stage-bar-head { position: absolute; top: 0; transform: translateX(-100%); transition: left .2s linear; }
.stage-bar-pill {
  display: inline-block; white-space: nowrap; padding: 4px 10px; border-radius: 999px;
  background: var(--navy); color: var(--on-blue); font-size: .78rem; font-weight: 600; line-height: 1.3;
}
/* One gap per step, cut out of the track and the fill alike by the mask. The
   extra 3px pushes the last gap past the end. */
.stage-bar-track {
  position: relative; height: 8px; border-radius: 999px; overflow: hidden; background: var(--line-strong);
  mask: linear-gradient(to right, #000 calc(100% - 3px), transparent 0) 0 0 / calc((100% + 3px) / var(--stages)) 100%;
}
.stage-bar-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--navy); transition: width .2s linear; }
.stage-bar-steps { display: flex; margin: 8px 0 0; padding: 0; list-style: none; }
.stage-bar-steps li {
  flex: 1; min-width: 0; padding-right: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: .74rem; color: var(--muted);
}
.stage-bar-steps .is-current { color: var(--navy); font-weight: 600; }
.stage-bar-steps .is-done { color: var(--green); }
@media (prefers-reduced-motion: reduce) {
  .stage-bar-head, .stage-bar-fill { transition: none; }
}
/* The same card, once the answer is in. A job that ends in something the
   reader wants - so far only the security audit - fills #progress-done and
   the overlay stops being a spinner and becomes a small dialog: the result,
   the report to take away, and the way out. Everything that described the
   WAIT goes, because "this takes about 20 seconds" beside a finished answer
   reads as though it is still running. Empty is the normal state, and an
   empty slot must take up no room. */
.progress-done:empty { display: none; }
.progress-overlay.is-done .progress-spinner,
.progress-overlay.is-done .progress-text,
.progress-overlay.is-done .progress-note { display: none; }
.progress-done-text { font-weight: 600; color: var(--navy); margin: 0; font-size: 1rem; }
.progress-done-note { font-size: .84rem; color: var(--muted); margin: 10px 0 0; }
/* The two buttons on one line, centred under the sentence, in the console's
   own quiet button - no new button styling for a popup that shows twice a
   day. They wrap rather than overflow on a narrow window, because the PDF
   label is the longest string either of them can carry. */
.progress-done-actions {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 14px 0 0;
}
/* Download is what the reader waited twenty seconds for, so it is the one
   button on the page that says so; Close stays quiet beside it. */
.mini-btn.is-primary, .button_to button.mini-btn.is-primary {
  background: var(--blue); border-color: var(--blue); color: var(--on-blue);
}
.mini-btn.is-primary:hover, .button_to button.mini-btn.is-primary:hover {
  background: var(--blue-dark); border-color: var(--blue-dark); color: var(--on-blue);
}

/* ---------- Staff console: the panel on an open business card ----------
   A white card on the open row's gray: what we know on the left, the plan (or
   a prospect's sign-up) on the right, the actions along the foot. Sized by
   the list's width, like the rows (.biz-list is the container). */
.biz-controls { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.biz-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.biz-col { min-width: 0; padding: 18px 20px; }
.biz-col + .biz-col { border-left: 1px solid var(--line); }
.biz-col h3 { margin: 0 0 10px; font-size: .875rem; font-weight: 700; color: var(--navy); }

.biz-facts {
  display: grid; grid-template-columns: 5.25rem minmax(0, 1fr); gap: 9px 12px;
  margin: 0; font-size: .875rem; line-height: 1.45;
}
.biz-facts dt { color: var(--muted-2); }
.biz-facts dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.biz-facts dd.c-bad { color: var(--red); }
.biz-facts .ico { width: 1em; height: 1em; vertical-align: -.1em; color: var(--navy); }

/* One row per plan: the radio, its name, whether it is the one they are on,
   and the price down the right edge. The picked row is tinted; "Current" is a
   word, so neither is said in colour alone. */
.plan-list { border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.plan-opt {
  display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 7px 12px; margin: 0;
  font-size: .875rem; font-weight: 400; cursor: pointer; transition: background var(--ease);
}
.plan-opt + .plan-opt { border-top: 1px solid var(--line); }
.plan-opt:hover { background: var(--tint); }
.plan-opt:has(input:checked) { background: color-mix(in srgb, var(--blue) 9%, transparent); }
.plan-opt:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: -2px; border-radius: 6px; }
.plan-opt input { flex: none; width: 16px; height: 16px; margin: 0; accent-color: var(--blue); }
.plan-opt input:focus-visible { outline: none; }
.plan-opt-what { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; }
.plan-opt-name { font-weight: 600; color: var(--navy); }
.plan-opt-current {
  padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: .75rem; color: var(--muted-2);
}
.plan-opt-price { margin-left: auto; color: var(--muted-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan-save { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; }
.plan-dirty { flex: 1 1 10em; margin: 0; font-size: .875rem; color: var(--muted-2); }
.plan-dirty.is-moving { color: var(--navy); }
/* Disabled is the controller's doing, never the server's: with no script the
   button is live and the form still saves - see plan_form_controller.js. */
.plan-save .btn { margin-left: auto; white-space: nowrap; }
.plan-save .btn:disabled { background: var(--line); color: var(--muted-2); cursor: not-allowed; }

/* A prospect's plan and email, in the plan's place. */
.signup-inline { display: grid; gap: 12px; justify-items: start; }
.signup-inline label { width: 100%; margin: 0; font-size: .875rem; font-weight: 400; color: var(--muted-2); }
.signup-inline :is(select, input[type="email"]) { display: block; width: 100%; margin-top: 4px; }

.biz-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); }
/* One height for every control in the row: a link and a <button> otherwise
   take different line-heights, and the row read as ragged. */
.biz-foot .mini-btn, .biz-foot .button_to button.mini-btn {
  line-height: 1.4; padding: 6px 14px; border-color: var(--line-strong); border-radius: 999px; font-size: .8125rem;
}
.biz-end { margin-left: auto; }
/* Red text with no box, so the one that throws a business away never reads as
   one of the row's buttons. */
.biz-foot .biz-end button.mini-btn.is-danger { padding-inline: 8px; border-color: transparent; background: none; color: var(--red); }
.biz-foot .biz-end button.mini-btn.is-danger:hover { border-color: var(--red-line); background: var(--red-soft); color: var(--red); }
/* Why a control is missing, under the ones that are there. Quiet, because it
   is an instruction and not news. */
.biz-hint { margin: 0; padding: 0 20px 14px; font-size: .8125rem; color: var(--muted-2); }
@container (max-width: 674px) {
  .biz-cols { grid-template-columns: minmax(0, 1fr); }
  .biz-col + .biz-col { border-left: 0; border-top: 1px solid var(--line); }
  .biz-col { padding: 14px; }
  .biz-foot { padding: 12px 14px; }
  .biz-facts { grid-template-columns: 4.25rem minmax(0, 1fr); }
  .plan-opt { gap: 8px; padding-inline: 10px; }
  .plan-opt-price { white-space: normal; text-align: right; }
  .biz-hint { padding: 0 14px 14px; }
}
/* A finger's height for each control where there is no pointer. */
@media (pointer: coarse) {
  .plan-opt { min-height: 44px; }
  .biz-foot .mini-btn, .biz-foot .button_to button.mini-btn { padding-block: 11px; }
}
.mini-btn:disabled, .button_to button.mini-btn:disabled {
  opacity: .5; cursor: not-allowed;
}
.mini-btn:disabled:hover, .button_to button.mini-btn:disabled:hover {
  border-color: var(--line); background: var(--bg); color: var(--navy); transform: none;
}

/* A Turbo Frame (_business_row), which is inline until told otherwise. */
.biz-body { display: block; margin-top: 10px; }
.biz-loading { margin: 0; font-size: .82rem; color: var(--muted); }
.chip { background: var(--tint); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; font-size: .78rem; color: var(--muted); white-space: nowrap; }
.chip b { color: var(--navy); font-weight: 600; }
.biz-notes { font-size: .86rem; color: var(--muted); margin: 10px 0 0; }

/* ---------- Staff console: the two build options ----------
   Which of the four templates lays a page out, and whether it is wired up as
   an installable app. They sit with the control that uses them - the Rebuild
   button on the site page, the search form above a page of results - rather
   than on a settings screen, because the question "what kind of business is
   this" is only ever asked while looking at the business.

   The row is deliberately quiet: small labels, a plain select, and the
   submit button as the only thing with any weight in it. It is a modifier on
   an action, not an action of its own. */
.build-opts { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.build-opt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.build-opt-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted-2);
}
/* flex: 0 0 auto is load-bearing. .build-opt is a COLUMN flex box, so the
   `flex: 1 1 150px` that .search-form gives its selects is read in there as a
   HEIGHT of 150px - which is how the "New pages built as" select first
   rendered as a box half a panel tall. Same trap .chat-field documents a few
   hundred lines up; same fix. */
.build-opt select { flex: 0 0 auto; font-size: .84rem; padding: 6px 10px; width: auto; min-width: 0; }
.build-opt-check {
  flex-direction: row; align-items: center; gap: 6px;
  font-size: .84rem; color: var(--muted); white-space: nowrap; padding-bottom: 7px;
}
.build-opt-check input { margin: 0; }
/* The Custom build checklist: a fieldset for its legend, without the
   browser's frame, on a row of its own between the type and the Rebuild
   button. As one more column in the row, its four ticks made it the tallest
   thing there, so the select sank to its foot and the button floated. */
.build-opt.custom-features {
  flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; gap: 4px 16px;
  border: 0; margin: 0; padding: 0;
}
.custom-features legend { padding: 0; margin-bottom: 4px; }
.custom-features .build-opt-check { padding-bottom: 0; }

/* A build-opt that wants the row to itself: the SEO panel's title,
   description and canonical fields are typed answers, not a handful of
   selects, and need the width a shared row would not give them. Text inputs
   already come from base.css at width:100%, so this only has to stop
   .build-opts' flex-wrap from fitting one beside another. */
.build-opt-wide { flex: 1 1 100%; }

/* The auto-configure preview: what is live now against what applying it
   would publish, one row per tag. Two lines under each label rather than a
   two-column table, because "canonical link" and a full https:// address do
   not share a row width comfortably at panel width. */
.seo-compare { display: flex; flex-direction: column; gap: 16px; margin: 4px 0 18px; }
.seo-compare-row dt {
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 4px;
}
.seo-compare-row dd { margin: 0 0 3px; word-break: break-word; }
.seo-compare-current { color: var(--muted); }
.seo-compare-current::before { content: "Live now: "; font-weight: 600; }
.seo-compare-proposed::before { content: "Would become: "; font-weight: 600; }
.seo-compare-unchanged { color: var(--muted); font-style: italic; }

/* In the search form the pair rides at the end of the one-line control row,
   which already wraps; the border marks it off as a modifier on the search
   rather than another search field. */
.build-opts-inline {
  border-left: 1px solid var(--line); padding-left: 14px; margin-left: 4px;
}

@media (max-width: 760px) {
  .build-opts-inline { border-left: 0; padding-left: 0; margin-left: 0; }
}

/* ---------- Staff console: the armed reset ----------
   The one destructive control on the site page, and the only one that
   changes shape before it will do anything. Armed, it reads red and sits in
   a red-tinted well inside an already red-tinted panel, so a page carrying
   an armed reset looks different from the same page a moment ago - which is
   the point of arming it. */
.reset-armed {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--red-soft); border: 1px solid var(--red-line);
  border-radius: var(--radius); padding: 8px 12px;
}
.reset-offline {
  display: flex; align-items: center; gap: 6px;
  font-size: .84rem; font-weight: 600; color: var(--red); white-space: normal;
}
.reset-offline input { margin: 0; }

/* ---------- Staff console: the security audit on a card ----------
   Two pieces, and no panel any more. The grade rides on the card's head as one
   more pill, so a closed card says whether we looked and how it went; the
   buttons that fetch the report sit in the controls row with everything else
   the card does.

   The eighty lines of findings that used to open here are gone - they are the
   report's, and the report is a document rather than a console screen (see
   _audit_panel for the argument, and admin/audits/show.html.erb, which carries
   its own CSS inline because a printed page cannot reach this file). What is
   left is small enough to be swapped in place after a scan, which is what
   stopped an audit from collapsing every other open card. */

/* One flex item holding the audit's own controls, so the Turbo Stream that
   swaps them cannot disturb Remove standing beside them. It wraps internally
   at narrow widths the way the row around it does. */
.audit-slot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.audit-when { color: var(--muted); font-size: .8rem; }
/* A scan that did not finish, said on the card. Red like the other things that
   went wrong, but a sentence rather than a pill: it is an explanation, and the
   button beside it is still there to try again. */
.audit-failed { color: var(--red); font-size: .82rem; flex: 1 1 100%; }

/* The grade's place on the head is held whether or not there is a grade in it,
   so a stream has somewhere to land. `display: contents` is what makes an
   empty one free: the pill inside becomes a cell of the card's row grid
   directly, while an empty slot leaves behind only whitespace, which a grid
   or flex container does not turn into an item. Held open with
   `display: inline` instead, an unaudited card would carry a gap to nothing
   between its pills. */
.audit-grade-slot { display: contents; }

.sites .status.is-live { background: var(--green-soft); color: var(--green); }
.sites .status.is-pending { background: var(--warn-soft); color: var(--amber-dark); }
.sites .client { margin-left: auto; font-size: .82rem; color: var(--muted); }

/* ---------- Owner portal: photos ---------- */
.photo-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.photo-form input[type="text"] { flex: 1 1 220px; width: auto; }
.photos {
  list-style: none;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px; margin-top: 16px;
}
.photos:empty { margin-top: 0; }
.photos li {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--card); display: flex; flex-direction: column;
}
.photos img { width: 100%; height: 130px; object-fit: cover; display: block; background: var(--bg); }
.photos li > span { padding: 9px 10px 4px; font-size: .84rem; color: var(--text); overflow-wrap: anywhere; }
.photos .button_to { padding: 0 10px 10px; }
/* The picture that leads, and the button that makes another one lead.
   Two buttons per card now, so they stack rather than fighting for one row's
   width at 160px - the cards are that narrow on purpose. */
.photos .button_to { padding: 0 10px 0; }
.photos .button_to:last-child { padding-bottom: 10px; }
/* Full width and allowed to wrap: these cards are 160px and a label that
   cannot break is a label that gets clipped on a phone. */
.photos .mini-btn { width: 100%; white-space: normal; }
/* The current main picture states itself instead of offering a button that
   would do nothing. Weighted, because it is the one fact on the card that is a
   status rather than a label. */
.photo-lead { color: var(--text); font-weight: 600; }

/* Their own logo, above the gallery: the current one and the file picker. Not
   a .photos card - an icon is one per site, is shown contained rather than
   cropped, and is not a gallery picture. */
.photo-icon-current { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.photo-icon-current img {
  width: 64px; height: 64px; object-fit: contain; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card); padding: 4px;
}
.note { color: var(--muted); font-size: .85rem; }

/* ---------- Owner portal: coupons ---------- */
.coupon-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
/* Only a box that is the row's own child: on the gift cards page each box
   sits under its label in a .chat-field, a COLUMN flex box that would read
   this flex-basis as a height (the trap .chat-field documents). */
.coupon-form > input[type="text"] { flex: 1 1 200px; width: auto; }
/* The gift cards forms, which share this row: every box under its label, the
   amount's a narrow one, and the button level with the boxes rather than
   with the labels above them. */
.coupon-form .chat-field.coupon-amount { flex: 0 1 110px; }
/* The Hiring row's last-day box: a date is as wide as a date, not a share
   of the row like the words next to it. */
.coupon-form .chat-field.coupon-date { flex: 0 1 170px; }
/* base.css dresses fields by type and a date is not one of them, so the
   last-day box was a bare control half the height of the words beside it:
   with labels on the row, its label sat below theirs. Under its label it
   wears the text boxes' box, as owner_console.css gives a date in a card,
   with 1px less padding above and below: a date's inner field runs 2px
   taller than a line of text in Chromium, and the boxes are to be one
   height. Each post's Edit form draws the same boxes, so its date box is
   dressed the same. */
.coupon-form .chat-field > input[type="date"] {
  width: 100%; padding: 10px 14px; font-family: var(--font-body); font-size: .95rem; color: var(--text);
  background: var(--bg); border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); outline: none;
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}
.coupon-form .chat-field > input[type="date"]:focus { border-color: var(--blue); background: var(--card); box-shadow: 0 0 0 4px var(--ring); }
.coupon-form:has(> .chat-field) { align-items: flex-end; }
/* A small button is 6px shorter than a box: half of that under it centres it
   on the boxes, as it was before the labels. Your team's form does the same. */
:is(.coupon-form, .trainee-form):has(> .chat-field) > [type="submit"] { margin-bottom: 3px; }
/* A post's Edit form saves with a mini button, 16px shorter than a box. */
.coupon-form:has(> .chat-field) > .mini-btn[type="submit"] { margin-bottom: 8px; }
.coupon-form select { width: auto; flex: 0 0 auto; }
/* Coupons moved to the console rows; the Hiring page still lists its posts
   in this shape. */
.coupons { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.coupons:empty { margin-top: 0; }
.coupons li {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg);
  padding: 12px 16px;
}
.coupon-title { font-weight: 600; color: var(--navy); }
.coupon-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .8rem; letter-spacing: .08em;
  background: var(--navy); color: var(--on-blue); padding: 3px 9px; border-radius: 7px;
}
.coupon-when { font-size: .82rem; color: var(--muted); }
/* Pushed right so the state and its buttons read as one group, whatever
   the length of the offer's own text. */
.coupon-state { margin-left: auto; font-size: .82rem; color: var(--muted); }
/* Closed, Edit is one more button in that group. Open, it takes a line of its
   own under the small print, so the form gets the row's full width. */
.coupon-edit > summary { list-style: none; }
.coupon-edit > summary::-webkit-details-marker { display: none; }
.coupon-edit[open] { flex: 1 1 100%; order: 10; }

/* ---------- Owner portal: store ---------- */
.product-edit-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.product-edit-photos { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
/* A Remove box under its picture: the thumbnail on top, the box and its word
   in a row under it. The cover's box has no picture and is just the row. */
.product-edit-check {
  display: grid; grid-template-columns: auto auto; justify-content: start; align-items: center; gap: 4px 6px;
  font-weight: 500; font-size: .82rem; color: var(--muted-2);
}
.product-edit-check img { grid-column: 1 / -1; }
.product-edit-check input { margin: 0; }
/* The Options table: column heads read as the form's own labels (sentence
   case, not .data-table's caps), one row of fields per option. A fieldset
   would otherwise keep its fields' full width on a phone. */
.product-options { border: 0; padding: 0; margin: 0; min-width: 0; }
.product-options legend { padding: 0; margin-bottom: 4px; }
.product-options-table { width: 100%; border-collapse: collapse; }
.product-options-table th {
  text-align: left; font-size: .78rem; font-weight: 600; color: var(--muted-2); padding: 0 8px 4px 0;
}
.product-options-table td { padding: 0 8px 8px 0; vertical-align: middle; }
.product-options-table td:first-child input { min-width: 140px; }
.product-options-table td:last-child { padding-right: 0; white-space: nowrap; }
/* The gift card switch (store part 2d) reads the same way, button and all. */
.store-stripe-status, .store-gift-cards { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ---------- Owner portal: order inbox ---------- */
.order-customer { margin: 8px 0; font-size: .9rem; color: var(--muted); }
.order-no { display: block; font-weight: 600; color: var(--navy); }
.order-fulfillment, .order-pay-note {
  display: block; margin-top: 3px; font-size: .8125rem; color: var(--muted-2);
}
.order-discount { margin: 8px 0 0; font-size: .8125rem; color: var(--muted); }
.order-discount code {
  font-size: .75rem; padding: 1px 7px; margin-right: 4px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--tint); color: var(--text);
}
.order-fulfillment { margin: 8px 0 0; }
.order-status { white-space: nowrap; }
.order-pay-note { margin-top: 8px; }
/* A cancelled order stays on the list, quieter. */
.order-row.is-canceled :is(.order-no, .order-customer) { color: var(--muted-2); }

/* The Bookings page: a day heading above each day's bookings. */
.booking-day { font-size: 1rem; margin: 24px 0 0; }

/* ---------- Owner portal: AI chat assistant ---------- */
/* The fields inside these two forms are wrapped in .chat-field now (label
   above input), and .chat-field sizes them: an input rule here would tie on
   specificity, win on being later, and hand a COLUMN flex box a flex-basis it
   reads as a height - which is how the greeting box grew to 260px tall. */
.assistant-greeting-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.assistant-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.assistant-lead { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); white-space: nowrap; }
.assistant-rules { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.assistant-rules:empty { margin-top: 0; }
.assistant-rules li {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg);
  padding: 12px 16px;
}
/* Each row is its own edit form, so the row's fields lay out like the add
   form above them and the whole thing still wraps on a phone. */
.assistant-edit-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; flex: 1 1 100%; }
.assistant-edit-form input[type="text"] { flex: 1 1 160px; width: auto; min-width: 0; }
.assistant-state { margin-left: auto; font-size: .82rem; color: var(--muted); }

/* ---------- Owner portal: chat conversations ---------- */
.chats { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.chat {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 6px;
}
.chat .when { font-size: .8rem; color: var(--muted); margin: 0 0 4px; }
/* Same pill the inbox uses for "New", so one label style means "worth noting". */
.chat .badge {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  background: var(--blue-soft); color: var(--blue); border: 1px solid var(--blue-line);
  border-radius: 999px; padding: 2px 10px; margin-left: 6px;
}
/* The same two-bubble shape the widget itself draws, so a transcript reads the
   way the visitor saw it. */
.chat-line { max-width: 75%; padding: 7px 12px; border-radius: 12px; font-size: .88rem; margin: 0; }
.chat-visitor { background: var(--navy); color: var(--on-blue); align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-assistant { background: var(--card); border: 1px solid var(--line-strong); align-self: flex-start; border-bottom-left-radius: 4px; }

/* ---------- Owner portal: messages ---------- */
.messages { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.message {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); padding: 16px 18px;
  transition: border-color var(--ease), background var(--ease), box-shadow var(--ease);
}
.message:hover { border-color: var(--line-strong); background: var(--card); box-shadow: var(--shadow-sm); }
.message.is-new { border-color: var(--blue-line); background: var(--card); }
.message h2 { font-size: 1rem; margin-bottom: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.message .badge {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  background: var(--blue-soft); color: var(--blue); border: 1px solid var(--blue-line);
  padding: 2px 9px; border-radius: 999px;
}
/* A guess, not a verdict - see SpamHeuristics - so it wears the warn palette
   rather than the danger one: worth a second look, not a reason to distrust
   the message before reading it. */
.message .badge-warn { background: var(--warn-soft); color: var(--amber-dark); border-color: var(--amber-dark); }
.message .when { color: var(--muted); font-size: .8rem; margin: 2px 0 0; }
.message .reply { font-size: .88rem; margin: 6px 0 10px; display: flex; gap: 12px; flex-wrap: wrap; }

/* The rule that keeps a visitor's own line breaks lives in application.css,
   because it is a correctness constraint rather than a look. This is only the
   look. */
.message-body {
  font-size: .93rem;
  border-left: 3px solid var(--line); padding-left: 14px; color: var(--text);
}
/* A voicemail from the text-back number (part 3), under its message. */
.message-voicemail { display: block; width: min(100%, 360px); margin-top: 10px; }

/* ---------- Staff console ---------- */
/* Every "there is nothing to show you, and here is why" line on the search
   page: no query yet, no results, or the service refusing. */
.search-note { color: var(--muted); font-size: .88rem; margin: 0 0 14px; }

/* Whether Google search is switched on, said as a badge next to the invitation
   to use it. Amber is the resting state, green means the key is set. */
.g-mode {
  display: inline-block; font-size: .78rem; font-weight: 700; margin-left: 8px;
  padding: 2px 10px; border-radius: 999px; white-space: nowrap;
  background: var(--warn-soft); color: var(--amber-dark);
}
.g-mode.live { background: var(--green-soft); color: var(--green); }

/* One row, filled edge to edge, with the submit at the end of it. The demo's
   version of this bar sizes every control to its content and lets the submit
   wrap onto a line of its own on a narrower page; that is the second
   deliberate deviation from parity — the wrap left dead space beside the
   fields and orphaned the button.
   nowrap is the load-bearing part: a wrapping flex row breaks a line the moment
   its items' natural widths overflow, and never gets as far as shrinking them.
   Held on one line, the same row gives width up instead. */
.admin-filters { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: nowrap; align-items: flex-end; }
/* Each label-over-control pair is the flex item, so the row's give is shared
   out here rather than on the controls themselves. A select is sized by its
   longest option and may only shrink to a floor; the text fields are the ones
   that grow, so a wide panel has no trailing gap. */
.admin-filters > span { display: flex; flex-direction: column; gap: 4px; flex: 0 1 auto; min-width: 110px; }
.admin-filters > span:has(input[type="search"]) { flex: 1 1 180px; min-width: 130px; }
.admin-filters label { font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
/* Full width of the pair that holds it, and no intrinsic floor of its own: the
   floor belongs to the flex item above, which is what the row actually sizes. */
.admin-filters input:not([type="submit"]), .admin-filters select {
  width: 100%; min-width: 0; background: var(--card); padding: 10px 14px; font-size: .92rem;
}
/* The submit — with the Clear link beside it when a filter is on — is the one
   pair that neither grows nor shrinks: it is as wide as its own buttons. */
.admin-filters .filter-actions {
  flex: 0 0 auto; min-width: 0; flex-direction: row; align-items: center; gap: 10px;
}

/* Zip-code section headers moved with the sections themselves to the
   <details>-based rules near the card block above: the whole header is the
   disclosure now, and this older button_to-based block would fight it. */

/* The console's two write forms: sign a prospect up, and import the backup.
   Both are stacked label-over-field, and neither wants a full-width field on a
   1120px page. */
.signup-form { max-width: 620px; }
.signup-form label { display: block; margin-bottom: 5px; }
.signup-form small { display: block; margin-top: 6px; }
.signup-form p { margin-bottom: 18px; }

.import-summary {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; margin-top: 20px;
}
.import-summary h2 { font-size: 1rem; margin-bottom: 10px; margin-top: 0; }
.import-summary h3 { font-size: .84rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 14px 0 6px; }
.import-summary ul { margin: 0; padding-left: 20px; font-size: .9rem; }

.back-link { display: inline-block; font-size: .88rem; font-weight: 600; margin-bottom: 14px; }

/* ---------- Training: the lesson a trainee opens from their email ----------
   This page has no signed-in reader and no navigation, so its bar carries the
   wordmark and nothing else: a link here would go somewhere a trainee has no
   account for. */
.training-topbar {
  background: var(--card); border-bottom: 1px solid var(--line); padding: 16px 0;
}
/* The wordmark. */
.training-topbar .container { display: flex; align-items: center; justify-content: space-between; }
.training-week {
  font-family: var(--font-head); font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: var(--blue); margin-bottom: 6px;
}
/* Lesson copy is long-form prose rather than app chrome, so it gets a reading
   measure and paragraph rhythm the panels do not otherwise have. */
.training-body-copy p { margin-bottom: 14px; }
.training-body-copy p:last-child { margin-bottom: 0; }
.training-footnote { color: var(--muted); font-size: .85rem; margin-top: 22px; }

/* ---------- Training: the owner's and staff's views of it ---------- */
.trainee-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
/* Your team's two boxes sit under their labels (.chat-field), so the button
   lines up with the boxes, not with the labels above them. */
.trainee-form:has(> .chat-field) { align-items: flex-end; }
.program-meta { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.question-fields {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 14px;
}
.question-fields label { display: block; margin: 10px 0 4px; font-size: .88rem; font-weight: 600; }
.question-fields textarea, .question-fields input[type="text"], .question-fields input[type="number"] { width: 100%; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .panel-grid { grid-template-columns: 1fr; }
  /* Two of three, not one of three. The two numbers an owner is checking stay
     side by side and comparable; the download card, the only one carrying a
     button, takes the full width underneath - it reads better wide than it
     does squeezed into a third column. */
  .site-glance { grid-template-columns: 1fr 1fr; }
  .site-glance > #website-file { grid-column: 1 / -1; }
  .detail-list { grid-template-columns: 1fr; }
  .detail-list dt { border-bottom: none; padding-bottom: 0; }
}
/* Beside a sidebar (901px up) the page's column is 248px narrower than the
   window these rules are written against. So the glance row keeps two cards
   to a line until its column is as wide as a sidebar-less 901px window's
   (853px, which takes a 1149px window here), and its figure is sized as if
   the sidebar's 248px were not part of the window. */
@media (min-width: 901px) {
  body.has-sidebar .glance-value { font-size: clamp(1.6rem, calc(2.6vw - 6.45px), 2rem); }
}
@media (min-width: 901px) and (max-width: 1148px) {
  body.has-sidebar .site-glance { grid-template-columns: 1fr 1fr; }
  body.has-sidebar .site-glance > #website-file { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  /* Below this the filter row cannot hold its controls at a width anyone can
     read, so it stops trying: one control per line, each the full width of the
     panel, which looks deliberate where a half-empty wrapped row does not. */
  .admin-filters { flex-wrap: wrap; }
  .admin-filters > span,
  .admin-filters > span:has(input[type="search"]) { flex: 1 1 100%; min-width: 0; }
}
/* Under 674px of list the columns
   would truncate the name to a few characters, so a card is two lines here:
   the name, then its pills. A readable name beats a tidy column on a narrow
   screen. */
@container (max-width: 674px) {
  .biz-card > .biz-row { grid-template-columns: 1em minmax(0, 1fr); row-gap: 4px; padding: 8px 0; }
  .biz-row > :not(.biz-caret) { grid-column: 2; }
  .biz-tags { display: flex; flex-wrap: wrap; gap: 6px; }
}
@media (max-width: 720px) {
  .photos { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}
@media (max-width: 640px) {
  /* One card per line on a phone. Two columns of a 1.6rem number at 375px
     leaves each about 150px, which breaks "No visitors yet" across three
     lines. */
  .site-glance { grid-template-columns: 1fr; }
  /* The bar holds its one line all the way down now. It was the identity chip,
     the tray and a second row of links that used to make it wrap here; what is
     left is the wordmark, the mail pill, the greeting and the hamburger, which
     is the same four things the website's own header carries on a phone. The
     label and the link row are already gone at 1040. */
}

/* ---------- The lesson document ----------
   The lesson as one document read aloud: every section on the page, the quiz
   as the last of them, one toolbar at the top. It replaced a slide player -
   one card, arrows, dots, the quiz in a second card - after the owner struck
   the arrows out and asked for one section that reads. Two rules survive from
   the player:

   1. The text IS the lesson, so it is set large. Somebody is following a voice
      through three sentences at arm's length; body-copy size is the wrong size
      for that job.
   2. Nothing here needs the controller. The sections are prose with headings,
      the toolbar starts hidden, and a reader with no JavaScript gets the whole
      lesson - so nothing in this block may assume the controller connected. */
/* THE HEAD OF A LESSON OR A SECTION. One eyebrow line, one heading, and
   nothing under it but the thing itself.

   WHAT WAS TAKEN OUT, because the owner asked for the duplicate information
   and the wasted space to go: the lesson page printed its title, then its
   summary, then a section whose heading was the title and whose text was the
   summary - the same two facts three times - inside 22px of stacked margin.
   The summary is now only the opening section's text, and the section page
   names the lesson once, in the link back to it. */
/* ---------- A LESSON: cover, contents, steps, prose, checks, test ----------
   One vocabulary for both doors - the emailed lesson (layouts/training) and
   the signed-in course (layouts/lms) render the same partials. Everything is
   white cards with hairlines on the page gray, as DESIGN.md has it: ink is
   the one action colour and green is for what is done. */

/* The eyebrow: a way back and where you are, in one quiet line. */
.lesson-head { margin: 0 0 18px; }
.lesson-head h1 { margin: 0; font-size: 1.7rem; line-height: 1.2; }
.lesson-eyebrow {
  display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center;
  font-size: .84rem; font-weight: 500; color: var(--muted); margin: 0 0 12px;
}
.lesson-eyebrow-link { color: var(--muted); text-decoration: none; }
.lesson-eyebrow-link:hover { color: var(--blue); }
.lesson-eyebrow-sep { color: var(--faint); }
.lesson-eyebrow-tag {
  padding: 2px 10px; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: .76rem; font-weight: 500; color: var(--muted-2);
}

/* THE COVER. What the lesson is, how long it takes, how far this reader has
   got, and one button into it. The summary is the lead paragraph here - it
   used to be a page of its own called Overview. */
.lesson-cover {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; margin-bottom: 16px;
}
.lesson-cover h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.2; margin: 0 0 12px; }
.lesson-lead { font-size: 1.125rem; line-height: 1.55; margin: 0 0 18px; max-width: 62ch; }
.lesson-facts {
  display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none;
  margin: 0 0 20px; padding: 0; font-size: .88rem; color: var(--muted);
}
.lesson-facts li { display: inline-flex; align-items: center; gap: 14px; }
.lesson-facts li + li::before { content: ""; width: 4px; height: 4px; border-radius: 999px; background: var(--line-strong); }
.lesson-progress { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; max-width: 420px; }
.lesson-progress .lms-progress { flex: 1 1 auto; }
.lesson-progress-label { font-size: .85rem; font-weight: 500; color: var(--muted); white-space: nowrap; }

/* THE CONTENTS: one row per section in a card, numbered, with a tick where
   the number was once it is read. No line through a finished row: a tick
   says "done", a strikethrough says "deleted". */
.lesson-index {
  list-style: none; margin: 0; padding: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.lesson-index-row + .lesson-index-row { border-top: 1px solid var(--line); }
.lesson-index-link {
  display: flex; align-items: center; gap: 16px; padding: 14px 24px;
  text-decoration: none; color: var(--navy); transition: background var(--ease);
}
.lesson-index-link:hover { background: var(--blue-soft); }
.lesson-index-n {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--line-strong); font-size: .8rem; font-weight: 600; color: var(--muted);
}
.lesson-index-n .lms-state svg { width: 16px; height: 16px; }
.lesson-index-done .lesson-index-n { border-color: var(--green-line); background: var(--green-soft); }
.lesson-index-started .lesson-index-n { border-color: var(--navy); background: var(--navy); color: var(--on-blue); }
.lesson-index-title { flex: 1 1 auto; min-width: 0; font-size: .98rem; font-weight: 600; line-height: 1.35; }
.lesson-index-done .lesson-index-title { color: var(--muted); font-weight: 500; }
.lesson-index-state { flex: 0 0 auto; font-size: .8rem; color: var(--muted); }
.lesson-index-started .lesson-index-state { color: var(--navy); font-weight: 600; }

/* A SECTION'S HEAD: the way back, where you are, the sections as a row of
   bars, and the section's own title as the page heading. */
.lesson-head-section { margin-bottom: 16px; }
.lesson-step {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin: 0 0 10px; font-size: .84rem; font-weight: 500; color: var(--muted);
}
.lesson-step .lms-state svg { width: 15px; height: 15px; vertical-align: -3px; }
.lesson-steps { display: flex; gap: 4px; list-style: none; margin: 0 0 18px; padding: 0; }
.lesson-steps li { flex: 1 1 0; height: 4px; border-radius: 999px; background: var(--line-strong); }
.lesson-steps li.is-done, .lesson-steps li.is-here { background: var(--navy); }
.lesson-head-section h1 { font-size: 1.5rem; }

/* Previous/next under a section. Pushed apart so "Back" and "Next" are at
   the two ends of the measure, which is the shape every reader already has
   the muscle memory for. */
.lesson-nav {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  justify-content: space-between; margin-top: 18px;
}

/* ---------- ONE SECTION, READ ALOUD ---------- */

/* The card. Nothing here needs the controller: the section is prose, the
   listen row starts hidden, and a reader with no JavaScript gets the whole
   lesson. clip rather than hidden keeps the corners without making the card
   a scroll container for a sticky child to stick to. */
.lesson-read {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: clip;
}
.lesson-section { padding: 28px 32px; }

/* THE PROSE. Paragraphs, a list of points, an example in a box - see
   TrainingLesson::SectionBody - at a reading size, with room between them. */
.slide-text { font-size: 1.06rem; line-height: 1.65; color: var(--text); }
.slide-text > * + * { margin-top: 16px; }
.slide-text p { margin: 0; }
.lesson-list { margin: 0; padding: 0 0 0 1.3em; }
.lesson-list li { padding-left: 6px; }
.lesson-list li + li { margin-top: 10px; }
.lesson-list li::marker { color: var(--faint); }
/* The example: what the scammer said, set apart on the page gray, then what
   happened. A tinted panel inside the card, not a card inside a card. */
.lesson-example {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 20px;
}
.lesson-example-quote { font-weight: 600; color: var(--navy); }
.lesson-example p + p { margin-top: 6px; font-size: .98rem; color: var(--muted); }

/* THE WORD BEING READ. A soft highlight behind it and nothing else moving:
   the eye follows a cursor, and a cursor that also changed weight or colour
   would make the line jump on every word. */
.slide-word { border-radius: 4px; padding: 0 2px; margin: 0 -2px; transition: background .12s ease-in; }
.slide-word.is-spoken { background: var(--blue-soft); box-shadow: 0 0 0 1px var(--blue-line); }
/* WHERE THE VOICE STOPPED LAST TIME. An underline rather than a fill, because
   it means "you were here", not "this is being said". */
.slide-word.is-stopped { border-bottom: 2px solid var(--blue-line); border-radius: 0; }

/* THE LISTEN ROW, under the words. Quiet on purpose: a hairline above it, a
   small outlined button, and selects that carry no chrome of their own until
   you reach for them. NOT hover-only - a control that only exists once the
   pointer is on it does not exist on a touch screen at all. */
.lesson-listen {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  padding: 10px 32px; border-top: 1px solid var(--line);
}
.listen-play {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-strong); background: transparent;
  font-family: inherit; font-size: .8rem; font-weight: 600; color: var(--muted);
  transition: color var(--ease), border-color var(--ease), background var(--ease);
}
.listen-play:hover { color: var(--blue); border-color: var(--blue); background: var(--blue-soft); }
.listen-play:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
/* Reading: the one moment this row is allowed to be the loud thing on the
   page, because something is happening and stopping it has to be findable. */
.listen-play[aria-pressed="true"] {
  color: var(--on-blue); border-color: var(--blue); background: var(--blue);
}
.listen-ico { width: 12px; height: 12px; flex: 0 0 auto; }
/* One glyph at a time, keyed off the state the button already announces. */
.listen-play[aria-pressed="true"] .ico-play,
.listen-play:not([aria-pressed="true"]) .ico-pause { display: none; }
/* Speed and voice, pushed to the far end. Set once and then left alone, so
   they earn the quietest treatment on the page until the pointer or the
   keyboard arrives. */
.listen-opts { display: inline-flex; align-items: center; gap: 14px; margin-left: auto; }
.listen-opts label {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .76rem; color: var(--muted);
}
.listen-opts select {
  font-family: inherit; font-size: .76rem; padding: 3px 5px;
  border: 1px solid transparent; border-radius: 6px;
  background: transparent; color: var(--muted);
  max-width: 8.5rem; text-overflow: ellipsis;
  transition: color var(--ease), border-color var(--ease), background var(--ease);
}
.listen-opts select:hover,
.listen-opts select:focus {
  color: var(--text); border-color: var(--line); background: var(--card);
}
.slide-note { margin: 10px 32px; font-size: .82rem; color: var(--muted); }

/* A PICTURE EXAMPLE, under the words that describe it. Framed and captioned
   like a figure in a manual, never full-bleed: it is evidence beside the text,
   not a hero image. */
.lesson-figure { margin: 18px 0 0; }
.lesson-figure img {
  display: block; max-width: 100%; max-height: 460px; object-fit: contain;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg);
}
.lesson-figure figcaption { margin-top: 8px; font-size: .88rem; color: var(--muted); line-height: 1.5; }

/* Present only when a deck was uploaded, and FOLDED AWAY: the words are the
   lesson and the deck is the reference behind it. 16:10 once opened. */
.slide-deck-frame { border-top: 1px solid var(--line); }
.slide-deck-frame > summary {
  cursor: pointer; padding: 11px 32px; font-size: .86rem; font-weight: 600; color: var(--muted);
}
.slide-deck-frame > summary:hover { color: var(--blue); }
.slide-deck-frame iframe {
  display: block; width: calc(100% - 64px); aspect-ratio: 16 / 10; margin: 0 32px 24px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg);
}

/* ---------- THE QUICK CHECK UNDER A SECTION ---------- */

/* A card of its own under the prose, so a reader can tell where the lesson
   stops and the check begins - and skip it, which the pill says they may. */
.quick-check {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 32px 28px; margin-top: 16px;
}
.quick-check-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: 1rem; margin: 0 0 14px;
}
/* Says that this one is free to get wrong. A reader who thinks a check is
   being marked will not use it to find out what they missed. */
.quick-check-note {
  font-size: .74rem; font-weight: 500; color: var(--muted);
  padding: 2px 9px; border: 1px solid var(--line-strong); border-radius: 999px;
}
.quick-check-questions, .quick-check-results { list-style: none; margin: 0; padding: 0; }
.quick-check-question + .quick-check-question { margin-top: 16px; }
.quick-check-question fieldset { border: 0; margin: 0; padding: 0; }
.quick-check-question legend { font-size: .95rem; font-weight: 600; line-height: 1.4; margin-bottom: 8px; padding: 0; }
.quick-check-form input[type="submit"] { margin-top: 6px; }

/* An answer is a row you can click anywhere on, for the check and for the
   test alike: a 1.5px edge at rest, ink when picked. */
.quick-check-choice, .quiz-choice {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; margin: 0 0 8px;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--bg);
  font-size: .95rem; line-height: 1.4; cursor: pointer;
  transition: border-color var(--ease), background var(--ease), box-shadow var(--ease);
}
.quick-check-choice:hover, .quiz-choice:hover { border-color: var(--blue); background: var(--card); }
.quick-check-choice:has(input:checked), .quiz-choice:has(input:checked) {
  border-color: var(--blue); background: var(--card); box-shadow: inset 0 0 0 1px var(--blue);
}
.quick-check-choice input, .quiz-choice input { margin-top: 4px; flex: 0 0 auto; accent-color: var(--blue); }

.quick-check-score {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 12px; font-size: .95rem; font-weight: 600; color: var(--muted);
}
.quick-check-score.is-all-right { color: var(--green); }
.quick-check-score .lms-state svg { width: 18px; height: 18px; }
/* Right and wrong said with a bar down the left edge rather than a wash of
   colour: the explanation under a wrong answer is the part worth reading. */
.quick-check-result { padding: 2px 0 2px 14px; border-left: 3px solid var(--line); }
.quick-check-result + .quick-check-result { margin-top: 14px; }
.quick-check-result.is-right { border-left-color: var(--green); }
.quick-check-result.is-wrong { border-left-color: var(--red); }
.quick-check-prompt { margin: 0 0 4px; font-size: .95rem; font-weight: 600; }
.quick-check-answer { margin: 0; font-size: .9rem; color: var(--text); }
.quick-check-why { margin: 4px 0 0; font-size: .88rem; color: var(--muted); line-height: 1.5; }
.quick-check-again { margin: 16px 0 0; }

/* ---------- THE LESSON TEST, AND THE SCORE ---------- */

.quiz-panel .panel-note { margin-bottom: 20px; }
.quiz-question { border: 0; margin: 0 0 24px; padding: 0; }
.quiz-question:last-of-type { margin-bottom: 8px; }
.quiz-question legend {
  display: flex; gap: 12px; align-items: flex-start;
  font-weight: 600; font-size: 1rem; line-height: 1.4; margin-bottom: 12px; padding: 0;
}
.quiz-n {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--navy); color: var(--on-blue); font-size: .78rem; font-weight: 600;
}
.quiz-question .quiz-choice { margin-left: 38px; }

/* THE SCORE, as the first thing on the results page. "3 of 5" rather than
   "60%": a count is what somebody wants after sitting five questions. Both
   are printed, the count first and large, with the same count as a bar. */
.exam-score { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.exam-score-count { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: 1rem; color: var(--muted); }
.exam-score-count strong { font-size: 2.2rem; line-height: 1; font-weight: 600; color: var(--navy); }
.exam-score.is-all-right .exam-score-count strong { color: var(--green); }
.exam-score .lms-state svg { width: 28px; height: 28px; }
.exam-score .lms-progress { max-width: 420px; }
.exam-score .panel-note { margin: 12px 0 0; }

.quiz-results { margin: 0; padding: 0; list-style: none; }
.quiz-result { border-top: 1px solid var(--line); padding: 16px 0; }
.quiz-result:first-child { border-top: 0; padding-top: 0; }
/* Right and wrong on the results page, the same left-edge bar the quick check
   uses, so the two read as one vocabulary rather than two. */
.quiz-result.is-right, .quiz-result.is-wrong { border-left: 3px solid var(--green); padding-left: 14px; }
.quiz-result.is-wrong { border-left-color: var(--red); }
.quiz-result-prompt { font-weight: 600; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.quiz-result-answer { font-size: .93rem; color: var(--muted); margin-top: 4px; }
.quiz-result-why {
  font-size: .93rem; margin-top: 8px; background: var(--bg);
  border-left: 3px solid var(--blue-line); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 10px 14px;
}

@media (max-width: 640px) {
  /* A phone gets the words. The listen row keeps its one line - the button on
     the left, speed and voice on the right - because wrapping it into three
     stacked rows would make the quietest thing on the page the tallest. */
  .lesson-cover { padding: 24px 20px; }
  /* The facts stack on a phone, with no dot left stranded at a line start. */
  .lesson-facts { flex-direction: column; gap: 4px; }
  .lesson-facts li + li::before { display: none; }
  .lesson-section { padding: 20px; }
  .lesson-listen { padding: 8px 16px; gap: 8px; }
  .listen-opts { gap: 10px; min-width: 0; }
  .listen-opts label > span { display: none; }
  .listen-opts select { max-width: 6.5rem; }
  .slide-note { margin: 10px 20px; }
  .quick-check { padding: 20px; }
  .slide-deck-frame > summary { padding: 10px 20px; }
  .slide-deck-frame iframe { width: calc(100% - 40px); margin: 0 20px 16px; }
  .lesson-head h1 { font-size: 1.35rem; }
  .lesson-index-link { padding: 12px 16px; gap: 12px; }
  .lesson-nav .btn { flex: 1 1 auto; }
  .quiz-question .quiz-choice { margin-left: 0; }
}

/* ---------- Admin console: the lesson form's picture rows ---------- */
.picture-rows { list-style: none; margin: 0 0 16px; padding: 0; }
.picture-row {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px;
  padding: 10px 0; border-top: 1px solid var(--line); font-size: .92rem;
}
.picture-row:first-child { border-top: 0; }
.picture-row .panel-note { margin: 0; flex: 1 1 100%; }
.picture-row label { font-size: .88rem; }

/* ---------- Admin console: users ---------- */

/* The role pill. There is no free-standing .badge in this stylesheet - the
   two that exist are scoped to .chat and .message - so this
   one is scoped too rather than being promoted to a global. Promoting it would
   mean three call sites silently inheriting whatever the next person changes
   here, which is a worse trade than one duplicated rule. The values are copied
   from .message .badge on purpose: one pill shape across the app means one
   thing, "worth noting". */
.user-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; overflow-wrap: anywhere; margin-bottom: 10px; }
.user-title .badge {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  background: var(--blue-soft); color: var(--blue); border: 1px solid var(--blue-line);
  padding: 2px 9px; border-radius: 999px;
}
/* "Business owner" is the common case, so it gets the quiet variant - a pill
   that shouts on most accounts is a pill that has stopped being a signal. */
.user-title .badge-quiet {
  background: transparent; color: var(--muted); border-color: var(--line-strong);
}

/* The list on top, full width, and the account it opens underneath (Alex,
   2026-11-14). Beside the list, the pane squeezed the list's addresses and
   businesses into ellipses and cut off its own forms at a laptop's width.
   minmax(0, 1fr) so a long address is cut by the row's own ellipsis instead
   of widening the page. */
.user-browser {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start;
}
/* The pane is the turbo-frame itself, which is inline until told otherwise.
   It sits in the page's own flow, nothing sticky and no scroll of its own;
   the frame's autoscroll brings it into view when a row opens it. */
.user-detail { display: block; }
/* The "pick one" box: under the list it is only an empty box to scroll past. */
.user-empty { display: none; }

/* The count beside each group's name in the list. */
.user-count { font-size: .82rem; font-weight: 400; color: var(--muted); }

/* One fact per line, label first. A <dl> would be the semantic shape and it
   fought the optional fields: half of these rows are absent for most accounts,
   and a definition list with holes in it lays out worse than it reads. */
.user-fact { font-size: .9rem; margin: 0 0 6px; display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.user-fact .field-label { flex: 0 0 90px; }
.user-quiet { color: var(--muted); }

/* The forms sit side by side when the pane has room for two and stack when it
   does not. When the pane sat beside the list, a fixed two columns cut the
   second form off at a laptop's width (2026-11-14); auto-fit
   asks the pane's own width rather than the window's. They are separated from
   the facts above by a rule rather than by space, because a card that ends in
   forms needs to say where reading stops and doing starts. */
.user-actions {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 22px;
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line);
}
.user-action h3 { font-size: .92rem; margin-bottom: 6px; }
.user-action form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.user-action .chat-field { flex: 1 1 100%; }
.user-action textarea { width: 100%; }

@media (max-width: 860px) {
  .user-fact .field-label { flex: 0 0 100%; }
}

/* ---------- Town news ---------- */
/* The body of an issue is HTML typed by hand, so the box it is typed into is
   monospace: a proportional font hides a missing </li> in a way a fixed-width
   one does not. Same family the coupon code wears, which is the only other
   place in this console that prints characters rather than words. */
.issue-body {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .82rem; line-height: 1.5; white-space: pre;
}
/* The preview, which is the one place this console renders that column as
   HTML - and only ever through TownIssue#safe_body_html, never html_safe.
   Dressed to read like the newsletter rather than like the console: the
   generated page and the email both bring their own type, and what a reader
   here is checking is the words and the structure. */
/* The test send's address box shares its row with the label and the button
   (.panel-actions is the flex row); the base rule's width: 100% would put
   it on a line by itself. */
.issue-test-form input[type="email"] { flex: 1 1 240px; width: auto; min-width: 0; }
/* A composed issue carries its own dark ink inline, as the email does, so the
   preview is the email's white page in either mode, like .editor-canvas. Its
   headings and links get the browser's colours back, not the console's, which
   are near-white in dark mode: an issue with no inline colour would vanish. */
.issue-preview { border-left: 3px solid var(--line); padding: 16px; background: #fff; color: #222; }
.issue-preview :is(h1, h2, h3, h4) { color: revert; }
/* Ink and underlined, as NewsletterMailer#ink_links writes them. An inline
   colour from a pasted issue still wins. */
.issue-preview :is(a, a:hover) { color: #09090b; text-decoration: underline; }
/* .app-main h1 + p greys a page's subtitle; in a pasted issue that is just
   the paragraph after its h1, and grey on this white page is unreadable. */
.issue-preview h1 + p { color: inherit; font-size: inherit; }
.issue-preview h2 { font-size: .95rem; margin: 18px 0 6px; }
.issue-preview h2:first-child { margin-top: 0; }
.issue-preview p { margin: 0 0 12px; }
/* The base reset zeroes list padding, and an ol's numbers sit in that padding. */
.issue-preview :is(ul, ol) { margin: 0 0 12px; padding-left: 28px; }
.issue-preview li { margin-bottom: 6px; }

/* The Daily's issue page: the email at its real 720px, the status rail beside
   it once there is room. Sized by the column, not the window, because the
   console's sidebar takes its share. Colours are the mail's, the same in dark
   mode, so they are literals like .issue-preview's. */
.issue-page { container-type: inline-size; }
.issue-layout { display: grid; grid-template-columns: minmax(0, 720px); gap: 24px; align-items: start; }
@container (min-width: 900px) {
  .issue-layout { grid-template-columns: minmax(0, 720px) 300px; }
  .issue-rail { grid-column: 2; grid-row: 1; }
  .issue-mail { grid-column: 1; grid-row: 1; }
}
.issue-rail { padding: 24px; overflow-wrap: anywhere; }
.issue-rail-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.issue-rail .user-fact { margin-bottom: 12px; }
.issue-rail .user-fact .field-label { flex: 0 0 100%; }
.issue-test { margin-top: 16px; padding-top: 4px; border-top: 1px solid var(--line); }
.issue-test summary { display: flex; align-items: center; min-height: 44px; font-size: .875rem; font-weight: 500; cursor: pointer; }
.issue-mail { min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 20px; }
.issue-mail-head { padding: 32px 28px 28px; background: #18181b; font-family: Arial, Helvetica, sans-serif; }
.admin-console .app-main .issue-mail-head h1 { margin: 0; font-size: 2rem; line-height: 1.15; font-weight: 700; color: #fff; }
.admin-console .app-main .issue-mail-head h1 + p { margin: 10px 0 0; font-size: 1rem; line-height: 1.5; color: #d4d4d8; }
.issue-mail .issue-preview {
  border-left: 0; padding: 4px 28px 32px; color: #18181b;
  font-family: Arial, Helvetica, sans-serif; font-size: 15px; line-height: 1.55;
}
.issue-mail .issue-preview h2 { font-size: 18px; line-height: 1.3; margin: 24px 0 8px; }
/* The Daily's header picture, the card's full width under the masthead. */
.issue-mail-header { display: block; width: 100%; height: auto; }
.issue-mail .issue-mail-header:not([hidden]) + .issue-preview { padding-top: 24px; }
/* The Daily's edit form (design B, 2026-11-08): the fields on one white
   card, the email beside them as an inbox shows it, and Save in a bar that
   stays at the foot of the window. The email under the fields until the
   column has room for both. */
.issue-form-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.admin-console .app-main .issue-form-head h1 { margin: 0; }
.issue-form.issue-form-daily { grid-template-columns: minmax(0, 1fr); gap: 20px; }
.issue-fields { min-width: 0; padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; }
.issue-form-daily .field { margin-bottom: 22px; }
.issue-form-daily .field:last-child { margin-bottom: 0; }
.issue-form-daily .field > label { font-size: .8125rem; font-weight: 500; color: var(--text); }
.issue-form-daily :is(input[type="text"], input[type="url"], input[type="email"], select, textarea) {
  padding: 9px 12px; background: var(--card); border-width: 1px; font-size: .9375rem;
}
.issue-hint { margin: 6px 0 0; font-size: .8125rem; line-height: 1.45; color: var(--faint); }
.issue-icon { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* A name kept for screen readers and tests, off screen. */
.issue-tool-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.issue-picture { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.issue-picture-thumb { width: 72px; aspect-ratio: 40 / 21; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.issue-picture-pick { position: relative; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.issue-picture-pick input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.issue-picture-pick:focus-within { box-shadow: 0 0 0 4px var(--ring); }
.issue-form-daily .issue-picture input[type="url"] { flex: 1 1 200px; width: auto; }

/* The body box and its toolbar as one framed editor: one row of icons. */
.issue-editor { border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.issue-editor:focus-within { box-shadow: 0 0 0 4px var(--ring); }
.issue-editor .editor-toolbar { gap: 2px; margin: 0; padding: 6px; align-items: center; background: var(--card); border-bottom: 1px solid var(--line); }
.issue-editor .editor-toolbar button {
  position: relative; display: grid; place-items: center; width: 34px; height: 32px; padding: 0;
  border: 0; border-radius: 8px; background: transparent; color: var(--muted-2);
}
.issue-editor .editor-toolbar button:hover { background: var(--bg); color: var(--text); }
.issue-editor .editor-toolbar .issue-hint { margin: 0 0 0 6px; }
.issue-tool-gap { width: 1px; height: 18px; margin: 0 4px; background: var(--line); }
.issue-editor .panel-hint { margin: 0; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.issue-editor .editor-canvas { border: 0; border-radius: 0; }
.issue-editor .editor-canvas:focus { box-shadow: none; }

/* The preview, framed as a mail client: three dots, the envelope, then the
   message on the inbox's grey. */
.issue-form-preview { min-width: 0; }
.issue-inbox { overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 20px; }
.issue-inbox-bar { display: flex; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.issue-inbox-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.issue-inbox-envelope { display: grid; gap: 2px; padding: 14px 18px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.issue-inbox-envelope strong { font-size: 1rem; font-weight: 600; color: var(--text); }
.issue-inbox-envelope span { font-size: .8125rem; color: var(--faint); }
.issue-inbox-canvas { padding: 20px; background: #f4f4f5; }

/* Save and the rest at the foot of the window while the form scrolls. Sticky
   rather than fixed, so it stays inside the form its buttons submit. */
.issue-form.issue-form-daily .issue-bar {
  position: sticky; bottom: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 0; padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 -4px 16px rgba(9, 9, 11, .06);
}
.issue-bar-note { flex: 1 1 220px; margin: 0; font-size: .8125rem; color: var(--faint); }
.issue-bar-save { order: 1; }
.issue-form.issue-form-daily .issue-bar input[type="email"] { flex: 0 1 220px; width: auto; padding: 7px 12px; font-size: .875rem; }

/* On a phone the bar would take a third of the screen; it ends the form there. */
@container (max-width: 640px) {
  .issue-form.issue-form-daily .issue-bar { position: static; box-shadow: none; }
  .issue-inbox-canvas { padding: 12px; }
}
@container (min-width: 1000px) {
  .issue-form.issue-form-daily { grid-template-columns: minmax(360px, 1fr) minmax(0, 720px); }
  .issue-form-preview { position: sticky; top: 16px; }
}

/* ---------- Spacing, targets and measure an impeccable audit found ---------- */

/* The sentences under a heading ran the full width of the container, 150
   characters a line and more. A reading measure, so the eye finds the next line. */
.app-sub, .panel-note, .panel-hint { max-width: 65ch; }

/* .panel > .panel-hint is lifted 6px to tuck it under a heading. Under a row
   of buttons that put the sentence on the buttons. */
.panel-actions + .panel-hint { margin-top: 10px; }

/* Fields stacked in a plain block form had nothing between them, so every
   label sat closer to the box above it than to its own. */
#details form > .chat-field + .chat-field,
#social-links form > .chat-field + .chat-field,
form[action="/settings"] > .chat-field + .chat-field { margin-top: 14px; }
#social-links form > .chat-field + input[type="submit"] { margin-top: 16px; }
/* A web address and a password were drawn the full width of the panel: on a
   desktop, a box 1,090px long for forty characters. 34rem is the width "Your
   details" gives its fields. */
#social-links form > .chat-field,
form[action="/settings"] > .chat-field { max-width: 34rem; }
/* The hint sat flush on the button under it. */
form[action="/settings"] > .field-hint { margin-bottom: 14px; }

/* The account facts were an unstyled <dl>: label and value in the same face,
   size and colour, one under the other. minmax(0, 1fr) and the wrap keep a
   long email inside the panel at 390. */
.settings-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 20px; margin: 0 0 14px; }
.settings-facts dt { color: var(--muted); }
.settings-facts dd { margin: 0; color: var(--navy); overflow-wrap: anywhere; }
.settings-passkeys { list-style: none; margin: 0 0 14px; padding: 0; }
.settings-passkeys li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
/* Two-step sign-in: the setup steps, its QR code and key, and the recovery
   codes page. */
.settings-steps { margin: 0 0 14px; padding-left: 1.25rem; }
.settings-steps > li { margin-bottom: 18px; }
.qr-code.settings-qr { align-items: flex-start; margin: 12px 0; }
.settings-secret { word-spacing: .3em; }
.settings-code-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-top: 8px; }
.settings-code-form input[type="text"] { width: 9rem; }
.settings-codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 8px 16px; list-style: none; margin: 0 0 18px; padding: 0; }
.settings-codes code { font-size: 1rem; }
.settings-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* "Create my free account and run the audit" ran out of its full-width pill. */
.btn-block, input[type="submit"].btn-block { white-space: normal; }

/* ---------- The training licences page ----------
   Its rules lived in lms.css until 2026-11-22, as the note there admitted. One
   assign form above the table (business, course, Assign), and a course block
   per licence: the course and its status on one line, how much of it has gone
   out on the next, the buttons on the last. Cells sit at the top so the
   client's name is level with its first course rather than floating mid-row.
   The selects shrink (ellipsis) rather than the button dropping under them:
   with the sidebar open a laptop leaves the card ~670px, and a select sized to
   its longest option would take all of it. */
/* nowrap on purpose: a wrapping row places its items at their full size
   and drops the button before any shrinking happens; a non-wrapping one
   shrinks the selects first, which is the point of letting them. */
.licence-assign { display: flex; flex-wrap: nowrap; align-items: center; gap: 10px; }
.licence-assign select { flex: 0 1 auto; width: 100%; min-width: 7rem; text-overflow: ellipsis; }
.licence-assign #licence_client_id { max-width: 22rem; }
.licence-assign #licence_program_id { max-width: 14rem; }
.licence-assign [type="submit"] { flex: none; }
/* A phone has no room for three in a row, and a row that will not wrap
   pushes the page sideways: there they stack. */
@media (max-width: 640px) {
  .licence-assign { flex-wrap: wrap; }
  .licence-assign select,
  .licence-assign #licence_client_id,
  .licence-assign #licence_program_id { max-width: none; }
}
.licences-table td { white-space: normal; vertical-align: top; }
.licence-seats { white-space: nowrap; }
.licence-course { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.licence-course + .licence-course { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.licence-course-meta { flex-basis: 100%; color: var(--muted); font-size: .85rem; }
/* The buttons are button_to, so each is a form of its own; without this they
   stack down the cell instead of sitting in a row. Wrapping, so that the third
   (Resend last lesson) drops a line at a laptop's width rather than pushing the
   table past its card. */
.licence-course-actions { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; }
.licence-course-actions form { display: inline; }
/* The Seats cell: the count on one line, then the people (name, address
   under it, a long address broken rather than widening the column), then
   "Add a person" folded shut so the column stays narrow until it is opened;
   open, the three fields stack. */
.licence-people { list-style: none; margin: 6px 0 0; padding: 0; font-size: .85rem; max-width: 13rem; overflow-wrap: anywhere; }
.licence-people li { margin-top: 4px; }
.licence-people .note { display: block; font-size: .8rem; }
.licence-add { margin-top: 8px; }
.licence-add > summary { list-style: none; width: fit-content; }
.licence-add > summary::-webkit-details-marker { display: none; }
.licence-add form { display: grid; gap: 6px; max-width: 13rem; margin-top: 8px; }
.licence-add input:not([type="submit"]) { padding: 6px 9px; font-size: .85rem; }
.licence-add [type="submit"] { justify-self: start; }

/* ---------- The bar's colours ----------
   Navy in both modes, as the website's bar is (site/css/style.css, "The
   bar's colours"): what sits on it is white, and what drops out of it (the
   menus, the account pop-out, the drawer on a narrow screen) keeps the page's
   own colours. Last in the file on purpose: same weight, later wins. */
.app-topbar .logo { color: var(--on-dark); }
.app-topbar .logo span { color: var(--lime); }
.app-context { color: var(--on-band); }
.app-context strong, .app-context a, .app-context a:hover { color: var(--on-dark); }
.app-topbar .nav-signin, .app-topbar .nav-signin:hover, .app-topbar .nav-account[open] > .nav-signin { color: var(--on-dark); }
.app-topbar .nav-signin-who { color: inherit; }
.app-topbar .nav-signin .ico, .app-topbar .nav-signin:hover .ico, .app-topbar .nav-account[open] > .nav-signin .ico { color: var(--on-band); }
.app-topbar .nav-signin:hover, .app-topbar .nav-account[open] > .nav-signin { background: var(--on-dark-soft); }
.app-topbar :is(.logo, .nav-signin, .app-context a, .app-nav-tray-toggle):focus-visible { outline-color: var(--on-dark); }
@media (hover: hover) and (pointer: fine) {
  .app-topbar .nav-account:hover > .nav-signin { color: var(--on-dark); background: var(--on-dark-soft); }
  .app-topbar .nav-account:hover > .nav-signin .ico { color: var(--on-band); }
}
@media (min-width: 1041px) {
  .app-nav-links > a, .app-nav-links .nav-menu > summary { color: var(--on-dark); font-weight: 600; }
  .app-nav-links > a:hover, .app-nav-links .nav-menu > summary:hover { color: var(--on-band); }
  .app-nav-links .nav-menu > summary .ico { color: var(--on-dark); }
  .app-nav-links > a:focus-visible, .app-nav-links .nav-menu > summary:focus-visible { outline-color: var(--on-dark); }
}
/* A phone: the heavier wordmark gives way to the account's name beside it. */
@media (max-width: 480px) { .app-topbar .logo { font-size: .95rem; } }
