/* Keep portrait content in place; help follows the language selector. */
.top-card header{grid-template-columns:minmax(0,1fr) max-content max-content!important;gap:8px}
.top-card .lang-label{display:none!important}
#si-help-button{width:auto!important;min-height:44px;margin:0;padding:0;border:0;background:transparent;color:#28764b;font:inherit;font-size:13px;white-space:nowrap;text-align:right}
#si-help-button:focus:not(:focus-visible){outline:none;box-shadow:none}
.si-brand-row{overflow:hidden}.si-brand-tagline{flex:0 1 auto;overflow:hidden;text-overflow:ellipsis}
.si-help-dialog{width:calc(100% - 32px);max-width:620px;max-height:85dvh;box-sizing:border-box;border:0;border-radius:12px;padding:0;color:#29332e;background:#fff;overflow:auto}
.si-help-heading{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px;border-bottom:1px solid #eee;background:#fff;z-index:1}
.si-help-heading h2{flex:1;min-width:0;font-size:17px;margin:0}
.si-help-heading button,.si-help-about{width:auto!important;min-height:44px;flex:0 0 auto;margin:0;padding:0 4px;background:transparent;border:0;color:#28764b;font-size:15px}
.si-help-content{padding:4px 18px 20px;font-size:14px;line-height:1.7;overflow-wrap:anywhere}
.si-help-content details{border-bottom:1px solid #eee}.si-help-content summary{min-height:44px;box-sizing:border-box;padding:10px 0;cursor:pointer}.si-help-content p{margin:4px 0 16px}.si-help-content h3{font-size:16px;margin:20px 0 6px}
@media (orientation:landscape) and (min-width:640px) and (max-height:600px){
 .container{max-width:none!important;width:100%;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:0 10px;overflow:hidden}
 .top-card{grid-column:1;grid-row:1;min-width:0;margin:0!important;padding-top:0!important;padding-bottom:0!important}
 #si-map{grid-column:1;grid-row:2;width:100%;height:100%!important;min-height:0!important;margin:0!important;box-sizing:border-box}
 #si-results{grid-column:2;grid-row:1 / span 2;width:100%;height:100%;min-height:0;min-width:0;box-sizing:border-box;border-left:1px solid #eee;padding:0!important}
 .top-card .si-brand-row #ui-title{font-size:15px}.si-brand-tagline{font-size:7px}.top-card #lang-select-button{font-size:13px}
 #si-results .spot-card:first-child{margin-top:0!important}
}

/* Only the interactive map suppresses long-press text selection/callouts. */
#si-map,#si-map *{-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important}
.welcome-banner #welcome-motto{color:#28764b;font-size:20px;font-weight:700;line-height:1.5;margin:10px 0 2px;letter-spacing:.04em}
.welcome-banner #welcome-slogan{color:#5d6763;font-size:14px;font-weight:400;line-height:1.6;margin:0 0 8px;letter-spacing:.02em}
.welcome-banner #welcome-desc{margin-top:8px}

.welcome-banner #welcome-start{display:block;width:auto;max-width:100%;min-height:44px;margin:14px auto 0;padding:8px 0;border:0;border-radius:0;background:transparent;color:#28764b;font-size:17px;font-weight:600;line-height:1.5;cursor:pointer}
.welcome-banner #welcome-start:disabled{opacity:.65;cursor:wait}.welcome-banner #welcome-feedback{font-size:13px;line-height:1.6;color:#85551f;margin:6px 0}.welcome-banner #welcome-feedback:empty{display:none}

/* Reclaim vertical space without reducing the 44px interactive rows. */
body{padding-top:max(4px,env(safe-area-inset-top))!important}
.top-card{padding-top:2px!important;padding-bottom:2px!important;margin-bottom:0!important}
.top-card header{margin-bottom:0!important}
#walking-safety-notice{min-height:18px!important;height:18px!important;line-height:18px!important}
.walking-safety-track{line-height:18px!important}
#si-map{margin-top:2px!important;margin-bottom:6px!important}
@media (orientation:landscape) and (min-width:640px) and (max-height:600px){
 .top-card{padding-top:0!important;padding-bottom:0!important}
 #si-map{margin:0!important}
}

/* My entry uses the space formerly reserved for the optional tagline. */
.top-card header{grid-template-columns:minmax(0,1fr) max-content max-content max-content!important}
#si-profile-button{width:auto!important;min-height:44px;margin:0;padding:0;border:0;background:transparent;color:#28764b;font:inherit;font-size:13px;white-space:nowrap;text-align:right}
#si-profile-button:focus:not(:focus-visible){outline:none;box-shadow:none}
.si-brand-tagline{display:none}
@media(min-width:600px) and (min-height:601px){.si-brand-tagline{display:block}}

/* Optional small tagline only appears when its full text fits beside the brand. */
.si-brand-tagline{display:none!important;font-size:8px!important;flex:0 0 auto;overflow:visible;text-overflow:clip}
.si-brand-row.si-tagline-fits .si-brand-tagline{display:block!important}
.welcome-banner,.welcome-banner #welcome-title,.welcome-banner #welcome-motto,.welcome-banner #welcome-slogan,.welcome-banner #welcome-desc{text-align:center}

.si-setting-label{display:block;font-size:15px;font-weight:600;margin:18px 0 6px}.si-setting-select{display:block;width:100%;min-height:44px;box-sizing:border-box;font-size:16px;background:#fff;color:#29332e;border:1px solid #ddd;border-radius:6px;padding:6px}.si-profile-settings{display:block;margin:8px 0 12px;font-weight:600}

/* Keep toolbar positions steady while refresh and GPS callbacks update labels. */
#live-position{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px!important}
#live-position button{width:100%!important;min-width:0;text-align:center}
#live-position #si-refresh-area{text-align:left}
#live-position #toilet-entry{text-align:right}