body.student-app {
    --text: #171717;
    --muted: #737373;
    --line: #ececec;
    --glass: #ffffff;
    --primary: #171717;
    margin: 0;
    color: #171717;
    background: #fafafa;
    font-family: Inter, "Myanmar Text", "Pyidaungsu", "Noto Sans Myanmar", sans-serif;
}

body.student-app h1,
body.student-app h2,
body.student-app h3,
body.student-app .brand strong {
    font-family: Inter, "Myanmar Text", "Pyidaungsu", "Noto Sans Myanmar", sans-serif;
    letter-spacing: 0;
    color: #111;
}

body.student-app .student-header {
    position: sticky;
    top: 0;
    z-index: 20;
    width: 100%;
    margin: 0;
    background: rgba(255, 255, 255, 0.92);
    border: 0;
    border-bottom: 1px solid #eee;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: blur(14px);
}

body.student-app .student-header + main {
    margin-top: 0;
}

body.student-app .brand,
body.student-app .brand strong {
    color: #111;
}

body.student-app .brand small {
    color: #8a8a8a;
}

body.student-app .brand img {
    border: 1px solid #eee;
    border-radius: 10px;
}

body.student-app .student-header nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

body.student-app .student-header nav a {
    color: #525252;
    border-radius: 999px;
    font-weight: 600;
}

body.student-app .student-header nav a:hover,
body.student-app .student-header nav a.active {
    background: #f4f4f5;
    color: #111;
}

body.student-app .student-header .logout-btn {
    padding: 0.45rem 0.8rem;
    font-size: 0.9rem;
}

button.btn {
    cursor: pointer;
    font: inherit;
}

button.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

body.student-app .btn {
    border-radius: 12px;
    box-shadow: none;
}

body.student-app .btn:hover {
    transform: none;
    filter: none;
}

body.student-app .btn-solid {
    background: #111;
    color: #fff;
    border-color: #111;
}

body.student-app .btn-solid:hover {
    background: #2a2a2a;
}

body.student-app .btn-ghost {
    background: #fff;
    color: #171717;
    border-color: #e6e6e6;
}

body.student-app .btn-ghost:hover {
    background: #f7f7f7;
}

body.student-app .btn-danger {
    background: #fff;
    color: #b42318;
    border: 1px solid #f3c7c3;
}

body.student-app .btn-danger:hover {
    background: #fff6f5;
}

.student-main {
    padding: 1.6rem 0 3.4rem;
}

.student-main h1 {
    margin: 0.15rem 0 0.35rem;
    font-size: clamp(1.7rem, 2.4vw, 2.15rem);
    font-weight: 650;
    line-height: 1.15;
}

.student-main h2 {
    margin: 0 0 0.45rem;
    font-size: 1.05rem;
    font-weight: 650;
}

.student-main h3 {
    font-size: 0.98rem;
}

.student-main p {
    color: #737373;
    line-height: 1.6;
}

body.student-app .glass {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(17, 17, 17, 0.04);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.student-app .student-hero {
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 0.1rem 0 0.2rem;
    margin-bottom: 1.1rem;
}

body.student-app .tag {
    color: #a3a3a3;
    letter-spacing: 0.08em;
}

.student-hero,
.student-card,
.student-panel {
    padding: 1.15rem 1.2rem;
}

.student-hero p {
    max-width: 62ch;
    margin-bottom: 0;
}

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

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

.student-card + .student-card,
.student-panel + .student-panel {
    margin-top: 0.85rem;
}

.student-grid .student-card,
.student-grid-3 .student-card {
    margin-top: 0;
}

.meta-list {
    display: grid;
    gap: 0.4rem;
    margin: 0;
}

.meta-list div {
    color: #525252;
}

.meta-list strong {
    color: #111;
    font-weight: 600;
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.9rem;
}

.action-row form {
    margin: 0;
}

.student-narrow {
    width: min(760px, 100%);
    margin: 0 auto;
}

.alert {
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    margin-bottom: 0.9rem;
    font-weight: 600;
}

.alert-ok {
    background: #f3faf4;
    border: 1px solid #d7edd9;
    color: #166534;
}

.alert-err {
    background: #fef6f6;
    border: 1px solid #f5d0d0;
    color: #b42318;
}

.score-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.score-banner strong {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: #111;
}

.student-form label {
    display: block;
    margin: 0.85rem 0 0.35rem;
    color: #404040;
    font-weight: 600;
}

.student-form input,
.student-form select,
.student-form textarea {
    width: 100%;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 0.72rem 0.8rem;
    font: inherit;
    color: #171717;
    background: #fff;
}

.student-form textarea {
    resize: vertical;
    line-height: 1.5;
}

.student-form select {
    min-height: 46px;
}

.student-form input::placeholder,
.student-form textarea::placeholder {
    color: #a3a3a3;
}

.student-form input[type="checkbox"],
.student-form input[type="radio"] {
    width: auto;
    padding: 0;
    accent-color: #111;
}

.check-line {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.8rem;
    color: #404040;
    font-weight: 600;
}

.code-block,
.file-body {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.code-block {
    margin: 0.45rem 0 0.8rem;
    white-space: pre-wrap;
    background: #f7f7f7;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 0.85rem;
    color: #171717;
    overflow-x: auto;
}

.code-block.correct {
    background: #f4fbf6;
    border-color: #d7edd9;
}

.question-block {
    padding: 0.15rem 0 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.question-block:last-of-type {
    border-bottom: 0;
}

.choice {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin: 0.4rem 0;
    padding: 0.7rem 0.8rem;
    border-radius: 12px;
    border: 1px solid #ececec;
    background: #fff;
    color: #171717;
    font-weight: 500;
}

.choice:hover {
    border-color: #d4d4d4;
    background: #fafafa;
}

body.student-app .pill {
    margin-top: 0.7rem;
    background: #f5f5f5;
    border: 1px solid #eee;
    color: #404040;
}

body.student-app .pill.bad {
    background: #fef6f6;
    border-color: #f5d0d0;
    color: #b42318;
}

.exam-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.exam-timer {
    position: sticky;
    top: 86px;
    z-index: 5;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    font-weight: 650;
    color: #111;
    background: #fff;
}

.homework-file {
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid #f0f0f0;
}

.file-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.7rem;
}

.file-head > div {
    flex: 1;
}

.cert-row {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}

.cert-row img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #eee;
}

@media (max-width: 900px) {
    .student-grid,
    .student-grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .student-header .nav-wrap {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.75rem 0;
    }

    body.student-app .student-header nav {
        display: flex;
        width: 100%;
    }

    .exam-timer {
        top: 12px;
    }
}
