/* Shared Check Panel styles (WHOIS + DNS two-column inline panel) */

.btn-action.check-toggle.active {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6);
}

.dk-list-row:has(.check-inline[style*="block"]) {
    margin-bottom: 8px;
}

.dk-list-row:has(.check-inline[style*="block"]) .dk-list-card {
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.08);
    margin-bottom: 0;
}

.check-inline {
    background: #fff;
    border-radius: 0 0 8px 8px;
    padding: 0 20px 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    position: relative;
}

.ci-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    color: var(--gray, #6b7280);
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: .15s;
    z-index: 1;
}

.ci-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.check-inline-loading,
.check-inline-error {
    padding: 12px 0;
    font-size: 13px;
    color: var(--gray, #6b7280);
}

.check-inline-error {
    color: #A32D2D;
}

.check-inline-box {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 0 36px;
    border-top: 1px solid #f3f4f6;
    padding: 12px 0 4px;
}

.ci-divider {
    background: #e5e7eb;
    width: 1px;
    align-self: stretch;
}

.ci-whois,
.ci-dns {
    min-width: 0;
}

.ci-whois.is-refreshing,
.ci-dns.is-refreshing {
    opacity: .45;
    pointer-events: none;
}

.ci-col-head {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--gray, #6b7280);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ci-field {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 5px 0;
    font-size: 13px;
    line-height: 1.7;
}

.ci-label {
    flex: 0 0 80px;
    font-size: 11px;
    color: var(--gray, #6b7280);
    font-weight: 600;
}

.ci-val {
    flex: 1;
    min-width: 0;
    color: var(--dark, var(--text-primary));
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ci-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.ci-link:hover {
    text-decoration: underline;
}

.ci-chips {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.ci-chip {
    display: inline-block;
    font-size: 11px;
    color: var(--dark, var(--text-primary));
    background: #f3f4f6;
    border-radius: 4px;
    padding: 3px 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    word-break: break-all;
    transition: .2s;
}

.ci-chip:hover {
    background: #e5e7eb;
    color: var(--primary);
}

.ci-more {
    font-size: 11px;
    color: var(--primary);
    cursor: default;
}

.ci-dates {
    display: inline;
    font-size: 13px;
}

.ci-date-sep {
    font-size: 10px;
    color: var(--gray, #6b7280);
    text-transform: uppercase;
    margin-right: 2px;
}

.ci-date-div {
    margin: 0 10px;
    color: #d1d5db;
}

.ci-collapse-cb {
    display: none;
}

.ci-collapse-rest > * {
    display: none;
}

.ci-collapse-cb:checked ~ .ci-collapse-rest > * {
    display: inline-block;
}

.ci-collapse-toggle {
    font-size: 11px;
    color: var(--primary);
    cursor: pointer;
    user-select: none;
    margin-left: 4px;
}

.ci-collapse-toggle:hover {
    text-decoration: underline;
}

.ci-toggle-less {
    display: none;
}

.ci-collapse-cb:checked ~ .ci-collapse-toggle .ci-toggle-more {
    display: none;
}

.ci-collapse-cb:checked ~ .ci-collapse-toggle .ci-toggle-less {
    display: inline;
}

.ci-empty {
    font-size: 12px;
    color: var(--gray, #6b7280);
}

.ci-none {
    font-size: 12px;
    color: #d1d5db;
}

.ci-hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 4px 0;
}

.ci-dns-group {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 5px 0;
    font-size: 13px;
}

.ci-dns-type {
    flex: 0 0 48px;
    font-size: 11px;
    font-weight: 600;
    color: var(--gray, #6b7280);
}

.ci-dns-vals {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.ci-dns-val {
    display: inline-block;
    font-size: 12px;
    color: var(--dark, var(--text-primary));
    background: none;
    padding: 0;
    word-break: break-all;
}

.ci-dns-val + .ci-dns-val::before {
    content: ', ';
    color: #d1d5db;
}

.whois-refresh,
.dns-refresh {
    font-size: 11px;
    color: var(--gray, #6b7280);
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: .2s;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.whois-refresh::before,
.dns-refresh::before {
    content: '\21bb';
    font-size: 13px;
}

.whois-refresh:hover,
.dns-refresh:hover {
    color: var(--primary);
}

.whois-refresh.cooling,
.dns-refresh.cooling {
    opacity: .6;
    cursor: not-allowed;
    color: var(--gray, #6b7280);
}

/* Action buttons row below the panel */
.ci-actions {
    display: flex;
    gap: 8px;
    padding: 10px 0 0;
    border-top: 1px solid #f3f4f6;
    margin-top: 4px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.ci-action-btn {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: var(--primary, #0284C7);
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    text-decoration: none;
    cursor: pointer;
    transition: .2s;
    white-space: nowrap;
    line-height: 1.5;
}

.ci-action-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

/* Mobile: compact single-column WHOIS-only panel */
@media (max-width: 800px) {
    .check-inline-box {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .ci-divider,
    .ci-dns {
        display: none;
    }
    .ci-actions {
        justify-content: center;
    }
    .ci-action-btn {
        font-size: 11px;
        padding: 5px 10px;
    }
}
