/*
 * MusicMastering / Elana: adaptation of IWriteStudio's canonical Elana theme.
 * The original Webflow template is vendored unchanged in /elana-template/.
 * It is loaded in a low-priority layer to preserve existing Bootstrap components,
 * audio controls and event hooks. This unlayered adapter owns the visible skin.
 */
@import url("../elana-template/css/normalize.css") layer(mm-elana-original);
@import url("../elana-template/css/webflow.css") layer(mm-elana-original);
@import url("../elana-template/css/iwritestudio-elana.webflow.css") layer(mm-elana-original);

:root[data-mm-ui-template="elana-template"] {
    color-scheme: dark;
    --dark: #060f23;
    --white: #fff;
    --gold: #ffb966;
    --iws-app-ink: #060f23;
    --iws-app-ink-deep: #020813;
    --iws-app-panel: rgba(7, 19, 41, .82);
    --iws-app-panel-soft: rgba(10, 26, 53, .68);
    --iws-app-paper: #f7f1e8;
    --iws-app-muted: #bdb4a8;
    --iws-app-gold: #ffb966;
    --iws-app-gold-soft: #e8c58e;
    --iws-app-line: rgba(255, 255, 255, .52);
    --iws-app-line-soft: rgba(255, 185, 102, .27);
    --iw-panel-border: rgba(255, 255, 255, .08);
    --iw-panel-border-strong: rgba(255, 255, 255, .16);
    --iw-panel-bg: linear-gradient(145deg, rgba(38, 38, 38, .44), rgba(10, 10, 10, .30));
    --iw-panel-shadow: 0 1.35rem 3.25rem rgba(0, 0, 0, .30), inset 0 1px 0 rgba(255, 255, 255, .07);

    --mm-bg: #060f23;
    --mm-bg-elevated: #09162e;
    --mm-surface: #0b1a31;
    --mm-surface-2: #10223e;
    --mm-surface-3: #172d4a;
    --mm-surface-4: #213757;
    --mm-border: rgba(255, 185, 102, .27);
    --mm-border-muted: rgba(255, 255, 255, .11);
    --mm-border-strong: rgba(255, 185, 102, .52);
    --mm-text: #f7f1e8;
    --mm-text-soft: #e6ded1;
    --mm-muted: #bdb4a8;
    --mm-muted-2: #aaa297;
    --mm-accent: #ffb966;
    --mm-accent-2: #e8c58e;
    --mm-accent-soft: rgba(255, 185, 102, .12);
    --mm-accent-border: rgba(255, 185, 102, .48);
    --mm-info: #e8c58e;
    --mm-warning: #ffb966;
    --mm-font-ui: Lora, Georgia, serif;
    --mm-font-display: "Cinzel Decorative", Georgia, serif;
    --mm-heading-weight: 400;
    --mm-heading-tracking: 0;
    --mm-label-tracking: .085em;
    --mm-radius-sm: 3px;
    --mm-radius-md: 8px;
    --mm-radius-lg: 18px;
    --mm-panel-background: rgba(7, 19, 41, .84);
    --mm-panel-elevated-background: rgba(10, 26, 53, .85);
    --mm-header-background: rgba(6, 15, 35, .96);
    --mm-control-background: rgba(2, 9, 22, .72);
    --mm-row-hover: rgba(255, 185, 102, .09);
    --mm-grid-line: rgba(255, 185, 102, .12);
    --bs-body-bg: #060f23;
    --bs-body-color: #f7f1e8;
    --bs-secondary-color: #bdb4a8;
    --bs-border-color: rgba(255, 185, 102, .27);
    --bs-primary: #ffb966;
    --bs-primary-rgb: 255, 185, 102;
    --bs-link-color: #e8c58e;
    --bs-link-hover-color: #ffcf96;
}
html[data-mm-ui-template="elana-template"] {
    background: #060f23;
    scroll-padding-top: 6rem;
}
html[data-mm-ui-template="elana-template"] body.mm-body {
    --mm-reserved-bg: #07152e;
    --mm-reserved-bg-deep: #020813;
    --mm-reserved-sidebar: #07152e;
    --mm-reserved-sidebar-2: #0c1d38;
    --mm-reserved-panel: rgba(7, 19, 41, .88);
    --mm-reserved-panel-2: rgba(10, 26, 53, .86);
    --mm-reserved-panel-3: #162d4d;
    --mm-reserved-border: rgba(255, 185, 102, .27);
    --mm-reserved-border-soft: rgba(255, 185, 102, .16);
    --mm-reserved-text: #f7f1e8;
    --mm-reserved-muted: #bdb4a8;
    --mm-reserved-accent: #ffb966;
    --mm-reserved-accent-2: #e8c58e;
    --mm-reserved-accent-soft: rgba(255, 185, 102, .12);
    --mm-reserved-radius: 18px;
    min-height: 100vh;
    background:
        radial-gradient(circle at 14% 4%, rgba(255, 185, 102, .075), transparent 28rem),
        radial-gradient(circle at 88% 19%, rgba(76, 111, 164, .08), transparent 34rem),
        linear-gradient(180deg, #07152e 0%, #050e20 48%, #020813 100%) !important;
    color: #f7f1e8;
    font-family: Lora, Georgia, serif;
    line-height: 1.55;
}
html[data-mm-ui-template="elana-template"] body.mm-body::selection,
html[data-mm-ui-template="elana-template"] body.mm-body ::selection {
    background: rgba(255, 185, 102, .34);
    color: #fff;
}

/* The frame and four rounded cutouts use the same Elana proportions. */
html[data-mm-ui-template="elana-template"] .mm-elana-page-frame {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    width: calc(100% - 2.25rem);
    max-width: calc(100vw - 2.25rem);
    min-width: 0;
    min-height: calc(100vh - 2.25rem);
    min-height: calc(100dvh - 2.25rem);
    margin: 1.125rem auto;
    border: .06rem solid rgba(255, 255, 255, .62);
    background: rgba(6, 15, 35, .08);
}
html[data-mm-ui-template="elana-template"] .mm-elana-frame-corners {
    position: absolute;
    inset: 0;
    z-index: 20;
    pointer-events: none;
}
html[data-mm-ui-template="elana-template"] .mm-elana-corner {
    position: absolute;
    width: 3.75rem;
    height: 3.75rem;
    background: #060f23;
    border: .06rem solid #fff;
}
html[data-mm-ui-template="elana-template"] .mm-elana-corner--tl {
    inset: -1px auto auto -1px;
    border-top: 0;
    border-left: 0;
    border-bottom-right-radius: 100rem;
}
html[data-mm-ui-template="elana-template"] .mm-elana-corner--tr {
    inset: -1px -1px auto auto;
    border-top: 0;
    border-right: 0;
    border-bottom-left-radius: 100rem;
}
html[data-mm-ui-template="elana-template"] .mm-elana-corner--br {
    inset: auto -1px -1px auto;
    border-right: 0;
    border-bottom: 0;
    border-top-left-radius: 100rem;
}
html[data-mm-ui-template="elana-template"] .mm-elana-corner--bl {
    inset: auto auto -1px -1px;
    border-bottom: 0;
    border-left: 0;
    border-top-right-radius: 100rem;
}
html[data-mm-ui-template="elana-template"] .mm-elana-page-frame::after {
    content: "";
    /* The four frame corners already provide the original Elana ornament.
       A fifth floating star collided with account and menu controls. */
    display: none;
    position: absolute;
    top: 6.75rem;
    right: 1.15rem;
    width: 3.5rem;
    height: 3.5rem;
    background: url("../elana-template/images/stars_group.svg") center / contain no-repeat;
    opacity: .53;
    pointer-events: none;
    z-index: 2;
}
html[data-mm-ui-template="elana-template"] .mm-elana-page-frame > :not(.mm-elana-frame-corners) {
    min-width: 0;
}
/* The header must win the stacking context over every content section.
   The former generic z-index:1 flattened the sticky header beneath the Home. */
html[data-mm-ui-template="elana-template"] .mm-elana-page-frame > .mm-public-header {
    position: sticky;
    top: 0;
    z-index: 1050;
    flex: 0 0 auto;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}
html[data-mm-ui-template="elana-template"] .mm-elana-page-frame > :is(.mm-public-content, .mm-app-main) {
    position: relative;
    z-index: 1;
    min-width: 0;
    width: 100%;
}

/* Canonical typography from Elana and IWriteStudio. */
html[data-mm-ui-template="elana-template"] body.mm-body :is(h1, h2, h3, h4, h5, h6, .mm-page-header__title) {
    color: #e8c58e;
    font-family: "Cinzel Decorative", Georgia, serif !important;
    font-weight: 400 !important;
    letter-spacing: 0;
    line-height: 1.25;
    text-wrap: balance;
}
html[data-mm-ui-template="elana-template"] body.mm-body h1 { font-size: clamp(1.8rem, 2.4vw, 2.65rem); }
html[data-mm-ui-template="elana-template"] body.mm-body h2 { font-size: clamp(1.35rem, 2vw, 1.9rem); }
html[data-mm-ui-template="elana-template"] body.mm-body h3 { font-size: clamp(1.15rem, 1.4vw, 1.45rem); }
html[data-mm-ui-template="elana-template"] body.mm-body :is(p, .lead, .text-muted) {
    font-family: Lora, Georgia, serif;
}
html[data-mm-ui-template="elana-template"] body.mm-body :is(a, .link-primary) {
    --bs-link-color-rgb: 232, 197, 142;
}
html[data-mm-ui-template="elana-template"] body.mm-body a:not(.btn):not(.nav-link):not(.mm-home-action) {
    color: var(--mm-accent-2);
}
html[data-mm-ui-template="elana-template"] body.mm-body a:not(.btn):not(.nav-link):not(.mm-home-action):hover {
    color: #ffcf96;
}
html[data-mm-ui-template="elana-template"] body.mm-body :is(.text-muted, .form-text, .text-secondary, .mm-muted) {
    color: #bdb4a8 !important;
}
html[data-mm-ui-template="elana-template"] body.mm-body :is(.text-primary, .mm-accent) {
    color: #e8c58e !important;
}
html[data-mm-ui-template="elana-template"] body.mm-body :is(.text-danger, .text-success, .text-warning) {
    font-family: inherit;
}
html[data-mm-ui-template="elana-template"] body.mm-body code,
html[data-mm-ui-template="elana-template"] body.mm-body pre {
    color: #f1cf99;
}

/* Header keeps all existing nav, sign-in and notification partials. */
html[data-mm-ui-template="elana-template"] .mm-public-header {
    width: 100%;
    min-width: 0;
    top: 0;
    background: rgba(6, 15, 35, .96);
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .15);
}
html[data-mm-ui-template="elana-template"] .mm-public-header .mm-public-header__navbar {
    min-height: 5.35rem;
    height: auto;
    padding: .45rem 0;
    background: linear-gradient(180deg, rgba(8, 21, 44, .96), rgba(6, 15, 35, .98));
    border-bottom: .06rem solid rgba(255, 255, 255, .52) !important;
}
html[data-mm-ui-template="elana-template"] .mm-public-header .mm-public-header__container {
    width: 100%;
    max-width: 100%;
    min-height: 4.5rem;
    padding-inline: clamp(1.25rem, 2.5vw, 2.5rem);
}
html[data-mm-ui-template="elana-template"] .mm-public-header .mm-public-header__navigation {
    gap: .55rem;
}
html[data-mm-ui-template="elana-template"] .mm-public-header .mm-public-header__navigation > .navbar-nav + .navbar-nav {
    border-left: 1px solid rgba(255, 185, 102, .25);
    padding-left: .6rem;
}
html[data-mm-ui-template="elana-template"] .mm-public-header .nav-link {
    border-radius: 0;
    background: transparent;
    color: #f7f1e8;
    font-family: "Cinzel Decorative", Georgia, serif;
    font-size: clamp(.69rem, .84vw, .88rem);
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: .015em;
}
html[data-mm-ui-template="elana-template"] .mm-public-header .nav-link:hover,
html[data-mm-ui-template="elana-template"] .mm-public-header .nav-link:focus-visible,
html[data-mm-ui-template="elana-template"] .mm-public-header .nav-link.active {
    color: #ffb966 !important;
    background: rgba(255, 185, 102, .08);
}
html[data-mm-ui-template="elana-template"] .mm-public-header .nav-link.active::after {
    bottom: .03rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ffb966, transparent);
    box-shadow: 0 0 9px rgba(255, 185, 102, .4);
}
html[data-mm-ui-template="elana-template"] .mm-public-header .nav-link .mm-header-nav-icon,
html[data-mm-ui-template="elana-template"] .mm-public-header .mm-mastering-bell {
    color: #e8c58e;
}
html[data-mm-ui-template="elana-template"] .mm-public-header .mm-mastering-bell,
html[data-mm-ui-template="elana-template"] .mm-public-header .mm-user-menu-trigger {
    border-color: rgba(255, 185, 102, .3);
    background: rgba(7, 19, 41, .76);
}
html[data-mm-ui-template="elana-template"] .mm-public-header .mm-user-menu .dropdown-menu,
html[data-mm-ui-template="elana-template"] .mm-public-header .mm-public-header__resources-menu,
html[data-mm-ui-template="elana-template"] body.mm-body .dropdown-menu {
    border: 1px solid rgba(255, 185, 102, .34);
    background: linear-gradient(145deg, rgba(9, 24, 50, .98), rgba(3, 11, 26, .99));
    color: #f7f1e8;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .36);
}
html[data-mm-ui-template="elana-template"] body.mm-body .dropdown-item {
    color: #f7f1e8;
    font-family: Lora, Georgia, serif;
}
html[data-mm-ui-template="elana-template"] body.mm-body .dropdown-item:hover,
html[data-mm-ui-template="elana-template"] body.mm-body .dropdown-item.active {
    background: rgba(255, 185, 102, .12);
    color: #ffb966;
}
html[data-mm-ui-template="elana-template"] .mm-public-header .mm-navbar-toggler {
    border-color: rgba(255, 185, 102, .55);
}
html[data-mm-ui-template="elana-template"] .mm-public-header .mm-navbar-toggler:focus-visible,
html[data-mm-ui-template="elana-template"] body.mm-body :focus-visible {
    outline-color: #ffb966;
}

/* Elana satin surfaces, retaining specialized editor/mixer geometry. */
html[data-mm-ui-template="elana-template"] body.mm-body :is(
    .card, .mm-card, .mm-page-header, .mm-settings-panel,
    .mm-home-demo, .mm-home-trust article, .mm-home-workflow__steps article,
    .mm-home-decision-card, .mm-home-action, .mm-home-section,
    .mm-home-verify, .mm-home-memory__visual,
    .modal-content, .offcanvas, .accordion-item
) {
    border-color: var(--iw-panel-border-strong) !important;
    border-radius: 18px;
    background: var(--iw-panel-bg), rgba(7, 19, 41, .88);
    box-shadow: var(--iw-panel-shadow);
    backdrop-filter: blur(18px) saturate(118%);
    -webkit-backdrop-filter: blur(18px) saturate(118%);
}
html[data-mm-ui-template="elana-template"] body.mm-body :is(
    .card:hover, .mm-card:hover, .mm-home-trust article:hover,
    .mm-home-workflow__steps article:hover, .mm-home-action:hover
) {
    border-color: rgba(255, 185, 102, .48) !important;
}
html[data-mm-ui-template="elana-template"] body.mm-body :is(
    .card-header, .card-footer, .modal-header, .modal-footer,
    .accordion-header, .mm-settings-panel-head
) {
    border-color: rgba(255, 185, 102, .19);
    background: rgba(3, 11, 26, .4);
}
html[data-mm-ui-template="elana-template"] body.mm-body :is(
    .card-title, .mm-page-header__title, .modal-title
) {
    color: #e8c58e;
    font-family: "Cinzel Decorative", Georgia, serif;
    font-weight: 400;
}
html[data-mm-ui-template="elana-template"] body.mm-body :is(
    .table, .list-group-item, .accordion-body, .modal-body
) {
    --bs-table-bg: transparent;
    --bs-table-color: #f7f1e8;
    --bs-table-border-color: rgba(255, 185, 102, .18);
    color: #f7f1e8;
}
html[data-mm-ui-template="elana-template"] body.mm-body :is(.table, .table-responsive) {
    border-color: rgba(255, 185, 102, .22);
}
html[data-mm-ui-template="elana-template"] body.mm-body :is(.table thead th, .table thead td) {
    color: #e8c58e;
    font-family: "Cinzel Decorative", Georgia, serif;
    font-weight: 400;
}
html[data-mm-ui-template="elana-template"] body.mm-body .list-group-item {
    border-color: rgba(255, 185, 102, .19);
    background: rgba(3, 11, 26, .52);
}
html[data-mm-ui-template="elana-template"] body.mm-body .list-group-item.active {
    border-color: #ffb966;
    background: rgba(255, 185, 102, .2);
}

/* The exact Elana gold/outline-gold interaction language. */
html[data-mm-ui-template="elana-template"] body.mm-body :is(
    .btn-primary, .mm-btn-primary, .mm-sidebar-primary,
    .mm-home-action--primary, .page-link.active
) {
    --bs-btn-color: #060f23;
    --bs-btn-bg: #ffb966;
    --bs-btn-border-color: #ffb966;
    --bs-btn-hover-bg: #e8c58e;
    --bs-btn-hover-border-color: #e8c58e;
    --bs-btn-hover-color: #060f23;
    color: #060f23 !important;
    border-color: #ffb966 !important;
    border-radius: 100rem;
    background: #ffb966 !important;
    font-family: "Cinzel Decorative", Georgia, serif;
    font-weight: 400;
}
html[data-mm-ui-template="elana-template"] body.mm-body :is(.btn-primary, .mm-btn-primary, .mm-home-action--primary):is(:hover, :focus-visible) {
    color: #060f23 !important;
    border-color: #e8c58e !important;
    background: #e8c58e !important;
}
html[data-mm-ui-template="elana-template"] body.mm-body :is(.btn-outline-primary, .btn-outline-light, .btn-outline-secondary) {
    --bs-btn-color: #e8c58e;
    --bs-btn-border-color: rgba(255, 185, 102, .55);
    --bs-btn-hover-bg: rgba(255, 185, 102, .15);
    --bs-btn-hover-color: #fff;
    color: #e8c58e;
    border-color: rgba(255, 185, 102, .55);
    border-radius: 100rem;
    background: rgba(3, 11, 26, .4);
}
html[data-mm-ui-template="elana-template"] body.mm-body :is(.btn-outline-primary, .btn-outline-light, .btn-outline-secondary):hover {
    color: #fff;
    border-color: #ffb966;
    background: rgba(255, 185, 102, .15);
}
html[data-mm-ui-template="elana-template"] body.mm-body :is(
    .btn, button:not(.navbar-toggler):not([class*="mixer"]):not([class*="waveform"]),
    .form-control, .form-select
) {
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
html[data-mm-ui-template="elana-template"] body.mm-body :is(.form-control, .form-select, textarea.form-control) {
    border: 1px solid rgba(255, 185, 102, .34);
    border-radius: 3px;
    color: #f7f1e8;
    background: rgba(2, 9, 22, .72);
    font-family: Lora, Georgia, serif;
}
html[data-mm-ui-template="elana-template"] body.mm-body :is(.form-control, .form-select):focus {
    color: #fff;
    border-color: #ffb966;
    background: rgba(2, 9, 22, .85);
    box-shadow: 0 0 0 .2rem rgba(255, 185, 102, .13);
}
html[data-mm-ui-template="elana-template"] body.mm-body .form-control::placeholder {
    color: rgba(226, 216, 204, .57);
}
html[data-mm-ui-template="elana-template"] body.mm-body :is(.form-check-input:checked, .page-item.active .page-link) {
    border-color: #ffb966;
    background-color: #ffb966;
}
html[data-mm-ui-template="elana-template"] body.mm-body .form-check-input:focus {
    border-color: #ffb966;
    box-shadow: 0 0 0 .2rem rgba(255, 185, 102, .14);
}

/* Public landing: same typography and satin boxes, distinct music content. */
html[data-mm-ui-template="elana-template"] body.mm-body .mm-public-content,
html[data-mm-ui-template="elana-template"] body.mm-body .mm-main-content {
    background: transparent;
}
html[data-mm-ui-template="elana-template"] body.mm-body .mm-public-content {
    width: 100%;
    max-width: 90rem;
    padding: clamp(1.25rem, 2.5vw, 2.5rem);
}
html[data-mm-ui-template="elana-template"] body.mm-body .mm-app-main {
    flex: 1 0 auto;
    background: transparent;
}
html[data-mm-ui-template="elana-template"] body.mm-body .mm-page-host {
    max-width: 100%;
}
html[data-mm-ui-template="elana-template"] body.mm-body .mm-home-mastering {
    background: transparent;
    color: #f7f1e8;
}
html[data-mm-ui-template="elana-template"] body.mm-body .mm-home-mastering::before {
    background: radial-gradient(circle at 15% 8%, rgba(255, 185, 102, .085), transparent 38%), radial-gradient(circle at 95% 15%, rgba(76, 111, 164, .14), transparent 37%);
}
html[data-mm-ui-template="elana-template"] body.mm-body .mm-home-kicker,
html[data-mm-ui-template="elana-template"] body.mm-body .mm-home-step-number {
    color: #ffb966 !important;
    font-family: "Cinzel Decorative", Georgia, serif;
    font-weight: 400;
    letter-spacing: .12em;
}
html[data-mm-ui-template="elana-template"] body.mm-body .mm-home-hero h1 {
    color: #f7f1e8 !important;
    font-size: clamp(2.5rem, 4vw, 3.75rem) !important;
    font-family: "Cinzel Decorative", Georgia, serif !important;
    font-weight: 400 !important;
}
html[data-mm-ui-template="elana-template"] body.mm-body .mm-home-hero h1 span {
    color: #ffb966 !important;
    background: none !important;
    -webkit-text-fill-color: #ffb966 !important;
}
html[data-mm-ui-template="elana-template"] body.mm-body .mm-home-hero__lead,
html[data-mm-ui-template="elana-template"] body.mm-body .mm-home-section__header > p,
html[data-mm-ui-template="elana-template"] body.mm-body .mm-home-tool-grid p {
    color: #bdb4a8;
    font-family: Lora, Georgia, serif;
}
html[data-mm-ui-template="elana-template"] body.mm-body .mm-home-action:not(.mm-home-action--primary) {
    border: 1px solid rgba(255, 185, 102, .45);
    color: #e8c58e;
    background: rgba(3, 11, 26, .5);
}
html[data-mm-ui-template="elana-template"] body.mm-body .mm-home-action:not(.mm-home-action--primary):hover {
    color: #fff;
    background: rgba(255, 185, 102, .12);
}
html[data-mm-ui-template="elana-template"] body.mm-body .mm-home-action--primary :is(strong, small) {
    color: #060f23;
}
html[data-mm-ui-template="elana-template"] body.mm-body .mm-home-demo__topbar,
html[data-mm-ui-template="elana-template"] body.mm-body .mm-home-demo__footer {
    border-color: rgba(255, 185, 102, .22);
    background: rgba(3, 11, 26, .38);
}
html[data-mm-ui-template="elana-template"] body.mm-body .mm-home-demo__status,
html[data-mm-ui-template="elana-template"] body.mm-body .mm-home-demo__confirm,
html[data-mm-ui-template="elana-template"] body.mm-body .mm-home-trust article > i,
html[data-mm-ui-template="elana-template"] body.mm-body .mm-home-step-icon {
    color: #ffb966;
}
html[data-mm-ui-template="elana-template"] body.mm-body :is(.mm-home-guardrails i, .mm-home-check-list i) {
    color: #e8c58e;
}

/* App utility surfaces, overlays and footer share a consistent border system. */
html[data-mm-ui-template="elana-template"] body.mm-body :is(.alert-info, .alert-secondary, .bg-body-tertiary, .bg-dark) {
    border-color: rgba(255, 185, 102, .2);
    background-color: rgba(7, 19, 41, .82) !important;
    color: #f7f1e8;
}
html[data-mm-ui-template="elana-template"] body.mm-body :is(.alert-warning, .alert-danger, .alert-success) {
    border-width: 1px;
}
html[data-mm-ui-template="elana-template"] body.mm-body :is(.mm-footer, footer.mm-footer) {
    margin-top: auto;
    border-color: rgba(255, 185, 102, .25) !important;
    color: #e8c58e;
    background: rgba(6, 15, 35, .75);
    font-family: Lora, Georgia, serif;
}
html[data-mm-ui-template="elana-template"] body.mm-body :is(.modal-backdrop, .offcanvas-backdrop) {
    --bs-backdrop-bg: #020813;
}

/* Do not change technical meters, waveforms, sliders, timelines or icon sizing.
   They retain the original music-specific CSS and their existing event bindings. */
@media (min-width: 1200px) {
    html[data-mm-ui-template="elana-template"] .mm-app-body--header-shell .mm-public-header__container {
        max-width: 100%;
    }
}
@media (max-width: 1199.98px) {
    html[data-mm-ui-template="elana-template"] .mm-public-header .mm-public-header__collapse {
        height: auto;
        overflow: visible;
    }
    html[data-mm-ui-template="elana-template"] .mm-public-header .mm-public-header__navigation {
        align-items: stretch;
        flex-direction: column;
    }
    html[data-mm-ui-template="elana-template"] .mm-public-header .mm-public-header__navigation > .navbar-nav + .navbar-nav {
        border-left: 0;
        padding-left: 0;
    }
    html[data-mm-ui-template="elana-template"] .mm-public-header .nav-link {
        width: 100%;
        justify-content: flex-start;
        min-height: 42px;
        font-size: .9rem;
    }
    html[data-mm-ui-template="elana-template"] .mm-public-header .mm-public-header__account {
        justify-content: flex-start;
        flex-wrap: wrap;
        padding-block: .5rem;
    }
}
@media (max-width: 768px) {
    html[data-mm-ui-template="elana-template"] .mm-elana-page-frame {
        width: calc(100% - 1rem);
        max-width: calc(100vw - 1rem);
        min-height: calc(100dvh - 1rem);
        margin: .5rem auto;
    }
    html[data-mm-ui-template="elana-template"] .mm-elana-corner {
        width: 2rem;
        height: 2rem;
    }
    html[data-mm-ui-template="elana-template"] .mm-elana-page-frame::after {
        width: 2rem;
        height: 2rem;
        top: .5rem;
        right: .5rem;
        opacity: .35;
    }
    html[data-mm-ui-template="elana-template"] body.mm-body .mm-public-content {
        padding: 1.05rem;
    }
    html[data-mm-ui-template="elana-template"] .mm-public-header .mm-public-header__container {
        padding-inline: 1.1rem;
    }
    html[data-mm-ui-template="elana-template"] body.mm-body :is(.card, .mm-card, .mm-page-header, .modal-content) {
        border-radius: 12px;
    }
}
@media (prefers-reduced-motion: reduce) {
    html[data-mm-ui-template="elana-template"] body.mm-body *,
    html[data-mm-ui-template="elana-template"] body.mm-body *::before,
    html[data-mm-ui-template="elana-template"] body.mm-body *::after {
        scroll-behavior: auto;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* Shared Elana geometry refinements: internal pages are compact workspaces,
   not full-size editorial hero sections. The Home hero retains its own scale. */
html[data-mm-ui-template="elana-template"] body.mm-body .mm-page-header--compact {
    padding: clamp(1rem, 1.8vw, 1.65rem);
    margin-bottom: 1rem;
}
html[data-mm-ui-template="elana-template"] body.mm-body .mm-page-header--compact .mm-page-header__title {
    font-size: clamp(1.7rem, 2.3vw, 2.45rem) !important;
    line-height: 1.22;
}
html[data-mm-ui-template="elana-template"] body.mm-body .mm-page-header--compact .mm-page-header__description {
    max-width: 70ch;
    margin: .35rem 0 0;
    font-size: clamp(.93rem, 1vw, 1.05rem);
    line-height: 1.65;
}
html[data-mm-ui-template="elana-template"] body.mm-body :is(h1.h3, h2.h5, h3.h5, h4.h5, h5.h5) {
    font-size: 1.18rem !important;
}
html[data-mm-ui-template="elana-template"] body.mm-body .mm-page-header--hero .mm-page-header__title {
    font-size: clamp(2.2rem, 3.6vw, 3.7rem) !important;
}
html[data-mm-ui-template="elana-template"] body.mm-body .mm-public-content,
html[data-mm-ui-template="elana-template"] body.mm-body .mm-page-host {
    min-width: 0;
    width: 100%;
    max-width: 100%;
}
html[data-mm-ui-template="elana-template"] body.mm-body .mm-public-content {
    padding: clamp(.9rem, 1.7vw, 1.8rem);
}
html[data-mm-ui-template="elana-template"] body.mm-body .mm-page-host {
    padding: clamp(.8rem, 1.6vw, 1.7rem) !important;
}
html[data-mm-ui-template="elana-template"] body.mm-body :is(.mm-card, .card) {
    min-width: 0;
    overflow-wrap: break-word;
}
html[data-mm-ui-template="elana-template"] body.mm-body :is(.mm-card, .card) :is(p, small, label) {
    line-height: 1.5;
}

/* Keep the header within the Elana frame at normal laptop widths and zoom.
   The existing Bootstrap collapse/ARIA/button behaviour is reused. */
html[data-mm-ui-template="elana-template"] .mm-public-header .mm-public-header__container {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: .8rem;
}
html[data-mm-ui-template="elana-template"] .mm-public-header .brand-logo--header {
    flex: 0 0 13.5rem;
    width: 13.5rem;
    max-width: 42%;
    height: 4.2rem;
    margin-right: auto;
    overflow: hidden;
}
html[data-mm-ui-template="elana-template"] .mm-public-header .brand-logo--header .brand-logo__image {
    max-width: 100%;
    max-height: 100%;
    transform: scale(1.22);
    transform-origin: center;
}
html[data-mm-ui-template="elana-template"] .mm-public-header .mm-public-header__collapse {
    min-width: 0;
}
html[data-mm-ui-template="elana-template"] .mm-public-header :is(.mm-operational-navigation, .mm-main-navigation, .mm-public-header__pricing-nav) {
    min-width: 0;
}
html[data-mm-ui-template="elana-template"] .mm-public-header .mm-user-menu-name {
    max-width: 7rem;
}

@media (max-width: 1199.98px) {
    html[data-mm-ui-template="elana-template"] .mm-public-header .mm-public-header__collapse.navbar-collapse {
        z-index: 1080;
        max-height: min(75vh, 42rem);
        overflow-y: auto;
        border-color: rgba(255, 185, 102, .38);
        background: #07152e;
    }
}
@media (max-width: 575.98px) {
    html[data-mm-ui-template="elana-template"] .mm-public-header .brand-logo--header {
        flex-basis: min(60%, 11.5rem);
        width: min(60%, 11.5rem);
        height: 3.5rem;
    }
    html[data-mm-ui-template="elana-template"] .mm-public-header .mm-public-header__container {
        gap: .35rem;
        padding-inline: .6rem;
    }
    html[data-mm-ui-template="elana-template"] body.mm-body .mm-page-header--compact .mm-page-header__title {
        font-size: 1.65rem !important;
    }
}

/* FileDropPicker is a shared component. Its native input must never bleed into
   the Elana design when bundles are missing or an upload view loads later. */
html[data-mm-ui-template="elana-template"] body.mm-body .file-drop-picker {
    --fdp-accent: #ffb966;
    width: 100%;
    min-width: 0;
}
html[data-mm-ui-template="elana-template"] body.mm-body .file-drop-picker__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}
html[data-mm-ui-template="elana-template"] body.mm-body .file-drop-picker__zone {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    min-width: 0;
    padding: clamp(1rem, 2vw, 1.75rem);
    border: 1px dashed rgba(255, 185, 102, .48);
    border-radius: 14px;
    background: linear-gradient(155deg, rgba(12, 29, 53, .88), rgba(4, 13, 28, .9));
    color: #f7f1e8;
}
html[data-mm-ui-template="elana-template"] body.mm-body .file-drop-picker__zone:hover,
html[data-mm-ui-template="elana-template"] body.mm-body .file-drop-picker__zone:focus-visible {
    border-color: #ffb966;
    background: rgba(255, 185, 102, .08);
}
html[data-mm-ui-template="elana-template"] body.mm-body .file-drop-picker__icon {
    color: #ffb966;
    background: rgba(255, 185, 102, .12);
}
html[data-mm-ui-template="elana-template"] body.mm-body .file-drop-picker__copy {
    display: flex;
    flex: 1 1 16rem;
    flex-direction: column;
    gap: .35rem;
    min-width: 0;
    font-size: 1rem;
}
html[data-mm-ui-template="elana-template"] body.mm-body .file-drop-picker__copy strong {
    color: #f7f1e8;
    font-size: 1.08rem;
}
html[data-mm-ui-template="elana-template"] body.mm-body .file-drop-picker__help,
html[data-mm-ui-template="elana-template"] body.mm-body .file-drop-picker__copy small {
    color: #bdb4a8;
    font-size: .9rem;
}
html[data-mm-ui-template="elana-template"] body.mm-body .file-drop-picker__file {
    border-color: rgba(255, 185, 102, .2);
    background: rgba(9, 24, 49, .78);
}

/* Upload's metadata section is a form, so its headings and input fields must
   remain usable at normal 100-150% browser zoom. */
html[data-mm-ui-template="elana-template"] body.mm-body .upload-page {
    width: 100%;
    max-width: 100%;
    gap: 1rem;
}
html[data-mm-ui-template="elana-template"] body.mm-body .upload-page .upload-section {
    padding-top: 1.5rem;
    border-color: rgba(255, 185, 102, .2);
}
html[data-mm-ui-template="elana-template"] body.mm-body .upload-page .upload-section h2 {
    margin-bottom: .45rem !important;
    font-size: clamp(1.15rem, 1.3vw, 1.4rem) !important;
}
html[data-mm-ui-template="elana-template"] body.mm-body .upload-page :is(.form-control, .form-select) {
    min-width: 0;
    min-height: 2.65rem;
}
html[data-mm-ui-template="elana-template"] body.mm-body .upload-page .mm-upload-message {
    max-width: 100%;
    overflow-wrap: anywhere;
    border-color: rgba(255, 185, 102, .38);
    background: rgba(255, 185, 102, .085);
    color: #f7f1e8;
}


/* Global shell geometry shared by all Razor pages. The original visual tokens,
   page-specific controls and audio processing components remain untouched. */
html[data-mm-ui-template="elana-template"] .mm-elana-page-frame {
    justify-content: flex-start;
    padding: 0;
}
html[data-mm-ui-template="elana-template"] body.mm-body :is(
    .mm-public-content, .mm-page-host, .mm-main-content, .mm-page-shell,
    .mm-page-header, .mm-page-header__row, .mm-page-header__content
) {
    min-width: 0;
    max-width: 100%;
}
html[data-mm-ui-template="elana-template"] body.mm-body .mm-public-content {
    margin-inline: auto;
    padding-block: clamp(1rem, 2.3vw, 2rem) !important;
}
html[data-mm-ui-template="elana-template"] body.mm-body .mm-page-header {
    max-width: 100%;
    margin-bottom: clamp(.85rem, 1.6vw, 1.4rem);
}
html[data-mm-ui-template="elana-template"] body.mm-body .mm-page-header__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}
html[data-mm-ui-template="elana-template"] body.mm-body .mm-page-header__content {
    flex: 1 1 18rem;
}
html[data-mm-ui-template="elana-template"] body.mm-body .mm-page-header__description {
    max-width: 72ch;
    overflow-wrap: anywhere;
}

/* Desktop navigation uses its real Bootstrap breakpoint: 1400 CSS pixels.
   The collapsed menu below that width is in-flow in unified-header-layout.css. */
@media (min-width: 1400px) {
    html[data-mm-ui-template="elana-template"] .mm-public-header .mm-public-header__container {
        flex-wrap: nowrap;
    }
    html[data-mm-ui-template="elana-template"] .mm-public-header .mm-public-header__collapse {
        flex: 1 1 auto;
        justify-content: space-between;
        width: auto;
        height: auto;
    }
    html[data-mm-ui-template="elana-template"] .mm-public-header .mm-public-header__navigation {
        display: flex;
        flex: 1 1 auto;
        align-items: center;
        gap: clamp(.1rem, .45vw, .5rem);
        min-width: 0;
    }
    html[data-mm-ui-template="elana-template"] .mm-public-header .nav-link {
        min-height: 44px;
        padding-inline: clamp(.38rem, .6vw, .6rem);
        font-size: clamp(.72rem, .78vw, .85rem);
    }
    html[data-mm-ui-template="elana-template"] .mm-public-header .mm-public-header__account {
        min-width: 0;
        gap: clamp(.2rem, .45vw, .6rem);
        margin-left: auto;
    }
}
/* The header and dropdown are part of the same document flow when collapsed.
   Do not position the menu absolutely or force it open above the content. */
@media (max-width: 1399.98px) {
    html[data-mm-ui-template="elana-template"] .mm-public-header .mm-public-header__container {
        flex-wrap: wrap;
    }
    html[data-mm-ui-template="elana-template"] .mm-public-header .mm-public-header__collapse.navbar-collapse {
        position: static !important;
        inset: auto !important;
        order: 3;
        flex-basis: 100%;
        width: 100%;
        height: auto;
        margin: 0;
        transform: none !important;
    }
    html[data-mm-ui-template="elana-template"] .mm-public-header .mm-public-header__collapse.navbar-collapse:not(.show):not(.collapsing) {
        display: none !important;
    }
    html[data-mm-ui-template="elana-template"] .mm-public-header .mm-public-header__collapse.navbar-collapse.show {
        display: block !important;
        max-height: min(64dvh, 36rem);
        overflow-y: auto;
    }
    html[data-mm-ui-template="elana-template"] .mm-public-header .mm-public-header__navigation,
    html[data-mm-ui-template="elana-template"] .mm-public-header .mm-operational-navigation,
    html[data-mm-ui-template="elana-template"] .mm-public-header .mm-main-navigation,
    html[data-mm-ui-template="elana-template"] .mm-public-header .mm-public-header__pricing-nav {
        flex-direction: column;
        align-items: stretch;
        flex-wrap: nowrap;
        gap: .15rem;
        width: 100%;
        height: auto;
        white-space: normal;
    }
    html[data-mm-ui-template="elana-template"] .mm-public-header .mm-public-header__account {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

/* Home: proportionate editorial composition. The page originally applied a
   giant hero min-height and large headline, so it appeared to overlap the menu. */
html[data-mm-ui-template="elana-template"] body.mm-body .mm-home-hero {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
    align-items: start;
    gap: clamp(1.25rem, 3vw, 3.3rem);
    min-height: 0 !important;
    padding: clamp(1.25rem, 2.3vw, 2.6rem) 0 clamp(2.5rem, 4.4vw, 4.6rem) !important;
}
html[data-mm-ui-template="elana-template"] body.mm-body .mm-home-hero__copy,
html[data-mm-ui-template="elana-template"] body.mm-body .mm-home-demo {
    min-width: 0;
    max-width: 100%;
}
html[data-mm-ui-template="elana-template"] body.mm-body .mm-home-hero h1 {
    margin: .85rem 0 0;
    max-width: 100%;
    font-family: "Cinzel Decorative", Georgia, serif !important;
    font-size: clamp(2.1rem, 3.1vw, 3.35rem) !important;
    line-height: 1.18 !important;
    font-weight: 400 !important;
    letter-spacing: -.015em !important;
    overflow-wrap: normal;
}
html[data-mm-ui-template="elana-template"] body.mm-body .mm-home-hero h1 span {
    display: block;
    color: #ffb966;
    -webkit-text-fill-color: #ffb966 !important;
}
html[data-mm-ui-template="elana-template"] body.mm-body .mm-home-hero__lead {
    max-width: 58ch;
    margin-top: 1.2rem;
    font-size: clamp(.98rem, 1.05vw, 1.14rem);
    line-height: 1.7;
}
html[data-mm-ui-template="elana-template"] body.mm-body .mm-home-actions {
    gap: .75rem;
    margin-top: 1.5rem;
}
html[data-mm-ui-template="elana-template"] body.mm-body .mm-home-action {
    min-width: 0;
    min-height: 66px;
}
html[data-mm-ui-template="elana-template"] body.mm-body .mm-home-demo {
    min-height: 0;
    margin: 0;
    padding: clamp(.9rem, 1.6vw, 1.35rem);
}
html[data-mm-ui-template="elana-template"] body.mm-body .mm-home-mastering {
    max-width: 100%;
    overflow: clip;
}
/* Respect the existing single-column Home flow on phones and tablets. */
@media (max-width: 991.98px) {
    html[data-mm-ui-template="elana-template"] body.mm-body .mm-home-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }
    html[data-mm-ui-template="elana-template"] body.mm-body .mm-home-hero h1 {
        font-size: clamp(2rem, 6vw, 2.9rem) !important;
    }
    html[data-mm-ui-template="elana-template"] body.mm-body .mm-home-demo {
        max-width: 45rem;
        margin-inline: auto;
    }
}
@media (max-width: 575.98px) {
    html[data-mm-ui-template="elana-template"] body.mm-body .mm-home-hero {
        padding-top: .85rem !important;
    }
    html[data-mm-ui-template="elana-template"] body.mm-body .mm-home-hero h1 {
        font-size: clamp(1.85rem, 8vw, 2.5rem) !important;
    }
    html[data-mm-ui-template="elana-template"] body.mm-body .mm-home-actions {
        flex-direction: column;
    }
    html[data-mm-ui-template="elana-template"] body.mm-body .mm-home-action {
        width: 100%;
    }
}
