/* ===== study-room/categories ===== */
        .sr-banner {
            display: flex;
            align-items: center;
            gap: 10px;
            margin: 10px 5px;
            padding: 10px 15px;
            font-size: 18px;
            font-weight: 600;
            color: #fff;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
        }
        .sr-banner .material-symbols-outlined { font-size: 28px; }

        .sr-card {
            --tone: #2563eb;
            --tone-2: #60a5fa;
            position: relative;
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 16px;
            padding: 16px 18px;
            min-height: 88px;
            width: 100%;
            background: var(--surface-1);
            color: var(--text-dark);
            text-align: left;
            text-decoration: none;
            border-radius: 16px;
            overflow: hidden;
            cursor: pointer;
            border: 1px solid rgba(0,0,0,.05) !important;
            transition: transform .18s ease, box-shadow .18s ease;
        }
        .sr-card::before {
            content: "";
            position: absolute;
            inset: 0 auto 0 0;
            width: 4px;
            background: linear-gradient(180deg, var(--tone), var(--tone-2));
        }
        .sr-card::after {
            content: "";
            position: absolute;
            right: -30px; top: -30px;
            width: 100px; height: 100px;
            border-radius: 50%;
            background: var(--tone);
            opacity: .06;
            pointer-events: none;
        }
        .sr-card:hover { color: var(--text-dark); transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.12) !important; }
        .sr-tone-0 { --tone: #2563eb; --tone-2: #60a5fa; }
        .sr-tone-1 { --tone: #7c3aed; --tone-2: #a78bfa; }
        .sr-tone-2 { --tone: #059669; --tone-2: #34d399; }
        .sr-tone-3 { --tone: #ea580c; --tone-2: #fb923c; }
        .sr-tone-4 { --tone: #db2777; --tone-2: #f472b6; }
        .sr-tone-5 { --tone: #0891b2; --tone-2: #22d3ee; }
        .sr-card-icon-wrap {
            flex: 0 0 auto;
            width: 54px;
            height: 54px;
            border-radius: 14px;
            display: grid;
            place-items: center;
            background: linear-gradient(135deg, var(--tone), var(--tone-2));
            box-shadow: 0 6px 14px color-mix(in srgb, var(--tone) 35%, transparent);
        }
        .sr-card-icon {
            display: block;
            width: 28px;
            height: 28px;
            font-size: 28px;
            line-height: 28px;
            text-align: center;
            color: #fff;
            font-variation-settings: 'FILL' 1;
        }
        .sr-card-label { flex: 1 1 auto; min-width: 0; font-weight: 600; font-size: 1rem; line-height: 1.4; }
        .sr-card-arrow {
            flex: 0 0 auto;
            width: 34px; height: 34px;
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            background: color-mix(in srgb, var(--tone) 12%, transparent);
            color: var(--tone);
            transition: background .18s, color .18s, transform .18s;
        }
        .sr-card-arrow .material-symbols-outlined { font-size: 20px; }
        .sr-card:hover .sr-card-arrow { background: var(--tone); color: #fff; transform: translateX(3px); }
        @media (max-width: 575.98px) {
            .sr-card { flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 16px 10px; min-height: 140px; }
            .sr-card::before { inset: 0 0 auto 0; width: auto; height: 4px; }
            .sr-card-icon-wrap { width: 48px; height: 48px; margin: 0 auto; }
            .sr-card-label { flex: 0 1 auto; width: 100%; font-size: .9rem; }
            .sr-card-arrow { display: none; }
        }

        /* topic lists (group + topic pages) */
        .sr-sec { margin: 18px 4px 6px; scroll-margin-top: 66px; }

        /* quick index: sticky chip bar above the sections */
        .sr-index {
            position: sticky;
            top: 0;
            z-index: 9;
            display: flex;
            gap: 6px;
            margin: 0 0 4px;
            padding: 6px;
            overflow-x: auto;
            overflow-y: hidden;
            scrollbar-width: none;
            background: var(--surface-1);
            border: 1px solid var(--border-color);
            border-radius: 14px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
        }
        .sr-index[hidden] { display: none; }
        .sr-index::-webkit-scrollbar { display: none; }
        .sr-chip {
            flex: 0 0 auto;
            display: inline-flex;
            align-items: center;
            gap: 7px;
            padding: 7px 14px;
            white-space: nowrap;
            font-size: .88rem;
            font-weight: 600;
            color: var(--text-light);
            background: transparent;
            border: 0;
            border-radius: 999px;
            cursor: pointer;
            transition: background .2s, color .2s, box-shadow .2s;
        }
        .sr-chip-dot { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--tone), var(--tone-2)); }
        .sr-chip:hover { background: var(--hover-bg); color: var(--text-dark); }
        .sr-chip.active {
            color: #fff;
            background: linear-gradient(135deg, var(--tone), var(--tone-2));
            box-shadow: 0 5px 12px color-mix(in srgb, var(--tone) 35%, transparent);
        }
        .sr-chip.active .sr-chip-dot { background: #fff; }
        .sr-sec-title {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 10px;
            margin: 0 0 10px;
            font-size: 1.02rem;
            font-weight: 800;
            color: var(--text-dark);
        }
        .sr-sec-title::before { content: ""; width: 5px; height: 20px; border-radius: 4px; background: linear-gradient(180deg, var(--tone), var(--tone-2)); }
        .sr-rows { display: grid; gap: 10px; }
        @media (min-width: 768px) { .sr-rows { grid-template-columns: repeat(2, 1fr); } }
        .sr-row {
            position: relative;
            display: flex;
            align-items: center;
            gap: 12px;
            width: 100%;
            padding: 11px 14px 11px 18px;
            color: var(--text-dark);
            text-align: left;
            text-decoration: none;
            background: var(--surface-1);
            overflow: hidden;
            border: 1px solid rgba(0, 0, 0, .05);
            border-radius: 16px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
            cursor: pointer;
            transition: transform .18s ease, box-shadow .18s ease;
        }
        .sr-row::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(180deg, var(--tone), var(--tone-2)); }
        .sr-row:hover { color: var(--text-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .14); }
        .sr-row-icon {
            flex: 0 0 auto;
            width: 40px;
            height: 40px;
            display: grid;
            place-items: center;
            border-radius: 12px;
            background: linear-gradient(135deg, var(--tone), var(--tone-2));
            box-shadow: 0 5px 12px color-mix(in srgb, var(--tone) 32%, transparent);
        }
        .sr-row-icon .material-symbols-outlined { color: #fff; font-size: 22px; font-variation-settings: 'FILL' 1; }
        .sr-row-title { flex: 1 1 auto; min-width: 0; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
        .sr-row-go {
            flex: 0 0 auto;
            width: 32px;
            height: 32px;
            display: grid;
            place-items: center;
            border-radius: 50%;
            color: var(--tone);
            background: color-mix(in srgb, var(--tone) 12%, transparent);
            transition: background .18s, color .18s;
        }
        .sr-row-go .material-symbols-outlined { font-size: 19px; }
        .sr-row:hover .sr-row-go { background: var(--tone); color: #fff; }

/* ===== study-room/study-mcq ===== */
        /* the question card is the shared .sol-* card in mcq.css */
        .sm-toolbar {
            position: sticky;
            top: 0;
            z-index: 9;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin: 10px 8px 4px;
            padding: 6px;
            background: var(--surface-1);
            border: 1px solid var(--border-color);
            border-radius: 14px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
        }
        .sm-tool {
            flex: 1 1 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 9px 10px;
            font-size: .88rem;
            font-weight: 700;
            white-space: nowrap;
            color: #fff;
            border: 0;
            border-radius: 11px;
            box-shadow: 0 5px 12px rgba(0, 0, 0, .15);
            transition: transform .18s, box-shadow .18s;
        }
        .sm-tool:hover { transform: translateY(-1px); }
        .sm-tool.d-none { display: none !important; }
        .sm-tool .material-symbols-outlined { font-size: 20px; }
        .sm-tool-ans { background: linear-gradient(135deg, #129ae8, #7c3aed); }
        .sm-tool-expl { background: linear-gradient(135deg, #f5a623, #ea580c); }
        .sm-tool-bm { flex: 0 0 auto; background: linear-gradient(135deg, #ec407a, #db2777); }

        .sm-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 10px 0; }
        .sm-pager .form-select {
            width: 150px;
            text-align: center;
            font-weight: 700;
            color: var(--text-dark);
            background-color: var(--surface-1);
            border: 1.5px solid var(--border-color);
            border-radius: 999px;
        }
        .sm-nav {
            width: 40px;
            height: 40px;
            display: grid;
            place-items: center;
            padding: 0;
            color: #fff;
            background: linear-gradient(135deg, #129ae8, #7c3aed);
            border: 0;
            border-radius: 50%;
            box-shadow: 0 5px 12px rgba(18, 154, 232, .3);
            transition: transform .18s;
        }
        .sm-nav:hover { transform: scale(1.08); }
        .sm-nav .material-symbols-outlined { font-size: 26px; }

        #qc .sol-option { cursor: pointer; }
        #qc .sol-option.locked { cursor: default; }
        #qc.bm-only .sol-mcq:not(.bookmarked) { display: none; }
