/* =====================================================================
   Menedżer (asystent głosowy) – wygląd.
   Wszystko działa tylko przy włączonym dostępie (klasa html.mm-on).
   Telefon (dolny pasek): zębatka zamiast przełącznika motywu, mikrofon na środku paska.
   Komputer (boczne menu bez zmian): przesuwany mikrofon na Pulpicie.
   ===================================================================== */

#mm-gear, #mm-nav, #mm-fab, #mm-warstwa { display: none; }
html:not(.mm-on) .mm-ust { display: none !important; }
@media (min-width: 993px) { .mm-ust-telefon { display: none !important; } }
@media (max-width: 992px) { .mm-ust-komputer { display: none !important; } }

/* ---------- Telefon: nagłówek i dolny pasek ---------- */
@media (max-width: 992px) {
    html.mm-on #theme-toggle { display: none !important; }
    html.mm-on #mm-gear {
        display: flex; width: 45px; height: 45px; flex-shrink: 0; align-items: center; justify-content: center;
        border-radius: 50%; border: 1px solid var(--border-color); background: var(--bg-outer); color: var(--text-main);
        box-shadow: 0 4px 10px rgba(0, 0, 0, .1); cursor: pointer; padding: 0; transition: transform .2s;
        -webkit-tap-highlight-color: transparent;
    }
    html.mm-on #mm-gear:active { transform: scale(.94); }
    html.mm-on #mm-gear .material-symbols-outlined { font-size: 24px; }

    /* Mikrofon wystaje nad pasek, więc pasek nie może przycinać zawartości.
       Świetlny refleks paska przenosimy do osobnej, przyciętej warstwy. */
    html.mm-on #revolut-nav-bar { overflow: visible !important; }
    html.mm-on #revolut-nav-bar::before { display: none !important; }
    html.mm-on #revolut-nav-bar > .mm-refleks {
        display: block; position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; z-index: 0;
    }
    html.mm-on #revolut-nav-bar > .mm-refleks i {
        position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent);
        animation: light-sweep 5s infinite linear;
    }

    /* Ustawienia znikają z paska (są pod zębatką). Element zostaje w środku paska,
       więc zaznaczenie przy wyjściu z Ustawień wypływa spod mikrofonu. */
    html.mm-on #revolut-nav-bar .sidebar-bottom {
        position: absolute !important; left: 50% !important; top: 0 !important; width: 0 !important; height: 100% !important;
        overflow: hidden !important; opacity: 0 !important; pointer-events: none !important;
    }
    html.mm-on #revolut-nav-bar:has(#nav-ustawienia.active) .nav-kropla { opacity: 0; }
    html.mm-on #revolut-nav-bar .nav-kropla { transition: opacity .25s ease; }

    html.mm-on #mm-nav { display: block; position: relative; width: 100%; height: 100%; z-index: 2; }
    html.mm-on #mm-nav .nav-text { color: #ffffff; }
}
@media (max-width: 992px) and (prefers-reduced-motion: reduce) {
    html.mm-on #revolut-nav-bar > .mm-refleks i { animation: none; }
}
.mm-refleks { display: none; }

/* Wspólny wygląd okrągłego mikrofonu (pasek i Pulpit na komputerze) */
.mm-mic { display: grid; }
.mm-mic, #mm-fab {
    border: 0; padding: 0; border-radius: 50%; place-items: center; color: #fff; cursor: pointer;
    background: radial-gradient(circle at 35% 28%, #9cc2ff, #4f8cff 45%, #2a5fe0 80%);
    box-shadow: 0 0 0 3px rgba(79, 140, 255, .3), 0 0 0 4px rgba(130, 175, 255, .4), 0 10px 30px rgba(60, 120, 255, .6), 0 0 46px rgba(79, 140, 255, .45);
    -webkit-tap-highlight-color: transparent; touch-action: manipulation; font-family: inherit;
}
.mm-mic svg { width: 30px; height: 30px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .3)); pointer-events: none; }
#mm-nav .mm-mic {
    position: absolute; left: 50%; top: -34px; width: 68px; height: 68px; transform: translateX(-50%);
    transition: top .4s cubic-bezier(.25, .8, .25, 1), width .4s cubic-bezier(.25, .8, .25, 1), height .4s cubic-bezier(.25, .8, .25, 1), transform .15s ease;
}
#mm-nav .mm-mic::before {
    content: ""; position: absolute; inset: -22px; border-radius: 50%; z-index: -1; pointer-events: none;
    background: radial-gradient(circle, rgba(79, 140, 255, .28), transparent 68%);
}
#mm-nav .mm-mic:active { transform: translateX(-50%) scale(.94); }
#revolut-nav-bar.expanded #mm-nav .mm-mic { top: -24px; width: 58px; height: 58px; }
/* Słuchanie: czerwony przycisk „stop” zamiast mikrofonu */
.mm-mic.mm-slucha, #mm-fab.mm-slucha {
    background: radial-gradient(circle at 35% 28%, #ff9a9a, #f04b5a 45%, #d01a3c 80%);
    animation: mm-puls-czerw 1.3s ease-out infinite;
}
.mm-mic.mm-slucha svg, #mm-fab.mm-slucha svg { display: none; }
.mm-mic.mm-slucha::after, #mm-fab.mm-slucha::after { content: ""; width: 30%; height: 30%; max-width: 18px; max-height: 18px; border-radius: 4px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
@keyframes mm-puls-czerw {
    0% { box-shadow: 0 0 0 3px rgba(240, 75, 90, .5), 0 0 0 4px rgba(255, 150, 160, .5), 0 10px 30px rgba(220, 40, 70, .55); }
    70% { box-shadow: 0 0 0 16px rgba(240, 75, 90, 0), 0 0 0 4px rgba(255, 150, 160, .5), 0 10px 30px rgba(220, 40, 70, .55); }
    100% { box-shadow: 0 0 0 3px rgba(240, 75, 90, 0), 0 0 0 4px rgba(255, 150, 160, .5), 0 10px 30px rgba(220, 40, 70, .55); }
}
@keyframes mm-puls {
    0% { box-shadow: 0 0 0 3px rgba(79, 140, 255, .45), 0 0 0 4px rgba(130, 175, 255, .5), 0 10px 30px rgba(60, 120, 255, .6); }
    70% { box-shadow: 0 0 0 16px rgba(79, 140, 255, 0), 0 0 0 4px rgba(130, 175, 255, .5), 0 10px 30px rgba(60, 120, 255, .6); }
    100% { box-shadow: 0 0 0 3px rgba(79, 140, 255, 0), 0 0 0 4px rgba(130, 175, 255, .5), 0 10px 30px rgba(60, 120, 255, .6); }
}

/* ---------- Komputer: przesuwany mikrofon na Pulpicie ---------- */
@media (min-width: 993px) {
    html.mm-on.mm-pulpit #mm-fab { display: grid; }
}
#mm-fab {
    position: fixed; right: 28px; bottom: 28px; z-index: 950; width: 64px; height: 64px;
    cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none; transition: transform .15s ease;
}
#mm-fab svg { width: 28px; height: 28px; pointer-events: none; }
#mm-fab:hover { transform: translateY(-2px); }
#mm-fab.mm-ciagniety { cursor: grabbing; transform: scale(1.06); transition: none; }

/* ---------- Okno Menedżera ---------- */
#mm-warstwa {
    --mm-tlo: #ffffff; --mm-tekst: #0f172a; --mm-szary: #64748b; --mm-ramka: rgba(15, 23, 42, .1);
    --mm-dymek: #f1f5fb; --mm-pole: #f4f7fc; --mm-chip: #eef4ff; --mm-chip-tekst: #1d4ed8;
    position: fixed; inset: 0; z-index: 100500;
}
html.dark-mode #mm-warstwa {
    --mm-tlo: #121826; --mm-tekst: #e8eefc; --mm-szary: #94a3b8; --mm-ramka: rgba(255, 255, 255, .08);
    --mm-dymek: rgba(255, 255, 255, .06); --mm-pole: rgba(255, 255, 255, .06); --mm-chip: rgba(79, 140, 255, .14); --mm-chip-tekst: #9cc2ff;
}
html.mm-on #mm-warstwa.mm-otwarte { display: block; }
#mm-warstwa .mm-tlo {
    position: absolute; inset: 0; background: rgba(3, 6, 12, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    animation: mm-pojaw .2s ease both;
}
#mm-okno {
    position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 560px; max-height: min(80vh, 660px);
    display: flex; flex-direction: column; box-sizing: border-box; overflow: hidden;
    background: var(--mm-tlo); color: var(--mm-tekst); border: 1px solid var(--mm-ramka); border-bottom: 0;
    border-radius: 26px 26px 0 0; box-shadow: 0 -12px 40px rgba(0, 0, 0, .35);
    padding-bottom: env(safe-area-inset-bottom); font-family: inherit;
    animation: mm-wjazd .3s cubic-bezier(.2, .9, .25, 1) both;
}
@media (min-width: 993px) {
    #mm-okno { left: auto; right: 28px; bottom: 28px; width: 420px; max-height: min(72vh, 620px); border-radius: 22px; border-bottom: 1px solid var(--mm-ramka); }
}
@keyframes mm-pojaw { from { opacity: 0; } }
@keyframes mm-wjazd { from { transform: translateY(40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { #mm-okno, #mm-warstwa .mm-tlo { animation: none; } }

#mm-okno .mm-gora { display: flex; align-items: center; gap: 12px; padding: 16px 16px 10px; }
#mm-okno .mm-znak {
    width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; color: #fff;
    background: radial-gradient(circle at 35% 28%, #9cc2ff, #4f8cff 45%, #2a5fe0 80%);
}
#mm-okno .mm-znak svg { width: 20px; height: 20px; }
#mm-okno .mm-naglowek { flex: 1; min-width: 0; }
#mm-okno .mm-naglowek strong { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
#mm-okno .mm-naglowek small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--mm-szary); }
#mm-okno .mm-zamknij {
    width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--mm-ramka); background: transparent;
    color: var(--mm-tekst); font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center;
}

#mm-okno .mm-rozmowa {
    flex: 1; min-height: 120px; overflow-y: auto; padding: 6px 16px 10px; display: flex; flex-direction: column; gap: 10px;
    overscroll-behavior: contain;
}
#mm-okno .mm-dymek {
    max-width: 88%; padding: 10px 13px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; white-space: pre-line;
    overflow-wrap: anywhere;
}
#mm-okno .mm-dymek.mm-ja { align-self: flex-end; background: linear-gradient(135deg, #3b82f6, #2563eb); color: #fff; border-bottom-right-radius: 6px; }
#mm-okno .mm-dymek.mm-on { align-self: flex-start; background: var(--mm-dymek); color: var(--mm-tekst); border-bottom-left-radius: 6px; }
#mm-okno .mm-dymek.mm-uwaga { border: 1px dashed rgba(234, 179, 8, .6); }
#mm-okno .mm-dymek.mm-mysli { opacity: .75; font-style: italic; animation: mm-mysli 1.2s ease-in-out infinite; }
@keyframes mm-mysli { 0%, 100% { opacity: .45; } 50% { opacity: .9; } }
@media (prefers-reduced-motion: reduce) { #mm-okno .mm-dymek.mm-mysli { animation: none; } }
#mm-okno .mm-obraz { display: block; width: 104px; height: 104px; object-fit: contain; background: #fff; border-radius: 12px; padding: 6px; margin-bottom: 8px; box-sizing: border-box; }
#mm-okno .mm-akcje { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
#mm-okno .mm-akcje button, #mm-okno .mm-podpowiedzi button {
    border: 0; border-radius: 999px; padding: 7px 12px; background: var(--mm-chip); color: var(--mm-chip-tekst);
    font-weight: 700; font-size: 12.5px; line-height: 1.2; font-family: inherit; cursor: pointer;
}
#mm-okno .mm-akcje button.mm-glowny { background: linear-gradient(135deg, #3b82f6, #2563eb); color: #fff; padding: 7px 18px; }
#mm-okno .mm-akcje button:disabled { opacity: .55; cursor: default; }
#mm-okno .mm-podpowiedzi { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
#mm-okno .mm-podpowiedzi:empty { display: none; }

#mm-okno .mm-dol { display: flex; align-items: center; gap: 8px; padding: 10px 12px 14px; border-top: 1px solid var(--mm-ramka); }
#mm-okno .mm-dol input {
    flex: 1; min-width: 0; height: 44px; box-sizing: border-box; padding: 0 14px; border-radius: 999px;
    border: 1px solid var(--mm-ramka); background: var(--mm-pole); color: var(--mm-tekst); font-weight: 500; font-size: 15px; font-family: inherit;
}
#mm-okno .mm-dol input:focus { outline: 2px solid rgba(79, 140, 255, .45); outline-offset: 0; }
#mm-okno .mm-wyslij {
    width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--mm-ramka); background: var(--mm-pole);
    color: var(--mm-tekst); display: grid; place-items: center; cursor: pointer; padding: 0;
}
#mm-okno .mm-wyslij svg { width: 19px; height: 19px; }
#mm-okno .mm-mow { width: 52px; height: 52px; flex-shrink: 0; }
#mm-okno .mm-mow svg { width: 24px; height: 24px; }

/* ---------- Sekcje w Ustawieniach ---------- */
.mm-wybor { display: flex; flex-wrap: wrap; gap: 8px; }
.mm-wybor button {
    flex: 1 1 0; min-width: 92px; padding: 11px 10px; border-radius: 12px; border: 1px solid var(--border-color);
    background: var(--bg-outer); color: var(--text-main); font-weight: 700; font-size: 13.5px; line-height: 1.2; font-family: inherit; cursor: pointer;
}
.mm-wybor button[aria-pressed="true"] { border-color: transparent; color: #fff; background: linear-gradient(135deg, #3b82f6, #2563eb); box-shadow: 0 6px 16px rgba(37, 99, 235, .3); }
.mm-ust-opis { margin: 8px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--text-muted, #64748b); }
.mm-ust-licznik { display: block; font-size: 14px; font-weight: 700; color: var(--text-main, inherit); }
.mm-ust-wiersz { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.mm-ust-wiersz button {
    padding: 9px 14px; border-radius: 10px; border: 1px solid var(--border-color); background: var(--bg-outer); color: var(--text-main);
    font-weight: 700; font-size: 13px; line-height: 1.2; font-family: inherit; cursor: pointer;
}
.mm-ust-lista { margin: 8px 0 0; padding-left: 18px; font-size: 12.5px; line-height: 1.5; color: var(--text-main); }
.mm-ust-lista:empty { display: none; }

/* ---------- Nagłówek okna: wizualizator, limit pełnej wersji, lista poleceń ---------- */
#mm-okno [hidden] { display: none !important; }
#mm-okno .mm-tytul-wiersz { display: flex; align-items: center; gap: 10px; min-width: 0; }
#mm-okno .mm-tytul-wiersz strong { flex-shrink: 0; }
#mm-okno .mm-fala { display: inline-flex; align-items: center; gap: 3.5px; height: 22px; filter: drop-shadow(0 0 6px rgba(79, 140, 255, .45)); opacity: 0; transform: scale(.5); transform-origin: left center; transition: opacity .2s ease, transform .25s cubic-bezier(.2, .9, .25, 1); }
#mm-okno.mm-slucha .mm-fala { opacity: 1; transform: none; }
#mm-okno .mm-fala i { display: block; width: 4px; height: 22px; border-radius: 3px; background: linear-gradient(180deg, #9cc2ff, #4f8cff 55%, #2a5fe0); transform: scaleY(.16); will-change: transform; }
#mm-okno .mm-prawe { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* ---------- Duży wizualizator nad oknem (tylko podczas słuchania) ---------- */
#mm-warstwa .mm-duza {
    position: absolute; top: max(14px, env(safe-area-inset-top)); z-index: 1; box-sizing: border-box;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
    padding: 12px 8px; color: #fff; text-align: center; pointer-events: none; animation: mm-pojaw .2s ease both;
}
#mm-warstwa .mm-duza[hidden] { display: none; }
#mm-warstwa .mm-duza-tytul { font-size: 24px; font-weight: 800; letter-spacing: .2px; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
#mm-warstwa .mm-duza-fala { display: flex; align-items: center; gap: 6px; height: 128px; filter: drop-shadow(0 0 14px rgba(79, 140, 255, .45)); }
#mm-warstwa .mm-duza-fala i { display: block; width: 8px; height: 128px; border-radius: 5px; background: linear-gradient(180deg, #9cc2ff, #4f8cff 55%, #2a5fe0); transform: scaleY(.1); will-change: transform; }
#mm-warstwa .mm-duza-tekst { margin: 0; max-width: 330px; min-height: 24px; font-size: 17px; line-height: 1.45; font-weight: 600; color: #e8eefc; text-shadow: 0 2px 10px rgba(0, 0, 0, .55); overflow-wrap: anywhere; }
#mm-warstwa .mm-duza-tekst:empty::before { content: "Powiedz np. „Co mam jutro?”"; color: #a9b4c7; font-weight: 500; }
#mm-warstwa .mm-duza.mm-duza-ciasno { gap: 8px; }
#mm-warstwa .mm-duza.mm-duza-ciasno .mm-duza-fala { height: 64px; }
#mm-warstwa .mm-duza.mm-duza-ciasno .mm-duza-fala i { height: 64px; }
#mm-warstwa .mm-duza.mm-duza-ciasno .mm-duza-tytul { font-size: 18px; }
@media (max-height: 520px) { #mm-warstwa .mm-duza { display: none; } }
@media (prefers-reduced-motion: reduce) { #mm-warstwa .mm-duza { animation: none; } .mm-mic.mm-slucha, #mm-fab.mm-slucha { animation: none; } }
#mm-okno .mm-pomoc {
    width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--mm-ramka); background: transparent; padding: 0;
    color: var(--mm-tekst); font-size: 17px; font-weight: 800; line-height: 1; cursor: pointer; display: grid; place-items: center; font-family: inherit;
}
#mm-okno .mm-pomoc[aria-expanded="true"] { background: var(--mm-chip); color: var(--mm-chip-tekst); border-color: transparent; }
#mm-okno .mm-limit {
    position: relative; width: 36px; height: 36px; flex-shrink: 0; border: 0; border-radius: 50%; background: transparent; padding: 0;
    color: #f59e0b; cursor: pointer; display: grid; place-items: center; font-family: inherit;
}
#mm-okno .mm-limit.mm-czerwony { color: #ef4444; }
#mm-okno .mm-limit svg { position: absolute; inset: 0; width: 36px; height: 36px; }
#mm-okno .mm-limit-tor { fill: none; stroke: currentColor; stroke-width: 3.5; opacity: .2; }
#mm-okno .mm-limit-luk { fill: none; stroke: currentColor; stroke-width: 3.5; stroke-linecap: round; transition: stroke-dasharray .5s ease; }
#mm-okno .mm-limit-pr { position: relative; font-size: 9.5px; font-weight: 800; letter-spacing: -.02em; }
#mm-okno .mm-limit-dymek {
    position: absolute; top: 60px; right: 12px; z-index: 3; width: min(300px, calc(100% - 24px)); box-sizing: border-box;
    padding: 14px 14px 12px; border-radius: 16px; background: var(--mm-tlo); color: var(--mm-tekst); border: 1px solid var(--mm-ramka);
    box-shadow: 0 14px 36px rgba(0, 0, 0, .3); font-size: 13.5px; line-height: 1.45; animation: mm-dymek-in .18s ease both;
}
html.dark-mode #mm-okno .mm-limit-dymek { background: #1a2233; }
#mm-okno .mm-limit-dymek strong { display: block; font-size: 14.5px; font-weight: 800; margin-bottom: 4px; }
#mm-okno .mm-limit-dymek p { margin: 0 0 6px; }
#mm-okno .mm-limit-dymek p + p { color: var(--mm-szary); font-size: 12.5px; }
#mm-okno .mm-limit-pasek { height: 6px; border-radius: 6px; background: rgba(148, 163, 184, .25); overflow: hidden; margin: 6px 0 10px; color: #f59e0b; }
#mm-okno .mm-limit-pasek.mm-czerwony { color: #ef4444; }
#mm-okno .mm-limit-pasek i { display: block; height: 100%; min-width: 0; border-radius: 6px; background: currentColor; }
#mm-okno .mm-limit-dymek button, #mm-okno .mm-spis-gora button {
    border: 0; border-radius: 999px; padding: 7px 14px; margin-top: 4px; background: var(--mm-chip); color: var(--mm-chip-tekst);
    font-weight: 700; font-size: 13px; font-family: inherit; cursor: pointer;
}
#mm-okno .mm-spis-gora button { margin-top: 0; }
@keyframes mm-dymek-in { from { opacity: 0; transform: translateY(-6px); } }

#mm-okno.mm-spis-on .mm-rozmowa, #mm-okno.mm-spis-on .mm-podpowiedzi, #mm-okno.mm-spis-on .mm-dol { display: none; }
#mm-okno .mm-spis { flex: 1; min-height: 200px; overflow-y: auto; padding: 4px 16px 18px; overscroll-behavior: contain; }
#mm-okno .mm-spis-gora { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
#mm-okno .mm-spis-gora strong { font-size: 15.5px; font-weight: 800; }
#mm-okno .mm-spis-wstep { background: var(--mm-dymek); border-radius: 14px; padding: 12px 13px; font-size: 13.5px; line-height: 1.45; margin-bottom: 8px; }
#mm-okno .mm-spis-wstep p { margin: 0; }
#mm-okno .mm-spis-wstep p + p { margin-top: 6px; color: var(--mm-szary); font-size: 12.5px; }
#mm-okno .mm-spis-grupa { border-top: 1px solid var(--mm-ramka); }
#mm-okno .mm-spis-grupa:first-of-type { border-top: 0; }
#mm-okno .mm-spis-grupa summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 12px 2px; font-weight: 700; font-size: 14.5px;
}
#mm-okno .mm-spis-grupa summary::-webkit-details-marker { display: none; }
#mm-okno .mm-spis-grupa summary span { flex: 1; }
#mm-okno .mm-spis-grupa summary small { font-size: 12px; font-weight: 700; color: var(--mm-szary); }
#mm-okno .mm-spis-grupa summary::after {
    content: ''; width: 7px; height: 7px; border-right: 2px solid var(--mm-szary); border-bottom: 2px solid var(--mm-szary);
    transform: rotate(45deg) translateY(-2px); transition: transform .2s ease;
}
#mm-okno .mm-spis-grupa[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
#mm-okno .mm-spis-lista { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 0 12px; }
#mm-okno .mm-spis-lista button {
    border: 0; border-radius: 14px; padding: 7px 12px; background: var(--mm-chip); color: var(--mm-chip-tekst); text-align: left;
    font-weight: 600; font-size: 13px; line-height: 1.35; font-family: inherit; cursor: pointer;
}
@media (prefers-reduced-motion: reduce) { #mm-okno .mm-fala, #mm-okno .mm-limit-dymek, #mm-okno .mm-limit-luk { transition: none; animation: none; } }

/* ---------- Ustawienia: pełna wersja (procent i pasek) i lista poleceń ---------- */
.mm-ust-pelna-gora { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mm-ust-pelna-gora .settings-group-title { margin-top: 0; margin-bottom: 0; }
.mm-ust-pomoc {
    width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--border-color, rgba(148, 163, 184, .35));
    background: transparent; color: var(--text-main, inherit); font-weight: 800; font-size: 15px; line-height: 1; font-family: inherit;
    cursor: pointer; display: grid; place-items: center; padding: 0; transition: background .15s ease, transform .15s ease;
}
.mm-ust-pomoc:hover { background: rgba(79, 140, 255, .12); }
.mm-ust-pomoc:active { transform: scale(.94); }
.mm-ust-limit { margin-top: 10px; padding: 14px 14px 12px; border-radius: 14px; background: rgba(79, 140, 255, .08); border: 1px solid rgba(79, 140, 255, .2); }
.mm-ust-limit.mm-pomaranczowy { background: rgba(245, 158, 11, .08); border-color: rgba(245, 158, 11, .28); }
.mm-ust-limit.mm-czerwony { background: rgba(239, 68, 68, .08); border-color: rgba(239, 68, 68, .28); }
.mm-ust-limit-wiersz { display: flex; align-items: baseline; gap: 8px; }
.mm-ust-procent { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: var(--text-main, inherit); }
.mm-ust-limit-wiersz span { font-size: 13px; color: var(--text-muted, #64748b); }
.mm-ust-pasek { height: 10px; margin-top: 10px; border-radius: 10px; background: rgba(148, 163, 184, .22); overflow: hidden; }
.mm-ust-pasek i {
    display: block; height: 100%; border-radius: 10px; background: linear-gradient(90deg, #60a5fa, #2563eb);
    box-shadow: 0 0 12px rgba(59, 130, 246, .45); transition: width .6s cubic-bezier(.2, .9, .25, 1);
}
.mm-pomaranczowy .mm-ust-pasek i { background: linear-gradient(90deg, #fbbf24, #f59e0b); box-shadow: 0 0 12px rgba(245, 158, 11, .45); }
.mm-czerwony .mm-ust-pasek i { background: linear-gradient(90deg, #f87171, #ef4444); box-shadow: 0 0 12px rgba(239, 68, 68, .45); }
.mm-ust-limit small { display: block; margin-top: 8px; font-size: 12px; color: var(--text-muted, #64748b); }
@media (prefers-reduced-motion: reduce) { .mm-ust-pasek i { transition: none; } }
