.music-clip-section-root {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100%;
    max-width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
}

body.music-clip-view .content,
body.music-clip-view #musicClipSection,
body.music-clip-view #musicClipEditorMount {
    min-width: 0;
    max-width: 100%;
}

body.music-clip-view .app-body {
    grid-template-columns: 280px minmax(0, 1fr);
}

body.music-clip-view .app-body > .sidebar-right {
    display: none;
}

@media (max-width: 960px) {
    body.music-clip-view .app-body {
        grid-template-columns: 1fr;
    }
}

.mc-capcut {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: calc(100vh - 200px);
    background: #121212;
    color: #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.mc-capcut-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 14px;
    background: #1a1a1a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mc-capcut-toolbar h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    flex: 1;
    min-width: 140px;
}

.mc-capcut-status {
    font-size: 12px;
    opacity: 0.85;
    max-width: min(420px, 100%);
}

.mc-capcut-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
    flex: 1;
    min-height: 280px;
    min-width: 0;
}

@media (max-width: 900px) {
    .mc-capcut-body {
        grid-template-columns: 1fr;
    }
}

.mc-capcut-main {
    display: flex;
    flex-direction: column;
    padding: 12px;
    gap: 10px;
    min-width: 0;
}

.mc-capcut-preview-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    min-width: 0;
    max-width: 100%;
}

.mc-capcut-preview-frame {
    position: relative;
    width: 100%;
    max-width: min(420px, 100%);
    background: #0a0a0a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.mc-capcut-preview-frame[data-aspect="9:16"] {
    aspect-ratio: 9 / 16;
    max-height: min(52vh, 520px);
}

.mc-capcut-preview-frame[data-aspect="16:9"] {
    aspect-ratio: 16 / 9;
    max-width: min(720px, 100%);
    max-height: min(38vh, 420px);
}

.mc-capcut-preview-frame img,
.mc-capcut-preview-frame video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.mc-capcut-preview-fx[hidden] {
    display: none !important;
}

.mc-capcut-preview-frame.is-preview-anim .mc-capcut-preview-fx {
    z-index: 2;
    pointer-events: none;
}

.mc-capcut-preview-frame.is-preview-anim[data-preview-transition="fade"] .mc-capcut-preview-fx,
.mc-capcut-preview-frame.is-preview-anim[data-preview-transition="dissolve"] .mc-capcut-preview-fx {
    animation: mc-preview-fade-out 0.28s ease forwards;
}

.mc-capcut-preview-frame.is-preview-anim[data-preview-transition="wipeleft"] .mc-capcut-preview-fx {
    animation: mc-preview-wipe-left 0.42s ease forwards;
}

.mc-capcut-preview-frame.is-preview-anim[data-preview-transition="slideright"] .mc-capcut-preview-fx {
    animation: mc-preview-slide-right 0.42s ease forwards;
}

.mc-capcut-preview-frame.is-preview-anim[data-preview-transition="circleopen"] .mc-capcut-preview-fx {
    animation: mc-preview-circle-open 0.42s ease forwards;
}

@keyframes mc-preview-fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes mc-preview-wipe-left {
    from {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
    to {
        opacity: 0;
        clip-path: inset(0 100% 0 0);
    }
}

@keyframes mc-preview-slide-right {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(18%);
    }
}

@keyframes mc-preview-circle-open {
    from {
        opacity: 1;
        clip-path: circle(140% at 50% 50%);
    }
    to {
        opacity: 0;
        clip-path: circle(0 at 50% 50%);
    }
}

.mc-capcut-preview-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.55);
}

.mc-capcut-preview-placeholder--err {
    color: rgba(252, 165, 165, 0.95);
}

.mc-capcut-timebar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, 0.65);
}

.mc-capcut-timebar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.mc-capcut-live-shot {
    font-size: 13px;
    font-weight: 600;
    color: #5eead4;
    letter-spacing: 0.02em;
}

.mc-capcut-timebar button.mc-capcut-playbtn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #00c6c0, #0096c0);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    box-sizing: border-box;
}

.mc-capcut-timebar button.mc-capcut-playbtn.is-playing {
    width: auto;
    min-width: 36px;
    padding: 0 12px;
    border-radius: 18px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.mc-capcut-inspector {
    background: #161616;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
    min-width: 0;
}

@media (max-width: 900px) {
    .mc-capcut-inspector {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }
}

.mc-capcut-inspector h3 {
    margin: 0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.55;
}

.mc-capcut-inspector .mc-inspector-snippet {
    line-height: 1.45;
    max-height: 120px;
    overflow-y: auto;
    padding: 8px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
}

.mc-capcut-inspector .mc-inspector-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}


.mc-capcut-timeline {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #141414;
    padding: 0 0 10px;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
}

.mc-capcut-timeline-stack {
    position: relative;
    margin: 0 12px;
    cursor: pointer;
    min-width: 0;
    max-width: calc(100% - 24px);
}

.mc-capcut-timeline-stack .mc-capcut-playhead {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 8;
}

.mc-capcut-ruler {
    position: relative;
    height: 26px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mc-capcut-ruler-ticks {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 2px 4px;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, 0.35);
    pointer-events: none;
}

.mc-capcut-track-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    padding: 6px 2px 2px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mc-capcut-track-video {
    position: relative;
    height: 76px;
    background: #1e1e1e;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
}

.mc-capcut-track-audio {
    position: relative;
    height: 52px;
    margin-top: 8px;
    background: #252525;
    border-radius: 6px;
    overflow: hidden;
}

.mc-capcut-segment {
    position: relative;
    height: 100%;
    flex-shrink: 0;
    border-right: 1px solid rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
    cursor: pointer;
    overflow: hidden;
}

.mc-capcut-tr-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 3;
    padding: 4px 7px;
    border-radius: 999px;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.45);
    color: rgba(255, 255, 255, 0.85);
    opacity: 0;
    transform: translateY(-2px);
    transition: opacity 0.15s ease, transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    pointer-events: none;
}

.mc-capcut-segment:hover .mc-capcut-tr-badge,
.mc-capcut-segment.is-selected .mc-capcut-tr-badge {
    opacity: 1;
    transform: translateY(0);
}

.mc-capcut-tr-badge[data-tr="none"] {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
}

.mc-capcut-tr-badge[data-tr="fade"],
.mc-capcut-tr-badge[data-tr="dissolve"] {
    background: rgba(0, 198, 192, 0.14);
    border-color: rgba(0, 198, 192, 0.32);
    color: rgba(200, 255, 249, 0.95);
}

.mc-capcut-tr-badge[data-tr^="wipe"],
.mc-capcut-tr-badge[data-tr^="slide"],
.mc-capcut-tr-badge[data-tr^="smooth"] {
    background: rgba(124, 92, 255, 0.16);
    border-color: rgba(124, 92, 255, 0.32);
    color: rgba(226, 220, 255, 0.95);
}

html[data-theme="light"] .mc-capcut-tr-badge {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.12);
    color: rgba(0, 0, 0, 0.75);
}

html[data-theme="light"] .mc-capcut-tr-badge[data-tr="fade"],
html[data-theme="light"] .mc-capcut-tr-badge[data-tr="dissolve"] {
    background: rgba(13, 148, 136, 0.14);
    border-color: rgba(13, 148, 136, 0.3);
    color: rgba(13, 60, 56, 0.9);
}

html[data-theme="light"] .mc-capcut-tr-badge[data-tr^="wipe"],
html[data-theme="light"] .mc-capcut-tr-badge[data-tr^="slide"],
html[data-theme="light"] .mc-capcut-tr-badge[data-tr^="smooth"] {
    background: rgba(124, 92, 255, 0.14);
    border-color: rgba(124, 92, 255, 0.28);
    color: rgba(54, 36, 140, 0.9);
}

.mc-capcut-segment.is-selected {
    box-shadow: inset 0 0 0 2px #00c6c0;
    z-index: 2;
}

.mc-capcut-segment-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.95;
}

.mc-capcut-segment-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    text-align: center;
    padding: 4px;
    color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.04);
}

.mc-capcut-audio-inner {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(80, minmax(0, 1fr));
    gap: 3px;
    align-items: end;
    padding: 10px 10px;
    opacity: 0.95;
}

.mc-capcut-audio-wave {
    display: block;
    width: 100%;
    border-radius: 6px;
    background: rgba(124, 92, 255, 0.22);
    transition: background 0.2s ease, transform 0.2s ease;
}

.mc-capcut-track-audio {
    position: relative;
    isolation: isolate;
}

.mc-capcut-track-audio::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.06), rgba(0, 0, 0, 0));
    pointer-events: none;
    opacity: 0.65;
    z-index: 1;
}

.mc-capcut-playhead {
    width: 2px;
    background: #00e5ff;
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
    pointer-events: none;
    margin-left: -1px;
}

.mc-capcut-err {
    margin: 8px 14px;
    padding: 8px 10px;
    border-radius: 6px;
    background: rgba(200, 60, 60, 0.15);
    font-size: 13px;
}

.mc-capcut-video-out {
    margin: 8px 14px;
}

.mc-capcut-starting {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    padding: 32px;
    text-align: center;
    gap: 12px;
}

.mc-capcut-starting .mc-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.12);
    border-top-color: #00c6c0;
    border-radius: 50%;
    animation: mc-spin 0.9s linear infinite;
}

@keyframes mc-spin {
    to {
        transform: rotate(360deg);
    }
}

html[data-theme="light"] .mc-capcut {
    background: #f2f2f4;
    color: #1a1a1a;
    border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .mc-capcut-toolbar,
html[data-theme="light"] .mc-capcut-inspector,
html[data-theme="light"] .mc-capcut-timeline {
    background: #e8e8ec;
}

html[data-theme="light"] .mc-capcut-track-video,
html[data-theme="light"] .mc-capcut-track-audio {
    background: #ddd;
}

.mc-capcut-progress-wrap {
    padding: 10px 14px 12px;
    background: #151515;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mc-capcut-download-center {
    padding: 12px 14px 0;
    width: 100%;
    box-sizing: border-box;
}

.mc-capcut-download-center .submit-btn {
    width: 100%;
    max-width: none;
    min-width: 0;
    display: block;
    text-align: center;
    box-sizing: border-box;
}

.mc-capcut-progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
}

.mc-capcut-progress-label {
    font-weight: 600;
}

.mc-capcut-progress-pct {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: #5eead4;
}

.mc-capcut-progress-unit {
    font-size: 11px;
    opacity: 0.85;
    margin-left: 1px;
}

.mc-capcut-progress {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.mc-capcut-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #00c6c0, #0096c0);
    transition: width 0.35s ease;
}

.mc-inspector-row--dur {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 14px;
    margin-top: 10px;
}

.mc-inspector-row--tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 14px;
    margin-top: 10px;
}

.mc-inspector-select {
    min-width: 160px;
    max-width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.35);
    color: #ececec;
    outline: none;
}

.mc-inspector-tr-picker {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(420px, 100%);
}

.mc-inspector-tr-input {
    flex: 1;
    min-width: 160px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.35);
    color: #ececec;
    outline: none;
}

.mc-inspector-tr-input:focus {
    border-color: rgba(0, 198, 192, 0.45);
    box-shadow: 0 0 0 2px rgba(0, 198, 192, 0.12);
}

.mc-inspector-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.mc-inspector-chip {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 12px;
    cursor: pointer;
    user-select: none;
}

.mc-inspector-chip.is-active {
    border-color: rgba(0, 198, 192, 0.45);
    background: rgba(0, 198, 192, 0.12);
    color: #c8fff9;
}

html[data-theme="light"] .mc-inspector-tr-input {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    color: #1a1a1a;
}

html[data-theme="light"] .mc-inspector-chip {
    border-color: rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.04);
    color: rgba(0, 0, 0, 0.75);
}

html[data-theme="light"] .mc-inspector-chip.is-active {
    border-color: rgba(13, 148, 136, 0.45);
    background: rgba(13, 148, 136, 0.12);
    color: #0f172a;
}

.mc-inspector-select:focus {
    border-color: rgba(0, 198, 192, 0.45);
    box-shadow: 0 0 0 2px rgba(0, 198, 192, 0.12);
}

html[data-theme="light"] .mc-inspector-select {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    color: #1a1a1a;
}

.mc-inspector-dur-label {
    flex: 0 1 auto;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.mc-inspector-dur-input {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
}

.mc-inspector-dur-pill {
    display: inline-flex;
    align-items: stretch;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.35);
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.mc-inspector-dur-pill:focus-within {
    border-color: rgba(0, 198, 192, 0.45);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 0 2px rgba(0, 198, 192, 0.12);
}

.mc-inspector-dur-field {
    width: 4.5rem;
    min-width: 0;
    margin: 0;
    padding: 8px 10px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #ececec;
    font-size: 15px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    outline: none;
    -moz-appearance: textfield;
    appearance: textfield;
}

.mc-inspector-dur-field::-webkit-outer-spin-button,
.mc-inspector-dur-field::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.mc-inspector-dur-field::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.mc-inspector-dur-pill .mc-inspector-dur-unit {
    display: flex;
    align-items: center;
    padding: 0 11px 0 0;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.04);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    user-select: none;
}

.mc-inspector-dur-pill--readonly {
    cursor: default;
}

.mc-inspector-dur-readonly-val {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    font-variant-numeric: tabular-nums;
    font-size: 15px;
    font-weight: 600;
    color: #ececec;
}

.mc-inspector-dur-pill--readonly .mc-inspector-dur-unit {
    padding-left: 0;
}

html[data-theme="light"] .mc-capcut-progress-wrap {
    background: #f0f0f2;
}

html[data-theme="light"] .mc-capcut-live-shot {
    color: #0d9488;
}

.music-clip-source {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.music-clip-source-title {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 8px;
}

.music-clip-source-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.music-clip-source-opt {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.25);
    cursor: pointer;
    user-select: none;
}

.music-clip-source-upload {
    margin-top: 10px;
    display: grid;
    gap: 10px;
}

.music-clip-ref-preview img {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.music-clip-ref-preview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mc-ref-thumb {
    position: relative;
}

.mc-ref-thumb img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.35);
}

.mc-ref-del {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(0, 0, 0, 0.55);
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}

html[data-theme="light"] .music-clip-source {
    border-color: rgba(0, 0, 0, 0.08);
    background: rgba(0, 0, 0, 0.03);
}

html[data-theme="light"] .music-clip-source-opt {
    border-color: rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.7);
}

html[data-theme="light"] .mc-inspector-dur-label {
    color: rgba(0, 0, 0, 0.5);
}

html[data-theme="light"] .mc-inspector-dur-pill {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] .mc-inspector-dur-pill:focus-within {
    border-color: rgba(13, 148, 136, 0.45);
    box-shadow:
        inset 0 1px 0 #fff,
        0 0 0 2px rgba(13, 148, 136, 0.15);
}

html[data-theme="light"] .mc-inspector-dur-field {
    color: #1a1a1a;
}

html[data-theme="light"] .mc-inspector-dur-pill .mc-inspector-dur-unit {
    color: rgba(0, 0, 0, 0.45);
    background: rgba(0, 0, 0, 0.04);
    border-left-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .mc-inspector-dur-readonly-val {
    color: #1a1a1a;
}

.mc-inspector-regen-btn {
    width: 100%;
    justify-content: center;
}

.mc-inspector-regen-btn.is-disabled,
.mc-inspector-regen-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    filter: grayscale(0.25);
}

.mc-inspector-regen-usage,
.mc-dialog-regen-usage {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(124, 58, 237, 0.24);
    background: rgba(124, 58, 237, 0.1);
    color: rgba(226, 232, 240, 0.86);
    font-size: 12px;
    line-height: 1.35;
}

.mc-inspector-regen-usage.is-paid,
.mc-dialog-regen-usage.is-paid {
    border-color: rgba(245, 158, 11, 0.36);
    background: rgba(245, 158, 11, 0.12);
    color: #fde68a;
}

.mc-inspector-last-prompt {
    display: grid;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(124, 92, 255, 0.18);
    background: rgba(124, 92, 255, 0.08);
}

.mc-inspector-last-prompt-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.6);
}

.mc-inspector-last-prompt-text {
    font-size: 13px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.9);
}

.mc-capcut-track-transitions {
    display: flex;
    align-items: center;
    gap: 0;
    min-height: 42px;
    margin-top: 8px;
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.mc-capcut-transition-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    flex-shrink: 0;
}

.mc-capcut-transition-slot.is-empty {
    opacity: 0;
    pointer-events: none;
}

.mc-capcut-transition-chip {
    max-width: calc(100% - 8px);
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.38);
    color: rgba(255, 255, 255, 0.88);
    font-size: 11px;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.mc-capcut-transition-chip.is-selected {
    border-color: rgba(0, 198, 192, 0.45);
    background: rgba(0, 198, 192, 0.12);
    color: #c8fff9;
}

.mc-dialog.hidden {
    display: none;
}

.mc-dialog {
    position: fixed;
    inset: 0;
    z-index: 1200;
}

.mc-dialog-backdrop {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(5, 8, 20, 0.72);
    backdrop-filter: blur(8px);
}

.mc-dialog-card {
    width: min(680px, 100%);
    max-height: min(90vh, 860px);
    overflow: auto;
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(124, 92, 255, 0.24);
    background:
        radial-gradient(circle at top right, rgba(124, 92, 255, 0.16), transparent 34%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(11, 18, 32, 0.98));
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.mc-dialog-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.mc-dialog-title {
    font-size: 20px;
    font-weight: 700;
    color: #f8fafc;
}

.mc-dialog-hint,
.mc-dialog-helper {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(226, 232, 240, 0.78);
}

.mc-dialog-close {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    font-size: 20px;
}

.mc-dialog-preview {
    display: grid;
    gap: 10px;
}

.mc-dialog-preview img,
.mc-dialog-preview-empty {
    width: 100%;
    min-height: 220px;
    max-height: 320px;
    object-fit: contain;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.mc-dialog-preview-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.65);
}

.mc-dialog-preview-meta {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(226, 232, 240, 0.82);
}

.mc-dialog-field {
    display: grid;
    gap: 8px;
}

.mc-dialog-textarea {
    width: 100%;
    min-height: 144px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.26);
    color: #f8fafc;
    resize: vertical;
    outline: none;
}

.mc-dialog-textarea:focus {
    border-color: rgba(0, 198, 192, 0.45);
    box-shadow: 0 0 0 3px rgba(0, 198, 192, 0.12);
}

.mc-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

html[data-theme="light"] .mc-inspector-last-prompt {
    border-color: rgba(124, 92, 255, 0.18);
    background: rgba(124, 92, 255, 0.08);
}

html[data-theme="light"] .mc-inspector-last-prompt-title {
    color: rgba(0, 0, 0, 0.55);
}

html[data-theme="light"] .mc-inspector-last-prompt-text,
html[data-theme="light"] .mc-capcut-transition-chip,
html[data-theme="light"] .mc-dialog-title {
    color: #0f172a;
}

html[data-theme="light"] .mc-capcut-track-transitions {
    background: rgba(0, 0, 0, 0.03);
}

html[data-theme="light"] .mc-capcut-transition-chip {
    border-color: rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] .mc-capcut-transition-chip.is-selected {
    border-color: rgba(13, 148, 136, 0.45);
    background: rgba(13, 148, 136, 0.12);
    color: #0f172a;
}

html[data-theme="light"] .mc-dialog-card {
    background:
        radial-gradient(circle at top right, rgba(124, 92, 255, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 251, 0.98));
    border-color: rgba(124, 92, 255, 0.18);
}

html[data-theme="light"] .mc-dialog-hint,
html[data-theme="light"] .mc-dialog-helper,
html[data-theme="light"] .mc-dialog-preview-meta {
    color: rgba(15, 23, 42, 0.72);
}

html[data-theme="light"] .mc-dialog-close {
    border-color: rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.04);
    color: #0f172a;
}

html[data-theme="light"] .mc-dialog-preview img,
html[data-theme="light"] .mc-dialog-preview-empty,
html[data-theme="light"] .mc-dialog-textarea {
    border-color: rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
}
