/* Confirmation panels rising from the bottom, styled like the notifications panel on a phone. */
.sg-sheet-layer{position:fixed;inset:0;z-index:2147482000;display:flex;align-items:flex-end;justify-content:center;pointer-events:none}
.sg-sheet-layer.is-modal{pointer-events:auto}
/* The modal panel is a native dialog in the top layer: it covers the whole screen without the browser's own frame.
   « clip », not only « hidden »: a hidden overflow can still be scrolled by the browser, and opening the dialog
   scrolled it towards the panel waiting under the screen, which then showed at the top first (Haize, 2026-10-18). */
dialog.sg-sheet-layer{box-sizing:border-box;width:auto;height:auto;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;color:inherit;overflow:hidden;overflow:clip}
dialog.sg-sheet-layer:not([open]){display:none}
dialog.sg-sheet-layer::backdrop{background:transparent}
.sg-sheet-backdrop{position:absolute;inset:0;background:#0d0b1299;opacity:0;transition:opacity 200ms ease}
.sg-sheet-layer.is-open .sg-sheet-backdrop{opacity:1}
html[data-theme="light"] .sg-sheet-backdrop{background:#24232a59}
.sg-sheet{position:relative;box-sizing:border-box;display:flex;flex-direction:column;width:min(560px,100%);max-height:min(86dvh,720px);margin:0;padding:22px max(20px,env(safe-area-inset-right,0px)) calc(18px + env(safe-area-inset-bottom,0px)) max(20px,env(safe-area-inset-left,0px));border:1px solid var(--sg-line,#32323b);border-bottom:0;border-radius:22px 22px 0 0;background:var(--sg-surface,#222228);color:var(--sg-text,#f3f2f7);box-shadow:0 -18px 60px #0007;pointer-events:auto;transform:translateY(105%);transition:transform 220ms cubic-bezier(.2,.8,.2,1);outline:none;font-family:var(--elan-ui-font,var(--sg-font,system-ui))}
html[data-theme="light"] .sg-sheet{box-shadow:0 -14px 44px #24232a2e}
.sg-sheet-layer.is-open .sg-sheet{transform:none}
.sg-sheet-title{flex:none;margin:0 0 12px;font-size:calc(1.0625rem * var(--elan-ui-scale,1));font-weight:650;line-height:1.35;letter-spacing:-.01em;overflow-wrap:anywhere;color:var(--sg-text,#f3f2f7)}
.sg-sheet-body{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain}
.sg-sheet-intro{margin:0 0 12px;font-size:calc(.9375rem * var(--elan-ui-scale,1));line-height:1.5;color:var(--sg-muted,#afadba);overflow-wrap:anywhere}
.sg-sheet-points{display:grid;gap:12px;margin:0;padding:0;list-style:none}
/* Each icon faces its text: centred on the line, or on the middle of a sentence that wraps (Haize, 2026-10-17). */
.sg-sheet-points>li{display:flex;align-items:center;gap:12px;margin:0;padding:0}
.sg-sheet-point-icon{flex:none;display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:color-mix(in srgb,var(--sg-accent,#c0acf0) 16%,transparent);color:var(--sg-accent,#c0acf0)}
.sg-sheet-point-icon[data-tone="danger"]{background:color-mix(in srgb,var(--sg-action-danger,#ff5454) 15%,transparent);color:var(--sg-action-danger,#ff5454)}
.sg-sheet-point-icon[data-tone="safe"]{background:color-mix(in srgb,var(--sg-action-save,#59c98c) 15%,transparent);color:var(--sg-action-save,#59c98c)}
.sg-sheet-point-icon>svg{display:block;width:18px;height:18px}
.sg-sheet-point-text{min-width:0;padding-top:0;font-size:calc(.9375rem * var(--elan-ui-scale,1));line-height:1.45;color:var(--sg-text,#f3f2f7);overflow-wrap:anywhere}
.sg-sheet-actions{flex:none;display:flex;justify-content:flex-end;gap:10px;margin-top:20px}
.sg-sheet-actions>button{flex:1 1 0;min-width:0;min-height:48px;margin:0;padding:10px 14px;border:1px solid var(--sg-control,#6d687b);border-radius:12px;background:var(--sg-soft,#2c2935);color:var(--sg-text,#f3f2f7);font:600 calc(.9375rem * var(--elan-ui-scale,1))/1.3 var(--elan-ui-font,system-ui);cursor:pointer;touch-action:manipulation;overflow-wrap:anywhere}
/* A lone « Annuler » sits in the middle of the panel. */
.sg-sheet-actions.is-single{justify-content:center}
.sg-sheet-actions.is-single>button{flex:0 1 auto;min-width:44%}
.sg-sheet-confirm[data-tone="primary"]{border-color:var(--sg-accent,#c0acf0);background:var(--sg-accent,#c0acf0);color:var(--sg-bg,#16161a)}
.sg-sheet-confirm[data-tone="danger"]{border-color:var(--sg-action-danger,#ff5454);color:var(--sg-action-danger,#ff5454)}
@media(hover:hover) and (pointer:fine){.sg-sheet-actions>button:hover{filter:brightness(1.08)}}
.sg-sheet-actions>button:focus-visible{outline:2px solid var(--sg-accent,#c0acf0);outline-offset:2px}
/* A bottom menu with a short form (SomagonSheet.form): the title shares its row with the round cross, the fields scroll
   inside, and the one action, violet, sits at the bottom right. */
.sg-sheet-form>.sg-sheet-head{flex:none;margin:-8px 0 8px}
.sg-sheet-form>.sg-sheet-head>.sg-sheet-title{margin:0}
.sg-sheet-form>.sg-sheet-body{padding:2px 2px 4px;margin:0 -2px}
.sg-sheet-actions.is-end{justify-content:flex-end;margin-top:16px}
html[data-theme][lang]:root body .sg-sheet-actions.is-end>.sg-sheet-submit{flex:0 1 auto;min-width:min(100%,220px);min-height:52px;padding:10px 22px;border:0;border-radius:var(--sg-cta-radius,15px);font:650 calc(.9375rem * var(--elan-ui-scale,1))/1.2 var(--elan-ui-font,system-ui)}
html[data-app-motion="reduced"] :is(.sg-sheet,.sg-sheet-backdrop){transition:none!important}
@media(prefers-reduced-motion:reduce){:is(.sg-sheet,.sg-sheet-backdrop){transition:none!important}}
/* « Enregistrer vos modifications ? » (profile windows, Emplacements) rises from the bottom like the other panels (Haize, 2026-10-16). */
html[data-theme] dialog.help-sheet.pe-sheet.ps-exit{inset:auto 0 0!important;margin:0 auto!important;width:min(560px,100%)!important;max-width:100%!important;max-height:min(86dvh,720px)!important;padding:8px 0 env(safe-area-inset-bottom,0px)!important;border:1px solid var(--sg-line,#32323b)!important;border-bottom:0!important;border-radius:22px 22px 0 0!important;background:var(--sg-surface,#222228)!important;box-shadow:0 -18px 60px #0007;animation:sg-exit-rise 220ms cubic-bezier(.2,.8,.2,1)}
/* No grabber bar: nothing rising from the bottom can be dragged down (Haize, 2026-10-17). */
html[data-theme] dialog.help-sheet.pe-sheet.ps-exit>header{padding:14px 20px 4px!important}
html[data-theme] dialog.help-sheet.pe-sheet.ps-exit h2{font-size:calc(1.0625rem * var(--elan-ui-scale,1))!important;font-weight:650!important;line-height:1.35!important}
html[data-theme] dialog.help-sheet.pe-sheet.ps-exit .pe-body p[data-exit-message]{font-size:calc(.9375rem * var(--elan-ui-scale,1));line-height:1.5;color:var(--sg-muted,#afadba)}
html[data-theme] dialog.help-sheet.pe-sheet.ps-exit .ps-exit-actions{padding:12px 20px 18px!important}
@keyframes sg-exit-rise{from{transform:translateY(100%)}to{transform:none}}
html[data-app-motion="reduced"] dialog.ps-exit{animation:none!important}
@media(prefers-reduced-motion:reduce){dialog.ps-exit{animation:none!important}}
/* The signal (Haize, 2026-11-11): the border of the control to touch turns red and flashes, as on the bell. SOMAGON's one way
   of pointing at something: the tutorial, « Profil à compléter » and what is missing before a save. Nothing runs round the
   control; the drawing is cut to the control's own shape (confirm-sheet.js), so the glow lights it from its border inward. */
html :is(#app,body) [data-sg-outline].sg-outline-host{position:relative!important}
html :is(#app,body) [data-sg-outline]{scroll-margin-block:100px}
html :is(#app,body) .v29-bottom-nav [data-nav]{--sg-outline-radius:14px}
html :is(#app,body) [data-sg-outline]>svg.sg-outline{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;min-width:0!important;max-width:none!important;min-height:0!important;max-height:none!important;margin:0!important;padding:0!important;pointer-events:none!important;overflow:visible!important;z-index:2;filter:none;transform:none!important;opacity:1!important}
html :is(#app,body) svg.sg-outline rect{fill:none!important;vector-effect:non-scaling-stroke;pointer-events:none}
html :is(#app,body) [data-sg-outline]>svg.sg-outline{animation:sg-tour-halo 1.4s ease-in-out infinite}
html :is(#app,body) [data-sg-outline]>svg.sg-outline .sg-outline-glow{stroke:#ff3b3b;stroke-width:10;opacity:.3;animation:sg-tour-glow 1.4s ease-in-out infinite}
html :is(#app,body) [data-sg-outline]>svg.sg-outline .sg-outline-track{stroke:#ff4b4b;stroke-width:2.5;opacity:1}
html[data-theme="light"] :is(#app,body) [data-sg-outline]>svg.sg-outline .sg-outline-track{stroke:#d71f32}
@keyframes sg-tour-glow{0%,100%{opacity:.14}50%{opacity:.45}}
@keyframes sg-tour-halo{0%,100%{filter:drop-shadow(0 0 2px rgba(255,59,59,.75))}50%{filter:drop-shadow(0 0 4px rgba(255,59,59,.95)) drop-shadow(0 0 12px rgba(255,59,59,.85))}}
/* Without motion the border stays red and lit instead of flashing. */
html[data-app-motion="reduced"] :is(#app,body) [data-sg-outline]>svg.sg-outline{animation:none;filter:drop-shadow(0 0 6px rgba(255,59,59,.9))}
html[data-app-motion="reduced"] :is(#app,body) [data-sg-outline]>svg.sg-outline .sg-outline-glow{animation:none;opacity:.3}
@media(prefers-reduced-motion:reduce){html :is(#app,body) [data-sg-outline]>svg.sg-outline{animation:none;filter:drop-shadow(0 0 6px rgba(255,59,59,.9))}html :is(#app,body) [data-sg-outline]>svg.sg-outline .sg-outline-glow{animation:none;opacity:.3}}

/* Guide card: floats like a notification between the top bar and the menu bar (tutorial, « Profil à compléter »). */
.sg-guide-card{position:fixed;z-index:2147481000;left:12px;top:auto;bottom:12px;box-sizing:border-box;display:flex;flex-direction:column;width:min(386px,calc(100vw - 24px));max-height:calc(100dvh - 24px);margin:0;padding:6px 6px 14px 18px;border:1px solid var(--sg-line,#32323b);border-radius:18px;background:var(--sg-surface,#222228);color:var(--sg-text,#f3f2f7);box-shadow:0 18px 48px #0009,0 2px 8px #0005;font-family:var(--elan-ui-font,system-ui);text-align:left;opacity:1;transform:none;transition:opacity 200ms ease,transform 220ms cubic-bezier(.2,.8,.2,1)}
html[data-theme="light"] .sg-guide-card{box-shadow:0 14px 40px #24232a33,0 2px 8px #24232a1f}
/* Guidance keeps the same graphite card in both themes, like a notification above the page. */
.sg-guide-card{--sg-surface:#211a30;--sg-line:#3d3252;--sg-text:#f7f3fd;--sg-muted:#cbc1db;--sg-accent:#c6a3f6;--sg-bg:#1b1526;--sg-soft:#2d2442;--sg-control:#5d4f78;--sg-close-ink:#ddd2f0;--sg-close-fill:#2f2645;--sg-close-line:#45395c;--sg-close-hover:#3a2f55;--sg-close-active:#4d3f6e;--sg-danger:#ffb4ad;--sg-action-save:#6fd69c;color-scheme:dark}
.sg-guide-card[hidden]{display:none!important}
/* While the tour runs, a short page gets room at its end when the control it points at must rise above the card (confirm-sheet.js). */
html.sg-tour-active body::after{content:"";display:block;height:var(--sg-guide-room,0px)}
/* The « Il reste … étapes » card floats over the end of the page: the page gets its height as room below, so the last
   control of a form (« Enregistrer mes réseaux ») can rise above it (simulated test 2026-11-22, P1-4). */
html.sg-completion-open body::after{content:"";display:block;height:max(var(--sg-guide-room,0px),var(--sg-completion-room,0px))}
.sg-guide-card.is-entering{opacity:0;transform:translateY(12px)}
.sg-guide-head{flex:none;display:flex;align-items:center;gap:8px;min-height:44px}
.sg-guide-head>h2{flex:1 1 auto;min-width:0;margin:0;padding:4px 0 0;font-size:calc(1.0625rem * var(--elan-ui-scale,1));font-weight:650;line-height:1.35;letter-spacing:-.01em;color:var(--sg-text,#f3f2f7);overflow-wrap:anywhere}
.sg-guide-head>h2:focus{outline:none}
.sg-guide-close{flex:0 0 44px;display:grid;place-items:center;width:44px;height:44px;margin:0;padding:0;border:0;border-radius:50%;background:transparent;color:var(--sg-close-ink,#cbc3de);cursor:pointer;touch-action:manipulation}
.sg-guide-close>svg{display:block;width:36px;height:36px;pointer-events:none}
.sg-guide-close circle{fill:var(--sg-close-fill,#2a2733);stroke:var(--sg-close-line,#393442);stroke-width:.45;transition:fill 140ms ease,stroke 140ms ease}
.sg-guide-close path{fill:none;stroke:currentColor;stroke-width:.8;stroke-linecap:round}
@media(hover:hover) and (pointer:fine){.sg-guide-close:hover circle{fill:var(--sg-close-hover,#383044);stroke:var(--sg-accent,#ad94da)}}
.sg-guide-close:active circle{fill:var(--sg-close-active,#4b3e62);stroke:var(--sg-accent,#ad94da)}
.sg-guide-body{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;padding:2px 12px 0 0}
.sg-guide-body>p{margin:0;font-size:calc(.9375rem * var(--elan-ui-scale,1));line-height:1.5;color:var(--sg-muted,#afadba);overflow-wrap:anywhere}
.sg-guide-body>p+p{margin-top:6px}
.sg-guide-body>p.sg-guide-error{color:var(--sg-danger,#ffaca5)}
.sg-guide-list{display:grid;gap:0;margin:2px 0 0;padding:0;list-style:none;counter-reset:none}
.sg-guide-list>li{margin:0;padding:0}
.sg-guide-step{display:flex;align-items:center;gap:12px;box-sizing:border-box;width:100%;min-height:44px;margin:0;padding:4px 8px 4px 0;border:0;border-radius:12px;background:transparent;color:var(--sg-text,#f3f2f7);font:inherit;text-align:left;cursor:pointer;touch-action:manipulation}
.sg-guide-step:focus-visible,.sg-guide-actions>button:focus-visible,.sg-guide-close:focus-visible{outline:2px solid var(--sg-accent,#c0acf0);outline-offset:2px}
.sg-guide-number{flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:color-mix(in srgb,var(--sg-accent,#c0acf0) 16%,transparent);color:var(--sg-accent,#c0acf0);font-size:calc(.875rem * var(--elan-ui-scale,1));font-weight:700;font-variant-numeric:tabular-nums}
.sg-guide-step[aria-current="step"] .sg-guide-number{background:var(--sg-accent,#c0acf0);color:var(--sg-bg,#16161a)}
.sg-guide-step-text{display:grid;gap:1px;flex:1 1 auto;min-width:0}
.sg-guide-step-text>strong{font-size:calc(.9375rem * var(--elan-ui-scale,1));font-weight:500;line-height:1.35;overflow-wrap:anywhere}
.sg-guide-step[aria-current="step"] .sg-guide-step-text>strong{font-weight:650}
.sg-guide-step-text>small{font-size:calc(.8125rem * var(--elan-ui-scale,1));line-height:1.35;color:var(--sg-muted,#afadba);overflow-wrap:anywhere}
.sg-guide-go{flex:none;color:var(--sg-muted,#afadba);font-size:20px;line-height:1}
.sg-guide-done{display:flex;align-items:center;gap:10px;margin:4px 0 0;color:var(--sg-text,#f3f2f7);font-size:calc(.9375rem * var(--elan-ui-scale,1));line-height:1.45}
.sg-guide-done>svg{flex:none;color:var(--sg-action-save,#59c98c)}
.sg-guide-actions{flex:none;display:flex;align-items:center;gap:10px;margin-top:14px;padding-right:12px}
.sg-guide-actions>button{min-height:44px;margin:0;padding:10px 16px;border:1px solid var(--sg-control,#6d687b);border-radius:12px;background:var(--sg-soft,#2c2935);color:var(--sg-text,#f3f2f7);font:600 calc(.9375rem * var(--elan-ui-scale,1))/1.3 var(--elan-ui-font,system-ui);cursor:pointer;touch-action:manipulation;overflow-wrap:anywhere}
.sg-guide-actions>.sg-guide-count{flex:1 1 auto;min-width:0;font-size:calc(.8125rem * var(--elan-ui-scale,1));font-weight:600;color:var(--sg-muted,#afadba);font-variant-numeric:tabular-nums;text-align:center}
.sg-guide-actions>button.sg-guide-back{border-color:transparent;background:transparent;color:var(--sg-accent,#c0acf0);padding-inline:8px}
.sg-guide-actions>button.sg-guide-primary{margin-left:auto;border-color:var(--sg-accent,#c0acf0);background:var(--sg-accent,#c0acf0);color:var(--sg-bg,#16161a)}
/* The button awaited from the reader is orange with its gentle pulse (data-sg-due, somagon-theme.css): « Revenir à la course »
   once nothing is missing before taking part (Haize, 2026-11-20). */
.sg-guide-actions>button.sg-guide-primary[data-sg-due]{border-color:transparent;background:var(--sg-due-fill,#EA863E);color:var(--sg-due-ink,#17131F);box-shadow:var(--sg-cta-glow,none)}
.sg-guide-actions>button:disabled{opacity:.45;cursor:default}
@media(hover:hover) and (pointer:fine){.sg-guide-actions>button:not(:disabled):hover,.sg-guide-step:hover{filter:brightness(1.08)}}
html[data-app-motion="reduced"] .sg-guide-card{transition:none!important}
@media(prefers-reduced-motion:reduce){.sg-guide-card{transition:none!important}}
/* Fields asked in the panel itself (simplification N1, P1, PR1): a box to tick, or an amount. */
.sg-sheet-fields{display:grid;gap:12px;margin-top:16px}
.sg-sheet-check{display:flex;align-items:flex-start;gap:12px;min-height:44px;font-size:calc(.9375rem * var(--elan-ui-scale,1));line-height:1.45;color:var(--sg-text,#f3f2f7);cursor:pointer}
.sg-sheet-check>input{flex:none;width:22px;height:22px;margin:1px 0 0;accent-color:var(--sg-accent,#c0acf0)}
.sg-sheet-field{display:grid;gap:8px;font-size:calc(.9375rem * var(--elan-ui-scale,1));color:var(--sg-text,#f3f2f7)}
.sg-sheet-amount{display:flex;align-items:center;gap:10px}
.sg-sheet-amount>input{flex:1 1 auto;min-width:0;min-height:48px;padding:10px 14px;border:1px solid var(--sg-control,#6d687b);border-radius:12px;background:var(--sg-soft,#2c2935);color:var(--sg-text,#f3f2f7);font:600 calc(1.0625rem * var(--elan-ui-scale,1))/1.3 var(--elan-ui-font,system-ui)}
.sg-sheet-amount>b{font-weight:650}
/* A date or a time in a bottom menu (Haize's iPhone, 2026-11-12, « Proposer un avenant »). On iPhone such a field keeps a width
   of its own and centres its value unless told otherwise. The app corrects it inside its own frames (welcome.css, ui-controls.css),
   but a menu is placed on the body, outside them: the same correction is written here once, for every menu. The test browser
   never shows this defect. */
.sg-sheet input:is([type="date"],[type="time"],[type="datetime-local"],[type="month"],[type="week"]){appearance:none;-webkit-appearance:none;display:block;box-sizing:border-box;inline-size:100%;min-inline-size:0;max-inline-size:100%;min-block-size:44px;overflow:hidden;text-align:left}
.sg-sheet input:is([type="date"],[type="time"],[type="datetime-local"],[type="month"],[type="week"])::-webkit-date-and-time-value{min-width:0;text-align:left}
.sg-sheet input:is([type="date"],[type="time"],[type="datetime-local"],[type="month"],[type="week"])::-webkit-datetime-edit{min-width:0;padding:0}
/* « Modifier mes prix pour cette course » (Haize, 2026-10-28): a second action in the panel, a full-width line with a
   chevron, above « Annuler » and the action; what was changed shows under its name. */
.sg-sheet-extra{display:flex;align-items:center;justify-content:space-between;gap:12px;box-sizing:border-box;width:100%;min-height:52px;margin:16px 0 0;padding:10px 14px 10px 16px;border:1px solid var(--sg-control,#6d687b);border-radius:12px;background:var(--sg-soft,#2c2935);color:var(--sg-text,#f3f2f7);font:600 calc(.9375rem * var(--elan-ui-scale,1))/1.35 var(--elan-ui-font,system-ui);text-align:left;cursor:pointer}
.sg-sheet-extra>span{display:grid;gap:2px;min-width:0}
.sg-sheet-extra small{font-weight:500;font-size:calc(.8125rem * var(--elan-ui-scale,1));color:var(--sg-accent,#c0acf0)}
.sg-sheet-extra small[hidden]{display:none}
.sg-sheet-extra>svg{flex:none;color:var(--sg-accent,#c0acf0)}
.sg-sheet-extra:focus-visible{outline:2px solid var(--sg-accent,#c0acf0);outline-offset:2px}
/* Several ways on (SomagonSheet.choose): one row per choice, its icon, its name and the line saying when it fits. */
.sg-sheet-choices{display:grid;gap:10px;margin:0}
.sg-sheet-points+.sg-sheet-choices{margin-top:16px}
.sg-sheet-choice{display:flex;align-items:center;gap:12px;box-sizing:border-box;width:100%;min-height:56px;margin:0;padding:10px 12px;border:1px solid var(--sg-control,#6d687b);border-radius:12px;background:var(--sg-soft,#2c2935);color:var(--sg-text,#f3f2f7);font:600 calc(.9375rem * var(--elan-ui-scale,1))/1.35 var(--elan-ui-font,system-ui);text-align:left;cursor:pointer;touch-action:manipulation}
.sg-sheet-choice-text{flex:1 1 auto;display:grid;gap:2px;min-width:0;overflow-wrap:anywhere}
.sg-sheet-choice-text small{font-weight:500;font-size:calc(.8125rem * var(--elan-ui-scale,1));color:var(--sg-muted,#afadba)}
.sg-sheet-choice>svg{flex:none;color:var(--sg-accent,#c0acf0)}
.sg-sheet-choice:focus-visible{outline:2px solid var(--sg-accent,#c0acf0);outline-offset:2px}
@media(hover:hover) and (pointer:fine){.sg-sheet-choice:hover{filter:brightness(1.08)}}

/* The Somagon list (review n° 23, 2026-11-11): shown in place of a native <select data-sg-menu>, which stays in its form,
   out of the page. The field shows the answer, the choices unfold under it; a long list scrolls inside itself. Same look
   as the partnership file's list (.sf-menu). The windows of the app style their own buttons and labels, each its own way:
   what makes the list a list is fixed here (!important), and a window only sets --sg-menu-bg when its fields are darker. */
select.sg-menu-native{display:none!important}
details.sg-menu{display:block;min-width:0;width:100%;margin:0;padding:0;border:0;background:transparent;text-align:left;font-weight:400;text-transform:none;letter-spacing:normal}
details.sg-menu>summary{position:relative;display:flex;align-items:center;min-height:48px;box-sizing:border-box;margin:0;padding:8px 40px 8px 14px;border:1px solid var(--sg-control);border-radius:10px;background:var(--sg-menu-bg,var(--sg-surface));color:var(--sg-text);font-size:16px;font-weight:400;line-height:1.3;list-style:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
details.sg-menu>summary::-webkit-details-marker{display:none}
details.sg-menu>summary::marker{content:""}
details.sg-menu>summary>.sg-menu-value{min-width:0;overflow-wrap:anywhere;color:inherit!important;font-size:inherit!important;font-weight:inherit!important;line-height:inherit!important;letter-spacing:inherit!important;text-transform:inherit!important}
details.sg-menu>summary>.sg-menu-value.is-empty{color:var(--sg-muted)!important}
details.sg-menu>summary::after{content:"";position:absolute;right:16px;top:50%;width:7px;height:7px;margin-top:-6px;border-right:2px solid var(--sg-muted);border-bottom:2px solid var(--sg-muted);transform:rotate(45deg);transition:transform .15s ease}
details.sg-menu[open]>summary{border-color:var(--sg-accent)}
details.sg-menu[open]>summary::after{margin-top:-2px;transform:rotate(-135deg)}
details.sg-menu>summary[aria-disabled="true"]{opacity:.55;cursor:not-allowed}
details.sg-menu>summary:focus-visible{outline:2px solid var(--sg-accent);outline-offset:2px}
details.sg-menu>.sg-menu-list{display:grid;gap:0;margin:6px 0 0;padding:0;max-height:min(264px,45vh);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;border:1px solid var(--sg-control);border-radius:10px;background:var(--sg-menu-bg,var(--sg-surface))}
details.sg-menu>.sg-menu-list>.sg-menu-option{display:flex!important;gap:12px!important;align-items:center!important;justify-content:flex-start!important;width:100%!important;min-width:0!important;min-height:44px!important;height:auto!important;box-sizing:border-box!important;margin:0!important;padding:10px 14px!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;color:var(--sg-text)!important;font:inherit;font-size:15px!important;font-weight:400!important;line-height:1.3!important;letter-spacing:normal!important;text-transform:none!important;text-align:left!important;white-space:normal!important;overflow-wrap:anywhere;cursor:pointer}
details.sg-menu>.sg-menu-list>.sg-menu-option+.sg-menu-option,details.sg-menu>.sg-menu-list>.sg-menu-group+.sg-menu-option,details.sg-menu>.sg-menu-list>.sg-menu-option+.sg-menu-group{border-top:1px solid var(--sg-line)!important}
details.sg-menu>.sg-menu-list>.sg-menu-option[aria-selected="true"]{background:var(--sg-sel-bg)!important;color:var(--sg-sel-ink)!important;font-weight:600!important}
details.sg-menu>.sg-menu-list>.sg-menu-option[aria-selected="true"]::after{content:"";flex:none;width:5px;height:10px;margin:-3px 3px 0 auto;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg)}
details.sg-menu>.sg-menu-list>.sg-menu-option:disabled{opacity:.5;cursor:not-allowed}
details.sg-menu>.sg-menu-list>.sg-menu-option:focus-visible{outline:2px solid var(--sg-accent);outline-offset:-2px}
details.sg-menu>.sg-menu-list>.sg-menu-group{margin:0;padding:10px 14px 6px;color:var(--sg-muted);font-size:12px;font-weight:650;line-height:1.3;letter-spacing:.04em;text-transform:uppercase}
@media (prefers-reduced-motion:reduce){details.sg-menu>summary::after{transition:none}}
/* Every menu rises from the bottom, like the notifications (Haize, 2026-11-11: « tous les menus qui s'ouvrent doivent
   s'ouvrir comme une notification du bas… évite les différents menus, un qui s'ouvre en plein milieu, un qui s'ouvre en
   bas »). The windows that still opened in the middle of the screen now sit on its bottom edge, the full width up to
   560 px, rounded on top, and rise when they open; their content, cross and buttons are unchanged. The full-screen pages
   (partnership file, guides, reports, photo viewer) stay full screen. The bottom of the iPhone stays clear (::after).
   Windows: native dialogs. Cards: a .modal-backdrop layer holding the card; the layer is clipped (« clip », not only
   « hidden ») so that focusing a field never scrolls it (iPhone trap of 2026-10-18). */
:root{--sg-menu-max:calc(100dvh - 24px - env(safe-area-inset-top,0px))}
html[data-theme]:root body :is(dialog.brand-photo-dialog,dialog.brand-review-dialog,dialog.sf-dialog,dialog.help-sheet.pe-sheet:not(.ps-exit):not(.bp-product-sheet),dialog.proof-help-dialog,dialog.somagon-support,dialog.ea-credential-dialog,dialog.ps2-sheet),
html[data-theme]:root body .modal-backdrop>:is(.cal-dialog,.v30-confirm,.ae-event-dialog,.v30-crop-modal,.v30-checkout:not(.form-partnership-dialog),.sg-welcome){position:fixed!important;inset:auto 0 0!important;box-sizing:border-box!important;width:min(560px,100%)!important;min-width:0!important;max-width:100%!important;max-height:var(--sg-menu-max)!important;margin:0 auto!important;overflow-y:auto!important;overscroll-behavior:contain;border-bottom:0!important;border-radius:22px 22px 0 0!important;transform:none;animation:sg-menu-rise 260ms cubic-bezier(.2,.8,.2,1) both!important}
html[data-theme]:root body :is(dialog.brand-photo-dialog,dialog.brand-review-dialog,dialog.sf-dialog,dialog.help-sheet.pe-sheet:not(.ps-exit):not(.bp-product-sheet),dialog.proof-help-dialog,dialog.somagon-support,dialog.ea-credential-dialog,dialog.ps2-sheet)::after,
html[data-theme]:root body .modal-backdrop>:is(.cal-dialog,.v30-confirm,.ae-event-dialog,.v30-crop-modal,.v30-checkout:not(.form-partnership-dialog),.sg-welcome)::after{content:"";display:block;flex:none;height:env(safe-area-inset-bottom,0px);grid-column:1/-1}
html[data-theme]:root body .modal-backdrop:has(>:is(.cal-dialog,.v30-confirm,.ae-event-dialog,.v30-crop-modal,.v30-checkout:not(.form-partnership-dialog),.sg-welcome)){padding:0!important;overflow:hidden!important;overflow:clip!important}
@keyframes sg-menu-rise{from{transform:translateY(100%)}to{transform:none}}
/* A window the page redraws while it is open keeps its place (confirm-sheet.js marks it data-sg-shown). */
html[data-theme]:root body .modal-backdrop>:is(.cal-dialog,.v30-confirm,.ae-event-dialog,.v30-crop-modal,.v30-checkout:not(.form-partnership-dialog),.sg-welcome)[data-sg-shown]{animation:none!important}
html[data-app-motion="reduced"]:root body :is(dialog,.modal-backdrop>section){animation-duration:1ms!important}
@media(prefers-reduced-motion:reduce){html[data-theme]:root body :is(dialog,.modal-backdrop>section){animation-duration:1ms!important}}
/* While the keyboard is open, keyboard-follow.js shortens the menu's layer to the part of the screen left visible: the menu
   fits in it, so its title and its cross stay on screen and only its body scrolls (correspondence, 2026-11-12). */
.sg-sheet-layer[data-sg-keyboard]>.sg-sheet{max-height:100%}

/* A short text left of the action, in the same row (Haize, 2026-11-17: the deliverable's price left of « Valider la prestation »). */
.sg-sheet-actions.has-aside{align-items:center}
.sg-sheet-aside{flex:1 1 auto;min-width:0;margin:0;color:var(--sg-text,#f3f2f7);font:700 calc(1.0625rem * var(--elan-ui-scale,1))/1.25 var(--elan-ui-font,system-ui);overflow-wrap:anywhere}
.sg-sheet-aside:empty{visibility:hidden}

/* A row of choices that erases something (« Supprimer le brouillon », Haize 2026-11-18): its words and its outline in red. */
.sg-sheet-choice[data-tone="danger"]{border-color:color-mix(in srgb,var(--sg-action-danger,#ff5454) 55%,transparent);color:var(--sg-action-danger,#ff5454)}
.sg-sheet-choice[data-tone="danger"]>svg{color:var(--sg-action-danger,#ff5454)}
