/**
 * MV Studio — @ Asset Manager page styles
 */

.iimate-mv-assets-app {
    max-width: 960px;
    margin: 40px auto;
    padding: 0 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #ffffff;
}

.iimate-mv-assets-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.iimate-mv-assets-header h2 {
    margin: 0;
    color: #ffffff;
}

.iimate-mv-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.iimate-mv-btn-primary {
    background: #f5a623;
    color: #111111;
}

.iimate-mv-btn-secondary {
    background: #333333;
    color: #ffffff;
}

.iimate-mv-btn-danger {
    background: #3a1a1a;
    color: #e74c3c;
}

.iimate-mv-btn-small {
    padding: 5px 10px;
    font-size: 12px;
}

.iimate-mv-assets-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.iimate-mv-tab {
    padding: 6px 14px;
    border: 1px solid #444444;
    border-radius: 999px;
    background: transparent;
    color: #aaaaaa;
    font-size: 13px;
    cursor: pointer;
}

.iimate-mv-tab.is-active {
    background: #f5a623;
    border-color: #f5a623;
    color: #111111;
    font-weight: 600;
}

.iimate-mv-assets-form-panel {
    background: #1a1a1a;
    border: 1px solid #444444;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 24px;
}

.iimate-mv-assets-form-panel h3 {
    margin: 0 0 12px;
    color: #ffffff;
}

.iimate-mv-field {
    display: block;
    font-size: 13px;
    color: #cccccc;
    margin-bottom: 12px;
}

.iimate-mv-field input,
.iimate-mv-field select,
.iimate-mv-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    margin-top: 4px;
    background: #111111;
    color: #ffffff;
    border: 1px solid #444444;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.iimate-mv-form-error {
    color: #e74c3c;
    font-size: 13px;
    min-height: 18px;
    margin-bottom: 8px;
}

.iimate-mv-form-actions {
    display: flex;
    gap: 8px;
}

.iimate-mv-assets-empty {
    padding: 40px 20px;
    text-align: center;
    color: #999999;
    border: 1px dashed #444444;
    border-radius: 10px;
}

.iimate-mv-assets-loading {
    padding: 40px 20px;
    text-align: center;
    color: #999999;
}

.iimate-mv-assets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.iimate-mv-asset-card {
    background: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.iimate-mv-asset-thumb {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    background: #555555;
    align-self: flex-start;
}

.iimate-mv-asset-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.iimate-mv-asset-type-badge {
    display: inline-block;
    align-self: flex-start;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 2px 8px;
    border-radius: 999px;
    color: #111111;
}

.iimate-mv-asset-label {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    word-break: break-word;
}

.iimate-mv-asset-handle {
    font-size: 12px;
    color: #f5a623;
}

.iimate-mv-asset-prompt-preview {
    font-size: 12px;
    color: #999999;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.iimate-mv-asset-actions {
    display: flex;
    gap: 6px;
    margin-top: auto;
    padding-top: 6px;
}

.iimate-mv-image-upload-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.iimate-mv-image-preview {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    background: #111111;
    border: 1px dashed #444444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #666666;
    flex: 0 0 auto;
}

.iimate-mv-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}