/* ===================================================================
   MeshFox — "fox den at night".
   Night-violet surfaces, an ember → orange → amber fox gradient, and
   bright accents (moss, sky, berry, sun, grape) for play. Circles:
   orange = mine, sky = friends, cream = neighbourhood. Status always
   carries an icon + text, never colour alone.
   =================================================================== */
:root {
  --circle-mine: #FF7B25;
  --circle-friend: #4CC9F0;
  --circle-hood: #FFF3E3;
  --series: #4CC9F0;
  --series-strong: #9EE6FA;
  --grid: rgba(179, 163, 201, 0.22);
  --card: rgba(34, 25, 50, 0.78);
  --card-2: rgba(42, 31, 61, 0.9);
  --card-line: rgba(90, 70, 125, 0.55);
  --tier-0: #6B5E80;
  --tier-1: #CD7F32;
  --tier-2: #C9D3E3;
  --tier-3: #FFD447;
  --tier-4: #7FE7FF;
}

body {
  background:
    radial-gradient(1200px 700px at 8% -10%, rgba(155, 93, 229, 0.22), transparent 60%),
    radial-gradient(900px 600px at 105% 10%, rgba(255, 123, 37, 0.14), transparent 60%),
    radial-gradient(900px 700px at 50% 120%, rgba(76, 201, 240, 0.12), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
h1, h2, h3, h4, .mm-kpi__value, .mf-banner__title { font-family: var(--font-display); }

/* --- topbar ------------------------------------------------------- */
.topbar {
  background: rgba(18, 13, 28, 0.82) !important;
  backdrop-filter: blur(10px);
  border-bottom: 0 !important;
  box-shadow: 0 2px 0 0 transparent;
  position: relative;
}
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--grad-fox); opacity: 0.85;
}
.df-brand-logo { height: 34px !important; }
.tabs { gap: 6px !important; }
.tab {
  border-radius: 999px !important; padding: 7px 14px !important;
  font: 600 14px/1 var(--font-display) !important; color: var(--muted) !important;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease !important;
}
.tab::after { display: none !important; }
.tab:hover { color: var(--text) !important; background: rgba(255, 243, 227, 0.06) !important; }
.tab.active { color: #1a0f08 !important; background: var(--grad-fox) !important; box-shadow: 0 6px 18px rgba(255, 123, 37, 0.35); }
.tab-help, .lang-btn {
  width: 32px; height: 32px; border-radius: 50%; margin-left: 6px; align-self: center;
  background: rgba(255, 243, 227, 0.06); border: 1px solid var(--line); color: var(--text);
  font: 700 15px/1 var(--font-display); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.tab-help:hover, .lang-btn:hover { border-color: var(--fox-amber); box-shadow: 0 0 12px rgba(255, 182, 39, 0.35); }

/* --- layout -------------------------------------------------------- */
.view-home { overflow: hidden; }
.view-home.active { display: block; }
.mm-root {
  height: 100%; overflow-y: auto; padding: 20px 24px 96px;
  max-width: 1320px; margin: 0 auto; font-size: 14.5px; line-height: 1.5; color: var(--text);
}
.mm-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.mm-col { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.mf-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; margin-bottom: 26px; }
@media (max-width: 980px) {
  .mm-grid, .mf-row { grid-template-columns: 1fr; }
  .mm-root { padding: 14px 16px 96px; }
}

.mm-section { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mm-section__title {
  font: 700 17px/1.2 var(--font-display); color: var(--text); margin: 0;
  display: flex; align-items: center; gap: 8px;
}
.mf-sticker {
  width: 32px; height: 32px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; background: rgba(255, 243, 227, 0.08); flex: 0 0 auto;
}
.mf-t--fox .mf-sticker { background: linear-gradient(135deg, rgba(255,78,80,.35), rgba(255,182,39,.35)); }
.mf-t--sky .mf-sticker { background: linear-gradient(135deg, rgba(28,156,203,.4), rgba(111,227,165,.3)); }
.mf-t--moss .mf-sticker { background: linear-gradient(135deg, rgba(47,174,114,.45), rgba(76,201,240,.25)); }
.mf-t--berry .mf-sticker { background: linear-gradient(135deg, rgba(241,91,181,.4), rgba(155,93,229,.35)); }
.mf-t--sun .mf-sticker { background: linear-gradient(135deg, rgba(254,228,64,.35), rgba(255,123,37,.3)); }
.mm-muted { color: var(--muted); }
.mm-empty { color: var(--muted); margin: 0; padding: 6px 0; }
.mf-hl { color: var(--sun); }
.mf-ok { color: var(--moss); }
.mm-emptycard {
  border: 2px dashed var(--card-line); border-radius: var(--radius-card);
  padding: 18px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  background: rgba(255, 243, 227, 0.02);
}
.mm-loading { padding: 40px 0; text-align: center; color: var(--muted); display: flex; gap: 10px; justify-content: center; align-items: center; }

/* --- banner --------------------------------------------------------- */
.mf-banner {
  position: relative; overflow: hidden; display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
  padding: 22px 24px; border-radius: 26px; margin-bottom: 18px;
  background: linear-gradient(120deg, rgba(155,93,229,.30), rgba(241,91,181,.18) 45%, rgba(255,123,37,.22));
  border: 1px solid rgba(255, 243, 227, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.mf-banner__glow { position: absolute; inset: -40% -10% auto auto; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,182,39,.35), transparent 65%); pointer-events: none; }
.mf-banner__fox { width: 84px; height: 84px; flex: 0 0 auto; filter: drop-shadow(0 8px 16px rgba(0,0,0,.4)); animation: mf-bob 4s ease-in-out infinite; }
.mf-banner__main { flex: 1 1 280px; min-width: 0; position: relative; }
.mf-banner__title { font-size: 30px; font-weight: 700; margin: 0 0 8px; color: var(--text); letter-spacing: 0.01em; }
.mf-banner__chips { display: flex; gap: 6px; flex-wrap: wrap; }
.mf-banner__tip { margin: 10px 0 0; color: var(--text); opacity: 0.85; font-size: 13.5px; }
.mf-banner__actions { display: flex; gap: 8px; align-items: center; position: relative; }
.mf-rank {
  position: relative; display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 20px;
  background: rgba(18, 13, 28, 0.55); border: 1px solid rgba(255, 243, 227, 0.14); min-width: 260px; flex: 0 1 320px;
}
.mf-rank__medal {
  width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px;
  background: var(--grad-fox); box-shadow: 0 0 0 3px rgba(255,243,227,.18), 0 8px 22px rgba(255,123,37,.45);
}
.mf-rank__body { flex: 1; min-width: 0; }
.mf-rank__name { font: 700 18px/1.2 var(--font-display); display: flex; align-items: center; }
.mf-rank__xp { font-size: 12px; color: var(--muted); margin-top: 4px; }
.mf-xpbar { height: 10px; border-radius: 6px; background: rgba(255, 243, 227, 0.12); overflow: hidden; margin-top: 6px; }
.mf-xpbar span { display: block; height: 100%; border-radius: 6px; background: var(--grad-fox); box-shadow: 0 0 12px rgba(255,182,39,.6); }
@keyframes mf-bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-6px) rotate(2deg); } }

.mf-chip, .mm-chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 999px;
  background: rgba(255, 243, 227, 0.08); border: 1px solid rgba(255, 243, 227, 0.14);
  font: 600 12.5px/1.2 var(--font-body); color: var(--text); white-space: nowrap;
}
.mm-chip b { font-variant-numeric: tabular-nums; }
.mm-chip--small { padding: 1px 8px; font-size: 11px; }
.mf-chip--mine { border-color: rgba(255,123,37,.6); background: rgba(255,123,37,.16); }
.mf-chip--obs { border-color: rgba(155,93,229,.6); background: rgba(155,93,229,.18); }
.mf-chip--friend { border-color: rgba(76,201,240,.6); background: rgba(76,201,240,.14); }
.mf-chip--hood { border-color: rgba(111,227,165,.5); background: rgba(111,227,165,.12); }
.mf-chip button { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 15px; padding: 0 0 0 4px; }

/* --- generic cards --------------------------------------------------- */
.mf-card {
  background: var(--card); border: 1px solid var(--card-line); border-radius: 22px; padding: 16px 18px;
  display: flex; flex-direction: column; gap: 12px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}
.mf-card__title { margin: 0; font: 700 17px/1.2 var(--font-display); display: flex; align-items: center; gap: 6px; }
.mf-count { margin-left: auto; font: 700 12px/1 var(--font-body); padding: 4px 9px; border-radius: 999px; background: rgba(254,228,64,.18); color: var(--sun); }
.mf-card--quests { background: linear-gradient(160deg, rgba(254,228,64,.10), rgba(34,25,50,.85) 55%); }
.mf-card--pack { background: linear-gradient(160deg, rgba(76,201,240,.12), rgba(34,25,50,.85) 55%); }
.mf-card--badges { background: linear-gradient(160deg, rgba(241,91,181,.12), rgba(34,25,50,.85) 55%); }

/* quests */
.mf-quests { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 620px) { .mf-quests { grid-template-columns: 1fr; } }
.mf-quest { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 16px; background: rgba(18,13,28,.45); border: 1px solid rgba(255,243,227,.08); }
.mf-quest.done { border-color: rgba(111,227,165,.5); background: rgba(47,174,114,.14); }
.mf-quest__ring { position: relative; width: 48px; height: 48px; flex: 0 0 auto; }
.mf-quest__ring > span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.mf-quest.done .mf-quest__ring > span { color: var(--moss); font-weight: 800; }
.mf-ring { width: 48px; height: 48px; transform: rotate(-90deg); }
.mf-ring__bg { fill: none; stroke: rgba(255,243,227,.12); stroke-width: 5; }
.mf-ring__fg { fill: none; stroke-width: 5; stroke-linecap: round; transition: stroke-dasharray 500ms ease; }
.mf-quest__body { display: flex; flex-direction: column; min-width: 0; }
.mf-quest__body b { font: 600 13.5px/1.25 var(--font-body); }
.mf-quest__body small { color: var(--muted); }

/* pack */
.mf-pack { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mf-pack__row { display: grid; grid-template-columns: 30px minmax(0, 1fr) minmax(60px, 1fr) auto; gap: 8px; align-items: center; }
.mf-pack__medal { font-size: 18px; text-align: center; font-weight: 800; color: var(--muted); }
.mf-pack__name { background: none; border: none; color: var(--text); font: 700 14px/1.2 var(--font-body); text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0; }
.mf-pack__bar { height: 10px; border-radius: 6px; background: rgba(255,243,227,.1); overflow: hidden; }
.mf-pack__bar span { display: block; height: 100%; border-radius: 6px; }
.mf-pack__row.mine .mf-pack__bar span { background: var(--grad-fox); }
.mf-pack__row.friend .mf-pack__bar span { background: var(--grad-sea); }
.mf-pack__score { font: 700 13px/1 var(--font-body); font-variant-numeric: tabular-nums; }

/* --- hero ------------------------------------------------------------ */
.mf-hero {
  position: relative; overflow: hidden; display: flex; gap: 30px; align-items: center; flex-wrap: wrap;
  padding: 34px; border-radius: 30px; margin: 20px auto; max-width: 980px;
  background: linear-gradient(130deg, rgba(155,93,229,.35), rgba(241,91,181,.2) 45%, rgba(255,123,37,.28));
  border: 1px solid rgba(255,243,227,.14); box-shadow: 0 30px 70px rgba(0,0,0,.4);
}
.mf-hero__glow { position: absolute; width: 520px; height: 520px; right: -140px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(255,182,39,.4), transparent 65%); pointer-events: none; }
.mf-hero__fox { width: 170px; height: 170px; flex: 0 0 auto; animation: mf-bob 4s ease-in-out infinite; filter: drop-shadow(0 12px 22px rgba(0,0,0,.45)); position: relative; }
.mf-hero__body { flex: 1 1 340px; position: relative; }
.mf-hero__body h1 { font: 700 36px/1.1 var(--font-display); margin: 4px 0 12px; }
.mf-hero__body > p { font-size: 15.5px; opacity: .92; }
.mf-hero__eyebrow { margin: 0; color: var(--sun); font: 700 13px/1 var(--font-display); text-transform: uppercase; letter-spacing: .12em; }
.mf-hero__actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.mf-hero__points { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.mf-pt { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 14px; background: rgba(18,13,28,.45); border-left: 4px solid; }
.mf-pt b { font-family: var(--font-display); }
.mf-pt span { color: var(--muted); font-size: 13px; }
.mf-pt--sky { border-color: var(--sky); } .mf-pt--moss { border-color: var(--moss); }
.mf-pt--sun { border-color: var(--sun); } .mf-pt--berry { border-color: var(--berry); }

/* --- buttons ---------------------------------------------------------- */
.mm-btn {
  font: 700 13.5px/1 var(--font-display); letter-spacing: .01em;
  padding: 10px 16px; border-radius: 12px;
  background: var(--bg-3); color: var(--text);
  border: 1px solid var(--line); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
  text-decoration: none;
}
.mm-btn:hover { border-color: var(--fox-amber); transform: translateY(-1px); }
.mm-btn:active { transform: translateY(0); }
.mm-btn:focus-visible, .mm-icon-btn:focus-visible, .mm-who:focus-visible, .mm-filter:focus-visible, .mf-seg:focus-visible,
.mm-linkbtn:focus-visible, .mm-card__name:focus-visible, .mm-row__name:focus-visible, .pa-btn:focus-visible, .mf-lang:focus-visible {
  outline: 3px solid var(--sun); outline-offset: 2px;
}
.mm-btn--primary { background: var(--grad-fox); border-color: transparent; color: #1a0f08; box-shadow: 0 8px 20px rgba(255,123,37,.35); }
.mm-btn--primary:hover { box-shadow: 0 10px 26px rgba(255,123,37,.5); border-color: transparent; }
.mm-btn--ghost { background: rgba(255,243,227,.04); }
.mm-btn--small { padding: 7px 11px; font-size: 12.5px; border-radius: 10px; }
.mm-btn--big { padding: 14px 22px; font-size: 16px; border-radius: 14px; }
.mm-btn--danger { background: transparent; border-color: rgba(229,72,77,.6); color: #ff8a8d; }
.mm-btn--picked { background: rgba(47,174,114,.2); border-color: var(--moss); color: var(--moss); }
.mm-btn.on { border-color: var(--circle-mine); color: var(--text); background: rgba(255,123,37,.18); }
.mm-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.mm-icon-btn {
  background: transparent; border: 1px solid transparent; color: var(--muted);
  width: 32px; height: 32px; border-radius: 10px; cursor: pointer; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.mm-icon-btn:hover { border-color: var(--line); color: var(--text); }
.mm-icon-btn.on { color: var(--sky); }
.mm-icon-btn--mute { opacity: 0.35; filter: grayscale(1); }
.mm-icon-btn--mute:hover, .mm-icon-btn--mute.on { opacity: 1; filter: none; }
.mm-linkbtn { background: none; border: none; color: var(--sky); cursor: pointer; font: inherit; padding: 0; text-decoration: underline dotted; }
.mm-who {
  background: none; border: none; padding: 0; font: inherit; color: var(--text); cursor: pointer;
  font-weight: 700; text-decoration: underline; text-decoration-color: var(--grid); text-underline-offset: 3px;
}
.mm-who:hover { text-decoration-color: currentColor; color: var(--fox-amber); }
.mm-who--mine { box-shadow: inset 0 -2px 0 var(--circle-mine); text-decoration: none; }
.mm-who--friend { box-shadow: inset 0 -2px 0 var(--circle-friend); text-decoration: none; }

.mm-explain {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255,243,227,.05); color: var(--muted);
  font: 700 10.5px/1 var(--font-display); cursor: help; padding: 0; margin-left: 4px;
  display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; flex: 0 0 auto;
}
.mm-explain:hover { color: #1a0f08; background: var(--sun); border-color: var(--sun); }
.mm-popover {
  position: fixed; z-index: 12000; background: var(--bg-2); color: var(--text);
  border: 1px solid var(--fox-amber); border-radius: 14px; padding: 12px 14px; font-size: 13.5px; line-height: 1.5;
  box-shadow: 0 16px 36px rgba(0,0,0,.5);
}

/* --- status + trend --------------------------------------------------- */
.mm-status {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font: 600 12px/1 var(--font-body); padding: 5px 10px; border-radius: 999px; border: 1px solid; color: var(--text);
}
.mm-status__dot { font-size: 11px; }
.mm-status__detail { color: var(--muted); font-weight: 500; }
.mm-status--ok { border-color: rgba(47,174,114,.6); background: rgba(47,174,114,.14); }
.mm-status--ok .mm-status__dot { color: var(--moss); }
.mm-status--quiet { border-color: rgba(217,162,27,.6); background: rgba(217,162,27,.14); }
.mm-status--quiet .mm-status__dot { color: var(--fox-amber); }
.mm-status--silent { border-color: rgba(229,72,77,.6); background: rgba(229,72,77,.14); }
.mm-status--silent .mm-status__dot { color: #ff8a8d; }
.mm-status--unknown { border-color: var(--line); }
.mm-trend { font-size: 11.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.mm-trend--up { color: var(--moss); }
.mm-trend--down { color: #ff8a8d; }
.mm-trend--flat { color: var(--muted); }
.mm-new {
  font: 700 10px/1 var(--font-display); text-transform: uppercase; letter-spacing: .06em;
  padding: 4px 7px; border-radius: 7px; color: #1a0f08; background: var(--sun);
}

/* --- node/observer cards ----------------------------------------------- */
.mm-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
@media (max-width: 520px) { .mm-cards { grid-template-columns: 1fr; } }
.mm-card {
  position: relative; background: var(--card); border: 1px solid var(--card-line);
  border-radius: 22px; padding: 16px 18px 16px 22px; display: flex; flex-direction: column; gap: 12px; min-width: 0;
  box-shadow: 0 12px 30px rgba(0,0,0,.25); overflow: hidden;
}
.mm-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--grad-fox); }
.mm-card--observer::before { background: var(--grad-aurora); }
.mf-role--repeater::before { background: linear-gradient(180deg, #5B8DEF, #4CC9F0); }
.mf-role--companion::before, .mf-role--chat::before { background: linear-gradient(180deg, #2FAE72, #6FE3A5); }
.mf-role--room::before { background: linear-gradient(180deg, #E0559F, #F15BB5); }
.mf-role--sensor::before { background: linear-gradient(180deg, #C98412, #FFB627); }
.mm-card__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mm-card__icon { font-size: 24px; width: 42px; height: 42px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: rgba(255,243,227,.07); }
.mm-card__title { flex: 1 1 140px; min-width: 0; display: flex; flex-direction: column; }
.mm-card__title small { color: var(--muted); }
.mm-card__name, .mm-row__name {
  background: none; border: none; padding: 0; color: var(--text); cursor: pointer; text-align: left;
  font: 700 18px/1.2 var(--font-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}
.mm-card__name:hover, .mm-row__name:hover { color: var(--fox-amber); }
.mm-card__line { font-size: 13px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.mm-card__chart { display: flex; flex-direction: column; gap: 4px; }
.mm-card__charttitle { font-size: 12px; color: var(--muted); display: flex; align-items: center; font-weight: 600; }
.mm-card__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.mm-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 8px; }
.mm-kpis--wide { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); margin: 14px 0; }
.mm-kpi { background: rgba(18,13,28,.5); border-radius: 14px; padding: 9px 11px; min-width: 0; border: 1px solid rgba(255,243,227,.06); }
.mm-kpis .mm-kpi:nth-child(4n+1) .mm-kpi__value { color: #FFB38A; }
.mm-kpis .mm-kpi:nth-child(4n+2) .mm-kpi__value { color: #9EE6FA; }
.mm-kpis .mm-kpi:nth-child(4n+3) .mm-kpi__value { color: #A8F0C8; }
.mm-kpis .mm-kpi:nth-child(4n+4) .mm-kpi__value { color: #FFE58A; }
.mm-kpi__value { font: 700 24px/1.1 var(--font-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mm-kpi__unit { font-size: 12px; font-weight: 500; color: var(--muted); }
.mm-kpi__label { font-size: 11.5px; color: var(--muted); margin-top: 3px; display: flex; align-items: center; justify-content: space-between; gap: 4px; line-height: 1.2; }
.mm-kpi__sub { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- charts ------------------------------------------------------------ */
.mm-chart { width: 100%; display: block; overflow: visible; }
.mm-chart--empty { display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--grid); }
.mm-bar { fill: var(--series); }
.mm-bar--last { fill: var(--series-strong); }
.mm-barg:hover .mm-bar { fill: var(--sun); }
.mm-hit { fill: transparent; }
.mm-axis { stroke: var(--grid); stroke-width: 1; vector-effect: non-scaling-stroke; }
.mm-chart-axis { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); }
.mm-spark-cell { width: 90px; }
.mm-upstrip { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; height: 18px; }
.mm-up { border-radius: 4px; background: rgba(179,163,201,.14); }
.mm-up.on { background: linear-gradient(180deg, #6FE3A5, #2FAE72); }
.mm-up:hover { outline: 1px solid var(--sun); }
.mm-heat { display: flex; flex-direction: column; gap: 2px; font-size: 10.5px; color: var(--muted); }
.mm-heat__row { display: grid; grid-template-columns: 34px repeat(24, 1fr); gap: 2px; align-items: center; }
.mm-heat__cell { height: 15px; border-radius: 3px; background: rgba(76,201,240, var(--t)); box-shadow: inset 0 0 0 1px rgba(179,163,201,.08); }
.mm-heat__cell:hover { outline: 1px solid var(--sun); }
.mm-heat__axis { display: grid; grid-template-columns: 34px repeat(4, 1fr) 0; }
.mm-hbars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.mm-hbars li { display: grid; grid-template-columns: minmax(0, 160px) 1fr auto; gap: 8px; align-items: center; font-size: 13px; }
.mm-hbars__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-hbars__track { height: 10px; background: rgba(179,163,201,.12); border-radius: 6px; overflow: hidden; }
.mm-hbars__fill { display: block; height: 100%; background: var(--grad-sea); border-radius: 0 6px 6px 0; }
.mm-hbars__value { font-variant-numeric: tabular-nums; color: var(--muted); }
.mm-progress { height: 7px; border-radius: 4px; background: rgba(179,163,201,.16); overflow: hidden; margin-top: 6px; }
.mm-progress__fill { display: block; height: 100%; background: var(--grad-fox); border-radius: 0 4px 4px 0; }
.mf-dots { position: relative; height: 80px; border-radius: 10px; background: rgba(18,13,28,.4); }
.mf-dots__zero { position: absolute; left: 0; right: 0; height: 1px; background: var(--grid); }
.mf-dots__dot { position: absolute; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 2px var(--bg); }
.mf-dots__dot:hover { background: var(--sun); }

/* --- rows -------------------------------------------------------------- */
.mm-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.mm-row { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 12px; min-width: 0; background: rgba(255,243,227,.03); }
.mm-row:hover { background: rgba(255,243,227,.07); }
.mm-row__icon { width: 22px; text-align: center; }
.mm-row__name { font-size: 14.5px; flex: 1 1 60px; min-width: 0; }
.mm-row__meta { font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mm-row--muted { opacity: 0.5; }
.mm-row .mm-status__detail { display: none; }
@media (max-width: 520px) { .mm-row .mm-status { font-size: 0; padding: 4px 6px; } .mm-row .mm-status__dot { font-size: 11px; } }

/* --- timeline ---------------------------------------------------------- */
.mm-filters, .mm-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.mm-filter, .mf-seg {
  background: rgba(255,243,227,.04); border: 1px solid var(--line); color: var(--muted);
  padding: 7px 13px; border-radius: 999px; cursor: pointer; font: 700 12.5px/1 var(--font-display);
}
.mm-filter.active, .mf-seg.active { color: #1a0f08; background: var(--grad-fox); border-color: transparent; }
.mm-tl__day { font: 700 12px/1 var(--font-display); color: var(--sun); margin: 14px 0 6px; text-transform: uppercase; letter-spacing: .08em; }
.mm-tl__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mm-tl__item {
  display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: start;
  padding: 10px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--card-line);
  border-left: 4px solid transparent; font-size: 13.5px;
}
.mm-tl__item--mine { border-left-color: var(--circle-mine); }
.mm-tl__item--friend { border-left-color: var(--circle-friend); }
.mm-tl__item--hood { border-left-color: rgba(255,243,227,.35); }
.mm-tl__icon { font-size: 18px; line-height: 1.2; }
.mm-tl__time { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* --- badges ------------------------------------------------------------ */
.mm-badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.mm-badge {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  padding: 12px 6px 10px; border-radius: 16px; background: rgba(18,13,28,.5); border: 2px solid var(--tier-0);
}
.mm-badge__icon {
  font-size: 24px; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255,243,227,.06); box-shadow: 0 0 0 3px var(--tier-0);
}
.mm-badge.mf-tier-0 { opacity: .62; }
.mm-badge.mf-tier-0 .mm-badge__icon { filter: grayscale(.85); }
.mm-badge.mf-tier-1 { border-color: var(--tier-1); } .mm-badge.mf-tier-1 .mm-badge__icon { box-shadow: 0 0 0 3px var(--tier-1), 0 0 16px rgba(205,127,50,.5); }
.mm-badge.mf-tier-2 { border-color: var(--tier-2); } .mm-badge.mf-tier-2 .mm-badge__icon { box-shadow: 0 0 0 3px var(--tier-2), 0 0 16px rgba(201,211,227,.5); }
.mm-badge.mf-tier-3 { border-color: var(--tier-3); } .mm-badge.mf-tier-3 .mm-badge__icon { box-shadow: 0 0 0 3px var(--tier-3), 0 0 18px rgba(255,212,71,.6); }
.mm-badge.mf-tier-4 { border-color: var(--tier-4); } .mm-badge.mf-tier-4 .mm-badge__icon { box-shadow: 0 0 0 3px var(--tier-4), 0 0 22px rgba(127,231,255,.75); animation: mf-shine 3s ease-in-out infinite; }
@keyframes mf-shine { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.25); } }
.mm-badge__title { font: 700 12px/1.2 var(--font-display); }
.mm-badge__state { font: 700 10px/1 var(--font-body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.mf-tier-1 .mm-badge__state { color: var(--tier-1); } .mf-tier-2 .mm-badge__state { color: var(--tier-2); }
.mf-tier-3 .mm-badge__state { color: var(--tier-3); } .mf-tier-4 .mm-badge__state { color: var(--tier-4); }
.mm-badge .mm-progress { width: 80%; margin-top: 2px; }
.mm-badge__max { color: var(--tier-4); font-size: 11px; letter-spacing: 2px; }

/* --- neighbourhood mini map ------------------------------------------------ */
.mm-hoodmap { height: 280px; border-radius: 20px; overflow: hidden; border: 1px solid var(--card-line); background: #0d0914; }
.mm-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.mm-legend span { display: inline-flex; align-items: center; gap: 5px; }
.mm-sw { width: 13px; height: 13px; border-radius: 50%; display: inline-block; border: 3px solid; box-sizing: border-box; }
.mm-sw--mine { border-color: var(--circle-mine); }
.mm-sw--friend { border-color: var(--circle-friend); border-style: dashed; }
.mm-sw--new { border-color: var(--circle-hood); border-style: dotted; }
.mm-sw--link { width: 16px; height: 0; border-radius: 0; border-width: 2px 0 0; border-color: var(--circle-friend); }
.leaflet-tooltip.mm-maplabel { background: rgba(18,13,28,.92); color: var(--text); border: 1px solid var(--line); font: 700 11px/1.2 var(--font-display); padding: 3px 7px; box-shadow: none; border-radius: 8px; }
.leaflet-tooltip.mm-maplabel--mine { border-color: var(--circle-mine); }
.leaflet-tooltip.mm-maplabel--friend { border-color: var(--circle-friend); }
.home-pin { font-size: 18px; filter: drop-shadow(0 0 4px rgba(0,0,0,.8)); }
.home-pin--big { font-size: 28px; cursor: grab; }

/* --- week ---------------------------------------------------------------- */
.mm-week { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.mm-week th, .mm-week td { padding: 7px 4px; border-bottom: 1px solid rgba(62,47,87,.6); text-align: right; font-variant-numeric: tabular-nums; }
.mm-week th[scope="row"] { text-align: left; font-weight: 600; color: var(--text); }
.mm-week thead th { color: var(--muted); font-weight: 600; font-size: 11px; }

/* --- hints --------------------------------------------------------------- */
.mm-hint { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; font-size: 13.5px;
  background: linear-gradient(120deg, rgba(254,228,64,.14), rgba(255,123,37,.10)); border: 1px solid rgba(254,228,64,.4); }
.mm-hint__fox { width: 34px; height: 34px; flex: 0 0 auto; }
.mm-hint__text { flex: 1; }
.mm-hint__ok { background: var(--sun); color: #1a0f08; border: none; border-radius: 10px; padding: 6px 12px; cursor: pointer; font: 700 12px/1 var(--font-display); }
.mf-banner + .mm-hint { margin-bottom: 18px; }
.mf-callout { padding: 12px 14px; border-radius: 14px; background: rgba(76,201,240,.1); border: 1px solid rgba(76,201,240,.35); }
.mf-callout--fox { background: rgba(255,123,37,.1); border-color: rgba(255,123,37,.4); }

/* --- fields -------------------------------------------------------------- */
.mm-search__input, .mf-bigsearch, .mm-field input[type=text], .mm-field input[type=number], .mm-settings textarea {
  width: 100%; background: rgba(18,13,28,.7); color: var(--text); border: 2px solid var(--line); border-radius: 14px;
  padding: 12px 14px; font: 600 15px/1.2 var(--font-body);
}
.mf-bigsearch { padding: 16px 18px; font-size: 17px; }
.mf-mono { font-family: var(--font-mono); font-size: 14px; }
.mm-search__input:focus, .mf-bigsearch:focus, .mm-field input:focus, .mm-settings textarea:focus { outline: none; border-color: var(--fox-amber); box-shadow: 0 0 0 4px rgba(255,182,39,.18); }
.mm-field { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; font-size: 13px; color: var(--muted); font-weight: 600; }
.mm-field input[type=range] { accent-color: var(--brand-fox); }
.mm-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mm-listbox { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; margin: 12px 0; background: rgba(18,13,28,.35); }
.mm-listbox legend { padding: 0 6px; font: 700 14px/1 var(--font-display); color: var(--text); }
.mm-listbox ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.mm-listbox li { display: flex; align-items: center; gap: 8px; }
.mm-listbox__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-listbox code { color: var(--muted); font-size: 11px; }
.mm-settings textarea { resize: vertical; margin: 8px 0; font-family: var(--font-mono); font-size: 12px; }
.mm-choice { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }

/* language picker */
.mf-langpick { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.mf-lang {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; cursor: pointer;
  background: rgba(255,243,227,.05); border: 2px solid var(--line); color: var(--text); font: 700 13px/1 var(--font-display);
}
.mf-lang span { font-size: 18px; }
.mf-lang:hover { border-color: var(--sky); }
.mf-lang.on { border-color: var(--fox-amber); background: rgba(255,182,39,.16); }
.mf-langpick--big .mf-lang { padding: 12px 16px; font-size: 15px; }

/* --- modal / drawer -------------------------------------------------------- */
body.mm-modal-open { overflow: hidden; }
.mm-modal {
  position: fixed; inset: 0; z-index: 11000; background: rgba(8, 5, 14, 0.66); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; transition: opacity 160ms ease;
}
.mm-modal.in { opacity: 1; }
.mm-modal.out { opacity: 0; }
.mm-modal__panel {
  position: relative; width: min(640px, 100%); max-height: calc(100vh - 32px); overflow-y: auto;
  border-radius: 24px; padding: 26px 26px 22px; background: var(--bg-2); border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(0,0,0,.6); outline: none;
}
.mm-modal__panel h2 { font: 700 24px/1.2 var(--font-display); margin: 0 0 8px; color: var(--text); padding-right: 36px; }
.mm-modal__close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; z-index: 3;
  background: rgba(255,243,227,.06); color: var(--text); border: 1px solid var(--line); cursor: pointer; font-size: 20px;
}
.mm-modal__close:hover { border-color: var(--fox-amber); }
.mm-modal__foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.mm-modal--drawer { justify-content: flex-end; padding: 0; }
.mm-modal--drawer .mm-modal__panel {
  width: min(780px, 100%); height: 100%; max-height: 100%; border-radius: 26px 0 0 26px;
  transform: translateX(30px); transition: transform 180ms ease;
}
.mm-modal--drawer.in .mm-modal__panel { transform: none; }
@media (max-width: 640px) {
  .mm-modal { padding: 0; align-items: flex-end; }
  .mm-modal__panel { border-radius: 24px 24px 0 0; max-height: 94vh; padding: 22px 16px 16px; }
  .mm-modal--drawer .mm-modal__panel { border-radius: 0; max-height: 100%; }
}

/* --- onboarding ------------------------------------------------------------ */
.mf-onboard .mm-modal__panel { width: min(1060px, 100%); height: min(780px, calc(100vh - 32px)); padding: 0; overflow: hidden; }
.mf-onboard .mm-modal__body { height: 100%; }
.mf-onb { display: grid; grid-template-columns: 290px minmax(0, 1fr); height: 100%; }
.mf-onb--add { grid-template-columns: 1fr; }
.mf-onb__art {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 28px 22px; text-align: center;
  background: linear-gradient(160deg, #9B5DE5 0%, #F15BB5 45%, #FF7B25 100%); color: #fff;
}
.mf-onb__art img { width: 190px; height: 190px; animation: mf-bob 4s ease-in-out infinite; filter: drop-shadow(0 14px 22px rgba(0,0,0,.35)); }
.mf-onb__art p { font: 600 16px/1.4 var(--font-display); margin: 0; padding: 12px 14px; border-radius: 16px; background: rgba(18,13,28,.28); position: relative; }
.mf-onb__art p::before { content: ""; position: absolute; top: -10px; left: 50%; margin-left: -10px; border: 10px solid transparent; border-top: 0; border-bottom-color: rgba(18,13,28,.28); }
.mf-onb__main { display: flex; flex-direction: column; min-height: 0; padding: 22px 26px 18px; }
.mf-onb__body { flex: 1; overflow-y: auto; min-height: 0; padding: 4px 4px 12px; }
.mf-onb__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.mf-onb__title { font: 700 28px/1.15 var(--font-display) !important; margin: 6px 0 8px !important; }
.mf-onb__lead { color: var(--muted); font-size: 15px; margin: 0 0 16px; }
.mf-onb__row { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.mf-onb__row .mm-field { flex: 1 1 240px; }
.mf-onb__list { list-style: none; padding: 0; margin: 10px 0 16px; display: flex; flex-direction: column; gap: 10px; }
.mf-onb__list li { display: flex; gap: 12px; align-items: center; font-size: 15px; }
.mf-onb__list li span { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 700 15px/1 var(--font-display); background: var(--grad-fox); color: #1a0f08; flex: 0 0 auto; }
.mf-steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 10px; padding-right: 44px; }
.mf-steps li { flex: 1; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; color: var(--muted); font-size: 11.5px; font-weight: 700; }
.mf-steps li::before { content: ""; display: block; width: 100%; height: 6px; border-radius: 4px; background: rgba(255,243,227,.12); }
.mf-steps li.done::before { background: var(--moss); }
.mf-steps li.on::before { background: var(--grad-fox); }
.mf-steps li span { display: none; }
.mf-steps li em { font-style: normal; }
.mf-steps li.on em { color: var(--text); }
@media (max-width: 760px) {
  .mf-onb { grid-template-columns: 1fr; }
  .mf-onb__art { flex-direction: row; padding: 12px 16px; gap: 12px; justify-content: flex-start; text-align: left; }
  .mf-onb__art img { width: 64px; height: 64px; }
  .mf-onb__art p { font-size: 13px; }
  .mf-onb__art p::before { display: none; }
  .mf-onboard .mm-modal__panel { height: 100%; }
  .mf-onb__main { padding: 14px 16px 12px; }
  .mf-onb__title { font-size: 22px !important; }
  .mf-steps li em { display: none; }
}

.mf-finder { display: flex; flex-direction: column; gap: 10px; }
.mf-finder__tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.mf-finder__status { color: var(--muted); font-size: 13px; min-height: 18px; }
.mf-finder__results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mf-ncard {
  display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 10px 12px; border-radius: 16px; background: var(--card); border: 2px solid var(--card-line);
}
.mf-ncard.picked { border-color: var(--moss); background: rgba(47,174,114,.12); }
.mf-ncard__icon { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; background: rgba(255,243,227,.07); }
.mf-ncard.mf-role--repeater .mf-ncard__icon { background: rgba(91,141,239,.25); }
.mf-ncard.mf-role--companion .mf-ncard__icon, .mf-ncard.mf-role--chat .mf-ncard__icon { background: rgba(47,174,114,.25); }
.mf-ncard.mf-role--room .mf-ncard__icon { background: rgba(224,85,159,.25); }
.mf-ncard.mf-role--sensor .mf-ncard__icon { background: rgba(201,132,18,.25); }
.mf-ncard__main { display: flex; flex-direction: column; min-width: 0; }
.mf-ncard__main b { font: 700 16px/1.2 var(--font-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf-ncard__main small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf-ncard__seen code { font-size: 11px; }
@media (max-width: 520px) { .mf-ncard { grid-template-columns: 40px minmax(0, 1fr); } .mf-ncard > .mm-btn { grid-column: 1 / -1; justify-content: center; } }
.mf-tray { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 14px; padding: 10px 12px; border-radius: 14px; background: rgba(255,123,37,.08); border: 1px dashed rgba(255,123,37,.45); }
.mf-tray--empty { color: var(--muted); font-size: 13px; background: rgba(255,243,227,.03); border-color: var(--line); }
.mf-tray__label { font-weight: 700; margin-right: 4px; }
.mf-more { margin-top: 14px; }
.mf-more summary { cursor: pointer; color: var(--sky); font-weight: 700; margin-bottom: 10px; }
.mf-homemap { height: 330px; border-radius: 18px; overflow: hidden; border: 2px solid var(--card-line); }
.mf-done { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 10px; }
.mf-done__medal { width: 110px; height: 110px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 56px; background: var(--grad-fox); box-shadow: 0 0 0 6px rgba(255,243,227,.15), 0 16px 40px rgba(255,123,37,.5); animation: mf-pop 700ms cubic-bezier(.2,1.6,.4,1); }
@keyframes mf-pop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.mf-done__stats { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.mf-done .mf-onb__list { text-align: left; }
.mf-choice { margin-top: 14px; padding: 14px; border-radius: 18px; background: rgba(18,13,28,.45); border: 1px solid var(--line); }
.mf-choice__btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.mf-bigchoice { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left; padding: 14px; border-radius: 16px; border: 2px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; }
.mf-bigchoice span { font-size: 26px; }
.mf-bigchoice b { font: 700 16px/1.2 var(--font-display); }
.mf-bigchoice small { color: var(--muted); }
.mf-bigchoice--mine:hover { border-color: var(--circle-mine); background: rgba(255,123,37,.12); }
.mf-bigchoice--friend:hover { border-color: var(--circle-friend); background: rgba(76,201,240,.12); }
.mf-bigchoice--obs:hover { border-color: var(--grape); background: rgba(155,93,229,.14); }

/* --- help centre -------------------------------------------------------------- */
.mf-help .mm-modal__panel { width: min(1120px, 100%); height: min(820px, calc(100vh - 32px)); padding: 0; overflow: hidden; }
.mf-help .mm-modal__body { height: 100%; }
.mf-helpwrap { display: grid; grid-template-columns: 250px minmax(0, 1fr); height: 100%; }
.mf-helpnav { display: flex; flex-direction: column; gap: 4px; padding: 18px 12px; overflow-y: auto; background: rgba(18,13,28,.6); border-right: 1px solid var(--line); }
.mf-helpnav__brand { display: flex; align-items: center; gap: 8px; font: 700 17px/1 var(--font-display); padding: 4px 8px 14px; }
.mf-helpnav__brand img { width: 32px; height: 32px; }
.mf-helpnav__item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; border: none; background: none; color: var(--muted); font: 700 13.5px/1.2 var(--font-display); text-align: left; cursor: pointer; }
.mf-helpnav__item span { width: 30px; height: 30px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,243,227,.06); flex: 0 0 auto; }
.mf-helpnav__item:hover { color: var(--text); background: rgba(255,243,227,.05); }
.mf-helpnav__item.on { color: var(--text); background: rgba(255,243,227,.08); }
.mf-helpnav__tools { margin-top: auto; display: flex; flex-direction: column; gap: 6px; padding-top: 14px; }
.mf-helpbody { overflow-y: auto; padding: 0 0 20px; }
.mf-helphead { display: flex; gap: 16px; align-items: center; padding: 26px 30px 22px; margin-bottom: 8px; }
.mf-helphead h2 { margin: 0 !important; font-size: 28px !important; }
.mf-helphead p { margin: 4px 0 0; opacity: .9; }
.mf-helphead__icon { width: 64px; height: 64px; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 34px; background: rgba(18,13,28,.3); }
.mf-tone--fox.mf-helphead { background: linear-gradient(120deg, rgba(255,78,80,.4), rgba(255,182,39,.28)); }
.mf-tone--sky.mf-helphead { background: linear-gradient(120deg, rgba(28,156,203,.45), rgba(111,227,165,.25)); }
.mf-tone--grape.mf-helphead { background: linear-gradient(120deg, rgba(155,93,229,.5), rgba(241,91,181,.28)); }
.mf-tone--moss.mf-helphead { background: linear-gradient(120deg, rgba(47,174,114,.45), rgba(76,201,240,.25)); }
.mf-tone--berry.mf-helphead { background: linear-gradient(120deg, rgba(241,91,181,.45), rgba(255,123,37,.25)); }
.mf-tone--sun.mf-helphead { background: linear-gradient(120deg, rgba(254,228,64,.4), rgba(255,123,37,.3)); }
.mf-helpnav__item.mf-tone--fox.on span { background: var(--grad-fox); }
.mf-helpnav__item.mf-tone--sky.on span { background: var(--grad-sea); }
.mf-helpnav__item.mf-tone--grape.on span, .mf-helpnav__item.mf-tone--berry.on span { background: var(--grad-aurora); }
.mf-helpnav__item.mf-tone--moss.on span { background: linear-gradient(135deg, #2FAE72, #4CC9F0); }
.mf-helpnav__item.mf-tone--sun.on span { background: linear-gradient(135deg, #FEE440, #FF7B25); }
.mf-helptext { padding: 0 30px; font-size: 15px; line-height: 1.65; }
.mf-helptext h4 { font: 700 18px/1.2 var(--font-display); margin: 22px 0 10px; color: var(--sun); }
.mf-helptext p { margin: 0 0 12px; }
.mf-helpfoot { display: flex; justify-content: space-between; gap: 10px; padding: 20px 30px 0; flex-wrap: wrap; }
.mf-hgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin: 12px 0 16px; }
.mf-hcard { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--card-line); font-size: 13.5px; line-height: 1.45; }
.mf-hcard b { font: 700 15px/1.2 var(--font-display); }
.mf-hcard span:last-child { color: var(--muted); }
.mf-hcard__icon { font-size: 26px; }
.mf-hgrid .mf-hcard:nth-child(5n+1) { border-top: 4px solid var(--brand-fox); }
.mf-hgrid .mf-hcard:nth-child(5n+2) { border-top: 4px solid var(--sky); }
.mf-hgrid .mf-hcard:nth-child(5n+3) { border-top: 4px solid var(--moss); }
.mf-hgrid .mf-hcard:nth-child(5n+4) { border-top: 4px solid var(--berry); }
.mf-hgrid .mf-hcard:nth-child(5n+5) { border-top: 4px solid var(--sun); }
.mf-flow { display: flex; align-items: stretch; gap: 6px; flex-wrap: wrap; margin: 16px 0; }
.mf-flow__box { flex: 1 1 110px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; border-radius: 16px; font-size: 26px; text-align: center; }
.mf-flow__box b { font: 700 12.5px/1.2 var(--font-display); }
.mf-flow__arrow { align-self: center; font-size: 22px; color: var(--muted); }
.mf-flow__box--fox { background: rgba(255,123,37,.22); } .mf-flow__box--sky { background: rgba(76,201,240,.2); }
.mf-flow__box--grape { background: rgba(155,93,229,.25); } .mf-flow__box--moss { background: rgba(47,174,114,.22); }
.mf-flow__box--berry { background: rgba(241,91,181,.22); }
.mf-scale { margin: 16px 0 20px; }
.mf-scale__bar { height: 18px; border-radius: 10px; background: linear-gradient(90deg, #E5484D 0%, #FF7B25 30%, #FEE440 55%, #6FE3A5 78%, #2FAE72 100%); }
.mf-scale__ticks, .mf-scale__labels { display: flex; justify-content: space-between; font-size: 12px; margin-top: 4px; }
.mf-scale__labels { font-weight: 700; }
.mf-legendrow { display: flex; gap: 10px; align-items: center; margin: 6px 0; flex-wrap: wrap; }
.mf-steps-list { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.mf-ladder { list-style: none; padding: 0; margin: 10px 0 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 8px; }
.mf-ladder li { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; border-radius: 16px; background: var(--card); border: 1px solid var(--card-line); text-align: center; }
.mf-ladder__icon { font-size: 28px; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--grad-fox); }
.mf-ladder li b { font: 700 13px/1.2 var(--font-display); }
.mf-ladder li em { font-style: normal; color: var(--muted); font-size: 12px; }
.mf-tierkey { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.mf-tierkey span { padding: 4px 10px; border-radius: 999px; font: 700 12px/1 var(--font-display); border: 2px solid; }
.mf-tierkey .mf-tier-1 { border-color: var(--tier-1); color: var(--tier-1); } .mf-tierkey .mf-tier-2 { border-color: var(--tier-2); color: var(--tier-2); }
.mf-tierkey .mf-tier-3 { border-color: var(--tier-3); color: var(--tier-3); } .mf-tierkey .mf-tier-4 { border-color: var(--tier-4); color: var(--tier-4); }
.mf-badgetable td, .mf-badgetable th { text-align: center; }
.mf-badgetable td:nth-child(2), .mf-badgetable th:nth-child(2) { text-align: left; }
.mf-faq details { border-radius: 14px; background: var(--card); border: 1px solid var(--card-line); margin-bottom: 8px; padding: 10px 14px; }
.mf-faq summary { cursor: pointer; font: 700 15px/1.3 var(--font-display); }
.mf-faq details[open] summary { color: var(--sun); margin-bottom: 6px; }
.mf-gloss { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.mf-gloss div { padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--card-line); }
.mf-gloss dt { font: 700 15px/1.2 var(--font-display); color: var(--sky); }
.mf-gloss dd { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
@media (max-width: 760px) {
  .mf-helpwrap { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .mf-helpnav { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px; }
  .mf-helpnav__brand, .mf-helpnav__tools { display: none; }
  .mf-helpnav__item { flex: 0 0 auto; }
  .mf-help .mm-modal__panel { height: 100%; }
  .mf-helphead { padding: 18px 16px; } .mf-helptext { padding: 0 16px; } .mf-helpfoot { padding: 16px 16px 0; }
}

/* --- detail drawer ----------------------------------------------------------- */
.mm-dhead { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; margin: -26px -26px 12px; padding: 26px 26px 18px; }
.mf-dhead { background: linear-gradient(120deg, rgba(255,123,37,.22), rgba(155,93,229,.18)); }
.mf-dhead.mf-role--repeater { background: linear-gradient(120deg, rgba(91,141,239,.3), rgba(76,201,240,.15)); }
.mf-dhead.mf-role--companion { background: linear-gradient(120deg, rgba(47,174,114,.3), rgba(76,201,240,.15)); }
.mf-dhead.mf-role--room { background: linear-gradient(120deg, rgba(224,85,159,.3), rgba(155,93,229,.15)); }
.mf-dhead.mf-role--sensor { background: linear-gradient(120deg, rgba(201,132,18,.3), rgba(255,123,37,.15)); }
.mf-dhead.mf-role--observer { background: linear-gradient(120deg, rgba(155,93,229,.35), rgba(241,91,181,.18)); }
.mm-dhead__icon { font-size: 30px; width: 60px; height: 60px; border-radius: 18px; display: flex; align-items: center; justify-content: center; background: rgba(18,13,28,.35); }
.mm-dhead__main { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.mm-dhead__main h2 { margin: 0; }
.mm-dhead__actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
@media (max-width: 640px) { .mm-dhead { margin: -22px -16px 12px; padding: 22px 16px 16px; } .mm-dhead__actions { align-items: flex-start; } }
.mm-dsec { margin: 22px 0; display: flex; flex-direction: column; gap: 8px; }
.mm-dsec h3 { font: 700 16px/1.2 var(--font-display); margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.mm-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.mm-table th { text-align: left; color: var(--muted); font-weight: 700; font-size: 11.5px; padding: 7px 6px; border-bottom: 1px solid var(--line); text-transform: uppercase; letter-spacing: .04em; }
.mm-table td { padding: 7px 6px; border-bottom: 1px solid rgba(62,47,87,.55); font-variant-numeric: tabular-nums; vertical-align: middle; }
.mm-table tbody tr:hover { background: rgba(255,243,227,.04); }
.mm-tablewrap { overflow-x: auto; }
.mm-tablewrap[data-more] tbody tr:nth-child(n+11) { display: none; }
.mm-tablewrap[data-more].expanded tbody tr { display: table-row; }

/* --- toasts + confetti ---------------------------------------------------------- */
.mm-toasts { position: fixed; right: 16px; bottom: 16px; z-index: 12500; display: flex; flex-direction: column; gap: 8px; max-width: min(440px, calc(100vw - 32px)); }
.mm-toast {
  background: var(--bg-2); border: 1px solid var(--line); border-left: 5px solid var(--brand-fox);
  border-radius: 14px; padding: 12px 16px; font-size: 13.5px; box-shadow: 0 16px 36px rgba(0,0,0,.5);
  animation: mm-toast-in 240ms cubic-bezier(.2,1.4,.4,1); transition: opacity 300ms ease, transform 300ms ease;
}
.mm-toast--good { border-left-color: var(--moss); }
.mm-toast.out { opacity: 0; transform: translateY(8px); }
@keyframes mm-toast-in { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
.mf-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 13000; overflow: hidden; }
.mf-confetti i { position: absolute; width: 9px; height: 14px; border-radius: 2px; animation: mf-fall 2.1s cubic-bezier(.15,.6,.4,1) forwards; }
@keyframes mf-fall {
  0% { transform: translate(0, 0) rotate(0); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; }
}

.mm-helplist { padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }

/* --- map profile actions (popup + analysis panel) ------------------------------ */
.popup-actions, .na-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.pa-btn { background: var(--bg-3); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 5px 9px; font: 700 11.5px/1 var(--font-display); cursor: pointer; }
.pa-btn:hover { border-color: var(--fox-amber); }
.pa-btn.on { border-color: var(--circle-mine); background: rgba(255,123,37,.18); }
.pa-star { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 14px; padding: 0 4px; }
.pa-star.on { color: var(--sky); }
.ant-mine { color: var(--circle-mine); }
.df-consent__later { display: block; margin: 10px auto 0; background: none; border: none; color: var(--muted); font: 600 13px/1 var(--font-display); cursor: pointer; text-decoration: underline; }
.dd-label.mine-dd { display: inline-flex; align-items: center; gap: 4px; text-transform: none; letter-spacing: 0; color: var(--text); }

/* radar: trace-sheet close button and legend chip only exist on phones */
.obs-close { display: none; margin-left: 8px; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--line); background: var(--bg-3); color: var(--text); font-size: 16px; cursor: pointer; }
.rl-toggle { display: none; align-items: center; gap: 4px; background: none; border: 0; color: var(--text); font: 700 11px/1.2 var(--font-display); cursor: pointer; padding: 2px 2px; }

/* --- map on phones: search, filters and the node analysis don't fight for space --- */
@media (max-width: 760px) {
  .node-search { left: 8px; top: 8px; width: auto; right: 132px; }
  .map-controls { top: 8px; right: 8px; }
  .map-controls:not(.collapsed) { top: 56px; left: 8px; right: 8px; max-height: 62vh; overflow-y: auto; z-index: 750; }
  .node-analysis { left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; max-height: 58vh; border-radius: 16px; }
  /* first-visit consent card */
  .df-consent__card { grid-template-columns: minmax(0, 1fr); padding: 22px 18px 18px; }
  .df-consent__card > * { grid-column: 1 !important; }
  .df-consent__mascot { grid-row: auto; justify-self: center; width: 72px; height: 72px; }
  .df-consent__stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  /* dialogs: keep content clear of the × */
  .mf-helpnav { padding-right: 10px; margin-right: 56px; }
  .mf-onb__art { padding-right: 60px !important; }
}

/* --- friends on air -------------------------------------------------------------------- */
.mf-presence { position: absolute; right: -3px; bottom: -3px; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--bg-2); background: #6B5E80; }
.mf-legendrow .mf-presence, .mf-friend__state .mf-presence { position: static; display: inline-block; width: 10px; height: 10px; border-width: 0; margin-right: 6px; vertical-align: -1px; }
.mf-presence--online { background: var(--moss); box-shadow: 0 0 0 0 rgba(111, 227, 165, .7); animation: mf-onair 2s ease-out infinite; }
.mf-presence--recent { background: var(--fox-amber); }
.mf-presence--away { background: #6B5E80; }
.mf-presence--never { background: transparent; border-color: var(--line) !important; border-style: dashed !important; border-width: 2px !important; }
@keyframes mf-onair { 0% { box-shadow: 0 0 0 0 rgba(111, 227, 165, .7); } 70% { box-shadow: 0 0 0 9px rgba(111, 227, 165, 0); } 100% { box-shadow: 0 0 0 0 rgba(111, 227, 165, 0); } }

.mf-friends__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mf-friends__head .mm-section__title { margin: 0; }
.mf-friends__actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.mf-online-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font: 700 12.5px/1 var(--font-display); color: var(--muted); background: rgba(255, 243, 227, .06); border: 1px solid var(--line); }
.mf-online-chip i { width: 8px; height: 8px; border-radius: 50%; background: #6B5E80; }
.mf-online-chip.on { color: #0f2a1d; background: linear-gradient(135deg, #6FE3A5, #4CC9F0); border-color: transparent; }
.mf-online-chip.on i { background: #0f2a1d; animation: mf-blink 1.4s ease-in-out infinite; }
@keyframes mf-blink { 50% { opacity: .35; } }
.mf-notify.on { border-color: var(--moss); color: var(--moss); background: rgba(111, 227, 165, .1); }

.mf-friendgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.mf-friend { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 12px 12px 12px 14px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.mf-friend:hover { transform: translateY(-1px); }
.mf-friend--online { border-color: rgba(111, 227, 165, .55); background: linear-gradient(135deg, rgba(111, 227, 165, .12), rgba(76, 201, 240, .08) 60%, var(--bg-2)); box-shadow: 0 8px 24px rgba(47, 174, 114, .15); }
.mf-friend--recent { border-color: rgba(255, 182, 39, .4); }
.mf-friend--away, .mf-friend--never { opacity: .82; }
.mf-friend__avatar { position: relative; flex: 0 0 auto; width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; background: rgba(76, 201, 240, .14); border: 1px solid rgba(76, 201, 240, .35); }
.mf-friend--online .mf-friend__avatar { background: rgba(111, 227, 165, .18); border-color: rgba(111, 227, 165, .6); }
.mf-friend__body { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 3px; }
.mf-friend__top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.mf-friend__name { background: none; border: 0; padding: 0; color: var(--text); font: 700 15.5px/1.2 var(--font-display); cursor: pointer; text-align: left; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.mf-friend__name:hover { color: var(--sky); }
.mf-friend__state { font: 700 11.5px/1 var(--font-display); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.mf-friend__state--online { color: var(--moss); }
.mf-friend__state--recent { color: var(--fox-amber); }
.mf-friend__line { font-size: 13px; color: var(--muted); line-height: 1.35; }
.mf-friend--online .mf-friend__line { color: var(--text); }
.mf-friend__meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.mf-friend .mm-icon-btn { flex: 0 0 auto; color: var(--sky); }
.mf-chip--friend { border-color: rgba(76, 201, 240, .6); background: rgba(76, 201, 240, .14); }

/* top bar: how many friends are on air */
.friends-pill[hidden] { display: none !important; }
.friends-pill { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; font: inherit; color: var(--muted); }
.friends-pill__star { color: var(--sky); }
.friends-pill__n { display: none; }
.friends-pill.on { color: #0f2a1d; background: linear-gradient(135deg, #6FE3A5, #4CC9F0); border-color: transparent; font-weight: 700; }
.friends-pill.on .friends-pill__star { color: #0f2a1d; animation: mf-blink 1.4s ease-in-out infinite; }

/* radar: add a chat sender as friend; friends' messages get a tint */
.msg-head { flex-wrap: wrap; }
.msg-friend { margin-left: 6px; padding: 2px 8px; border-radius: 999px; border: 1px dashed rgba(76, 201, 240, .6); background: none; color: var(--sky); font: 700 11px/1.4 var(--font-display); cursor: pointer; }
.msg-friend:hover { background: rgba(76, 201, 240, .12); }
.msg-friend.on { border-style: solid; background: rgba(76, 201, 240, .18); }
.feed li.msg--friend { box-shadow: inset 3px 0 0 var(--sky); background: rgba(76, 201, 240, .06); }

.mm-toast--warn { border-left-color: var(--fox-amber); }

.topbar .tab, .topbar .pill, .topbar .friends-pill { white-space: nowrap; }
/* safety net for long translations: the status pills drop to a second row */
.topbar { flex-wrap: wrap; row-gap: 6px; }

/* --- topbar on tablets: the view tabs get their own row --------------------------- */
@media (max-width: 1280px) {
  .topbar { flex-wrap: wrap; row-gap: 6px; }
  .tabs { order: 3; width: 100%; margin-left: 0 !important; display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px !important; }
  .tab { display: flex !important; justify-content: center; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; }
  .status { min-width: 0; flex-wrap: wrap; justify-content: flex-end; }
}

/* --- topbar on small screens ----------------------------------------------------- */
@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; row-gap: 6px; }
  /* the four views share the row evenly, icon above label, nothing to scroll */
  .tabs { margin-left: 0 !important; order: 3; width: 100%; display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px !important; }
  .tab { display: flex !important; flex-direction: column; align-items: center; gap: 1px; min-width: 0; padding: 5px 2px !important; font-size: 11.5px !important; line-height: 1.15 !important; white-space: nowrap; }
  .tab > span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .status .sessions-pill, .status .ham-pill { display: none; }
  .friends-pill__label { display: none; }
  .friends-pill__n { display: inline; }
  .mf-friends__actions { margin-left: 0; width: 100%; }
  .mf-banner { padding: 16px; gap: 12px; }
  .mf-banner__fox { width: 56px; height: 56px; }
  .mf-banner__title { font-size: 22px; }
  .mf-rank { min-width: 0; flex: 1 1 100%; }
  .mf-hero { padding: 20px; }
  .mf-hero__fox { width: 96px; height: 96px; }
  .mf-hero__body h1 { font-size: 26px; }
}

/* --- radar on phones: radar on top, message list below, trace as an overlay --- */
@media (max-width: 760px) {
  body.radar-active main { grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: minmax(0, 46%) minmax(0, 1fr); }
  body.radar-active .view-radar.active { grid-row: 1; grid-template-columns: minmax(0, 1fr) !important; }
  body.radar-active .sidebar { grid-row: 2; min-width: 0 !important; width: auto !important; border-left: 0; border-top: 2px solid var(--line); }
  body.radar-active .sidebar-collapse { display: none; }
  body.radar-active.sidebar-collapsed .sidebar-head { display: flex; }
  body.radar-active.sidebar-collapsed .feed { display: block; }
  /* the trace is a bottom sheet over the message list, so the radar map stays visible */
  body.radar-active .obs-panel { position: fixed; left: 8px; right: 8px; bottom: 8px; max-height: 44vh; z-index: 900; border: 1px solid var(--line); border-radius: 16px 16px 12px 12px; overflow: auto; box-shadow: 0 -6px 30px rgba(0, 0, 0, .5); }
  body.radar-active .obs-panel:has(.obs-idle), body.radar-active .obs-panel.obs-panel--dismissed { display: none; }
  body.radar-active .obs-head { position: sticky; top: 0; z-index: 1; background: var(--bg-2); }
  .obs-close { display: inline-flex; }
  .radar-legend { top: 8px; right: 8px; left: auto; min-width: 0; max-width: calc(100% - 64px); padding: 5px 8px; font-size: 10.5px; flex-direction: row; flex-wrap: wrap; gap: 3px 10px; }
  .radar-legend .rl-row { gap: 5px; }
  .radar-legend label.rl-row { margin-top: 0 !important; border-top: 0 !important; padding-top: 0 !important; }
  .radar-legend:not(.open) .rl-row { display: none; }
  .rl-toggle { display: inline-flex; }
}

@media (prefers-reduced-motion: reduce) {
  .mm-modal, .mm-modal__panel, .mm-toast, .mf-banner__fox, .mf-hero__fox, .mf-onb__art img, .mm-badge__icon, .mf-done__medal,
  .mf-presence--online, .mf-online-chip.on i, .friends-pill.on .friends-pill__star { transition: none; animation: none; }
}
