/*
 * Sections vivantes du relift (lot3.js) : app de bureau, Vous gardez la main, bexio ; et la section bebold détachée.
 */

/* ---------- App de bureau : le panneau du timer (TimerPanel) sous son icône ---------- */
.dk .mac-desk { height: 600px; }
/* Icône de la barre de menus : le symbole à la couleur du projet et la durée, sans fond, comme l'app de bureau. */
.dk-tray { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.dk-tray-time { font-variant-numeric: tabular-nums; }
.dk-sym { width: 22px; height: 15px; overflow: visible; }
.dk-sym rect { fill: var(--run, #c6b1ff); transform-box: fill-box; transition: transform 420ms var(--ease), fill 200ms; }
.dk-sym:is([data-state="delivery"], [data-state="notice"]) [data-row="top"] { transform: translateY(6px); }
.dk-sym:is([data-state="delivery"], [data-state="notice"]) [data-row="bottom"] { transform: translateY(-6px); }
.dk-sym[data-state="delivery"] rect.is-filled, .dk-sym[data-state="notice"] rect { fill: #c8f76c; }
/* Après la notification, le symbole se replie et la case du haut à droite reste décrochée, en vert. */
.dk-sym[data-state="pending"] [data-corner] { transform: translate(2px, -3px); fill: #c8f76c; }
@media (prefers-reduced-motion: reduce) { .dk-sym rect { transition: none; } }

.dk-pop { position: absolute; top: 8px; right: 14px; z-index: 1; display: flex; flex-direction: column; width: 330px; height: 452px; overflow: hidden; border-radius: 14px; border: 1px solid var(--border-strong); background: var(--bg-surface); box-shadow: 0 24px 60px -16px rgb(0 0 0 / 0.6); font-size: 13px; }
.dk-tabs { display: grid; grid-template-columns: 1fr 1fr; }
.dk-tabs span { display: flex; align-items: center; justify-content: center; gap: 6px; height: 30px; font-size: 13px; font-weight: 600; color: var(--text-secondary); background: var(--bg-raised); }
.dk-tabs .is-on { background: var(--accent); color: var(--text-on-accent); }
.dk-tabs svg { width: 14px; height: 14px; }
.dk-week { display: grid; grid-template-columns: 16px repeat(7, minmax(0, 1fr)) 16px; align-items: center; padding: 10px 8px; border-bottom: 1px solid var(--border); text-align: center; }
.dk-chev { display: inline-flex; color: var(--text-muted); }
.dk-chev svg { width: 14px; height: 14px; }
.dk-chev:not(.is-prev) svg { rotate: 180deg; }
.dk-week span { display: grid; justify-items: center; gap: 2px; }
.dk-week b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.dk-week small { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.dk-week .is-today b { background: var(--accent); color: var(--text-on-accent); }
.dk-week .is-today small { color: var(--fg-accent); }
.dk-body { flex: 1; padding: 14px 16px; }
.dk-project { display: flex; align-items: center; gap: 10px; }
.dk-project > span:nth-child(2) { display: grid; flex: 1; min-width: 0; }
.dk-project b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-project small { font-size: 11.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-project em { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; padding: 4px 10px; border-radius: 999px; background: var(--bg-teal); color: var(--fg-teal); font-style: normal; font-size: 12px; font-weight: 600; }
.dk-project em svg { width: 13px; height: 13px; }
.dk-id { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px; font-size: 11px; font-weight: 800; color: var(--avatar-ink); }
.dk-id.is-sm { width: 26px; height: 26px; border-radius: 7px; font-size: 9.5px; }
.dk-run-line { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.dk-run-line b { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; }
.dk-plus { display: inline-flex; color: var(--text-muted); }
.dk-plus svg, .dk-foot svg { width: 14px; height: 14px; }
.dk-clock { display: inline-flex; font-family: var(--font-display); font-size: 28px; font-weight: 500; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.dk-actions { display: flex; gap: 6px; margin-top: 12px; }
.dk-actions > span { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 12px; background: var(--bg-raised); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.dk-actions .dk-pause { flex: 1; background: var(--accent); color: var(--text-on-accent); }
.dk-actions svg { width: 14px; height: 14px; }
.dk-label { margin-top: 16px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.dk-rows { display: grid; gap: 6px; margin-top: 8px; }
.dk-rows li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; }
.dk-row-pause { display: none; color: var(--text-muted); }
.dk-row-pause svg { width: 13px; height: 13px; }
.dk[data-run="hebdo"] [data-row="hebdo"] .dk-row-pause, .dk[data-run="an"] [data-row="an"] .dk-row-pause { display: inline-flex; }
.dk-rows li > span:nth-child(2) { display: grid; flex: 1; min-width: 0; }
.dk-rows b { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-rows small { font-size: 11px; color: var(--text-muted); }
.dk-rows em { font-family: var(--font-mono); font-style: normal; font-size: 12px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
/* Le suivi en cours : d'abord le point interne, puis Kickoff. */
.dk-run [data-run] { display: none; }
.dk[data-run="hebdo"] .dk-run [data-run="hebdo"], .dk[data-run="an"] .dk-run [data-run="an"] { display: flex; }
.dk[data-run="hebdo"] .dk-run-line b[data-run="hebdo"], .dk[data-run="an"] .dk-run-line b[data-run="an"] { display: block; }
.dk[data-run="hebdo"] [data-row="hebdo"], .dk[data-run="an"] [data-row="an"] { background: var(--bg-raised); }
.dk[data-run="hebdo"] [data-row="hebdo"] em, .dk[data-run="an"] [data-row="an"] em { color: var(--fg-accent); }
/* Trois écrans dans le même panneau, comme dans l'app. */
.dk-pane { display: none; flex: 1; min-height: 0; flex-direction: column; }
.dk[data-pane="run"] .dk-run, .dk[data-pane="ask"] .dk-ask, .dk[data-pane="away"] .dk-away { display: flex; }
@media (prefers-reduced-motion: no-preference) { .dk-pane { animation: dk-pane .35s var(--ease) both; } }
@keyframes dk-pane { from { opacity: 0; translate: 0 6px; } }
.dk-qhead { padding: 12px 14px; border-bottom: 1px solid var(--border); }
.dk-qhead > p { display: flex; align-items: center; gap: 10px; }
.dk-qhead > p > span { display: grid; min-width: 0; }
.dk-qhead b { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.dk-qhead small { font-size: 11.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-tile { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; background: var(--bg-raised); color: var(--text-secondary); }
.dk-qhead .dk-tile { width: 30px; height: 30px; }
.dk-tile svg { width: 16px; height: 16px; }
.dk-tile.is-on { background: var(--accent); color: var(--text-on-accent); }
/* Frise de la journée : plages suivies, et la plage en question. */
.dk-strip { margin-top: 10px; }
.dk-strip p { position: relative; height: 10px; overflow: hidden; border-radius: 999px; background: var(--bg-raised); }
.dk-strip p i { position: absolute; top: 0; bottom: 0; }
.dk-strip .dk-gap { background: transparent; box-shadow: inset 0 0 0 1px var(--border-strong); }
.dk-strip .dk-hatch { background: repeating-linear-gradient(-45deg, var(--c) 0 3px, transparent 3px 6px); }
@media (prefers-reduced-motion: no-preference) { .dk-strip .dk-next { animation: dk-blink 1s ease-in-out infinite; } }
@keyframes dk-blink { 50% { opacity: .25; } }
.dk-strip small { display: flex; justify-content: space-between; margin-top: 3px; font-size: 10.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.dk-choices { display: grid; gap: 7px; align-content: start; padding: 12px 14px; }
.dk-choices .dk-label { margin-top: 4px; }
.dk-choice { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; border: 1px solid var(--border); transition: scale 160ms var(--ease), background-color 200ms; }
.dk-choice > span:nth-child(2) { display: grid; flex: 1; min-width: 0; }
.dk-choice b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-choice small { font-size: 11.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-choice.is-hl { border-color: var(--accent); background: var(--accent-soft); }
.dk-choice.is-dashed { border-style: dashed; }
.dk-choice.is-pressed { scale: .96; }
.dk-choice .dk-id { width: 34px; height: 34px; border-radius: 10px; }
.dk-end { display: inline-flex; color: var(--text-muted); }
.dk-end svg { width: 15px; height: 15px; }
.dk-runicon { position: relative; display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; background: var(--bg-raised); }
.dk-runicon::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 25%, transparent); }
.dk-foot { display: flex; justify-content: space-between; padding: 10px 14px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-secondary); }
.dk-foot span:first-child { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--fg-accent); }
/* Notifications du Mac : elles arrivent du bord, avec leurs boutons. */
.dk-note { --note-bg: rgb(44 44 46 / 0.74); --note-ink: #fff; --note-soft: rgb(255 255 255 / 0.78); --note-muted: rgb(255 255 255 / 0.5); --note-line: rgb(255 255 255 / 0.13);
  position: absolute; z-index: 2; left: 0; right: 0; margin-inline: auto; bottom: 22px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; width: min(380px, calc(100% - 32px)); border-radius: 16px; border: 0.5px solid var(--note-line); background: var(--note-bg); -webkit-backdrop-filter: blur(28px) saturate(170%); backdrop-filter: blur(28px) saturate(170%); box-shadow: 0 10px 34px -8px rgb(0 0 0 / 0.5), 0 0 0 0.5px rgb(0 0 0 / 0.3); color: var(--note-ink); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", var(--font-body); opacity: 0; translate: 24px 0; transition: opacity 380ms var(--ease), translate 380ms var(--ease); }
[data-theme="light"] .dk-note { --note-bg: rgb(246 246 246 / 0.8); --note-ink: #1d1d1f; --note-soft: rgb(29 29 31 / 0.85); --note-muted: rgb(29 29 31 / 0.5); --note-line: rgb(0 0 0 / 0.1); }
.dk-note.is-in { opacity: 1; translate: 0 0; }
/* Icône de l'app, comme dans le Dock. */
.dk-note-icon { display: grid; place-items: center; align-self: start; width: 36px; height: 36px; margin: 11px 0 11px 11px; border-radius: 9px; background: linear-gradient(#1d201b, #0e100d); box-shadow: inset 0 0 0 0.5px rgb(255 255 255 / 0.12); }
.dk-note-icon .logo { width: 22px; height: 15px; }
.dk-note-text { display: grid; align-content: center; gap: 1px; min-width: 0; padding: 10px 10px 11px; font-size: 13px; line-height: 1.3; }
.dk-note-head { display: flex; align-items: baseline; gap: 8px; }
.dk-note-head b { flex: 1; min-width: 0; overflow: hidden; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.dk-note-head small { flex-shrink: 0; font-size: 11.5px; color: var(--note-muted); }
.dk-note-sub { overflow: hidden; font-weight: 500; color: var(--note-soft); white-space: nowrap; text-overflow: ellipsis; }
.dk-note-body { display: -webkit-box; overflow: hidden; color: var(--note-soft); -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
/* Boutons empilés à droite, séparés par un filet, comme une alerte du Mac. */
.dk-note-actions { display: grid; grid-auto-rows: 1fr; border-left: 0.5px solid var(--note-line); }
.dk-note-actions span { display: grid; place-items: center; padding: 0 14px; font-size: 12.5px; font-weight: 500; color: var(--note-ink); }
.dk-note-actions span + span { border-top: 0.5px solid var(--note-line); }
@media (max-width: 560px) {
  .dk .mac-desk { height: 520px; }
  .dk-pop { left: 12px; right: 12px; width: auto; }
  .dk-note { bottom: 14px; }
}

/* ---------- Vous gardez la main : une petite conversation avec Claude, la fiche de confirmation, Touch ID ---------- */
.ct-tools { display: flex; flex-wrap: wrap; gap: 6px; margin: -16px 0 28px; }
.ct-tools span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 9px; border-radius: 999px; border: 1px solid var(--border-strong); font-size: 12.5px; font-weight: 600; color: var(--text-secondary); }
.ct-tools svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--text-primary); }
.ct-stage { position: relative; }
/* Fenêtre de conversation, tons chauds et neutres, fondue sur les bords. */
.ct-chat { position: relative; padding-bottom: 14px; border-radius: 24px; background: linear-gradient(180deg, color-mix(in srgb, #3a332c 55%, var(--bg-surface)), transparent 98%); -webkit-mask-image: radial-gradient(140% 115% at 50% 25%, #000 62%, transparent 100%); mask-image: radial-gradient(140% 115% at 50% 25%, #000 62%, transparent 100%); }
[data-theme="light"] .ct-chat { background: linear-gradient(180deg, color-mix(in srgb, #efe7dc 80%, var(--bg-surface)), transparent 98%); }
.ct-chat-head { display: flex; align-items: center; gap: 6px; padding: 14px 18px; font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.ct-chat-head i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.ct-chat-head span { margin-left: 8px; }
.ct-thread { display: grid; gap: 12px; min-height: 470px; align-content: start; padding: 4px 22px 0; }
.ct-thread [data-ct] { display: none; }
.ct-thread [data-ct].is-in { display: block; }
@media (prefers-reduced-motion: no-preference) { .ct-thread [data-ct].is-in { animation: ct-in .4s var(--ease) both; } }
@keyframes ct-in { from { opacity: 0; translate: 0 8px; } }
.ct-ask { justify-self: end; max-width: 82%; padding: 10px 14px; border-radius: 16px; background: color-mix(in srgb, var(--text-primary) 9%, transparent); font-size: 14px; }
.ct-say { max-width: 92%; font-size: 14.5px; line-height: 1.55; color: var(--text-primary); }
.ct-thread .ct-tool.is-in { display: inline-flex; }
.ct-tool { align-items: center; gap: 8px; justify-self: start; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--border); font-family: var(--font-mono); font-size: 11.5px; color: var(--text-muted); }
.ct-spin { width: 10px; height: 10px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; }
@media (prefers-reduced-motion: no-preference) { .ct-tool.is-live .ct-spin { animation: ct-spin .7s linear infinite; } }
.ct-tool:not(.is-live) .ct-spin { border-right-color: currentColor; opacity: .5; }
@keyframes ct-spin { to { rotate: 360deg; } }
.ct-input { display: flex; align-items: center; justify-content: space-between; margin: 18px 22px 0; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--border); font-size: 13.5px; color: var(--text-muted); }
.ct-input i { width: 26px; height: 26px; border-radius: 8px; background: color-mix(in srgb, var(--text-primary) 12%, transparent); }
/* La fiche de confirmation d'Infinity, comme dans l'assistant (MCP Apps). */
.ct-card { position: relative; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--bg-surface); font-size: 13px; transition: border-color 300ms; }
.ct-brand { position: absolute; top: 9px; right: 12px; display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-display); font-size: 13px; font-weight: 500; }
.ct-brand .logo { width: 21px; height: 14px; }
.ct-head { display: flex; padding-right: 92px; font-size: 12px; font-weight: 600; }
.ct-head svg { width: 14px; height: 14px; flex: none; margin-top: 1px; }
.ct-head > span { display: inline-flex; align-items: flex-start; gap: 6px; }
.ct-warn { color: var(--fg-warning); }
.ct-ok { display: none !important; color: var(--fg-positive); }
.ct-summary { margin-top: 4px; font-weight: 500; }
.ct-card dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; margin-top: 4px; font-size: 12px; }
.ct-card dt { color: var(--text-muted); }
.ct-card dd { color: var(--text-secondary); }
.ct-line { margin-top: 6px; font-size: 12px; color: var(--text-muted); }
.ct-buttons { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.ct-buttons span { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 10px; font-size: 12.5px; font-weight: 500; transition: scale 160ms var(--ease), box-shadow 200ms; }
.ct-ghost { color: var(--text-secondary); }
.ct-primary { gap: 6px; background: var(--accent); color: var(--text-on-accent); }
.ct-primary svg { width: 16px; height: 16px; }
.ct-stage[data-phase="touch"] .ct-primary { scale: .94; box-shadow: 0 0 0 5px var(--accent-soft); }
.ct-stage[data-phase="done"] .ct-card { border-color: color-mix(in srgb, var(--fg-positive) 45%, transparent); }
.ct-stage[data-phase="done"] .ct-warn, .ct-stage[data-phase="done"] .ct-buttons, .ct-stage[data-phase="done"] .ct-line { display: none; }
.ct-stage[data-phase="done"] .ct-ok { display: inline-flex !important; }
/* La demande de Touch ID du Mac, par-dessus. */
.ct-touch { position: absolute; left: 50%; top: 50%; display: grid; justify-items: center; gap: 6px; width: 240px; padding: 18px 16px 16px; border-radius: 16px; border: 1px solid var(--border-strong); background: color-mix(in srgb, var(--bg-surface) 88%, transparent); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 30px 70px -20px rgb(0 0 0 / .7); text-align: center; opacity: 0; translate: -50% -50%; scale: .94; transition: opacity 300ms var(--ease), scale 300ms var(--ease); pointer-events: none; }
.ct-touch > span { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--accent-soft); color: var(--fg-accent); }
.ct-touch > span svg { width: 32px; height: 32px; }
.ct-touch b { font-size: 14px; }
.ct-touch small { font-size: 12px; color: var(--text-secondary); }
.ct-stage[data-phase="touch"] .ct-touch { opacity: 1; scale: 1; }
@media (prefers-reduced-motion: no-preference) { .ct-stage[data-phase="touch"] .ct-touch > span { animation: ct-pulse 1.1s ease-in-out infinite; } }
@keyframes ct-pulse { 50% { box-shadow: 0 0 0 10px var(--accent-soft); } }
@media (min-width: 960px) { #control .control-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; } }

/* ---------- bexio : un document, deux portes ---------- */
.bx-top { display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) { .bx-top { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; } }
.bx-top .section-head { margin-bottom: 0; }
.bx-sync { display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); align-items: center; }
.bx-doc { display: grid; justify-items: start; gap: 6px; padding: 14px; border-radius: 16px; border: 1px solid var(--border); background: var(--bg-surface); box-shadow: var(--shadow-soft); min-width: 0; }
.bx-doc.is-bexio { border-color: color-mix(in srgb, #0d407e 55%, var(--border)); background: color-mix(in srgb, #0d407e 12%, var(--bg-surface)); }
.bx-brand { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.bx-brand .bexio-mark { width: 18px; height: 18px; }
.bx-inf { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 500; }
.bx-inf .logo { width: 21px; height: 14px; }
.bx-title { font-size: 13.5px; font-weight: 600; }
.bx-meta { font-size: 12px; color: var(--text-muted); }
.bx-meta span { font-family: var(--font-mono); color: var(--text-secondary); }
.bx-status { min-height: 22px; }
.bx-pill { display: none; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.bx-doc[data-state="0"] [data-bx="0"] { display: inline-flex; background: var(--bg-raised); color: var(--text-secondary); }
.bx-doc[data-state="1"] [data-bx="1"] { display: inline-flex; background: var(--bg-teal); color: var(--fg-teal); }
.bx-doc[data-state="2"] [data-bx="2"] { display: inline-flex; background: var(--bg-positive); color: var(--fg-positive); }
@media (prefers-reduced-motion: no-preference) { .bx-pill { animation: bx-pop .4s var(--ease) both; } }
@keyframes bx-pop { from { scale: .8; opacity: 0; } }
.bx-issue { height: 28px; padding: 0 12px; border-radius: 8px; background: var(--accent); color: var(--text-on-accent); font-size: 12px; font-weight: 700; line-height: 28px; transition: scale 160ms var(--ease), opacity 250ms; }
.bx-sync[data-phase="1"] .bx-issue { scale: .92; box-shadow: 0 0 0 4px var(--accent-soft); }
.is-infinity:not([data-state="0"]) .bx-issue { opacity: 0; }
.bx-paid { display: inline-flex; align-items: center; gap: 5px; height: 28px; font-size: 12px; font-weight: 600; color: var(--fg-positive); opacity: 0; transition: opacity 300ms; }
.bx-paid svg { width: 15px; height: 15px; }
.bx-sync[data-phase="4"] .bx-paid, .bx-sync[data-phase="5"] .bx-paid, .bx-sync[data-phase="6"] .bx-paid { opacity: 1; }
/* Le lien entre les deux : un point fait l'aller (émise) puis le retour (payée) ; le repère bexio au milieu. */
.bx-link { position: relative; height: 40px; }
.bx-line { position: absolute; left: 4px; right: 4px; top: 50%; border-top: 1px dashed var(--border-strong); }
.bx-hub { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg-surface); }
.bx-hub .bexio-mark { width: 16px; height: 16px; }
.bx-dot { position: absolute; top: 50%; left: 4px; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--accent); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .bx-sync[data-phase="2"] .bx-dot { animation: bx-go .9s ease-in-out both; }
  .bx-sync[data-phase="5"] .bx-dot { animation: bx-back .9s ease-in-out both; }
  .bx-sync[data-phase="2"] .bx-hub, .bx-sync[data-phase="5"] .bx-hub { animation: ct-spin 0.9s linear; }
}
@keyframes bx-go { from { left: 4px; opacity: 1; } to { left: calc(100% - 12px); opacity: 1; } }
@keyframes bx-back { from { left: calc(100% - 12px); opacity: 1; } to { left: 4px; opacity: 1; } }
@media (max-width: 560px) {
  .bx-sync { grid-template-columns: 1fr; gap: 0; }
  .bx-link { height: 44px; }
  .bx-line { left: 50%; right: auto; top: 4px; bottom: 4px; border-top: 0; border-left: 1px dashed var(--border-strong); }
  .bx-dot { display: none; }
}

/* ---------- bebold : un bloc à part, qui se détache aussi en sombre ---------- */
.bebold { width: min(100% - 2 * var(--gutter), 1240px); margin: 48px auto; border-radius: 32px; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.07), 0 40px 80px -40px rgb(0 0 0 / 0.8); }
[data-theme="dark"] .bebold { background: radial-gradient(120% 90% at 85% 10%, #33373a 0%, rgb(51 55 58 / 0) 55%), linear-gradient(188deg, #2a2d2f 15%, #0b0b0b 80%); }
@media (max-width: 640px) { .bebold { border-radius: 24px; padding-block: 64px; } }
/* Chiffres en rouleaux et deux-points sur la même ligne. */
.dk-clock { align-items: flex-start; line-height: 1.1; }
.dk-clock > span { display: inline-block; height: 1.1em; line-height: 1.1em; }
