/* Divide & Conquer - Binary Change Analyzer */
.dc-hero { margin: 12px 0 18px; }
.dc-hero h1 { margin-bottom: 2px; }
.dc-hero .dc-sub { font-size: 1.15rem; font-weight: 650; color: var(--text-secondary, #E2E8F0); margin: 0 0 10px; }
.dc-hero p { max-width: 820px; line-height: 1.55; }

.dc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.dc-card {
    background: var(--bg-panel, #63738A);
    border: 1px solid rgba(226, 232, 240, .22);
    border-radius: 14px;
    padding: 18px;
    margin: 14px 0;
}
.dc-card h2, .dc-card h3 { margin-top: 0; }
.dc-muted { opacity: .82; font-size: .92rem; }
.dc-mono { font-family: Consolas, "Courier New", monospace; }
.dc-break { word-break: break-all; }

.dc-funnel { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 8px 0; }
.dc-funnel span {
    display: block;
    text-align: center;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(37, 99, 235, .35);
    font-weight: 700;
    font-size: .92rem;
}
.dc-funnel i { font-style: normal; opacity: .7; line-height: 1; }
.dc-funnel .dc-funnel-end { background: rgba(239, 68, 68, .55); }

.dc-steps { margin: 8px 0 0 18px; line-height: 1.7; }
.dc-why-login { border-left: 4px solid var(--primary, #2563EB); }
.dc-why-login h3 { margin-bottom: 4px; }

.dc-upload-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.dc-upload-label { font-weight: 800; font-size: 1.05rem; margin-bottom: 6px; display: block; }
.dc-upload-label small { display: block; font-weight: 500; opacity: .8; }
.dc-label-good { color: #A7F3D0; }
.dc-label-bad { color: #FECACA; }

.dc-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 750;
    background: rgba(226, 232, 240, .2);
    white-space: nowrap;
}
.dc-badge-waiting_test, .dc-badge-pending { background: rgba(245, 158, 11, .45); }
.dc-badge-completed, .dc-badge-pass { background: rgba(16, 185, 129, .5); }
.dc-badge-fail { background: rgba(239, 68, 68, .6); }
.dc-badge-possible_interaction { background: rgba(168, 85, 247, .55); }
.dc-badge-cancelled, .dc-badge-invalidated, .dc-badge-skipped { background: rgba(15, 23, 42, .35); }
.dc-badge-ready { background: rgba(37, 99, 235, .5); }

.dc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 10px 0; }
.dc-stat { background: rgba(15, 23, 42, .18); border-radius: 10px; padding: 10px 12px; }
.dc-stat b { display: block; font-size: 1.45rem; }
.dc-stat span { font-size: .82rem; opacity: .85; }

.dc-current {
    border: 2px solid rgba(245, 158, 11, .8);
    background: rgba(245, 158, 11, .12);
}
.dc-filename {
    font-family: Consolas, "Courier New", monospace;
    font-size: 1.35rem;
    font-weight: 800;
    word-break: break-all;
    background: rgba(15, 23, 42, .3);
    padding: 10px 12px;
    border-radius: 10px;
    margin: 8px 0;
}
.dc-expect { font-weight: 800; font-size: 1.1rem; margin: 10px 0 6px; }

.dc-big-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 12px 0; }
.dc-big-btn {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 18px 14px;
    font-size: 1.08rem;
    font-weight: 850;
    color: #fff;
    cursor: pointer;
    text-align: center;
    text-decoration: none !important;
}
.dc-btn-fail { background: #B91C1C; }
.dc-btn-fail:hover { background: #991B1B; }
.dc-btn-pass { background: #047857; }
.dc-btn-pass:hover { background: #065F46; }
.dc-btn-neutral { background: rgba(15, 23, 42, .45); }
.dc-btn-neutral:hover { background: rgba(15, 23, 42, .6); }
.dc-btn-primary { background: var(--primary, #2563EB); }
.dc-btn-primary:hover { background: #1D4ED8; }
.dc-btn-download { background: #1E40AF; }

.dc-progress-bar { height: 12px; background: rgba(15, 23, 42, .3); border-radius: 999px; overflow: hidden; margin: 8px 0; }
.dc-progress-bar > div { height: 100%; background: linear-gradient(90deg, #10B981, #34D399); }

.dc-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0; }
.dc-chain span { background: rgba(15, 23, 42, .25); border-radius: 8px; padding: 3px 9px; font-weight: 750; }
.dc-chain i { font-style: normal; opacity: .7; }

.dc-timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 3px solid rgba(226, 232, 240, .3); }
.dc-timeline li { position: relative; margin: 0 0 14px; padding: 10px 12px; background: rgba(15, 23, 42, .16); border-radius: 10px; }
.dc-timeline li::before {
    content: "";
    position: absolute;
    left: -27px;
    top: 14px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #94A3B8;
    border: 2px solid var(--bg-primary, #526174);
}
.dc-timeline li.dc-t-fail::before { background: #EF4444; }
.dc-timeline li.dc-t-pass::before { background: #10B981; }
.dc-timeline li.dc-t-pending::before { background: #F59E0B; }
.dc-timeline li.dc-t-invalidated { opacity: .55; }
.dc-timeline li.dc-t-invalidated .dc-t-head { text-decoration: line-through; }
.dc-t-head { font-weight: 800; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dc-t-body { margin-top: 6px; font-size: .93rem; line-height: 1.5; }
.dc-t-notes { white-space: pre-wrap; background: rgba(15, 23, 42, .2); border-radius: 8px; padding: 6px 8px; margin-top: 6px; font-size: .88rem; }
.dc-inline-form { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.dc-inline-form select, .dc-inline-form input[type=text] { width: auto; min-width: 120px; margin: 0; padding: 6px 8px; }
.dc-inline-form button { padding: 6px 10px; margin: 0; }

.dc-final { border: 2px solid rgba(16, 185, 129, .8); }
.dc-final.dc-final-low { border-color: rgba(239, 68, 68, .8); }
.dc-final-offset { font-family: Consolas, "Courier New", monospace; font-size: 1.6rem; font-weight: 850; }

.dc-table { width: 100%; border-collapse: collapse; }
.dc-table th, .dc-table td { padding: 6px 8px; text-align: left; }
.dc-table td.dc-mono, .dc-table th.dc-mono { font-family: Consolas, "Courier New", monospace; }

.dc-list-item { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; }
.dc-list-item a.dc-list-title { font-weight: 800; font-size: 1.05rem; color: var(--text-primary, #F8FAFC); }
.dc-alert-interaction { border: 2px solid rgba(168, 85, 247, .85); background: rgba(168, 85, 247, .14); }
.dc-checkbox { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; }
.dc-checkbox input { width: auto; margin-top: 4px; }
details.dc-details summary { cursor: pointer; font-weight: 750; }

@media (max-width: 640px) {
    .dc-filename { font-size: 1.05rem; }
    .dc-big-btn { padding: 20px 12px; font-size: 1.12rem; }
    .dc-final-offset { font-size: 1.3rem; }
}
