
/* Une expérience vocale unique, sans formulaire visible par défaut. */
#fieldView .creation-panel{padding:clamp(17px,3vw,27px)}
#fieldView .creation-panel>.step-title{font-size:11px;letter-spacing:.11em;color:#81939b}
#fieldView .creation-panel>h2{font-size:clamp(25px,4.5vw,32px);margin:5px 0 20px;letter-spacing:-.035em}
.voice-stage{position:relative;isolation:isolate;overflow:hidden;min-height:370px;background:radial-gradient(ellipse at 50% 33%,#245269 0%,#14384a 44%,#0a2332 100%);border-radius:28px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:27px 18px 22px;color:#fff;text-align:center;margin:20px 0 12px;box-shadow:0 15px 40px #102f4029}
.voice-stage-glow{position:absolute;inset:-150px -100px auto;height:250px;background:radial-gradient(ellipse,#b0d0e016,transparent 70%);pointer-events:none}
.voice-headline{position:relative;font-size:clamp(21px,4vw,28px);font-weight:750;letter-spacing:-.035em;line-height:1.2}
.voice-subtitle{position:relative;color:#b9cad3;margin:10px 0 12px;font-size:13px;max-width:260px;line-height:1.5}
.voice-orbit{position:relative;display:grid;place-items:center;width:190px;height:180px;margin:0 auto}
.voice-ring{position:absolute;border-radius:50%;border:1px solid #ffffff23;width:150px;height:150px;pointer-events:none}.ring-two{width:183px;height:183px;border-color:#ffffff0f}
#fieldView .voice-main{display:grid;place-items:center;position:relative;width:118px;height:118px;min-height:118px;padding:0;border:1px solid #fdb16d;background:linear-gradient(155deg,#ff9a4c,#e36a22);color:#fff;border-radius:50%;box-shadow:0 12px 30px #0005,0 0 0 8px #f47a201c;cursor:pointer;transition:transform .18s,background .18s,box-shadow .18s;z-index:2}
#fieldView .voice-main:active{transform:scale(.94)}#fieldView .voice-main:focus-visible{outline:3px solid #fff;outline-offset:7px}
.voice-main-label{font-size:17px;font-weight:780;letter-spacing:-.01em;margin:5px 0 4px;color:#fff}
.voice-visualizer{height:25px;display:flex;align-items:center;gap:5px;margin-top:12px;opacity:.24}.voice-visualizer i{width:4px;height:6px;background:#f7a466;border-radius:5px}
.voice-stage[data-mode="recording"]{background:radial-gradient(ellipse at 50% 33%,#3f5660 0%,#173545 50%,#0a2332 100%)}
.voice-stage[data-mode="recording"] #mic{background:linear-gradient(155deg,#f36f58,#db3d35);border-color:#ffa99b;box-shadow:0 12px 34px #0006,0 0 0 10px #ee5b5033}
.voice-stage[data-mode="recording"] .voice-ring{animation:voicePulse 2.4s ease-out infinite}
.voice-stage[data-mode="recording"] .ring-two{animation-delay:1.1s}
.voice-stage[data-mode="recording"] .voice-visualizer{opacity:1}
.voice-stage[data-mode="recording"] .voice-visualizer i{animation:voiceWave .8s ease-in-out infinite alternate;background:#ffa48f}
.voice-visualizer i:nth-child(2n){animation-delay:.2s}.voice-visualizer i:nth-child(3n){animation-delay:.45s}.voice-visualizer i:nth-child(4n){animation-delay:.12s}
.voice-stage[data-mode="processing"] #mic{opacity:.55;pointer-events:none}.voice-stage[data-mode="processing"] .voice-ring{animation:voicePulse 1.8s ease-in-out infinite}
.voice-stage .voice-status{max-width:310px;margin:9px auto 0;background:#ffffff15!important;color:#fff!important;padding:8px 12px;border:1px solid #ffffff26;border-radius:10px;font-size:12px;line-height:1.4}
.voice-stage .voice-status.hidden{display:none!important}
.voice-manual{font-size:13px;color:#617580;margin:0 0 15px}.voice-manual>summary{cursor:pointer;list-style:none;width:max-content;margin:auto;padding:9px 12px}.voice-manual>summary::before{content:'⌨';margin-right:8px}.voice-manual>summary::-webkit-details-marker{display:none}
.voice-manual[open]{background:#f5f8f9;border-radius:14px;padding:10px}.voice-manual[open] summary{margin:0 0 10px}
@keyframes voicePulse{0%{transform:scale(.92);opacity:.85}100%{transform:scale(1.22);opacity:0}}@keyframes voiceWave{from{height:5px}to{height:25px}}
@media(prefers-reduced-motion:reduce){.voice-stage *{animation:none!important;transition:none!important}}
@media(max-width:600px){.voice-stage{min-height:385px;border-radius:25px;margin-top:17px}#fieldView .creation-panel{padding:18px 14px}.voice-orbit{height:172px}#fieldView .voice-main{height:122px;width:122px}.voice-stage .voice-status{font-size:12px}}

/* V8.8 · Premium field workflow */
.buyer-workspace .split{align-items:center;margin-bottom:18px}
.buyer-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 22px}
.buyer-metric{border:1px solid #e2e9eb;background:#f8faf9;border-radius:20px;padding:18px;display:flex;flex-direction:column;gap:6px}
.buyer-metric.primary{background:#142f40;border-color:#142f40;color:#fff}
.buyer-metric strong{font-size:32px;line-height:1.1;letter-spacing:-.04em}
.buyer-metric span{font-size:13px;font-weight:550;color:#69808b}.buyer-metric.primary span{color:#d0dee5}
.buyer-tools{margin:14px 0 18px;border-top:1px solid #e5ecee;padding-top:13px}
.buyer-tools>summary{list-style:none;cursor:pointer;color:#33586a;font-size:14px;font-weight:650;display:flex;gap:8px;align-items:center}
.buyer-tools>summary::-webkit-details-marker{display:none}.buyer-tools .row{margin-top:12px;gap:8px}
.store-export{grid-column:1/-1;max-width:420px}
#teamArea .panel{max-width:900px;margin-inline:auto}
#usersList{display:grid;gap:12px;margin-top:20px}
#usersList .site-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(170px,220px);gap:14px;align-items:center;padding:16px;border:1px solid #e1e9eb;border-radius:19px;background:#fff;margin:0}
#usersList .team-person{min-width:0;display:flex;align-items:center;gap:12px}
#usersList .team-person b{display:block;overflow-wrap:anywhere}
#usersList .role-access{display:grid;gap:6px;min-width:0}
#usersList .role-control-label{font-size:11px;color:#73858f;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
#usersList select{width:100%;min-width:0;margin:0;max-width:none}
.request-dialog{width:min(94vw,710px);max-height:min(86dvh,900px);overflow-y:auto;border:0;border-radius:28px;padding:28px;box-shadow:0 35px 90px #0b223b35}
.request-dialog .request-dialog-item{border:1px solid #e4eaec;border-radius:17px;padding:12px;margin:10px 0}
.request-dialog-actions{gap:10px;flex-wrap:wrap}.request-dialog-actions #requestAdd{order:0}.request-dialog-actions #requestSave{order:1}
.request-dialog-actions #requestCancel{background:transparent;color:#a34d46;border:0;margin-left:auto;font-size:13px}
.install-sheet{border:0;border-radius:24px;padding:27px;width:min(90vw,440px);box-shadow:0 30px 90px #102b4240}
.install-brand{display:flex;align-items:center;gap:14px}.install-brand img{width:56px;height:56px;border-radius:15px}
.install-brand h2{margin:0;font-size:21px}.install-brand p{margin:5px 0 0;font-size:13px;line-height:1.4;color:#73848d}
.install-sheet #installHelp{line-height:1.6;color:#476273;font-size:14px;margin:22px 0}
#requestVoiceReturn:not(.hidden){margin:12px 0}
@media(max-width:650px){#usersList .site-row{grid-template-columns:1fr;gap:10px}#usersList .role-access{max-width:none}#usersList .team-person{width:100%}.buyer-workspace .tablewrap{overflow-x:auto}.request-dialog{padding:20px 16px;border-radius:25px}.request-dialog-item .grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.request-dialog-item [data-req-name]{grid-column:1/-1}.request-dialog-actions{display:grid;grid-template-columns:1fr}.request-dialog-actions .btn{width:100%;margin:0!important}.buyer-metric{padding:14px}}

.buyer-mobile-list{display:none}.buyer-article-card{border:1px solid #e0e8eb;border-radius:19px;padding:16px;background:#fff;margin-bottom:10px}.buyer-article-main{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.buyer-article-main>div:first-child{min-width:0;flex:1}.buyer-article-main strong{font-size:16px;color:#17384a}.buyer-article-main small{display:block;color:#82939b;font-size:12px;line-height:1.5;margin-top:5px}.buyer-remain{text-align:right;min-width:85px}.buyer-remain strong{display:block;font-size:24px;line-height:1;color:#17384a;font-variant-numeric:tabular-nums}.buyer-remain span{display:block;font-size:11px;margin-top:5px;color:#6b808b}.buyer-article-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:15px;padding-top:13px;border-top:1px solid #e8eeef}.buyer-article-footer span{color:#83949d;font-size:12px}.buyer-article-footer .btn{white-space:nowrap}@media(max-width:720px){.buyer-mobile-list{display:block}.buyer-desktop-table{display:none}}

/* V9.6: consultation compacte des demandes et actions accessibles sur mobile */
.request-dialog .compact-request-item{padding:12px 14px;margin:0;border:0;border-bottom:1px solid #e8edf0;border-radius:0;background:#fff}
.request-dialog .item-view-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.request-dialog .item-view-head strong{font-size:15px;line-height:1.35;color:#15384a}
.request-dialog .item-view-head>span{font-size:13px;font-weight:650;white-space:nowrap;color:#15384a}
.request-dialog .item-view-meta{font-size:12px;line-height:1.5;color:#677e89;margin-top:3px}
.request-dialog .request-item-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.request-dialog .request-item-actions .btn{min-height:34px;padding:7px 11px;font-size:12px}
.request-dialog .request-item-actions:empty{display:none}
.request-dialog .request-item-editor:not(.hidden){margin:10px 0;padding:12px;background:#f7fafb;border-radius:12px}
.request-dialog .request-item-editor.hidden{display:none}
@media(max-width:650px){.request-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border-radius:0;padding:calc(env(safe-area-inset-top,0px) + 18px) 16px calc(env(safe-area-inset-bottom,0px) + 18px)}.buyer-article-card{padding:13px}.buyer-article-footer{gap:8px;flex-wrap:wrap}.buyer-article-footer .btn{font-size:12px;min-height:38px}.buyer-article-footer>span{flex-basis:100%}}

/* V9.6.1 : navigation ciblée et explication des articles en attente */
#voiceStage,#segmentBox{scroll-margin-top:24px} .send-reason-jump{display:inline-block;border:0;background:none;text-decoration:underline;color:#925d10;font:inherit;font-weight:700;cursor:pointer;padding:4px} .send-reason{line-height:1.4}

/* V9.6.2 — détail de demande compact et hiérarchisé, sans formulaire permanent */
.request-dialog .request-progress{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 16px}
.request-progress>div{background:#f3f7f8;border:1px solid #e6ecee;border-radius:12px;display:flex;flex-direction:column;min-width:92px;flex:1;padding:10px 11px;gap:3px}
.request-progress strong{color:#143848;font-size:20px;line-height:1;font-variant-numeric:tabular-nums}
.request-progress span{color:#667b86;font-size:11px;line-height:1.3}
.request-dialog .request-line{padding:13px 0;border-bottom:1px solid #e6edef;background:transparent}
.request-dialog .request-line-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.request-dialog .request-line-name{min-width:0;flex:1;display:flex;flex-direction:column;gap:5px}
.request-dialog .request-line-name>strong{font-size:15px;line-height:1.3;color:#153848;overflow-wrap:anywhere}
.request-dialog .request-line-meta{font-size:12px;line-height:1.5;color:#627b87}
.request-dialog .request-line-meta strong{color:#153848}
.request-dialog .request-line-side{display:flex;align-items:center;gap:7px;flex-shrink:0}
.request-line-state{font-size:11px;font-weight:700;border-radius:7px;padding:5px 7px;background:#f0f4f6;color:#36586a;white-space:nowrap}
.request-line-state.unavailable{background:#fff2df;color:#8a570d}
.request-line-state.done{background:#eaf6ef;color:#226341}
.request-line-state.cancelled{background:#f1f2f4;color:#626b70}
.request-line-menu{position:relative}
.request-line-menu>summary{list-style:none;cursor:pointer;display:grid;place-items:center;font-size:20px;font-weight:750;width:34px;height:34px;border-radius:9px;background:#f3f6f7;color:#315164}
.request-line-menu>summary::-webkit-details-marker{display:none}
.request-line-menu-items{position:absolute;z-index:5;right:0;top:36px;min-width:184px;padding:8px;border-radius:12px;background:#fff;border:1px solid #dce5e8;box-shadow:0 12px 25px #17384824;display:grid;gap:6px}
.request-line-menu-items .btn{white-space:nowrap;text-align:left;justify-content:flex-start;min-height:38px}
.request-dialog .request-dialog-actions{margin-top:16px}
@media(max-width:650px){.request-dialog .request-line-side{gap:4px}.request-line-state{font-size:10px}.request-dialog .request-progress{gap:6px}.request-progress>div{min-width:70px;padding:9px}.request-dialog .request-line{padding:13px 0}}

/* V9.6.6 — liste unique et historique achats */
.buyer-desktop-table{display:none!important}
.buyer-switch{display:flex;gap:6px;flex-wrap:wrap}
.buyer-switch .btn{flex:1;min-width:90px;padding:11px 8px}
.buyer-article-card{padding:15px!important;margin-bottom:9px!important}
.buyer-breakdown{margin-top:10px;border-top:1px solid #e6edf0;padding-top:9px}
.buyer-breakdown summary{font-size:13px;color:#365666;cursor:pointer}
.buyer-breakdown-line,.buyer-history-line{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 2px;border-bottom:1px solid #e8edef;font-size:13px}
.buyer-breakdown-line span{color:#526674}.buyer-breakdown-line strong{white-space:nowrap}
.buyer-history-line strong{font-size:14px}.buyer-history-line small{display:block;color:#667b87;margin-top:5px}
.buyer-history-line>strong{white-space:nowrap;color:#09283a}
#purchaseDialog{max-width:min(520px,calc(100vw - 24px));width:100%}

/* v9.8.4: show uploaded profile photos without initials overlay */
.initials-avatar .mpm-avatar-image{display:block;width:100%;height:100%;border-radius:inherit;object-fit:cover;object-position:center;}

/* V9.8.5: dedicated team view, same avatar rules as Profile. */
#teamView .panel{max-width:900px;margin-inline:auto}
#usersList .team-initials{overflow:hidden}
#usersList .team-initials .mpm-avatar-image{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}

/* V9.8.6 — explicit, contextual editing workflow */
#requestDialog .request-edit-workflow{display:flex;flex-direction:column;gap:10px;margin:18px 0 12px;padding:15px;border-radius:17px;border:1px solid #dbe5e9;background:#f5f8f9}
#requestDialog .request-edit-workflow.hidden,#requestDialog .request-save-feedback.hidden{display:none!important}
#requestDialog .request-edit-heading{display:flex;flex-direction:column;gap:4px;color:#14384b}
#requestDialog .request-edit-heading strong{font-size:15px}
#requestDialog .request-edit-heading span{font-size:13px;color:#57717e}
#requestDialog .request-edit-workflow #requestSave{width:100%;min-height:52px;background:#15384a;color:white;font-weight:750}
#requestDialog .request-edit-workflow #requestDiscard{width:100%;min-height:44px;background:transparent;border:0;box-shadow:none;color:#486473;font-weight:650}
#requestDialog .request-save-feedback{display:block;margin:14px 0;padding:11px 14px;border-radius:12px;color:#176242;background:#eaf5ee;font-size:14px;font-weight:700}
#requestDialog .request-dialog-actions{margin-top:14px!important;padding-top:15px!important;border-top:1px solid #e8edef}
#requestDialog .request-dialog-actions #requestAdd{order:0}
@media(max-width:650px){#requestDialog .request-edit-workflow{padding:12px;margin:15px 0 10px}#requestDialog .request-edit-workflow #requestSave{min-height:56px}}

/* V9.8.7 : disponibilité visible sur les lignes consolidées d'achat */
.buyer-availability-status{display:inline-flex;align-items:center;gap:7px;margin:10px 0 0;padding:6px 10px;border-radius:9px;font-size:12px;font-weight:700;background:#fff0e4;color:#8d4e19;line-height:1.3}
.buyer-availability-status.partial{background:#fff7e8;color:#80611b}
.buyer-availability-dot{width:7px;height:7px;flex:0 0 7px;border-radius:50%;background:currentColor}
.buyer-article-footer button[data-availability]{white-space:normal!important}
