/* Timer OBS — mise en page de /timer.html (complète temps/tm-app.css) */
.obs-main { max-width: 1160px; }
.obs-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 960px) { .obs-grid { grid-template-columns: 1.15fr 1fr; align-items: start; } }
.obs-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.obs-card h2 { font-size: 17px; margin: 2px 0 10px; font-weight: 900; display: flex; align-items: center; gap: 8px; }
.obs-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }
@media (min-width: 560px) { .obs-modes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.obs-modes button, .obs-styles button { border: 1px solid var(--line); background: #faf8ff; border-radius: 12px; padding: 9px 8px; font-weight: 800; font-size: 13px; color: var(--mute); }
.obs-modes button.on, .obs-styles button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.obs-stage { position: relative; height: 250px; border-radius: 18px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 30% 20%, rgba(124, 58, 237, .35), transparent 60%), repeating-conic-gradient(#232036 0 25%, #1b1830 0 50%) 0 0 / 28px 28px; }
#obsPreview { transform-origin: center; }
@media (min-width: 960px) { .obs-stage { height: 300px; } }
.obs-lock { font-size: 11px; }
.obs-pill { display: inline-block; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: var(--amber); background: #fff7e6; border: 1px solid #fde3b0; border-radius: 99px; padding: 2px 8px; }
.obs-p { font-size: 13.5px; color: var(--mute); line-height: 1.55; margin: 0 0 10px; }
.obs-p b { color: var(--ink); }
.obs-wide { width: 100%; max-width: none; font-size: 16px; }
.obs-static { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 8px; }
.obs-static summary { cursor: pointer; font-weight: 800; font-size: 13px; color: var(--mute); padding: 4px 0; }
.obs-url { display: flex; gap: 6px; }
.obs-url input { flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 13px; background: #faf8ff; color: var(--mute); }
.obs-remote { margin: 12px 0 4px; }
#obsRemote:not(.hidden) { display: flex; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
#obsRemote p, #obsRemoteLock p { margin: 4px 0; font-size: 13px; color: var(--mute); line-height: 1.5; }
#obsQr { flex: none; background: #fff; padding: 6px; border-radius: 10px; border: 1px solid var(--line); }
#obsQr img, #obsQr canvas { display: block; }
#obsRemoteLock { border: 1px dashed #fde3b0; background: #fffbf2; border-radius: 16px; padding: 12px; }
.obs-opts { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--mute); }
.obs-opts select { border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; background: #fff; font-weight: 700; }
.obs-note { font-size: 12px; color: var(--dim); margin: 10px 0 0; }
.obs-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--dim); margin-right: 6px; vertical-align: 1px; }
.obs-dot.ok { background: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, .2); }
.obs-dot.err { background: var(--red); }
.obs-two { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
@media (min-width: 560px) { .obs-two { grid-template-columns: 1fr 1fr; } }
.obs-lbl { font-size: 12px; font-weight: 800; color: var(--mute); margin: 14px 0 6px; }
.obs-styles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.obs-colors { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.obs-colors button { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; background: var(--sw); box-shadow: 0 0 0 1px var(--line); }
.obs-colors button.on { box-shadow: 0 0 0 2px var(--ink); }
.obs-pick { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px var(--line); background: conic-gradient(red, yellow, lime, aqua, blue, magenta, red); position: relative; }
.obs-pick input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.obs-step { display: flex; gap: 6px; margin-bottom: 6px; }
.obs-step button:first-child { flex: 1; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 9px 12px; min-width: 0; display: flex; justify-content: space-between; gap: 8px; }
.obs-step.on button:first-child { border-color: var(--v); background: #f5f0ff; }
.obs-step b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.obs-step small { color: var(--dim); font-weight: 800; font-variant-numeric: tabular-nums; }
.obs-step .x { border: 1px solid var(--line); background: #fff; border-radius: 12px; width: 40px; color: var(--dim); }
.obs-seqadd { display: flex; gap: 6px; align-items: center; margin-top: 8px; }
.obs-seqadd input { min-width: 0; border: 1.5px solid var(--line); border-radius: 12px; padding: 9px 10px; font-size: 14px; }
.obs-seqadd input:first-child { flex: 1; }
.obs-seqadd input[type=number] { width: 70px; }
.obs-seqadd span { font-size: 13px; color: var(--mute); font-weight: 700; }
.obs-check { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--mute); }
.obs-check input { width: 18px; height: 18px; accent-color: var(--v); }
.tm-content code { background: #f1ebff; border-radius: 6px; padding: 1px 6px; font-size: 13px; }

/* champs selon le mode */
body[data-obs-mode="to"] .obs-if-count, body[data-obs-mode="up"] .obs-if-count { display: none !important; }
body:not([data-obs-mode="to"]) .obs-if-to { display: none !important; }
body[data-obs-mode="up"] .obs-no-up { display: none !important; }
body[data-obs-mode="sub"] .obs-add { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.obs-if-to { margin-top: 4px; }
