.nmu-wrap {
    max-width: 720px;
    margin: 24px auto;
    padding: 0 16px;
}

.nmu-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.nmu-tab-button {
    border: 1px solid #d8d8d8;
    background: #ffffff;
    color: #111111;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    padding: 12px 16px;
}

.nmu-tab-button.is-active {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
}

.nmu-tab-panel[hidden] {
    display: none;
}

.nmu-form {
    background: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
    padding: 24px;
    font-family: inherit;
}

.nmu-field {
    margin-bottom: 20px;
}

.nmu-field label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}

.nmu-field input[type="text"],
.nmu-field input[type="date"],
.nmu-field input[type="file"],
.nmu-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d8d8d8;
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    background: #fff;
}

.nmu-field textarea {
    min-height: 160px;
    resize: vertical;
}

.nmu-help,
.nmu-selected-files {
    color: #666;
    font-size: 14px;
    margin: 8px 0 0;
}

.nmu-audio-box {
    background: #f8f8f8;
    border: 1px solid #eeeeee;
    border-radius: 16px;
    padding: 16px;
}

.nmu-audio-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.nmu-btn,
.nmu-submit,
.nmu-remove-player,
.nmu-remove-raw-file {
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 12px 18px;
    transition: transform .15s ease, opacity .15s ease;
}

.nmu-btn:hover,
.nmu-submit:hover,
.nmu-remove-player:hover,
.nmu-remove-raw-file:hover {
    transform: translateY(-1px);
}

.nmu-btn:disabled,
.nmu-submit:disabled,
.nmu-remove-player:disabled,
.nmu-remove-raw-file:disabled {
    cursor: not-allowed;
    opacity: .55;
    transform: none;
}

.nmu-btn {
    background: #ececec;
    color: #111;
}

.nmu-submit {
    width: 100%;
    background: #111111;
    color: #ffffff;
    font-size: 17px;
    margin-top: 18px;
}

.nmu-remove-player,
.nmu-remove-raw-file {
    background: #fff0f0;
    color: #b42318;
    padding: 9px 14px;
    font-size: 14px;
}

.nmu-audio-preview {
    width: 100%;
    margin: 8px 0;
}

.nmu-progress {
    margin: 18px 0;
}

.nmu-progress-bar {
    height: 12px;
    overflow: hidden;
    background: #eeeeee;
    border-radius: 999px;
}

.nmu-progress-bar span {
    display: block;
    height: 100%;
    background: #111111;
    border-radius: 999px;
    transition: width .2s ease;
}

.nmu-progress-text {
    margin: 6px 0 0;
    font-size: 14px;
    color: #555;
}

.nmu-status {
    min-height: 24px;
    margin: 14px 0;
    font-weight: 700;
}

.nmu-status-success { color: #12805c; }
.nmu-status-error { color: #b42318; }
.nmu-status-warning { color: #a15c00; }
.nmu-status-info { color: #1f4e79; }

.nmu-transcribe-live {
    min-height: 22px;
    margin: 10px 0 0;
    color: #1f4e79;
    font-size: 14px;
    font-weight: 700;
    white-space: pre-wrap;
}

.nmu-audio-fallback {
    margin-top: 12px;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 12px 14px;
}

.nmu-audio-fallback summary {
    cursor: pointer;
    font-weight: 700;
}

.nmu-satellites-list,
.nmu-raw-files-list {
    margin-bottom: 16px;
}

.nmu-satellite-player,
.nmu-raw-file {
    background: #f8f8f8;
    border: 1px solid #eeeeee;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
}

.nmu-player-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.nmu-player-head h3 {
    margin: 0;
    font-size: 18px;
}

@media (max-width: 520px) {
    .nmu-tabs {
        grid-template-columns: 1fr;
    }

    .nmu-form {
        padding: 18px;
        border-radius: 14px;
    }

    .nmu-audio-actions,
    .nmu-player-head {
        flex-direction: column;
        align-items: stretch;
    }

    .nmu-btn,
    .nmu-submit,
    .nmu-remove-player,
    .nmu-remove-raw-file {
        width: 100%;
    }
}
