/* Your Front Desk preview additions. Same navy + orange theme; Plus Jakarta Sans. */
html, body, button, input, select, textarea { font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.brand .product { font-size: 11px; font-weight: 700; color: var(--accent-text); letter-spacing: .4px; text-transform: uppercase; }
.sample-flag { display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 700; background: var(--accent-tint); color: var(--accent-text); border-radius: 999px; padding: 2px 8px; }
.sample-flag[hidden] { display: none; }
.brand .trial-line { margin-top: 3px; font-size: 12px; line-height: 1.3; color: var(--muted); text-wrap: balance; }
.brand .trial-line[hidden] { display: none; }
.topbar-biz {
  display: none;
  font-size: 15px;
  font-weight: 700;
  line-height: 19px;
  color: var(--text);
  max-width: 46%;
  min-width: 0;
  flex-shrink: 1;
  margin-right: 8px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}
.sidebar { overflow-y: auto; }
.side-foot { margin-top: auto; padding: 16px 4px 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--navy); color: #fff; border: 1px solid var(--navy); border-radius: var(--radius-md); padding: 9px 14px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(1.15); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.ghost { background: var(--card); color: var(--text); border-color: var(--border); }
.btn.success-outline { background: var(--card); color: var(--success); border-color: var(--success); }
.btn.block { width: 100%; }
.btn.big { padding: 13px 16px; font-size: 16px; background: var(--accent-grad); border-color: transparent; color: var(--on-accent); font-weight: 800; }
.danger-text { color: var(--danger) !important; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.top-actions select { font: inherit; padding: 8px 10px; border-radius: var(--radius-md); border: 1px solid var(--border); background: #fff; }
.actions.wrap { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.split { display: grid; grid-template-columns: minmax(320px, 420px) 1fr; gap: 20px; align-items: start; }
.pane { position: sticky; top: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.search-input { width: 100%; font: inherit; padding: 10px 14px; border-radius: var(--radius-md); border: 1px solid var(--border); background: #fff; }
.call-item { display: block; background: var(--card); border-radius: var(--radius-md); padding: 12px 14px; margin-bottom: 8px; color: inherit; text-decoration: none; border: 2px solid transparent; }
.call-item.selected { border-color: var(--accent-ui); background: var(--accent-tint); box-shadow: inset 0 0 0 2px var(--accent-ui), 0 0 0 3px rgba(14, 158, 148, 0.28); }
@media (hover: hover) and (pointer: fine) {
  .call-item:hover { background: var(--fill-pressed); }
}
@media (hover: hover) and (pointer: fine) {
  .call-item.selected:hover { background: var(--accent-tint); }
}
.ci-top { display: flex; justify-content: space-between; gap: 8px; }
.ci-sum { font-size: 14px; color: var(--muted); margin: 4px 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.badge-row:empty { display: none; }
.badge.info { background: var(--badge-info-bg); color: var(--badge-info-text); }
.badge.spam { background: var(--badge-spam-bg); color: var(--badge-spam-text); }
.appt-row, .cust-row, .hist-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--border); color: inherit; text-decoration: none; justify-content: space-between; }
.hist-row { display: block; }
.card > .appt-row:first-child, .card > .cust-row:first-child, .card > .hist-row:first-child { border-top: 0; padding-top: 0; }
.appt-time { width: 150px; font-weight: 600; font-size: 14px; flex-shrink: 0; }
.appt-main { flex: 1; min-width: 0; }
.right { text-align: right; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--border); font-size: 15px; }
.kv:first-child { border-top: 0; }
.note-row { padding: 8px 0; border-top: 1px solid var(--border); }
.note-row:first-child { border-top: 0; padding-top: 0; }
.pre { white-space: pre-line; }
.link-btn { background: none; border: 0; color: var(--link); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; padding: 4px 8px 0 0; }
.label-row { display: flex; justify-content: space-between; align-items: center; }
.label-row .section-label { margin-top: 16px; }
.cust-stats { display: flex; gap: 24px; margin: 12px 0 6px; }
.stat strong { display: block; font-size: 22px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 8px; }
.tile .money-lg { font-size: 28px; font-weight: 800; color: var(--navy); }
.meter { height: 10px; border-radius: 999px; background: var(--fill); overflow: hidden; }
.meter > div { height: 100%; background: var(--accent-ui); }
.chip-list { display: flex; flex-wrap: wrap; gap: 6px; }
.notice { background: var(--orange-tint); color: var(--orange-text); border-radius: var(--radius-md); padding: 10px 14px; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.notice[hidden] { display: none; }
.form-error { color: var(--danger); font-size: 14px; font-weight: 600; margin-top: 8px; white-space: pre-line; }
.form-error[hidden], .field-error[hidden] { display: none; }
.field-error { color: var(--danger); font-size: 13px; margin-top: 4px; }
.preview-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.preview-table th, .preview-table td { text-align: left; padding: 8px; border-top: 1px solid var(--border); }
.preview-table tr.duplicate td, .preview-table tr.invalid td { color: var(--muted); }
.modal-back { position: fixed; inset: 0; background: rgba(10,22,40,.45); display: flex; align-items: center; justify-content: center; z-index: 50; }
.modal-back[hidden] { display: none; }
.modal { background: #fff; border-radius: var(--radius-lg); padding: 22px; width: min(520px, 94vw); max-height: 90vh; overflow: auto; }
.modal h2 { font-size: 20px; margin-bottom: 10px; }
.modal label, .signin-card label { display: block; font-size: 13px; font-weight: 700; margin: 12px 0 4px; }
.modal input, .modal select, .modal textarea, .signin-card input { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 600; z-index: 60; }
.toast[hidden] { display: none; }
/* sign-in */
.signin-body { background: var(--navy); min-height: 100vh; height: auto; }
.signin-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.signin-art { color: #fff; padding: 72px 64px; display: flex; flex-direction: column; justify-content: center; background: radial-gradient(circle at 20% 20%, #15284a, var(--navy) 60%); }
.signin-art img { width: 64px; height: 64px; border-radius: 14px; margin-bottom: 20px; }
.signin-art h2 { font-size: 40px; line-height: 46px; font-weight: 800; letter-spacing: -.5px; }
.signin-art p { color: #c8d0dc; font-size: 18px; line-height: 27px; margin: 14px 0 24px; max-width: 460px; }
.signin-art ul { list-style: none; display: grid; gap: 12px; }
.signin-art li { font-size: 16px; display: flex; gap: 10px; align-items: center; }
.signin-art li .ico { color: var(--accent-ui); font-size: 20px; }
.signin-card { background: var(--bg); padding: 72px 64px; display: flex; flex-direction: column; justify-content: center; max-width: 100%; }
.signin-card form { max-width: 420px; }
.signin-card > p, .signin-card h1 { max-width: 420px; }
.signin-card h1 { font-size: 32px; font-weight: 800; margin: 8px 0 6px; color: var(--navy); }
.signin-card .btn.big { margin-top: 20px; }
.preview-flag { align-self: flex-start; font-size: 11px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; background: var(--accent-tint); color: var(--accent-text); padding: 3px 10px; border-radius: 999px; }
.sample-note { background: var(--accent-tint); color: var(--accent-text); padding: 8px 12px; border-radius: var(--radius-md); font-size: 14px; margin-top: 10px; max-width: 420px; }
.sample-note[hidden] { display: none; }
/* phone */
@media (max-width: 760px) {
  .signin-wrap { grid-template-columns: 1fr; }
  .signin-art { padding: 36px 24px 24px; }
  .signin-art h2 { font-size: 28px; line-height: 34px; }
  .signin-art p { font-size: 16px; margin-bottom: 12px; }
  .signin-art ul { display: none; }
  .signin-card { padding: 28px 24px 40px; border-radius: 20px 20px 0 0; }
  .shell { display: block; height: auto; overflow: visible; }
  .sidebar { position: sticky; top: 0; z-index: 20; padding: 10px 10px 6px; border-right: 0; border-bottom: 1px solid var(--border); }
  .brand { padding: 0 4px 8px; }
  .brand img { width: 28px; height: 28px; }
  .nav { flex-direction: row; overflow-x: auto; gap: 4px; }
  .nav a { flex-shrink: 0; padding: 7px 10px; font-size: 13px; gap: 6px; }
  .nav a .ico { font-size: 17px; width: auto; }
  .side-foot { display: none; }
  .main { height: auto; overflow: visible; }
  .topbar { flex-wrap: wrap; padding: 14px 14px 8px; }
  .topbar h1 { font-size: 22px; line-height: 28px; }
  .content { padding: 0 14px 24px; overflow: visible; }
  .split, .two-col { grid-template-columns: 1fr; }
  .pane { position: static; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .appt-row { flex-wrap: wrap; gap: 6px; }
  .appt-time { width: auto; }
  .cust-row { flex-wrap: wrap; }
  .right { text-align: left; }
}
.nav .badge[hidden] { display: none; }
.card .name { font-size: 22px; font-weight: 800; line-height: 28px; color: var(--navy); }
.card .phone { font-size: 16px; margin-top: 2px; }
.card .phone a { color: var(--link); }
.card .when { color: var(--muted); font-size: 14px; margin-top: 2px; }
.chat { display: flex; flex-direction: column; gap: 10px; max-height: 420px; overflow-y: auto; }
.chat-msg { max-width: 80%; }
.chat-msg .bubble { background: var(--fill); border-radius: 14px; padding: 8px 12px; margin-top: 2px; }
.chat-msg.mine { align-self: flex-end; text-align: right; }
.chat-msg.mine .bubble { background: var(--navy); color: #fff; text-align: left; }
.chat-input { display: flex; gap: 8px; margin-top: 12px; align-items: flex-end; }
.chat-input textarea { flex: 1; font: inherit; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-md); }
.bigjob-banner { display: flex; align-items: stretch; gap: 0; margin: 12px 24px 0; background: linear-gradient(90deg, #fff4e8, var(--orange-tint)); border: 1.5px solid var(--orange); border-radius: var(--radius-lg); overflow: hidden; flex-shrink: 0; box-shadow: 0 2px 10px rgba(238,88,12,.12); }
.bigjob-banner[hidden] { display: none; }
.bj-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: none; border: 0; font: inherit; color: var(--text); text-align: left; cursor: pointer; }
.bj-tag { flex-shrink: 0; background: var(--orange); color: #fff; font-weight: 800; font-size: 13px; padding: 4px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; }
.bj-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px; }
.bj-when { flex-shrink: 0; font-size: 13px; color: var(--orange-text); font-weight: 600; }
.bj-dismiss { flex-shrink: 0; background: none; border: 0; border-left: 1px solid rgba(238,88,12,.3); padding: 0 16px; font: inherit; font-size: 14px; font-weight: 700; color: var(--orange-text); cursor: pointer; }
.bj-dismiss:hover, .bj-main:hover { background: rgba(238,88,12,.08); }
.badge.bigjob { background: var(--orange); color: #fff; font-weight: 800; }
.bj-setting { border: 1.5px solid var(--orange-tint); margin-bottom: 8px; }
@media (max-width: 760px) {
  .bigjob-banner { margin: 10px 14px 0; }
  .bj-main { flex-wrap: wrap; gap: 6px 10px; padding: 10px 12px; }
  .bj-text { white-space: normal; flex-basis: 100%; order: 3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .bj-dismiss { padding: 0 12px; }
}
/* Account > Reports */
.rep-h { font-size: 16px; font-weight: 800; margin: 0 0 8px; }
.reports > .card { height: 100%; }
/* Photos with Before / After labels */
.photo-grid { flex-wrap: wrap; }
.photo-grid figure.photo { margin: 0; width: 140px; }
.photo-grid figure.photo img { width: 140px; height: 105px; object-fit: cover; border-radius: 10px; display: block; }
.photo-grid figcaption { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; color: var(--muted, #667); margin-top: 4px; }
/* Calls: Needs you on top, one list, spam link */
.list-head { display: flex; justify-content: space-between; align-items: center; margin: 14px 2px 6px; }
.list-head .label { margin: 0; }
.needs-head .label { color: #b42318; }
.call-item.needs { border-left: 3px solid #e8590c; }
.spam-link { font-size: 12px; color: var(--muted, #667); }
/* Keep long links (review link) from widening the page on phones */
.two-col > * { min-width: 0; }
.card .body { overflow-wrap: anywhere; }

/* ===== Status buttons (segmented) ===== */
.seg { display: flex; flex-wrap: wrap; gap: 0; border: 1.5px solid var(--navy); border-radius: 12px; overflow: hidden; background: #fff; width: fit-content; max-width: 100%; }
.seg-btn { font: inherit; font-size: 15px; font-weight: 700; color: var(--navy); background: #fff; border: 0; border-right: 1.5px solid var(--navy); padding: 11px 18px; min-height: 46px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; flex: 1 1 auto; justify-content: center; }
.seg-btn:last-child { border-right: 0; }
.seg-btn:hover:not(:disabled):not(.on) { background: var(--accent-tint); }
.seg-btn:focus-visible { outline: 3px solid var(--accent-ui); outline-offset: -3px; }
.seg-btn.on { background: var(--navy); color: #fff; cursor: default; }
.seg-btn:disabled:not(.on) { color: #9aa3b2; cursor: not-allowed; background: #f6f7f9; }
.seg-btn.pending { background: var(--accent-tint); }
.seg.busy { opacity: .75; }
.seg-check { font-size: 13px; }
.seg-sub { margin-top: 12px; display: grid; gap: 6px; }
.seg-sub .seg { border-color: var(--border); }
.seg-sub .seg-btn { font-size: 13px; padding: 8px 12px; min-height: 38px; border-right-color: var(--border); }
.howto { margin-top: 12px; font-size: 14px; }
.howto summary { cursor: pointer; font-weight: 700; color: var(--navy); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.howto summary::-webkit-details-marker { display: none; }
.howto-q { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-tint); color: var(--accent-text); font-size: 12px; font-weight: 800; }
.howto-intro { margin: 8px 0 4px; color: var(--muted); }
.howto ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.howto-list { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 15px; }
.howto-h { font-size: 14px; font-weight: 700; margin: 12px 0 0; }
.howto-section:first-child .howto-h { margin-top: 8px; }
.status-tip { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; background: #fff7ed; border: 1px solid #fdba74; color: #7c2d12; border-radius: 12px; padding: 10px 14px; margin: 12px 0 0; font-size: 14px; }
.tip-x { font: inherit; font-weight: 700; font-size: 13px; background: #fff; border: 1px solid #fdba74; color: #7c2d12; border-radius: 999px; padding: 5px 12px; cursor: pointer; white-space: nowrap; }
.toast { display: flex; align-items: center; gap: 12px; width: max-content; max-width: min(92vw, 560px); box-sizing: border-box; }
.toast:has(.toast-act) { border-radius: 16px; }
@media (max-width: 760px) { .toast { width: calc(100vw - 32px); border-radius: 16px; } }
.toast[hidden] { display: none; }
.toast-act { font: inherit; font-weight: 800; color: #fdba74; background: transparent; border: 1px solid #fdba74; border-radius: 999px; padding: 4px 12px; cursor: pointer; white-space: nowrap; }
.needs-explain { margin: -2px 2px 8px; font-size: 13px; color: var(--muted); }
.ci-done { margin-top: 8px; }
.ci-done .btn { padding: 7px 12px; font-size: 13px; }

/* ===== Job details ===== */
.job-when { font-weight: 700; color: var(--accent-text); font-size: 14px; }
.job-head .name { font-size: 24px; margin-top: 2px; }
.job-contact { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.kv a { color: var(--navy); font-weight: 600; text-align: right; overflow-wrap: anywhere; }

/* ===== Schedule views ===== */
.sched-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 14px; }
.sched-show-completed { display: inline-flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%; font-size: 14px; font-weight: 600; color: var(--text, #0f1713); cursor: pointer; user-select: none; min-height: 44px; }
.sched-show-completed input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent, #0E9E94); }
/* Schedule / Slow day / Who's working, and List / Day / Week / Month / Year / Board: only as wide as the buttons, left aligned. */
.sched-bar .seg { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; width: fit-content; max-width: 100%; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.sched-bar .seg-btn { flex: 0 0 auto; white-space: nowrap; padding: 11px 12px; min-width: max-content; }

.sched-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sched-title { font-size: 18px; margin: 0 0 0 6px; }
.btn.icon-only { padding: 9px 11px; }
.timeline { position: relative; margin-top: 4px; }
.tl-hour { position: absolute; left: 0; right: 0; border-top: 1px solid var(--border); }
.tl-hour span { position: absolute; top: -9px; left: 0; width: 56px; font-size: 12px; color: var(--muted); background: var(--card); }
.tl-now { position: absolute; left: 60px; right: 0; border-top: 2px solid var(--accent-ui); z-index: 2; }
.tl-appt { position: absolute; background: #eef2ff; border-left: 4px solid var(--navy); border-radius: 8px; padding: 5px 8px; color: inherit; text-decoration: none; overflow: hidden; display: flex; flex-direction: column; font-size: 13px; gap: 1px; z-index: 1; }
@media (hover: hover) and (pointer: fine) {
  .tl-appt:hover { background: #e0e7ff; }
}
.tl-appt.cancelled { opacity: .55; text-decoration: line-through; }
.tl-what, .tl-who { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.week-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.wk-col { background: var(--card); border-radius: var(--radius-md); padding: 8px; min-height: 220px; display: flex; flex-direction: column; gap: 6px; border: 2px solid transparent; }
.wk-col.today { border-color: var(--accent-ui); }
.wk-head { display: flex; justify-content: space-between; align-items: baseline; color: inherit; text-decoration: none; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.wk-dow { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.wk-num { font-size: 20px; font-weight: 800; }
.wk-appt { display: flex; flex-direction: column; background: #eef2ff; border-left: 3px solid var(--navy); border-radius: 6px; padding: 5px 7px; color: inherit; text-decoration: none; font-size: 12px; line-height: 1.3; min-width: 0; max-width: 100%; overflow: hidden; box-sizing: border-box; }
@media (hover: hover) and (pointer: fine) {
  .wk-appt:hover { background: #e0e7ff; }
}
.wk-appt.cancelled { opacity: .55; text-decoration: line-through; }
.wk-time { font-weight: 700; color: var(--accent-text); font-size: 12px; line-height: 1.3; }
.wk-appt strong { font-size: 12px; font-weight: 700; line-height: 1.3; min-width: 0; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.wk-what, .wk-who { color: var(--muted); font-size: 12px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.wk-empty { color: #c0c6d0; text-align: center; margin-top: 12px; }
.wk-list-head { display: flex; justify-content: space-between; align-items: center; margin: 14px 2px 6px; font-weight: 700; color: inherit; text-decoration: none; }
.wk-list-head.today span:first-child { color: var(--accent-text); }
.month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.mg-dow { font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; padding: 4px 0; }
.mg-day { min-height: 96px; border-radius: 8px; padding: 6px; background: #fafbfc; color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: 3px; border: 2px solid transparent; overflow: hidden; }
@media (hover: hover) and (pointer: fine) {
  .mg-day:hover { background: var(--accent-tint); }
}
.mg-day.other { opacity: .45; }
.mg-day.today { border-color: var(--accent-ui); }
.mg-num { font-weight: 800; font-size: 14px; }
.mg-item { font-size: 11px; background: #eef2ff; border-radius: 4px; padding: 1px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mg-more { font-size: 11px; color: var(--muted); }
.mg-count { align-self: center; margin-top: auto; background: var(--navy); color: #fff; font-size: 11px; font-weight: 800; border-radius: 999px; min-width: 20px; text-align: center; padding: 1px 6px; }
.year-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.year-grid .card { padding: 12px; }
.mini-head { display: flex; justify-content: space-between; align-items: baseline; color: inherit; text-decoration: none; margin-bottom: 6px; }
.mini-head:hover strong { color: var(--accent-text); }
.mini-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; text-align: center; }
.mini-dow { font-size: 10px; color: var(--muted); font-weight: 700; }
.mini-day { font-size: 11px; line-height: 22px; border-radius: 6px; color: inherit; text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .mini-day:hover { background: var(--accent-tint); }
}
.mini-day.has { font-weight: 800; color: #fff; }
.mini-day.n1 { background: #93a5c9; } .mini-day.n2 { background: #4b6398; } .mini-day.n3 { background: var(--navy); }
.mini-day.today { outline: 2px solid var(--accent-ui); }
@media (max-width: 1100px) { .year-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .seg { width: 100%; }
  .seg-btn { padding: 11px 8px; font-size: 14px; }
  .status-tip { flex-direction: column; }
  .sched-bar { gap: 10px; }
  .sched-title { width: 100%; margin: 4px 0 0; font-size: 17px; }
  .mg-day { min-height: 52px; padding: 4px; align-items: center; }
  .year-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .year-grid .card { padding: 8px; }
  .mini-day { font-size: 10px; line-height: 18px; }
  .job-contact .btn { flex: 1 1 calc(50% - 8px); }
  .ci-done .btn { width: 100%; }
}
@media (max-width: 760px) { .seg { flex-wrap: nowrap; } .seg-btn { white-space: normal; line-height: 1.2; text-align: center; min-width: 0; } }
.manage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.manage-grid .btn { min-height: 44px; }
button.tl-hour { background: transparent; border: 0; border-top: 1px solid var(--border); padding: 0; cursor: copy; text-align: left; font: inherit; display: block; width: 100%; }
button.tl-hour:hover { background: rgba(255, 237, 213, .5); }
/* Booking cards: stretched-link hit target; "Edit appointment" and Maps stay independently tappable. */
.appt-card,
.board-card { position: relative; }
/* Nov 21 2026: Day timeline bookings must stay absolutely placed (the rule above was pushing every booking after
   the first one down the page, so they no longer lined up with their hour). */
.tl-appt.appt-card { position: absolute; }
.appt-card .appt-open,
.board-card .board-open {
  color: inherit;
  text-decoration: none;
}
.appt-row.appt-card .appt-open {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.appt-open::after,
.board-open::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.appt-card .addr-link,
.appt-card .needs-addr,
.appt-card .needs-addr a,
.appt-card .appt-edit,
.board-card .addr-link,
.board-card .needs-addr,
.board-card .needs-addr a,
.board-card .appt-edit {
  position: relative;
  z-index: 2;
}
.appt-row.appt-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  grid-template-areas:
    "time main edit"
    ". tags tags"
    ". what what"
    "addr addr addr";
  column-gap: 16px;
  row-gap: 4px;
  align-items: start;
}
.appt-row.appt-card .appt-time { grid-area: time; width: auto; font-weight: 700; }
.appt-row.appt-card .appt-main { grid-area: main; min-width: 0; flex: none; }
.appt-row.appt-card .appt-main strong { font-size: 16px; font-weight: 800; line-height: 1.3; }
.appt-row.appt-card .appt-edit { grid-area: edit; margin: 0; }
.appt-row.appt-card .appt-tags { grid-area: tags; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.appt-row.appt-card .appt-what { grid-area: what; min-width: 0; }
.appt-row.appt-card .addr-link,
.appt-row.appt-card .needs-addr { grid-area: addr; margin: 0; max-width: 100%; }
@media (min-width: 1000px) {
  .appt-row.appt-card .addr-link,
  .appt-row.appt-card .needs-addr { margin-left: 166px; max-width: calc(100% - 166px); }
}
.wk-appt.appt-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}
.wk-appt.appt-card .appt-open {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}
.appt-edit { font-size: 12px; font-weight: 700; color: var(--link); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.appt-edit:hover { color: var(--accent-text); }
.tl-appt { padding-right: 118px; box-sizing: border-box; overflow: hidden; }
.tl-appt .appt-edit { position: absolute; top: 4px; right: 6px; background: rgba(238,242,255,.92); padding: 0 3px; border-radius: 4px; font-size: 11px; z-index: 2; }
.tl-appt .appt-open { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-right: 0; }
.wk-appt .appt-edit { font-size: 11px; font-weight: 600; margin-top: 2px; align-self: flex-start; color: var(--muted); text-decoration: none; white-space: normal; overflow: visible; line-height: 1.25; }
.wk-appt .job-type-tags,
.wk-appt .badge.job-type-tag,
.wk-appt > .job-type-tags,
.wk-appt > .job-type-tag {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 2px 0 0;
  align-self: flex-start;
}
.wk-appt .badge.job-type-tag {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  padding: 1px 7px;
}
.appt-row .badge.job-type-tag {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-sizing: border-box;
}
.appt-row .appt-edit { margin-left: auto; }
.appt-card.noshow { opacity: .7; border-left-color: var(--danger, #b91c1c); }
.appt-card.showed { border-left-color: #15803d; }

/* ---------- Setup walkthrough (navy + gold-orange, Plus Jakarta Sans) ---------- */
body.setup-open { overflow: hidden; }
.setup { --s-bg: #0a1628; --s-bg2: #0f2240; --s-card: rgba(255,255,255,.055); --s-border: rgba(255,255,255,.12); --s-text: #f5f7fb; --s-muted: #aab6c8; --s-faint: #7d8aa0;
  --s-orange: #19d3c5; --s-gold: #19d3c5; --s-warn: #f5a524; --s-accent2: #5bc8ff; --s-on-accent: #0a1628; --s-blue: #7fa7ff; --s-green: #22c55e;
  position: fixed; inset: 0; z-index: 55; display: flex; flex-direction: column; color: var(--s-text); font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  background: radial-gradient(1200px 600px at 85% -10%, #1b3566 0%, rgba(27,53,102,0) 60%), linear-gradient(180deg, var(--s-bg2) 0%, var(--s-bg) 55%); overflow: hidden; overflow: clip; }
.setup-glow { position: absolute; z-index: 0; border-radius: 50%; pointer-events: none; filter: blur(10px); }
.setup-glow.a { width: 420px; height: 420px; top: -160px; right: -120px; background: radial-gradient(circle, rgba(91,140,255,.28), rgba(91,140,255,0) 70%); }
.setup-glow.b { width: 460px; height: 460px; bottom: -200px; left: -140px; background: radial-gradient(circle, rgba(25,211,197,.2), rgba(25,211,197,0) 70%); }
.setup-top { position: relative; z-index: 1; flex: none; display: flex; align-items: center; gap: 16px; padding: 16px 28px 8px; max-width: 1120px; width: 100%; margin: 0 auto; box-sizing: border-box; }
.setup-icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--s-border); background: rgba(255,255,255,.06); color: var(--s-text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.setup-icon-btn.ghost { visibility: hidden; }
.setup-icon-btn:hover { background: rgba(255,255,255,.12); }
.setup-prog { flex: 1; min-width: 0; }
.setup-track { height: 8px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; }
.setup-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #19d3c5, #5bc8ff); transition: width .45s cubic-bezier(.2,.8,.2,1); box-shadow: 0 0 12px rgba(25,211,197,.55); }
.setup-count { color: var(--s-faint); font-size: 12px; font-weight: 700; margin-top: 6px; letter-spacing: .3px; }
.setup-skip-all { background: none; border: 0; color: var(--s-muted); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; padding: 8px 4px; white-space: nowrap; }
.setup-skip-all:hover { color: #fff; text-decoration: underline; }
.setup-scroll { position: relative; z-index: 1; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.setup-grid { display: grid; grid-template-columns: 220px minmax(0, 640px); gap: 48px; justify-content: center; max-width: 1120px; margin: 0 auto; padding: 18px 28px 40px; box-sizing: border-box; }
.setup-rail { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; align-self: start; }
.setup-rail li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; color: var(--s-faint); font-weight: 600; font-size: 14px; }
.setup-rail li.cur { background: rgba(255,255,255,.07); color: #fff; }
.setup-rail li.done { color: var(--s-muted); }
.setup-rail-dot { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--s-border); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex: none; }
.setup-rail li.cur .setup-rail-dot { border-color: var(--s-orange); color: var(--s-on-accent); background: var(--s-orange); box-shadow: 0 0 0 4px rgba(25,211,197,.22); }
.setup-rail li.done .setup-rail-dot { border-color: var(--s-orange); background: var(--s-orange); color: var(--s-on-accent); }
.setup-rail-btn { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: inherit; text-align: left; cursor: pointer; border-radius: 10px; }
.setup-rail-btn:hover .setup-rail-dot { border-color: var(--s-orange); }
.setup-rail-btn:focus-visible { outline: 2px solid var(--s-orange); outline-offset: 3px; }
.setup-missing { margin-top: 18px; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); }
.setup-missing-jumps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.setup-missing-jump { appearance: none; border: 1px solid rgba(245,165,36,.55); background: rgba(238,88,12,.16); color: #fff; font: inherit; font-weight: 700; font-size: 13.5px; padding: 8px 12px; border-radius: 999px; cursor: pointer; }
.setup-missing-jump:hover { background: rgba(238,88,12,.28); }
.setup-error .setup-missing-jumps { margin-top: 8px; }
.setup-main { min-width: 0; }
.setup-body-wrap { animation: setupIn .34s cubic-bezier(.2,.8,.2,1) both; }
.setup-body-wrap.in-left { animation-name: setupInLeft; }
@keyframes setupIn { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes setupInLeft { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.setup-kicker { color: var(--s-gold); font-size: 13px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; }
.setup-title { font-size: 34px; line-height: 1.15; font-weight: 800; margin: 8px 0 10px; letter-spacing: -.4px; color: #fff; outline: none; }
.setup-body { color: var(--s-muted); font-size: 17px; line-height: 1.55; margin: 0 0 6px; }
.setup-body.muted { font-size: 14px; color: var(--s-faint); margin-top: 18px; }
.setup-body.center { text-align: center; }
.setup-small { color: var(--s-muted); font-size: 13.5px; line-height: 1.45; margin: 0; }
.setup-small.block { display: block; margin-top: 2px; }
.setup-small.caps { text-transform: uppercase; letter-spacing: 1.2px; font-weight: 800; font-size: 12px; color: var(--s-faint); }
.setup-small.warn, .setup-small .warn { color: var(--s-warn); }
.setup-small svg { vertical-align: -2px; }
.setup-label { font-size: 14px; font-weight: 800; color: #fff; margin: 22px 0 10px; }
.setup-label-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.setup-label-row .setup-label { margin-bottom: 10px; }
.setup-label-row .setup-small { margin-top: 8px; }
.setup-link { background: none; border: 0; color: var(--s-blue); font: inherit; font-weight: 700; cursor: pointer; padding: 0; }
.setup-input { width: 100%; box-sizing: border-box; background: rgba(8,18,36,.65); border: 1.5px solid rgba(127,167,255,.35); color: #fff; border-radius: 16px; padding: 14px 16px; font: inherit; font-size: 16px; line-height: 1.5; resize: vertical; }
.setup-input::placeholder { color: var(--s-faint); }
.setup-input:focus { outline: none; border-color: var(--s-gold); box-shadow: 0 0 0 4px rgba(25,211,197,.2); }
.setup-wrap { display: flex; flex-wrap: wrap; gap: 10px; }
/* Hours quick-picks: 3-across at 390px, matching the app compact chips. */
.setup-hours-presets { gap: 8px; }
.setup-hours-presets .setup-chip {
  width: 31.2%;
  flex-grow: 0;
  box-sizing: border-box;
  justify-content: flex-start;
  gap: 4px;
  padding: 11px 6px;
  font-size: 14.5px;
}
.setup-hours-presets .setup-chip-tick { width: 16px; height: 16px; }
.setup-hours-presets .setup-chip-sub { font-size: 12px; margin-top: 1px; }
.setup-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--s-card); border: 1.5px solid var(--s-border); color: #e8edf6; border-radius: 14px; padding: 11px 16px; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; text-align: left; transition: transform .12s, border-color .15s, background .15s; }
.setup-chip:hover { border-color: rgba(255,255,255,.3); }
.setup-chip:active { transform: scale(.98); }
.setup-chip.on { border-color: var(--s-orange); background: rgba(25,211,197,.14); color: #fff; box-shadow: 0 0 0 3px rgba(25,211,197,.14); }
.setup-chip-tick { width: 20px; height: 20px; border-radius: 50%; background: var(--s-orange); color: var(--s-on-accent); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.setup-chip-text { display: flex; flex-direction: column; }
.setup-chip-sub { font-size: 12.5px; font-weight: 600; color: var(--s-muted); margin-top: 1px; }
.setup-companies { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.setup-companies .setup-chip { width: 100%; }
.setup-rows { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.setup-row { display: flex; align-items: center; gap: 14px; background: var(--s-card); border: 1px solid var(--s-border); border-radius: 18px; padding: 14px 16px; animation: setupUp .4s both; }
.setup-row.compact { background: none; border: 0; padding: 0 0 6px; animation: none; }
@keyframes setupUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.setup-row-icon { width: 46px; height: 46px; border-radius: 14px; background: rgba(127,167,255,.15); color: var(--s-blue); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.setup-row-icon.sm { width: 34px; height: 34px; border-radius: 10px; }
.setup-row-icon.green { background: rgba(34,197,94,.15); color: var(--s-green); }
.setup-row-title { color: #fff; font-weight: 800; font-size: 16px; display: block; }
.setup-card { background: var(--s-card); border: 1px solid var(--s-border); border-radius: 20px; padding: 16px 18px; margin-top: 18px; }
.setup-starters { display: flex; flex-direction: column; gap: 10px; }
.setup-starter { text-align: left; background: rgba(255,255,255,.04); border: 1.5px solid var(--s-border); border-radius: 16px; padding: 12px 14px; color: inherit; font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 3px; }
.setup-starter:hover { border-color: rgba(255,255,255,.3); }
.setup-starter.on { border-color: var(--s-blue); background: rgba(127,167,255,.12); }
.setup-starter-label { color: var(--s-blue); font-size: 12px; font-weight: 800; letter-spacing: .9px; text-transform: uppercase; }
.setup-voices { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 20px; }
.setup-voice { position: relative; display: flex; flex-direction: column; align-items: center; padding: 16px 10px 14px; border-radius: 20px; border: 1.5px solid var(--s-border); background: var(--s-card); cursor: pointer; transition: transform .12s, border-color .15s; }
.setup-voice:hover { border-color: rgba(255,255,255,.3); }
.setup-voice:focus-visible { outline: 3px solid var(--s-gold); outline-offset: 2px; }
.setup-voice.on { border-color: var(--s-orange); box-shadow: 0 0 22px rgba(25,211,197,.32); }
.setup-voice img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.15); }
.setup-voice-name { font-weight: 800; margin-top: 8px; color: #fff; }
.setup-play { margin-top: 8px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(91,140,255,.55); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.setup-play.playing { background: var(--s-orange); color: var(--s-on-accent); }
.setup-voice-check { position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 50%; background: var(--s-orange); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.setup-hours { padding-top: 10px; }
.setup-custom { color: var(--s-gold); font-size: 12px; font-weight: 800; letter-spacing: .9px; text-transform: uppercase; }
.setup-day { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--s-border); }
.setup-day:first-of-type { margin-top: 8px; }
.setup-day-label { min-width: 42px; flex-shrink: 0; white-space: nowrap; font-weight: 800; color: #fff; }
.setup-open-pill { min-width: 82px; height: 36px; border-radius: 99px; border: 1.5px solid var(--s-border); background: none; color: var(--s-faint); font: inherit; font-weight: 800; cursor: pointer; }
.setup-open-pill.on { border-color: var(--s-green); background: rgba(34,197,94,.16); color: #fff; }
.setup-day-msg { flex: 1; text-align: right; }
.setup-times { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.setup-time { width: 110px; text-align: center; padding: 8px 6px; border-radius: 12px; font-size: 15px; }
.setup-time.bad { border-color: #ff7a7a; }
.setup-inline-error { color: #ffb4b4; font-weight: 700; margin: 10px 0 4px; font-size: 14px; }
.setup-add { display: flex; gap: 10px; }
.setup-add .setup-input { flex: 1; }
.setup-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1.5px solid rgba(255,255,255,.35); background: rgba(255,255,255,.06); color: #fff; border-radius: 14px; padding: 12px 18px; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; }
.setup-secondary:hover { background: rgba(255,255,255,.12); }
.setup-number { text-align: center; padding: 22px 18px; }
.setup-big-number { font-size: 34px; font-weight: 800; letter-spacing: .5px; margin: 6px 0; color: #fff; }
.setup-number .setup-small { margin-bottom: 14px; }
.setup-checks { display: flex; flex-direction: column; gap: 10px; }
.setup-check { display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px 16px; border-radius: 18px; border: 1.5px solid var(--s-border); background: var(--s-card); color: inherit; font: inherit; cursor: pointer; }
.setup-check.on { border-color: rgba(34,197,94,.55); }
.setup-check.on .setup-row-title { color: var(--s-muted); text-decoration: line-through; }
.setup-box { width: 28px; height: 28px; border-radius: 9px; border: 2px solid rgba(127,167,255,.5); display: inline-flex; align-items: center; justify-content: center; flex: none; color: #fff; }
.setup-check.on .setup-box { background: var(--s-orange); border-color: var(--s-orange); color: var(--s-on-accent); }
.setup-fwd-step { display: flex; gap: 12px; align-items: flex-start; margin-top: 12px; color: #e8edf6; font-size: 15.5px; line-height: 1.5; }
.setup-num { width: 26px; height: 26px; border-radius: 50%; background: rgba(127,167,255,.18); color: var(--s-blue); font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.setup-code { margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: rgba(25,211,197,.1); border: 1px solid rgba(25,211,197,.42); }
.setup-code-big { font-size: 26px; font-weight: 800; letter-spacing: 1.5px; margin: 4px 0; color: #fff; word-break: break-all; }
.phone-only { display: none; margin-top: 14px; }
.setup-finish { position: relative; display: flex; justify-content: center; padding: 18px 0 10px; }
.setup-confetti { position: absolute; inset: 0 0 auto 0; height: 160px; pointer-events: none; }
.setup-confetti i { position: absolute; top: 0; width: 10px; height: 16px; border-radius: 3px; animation: setupFall 1.2s ease-out both; }
@keyframes setupFall { from { opacity: 0; transform: translateY(-30px); } 40% { opacity: 1; } to { opacity: .9; transform: translateY(110px) rotate(200deg); } }
.setup-trophy { width: 128px; height: 128px; border-radius: 50%; background: var(--s-green); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 46px rgba(34,197,94,.55); animation: setupPop .5s .1s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes setupPop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.setup-sum { display: flex; align-items: center; gap: 10px; padding: 7px 0; color: var(--s-faint); font-weight: 600; }
.setup-sum.done { color: #fff; }
.setup-sum.done svg { color: var(--s-orange); }
.setup-sum-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--s-faint); flex: none; margin: 0 1px; }
.setup-trophy.almost { background: #f5a524; box-shadow: 0 0 40px rgba(245,165,36,.45); animation: none; }
.setup-sum-head { font-size: 12px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--s-faint); margin-bottom: 4px; }
.setup-sum.todo { width: 100%; background: none; border: 0; border-top: 1px solid rgba(255,255,255,.08); color: #fff; font: inherit; font-weight: 600; text-align: left; cursor: pointer; padding: 11px 0; }
.setup-sum.todo:hover .setup-sum-go, .setup-sum.todo:focus-visible .setup-sum-go { text-decoration: underline; }
.setup-sum.todo .setup-sum-label { flex: 1; }
.setup-sum-go { color: #f5a524; font-weight: 700; }
.setup-sum.todo svg { color: #f5a524; }
.setup-store-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 22px; color: var(--s-faint); font-size: 13px; line-height: 1.45; }
.setup-store-note svg { flex: none; margin-top: 1px; }
.setup-foot { position: relative; z-index: 2; flex: none; border-top: 1px solid rgba(255,255,255,.08); background: rgba(10,22,40,.88); backdrop-filter: blur(10px); }
.setup-foot-inner { max-width: 640px; margin: 0 auto; padding: 14px 28px 18px; display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.setup-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 56px; border-radius: 99px; border: 0; font: inherit; font-size: 17px; font-weight: 800; color: #0a1628; cursor: pointer;
  background: linear-gradient(90deg, #19d3c5, #5bc8ff); box-shadow: 0 10px 30px rgba(25,211,197,.32); transition: transform .12s, filter .15s; }
.setup-primary:hover { filter: brightness(1.06); }
.setup-primary:active { transform: scale(.99); }
.setup-primary[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.setup-ghost { background: none; border: 0; color: var(--s-blue); font: inherit; font-weight: 800; font-size: 16px; padding: 10px; cursor: pointer; }
.setup-ghost:hover { text-decoration: underline; }
.setup-error { background: rgba(198,40,40,.18); border: 1px solid rgba(255,122,122,.45); color: #ffd2d2; border-radius: 14px; padding: 10px 14px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.45; margin-bottom: 6px; }
.setup-error strong { color: #fff; }
.setup-flash { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: rgba(10,22,40,.72); backdrop-filter: blur(4px); animation: setupFade .2s both; }
.setup-flash-check { width: 96px; height: 96px; border-radius: 50%; background: var(--s-green); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 40px rgba(34,197,94,.6); animation: setupPop .45s cubic-bezier(.2,1.4,.4,1) both; }
.setup-flash-label { font-size: 20px; font-weight: 800; }
.setup-flash-sub { color: var(--s-muted); font-size: 14px; }
@keyframes setupFade { from { opacity: 0; } to { opacity: 1; } }
.setup-loading, .setup-center { position: relative; z-index: 1; margin: auto; text-align: center; max-width: 460px; padding: 24px; }
.setup-center .setup-primary { width: 100%; margin-top: 20px; }
.setup-spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); border-top-color: var(--s-gold, #f5a524); animation: setupSpin .8s linear infinite; margin: 0 auto 12px; }
.setup-spinner.sm { width: 18px; height: 18px; border-width: 2px; margin: 0; }
@keyframes setupSpin { to { transform: rotate(360deg); } }
/* resume card (Calls) and Account link */
.setup-resume { display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin-bottom: 14px; border-radius: 20px; text-decoration: none; color: #fff;
  background: radial-gradient(500px 160px at 90% -40%, #1b3566, rgba(27,53,102,0) 70%), #0a1628; border: 1px solid rgba(127,167,255,.3); box-shadow: 0 8px 24px rgba(10,22,40,.18); }
.setup-resume:hover { border-color: rgba(25,211,197,.6); }
.setup-resume-icon { width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, #19d3c5, #5bc8ff); color: #0a1628; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.setup-resume-icon.sm { width: 40px; height: 40px; border-radius: 12px; }
.setup-resume-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.setup-resume-text strong { font-size: 16px; }
.setup-resume > .setup-resume-text > span { color: #aab6c8; font-size: 13.5px; }
.setup-resume-track { display: block; height: 6px; border-radius: 99px; background: rgba(255,255,255,.14); margin-top: 8px; overflow: hidden; }
.setup-resume-track span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #19d3c5, #5bc8ff); }
.setup-account-link { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.setup-account-link:hover { border-color: var(--accent-ui); }
.setup-account-link strong { font-size: 16px; color: var(--text); }
@media (max-width: 760px) {
  .setup-top { padding: 12px 16px 6px; gap: 12px; }
  .setup-grid { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 12px 20px 28px; }
  .setup-rail { display: flex; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; position: static; margin: 0 0 12px; padding: 4px 0 10px; gap: 2px; scrollbar-width: thin; }
  .setup-rail li { flex: 0 0 auto; padding: 4px; }
  .setup-rail-btn { flex-direction: column; gap: 6px; min-width: 56px; align-items: center; text-align: center; }
  .setup-rail-label { font-size: 11px; line-height: 1.2; max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .setup-title { font-size: 28px; }
  .setup-body { font-size: 16px; }
  .setup-companies { grid-template-columns: minmax(0, 1fr); }
  .setup-voices { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .setup-voice img { width: 60px; height: 60px; }
  .setup-voice { padding: 12px 6px; }
  .setup-day { flex-wrap: wrap; }
  .setup-times { flex-basis: 100%; justify-content: flex-start; padding-left: 54px; }
  .setup-time { width: 104px; }
  .setup-foot-inner { padding: 12px 20px 16px; }
  .setup-big-number { font-size: 28px; }
  .phone-only { display: inline-flex; }
  .setup-code-big { font-size: 22px; }
}
.setup-next { list-style: none; margin: 0 0 6px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.setup-next .setup-fwd-step { color: var(--s-text); font-size: 15.5px; line-height: 1.5; }
.setup-main[data-setup-step=finish] #setup-step-title { text-align: center; max-width: 560px; margin-left: auto; margin-right: auto; }
.setup-approved { display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin-bottom: 14px; border-radius: 20px; text-decoration: none; color: #fff;
  background: radial-gradient(520px 180px at 92% -50%, rgba(34,197,94,.35), rgba(34,197,94,0) 70%), #0a1628; border: 1.5px solid rgba(34,197,94,.65); box-shadow: 0 10px 28px rgba(10,22,40,.22); animation: setupIn .4s cubic-bezier(.2,.8,.2,1) both; }
.setup-approved:hover { border-color: #22c55e; }
.setup-approved-icon { width: 46px; height: 46px; border-radius: 50%; background: #22c55e; color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; box-shadow: 0 0 0 6px rgba(34,197,94,.18); }
.setup-approved .setup-resume-text strong { font-size: 17px; }
.setup-approved .setup-resume-text > span { color: #c9d4e4; font-size: 14px; }
.setup-approved-btn { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 11px 16px; border-radius: 999px; font-weight: 800; font-size: 14.5px; color: #0a1628; background: linear-gradient(90deg, #19d3c5, #5bc8ff); box-shadow: 0 6px 16px rgba(25,211,197,.32); }
@media (max-width: 760px) {
  .setup-approved { flex-wrap: wrap; }
  .setup-approved .setup-resume-text { flex-basis: calc(100% - 60px); }
  .setup-approved-btn { width: 100%; justify-content: center; }
}
.setup-day.bad .setup-time { border-color: #f87171; box-shadow: 0 0 0 3px rgba(248,113,113,.18); }
.setup-day.bad .setup-day-label { color: #ffb4b4; }
.setup-inline-error { white-space: pre-line; }
.setup-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 460px; }
.setup-modes .setup-chip { width: 100%; margin: 0; }
@media (max-width: 760px) { .setup-modes .setup-chip { padding-left: 12px; padding-right: 12px; } .setup-modes .setup-chip-label { font-size: 14.5px; } .setup-modes .setup-chip-sub { font-size: 12px; } }



/* New-signup + email-code / forgot-password sign-in (preview). */
.welcome-landing .signin-card h1 { letter-spacing: -.4px; }
.signin-panel[hidden], .signin-panel[hidden] * { /* keep */ }
.signin-card .field { margin: 0; }
.signin-card input.email-locked { background: #eef1f6; color: #334155; cursor: default; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 72px; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--navy); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; padding: 4px 6px; }
.pw-toggle[disabled] { opacity: .5; cursor: default; }
.auth-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 16px 0 0; max-width: 420px; }
button.linkish { border: 0; background: none; padding: 0; font: inherit; font-size: 14px; font-weight: 700; color: var(--navy); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
button.linkish[disabled] { color: var(--muted); cursor: default; text-decoration: none; }
.ready-spin { width: 36px; height: 36px; margin: 18px 0 14px; border-radius: 50%; border: 3px solid #d5dbe6; border-top-color: var(--accent-ui); animation: yfd-spin .8s linear infinite; }
.ready-copy { font-size: 18px; font-weight: 800; color: var(--navy); margin: 0 0 8px; }
@keyframes yfd-spin { to { transform: rotate(360deg); } }
#pw-rules { margin-top: 8px; }
@media (max-width: 760px) {
  .signin-card h1 { font-size: 26px; }
}



/* Email confirmation page (after sign-up or an unverified sign-in). */
.signin-card .locked-email {
  font-weight: 700;
  color: var(--navy);
  background: #eef1f6;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 16px;
  word-break: break-word;
}
.signin-card input#verify-code {
  font-size: 22px;
  letter-spacing: 0.35em;
  text-align: center;
  font-weight: 700;
}
@media (max-width: 760px) {
  .signin-card input#verify-code { font-size: 20px; }
}
@media (min-width: 600px) and (max-width: 999px) {
  .signin-body .signin-wrap { grid-template-columns: 1fr; }
  .signin-body .signin-art { padding: 28px 24px 16px; }
  .signin-body .signin-art ul { display: none; }
  .signin-body .signin-card { padding: 28px 28px 36px; border-radius: 20px 20px 0 0; }
}
@media (max-width: 390px) {
  .signin-card { padding: 20px 16px 32px; }
  .signin-card h1 { font-size: 24px; }
  .signin-art { padding: 24px 16px 16px; }
}

/* Receptionist settings: playable voice list (same clips as /start and the app). */
.fd-voices {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.fd-voices-caption { margin: 0 0 12px; max-width: 52rem; }
.fd-voice {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 14px 10px 12px;
  border: 1.5px solid #d5dbe6;
  border-radius: 16px;
  background: #fff;
}
.fd-voice.on {
  border-color: var(--accent-ui);
  box-shadow: 0 0 0 3px rgba(14, 158, 148, 0.18);
}
.fd-voice img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}
.fd-voice-name {
  margin: 8px 0 6px;
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
}
.fd-play {
  appearance: none;
  border: 1px solid #d5dbe6;
  background: #f6f7fa;
  color: var(--navy);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
}
.fd-play.playing {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

/* Layout match: summary rows, tool lists, invite steps */
.summary-card, .tools-card { padding-top: 2px; padding-bottom: 2px; }
.summary-row, .tool-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  min-height: 52px;
  text-decoration: none;
  color: inherit;
}
.summary-row:first-child, .tool-row:first-child { border-top: 0; }
.sum-main { flex: 1; min-width: 0; }
.sum-label, .tool-title { font-weight: 600; font-size: 15px; }
.sum-value { margin-top: 2px; font-size: 14px; color: var(--muted, #5b6573); overflow-wrap: anywhere; }
.tool-chevron { color: var(--chevron, #8a93a0); font-size: 20px; line-height: 1; flex-shrink: 0; }
.cust-log-call { margin-top: 10px; }
#account-settings .btn { width: 100%; }
.invite-steps { margin: 0 0 12px; }
.invite-ol { margin: 8px 0 0 1.2em; padding: 0; }
.invite-ol li { margin: 4px 0; font-size: 14px; }
.use-app-panel p:first-child { font-size: 18px; font-weight: 700; color: var(--navy, #0a1628); }
button.tool-row { width: 100%; background: none; border: 0; font: inherit; text-align: left; cursor: pointer; }

.addr-link { display: block; color: var(--link); font-size: 14px; font-weight: 600; text-decoration: none; margin-top: 4px; }
.addr-link:hover { text-decoration: underline; }
.appt-row .addr-link { flex: 1 0 100%; order: 5; margin: 0 0 0 166px; width: auto; max-width: calc(100% - 166px); }
.appt-row .needs-addr { flex: 1 0 100%; order: 5; margin: 4px 0 0 166px; width: auto; max-width: calc(100% - 166px); }
.appt-row .appt-edit { order: 3; margin-left: auto; margin-top: 2px; }
.job-box { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--card-2, rgba(15, 23, 42, .03)); }
.job-box .addr-link { margin-top: 4px; }
.board-wrap { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: flex-start; }
.board-col { flex: 0 0 260px; background: var(--card, #fff); border: 1px solid var(--border); border-radius: 14px; padding: 12px; min-height: 120px; }
.board-col-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.board-card { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; background: var(--bg, #fff); }
.board-open { color: inherit; text-decoration: none; display: block; }
.board-when { font-size: 12px; font-weight: 700; }
.board-stop { float: left; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-tint); color: var(--accent-text); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 8px 0 0; }
@media (max-width: 760px) {
  .board-col { flex-basis: 85%; }
}

.needs-addr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.needs-addr-tag { display: inline-block; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; background: var(--badge-urgent-bg, #ffedd5); color: var(--badge-urgent-text, #c2410c); }
.needs-addr-call { color: var(--link); font-size: 14px; font-weight: 700; text-decoration: none; }
.needs-addr-call:hover { text-decoration: underline; }

/* Quote list selection + service wording preview */
.cust-row.selected { background: var(--accent-tint); border-radius: var(--radius-md); padding-left: 10px; padding-right: 10px; box-shadow: inset 0 0 0 2px var(--accent-ui); }
.quote-detail { scroll-margin-top: 12px; }
.wording-picks { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.wording-pick { font: inherit; font-size: 14px; font-weight: 600; padding: 8px 12px; min-height: 40px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--text); cursor: pointer; }
.wording-pick.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.reminder-preview { font-size: 14px; color: var(--muted); margin: 8px 0 4px; line-height: 1.45; white-space: pre-line; }
.reminder-preview mark { background: var(--accent-tint); color: var(--accent-text); font-weight: 800; padding: 0 2px; border-radius: 3px; }

/* Two-pane Calls layout: obvious list vs details */
.pane-heading { margin: 0 0 12px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--navy, #0a1628); }
.pane-detail-body { min-height: 200px; }
.pane-placeholder { margin: 0; padding: 32px 22px; border: 2px dashed var(--border); border-radius: var(--radius-md); background: var(--fill, #f6f4ef); color: var(--muted); font-size: 16px; font-weight: 600; text-align: center; line-height: 1.45; }

body.calls-split #page-title { display: none; }

/* Calls hides the page title, which left the Aa button alone on the left.
   Keep it on the right of the header, same spot as other pages, and don't
   let the phone top-actions wrap stretch it back to the left. */
body.calls-split .topbar { justify-content: flex-end; }
body.calls-split .top-actions {
  flex: 0 0 auto;
  margin-left: auto;
  justify-content: flex-end;
  width: auto;
  max-width: none;
}

.website-import { max-width: 720px; }
.website-import input[type="url"] {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--border, #d5d8d6);
  border-radius: 10px;
  background: #fff;
}
.website-import-item { padding: 10px 0; border-top: 1px solid var(--border, #eee); }
.website-import-item:first-child { border-top: 0; }
.website-import-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.website-import-check input { margin-top: 4px; }

.photo-import-field { margin: 10px 0; }
.photo-import-kinds { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.photo-import-move { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.muted.pre { white-space: pre-wrap; }


/* ===== Half-screen / split-laptop (600-999px) ===== */
/* Icon nav, side-by-side Calls, compact spacing, no long page scroll.
   Overrides the max-width: 760px phone stacking in this mid range only.
   Phone (<600px) and desktop (>=1000px) stay unchanged. */
@media (min-width: 600px) and (max-width: 999px) {
  :root { --sidebar: 64px; }

  .shell {
    display: grid;
    grid-template-columns: var(--sidebar) 1fr;
    height: 100vh;
    overflow: hidden;
  }
  .sidebar {
    position: relative;
    top: auto;
    z-index: 20;
    padding: 12px 4px 10px;
    border-right: 1px solid var(--border);
    border-bottom: 0;
    overflow-x: hidden;
    overflow-y: auto;
  }
  .sidebar .brand { display: none; }
  .topbar-biz {
    display: -webkit-box;
  }

  .nav {
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 0;
    flex: 1 1 auto;
    gap: 2px;
    width: 100%;
  }
  .nav a {
    flex-shrink: 0;
    justify-content: center;
    width: 100%;
    padding: 8px 0;
    gap: 0;
    font-size: 0;
    line-height: 0;
  }
  .nav a .ico { font-size: 20px; width: 24px; line-height: 1; }
  .nav a .badge {
    position: absolute;
    top: 2px;
    right: 4px;
    margin-left: 0;
    min-width: 16px;
    height: 16px;
    font-size: 9px;
    line-height: 16px;
    padding: 0 4px;
  }
  .side-foot {
    display: block;
    margin-top: auto;
    padding: 10px 0 0;
    width: 100%;
  }
  .side-foot .btn {
    padding: 8px 0;
    font-size: 0;
    line-height: 0;
    gap: 0;
    min-height: 36px;
  }
  .side-foot .btn .ico { font-size: 18px; line-height: 1; }
  .side-foot .caption { display: none; }

  .main { height: 100vh; overflow: hidden; }
  .topbar {
    flex-wrap: wrap;
    padding: 8px 14px 6px;
    gap: 8px;
  }
  .topbar h1 { font-size: 20px; line-height: 24px; }
  .top-actions { flex-wrap: wrap; gap: 6px; }
  .top-actions .btn, .top-actions select { padding: 7px 10px; font-size: 13px; }

  .content { padding: 0 14px 14px; overflow: auto; }

  .bigjob-banner { margin: 6px 14px 0; }
  .bj-main { flex-wrap: nowrap; gap: 8px; padding: 8px 10px; }
  .bj-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-basis: auto;
    order: 0;
    display: block;
    -webkit-line-clamp: unset;
  }
  .bj-dismiss { padding: 0 10px; }

  /* Keep Calls (and Quotes) side by side — narrower list, never stacked. */
  .split, .two-col {
    grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
  }
  body.calls-split .content {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
  }
  body.calls-split .split {
    flex: 1;
    width: 100%;
    min-height: 0;
    align-items: stretch;
  }
  body.calls-split .pane,
  body.calls-split .pane-detail {
    position: static;
    min-width: 0;
    overflow: auto;
    max-height: 100%;
  }
  .pane-heading { font-size: 18px; margin: 0 0 8px; }
  .pane-placeholder { padding: 20px 14px; font-size: 14px; }
  .search-input { padding: 7px 10px; font-size: 14px; }
  .call-item { padding: 8px 10px; margin-bottom: 6px; }
  .ci-top strong { font-size: 14px; }
  .ci-sum { font-size: 12px; margin: 2px 0 4px; -webkit-line-clamp: 1; }
  .badge-row { gap: 4px; margin-top: 4px; }
  .needs-explain { font-size: 12px; margin: -2px 2px 6px; }
  .ci-done { margin-top: 6px; }
  .ci-done .btn { width: auto; padding: 5px 8px; font-size: 12px; }
  .list-head { margin: 8px 0 4px; }

  .card { padding: 12px; }
  .card .name { font-size: 18px; line-height: 22px; }
  .card .phone { font-size: 14px; }
  .card .phone a { overflow-wrap: anywhere; }
  .actions.wrap { gap: 6px; margin-top: 8px; }
  .actions.wrap .btn { padding: 7px 10px; font-size: 13px; }
  .job-contact .btn { flex: 0 1 auto; }
  .status-tip { flex-direction: row; font-size: 13px; padding: 8px 10px; }

  /* Schedule: toolbars wrap; week/board scroll sideways in their own area. */
  .content:has(> .sched-bar) {
    display: flex;
    flex-direction: column;
    min-height: 0;
    /* Nov 28/29 nightly: was overflow: hidden. With the hot-lead banner, team chips, work-hours card and hint above it,
       the day grid shrank to 0-130px at half-screen (720 x 780). Now the grid keeps a usable height and the page scrolls. */
    overflow-x: hidden;
    overflow-y: auto;
  }
  .sched-bar { gap: 8px 10px; margin-bottom: 8px; flex-shrink: 0; }
  .sched-bar .seg { width: fit-content; max-width: 100%; flex-wrap: nowrap; }
  .sched-bar .seg-btn { padding: 8px 10px; font-size: 13px; }
  .sched-title { width: auto; margin: 0 0 0 4px; font-size: 15px; }
  .seg { width: auto; flex-wrap: wrap; }
  .seg-btn { padding: 8px 8px; font-size: 13px; white-space: nowrap; line-height: 1.2; min-width: 0; }
  .sched-body { flex: 1; min-width: 0; min-height: min(440px, calc(100vh - 140px)); overflow: auto; }
  .content:has(> .sched-bar) > .caption { flex-shrink: 0; margin-top: 8px !important; }

  .week-grid {
    grid-template-columns: repeat(7, minmax(132px, 1fr));
    min-width: calc(7 * 132px + 6 * 8px);
    gap: 8px;
  }
  .wk-col { min-width: 132px; min-height: 140px; padding: 6px; overflow: hidden; }
  .wk-num { font-size: 16px; }
  .wk-appt { font-size: 11px; padding: 4px 6px; }
  .wk-col .addr-link,
  .wk-col .needs-addr {
    display: block;
    max-width: 100%;
    margin-top: 2px;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .wk-col .appt-edit { font-size: 11px; font-weight: 600; white-space: nowrap; text-decoration: none; }

  .month-grid { gap: 3px; }
  .mg-day { min-height: 68px; padding: 4px; align-items: stretch; }
  .mg-item { font-size: 10px; }

  .board-wrap { overflow-x: auto; overflow-y: hidden; align-items: stretch; }
  .board-col { flex: 0 0 220px; flex-basis: 220px; padding: 10px; }
  /* Always show a thin scrollbar so cut-off days/columns are obviously swipeable. */
  .sched-week, .board-wrap {
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #c4c0b6 transparent;
    padding-bottom: 6px;
  }
  .sched-week::-webkit-scrollbar, .board-wrap::-webkit-scrollbar { height: 10px; }
  .sched-week::-webkit-scrollbar-thumb, .board-wrap::-webkit-scrollbar-thumb {
    background: #c4c0b6; border-radius: 99px;
  }


  .year-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }

  /* Lists and forms: a bit tighter so more fits above the fold. */
  .appt-row, .cust-row, .hist-row { gap: 8px; padding: 8px 0; }
  .appt-time { width: 120px; }
  .appt-row.appt-card { grid-template-columns: 120px minmax(0, 1fr) auto; }
  .appt-row .addr-link, .appt-row .needs-addr,
  .appt-row.appt-card .addr-link, .appt-row.appt-card .needs-addr { margin-left: 0; max-width: 100%; }
  .section-label { margin: 12px 0 6px; }
  .field-row { min-height: 44px; }
  .caption { font-size: 12px; }
}


@media (min-width: 1000px) {
  .signin-wrap,
  .signin-art,
  .signin-card { min-height: 100vh; }
}

/* Sign-in: lets signin.js notice password-manager autofill (animationstart). */
@keyframes yfdAutofillStart { from { outline-color: transparent; } to { outline-color: transparent; } }
input:-webkit-autofill { animation-name: yfdAutofillStart; animation-duration: 1ms; }
input:autofill { animation-name: yfdAutofillStart; animation-duration: 1ms; }


/* Text size (Account). Same scales as the app: Small 0.9, Normal 1, Large 1.15, Extra large 1.3.
   Root font-size covers rem/em; zoom on .shell scales the px-based UI without compounding rem. */
html { --text-scale: 1; font-size: calc(16px * var(--text-scale, 1)); overflow-x: hidden; }
body { overflow-x: hidden; }
/* Width stays auto: an auto-width block under zoom already fills the window exactly. A percentage width is
   resolved after zoom in Chrome and Safari, so calc(100% / scale) applied the scale twice: Small made the shell
   ~11% wider than the window (the schedule's Customers panel was cut off the right edge on a MacBook) and
   Large / Extra large left an empty strip on the right. */
.shell {
  zoom: var(--text-scale, 1);
  width: auto;
  height: calc(100vh / var(--text-scale, 1));
}

/* Phone: the zoom rule above reset .shell to 100vh after an earlier height:auto
   override, so the document scroller stayed viewport-tall and Settings at the
   bottom of Schedule could not be reached. Let the page grow and scroll. */
@media (max-width: 760px) {
  html, body { height: auto; min-height: 100%; }
  .shell {
    height: auto;
    min-height: calc(100vh / var(--text-scale, 1));
    overflow: visible;
  }
  .main { height: auto; overflow: visible; }
  .content { overflow: visible; }
}

/* Keyboard inset: keep fields and Save/Send above the on-screen keyboard. */
:root { --kb-inset: 0px; }
.modal-back { padding-bottom: var(--kb-inset, 0px); box-sizing: border-box; }
.modal { max-height: calc(90vh - var(--kb-inset, 0px)); }
.content::after, .signin-card::after, .signin-wrap::after {
  content: "";
  display: block;
  height: var(--kb-inset, 0px);
}

/* Page refresh button (every page header) and the touch pull-down hint. */
.top-actions .refresh-btn { gap: 6px; white-space: nowrap; }
.refresh-btn .ico { font-size: 16px; }
.refresh-btn.is-busy .ico { animation: yfd-spin 0.8s linear infinite; }
.refresh-btn.is-busy, .refresh-btn[disabled] { opacity: 0.75; cursor: progress; }
.refresh-btn.is-done { color: var(--green, #1a7f4b); }
@keyframes yfd-spin { to { transform: rotate(360deg); } }
.pull-refresh { position: fixed; top: 8px; left: 50%; transform: translateX(-50%); z-index: 60; background: var(--navy, #14213d); color: #fff; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
@media (max-width: 760px) {
  .top-actions .refresh-btn .refresh-label { display: none; }
  .top-actions .refresh-btn { padding: 7px 9px; }
}
.pane-head-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.pane-head-row .pane-heading { margin-bottom: 0; }
.pane-head-row .refresh-btn { padding: 6px 10px; font-size: 13px; }
@media (max-width: 760px) { .pane-head-row { margin-bottom: 8px; } .pane-head-row .refresh-btn .refresh-label { display: none; } }

/* Nov 18: Edit appointment / Cancel on every call row; tap a number to call it. */
.call-item .ci-appt{display:flex;gap:14px;margin-top:6px}
.call-item .ci-appt-btn{font-size:13px;font-weight:600;padding:6px 0;min-height:32px;background:none;border:0;cursor:pointer;color:var(--link,#0a6f69)}
.call-item .ci-appt-btn.danger-text{color:#c2410c}
.call-item .ci-appt-btn:hover{text-decoration:underline}
a.tel-link{color:var(--link,#0a6f69);text-decoration:underline;text-underline-offset:2px}
.name a.name-link{color:inherit;text-decoration:none}
.name a.name-link:hover{text-decoration:underline}
/* Quotes > Marked Quoted: Edit / Delete under each row */
.mq-item { border-top: 1px solid var(--border, #e5e7eb); padding-bottom: 8px; }
.mq-item:first-of-type { border-top: 0; }
.mq-item .cust-row { border-bottom: 0; }
.mq-details { margin-top: 3px; font-size: 13px; color: var(--text, #111); }
.mq-actions { display: flex; gap: 8px; padding: 0 12px; }
.mq-actions .btn { min-height: 40px; display: inline-flex; align-items: center; gap: 4px; }
.mq-actions .btn.danger, #modal .btn.danger { color: #c92a2a; }
#modal .btn.danger { background: #c92a2a; color: #fff; }
/* Receptionist: "Set up step by step" card at the top */
.guide-card { display: block; text-decoration: none; color: inherit; border: 1.5px solid var(--tint, #2563eb); margin: 10px 0 14px; padding: 14px 16px; }
.guide-card-done { border-color: var(--success, #16a34a); }
.guide-card-icon.guide-card-icon-done { background: var(--success-tint, #e7f6ec); color: var(--success, #16a34a); }
.guide-card-row { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.guide-card-icon { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: rgba(37, 99, 235, .1); color: var(--tint, #2563eb); }
.guide-track { height: 6px; border-radius: 3px; background: var(--fill, #eef0f3); overflow: hidden; margin-top: 10px; }
.guide-fill { height: 6px; border-radius: 3px; background: var(--success, #16a34a); }
/* Step-by-step setup guide, same nine steps as the app. */
.guide-wrap { max-width: 760px; margin: 0 auto; }
.guide-progress { margin-bottom: 20px; }
.guide-progress .caption { margin-top: 8px; }
.guide-dots { display: flex; justify-content: space-between; max-width: 520px; margin-top: 10px; }
.guide-dot { width: 30px; height: 30px; border: 1px solid var(--border, #ddd); border-radius: 50%; color: var(--muted, #58646a); background: var(--card, #fff); font-weight: 700; font-size: 12px; cursor: pointer; }
.guide-dot.done { background: #16a34a; color: #fff; border-color: #16a34a; }
.guide-dot.current { border: 2px solid var(--tint, #2563eb); }
.guide-options { padding: 20px; }
.guide-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--muted, #58646a); margin-bottom: 8px; }
.guide-field { display: block; margin: 0 0 18px; }
.guide-input { box-sizing: border-box; width: 100%; border: 1px solid var(--border, #ddd); border-radius: 10px; background: var(--card, #fff); color: var(--text, #111); padding: 12px; font: inherit; font-size: 16px; min-height: 48px; }
.guide-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.guide-chip { border: 1px solid var(--border, #ddd); background: var(--card, #fff); color: var(--text, #111); border-radius: 12px; padding: 10px 14px; min-height: 48px; font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.guide-chip.on, .guide-greeting.on { background: rgba(37,99,235,.07); border-color: var(--tint, #2563eb); color: var(--tint, #2563eb); }
.guide-greeting { display: block; width: 100%; box-sizing: border-box; text-align: left; font: inherit; font-size: 15px; line-height: 1.5; padding: 14px; margin-bottom: 10px; border: 1px solid var(--border, #ddd); background: var(--card, #fff); color: var(--text, #111); border-radius: 12px; cursor: pointer; }
.guide-add { display: flex; gap: 8px; margin-top: 10px; }
.guide-add .guide-input { flex: 1; min-width: 0; }
.guide-add .btn { min-height: 48px; }
.guide-day { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--border, #ddd); padding-top: 10px; margin-top: 10px; }
.guide-day > strong { width: 36px; flex-shrink: 0; }
.guide-day .guide-field { flex: 1; min-width: 0; margin-bottom: 10px; }
.guide-day .guide-input { min-width: 0; }
.guide-day .btn { min-width: 72px; min-height: 48px; }
.guide-faq { border-bottom: 1px solid var(--border, #ddd); padding: 10px 0; }
.guide-faq .guide-field { margin-top: 10px; }
.guide-footer { display: flex; gap: 10px; margin-top: 20px; }
.guide-footer .btn { flex: 1; min-height: 48px; }
@media(max-width:600px) { .guide-options { padding: 14px; } .guide-day { gap: 6px; } .guide-day .guide-input { padding: 8px; font-size: 14px; } }
.guide-wrap h2 { margin: 10px 0 4px; } .guide-wrap > p.muted { margin: 0 0 16px; }

/* Nov 19: job types, calendar link, calendar help request, setup guide picks */
.badge.job-type-tag { background: var(--badge-info-bg); color: var(--badge-info-text); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.badge.job-type-tag::before { content: "🏷"; font-size: 11px; }
.appt-card > .job-type-tag, .board-open .job-type-tag { margin: 4px 0 2px; align-self: flex-start; }
/* TIM-110 preview: several job types on one job, main one first. */
.job-type-tags { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.appt-card > .job-type-tags, .board-open .job-type-tags { margin: 4px 0 2px; align-self: flex-start; }
.job-type-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border, #e5e5ea); }
.job-type-row:last-child { border-bottom: 0; }
.job-type-row .badge { flex: 1; justify-content: flex-start; max-width: max-content; margin-right: auto; }
.feed-add { display: flex; margin: 8px 0; justify-content: flex-start; }
.feed-note { font-size: 14px; margin-top: 10px; color: var(--muted, #6b6b70); }
.calendar-request-done { padding: 12px; border-radius: 10px; background: var(--success-tint, #e7f6ec); font-weight: 600; }
.guide-window { display: grid; gap: 8px; }
.guide-window-opt { display: flex; gap: 10px; align-items: flex-start; text-align: left; padding: 12px; border: 1px solid var(--border, #d1d1d6); border-radius: 10px; background: var(--card, #fff); cursor: pointer; font: inherit; color: inherit; }
.guide-window-opt.on { border-color: var(--tint, #0a7aff); background: var(--fill-pressed, #eef5ff); }
.guide-window-opt .box { font-size: 18px; line-height: 1; }
.guide-window-opt small { display: block; color: var(--muted, #6b6b70); font-size: 13px; margin-top: 2px; }
.guide-note { color: var(--muted, #6b6b70); margin-top: 8px; }

/* Nov 19: "Connect it for me", Midnight Glow (same tokens as /start). Always dark so it reads the same in light/dark. */
.cc-card { position: relative; overflow: hidden; margin-top: 18px; max-width: 640px; padding: 26px; border-radius: 24px; background: radial-gradient(260px 200px at 95% 0%, #18366d 0%, transparent 70%), radial-gradient(240px 160px at 0% 100%, #5a2818 0%, transparent 72%), #060b1c; border: 1px solid #324f7e; box-shadow: 0 18px 44px rgba(20,59,118,.22), inset 0 1px 0 rgba(255,255,255,.06); color: #f5f7fb; font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif; }
.cc-eyebrow { display: flex; align-items: center; gap: 9px; color: #e4b778; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.cc-spark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 11px; background: #0f2f33; border: 1px solid #1d6b69; color: #19d3c5; font-size: 16px; }
.cc-secure { margin-left: auto; color: #bfd2ff; font-size: 9px; letter-spacing: .08em; }
.cc-title { margin: 17px 0 0; font-size: 31px; line-height: 1.12; letter-spacing: -.03em; font-weight: 800; color: #f5f7fb; }
.cc-sub { margin: 10px 0 0; color: #bcc8db; font-size: 15px; line-height: 1.5; }
.cc-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 21px; }
.cc-chip { min-height: 54px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1px solid #2d405f; background: #101d34; color: #c6d1e4; font: 600 14px "Plus Jakarta Sans", Inter, sans-serif; cursor: pointer; text-align: left; }
.cc-chip:hover { border-color: #4c6a9b; } .cc-chip:focus-visible, .cc-button:focus-visible { outline: 3px solid #19d3c5; outline-offset: 3px; }
.cc-chip.on { border-color: #19d3c5; border-width: 2px; background: #0f2f33; color: #fff; font-weight: 800; box-shadow: 0 0 0 1px rgba(25,211,197,.45), 0 0 18px rgba(25,211,197,.26); }
.cc-check { margin-left: auto; color: #19d3c5; font-weight: 800; }
.cc-mark { position: relative; overflow: hidden; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: #192c48; border: 1px solid #364c6e; color: #bfd2ff; font-size: 20px; }
.cc-google { background: #fff; border-color: #fff; } .cc-google b { z-index: 1; color: #1967d2; font: 800 15px Arial, sans-serif; margin-top: 3px; }
.cc-google i { position: absolute; } .cc-google .g-b { height: 7px; top: 0; left: 0; right: 0; background: #4285f4; } .cc-google .g-y { width: 6px; top: 7px; bottom: 0; right: 0; background: #fbbc04; } .cc-google .g-g { height: 5px; bottom: 0; left: 0; right: 6px; background: #34a853; }
.cc-apple { color: #fff; font-size: 23px; } .cc-apple::before { content: ""; } .cc-apple { font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
.cc-outlook { background: #1676ce; border-color: #4799e1; color: #fff; } .cc-outlook b { z-index: 1; margin-right: 6px; font: 800 20px Arial, sans-serif; } .cc-outlook i { position: absolute; right: -3px; width: 16px; height: 16px; transform: rotate(45deg); background: #73bff5; border-radius: 2px; }
.cc-button { width: 100%; min-height: 60px; margin-top: 21px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid rgba(91,200,255,.6); border-radius: 15px; background: linear-gradient(90deg, #19d3c5, #5bc8ff); color: #0a1628; font: 800 17px "Plus Jakarta Sans", Inter, sans-serif; cursor: pointer; box-shadow: 0 10px 28px rgba(25,211,197,.3), 0 0 0 1px rgba(91,200,255,.18); }
.cc-button:hover { filter: brightness(1.05); } .cc-button:disabled, .cc-button.muted { opacity: .45; cursor: default; box-shadow: none; filter: none; }
.cc-confirm { margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: rgba(16, 80, 52, 0.55); border: 1px solid #3d9a6a; }
.cc-requested { margin: 6px 0 0; color: #a5e6c4; font-size: 13px; font-weight: 700; }
.cc-done { margin: 0; color: #e7fff0; font-size: 16px; line-height: 1.45; font-weight: 700; }
.cc-cooldown { margin: 8px 0 0; color: #e7fff0; font-size: 14px; line-height: 1.4; font-weight: 600; }
.cc-note { margin: 14px 0 0; color: #aab6c8; font-size: 12px; line-height: 1.45; } .cc-error { margin: 12px 0 0; color: #ffd2d2; font-size: 13px; }

.cc-kicker { color: #e4b778; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.cc-title { font-size: 26px; }
.cc-toggle { display: flex; align-items: center; gap: 14px; margin-top: 18px; cursor: pointer; }
.cc-toggle-label { flex: 1; color: #f5f7fb; font-size: 16px; line-height: 1.4; font-weight: 700; }
.cc-toggle input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 52px; height: 30px; flex: none; border-radius: 999px; background: #2d405f; border: 1px solid #3d5478; position: relative; cursor: pointer; transition: background .15s ease; }
.cc-toggle input[type="checkbox"]::after { content: ""; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: left .15s ease; }
.cc-toggle input[type="checkbox"]:checked { background: #e95a13; border-color: #ff9651; }
.cc-toggle input[type="checkbox"]:checked::after { left: 24px; }
.cc-toggle input[type="checkbox"]:disabled { opacity: .6; cursor: default; }
.cc-toggle input[type="checkbox"]:focus-visible { outline: 3px solid #19d3c5; outline-offset: 3px; }

/* Messages > Create poll: where it goes + ready-made examples (glove-friendly chips) */
.msg-poll-targets, .msg-poll-examples { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.msg-chip { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border, #d9dde3); background: var(--card, #fff); color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.msg-chip:hover { border-color: var(--primary, #0A1628); }
.msg-chip.on { background: var(--primary, #0A1628); border-color: var(--primary, #0A1628); color: #fff; }
.msg-chip:focus-visible { outline: 3px solid #0e9e94; outline-offset: 2px; }

/* Online booking (Account > Online booking), Nov 19 local */
.ob-page .ob-col{max-width:720px}
.ob-switch-row{display:flex;align-items:center;justify-content:space-between;gap:16px}
.ob-switch-row h2{margin:0 0 2px}
.ob-switch{position:relative;display:inline-block;width:52px;height:30px;flex:none}
.ob-switch-input{opacity:0;width:0;height:0;position:absolute}
.ob-slider{position:absolute;inset:0;border-radius:30px;background:#c7ccd6;transition:background .15s;cursor:pointer}
.ob-slider:before{content:"";position:absolute;left:3px;top:3px;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .15s}
.ob-switch-input:checked+.ob-slider{background:var(--accent-ui)}
.ob-switch-input:checked+.ob-slider:before{transform:translateX(22px)}
.ob-switch-input:focus-visible+.ob-slider{outline:3px solid rgba(244,121,59,.45);outline-offset:2px}
.ob-switch-input:disabled+.ob-slider{opacity:.55;cursor:default}
.ob-qr-row{display:flex;gap:18px;align-items:center;flex-wrap:wrap}
.ob-qr{width:180px;height:180px;border-radius:12px;background:#fff;border:1px solid rgba(0,0,0,.08);flex:none}
.ob-qr-empty{display:flex;align-items:center;justify-content:center;color:#98a2b3;font-weight:700}
.ob-guide{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr));gap:14px;max-width:1100px}
.ob-guide .card{margin:0}
.ob-guide-title{margin:0 0 8px;font-size:16px}
.ob-steps{margin:0;padding-left:20px}
.ob-steps li{margin:6px 0;line-height:1.45}
.ob-controls{display:flex;gap:14px;align-items:flex-start;max-width:720px;margin:0 0 16px;padding:16px 18px;background:var(--badge-info-bg,#e8eef8);border:1.5px solid rgba(10,22,40,.18);border-left:5px solid var(--tint,#0a1628);border-radius:var(--radius-lg,16px);color:var(--text,#111)}
.ob-controls .ico{flex:none;width:28px;height:28px;margin-top:1px;font-size:26px;line-height:28px;color:var(--tint,#0a1628)}
.ob-controls-body{flex:1;min-width:0}
.ob-controls h2{margin:0 0 6px;font-size:17px;line-height:1.25;font-weight:700;color:var(--text,#111)}
.ob-controls p{margin:0;font-size:15px;line-height:1.5;font-weight:400;color:var(--text,#111)}
.ob-controls-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
@media (max-width:640px){
  .ob-controls{padding:14px 14px 14px 12px;gap:10px}
  .ob-controls-actions .btn{flex:1 1 140px;text-align:center}
}

/* Nov 19 local: payment links (Account > Get paid, guide step, job Payment card). */
.pay-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.pay-title{margin:0}
.pay-check{width:30px;height:30px;border-radius:50%;background:var(--success);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-weight:800}
.pay-connected{border:1.5px solid var(--success);margin-bottom:10px}
.pay-test{color:#8a5a00;font-size:14px;margin:6px 0}
.pay-ok{color:var(--success);font-weight:600}
.pay-provider{display:flex;align-items:center;gap:14px;border:1px solid var(--border,#e3e1da);border-radius:12px;padding:12px 14px;margin:8px 0;background:var(--card,#fff)}
.pay-provider-text{flex:1;min-width:0}
.pay-provider-text p{margin:4px 0 0}
.pay-provider .btn{min-width:104px}
.pay-pill{background:var(--success-tint);color:var(--success);border-radius:999px;padding:2px 8px;font-size:12px;font-weight:700}
.badge.pay-status.unpaid{background:#f1f0ea;color:var(--muted)}
.badge.pay-status.sent{background:var(--badge-info-bg);color:var(--badge-info-text)}
.badge.pay-status.paid{background:var(--badge-booked-bg);color:var(--badge-booked-text)}
.badge.pay-status.processing{background:var(--badge-wait-bg,#fdeee4);color:var(--badge-wait-text,#b8430a)}
.pay-bank{display:flex;align-items:center;gap:14px;margin-top:14px;padding-top:14px;border-top:1px solid var(--border,#e7e4da)}
.pay-bank-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.pay-bank-copy strong{display:block}
.pay-bank input[type=checkbox]{appearance:none;-webkit-appearance:none;width:48px;height:28px;border:0;border-radius:999px;background:#d8d4ca;cursor:pointer;flex-shrink:0;position:relative;transition:background .15s}
.pay-bank input[type=checkbox]::after{content:"";position:absolute;top:2px;left:2px;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.2);transition:transform .15s}
.pay-bank input[type=checkbox]:checked{background:var(--navy)}
.pay-bank input[type=checkbox]:checked::after{transform:translateX(20px)}
.pay-bank input[type=checkbox]:focus-visible{outline:2px solid var(--navy);outline-offset:3px}
.pay-bank input[type=checkbox]:disabled{cursor:default;opacity:.6}



/* Account 4-group compact layout + consistent link-btn styling (preview only). */
a.link-btn {
  text-decoration: none;
  color: var(--link);
  background: none;
  border: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px 0 0;
}
a.link-btn:hover,
a.link-btn:focus {
  text-decoration: none;
  color: var(--link);
}
.acct-header { padding: 16px 18px 14px; }
.acct-biz { font-size: 20px; font-weight: 700; line-height: 1.25; }
.acct-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
/* The header line (top left) already shows this on phones and desktops; the Account card repeats it only on tablets, where the header text is hidden. */
.acct-trial-line { display: none; margin-top: 8px; font-size: 14px; }
@media (min-width: 600px) and (max-width: 999px) { .acct-trial-line { display: block; } }
.acct-phone { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.acct-phone-num { font-weight: 600; }
.acct-minutes { margin-top: 14px; }
.acct-minutes .meter { margin-bottom: 6px; }
.acct-pill {
  flex-shrink: 0;
  background: var(--badge-info-bg, #e8eef8);
  color: var(--badge-info-text, #0a1628);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
}
.acct-inline { padding: 12px 4px; border-top: 1px solid var(--border, #e3e1da); }
.acct-inline:first-child { border-top: 0; }
.acct-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.acct-text-us { display: flex; align-items: center; gap: 12px; }
.acct-text-us-link { flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.acct-copy { display: none; flex-shrink: 0; margin-left: auto; }
@media (min-width: 700px) {
  .acct-copy { display: inline-flex; }
}
button.tool-row { width: 100%; text-align: left; background: none; border: 0; font: inherit; color: inherit; cursor: pointer; }
.acct-note { margin: 0 0 10px; }
.acct-expand-body { padding: 0 4px 12px; border-top: 0; }
.acct-expand-inner .kv { margin-top: 4px; }
.acct-team .tool-row { cursor: default; }
#acct-tools .tool-row,
#acct-prefs .tool-row,
#acct-billing .tool-row,
#account-help .tool-row { min-height: 52px; }

/* ===== Mobile horizontal nav cues (phones only, max-width 599px) ===== */
/* Default wrapper is display:contents (sidebar flex children). Phones use a
   horizontal grid with arrows. At 600px and up, nav-scroll becomes a real
   column so glance stats cannot clip More. */
.nav-scroll { display: contents; }
.nav-arrow,
.nav-scroll-track { display: none; }

/* Glance stats sit at the bottom of the sidebar and must not push More off
   the screen. The nav list scrolls if the window is short; More stays visible
   (and highlighted when that page is open). Design is otherwise unchanged. */
@media (min-width: 600px) {
  .sidebar {
    overflow: hidden;
    min-height: 0;
    height: 100%;
  }
  .nav-scroll {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 44px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav {
    flex: 1 1 auto;
    min-height: 44px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav a[data-nav="more"] {
    position: sticky;
    bottom: 0;
    z-index: 2;
    flex-shrink: 0;
    background: var(--bg);
    box-shadow: 0 -6px 0 var(--bg);
  }
  #nav-stats {
    flex-shrink: 0;
    margin: auto 8px 8px;
  }
  .sidebar .brand,
  .sidebar .side-foot {
    flex-shrink: 0;
  }
  .side-foot { margin-top: 0; }
}
#nav-stats[hidden] { display: none !important; }

@media (max-width: 599px) {
  .nav-scroll {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    position: relative;
    margin: 0;
    min-width: 0;
    column-gap: 2px;
  }
  .nav-arrow-left { grid-column: 1; grid-row: 1; }
  .nav-arrow-right { grid-column: 3; grid-row: 1; }
  .nav {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 4px;
    scroll-padding-inline: 8px;
  }
  .nav::-webkit-scrollbar { display: none; height: 0; }
  .nav-arrow {
    position: static;
    z-index: 3;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #111827;
    transition: opacity .18s ease, visibility .18s ease;
  }
  .nav-arrow-left { justify-content: center; }
  .nav-arrow-right { justify-content: center; }
  .nav-arrow span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #fff;
    color: #111827;
    border: 1.5px solid var(--accent-ui);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.14);
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    padding-bottom: 2px;
  }
  .nav-arrow:hover span { background: var(--accent-tint); }
  .nav-arrow:focus-visible { outline: 0; }
  .nav-arrow:focus-visible span {
    outline: 2px solid var(--accent-ui);
    outline-offset: 2px;
  }
  .nav-arrow[hidden] {
    display: flex;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  .nav-scroll-track {
    display: block;
    position: relative;
    grid-column: 1 / -1;
    grid-row: 2;
    height: 4px;
    margin: 6px 8px 2px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
  }
  .nav-scroll-thumb {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    min-width: 28px;
    border-radius: 999px;
    background: linear-gradient(90deg, #111827, #19d3c5);
    will-change: left, width;
  }

  .topbar { flex-wrap: wrap; align-items: flex-start; }
  .top-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 100%;
    flex: 1 1 100%;
    gap: 8px;
  }
  .top-actions .btn, .top-actions select { max-width: 100%; }

  .appt-row.appt-card {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "time edit"
      "main main"
      "tags tags"
      "what what"
      "addr addr";
    column-gap: 12px;
  }
  .appt-row.appt-card .appt-time { width: auto; font-size: 14px; font-weight: 700; }
  .appt-row.appt-card .appt-main { width: 100%; }
  .appt-row.appt-card .appt-main strong { font-size: 16px; font-weight: 800; line-height: 1.3; }
  .appt-row .addr-link, .appt-row .needs-addr,
  .appt-row.appt-card .addr-link, .appt-row.appt-card .needs-addr {
    margin-left: 0;
    max-width: 100%;
  }

  .year-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

  .setup-grid { padding-bottom: 48px; }
  .setup-main[data-setup-step="welcome"] { padding-bottom: 28px; }
  .setup-foot-inner { padding-bottom: max(16px, env(safe-area-inset-bottom, 0px)); }
}

/* Phone split: list OR details, never stacked.
   Effective single-column width is max-width: 599px.
   @media (max-width: 760px) stacks .split, then
   @media (min-width: 600px) and (max-width: 999px) restores two columns
   for half-screen / split-laptop. JS isSingleColumn() uses the same 599px. */
.pane-back { display: none; }
@media (max-width: 599px) {
  .split:not(.has-selection) .pane-detail { display: none; }
  .split.has-selection .pane { display: none; }
  .split.has-selection .pane-detail {
    display: block;
    min-height: 0;
  }
  .split.has-selection .pane-detail-body { min-height: 0; }
  .pane-back {
    display: inline-block;
    margin: 0 0 12px;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--link);
    text-decoration: none;
    background: none;
    border: 0;
    cursor: pointer;
  }
}

/* Calm "receptionist is being set up" notice on Calls until setup_status is live. */
.setup-live-banner + .guide-card { margin-top: 8px; }
.setup-live-banner {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex-shrink: 0;
  background: #f3f6fb;
  border: 1px solid rgba(10, 22, 40, 0.10);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin: 0 0 16px;
}
.setup-live-banner .slb-title {
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 800;
  color: var(--navy);
}
.setup-live-banner .slb-pointer { margin: 6px 0 0; font-size: 22px; line-height: 1.2; }
.setup-live-banner .slb-body {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--muted);
  overflow-wrap: anywhere;
  word-wrap: break-word;
}
@media (max-width: 600px) {
  .setup-live-banner { padding: 12px 14px; margin: 0 0 12px; }
  .setup-live-banner .slb-title { font-size: 15px; }
  .setup-live-banner .slb-body { font-size: 13px; }
}

/* Same-size Payment card placeholder so the section does not pop in late. */
.pay-placeholder { min-height: 168px; }
.pay-placeholder .pay-row { min-height: 24px; }

/* Section title icons on Account and Receptionist only. Keep typography unchanged. */
.section-label.has-icon {
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-ico {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.section-ico .ico { font-size: 16px; line-height: 1; }
.section-ico.tone-navy  { color: #3D5A80; background: rgba(61,90,128,.14); }
.section-ico.tone-blue  { color: #4A6FA5; background: rgba(74,111,165,.14); }
.section-ico.tone-teal  { color: #3D7A73; background: rgba(61,122,115,.14); }
.section-ico.tone-green { color: #4A7A58; background: rgba(74,122,88,.14); }
.section-ico.tone-clay  { color: #B56A4A; background: rgba(181,106,74,.15); }
.section-ico.tone-amber { color: #A07A3A; background: rgba(160,122,58,.16); }
.section-ico.tone-plum  { color: #6E5A7A; background: rgba(110,90,122,.14); }
.section-ico.tone-slate { color: #5C6670; background: rgba(92,102,112,.12); }
@media (prefers-color-scheme: dark) {
  .section-ico.tone-navy  { color: #A9BED8; background: rgba(169,190,216,.18); }
  .section-ico.tone-blue  { color: #9BB6D4; background: rgba(155,182,212,.18); }
  .section-ico.tone-teal  { color: #8DC4BC; background: rgba(141,196,188,.18); }
  .section-ico.tone-green { color: #97C4A3; background: rgba(151,196,163,.18); }
  .section-ico.tone-clay  { color: #D4A894; background: rgba(212,168,148,.20); }
  .section-ico.tone-amber { color: #D4C08A; background: rgba(212,192,138,.16); }
  .section-ico.tone-plum  { color: #C0A8C8; background: rgba(192,168,200,.18); }
  .section-ico.tone-slate { color: #B0B8C0; background: rgba(176,184,192,.16); }
}
.ico.storefront-outline:before { content: "\f5a8"; }
.ico.help-circle-outline:before { content: "\f37e"; }
.ico.flash-outline:before { content: "\f31a"; }
.ico.briefcase-outline:before { content: "\f1b2"; }
.ico.list-outline:before { content: "\f3bf"; }
.ico.apps-outline:before { content: "\f122"; }
.ico.construct-outline:before { content: "\f287"; }
.ico.folder-open-outline:before { content: "\f327"; }


/* Short Calls link to the official Set up step by step flow on Receptionist. */
.setup-guide-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  background: var(--card, #fff);
  border: 1px solid var(--border, #e3e6ea);
  border-radius: var(--radius-lg, 16px);
  padding: 12px 16px;
  margin: 0 0 12px;
}
.setup-guide-link-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.setup-guide-link-text strong { font-size: 16px; font-weight: 700; color: var(--navy, #0a1628); }
.setup-guide-link .muted { font-size: 13px; }

/* Aa text-size control in the top right of every page. */
.text-size-btn {
  min-width: 40px;
  padding: 7px 9px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.4px;
  line-height: 1;
  flex: 0 0 auto;
}
.text-size-menu {
  position: fixed;
  z-index: 80;
  min-width: 220px;
  max-width: calc(100vw - 16px);
  background: var(--card, #fff);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 28px rgba(0, 21, 50, 0.16);
  padding: 8px;
}
.text-size-menu-title {
  font-size: 15px;
  font-weight: 700;
  padding: 6px 10px 8px;
}
.text-size-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.text-size-option:hover,
.text-size-option.on { background: var(--fill, #f3f4f6); }
.ts-check { color: var(--link, var(--navy)); font-weight: 700; margin-right: 2px; }
.ts-label-small { font-size: 14px; }
.ts-label-normal { font-size: 16px; }
.ts-label-large { font-size: 18px; }
.ts-label-xlarge { font-size: 21px; }
@media (max-width: 720px) {
  .text-size-btn { padding: 7px 9px; }
}

/* L8 (Nov 21): bigger tap targets on phones/tablets for small text buttons and links
   (Edit/Remove on files, Copy, Request cancellation, ‹ Back to Account, Unpin). Desktop mouse unchanged. */
@media (max-width: 760px), (pointer: coarse) {
  .link-btn { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; padding-top: 0; padding-bottom: 0; box-sizing: border-box; }
}

.acct-spinner { width: 16px; height: 16px; border: 2px solid #c5cdd8; border-top-color: #17315C; border-radius: 50%; animation: acct-spin .7s linear infinite; text-indent: -999px; overflow: hidden; }
@keyframes acct-spin { to { transform: rotate(360deg); } }

/* Phone-numbers modal: real checkbox, same pattern as sign-up (not a Yes/No select). */
.modal label.modal-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}
.modal .modal-check input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.modal .modal-check-box {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1.5px solid rgba(20, 30, 50, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  background: #fff;
  box-sizing: border-box;
}
.modal .modal-check-box::after {
  content: "";
  width: 11px;
  height: 6px;
  border-left: 2px solid rgba(20, 30, 50, 0.92);
  border-bottom: 2px solid rgba(20, 30, 50, 0.92);
  transform: rotate(-45deg) translate(0, -1px);
  display: none;
}
.modal .modal-check input[type="checkbox"]:checked + .modal-check-box {
  border-color: rgba(20, 30, 50, 0.9);
  background: rgba(20, 30, 50, 0.08);
}
.modal .modal-check input[type="checkbox"]:checked + .modal-check-box::after {
  display: block;
}
.modal .modal-check input[type="checkbox"]:focus-visible + .modal-check-box {
  outline: 2px solid rgba(20, 30, 50, 0.55);
  outline-offset: 2px;
}

/* Schedule team pills (Nov 22 2026): Whole team | My jobs | each teammate | Unassigned. One swipeable row. */
.team-pills { display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 2px 2px 4px; margin: -4px 0 12px; }
.team-pills::-webkit-scrollbar { display: none; }
.team-pill { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 16px; border: 1px solid var(--border); background: #fff; color: var(--navy); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.team-pill:hover:not(.on) { background: var(--accent-tint); }
.team-pill:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.team-pill.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.team-pill-label { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.team-pill-av { width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; margin-left: -4px; }
.team-pill.on .team-pill-av { background: #fff; color: var(--navy); }
.team-pill-n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #ebe9e1; color: #5b6660; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.team-pill.on .team-pill-n { background: rgba(255, 255, 255, .22); color: #fff; }
.who-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--navy); }
.who-tag .team-pill-av { width: 20px; height: 20px; margin-left: 0; }
.wk-who { color: var(--navy); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-wrap.board-one .board-col { flex: 1 1 auto; max-width: 560px; width: 100%; }

/* Bottom of every page stays reachable. The main column fills the shell's own grid row instead of a separate
   100vh, so nothing is cut off when something sits above the shell (sample tour switcher, trial bar) or when
   Text size zooms the shell (Large / Extra large). */
.shell { grid-template-rows: minmax(0, 1fr); }
.shell > .main { height: auto; min-height: 0; }

/* A long name or note with no spaces (a bad paste, a web address) wraps inside its card instead of running past the
   right edge and making the whole page scroll sideways on a phone. Only words too long for their line are broken. */
#view { overflow-wrap: anywhere; }
#view .cust-row > div, #view .row > div { min-width: 0; }

/* Job types list: a long job type with no spaces wraps inside its tag, and Rename / Remove drop below it, instead of
   pushing the buttons off the right edge on a phone. Short job types keep the tag and buttons on one line. */
.job-type-row { flex-wrap: wrap; row-gap: 6px; }
.job-type-row .badge.job-type-tag { min-width: 0; white-space: normal; overflow-wrap: anywhere; word-break: break-word; }

/* Nov 24: App Store + Google Play badges and QR codes on the "Use the app" sign-in panel. */
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 14px 0 6px; }
.store-badge { display: inline-flex; line-height: 0; border-radius: 8px; }
.store-badge img { height: 48px; width: auto; display: block; }
.store-badge:focus-visible { outline: 2px solid var(--link, #2563eb); outline-offset: 3px; }
.store-qrs { display: flex; gap: 18px; margin: 10px 0 4px; }
.store-qrs figure { margin: 0; text-align: center; }
.store-qrs img { width: 104px; height: 104px; display: block; border: 1px solid var(--border, #e2e8f0); border-radius: 10px; background: #fff; }
.store-qrs figcaption { margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--muted, #5b6573); }
@media (max-width: 760px), (pointer: coarse) { .store-qrs { display: none; } }

/* Typed team notes (job & call detail, synced with app) */
.jn-card { display: flex; flex-direction: column; gap: 10px; }
.jn-privacy { margin: 0; }
.jn-composer { display: flex; flex-direction: column; gap: 8px; }
.jn-input { width: 100%; box-sizing: border-box; font: inherit; font-size: 14px; line-height: 20px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg); color: var(--text); resize: vertical; min-height: 68px; }
.jn-input:focus { outline: 2px solid var(--accent-ui); outline-offset: 1px; border-color: var(--accent-ui); background: #fff; }
.jn-composer-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.jn-counter { margin: 0; }
.jn-add-btn { padding: 8px 14px; min-height: 40px; }
.jn-list { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; }
.jn-item { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 10px 12px; min-width: 0; }
.jn-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.jn-author { font-size: 13px; font-weight: 700; color: var(--navy); }
.jn-time { font-size: 12px; color: var(--muted); }
.jn-body { margin-top: 4px; font-size: 14px; line-height: 20px; overflow-wrap: anywhere; }
.jn-actions { display: flex; gap: 14px; margin-top: 6px; flex-wrap: wrap; }
.jn-link { background: none; border: 0; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; padding: 4px 2px; }
.jn-edit-link { color: var(--accent-text); }
.jn-edit-link:hover, .jn-link.danger-text:hover { text-decoration: underline; }
.jn-edit-input { margin-top: 8px; background: #fff; }
.jn-edit-actions, .jn-confirm-row { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.jn-confirm-row .caption { margin: 0 auto 0 0; font-weight: 600; color: var(--danger); }
.jn-sm-btn { padding: 6px 12px; font-size: 13px; min-height: 36px; }
.jn-danger-btn { background: var(--danger); border-color: var(--danger); color: #fff; }
.jn-empty { margin: 2px 0 0; font-size: 14px; }
@media (max-width: 760px) {
  .jn-add-btn, .jn-sm-btn { min-height: 44px; }
  .jn-link { min-height: 36px; padding: 6px 4px; }
}

/* Calendar file (.ics) import */
.ics-card-title { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.ics-card-focus { border: 2px solid var(--accent-ui); }
.ics-picker-row { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.ics-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ics-file-name { font-size: 13px; overflow-wrap: anywhere; }
.ics-export-help { margin-top: 12px; font-size: 13px; color: var(--muted); }
.ics-export-help summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.ics-help-list { margin: 8px 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ics-preview-wrap { margin-top: 18px; }
.ics-preview-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.ics-quick-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.ics-preview-list { display: flex; flex-direction: column; }
.ics-preview-row { display: grid; grid-template-columns: 24px 210px 1fr auto; gap: 12px; align-items: center; padding: 11px 4px; border-top: 1px solid var(--border); cursor: pointer; }
.ics-preview-row:first-child { border-top: 0; padding-top: 4px; }
.ics-preview-row.is-duplicate, .ics-preview-row.is-invalid { cursor: default; color: var(--muted); }
.ics-preview-row.is-past { color: var(--muted); }
.ics-preview-row.is-past .ics-row-title, .ics-preview-row.is-past .ics-row-date,
.ics-preview-row.is-duplicate .ics-row-title, .ics-preview-row.is-duplicate .ics-row-date,
.ics-preview-row.is-invalid .ics-row-title, .ics-preview-row.is-invalid .ics-row-date { color: var(--muted); font-weight: 500; }
.ics-row-check { display: inline-flex; align-items: center; justify-content: center; }
.ics-row-check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--navy); cursor: pointer; }
.ics-row-check input[type="checkbox"]:disabled { cursor: default; }
.ics-row-when { display: flex; flex-direction: column; gap: 2px; font-size: 13px; min-width: 0; }
.ics-row-date { color: var(--text); font-weight: 700; }
.ics-row-time { color: var(--muted); font-size: 13px; }
.ics-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ics-row-title { font-size: 15px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.ics-row-sub { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.ics-row-badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.ics-success-head { display: flex; align-items: center; gap: 8px; font-size: 17px; color: var(--success); }
.ics-success-head strong { color: var(--navy); }
@media (max-width: 760px) {
  .ics-preview-row { grid-template-columns: 24px 1fr; gap: 4px 10px; align-items: start; padding: 12px 2px; }
  .ics-row-check { grid-column: 1; grid-row: 1 / span 3; padding-top: 2px; }
  .ics-row-when { grid-column: 2; flex-direction: row; flex-wrap: wrap; gap: 6px; align-items: baseline; }
  .ics-row-main { grid-column: 2; }
  .ics-row-badges { grid-column: 2; justify-content: flex-start; margin-top: 4px; }
}
a.link-btn.ics-back-link, a.link-btn.ics-back-link:hover, a.link-btn.ics-back-link:focus { color: var(--navy); }

/* Security steps (Nov 26 2026): "Confirm it's you" code screen sits above any open form. */
.su-back { z-index: 60; }
.su-modal .su-label { font-weight: 600; font-size: 14px; margin: 12px 0 8px; }
.su-modal .su-boxes { display: flex; gap: 8px; }
.su-modal .su-box { width: 48px; height: 56px; padding: 0; font-size: 24px; font-weight: 700; text-align: center; border-radius: 10px; caret-color: transparent; min-width: 0; flex: 0 1 48px; }
.su-modal .su-box:focus { caret-color: auto; }
@media (max-width: 380px) { .su-modal .su-boxes { gap: 6px; } .su-modal .su-box { height: 50px; font-size: 21px; } }
.su-modal .su-resend { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.su-modal .link-btn[hidden] { display: none; }

/* Account: the plan card (1-year plan) */
.plan-block { margin-top: 16px; }
.plan-card { padding: 14px; }
.plan-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.plan-name { font-size: 17px; font-weight: 800; }
.plan-price { font-size: 17px; font-weight: 800; color: var(--accent-text); }
.plan-summary { margin-top: 4px; font-size: 14px; }
.plan-fine { margin-top: 4px; font-size: 13px; }
.plan-costco { margin-top: 10px; padding-left: 10px; border-left: 3px solid #19D3C5; }
.plan-costco-offer { font-size: 14px; line-height: 20px; color: var(--text, #0f1713); }
.plan-costco-fine { margin-top: 4px; font-size: 13px; line-height: 18px; color: var(--muted, #5c6760); }
.plan-note { margin-top: 10px; font-size: 13px; }
.plan-ok { margin-top: 10px; font-size: 14px; color: var(--success); }
.plan-err { margin-top: 10px; font-size: 14px; color: var(--danger); }
.plan-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.plan-confirm { margin-top: 12px; padding: 12px; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--bg, #F6F4EF); }
.plan-confirm-title { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.plan-confirm-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* Nov 28 top-five preview: plain form fields on the estimate builder */
.card.t5-form input[type="text"], .card.t5-form input[type="tel"], .card.t5-form select { width: 100%; max-width: 100%; font: inherit; padding: 10px 12px; margin: 4px 0 8px; border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; box-sizing: border-box; }
.card.t5-form .pay-row input[type="text"] { width: auto; flex: 1 1 140px; margin: 0; }
.card.t5-form input[type="checkbox"] { width: 18px; height: 18px; vertical-align: middle; }

/* Nov 28 preview: invoice reminders + refunds (Get paid page and job Payment card). */
.qb-chips{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0}
.qb-chip{border:1px solid var(--border,#e3e1da);background:var(--card,#fff);color:inherit;border-radius:999px;padding:6px 12px;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.qb-chip.on{background:var(--accent-tint);border-color:var(--accent-ui);color:var(--accent-text)}
.qb-chip:disabled{opacity:.55;cursor:default}
.qb-preview{border:1px solid var(--border,#e3e1da);border-radius:12px;padding:12px 14px;background:var(--bg,#faf9f6)}
.qb-preview pre{white-space:pre-wrap;font:inherit;font-size:14px;margin:8px 0 0}
.qb-job-rem,.qb-job-refunds{margin-top:8px}
.qb-job-rem p,.qb-job-refunds p{margin:4px 0}
.qb-rem .section-label{margin-top:14px}


/* Header back arrow: left of the title, same as the phone app. Hidden on root tabs. */
.topbar .title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}
.topbar-back {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 0 0 -8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  border-radius: 22px;
}
.topbar-back[hidden] { display: none; }
.topbar-back .ico.chevron-back, .topbar-back .ico {
  font-size: 26px;
  width: 26px;
  color: var(--text);
  line-height: 1;
}
.topbar-back:hover,
.topbar-back:focus { background: var(--fill, #f3f1ea); }
.topbar-back:focus-visible { outline: 2px solid var(--navy, #0a1628); outline-offset: 2px; }

/* A selected call hides the page title; keep the back arrow on the left, Aa on the right. */
body.calls-split.has-page-back .topbar { justify-content: flex-start; }
body.calls-split.has-page-back .title-row { flex: 1 1 auto; }
body.calls-split.has-page-back #topbar-back { display: inline-flex; }


/* Overnight polish (Dec 1): keep the last page on screen while the next one loads,
   show a slim top bar, skeleton rows, and a clear empty state with one action. */
.yfd-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 80;
  background: transparent; overflow: hidden; pointer-events: none;
}
.yfd-progress[hidden] { display: none; }
.yfd-progress > i {
  display: block; height: 100%; width: 36%;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
  animation: yfd-progress-slide 1s ease-in-out infinite;
}
@keyframes yfd-progress-slide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(380%); }
}
#view.yfd-enter > * { animation: yfd-in .16s ease-out; }
@keyframes yfd-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.skel-list { display: grid; gap: 8px; padding: 4px 0 16px; }
.skel-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--card, #fff);
  border: 1px solid var(--border, #e7e4da);
  border-radius: 14px;
  padding: 14px 16px;
  min-height: 72px;
}
.skel-lines { flex: 1; display: grid; gap: 8px; }
.skel {
  background: var(--fill, #ecebe6);
  border-radius: 8px;
  animation: yfd-skel 1.2s ease-in-out infinite;
}
.skel-avatar { width: 40px; height: 40px; border-radius: 20px; flex: 0 0 40px; }
.skel-line { height: 12px; }
.skel-line.w60 { width: 46%; }
.skel-line.w90 { width: 78%; }
@keyframes yfd-skel {
  0%, 100% { opacity: .45; }
  50% { opacity: 1; }
}
.empty-state {
  text-align: center;
  padding: 36px 20px 28px;
  display: grid;
  justify-items: center;
  gap: 8px;
}
.empty-state-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--text, #0f1713);
}
.empty-state-body {
  margin: 0;
  max-width: 32rem;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted, #5b6660);
}
.empty-state .btn { margin-top: 8px; min-height: 44px; }

/* On my way (Dec 2): where a tech left from, with a Maps link. Same caption and link styles as the rest of the page. */
.omw-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 6px; position: relative; z-index: 2; }
.omw-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.omw-wrap .card { margin-bottom: 12px; }
.omw-switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; cursor: pointer; }
.omw-switch > span { display: flex; flex-direction: column; gap: 2px; }
.omw-switch input { width: 20px; height: 20px; flex: none; }

/* L2 (Dec 3 2026): no standalone teal text. Links read in charcoal with a small teal underline so they still look tappable. */
body:not(.start-page) {
  --link: var(--text, #0f1713);
}
body:not(.start-page) :is(.link, .link-btn, .addr-link, .needs-addr-call, .appt-edit, .card .phone a, .detail-head .phone) {
  color: var(--text, #0f1713);
  text-decoration: underline;
  text-decoration-color: var(--tint, #0d9488);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
/* Week cards: compact edit control, no heavy underline; chip stays inside the card. */
body:not(.start-page) .wk-appt .appt-edit {
  color: var(--muted);
  font-weight: 600;
  font-size: 11px;
  text-decoration: none;
  white-space: normal;
}
body:not(.start-page) .wk-appt .appt-edit:hover {
  color: var(--text, #0f1713);
  text-decoration: underline;
  text-decoration-color: var(--muted);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* Dec 3 cleanup: the Marked Quoted Delete button was red text on a red fill (yfd-inventory.css .btn.danger), so it read as a blank red block. */
.mq-actions .btn.ghost.danger { background: transparent; border-color: #f0c9c9; color: #c92a2a; }
.mq-actions .btn.ghost.danger:hover { background: #fdf1f1; }

/* Dec 3 cleanup: Home money card had its lines stacked tight; calm Stock alerts card when nothing is short. */
.tk-home-money .tk-kpi { margin: 6px 0 2px; line-height: 1.1; }
.tk-home-money p { margin: 4px 0; }
.tk-home-money p.caption { margin: 0; }
.card.tk-ok { background: var(--card, #fff); border-color: var(--border, #e5e7eb); }

/* Dec 3 cleanup: Inventory summary on phones: two per row so "$0.00" never splits. */
@media (max-width: 599px) {
  .inv-summary { grid-template-columns: repeat(2, 1fr); }
  .inv-stat strong.sum-value, .inv-stat strong { overflow-wrap: normal; white-space: nowrap; }
}
.call-item .ci-appt-btn.is-busy, .call-item .ci-appt-btn[aria-busy="true"] { opacity: .7; cursor: progress; text-decoration: none; }
