.ttc-dashboard-v3 {
    font-family: var(--ttc-font-body);
    background: var(--ttc-bg-page);
    color: var(--ttc-text-main);
    padding: var(--ttc-space-2xl) var(--ttc-space-lg);
    min-height: 100vh;
    border-radius: var(--ttc-radius-2xl);
    transition: var(--ttc-transition);
}

/* ── Global Heading Styles ── */
.ttc-dashboard-v3 h1 {
    margin: 0 0 var(--ttc-space-lg);
    font-size: var(--ttc-fs-2xl);
    font-weight: var(--ttc-fw-extrabold);
    color: var(--ttc-text-main);
    font-family: var(--ttc-font-heading);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.ttc-dashboard-v3 h2 {
    margin: 0 0 var(--ttc-space-md);
    font-size: var(--ttc-fs-xl);
    font-weight: var(--ttc-fw-bold);
    color: var(--ttc-text-main);
    font-family: var(--ttc-font-heading);
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.ttc-dashboard-v3 h3 {
    margin: 0 0 var(--ttc-space-md);
    font-size: var(--ttc-fs-lg);
    font-weight: var(--ttc-fw-bold);
    color: var(--ttc-text-main);
    font-family: var(--ttc-font-heading);
    letter-spacing: -0.2px;
    line-height: 1.3;
}

.ttc-dashboard-v3 h4 {
    margin: 0 0 var(--ttc-space-sm);
    font-size: var(--ttc-fs-md);
    font-weight: var(--ttc-fw-semibold);
    color: var(--ttc-text-main);
    font-family: var(--ttc-font-heading);
    line-height: 1.4;
}

.ttc-dashboard-v3 h5,
.ttc-dashboard-v3 h6 {
    margin: 0 0 var(--ttc-space-sm);
    font-size: var(--ttc-fs-sm);
    font-weight: var(--ttc-fw-semibold);
    color: var(--ttc-text-main);
    font-family: var(--ttc-font-heading);
    line-height: 1.4;
}

.ttc-premium-card {
    background: var(--ttc-card-bg);
    -webkit-backdrop-filter: var(--ttc-glass-blur);
    backdrop-filter: var(--ttc-glass-blur);
    border: 1px solid var(--ttc-glass-border);
    border-radius: var(--ttc-radius-xl);
    padding: var(--ttc-space-2xl);
    box-shadow: var(--ttc-shadow-md);
    transition: var(--ttc-transition);
}

.ttc-premium-card:hover {
    transform: translateY(-5px);
    border-color: var(--ttc-primary);
}

.ttc-premium-card h3 {
    margin: 0 0 var(--ttc-space-lg);
    font-size: var(--ttc-fs-lg);
    font-weight: var(--ttc-fw-bold);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--ttc-text-main);
    font-family: var(--ttc-font-heading);
    line-height: 1.2;
}

.ttc-premium-card h3 span {
    font-size: var(--ttc-fs-xs);
    font-weight: var(--ttc-fw-medium);
    color: var(--ttc-primary);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Dashboard Navigation Bar ── */
.ttc-dashboard-v3 .ttc-db-nav,
.ttc-db-nav {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    margin-bottom: var(--ttc-space-xl) !important;
    padding: var(--ttc-space-sm) var(--ttc-space-2xs) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 90;
}

/* ── Individual Tab ── */
.ttc-dashboard-v3 .ttc-db-tab,
.ttc-db-tab {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: var(--ttc-space-xs) !important;
    height: 40px !important;
    padding: 0 var(--ttc-space-md) !important;
    border-radius: var(--ttc-radius-md) !important;
    color: var(--ttc-text-muted) !important;
    text-decoration: none !important;
    font-size: var(--ttc-fs-sm) !important;
    font-weight: var(--ttc-fw-semibold) !important;
    white-space: nowrap !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    transition: var(--ttc-transition-fast) !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
    cursor: pointer !important;
}

/* Text label inside tab */
.ttc-db-tab span {
    display: inline-block !important;
    line-height: 1 !important;
}

.ttc-dashboard-v3 .ttc-db-tab:hover,
.ttc-db-tab:hover {
    color: #f1f5f9 !important;
    background: rgba(99, 102, 241, 0.12) !important;
    border-color: rgba(99, 102, 241, 0.25) !important;
}

.ttc-dashboard-v3 .ttc-db-tab.active,
.ttc-db-tab.active {
    background: var(--ttc-grad-main, linear-gradient(135deg, #6366f1, #8b5cf6)) !important;
    color: #fff !important;
    box-shadow: 0 6px 16px -3px rgba(99, 102, 241, 0.4) !important;
    border-color: transparent !important;
    font-weight: 700 !important;
}

.ttc-btn-wow {
    display: inline-flex;
    align-items: center;
    gap: var(--ttc-space-xs);
    background: var(--ttc-grad-main);
    color: #fff;
    padding: var(--ttc-space-sm) var(--ttc-space-lg);
    border-radius: var(--ttc-radius-lg);
    font-weight: var(--ttc-fw-bold);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--ttc-transition);
    text-transform: uppercase;
    font-size: var(--ttc-fs-xs);
    letter-spacing: 0.5px;
}

.ttc-btn-wow:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
    box-shadow: 0 10px 20px -5px rgba(var(--ttc-primary-rgb), 0.4);
    color: #fff;
}

.ttc-stat-premium {
    background: var(--ttc-grad-surface);
    padding: var(--ttc-space-lg);
    border-radius: var(--ttc-radius-xl);
    border: 1px solid var(--ttc-glass-border);
    box-shadow: var(--ttc-shadow);
    transition: var(--ttc-transition);
}

.ttc-stat-premium:hover {
    transform: translateY(-5px);
    border-color: var(--ttc-primary);
}

.ttc-stat-premium .label {
    color: var(--ttc-text-muted);
    font-size: var(--ttc-fs-xs);
    font-weight: var(--ttc-fw-bold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ... rest of the file ... */
.ttc-wow-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 var(--ttc-space-sm);
}

.ttc-wow-table th {
    text-align: left;
    padding: 0 var(--ttc-space-lg);
    color: var(--ttc-text-muted);
    font-size: var(--ttc-fs-xs);
    font-weight: var(--ttc-fw-bold);
    text-transform: uppercase;
}

.ttc-wow-table td {
    background: var(--ttc-card-bg);
    padding: var(--ttc-space-md) var(--ttc-space-lg);
    vertical-align: middle;
    color: var(--ttc-text-main);
}

.ttc-wow-table tr td:first-child {
    border-radius: 14px 0 0 14px;
}

.ttc-wow-table tr td:last-child {
    border-radius: 0 14px 14px 0;
}

/* Request Cards */
.ttc-request-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--ttc-grad-surface);
    padding: 24px;
    border-radius: 20px;
    border: 1px solid var(--ttc-glass-border);
    box-shadow: var(--ttc-shadow);
    transition: var(--ttc-transition);
}

.ttc-request-card:hover {
    border-color: var(--ttc-primary);
}

.ttc-request-badge {
    font-size: 11px;
    color: var(--ttc-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
    display: inline-block;
}

.ttc-request-name {
    font-weight: 800;
    font-size: 18px;
    color: var(--ttc-text-main);
    margin-bottom: 4px;
}

/* Notification Bell */
.ttc-notif-btn {
    background: var(--ttc-card-bg);
    border: 1px solid var(--ttc-glass-border);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: var(--ttc-text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    position: relative;
    transition: var(--ttc-transition);
}

.ttc-notif-btn:hover {
    background: rgba(125, 125, 125, 0.1);
    transform: scale(1.05);
}

#zen-focus-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#zen-focus-toggle:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.4);
}

.ttc-notif-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--ttc-danger);
    color: white;
    font-size: 10px;
    font-weight: 800;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--ttc-bg-page);
}

/* Legacy Aliases & Utilities */
.ttc-panel {
    background: var(--ttc-card-bg);
    -webkit-backdrop-filter: var(--ttc-glass-blur);
    backdrop-filter: var(--ttc-glass-blur);
    border: 1px solid var(--ttc-glass-border);
    border-radius: var(--ttc-radius);
    padding: 32px;
    box-shadow: var(--ttc-shadow);
    margin-bottom: 30px;
}

.ttc-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.ttc-table th {
    text-align: left;
    padding: 12px 20px;
    color: var(--ttc-text-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ttc-table td {
    background: var(--ttc-card-bg);
    padding: 16px 20px;
    vertical-align: middle;
    color: var(--ttc-text-main);
    border-top: 1px solid var(--ttc-glass-border);
    border-bottom: 1px solid var(--ttc-glass-border);
}

.ttc-table tr td:first-child {
    border-left: 1px solid var(--ttc-glass-border);
    border-radius: 12px 0 0 12px;
}

.ttc-table tr td:last-child {
    border-right: 1px solid var(--ttc-glass-border);
    border-radius: 0 12px 12px 0;
}

.ttc-status-badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ttc-status-badge.pending {
    background: rgba(var(--ttc-primary-rgb), 0.1);
    color: var(--ttc-primary);
}

.ttc-status-badge.accepted {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.ttc-status-badge.declined {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.ttc-input-inline {
    background: var(--ttc-bg-page);
    border: 1px solid var(--ttc-glass-border);
    color: var(--ttc-text-main);
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    transition: var(--ttc-transition);
}

.ttc-input-inline:focus {
    border-color: var(--ttc-primary);
    box-shadow: 0 0 0 4px rgba(var(--ttc-primary-rgb), 0.1);
}

/* Mode Toggle Styles */
.ttc-filter-mode {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ttc-mode-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: rgba(125, 125, 125, 0.1);
    padding: 4px;
    border-radius: 99px;
    /* Pill shape */
    border: 1px solid var(--ttc-glass-border);
    vertical-align: middle;
}

.ttc-mode-btn {
    background: transparent;
    border: none;
    color: var(--ttc-text-muted);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    /* Circle shape */
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    padding: 0;
    line-height: 1;
}

.ttc-mode-btn:hover {
    color: var(--ttc-text-main);
    background: rgba(125, 125, 125, 0.1);
}

.ttc-mode-btn.active {
    background: var(--ttc-primary);
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
    transform: scale(1.05);
}

.ttc-align-center {
    align-items: center;
}

.ttc-justify-center {
    justify-content: center;
}

.ttc-flex-wrap {
    flex-wrap: wrap;
}

/* Specific Context Colors */
/* In Light Mode: Inactive buttons should be darker for better contrast */
.ttc-mode-light .ttc-mode-btn:not(.active) {
    color: #475569;
}

/* In Dark Mode: Inactive buttons should be lighter for better contrast */
.ttc-mode-dark .ttc-mode-btn:not(.active) {
    color: #e2e8f0;
}

/* Button Variants */
.ttc-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ttc-card-bg);
    color: var(--ttc-text-main);
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--ttc-glass-border);
    cursor: pointer;
    transition: var(--ttc-transition);
    font-size: 13px;
}

.ttc-btn-secondary:hover {
    background: var(--ttc-border-subtle);
    border-color: var(--ttc-primary);
    transform: translateY(-2px);
}

.ttc-btn-destructive {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(var(--ttc-danger-rgb, 239, 68, 68), 0.1);
    color: var(--ttc-danger);
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(var(--ttc-danger-rgb, 239, 68, 68), 0.2);
    cursor: pointer;
    transition: var(--ttc-transition);
    font-size: 13px;
}

.ttc-btn-destructive:hover {
    background: var(--ttc-danger);
    color: #fff;
    transform: translateY(-2px);
}

/* Layout Utilities */
.ttc-flex {
    display: flex;
}

.ttc-flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ttc-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ttc-gap-mini {
    gap: 8px;
}

.ttc-gap-small {
    gap: 12px;
}

.ttc-gap-med {
    gap: 24px;
}

.ttc-mb-mini {
    margin-bottom: 8px;
}

.ttc-mb-small {
    margin-bottom: 16px;
}

.ttc-mb-med {
    margin-bottom: 32px;
}

.ttc-mb-large {
    margin-bottom: 48px;
}

/* Typography Utilities */
.ttc-text-primary {
    color: var(--ttc-primary);
}

.ttc-text-muted {
    color: var(--ttc-text-muted);
}

.ttc-text-main {
    color: var(--ttc-text-main);
}

.ttc-font-outfit {
    font-family: 'Outfit', sans-serif;
}

.ttc-uppercase-ls {
    text-transform: uppercase;
    letter-spacing: 2px;
}

.ttc-h1 {
    font-size: 32px;
    font-weight: 800;
    margin: 0;
}

.ttc-h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.ttc-label-mini {
    font-size: 12px;
    font-weight: 700;
}

/* Custom Scrollbar */
.ttc-dashboard-v3 ::-webkit-scrollbar {
    width: 6px;
}

.ttc-dashboard-v3 ::-webkit-scrollbar-track {
    background: transparent;
}

.ttc-dashboard-v3 ::-webkit-scrollbar-thumb {
    background: var(--ttc-glass-border);
    border-radius: 10px;
}


/* =====================================================
 *  EXTRACTED FROM INLINE STYLES — Student Dashboard
 * ===================================================== */

/* ── Section Header Pattern ── */
.ttc-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--ttc-space-md, 16px);
}

.ttc-section-header__left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ttc-section-header__icon {
    font-size: 24px;
    line-height: 1;
}

.ttc-section-header__title {
    color: var(--ttc-text-main);
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--ttc-font-heading, 'Outfit', sans-serif);
}

.ttc-section-header__subtitle {
    font-size: 11px;
    color: var(--ttc-text-muted);
    margin: 0;
}

.ttc-section-header__right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Mini Progress Bar ── */
.ttc-mini-progress {
    width: 60px;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.ttc-mode-light .ttc-mini-progress {
    background: rgba(0, 0, 0, 0.06);
}

.ttc-mini-progress__fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s var(--ttc-ease-out, ease);
}

.ttc-mini-progress__fill--gold {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.ttc-mini-progress__label {
    font-size: 11px;
    font-weight: 700;
    color: #fbbf24;
}


/* ── Badge Grid ── */
.ttc-badge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

@media (min-width: 768px) {
    .ttc-badge-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1200px) {
    .ttc-badge-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.ttc-badge-cell {
    text-align: center;
    padding: 10px 6px;
    border-radius: var(--ttc-radius-md, 12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.01);
    opacity: 0.4;
    transition: all 0.3s;
    cursor: default;
}

.ttc-mode-light .ttc-badge-cell {
    border-color: rgba(0, 0, 0, 0.05);
    background: rgba(0, 0, 0, 0.01);
}

.ttc-badge-cell--earned {
    background: rgba(255, 255, 255, 0.04);
    opacity: 1;
}

.ttc-mode-light .ttc-badge-cell--earned {
    background: rgba(0, 0, 0, 0.02);
}

.ttc-badge-cell__icon {
    font-size: 22px;
    margin-bottom: 3px;
    line-height: 1;
}

.ttc-badge-cell__icon--locked {
    filter: grayscale(1);
}

.ttc-badge-cell__name {
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--ttc-text-muted);
}

.ttc-badge-cell__status {
    font-size: 7px;
    margin-top: 2px;
    font-weight: 600;
}

.ttc-badge-cell__status--earned {
    color: var(--ttc-success, #10b981);
}

.ttc-badge-cell__status--locked {
    color: var(--ttc-text-muted);
}


/* ── Latest Achievement Highlight ── */
.ttc-achievement-highlight {
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ttc-achievement-highlight__icon {
    font-size: 20px;
    line-height: 1;
}

.ttc-achievement-highlight__label {
    font-size: 10px;
    color: #fbbf24;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ttc-achievement-highlight__name {
    font-size: 13px;
    font-weight: 700;
    color: var(--ttc-text-main);
}


/* ── Timeline ── */
.ttc-progress-timeline {
    position: relative;
    padding-left: 24px;
}

.ttc-timeline-line {
    position: absolute;
    left: 8px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.4), rgba(99, 102, 241, 0.05));
    border-radius: 1px;
}

.ttc-timeline-item {
    position: relative;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding-bottom: 16px;
}

.ttc-timeline-item:last-child {
    padding-bottom: 0;
}

.ttc-timeline-dot {
    position: absolute;
    left: -20px;
    top: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--ttc-card-bg, #1e293b);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ttc-timeline-dot__inner {
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
}

.ttc-timeline-content {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.2s;
}

.ttc-mode-light .ttc-timeline-content {
    background: rgba(0, 0, 0, 0.01);
    border-color: rgba(0, 0, 0, 0.05);
}

.ttc-timeline-content:hover {
    background: rgba(255, 255, 255, 0.05);
}

.ttc-mode-light .ttc-timeline-content:hover {
    background: rgba(0, 0, 0, 0.03);
}

.ttc-timeline-content__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ttc-timeline-content__title {
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
}

.ttc-timeline-content__time {
    font-size: 9px;
    color: var(--ttc-text-muted);
    white-space: nowrap;
    margin-left: 8px;
}

.ttc-timeline-content__detail {
    font-size: 11px;
    margin-top: 2px;
    font-weight: 600;
}


/* ── Quick Actions Grid ── */
.ttc-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 768px) {
    .ttc-quick-actions {
        grid-template-columns: repeat(4, 1fr);
    }
}

.ttc-quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 12px;
    border-radius: var(--ttc-radius-lg, 16px);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: var(--ttc-text-main);
    text-align: center;
}

.ttc-mode-light .ttc-quick-action {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.06);
}

.ttc-quick-action:hover {
    transform: translateY(-3px);
    border-color: var(--ttc-primary, #6366f1);
    box-shadow: 0 8px 20px -4px rgba(var(--ttc-primary-rgb, 99, 102, 241), 0.15);
    color: var(--ttc-text-main);
}

.ttc-quick-action__icon {
    font-size: 28px;
    line-height: 1;
}

.ttc-quick-action__label {
    font-size: 12px;
    font-weight: 600;
}


/* ── Stats Grid ── */
.ttc-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 768px) {
    .ttc-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.ttc-stat-mini {
    padding: 20px;
    border-radius: var(--ttc-radius-lg, 16px);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    transition: all 0.3s;
}

.ttc-mode-light .ttc-stat-mini {
    background: var(--ttc-card-bg);
    border-color: var(--ttc-glass-border);
    box-shadow: var(--ttc-shadow-sm);
}

.ttc-stat-mini:hover {
    transform: translateY(-3px);
    border-color: var(--ttc-primary, #6366f1);
}

.ttc-stat-mini__value {
    font-size: 28px;
    font-weight: 800;
    font-family: var(--ttc-font-heading, 'Outfit', sans-serif);
    color: var(--ttc-text-main);
    margin-bottom: 4px;
}

.ttc-stat-mini__label {
    font-size: 11px;
    font-weight: 600;
    color: var(--ttc-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* ── Study Streak ── */
.ttc-streak-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}

.ttc-streak-day {
    flex: 1;
    text-align: center;
    padding: 8px 4px;
    border-radius: var(--ttc-radius-sm, 8px);
    font-size: 10px;
    font-weight: 600;
    transition: all 0.2s;
}

.ttc-streak-day--active {
    background: rgba(16, 185, 129, 0.15);
    color: var(--ttc-success, #10b981);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.ttc-streak-day--inactive {
    background: rgba(255, 255, 255, 0.03);
    color: var(--ttc-text-muted);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ttc-mode-light .ttc-streak-day--inactive {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.05);
}

.ttc-streak-day--today {
    border-color: var(--ttc-primary, #6366f1) !important;
    box-shadow: 0 0 8px rgba(var(--ttc-primary-rgb, 99, 102, 241), 0.2);
}


/* ── Recommendation Card ── */
.ttc-rec-card {
    padding: 14px;
    border-radius: var(--ttc-radius-md, 12px);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 10px;
    transition: all 0.3s;
}

.ttc-mode-light .ttc-rec-card {
    background: rgba(0, 0, 0, 0.01);
    border-color: rgba(0, 0, 0, 0.06);
}

.ttc-rec-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--ttc-primary, #6366f1);
    transform: translateX(4px);
}

.ttc-mode-light .ttc-rec-card:hover {
    background: rgba(0, 0, 0, 0.03);
}

.ttc-rec-card__title {
    font-size: 13px;
    font-weight: 700;
    color: var(--ttc-text-main);
    margin-bottom: 4px;
}

.ttc-rec-card__meta {
    font-size: 11px;
    color: var(--ttc-text-muted);
}


/* ── Role Badge (Dashboard Header) ── */
.ttc-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--ttc-radius-pill, 999px);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* ── Modal Overlay (Unified) ── */
.ttc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: var(--ttc-z-modal, 1000);
    padding: var(--ttc-space-lg, 24px);
}

.ttc-modal-overlay.active {
    display: flex;
}

.ttc-modal-box {
    background: var(--ttc-card-bg-solid, #1e293b);
    border: 1px solid var(--ttc-glass-border);
    border-radius: var(--ttc-radius-xl, 20px);
    padding: var(--ttc-space-xl, 32px);
    width: 100%;
    max-width: 500px;
    box-shadow: var(--ttc-shadow-xl);
    animation: ttcScaleIn 0.3s var(--ttc-ease-spring, ease) forwards;
}


/* =====================================================
 *  RESPONSIVE — Dashboard
 * ===================================================== */
@media (max-width: 768px) {
    .ttc-dashboard-v3 {
        padding: 16px 12px;
    }

    .ttc-premium-card {
        padding: 20px;
    }

    .ttc-db-nav {
        gap: 0 !important;
        padding: 8px 4px !important;
    }

    .ttc-nav-scroll-container {
        gap: 4px !important;
    }

    .ttc-db-tab, .ttc-nav-item {
        padding: 0 12px !important;
        font-size: 11px !important;
        height: 36px !important;
    }

    .ttc-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .ttc-badge-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ttc-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .ttc-quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ttc-mode-btn {
        width: 28px !important;
        height: 28px !important;
        font-size: 14px !important;
    }
    
    .ttc-notif-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 18px !important;
    }
}

@media (max-width: 480px) {
    .ttc-dashboard-v3 {
        padding: 12px 8px;
    }

    .ttc-h1 {
        font-size: 22px !important;
    }

    .ttc-badge-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .ttc-streak-bar {
        gap: 3px;
    }

    .ttc-streak-day {
        padding: 6px 2px;
        font-size: 8px;
    }

    .ttc-stats-grid {
        grid-template-columns: 1fr !important;
    }
    
    .ttc-btn-wow[id="zen-focus-toggle"] {
        width: 36px !important;
        height: 36px !important;
        font-size: 16px !important;
    }
    
    .ttc-mode-toggle {
        padding: 3px !important;
    }
    
    .ttc-active-status {
        font-size: 11px !important;
        padding: 8px 14px !important;
    }
    
    .ttc-btn-secondary {
        font-size: 11px !important;
        padding: 8px 16px !important;
    }
}

/* =====================================================
 * TTC PREMIUM DASHBOARD LAYER
 * A shared visual shell for student, teacher, parent,
 * school, and institution dashboards.
 * ===================================================== */

.ttc-premium-dashboard {
    --ttc-dashboard-max: 1440px;
    --ttc-dashboard-pad: clamp(18px, 2.4vw, 36px);
    --ttc-premium-surface: color-mix(in srgb, var(--ttc-card-bg-solid, #1e293b) 78%, transparent);
    --ttc-premium-surface-soft: color-mix(in srgb, var(--ttc-card-bg, rgba(255,255,255,0.08)) 86%, transparent);
    --ttc-premium-border: color-mix(in srgb, var(--ttc-role-accent, var(--ttc-primary, #6366f1)) 18%, var(--ttc-glass-border));
    --ttc-premium-shadow: 0 18px 50px -34px rgba(2, 6, 23, 0.78);
    --ttc-premium-shadow-hover: 0 22px 54px -36px rgba(2, 6, 23, 0.82);
    width: min(100%, var(--ttc-dashboard-max));
    margin: 0 auto !important;
    padding: var(--ttc-dashboard-pad) !important;
    border-radius: 0 !important;
    background:
        radial-gradient(circle at 0 0, rgba(var(--ttc-role-accent-rgb, var(--ttc-primary-rgb, 99, 102, 241)), 0.14), transparent 34rem),
        linear-gradient(180deg, color-mix(in srgb, var(--ttc-bg-page) 94%, #ffffff 6%), var(--ttc-bg-page)) !important;
    color: var(--ttc-text-main) !important;
}

.ttc-theme-light .ttc-premium-dashboard,
.ttc-premium-dashboard.ttc-mode-light {
    --ttc-premium-surface: rgba(255, 255, 255, 0.92);
    --ttc-premium-surface-soft: #ffffff;
    --ttc-premium-shadow: 0 18px 48px -38px rgba(15, 23, 42, 0.5);
    --ttc-premium-shadow-hover: 0 24px 56px -42px rgba(15, 23, 42, 0.58);
}

.ttc-premium-dashboard.ttc-role-student {
    --ttc-role-accent: var(--portal-primary, var(--ttc-primary, #6366f1));
    --ttc-role-accent-rgb: var(--ttc-primary-rgb, 99, 102, 241);
}

.ttc-premium-dashboard.ttc-role-teacher {
    --ttc-role-accent: #10b981;
    --ttc-role-accent-rgb: 16, 185, 129;
}

.ttc-premium-dashboard.ttc-role-parent {
    --ttc-role-accent: #f59e0b;
    --ttc-role-accent-rgb: 245, 158, 11;
}

.ttc-premium-dashboard.ttc-role-school {
    --ttc-role-accent: #3b82f6;
    --ttc-role-accent-rgb: 59, 130, 246;
}

.ttc-premium-dashboard.ttc-role-institution {
    --ttc-role-accent: #8b5cf6;
    --ttc-role-accent-rgb: 139, 92, 246;
}

.ttc-premium-dashboard .ttc-db-header,
.ttc-premium-dashboard .ttc-dash-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: clamp(16px, 2vw, 28px) !important;
    margin: 0 0 18px !important;
    padding: 18px 20px !important;
    border: 1px solid var(--ttc-premium-border) !important;
    border-radius: 18px !important;
    background: linear-gradient(135deg, rgba(var(--ttc-role-accent-rgb), 0.08), rgba(255, 255, 255, 0.025)) !important;
    box-shadow: var(--ttc-premium-shadow) !important;
    backdrop-filter: blur(18px);
}

.ttc-premium-dashboard .ttc-db-header h1,
.ttc-premium-dashboard .ttc-dash-header h1,
.ttc-premium-dashboard .ttc-h1 {
    margin: 0 !important;
    font-size: clamp(24px, 2.2vw, 34px) !important;
    line-height: 1.08 !important;
    letter-spacing: 0 !important;
}

.ttc-premium-dashboard .ttc-badge-premium,
.ttc-premium-dashboard .ttc-role-badge {
    width: fit-content;
    padding: 7px 11px !important;
    border: 1px solid rgba(var(--ttc-role-accent-rgb), 0.28) !important;
    border-radius: 999px !important;
    background: rgba(var(--ttc-role-accent-rgb), 0.13) !important;
    color: color-mix(in srgb, var(--ttc-role-accent) 82%, var(--ttc-text-main)) !important;
    font-size: 10px !important;
    font-weight: 850 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    box-shadow: none !important;
}

.ttc-premium-dashboard .ttc-db-nav,
.ttc-premium-dashboard .ttc-dash-nav {
    margin: 0 0 24px !important;
    padding: 8px !important;
    border: 1px solid var(--ttc-premium-border) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.045) !important;
    box-shadow: none !important;
    backdrop-filter: blur(16px);
}

.ttc-premium-dashboard .ttc-nav-scroll-container {
    display: flex !important;
    gap: 6px !important;
    overflow-x: auto !important;
    scrollbar-width: none;
}

.ttc-premium-dashboard .ttc-nav-scroll-container::-webkit-scrollbar {
    display: none;
}

.ttc-premium-dashboard .ttc-db-tab,
.ttc-premium-dashboard .ttc-nav-item,
.ttc-premium-dashboard .ttc-dash-nav a,
.ttc-premium-dashboard .ttc-db-nav a {
    min-height: 38px !important;
    height: auto !important;
    padding: 0 13px !important;
    border: 1px solid transparent !important;
    border-radius: 11px !important;
    color: var(--ttc-text-muted) !important;
    background: transparent !important;
    font-size: 12px !important;
    font-weight: 760 !important;
    letter-spacing: 0 !important;
    line-height: 38px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    box-shadow: none !important;
}

.ttc-premium-dashboard .ttc-db-tab:hover,
.ttc-premium-dashboard .ttc-nav-item:hover,
.ttc-premium-dashboard .ttc-dash-nav a:hover,
.ttc-premium-dashboard .ttc-db-nav a:hover {
    color: var(--ttc-text-main) !important;
    background: rgba(var(--ttc-role-accent-rgb), 0.1) !important;
    border-color: rgba(var(--ttc-role-accent-rgb), 0.18) !important;
}

.ttc-premium-dashboard .ttc-db-tab.active,
.ttc-premium-dashboard .ttc-nav-item.active,
.ttc-premium-dashboard .ttc-dash-nav a.active,
.ttc-premium-dashboard .ttc-db-nav a.active {
    color: #fff !important;
    background: linear-gradient(135deg, var(--ttc-role-accent), color-mix(in srgb, var(--ttc-role-accent) 76%, #ffffff 24%)) !important;
    border-color: transparent !important;
    box-shadow: 0 10px 26px -18px rgba(var(--ttc-role-accent-rgb), 0.85) !important;
}

.ttc-premium-dashboard .ttc-premium-card,
.ttc-premium-dashboard .ttc-panel,
.ttc-premium-dashboard .ttc-card,
.ttc-premium-dashboard .ttc-stat-card,
.ttc-premium-dashboard .ttc-stat-premium,
.ttc-premium-dashboard .ttc-dashboard-fold,
.ttc-premium-dashboard .ttc-today-path,
.ttc-premium-dashboard .ttc-curriculum-map,
.ttc-premium-dashboard .ttc-edu-stage-panel,
.ttc-premium-dashboard .ttc-study-mode-strip,
.ttc-premium-dashboard .ttc-next-step-card,
.ttc-premium-dashboard .ttc-portal-hero {
    border: 1px solid var(--ttc-premium-border) !important;
    border-radius: 16px !important;
    background: var(--ttc-premium-surface-soft) !important;
    box-shadow: var(--ttc-premium-shadow) !important;
}

.ttc-premium-dashboard .ttc-portal-hero,
.ttc-premium-dashboard .ttc-next-step-card {
    background:
        linear-gradient(135deg, rgba(var(--ttc-role-accent-rgb), 0.14), rgba(255, 255, 255, 0.035)),
        var(--ttc-premium-surface-soft) !important;
}

.ttc-premium-dashboard .ttc-stat-card.highlight,
.ttc-premium-dashboard .ttc-stat-premium.highlight,
.ttc-premium-dashboard .ttc-study-mode-card.is-primary {
    background: linear-gradient(135deg, var(--ttc-role-accent), color-mix(in srgb, var(--ttc-role-accent) 72%, #ffffff 28%)) !important;
    border-color: transparent !important;
    color: #fff !important;
}

.ttc-premium-dashboard .ttc-premium-card:hover,
.ttc-premium-dashboard .ttc-panel:hover,
.ttc-premium-dashboard .ttc-stat-card:hover,
.ttc-premium-dashboard .ttc-stat-premium:hover,
.ttc-premium-dashboard .ttc-study-mode-card:hover,
.ttc-premium-dashboard .ttc-curriculum-card:hover,
.ttc-premium-dashboard .ttc-today-step:hover {
    transform: translateY(-2px) !important;
    border-color: rgba(var(--ttc-role-accent-rgb), 0.34) !important;
    box-shadow: var(--ttc-premium-shadow-hover) !important;
}

.ttc-premium-dashboard h2,
.ttc-premium-dashboard h3,
.ttc-premium-dashboard h4 {
    letter-spacing: 0 !important;
}

.ttc-premium-dashboard .label,
.ttc-premium-dashboard label,
.ttc-premium-dashboard .ttc-label,
.ttc-premium-dashboard .ttc-portal-kicker,
.ttc-premium-dashboard .ttc-edu-stage-kicker {
    color: var(--ttc-text-muted) !important;
    letter-spacing: 0.06em !important;
}

.ttc-premium-dashboard .value,
.ttc-premium-dashboard .ttc-stat-card .value,
.ttc-premium-dashboard .ttc-stat-premium .value {
    color: var(--ttc-text-main);
    font-size: clamp(26px, 2.2vw, 34px) !important;
    font-weight: 850 !important;
}

.ttc-premium-dashboard .ttc-stat-card.highlight .value,
.ttc-premium-dashboard .ttc-stat-card.highlight .label,
.ttc-premium-dashboard .ttc-stat-card.highlight .sub,
.ttc-premium-dashboard .ttc-stat-premium.highlight .value,
.ttc-premium-dashboard .ttc-stat-premium.highlight .label,
.ttc-premium-dashboard .ttc-stat-premium.highlight .footer {
    color: #fff !important;
}

.ttc-premium-dashboard .icon,
.ttc-premium-dashboard .kpi-icon,
.ttc-premium-dashboard .ttc-edu-stage-icon {
    width: 40px !important;
    height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px !important;
    background: rgba(var(--ttc-role-accent-rgb), 0.12) !important;
    color: var(--ttc-role-accent) !important;
    font-size: 20px !important;
    line-height: 1 !important;
}

.ttc-premium-dashboard .ttc-btn-wow,
.ttc-premium-dashboard .ttc-btn-primary,
.ttc-premium-dashboard .ttc-btn--primary {
    min-height: 40px !important;
    border-radius: 11px !important;
    background: linear-gradient(135deg, var(--ttc-role-accent), color-mix(in srgb, var(--ttc-role-accent) 76%, #ffffff 24%)) !important;
    color: #fff !important;
    border: 1px solid transparent !important;
    box-shadow: 0 12px 26px -20px rgba(var(--ttc-role-accent-rgb), 0.92) !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.ttc-premium-dashboard .ttc-btn-secondary,
.ttc-premium-dashboard .ttc-btn--secondary,
.ttc-premium-dashboard .ttc-btn-outline,
.ttc-premium-dashboard .ttc-btn-ghost {
    min-height: 40px !important;
    border-radius: 11px !important;
    background: rgba(255, 255, 255, 0.045) !important;
    color: var(--ttc-text-main) !important;
    border: 1px solid var(--ttc-premium-border) !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.ttc-premium-dashboard .ttc-btn-wow:hover,
.ttc-premium-dashboard .ttc-btn-primary:hover,
.ttc-premium-dashboard .ttc-btn-secondary:hover,
.ttc-premium-dashboard .ttc-btn--primary:hover,
.ttc-premium-dashboard .ttc-btn--secondary:hover {
    transform: translateY(-1px) !important;
    filter: none !important;
}

.ttc-premium-dashboard .ttc-table,
.ttc-premium-dashboard .ttc-wow-table {
    border-spacing: 0 8px !important;
    border-collapse: separate !important;
}

.ttc-premium-dashboard .ttc-table td,
.ttc-premium-dashboard .ttc-wow-table td {
    background: rgba(255, 255, 255, 0.035) !important;
    border-top: 1px solid var(--ttc-premium-border) !important;
    border-bottom: 1px solid var(--ttc-premium-border) !important;
}

.ttc-premium-dashboard .ttc-table tr td:first-child,
.ttc-premium-dashboard .ttc-wow-table tr td:first-child {
    border-left: 1px solid var(--ttc-premium-border) !important;
    border-radius: 12px 0 0 12px !important;
}

.ttc-premium-dashboard .ttc-table tr td:last-child,
.ttc-premium-dashboard .ttc-wow-table tr td:last-child {
    border-right: 1px solid var(--ttc-premium-border) !important;
    border-radius: 0 12px 12px 0 !important;
}

.ttc-premium-dashboard .ttc-input,
.ttc-premium-dashboard input,
.ttc-premium-dashboard select,
.ttc-premium-dashboard textarea {
    border-color: var(--ttc-premium-border) !important;
    border-radius: 11px !important;
}

.ttc-premium-dashboard .ttc-input:focus,
.ttc-premium-dashboard input:focus,
.ttc-premium-dashboard select:focus,
.ttc-premium-dashboard textarea:focus {
    border-color: rgba(var(--ttc-role-accent-rgb), 0.64) !important;
    box-shadow: 0 0 0 3px rgba(var(--ttc-role-accent-rgb), 0.12) !important;
}

.ttc-premium-dashboard .ttc-mode-toggle,
.ttc-premium-dashboard .ttc-notif-btn,
.ttc-premium-dashboard .ttc-active-status,
.ttc-premium-dashboard .ttc-status-pill,
.ttc-premium-dashboard .ttc-status-indicator {
    border: 1px solid var(--ttc-premium-border) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.055) !important;
    box-shadow: none !important;
}

.ttc-premium-dashboard .ttc-notif-badge {
    background: var(--ttc-role-accent) !important;
    border-color: var(--ttc-bg-page) !important;
}

.ttc-premium-dashboard .ttc-grid-4 {
    gap: 16px !important;
}

.ttc-premium-dashboard .ttc-dashboard-fold summary {
    min-height: 48px !important;
}

.ttc-premium-dashboard .ttc-dashboard-fold summary::after {
    color: var(--ttc-role-accent) !important;
}

.ttc-premium-dashboard .ttc-portal-hero::after,
.ttc-premium-dashboard .ttc-edu-stage-card::before {
    opacity: 0.45 !important;
}

@media (max-width: 980px) {
    .ttc-premium-dashboard .ttc-db-header,
    .ttc-premium-dashboard .ttc-dash-header {
        align-items: flex-start !important;
        flex-direction: column !important;
    }

    .ttc-premium-dashboard .ttc-portal-hero {
        grid-template-columns: 1fr !important;
    }

    .ttc-premium-dashboard [style*="grid-template-columns: repeat(4, 1fr)"],
    .ttc-premium-dashboard [style*="grid-template-columns:repeat(4,"] {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    .ttc-premium-dashboard {
        --ttc-dashboard-pad: 12px;
    }

    .ttc-premium-dashboard .ttc-db-header,
    .ttc-premium-dashboard .ttc-dash-header {
        padding: 16px !important;
    }

    .ttc-premium-dashboard .ttc-db-tab,
    .ttc-premium-dashboard .ttc-nav-item,
    .ttc-premium-dashboard .ttc-dash-nav a,
    .ttc-premium-dashboard .ttc-db-nav a {
        font-size: 11px !important;
        min-height: 36px !important;
        line-height: 36px !important;
        padding: 0 11px !important;
    }

    .ttc-premium-dashboard [style*="grid-template-columns: repeat(4, 1fr)"],
    .ttc-premium-dashboard [style*="grid-template-columns:repeat(4,"],
    .ttc-premium-dashboard [style*="grid-template-columns: 2fr 1fr"],
    .ttc-premium-dashboard [style*="grid-template-columns: repeat(4, minmax"] {
        grid-template-columns: 1fr !important;
    }
}

/* =====================================================
 * STUDENT LEARNING WORKSPACE POLISH
 * Refines the embedded question library inside the
 * student dashboard without changing the engine logic.
 * ===================================================== */

.ttc-role-student .ttc-db-main {
    min-height: 920px;
}

.ttc-role-student .ttc-library-wrapper {
    --ttc-learn-bg: #f8fafc;
    --ttc-learn-panel: rgba(255, 255, 255, 0.96);
    --ttc-learn-panel-soft: #f5f7fb;
    --ttc-learn-line: #e5eaf3;
    --ttc-learn-ink: #172033;
    --ttc-learn-muted: #667085;
    --ttc-learn-accent: var(--portal-primary, var(--ttc-role-accent, #6366f1));
    margin-top: 8px;
}

.ttc-role-student .ttc-library-header {
    align-items: center !important;
    margin: 0 0 18px !important;
    padding: 22px 0 8px;
}

.ttc-role-student .ttc-library-eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 8px;
    color: var(--ttc-learn-accent);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ttc-role-student .ttc-library-header h2 {
    margin: 0 0 4px !important;
    color: var(--ttc-learn-ink) !important;
    font-size: clamp(28px, 2.1vw, 36px) !important;
    letter-spacing: 0 !important;
}

.ttc-role-student .ttc-library-header p {
    max-width: 620px;
    color: var(--ttc-learn-muted) !important;
    font-size: 14px !important;
    line-height: 1.55;
}

.ttc-role-student .ttc-library-embed {
    border-radius: 20px;
    background: var(--ttc-learn-panel);
    box-shadow: 0 28px 80px -54px rgba(15, 23, 42, 0.48);
}

.ttc-role-student .ttc-library-wrapper .ttc-al-container {
    background: var(--ttc-learn-panel) !important;
    border: 1px solid var(--ttc-learn-line) !important;
    border-radius: 20px !important;
    box-shadow: none !important;
    color: var(--ttc-learn-ink) !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-top-bar {
    min-height: 82px;
    padding: 18px 22px !important;
    background: var(--ttc-learn-panel) !important;
    border-bottom: 1px solid var(--ttc-learn-line) !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-logo-title {
    color: var(--ttc-learn-ink) !important;
    font-size: clamp(24px, 2vw, 32px) !important;
    letter-spacing: 0 !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-search-box,
.ttc-role-student .ttc-library-wrapper .ttc-filter-select,
.ttc-role-student .ttc-library-wrapper .ttc-al-lang-btn,
.ttc-role-student .ttc-library-wrapper .ttc-al-top-bar button,
.ttc-role-student .ttc-library-wrapper .ttc-filter-bar button {
    min-height: 42px !important;
    border: 1px solid var(--ttc-learn-line) !important;
    border-radius: 11px !important;
    background: #fff !important;
    color: var(--ttc-learn-ink) !important;
    box-shadow: none !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-search-box input {
    color: var(--ttc-learn-ink) !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-filter-bar {
    padding: 14px 22px !important;
    background: var(--ttc-learn-panel-soft) !important;
    border-bottom: 1px solid var(--ttc-learn-line) !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-browser-layout {
    min-height: 720px !important;
    background: var(--ttc-learn-panel) !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-sidebar {
    width: clamp(300px, 27vw, 380px) !important;
    min-width: clamp(300px, 27vw, 380px) !important;
    background: var(--ttc-learn-panel-soft) !important;
    border-right: 1px solid var(--ttc-learn-line) !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-sidebar-header {
    padding: 20px 20px 16px !important;
    background: var(--ttc-learn-panel-soft) !important;
    border-bottom: 1px solid var(--ttc-learn-line) !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-sidebar-nav {
    padding: 14px !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-sidebar-item {
    margin-bottom: 10px !important;
    padding: 14px 14px !important;
    border: 1px solid var(--ttc-learn-line) !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.72) !important;
    color: var(--ttc-learn-ink) !important;
    box-shadow: 0 10px 28px -26px rgba(15, 23, 42, 0.44) !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-sidebar-item:hover {
    border-color: color-mix(in srgb, var(--ttc-learn-accent) 38%, var(--ttc-learn-line)) !important;
    background: #fff !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-sidebar-item.active {
    border-color: color-mix(in srgb, var(--ttc-learn-accent) 58%, var(--ttc-learn-line)) !important;
    background: color-mix(in srgb, var(--ttc-learn-accent) 9%, #ffffff) !important;
    box-shadow: inset 4px 0 0 var(--ttc-learn-accent), 0 14px 34px -30px rgba(15, 23, 42, 0.55) !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-sidebar-item .q-title {
    color: var(--ttc-learn-ink) !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-viewport {
    padding: clamp(28px, 3vw, 52px) clamp(30px, 4vw, 72px) !important;
    background: var(--ttc-learn-panel) !important;
    color: var(--ttc-learn-ink) !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-question-header {
    align-items: flex-start !important;
    gap: 16px !important;
    margin-bottom: 14px !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-question-title {
    max-width: 860px;
    color: var(--ttc-learn-ink) !important;
    font-size: clamp(25px, 2vw, 34px) !important;
    line-height: 1.18 !important;
    letter-spacing: 0 !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-format-selector {
    gap: 8px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid var(--ttc-learn-line) !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-format-btn {
    min-height: 36px !important;
    padding: 0 12px !important;
    border-radius: 10px !important;
    color: var(--ttc-learn-muted) !important;
    font-size: 13px !important;
    font-weight: 750 !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-format-btn.active {
    background: color-mix(in srgb, var(--ttc-learn-accent) 12%, #ffffff) !important;
    color: var(--ttc-learn-accent) !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-answer-content {
    max-width: 880px;
    padding-top: 22px !important;
    color: var(--ttc-learn-ink) !important;
    font-size: 18px !important;
    line-height: 1.75 !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-answer-content p,
.ttc-role-student .ttc-library-wrapper .ttc-al-answer-content span,
.ttc-role-student .ttc-library-wrapper .ttc-al-answer-content div {
    color: var(--ttc-learn-ink) !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-audio-bar,
.ttc-role-student .ttc-library-wrapper .ttc-audio-controls {
    border-color: var(--ttc-learn-line) !important;
    background: var(--ttc-learn-panel-soft) !important;
    box-shadow: none !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-qa-controls button,
.ttc-role-student .ttc-library-wrapper .ttc-save-fav,
.ttc-role-student .ttc-library-wrapper .ttc-flashcard-btn,
.ttc-role-student .ttc-library-wrapper .ttc-help-btn {
    border-radius: 10px !important;
    border-color: var(--ttc-learn-line) !important;
    background: #fff !important;
}

.ttc-role-student .ttc-library-wrapper .k12-student-level-card,
.ttc-role-student .ttc-library-wrapper .ttc-k12-live-solver-box,
.ttc-role-student .ttc-library-wrapper .ttc-analysis-title {
    border-color: var(--ttc-learn-line) !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-course-library-grid {
    gap: 16px !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-course-card {
    border-radius: 14px !important;
    background: #fff !important;
    border: 1px solid var(--ttc-learn-line) !important;
    box-shadow: 0 16px 36px -32px rgba(15, 23, 42, 0.48) !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-course-card:hover {
    border-color: color-mix(in srgb, var(--ttc-learn-accent) 45%, var(--ttc-learn-line)) !important;
    box-shadow: 0 22px 48px -34px rgba(15, 23, 42, 0.55) !important;
}

.ttc-role-student .ttc-purchase-workspace {
    padding: clamp(22px, 3vw, 36px) !important;
}

.ttc-role-student .ttc-purchase-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--ttc-premium-border);
}

.ttc-role-student .ttc-purchase-head span {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--ttc-role-accent);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ttc-role-student .ttc-purchase-head h3 {
    margin: 0 !important;
    font-size: clamp(28px, 2.3vw, 38px) !important;
}

.ttc-role-student .ttc-purchase-head p {
    max-width: 640px;
    margin: 6px 0 0;
    color: var(--ttc-text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.ttc-role-student .ttc-purchase-catalog {
    margin-bottom: 34px;
}

.ttc-role-student .ttc-purchase-catalog .ttc-course-purchase {
    max-width: none;
    padding: 0;
}

.ttc-role-student .ttc-purchase-catalog .ttc-course-purchase > h2,
.ttc-role-student .ttc-purchase-catalog .ttc-course-purchase > p {
    display: none;
}

.ttc-role-student .ttc-purchase-request-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.ttc-role-student .ttc-ai-trigger {
    right: 24px !important;
    bottom: 24px !important;
    min-height: 44px !important;
    padding: 0 16px !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, var(--ttc-role-accent), color-mix(in srgb, var(--ttc-role-accent) 72%, #ffffff 28%)) !important;
    box-shadow: 0 18px 44px -24px rgba(var(--ttc-role-accent-rgb), 0.9) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    z-index: 900 !important;
}

.ttc-role-student .ttc-ai-trigger .emoji {
    font-size: 16px !important;
}

.ttc-role-student .ttc-ai-panel {
    right: 24px !important;
    bottom: 78px !important;
    border-radius: 18px !important;
    box-shadow: 0 28px 70px -38px rgba(15, 23, 42, 0.66) !important;
}

body:has(.ttc-role-student) #ttc_go_to_top {
    right: 24px !important;
    bottom: 82px !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 999px !important;
    background: rgba(23, 32, 51, 0.84) !important;
    box-shadow: 0 16px 38px -24px rgba(15, 23, 42, 0.8) !important;
    font-size: 16px !important;
    z-index: 890 !important;
}

@media (max-width: 980px) {
    .ttc-role-student .ttc-library-wrapper .ttc-al-browser-layout {
        display: block !important;
    }

    .ttc-role-student .ttc-library-wrapper .ttc-al-sidebar {
        width: 100% !important;
        min-width: 100% !important;
        border-right: 0 !important;
        border-bottom: 1px solid var(--ttc-learn-line) !important;
    }

    .ttc-role-student .ttc-library-wrapper .ttc-al-sidebar-nav {
        max-height: 360px;
    }

    .ttc-role-student .ttc-library-wrapper .ttc-al-viewport {
        padding: 26px 20px !important;
    }

    .ttc-role-student .ttc-purchase-request-grid {
        grid-template-columns: 1fr;
    }
}

/* Student compact alignment pass */
.ttc-premium-dashboard.ttc-role-student {
    --ttc-dashboard-max: 1280px;
    --ttc-dashboard-pad: clamp(14px, 1.6vw, 24px);
}

.ttc-role-student .ttc-db-header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 18px !important;
    margin-bottom: 14px !important;
    padding: 16px 18px !important;
    border-radius: 16px !important;
}

.ttc-role-student .ttc-db-header > div:first-child {
    min-width: 0;
}

.ttc-role-student .ttc-db-header .ttc-h1 {
    font-size: clamp(26px, 2.25vw, 34px) !important;
}

.ttc-role-student .ttc-db-header p {
    font-size: 13px !important;
}

.ttc-role-student .ttc-db-header .ttc-flex,
.ttc-role-student .ttc-db-header .ttc-header-right {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px !important;
}

.ttc-role-student .ttc-mode-toggle {
    height: 38px;
}

.ttc-role-student .ttc-mode-btn {
    width: 30px !important;
    height: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ttc-role-student #zen-focus-toggle,
.ttc-role-student #personalization-toggle,
.ttc-role-student .ttc-notif-btn {
    width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
}

.ttc-role-student .ttc-active-status,
.ttc-role-student .ttc-btn-secondary {
    min-height: 38px !important;
    padding: 0 14px !important;
    font-size: 12px !important;
}

.ttc-role-student .ttc-db-nav {
    margin-bottom: 18px !important;
    padding: 6px !important;
    border-radius: 15px !important;
}

.ttc-role-student .ttc-db-nav .ttc-nav-scroll-container {
    gap: 5px !important;
}

.ttc-role-student .ttc-db-nav a {
    min-height: 34px !important;
    line-height: 34px !important;
    padding: 0 13px !important;
    font-size: 12px !important;
}

.ttc-role-student .ttc-library-wrapper {
    margin-top: 0 !important;
}

.ttc-role-student .ttc-library-header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(360px, auto) !important;
    align-items: end !important;
    column-gap: 24px !important;
    row-gap: 12px !important;
    margin-bottom: 14px !important;
    padding: 12px 0 8px !important;
}

.ttc-role-student .ttc-library-header h2 {
    font-size: clamp(28px, 2vw, 34px) !important;
}

.ttc-role-student .ttc-library-header p {
    max-width: 560px !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
}

.ttc-role-student .ttc-library-eyebrow {
    margin-bottom: 6px !important;
}

.ttc-role-student .ttc-library-actions {
    display: grid;
    grid-template-columns: auto auto minmax(190px, 240px);
    align-items: center;
    justify-content: end;
    gap: 10px;
}

.ttc-role-student .ttc-library-action-primary,
.ttc-role-student .ttc-library-actions > .ttc-btn-secondary {
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 18px !important;
    border-radius: 11px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    white-space: nowrap;
}

.ttc-role-student .ttc-library-mastery-card {
    min-height: 56px;
    margin: 0 !important;
    padding: 10px 12px 10px 16px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 40px;
    align-items: center;
    gap: 12px;
    border-color: color-mix(in srgb, var(--ttc-learn-accent) 26%, var(--ttc-learn-line)) !important;
    background: color-mix(in srgb, var(--ttc-learn-accent) 7%, #ffffff) !important;
    box-shadow: 0 16px 36px -30px rgba(15, 23, 42, 0.45) !important;
}

.ttc-role-student .ttc-library-mastery-label {
    color: var(--ttc-learn-muted);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ttc-role-student .ttc-library-mastery-value {
    margin-top: 2px;
    color: var(--ttc-learn-ink);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.1;
}

.ttc-role-student .ttc-library-mastery-ring {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ttc-learn-accent), color-mix(in srgb, var(--ttc-learn-accent) 70%, #ffffff 30%));
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-container {
    border-radius: 16px !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-top-bar {
    min-height: 66px !important;
    padding: 12px 18px !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-logo-title {
    font-size: clamp(23px, 1.7vw, 30px) !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-search-box,
.ttc-role-student .ttc-library-wrapper .ttc-filter-select,
.ttc-role-student .ttc-library-wrapper .ttc-al-lang-btn,
.ttc-role-student .ttc-library-wrapper .ttc-al-top-bar button,
.ttc-role-student .ttc-library-wrapper .ttc-filter-bar button {
    min-height: 38px !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-filter-bar {
    padding: 10px 18px !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-browser-layout {
    min-height: 650px !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-sidebar {
    width: clamp(300px, 25vw, 350px) !important;
    min-width: clamp(300px, 25vw, 350px) !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-sidebar-header {
    padding: 14px 16px 12px !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-sidebar-nav {
    padding: 12px !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-sidebar-item {
    margin-bottom: 8px !important;
    padding: 12px 12px !important;
    border-radius: 11px !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-viewport {
    padding: clamp(22px, 2.4vw, 38px) clamp(26px, 3vw, 52px) !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-question-title {
    font-size: clamp(26px, 2vw, 34px) !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-format-selector {
    gap: 6px !important;
    padding-bottom: 8px !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-format-btn {
    min-height: 32px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-answer-content {
    padding-top: 16px !important;
    font-size: 17px !important;
    line-height: 1.68 !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-audio-bar,
.ttc-role-student .ttc-library-wrapper .ttc-audio-controls {
    margin: 14px 0 !important;
}

@media (max-width: 1180px) {
    .ttc-role-student .ttc-library-header {
        grid-template-columns: 1fr !important;
        align-items: start !important;
    }

    .ttc-role-student .ttc-library-actions {
        justify-content: start;
    }
}

@media (max-width: 860px) {
    .ttc-role-student .ttc-db-header {
        grid-template-columns: 1fr !important;
    }

    .ttc-role-student .ttc-library-actions {
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .ttc-role-student .ttc-library-mastery-card {
        grid-column: 1 / -1;
    }
}

/* Student ultra-compact usability pass */
.ttc-premium-dashboard.ttc-role-student {
    --ttc-dashboard-max: 1220px;
    --ttc-dashboard-pad: clamp(10px, 1.2vw, 18px);
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--ttc-bg-page) 96%, #ffffff 4%), var(--ttc-bg-page)) !important;
}

.ttc-role-student .ttc-db-main {
    min-height: 760px;
}

.ttc-role-student .ttc-db-header {
    min-height: auto !important;
    margin-bottom: 10px !important;
    padding: 12px 14px !important;
    border-radius: 14px !important;
}

.ttc-role-student .ttc-badge-premium {
    padding: 5px 9px !important;
    font-size: 9px !important;
}

.ttc-role-student .ttc-db-header .ttc-h1 {
    font-size: clamp(24px, 2vw, 31px) !important;
}

.ttc-role-student .ttc-db-header [style*="margin-top: 12px"] {
    margin-top: 7px !important;
}

.ttc-role-student .ttc-header-context {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 14px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid color-mix(in srgb, var(--ttc-role-accent) 18%, transparent);
}

.ttc-role-student .ttc-header-context span,
.ttc-role-student .ttc-header-context small,
.ttc-role-student .ttc-header-context strong {
    display: block;
}

.ttc-role-student .ttc-header-context span {
    color: var(--ttc-role-accent);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.ttc-role-student .ttc-header-context strong {
    margin-top: 2px;
    color: var(--ttc-text-main);
    font-size: clamp(20px, 1.6vw, 26px);
    font-weight: 900;
    line-height: 1.05;
}

.ttc-role-student .ttc-header-context small {
    margin-top: 3px;
    color: var(--ttc-text-muted);
    font-size: 12px;
}

.ttc-role-student .ttc-header-context-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.ttc-role-student .ttc-header-context-actions .ttc-btn-wow,
.ttc-role-student .ttc-header-context-actions .ttc-btn-secondary {
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 13px !important;
    border-radius: 10px !important;
    font-size: 12px !important;
    white-space: nowrap;
}

.ttc-role-student .ttc-db-header .ttc-flex {
    gap: 8px !important;
}

.ttc-role-student .ttc-mode-toggle,
.ttc-role-student .ttc-active-status,
.ttc-role-student .ttc-btn-secondary {
    height: 34px !important;
    min-height: 34px !important;
}

.ttc-role-student .ttc-mode-btn,
.ttc-role-student #zen-focus-toggle,
.ttc-role-student #personalization-toggle,
.ttc-role-student .ttc-notif-btn {
    width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    font-size: 14px !important;
}

.ttc-role-student .ttc-active-status,
.ttc-role-student .ttc-db-header > div:last-child > .ttc-btn-secondary {
    padding: 0 12px !important;
}

.ttc-role-student .ttc-db-nav {
    margin-bottom: 12px !important;
    padding: 5px !important;
    border-radius: 13px !important;
}

.ttc-role-student .ttc-db-nav a {
    min-height: 32px !important;
    line-height: 32px !important;
    padding: 0 12px !important;
}

.ttc-role-student .ttc-library-header {
    grid-template-columns: auto !important;
    justify-content: end !important;
    align-items: center !important;
    margin-bottom: 6px !important;
    padding: 0 !important;
}

.ttc-role-student .ttc-library-eyebrow {
    margin-bottom: 3px !important;
    font-size: 10px !important;
}

.ttc-role-student .ttc-library-header h2 {
    font-size: clamp(24px, 1.8vw, 30px) !important;
}

.ttc-role-student .ttc-library-header p {
    max-width: 520px !important;
    font-size: 12.5px !important;
    line-height: 1.35 !important;
}

.ttc-role-student .ttc-library-actions {
    grid-template-columns: 198px;
    gap: 8px;
}

.ttc-role-student .ttc-library-actions:empty,
.ttc-role-student .ttc-library-header-compact:has(.ttc-library-actions:empty) {
    display: none !important;
}

.ttc-role-student .ttc-library-action-primary,
.ttc-role-student .ttc-library-actions > .ttc-btn-secondary {
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 14px !important;
    font-size: 12px !important;
}

.ttc-role-student .ttc-library-mastery-card {
    min-height: 48px;
    padding: 8px 10px 8px 12px !important;
    grid-template-columns: minmax(0, 1fr) 34px;
}

.ttc-role-student .ttc-library-mastery-value {
    font-size: 13px;
}

.ttc-role-student .ttc-library-mastery-ring {
    width: 34px;
    height: 34px;
    font-size: 10px;
}

.ttc-role-student .ttc-library-embed {
    border-radius: 15px;
    box-shadow: 0 18px 54px -42px rgba(15, 23, 42, 0.45);
}

.ttc-role-student .ttc-library-wrapper .ttc-al-container {
    border-radius: 15px !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-top-bar {
    min-height: 56px !important;
    padding: 9px 14px !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-logo-title {
    font-size: clamp(22px, 1.55vw, 28px) !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-search-box,
.ttc-role-student .ttc-library-wrapper .ttc-filter-select,
.ttc-role-student .ttc-library-wrapper .ttc-al-lang-btn,
.ttc-role-student .ttc-library-wrapper .ttc-al-top-bar button,
.ttc-role-student .ttc-library-wrapper .ttc-filter-bar button {
    min-height: 34px !important;
    border-radius: 10px !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-filter-bar {
    padding: 8px 14px !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-browser-layout {
    min-height: 585px !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-sidebar {
    width: 310px !important;
    min-width: 310px !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-sidebar-header {
    padding: 11px 12px 10px !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-sidebar-nav {
    padding: 10px !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-sidebar-item {
    margin-bottom: 7px !important;
    padding: 10px 11px !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-sidebar-item .q-title {
    font-size: 12.5px !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-viewport {
    padding: clamp(18px, 2vw, 30px) clamp(22px, 2.5vw, 42px) !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-question-header {
    margin-bottom: 8px !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-question-title {
    font-size: clamp(24px, 1.85vw, 32px) !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-format-selector {
    margin-top: 8px !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-answer-content {
    max-width: 820px;
    padding-top: 12px !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-answer-content p {
    margin-top: 0.65em !important;
    margin-bottom: 0.65em !important;
}

.ttc-role-student .ttc-ai-trigger {
    right: 18px !important;
    bottom: 22px !important;
    min-height: 40px !important;
    padding: 0 13px !important;
    z-index: 910 !important;
}

body:has(.ttc-role-student) #ttc_go_to_top,
body:has(.ttc-role-student) #ttc-go-top-btn {
    right: 18px !important;
    bottom: 86px !important;
    width: 38px !important;
    height: 38px !important;
    z-index: 905 !important;
}

@media (max-width: 1180px) {
    .ttc-role-student .ttc-library-header {
        grid-template-columns: 1fr !important;
    }

    .ttc-role-student .ttc-library-actions {
        grid-template-columns: auto auto minmax(180px, 220px);
        justify-content: start;
    }
}

/* Student library command bar refinements */
.ttc-role-student .ttc-header-right-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    min-width: min(100%, 520px);
}

.ttc-role-student .ttc-header-right-stack > .ttc-flex {
    justify-content: flex-end;
    width: 100%;
}

.ttc-role-student .ttc-header-right-stack .ttc-header-context {
    width: min(100%, 420px);
    margin: 0 !important;
    padding: 8px 10px !important;
    border: 1px solid color-mix(in srgb, var(--ttc-role-accent) 22%, transparent) !important;
    border-radius: 12px !important;
    background: color-mix(in srgb, var(--ttc-role-accent) 7%, transparent) !important;
    box-shadow: none !important;
}

.ttc-role-student .ttc-header-right-stack .ttc-header-context span,
.ttc-role-student .ttc-header-right-stack .ttc-header-context strong,
.ttc-role-student .ttc-header-right-stack .ttc-header-context small {
    display: block;
}

.ttc-role-student .ttc-header-right-stack .ttc-header-context span {
    color: var(--ttc-role-accent);
    font-size: 8.5px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ttc-role-student .ttc-header-right-stack .ttc-header-context strong {
    margin-top: 2px;
    color: var(--ttc-text-main);
    font-size: clamp(17px, 1.2vw, 21px);
    font-weight: 900;
    line-height: 1.05;
}

.ttc-role-student .ttc-header-right-stack .ttc-header-context small {
    margin-top: 2px;
    color: var(--ttc-text-muted);
    font-size: 11px;
    line-height: 1.25;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-actions-right {
    gap: 8px !important;
    justify-content: flex-end;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-top-bar {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: 48px !important;
    padding: 8px 12px !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-library-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-logo-title {
    flex: 0 0 auto;
    font-size: clamp(20px, 1.35vw, 25px) !important;
    line-height: 1 !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-breadcrumb {
    margin-left: 0 !important;
    min-width: 0;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-level-library-badge {
    flex: 0 0 auto;
    min-height: 30px;
    padding: 0 10px !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px !important;
    font-size: 11px !important;
    white-space: nowrap;
}

.ttc-role-student .ttc-library-wrapper .ttc-level-library-badge small {
    font-size: 9px !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-actions-right {
    flex: 0 0 auto;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-search-box {
    width: clamp(190px, 17vw, 260px) !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 8px !important;
    border-radius: 10px 0 0 10px !important;
    border-right: 0 !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-advanced-search-btn {
    height: 34px !important;
    min-height: 34px !important;
    margin-left: -8px;
    padding: 0 12px !important;
    border-radius: 0 10px 10px 0 !important;
    white-space: nowrap;
    font-size: 12px !important;
    font-weight: 850 !important;
    box-shadow: 0 10px 22px -16px rgba(99, 102, 241, 0.85) !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-lang-btn,
.ttc-role-student .ttc-library-wrapper .ttc-library-tools-menu summary,
.ttc-role-student .ttc-library-wrapper .ttc-al-view-toggle button {
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 10px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 12px !important;
    line-height: 1 !important;
}

.ttc-role-student .ttc-library-mastery-card-inline {
    min-height: 34px;
    min-width: 168px;
    padding: 5px 8px 5px 10px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 30px;
    align-items: center;
    gap: 8px;
    border: 1px solid color-mix(in srgb, var(--ttc-learn-accent) 26%, var(--ttc-learn-line));
    border-radius: 10px;
    background: color-mix(in srgb, var(--ttc-learn-accent) 7%, #ffffff);
    color: var(--ttc-learn-ink);
    box-shadow: none;
}

.ttc-role-student .ttc-library-mastery-card-inline .ttc-library-mastery-label {
    color: var(--ttc-learn-muted);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.ttc-role-student .ttc-library-mastery-card-inline .ttc-library-mastery-value {
    margin-top: 2px;
    color: var(--ttc-learn-ink);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.05;
}

.ttc-role-student .ttc-library-mastery-card-inline .ttc-library-mastery-ring {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ttc-learn-accent), color-mix(in srgb, var(--ttc-learn-accent) 70%, #ffffff 30%));
    color: #fff;
    font-size: 9px;
    font-weight: 900;
}

@media (max-width: 860px) {
    .ttc-role-student .ttc-header-right-stack {
        align-items: stretch;
        min-width: 0;
    }

    .ttc-role-student .ttc-header-right-stack > .ttc-flex {
        justify-content: flex-start;
    }

    .ttc-role-student .ttc-header-right-stack .ttc-header-context {
        width: 100%;
    }

    .ttc-role-student .ttc-library-wrapper .ttc-al-actions-right {
        width: 100%;
        flex-wrap: wrap !important;
        justify-content: flex-start;
    }

    .ttc-role-student .ttc-library-wrapper .ttc-al-search-box {
        width: min(100%, 280px) !important;
    }

    .ttc-role-student .ttc-library-wrapper .ttc-al-top-bar {
        flex-wrap: wrap !important;
    }

    .ttc-role-student .ttc-library-wrapper .ttc-library-title-row {
        width: 100%;
        flex-basis: 100%;
    }
}

@media (max-width: 1180px) and (min-width: 861px) {
    .ttc-role-student .ttc-library-wrapper .ttc-al-breadcrumb {
        display: none !important;
    }

    .ttc-role-student .ttc-library-mastery-card-inline {
        min-width: 142px;
    }

    .ttc-role-student .ttc-library-mastery-card-inline .ttc-library-mastery-value {
        font-size: 11px;
    }
}

/* Final student compact polish */
.ttc-premium-dashboard.ttc-role-student {
    --ttc-dashboard-max: 1180px;
}

.ttc-role-student .ttc-db-header {
    padding: 10px 12px !important;
    margin-bottom: 8px !important;
    border-radius: 13px !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 5000 !important;
    align-items: center !important;
}

.ttc-role-student .ttc-db-header .ttc-student-notif-dropdown {
    z-index: 10050 !important;
}

.ttc-role-student .ttc-badge-premium {
    margin-bottom: 8px !important;
}

.ttc-role-student .ttc-db-header .ttc-h1 {
    font-size: clamp(22px, 1.75vw, 28px) !important;
}

.ttc-role-student .ttc-db-header [data-learning-style-badge] {
    padding: 4px 10px !important;
}

.ttc-role-student .ttc-header-right-stack .ttc-header-context {
    width: min(100%, 390px) !important;
    padding: 6px 9px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    column-gap: 12px !important;
    row-gap: 2px !important;
}

.ttc-role-student .ttc-header-right-stack .ttc-header-context strong {
    display: block !important;
    font-size: 14px !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    text-align: right !important;
    white-space: nowrap !important;
}

.ttc-role-student .ttc-header-right-stack .ttc-header-context span,
.ttc-role-student .ttc-header-right-stack .ttc-header-context small {
    display: block !important;
    font-size: 12px !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.ttc-role-student .ttc-header-right-stack .ttc-header-context span {
    grid-column: 1 !important;
    grid-row: 1 !important;
    font-weight: 800 !important;
}

.ttc-role-student .ttc-header-right-stack .ttc-header-context small {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    max-width: 100% !important;
}

.ttc-role-student .ttc-header-right-stack .ttc-header-context span::after,
.ttc-role-student .ttc-header-right-stack .ttc-header-context strong::after {
    content: none !important;
}

.ttc-role-student .ttc-header-right-stack > .ttc-flex {
    flex-wrap: nowrap !important;
    gap: 8px !important;
}

.ttc-role-student .ttc-header-right-stack .ttc-notif-btn,
.ttc-role-student .ttc-header-right-stack #zen-focus-toggle,
.ttc-role-student .ttc-header-right-stack #personalization-toggle {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
}

.ttc-role-student .ttc-header-right-stack .ttc-mode-toggle {
    min-height: 38px !important;
    height: 38px !important;
    flex: 0 0 auto !important;
}

.ttc-role-student .ttc-header-right-stack .ttc-active-status,
.ttc-role-student .ttc-header-right-stack .ttc-btn-secondary {
    min-height: 38px !important;
    padding: 0 16px !important;
    white-space: nowrap !important;
}

.ttc-dashboard-v3.ttc-mode-dark .ttc-db-header,
html:not(.ttc-theme-light-init) .ttc-dashboard-v3.ttc-premium-dashboard:not(.ttc-mode-light) .ttc-db-header {
    color: #f8fafc !important;
}

.ttc-dashboard-v3.ttc-mode-dark .ttc-db-header .ttc-h1,
.ttc-dashboard-v3.ttc-mode-dark .ttc-db-header p,
.ttc-dashboard-v3.ttc-mode-dark .ttc-header-context strong,
.ttc-dashboard-v3.ttc-mode-dark .ttc-header-context small,
html:not(.ttc-theme-light-init) .ttc-dashboard-v3.ttc-premium-dashboard:not(.ttc-mode-light) .ttc-db-header .ttc-h1,
html:not(.ttc-theme-light-init) .ttc-dashboard-v3.ttc-premium-dashboard:not(.ttc-mode-light) .ttc-db-header p,
html:not(.ttc-theme-light-init) .ttc-dashboard-v3.ttc-premium-dashboard:not(.ttc-mode-light) .ttc-header-context strong,
html:not(.ttc-theme-light-init) .ttc-dashboard-v3.ttc-premium-dashboard:not(.ttc-mode-light) .ttc-header-context small {
    color: #f8fafc !important;
}

.ttc-dashboard-v3.ttc-mode-dark .ttc-header-context,
html:not(.ttc-theme-light-init) .ttc-dashboard-v3.ttc-premium-dashboard:not(.ttc-mode-light) .ttc-header-context {
    background: rgba(15, 23, 42, 0.72) !important;
    border-color: rgba(148, 163, 184, 0.24) !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-gamification {
    margin: 0 !important;
    padding: 10px 18px !important;
    border-radius: 0 0 14px 14px !important;
    background: #ffffff !important;
    color: #1e293b !important;
    border-color: rgba(148, 163, 184, 0.18) !important;
    box-shadow: none !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-gamification-points {
    color: #334155 !important;
    background: #fff7ed !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-gamification-badges .ttc-badge {
    color: #1e293b !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
}

.ttc-role-student .ttc-smart-revision-card {
    min-height: 0 !important;
}

.ttc-role-student .ttc-smart-revision-card .ttc-smart-revision-empty {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 16px 0 !important;
    text-align: left !important;
}

.ttc-role-student .ttc-smart-revision-card .ttc-smart-revision-empty > div {
    margin: 0 !important;
}

.ttc-role-student .ttc-smart-revision-card .ttc-smart-revision-empty p {
    margin: 0 !important;
}

.ttc-role-student .ttc-smart-revision-card .ttc-smart-revision-empty .ttc-btn-wow {
    width: auto !important;
    min-width: 190px !important;
}

@media (max-width: 760px) {
    .ttc-role-student .ttc-smart-revision-card .ttc-smart-revision-empty {
        grid-template-columns: 1fr !important;
        text-align: center !important;
    }

    .ttc-role-student .ttc-smart-revision-card .ttc-smart-revision-empty .ttc-btn-wow {
        width: 100% !important;
    }
}

.ttc-role-student .ttc-db-nav {
    margin-bottom: 10px !important;
    padding: 4px !important;
}

.ttc-role-student .ttc-db-nav a {
    min-height: 30px !important;
    line-height: 30px !important;
    padding: 0 11px !important;
}

.ttc-role-student .ttc-library-wrapper {
    max-width: 100% !important;
}

.ttc-role-student .ttc-library-embed {
    border-radius: 14px !important;
    overflow: hidden !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-container {
    border-radius: 14px !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-sidebar {
    width: 290px !important;
    min-width: 290px !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-viewport {
    padding: clamp(20px, 2vw, 30px) clamp(24px, 2.4vw, 40px) !important;
}

/* Premium compact dashboard refinement */
.ttc-premium-dashboard.ttc-role-student {
    --ttc-premium-radius: 12px;
    --ttc-premium-gap: 12px;
    --ttc-premium-shadow: 0 14px 34px -30px rgba(15, 23, 42, 0.58);
    --ttc-premium-shadow-hover: 0 18px 42px -34px rgba(15, 23, 42, 0.66);
    max-width: var(--ttc-dashboard-max, 1180px);
    margin: 0 auto;
}

.ttc-premium-dashboard.ttc-role-student .ttc-premium-card,
.ttc-premium-dashboard.ttc-role-student .ttc-stat-premium,
.ttc-premium-dashboard.ttc-role-student .ttc-dashboard-fold,
.ttc-premium-dashboard.ttc-role-student .ttc-today-path,
.ttc-premium-dashboard.ttc-role-student .ttc-curriculum-map,
.ttc-premium-dashboard.ttc-role-student .ttc-study-mode-strip,
.ttc-premium-dashboard.ttc-role-student .ttc-next-step-card,
.ttc-premium-dashboard.ttc-role-student .ttc-portal-hero {
    border-radius: var(--ttc-premium-radius) !important;
}

.ttc-premium-dashboard.ttc-role-student .ttc-premium-card {
    padding: 16px !important;
}

.ttc-premium-dashboard.ttc-role-student .ttc-premium-card:hover,
.ttc-premium-dashboard.ttc-role-student .ttc-stat-premium:hover,
.ttc-premium-dashboard.ttc-role-student .ttc-study-mode-card:hover,
.ttc-premium-dashboard.ttc-role-student .ttc-today-step:hover,
.ttc-premium-dashboard.ttc-role-student .ttc-curriculum-card:hover {
    transform: translateY(-1px) !important;
}

.ttc-premium-dashboard.ttc-role-student .ttc-portal-hero {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 300px) !important;
    gap: 14px !important;
    margin-bottom: var(--ttc-premium-gap) !important;
    padding: 18px !important;
}

.ttc-premium-dashboard.ttc-role-student .ttc-portal-hero::after {
    width: 150px !important;
    height: 150px !important;
    right: -56px !important;
    top: -58px !important;
    opacity: 0.28 !important;
}

.ttc-premium-dashboard.ttc-role-student .ttc-portal-stage-pill {
    padding: 6px 10px !important;
    border-radius: 10px !important;
    font-size: 11px !important;
}

.ttc-premium-dashboard.ttc-role-student .ttc-portal-hero h2 {
    margin: 12px 0 5px !important;
    font-size: clamp(24px, 2.1vw, 30px) !important;
    letter-spacing: 0 !important;
}

.ttc-premium-dashboard.ttc-role-student .ttc-portal-hero p {
    max-width: 560px;
    font-size: 13px !important;
    line-height: 1.45 !important;
}

.ttc-premium-dashboard.ttc-role-student .ttc-portal-hero-actions {
    margin-top: 14px !important;
    gap: 8px !important;
}

.ttc-premium-dashboard.ttc-role-student .ttc-portal-hero-actions a,
.ttc-premium-dashboard.ttc-role-student .ttc-next-step-action,
.ttc-premium-dashboard.ttc-role-student .ttc-curriculum-head a {
    min-height: 34px !important;
    padding: 0 13px !important;
    border-radius: 10px !important;
    font-size: 12px !important;
}

.ttc-premium-dashboard.ttc-role-student .ttc-portal-snapshot {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-content: stretch;
    gap: 8px !important;
}

.ttc-premium-dashboard.ttc-role-student .ttc-portal-snapshot div {
    min-height: 78px;
    padding: 12px 10px !important;
    border-radius: 11px !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

.ttc-premium-dashboard.ttc-role-student .ttc-portal-snapshot span {
    font-size: clamp(20px, 1.8vw, 25px) !important;
    line-height: 1.05 !important;
}

.ttc-premium-dashboard.ttc-role-student .ttc-portal-snapshot small {
    margin-top: 5px;
    display: block;
    font-size: 9px !important;
    line-height: 1.2;
    letter-spacing: 0.04em;
}

.ttc-premium-dashboard.ttc-role-student .ttc-next-step-card {
    margin-bottom: var(--ttc-premium-gap) !important;
    padding: 14px 16px !important;
    gap: 14px !important;
}

.ttc-premium-dashboard.ttc-role-student .ttc-next-step-copy h3 {
    margin: 3px 0 4px !important;
    font-size: 17px !important;
}

.ttc-premium-dashboard.ttc-role-student .ttc-next-step-copy p {
    font-size: 12px !important;
    line-height: 1.42 !important;
}

.ttc-premium-dashboard.ttc-role-student .ttc-next-step-meta {
    margin-top: 8px !important;
}

.ttc-premium-dashboard.ttc-role-student .ttc-next-step-meta strong,
.ttc-premium-dashboard.ttc-role-student .ttc-next-step-meta small {
    padding: 5px 8px !important;
    font-size: 10px !important;
}

.ttc-premium-dashboard.ttc-role-student .ttc-dashboard-fold {
    margin-bottom: var(--ttc-premium-gap) !important;
}

.ttc-premium-dashboard.ttc-role-student .ttc-dashboard-fold summary {
    min-height: 38px !important;
    padding: 0 13px !important;
    font-size: 12px !important;
}

.ttc-premium-dashboard.ttc-role-student .ttc-dashboard-fold summary::after {
    width: 22px !important;
    height: 22px !important;
    border-radius: 7px !important;
    font-size: 15px !important;
}

.ttc-premium-dashboard.ttc-role-student .ttc-dashboard-fold > .ttc-today-path,
.ttc-premium-dashboard.ttc-role-student .ttc-dashboard-fold > .ttc-edu-stage-panel,
.ttc-premium-dashboard.ttc-role-student .ttc-dashboard-fold > .ttc-curriculum-map,
.ttc-premium-dashboard.ttc-role-student .ttc-dashboard-fold > .ttc-grid-4 {
    margin: 10px !important;
}

.ttc-premium-dashboard.ttc-role-student .ttc-grid-4 {
    gap: 10px !important;
}

.ttc-premium-dashboard.ttc-role-student .ttc-stat-premium {
    min-height: 118px;
    padding: 13px !important;
}

.ttc-premium-dashboard.ttc-role-student .ttc-stat-premium .label {
    font-size: 9px !important;
    letter-spacing: 0.06em !important;
}

.ttc-premium-dashboard.ttc-role-student .ttc-stat-premium .value {
    font-size: clamp(24px, 2vw, 30px) !important;
    line-height: 1.05 !important;
}

.ttc-premium-dashboard.ttc-role-student .ttc-stat-premium .icon {
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
    font-size: 17px !important;
}

.ttc-premium-dashboard.ttc-role-student .ttc-stat-premium .footer {
    margin-top: 9px !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
}

.ttc-premium-dashboard.ttc-role-student .ttc-study-mode-strip {
    grid-template-columns: 1.15fr repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-bottom: var(--ttc-premium-gap) !important;
    padding: 9px !important;
}

.ttc-premium-dashboard.ttc-role-student .ttc-study-mode-head,
.ttc-premium-dashboard.ttc-role-student .ttc-study-mode-card {
    min-height: 76px !important;
    padding: 11px !important;
    border-radius: 10px !important;
}

.ttc-premium-dashboard.ttc-role-student .ttc-study-mode-head strong,
.ttc-premium-dashboard.ttc-role-student .ttc-study-mode-card strong {
    margin-top: 4px !important;
    font-size: 13px !important;
}

.ttc-premium-dashboard.ttc-role-student .ttc-study-mode-card small {
    margin-top: 5px !important;
    font-size: 10px !important;
}

.ttc-premium-dashboard.ttc-role-student .ttc-today-path,
.ttc-premium-dashboard.ttc-role-student .ttc-curriculum-map {
    margin-bottom: var(--ttc-premium-gap) !important;
    padding: 14px !important;
}

.ttc-premium-dashboard.ttc-role-student .ttc-today-path-head,
.ttc-premium-dashboard.ttc-role-student .ttc-curriculum-head {
    margin-bottom: 10px !important;
}

.ttc-premium-dashboard.ttc-role-student .ttc-today-path h3,
.ttc-premium-dashboard.ttc-role-student .ttc-curriculum-head h3 {
    font-size: 16px !important;
}

.ttc-premium-dashboard.ttc-role-student .ttc-today-focus {
    padding: 6px 9px !important;
    font-size: 11px !important;
}

.ttc-premium-dashboard.ttc-role-student .ttc-today-path-rail,
.ttc-premium-dashboard.ttc-role-student .ttc-curriculum-track,
.ttc-premium-dashboard.ttc-role-student .ttc-curriculum-grid {
    gap: 8px !important;
}

.ttc-premium-dashboard.ttc-role-student .ttc-today-step {
    min-height: 76px !important;
    gap: 9px !important;
    padding: 11px !important;
    border-radius: 10px !important;
}

.ttc-premium-dashboard.ttc-role-student .ttc-today-step-num {
    width: 24px !important;
    height: 24px !important;
    border-radius: 8px !important;
    font-size: 11px !important;
}

.ttc-premium-dashboard.ttc-role-student .ttc-today-step strong {
    font-size: 12px !important;
}

.ttc-premium-dashboard.ttc-role-student .ttc-today-step small {
    margin-top: 3px !important;
    font-size: 10px !important;
}

.ttc-premium-dashboard.ttc-role-student [style*="gap:24px"] {
    gap: 12px !important;
}

.ttc-premium-dashboard.ttc-role-student [style*="gap:16px"] {
    gap: 10px !important;
}

@media (max-width: 980px) {
    .ttc-premium-dashboard.ttc-role-student .ttc-portal-hero,
    .ttc-premium-dashboard.ttc-role-student .ttc-study-mode-strip {
        grid-template-columns: 1fr !important;
    }

    .ttc-premium-dashboard.ttc-role-student .ttc-study-mode-head,
    .ttc-premium-dashboard.ttc-role-student .ttc-study-mode-card {
        min-height: auto !important;
    }
}

@media (max-width: 680px) {
    .ttc-premium-dashboard.ttc-role-student {
        padding-inline: 8px !important;
    }

    .ttc-premium-dashboard.ttc-role-student .ttc-portal-hero,
    .ttc-premium-dashboard.ttc-role-student .ttc-next-step-card,
    .ttc-premium-dashboard.ttc-role-student .ttc-today-path,
    .ttc-premium-dashboard.ttc-role-student .ttc-curriculum-map {
        padding: 12px !important;
    }

    .ttc-premium-dashboard.ttc-role-student .ttc-portal-snapshot,
    .ttc-premium-dashboard.ttc-role-student .ttc-today-path-rail,
    .ttc-premium-dashboard.ttc-role-student .ttc-curriculum-track,
    .ttc-premium-dashboard.ttc-role-student .ttc-curriculum-grid {
        grid-template-columns: 1fr !important;
    }

    .ttc-premium-dashboard.ttc-role-student .ttc-next-step-card,
    .ttc-premium-dashboard.ttc-role-student .ttc-today-path-head,
    .ttc-premium-dashboard.ttc-role-student .ttc-curriculum-head {
        align-items: stretch !important;
        flex-direction: column !important;
    }

    .ttc-premium-dashboard.ttc-role-student .ttc-portal-hero-actions a,
    .ttc-premium-dashboard.ttc-role-student .ttc-next-step-action,
    .ttc-premium-dashboard.ttc-role-student .ttc-curriculum-head a {
        width: 100% !important;
    }
}

/* Question reader action rail */
.ttc-role-student .ttc-library-wrapper .ttc-answer-action-rail {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 0 8px !important;
    padding: 4px 0 8px !important;
    border-bottom: 1px solid var(--ttc-learn-line) !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-question-header {
    margin-bottom: 4px !important;
    padding-bottom: 4px !important;
}

.ttc-role-student .ttc-library-wrapper #ttc_notes_panel:not(:is([style*="block"], [style*="display: block"], [style*="display:flex"], [style*="display: flex"])) {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-format-selector {
    margin-bottom: 0 !important;
    padding-bottom: 4px !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-al-answer-content {
    padding-top: 4px !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-answer-action-rail .ttc-inline-audio-control,
.ttc-role-student .ttc-library-wrapper .ttc-answer-action-rail .ttc-audio-controls {
    width: max-content;
    min-height: 30px;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 6px !important;
    border-radius: 0 !important;
    border-color: color-mix(in srgb, var(--ttc-learn-accent) 22%, var(--ttc-learn-line)) !important;
    background: transparent !important;
    border-width: 0 !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-answer-action-rail .ttc-audio-speed-wrap {
    margin: 0 !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-answer-action-rail .ttc-audio-speed {
    min-width: 40px !important;
    height: 26px !important;
    padding: 0 7px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border: 1px solid color-mix(in srgb, var(--ttc-learn-accent) 20%, var(--ttc-learn-line)) !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: var(--ttc-learn-accent) !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-answer-action-rail .ttc-play-audio {
    min-width: 0 !important;
    min-height: 28px !important;
    height: 28px !important;
    padding: 0 11px !important;
    border: 1px solid color-mix(in srgb, var(--ttc-learn-accent) 22%, var(--ttc-learn-line)) !important;
    border-radius: 999px !important;
    background: color-mix(in srgb, var(--ttc-learn-accent) 7%, #ffffff) !important;
    color: var(--ttc-learn-accent) !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 28px !important;
    box-shadow: none !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-answer-tool-group {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px !important;
    min-width: 0;
}

.ttc-role-student .ttc-library-wrapper .ttc-answer-action-rail .ttc-al-item-action,
.ttc-role-student .ttc-library-wrapper .ttc-answer-action-rail .ttc-report-error-btn {
    min-height: 30px !important;
    height: 30px !important;
    padding: 0 11px !important;
    border-radius: 999px !important;
    background: #fff !important;
    border: 1px solid var(--ttc-learn-line) !important;
    color: var(--ttc-learn-muted) !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 30px !important;
    box-shadow: none !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-answer-action-rail .ttc-al-item-action.saved {
    border-color: color-mix(in srgb, var(--ttc-learn-accent) 26%, var(--ttc-learn-line)) !important;
    background: color-mix(in srgb, var(--ttc-learn-accent) 8%, #ffffff) !important;
    color: var(--ttc-learn-accent) !important;
}

.ttc-role-student .ttc-library-wrapper .ttc-answer-action-rail .ttc-report-error-btn {
    justify-self: end;
    color: #dc2626 !important;
    border-color: rgba(220, 38, 38, 0.16) !important;
    background: rgba(220, 38, 38, 0.04) !important;
}

@media (max-width: 980px) {
    .ttc-role-student .ttc-library-wrapper .ttc-answer-action-rail {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    .ttc-role-student .ttc-library-wrapper .ttc-answer-action-rail .ttc-inline-audio-control,
    .ttc-role-student .ttc-library-wrapper .ttc-answer-tool-group,
    .ttc-role-student .ttc-library-wrapper .ttc-answer-action-rail .ttc-report-error-btn {
        width: 100%;
        justify-content: center;
        justify-self: stretch;
    }
}

@media (max-width: 768px) {
    .ttc-role-student .ttc-library-wrapper .ttc-al-container {
        overflow: visible !important;
    }

    .ttc-role-student .ttc-library-wrapper .ttc-al-browser-layout {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    .ttc-role-student .ttc-library-wrapper .ttc-al-sidebar {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        flex: 0 0 auto !important;
        border-right: 0 !important;
        border-bottom: 1px solid var(--ttc-learn-line) !important;
    }

    .ttc-role-student .ttc-library-wrapper .ttc-al-sidebar-header {
        padding: 10px 12px !important;
    }

    .ttc-role-student .ttc-library-wrapper .ttc-al-sidebar-actions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }

    .ttc-role-student .ttc-library-wrapper .ttc-al-sidebar-actions > * {
        min-width: 0 !important;
        width: 100% !important;
    }

    .ttc-role-student .ttc-library-wrapper .ttc-sidebar-sort {
        width: 100% !important;
        min-width: 0 !important;
        height: 36px !important;
        min-height: 36px !important;
        font-size: 13px !important;
    }

    .ttc-role-student .ttc-library-wrapper .ttc-al-sidebar-nav {
        max-height: 285px !important;
        overflow-y: auto !important;
        padding: 8px 10px !important;
    }

    .ttc-role-student .ttc-library-wrapper .ttc-al-sidebar-item {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        min-width: 0 !important;
        margin-bottom: 5px !important;
        padding: 8px 9px !important;
        border-radius: 9px !important;
    }

    .ttc-role-student .ttc-library-wrapper .ttc-al-sidebar-item .q-title {
        min-width: 0 !important;
        margin-right: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        font-size: 13px !important;
        line-height: 1.25 !important;
    }

    .ttc-role-student .ttc-library-wrapper .ttc-al-sidebar-item .q-id-tag {
        padding: 0 4px !important;
        font-size: 9px !important;
    }

    .ttc-role-student .ttc-library-wrapper .ttc-al-sidebar-item .q-icon {
        font-size: 12px !important;
    }

    .ttc-role-student .ttc-library-wrapper .ttc-sidebar-tools {
        display: none !important;
    }

    .ttc-role-student .ttc-library-wrapper .ttc-al-viewport {
        width: 100% !important;
        min-width: 0 !important;
        padding: 18px 14px 96px !important;
        overflow: visible !important;
    }

    .ttc-role-student .ttc-library-wrapper .ttc-al-question-header > div:first-child {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: 10px !important;
    }

    .ttc-role-student .ttc-library-wrapper .ttc-al-question-title {
        min-width: 0 !important;
        font-size: 24px !important;
        line-height: 1.12 !important;
        overflow-wrap: anywhere !important;
    }

    .ttc-role-student .ttc-library-wrapper .ttc-al-format-selector {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }

    .ttc-role-student .ttc-library-wrapper .ttc-al-format-selector::-webkit-scrollbar {
        display: none !important;
    }

    .ttc-role-student .ttc-library-wrapper .ttc-al-format-btn {
        flex: 0 0 auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: 38px !important;
        padding: 0 12px !important;
        white-space: nowrap !important;
    }

    .ttc-role-student .ttc-library-wrapper .ttc-answer-action-rail {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 10px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding-bottom: 10px !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }

    .ttc-role-student .ttc-library-wrapper .ttc-answer-action-rail::-webkit-scrollbar {
        display: none !important;
    }

    .ttc-role-student .ttc-library-wrapper .ttc-answer-action-rail .ttc-inline-audio-control,
    .ttc-role-student .ttc-library-wrapper .ttc-answer-tool-group {
        flex: 0 0 auto !important;
        width: auto !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        justify-self: auto !important;
    }

    .ttc-role-student .ttc-library-wrapper .ttc-answer-action-rail .ttc-report-error-btn {
        flex: 0 0 auto !important;
        width: auto !important;
        justify-self: auto !important;
    }

    .ttc-role-student .ttc-library-wrapper .ttc-answer-action-rail .ttc-play-audio,
    .ttc-role-student .ttc-library-wrapper .ttc-answer-action-rail .ttc-al-item-action,
    .ttc-role-student .ttc-library-wrapper .ttc-answer-action-rail .ttc-report-error-btn {
        height: 36px !important;
        min-height: 36px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        padding: 0 10px !important;
    }
}


/* Production premium student UX pass */
.ttc-premium-dashboard.ttc-role-student {
    padding-bottom: 112px !important;
}

.ttc-premium-dashboard.ttc-role-student .ttc-premium-card,
.ttc-premium-dashboard.ttc-role-student .ttc-stat-premium,
.ttc-premium-dashboard.ttc-role-student .ttc-dashboard-fold {
    box-shadow: 0 18px 44px -34px rgba(15, 23, 42, 0.52) !important;
}

.ttc-premium-dashboard.ttc-role-student .ttc-premium-card:hover,
.ttc-premium-dashboard.ttc-role-student .ttc-stat-premium:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 24px 54px -38px rgba(15, 23, 42, 0.7) !important;
}

.ttc-role-student .ttc-continue-card {
    padding: clamp(18px, 2vw, 24px) !important;
}

.ttc-role-student .ttc-continue-card > h3,
.ttc-role-student .ttc-exam-center-card > h3 {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin-bottom: 18px !important;
}

.ttc-role-student .ttc-continue-card > h3 span,
.ttc-role-student .ttc-exam-center-card > h3 span {
    color: #635bff !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
}

.ttc-role-student .ttc-course-resume-row {
    border-radius: 16px !important;
    padding: 18px 20px !important;
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease !important;
}

.ttc-role-student .ttc-course-resume-row:hover {
    background: rgba(99, 102, 241, 0.06) !important;
    border-color: rgba(99, 102, 241, 0.24) !important;
}

.ttc-role-student .ttc-exam-center-card {
    padding: clamp(18px, 2.2vw, 28px) !important;
}

.ttc-role-student .ttc-pending-exam-banner {
    border-radius: 18px !important;
    padding: 18px 22px !important;
}

.ttc-role-student .ttc-pending-exam-banner .ttc-btn-wow,
.ttc-role-student .ttc-exam-wide-card .ttc-btn-wow,
.ttc-role-student .ttc-course-resume-row .ttc-btn-wow {
    min-height: 44px !important;
    border-radius: 12px !important;
}

.ttc-role-student .ttc-exam-stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
    margin-bottom: 22px !important;
}

.ttc-role-student .ttc-exam-stats-grid > div {
    min-height: 104px !important;
    display: grid !important;
    align-content: center !important;
    border-radius: 16px !important;
}

.ttc-role-student .ttc-exam-action-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px !important;
    margin-bottom: 18px !important;
}

.ttc-role-student .ttc-exam-action-grid .ttc-stat-premium {
    min-height: 220px !important;
    padding: 18px !important;
    display: grid !important;
    grid-template-rows: auto auto 1fr auto !important;
    align-items: start !important;
}

.ttc-role-student .ttc-exam-action-grid .ttc-stat-premium .value {
    font-size: clamp(20px, 1.5vw, 24px) !important;
    line-height: 1.1 !important;
}

.ttc-role-student .ttc-exam-action-grid .ttc-stat-premium .sub {
    min-height: 42px !important;
    line-height: 1.35 !important;
}

.ttc-role-student .ttc-exam-action-grid .ttc-btn-wow {
    align-self: end !important;
    min-height: 44px !important;
    margin-top: 12px !important;
    border-radius: 12px !important;
}

.ttc-role-student .ttc-exam-wide-card {
    margin-bottom: 16px !important;
    padding: 20px !important;
    border-radius: 18px !important;
}

.ttc-role-student .ttc-exam-wide-card > div {
    align-items: center !important;
}

.ttc-role-student .ttc-exam-empty-state {
    min-height: 190px !important;
    display: grid !important;
    place-items: center !important;
    gap: 8px !important;
    padding: 30px !important;
    background: rgba(99, 102, 241, 0.025) !important;
}

.ttc-role-student .ttc-ai-trigger {
    right: 18px !important;
    bottom: 22px !important;
    width: auto !important;
    min-width: 112px !important;
    height: 46px !important;
    border-radius: 999px !important;
    box-shadow: 0 18px 42px -16px rgba(79, 70, 229, 0.7) !important;
    z-index: 99990 !important;
}

body:has(.ttc-role-student) #ttc_go_to_top,
body:has(.ttc-role-student) #ttc-go-top-btn,
body:has(.ttc-role-student) .ttc-go-top {
    right: 28px !important;
    bottom: 82px !important;
    width: 46px !important;
    height: 46px !important;
    border-radius: 999px !important;
    box-shadow: 0 16px 36px -16px rgba(37, 99, 235, 0.72) !important;
    z-index: 99989 !important;
}

.ttc-role-student .ttc-ai-panel {
    right: 18px !important;
    bottom: 82px !important;
    width: min(390px, calc(100vw - 28px)) !important;
    max-height: min(680px, calc(100vh - 120px)) !important;
    z-index: 99991 !important;
}

.ttc-dashboard-v3.ttc-mode-dark .ttc-exam-center-card,
html:not(.ttc-theme-light-init) .ttc-dashboard-v3.ttc-premium-dashboard:not(.ttc-mode-light) .ttc-exam-center-card {
    background: rgba(15, 23, 42, 0.78) !important;
}

.ttc-dashboard-v3.ttc-mode-dark .ttc-exam-center-card .ttc-stat-premium,
html:not(.ttc-theme-light-init) .ttc-dashboard-v3.ttc-premium-dashboard:not(.ttc-mode-light) .ttc-exam-center-card .ttc-stat-premium {
    background-color: rgba(15, 23, 42, 0.58) !important;
    border-color: rgba(148, 163, 184, 0.24) !important;
}

.ttc-dashboard-v3.ttc-mode-dark .ttc-exam-center-card [style*="color:#475569"],
.ttc-dashboard-v3.ttc-mode-dark .ttc-exam-center-card [style*="color: #475569"],
html:not(.ttc-theme-light-init) .ttc-dashboard-v3.ttc-premium-dashboard:not(.ttc-mode-light) .ttc-exam-center-card [style*="color:#475569"],
html:not(.ttc-theme-light-init) .ttc-dashboard-v3.ttc-premium-dashboard:not(.ttc-mode-light) .ttc-exam-center-card [style*="color: #475569"] {
    color: #cbd5e1 !important;
}

.ttc-dashboard-v3.ttc-mode-dark .ttc-pending-exam-banner,
html:not(.ttc-theme-light-init) .ttc-dashboard-v3.ttc-premium-dashboard:not(.ttc-mode-light) .ttc-pending-exam-banner {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(14, 165, 233, 0.14)) !important;
    border-color: rgba(129, 140, 248, 0.32) !important;
}

@media (max-width: 1180px) {
    .ttc-role-student .ttc-exam-stats-grid,
    .ttc-role-student .ttc-exam-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 900px) {
    .ttc-role-student .ttc-db-header {
        align-items: stretch !important;
    }

    .ttc-role-student .ttc-header-right-stack {
        width: 100% !important;
        align-items: stretch !important;
    }

    .ttc-role-student .ttc-header-right-stack .ttc-header-context {
        width: 100% !important;
    }

    .ttc-role-student .ttc-header-right-stack > .ttc-flex {
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
    }

    .ttc-role-student .ttc-header-right-stack .ttc-active-status {
        padding: 0 12px !important;
    }

    .ttc-role-student .ttc-header-right-stack .ttc-active-status span:last-child {
        display: none !important;
    }
}

@media (max-width: 680px) {
    .ttc-premium-dashboard.ttc-role-student {
        padding-bottom: 96px !important;
    }

    .ttc-role-student .ttc-continue-card > h3,
    .ttc-role-student .ttc-exam-center-card > h3 {
        align-items: flex-start !important;
        flex-direction: column !important;
    }

    .ttc-role-student .ttc-course-resume-row,
    .ttc-role-student .ttc-pending-exam-banner,
    .ttc-role-student .ttc-exam-wide-card > div {
        align-items: stretch !important;
        flex-direction: column !important;
    }

    .ttc-role-student .ttc-course-resume-row .ttc-btn-wow,
    .ttc-role-student .ttc-pending-exam-banner .ttc-btn-wow,
    .ttc-role-student .ttc-exam-wide-card .ttc-btn-wow {
        width: 100% !important;
        justify-content: center !important;
    }

    .ttc-role-student .ttc-exam-stats-grid,
    .ttc-role-student .ttc-exam-action-grid {
        grid-template-columns: 1fr !important;
    }

    .ttc-role-student .ttc-exam-action-grid .ttc-stat-premium {
        min-height: 0 !important;
    }

    .ttc-role-student .ttc-ai-trigger {
        right: 14px !important;
        bottom: 18px !important;
        min-width: 46px !important;
        width: 46px !important;
        padding: 0 !important;
    }

    .ttc-role-student .ttc-ai-trigger .label {
        display: none !important;
    }

    body:has(.ttc-role-student) #ttc_go_to_top,
    body:has(.ttc-role-student) #ttc-go-top-btn,
    body:has(.ttc-role-student) .ttc-go-top {
        right: 14px !important;
        bottom: 72px !important;
        width: 44px !important;
        height: 44px !important;
    }

    .ttc-role-student .ttc-ai-panel {
        right: 10px !important;
        bottom: 74px !important;
        width: calc(100vw - 20px) !important;
        max-height: calc(100vh - 104px) !important;
    }
}

/* Practice & Tests exam-hall experience */
.ttc-role-student .ttc-exam-hall-panel {
    display: grid !important;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr) !important;
    gap: 18px !important;
    margin: 0 0 20px !important;
    padding: 18px !important;
    border-radius: 22px !important;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(49, 46, 129, 0.86)),
        radial-gradient(circle at 12% 18%, rgba(14, 165, 233, 0.24), transparent 34%) !important;
    border: 1px solid rgba(129, 140, 248, 0.34) !important;
    color: #f8fafc !important;
    overflow: hidden !important;
    position: relative !important;
}

.ttc-role-student .ttc-exam-hall-screen {
    min-height: 230px !important;
    border-radius: 18px !important;
    padding: 22px !important;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.82)),
        repeating-linear-gradient(90deg, rgba(148, 163, 184, 0.08) 0 1px, transparent 1px 56px) !important;
    border: 1px solid rgba(148, 163, 184, 0.22) !important;
    display: grid !important;
    align-content: space-between !important;
}

.ttc-role-student .ttc-exam-hall-topline,
.ttc-role-student .ttc-exam-hall-meta {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.ttc-role-student .ttc-exam-hall-topline {
    justify-content: space-between !important;
    color: #cbd5e1 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
}

.ttc-role-student .ttc-exam-hall-topline strong {
    color: #fde68a !important;
}

.ttc-role-student .ttc-exam-hall-clock {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
    font-size: clamp(34px, 5vw, 64px) !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    text-shadow: 0 0 24px rgba(129, 140, 248, 0.45) !important;
}

.ttc-role-student .ttc-exam-hall-title {
    font-size: clamp(20px, 2.3vw, 30px) !important;
    font-weight: 900 !important;
    color: #ffffff !important;
}

.ttc-role-student .ttc-exam-hall-meta span {
    padding: 7px 10px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #dbeafe !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

.ttc-role-student .ttc-exam-hall-actions {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    gap: 18px !important;
    padding: 8px 4px !important;
}

.ttc-role-student .ttc-exam-hall-kicker {
    color: #a5b4fc !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
}

.ttc-role-student .ttc-exam-hall-actions h4 {
    color: #ffffff !important;
    margin: 8px 0 !important;
    font-size: 22px !important;
    line-height: 1.15 !important;
}

.ttc-role-student .ttc-exam-hall-actions p {
    color: #cbd5e1 !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

.ttc-role-student .ttc-exam-hall-buttons {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
}

.ttc-role-student .ttc-exam-hall-buttons .ttc-btn-wow,
.ttc-role-student .ttc-exam-hall-buttons .ttc-btn-secondary {
    justify-content: center !important;
    min-height: 48px !important;
    border-radius: 14px !important;
}

.ttc-role-student .ttc-mcq-creator-card {
    max-height: calc(100vh - 40px) !important;
    overflow-y: auto !important;
}

.ttc-role-student .ttc-mcq-modal-header {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 18px !important;
    margin-bottom: 22px !important;
    padding-right: 30px !important;
}

.ttc-role-student .ttc-mcq-review-badge {
    flex: 0 0 auto !important;
    padding: 8px 12px !important;
    border-radius: 999px !important;
    color: #0369a1 !important;
    background: #e0f2fe !important;
    border: 1px solid #bae6fd !important;
    font-size: 12px !important;
    font-weight: 900 !important;
}

.ttc-role-student .ttc-mcq-form-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
}

.ttc-role-student .ttc-mcq-field,
.ttc-role-student .ttc-mcq-option {
    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;
}

.ttc-role-student .ttc-mcq-field-wide {
    grid-column: 1 / -1 !important;
}

.ttc-role-student .ttc-mcq-field label {
    font-size: 12px !important;
    font-weight: 900 !important;
    color: var(--ttc-text-main) !important;
}

.ttc-role-student .ttc-mcq-field input,
.ttc-role-student .ttc-mcq-field textarea,
.ttc-role-student .ttc-mcq-field select,
.ttc-role-student .ttc-mcq-option input {
    width: 100% !important;
    min-height: 44px !important;
    border-radius: 12px !important;
    border: 1px solid var(--ttc-glass-border) !important;
    background: var(--ttc-bg-page, #ffffff) !important;
    color: var(--ttc-text-main, #0f172a) !important;
    padding: 11px 13px !important;
    font-size: 14px !important;
}

.ttc-role-student .ttc-mcq-field textarea {
    min-height: 96px !important;
    resize: vertical !important;
}

.ttc-role-student .ttc-mcq-option {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 10px !important;
}

.ttc-role-student .ttc-mcq-option span {
    width: 42px !important;
    height: 42px !important;
    border-radius: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    font-weight: 900 !important;
}

.ttc-role-student .ttc-mcq-feedback {
    margin-top: 16px !important;
    padding: 12px 14px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}

.ttc-role-student .ttc-mcq-feedback.is-success {
    color: #047857 !important;
    background: #d1fae5 !important;
    border: 1px solid #a7f3d0 !important;
}

.ttc-role-student .ttc-mcq-feedback.is-error {
    color: #b91c1c !important;
    background: #fee2e2 !important;
    border: 1px solid #fecaca !important;
}

.ttc-role-student .ttc-mcq-actions {
    margin-top: 18px !important;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 12px !important;
}

.ttc-dashboard-v3.ttc-mode-dark .ttc-mcq-review-badge,
html:not(.ttc-theme-light-init) .ttc-dashboard-v3.ttc-premium-dashboard:not(.ttc-mode-light) .ttc-mcq-review-badge {
    color: #bfdbfe !important;
    background: rgba(59, 130, 246, 0.16) !important;
    border-color: rgba(147, 197, 253, 0.26) !important;
}

@media (max-width: 860px) {
    .ttc-role-student .ttc-exam-hall-panel,
    .ttc-role-student .ttc-mcq-form-grid {
        grid-template-columns: 1fr !important;
    }

    .ttc-role-student .ttc-mcq-modal-header,
    .ttc-role-student .ttc-mcq-actions {
        flex-direction: column !important;
        align-items: stretch !important;
    }
}
