#instagram-live-check {
    --ig-secondary-bg: #eef2ff;
    --ig-secondary-hover: #dfe8ff;
    --ig-secondary-color: #1e40af;
    --ig-secondary-border: #7d9de0;
    --ig-disabled-bg: #edf0f5;
    --ig-disabled-color: #566173;
    --ig-disabled-border: #bdc7d6;
    --ig-progress-track: #dfe6f2;
}

body.dark #instagram-live-check {
    --ig-secondary-bg: #253657;
    --ig-secondary-hover: #324975;
    --ig-secondary-color: #e0ebff;
    --ig-secondary-border: #8da8de;
    --ig-disabled-bg: #273244;
    --ig-disabled-color: #bac6dc;
    --ig-disabled-border: #53637c;
    --ig-progress-track: #35435c;
}

#instagram-live-check .ig-check-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .75rem;
}

#instagram-live-check .ig-check-actions button {
    min-height: 46px;
    margin: 0;
    font: inherit;
    font-weight: 600;
    line-height: 1.4;
    padding: .75rem 1.5rem;
    border-radius: 2.5rem;
}

#instagram-live-check .ig-secondary-btn {
    color: var(--ig-secondary-color);
    background: var(--ig-secondary-bg);
    border: 1px solid var(--ig-secondary-border);
    cursor: pointer;
    transition: background .2s;
}

#instagram-live-check .ig-secondary-btn:hover:not(:disabled) {
    background: var(--ig-secondary-hover);
}

#instagram-live-check .ig-check-actions button:disabled {
    opacity: 1 !important;
    cursor: not-allowed;
    transform: none !important;
    filter: none;
}

#instagram-live-check #btn-check:disabled {
    color: #fff !important;
    background: linear-gradient(135deg, #1d4ed8, #4338ca) !important;
    box-shadow: none;
}

#instagram-live-check .ig-secondary-btn:disabled {
    color: var(--ig-disabled-color);
    background: var(--ig-disabled-bg);
    border-color: var(--ig-disabled-border);
}

#instagram-live-check .ig-check-actions button:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

#instagram-live-check [hidden] {
    display: none !important;
}

#instagram-live-check .ig-check-progress {
    overflow-wrap: anywhere;
    text-align: center;
    font-size: .9rem;
}

#instagram-live-check .ig-progress-heading {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .4rem 1rem;
    margin-bottom: .65rem;
    color: var(--text-primary);
    font-size: .9rem;
    font-weight: 600;
}

#instagram-live-check .ig-progress-count {
    font-variant-numeric: tabular-nums;
}

#instagram-live-check #ig-progress-bar {
    --ig-progress-fill: #2563eb;
    appearance: none;
    -webkit-appearance: none;
    display: block;
    width: 100%;
    height: 12px;
    border: 0;
    border-radius: 999px;
    overflow: hidden;
    background: var(--ig-progress-track);
    accent-color: var(--ig-progress-fill);
}

body.dark #instagram-live-check #ig-progress-bar {
    --ig-progress-fill: #60a5fa;
}

#instagram-live-check .ig-progress-panel[data-state="incomplete"] #ig-progress-bar {
    --ig-progress-fill: #d97706;
}

body.dark #instagram-live-check .ig-progress-panel[data-state="incomplete"] #ig-progress-bar {
    --ig-progress-fill: #fbbf24;
}

#instagram-live-check #ig-progress-bar::-webkit-progress-bar {
    background: var(--ig-progress-track);
    border-radius: 999px;
}

#instagram-live-check #ig-progress-bar::-webkit-progress-value {
    background: var(--ig-progress-fill);
    border-radius: 999px;
}

#instagram-live-check #ig-progress-bar::-moz-progress-bar {
    background: var(--ig-progress-fill);
    border-radius: 999px;
}

#instagram-live-check .ig-result-note {
    margin-top: .65rem;
    font-size: .8rem;
    line-height: 1.5;
}

#instagram-live-check .result-column textarea {
    resize: vertical;
}

#instagram-live-check textarea.form-control {
    color: #172033 !important;
    -webkit-text-fill-color: currentColor;
    background: #f8faff !important;
    border: 1px solid #c3cfe2 !important;
    opacity: 1;
}

body.dark #instagram-live-check textarea.form-control {
    color: #edf3ff !important;
    background: #202c40 !important;
    border-color: #526480 !important;
}

@media (max-width: 767px) {
    #instagram-live-check .ig-check-actions button {
        flex: 1 1 140px;
    }
}
