:root {
    --sq-bg: #eef3fb;
    --sq-surface: rgba(248, 250, 255, 0.92);
    --sq-surface-soft: rgba(241, 245, 255, 0.86);
    --sq-border: rgba(66, 94, 148, 0.16);
    --sq-text: #0f172a;
    --sq-muted: #62708a;
    --sq-sidebar: #08111f;
    --sq-sidebar-soft: #91a5d0;
    --sq-primary: #1247d6;
    --sq-primary-soft: #0d2f8f;
    --sq-accent: #21c7d9;
    --sq-success-bg: #e9fbf4;
    --sq-success-text: #0c8f63;
    --sq-warning-bg: #fff5df;
    --sq-warning-text: #9a6400;
    --sq-danger-bg: #fff0f4;
    --sq-danger-text: #b4234d;
    --sq-shadow: 0 24px 60px rgba(16, 30, 68, 0.10);
    --sq-grid: rgba(74, 104, 168, 0.08);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    color: var(--sq-text);
    background:
        radial-gradient(circle at top left, rgba(33, 199, 217, 0.14), transparent 24%),
        radial-gradient(circle at top right, rgba(18, 71, 214, 0.11), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, var(--sq-bg) 100%);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(var(--sq-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--sq-grid) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.6), transparent 92%);
    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

a {
    color: inherit;
    text-decoration: none;
}

body:not(.auth-page) {
    color: #111111;
}

.auth-page {
    min-height: 100vh;
    overflow-x: hidden;
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-shell-compact {
    width: 100%;
}

.auth-panel {
    width: 100%;
    max-width: 1040px;
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.82fr);
    background: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
}

.auth-panel-form {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    background: #f8f8f8;
}

.auth-panel-aside {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    text-align: center;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.14), transparent 24%),
        linear-gradient(180deg, #111111 0%, #050505 100%);
}

.auth-panel-copy {
    max-width: 18rem;
}

.auth-stage {
    width: 100%;
    background: rgba(7, 7, 7, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: var(--sq-shadow);
    min-height: 720px;
}

.auth-copy {
    padding: 4rem 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-kicker {
    color: #8f8f8f;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.auth-card {
    background: transparent;
    border: 0;
    border-radius: 0;
}

.auth-card-compact {
    width: 100%;
    max-width: 460px;
    padding: 2.25rem;
    background: rgba(10, 10, 10, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    box-shadow: var(--sq-shadow);
}

.brand-mark {
    width: 2.3rem;
    height: 2.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #ffffff;
    color: #050505;
}

.auth-title {
    font-size: clamp(2.4rem, 4vw, 3.7rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
}

.auth-subtitle {
    color: #b7b7b7;
    font-size: 1.05rem;
    max-width: 32rem;
}

.auth-switch {
    display: inline-flex;
    gap: 0.35rem;
    color: #b6b6b6;
    font-size: 1rem;
    margin: 0.6rem 0 2rem;
}

.auth-switch-compact {
    width: 100%;
    justify-content: center;
    margin: 1.25rem 0 0;
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.auth-switch a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.auth-form-shell {
    max-width: 34rem;
}

.auth-form-shell-compact {
    width: 100%;
    max-width: 360px;
}

.auth-label {
    color: #8e8e8e;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
}

.auth-input {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-radius: 1rem;
    min-height: 62px;
    padding: 1rem 1.15rem;
}

.auth-input:focus {
    background: #1d1d1d;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.32);
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.06);
}

.auth-input::placeholder {
    color: #737373;
}

.auth-title-compact {
    font-size: clamp(2rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 0.75rem;
    color: #111111;
}

.auth-subtitle-compact {
    max-width: none;
    text-align: center;
    font-size: 0.98rem;
    margin-bottom: 1.75rem;
    color: #8b8b8b;
}

.auth-label-soft {
    color: #6f6f6f;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
}

.auth-input-light {
    min-height: 52px;
    background: #efefef;
    border: 1px solid #c9c9c9;
    color: #111111;
    border-radius: 0.4rem;
    padding: 0.9rem 1rem;
}

.auth-input-light:focus {
    background: #ffffff;
    color: #111111;
    border-color: rgba(17, 17, 17, 0.65);
    box-shadow: 0 0 0 0.2rem rgba(17, 17, 17, 0.12);
}

.auth-panel .auth-input-light,
.auth-panel .form-control.auth-input-light {
    background: #efefef;
    border-color: #c9c9c9;
    color: #111111;
}

.auth-panel .auth-input-light::placeholder,
.auth-panel .form-control.auth-input-light::placeholder {
    color: #666666;
}

.auth-panel .auth-input-light:focus,
.auth-panel .form-control.auth-input-light:focus {
    background: #ffffff;
    color: #111111;
    border-color: rgba(17, 17, 17, 0.65);
    box-shadow: 0 0 0 0.2rem rgba(17, 17, 17, 0.12);
}

.auth-inline-note {
    margin: 0.25rem 0 1.25rem;
    text-align: center;
    color: #8c8c8c;
    font-size: 0.9rem;
}

.auth-remember-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: -0.15rem 0 1rem;
    color: #5e6470;
    font-size: 0.92rem;
    cursor: pointer;
}

.auth-remember-check {
    width: 17px;
    height: 17px;
    accent-color: #111111;
    cursor: pointer;
}

.auth-inline-action {
    border: 0;
    background: transparent;
    padding: 0;
    color: #7b8494;
    font-size: 0.95rem;
    text-decoration: none;
}

.auth-inline-action:hover {
    color: #111111;
}

.auth-submit-accent {
    display: block;
    width: 180px;
    min-height: 48px;
    margin: 0 auto;
    border-radius: 999px;
    background: #000000;
    border: 1px solid #000000;
    color: #ffffff;
    letter-spacing: 0.04em;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.auth-submit-accent:hover {
    background: #1c1c1c;
    border-color: #1c1c1c;
    color: #ffffff;
}

.auth-aside-title {
    margin: 0 0 1rem;
    color: #ffffff;
    font-size: clamp(2.75rem, 5vw, 4.25rem);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.05em;
    text-shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
    font-family: Georgia, "Times New Roman", serif;
    text-transform: uppercase;
}

.auth-aside-logo {
    width: 124px;
    height: 124px;
    object-fit: contain;
    margin: 0 auto 1.4rem;
    filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.34));
    animation: authLogoFloat 4.2s ease-in-out infinite;
}

.auth-aside-kicker {
    display: block;
    margin-bottom: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-family: "Courier New", monospace;
}

.auth-aside-text {
    margin: 0 0 1.75rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1rem;
    line-height: 1.6;
}

@keyframes authLogoFloat {
    0%,
    100% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.34));
    }

    50% {
        transform: translateY(-8px) scale(1.03);
        filter: drop-shadow(0 30px 46px rgba(210, 42, 42, 0.16));
    }
}

.auth-outline-action {
    min-width: 168px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.auth-outline-action:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.auth-panel .auth-submit-accent,
.auth-panel .btn.auth-submit-accent,
.auth-panel button.auth-submit-accent {
    background: #000000;
    border-color: #000000;
    color: #ffffff;
}

.auth-panel .auth-submit-accent:hover,
.auth-panel .btn.auth-submit-accent:hover,
.auth-panel button.auth-submit-accent:hover,
.auth-panel .auth-submit-accent:focus,
.auth-panel .btn.auth-submit-accent:focus,
.auth-panel button.auth-submit-accent:focus {
    background: #1c1c1c;
    border-color: #1c1c1c;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.auth-panel .auth-outline-action,
.auth-panel .auth-outline-action:hover,
.auth-panel .auth-outline-action:focus {
    color: #ffffff;
}

.auth-outline-action-dark {
    display: flex;
    width: 180px;
    margin: 0.85rem auto 0;
    min-height: 48px;
    border-color: rgba(17, 17, 17, 0.16);
    color: #111111 !important;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.auth-outline-action-dark:hover,
.auth-outline-action-dark:focus {
    background: #f4f6fb;
    border-color: rgba(17, 17, 17, 0.24);
    color: #111111 !important;
}

.auth-submit {
    min-height: 62px;
    border-radius: 1rem;
    background: #ffffff;
    border: 0;
    color: #080808;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: transform 0.2s ease, background 0.2s ease;
}

.auth-submit:hover {
    background: #e9e9e9;
    transform: translateY(-1px);
}

.auth-ghost {
    min-height: 58px;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #171717;
    color: #efefef;
    font-weight: 700;
}

.auth-ghost:hover {
    background: #1d1d1d;
    color: #ffffff;
}

.auth-legal {
    color: #7f7f7f;
    font-size: 0.9rem;
}

.auth-visual {
    min-height: 720px;
    position: relative;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(223, 223, 223, 0.75) 42%, rgba(106, 106, 106, 0.28) 42%, rgba(20, 20, 20, 0.4) 100%),
        radial-gradient(circle at 76% 16%, rgba(255, 255, 255, 0.85), transparent 22%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.05));
}

.auth-visual::before {
    content: '';
    position: absolute;
    inset: auto 8% 10% 10%;
    height: 36%;
    border-radius: 48% 52% 18% 20% / 42% 42% 18% 18%;
    background:
        radial-gradient(circle at 62% 22%, rgba(255, 255, 255, 0.2), transparent 16%),
        linear-gradient(180deg, rgba(35, 35, 35, 0.82) 0%, rgba(9, 9, 9, 0.94) 100%);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
}

.auth-visual::after {
    content: '';
    position: absolute;
    inset: auto -8% 0 -8%;
    height: 38%;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.07), transparent 18%),
        radial-gradient(circle at 62% 16%, rgba(255, 255, 255, 0.08), transparent 20%),
        linear-gradient(180deg, rgba(30, 30, 30, 0.18), rgba(6, 6, 6, 0.92));
    clip-path: polygon(0 56%, 10% 45%, 24% 50%, 36% 40%, 47% 46%, 58% 35%, 70% 42%, 82% 34%, 100% 47%, 100% 100%, 0 100%);
}

body.page-transitioning {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.app-shell {
    min-height: 100vh;
}

.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 228px;
    z-index: 30;
}

.app-sidebar-rail {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    padding: 1.2rem 0.95rem;
    background:
        linear-gradient(180deg, rgba(8, 17, 31, 0.98) 0%, rgba(10, 26, 52, 0.98) 100%);
    border-right: 1px solid rgba(76, 109, 179, 0.24);
    box-shadow: 24px 0 60px rgba(3, 8, 21, 0.34);
}

.app-sidebar-section {
    width: 100%;
}

.app-sidebar-brand-section {
    display: grid;
    justify-items: center;
    gap: 0.9rem;
    text-align: center;
}

.app-sidebar-logo {
    width: 78px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}

.app-sidebar-logo-image,
.app-sidebar-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-sidebar-brand {
    color: #f5f9ff;
    font-family: 'Space Grotesk', 'Manrope', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.app-sidebar-accordion,
.app-sidebar-nav,
.app-sidebar-footer,
.app-sidebar-user-copy {
    display: grid;
    gap: 0.6rem;
}

.app-sidebar-spacer {
    flex: 1 1 auto;
}

.app-sidebar-nav-section {
    display: grid;
    gap: 0.8rem;
}

.app-sidebar-group {
    display: grid;
    gap: 0.45rem;
}

.app-sidebar-group-trigger {
    width: 100%;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    padding: 0.8rem 0.95rem;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
    color: #c3d2f2;
    font-size: 0.96rem;
    font-weight: 800;
    text-align: left;
    border: 1px solid rgba(101, 136, 205, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.app-sidebar-group-trigger-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.78rem;
    min-width: 0;
}

.app-sidebar-group-icon {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    color: #dce7ff;
    font-size: 0.9rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.app-sidebar-group-copy {
    min-width: 0;
}

.app-sidebar-group-label {
    display: block;
    color: inherit;
}

.app-sidebar-group-chevron {
    color: #8fa4cf;
    transition: transform 0.2s ease, color 0.2s ease;
}

.app-sidebar-group.is-open .app-sidebar-group-trigger,
.app-sidebar-group-trigger:hover,
.app-sidebar-group-trigger.is-active {
    background: linear-gradient(135deg, rgba(18, 71, 214, 0.94) 0%, rgba(16, 150, 214, 0.86) 100%);
    color: #faffff;
    box-shadow: 0 12px 24px rgba(18, 71, 214, 0.26);
    border-color: rgba(99, 164, 255, 0.2);
    transform: translateY(-1px);
}

.app-sidebar-group.is-open .app-sidebar-group-icon,
.app-sidebar-group-trigger:hover .app-sidebar-group-icon,
.app-sidebar-group-trigger.is-active .app-sidebar-group-icon {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.app-sidebar-group-panel {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.24s ease, opacity 0.24s ease;
}

.app-sidebar-group-panel > .app-sidebar-nav {
    overflow: hidden;
    padding: 0.25rem 0 0.1rem;
}

.app-sidebar-group.is-open .app-sidebar-group-panel {
    grid-template-rows: 1fr;
    opacity: 1;
}

.app-sidebar-group.is-open .app-sidebar-group-chevron {
    transform: rotate(180deg);
    color: #ffffff;
}

.app-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 42px;
    padding: 0 0.95rem 0 1rem;
    color: #aab8d9;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 14px;
    letter-spacing: 0.01em;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.app-sidebar-link-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(145, 165, 208, 0.5);
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.app-sidebar-link:hover,
.app-sidebar-link.is-active {
    color: #ffffff;
    background: linear-gradient(90deg, rgba(17, 53, 104, 0.86), rgba(17, 53, 104, 0.28));
    transform: translateX(3px);
}

.app-sidebar-link:hover .app-sidebar-link-dot,
.app-sidebar-link.is-active .app-sidebar-link-dot {
    background: #4fd8ff;
    transform: scale(1.15);
}

.app-sidebar-user,
.app-sidebar-logout {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 0.95rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
    color: #ffffff;
    border: 1px solid rgba(88, 121, 190, 0.1);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.app-sidebar-user {
    gap: 0.7rem;
    padding: 0.8rem 0.9rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(88, 121, 190, 0.08);
    box-shadow: none;
}

.app-sidebar-user:hover,
.app-sidebar-logout:hover {
    background: linear-gradient(180deg, rgba(26, 53, 95, 0.92), rgba(18, 36, 67, 0.92));
    border-color: rgba(99, 164, 255, 0.16);
    transform: translateY(-1px);
}

.app-sidebar-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.app-sidebar-user-copy strong {
    color: #ffffff;
    font-size: 0.84rem;
    line-height: 1.15;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.app-sidebar-user-copy span,
.app-sidebar-user-caret,
.app-sidebar-email {
    color: var(--sq-sidebar-soft);
    font-size: 0.76rem;
}

.app-sidebar-user-copy {
    gap: 0.22rem;
}

.app-sidebar-user-copy span {
    color: rgba(145, 165, 208, 0.92);
    font-weight: 500;
}

.app-sidebar-user-caret {
    margin-left: auto;
    font-size: 0.8rem;
    opacity: 0.8;
}

.app-sidebar-footer {
    padding-top: 0.2rem;
}

.app-content {
    margin-left: 228px;
    min-width: 0;
}

.dashboard-shell,
.profile-shell,
.placeholder-page {
    padding: 2rem 1.25rem 3rem;
}

.dashboard-container,
.profile-container,
.page-flow {
    max-width: 1320px;
    margin: 0 auto;
}

.dashboard-grid,
.content-grid {
    display: grid;
    gap: 1.4rem;
}

.content-grid.two-columns,
.student-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem;
}

.content-card,
.metric-card,
.profile-side-card,
.profile-main-card,
.hero-banner {
    background: var(--sq-surface);
    border: 1px solid var(--sq-border);
    border-radius: 1.1rem;
    box-shadow: var(--sq-shadow);
    backdrop-filter: blur(16px);
}

.content-card,
.hero-banner,
.profile-main-card,
.profile-side-card {
    padding: 1.7rem;
}

.metric-card {
    padding: 1.4rem;
}

.hero-banner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.hero-banner::before,
.content-card::before {
    content: '';
    position: absolute;
    inset: auto;
    pointer-events: none;
}

.hero-banner::before {
    top: -80px;
    right: -80px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(33, 199, 217, 0.22) 0%, rgba(33, 199, 217, 0) 70%);
}

.content-card {
    position: relative;
    overflow: hidden;
}

.content-card::before {
    top: -60px;
    right: -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(18, 71, 214, 0.08) 0%, rgba(18, 71, 214, 0) 70%);
}

.hero-badge,
.muted-chip,
.related-chip,
.profile-role-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(74, 104, 168, 0.16);
    background: rgba(240, 245, 255, 0.92);
    color: #35507d;
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
}

.hero-badge,
.profile-role-chip {
    background: rgba(18, 71, 214, 0.92);
    border-color: rgba(18, 71, 214, 0.92);
    color: #ffffff;
}

.toolbar-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.placeholder-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.inline-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.placeholder-meta {
    color: #4c5d7a;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.68rem;
    font-weight: 800;
}

.text-muted {
    color: #8a8a8a !important;
}

.btn-primary {
    background: linear-gradient(135deg, #1247d6 0%, #1375df 100%);
    border-color: #1247d6;
    box-shadow: 0 12px 22px rgba(18, 71, 214, 0.18);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #0f3dbb 0%, #1065c2 100%);
    border-color: #0f3dbb;
}

.btn-outline-light {
    background: rgba(245, 248, 255, 0.92);
    border-color: rgba(74, 104, 168, 0.2);
    color: #16325f;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    background: #1247d6;
    border-color: #1247d6;
    color: #ffffff;
}

.btn-outline-danger {
    border-color: rgba(188, 42, 42, 0.28);
    background: var(--sq-danger-bg);
    color: var(--sq-danger-text);
    font-weight: 700;
}

.btn-outline-danger:hover,
.btn-outline-danger:focus {
    background: var(--sq-danger-text);
    border-color: var(--sq-danger-text);
    color: #ffffff;
}

.empty-card {
    padding: 2.2rem;
    border: 1px dashed rgba(74, 104, 168, 0.28);
    border-radius: 1.25rem;
    text-align: center;
    color: #4f5d76;
    background: rgba(245, 248, 255, 0.82);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.42rem 0.75rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
}

.status-success {
    background: var(--sq-success-bg);
    color: var(--sq-success-text);
}

.status-warning {
    background: var(--sq-warning-bg);
    color: var(--sq-warning-text);
}

.status-danger {
    background: var(--sq-danger-bg);
    color: var(--sq-danger-text);
}

.student-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.9fr);
    gap: 1.5rem;
    background:
        radial-gradient(circle at top right, rgba(72, 120, 214, 0.16), transparent 28%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 247, 255, 0.98) 100%);
}

.student-dashboard-home {
    gap: 1.25rem;
}

.student-hero-compact {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 1.5rem 1.7rem;
}

.student-hero-copy {
    display: grid;
    gap: 0.8rem;
}

.student-hero-headline {
    display: grid;
    gap: 0.45rem;
    max-width: 42rem;
}

.student-hero-inline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.student-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 42px;
    padding: 0 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(74, 104, 168, 0.14);
    color: #28426c;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
}

.student-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.student-overview-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.85rem;
    align-items: start;
    padding: 1.15rem 1.1rem;
    border-radius: 1.15rem;
    border: 1px solid var(--sq-border);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.04);
}

.student-overview-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1rem;
    flex-shrink: 0;
}

.student-overview-card-primary .student-overview-icon {
    background: rgba(18, 71, 214, 0.1);
    color: #1247d6;
}

.student-overview-card-danger .student-overview-icon {
    background: rgba(180, 35, 77, 0.1);
    color: #b4234d;
}

.student-overview-card-warning .student-overview-icon {
    background: rgba(245, 191, 69, 0.16);
    color: #9a6400;
}

.student-overview-card-neutral .student-overview-icon {
    background: rgba(53, 80, 125, 0.1);
    color: #35507d;
}

.student-overview-copy {
    display: grid;
    gap: 0.18rem;
}

.student-overview-copy span {
    color: #4c5d7a;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.student-overview-copy strong {
    color: #111111;
    font-size: 1.4rem;
    line-height: 1.05;
}

.student-overview-copy small {
    color: var(--sq-muted);
    font-size: 0.84rem;
    line-height: 1.45;
}

.student-home-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 1rem;
}

.student-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.student-section-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: rgba(18, 71, 214, 0.08);
    color: #1247d6;
    font-size: 1rem;
    flex-shrink: 0;
}

.student-weak-list,
.student-actions-grid {
    display: grid;
    gap: 0.85rem;
}

.student-review-list {
    display: grid;
    gap: 0.95rem;
}

.student-review-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1.1rem 1.15rem;
    border-radius: 1.3rem;
    border: 1px solid rgba(74, 104, 168, 0.14);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 255, 0.98) 100%),
        radial-gradient(circle at top right, rgba(255, 206, 92, 0.12), transparent 40%);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.05);
}

.student-review-copy {
    display: grid;
    gap: 0.45rem;
}

.student-review-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: fit-content;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(18, 71, 214, 0.07);
    color: #31508e;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.student-review-copy strong {
    color: #111111;
    font-size: 1.08rem;
    line-height: 1.45;
}

.student-review-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 0.8rem;
    color: var(--sq-muted);
    font-size: 0.9rem;
}

.student-review-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
}

.student-review-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    align-self: stretch;
    justify-self: end;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(255, 244, 214, 0.95) 0%, rgba(255, 250, 237, 0.98) 100%);
    border: 1px solid rgba(241, 191, 77, 0.24);
    color: #8d6410;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.student-review-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(241, 191, 77, 0.18);
    border-color: rgba(241, 191, 77, 0.38);
    color: #7a5308;
}

.student-review-cta .status-badge {
    border: 0;
    background: transparent;
    padding: 0;
}

.student-weak-item {
    display: grid;
    gap: 0.75rem;
    padding: 1rem 1.05rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(74, 104, 168, 0.14);
    background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
}

.student-weak-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.student-weak-top strong {
    display: block;
    color: #111111;
    margin-bottom: 0.15rem;
}

.student-weak-top span,
.student-weak-meta {
    color: var(--sq-muted);
    font-size: 0.88rem;
}

.student-weak-progress {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(74, 104, 168, 0.1);
    overflow: hidden;
}

.student-weak-progress-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f09b3d 0%, #d63b58 100%);
}

.student-weak-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.student-weak-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.student-actions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.student-performance-grid .student-action-tile {
    min-height: 190px;
}

.student-action-tile {
    display: grid;
    gap: 0.45rem;
    min-height: 154px;
    padding: 1rem 1.05rem;
    border-radius: 1.15rem;
    border: 1px solid rgba(74, 104, 168, 0.14);
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.student-action-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(18, 71, 214, 0.08);
    color: #1247d6;
    font-size: 1rem;
}

.student-action-tile strong {
    color: #111111;
    font-size: 1rem;
}

.student-action-tile span:last-child {
    color: var(--sq-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.student-action-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 34px rgba(15, 23, 42, 0.07);
    border-color: rgba(18, 71, 214, 0.2);
}

.student-action-tile.is-primary {
    background: linear-gradient(135deg, #1247d6 0%, #2d67ee 100%);
    border-color: rgba(18, 71, 214, 0.24);
    box-shadow: 0 18px 34px rgba(18, 71, 214, 0.16);
}

.student-action-tile.is-primary .student-action-icon {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.student-action-tile.is-primary strong,
.student-action-tile.is-primary span:last-child {
    color: #ffffff;
}

.student-report-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 1rem;
}

.student-chart-card {
    display: grid;
    gap: 1rem;
}

.student-chart-wrap {
    position: relative;
    min-height: 320px;
}

.student-chart-wrap-donut {
    min-height: 260px;
}

.student-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    color: var(--sq-muted);
    font-size: 0.9rem;
}

.student-chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.student-dot {
    font-size: 0.7rem;
}

.student-dot-success {
    color: #16a34a;
}

.student-dot-danger {
    color: #dc2626;
}

.student-subject-table {
    display: grid;
    gap: 0.9rem;
}

.student-subject-row-card {
    display: grid;
    gap: 0.8rem;
    padding: 1rem 1.05rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(74, 104, 168, 0.14);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.student-subject-row-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.student-subject-row-top strong {
    display: block;
    color: #111111;
    margin-bottom: 0.1rem;
}

.student-subject-row-top span {
    color: var(--sq-muted);
    font-size: 0.88rem;
}

.student-subject-progress {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(74, 104, 168, 0.1);
    overflow: hidden;
}

.student-subject-progress-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #1247d6 0%, #52a7ff 100%);
}

.student-subject-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1rem;
    color: var(--sq-muted);
    font-size: 0.9rem;
}

.student-subject-stats span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.student-mini-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.student-mini-stat {
    display: grid;
    gap: 0.15rem;
    padding: 0.9rem 0.95rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
    border: 1px solid rgba(74, 104, 168, 0.12);
}

.student-mini-stat span {
    color: #4c5d7a;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.student-mini-stat strong {
    color: #111111;
    font-size: 1.2rem;
}

.student-insights-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.student-insight-card {
    display: grid;
    gap: 0.55rem;
    padding: 1rem 1.05rem;
    border-radius: 1.15rem;
    border: 1px solid rgba(74, 104, 168, 0.14);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.student-insight-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(18, 71, 214, 0.08);
    color: #1247d6;
}

.student-insight-card strong {
    color: #111111;
    font-size: 1rem;
}

.student-insight-card p {
    margin: 0;
    color: var(--sq-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.student-hero-actions {
    display: grid;
    gap: 0.85rem;
    align-content: start;
}

.student-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.35rem;
}

.student-hero-stat {
    display: inline-grid;
    gap: 0.08rem;
    min-width: 108px;
    padding: 0.8rem 0.95rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(17, 17, 17, 0.08);
}

.student-hero-stat strong {
    font-size: 1.05rem;
    color: #111111;
}

.student-hero-stat small {
    color: var(--sq-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.68rem;
}

.student-cta-card {
    display: grid;
    gap: 0.25rem;
    padding: 1rem 1.1rem;
    border-radius: 1.1rem;
    border: 1px solid var(--sq-border);
    background: linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.student-cta-card-primary {
    background: linear-gradient(135deg, #1247d6 0%, #2d67ee 100%);
    border-color: rgba(18, 71, 214, 0.28);
    box-shadow: 0 18px 34px rgba(18, 71, 214, 0.18);
}

.student-cta-card-primary strong,
.student-cta-card-primary span {
    color: #ffffff;
}

.student-cta-card strong {
    color: #111111;
}

.student-cta-card span {
    color: var(--sq-muted);
    font-size: 0.92rem;
}

.student-cta-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.08);
    border-color: rgba(56, 92, 169, 0.22);
}

.student-summary-stack,
.student-subject-list,
.student-activity-list,
.study-list,
.banca-list,
.related-list,
.related-question-list,
.materia-stack,
.assunto-list,
.review-import-grid {
    display: grid;
    gap: 0.85rem;
}

.student-summary-item,
.student-subject-row,
.student-activity-row,
.related-list-row,
.assunto-row,
.question-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.05rem;
    border: 1px solid var(--sq-border);
    border-radius: 1.1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%);
}

.student-summary-item span,
.student-subject-row span {
    color: var(--sq-muted);
}

.student-activity-row {
    align-items: flex-start;
}

.student-activity-index,
.question-id {
    min-width: 54px;
    color: #929292;
    font-weight: 800;
}

.student-activity-copy,
.question-content,
.study-list-main,
.banca-info,
.materia-panel-copy {
    min-width: 0;
}

.student-activity-meta,
.question-meta,
.prova-card-meta,
.study-list-meta,
.study-option-footer,
.banca-meta,
.related-chip-grid,
.user-card-badges,
.prova-card-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.question-card-difficulty {
    display: inline-flex;
    align-items: center;
    gap: 0.14rem;
    color: #c6cedf;
    font-size: 0.82rem;
}

.question-card-difficulty .bi-star-fill.is-active {
    color: #f2b940;
}

.study-questions-hero {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.study-game-entry {
    display: grid;
    gap: 1.15rem;
}

.study-game-entry-head {
    display: grid;
    gap: 0.25rem;
}

.study-game-entry-title {
    margin: 0;
    color: #111111;
    font-size: clamp(1.55rem, 2.2vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.study-game-metric-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.study-questoes-surface {
    background: #ffffff;
}

.study-option-grid,
.banca-card-grid,
.question-card-grid,
.prova-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.question-list-filter-bar {
    padding: 1rem 1.1rem;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 1.2rem;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
}

.study-option-card,
.study-list-card,
.question-card,
.prova-card,
.review-question-card,
.user-card {
    display: grid;
    gap: 0.75rem;
    grid-template-rows: auto auto 1fr auto;
    padding: 1.1rem;
    border-radius: 1.25rem;
    border: 1px solid var(--sq-border);
    background: linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.05);
}

.question-card {
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.question-card::after {
    content: 'Clique para visualizar';
    position: absolute;
    left: 1.1rem;
    bottom: 4.35rem;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    background: rgba(18, 71, 214, 0.08);
    color: #315790;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    z-index: 1;
}

.question-card:hover {
    transform: translateY(-4px);
    border-color: rgba(49, 87, 144, 0.22);
    background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
    box-shadow: 0 18px 34px rgba(49, 87, 144, 0.12);
}

.question-card:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.study-option-link {
    appearance: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    min-height: 100%;
    position: relative;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    color: #111111;
    border-color: rgba(17, 17, 17, 0.08);
    padding: 1.25rem;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
}

.study-option-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
    border-color: rgba(17, 17, 17, 0.14);
}

.study-option-link.is-active {
    border-color: rgba(17, 17, 17, 0.22);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.14);
    transform: translateY(-2px);
}

.study-option-link.is-active::after {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    border-radius: inherit;
    background: currentColor;
    pointer-events: none;
}

.study-option-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.study-option-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    color: inherit;
    font-size: 1.3rem;
    box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.06);
}

.study-accent-blue {
    background: #eef4ff;
    color: #23467e;
}

.study-accent-gold {
    background: #fff4df;
    color: #8b5a12;
}

.study-accent-rose {
    background: #fff0f5;
    color: #8f3157;
}

.study-option-link .study-option-kicker,
.study-option-link h3,
.study-option-link p,
.study-option-link .study-option-select {
    color: inherit;
}

.study-option-link .study-option-kicker {
    opacity: 1;
    font-size: 0.76rem;
    letter-spacing: 0.14em;
}

.study-option-link p {
    color: rgba(17, 17, 17, 0.7);
    line-height: 1.55;
}

.study-option-link h3 {
    color: #111111;
    letter-spacing: -0.01em;
    font-size: 1.05rem;
}

.study-option-link .muted-chip {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(17, 17, 17, 0.08);
    color: #333333;
}

.study-option-select {
    margin-left: auto;
    font-weight: 800;
    font-size: 0.84rem;
    color: #111111;
    opacity: 0.84;
}

.study-option-link.is-active .study-option-select {
    opacity: 1;
}

.study-selection-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.2rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(33, 59, 90, 0.12);
    background:
        radial-gradient(circle at top right, rgba(72, 120, 214, 0.14), transparent 30%),
        linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
}

.study-selection-copy {
    min-width: 0;
}

.study-selection-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.study-selection-actions-top {
    justify-content: flex-end;
}

.study-icon-back-btn {
    width: 48px;
    min-width: 48px;
    height: 48px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
}

.study-icon-back-btn i {
    font-size: 1rem;
}

.study-game-metric {
    position: relative;
    overflow: hidden;
    padding: 1.35rem;
    border-radius: 1.35rem;
    background:
        radial-gradient(circle at top right, rgba(18, 71, 214, 0.09), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
}

.study-game-metric-compact {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-height: 110px;
    padding: 1rem 1.05rem;
}

.study-game-metric-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #111111;
    color: #ffffff;
    font-size: 1.05rem;
}

.study-game-metric-copy {
    display: grid;
    gap: 0.12rem;
}

.study-game-metric-copy strong {
    color: #111111;
    font-size: 1.7rem;
    line-height: 1;
    letter-spacing: -0.03em;
}

.study-game-metric .small {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.92rem;
}

.study-game-metric .display-6 {
    margin: 0;
    line-height: 1;
    letter-spacing: -0.03em;
}

.study-game-metric-note {
    margin-top: 0.55rem;
    color: #7c879c;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.study-game-cta-wrap {
    display: flex;
    justify-content: center;
}

.study-game-cta-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.study-game-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    max-width: 520px;
    padding: 1rem 1.15rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(17, 17, 17, 0.08);
    background:
        radial-gradient(circle at top right, rgba(18, 71, 214, 0.12), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #f6f8ff 100%);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.study-game-card:hover {
    transform: translateY(-2px);
    border-color: rgba(17, 17, 17, 0.14);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.12);
}

.study-route-card {
    min-height: 190px;
    max-width: none;
}

.study-route-card-accent {
    background:
        radial-gradient(circle at top right, rgba(18, 71, 214, 0.18), transparent 24%),
        linear-gradient(135deg, #ffffff 0%, #eef4ff 100%);
}

.study-game-route-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.study-sort-toolbar {
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.study-sort-chip {
    min-height: 42px;
    padding: 0.55rem 0.9rem;
    border: 1px solid rgba(35, 70, 126, 0.14);
    border-radius: 999px;
    background: #ffffff;
    color: #4e6590;
    font-size: 0.84rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.study-sort-chip:hover,
.study-sort-chip.is-active {
    border-color: rgba(35, 70, 126, 0.28);
    background: #23467e;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(35, 70, 126, 0.18);
}

.study-selection-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.study-selection-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.15rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(17, 17, 17, 0.08);
    background:
        radial-gradient(circle at top right, rgba(18, 71, 214, 0.12), transparent 26%),
        linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.study-selection-card:hover {
    transform: translateY(-2px);
    border-color: rgba(35, 70, 126, 0.22);
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.1);
}

.study-selection-card.is-sorted {
    animation: studyCardReorder 0.28s ease both;
    animation-delay: calc(var(--study-card-delay, 0) * 30ms);
}

.study-selection-card-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #111111;
    color: #ffffff;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.study-selection-card-copy {
    min-width: 0;
}

.study-selection-card-badge {
    width: fit-content;
    margin-bottom: 0.55rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #111111 0%, #23467e 100%);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 12px 20px rgba(17, 17, 17, 0.18);
}

.study-selection-card-badge i {
    font-size: 0.82rem;
}

.study-selection-card.is-fresh {
    border-color: rgba(35, 70, 126, 0.24);
    box-shadow:
        0 18px 30px rgba(15, 23, 42, 0.1),
        0 0 0 1px rgba(35, 70, 126, 0.08);
}

.study-selection-card.is-fresh .study-selection-card-badge {
    animation: studyFreshBadgePulse 1.8s ease-in-out infinite;
}

.study-selection-card-copy h3 {
    margin: 0 0 0.2rem;
    color: #111111;
    font-size: 1.06rem;
    font-weight: 800;
}

.study-selection-card-copy p {
    margin: 0;
    color: #70819b;
    font-size: 0.92rem;
}

.study-selection-card-meta {
    margin-top: 0.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 0.9rem;
    color: #5f7292;
    font-size: 0.8rem;
    font-weight: 700;
}

.study-selection-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.study-selection-card-side {
    display: grid;
    justify-items: end;
    gap: 0.1rem;
    color: #23467e;
    text-align: right;
}

.study-selection-card-side strong {
    font-size: 1.2rem;
    line-height: 1;
}

.study-selection-card-side small {
    color: #70819b;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

@keyframes studyFreshBadgePulse {
    0%,
    100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 12px 20px rgba(17, 17, 17, 0.18);
    }

    50% {
        transform: translateY(-1px) scale(1.04);
        box-shadow: 0 16px 26px rgba(35, 70, 126, 0.28);
    }
}

@keyframes studyCardReorder {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.study-game-card-copy {
    min-width: 0;
}

.study-game-card-copy .placeholder-meta {
    margin-bottom: 0.35rem !important;
}

.study-game-card-copy p {
    color: #677790 !important;
    font-size: 0.95rem;
}

.study-game-card-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.study-play-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 52px;
    padding: 0 1.2rem;
    border-radius: 999px;
    background: #111111;
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.study-play-button i {
    font-size: 1rem;
}

.study-history-card {
    background:
        linear-gradient(180deg, #ffffff 0%, #fafbfd 100%);
}

.study-mode-panel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

.study-mode-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 1rem;
    padding: 1.15rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(17, 17, 17, 0.08);
    background:
        radial-gradient(circle at top right, rgba(17, 17, 17, 0.03), transparent 24%),
        #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.study-mode-item:hover {
    transform: translateY(-2px);
    border-color: rgba(17, 17, 17, 0.14);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.study-mode-item-icon {
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 1.2rem;
}

.study-mode-item-icon-blue {
    background: #eef4ff;
    color: #23467e;
}

.study-mode-item-icon-gold {
    background: #fff4df;
    color: #8b5a12;
}

.study-mode-item-icon-rose {
    background: #fff0f5;
    color: #8f3157;
}

.study-mode-item-copy {
    min-width: 0;
}

.study-mode-item-copy strong {
    display: block;
    color: #111111;
    font-size: 0.98rem;
    line-height: 1.3;
}

.study-mode-item-copy p {
    margin: 0.2rem 0 0;
    color: #757575;
}

.study-mode-dot {
    margin: 0 0.25rem;
    color: #b5b5b5;
}

.study-mode-item-action {
    margin-top: 0.9rem;
    width: fit-content;
    min-height: 40px;
    padding: 0 1rem;
    border: 1px solid rgba(17, 17, 17, 0.12);
    border-radius: 999px;
    background: #f6f6f6;
    color: #111111;
    font-weight: 700;
}

.study-mode-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.study-mode-hero-copy {
    max-width: 760px;
}

.study-entry-note {
    padding-top: 1.1rem;
    border-top: 1px solid rgba(17, 17, 17, 0.08);
    text-align: center;
}

.study-mode-page {
    animation: fadeInUp 0.28s ease both;
}

.study-game-setup-shell {
    background:
        radial-gradient(circle at top right, rgba(18, 71, 214, 0.1), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 255, 0.98));
}

.study-game-setup-hero {
    align-items: center;
}

.study-game-setup-grid {
    max-width: 760px;
    margin: 0 auto;
}

.study-game-setup-panel {
    position: relative;
    overflow: hidden;
    padding: 1.8rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(74, 104, 168, 0.14);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

.study-game-setup-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 35%);
}

.study-game-loadout-panel {
    background:
        radial-gradient(circle at top right, rgba(18, 71, 214, 0.12), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
}

.study-game-field-group .form-label {
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: #1e2f4f;
    margin-bottom: 0.55rem;
}

.study-game-select-wrap {
    position: relative;
}

.study-game-field-icon {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    z-index: 1;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #111111;
    color: #ffffff;
    font-size: 0.95rem;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
}

.study-game-select {
    min-height: 64px;
    padding-left: 4.2rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(74, 104, 168, 0.18);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.98));
    font-size: 1rem;
    font-weight: 700;
    color: #1a2540;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.75),
        0 10px 20px rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.study-game-select:focus {
    border-color: rgba(18, 71, 214, 0.32);
    box-shadow:
        0 0 0 0.2rem rgba(18, 71, 214, 0.08),
        0 14px 28px rgba(18, 71, 214, 0.08);
    transform: translateY(-1px);
}

.study-game-select:hover {
    border-color: rgba(74, 104, 168, 0.28);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.75),
        0 12px 24px rgba(15, 23, 42, 0.06);
}

.study-game-launch {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
}

.study-game-launch-btn {
    min-height: 56px;
    padding: 0 1.35rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 16px 30px rgba(18, 71, 214, 0.2);
}

.study-game-random-btn {
    min-height: 56px;
    padding: 0 1.2rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.study-difficulty-stars {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    padding: 0.85rem 1rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(74, 104, 168, 0.16);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.75),
        0 10px 20px rgba(15, 23, 42, 0.04);
}

.difficulty-star-button {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    background: rgba(18, 71, 214, 0.08);
    color: #b9c4d9;
    font-size: 1rem;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.difficulty-star-button:hover {
    transform: translateY(-1px);
    background: rgba(18, 71, 214, 0.12);
    color: #6d7f9f;
}

.difficulty-star-button.is-active {
    background: #111111;
    color: #ffd45a;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.14);
}

.difficulty-stars-label {
    margin-left: 0.35rem;
    color: #38527d;
    font-size: 0.9rem;
    font-weight: 800;
}

.game-arena-shell,
.game-result-shell {
    background:
        radial-gradient(circle at top right, rgba(18, 71, 214, 0.08), transparent 22%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 255, 0.98));
}

.game-stage-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.55rem;
    border: 0;
    box-shadow: 0 32px 80px rgba(16, 30, 68, 0.08);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.game-stage-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.74) 42%, rgba(255, 255, 255, 0.95) 72%);
    pointer-events: none;
    z-index: 0;
}

.game-stage-shell::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 420px;
    height: 420px;
    transform: translate(-50%, -50%);
    background: url('../img/focus-logo.png') no-repeat center center / contain;
    opacity: 0.08;
    filter: grayscale(1) contrast(0.82) brightness(0.92);
    pointer-events: none;
    z-index: 0;
}

.game-review-head,
.game-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.game-stage-layout {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 0.85rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.game-stage-sidebar {
    position: sticky;
    top: 1.25rem;
    display: grid;
    gap: 1rem;
    padding-right: 0;
    align-content: start;
    justify-items: center;
}

.game-stage-sidebar-top {
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.game-stage-sidebar-inline {
    width: 100%;
    max-width: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.game-stage-main {
    min-width: 0;
    padding-left: 0.1rem;
}

.game-arena-progress {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 106px;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: #111111;
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

.game-arena-progress-current,
.game-arena-progress-total {
    font-size: 1.15rem;
    font-weight: 800;
}

.game-arena-progress-divider {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.game-arena-topbar-side {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.game-arena-timer {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 44px;
    padding: 0 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(74, 104, 168, 0.16);
    color: #16325f;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
}
.game-question-frame {
    display: grid;
    gap: 1.15rem;
    max-width: none;
    margin: 0;
}

.game-question-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid rgba(17, 17, 17, 0.06);
}

.game-question-head-main,
.game-question-head-side {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.game-question-breadcrumb {
    color: #3a5077;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
}

.game-difficulty-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.18rem;
    min-height: 36px;
    padding: 0 0.75rem;
    border-radius: 999px;
    background: rgba(240, 245, 255, 0.78);
    color: #c0cadc;
}

.game-difficulty-badge i {
    font-size: 0.82rem;
}

.game-difficulty-badge i.is-active {
    color: #f4bf45;
}

.game-question-meta,
.game-review-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 0.2rem;
}

.game-question-meta-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: rgba(240, 245, 255, 0.78);
    border: 0;
    color: #35507d;
    font-size: 0.78rem;
    font-family: 'JetBrains Mono', monospace;
}

.game-question-body {
    display: grid;
    gap: 1.2rem;
    padding: 0 0 1.1rem;
    border: 0;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.game-question-html {
    color: #101828;
    font-size: 1.18rem;
    line-height: 1.82;
    max-width: none;
    padding-left: 0;
}

.game-question-html p:last-child {
    margin-bottom: 0;
}

.game-question-image-wrap {
    padding: 0.75rem;
    border-radius: 1.1rem;
    border: 0;
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.05);
}

.game-question-image {
    display: block;
    max-width: 100%;
    border-radius: 0.9rem;
}

.game-alternative-list,
.game-review-list,
.game-alternative-review-list {
    display: grid;
    gap: 0.45rem;
}

.game-alternative-option,
.game-alternative-review {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: flex-start;
    gap: 0.9rem;
    width: 100%;
    padding: 0.85rem 0;
    border-radius: 0;
    border: 0;
    background: transparent;
    text-align: left;
    transition: color 0.2s ease, background 0.2s ease;
}

.game-alternative-option:hover {
    transform: none;
    border-color: transparent;
    box-shadow: none;
}

.game-alternative-option.is-selected {
    transform: none;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.game-alternative-pick {
    padding: 0;
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.game-alternative-pick:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(18, 71, 214, 0.12);
    border-radius: 999px;
}

.game-alternative-letter {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #111111;
    color: #ffffff;
    font-weight: 800;
    flex-shrink: 0;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.game-alternative-option.is-selected .game-alternative-letter {
    background: #1247d6;
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(18, 71, 214, 0.18);
}

.game-alternative-text {
    color: #111111;
    line-height: 1.5;
    font-size: 0.98rem;
    display: inline-block;
    width: auto;
    max-width: 32rem;
}

.game-submit-form {
    max-width: none;
    margin: 1.35rem 0 0;
}

.game-navigation {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(17, 17, 17, 0.06);
}

.game-navigation-status {
    color: #4f6285;
    font-size: 0.92rem;
    font-weight: 700;
    text-align: center;
    flex: 1 1 220px;
}

.game-navigation .btn {
    min-width: 132px;
    min-height: 50px;
    border-radius: 16px;
    font-weight: 800;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.game-navigation .btn-primary {
    background: linear-gradient(135deg, #1247d6 0%, #6798f6 100%);
    border-color: transparent;
}

.game-navigation .btn-outline-light {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(74, 104, 168, 0.16);
    color: #16325f;
}

.game-review-summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    cursor: pointer;
}

.game-review-summary::-webkit-details-marker {
    display: none;
}

.game-review-summary-main,
.game-review-summary-side {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.game-review-summary-main {
    min-width: 0;
}

.game-review-summary-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.game-review-summary-icon.status-success {
    background: var(--sq-success-bg);
    color: var(--sq-success-text);
}

.game-review-summary-icon.status-danger {
    background: var(--sq-danger-bg);
    color: var(--sq-danger-text);
}

.game-review-summary-icon.status-warning {
    background: var(--sq-warning-bg);
    color: var(--sq-warning-text);
}

.game-review-chevron {
    color: #6c7fa1;
    transition: transform 0.2s ease;
}

.game-review-card[open] .game-review-chevron {
    transform: rotate(180deg);
}

.game-review-card {
    max-width: 980px;
    margin: 0 auto;
}

.game-result-metric {
    display: grid;
    justify-items: center;
    gap: 0.35rem;
    text-align: center;
}

.game-result-metric-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 1.1rem;
    margin-bottom: 0.15rem;
}

.game-result-metric-icon-primary {
    background: rgba(18, 71, 214, 0.1);
    color: #1247d6;
}

.game-result-metric-icon-success {
    background: var(--sq-success-bg);
    color: var(--sq-success-text);
}

.game-result-metric-icon-danger {
    background: var(--sq-danger-bg);
    color: var(--sq-danger-text);
}

.game-result-metric-icon-warning {
    background: var(--sq-warning-bg);
    color: var(--sq-warning-text);
}

.game-review-card {
    border-radius: 1.4rem;
    border: 1px solid rgba(74, 104, 168, 0.14);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.game-review-body {
    display: grid;
    gap: 1rem;
    padding: 0 1.1rem 1.1rem;
}

.game-result-actions {
    display: flex;
    justify-content: center;
    margin-top: 1.4rem;
}

.game-result-back-btn {
    min-width: 220px;
}

.game-alternative-review.is-correct {
    border-color: rgba(12, 143, 99, 0.28);
    background: linear-gradient(180deg, #f0fbf6 0%, #ebfaf4 100%);
}

.game-alternative-review.is-selected:not(.is-correct) {
    border-color: rgba(180, 35, 77, 0.24);
    background: linear-gradient(180deg, #fff5f7 0%, #fff1f4 100%);
}

.game-review-note {
    display: grid;
    gap: 0.4rem;
    padding: 1rem 1.05rem;
    border-radius: 1rem;
    background: rgba(240, 245, 255, 0.92);
    border: 1px solid rgba(74, 104, 168, 0.14);
    color: #26426f;
}


@media (max-width: 991.98px) {
    .study-mode-panel-grid {
        grid-template-columns: 1fr;
    }

    .study-game-card {
        grid-template-columns: 1fr;
    }

    .study-game-card-action {
        justify-content: center;
    }

    .study-game-metric-row {
        grid-template-columns: 1fr;
    }

    .difficulty-stars-label {
        width: 100%;
        margin-left: 0;
    }

    .game-stage-layout {
        grid-template-columns: 1fr;
        gap: 1.35rem;
    }

    .game-stage-sidebar {
        position: static;
        padding-right: 0;
    }

    .game-stage-sidebar-inline {
        max-width: none;
    }

    .game-question-head {
        align-items: flex-start;
    }

    .game-navigation {
        flex-direction: column;
        align-items: stretch;
    }

    .game-navigation .btn {
        width: 100%;
    }
}

.study-option-card h3,
.question-card-title,
.prova-card-title,
.banca-name {
    margin: 0;
    color: #111111;
    font-weight: 800;
}

.study-option-card p,
.study-list-main p,
.question-title,
.prova-stat span {
    margin: 0;
    color: var(--sq-muted);
}

.study-option-kicker {
    color: #7a7a7a;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 800;
}

.study-list-card,
.question-row,
.banca-row,
.banca-actions,
.question-main,
.review-question-header,
.user-card-header {
    display: flex;
}

.study-list-card,
.question-row,
.banca-row {
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.study-list-side {
    padding-left: 1rem;
}

.study-history {
    border-top: 1px solid rgba(17, 17, 17, 0.08);
    padding-top: 1.5rem;
}

.banca-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem;
}

.banca-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 100%;
    max-width: 210px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    border: 2px solid #111111;
    border-radius: 1.45rem;
    background: linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%);
    box-shadow:
        0 16px 30px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    cursor: pointer;
}

.banca-card:hover {
    border-color: #111111;
    background: linear-gradient(180deg, #ffffff 0%, #f3f3f3 100%);
    transform: translateY(-4px);
    box-shadow:
        0 24px 42px rgba(0, 0, 0, 0.11),
        inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.banca-shell {
    padding: 2rem;
    background:
        radial-gradient(circle at top right, rgba(17, 17, 17, 0.04), transparent 22%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 247, 247, 0.96));
}

.banca-header {
    align-items: flex-end;
}

.banca-card-media,
.banca-avatar,
.banca-avatar-large,
.materia-panel-avatar,
.user-card-avatar,
.profile-avatar-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(145deg, #1b1b1b, #2e2e2e);
    color: #ffffff;
    font-weight: 800;
}

.banca-card:hover .banca-card-link {
    text-decoration: none;
}

.banca-card:hover .banca-card-media {
    filter: saturate(1.02) contrast(1.02);
}

.banca-card-media {
    height: 206px;
    min-height: 206px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(17, 17, 17, 0.12);
    overflow: hidden;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.7), transparent 42%),
        linear-gradient(145deg, #f3f3f3 0%, #e7e7e7 52%, #dddddd 100%);
    position: relative;
    padding: 1rem;
}

.banca-card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.03));
    pointer-events: none;
}

.banca-card-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    min-height: 0;
    object-fit: contain;
    display: block;
    transform: none;
}

.banca-avatar {
    width: 58px;
    height: 58px;
    border-radius: 18px;
}

.banca-avatar-large {
    width: 100%;
    height: 100%;
    min-height: 0;
    border-radius: 0;
    font-size: 1.2rem;
}

.banca-card-title-wrap {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.65rem;
    border-bottom: 1px solid #111111;
    text-align: center;
    background: linear-gradient(180deg, #111111 0%, #1d1d1d 100%);
}

.banca-card-title {
    font-size: 0.88rem;
    line-height: 1.2;
    color: #ffffff;
}

.banca-card-link {
    display: block;
    color: inherit;
}

.banca-card-link:hover {
    color: inherit;
}

.banca-card-title-stack {
    flex-direction: column;
    gap: 0.25rem;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
}

.banca-card-footer-default + .banca-card-title-stack,
.banca-card.banca-card-default .banca-card-title-stack {
    min-height: 63px;
}

.banca-card-subtitle {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.76rem;
    text-align: center;
}

.banca-card-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-top: auto;
    background: #f7f7f7;
    border-top: 1px solid rgba(17, 17, 17, 0.12);
}

.banca-card-footer-default {
    grid-template-columns: 1fr;
}

.banca-card-footer .btn,
.banca-card-footer form,
.banca-card-footer form .btn {
    border-radius: 0;
}

.banca-card-footer .btn {
    min-height: 42px;
    border-width: 0;
    border-top: 0;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.45rem 0.5rem;
}

.banca-card-footer .btn-outline-light {
    border-right: 1px solid rgba(17, 17, 17, 0.12);
    color: #111111;
    background: #f2f2f2;
}

.banca-card-footer .btn-outline-light:hover,
.banca-card-footer .btn-outline-light:focus {
    color: #ffffff;
    background: #111111;
    border-color: #111111;
}

.banca-card-footer form {
    display: block;
}

.banca-card-footer form .btn {
    width: 100%;
}

.banca-card-footer .btn-outline-danger {
    background: #fff3f3;
}

.banca-card-footer-dual {
    grid-template-columns: repeat(2, 1fr);
}

.materia-panel {
    border: 1px solid rgba(17, 17, 17, 0.14);
    border-radius: 1.45rem;
    background: linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%);
    overflow: hidden;
}

.materia-panel-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 0;
    background: transparent;
    text-align: left;
}

.materia-panel-main,
.materia-panel-actions-inline,
.banca-main,
.assunto-row-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.materia-panel-avatar {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    flex-shrink: 0;
}

.materia-panel-copy {
    display: grid;
    gap: 0.15rem;
}

.materia-panel-copy small {
    color: var(--sq-muted);
}

.materia-panel-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.24s ease;
}

.materia-panel.is-open .materia-panel-body {
    max-height: 1200px;
}

.materia-panel-content {
    padding: 0 1.1rem 1.1rem;
    border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.materia-panel-toolbar {
    margin-bottom: 1rem;
}

.assunto-list {
    gap: 0.95rem;
}

.assunto-row {
    padding: 1.05rem 1.1rem;
}

.assunto-row-link {
    display: grid;
    gap: 0.22rem;
    min-width: 0;
    flex: 1 1 auto;
    color: inherit;
    text-decoration: none;
}

.assunto-row-link small {
    color: var(--sq-muted);
    font-size: 0.84rem;
}

.assunto-row:hover {
    border-color: rgba(18, 71, 214, 0.18);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.materia-empty {
    margin-top: 0.35rem;
}

.question-card-top,
.prova-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.question-card-title {
    line-height: 1.4;
}

.prova-card-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
    padding: 0.7rem;
    border-radius: 1rem;
    background: #f2f2f2;
    border: 1px solid var(--sq-border);
}

.question-card .prova-card-footer {
    margin-top: auto;
}

.prova-stat {
    display: grid;
    gap: 0.2rem;
}

.prova-stat strong {
    color: #111111;
    font-size: 0.88rem;
}

.question-main {
    align-items: flex-start;
    gap: 1rem;
}

.question-title {
    line-height: 1.45;
}

.review-question-header {
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.question-modal-surface,
.modal-dark {
    border-radius: 1.4rem;
    border: 1px solid var(--sq-border);
}

.modal {
    z-index: 2000;
    overflow-y: auto;
}

.modal-backdrop {
    z-index: 1990;
}

.modal-dialog {
    margin: 1.5rem auto;
}

.modal-dialog-scrollable {
    max-height: calc(100vh - 3rem);
}

.modal-dialog-scrollable .modal-content {
    max-height: calc(100vh - 3rem);
}

.modal-dialog-scrollable .modal-body {
    max-height: calc(100vh - 11rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.modal-dialog,
.modal-content,
.modal-body,
.modal form,
.modal input,
.modal select,
.modal textarea,
.modal button,
.modal label {
    pointer-events: auto;
}

.question-modal-surface {
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
    color: #111111;
}

.modal-dark {
    background: #111111;
    color: #ffffff;
}

.question-fold {
    border: 1px solid rgba(17, 17, 17, 0.12);
    border-radius: 1.2rem;
    background: linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%);
    overflow: hidden;
}

.question-fold-summary {
    display: grid;
    gap: 0.28rem;
    padding: 1.05rem 1.15rem;
    padding-right: 3.4rem;
    cursor: pointer;
    list-style: none;
    position: relative;
    background: linear-gradient(180deg, #111111 0%, #1a1a1a 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.question-fold-summary span {
    display: block;
    font-weight: 700;
    color: #ffffff;
}

.question-fold-summary small {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
}

.question-fold-summary::after {
    content: '+';
    position: absolute;
    top: 50%;
    right: 1.15rem;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    transform: translateY(-50%);
}

.question-fold[open] .question-fold-summary::after {
    content: '-';
}

.question-fold.is-disabled {
    opacity: 0.78;
}

.question-fold.is-disabled .question-fold-summary {
    cursor: not-allowed;
}

.question-fold.is-disabled .question-fold-summary::after {
    content: '!';
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
}

.question-fold-summary::-webkit-details-marker {
    display: none;
}

.question-fold-body {
    padding: 0 1.15rem 1.15rem;
}

.question-view-stack {
    display: grid;
    gap: 1.15rem;
}

.question-view-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 0.2rem 0 0.25rem;
}

.question-view-top .question-id {
    font-size: 1.05rem;
    color: #60708a;
}

.question-view-block {
    display: grid;
    gap: 0.65rem;
    padding: 1.1rem 1.15rem;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 1.2rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.question-view-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #3d5d90;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.question-view-html {
    color: #111111;
    line-height: 1.6;
    font-size: 1.02rem;
}

.question-view-alternatives {
    display: grid;
    gap: 0.85rem;
}

.question-view-alternatives .answer-option-card {
    gap: 0.45rem;
    padding: 1rem 1.05rem;
    border-radius: 1rem;
    border: 1px solid rgba(17, 17, 17, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #f9fafc 100%);
}

.question-view-alternatives .answer-option-card .muted-chip {
    background: rgba(18, 71, 214, 0.09);
    border-color: rgba(18, 71, 214, 0.16);
    color: #315790;
}

.question-view-stack .question-card-meta {
    gap: 0.55rem;
}

.question-view-stack .question-card-difficulty {
    padding-top: 0.25rem;
}

.question-editor {
    border: 1px solid rgba(17, 17, 17, 0.16);
    border-radius: 1.1rem;
    overflow: hidden;
    background: #ffffff;
}

.question-editor-toolbar {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    padding: 0.7rem 0.8rem;
    border-bottom: 1px solid rgba(17, 17, 17, 0.1);
    background: linear-gradient(180deg, #ffffff 0%, #f3f3f3 100%);
}

.question-editor-tool {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 0.8rem;
    background: transparent;
    color: #111111;
}

.question-editor-tool:hover,
.question-editor-tool:focus {
    background: #f1f1f1;
    border-color: rgba(17, 17, 17, 0.14);
}

.question-editor-surface {
    min-height: 260px;
    padding: 1rem 1.05rem;
    color: #111111;
    line-height: 1.65;
    outline: none;
}

.question-editor-surface.is-empty::before {
    content: attr(data-placeholder);
    color: #8f8f8f;
}

.question-image-preview {
    padding: 0.75rem;
    border: 1px dashed rgba(17, 17, 17, 0.18);
    border-radius: 1rem;
    background: #fafafa;
}

.question-image-preview-img {
    max-width: 100%;
    display: block;
    border-radius: 0.9rem;
}

.question-binary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.question-binary-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(17, 17, 17, 0.14);
    border-radius: 1rem;
    background: #ffffff;
}

.user-card {
    align-items: stretch;
}

.user-card-avatar {
    width: 68px;
    height: 68px;
    border-radius: 24px;
    font-size: 1.5rem;
}

.user-card-name {
    font-size: 1rem;
    line-height: 1.25;
}

.user-card-email,
.user-card-note {
    color: var(--sq-muted);
    font-size: 0.88rem;
}

.user-card-actions {
    display: grid;
    gap: 0.45rem;
}

.profile-container {
    max-width: 1100px;
}

.profile-grid {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 1.4rem;
}

.profile-side-card {
    text-align: center;
}

.profile-avatar-large {
    width: 118px;
    height: 118px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    font-size: 2rem;
}

.profile-name {
    margin: 1rem 0 0.45rem;
    font-size: 2rem;
    font-weight: 800;
}

.profile-email {
    color: var(--sq-muted);
}

.profile-side-divider {
    height: 1px;
    margin: 1.5rem 0;
    background: rgba(17, 17, 17, 0.08);
}

.profile-side-list,
.profile-form-grid {
    display: grid;
    gap: 0.8rem;
}

.profile-side-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0.95rem;
    border-radius: 1rem;
    background: #fafafa;
    border: 1px solid rgba(17, 17, 17, 0.06);
}

.form-control,
.form-select {
    background-color: #ffffff;
    border-color: rgba(17, 17, 17, 0.14);
    color: #111111;
    min-height: 52px;
    border-radius: 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #111111;
    box-shadow: 0 0 0 0.2rem rgba(17, 17, 17, 0.08);
}

.searchable-select-shell {
    position: relative;
}

.searchable-select-input {
    text-align: left;
    padding-right: 2.75rem;
    padding-left: 0.85rem;
    background-image: linear-gradient(45deg, transparent 50%, #555 50%), linear-gradient(135deg, #555 50%, transparent 50%);
    background-position: calc(100% - 22px) calc(50% - 3px), calc(100% - 16px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.searchable-select-shell.is-open .searchable-select-input {
    border-bottom-left-radius: 0.6rem;
    border-bottom-right-radius: 0.6rem;
}

.searchable-select-dropdown {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    right: 0;
    z-index: 30;
    max-height: 260px;
    overflow-y: auto;
    padding: 0.4rem;
    border: 1px solid rgba(17, 17, 17, 0.14);
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.searchable-select-item {
    width: 100%;
    display: block;
    padding: 0.7rem 0.85rem;
    border: 0;
    border-radius: 0.7rem;
    background: transparent;
    color: #111111;
    text-align: left;
    font-size: 0.95rem;
}

.searchable-select-item:hover,
.searchable-select-item.is-active {
    background: rgba(18, 71, 214, 0.08);
}

.searchable-select-item-action {
    margin-top: 0.25rem;
    font-weight: 700;
    color: #1247d6;
    border-top: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 0;
    padding-top: 0.9rem;
}

.searchable-select-item-empty {
    color: #6b7280;
    cursor: default;
}

.prova-modal-footer {
    gap: 0.65rem;
}

.prova-step-heading {
    display: grid;
    gap: 0.25rem;
}

.prova-step-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.35rem;
}

.prova-step-counter {
    padding: 0.7rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.prova-step-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 1.15rem;
}

.prova-filter-bar {
    margin-bottom: 1.35rem;
    padding: 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 1.3rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.015) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.prova-filter-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr) minmax(220px, 0.7fr);
    gap: 1rem;
    align-items: stretch;
}

.prova-filter-card {
    min-width: 0;
    padding: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.025);
}

.prova-filter-bar .form-label,
.prova-filter-card .form-label {
    display: block;
    margin-bottom: 0.65rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.88rem;
    font-weight: 600;
}

.prova-inline-check {
    min-height: 78px;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
}

.prova-inline-check .form-check-input {
    margin-top: 0.2rem;
    flex: 0 0 auto;
}

.prova-inline-check .form-check-label {
    display: grid;
    gap: 0.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.prova-inline-check .form-check-label span {
    color: #ffffff;
    line-height: 1.2;
}

.prova-inline-check .form-check-label small {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.78rem;
    line-height: 1.35;
}

.prova-materia-sidebar,
.prova-question-board {
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 1.3rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0.015) 100%);
    padding: 1.1rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.prova-materia-sidebar-title,
.prova-question-board-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.9rem;
}

.prova-question-board-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.prova-materia-list,
.prova-question-list {
    display: grid;
    gap: 0.85rem;
}

.prova-materia-item {
    width: 100%;
    display: grid;
    gap: 0.28rem;
    text-align: left;
    padding: 1rem 1rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.025);
    color: rgba(255, 255, 255, 0.88);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.prova-materia-item:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
}

.prova-materia-item strong {
    color: #ffffff;
    font-size: 1rem;
}

.prova-materia-item span,
.prova-materia-item small {
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.84rem;
}

.prova-materia-item.is-active {
    border-color: rgba(18, 71, 214, 0.5);
    background: linear-gradient(180deg, rgba(18, 71, 214, 0.18) 0%, rgba(18, 71, 214, 0.1) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.prova-question-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 1.1rem;
    border-radius: 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.025);
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.prova-question-item:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
}

.prova-question-check {
    margin-top: 0.15rem;
}

.prova-question-copy {
    display: grid;
    gap: 0.45rem;
}

.prova-question-meta {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.84rem;
    font-weight: 600;
}

.prova-question-text {
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.55;
    font-size: 0.98rem;
}

.prova-empty-state {
    padding: 1rem;
    border-radius: 1rem;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.64);
    background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 991.98px) {
    .prova-filter-grid {
        grid-template-columns: 1fr;
    }

    .prova-step-top {
        flex-direction: column;
        align-items: stretch;
    }

    .prova-step-counter {
        width: 100%;
        text-align: center;
    }

    .prova-step-layout {
        grid-template-columns: 1fr;
    }
}

.flashcard-shell,
.flashcard-practice-shell {
    display: grid;
    gap: 1.5rem;
}

.flashcard-mode-entry {
    display: grid;
    gap: 2rem;
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
}

.flashcard-mode-entry-head {
    display: grid;
    gap: 0.5rem;
    justify-items: center;
}

.flashcard-mode-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.flashcard-mode-card {
    display: grid;
    gap: 1rem;
    padding: 2rem;
    border-radius: 30px;
    border: 1px solid rgba(37, 99, 235, 0.16);
    background:
        radial-gradient(circle at top left, rgba(255, 138, 61, 0.18), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 255, 0.96));
    color: #162033;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.flashcard-mode-card.is-classic {
    background:
        radial-gradient(circle at top left, rgba(22, 63, 140, 0.12), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 248, 252, 0.96));
}

.flashcard-mode-card:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.32);
    box-shadow: 0 28px 68px rgba(37, 99, 235, 0.12);
}

.flashcard-mode-card h3 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 700;
}

.flashcard-mode-card p {
    margin: 0;
    color: #5f6f8d;
    line-height: 1.7;
}

.flashcard-mode-badge {
    justify-self: center;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(22, 63, 140, 0.1);
    color: #163f8c;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.flashcard-mode-stats {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 0.5rem 0.75rem;
    justify-content: center;
    align-items: center;
    margin-top: 0.25rem;
    color: #61708d;
}

.flashcard-mode-stats strong {
    color: #163f8c;
    font-size: 1.15rem;
}

.flashcard-hero,
.flashcard-practice-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.75rem;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(255, 138, 61, 0.12), transparent 28%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 255, 0.94));
}

.flashcard-hero-stats,
.flashcard-practice-side-metrics,
.flashcard-practice-actions,
.flashcard-theme-focus-actions {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    flex-wrap: wrap;
}

.flashcard-stat,
.flashcard-side-pill,
.flashcard-side-score {
    min-width: 120px;
    padding: 0.95rem 1rem;
    border-radius: 22px;
    border: 1px solid rgba(37, 99, 235, 0.14);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.flashcard-stat strong,
.flashcard-side-pill strong,
.flashcard-side-score strong {
    display: block;
    font-size: 1.6rem;
    line-height: 1;
    color: #163f8c;
}

.flashcard-stat span,
.flashcard-side-pill span,
.flashcard-side-score span {
    display: block;
    margin-top: 0.35rem;
    color: #60708f;
    font-size: 0.9rem;
}

.flashcard-layout {
    display: grid;
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.flashcard-sidebar,
.flashcard-main {
    display: grid;
    gap: 1.25rem;
}

.flashcard-panel {
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.05);
}

.flashcard-form-stack,
.flashcard-form-grid {
    display: grid;
    gap: 1rem;
}

.flashcard-form-grid-full {
    grid-column: 1 / -1;
}

.flashcard-color-input {
    width: 100%;
    max-width: 100%;
    min-height: 52px;
    padding: 0.35rem;
}

.flashcard-theme-list,
.flashcard-card-list {
    display: grid;
    gap: 0.85rem;
}

.flashcard-theme-item,
.flashcard-card-item {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 255, 0.96));
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.flashcard-theme-item {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.flashcard-theme-item:hover,
.flashcard-card-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
}

.flashcard-theme-item.is-active {
    border-color: rgba(37, 99, 235, 0.36);
    box-shadow: 0 18px 38px rgba(37, 99, 235, 0.12);
}

.flashcard-theme-main {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    color: inherit;
}

.flashcard-theme-color {
    width: 14px;
    height: 56px;
    border-radius: 999px;
    flex: 0 0 auto;
}

.flashcard-theme-copy {
    display: grid;
    gap: 0.2rem;
}

.flashcard-theme-copy strong {
    color: #14213d;
    font-size: 1rem;
}

.flashcard-theme-copy small,
.flashcard-card-label {
    color: #61708d;
}

.flashcard-delete-btn {
    padding: 0;
    color: #d0435b;
    text-decoration: none;
    font-weight: 600;
}

.flashcard-delete-btn:hover {
    color: #b91c1c;
}

.flashcard-theme-focus-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.2rem;
}

.flashcard-theme-preview {
    margin-top: 1.25rem;
}

.flashcard-theme-preview-card {
    position: relative;
    overflow: hidden;
    padding: 1.6rem;
    border-radius: 26px;
    background:
        linear-gradient(135deg, var(--flashcard-theme-color, #ff8a3d), #163f8c);
    color: #fff;
    box-shadow: 0 24px 60px rgba(22, 63, 140, 0.18);
}

.flashcard-theme-preview-card::after {
    content: "";
    position: absolute;
    inset: auto -30px -45px auto;
    width: 160px;
    height: 160px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.flashcard-theme-preview-count {
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.86;
}

.flashcard-theme-preview-title {
    position: relative;
    z-index: 1;
    margin-top: 0.55rem;
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    font-weight: 700;
    max-width: 420px;
}

.flashcard-card-item {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: flex-start;
}

.flashcard-card-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    min-height: 52px;
    padding: 0.75rem;
    border-radius: 18px;
    background: rgba(37, 99, 235, 0.08);
    color: #163f8c;
    font-weight: 700;
}

.flashcard-card-copy {
    display: grid;
    gap: 0.85rem;
}

.flashcard-card-side {
    display: grid;
    gap: 0.3rem;
}

.flashcard-card-side strong,
.flashcard-card-side span,
.flashcard-card-side a {
    overflow-wrap: anywhere;
}

.flashcard-empty-focus {
    min-height: 220px;
    place-items: center;
    text-align: center;
}

.flashcard-practice-back {
    white-space: nowrap;
}

.flashcard-practice-top-copy {
    flex: 1 1 auto;
}

.flashcard-practice-board {
    position: relative;
    overflow: hidden;
    padding: 1.75rem;
    border-radius: 32px;
    border: 1px solid rgba(37, 99, 235, 0.12);
    background:
        radial-gradient(circle at left center, rgba(255, 138, 61, 0.12), transparent 26%),
        radial-gradient(circle at right top, rgba(37, 99, 235, 0.1), transparent 22%),
        linear-gradient(180deg, #fffdfb, #f7f9ff);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.08);
}

.flashcard-practice-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.85rem 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.flashcard-practice-progress {
    color: #163f8c;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.flashcard-practice-question {
    color: #53627d;
    font-size: 1rem;
}

.flashcard-practice-next {
    grid-row: span 2;
    align-self: center;
}

.flashcard-practice-body {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) 140px;
    gap: 1rem;
    align-items: stretch;
}

.flashcard-practice-meter {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flashcard-meter-ring {
    display: grid;
    place-items: center;
    width: 112px;
    height: 112px;
    padding: 1rem;
    border-radius: 50%;
    border: 8px solid rgba(255, 138, 61, 0.18);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: inset 0 0 0 8px rgba(37, 99, 235, 0.05);
    text-align: center;
}

.flashcard-meter-ring strong {
    font-size: 2rem;
    line-height: 1;
    color: #ff8a3d;
}

.flashcard-meter-ring span {
    margin-top: 0.25rem;
    color: #61708d;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.flashcard-practice-card {
    display: grid;
    gap: 1rem;
    min-height: 520px;
    padding: 1.5rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.flashcard-practice-image-wrap {
    border-radius: 24px;
    overflow: hidden;
    background: #eff4ff;
    min-height: 220px;
}

.flashcard-practice-image {
    display: block;
    width: 100%;
    max-height: 340px;
    object-fit: cover;
}

.flashcard-practice-face {
    padding: 1.25rem 1.35rem;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(247, 249, 255, 0.96), rgba(255, 255, 255, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.flashcard-practice-face-label {
    margin-bottom: 0.65rem;
    color: #163f8c;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.flashcard-practice-face-text {
    color: #172033;
    font-size: 1.12rem;
    line-height: 1.75;
    white-space: pre-wrap;
}

.flashcard-practice-meter-right {
    display: grid;
    align-content: center;
    gap: 0.85rem;
}

.flashcard-side-score {
    text-align: center;
}

.flashcard-side-score-alt strong {
    color: #d0435b;
}

.flashcard-practice-actions {
    justify-content: center;
    margin-top: 1.5rem;
}

.flashcard-answer-btn {
    min-width: 190px;
    min-height: 52px;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.12);
}

.fade-in-up {
    animation: fadeInUp 0.45s ease both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991.98px) {
    .app-sidebar {
        position: static;
        width: auto;
    }

    .app-content {
        margin-left: 0;
    }

    .student-overview-grid,
    .student-home-grid,
    .student-report-grid,
    .student-hero,
    .content-grid.two-columns,
    .student-dashboard-grid,
    .profile-grid,
    .student-insights-grid {
        grid-template-columns: 1fr;
    }

    .study-option-grid,
    .banca-card-grid,
    .question-card-grid,
    .prova-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .study-list-card,
    .question-row,
    .student-summary-item,
    .student-subject-row,
    .student-activity-row,
    .assunto-row,
    .related-list-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .study-list-side {
        padding-left: 0;
    }

    .student-hero-inline,
    .study-game-cta-grid,
    .student-actions-grid {
        justify-content: flex-start;
        grid-template-columns: 1fr;
    }

    .student-review-item {
        grid-template-columns: 1fr;
    }

    .flashcard-layout,
    .flashcard-practice-body,
    .flashcard-mode-grid {
        grid-template-columns: 1fr;
    }

    .flashcard-hero,
    .flashcard-practice-top,
    .flashcard-theme-focus-head,
    .flashcard-practice-head {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .flashcard-card-item {
        grid-template-columns: 1fr;
    }

    .flashcard-practice-next,
    .flashcard-practice-back {
        width: 100%;
    }

    .flashcard-practice-meter,
    .flashcard-practice-meter-right {
        justify-content: flex-start;
    }

    .student-review-cta {
        justify-self: flex-start;
        align-self: auto;
    }

    .student-mini-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .placeholder-page,
    .dashboard-shell,
    .profile-shell {
        padding: 1rem 0.75rem 2rem;
    }

    .content-card,
    .metric-card,
    .hero-banner,
    .profile-main-card,
    .profile-side-card,
    .banca-shell,
    .flashcard-hero,
    .flashcard-practice-top,
    .flashcard-practice-board {
        padding: 1.15rem;
    }

    .study-option-grid,
    .banca-card-grid,
    .question-card-grid,
    .prova-card-grid,
    .question-binary-grid,
    .prova-card-stats {
        grid-template-columns: 1fr;
    }

    .flashcard-hero-stats,
    .flashcard-practice-actions,
    .flashcard-practice-side-metrics {
        flex-direction: column;
        align-items: stretch;
    }

    .flashcard-stat,
    .flashcard-side-pill,
    .flashcard-side-score,
    .flashcard-answer-btn {
        width: 100%;
    }

    .flashcard-practice-card {
        min-height: auto;
        padding: 1rem;
    }
}
