/* Back Office page: its own visuals and interactions (js/back-office.js). Shared parts (headings, folds, price, FAQ)
   come from product.css. The Back Office's colour is ochre (chip 3); the chat with the owner is soft green. */

.bo-deadline, .bo-month, .bo-remind, .bo-glove { padding-block: clamp(48px, 7vw, 88px) 0; }
.bo-deadline .pr-h2, .bo-remind .pr-h2 { text-align: center; }
.bo-deadline .eyebrow, .bo-remind .eyebrow { margin-bottom: 10px; }
.bo-note { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 13px; color: var(--ink-3); }
.bo-note .i { flex: none; width: 14px; height: 14px; margin-top: 2px; }
@keyframes bo-pop { from { opacity: 0; transform: translateY(6px) scale(0.98); } }

/* ---------- Hero: the owner's WhatsApp chat with the Back Office ---------- */
.bo-wa { --bubble-in: var(--surface); --bubble-out: color-mix(in srgb, var(--ok) 15%, var(--surface)); position: relative; display: grid; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: var(--bg-soft); box-shadow: var(--shadow-lg); }
.bo-wa-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.bo-wa-avatar { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--chip-3); color: var(--chip-ink); }
.bo-wa-who { display: grid; line-height: 1.25; }
.bo-wa-who b { font-size: 15px; }
.bo-wa-who small { font-size: 12px; color: var(--ok); }
.bo-wa-top .tag { margin-inline-start: auto; }
.bo-wa-thread { display: flex; flex-direction: column; gap: 8px; height: 540px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 16px 14px 18px; background-image: radial-gradient(color-mix(in srgb, var(--ink) 7%, transparent) 1px, transparent 1px); background-size: 14px 14px; }
.bo-msg { position: relative; flex: none; max-width: 88%; margin: 0; padding: 9px 12px; border-radius: 14px; font-size: 14.5px; line-height: 1.45; box-shadow: 0 1px 1px rgba(13, 14, 19, 0.06); }
.bo-msg p { margin: 0; }
.bo-msg.is-in { align-self: flex-start; border-start-start-radius: 4px; background: var(--bubble-in); }
.bo-msg.is-out { align-self: flex-end; border-start-end-radius: 4px; background: var(--bubble-out); }
[data-wa-added] { animation: bo-pop 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.bo-time { display: block; margin-top: 3px; font-size: 11px; text-align: end; color: var(--ink-3); }

/* The voice note: press play, the wave fills, the words appear. */
.bo-voice { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; width: min(300px, 88%); }
.bo-play { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: var(--ok); color: var(--bg); cursor: pointer; }
.bo-play .i { width: 13px; height: 13px; margin-inline-start: 2px; fill: currentColor; }
.bo-play:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.bo-wave { position: relative; display: block; height: 26px; }
.bo-wave svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke-width: 2.2; stroke-linecap: round; }
.bo-wave-base { stroke: color-mix(in srgb, var(--ink) 22%, transparent); }
.bo-wave-played { stroke: var(--ok); clip-path: inset(0 100% 0 0); }
[dir="rtl"] .bo-wave-played { clip-path: inset(0 0 0 100%); }
.is-playing .bo-wave-played { animation: bo-play 1.7s linear forwards; }
@keyframes bo-play { to { clip-path: inset(0 0 0 0); } }
.bo-voice-len { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.bo-said { grid-column: 1 / -1; font-size: 13.5px; font-style: italic; color: var(--ink-2); }
.bo-voice .bo-time { grid-column: 1 / -1; margin-top: 0; }
.bo-typing { display: none; flex: none; align-self: flex-start; gap: 4px; margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--bubble-in); }
.bo-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: bo-dot 1s infinite; }
.bo-typing i:nth-child(2) { animation-delay: 0.15s; }
.bo-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes bo-dot { 0%, 60%, 100% { opacity: 0.3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.bo-wa.is-typing .bo-typing { display: inline-flex; }
/* Until it is in view, only the voice note shows (js/back-office.js plays the rest). */
.bo-wa.is-waiting:not(.is-heard) .bo-said, .bo-wa.is-waiting .bo-quote { display: none; }
.bo-quote { width: min(340px, 92%); padding: 8px 8px 0; animation: bo-pop 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.bo-quote-intro { padding: 2px 4px 8px; }
.bo-quote.is-resent .bo-quote-intro { display: none; }

/* The quote: a small document with an ochre top edge, from the owner's own price list. */
.bo-doc { padding: 12px 14px; border: 1px solid var(--line); border-top: 4px solid var(--chip-3); border-radius: 10px; background: var(--bg); transition: opacity 0.3s ease; }
.bo-doc-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 8px; margin: 0 0 6px !important; font-size: 12.5px; color: var(--ink-3); }
.bo-doc-head b { font-family: var(--font-display); font-size: 15px; color: var(--ink); }
.bo-lines { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.bo-lines th { padding: 5px 0; font-weight: 500; text-align: start; }
.bo-lines th small { display: block; font-size: 11.5px; font-weight: 400; color: var(--ink-3); }
.bo-lines td { padding: 5px 0; text-align: end; vertical-align: top; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bo-lines tbody tr + tr > * { border-top: 1px dashed var(--line); }
.bo-lines tfoot th, .bo-lines tfoot td { padding: 2px 0; font-size: 12.5px; color: var(--ink-2); }
.bo-lines tfoot tr:first-child > * { padding-top: 8px; border-top: 1px solid var(--line-strong); }
.bo-lines .is-total > * { padding-top: 4px; font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--ink); }
.bo-lines .is-changed > * { animation: bo-flash 1.6s ease; }
@keyframes bo-flash { from { background: color-mix(in srgb, var(--chip-3) 65%, transparent); } }
.bo-doc-foot { display: flex; align-items: center; gap: 6px; margin: 8px 0 0 !important; font-size: 11.5px; color: var(--ok); }
.bo-doc-foot .i { width: 12px; height: 12px; }
.bo-quote.is-discarded .bo-doc { opacity: 0.4; }
.bo-quote.is-discarded .is-total td { text-decoration: line-through; }
/* WhatsApp-style reply buttons under the message: send, edit, discard. */
.bo-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 8px -8px 0; overflow: hidden; border-top: 1px solid var(--line); border-radius: 0 0 14px 14px; background: var(--line); }
.bo-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 6px; border: 0; background: var(--surface); font: inherit; font-size: 14px; font-weight: 600; color: var(--accent); cursor: pointer; transition: background-color 0.15s ease; }
.bo-actions button .i { width: 13px; height: 13px; }
.bo-actions [data-wa-act="send"] { color: var(--ok); }
.bo-actions [data-wa-act="discard"] { color: var(--err); }
.bo-actions button:hover:not(:disabled) { background: var(--bg-soft); }
.bo-actions button:disabled { opacity: 0.45; cursor: default; }
.bo-actions button:focus-visible { outline: 2px solid var(--ink); outline-offset: -3px; }
.bo-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px !important; }
.bo-chips button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid color-mix(in srgb, var(--ok) 45%, var(--line)); border-radius: 999px; background: var(--bubble-out); font: inherit; font-size: 13.5px; font-style: italic; color: var(--ink); cursor: pointer; transition: border-color 0.15s ease; }
.bo-chips button:hover:not(:disabled) { border-color: var(--ok); }
.bo-chips button:disabled { opacity: 0.5; cursor: default; }
.bo-chips button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.bo-chips .i, .bo-spoken .i { width: 14px; height: 14px; color: var(--ok); }
.bo-spoken { display: inline-flex; align-items: center; gap: 8px; font-style: italic; }
.bo-msg.is-done { display: flex; align-items: flex-start; gap: 8px; }
.bo-msg.is-done .i { flex: none; width: 15px; height: 15px; margin-top: 3px; color: var(--ok); }
.bo-msg.is-quiet { font-style: italic; color: var(--ink-3); }
.is-ask > p:first-child { display: flex; align-items: flex-start; gap: 8px; }
.is-ask > p:first-child .i { flex: none; width: 15px; height: 15px; margin-top: 3px; color: var(--warn); }
.bo-again { justify-self: center; display: inline-flex; align-items: center; height: 36px; margin: 0 0 14px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
.bo-again:hover { border-color: var(--ink); }
.bo-again:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- In Germany, right now: three sourced figures ---------- */
.bo-facts { padding-block: clamp(40px, 6vw, 72px) 0; }
.bo-facts .eyebrow { margin: 0 0 18px; }
.bo-facts-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.bo-facts-list li { display: grid; align-content: start; gap: 8px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.bo-facts-list b { font-family: var(--font-display); font-size: clamp(36px, 4.4vw, 52px); font-weight: 700; line-height: 1; letter-spacing: -0.04em; color: var(--warn); }
.bo-facts-list p { margin: 0; font-size: 15.5px; line-height: 1.45; color: var(--ink-2); }
.bo-facts-list a { display: inline-flex; align-items: center; justify-self: start; gap: 5px; margin-top: 4px; font-size: 12.5px; color: var(--ink-3); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.bo-facts-list a:hover { color: var(--ink); }
.bo-facts-list a .i { width: 12px; height: 12px; }

/* ---------- E-invoicing: two questions, a timeline, your date ---------- */
.bo-d-card { display: grid; gap: 22px; max-width: 900px; margin: 28px auto 0; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.bo-d-ask { display: flex; flex-wrap: wrap; gap: 14px 36px; }
.bo-seg { min-width: 0; margin: 0; padding: 0; border: 0; transition: opacity 0.2s ease; }
.bo-seg legend { margin-bottom: 8px; padding: 0; font-size: 13px; color: var(--ink-3); }
.bo-seg-opts { display: inline-flex; flex-wrap: wrap; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-soft); }
.bo-seg label { position: relative; }
.bo-seg input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.bo-seg label span { display: block; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap; color: var(--ink-3); transition: background-color 0.2s ease, color 0.2s ease; }
.bo-seg label:hover span { color: var(--ink); }
.bo-seg input:checked + span { background: var(--btn-bg); color: var(--btn-fg); }
.bo-seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.bo-seg:disabled { opacity: 0.35; }
.bo-seg:disabled input { cursor: default; }
/* The timeline: each marker is a zero-width anchor at --at, its parts centred on it. */
.bo-line { position: relative; height: 100px; margin: 4px 8px 0; }
.bo-line::before { content: ""; position: absolute; top: 40px; inset-inline: 0; height: 4px; border-radius: 999px; background: linear-gradient(to right, var(--line), color-mix(in srgb, var(--chip-3) 80%, var(--surface))); }
[dir="rtl"] .bo-line::before { background: linear-gradient(to left, var(--line), color-mix(in srgb, var(--chip-3) 80%, var(--surface))); }
.bo-line-today, .bo-line-mark { position: absolute; top: 0; bottom: 0; inset-inline-start: var(--at); width: 0; }
.bo-line-today b, .bo-line-mark b, .bo-line-mark small { position: absolute; left: 0; transform: translateX(-50%); text-align: center; white-space: nowrap; }
.bo-line-today b { top: 6px; padding: 2px 9px; border-radius: 999px; background: var(--btn-bg); font-size: 11.5px; color: var(--btn-fg); }
.bo-line-today::after { content: ""; position: absolute; top: 36px; left: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px var(--surface); }
.bo-line-mark::before { content: ""; position: absolute; top: 34px; left: -8px; box-sizing: border-box; width: 16px; height: 16px; border: 3px solid var(--line-strong); border-radius: 50%; background: var(--surface); transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease; }
.bo-line-mark b { top: 58px; font-size: 14px; transition: color 0.25s ease; }
.bo-line-mark small { top: 79px; font-size: 12px; color: var(--ink-3); }
.bo-line-mark.is-yours::before { border-color: var(--warn); background: var(--chip-3); transform: scale(1.3); }
.bo-line-mark.is-yours b { color: var(--warn); }
.bo-d-out { display: grid; gap: 10px; }
.bo-d-out p { margin: 0; }
.bo-d-yours { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; font-size: 17px; color: var(--ink-2); }
.bo-d-yours b { font-family: var(--font-display); font-size: 24px; letter-spacing: -0.02em; color: var(--ink); }
.bo-d-left { padding: 3px 11px; border-radius: 999px; background: color-mix(in srgb, var(--warn) 13%, var(--surface)); font-size: 14px; font-weight: 700; color: var(--warn); }
.bo-d-left:empty { display: none; }
.bo-d-b2c { font-size: 16px; font-weight: 600; }
.bo-d-what { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.bo-d-do { display: flex; align-items: flex-start; gap: 8px; font-size: 15px; font-weight: 600; }
.bo-d-do .i { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--ok); }

/* ---------- A month of jobs: month end against the same day ---------- */
.bo-month-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: 32px 56px; }
.bo-month-text { display: grid; gap: 14px; }
.bo-month-text > p:not(.eyebrow):not(.bo-note):not(.bo-sooner) { margin: 0; font-size: 17px; color: var(--ink-2); }
.bo-switch { display: inline-flex; justify-self: start; padding: 4px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); }
.bo-switch button { height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease; }
.bo-switch button[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-fg); }
.bo-switch button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.bo-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.bo-kpis > div { padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.bo-kpis dt { font-size: 13px; color: var(--ink-3); }
.bo-kpis dd { margin: 4px 0 0; font-size: 15px; color: var(--ink-2); }
.bo-kpis b { font-family: var(--font-display); font-size: 34px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--err); transition: color 0.3s ease; }
.bo-kpis.is-good b { color: var(--ok); }
.bo-sooner { margin: 0; font-size: 16px; color: var(--ink-2); }
.bo-sooner b { color: var(--ok); }
.bo-cal { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-lg); }
.bo-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; font-size: 14px; font-weight: 600; }
.bo-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.bo-days li { position: relative; }
.bo-days button { position: relative; display: block; width: 100%; aspect-ratio: 1 / 0.88; padding: 6px 7px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft); font: inherit; font-size: 12.5px; font-weight: 600; line-height: 1; text-align: start; color: var(--ink-3); cursor: pointer; transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease; }
.bo-days .is-weekend button { background: transparent; }
.bo-days button:hover { border-color: var(--line-strong); color: var(--ink); }
.bo-days button[aria-pressed="true"] { border-color: color-mix(in srgb, var(--chip-3) 85%, var(--line)); background: color-mix(in srgb, var(--chip-3) 24%, var(--surface)); color: var(--ink); }
.bo-days button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
[data-mode="end"] .is-last button { border-color: color-mix(in srgb, var(--err) 45%, var(--line)); background: color-mix(in srgb, var(--err) 7%, var(--surface)); }
/* The invoice: a small slip on its job's day, or flown to the 30th at month end (--dx/--dy from the script). */
.bo-inv { position: absolute; bottom: 6px; inset-inline-end: 6px; z-index: 2; box-sizing: border-box; width: 15px; height: 19px; border: 1.5px solid var(--warn); border-radius: 3px; background: var(--surface); box-shadow: var(--shadow-sm); opacity: 0; transform: translate(var(--dx, 0px), var(--dy, 0px)) scale(0.6); transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease, border-color 0.3s ease; pointer-events: none; }
.bo-inv::before { content: ""; position: absolute; inset: 4px 3px auto; height: 7px; background: repeating-linear-gradient(to bottom, var(--line-strong) 0 1.5px, transparent 1.5px 3px); }
[aria-pressed="true"] > .bo-inv { opacity: 1; transform: translate(var(--dx, 0px), var(--dy, 0px)); }
[data-mode="same"] [aria-pressed="true"] > .bo-inv { border-color: var(--ok); }
.bo-days .is-last[data-count]:not([data-count=""])::after { content: attr(data-count); position: absolute; top: -9px; inset-inline-end: -7px; z-index: 3; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; box-sizing: border-box; border-radius: 999px; background: var(--err); font-size: 12px; font-weight: 700; color: var(--bg); box-shadow: 0 0 0 3px var(--surface); }

/* ---------- Late payers: a slider through the weeks after an invoice ---------- */
.bo-r-lead { max-width: 640px; margin: 12px auto 0; font-size: 17px; text-align: center; color: var(--ink-2); }
.bo-r-card { --p: 34.7%; display: grid; gap: 20px; max-width: 900px; margin: 28px auto 0; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-soft); }
.bo-r-track { display: grid; gap: 8px; }
.bo-r-day { grid-row: 1; justify-self: end; padding: 3px 10px; border-radius: 999px; background: var(--surface); font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); }
.bo-r-track input { width: 100%; height: 8px; margin: 8px 0; border-radius: 999px; background: linear-gradient(to right, var(--ok) var(--p), var(--line-strong) var(--p)); cursor: pointer; appearance: none; -webkit-appearance: none; }
[dir="rtl"] .bo-r-track input { background: linear-gradient(to left, var(--ok) var(--p), var(--line-strong) var(--p)); }
.bo-r-track input::-webkit-slider-thumb { width: 26px; height: 26px; border: 4px solid var(--surface); border-radius: 50%; background: var(--ink); box-shadow: var(--shadow-sm); appearance: none; -webkit-appearance: none; }
.bo-r-track input::-moz-range-thumb { width: 18px; height: 18px; border: 4px solid var(--surface); border-radius: 50%; background: var(--ink); box-shadow: var(--shadow-sm); }
.bo-r-track input:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
.bo-r-ticks { position: relative; height: 42px; margin: 0 13px; padding: 0; list-style: none; }
/* Each tick is a zero-width anchor at its day; its label is centred on it (the first one starts there). */
.bo-r-ticks li { position: absolute; top: 0; bottom: 0; inset-inline-start: calc(var(--at) / 49 * 100%); width: 0; font-size: 11.5px; color: var(--ink-3); transition: color 0.2s ease; }
.bo-r-ticks li::before { content: ""; position: absolute; top: 0; left: -1px; width: 2px; height: 6px; border-radius: 1px; background: currentColor; }
.bo-r-ticks span { position: absolute; top: 9px; left: 0; transform: translateX(-50%); white-space: nowrap; }
.bo-r-ticks [data-tick="17"] span, .bo-r-ticks [data-tick="42"] span { top: 24px; }
.bo-r-ticks [data-tick="0"] span { transform: none; }
[dir="rtl"] .bo-r-ticks [data-tick="0"] span { transform: translateX(-100%); }
.bo-r-ticks li.is-past { font-weight: 600; color: var(--ink); }
.bo-stages { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.bo-stage { display: grid; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.is-live .bo-stage { animation: bo-pop 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.bo-stage > p { margin: 0; font-size: 15px; color: var(--ink-2); }
.bo-stage > .bo-stage-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--ink); }
.bo-stage-icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--bg-soft); color: var(--ink-2); }
.bo-stage.is-auto .bo-stage-icon { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); color: var(--ok); }
.bo-stage.is-yours .bo-stage-icon { background: color-mix(in srgb, var(--chip-3) 45%, var(--surface)); color: var(--warn); }
.bo-email { margin: 0; padding: 14px 16px; border-inline-start: 3px solid var(--ok); border-start-end-radius: 12px; border-end-end-radius: 12px; background: var(--bg-soft); font-size: 14.5px; line-height: 1.55; }
.bo-email small { display: block; margin-bottom: 6px; font-size: 12px; color: var(--ink-3); }
.bo-ask { display: grid; gap: 10px; max-width: 480px; padding: 12px 14px; border-radius: 14px; border-start-start-radius: 4px; background: color-mix(in srgb, var(--ok) 11%, var(--surface)); }
.bo-ask > p { margin: 0; font-size: 14.5px; line-height: 1.5; }
.bo-ask-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bo-ask-actions button { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
.bo-ask-actions button .i { width: 13px; height: 13px; }
.bo-ask-actions [data-r-act="sent"] { border-color: var(--ok); background: var(--ok); color: var(--bg); }
.bo-ask-actions button:hover { border-color: var(--ink); }
.bo-ask-actions button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.bo-ask-done { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ok); }
.bo-ask-done .i { width: 14px; height: 14px; }
/* Monday's overview: four numbers. */
.bo-ov { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px 28px; max-width: 900px; margin: 14px auto 0; padding: 16px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.bo-ov-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0; font-size: 14px; font-weight: 600; }
.bo-ov-title .i { width: 15px; height: 15px; color: var(--accent); }
.bo-ov dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; }
.bo-ov dt { font-size: 12px; color: var(--ink-3); }
.bo-ov dd { margin: 2px 0 0; font-family: var(--font-display); font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bo-ov .is-late dd { color: var(--err); }
.bo-ov .is-in dd { color: var(--ok); }

/* ---------- From the glovebox into Lexware Office ---------- */
.bo-glove-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 32px 56px; }
.bo-glove-text { display: grid; gap: 14px; }
.bo-glove-text > p:not(.eyebrow):not(.bo-pile-actions) { margin: 0; font-size: 17px; color: var(--ink-2); }
/* The glovebox: slips of paper and an email or two, waiting to be filed. */
.bo-pile { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 12px; min-height: 172px; margin: 6px 0 0; padding: 18px; border: 1px dashed var(--line-strong); border-radius: 22px; background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--ink) 4%, var(--bg-soft)) 0 10px, var(--bg-soft) 10px 20px); list-style: none; }
.bo-pile li { transform: rotate(var(--r)); }
.bo-slip { display: grid; gap: 4px; width: 148px; padding: 12px 12px 14px; border: 1px solid var(--line); border-bottom: 2px dashed var(--line-strong); border-radius: 4px; background: var(--surface); font: inherit; text-align: start; color: var(--ink); cursor: pointer; box-shadow: var(--shadow-sm); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.bo-slip.is-mail { border-top: 3px solid var(--accent); border-bottom-style: solid; border-bottom-width: 1px; border-radius: 8px; }
.bo-slip:hover { transform: translateY(-4px) rotate(calc(var(--r) * -1)); box-shadow: var(--shadow-lg); }
.bo-slip:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.bo-slip-via { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--ink-3); }
.bo-slip-via .i { width: 12px; height: 12px; }
.bo-slip b { font-size: 14px; line-height: 1.25; }
.bo-slip-sum { font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); }
.bo-pile-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.bo-ledger { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-lg); }
.bo-ledger-head { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 15px; }
.bo-ledger-logo { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: color-mix(in srgb, var(--chip-3) 50%, var(--surface)); color: var(--chip-ink); }
.bo-ledger-count { margin-inline-start: auto; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.bo-ledger-rows { display: grid; gap: 6px; min-height: 42px; margin: 0; padding: 0; list-style: none; }
.bo-ledger-rows li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: var(--bg-soft); font-size: 14px; }
.bo-ledger-rows li.is-new { animation: bo-pop 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.bo-ledger-rows li > span:last-child { font-family: var(--font-mono); font-size: 13px; }
.bo-cat { padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.bo-ledger-rows .is-flag { background: color-mix(in srgb, var(--err) 9%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--err) 35%, transparent); }
.bo-ledger-rows .is-flag b::after { content: " ⚠"; color: var(--err); }
/* The warning: a changed account, before anything is paid. */
.bo-fraud { display: grid; gap: 10px; padding: 16px 18px; border-radius: 16px; background: var(--deep); color: var(--deep-ink); animation: bo-pop 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.bo-fraud p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--deep-ink-2); }
.bo-fraud > .bo-fraud-title { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--deep-ink); }
.bo-fraud-title .i { width: 17px; height: 17px; color: var(--panel-warn); }
.bo-iban { display: grid; gap: 6px; margin: 0; }
.bo-iban div { display: grid; grid-template-columns: 130px minmax(0, 1fr); align-items: baseline; gap: 10px; }
.bo-iban dt { font-size: 12px; color: var(--deep-ink-3); }
.bo-iban dd { margin: 0; font-family: var(--font-mono); font-size: 13px; color: var(--deep-ink); }
.bo-iban .is-new dd { color: var(--panel-warn); }
.bo-fraud > .bo-fraud-pays b { color: var(--deep-ink); }
.bo-tax { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: var(--ink-3); }
.bo-tax .i { flex: none; width: 14px; height: 14px; }

/* ---------- Price: the requirement, and one flow with the Lead Desk ---------- */
.bo-needs { display: flex; align-items: center; justify-content: center; gap: 8px; max-width: 760px; margin: 14px auto 0; font-size: 14px; text-align: center; color: var(--ink-2); }
.bo-needs .i { flex: none; width: 14px; height: 14px; }
.bo-flow { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 4px 0 14px; padding: 0; list-style: none; }
.bo-flow::before { content: ""; position: absolute; top: 20px; inset-inline: 10%; height: 2px; background: linear-gradient(to right, var(--chip-2), var(--chip-3)); }
.bo-flow li { position: relative; display: grid; justify-items: center; gap: 4px; text-align: center; }
.bo-flow-dot { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--chip-ink); box-shadow: 0 0 0 5px var(--bg); }
.bo-flow-dot .i { width: 17px; height: 17px; }
.bo-flow .is-ld .bo-flow-dot { background: var(--chip-2); }
.bo-flow .is-bo .bo-flow-dot { background: var(--chip-3); }
.bo-flow b { font-size: 14px; }
.bo-flow small { font-size: 11.5px; color: var(--ink-3); }
.bo-flow.is-waiting li { opacity: 0; transform: translateY(12px); }
.bo-flow.is-in li { animation: pr-rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.bo-flow.is-in li:nth-child(2) { animation-delay: 0.1s; }
.bo-flow.is-in li:nth-child(3) { animation-delay: 0.2s; }
.bo-flow.is-in li:nth-child(4) { animation-delay: 0.3s; }
.bo-flow.is-in li:nth-child(5) { animation-delay: 0.4s; }

@media (max-width: 960px) {
  .bo-month-grid, .bo-glove-grid, .bo-facts-list { grid-template-columns: minmax(0, 1fr); }
  .bo-wa { justify-self: center; width: 100%; max-width: 460px; }
  .bo-ov { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .bo-wa-thread { height: 440px; }
  .bo-ov dl, .bo-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bo-kpis b { font-size: 28px; }
  .bo-line-mark b { font-size: 12.5px; }
  .bo-line { height: 122px; }
  .bo-line-mark small { width: max-content; max-width: 112px; font-size: 11px; white-space: normal; }
  .bo-r-ticks li { font-size: 10.5px; }
  .bo-iban div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .bo-pile li { width: calc(50% - 6px); }
  .bo-slip { width: 100%; }
  .bo-pile { padding: 14px; }
  .bo-days { gap: 4px; }
  .bo-days button { padding: 5px; font-size: 11.5px; }
  .bo-flow-dot { width: 34px; height: 34px; }
  .bo-flow::before { top: 17px; }
  .bo-flow b { font-size: 12px; }
  .bo-flow small { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .bo-inv, .bo-slip, .bo-seg, .bo-seg label span, .bo-line-mark::before, .bo-kpis b, .bo-doc { transition: none; }
  [data-wa-added], .bo-quote, .bo-typing i, .is-playing .bo-wave-played, .bo-lines .is-changed > *, .is-live .bo-stage, .bo-ledger-rows li.is-new, .bo-fraud, .bo-flow.is-in li { animation: none; }
  .bo-wave-played { clip-path: none; }
}
