/* Otoolia — Utilitaires pratiques (complète sport.css, préfixe .pu-) */
.sp-cats { margin-bottom: 14px; }
/* Convertisseur */
.pu-conv { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: end; }
.pu-side { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pu-big { font-size: 1.6rem !important; font-weight: 700; min-height: 58px; font-variant-numeric: tabular-nums; }
.pu-res { background: color-mix(in srgb, var(--ot-brand) 7%, var(--ot-surface)); }
.pu-big.is-bad { border-color: var(--ot-danger); }
.pu-swap { min-height: 58px; font-size: 1.3rem; }
.pu-formula { font-size: 1rem; margin: 12px 0 4px; line-height: 1.5; } .pu-formula small { color: var(--ot-text-soft); }
@media (max-width: 560px) { .pu-conv { grid-template-columns: 1fr; } .pu-swap { justify-self: center; min-height: 40px; transform: rotate(90deg); } }
/* Dates */
.pu-det { margin-top: 8px; font-size: .9rem; } .pu-det summary { cursor: pointer; font-weight: 600; } .pu-det div { padding: 2px 0; }
.sp-table tr.pu-dim td { color: var(--ot-text-soft); }
.pu-cd .sp-card { text-align: center; } .pu-cd .sp-card b { font-size: 2rem; }
.pu-cdl { grid-column: 1 / -1; font-weight: 700; margin: 0; font-size: 1.05rem; }
/* Mots de passe */
.pu-pw { display: flex; gap: 8px; align-items: stretch; margin: 14px 0 10px; flex-wrap: wrap; }
.pu-out { flex: 1 1 260px; display: flex; align-items: center; font-family: var(--ot-mono); font-size: 1.45rem; font-weight: 700; padding: 12px 14px; border: 2px solid var(--ot-brand); border-radius: var(--ot-radius-s); background: var(--ot-surface-2); word-break: break-all; min-height: 60px; letter-spacing: .02em; }
.pu-out.is-long { font-size: 1.05rem; }
.pu-pwbtns { display: flex; gap: 6px; } .pu-pwbtns .ot-btn { min-height: 60px; }
.pu-meter { margin: 6px 0 10px; } .pu-mtop { display: flex; justify-content: space-between; gap: 8px; font-size: .9rem; margin-bottom: 4px; }
.pu-bar { height: 10px; border-radius: 999px; background: var(--ot-surface-2); border: 1px solid var(--ot-border); overflow: hidden; }
.pu-bar i { display: block; height: 100%; }
.pu-meter.is-bad .pu-bar i { background: var(--ot-danger); } .pu-meter.is-warn .pu-bar i { background: var(--ot-logo-orange); } .pu-meter.is-mid .pu-bar i { background: var(--ot-logo-blue); } .pu-meter.is-ok .pu-bar i { background: var(--ot-success); }
.pu-list { margin: 8px 0 0; padding-left: 1.6em; display: grid; gap: 4px; } .pu-list li code { font-size: .95rem; word-break: break-all; margin-right: 6px; }
.pu-pwin { display: flex; gap: 6px; } .pu-pwin .ot-input { flex: 1; font-family: var(--ot-mono); }
.pu-warn { margin: 6px 0 0; padding-left: 1.2em; font-size: .88rem; color: var(--ot-danger); }
/* Texte */
.pu-textmain { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) { .pu-textmain { grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); } }
.pu-text { width: 100%; min-height: 380px; resize: vertical; font-size: 1rem; line-height: 1.6; margin-top: 10px; }
.pu-tcards { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.pu-lim { display: grid; grid-template-columns: 130px 1fr auto; gap: 8px; align-items: center; font-size: .82rem; margin: 4px 0; }
.pu-limbar { height: 8px; border-radius: 999px; background: var(--ot-surface-2); overflow: hidden; border: 1px solid var(--ot-border); } .pu-limbar i { display: block; height: 100%; background: var(--ot-success); }
.pu-lim.is-over b { color: var(--ot-danger); } .pu-lim.is-over .pu-limbar i { background: var(--ot-danger); }
/* Listes */
.pu-lists { display: grid; gap: 4px; }
.pu-li { display: flex; justify-content: space-between; gap: 8px; text-align: left; font: inherit; padding: 8px 10px; border: 1px solid var(--ot-border); border-radius: var(--ot-radius-s); background: var(--ot-surface); color: var(--ot-text); cursor: pointer; }
.pu-li.is-on { border-color: var(--ot-brand); background: color-mix(in srgb, var(--ot-brand) 9%, var(--ot-surface)); font-weight: 600; } .pu-li small { color: var(--ot-text-soft); }
.pu-del { color: var(--ot-danger); }
.pu-ltitle { font-size: 1.35rem !important; font-weight: 800; border-color: transparent !important; padding-left: 4px !important; }
.pu-prog { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px; font-size: .88rem; color: var(--ot-text-soft); }
.pu-progbar { flex: 1; height: 8px; border-radius: 999px; background: var(--ot-surface-2); overflow: hidden; } .pu-progbar i { display: block; height: 100%; background: var(--ot-success); transition: width .3s; }
.pu-add { display: flex; gap: 6px; } .pu-add #sp-qty { width: 64px; flex: none; } .pu-add #sp-item { flex: 1; min-width: 0; }
.pu-items { list-style: none; margin: 10px 0; padding: 0; }
.pu-it, .pu-sec { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-bottom: 1px solid var(--ot-border); }
.pu-it input { width: 20px; height: 20px; flex: none; accent-color: var(--ot-success); }
.pu-sec { font-weight: 800; margin-top: 10px; border-bottom: 2px solid var(--ot-text); text-transform: uppercase; font-size: .82rem; letter-spacing: .04em; }
.pu-txt { flex: 1; outline: none; padding: 2px 4px; border-radius: 4px; min-width: 0; } .pu-txt:focus, .pu-q:focus { background: var(--ot-surface-2); }
.pu-q { min-width: 1.2em; font-weight: 700; color: var(--ot-brand); outline: none; text-align: right; } .pu-q:empty::before { content: ""; } .pu-q:not(:empty)::after { content: " ×"; color: var(--ot-text-soft); }
.pu-it.is-done .pu-txt { text-decoration: line-through; color: var(--ot-text-soft); }
.pu-btns { display: flex; gap: 2px; opacity: .45; } .pu-it:hover .pu-btns, .pu-sec:hover .pu-btns, .pu-btns:focus-within { opacity: 1; }
.pu-btns button { border: 0; background: none; cursor: pointer; padding: 2px 6px; color: var(--ot-text-soft); font: inherit; } .pu-btns button:hover { color: var(--ot-text); }
/* Liste imprimée */
#sp-printdoc .pd-checklist { column-gap: 12mm; }
#sp-printdoc .pd-ckgroup { break-inside: avoid; margin: 0 0 8pt; }
#sp-printdoc .pd-ckgroup h3 { font-size: 9.5pt; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 3pt; padding-bottom: 2pt; border-bottom: 1pt solid #4f46e5; color: #333; }
#sp-printdoc .pd-ck { display: flex; align-items: baseline; gap: 6pt; padding: 3pt 0; border-bottom: .4pt dotted #bbb; font-size: 10.5pt; }
#sp-printdoc .pd-ck .pd-box { flex: none; width: 10pt; height: 10pt; min-height: 0; padding: 0; box-sizing: border-box; border: 1pt solid #333; border-radius: 2pt; display: inline-flex; align-items: center; justify-content: center; font-size: 8pt; position: relative; top: 1pt; }
#sp-printdoc .pd-ck.is-done { color: #777; text-decoration: line-through; }
#sp-printdoc .pd-line { flex: 1; border-bottom: .6pt solid #999; height: 10pt; }
/* Partage de dépenses */
.dp-people { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.dp-person { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--ot-border); border-radius: 999px; background: var(--ot-surface); font: inherit; font-size: .9rem; color: var(--ot-text); }
button.dp-person { cursor: pointer; } .dp-person.is-on { background: var(--ot-brand); border-color: var(--ot-brand); color: #fff; }
.dp-person button { border: 0; background: none; cursor: pointer; color: var(--ot-text-soft); font-size: 1rem; padding: 0 2px; line-height: 1; }
.dp-link { border: 0; background: none; color: var(--ot-brand); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }
.dp-inline { font-weight: 400; }
.dp-for { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 6px 0; }
.dp-chk { display: inline-flex; align-items: center; gap: 6px; font-size: .92rem; }
.dp-chk .dp-w { display: none; width: 64px; min-height: 30px; padding: 4px 6px; }
.dp-for.is-parts .dp-w { display: inline-block; }
.dp-pos { color: var(--ot-success); font-weight: 700; } .dp-neg { color: var(--ot-danger); font-weight: 700; }
.dp-h3 { font-size: 1rem; margin: 14px 0 6px; }
.dp-tr { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.dp-tr li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--ot-border); border-radius: var(--ot-radius-s); background: var(--ot-surface-2); }
.dp-amt { font-weight: 800; font-variant-numeric: tabular-nums; margin-right: auto; }
.dp-who { white-space: normal !important; max-width: 220px; font-size: .84rem; }
.sp-table tr.dp-r td { color: var(--ot-text-soft); font-style: italic; }
.dp-qr { margin-top: 10px; text-align: center; } .dp-qr svg { max-width: 100%; height: auto; border: 1px solid var(--ot-border); border-radius: 8px; }
/* Pourcentages */
.pc-nav { margin-bottom: 12px; } .pc-nav .sp-chip { text-decoration: none; }
.pc-grid { display: grid; gap: var(--ot-space); grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); align-items: start; }
.pc-box { scroll-margin-top: 80px; } .pc-box h2 { font-size: 1.08rem; }
.pc-main { background: color-mix(in srgb, var(--ot-brand) 9%, var(--ot-surface)); border: 1px solid color-mix(in srgb, var(--ot-brand) 35%, var(--ot-border)); border-radius: var(--ot-radius-s); padding: 8px 12px; margin-top: 6px; }
.pc-main small { display: block; font-size: .78rem; color: var(--ot-text-soft); font-weight: 600; }
.pc-main b { font-size: 1.55rem; font-variant-numeric: tabular-nums; }
.pc-more { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 3px; font-size: .9rem; }
.pc-more li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dotted var(--ot-border); padding: 2px 0; } .pc-more b { font-variant-numeric: tabular-nums; }
.pc-formula { font-family: var(--ot-mono); font-size: .82rem; color: var(--ot-text-soft); margin: 8px 0 0; word-break: break-word; }
/* Plan de classe */
.pc-room { margin-top: 10px; overflow-x: auto; }
.pc-desk { text-align: center; font-weight: 700; font-size: .9rem; padding: 8px; margin: 8px auto; max-width: 340px; border: 2px dashed var(--ot-border); border-radius: 10px; color: var(--ot-text-soft); }
.pc-grid2 { display: grid; gap: 6px; min-width: 520px; }
.pc-seat { min-height: 46px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 4px; font-size: .82rem; font-weight: 600; line-height: 1.15;
  border: 1px solid var(--ot-border); border-radius: 8px; background: var(--ot-surface-2); cursor: pointer; user-select: none; word-break: break-word; }
.pc-seat.is-on { background: var(--ot-surface); border-color: color-mix(in srgb, var(--ot-brand) 45%, var(--ot-border)); }
.pc-seat.is-front { box-shadow: inset 0 -3px 0 var(--ot-logo-orange); }
.pc-seat.is-pick, .pc-chip.is-pick { outline: 3px solid var(--ot-brand); outline-offset: 1px; }
.pc-pool { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; } .pc-pool small { color: var(--ot-text-soft); font-weight: 600; }
.pc-chip { padding: 5px 10px; border-radius: 999px; border: 1px dashed var(--ot-brand); background: var(--ot-surface); font-size: .85rem; cursor: grab; }
#sp-printdoc .pd-room .pc-grid2 { min-width: 0; gap: 4pt; }
#sp-printdoc .pd-room .pc-seat { min-height: 34pt; font-size: 10pt; background: #fff; border: 1pt solid #555; border-radius: 4pt; color: #000; }
#sp-printdoc .pd-room .pc-seat .ot-muted { color: #bbb; font-weight: 400; }
#sp-printdoc .pd-room .pc-desk { border: 1.5pt dashed #555; color: #333; font-size: 10pt; }
