:root {
    --r: 14px;
    --r-sm: 10px;
    --hit: 46px;
    --header-h: 73px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    min-width: 0;
}

html,
body {
    -webkit-font-smoothing: antialiased;
}

.nm {
    min-height: 100svh;
    padding: 0 0 60px;
}

.nm__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    height: var(--header-h);
    padding: 0;
    border-bottom: 1px solid var(--side-border);
    width: 100%;
    margin: 0 auto;
}

.nm__header-ghost {
    display: none;
}

.nm__stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
}

.nm__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: default;
    user-select: none;
}

.nm__step-dot {
    width: 30px;
    height: 30px;
    border-radius: var(--middle-border);
    border: 1.5px solid var(--side-border);
    background: var(--bgc-input-div);
    display: grid;
    place-items: center;
    transition:
        border-color 0.25s,
        background 0.25s,
        box-shadow 0.25s;
}

.nm__step-num {
    font-size: var(--font-size-text);
    font-weight: var(--font-weight);
    color: var(--text-grey);
    font-family: var(--font-family-app);
    font-size: var(--font-size-text);
    transition: color 0.25s;
}

.nm__step-label {
    font-size: var(--font-size-text);
    color: var(--text-grey);
    white-space: nowrap;
    transition: color 0.25s;
}

.nm__step.is-active .nm__step-dot {
    border-color: var(--border-color);
    background: var(--bgc-input-div);
}

.nm__step.is-active .nm__step-num {
    color: var(--text-white);
}

.nm__step.is-active .nm__step-label {
    color: var(--text-white);
}

.nm__step.is-done .nm__step-dot {
    border-color: var(--text-tunedr);
    background: var(--bgc-input-div);
}
.nm__step.is-done .nm__step-num {
    color: var(--text-tunedr);
}

.nm__step.is-done .nm__step-label {
    color: var(--text-tunedr);
}

.nm__step-line {
    flex: 1;
    height: 1px;
    background: var(--bgc-input-div);
    margin: 0 8px;
    margin-bottom: 16px;
    transition: background 0.25s;
}

.nm__step-line.is-done {
    background: var(--text-tunedr);
}

.nm__panels {
    display: grid;
    padding: var(--header-h);
}

.nm__panel {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: clamp(20px, 3.5vw, 32px);
    max-width: 680px;
    width: var(--full-width);
    margin: 0 auto;
}

.nm__panel[hidden] {
    display: none;
}

.nm__panel.is-active {
    animation: panelIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes panelIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nm__panel-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
    justify-content: center;
}

.nm__panel-title {
    margin: 0;
    font-size: var(--font-size-title);
    font-weight: var(--font-weight);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.nm__panel-sub {
    margin: 4px 0 0;
    font-size: 14px;
    color: var(--text-grey);
    line-height: 1.5;
}

.nm__fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nm__field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.nm__label {
    font-size: var(--font-size-text);
    font-weight: var(--font-weight);
    color: var(--text-grey);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.nm__input,
.nm__select {
    height: var(--hit);
    padding: 0 14px;
    background: var(--bgc-input-div);
    color: var(--text-white);
    border-radius: var(--border-radius);
    font-family: var(--font-family-app);
    font-size: var(--font-size-text);
    outline: none;
    transition:
        border-color 0.15s,
        box-shadow 0.15s;
    width: var(--full-width);
    border: none;
}

.nm__input::placeholder {
    color: var(--text-grey);
}

.nm__input.is-error,
.nm__select.is-error,
.nm__textarea.is-error {
    border: 1px solid var(--danger-error) !important;
}

.tagify.is-error {
    border: 1px solid var(--danger-error) !important;
}

.nm__dropzone.is-error {
    border: 1px solid var(--danger-error) !important;
}

.nm__field-error {
    font-size: var(--font-size-text);
    font-family: var(--font-family-errors);
    color: var(--danger-error);
    display: none;
}

.nm__field-error.is-visible {
    display: block;
}

.nm__select {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 36px;
    cursor: pointer;
    background-color: var(--bgc-input-div);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%237a7d8c' viewBox='0 0 16 16'><path d='M4.646 6.646a.5.5 0 0 1 .708 0L8 9.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.nm__select option {
    background: var(--bgc-input-div);
    color: var(--text-white);
}

.nm__select::-ms-expand {
    display: none;
}

.nm__textarea {
    min-height: 100px;
    max-height: 240px;
    resize: none;
    overflow: hidden;
    padding: 12px 14px;
    background: var(--bgc-input-div);
    color: var(--text-white);
    border-radius: var(--border-radius);
    font-family: var(--font-family-app);
    font-size: var(--font-size-text);
    line-height: 1.5;
    outline: none;
    transition:
        border-color 0.15s,
        box-shadow 0.15s;
    width: var(--full-width);
    border: none;
}

.nm__textarea::placeholder {
    color: var(--text-grey);
}

.tagify {
    --tag-bg: var(--bgc-input-div) !important;
    --tag-text-color: var(--text-white) !important;
    --tag-border-radius: 8px !important;
    --tag-remove-btn-color: var(--text-grey) !important;
    --placeholder-color: var(--text-grey) !important;
    --input-color: var(--text-white) !important;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    min-height: var(--hit);
    height: auto !important;
    background: var(--bgc-input-div);
    border-radius: var(--border-radius);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    transition:
        border-color 0.15s,
        box-shadow 0.15s;
}

.tagify::-webkit-scrollbar {
    display: none;
}

.tagify__tag {
    margin: 0 !important;
    background: var(--bgc-input-div) !important;
    border-radius: var(--border-radius) !important;
}

.tagify__tag-text {
    color: var(--text-white) !important;
}

.tagify__input {
    min-width: 100px;
    color: var(--text-white) !important;
}

.tagify__input::before {
    color: var(--text-grey) !important;
}

.nm__row {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
}

@media (min-width: 480px) {
    .nm__row--2 {
        grid-template-columns: 1fr 1fr;
    }

    .nm__row--3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.nm__dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 32px 20px;
    border-radius: var(--border-radius);
    background: var(--bgc-input-div);
    cursor: pointer;
    text-align: center;
    transition:
        border-color 0.15s,
        background 0.15s;
    position: relative;
    overflow: hidden;
    border: 1px dashed var(--border-color);
}

.nm__file-input {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: var(--full-width);
    height: var(--full-height);
}

.nm__dropzone-idle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.nm__dz-icon {
    width: 32px;
    height: 32px;
    color: var(--text-grey);
}

.nm__dz-text {
    font-size: 14px;
    color: var(--text-white);
    line-height: 1.4;
}

.nm__dz-hint {
    font-size: var(--font-size-text);
    font-family: var(--font-family-app);
    color: var(--text-grey);
    opacity: 0.6;
}

.nm__dz-preview {
    width: var(--full-width);
    max-width: 260px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--border-radius);
    pointer-events: none;
    border: 1px solid var(--border-color);
}

.nm__dropzone--cover.has-file {
    padding: 12px;
}

.nm__dropzone--audio.has-file {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 14px 18px;
    gap: 12px;
}

.nm__dz-audio-chosen {
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: none;
}

.nm__dz-filename {
    font-size: 14px;
    color: var(--text-white);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nm__player {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bgc-input-div);
    border-radius: var(--border-radius);
}

.nm__player[hidden] {
    display: none !important;
}

.nm__play {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: var(--border-radius);
    background: var(--bgc-white);
    color: var(--text-black);
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.15s;
}

.nm__play:hover {
    opacity: var(--opacity-btn-hover);
}

.nm__icon {
    width: var(--size-icons-xs);
    height: var(--size-icons-xs);
    display: block;
}

.nm__icon--pause {
    display: none;
}

.nm__play.is-playing .nm__icon--play {
    display: none;
}

.nm__play.is-playing .nm__icon--pause {
    display: block;
}

.nm__time {
    font-size: var(--font-size-text);
    font-family: var(--font-family-app);
    color: var(--text-grey);
    min-width: 34px;
    text-align: center;
    flex-shrink: 0;
}

.nm__seek {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    height: 4px;
    border: none;
    background: var(--text-grey);
    border-radius: var(--border-radius);
    cursor: pointer;
}

.nm__seek::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: var(--text-white);
    border-radius: var(--middle-border);
    border: none;
}

.nm__seek::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: var(--bgc-white);
    border-radius: var(--middle-border);
    border: none;
}

.nm__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: auto;
    padding-top: 8px;
    padding-bottom: 12px;
}

.nm__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: var(--hit);
    padding: 0 20px;
    border: none;
    border-radius: var(--border-radius);
    background: var(--bgc-white);
    color: var(--text-black);
    font-family: var(--font-family-app) !important;
    font-size: var(--font-size-text) !important;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    transition:
        opacity 0.15s,
        transform 0.1s;
    white-space: nowrap;
}

.nm__btn:hover {
    opacity: var(--opacity-btn-hover);
}

.nm__btn:active {
    transform: scale(0.98);
}

.nm__btn svg {
    width: var(--size-icons-xs);
    height: 15px;
    flex-shrink: 0;
}

.nm__btn--ghost {
    background: none;
    color: var(--text-grey);
    font-family: var(--font-family-app);
    font-size: var(--font-size-text);
}

.nm__btn--ghost:hover {
    color: var(--text-white);
    border: 1px solid var(--border-color);
}

.nm__btn--publish {
    background: var(--bgc-white);
    color: var(--text-black);
    transition:
        opacity 0.15s,
        transform 0.1s,
        box-shadow 0.2s;
    font-family: var(--font-family-app);
    font-size: var(--font-size-text);
}

.nm__btn--publish:hover {
    opacity: var(--opacity-btn-hover);
}

@media (max-width: 700px) {
    :root {
        --header-h: 60px;
    }

    .nm__header {
        left: 0;
    }

    .nm__player {
        flex-wrap: wrap;
    }

    .nm__vol {
        width: 60px;
    }

    .nm__step-label {
        display: none;
    }

    .nm__header-ghost {
        width: 32px;
    }
}

@media (max-width: 480px) {
    :root {
        --hit: 48px;
        --header-h: 56px;
    }

    .nm__header {
        padding: 0 16px;
    }

    .nm__panels {
        padding-left: 16px;
        padding-right: 16px;
    }

    .nm__panel-title {
        font-size: var(--font-size-title);
    }

    .nm__input,
    .nm__select,
    .nm__textarea {
        font-size: var(--font-size-text);
    }

    .nm__dropzone {
        padding: 24px 16px;
    }

    .nm__player {
        padding: 8px 10px;
        gap: 8px;
    }

    .nm__vol {
        display: none;
    }

    .nm__nav {
        flex-direction: row;
        gap: 10px;
    }

    .nm__btn {
        flex: 1;
        justify-content: center;
    }

    .nm__btn--ghost {
        flex: 0 0 auto;
    }

    .nm__row--2,
    .nm__row--3 {
        grid-template-columns: 1fr !important;
    }
}
