/* Layout constraints keep controls readable in small browser viewports. */
html{scroll-padding-top:105px}body{overflow-x:clip}body.modal-open{overflow:hidden}.field,.field select,.field input,.field textarea,.match-picker>div,.detail-text{min-width:0;max-width:100%}.section-head{flex-wrap:wrap}.section-title{flex-wrap:wrap}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
dialog{width:min(850px,calc(100% - 24px));max-height:calc(var(--visual-height,100dvh) - 24px);overflow:hidden;margin:auto}dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto}dialog:not([open]){display:none}.modal-header{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:12px;align-items:center;position:relative;padding:17px 22px}.modal-header h2{min-width:0;font-size:21px;line-height:1.5;overflow-wrap:anywhere;letter-spacing:0}.modal-header .icon-button{height:44px;width:44px;flex-shrink:0;border-radius:50%;justify-self:end}.modal-header .icon-button:focus-visible{outline-offset:0}.modal-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:22px}.modal-actions{padding:15px 22px;flex-shrink:0;align-items:center;gap:10px}.modal-actions .btn{min-height:44px}.modal-actions>.spacer{flex:1}.match-picker{display:grid;grid-template-columns:64px minmax(0,1fr) auto;gap:15px;align-items:center}.match-picker img{width:64px;height:64px}.match-picker .field{width:100%}.match-picker select{width:100%;min-width:0;text-overflow:ellipsis}.match-picker h3{margin:0;overflow-wrap:anywhere}.match-picker .btn{white-space:normal}.match-picker .field label{line-height:1.5}
.category-filter{margin-bottom:20px}.category-filter>.filters{margin-bottom:10px}.subfilters{display:flex;gap:8px;flex-wrap:wrap;padding:10px 0;border-top:1px solid var(--line)}.subfilters .chip{font-size:12px;min-height:36px;padding:6px 12px}.category-caption{font-size:12px;color:var(--muted);margin:8px 0 0}.product-kind{font-size:12px;color:var(--muted);margin-bottom:7px}.wish-categories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0 18px}.wish-categories details{border:1px solid var(--line);border-radius:10px;padding:10px 12px;min-width:0}.wish-categories summary{cursor:pointer;font-weight:600;font-size:14px;color:var(--green);padding:4px 0;min-height:32px}.wish-categories .choice-row{margin:9px 0 2px;gap:6px}.wish-selected{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}.wish-selected .chip{font-size:13px;background:var(--light-green)}.choice-row .chip{white-space:normal}.publish-location{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:12px;border:1px solid #cbdcbe;background:#fff;border-radius:9px;text-align:left}.publish-location>span{min-width:0;overflow-wrap:anywhere}.publish-location>.icon{flex-shrink:0}
.location-dialog{width:min(620px,calc(100% - 24px))}.location-picker h3{font-size:15px;margin:19px 0 10px}.location-intro{font-size:14px;color:var(--muted);margin:0 0 16px}.location-current{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px;border-radius:12px;background:var(--light-green)}.location-current>div{min-width:0;flex:1}.location-current strong{display:block;font-size:20px;line-height:1.5;overflow-wrap:anywhere;margin-top:4px}.location-current .btn{font-size:13px;padding:9px 11px;flex-shrink:0}.location-status{font-size:12px;color:var(--muted);line-height:1.8;margin:12px 0 19px}.location-search-input{display:flex;align-items:center;border:1px solid #cbdcbe;padding-left:12px;border-radius:9px;gap:8px}.location-search-input input{border:0;font-size:16px;padding:12px;min-width:0}.location-search-input:focus-within{outline:2px solid var(--sprout);outline-offset:2px}.location-search-input input:focus{outline:0}.location-results{margin:12px 0 20px;max-height:260px;overflow:auto;border:1px solid var(--line);border-radius:10px}.location-results>p{padding:0 12px}.location-result{display:grid;grid-template-columns:minmax(0,1fr) auto 18px;gap:9px;align-items:center;width:100%;padding:12px;text-align:left;border-bottom:1px solid var(--line);min-height:48px}.location-result:last-child{border-bottom:0}.location-result:hover{background:var(--light-green)}.location-result strong{overflow-wrap:anywhere;font-size:14px}.location-result>span{font-size:12px;color:var(--muted)}.location-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}.location-fields .full{grid-column:1/-1}.location-picker .choice-row{margin:8px 0 16px}.location-picker .chip{font-size:13px;white-space:normal}.location-empty{font-size:13px;line-height:1.8}.nearby-summary{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;background:var(--light-green);border:1px solid var(--line);padding:17px;border-radius:12px;margin:20px 0}.nearby-summary strong{font-size:18px;display:block}.nearby-summary small{color:var(--muted)}
.chat-layout{min-height:0;height:calc(var(--visual-height,100dvh) - 245px);min-height:420px}.chat-room{display:grid;grid-template-rows:auto auto auto minmax(0,1fr) auto auto auto;min-width:0;min-height:0}.chat-room>*{min-width:0}.messages{min-height:0;overflow-y:auto;overscroll-behavior:contain;overflow-anchor:auto}.chat-header,.chat-item,.chat-warning,.chat-tools,.chat-compose,.chat-disabled{flex-shrink:0}.chat-item>div{min-width:0}.chat-item p{overflow-wrap:anywhere}.chat-item>.btn{flex-shrink:0}.chat-compose{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:9px}.chat-compose textarea{width:100%;min-height:58px;max-height:100px;resize:none;line-height:1.6}.chat-compose>.btn{min-height:44px;white-space:nowrap}.chat-tools button,.chat-tools label{min-height:36px;display:inline-flex;align-items:center}.chat-disabled{line-height:1.6}.top-actions{min-width:0}.city-button{max-width:120px}.city-button>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-warning{color:#77622d}.chat-header>div{min-width:0}.chat-header h3{overflow-wrap:anywhere}
@media(max-width:760px){
 html{scroll-padding-top:12px}main{padding:20px 16px calc(22px + 72px + env(safe-area-inset-bottom));min-height:0}.topbar{position:relative;top:auto;height:70px;min-height:70px;flex-wrap:nowrap;padding:0 16px}.top-mobile-brand{font-size:23px;gap:8px;flex-shrink:0}.top-mobile-brand img{width:36px;height:36px}.top-actions{gap:10px}.top-actions .city-button{font-size:13px;gap:5px;max-width:91px}.top-actions .city-button .icon{width:18px;height:18px}.top-avatar{width:34px;height:34px;flex-shrink:0}.footer{padding:18px 16px calc(94px + env(safe-area-inset-bottom))}.page-header{margin:0 0 20px}.page-header h1{font-size:25px;line-height:1.45;letter-spacing:-.5px;overflow-wrap:anywhere}.page-header p{font-size:13px;line-height:1.85}.section-head{gap:12px}.section-title{font-size:21px;line-height:1.5}.panel{padding:17px 15px}.match-picker{grid-template-columns:56px minmax(0,1fr);gap:12px}.match-picker img{width:56px;height:56px}.match-picker>.btn{grid-column:1/-1;justify-self:start;font-size:13px;min-height:40px;padding:9px 13px}.match-picker select{font-size:16px;min-height:46px;padding:10px 8px}.match-picker .field label{font-size:13px}.notice{font-size:13px;line-height:1.8}.notice>.icon{flex-shrink:0}.modal-header{padding:12px 15px;gap:9px;grid-template-columns:minmax(0,1fr) 44px}.modal-header h2{font-size:18px;line-height:1.5}.modal-body{padding:18px 15px}.modal-actions{padding:12px 15px max(12px,env(safe-area-inset-bottom));gap:8px}.modal-actions .btn{font-size:14px;padding:10px 15px}.stepper{gap:6px;padding-bottom:17px;margin-bottom:18px}.stepper span{display:flex;align-items:center;gap:5px;font-size:12px;line-height:1.5;min-width:0}.stepper b{width:20px;height:20px;flex-shrink:0;margin:0}.form-grid{gap:0 12px}.field input,.field textarea,.field select{font-size:16px;min-height:46px}.field label,.field-label{font-size:14px;line-height:1.6}.field small{line-height:1.8}.field textarea{min-height:100px}.wish-categories{grid-template-columns:1fr}.category-filter{margin-bottom:17px}.category-filter .filters{overflow:auto;flex-wrap:nowrap}.subfilters{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}.subfilters .chip{flex-shrink:0;white-space:nowrap}.product-kind{font-size:12px}.location-current{padding:13px;align-items:flex-start}.location-current strong{font-size:18px}.location-current .btn{font-size:12px;min-height:42px;padding:8px 10px}.location-result{grid-template-columns:minmax(0,1fr) 18px}.location-result>span{grid-column:1;grid-row:2}.location-result>.icon{grid-column:2;grid-row:1 / span 2}.location-fields{gap:0 12px}.location-picker h3{font-size:15px}.nearby-summary{padding:15px}.nearby-summary strong{font-size:17px}.nearby-summary .btn{font-size:13px}.mobile-nav{height:calc(72px + env(safe-area-inset-bottom));padding-bottom:calc(5px + env(safe-area-inset-bottom))}.mobile-nav button{font-size:12px;min-width:50px}.mobile-publish>span{height:39px;width:44px}
 body[data-page="messages"]{height:var(--visual-height,100dvh);overflow:hidden}body[data-page="messages"] .app-shell{height:var(--visual-height,100dvh);display:grid;grid-template-rows:70px minmax(0,1fr);padding-bottom:calc(72px + env(safe-area-inset-bottom));min-height:0}body[data-page="messages"] #footer{display:none}body[data-page="messages"] main{display:flex;flex-direction:column;min-height:0;padding:8px 10px 10px;max-width:none;width:100%;height:auto;overflow:hidden}body[data-page="messages"] main>.page-header{display:none}body[data-page="messages"] .chat-layout{height:100%;min-height:0;max-height:none;flex:1;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);border-radius:12px}.chat-list{padding:6px;gap:6px;max-height:68px;overflow-x:auto;overflow-y:hidden}.conversation{padding:7px;min-width:142px}.conversation .avatar{height:27px;width:27px}.conversation h3{font-size:13px;line-height:1.4}.conversation p{font-size:12px;max-width:100px;line-height:1.4}.chat-header{padding:9px 12px;gap:8px}.chat-header h3{font-size:14px}.chat-header p{font-size:12px;line-height:1.5;margin-top:2px}.chat-header .text-link{font-size:12px;flex-shrink:0}.chat-item{padding:8px 10px;gap:8px}.chat-item img{width:40px;height:38px;flex-shrink:0}.chat-item p{font-size:13px;line-height:1.5}.chat-item small{font-size:12px}.chat-item>.btn{padding:7px 9px;min-height:36px;font-size:12px}.chat-warning{padding:7px 10px;font-size:12px;line-height:1.5;text-align:left}.messages{padding:11px;min-height:0}.bubble{font-size:14px;max-width:84%;padding:9px 11px;line-height:1.7}.system-message{font-size:12px;line-height:1.6;margin:8px 0;padding:0;max-width:100%}.chat-tools{padding:5px 10px 0;gap:2px 12px;font-size:12px;flex-wrap:wrap}.chat-tools .text-link{font-size:12px}.chat-compose{padding:5px 10px 8px;gap:8px;margin:0}.chat-compose textarea{font-size:16px;min-height:58px;max-height:90px;padding:9px;line-height:1.5}.chat-compose .btn{font-size:14px;padding:10px 13px;min-height:44px}.chat-disabled{font-size:11px;line-height:1.5;padding:0 10px 7px}.contact-card{padding:12px;max-width:100%;font-size:13px}.contact-card h4{font-size:14px}.contact-card small{font-size:12px}.consent-options{flex-wrap:wrap}.consent-options .btn{font-size:13px;white-space:normal}
 body[data-page="messages"].keyboard-open .app-shell{grid-template-rows:minmax(0,1fr);padding-bottom:env(safe-area-inset-bottom)}body[data-page="messages"].keyboard-open .topbar,body[data-page="messages"].keyboard-open .mobile-nav,body[data-page="messages"].keyboard-open .chat-list,body[data-page="messages"].keyboard-open .chat-item,body[data-page="messages"].keyboard-open .chat-warning,body[data-page="messages"].keyboard-open .chat-disabled{display:none}body[data-page="messages"].keyboard-open .chat-layout{grid-template-rows:minmax(0,1fr)}body[data-page="messages"].keyboard-open .chat-room{grid-template-rows:auto minmax(0,1fr) auto auto}body[data-page="messages"].keyboard-open main{padding:4px 6px}body[data-page="messages"].keyboard-open .chat-compose{padding-bottom:max(8px,env(safe-area-inset-bottom))}
}
@media(max-width:360px){.topbar{padding:0 12px}.top-mobile-brand{font-size:21px;gap:6px}.top-mobile-brand img{width:34px;height:34px}.top-actions{gap:6px}.top-actions .city-button{font-size:12px;max-width:78px}.top-actions .city-button .icon{width:16px;height:16px}.modal-header h2{font-size:17px}.modal-header{padding:11px 12px}.modal-body{padding:16px 12px}.stepper span{font-size:11px}.location-current{flex-wrap:wrap}.form-grid{gap:0 10px}.chat-tools{gap:2px 8px}.chat-compose .btn{padding:10px}}

.location-data-note{font-size:12px;color:var(--muted);margin-top:20px;line-height:1.8}.location-data-note summary{cursor:pointer;padding:8px 0}.location-data-note a{text-decoration:underline;color:var(--green)}.matching-selected{margin:0 0 14px;overflow-wrap:anywhere}

html{-webkit-text-size-adjust:100%;text-size-adjust:100%}.compact-chat-safety,.chat-media-compact{display:none}
@media(max-width:760px) and (max-height:620px){body[data-page="messages"] .conversation p,body[data-page="messages"] .chat-header p,body[data-page="messages"] .chat-warning,body[data-page="messages"] .chat-media-full{display:none}body[data-page="messages"] .compact-chat-safety{display:block;padding:2px 0;color:#77622d;font-size:12px;line-height:1.5;text-decoration:underline;text-align:left}body[data-page="messages"] .chat-media-compact{display:inline}.chat-list{max-height:55px}.chat-tools{padding-top:3px}.chat-disabled{padding-bottom:5px}}

@media(max-width:760px){dialog{position:fixed;top:calc(var(--visual-offset-top,0px) + 12px);bottom:auto;left:0;right:0;margin:0 auto}body[data-page="messages"].keyboard-open .app-shell{position:fixed;top:var(--visual-offset-top,0px);left:0;right:0;padding-bottom:0}}
