.exam-container{

display:flex;

gap:30px;

}

.exam-left{

flex:4;

min-width:0;

}

.exam-sidebar{

flex:1;

min-width:0;

position:sticky;

top:100px;

}

.question-card{

background:white;

border-radius:15px;

padding:25px;

margin-bottom:30px;

box-shadow:0 5px 15px rgba(0,0,0,.08);

}

.choice-item{

display:block;

padding:12px;

margin-top:10px;

border:1px solid #ddd;

border-radius:10px;

cursor:pointer;

transition:.3s;

}

.choice-item:hover{

background:#0d6efd;

color:white;

}

.number-box{

width:45px;

height:45px;

border-radius:50%;

background:#f2f2f2;

display:flex;

justify-content:center;

align-items:center;

margin:10px;

cursor:pointer;

font-weight:bold;

}

.submit-btn{

padding:15px 40px;

border:none;

background:#198754;

color:white;

font-size:18px;

border-radius:10px;

}

.answered{

background:#198754;

color:white;

}

.current{

background:#0d6efd;

color:white;

transform:scale(1.1);

}

@media (max-width: 767.98px){

.exam-container{

flex-direction:column;

}

.exam-sidebar{

position:static;

}

}



/*Exam_list*/
/* ==========================================================
   STU ONLINE EXAM
   Shared styles for examination management interfaces
   ========================================================== */


/* ==========================================================
   1. DESIGN TOKENS
   ========================================================== */

.exam-page {
    --exam-primary: #003d99;
    --exam-primary-dark: #002e75;
    --exam-primary-light: #edf4ff;

    --exam-success: #16834a;
    --exam-success-light: #eaf7ef;

    --exam-warning: #b7791f;
    --exam-warning-light: #fff7e6;

    --exam-danger: #c0392b;
    --exam-danger-light: #fff0ee;

    --exam-text: #263448;
    --exam-muted: #718096;

    --exam-border: #e4eaf2;
    --exam-surface: #ffffff;
    --exam-background: #f5f8fc;

    --exam-radius: 14px;
    --exam-shadow: 0 4px 18px rgba(25, 50, 90, 0.06);

    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 28px 24px 48px;
    color: var(--exam-text);
    box-sizing: border-box;
}

.exam-page *,
.exam-page *::before,
.exam-page *::after {
    box-sizing: border-box;
}


/* ==========================================================
   2. PAGE HEADER
   ========================================================== */

.exam-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 30px;
}

.exam-page-heading {
    min-width: 0;
}

.exam-page-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    margin-bottom: 10px;

    color: var(--exam-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.exam-page-title {
    display: flex;
    align-items: center;
    gap: 12px;

    margin: 0;

    color: var(--exam-text);
    font-size: 27px;
    font-weight: 750;
    line-height: 1.35;
}

.exam-page-title > i {
    color: var(--exam-primary);
    font-size: 27px;
}

.exam-page-description {
    max-width: 680px;
    margin: 9px 0 0;

    color: var(--exam-muted);
    font-size: 14px;
    line-height: 1.7;
}


/* ==========================================================
   3. PAGE SUMMARY
   ========================================================== */

.exam-page-summary {
    display: flex;
    align-items: center;
    gap: 14px;

    flex-shrink: 0;

    min-width: 190px;
    padding: 16px 20px;

    background: var(--exam-surface);
    border: 1px solid var(--exam-border);
    border-radius: var(--exam-radius);

    box-shadow: var(--exam-shadow);
}

.exam-summary-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;

    border-radius: 12px;

    color: var(--exam-primary);
    background: var(--exam-primary-light);

    font-size: 23px;
}

.exam-page-summary span {
    display: block;

    margin-bottom: 3px;

    color: var(--exam-muted);
    font-size: 12px;
    font-weight: 500;
}

.exam-page-summary strong {
    display: block;

    color: var(--exam-primary);
    font-size: 25px;
    font-weight: 800;
    line-height: 1;
}


/* ==========================================================
   4. EXAM GRID
   ========================================================== */

.exam-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}


/* ==========================================================
   5. EXAM CARD
   ========================================================== */

.exam-card {
    display: flex;
    flex-direction: column;

    min-width: 0;
    min-height: 100%;

    padding: 22px;

    background: var(--exam-surface);

    border: 1px solid var(--exam-border);
    border-radius: var(--exam-radius);

    box-shadow: var(--exam-shadow);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.exam-card:hover {
    transform: translateY(-4px);

    border-color: #c5d7f1;

    box-shadow: 0 12px 28px rgba(25, 50, 90, 0.10);
}


/* ==========================================================
   6. CARD HEADER
   ========================================================== */

.exam-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 18px;
}

.exam-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    border-radius: 13px;

    color: var(--exam-primary);
    background: var(--exam-primary-light);

    font-size: 24px;
}

.exam-card-label {
    padding: 6px 10px;

    border-radius: 20px;

    color: var(--exam-primary);
    background: var(--exam-primary-light);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
}


/* ==========================================================
   7. CARD TITLE AND CONTENT
   ========================================================== */

.exam-card-content {
    flex: 1;
}

.exam-card-title {
    margin: 0 0 20px;

    color: var(--exam-primary);
    font-size: 19px;
    font-weight: 750;
    line-height: 1.5;

    overflow-wrap: anywhere;
}


/* ==========================================================
   8. EXAM METADATA
   ========================================================== */

.exam-card-meta {
    display: flex;
    flex-direction: column;
    gap: 15px;

    padding: 17px 0;

    border-top: 1px solid var(--exam-border);
    border-bottom: 1px solid var(--exam-border);
}

.exam-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    min-width: 0;
}

.exam-meta-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 32px;
    height: 32px;

    border-radius: 9px;

    color: var(--exam-primary);
    background: #f0f5fc;

    font-size: 15px;
}

.exam-meta-item > div {
    display: flex;
    flex-direction: column;
    gap: 3px;

    min-width: 0;
}

.exam-meta-label {
    color: var(--exam-muted);
    font-size: 12px;
    font-weight: 500;
}

.exam-meta-item strong {
    color: var(--exam-text);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.5;

    overflow-wrap: anywhere;
}


/* ==========================================================
   9. CARD ACTIONS
   ========================================================== */

.exam-card-actions {
    display: flex;
    flex-direction: column;
    gap: 11px;

    margin-top: auto;
    padding-top: 19px;
}

.exam-action-button {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    width: 100%;
    min-height: 43px;

    padding: 10px 14px;

    border: 1px solid transparent;
    border-radius: 9px;

    text-align: center;
    text-decoration: none;

    font-size: 13px;
    font-weight: 700;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.exam-action-button:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.exam-action-button:focus-visible {
    outline: 3px solid rgba(0, 61, 153, 0.22);
    outline-offset: 3px;
}


/* Primary action */

.exam-action-primary {
    color: #ffffff;
    background: var(--exam-success);
    border-color: var(--exam-success);
}

.exam-action-primary:hover {
    color: #ffffff;
    background: #116b3e;
    border-color: #116b3e;
}


/* Secondary action */

.exam-action-secondary {
    color: var(--exam-primary);
    background: var(--exam-primary-light);
    border-color: #dce8fa;
}

.exam-action-secondary:hover {
    color: #ffffff;
    background: var(--exam-primary);
    border-color: var(--exam-primary);
}


/* Outline action */

.exam-action-outline {
    color: #46556b;
    background: #ffffff;
    border-color: var(--exam-border);
}

.exam-action-outline:hover {
    color: var(--exam-primary);
    background: #f5f8fd;
    border-color: #b9cce8;
}


/* Arrow */

.exam-action-arrow {
    position: absolute;
    right: 14px;

    font-size: 15px;
}


/* Teacher actions */

.exam-teacher-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}


/* ==========================================================
   10. EMPTY STATE
   ========================================================== */

.exam-empty-state {
    grid-column: 1 / -1;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 310px;
    padding: 35px 20px;

    background: var(--exam-surface);

    border: 1px dashed #cbd6e5;
    border-radius: var(--exam-radius);

    text-align: center;
}

.exam-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 72px;
    height: 72px;

    margin-bottom: 18px;

    border-radius: 50%;

    color: #8797ad;
    background: #f0f3f8;

    font-size: 32px;
}

.exam-empty-state h3 {
    margin: 0 0 9px;

    color: var(--exam-text);
    font-size: 18px;
    font-weight: 750;
}

.exam-empty-state p {
    max-width: 400px;
    margin: 0;

    color: var(--exam-muted);
    font-size: 14px;
    line-height: 1.7;
}


/* ==========================================================
   11. RESPONSIVE
   ========================================================== */

@media (max-width: 1199px) {

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

}


@media (max-width: 767px) {

    .exam-page {
        padding: 22px 16px 35px;
    }

    .exam-page-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .exam-page-summary {
        width: 100%;
    }

    .exam-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .exam-page-title {
        font-size: 23px;
    }

    .exam-page-title > i {
        font-size: 23px;
    }

    .exam-card {
        padding: 18px;
    }

}


@media (max-width: 420px) {

    .exam-teacher-actions {
        grid-template-columns: 1fr;
    }

    .exam-page-title {
        font-size: 21px;
    }

    .exam-card-title {
        font-size: 17px;
    }

}


/* ==========================================================
   12. REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    .exam-card,
    .exam-action-button {
        transition: none;
    }

    .exam-card:hover,
    .exam-action-button:hover {
        transform: none;
    }

}




/* =====================================================
   TEACHER EXAM PAPER MANAGEMENT
   ===================================================== */

.exam-paper-management {
    --paper-border: #e4eaf2;
}

/* Header */

.exam-paper-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 14px;
    padding: 8px 13px;
    background: #edf4ff;
    color: #425675;
    border-radius: 8px;
    font-size: 13px;
}

.exam-paper-subtitle i {
    color: #003d99;
}

.exam-paper-subtitle strong {
    color: #003d99;
}

.exam-paper-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

/* Notice */

.exam-paper-notice {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px 22px;
    margin-bottom: 24px;
    background: #f0f7ff;
    border: 1px solid #d7e8ff;
    border-left: 4px solid #2674cf;
    border-radius: 12px;
}

.exam-paper-notice-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dcecff;
    color: #1459a5;
    border-radius: 10px;
    font-size: 19px;
}

.exam-paper-notice-content h5 {
    margin: 2px 0 10px;
    color: #17477e;
    font-size: 15px;
    font-weight: 700;
}

.exam-paper-notice-content ul {
    margin: 0;
    padding-left: 19px;
    color: #50647e;
    font-size: 13px;
    line-height: 1.8;
}

.exam-paper-notice-content li {
    padding-left: 3px;
}

/* Table container */

.exam-paper-table-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--paper-border);
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(25, 50, 90, 0.06);
}

.exam-paper-table-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 21px 23px;
    border-bottom: 1px solid var(--paper-border);
}

.exam-paper-table-heading h4 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 5px;
    color: #263448;
    font-size: 17px;
    font-weight: 700;
}

.exam-paper-table-heading h4 i {
    color: #003d99;
}

.exam-paper-table-heading p {
    margin: 0;
    color: #718096;
    font-size: 13px;
}

.exam-paper-total {
    flex-shrink: 0;
    padding: 7px 12px;
    background: #edf4ff;
    color: #003d99;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

/* Table */

.exam-paper-table {
    min-width: 1050px;
    border-collapse: separate;
    border-spacing: 0;
}

.exam-paper-table thead th {
    padding: 15px 12px;
    background: #f6f8fc;
    color: #52627a;
    border-bottom: 1px solid var(--paper-border);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.exam-paper-table tbody td {
    padding: 16px 12px;
    color: #3c4b60;
    border-bottom: 1px solid #edf0f5;
    font-size: 13px;
    vertical-align: middle;
}

.exam-paper-table tbody tr:last-child td {
    border-bottom: none;
}

.exam-paper-table tbody tr {
    transition: background 0.2s ease;
}

.exam-paper-table tbody tr:hover {
    background: #f8faff;
}

.exam-paper-number {
    display: inline-flex;
    width: 29px;
    height: 29px;
    align-items: center;
    justify-content: center;
    background: #edf4ff;
    color: #003d99;
    border-radius: 8px;
    font-weight: 700;
}

.exam-paper-code {
    display: inline-block;
    padding: 6px 9px;
    background: #f1f5f9;
    color: #334b68;
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.exam-paper-name {
    color: #263448;
    font-weight: 600;
    min-width: 130px;
}

.exam-paper-origin {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    color: #718096;
    font-size: 11px;
}

.exam-paper-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #52627a;
    font-weight: 600;
    white-space: nowrap;
}

.exam-paper-count i {
    color: #8293a9;
}

.exam-paper-attempt-count,
.exam-paper-zero {
    display: inline-flex;
    min-width: 29px;
    height: 29px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 700;
}

.exam-paper-attempt-count {
    background: #e4f5eb;
    color: #16834a;
}

.exam-paper-zero {
    background: #f1f4f8;
    color: #718096;
}

/* Status */

.exam-paper-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.exam-paper-status.is-active {
    background: #e5f6ec;
    color: #16834a;
}

.exam-paper-status.is-inactive {
    background: #eef1f5;
    color: #667085;
}

.exam-paper-locked {
    margin-top: 7px;
    color: #c0392b;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

/* Action buttons */

.exam-paper-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    min-width: 210px;
}

.exam-paper-actions form {
    margin: 0;
}

.exam-paper-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 32px;
    padding: 6px 9px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: #ffffff;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

.exam-paper-action.is-edit {
    color: #a66a00;
    border-color: #f0dcae;
    background: #fffaf0;
}

.exam-paper-action.is-edit:hover {
    color: #ffffff;
    background: #c58a16;
    border-color: #c58a16;
}

.exam-paper-action.is-copy {
    color: #155bb5;
    border-color: #cfe0f8;
    background: #f2f7ff;
}

.exam-paper-action.is-copy:hover {
    color: #ffffff;
    background: #155bb5;
    border-color: #155bb5;
}

.exam-paper-action.is-delete {
    color: #c0392b;
    border-color: #f1cccc;
    background: #fff5f5;
}

.exam-paper-action.is-delete:hover {
    color: #ffffff;
    background: #c0392b;
    border-color: #c0392b;
}

.exam-paper-action.is-disabled,
.exam-paper-action.is-disabled:disabled {
    color: #a0a8b4;
    border-color: #e5e8ed;
    background: #f3f4f6;
    cursor: not-allowed;
    opacity: 0.75;
}

/* Empty state */

.exam-paper-empty {
    padding: 55px 20px;
    text-align: center;
}

.exam-paper-empty-icon {
    display: flex;
    width: 68px;
    height: 68px;
    align-items: center;
    justify-content: center;
    margin: 0 auto 17px;
    background: #edf4ff;
    color: #477bc0;
    border-radius: 18px;
    font-size: 29px;
}

.exam-paper-empty h5 {
    margin-bottom: 8px;
    color: #263448;
    font-size: 17px;
    font-weight: 700;
}

.exam-paper-empty p {
    margin: 0 auto 20px;
    max-width: 430px;
    color: #718096;
    font-size: 13px;
    line-height: 1.7;
}

/* Footer */

.exam-paper-table-footer {
    display: flex;
    justify-content: flex-start;
    padding: 17px 22px;
    border-top: 1px solid var(--paper-border);
}

/* Responsive */

@media (max-width: 767px) {
    .exam-paper-header-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .exam-paper-header-actions .exam-action-button {
        flex: 1;
    }

    .exam-paper-notice {
        padding: 15px;
        gap: 10px;
    }

    .exam-paper-table-heading {
        align-items: flex-start;
        padding: 17px;
    }

    .exam-paper-table-footer {
        padding: 14px;
    }

    .exam-paper-table-footer .exam-action-button {
        width: 100%;
        justify-content: center;
    }
}
/* ================================================================
   STU OnlineExam - Teacher Exam Paper Form
   Scoped stylesheet: only affects .tepf-page and its descendants.
   ================================================================ */

.tepf-page {
    --tepf-navy: #102f5d;
    --tepf-blue: #0756b3;
    --tepf-blue-strong: #003d99;
    --tepf-blue-soft: #edf4ff;
    --tepf-ink: #172b4d;
    --tepf-muted: #6b7c93;
    --tepf-line: #e3eaf3;
    --tepf-surface: #ffffff;
    --tepf-page: #f4f7fb;
    --tepf-green: #16834a;
    --tepf-red: #c43d4b;
    width: min(1440px, calc(100% - 48px));
    margin: 28px auto 56px;
    color: var(--tepf-ink);
    font-family: inherit;
}

.tepf-page * { box-sizing: border-box; }
.tepf-page button,
.tepf-page input,
.tepf-page textarea,
.tepf-page select { font: inherit; }

.tepf-hero {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    min-height: 236px;
    padding: 28px 34px 30px;
    overflow: hidden;
    border-radius: 22px;
    color: #fff;
    background: linear-gradient(112deg, #082b5b 0%, #06458e 56%, #1264b5 100%);
    box-shadow: 0 16px 38px rgba(7, 48, 99, .16);
}

.tepf-hero-main, .tepf-back-link { position: relative; z-index: 2; }
.tepf-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 25px;
    color: rgba(255,255,255,.68);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
}
.tepf-breadcrumb i { font-size: 9px; opacity: .72; }
.tepf-breadcrumb strong { color: #fff; font-weight: 700; }
.tepf-hero-title-row { display: flex; align-items: center; gap: 17px; }
.tepf-hero-symbol {
    display: grid;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.23);
    border-radius: 17px;
    background: rgba(255,255,255,.13);
    color: #fff;
    font-size: 25px;
}
.tepf-eyebrow, .tepf-section-kicker {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .15em;
}
.tepf-eyebrow { margin-bottom: 5px; color: #b9d8ff; }
.tepf-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.18;
}
.tepf-hero-subtitle { margin: 8px 0 0; color: rgba(255,255,255,.76); font-size: 14px; }
.tepf-exam-context {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    max-width: min(720px, 100%);
    margin: 22px 0 0 75px;
    padding: 9px 13px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 10px;
    background: rgba(255,255,255,.09);
}
.tepf-context-label { display: inline-flex; align-items: center; gap: 6px; color: #c9e1ff; font-size: 10px; font-weight: 800; letter-spacing: .09em; }
.tepf-exam-context strong { color: #fff; font-size: 13px; font-weight: 650; }
.tepf-back-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 10px;
    color: #fff;
    background: rgba(255,255,255,.1);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background .18s ease, transform .18s ease;
}
.tepf-back-link:hover { color: #fff; background: rgba(255,255,255,.2); transform: translateY(-1px); }
.tepf-hero-decoration { position: absolute; z-index: 1; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; pointer-events: none; }
.tepf-hero-decoration-one { width: 350px; height: 350px; right: 8%; top: -220px; }
.tepf-hero-decoration-two { width: 240px; height: 240px; right: 0; bottom: -190px; background: rgba(255,255,255,.035); }

.tepf-copy-notice {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 20px 0;
    padding: 16px 19px;
    border: 1px solid #c9e5d5;
    border-radius: 14px;
    background: #f1faf5;
}
.tepf-notice-icon { display: grid; flex: 0 0 40px; width: 40px; height: 40px; place-items: center; border-radius: 12px; color: #16834a; background: #dcf3e5; font-size: 17px; }
.tepf-notice-content { min-width: 0; }
.tepf-notice-content strong { color: #17643c; font-size: 14px; }
.tepf-notice-content p { margin: 3px 0 0; color: #527462; font-size: 13px; line-height: 1.5; }
.tepf-notice-tag { margin-left: auto; padding: 6px 9px; border-radius: 6px; color: #17643c; background: #dff3e7; font-size: 10px; font-weight: 800; letter-spacing: .08em; }

.tepf-form { margin-top: 22px; }
.tepf-panel, .tepf-summary-strip, .tepf-guide-panel {
    border: 1px solid var(--tepf-line);
    border-radius: 17px;
    background: var(--tepf-surface);
    box-shadow: 0 5px 20px rgba(27, 54, 93, .045);
}
.tepf-paper-info { padding: 25px 28px 27px; }
.tepf-panel-heading { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid #edf1f6; }
.tepf-step-number {
    display: inline-grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 11px;
    color: var(--tepf-blue-strong);
    background: var(--tepf-blue-soft);
    font-size: 12px;
    font-weight: 850;
}
.tepf-panel-heading-copy { flex: 1; min-width: 0; }
.tepf-panel-heading h2, .tepf-builder-heading h2 { margin: 0; color: var(--tepf-ink); font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.tepf-panel-heading p, .tepf-builder-heading p { margin: 4px 0 0; color: var(--tepf-muted); font-size: 13px; }
.tepf-required-note { color: #8a97a9; font-size: 11px; font-weight: 600; }
.tepf-required-note span, .tepf-label > span:not(.tepf-optional) { color: #d34b58; }
.tepf-info-grid { display: grid; grid-template-columns: minmax(180px, .75fr) minmax(260px, 1.25fr); gap: 20px 22px; padding-top: 22px; }
.tepf-field { min-width: 0; }
.tepf-field-full { grid-column: 1 / -1; }
.tepf-label { display: block; margin: 0 0 8px; color: #31435e; font-size: 12px; font-weight: 750; }
.tepf-optional { margin-left: 5px; color: #8794a6; font-size: 10px; font-weight: 600; }
.tepf-control {
    min-height: 44px;
    border: 1px solid #d9e2ed;
    border-radius: 9px;
    color: #263a57;
    background-color: #fff;
    font-size: 13px;
    box-shadow: none;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.tepf-control::placeholder { color: #a1adbc; }
.tepf-control:focus { border-color: #6c9fe0; box-shadow: 0 0 0 3px rgba(0, 83, 177, .10); }
.tepf-control[readonly] { color: #526783; background: #f3f6fa; font-weight: 750; }
textarea.tepf-control { min-height: 88px; padding-top: 11px; line-height: 1.55; }
.tepf-help { display: block; margin-top: 6px; color: #8592a5; font-size: 11px; line-height: 1.5; }
.tepf-help code, .tepf-guide-reminder code { color: #0756b3; font-size: 11px; }

.tepf-builder-section { margin-top: 29px; }
.tepf-builder-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.tepf-section-kicker { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; color: #66809f; }
.tepf-section-kicker .tepf-step-number { flex-basis: 28px; width: 28px; height: 28px; border-radius: 8px; font-size: 10px; }
.tepf-builder-heading h2 { font-size: 23px; }
.tepf-builder-heading p { margin-top: 5px; }
.tepf-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 43px;
    padding: 10px 17px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}
.tepf-button:hover { transform: translateY(-1px); }
.tepf-button-add, .tepf-button-save { color: #fff; background: linear-gradient(135deg, #0756b3, #003d99); box-shadow: 0 6px 15px rgba(0, 61, 153, .18); }
.tepf-button-add:hover, .tepf-button-save:hover { color: #fff; background: #07377e; box-shadow: 0 8px 18px rgba(0, 61, 153, .24); }
.tepf-button-add { min-width: 158px; }

.tepf-summary-strip { display: flex; align-items: center; gap: 22px; min-height: 89px; margin-bottom: 18px; padding: 15px 20px; }
.tepf-summary-item { display: flex; align-items: center; gap: 12px; min-width: 145px; }
.tepf-summary-icon { display: grid; flex: 0 0 43px; width: 43px; height: 43px; place-items: center; border-radius: 13px; font-size: 18px; }
.tepf-summary-icon-blue { color: #0756b3; background: #edf4ff; }
.tepf-summary-icon-gold { color: #a46b0c; background: #fff5df; }
.tepf-summary-copy { display: flex; flex-direction: column; gap: 2px; }
.tepf-summary-copy > small { color: #7d8ba0; font-size: 11px; font-weight: 600; }
.tepf-summary-copy > strong { color: #1b3456; font-size: 22px; font-weight: 850; line-height: 1.15; font-variant-numeric: tabular-nums; }
.tepf-score-unit { margin-left: 4px; color: #8190a4; font-size: 10px; font-weight: 600; }
.tepf-summary-divider { width: 1px; height: 42px; background: #e8edf4; }
.tepf-summary-hint { display: flex; align-items: center; gap: 8px; margin-left: auto; padding: 10px 12px; border-radius: 9px; color: #627b9b; background: #f5f8fc; font-size: 11px; line-height: 1.5; }
.tepf-summary-hint i { color: #4779b8; font-size: 15px; }

.tepf-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 270px; align-items: start; gap: 18px; }
.tepf-question-column { min-width: 0; }
.tepf-questions-container { min-width: 0; }
.tepf-guide-panel { position: sticky; top: 18px; padding: 19px 17px; }
.tepf-guide-heading { display: flex; align-items: center; gap: 9px; color: #0756b3; }
.tepf-guide-heading > i { font-size: 17px; }
.tepf-guide-heading h3 { margin: 0; color: #203b60; font-size: 14px; font-weight: 800; }
.tepf-guide-intro { margin: 7px 0 15px; color: #7b899c; font-size: 11px; line-height: 1.5; }
.tepf-type-guide-list { display: flex; flex-direction: column; gap: 13px; }
.tepf-type-guide { display: flex; align-items: flex-start; gap: 10px; }
.tepf-type-guide-icon { display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; border-radius: 9px; font-size: 14px; }
.tepf-type-mcq { color: #2364b1; background: #edf4ff; }
.tepf-type-drag { color: #16836c; background: #e9f8f4; }
.tepf-type-sort { color: #99651a; background: #fff5e4; }
.tepf-type-code { color: #7654b2; background: #f2edfc; }
.tepf-type-guide strong { display: block; margin: 1px 0 3px; color: #344a68; font-size: 11px; font-weight: 800; }
.tepf-type-guide small { display: block; color: #8592a4; font-size: 10px; line-height: 1.45; }
.tepf-guide-reminder { display: flex; align-items: flex-start; gap: 9px; margin-top: 17px; padding: 12px 10px; border: 1px solid #f1e5c7; border-radius: 10px; color: #8c6a2d; background: #fffbf1; }
.tepf-guide-reminder > i { margin-top: 1px; font-size: 15px; }
.tepf-guide-reminder strong { display: block; margin-bottom: 4px; color: #785a25; font-size: 10px; }
.tepf-guide-reminder p { margin: 0; color: #8b7854; font-size: 10px; line-height: 1.55; }

.tepf-builder-error { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; padding: 13px 15px; border: 1px solid #f0c7cb; border-radius: 10px; color: #a92f3b; background: #fff4f4; font-size: 12px; font-weight: 650; line-height: 1.5; }
.tepf-builder-error > i { margin-top: 1px; font-size: 15px; }
.tepf-builder-error.d-none { display: none !important; }

.tepf-question-card { margin-bottom: 17px; overflow: hidden; border: 1px solid #dfe7f1; border-radius: 15px; background: #fff; box-shadow: 0 5px 18px rgba(25, 53, 91, .045); }
.tepf-question-card-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 18px; border-bottom: 1px solid #e9eef5; background: linear-gradient(100deg, #f8faff 0%, #f3f7fd 100%); }
.tepf-question-title-wrap { display: flex; align-items: center; gap: 11px; min-width: 120px; }
.tepf-question-symbol { display: grid; flex: 0 0 39px; width: 39px; height: 39px; place-items: center; border: 1px solid #dce8f8; border-radius: 11px; color: #0756b3; background: #fff; font-size: 16px; }
.tepf-question-overline { display: block; margin-bottom: 2px; color: #8b9bb0; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.tepf-question-title-wrap h3 { margin: 0; color: #1e3c64; font-size: 15px; font-weight: 850; }
.tepf-question-card-tools { display: flex; align-items: flex-end; gap: 10px; }
.tepf-type-select-wrap { display: flex; flex-direction: column; gap: 4px; min-width: 190px; }
.tepf-type-select-wrap > span { color: #8290a3; font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.tepf-type-select { min-height: 36px; padding-top: 6px; padding-bottom: 6px; border: 1px solid #d7e1ed; border-radius: 8px; color: #2e4769; background-color: #fff; font-size: 11px; font-weight: 700; }
.tepf-type-select:focus { border-color: #6c9fe0; box-shadow: 0 0 0 3px rgba(0,83,177,.09); }
.tepf-icon-button { display: grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; border: 1px solid #f0d5d8; border-radius: 9px; color: #c04450; background: #fff; cursor: pointer; transition: .16s ease; }
.tepf-icon-button:hover { border-color: #e7b4ba; color: #a92f3b; background: #fff0f1; }
.tepf-question-body { padding: 20px 21px 22px; }
.tepf-question-base-fields { padding-bottom: 18px; }
.tepf-question-section { margin-top: 19px; padding-top: 19px; border-top: 1px solid #e9eef5; }
.tepf-question-section[hidden] { display: none !important; }
.tepf-subsection-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.tepf-subsection-icon { display: grid; flex: 0 0 35px; width: 35px; height: 35px; place-items: center; border-radius: 10px; color: #0756b3; background: #edf4ff; font-size: 15px; }
.tepf-subsection-heading h4, .tepf-testcase-heading h4 { margin: 0; color: #294566; font-size: 13px; font-weight: 850; }
.tepf-subsection-heading p, .tepf-testcase-heading p { margin: 3px 0 0; color: #8290a3; font-size: 10px; line-height: 1.45; }
.tepf-choice-container, .tepf-item-container, .tepf-testcase-container { display: flex; flex-direction: column; gap: 9px; }
.tepf-choice-row, .tepf-item-row { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 9px; border: 1px solid #e5ebf3; border-radius: 10px; background: #fafcff; }
.tepf-choice-letter, .tepf-item-number { display: grid; flex: 0 0 32px; min-width: 32px; height: 32px; place-items: center; border-radius: 8px; color: #315d91; background: #eaf2fc; font-size: 11px; font-weight: 850; }
.tepf-item-number { width: auto; min-width: 65px; padding: 0 9px; color: #637893; background: #eef2f7; }
.tepf-choice-row .tepf-control { min-width: 0; }
.tepf-row-delete { display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; border: 1px solid transparent; border-radius: 8px; color: #a7b1bf; background: transparent; cursor: pointer; }
.tepf-row-delete:hover { border-color: #f0d5d8; color: #bf3947; background: #fff1f2; }
.tepf-inline-add { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; padding: 7px 10px; border: 1px solid #cbdcf1; border-radius: 8px; color: #0756b3; background: #f6f9ff; font-size: 11px; font-weight: 750; cursor: pointer; transition: .16s ease; }
.tepf-inline-add:hover { border-color: #9dbce2; color: #003d99; background: #edf4ff; }
.tepf-correct-answer { display: grid; grid-template-columns: minmax(130px, 190px); margin-top: 16px; }
.tepf-correct-answer .tepf-control { min-height: 40px; }
.tepf-helper-line { display: flex; align-items: flex-start; gap: 7px; margin: 11px 0 0; color: #8391a4; font-size: 10px; line-height: 1.5; }
.tepf-helper-line i { margin-top: 1px; color: #6c8eb7; }
.tepf-code-input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important; font-size: 12px !important; }
.tepf-items-field { margin-top: 18px; }
.tepf-items-field > .tepf-label { margin-bottom: 9px; }
.tepf-testcase-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 13px; padding-top: 17px; border-top: 1px solid #e9eef5; }
.tepf-testcase-heading .tepf-inline-add { flex: 0 0 auto; margin-top: 0; }
.tepf-testcase-card { padding: 14px; border: 1px solid #e1e8f1; border-radius: 11px; background: #f9fbfe; }
.tepf-testcase-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.tepf-testcase-card-heading > div { display: flex; align-items: center; gap: 8px; }
.tepf-testcase-card-heading strong { color: #395574; font-size: 11px; font-weight: 850; }
.tepf-testcase-dot { width: 7px; height: 7px; border-radius: 50%; background: #16834a; box-shadow: 0 0 0 3px #e2f4e9; }
.tepf-text-delete { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border: 0; color: #bd4a55; background: transparent; font-size: 10px; font-weight: 700; cursor: pointer; }
.tepf-text-delete:hover { color: #962b37; text-decoration: underline; }
.tepf-code-score-note { display: flex; align-items: center; gap: 8px; margin-top: 13px; padding: 10px 12px; border-radius: 8px; color: #6d5b2b; background: #fff8e9; font-size: 10px; }
.tepf-code-score-note i { color: #b18127; font-size: 13px; }

.tepf-form-footer { position: sticky; z-index: 10; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 24px; padding: 14px 18px; border: 1px solid #e0e7f0; border-radius: 14px; background: rgba(255,255,255,.96); box-shadow: 0 -5px 22px rgba(25, 49, 82, .06); backdrop-filter: blur(12px); }
.tepf-footer-assurance { display: flex; align-items: center; gap: 8px; color: #78889d; font-size: 11px; }
.tepf-footer-assurance i { color: #16834a; font-size: 16px; }
.tepf-footer-actions { display: flex; align-items: center; gap: 9px; }
.tepf-button-cancel { min-width: 82px; border-color: #dce4ee; color: #5e6f86; background: #fff; }
.tepf-button-cancel:hover { border-color: #c5d1df; color: #31445f; background: #f7f9fc; }
.tepf-button-save { min-width: 150px; }

@media (max-width: 1100px) {
    .tepf-workspace { grid-template-columns: minmax(0, 1fr) 235px; gap: 13px; }
    .tepf-guide-panel { padding: 16px 13px; }
    .tepf-summary-strip { gap: 15px; }
    .tepf-summary-hint { max-width: 260px; }
}

@media (max-width: 850px) {
    .tepf-page { width: min(100% - 28px, 760px); margin-top: 14px; }
    .tepf-hero { min-height: auto; padding: 22px; }
    .tepf-workspace { grid-template-columns: 1fr; }
    .tepf-guide-panel { position: static; }
    .tepf-type-guide-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tepf-guide-reminder { margin-top: 14px; }
    .tepf-summary-hint { max-width: none; }
}

@media (max-width: 600px) {
    .tepf-page { width: calc(100% - 20px); margin: 10px auto 30px; }
    .tepf-hero { display: block; padding: 18px; border-radius: 16px; }
    .tepf-breadcrumb { gap: 6px; margin-bottom: 18px; font-size: 10px; }
    .tepf-hero-title-row { align-items: flex-start; gap: 11px; }
    .tepf-hero-symbol { flex-basis: 43px; width: 43px; height: 43px; border-radius: 12px; font-size: 19px; }
    .tepf-eyebrow { font-size: 8px; }
    .tepf-hero h1 { font-size: 23px; }
    .tepf-hero-subtitle { font-size: 11px; line-height: 1.5; }
    .tepf-exam-context { display: flex; margin: 16px 0 0; }
    .tepf-back-link { margin-top: 15px; padding: 8px 11px; font-size: 11px; }
    .tepf-copy-notice { align-items: flex-start; gap: 10px; padding: 12px; }
    .tepf-notice-tag { display: none; }
    .tepf-notice-content p { font-size: 11px; }
    .tepf-paper-info { padding: 17px 14px; }
    .tepf-panel-heading { align-items: flex-start; gap: 10px; }
    .tepf-panel-heading h2 { font-size: 16px; }
    .tepf-panel-heading p { font-size: 11px; line-height: 1.5; }
    .tepf-required-note { display: none; }
    .tepf-info-grid { grid-template-columns: 1fr; gap: 15px; padding-top: 16px; }
    .tepf-field-full { grid-column: auto; }
    .tepf-builder-section { margin-top: 22px; }
    .tepf-builder-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
    .tepf-builder-heading h2 { font-size: 20px; }
    .tepf-builder-heading p { font-size: 11px; line-height: 1.5; }
    .tepf-button-add { width: 100%; }
    .tepf-summary-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 13px; }
    .tepf-summary-item { min-width: 0; gap: 8px; }
    .tepf-summary-icon { flex-basis: 35px; width: 35px; height: 35px; font-size: 15px; }
    .tepf-summary-copy > small { font-size: 9px; }
    .tepf-summary-copy > strong { font-size: 19px; }
    .tepf-summary-divider { display: none; }
    .tepf-summary-hint { grid-column: 1 / -1; margin: 0; padding: 8px 9px; font-size: 9px; }
    .tepf-question-card-header { align-items: flex-start; flex-direction: column; padding: 12px; }
    .tepf-question-card-tools { width: 100%; align-items: flex-end; }
    .tepf-type-select-wrap { flex: 1; min-width: 0; }
    .tepf-type-select { width: 100%; }
    .tepf-question-body { padding: 15px 12px; }
    .tepf-question-base-fields .col-md-9, .tepf-question-base-fields .col-md-3 { width: 100%; }
    .tepf-choice-row, .tepf-item-row { gap: 6px; padding: 7px; }
    .tepf-item-number { min-width: 49px; font-size: 9px; }
    .tepf-testcase-heading { align-items: flex-start; flex-direction: column; }
    .tepf-testcase-heading .tepf-inline-add { width: 100%; justify-content: center; }
    .tepf-type-guide-list { grid-template-columns: 1fr; }
    .tepf-form-footer { align-items: stretch; flex-direction: column; gap: 10px; padding: 11px; }
    .tepf-footer-assurance { font-size: 9px; line-height: 1.45; }
    .tepf-footer-actions { display: grid; grid-template-columns: .75fr 1.25fr; }
    .tepf-footer-actions .tepf-button { width: 100%; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .tepf-page *, .tepf-page *::before, .tepf-page *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
/* =========================================================
   STU OnlineExam - Teacher Exam Assignments
   Stylesheet riêng cho teacher_exam_assignments.html
   ========================================================= */

.assignment-page {
    --assignment-primary: #174ea6;
    --assignment-primary-dark: #123d82;
    --assignment-primary-soft: #edf4ff;
    --assignment-green: #168451;
    --assignment-green-soft: #eaf7f0;
    --assignment-amber: #b7791f;
    --assignment-amber-soft: #fff7e8;
    --assignment-text: #17243a;
    --assignment-muted: #718096;
    --assignment-border: #e5eaf1;
    --assignment-surface: #ffffff;
    --assignment-background: #f5f7fb;
    color: var(--assignment-text);
    max-width: 1440px;
    margin: 0 auto;
    padding: 30px 28px 48px;
}

.assignment-page,
.assignment-page * {
    box-sizing: border-box;
}

.assignment-page button,
.assignment-page input,
.assignment-page select {
    font: inherit;
}

.assignment-page [hidden] {
    display: none !important;
}

/* Header */
.assignment-hero {
    position: relative;
    overflow: hidden;
    padding: 25px 30px 30px;
    margin-bottom: 30px;
    color: #fff;
    border-radius: 22px;
    background:
        radial-gradient(circle at 87% 20%, rgba(255,255,255,.15), transparent 25%),
        linear-gradient(118deg, #123d82 0%, #174ea6 55%, #2876c7 100%);
    box-shadow: 0 16px 35px rgba(23, 78, 166, .16);
}

.assignment-hero::after {
    content: "";
    position: absolute;
    width: 330px;
    height: 330px;
    right: -90px;
    bottom: -230px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 50%;
    box-shadow: 0 0 0 28px rgba(255,255,255,.035), 0 0 0 58px rgba(255,255,255,.025);
    pointer-events: none;
}

.assignment-hero__topline,
.assignment-hero__content,
.assignment-meta,
.assignment-meta__item {
    display: flex;
    align-items: center;
}

.assignment-hero__topline {
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 27px;
}

.assignment-backlink {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: rgba(255,255,255,.84);
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    transition: color .18s ease, transform .18s ease;
}

.assignment-backlink:hover {
    color: #fff;
    transform: translateX(-2px);
}

.assignment-context-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: rgba(255,255,255,.95);
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 650;
}

.assignment-hero__content {
    justify-content: space-between;
    gap: 28px;
}

.assignment-hero__content > div:first-child {
    min-width: 0;
}

.assignment-eyebrow,
.assignment-section-kicker {
    display: block;
    margin-bottom: 8px;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .13em;
}

.assignment-eyebrow {
    color: #bcd8ff;
}

.assignment-title {
    margin: 0;
    color: #fff;
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    font-weight: 760;
    letter-spacing: -.035em;
    line-height: 1.2;
}

.assignment-subtitle {
    max-width: 690px;
    margin: 12px 0 18px;
    color: rgba(255,255,255,.79);
    font-size: .94rem;
    line-height: 1.65;
}

.assignment-meta {
    flex-wrap: wrap;
    gap: 11px;
    color: rgba(255,255,255,.91);
    font-size: .84rem;
}

.assignment-meta__item {
    gap: 8px;
}

.assignment-meta__item i {
    color: #bcd8ff;
}

.assignment-meta__separator {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,.55);
}

.assignment-hero__symbol {
    display: grid;
    flex: 0 0 92px;
    width: 92px;
    height: 92px;
    place-items: center;
    color: rgba(255,255,255,.96);
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 25px;
    font-size: 2.65rem;
    transform: rotate(5deg);
}

/* Section headings */
.assignment-overview,
.assignment-methods,
.assignment-data-section {
    margin-bottom: 34px;
}

.assignment-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 17px;
}

.assignment-section-kicker {
    margin-bottom: 5px;
    color: var(--assignment-primary);
}

.assignment-section-heading h2 {
    margin: 0;
    color: var(--assignment-text);
    font-size: 1.28rem;
    font-weight: 760;
    letter-spacing: -.025em;
}

.assignment-section-description {
    margin: 7px 0 0;
    color: var(--assignment-muted);
    font-size: .87rem;
    line-height: 1.55;
}

.assignment-live-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    color: #557064;
    background: #f0f8f3;
    border: 1px solid #dcefe3;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 650;
    white-space: nowrap;
}

.assignment-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #20a464;
    box-shadow: 0 0 0 3px rgba(32,164,100,.12);
}

/* Statistic cards */
.assignment-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
}

.assignment-stat-card {
    display: flex;
    align-items: center;
    gap: 17px;
    min-height: 126px;
    padding: 21px 22px;
    background: var(--assignment-surface);
    border: 1px solid var(--assignment-border);
    border-radius: 17px;
    box-shadow: 0 5px 18px rgba(21, 39, 68, .035);
    transition: transform .2s ease, box-shadow .2s ease;
}

.assignment-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(21, 39, 68, .075);
}

.assignment-stat-card__icon {
    display: grid;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 15px;
    font-size: 1.4rem;
}

.assignment-stat-card--blue .assignment-stat-card__icon {
    color: #2863b3;
    background: #edf4ff;
}

.assignment-stat-card--green .assignment-stat-card__icon {
    color: #168451;
    background: #eaf7f0;
}

.assignment-stat-card--amber .assignment-stat-card__icon {
    color: #b7791f;
    background: #fff5df;
}

.assignment-stat-card__body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
}

.assignment-stat-card__label {
    color: #64748b;
    font-size: .81rem;
    font-weight: 650;
}

.assignment-stat-card__value {
    margin-top: 2px;
    color: var(--assignment-text);
    font-size: 1.9rem;
    font-weight: 780;
    line-height: 1.25;
    font-variant-numeric: tabular-nums;
}

.assignment-stat-card--green .assignment-stat-card__value {
    color: var(--assignment-green);
}

.assignment-stat-card--amber .assignment-stat-card__value {
    color: var(--assignment-amber);
}

.assignment-stat-card__note {
    margin-top: 3px;
    color: #98a3b3;
    font-size: .73rem;
}

/* Method panels */
.assignment-method-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 19px;
}

.assignment-panel {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 23px;
    background: var(--assignment-surface);
    border: 1px solid var(--assignment-border);
    border-radius: 19px;
    box-shadow: 0 6px 22px rgba(21, 39, 68, .04);
}

.assignment-panel--manual {
    border-top: 3px solid #3476ce;
}

.assignment-panel--random {
    border-top: 3px solid #259563;
}

.assignment-panel__header,
.assignment-panel__identity {
    display: flex;
    align-items: center;
}

.assignment-panel__header {
    justify-content: space-between;
    gap: 12px;
}

.assignment-panel__identity {
    min-width: 0;
    gap: 12px;
}

.assignment-method-icon {
    display: grid;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 14px;
    font-size: 1.3rem;
}

.assignment-method-icon--blue {
    color: #2863b3;
    background: var(--assignment-primary-soft);
}

.assignment-method-icon--green {
    color: var(--assignment-green);
    background: var(--assignment-green-soft);
}

.assignment-panel__step {
    display: block;
    margin-bottom: 3px;
    color: #99a4b4;
    font-size: .63rem;
    font-weight: 800;
    letter-spacing: .1em;
}

.assignment-panel__header h3 {
    margin: 0;
    color: var(--assignment-text);
    font-size: 1.05rem;
    font-weight: 750;
}

.assignment-method-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 700;
    white-space: nowrap;
}

.assignment-method-pill--blue {
    color: #245ba7;
    background: #edf4ff;
}

.assignment-method-pill--green {
    color: #14784a;
    background: #eaf7f0;
}

.assignment-panel__description {
    min-height: 42px;
    margin: 15px 0 19px;
    color: var(--assignment-muted);
    font-size: .83rem;
    line-height: 1.6;
}

.assignment-form {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.assignment-field {
    margin-bottom: 17px;
}

.assignment-field__label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    color: #334155;
    font-size: .82rem;
    font-weight: 720;
}

.assignment-required {
    color: #a0aaba;
    font-size: .68rem;
    font-weight: 600;
}

.assignment-select-wrap {
    position: relative;
}

.assignment-select {
    display: block;
    width: 100%;
    min-height: 47px;
    padding: 11px 40px 11px 42px;
    color: #344256;
    background: #fbfcfe;
    border: 1px solid #dce3ed;
    border-radius: 10px;
    outline: none;
    font-size: .83rem;
    appearance: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.assignment-select:focus {
    background: #fff;
    border-color: #6b9de0;
    box-shadow: 0 0 0 3px rgba(52,118,206,.12);
}

.assignment-select:disabled {
    color: #9ba6b5;
    background: #f3f5f8;
    cursor: not-allowed;
}

.assignment-select-icon,
.assignment-select-chevron {
    position: absolute;
    top: 50%;
    z-index: 1;
    color: #8794a7;
    transform: translateY(-50%);
    pointer-events: none;
}

.assignment-select-icon {
    left: 14px;
    font-size: 1rem;
}

.assignment-select-chevron {
    right: 14px;
    font-size: .75rem;
}

.assignment-field__hint {
    display: block;
    margin-top: 7px;
    color: #96a1b1;
    font-size: .71rem;
    line-height: 1.45;
}

.assignment-inline-notice {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 2px 0 15px;
    padding: 11px 12px;
    border-radius: 9px;
    font-size: .78rem;
    line-height: 1.5;
}

.assignment-inline-notice i {
    margin-top: 1px;
}

.assignment-inline-notice--success {
    color: #18734a;
    background: #eff9f3;
    border: 1px solid #d9f0e2;
}

.assignment-inline-notice--warning {
    color: #95651b;
    background: #fff8eb;
    border: 1px solid #f5e8c9;
}

.assignment-panel__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #edf0f5;
}

.assignment-panel__footnote {
    display: inline-flex;
    align-items: flex-start;
    gap: 6px;
    max-width: 52%;
    color: #96a1b1;
    font-size: .69rem;
    line-height: 1.45;
}

.assignment-panel__footnote i {
    flex: 0 0 auto;
    margin-top: 1px;
}

.assignment-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 15px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #fff;
    font-size: .79rem;
    font-weight: 720;
    white-space: nowrap;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.assignment-button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.assignment-button--primary {
    background: #1d5db5;
    box-shadow: 0 5px 12px rgba(29,93,181,.17);
}

.assignment-button--primary:hover:not(:disabled) {
    background: #174b96;
    box-shadow: 0 7px 16px rgba(29,93,181,.22);
}

.assignment-button--success {
    background: #188653;
    box-shadow: 0 5px 12px rgba(24,134,83,.16);
}

.assignment-button--success:hover:not(:disabled) {
    background: #116f43;
    box-shadow: 0 7px 16px rgba(24,134,83,.22);
}

.assignment-button:disabled {
    color: #9ba6b5;
    background: #edf0f4;
    box-shadow: none;
    cursor: not-allowed;
}

/* Random assignment controls */
.assignment-random-explainer {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    padding: 12px 13px;
    background: #f0f8f3;
    border: 1px solid #deefe4;
    border-radius: 11px;
}

.assignment-random-explainer__icon {
    display: grid;
    flex: 0 0 27px;
    width: 27px;
    height: 27px;
    place-items: center;
    color: #188653;
    background: #dff3e7;
    border-radius: 8px;
}

.assignment-random-explainer p {
    margin: 1px 0 0;
    color: #557363;
    font-size: .76rem;
    line-height: 1.55;
}

.assignment-random-explainer strong {
    color: #176c45;
}

.assignment-paper-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.assignment-paper-heading .assignment-field__label {
    margin: 0;
}

.assignment-selection-tools {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.assignment-selection-tools > span {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #c5cdd8;
}

.assignment-text-button {
    padding: 2px 0;
    color: #2765b6;
    background: transparent;
    border: 0;
    font-size: .71rem;
    font-weight: 700;
    cursor: pointer;
}

.assignment-text-button:hover {
    color: #123d82;
    text-decoration: underline;
}

.assignment-paper-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.assignment-paper-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 66px;
    padding: 10px 11px;
    background: #fbfcfe;
    border: 1px solid #e0e6ef;
    border-radius: 11px;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.assignment-paper-option:hover {
    border-color: #9ac8ac;
    background: #f7fcf9;
}

.assignment-paper-checkbox {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.assignment-paper-option__check {
    display: grid;
    flex: 0 0 19px;
    width: 19px;
    height: 19px;
    place-items: center;
    color: transparent;
    background: #fff;
    border: 1.5px solid #c7d0dc;
    border-radius: 6px;
    font-size: .74rem;
    transition: all .16s ease;
}

.assignment-paper-checkbox:checked + .assignment-paper-option__check {
    color: #fff;
    background: #198653;
    border-color: #198653;
}

.assignment-paper-checkbox:focus-visible + .assignment-paper-option__check {
    outline: 3px solid rgba(25,134,83,.2);
    outline-offset: 2px;
}

.assignment-paper-option:has(.assignment-paper-checkbox:checked) {
    background: #f4fbf6;
    border-color: #a8d6b8;
}

.assignment-paper-option__content {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 3px;
}

.assignment-paper-option__code {
    overflow: hidden;
    color: #253a56;
    font-size: .81rem;
    font-weight: 780;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.assignment-paper-option__meta {
    overflow: hidden;
    color: #8a97a8;
    font-size: .68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.assignment-paper-option__title {
    color: #718096;
}

.assignment-paper-option__icon {
    flex: 0 0 auto;
    color: #a6b1c0;
    font-size: 1rem;
}

.assignment-empty-papers {
    display: flex;
    grid-column: 1 / -1;
    min-height: 130px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 20px;
    color: #8895a7;
    background: #fafbfd;
    border: 1px dashed #d8e0eb;
    border-radius: 11px;
    text-align: center;
}

.assignment-empty-papers > i {
    margin-bottom: 4px;
    color: #a4b0c0;
    font-size: 1.6rem;
}

.assignment-empty-papers strong {
    color: #536176;
    font-size: .83rem;
}

.assignment-empty-papers span {
    font-size: .72rem;
}

.assignment-selected-summary {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 12px 0 16px;
    color: #7c899a;
    font-size: .71rem;
}

.assignment-selected-summary > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.assignment-selected-summary strong {
    color: #1a7b4e;
    font-variant-numeric: tabular-nums;
}

.assignment-validation-message {
    min-height: 0;
    margin-top: 7px;
    color: #b45309;
    font-size: .73rem;
}

/* Tables */
.assignment-data-section {
    margin-top: 38px;
}

.assignment-section-heading--table {
    align-items: center;
}

.assignment-table-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: #52647c;
    background: #f0f4f9;
    border: 1px solid #e4eaf2;
    border-radius: 9px;
    font-size: .75rem;
    font-weight: 700;
    white-space: nowrap;
}

.assignment-table-count i {
    color: #3972bd;
}

.assignment-table-card {
    overflow: hidden;
    background: var(--assignment-surface);
    border: 1px solid var(--assignment-border);
    border-radius: 16px;
    box-shadow: 0 6px 22px rgba(21, 39, 68, .04);
}

.assignment-table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 17px;
    border-bottom: 1px solid #edf0f5;
}

.assignment-search {
    position: relative;
    display: flex;
    align-items: center;
    width: min(100%, 440px);
}

.assignment-search > i {
    position: absolute;
    left: 13px;
    color: #8996a8;
    font-size: .9rem;
    pointer-events: none;
}

.assignment-search input {
    width: 100%;
    min-height: 40px;
    padding: 9px 42px 9px 37px;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #e1e7ef;
    border-radius: 9px;
    outline: none;
    font-size: .78rem;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.assignment-search input:focus {
    background: #fff;
    border-color: #80a9dc;
    box-shadow: 0 0 0 3px rgba(52,118,206,.1);
}

.assignment-search input::placeholder {
    color: #a0aaba;
}

.assignment-search kbd {
    position: absolute;
    right: 11px;
    color: #a6b0be;
    font-size: .78rem;
}

.assignment-filter {
    display: flex;
    align-items: center;
    gap: 9px;
}

.assignment-filter label {
    color: #778498;
    font-size: .74rem;
    font-weight: 650;
    white-space: nowrap;
}

.assignment-filter select {
    min-height: 39px;
    padding: 8px 30px 8px 11px;
    color: #45546a;
    background: #fff;
    border: 1px solid #e1e7ef;
    border-radius: 9px;
    outline: none;
    font-size: .75rem;
}

.assignment-filter select:focus {
    border-color: #80a9dc;
    box-shadow: 0 0 0 3px rgba(52,118,206,.1);
}

.assignment-table-scroll {
    width: 100%;
    overflow-x: auto;
}

.assignment-table {
    width: 100%;
    min-width: 850px;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    font-size: .78rem;
}

.assignment-table thead th {
    padding: 13px 15px;
    color: #68778c;
    background: #f7f9fc;
    border-bottom: 1px solid #e8edf3;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .035em;
    text-align: left;
    white-space: nowrap;
}

.assignment-table tbody td {
    padding: 13px 15px;
    color: #526176;
    border-bottom: 1px solid #eef1f5;
    vertical-align: middle;
}

.assignment-table tbody tr:last-child td {
    border-bottom: 0;
}

.assignment-table tbody tr[data-student-row]:hover td {
    background: #fafcff;
}

.assignment-col-number {
    width: 65px;
    text-align: center !important;
}

.assignment-cell-number {
    color: #96a1b1 !important;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.assignment-col-center {
    text-align: center !important;
}

.assignment-student-code {
    display: inline-block;
    padding: 5px 8px;
    color: #4c5e78;
    background: #f2f5f9;
    border-radius: 6px;
    font-size: .72rem;
    font-weight: 700;
    white-space: nowrap;
}

.assignment-student-name {
    display: block;
    color: #2d3d53;
    font-weight: 700;
}

.assignment-username {
    color: #7c899b;
    font-size: .75rem;
}

.assignment-paper-code {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    color: #245ba7;
    background: #edf4ff;
    border: 1px solid #dceaff;
    border-radius: 7px;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .02em;
    white-space: nowrap;
}

.assignment-muted-value {
    color: #a0aaba;
    font-size: .73rem;
    font-style: italic;
}

.assignment-method-badge,
.assignment-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 700;
    white-space: nowrap;
}

.assignment-method-badge--random {
    color: #176e83;
    background: #e9f7fa;
}

.assignment-method-badge--manual {
    color: #325fa0;
    background: #edf3ff;
}

.assignment-status-badge > span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.assignment-status-badge--done {
    color: #16764a;
    background: #eaf7f0;
}

.assignment-status-badge--done > span {
    background: #20a464;
}

.assignment-status-badge--waiting {
    color: #986a1f;
    background: #fff6e5;
}

.assignment-status-badge--waiting > span {
    background: #d69a32;
}

.assignment-table-empty {
    display: flex;
    min-height: 170px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #95a1b1;
    text-align: center;
}

.assignment-table-empty > i {
    margin-bottom: 3px;
    color: #aeb9c8;
    font-size: 1.8rem;
}

.assignment-table-empty strong {
    color: #526176;
    font-size: .85rem;
}

.assignment-table-empty span {
    max-width: 430px;
    font-size: .74rem;
    line-height: 1.5;
}

.assignment-no-search-result td {
    padding: 0 !important;
}

.assignment-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 17px;
    color: #929eae;
    background: #fbfcfe;
    border-top: 1px solid #edf0f5;
    font-size: .69rem;
}

.assignment-table-footer > span:last-child {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* History table */
.assignment-history-table {
    min-width: 900px;
}

.assignment-history-table tbody td {
    padding-top: 15px;
    padding-bottom: 15px;
}

.assignment-history-date {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #64748b;
    white-space: nowrap;
}

.assignment-history-date i {
    color: #9aa7b8;
}

.assignment-history-username {
    display: block;
    margin-top: 3px;
    color: #98a3b3;
    font-size: .7rem;
}

.assignment-system-user {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #697a91;
}

.assignment-system-user i {
    color: #8c9bb0;
}

.assignment-row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.assignment-row-actions form {
    margin: 0;
}

.assignment-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 32px;
    padding: 6px 9px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: .7rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.assignment-icon-button:hover {
    transform: translateY(-1px);
}

.assignment-icon-button--edit {
    color: #93651d;
    background: #fff9ed;
    border-color: #f3e5c7;
}

.assignment-icon-button--edit:hover {
    color: #79500f;
    background: #fff2d8;
    border-color: #ead4a4;
}

.assignment-icon-button--delete {
    color: #b33e45;
    background: #fff5f5;
    border-color: #f4dddd;
}

.assignment-icon-button--delete:hover {
    color: #982d34;
    background: #ffeaea;
    border-color: #edcaca;
}

/* Footer */
.assignment-page-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 25px;
    padding-top: 19px;
    border-top: 1px solid #e6ebf2;
}

.assignment-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #49627f;
    font-size: .81rem;
    font-weight: 700;
    text-decoration: none;
    transition: color .16s ease, transform .16s ease;
}

.assignment-footer-link:hover {
    color: var(--assignment-primary);
    transform: translateX(-2px);
}

.assignment-footer-note {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #9aa5b4;
    font-size: .7rem;
}

/* Responsive */
@media (max-width: 1100px) {
    .assignment-page {
        padding-right: 20px;
        padding-left: 20px;
    }

    .assignment-method-grid {
        grid-template-columns: 1fr;
    }

    .assignment-panel__description {
        min-height: 0;
    }
}

@media (max-width: 760px) {
    .assignment-page {
        padding: 18px 13px 34px;
    }

    .assignment-hero {
        padding: 20px 19px 23px;
        border-radius: 17px;
    }

    .assignment-hero__topline {
        margin-bottom: 22px;
    }

    .assignment-hero__symbol {
        flex-basis: 62px;
        width: 62px;
        height: 62px;
        border-radius: 18px;
        font-size: 1.8rem;
    }

    .assignment-title {
        font-size: 1.55rem;
    }

    .assignment-subtitle {
        font-size: .85rem;
    }

    .assignment-stat-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .assignment-stat-card {
        min-height: 100px;
        padding: 16px;
    }

    .assignment-stat-card__icon {
        flex-basis: 46px;
        width: 46px;
        height: 46px;
    }

    .assignment-stat-card__value {
        font-size: 1.6rem;
    }

    .assignment-section-heading,
    .assignment-section-heading--table {
        align-items: flex-start;
    }

    .assignment-section-heading--table {
        flex-direction: column;
        gap: 11px;
    }

    .assignment-panel {
        padding: 18px 15px;
    }

    .assignment-panel__header {
        align-items: flex-start;
    }

    .assignment-method-pill {
        max-width: 118px;
        white-space: normal;
        text-align: center;
    }

    .assignment-panel__footer {
        align-items: stretch;
        flex-direction: column;
    }

    .assignment-panel__footnote {
        max-width: none;
    }

    .assignment-button {
        width: 100%;
    }

    .assignment-paper-grid {
        grid-template-columns: 1fr;
    }

    .assignment-paper-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .assignment-selected-summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .assignment-table-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .assignment-search {
        width: 100%;
    }

    .assignment-filter {
        justify-content: space-between;
    }

    .assignment-table-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .assignment-page-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 430px) {
    .assignment-hero__symbol {
        display: none;
    }

    .assignment-context-tag {
        padding: 7px 9px;
        font-size: .7rem;
    }

    .assignment-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .assignment-meta__separator {
        display: none;
    }

    .assignment-panel__identity {
        gap: 9px;
    }

    .assignment-method-icon {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
    }

    .assignment-panel__header h3 {
        font-size: .94rem;
    }
}

/* =========================================================
   STU OnlineExam
   teacher_exam_assignment_form.html
   CSS riêng cho màn hình chỉnh sửa phân công đề
   ========================================================= */

.assignment-edit-page {
    --edit-primary: #174ea6;
    --edit-primary-dark: #123d82;
    --edit-primary-soft: #edf4ff;
    --edit-green: #168451;
    --edit-green-soft: #eaf7f0;
    --edit-text: #17243a;
    --edit-muted: #748196;
    --edit-border: #e5eaf1;
    --edit-surface: #fff;
    max-width: 1120px;
    margin: 0 auto;
    padding: 30px 26px 48px;
    color: var(--edit-text);
}

.assignment-edit-page,
.assignment-edit-page * {
    box-sizing: border-box;
}

/* Hero */
.assignment-edit-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 25px;
    padding: 23px 29px 28px;
    color: #fff;
    background:
        radial-gradient(circle at 88% 20%, rgba(255,255,255,.14), transparent 25%),
        linear-gradient(116deg, #123d82 0%, #174ea6 58%, #2876c7 100%);
    border-radius: 21px;
    box-shadow: 0 15px 34px rgba(23,78,166,.15);
}

.assignment-edit-hero::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -225px;
    width: 320px;
    height: 320px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50%;
    box-shadow: 0 0 0 27px rgba(255,255,255,.035), 0 0 0 55px rgba(255,255,255,.025);
    pointer-events: none;
}

.assignment-edit-breadcrumb {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 27px;
    color: rgba(255,255,255,.7);
    font-size: .78rem;
}

.assignment-edit-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,.9);
    font-weight: 650;
    text-decoration: none;
    transition: color .18s ease;
}

.assignment-edit-breadcrumb a:hover {
    color: #fff;
}

.assignment-edit-breadcrumb__separator {
    color: rgba(255,255,255,.4);
}

.assignment-edit-hero__main {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.assignment-edit-hero__copy {
    min-width: 0;
}

.assignment-edit-eyebrow,
.assignment-edit-kicker {
    display: block;
    margin-bottom: 6px;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .13em;
}

.assignment-edit-eyebrow {
    color: #bcd8ff;
}

.assignment-edit-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    font-weight: 780;
    letter-spacing: -.035em;
    line-height: 1.2;
}

.assignment-edit-hero__copy > p {
    max-width: 650px;
    margin: 11px 0 19px;
    color: rgba(255,255,255,.8);
    font-size: .88rem;
    line-height: 1.65;
}

.assignment-edit-exam {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    padding: 9px 13px;
    background: rgba(255,255,255,.11);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 11px;
}

.assignment-edit-exam__icon {
    display: grid;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    place-items: center;
    color: #d8e8ff;
    background: rgba(255,255,255,.12);
    border-radius: 9px;
    font-size: 1rem;
}

.assignment-edit-exam small,
.assignment-edit-exam strong {
    display: block;
}

.assignment-edit-exam small {
    margin-bottom: 2px;
    color: rgba(255,255,255,.67);
    font-size: .65rem;
}

.assignment-edit-exam strong {
    overflow: hidden;
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.assignment-edit-hero__icon {
    display: grid;
    flex: 0 0 82px;
    width: 82px;
    height: 82px;
    place-items: center;
    color: rgba(255,255,255,.94);
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 23px;
    font-size: 2.3rem;
    transform: rotate(5deg);
}

/* Main layout */
.assignment-edit-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 19px;
}

.assignment-edit-card {
    min-width: 0;
    padding: 23px 25px;
    background: var(--edit-surface);
    border: 1px solid var(--edit-border);
    border-radius: 17px;
    box-shadow: 0 6px 22px rgba(21,39,68,.045);
}

.assignment-edit-details {
    border-top: 3px solid #3675c7;
}

.assignment-edit-paper-card {
    border-top: 3px solid #259563;
}

.assignment-edit-card__heading {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 20px;
}

.assignment-edit-heading-icon {
    display: grid;
    flex: 0 0 45px;
    width: 45px;
    height: 45px;
    place-items: center;
    border-radius: 13px;
    font-size: 1.25rem;
}

.assignment-edit-heading-icon--blue {
    color: #2863b3;
    background: var(--edit-primary-soft);
}

.assignment-edit-heading-icon--green {
    color: var(--edit-green);
    background: var(--edit-green-soft);
}

.assignment-edit-kicker {
    margin-bottom: 3px;
    color: #8996a8;
    font-size: .61rem;
}

.assignment-edit-card__heading h2 {
    margin: 0;
    color: var(--edit-text);
    font-size: 1.08rem;
    font-weight: 760;
    letter-spacing: -.02em;
}

.assignment-edit-card__heading p {
    margin: 4px 0 0;
    color: var(--edit-muted);
    font-size: .76rem;
    line-height: 1.45;
}

.assignment-edit-readonly {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding: 7px 10px;
    color: #68778b;
    background: #f3f5f8;
    border: 1px solid #e7ebf0;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 700;
    white-space: nowrap;
}

/* Read-only identity information */
.assignment-edit-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.assignment-edit-info-item {
    display: flex;
    min-width: 0;
    min-height: 83px;
    flex-direction: column;
    justify-content: center;
    gap: 9px;
    padding: 13px 15px;
    background: #fafbfd;
    border: 1px solid #e9edf3;
    border-radius: 11px;
}

.assignment-edit-info-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #8793a4;
    font-size: .71rem;
    font-weight: 650;
}

.assignment-edit-info-label i {
    color: #9aa7b8;
    font-size: .85rem;
}

.assignment-edit-info-value {
    overflow-wrap: anywhere;
    color: #293b53;
    font-size: .86rem;
    font-weight: 750;
    line-height: 1.35;
}

.assignment-edit-info-value--mono {
    color: #52647b;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .81rem;
}

.assignment-edit-method {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #176e4a;
    font-size: .81rem;
    font-weight: 740;
}

.assignment-edit-method i {
    font-size: .9rem;
}

.assignment-edit-protection-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 15px;
    padding: 12px 14px;
    background: #f1f6fd;
    border: 1px solid #e0ebf9;
    border-radius: 10px;
}

.assignment-edit-protection-note__icon {
    display: grid;
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    place-items: center;
    color: #2863b3;
    background: #e2edfc;
    border-radius: 8px;
}

.assignment-edit-protection-note p {
    margin: 1px 0 0;
    color: #657993;
    font-size: .75rem;
    line-height: 1.55;
}

.assignment-edit-protection-note strong {
    color: #345b8d;
}

/* Paper selection form */
.assignment-edit-form {
    margin: 0;
}

.assignment-edit-select-panel {
    padding: 19px;
    background: #f8fbf9;
    border: 1px solid #e1eee6;
    border-radius: 13px;
}

.assignment-edit-select-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    color: #2d3d53;
    font-size: .83rem;
    font-weight: 750;
}

.assignment-edit-required {
    color: #9aa5b4;
    font-size: .68rem;
    font-weight: 600;
}

.assignment-edit-select-wrap {
    position: relative;
}

.assignment-edit-select {
    display: block;
    width: 100%;
    min-height: 52px;
    padding: 12px 45px 12px 48px;
    color: #344256;
    background: #fff;
    border: 1px solid #d8e3dc;
    border-radius: 10px;
    outline: none;
    font-size: .85rem;
    appearance: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.assignment-edit-select:focus {
    border-color: #5fa982;
    box-shadow: 0 0 0 3px rgba(37,149,99,.13);
}

.assignment-edit-select-leading,
.assignment-edit-select-chevron {
    position: absolute;
    top: 50%;
    z-index: 1;
    color: #81918a;
    transform: translateY(-50%);
    pointer-events: none;
}

.assignment-edit-select-leading {
    left: 16px;
    color: #268254;
    font-size: 1rem;
}

.assignment-edit-select-chevron {
    right: 16px;
    font-size: .75rem;
}

.assignment-edit-select-hint {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-top: 10px;
    color: #718b7c;
    font-size: .72rem;
    line-height: 1.5;
}

.assignment-edit-select-hint i {
    flex: 0 0 auto;
    margin-top: 1px;
    color: #23915d;
}

/* Actions */
.assignment-edit-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
    padding-top: 17px;
    border-top: 1px solid #edf0f5;
}

.assignment-edit-action-note {
    display: inline-flex;
    align-items: flex-start;
    gap: 7px;
    color: #929eae;
    font-size: .72rem;
    line-height: 1.45;
}

.assignment-edit-action-note i {
    flex: 0 0 auto;
    margin-top: 1px;
    color: #c08a35;
}

.assignment-edit-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.assignment-edit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: .79rem;
    font-weight: 730;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.assignment-edit-button:hover {
    transform: translateY(-1px);
}

.assignment-edit-button--cancel {
    color: #5d6b7e;
    background: #fff;
    border-color: #dce3eb;
}

.assignment-edit-button--cancel:hover {
    color: #35445a;
    background: #f7f9fc;
    border-color: #cbd5e1;
}

.assignment-edit-button--save {
    color: #fff;
    background: #1d8756;
    box-shadow: 0 5px 12px rgba(29,135,86,.16);
}

.assignment-edit-button--save:hover {
    background: #126f45;
    box-shadow: 0 7px 16px rgba(29,135,86,.22);
}

/* Footer */
.assignment-edit-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 21px;
    padding-top: 17px;
    border-top: 1px solid #e6ebf2;
}

.assignment-edit-footer a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #49627f;
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
}

.assignment-edit-footer a:hover {
    color: var(--edit-primary);
}

.assignment-edit-footer > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #9aa5b4;
    font-size: .69rem;
}

/* Responsive */
@media (max-width: 700px) {
    .assignment-edit-page {
        padding: 18px 13px 34px;
    }

    .assignment-edit-hero {
        padding: 19px 19px 22px;
        border-radius: 17px;
    }

    .assignment-edit-breadcrumb {
        margin-bottom: 22px;
    }

    .assignment-edit-hero__icon {
        flex-basis: 60px;
        width: 60px;
        height: 60px;
        border-radius: 17px;
        font-size: 1.8rem;
    }

    .assignment-edit-hero h1 {
        font-size: 1.55rem;
    }

    .assignment-edit-hero__copy > p {
        font-size: .82rem;
    }

    .assignment-edit-card {
        padding: 18px 15px;
    }

    .assignment-edit-info-grid {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .assignment-edit-info-item {
        min-height: 72px;
    }

    .assignment-edit-action-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .assignment-edit-actions {
        width: 100%;
    }

    .assignment-edit-button {
        flex: 1;
    }

    .assignment-edit-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 430px) {
    .assignment-edit-hero__icon {
        display: none;
    }

    .assignment-edit-card__heading {
        align-items: flex-start;
    }

    .assignment-edit-readonly {
        padding: 6px 8px;
        font-size: .63rem;
    }

    .assignment-edit-select-panel {
        padding: 14px 12px;
    }

    .assignment-edit-select {
        font-size: .78rem;
    }
}
