.module-config-admin-page .recharge-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.module-config-layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
    min-height: 36rem;
}
.module-config-list-panel,
.module-config-body-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    min-width: 0;
}
.module-config-list-title {
    font-weight: 800;
    color: #0f172a;
    margin-bottom: .75rem;
}
.module-config-item {
    display: block;
    width: 100%;
    text-align: left;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 10px;
    padding: .75rem .85rem;
    margin-bottom: .55rem;
    color: #334155;
}
.module-config-item small {
    display: block;
    margin-top: .2rem;
    color: #64748b;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: .75rem;
}
.module-config-item.is-active {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
}
.module-config-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
}
.module-config-section-head h2 {
    margin: 0;
    font-size: 1.05rem;
}
.module-config-admin-page .mc-tool-row {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: .9rem;
    margin-bottom: .85rem;
    background: #f8fafc;
}
.mc-tool-row-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    margin-bottom: .75rem;
}
.module-config-admin-page .mc-tool-row--add {
    background: #fff;
    border-style: dashed;
    padding: .75rem;
}
.mc-add-tool-card {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-height: 72px;
}
.mc-add-tool-card .mc-plus-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border: 1.5px dashed #94a3b8;
    border-radius: 10px;
    color: #64748b;
    background: #fff;
    cursor: pointer;
}
.mc-add-tool-card .form-select {
    max-width: 280px;
}
.mc-plus-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.mc-plus-icon svg {
    width: 22px;
    height: 22px;
}
.mc-media-list,
.mc-poster-list {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: flex-start;
}
.mc-media-item {
    position: relative;
    width: 120px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.mc-media-item img,
.mc-media-item video {
    display: block;
    width: 100%;
    height: 88px;
    object-fit: cover;
    background: #0f172a08;
}
.mc-media-item button {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 23, 42, .72);
    color: #fff;
    line-height: 1;
    font-size: 14px;
}
.mc-media-type {
    display: block;
    padding: .25rem .4rem;
    font-size: .72rem;
    color: #64748b;
    text-align: center;
}
.mc-media-add {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 118px;
    border-style: dashed;
    cursor: pointer;
    color: #64748b;
    background: #fff;
}
.mc-media-add input,
.mc-poster-add input {
    display: none !important;
}
.mc-media-add:hover,
.mc-poster-add-tile:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff6ff;
}
.mc-media-add .mc-plus-icon {
    flex: 1;
    width: 100%;
    min-height: 88px;
}
.module-config-admin-page .mc-poster-card,
.module-config-admin-page .mc-poster-add {
    width: 160px;
    flex: 0 0 160px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}
.module-config-admin-page .mc-poster-preview,
.module-config-admin-page .mc-poster-add-tile {
    position: relative;
    box-sizing: border-box;
    width: 160px;
    height: 284px;
    flex-shrink: 0;
    aspect-ratio: auto;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .55rem;
}
.module-config-admin-page .mc-poster-preview img {
    max-width: 100%;
    max-height: 100%;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    object-position: center;
    display: block;
}
.module-config-admin-page .mc-poster-preview {
    cursor: pointer;
}
.mc-poster-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 23, 42, .72);
    color: #fff;
    line-height: 1;
    font-size: 14px;
    z-index: 3;
}
.mc-poster-zoom {
    position: absolute;
    left: 6px;
    bottom: 6px;
    z-index: 3;
    height: 24px;
    padding: 0 .45rem;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, .72);
    color: #fff;
    font-size: .68rem;
    line-height: 24px;
}
.mc-range-field {
    margin-top: .55rem;
}
.mc-range-field .form-label {
    margin-bottom: .2rem;
    font-size: .78rem;
}
.mc-range-input {
    width: 100%;
    display: block;
    margin: 0;
    accent-color: #2563eb;
}
.mc-range-ticks {
    display: flex;
    justify-content: space-between;
    font-size: .72rem;
    color: #64748b;
    margin-top: .1rem;
}
.mc-poster-add {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.module-config-admin-page .mc-poster-add-tile {
    flex-direction: column;
    gap: .35rem;
    border-style: dashed;
    color: #64748b;
    font-size: .82rem;
    margin-bottom: 0;
}
.mc-poster-add-tile .mc-plus-icon {
    width: 48px;
    height: 48px;
    border: 1.5px dashed currentColor;
    border-radius: 12px;
}
.mc-qr-placeholder {
    position: absolute;
    box-sizing: border-box;
    width: calc(var(--qr-size, 0.18) * 100%);
    aspect-ratio: 1;
    border: 1px solid #e11d48;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 1;
}
.mc-qr-modules {
    width: calc((1 - 2 * var(--qr-margin, 0.06)) * 100%);
    height: calc((1 - 2 * var(--qr-margin, 0.06)) * 100%);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}
.mc-qr-placeholder.is-bottom-center { left: 50%; bottom: calc(var(--qr-inset, 0.045) * 100%); transform: translateX(-50%); }
.mc-qr-placeholder.is-bottom-left { left: calc(var(--qr-inset, 0.045) * 100%); bottom: calc(var(--qr-inset, 0.045) * 100%); }
.mc-qr-placeholder.is-bottom-right { right: calc(var(--qr-inset, 0.045) * 100%); bottom: calc(var(--qr-inset, 0.045) * 100%); }
.mc-qr-placeholder.is-top-left { left: calc(var(--qr-inset, 0.045) * 100%); top: calc(var(--qr-inset, 0.045) * 100%); }
.mc-qr-placeholder.is-top-center { left: 50%; top: calc(var(--qr-inset, 0.045) * 100%); transform: translateX(-50%); }
.mc-qr-placeholder.is-top-right { right: calc(var(--qr-inset, 0.045) * 100%); top: calc(var(--qr-inset, 0.045) * 100%); }
.mc-empty-hint {
    color: #64748b;
    font-size: .9rem;
    margin: 0;
}
.mc-generate-form {
    max-width: 42rem;
}
.mc-mode-options {
    display: flex;
    gap: .75rem;
}
.mc-mode-option {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: .55rem .9rem;
    background: #f8fafc;
    cursor: pointer;
}
.mc-mode-option:has(input:checked) {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
}
.mc-duration-row {
    display: flex;
    align-items: center;
    gap: .75rem;
}
.mc-duration-row .form-control {
    max-width: 12rem;
}
.mc-duration-hint {
    color: #475569;
    font-size: .9rem;
    white-space: nowrap;
}
@media (max-width: 991.98px) {
    .module-config-layout { grid-template-columns: 1fr; }
    .module-config-admin-page .recharge-head { flex-direction: column; align-items: stretch; }
}
