/* ──────────────────────────────────────────────────────────────────────
   Idle-Card — saved-default management UI rendered in Schedule + Basic tabs.
   Also hosts the av-segmented control (only consumer today; promote to
   components.css if another component starts using it).
   ────────────────────────────────────────────────────────────────────── */

.av-idle-card .av-idle-card-hint {
    margin: 0 0 var(--space-md) 0;
    font-size: var(--font-sm);
    line-height: 1.55;
    color: var(--text-muted);
}

.av-idle-card-preview-slot {
    margin-bottom: var(--space-md);
}

.av-idle-card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-warm, oklch(0.97 0.005 255));
    border: 1px solid var(--border-light);
    cursor: pointer;
}

.av-idle-card-thumb iframe {
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
}

.av-idle-card-thumb:hover,
.av-idle-card-thumb:focus-visible {
    outline: 2px solid var(--accent-primary, #2563eb);
    outline-offset: 2px;
}

.av-idle-card-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 28px 16px;
    border-radius: 10px;
    background: var(--bg-warm, oklch(0.97 0.005 255));
    border: 1px dashed var(--border-light);
    text-align: center;
}

.av-idle-card-empty-icon {
    font-size: 24px;
    line-height: 1;
    color: var(--text-muted);
}

.av-idle-card-empty-title {
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.av-idle-card-empty-hint {
    font-size: var(--font-xs);
    color: var(--text-muted);
    max-width: 36em;
    line-height: 1.45;
}

.av-idle-card-policy {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: var(--space-md);
}

.av-idle-card-policy-label {
    font-size: var(--font-xs);
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.av-segmented {
    display: inline-flex;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface, white);
}

.av-segmented-option {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 6px 14px;
    font-size: var(--font-sm);
    cursor: pointer;
    color: var(--text-primary);
}

.av-segmented-option + .av-segmented-option {
    border-left: 1px solid var(--border-light);
}

.av-segmented-option.is-active {
    background: var(--accent-primary, #2563eb);
    color: white;
}

.av-segmented-option:not(.is-active):hover {
    background: var(--bg-warm, oklch(0.97 0.005 255));
}

.av-idle-card-dormant {
    font-size: var(--font-xs);
    color: var(--text-muted);
    padding: 6px 10px;
    background: var(--bg-warm, oklch(0.97 0.005 255));
    border-radius: 6px;
    border-left: 3px solid var(--accent-warning, #f59e0b);
}

.av-idle-card-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.av-idle-card-preview-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.av-idle-card-preview-modal {
    background: var(--surface, white);
    border-radius: 12px;
    width: min(92vw, 1200px);
    height: min(86vh, 720px);
    display: flex;
    flex-direction: column;
}

.av-idle-card-preview-body {
    flex: 1;
    padding: 0;
    overflow: hidden;
}

.av-idle-card-preview-body iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Quick-Send Idle-Mode: per-display progress list rendered into #qs-result-area
   while the sequential send loop is running. */

.av-qs-idle-progress {
    margin-top: var(--space-md);
    padding: 12px 14px;
    border-radius: 8px;
    background: var(--bg-warm, oklch(0.97 0.005 255));
    border: 1px solid var(--border-light);
}

.av-qs-idle-progress-heading {
    margin: 0 0 8px 0;
    font-size: var(--font-xs);
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.av-qs-progress-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.av-qs-progress-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--font-sm);
    padding: 4px 0;
}

.av-qs-progress-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--surface, white);
    border: 1px solid var(--border-light);
    font-size: 12px;
    line-height: 1;
}

.av-qs-progress-item[data-status="running"] .av-qs-progress-icon {
    color: var(--accent-primary, #2563eb);
    animation: av-qs-spin 1s linear infinite;
}

.av-qs-progress-item[data-status="ok"] .av-qs-progress-icon {
    color: var(--accent-success, #16a34a);
    border-color: var(--accent-success, #16a34a);
}

.av-qs-progress-item[data-status="fail"] .av-qs-progress-icon {
    color: var(--accent-danger, #dc2626);
    border-color: var(--accent-danger, #dc2626);
}

.av-qs-progress-label {
    flex: 1;
}

.av-qs-progress-error {
    font-size: var(--font-xs);
    color: var(--text-muted);
}

@keyframes av-qs-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
