/* StreetMate mobile-first layer. The primary canvas is 360–430 px. */
:root{--sm-gutter:16px;--sm-touch:44px;--sm-nav:72px}
html{min-width:320px;scroll-padding-top:72px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{min-width:320px}img,svg,canvas{max-width:100%}button,select,input,textarea{max-width:100%}
button,.btn,input[type=button],input[type=submit],select{min-height:var(--sm-touch)}

.account-trigger{gap:8px;align-items:center}
.account-avatar{width:28px;height:28px;border-radius:999px;display:inline-grid;place-items:center;background:linear-gradient(135deg,var(--cyan),var(--pink));color:#071018;font-weight:900;box-shadow:0 0 18px rgba(0,229,255,.2)}
.account-name{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-menu{position:absolute;right:16px;top:70px;z-index:90;min-width:190px;padding:8px;border:1px solid rgba(255,255,255,.12);border-radius:18px;background:rgba(12,18,27,.96);box-shadow:0 22px 54px rgba(0,0,0,.42);backdrop-filter:blur(18px)}
.account-menu[hidden]{display:none}
.account-menu a,.account-menu button{width:100%;min-height:44px;border:0;border-radius:14px;padding:10px 12px;display:flex;align-items:center;color:var(--text);background:transparent;font:inherit;text-align:left;text-decoration:none}
.account-menu a:hover,.account-menu button:hover{background:rgba(255,255,255,.08)}

@media(max-width:767px){
 body:not(.legal-page):not(.admin-locked){padding-bottom:calc(var(--sm-nav) + env(safe-area-inset-bottom))}
 body,p,li{overflow-wrap:anywhere}input,select,textarea{min-height:48px;font-size:16px!important}textarea{line-height:1.5}
 .btn{min-height:44px!important}
 .top,.route-page .top{min-height:62px;height:62px;padding:8px var(--sm-gutter);flex-wrap:nowrap;gap:10px}
 .top .logo,.route-page .logo{min-width:0;font-size:18px}.top .mark,.route-page .mark{width:36px;height:34px}
 .top .site-nav,.route-page .top .site-nav{display:none}.top .city-picker{min-width:112px;height:44px;margin-left:auto}.server-banner{top:62px}
 .mobile,.route-page .mobile{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;inset:auto 0 0;z-index:80;height:calc(var(--sm-nav) + env(safe-area-inset-bottom));padding:4px 4px env(safe-area-inset-bottom);border-top:1px solid #ffffff1f;background:#05080ef0;backdrop-filter:blur(22px);box-shadow:0 -16px 45px #0006}
 .mobile a,.mobile button{min-width:0;min-height:60px;padding:5px 1px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:0;border-radius:13px;background:transparent;color:#ffffff94;font-size:9px;font-weight:800;line-height:1;text-decoration:none}
 .mobile a[aria-current=page]{color:var(--cyan);background:#25efff14}.mobile span{font-size:19px;line-height:1}
 .mobile .account-menu{position:fixed;left:12px;right:12px;top:auto;bottom:calc(var(--sm-nav) + 10px + env(safe-area-inset-bottom));min-width:0}
 .mobile .account-avatar{width:24px;height:24px;font-size:12px}.mobile .account-name{font-size:9px;max-width:56px}
 .section,.route-main.has-content,.map-route{padding-left:var(--sm-gutter)!important;padding-right:var(--sm-gutter)!important}
 .section,.dashboard-section{padding-top:42px;padding-bottom:42px}.route-main.has-content{padding-top:38px;padding-bottom:46px}
 .route-main.has-content .route-intro{margin-bottom:32px;text-align:left}.route-icon{width:52px;height:52px;margin:0 0 18px;border-radius:16px}
 .route-main.has-content .route-intro h1,.venues-hero h1,.legal-hero h1,.legal-document h1{font-size:clamp(40px,13vw,56px);line-height:.96;letter-spacing:-.065em}
 .route-main.has-content .route-intro p,.venues-hero p,.legal-hero p{margin-top:14px;font-size:15px;line-height:1.55}
 .hero{padding:42px var(--sm-gutter) 36px}.hero h1{margin-block:14px 18px;font-size:clamp(45px,14vw,62px);line-height:.92}.hero>p{font-size:15px;line-height:1.55}
 .head,.dashboard-heading,.catalog-heading,.events-result-head,.signals-page-head{align-items:flex-start;flex-direction:column;gap:12px}
 .head h2,.dashboard-heading h2,.catalog-heading h2,.events-result-head h2,.signals-page-head h2{font-size:clamp(29px,9vw,38px);line-height:1}
 .search,.dashboard-search,.events-search,.catalog-search>div,.map-search{min-height:52px}.search{margin-top:24px;padding:8px}.search label{padding-inline:8px}
 .quick,.filters,.event-time-filters,.map-filter-quick{overscroll-behavior-inline:contain;scrollbar-width:none}
 .quick button,.chip,.event-time-filters button,.map-filter-body label>span{min-height:44px;padding-inline:13px}
 .dashboard-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.dashboard-stats article{min-width:0;padding:14px 8px}
 .dashboard-venue-grid,.dashboard-event-grid,.signals-page-list,.events-grid,.venue-catalog-grid{grid-template-columns:1fr;gap:12px}
 .card,.dashboard-venue,.dashboard-event,.dashboard-signal,.route-signal-card,.event-card,.catalog-card{border-radius:20px}
 .catalog-card-visual,.event-card-accent{height:142px}.catalog-card.expanded .catalog-card-visual{height:160px}
 .catalog-card-body,.event-card-body,.route-signal-card,.dashboard-signal{padding:16px}.catalog-card-body h3,.event-card-title h3{font-size:21px}
 .catalog-card-footer{align-items:stretch;flex-direction:column}.catalog-card-footer .btn,.event-detail-toggle,.dashboard-detail-toggle{width:100%;min-height:46px;display:grid;place-items:center}
 .catalog-controls{grid-template-columns:1fr;gap:12px;margin:22px 0 38px;padding:12px;border-radius:20px}.catalog-search{grid-column:auto}.catalog-toggle{min-height:48px}
 .events-filters{align-items:stretch;flex-direction:column;margin:12px 0 30px}.event-time-filters{display:flex;flex-wrap:nowrap;margin-right:calc(var(--sm-gutter)*-1);padding-right:var(--sm-gutter);overflow-x:auto}.event-time-filters button{flex:0 0 auto}
 .events-filters label,.events-filters select{width:100%}.event-card-title{gap:8px}.event-inline-detail,.catalog-inline-detail{padding:20px 15px}
 .event-detail-facts,.inline-detail-facts,.dashboard-detail-facts,.venue-detail-facts,.venue-info-grid{grid-template-columns:1fr}
 .event-detail-actions,.inline-detail-actions,.dashboard-detail-actions,.venue-final-actions{display:grid;grid-template-columns:1fr;gap:8px}
 .event-detail-actions .btn,.inline-detail-actions .btn,.dashboard-detail-actions .btn,.venue-final-actions .btn{width:100%;min-height:48px;text-align:center}
 .venue-primary-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.venue-primary-action{min-height:70px;padding:10px 8px}.venue-gallery-grid{grid-template-columns:1fr 1fr}
 .sm-signal-dialog,.signal-dialog,.place-dialog,.account-dialog{width:100%;max-width:none;max-height:100dvh;height:100dvh;margin:0;border-radius:0}
 .sm-signal-dialog form,.signal-form{padding-bottom:calc(22px + env(safe-area-inset-bottom))}.sm-signal-actions,.signal-form-actions{position:sticky;bottom:0;padding-bottom:env(safe-area-inset-bottom);background:#080d16f5}
 .map-route{padding-top:24px!important;padding-bottom:22px!important}.map-route .route-intro{margin-bottom:20px!important}.map-toolbar{grid-template-columns:1fr}
 .map-search,.map-location-btn{height:50px;border-radius:14px}.map-location-btn{width:100%}
 .map-mode-switch{gap:5px;padding:5px;border-radius:17px}.map-mode-switch button{min-width:0;min-height:60px;padding:8px;grid-template-columns:30px 1fr;gap:2px 7px}.map-mode-switch button small{display:none}
 .map-filters summary{min-height:50px}.map-filter-body{padding:0 10px 12px}.map-filter-quick,.map-type-grid{display:flex;flex-wrap:nowrap;overflow-x:auto}.map-filter-body label{flex:0 0 auto}
 .map-filter-selects{grid-template-columns:1fr}.map-filter-selects button{grid-column:auto;width:100%;min-height:44px}
 .map-stage{height:max(480px,calc(100dvh - 270px));min-height:480px;border-radius:18px}
 .leaflet-control-zoom a,.leaflet-control-layers-toggle{width:44px!important;height:44px!important;line-height:44px!important}.streetmate-leaflet-popup .leaflet-popup-content{width:min(260px,calc(100vw - 56px))!important}
 .route-page footer,footer{padding:34px var(--sm-gutter) calc(34px + var(--sm-nav));flex-direction:column;gap:12px;text-align:center}
 .legal-main{width:calc(100% - 32px);padding:38px 0 78px}.legal-grid{grid-template-columns:1fr}.legal-card{min-height:220px;padding:18px}.legal-card p,.legal-copy{font-size:15px}.legal-card a,.legal-back{min-height:44px;align-items:center}
 .legal-page footer{padding-bottom:34px}
 body:has(.admin-shell){padding-bottom:0}.admin-top{min-height:58px!important;height:auto!important;padding:8px 10px!important;gap:8px!important}.admin-brand{flex:0 0 auto}.admin-top-actions{min-width:0;margin-left:auto;gap:6px}
 .account-switcher{min-width:0}.account-switcher select{width:min(48vw,180px);max-width:180px;min-height:44px;font-size:12px!important}.admin-top-actions a,.admin-top-actions button{min-width:44px;min-height:44px}
 .prototype-alert{min-height:48px;padding:9px 12px;align-items:flex-start;font-size:11px;line-height:1.45}.admin-shell{display:block}
 .admin-sidebar{min-height:0;padding:10px 0 8px;position:sticky;top:58px;z-index:22;border-right:0;border-bottom:1px solid var(--line);background:#070b12f5;backdrop-filter:blur(18px)}.admin-side-head{display:none}
 .admin-sidebar nav{display:flex;gap:6px;padding:0 10px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none}.admin-sidebar nav button{width:auto;min-width:max-content;height:46px;padding:0 12px;flex:0 0 auto;scroll-snap-align:start;font-size:11px}
 .admin-main{padding:24px 10px 52px}.section-heading{min-height:0;margin-bottom:18px;align-items:stretch;flex-direction:column;gap:12px}.section-heading h2{font-size:34px}.section-heading p{font-size:13px;line-height:1.5}
 .section-actions{align-items:stretch;flex-direction:column}.admin-primary,.admin-search,.admin-search.small,[data-reset-access]{width:100%;min-height:46px}.admin-search input{min-height:42px}
 .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.metric-card{min-height:112px;padding:14px}.quick-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.quick-actions button{min-height:96px;padding:12px}
 .dashboard-grid,.city-grid,.insight-grid,.accounts-grid{grid-template-columns:1fr}.table-card{border-radius:16px}.table-meta{min-height:48px;padding:0 12px}.table-scroll{overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin}.table-scroll table{min-width:720px}
 .table-scroll th,.table-scroll td{padding:12px 10px;font-size:11px}.table-scroll td strong{font-size:12px}.row-actions button,.legal-actions button{min-width:44px;min-height:44px;font-size:10px}
 .admin-dialog,.admin-dialog:has(.dialog-section){width:100%;max-width:none;height:100dvh;max-height:100dvh;margin:0;border-radius:0}.admin-dialog form{min-height:100%;padding:18px 14px calc(20px + env(safe-area-inset-bottom))}
 .dialog-head{position:sticky;top:-18px;z-index:4;padding:12px 0;background:#0c1522}.dialog-head button{width:44px;height:44px;color:#fff}
 .dialog-fields,.seo-fields,.location-coordinates,.permission-add{grid-template-columns:1fr}.dialog-fields label.full,.seo-fields label:nth-child(2){grid-column:auto}.dialog-fields label,.field-help,.legal-markdown-help{font-size:12px;line-height:1.45}.dialog-fields input,.dialog-fields select,.dialog-fields textarea{min-height:48px}
 .dialog-section{padding:13px}.dialog-section-head{align-items:stretch;flex-direction:column}.dialog-section-head>button,.photo-upload{width:100%;min-height:44px;justify-content:center}.dialog-gallery{grid-template-columns:1fr 1fr}.hours-editor{grid-template-columns:1fr}.hours-day{padding:12px}.hours-day-head strong,.kitchen-toggle,.kitchen-until{font-size:12px!important}
 .hours-interval{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) 40px}.hours-interval button{width:40px;height:40px}
 .dialog-actions{position:sticky;bottom:calc(-20px - env(safe-area-inset-bottom));z-index:5;display:grid;grid-template-columns:1fr 1fr;margin:22px -14px calc(-20px - env(safe-area-inset-bottom));padding:12px 14px calc(12px + env(safe-area-inset-bottom));background:#070c14f7;border-top:1px solid var(--line)}.dialog-actions button{min-height:48px}
}

@media(min-width:768px){.mobile{display:none}.btn,button{touch-action:manipulation}}
@media(max-width:374px){:root{--sm-gutter:14px}.mobile a,.mobile button{font-size:8px}.mobile span{font-size:18px}.venue-primary-action{font-size:10px}}
/* 2026 mobile app polish: layout-first overrides, no backend/API changes. */
:root{
 --sm-page-max:430px;
 --sm-section-gap:28px;
 --sm-card-gap:14px;
 --sm-card-radius:20px;
 --sm-control:48px;
 --sm-bottom-nav:78px;
 --sm-card-bg:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.032)),rgba(13,21,34,.88);
 --sm-card-border:rgba(255,255,255,.105);
 --sm-focus:0 0 0 3px rgba(37,239,255,.25);
}
.map-preview,.map-stage,.leaflet-container{overflow:hidden}
.leaflet-container img,.leaflet-tile{max-width:none!important}
.dashboard-search-section{overflow:hidden}
@media(max-width:767px){
 html{scroll-padding-top:70px}
 body{overflow-x:hidden}
 body:not(.admin-locked){padding-bottom:calc(var(--sm-bottom-nav) + env(safe-area-inset-bottom))}
 body,button,input,select,textarea{font-size:16px}
 a,button,[role=button],input,select,textarea,summary{touch-action:manipulation}
 button,.btn,.admin-primary,.catalog-toggle,.event-detail-toggle,.dashboard-detail-toggle,.map-location-btn,.legal-card a,.legal-back{min-height:var(--sm-control)!important}
 .btn,.admin-primary,.catalog-card-footer .btn,.event-detail-toggle,.dashboard-detail-toggle{border-radius:16px}
 .top,.route-page .top{position:sticky;top:0;z-index:70;min-height:60px;height:60px;padding:8px max(12px,var(--sm-gutter));border-bottom:1px solid rgba(255,255,255,.09)}
 .top .logo,.route-page .logo{font-size:17px;gap:8px}
 .top .logo span,.route-page .logo span{max-width:128px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .top .mark,.route-page .mark{width:34px;height:32px}
 .top .site-nav,.route-page .top .site-nav{display:none!important}
 .city-picker{display:none!important}
 .mobile,.route-page .mobile{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));height:calc(var(--sm-bottom-nav) + env(safe-area-inset-bottom));padding:6px 6px calc(6px + env(safe-area-inset-bottom));border-top:1px solid rgba(255,255,255,.12);background:linear-gradient(180deg,rgba(9,14,22,.88),rgba(4,7,12,.96));backdrop-filter:blur(24px) saturate(1.24);-webkit-backdrop-filter:blur(24px) saturate(1.24)}
 .mobile a,.mobile button{min-height:62px;border-radius:16px;font-size:10px;letter-spacing:-.01em;color:rgba(235,243,252,.68)}
 .mobile span{font-size:20px}
 .mobile a[aria-current=page],.mobile button[aria-current=page],.mobile a:hover,.mobile button:hover{background:rgba(37,239,255,.12);color:#eaffff}
 .mobile a[aria-current=page] span,.mobile button[aria-current=page] span{filter:drop-shadow(0 0 10px rgba(37,239,255,.45))}
 .dashboard{display:flex;flex-direction:column;width:min(100%,var(--sm-page-max));padding:0 var(--sm-gutter) calc(28px + var(--sm-bottom-nav));gap:0}
 .dashboard-search-section{order:1;min-height:auto;padding:26px 0 20px;display:grid;grid-template-columns:1fr;gap:18px}
 .dashboard-search-section:before{width:280px;height:280px;right:-120px;top:-34px;opacity:.75}
 .dashboard-search-copy .kicker{font-size:10px}
 .dashboard-search-copy h1{margin:12px 0 12px;font-size:clamp(38px,13vw,54px);line-height:.94;letter-spacing:-.07em}
 .dashboard-search-copy h1 span{-webkit-text-stroke:1px var(--cyan)}
 .dashboard-search-copy p{font-size:15px;line-height:1.5}
 .dashboard-search{border-radius:22px;padding:9px}
 .dashboard-search>div{grid-template-columns:28px 1fr;gap:6px}
 .dashboard-search button{grid-column:1/-1;width:100%;min-height:50px}
 .dashboard-search input{height:48px;font-size:16px}
 .dashboard-section{padding:var(--sm-section-gap) 0;border-top:1px solid rgba(255,255,255,.075)}
 .dashboard-section[aria-labelledby="events-title"]{order:2}
 .dashboard-section[aria-labelledby="venues-title"]{order:3}
 .dashboard-section[aria-labelledby="signals-title"]{order:4}
 .dashboard-section[aria-labelledby="stats-title"]{order:5}
 .dashboard-section.map-section{order:6}
 .dashboard-heading{margin-bottom:16px;gap:10px}
 .dashboard-heading h2{font-size:clamp(26px,8.4vw,34px);line-height:1.02;letter-spacing:-.05em}
 .dashboard-heading p{font-size:13px;line-height:1.45}
 .dashboard-heading>.btn,.dashboard-heading-actions,.dashboard-heading-actions .btn{width:100%}
 .dashboard-heading-actions{display:grid;grid-template-columns:1fr;gap:8px}
 .dashboard-stats{grid-template-columns:1fr 1fr 1fr;gap:8px}
 .dashboard-stats article{min-height:92px;padding:11px 8px;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;border-radius:18px}
 .dashboard-stats article>span{width:34px;height:34px;border-radius:12px;font-size:17px}
 .dashboard-stats strong{font-size:26px}
 .dashboard-stats p{font-size:10px;line-height:1.2}
 .dashboard-venue-grid,.dashboard-event-grid,.dashboard-signal-list{display:grid;grid-template-columns:1fr;gap:var(--sm-card-gap)}
 .dashboard-venue,.dashboard-event,.dashboard-signal,.catalog-card,.event-card,.route-signal-card,.my-card,.admin-card,.table-card{border-radius:var(--sm-card-radius);border-color:var(--sm-card-border);background:var(--sm-card-bg)}
 .dashboard-venue{min-height:218px;padding:16px}
 .dashboard-card-photo{filter:saturate(1.04) contrast(1.02)}
 .dashboard-venue-copy h3{font-size:22px;line-height:1.05;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 .dashboard-venue-copy p{min-height:0;font-size:12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 .dashboard-venue-meta{gap:8px;font-size:10px}
 .dashboard-event{min-height:0;padding:0;grid-template-columns:1fr;gap:0}
 .dashboard-event:has(.dashboard-card-photo):before{background:linear-gradient(180deg,rgba(4,8,14,.18),rgba(4,8,14,.82) 54%,rgba(4,8,14,.95))}
 .dashboard-event .dashboard-card-photo{position:relative;height:150px;grid-row:1;width:100%;border-radius:20px 20px 0 0}
 .dashboard-event-time{position:absolute;top:12px;left:12px;z-index:2;width:auto;min-width:58px;height:42px;border-radius:14px;background:rgba(5,10,17,.78);backdrop-filter:blur(14px)}
 .dashboard-event>div:not(.dashboard-inline-detail):not(.dashboard-event-time){padding:16px}
 .dashboard-event h3{font-size:20px;line-height:1.1}
 .dashboard-event p{font-size:12px;line-height:1.45}
 .event-status{padding:0 16px 14px;font-size:10px}
 .dashboard-signal{grid-template-columns:44px minmax(0,1fr);gap:12px;padding:15px}
 .dashboard-signal .signal-place,.dashboard-signal small,.dashboard-signal .dashboard-detail-toggle{grid-column:1/-1}
 .dashboard-signal h3{font-size:15px}.dashboard-signal p{font-size:13px}
 .venues-main,.route-main.has-content,.map-route,.legal-main,.my-main{width:min(100%,var(--sm-page-max));padding-left:var(--sm-gutter)!important;padding-right:var(--sm-gutter)!important}
 .venues-hero{padding:28px 0 20px}
 .venues-hero h1,.route-main.has-content .route-intro h1,.legal-hero h1,.my-hero h1{font-size:clamp(34px,12vw,48px);line-height:.96}
 .venues-hero p,.route-main.has-content .route-intro p,.my-hero p{font-size:15px;line-height:1.5}
 .catalog-controls{position:relative;gap:10px;margin:14px 0 26px;padding:12px;border-radius:20px}
 .catalog-controls label>span,.events-filters label,.catalog-search span{font-size:12px}
 .catalog-search>div,.events-search,.map-search{border-radius:16px}
 .catalog-card-visual{height:138px}
 .catalog-card-body{padding:15px}
 .catalog-card-body h3{font-size:21px;line-height:1.08;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 .catalog-address{font-size:12px}
 .catalog-badges{margin:12px 0 10px}
 .status-badge,.catalog-tags span,.event-card-meta>span{font-size:10px;padding:6px 8px}
 .catalog-tags span:nth-child(n+5){display:none}
 .catalog-card-footer{margin-top:13px;padding-top:12px}
 .catalog-inline-detail,.event-inline-detail,.dashboard-inline-detail{border-radius:0 0 18px 18px}
 .venue-detail-header{display:grid;gap:14px}
 .venue-detail-header .catalog-badges{justify-content:flex-start}
 .venue-detail-shell{grid-template-columns:1fr;gap:12px}
 .venue-detail-section{padding:16px;border-radius:18px}
 .venue-gallery-grid{display:flex;overflow-x:auto;gap:10px;scroll-snap-type:x mandatory;padding-bottom:2px}
 .venue-gallery-grid figure{flex:0 0 82%;height:210px;scroll-snap-align:start}
 .venue-gallery-grid .gallery-main{grid-row:auto}
 .venue-primary-actions{position:sticky;top:68px;z-index:8;padding:8px;margin:0 -4px 6px;border:1px solid rgba(255,255,255,.09);border-radius:18px;background:rgba(8,13,22,.88);backdrop-filter:blur(18px)}
 .venue-primary-action{min-height:68px;border-radius:14px}
 .events-search{height:auto;min-height:52px}
 .event-time-filters{gap:8px}
 .event-time-filters button{min-height:44px;font-size:12px}
 .events-grid{grid-template-columns:1fr;gap:14px}
 .event-card-accent{height:148px}
 .event-card-body{padding:15px}
 .event-card-title{gap:8px}
 .event-card-title h3{font-size:21px;line-height:1.08}
 .event-card-meta{margin:12px 0}
 .event-detail-image,.event-detail-gallery figure{max-height:none;border-radius:16px}
 .map-route{padding-top:18px!important}
 .map-stage{height:calc(100dvh - 252px);min-height:430px;border-radius:20px}
 .map-preview,.map-stage,.leaflet-container{overflow:hidden}
 .leaflet-container img,.leaflet-tile{max-width:none!important}
 .map-toolbar,.map-filter-selects{gap:10px}
 .map-mode-switch{grid-template-columns:1fr 1fr}
 .map-mode-switch button{min-height:54px}
 .sm-signal-dialog,.signal-dialog,.place-dialog,.account-dialog,.my-dialog,.admin-dialog{width:100%!important;max-width:none!important;height:100dvh!important;max-height:100dvh!important;margin:0!important;border-radius:0!important}
 .account-shell,.detail-body,.my-dialog-card{padding:20px 16px calc(24px + env(safe-area-inset-bottom))}
 .account-form label,.ad-form label,.dialog-fields label,.my-dialog-body label{gap:7px;font-size:13px;line-height:1.35}
 .account-form input,.account-form textarea,.ad-form input,.ad-form textarea,.ad-form select,.dialog-fields input,.dialog-fields select,.dialog-fields textarea,.my-dialog-body input,.my-dialog-body select,.my-dialog-body textarea{min-height:50px;border-radius:15px;font-size:16px!important}
 body:has(.admin-shell){padding-bottom:0}
 .admin-top{position:sticky;top:0;z-index:60}
 .admin-top-actions>span{display:none}
 .admin-sidebar nav{padding-bottom:2px}
 .table-scroll{overflow:visible}
 .table-scroll table{min-width:0;width:100%;border-spacing:0}
 .table-scroll thead{display:none}
 .table-scroll tbody{display:grid;gap:12px;padding:10px}
 .table-scroll tr{display:grid;gap:8px;padding:14px;border:1px solid var(--sm-card-border);border-radius:18px;background:var(--sm-card-bg)}
 .table-scroll td{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:0!important;border:0!important;font-size:12px!important;text-align:right}
 .table-scroll td::before{content:"Detail";flex:0 0 38%;color:var(--muted);font-size:10px;font-weight:900;text-align:left;text-transform:uppercase;letter-spacing:.06em}
 .table-scroll td:nth-child(1)::before{content:"Položka"}
 .table-scroll td:nth-child(2)::before{content:"Místo"}
 .table-scroll td:nth-child(3)::before{content:"Město"}
 .table-scroll td:nth-child(4)::before{content:"Datum"}
 .table-scroll td:nth-child(5)::before{content:"Čas"}
 .table-scroll td:nth-child(6)::before{content:"Typ"}
 .table-scroll td:nth-child(7)::before{content:"Stav"}
 .table-scroll td:nth-child(8)::before{content:"Akce"}
 .table-scroll td:last-child{justify-content:flex-end;text-align:left}
 .table-scroll td:last-child::before{display:none}
 .row-actions,.legal-actions{width:100%;display:grid!important;grid-template-columns:1fr 1fr;gap:8px}
 .row-actions button,.legal-actions button{width:100%;min-height:44px;border-radius:13px}
 .admin-dialog form,.my-dialog-card{min-height:100dvh}
 .dialog-actions,.my-dialog-actions{position:sticky;bottom:0;z-index:7;display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-left:-14px;margin-right:-14px;padding:12px 14px calc(12px + env(safe-area-inset-bottom));background:rgba(7,12,20,.96);border-top:1px solid var(--line)}
 .my-main{padding-top:18px}
 .my-grid{grid-template-columns:1fr;gap:14px}
 .my-card-photo{height:142px}
 .my-actions{grid-template-columns:1fr}
 .my-event-row{grid-template-columns:1fr;gap:12px}
 .my-event-actions{display:grid;grid-template-columns:1fr 1fr;justify-content:stretch}
 .toast,.my-toast,.catalog-toast,.admin-toast{left:12px!important;right:12px!important;bottom:calc(var(--sm-bottom-nav) + 12px + env(safe-area-inset-bottom))!important;max-width:none!important;border-radius:16px}
}
@media(max-width:374px){
 :root{--sm-gutter:12px;--sm-bottom-nav:74px}
 .mobile a,.mobile button{font-size:9px}
 .mobile span{font-size:18px}
 .dashboard-stats article{padding:10px 6px}
 .dashboard-stats strong{font-size:23px}
 .dashboard-heading h2,.catalog-heading h2,.events-result-head h2{font-size:28px}
 .venue-primary-action{min-height:68px}
}
@media(min-width:768px) and (max-width:1023px){
 .dashboard,.venues-main,.route-content,.my-main{width:min(100% - 40px,900px)}
 .dashboard-venue-grid,.venue-catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .dashboard-event-grid,.events-grid,.signals-page-list{grid-template-columns:repeat(2,minmax(0,1fr))}
 .admin-shell{grid-template-columns:220px minmax(0,1fr)}
}
@media(min-width:768px) and (max-width:1180px){
 .dashboard{width:min(100% - 40px,980px);padding-left:0;padding-right:0}
 .dashboard-search-section{min-height:auto;padding:72px 0 52px;grid-template-columns:1fr;gap:28px}
 .dashboard-search-section{overflow:hidden}
 .dashboard-search-copy h1{font-size:clamp(54px,9vw,88px)}
 .dashboard-search-copy p{max-width:680px}
 .dashboard-stats article{min-height:132px}
 .dashboard-venue-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .dashboard-event-grid{grid-template-columns:1fr}
}

/* StreetMate homepage: mobile-first dashboard, not a long catalog */
.dashboard-hero-brand{display:inline-flex;align-items:center;gap:12px;width:max-content;max-width:100%;padding:8px 12px;border:1px solid rgba(255,255,255,.12);border-radius:999px;background:rgba(255,255,255,.055);box-shadow:0 16px 50px rgba(0,0,0,.22)}
.dashboard-hero-brand .brand-mark{width:34px;height:34px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(135deg,rgba(37,239,255,.2),rgba(255,43,138,.18));color:var(--cyan);font-size:22px}
.dashboard-hero-brand strong{display:block;font-size:15px;line-height:1;letter-spacing:-.02em}
.dashboard-hero-brand small{display:block;margin-top:3px;color:var(--muted);font-size:11px;font-weight:800}
.dashboard-actions{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.dashboard-action{min-height:86px;padding:14px 12px;display:grid;align-content:center;justify-items:start;gap:8px;border:1px solid rgba(255,255,255,.12);border-radius:22px;background:linear-gradient(145deg,rgba(255,255,255,.11),rgba(255,255,255,.035));box-shadow:0 18px 44px rgba(0,0,0,.22);color:#fff;text-decoration:none;transition:transform .18s ease,border-color .18s ease,background .18s ease}
.dashboard-action:hover,.dashboard-action:focus-visible{transform:translateY(-2px);border-color:rgba(37,239,255,.45);outline:0}
.dashboard-action span{font-size:27px;line-height:1}
.dashboard-action strong{font-size:15px;letter-spacing:-.02em}
.dashboard-venue-copy p{-webkit-line-clamp:2}
.dashboard-wall-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.dashboard-wall-card{min-height:132px;padding:14px;display:grid;grid-template-columns:42px minmax(0,1fr);gap:12px;position:relative;overflow:hidden;border:1px solid rgba(255,255,255,.12);border-radius:22px;background:linear-gradient(145deg,rgba(37,239,255,.08),rgba(255,255,255,.035));color:#fff;text-decoration:none;box-shadow:0 18px 48px rgba(0,0,0,.2);transition:transform .18s ease,border-color .18s ease}
.dashboard-wall-card:hover,.dashboard-wall-card:focus-visible{transform:translateY(-2px);border-color:rgba(37,239,255,.45);outline:0}
.dashboard-wall-avatar{width:42px;height:42px;display:grid;place-items:center;overflow:hidden;border-radius:15px;background:rgba(37,239,255,.12);color:var(--cyan);font-size:21px}
.dashboard-wall-avatar img{width:100%;height:100%;object-fit:cover}
.dashboard-wall-copy{min-width:0}
.dashboard-wall-copy>div{display:flex;align-items:center;gap:7px;min-width:0}
.dashboard-wall-copy strong{min-width:0;font-size:13px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dashboard-wall-copy span{flex:0 0 auto;padding:4px 7px;border-radius:999px;background:rgba(255,43,138,.14);color:#ffd8e9;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}
.dashboard-wall-copy p{margin:8px 0 7px;color:#cbd5e1;font-size:12px;line-height:1.38;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.dashboard-wall-copy small{color:var(--muted);font-size:10px}
.dashboard-wall-card>b{grid-column:2;color:var(--cyan);font-size:10px;text-transform:uppercase;letter-spacing:.06em}

@media(max-width:767px){
 body:has(.dashboard){background:#070c14}
 .dashboard{gap:0;padding-bottom:calc(var(--sm-bottom-nav) + 30px)}
 .dashboard-search-section{padding:18px 0 18px!important;gap:14px!important}
 .dashboard-search-copy{display:grid;gap:9px}
 .dashboard-search-copy h1{margin:2px 0 0!important;font-size:clamp(38px,12vw,48px)!important;line-height:.9!important}
 .dashboard-search-copy p{max-width:28ch;font-size:14px!important;line-height:1.38!important}
 .dashboard-search{padding:8px;border-radius:22px}
 .dashboard-search>label{padding:4px 10px 8px;font-size:10px}
 .dashboard-search>div{grid-template-columns:28px minmax(0,1fr);gap:4px}
 .dashboard-search input{height:45px;font-size:16px}
 .dashboard-search .btn{grid-column:1/-1;min-height:44px;width:100%;border-radius:15px}
 .dashboard-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .dashboard-action{min-height:78px;padding:13px;border-radius:20px}
 .dashboard-action span{font-size:25px}
 .dashboard-action strong{font-size:14px}
 .dashboard-section{padding:18px 0!important}
 .dashboard-section[aria-labelledby="stats-title"]{order:2}
 .dashboard-section[aria-labelledby="wall-title"]{order:3}
 .dashboard-section[aria-labelledby="venues-title"]{order:4}
 .dashboard-section[aria-labelledby="events-title"]{order:5}
 .dashboard-section[aria-labelledby="signals-title"]{order:6}
 .dashboard-section.map-section{order:6}
 .dashboard-heading{align-items:center;margin-bottom:12px;gap:12px}
 .dashboard-heading h2{font-size:24px!important;letter-spacing:-.045em}
 .dashboard-heading p{display:none}
 .dashboard-heading .kicker{font-size:9px}
 .dashboard-heading>.btn,.dashboard-heading-actions .btn{min-height:38px;padding:0 12px;border-radius:13px;font-size:11px;white-space:nowrap}
 .dashboard-heading-actions{display:flex;flex-wrap:nowrap;gap:7px}
 .dashboard-stats{display:flex;gap:8px;overflow-x:auto;margin-right:calc(var(--sm-gutter)*-1);padding-right:var(--sm-gutter);scrollbar-width:none}
 .dashboard-stats::-webkit-scrollbar,.dashboard-wall-list::-webkit-scrollbar,.dashboard-venue-grid::-webkit-scrollbar,.dashboard-event-grid::-webkit-scrollbar,.dashboard-signal-list::-webkit-scrollbar{display:none}
 .dashboard-stats article{flex:0 0 32%;min-height:78px;padding:10px 8px;border-radius:17px}
 .dashboard-stats article>span{width:29px;height:29px;border-radius:11px;font-size:15px}
 .dashboard-stats strong{font-size:21px}
 .dashboard-stats p{font-size:9px}
 .dashboard-wall-list,.dashboard-venue-grid,.dashboard-event-grid,.dashboard-signal-list{display:flex!important;grid-template-columns:none!important;gap:10px!important;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;margin-right:calc(var(--sm-gutter)*-1);padding:1px var(--sm-gutter) 8px 1px;scrollbar-width:none}
 .dashboard-wall-card,.dashboard-venue,.dashboard-event,.dashboard-signal,.skeleton-card{flex:0 0 min(78vw,310px);scroll-snap-align:start}
 .dashboard-wall-card{min-height:118px;padding:12px;border-radius:18px}
 .dashboard-wall-copy p{-webkit-line-clamp:3;font-size:11px}
 .dashboard-venue{min-height:176px!important;padding:13px!important;border-radius:18px!important}
 .dashboard-venue .dashboard-card-photo{height:100%!important}
 .dashboard-venue-top{align-items:center}
 .dashboard-venue-copy h3{font-size:19px!important;line-height:1.05!important;margin-bottom:5px}
 .dashboard-venue-copy p{font-size:11px!important;line-height:1.35!important;-webkit-line-clamp:2}
 .dashboard-venue-meta{margin-top:9px!important;padding-top:8px!important;font-size:9px!important}
 .dashboard-detail-toggle{min-height:36px!important;padding:0 12px!important;border-radius:12px!important;font-size:11px!important}
 .dashboard-event{grid-template-columns:44px minmax(0,1fr)!important;align-items:center;min-height:116px;padding:12px!important;border-radius:18px!important}
 .dashboard-event .dashboard-card-photo{display:none}
 .dashboard-event-time{width:44px!important;height:44px!important;border-radius:15px!important;font-size:12px!important}
 .dashboard-event h3{font-size:16px!important;line-height:1.15!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 .dashboard-event p{font-size:11px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .dashboard-event .event-status{font-size:9px}
 .dashboard-event>.dashboard-detail-toggle{grid-column:2;justify-self:start}
 .dashboard-signal{min-height:116px!important;padding:12px!important;border-radius:18px!important;grid-template-columns:42px minmax(0,1fr)}
 .dashboard-signal-avatar{width:42px!important;height:42px!important;border-radius:15px!important}
 .dashboard-signal h3{font-size:15px!important}
 .dashboard-signal p{font-size:11px!important;line-height:1.35!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 .signal-place{grid-column:2;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .map-section{padding-top:12px!important}
 .dashboard-map-card{min-height:0;padding:16px!important;border-radius:20px!important}
 .dashboard-map-card p{display:none}
 .map-preview{min-height:180px!important}
}
:root {
  --safe-top: env(safe-area-inset-top, 0px);
}

body {
  padding-top: var(--safe-top);
}
