.buyer-page{display:flex;flex-direction:column;gap:18px;color:var(--ink,#122942)}
.buyer-loading{position:fixed;top:86px;left:50%;transform:translateX(-50%);z-index:100;max-width:calc(100vw - 40px);padding:13px 22px;background:#fff5f8;border:1px solid #ffd3df;border-radius:12px;color:#b92f54;box-shadow:0 6px 24px #17304a24;font-size:14px;font-weight:550;pointer-events:none}
.buyer-page p{margin:5px 0 9px;line-height:1.6}.buyer-page h2{font-size:19px;margin:0}.buyer-page h3{font-size:16px;margin:0 0 9px}.buyer-page small{color:#8391a6;line-height:1.6}
.buyer-tabs{display:flex;gap:9px;border-bottom:1px solid #e2e8f2;overflow:auto}.buyer-tabs>button{border:0;background:none;padding:14px 20px;color:#8290a5;font:inherit;white-space:nowrap;cursor:pointer;border-bottom:3px solid transparent}.buyer-tabs>button.active{color:#ff3b6d;font-weight:650;border-bottom-color:#ff3b6d}
.buyer-identity{padding:19px 22px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.buyer-identity>div:first-child{flex:1;min-width:240px}.buyer-identity-actions{display:flex;align-items:end;gap:9px;flex-wrap:wrap}.buyer-identity-actions label{display:flex;flex-direction:column;gap:5px;color:#8391a6;font-size:12px}.buyer-page select,.buyer-page input:not([type=checkbox]){border:1px solid #dce3ef;border-radius:10px;background:#fff;padding:11px 12px;font:inherit;color:#142d4c;min-width:0}.buyer-page select:focus,.buyer-page input:focus{outline:2px solid #ffc4d3;outline-offset:1px}.buyer-page button:disabled{cursor:default;opacity:.45}.buyer-pending{width:100%;padding:10px 13px;background:#fff8ec;color:#94703d;border-radius:8px;font-size:13px}.buyer-status{padding:8px 3px;color:#728299;font-size:13px}.buyer-error{background:#fff0f4;color:#c63255;padding:13px 16px;border-radius:10px;white-space:pre-wrap}.buyer-muted{color:#8290a5;font-size:13px}
.buyer-search{padding:18px 20px;display:flex;gap:10px;align-items:center}.buyer-search input{flex:1}.buyer-search label{font-size:13px}.buyer-list-toolbar{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #e7ecf5;font-size:13px;color:#8391a6}.buyer-list-toolbar>div{display:flex;gap:10px;align-items:center}.buyer-table-wrap{overflow:auto}.buyer-table{width:100%;border-collapse:collapse;min-width:720px;text-align:left}.buyer-table th{font-size:12px;color:#8a98ab;font-weight:400;background:#f9faff;padding:14px 16px}.buyer-table td{padding:15px 16px;border-top:1px solid #edf0f6;font-size:13px;vertical-align:middle}.buyer-table td:first-child{width:45%;min-width:240px}.buyer-table td>small{display:block;max-width:240px}.buyer-product-link{border:0;background:none;display:flex;gap:13px;align-items:center;text-align:left;cursor:pointer;color:inherit;padding:0;width:100%;font:inherit}.buyer-product-link strong{display:block;font-size:14px;font-weight:550;line-height:1.6;max-width:380px}.buyer-product-link small{display:block;margin-top:5px;font-size:11px}.buyer-cover{width:68px;height:76px;border-radius:9px;object-fit:cover;flex:none}.buyer-no-image{display:grid;place-items:center;background:#f0f3f8;color:#8c99ac;font-size:11px;text-align:center}.buyer-row-actions{display:flex;gap:7px;flex-wrap:wrap;min-width:135px}.buyer-row-actions .button{font-size:12px;padding:8px 11px}.buyer-empty{padding:45px 20px;text-align:center;color:#8a98ac;font-size:14px}
.buyer-overlay{position:fixed;inset:0;background:#18334e4d;z-index:80;display:flex;align-items:center;justify-content:center;padding:28px;backdrop-filter:blur(3px)}.buyer-detail,.buyer-picker{background:#fff;box-shadow:0 20px 70px #0c20323b;padding:24px;width:min(900px,100%);max-height:85vh;overflow:auto;border-radius:18px}.buyer-detail header,.buyer-picker header,.buyer-matrix header,.buyer-invite header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.buyer-detail-body{display:grid;grid-template-columns:1.1fr 1fr;gap:26px}.buyer-gallery{display:flex;gap:10px;overflow:auto;scroll-snap-type:x mandatory;align-items:start}.buyer-gallery>img{width:100%;max-height:58vh;object-fit:contain;flex:0 0 100%;scroll-snap-align:start;background:#f5f7fb;border-radius:12px}.buyer-large-image{width:100%;height:300px}.buyer-detail dl{display:grid;grid-template-columns:75px 1fr;gap:14px;font-size:14px}.buyer-detail dt{color:#8996aa}.buyer-detail dd{margin:0;overflow-wrap:anywhere}.buyer-picker{max-width:560px}.buyer-picker label:not(.buyer-check){display:flex;flex-direction:column;gap:9px}.buyer-picker footer,.buyer-invite footer{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.buyer-confirm-text{white-space:pre-wrap;padding:12px 0;font-size:14px}.buyer-check{display:flex;align-items:center;gap:8px;font-size:13px;margin:6px 0;line-height:1.7}.buyer-check input{accent-color:#ff3b6d;width:17px;height:17px}
.buyer-matrix,.buyer-invite{padding:22px}.buyer-matrix-layout{display:grid;grid-template-columns:minmax(200px,.7fr) 1.7fr;margin-top:18px;gap:20px}.buyer-matrix-accounts{border-right:1px solid #e8edf5;padding-right:15px}.buyer-matrix-account{width:100%;display:flex;gap:12px;align-items:center;border:1px solid transparent;background:transparent;padding:14px 10px;border-radius:10px;text-align:left;font:inherit;cursor:pointer;margin:0 0 8px}.buyer-matrix-account.active{background:#fff0f5;border-color:#ffd9e4}.buyer-matrix-account strong,.buyer-matrix-account small{display:block}.buyer-matrix-account img,.buyer-avatar{width:42px;height:42px;border-radius:50%;object-fit:cover;display:grid;place-items:center;background:#f0f3fa;color:#8b9ab0}.buyer-permissions{display:flex;flex-direction:column;gap:12px}.buyer-permission{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:15px;background:#f8faff;border:1px solid #e7edf7;border-radius:10px}.buyer-permission>div:first-child{flex:1;min-width:180px}.buyer-permission small{display:block;white-space:pre-wrap}.buyer-sources{width:100%;padding:6px 0 0 18px;display:flex;flex-direction:column;gap:7px}.buyer-sources>div{display:flex;justify-content:space-between;gap:14px;align-items:center;font-size:13px}.buyer-requirements{font-size:13px;color:#7b899c;padding-left:20px;line-height:1.9}.buyer-invite .buyer-search{padding:0 0 20px}.buyer-candidate{border-top:1px solid #e7ecf5;padding-top:20px}
@media(max-width:760px){.buyer-identity{padding:16px}.buyer-identity-actions{width:100%}.buyer-identity-actions label{width:100%}.buyer-search{flex-wrap:wrap;padding:15px}.buyer-search label{width:100%}.buyer-search input{width:calc(100% - 120px)}.buyer-list-toolbar{flex-wrap:wrap;padding:14px}.buyer-tabs>button{padding:12px 13px}.buyer-detail-body{grid-template-columns:1fr}.buyer-gallery>img{max-height:38vh}.buyer-overlay{padding:12px}.buyer-detail,.buyer-picker{padding:18px;max-height:90vh}.buyer-matrix-layout{grid-template-columns:1fr}.buyer-matrix-accounts{border:0;border-bottom:1px solid #e8edf5;padding:0}.buyer-matrix,.buyer-invite{padding:16px}.buyer-matrix-selected header{align-items:start}}
