/* Keep interactive geometry stable while preserving decorative motion. */
html body button:active { transform: none; }
#main { min-width: 0; }
#main .indoor-hub { animation: none; }
#main .live-heading { flex-wrap: wrap; gap: 10px; }
#main .live-heading > .text-btn { flex: 0 0 auto; }
#main .feed-head { flex-wrap: wrap; row-gap: 9px; }
#main .feed-head > .text-btn { flex: 0 0 auto; min-width: max-content; }
#main .feed-tab { max-width: 100%; overflow-wrap: anywhere; }
#main .live-poster-symbol { right: 28px; pointer-events: none; }
#main .live-poster h2, #main .live-poster p { position: relative; z-index: 1; overflow-wrap: anywhere; }
#main .product-row .grow, #main .post-header .grow { min-width: 0; }
#main .price-results-heading { gap: 10px; flex-wrap: wrap; }
.price-results-heading h2, .price-results-heading p { min-width: 0; }
.modal-header { gap: 12px; }
.modal-header h2 { min-width: 0; overflow-wrap: anywhere; }
.modal-header > button { flex-shrink: 0; }
#map-page .map-toolbar > *, #map-page .map-chrome > * { min-width: 0; }
#map-page .place-sheet .place-sort-select,
#map-page .place-sheet .place-basis { margin-left: 18px; margin-right: 18px; }
@media (hover: none), (pointer: coarse) {
  .post:hover, .place-card:hover, .product-row:hover, .clip-card:hover,
  .indoor-event-feature:hover, .sidebar .nav-btn:hover > .icon { transform: none; }
}
@media (max-width: 600px) {
  .modal-header h2 { font-size: 20px; }
  #main .live-poster { padding: 23px; }
  #main .live-poster h2, #main .live-poster p { max-width: 100%; }
}
/* Compact artwork keeps existing touch targets intact. */
html body .bottom-nav button>svg.icon{width:18px;height:18px}
html body .sidebar .nav-btn>.icon{width:17px;height:17px;flex-basis:17px}
html body .icon-btn>svg.icon{width:17px;height:17px}
html body .post-actions svg.icon{scale:.82;transform-origin:center}
html body .story-ring.plus svg.icon{width:21px;height:21px}
html body .empty svg.icon{width:28px;height:28px}
html body .product-art svg.icon{width:26px;height:26px}
html body .coupon-owned>svg.icon{width:23px;height:23px}
html body .indoor-symbol .icon{width:20px;height:20px}
html body .indoor-nearby-button .icon{width:17px;height:17px}
html body .live-poster-symbol .icon{width:120px;height:120px}
@media(max-width:760px){
 html body .bottom-nav,html body[data-app-view] .bottom-nav{bottom:0;height:calc(58px + env(safe-area-inset-bottom));padding:4px 8px calc(4px + env(safe-area-inset-bottom));border-radius:20px 20px 0 0}
 html body .bottom-nav>button{height:48px;min-height:48px;gap:3px;padding-block:4px}
 html body[data-app-view=nearby] .workspace{padding-bottom:calc(64px + env(safe-area-inset-bottom))}
}
/* Reserve room for translated branding and enlarged text on narrow screens. */
@media(max-width:360px){
 html body .topbar .mobile-logo:after{display:none}
 html body .topbar .top-actions>.avatar-button{margin-left:0}
}
/* Keep chrome still while content and decorative layers animate. */
html body .bottom-nav button,html body .bottom-nav button :is(svg,span),html body .bottom-nav button.active :is(svg,span){animation:none;transform:none;transition:color .16s,background-color .16s}
html body .bottom-nav{backdrop-filter:none;background:var(--fx-surface-solid,#fff)}
html body .topbar{backdrop-filter:none}
html body #main{overflow-anchor:none}
html body .profile-login .auth-providers{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;width:100%;margin:18px 0 10px}
html body .profile-login :is(.auth-provider,.profile-password){display:grid;grid-template-columns:22px minmax(0,1fr) 22px;align-items:center;gap:8px;box-sizing:border-box;width:100%;min-width:0;min-height:52px;height:auto;margin:0;padding:12px 15px;border-radius:13px;font-size:14px;line-height:1.5;text-align:center;white-space:normal}
html body .profile-login :is(.auth-provider,.profile-password)>b{display:grid;place-items:center;width:22px;height:22px;min-width:0;margin:0;font-size:18px;line-height:1;grid-column:1;grid-row:1}
html body .profile-login :is(.auth-provider,.profile-password)>b svg{width:18px;height:18px}
html body .profile-login :is(.auth-provider,.profile-password)>span{grid-column:2;grid-row:1;min-width:0;overflow-wrap:anywhere}
html body .profile-login>[data-action=register]{display:block;margin:12px 0 0;min-height:44px;width:100%;text-align:center;line-height:1.5}
html body .profile-login h2{line-height:1.5;overflow-wrap:anywhere}

/* Keep the region caption intact when the demo notice shares a row. */
.experience-banner .region-select{white-space:nowrap;max-width:100%;min-width:0}
.experience-banner .region-select select{min-width:0}

/* Account cards reserve real block height for links and actions. An inline
   business link with vertical padding must not paint over the title or copy. */
html body .signed-account{display:grid;grid-template-columns:minmax(0,1fr);align-content:start;gap:14px;min-width:0}
html body .signed-account>:is(h2,p){min-width:0;max-width:100%;margin:0;overflow-wrap:anywhere}
html body .signed-account .business-profile-entry{display:block}
html body .signed-account :is(.business-profile-entry>a,[data-edit-profile]){display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:48px;height:auto;margin:0;padding:12px 16px;white-space:normal;overflow-wrap:anywhere;line-height:1.6;text-align:center;text-decoration:none}
.profile-account-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:12px;min-width:0;margin-top:4px;padding-top:10px;border-top:1px solid var(--line,#dce4df)}
.profile-account-actions .profile-account-action{display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:0;width:100%;min-height:48px;max-width:100%;padding:12px;border:1px solid var(--line,#dce4df);border-radius:12px;background:var(--fx-surface-2,var(--card,#fff));color:var(--ink,#35483b);font:inherit;font-size:13px;font-weight:600;line-height:1.6;white-space:normal;overflow-wrap:anywhere;text-align:center;cursor:pointer}
.profile-account-actions .is-danger{border-color:#e6b9be;background:#fff4f4;color:#a72f3c}
html[data-ui-mode=dark] .profile-account-actions .is-danger{border-color:#87545e;background:#39262d;color:#ffb7bf}
.profile-account-actions .profile-account-action:focus-visible{outline:2px solid currentColor;outline-offset:3px}
/* Keep account deletion controls together and reachable in a scrolling dialog. */
.account-delete-dialog .account-delete-summary{margin:0 0 20px;overflow-wrap:anywhere}
#delete-account-form{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;min-width:0}
#delete-account-form>:is(.form-field,.form-error){margin:0;min-width:0;overflow-wrap:anywhere}
#delete-account-form .form-error:empty{display:none}
#delete-account-form .form-field input{box-sizing:border-box;min-width:0;max-width:100%;min-height:48px}
.account-delete-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,calc(140px * var(--reading-scale,1))),1fr));gap:12px;min-width:0}
.account-delete-dialog .account-delete-actions>button{box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:48px;height:auto;margin:0;padding:12px 16px;white-space:normal;overflow-wrap:anywhere;line-height:1.6;text-align:center}
html body .account-delete-dialog .account-delete-actions .account-delete-submit{background:#a72f3c;border-color:#a72f3c;color:#fff}
html body .account-delete-dialog .account-delete-actions .account-delete-submit:disabled{background:#785159;border-color:#785159;color:#fff}
html[data-ui-mode=dark] body .account-delete-dialog .account-delete-actions .account-delete-submit{background:#922d3c;border-color:#cf7784;color:#fff}
body[data-app-view=profile] .profile-main>:is(h2,p){max-width:100%;overflow-wrap:anywhere}
body[data-app-view=profile] .stats .stat{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;max-width:100%;height:auto}
body[data-app-view=profile] .stats .stat>:is(strong,small){max-width:100%;white-space:normal;word-break:normal;overflow-wrap:anywhere;line-height:1.5}
body[data-app-view=profile] .live-account .notification-row{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:10px 12px;align-items:center}
body[data-app-view=profile] .live-account .notification-row .grow{min-width:0;overflow-wrap:anywhere}
body[data-app-view=profile] .live-account .notification-row .text-btn{min-width:0;max-width:100%;min-height:44px;margin:0;white-space:normal;overflow-wrap:anywhere;line-height:1.5}
#member-profile-form .profile-photo-picker{min-width:0;max-width:100%}
#member-profile-form .profile-photo-picker>:is(label,button){min-width:0;max-width:100%;min-height:44px;white-space:normal;overflow-wrap:anywhere;line-height:1.5}
@media(max-width:600px){body[data-app-view=profile] .live-account .notification-row{grid-template-columns:38px minmax(0,1fr)}body[data-app-view=profile] .live-account .notification-row .text-btn{grid-column:2;justify-self:start}}
@media(max-width:380px){#member-profile-form .profile-photo-picker{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}#member-profile-form .profile-photo-preview{grid-column:1/-1;justify-self:center}#member-profile-form .profile-photo-picker>:is(label,button){justify-content:center;text-align:center;margin:0}}
/* One compact clock line across app tabs; date and time stay together when wrapping. */
body[data-app-view]{--clock-page-gutter:37px}
body[data-app-view] .workspace:has(> #main>.app-clock-bar){padding-top:8px}
body[data-app-view] #main>.app-clock-bar{display:flex;flex:0 0 auto;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:3px 8px;min-width:0;min-height:0;margin:0 0 8px;padding:0;font-size:11px;line-height:1.3;font-variant-numeric:tabular-nums;white-space:normal}
body[data-app-view] .app-clock-bar .clock-values{display:inline-flex;flex-wrap:wrap;align-items:center;gap:3px 8px;min-width:0;max-width:100%}
body[data-app-view] .app-clock-bar :is(.clock-zone,.clock-date,time){flex:0 0 auto;min-width:0;max-width:100%;margin:0;white-space:nowrap;overflow-wrap:normal}
body[data-app-view] .app-clock-bar time{text-align:start}
body[data-app-view=nearby] #main>.app-clock-bar{margin-inline:calc(var(--clock-page-gutter) - 14px)}
@media(max-width:1250px){body[data-app-view]{--clock-page-gutter:25px}}
@media(max-width:1080px){body[data-app-view]{--clock-page-gutter:34px}}
@media(max-width:760px){body[data-app-view]{--clock-page-gutter:18px}body[data-app-view=nearby] #main>.app-clock-bar{margin-inline:var(--clock-page-gutter)}}
@media(max-width:360px){body[data-app-view]{--clock-page-gutter:14px}}
@media(max-height:520px){body[data-app-view=nearby] #main>.app-clock-bar{margin-inline:var(--clock-page-gutter)}}

body[data-app-view] .page-title{flex-wrap:wrap;gap:12px;align-items:flex-start}
body[data-app-view] .page-title>:first-child{flex:1 1 240px;min-width:0;max-width:100%}
body[data-app-view] .page-title>.today{flex:0 1 auto;max-width:100%;white-space:normal;overflow-wrap:anywhere}
body[data-app-view] .live-indoor-intro>*{min-width:0;overflow-wrap:anywhere}
@media(min-width:761px) and (max-width:1100px){
 body[data-app-view] .topbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));height:auto;min-height:84px;gap:10px 18px;padding-block:12px}
 body[data-app-view] .topbar>.location{grid-column:1;grid-row:1;min-width:0;max-width:100%;white-space:normal;text-align:start}
 body[data-app-view] .topbar>.location span{min-width:0;overflow-wrap:anywhere}
 body[data-app-view] .topbar>.search{grid-column:1/-1;grid-row:2;width:100%;max-width:none;min-width:0}
 body[data-app-view] .topbar>.top-actions{grid-column:2;grid-row:1;max-width:100%;min-width:0;flex-wrap:wrap;justify-content:flex-end;margin-left:0}
}
@media(max-width:760px){
 body[data-app-view]{--app-dock-height:calc(58px * var(--reading-scale,1) + env(safe-area-inset-bottom))}
 body[data-app-view] .topbar{height:auto;min-height:62px;flex-wrap:wrap;row-gap:8px;padding-block:10px}
 body[data-app-view] .topbar .mobile-logo{min-width:0;max-width:100%}
 body[data-app-view] .topbar .top-actions{margin-left:auto}
 body[data-app-view] .bottom-nav{height:auto;min-height:var(--app-dock-height);align-items:stretch}
 body[data-app-view] .bottom-nav>button{height:auto;min-height:50px;flex:1 1 0;max-width:none}
 body[data-app-view] .bottom-nav button span{display:block;width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.3}
 html body[data-app-view] .workspace{padding-bottom:max(110px,calc(var(--app-dock-height) + 20px))}
 html body[data-app-view=nearby] .workspace{padding-bottom:calc(var(--app-dock-height) + 6px)}
}

/* Product names remain keyboard actions without shrinking the heading. */
.price-results .product-row .product-route-title{display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:44px;margin:0;padding:0;border:0;background:transparent;color:inherit;font:inherit;font-size:inherit!important;line-height:inherit;text-align:left;white-space:normal;overflow-wrap:anywhere}
.price-results .product-row .price button{max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.5}
/* Compact product cards reserve a separate row for price and navigation. */
@media(max-width:600px){
 .price-results .product-row{grid-template-columns:minmax(0,1fr)}
 .price-results .product-row .price{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 10px;min-width:0;max-width:100%;text-align:start}
 .price-results .product-row .price button{margin:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
}
.modal-body .row{flex-wrap:wrap}
.modal-body .row>*{min-width:0;max-width:100%;overflow-wrap:anywhere}
.toast{pointer-events:none;overflow-wrap:anywhere}
@media(max-width:760px){body[data-app-view] .toast{bottom:max(calc(93px + env(safe-area-inset-bottom)),calc(var(--app-dock-height,58px) + 16px))}}

/* Real photographs reserve their space before loading; captions stay in flow. */
.campaign-photo-media{min-width:0;max-width:100%;overflow:hidden;background:var(--fx-surface-2,#eef3f0)}
.campaign-photo-media img{display:block;width:100%;height:auto;aspect-ratio:16/9;max-height:none;object-fit:cover}
.campaign-photo-media figcaption{position:static;max-width:100%;padding:10px 14px;font-size:11px;line-height:1.65;overflow-wrap:anywhere}
.campaign-photo-credit{margin-top:5px;font-size:10px;line-height:1.65}
.campaign-photo-credit summary{cursor:pointer;overflow-wrap:anywhere}
.campaign-photo-credit a{display:inline;max-width:100%;overflow-wrap:anywhere}
.local-event-photo{grid-column:1/-1;width:100%;margin:0 0 12px;border-radius:16px}
.local-event-body{min-width:0;overflow-wrap:anywhere}
.local-event-card h3,.local-event-card p{overflow-wrap:anywhere}
.local-event-card.local-event-with-photo{grid-template-columns:minmax(140px,.85fr) minmax(0,1.15fr);gap:18px;align-items:start}
.local-event-with-photo>.local-event-photo{grid-column:auto;margin:0}
.local-event-status{display:inline-block;max-width:100%;padding:4px 9px;border-radius:20px;background:var(--mint,#edf5ef);color:var(--green,#267557);font-size:11px;font-weight:700;line-height:1.5;margin-bottom:10px;overflow-wrap:anywhere}
.local-event-verified{display:block;color:var(--muted,#5c7168);font-size:10px;line-height:1.7;margin-top:12px;overflow-wrap:anywhere}
@media(max-width:760px){.local-event-card.local-event-with-photo{grid-template-columns:minmax(0,1fr);gap:14px}}
@media(hover:hover){.profile-account-actions .profile-account-action:hover{text-decoration:underline;text-underline-offset:4px}}
.saved-start{grid-column:1/-1;padding:22px;border:1px solid var(--line,#dce4df);border-radius:16px;background:var(--card,#fff)}
.saved-start p{margin:0 0 16px;font-size:14px;line-height:1.7;color:var(--ink,#173448)}
.saved-start-actions{display:flex;flex-wrap:wrap;gap:10px}
.saved-start-actions button{flex:1 1 160px;min-height:44px;white-space:normal;line-height:1.5}
.mini-map #rail-map.location-pending{display:grid;place-items:center;text-align:center;padding:18px 18px 52px;font-size:12px;line-height:1.7;color:var(--muted)}
