/* Éditeur de documents (CV, lettres) : formulaire par sections + aperçu A4 filigrané. */
.ox-rb { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 980px) { .ox-rb { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); } .ox-rb-side { position: sticky; top: 14px; max-height: calc(100vh - 28px); overflow: auto; } }
.ox-rb-form { display: grid; gap: 12px; min-width: 0; }
.ox-rb-sec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 0 16px 14px; }
.ox-rb-sec > summary { cursor: pointer; font-weight: 800; padding: 14px 0; min-height: 44px; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.ox-rb-sec > summary::-webkit-details-marker { display: none; }
.ox-rb-sec > summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; transition: transform .2s; }
.ox-rb-sec[open] > summary::after { transform: rotate(45deg); }
.ox-rb-list { display: grid; gap: 12px; margin-bottom: 10px; }
.ox-rb-card { border: 1px dashed var(--line); border-radius: var(--r-sm); padding: 10px 12px; background: var(--surface-2); }
.ox-rb-card__bar { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.ox-rb-card__bar b { margin-right: auto; color: var(--accent); }
.ox-rb-card__bar .is-off { opacity: .35; pointer-events: none; }
.ox-rb-langrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.ox-rb-tpls { display: flex; gap: 12px; overflow-x: auto; padding: 6px 2px 12px; scroll-snap-type: x proximity; }
.ox-rb-tpl { flex: 0 0 118px; scroll-snap-align: start; display: grid; gap: 4px; text-align: left; background: var(--surface); border: 2px solid var(--line); border-radius: 12px; padding: 6px; cursor: pointer; color: var(--text); font: inherit; }
.ox-rb-tpl:hover { border-color: var(--accent-2); }
.ox-rb-tpl.is-on { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.ox-rb-thumb { width: 100%; height: auto; background: #fff; border-radius: 4px; box-shadow: 0 1px 4px rgba(0, 0, 0, .18); }
.ox-rb-tpl__n { font-weight: 800; font-size: .86rem; }
.ox-rb-tpl .ox-help { font-size: .72rem; line-height: 1.25; }
.ox-rb-opts { display: grid; gap: 14px; margin-top: 6px; }
.ox-rb-colors { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ox-rb-swatch { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.ox-rb-swatch.is-on { box-shadow: 0 0 0 3px var(--accent); }
.ox-rb-colorpick { width: 44px; height: 36px; padding: 0; border: 0; background: none; cursor: pointer; }
.ox-rb-photo { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ox-rb-photo .ox-help { flex-basis: 100%; margin: 0; }
.ox-rb-photo__img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; }
.ox-rb-gallery { display: flex; flex-wrap: wrap; gap: 8px; }
.ox-rb-swiss { margin-top: 14px; padding: 12px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.ox-rb-swiss h3 { margin: 0 0 4px; }
.ox-rb-swiss[hidden] { display: none; }
.ox-rb-side { min-width: 0; }
.ox-rb-h { margin: 0 0 6px; font-size: 1.15rem; }
.ox-rb-pages { display: grid; gap: 14px; justify-items: center; background: var(--surface-2); border-radius: var(--r); padding: 12px; -webkit-user-select: none; user-select: none; }
.ox-rb-page { width: 100%; max-width: 440px; height: auto; background: #fff; box-shadow: var(--shadow-lg); pointer-events: none; }
.ox-rb-pay { width: 100%; margin-top: 14px; min-height: 52px; font-size: 1.1rem; }
.ox-rb-text { white-space: pre-wrap; word-break: break-word; background: #fff; color: #111; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px; font: .85rem/1.5 ui-monospace, Consolas, monospace; max-height: 560px; overflow: auto; }
.ox-rb-cta { margin-top: 14px; padding: 14px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); border-left: 4px solid var(--accent); }
.ox-rb-law { margin-top: 10px; }
.ox-rb-law p { margin: 0; }
.ox-rb-body { min-height: 260px; }
.ox-rb-counter { font-weight: 700; }
.ox-rb-saved { min-height: 1.2em; }
@media (prefers-reduced-motion: reduce) { .ox-rb-sec > summary::after { transition: none; } }
