/* Brand workspace, visual layer: athlete feed, "À faire" strip, partnership timeline and « Ma marque » hub. */
.brand-workspace .bw-sections{display:none}
.bv-back{margin:12px 0 -8px}
.bv-back button{min-height:44px;padding:0 14px 0 4px;border:0;background:none;color:var(--es-ink,#17131F);font:inherit;font-weight:700;font-size:15px;cursor:pointer}

.bv-home,.bv-brand{max-width:720px;gap:18px}
.bv-head{display:grid;gap:4px}
.bv-head h1{margin:0;font-size:clamp(28px,7vw,36px);line-height:1.05;letter-spacing:-.02em;color:var(--es-ink,#17131F)}
.bv-head p{margin:4px 0 0;color:var(--es-muted,#504862);font-size:15px;line-height:1.45}
.bv-kicker{font-size:13px;font-weight:700;color:var(--es-muted,#504862)}

/* « À faire »: one small line under the title (count, label, arrow), 34px painted, 44px touch. */
.bv-todo{display:flex;flex-wrap:wrap;gap:0 8px;margin:2px 0 0}
.bv-todo-item{position:relative;isolation:isolate;display:inline-flex;align-items:center;gap:8px;min-height:44px;max-width:100%;margin:0;padding:0 10px 0 5px;border:0;background:none;color:var(--es-ink,#17131F);font:600 calc(.8125rem * var(--elan-ui-scale,1))/1.3 var(--elan-ui-font,system-ui);text-align:left;cursor:pointer}
.bv-todo-item::before{content:"";position:absolute;z-index:-1;inset:5px 0;border-radius:999px;background:var(--es-soft,#F0EBFA);pointer-events:none}
.bv-todo-item b{display:grid;place-items:center;flex:none;min-width:24px;height:24px;padding:0 6px;box-sizing:border-box;border-radius:999px;background:var(--es-accent,#7657FF);color:#FFFFFF;font-size:calc(.75rem * var(--elan-ui-scale,1));font-weight:700;line-height:1;font-variant-numeric:tabular-nums}
.bv-todo-item span{min-width:0;overflow-wrap:break-word}
.bv-todo-item svg{flex:none;color:var(--es-muted,#504862)}
@media(hover:hover){.bv-todo-item:hover::before{background:var(--es-line,#D6D2E0)}}

.bv-sports{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:0 -16px;padding:0 16px}
.bv-sports::-webkit-scrollbar{display:none}

.bv-feed{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:16px}
.bv-card{display:grid;grid-template-rows:auto 1fr;border-radius:22px;overflow:hidden;border:1px solid var(--es-line,#D6D2E0);background:var(--es-panel,#fff);color:var(--es-ink,#17131F)}
.bv-card-photo{position:relative;height:clamp(260px,88vw,400px);background:var(--es-soft,#F0EBFA);cursor:pointer;overflow:hidden}
.bv-card-photo img{width:100%;height:100%;object-fit:cover;object-position:center 22%;display:block}
.bv-card-initials{position:absolute;inset:0;display:grid;place-items:center;font-size:48px;font-weight:800;color:var(--es-muted,#504862)}
.bv-card-event,.bv-card-flag{position:absolute;top:12px;max-width:calc(100% - 24px);padding:7px 12px;border-radius:999px;font-size:13px;font-weight:700;line-height:1.2;overflow-wrap:break-word}
.bv-card-event{left:12px;background:#fff;color:#17131F}
.bv-card-flag{right:12px;background:rgba(23,19,31,.86);color:#fff}
.bv-card-event+.bv-card-flag{top:auto;bottom:12px}
/* The grid stretches every card in a row; flexible copy keeps its action at the same bottom edge. */
.bv-card-body{display:flex;flex-direction:column;gap:10px;padding:14px 16px 16px;min-width:0}
/* Status with this brand: a small tag above the name (green dot while a partnership is under way). */
.bv-card-status{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;margin:0 0 -4px;padding:3px 9px;border-radius:999px;background:var(--sg-soft);color:var(--sg-text);font:600 calc(.75rem * var(--elan-ui-scale,1))/1.3 var(--elan-ui-font,system-ui)}
.bv-card-status::before{content:"";width:7px;height:7px;border-radius:50%;background:#2e9d5b}
.bv-card-status.is-done{color:var(--sg-muted)}
.bv-card-status.is-done::before{background:var(--sg-muted)}
.bv-card-title{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap}
.bv-card-title h2{margin:0;font-size:calc(1.125rem * var(--elan-ui-scale,1));line-height:1.25;overflow-wrap:break-word;min-width:0}
.bv-card-from{font-size:calc(.8125rem * var(--elan-ui-scale,1));font-weight:500;color:var(--es-muted,#504862);white-space:nowrap}
.bv-card-from strong{font-size:calc(.9375rem * var(--elan-ui-scale,1));font-weight:700;color:var(--es-ink,#17131F)}
.bv-card-sport{margin:-6px 0 0;font-size:calc(.8125rem * var(--elan-ui-scale,1));font-weight:500;color:var(--es-muted,#504862)}
/* Sports on the left, the number of free patches on the right, in italics. */
.bv-card-meta{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:2px 12px;margin:-6px 0 0;min-width:0}
.bv-card-meta .bv-card-sport{margin:0;flex:1 1 auto;min-width:0}
.bv-card-zones{flex:none;margin-left:auto;font-style:italic;font-size:calc(.8125rem * var(--elan-ui-scale,1));line-height:1.4;color:var(--es-muted,#504862);white-space:nowrap}
.bv-card-empty{margin:0;font-size:14px;color:var(--es-muted,#504862)}
.bv-card-cta{width:100%;min-height:48px;margin-top:auto;flex-shrink:0}
/* Search behind the magnifier on the left of the sports, as on Événements and Marques. */
.bv-filter{display:grid;min-width:0}
.bv-toolbar{display:flex;align-items:center;gap:8px;min-width:0}
.bv-toolbar .bv-sports{flex:1 1 auto;min-width:0;margin:0 -16px 0 0;padding:0 16px 0 0}
.bv-toolbar[hidden],.bv-search-field[hidden]{display:none!important}
.bv-search-field{position:relative;display:flex;align-items:center;gap:10px;min-height:46px;padding:0 4px 0 14px;border:1px solid var(--es-line,#D6D2E0);border-radius:15px;background:var(--es-panel,#fff);color:var(--es-muted,#504862)}
.bv-search-field>svg{flex:none;width:18px;height:18px}
html[data-theme] #app .bv-search-field input{flex:1 1 auto;min-width:0;min-height:44px!important;margin:0;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:var(--es-ink,#17131F);font:400 calc(1rem * var(--elan-ui-scale,1))/1.3 var(--elan-ui-font,system-ui)}
html[data-theme] #app .bv-search-field input::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none;display:none}
html[data-theme] #app .bv-search-field input:focus,html[data-theme] #app .bv-search-field input:focus-visible{outline:none!important;box-shadow:none!important}
.bv-search-field:focus-within{border-color:var(--es-accent,#7657FF);box-shadow:0 0 0 3px color-mix(in srgb,var(--es-accent,#7657FF) 22%,transparent)}
.bv-search-close{display:grid;place-items:center;flex:none;width:44px;height:44px;min-height:44px;margin:0;padding:0;border:0;border-radius:50%;background:transparent;color:var(--es-muted,#504862);cursor:pointer}

/* Partnership cards: five steps, the current one is named. */
.v27-clean-deal-card>.bv-steps{grid-column:1/-1}
.bv-steps{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:4px;margin:2px 0 0;padding:0;list-style:none}
.bv-steps li{display:grid;gap:6px;font-size:11px;font-weight:600;line-height:1.2;color:var(--es-muted,#504862);min-width:0;overflow-wrap:break-word}
.bv-steps i{display:block;height:6px;border-radius:3px;background:var(--es-line,#D6D2E0)}
.bv-steps li.is-done i{background:var(--es-ink,#17131F)}
.bv-steps li.is-current{color:var(--es-ink,#17131F);font-weight:800}
.bv-steps li.is-current i{background:var(--es-accent-ink,#5F40EE)}
/* On narrow screens keep the five markers and one readable label, never five squeezed words. */
@media(max-width:430px){
  .bv-steps::after{content:attr(data-progress-label);grid-column:1/-1;font-size:13px;line-height:1.4;font-weight:650;color:var(--es-ink,#17131F);white-space:normal;overflow-wrap:anywhere}
  .bv-steps li span{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}

/* « Ma marque » hub */
.bv-demo-note{margin:-6px 0 0;font-size:13px;color:#BAB3C8}
/* « Ma marque », Instagram-like: round logo with three counts beside it, the name below, two equal buttons. */
.bv-hub{display:grid;gap:12px;padding:4px 0 0;color:var(--sg-text)}
.bv-identity{display:flex;gap:20px;align-items:center;min-width:0}
.bv-identity-logo{flex:0 0 84px;height:84px;border-radius:50%;display:grid;place-items:center;overflow:hidden;box-shadow:0 0 0 1px var(--sg-line)}
.bv-identity-logo img{max-width:72%;max-height:72%;object-fit:contain}
.bv-identity-logo span{font-size:26px;font-weight:800;color:var(--sg-text)}
.bv-stats{flex:1 1 auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:0;min-width:0;text-align:center}
.bv-stats div{display:grid;gap:2px;min-width:0}
.bv-stats dd{margin:0;font-size:calc(1.125rem * var(--elan-ui-scale,1));font-weight:700;line-height:1.2;color:var(--sg-text);font-variant-numeric:tabular-nums}
.bv-stats dt{font-size:calc(.8125rem * var(--elan-ui-scale,1));font-weight:500;color:var(--sg-muted);overflow-wrap:break-word}
.bv-identity-text{min-width:0;padding:0;text-align:left;justify-self:stretch}
html[data-theme] #app .bv-hub .bv-identity-text h1{margin:0;padding:0;font-size:calc(1.75rem * var(--elan-ui-scale,1));font-weight:700;line-height:1.2;color:var(--sg-text);text-align:left;overflow-wrap:anywhere}
.bv-identity-text p{margin:2px 0 0;font-size:calc(.875rem * var(--elan-ui-scale,1));color:var(--sg-muted)}
html[data-theme] #app .bv-hub-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
html[data-theme] #app .bv-hub-actions>button{width:100%!important}
.bv-logos{display:grid;gap:10px}
.bv-logos-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px}
.bv-logos-head h2,.bv-profile-title{margin:0;font-size:19px;color:var(--es-ink,#17131F)}
.bv-profile-title{margin-top:6px}
/* Keep every version in a small tile: a single logo never grows to fill the row. */
.bv-logo-grid{--bv-logo-size:88px;display:grid;grid-template-columns:repeat(auto-fill,minmax(0,var(--bv-logo-size)));gap:8px}
.bv-logo{height:var(--bv-logo-size);min-width:0;padding:8px;box-sizing:border-box;border-radius:10px;display:grid;place-items:center;overflow:hidden;border:1px solid var(--es-line,#D6D2E0)}
.bv-logo.is-default{outline:2px solid var(--es-ink,#17131F);outline-offset:-2px}
.bv-logo img{display:block;width:100%;height:100%;min-width:0;min-height:0;max-width:100%;max-height:100%;object-fit:contain}
@media(max-width:480px){.bv-logo-grid{--bv-logo-size:72px}}
.bv-logos-empty{margin:0;color:var(--sg-muted);font-size:calc(.875rem * var(--elan-ui-scale,1));line-height:1.4}
.bv-rows{display:grid;border:1px solid var(--es-line,#D6D2E0);border-radius:18px;background:var(--es-panel,#fff);overflow:hidden}
.bv-rows button{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:56px;padding:0 16px;border:0;border-bottom:1px solid var(--es-line,#D6D2E0);background:transparent;color:var(--es-ink,#17131F);font:inherit;font-size:15px;font-weight:600;text-align:left;cursor:pointer}
.bv-rows button:last-child{border-bottom:0}
.bv-rows i{font-style:normal;font-size:20px;color:var(--es-muted,#504862)}
.brand-workspace .bv-brand>.bw-two-column{grid-template-columns:minmax(0,1fr)}
:is(.bv-todo-item,.bv-search-toggle,.bv-search-close,.bv-sports button,.bv-rows button,.bv-back button):focus-visible{outline:3px solid var(--es-focus,#5F40EE);outline-offset:2px}
@media (prefers-reduced-motion:reduce){.bv-card,.bv-todo-item{transition:none}}
/* Partnerships: the timeline says where each partnership stands, so the long introduction goes. */
.brand-workspace .ac-heading :is(.ac-eyebrow,.ac-intro,.ac-qualification){display:none}
.brand-workspace .ac-heading h1 span{display:none}

/* Partnership sheet: step in progress first, other sections folded. */
.bv-now{display:grid;gap:12px;margin:4px 0 8px;padding:14px;border:1px solid var(--es-line,#D6D2E0);border-radius:16px;background:var(--es-soft,#F0EBFA)}
.bv-now .bv-steps{margin:0}
.bv-now-title{margin:4px 0 0;font-size:calc(1rem * var(--elan-ui-scale,1));color:var(--es-ink,#17131F)}
.bv-now-body{display:grid;gap:12px;min-width:0}
.bv-fold{border:1px solid var(--es-line,#D6D2E0);border-radius:14px;background:var(--es-panel,#fff);margin:8px 0}
.bv-fold>summary{display:flex;align-items:center;justify-content:space-between;min-height:48px;padding:0 16px;font-weight:700;font-size:calc(.9375rem * var(--elan-ui-scale,1));color:var(--es-ink,#17131F);cursor:pointer;list-style:none}
.bv-fold>summary::-webkit-details-marker{display:none}
.bv-fold>summary::after{content:"";width:9px;height:9px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin-top:-4px;transition:transform .15s}
.bv-fold[open]>summary::after{transform:rotate(225deg);margin-top:4px}
.bv-fold>:not(summary){margin:0 8px 8px}
.bv-fold>summary:focus-visible{outline:3px solid var(--es-focus,#5F40EE);outline-offset:2px;border-radius:12px}
@media (prefers-reduced-motion:reduce){.bv-fold>summary::after{transition:none}}

/* Profile editing, one setting at a time (profile-sections.js): Instagram-like rows — setting, value, chevron —
   grouped in one card; each row opens a small sheet with that setting only. */
html[data-theme] #app .ps-host,html[data-theme] #app .v29-app .ps-host{display:block!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
html[data-theme] #app .ps-hidden{display:none!important}
html[data-theme] .pe-list{display:grid;grid-template-columns:minmax(0,1fr);margin:0 0 12px;border:1px solid var(--sg-line);border-radius:14px;background:var(--sg-surface);overflow:hidden}
html[data-theme] .pe-list>.pe-row+.pe-row{border-top:1px solid var(--sg-line)}
html[data-theme] .pe-row{display:flex;align-items:center;gap:12px;width:100%;min-height:52px;margin:0;padding:6px 10px 6px 16px;border:0;border-radius:0;background:transparent;color:var(--sg-text);text-align:left;font:inherit;cursor:pointer}
.pe-label{flex:0 1 auto;min-width:0;font:600 calc(.875rem * var(--elan-ui-scale,1))/1.3 var(--elan-ui-font,system-ui)}
.pe-value{flex:1 1 0;min-width:0;text-align:right;color:var(--sg-muted);font:400 calc(.875rem * var(--elan-ui-scale,1))/1.3 var(--elan-ui-font,system-ui);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pe-value.is-empty{color:var(--sg-accent)}
.pe-chevron{flex:none;display:grid;place-items:center;margin-left:auto;color:var(--sg-muted)}
@media(hover:hover){html[data-theme] .pe-row:hover{background:var(--sg-soft)}}
html[data-theme] .pe-row:focus-visible{outline:2px solid var(--sg-accent);outline-offset:-2px}
.pe-group{margin:18px 0 8px;font:700 calc(.75rem * var(--elan-ui-scale,1))/1.3 var(--elan-ui-font,system-ui);letter-spacing:.05em;text-transform:uppercase;color:var(--sg-muted)}
.ps-saved{flex:none;padding:2px 8px;border-radius:999px;background:var(--sg-sel-bg,var(--sg-soft));color:var(--sg-sel-ink,var(--sg-accent));font-size:12px;font-weight:600}
/* The sheet: the setting's own field, at full width, then Save. */
html[data-theme] dialog.pe-sheet .pe-body{display:grid;gap:12px;padding:6px 20px 8px;min-width:0}
html[data-theme] dialog.pe-sheet .pe-body label{display:grid;gap:6px;margin:0;font-size:14px;font-weight:600;color:var(--sg-text)}
html[data-theme] dialog.pe-sheet .pe-body :is(input:not([type=checkbox]):not([type=radio]),select,textarea){width:100%;box-sizing:border-box}
html[data-theme] dialog.pe-sheet .pe-body textarea{min-height:120px}
html[data-theme] dialog.pe-sheet .pe-error{margin:0;padding:10px 12px;border-radius:12px;background:color-mix(in srgb,var(--sg-danger) 14%,transparent);color:var(--sg-text);font-size:14px}
html[data-theme] dialog.pe-sheet>footer:empty{display:none}
.ae-profile-edit>.ae-page-heading{align-items:flex-start;flex-direction:column}
html[data-theme] .ae-profile-edit>.ae-page-heading h1{flex:none!important}
html[data-theme] .ae-profile-edit .v29-profile-grid{grid-template-columns:minmax(0,1fr)!important;max-width:680px;margin-inline:auto}
/* Reset explicit wide-screen column assignments as well as the template. Without
   this, the preview creates an implicit second column and squeezes the fields. */
html[data-theme] #app .ae-profile-edit .v29-profile-grid{width:100%;min-width:0;grid-auto-columns:minmax(0,1fr);gap:20px}
html[data-theme] #app .ae-profile-edit .v29-profile-grid>:is(#athlete-profile-form,.ae-edit-preview){grid-column:1/-1!important;grid-row:auto!important;width:100%;min-width:0;max-width:100%;box-sizing:border-box}
html[data-theme] #app .pe-park[hidden],html[data-theme] #app .ps-hidden{display:none!important}
html[data-theme] #app :is(#athlete-profile-form,#brand-profile-form).ps-host{width:100%;min-width:0;max-width:100%}
html[data-theme] #app .pe-list,html[data-theme] #app .pe-row{min-width:0;max-width:100%;box-sizing:border-box}
html[data-theme] dialog.help-sheet.pe-sheet{position:fixed;inset:0;margin:auto;width:calc(100% - 24px);max-width:600px;max-height:calc(100dvh - 24px);box-sizing:border-box;overflow:auto;overscroll-behavior:contain}
html[data-theme] dialog.pe-sheet :is(.pe-body,.soc-panel,.soc-editor,.p33-presentation){min-width:0;max-width:100%;box-sizing:border-box}
html[data-theme] dialog.pe-sheet .pe-body :is(input,select,textarea){min-width:0!important;max-width:100%;font-size:16px}
html[data-theme] dialog.pe-sheet .p33-presentation{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
html[data-theme] dialog.pe-sheet .p33-presentation :is(img,svg){max-width:100%;height:auto}
html[data-theme] dialog.pe-sheet>footer{display:flex;flex-wrap:wrap;gap:12px;padding:16px 20px}
html[data-theme] dialog.pe-sheet>footer button{min-height:48px;max-width:100%;white-space:normal}
@media(orientation:landscape) and (max-height:600px){html[data-theme] dialog.help-sheet.pe-sheet{max-height:calc(100dvh - 16px);width:calc(100% - 32px)}html[data-theme] dialog.pe-sheet>header{padding:12px 20px}html[data-theme] dialog.pe-sheet>footer{padding:12px 20px}}
.pe-help{margin:0;color:var(--sg-muted);font-size:14px;line-height:1.5}
html[data-theme] dialog.ps-exit{width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto}
html[data-theme] dialog.ps-exit .pe-body p{margin:0;font-size:14px;line-height:1.6;color:var(--sg-text)}
html[data-theme] dialog.ps-exit .ps-exit-actions{display:grid;gap:8px;padding:12px 20px 20px}
html[data-theme] dialog.ps-exit .ps-exit-actions button{width:100%;min-height:44px;white-space:normal}
.ea-privacy{margin-bottom:20px}
.ea-privacy h3{margin:0 0 8px;font-size:15px;line-height:1.4;color:var(--es-ink)}
.ea-privacy h3:not(:first-child){margin-top:16px}
html[data-theme] #app .ep-save-slot .v30-save-bar button{min-height:44px!important}
