/* ============================================================
   css/cbt_question_tools.css
   Modern question editor components shared by:
     - admin_practice_questions.php
     - teacher_cbt_questions.php (+ AJAX edit form)
   ============================================================ */

/* ── Special-character toolbar ─────────────────────────────── */
.cbt-sc-toolbar,
.pq-sc-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .38rem;
    padding: .65rem .75rem;
    margin-bottom: .65rem;
    background: #f8fafc;
    border: 1px solid var(--border-light, #e2e8f0);
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.cbt-sc-group {
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text-muted, #64748b);
    margin: 0 .25rem 0 .15rem;
}

.cbt-sc-btn {
    min-width: 2.55rem;
    height: 2.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 .45rem;
    border: 1px solid var(--border, #cbd5e1);
    border-radius: 8px;
    background: #fff;
    color: var(--text, #0f172a);
    font-size: 1.24rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: transform .12s ease, background .12s ease, border-color .12s ease, box-shadow .12s ease;
}

.cbt-sc-btn:hover {
    background: var(--primary, #0c5430);
    border-color: var(--primary, #0c5430);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,.12);
}

.cbt-sc-btn:active { transform: translateY(0); }

.cbt-sc-btn.cbt-sc-tag {
    min-width: auto;
    padding: 0 .7rem;
    font-size: 1.08rem;
    font-weight: 800;
    background: var(--primary-mist, #e8f5ee);
    border-color: rgba(12,84,48,.22);
    color: var(--primary-dark, #083b22);
}

.cbt-sc-btn.cbt-sc-tag:hover {
    background: var(--primary, #0c5430);
    color: #fff;
}

.cbt-sc-div {
    width: 1px;
    height: 1.75rem;
    background: var(--border, #cbd5e1);
    margin: 0 .35rem;
    opacity: .65;
}

.cbt-sc-compact .cbt-sc-group { display: none; }
.cbt-sc-compact .cbt-sc-div { margin: 0 .2rem; }

/* ── Folded toolbar ──────────────────────────────────────────
   Question editors are calmer when the symbol bars stay hidden
   until the teacher asks for them. */
.cbt-sc-collapse { margin: 0 0 .6rem; }

.cbt-sc-toggle {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem 1.05rem;
    border: 1px solid var(--primary, #0c5430);
    border-radius: 999px;
    background: var(--primary, #0c5430);
    color: #ffffff;
    font-family: inherit;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 4px 14px var(--primary-glow, rgba(12,84,48,.24));
    transition: color .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease, transform .15s ease;
}

.cbt-sc-toggle:hover,
.cbt-sc-toggle:focus-visible {
    border-color: var(--primary-dark, #083b22);
    background: var(--primary-dark, #083b22);
    color: #ffffff;
    box-shadow: 0 8px 20px var(--primary-glow, rgba(12,84,48,.30));
    transform: translateY(-1px);
    outline: none;
}

.cbt-sc-toggle .fa-magic { font-size: 1.15rem; }
.cbt-sc-caret { font-size: .85rem; transition: transform .16s ease; }
.cbt-sc-toggle.is-open .cbt-sc-caret { transform: rotate(180deg); }

.cbt-sc-body { margin-top: .45rem; animation: cbtScBodyIn .16s ease-out; }
.cbt-sc-body[hidden] { display: none !important; }
.cbt-sc-body .cbt-sc-toolbar { margin-bottom: 0; }

.cbt-sc-collapse.is-compact .cbt-sc-toggle {
    padding: .32rem .7rem;
    font-size: .98rem;
    background: var(--primary-mist, #e8f5ee);
    border-color: var(--primary, #0c5430);
    color: var(--primary-dark, #083b22);
    box-shadow: none;
}
.cbt-sc-collapse.is-compact .cbt-sc-toggle:hover,
.cbt-sc-collapse.is-compact .cbt-sc-toggle:focus-visible {
    background: var(--primary, #0c5430);
    border-color: var(--primary, #0c5430);
    color: #ffffff;
}

@keyframes cbtScBodyIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Rich-text formatting inside questions ─────────────────── */
.cbt-rich-text sup { font-size: .72em; line-height: 0; vertical-align: super; }
.cbt-rich-text sub { font-size: .72em; line-height: 0; vertical-align: sub; }

/* ── Modern image upload zone ──────────────────────────────── */
.cbt-upload {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    width: 100%;
    min-height: 11.5rem;
    padding: 1.4rem 1.2rem;
    overflow: hidden;
    text-align: center;
    cursor: pointer;
    background: #f7fffa;
    border: 2px dashed rgba(12,84,48,.34);
    border-radius: 16px;
    transition: border-color .18s ease, background .18s ease, transform .15s ease, box-shadow .18s ease;
}

.cbt-upload:hover,
.cbt-upload.is-dragover {
    border-color: var(--primary, #0c5430);
    background: #e8f5ee;
    box-shadow: 0 8px 22px rgba(12,84,48,.10);
    transform: translateY(-1px);
}

.cbt-upload > input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.cbt-upload-icon {
    font-size: 2.5rem;
    color: var(--primary, #0c5430);
    line-height: 1;
    pointer-events: none;
}

.cbt-upload-prompt {
    display: flex;
    flex-direction: column;
    gap: .18rem;
    pointer-events: none;
}

.cbt-upload-prompt strong {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-dark, #083b22);
}

.cbt-upload-prompt small {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.35;
}

.cbt-upload-preview {
    display: none;
    max-width: 100%;
    max-height: 16rem;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid var(--border-light, #e2e8f0);
    box-shadow: 0 8px 20px rgba(15,23,42,.14);
    background: #fff;
    pointer-events: none;
}

.cbt-upload.has-file {
    border-style: solid;
    border-color: var(--primary, #0c5430);
    background: #f7fffa;
    padding: 1rem;
}

.cbt-upload.has-file .cbt-upload-preview { display: block; }
.cbt-upload.has-file .cbt-upload-icon,
.cbt-upload.has-file .cbt-upload-prompt { display: none; }

.cbt-upload-name {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--primary-dark, #083b22);
    pointer-events: none;
}

.cbt-upload-clear {
    position: absolute;
    top: .55rem;
    right: .55rem;
    z-index: 3;
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid #fecaca;
    border-radius: 50%;
    background: #fff;
    color: #dc2626;
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(220,38,38,.16);
}

.cbt-upload-clear:hover { background: #fee2e2; }

.cbt-upload-sm {
    min-height: 8.2rem;
    padding: .9rem .8rem;
    border-radius: 12px;
}

.cbt-upload-sm .cbt-upload-icon { font-size: 1.8rem; }
.cbt-upload-sm .cbt-upload-prompt strong { font-size: 1.12rem; }
.cbt-upload-sm .cbt-upload-prompt small { font-size: .98rem; }
.cbt-upload-sm .cbt-upload-preview { max-height: 8.5rem; }

/* Existing image shown inside the edit modal */
.cbt-current-image {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    max-width: 100%;
    padding: .9rem 1.1rem;
    margin: 0 0 .9rem;
    background: var(--gray-25, #fbfcfd);
    border: 1px solid var(--border-light, #e2e8f0);
    border-radius: 12px;
}

.cbt-current-image img {
    max-width: 22rem;
    max-height: 13rem;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--border-light, #e2e8f0);
    background: #fff;
}

.cbt-current-image .cbt-current-label {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .8rem;
    border-radius: 999px;
    background: var(--primary-mist, #e8f5ee);
    color: var(--primary-dark, #083b22);
    font-size: 1.05rem;
    font-weight: 800;
    white-space: nowrap;
}

/* ── Subject emphasis ────────────────────────────────────────
   The subject is the anchor of a question bank / exam. It should
   never look like ordinary grey metadata. */
.cq-subject-group > label {
    color: var(--primary-dark, #083b22) !important;
    font-size: 1.3rem !important;
    font-weight: 900 !important;
}
.cq-subject-group > label i { color: var(--primary, #0c5430); }

.cq-subject-input {
    border-color: var(--primary, #0c5430) !important;
    background: var(--primary-mist, #f7fffa) !important;
    color: var(--primary-dark, #083b22) !important;
    font-size: 1.6rem !important;
    font-weight: 800 !important;
}
.cq-subject-input:focus {
    border-color: var(--primary, #0c5430) !important;
    box-shadow: 0 0 0 4px var(--primary-glow, rgba(12,84,48,.14)) !important;
}
.cq-subject-input::placeholder { color: #6b8f7c !important; font-weight: 600; }

/* Green subject pill on white surfaces (admin cards, lists). */
.pq-badge.cq-subject-badge {
    background: var(--primary, #0c5430) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px !important;
    padding: .4rem 1rem !important;
    font-size: 1.3rem !important;
    font-weight: 900 !important;
    letter-spacing: .01em;
    box-shadow: 0 3px 10px var(--primary-glow, rgba(12,84,48,.22));
}

/* The subject in a queued question preview. */
.cq-queue-subject {
    color: var(--primary-dark, #083b22);
    font-weight: 900;
    font-size: 1.1rem;
}

/* Student exam header: gold subject pill on the green band. */
.exam-header .exam-info .exam-subject {
    background: #fef3c7;
    color: #92400e;
    font-weight: 900;
    padding: .28rem .8rem;
    border-radius: 999px;
    box-shadow: 0 3px 10px rgba(0,0,0,.14);
}

/* Student result page subject. */
.stu-result-subject {
    display: inline-block;
    margin-left: .45rem;
    padding: .18rem .7rem;
    border-radius: 999px;
    background: var(--primary-mist, #dcfce7);
    color: var(--primary-dark, #083b22);
    font-size: 1.15rem;
    font-weight: 900;
    vertical-align: middle;
}

/* Student result action buttons (previously browser-default grey). */
.stu-result-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1.6rem; }
.stu-result-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 1rem 1.5rem;
    border: 1px solid transparent;
    border-radius: 10px;
    text-decoration: none !important;
    font-size: 1.2rem;
    font-weight: 800;
}
.stu-result-btn-primary {
    background: var(--primary, #0c5430);
    border-color: var(--primary, #0c5430);
    color: #ffffff !important;
}
.stu-result-btn-primary:hover {
    background: var(--primary-dark, #083b22);
    border-color: var(--primary-dark, #083b22);
    color: #ffffff !important;
}
.stu-result-btn-success {
    background: #15803d;
    border-color: #15803d;
    color: #ffffff !important;
}
.stu-result-btn-success:hover {
    background: #0f6a32;
    border-color: #0f6a32;
    color: #ffffff !important;
}

/* ── Practice-bank upload zone polish ──────────────────────── */
.pq-img-z {
    position: relative;
    overflow: hidden;
    min-height: 10rem;
    border-radius: 16px !important;
    background: #fbfcfd !important;
}

.pq-img-z:hover { box-shadow: 0 8px 22px rgba(12,84,48,.10); transform: translateY(-1px); }

.pq-img-prev {
    display: none;
    max-width: 100%;
    max-height: 18rem;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid var(--border-light, #e2e8f0);
    box-shadow: 0 8px 20px rgba(15,23,42,.14);
    background: #fff;
}

.pq-img-z.has-file .pq-img-prev { display: block; }
.pq-img-z.has-file .pq-img-icon,
.pq-img-z.has-file .pq-img-text { display: none; }

.pq-current-img-wrap {
    display: none;
    align-items: center;
    gap: .8rem;
    flex-wrap: wrap;
    padding: .8rem 1rem;
    margin-bottom: .8rem;
    background: var(--gray-25, #fbfcfd);
    border: 1px solid var(--border-light, #e2e8f0);
    border-radius: 12px;
}

.pq-current-img-wrap.is-shown { display: flex; }

.pq-current-img {
    max-width: 22rem;
    max-height: 13rem;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--border-light, #e2e8f0);
    background: #fff;
}

.pq-img-icon-sm { font-size: 1.5rem; }

/* Question images in the student exam / review screens */
.question-image,
.option-image,
.sr-q-image,
.teq-q-image {
    max-width: min(100%, 520px);
    border-radius: 12px;
    border: 1px solid var(--border-light, #e2e8f0);
    box-shadow: 0 6px 18px rgba(15,23,42,.10);
    background: #fff;
}

/* ============================================================
   CBT FLOW UI � shared by admin + student pages
   ============================================================ */
.cbt-flow-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
    padding: 2rem 2.4rem;
    margin: 2rem 2.4rem 0;
    border: 1px solid var(--border-light, #e2e8f0);
    border-radius: var(--r-lg, 16px);
    background: #f3faf6;
}
.cbt-flow-hero h2 {
    margin: 0 0 .4rem;
    font-family: var(--font-heading, inherit);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text, #0f172a);
}
.cbt-flow-hero p {
    margin: 0;
    color: #1e293b;
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.6;
}

/* The class / term / session / subject the admin is working in is the
   most important piece of context on the page. Make it impossible to
   miss instead of letting it fade into grey body text. */
.cbt-flow-hero p strong {
    display: inline;
    padding: .12rem .5rem;
    border-radius: 6px;
    background: var(--primary-mist, #dcfce7);
    color: var(--primary-dark, #083b22);
    font-weight: 900;
    box-shadow: inset 0 0 0 1px rgba(15,23,42,.08);
}
.cbt-flow-steps {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: 1.2rem;
}
.cbt-flow-step {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .7rem 1.25rem;
    border-radius: 999px;
    border: 1px solid var(--primary, #0c5430);
    background: var(--primary-mist, #f0fdf4);
    color: var(--primary-dark, #14532d);
    text-decoration: none;
    font-size: 1.18rem;
    font-weight: 800;
    transition: .15s ease;
}
.cbt-flow-step:hover {
    border-color: var(--primary, #0c5430);
    background: var(--primary, #0c5430);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px var(--primary-glow, rgba(12,84,48,.22));
}
.cbt-flow-step:hover .num {
    background: rgba(255,255,255,.22);
    color: #fff;
}
.cbt-flow-step.is-current {
    background: var(--primary, #0c5430);
    border-color: var(--primary, #0c5430);
    color: #fff;
    box-shadow: 0 4px 14px var(--primary-glow, rgba(12,84,48,.22));
}
.cbt-flow-step .num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 2.3rem;
    height: 2.3rem;
    padding: 0 .65rem;
    border-radius: 999px;
    background: #ffffff;
    color: var(--primary-dark, #15803d);
    font-weight: 900;
    font-size: .9rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    white-space: nowrap;
}
.cbt-flow-step.is-current .num {
    background: rgba(255,255,255,.22);
    color: #fff;
}

.cbt-pill {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .35rem .9rem; border-radius: 999px;
    font-size: 1.1rem; font-weight: 700; white-space: nowrap;
}
.cbt-pill-green  { background: #dcfce7; color: #15803d; }
.cbt-pill-red    { background: #fee2e2; color: #991b1b; }
.cbt-pill-orange { background: #fef3c7; color: #92400e; }
.cbt-pill-blue   { background: #dbeafe; color: #1e40af; }
.cbt-pill-gray   { background: #f1f5f9; color: #475569; }

/* Rich text must stay readable on every exam screen. */
.cbt-rich-text { word-break: break-word; }
.cbt-rich-text sup { font-size: .72em; line-height: 0; vertical-align: super; }
.cbt-rich-text sub { font-size: .72em; line-height: 0; vertical-align: sub; }
.cbt-rich-text b, .cbt-rich-text strong { font-weight: 800; }
.cbt-rich-text i, .cbt-rich-text em { font-style: italic; }
.cbt-rich-text u { text-decoration: underline; }

/* -- Header account dropdown (Take Exam / Portal) ----------- */
.topbar-auth-menu { position: relative; display: inline-flex; }
.topbar-auth-menu > .topbar-portal-btn {
    border: 0; cursor: pointer; font: inherit; display: inline-flex; align-items: center; gap: .45rem;
}
.topbar-auth-dropdown {
    position: absolute; right: 0; top: calc(100% + .8rem);
    min-width: 26rem; padding: .7rem;
    background: #fff; border: 1px solid var(--border-light, #e2e8f0);
    border-radius: 14px; box-shadow: 0 18px 45px rgba(15,23,42,.18);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: .16s ease; z-index: 12000;
}
.topbar-auth-menu.open .topbar-auth-dropdown,
.topbar-auth-menu:hover .topbar-auth-dropdown,
.topbar-auth-menu:focus-within .topbar-auth-dropdown {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.topbar-auth-dropdown a {
    display: block; padding: .9rem 1.1rem; border-radius: 10px;
    color: var(--text, #0f172a); text-decoration: none; font-size: 1.3rem; font-weight: 700;
}
.topbar-auth-dropdown a small {
    display: block; margin-top: .2rem; font-size: 1.05rem; font-weight: 500;
    color: var(--text-muted, #64748b); line-height: 1.35;
}
.topbar-auth-dropdown a:hover { background: var(--primary-mist, #e8f5ee); color: var(--primary-dark, #083b22); }
.topbar-auth-dropdown .auth-sep { height: 1px; margin: .45rem .8rem; background: var(--border-light, #e2e8f0); }

/* -- Guide modal ------------------------------------------- */
body.cbt-guide-lock { overflow: hidden; }
.cbt-guide-backdrop {
    position: fixed; inset: 0; z-index: 20000;
    display: flex; align-items: center; justify-content: center;
    padding: 2rem; background: rgba(2, 18, 12, .62);
    -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
}
.cbt-guide-backdrop[hidden] { display: none !important; }
.cbt-guide-dialog {
    position: relative; width: 100%; max-width: 72rem; max-height: 90vh; overflow: auto;
    padding: 3rem 3.2rem 2.4rem;
    background: #fff; border-radius: 22px;
    box-shadow: 0 30px 90px rgba(0,0,0,.35);
    animation: cbtGuideIn .18s ease-out;
}
@keyframes cbtGuideIn { from { opacity: 0; transform: translateY(12px) scale(.99); } to { opacity: 1; transform: none; } }
.cbt-guide-close {
    position: absolute; top: 1.2rem; right: 1.2rem;
    width: 3.6rem; height: 3.6rem; border-radius: 50%; border: 0;
    background: #f1f5f9; color: #334155; font-size: 2rem; line-height: 1; cursor: pointer;
}
.cbt-guide-close:hover { background: #e2e8f0; }
.cbt-guide-kicker {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .45rem 1.1rem; border-radius: 999px;
    background: var(--primary-mist, #e8f5ee); color: var(--primary-dark, #083b22);
    font-size: 1.1rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
.cbt-guide-dialog h2 {
    margin: 1.2rem 0 .4rem; font-family: var(--font-heading, inherit);
    font-size: 2.4rem; color: var(--text, #0f172a); line-height: 1.2;
}
.cbt-guide-lead { margin: 0 0 1.8rem; color: var(--text-muted, #64748b); font-size: 1.3rem; }
.cbt-guide-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; }
.cbt-guide-steps li {
    display: flex; gap: 1.2rem; align-items: flex-start;
    padding: 1.2rem 1.3rem; border: 1px solid var(--border-light, #e2e8f0);
    border-radius: 14px; background: #fbfcfd;
}
.cbt-guide-num {
    flex: 0 0 auto; width: 3.2rem; height: 3.2rem; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--primary, #0c5430); color: #fff; font-weight: 800; font-size: 1.4rem;
}
.cbt-guide-steps strong { display: block; font-size: 1.35rem; color: var(--text, #0f172a); margin-bottom: .2rem; }
.cbt-guide-steps p { margin: 0; font-size: 1.22rem; line-height: 1.55; color: #475569; }
.cbt-guide-tip {
    margin-top: 1.4rem; padding: 1.1rem 1.3rem; border-radius: 12px;
    background: #fffbeb; border: 1px solid #fde68a; color: #78350f; font-size: 1.2rem; line-height: 1.55;
}
.cbt-guide-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.cbt-guide-link, .cbt-guide-done {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: 1rem 1.5rem; border-radius: 10px; text-decoration: none;
    font-size: 1.25rem; font-weight: 800; border: 0; cursor: pointer;
}
.cbt-guide-link { background: var(--primary, #0c5430); color: #fff; }
.cbt-guide-link:hover { background: var(--primary-dark, #083b22); color: #fff; }
.cbt-guide-link.ghost { background: var(--primary-mist, #e8f5ee); color: var(--primary-dark, #083b22); }
.cbt-guide-done { margin-left: auto; background: #0f172a; color: #fff; }
.cbt-guide-done:hover { background: #1e293b; }

.cbt-empty-state {
    max-width: 64rem; margin: 3rem auto; padding: 3rem 2.4rem;
    background: #fff; border: 1px solid var(--border-light, #e2e8f0);
    border-radius: 18px; text-align: center; box-shadow: 0 10px 35px rgba(15,23,42,.06);
}
.cbt-empty-state .icon { font-size: 4.4rem; display: block; margin-bottom: 1rem; }
.cbt-empty-state h2 { margin: 0 0 .6rem; font-size: 2rem; color: var(--text, #0f172a); }
.cbt-empty-state p { margin: 0 auto 1.6rem; max-width: 48rem; color: var(--text-muted, #64748b); font-size: 1.35rem; line-height: 1.6; }
.cbt-empty-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.cbt-empty-actions a, .cbt-empty-actions button {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .95rem 1.5rem; border-radius: 10px; text-decoration: none;
    font-size: 1.25rem; font-weight: 800; border: 0; cursor: pointer;
}
.cbt-empty-actions .primary { background: var(--primary, #0c5430); color: #fff; }
.cbt-empty-actions .ghost { background: #f1f5f9; color: #334155; }

@media (max-width: 640px) {
    .cbt-guide-dialog { padding: 2.6rem 1.8rem 2rem; }
    .cbt-guide-dialog h2 { font-size: 2rem; }
    .cbt-guide-done { margin-left: 0; width: 100%; justify-content: center; }
    .topbar-auth-dropdown { right: -4rem; min-width: 24rem; }
}
