/* Moselle Info MTV — styles */
.moselle-info-app {
    max-width: 900px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1f2937;
}
.moselle-info-app h2 {
    font-size: 28px;
    margin: 0 0 12px;
}
.mi-intro {
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 20px;
}
.mi-intro code, .mi-footer code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}

.mi-toolbar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}
.mi-btn {
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s;
}
.mi-btn-choose {
    background: #4f46e5;
    color: #fff;
}
.mi-btn-choose:hover { background: #4338ca; }
.mi-btn-sheet {
    background: #0f9d58;
    color: #fff;
}
.mi-btn-sheet:hover { background: #0c8043; }
.mi-btn-sheet:disabled { background: #9ca3af; cursor: default; }
.mi-btn-addrow {
    background: #e5e7eb;
    color: #374151;
}
.mi-btn-addrow:hover { background: #d1d5db; }
.mi-sheet-status {
    color: #4b5563;
    font-size: 14px;
    margin: -8px 0 18px;
    min-height: 18px;
}
.mi-item-pending {
    background: #fffbeb;
    border-color: #fde68a;
}
.mi-item-empty {
    color: #b45309;
    font-style: italic;
}
.mi-item-vidbtns {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}
.mi-item-vidbtns button {
    border: 1px solid #d1d5db;
    background: #f9fafb;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 13px;
    cursor: pointer;
    color: #374151;
    white-space: nowrap;
}
.mi-vid-add {
    background: #eef2ff !important;
    border-color: #c7d2fe !important;
    color: #4338ca !important;
    font-weight: 500;
}
.mi-vid-add:hover { background: #e0e7ff !important; }
.mi-item-move { display: flex; gap: 4px; }
.mi-count {
    color: #6b7280;
    font-size: 14px;
}

.mi-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}
.mi-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    cursor: grab;
}
.mi-item.mi-dragging { opacity: .5; }
.mi-item-order {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #4f46e5;
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.mi-item-main { flex: 1; min-width: 0; }
.mi-item-file {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mi-item-dur { color: #9ca3af; }
.mi-item-title {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
}
.mi-item-title:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79,70,229,.15);
}
.mi-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}
.mi-item-move button {
    width: 30px;
    height: 30px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #4b5563;
}
.mi-item-move button:hover { background: #f3f4f6; }
.mi-del:hover { background: #fee2e2 !important; color: #b91c1c; }

.mi-gen-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 8px;
}
.mi-btn-generate {
    background: #059669;
    color: #fff;
}
.mi-btn-generate:hover { background: #047857; }
.mi-btn-generate:disabled { background: #9ca3af; cursor: default; }
.mi-gen-status {
    color: #4b5563;
    font-size: 14px;
}

.mi-footer {
    margin-top: 32px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
    color: #9ca3af;
    font-size: 12px;
}

/* Panneau réglages de ce poste */
.mi-settings {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 18px;
    background: #fafafa;
}
.mi-settings summary {
    cursor: pointer;
    font-weight: 600;
    color: #374151;
    user-select: none;
}
.mi-settings-note {
    font-size: 13px;
    color: #6b7280;
    margin: 10px 0 14px;
}
.mi-settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.mi-settings-grid label {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    gap: 5px;
}
.mi-settings-grid input {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 14px;
    font-weight: 400;
}
.mi-set-hint {
    font-weight: 400;
    font-size: 12px;
    color: #9ca3af;
}
.mi-settings-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}
.mi-set-status {
    font-size: 13px;
    color: #059669;
}
@media (max-width: 640px) {
    .mi-settings-grid { grid-template-columns: 1fr; }
}
