#buyer{position:fixed;z-index:40;right:20px;top:92px;bottom:auto;width:320px;max-width:calc(100vw - 40px);max-height:calc(100dvh - 112px);padding:16px;display:flex;flex-direction:column;gap:8px;overflow:hidden}
#buyer[hidden]{display:none!important}
#buyer .panel-heading{margin:0;gap:10px;align-items:center}#buyer .panel-heading h2{font-size:18px;line-height:1.3;margin:0}#close-buyer{width:44px;flex:0 0 44px}#buyer .buyer-purpose{margin:0;font-size:12px;line-height:1.5;color:#c1cabe}
#buyer .buyer-tabs{margin:0;flex-shrink:0}#buyer .buyer-content{overflow-y:auto;min-height:0;max-height:none;padding:0 4px 0 0;overscroll-behavior:contain;scrollbar-gutter:stable}
#buyer .panel-note{margin:6px 0 10px;font-size:13px}#buyer .surface-tabs{display:flex;gap:5px;margin:0 0 12px}#buyer .surface-tabs button{flex:1;background:transparent;border:1px solid #536257;border-radius:10px;font-size:13px;padding:6px;min-width:0;color:#fff}#buyer .surface-tabs button[aria-selected=true]{background:#43553a;border-color:#d8f285;color:#f8ffe9}
#buyer .surface-body h3{font-size:15px;line-height:1.35;margin:0 0 4px}#buyer .finish-current{font-size:12px;color:#d7e2d0;margin:0 0 10px}#buyer .finish-choices{display:grid;grid-template-columns:1fr 1fr;gap:10px}#buyer .finish-choice{display:flex;flex-direction:column;gap:6px;align-items:stretch;padding:5px;background:transparent;border:1px solid #536257;border-radius:12px;color:#f7faf3;font-size:12px;line-height:1.3;min-width:0;text-align:left}#buyer .finish-choice>span:last-child{padding:0 3px 3px}#buyer .finish-preview{height:40px;border-radius:7px;position:relative;background-size:cover;display:block}#buyer .finish-check{position:absolute;right:5px;bottom:5px;display:none;align-items:center;justify-content:center;width:20px;height:20px;background:#173b21;border:1px solid #d8f285;color:#fff;border-radius:50%;font-size:13px}#buyer .finish-choice[aria-pressed=true]{border-color:var(--cozy-glow);box-shadow:0 0 0 1px var(--cozy-glow)}#buyer .finish-choice[aria-pressed=true] .finish-check{display:flex}#buyer .finish-choice[aria-busy=true]{border-style:dashed}#buyer .finish-message{font-size:12px;line-height:1.45;margin:10px 0 0;color:#d7e2d0}#buyer #panel-finishes>small{display:none}
#buyer .panel-footer{display:flex;gap:6px;margin:0;padding:8px 0 0;flex-shrink:0;border-top:1px solid #536257}#buyer .panel-footer button{font-size:12px;padding:7px 10px}#buyer .action-help,#buyer .restore-help{font-size:11px;color:#c1cabe;line-height:1.4;margin:0}#buyer #resume-walking{width:100%;min-height:44px;border-radius:12px;flex-shrink:0}#buyer #buyer-status{font-size:11px;line-height:1.4;margin:0;color:#d7e2d0}#buyer .finish-help{background:none;border:0;text-decoration:underline;font-size:12px;min-height:24px;padding:0;color:#d7e2d0;align-self:flex-start}
#buyer .finish-guide{padding:10px;border:1px solid #92f56b;border-radius:12px;background:#273b2b;font-size:12px;line-height:1.5}#buyer .finish-guide p{margin:0 0 8px}#buyer .finish-guide button{min-height:44px}
@media(min-width:900px){#buyer .finish-preview{height:32px}#buyer .finish-choice{gap:4px}#buyer .finish-help{margin-top:8px}#buyer .panel-note{margin-top:0}}
@media(max-width:899px){#buyer{inset:auto 0 0;width:100%;max-width:none;max-height:45dvh;border-radius:20px 20px 0 0;padding:10px 14px max(10px,env(safe-area-inset-bottom));gap:6px;box-sizing:border-box}#buyer .buyer-purpose,#buyer .action-help,#buyer #buyer-status{display:none}#buyer .panel-heading h2{font-size:16px}#buyer .panel-heading{min-height:44px}#buyer .panel-heading,#buyer .buyer-tabs,#buyer #resume-walking{flex-shrink:0}#buyer .panel-footer{padding-top:4px}#buyer .restore-help{font-size:11px}#buyer .finish-help{position:absolute;right:68px;top:20px}#buyer .finish-preview{height:28px}#buyer .finish-choice{min-height:64px}#buyer .panel-note{display:none}.surface-tabs{margin-bottom:8px!important}.finish-message{margin-bottom:4px!important}}
@media(max-width:899px) and (max-height:600px){#buyer{max-height:45dvh;gap:3px;padding-top:6px}#buyer .panel-heading{display:none}#buyer .buyer-tabs{position:absolute;right:12px;top:6px;width:55%}#buyer .buyer-content{padding-top:48px}#buyer .restore-help{position:absolute;left:-10000px}#buyer .finish-help{display:none}#buyer #resume-walking{min-height:44px}#buyer .panel-footer{border:0;padding:0}}
@media(max-width:899px){#buyer .panel-heading{display:contents}#buyer .panel-heading h2{display:none}#buyer #close-buyer{position:absolute;top:10px;right:12px;width:44px;height:44px}#buyer .buyer-tabs{position:static;width:auto;margin-right:48px;min-height:44px}#buyer .buyer-content{padding-top:0}#buyer .finish-help{position:static;min-height:44px;margin:4px 0}#buyer .finish-choices{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}#buyer .finish-choice{min-height:76px;padding:4px;font-size:11px;gap:4px}#buyer .finish-preview{height:24px}#buyer .finish-choice>span:last-child{padding:0}#buyer .surface-tabs{margin:0 0 6px}#buyer .finish-current{margin:0 0 6px}#buyer .surface-body h3{font-size:13px}#buyer .finish-check{width:17px;height:17px;right:2px;bottom:2px}#buyer .restore-help{position:static;font-size:11px}#buyer .panel-footer{padding-top:4px}}

#buyer .panel-footer{flex-wrap:wrap}#buyer #resume-walking{flex-basis:100%}
@media(max-width:899px){#buyer .panel-footer{display:grid;grid-template-columns:.7fr 1fr 1.2fr;gap:4px}#buyer #resume-walking{width:auto;font-size:12px;padding:6px;min-width:0}#buyer .panel-footer button{padding:6px;line-height:1.25}#buyer #done-placing{grid-column:1/-1}}
@media(max-width:899px) and (max-height:600px){#buyer .restore-help{display:none}#buyer .surface-tabs{position:static}#buyer .buyer-content{scroll-padding-top:0}#buyer .finish-help{display:block}}
