/* Atlas owns this skin: independent of the first plugin loading MapFlow. */
[data-atlas-map-shell].tmf-host .tmf-panel {
  display:flex; flex-direction:column; width:352px; min-width:0;
  max-width:calc(100% - 80px); max-height:calc(100% - 32px);
  overflow:hidden; box-shadow:none; font-family:inherit;
}
[data-atlas-map-shell].tmf-host .tmf-heading,
[data-atlas-map-shell].tmf-host .tmf-panel > .tmf-modules { flex-shrink:0; }
[data-atlas-map-shell].tmf-host .tmf-content {
  flex:1 1 auto; min-height:0; overflow:auto; overflow-x:hidden;
  overscroll-behavior:contain; scrollbar-width:thin; padding:2px;
}
[data-atlas-map-shell].tmf-host .tmf-panel.is-collapsed > .tmf-modules { display:none; }
[data-atlas-map-shell].tmf-host .tmf-panel.is-collapsed .tmf-content { display:none; }
[data-atlas-map-shell].tmf-host :is(.tmf-collapse,.tmf-tabs button,.tmf-modules button,.tmf-map-tools button) {
  color:var(--tmf-ink)!important; background:var(--tmf-soft)!important;
  border:1px solid var(--tmf-line)!important; box-shadow:none!important;
  text-shadow:none!important; opacity:1!important;
}
[data-atlas-map-shell].tmf-host :is(.tmf-tabs button[aria-pressed="true"],.tmf-modules button[aria-current="page"]) {
  color:var(--tmf-accent)!important; background:var(--tmf-selected)!important;
  border-color:var(--tmf-accent)!important;
}
[data-atlas-map-shell].tmf-host .tmf-map-tools button { background:var(--tmf-panel)!important; }
[data-atlas-map-shell].tmf-host .tmf-native:is(.atlas-layer-panel,.atlas-object-card,.atlas-filters) {
  position:static!important; inset:auto!important; transform:none!important;
  width:100%!important; max-width:100%!important; min-width:0!important;
  max-height:none!important; height:auto!important; overflow:visible!important;
  margin:0!important; padding:0!important; background:transparent!important;
  border:0!important; border-radius:0!important; box-shadow:none!important;
  color:var(--tmf-ink)!important;
}
[data-atlas-map-shell].tmf-host .atlas-layer-panel-body { padding:0; overflow:visible; max-height:none; }
[data-atlas-map-shell].tmf-host .atlas-layer-panel-body > section:not(.atlas-opacity-control) {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; align-items:start;
}
[data-atlas-map-shell].tmf-host .atlas-layer-kicker,
[data-atlas-map-shell].tmf-host :is(.talia-totalplay-group-title,.talia-za-totalplay-heading) {
  grid-column:1 / -1; min-width:0; margin:5px 0; color:var(--tmf-muted);
}
[data-atlas-map-shell].tmf-host .atlas-layer-option {
  display:grid; grid-template-columns:16px 8px minmax(0,1fr) auto;
  align-items:center; align-content:start; gap:4px; padding:8px;
  min-width:0; width:100%; min-height:40px; height:auto;
  border:1px solid var(--tmf-line); border-radius:10px;
  background:var(--tmf-soft); color:var(--tmf-ink); font:inherit; font-size:12px;
  white-space:normal; overflow-wrap:normal; word-break:normal; text-align:left;
}
[data-atlas-map-shell].tmf-host .atlas-layer-option--kind {
  grid-template-columns:16px minmax(0,1fr);
}
[data-atlas-map-shell].tmf-host .atlas-layer-option > span {
  min-width:0; width:auto; margin:0; line-height:1.3;
  white-space:normal; word-break:normal; overflow-wrap:normal;
}
[data-atlas-map-shell].tmf-host .atlas-layer-option > input { width:16px; height:16px; min-height:0; padding:0; margin:0; accent-color:var(--tmf-accent); }
[data-atlas-map-shell].tmf-host .atlas-layer-option > i { width:8px; height:8px; }
[data-atlas-map-shell].tmf-host .atlas-layer-option > small[data-atlas-provider-count] { min-width:0; font-size:10px; font-variant-numeric:tabular-nums; }
[data-atlas-map-shell].tmf-host .atlas-layer-option > :is(.talia-totalplay-mode-copy,.talia-za-totalplay-mode-meta,.talia-totalplay-demand-notice,.talia-za-totalplay-notice,.talia-za-totalplay-validate) {
  grid-column:1 / -1; min-width:0; width:100%; margin:4px 0 0;
  white-space:normal; overflow-wrap:normal; word-break:normal; text-align:left;
}
[data-atlas-map-shell].tmf-host .atlas-layer-option:is(:hover,:focus-within) { border-color:var(--tmf-accent); }
[data-atlas-map-shell].tmf-host .atlas-layer-option:has(> input:checked) { background:var(--tmf-selected); }
[data-atlas-map-shell].tmf-host .atlas-opacity-control input { min-height:0; width:100%; }
[data-atlas-map-shell].tmf-host .atlas-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
[data-atlas-map-shell].tmf-host .atlas-view-switch label > span { white-space:normal; }
[data-atlas-map-shell].tmf-host .atlas-view-switch label > span,
[data-atlas-map-shell].tmf-host .atlas-filters :is(select,button) {
  color:var(--tmf-ink)!important; background:var(--tmf-soft)!important;
  border:1px solid var(--tmf-line)!important; box-shadow:none!important;
  font:inherit!important; font-size:12px!important; letter-spacing:normal!important;
  text-transform:none!important;
}
[data-atlas-map-shell].tmf-host .atlas-view-switch label.is-active > span {
  color:var(--tmf-accent)!important; background:var(--tmf-selected)!important; border-color:var(--tmf-accent)!important;
}
[data-atlas-map-shell].tmf-host :is(.talia-totalplay-group-title,.talia-za-totalplay-heading,.talia-totalplay-demand-notice,.talia-za-totalplay-notice) { color:var(--tmf-ink); background:var(--tmf-soft); border-color:var(--tmf-line); }
[data-atlas-map-shell].tmf-host :is(.talia-totalplay-group-title,.talia-za-totalplay-heading) span { color:var(--tmf-muted); max-width:none; }
[data-atlas-map-shell].tmf-host .tmf-content [hidden] { display:none!important; }
[data-atlas-map-shell].tmf-host[data-tmf-theme="dark"] #talia-atlas-map { background:#171d24; }
[data-atlas-map-shell].tmf-host :is(.atlas-map-status,.atlas-map-empty) { box-shadow:none; }
@media(max-width:430px) {
  [data-atlas-map-shell].tmf-host .tmf-panel { width:auto; max-width:none; max-height:66%; }
  [data-atlas-map-shell].tmf-host .tmf-heading { position:static; }
  [data-atlas-map-shell].tmf-host .tmf-tabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  [data-atlas-map-shell].tmf-host .tmf-map-tools { display:flex; right:12px; top:12px; gap:5px; }
  [data-atlas-map-shell].tmf-host .atlas-layer-option { font-size:12px; min-height:44px; }
}

/* Atlas 2.2.4: compact, accessible PDV finder and selection without shadows. */
[data-atlas-map-shell].tmf-host .atlas-layer-panel-body > section.atlas-pdv-finder {
  display:grid;grid-template-columns:minmax(0,1fr);gap:6px;margin:10px 0 4px;
  padding:10px 0;border-top:1px solid var(--tmf-line);min-width:0;
}
[data-atlas-map-shell].tmf-host .atlas-pdv-finder :is(input[type="search"],select) {
  display:block;width:100%;min-width:0;max-width:100%;min-height:40px;
  padding:7px 10px;border:1px solid var(--tmf-line);border-radius:8px;
  background:var(--tmf-soft);color:var(--tmf-ink);font:inherit;font-size:12px;
  box-shadow:none;outline-offset:2px;
}
[data-atlas-map-shell].tmf-host .atlas-pdv-finder :is(input[type="search"],select):focus-visible {
  border-color:var(--tmf-accent);outline:2px solid var(--tmf-accent);
}
[data-atlas-map-shell].tmf-host .atlas-pdv-select-label {font-size:11px;color:var(--tmf-muted)}
[data-atlas-map-shell].tmf-host .atlas-pdv-label-choice {
  display:flex;align-items:center;gap:7px;min-width:0;
  font-size:11px;color:var(--tmf-ink);line-height:1.4;
}
[data-atlas-map-shell].tmf-host .atlas-pdv-label-choice input{width:16px;height:16px;min-height:0;accent-color:var(--tmf-accent)}
[data-atlas-map-shell].tmf-host [data-atlas-pdv-info]{font-size:11px;color:var(--tmf-muted);line-height:1.4}
[data-atlas-map-shell] .atlas-selected-pdv-label {background:var(--tmf-panel,#fff);color:var(--tmf-ink,#202335);border:1px solid var(--tmf-line,#ddd);box-shadow:none;font-family:inherit;font-weight:600;font-size:12px;line-height:1.3;}
[data-atlas-map-shell] .atlas-selected-pdv-label::before{border-top-color:var(--tmf-line,#ddd)}
[data-atlas-map-shell] .atlas-card-source-note{display:block;margin-top:8px;font-size:11px;line-height:1.4;color:var(--tmf-muted,#64748b)}
/* Portal escapes transformed WordPress/KES parents that trap position:fixed. */
.atlas-fullscreen-portal.talia-atlas{
  position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;
  min-height:100dvh!important;max-width:none!important;margin:0!important;padding:0!important;
  overflow:hidden!important;z-index:2147483647!important;background:#f5f6fb!important;
}
.atlas-fullscreen-portal .atlas-panel--explorer.is-atlas-fullscreen{
  width:100vw!important;height:100dvh!important;min-height:0!important;
  overflow:hidden!important;box-shadow:none!important;
}
.atlas-fullscreen-portal .atlas-panel--explorer.is-atlas-fullscreen .atlas-preview-shell--leaflet{
  height:calc(100dvh - 92px)!important;min-height:0!important;
}
body.atlas-fullscreen-open{overflow:hidden!important}
@media(max-width:640px){
  .atlas-fullscreen-portal .atlas-panel--explorer.is-atlas-fullscreen .atlas-preview-shell--leaflet{
    height:calc(100dvh - 20px)!important;min-height:0!important;
  }
}
