/* Native quotation threads: local glass bubble, no modal or page backdrop. */
#root .quote-live button.quote-comment-trigger,
#root .quotation-desk .quote-supplier-tile--unified .quote-supplier-tools button.quote-comment-trigger{position:relative!important;overflow:visible!important}
.quote-save-confirm.quote-comment-popover{
  position:fixed!important;inset:auto;margin:0!important;
  z-index:2147482000;box-sizing:border-box;display:flex;flex-direction:column;gap:12px;
  min-width:0!important;width:min(370px,calc(100vw - 24px));max-width:calc(100vw - 24px)!important;
  padding:18px!important;border-radius:22px!important;border:1px solid #ffffffb8;
  background:#f9fbff;color:#17243a;box-shadow:0 18px 48px #14213a24,0 3px 12px #14213a14;
  overflow:visible;isolation:isolate;outline:none;
  font-size:13px;line-height:1.5;
}
.quote-comment-popover:not([data-positioned=true]){visibility:hidden}
.quote-comment-popover::before{
  content:'';position:absolute;left:var(--quote-comment-arrow,50%);width:15px;height:15px;
  background:inherit;border:inherit;z-index:-1;transform:translateX(-50%) rotate(45deg);pointer-events:none;
}
.quote-comment-popover[data-placement=above]::before{bottom:-8px;border-top:0;border-left:0}
.quote-comment-popover[data-placement=below]::before{top:-8px;border-bottom:0;border-right:0}
.quote-comment-popover .quote-comment-header{display:flex;align-items:flex-start;gap:10px;flex:none}
.quote-comment-popover .quote-comment-header>div{min-width:0;flex:1}
.quote-comment-popover .quote-comment-header h2{font-size:15px;line-height:1.3;margin:0 0 4px}
.quote-comment-popover .quote-comment-header p{font-size:12px;line-height:1.4;color:#536179;overflow-wrap:anywhere;margin:0}
.quote-comment-popover .quote-comment-header .icon-button{min-width:30px;min-height:30px;width:30px;height:30px;border-radius:50%;color:inherit}
.quote-comment-popover .quote-comment-history{flex:1 1 auto;min-height:28px;max-height:220px;overflow:auto;overscroll-behavior:contain;padding:0;scrollbar-width:thin}
.quote-comment-popover .quote-comment-history ol{padding:0;margin:0;list-style:none}
.quote-comment-popover .quote-comment-history li{padding:10px 0;border-bottom:1px solid #8090ad26}
.quote-comment-popover .quote-comment-history li:first-child{padding-top:0}
.quote-comment-popover .quote-comment-history li:last-child{padding-bottom:0;border-bottom:0}
.quote-comment-popover .quote-comment-history li p{font-size:13px;line-height:1.5;margin:5px 0 0;overflow-wrap:anywhere}
.quote-comment-popover .quote-comment-meta{display:flex;flex-wrap:wrap;gap:4px 10px;justify-content:space-between;font-size:12px}
.quote-comment-popover .quote-comment-meta time{font-size:12px;color:#536179}
.quote-comment-popover .quote-comment-form{display:flex;flex-direction:column;gap:7px;flex:none;margin:0}
.quote-comment-popover .quote-comment-form label{font-size:12px;font-weight:700}
.quote-comment-popover .quote-comment-form textarea{box-sizing:border-box;width:100%;min-height:70px;max-height:110px;resize:vertical;padding:9px 11px;border-radius:13px;border:1px solid #8895b14d;background:#ffffffa8;color:inherit;font:inherit;font-size:13px;line-height:1.45}
.quote-comment-popover .quote-comment-form footer{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin:0}
.quote-comment-popover .quote-comment-form footer>span{font-size:12px;margin-right:auto}
.quote-comment-popover .quote-comment-form button{border-radius:999px;min-height:36px;padding:7px 14px;font-size:12px}
.quote-comment-popover .quote-comment-error{flex:none;max-height:80px;overflow:auto;font-size:12px}
.quote-comment-popover .quote-comment-error p{margin:0;color:#b63044}
.quote-comment-popover .quote-comment-empty{font-size:13px;color:#536179;margin:0}
html[data-theme=dark] .quote-comment-popover{background:#182235;color:#edf2fb;border-color:#afbfda38;box-shadow:0 20px 54px #0007,0 3px 12px #0003}
html[data-theme=dark] .quote-comment-popover :is(.quote-comment-header p,.quote-comment-meta time,.quote-comment-empty){color:#afbdd3}
html[data-theme=dark] .quote-comment-popover .quote-comment-form textarea{background:#0a132478;border-color:#b4c4e43d}
html[data-theme=dark] .quote-comment-popover .quote-comment-error p{color:#ffabb6}
@supports(backdrop-filter:blur(1px)){
 .quote-save-confirm.quote-comment-popover{background:#f9fbffed;backdrop-filter:blur(20px) saturate(1.2);-webkit-backdrop-filter:blur(20px) saturate(1.2)}
 html[data-theme=dark] .quote-comment-popover{background:#182235ed}
}
@media(max-height:500px){.quote-comment-popover .quote-comment-history{max-height:105px}.quote-comment-popover .quote-comment-form textarea{min-height:50px;max-height:70px}.quote-save-confirm.quote-comment-popover{gap:8px;padding:12px!important}}
@media(prefers-reduced-transparency:reduce){.quote-save-confirm.quote-comment-popover{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:#f9fbff}html[data-theme=dark] .quote-comment-popover{background:#182235}}

.quote-comment-popover[data-constrained=true]{overflow:auto;overscroll-behavior:contain}
.quote-comment-popover[data-constrained=true]::before{display:none}
@media(max-width:600px){
 .quote-comment-popover .quote-comment-header .icon-button{min-width:44px;min-height:44px;width:44px;height:44px;margin:-7px -7px 0 0}
 .quote-comment-popover .quote-comment-form button{min-height:44px}
}
/* Pulse exactly the phase the user is viewing; workflow state remains a separate marker. */
#root .dossier-tabs>button:not(.is-active)[role=tab] .dossier-tab-label{animation:none!important;color:var(--text,#182235)!important;opacity:1!important;filter:none!important;text-shadow:none!important}
#root .dossier-tabs>button.is-active[role=tab] .dossier-tab-label{color:var(--action,#7950df)!important;animation:uuc-current-phase 3.6s ease-in-out infinite!important}
@media(prefers-reduced-motion:reduce){#root .dossier-tabs>button.is-active[role=tab] .dossier-tab-label{animation:none!important;opacity:1!important;filter:none!important;text-shadow:0 0 8px #9e77ee35}}
