body {
    font-family: "Manrope", sans-serif;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.surface-card {
    border: 1px solid #d7dfda;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 28px;
    box-shadow: 0 18px 50px rgba(16, 21, 20, 0.06);
}

.surface-soft {
    border: 1px solid #e6ece8;
    background: #f8faf8;
    border-radius: 22px;
}

.section-kicker {
    color: #123c2f;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.field-label {
    display: block;
    margin-bottom: 0.55rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #34423c;
}

.field-input,
.field-select,
.field-textarea,
.field-file {
    width: 100%;
    border: 1px solid #d7dfda;
    border-radius: 18px;
    background: #ffffff;
    padding: 0.9rem 1rem;
    color: #101514;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus,
.field-file:focus {
    border-color: #123c2f;
    box-shadow: 0 0 0 4px rgba(18, 60, 47, 0.08);
}

.btn-primary,
.btn-secondary,
.btn-muted {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.85rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 800;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.btn-primary {
    background: #123c2f;
    color: #ffffff;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-muted:hover {
    transform: translateY(-1px);
}

.btn-secondary {
    background: #101514;
    color: #ffffff;
}

.btn-muted {
    background: #eef2ef;
    color: #123c2f;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #eef2ef;
    padding: 0.45rem 0.8rem;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #355349;
    text-align: center;
}

.status-pill-compact {
    max-width: 10.5rem;
    min-height: 2.6rem;
    padding: 0.55rem 0.9rem;
    line-height: 1.2;
    flex-shrink: 0;
}

.student-assignment-card {
    overflow: hidden;
    min-height: 18.5rem;
    max-height: 18.5rem;
}

.student-assignment-card .line-clamp-3 {
    min-height: 4.5rem;
}

.student-assignment-meta {
    align-items: end;
}

.menu-trigger {
    box-shadow: 0 8px 24px rgba(16, 21, 20, 0.06);
}

.menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.75rem);
    min-width: 12rem;
    border: 1px solid #d7dfda;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 40px rgba(16, 21, 20, 0.12);
    padding: 0.5rem;
    z-index: 30;
}

.menu-item {
    display: flex;
    align-items: center;
    width: 100%;
    border-radius: 14px;
    padding: 0.85rem 0.95rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: #123c2f;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.menu-item:hover {
    background: #eef2ef;
    color: #0d3025;
}

.pdf-preview-frame {
    width: 100%;
    min-height: 540px;
    border: 1px solid #d7dfda;
    border-radius: 18px;
    background: #ffffff;
}

.student-pdf-frame {
    min-height: 720px;
}

.search-select-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.65rem);
    margin-top: 0.65rem;
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid #d7dfda;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 16px 35px rgba(16, 21, 20, 0.08);
    z-index: 25;
}

.search-select-option {
    display: flex;
    width: 100%;
    padding: 0.95rem 1rem;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 700;
    color: #101514;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.search-select-option + .search-select-option {
    border-top: 1px solid #eef2ef;
}

.search-select-option:hover,
.search-select-option.is-active {
    background: #eef2ef;
    color: #123c2f;
}

.student-filter-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: 1.3fr 0.7fr;
    align-items: start;
}

[data-search-select],
[data-class-search-select] {
    position: relative;
}

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

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