.sqm-v7-wrap,
.sqm-leaderboard-wrap,
.sqm-history-wrap,
.sqm-archive-wrap,
.sqm-daily-quiz-box {
    max-width: 1000px;
    margin: 30px auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,.05);
    font-family: Arial, sans-serif;
}

.sqm-v7-wrap h2,
.sqm-v7-wrap h3,
.sqm-leaderboard-wrap h2,
.sqm-history-wrap h2,
.sqm-archive-wrap h1 {
    margin-top: 0;
}

.sqm-description,
.sqm-instruction-card,
.sqm-ad,
.sqm-question-box,
.sqm-result-card,
.sqm-quiz-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 18px;
}

.sqm-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #111827;
    color: #fff;
    padding: 12px 18px;
    border-radius: 12px;
    margin-bottom: 18px;
}

.sqm-timer {
    font-size: 20px;
    font-weight: bold;
}

.sqm-cheat-warning {
    font-size: 14px;
    background: #dc2626;
    padding: 6px 10px;
    border-radius: 8px;
}

.sqm-question-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
}

.sqm-option {
    display: block;
    padding: 14px 16px;
    margin-bottom: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: .2s ease;
    background: #fff;
}

.sqm-option:hover {
    border-color: #2563eb;
    background: #eff6ff;
}

.sqm-option input {
    margin-right: 10px;
}

.sqm-option.selected {
    border-color: #2563eb;
    background: #dbeafe;
}

.sqm-option.correct {
    border-color: #16a34a;
    background: #dcfce7;
}

.sqm-option.wrong {
    border-color: #dc2626;
    background: #fee2e2;
}

.sqm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.sqm-actions button,
.sqm-start-btn,
.sqm-card-btn,
.sqm-retry-btn,
.sqm-print-btn {
    border: none;
    background: #2563eb;
    color: #fff;
    padding: 12px 18px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.sqm-actions button:hover,
.sqm-start-btn:hover,
.sqm-card-btn:hover,
.sqm-retry-btn:hover,
.sqm-print-btn:hover {
    opacity: .9;
}

.sqm-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.sqm-palette button {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 10px;
    background: #e5e7eb;
    cursor: pointer;
    font-weight: bold;
}

.sqm-palette button.active {
    background: #2563eb;
    color: #fff;
}

.sqm-palette button.answered {
    background: #16a34a;
    color: #fff;
}

.sqm-palette button.review {
    background: #f59e0b;
    color: #fff;
}

.sqm-table-wrap {
    overflow-x: auto;
}

.sqm-table {
    width: 100%;
    border-collapse: collapse;
}

.sqm-table th,
.sqm-table td {
    padding: 12px;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.sqm-table th {
    background: #111827;
    color: #fff;
}

.sqm-archive-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.sqm-archive-filter input,
.sqm-archive-filter select,
.sqm-archive-filter button {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.sqm-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 18px;
}

.sqm-card-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #555;
}

.sqm-result-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(150px,1fr));
    gap: 15px;
    margin: 20px 0;
}

.sqm-stat-box {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 14px;
    padding: 16px;
    text-align: center;
}

.sqm-pass {
    color: #16a34a;
    font-weight: 700;
}

.sqm-fail {
    color: #dc2626;
    font-weight: 700;
}

@media(max-width:768px){
    .sqm-v7-wrap,
    .sqm-leaderboard-wrap,
    .sqm-history-wrap,
    .sqm-archive-wrap,
    .sqm-daily-quiz-box {
        padding: 18px;
    }

    .sqm-question-title {
        font-size: 18px;
    }

    .sqm-actions {
        flex-direction: column;
    }

    .sqm-actions button,
    .sqm-start-btn,
    .sqm-card-btn,
    .sqm-retry-btn,
    .sqm-print-btn {
        width: 100%;
    }
}