.sc{color:#19243b;background:white;border:1px solid #e8ebf2;border-radius:24px;padding:24px;margin:24px 0}.sc button{min-height:44px;cursor:pointer;border:1px solid #dce1ee;border-radius:12px;background:white;color:#304e96;padding:8px 12px;font:inherit}.sc button:focus-visible,.sc input:focus-visible,.sc-track:focus-visible{outline:3px solid #ac701c;outline-offset:3px}.sc-nav,.sc-dates,.sc-modes,.sc-stats{display:flex;align-items:center;gap:8px}.sc-nav{justify-content:space-between}.sc-nav h2{margin:0}.sc-modes{background:#f0f2f8;padding:3px;border-radius:14px}.sc-modes button{border:0;background:transparent}.sc-modes [aria-pressed=true]{background:white;box-shadow:0 1px 4px #19243b15}.sc-dates{margin:22px 0;flex-wrap:wrap}.sc-dates input{min-width:0;max-width:170px;border:0;background:transparent;color:inherit;font:inherit}.sc-stats{justify-content:space-between;padding:10px 0 28px}.sc-stats strong,.sc-stats span{display:block}.sc-stats strong{font-size:24px;letter-spacing:-.5px}.sc-stats span{font-size:12px;color:#647087;margin-top:4px}.sc-axis{display:flex;justify-content:space-between;font-size:12px;color:#647087;margin-bottom:12px}.sc-track{position:relative;height:80px;border-radius:12px;background:repeating-linear-gradient(90deg,#f2f4f9 0%,#f2f4f9 calc(25% - 1px),#dce1ee 25%);cursor:crosshair}.sc .sc-block{position:absolute;top:16px;height:48px;min-height:0;padding:0;border:0;border-radius:7px;background:#304e96;min-width:0}.sc .sc-nap{background:#8d7fba}.sc .sc-ongoing{background:#304e96;outline:2px dashed #304e96;outline-offset:3px;opacity:.7}.sc-wake{position:absolute;top:10px;height:60px;min-width:3px;background:#bd7629;pointer-events:none}.sc-forecast{position:absolute;top:16px;height:48px;box-sizing:border-box;border:2px dashed #304e96;border-radius:7px;background:#304e9610;pointer-events:none}.sc-legend,.sc-hint{font-size:12px;color:#647087;line-height:1.5}.sc-actions{margin-top:20px}.sc-actions button{background:#304e96;color:white;border:0;width:100%}.sc-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;padding-left:27px;position:relative}.sc-week .sc-column>button{font-size:11px;padding:2px;width:100%;border:0}.sc-week .sc-axis{position:absolute;left:0;top:50px;height:360px;flex-direction:column;margin:0}.sc-week .sc-track{height:360px;border-radius:6px;background:repeating-linear-gradient(0deg,#f2f4f9 0%,#f2f4f9 calc(25% - 1px),#dce1ee 25%)}.sc-week .sc-block,.sc-week .sc-forecast{left:3px;width:calc(100% - 6px);border-radius:4px}.sc-week .sc-wake{left:0;width:100%;min-height:3px}.sc dialog{max-width:440px;width:calc(100% - 32px);box-sizing:border-box;border:0;border-radius:24px;padding:24px;color:#19243b;max-height:90dvh;overflow:auto}.sc dialog::backdrop{background:#19243b70}.sc dialog label{display:block;margin:14px 0}.sc dialog input:not([type=checkbox]),.sc dialog select{display:block;width:100%;box-sizing:border-box;min-height:44px;padding:10px;border:1px solid #dce1ee;border-radius:10px;font:inherit}.sc dialog button{margin:5px}.sc .sc-delete{color:#a12a35}.sc-canvas{touch-action:pan-y}@media(max-width:480px){.sc{padding:16px;border-radius:20px}.sc-stats strong{font-size:21px}.sc-nav h2{font-size:24px}.sc-dates{gap:4px}.sc-dates button{padding:6px 9px}.sc dialog{margin:auto 0 0;width:100%;max-width:none;border-radius:24px 24px 0 0}}
.sc-advanced{margin:20px 0}.sc-advanced>summary{cursor:pointer;padding:16px;color:#304e96}.journal-dashboard-ready main>h1,.journal-dashboard-ready main>.lead{display:none}.sc-week .sc-column>button{height:48px;line-height:1.3}.sc-week .sc-axis{top:48px}.sc [role=status]:empty{display:none}
/* Rythme's estimated windows: a hatched lavender band tagged with its hours, the next one ringed; a past one fades. */
.sc-forecast{top:16px;height:48px;border:2px dashed #7773a8;background:repeating-linear-gradient(135deg,#7773a82e 0 6px,#7773a812 6px 12px)}.sc-forecast.is-next{box-shadow:0 0 0 4px #7773a821}.sc-forecast.is-later{opacity:.7}.sc-forecast.is-past{border-color:#9aa3b5;background:none;opacity:.6}
.sc-forecast-tag{position:absolute;top:1px;font-size:11px;line-height:14px;font-weight:650;color:#4f4a8a;white-space:nowrap;background:#ffffffe6;padding:0 4px;border-radius:6px;pointer-events:none;font-variant-numeric:tabular-nums}.sc-forecast-tag.sc-centred{transform:translateX(-50%)}.sc-forecast-tag.is-past{color:#647087}
.sc-now{position:absolute;top:6px;bottom:6px;width:2px;margin-left:-1px;background:#d56e58;pointer-events:none}.sc-now::before{content:"";position:absolute;top:-3px;left:-3px;width:8px;height:8px;border-radius:50%;background:#d56e58}.sc-week .sc-now{left:0;right:0;width:auto;height:2px;bottom:auto;margin:-1px 0 0}.sc-week .sc-now::before{top:-3px;left:-2px}
.sc-next{margin-top:10px}.sc-next .sc-hint{display:block}
/* Rythme day view: a row of its own for the window tags, above the sleeps and the « now » line, so nothing overlaps them. */
.sc-premium .sc-canvas:not(.sc-week) .sc-track{height:100px}.sc-premium .sc-canvas:not(.sc-week) .sc-block,.sc-premium .sc-canvas:not(.sc-week) .sc-forecast{top:34px;height:52px}.sc-premium .sc-canvas:not(.sc-week) .sc-wake{top:28px;height:64px}.sc-premium .sc-canvas:not(.sc-week) .sc-now{top:26px;bottom:6px}.sc-forecast-tag{top:6px}
/* Estimated windows are touchable (13 October 2026): the band keeps its look, with a larger touch area; the list under the track says each window in words with « Modifier ». */
.sc button.sc-forecast{position:absolute;min-height:0;min-width:12px;padding:0;border-radius:7px;color:transparent;pointer-events:auto;cursor:pointer;border:2px dashed #7773a8;background:repeating-linear-gradient(135deg,#7773a82e 0 6px,#7773a812 6px 12px)}
.sc button.sc-forecast.is-past{border-color:#9aa3b5;background:none}
.sc button.sc-forecast::after{content:'';position:absolute;inset:-12px -8px}
.sc-forecast-list{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:8px}
.sc-forecast-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 8px 8px 14px;border-radius:14px;background:#f4f3fa;border:1.5px dashed #b8b4d6}
.sc-forecast-list li.is-past{background:#f6f7f9;border-color:#d3d8e2}
.sc-forecast-list li > span{min-width:0}.sc-forecast-list .sc-time{white-space:nowrap;font-variant-numeric:tabular-nums;color:#4f4a8a;font-weight:600}.sc-forecast-list small{display:block;font-size:12px;color:#647087;margin-top:2px}
.sc-forecast-list button{flex:none}
.sc .sc-primary{background:#304e96;color:#fff;border:0}
/* Night wakings (14 October 2026): a marker, or an amber band for the time awake once the child fell back asleep; both open the waking's sheet. */
.sc button.sc-wake,.sc button.sc-awake{position:absolute;min-height:0;min-width:4px;padding:0;border:0;border-radius:3px;cursor:pointer;pointer-events:auto}
.sc button.sc-wake{background:#bd7629}
.sc button.sc-awake{background:#E2A45F;box-shadow:inset 0 0 0 2px #bd7629}
.sc button.sc-wake::after,.sc button.sc-awake::after{content:'';position:absolute;inset:-6px -10px}
.sc-premium .sc-canvas:not(.sc-week) .sc-awake{top:28px;height:64px}
.sc-canvas:not(.sc-week) .sc-awake{top:10px;height:60px}
.sc-week .sc-awake{left:0;width:100%}
.sc-actions{display:grid;gap:10px}
.sc .sc-actions .sc-wake-add{background:white;color:#304e96;border:1px solid #dce1ee}
.sc-awake-now{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:12px 14px;margin:0 0 14px;border-radius:16px;background:#fdf3e4;border:1px solid #efcf9f;color:#19243b}
.sc-awake-now span{flex:1 1 100%;font-weight:600}
