/* Shared navigation, for the member app and administration. 1em keeps icon and text equal. */
/* Peau / Tenue reference: 12px before the navigation row, 6px after its 44px control. */
:root{--sg-navigation-before:12px;--sg-navigation-after:6px}
html[lang][data-theme]:root :is(#app,#admin-app,body) .sg-navigation-row{
 margin-top:var(--sg-navigation-before)!important;margin-bottom:var(--sg-navigation-after)!important;
 padding-top:0!important;padding-bottom:0!important;row-gap:var(--sg-navigation-after)!important;
}
html[lang][data-theme]:root :is(#app,#admin-app,body) .sg-navigation-row+*{margin-top:0!important}
html[lang][data-theme]:root :is(#app,#admin-app,body) .sg-navigation-standalone{
 margin-top:var(--sg-navigation-before)!important;margin-bottom:var(--sg-navigation-after)!important;
}
html[lang][data-theme]:root :is(#app,#admin-app,body) .sg-close-heading{row-gap:var(--sg-navigation-after)!important}
.sg-refresh-status{position:fixed;left:50%;bottom:calc(100px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);z-index:10000;padding:10px 16px;border-radius:20px;background:var(--sg-surface,#292532);color:var(--sg-text,#f5f3fa);font:500 14px/1.4 system-ui;box-shadow:0 2px 12px #0003;pointer-events:none}
.sg-refresh-status[hidden]{display:none}
.sg-refresh-status.sg-refresh-quiet{width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;box-shadow:none}
/* Pull to refresh (app-refresh.js): the page never bounces, so the top bar and the menu stay in place while the gesture
   reloads the data (Haize, 2026-11-20, iPad: the bounce dragged the top bar over the side menu). Root only: menus,
   carousels and sheets keep their own overscroll rules. */
html,body{overscroll-behavior-y:none}
.sg-pull{position:fixed;top:0;left:0;right:0;z-index:10000;display:flex;justify-content:center;align-items:flex-start;height:120px;overflow:hidden;pointer-events:none}
.sg-pull[hidden]{display:none}
.sg-pull-disc{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;box-sizing:border-box;
 background:var(--sg-surface,var(--panel,#222228));color:var(--sg-accent,var(--purple,#7159a5));
 box-shadow:0 0 0 1px var(--sg-line,var(--line,#32323b)),0 4px 14px #00000033;opacity:.5;transform:translateY(-48px);will-change:transform}
.sg-pull:is([data-state="ready"],[data-state="spin"]) .sg-pull-disc{opacity:1}
.sg-pull.is-settling .sg-pull-disc{transition:transform .2s ease-out,opacity .2s ease-out}
.sg-pull-icon{display:block}
.sg-pull[data-state="spin"] .sg-pull-icon{animation:sg-pull-spin .8s linear infinite}
@keyframes sg-pull-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.sg-pull .sg-pull-icon{animation:none!important}.sg-pull.is-settling .sg-pull-disc{transition:none}}
html[lang][data-theme]:root :is(#app,#admin-app,body) :is(button,a)[data-sg-navigation].sg-navigation-control{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 flex:0 0 auto!important;gap:8px!important;width:auto!important;max-width:100%!important;
 min-width:44px!important;min-height:44px!important;height:auto!important;padding:8px!important;
 border:0!important;border-radius:8px!important;background:transparent!important;box-shadow:none!important;
 color:var(--sg-accent,var(--purple,#7159a5))!important;
 font-family:var(--sg-font,system-ui)!important;font-size:calc(1rem * var(--elan-ui-scale,1))!important;
 font-weight:550!important;line-height:1.25!important;letter-spacing:0!important;
 text-transform:none!important;text-decoration:none!important;white-space:nowrap!important;
}
/* Shared controls already contain their icon; suppress legacy CSS-generated arrows/crosses. */
html[lang][data-theme]:root :is(#app,#admin-app,body) :is(button,a)[data-sg-navigation].sg-navigation-control::before,
html[lang][data-theme]:root :is(#app,#admin-app,body) :is(button,a)[data-sg-navigation].sg-navigation-control::after{
 content:none!important;display:none!important;
}
html[lang][data-theme]:root :is(#app,#admin-app,body) [data-sg-navigation]>.sg-action-icon{
 display:block!important;position:static!important;width:1em!important;height:1em!important;
 min-width:1em!important;max-width:1em!important;flex:0 0 1em!important;margin:0!important;
 color:inherit!important;transform:none!important;
}
html[lang][data-theme]:root :is(#app,#admin-app,body) [data-sg-navigation]>.sg-action-label{
 position:static!important;display:inline!important;width:auto!important;height:auto!important;
 padding:0!important;margin:0!important;clip-path:none!important;overflow:visible!important;
 font:inherit!important;color:inherit!important;letter-spacing:inherit!important;
}
html[lang][data-theme]:root :is(#app,#admin-app,body) [data-sg-navigation]:focus-visible{outline:2px solid var(--sg-accent,var(--purple,#7159a5));outline-offset:2px;}
/* A close control can wrap onto its own row instead of covering a long title. */
html[lang][data-theme]:root :is(#app,#admin-app,body) :is(.dialog-head,.form-dialog-header,.fn-panel-header,.ep-picker-header,.cal-dialog-heading,.sf-dialog-head,dialog.help-sheet>header,.proof-help-dialog>header):has(>[data-sg-navigation]){flex-wrap:wrap;gap:8px 12px;}
html[lang][data-theme]:root :is(#app,#admin-app,body) :is(.dialog-head,.form-dialog-header,.fn-panel-header,.ep-picker-header,.cal-dialog-heading,.sf-dialog-head,dialog.help-sheet>header,.proof-help-dialog>header)>[data-sg-navigation="close"]{margin-left:0!important;margin-right:auto!important;}
html[lang][data-theme]:root :is(#app,#admin-app,body) :is(.dialog-head,.form-dialog-header,.fn-panel-header,.ep-picker-header,.cal-dialog-heading,.sf-dialog-head,dialog.help-sheet>header,.proof-help-dialog>header)>h2{min-width:0;overflow-wrap:anywhere;}
/* Destructive intent changes the ink only. Each component keeps the same box,
   typography, surface and interaction states as its associated ordinary action.
   Light red deepened to the administration's #b01219, same hue: #d71920 gave 4.21:1 on the action surface (review 2026-10-22 N01). */
html[data-theme="light"]{--sg-action-danger:#b01219;}
html[data-theme="dark"]{--sg-action-danger:#ff5454;}
html[lang][data-theme]:root :is(#app,#admin-app,body) :is([data-sg-danger],[data-sg-cancel]),
html[lang][data-theme]:root :is(#app,#admin-app,body) :is([data-sg-danger],[data-sg-cancel]) :is(span,strong){color:var(--sg-action-danger,#d71920)!important;}
html[lang][data-theme]:root :is(#app,#admin-app,body) :is([data-sg-danger],[data-sg-cancel])[hidden]{display:none!important;}

html[lang][data-theme]:root :is(#app,#admin-app,body) [data-sg-navigation][hidden]{display:none!important;}
@media(min-width:901px){html[lang][data-theme]:root :is(#app,#admin-app,body) .menu-close[data-sg-navigation]{display:none!important;}}

/* Every window starts with the same left-aligned close row. */
html[lang][data-theme]:root :is(#app,#admin-app,body) .sg-close-heading{display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;gap:8px!important;}
html[lang][data-theme]:root :is(#app,#admin-app,body) [data-sg-navigation="close"].sg-window-close{position:static!important;inset:auto!important;transform:none!important;order:-1!important;align-self:flex-start!important;justify-self:start!important;margin:0 auto 0 0!important;}
html[lang][data-theme]:root :is(#app,#admin-app,body) .sg-close-window>[data-sg-navigation="close"].sg-window-close{display:flex!important;margin-bottom:12px!important;}

/* Final spacing override, after legacy close-header rules. */
html[lang][data-theme]:root :is(#app,#admin-app,body) .sg-close-heading{gap:var(--sg-navigation-after)!important}
html[lang][data-theme]:root :is(#app,#admin-app,body) .sg-close-window>[data-sg-navigation="close"].sg-window-close{margin-bottom:var(--sg-navigation-after)!important}
html[lang][data-theme]:root :is(#app,#admin-app,body) :is(main.v29-page,.bw-content):has(>.sg-navigation-row),
html[lang][data-theme]:root :is(#app,#admin-app,body) :is(main.v29-page,.bw-content):has(>.sg-navigation-standalone){padding-top:8px!important;row-gap:0!important}
html[lang][data-theme]:root :is(#app,#admin-app,body) .sg-navigation-standalone+*{margin-top:0!important}

/* Saving uses green ink only, retaining the component's existing button format. */
html[data-theme="light"]{--sg-action-save:#167442;}
html[data-theme="dark"]{--sg-action-save:#59c98c;}
html[lang][data-theme]:root :is(#app,#admin-app,body) [data-sg-save],
html[lang][data-theme]:root :is(#app,#admin-app,body) [data-sg-save] :is(span,strong){color:var(--sg-action-save,#167442)!important;}

/* One semantic palette shared by member/admin actions and their status labels. */
html[data-theme][lang]:root{
 --sg-action-save:#167442!important;--sg-action-danger:#b01219!important;
 --sg-action-surface:var(--sg-soft,#e9e6f0);--sg-action-surface-hover:#ded9e8;
 --sg-success:var(--sg-action-save)!important;--es-success:var(--sg-action-save)!important;--good:var(--sg-action-save)!important;
 --sg-danger:var(--sg-action-danger)!important;--es-danger:var(--sg-action-danger)!important;--bad:var(--sg-action-danger)!important;
}
html[data-theme="dark"][lang]:root{
 --sg-action-save:#59c98c!important;--sg-action-danger:#ff5454!important;
 --sg-action-surface:var(--sg-soft,#2c2935);--sg-action-surface-hover:#302b38;
}
/* Change the surface and ink only: keep paired controls' dimensions and typography. */
html[lang][data-theme]:root :is(#app,#admin-app,body) :is(button,a,summary):is([data-sg-save],[data-sg-danger],[data-sg-cancel]){
 background:var(--sg-action-surface)!important;background-image:none!important;background-clip:padding-box!important;box-shadow:inset 0 0 0 1px var(--elan-pill-line,var(--sg-control,#777180))!important;
}
html[lang][data-theme]:root :is(#app,#admin-app,body) :is(button,a,summary):is([data-sg-save],[data-sg-danger],[data-sg-cancel]):hover:not(:disabled){background:var(--sg-action-surface-hover)!important}
/* Some publication controls wrap their label in a second painted surface. */
html[lang][data-theme]:root :is(#app,#admin-app,body) :is([data-sg-save],[data-sg-danger],[data-sg-cancel])>span{background:transparent!important;background-image:none!important;box-shadow:none!important;border-color:transparent!important}
html[lang][data-theme]:root :is(#app,#admin-app,body) :is([data-sg-save],[data-sg-danger],[data-sg-cancel]):disabled{opacity:.5!important;cursor:not-allowed!important}
/* Green is for what is done: a zone not offered to brands keeps its grey (audit 2026-10-26, P2-5). */
html[lang][data-theme]:root :is(#app,#admin-app,body) :is(.ps2-zone-state:not(.is-todo,.is-off),.ep-step-number.is-done){color:var(--sg-action-save)!important}
html[lang][data-theme]:root :is(#app,#admin-app,body) .cal-premium-profile-status:is(.is-published,.is-ready){background:var(--sg-action-surface)!important}
html[lang][data-theme]:root :is(#app,#admin-app,body) .cal-premium-profile-status.is-published{color:var(--sg-action-save)!important;border-color:var(--sg-action-save)!important}
html[lang][data-theme]:root :is(#app,#admin-app,body) .cal-premium-profile-status.is-ready{color:var(--sg-action-danger)!important;border-color:var(--sg-action-danger)!important}


/* Publication actions share one painted inner label and the same touch target. */
html[lang][data-theme]:root :is(#app,#admin-app,body) .ep-publication-controls .ep-publication-button:not(.ep-profile-manage){
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 min-height:44px!important;height:auto!important;padding:5px 0!important;border:0!important;
 background:transparent!important;box-shadow:none!important;
 font:500 calc(.8125rem * var(--elan-ui-scale,1))/1.4 var(--elan-ui-font,system-ui)!important;
}
html[lang][data-theme]:root :is(#app,#admin-app,body) .ep-publication-controls .ep-publication-button:not(.ep-profile-manage)>span{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 box-sizing:border-box!important;min-height:34px!important;padding:6px 13px!important;margin:0!important;
 border:1px solid var(--sg-control,#777180)!important;border-radius:9px!important;
 background:var(--sg-action-surface)!important;box-shadow:none!important;font:inherit!important;
}
html[lang][data-theme]:root :is(#app,#admin-app,body) .ep-publication-controls .ep-publication-publish:not([aria-disabled="true"]):not([data-offline])>span{
 background:var(--sg-accent)!important;border-color:var(--sg-accent)!important;color:var(--ep-publish-ink)!important;
}
@media(max-width:380px){
 html[lang][data-theme]:root :is(#app,#admin-app,body) .ep-publication-controls .ep-publication-button:not(.ep-profile-manage){font-size:calc(.75rem * var(--elan-ui-scale,1))!important}
 html[lang][data-theme]:root :is(#app,#admin-app,body) .ep-publication-controls .ep-publication-button:not(.ep-profile-manage)>span{padding-inline:8px!important}
}

/* Coloured action text keeps the same visible outline as ordinary buttons. */
html[lang][data-theme]:root :is(#app,#admin-app,body) :is(button,a)[data-elan-control]:is([data-sg-save],[data-sg-danger],[data-sg-cancel]):not([data-elan-control="icon"]):not([data-sg-navigation]){
 box-shadow:inset 0 0 0 1px var(--elan-pill-line,var(--sg-control))!important;
}
html[lang][data-theme]:root :is(#app,body) .ps-exit-actions>button{
 width:100%!important;min-height:44px!important;height:auto!important;
 border:2px solid transparent!important;border-radius:12px!important;
 padding:8px 14px!important;background:var(--sg-action-surface)!important;
 background-clip:padding-box!important;
 box-shadow:inset 0 0 0 1px var(--elan-pill-line,var(--sg-control))!important;
 font:600 calc(.875rem * var(--elan-ui-scale,1))/1.3 var(--sg-font,system-ui)!important;
}
/* A labelled close action is no longer a fixed square icon. Reset both physical
   and logical sizes, including the inherited clipping of icon-only controls. */
html[lang][data-theme]:root :is(#app,#admin-app,body) :is(button,a)[data-sg-navigation].sg-navigation-control{
 inline-size:auto!important;max-inline-size:100%!important;max-height:none!important;
 max-block-size:none!important;aspect-ratio:auto!important;overflow:visible!important;
}
html[lang][data-theme]:root :is(#app,#admin-app,body) [data-sg-navigation]>.sg-action-label{
 flex:0 0 auto!important;white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important;
}

/* Profil: the event's title, then four pills of one design on one row: Publication, Modification, Choix du profil, Retirer
   (Haize's mockup, 2026-10-17). Each native button keeps a 44px touch target; the visible pill is its inner span. */
html[lang][data-theme]:root #app .ep-profile-management .ep-profile-select>span{
 font-size:calc(1.125rem * var(--elan-ui-scale,1));font-weight:600;color:var(--sg-text);
}
html[lang][data-theme]:root #app .ep-profile-management .ep-publication-controls .ep-publication-actions{display:flex!important;flex-wrap:wrap;align-items:center;gap:5px;margin:0;container-type:inline-size}
html[lang][data-theme]:root #app .ep-profile-management .ep-publication-controls .ep-publication-actions>.ep-publication-button{
 flex:1 1 auto!important;display:flex!important;align-items:center!important;justify-content:center!important;
 width:auto!important;min-width:0!important;max-width:100%!important;min-height:44px!important;height:auto!important;margin:0!important;padding:0!important;
 border:0!important;border-radius:13px!important;background:transparent!important;box-shadow:none!important;color:var(--sg-text)!important;opacity:1!important;cursor:pointer;
 font:500 calc(.75rem * var(--elan-ui-scale,1))/1.2 var(--elan-ui-font,system-ui)!important;letter-spacing:0!important;white-space:nowrap!important;
}
/* The four pills share one row on a phone: the words shrink a little on a narrow screen rather than wrap. */
html[lang][data-theme]:root #app .ep-profile-management .ep-publication-controls .ep-publication-actions>.ep-publication-button{font-size:clamp(10.5px,calc(5cqi - 6.5px),12.5px)!important}
html[data-app-text="large"][lang][data-theme]:root #app .ep-profile-management .ep-publication-controls .ep-publication-actions>.ep-publication-button{font-size:calc(.875rem * var(--elan-ui-scale,1))!important}
html[lang][data-theme]:root #app .ep-profile-management .ep-publication-controls .ep-publication-actions>.ep-publication-button>span{
 display:flex!important;flex:1 1 auto!important;align-items:center!important;justify-content:center!important;gap:4px!important;
 box-sizing:border-box!important;width:100%!important;min-width:0!important;min-height:38px!important;height:auto!important;margin:0!important;padding:6px 7px!important;
 border:1px solid var(--sg-control,#777180)!important;border-radius:13px!important;background:transparent!important;box-shadow:none!important;
 color:inherit!important;font:inherit!important;filter:none!important;
}
html[lang][data-theme]:root #app .ep-profile-management .ep-publication-controls .ep-publication-actions>.ep-publication-button>span>svg{flex:none;width:15px;height:15px;transform:none!important}
/* Four pills keep one row on a phone (Haize, 2026-10-17): tighter insides, and on a row under 350px the icons step aside
   so every word stays whole. With large text they may take two rows. */
html:not([data-app-text="large"])[lang][data-theme]:root #app .ep-profile-management .ep-publication-controls .ep-publication-actions{flex-wrap:nowrap!important;gap:4px}
html[lang][data-theme]:root #app .ep-profile-management .ep-publication-controls .ep-publication-actions>.ep-publication-button>span{gap:3px!important;padding-inline:5px!important}
@container (max-width:350px){html[lang][data-theme]:root #app .ep-profile-management .ep-publication-controls .ep-publication-actions>.ep-publication-button>span>svg{display:none}}
html[data-app-text="large"][lang][data-theme]:root #app .ep-profile-management .ep-publication-controls .ep-publication-actions>.ep-publication-button{flex:1 1 calc(50% - 3px)!important}
/* The pills sit just under the event (Haize, 2026-10-17): no chevron on « Choix du profil », less space above the row. */
html[lang][data-theme]:root #app .ep-profile-management>.ep-profile-select{margin-bottom:7px!important}
html[lang][data-theme]:root #app .ep-profile-management .ep-publication-controls .ep-publication-actions>.ep-publication-button:hover{background:transparent!important}
html[lang][data-theme]:root #app .ep-profile-management .ep-publication-controls .ep-publication-actions>.ep-publication-button:not(:disabled):hover>span{background:color-mix(in srgb,currentColor 7%,transparent)!important}
html[lang][data-theme]:root #app .ep-profile-management .ep-publication-controls .ep-publication-actions>.ep-publication-button:disabled{cursor:default!important}
html[lang][data-theme]:root #app .ep-profile-management .ep-publication-controls .ep-publication-actions>.ep-publication-button:focus-visible{outline:2px solid var(--sg-accent);outline-offset:1px}
/* The publication pill says its state: purple to publish, green once published, amber while something is missing,
   red while it is being withdrawn, grey when the event is offline. */
html[lang][data-theme]:root #app .ep-profile-management .ep-publication-controls .ep-publication-actions>.ep-publication-publish[data-publication-state="ready"]{color:var(--sg-accent)!important}
html[lang][data-theme]:root #app .ep-profile-management .ep-publication-controls .ep-publication-actions>.ep-publication-publish[data-publication-state="ready"]>span{border-color:var(--sg-accent)!important;box-shadow:0 0 0 1px color-mix(in srgb,var(--sg-accent) 45%,transparent),0 0 14px color-mix(in srgb,var(--sg-accent) 32%,transparent)!important}
html[lang][data-theme]:root #app .ep-profile-management .ep-publication-controls .ep-publication-actions>.ep-publication-publish[data-publication-state="published"]{color:var(--sg-action-save,#167442)!important}
html[lang][data-theme]:root #app .ep-profile-management .ep-publication-controls .ep-publication-actions>.ep-publication-publish[data-publication-state="published"]>span{border-color:color-mix(in srgb,var(--sg-action-save,#167442) 70%,transparent)!important}
html[lang][data-theme]:root #app .ep-profile-management .ep-publication-controls .ep-publication-actions>.ep-publication-publish[data-publication-state="incomplete"]{color:#7a5600!important}
html[lang][data-theme]:root #app .ep-profile-management .ep-publication-controls .ep-publication-actions>.ep-publication-publish[data-publication-state="incomplete"]>span{border-color:#c6a443!important}
html[lang][data-theme="dark"]:root #app .ep-profile-management .ep-publication-controls .ep-publication-actions>.ep-publication-publish[data-publication-state="incomplete"]{color:#f3cf72!important}
html[lang][data-theme="dark"]:root #app .ep-profile-management .ep-publication-controls .ep-publication-actions>.ep-publication-publish[data-publication-state="incomplete"]>span{border-color:#a98a3a!important}
html[lang][data-theme]:root #app .ep-profile-management .ep-publication-controls .ep-publication-actions>.ep-publication-publish[data-publication-state="confirm"]{color:var(--sg-action-danger,#d71920)!important}
html[lang][data-theme]:root #app .ep-profile-management .ep-publication-controls .ep-publication-actions>.ep-publication-publish[data-publication-state="confirm"]>span{border-color:var(--sg-action-danger,#d71920)!important}
html[lang][data-theme]:root #app .ep-profile-management .ep-publication-controls .ep-publication-actions>.ep-publication-publish[data-publication-state="offline"]{color:var(--sg-muted)!important}
html[lang][data-theme]:root #app .ep-profile-management .ep-publication-controls .ep-publication-actions>.ep-publication-publish[data-publication-state="offline"]>span{border-color:var(--sg-line)!important}
/* « Retirer », the fourth pill (Haize, 2026-10-17): red while the profile is published, tinted while its panel is open,
   grey when there is nothing to withdraw. */
html[lang][data-theme]:root #app .ep-profile-management .ep-publication-controls .ep-publication-actions>.ep-profile-withdraw{color:var(--sg-action-danger,#d71920)!important}
html[lang][data-theme]:root #app .ep-profile-management .ep-publication-controls .ep-publication-actions>.ep-profile-withdraw>span{border-color:var(--sg-action-danger,#d71920)!important}
html[lang][data-theme]:root #app .ep-profile-management .ep-publication-controls .ep-publication-actions>.ep-profile-withdraw[aria-expanded="true"]>span{background:color-mix(in srgb,var(--sg-action-danger,#d71920) 14%,transparent)!important}
html[lang][data-theme]:root #app .ep-profile-management .ep-publication-controls .ep-publication-actions>.ep-profile-withdraw:disabled{color:var(--sg-muted)!important}
html[lang][data-theme]:root #app .ep-profile-management .ep-publication-controls .ep-publication-actions>.ep-profile-withdraw:disabled>span{border-color:var(--sg-line)!important}

/* « Choix du profil »: a menu rising from the bottom like the notifications, closed by its round cross. */
html.ep-manager-open,html.ep-manager-open body{overflow:hidden!important}
html[lang][data-theme]:root #app .ep-manager-layer{position:fixed;inset:0;z-index:1600;display:flex;align-items:flex-end;justify-content:center;background:#0d0b1299}
html[lang][data-theme="light"]:root #app .ep-manager-layer{background:#24232a59}
html[lang][data-theme]:root #app .ep-manager-layer>.ep-profile-manager{
 box-sizing:border-box;display:flex;flex-direction:column;width:min(560px,100%);max-height:min(84dvh,760px);margin:0;
 padding:0 0 max(16px,env(safe-area-inset-bottom,0px));border:1px solid var(--sg-line);border-bottom:0;border-radius:22px 22px 0 0;
 background:var(--sg-surface);color:var(--sg-text);box-shadow:0 -14px 44px #0000004d;overflow:hidden;
}
html[lang][data-theme]:root #app .ep-manager-head{flex:none;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:0;padding:16px 16px 10px}
html[lang][data-theme]:root #app .ep-manager-head h2{margin:0;font:650 calc(1.1875rem * var(--elan-ui-scale,1))/1.3 var(--elan-ui-font,system-ui);letter-spacing:-.015em;color:var(--sg-text)}
html[lang][data-theme]:root #app .ep-manager-head p{margin:2px 0 0;font-size:calc(.8125rem * var(--elan-ui-scale,1));line-height:1.4;color:var(--sg-muted);overflow-wrap:anywhere}
html[lang][data-theme]:root #app .ep-manager-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:4px 16px 4px}
html[lang][data-theme]:root #app .ep-manager-layer.is-entering{animation:ep-manager-fade 200ms ease-out}
html[lang][data-theme]:root #app .ep-manager-layer.is-entering>.ep-profile-manager{animation:ep-manager-rise 220ms cubic-bezier(.2,.8,.2,1)}
@keyframes ep-manager-fade{from{background:transparent}}
@keyframes ep-manager-rise{from{opacity:.6;transform:translateY(30px)}to{opacity:1;transform:none}}
html[data-app-motion="reduced"] .ep-manager-layer,html[data-app-motion="reduced"] .ep-manager-layer>.ep-profile-manager{animation:none!important}
@media(prefers-reduced-motion:reduce){.ep-manager-layer,.ep-manager-layer>.ep-profile-manager{animation:none!important}}

/* Touch/click must not leave an extra highlight on disclosure and close controls.
   Keyboard navigation retains its visible focus indicator. */
html[lang][data-theme]:root :is(#app,#admin-app,body) :is(button,a,summary){
 -webkit-tap-highlight-color:transparent;
}
html[lang][data-theme]:root :is(#app,#admin-app,body) :is(summary,[data-sg-navigation]):focus:not(:focus-visible){
 outline:none!important;
}
html[lang][data-theme]:root :is(#app,#admin-app,body) :is(.ps2-zone-settings>summary,[data-sg-navigation]){
 background:transparent!important;box-shadow:none!important;
}
@media(hover:none),(pointer:coarse){
 html[lang][data-theme]:root :is(#app,#admin-app,body) :is(.ep-disclosure,.ep-network-editor)>summary:hover{
  background:transparent!important;
 }
}
/* « Enregistrer » sits at the bottom right of what it saves; its status line goes underneath. */
html[lang][data-theme]:root #app .soc-save{justify-content:flex-end!important}
html[lang][data-theme]:root #app .soc-save>p{flex:1 1 100%!important;order:2;margin:0!important;text-align:right}
html[lang][data-theme]:root #app .soc-save>p:empty{display:none!important}
html[lang][data-theme]:root form[data-ps2-size-form]>button[type="submit"]{display:flex!important;width:fit-content!important;margin-left:auto!important}
html[lang][data-theme]:root .v30-save-bar>[data-save-retry]{margin-left:auto!important}
/* Request step 1 leaves for the athlete page: its cross sits at the top right, beside « Étape 1 sur 2 ». */
html[lang][data-theme]:root #app main.bt-editor>.bt-heading[data-sg-close-host="heading"]{display:grid!important;align-items:center!important}
html[lang][data-theme]:root #app main.bt-editor>.bt-heading[data-sg-close-host="heading"]>.bt-back[data-sg-close]{margin:0!important}
/* After « Continuer », the step heading (and its « Précédent ») stops below the sticky header instead of under it. */
html[lang][data-theme]:root #app main.bt-editor>.bt-heading{scroll-margin-top:calc(64px + env(safe-area-inset-top,0px))}
/* Logo details: « Enregistrer les détails » closes the window at the bottom right. */
html[lang][data-theme]:root #app #logo-details-form>button[type="submit"]{order:10!important;justify-self:end!important}
/* Logo details: the title shares the cross's row, as in « Nom », and keeps its margin while the window scrolls. */
html[lang][data-theme]:root #app #logo-details-form.bw-logo-dialog{padding-top:0!important;scroll-padding-top:80px!important}
html[lang][data-theme]:root :is(#app,body) #logo-details-form>header.bw-logo-dialog-head[data-sg-close-host]{
 position:sticky!important;top:0!important;z-index:7!important;min-height:0!important;margin:0 -32px!important;padding:16px 12px 12px 32px!important;background:inherit!important;
}
html[lang][data-theme]:root :is(#app,body) #logo-details-form>header.bw-logo-dialog-head>h2{
 min-height:0!important;margin:0!important;padding:0!important;font-size:calc(1.1875rem * var(--elan-ui-scale,1))!important;font-weight:600!important;line-height:1.3!important;letter-spacing:-.01em!important;
}
/* A lone page cross takes no row of its own (Haize, 2026-10-16): it sits on the row of the title or of the
   « Peau / Tenue » tabs that follow it, 16px under the menu bar. */
html[lang][data-theme]:root :is(#app,#admin-app,body) nav.bv-back.sg-close-beside[data-sg-close-host]{
 display:block!important;height:8px!important;min-height:0!important;margin:0 0 var(--sg-close-beside-pull,0px)!important;padding:0!important;z-index:6!important;
}
html[lang][data-theme]:root :is(#app,#admin-app,body) nav.bv-back.sg-close-beside[data-sg-close-host]>.sg-navigation-control[data-sg-close]{
 position:absolute!important;inset:var(--sg-close-beside-top,8px) var(--sg-close-beside-right,6px) auto auto!important;margin:0!important;
}
html[lang][data-theme]:root :is(#app,#admin-app,body) .sg-close-beside-anchor:not(.fv-services){padding-right:52px!important;box-sizing:border-box!important}
html[lang][data-theme]:root :is(#app,#admin-app,body) .fv-services.sg-close-beside-anchor{width:min(calc(100% - 60px),260px)!important;margin-right:auto!important}
/* Brand page and athlete page: the cross floats at the top right of the photo, away from its edge. */
html[lang][data-theme]:root :is(#app,body) .bd-profile-overlay .bd-profile-panel{position:relative!important}
/* A field reached with the keyboard scrolls into view below the floating cross. */
html[lang][data-theme]:root :is(#app,body) .bd-profile-overlay .bd-profile-panel:has(>.sg-close-on-photo)>.bd-profile-body{scroll-padding-top:64px!important}
html[lang][data-theme]:root :is(#app,body) .bd-profile-overlay .bd-profile-panel>.bd-profile-header.sg-close-on-photo[data-sg-close-host]{
 position:absolute!important;inset:0 0 auto auto!important;display:block!important;width:68px!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;z-index:8!important;
}
html[lang][data-theme]:root :is(#app,body) .abc-public-profile>.abc-profile-toolbar.sg-close-on-photo[data-sg-close-host]{
 display:block!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;z-index:8!important;
}
html[lang][data-theme]:root :is(#app,body) .sg-close-on-photo[data-sg-close-host]>.sg-navigation-control[data-sg-close]{
 position:absolute!important;inset:12px 12px auto auto!important;margin:0!important;
}
/* Event page (Haize, 2026-10-17): the cross sits on the photo's top right instead of on a row of its own, 10px inside
   its corner. The page keeps its own top padding; the side padding is 24px, 16px on a phone. */
html[lang][data-theme]:root #app .cal-event-presentation{--cal-page-side:24px}
@media(max-width:600px){html[lang][data-theme]:root #app .cal-event-presentation{--cal-page-side:16px}}
html[lang][data-theme]:root #app .cal-event-presentation[data-sg-close-host="page"]:has(>.cal-detail-layout>:is(figure,.cal-event-placeholder)){padding-top:var(--sg-close-page-padding,0px)!important}
html[lang][data-theme]:root #app .cal-event-presentation[data-sg-close-host="page"]:has(>.cal-detail-layout>:is(figure,.cal-event-placeholder))>.sg-navigation-control[data-sg-close]{top:calc(var(--sg-close-page-padding,0px) + 7px)!important;right:calc(var(--cal-page-side) + 7px)!important}
/* On a photo the cross reads on any picture, light or dark: a dark veil, a light ring and a white cross. */
:is(html[lang][data-theme]:root #app .cal-event-presentation[data-sg-close-host="page"]:has(>.cal-detail-layout>:is(figure,.cal-event-placeholder))>.sg-navigation-control,.sg-close-on-photo[data-sg-close-host]>.sg-navigation-control)[data-sg-close]{color:#fff!important;filter:drop-shadow(0 1px 3px rgb(0 0 0 / .35))!important}
:is(html[lang][data-theme]:root #app .cal-event-presentation[data-sg-close-host="page"]:has(>.cal-detail-layout>:is(figure,.cal-event-placeholder))>.sg-navigation-control,.sg-close-on-photo[data-sg-close-host]>.sg-navigation-control)[data-sg-close] .sg-close-disc{fill:rgb(18 15 26 / .62)!important;stroke:rgb(255 255 255 / .6)!important}
@media(hover:hover) and (pointer:fine){:is(html[lang][data-theme]:root #app .cal-event-presentation[data-sg-close-host="page"]:has(>.cal-detail-layout>:is(figure,.cal-event-placeholder))>.sg-navigation-control,.sg-close-on-photo[data-sg-close-host]>.sg-navigation-control)[data-sg-close]:hover .sg-close-disc{fill:rgb(18 15 26 / .8)!important}}
/* From the iPad width the photo sits on the left: the athlete's name keeps clear of the cross. */
@media(min-width:701px){html[lang][data-theme]:root #app .abc-profile-toolbar.sg-close-on-photo+.abc-full .abc-copy>h2:first-child{padding-right:44px!important}}
/* Public pages: the round cross keeps the header's breathing room below the status bar. */
html[lang][data-theme]:root #app .fw-header[data-sg-close-host="heading"]{padding-top:max(12px,env(safe-area-inset-top,0px))!important}
/* Paramètres › e-mail and password windows: the save is a button at the bottom right, as in « Nom ». */
html[lang][data-theme]:root .v29-app .ea-settings .ea-credential-dialog footer>button[type="submit"]{flex:0 0 auto!important;width:auto!important}
/* Paramètres › « Enregistrer maintenant »: its outline gets room around the words. */
html[lang][data-theme]:root .v29-app .es-save-slot .v30-save-bar>[data-save-retry]{padding:7px 14px!important}
/* A bottom sheet's header moves under the grabber only when it is sticky; an ordinary header no longer slides over the first paragraph (help sheets). */
html[lang][data-theme]:root :is(#app,#admin-app,body) .sg-sheet-enabled>header:not([style*="--sg-close-host-position"]){top:auto!important}
/* Couleurs et icônes (Haize, 2026-11-11): alone on its row, « Modification » reads at the size of the app's other buttons. */
html[lang][data-theme]:root #app .ep-profile-management .ep-publication-controls .ep-publication-actions>.ep-publication-button:only-child{font-size:calc(.875rem * var(--elan-ui-scale,1))!important;font-weight:600!important}
html[lang][data-theme]:root #app .ep-profile-management .ep-publication-controls .ep-publication-actions>.ep-publication-button:only-child>span{min-height:44px!important;gap:6px!important;border-radius:11px!important}
/* Couleurs et icônes (Haize, 2026-11-11): an action that erases is red text with a red outline everywhere, never on a grey fill
   (« Se déconnecter », « Remettre les démos à zéro » joined « Retirer » and « Refuser »). */
html[lang][data-theme]:root :is(#app) :is(button,a,summary):is([data-sg-danger]){background:transparent!important;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--sg-action-danger,#d71920) 55%,transparent)!important}
html[lang][data-theme]:root :is(#app) :is(button,a,summary):is([data-sg-danger]):hover:not(:disabled){background:color-mix(in srgb,var(--sg-action-danger,#d71920) 8%,transparent)!important}
html[lang][data-theme]:root :is(#app) :is(button,a)[data-elan-control]:is([data-sg-danger]):not([data-elan-control="icon"]):not([data-sg-navigation]){box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--sg-action-danger,#d71920) 55%,transparent)!important}
