/* Smart Quote — app-level layout on top of the design-system class contract.
   Loaded after tokens.css and quote-app.css. Only what the screens need that
   no component owns: page frames, the access card, the success screen, the
   preview edit affordances and the phone-width quote list. */

body.sq { min-height: 100vh; }
.sq-app { min-height: 100vh; display: flex; flex-direction: column; }
.sq-hidden { display: none !important; }

/* ---------- App bar: one of only two fixed elements ---------- */
.sq-appbar { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + 0px); z-index: 40; }
.sq-appbar__brand a { color: inherit; text-decoration: none; }
.sq-appbar__actions { display: flex; align-items: center; gap: var(--space-2); }
.sq-appbar__link--current { background: var(--surface-inverse-hover); }
a.sq-appbar__link { display: inline-flex; align-items: center; text-decoration: none; }
/* 3.0.15: the phone bar (one row, with Menu) is at the end of this file, after the rules it overrides. */
.sq-appbar__page, .sq-appbar__phone { display: none; }

/* ---------- Page frames ---------- */
.sq-page--wide { max-width: 1100px; }
.sq-page__title { font-size: 24px; line-height: 30px; font-weight: 600; margin: 0 0 var(--space-4); }
.sq-page__lede { font-size: 15px; line-height: 22px; color: var(--ink-muted); margin: 0 0 var(--space-5); }
.sq-page__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-5); }
.sq-page__head .sq-page__title { margin: 0; }

/* ---------- Access screen ---------- */
.sq-access { flex: 1; display: grid; place-items: center; padding: var(--space-5) var(--space-4); }
.sq-access__card { width: 100%; max-width: 400px; }
.sq-access__brand { font-size: 24px; line-height: 30px; font-weight: 600; margin: 0 0 var(--space-2); }
.sq-access__logo { max-height: 40px; width: auto; display: block; margin-bottom: var(--space-3); }
.sq-access__lede { font-size: 13px; line-height: 18px; color: var(--ink-muted); margin: 0 0 var(--space-5); }
.sq-alert-slot { min-height: 56px; }
.sq-alert-slot:empty { min-height: 56px; }
@media (max-width: 599px) {
  .sq-access { place-items: start center; padding-top: var(--space-7); }
}

/* ---------- Builder ---------- */
.sq-builder { flex: 1; display: flex; flex-direction: column; }
.sq-builder__body { flex: 1; }
/* 3.0.5: .sq-app is a flex column, so its children need min-width:0 or their
   min-content width (the stepper's, here) pushes the whole page sideways. */
.sq-app > * { min-width: 0; }
.sq-builder__steps { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 var(--space-4); min-width: 0; }
.sq-steps { scrollbar-width: none; }
.sq-steps::-webkit-scrollbar { display: none; }
/* 3.0.8: centred with auto margins rather than justify-content:center, which pushed the first
   step past the left edge (out of scroll reach) whenever the list overflowed, at 900-945px. */
@media (min-width: 900px) {
  .sq-steps > :first-child { margin-left: auto; }
  .sq-steps > :last-child { margin-right: auto; }
}
@media (max-width: 599px) {
  .sq-steps__item:not([data-state="current"]) .sq-steps__btn > span:last-child { display: none; }
}
.sq-actionbar { margin-top: auto; }
.sq-actionbar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); width: 100%; max-width: var(--measure); margin: 0 auto; }
.sq-actionbar__msg { flex: 1 1 auto; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
/* 3.0.8: the buttons keep their size and their label on one line ("Save changes" wrapped). */
.sq-actionbar .sq-btn { flex: none; white-space: nowrap; }
@media (max-width: 599px) {
  .sq-actionbar__inner { flex-wrap: wrap; }
  .sq-actionbar__msg { flex-basis: 100%; order: -1; }
  .sq-actionbar .sq-btn { white-space: nowrap; }
  /* Phone row layout: name, then qty + total, then the unit price on its own line. */
  .sq-line__qty { grid-row: 2; grid-column: 1; }
  .sq-line__total { grid-row: 2; grid-column: 2; }
  .sq-line__unit { grid-row: 3; grid-column: 1 / -1; }
}
.sq-picker-row { display: flex; align-items: flex-end; gap: var(--space-3); }
.sq-picker-row .sq-field { flex: 1 1 auto; }
.sq-picker-row .sq-counter { padding-bottom: 13px; white-space: nowrap; }
.sq-share__box .sq-btn { flex: none; white-space: nowrap; }
.sq-line__override { display: none; }
.sq-line__override[data-open="true"] { display: flex; }
.sq-line__override-label { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.sq-line__toggle { grid-column: 1 / -1; }
/* 3.0.4: per-line tools row (override toggle + note button) and the note editor */
.sq-line__tools { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.sq-line__tools .sq-line__toggle { grid-column: auto; }
.sq-line__note { grid-column: 1 / -1; display: none; flex-direction: column; gap: var(--space-2); padding-top: var(--space-1); }
.sq-line__note[data-open="true"] { display: flex; }
.sq-line__note .sq-textarea { min-height: 64px; }
.sq-line__note-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.sq-qtable__note { display: flex; align-items: flex-start; gap: 4px; margin-top: var(--space-1); font-size: 13px; line-height: 18px; color: var(--ink-muted); white-space: pre-line; }
.sq-qtable__note svg { flex: none; margin-top: 2px; }
.sq-consent-note { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.sq-form-errors { margin-top: var(--space-4); }
/* 3.0.8: an empty error slot kept its margin, leaving 16px of dead space at the foot of every
   builder card. */
.sq-form-errors:empty { margin-top: 0; }

/* Preview: canvas ground, sheet with edit affordances per section */
.sq-preview { padding: var(--space-4) 0 0; }
.sq-preview .sq-sheet { margin-top: var(--space-4); }
.sq-sheet__customer--editable { position: relative; }
.sq-sheet__edit { position: absolute; right: 0; top: var(--space-5); }
.sq-sheet__tools { display: flex; justify-content: flex-end; margin-bottom: var(--space-2); }
.sq-sheet__evidence { font-size: 13px; line-height: 18px; color: var(--ink-muted); margin-top: var(--space-3); }
.sq-sheet__pending { color: var(--ink-muted); }

/* ---------- Success screen ---------- */
.sq-success { max-width: var(--measure); margin: 0 auto; padding: var(--space-7) var(--space-4); }
.sq-success__icon { width: 48px; height: 48px; color: var(--brand-ink); margin-bottom: var(--space-4); }
.sq-success__title { font-size: 32px; line-height: 38px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 var(--space-2); }
.sq-success__ref { font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.04em; color: var(--ink-muted); margin: 0 0 var(--space-5); }
/* 3.0.8: the private reference the customer sees, under the number. */
.sq-success__ref:has(+ .sq-success__custref) { margin-bottom: var(--space-2); }
.sq-success__custref { font-size: 13px; line-height: 18px; color: var(--ink-muted); margin: 0 0 var(--space-5); text-align: center; }
.sq-qtable__ref { font-family: var(--font-mono); font-size: 12px; }
.sq-success__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-5); }
.sq-success .sq-card { box-sizing: border-box; max-width: 100%; }
@media (max-width: 599px) {
  .sq-success { padding: var(--space-5) var(--space-4) var(--space-7); }
  .sq-success__icon { width: 40px; height: 40px; margin-bottom: var(--space-3); }
  .sq-success__title { font-size: 26px; line-height: 32px; }
  .sq-success .sq-card { padding: var(--space-4); }
  .sq-share__box { flex-wrap: wrap; }
  .sq-share__url { flex: 1 1 100%; white-space: normal; overflow-wrap: anywhere; font-size: 12px; line-height: 16px; }
  .sq-share__box .sq-btn { flex: 1 1 100%; justify-content: center; }
  .sq-success__actions .sq-btn { flex: 1 1 100%; justify-content: center; }
  .sq-page__head { flex-direction: column; align-items: stretch; }
  .sq-page__head .sq-btn, .sq-actions-inline .sq-btn { justify-content: center; }
  .sq-actions-inline { flex-direction: column; align-items: stretch; }
  .sq-page__head .sq-actions-inline { flex-direction: row; }
  .sq-page__head .sq-actions-inline .sq-btn { flex: 1 1 0; }
  .sq-sheet__edit { position: static; margin-top: var(--space-2); }
  .sq-sheet__tools { justify-content: flex-start; }
  .sq-preview .sq-alert { font-size: 13px; line-height: 18px; }
}

/* ---------- Quote list ---------- */
.sq-table__actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.sq-table__num { white-space: nowrap; text-decoration: none; }
body.sq a[href^="tel:"], .sq-tel { white-space: nowrap; } /* 3.0.17.3: a phone number never breaks across two lines */
.sq-table__num:hover { text-decoration: underline; }
.sq-table__badges { display: flex; gap: var(--space-1); flex-wrap: wrap; }
/* Badges live in the Status column on desktop and beside the row title on phones. */
@media (min-width: 600px) { .sq-table__row-head .sq-table__badges { display: none; } }
@media (max-width: 599px) { .sq-table__badges-cell { display: none !important; } }
@media (max-width: 599px) {
  .sq-table, .sq-table tbody, .sq-table tr, .sq-table td { display: block; }
  .sq-table thead { display: none; }
  .sq-table { background: transparent; box-shadow: none; border-radius: 0; }
  .sq-table tr { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: var(--space-4); margin-bottom: var(--space-3); }
  .sq-table td { border: 0; padding: var(--space-1) 0; }
  .sq-table td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: 0.08em; color: var(--ink-muted); }
  .sq-table__money { text-align: left; }
  .sq-table__row-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding-bottom: var(--space-2) !important; }
}

/* ---------- Public quote page frame ---------- */
.sq-public { padding: var(--space-8) var(--space-8) var(--space-7); }
.sq-public__actions { max-width: var(--sheet); margin: var(--space-4) auto 0; display: flex; justify-content: flex-end; gap: var(--space-2); flex-wrap: wrap; }
.sq-public--empty { min-height: 100vh; display: grid; place-items: center; }
.sq-public__card { max-width: 480px; }
.sq-public__contact { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-5) 0 0; }
.sq-sheet__actions { display: flex; justify-content: flex-end; }

/* See Terms & Sign call-to-action (3.0.3) */
.sq-sheet__actions--sign, .sq-sheet__actions--signed { justify-content: stretch; }
.sq-sign, .sq-signed { width: 100%; display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-5); border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface-muted, var(--canvas)); }
.sq-sign { border-color: var(--brand-soft, var(--line)); background: var(--brand-soft, var(--canvas)); }
.sq-sign__text, .sq-signed__text { flex: 1; min-width: 0; }
.sq-sign__title, .sq-signed__title { font-weight: 600; font-size: 16px; line-height: 22px; color: var(--ink); }
.sq-sign__lede, .sq-signed__lede { font-size: 13px; line-height: 18px; color: var(--ink-muted); margin-top: 2px; }
.sq-signed__icon { display: inline-flex; color: var(--brand-ink, var(--brand)); flex: none; }
.sq-sign .sq-btn, .sq-signed .sq-btn { flex: none; white-space: nowrap; }
/* Accept this quote (3.0.4): the confirmation card and the accepted panel */
.sq-sheet [hidden] { display: none !important; }
.sq-sheet__actions--sign { flex-direction: column; gap: var(--space-3); }
.sq-confirm { width: 100%; box-sizing: border-box; padding: var(--space-5); border-radius: var(--radius-lg); border: 1px solid var(--brand); background: var(--surface); box-shadow: var(--shadow-pop); }
.sq-confirm__title { font-size: 19px; line-height: 26px; font-weight: 600; }
.sq-confirm__lede { font-size: 13px; line-height: 18px; color: var(--ink-muted); margin: var(--space-2) 0 var(--space-4); }
.sq-confirm__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.sq-confirm__error { margin: var(--space-3) 0 0; color: var(--danger); font-size: 13px; line-height: 18px; }
.sq-signed--accepted { border-color: var(--brand-soft-line); background: var(--brand-soft); }
@media (max-width: 599px) {
  .sq-confirm { padding: var(--space-4); }
  .sq-confirm__actions .sq-btn { flex: 1 1 100%; }
}
@media (max-width: 599px) {
  .sq-public { padding: var(--space-4) var(--space-4) calc(var(--space-4) + 72px); }
  .sq-sheet { padding: var(--space-4); }
  .sq-sheet__head { flex-direction: column; }
  .sq-sheet__ref { text-align: left; }
  .sq-sign, .sq-signed { flex-direction: column; align-items: stretch; text-align: center; }
  .sq-sign .sq-btn, .sq-signed .sq-btn { width: auto; align-self: stretch; justify-content: center; }
  /* On phones the action bar sticks to the bottom so Sign is always reachable. */
  .sq-public__actions { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; max-width: none; padding: var(--space-3) var(--space-4); background: var(--surface); border-top: 1px solid var(--line); box-shadow: var(--shadow-bar); z-index: 5; }
  .sq-public__actions .sq-btn { flex: 1; justify-content: center; }
  .sq-public__actions--sign .sq-btn:not(.sq-btn--primary) span { display: none; }
  .sq-public__actions--sign .sq-btn:not(.sq-btn--primary) { flex: 0 0 auto; }
}
@media print {
  .sq-public { padding: 0; }
  .sq-public__actions, .sq-sheet__actions--sign { display: none !important; }
}

/* ---------- Busy overlay for whole-screen loads ---------- */
.sq-loading { flex: 1; display: grid; place-items: center; min-height: 40vh; color: var(--ink-muted); gap: var(--space-3); grid-auto-flow: row; text-align: center; font-size: 13px; }

/* ---------- My quotes toolbar (3.0.3) ---------- */
.sq-toolbar { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-4); }
.sq-toolbar__controls { display: grid; grid-template-columns: minmax(220px, 1.6fr) repeat(3, minmax(150px, 1fr)); gap: var(--space-3); align-items: end; }
.sq-toolbar__controls .sq-field { gap: var(--space-1); }
.sq-toolbar__controls .sq-field__label { font-size: 12px; }
.sq-toolbar__meta { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 28px; }
.sq-toolbar__summary { margin: 0; font-size: 13px; color: var(--ink-muted); }
.sq-table__sort { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; letter-spacing: inherit; text-transform: inherit; }
.sq-table__sort { white-space: nowrap; } /* 3.0.15.2: Our Price on one line */
.sq-table__sort:hover, .sq-table__sort:focus-visible { color: var(--brand-ink); outline: none; }
.sq-table__sort--active { color: var(--brand-ink); }
.sq-table__sort--asc svg { transform: rotate(180deg); }
.sq-table th[aria-sort] { color: var(--brand-ink); }
.sq-actions-inline { display: flex; gap: var(--space-2); flex-wrap: wrap; }
@media (max-width: 899px) {
  .sq-toolbar__controls { grid-template-columns: 1fr 1fr; }
  .sq-toolbar__controls .sq-field:first-child { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
  .sq-toolbar__controls { grid-template-columns: 1fr; }
  .sq-toolbar__meta { flex-direction: column; align-items: flex-start; }
}

/* ---------- Customers (3.0.4) ---------- */
.sq-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.sq-prefill { display: flex; align-items: flex-start; gap: var(--space-3); margin-bottom: var(--space-5); flex-wrap: wrap; }
.sq-prefill .sq-alert { flex: 1 1 320px; }
.sq-table__name { text-decoration: none; color: var(--ink) !important; font-weight: 600; }
.sq-table__name .sq-qtable__meta { font-weight: 400; }
.sq-table__name:hover { text-decoration: underline; }
.sq-toolbar--customers .sq-toolbar__controls { grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(150px, 1fr)); }
.sq-customer-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-5); align-items: start; }
.sq-customer__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-4); }
.sq-customer__who { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.sq-customer__who .sq-page__title { overflow-wrap: anywhere; }
.sq-customer__status { min-width: 200px; }
.sq-customer__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-3) var(--space-5); margin: 0; }
.sq-customer__facts dt { font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: 0.08em; color: var(--ink-muted); text-transform: uppercase; }
.sq-customer__facts dd { margin: 2px 0 0; font-size: 15px; line-height: 22px; overflow-wrap: anywhere; }
.sq-customer__facts a { color: var(--brand-ink); font-weight: 600; }
.sq-rule { border: 0; border-top: 1px solid var(--line); margin: var(--space-4) 0; }
.sq-notes { display: flex; flex-direction: column; gap: var(--space-3); }
.sq-note { padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--surface-muted); }
.sq-note--system { background: transparent; border: 1px dashed var(--line); }
.sq-note__meta { display: flex; align-items: center; gap: var(--space-1); font-size: 12px; line-height: 16px; color: var(--ink-muted); margin-bottom: 4px; }
.sq-note__text { font-size: 15px; line-height: 22px; white-space: pre-line; overflow-wrap: anywhere; }
.sq-note--system .sq-note__text { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.sq-cquotes { display: flex; flex-direction: column; }
.sq-cquote { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: var(--space-3) var(--space-4); padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
.sq-cquote:last-child { border-bottom: 0; }
.sq-cquote__main { min-width: 0; display: flex; flex-direction: column; }
.sq-cquote__money { font-family: var(--font-mono); font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 899px) {
  .sq-customer-grid { grid-template-columns: 1fr; }
  .sq-toolbar--customers .sq-toolbar__controls { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 599px) {
  .sq-grid-2 { grid-template-columns: 1fr; }
  .sq-toolbar--customers .sq-toolbar__controls { grid-template-columns: 1fr; }
  .sq-customer__status { min-width: 0; width: 100%; }
  .sq-cquote { grid-template-columns: minmax(0, 1fr) auto; }
  .sq-cquote .sq-table__badges { grid-column: 1; }
  .sq-cquote .sq-table__actions { grid-column: 1 / -1; }
}

/* ---------- Customer quote content (3.0.3) ---------- */
/* About us: an editorial block in the sheet's own typographic system — eyebrow, heading and
   text side by side, closed by a hairline. No box, no accent bar. */
.sq-about { padding: var(--space-5) 0; border-bottom: 1px solid var(--line); }
.sq-about__eyebrow { margin-top: 0; }
.sq-about__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2) var(--space-7); align-items: start; }
.sq-about__title { font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.sq-about__text { font-size: 15px; line-height: 24px; color: var(--ink-muted); }
.sq-about__text p { margin: 0 0 var(--space-3); }
.sq-about__text p:last-child { margin-bottom: 0; }
.sq-about__grid > .sq-about__text:only-child { grid-column: 1 / -1; }
@media (max-width: 599px) {
  .sq-about__grid { grid-template-columns: 1fr; gap: var(--space-2); }
  .sq-about__title { font-size: 20px; line-height: 26px; }
}
.sq-qtable__brandline { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-1) 6px; margin-top: 3px; }
.sq-qtable__brandlogo { height: 20px; width: auto; max-width: 96px; object-fit: contain; display: inline-block; vertical-align: middle; }
.sq-qtable__brandname { color: inherit; font-weight: 600; text-decoration: none; }
a.sq-qtable__brandname:hover { text-decoration: underline; color: var(--brand-ink); }
.sq-qtable__dot { color: var(--line-strong); }
.sq-qtable__warranty { display: inline-flex; align-items: center; gap: 3px; color: var(--brand-ink); font-weight: 600; }
.sq-qtable__docs { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); margin-top: var(--space-1); font-size: 13px; line-height: 18px; }
.sq-qtable__docs a { display: inline-flex; align-items: center; gap: 3px; color: var(--brand-ink); font-weight: 600; text-decoration: none; }
.sq-qtable__docs a:hover { text-decoration: underline; }
.sq-pay { padding: var(--space-4) var(--space-5); background: var(--surface-muted); border-radius: var(--radius-md); }
.sq-pay__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-3) var(--space-5); margin: 0; }
.sq-pay__item dt { font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: 0.08em; color: var(--ink-muted); text-transform: uppercase; }
.sq-pay__item dd { margin: 2px 0 0; font-family: var(--font-mono); font-size: 15px; line-height: 22px; font-weight: 500; }
.sq-pay__note { margin: var(--space-3) 0 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
@media print {
  .sq-pay { background: #ffffff; border: 1px solid var(--print-line); break-inside: avoid; }
  .sq-about { break-inside: avoid; border-color: var(--print-line); }
  /* 3.0.5: print the host, not the whole URL - a long datasheet link used to break the row over three lines. */
  .sq-qtable__docs a::after { content: " (" attr(data-host) ")"; font-weight: 400; color: var(--print-ink); }
  .sq-qtable__grouprow { break-inside: avoid; break-after: avoid; }
  .sq-qtable__grouprow th.sq-qtable__group { border-color: var(--print-line); }
}

/* ---------- Access screen: sign-up link, code entry, secondary row (3.0.5) ---------- */
.sq-access__title { font-size: 19px; line-height: 26px; font-weight: 600; margin: var(--space-2) 0 var(--space-1); } /* 3.0.11 invitation */
.sq-invite__who { display: flex; flex-direction: column; gap: 2px; padding: var(--space-3); margin-bottom: var(--space-4); background: var(--surface-muted); border-radius: var(--radius-md); font-size: 15px; word-break: break-all; }
.sq-access__alt { margin: var(--space-4) 0 0; text-align: center; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.sq-access__alt .sq-btn { vertical-align: baseline; }
.sq-access__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); flex-wrap: wrap; }
.sq-access__card .sq-pin { justify-content: center; }
.sq-access__card .sq-check { margin-top: var(--space-1); }
.sq-appbar__link--quiet { opacity: 0.72; }
/* 3.0.10: the Manager tag beside the name, on every app page */
.sq-appbar__role { display: inline-block; margin-left: var(--space-2); padding: 0 8px; border-radius: var(--radius-pill); background: var(--glass-inverse); border: 1px solid var(--glass-inverse-line); color: var(--ink-inverse); font-size: 11px; line-height: 18px; font-weight: 600; letter-spacing: 0.04em; vertical-align: 1px; }
.sq-appbar__link--quiet:hover { opacity: 1; }


/* ---------------------------------------------------------------------------
   Narrow phones (3.0.5)

   Two things were wrong and they shared a cause. `.sq-page` and `.sq-success`
   are flex children of `.sq-app` (a flex column), and auto side margins on a
   flex item suppress `stretch` - the item is then sized shrink-to-fit. So a
   list with rows filled the container and the same list with none rendered
   narrower, and on a 420px phone a card-based view sat in a 20px dead gutter
   looking oddly inset. `width: 100%` restores a constant width; the auto
   margins still centre whatever is left over at desktop.

   Below 400px the gutters and card padding also come in, so a 320px screen
   spends its width on content rather than on chrome.
   --------------------------------------------------------------------------- */

.sq-page { width: 100%; }
.sq-success { width: 100%; }

@media (max-width: 399px) {
  .sq-page { padding-left: var(--space-3); padding-right: var(--space-3); padding-top: var(--space-4); }
  .sq-success { padding: var(--space-5) var(--space-3) var(--space-7); }
  .sq-card { padding: var(--space-4); }
  .sq-access { padding: var(--space-4) var(--space-3); }
  .sq-btn { padding: 0 var(--space-3); }
  .sq-actionbar__inner { padding-left: var(--space-3); padding-right: var(--space-3); }
  .sq-builder__steps { padding: 0 var(--space-3); }
  .sq-page__title { font-size: 21px; line-height: 28px; }
  .sq-table tr { padding: var(--space-3); }
  .sq-sheet { padding: var(--space-4) var(--space-3); }
  .sq-line__override .sq-money { width: 100%; }
  .sq-toolbar__controls { grid-template-columns: 1fr; }
}

/* A phone is never wide enough for two tiles, and 320px is not wide enough for
   the tile art plus a two-line description beside it. */
@media (max-width: 359px) {
  .sq-appbar__link { font-size: 11px; padding: 0 var(--space-1); }
  .sq-tile { padding: var(--space-4); }
}

/* Six code boxes at a fixed 48px come to 328px with their gaps - wider than a
   320px screen. Let them share the row instead, never growing past 48px. */
.sq-access__card .sq-pin__box { flex: 1 1 0; min-width: 0; max-width: 48px; }
@media (max-width: 359px) {
  .sq-access__card .sq-pin { gap: var(--space-1); }
}

/* The access screen is a one-column grid whose column was sized to the card's
   own content, so the six code boxes widened the column past the viewport on a
   320px phone. Pin the column to the container and centre the card with auto
   margins instead of justify-items. */
.sq-access { grid-template-columns: minmax(0, 1fr); justify-items: stretch; }
.sq-access__card { margin-left: auto; margin-right: auto; min-width: 0; }
.sq-access__card .sq-pin { min-width: 0; }

/* Between the card breakpoint (600px) and the desktop layout, the quote and
   customer tables want about 990px for seven columns. Let the table scroll
   inside its own host so the page itself never scrolls sideways on a tablet;
   at 900px and up nothing changes. */
@media (min-width: 600px) {
  /* 3.0.8: from 600px up, not only to 899px - My quotes needs about 1,060px with real data, so
     900-1090px (an iPad in landscape) scrolled the whole page and pushed the actions off-screen. */
  .sq-table-host { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-lg); }
  .sq-table { box-shadow: none; }
}

/* Just above the phone breakpoint the desktop app bar still had the rep block
   and five links on one row, which overflowed around 610px. Let every part of
   it wrap; at desktop widths there is nothing to wrap and it looks the same. */
.sq-appbar { flex-wrap: wrap; }
.sq-appbar__rep { flex-wrap: wrap; min-width: 0; }
.sq-appbar__actions { flex-wrap: wrap; }


/* ---------- Quote plans (3.0.6) ----------
   Three surfaces: the Job details block on the sheet, the extra columns in the line
   table (with unpriced unit sub-rows under a line whose units differ), and the line
   attribute fields inside a builder row.

   The sheet's table is a real table at every width - it is not card-ified like the app's
   own lists - so five columns only fit once the sheet is wide enough for them. Below a
   900px viewport the attribute columns and the unit sub-rows are hidden and the same
   answers are stacked inside the item cell instead, which is what .sq-qtable__attrs is for.
   --------------------------------------------------------------------------- */

.sq-job { padding: var(--space-4) 0 0; }
.sq-job .sq-sheet__eyebrow { margin: 0; }
.sq-job__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-3) var(--space-5); margin: var(--space-2) 0 0; }
.sq-job__item dt { font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: 0.08em; color: var(--ink-muted); text-transform: uppercase; }
.sq-job__item dd { margin: 2px 0 0; font-size: 15px; line-height: 22px; font-weight: 500; }

.sq-qtable th.sq-qtable__col--attr, .sq-qtable td.sq-qtable__attr { width: 1%; min-width: 116px; white-space: normal; padding-left: var(--space-4); text-align: left; }
.sq-qtable td.sq-qtable__attr { font-size: 14px; line-height: 20px; max-width: 160px; }
.sq-qtable tr.sq-qtable__row--split > td { border-bottom: 0; padding-bottom: var(--space-2); }
.sq-qtable__unitrow > td { border-bottom: 0; padding: 0 0 var(--space-2); font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.sq-qtable__unitrow > td.sq-qtable__attr { padding-left: var(--space-4); }
.sq-qtable__unitrow--last > td { border-bottom: 1px solid var(--line); padding-bottom: var(--space-3); }
.sq-qtable__unit { padding-left: var(--space-4); font-variant-numeric: tabular-nums; }

/* The phone stack: hidden while the columns are visible. */
.sq-qtable__attrs { display: none; }
.sq-qtable__attrpair { display: block; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.sq-qtable__attrunit { display: block; margin-top: var(--space-1); }
.sq-qtable__attrlabel { display: block; font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }

/* Measured on the sheet, not guessed: the sheet is 472px wide inside a 600px viewport and
   625px inside 768px, so five columns leave the item name 84px and it stacks one word per
   line. The columns are worth having only once the sheet is wide enough for them, which is
   a viewport of about 900px - the same width at which the app's own tables stop scrolling.
   Below that the same answers stack inside the item cell instead. */
@media screen and (max-width: 899px) {
  .sq-qtable th.sq-qtable__col--attr, .sq-qtable td.sq-qtable__attr, .sq-qtable__unitrow { display: none; }
  .sq-qtable tr.sq-qtable__row--split > td { border-bottom: 1px solid var(--line); padding-bottom: var(--space-3); }
  .sq-qtable__attrs { display: block; margin-top: var(--space-1); }
}

@media print {
  /* The page is narrower than a desktop window, so the attribute columns give up their
     minimum and size to their content; the item name keeps the rest. */
  .sq-qtable th.sq-qtable__col--attr, .sq-qtable td.sq-qtable__attr { min-width: 0; padding-left: 12px; }
  .sq-qtable__attrs { display: none !important; }
  .sq-qtable__unitrow { break-before: avoid; break-inside: avoid; }
  .sq-qtable__unitrow > td { color: var(--print-ink); }
  .sq-qtable__unitrow--last > td { border-color: var(--print-line); }
  .sq-job { break-inside: avoid; }
}

/* ---------- The line attribute fields in the builder ---------- */

.sq-lineplan { grid-column: 1 / -1; display: flex; flex-direction: column; gap: var(--space-2); padding-top: var(--space-3); margin-top: var(--space-1); border-top: 1px dashed var(--line); }
.sq-lineplan__fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-2) var(--space-3); }
.sq-lineplan__unit { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: var(--space-2) var(--space-3); align-items: start; padding-bottom: var(--space-2); }
.sq-lineplan__unit + .sq-lineplan__unit { border-top: 1px solid var(--line); padding-top: var(--space-2); }
.sq-lineplan__unitlabel { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ink-muted); padding-top: 22px; }
.sq-lineplan__foot { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.sq-lineplan__toggle { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--brand-ink); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.sq-lineplan__toggle:hover { text-decoration: none; }
.sq-lineplan__hint { font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.sq-planfield--compact .sq-field__label { font-size: 12px; line-height: 16px; }
.sq-planfield--compact .sq-select, .sq-planfield--compact .sq-input { height: 40px; }

@media (max-width: 599px) {
  .sq-lineplan__fields { grid-template-columns: 1fr 1fr; }
  .sq-lineplan__unit { grid-template-columns: 1fr; }
  .sq-lineplan__unitlabel { padding-top: 0; }
}
@media (max-width: 399px) {
  .sq-lineplan__fields { grid-template-columns: 1fr; }
}

/* 3.0.7: the rep preview ribbon on the sheet rendition. */
.sq-preview-ribbon { position: fixed; z-index: 60; top: 12px; left: 12px; background: var(--warning); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; padding: 8px 12px; border-radius: 8px; box-shadow: var(--shadow-pop); pointer-events: none; }
@media print { .sq-preview-ribbon { display: none; } }

/* 3.0.7: the Proposal extras panel on the Preview step. */
.sq-extras { margin-bottom: var(--space-5); }
.sq-extras__h { font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-muted); margin: var(--space-4) 0 var(--space-2); }
.sq-extras__list { display: flex; flex-direction: column; gap: var(--space-2); }
.sq-extras__note { font-size: 13px; line-height: 18px; color: var(--ink-muted); margin: var(--space-2) 0 0; }
.sq-extras__actions { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.sq-extras__actions .sq-extras__note { margin: 0; flex: 1 1 240px; }

/* ---------------------------------------------------------------------------
   3.0.8 polish
   --------------------------------------------------------------------------- */

/* Line items: 16px between "Add a product" and the first line (it was 0). */
.sq-picker-row + .sq-lines { margin-top: var(--space-4); }
.sq-line:focus { outline: none; }
.sq-line:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Our Price: the money field held its 180px only while there was room, and shrank to 111px on a
   320px phone, clipping the figure the rep types. It keeps its width, and on a narrow phone the
   row stacks so the field can take the full width. */
.sq-pricing__row--input .sq-money { flex: none; }
@media (max-width: 479px) {
  .sq-pricing__row--input { flex-wrap: wrap; }
  .sq-pricing__row--input .sq-pricing__label { flex: 1 1 100%; }
  .sq-pricing__row--input .sq-money { width: 100%; }
}

/* The action bar's message slot is a spacer on wider screens and its own row on phones; empty,
   it took a whole row and made the bar 137px tall on a small phone. */
.sq-actionbar__msg:empty { display: none; }
@media (min-width: 600px) {
  .sq-actionbar__msg:empty { display: block; }
}

/* A long rep email can break, so the rep card (preview and customer sheet) never pushes the
   page sideways on a phone. */
.sq-rep > div { min-width: 0; }
.sq-rep__contact a { overflow-wrap: anywhere; }

/* Preview: room for the Edit button beside a long customer name. */
@media (min-width: 600px) {
  .sq-sheet__customer--editable .sq-sheet__name { padding-right: 96px; }
}

/* Emails in My quotes wrap instead of widening the table. */
.sq-qtable__meta { overflow-wrap: anywhere; }

/* Quote numbers on the customer screen take the brand ink like every other link. */
.sq-cquote .sq-table__num { color: var(--brand-ink); font-weight: 600; }

/* Step headings take focus after Continue / Back, without a ring for mouse users. */
.sq-card__title[tabindex="-1"]:focus { outline: none; }
.sq-card__title[tabindex="-1"]:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }


/* 3.0.9: package pricing - the count and the price per certificate stack like Our Price on a
   narrow phone, with the reset link under the field. */
@media (max-width: 479px) {
  .sq-pricing__row--input .sq-pricing__count,
  .sq-pricing__row--input .sq-pricing__pricewrap,
  .sq-pricing__pricewrap .sq-money { width: 100%; }
  .sq-pricing__pricewrap { align-items: flex-start; }
}

/* ---------- Shared components (3.0.11) ----------
   Promoted from manage.css: the rep app now uses chips (the Updated notices), the row menu,
   tabs (My quotes) and dialogs (Duplicate, Send on behalf), so both apps load them from here. */
.sq-chips { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.sq-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px; border-radius: var(--radius-pill); background: var(--surface-muted); border: 1px solid var(--line); font-size: 13px; line-height: 18px; color: var(--ink); }
.sq-chip--brand { background: var(--brand-soft); border-color: var(--brand-soft-line); color: var(--brand-ink); font-weight: 600; }
.sq-chip--positive { background: var(--positive-soft); border-color: var(--positive-line); color: var(--positive-ink); font-weight: 600; }
.sq-chip--warning { background: var(--warning-soft); border-color: var(--warning-line); color: var(--warning); font-weight: 600; }
.sq-chip--danger { background: var(--danger-soft); border-color: var(--danger-line); color: var(--danger); font-weight: 600; }
.sq-chip--muted { color: var(--ink-muted); }
.sq-chip svg { width: 14px; height: 14px; }
.sq-chip__x { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-right: -6px; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.sq-chip__x:hover { background: var(--line); }
.sq-chips__clear { font-size: 13px; }

/* ---------- Menu ---------- */
.sq-menu { position: relative; display: inline-block; }
/* 3.0.11: open, the popover is fixed to the viewport so a scrolling table cannot clip it. */
.sq-menu__pop.sq-menu__pop--fixed { position: fixed; margin-top: 0; max-height: calc(100vh - 16px); overflow-y: auto; }
.sq-menu__pop { position: absolute; right: 0; top: 100%; z-index: 50; min-width: 200px; margin-top: 4px; padding: var(--space-1); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-pop); }
.sq-menu--left .sq-menu__pop { right: auto; left: 0; }
.sq-menu__item { display: flex; align-items: center; gap: var(--space-2); width: 100%; min-height: 36px; padding: 0 var(--space-3); border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 14px; text-align: left; border-radius: var(--radius-sm); cursor: pointer; }
.sq-menu__item:hover, .sq-menu__item:focus-visible { background: var(--surface-muted); outline: none; }
.sq-menu__item:focus-visible { box-shadow: inset 0 0 0 2px var(--focus); }
.sq-menu__item[disabled] { color: var(--ink-disabled); cursor: not-allowed; }
.sq-menu__item--danger { color: var(--danger); }
.sq-menu__item--danger:hover { background: var(--danger-soft); }
.sq-menu__item svg { width: 16px; height: 16px; color: var(--ink-muted); flex: none; }
.sq-menu__item--danger svg { color: inherit; }
.sq-menu__note { margin: var(--space-1) 0 0; text-align: left; padding: var(--space-2) var(--space-3); max-width: 260px; font-size: 12px; line-height: 17px; color: var(--ink-muted); }
.sq-menu__sep { height: 1px; margin: var(--space-1) 0; background: var(--line); }

/* ---------- Tabs ---------- */
.sq-tabs { display: flex; gap: var(--space-1); border-bottom: 1px solid var(--line); margin-bottom: var(--space-4); overflow-x: auto; scrollbar-width: none; }
.sq-tabs::-webkit-scrollbar { display: none; }
.sq-tabs__tab { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: 0 var(--space-3); border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: transparent; color: var(--ink-muted); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.sq-tabs__tab:hover { color: var(--ink); }
.sq-tabs__tab[aria-selected="true"] { color: var(--brand-ink); border-bottom-color: var(--brand); }
.sq-tabs__badge { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--ink-muted); background: var(--surface-muted); border-radius: var(--radius-pill); padding: 0 8px; line-height: 20px; }

/* ---------- Dialog ---------- */
.sq-dialog { position: fixed; inset: 0; z-index: 96; /* 3.0.17.1: above a sheet it opens from (95) */ display: grid; place-items: center; padding: var(--space-4); }
.sq-dialog__scrim { position: absolute; inset: 0; background: var(--scrim); }
.sq-dialog__panel { position: relative; width: 100%; max-width: 440px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-card-lg); padding: var(--space-5); outline: none; }
.sq-dialog__title { font-size: 19px; line-height: 26px; font-weight: 600; margin: 0 0 var(--space-2); }
.sq-dialog__text { font-size: 15px; line-height: 22px; color: var(--ink); margin: 0 0 var(--space-4); }
.sq-dialog__actions { display: flex; justify-content: flex-end; gap: var(--space-2); flex-wrap: wrap; }
.sq-dialog__panel > :not(.sq-dialog__title):not(.sq-dialog__text):not(.sq-dialog__actions) { margin-bottom: var(--space-5); }
.sq-dialog__panel .sq-alert + .sq-field { margin-top: var(--space-4); }
/* 3.0.22.2: a dialog taller than the screen scrolls, with its top and its buttons in reach (a 320x568 phone); centred when it fits */
.sq-dialog { overflow-y: auto; overscroll-behavior: contain; align-items: start; }
.sq-dialog__scrim { position: fixed; }
.sq-dialog__panel { margin-block: auto; }
@media (max-width: 599px) {
  .sq-dialog__actions .sq-btn { flex: 1 1 100%; }
}

/* ---------- 3.0.11: option cards (a radio choice), the draft bar, the Updated notices ---------- */
.sq-choices { display: grid; gap: var(--space-2); margin: 0 0 var(--space-4); }
.sq-choices__label { margin: 0; font-size: 13px; line-height: 16px; font-weight: 600; color: var(--ink); } /* 3.0.15.1 */
.sq-choice { position: relative; display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-3) var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); cursor: pointer; }
.sq-choice:hover { border-color: var(--line-strong); }
.sq-choice:has(.sq-choice__input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.sq-choice__input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.sq-choice__input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sq-choice__body { display: grid; gap: 2px; }
.sq-choice__title { font-weight: 600; font-size: 15px; line-height: 22px; color: var(--ink); }
.sq-choice__sub { font-size: 13px; line-height: 18px; color: var(--ink-muted); }

.sq-draftbar { border-bottom: 1px solid var(--line); background: var(--surface); }
.sq-draftbar__inner { max-width: 960px; margin: 0 auto; padding: var(--space-2) var(--space-4); display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; min-height: 48px; }
.sq-draftbar__status { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.sq-draftbar__status > svg { flex: none; }
.sq-draftbar--ok .sq-draftbar__status > svg { color: var(--positive-ink); }
.sq-draftbar--warn { background: var(--warning-soft); border-bottom-color: var(--warning-line); }
.sq-draftbar--warn .sq-draftbar__status { color: var(--ink); }
.sq-draftbar--warn .sq-draftbar__status > svg { color: var(--warning); }
.sq-draftbar__owner, .sq-draftbar__from { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: var(--radius-pill); background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; font-size: 13px; }
.sq-draftbar__from { background: var(--surface-muted); color: var(--ink); font-weight: 500; }
.sq-draftbar__actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }

.sq-noticebar { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-3) var(--space-4); margin: 0 0 var(--space-4); border: 1px solid var(--brand-soft-line); border-radius: var(--radius-md); background: var(--brand-soft); color: var(--ink); }
.sq-noticebar > svg { color: var(--brand-ink); flex: none; margin-top: 2px; }
.sq-noticebar__body { flex: 1; display: grid; gap: 2px; font-size: 14px; line-height: 20px; }
.sq-noticebar__body strong { font-size: 15px; }
.sq-noticebar__body span { color: var(--ink-muted); }
.sq-notices { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0 0 var(--space-3); }
.sq-notice { max-width: 100%; white-space: normal; height: auto; min-height: 28px; padding-top: 3px; padding-bottom: 3px; animation: sq-notice-in 240ms ease-out; }
.sq-noticed .sq-notices { margin-bottom: var(--space-2); }
.sq-line__notices { grid-column: 1 / -1; margin: var(--space-2) 0 0; }
.sq-line--gone { border-color: var(--danger-line); background: linear-gradient(0deg, var(--danger-soft), var(--danger-soft)); }
@keyframes sq-notice-in { from { opacity: 0; transform: translateY(-2px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sq-notice { animation: none; } }
@media (max-width: 599px) {
  .sq-draftbar__inner { padding: var(--space-2) var(--space-4); }
  .sq-draftbar__actions { width: 100%; }
  .sq-draftbar__actions .sq-btn { flex: 1; }
}

/* 3.0.11: My quotes - tabs, a row menu that is not clipped by the table, drafts and archived rows. */
.sq-table.sq-table--menus { overflow: visible; }
.sq-table--menus thead tr:first-child th:first-child { border-top-left-radius: var(--radius-lg); }
.sq-table--menus thead tr:first-child th:last-child { border-top-right-radius: var(--radius-lg); }
.sq-table--menus tbody tr:last-child td:first-child { border-bottom-left-radius: var(--radius-lg); }
.sq-table--menus tbody tr:last-child td:last-child { border-bottom-right-radius: var(--radius-lg); }
.sq-table__actions .sq-menu { display: inline-flex; }
.sq-table__row--archived td { color: var(--ink-muted); }
.sq-table__row--archived .sq-table__num { color: var(--ink-muted); font-weight: 600; }
.sq-qtable__editedby { display: inline-flex; align-items: center; gap: 4px; color: var(--brand-ink); font-weight: 600; }
.sq-callout { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; padding: var(--space-2) var(--space-3); margin: 0 0 var(--space-3); border: 1px solid var(--warning-line); background: var(--warning-soft); border-radius: var(--radius-md); font-size: 14px; line-height: 20px; }
.sq-callout > svg { color: var(--warning); flex: none; }
.sq-list-note { margin: 0 0 var(--space-3); font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.sq-page--wide > .sq-tabs { margin-top: calc(var(--space-2) * -1); }
.sq-cquote--archived { opacity: 0.8; }
.sq-cquote--archived .sq-table__num { color: var(--ink-muted); }
.sq-cquote--draft .sq-table__num { color: var(--warning); }
.sq-table a.sq-btn--primary, .sq-table a.sq-btn--primary:hover { color: var(--on-brand); }

/* 3.0.12: reordering lines */
.sq-lines__hint { margin: var(--space-3) 0 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.sq-lines__hint[hidden] { display: none; }
.sq-lines__hint + .sq-lines { margin-top: var(--space-2); }
.sq-line--moved { animation: sq-line-moved 900ms ease-out; }
@keyframes sq-line-moved { from { box-shadow: 0 0 0 3px var(--focus); } to { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .sq-line--moved { animation: none; } }

/* 3.0.12: a package line added on top of Our Price */
.sq-line__ontop { flex-basis: 100%; }
.sq-line--extra .sq-line__total::before { content: '+ '; color: var(--ink-muted); }
.sq-line--extra .sq-line__total::after { content: 'on top'; display: block; font-family: var(--font-sans); font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--brand-ink); }
.sq-pricing__row--extras .sq-pricing__value { color: var(--ink); }

/* 3.0.12: notes with photos, editing and history (NotesPanel) */
.sq-notes__composer { display: flex; flex-direction: column; gap: var(--space-2); }
.sq-notes__foot { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.sq-notes__foot .sq-counter { margin-left: auto; }
.sq-note__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-2); }
.sq-note__head .sq-note__meta { flex-wrap: wrap; }
.sq-note__tools { flex: none; margin: -6px -8px 0 0; }
.sq-note__edited { font-size: 12px; line-height: 16px; font-weight: 600; margin-left: var(--space-1); }
.sq-note__history { margin-top: var(--space-3); padding-top: var(--space-2); border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: var(--space-2); }
.sq-note__history[hidden] { display: none; }
.sq-note__historytitle { margin: 0; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.sq-note__version .sq-note__text { font-size: 14px; color: var(--ink-muted); }
.sq-note--editing { display: flex; flex-direction: column; gap: var(--space-2); background: var(--surface); border: 1px solid var(--line-strong); }
/* 3.0.14.1: the edit form - attach and the count on one line, then Cancel and Save on their own, right-aligned */
.sq-note--editing .sq-photos { margin-top: 0; }
.sq-notes__foot .sq-btn { white-space: nowrap; }
.sq-notes__composer .sq-notes__foot > .sq-btn--primary { margin-left: auto; }
.sq-note__actions { display: flex; justify-content: flex-end; align-items: center; gap: var(--space-2); margin-top: var(--space-1); padding-top: var(--space-3); border-top: 1px solid var(--line); }
.sq-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 112px)); gap: var(--space-2); margin-top: var(--space-2); } /* 3.0.14.1: tiles stay tile-sized, never a full-width square in a narrow card */
.sq-photos--small { grid-template-columns: repeat(auto-fill, minmax(56px, 72px)); }
.sq-photos[hidden] { display: none; }
.sq-photos__tile { position: relative; }
.sq-photos__item { display: block; width: 100%; aspect-ratio: 1 / 1; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: var(--surface-muted); cursor: zoom-in; }
.sq-photos__item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sq-photos__item:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sq-photos__x { position: absolute; top: -8px; right: -8px; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-pop); cursor: pointer; }
.sq-photos__x::before { content: ''; position: absolute; inset: -8px; }
.sq-photos__progress { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.85); overflow: hidden; }
.sq-photos__progress span { display: block; height: 100%; background: var(--brand); transition: width 120ms linear; }
.sq-photos__tile--failed .sq-photos__item { border-color: var(--danger-line); opacity: 0.6; }
.sq-photos__retry { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 4px 10px; border-radius: var(--radius-sm); border: 1px solid var(--danger-line); background: var(--surface); color: var(--danger); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.sq-phototray__msg { margin: 0; font-size: 13px; line-height: 18px; color: var(--warning); }
.sq-phototray__msg:empty { display: none; }
.sq-lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8, 15, 25, 0.94); display: flex; flex-direction: column; color: #fff; }
.sq-lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-4); padding-top: max(var(--space-3), env(safe-area-inset-top)); }
.sq-lightbox__caption { margin: 0; font-size: 14px; line-height: 20px; min-width: 0; }
.sq-lightbox__tools { display: flex; align-items: center; gap: var(--space-2); flex: none; }
.sq-lightbox__dl { color: var(--ink); }
.sq-lightbox__close, .sq-lightbox__nav { background: rgba(255,255,255,0.12); color: #fff; border-color: transparent; }
.sq-lightbox__close:hover, .sq-lightbox__nav:hover { background: rgba(255,255,255,0.24); }
.sq-lightbox__stage { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; padding: var(--space-2) var(--space-3) max(var(--space-4), env(safe-area-inset-bottom)); touch-action: pan-y pinch-zoom; }
.sq-lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius-sm); user-select: none; -webkit-user-drag: none; }
.sq-lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; }
.sq-lightbox__nav--prev { left: var(--space-3); }
.sq-lightbox__nav--next { right: var(--space-3); }
.sq-lightbox__nav[hidden] { display: none; }
@media (max-width: 599px) { .sq-lightbox__nav { top: auto; bottom: max(var(--space-4), env(safe-area-inset-bottom)); transform: none; } .sq-lightbox__dl span { display: none; } }

/* 3.0.14: videos and documents on notes, and the Files tab */
.sq-photos__item { position: relative; }
.sq-photos__item--video { cursor: pointer; }
.sq-photos__item--doc { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: var(--space-2); text-decoration: none; color: var(--ink); cursor: pointer; box-sizing: border-box; }
.sq-photos__item--doc:hover { border-color: var(--line-strong); }
.sq-photos__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(8, 15, 25, 0.66); color: #fff; pointer-events: none; }
.sq-photos__play svg { margin-left: 2px; fill: currentColor; }
.sq-file__icon { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; color: var(--ink-muted); }
.sq-photos__item .sq-file__icon { position: absolute; inset: 0; justify-content: center; }
.sq-photos__item--doc .sq-file__icon { position: static; }
.sq-file__ext { font-size: 10px; line-height: 12px; font-weight: 700; letter-spacing: 0.04em; color: var(--ink-muted); }
.sq-file__name { max-width: 100%; font-size: 11px; line-height: 14px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sq-lightbox__video { width: auto; height: auto; max-height: 100%; background: #000; }
.sq-lightbox__img[hidden] { display: none; }
.sq-filespanel { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-3); }
.sq-filespanel[hidden] { display: none; }
.sq-files__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); }
.sq-files__meter { display: flex; flex-direction: column; gap: 4px; min-width: 160px; font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.sq-files__bar { display: block; height: 6px; border-radius: 3px; background: var(--surface-muted); overflow: hidden; }
.sq-files__bar span { display: block; height: 100%; background: var(--brand); }
.sq-files__bar--full span { background: var(--warning); }
.sq-files { display: flex; flex-direction: column; gap: var(--space-2); }
.sq-files__row { display: grid; grid-template-columns: 64px 1fr; gap: var(--space-3); align-items: center; }
.sq-files__name { font-size: 14px; line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sq-files__meta { min-width: 0; }
.sq-notespanel[hidden] { display: none; }
/* 3.0.14: Find in the Lead Centre */
.sq-lc-find__control { display: flex; align-items: stretch; gap: var(--space-2); } /* 3.0.14.3: the box and Search, one row */
.sq-lc-find__control > .sq-input { flex: 1 1 auto; min-width: 0; }
.sq-lc-find__control > .sq-btn { flex: none; }
.sq-lc-contact .sq-spread { align-items: flex-start; gap: var(--space-3); }
.sq-lc-contact__have { margin: var(--space-3) 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }


/* 3.0.12: Navigate to a customer */
.sq-nav { position: fixed; inset: 0; z-index: 96; /* 3.0.17.1: Navigate from Map this day's sheet */ display: flex; align-items: center; justify-content: center; padding: var(--space-4); }
.sq-nav__scrim { position: absolute; inset: 0; background: var(--scrim, rgba(15, 42, 68, 0.48)); }
.sq-nav__panel { position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-pop); padding: var(--space-5, 24px); display: flex; flex-direction: column; gap: var(--space-3); }
.sq-nav__panel:focus { outline: none; }
.sq-nav__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); }
.sq-nav__title { margin: 0; font-size: 20px; line-height: 26px; font-weight: 600; }
.sq-nav__head .sq-iconbtn { margin: -6px -8px 0 0; flex: none; }
.sq-nav__address { margin: 0; display: flex; align-items: flex-start; gap: var(--space-2); font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.sq-nav__address svg { flex: none; margin-top: 3px; }
.sq-nav__recent { margin: 0; display: flex; align-items: center; gap: var(--space-2); font-size: 13px; line-height: 18px; color: var(--warning); font-weight: 600; }
.sq-nav__label { margin: 0 0 var(--space-2); font-size: 13px; line-height: 18px; font-weight: 600; }
.sq-nav__optional { font-weight: 400; color: var(--ink-muted); }
.sq-nav__etas { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.sq-nav__eta { min-height: 44px; min-width: 64px; padding: 0 var(--space-3); border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.sq-nav__eta[aria-checked="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand, #fff); }
.sq-nav__eta:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sq-nav__why { margin: 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.sq-nav__actions { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-1); }
.sq-nav__actions .sq-btn { min-height: 48px; }
.sq-nav__opens { margin: 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); text-align: center; }
.sq-nav__apps { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.sq-nav__apps[hidden] { display: none; }
.sq-nav__app { display: flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: 0 var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-md); font-size: 14px; cursor: pointer; }
.sq-btn--soft-disabled { opacity: 0.55; }
@media (max-width: 599px) {
  .sq-nav { align-items: flex-end; padding: 0; }
  .sq-nav__panel { max-width: none; border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding-bottom: max(var(--space-5, 24px), env(safe-area-inset-bottom)); }
}
.sq-sourcefield [hidden] { display: none; }
.sq-sourcefield__onrecord { margin: 0; display: flex; align-items: center; gap: var(--space-2); font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.sq-sourcefield__onrecord svg { color: var(--positive-ink, var(--brand-ink)); flex: none; }
/* 3.0.14.2: Administrators delete and restore files */
.sq-files__row--tools { grid-template-columns: 64px 1fr auto; }
.sq-files__deletedwrap { border-top: 1px dashed var(--line); padding-top: var(--space-3); }
.sq-files__deletedtoggle { font-size: 13px; line-height: 18px; font-weight: 600; }
.sq-files__deleted { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-2); }
.sq-files__deleted[hidden] { display: none; }
.sq-files__row--deleted .sq-photos__item { opacity: 0.55; cursor: default; }
.sq-files__row .sq-file__name { display: none; } /* the name is beside the tile already */
/* 3.0.23.4: Download all and Select in the head, and the bar while selecting (DownloadAll.dc.html).
   The panel is a container, so the narrow layout follows the room it has (a phone, the quick view
   beside the builder, Manage's side column), not only the screen's width. */
.sq-filespanel { container: sq-files / inline-size; }
.sq-files__acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.sq-files__acts[hidden], .sq-files__pick[hidden] { display: none; }
.sq-filespanel > .sq-files__meter { align-self: flex-start; width: 100%; max-width: 280px; }
.sq-files__pick { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-muted); }
.sq-files__count { font-size: 14px; line-height: 20px; font-weight: 600; }
.sq-files__pickacts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.sq-files__row--pick { grid-template-columns: 44px 64px minmax(0, 1fr); margin: 0 -8px; padding: 4px 8px; border-radius: 12px; }
.sq-files__row--on { background: var(--brand-tint); }
.sq-files__tick { position: relative; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.sq-files__check { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; } /* over the drawn box, whose tick (opacity 0) would otherwise be what's tapped */
.sq-files__box { box-sizing: border-box; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--line-strong); border-radius: 6px; background: var(--surface); color: var(--on-brand); }
.sq-files__box svg { opacity: 0; }
.sq-files__check:checked + .sq-files__box { background: var(--brand); border-color: var(--brand); }
.sq-files__check:checked + .sq-files__box svg { opacity: 1; }
.sq-files__check:focus-visible + .sq-files__box { outline: 2px solid var(--focus); outline-offset: 2px; }
.sq-files .sq-place { min-height: 24px; } /* where a photo was taken: a pointer's size */
@media (max-width: 899px), (pointer: coarse) {
  .sq-files__acts .sq-btn, .sq-files__pick .sq-btn { min-height: var(--control); }
  .sq-files__head .sq-seg--sm .sq-seg__btn, .sq-files .sq-place { min-height: var(--control); } /* the filter and the place too, a finger's size */
}
/* Narrow: the buttons share the row under the filter, and the bar's buttons fill its width. */
/* At the narrowest (Manage at 320 px), Download all's words take two lines rather than push Select off the row. */
@container sq-files (max-width: 560px) {
  .sq-files__head { flex-direction: column; align-items: stretch; }
  .sq-files__head > .sq-seg { align-self: flex-start; max-width: 100%; }
  .sq-files__acts { flex-wrap: nowrap; align-items: stretch; }
  .sq-files__acts .sq-btn, .sq-files__pickacts .sq-btn { flex: 1 1 auto; }
  .sq-files__acts .sq-btn { min-width: 0; }
  .sq-files__acts .sq-btn + .sq-btn { flex-shrink: 0; }
  .sq-files__pickacts { flex: 1 1 100%; }
}
@supports not (container-type: inline-size) { /* before Safari 16: by the screen's width */
  @media (max-width: 599px) {
    .sq-files__head { flex-direction: column; align-items: stretch; }
    .sq-files__head > .sq-seg { align-self: flex-start; max-width: 100%; }
    .sq-files__acts { flex-wrap: nowrap; align-items: stretch; }
    .sq-files__acts .sq-btn, .sq-files__pickacts .sq-btn { flex: 1 1 auto; }
    .sq-files__acts .sq-btn { min-width: 0; }
    .sq-files__acts .sq-btn + .sq-btn { flex-shrink: 0; }
    .sq-files__pickacts { flex: 1 1 100%; }
  }
}

/* ---------- 3.0.15: the app bar on a phone ----------
   One 56px row: the logo, the page's name, New quote and Menu. Menu opens the rep block (name,
   links, sign-outs) as a panel under the bar, so the links are the same elements at every width.
   Last in the file so it wins over the wrap rules above. 3.0.15.2: tablets too (up to 1023px), where
   the full bar wrapped onto three rows. */
@media (max-width: 1023px) {
  .sq-appbar { flex-wrap: nowrap; min-height: 56px; padding: var(--space-2) var(--space-3); gap: var(--space-2); }
  .sq-appbar__brand { flex: 1 1 auto; min-width: 0; gap: var(--space-2); font-size: 15px; line-height: 20px; }
  .sq-appbar__brand a { display: block; flex: none; max-width: 55%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sq-appbar__logo { max-height: 28px; }
  .sq-appbar__plate { padding: 3px 8px; }
  .sq-appbar__plate .sq-appbar__logo { max-height: 22px; }
  .sq-appbar__page { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
  .sq-appbar__phone { display: flex; align-items: center; gap: var(--space-2); flex: none; }
  .sq-appbar__quick, .sq-appbar__menubtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; min-width: 40px; padding: 0 var(--space-2); border: 1px solid var(--line-inverse); border-radius: var(--radius-md); background: transparent; color: var(--ink-inverse); font: inherit; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; }
  .sq-appbar__quick:focus-visible, .sq-appbar__menubtn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
  .sq-appbar__menubtn[aria-expanded="true"] { background: var(--surface-inverse-hover); }
  .sq-appbar__rep { display: none; }
  .sq-appbar--open .sq-appbar__rep { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-3); position: absolute; left: 0; right: 0; top: 100%; padding: var(--space-3) var(--space-3) var(--space-4); background: var(--surface-inverse); border-top: 1px solid var(--line-inverse); box-shadow: var(--shadow-pop); max-height: calc(100vh - 56px); overflow-y: auto; }
  .sq-appbar--open .sq-appbar__rep > span { display: block; }
  .sq-appbar__actions { flex-direction: column; align-items: stretch; gap: var(--space-2); width: 100%; }
  .sq-appbar__link { display: flex; align-items: center; justify-content: flex-start; text-align: left; min-height: 44px; padding: 0 var(--space-3); font-size: 15px; white-space: nowrap; }
}

/* 3.0.15.2: on a tablet the Menu panel is a panel at the right, not the full width. */
@media (min-width: 600px) and (max-width: 1023px) {
  .sq-appbar--open .sq-appbar__rep { left: auto; width: 360px; border-left: 1px solid var(--line-inverse); border-radius: 0 0 0 var(--radius-md); }
}
/* 3.0.15.2: shown only between 600 and 899px, where a table drops a column. */
.sq-only-md { display: none; }
@media (min-width: 600px) and (max-width: 899px) { .sq-only-md { display: block; } }

/* ---------- 3.0.15: a list row (customers on a phone) ----------
   A title and a chip, muted lines under it, the whole row opening the record, and a ⋯ menu. */
.sq-lrows { display: none; }
.sq-lrows__list { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); overflow: hidden; }
.sq-card .sq-lrows__list { background: transparent; border-radius: 0; box-shadow: none; }
.sq-lrows__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin: 0 0 var(--space-2); font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.sq-card .sq-lrows__head { margin: 0; padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4); border-bottom: 1px solid var(--line); } /* 3.0.15.2: Select above a list in a card */
.sq-lrow { display: flex; align-items: center; gap: var(--space-1); padding: 0 var(--space-1) 0 var(--space-4); border-bottom: 1px solid var(--line); min-height: 64px; }
.sq-lrow:last-child { border-bottom: 0; }
.sq-lrow--selected { background: var(--brand-soft); }
.sq-lrow__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 10px 0; color: inherit; text-decoration: none; background: none; border: 0; text-align: left; font: inherit; cursor: pointer; }
.sq-lrow__main:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: var(--radius-sm); }
.sq-lrow__top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-width: 0; }
.sq-lrow__title { min-width: 0; font-size: 15px; line-height: 20px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sq-lrow__top > :not(.sq-lrow__title) { flex: none; }
.sq-lrow__meta { display: block; font-size: 13px; line-height: 18px; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sq-lrow__mark { display: inline-flex; vertical-align: -2px; margin-left: 4px; color: var(--brand-ink); }
.sq-lrow__check { display: none; flex: none; width: 20px; height: 20px; margin: 0 var(--space-2) 0 0; }
.sq-lrows--selecting .sq-lrow__check { display: block; }
.sq-lrow .sq-menu__btn { width: 44px; height: 44px; }
.sq-lrows__empty { padding: var(--space-5) var(--space-4); }
@media (max-width: 599px) {
  .sq-lrows { display: block; }
  .sq-has-lrows > .sq-table, .sq-has-lrows > .sq-dt { display: none !important; }
  .sq-hide-phone { display: none !important; }
}
@media (min-width: 600px) { .sq-show-phone { display: none !important; } }

/* 3.0.15: the rep app's filters fold behind one button on a phone, like Manage's. */
.sq-toolbar__toggle { display: none; }
@media (max-width: 599px) {
  .sq-toolbar--customers .sq-toolbar__controls { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .sq-toolbar--customers .sq-toolbar__controls > .sq-field:first-child { grid-column: auto; }
  .sq-toolbar--customers .sq-toolbar__toggle { display: inline-flex; min-height: 44px; }
  .sq-toolbar--customers.sq-toolbar--closed .sq-toolbar__controls > .sq-field:not(:first-child) { display: none; }
  .sq-toolbar--customers .sq-toolbar__controls > .sq-field:not(:first-child) { grid-column: 1 / -1; }
  .sq-toolbar--customers { margin-bottom: var(--space-3); gap: var(--space-2); }
  .sq-toolbar--customers .sq-toolbar__meta { flex-direction: row; align-items: center; }
  .sq-page--customers .sq-page__head { flex-direction: row; align-items: center; margin-bottom: var(--space-3); }
  .sq-page--customers .sq-page__title { margin: 0; }
}

/* ---------- 3.0.15: camera and location on notes ---------- */
.sq-phototray__btns { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--space-1); }
@media (max-width: 419px) {
  /* Take photo and Record video go to their icons on a narrow phone; their names stay as labels. */
  .sq-phototray__cam > span:last-child { display: none; }
  .sq-phototray__cam { padding: 0 var(--space-2); }
}
.sq-photos__pin { position: absolute; right: 4px; bottom: 4px; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(8, 15, 25, 0.66); color: #fff; pointer-events: none; }
.sq-lightbox__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sq-lightbox__place .sq-place { color: inherit; opacity: 0.9; }
.sq-place { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; line-height: 18px; color: var(--brand-ink); text-decoration: none; }
.sq-place:hover { text-decoration: underline; }
.sq-place svg { flex: none; }

/* ---------- 3.0.15: the Conversation tab ---------- */
.sq-conv { display: flex; flex-direction: column; gap: var(--space-3); }
.sq-conv[hidden] { display: none; }
.sq-conv__who { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.sq-conv__who svg { flex: none; }
.sq-conv__list { display: flex; flex-direction: column; gap: var(--space-2); max-height: min(60vh, 520px); overflow-y: auto; padding: var(--space-2); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-muted); }
.sq-conv__empty { margin: var(--space-4) auto; font-size: 13px; color: var(--ink-muted); text-align: center; }
.sq-conv__msg { max-width: 82%; padding: var(--space-2) var(--space-3); border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.sq-conv__msg--in { align-self: flex-start; border-bottom-left-radius: 4px; }
.sq-conv__msg--out { align-self: flex-end; background: var(--brand-soft); border-color: var(--brand-soft-line, var(--line)); border-bottom-right-radius: 4px; }
.sq-conv__msg--failed { border-color: var(--danger-line, var(--danger)); }
.sq-conv__msg--other { opacity: 0.9; }
.sq-conv__body { margin: 0; font-size: 15px; line-height: 21px; white-space: pre-line; overflow-wrap: anywhere; }
.sq-conv__meta { margin: 2px 0 0; font-size: 11px; line-height: 15px; color: var(--ink-muted); }
.sq-conv__msg--failed .sq-conv__meta { color: var(--danger); }
.sq-conv__line { align-self: center; display: flex; align-items: center; gap: 6px; max-width: 100%; font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.sq-conv__line svg { flex: none; }
.sq-conv__email summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.sq-conv__email p { margin: var(--space-2) 0 0; padding: var(--space-2) var(--space-3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); font-size: 13px; line-height: 19px; color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }
.sq-conv__compose { display: flex; flex-direction: column; gap: var(--space-2); }
.sq-conv__compose[hidden] { display: none; }
.sq-conv__box { width: 100%; resize: vertical; min-height: 72px; font-size: 15px; line-height: 21px; }
.sq-conv__composefoot { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); }
.sq-conv__sign, .sq-conv__count { display: block; margin: 0; font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.sq-conv__count--over { color: var(--danger); font-weight: 600; }
.sq-conv__why { margin: 0; padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); background: var(--surface-muted); font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.sq-conv__why[hidden] { display: none; }
/* 3.0.15: on a phone the search box's placeholder says what it is; its label stays for screen readers only. */
@media (max-width: 599px) {
  .sq-toolbar--customers .sq-toolbar__controls > .sq-field:first-child .sq-field__label,
  .sq-mcustomers .sq-mtoolbar__row--first > .sq-field:first-child .sq-field__label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .sq-mcustomers .sq-mtoolbar__meta { min-height: 0; }
}
/* 3.0.15 (review): the Conversation panel's Refresh, and a camera shot without a location */
.sq-conv__top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-2); }
.sq-conv__top .sq-btn { flex: none; }
.sq-photos__noplace { position: absolute; left: 4px; right: 4px; bottom: 4px; padding: 1px 4px; border-radius: var(--radius-sm); background: rgba(8, 15, 25, 0.72); color: #fff; font-size: 10px; line-height: 14px; text-align: center; pointer-events: none; }

/* ======================================================================
   3.0.16: getting around, the Planner page, the Today bar.
   ====================================================================== */

/* The app bar: Jump to, and the Planner's count. */
.sq-appbar__jump { display: inline-flex; align-items: center; gap: var(--space-2); flex: none; min-height: var(--control-sm); margin-left: auto; margin-right: var(--space-3); padding: 0 var(--space-2) 0 var(--space-3); border: 1px solid var(--line-inverse); border-radius: var(--radius-md); background: transparent; color: var(--ink-inverse); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.sq-appbar__jump:hover { background: var(--surface-inverse-hover); }
.sq-appbar__jump:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sq-appbar__jump svg { width: 16px; height: 16px; }
.sq-appbar__jump .sq-appbar__kbd { background: transparent; color: var(--ink-inverse-muted); border-color: var(--line-inverse); }
.sq-appbar__count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; margin-left: 6px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--brand); color: var(--on-brand); font-size: 12px; line-height: 20px; font-weight: 700; }
@media (max-width: 1023px) {
  .sq-appbar__jump { margin: 0; min-height: 40px; min-width: 40px; justify-content: center; padding: 0 var(--space-2); }
  .sq-appbar__jumplabel, .sq-appbar__jump .sq-appbar__kbd { display: none; }
}

/* Breadcrumbs in the rep app (Manage has its own in manage.css); not on a phone, where Back says where. */
.sq-page > .sq-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2); font-size: 13px; line-height: 18px; color: var(--ink-muted); margin: 0 0 var(--space-3); }
.sq-page > .sq-crumbs a { color: var(--brand-ink); font-weight: 600; text-decoration: none; }
.sq-page > .sq-crumbs a:hover { text-decoration: underline; }
.sq-page > .sq-crumbs svg { width: 14px; height: 14px; }
@media (max-width: 599px) { .sq-page > .sq-crumbs { display: none; } }
.sq-page__head--nav { align-items: center; }
.sq-stepnav { display: inline-flex; align-items: center; gap: var(--space-1); }
.sq-stepnav__pos { min-width: 64px; text-align: center; font-size: 13px; line-height: 18px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.sq-stepnav__off { opacity: 0.35; pointer-events: none; }
a.sq-iconbtn { text-decoration: none; color: inherit; }

/* The customer screen: Copy, and the Planner line. */
.sq-copybtn { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-left: 4px; vertical-align: middle; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink-muted); cursor: pointer; }
.sq-copybtn:hover { background: var(--surface-muted); color: var(--ink); }
.sq-copybtn:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
@media (hover: none) { .sq-copybtn { display: none; } }
.sq-visitpanel { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.sq-visitpanel__row { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); background: var(--brand-soft); }
.sq-visitpanel__row > svg { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--brand-ink); }
.sq-visitpanel__row--missed, .sq-visitpanel__row--due { background: var(--warning-soft); }
.sq-visitpanel__row--missed > svg, .sq-visitpanel__row--due > svg { color: var(--warning); }
.sq-visitpanel__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; font-size: 14px; line-height: 20px; }
.sq-visitpanel__text a { color: var(--brand-ink); font-weight: 600; }
.sq-visitpanel__sub { font-size: 13px; line-height: 18px; color: var(--ink-muted); overflow-wrap: anywhere; }
.sq-visitpanel__acts { display: flex; flex-wrap: wrap; gap: var(--space-2); flex: none; }
.sq-visitpanel__buttons:empty { display: none; }
@media (max-width: 599px) { .sq-visitpanel__row { flex-wrap: wrap; } .sq-visitpanel__acts { width: 100%; padding-left: 28px; } }
.sq-form-note { font-size: 13px; line-height: 18px; color: var(--ink-muted); margin: 0; }
.sq-table__badges--wrap { display: flex; flex-wrap: wrap; gap: var(--space-1); }
/* Customers: the Planner filter makes five controls; they keep one row from 900px. */
@media (min-width: 900px) { .sq-toolbar--customers .sq-toolbar__controls { grid-template-columns: minmax(200px, 2fr) repeat(4, minmax(130px, 1fr)); } }
.sq-lrow__tags { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-top: 2px; }
.sq-lrow__tags .sq-chip { min-height: 22px; font-size: 12px; }

/* The home page's Today bar. */
.sq-todaybar { display: flex; align-items: center; gap: var(--space-3); margin: 0 0 var(--space-5); padding: var(--space-3) var(--space-4); border: 1px solid var(--brand-soft-line, var(--line)); border-radius: var(--radius-md); background: var(--brand-soft); color: var(--brand-ink); text-decoration: none; font-size: 14px; line-height: 20px; font-weight: 600; }
.sq-todaybar:hover { border-color: var(--brand); }
.sq-todaybar > svg { flex: none; width: 18px; height: 18px; }
.sq-todaybar__text { flex: 1 1 auto; min-width: 0; }
.sq-todaybar__go { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.sq-todaybar__go svg { width: 16px; height: 16px; }
@media (max-width: 599px) { .sq-todaybar__go span { display: none; } }

/* ---------- The Planner page ---------- */
.sq-page--full { max-width: 1680px; }
.sq-planbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-4); }
.sq-planbar__week { display: flex; align-items: center; gap: var(--space-2); }
.sq-planbar__range { min-width: 132px; text-align: center; font-size: 16px; line-height: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sq-planbar__tools { display: flex; align-items: center; gap: var(--space-4); }
.sq-planbar__weekends { align-items: center; }

.sq-planner { display: grid; gap: var(--space-4); align-items: start; }
.sq-planner--desk { grid-template-columns: 280px minmax(0, 1fr); }
.sq-planner--wide { grid-template-columns: minmax(0, 1fr); }
.sq-week-wrap { min-width: 0; }
.sq-week { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(168px, 1fr); gap: var(--space-3); overflow-x: auto; padding-bottom: var(--space-2); }
/* Seven days fit side by side from 1280px with To plan folded away (from about 1600px with it open);
   narrower, the week scrolls, its edge fading to say so. */
@media (max-width: 1279px) {
  .sq-week--seven { grid-auto-columns: 168px; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); }
}
@media (min-width: 1280px) and (max-width: 1599px) {
  .sq-week--seven.sq-week--tray { grid-auto-columns: 168px; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); }
}
.sq-week--tablet { grid-auto-columns: calc((100% - 2 * var(--space-3)) / 3); scroll-snap-type: x mandatory; }
.sq-week--tablet .sq-daycol { scroll-snap-align: start; }

.sq-daycol { display: flex; flex-direction: column; min-height: 360px; background: var(--surface-muted); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.sq-daycol--today { border-color: var(--brand); } /* 3.0.17.3: the outline and the blue title, no bar along the top */
.sq-daycol--past { opacity: 0.8; }
.sq-daycol--weekend { background: var(--canvas, var(--surface-muted)); }
.sq-daycol__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-2); padding: var(--space-3) var(--space-2) var(--space-2) var(--space-3); }
.sq-daycol__id { min-width: 0; display: flex; flex-direction: column; }
.sq-daycol__title { margin: 0; font-size: 15px; line-height: 20px; font-weight: 700; }
.sq-daycol--today .sq-daycol__title { color: var(--brand-ink); }
.sq-daycol__date { font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.sq-daycol__body { flex: 1 1 auto; display: flex; flex-direction: column; gap: var(--space-2); padding: 0 var(--space-2) var(--space-3); min-height: 120px; }
.sq-daycol__empty { margin: var(--space-2) 0 0; padding: var(--space-4) var(--space-2); border: 1px dashed var(--line-strong, var(--line)); border-radius: var(--radius-md); font-size: 13px; line-height: 18px; color: var(--ink-muted); text-align: center; }

/* To plan */
.sq-tray { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + 76px); display: flex; flex-direction: column; gap: var(--space-3); max-height: calc(100vh - 96px); padding: var(--space-3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.sq-tray__head { display: flex; align-items: center; gap: var(--space-2); }
.sq-tray__head .sq-iconbtn { margin-left: auto; }
.sq-tray__title { margin: 0; font-size: 16px; line-height: 22px; font-weight: 700; }
.sq-tray__count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--surface-muted); font-size: 12px; line-height: 20px; font-weight: 700; color: var(--ink); }
.sq-tray__controls { display: flex; flex-direction: column; gap: var(--space-2); }
.sq-tray__controls .sq-grid-2 { gap: var(--space-2); }
.sq-tray__scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: var(--space-3); margin: 0 calc(var(--space-2) * -1); padding: 0 var(--space-2) var(--space-2); }
.sq-tray__list { display: flex; flex-direction: column; gap: var(--space-2); min-height: 80px; }
.sq-tray__group { display: flex; flex-direction: column; gap: var(--space-2); }
.sq-tray__grouprow { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.sq-tray__grouphead { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-align: left; }
.sq-tray__grouphead svg { width: 16px; height: 16px; color: var(--ink-muted); }
.sq-tray__grouphead--due { color: var(--warning); }
.sq-tray__cards { display: flex; flex-direction: column; gap: var(--space-2); }
.sq-tray__due { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-2); border: 1px solid var(--warning-line, var(--line)); border-radius: var(--radius-md); background: var(--warning-soft); }
.sq-tray__hint, .sq-tray__empty { margin: 0; font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.sq-tray__empty { padding: var(--space-3) 0; font-size: 13px; line-height: 18px; }
.sq-planner--tablet > .sq-tray__due, .sq-planner--phone > .sq-tray__due { margin-bottom: var(--space-1); }
/* With To plan folded away (and on a tablet), Due is a row of cards above the week. */
.sq-planner--wide > .sq-tray__due .sq-tray__cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* The tray as a sheet on a phone or tablet: ticks, then Add. */
.sq-pick__list { display: flex; flex-direction: column; gap: var(--space-4); }
.sq-pick__group { display: flex; flex-direction: column; gap: var(--space-2); }
.sq-pick__grouphead { display: flex; align-items: center; justify-content: space-between; font-size: 13px; line-height: 18px; font-weight: 700; color: var(--ink-muted); }

/* A phone: one day at a time. */
.sq-planner--phone { grid-template-columns: minmax(0, 1fr); }
.sq-planner--phone .sq-daycol { min-height: 0; background: transparent; border: 0; box-shadow: none; }
.sq-planner--phone .sq-daycol__head { padding: 0 0 var(--space-2); }
.sq-planner--phone .sq-daycol__body { padding: 0; }
@media (max-width: 599px) {
  .sq-page--planner .sq-page__lede, .sq-page--planner .sq-page__head .sq-actions-inline { display: none; }
  .sq-page--planner .sq-page__head { margin-bottom: var(--space-3); }
  .sq-planbar { gap: var(--space-2); }
  .sq-planbar__range { min-width: 0; font-size: 15px; }
  .sq-planbar__tools { width: 100%; justify-content: space-between; }
}

/* ------------------------------------------------------------------------ */
/* 3.0.21: zones and times - chips, the hours editor, the Planner's day       */
/* ------------------------------------------------------------------------ */
/* A zone: a dot and its name, tinted with the zone's colour. Colour is never alone: the name is there too. */
.sq-zchip { --zc: var(--line-strong); display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-width: 0; height: 24px; padding: 0 9px 0 7px; border-radius: var(--radius-pill); background: var(--surface-muted); background: color-mix(in srgb, var(--zc) 12%, var(--surface)); color: var(--ink); font-size: 13px; line-height: 16px; font-weight: 600; white-space: nowrap; vertical-align: middle; }
.sq-zchip::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--zc); }
.sq-zchip__text { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sq-zchip--sm { height: 22px; font-size: 12px; padding: 0 8px 0 6px; }
.sq-zchip--sm::before { width: 8px; height: 8px; }
.sq-zchip--lg { height: 28px; font-size: 14px; padding: 0 11px 0 9px; }
.sq-zchip--any { background: var(--surface-muted); box-shadow: inset 0 0 0 1px var(--line); }
.sq-zchip--any::before { background: none; box-shadow: inset 0 0 0 2px var(--ink-muted); }
.sq-zchip--auto { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); }
.sq-zchip--auto::before { background: none; border: 2px dashed var(--ink-muted); box-sizing: border-box; }
.sq-zchip--off { background: transparent; color: var(--ink-muted); font-weight: 500; padding-left: 0; }
.sq-zchip--off::before { display: none; }
.sq-zchip--none { background: var(--surface-muted); color: var(--ink-muted); }
.sq-zchip--none::before { background: none; box-shadow: inset 0 0 0 2px var(--line-strong); }
.sq-zchip--check { background: var(--warning-soft); color: var(--warning); }
.sq-zchip--check::before { background: var(--warning); }
.sq-zdot { --zc: var(--line-strong); display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--zc); vertical-align: middle; }
.sq-zdot--any { background: none; box-shadow: inset 0 0 0 2px var(--ink-muted); }
.sq-zdot--auto { background: none; border: 2px dashed var(--ink-muted); box-sizing: border-box; }
.sq-zdot--none { background: none; box-shadow: inset 0 0 0 2px var(--line-strong); }

/* The hours editor: up to three spans a day, Add a break under them. */
.sq-spans { display: grid; gap: var(--space-2); justify-items: start; min-width: 0; }
.sq-spans__row { display: flex; align-items: center; gap: var(--space-2); max-width: 100%; min-width: 0; }
.sq-spans__time { width: 132px; flex: 0 1 132px; min-width: 84px; padding-left: 8px; padding-right: 8px; }
.sq-spans__to { font-size: 13px; color: var(--ink-muted); }
@media (max-width: 599px) {
  .sq-spans { justify-items: stretch; }
  .sq-spans > .sq-btn { justify-self: start; }
  .sq-spans__time { flex: 1 1 0; width: auto; max-width: 160px; }
  /* Touch phones open their own picker and draw no clock icon; the box keeps its room for the time. */
  .sq-spans__time::-webkit-calendar-picker-indicator { display: none; }
}

/* A card's and a day's warnings: words with an icon. */
.sq-flag { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 2px 6px; border-radius: var(--radius-sm); background: var(--surface-muted); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-muted); font-size: 12px; line-height: 16px; font-weight: 600; }
.sq-flag svg { flex: none; width: 14px; height: 14px; }
.sq-flag--warn { background: var(--warning-soft); box-shadow: none; color: var(--warning); }
.sq-pcard__flags { display: flex; flex-wrap: wrap; gap: 4px; }
.sq-pcard__meta--zone { display: flex; align-items: center; gap: 6px; min-width: 0; }
.sq-pcard__meta--zone > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* The Planner's day: where, the hours, the limit; blocked time grey above the cards. */
.sq-daycol__plan { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0 var(--space-3) var(--space-2); min-width: 0; }
.sq-daycol__hours { font-size: 12px; line-height: 16px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.sq-daycol--off { background: transparent; border-style: dashed; }
.sq-planner--phone .sq-daycol__plan { padding: 0 0 var(--space-3); }
.sq-busy { display: grid; gap: 2px; width: 100%; padding: 8px 10px; border: 0; border-radius: var(--radius-md); background: repeating-linear-gradient(135deg, var(--surface-muted) 0 6px, var(--line) 6px 7px, var(--surface-muted) 7px 12px); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-muted); font: inherit; font-size: 13px; line-height: 18px; text-align: left; }
button.sq-busy { cursor: pointer; min-height: 44px; }
button.sq-busy:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
.sq-busy__what { display: flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 600; }
.sq-busy__what svg { flex: none; }
.sq-busy__note { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* The phone's day strip: the day's zones as dots, a mark for a day over its limit. */
.sq-daystrip__zones { display: flex; gap: 3px; justify-content: center; height: 10px; }
.sq-daystrip__zones .sq-zdot { width: 8px; height: 8px; }
.sq-daystrip__warn { display: inline-flex; color: var(--warning); }
.sq-daystrip__day[aria-selected="true"] .sq-zdot { box-shadow: 0 0 0 1.5px var(--surface); }
.sq-daystrip__day[aria-selected="true"] .sq-zdot--any, .sq-daystrip__day[aria-selected="true"] .sq-zdot--none { box-shadow: inset 0 0 0 2px currentColor; }
.sq-daystrip__day[aria-selected="true"] .sq-zdot--auto { border-color: currentColor; box-shadow: none; }
.sq-daystrip__day[aria-selected="true"] .sq-daystrip__warn { color: inherit; }
.sq-tray__grouphead .sq-zchip { pointer-events: none; }
/* 3.0.21: My week - the week (a table from 600px, rows on a phone), Times, dates, blocked time, Suggest. */
.sq-weekpage__grid { display: grid; grid-template-columns: minmax(0, 720px) minmax(0, 1fr); gap: var(--space-5); align-items: start; }
.sq-weekpage__grid--one { grid-template-columns: minmax(0, 720px); }
@media (max-width: 1279px) { .sq-weekpage__grid { grid-template-columns: minmax(0, 1fr); } .sq-weekpage__grid > * { max-width: 720px; } }
.sq-weekpage__main { display: grid; gap: var(--space-4); min-width: 0; }
.sq-weekpage__chips { display: inline-flex; gap: 4px; min-width: 0; }
.sq-wcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); overflow: hidden; min-width: 0; }
.sq-wcard__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); }
.sq-wcard__title { display: flex; align-items: center; gap: var(--space-2); margin: 0; font-size: 16px; line-height: 22px; font-weight: 700; }
.sq-wcard__note { margin: 0; padding: var(--space-3) var(--space-4); font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.sq-wcard__own { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px var(--space-3); padding: var(--space-2) var(--space-4); border-top: 1px solid var(--line); background: var(--surface-muted); font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.sq-wcard__foot { display: flex; justify-content: flex-end; gap: var(--space-2); padding: var(--space-3) var(--space-4); border-top: 1px solid var(--line); }
.sq-wrow { display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(150px, 200px); gap: var(--space-3); align-items: center; padding: var(--space-2) var(--space-4); border-bottom: 1px solid var(--line); min-height: 60px; }
.sq-wrow--head { min-height: 0; padding-block: var(--space-2); font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.sq-wrow__day { font-weight: 600; }
.sq-wrow__hours { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); min-width: 0; }
.sq-wrow__zone { position: relative; display: flex; align-items: center; min-width: 0; }
.sq-wrow__zone .sq-zdot { position: absolute; left: 12px; pointer-events: none; }
.sq-wrow__zone .sq-select { width: 100%; padding-left: 30px; }
.sq-wrow__zone--off .sq-zdot { display: none; }
.sq-wrow__zone--off .sq-select { padding-left: 12px; color: var(--ink-muted); }
.sq-wprow { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 16px; gap: var(--space-3); align-items: center; width: 100%; min-height: 56px; padding: var(--space-2) var(--space-3) var(--space-2) var(--space-4); border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.sq-wprow:hover { background: var(--surface-muted); }
.sq-wprow__day { font-weight: 700; }
.sq-wprow__hours { font-size: 13px; line-height: 18px; color: var(--ink-muted); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sq-wprow > svg { color: var(--ink-muted); }
.sq-trow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 220px); gap: 4px var(--space-4); align-items: center; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); }
.sq-trow:last-child { border-bottom: 0; }
.sq-trow__k { display: grid; gap: 2px; min-width: 0; }
.sq-trow__label { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.sq-trow__v { font-weight: 600; overflow-wrap: anywhere; }
.sq-trow__src { font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.sq-trow__note { display: inline-flex; align-items: center; gap: 6px; justify-self: end; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.sq-trow > .sq-btn, .sq-trow > .sq-select { justify-self: end; }
@media (max-width: 599px) {
  .sq-trow { grid-template-columns: minmax(0, 1fr) auto; }
  .sq-trow__note { grid-column: 1 / -1; justify-self: start; }
}
.sq-wlist { display: grid; }
.sq-wlist__row { display: flex; align-items: center; gap: var(--space-2); padding: 0 var(--space-2) 0 0; border-bottom: 1px solid var(--line); }
.sq-wlist__row:last-child { border-bottom: 0; }
.sq-wlist__main { flex: 1; min-width: 0; display: grid; gap: 2px; min-height: 56px; padding: var(--space-2) var(--space-4); border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.sq-wlist__main:hover { background: var(--surface-muted); }
.sq-wlist__title { font-weight: 600; }
.sq-wlist__sub { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.sq-suggest__body { display: grid; gap: var(--space-3); padding-bottom: var(--space-3); }
.sq-suggest__body > .sq-wcard__note { padding-top: 0; padding-bottom: 0; }
.sq-suggest__body > .sq-wcard__note:first-child { padding-top: var(--space-3); }
.sq-suggest__acts { padding: 0 var(--space-4); }
.sq-bars { display: grid; gap: var(--space-2); padding: 0 var(--space-4); }
.sq-bars__row { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr) 32px; gap: var(--space-3); align-items: center; }
.sq-bars__track { height: 10px; border-radius: var(--radius-pill); background: var(--surface-muted); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.sq-bars__track > span { display: block; height: 100%; border-radius: var(--radius-pill); background: var(--zc); }
.sq-bars__n { text-align: right; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sq-prop { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--space-2); align-items: center; padding: 0 var(--space-4); }
.sq-prop__wk { font-size: 13px; font-weight: 600; }
.sq-prop__days { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 6px; }
.sq-prop__day { display: grid; gap: 2px; justify-items: start; min-width: 0; }
.sq-prop__d { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ink-muted); }
@media (max-width: 599px) {
  .sq-prop { grid-template-columns: minmax(0, 1fr); }
  .sq-bars__row { grid-template-columns: minmax(0, 120px) minmax(0, 1fr) 28px; }
  .sq-prop__day .sq-zchip { padding: 0 6px 0 5px; }
}
/* A person's times (Manage's drawer). */
.sq-tsec { display: grid; gap: var(--space-3); padding-bottom: var(--space-4); border-bottom: 1px solid var(--line); }
.sq-tsec:last-child { border-bottom: 0; padding-bottom: 0; }
.sq-tsec__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); }
.sq-tsec__title { margin: 0; font-size: 16px; line-height: 22px; font-weight: 700; }
.sq-hgrid { display: grid; border: 1px solid var(--line); border-radius: var(--radius-md); }
.sq-hday { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--space-2); align-items: start; padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--line); }
.sq-hday:last-child { border-bottom: 0; }
.sq-hday__off { min-height: 44px; display: flex; align-items: center; color: var(--ink-muted); font-size: 14px; }
@media (max-width: 599px) {
  .sq-hday { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sq-tsec__head .sq-seg { width: 100%; }
  .sq-tsec__head .sq-seg__btn { flex: 1; }
}
/* 3.0.21: a customer's zone line, and the zone filter chips (they scroll sideways on a phone). */
.sq-zline { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px var(--space-2); }
.sq-zline__src { font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.sq-zfilter { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px var(--space-2); margin: 0 0 var(--space-2); }
.sq-zfilter::-webkit-scrollbar { display: none; }
.sq-zfilter__chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.sq-zfilter__chip:hover { border-color: var(--line-strong); }
.sq-zfilter__chip[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 600; }
.sq-zfilter__n { font-size: 13px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.sq-cell-zone { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-width: 0; }
.sq-cell-zone .sq-zchip { max-width: 112px; } /* a long zone name ends in an ellipsis, in full on hover */
/* The phone Planner's bar: Block time and My week, fixed at the bottom with room kept for it. */
.sq-planner-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; gap: var(--space-2); padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: var(--shadow-bar); }
.sq-planner-bar .sq-btn { flex: 1 1 0; }
.sq-planner-host--bar { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
body:has(.sq-planner-bar) .sq-toaster { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }

/* ------------------------------------------------------------------------ */
/* 3.0.17: the Map - Customers (List · Map), Manage's Customers, Map this day */
/* ------------------------------------------------------------------------ */
.sq-map [hidden], .sq-daymap [hidden], .sq-cmap-host[hidden], .sq-table-host[hidden] { display: none !important; }
.sq-seg--sm .sq-seg__btn { min-height: var(--control-sm); padding: 6px 12px; font-size: 13px; line-height: 18px; }
.sq-toolbar__picked:empty { display: none; }
.sq-cmap-host { margin-top: var(--space-3); }

.sq-map { display: flex; flex-direction: column; gap: var(--space-3); height: min(76vh, 820px); min-height: 460px; }
.sq-map__legend { display: flex; flex-wrap: wrap; gap: 6px; }
.sq-map__key { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.sq-map__key:hover { border-color: var(--line-strong); }
.sq-map__key:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sq-map__key--off { color: var(--ink-muted); background: var(--surface-muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.sq-map__key--off .sq-map__dot { background: transparent !important; box-shadow: inset 0 0 0 2px var(--line-strong); }
.sq-map__key--missing { border-style: dashed; text-decoration: none; }
.sq-map__count { font-variant-numeric: tabular-nums; color: var(--ink-muted); font-weight: 600; }
.sq-map__dot { width: 10px; height: 10px; border-radius: 50%; flex: none; border: 2px solid transparent; box-sizing: border-box; }
.sq-map__dot--approx { background: var(--surface) !important; }

.sq-map__body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--space-3); }
.sq-map__stage { position: relative; min-height: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface-muted); }
.sq-map__canvas { position: absolute; inset: 0; }
.sq-map__loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; padding: var(--space-4); color: var(--ink-muted); }
.sq-map__tools { position: absolute; left: 12px; top: 12px; z-index: 3; display: flex; flex-wrap: wrap; gap: 6px; }
.sq-map__tools .sq-btn, .sq-map__selbar .sq-btn { box-shadow: var(--shadow-card); }
.sq-map__tools .sq-btn[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.sq-map__chips { position: absolute; left: 12px; top: 56px; z-index: 3; display: flex; flex-wrap: wrap; gap: 6px; }
.sq-map__chips .sq-chip { background: var(--surface); box-shadow: var(--shadow-card); }
.sq-map__selbar { position: absolute; left: 12px; right: 12px; bottom: 16px; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); width: fit-content; max-width: calc(100% - 24px); margin: 0 auto; padding: 8px 8px 8px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-pill); box-shadow: var(--shadow-pop); }
.sq-map__selcount { font-size: 14px; font-weight: 600; }
.sq-map__alert { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 6; }
.sq-map__catch { position: absolute; inset: 0; z-index: 2; cursor: crosshair; touch-action: none; }
.sq-map__box { position: absolute; z-index: 2; border: 2px solid var(--brand); border-radius: 4px; background: var(--brand-tint); opacity: .7; pointer-events: none; }
.sq-map--selecting .sq-mpin { cursor: copy; }

/* Pins: a drop in the status colour, hollow when only the suburb was found, a day badge when planned. */
.sq-mpins { position: absolute; left: 0; top: 0; }
.sq-mpin { position: absolute; left: 0; top: 0; width: 26px; height: 34px; margin: -34px 0 0 -13px; padding: 0; border: 0; background: none; cursor: pointer; }
.sq-mpin__head { position: absolute; left: 1px; top: 0; box-sizing: border-box; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 2px solid #fff; border-radius: 50% 50% 50% 0; background: var(--pin); box-shadow: 0 1px 3px rgba(0, 0, 0, .35); transform: rotate(-45deg); transition: transform .12s ease; }
.sq-mpin__head > span { transform: rotate(45deg); color: #fff; font: 700 11px/1 var(--font-sans); }
.sq-mpin--approx .sq-mpin__head { border: 4px solid var(--pin); background: #fff; }
.sq-mpin--approx .sq-mpin__head > span { color: var(--pin); }
.sq-mpin__day { position: absolute; left: 15px; top: -7px; min-width: 18px; height: 16px; padding: 0 4px; border-radius: 8px; background: #1f2937; color: #fff; font: 700 10px/16px var(--font-sans); text-align: center; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.sq-mpin--today .sq-mpin__day { background: var(--brand); color: var(--on-brand); }
.sq-mpin:hover, .sq-mpin:focus-visible, .sq-mpin--lift, .sq-mpin--open { z-index: 2; }
.sq-mpin:hover .sq-mpin__head, .sq-mpin--lift .sq-mpin__head, .sq-mpin--open .sq-mpin__head { transform: rotate(-45deg) scale(1.22); }
.sq-mpin:focus-visible { outline: none; }
.sq-mpin:focus-visible .sq-mpin__head { box-shadow: 0 0 0 3px var(--focus); }
.sq-mpin--sel { z-index: 1; }
.sq-mpin--sel .sq-mpin__head { box-shadow: 0 0 0 3px var(--brand), 0 0 0 5px #fff; }
.sq-mpin--done .sq-mpin__head { opacity: .5; }
.sq-mpin--num .sq-mpin__head { width: 26px; height: 26px; }
.sq-mpin--start .sq-mpin__head { border-radius: 6px; transform: none; }
.sq-mpin--start .sq-mpin__head > span { transform: none; }
.sq-mpin--moving { z-index: 3; cursor: grab; touch-action: none; }
.sq-mpin--moving .sq-mpin__head { transform: rotate(-45deg) scale(1.3); box-shadow: 0 0 0 3px var(--brand), 0 6px 12px rgba(0, 0, 0, .35); }
.sq-mpin-me { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border: 3px solid #fff; border-radius: 50%; background: #1a73e8; box-shadow: 0 0 0 6px rgba(26, 115, 232, .22); pointer-events: none; }
.sq-cluster { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; padding: 0; border: 3px solid #fff; border-radius: 50%; background: var(--pin); color: #fff; font: 700 12px/1 var(--font-sans); box-shadow: 0 0 0 4px rgba(255, 255, 255, .55), 0 1px 4px rgba(0, 0, 0, .35); cursor: pointer; }
.sq-cluster--m { width: 42px; height: 42px; margin: -21px 0 0 -21px; font-size: 13px; }
.sq-cluster--l { width: 50px; height: 50px; margin: -25px 0 0 -25px; font-size: 14px; }
.sq-cluster--sel { box-shadow: 0 0 0 3px var(--brand), 0 0 0 6px #fff; }
.sq-cluster:hover { filter: brightness(1.08); }
.sq-cluster:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* The card a pin opens. */
.sq-mapcard { position: absolute; z-index: 4; width: 330px; max-width: calc(100% - 16px); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-pop); }
.sq-mapcard__body { display: grid; gap: 6px; padding: 12px 14px 14px; }
.sq-mapcard__head { display: flex; align-items: center; gap: 4px; }
.sq-mapcard__name { flex: 1; min-width: 0; color: var(--ink); font-size: 16px; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.sq-mapcard__name:hover { text-decoration: underline; }
.sq-mapcard__tags { display: flex; flex-wrap: wrap; gap: 4px; }
.sq-mapcard__line { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px; margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.sq-mapcard__line > svg { flex: none; margin-top: 2px; color: var(--ink-muted); }
.sq-mapcard__line a { color: inherit; }
.sq-mapcard__muted { color: var(--ink-muted); font-size: 13px; }
.sq-mapcard__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.sq-mapcard__steps { display: inline-flex; flex: none; gap: 2px; }
/* 3.0.17.3: a missing suburb or postcode the look-up found */
.sq-addrfix { display: grid; gap: 8px; margin: var(--space-3) 0; padding: 10px 12px; background: var(--warning-soft); border: 1px solid var(--warning-line); border-radius: var(--radius-md); }
.sq-addrfix__text { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 14px; color: var(--ink); }
.sq-addrfix__text svg { flex: none; margin-top: 2px; }
.sq-addrfix__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sq-mapcard .sq-addrfix { margin: 2px 0; padding: 8px 10px; }
.sq-mapcard__steps .sq-iconbtn:disabled { opacity: .35; cursor: default; }
.sq-mapcard__body { will-change: transform; }

/* In view: the list beside the map. */
.sq-map__side { display: flex; flex-direction: column; min-height: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.sq-map__handle { display: none; }
.sq-map__sidehead { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.sq-map__sidetitle { margin: 0; font-size: 15px; }
.sq-map__sort { width: auto; min-height: 32px; padding-block: 2px; font-size: 13px; }
.sq-map__rows { flex: 1; overflow: auto; overscroll-behavior: contain; }
.sq-map__row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.sq-map__row:hover, .sq-map__row--hover { background: var(--surface-muted); }
.sq-map__row:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.sq-map__row--open { background: var(--brand-tint); }
.sq-map__row--sel, .sq-map__row--sel:hover { background: var(--brand-soft); } /* 3.0.17.3: a tint and a tick, not a stripe down the side */
.sq-map__rowtick { display: inline-flex; color: var(--brand-ink, var(--brand)); }
.sq-map__rowmain { display: grid; flex: 1; min-width: 0; }
.sq-map__rowname { overflow: hidden; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.sq-map__rowsub { overflow: hidden; color: var(--ink-muted); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.sq-map__rowend { display: grid; flex: none; justify-items: end; gap: 2px; }
.sq-map__rowday { color: var(--brand-ink, var(--brand)); font-size: 12px; font-weight: 700; }
.sq-map__rowkm { color: var(--ink-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.sq-map__empty { margin: 0; padding: var(--space-4); color: var(--ink-muted); font-size: 14px; }
.sq-map__side--card .sq-map__rows { overflow: auto; }
.sq-map__missrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); padding: 10px 0; border-bottom: 1px solid var(--line); }
.sq-map__missrow > div:first-child { display: grid; min-width: 0; }
.sq-map__here { margin: 0 calc(-1 * var(--space-5)); border-top: 1px solid var(--line); }

@media (max-width: 1023px) {
  .sq-map__body { grid-template-columns: minmax(0, 1fr) 280px; }
}
/* A phone: the map fills the screen under the bar, In view is a sheet pulled up from the bottom. */
@media (max-width: 599px) {
  .sq-map { height: auto; min-height: 380px; gap: 8px; }
  .sq-map__legend { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .sq-map__key { flex: none; }
  .sq-map__body { position: relative; display: block; flex: 1; }
  .sq-map__stage { position: absolute; inset: 0; border-radius: var(--radius-md); }
  .sq-map__tools { left: 8px; top: 8px; }
  .sq-map__chips { left: 8px; top: 52px; }
  .sq-map__side { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; height: 64px; max-height: 88%; border-radius: 16px 16px 0 0; box-shadow: var(--shadow-pop); transition: height .2s ease; }
  .sq-map__side[data-sheet="half"] { height: 52%; }
  .sq-map__side[data-sheet="full"] { height: 88%; }
  .sq-map__handle { display: flex; flex: none; align-items: center; justify-content: center; width: 100%; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; }
  .sq-map__grip { width: 40px; height: 4px; border-radius: 2px; background: var(--line-strong); }
  .sq-map__sidehead { padding: 0 12px 8px; }
  .sq-map__selbar { bottom: 76px; border-radius: var(--radius-lg); }
  .sq-mapcard { display: none !important; }
  .sq-map__side--card .sq-mapcard__body { padding-top: 4px; }
}

/* Map this day */
.sq-sheet2__panel--map { max-width: min(1120px, calc(100vw - 32px)); }
.sq-daymap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--space-4); min-height: min(64vh, 620px); }
.sq-daymap__canvas { position: relative; min-height: 360px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-muted); }
.sq-daymap__side { display: flex; flex-direction: column; gap: var(--space-3); min-height: 0; }
.sq-daymap__start { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.sq-daymap__note { margin: 0; }
.sq-daymap__list { max-height: 50vh; margin: 0; padding: 0; overflow: auto; border-top: 1px solid var(--line); list-style: none; }
.sq-daymap__stop { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--line); }
.sq-daymap__num { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--ink-muted); color: #fff; font: 700 12px/24px var(--font-sans); text-align: center; }
.sq-daymap__stop--done .sq-daymap__num { opacity: .5; }
.sq-daymap__stop--off .sq-daymap__num { background: var(--surface-muted); color: var(--ink-muted); }
.sq-daymap__stopmain { display: grid; flex: 1; min-width: 0; }
.sq-daymap__name { overflow: hidden; color: var(--ink); font-weight: 600; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.sq-daymap__name:hover { text-decoration: underline; }
.sq-daymap__leg { color: var(--ink-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.sq-daymap__stop.sq-flash { animation: sq-flash-ring 1.4s ease; }
@media (max-width: 599px) {
  .sq-daymap { grid-template-columns: 1fr; min-height: 0; }
  .sq-daymap__canvas { min-height: 44vh; }
  .sq-daymap__list { max-height: none; }
}

/* 3.0.17.1: the Map on phones. The map stops where the sheet starts (so Google's logo and terms are
   never under it), the tools are round buttons on the right, the sheet is dragged, a card's sheet
   fits the card, pins take a fingertip, and the heading gives the map the room. */
.sq-map__cross { position: absolute; left: 50%; top: 50%; z-index: 2; pointer-events: none; }
.sq-map__cross .sq-mpin { pointer-events: none; }
.sq-mpin, .sq-cluster, .sq-map__row, .sq-map__key, .sq-map__handle, .sq-daymap__stop { -webkit-tap-highlight-color: transparent; }
.sq-daycol__acts { display: flex; flex: none; align-items: center; gap: 2px; }
@media (pointer: coarse) {
  .sq-mpin::after { content: ''; position: absolute; left: -9px; right: -9px; top: -6px; bottom: -4px; }
}
@media (max-width: 599px) {
  .sq-map__stage .sq-map__canvas { bottom: var(--sq-sheet-h, 64px); }
  .sq-map__stage .sq-map__cross { top: calc((100% - var(--sq-sheet-h, 64px)) / 2); }
  .sq-map__tools { left: auto; right: 8px; top: 8px; flex-direction: column; gap: 8px; }
  .sq-map__tools .sq-btn { position: relative; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; justify-content: center; border-radius: 50%; }
  .sq-map__tools .sq-btn > span:not(.sq-spinner) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sq-map__tools .sq-btn__icon { margin: 0; }
  .sq-map__chips { left: 8px; right: 60px; top: 8px; }
  /* Clear of Google's logo and terms, which sit at the bottom of the map. */
  .sq-map__selbar { bottom: calc(var(--sq-sheet-h, 64px) + 34px); left: 8px; right: 8px; gap: 8px; padding: 10px 10px 10px 14px; }
  .sq-map__selbar .sq-actions-inline { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .sq-map__selbar .sq-actions-inline .sq-btn { flex: 1 1 auto; min-height: 44px; }
  .sq-map__selcount { flex: 1 1 100%; }
  .sq-map__alert { bottom: calc(var(--sq-sheet-h, 64px) + 34px); }
  .sq-map__side { transition: height .18s ease; }
  .sq-map__side--dragging { transition: none; }
  .sq-map--sheet-full .sq-map__tools, .sq-map--sheet-full .sq-map__chips { display: none; }
  .sq-map__side[data-sheet="card"] { height: auto; max-height: 82%; }
  .sq-map__handle, .sq-map__sidehead { touch-action: none; }
  .sq-map__handle { height: 34px; }
  .sq-map__grip { width: 48px; height: 5px; }
  /* 3.0.17.2: a card's heading is Back and the status side by side; the card below is tighter. */
  .sq-map__side--card .sq-map__sidehead { justify-content: flex-start; gap: 10px; padding-bottom: 2px; border-bottom: 0; }
  .sq-map__side--card .sq-mapcard__body { gap: 4px; padding-top: 2px; }
  .sq-map__side--card .sq-mapcard__head .sq-mapcard__name { line-height: 1.25; }
  .sq-map__side .sq-mapcard__actions { margin-top: 6px; }
  .sq-map__rows { overscroll-behavior: contain; }
  .sq-map__rows { padding-bottom: env(safe-area-inset-bottom, 0px); }
  .sq-map__row { min-height: 56px; }
  .sq-map__key { min-height: 36px; }
  .sq-map__side .sq-mapcard__name { font-size: 18px; }
  .sq-map__side .sq-mapcard__line { font-size: 15px; }
  .sq-map__side .sq-mapcard__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
  .sq-map__side .sq-mapcard__actions .sq-btn { min-height: 44px; justify-content: center; }
  .sq-map__side .sq-mapcard__body { padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  /* Customers in map view, and Manage's Customers: a heading button is its icon. */
  .sq-iconphone, .sq-page--map .sq-iconphone-map,
  .sq-page__head .sq-actions-inline .sq-btn.sq-iconphone, .sq-page--map .sq-page__head .sq-actions-inline .sq-btn.sq-iconphone-map { position: relative; width: 44px; min-width: 44px; padding: 0; justify-content: center; flex: 0 0 44px; }
  .sq-iconphone > span, .sq-page--map .sq-iconphone-map > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sq-iconphone .sq-btn__icon, .sq-page--map .sq-iconphone-map .sq-btn__icon { margin: 0; }
  .sq-page--customers.sq-page--map .sq-page__title { display: none; }
  .sq-page--customers.sq-page--map .sq-page__head > .sq-actions-inline { width: 100%; }
  .sq-page--customers .sq-page__head .sq-seg { flex: none; }
  .sq-page--customers.sq-page--map .sq-page__head .sq-seg { margin-right: auto; }
  .sq-page--map .sq-toolbar__summary, .sq-mcustomers--map .sq-mtoolbar__summary { display: none; }
  .sq-page--map .sq-toolbar__meta--empty { display: none; }
  .sq-mcustomers .sq-seg { flex: none; }
  /* Map this day */
  .sq-daymap__canvas { min-height: 42vh; }
  .sq-daymap__stop { min-height: 52px; cursor: pointer; }
}
/* A phone on its side: the map is the screen's height, under the bar. */
@media (max-height: 500px) and (min-width: 600px) {
  .sq-page--customers.sq-page--map .sq-page__title { display: none; }
  .sq-map { min-height: 260px; }
}

/* ---------------------------------------------------------------------- */
/* 3.0.19: the installed app                                               */
/* ---------------------------------------------------------------------- */

/* Install the app, wherever it can't be done (installed already, a computer Chrome hasn't offered). */
.sq-install[hidden] { display: none !important; }

/* Under the sign-in form, on phones and tablets. */
.sq-access__install { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.sq-access__installnote { margin: var(--space-2) 0 0; text-align: center; font-size: 13px; line-height: 18px; color: var(--ink-muted); }

/* The one-time hint on the home page. */
.sq-installhint { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2) var(--space-3); margin: 0 0 var(--space-4); padding: var(--space-3) var(--space-4); background: var(--brand-soft); border: 1px solid var(--brand-soft-line); border-radius: var(--radius-md); color: var(--ink); }
.sq-installhint__icon { display: inline-flex; color: var(--brand-ink); }
.sq-installhint__icon svg { width: 20px; height: 20px; }
.sq-installhint__text { flex: 1 1 160px; margin: 0; font-weight: 600; font-size: 15px; line-height: 22px; }
.sq-installhint__actions { display: flex; gap: var(--space-2); }

/* The iPhone steps, numbered, each with the icon to look for. */
.sq-appsteps__list { list-style: none; margin: 0; padding: 0; counter-reset: sq-step; display: grid; gap: var(--space-3); }
.sq-appsteps__step { display: flex; gap: var(--space-3); align-items: flex-start; font-size: 15px; line-height: 22px; counter-increment: sq-step; }
.sq-appsteps__step::before { content: counter(sq-step); flex: none; width: 14px; padding-top: 5px; font-weight: 700; color: var(--ink-muted); }
.sq-appsteps__icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: var(--radius-sm); background: var(--surface-muted); color: var(--brand-ink); }
.sq-appsteps__icon svg { width: 18px; height: 18px; }
.sq-appsteps__after { margin: var(--space-4) 0 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }

/* A toast with something to do: Smart Quote has been updated. Reload */
.sq-toast__action { flex: none; margin-left: auto; min-height: 36px; padding: 0 var(--space-3); border: 1px solid var(--line-inverse); border-radius: var(--radius-sm); background: transparent; color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.sq-toast__action + .sq-toast__close { margin-left: 0; }

/* A preview inside the installed app: full screen, under the iPhone's status bar, with Close preview. */
.sq-pvsheet { position: fixed; inset: 0; z-index: 59; display: flex; flex-direction: column; background: var(--surface); }
.sq-pvsheet__bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: calc(var(--space-2) + env(safe-area-inset-top, 0px)) calc(var(--space-3) + env(safe-area-inset-right, 0px)) var(--space-2) calc(var(--space-3) + env(safe-area-inset-left, 0px)); background: var(--surface-inverse); color: var(--ink-inverse); }
.sq-pvsheet__title { font-weight: 600; font-size: 15px; line-height: 22px; }
.sq-pvsheet__body { flex: 1 1 auto; min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch; padding-bottom: env(safe-area-inset-bottom, 0px); }
.sq-pvsheet__frame { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
@media print { .sq-pvsheet, .sq-installhint, .sq-access__install { display: none !important; } }

/* ======================================================================
   3.0.20: notifications and proposal activity.
   The bell in the app bar, its list, Your notifications, the Activity sheet and the one line
   a quote list shows. Manage loads this file too.
   ====================================================================== */

/* The bell: beside Jump to on a computer, beside Menu on a phone. */
.sq-appbar__bell { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; min-height: var(--control-sm); min-width: var(--control-sm); margin-right: var(--space-3); padding: 0 var(--space-2); border: 1px solid var(--line-inverse); border-radius: var(--radius-md); background: transparent; color: var(--ink-inverse); cursor: pointer; }
.sq-appbar__bell:hover { background: var(--surface-inverse-hover); }
.sq-appbar__bell:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sq-appbar__bell svg { width: 18px; height: 18px; }
.sq-appbar__bellcount { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--radius-pill); background: var(--brand); color: var(--on-brand); font-size: 11px; line-height: 18px; font-weight: 700; text-align: center; box-shadow: 0 0 0 2px var(--surface-inverse); }
.sq-appbar__bellcount[hidden] { display: none; }
@media (max-width: 1023px) {
  .sq-appbar__bell { margin: 0; min-height: 40px; min-width: 40px; }
}

/* The list (a sheet; on a computer it sits at the right). */
@media (min-width: 900px) {
  .sq-sheet2:has(.sq-sheet2__panel--notify) { justify-content: flex-end; align-items: stretch; padding: var(--space-3); }
  .sq-sheet2__panel--notify { max-width: 420px; max-height: none; }
}
.sq-nlist__tools { display: flex; justify-content: space-between; gap: var(--space-2); flex-wrap: wrap; margin: 0 0 var(--space-3); }
.sq-nlist__tools .sq-btn[hidden] { display: none; }
.sq-nlist__day { margin: var(--space-3) 0 var(--space-1); font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-muted); }
.sq-nlist__items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.sq-nlist__more { margin: var(--space-3) 0 0; text-align: center; }
.sq-nrow { display: flex; align-items: flex-start; gap: var(--space-3); width: 100%; min-height: 56px; padding: var(--space-2) var(--space-3); border: 0; border-radius: var(--radius-md); background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.sq-nrow:hover { background: var(--surface-muted); }
.sq-nrow:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.sq-nrow--unread { background: var(--brand-soft); }
.sq-nrow--unread:hover { background: var(--brand-tint); }
.sq-nrow__icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-top: 2px; border-radius: var(--radius-pill); background: var(--surface-muted); color: var(--ink-muted); }
.sq-nrow--unread .sq-nrow__icon { background: var(--surface); color: var(--brand-ink); }
.sq-nrow--success .sq-nrow__icon { color: var(--positive-ink); }
.sq-nrow--warning .sq-nrow__icon { color: var(--warning); }
.sq-nrow__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sq-nrow__title { font-size: 15px; line-height: 20px; overflow-wrap: anywhere; }
.sq-nrow--unread .sq-nrow__title { font-weight: 600; }
.sq-nrow__body { font-size: 13px; line-height: 18px; color: var(--ink-muted); overflow-wrap: anywhere; }
.sq-nrow__at { font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.sq-nrow__dot { flex: none; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--brand); }

/* Your notifications */
.sq-sheet2__panel--nset { max-width: 720px; }
.sq-nset { display: flex; flex-direction: column; gap: var(--space-4); }
.sq-nset__who { display: flex; align-items: center; gap: var(--space-3); }
.sq-nset__who > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.sq-nset__avatar { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; }
.sq-nset__contact { font-size: 13px; line-height: 18px; color: var(--ink-muted); overflow-wrap: anywhere; }
.sq-nset__section { border-top: 1px solid var(--line); padding-top: var(--space-3); }
.sq-nset__title { margin: 0 0 var(--space-2); font-size: 15px; line-height: 20px; font-weight: 700; }
.sq-nset__lede, .sq-nset__hint { display: block; margin: 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.sq-nset__device { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2) var(--space-3); }
.sq-nset__status { flex: 1 1 220px; margin: 0; font-size: 14px; line-height: 20px; }
.sq-nset__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); padding: var(--space-2) 0; border-bottom: 1px solid var(--line); }
.sq-nset__row:last-child { border-bottom: 0; }
.sq-nset__row--off { opacity: 0.6; }
.sq-nset__what { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sq-nset__label { font-size: 15px; line-height: 20px; }
.sq-nset__chs { flex: none; display: flex; gap: var(--space-1); }
.sq-nset__ch { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 var(--space-2); border: 1px solid var(--line); border-radius: var(--radius-md); font-size: 13px; line-height: 18px; cursor: pointer; }
.sq-nset__ch:has(.sq-nset__check:checked) { border-color: var(--brand); background: var(--brand-soft); }
.sq-nset__ch:has(.sq-nset__check:disabled) { cursor: default; }
.sq-nset__check { width: 18px; height: 18px; margin: 0; accent-color: var(--brand); }
.sq-nset__scope { display: flex; flex-direction: column; gap: var(--space-1); margin: 0 0 var(--space-2); }
.sq-nset__times { display: flex; align-items: center; gap: var(--space-2); margin: var(--space-2) 0 var(--space-3); font-size: 14px; }
.sq-nset__time { width: auto; min-width: 120px; }
.sq-nset__devs { list-style: none; margin: 0 0 var(--space-2); padding: 0; }
.sq-nset__dev { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-2) 0; border-bottom: 1px solid var(--line); }
.sq-nset__dev > span { display: flex; flex-direction: column; min-width: 0; }
@media (max-width: 599px) {
  .sq-nset__row { flex-direction: column; align-items: stretch; }
  .sq-nset__chs { justify-content: flex-start; }
  .sq-nset__ch { flex: 1 1 0; justify-content: center; }
}

/* The one line on a quote list, opening its Activity */
.sq-actline { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; margin: 2px 0 0; padding: 2px 0; border: 0; background: none; color: var(--brand-ink); font: inherit; font-size: 12px; line-height: 16px; font-weight: 600; text-align: left; cursor: pointer; }
.sq-actline:hover span { text-decoration: underline; }
.sq-actline:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-sm); }
.sq-actline svg { flex: none; width: 12px; height: 12px; }
.sq-actline--warning { color: var(--warning); }
.sq-cquote__main .sq-actline, .sq-table__date .sq-actline { display: flex; }

/* The Activity sheet and Manage's Activity card */
.sq-sheet2__panel--actv { max-width: 680px; }
.sq-actv__sub { margin: 0 0 var(--space-3); font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.sq-actv__sub a { color: var(--brand-ink); font-weight: 600; }
.sq-actv__head { margin: var(--space-4) 0 var(--space-2); font-size: 13px; line-height: 18px; font-weight: 700; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.sq-actv__visit summary { cursor: pointer; list-style: none; }
.sq-actv__visit summary::-webkit-details-marker { display: none; }
.sq-actv__visit summary::after { content: " \25BE"; color: var(--ink-muted); font-size: 12px; }
.sq-actv__visit[open] summary::after { content: " \25B4"; }
.sq-actv__more { margin: var(--space-1) 0 0; padding: var(--space-2) var(--space-3); list-style: none; background: var(--surface-muted); border-radius: var(--radius-sm); font-size: 12px; line-height: 18px; font-weight: 400; color: var(--ink-muted); overflow-wrap: anywhere; }
.sq-timeline__item--muted .sq-timeline__title { color: var(--ink-muted); }

@media print { .sq-appbar__bell, .sq-pushhint { display: none !important; } }

/* The Activity sheet in the rep app: KeyValue and Timeline are styled in manage.css, which the rep
   app doesn't load, so the same rules here, inside .sq-actv only. */
.sq-actv .sq-kv { margin: 0; display: grid; grid-template-columns: 1fr; gap: var(--space-3) var(--space-5); }
.sq-actv .sq-kv--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sq-actv .sq-kv__item { min-width: 0; }
.sq-actv .sq-kv dt { font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 2px; }
.sq-actv .sq-kv dd { margin: 0; font-size: 15px; line-height: 22px; overflow-wrap: anywhere; }
.sq-actv .sq-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.sq-actv .sq-timeline__item { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: var(--space-3); padding: var(--space-2) 0; position: relative; }
.sq-actv .sq-timeline__item + .sq-timeline__item::before { content: ""; position: absolute; left: 13px; top: -8px; height: 16px; border-left: 2px solid var(--line); }
.sq-actv .sq-timeline__dot { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-muted); color: var(--ink-muted); border: 1px solid var(--line); }
.sq-actv .sq-timeline__item--brand .sq-timeline__dot { background: var(--brand-soft); color: var(--brand-ink); border-color: var(--brand-soft-line); }
.sq-actv .sq-timeline__item--positive .sq-timeline__dot { background: var(--positive-soft); color: var(--positive-ink); border-color: var(--positive-line); }
.sq-actv .sq-timeline__item--danger .sq-timeline__dot { background: var(--danger-soft); color: var(--danger); border-color: var(--danger-line); }
.sq-actv .sq-timeline__body { min-width: 0; font-size: 14px; line-height: 20px; }
.sq-actv .sq-timeline__sub { font-size: 13px; line-height: 18px; color: var(--ink-muted); overflow-wrap: anywhere; }
.sq-actv .sq-timeline__at { font-size: 12px; line-height: 18px; color: var(--ink-muted); white-space: nowrap; }
.sq-actv .sq-timeline__empty { margin: 0; font-size: 13px; color: var(--ink-muted); }
@media (max-width: 599px) {
  .sq-actv .sq-kv--2 { grid-template-columns: 1fr 1fr; gap: var(--space-2) var(--space-3); }
  .sq-actv .sq-timeline__item { grid-template-columns: 28px minmax(0, 1fr); }
  .sq-actv .sq-timeline__at { grid-column: 2; white-space: normal; }
}
/* Your notifications in the Menu: on a computer the bell is right there, so the link is for the phone's Menu. */
@media (min-width: 1024px) { .sq-appbar__link--menuonly { display: none; } }

/* 3.0.22: calendar sync. Where a visit stands with the Lead Centre, in words with an icon. */
.sq-sync { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-size: 12px; line-height: 16px; font-weight: 600; min-width: 0; }
.sq-sync > svg { flex: none; width: 14px; height: 14px; }
.sq-sync--ok { color: var(--positive-ink); }
.sq-sync--ok > svg { color: var(--positive); }
.sq-sync--quiet { color: var(--ink-muted); font-weight: 500; }
.sq-sync--warn { padding: 4px 6px; border-radius: var(--radius-sm); background: var(--warning-soft); color: var(--warning); }
.sq-calcard__trow .sq-sync--warn { padding: 0; background: none; } /* 3.0.22.2: My week's "Site visits, for now" reads as a line, as mocked up (card and sheet) */
.sq-sync__label { min-width: 0; }
.sq-sync__why { flex-basis: 100%; padding-left: 20px; font-weight: 400; overflow-wrap: anywhere; }
.sq-sync__retry { position: relative; margin-left: auto; padding: 0 2px; border: 0; background: none; color: inherit; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.sq-sync__retry::after { content: ""; position: absolute; inset: -14px -10px; } /* a 44px touch area */
.sq-sync__retry:disabled { cursor: default; text-decoration: none; opacity: .7; }
/* A card that didn't reach the Lead Centre: its warning line says so (no side stripe, 3.0.17.3). */
.sq-pcard__by--lc { display: flex; align-items: flex-start; gap: 6px; }
.sq-pcard__by--lc svg { flex: none; margin-top: 1px; }
.sq-visitpanel__text .sq-sync { margin-top: 2px; }
/* The Lead Centre's busy time: BusyBlock's grey, read only, a calendar where Blocked has a lock. */
.sq-busy--lc .sq-busy__what svg { color: var(--ink-muted); }
.sq-busy__time { white-space: nowrap; } /* 3.0.22.1: "11:30 am-12:30 pm" stays on one line */
/* My week › Calendar */
.sq-calcard__body { display: grid; }
.sq-calcard__trow { grid-template-columns: minmax(0, 1fr); }
.sq-calcard__trow .sq-trow__src { max-width: 60ch; }
.sq-calcard__acts { display: flex; flex-wrap: wrap; gap: var(--space-2); padding: var(--space-3) var(--space-4) var(--space-4); border-top: 1px solid var(--line); }
.sq-calcard__acts--sheet { display: grid; padding: var(--space-3) 0 0; border-top: 0; }
.sq-calcard__row { grid-template-columns: minmax(0, 1fr) 16px; border-bottom: 0; }
.sq-calcard__sum { display: grid; gap: 2px; min-width: 0; }
.sq-sheet2 .sq-calcard__trow { padding-inline: 0; }
/* Add to my phone's calendar */
.sq-feed__addr { display: flex; gap: var(--space-2); align-items: stretch; min-width: 0; }
.sq-feed__url { flex: 1 1 0; min-width: 0; font-family: var(--font-mono); font-size: 13px; text-overflow: ellipsis; background: var(--surface-muted); }
.sq-feed__addr .sq-btn { flex: none; }

/* ------------------------------------------------------------------------ */
/* 3.0.23: booking pages, as staff see them (plan §3.3, §6.5, §7.1, §12)     */
/* ------------------------------------------------------------------------ */
/* Email Jane the change: the tick box, or the line saying no email goes without a time. */
.sq-tell { display: grid; gap: var(--space-2); min-width: 0; }
.sq-tell > [hidden] { display: none; }
.sq-dialog__panel .sq-tell { margin: 0 0 var(--space-4); }
.sq-bulktell { display: grid; gap: var(--space-3); min-width: 0; }
.sq-bulktell:empty { display: none; }
/* Check details: what the customer typed online, with Use it and Keep. Laid out as a warning Alert. */
.sq-bookchecks { display: grid; gap: var(--space-2); min-width: 0; }
.sq-bookcheck { display: flex; align-items: flex-start; gap: var(--space-3); min-width: 0; padding: var(--space-3) var(--space-4); border: 1px solid var(--warning-line); border-radius: var(--radius-md); background: var(--warning-soft); color: var(--warning); font-size: 14px; line-height: 20px; }
.sq-bookcheck > svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.sq-bookcheck__body { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; color: var(--ink); }
.sq-bookcheck__title { font-weight: 600; overflow-wrap: anywhere; }
.sq-bookcheck__text { color: var(--ink-muted); overflow-wrap: anywhere; }
.sq-bookcheck__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.sq-bookcheck__actions .sq-btn { max-width: 100%; }
.sq-bookcheck__actions .sq-btn > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Inside a Planner card: tighter, and the two buttons under each other so neither is cut. */
.sq-bookcheck--compact { gap: var(--space-2); padding: var(--space-2) var(--space-3); font-size: 13px; line-height: 18px; }
.sq-bookcheck--compact > svg { width: 16px; height: 16px; }
.sq-bookcheck--compact .sq-bookcheck__actions { flex-direction: column; align-items: stretch; }
.sq-pcard .sq-bookchecks { margin: var(--space-1) 0; }
/* Send booking link */
.sq-booklink { min-width: 0; }
.sq-booklink__ways { flex-wrap: wrap; gap: var(--space-2); }
.sq-booklink__ways:empty { display: none; }
.sq-booklink__status:empty { display: none; }
.sq-booklink__to, .sq-booklink__keep { margin: 0; overflow-wrap: anywhere; }
.sq-booklink__renew { display: inline; padding: 0; vertical-align: baseline; }
@media (max-width: 599px) {
  .sq-booklink__ways .sq-btn { flex: 1 1 0; min-width: 0; }
  .sq-booklink__renew { min-height: 0; padding: 13px 0; margin: -13px 0; } /* a 44px target without moving the line */
}
/* My week: My booking page */
.sq-mybook__body { display: grid; gap: var(--space-3); padding: var(--space-3) var(--space-4) var(--space-4); min-width: 0; }
.sq-mybook__lede { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.sq-mybook__acts { flex-wrap: wrap; gap: var(--space-2); }
.sq-mybook__acts:empty { display: none; }
@media (max-width: 599px) {
  .sq-mybook__acts .sq-btn { flex: 1 1 0; }
}
/* The customer's visit line: Booked online, and Check details */
.sq-visitpanel__sub--tag { display: inline-flex; align-items: center; gap: 4px; }
.sq-visitpanel__sub--tag svg { flex: none; width: 14px; height: 14px; }
.sq-visitpanel__flag { align-self: flex-start; margin-top: 4px; }

/* 3.0.23.3: SQ.SidePanel, the frame of the quote builder's customer quick view (Quick.dc.html's
   .mk-qv). At the side from 900 px (sq-sidepanel--side: no dark cover, the page beside it stays
   usable); a sheet under 900 px (sq-sidepanel--sheet: centred from 600, a bottom sheet under it).
   The script picks the mode with the same 900 px it uses for the history entry. Above the app bar
   and the builder's action bar; under toasts, the preview, drawers, sheets and dialogs. */
.sq-sidepanel { position: fixed; z-index: 50; display: flex; flex-direction: column; background: var(--surface); color: var(--ink); outline: none; }
.sq-sidepanel__head { flex: none; display: flex; align-items: flex-start; gap: 12px; padding: 16px 16px 12px; border-bottom: 1px solid var(--line); }
.sq-sidepanel__slot { flex: 1; min-width: 0; }
.sq-sidepanel__title { margin: 0; font-size: 19px; line-height: 26px; font-weight: 600; overflow-wrap: anywhere; }
.sq-sidepanel__head > .sq-iconbtn { flex: none; margin: -6px -6px 0 0; }
.sq-sidepanel__body { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.sq-sidepanel__grab { display: none; }
.sq-sidepanel__scrim { position: fixed; inset: 0; z-index: 49; background: var(--scrim); }
.sq-sidepanel--side { top: 0; right: 0; bottom: 0; width: min(var(--sq-sidepanel-w, 420px), 100vw); border-left: 1px solid var(--line); box-shadow: -8px 0 24px rgba(15, 41, 82, 0.08); animation: sq-sidepanel-side 180ms ease-out; }
.sq-sidepanel--side .sq-sidepanel__head { padding-top: max(16px, env(safe-area-inset-top, 0px)); }
.sq-sidepanel--sheet { left: 0; right: 0; bottom: 0; height: 92%; max-height: 92dvh; border-radius: 20px 20px 0 0; box-shadow: 0 -8px 32px rgba(15, 41, 82, 0.18); animation: sq-sidepanel-sheet 200ms ease-out; }
.sq-sidepanel--sheet .sq-sidepanel__grab { display: block; flex: none; width: 40px; height: 4px; margin: 8px auto 0; border-radius: 2px; background: var(--line-strong); }
.sq-sidepanel--sheet .sq-sidepanel__head { padding-top: 12px; }
.sq-sidepanel--side .sq-sidepanel__body, .sq-sidepanel--sheet .sq-sidepanel__body { padding-bottom: max(16px, env(safe-area-inset-bottom, 0px)); }
@media (min-width: 600px) {
  .sq-sidepanel--sheet { left: 50%; width: 560px; margin-left: -280px; height: 86%; }
}
@keyframes sq-sidepanel-side { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sq-sidepanel-sheet { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sq-sidepanel--side, .sq-sidepanel--sheet { animation: none; } }
@media print { .sq-sidepanel, .sq-sidepanel__scrim { display: none !important; } }
/* 44 px targets on touch screens in the shared panels: the in-app preview's Close (BackPreview.dc.html),
   the bell's tools, a photo's Download, and the small buttons inside the quick view's frame (its note box). */
@media (max-width: 1023px), (pointer: coarse) {
  .sq-pvsheet__bar .sq-btn { min-height: 44px; }
  .sq-nlist__tools .sq-btn, .sq-nlist__more .sq-btn, .sq-sidepanel .sq-btn--sm { min-height: 44px; }
  .sq-lightbox__dl { min-height: 44px; min-width: 44px; justify-content: center; }
  .sq-sidepanel .sq-iconbtn--sm { width: 44px; height: 44px; }
}
