/* Consultation hors ligne : mêmes cartes, aucune commande de mutation. */
.offline-note { font-size:12px; color:#53604e; }
.offline-date { font-size:18px; margin-block-end:12px; }
.offline-gauge { margin-block-end:16px; }
.offline-check { display:grid; place-items:center; flex:none; inline-size:44px; block-size:44px; font-size:22px; color:#34572b; }
.offline-description { white-space:pre-wrap; overflow-wrap:anywhere; font-size:13px; color:#435347; margin-inline:8px; padding-block-end:6px; }
.offline-footer { display:grid; justify-items:start; gap:12px; margin-block-start:24px; }
.offline-dashboard { padding-block-end:calc(24px + env(safe-area-inset-bottom, 0px)); }
.offline-dashboard:has(#view-switch:checked) .offline-roots > .objective[data-finished=false] { display:none; }
#install-guide > summary { min-block-size:44px; display:flex; align-items:center; font-size:13px; }
#install-guide p { margin-block-start:8px; }
/* Palette locale, sans build ni police externe. Le vert du tableau marque le fait. */
:root { --paper:#f6f5ef; --ink:#182b29; --muted:#64716b; --line:#e1e5da; --lime:#d9ef78; --green:#496447; --peach:#f5ddc9; --white:#fffefa; --day-header-height:160px; }
* { box-sizing:border-box; }
body { margin:0; color:var(--ink); background:var(--paper); font-family:system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-optical-sizing:auto; font-size:15px; line-height:1.55; -webkit-font-smoothing:antialiased; }
button, input, textarea, select { font:inherit; }
button, summary, a { -webkit-tap-highlight-color:transparent; }
button, summary { cursor:pointer; }
a { color:inherit; text-decoration:none; }
svg { display:block; }
h1, h2, h3, p { margin:0; }
button, input, summary, a { touch-action:manipulation; }
:focus-visible { outline:3px solid #668234; outline-offset:3px; }
::selection { background:var(--lime); color:var(--ink); }
[hidden] { display:none !important; }
.shell { width:min(1120px, calc(100% - 64px)); margin-inline:auto; }
.site-header { border-bottom:1px solid var(--line); }
.header-inner { min-height:100px; display:flex; align-items:center; gap:24px; }
.brand { display:flex; align-items:center; gap:12px; font-size:18px; font-weight:800; letter-spacing:-.6px; line-height:1.15; }
.brand-today { display:block; font-size:15px; color:var(--muted); font-weight:600; letter-spacing:0; }
.brand-mark { display:grid; place-items:center; width:42px; height:42px; border-radius:14px; background:var(--ink); color:var(--lime); transform:rotate(-6deg); }
.brand-mark svg, .art-check svg { width:24px; fill:none; stroke:currentColor; stroke-width:3; stroke-linecap:round; stroke-linejoin:round; }
.header-note { margin-left:auto; color:var(--muted); font-size:13px; }
.site-footer { display:flex; justify-content:space-between; gap:24px; padding-block:28px; margin-top:48px; border-top:1px solid var(--line); font-size:12px; color:var(--muted); }
.skip-link { position:absolute; top:-100px; left:20px; z-index:100; padding:12px; background:var(--lime); border-radius:8px; }
.skip-link:focus { top:10px; }
.eyebrow { display:inline-flex; align-items:center; gap:8px; font-size:11px; font-weight:750; letter-spacing:1.5px; text-transform:uppercase; }
.status-dot { display:inline-block; width:7px; height:7px; border-radius:100%; background:var(--green); flex-shrink:0; }
.accent-word { font-family:Georgia, "Times New Roman", serif; font-style:italic; font-weight:400; }
.button { display:inline-flex; justify-content:center; align-items:center; gap:12px; min-height:44px; border:1px solid transparent; border-radius:12px; padding:10px 18px; font-size:13px; font-weight:650; line-height:1.4; white-space:normal; }
.button-dark { color:var(--white); background:var(--ink); }
.button-dark:hover { background:#304b40; }
.button-outline { background:transparent; color:var(--ink); border-color:#a5b394; }
.button-outline:hover, .button-quiet:hover { background:#eaf0df; }
.button-quiet { color:var(--muted); font-weight:500; }
.button-danger { color:#9c3d2c; background:transparent; font-weight:500; }
.button-danger:hover { background:#ffede5; }
input:not([type=hidden]) { width:100%; min-width:0; min-height:48px; border:1px solid #c6cec0; border-radius:10px; background:var(--white); padding:12px 14px; color:var(--ink); }
input::placeholder { color:#697760; opacity:1; }
input:focus { border-color:var(--green); }
label { font-weight:600; font-size:13px; }
.alert { margin-bottom:16px; padding:14px 18px; border-radius:12px; }
.alert-error { border:1px solid #eebbad; color:#9c3d2c; background:#fff0e9; }
.request-error { position:fixed; bottom:max(20px, env(safe-area-inset-bottom)); left:50%; transform:translateX(-50%); z-index:80; padding:14px 18px; width:min(500px, calc(100% - 32px)); border-radius:12px; box-shadow:0 4px 30px #182b2918; background:#fff0e9; color:#9c3d2c; }
/* Connexion conservée. */
.login-grid { display:grid; grid-template-columns:1.2fr 1fr; align-items:center; gap:110px; padding-block:72px 32px; min-height:calc(100vh - 220px); }
.login-intro h1 { margin-block:24px; font-size:clamp(38px, 4.7vw, 62px); line-height:1.08; letter-spacing:-2.7px; font-weight:800; }
.intro-copy { font-size:17px; color:var(--muted); max-width:440px; line-height:1.8; }
.login-card { border:1px solid var(--line); border-radius:26px; padding:40px; background:var(--white); box-shadow:0 14px 60px #182b2905; }
.login-card h2 { font-size:32px; letter-spacing:-1px; font-weight:750; margin:14px 0 10px; }
.login-card > p { font-size:14px; color:var(--muted); }
.login-form { display:grid; gap:12px; margin-top:32px; }
.login-form .button { margin-top:6px; min-height:52px; justify-content:space-between; }
.login-card .login-reassurance { margin-top:24px; display:flex; align-items:center; justify-content:center; gap:8px; font-size:12px; }
.login-card .alert-error { margin:20px 0 0; color:#9c3d2c; }
.login-art { position:relative; margin-top:40px; width:100%; height:210px; }
.art-orbit { position:absolute; width:210px; height:210px; border-radius:100%; background:var(--lime); left:24px; top:0; }
.art-note { position:absolute; top:25px; left:56px; padding:24px; width:280px; border-radius:16px; background:var(--ink); color:var(--white); transform:rotate(-5deg); box-shadow:0 14px 30px #182b2920; }
.art-note .eyebrow { font-size:9px; color:var(--lime); }
.art-note strong { display:block; font-size:22px; line-height:1.3; letter-spacing:-.6px; margin-top:12px; }
.art-progress { height:5px; background:#466054; border-radius:10px; margin-top:20px; overflow:hidden; }
.art-progress span { display:block; width:64%; height:100%; background:var(--lime); }
.art-caption { display:block; margin-top:12px; font-size:10px; color:#c0cbbd; }
.art-check { position:absolute; left:312px; top:0; width:56px; height:56px; display:grid; place-items:center; background:var(--peach); border:5px solid var(--paper); border-radius:50%; transform:rotate(12deg); }
.art-star { position:absolute; left:0; bottom:5px; font-size:64px; color:var(--green); }
/* Grille : bilan compact, actions directement dessous. */
.authenticated { --paper:oklch(97% .003 265); --ink:oklch(24% .008 265); --muted:oklch(46% .012 265); --line:oklch(86% .008 265); --white:oklch(100% 0 none); --green:oklch(48% .12 148); --lime:oklch(80% .15 145); --focus:oklch(49% .16 250); --chrome:var(--paper); --heading-size:clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing:0; }
.authenticated .shell { width:min(680px, calc(100% - 44px)); }
html:has(.authenticated) { scroll-padding-top:calc(var(--day-header-height) + 12px); }
.day-dashboard { padding:0 0 max(32px, env(safe-area-inset-bottom)); }
.day-header { position:sticky; inset-block-start:0; z-index:30; display:grid; gap:.75rem; padding-block:calc(.75rem + env(safe-area-inset-top, 0px)) 1rem; background:var(--chrome); margin-block-end:1.25rem; }
.day-header::after { content:''; position:absolute; inset-inline:0; inset-block-end:-.75rem; block-size:.75rem; background:linear-gradient(var(--chrome), transparent); pointer-events:none; }
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
  .authenticated { --chrome:color-mix(in oklch, var(--paper) 88%, transparent); }
  .day-header, .bottom-toolbar { -webkit-backdrop-filter:blur(20px) saturate(150%); backdrop-filter:blur(20px) saturate(150%); }
}
.gauge-row { display:flex; gap:14px; align-items:center; }
.gauge-row .progress-track { flex:1; }
#progress-percent { min-width:40px; text-align:right; font-size:15px; font-variant-numeric:tabular-nums; }
.points-row { display:flex; align-items:center; gap:10px; }
.point-overflow { color:#58664e; font-size:12px; flex-shrink:0; }
.page-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.page-heading h1 { font-size:var(--heading-size); letter-spacing:-.035em; font-weight:700; line-height:1.15; }
.day-options { position:relative; flex-shrink:0; }
.day-options > summary { display:grid; place-items:center; width:44px; height:44px; border-radius:10px; list-style:none; font-size:22px; }
.day-options > summary::-webkit-details-marker { display:none; }
@media (hover:hover) and (pointer:fine) { .day-options > summary:hover { background:color-mix(in oklch, var(--ink) 6%, transparent); } }
.day-menu { position:absolute; inset-inline-end:0; inset-block-start:48px; z-index:25; inline-size:min(290px, calc(100vw - 44px)); background:var(--white); border:1px solid var(--line); padding:1rem; border-radius:1.25rem; box-shadow:0 12px 40px color-mix(in oklch, var(--ink) 12%, transparent); display:grid; gap:.625rem; transform-origin:calc(100% - 22px) 0; }
.day-menu time, .day-menu p { font-size:.8125rem; color:var(--muted); }
.day-menu .button { width:100%; justify-content:flex-start; }
.point-grid { display:grid; grid-template-columns:repeat(12, minmax(0, 1fr)); gap:5px; width:100%; max-width:271px; }
.point-grid:empty { display:none; }
.point { display:grid; place-items:center; width:100%; aspect-ratio:1; border:1px solid #b9c5b2; border-radius:4px; background:#e8ece3; }
.point-done { background:var(--lime); border-color:#539b4b; box-shadow:0 0 7px #65af4b24, inset 0 1px 0 #b1e2a9; }
.point-done::after { content:'✓'; font-size:10px; font-weight:bold; color:#183d1d; }
.point.just-lit { animation:light-up .3s ease-out; }
@keyframes light-up { 0% { transform:scale(.92); } 50% { transform:scale(1.12); box-shadow:0 0 9px #65af4b45; } 100% { transform:scale(1); } }
.progress-track { width:100%; height:7px; border-radius:4px; background:#e0e7da; overflow:hidden; }
.progress-fill { display:block; height:100%; border-radius:4px; background:var(--green); transition:width .28s ease; }
.carry-banner { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; border:1px solid #dbdeca; border-radius:12px; padding:10px 12px; margin-bottom:16px; background:#f1f1e3; font-size:13px; }
.carry-banner .button { padding-inline:12px; font-size:12px; }
/* Couleurs de catégorie : le vert des coches reste un état, pas une catégorie. */
[data-color=sage] { --card:#dce8db; --step:#edf4ec; --accent:#587354; }
[data-color=blue] { --card:#dce7ef; --step:#eef4f8; --accent:#4d6f89; }
[data-color=lavender] { --card:#e5def0; --step:#f3eff8; --accent:#76608f; }
[data-color=rose] { --card:#eedde3; --step:#f8eff2; --accent:#946477; }
[data-color=sand] { --card:#ebe3d1; --step:#f6f2e7; --accent:#887343; }
[data-color=peach] { --card:#f0dfd2; --step:#faf0e8; --accent:#976c4f; }
[data-color=slate] { --card:#dfe4e9; --step:#f0f3f6; --accent:#617180; }
[data-color=mint] { --card:#d6e9e4; --step:#eaf5f1; --accent:#47796c; }
.view-toggle { position:relative; margin-left:auto; flex-shrink:0; }
.view-toggle input[type=checkbox] { position:absolute; inset:0; opacity:0; width:100%; min-height:44px; margin:0; cursor:pointer; z-index:1; }
.view-toggle label { display:flex; align-items:center; min-block-size:44px; padding:4px; gap:2px; border-radius:12px; background:color-mix(in oklch, var(--ink) 8%, var(--paper)); font-size:.75rem; }
.view-toggle label span { padding:7px 9px; border-radius:8px; color:var(--muted); }
.view-toggle input:not(:checked) + label span:first-child, .view-toggle input:checked + label span:last-child { background:var(--white); color:var(--ink); box-shadow:0 1px 4px #182b2910; }
.view-toggle input:focus-visible + label { outline:3px solid #668234; outline-offset:2px; }
.day-dashboard:not(:has(#view-switch:checked)) .objective[data-pending=false],
.day-dashboard:not(:has(#view-switch:checked)) .empty-done,
.day-dashboard:has(#view-switch:checked) #active-list > .objective[data-finished=false],
.day-dashboard:has(#view-switch:checked) .objective-child[data-finished=false],
.day-dashboard:has(#view-switch:checked) .empty-todo { display:none; }
.objectives-list, .children-list { list-style:none; padding:0; margin:0; display:grid; gap:0; }
.objectives-list { gap:10px; }
.objective { position:relative; background:var(--card); border:1px solid color-mix(in oklch, var(--ink) 9%, transparent); border-inline-start:3px solid var(--accent); border-radius:1rem; padding:8px; }
.authenticated :focus-visible { outline-color:var(--focus); }
.authenticated .view-toggle input:focus-visible + label, .authenticated .sheet-palette label:has(:focus-visible) { outline-color:var(--focus); }
.task-balance { flex-shrink:0; font-size:.75rem; font-weight:600; font-variant-numeric:tabular-nums; color:var(--muted); letter-spacing:.015em; }
.task-body > summary { position:absolute; z-index:3; right:6px; top:8px; display:grid; place-items:center; width:44px; height:44px; list-style:none; border-radius:8px; color:var(--ink); }
.task-body > summary::-webkit-details-marker { display:none; }
.task-body > summary svg { inline-size:1em; block-size:1em; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.task-body[open] > summary svg { rotate:90deg; }
@media (hover:hover) and (pointer:fine) { .task-body > summary:hover { background:color-mix(in oklch, var(--white) 40%, transparent); } }
.objective.is-swiped > .task-body > summary, .objective.is-swiping > .task-body > summary { visibility:hidden; }
.objective-row { position:relative; z-index:2; display:flex; align-items:center; gap:4px; min-inline-size:0; padding-inline-end:44px; background:inherit; touch-action:pan-y pinch-zoom; }
@media (prefers-reduced-motion:no-preference) { .task-body > summary svg { transition:rotate .16s ease-out; } }
.objective.is-swiped > .objective-row { transform:translateX(-96px); }
.objective.is-swiping > .objective-row { will-change:transform; }
.objective.is-swiped, .objective.is-swiping { overflow:clip; }
.swipe-delete { position:absolute; top:8px; right:6px; z-index:1; }
.swipe-action { width:88px; min-height:44px; border:0; border-radius:8px; background:#9c3d2c; color:#fff; font-size:12px; align-items:center; justify-content:center; visibility:hidden; pointer-events:none; }
.objective.is-swiped > .swipe-delete .swipe-action { visibility:visible; pointer-events:auto; }
.objective.is-swiped > .objective-editor > summary, .objective.is-swiping > .objective-editor > summary { visibility:hidden; }
.objective-title { display:flex; align-items:center; flex:1; min-inline-size:0; min-block-size:44px; padding-block:3px; font-size:1rem; font-weight:600; line-height:1.35; letter-spacing:-.01em; overflow-wrap:anywhere; color:var(--ink); text-decoration:none; }
.objective-title:active { opacity:.65; }
.objective { padding-block:4px; }
.task-body > summary { inset-block-start:4px; inset-inline-end:4px; }
.swipe-delete { inset-block-start:4px; }
.task-footer { display:flex; justify-content:flex-end; }
.step-add { display:grid; place-items:center; inline-size:44px; block-size:44px; color:var(--accent); border-radius:10px; }
.step-add svg, .add-button svg { inline-size:1.2em; block-size:1.2em; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; }
.authenticated :is(button, summary, .step-add, .add-button, .week-nav a):active, .view-toggle:has(input:active) label { opacity:.65; }
@media (prefers-reduced-motion:no-preference) { .step-add:active, .add-button:active, .sheet-close:active { scale:.97; } }
.week-nav { display:flex; gap:2px; overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x mandatory; scrollbar-width:none; }
.week-nav a { flex:1 0 44px; scroll-snap-align:start; }
.week-nav a { display:grid; place-content:center; gap:3px; min-block-size:52px; border-radius:12px; text-align:center; font-variant-numeric:tabular-nums; }
.week-nav a span { font-size:.6875rem; color:var(--muted); letter-spacing:.02em; }
.week-nav a strong { font-size:1rem; font-weight:600; }
.week-nav a[aria-current] { background:var(--ink); color:var(--white); }
.week-nav a[aria-current] span { color:var(--white); }
.week-nav a:active { opacity:.7; }
.bottom-toolbar { position:fixed; z-index:35; inset-block-end:0; inset-inline:0; margin-inline:auto; inline-size:min(680px, 100%); display:flex; align-items:center; gap:.75rem; padding-inline:1.25rem; padding-block:.5rem calc(.5rem + env(safe-area-inset-bottom, 0px)); border-block-start:1px solid color-mix(in oklch, var(--white) 85%, transparent); background:var(--chrome); box-shadow:0 -4px 24px color-mix(in oklch, var(--ink) 4%, transparent); }
.bottom-toolbar > span { font-size:.8125rem; color:var(--muted); margin-inline-end:auto; }
.bottom-toolbar .add-button { display:grid; place-items:center; border-radius:50%; inline-size:44px; block-size:44px; background:var(--ink); color:var(--white); }
.day-dashboard { padding-block-end:calc(88px + env(safe-area-inset-bottom, 0px)); }
html { scrollbar-gutter:stable; }
html:has(dialog:modal) { overflow:hidden; }
.task-sheet { --sheet-space:1.25rem; inline-size:min(480px, calc(100% - 32px)); max-inline-size:none; max-block-size:90dvh; border:1px solid var(--line); border-radius:1.5rem; padding:0; background:var(--white); color:var(--ink); overflow:clip; box-shadow:0 24px 80px color-mix(in oklch, var(--ink) 22%, transparent); opacity:0; }
.task-sheet[open] { display:flex; flex-direction:column; opacity:1; }
.task-sheet::backdrop { background:color-mix(in oklch, var(--ink) 32%, transparent); opacity:0; }
.task-sheet[open]::backdrop { opacity:1; }
.sheet-heading { display:flex; align-items:center; gap:12px; padding-inline:var(--sheet-space); padding-block:8px; border-block-end:1px solid var(--line); flex:none; }
.sheet-heading h2 { font-size:1.1875rem; line-height:1.25; letter-spacing:-.02em; font-weight:650; margin-inline-end:auto; }
.sheet-close { display:grid; place-items:center; inline-size:44px; block-size:44px; flex:none; border:0; border-radius:50%; background:transparent; color:var(--muted); font-size:26px; }
.sheet-form { display:flex; flex-direction:column; min-block-size:0; }
.sheet-fields { display:grid; gap:8px; padding:var(--sheet-space); overflow-y:auto; overscroll-behavior:contain; }
.sheet-fields label { font-size:12px; }
.sheet-fields label span { font-weight:400; color:var(--muted); }
.sheet-fields :is(input:not([type=radio]), textarea, select) { inline-size:100%; min-inline-size:0; font-size:1rem; border:1px solid var(--line); border-radius:10px; padding:.75rem; background:var(--paper); color:var(--ink); }
.sheet-fields input::placeholder, .sheet-fields textarea::placeholder { color:var(--muted); opacity:1; }
.sheet-fields textarea { min-block-size:3lh; max-block-size:8lh; field-sizing:content; resize:vertical; }
.sheet-fields input:user-invalid { border-color:#9c3d2c; }
.sheet-note { font-size:12px; color:#53604e; }
.sheet-fields fieldset { border:0; padding:0; margin:4px 0 0; }
.sheet-fields legend { font-size:12px; font-weight:600; margin-block-end:8px; }
.sheet-palette { display:grid; grid-template-columns:repeat(4, minmax(44px, 1fr)); gap:8px; }
.sheet-palette label { position:relative; display:grid; place-items:center; min-block-size:44px; border-radius:10px; cursor:pointer; }
.sheet-palette input[type=radio] { position:absolute; inset:0; opacity:0; inline-size:100%; min-block-size:44px; margin:0; cursor:pointer; }
.sheet-palette span { display:grid; place-items:center; inline-size:30px; block-size:30px; border-radius:50%; background:var(--card); border:1px solid var(--accent); }
.sheet-palette label:has(:checked) { outline:2px solid var(--ink); outline-offset:-2px; }
.sheet-palette label:has(:checked) span::after { content:'✓'; color:var(--ink); }
.sheet-palette label:has(:focus-visible) { outline:3px solid #668234; outline-offset:1px; }
.sheet-actions { display:flex; justify-content:flex-end; gap:8px; padding:12px var(--sheet-space); border-block-start:1px solid var(--line); flex:none; }
.sheet-delete { flex:none; padding-inline:var(--sheet-space); padding-block-end:8px; }
.js-ready .no-js-only { display:none; }
@media (hover:hover) and (pointer:fine) { .objective-title:hover { color:var(--accent); } .step-add:hover, .sheet-close:hover { background:color-mix(in oklch, var(--ink) 5%, transparent); } }
@media (max-width:600px) {
  .task-sheet { position:fixed; inset-block-start:auto; inset-block-end:0; margin:0 auto; inline-size:100%; max-block-size:92dvh; border-end-start-radius:0; border-end-end-radius:0; padding-block-end:env(safe-area-inset-bottom, 0px); }
}
@media (prefers-reduced-motion:no-preference) {
  .task-sheet { translate:0 .75rem; transition:opacity .22s ease-out, translate .22s cubic-bezier(.2, .8, .2, 1), display .22s allow-discrete, overlay .22s allow-discrete; }
  .task-sheet[open] { translate:0 0; }
  .task-sheet::backdrop { transition:opacity .22s ease-out, display .22s allow-discrete, overlay .22s allow-discrete; }
  @starting-style { .task-sheet[open] { opacity:0; translate:0 .75rem; } .task-sheet[open]::backdrop { opacity:0; } }
}
.toggle-form { flex-shrink:0; }
.check-button { display:grid; place-items:center; width:46px; height:46px; background:transparent; border:0; padding:0; flex-shrink:0; }
.check-shape { inline-size:26px; block-size:26px; border:1.5px solid color-mix(in oklch, var(--ink) 48%, var(--white)); border-radius:50%; display:grid; place-items:center; }
@media (prefers-reduced-motion:no-preference) { .check-button:active .check-shape { transform:scale(.96); } }
.check-shape svg { width:15px; fill:none; stroke:#183d1d; stroke-width:2.5; stroke-linecap:round; stroke-linejoin:round; opacity:0; }
.check-button[aria-checked=true] .check-shape { border-color:#529749; background:var(--lime); }
.check-button[aria-checked=true] svg { opacity:1; }
.objective-next > .objective-row .check-shape { border-color:#40593a; }
.objective-done > .objective-row .objective-title { color:#53634b; text-decoration:line-through; }
.children-list { margin:6px 0 0 8px; border:0; padding-left:0; gap:4px; }
.children-list:empty { display:none; }
.objective-child { background:var(--step); padding:0 4px; border:1px solid #25332b0c; border-radius:10px; }
.objective-child > .objective-row { background:var(--step); }
.objective-child > .swipe-delete { top:0; right:4px; }
.objective-child .objective-title { font-size:1rem; line-height:1.35; letter-spacing:0; font-weight:400; }
.objective-child.objective-next .objective-title { font-weight:600; }
.objective-editor > summary { list-style:none; position:absolute; z-index:3; right:0; top:14px; width:44px; height:44px; display:grid; place-items:center; color:#5c7153; border-radius:8px; }
.objective-editor > summary::-webkit-details-marker { display:none; }
.objective-editor > summary:hover, .objective-editor[open] > summary { background:#eaf0df; color:var(--ink); }
.objective-child .objective-editor > summary { top:0; right:0; }
.editor-content { display:grid; gap:8px; margin:4px 0; padding:10px; border:1px solid #25332b18; border-radius:10px; background:var(--step); }
.editor-field { display:flex; flex-wrap:wrap; gap:8px; }
.editor-field > * { min-width:0; }
.editor-field select { flex:1; }
select { width:100%; min-height:44px; padding:8px; border-radius:8px; border:1px solid #aebc9f; background:var(--white); }
.transfer-form label { display:block; margin-bottom:8px; }
.empty-state { padding:20px 0; font-size:16px; color:#53664b; }
.add-button { width:46px; height:46px; border:0; padding:0; border-radius:50%; background:#e7efdf; color:#34572b; font-size:24px; flex-shrink:0; }
.drag-handle { width:44px; height:44px; flex-shrink:0; border:0; padding:11px 15px; align-items:center; justify-content:center; color:#76866d; background:transparent; border-radius:8px; cursor:grab; touch-action:none; }
@media (hover:hover) and (pointer:fine) { .drag-handle:hover { color:var(--ink); background:color-mix(in oklch, var(--ink) 6%, transparent); } }
.drag-handle svg { width:12px; height:20px; fill:none; stroke:currentColor; stroke-width:2.5; stroke-linecap:round; }
.drag-chosen { outline:1px solid #94ad7f; }
.drag-ghost { opacity:.3; }
.drag-fallback { box-shadow:0 8px 24px #273a2225; background:var(--white); border-radius:12px; }
.is-dragging-steps .children-list:empty { display:block; min-height:48px; margin-top:8px; padding:8px; border:1px dashed #9baf89; border-radius:8px; }
.is-dragging-steps .children-list:empty::before { content:'Dépose une étape'; color:#556b47; font-size:12px; }
.js-only { display:none; }
.js-ready .js-only { display:inline-flex; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.saving-indicator { display:none; position:fixed; bottom:max(20px, env(safe-area-inset-bottom)); left:50%; transform:translateX(-50%); padding:8px 14px; background:var(--ink); color:var(--white); border-radius:20px; font-size:12px; z-index:30; }
.is-saving .saving-indicator { display:block; }
.is-saving #day button, .is-saving #sheet-save { pointer-events:none; opacity:.65; cursor:wait; }
button:disabled { opacity:.4; cursor:default; }
/* Célébration volontaire ou vraie transition à 100 %. */
.fireworks-layer { position:fixed; inset:0; background:#0c1928dc; pointer-events:none; z-index:60; overflow:hidden; }
.fireworks-layer canvas { width:100%; height:100%; position:absolute; inset:0; }
.fireworks-message { position:absolute; top:48%; left:50%; transform:translate(-50%, -50%); width:min(650px, calc(100% - 48px)); text-align:center; color:#fff8e8; text-shadow:0 2px 30px #000; }
.fireworks-message strong { display:block; font-family:Georgia, serif; font-style:italic; font-size:clamp(42px, 8vw, 100px); line-height:1.15; margin:14px 0; }
.fireworks-message > span { font-size:13px; color:#ebdbc0; letter-spacing:.7px; }
#stop-fireworks { position:absolute; top:24px; right:24px; pointer-events:auto; border-color:#ffffff60; color:white; background:#16262b; }
.motion-celebration { position:fixed; top:20px; left:50%; transform:translateX(-50%); z-index:60; display:flex; align-items:center; gap:16px; width:min(560px, calc(100% - 32px)); padding:18px; border-radius:16px; background:var(--lime); color:var(--ink); box-shadow:0 6px 30px #182b2920; font-size:13px; }
@media (max-width:950px) { .login-grid { gap:40px; } }
@media (max-width:720px) {
  .guest .shell { width:calc(100% - 32px); }
  .header-inner { min-height:80px; gap:12px; justify-content:space-between; }
  .header-note { display:none; }
  input:not([type=hidden]), select { font-size:16px; }
  .brand { font-size:15px; gap:8px; }
  .brand-mark { width:34px; height:34px; border-radius:10px; }
  .brand-today { font-size:12px; }
  .site-footer { margin-top:28px; }
  .site-footer span:last-child { display:none; }
  .login-grid { grid-template-columns:1fr; gap:32px; padding-top:36px; min-height:0; }
  .login-intro h1 { font-size:42px; letter-spacing:-1.8px; margin-block:18px; }
  .intro-copy { font-size:15px; }
  .login-art { display:none; }
  .login-card { padding:28px; }
}
@media (max-width:350px) {
  .authenticated .shell { width:calc(100% - 32px); }
  .point-grid { gap:4px; }
  .objective { padding-inline:5px; }
  .objective-row { gap:2px; }
  .objective-title { font-size:16px; }
  .page-heading { gap:4px; }
  .page-heading h1 { font-size:23px; }
  .view-toggle label span { padding-inline:6px; }
  .editor-field .button { width:100%; }
  .fireworks-message > span { font-size:11px; }
  #stop-fireworks { top:16px; right:16px; font-size:11px; }
}
@media (prefers-reduced-transparency:reduce), (prefers-contrast:more) {
  .authenticated { --chrome:var(--paper); }
  .day-header, .bottom-toolbar { -webkit-backdrop-filter:none; backdrop-filter:none; }
}
@media (prefers-contrast:more) {
  .authenticated { --muted:var(--ink); --line:var(--ink); }
  .objective, .check-shape, .view-toggle label { border:1px solid var(--ink); }
  .objective { border-inline-start:3px solid var(--accent); }
  .day-header { border-block-end:1px solid var(--ink); }
  .bottom-toolbar { border-block-start-color:var(--ink); }
}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation:none !important; transition:none !important; }
  .fireworks-layer { display:none; }
}
