.boWorkspace {
  width: min(100%, 984px);
  margin-inline: auto;
  padding: clamp(20px, 4vw, 52px) var(--margin) 58px;
}
.boPageHead {
  background: var(--navy); color: white; border-radius: var(--radius) var(--radius) 0 0;
  padding: clamp(19px, 3vw, 34px); display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 10px 20px;
}
.boPageHead h1 { margin: 3px 0 0; font-size: var(--s-head); line-height: 1.25; letter-spacing: -.025em; }
.boBrand { color: var(--gold); font-size: var(--s-small); font-weight: 600; letter-spacing: .07em; }
.boDemo { color: var(--ground); border: 1px solid var(--muted); border-radius: var(--radius); padding: 2px 10px; font-size: var(--s-small); white-space: nowrap; }
.boBack { display: inline-flex; align-items: center; min-height: 40px; margin-bottom: 8px; color: var(--navy); text-underline-offset: 4px; }
.boTabs, .boFilters { display: flex; align-items: stretch; white-space: nowrap; overflow-x: auto; }
.boTabs { gap: clamp(14px, 3vw, 36px); background: white; padding-inline: clamp(14px, 3vw, 30px); border: 1px solid var(--rule); }
.boTabs a, .boFilters a { display: inline-flex; align-items: center; text-decoration: none; }
.boTabs a { padding-block: 14px 12px; color: var(--muted); border-bottom: 3px solid transparent; font-size: var(--s-card); font-weight: 600; }
.boTabs a[aria-current] { color: var(--navy); border-color: var(--gold); }
.boPanel, .boInbox, .boChat { min-width: 0; background: white; border: 1px solid var(--rule); border-radius: var(--radius); }
.boPanel { margin-top: 15px; padding: clamp(13px, 3vw, 27px); }
.boPanel h2, .boInbox h2 { color: var(--navy); font-size: var(--s-lead); }
.boPanelHead, .boTools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.boPanelHead { justify-content: space-between; margin-bottom: 8px; }
.boTools { margin-top: 20px; }
.boFilters { gap: 6px; padding-bottom: 13px; border-block-end: 1px solid var(--rule); }
.boFilters a { min-height: 44px; padding: 5px 11px; border-radius: var(--radius); color: var(--muted); font-size: var(--s-card); }
.boFilters a:hover, .boTabs a:hover { color: var(--navy); }
.boFilters a[aria-current] { background: var(--navy); color: #fff; }
.boOrderRow { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 15px; padding-block: 14px; color: var(--ink); text-decoration: none; }
.boOrderRow + .boOrderRow, .boAccountLinks a + a, .boFields > div + div { border-block-start: 1px solid var(--rule); }
.boOrderRow:hover .boRowMain strong, .boProduct:hover strong { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.boOrderRow img, .boProduct img { width: 72px; height: 72px; object-fit: cover; border-radius: 0; background: var(--surface); }
.boRowMain, .boProduct > span { display: grid; min-width: 0; gap: 3px; }
.boRowMain small, .boProduct small, .boRowMain > span { color: var(--muted); font-size: var(--s-small); }
.boRowEnd { display: grid; grid-template-columns: auto 12px; justify-items: end; align-items: center; gap: 5px 7px; }
.boRowEnd > strong { grid-column: 1; font-size: var(--s-card); }
.boArrow { color: var(--muted); font: var(--s-lead)/1 var(--f-latin); }
.boRowEnd .boArrow { grid-column: 2; grid-row: 1 / span 2; }
[dir="rtl"] .boArrow { transform: scaleX(-1); }
.boStatus { display: inline-flex; align-items: center; width: fit-content; border-radius: 4px; padding: 2px 8px; font-size: var(--s-small); font-weight: 600; background: var(--surface); color: var(--muted); }
.boStatus-pending, .boStatus-payment { background: color-mix(in srgb, var(--gold) 25%, white); color: var(--navy-deep); }
.boStatus-processing, .boStatus-shipped { background: color-mix(in srgb, var(--navy) 8%, white); color: var(--navy); }
.boStatus-completed, .boStatus-active { background: color-mix(in srgb, var(--ok) 10%, white); color: var(--ok); }
.boEmpty { margin-block: 22px; color: var(--muted); }
.boPendingQuotes { margin-block-start: 24px; border-block-start: 1px solid var(--rule); padding-block-start: 16px; }
.boProduct { display: flex; align-items: center; gap: 13px; width: fit-content; max-width: 100%; color: var(--ink); text-decoration: none; }
.boFields { margin-top: 16px; }
.boFields > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding-block: 9px; }
.boFields dt, .boForm small, .boForm [data-bo-available] { color: var(--muted); font-size: var(--s-card); }
.boFields dd { font-weight: 600; }
.boForm { display: grid; gap: 12px; }
.boForm label { display: grid; gap: 6px; color: var(--navy); font-weight: 600; }
.boForm :is(input,select), .boComposer textarea { width: 100%; min-width: 0; background: white; border: 1px solid var(--muted); border-radius: var(--radius); padding: 8px 12px; }
.boForm .btn { justify-self: start; }
.boError { color: var(--warn); }
.boError:empty { display: none; }
.boAccountLinks > a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 54px; text-decoration: none; }
.boChatLayout { margin-top: 14px; display: grid; gap: 14px; }
.boHasInbox { grid-template-columns: minmax(180px, .7fr) minmax(0, 2fr); }
.boInbox { align-self: start; padding: 14px; }
.boInbox h2 { line-height: 1.3; margin-bottom: 10px; }
.boInbox a { display: grid; gap: 3px; padding: 8px; border-radius: 4px; text-decoration: none; }
.boInbox a[aria-current] { background: color-mix(in srgb, var(--navy) 8%, white); color: var(--navy); }
.boInbox small { color: var(--muted); }
.boChatHead { padding: 12px 18px; border-bottom: 1px solid var(--rule); }
.boChatHead .boProduct img { width: 48px; height: 48px; }
.boItems summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.boItems .boProduct { margin-top: 8px; }
.boChatLog { min-height: 210px; height: clamp(230px, 35vh, 390px); overflow-y: auto; padding: clamp(12px, 2.5vw, 24px); background: var(--ground); display: flex; flex-direction: column; gap: 12px; }
.boBubble { align-self: flex-start; max-width: min(84%, 530px); background: white; border: 1px solid var(--rule); border-radius: var(--radius); padding: 8px 12px; }
.boBubble small, .boChatNote { font-size: var(--s-small); color: var(--muted); }
.boBubble p { margin-top: 2px; overflow-wrap: anywhere; white-space: pre-wrap; }
.boMine { align-self: flex-end; background: color-mix(in srgb, var(--navy) 8%, white); border-color: var(--rule); }
.boComposer { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 9px; align-items: end; padding: 12px 14px 6px; border-block-start: 1px solid var(--rule); }
.boComposer textarea { resize: vertical; line-height: 1.4; }
.boChatNote { margin: 0 14px 10px; }
.boTabs :focus-visible, .boFilters :focus-visible { outline-offset: -2px; }
@media (max-width: 600px) {
  html:has(.boWorkspace) { scroll-padding-block-end: calc(76px + env(safe-area-inset-bottom)); }
  .boWorkspace { padding: 10px 12px 25px; }
  .boPageHead { padding: 15px; }
  .boPanel { padding: 12px; margin-top: 10px; }
  .boTabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; padding-inline: 6px; white-space: normal; }
  .boTabs a { justify-content: center; padding: 9px 2px; min-height: 46px; line-height: 1.35; text-align: center; font-size: var(--s-card); }
  .boOrderRow { grid-template-columns: 57px minmax(0,1fr) minmax(0,max-content); padding-block: 12px; gap: 9px; }
  .boOrderRow img { width: 57px; height: 62px; }
  .boRowMain strong { font-size: var(--s-card); line-height: 1.3; }
  .boRowMain small, .boRowMain > span { font-size: var(--s-small); }
  .boRowEnd { grid-template-columns: 1fr; gap: 6px; max-width: 105px; }
  .boRowEnd .boArrow { display: none; }
  .boStatus { font-size: var(--s-small); padding: 3px 6px; text-align: end; }
  .boHasInbox { grid-template-columns: minmax(0,1fr); }
  .boInbox { max-height: 165px; overflow-y: auto; }
  .boItems { max-height: 150px; overflow-y: auto; }
  .boChatLog { height: clamp(170px, 28dvh, 250px); min-height: 170px; }
  .boComposer { position: sticky; bottom: calc(64px + env(safe-area-inset-bottom)); background: white; }
  [data-page="purchase-staff"] .boComposer { bottom: 0; }
}
