html:not([data-theme="dark"]) body.mf-app {
    --mf-void: #f4f6f8;
    --mf-surface-2: #eef0f3;
    --mf-text: #0a0a0a;
    --mf-text-secondary: #45515e;
    --mf-text-tertiary: #5f5f5f;
    --mf-accent: #0a0a0a;
    --mf-accent-2: #222;
    --mf-chrome: #222;
    --mf-chrome-soft: #eef0f3;
    --mf-chrome-border: #d4d4d8;
    --mf-border: #e4e6ea;
    --mf-shadow-elevated: 0 8px 24px rgb(0 0 0 / 6%);
    background: #e6e8ec;
}
html:not([data-theme="dark"]) body.mf-app.mf-auth-gate {
    background: #f4f6f8;
}
body.mf-app {
    --mf-radius: 1rem;
    --mf-radius-lg: 1.5rem;
    --mf-btn-height-md: 2.75rem;
}
body.mf-app .mf-btn,
body.mf-app .mf-tool-produce,
body.mf-app .mf-tool-clear,
body.mf-app .mf-speech__add,
body.mf-app .mf-speech-voice__trigger { border-radius: 10px; }
body.mf-app .mf-music .mf-toggle__input:checked + .mf-toggle__track {
    background: #0a0a0a;
}
html[data-theme="dark"] body.mf-app .mf-toggle__input:checked + .mf-toggle__track,
html[data-theme="dark"] body.mf-app .mf-music .mf-toggle__input:checked + .mf-toggle__track {
    background: #e91752;
}
html[data-theme="dark"] body.mf-app .mf-toggle__thumb,
html[data-theme="dark"] body.mf-app .mf-toggle:hover .mf-toggle__thumb,
html[data-theme="dark"] body.mf-app .mf-toggle__track:hover .mf-toggle__thumb {
    background: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
}
html[data-theme="dark"] body.mf-app .mf-toggle__track {
    background: #3e3e3e;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
/* Toggle: no hover wash */
body.mf-app .mf-toggle:hover .mf-toggle__thumb,
body.mf-app .mf-toggle__track:hover .mf-toggle__thumb {
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
}
body.mf-app .mf-tool-produce__bolt {
    color: #facc15;
}
/* Dark CTA is light gray — yellow bolt on a dark chip so it reads clearly */
html[data-theme="dark"] body.mf-app .mf-tool-produce__bolt {
    color: #facc15;
    background: #18181b;
    border-radius: 0.35rem;
    padding: 0.12rem;
    box-sizing: content-box;
    filter: none;
}
/* Visible blinking caret on tool text fields */
body.mf-app .mf-speech-composer__text,
body.mf-app .mf-music-card__text,
body.mf-app .mf-textarea,
body.mf-app .mf-input,
body.mf-app .mf-studio-composer__input,
body.mf-app textarea[name="text"],
body.mf-app textarea[name="prompt"] {
    caret-color: #e91752;
}
html[data-theme="dark"] body.mf-app .mf-speech-composer__text,
html[data-theme="dark"] body.mf-app .mf-music-card__text,
html[data-theme="dark"] body.mf-app .mf-textarea,
html[data-theme="dark"] body.mf-app .mf-input,
html[data-theme="dark"] body.mf-app .mf-studio-composer__input,
html[data-theme="dark"] body.mf-app textarea[name="text"],
html[data-theme="dark"] body.mf-app textarea[name="prompt"] {
    caret-color: #fbbf24;
}
body.mf-app .mf-music-copy { border-radius: 10px; }
html:not([data-theme="dark"]) body.mf-app .mf-btn--primary,
html:not([data-theme="dark"]) body.mf-app .mf-tool-produce,
html:not([data-theme="dark"]) body.mf-app .mf-studio-composer__send {
    background: #0a0a0a;
    border-color: #0a0a0a;
    color: #fff;
    box-shadow: none;
}
/* Studio send: keep arrow contrast on hover (mf-btn--icon must not wash icon to white/dark). */
html:not([data-theme="dark"]) body.mf-app button.mf-studio-composer__send.mf-btn--icon:hover:not(:disabled),
html:not([data-theme="dark"]) body.mf-app button.mf-studio-composer__send.mf-btn--icon:focus-visible:not(:disabled) {
    background: #262626;
    color: #fff;
}
html[data-theme="dark"] body.mf-app button.mf-studio-composer__send.mf-btn--icon,
html[data-theme="dark"] body.mf-app button.mf-studio-composer__send.mf-btn--icon:hover:not(:disabled),
html[data-theme="dark"] body.mf-app button.mf-studio-composer__send.mf-btn--icon:focus-visible:not(:disabled) {
    background: var(--mf-chrome);
    color: #17131F;
}
html[data-theme="dark"] body.mf-app .mf-studio-composer__input::placeholder,
html[data-theme="dark"] body.mf-app .mf-speech-composer__text::placeholder,
html[data-theme="dark"] body.mf-app .mf-input::placeholder,
html[data-theme="dark"] body.mf-app .mf-textarea::placeholder {
    color: #a3a3a3;
}
body.mf-app .mf-tool-produce:hover:not(:disabled) { box-shadow: none; }
body.mf-app .mf-tool-produce__cost { border-radius: 10px; background: rgb(255 255 255 / 18%); }
html[data-theme="dark"] body.mf-app .mf-tool-produce {
    background: var(--mf-accent);
    color: #101216;
    box-shadow: none;
}
html:not([data-theme="dark"]) body.mf-app .mf-app-sidebar {
    --mf-side-accent: #0a0a0a;
    --mf-side-accent-soft: rgb(15 23 42 / 7%);
    background: #eef0f3;
    border-color: #e4e6ea;
}
body.mf-app .mf-app-sidebar__nav a,
body.mf-app .mf-app-sidebar__nav button.mf-app-sidebar__upgrade,
body.mf-app .mf-app-sidebar__nav button.mf-app-sidebar__support,
body.mf-app .mf-app-sidebar__dash { min-height: 2.35rem; }
html[data-theme="dark"] body.mf-app .mf-tool-produce__cost { background: rgb(0 0 0 / 10%); }
html[data-theme="dark"] body.mf-app a.mf-product-card { color: #fff; }
html:not([data-theme="dark"]) body.mf-app .mf-card,
html:not([data-theme="dark"]) body.mf-app .mf-plan-card,
html:not([data-theme="dark"]) body.mf-app .mf-stat-card,
html:not([data-theme="dark"]) body.mf-app .mf-orders-panel,
html:not([data-theme="dark"]) body.mf-app form.panel.mf-tool-panel:not(.mf-music) {
    background: #fff;
    border: 1px solid rgb(15 23 42 / 5%);
    box-shadow: 0 1px 2px rgb(15 23 42 / 4%), 0 12px 32px rgb(15 23 42 / 8%);
}
body.mf-app .mf-plan-card { border-radius: 1.5rem; }
body.mf-app .mf-plan-features li::before {
    background: var(--mf-surface-2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23525B66' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 0.7rem;
}
html[data-theme="dark"] body.mf-app .mf-plan-features li::before {
    background-color: #2a2e35;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23E4E4E7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}
body.mf-app .mf-tool-hero__box {
    padding: 1.25rem 1rem 1rem;
    border: 0;
    background: transparent;
    box-shadow: none;
}
body.mf-app .mf-tool-hero__title {
    margin: 0;
    font-size: 1.375rem;
    font-weight: 600;
    line-height: 1.6;
    color: var(--mf-text);
}
body.mf-app .mf-tool-hero__lede {
    color: var(--mf-text-tertiary, #737373);
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.7;
}
body.mf-app .mf-studio-hub {
    width: 100%;
    max-width: 76rem;
    min-height: auto;
    padding: 3.5rem 1rem;
}
body.mf-app .mf-studio-hub__hero { margin-bottom: 1.5rem; }
body.mf-app .mf-studio-hub__mark {
    background: var(--mf-surface-2);
    color: var(--mf-text);
    width: 3rem;
    height: 3rem;
}
body.mf-app .mf-studio-hub__title {
    color: var(--mf-text);
    font-size: clamp(2rem, 4.5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}
body.mf-app .mf-studio-hub__lede { color: var(--mf-text-secondary); }
body.mf-app .mf-studio-hub__chips { margin-bottom: 1.25rem; }
body.mf-app .mf-studio-chip { box-shadow: none; min-height: 2.75rem; }
body.mf-app .mf-studio-composer {
    max-width: 44rem;
    box-shadow: 0 4px 24px rgb(15 23 42 / 6%);
    border-color: rgb(15 23 42 / 8%);
}
body.mf-app .mf-studio-composer:focus-within {
    outline: none;
    box-shadow: 0 6px 28px rgb(15 23 42 / 8%);
}
body.mf-app button.mf-studio-composer__send { width: 2.5rem; height: 2.5rem; padding: 0; border-radius: 9999px; }
body.mf-app .mf-tool-catalog { width: 100%; margin-top: 3.5rem; text-align: start; }
.mf-tool-catalog__heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.mf-tool-catalog__heading h2 { margin: 0 0 0.4rem; font-size: 1.4rem; color: var(--mf-text); }
.mf-tool-catalog__heading p { margin: 0; font-size: 0.875rem; color: var(--mf-text-secondary); }
.mf-tool-catalog__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
body.mf-app a.mf-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    min-height: 17rem;
    overflow: hidden;
    isolation: isolate;
    padding: 1.75rem;
    border-radius: 2rem;
    background: radial-gradient(ellipse at 15% 0%, var(--product-glow), transparent 70%), var(--product-base);
    color: #fff !important;
    transition: transform 180ms ease;
}
.mf-product-card--speech { --product-base: #58309b; --product-glow: #ae77e5; }
.mf-product-card--voice { --product-base: #1743b1; --product-glow: #5c9cff; }
.mf-product-card--change { --product-base: #155d69; --product-glow: #42b3b9; }
.mf-product-card--noise { --product-base: #a4331d; --product-glow: #ff9060; }
.mf-product-card--vocal { --product-base: #373587; --product-glow: #8a86df; }
.mf-product-card--music { --product-base: #8c225e; --product-glow: #e978b7; }
.mf-product-card__art { display: flex; align-items: center; justify-content: center; height: 8rem; margin-bottom: 1rem; }
.mf-product-card__art svg { width: 6rem; height: 6rem; opacity: 0.85; transform: rotate(-8deg); }
.mf-product-card__content { display: flex; flex-direction: column; gap: 0.5rem; padding-inline-end: 1.5rem; }
.mf-product-card__title { font-size: 1.35rem; font-weight: 700; }
.mf-product-card__description { font-size: 0.8125rem; line-height: 1.8; }
.mf-product-card__arrow { position: absolute; inset-inline-end: 1.5rem; bottom: 1.6rem; font-size: 1.5rem; }
body.mf-app a.mf-product-card:focus-visible { outline: 3px solid var(--mf-text); outline-offset: 4px; }
body.mf-app :is(button, a, input, textarea, summary):focus-visible { outline-offset: 3px; }
@media (hover: hover) {
    body.mf-app a.mf-product-card:hover { transform: translateY(-3px); }
}
@media (max-width: 1100px) {
    .mf-tool-catalog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
    body.mf-app .mf-studio-hub { padding: 2rem 0 1.5rem; }
    body.mf-app .mf-studio-hub__title { font-size: 2rem; }
    body.mf-app .mf-studio-hub__lede { font-size: 0.875rem; }
    body.mf-app .mf-tool-catalog { margin-top: 2.5rem; }
    .mf-tool-catalog__heading { align-items: flex-start; flex-direction: column; }
    .mf-tool-catalog__grid { gap: 0.875rem; }
    body.mf-app a.mf-product-card { padding: 1.25rem; border-radius: 1.5rem; min-height: 15rem; }
    .mf-product-card__title { font-size: 1.125rem; }
    .mf-product-card__art { height: 6rem; }
    .mf-product-card__art svg { width: 4.5rem; height: 4.5rem; }
    body.mf-app .mf-btn { min-height: 2.75rem; }
    body.mf-app .mf-app-header .mf-btn--sm {
        min-height: var(--mf-btn-height-sm, 2.125rem);
        padding-block: 0.35rem;
        line-height: 1.25;
    }
    .mf-studio-pill {
        min-height: 2rem;
        padding: 0.18rem 0.62rem 0.18rem 0.28rem;
        font-size: 0.78rem;
    }
    .mf-studio-pill__dot {
        width: 1.35rem;
        height: 1.35rem;
    }
}
@media (max-width: 479px) {
    .mf-tool-catalog__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    body.mf-app *, body.mf-app *::before, body.mf-app *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== App chrome + studio hub ===== */
body.mf-app .mf-app-shell {
    min-height: calc(100dvh - 1.25rem);
    margin: 0.625rem;
    border-radius: 1.4rem;
    overflow: hidden;
    background: var(--mf-void, #f4f6f8);
    border: 1px solid rgb(15 23 42 / 6%);
    box-shadow: 0 16px 48px rgb(15 23 42 / 7%);
}
html[data-theme="dark"] body.mf-app {
    background: #1D1D1D;
}
html[data-theme="dark"] body.mf-app.mf-auth-gate {
    background: #1D1D1D;
}
html[data-theme="dark"] body.mf-app .mf-app-shell {
    background: linear-gradient(180deg, #1D1D1D 0%, #242424 100%);
    border-color: rgb(255 255 255 / 8%);
    box-shadow: none;
}
html[data-theme="dark"] body.mf-app .mf-app-sidebar {
    background: #18181b;
    color: #ebebeb;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}
html[data-theme="dark"] body.mf-app .mf-app-sidebar__dash,
html[data-theme="dark"] body.mf-app .mf-app-sidebar__nav a:not(.mf-app-sidebar__upgrade),
html[data-theme="dark"] body.mf-app .mf-app-sidebar__nav button.mf-app-sidebar__support {
    color: #ebebeb !important;
    border-radius: 8px;
}
html[data-theme="dark"] body.mf-app .mf-app-sidebar__dash:hover,
html[data-theme="dark"] body.mf-app .mf-app-sidebar__nav a:not(.mf-app-sidebar__upgrade):hover,
html[data-theme="dark"] body.mf-app .mf-app-sidebar__nav button.mf-app-sidebar__support:hover,
html[data-theme="dark"] body.mf-app .mf-app-sidebar__nav a[aria-current="page"],
html[data-theme="dark"] body.mf-app .mf-app-sidebar__dash[aria-current="page"] {
    background: #333333;
    color: #ebebeb !important;
    box-shadow: none;
}
html[data-theme="dark"] body.mf-app .mf-app-sidebar__nav a:not(.mf-app-sidebar__upgrade):hover .mf-app-sidebar__icon,
html[data-theme="dark"] body.mf-app .mf-app-sidebar__nav a[aria-current="page"] .mf-app-sidebar__icon,
html[data-theme="dark"] body.mf-app .mf-app-sidebar__nav button.mf-app-sidebar__support:hover .mf-app-sidebar__icon,
html[data-theme="dark"] body.mf-app .mf-app-sidebar__dash:hover .mf-app-sidebar__icon,
html[data-theme="dark"] body.mf-app .mf-app-sidebar__dash[aria-current="page"] .mf-app-sidebar__icon {
    filter: brightness(1.2);
}
@media (min-width: 1024px) {
    html:has(body.mf-app:not(.mf-auth-gate)),
    body.mf-app:not(.mf-auth-gate) {
        height: 100%;
        overflow: hidden;
    }
    body.mf-app .mf-app-shell {
        height: calc(100dvh - 1.25rem);
        min-height: 0;
    }
    body.mf-app .mf-app-sidebar {
        height: 100%;
        overflow: hidden;
        align-self: stretch;
        background: #eef0f3;
        border-left-color: #e4e6ea;
    }
    html[data-theme="dark"] body.mf-app .mf-app-sidebar {
        background: #18181b;
        border-left-color: rgba(255, 255, 255, 0.06);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    }
    body.mf-app .mf-app-sidebar__scroll {
        overflow-x: hidden;
        overflow-y: auto;
        scrollbar-width: thin;
    }
    body.mf-app .mf-app-workspace {
        height: 100%;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        background: transparent;
    }
    body.mf-sidebar-collapsed .mf-app-sidebar__icon {
        width: 2.1rem;
        height: 2.1rem;
        border-radius: 999px;
        box-shadow: none;
    }
    body.mf-sidebar-collapsed .mf-app-sidebar__nav a,
    body.mf-sidebar-collapsed .mf-app-sidebar__nav button.mf-app-sidebar__upgrade,
    body.mf-sidebar-collapsed .mf-app-sidebar__nav button.mf-app-sidebar__support,
    body.mf-sidebar-collapsed .mf-app-sidebar__dash {
        box-shadow: none;
    }
    body.mf-sidebar-collapsed .mf-app-sidebar__account { display: none; }
    body.mf-sidebar-collapsed .mf-app-sidebar__bottom { border-top-color: transparent; }
}
body.mf-app .mf-app-sidebar__nav a,
body.mf-app .mf-app-sidebar__nav button.mf-app-sidebar__upgrade,
body.mf-app .mf-app-sidebar__nav button.mf-app-sidebar__support,
body.mf-app .mf-app-sidebar__dash {
    transition: background 140ms ease, color 140ms ease;
}
html:not([data-theme="dark"]) body.mf-app .mf-app-sidebar__nav a:not(.mf-app-sidebar__upgrade):hover,
html:not([data-theme="dark"]) body.mf-app .mf-app-sidebar__nav button.mf-app-sidebar__support:hover,
html:not([data-theme="dark"]) body.mf-app .mf-app-sidebar__dash:hover {
    background: rgb(15 23 42 / 5%);
    color: #0a0a0a;
}
html:not([data-theme="dark"]) body.mf-app .mf-app-sidebar__nav a[aria-current="page"],
html:not([data-theme="dark"]) body.mf-app .mf-app-sidebar__dash[aria-current="page"] {
    background: rgb(15 23 42 / 8%);
    color: #0a0a0a;
}
body.mf-app .mf-app-sidebar__nav a:not(.mf-app-sidebar__upgrade):hover .mf-app-sidebar__icon,
body.mf-app .mf-app-sidebar__nav a[aria-current="page"] .mf-app-sidebar__icon,
body.mf-app .mf-app-sidebar__dash:hover .mf-app-sidebar__icon,
body.mf-app .mf-app-sidebar__dash[aria-current="page"] .mf-app-sidebar__icon {
    filter: none;
    box-shadow: none;
    background: var(--mf-well-bg, inherit);
    color: var(--mf-well-fg, inherit);
}
body.mf-app .mf-app-sidebar__icon {
    transition: background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}
.mf-app-sidebar__icon--studio { --mf-well-bg: var(--mf-well-studio-bg); --mf-well-fg: var(--mf-well-studio-fg); }
.mf-app-sidebar__icon--speech { --mf-well-bg: var(--mf-well-speech-bg); --mf-well-fg: var(--mf-well-speech-fg); }
.mf-app-sidebar__icon--voice { --mf-well-bg: var(--mf-well-voice-bg); --mf-well-fg: var(--mf-well-voice-fg); }
.mf-app-sidebar__icon--change { --mf-well-bg: var(--mf-well-change-bg); --mf-well-fg: var(--mf-well-change-fg); }
.mf-app-sidebar__icon--noise { --mf-well-bg: var(--mf-well-noise-bg); --mf-well-fg: var(--mf-well-noise-fg); }
.mf-app-sidebar__icon--vocal { --mf-well-bg: var(--mf-well-vocal-bg); --mf-well-fg: var(--mf-well-vocal-fg); }
.mf-app-sidebar__icon--music { --mf-well-bg: var(--mf-well-music-bg); --mf-well-fg: var(--mf-well-music-fg); }
.mf-app-sidebar__icon--plans { --mf-well-bg: var(--mf-well-plans-bg); --mf-well-fg: var(--mf-well-plans-fg); }
.mf-app-sidebar__icon--account { --mf-well-bg: var(--mf-well-account-bg); --mf-well-fg: var(--mf-well-account-fg); }
.mf-app-sidebar__icon--support { --mf-well-bg: #e8f1fb; --mf-well-fg: #2563eb; }
.mf-app-sidebar__icon--studio,
.mf-app-sidebar__icon--speech,
.mf-app-sidebar__icon--voice,
.mf-app-sidebar__icon--change,
.mf-app-sidebar__icon--noise,
.mf-app-sidebar__icon--vocal,
.mf-app-sidebar__icon--music,
.mf-app-sidebar__icon--plans,
.mf-app-sidebar__icon--account,
.mf-app-sidebar__icon--support {
    background: var(--mf-well-bg);
    color: var(--mf-well-fg);
}
body.mf-app .mf-app-sidebar__collapse,
body.mf-app .mf-app-sidebar__collapse .mf-app-sidebar__icon {
    background: transparent !important;
    box-shadow: none !important;
    color: #52525b;
}
html[data-theme="dark"] body.mf-app .mf-app-sidebar__collapse,
html[data-theme="dark"] body.mf-app .mf-app-sidebar__collapse .mf-app-sidebar__icon {
    background: transparent !important;
    color: #e4e4e7 !important;
}
body.mf-app .mf-app-sidebar__collapse:hover,
html[data-theme="dark"] body.mf-app .mf-app-sidebar__collapse:hover {
    background: transparent;
}
.mf-rail-user {
    display: none;
    align-items: center;
    justify-content: center;
    margin-top: 0.35rem;
    text-decoration: none;
}
.mf-rail-user__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    overflow: hidden;
    border-radius: 999px;
    background: #18181b;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
}
.mf-rail-user__avatar img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1024px) {
    body.mf-sidebar-collapsed .mf-rail-user { display: flex; }
}
body.mf-app .mf-app-header {
    background: transparent;
    border-bottom-color: transparent;
    backdrop-filter: none;
}
body.mf-app .mf-credit-pill {
    height: 2rem;
    padding: 0.125rem;
    gap: 0.15rem;
    border-color: #e4e6ea;
    background: #fff;
    box-shadow: none;
}
body.mf-app .mf-credit-pill__balance {
    gap: 0.3rem;
    padding-inline: 0.5rem 0.4rem;
    font-size: 0.8125rem;
    font-weight: 600;
}
body.mf-app .mf-credit-pill__icon {
    background: transparent;
    color: #737373;
}
body.mf-app .mf-credit-pill__cta {
    min-width: 3.15rem;
    padding: 0 0.75rem;
    background: #18181b;
    font-weight: 500;
    box-shadow: none;
}
body.mf-app .mf-credit-pill__cta:hover {
    background: #27272a;
    color: #fff !important;
}
html[data-theme="dark"] body.mf-app .mf-credit-pill {
    background: #18181b;
    border-color: #27272a;
}
html[data-theme="dark"] body.mf-app .mf-credit-pill__cta {
    background: #fafafa;
    color: #18181b !important;
}
html[data-theme="dark"] body.mf-app .mf-credit-pill__cta:hover {
    background: #e4e4e7;
    color: #18181b !important;
}
/* Studio shows the same compact rights + SemVer footer as the rest of the app. */
body.mf-app:has(.mf-studio-hub) .mf-footer {
    padding-top: 0.85rem;
    padding-bottom: 1rem;
}
body.mf-app:has(.mf-studio-hub) .mf-app-main {
    display: flex;
    flex-direction: column;
    padding: 0 1.25rem 0.85rem;
    background: transparent;
}
body.mf-app .mf-studio-hub {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    max-width: 62rem;
    min-height: 0;
    margin: 0 auto;
    padding: 0;
    text-align: center;
}
.mf-studio-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    width: 100%;
    padding: 1.25rem 0 1rem;
}
img.mf-studio-orb {
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 0.85rem;
    object-fit: contain;
    background: none;
    box-shadow: none;
    border-radius: 0.75rem;
    image-rendering: auto;
}
body.mf-app .mf-tool-hero__mark-row img.mf-studio-orb {
    margin-bottom: 0;
}
html[data-theme="dark"] img.mf-studio-orb {
    background: none;
    box-shadow: none;
}
.mf-studio-hello {
    margin: 0;
    color: var(--mf-text);
    font-size: 1.375rem;
    font-weight: 600;
    line-height: 1.6;
}
.mf-studio-sub {
    margin: 0;
    color: var(--mf-text-tertiary, #8a8a8a);
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.7;
}
.mf-studio-sub { margin-top: 0.2rem; }
.mf-studio-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
    width: min(100%, 52rem);
    margin-top: 1.15rem;
}
.mf-studio-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 2.2rem;
    padding: 0.22rem 0.7rem 0.22rem 0.32rem;
    border: 1px solid #e8e8ea;
    border-radius: 10px;
    background: #ffffff;
    color: #3f3f46 !important;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none !important;
    box-shadow: 0 1px 2px rgb(15 23 42 / 4%);
    transition: none;
    white-space: nowrap;
    flex: 0 0 auto;
}
/* No hover wash — icon must stay visible */
.mf-studio-pill:hover,
.mf-studio-pill:focus-visible {
    border-color: #e8e8ea;
    background: #ffffff;
    color: #3f3f46 !important;
}
@media (min-width: 1024px) {
    .mf-studio-pills {
        flex-wrap: nowrap;
        width: max-content;
        max-width: 100%;
        gap: 0.4rem;
    }
    .mf-studio-pill {
        min-height: 2.1rem;
        padding: 0.2rem 0.62rem 0.2rem 0.28rem;
        font-size: 0.78rem;
    }
    .mf-studio-pill__dot {
        width: 1.35rem;
        height: 1.35rem;
        border-radius: 8px;
    }
    .mf-studio-pill__dot svg {
        width: 12px;
        height: 12px;
    }
}
.mf-studio-pill__dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 10px;
    flex: 0 0 auto;
    opacity: 1 !important;
    filter: none !important;
    visibility: visible !important;
}
.mf-studio-pill:hover .mf-studio-pill__dot,
.mf-studio-pill:hover .mf-studio-pill__dot svg {
    opacity: 1 !important;
    filter: none !important;
    visibility: visible !important;
}
.mf-studio-pill--speech .mf-studio-pill__dot { background: #efe6f8; color: #7c3aed; }
.mf-studio-pill--voice .mf-studio-pill__dot { background: #e9eef3; color: #525b66; }
.mf-studio-pill--change .mf-studio-pill__dot { background: #e6f1ef; color: #0f766e; }
.mf-studio-pill--noise .mf-studio-pill__dot { background: #f3ebe3; color: #b45309; }
.mf-studio-pill--vocal .mf-studio-pill__dot { background: #ebecef; color: #4f46e5; }
.mf-studio-pill--music .mf-studio-pill__dot { background: #f3e8ed; color: #9d174d; }
.mf-studio-dock {
    width: min(100%, 44rem);
    margin: 0.4rem auto 0;
}
.mf-studio-dock__choices {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.4rem;
    width: 100%;
    margin: 0 0 0.55rem;
}
.mf-studio-dock__choices[hidden] {
    display: none !important;
}
.mf-studio-dock__options,
.mf-studio-dock__nav {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.mf-studio-dock__options {
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.mf-studio-dock__options::-webkit-scrollbar {
    display: none;
}
.mf-studio-dock__nav {
    flex: 0 0 auto;
}
.mf-studio-dock__options:empty {
    display: none;
}
body.mf-app .mf-studio-dock .mf-studio-composer {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    max-width: none;
    width: 100%;
    min-height: 3.5rem;
    padding: 0.4rem 0.95rem 0.4rem 0.4rem;
    border: 1px solid rgb(15 23 42 / 8%);
    border-radius: 999px;
    background: var(--mf-surface-0, #fff);
    box-shadow: 0 4px 24px rgb(15 23 42 / 6%);
}
body.mf-app .mf-studio-dock .mf-studio-composer:focus-within {
    outline: none;
    border-color: rgb(15 23 42 / 12%);
    box-shadow: 0 6px 28px rgb(15 23 42 / 8%);
}
body.mf-app .mf-studio-dock .mf-studio-composer :is(input, button):focus,
body.mf-app .mf-studio-dock .mf-studio-composer :is(input, button):focus-visible {
    outline: none;
    box-shadow: none;
}
body.mf-app .mf-studio-dock .mf-studio-composer__input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.55rem 0.15rem !important;
    font-size: 0.9375rem;
    font-weight: 400;
}
body.mf-app .mf-studio-dock button.mf-studio-composer__send {
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    min-height: 2.5rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    box-shadow: none;
}
html[data-theme="dark"] .mf-studio-pill {
    background: #2a2a2a;
    border-color: #3a3a3a;
    color: #d4d4d8 !important;
}
html[data-theme="dark"] .mf-studio-pill:hover,
html[data-theme="dark"] .mf-studio-pill:focus-visible {
    background: #2a2a2a;
    border-color: #3a3a3a;
    color: #d4d4d8 !important;
}
html[data-theme="dark"] .mf-studio-pill--speech .mf-studio-pill__dot { background: #32283c; color: #c4b5fd; }
html[data-theme="dark"] .mf-studio-pill--voice .mf-studio-pill__dot { background: #2a2a2e; color: #d4d4d8; }
html[data-theme="dark"] .mf-studio-pill--change .mf-studio-pill__dot { background: #24302e; color: #b7d6d4; }
html[data-theme="dark"] .mf-studio-pill--noise .mf-studio-pill__dot { background: #3a3224; color: #e4d0a8; }
html[data-theme="dark"] .mf-studio-pill--vocal .mf-studio-pill__dot { background: #2a2a30; color: #c9cbd8; }
html[data-theme="dark"] .mf-studio-pill--music .mf-studio-pill__dot { background: #3a2832; color: #e4c4d2; }
html[data-theme="dark"] body.mf-app .mf-studio-dock .mf-studio-composer {
    background: var(--mf-surface-0);
    border-color: var(--mf-border);
    color: var(--mf-text) !important;
}
html[data-theme="dark"] .mf-studio-sub {
    color: #a3a3a3;
}
html[data-theme="dark"] body.mf-app .mf-studio-dock .mf-studio-composer:focus-within {
    outline: none;
    border-color: rgb(255 255 255 / 14%);
    box-shadow: 0 6px 28px rgb(0 0 0 / 35%);
}
@media (max-width: 639px) {
    body.mf-app .mf-app-shell {
        margin: 0;
        border-radius: 0;
        min-height: 100dvh;
        height: auto;
        box-shadow: none;
        border: 0;
    }
    body.mf-app:has(.mf-studio-hub) .mf-app-main { padding-inline: 0.85rem; }
    .mf-studio-hello,
    body.mf-app .mf-tool-hero__title { font-size: 1.25rem; }
}

/* ===== Studio Assistant chat ===== */
.mf-studio-pills[hidden],
.mf-studio-assistant[hidden],
[data-mf-assistant-idle][hidden] {
    display: none !important;
}
body.mf-app button.mf-studio-pill,
body.mf-app button.mf-studio-assistant__chip,
body.mf-app button.mf-studio-assistant__action,
body.mf-app a.mf-studio-assistant__action {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    background: var(--mf-surface-0) !important;
    color: var(--mf-text) !important;
    border: 1px solid var(--mf-border-strong) !important;
    box-shadow: 0 1px 2px rgb(15 23 42 / 4%);
}
body.mf-app button.mf-studio-assistant__action--primary,
body.mf-app a.mf-studio-assistant__action--primary {
    background: var(--mf-accent) !important;
    color: var(--mf-surface-0) !important;
    border-color: var(--mf-accent) !important;
}
.mf-studio-assistant {
    width: min(100%, 40rem);
    margin: 0.5rem auto 0;
    text-align: initial;
    max-height: min(56vh, 32rem);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0.15rem 0.2rem 0.35rem;
    scrollbar-width: thin;
    scrollbar-color: #d4d4d8 transparent;
}
@media (max-width: 639px) {
    .mf-studio-assistant {
        max-height: min(42vh, 22rem);
        margin-top: 0.35rem;
    }
}
.mf-studio-assistant::-webkit-scrollbar {
    width: 6px;
}
.mf-studio-assistant::-webkit-scrollbar-track {
    background: transparent;
}
.mf-studio-assistant::-webkit-scrollbar-thumb {
    background: #d4d4d8;
    border-radius: 999px;
}
.mf-studio-assistant::-webkit-scrollbar-thumb:hover {
    background: #a3a3a3;
}
html[data-theme="dark"] .mf-studio-assistant {
    scrollbar-color: #525252 transparent;
}
html[data-theme="dark"] .mf-studio-assistant::-webkit-scrollbar-thumb {
    background: #525252;
}
html[data-theme="dark"] .mf-studio-assistant::-webkit-scrollbar-thumb:hover {
    background: #737373;
}
.mf-studio-chat {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: none;
    overflow: visible;
    padding: 0.15rem 0.1rem 0.35rem;
}
.mf-studio-chat__row {
    display: flex;
    align-items: flex-end;
    gap: 0.45rem;
}
.mf-studio-chat__row--user {
    justify-content: flex-start;
}
.mf-studio-chat__row--assistant {
    justify-content: flex-end;
}
.mf-studio-chat__bubble {
    max-width: min(85%, 24rem);
    margin: 0;
    padding: 0.7rem 0.9rem;
    border-radius: 16px;
    font-size: 0.875rem;
    line-height: 1.75;
    white-space: pre-wrap;
    word-break: break-word;
}
.mf-studio-chat__row--user .mf-studio-chat__bubble {
    background: #171717;
    color: #fff;
    border-bottom-right-radius: 6px;
}
.mf-studio-chat__row--assistant .mf-studio-chat__bubble {
    background: #fff;
    color: #171717;
    border: 1px solid #d4d4d8;
    box-shadow: 0 2px 10px rgb(15 23 42 / 7%);
    border-bottom-left-radius: 6px;
}
html[data-theme="dark"] .mf-studio-chat__row--assistant .mf-studio-chat__bubble {
    background: var(--mf-surface-0, #242424);
    color: var(--mf-text, #f3f4f6);
    border-color: var(--mf-border, #3e3e3e);
    box-shadow: none;
}
html[data-theme="dark"] .mf-studio-chat__row--user .mf-studio-chat__bubble {
    background: #ebebeb;
    color: #171717;
}
.mf-studio-chat__mark {
    flex: 0 0 auto;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #d4d4d8;
    box-shadow: 0 1px 4px rgb(15 23 42 / 5%);
    color: #e91752;
    font-size: 0.85rem;
    line-height: 1.6rem;
    text-align: center;
}
.mf-studio-assistant__chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 0.85rem;
}
.mf-studio-assistant__chip,
.mf-studio-assistant__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 2rem;
    padding: 0.28rem 0.8rem;
    border-radius: 999px;
    background: #fff;
    color: #171717;
    border: 1px solid #e4e4e7;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}
.mf-studio-assistant__chip:hover,
.mf-studio-assistant__chip:focus-visible,
.mf-studio-assistant__action:hover,
.mf-studio-assistant__action:focus-visible,
body.mf-app a.mf-studio-assistant__action:hover,
body.mf-app a.mf-studio-assistant__action:focus-visible {
    border-color: #d4d4d8;
    background: #fafafa !important;
    color: #171717 !important;
}
.mf-studio-assistant__action--primary:hover,
.mf-studio-assistant__action--primary:focus-visible,
body.mf-app a.mf-studio-assistant__action--primary:hover,
body.mf-app a.mf-studio-assistant__action--primary:focus-visible {
    background: #262626 !important;
    color: #fff !important;
}
/* ChatGPT-style: one-line start → grow → cap + scroll (no manual resize) */
body.mf-app .mf-studio-dock .mf-studio-composer__textarea {
    flex: 1 1 auto;
    min-width: 0;
    height: 1.5rem;
    min-height: 1.5rem;
    max-height: 9.5rem;
    resize: none;
    overflow-x: hidden;
    overflow-y: hidden;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0.55rem 0.15rem !important;
    margin: 0;
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--mf-text);
    line-height: 1.5;
    field-sizing: content;
}
body.mf-app .mf-studio-dock .mf-studio-composer:has(.mf-studio-composer__textarea:not([hidden])) {
    border-radius: 1.35rem;
    align-items: flex-end;
}
body.mf-app .mf-studio-dock .mf-studio-composer:has(.mf-studio-composer__textarea:not([hidden]).is-tall) {
    border-radius: 1.15rem;
}
#mf-assistant-voices .mf-voice-board {
    position: static;
    width: 100%;
    box-shadow: none;
    background: transparent;
}
#mf-assistant-voices .mf-speech-voice__scroll {
    max-height: calc(4 * 3.25rem + 3 * 0.1rem);
}
html[data-theme="dark"] #mf-assistant-voices .mf-voice-board {
    background: transparent;
    box-shadow: none;
}
html[data-theme="dark"] .mf-studio-chat__mark {
    background: #242424;
    border-color: #3e3e3e;
}
html[data-theme="dark"] body.mf-app button.mf-studio-pill,
html[data-theme="dark"] body.mf-app button.mf-studio-assistant__chip,
html[data-theme="dark"] body.mf-app button.mf-studio-assistant__action,
html[data-theme="dark"] body.mf-app a.mf-studio-assistant__action {
    background: #2a2a2a !important;
    color: #ebebeb !important;
    border-color: #3e3e3e !important;
}
html[data-theme="dark"] body.mf-app button.mf-studio-assistant__action:hover,
html[data-theme="dark"] body.mf-app button.mf-studio-assistant__action:focus-visible,
html[data-theme="dark"] body.mf-app a.mf-studio-assistant__action:hover,
html[data-theme="dark"] body.mf-app a.mf-studio-assistant__action:focus-visible,
html[data-theme="dark"] body.mf-app button.mf-studio-assistant__chip:hover,
html[data-theme="dark"] body.mf-app button.mf-studio-assistant__chip:focus-visible {
    background: #353535 !important;
    color: #f4f4f5 !important;
    border-color: #525252 !important;
}
html[data-theme="dark"] body.mf-app button.mf-studio-assistant__action--primary,
html[data-theme="dark"] body.mf-app a.mf-studio-assistant__action--primary {
    background: #f4f4f5 !important;
    color: #171717 !important;
    border-color: #f4f4f5 !important;
}
html[data-theme="dark"] body.mf-app button.mf-studio-assistant__action--primary:hover,
html[data-theme="dark"] body.mf-app button.mf-studio-assistant__action--primary:focus-visible,
html[data-theme="dark"] body.mf-app a.mf-studio-assistant__action--primary:hover,
html[data-theme="dark"] body.mf-app a.mf-studio-assistant__action--primary:focus-visible {
    background: #fff !important;
    color: #0a0a0a !important;
}

/* ===== Voice-change panel spacing ===== */
body.mf-app form.panel.mf-tool-panel.mf-change {
    gap: 0;
    padding: 0.75rem 1.1rem 1.05rem;
    overflow: visible;
    border-radius: 1.25rem;
}
body.mf-app form.mf-change > .result:empty {
    display: none;
}
body.mf-app .mf-change__fieldset,
body.mf-app .mf-change__voice-wrap,
body.mf-app .mf-change__voice {
    overflow: visible;
}
body.mf-app .mf-change__voice.is-open {
    z-index: 220;
}
@media (max-width: 639px) {
    body.mf-app form.panel.mf-tool-panel.mf-change {
        padding: 0.65rem 0.9rem 0.95rem;
        border-radius: 1.15rem;
    }
}

/* ===== Text-to-speech composer ===== */
body.mf-app .mf-tool-workspace:has(.mf-speech) {
    max-width: 40rem;
}
body.mf-app form.panel.mf-tool-panel.mf-speech {
    padding: 1.1rem 1.1rem 1.05rem;
    overflow: visible;
    border-radius: 1.25rem;
}
body.mf-app .mf-speech-composer,
body.mf-app .mf-speech-composer__bar,
body.mf-app .mf-speech-composer__chips {
    overflow: visible;
}
body.mf-app .mf-speech-block:focus-within,
body.mf-app .mf-speech-block:has(.is-open),
body.mf-app .mf-speech-block:has([data-mf-speech-voice-menu]:not([hidden])) {
    z-index: 220;
}
html:not([data-theme="dark"]) body.mf-app .mf-speech-composer {
    background: #f4f5f7;
    border: 1px solid rgb(15 23 42 / 6%);
    box-shadow: inset 0 1px 2px rgb(15 23 42 / 4%);
}
html:not([data-theme="dark"]) body.mf-app .mf-speech-voice__trigger {
    background: #fff;
    border-color: #e8e9ec;
}
body.mf-app .mf-speech .mf-tool-actions {
    margin-top: 0.85rem;
    align-items: flex-start;
    flex-wrap: nowrap;
}
body.mf-app .mf-speech .mf-tool-produce,
body.mf-app .mf-speech .mf-tool-clear {
    min-height: 2.75rem;
}
body.mf-app .mf-speech-voice__play {
    border-radius: var(--mf-btn-radius, 10px);
}
html[data-theme="dark"] body.mf-app .mf-speech-composer {
    background: #2a2a2a;
    border-color: #3e3e3e;
}
html[data-theme="dark"] body.mf-app .mf-speech-composer__text {
    color: var(--mf-text);
}
html[data-theme="dark"] body.mf-app .mf-speech-composer__count {
    color: var(--mf-text-tertiary);
}
html[data-theme="dark"] body.mf-app .mf-speech-voice__trigger,
html[data-theme="dark"] body.mf-app .mf-speech-voice__trigger--rich {
    background: #343434 !important;
    border: 1px solid #4e4e52 !important;
    color: var(--mf-text);
    box-shadow: none;
}
html[data-theme="dark"] body.mf-app .mf-speech-voice__trigger:hover,
html[data-theme="dark"] body.mf-app .mf-speech-voice.is-open .mf-speech-voice__trigger {
    background: #3e3e3e !important;
    border-color: #5c5c60 !important;
}
html[data-theme="dark"] body.mf-app .mf-change__voice-trigger {
    background: #343434 !important;
    border: 1px solid #4e4e52 !important;
}
html[data-theme="dark"] body.mf-app .mf-change__voice-trigger:hover,
html[data-theme="dark"] body.mf-app .mf-change__voice.is-open .mf-change__voice-trigger {
    background: #3e3e3e !important;
    border-color: #5c5c60 !important;
}
html[data-theme="dark"] body.mf-app .mf-speech-voice__trigger-meta,
html[data-theme="dark"] body.mf-app .mf-change__voice-meta,
html[data-theme="dark"] body.mf-app .mf-speech-voice__desc {
    background-color: #3e3e3e !important;
    color: #d4d4d8;
    padding-inline: 0.45rem;
}
html[data-theme="dark"] body.mf-app .mf-speech-voice__item:hover,
html[data-theme="dark"] body.mf-app .mf-speech-voice__item[aria-selected="true"]:hover {
    background: #3e3e3e !important;
}
html[data-theme="dark"] body.mf-app .mf-tool-clear {
    border-color: var(--mf-border-strong);
    background: var(--mf-surface-2);
    color: var(--mf-text-secondary);
    box-shadow: none;
}
html[data-theme="dark"] body.mf-app .mf-tool-clear:hover:not(:disabled) {
    background: var(--mf-voice-soft, #3e3e3e);
    border-color: var(--mf-chrome-border, #3e3e3e);
    color: var(--mf-text);
}
html[data-theme="dark"] body.mf-app .mf-speech__add {
    border-color: rgba(255, 255, 255, 0.22);
    color: var(--mf-text-secondary);
    background: transparent;
}
html[data-theme="dark"] body.mf-app .mf-speech__add:hover {
    border-color: rgba(255, 255, 255, 0.38);
    color: var(--mf-text);
    background: var(--mf-surface-2);
}
html[data-theme="dark"] body.mf-app .mf-toggle__label {
    color: var(--mf-text-secondary);
}
html[data-theme="dark"] body.mf-app .mf-music-card {
    background: #303030;
    border-color: #3e3e3e;
    box-shadow: none;
    overflow: hidden;
}
html[data-theme="dark"] body.mf-app .mf-music-card__text {
    color: var(--mf-text) !important;
    background: transparent !important;
    border-radius: 0 !important;
    margin: 0;
    padding: 0.35rem 1rem 0.2rem !important;
    box-shadow: none !important;
}
html[data-theme="dark"] body.mf-app .mf-music-card__count {
    color: var(--mf-text-tertiary);
}
html[data-theme="dark"] body.mf-app .mf-record__stop,
html[data-theme="dark"] body.mf-app .mf-intake__stop {
    background: #e91752;
    color: #fff;
}
html[data-theme="dark"] body.mf-app .mf-record__stop:hover,
html[data-theme="dark"] body.mf-app .mf-intake__stop:hover {
    background: #d01548;
}
html[data-theme="dark"] body.mf-app .mf-intake__record-btn:hover {
    background: #e91752 !important;
    color: #fff !important;
}
@media (max-width: 1023px) {
    html[data-theme="dark"] body.mf-app .mf-app-sidebar {
        background: #18181b !important;
        border-color: rgba(255, 255, 255, 0.06);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.35);
        color: #ebebeb;
    }
    body.mf-app .mf-app-nav-backdrop:not([hidden]) {
        background: rgba(0, 0, 0, 0.45);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
    html[data-theme="dark"] body.mf-app .mf-app-nav-backdrop:not([hidden]) {
        background: rgba(0, 0, 0, 0.62);
    }
}
html[data-theme="dark"] body.mf-app .mf-tool-produce__hint {
    color: var(--mf-text-tertiary);
}
html[data-theme="dark"] body.mf-app form.panel.mf-tool-panel {
    background: var(--mf-surface-0);
    border-color: var(--mf-border);
    box-shadow: none;
    color: var(--mf-text);
}
@media (max-width: 639px) {
    body.mf-app form.panel.mf-tool-panel.mf-speech {
        padding: 0.9rem;
        border-radius: 1.15rem;
    }
    body.mf-app .mf-speech-composer__text { min-height: 7.5rem; }
}
