/* Direct OSM raster needs a permanent, readable credit; full native metadata is adjacent. */
#live-map-host .owner-reference-basemap-pane{display:none!important}
.frame .app.map-credits-layout{grid-template-rows:auto minmax(0,1fr) 78px}
.frame .app-header.map-credits-active{position:relative;min-height:92px;box-sizing:border-box;padding-bottom:26px;z-index:1300}
.map-credits-header-row{position:absolute;left:18px;right:18px;bottom:0;height:24px;display:flex;align-items:center;justify-content:flex-end;gap:3px;color:var(--muted,#526277)}
.map-credits-header-row[hidden],.map-credits-popover[hidden]{display:none!important}
.map-credits-visible{display:flex;align-items:center;justify-content:flex-end;gap:7px;min-width:0;max-width:calc(100% - 47px);font:500 11px/1.25 -apple-system,BlinkMacSystemFont,sans-serif}
.map-credits-visible-link,.map-credits-visible-name{display:inline-flex;align-items:center;min-height:44px;white-space:nowrap;color:var(--muted,#526277);font:inherit}
.map-credits-visible-link{text-decoration:underline;text-underline-offset:2px}
.map-credits-button{position:relative;display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;margin:0;padding:0;border:0;border-radius:10px;background:transparent;color:var(--muted,#526277);font:500 15px/1 -apple-system,BlinkMacSystemFont,sans-serif;cursor:pointer;touch-action:manipulation}
.map-credits-button:active{opacity:.72}
.map-credits-button:focus-visible,.map-credits-visible-link:focus-visible{outline:2px solid var(--accent,#245edb);outline-offset:1px}
.map-credits-popover{position:absolute;z-index:1400;top:calc(100% + 10px);right:0;width:max-content;max-width:min(286px,calc(100vw - 26px));max-width:min(286px,calc(100cqw - 26px));max-height:min(42vh,260px);overflow:auto;padding:10px 12px;border:1px solid var(--line,#dce3eb);border-radius:12px;background:var(--surface,#fff);color:var(--ink,#26394b);box-shadow:0 6px 22px #1022351a}
.map-credits-popover .leaflet-control-attribution{float:none!important;position:static!important;max-width:100%;margin:0!important;padding:0;background:transparent;color:inherit;font:400 12px/1.5 -apple-system,BlinkMacSystemFont,sans-serif;text-align:left;white-space:normal;overflow-wrap:anywhere}
.map-credits-popover .leaflet-control-attribution a{font:inherit;color:var(--accent,#245edb)}
@media(max-width:600px){.frame .app.map-credits-layout{grid-template-rows:auto minmax(0,1fr) 72px}.frame .app-header.map-credits-active{min-height:88px}.map-credits-header-row{left:13px;right:13px}}
@container(min-width:760px){.frame .app.map-credits-layout{grid-template-rows:auto minmax(0,1fr)}.frame .app-header.map-credits-active{min-height:96px}}
/* The genuine production frame is the grid, without the demo's inner .app. */
#approved-frame.map-credits-layout{grid-template-rows:calc(88px + env(safe-area-inset-top,0px)) minmax(0,1fr) calc(72px + env(safe-area-inset-bottom,0px))!important}
#approved-frame .topbar.app-header.map-credits-active{min-height:0;height:100%!important;padding-bottom:26px}
#approved-frame .map-credits-header-row{bottom:0;right:18px;left:18px}
@media(max-width:600px){#approved-frame .map-credits-header-row{right:13px;left:13px}}

.map-credits-coverage{margin:10px 0 0;padding-top:10px;border-top:1px solid var(--line,#dce3eb);color:var(--muted,#526277);font:400 12px/1.5 -apple-system,BlinkMacSystemFont,sans-serif}
.map-credits-coverage a{display:inline;color:var(--accent,#245edb);font:inherit;text-decoration:underline;text-underline-offset:2px}

/* Legal names collapse only for the reviewed vector provider after visible exposure. */
.map-credits-header-row .map-credits-visible[hidden]{display:none!important}

/* Attribution is reachable from Layers; it never reserves a permanent header row. */
#approved-frame.map-credits-layout{grid-template-rows:calc(62px + env(safe-area-inset-top,0px)) minmax(0,1fr) calc(72px + env(safe-area-inset-bottom,0px))!important}
#approved-frame .topbar.app-header.map-credits-active{padding-bottom:0}
#approved-frame .map-credits-header-row{bottom:auto;top:100%;height:auto;min-height:0;pointer-events:none;justify-content:flex-end}
#approved-frame .map-credits-visible{padding:3px 8px;max-width:100%;border-radius:12px;background:var(--surface,#fff);box-shadow:0 1px 5px #10223512;font-size:10px;pointer-events:auto}
#approved-frame .map-credits-visible-link,#approved-frame .map-credits-visible-name{min-height:24px}
.map-credits-button[hidden]{display:none!important}
#approved-frame .map-credits-popover{top:6px;pointer-events:auto}
.map-credits-close{display:block;margin:10px 0 0 auto;min-height:44px;padding:8px 16px;border:1px solid var(--line,#dce3eb);border-radius:14px;background:var(--surface,#fff);color:var(--ink,#26394b);font:600 13px/1.3 -apple-system,BlinkMacSystemFont,sans-serif;cursor:pointer}
.map-credits-close:focus-visible{outline:2px solid var(--accent,#245edb);outline-offset:2px}

/* One plain information letter in the functional corner. The visual is small;
   the actual button remains a full 44px touch target and keyboard control. */
#approved-frame .app-header .header-actions>.map-credits-button{
 position:relative;isolation:isolate;display:grid;place-items:center;flex:0 0 44px;
 width:44px;height:44px;min-width:44px;min-height:44px;margin:0;padding:0;
 border:0;border-radius:50%;background:transparent;color:var(--muted,#526277);
 font:600 15px/1 Georgia,serif;letter-spacing:0;box-shadow:none;
 -webkit-backdrop-filter:none;backdrop-filter:none;pointer-events:auto;cursor:pointer;
}
#approved-frame .app-header .header-actions>.map-credits-button::before{
 content:"";position:absolute;z-index:-1;inset:11px;border:1px solid var(--line,#dce3eb);
 border-radius:50%;background:var(--surface,#fff);opacity:.92;pointer-events:none;
}
#approved-frame .app-header .header-actions>.map-credits-button[hidden]{display:none!important}
#approved-frame .app-header .header-actions>.map-credits-button:active{opacity:.72;transform:none;scale:1}
#approved-frame .app-header .header-actions>.map-credits-button:focus-visible{outline:2px solid var(--accent,#245edb);outline-offset:1px}
@media(max-width:360px){
 #approved-frame .app-header.map-credits-corner-present .brand-name{display:none!important}
}

/* Owner refinement: keep the hit target, put the small letter at the screen edge. */
#approved-frame .app-header .header-actions>.map-credits-button{
 top:-12px;right:-18px;padding:4px 9px 0 0;display:flex;justify-content:flex-end;align-items:flex-start;
 font-size:13px;line-height:14px;
}
#approved-frame .app-header .header-actions>.map-credits-button::before{inset:auto;top:2px;right:2px;width:18px;height:18px;box-sizing:border-box}
@media(max-width:345px){#approved-frame .app-header .header-actions>.map-credits-button{right:-12px}}
