/* Shared touch-friendly refinements for the connected pilot and local preview. */
[hidden]{display:none!important}
button,input,select,textarea{min-width:0}
button{min-height:44px;line-height:1.35}
button:disabled,.pilot-main button:disabled{cursor:default}
button[aria-busy=true]{cursor:progress}
input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea{
  font-size:16px;min-height:44px;padding:11px 12px;border-radius:12px;
}
label{margin-top:16px;line-height:1.45}
label>input,label>select,label>textarea{margin-top:6px}
textarea{line-height:1.55}
.text-button{display:inline-flex;align-items:center;min-height:44px;padding:8px 0}
summary{cursor:pointer;min-height:44px;align-content:center;line-height:1.4}
summary:focus-visible{outline:3px solid var(--accent);outline-offset:3px;border-radius:10px}
.card{border-radius:22px}
.card>h2:first-child{margin-top:0}
.card>.error:empty,.caption:empty,.hint:empty{display:none}
.feed-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65}

/* Keep navigation out of the reading area until it is needed. */
.feed-heading{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:2px 10px;margin-bottom:16px;align-items:center}
.feed-heading h1{grid-column:1;grid-row:1;font-size:25px;letter-spacing:-.7px;line-height:1.2}
.feed-preview-tag{grid-column:1;grid-row:2;justify-self:start;padding:0;background:none;font-size:11px}
.feed-menu{grid-column:2;grid-row:1 / span 2;position:relative;align-self:start;z-index:6}
.feed-menu>summary{display:grid;place-items:center;list-style:none;width:44px;height:44px;border:1px solid var(--border);border-radius:14px;background:var(--glass);font-size:17px;letter-spacing:2px}
.feed-menu>summary::-webkit-details-marker{display:none}
.feed-menu[open]>summary{background:var(--soft);color:var(--accent)}
.feed-menu .feed-links{position:absolute;right:0;top:52px;display:flex;flex-direction:column;gap:2px;margin:0;padding:6px;width:220px;max-width:calc(100vw - 40px);border:1px solid var(--border);border-radius:18px;background:var(--glass-solid);box-shadow:0 12px 36px #112e5326}
.feed-menu .feed-links a{display:flex;align-items:center;min-height:44px;font-size:14px;padding:10px 12px;border-radius:12px}
.feed-menu .feed-links a:hover{background:var(--soft)}
.feed-toolbar button{background:var(--input)}
.feed-toolbar .feed-national[aria-pressed=true]{background:var(--soft);border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
.community-tools{margin:0 0 12px}
.community-scopes{gap:4px;flex-wrap:nowrap;margin:10px 0 4px;padding:4px;border-radius:17px;background:var(--soft)}
.community-scopes button:not(.community-activity-trigger){padding:8px 6px;min-width:0;border:0;background:transparent;border-radius:12px;font-size:13px;white-space:normal}
.community-scopes button[aria-pressed=true]{background:var(--glass-solid);color:var(--accent);box-shadow:0 2px 6px #15325312}
.community-scopes .community-activity-trigger{position:relative;flex:0 0 44px;width:44px;height:44px;padding:10px;border:0;border-radius:12px;background:var(--glass)}
.community-activity-trigger svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#activity-count:not(:empty){position:absolute;top:0;right:-2px;padding:2px 4px;min-width:17px;border-radius:20px;background:var(--accent);color:var(--glass-solid);font-size:10px;line-height:1.3}
.community-tools>details>summary{display:flex;align-items:center;gap:9px;padding:8px 2px;color:var(--muted);font-size:13px;list-style:none}
.community-tools>details>summary::-webkit-details-marker{display:none}
.community-tools>details>summary svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;flex-shrink:0}
.filter-indicator{margin-left:auto;padding:3px 8px;background:var(--soft);color:var(--accent);border-radius:20px;font-size:11px}
.community-search{gap:10px;grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
.community-search label{margin:4px 0 0;font-size:12px}
.community-tools details>.text-button{margin-top:4px;font-size:12px;margin-right:18px}
.community-post-actions{border-top:1px solid var(--border);padding-top:10px;gap:6px;margin-top:14px}
.community-post-actions button{font-size:12px;padding:8px 5px;border-radius:12px}
.feed-post{padding:20px}
.feed-post .feed-body{margin:16px 0;line-height:1.65}
.feed-post-meta time{font-size:11px;font-variant-numeric:tabular-nums}
.feed-composer summary{display:flex;align-items:center;gap:10px}
.feed-composer summary::before{content:'+';display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:var(--soft);color:var(--accent);font-size:22px;font-weight:400;flex-shrink:0}
.feed-composer[open] summary::before{content:'−'}
.feed-composer .feed-photo-label{margin-top:14px}
.feed-composer-meta{gap:6px}
.feed-list-heading{margin-top:14px;scroll-margin-top:90px}
.feed-list-heading h2{font-size:17px}
.feed-disclaimer{font-size:11px}

/* Sheets scroll independently and keep their close action reachable. */
dialog{max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain;scroll-padding-block:80px 100px}
dialog .dialog-head{position:sticky;top:-22px;z-index:2;background:var(--glass-solid);padding:8px 0 12px;margin-bottom:8px;min-width:0}
dialog .dialog-head h2{line-height:1.25;font-size:20px;overflow-wrap:anywhere}
dialog .dialog-head>button{display:grid;place-items:center;min-width:44px;width:44px;min-height:44px;height:44px;padding:0;border-radius:50%;font-size:25px;flex-shrink:0}
.feed-dialog.discussion{width:min(660px,calc(100% - 28px))}
.discussion .feed-body{font-size:15px}
.discussion details{margin:10px 0}
.discussion summary{font-size:13px;color:var(--accent)}
#discussion-post>.actions{gap:4px 12px;margin-top:8px}
#discussion-post>.actions button{font-size:12px;padding:8px 10px}
#discussion-status:not(:empty){padding:10px 12px;border-radius:12px;background:var(--soft);font-size:13px}
.community-comment .actions{gap:6px;margin-top:8px}
.community-comment .actions button{padding:8px 10px;font-size:12px}
.community-comment .feed-post-meta{gap:4px 10px}
.community-activity{font-size:14px;font-weight:400;line-height:1.5}
.place-results:empty{display:none}
.place-results button{padding:10px 12px;border-radius:12px;font-size:14px}
.place-results small{display:block;color:var(--muted);font-size:11px;margin-top:3px}
.feed-city-shortcuts{margin:12px 0}
.feed-city-shortcuts summary{font-size:13px;color:var(--muted)}

/* Compact photo options and settings, with the primary controls visible. */
.local-profile-note{padding:10px 12px;margin:12px 0;border-radius:12px;font-size:12px}
.local-profile-intro{flex-direction:row;align-items:center;gap:14px}
.local-profile-intro .local-avatar.large,.profile-avatar-settings .profile-avatar.large{width:72px;height:72px;flex-basis:72px}
.local-profile-intro>div{min-width:0}
.local-profile-intro h2{font-size:18px}
.local-profile-intro p{line-height:1.5;margin-top:5px}
.local-photo-grid,.profile-photo-grid{gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}
.local-photo-grid:has(form){grid-template-columns:repeat(2,minmax(0,1fr))}
.local-photo-tile figcaption,.profile-photo-tile figcaption{padding:8px 12px}
.photo-options summary{font-size:13px;color:var(--accent);font-weight:600}
.photo-options form label{font-size:12px}
.photo-options .actions{gap:6px;margin-top:10px}
.photo-options button{font-size:12px;padding:8px 10px}
.photo-options input{font-size:16px}
.photo-options .actions button{width:100%}
.appearance-options{gap:0;border:1px solid var(--border);border-radius:16px;overflow:hidden;margin-top:16px}
.appearance-choice{grid-template-columns:24px minmax(0,1fr);gap:2px 12px;padding:12px 14px;border:0;border-bottom:1px solid var(--border);border-radius:0;min-height:64px;box-shadow:none;background:var(--input)}
.appearance-choice:last-child{border-bottom:0}
.appearance-choice .theme-preview{display:none}
.appearance-choice input{grid-column:1;grid-row:1 / span 2;width:20px;height:20px}
.appearance-choice strong{grid-column:2;grid-row:1;font-size:14px}
.appearance-choice small{grid-column:2;grid-row:2;font-size:12px}
.appearance-choice:has(input:checked){box-shadow:none;border-color:var(--border);background:var(--soft)}
.appearance-choice:has(input:focus-visible){outline-offset:-3px}
.pilot-nav{display:flex;justify-content:flex-start;overflow-x:auto;gap:4px;padding-bottom:6px;scrollbar-width:thin;overscroll-behavior-x:contain}
.pilot-nav a{flex:0 0 auto;white-space:nowrap;padding:10px 13px;font-size:13px;border-radius:13px;overflow-wrap:normal}
.fuel-controls{gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}
.fuel-controls label{font-size:12px;margin-top:12px}
.fuel-controls .toggle{align-self:end;margin-bottom:0}
.fuel-unit{display:block;color:var(--muted);font-size:11px}
.fuel-station .row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 12px}
.fuel-station h2{grid-column:1;grid-row:1 / span 2;margin:0;font-size:18px}.fuel-unit{grid-column:2;text-align:right}
.fuel-price{white-space:nowrap;font-variant-numeric:tabular-nums}
@media(max-width:600px){
  dialog:not(#confirm){width:100%;max-width:100%;max-height:calc(100dvh - 12px);margin:auto auto 0;padding:20px 20px max(20px,env(safe-area-inset-bottom));border-radius:25px 25px 0 0}
  dialog .dialog-head{top:-20px}
  .feed-dialog.discussion{width:100%}
  .feed-heading h1{font-size:24px}
  .feed-post{padding:18px}
}
@media(max-width:350px){
  .community-search{grid-template-columns:minmax(0,1fr)}
  .feed-heading h1{font-size:23px}
  .local-photo-grid:has(details[open]),.profile-photo-grid:has(details[open]){grid-template-columns:minmax(0,1fr)}
}
@media(prefers-reduced-transparency:reduce){.feed-menu>summary{background:var(--glass-solid)}}
