/* Модалка очереди активных генераций (image/video) */
.gen-queue-modal[hidden] { display: none !important; }
.gen-queue-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.gen-queue-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}
.gen-queue-modal__panel {
    position: relative;
    width: min(480px, 100%);
    max-height: min(80dvh, 560px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(59, 0, 49, 0.2);
}
.gen-queue-modal__header {
    padding: 16px 44px 8px 16px;
    border-bottom: 1px solid #f1f5f9;
}
.gen-queue-modal__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #3b0031;
}
.gen-queue-modal__hint {
    margin: 6px 0 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}
.gen-queue-modal__close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: none;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
}
.gen-queue-modal__body {
    padding: 12px 16px;
    overflow-y: auto;
    flex: 1;
}
.gen-queue-modal__footer {
    padding: 12px 16px 16px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.gen-queue-section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    margin: 12px 0 8px;
}
.gen-queue-section-title:first-child { margin-top: 0; }
.gen-queue-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 8px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    justify-content: space-between;
}
.gen-queue-item__meta { flex: 1; min-width: 0; }
.gen-queue-item__model {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}
.gen-queue-item__desc {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
    word-break: break-word;
}
.gen-queue-item__status {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
}
.gen-queue-item__stop {
    flex-shrink: 0;
    border: 1px solid #fecaca;
    background: #fff5f5;
    color: #b91c1c;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.gen-queue-empty {
    font-size: 14px;
    color: #64748b;
    text-align: center;
    padding: 24px 8px;
}
.gen-queue-modal__btn {
    flex: 1;
    min-width: 120px;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
}
.gen-queue-modal__btn--danger {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}
body.dark-theme .gen-queue-modal__panel { background: #1e1e1e; }
body.dark-theme .gen-queue-modal__title { color: #e0e0e0; }
body.dark-theme .gen-queue-modal__hint { color: #94a3b8; }
body.dark-theme .gen-queue-modal__header,
body.dark-theme .gen-queue-modal__footer { border-color: #333; }
body.dark-theme .gen-queue-item { border-color: #444; }
body.dark-theme .gen-queue-item__model { color: #e0e0e0; }
body.dark-theme .gen-queue-modal__btn { background: #2a2a2a; border-color: #444; color: #e0e0e0; }
