.cbt-wrapper {
    max-width: 1080px;
    margin: 20px auto;
    font-family: Arial, sans-serif;
    color: #1e293b;
}

.cbt-top-bar {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 12px 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 15px;
}

.cbt-top-title {
    font-weight: 700;
    color: #0f172a;
}

.cbt-top-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    font-size: 14px;
}

.cbt-start-box {
    text-align: center;
    margin: 22px 0;
}

.cbt-btn-start {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 13px 42px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
}

.cbt-btn-start:hover {
    background: #218838;
}

.cbt-rules-box {
    background: #f8fafc;
    border-left: 4px solid #38bdf8;
    border-radius: 6px;
    padding: 18px 22px;
}

.cbt-rules-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cbt-rules-list li {
    padding: 8px 0;
    font-size: 15px;
}

.cbt-shell {
    display: grid;
    grid-template-columns: 185px 1fr;
    gap: 16px;
    align-items: start;
}

@media (max-width: 780px) {
    .cbt-shell {
        grid-template-columns: 1fr;
    }
}

.cbt-sidebar {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 14px;
    text-align: center;
}

.cbt-panel-heading {
    font-size: 16px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 12px;
}

.cbt-nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 18px;
}

.cbt-q-btn {
    height: 36px;
    border: 2px solid #60a5fa;
    background: #fff;
    color: #1e3a8a;
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.cbt-q-btn.current {
    border-color: #0f172a;
    box-shadow: 0 0 0 2px #0f172a;
}

.cbt-q-btn.answered {
    background: #0284c7;
    border-color: #0284c7;
    color: #fff;
}

.cbt-q-btn.marked {
    background: #f59e0b;
    border-color: #d97706;
    color: #fff;
}

.cbt-legend {
    text-align: left;
    font-size: 13px;
    margin-bottom: 18px;
}

.cbt-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 7px 0;
}

.cbt-swatch {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    display: inline-block;
    flex-shrink: 0;
}

.cbt-swatch-unanswered {
    border: 2px solid #60a5fa;
    background: #fff;
}

.cbt-swatch-answered {
    background: #0284c7;
}

.cbt-swatch-marked {
    background: #f59e0b;
}

.cbt-btn-end-red {
    background: #e11d48;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    font-size: 14px;
}

.cbt-btn-end-red:hover {
    background: #be123c;
}

.cbt-stage {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 20px 24px;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cbt-q-topbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.cbt-btn-mark {
    background: #f59e0b;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    font-size: 13px;
}

.cbt-q-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
}

.cbt-q-num-box {
    border: 1px solid #64748b;
    padding: 6px 12px;
    font-weight: 700;
    border-radius: 4px;
    background: #f8fafc;
    flex-shrink: 0;
}

.cbt-q-text {
    font-size: 18px;
    line-height: 1.5;
    color: #0f172a;
}

.cbt-options-list {
    margin-left: 48px;
}

@media (max-width: 780px) {
    .cbt-options-list {
        margin-left: 0;
    }
}

.cbt-option-item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 12px 0;
    cursor: pointer;
    font-size: 16px;
}

.cbt-option-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cbt-opt-letter {
    width: 34px;
    height: 34px;
    border: 2px solid #475569;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #0f172a;
    background: #fff;
    flex-shrink: 0;
}

.cbt-option-item input[type="radio"]:checked + .cbt-opt-letter {
    background: #0284c7;
    border-color: #0284c7;
    color: #fff;
}

.cbt-bottom-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
}

.cbt-btn-green-nav {
    background: #68b684;
    color: #fff;
    border: none;
    padding: 9px 18px;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
}

.cbt-btn-green-nav:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.cbt-warning-banner {
    display: none;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    color: #92400e;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 14px;
    font-weight: 700;
}

.cbt-card-box {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 24px;
}

.cbt-btn-primary {
    background: #0284c7;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    font-size: 15px;
}