:root{--color-background-secondary: #f3f4f6;--color-border: #e5e7eb;--color-sidebar-active: #6366f1;--color-text-primary: #111;--color-text-secondary: #6b7280}*{box-sizing:border-box}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;-webkit-font-smoothing:antialiased}.buyer-portal-page{min-height:100vh;background:var(--color-background-secondary);display:flex;align-items:center;justify-content:center;padding:1rem}.buyer-portal-page .buyer-portal-card{background:#fff;border-radius:16px;padding:1.5rem;width:100%;max-width:360px;box-shadow:0 4px 20px #00000014}.buyer-portal-page .buyer-portal-title{margin:0 0 .25rem;font-size:1.35rem;font-weight:600}.buyer-portal-page .buyer-portal-subtitle{margin:0 0 1.25rem;color:var(--color-text-secondary);font-size:.9rem}.buyer-portal-form{display:flex;flex-direction:column;gap:1rem}.buyer-portal-label{display:flex;flex-direction:column;gap:.35rem;font-size:.9rem;font-weight:500}.buyer-portal-input{padding:.75rem 1rem;border:1px solid var(--color-border);border-radius:10px;font-size:1rem}.buyer-portal-input:focus{outline:none;border-color:var(--color-sidebar-active)}.buyer-portal-form .buyer-portal-error{color:#dc2626;font-size:.875rem;margin:0}.buyer-portal-btn.primary{padding:.85rem 1.25rem;border:none;border-radius:10px;font-size:1rem;font-weight:600;cursor:pointer;background:var(--color-sidebar-active);color:#fff}.buyer-portal-btn.primary:disabled{opacity:.7;cursor:not-allowed}.buyer-portal-layout{min-height:100vh;background:var(--color-background-secondary);display:flex;flex-direction:column;padding-bottom:env(safe-area-inset-bottom,0)}.buyer-portal-header{background:#fff;border-bottom:1px solid var(--color-border);padding:.75rem 1rem;display:flex;align-items:center;justify-content:space-between;gap:.5rem;flex-wrap:wrap;position:sticky;top:0;z-index:10}.buyer-portal-header h1{margin:0;font-size:1.1rem;font-weight:600;flex:1;min-width:0}.buyer-portal-header-right{display:flex;align-items:center;gap:.5rem}.buyer-portal-name{font-size:.875rem;color:var(--color-text-secondary);max-width:120px;overflow:hidden;text-overflow:ellipsis}.buyer-portal-back{color:var(--color-sidebar-active);text-decoration:none;font-size:.9rem}.buyer-portal-main{flex:1;padding:1rem;max-width:600px;margin:0 auto;width:100%}.buyer-portal-main--leaderboard{max-width:820px}.buyer-portal-loading,.buyer-portal-empty{text-align:center;padding:2rem 1rem;color:var(--color-text-secondary)}.buyer-portal-error{text-align:center;padding:2rem 1rem;color:#dc2626}.buyer-portal-stats h2{margin:0 0 1rem;font-size:1rem;font-weight:600}.buyer-portal-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:.75rem;margin-bottom:1.5rem}.buyer-portal-card-stat{background:#fff;border-radius:12px;padding:1rem;text-align:center;box-shadow:0 1px 3px #0000000f}.buyer-portal-card-stat.highlight{background:var(--color-sidebar-active);color:#fff}.buyer-portal-stat-value{display:block;font-size:1.5rem;font-weight:700}.buyer-portal-stat-label{font-size:.75rem;opacity:.9}.buyer-portal-nav{display:flex;flex-direction:column;gap:.5rem}.buyer-portal-nav-link{display:block;background:#fff;padding:1rem 1.25rem;border-radius:12px;text-decoration:none;color:var(--color-text-primary);font-weight:500;box-shadow:0 1px 3px #0000000f}.buyer-portal-nav-link:active{opacity:.9}.buyer-portal-orders-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.5rem}.buyer-portal-order-item{background:#fff;border-radius:12px;padding:1rem;box-shadow:0 1px 3px #0000000f}.buyer-portal-order-row{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.buyer-portal-order-code{font-weight:600;font-size:.95rem}.buyer-portal-badge{font-size:.7rem;padding:.2rem .5rem;background:#10b981;color:#fff;border-radius:6px}.buyer-portal-order-product{margin-top:.35rem;font-size:.875rem;color:var(--color-text-secondary);line-height:1.3}.buyer-portal-order-sku{margin-top:.35rem;font-size:.8rem;color:var(--color-text-secondary)}.buyer-portal-order-sku-code{font-weight:600;color:var(--color-text-primary);font-variant-numeric:tabular-nums}.buyer-portal-review-materials{margin-top:.65rem;padding:.65rem .75rem;background:var(--color-background-secondary);border-radius:10px;border:1px solid var(--color-border)}.buyer-portal-review-materials-label{font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.03em;color:var(--color-text-secondary);margin-bottom:.35rem}.buyer-portal-review-text-list{margin:0;padding-left:1.1rem;font-size:.85rem;line-height:1.45;color:var(--color-text-primary)}.buyer-portal-review-text-item+.buyer-portal-review-text-item{margin-top:.35rem}.buyer-portal-review-photo-grid{display:flex;flex-wrap:wrap;gap:.5rem}.buyer-portal-review-photo-link{display:block;border-radius:8px;overflow:hidden;border:1px solid var(--color-border);line-height:0}.buyer-portal-review-photo-thumb{width:72px;height:72px;object-fit:cover;display:block}.buyer-portal-order-meta{margin-top:.35rem;font-size:.8rem;color:var(--color-text-secondary);display:flex;gap:1rem}.buyer-portal-order-review-row{margin-top:.75rem;padding-top:.75rem;border-top:1px solid var(--color-border);display:flex;flex-direction:column;gap:.65rem}.buyer-portal-btn-review{display:inline-flex;align-items:center;justify-content:center;padding:.55rem 1rem;background:var(--color-sidebar-active);color:#fff;font-size:.875rem;font-weight:600;border-radius:10px;text-decoration:none;text-align:center;width:fit-content}.buyer-portal-btn-review:active{opacity:.92}.buyer-portal-review-unavailable{font-size:.8rem;color:var(--color-text-secondary)}.buyer-portal-review-label{display:flex;flex-direction:column;gap:.35rem;font-size:.8rem;font-weight:500}.buyer-portal-review-label-text{color:var(--color-text-secondary)}.buyer-portal-review-select{padding:.5rem .65rem;border:1px solid var(--color-border);border-radius:8px;font-size:.9rem;background:#fff;max-width:220px}.buyer-portal-review-saved{font-size:.8rem;color:#059669}.buyer-portal-pagination{display:flex;align-items:center;justify-content:center;gap:1rem;margin-top:1.5rem;flex-wrap:wrap}.buyer-portal-pagination button{padding:.5rem 1rem;border:1px solid var(--color-border);border-radius:8px;background:#fff;cursor:pointer;font-size:.9rem}.buyer-portal-pagination button:disabled{opacity:.5;cursor:not-allowed}.buyer-portal-leaderboard-wrap{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:.25rem}.buyer-portal-leaderboard-head,.buyer-portal-leaderboard-item{display:grid;grid-template-columns:2.25rem minmax(72px,1.15fr) 3.25rem 3.25rem 4rem minmax(4.5rem,1fr);gap:.35rem .45rem;align-items:center;font-size:.8125rem}.buyer-portal-leaderboard-head{padding:0 .65rem .35rem;color:var(--color-text-secondary);font-size:.625rem;font-weight:600;text-transform:uppercase;letter-spacing:.03em;line-height:1.2}.buyer-portal-leaderboard{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.35rem;min-width:min(100%,340px)}.buyer-portal-leaderboard-item{padding:.7rem .65rem;background:#fff;border-radius:12px;box-shadow:0 1px 3px #0000000f}.buyer-portal-rank{font-weight:700;color:var(--color-sidebar-active)}.buyer-portal-leader-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.buyer-portal-lb-col-num{text-align:right;font-variant-numeric:tabular-nums;color:var(--color-text-primary)}.buyer-portal-lb-conv{font-weight:600}.buyer-portal-lb-col-reward{text-align:right;font-weight:600;font-size:.75rem;white-space:nowrap;color:var(--color-text-primary)}.buyer-portal-btn.secondary{background:transparent;color:var(--color-text-secondary);border:1px solid var(--color-border);padding:.5rem .75rem;font-size:.875rem;border-radius:8px;cursor:pointer}.buyer-portal-btn.secondary:active{opacity:.8}@media(min-width:480px){.buyer-portal-header h1{font-size:1.25rem}.buyer-portal-cards{grid-template-columns:repeat(3,1fr)}}
