/* One current action; full record details stay available without dominating the task. */
#drawer .nb-focused.nb-workspace{display:grid!important;gap:16px;padding:20px;max-width:100%;min-width:0}
#drawer .nb-focused .nb-summary{padding-bottom:12px;gap:12px;align-items:center}
#drawer .nb-focused .nb-summary h2{font-size:20px;margin:0 0 6px;line-height:1.25}
#drawer .nb-focused .nb-summary p{font-size:12px;line-height:1.5;margin:2px 0}
#drawer .nb-focused .nb-stage{font-size:12px;max-width:100%;white-space:normal}
#drawer .nb-focused .nb-focus-action{min-width:0;display:grid;gap:12px;padding:16px;border:1px solid var(--hairline);border-radius:12px;background:var(--card)}
#drawer .nb-focused .nb-focus-action>h3{font-size:18px;line-height:1.3;margin:0}
#drawer .nb-focused .nb-focus-hint{font-size:13px;line-height:1.5;margin:0;color:var(--stone)}
#drawer .nb-focused .nb-focus-action p[role=status]:empty{display:none}
#drawer .nb-focused .nb-all-details{padding:0;margin:0;border-top:1px solid var(--hairline);font-size:13px;color:var(--stone)}
#drawer .nb-focused details>summary{min-height:48px;display:list-item;align-content:center;cursor:pointer;color:var(--ink)}
#drawer .nb-focused .nb-all-details>details,#drawer .nb-focused .nb-all-details>.bi-step{margin:0 0 12px;padding:12px;border:1px solid var(--hairline);border-radius:8px;background:var(--card)}
#drawer .nb-focused .nb-all-details .bv-details{margin:12px 0;gap:12px}
#drawer .nb-focused .nb-all-details .bv-details dt{font-size:12px}
#drawer .nb-focused .nb-all-details .bv-details dd{font-size:14px}
#drawer .nb-focused .nb-nav{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 12px}
#drawer .nb-focused .nb-nav button{flex:1 1 130px;min-height:44px;font-size:12px;padding:8px 10px}
#drawer .nb-focused .nb-footer{margin:0;padding:12px 0 calc(12px + env(safe-area-inset-bottom,0px));justify-content:flex-end;min-height:0}
#drawer .nb-focused .nb-footer:has(>button[hidden]):not(:has(>button:not([hidden]))){display:none}
#drawer .nb-focused .nb-footer button{min-height:48px;white-space:normal;max-width:100%;margin:0}
#drawer .nb-focused .nb-primary{background:var(--bleu);color:var(--on-action,#fff);border-color:var(--bleu)}
#drawer .nb-focused .nb-focus-action .bi-step{padding:0;margin:0;border:0}
#drawer .nb-focused .nb-focus-action .bi-step>h3{font-size:12px;color:var(--stone);margin:0}
#drawer .nb-focused .nb-focus-action .bi-step>p{font-size:15px;margin:4px 0}
#drawer .nb-focused .nb-staff-focused> :not([data-staff-contribution]):not(.si-staff-heading):not([data-si-message]):not([role=status]):not([role=alert]){display:none!important}
#drawer .nb-focused .nb-staff-focused .si-staff-heading{font-size:14px}
#drawer .nb-focused .nb-staff-focused{padding:0;border:0;margin:0}
#drawer .nb-focused .nb-seller-review{justify-self:start;font-size:13px;min-height:44px}
#drawer .nb-focused [hidden]{display:none!important}
#drawer .nb-focused button:focus-visible,#drawer .nb-focused summary:focus-visible{outline:2px solid var(--bleu);outline-offset:3px}
@media(max-width:640px){#drawer .nb-focused.nb-workspace{padding:16px;gap:12px}#drawer .nb-focused .nb-summary h2{font-size:18px}#drawer .nb-focused .nb-summary{align-items:start;flex-wrap:wrap}#drawer .nb-focused .nb-focus-action{padding:14px}#drawer .nb-focused .nb-footer button{flex:1}#drawer .nb-focused .nb-all-details .bv-details{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){#drawer .nb-focused *{scroll-behavior:auto!important;transition:none!important}}
@media(forced-colors:active){#drawer .nb-focused .nb-primary{border-color:ButtonText;color:ButtonText;background:ButtonFace}}
/* Keep the actual Close bar; remove its duplicate record-kind heading only when that bar exists. */
html:root #drawer#drawer:has(.nb-focused):has(>.brs-top [data-close])>.dh.brs-head{display:none!important}
#drawer:has(.nb-focused)>.brs-top .brs-top-t[data-mrs-kind]::after{content:'New buy'!important}
#drawer .nb-focused .nb-all-details>.bd-deal-entry{padding:0;margin:4px 0 12px}
#drawer .nb-focused .nb-all-details>.bd-deal-entry button{width:auto;min-height:44px;padding:8px 12px;font-size:13px}

#drawer .nb-focused .nb-focus-action:has([data-shared-buying] [role=heading])>.nb-focus-hint{display:none}
#drawer .nb-focused .nb-focus-action:has([data-shared-buying] [role=heading])>h3{font-size:13px;color:var(--stone);font-weight:500}

#drawer .nb-focused .nb-staff-focused>.si-staff-heading{display:none!important}
