/* Buyer account, support and offer pages share the catalogue's calm hierarchy.
   Scoped to buyers; manager layout and transactional controls keep their logic. */
.buyer-ui { --buyer-surface:#fff; --buyer-border:#dce3e9; --buyer-muted:#526176; }
.buyer-ui main :is(h1,h2,h3,p,dd,.notification-copy,.timeline-content,.bundle-item>div,.personal-offer-body,.session-showcase-body) { min-width:0; overflow-wrap:anywhere; }
.buyer-ui :is(.page-head,.upcoming-hero,.notification-hero) { background:#f6f8fa; color:#16263d; border-bottom:1px solid var(--buyer-border); }
.buyer-ui .page-head { padding:24px 0; }
.buyer-ui .page-head h1 { margin:5px 0 8px; font-size:30px; line-height:1.18; }
.buyer-ui .page-head p { max-width:65ch; margin:0; font-size:14px; line-height:1.6; }
.buyer-ui :is(.upcoming-hero-inner,.notification-hero-inner) { min-height:0; padding-top:24px; padding-bottom:24px; gap:20px; }
.buyer-ui :is(.upcoming-hero,.notification-hero) h1 { color:#16263d; font-size:30px; line-height:1.2; }
.buyer-ui :is(.upcoming-hero,.notification-hero) :is(p,.eyebrow) { color:var(--buyer-muted); font-size:14px; }
.buyer-ui :is(.upcoming-hero,.notification-hero) .eyebrow { color:var(--buyer-muted) !important; }
.buyer-ui :is(.upcoming-hero-count,.notification-hero-count) { background:#fff; border:1px solid var(--buyer-border); border-radius:10px; min-width:112px; padding:12px 16px; }
.buyer-ui :is(.upcoming-hero-count,.notification-hero-count) b { font-size:24px; }
.buyer-ui :is(.upcoming-hero-count,.notification-hero-count) span { color:var(--buyer-muted); text-transform:none; letter-spacing:0; font-size:13px; }
.buyer-ui :is(.demand-request-card,.demand-history-card,.feedback-ticket-card,.feedback-history-card) { padding:24px; }
.buyer-ui :is(.demand-request-card,.demand-history-card) .section-head.compact { margin:0 0 20px; }
.buyer-ui :is(.demand-request-card,.demand-history-card,.profile-security-card) h2 { font-size:22px; line-height:1.25; }
.buyer-ui :is(.profile-grid,.profile-security-grid,.feedback-layout,.notifications-layout,.demand-request-layout)>* { min-width:0; }
.buyer-ui :is(.profile-contact-form,.profile-security-form,.feedback-form,.demand-request-form) :is(label,small) { font-size:14px; line-height:1.5; }
.buyer-ui :is(.profile-contact-form,.profile-security-form,.feedback-form,.demand-request-form) :is(input:not([type=checkbox]):not([type=hidden]),select,textarea) { min-width:0; max-width:100%; min-height:44px; font-size:16px; }
.buyer-ui .demand-request-form { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.buyer-ui .demand-request-form textarea { width:100%; resize:vertical; min-height:80px; padding:10px 12px; border:1px solid #cbd5df; border-radius:8px; font:inherit; font-size:16px; }
.buyer-ui .demand-details { margin:0; padding:0; border-top:1px solid var(--buyer-border); border-bottom:1px solid var(--buyer-border); }
.buyer-ui .demand-details>summary { min-height:48px; padding:12px 0; cursor:pointer; font-size:14px; font-weight:600; }
.buyer-ui .demand-details>summary small { color:var(--buyer-muted); font-weight:400; margin-left:4px; }
.buyer-ui .demand-details-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; padding:4px 0 20px; }
.buyer-ui .profile-edit { margin-top:8px; border-top:1px solid var(--buyer-border); }
.buyer-ui .profile-edit>summary { cursor:pointer; padding:12px 0; min-height:44px; color:#173f78; font-size:14px; font-weight:600; }
.buyer-ui .profile-security-item { background:#fff; gap:10px; }
.buyer-ui .profile-security-item>p { font-size:13px; line-height:1.6; }
.buyer-ui .profile-security-card { margin-top:28px; }
.buyer-ui .profile-lock-note { line-height:1.6; }
.buyer-ui .buyer-empty-state { padding:24px; border:1px solid var(--buyer-border); border-radius:10px; background:#f8fafb; }
.buyer-ui .buyer-empty-state h3 { font-size:19px; margin:0 0 8px; }
.buyer-ui .buyer-empty-state p { max-width:58ch; font-size:14px; color:var(--buyer-muted); margin:0 0 18px; line-height:1.6; }
.buyer-ui .buyer-empty-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px 20px; font-size:14px; }
.buyer-ui .buyer-empty-actions>a:not(.btn) { min-height:44px; display:inline-flex; align-items:center; text-decoration:underline; text-underline-offset:3px; }
.buyer-ui .upcoming-empty { padding:32px 24px; max-width:720px; margin:0 auto; background:#fff; }
.buyer-ui .upcoming-empty h2 { font-size:22px; margin:0 0 12px; }
.buyer-ui .upcoming-empty p { margin:0 0 20px; font-size:15px; }
.buyer-ui :is(.notification-copy p,.notification-settings p,.notification-settings-form small,.notifications-head p) { font-size:14px; line-height:1.6; }
.buyer-ui .notification-meta { flex-wrap:wrap; gap:4px 14px; font-size:12px; }
.buyer-ui .notification-actions { flex-wrap:wrap; }
.buyer-ui .notification-actions :is(a,button) { min-height:44px; display:inline-flex; align-items:center; font-size:13px; }
.buyer-ui .notification-settings-form input[type=checkbox] { width:18px; height:18px; flex:none; }
.buyer-ui .cabinet-tabs { flex-wrap:wrap; overflow:visible; gap:6px; border:0; margin:0; padding:0; }
.buyer-ui .cabinet-tabs a { white-space:normal; border:1px solid var(--buyer-border); border-radius:8px; min-height:44px; padding:10px 14px; background:#fff; color:#46586d; font-size:13px; }
.buyer-ui .cabinet-tabs .cabinet-checkout-link:not(.is-active) { color:#46586d !important; background:#fff !important; }
.buyer-ui .cabinet-tabs a.is-active { background:#173f78; color:#fff; border-color:#173f78; }
.buyer-ui .cabinet-tabs a:first-child:not(.is-active) { border-color:var(--buyer-border); }
.buyer-ui .cabinet-overview { margin:16px 0; padding:0; gap:12px 24px; }
.buyer-ui .cabinet-more-sections { margin-top:16px; }
.buyer-ui .legal-card { max-width:80ch; padding:32px; }
.buyer-ui .legal-card :is(p,li) { font-size:15px; line-height:1.75; color:#46586d; }
.buyer-ui .legal-card h2 { font-size:20px; margin-top:32px; }
.buyer-ui .legal-card h1 { font-size:30px; line-height:1.2; }
.buyer-ui .auth-links-row .btn { text-decoration:none; }
.buyer-ui .auth-links-row .btn-primary { color:#fff; }
.buyer-ui :is(.auth-inline-note,.auth-security-note span,.feedback-side small) { color:#526176; font-size:13px; line-height:1.6; }
.buyer-ui :is(.auth-section-title span,.auth-links-row,.data-table th,.buyer-order-items td small,.deal-card-head small,.deal-card-facts dt,.deal-card-facts dd span,.deal-card-series span) { color:#526176; font-size:13px; }
.buyer-ui .auth-steps>span:not(.active) { color:#526176; }
.buyer-ui .catalogue-view-switch button:not([aria-pressed=true]) { color:#675762; }
.buyer-ui .buyer-shop .bulk-length-tools legend { color:#675762; }
.buyer-ui :is(.auth-state-card,.profile-requisites,.ticket-meta-grid,.demand-history-list) { overflow-wrap:anywhere; }
.buyer-ui :is(.personal-offer-card,.session-showcase-card,.upcoming-card) { display:flex; flex-direction:column; min-width:0; }
.buyer-ui :is(.personal-offer-body,.session-showcase-body,.upcoming-card-body) { flex:1; display:flex; flex-direction:column; }
.buyer-ui :is(.personal-offer-bottom,.session-showcase-bottom,.upcoming-bottom) { margin-top:auto; padding-top:16px; flex-wrap:wrap; gap:12px; }
.buyer-ui :is(.personal-offer-bottom,.session-showcase-bottom,.upcoming-bottom) .btn { white-space:normal; min-height:44px; }
.buyer-ui .lot-trade-layout { grid-template-areas:'photo info trade'; }
.buyer-ui .lot-gallery { grid-area:photo; }
.buyer-ui .lot-info-card { grid-area:info; }
.buyer-ui .trade-panel { grid-area:trade; }
.buyer-ui .buyer-nav-short { display:none; }
.buyer-ui :is(.personal-offer-hero,.session-showcase-hero,.bundle-hero) { background:#f6f8fa; color:#16263d; border-bottom:1px solid var(--buyer-border); }
.buyer-ui :is(.personal-offer-hero,.session-showcase-hero,.bundle-hero) h1 { color:#16263d; font-size:30px; line-height:1.2; }
.buyer-ui :is(.personal-offer-hero,.session-showcase-hero,.bundle-hero) :is(p,.eyebrow) { color:var(--buyer-muted); font-size:14px; line-height:1.6; }
.buyer-ui :is(.personal-offer-hero-inner,.session-showcase-hero-inner) { min-height:0; padding-top:24px; padding-bottom:24px; gap:20px; }
.buyer-ui .bundle-hero { padding:24px 0; }
.buyer-ui :is(.personal-offer-valid,.session-showcase-state,.bundle-total) { background:#fff; border:1px solid var(--buyer-border); color:#16263d; padding:14px 16px; border-radius:10px; }
.buyer-ui :is(.personal-offer-valid,.session-showcase-state,.bundle-total) :is(small,span) { color:var(--buyer-muted); font-size:13px; }
.buyer-ui .session-showcase-state b { color:#16263d; }
.buyer-ui :is(.personal-offer-card,.session-showcase-card).unavailable { opacity:1; background:#f7f8fa; }
.buyer-ui :is(.personal-offer-card,.session-showcase-card).unavailable img { opacity:.65; }
.buyer-ui .personal-offer-unavailable { color:#526176; background:#edf1f4; font-size:13px; }
.buyer-ui :is(.personal-offer-card,.session-showcase-card,.upcoming-card,.bundle-item) small { color:#526176; font-size:12px; }
.buyer-ui :is(.feedback-ticket-card,.feedback-history-card) { background:#fff; border:1px solid var(--buyer-border); border-radius:12px; }
.buyer-ui :is(.ticket-original-message p,.timeline-content p,.timeline-head span) { color:#526176; font-size:14px; line-height:1.6; }
.buyer-ui .timeline-head { flex-wrap:wrap; gap:4px 16px; }
.buyer-ui :is(.bundle-buybox, .upcoming-section .upcoming-bottom, .session-watch-action) button.btn { min-height:44px; }
@media(max-width:1220px) and (min-width:861px) { .buyer-ui .lot-trade-layout { grid-template-columns:minmax(0,1fr) minmax(0,1fr); grid-template-areas:'photo info' 'trade trade'; } }
@media(max-width:860px) { .buyer-ui .lot-trade-layout { grid-template-columns:minmax(0,1fr); grid-template-areas:'photo' 'trade' 'info'; } }
@media(max-width:600px) {
 .buyer-ui .buyer-nav-long { display:none; }
 .buyer-ui .buyer-nav-short { display:inline; }
 .buyer-ui .main-nav { justify-content:space-between; gap:2px; overflow:visible; }
 .buyer-ui .main-nav>a { padding:10px 4px; min-height:44px; font-size:12px; flex:none; }
 .buyer-ui .buyer-nav-more>summary { padding:10px 6px; min-height:44px; min-width:44px; font-size:12px; }
 .buyer-ui .buyer-notification-link { position:relative; }
 .buyer-ui .buyer-notification-link .nav-queue-badge { position:absolute; right:0; top:-3px; min-width:16px; height:16px; padding:1px 4px; font-size:10px; }
 .buyer-ui :is(.personal-offer-hero,.session-showcase-hero,.bundle-hero) h1 { font-size:26px; }
 .buyer-ui :is(.personal-offer-valid,.session-showcase-state) { display:flex; flex-wrap:wrap; align-items:center; gap:4px 10px; padding:10px 12px; text-align:left; }
 .buyer-ui :is(.personal-offer-valid,.session-showcase-state) b { margin:0; }
 .buyer-ui .bundle-total { min-width:0; padding:12px 16px; }
 .buyer-ui .bundle-total strong { font-size:26px; }
 .buyer-ui .page-head { padding:20px 0; }
 .buyer-ui .page-head h1 { font-size:26px; }
 .buyer-ui :is(.upcoming-hero-inner,.notification-hero-inner) { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; gap:12px; padding:20px 0; }
 .buyer-ui :is(.upcoming-hero-inner,.notification-hero-inner)>div:first-child { display:contents; }
 .buyer-ui :is(.upcoming-hero,.notification-hero) .eyebrow { grid-column:1; grid-row:1; font-size:12px; }
 .buyer-ui :is(.upcoming-hero,.notification-hero) h1 { grid-column:1; grid-row:2; font-size:25px; margin:0; }
 .buyer-ui :is(.upcoming-hero,.notification-hero) p { grid-column:1/-1; grid-row:3; }
 .buyer-ui :is(.upcoming-hero-count,.notification-hero-count) { grid-column:2; grid-row:1/3; min-width:0; padding:10px; }
 .buyer-ui :is(.upcoming-hero-count,.notification-hero-count) span { font-size:12px; }
 .buyer-ui .upcoming-hero h1 { grid-column:1/-1; }
 .buyer-ui .upcoming-hero-count { grid-column:1; grid-row:4; justify-self:start; display:flex; align-items:baseline; gap:8px; }
 .buyer-ui .upcoming-hero-count span { margin:0; }
 .buyer-ui :is(.demand-request-card,.demand-history-card,.feedback-ticket-card,.feedback-history-card) { padding:20px 16px; }
 .buyer-ui :is(.demand-request-form,.demand-details-grid) { grid-template-columns:minmax(0,1fr); }
 .buyer-ui .demand-request-form .wide { grid-column:1/-1; }
 .buyer-ui .profile-security-grid { gap:12px; }
 .buyer-ui .buyer-empty-state { padding:20px 16px; }
 .buyer-ui .cabinet-tabs a { flex:1 1 130px; justify-content:center; text-align:center; }
 .buyer-ui .legal-card { padding:24px 20px; }
 .buyer-ui .legal-card h1 { font-size:26px; }
 .buyer-ui .gallery-main { height:240px; min-height:0; }
 .buyer-ui .gallery-main img { height:100%; width:100%; object-fit:contain; }
 .buyer-ui .lot-gallery { padding:12px; }
 .buyer-ui :is(.bundle-item,.bundle-total,.bundle-buybox,.personal-offer-hero-inner,.session-showcase-hero-inner) { min-width:0; overflow-wrap:anywhere; }
}

.buyer-ui :is(.history-head>span,.offer-selection-summary>span,.manager-pager) { color:var(--buyer-muted); }

/* The selected task precedes help; supplementary facts keep their own line. */
.buyer-ui .cabinet-secondary-actions { order:10; margin-top:0; }
.buyer-ui .cabinet-secondary-actions .cabinet-question-cta { border-color:#c8d5e2; background:#fff; color:#173f78; }
.buyer-ui .current-erp-order { display:grid; gap:4px; }
.buyer-ui .current-erp-order small { font-size:13px; line-height:1.5; color:var(--buyer-muted); }
.buyer-ui .deal-card-facts dd small { display:block; margin-top:4px; font-size:13px; line-height:1.5; font-weight:400; color:var(--buyer-muted); }
.buyer-ui :is(.deal-card-actions a,.cabinet-secondary-actions a,.manager-pager a) { display:inline-flex; align-items:center; min-height:44px; padding:8px 6px; }
.buyer-ui .deal-card-actions { column-gap:16px; row-gap:4px; }

.buyer-ui .series-line.total.is-inactive { background:#f1f4f6; color:var(--buyer-muted); }

@media(max-width:600px) {
 .buyer-ui .main-nav { flex-wrap:wrap; row-gap:4px; }
 .buyer-ui .public-search { min-width:min(10em,100%); }
}

/* Empty assortment is explanatory copy, not a horizontally scrolling data grid. */
.buyer-ui .assortment-table:has(.empty-inline) { min-width:0; width:100%; }
.buyer-ui .assortment-table:has(.empty-inline) thead { display:none; }
.buyer-ui .assortment-table .empty-inline { white-space:normal; }

.buyer-ui .cabinet-block .section-head > div { min-width:0; max-width:100%; }
.buyer-ui .cabinet-block .map-link { white-space:normal; overflow-wrap:anywhere; }
