/* Garage door service requests. Mobile first: the base rules are for phones, media queries add room. */

/* The app's original tokens, light then dark: Classic's (the customer pages in that look, and
   Settings' preview of them), and under :root the ones Editorial (below, the app's) doesn't set:
   charts, the map, the heat map */
:root, .public.look-classic, .form-preview.look-classic.theme-light, .form-preview.look-classic.theme-system {
  --blue: #1d4e89;
  --blue-dark: #163d6c;
  --blue-soft: #e4ecf7;
  --on-blue: #fff; /* text on a blue background */
  --scrim: rgba(20, 28, 40, .6); /* over photos, in both themes */
  --on-scrim: #fff;
  /* Charts (validated for color vision deficiency on these surfaces): one series, a second
     one, the dial's track, and the heat map's steps from none to most */
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-track: #cde2fb;
  --heat-0: #eef0f3;
  --heat-1: #cde2fb;
  --heat-2: #9ec5f4;
  --heat-3: #6da7ec;
  --heat-4: #2a78d6;
  --heat-5: #1c5cab;
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #eef0f3;
  --text: #1c2330;
  --muted: #5b6474;
  --line: #dde1e7;
  --danger: #c0352b;
  --danger-soft: #fdecea;
  --ok: #1f7a4d;
  --ok-soft: #e1f3e9;
  --on-ok: #fff; /* text on a green background */
  --warn: #9a6200;
  --warn-soft: #fdf2dc;
  --violet: #6741b8;
  --violet-soft: #efe9fb;
  --shadow: 0 1px 2px rgba(20, 28, 40, .05), 0 2px 8px rgba(20, 28, 40, .04);
  --radius: 14px;
  --radius-sm: 10px;
  --paper: #ffffff; /* behind a logo, as on paper: the same in both themes */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

/* Dark: chosen (data-theme, from Account for staff pages or Settings for customers' ones), or
   the device's setting unless light was chosen. The two lists must match. */
:root[data-theme=dark], :root[data-theme=dark] .public.look-classic, .form-preview.look-classic.theme-dark {
  --series-1: #3987e5;
  --series-2: #d95926;
  --series-track: #1d3150;
  --heat-0: #20262f;
  --heat-1: #1c3a63;
  --heat-2: #1c5cab;
  --heat-3: #2a78d6;
  --heat-4: #5598e7;
  --heat-5: #9ec5f4;
  --blue: #6fa5e8;
  --blue-dark: #8db8ee;
  --blue-soft: #1a2a40;
  --on-blue: #0f131a;
  --bg: #0f131a;
  --surface: #171c25;
  --surface-2: #20262f;
  --text: #e7ebf1;
  --muted: #9aa4b3;
  --line: #2b323d;
  --danger: #f07a6c;
  --danger-soft: #3a1f1d;
  --ok: #5ccf94;
  --ok-soft: #173326;
  --on-ok: #0f131a;
  --warn: #f0b94f;
  --warn-soft: #3a3020;
  --violet: #b59cf0;
  --violet-soft: #2a2240;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]), :root:not([data-theme=light]) .public.look-classic, .form-preview.look-classic.theme-system {
    --series-1: #3987e5;
    --series-2: #d95926;
    --series-track: #1d3150;
    --heat-0: #20262f;
    --heat-1: #1c3a63;
    --heat-2: #1c5cab;
    --heat-3: #2a78d6;
    --heat-4: #5598e7;
    --heat-5: #9ec5f4;
    --blue: #6fa5e8;
    --blue-dark: #8db8ee;
    --blue-soft: #1a2a40;
    --on-blue: #0f131a;
    --bg: #0f131a;
    --surface: #171c25;
    --surface-2: #20262f;
    --text: #e7ebf1;
    --muted: #9aa4b3;
    --line: #2b323d;
    --danger: #f07a6c;
    --danger-soft: #3a1f1d;
    --ok: #5ccf94;
    --ok-soft: #173326;
    --on-ok: #0f131a;
    --warn: #f0b94f;
    --warn-soft: #3a3020;
    --violet: #b59cf0;
    --violet-soft: #2a2240;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.6rem; line-height: 1.2; margin: 0 0 .5rem; letter-spacing: -.01em; }
h2 { font-size: 1.15rem; margin: 0 0 .75rem; }
h3 { font-size: 1rem; margin: 1.25rem 0 .5rem; }
h3 small { font-weight: 400; color: var(--muted); font-size: .85rem; margin-left: .35rem; }
p { margin: 0 0 .75rem; }
small { font-size: .82rem; }
code { background: var(--surface-2); padding: .1em .35em; border-radius: 5px; font-size: .9em; }
.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow, .narrow { max-width: 760px; }
.main { padding-top: 20px; padding-bottom: 48px; min-height: 60vh; }

/* Top bar */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar-in { display: flex; align-items: center; gap: 12px; min-height: 58px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); font-size: 1.05rem; min-width: 0; margin-right: auto; }
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand .i { color: var(--blue); width: 1.5em; height: 1.5em; }
.brand:hover { text-decoration: none; }
/* The business switcher: the brand opens a list of the signed-in person's other businesses */
.switcher { position: relative; min-width: 0; margin-right: auto; }
.switcher > summary { list-style: none; cursor: pointer; margin-right: 0; padding: 6px 8px; margin-left: -8px; border-radius: var(--radius-sm); }
.switcher > summary::-webkit-details-marker { display: none; }
.switcher > summary:hover, .switcher[open] > summary { background: var(--surface-2); }
.switcher > summary .i:last-child { color: var(--muted); width: 1.1em; height: 1.1em; flex: none; }
.switcher-menu { position: absolute; left: -8px; top: calc(100% + 6px); z-index: 20; width: min(320px, calc(100vw - 24px)); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; }
.switcher-head { margin: 4px 10px 6px; font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.switcher-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: var(--radius-sm); color: var(--text); font-weight: 600; }
.switcher-item:hover { background: var(--surface-2); text-decoration: none; }
.switcher-item span { min-width: 0; }
.switcher-item small { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.switcher-item .i { flex: none; color: var(--muted); }
.switcher-item[aria-current] .i { color: var(--blue); }
/* The account menu: the person's initial, then Account and Sign out */
.profile { position: relative; flex: none; }
.profile > summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 8px 4px 4px; border-radius: 99px; }
.profile > summary::-webkit-details-marker { display: none; }
.profile > summary:hover, .profile[open] > summary { background: var(--surface-2); }
.profile-here > summary { background: var(--blue-soft); color: var(--blue); } /* on Users, Settings or Account */
.profile-menu .switcher-item[aria-current] { background: var(--blue-soft); color: var(--blue); }
.profile-menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 6px; }
.profile > summary > .i { width: 1em; height: 1em; color: var(--muted); }
.avatar { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; overflow: hidden; background: var(--blue-soft);
  color: var(--blue); font-weight: 700; font-size: .9rem; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 52px; height: 52px; font-size: 1.3rem; }
.avatar-xl { width: 88px; height: 88px; font-size: 2.2rem; }
.profile-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .95rem; font-weight: 500; }
.profile-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: min(260px, calc(100vw - 24px)); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; }
.profile-head { margin: 6px 10px 8px; font-weight: 600; overflow-wrap: anywhere; }
.profile-head small { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }
.profile-menu form { margin: 0; }
.profile-menu .linkish { width: 100%; text-align: left; }
@media (max-width: 719px) {
  .profile { order: 1; }
  .topnav { order: 2; flex-basis: 100%; }
}
.top-phone { display: flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.topnav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; max-width: 100%; margin: 0 -8px; padding-bottom: 4px; }
.topnav a, .topnav .linkish { padding: 6px 10px; border-radius: 8px; color: var(--muted); font-weight: 500; white-space: nowrap; font-size: .95rem; }
.topnav a[aria-current] { color: var(--blue); background: var(--blue-soft); }
.topnav a:hover, .topnav .linkish:hover { text-decoration: none; color: var(--text); }
.topnav form { display: flex; }
@media (max-width: 420px) { .topnav a, .topnav .linkish { padding: 6px 7px; font-size: .88rem; } }
.linkish { background: none; border: 0; font: inherit; cursor: pointer; }
@media (min-width: 720px) {
  .topnav { margin: 0; padding: 0; }
}

.footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.footer-in { display: flex; gap: 16px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 28px; }

/* Cards, buttons, forms */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; box-shadow: var(--shadow); min-width: 0; }
@media (min-width: 600px) { .card { padding: 20px 22px; } }
.narrow-card { max-width: 420px; margin: 24px auto; }
/* Logging in at a brand's address: the businesses to choose from */
.signin h1 { margin-top: 0; }
.accounts { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 8px; }
.account { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); color: var(--text); font-weight: 600; font-size: 1.05rem; }
.account:hover { border-color: var(--blue); background: var(--blue-soft); text-decoration: none; }
.account span { min-width: 0; }
.account small { display: block; font-weight: 400; font-size: .88rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account .i { flex: none; color: var(--blue); }
.signup-login { text-align: right; margin: 0 0 8px; color: var(--muted); font-size: .95rem; }
.stack { display: grid; gap: 16px; }
.stack-form { margin-bottom: 16px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--blue); color: var(--on-blue); border: 1px solid var(--blue);
  border-radius: var(--radius-sm); padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer; min-height: 44px; text-decoration: none; }
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--blue); border-color: var(--line); }
.btn-ghost:hover { background: var(--blue-soft); border-color: var(--blue-soft); }
.btn-sm { padding: 6px 12px; min-height: 36px; font-size: .92rem; }
.btn-lg { padding: 12px 26px; font-size: 1.08rem; min-height: 52px; }
.btn-block { width: 100%; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: .75rem; }

.field { display: block; margin-bottom: 14px; font-weight: 600; font-size: .95rem; min-width: 0; }
.field small, .field-label small { font-weight: 400; color: var(--muted); margin-left: .3rem; }
.field-label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  display: block; width: 100%; margin-top: 6px; font: inherit; font-weight: 400; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; min-height: 44px; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
/* Floating labels (the request form): the label sits in the empty field and slides up into its
   border on focus or once filled. The input comes first, with placeholder=" ", for the CSS. */
.float { position: relative; --field-behind: var(--bg); }
.card .float { --field-behind: var(--surface); }
.field.float > input, .field.float > select, .field.float > textarea { margin-top: 0; min-height: 52px; padding: 14px; }
.float > span { position: absolute; left: 10px; top: var(--float-mid, 26px); max-width: calc(100% - 20px); padding: 0 4px; border-radius: 4px; transform: translateY(-50%);
  transform-origin: left center; color: var(--muted); font-weight: 500; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  pointer-events: none; transition: top .15s ease, transform .15s ease, color .15s ease; }
/* select, date and time fields always show something, so their labels stay up */
.float > :focus + span, .float > :not(:placeholder-shown) + span, .float > select + span,
.float > input[type=date] + span, .float > input[type=time] + span {
  top: 0; transform: translateY(-50%) scale(.8); max-width: calc((100% - 20px) / .8); font-weight: 600;
  background: linear-gradient(var(--field-behind) 50%, var(--surface) 50%); }
.float > :-webkit-autofill + span { top: 0; transform: translateY(-50%) scale(.8); font-weight: 600; background: linear-gradient(var(--field-behind) 50%, var(--surface) 50%); }
.float > :focus + span { color: var(--blue); }
.float > :focus + span small { color: inherit; }
.float > textarea::placeholder { color: transparent; }
.float > textarea:focus::placeholder { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .float > span { transition: none; } }
.field-error { display: flex; gap: 6px; align-items: flex-start; color: var(--danger); font-size: .9rem; margin: -6px 0 14px; font-weight: 500; }
.field-error .i { margin-top: .2em; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 16px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--blue); }
.check small { display: block; color: var(--muted); }
.grid-2 { display: grid; gap: 0 16px; }
@media (min-width: 600px) { .grid-2 { grid-template-columns: 1fr 1fr; } .city-zip { grid-template-columns: 2fr 1fr; } }
.fine { color: var(--muted); font-size: .88rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.flash { display: flex; gap: 10px; align-items: flex-start; background: var(--ok-soft); color: var(--ok); border-radius: var(--radius-sm); padding: 12px 14px; margin: 16px 0 0; font-weight: 500; }
.flash .i { margin-top: .15em; }
.flash-error { background: var(--danger-soft); color: var(--danger); }
/* A saved-it message as a toast (app.js): under the top bar, gone after a few seconds */
.toast { position: fixed; z-index: 40; left: 50%; top: 70px; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px);
  margin: 0; align-items: center; background: var(--surface); color: var(--text); border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(20, 28, 40, .16); transition: opacity .25s ease, transform .25s ease; }
.toast .i { color: var(--ok); margin-top: 0; }
.toast.gone { opacity: 0; transform: translate(-50%, -8px); pointer-events: none; }
.toast-close { display: grid; place-items: center; width: 28px; height: 28px; margin: -4px -6px -4px 4px; border: 0; border-radius: 6px;
  background: none; color: var(--muted); cursor: pointer; }
.toast-close:hover { background: var(--surface-2); }
.toast-close .i { color: inherit; width: 14px; height: 14px; }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }
.callout { display: flex; gap: 10px; align-items: flex-start; background: var(--blue-soft); border-radius: var(--radius-sm); padding: 12px 14px; }
.callout .i { margin-top: .2em; color: var(--blue); }
.urgent-callout { background: var(--danger-soft); }
.urgent-callout .i { color: var(--danger); }
.callout-card { border-color: var(--ok); margin-bottom: 16px; }
.callout-card h2 .i { color: var(--ok); }
.password { font: 600 1.25rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 14px; overflow-wrap: anywhere; user-select: all; }

.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 600; padding: 2px 9px; border-radius: 99px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.badge .i { width: 1em; height: 1em; }
.badge.urgent, .badge.overdue { background: var(--danger-soft); color: var(--danger); }
.st-new { background: var(--blue); color: var(--on-blue); }
.st-contacted { background: var(--blue-soft); color: var(--blue); }
.st-quoted { background: var(--violet-soft); color: var(--violet); }
.st-scheduled { background: var(--warn-soft); color: var(--warn); }
.st-completed { background: var(--ok-soft); color: var(--ok); }
.st-cancelled { background: var(--surface-2); color: var(--muted); text-decoration: line-through; }

/* Customer form */
.intro { margin: 8px 0 20px; }
.lead { font-size: 1.08rem; color: var(--muted); }
.call-us { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; background: var(--surface-2); border-radius: var(--radius-sm); padding: 14px 16px; margin-top: 16px; }
.call-us p { margin: 0; flex: 1 1 260px; font-size: 1.05rem; }
.call-us p span { color: var(--muted); }
.btn-call { background: var(--ok); border-color: var(--ok); color: var(--on-ok); min-height: 52px; padding: 12px 22px; font-size: 1.08rem; white-space: nowrap; }
.btn-call:hover { background: var(--ok); border-color: var(--ok); filter: brightness(.92); }
.btn-call .i { width: 1.3em; height: 1.3em; }
@media (max-width: 520px) { .btn-call { width: 100%; } }
.wizard { padding-top: 4px; }
.wizard, .kind-picked, .doors-field, .sales-only { scroll-margin-top: 76px; } /* clear of the sticky top bar */
.wizard fieldset { border: 0; margin: 0; padding: 12px 0 8px; min-width: 0; }
.wizard fieldset + fieldset { border-top: 1px solid var(--line); margin-top: 8px; }
.wizard legend { padding: 0; float: left; width: 100%; }
.wizard legend + * { clear: both; }
.wizard legend h2 { font-size: 1.3rem; margin: 8px 0 14px; }
.wizard legend h2:focus { outline: none; } /* focused by the script when a step opens, for screen readers */

.cards { display: grid; gap: 10px; margin-bottom: 14px; }
@media (min-width: 560px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 760px) { .cards.themes { grid-template-columns: repeat(3, 1fr); } }
.choice { position: relative; display: block; cursor: pointer; min-width: 0; }
.choice input { position: absolute; opacity: 0; inset: 0; pointer-events: none; }
.choice-body { display: grid; gap: 2px; height: 100%; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px 12px 44px; background: var(--surface); position: relative; transition: border-color .12s, background .12s; }
.choice-body::before { content: ""; position: absolute; left: 14px; top: 14px; width: 20px; height: 20px; border: 2px solid var(--line); border-radius: 6px; background: var(--surface); }
.choice input[type=radio] + .choice-body::before { border-radius: 50%; }
.choice input:checked + .choice-body { border-color: var(--blue); background: var(--blue-soft); }
.choice input:checked + .choice-body::before { border-color: var(--blue); background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/14px no-repeat; }
.choice input:focus-visible + .choice-body { outline: 2px solid var(--blue); outline-offset: 2px; }
.choice-body strong { font-weight: 600; }
.choice-body small { color: var(--muted); font-size: .95rem; line-height: 1.4; }
.choice:hover .choice-body { border-color: var(--blue); }
.choice.big .choice-body { padding: 16px 16px 16px 48px; }
.choice.big .choice-body .i { width: 1.6em; height: 1.6em; color: var(--blue); margin-bottom: 4px; }
.choice.big strong { font-size: 1.08rem; }
.choice-urgent input:checked + .choice-body { border-color: var(--danger); background: var(--danger-soft); }
.choice-urgent input:checked + .choice-body::before { border-color: var(--danger); background-color: var(--danger); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; border: 1.5px solid var(--line); border-radius: 99px; padding: 8px 16px; font-weight: 500; background: var(--surface); min-height: 42px; }
.chip input:checked + span { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

.step-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.step-nav [data-next] .i { transform: rotate(180deg); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0; margin: 4px 0 8px; counter-reset: s; }
.steps li { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .8rem; color: var(--muted); font-weight: 500; text-align: center; position: relative; }
.steps li span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--line); font-weight: 700; color: var(--muted); }
.steps li.done span, .steps li.current span { border-color: transparent; }
.steps li.done span { background: var(--ok); color: var(--on-ok); animation: tick-pop .4s ease-out; }
.steps li .tick { display: none; width: 18px; height: 18px; }
.steps li.done b { display: none; }
.steps li.done .tick { display: block; }
.steps li.current { color: var(--text); }
.steps li.current span { background: var(--blue); color: var(--on-blue); }
.steps li::before { content: ""; position: absolute; top: 15px; right: 50%; width: 100%; height: 2px; background: var(--line); z-index: -1; }
.steps li:first-child::before { display: none; }
.steps { position: relative; z-index: 0; }

/* A check that draws itself (the "tick" template): its path is pathLength 1, hidden by the dash
   offset until it animates in */
.tick { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tick path { stroke-dasharray: 1 2; stroke-dashoffset: 1.5; animation: tick-draw .35s .12s ease-out forwards; }
@keyframes tick-draw { to { stroke-dashoffset: 0; } }
@keyframes tick-pop { 0% { transform: scale(.6); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes tick-ring { from { transform: scale(1); opacity: .5; } to { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .tick path { stroke-dashoffset: 0; animation: none; }
  .steps li.done span, .thanks-icon, .thanks-icon::after { animation: none; }
}
.send-nav .btn-lg { margin-left: auto; }
.wizard .fine { margin: 16px 0 0; }

/* Without JavaScript every step shows; with it, one at a time */
html:not(.js) .js-only { display: none !important; }
.js .no-js { display: none; }
.js .wizard .step { display: none; border-top: 0; margin-top: 0; }
.js .wizard .step.active { display: block; }
.js .wizard .topic-group:not(.shown), .js .wizard .sales-only:not(.shown) { display: none; }

/* Repair or new door, once picked: one line with a Change button */
.kind-picked { display: none; align-items: center; gap: 10px; border: 1.5px solid var(--blue); background: var(--blue-soft); border-radius: var(--radius-sm); padding: 8px 8px 8px 14px; margin-bottom: 18px; }
.kind-picked span { display: flex; align-items: center; gap: 8px; margin-right: auto; min-width: 0; }
.kind-picked span:not(.shown) { display: none; }
.kind-picked .i { width: 1.3em; height: 1.3em; color: var(--blue); flex: none; }
.kind-picked .btn { background: var(--surface); }
.kind-picked .btn:hover { border-color: var(--blue); }
.js .kind-collapsed .kind-picked { display: flex; }
.js .kind-collapsed .kind-cards { display: none; }
.js [data-show-for]:not(.shown) { display: none; }

/* Date fields (app.js datePicker): pick from a calendar, no typing */
.date-wrap { position: relative; display: block; }
.field .date-shown { cursor: pointer; caret-color: transparent; padding-right: 40px; background: var(--surface) no-repeat right 12px center / 20px
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d8696' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.datepicker { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; width: 296px; padding: 10px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(20, 28, 40, .2); font-weight: 400; color: var(--text); }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.dp-nav { width: 40px; height: 40px; border: 0; border-radius: 8px; background: none; color: var(--blue); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.dp-nav:hover { background: var(--blue-soft); }
.dp-nav:disabled { opacity: .25; cursor: default; background: none; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-dow { text-align: center; font-size: .75rem; color: var(--muted); padding: 4px 0; }
.day { position: relative; height: 38px; border: 0; border-radius: 8px; background: none; font: inherit; color: var(--text); cursor: pointer; }
/* How many jobs a day has (the jobs page): under its number, in taller days */
.dp-counted .day { height: 46px; padding-bottom: 14px; }
.dp-count { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); min-width: 16px; height: 15px; padding: 0 4px; border-radius: 8px;
  background: var(--blue); color: var(--on-blue); font-size: .66rem; font-weight: 700; line-height: 15px; text-align: center; }
.day[aria-pressed=true] .dp-count { background: var(--on-blue); color: var(--blue); }
.day:hover { background: var(--blue-soft); }
.day[aria-current=date] { color: var(--blue); font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--blue); }
.day[aria-pressed=true] { background: var(--blue); color: var(--on-blue); font-weight: 700; }
.day:disabled { opacity: .3; cursor: default; background: none; }
.datepicker button:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.dp-foot { display: flex; justify-content: space-between; margin-top: 6px; }
.dp-foot button { border: 0; border-radius: 8px; background: none; color: var(--blue); font: inherit; font-weight: 600; padding: 8px 10px; cursor: pointer; }
.dp-foot button:hover { background: var(--blue-soft); }
.dp-picked { align-self: center; margin-right: auto; padding-left: 4px; font-size: .86rem; color: var(--muted); }
.dp-foot [data-done] { background: var(--blue); color: var(--on-blue); }
.dp-foot [data-done]:hover { background: var(--blue-dark); }
/* Days that suit the customer (the scheduling panel): a green dot */
.day.dp-mark::after { content: ""; position: absolute; top: 4px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.day.dp-mark[aria-pressed=true]::after { background: var(--on-blue); }
.dp-legend { display: flex; align-items: center; gap: 6px; margin: 6px 4px 0; font-size: .8rem; color: var(--muted); }
.dp-legend i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
/* Several days picked (the request form): a chip each, × to remove it */
.date-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.date-chips:empty { display: none; }
.date-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 5px 12px; border: 1px solid var(--blue); border-radius: 99px;
  background: var(--blue-soft); color: var(--blue); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.date-chip .i { width: 14px; height: 14px; }
.date-chip:hover { background: var(--surface); }

.thanks { text-align: center; padding: 36px 20px; margin-top: 12px; }
.thanks-icon { position: relative; display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--ok);
  color: var(--on-ok); margin-bottom: 8px; animation: tick-pop .5s ease-out; }
.thanks-icon::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--ok); opacity: 0; animation: tick-ring .8s .3s ease-out; }
.thanks-icon .tick { width: 40px; height: 40px; }
.thanks-icon .tick path { animation-delay: .3s; animation-duration: .45s; }
.thanks h1 { margin: 0 0 4px; }
.thanks .callout { text-align: left; max-width: 480px; margin: 0 auto 16px; }
/* The single-card customer pages (DESIGN.md §6.2): thanks, review, photos, one card at 720px, its
   words and forms in one centred column */
.card.single { max-width: 720px; margin-left: auto; margin-right: auto; }
.card.single > * { max-width: 520px; margin-left: auto; margin-right: auto; }
.public .card.single > .lead { margin: 0 auto 12px; }
.ref-pill { display: flex; width: max-content; max-width: 100%; align-items: center; gap: 12px; margin: 18px auto 22px; padding: 10px 10px 10px 20px;
  border: 1px solid var(--line); border-radius: 99px; background: var(--surface-2); }
.ref-pill .ref-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ref-pill strong { font-size: 1.7rem; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--ink); user-select: all; }
.ref-copy { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.ref-copy:hover { background: var(--surface); color: var(--ink); }
.ref-copy .i { width: 18px; height: 18px; }
.next-steps { text-align: left; margin-top: 8px; margin-bottom: 20px; border-top: 1px solid var(--line); padding-top: 20px; }
.next-steps h2 { font-size: 1rem; margin: 0 0 12px; }
.next-steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: step; }
.next-steps li { counter-increment: step; position: relative; padding: 2px 0 0 40px; min-height: 28px; }
.next-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--ink); }
.btn-big { min-height: 52px; padding: 12px 26px; font-size: 1.05rem; }
.review-page form { margin: 0 0 12px; }
.review-page .fine .linkish { color: var(--blue); padding: 0; text-decoration: underline; }
.feedback-form { text-align: left; max-width: 520px; margin: 0 auto 12px; }
.feedback-form .btn { width: 100%; }
.photo-page #photos { display: grid; gap: 8px; }
.photo-page #photos .file-list { margin: 0; }
.ask-photos { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.ask-photos summary { cursor: pointer; font-weight: 600; color: var(--blue); display: inline-flex; align-items: center; gap: 8px; }
.ask-photos summary .i { width: 1.1em; height: 1.1em; }
.ask-photos[open] summary { margin-bottom: 10px; }
.ask-photos form { margin: 0 0 12px; }
.ask-photos textarea { width: 100%; font: inherit; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; resize: vertical; }
.ask-photos .row-actions { margin: 8px 0 0; }
.review-page .callout { margin-top: 20px; }
.review-choices { display: grid; gap: 10px; max-width: 360px; margin: 8px auto 16px; }
.ask-text { margin-top: 10px; }
.ask-text summary { cursor: pointer; color: var(--blue); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.review-box .linkish { color: var(--blue); padding: 0; text-decoration: underline; }

/* Staff: list */
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.page-head h1 { margin: 0; }
.new-banner { display: flex; gap: 8px; align-items: center; background: var(--blue); color: var(--on-blue); border-radius: var(--radius-sm); padding: 10px 14px; font-weight: 600; }
.new-banner a { color: var(--on-blue); text-decoration: underline; margin-left: auto; }

.filters { display: grid; gap: 0 12px; padding: 16px; margin-bottom: 14px; grid-template-columns: 1fr 1fr; align-items: end; }
.filters .search { grid-column: 1 / -1; }
.filters .field { margin-bottom: 10px; font-size: .85rem; }
.filters .field select, .filters .field input { margin-top: 4px; min-height: 40px; padding: 7px 10px; }
.filters .btn { margin-bottom: 10px; }
.custom-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; grid-column: 1 / -1; }
.search { position: relative; display: block; margin-bottom: 12px; }
.search .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px 10px 40px; min-height: 46px; }
.search input:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
@media (min-width: 900px) {
  .filters { grid-template-columns: 2fr repeat(4, 1fr) auto; }
  .filters .search { grid-column: auto; margin-bottom: 10px; }
  .custom-dates { grid-column: 2 / 4; grid-row: 2; }
}
.js .filters > .btn { display: none; }

.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 10px; scrollbar-width: none; }
.tabs a { display: flex; align-items: center; gap: 6px; padding: 8px 12px; color: var(--muted); font-weight: 600; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { text-decoration: none; color: var(--text); }
.tabs a[aria-current] { color: var(--blue); border-color: var(--blue); }
.tabs .count { font-size: .78rem; background: var(--surface-2); border-radius: 99px; padding: 0 7px; color: var(--muted); }
.seg { display: inline-flex; gap: 2px; padding: 3px; margin-bottom: 8px; background: var(--surface-2); border-radius: 99px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg a { display: flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px; color: var(--muted); font-size: .88rem; font-weight: 600; white-space: nowrap; }
.seg a:hover { text-decoration: none; color: var(--text); }
.seg a[aria-current] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.seg .count { font-size: .78rem; color: var(--muted); }
.seg .has-overdue .count { color: var(--danger); }
.req-list .req-group { padding: 14px 18px 6px; color: var(--muted); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: var(--surface-2); }
.h-sub { display: block; font-size: 1rem; font-weight: 600; color: var(--muted); margin-top: 2px; }
.day-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.day-nav form { flex: 0 1 200px; }
.day-nav .field { margin: 0; }
.day-nav .field input { margin-top: 0; min-height: 36px; padding: 6px 10px; }
.day-nav .next .i { transform: scaleX(-1); }
.job-day { padding: 0; margin-bottom: 14px; } /* not overflow: hidden, or the contact card is cut off */
.job-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px 16px; flex-wrap: wrap; padding: 16px 18px 12px; }
.job-head h2 { margin: 0; }
.job-head .fine { margin: 2px 0 0; }
.routes { display: flex; gap: 8px; flex-wrap: wrap; }
.stops { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.stops li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 18px; }
.stops li + li { border-top: 1px solid var(--line); }
.stops li.done { color: var(--muted); }
.stop-no { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 99px; background: var(--blue); color: var(--on-blue); font-weight: 700; font-size: .9rem; }
.done .stop-no { background: var(--ok-soft); color: var(--ok); }
.stop-no .i { width: 16px; height: 16px; }
.stop-main { flex: 1; min-width: 0; }
.stop-main p { margin: 0 0 2px; overflow-wrap: anywhere; }
.stop-main a[href^="tel:"] { white-space: nowrap; }
.stop-time { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-weight: 700; }
.stop-status { margin-left: auto; }
.stop-long { font-weight: 500; color: var(--muted); font-size: .9rem; }
@media (max-width: 560px) {
  .stops li { padding: 12px 14px; gap: 10px; }
  .routes { width: 100%; }
  .routes .btn { flex: 1 1 auto; }
}
/* Quotes */
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.card-head h2 { margin: 0; }
.quote-list { list-style: none; margin: 0; padding: 0; }
.quote-list li + li { border-top: 1px solid var(--line); }
.quote-list a { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; padding: 10px 0; color: var(--text); }
.quote-list a:hover { text-decoration: none; }
.quote-list a:hover strong { color: var(--blue); }
.quote-list-total { font-weight: 600; font-variant-numeric: tabular-nums; }
.quote-list .badge { margin-left: auto; }
.badge.q-accepted { background: var(--ok-soft); color: var(--ok); }
.badge.q-declined { background: var(--danger-soft); color: var(--danger); }
.badge.q-sent { background: var(--blue-soft); color: var(--blue); }
a.badge:hover { text-decoration: none; }
.quote-doc .quote-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.quote-doc .quote-top p { margin: 0; }
.quote-from { font-size: 1.2rem; font-weight: 700; }
.quote-meta { text-align: right; }
.quote-meta h1 { font-size: 1.3rem; margin: 0 0 2px; }
.quote-for { margin: 0 0 18px; }
.quote-items { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.quote-items th { text-align: left; font-size: .82rem; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.quote-items td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.quote-items .num { text-align: right; white-space: nowrap; }
.quote-items th:first-child, .quote-items td:first-child { padding-left: 0; }
.quote-items th:last-child, .quote-items td:last-child { padding-right: 0; }
.quote-items tfoot td { border-bottom: 0; padding-top: 6px; padding-bottom: 6px; }
.quote-items tfoot .sum-label { text-align: right; color: var(--muted); }
.quote-items .qp-only { display: none; }
.quote-items .quote-total td { font-size: 1.15rem; font-weight: 700; color: var(--text); border-top: 2px solid var(--text); padding-top: 10px; }
.qp-inline { display: none; color: var(--muted); }
.quote-notes { margin: 18px 0 0; white-space: pre-line; color: var(--muted); }
.quote-page { max-width: 720px; margin: 0 auto; display: grid; gap: 16px; }
.quote-page > .callout { margin: 0; }
.callout-ok { background: var(--ok-soft); }
.callout-ok .i { color: var(--ok); }
.quote-answer h2 { margin-top: 0; }
.quote-answer form { margin: 0; }
.decline { margin-top: 14px; }
.decline summary { cursor: pointer; color: var(--muted); text-align: center; padding: 6px; }
.decline[open] summary { margin-bottom: 10px; }
.quote-print { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: space-between; margin: 0; }
@media (max-width: 560px) {
  .quote-items .qp { display: none; }
  .quote-items .qp-only { display: table-cell; }
  .qp-inline { display: block; }
  .quote-meta { text-align: left; }
}
.quote-form h2 { margin-top: 0; }
.quote-lines { display: grid; gap: 8px; margin-bottom: 8px; position: relative; }
.suggest { position: absolute; z-index: 5; list-style: none; margin: 0; padding: 4px; max-height: 300px; overflow-y: auto; max-width: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.suggest li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.suggest li:hover, .suggest li[aria-selected=true] { background: var(--blue-soft); }
.suggest mark { background: none; color: var(--blue); font-weight: 700; }
.suggest-price { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.quote-line { display: grid; grid-template-columns: minmax(0, 1fr) 70px 110px 100px 36px; gap: 8px; align-items: center; }
.quote-line .field { margin: 0; }
.quote-line .field input { margin-top: 0; }
.quote-line-head { font-size: .82rem; color: var(--muted); font-weight: 600; }
.quote-line-head span:nth-child(n+2) { text-align: right; }
.quote-amount { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.quote-line [inputmode=decimal] { text-align: right; }
.icon-btn { border: 0; background: none; color: var(--muted); width: 36px; height: 36px; border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.icon-btn:hover { background: var(--surface-2); color: var(--danger); }
.quote-sums { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; max-width: 280px; margin: 0 0 16px auto; font-variant-numeric: tabular-nums; }
.quote-sums dt { color: var(--muted); text-align: right; }
.quote-sums dd { margin: 0; text-align: right; }
.quote-sums dt:nth-last-child(2), .quote-sums dd:last-child { font-weight: 700; color: var(--text); }
.form-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.quote-items .paid-row td { color: var(--muted); }
.quote-items .balance-row td { border-top-width: 1px; }
.from-quote { margin-bottom: 16px; }
.from-quote h2 { margin-top: 0; }
.use-quote { color: var(--blue); font-weight: 600; white-space: nowrap; }
.pay-list { list-style: none; margin: 0; padding: 0; }
.pay-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; }
.pay-list li + li { border-top: 1px solid var(--line); }
.pay-list form { margin: 0; }
.pay-form .grid-2 { gap: 0 12px; }
.pay-card { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.pay-card .fine { margin: 0; flex: 1 1 260px; }
#payments .facts { margin: 14px 0; }
.copy-box { width: 100%; font: inherit; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; resize: vertical; margin-top: 12px; }
#send hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
#send form { margin: 0 0 6px; }
@media (max-width: 640px) {
  .quote-line-head { display: none; }
  .quote-line { grid-template-columns: 1fr 1fr 36px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  .quote-line .field:first-child { grid-column: 1 / -1; }
  .quote-amount { grid-column: 1 / 3; grid-row: 3; text-align: left; }
  .quote-line .icon-btn { grid-column: 3; grid-row: 2; }
}
@media print {
  /* Paper is always light: the light tokens again, over the dark ones (hence html: to outrank them) */
  html:root, html:root:not([data-theme=light]) { --bg: #ffffff; --surface: #ffffff; --surface-2: #eef0f3; --text: #1c2330; --muted: #5b6474; --line: #dde1e7; }
  .topbar, .footer, .no-print, .crumbs { display: none !important; }
  body { background: var(--bg); color: var(--text); }
  .quote-page .card { box-shadow: none; border: 0; padding: 0; background: none; }
}
.cal-feed { margin-top: 14px; }
.cal-feed h3 { font-size: 1rem; margin: 0 0 8px; }
.copy-row { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.copy-row label { flex: 1; min-width: 0; }
.copy-row input { width: 100%; font: inherit; font-size: .85rem; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 10px; }
.cal-help { margin-top: 16px; }
.cal-help summary { cursor: pointer; font-weight: 600; color: var(--blue); }
.cal-help ul { margin: 8px 0 0; padding-left: 1.2rem; display: grid; gap: 6px; }
.cal-reset { margin-top: 14px; }
.cal-reset .fine { margin: 0 0 8px; }
.result-line { color: var(--muted); font-size: .9rem; }

.req-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.req-list li + li { border-top: 1px solid var(--line); }
.req { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 14px; color: var(--text); }
.req:hover { background: var(--surface-2); text-decoration: none; }
.req > span { min-width: 0; display: flex; flex-direction: column; }
.req small { color: var(--muted); }
.req-id { order: 1; grid-column: 2; text-align: right; font-weight: 600; color: var(--muted); font-size: .9rem; }
.req-who { order: 0; grid-column: 1; grid-row: 1; }
.req-who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.req-what { order: 2; grid-column: 1 / -1; flex-direction: row !important; gap: 6px; align-items: baseline; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block !important; }
.req-when { order: 3; flex-direction: row !important; gap: 8px; align-items: center; flex-wrap: wrap; }
.req-when small .i { width: 1em; height: 1em; }
.req-status { order: 4; align-items: flex-end; flex-direction: row !important; gap: 8px; justify-content: flex-end; }
.kind { color: var(--muted); margin-right: 6px; }
.kind .i { width: 1em; height: 1em; }
.is-new .req-who strong::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); margin-right: 7px; vertical-align: .12em; }
@media (min-width: 900px) {
  .req { grid-template-columns: 110px minmax(150px, 1.2fr) 2fr minmax(150px, 1fr) 170px; align-items: center; gap: 16px; padding: 12px 18px; }
  .req > span { order: 0 !important; grid-column: auto !important; grid-row: auto !important; }
  .req-id { text-align: left; }
  .req-when { flex-direction: column !important; align-items: flex-start; gap: 2px; }
  .req-status { flex-direction: column !important; align-items: flex-end; gap: 2px; }
  .req.inv { grid-template-columns: 110px minmax(150px, 1.4fr) 1fr 1fr 150px; }
}
.inv-money { order: 2; font-variant-numeric: tabular-nums; }
.req.inv .req-status { order: 3; } /* on a phone: the amount, then its badge beside it */
.req.inv .req-when { order: 4; }
.danger-text { color: var(--danger); }

.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; color: var(--muted); font-size: .9rem; }
.empty { text-align: center; color: var(--muted); padding: 36px 20px; }

/* Staff: one request */
.crumbs { margin: 0 0 8px; font-size: .92rem; }
.request-head { margin-bottom: 16px; }
.request-head h1 { margin: 0 0 4px; }
.head-who { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0; color: var(--muted); }
.head-who strong { color: var(--text); }
.head-who .badge { font-size: .82rem; padding: 3px 10px; }
/* What they asked for, the appointment and who's on it: told apart at a glance */
.head-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 24px; margin: 14px 0 0; padding: 12px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.head-facts dt { font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.head-facts dd { margin: 2px 0 0; }
.head-facts .muted { color: var(--muted); }
.head-meta { margin: 8px 0 0; font-size: .86rem; color: var(--muted); }
.detail-grid { display: grid; gap: 14px; }
.detail-main { display: grid; gap: 14px; min-width: 0; }
@media (min-width: 900px) {
  .detail-grid { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
  .detail-side { position: sticky; top: 76px; }
}
/* The customer's phone, email and address: each a row, its actions at the end; on a phone
   the buttons are icons (their words still read out) */
.contact { scroll-margin-top: 84px; } /* clear of the sticky top bar */
.c-rows { display: grid; }
.c-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.c-row + .c-row { border-top: 1px solid var(--line); }
.c-row:first-child { padding-top: 2px; }
.c-row:last-child { padding-bottom: 0; }
.c-val { min-width: 0; overflow-wrap: anywhere; line-height: 1.4; }
.c-val small { display: block; color: var(--muted); font-size: .86rem; }
.c-btns { display: flex; gap: 8px; flex: none; }
/* Copy: shown on hover or keyboard focus; on a touch screen, a long press copies instead */
.c-copy { display: inline-grid; place-items: center; width: 30px; height: 30px; margin: -6px 0 -6px 4px; vertical-align: middle; border: 0;
  border-radius: 6px; background: none; color: var(--muted); cursor: pointer; }
.c-copy .i { width: 15px; height: 15px; }
.c-copy:hover { background: var(--surface-2); color: var(--blue); }
.c-copy { opacity: 0; transition: opacity .12s; }
.c-row:hover .c-copy, .c-copy:focus-visible { opacity: 1; }
@media (hover: none) { .c-copy { display: none; } }
.contact-edit h2 { margin-top: 0; }
.contact-edit .row-actions { margin: 4px 0 0; }
@media (max-width: 560px) {
  .c-btns .btn { width: 44px; padding: 0; }
  .c-btns .btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.photos-block { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.photos-status { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.photos-status h3 { font-size: .95rem; margin: 0; }
.photos-block .req-photos { margin-bottom: 12px; }
.photos-block .ask-photos { margin-top: 0; border-top: 0; padding-top: 0; }
/* Quotes and invoices: one line each while there are none */
.money { display: grid; gap: 12px; }
.money-group + .money-group { border-top: 1px solid var(--line); padding-top: 12px; }
.money-row { display: flex; align-items: center; gap: 4px 12px; flex-wrap: wrap; }
.money-row h2 { margin: 0; font-size: 1rem; }
.money-row .btn { margin-left: auto; }
.money .quote-list { margin-top: 6px; }
/* The scheduling panel */
.wants { display: flex; gap: 8px; align-items: flex-start; margin: -4px 0 16px; padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--surface-2); font-size: .92rem; }
.wants .i { flex: none; margin-top: .15em; color: var(--muted); }
.manage .btn[data-save]:disabled { opacity: .5; cursor: default; }
.preview-link { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; font-size: .92rem; font-weight: 500; }
.preview-link[hidden] { display: none; }
/* Who's free around the arrival time (app.js techPlan): a card each; picking one sets Technician
   and shows their day */
.tech-plan { margin: -4px 0 14px; }
.tech-plan[hidden] { display: none; }
.tp-head { margin: 0 0 6px; font-size: .86rem; font-weight: 600; color: var(--muted); }
.tp-person { margin: 0 0 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.tp-person:has([aria-pressed=true]) { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.tp-pick { display: block; width: 100%; padding: 8px 10px; text-align: left; font: inherit; color: var(--text); background: none; border: 0; cursor: pointer; }
.tp-pick:hover { background: var(--surface-2); }
.tp-pick[aria-pressed=true] { background: var(--blue-soft); }
.tp-name { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 600; }
.tp-state { font-size: .74rem; font-weight: 700; padding: 1px 8px; border-radius: 99px; white-space: nowrap; }
.tp-free { background: var(--ok-soft); color: var(--ok); }
.tp-tight { background: var(--warn-soft); color: var(--warn); }
.tp-busy { background: var(--danger-soft); color: var(--danger); }
.tp-none { background: var(--surface-2); color: var(--muted); }
.tp-line { display: block; font-size: .84rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.tp-line b { color: var(--text); font-weight: 600; }
/* The picked person's day */
.tp-jobs { list-style: none; margin: 0; padding: 4px 10px 8px; border-top: 1px solid var(--line); font-size: .86rem; }
.tp-job { padding: 6px 0 6px 10px; border-left: 3px solid var(--line); margin-top: 4px; line-height: 1.4; }
.tp-job a { font-weight: 600; }
.tp-self { border-left-color: var(--blue); color: var(--blue); font-weight: 600; }
.tp-more { display: block; color: var(--muted); overflow-wrap: anywhere; }
.tp-foot { margin: 2px 0 0; font-size: .8rem; color: var(--muted); }
/* The technician in the header: their photo and name open their contact card */
.tech-card { position: relative; display: inline-block; }
.tech-card > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding: 2px 8px 2px 2px;
  margin: -2px 0 -2px -2px; border-radius: 99px; }
.tech-card > summary::-webkit-details-marker { display: none; }
.tech-card > summary:hover, .tech-card[open] > summary { background: var(--surface-2); }
.tech-card > summary .avatar { width: 26px; height: 26px; font-size: .8rem; }
.tech-card > summary > .i { width: 1em; height: 1em; color: var(--muted); }
.tech-pop { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; width: min(340px, calc(100vw - 32px)); padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(20, 28, 40, .18); }
@media (min-width: 600px) { .head-facts > div:last-child .tech-pop { left: auto; right: 0; } }
.tech-pop-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.tech-pop-head small { display: block; color: var(--muted); font-size: .85rem; }
.tech-pop .c-row:first-child { padding-top: 8px; }
.tech-pop .fine { margin: 8px 0 0; }
/* Account: their photo */
.photo-row { display: flex; align-items: center; gap: 18px; }
.photo-row .fine { margin-top: 0; }
.photo-row .row-actions { margin-bottom: 0; }
/* Phones: Call and Schedule along the bottom */
.action-bar { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; display: flex; gap: 8px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: 0 -4px 14px rgba(20, 28, 40, .06); }
.action-bar .btn { flex: 1; }
body:has(.action-bar) { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
body:has(.action-bar) .unsaved-bar { bottom: calc(78px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) {
  .action-bar { display: none; }
  body:has(.action-bar) { padding-bottom: 0; }
  body:has(.action-bar) .unsaved-bar { bottom: calc(16px + env(safe-area-inset-bottom)); }
}
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.ok { color: var(--ok); font-weight: 600; }
.details { margin: 16px 0 0; padding: 12px 16px; background: var(--surface-2); border-radius: var(--radius-sm); white-space: pre-line; overflow-wrap: anywhere; }
.note-form { margin-bottom: 18px; }
.note-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.note-actions .fine { flex-basis: 100%; margin: 0; }
.attach { position: relative; }
.attach input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; } /* still reachable by keyboard */
.attach:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.file-list { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 6px; }
.file-list li { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border-radius: var(--radius-sm); padding: 6px 6px 6px 8px; min-width: 0; }
.file-list img, .file-list .file-icon { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; flex: none; }
.file-list .file-icon { display: grid; place-items: center; background: var(--surface); color: var(--muted); }
.file-list span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list small { color: var(--muted); white-space: nowrap; }
.file-list button { border: 0; background: none; color: var(--muted); width: 36px; height: 36px; border-radius: 8px; cursor: pointer; display: grid; place-items: center; flex: none; }
.file-list button:hover { background: var(--surface); color: var(--danger); }
.photos-field .attach { margin-top: 2px; }
.req-photos .photo { position: relative; aspect-ratio: 1; }
.req-photos .photo > a { height: 100%; }
.photo-file { display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px; color: var(--muted); font-size: .75rem; text-align: center; overflow-wrap: anywhere; }
.photo-remove { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 99px; background: var(--scrim); color: var(--on-scrim); cursor: pointer; }
.photo-remove:hover { background: var(--danger); }
.photo-remove .i { width: 16px; height: 16px; }
.ev-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; margin-top: 8px; max-width: 520px; }
.ev-photos:empty, .ev-docs:empty { display: none; }
.ev-photos a { display: block; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.ev-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-docs { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; }
.ev-docs a { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; overflow-wrap: anywhere; }
.ev-docs small { color: var(--muted); }
.note-form .field { margin-bottom: 8px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); }
.ev { position: relative; padding: 0 0 16px 14px; }
.ev::before { content: ""; position: absolute; left: -25px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); }
.ev-note::before { background: var(--blue); border-color: var(--blue); }
.ev-created::before { background: var(--ok); border-color: var(--ok); }
.ev-review::before { background: var(--warn); border-color: var(--warn); }
.ev-feedback::before { background: var(--violet); border-color: var(--violet); }
.ev-upload::before { background: var(--ok); border-color: var(--ok); }
.ev-quote::before { background: var(--blue); border-color: var(--blue); }
.ev-alert::before { background: var(--danger); border-color: var(--danger); }
.ev-head { font-size: .88rem; color: var(--muted); }
.ev-head strong { color: var(--text); }
.ev-body { white-space: pre-line; overflow-wrap: anywhere; }
.ev:not(.ev-note):not(.ev-created):not(.ev-feedback):not(.ev-upload) .ev-body { color: var(--muted); font-size: .95rem; }
.manage .field { margin-bottom: 12px; }
.open-hours { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.open-hours legend { padding: 0; margin-bottom: 6px; }
.day-checks { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.day-check { position: relative; cursor: pointer; }
.day-check input { position: absolute; opacity: 0; inset: 0; }
.day-check span { display: block; min-width: 52px; text-align: center; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-weight: 500; }
.day-check input:checked + span { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }
.day-check input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.hours { display: flex; align-items: center; gap: 10px; max-width: 360px; }
.hours input { flex: 1; min-width: 0; }
.review-box { margin-top: 16px; }
.review-box h2 { display: flex; align-items: center; gap: 8px; }
.review-box h2 .i { color: var(--warn); }
.review-box p { margin: 0 0 12px; }
.review-box p:last-child, .review-box .row-actions { margin-bottom: 0; }
.review-good, .review-bad { display: flex; gap: 8px; align-items: flex-start; }
.review-good .i { color: var(--ok); margin-top: .2em; }
.review-bad .i { color: var(--danger); margin-top: .2em; }

/* Staff: users */
.user-list { list-style: none; margin: 0; padding: 0; }
.user-list li + li { border-top: 1px solid var(--line); }
.user-row { display: grid; gap: 8px; padding: 12px 0; align-items: center; }
.user-row .field { margin: 0; }
.user-id { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; min-width: 0; }
.user-id .avatar { width: 28px; height: 28px; font-size: .8rem; }
.user-row .field input, .user-row .field select { margin-top: 0; }
.user-row .check { margin: 0; }
.user-checks, .user-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.user-actions { gap: 8px; }
.inactive { opacity: .65; }
@media (min-width: 900px) {
  .user-row { grid-template-columns: 130px minmax(0, .9fr) minmax(0, 1.3fr) 100px auto auto; }
}
.stack-form h2:not(:first-child) { margin-top: 1.5rem; }
.settings-link { margin-top: 16px; }

/* Dashboard */
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) { .dash-now .kpis { grid-template-columns: repeat(5, 1fr); } }
.kpi { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; min-width: 0; }
.kpi-link { color: var(--text); }
.kpi-link:hover { text-decoration: none; border-color: var(--blue); }
.kpi-alert { border-color: var(--warn); }
.kpi-label { display: flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--muted); font-weight: 500; }
.kpi-alert .kpi-label .i { color: var(--warn); }
.kpi-value { font-size: 1.5rem; font-weight: 650; line-height: 1.2; letter-spacing: -.01em; white-space: nowrap; }
@media (min-width: 600px) { .kpi-value { font-size: 1.9rem; } }
.kpi-delta { font-size: .88rem; font-weight: 600; color: var(--muted); }
.kpi-delta.good { color: var(--ok); }
.kpi-delta.bad { color: var(--danger); }
.kpi-note { font-size: .85rem; color: var(--muted); }
.dash-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .dash-grid { grid-template-columns: 1fr 1fr; } .dash-grid .wide { grid-column: 1 / -1; } }
.dash-grid .card { min-width: 0; }
.dash-grid h3 { font-size: .95rem; margin: 14px 0 6px; }
/* Columns: bars grow from the baseline, ticks under some */
.cols { display: flex; align-items: stretch; gap: 2px; height: 150px; margin: 8px 0 30px; border-bottom: 1px solid var(--line); }
.col { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 0; color: var(--text); }
.col:hover { text-decoration: none; }
.col-bar { width: min(100%, 24px); background: var(--series-1); border-radius: 4px 4px 0 0; }
.col:hover .col-bar { filter: brightness(1.15); }
.col-n { font-size: .8rem; color: var(--muted); margin-bottom: 2px; }
.col-tick { position: absolute; top: 100%; margin-top: 6px; font-size: .75rem; color: var(--muted); white-space: nowrap; }
/* Horizontal bars: label, bar, value */
.bars { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.bars li { display: grid; grid-template-columns: minmax(90px, 40%) 1fr auto; gap: 10px; align-items: center; font-size: .92rem; }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 12px; }
.bar { display: block; height: 100%; min-width: 2px; background: var(--series-1); border-radius: 0 4px 4px 0; }
.bars li:hover .bar { filter: brightness(1.15); }
.bar-value { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
/* Part to whole */
.split { display: flex; gap: 2px; height: 14px; margin: 8px 0 10px; }
.split-seg { flex-basis: 0; min-width: 4px; }
.split-seg:first-child { border-radius: 4px 0 0 4px; }
.split-seg:last-child { border-radius: 0 4px 4px 0; }
.split-seg:only-child { border-radius: 4px; }
.s0 { background: var(--series-1); }
.s1 { background: var(--series-2); }
.legend { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .9rem; }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend .i { color: var(--danger); }
.key { width: 10px; height: 10px; border-radius: 2px; flex: none; }
/* Dials */
.dials { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.dial { margin: 0; text-align: center; }
.dial svg { display: block; width: 100%; max-width: 160px; margin: 0 auto; overflow: visible; }
.dial path { fill: none; stroke-width: 9; stroke-linecap: round; }
.dial-track { stroke: var(--series-track); }
.dial-fill { stroke: var(--series-1); }
.dial-value { display: block; font-size: 1.5rem; font-weight: 650; margin-top: -30px; }
.dial figcaption { display: grid; gap: 2px; margin-top: 8px; font-size: .9rem; }
.dial figcaption span { color: var(--muted); font-size: .85rem; }
/* Heat map */
.heat { display: grid; grid-template-columns: 30px repeat(24, minmax(0, 1fr)); gap: 2px; align-items: center; margin-top: 8px; }
.heat-day { font-size: .75rem; color: var(--muted); }
.heat-hour { grid-column: span 3; font-size: .7rem; color: var(--muted); }
.heat-cell { display: block; aspect-ratio: 1; border-radius: 2px; background: var(--heat-0); }
.heat-cell:hover { outline: 1px solid var(--text); }
@media (min-width: 600px) { .heat .heat-cell { aspect-ratio: auto; height: 20px; } }
.h1 { background: var(--heat-1); } .h2 { background: var(--heat-2); } .h3 { background: var(--heat-3); }
.h4 { background: var(--heat-4); } .h5 { background: var(--heat-5); }
.heat-scale { display: flex; align-items: center; gap: 3px; }
.heat-scale .heat-cell { width: 12px; }
/* Figures and tables */
.stats { margin: 0; display: grid; gap: 12px; }
.stats div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.stats dt { font-weight: 500; }
.stats dt small { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }
.stats dd { margin: 0; font-weight: 650; font-size: 1.15rem; white-space: nowrap; }
.mini-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.mini-table th { text-align: left; font-weight: 500; color: var(--muted); padding: 4px 6px 6px; border-bottom: 1px solid var(--line); }
.mini-table td { padding: 6px; border-bottom: 1px solid var(--line); }
.mini-table th:not(:first-child), .mini-table td:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.table-view { margin-top: 8px; font-size: .9rem; }
.table-view summary { cursor: pointer; color: var(--blue); }
.table-view .mini-table { margin-top: 8px; }
/* The tip over a chart's mark */
.tip { position: fixed; z-index: 30; pointer-events: none; background: var(--text); color: var(--bg); padding: 5px 9px; border-radius: 6px; font-size: .85rem; font-weight: 500; max-width: 260px; }

/* The admin console (platform.go) */
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.data-table th { text-align: left; font-weight: 500; color: var(--muted); padding: 4px 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td:first-child, .data-table th:first-child { padding-left: 0; }
.choice-set { border: 0; padding: 0; margin: 0 0 8px; }
.choice-set legend { font-weight: 600; padding: 0; margin-bottom: 8px; }
.history { list-style: none; margin: 0; padding: 0; }
.history li { padding: 8px 0; border-top: 1px solid var(--line); }
.history li:first-child { border-top: 0; }
.host-row { display: flex; justify-content: space-between; align-items: center; gap: 8px 12px; flex-wrap: wrap; padding: 10px 0; }
.host-row .row-actions { margin: 0; }
@media (max-width: 640px) {
  .data-table thead { display: none; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; }
  .data-table tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .data-table tr:last-child { border-bottom: 0; }
  .data-table td { padding: 2px 0; border: 0; }
  .data-table td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); }
}

/* Unsaved changes on a long form (app.js unsavedBar) */
.unsaved-bar { position: fixed; z-index: 25; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 16px; max-width: calc(100% - 32px); background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: 99px; padding: 8px 8px 8px 22px; box-shadow: 0 8px 28px rgba(20, 28, 40, .28); }
.unsaved-bar[hidden] { display: none; }
.unsaved-bar span { font-weight: 600; white-space: nowrap; }
.unsaved-bar .btn { border-radius: 99px; white-space: nowrap; }
@media (max-width: 560px) {
  .unsaved-bar { left: 16px; right: 16px; transform: none; max-width: none; justify-content: space-between; gap: 10px; }
}

/* Signing up (billing.go) */
.signup { max-width: 640px; margin: 0 auto; }
.slug-field { display: flex; align-items: center; gap: 6px; }
.slug-field input { flex: 1; min-width: 0; }
.slug-field span { color: var(--muted); white-space: nowrap; }

/* Settings → Web address */
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.host-row small { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; font-size: .85rem; }
.host-ok { color: var(--ok); }
.host-wait { color: var(--muted); }
.dns-record + .fine { margin-top: 12px; }

/* Settings → a button for their website: shown as it looks there */
.button-preview ~ .copy-row + .fine { margin-top: 14px; }
.button-preview { padding: 20px; margin: 8px 0 12px; border: 1px dashed var(--line); border-radius: 10px; background: var(--surface); }

/* Console → Settings: a Stripe account per brand */
.brand-billing + .brand-billing { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }

/* The AI assistant's plans (plan.html), and the note about one on Jobs */
.plan-waiting { margin-bottom: 16px; }
.warn-callout { background: var(--warn-soft); color: var(--text); margin-bottom: 16px; }
.warn-callout .i { color: var(--warn); }
.warn-callout ul { margin: 6px 0 0; padding-left: 18px; }
.warn-text { color: var(--warn); }
.plan-summary { margin: 0 0 16px; padding: 12px 16px; border-left: 3px solid var(--blue); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; white-space: pre-line; }
.plan-compare table { width: 100%; border-collapse: collapse; }
.plan-compare th, .plan-compare td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.plan-compare thead th { font-size: .85rem; color: var(--muted); font-weight: 600; }
.plan-compare tbody th { font-weight: 500; }
.plan-compare tr.total th, .plan-compare tr.total td { font-weight: 700; border-bottom: 0; }
.plan-stops { list-style: none; margin: 0; padding: 0; }
.plan-stops li { display: grid; grid-template-columns: 74px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.plan-time { display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.plan-time small { color: var(--muted); }
.plan-what { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.badge-change { background: var(--blue-soft); color: var(--blue); white-space: normal; }
.problem { display: inline-flex; gap: 4px; align-items: flex-start; color: var(--danger); font-size: .88rem; }
.problem .i { width: 1em; height: 1em; margin-top: 2px; flex: none; }
.plan-decide .row-actions { margin-top: 10px; }
.plan-route + .plan-route, .plan-compare { margin-bottom: 16px; }
.plan-route { margin-bottom: 16px; }
.assistant-key code { font-size: .85em; padding: 1px 5px; background: var(--surface-2); border-radius: 4px; overflow-wrap: anywhere; }
.assistant-key h3 { margin-top: 14px; }
/* The AI assistant under Account, and the page where someone lets an app connect */
.connections { list-style: none; margin: 0 0 12px; padding: 0; }
.connections li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.connections li > div { min-width: 0; overflow-wrap: anywhere; }
.assistant-more { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.assistant-more summary { cursor: pointer; font-weight: 600; }
.assistant-more[open] summary { margin-bottom: 8px; }
#assistant h3 { margin-top: 16px; }
.consent { max-width: 560px; margin: 24px auto; }
.consent h1 { font-size: 1.4rem; margin-top: 0; }
.consent-facts { padding-left: 18px; color: var(--muted); }
.consent-facts li + li { margin-top: 6px; }

/* Scheduled with no technician: needs someone (list tab and filter, dashboard, Jobs, request) */
.attn { display: inline-flex; color: var(--danger); }
.attn .i { width: 1.05em; height: 1.05em; }
.seg .needs-tech, .seg .needs-tech .count { color: var(--danger); }
.seg .needs-tech .i { width: 1em; height: 1em; }
.danger-text { color: var(--danger); }
.kpi-danger { border-color: var(--danger); }
.kpi-danger .kpi-label .i, .kpi-danger .kpi-value { color: var(--danger); }
.job-day-nobody { border-color: var(--danger); }
.job-day-nobody h2 { color: var(--danger); display: flex; align-items: center; gap: 6px; }
.job-day-empty .stops { border-top: 0; } /* no line under the header to cut across the card's round corners */
.job-day-nobody.job-day-empty { border-color: var(--line); }
.job-day-nobody.job-day-empty h2 { color: var(--muted); }
.job-day-nobody.job-day-empty .danger-text, .job-day-nobody.job-day-empty [data-fill], .job-day-nobody.job-day-empty .group-toggle { display: none; }
.req-status .badge { margin-top: 2px; }
.needs-tech-field select { border-color: var(--danger); }
.needs-tech-field > span { color: var(--danger); }
.field-note { display: flex; gap: 5px; align-items: flex-start; font-size: .85rem; margin: -6px 0 12px; }
.field-note .i { width: 1em; height: 1em; margin-top: 2px; flex: none; }
.nav-alert { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 5px;
  border-radius: 99px; background: var(--danger); color: #fff; font-size: .72rem; font-weight: 700; line-height: 1; vertical-align: 1px; }
.no-tech-ask { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--danger); border-radius: var(--radius-sm); background: var(--danger-soft); }
.no-tech-ask p { display: flex; gap: 6px; align-items: flex-start; margin: 0 0 8px; color: var(--text); font-size: .92rem; }
.no-tech-ask p .i { color: var(--danger); width: 1.1em; height: 1.1em; margin-top: 2px; flex: none; }

/* Jobs: a person's header opens their contact card; the draft of who does what */
.job-head h2 .tech-card > summary { font-size: 1.1rem; font-weight: 600; padding: 3px 10px 3px 3px; }
.job-head h2 .tech-card > summary .avatar { width: 32px; height: 32px; font-size: .9rem; }
.job-head .tech-pop { font-size: 1rem; font-weight: 400; }
.group-toggle { margin: 0; font-size: .9rem; }
.stops .city-head { display: block; padding: 6px 18px; background: var(--surface-2); color: var(--muted); font-size: .78rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; }
.stops .city-head + li { border-top: 0; }
.assign-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  padding: 12px 16px; margin-bottom: 14px; box-shadow: var(--shadow); }
.assign-bar p { margin: 0; font-size: .92rem; }
@media (min-width: 700px) { .assign-bar { position: sticky; top: 8px; z-index: 15; } } /* on a phone the unsaved-changes bar does it */
.assign-count { display: block; font-weight: 600; color: var(--blue); }
.assign-count:empty { display: none; }
.stop-assign { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin-top: 8px; }
.stop-assign .field { margin: 0; min-width: 180px; }
.stop-assign select, .stop-assign input { margin-top: 0; padding-top: 6px; padding-bottom: 6px; height: 44px; } /* one line: who, time, how long */
.stop-assign .was { font-size: .82rem; color: var(--blue); background: var(--blue-soft); border-radius: 99px; padding: 2px 9px; }
.stops li.moved { background: color-mix(in srgb, var(--blue-soft) 45%, transparent); }
.job-day-nobody .stops li:not(.done) .stop-no { background: var(--danger-soft); color: var(--danger); }
/* A job travelling to someone else's day stays on top of what it passes */
.stops li.flying { position: relative; z-index: 30; background: var(--surface); border-radius: var(--radius-sm); }
.job-day.landing { position: relative; z-index: 29; } /* above the sections it flies past */

/* Jobs, worked through (jobsPage): the drive from the last job, what the customer asked for, a
   suggestion for a job nobody has, the summary before saving */
.leg { margin: 0 0 4px; font-size: .82rem; color: var(--muted); }
.leg::before { content: "↑ "; }
.leg-tight { color: var(--warn); font-weight: 600; }
.leg-bad { color: var(--danger); font-weight: 600; }
.badge.day-tight { background: var(--warn-soft); color: var(--warn); }
.asked { margin-top: 6px; font-size: .82rem; color: var(--muted); }
.asked-wrong { color: var(--warn); font-weight: 600; }
.tech-suggest { margin-top: 8px; }
.tech-suggest .btn { white-space: normal; text-align: left; }
.stop-at { min-width: 0; width: 120px; }
.stop-len { min-width: 0; width: 150px; }
.stop-assign .preview { font-size: .82rem; }
.notify-times { margin: 0; font-size: .9rem; }
.assign-confirm { flex-basis: 100%; border-top: 1px solid var(--line); padding-top: 10px; }
.assign-confirm p { margin: 0 0 4px; font-weight: 600; }
.assign-confirm ul { margin: 0 0 8px; padding-left: 18px; }
.assign-confirm .warn { color: var(--warn); font-weight: 600; list-style: none; margin-left: -18px; }
.stop-city { display: none; }
.stop-long:empty { display: none; }

/* Jobs, compact: a job to a line or two (address, phone and notes left to the request) */
.jobs-compact .stops li { padding: 7px 14px; gap: 10px; }
.jobs-compact .stop-no { width: 22px; height: 22px; font-size: .75rem; }
.jobs-compact .stop-no .i { width: 13px; height: 13px; }
.jobs-compact .stop-main p { margin: 0; }
.jobs-compact .stop-time { font-size: .88rem; }
.jobs-compact .stop-time .badge { font-size: .7rem; padding: 1px 7px; }
.jobs-compact .stop-addr, .jobs-compact .stop-topic, .jobs-compact .asked:not(.asked-wrong) { display: none; }
.jobs-compact .stop-city { display: inline; }
.jobs-compact .leg { font-size: .75rem; margin-bottom: 1px; }
.jobs-compact .job-head { padding: 10px 14px 8px; }
.jobs-compact .stops .city-head { padding: 3px 14px; }
.jobs-compact .stop-assign { margin-top: 4px; }
[data-compact][aria-pressed="true"] { background: var(--blue-soft); }
@media (max-width: 599px) {
  .stop-assign > .field:first-of-type { flex: 1 1 100%; }
  .stop-assign .stop-at, .stop-assign .stop-len { flex: 1 1 120px; width: auto; min-width: 0; }
}

/* Jobs: the map (app.js jobsMap, Leaflet). Its pins sit on OpenStreetMap's light tiles in either
   theme, so their colors are the same in both: time of day from light (morning) to dark (evening),
   --map-t1..6, and a color per technician, --map-c1..8 (red is for nobody's). */
:root {
  --map-t1: #fef08a; --map-t2: #fcd34d; --map-t3: #fb923c; --map-t4: #e11d48; --map-t5: #7e22ce; --map-t6: #312e81;
  --map-c1: #1d4ed8; --map-c2: #b45309; --map-c3: #0f766e; --map-c4: #6d28d9; --map-c5: #be185d; --map-c6: #4d7c0f;
  --map-c7: #475569; --map-c8: #0369a1;
  --map-ink: #1c2330; --map-route: #334155;
}
.jobs-map { padding: 10px 12px; margin-bottom: 14px; }
.map-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.map-modes { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface-2); border-radius: 99px; }
.map-modes button { border: 0; background: none; font: inherit; font-size: .85rem; font-weight: 600; color: var(--muted); padding: 4px 12px; border-radius: 99px; cursor: pointer; }
.map-modes button[aria-pressed=true] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.jobs-map .map { position: relative; z-index: 0; isolation: isolate; height: 380px; margin-top: 10px; border-radius: var(--radius-sm); border: 1px solid var(--line); }
@media (max-width: 560px) { .jobs-map .map { height: 300px; } }
.map-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: .8rem; color: var(--muted); }
.map-key { display: inline-flex; align-items: center; gap: 5px; }
.map-key i { width: 12px; height: 12px; border-radius: 50%; background: var(--pin); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.map-key-nobody i { box-shadow: 0 0 0 2px var(--danger); }
.map-note { margin: 6px 0 0; }
.pin-wrap { background: none; border: 0; }
.pin { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--pin); color: #fff;
  border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.45); font: 700 11px/1 system-ui, sans-serif; letter-spacing: -.02em; transition: transform .15s; }
.pin[data-ink=dark] { color: var(--map-ink); }
.pin-nobody { border: 3px solid var(--danger); }
.pin-done { opacity: .6; }
.pin-shop { width: 26px; height: 26px; border-radius: 7px; background: var(--map-ink); font-size: 15px; }
.pin-hot .pin, .pin-wrap:hover .pin { transform: scale(1.3); }
.map-line { stroke: var(--map-route); stroke-width: 3; stroke-opacity: .55; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.map-line-shop { stroke-dasharray: 2 7; }
.map-line-c1 { stroke: var(--map-c1); } .map-line-c2 { stroke: var(--map-c2); } .map-line-c3 { stroke: var(--map-c3); } .map-line-c4 { stroke: var(--map-c4); }
.map-line-c5 { stroke: var(--map-c5); } .map-line-c6 { stroke: var(--map-c6); } .map-line-c7 { stroke: var(--map-c7); } .map-line-c8 { stroke: var(--map-c8); }
.map-line[class*=map-line-c] { stroke-opacity: .85; }
.jobs-map .leaflet-popup-content-wrapper, .jobs-map .leaflet-popup-tip { background: var(--surface); color: var(--text); }
.jobs-map .leaflet-container { font: inherit; background: var(--surface-2); }
.map-card p { margin: 0 0 3px; }
.map-card .btn { margin-top: 6px; }

/* The logo (Settings): customers' pages' header, estimates, quotes and invoices */
.brand-logo img { display: block; max-height: 40px; max-width: min(220px, 55vw); width: auto; height: auto; object-fit: contain; }
.doc-from { min-width: 0; }
.doc-logo { display: block; max-height: 64px; max-width: 240px; width: auto; height: auto; object-fit: contain; margin-bottom: 8px; }
.logo-preview { display: inline-block; padding: 12px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.logo-preview img { display: block; max-height: 80px; max-width: 100%; }
/* What an estimate or a quote means, under its lines */
.kind-note { margin: 14px 0 0; padding: 8px 12px; border-left: 3px solid var(--line); color: var(--muted); font-size: .9rem; }
.kind-note.kind-estimate { border-left-color: var(--warn); }
.kind-pick { border: 0; padding: 0; margin: 0 0 16px; }
.kind-pick legend { font-weight: 600; margin-bottom: 8px; }

/* Taxes: the editor's bar and each line's buttons, the totals, Settings → Taxes */
.tax-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 6px; padding: 8px 10px; background: var(--surface-2); border-radius: var(--radius-sm); }
.tax-bar-label { font-size: .85rem; font-weight: 600; color: var(--muted); }
.tax-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.tax-hint { margin: 0 0 10px; }
.tax-chip { border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: inherit; font-size: .78rem; font-weight: 600;
  padding: 2px 9px; border-radius: 99px; cursor: pointer; text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }
.tax-chip[aria-pressed=true] { background: var(--blue-soft); border-color: var(--blue); color: var(--blue); text-decoration: none; }
.tax-chip:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.line-taxes { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 6px; }
.tax-sums { display: contents; }
.tax-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.tax-summary p { margin: 0; }
.tax-rows { display: grid; gap: 8px; margin-bottom: 8px; }
.tax-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px minmax(0, 1.3fr) auto; gap: 8px; align-items: center; }
.tax-row .field { margin: 0; }
.tax-row .field input { margin-top: 0; }
.tax-row-head { font-size: .82rem; color: var(--muted); font-weight: 600; }
.tax-rate { position: relative; }
.tax-rate input { padding-right: 26px; text-align: right; }
.tax-rate > span[aria-hidden] { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.tax-row .check { margin: 0; white-space: nowrap; font-size: .9rem; }
@media (max-width: 560px) {
  .tax-row-head { display: none; }
  .tax-row { grid-template-columns: 1fr 100px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  .tax-row .field:nth-child(3), .tax-row .check { grid-column: 1 / -1; }
}
.line-tax-names { display: block; font-size: .78rem; color: var(--muted); }
.reg-number { margin: 2px 0 0 !important; }

/* Settings: a card per topic, their list beside on a wide screen and a row of chips along the top
   on a phone (app.js settingsPage marks the card in view; --topbar-h is the top bar's height) */
html:has([data-settings]) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html:has([data-settings]) { scroll-behavior: auto; } }
.settings { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.settings > * { min-width: 0; }
.settings-head h1 { margin: 0; }
.settings-head p { margin: 4px 0 0; }
.settings-main, .settings-form { display: grid; gap: 16px; min-width: 0; margin: 0; }
.settings-nav { position: sticky; top: var(--topbar-h, 0px); z-index: 5; margin: 0 -16px; padding: 8px 16px;
  background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.settings-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.settings-nav ul::-webkit-scrollbar { display: none; }
.settings-nav a { display: flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface);
  color: var(--muted); font-size: .9rem; font-weight: 500; white-space: nowrap; transition: background .12s, color .12s; }
.settings-nav a:hover { color: var(--text); text-decoration: none; }
.settings-nav a[aria-current] { color: var(--blue); background: var(--blue-soft); border-color: transparent; font-weight: 600; }
.settings-nav .i { width: 1.05em; height: 1.05em; }
.settings-nav a.has-error::after { content: ""; flex: none; width: 7px; height: 7px; margin-left: auto; border-radius: 50%; background: var(--danger); }
.settings-nav-head, .settings-nav .settings-nav-more { display: none; }
.settings-errors { margin: 0; }
@media (min-width: 900px) {
  .settings { grid-template-columns: 210px minmax(0, 780px); grid-template-rows: auto 1fr; gap: 18px 36px; align-items: start; }
  .settings-head { grid-column: 2; }
  .settings-nav { grid-column: 1; grid-row: 1 / span 2; top: calc(var(--topbar-h, 58px) + 20px); margin: 6px 0 0; padding: 0;
    background: none; -webkit-backdrop-filter: none; backdrop-filter: none; border: 0; }
  .settings-main { grid-column: 2; }
  .settings-nav ul { flex-direction: column; gap: 2px; overflow: visible; }
  .settings-nav a { border: 0; border-radius: var(--radius-sm); background: none; padding: 8px 12px; font-size: .95rem; }
  .settings-nav a:hover { background: var(--surface-2); }
  .settings-nav a[aria-current] { background: var(--blue-soft); }
  .settings-nav-head { display: block; margin: 20px 12px 6px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  .settings-nav .settings-nav-more { display: flex; }
  .set-more { display: none !important; }
}
.set-card { scroll-margin-top: calc(var(--topbar-h, 58px) + 70px); }
@media (min-width: 900px) { .set-card { scroll-margin-top: calc(var(--topbar-h, 58px) + 20px); } }
@media (min-width: 600px) { .set-card { padding: 22px 26px 10px; } }
.set-card { padding-bottom: 6px; }
.set-head { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 20px; }
.set-head > div { flex: 1; min-width: 0; }
.set-head h2 { margin: 1px 0 2px; font-size: 1.1rem; }
.set-head p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.45; }
.set-head .badge { margin-top: 6px; }
.set-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 11px; background: var(--blue-soft); color: var(--blue); }
.set-icon .i { width: 20px; height: 20px; }
.set-icon-sm { width: 34px; height: 34px; border-radius: 9px; }
.set-icon-sm .i { width: 17px; height: 17px; }
.set-sub { font-weight: 600; font-size: .95rem; margin: 4px 0 12px; }
.set-foot { margin: 4px 0 14px; }
.set-card h3 { margin: 22px 0 4px; }
.set-card .card-note { margin-bottom: 14px; }
/* A field's help, under it; a field with a mistake goes red */
.field .hint { display: block; margin: 6px 2px 0; font-size: .84rem; font-weight: 400; line-height: 1.4; color: var(--muted); }
.field:has(+ .field-error) > :is(input, select, textarea) { border-color: var(--danger); }
.field.float:has(+ .field-error) > span, .set-group:has(+ .field-error) > legend { color: var(--danger); }
.set-group { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.set-group > legend { padding: 0; margin-bottom: 8px; }
.set-group .choice-body small { font-weight: 400; }
.set-group .cards { margin-bottom: 0; }
/* On or off, as a switch */
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 4px 0; margin: 0 0 18px; cursor: pointer; }
.toggle > span { min-width: 0; }
.toggle strong { display: block; font-weight: 600; font-size: .95rem; }
.toggle small { display: block; margin-top: 2px; color: var(--muted); font-size: .84rem; line-height: 1.4; }
.toggle input { -webkit-appearance: none; appearance: none; position: relative; flex: none; width: 46px; height: 28px; margin: 0; border-radius: 99px; cursor: pointer;
  background: color-mix(in srgb, var(--muted) 42%, var(--surface)); transition: background .18s ease; }
.toggle input::before { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface);
  box-shadow: 0 1px 3px rgba(20, 28, 40, .3); transition: transform .18s ease, background .18s ease; }
.toggle input:checked { background: var(--blue); }
.toggle input:checked::before { transform: translateX(18px); background: var(--on-blue); }
.toggle input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.toggle:hover input:not(:checked) { background: color-mix(in srgb, var(--muted) 60%, var(--surface)); }
@media (prefers-reduced-motion: reduce) { .toggle input, .toggle input::before { transition: none; } }
/* One of a few, side by side */
.segmented { display: inline-flex; flex-wrap: wrap; gap: 2px; max-width: 100%; padding: 3px; border-radius: var(--radius-sm); background: var(--surface-2); }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.segmented span { display: block; padding: 7px 16px; border-radius: 8px; color: var(--muted); font-size: .92rem; font-weight: 500; white-space: nowrap; transition: background .12s, color .12s; }
.segmented label:hover span { color: var(--text); }
.segmented input:checked + span { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.segmented input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 1px; }
.segmented + .hint { margin-top: 8px; }
/* The logo: as it looks, and buttons to change it */
.logo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin: 0 0 18px; scroll-margin-top: calc(var(--topbar-h, 58px) + 80px); }
.logo-tile { display: grid; place-items: center; flex: none; width: 144px; height: 88px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); }
.logo-tile img { display: block; width: auto; height: auto; max-width: 100%; max-height: 66px; object-fit: contain; }
.logo-empty { align-content: center; gap: 4px; border-style: dashed; background: var(--surface-2); color: var(--muted); font-size: .78rem; font-weight: 500; }
.logo-empty .i { width: 22px; height: 22px; }
.logo-side { flex: 1 1 240px; min-width: 0; }
.logo-title { margin: 0 0 2px; font-weight: 600; font-size: .95rem; }
.logo-side .fine { margin-bottom: 10px; line-height: 1.45; }
.logo-side .row-actions { margin: 0; }
.file-btn { position: relative; overflow: hidden; cursor: pointer; }
.file-btn input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.file-btn:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.btn-quiet { color: var(--muted); }
.btn-quiet:hover { color: var(--danger); background: var(--danger-soft); border-color: var(--danger-soft); }
/* Opening hours: the days, then from and to */
.set-card .open-hours { margin-bottom: 20px; }
.set-card .hours { max-width: 400px; gap: 10px; }
.set-card .hours .field { flex: 1; margin: 0; }
.hours-to { color: var(--muted); }
/* More about it, folded away */
.explain { margin: -4px 0 16px; }
.explain > summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; color: var(--blue); font-size: .9rem; font-weight: 600; }
.explain > summary::-webkit-details-marker { display: none; }
.explain > summary::after { content: ""; width: 6px; height: 6px; margin-top: -3px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .15s ease; }
.explain[open] > summary::after { margin-top: 3px; transform: rotate(-135deg); }
.explain > p { margin: 8px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.explain > .stripe-form { margin: 16px 0 0; }
/* Links to see an email as customers get it */
.previews { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 16px; color: var(--muted); font-size: .88rem; }
.previews > .i { width: 1em; height: 1em; }
.previews a { padding: 3px 11px; border-radius: 99px; background: var(--surface-2); font-weight: 500; }
.previews a:hover { background: var(--blue-soft); text-decoration: none; }
.set-card .tax-summary { flex-wrap: nowrap; justify-content: flex-start; gap: 12px; padding: 12px 12px 12px 14px; margin: 0 0 18px; border-radius: var(--radius-sm); background: var(--surface-2); }
.set-card .tax-summary p { flex: 1; min-width: 0; font-size: .95rem; }
.set-card .tax-summary small { display: block; color: var(--muted); font-size: .85rem; }
.set-card .tax-summary .set-icon { background: var(--surface); }
.save-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.save-row .fine { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.settings-form > .save-row { padding: 2px 0 6px; }
.stripe-form .save-row { margin-bottom: 16px; }
#payments .callout { margin-bottom: 4px; }
.copy-url input { color: var(--text); font-size: .95rem; font-weight: 600; }
.set-card .button-preview { margin-top: 10px; }
/* A setting filled in for you (choosing where you are) shows it changed */
.auto-set { animation: auto-set 1.6s ease-out; }
@keyframes auto-set { from { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); } }
@media (prefers-reduced-motion: reduce) { .auto-set { animation: none; } }
/* On a phone: Web address, Taxes and Billing, at the end */
.set-more { display: grid; padding: 6px; }
.set-more a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius-sm); color: var(--text); font-weight: 600; }
.set-more a:hover { background: var(--surface-2); text-decoration: none; }
.set-more a > span { flex: 1; min-width: 0; }
.set-more small { display: block; color: var(--muted); font-size: .85rem; font-weight: 400; }
.set-more a > .i:first-child { color: var(--blue); }
.set-more a > .i:last-child { color: var(--muted); }
/* Settings → Customer pages: the top of the request form, small, in the look chosen (its own
   tokens, from .theme-light/-dark/-system), fading out where the form goes on */
.form-preview-wrap { margin: 0 0 22px; }
.form-preview { max-height: 236px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--text);
  font-size: 13px; line-height: 1.45; transition: background .2s ease, color .2s ease; }
.fp-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.fp-brand { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 14px; font-weight: 700; }
.fp-brand img { display: block; max-height: 26px; max-width: 120px; width: auto; height: auto; object-fit: contain; }
.fp-icon { display: flex; color: var(--blue); }
.fp-icon .i { width: 20px; height: 20px; }
.fp-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-phone { display: flex; align-items: center; gap: 5px; color: var(--blue); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.fp-phone .i { width: 13px; height: 13px; }
.fp-body { max-width: 540px; margin: 0 auto; padding: 16px 16px 0; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.fp-h { margin: 0 0 4px; font-size: 19px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; color: var(--ink, var(--text)); }
.fp-lead { margin: 0 0 10px; color: var(--muted); font-size: 12.5px; }
.fp-facts { display: grid; margin-bottom: 12px; border-top: 1px solid var(--line); }
.fp-fact { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); color: var(--ink, var(--text)); font-size: 12px; font-weight: 500; }
.fp-fact .i { width: 12px; height: 12px; color: var(--muted); }
.fp-call .i { color: var(--ok); }
.fp-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-bottom: 14px; }
.fp-cards span { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--field); border-radius: 8px; background: var(--surface); }
.fp-cards .i { width: 18px; height: 18px; color: var(--blue); }
.fp-cards b { display: block; width: 55%; height: 8px; border-radius: 4px; background: var(--text); opacity: .7; }
.fp-cards i { display: block; width: 85%; height: 6px; border-radius: 3px; background: var(--muted); opacity: .35; }
.form-preview-wrap figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 8px; color: var(--muted); font-size: .84rem; }
.form-preview-wrap figcaption span { flex: 1 1 0; min-width: 0; }
.form-preview-wrap figcaption a { flex: none; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .form-preview { transition: none; } }
/* Opening days in one go; the one that matches is marked */
.day-presets { display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 14px; }
.day-presets button { padding: 3px 11px; border: 1px dashed var(--line); border-radius: 99px; background: none; color: var(--muted); font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; }
.day-presets button:hover { border-color: var(--blue); color: var(--blue); }
.day-presets button[aria-pressed=true] { border: 1px solid transparent; background: var(--blue-soft); color: var(--blue); }
.day-presets button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
/* Time zone: the time there now, or why it isn't one; and this device's, to use */
.hint.is-bad { color: var(--danger); }
.tz-device { display: block; margin: -6px 2px 14px; padding: 0; color: var(--blue); font-size: .84rem; font-weight: 600; text-align: left; }
.tz-device:hover { text-decoration: underline; }

/* ==== Editorial, the app's design (DESIGN.md), and the customer pages' looks ====
   Editorial's tokens are :root's (here, after the original ones at the top, which stay for the
   tokens it doesn't set). Every page without staff navigation is .public, with its look as a
   class (Settings → Customer pages → Style): look-editorial, look-friendly or look-classic;
   Settings' preview of the form has the same classes with theme-light/-dark/-system. Friendly has
   its own tokens; Classic is the original ones and the rules above. Each list is light, then dark
   twice (the look chosen, and the device's): keep each pair matching. */

/* What every look shares: the footer at the bottom of a short page */
.public { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.public > * { width: 100%; }
.public > .main { flex: 1 0 auto; }

/* ---- Editorial: warm monochrome, a serif heading beside the form, flat, one blue ---- */
:root, .form-preview.look-editorial.theme-light, .form-preview.look-editorial.theme-system {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --surface-2: #f1f0ec;
  --line: #eaeaea;
  --field: #8f8e89; /* field and choice borders: 3:1 on --surface */
  --ink: #111111; /* headings, the primary button */
  --text: #2f3437;
  --muted: #6b6a66;
  --blue: #2453c9; /* the accent: the primary button, progress, picked, focus */
  --blue-dark: #1c43a6;
  --blue-soft: #eef2fc;
  --on-blue: #ffffff;
  --ok: #346538;
  --ok-soft: #edf3ec;
  --on-ok: #ffffff;
  --danger: #9f2f2d;
  --danger-soft: #fdebec;
  --warn: #956400;
  --warn-soft: #fbf3db;
  --info: #1f6c9f;
  --info-soft: #e1f3fe;
  --halo: rgb(36 83 201 / 28%); /* the focus ring */
  --lift: 0 2px 8px rgb(0 0 0 / 4%); /* a card under the pointer */
  --shadow: none;
  --shadow-lift: 0 12px 32px rgb(0 0 0 / 5%);
  --ambient: rgb(214 186 140 / 16%); /* the warm light at the top of the page */
  color-scheme: light;
  --radius: 12px;
  --radius-sm: 6px;
  --radius-xs: 4px;
  --font: "Geist", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", "Newsreader", Georgia, serif;
  --font-mono: "Geist Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}
:root[data-theme=dark], .form-preview.look-editorial.theme-dark {
  --bg: #191919;
  --surface: #202020;
  --surface-2: #2a2a28;
  --line: #2f2f2d;
  --field: #6d6c68;
  --ink: #f5f4f0;
  --text: #e8e7e3;
  --muted: #9b9a96;
  --blue: #86a8f6;
  --blue-dark: #a3bdf8;
  --blue-soft: #1c2640;
  --on-blue: #11141b;
  --ok: #9bc79e;
  --ok-soft: #1f2b20;
  --on-ok: #111111;
  --danger: #f0a9a5;
  --danger-soft: #3a2020;
  --warn: #e3c06e;
  --warn-soft: #352d17;
  --info: #8cc4ec;
  --info-soft: #1d2c38;
  --halo: rgb(134 168 246 / 38%);
  --lift: 0 2px 8px rgb(0 0 0 / 30%);
  --shadow: none;
  --shadow-lift: 0 12px 32px rgb(0 0 0 / 45%);
  --ambient: rgb(255 214 150 / 4%);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]), .form-preview.look-editorial.theme-system {
    --bg: #191919;
    --surface: #202020;
    --surface-2: #2a2a28;
    --line: #2f2f2d;
    --field: #6d6c68;
    --ink: #f5f4f0;
    --text: #e8e7e3;
    --muted: #9b9a96;
    --blue: #86a8f6;
    --blue-dark: #a3bdf8;
    --blue-soft: #1c2640;
    --on-blue: #11141b;
    --ok: #9bc79e;
    --ok-soft: #1f2b20;
    --on-ok: #111111;
    --danger: #f0a9a5;
    --danger-soft: #3a2020;
    --warn: #e3c06e;
    --warn-soft: #352d17;
    --info: #8cc4ec;
    --info-soft: #1d2c38;
    --halo: rgb(134 168 246 / 38%);
    --lift: 0 2px 8px rgb(0 0 0 / 30%);
    --shadow: none;
    --shadow-lift: 0 12px 32px rgb(0 0 0 / 45%);
    --ambient: rgb(255 214 150 / 4%);
    color-scheme: dark;
  }
}
.form-preview { font-family: var(--font); }

/* Type: a serif for the page's heading, Geist for everything else, Geist Mono for small labels */
.look-editorial { line-height: 1.6; }
.look-editorial h1, .look-editorial h2, .look-editorial h3 { color: var(--ink); }
.look-editorial h1 { font-family: var(--font-serif); font-weight: 400; letter-spacing: -.02em; }
.look-editorial h2 { font-weight: 600; letter-spacing: -.015em; }
.look-editorial h3 { font-weight: 600; letter-spacing: -.01em; }
.look-editorial a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--field); text-underline-offset: 3px; }
.look-editorial a:hover { text-decoration-color: currentColor; }
.look-editorial a.btn, .look-editorial .brand, .look-editorial .top-phone, .look-editorial .foot-list a { text-decoration: none; }
.look-editorial .eyebrow { display: block; margin-bottom: 6px; color: var(--muted); font-family: var(--font-mono, ui-monospace, monospace); font-size: .72rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; }

/* Frame: the header, the page and the footer, with a faint warm light at the top */
.look-editorial::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(70rem 36rem at 12% -12%, var(--ambient), transparent 70%); }
.look-editorial .wrap { padding: 0 20px; }
@media (min-width: 600px) { .look-editorial .wrap { padding: 0 32px; } }
.look-editorial .wrap.narrow { max-width: 832px; }
.look-editorial .main { padding-top: 40px; padding-bottom: 72px; }
@media (min-width: 600px) { .look-editorial .main { padding-top: 48px; padding-bottom: 96px; } }
.look-editorial .topbar { background: color-mix(in srgb, var(--surface) 82%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.look-editorial .topbar-in { min-height: 64px; flex-wrap: nowrap; }
.look-editorial .brand { gap: 10px; color: var(--ink); font-size: 1.02rem; font-weight: 600; letter-spacing: -.01em; }
.look-editorial .brand > .i { width: 26px; height: 26px; color: var(--ink); }
.look-editorial .brand-logo img { max-height: 40px; }
.look-editorial .top-phone { flex: none; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
  color: var(--ink); font-size: .95rem; font-weight: 500; transition: border-color .2s ease, box-shadow .2s ease; }
.look-editorial .top-phone .i { color: var(--ok); }
.look-editorial .top-phone:hover { border-color: var(--field); box-shadow: var(--lift); }
@media (max-width: 520px) { .look-editorial .top-call { display: none; } }
/* A small phone: the button is its icon, so the business name fits (the form's facts have the number) */
@media (max-width: 440px) { .look-editorial .top-num { display: none; } .look-editorial .top-phone { width: 44px; padding: 0; justify-content: center; } .look-editorial .top-phone .i { width: 20px; height: 20px; } }
.look-editorial .footer { background: var(--surface); border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.look-editorial .footer-in { display: grid; gap: 28px 48px; padding-top: 48px; padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
@media (min-width: 720px) { .look-editorial .footer-in { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); } }
.look-editorial .foot-biz strong { display: block; margin-bottom: 6px; color: var(--ink); font-family: var(--font-serif); font-size: 1.5rem; font-weight: 400; letter-spacing: -.02em; line-height: 1.15; }
.look-editorial .foot-biz span { display: block; max-width: 40ch; }
.look-editorial .foot-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.look-editorial .foot-list a, .look-editorial .foot-list li > span { display: inline-flex; align-items: center; gap: 10px; min-height: 28px; color: var(--text); overflow-wrap: anywhere; }
.look-editorial .foot-list .i { flex: none; color: var(--muted); }
.look-editorial .foot-list a:hover { color: var(--ink); }

/* Buttons: ink, crisp corners, a press */
.look-editorial .btn { min-height: 48px; padding: 10px 22px; border-radius: var(--radius-sm); font-weight: 500; letter-spacing: -.005em; box-shadow: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .1s ease; }
.look-editorial .btn:not(.btn-ghost) { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.look-editorial .btn:not(.btn-ghost):hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.look-editorial .btn:active { transform: scale(.98); }
.look-editorial .btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--halo); }
.look-editorial .btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--field); }
.look-editorial .btn-ghost:hover { background: var(--surface-2); border-color: var(--field); }
.look-editorial .btn-lg { min-height: 52px; padding: 12px 28px; font-size: 1.02rem; }
.look-editorial .btn:disabled { background: var(--surface-2) !important; border-color: var(--line) !important; color: var(--muted) !important; }
.look-editorial .btn .i { width: 1.1em; height: 1.1em; }
@media (prefers-reduced-motion: reduce) { .look-editorial .btn { transition: none; } .look-editorial .btn:active { transform: none; } }

/* Fields: floating labels, a 3:1 border, a soft ring on focus */
.look-editorial .field input, .look-editorial .field select, .look-editorial .field textarea { border-color: var(--field); border-radius: var(--radius-sm); min-height: 48px; background-color: var(--surface);
  transition: border-color .2s ease, box-shadow .2s ease; }
.look-editorial .field.float > input, .look-editorial .field.float > select, .look-editorial .field.float > textarea { min-height: 56px; padding: 16px 14px; }
.look-editorial .float { --float-mid: 28px; } /* the label, in the middle of a 56px field until it floats up */
.look-editorial .field input:hover, .look-editorial .field select:hover, .look-editorial .field textarea:hover { border-color: color-mix(in srgb, var(--ink) 55%, var(--field)); }
.look-editorial .field input:focus, .look-editorial .field select:focus, .look-editorial .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--halo); }
.look-editorial .field-label { margin-bottom: 10px; color: var(--ink); font-weight: 500; }
.look-editorial .check input { accent-color: var(--blue); }

/* The request form: its heading and facts beside it on a wide screen, above it on a phone */
.look-editorial .req-page { display: grid; gap: 32px; }
.look-editorial .main:has(.req-page) { max-width: 1184px; }
@media (min-width: 1000px) {
  .look-editorial .req-page { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
  .look-editorial .req-side { position: sticky; top: 96px; }
}
.look-editorial .intro { margin: 0; }
.look-editorial .intro h1 { margin: 0 0 14px; font-size: clamp(2.3rem, 1.7rem + 2vw, 3.1rem); line-height: 1.04; }
.look-editorial .lead { max-width: 46ch; margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }
/* The company's facts: a light list, hairlines between, the phone a row to tap */
.look-editorial .req-facts { max-width: 380px; margin: 24px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.look-editorial .req-facts li { border-bottom: 1px solid var(--line); }
.look-editorial .fact { display: flex; align-items: center; gap: 14px; min-height: 54px; padding: 8px 2px; color: var(--ink); font-size: .98rem; font-weight: 500; }
.look-editorial .fact > span { display: grid; gap: 1px; min-width: 0; }
.look-editorial .fact .eyebrow { margin: 0; font-size: .66rem; }
.look-editorial .fact > .i { flex: none; width: 18px; height: 18px; color: var(--muted); }
.look-editorial a.fact { text-decoration: none; }
.look-editorial .fact-call > .i:first-child { color: var(--ok); }
.look-editorial .fact-call > .i:last-child { width: 14px; height: 14px; margin-left: auto; color: var(--muted); transition: transform .2s ease, color .2s ease; }
.look-editorial .fact-call:hover { color: var(--blue); }
.look-editorial .fact-call:hover > .i:last-child { color: var(--blue); transform: translateX(3px); }
.look-editorial .fact-call:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--halo); border-radius: var(--radius-sm); }
@media (max-width: 999px) { .look-editorial .req-facts { max-width: none; margin-top: 24px; } }
@media (max-width: 559px) { .look-editorial .fact { min-height: 52px; } }
@media (prefers-reduced-motion: reduce) { .look-editorial .fact-call > .i:last-child { transition: none; } }

/* The form's card: the steps along its top, each step's Back and Next along its foot (kept in
   sight while the step is longer than the screen) */
.look-editorial .form-card { --pad: 22px; padding: var(--pad); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: none; }
@media (min-width: 600px) { .look-editorial .form-card { --pad: 32px; } }
.look-editorial .wizard fieldset { padding: 0; }
.look-editorial .wizard fieldset + fieldset { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--line); }
.js .look-editorial .wizard .step { margin-top: 0; padding-top: 0; border-top: 0; } /* one step at a time */
.look-editorial .wizard legend h2 { margin: 0 0 16px; font-size: 1.35rem; line-height: 1.25; }
.look-editorial .wizard h3 { margin: 22px 0 10px; font-size: 1rem; }
.look-editorial .wizard h3 small, .look-editorial .field-label small { margin-left: 6px; font-weight: 400; }
.look-editorial .steps { gap: 8px; margin: 0 0 22px; }
.look-editorial .steps li { display: block; padding-top: 10px; color: var(--muted); font-family: var(--font-mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.look-editorial .steps li::before, .look-editorial .steps li:first-child::before { content: ""; display: block; position: absolute; top: 0; left: 0; right: auto; width: 100%; height: 3px; z-index: auto;
  border-radius: 99px; background: linear-gradient(var(--blue), var(--blue)) left / 0 100% no-repeat, var(--line); transition: background-size .5s cubic-bezier(.16, 1, .3, 1); }
.look-editorial .steps li.current::before, .look-editorial .steps li.done::before { background-size: 100% 100%; }
.look-editorial .steps li.current { color: var(--blue); }
.look-editorial .steps li span { display: none; }
.look-editorial .steps li.done span { display: inline-block; width: 13px; height: 13px; margin: 0 6px 0 0; border: 0; background: none; color: var(--blue); vertical-align: -2px; animation: none; }
.look-editorial .steps li .tick { width: 13px; height: 13px; }
.js .look-editorial .wizard .step.active { animation: step-in .45s cubic-bezier(.16, 1, .3, 1); }
@keyframes step-in { from { opacity: 0; transform: translateY(12px); } }
.look-editorial .wizard .step-nav { gap: 10px; margin: 26px calc(-1 * var(--pad)) calc(-1 * var(--pad));
  padding: 14px var(--pad) calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius);
  background: var(--surface); }
/* On a phone it stays in reach at the bottom of the screen while the step is taller than it, and
   whatever is focused or scrolled to keeps clear of it (scroll-padding) */
@media (max-width: 599px) {
  .look-editorial .wizard .step-nav { position: sticky; bottom: 0; z-index: 5; box-shadow: 0 -8px 16px -12px rgb(0 0 0 / 12%); }
  html:has(.form-card) { scroll-padding-bottom: 104px; }
  .look-editorial .step-nav [data-next], .look-editorial .send-nav .btn-lg { flex: 1; }
  .look-editorial .step-nav > span:empty { display: none; }
}
@media (prefers-reduced-motion: reduce) { .js .look-editorial .wizard .step.active { animation: none; } .look-editorial .steps li::before { transition: none; } }
.look-editorial .reassure { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 20px 0 0; color: var(--muted); font-size: .88rem; text-align: center; }
.look-editorial .reassure .i { width: 15px; height: 15px; }

/* Choice tiles: flat, the check top-right, an ink ring when picked, a faint lift under the pointer */
.look-editorial .cards { gap: 12px; }
.look-editorial .choice-body { align-content: center; gap: 3px; min-height: 56px; padding: 13px 50px 13px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease; }
.look-editorial .choice-body::before { left: auto; right: 16px; top: 15px; width: 20px; height: 20px; border: 1.5px solid var(--field); background: var(--surface); transition: background-color .2s ease, border-color .2s ease; }
.look-editorial .choice input[type=checkbox] + .choice-body::before { border-radius: 4px; }
.look-editorial .choice input:checked + .choice-body::before { border-color: var(--blue); background: var(--blue); }
.look-editorial .choice input:checked + .choice-body::after { content: ""; position: absolute; right: 16px; top: 15px; width: 20px; height: 20px; background: var(--on-blue);
  -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='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px 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='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.look-editorial .choice:hover .choice-body { border-color: color-mix(in srgb, var(--blue) 45%, var(--field)); box-shadow: var(--lift); }
.look-editorial .choice input:checked + .choice-body { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue); }
.look-editorial .choice input:focus-visible + .choice-body { outline: none; box-shadow: 0 0 0 3px var(--halo); }
.look-editorial .choice input:checked:focus-visible + .choice-body { box-shadow: inset 0 0 0 1px var(--blue), 0 0 0 3px var(--halo); }
.look-editorial .choice-body strong { color: var(--ink); font-size: 1rem; font-weight: 500; }
.look-editorial .choice-body small { font-size: .92rem; }
.look-editorial .choice.big .choice-body { align-content: start; gap: 3px; padding: 18px 52px 18px 18px; }
.look-editorial .choice.big .choice-body::before, .look-editorial .choice.big input:checked + .choice-body::after { top: 18px; right: 18px; }
.look-editorial .choice.big .choice-body .i { box-sizing: content-box; width: 22px; height: 22px; margin-bottom: 10px; padding: 8px; border-radius: 8px; background: var(--info-soft); color: var(--info); }
.look-editorial .choice.big input[value=sales] + .choice-body .i { background: var(--warn-soft); color: var(--warn); }
.look-editorial .choice.big strong { font-size: 1.05rem; }
.look-editorial .choice-urgent input:checked + .choice-body { border-color: var(--danger); background: var(--danger-soft); box-shadow: inset 0 0 0 1px var(--danger); }
.look-editorial .choice-urgent input:checked + .choice-body::before { border-color: var(--danger); background: var(--danger); }
.look-editorial .choice-urgent input:checked + .choice-body::after { background: var(--danger-soft); }
.look-editorial .kind-picked { min-height: 64px; margin-bottom: 4px; padding: 8px 8px 8px 18px; border: 1px solid var(--blue); border-radius: var(--radius); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue); }
.look-editorial .kind-picked strong { color: var(--ink); font-weight: 500; }
.look-editorial .kind-picked .i { color: var(--blue); }
@media (prefers-reduced-motion: reduce) { .look-editorial .choice-body, .look-editorial .choice-body::before { transition: none; } }

/* Chips: short answers, 48px, crisp corners, a tick when picked */
.look-editorial .chips { gap: 8px; }
.look-editorial .chip span { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 18px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font-weight: 400; transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease; }
.look-editorial .chip:hover span { border-color: color-mix(in srgb, var(--blue) 45%, var(--field)); box-shadow: var(--lift); }
.look-editorial .chip input:checked + span { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue); color: var(--blue); font-weight: 500; }
.look-editorial .chip input:checked + span::before { content: ""; width: 13px; height: 13px; margin-left: -4px; 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='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }
.look-editorial .chip input:focus-visible + span { outline: none; box-shadow: 0 0 0 3px var(--halo); }

/* Photos: a drop zone */
.look-editorial .attach { flex-direction: column; gap: 6px; width: 100%; min-height: 96px; border: 1px dashed var(--field); border-radius: var(--radius); background: var(--bg);
  color: var(--ink); font-size: .98rem; }
.look-editorial .attach:hover { border-color: var(--blue); background: var(--bg); box-shadow: var(--lift); }
.look-editorial .attach .i { width: 24px; height: 24px; color: var(--muted); }
.look-editorial .attach:focus-within { outline: none; box-shadow: 0 0 0 3px var(--halo); }

/* Callouts and errors: the muted pastels */
.look-editorial .callout { border-radius: var(--radius-sm); }
.look-editorial .callout .i { color: var(--info); }
.look-editorial .callout { background: var(--info-soft); color: var(--text); }
.look-editorial .urgent-callout { background: var(--danger-soft); }
.look-editorial .urgent-callout .i, .look-editorial .urgent-callout a { color: var(--danger); }
.look-editorial .flash-error { border-radius: var(--radius-sm); }

/* Thanks and the other single-card pages */
.look-editorial .card { border-color: var(--line); border-radius: var(--radius); box-shadow: none; }
.look-editorial .thanks { padding: 56px 28px; }
.look-editorial .thanks h1 { font-size: clamp(2.4rem, 2rem + 2vw, 3.2rem); }
.look-editorial .thanks-icon { background: var(--ok-soft); color: var(--ok); }
.look-editorial .thanks-icon::after { border-color: var(--ok); }
.look-editorial .ref-pill .ref-label, .look-editorial .next-steps li::before { font-family: var(--font-mono); }
.look-editorial .next-steps h2 { font-family: var(--font-mono); font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* Coming into view: once, gently, in turn (app.js reveal; only with JavaScript, never under reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .look-editorial .reveal { transition: opacity .6s cubic-bezier(.16, 1, .3, 1), transform .6s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--i, 0) * 80ms); }
  .look-editorial .reveal:not(.in) { opacity: 0; transform: translateY(12px); }
}

/* Editorial on a short laptop screen: one more notch, so the first question and its answers fit */
@media (min-width: 1000px) and (max-height: 860px) {
  .look-editorial .main { padding-top: 32px; }
  .look-editorial .intro h1 { font-size: clamp(2.2rem, 1.6rem + 1.6vw, 2.75rem); }
  .look-editorial .req-side { top: 88px; }
  .look-editorial .steps { margin-bottom: 18px; }
  .look-editorial .wizard legend .eyebrow { display: none; }
}

/* ---- The staff pages: Editorial (its tokens are :root's) ---- */
.staff { line-height: 1.55; }
.staff h1, .staff h2, .staff h3 { color: var(--ink); }
.staff h1 { font-size: 1.75rem; font-weight: 600; letter-spacing: -.02em; }
.staff h2 { font-weight: 600; letter-spacing: -.015em; }
.staff h3 { font-weight: 600; letter-spacing: -.01em; }
.staff .eyebrow, .staff .settings-nav-head { color: var(--muted); font-family: var(--font-mono); font-size: .7rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
/* The top bar: white, a hairline, the nav as text tabs underlined in blue */
.staff .topbar { background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.staff .brand { color: var(--ink); font-weight: 600; letter-spacing: -.01em; }
.staff .brand .i { color: var(--ink); }
.staff .topnav { gap: 4px; }
.staff .topnav a { border-radius: 0; padding: 6px 4px; margin: 0 6px; color: var(--muted); font-weight: 500; box-shadow: inset 0 -2px 0 transparent; transition: color .2s ease, box-shadow .2s ease; }
.staff .topnav a:hover { color: var(--ink); box-shadow: inset 0 -2px 0 var(--line); }
.staff .topnav a[aria-current] { background: none; color: var(--ink); box-shadow: inset 0 -2px 0 var(--blue); }
.staff .profile > summary { border: 1px solid var(--line); }
.staff .profile-here > summary { background: var(--surface); color: var(--ink); border-color: var(--field); }
.staff .avatar { background: var(--surface-2); color: var(--ink); }
.staff .profile-menu, .staff .switcher-menu { border-radius: var(--radius); box-shadow: var(--shadow-lift); }
.staff .switcher-item { border-radius: var(--radius-sm); }
/* Cards: flat, a hairline, 12px corners; a quiet tile for each card's icon */
.staff .card { border-color: var(--line); border-radius: var(--radius); box-shadow: none; }
/* Cards one after another straight in the page (the admin console's), and a detail page's side
   column, keep apart */
.staff .main > :is(.card, .detail-grid, .callout-card) + :is(.card, .detail-grid) { margin-top: 16px; }
.staff .detail-side { display: grid; gap: 14px; }
.staff .h-sub { margin-top: 4px; font-size: .92rem; font-weight: 400; letter-spacing: 0; }
@media (min-width: 600px) { .staff .set-card { padding: 28px 32px 12px; } }
.staff .set-head h2 { font-size: 1.12rem; }
.staff .set-icon { border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); }
.staff .set-icon-sm { background: var(--surface); }
.staff .tax-summary { border-radius: var(--radius-sm); }
/* The list of cards */
.staff .settings-nav a { border-radius: var(--radius-sm); font-weight: 500; }
.staff .settings-nav a[aria-current] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.staff .settings-nav a[aria-current] .i { color: var(--blue); }
@media (max-width: 899px) {
  .staff .settings-nav a { border-color: var(--line); }
  .staff .settings-nav a[aria-current] { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); box-shadow: none; }
}
/* Buttons: blue, crisp corners, a press */
.staff .btn { border-radius: var(--radius-sm); font-weight: 500; transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .1s ease; }
.staff .btn:active { transform: scale(.98); }
.staff .btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--halo); }
.staff .btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--field); }
.staff .btn-ghost:hover { background: var(--surface-2); border-color: var(--field); }
.staff .btn:disabled, .staff .btn[disabled] { background: var(--surface-2); border-color: var(--line); color: var(--muted); cursor: default; transform: none; }
.staff .manage .btn[data-save]:disabled { opacity: 1; } /* the grey says it, not a faded blue */
.staff .btn-quiet { color: var(--muted); }
.staff .btn-quiet:hover { color: var(--danger); background: var(--danger-soft); border-color: var(--danger-soft); }
.staff .file-btn:focus-within { outline: none; box-shadow: 0 0 0 3px var(--halo); }
@media (prefers-reduced-motion: reduce) { .staff .btn { transition: none; } .staff .btn:active { transform: none; } }
/* Fields: a 3:1 border, a soft blue ring on focus, labels in ink */
.staff .field { font-weight: 500; }
.staff .field input, .staff .field select, .staff .field textarea { border-color: var(--field); border-radius: var(--radius-sm); transition: border-color .2s ease, box-shadow .2s ease; }
.staff .field input:hover, .staff .field select:hover, .staff .field textarea:hover { border-color: color-mix(in srgb, var(--ink) 50%, var(--field)); }
.staff .field input:focus, .staff .field select:focus, .staff .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--halo); }
.staff .set-group > legend, .staff .set-sub, .staff .logo-title { color: var(--ink); font-weight: 500; }
.staff .toggle strong { color: var(--ink); font-weight: 500; }
.staff .toggle input:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--halo); }
/* One of a few, side by side */
.staff .segmented { border-radius: var(--radius-sm); }
.staff .segmented span { border-radius: 4px; }
.staff .segmented input:checked + span { box-shadow: 0 0 0 1px var(--line); }
/* Choice tiles (what to start with, the customer pages' style): the check top-right, a blue ring */
.staff .choice-body { gap: 3px; padding: 14px 48px 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease; }
.staff .choice-body::before { left: auto; right: 14px; top: 15px; width: 20px; height: 20px; border: 1.5px solid var(--field); }
.staff .choice input:checked + .choice-body::before { border-color: var(--blue); background: var(--blue); }
.staff .choice input:checked + .choice-body::after { content: ""; position: absolute; right: 14px; top: 15px; width: 20px; height: 20px; background: var(--on-blue);
  -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='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px 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='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.staff .choice:hover .choice-body { border-color: color-mix(in srgb, var(--blue) 45%, var(--field)); box-shadow: var(--lift); }
.staff .choice input:checked + .choice-body { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue); }
.staff .choice input:focus-visible + .choice-body { outline: none; box-shadow: 0 0 0 3px var(--halo); }
.staff .choice-body strong { color: var(--ink); font-weight: 500; }
/* Opening days and their quick picks; email previews */
.staff .day-check span { border-width: 1px; border-color: var(--line); border-radius: var(--radius-sm); }
.staff .day-check input:checked + span { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.staff .day-check input:focus-visible + span { outline: none; box-shadow: 0 0 0 3px var(--halo); }
.staff .day-presets button { border-radius: var(--radius-sm); }
.staff .previews a { border-radius: var(--radius-sm); color: var(--ink); }
.staff .previews a:hover { background: var(--blue-soft); color: var(--blue); }
/* Links in running text: ink, underlined; folded explanations the same */
.staff figcaption a, .staff .fine a, .staff .hint a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--field); text-underline-offset: 3px; }
.staff figcaption a:hover, .staff .fine a:hover { text-decoration-color: currentColor; }
.staff .explain > summary { color: var(--ink); font-weight: 500; }
.staff .tz-device { color: var(--ink); text-decoration: underline; text-decoration-color: var(--field); text-underline-offset: 3px; }
/* Status tags: small mono capitals on the pastels (a day's notes, like "1 h 30 min past 6:00 PM", stay as words) */
.staff .badge:not([class*="day-"]) { padding: 3px 8px; font-family: var(--font-mono); font-size: .66rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.staff .badge[class*="day-"] { border-radius: var(--radius-xs); font-weight: 500; }
/* The unsaved-changes bar and toasts: crisp, not pills */
.staff .unsaved-bar { border-radius: var(--radius); box-shadow: var(--shadow-lift); }
.staff .unsaved-bar .btn { border-radius: var(--radius-sm); }
.staff .set-more a { border-radius: var(--radius-sm); }
.staff .set-more a > .i:first-child { color: var(--ink); }

/* Settings' own pages (Web address, Taxes, Billing) in its frame: on a phone, a way back instead of the list */
.staff .crumbs { margin: 0 0 6px; font-size: .88rem; }
.staff .crumbs a { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.staff .crumbs a:hover { color: var(--ink); text-decoration: none; }
@media (min-width: 900px) { .staff .settings-head .crumbs { display: none; } }
@media (max-width: 899px) { .staff .settings-nav:has(.settings-nav-more [aria-current]) { display: none; } }
.staff code { padding: .12em .45em; border-radius: 4px; background: var(--surface-2); font-family: var(--font-mono); font-size: .86em; }
.staff .facts { margin: 4px 0 16px; }
.staff .facts dt { color: var(--muted); }
.staff .host-list { margin: 0 0 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.staff .host-row { padding: 12px 0; }
.staff .host-name a { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--field); text-underline-offset: 3px; }
.staff .host-ok { color: var(--ok); }
.add-host { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 16px; }
.add-host .field { flex: 1; margin: 0; }
.add-host .btn { flex: none; min-height: 52px; }
@media (max-width: 599px) { .add-host { flex-direction: column; align-items: stretch; } }
.staff .tax-row-head { font-family: var(--font-mono); font-size: .68rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.staff .tax-rows { margin-bottom: 12px; }
.staff .set-card > .save-row { margin: 4px 0 16px; }

/* Requests (DESIGN.md §5.7, §6.4): a toolbar, not a card (the search, then the filters inline, or
   behind a Filters button on a phone), tabs underlined, the list in one card */
.toolbar { display: grid; gap: 10px; margin: 0 0 18px; }
.toolbar .search { margin: 0; }
.toolbar .search input { min-height: 48px; border-color: var(--field); border-radius: var(--radius-sm); }
.toolbar .search input:hover { border-color: color-mix(in srgb, var(--ink) 50%, var(--field)); }
.toolbar .search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--halo); }
.filter-more > summary { display: inline-flex; gap: 8px; width: max-content; list-style: none; }
.filter-more > summary::-webkit-details-marker { display: none; }
.filter-more[open] > summary { background: var(--surface-2); }
.filter-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--blue); color: var(--on-blue);
  font-size: .75rem; font-weight: 600; }
.filter-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.filter-fields .field { margin: 0; }
.filter-fields .float { --float-mid: 24px; }
.filter-fields .field.float > select, .filter-fields .field.float > input { min-height: 48px; padding: 12px; }
.filter-fields .custom-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; grid-column: 1 / -1; }
/* On a phone the button is a square beside the search, its count on its corner */
@media (max-width: 899px) {
  .toolbar { position: relative; }
  .toolbar .search { margin-right: 58px; }
  .filter-more > summary { position: absolute; top: 0; right: 0; width: 48px; min-height: 48px; padding: 0; }
  .filter-more > summary > span:not(.filter-count) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .filter-more > summary .i { width: 20px; height: 20px; }
  .filter-count { position: absolute; top: -7px; right: -7px; }
  .filter-more:not([open]) { margin-top: -10px; } /* no gap under the search for the folded filters */
}
@media (min-width: 900px) {
  .toolbar { grid-template-columns: minmax(240px, 1fr) auto; align-items: start; }
  .filter-more > summary { display: none; }
  .filter-fields { display: flex; flex-wrap: wrap; justify-content: flex-end; margin: 0; }
  .filter-fields .field { width: 172px; }
  .filter-fields .custom-dates { display: flex; gap: 10px; }
}
.staff .tabs { gap: 2px; margin-bottom: 14px; }
.staff .tabs a { padding: 10px 10px; color: var(--muted); font-weight: 500; }
.staff .tabs a:hover { color: var(--ink); }
.staff .tabs a[aria-current] { color: var(--ink); border-color: var(--blue); }
.staff .tabs .count { padding: 0; background: none; color: var(--muted); font-family: var(--font-mono); font-size: .72rem; font-weight: 500; }
.staff .tabs a[aria-current] .count { color: var(--blue); }
.staff .result-line { margin: 0 0 10px; font-size: .88rem; }
.staff .result-line a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--field); text-underline-offset: 3px; }
.staff .req-list { border-radius: var(--radius); }
.staff .req { padding: 14px 18px; }
.staff .req-id { font-family: var(--font-mono); font-size: .8rem; font-weight: 500; letter-spacing: .02em; }
.staff .req-id small { font-family: var(--font); font-size: .82rem; letter-spacing: 0; white-space: nowrap; }
.staff .req-who strong { color: var(--ink); font-weight: 600; }
.staff .req-what { color: var(--ink); }
@media (min-width: 900px) {
  .staff .req-list .req:not(.inv) { grid-template-columns: 150px minmax(150px, 1.2fr) 2fr minmax(150px, 1fr) 160px; padding: 14px 20px; }
}
.staff .req-list .req-group { padding: 10px 20px; border-top: 1px solid var(--line); background: var(--bg); font-family: var(--font-mono); font-size: .7rem; font-weight: 500; letter-spacing: .08em; }
.staff .req-list .req-group:first-child { border-top: 0; }
.staff .empty { display: grid; justify-items: center; gap: 4px; padding: 48px 20px; }
.staff .empty .set-icon { margin-bottom: 10px; }
.staff .empty p { margin: 0; }
.staff .empty strong { color: var(--ink); }
.staff .empty .btn { margin-top: 14px; }

/* A request (DESIGN.md §6.5): its facts' labels in mono, each card headed by a quiet icon tile */
.staff .head-facts dt { font-family: var(--font-mono); font-size: .68rem; font-weight: 500; letter-spacing: .08em; }
.staff .head-facts dd { color: var(--ink); }
.staff .head-who strong { color: var(--ink); }
.card-title { display: flex; align-items: center; gap: 12px; }
.card-title > .i:first-child { box-sizing: content-box; flex: none; width: 17px; height: 17px; padding: 8px; border: 1px solid var(--line); border-radius: 9px;
  background: var(--bg); color: var(--ink); }
.staff .history li { padding: 10px 0; }

/* Dashboard (DESIGN.md §6.3): sections under plain headings; what needs someone first and tinted,
   what's all clear quiet; the week ahead as a strip of days; the period beside its heading */
.section-title { margin: 0; font-size: 1.15rem; font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
.dash-now > .section-title { margin: 0 0 12px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin: 32px 0 14px; }
.section-head .fine { margin: 2px 0 0; }
.dash-period { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.dash-period .field { width: 200px; margin: 0; }
.dash-period .float { --float-mid: 22px; }
.dash-period .field.float > select, .dash-period .field.float > input { min-height: 44px; padding: 10px 12px; }
.dash-period .custom-dates { display: flex; gap: 10px; }
.dash-period .custom-dates .field { width: 160px; }
@media (max-width: 599px) { .dash-period, .dash-period .field { width: 100%; } .dash-period .custom-dates { width: 100%; } .dash-period .custom-dates .field { flex: 1; width: auto; } }
@media (min-width: 900px) { .kpis-now { grid-template-columns: repeat(5, 1fr); } }
/* On a phone, Right now is a short list: the label and its note, the number on the right */
@media (max-width: 599px) {
  .kpis-now { grid-template-columns: 1fr; gap: 8px; }
  .kpis-now .kpi { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 12px; padding: 12px 16px; }
  .kpis-now .kpi-value { grid-column: 2; grid-row: 1 / span 2; font-size: 1.5rem; }
  .kpis-now .kpi-label, .kpis-now .kpi-note { grid-column: 1; }
}
.staff .kpi { gap: 3px; padding: 16px 18px; border-color: var(--line); box-shadow: none; transition: border-color .2s ease, box-shadow .2s ease; }
.staff .kpi-label { color: var(--muted); font-size: .86rem; }
.staff .kpi-value { color: var(--ink); font-size: 1.65rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.staff .kpi-link:hover { border-color: var(--field); box-shadow: var(--lift); }
.kpis-now .kpi-alert, .kpis-now .kpi-danger { order: -1; } /* what needs someone, first */
.staff .kpi-alert { border-color: transparent; background: var(--warn-soft); }
.staff .kpi-alert .kpi-label, .staff .kpi-alert .kpi-label .i, .staff .kpi-alert .kpi-value { color: var(--warn); }
.staff .kpi-danger { border-color: transparent; background: var(--danger-soft); }
.staff .kpi-danger .kpi-label, .staff .kpi-danger .kpi-label .i, .staff .kpi-danger .kpi-value { color: var(--danger); }
.staff .kpi-alert .kpi-note, .staff .kpi-danger .kpi-note { color: var(--text); }
.staff .kpi-clear .kpi-value { color: var(--muted); }
.week-card { margin-bottom: 0; }
.week-card .card-title { margin: 0 0 14px; font-size: 1rem; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.week-day { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 0 6px; padding: 10px 12px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--text); transition: border-color .2s ease, box-shadow .2s ease; }
.week-day:hover { border-color: var(--field); box-shadow: var(--lift); text-decoration: none; }
.week-name { color: var(--muted); font-family: var(--font-mono); font-size: .68rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.week-date { color: var(--muted); font-size: .8rem; text-align: right; }
.week-count { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 6px; margin-top: 6px; color: var(--muted); font-size: .8rem; }
.week-n { color: var(--ink); font-size: 1.5rem; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.week-load { grid-column: 1 / -1; display: block; height: 4px; margin-top: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.week-load i { display: block; height: 100%; border-radius: 99px; background: var(--blue); }
.week-day.is-empty .week-n { color: var(--muted); }
.week-day:first-child { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.week-day:first-child .week-name { color: var(--blue); }
@media (max-width: 719px) {
  .week { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 92px; overflow-x: auto; scrollbar-width: none; margin: 0 -2px; padding: 2px; }
}

/* Jobs (DESIGN.md §6.6): the day is the title, its stepper beside it; the list leads, the map
   beside it in a sticky card on a wide screen while it's open */
.jobs-head h1 { margin: 2px 0 0; }
.jobs-head .eyebrow { margin: 0; }
.jobs-head .head-actions { align-items: center; }
.jobs-head .day-nav { margin: 0; }
.jobs-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 24px; }
.jobs-list, .jobs-aside { min-width: 0; }
@media (min-width: 1200px) {
  .jobs-layout:has(.jobs-map [data-map-panel]:not([hidden])) { grid-template-columns: minmax(0, 1.2fr) minmax(360px, 1fr); align-items: start; }
  .jobs-layout:has(.jobs-map [data-map-panel]:not([hidden])) .jobs-aside { grid-column: 2; grid-row: 1; position: sticky; top: 76px; }
  .jobs-layout:has(.jobs-map [data-map-panel]:not([hidden])) .jobs-map .map { height: calc(100vh - 290px); min-height: 340px; }
}
@media (max-width: 599px) { .jobs-head .head-actions { width: 100%; } .jobs-head .day-nav { width: 100%; } .jobs-head .day-nav form { flex: 1; } }

/* Page heads with figures (DESIGN.md §6.7): Invoices' owing and overdue */
.page-head .fine { margin: 4px 0 0; }
.head-stats { display: flex; gap: 32px; margin: 0; }
.head-stats dt { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.head-stats dd { margin: 2px 0 0; font-size: 1.4rem; font-weight: 600; line-height: 1.2; color: var(--ink); font-variant-numeric: tabular-nums; }
.head-stats dd small { display: block; font-size: .8rem; font-weight: 400; color: var(--muted); }
.head-stats .is-overdue dd { color: var(--danger); }
.head-stats-none { margin: 0; color: var(--muted); }
.inv-head { align-items: flex-end; margin-bottom: 20px; }

/* On a phone the staff nav is a tab bar along the bottom (DESIGN.md §4.2); not on a request's own
   page, whose Call and Schedule take the bottom there, as an app's detail screen does */
.tabbar { display: none; }
@media (max-width: 719px) {
  .staff .topnav-staff { display: none; }
  .staff .tabbar { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; position: fixed; z-index: 22; left: 0; right: 0; bottom: 0;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 94%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .tabbar a { position: relative; display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 52px; padding: 4px; border-radius: var(--radius-sm);
    color: var(--muted); font-size: .72rem; font-weight: 500; }
  .tabbar a:hover { text-decoration: none; color: var(--ink); }
  .tabbar a .i { width: 22px; height: 22px; }
  .tabbar a[aria-current] { color: var(--blue); }
  .tabbar a[aria-current]::before { content: ""; position: absolute; top: -7px; left: 32%; right: 32%; height: 2px; border-radius: 2px; background: var(--blue); }
  .tabbar .nav-alert { position: absolute; top: 2px; left: calc(50% + 6px); margin: 0; }
  body.staff:not(:has(.action-bar)) { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  body.staff:not(:has(.action-bar)) .unsaved-bar { bottom: calc(80px + env(safe-area-inset-bottom)); }
  body:has(.action-bar) .tabbar { display: none; }
}

/* ---- Friendly: rounded and blue, warm stone, the heading and the hours above the form ---- */
.public.look-friendly, .form-preview.look-friendly.theme-light, .form-preview.look-friendly.theme-system {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --surface-2: #efede7;
  --line: #e4e1da;
  --field: #948f83; /* field and choice borders: 3:1 on --surface */
  --ink: #1d1c19;
  --text: #1d1c19;
  --muted: #68645b;
  --blue: #2453c9;
  --blue-dark: #1c43a6;
  --blue-soft: #e9eefb;
  --on-blue: #ffffff;
  --ok: #1c7647;
  --ok-soft: #e2f1e8;
  --on-ok: #ffffff;
  --danger: #bf3526;
  --danger-soft: #fbe9e6;
  --warn: #8f5a00;
  --warn-soft: #faefd8;
  --halo: rgb(36 83 201 / 32%); /* the focus ring */
  --shadow: 0 1px 2px rgb(28 25 20 / 5%), 0 1px 1px rgb(28 25 20 / 3%);
  --shadow-lift: 0 12px 32px rgb(28 25 20 / 14%);
  color-scheme: light;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --font: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
:root[data-theme=dark] .public.look-friendly, .form-preview.look-friendly.theme-dark {
  --bg: #141311;
  --surface: #1c1b18;
  --surface-2: #25231f;
  --line: #302e29;
  --field: #6c685f;
  --ink: #edebe5;
  --text: #edebe5;
  --muted: #a39f95;
  --blue: #86a8f6;
  --blue-dark: #a3bdf8;
  --blue-soft: #1c2640;
  --on-blue: #11141b;
  --ok: #62cf96;
  --ok-soft: #16301f;
  --on-ok: #11141b;
  --danger: #f2806f;
  --danger-soft: #3a1e1a;
  --warn: #eeb85a;
  --warn-soft: #372c19;
  --halo: rgb(134 168 246 / 38%);
  --shadow: none;
  --shadow-lift: 0 12px 32px rgb(0 0 0 / 45%);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) .public.look-friendly, .form-preview.look-friendly.theme-system {
    --bg: #141311;
    --surface: #1c1b18;
    --surface-2: #25231f;
    --line: #302e29;
    --field: #6c685f;
    --ink: #edebe5;
    --text: #edebe5;
    --muted: #a39f95;
    --blue: #86a8f6;
    --blue-dark: #a3bdf8;
    --blue-soft: #1c2640;
    --on-blue: #11141b;
    --ok: #62cf96;
    --ok-soft: #16301f;
    --on-ok: #11141b;
    --danger: #f2806f;
    --danger-soft: #3a1e1a;
    --warn: #eeb85a;
    --warn-soft: #372c19;
    --halo: rgb(134 168 246 / 38%);
    --shadow: none;
    --shadow-lift: 0 12px 32px rgb(0 0 0 / 45%);
    color-scheme: dark;
  }
}
.look-friendly { line-height: 1.55; }
.look-friendly h1, .look-friendly h2 { font-weight: 650; }
.look-friendly h1 { letter-spacing: -.02em; }
.look-friendly h2 { letter-spacing: -.01em; }
.look-friendly h3 { font-weight: 600; }
.look-friendly .eyebrow { display: block; margin-bottom: 4px; color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.look-friendly .wrap { padding: 0 16px; }
@media (min-width: 600px) { .look-friendly .wrap { padding: 0 24px; } }
.look-friendly .wrap.narrow { max-width: 768px; }
.look-friendly .main { padding-top: 28px; padding-bottom: 48px; }
@media (min-width: 600px) { .look-friendly .main { padding-top: 44px; padding-bottom: 64px; } }
.look-friendly .topbar { background: color-mix(in srgb, var(--surface) 90%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.look-friendly .topbar-in { min-height: 64px; flex-wrap: nowrap; }
.look-friendly .brand { gap: 10px; font-size: 1.06rem; font-weight: 700; letter-spacing: -.01em; }
.look-friendly .brand > .i { width: 30px; height: 30px; }
.look-friendly .brand-logo img { max-height: 40px; }
.look-friendly .top-phone { flex: none; gap: 8px; min-height: 44px; padding: 0 16px 0 13px; border-radius: 999px; background: var(--surface-2); color: var(--text);
  font-weight: 600; transition: background .15s ease, color .15s ease; }
.look-friendly .top-phone .i { color: var(--ok); }
.look-friendly .top-phone:hover { background: var(--ok-soft); color: var(--ok); text-decoration: none; }
@media (max-width: 520px) { .look-friendly .top-call { display: none; } }
@media (max-width: 440px) { .look-friendly .top-num { display: none; } .look-friendly .top-phone { width: 44px; padding: 0; justify-content: center; } }
.look-friendly .footer { background: var(--surface); border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.look-friendly .footer-in { display: grid; gap: 18px 40px; padding-top: 32px; padding-bottom: calc(36px + env(safe-area-inset-bottom)); }
@media (min-width: 720px) { .look-friendly .footer-in { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); } }
.look-friendly .footer .eyebrow { display: none; }
.look-friendly .foot-biz strong { display: block; margin-bottom: 4px; color: var(--text); font-size: 1.02rem; }
.look-friendly .foot-biz span { display: block; max-width: 40ch; }
.look-friendly .foot-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.look-friendly .foot-list a, .look-friendly .foot-list li > span { display: inline-flex; align-items: center; gap: 10px; min-height: 28px; color: var(--text); overflow-wrap: anywhere; }
.look-friendly .foot-list .i { flex: none; color: var(--muted); }
.look-friendly .foot-list a:hover .i { color: var(--blue); }
.look-friendly .btn { min-height: 48px; padding: 10px 20px; border-radius: var(--radius-sm); font-weight: 600; letter-spacing: -.005em;
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .1s ease; }
.look-friendly .btn:active { transform: translateY(1px); }
.look-friendly .btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--halo); }
.look-friendly .btn-ghost { background: var(--surface); color: var(--text); border-color: var(--field); }
.look-friendly .btn-ghost:hover { background: var(--surface-2); border-color: var(--field); }
.look-friendly .btn-lg { min-height: 52px; padding: 12px 28px; font-size: 1.05rem; }
.look-friendly .btn:disabled { background: var(--surface-2); border-color: var(--surface-2); color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .look-friendly .btn { transition: none; } .look-friendly .btn:active { transform: none; } }
.look-friendly .field input, .look-friendly .field select, .look-friendly .field textarea { border-color: var(--field); border-radius: var(--radius-sm); min-height: 48px;
  transition: border-color .15s ease, box-shadow .15s ease; }
.look-friendly .field.float > input, .look-friendly .field.float > select, .look-friendly .field.float > textarea { min-height: 56px; padding: 16px 14px; }
.look-friendly .float { --float-mid: 28px; }
.look-friendly .field input:hover, .look-friendly .field select:hover, .look-friendly .field textarea:hover { border-color: color-mix(in srgb, var(--text) 50%, var(--field)); }
.look-friendly .field input:focus, .look-friendly .field select:focus, .look-friendly .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--halo); }
.look-friendly .field-label { margin-bottom: 10px; }
.look-friendly .check input { accent-color: var(--blue); }
.look-friendly .intro { margin: 0 0 24px; }
.look-friendly .intro h1 { margin: 0 0 12px; font-size: clamp(1.9rem, 1.35rem + 2.2vw, 2.6rem); line-height: 1.1; letter-spacing: -.028em; }
.look-friendly .lead { max-width: 60ch; margin: 0 0 16px; color: var(--muted); font-size: 1.125rem; }
.look-friendly .facts-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.look-friendly .facts-row li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px 6px 11px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); font-size: .9rem; font-weight: 500; }
.look-friendly .facts-row .i { width: 16px; height: 16px; color: var(--blue); }
.look-friendly .call-us { gap: 10px 16px; margin-top: 16px; padding: 10px 10px 10px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.look-friendly .call-us p { font-size: 1rem; }
.look-friendly .btn-call { min-height: 48px; padding: 10px 18px; border-color: transparent; background: var(--ok-soft); color: var(--ok); font-size: 1rem; }
.look-friendly .btn-call:hover { border-color: transparent; background: var(--ok); color: var(--on-ok); filter: none; }
.look-friendly .btn-call .i { width: 1.15em; height: 1.15em; }
@media (max-width: 519px) {
  .look-friendly .call-us { margin-top: 14px; padding: 0; border: 0; background: none; }
  .look-friendly .call-us p { display: none; }
}
.look-friendly .form-card { --pad: 20px; padding: var(--pad); }
@media (min-width: 600px) { .look-friendly .form-card { --pad: 32px; } }
.look-friendly .wizard fieldset { padding: 0; }
.look-friendly .wizard fieldset + fieldset { margin-top: 28px; padding-top: 28px; }
.js .look-friendly .wizard .step { margin-top: 0; padding-top: 0; }
.look-friendly .wizard legend h2 { margin: 0 0 18px; font-size: 1.45rem; line-height: 1.25; }
.look-friendly .wizard h3 { margin: 22px 0 12px; font-size: 1.05rem; }
.look-friendly .wizard h3 small { margin-left: 4px; }
.look-friendly .steps { gap: 8px; margin: 0 0 26px; }
.look-friendly .steps li { display: block; padding-top: 12px; color: var(--muted); font-size: .82rem; font-weight: 600; text-align: left; }
.look-friendly .steps li::before, .look-friendly .steps li:first-child::before { content: ""; display: block; position: absolute; top: 0; left: 0; right: auto; width: 100%; height: 4px; z-index: auto;
  border-radius: 99px; background: linear-gradient(var(--blue), var(--blue)) left / 0 100% no-repeat, var(--surface-2); transition: background-size .35s ease; }
.look-friendly .steps li.current::before, .look-friendly .steps li.done::before { background-size: 100% 100%; }
.look-friendly .steps li.current { color: var(--text); }
.look-friendly .steps li span { display: none; }
.look-friendly .steps li.done span { display: inline-block; width: 15px; height: 15px; margin: 0 5px 0 0; border: 0; background: none; color: var(--blue); vertical-align: -2px; animation: none; }
.look-friendly .steps li .tick { width: 15px; height: 15px; }
.js .look-friendly .wizard .step.active { animation: step-in .22s ease-out; }
.look-friendly .wizard .step-nav { gap: 10px; margin: 28px calc(-1 * var(--pad)) calc(-1 * var(--pad));
  padding: 14px var(--pad) calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); background: var(--surface); }
@media (max-width: 599px) {
  .look-friendly .wizard .step-nav { position: sticky; bottom: 0; z-index: 5; box-shadow: 0 -8px 16px -12px rgb(0 0 0 / 14%); }
  .look-friendly .step-nav [data-next], .look-friendly .send-nav .btn-lg { flex: 1; }
  .look-friendly .step-nav > span:empty { display: none; }
}
@media (prefers-reduced-motion: reduce) { .js .look-friendly .wizard .step.active { animation: none; } .look-friendly .steps li::before { transition: none; } }
.look-friendly .reassure { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 18px 0 0; color: var(--muted); font-size: .9rem; text-align: center; }
.look-friendly .reassure .i { width: 16px; height: 16px; }
.look-friendly .cards { gap: 12px; }
.look-friendly .choice-body { align-content: center; gap: 3px; min-height: 60px; padding: 14px 50px 14px 16px; border: 1px solid var(--field); border-radius: 12px;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.look-friendly .choice-body::before { left: auto; right: 14px; top: 16px; width: 22px; height: 22px; border: 1.5px solid var(--field); transition: background .15s ease, border-color .15s ease; }
.look-friendly .choice input:checked + .choice-body::before { border-color: var(--blue); background: var(--blue); }
.look-friendly .choice input:checked + .choice-body::after { content: ""; position: absolute; right: 14px; top: 16px; width: 22px; height: 22px; background: var(--on-blue);
  -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='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px 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='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.look-friendly .choice:hover .choice-body { border-color: color-mix(in srgb, var(--blue) 60%, var(--field)); }
.look-friendly .choice input:checked + .choice-body { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue); }
.look-friendly .choice input:focus-visible + .choice-body { outline: none; box-shadow: 0 0 0 3px var(--halo); }
.look-friendly .choice input:checked:focus-visible + .choice-body { box-shadow: inset 0 0 0 1px var(--blue), 0 0 0 3px var(--halo); }
.look-friendly .choice-body strong { font-size: 1rem; }
.look-friendly .choice-body small { font-size: .92rem; }
.look-friendly .choice.big .choice-body { align-content: start; gap: 4px; padding: 18px 54px 18px 18px; }
.look-friendly .choice.big .choice-body::before, .look-friendly .choice.big input:checked + .choice-body::after { top: 18px; right: 16px; }
.look-friendly .choice.big .choice-body .i { box-sizing: content-box; width: 22px; height: 22px; margin-bottom: 10px; padding: 9px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); }
.look-friendly .choice.big input:checked + .choice-body .i { background: var(--surface); }
.look-friendly .choice.big strong { font-size: 1.08rem; }
.look-friendly .choice-urgent input:checked + .choice-body { border-color: var(--danger); background: var(--danger-soft); box-shadow: inset 0 0 0 1px var(--danger); }
.look-friendly .choice-urgent input:checked + .choice-body::before { border-color: var(--danger); background: var(--danger); }
.look-friendly .kind-picked { min-height: 60px; margin-bottom: 4px; padding: 8px 8px 8px 16px; border: 1px solid var(--blue); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--blue); }
.look-friendly .kind-picked strong { font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .look-friendly .choice-body, .look-friendly .choice-body::before { transition: none; } }
.look-friendly .chips { gap: 8px; }
.look-friendly .chip span { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 18px; border: 1px solid var(--field); font-weight: 500;
  transition: border-color .15s ease, background .15s ease; }
.look-friendly .chip:hover span { border-color: color-mix(in srgb, var(--blue) 60%, var(--field)); }
.look-friendly .chip input:checked + span { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue); color: var(--blue); }
.look-friendly .chip input:checked + span::before { content: ""; width: 14px; height: 14px; margin-left: -4px; 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='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }
.look-friendly .chip input:focus-visible + span { outline: none; box-shadow: 0 0 0 3px var(--halo); }
.look-friendly .attach { flex-direction: column; gap: 6px; width: 100%; min-height: 104px; border: 1.5px dashed var(--field); border-radius: 12px;
  background: var(--surface-2); color: var(--blue); font-size: 1rem; }
.look-friendly .attach:hover { border-color: var(--blue); background: var(--blue-soft); }
.look-friendly .attach .i { width: 26px; height: 26px; }
.look-friendly .attach:focus-within { outline: none; box-shadow: 0 0 0 3px var(--halo); }
.look-friendly .callout, .look-friendly .flash-error { border-radius: 12px; }
.look-friendly .thanks { padding: 40px 24px; }
@media (max-width: 599px) { html:has(.look-friendly .form-card) { scroll-padding-bottom: 104px; } }

/* ---- Classic: the app's own look; the newer markup quietly fits it ---- */
.look-classic .form-card { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.look-classic .eyebrow, .look-classic .top-call { display: none; }
.look-classic .reassure { margin: 16px 0 0; color: var(--muted); font-size: .88rem; }
.look-classic .reassure .i { display: none; }
.look-classic .footer-in > div, .look-classic .foot-list, .look-classic .foot-list li, .look-classic .foot-list li > span { display: contents; }
.look-classic .foot-biz strong { font-weight: 400; }
.look-classic .foot-biz span, .look-classic .foot-list .i { display: none; }

/* Settings' preview: each look's own top */
.form-preview:not(.look-editorial) .fp-facts, .form-preview:not(.look-friendly) .fp-pill, .form-preview.look-editorial .fp-callbar { display: none; }
.form-preview.look-editorial .fp-h { font-family: var(--font-serif); font-weight: 400; font-size: 24px; letter-spacing: -.02em; }
.fp-pill { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; padding: 3px 9px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); font-size: 11px; font-weight: 500; }
.fp-pill .i { width: 11px; height: 11px; color: var(--blue); }
.fp-callbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; padding: 8px 8px 8px 12px; border-radius: var(--radius-sm); background: var(--surface-2); }
.fp-callbar p { flex: 1 1 180px; margin: 0; font-size: 12px; }
.fp-callbar p span { color: var(--muted); }
.fp-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 8px; background: var(--ok); color: var(--on-ok); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.fp-btn .i { width: 13px; height: 13px; }
.form-preview.look-friendly .fp-callbar { border: 1px solid var(--line); background: var(--surface); }
.form-preview.look-friendly .fp-btn { background: var(--ok-soft); color: var(--ok); }
