:root {
    --bg: #071120;
    --bg-2: #0c1729;
    --panel: rgba(12, 22, 39, 0.84);
    --panel-strong: rgba(10, 19, 33, 0.94);
    --panel-soft: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.12);
    --border-strong: rgba(255, 255, 255, 0.2);
    --text: #eef4ff;
    --muted: #a8b7d4;
    --accent: #67e8f9;
    --accent-2: #8b5cf6;
    --success: #34d399;
    --danger: #f87171;
    --warning: #fbbf24;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    --shadow-soft: 0 12px 26px rgba(0, 0, 0, 0.24);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(103, 232, 249, 0.12), transparent 30%),
        radial-gradient(circle at top right, rgba(139, 92, 246, 0.16), transparent 32%),
        linear-gradient(180deg, #08111e 0%, #050b16 100%);
}

body {
    position: relative;
    overflow-x: hidden;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.bg-orb {
    position: fixed;
    inset: auto;
    border-radius: 999px;
    filter: blur(70px);
    opacity: 0.38;
    pointer-events: none;
    z-index: 0;
}

.orb-1 {
    width: 280px;
    height: 280px;
    top: 70px;
    left: -80px;
    background: rgba(103, 232, 249, 0.24);
}

.orb-2 {
    width: 320px;
    height: 320px;
    top: 220px;
    right: -90px;
    background: rgba(139, 92, 246, 0.22);
}

.orb-3 {
    width: 240px;
    height: 240px;
    bottom: 40px;
    left: 15%;
    background: rgba(52, 211, 153, 0.12);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(16px);
    background: rgba(6, 11, 20, 0.68);
    border-bottom: 1px solid var(--border);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    box-shadow: var(--shadow-soft);
}

.top-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.top-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    transition: 0.24s ease;
    border: 1px solid transparent;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.top-nav a:hover {
    color: var(--text);
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-1px);
}

.top-nav a.active {
    color: #06111f;
    background: linear-gradient(135deg, #67e8f9, #c4b5fd);
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(103, 232, 249, 0.22);
}

.disabled-link {
    opacity: 0.55;
    pointer-events: none;
}

.main-content {
    padding: 36px 0 60px;
    position: relative;
    z-index: 5;
}

.hero,
.page-head {
    margin-bottom: 28px;
}

.hero h1,
.page-head h1 {
    margin: 14px 0 10px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.06;
}

.hero-text,
.page-head p {
    max-width: 860px;
    color: var(--muted);
    line-height: 1.75;
    font-size: 1.02rem;
}

.badge,
.role-badge,
.status-pill,
.entry-role-badge,
.small-badge,
.status-chip,
.question-chip,
.warning-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.07);
    color: #dce8ff;
    font-size: 0.92rem;
    font-weight: 700;
}

.warning-pill {
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.22);
    color: #fde68a;
}

.card-grid {
    display: grid;
    gap: 18px;
}

.three-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.four-cols {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card,
.panel,
.list-card,
.role-card,
.entry-role-card,
.teacher-test-card,
.dash-stat-card,
.result-stat-card,
.stat-box,
.info-card,
.mini-meta-card,
.question-card,
.option-choice-card,
.readonly-option-row,
.result-card,
.found-card,
.note-box {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.feature-card,
.role-card,
.entry-role-card {
    display: block;
    position: relative;
    overflow: hidden;
}

.feature-card {
    padding: 24px;
    min-height: 100%;
    transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
}

.feature-card::before,
.entry-role-card::before,
.teacher-test-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(103, 232, 249, 0.06), transparent 45%, rgba(139, 92, 246, 0.05));
    pointer-events: none;
}

.feature-card:hover,
.entry-role-card:hover,
.role-card:hover,
.teacher-test-card:hover,
.list-card:hover {
    transform: translateY(-4px);
    border-color: rgba(103, 232, 249, 0.34);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.42);
}

.disabled-card {
    opacity: 0.84;
}

.feature-icon,
.entry-role-figure {
    background: linear-gradient(135deg, rgba(103, 232, 249, 0.18), rgba(139, 92, 246, 0.22));
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.feature-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 1.45rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    margin: 0 0 8px;
    font-size: 1.12rem;
    position: relative;
    z-index: 1;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.feature-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
    position: relative;
    z-index: 1;
}

.feature-card-action,
.link-btn,
.primary-link-btn,
.mini-action-btn,
.back-btn,
.action-btn,
.primary-btn,
.entry-role-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 16px;
    font-weight: 800;
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease;
}

.primary-btn,
.secondary-btn,
.primary-link-btn,
.feature-card-action,
.link-btn {
    border: none;
    background: linear-gradient(135deg, #67e8f9, #c4b5fd);
    color: #071120;
    box-shadow: 0 14px 28px rgba(103, 232, 249, 0.18);
}

.primary-btn,
.primary-link-btn,
.action-btn,
.entry-role-action,
.back-btn {
    min-height: 48px;
    padding: 13px 18px;
}

.primary-btn:hover,
.secondary-btn:hover,
.primary-link-btn:hover,
.feature-card-action:hover,
.link-btn:hover,
.action-btn:hover,
.entry-role-action:hover,
.back-btn:hover,
.mini-action-btn:hover {
    transform: translateY(-2px);
}

.link-btn,
.feature-card-action {
    min-height: 42px;
    padding: 10px 15px;
}

.link-btn.muted,
.feature-card-action.muted,
.ghost-btn,
.back-btn,
.mini-action-btn,
.neutral {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.action-btn {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    box-shadow: var(--shadow-soft);
}

.secondary-btn {
    background: linear-gradient(135deg, rgba(103, 232, 249, 0.18), rgba(196, 181, 253, 0.20));
    color: #f8fbff;
    border-color: rgba(167, 243, 208, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 28px rgba(5, 10, 25, 0.24);
}

.secondary-btn:hover {
    border-color: rgba(196, 181, 253, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 18px 34px rgba(5, 10, 25, 0.28);
}

.ghost-btn {
    color: var(--text);
}

.danger-btn {
    background: rgba(248, 113, 113, 0.12);
    color: #fecaca;
    border-color: rgba(248, 113, 113, 0.26);
    box-shadow: none;
}

.mini-action-btn {
    min-width: 42px;
    min-height: 42px;
    padding: 10px 12px;
}

.primary-link-btn {
    min-width: 180px;
}

.action-btn,
.primary-link-btn,
.primary-btn,
.secondary-btn,
.ghost-btn,
.danger-btn,
.back-btn {
    text-align: center;
}

.back-row {
    margin-bottom: 18px;
}

.compact-gap {
    margin-bottom: 22px;
}

.top-gap-12 {
    margin-top: 12px;
}

.top-gap-20 {
    margin-top: 20px;
}

.small-top {
    margin-top: 8px;
}

.grow-field {
    flex: 1;
    min-width: 240px;
}

.two-col-layout,
.public-test-layout,
.attempt-detail-grid,
.question-edit-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
}

.public-test-layout,
.attempt-detail-grid,
.question-edit-layout {
    align-items: start;
}

.panel {
    padding: 22px;
}

.panel h3 {
    margin: 0 0 16px;
}

.form-stack {
    display: grid;
    gap: 16px;
}

.field {
    display: grid;
    gap: 8px;
}

.field span {
    color: #d5e4fb;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    min-height: 50px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(6, 13, 24, 0.86);
    color: var(--text);
    outline: none;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(103, 232, 249, 0.5);
    box-shadow: 0 0 0 3px rgba(103, 232, 249, 0.12);
    background: rgba(7, 16, 28, 0.96);
}

.check-row,
.checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
}

.check-row input,
.checkbox-field input {
    width: 18px;
    min-height: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--accent);
}

.inline-form-row,
.inline-form,
.search-form,
.wrap-actions,
.actions-row,
.compact-meta,
.detail-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.inline-form-row,
.search-form {
    align-items: end;
}

.search-panel {
    padding: 18px 20px;
}

.search-form input {
    flex: 1;
    min-width: 260px;
}

.alert {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    font-weight: 700;
}

.alert.error {
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.26);
    color: #fecaca;
}

.alert.success {
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.26);
    color: #d1fae5;
}

.note-box {
    padding: 16px;
    color: var(--muted);
}

.result-card {
    margin-top: 20px;
    padding: 18px;
    background: rgba(52, 211, 153, 0.09);
    border: 1px solid rgba(52, 211, 153, 0.22);
}

.result-card.empty {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border);
}

.result-label {
    margin: 0 0 12px;
    color: #d9f7eb;
    font-weight: 700;
}

.result-code {
    display: inline-block;
    padding: 14px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.muted-code,
.muted-text,
.muted-mini,
.hint-text {
    color: var(--muted);
}

.steps {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.9;
}

.list-stack,
.teacher-test-list,
.question-preview-list,
.take-question-list,
.full-preview-list,
.readonly-option-list {
    display: grid;
    gap: 16px;
}

.list-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
}

.list-card h3 {
    margin: 0 0 6px;
}

.role-split-grid,
.only-two-grid,
.entry-split-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.role-card {
    padding: 24px;
}

.teacher-card,
.teacher-entry {
    background: linear-gradient(180deg, rgba(26, 36, 58, 0.97), rgba(12, 21, 38, 0.94));
}

.student-card,
.student-entry {
    background: linear-gradient(180deg, rgba(16, 40, 54, 0.97), rgba(10, 24, 35, 0.94));
}

.entry-role-card {
    min-height: 560px;
    padding: 30px;
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.entry-role-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.entry-role-stage {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    min-height: 180px;
    margin-bottom: 22px;
}

.entry-role-figure {
    width: 150px;
    height: 150px;
    border-radius: 36px;
    display: grid;
    place-items: center;
    font-size: 4.5rem;
}

.entry-role-body {
    position: relative;
    z-index: 1;
}

.entry-role-card h3 {
    margin: 0 0 12px;
    font-size: clamp(1.9rem, 2.8vw, 2.35rem);
    line-height: 1.1;
}

.entry-role-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
    font-size: 1.03rem;
}

.entry-role-points {
    display: grid;
    gap: 10px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.entry-role-points span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #deebff;
}

.entry-role-points span::before {
    content: "•";
    color: var(--accent);
    font-weight: 800;
}

.entry-role-action-wrap {
    margin-top: 26px;
    position: relative;
    z-index: 1;
}

.entry-role-action {
    width: 100%;
    min-height: 56px;
    border-radius: 20px;
    font-size: 1rem;
    letter-spacing: 0.2px;
}

.dashboard-stats-grid,
.extended-stats-strip,
.stats-strip,
.result-summary-grid,
.take-header-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-stats-grid,
.extended-stats-strip,
.result-summary-grid,
.take-header-grid {
    margin-bottom: 20px;
}

.dash-stat-card,
.result-stat-card,
.stat-box,
.info-card,
.mini-meta-card {
    padding: 18px;
}

.dash-stat-card span,
.stat-box span,
.info-card span,
.mini-meta-card span,
.result-stat-card span {
    display: block;
    color: var(--muted);
    font-size: 0.92rem;
    margin-bottom: 8px;
}

.dash-stat-card strong,
.stat-box strong,
.info-card strong,
.mini-meta-card strong,
.result-stat-card strong {
    display: block;
    font-size: 1.28rem;
    line-height: 1.3;
}

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

.teacher-test-card,
.expanded-card {
    padding: 20px;
}

.teacher-test-head,
.between-start,
.section-head-inline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.teacher-test-head h4 {
    margin: 0 0 6px;
    font-size: 1.12rem;
}

.badge-cluster {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.status-live {
    background: rgba(52, 211, 153, 0.12);
    border-color: rgba(52, 211, 153, 0.25);
    color: #c6f6df;
}

.status-closed {
    background: rgba(248, 113, 113, 0.12);
    border-color: rgba(248, 113, 113, 0.25);
    color: #fecaca;
}

.meta-line-grid,
.meta-grid,
.inline-info-grid,
.two-mini-cols {
    display: grid;
    gap: 14px;
}

.meta-line-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.meta-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.two-mini-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card.full {
    grid-column: 1 / -1;
}

.settings-meta-grid {
    margin-bottom: 20px;
}

.found-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
}

.results-filter-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr auto;
    gap: 12px;
    align-items: end;
}

.results-table-wrap {
    overflow: auto;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.03);
}

.results-table th,
.results-table td {
    padding: 13px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    white-space: nowrap;
}

.results-table th {
    color: #dfeaff;
    font-size: 0.92rem;
    background: rgba(255, 255, 255, 0.03);
}

.preview-question-image,
.question-image {
    width: 100%;
    max-width: 360px;
    border-radius: 18px;
    border: 1px solid var(--border);
    margin-top: 12px;
    object-fit: cover;
}

.question-image-wrap {
    margin-top: 14px;
}

.results-code-row {
    align-items: end;
}

.teacher-results-head {
    display: grid;
    gap: 14px;
}

.preview-panel,
.score-note-panel,
.accent-card {
    background: linear-gradient(180deg, rgba(15, 25, 44, 0.95), rgba(10, 18, 32, 0.94));
}

.question-card,
.take-question-card,
.slim-preview-card,
.editable-card {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
}

.question-row-head,
.take-question-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.question-number,
.correct-answer,
.mini-link,
.question-text,
.question-main-text {
    color: #eaf2ff;
}

.question-main-text,
.question-text {
    line-height: 1.8;
    font-size: 1.02rem;
}

.option-list {
    margin: 12px 0 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.7;
}

.option-grid,
.option-radio-list,
.compact-options,
.strong-choice-list {
    display: grid;
    gap: 12px;
}

.option-choice-card,
.readonly-option-row {
    padding: 0;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.option-choice-card {
    display: block;
    cursor: pointer;
}

.option-choice-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-choice-body {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    min-height: 58px;
}

.option-choice-card:hover {
    border-color: rgba(103, 232, 249, 0.3);
}

.option-choice-card input:checked + .option-choice-body {
    background: rgba(103, 232, 249, 0.12);
}

.readonly-option-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
}

.readonly-selected {
    background: rgba(103, 232, 249, 0.1);
    border-color: rgba(103, 232, 249, 0.28);
}

.readonly-correct {
    box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.35);
}

.option-badge {
    min-width: 34px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.08);
    font-weight: 800;
    flex-shrink: 0;
}

.take-question-card {
    background: linear-gradient(180deg, rgba(16, 27, 46, 0.9), rgba(10, 17, 30, 0.96));
}

.timer-banner,
.sticky-submit-bar,
.compact-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    margin-bottom: 20px;
    border-radius: 20px;
    border: 1px solid rgba(103, 232, 249, 0.18);
    background: rgba(103, 232, 249, 0.08);
    box-shadow: var(--shadow-soft);
}

.timer-banner.timer-danger {
    border-color: rgba(248, 113, 113, 0.28);
    background: rgba(248, 113, 113, 0.12);
}

.sticky-submit-bar {
    position: sticky;
    bottom: 12px;
    z-index: 12;
    margin-top: 18px;
    background: rgba(7, 14, 24, 0.94);
    border-color: rgba(255, 255, 255, 0.12);
}

.attempt-detail-grid {
    margin-bottom: 20px;
}

.answer-state {
    font-weight: 700;
}

.section-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 18px 0;
}

.empty-question-panel,
.start-summary {
    position: sticky;
    top: 96px;
}

.question-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.short-field {
    max-width: 220px;
}

.results-code-row,
.teacher-lookup-form {
    align-items: end;
}

@media (max-width: 1180px) {
    .four-cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .meta-grid,
    .meta-line-grid,
    .dashboard-stats-grid,
    .extended-stats-strip,
    .result-summary-grid,
    .take-header-grid,
    .results-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .two-col-layout,
    .public-test-layout,
    .attempt-detail-grid,
    .question-edit-layout,
    .entry-split-grid,
    .role-split-grid,
    .only-two-grid,
    .three-cols,
    .four-cols {
        grid-template-columns: 1fr;
    }

    .entry-role-card {
        min-height: auto;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100%, calc(100% - 20px));
    }

    .nav-wrap,
    .teacher-test-head,
    .section-head-inline,
    .found-card,
    .timer-banner,
    .sticky-submit-bar,
    .take-question-top,
    .question-row-head,
    .entry-role-head {
        flex-direction: column;
        align-items: stretch;
    }

    .badge-cluster {
        justify-content: flex-start;
    }

    .dashboard-stats-grid,
    .extended-stats-strip,
    .result-summary-grid,
    .meta-grid,
    .meta-line-grid,
    .results-filter-grid,
    .take-header-grid,
    .inline-info-grid,
    .three-cols,
    .four-cols,
    .two-mini-cols {
        grid-template-columns: 1fr;
    }

    .top-nav {
        width: 100%;
    }

    .top-nav a,
    .action-btn,
    .primary-btn,
    .back-btn,
    .entry-role-action,
    .primary-link-btn {
        width: 100%;
    }

    .entry-role-stage {
        min-height: 140px;
    }

    .entry-role-figure {
        width: 126px;
        height: 126px;
        font-size: 3.8rem;
    }
}

.selected-static {
    background: rgba(103, 232, 249, 0.12);
}
