/* Player Tracker and U.S. / Canada map share the Diaspora Network shell. */
main:is(.mfn-directory,.mfn-atlas) {
  --mfn-surface: #101a14;
  --mfn-panel: #0d1811;
  --mfn-border: #34483a;
  --mfn-text: #f4f7f3;
  --mfn-muted: #bac9bd;
  --mfn-green: #50d462;
  --mfn-gold: #f2ce52;
  --mfn-title: clamp(2.25rem, 4vw, 3.65rem);
  --mfn-edge: min(1320px, calc(100% - 44px));
  color: var(--mfn-text);
}

html:root body main:is(.mfn-directory,.mfn-atlas) .mfn-subnav {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  width: var(--mfn-edge) !important;
  max-width: none !important;
  margin: 12px auto 0 !important;
  padding: 0 0 9px !important;
  gap: 5px 10px !important;
  border: 0;
  border-bottom: 1px solid var(--mfn-border);
}
html:root body main:is(.mfn-directory,.mfn-atlas) .mfn-subnav a {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 11px !important;
  border-radius: 5px;
  color: var(--mfn-text) !important;
  font-size: .84rem;
  font-weight: 730;
  white-space: nowrap;
}
html:root body main:is(.mfn-directory,.mfn-atlas) .mfn-subnav a[aria-current=page] {
  color: var(--mfn-green) !important;
  background: #122819;
}
html:root body main:is(.mfn-directory,.mfn-atlas) .mfn-subnav a:hover {
  color: var(--mfn-green) !important;
}
html:root body main:is(.mfn-directory,.mfn-atlas) .mfn-title {
  box-sizing: border-box;
  width: var(--mfn-edge) !important;
  max-width: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 0 !important;
  padding: 15px 0 19px !important;
  margin: 0 auto !important;
  gap: 22px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html:root body main:is(.mfn-directory,.mfn-atlas) .mfn-title h1 {
  margin: 3px 0 6px !important;
  font-size: var(--mfn-title) !important;
  font-weight: 900 !important;
  line-height: 1.02 !important;
  letter-spacing: -.035em !important;
  text-transform: none !important;
  color: var(--mfn-text) !important;
}
html:root body main.mfn-directory .mfn-title h1::after {
  content: ".";
  color: var(--mfn-gold);
}
html:root body main:is(.mfn-directory,.mfn-atlas) .mfn-title .mfn-eyebrow,
html:root body main.mfn-atlas .mfn-coverage .mfn-eyebrow {
  margin: 0 !important;
  color: var(--mfn-green) !important;
  font-size: .76rem !important;
  font-weight: 900 !important;
  letter-spacing: .145em;
  line-height: 1.35;
  text-transform: uppercase;
}
html:root body main:is(.mfn-directory,.mfn-atlas) .mfn-title .mfn-deck {
  margin: 0 !important;
  color: var(--mfn-muted) !important;
  font-size: .99rem !important;
  line-height: 1.55 !important;
}
.mfn-tracker-stats { display: flex; flex-wrap: wrap; justify-content: flex-end; margin-inline-start: auto; }
.mfn-stat { min-width: 98px; padding: 1px 19px; border-inline-start: 1px solid var(--mfn-border); }
.mfn-stat strong, .mfn-stat span { display: block; }
.mfn-stat strong { color: var(--mfn-text); font-size: clamp(1.45rem, 2.5vw, 2.15rem); font-weight: 900; line-height: 1; }
.mfn-stat span { margin-top: 6px; color: var(--mfn-muted); font-size: .82rem; line-height: 1.35; }

html:root body main.mfn-directory #tracker-workspace {
  width: var(--mfn-edge) !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 0 !important;
}
html:root body main.mfn-directory .mf-ptg-main {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html:root body main.mfn-directory .mf-ptg-filterbar {
  display: grid !important;
  grid-template-columns: minmax(190px, 1fr) minmax(125px, .24fr) minmax(135px, .27fr) auto !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 13px 16px !important;
  align-items: start;
  border: 1px solid var(--mfn-border) !important;
  border-top: 2px solid var(--mfn-green) !important;
  background: var(--mfn-surface) !important;
  border-radius: 7px !important;
}
html:root body main.mfn-directory .mf-ptg-filterbar :is(input,select,button) {
  min-height: 44px !important;
  max-width: 100%;
  border: 1px solid #4b6150 !important;
  border-radius: 5px !important;
  background: #0e1812 !important;
  color: var(--mfn-text) !important;
}
html:root body main.mfn-directory .mf-ptg-filterbar .mf-ptg-search { min-width: 0; width: auto !important; }
html:root body main.mfn-directory .mf-ptg-filterbar .mf-ptg-search input { width: 100% !important; font-size: .98rem !important; }
html:root body main.mfn-directory .mf-ptg-filterbar :is(.mf-network-role,.mfn-tracker-options) select { width: 100%; padding: 0 11px; }
html:root body main.mfn-directory .mf-ptg-filterbar .mfn-tracker-options label { display: block; }
html:root body main.mfn-directory .mf-ptg-filterbar .mfn-tracker-options label > span {
  position: absolute;
  width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
html:root body main.mfn-directory .mf-ptg-filterbar [data-more-filters] { width: auto !important; padding-inline: 15px !important; white-space: nowrap; }
html:root body main.mfn-directory .mf-ptg-filterbar .mf-ptg-extra-filters,
html:root body main.mfn-directory .mf-ptg-filterbar .mf-polish-filter-feedback { grid-column: 1 / -1; }
html:root body main.mfn-directory .mf-ptg-filter-status {
  border: 0 !important; background: transparent !important; padding: 0 !important; margin: 0 !important; min-height: 0 !important;
}
html:root body main.mfn-directory .mf-ptg-filter-status:has(button) {
  display: flex !important;
  justify-content: flex-end !important;
}
html:root body main.mfn-directory .mf-ptg-filter-status button {
  margin: 0 !important; padding: 0 !important; min-height: 0 !important; border: 0 !important;
}
html:root body main.mfn-directory .mf-ptg-filter-status:not(:has([data-filter-count])) {
  display: none !important;
}

.mfn-views { display: flex; gap: 8px; margin: 11px 0 13px; }
.mfn-view { display: inline-flex; min-height: 36px; align-items: center; justify-content: center; min-width: 92px; padding: 5px 15px; border: 1px solid var(--mfn-border); border-radius: 5px; color: var(--mfn-text) !important; font-weight: 800; }
.mfn-view:is(:hover,:focus-visible) { border-color: var(--mfn-green); }
.mfn-view.is-current { background: var(--mfn-green); border-color: var(--mfn-green); color: #07180b !important; }
.mfn-directory-grid { display: grid; align-items: start; grid-template-columns: minmax(0, 2fr) minmax(245px, 1fr); gap: 12px; }
.mfn-directory-rail { display: grid; gap: 12px; min-width: 0; }
html:root body main.mfn-directory #players-watch {
  box-sizing: border-box !important;
  margin: 0 !important;
  min-width: 0;
  padding: 17px !important;
  border: 1px solid var(--mfn-border) !important;
  border-top: 2px solid var(--mfn-green) !important;
  border-radius: 7px !important;
  background: var(--mfn-panel) !important;
  scroll-margin-top: 90px;
}
html:root body main.mfn-directory #players-watch .mf-ptg-section-head {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline !important;
  justify-content: flex-start !important;
  margin: 0 0 13px !important;
}
html:root body main.mfn-directory #players-watch h2 {
  margin: 0 !important;
  font-size: clamp(1.5rem, 2.65vw, 2.25rem) !important;
  line-height: 1.12 !important;
  font-weight: 880 !important;
  letter-spacing: -.022em;
  text-transform: none !important;
  color: var(--mfn-text) !important;
}
html:root body main.mfn-directory #players-watch [data-filter-count] { color: var(--mfn-muted); font-size: .81rem; }
html:root body.mf-people-unified main.mfn-directory#main-content #players-watch .mfn-result-cards {
  display: grid !important;
  grid-template-columns: repeat(3,minmax(0,1fr)) !important;
  gap: 11px !important;
  margin: 0 !important;
  padding: 0 !important;
}
html:root body.mf-people-unified main.mfn-directory#main-content #players-watch .mfn-result-card {
  display: flex !important;
  width: 100% !important;
  min-height: 184px !important;
  padding: 15px !important;
  border: 1px solid #45634c !important;
  border-radius: 6px !important;
  background: linear-gradient(145deg, #152e1d 0%, #0c1a11 82%) !important;
  align-items: flex-end !important;
  text-align: start !important;
  color: var(--mfn-text) !important;
  white-space: normal !important;
  box-shadow: none !important;
  position: relative;
  overflow: hidden;
}
html:root body.mf-people-unified main.mfn-directory#main-content #players-watch .mfn-result-card:is(:hover,:focus-visible) { border-color: var(--mfn-green) !important; }
html:root body.mf-people-unified main.mfn-directory#main-content #players-watch .mfn-result-card > .mf-ptg-image-empty { display: none !important; }
html:root body.mf-people-unified main.mfn-directory#main-content #players-watch .mfn-result-card > img {
  position: absolute;
  inset: 0 0 auto auto;
  width: 36% !important;
  height: 52% !important;
  object-fit: cover;
  border-radius: 0 6px 0 12px;
}
html:root body.mf-people-unified main.mfn-directory#main-content #players-watch .mfn-result-card > span { display: flex !important; flex-direction: column; width: 100%; gap: 3px; }
html:root body.mf-people-unified main.mfn-directory#main-content #players-watch .mfn-result-card strong {
  display: block;
  order: -1;
  margin: 0 0 4px !important;
  color: var(--mfn-text) !important;
  font-size: clamp(1.02rem, 1.85vw, 1.48rem) !important;
  font-weight: 880 !important;
  line-height: 1.05 !important;
  letter-spacing: -.022em;
}
html:root body.mf-people-unified main.mfn-directory#main-content #players-watch .mfn-result-card small {
  color: var(--mfn-muted) !important;
  font-size: .78rem !important;
  line-height: 1.35 !important;
}
html:root body main.mfn-directory #players-watch .mfn-result-card .mf-ptg-country { order: 2; margin-top: 5px; }
html:root body main.mfn-directory #players-watch .mfn-result-card > span::after {
  content: "View profile →";
  order: 3;
  margin-top: 5px;
  color: var(--mfn-green);
  font-size: .76rem;
  font-weight: 800;
}
html:root body main.mfn-directory #players-watch .mf-network-pagination { margin-top: 11px !important; }

.mfn-spotlight {
  position: relative;
  min-height: clamp(225px, 26vw, 390px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
  overflow: hidden;
  padding: 14px;
  border: 1px solid var(--mfn-border);
  border-top: 2px solid var(--mfn-green);
  border-radius: 7px;
  background: #14291a;
}
.mfn-spotlight::after { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(0deg, #06120be8 4%, #0b1a1090 30%, transparent 57%); }
.mfn-spotlight-photo { position: absolute; z-index: -2; inset: 0; width: 100% !important; height: 100% !important; object-fit: contain; object-position: right bottom; }
.mfn-spotlight-label { position: absolute; top: 13px; left: 13px; color: #141507; background: var(--mfn-gold); font-size: .7rem; font-weight: 900; text-transform: uppercase; letter-spacing: .07em; padding: 5px 8px; border-radius: 3px; }
.mfn-spotlight-copy h2 { margin: 0 !important; color: #f7faf7 !important; font-size: clamp(1.55rem, 2.75vw, 2.42rem) !important; font-weight: 900 !important; line-height: .98 !important; text-transform: uppercase; }
.mfn-spotlight-copy p { margin: 7px 0 !important; color: #deede0 !important; }
.mfn-spotlight-copy a,.mfn-map-teaser b,.mfn-directory-jump { color: var(--mfn-green) !important; font-weight: 850; }
.mfn-spotlight-no-photo { min-height: 164px; }
.mfn-map-teaser {
  min-height: 100px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 9px;
  padding: 11px;
  border: 1px solid var(--mfn-border);
  border-radius: 7px;
  background: var(--mfn-panel);
  color: var(--mfn-text) !important;
}
.mfn-map-teaser:hover { border-color: var(--mfn-green); }
.mfn-map-teaser svg { width: 100%; height: auto; pointer-events: none; max-height: 112px; }
.mfn-teaser-copy { display: grid; gap: 3px; padding-left: 8px; border-left: 1px solid var(--mfn-border); font-size: .8rem; line-height: 1.25; }
.mfn-teaser-copy strong { color: var(--mfn-text); font-size: 1.8rem; font-weight: 900; }
html:root body main.mfn-directory :is(#diaspora-map,.mf-network-canada,.mf-network-policy,#latest-movement) { scroll-margin-top: 85px; margin-top: 15px !important; }
html:root body main.mfn-directory .mf-ptg-feature[hidden] { display: none !important; }

html:root body main.mfn-atlas :is(.mfn-atlas-hero-shell,.mfn-atlas-workspace) {
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
}
html:root body main.mfn-atlas .mfn-atlas-workspace > .mfn-atlas-shell {
  width: var(--mfn-edge) !important;
  max-width: none !important;
  margin-inline: auto !important;
  padding: 0 !important;
}
.mfn-directory-jump { white-space: nowrap; }
.mfn-explorer {
  border: 1px solid var(--mfn-border);
  border-top: 2px solid var(--mfn-green);
  border-radius: 7px;
  background: var(--mfn-panel);
  overflow: hidden;
}
html:root body main.mfn-atlas .mfn-explorer .mf-map-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 2.8fr) minmax(236px, 1fr) !important;
  align-items: stretch !important;
  gap: 0 !important;
  min-height: 0 !important;
  padding: 17px !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
html:root body main.mfn-atlas .mfn-explorer .mf-map-canvas {
  display: flex !important;
  flex-direction: column;
  min-height: 0 !important;
  padding: 0 15px 0 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-right: 1px solid var(--mfn-border) !important;
  border-radius: 0 !important;
  background: transparent !important;
}
.mfn-atlas-header { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 19px; padding: 2px 0 6px; }
html:root body main.mfn-atlas .mfn-atlas-header h2,
html:root body main.mfn-atlas .mfn-atlas-directory-head h2 {
  margin: 0 !important;
  color: var(--mfn-text) !important;
  font-size: clamp(1.6rem, 2.8vw, 2.45rem) !important;
  font-weight: 900 !important;
  line-height: 1.08 !important;
  text-transform: none !important;
  letter-spacing: -.025em;
}
.mfn-country-switch { display: inline-flex; min-width: 0; border: 1px solid var(--mfn-border); border-radius: 5px; }
.mfn-country-switch button { background: transparent; color: var(--mfn-text); border: 0; min-height: 36px; padding: 6px 13px; font-size: .85rem; font-weight: 800; border-radius: 4px; }
.mfn-country-switch button[aria-pressed=true] { background: var(--mfn-green); color: #07180b; }
html:root body main.mfn-atlas .mf-map-canvas svg {
  width: 100% !important;
  max-height: min(48vw, 452px) !important;
  height: auto !important;
  margin: auto !important;
}
html:root body main.mfn-atlas .mf-map-canvas svg path[data-state],
html:root body main.mfn-atlas .mf-map-canvas svg.mfn-canada-map path {
  fill: var(--mfn-map-fill, #203c2a) !important;
  stroke: #0c1b12 !important;
  stroke-width: 1.15 !important;
  vector-effect: non-scaling-stroke;
  transition: fill .18s ease, stroke .18s ease;
}
html:root body main.mfn-atlas .mf-map-canvas svg :is(path[data-state],.mfn-canada-map path):is(.is-active,:hover,:focus-visible) {
  stroke: var(--mfn-gold) !important;
  stroke-width: 2.1 !important;
}
html:root body main.mfn-atlas .mf-map-state-marker { display: none !important; }
html:root body main.mfn-atlas .mfn-country-hidden { display: none !important; }
html:root body main.mfn-atlas [data-map-status] { font-size: .7rem !important; letter-spacing: 0 !important; text-transform: none !important; opacity: .85; margin: 2px 0 0 !important; }
html:root body main.mfn-atlas .mf-map-canada {
  border: 0 !important;
  padding: 0 !important;
  margin: 4px 0 0 !important;
  background: transparent !important;
}
html:root body main.mfn-atlas .mf-map-canada header { display: none !important; }
html:root body main.mfn-atlas .mf-map-canada [data-map-canada-list] {
  grid-template-columns: repeat(auto-fit,minmax(108px,1fr)) !important;
  gap: 6px !important;
}
html:root body main.mfn-atlas .mf-map-canada [data-map-canada-list] button { min-height: 45px !important; padding: 6px 8px !important; }

.mfn-atlas-rail { min-width: 0; padding-left: 17px; }
.mfn-atlas-rail > h2 { color: var(--mfn-text); font-size: 1.35rem; font-weight: 850; line-height: 1.15; margin: 3px 0 8px; }
html:root body main.mfn-atlas .mfn-atlas-rail .mf-map-panel {
  display: grid !important;
  align-content: start;
  padding: 0 0 12px !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  border: 0 !important;
  border-bottom: 1px solid var(--mfn-border) !important;
  margin: 0 0 12px !important;
  background: transparent !important;
}
html:root body main.mfn-atlas .mf-map-panel h2 {
  margin: 10px 0 2px !important;
  color: var(--mfn-text) !important;
  font-size: clamp(1.35rem, 2.4vw, 2.15rem) !important;
  font-weight: 900 !important;
  line-height: 1.08 !important;
  text-transform: none !important;
}
html:root body main.mfn-atlas .mf-map-panel > .mf-map-kicker,
html:root body main.mfn-atlas .mf-map-panel > .mf-map-panel__facts,
html:root body main.mfn-atlas .mf-map-panel > .mf-map-city-list,
html:root body main.mfn-atlas .mf-map-panel > .mf-map-player-list,
html:root body main.mfn-atlas .mf-map-panel > .mf-map-empty { display: none !important; }
html:root body main.mfn-atlas .mf-map-panel > label {
  order: -1;
  margin: 0 0 5px !important;
  padding: 0 0 11px;
  border-bottom: 1px solid var(--mfn-border);
  font-size: .72rem !important;
  color: var(--mfn-muted) !important;
}
html:root body main.mfn-atlas .mf-map-panel .mfn-atlas-selected-count { font-size: 1rem !important; color: var(--mfn-muted) !important; margin: 0 0 9px !important; }
html:root body main.mfn-atlas .mf-map-panel a.mf-people-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 39px;
  padding: 6px 10px !important;
  background: var(--mfn-green) !important;
  border-color: var(--mfn-green) !important;
  color: #07180b !important;
  border-radius: 5px !important;
  font-size: .84rem !important;
  font-weight: 850 !important;
}
html:root body main.mfn-atlas .mfn-coverage .mfn-eyebrow { color: var(--mfn-gold) !important; }
.mfn-coverage ul { list-style: none; padding: 0; margin: 6px 0 0; }
.mfn-coverage li { border-bottom: 1px solid var(--mfn-border); }
.mfn-coverage button { display: flex; justify-content: space-between; width: 100%; min-height: 33px; padding: 3px 0; gap: 10px; text-align: start; background: none; border: 0; color: var(--mfn-text); font-size: .87rem; }
.mfn-coverage button:hover { color: var(--mfn-green); }

html:root body main.mfn-atlas .mfn-explorer .mf-map-stats {
  display: grid !important;
  grid-template-columns: repeat(4,minmax(0,1fr)) !important;
  max-width: none !important;
  margin: 0 17px !important;
  padding: 12px 0 15px !important;
  border: 0 !important;
  border-top: 1px solid var(--mfn-border) !important;
  border-radius: 0 !important;
  background: transparent !important;
}
html:root body main.mfn-atlas .mfn-explorer .mf-map-stats div { padding: 2px 14px !important; border-inline-start: 0; }
html:root body main.mfn-atlas .mfn-explorer .mf-map-stats strong { display: block; color: var(--mfn-gold) !important; font-size: clamp(1.65rem, 3.2vw, 2.85rem) !important; font-weight: 900 !important; line-height: 1 !important; }
html:root body main.mfn-atlas .mfn-explorer .mf-map-stats span { display: block; font-size: .87rem !important; color: var(--mfn-muted) !important; margin-top: 3px; text-transform: none !important; }

.mfn-atlas-directory { margin: 16px 0; padding: 14px 17px; border: 1px solid var(--mfn-border); border-top: 2px solid var(--mfn-gold); border-radius: 7px; background: var(--mfn-panel); scroll-margin-top: 90px; }
.mfn-atlas-directory-head { display: flex; align-items: center; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; }
.mfn-role-shortcuts { display: flex; align-items: end; gap: 8px; }
.mfn-role-shortcuts button { min-height: 34px; padding: 3px 10px; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--mfn-text); font-weight: 800; }
.mfn-role-shortcuts button[aria-pressed=true] { color: var(--mfn-green); border-color: var(--mfn-green); }
html:root body main.mfn-atlas .mfn-atlas-directory .mf-map-tools {
  grid-template-columns: minmax(155px,1fr) auto !important;
  align-items: start;
  margin: 9px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
html:root body main.mfn-atlas .mfn-atlas-directory .mf-map-tools__filters { display: flex !important; gap: 7px; align-items: start; }
html:root body main.mfn-atlas .mfn-atlas-directory .mf-map-tools > label { font-size: 0 !important; margin: 0 !important; }
html:root body main.mfn-atlas :is(.mf-map-tools input,.mf-map-tools select,.mf-map-panel select,.mfn-map-more-filters summary) {
  min-width: 0; min-height: 42px !important; border: 1px solid #4b6150 !important; border-radius: 5px !important;
  background: #0e1812 !important; color: var(--mfn-text) !important; font-size: .87rem !important;
}
html:root body main.mfn-atlas .mf-map-tools input { display: block; width: 100%; font-size: .95rem !important; }
html:root body main.mfn-atlas .mfn-atlas-directory button[type=submit] { min-height: 42px !important; }
.mfn-map-more-filters { position: relative; }
.mfn-map-more-filters summary { cursor: pointer; padding: 10px; }
.mfn-map-extra-fields { position: absolute; display: grid; gap: 6px; inset-inline-end: 0; z-index: 1; width: 205px; padding: 8px; background: var(--mfn-panel); border: 1px solid var(--mfn-border); border-radius: 6px; }
html:root body main.mfn-atlas .mfn-atlas-directory .mf-map-tools__summary { padding: 3px 0 !important; min-height: auto !important; border: 0 !important; background: transparent !important; }
html:root body main.mfn-atlas .mfn-map-profiles .mf-map-player-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
html:root body main:is(.mfn-directory,.mfn-atlas) :is(a,button,input,select,summary):focus-visible,
html:root body main.mfn-atlas .mfn-canada-map path[role=button]:focus-visible { outline: 2px solid var(--mfn-gold); outline-offset: 2px; }
html:root body main:is(.mfn-directory,.mfn-atlas) [hidden] { display: none !important; }

html[data-theme=light] main:is(.mfn-directory,.mfn-atlas) {
  --mfn-surface: #f0f7f0;
  --mfn-panel: #f9fcf9;
  --mfn-border: #a7bca9;
  --mfn-text: #112218;
  --mfn-muted: #344f3c;
  --mfn-green: #176328;
  --mfn-gold: #795a08;
}
html[data-theme=light] body main:is(.mfn-directory,.mfn-atlas) .mfn-subnav a[aria-current=page] { background: #e2f0e4; }
html[data-theme=light] body main.mfn-directory .mfn-view.is-current,
html[data-theme=light] body main.mfn-atlas :is(.mfn-country-switch button[aria-pressed=true],.mf-map-panel a.mf-people-button) { color: #fff !important; }
html:root[data-theme=light] body main.mfn-directory .mf-ptg-filterbar :is(input,select,button),
html:root[data-theme=light] body main.mfn-atlas :is(.mf-map-tools input,.mf-map-tools select,.mf-map-panel select,.mfn-map-more-filters summary),
html:root[data-theme=light] body.mf-people-unified main.mfn-directory#main-content #players-watch .mfn-result-card { background: #f3f8f3 !important; }
html[data-theme=light] .mfn-spotlight-copy a { color: #a6f5ad !important; }
html[data-theme=light] .mfn-spotlight-label { color: #fff; }

@media (max-width: 950px) {
  html:root body.mf-people-unified main.mfn-directory#main-content #players-watch .mfn-result-cards { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  html:root body main.mfn-atlas .mfn-explorer .mf-map-layout { grid-template-columns: minmax(0,1.7fr) minmax(210px,1fr) !important; }
}
@media (max-width: 650px) {
  main:is(.mfn-directory,.mfn-atlas) { --mfn-edge: calc(100% - 24px); --mfn-title: clamp(2.15rem,8vw,2.8rem); }
  html:root body main:is(.mfn-directory,.mfn-atlas) .mfn-subnav { flex-wrap: nowrap; overflow-x: auto; }
  html:root body main:is(.mfn-directory,.mfn-atlas) .mfn-title { display: grid !important; gap: 9px !important; padding: 12px 0 14px !important; }
  .mfn-tracker-stats { justify-content: flex-start; margin: 0; }
  .mfn-stat { min-width: 75px; padding: 0 10px; }
  .mfn-stat:first-child { padding-left: 0; border-left: 0; }
  html:root body main.mfn-directory .mf-ptg-filterbar { grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto !important; gap: 6px !important; padding: 8px !important; }
  html:root body main.mfn-directory .mf-ptg-filterbar .mf-ptg-search { grid-column: 1 / -1; }
  html:root body main.mfn-directory .mf-ptg-filterbar [data-more-filters] { padding-inline: 7px !important; font-size: .72rem !important; }
  .mfn-directory-grid { grid-template-columns: minmax(0,1fr); }
  html:root body main.mfn-directory #players-watch { padding: 11px !important; }
  html:root body.mf-people-unified main.mfn-directory#main-content #players-watch .mfn-result-card { min-height: 135px !important; padding: 8px !important; }
  .mfn-spotlight { min-height: 265px; }
  html:root body main.mfn-atlas .mfn-explorer .mf-map-layout { grid-template-columns: minmax(0,1fr) !important; padding: 11px !important; }
  html:root body main.mfn-atlas .mfn-explorer .mf-map-canvas { border: 0 !important; padding: 0 !important; }
  html:root body main.mfn-atlas .mf-map-canvas svg { max-height: 66vw !important; }
  .mfn-atlas-rail { padding: 10px 0 0; margin: 8px 0 0; border-top: 1px solid var(--mfn-border); }
  .mfn-atlas-rail > h2 { font-size: 1.15rem; }
  .mfn-coverage ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
  html:root body main.mfn-atlas .mfn-explorer .mf-map-stats { grid-template-columns: 1fr 1fr !important; gap: 10px 5px; margin: 0 11px !important; }
  html:root body main.mfn-atlas .mfn-explorer .mf-map-stats div { padding: 1px 5px !important; }
  .mfn-atlas-directory { padding: 11px; }
  html:root body main.mfn-atlas .mfn-atlas-directory .mf-map-tools { grid-template-columns: minmax(0,1fr) !important; }
  html:root body main.mfn-atlas .mfn-map-profiles .mf-map-player-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html:root body main.mfn-atlas .mf-map-canvas svg path { transition: none !important; }
}

@media (min-width: 651px) {
  html:root body.mf-people-unified main.mfn-directory#main-content #players-watch .mfn-result-card:nth-child(n+4) {
    grid-column: 1 / -1;
    min-height: 38px !important;
    padding: 4px 12px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--mfn-border) !important;
    border-radius: 0 !important;
    background: none !important;
    align-items: center !important;
  }
  html:root body.mf-people-unified main.mfn-directory#main-content #players-watch .mfn-result-card:nth-child(n+4):is(:hover,:focus-visible) { background: #182b1d !important; }
  html:root body main.mfn-directory #players-watch .mfn-result-card:nth-child(n+4) > img { display: none; }
  html:root body.mf-people-unified main.mfn-directory#main-content #players-watch .mfn-result-card:nth-child(n+4) > span {
    display: grid !important; grid-template-columns: 1.2fr .72fr 1.15fr .95fr auto; gap: 7px; align-items: center;
  }
  html:root body.mf-people-unified main.mfn-directory#main-content #players-watch .mfn-result-card:nth-child(n+4) strong {
    font-size: .87rem !important; line-height: 1.25 !important; margin: 0 !important;
  }
  html:root body main.mfn-directory #players-watch .mfn-result-card:nth-child(n+4) :is(.mf-ptg-country,span::after) { margin-top: 0; }
  .mfn-directory-grid #players-watch .mfn-result-cards { row-gap: 4px !important; }
}
@media (min-width:651px) and (max-width:950px) {
  html:root body.mf-people-unified main.mfn-directory#main-content #players-watch .mfn-result-card:nth-child(3) { grid-column: 1 / -1; }
}
@media (max-width:650px) {
  html:root body.mf-people-unified main.mfn-directory#main-content #players-watch .mfn-result-card:nth-child(n+5) {
    min-height: 72px !important;
    background: none !important;
    align-items: center !important;
  }
  html:root body main.mfn-directory #players-watch .mfn-result-card:nth-child(n+5) > span::after { display: none; }
}

/* Keep the shared masthead. These two workspace pages have their own local navigation. */
html:root body.mf-diaspora-layout main#main-content#main-content:is(.mfn-directory,.mfn-atlas) { padding-inline: 0 !important; }
html:root body.mf-diaspora-layout main#main-content#main-content:is(.mfn-directory,.mfn-atlas) .mfn-subnav {
  margin-top: 5px !important;
}
html:root body.mf-diaspora-layout main#main-content#main-content:is(.mfn-directory,.mfn-atlas) .mfn-title {
  width: var(--mfn-edge) !important; max-width: none !important;
  border: 0 !important; border-radius: 0 !important;
  background: none !important; box-shadow: none !important;
  padding: 12px 0 16px !important;
}
html:root body.mf-diaspora-layout main#main-content#main-content#main-content#main-content:is(.mfn-directory,.mfn-atlas) .mfn-title h1 {
  font-size: var(--mfn-title) !important; margin: 4px 0 6px !important;
}
html:root body.mf-diaspora-layout main#main-content#main-content.mfn-atlas :is(.mfn-atlas-workspace,.mfn-atlas-hero-shell) {
  padding: 0 !important; margin-block: 0 4px !important; border: 0 !important;
  border-radius: 0 !important; background: none !important; box-shadow: none !important;
}
html:root body.mf-diaspora-layout main#main-content#main-content.mfn-atlas .mfn-atlas-workspace > .mfn-atlas-shell {
  width: var(--mfn-edge) !important; max-width: none !important; padding: 0 !important;
}
html:root body.mf-diaspora-layout main#main-content#main-content.mfn-atlas
:is(.mfn-atlas-header h2,.mfn-atlas-directory-head h2,.mfn-atlas-rail .mf-map-panel h2) {
  font-size: clamp(1.55rem, 2.6vw, 2.65rem) !important; line-height: 1.1 !important;
}
html:root body.mf-diaspora-layout main#main-content#main-content.mfn-atlas .mfn-explorer .mf-map-layout { min-height: 0 !important; }
html:root body.mf-diaspora-layout main#main-content#main-content.mfn-atlas .mfn-explorer .mf-map-stats { width: auto !important; }
html:root body.mf-diaspora-layout main#main-content#main-content.mfn-atlas .mfn-explorer .mf-map-stats strong {
  font-size: clamp(1.55rem,3vw,2.7rem) !important;
}
html:root body.mf-diaspora-layout main#main-content#main-content.mfn-directory #players-watch {
  grid-column: 1; grid-row: 1;
  order: 0 !important;
}
.mfn-directory-rail { grid-column: 2; grid-row: 1; }
html:root body.mf-diaspora-layout main#main-content#main-content.mfn-directory #players-watch .mfn-result-cards {
  grid-template-columns: repeat(3,minmax(0,1fr)) !important;
  scroll-snap-type: none !important;
}
html:root body.mf-diaspora-layout main#main-content#main-content.mfn-directory #players-watch .mfn-result-card strong {
  overflow: visible !important; white-space: normal !important; overflow-wrap: normal !important; word-break: normal !important;
}
html:root body.mf-diaspora-layout main#main-content#main-content.mfn-directory #players-watch .mfn-result-card small {
  text-transform: none !important; letter-spacing: normal !important;
}
html:root body main.mfn-directory .mf-ptg-filterbar .mf-network-role {
  grid-column: 2; grid-row: 1; font-size: 0 !important;
}
html:root body main.mfn-directory .mf-ptg-filterbar .mfn-tracker-options { grid-column: 3; grid-row: 1; }
html:root body main.mfn-directory .mf-ptg-filterbar :is(.mf-network-role,.mfn-tracker-options) select { font-size: .88rem !important; }
html:root body main.mfn-directory .mf-ptg-filterbar [data-more-filters] { grid-column: 4; grid-row: 1; }

@media (max-width: 950px) {
  html:root body.mf-diaspora-layout main#main-content#main-content.mfn-directory #players-watch .mfn-result-cards {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  }
}
@media (max-width: 650px) {
  html:root body main.mfn-directory .mf-ptg-filterbar .mf-network-role { grid-column: 1; grid-row: 2; }
  html:root body main.mfn-directory .mf-ptg-filterbar .mfn-tracker-options { grid-column: 2; grid-row: 2; }
  html:root body main.mfn-directory .mf-ptg-filterbar [data-more-filters] { grid-column: 3; grid-row: 2; }
  .mfn-directory-rail { grid-column: 1; grid-row: 2; }
}

html:root body main.mfn-directory .mfn-result-card .mf-ptg-country {
  display: inline-flex !important; align-items: center; gap: 6px; white-space: normal !important;
}
html:root body main.mfn-directory .mfn-result-card .mf-ptg-country img { width: 18px !important; height: 12px !important; object-fit: cover; }
html:root body main.mfn-directory .mfn-result-card small { overflow-wrap: break-word; }

html:root body main.mfn-directory .mf-network-pagination .mfn-explore-link {
  color: var(--mfn-gold) !important;
  font-weight: 820;
  margin-inline-end: auto;
}
@media (max-width: 650px) {
  html:root body main.mfn-directory .mf-network-pagination .mfn-explore-link { flex-basis: 100%; }
}

main.mfn-directory {
  --mfn-tracker-form-grid: minmax(190px,1fr) minmax(125px,.24fr) minmax(135px,.27fr) auto;
  --mfn-role-column: 2;
  --mfn-country-column: 3;
  --mfn-button-column: 4;
  --mfn-control-row: 1;
}
@media (max-width: 650px) {
  main.mfn-directory {
    --mfn-tracker-form-grid: minmax(0,1fr) minmax(0,1fr) auto;
    --mfn-role-column: 1;
    --mfn-country-column: 2;
    --mfn-button-column: 3;
    --mfn-control-row: 2;
  }
  html:root body main.mfn-directory .mf-ptg-filterbar .mf-ptg-search { grid-column: 1 / -1 !important; grid-row: 1 !important; }
}
