:root {
    --bg: #f3f6fb;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --border: #d7e0ea;
    --text: #19324d;
    --muted: #6b7d90;
    --primary: #0e7490;
    --primary-dark: #0b5f76;
    --secondary: #d97706;
    --danger: #b91c1c;
    --success: #15803d;
    --warning: #b45309;
    --shadow: 0 18px 40px rgba(20, 54, 88, 0.12);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 15px;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background: var(--bg);
}

body.modal-open {
    overflow: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
}

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

h1, h2, h3, h4, p {
    margin-top: 0;
}

ul {
    margin: 0;
    padding-left: 18px;
}

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

.muted,
.note-text,
.table .muted,
.progress-line small {
    color: var(--muted);
    font-size: 0.92rem;
}

.note-text {
    margin-top: 8px;
}

.form-help {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    line-height: 1.5;
}

.form-help-danger {
    color: var(--danger);
    font-size: 0.82rem;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), #15a3c5);
    color: #fff;
    padding: 12px 18px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(14, 116, 144, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.button:disabled,
.button-disabled {
    cursor: not-allowed;
    opacity: 0.62;
    transform: none;
    box-shadow: none;
}

.button:disabled:hover,
.button-disabled:hover {
    transform: none;
}

.button-light {
    background: #e8f7fb;
    color: var(--primary-dark);
    box-shadow: none;
}

.button-danger {
    background: linear-gradient(135deg, var(--danger), #dc2626);
}

.button.full {
    width: 100%;
}

.button-small {
    padding: 8px 12px;
    font-size: 0.88rem;
    border-radius: 10px;
    box-shadow: none;
}

.preview-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #e0f2fe, #dbeafe);
    border: 1px solid #93c5fd;
    color: #1d4ed8;
    font-weight: 700;
    font-size: 0.84rem;
    white-space: nowrap;
}

.preview-chip:hover {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.text-link {
    display: inline-block;
    margin-top: 12px;
}

.button-link {
    background: none;
    border: 0;
    color: var(--primary);
    padding: 0;
    cursor: pointer;
}

.button-link.danger {
    color: var(--danger);
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.badge-success {
    background: #dcfce7;
    color: var(--success);
}

.badge-warning {
    background: #ffedd5;
    color: var(--warning);
}

.badge-danger {
    background: #fee2e2;
    color: var(--danger);
}

.badge-secondary {
    background: #e2e8f0;
    color: #475569;
}

.alerts {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.alert {
    border-radius: 14px;
    padding: 14px 18px;
    border: 1px solid transparent;
}

.alert-success {
    background: #ecfdf5;
    color: #166534;
    border-color: #bbf7d0;
}

.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border-color: #fde68a;
}

.pwa-install-banner {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 180;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #cce8e5;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.2);
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.pwa-install-banner.show {
    opacity: 1;
    transform: translateY(0);
}

.pwa-install-banner__icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #dff5f3;
    color: #0f766e;
}

.pwa-install-banner__icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.pwa-install-banner__copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.pwa-install-banner__copy strong {
    color: #0f172a;
    font-size: 0.92rem;
    line-height: 1.2;
}

.pwa-install-banner__copy span {
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.35;
}

.pwa-install-banner__action,
.pwa-install-banner__close {
    border: 0;
    box-shadow: none;
    transform: none;
}

.pwa-install-banner__action {
    min-height: 40px;
    padding: 0 12px;
    border-radius: 12px;
    background: #0f766e;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
}

.pwa-install-banner__close {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #f1f5f9;
    color: #334155;
    font-size: 1.5rem;
    line-height: 1;
}

.pwa-install-banner__action:hover,
.pwa-install-banner__action:focus {
    background: #0d9488;
    transform: none;
}

.pwa-install-banner__close:hover,
.pwa-install-banner__close:focus {
    background: #e2e8f0;
    transform: none;
}

.default-password-alert {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding: 18px 20px;
    border-color: #f59e0b;
    border-left: 8px solid #dc2626;
    background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 48%, #fee2e2 100%);
    color: #7c2d12;
    box-shadow: 0 18px 40px rgba(220, 38, 38, 0.14);
}

.default-password-alert--student {
    border-width: 2px;
    border-left-width: 8px;
}

.default-password-alert__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #dc2626;
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 900;
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.25);
}

.default-password-alert__body {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.default-password-alert__body strong {
    color: #7f1d1d;
    font-size: 1.02rem;
}

.default-password-alert__body span {
    color: #92400e;
    font-weight: 700;
    line-height: 1.45;
}

.default-password-alert__action {
    background: linear-gradient(135deg, #dc2626, #f97316);
    color: #ffffff;
    white-space: nowrap;
}

.public-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(243, 246, 251, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(215, 224, 234, 0.85);
}

.public-nav,
.topbar,
.hero-section,
.login-panel {
    display: flex;
    gap: 24px;
}

.public-nav {
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.brand,
.sidebar-brand a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
}

.brand-mark,
.sidebar-brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0f766e, #0ea5e9);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.brand strong,
.sidebar-brand strong {
    display: block;
    font-size: 1rem;
}

.brand small,
.sidebar-brand small,
.topbar p,
.sidebar-user small {
    color: var(--muted);
    display: block;
}

.public-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.public-main {
    padding: 0px 0 48px;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #dff5fb;
    color: var(--primary-dark);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-section {
    margin: 0 0 44px;
}
}

.hero-copy,
.hero-slider {
    flex: 1;
}

.hero-copy {
    background: linear-gradient(160deg, #e8fbff, #fdf6e8);
    border-radius: 28px;
    padding: 42px;
    box-shadow: var(--shadow);
}

.hero-copy h1 {
    font-size: clamp(2rem, 3vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 18px;
}

.hero-copy p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-slider {
    position: relative;
    min-height: 420px;
}

.slide {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.slide.active {
    opacity: 1;
    transform: translateY(0);
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    inset: auto 24px 24px 24px;
    background: rgba(15, 23, 42, 0.62);
    color: #fff;
    padding: 22px;
    border-radius: 22px;
}

.section {
    margin-bottom: 44px;
}

.section-heading {
    margin-bottom: 18px;
}

.section-heading h2 {
    margin-bottom: 0;
    font-size: clamp(1.6rem, 2vw, 2.3rem);
}

.card-grid,
.sop-grid,
.panel-grid,
.stats-grid,
.cards-grid,
.three-grid {
    display: grid;
    gap: 20px;
}

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

.content-card,
.sop-card,
.agenda-item,
.panel,
.stat-card,
.document-card,
.validation-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.content-card,
.sop-card,
.stat-card {
    padding: 24px;
}

.content-card h3,
.sop-card h3 {
    margin-bottom: 12px;
}

.content-card p:last-child {
    margin-bottom: 0;
}

.announcement-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 14px;
    background: #e2e8f0;
}

.announcement-image-detail {
    max-height: 360px;
}

.meta {
    color: var(--secondary);
    font-size: 0.86rem;
    font-weight: 700;
}

.announcement-detail {
    margin-bottom: 22px;
    padding: 28px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.announcement-detail-body {
    color: var(--text);
    line-height: 1.8;
}

.announcement-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.sop-section {
    position: relative;
}

.sop-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.sop-heading__badge {
    display: inline-grid;
    gap: 4px;
    min-width: 240px;
    padding: 16px 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, #eff8ff, #ecfeff);
    border: 1px solid #c8ddf3;
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.06);
}

.sop-heading__badge strong {
    color: #0f172a;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sop-heading__badge span {
    color: #4b647d;
    font-size: 0.9rem;
}

.sop-hero-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.95fr);
    gap: 22px;
    margin-bottom: 22px;
    padding: 30px 32px;
    border-radius: 30px;
    overflow: hidden;
    background: linear-gradient(135deg, #0f4c81 0%, #0f766e 55%, #22c55e 130%);
    color: #ffffff;
    box-shadow: 0 28px 50px rgba(15, 23, 42, 0.16);
}

.sop-hero-card::before,
.sop-hero-card::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.sop-hero-card::before {
    width: 220px;
    height: 220px;
    right: -70px;
    top: -60px;
}

.sop-hero-card::after {
    width: 170px;
    height: 170px;
    right: 120px;
    bottom: -75px;
}

.sop-hero-card__copy,
.sop-hero-card__stats {
    position: relative;
    z-index: 1;
}

.sop-hero-card__label {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sop-hero-card h3 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: clamp(1.5rem, 2vw, 2.15rem);
    line-height: 1.25;
}

.sop-hero-card p {
    margin: 0;
    max-width: 62ch;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.sop-hero-card__stats {
    display: grid;
    gap: 14px;
}

.sop-hero-stat {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
}

.sop-hero-stat strong {
    font-size: 1.8rem;
    line-height: 1;
}

.sop-hero-stat span {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.9rem;
}

.sop-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.sop-card {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    padding: 24px;
    border-radius: 26px;
    border: 1px solid #d6e2ef;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.sop-card::after {
    content: "";
    position: absolute;
    right: -34px;
    bottom: -44px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.08);
}

.sop-card__header,
.sop-card__focus,
.sop-steps {
    position: relative;
    z-index: 1;
}

.sop-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.sop-card__phase {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    margin-bottom: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sop-card__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    height: 54px;
    padding: 0 12px;
    border-radius: 18px;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.sop-card h3 {
    margin: 0;
    font-size: 1.45rem;
    line-height: 1.25;
}

.sop-card__focus {
    display: grid;
    gap: 4px;
    margin-bottom: 18px;
    padding: 15px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.sop-card__focus span {
    color: #5b7088;
    font-size: 0.77rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sop-card__focus strong {
    color: #0f172a;
    font-size: 0.98rem;
    line-height: 1.55;
}

.sop-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.sop-steps li {
    display: grid;
    grid-template-columns: 36px 1fr;
    align-items: flex-start;
    gap: 12px;
}

.sop-step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1;
}

.sop-steps li span:last-child {
    color: #17324d;
    line-height: 1.7;
}

.sop-card--1 {
    background: linear-gradient(180deg, #ffffff 0%, #eef7ff 100%);
}

.sop-card--1 .sop-card__phase,
.sop-card--1 .sop-step__number {
    background: rgba(14, 116, 144, 0.12);
    color: #0f5a73;
}

.sop-card--1 .sop-card__number {
    background: #dff5fb;
    color: #0f4c81;
}

.sop-card--2 {
    background: linear-gradient(180deg, #ffffff 0%, #f6fbf1 100%);
}

.sop-card--2 .sop-card__phase,
.sop-card--2 .sop-step__number {
    background: rgba(34, 197, 94, 0.12);
    color: #166534;
}

.sop-card--2 .sop-card__number {
    background: #e8f9ea;
    color: #15803d;
}

.sop-card--3 {
    background: linear-gradient(180deg, #ffffff 0%, #f8f6ff 100%);
}

.sop-card--3 .sop-card__phase,
.sop-card--3 .sop-step__number {
    background: rgba(99, 102, 241, 0.12);
    color: #4338ca;
}

.sop-card--3 .sop-card__number {
    background: #ece9ff;
    color: #4f46e5;
}

.sop-footnote {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 22px;
    padding: 18px 20px;
    border-radius: 22px;
    background: linear-gradient(135deg, #f8fcff, #eef7ff);
    border: 1px solid #d9e7f5;
    box-shadow: 0 16px 26px rgba(15, 23, 42, 0.05);
}

.sop-footnote__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, #0ea5e9, #0f766e);
    color: #ffffff;
}

.sop-footnote__icon svg {
    width: 24px;
    height: 24px;
}

.sop-footnote strong {
    display: block;
    margin-bottom: 4px;
    color: #0f172a;
}

.sop-footnote p {
    margin: 0;
    color: #4b647d;
    line-height: 1.7;
}

.agenda-list {
    display: grid;
    gap: 16px;
}

.agenda-item {
    padding: 18px;
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 18px;
}

.agenda-date {
    border-radius: 18px;
    background: linear-gradient(135deg, #0f766e, #0ea5e9);
    color: #fff;
    padding: 16px;
    text-align: center;
}

.agenda-date strong {
    display: block;
    font-size: 2rem;
}

.public-footer {
    background: linear-gradient(180deg, #10243a, #0f172a);
    color: #e2e8f0;
    padding-top: 42px;
}

.footer-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.public-footer a {
    color: #bae6fd;
}

.footer-copy {
    text-align: center;
    padding: 20px 0;
    margin-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.login-section {
    min-height: calc(100vh - 220px);
    display: flex;
    align-items: center;
}

.login-panel {
    width: 100%;
    align-items: stretch;
}

.login-copy,
.auth-card {
    flex: 1;
    background: var(--surface);
    border-radius: 24px;
    padding: 34px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.login-copy {
    background: linear-gradient(160deg, #fff8eb, #effbff);
}

.role-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.role-tags span {
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border);
}

.form-grid,
.filter-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group span {
    font-weight: 700;
    font-size: 0.94rem;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface-soft);
    color: var(--text);
}

textarea {
    resize: vertical;
}

.full-width {
    grid-column: 1 / -1;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.form-submit {
    display: flex;
    align-items: end;
}

.narrow-form {
    max-width: 760px;
}

.app-shell {
    display: flex;
    align-items: stretch;
    min-height: 100vh;
    position: relative;
}

.sidebar {
    width: 260px;
    flex: 0 0 260px;
    background: linear-gradient(180deg, #102b45, #0f172a);
    color: #dbeafe;
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 0;
    align-self: flex-start;
    min-height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    transition: width 0.28s ease, flex-basis 0.28s ease, padding 0.28s ease, opacity 0.22s ease, transform 0.28s ease;
}

.sidebar-brand a {
    color: #fff;
    gap: 10px;
}

.sidebar-brand strong {
    font-size: 0.94rem;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-user-avatar,
.profile-avatar {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    overflow: hidden;
}

.profile-avatar.large {
    width: 96px;
    height: 96px;
    margin: 0 auto 18px;
}

.sidebar-user-avatar img,
.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-nav {
    display: grid;
    gap: 6px;
    flex: 1 1 auto;
    align-content: start;
    overflow-y: auto;
    padding-right: 6px;
    margin-right: -6px;
}

.sidebar-nav::-webkit-scrollbar {
    width: 8px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(186, 230, 253, 0.28);
    border-radius: 999px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    color: #dbeafe;
    transition: background 0.2s ease;
    font-size: 0.93rem;
}

.sidebar-nav a.active,
.sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.12);
}

.menu-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.64rem;
    font-weight: 800;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.42);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
    z-index: 24;
}

.app-main {
    flex: 1;
    min-width: 0;
}

.topbar {
    position: relative;
    z-index: 40;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.notification-shell {
    position: relative;
}

.notification-toggle {
    position: relative;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 16px;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.notification-bell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.notification-bell svg {
    width: 24px;
    height: 24px;
}

.notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--danger), #ef4444);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg);
}

.notification-panel {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: min(420px, calc(100vw - 36px));
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 22px 50px rgba(20, 54, 88, 0.18);
    padding: 18px;
    display: none;
    z-index: 32;
}

.notification-shell.open .notification-panel {
    display: block;
}

.notification-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid #edf2f7;
}

.notification-panel-head h2 {
    margin-bottom: 6px;
    font-size: 1.05rem;
}

.notification-panel-head p {
    margin-bottom: 0;
}

.notification-list {
    display: grid;
    gap: 12px;
    max-height: 420px;
    overflow-y: auto;
}

.notification-item {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff, #f8fbfe);
    border: 1px solid #e2e8f0;
    color: inherit;
}

.notification-item:hover {
    border-color: #7dd3fc;
    background: linear-gradient(180deg, #f9fcff, #eef8ff);
}

.notification-item.is-read {
    background: #f8fafc;
    border-color: #e5e7eb;
    opacity: 0.78;
}

.notification-item.is-read .notification-marker {
    background: linear-gradient(135deg, #94a3b8, #cbd5e1);
}

.notification-marker {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), #38bdf8);
    color: #fff;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.notification-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.notification-copy strong,
.notification-copy span,
.notification-copy small {
    display: block;
}

.notification-copy span {
    color: var(--text);
    line-height: 1.45;
}

.notification-copy small {
    color: var(--muted);
}

.notification-empty {
    padding: 22px;
}

.notification-panel-foot {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #edf2f7;
    text-align: center;
}

.notification-panel-foot a {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.92rem;
}

.notification-panel-foot a:hover {
    text-decoration: underline;
}

.announcement-dashboard-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.announcement-dashboard-item {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #f8fafc;
}

.announcement-dashboard-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 12px;
    background: #e2e8f0;
}

.announcement-dashboard-item h3 {
    margin: 6px 0 8px;
    font-size: 1rem;
}

.announcement-dashboard-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.announcement-dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.user-menu-shell {
    position: relative;
}

.login-as-form label {
    display: grid;
    gap: 5px;
    min-width: 230px;
}

.login-as-form span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.login-as-form select,
.login-as-form input[type="search"] {
    width: 100%;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    font-weight: 700;
    padding: 0 12px;
    box-shadow: 0 10px 24px rgba(20, 54, 88, 0.08);
}

.login-as-form input[type="search"] {
    padding-right: 40px;
}

.login-as-form select {
    appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23334855' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px 16px;
    padding-right: 38px;
}

.login-as-form input[type="search"] {
    min-width: 270px;
}

.searchable-select {
    position: relative;
}

.searchable-select__clear {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #e5edf6;
    color: #334155;
    cursor: pointer;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    transform: translateY(-50%);
}

.searchable-select__clear:hover,
.searchable-select__clear:focus {
    background: #cbd5e1;
    color: #0f172a;
    transform: translateY(-50%);
}

.searchable-select__panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    max-height: 280px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(20, 54, 88, 0.18);
    z-index: 95;
}

.searchable-select.open .searchable-select__panel {
    display: grid;
    gap: 4px;
}

.searchable-select__option {
    width: 100%;
    min-height: 38px;
    padding: 9px 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text);
    box-shadow: none;
    text-align: left;
    justify-content: flex-start;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
}

.searchable-select__option:hover,
.searchable-select__option:focus {
    background: #eff6ff;
    color: var(--primary-dark);
    transform: none;
    outline: none;
    box-shadow: none;
}

.searchable-select__empty {
    padding: 12px;
    color: var(--muted);
    font-size: 0.88rem;
    text-align: center;
}

.user-menu-toggle {
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), #38bdf8);
    color: #fff;
    box-shadow: var(--shadow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    font-weight: 800;
    font-size: 1rem;
}

.user-menu-toggle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.user-menu-panel {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: 230px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 22px 50px rgba(20, 54, 88, 0.18);
    padding: 10px;
    display: none;
    z-index: 80;
}

.user-menu-shell.open .user-menu-panel {
    display: block;
}

.user-menu-head {
    display: grid;
    gap: 3px;
    padding: 10px 12px 12px;
    margin-bottom: 6px;
    border-bottom: 1px solid #edf2f7;
}

.user-menu-head strong,
.user-menu-head small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-head small {
    color: var(--muted);
}

.user-menu-panel a {
    display: block;
    padding: 11px 12px;
    border-radius: 12px;
    color: var(--text);
    font-weight: 700;
}

.user-menu-panel a:hover {
    background: #f1f7fb;
    color: var(--primary-dark);
}

.user-menu-panel a.danger {
    color: #b91c1c;
}

.user-menu-panel a.danger:hover {
    background: #fee2e2;
}

.topbar h1 {
    margin-bottom: 4px;
    font-size: 1.75rem;
}

.sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow);
    color: #102b45;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.sidebar-toggle:hover {
    background: #eff6ff;
    transform: translateY(-1px);
}

.sidebar-toggle:focus-visible {
    outline: 3px solid rgba(14, 165, 233, 0.22);
    outline-offset: 2px;
}

.sidebar-toggle-lines {
    display: grid;
    gap: 4px;
}

.sidebar-toggle-lines span {
    display: block;
    width: 20px;
    height: 2.5px;
    border-radius: 999px;
    background: currentColor;
}

@media (min-width: 1101px) {
    .app-shell.sidebar-collapsed .sidebar {
        width: 0;
        flex-basis: 0;
        padding-left: 0;
        padding-right: 0;
        opacity: 0;
        transform: translateX(-28px);
        pointer-events: none;
    }

    .app-shell.sidebar-collapsed .sidebar > * {
        opacity: 0;
    }
}

.content {
    padding: 0 28px 28px;
}

.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-bottom: 20px;
}

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

.stat-card {
    background: linear-gradient(180deg, #ffffff, #f8fbfe);
    min-width: 0;
}

.stat-card-highlight {
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    border-color: rgba(15, 118, 110, 0.18);
    color: #ffffff;
    box-shadow: 0 24px 48px rgba(15, 118, 110, 0.24);
    position: relative;
    overflow: hidden;
}

.stat-card-highlight::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}

.stat-card-highlight .stat-label,
.stat-card-highlight p {
    color: rgba(255, 255, 255, 0.92);
}

.stat-card-highlight strong {
    color: #ffffff;
    font-size: 2.15rem;
}

.stat-card-highlight .stat-label {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.stat-card-highlight p {
    max-width: 28ch;
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.stats-grid-student .stat-card-highlight {
    grid-column: 1 / -1;
}

.student-profile-alert {
    margin-top: 6px;
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) auto;
    gap: 22px;
    align-items: center;
    padding: 28px 30px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 34%),
        linear-gradient(135deg, #0f4c81, #0f766e 58%, #14b8a6);
    border: 1px solid rgba(15, 118, 110, 0.18);
    color: #ffffff;
    overflow: hidden;
    position: relative;
}

.student-profile-alert::after {
    content: "";
    position: absolute;
    right: -46px;
    bottom: -70px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.student-profile-alert__content,
.student-profile-alert__actions {
    position: relative;
    z-index: 1;
}

.student-profile-alert__eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.94);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.student-profile-alert h2 {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 1.75rem;
}

.student-profile-alert p {
    margin: 0;
    max-width: 62ch;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.7;
}

.student-profile-alert__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.student-profile-alert__actions .button {
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
}

.student-profile-alert__actions .button.button-light {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.24);
}

.student-profile-alert__actions .button.button-light:hover,
.student-profile-alert__actions .button.button-light:focus {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.stat-label {
    color: var(--muted);
    display: block;
    margin-bottom: 14px;
    font-size: 0.9rem;
}

.stat-card strong {
    display: block;
    font-size: 2rem;
    margin-bottom: 10px;
}

.panel-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    margin-bottom: 20px;
}

.single-panel {
    margin-bottom: 20px;
}

.panel {
    padding: 22px;
    min-width: 0;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    min-width: 0;
}

.panel-header.align-start {
    align-items: flex-start;
}

.panel-title-stack h2,
.panel-title-stack h3 {
    margin-bottom: 6px;
}

.panel-title-stack p {
    margin-bottom: 0;
    color: var(--muted);
}

.toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.table-toolbar {
    margin-bottom: 18px;
}

.stack-layout {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}

.form-panel-shell {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: linear-gradient(180deg, #fbfdff, #f4f9fd);
    padding: 22px;
}

.subsection-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}

.table-responsive {
    overflow-x: auto;
    max-width: 100%;
    min-width: 0;
}

.validation-toolbar {
    margin-bottom: 14px;
}

.table-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.summary-pill {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-weight: 600;
    font-size: 0.92rem;
}

.student-import-progress {
    display: grid;
    gap: 12px;
    padding: 16px;
    margin-bottom: 18px;
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    background: #f0fdf4;
}

.student-import-progress__header,
.student-import-progress__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.student-import-progress__header strong {
    display: block;
    color: #14532d;
}

.student-import-progress__header span,
.student-import-progress__meta {
    color: #166534;
    font-size: 0.92rem;
    font-weight: 600;
}

.student-import-progress__track {
    height: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: #dcfce7;
    border: 1px solid #86efac;
}

.student-import-progress__track span {
    display: block;
    height: 100%;
    min-width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #16a34a, #22c55e);
}

.validation-filter {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: linear-gradient(180deg, #fbfdff, #f4f9fd);
    margin-bottom: 20px;
}

.validation-filter .form-submit {
    align-items: center;
}

.finance-recap-filter {
    grid-template-columns: minmax(220px, 1.3fr) minmax(180px, 1fr) minmax(180px, 1fr) minmax(150px, 0.8fr) minmax(110px, 0.5fr);
}

.validation-table-wrap {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
}

.validation-table {
    min-width: 980px;
}

.validation-table th {
    background: #f8fbff;
    white-space: nowrap;
}

.validation-table td {
    white-space: nowrap;
}

.validation-table td:nth-child(2),
.validation-table td:nth-child(4),
.validation-table td:nth-child(5) {
    white-space: normal;
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 660px;
}

.table th,
.table td {
    padding: 14px 12px;
    border-bottom: 1px solid #edf2f7;
    text-align: left;
    vertical-align: top;
}

.table th {
    color: var(--muted);
    font-size: 0.9rem;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.icon-only-button {
    width: 38px;
    min-width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-only-button svg {
    width: 18px;
    height: 18px;
}

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

.finance-quick-search {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #f8fbff;
}

.finance-quick-search .form-group {
    min-width: min(100%, 280px);
}

.finance-quick-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #f8fbff;
}

.finance-check-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.finance-select-column {
    width: 90px;
}

.loan-return-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 86px;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
}

.loan-return-status.is-returned {
    background: #dcfce7;
    color: var(--success);
}

.loan-return-status.is-not-returned {
    background: #fee2e2;
    color: var(--danger);
}

.loan-return-status span[aria-hidden="true"] {
    font-size: 1rem;
    line-height: 1;
}

.finance-quick-controls .form-group {
    min-width: 190px;
    margin-bottom: 0;
}

.finance-result-table th,
.finance-result-table td {
    text-align: center;
    vertical-align: middle;
}

.bank-statement-table {
    min-width: 1040px;
}

.match-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.match-legend span,
.match-score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.match-legend span {
    gap: 5px;
}

.match-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
}

.match-score-badge {
    min-width: 52px;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
}

.match-dot-high,
.match-score-high {
    background: #dcfce7;
    color: var(--success);
}

.match-dot-medium,
.match-score-medium {
    background: #dbeafe;
    color: #1d4ed8;
}

.match-dot-low,
.match-score-low {
    background: #ffedd5;
    color: var(--warning);
}

.match-dot-none,
.match-score-none {
    background: #e2e8f0;
    color: #475569;
}

.bank-statement-table tbody tr.match-row-high {
    background: #f0fdf4;
}

.bank-statement-table tbody tr.match-row-medium {
    background: #eff6ff;
}

.bank-statement-table tbody tr.match-row-low {
    background: #fff7ed;
}

.bank-statement-table tbody tr.match-row-none {
    background: #f8fafc;
}

.bank-statement-table tr:target {
    outline: 3px solid rgba(14, 165, 233, 0.45);
    outline-offset: -3px;
}

.bank-statement-history-active {
    background: #e0f2fe;
    box-shadow: inset 4px 0 0 var(--primary);
}

.bank-statement-history-active td {
    font-weight: 700;
}

.bank-statement-table td:nth-child(3),
.bank-statement-table td:nth-child(7) {
    min-width: 240px;
}

.bank-statement-table td:nth-child(3) {
    font-size: 0.88rem;
}

.bank-statement-table td:nth-child(3) strong {
    font-size: 0.9rem;
    line-height: 1.45;
}

.bank-statement-name-highlight {
    display: inline;
    padding: 1px 4px;
    border-radius: 5px;
    background: #fde68a;
    color: #78350f;
    font-weight: 900;
}

.bank-statement-slip {
    margin-top: 8px;
}

.bank-statement-slip .support-document-copy span {
    font-size: 0.82rem;
    line-height: 1.35;
}

.bank-statement-slip .support-document-copy small {
    font-size: 0.75rem;
}

.validation-done-note {
    display: block;
    margin-top: 8px;
    color: var(--success);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.35;
}

.validation-rejected-note {
    display: block;
    max-width: 170px;
    margin-top: 7px;
    color: var(--danger);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.35;
}

.manual-match-form {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) auto;
    gap: 6px;
    align-items: center;
    margin-top: 8px;
    max-width: 360px;
}

.manual-match-form input {
    height: 36px;
    padding: 7px 10px;
    border-radius: 10px;
    font-size: 0.78rem;
}

.manual-match-form .button {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 0.76rem;
}

.cancel-manual-match-form {
    margin-top: 7px;
}

.cancel-manual-match-form .button {
    min-height: 32px;
    padding: 6px 10px;
    color: var(--danger);
    font-size: 0.72rem;
}

.missing-slip-note {
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #fee2e2;
    color: var(--danger);
    font-size: 0.8rem;
    font-weight: 900;
}

.role-guide {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 22px;
    margin-bottom: 22px;
    padding: 26px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    color: #ffffff;
    box-shadow: 0 26px 48px rgba(15, 23, 42, 0.18);
}

.role-guide--admin {
    background: linear-gradient(135deg, #0f4c81 0%, #7c2d12 100%);
}

.role-guide--finance {
    background: linear-gradient(135deg, #14532d 0%, #0e7490 100%);
}

.role-guide--library {
    background: linear-gradient(135deg, #7c2d12 0%, #166534 100%);
}

.role-guide--career {
    background: linear-gradient(135deg, #3730a3 0%, #be123c 100%);
}

.role-guide--academic {
    background: linear-gradient(135deg, #0f766e 0%, #6d28d9 100%);
}

.role-guide--student {
    background: linear-gradient(135deg, #1d4ed8 0%, #15803d 100%);
}

.role-guide__label {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.94);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.role-guide h2 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 1.65rem;
    line-height: 1.25;
}

.role-guide p {
    max-width: 74ch;
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.7;
}

.role-guide__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.role-guide__actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 38px;
    padding: 9px 13px;
    border-radius: 12px;
    background: #ffffff;
    color: #12324f;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
}

.role-guide__actions a:hover {
    background: #e0f2fe;
}

.role-guide__tasks {
    min-width: 0;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.role-guide__tasks strong {
    display: block;
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 1rem;
}

.role-guide__tasks ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.role-guide__tasks li {
    position: relative;
    padding-left: 22px;
    color: rgba(255, 255, 255, 0.93);
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.role-guide__tasks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 9px;
    height: 9px;
    border-radius: 3px;
    background: #facc15;
    box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.18);
}

.finance-result-table th:nth-child(2),
.finance-result-table th:nth-child(3),
.finance-result-table th:nth-child(4),
.finance-result-table td:nth-child(2),
.finance-result-table td:nth-child(3),
.finance-result-table td:nth-child(4) {
    text-align: left;
}

.finance-status-icon {
    position: relative;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.86rem;
    line-height: 1;
}

.finance-status-wrap {
    display: inline-grid;
    justify-items: center;
    align-items: start;
    gap: 3px;
    max-width: 150px;
}

.finance-status-note {
    color: #dc2626;
    font-size: 0.64rem;
    line-height: 1.25;
    font-weight: 600;
    text-align: center;
}

.finance-status-action {
    margin-top: 4px;
    padding: 6px 10px;
    font-size: 0.72rem;
    line-height: 1;
    white-space: nowrap;
}

.finance-status-icon--ok {
    background: #dcfce7;
    color: #15803d;
}

.finance-status-icon--no {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #be123c;
    font-size: 0;
}

.finance-status-icon--no::before,
.finance-status-icon--no::after {
    content: "";
    position: absolute;
    width: 11px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.finance-status-icon--no::before {
    transform: rotate(45deg);
}

.finance-status-icon--no::after {
    transform: rotate(-45deg);
}

.empty-cell,
.empty-state {
    color: var(--muted);
    text-align: center;
    padding: 20px;
}

.timeline-card,
.list-card,
.profile-card,
.student-summary {
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px;
}

.timeline-card.success {
    background: #ecfdf5;
    border-color: #bbf7d0;
}

.simple-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 12px;
}

.simple-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--border);
}

.timeline-list {
    display: grid;
    gap: 14px;
}

.timeline-item {
    padding-left: 18px;
    border-left: 3px solid #bae6fd;
    min-width: 0;
}

.timeline-item strong,
.timeline-item p,
.timeline-item small {
    overflow-wrap: anywhere;
}

.import-box {
    margin-top: 24px;
    padding: 18px;
    border-radius: 16px;
    background: #f6fbff;
    border: 1px dashed #7dd3fc;
}

.inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.three-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

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

.document-meta,
.validation-meta {
    display: grid;
    gap: 6px;
    margin-bottom: 16px;
}

.document-warning-note {
    margin-top: 4px;
    color: #dc2626;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.35;
}

.support-document-row {
    display: grid;
    gap: 10px;
}

.support-document-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fbff, #eef7ff);
    border: 1px solid #dbeafe;
}

.support-document-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.support-document-copy span,
.support-document-copy small {
    display: block;
}

.support-document-copy span {
    font-weight: 700;
    color: var(--text);
    word-break: break-word;
}

.support-document-copy small {
    color: var(--muted);
}

.upload-file-list-shell {
    display: grid;
    gap: 12px;
}

.upload-file-list-header {
    display: grid;
    gap: 4px;
}

.upload-file-list-header strong {
    color: var(--text);
}

.upload-file-list-header small {
    color: var(--muted);
}

.upload-file-list {
    display: grid;
    gap: 10px;
}

.upload-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fbff, #eef7ff);
    border: 1px solid #dbeafe;
}

.compact-form {
    grid-template-columns: 1fr;
}

.thesis-link-group {
    padding: 16px;
    border: 1px solid #f59e0b;
    border-radius: 14px;
    background: #fff7ed;
}

.thesis-link-group[hidden] {
    display: none;
}

.thesis-link-group span {
    color: #9a3412;
}

.thesis-link-group input {
    border-color: #fb923c;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.16);
}

.thesis-link-group .form-help {
    margin-top: 2px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #ffedd5;
    color: #7c2d12;
    font-weight: 700;
}

.document-order-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.8rem;
    margin-right: 6px;
    color: var(--primary-dark);
    font-weight: 800;
}

.document-inline-preview-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.document-inline-preview-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fbff, #f1f8ff);
    border: 1px solid #dbeafe;
}

.document-inline-preview-item span {
    min-width: 0;
    font-size: 0.92rem;
    color: var(--text);
    word-break: break-word;
}

.document-submit-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    background: #eff6ff;
}

.document-submit-panel strong {
    display: block;
    color: var(--text);
    margin-bottom: 4px;
}

.document-submit-panel p {
    margin: 0;
    color: var(--muted);
}

.upload-locked-message,
.document-submit-body {
    padding: 20px 22px;
    color: var(--text);
    line-height: 1.6;
}

.upload-locked-message {
    margin: 20px 22px;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    background: #f0fdf4;
    color: #166534;
    font-weight: 700;
}

.document-submit-dialog {
    width: min(560px, 100%);
    grid-template-rows: auto auto auto;
}

.document-submit-body p {
    margin: 0;
}

.document-submit-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    padding: 18px 22px;
    border-top: 1px solid #e2e8f0;
}

.progress-line span,
.progress-line small {
    display: block;
}

.validation-items {
    display: grid;
    gap: 16px;
}

.pickup-report-table-wrap {
    max-height: 70vh;
}

.pickup-report-table {
    min-width: 1180px;
}

.pickup-report-table th,
.pickup-report-table td {
    vertical-align: middle;
}

.pickup-report-table .student-col {
    min-width: 210px;
}

.pickup-report-table .checklist-col {
    min-width: 118px;
    text-align: center;
}

.pickup-report-table .checklist-col span,
.pickup-report-table .checklist-col small {
    display: block;
}

.pickup-report-table .checklist-col span {
    font-size: 0.78rem;
    line-height: 1.25;
}

.pickup-report-table .checklist-col small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.68rem;
}

.pickup-report-table .status-cell {
    text-align: center;
}

.validation-mark {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    border: 2px solid currentColor;
    font-size: 1.18rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.validation-mark.is-valid {
    background: #bbf7d0;
    color: #15803d;
}

.validation-mark.is-missing {
    background: #fecaca;
    color: #b91c1c;
}

.thesis-report-table {
    min-width: 920px;
}

.thesis-report-table th,
.thesis-report-table td {
    vertical-align: middle;
}

.thesis-report-table .student-col {
    min-width: 230px;
}

.thesis-report-table .thesis-status-col,
.thesis-report-table .status-cell {
    min-width: 185px;
    text-align: center;
}

.thesis-status-icon {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}

.thesis-status-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.thesis-status-icon.is-valid {
    color: #15803d;
    background: linear-gradient(145deg, #f0fdf4, #bbf7d0);
}

.thesis-status-icon.is-missing {
    color: #b91c1c;
    background: linear-gradient(145deg, #fff1f2, #fecaca);
}

.thesis-status-caption {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.thesis-report-print-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.thesis-report-print-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.thesis-report-print-header {
    display: none;
}

@media print {
    @page {
        size: A4 portrait;
        margin: 10mm;
    }

    body {
        background: #fff !important;
        color: #111827;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .sidebar,
    .sidebar-overlay,
    .topbar,
    .mobile-menu-sheet,
    .mobile-bottom-nav,
    .alert,
    .thesis-report-print-button,
    .thesis-report-filter,
    .thesis-report-print-area .pagination-bar {
        display: none !important;
    }

    .app-shell,
    .app-main,
    .content {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .thesis-report-print-header {
        display: block;
        margin-bottom: 14px;
        text-align: center;
    }

    .thesis-report-print-header h1,
    .thesis-report-print-header p {
        margin: 0 0 4px;
    }

    .thesis-report-print-area .panel,
    .thesis-report-print-area .stat-card {
        border: 1px solid #cbd5e1;
        box-shadow: none !important;
    }

    .thesis-report-print-area .stat-card {
        break-inside: avoid;
    }

    .thesis-report-print-area .panel:last-of-type {
        break-inside: auto;
        page-break-inside: auto;
    }

    .thesis-report-print-area .panel:last-of-type .panel-header {
        break-after: avoid;
        page-break-after: avoid;
    }

    .thesis-report-print-area .panel:first-of-type {
        display: none;
    }

    .thesis-report-print-area .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        margin-bottom: 12px;
    }

    .thesis-report-print-area .stat-card {
        padding: 10px;
    }

    .thesis-report-print-area .stat-card p {
        display: none;
    }

    .thesis-report-print-area .table-responsive {
        max-height: none !important;
        overflow: visible !important;
    }

    .thesis-report-table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
        font-size: 7.5pt;
    }

    .thesis-report-table th,
    .thesis-report-table td {
        padding: 4px 3px;
        overflow-wrap: anywhere;
    }

    .thesis-report-table thead {
        display: table-header-group;
    }

    .thesis-report-table tr {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .thesis-report-table .student-col {
        width: 19%;
        min-width: 0;
    }

    .thesis-report-table .thesis-status-col,
    .thesis-report-table .status-cell {
        min-width: 0;
    }

    .thesis-status-icon {
        width: 25px;
        height: 25px;
        border-radius: 7px;
        box-shadow: none;
    }

    .thesis-status-icon svg {
        width: 15px;
        height: 15px;
    }

    .thesis-status-caption {
        margin-top: 3px;
        font-size: 6.5pt;
    }
}

.student-summary {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(420px, 1.2fr);
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
    padding: 18px 20px;
    border: 0;
    border-radius: 0;
    background:
        linear-gradient(90deg, rgba(15, 154, 184, 0.12), rgba(15, 118, 110, 0.05) 45%, rgba(255, 255, 255, 0)),
        #ffffff;
    box-shadow: inset 0 -1px 0 #dbeafe;
}

.student-summary__identity {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.student-summary__avatar {
    width: 52px;
    height: 52px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 999px;
    background: linear-gradient(135deg, #0f9ab8, #0f766e);
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 900;
}

.student-summary h3 {
    margin: 0 0 5px;
    color: #062447;
    font-size: 1.18rem;
    line-height: 1.25;
}

.student-summary p {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}

.student-summary__chips {
    display: grid;
    grid-template-columns: 1.15fr 1.45fr 0.7fr 0.7fr 0.7fr;
    gap: 0;
    align-items: stretch;
}

.summary-chip {
    display: grid;
    gap: 5px;
    min-height: 0;
    padding: 4px 16px;
    border: 0;
    border-left: 1px solid #dbeafe;
    border-radius: 0;
    background: transparent;
    color: #0f2847;
    font-weight: 800;
    line-height: 1.25;
}

.summary-chip:first-child {
    border-left: 0;
}

.summary-chip strong {
    color: #64748b;
    font-size: 0.74rem;
    text-transform: uppercase;
}

.summary-chip--success {
    color: #166534;
}

.summary-chip--warning {
    color: #9a3412;
}

.summary-chip--danger {
    color: #991b1b;
}

.chat-compose {
    margin-top: 6px;
}

.chat-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.6fr);
    gap: 20px;
    align-items: start;
}

.chat-thread-list {
    display: grid;
    gap: 10px;
}

.chat-thread-item {
    display: grid;
    gap: 5px;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #ffffff;
    color: inherit;
}

.chat-thread-item.active,
.chat-thread-item:hover {
    border-color: #7dd3fc;
    background: #eff6ff;
}

.chat-thread-item span,
.chat-thread-item small {
    color: var(--muted);
    overflow-wrap: anywhere;
}

.chat-room {
    min-width: 0;
}

.chat-message-list {
    display: grid;
    gap: 12px;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 6px;
}

.chat-message {
    width: min(78%, 620px);
    padding: 13px 15px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #f8fafc;
}

.chat-message.mine {
    justify-self: end;
    background: #ecfeff;
    border-color: #bae6fd;
}

.chat-message div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.chat-message small {
    color: var(--muted);
    white-space: nowrap;
}

.chat-message p {
    margin: 0;
    line-height: 1.55;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.chat-reply-form {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.chat-reply-form .button {
    justify-self: end;
}

.floating-chat {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 70;
}

.floating-chat__button {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #38bdf8);
    color: #ffffff;
    box-shadow: 0 18px 36px rgba(14, 116, 144, 0.28);
    cursor: pointer;
    font-weight: 900;
}

.floating-chat__button:hover {
    transform: translateY(-2px);
}

.floating-chat__panel {
    position: absolute;
    right: 0;
    bottom: 72px;
    width: min(360px, calc(100vw - 32px));
    display: none;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
}

.floating-chat.open .floating-chat__panel {
    display: block;
}

.floating-chat__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #eff6ff;
    border-bottom: 1px solid #dbeafe;
}

.floating-chat__header strong,
.floating-chat__header small {
    display: block;
}

.floating-chat__header small {
    color: var(--muted);
}

.floating-chat__header button {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: #ffffff;
    color: var(--primary-dark);
    box-shadow: none;
}

.floating-chat__form {
    display: grid;
    gap: 12px;
    padding: 16px;
}

.floating-chat__form label {
    display: grid;
    gap: 6px;
}

.floating-chat__form span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.floating-chat__form select,
.floating-chat__form input,
.floating-chat__form textarea {
    border-radius: 10px;
}

.mobile-bottom-nav {
    display: none;
}

.mobile-menu-sheet {
    display: none;
}

.mobile-bottom-nav__item {
    color: #64748b;
    text-decoration: none;
}

.mobile-bottom-nav__icon,
.mobile-bottom-nav__label {
    display: block;
}

.mobile-bottom-nav__icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.mobile-menu-grid__icon svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.pagination-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
}

.pagination-summary {
    color: var(--muted);
    font-weight: 600;
}

.pagination-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.pagination-link:hover,
.pagination-link:focus {
    transform: translateY(-1px);
    border-color: #7dd3fc;
    background: #f0f9ff;
    color: #0369a1;
}

.pagination-link.active {
    background: linear-gradient(135deg, var(--primary), #15a3c5);
    border-color: transparent;
    color: #fff;
}

.validation-card {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(360px, 1.2fr);
    gap: 14px 18px;
    align-items: start;
    padding: 16px;
}

.validation-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 14px;
    border: 1px solid #e5edf6;
    border-radius: 12px;
    background: #f8fbff;
}

.validation-card-head h3 {
    margin: 0 0 6px;
    font-size: 1rem;
    line-height: 1.3;
}

.validation-card-head p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.validation-card-head .badge {
    flex: 0 0 auto;
    align-self: flex-start;
    border-radius: 999px;
    padding: 7px 10px;
    white-space: nowrap;
}

.validation-card .validation-meta {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 14px;
    border: 1px solid #e5edf6;
    border-radius: 12px;
    background: #ffffff;
}

.validation-card .validation-meta p {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    margin: 0;
    color: var(--text);
    line-height: 1.45;
}

.validation-card .validation-meta strong,
.validation-card .support-document-row > strong {
    color: #0f2847;
}

.validation-card .support-document-row {
    gap: 6px;
    padding-top: 2px;
}

.validation-card .support-document-card {
    padding: 10px 12px;
}

.validation-card .compact-form {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: stretch;
    gap: 12px;
    padding: 14px;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: #f8fbff;
}

.validation-card .compact-form .form-group {
    gap: 6px;
}

.validation-card .compact-form select {
    height: 44px;
}

.validation-card .compact-form textarea {
    min-height: 96px;
}

.validation-card .form-actions {
    align-items: center;
    margin-top: 2px;
}

.validation-popup-page {
    background: #f8fafc;
}

.validation-popup-content {
    width: 100%;
    min-height: 100vh;
    padding: 8px;
}

.validation-popup-detail {
    margin: 0;
    box-shadow: none;
    border-radius: 12px;
    padding: 12px;
}

.validation-popup-detail .panel-header {
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.validation-popup-detail .panel-title-stack h2 {
    font-size: 1rem;
}

.validation-popup-detail .panel-title-stack p {
    font-size: 0.78rem;
    line-height: 1.35;
}

.validation-popup-detail .student-summary {
    grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.2fr);
    gap: 8px;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 12px;
}

.validation-popup-detail .student-summary__identity {
    gap: 8px;
}

.validation-popup-detail .student-summary__avatar {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
}

.validation-popup-detail .student-summary h3 {
    margin-bottom: 2px;
    font-size: 0.94rem;
    line-height: 1.25;
}

.validation-popup-detail .student-summary p {
    font-size: 0.76rem;
}

.validation-popup-detail .student-summary__chips {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.validation-popup-detail .summary-chip {
    gap: 2px;
    padding: 4px 8px;
    font-size: 0.78rem;
}

.validation-popup-detail .summary-chip strong {
    font-size: 0.62rem;
}

.validation-popup-detail .validation-items {
    gap: 8px;
}

.validation-popup-detail .validation-card {
    grid-template-columns: minmax(0, 0.95fr) minmax(260px, 1.05fr);
    gap: 8px 10px;
    padding: 10px;
    border-radius: 12px;
}

.validation-popup-detail .validation-card-head {
    gap: 8px;
}

.validation-popup-detail .validation-card-head h3 {
    margin-bottom: 3px;
    font-size: 0.9rem;
}

.validation-popup-detail .validation-card-head p {
    font-size: 0.76rem;
    line-height: 1.35;
}

.validation-popup-detail .validation-card-head .badge {
    padding: 5px 8px;
    font-size: 0.72rem;
}

.validation-popup-detail .validation-card .validation-meta {
    gap: 5px;
    padding: 9px;
    font-size: 0.76rem;
}

.validation-popup-detail .validation-card .validation-meta p {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 5px;
}

.validation-popup-detail .validation-card .support-document-card {
    padding: 7px 8px;
}

.validation-popup-detail .validation-card .compact-form {
    gap: 8px;
}

.validation-popup-detail .validation-card .compact-form .form-group {
    gap: 4px;
}

.validation-popup-detail .validation-card .compact-form .form-group span {
    font-size: 0.76rem;
}

.validation-popup-detail .validation-card .compact-form select {
    height: 38px;
    padding: 8px 10px;
    font-size: 0.84rem;
}

.validation-popup-detail .validation-card .compact-form textarea {
    min-height: 62px;
    padding: 8px 10px;
    font-size: 0.84rem;
}

.validation-popup-detail .validation-card .form-actions {
    margin-top: 0;
}

.validation-popup-detail .validation-card .form-actions .button {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 0.82rem;
}

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

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

    .summary-chip:nth-child(odd) {
        border-left: 0;
    }

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

    .validation-card .compact-form {
        grid-column: auto;
        grid-row: auto;
    }

    .validation-card .validation-meta p {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

@media (max-width: 560px) {
    .student-summary__identity {
        align-items: flex-start;
    }

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

    .summary-chip {
        border-left: 0;
        border-top: 1px solid #dbeafe;
        padding-left: 0;
    }

    .summary-chip:first-child {
        border-top: 0;
    }
}

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

.profile-card .simple-list li {
    text-align: left;
}

.fingerprint-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 22px;
}

.fingerprint-panel__icon {
    width: 62px;
    height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: #dff5f3;
    color: #0f766e;
}

.fingerprint-panel__icon svg {
    width: 34px;
    height: 34px;
    fill: currentColor;
}

.fingerprint-panel__copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.fingerprint-panel__copy strong {
    color: #0f172a;
    font-size: 1.05rem;
}

.fingerprint-panel__copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.fingerprint-panel__status {
    min-height: 18px;
    color: #0f766e;
    font-size: 0.86rem;
    font-weight: 700;
}

.fingerprint-panel__status.is-error {
    color: var(--danger);
}

.form-panel {
    padding: 20px;
}

.preview-modal,
.upload-modal {
    position: fixed;
    inset: 0;
    padding: 28px 20px;
    background: rgba(15, 23, 42, 0.56);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 60;
}

.preview-modal.open,
.upload-modal.open {
    display: flex;
}

.preview-dialog,
.upload-dialog {
    width: min(980px, 100%);
    max-height: calc(100vh - 56px);
    display: grid;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.24);
    overflow: hidden;
}

.preview-dialog {
    grid-template-rows: auto minmax(0, 1fr) auto;
}

.validation-popup-dialog {
    width: min(1040px, 100%);
    height: calc(100vh - 36px);
    grid-template-rows: auto minmax(0, 1fr);
}

.validation-popup-modal .preview-header {
    padding: 10px 14px;
}

.validation-popup-modal .preview-header h2 {
    font-size: 0.95rem;
}

.validation-popup-modal .preview-close {
    width: 36px;
    height: 36px;
}

.upload-dialog {
    width: min(760px, 100%);
    grid-template-rows: auto auto minmax(0, 1fr);
}

.preview-header,
.preview-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    border-bottom: 1px solid #e2e8f0;
}

.preview-footer {
    border-bottom: 0;
    border-top: 1px solid #e2e8f0;
}

.ai-slip-result {
    display: grid;
    gap: 10px;
    padding: 12px 22px 18px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    color: var(--text);
    font-size: 0.84rem;
}

.ai-slip-result__grid {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 6px 10px;
}

.ai-slip-result__grid span {
    color: var(--muted);
    font-weight: 800;
}

.ai-slip-result__grid b,
.ai-slip-result__match b {
    color: #0f2847;
}

.ai-slip-result__match {
    display: grid;
    gap: 4px;
    padding: 10px;
    border-radius: 10px;
    background: #ecfeff;
    border: 1px solid #bae6fd;
}

.ai-slip-result__match small {
    color: var(--muted);
    line-height: 1.4;
}

.ai-slip-result__warning,
.ai-slip-result__error,
.ai-slip-result__loading {
    padding: 10px;
    border-radius: 10px;
    line-height: 1.45;
}

.ai-slip-result__warning {
    background: #fff7ed;
    color: #9a3412;
}

.ai-slip-result__error {
    background: #fee2e2;
    color: var(--danger);
}

.ai-slip-result__loading {
    background: #eff6ff;
    color: #1d4ed8;
}

.preview-header h2 {
    margin-bottom: 0;
    font-size: 1.05rem;
}

.upload-header {
    align-items: flex-start;
}

.upload-header-copy p {
    margin-bottom: 0;
    color: var(--muted);
}

.preview-close {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 1.6rem;
    line-height: 1;
    box-shadow: none;
}

.preview-body {
    min-height: 320px;
    max-height: calc(100vh - 220px);
    padding: 0;
    background: #f8fafc;
    overflow: auto;
}

.validation-popup-body {
    max-height: none;
}

.preview-frame,
.preview-image,
.validation-popup-frame {
    width: 100%;
    height: min(70vh, 760px);
    display: block;
    border: 0;
}

.validation-popup-frame {
    height: 100%;
    background: #fff;
}

@media (max-width: 820px) {
    .validation-popup-detail .student-summary,
    .validation-popup-detail .validation-card {
        grid-template-columns: 1fr;
    }

    .validation-popup-detail .student-summary__chips {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .validation-popup-detail .validation-card .compact-form {
        grid-column: auto;
        grid-row: auto;
    }
}

.preview-image {
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    margin: 0 auto;
    background: #fff;
}

.preview-placeholder,
.preview-fallback {
    padding: 28px;
    color: var(--muted);
    line-height: 1.6;
}

.upload-summary {
    display: grid;
    gap: 14px;
    padding: 18px 22px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #fcfdff, #f8fbff);
}

.upload-status-copy {
    display: grid;
    gap: 8px;
}

.upload-status-copy .note-text {
    margin: 0;
}

.upload-current-file {
    margin: 0;
}

.upload-form {
    padding: 22px;
    overflow: auto;
}

.student-login-modal__dialog {
    width: min(980px, 100%);
    max-height: calc(100vh - 48px);
    grid-template-rows: auto minmax(0, 1fr) auto;
    border: 1px solid #dbe3f0;
    border-radius: 22px;
    background: #ffffff;
}

.student-login-modal__header {
    padding: 22px 24px;
    background: #ffffff;
    border-bottom: 1px solid #e5edf6;
    align-items: flex-start;
}

.student-login-modal__header .modal-close {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border: 0;
    border-radius: 999px;
    background: #eef7ff;
    color: #1d4ed8;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.16);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.student-login-modal__header .modal-close:hover,
.student-login-modal__header .modal-close:focus {
    background: #dbeafe;
    color: #1e40af;
    transform: none;
    outline: 3px solid rgba(37, 99, 235, 0.18);
    outline-offset: 2px;
}

.student-login-modal__header h3 {
    margin: 0 0 8px;
    color: #253b80;
    font-size: 1.5rem;
    line-height: 1.3;
}

.student-login-modal__header p {
    margin: 0;
    color: #64748b;
}

.student-login-modal__body {
    display: grid;
    gap: 22px;
    padding: 22px 24px 10px;
    background: #ffffff;
    overflow: auto;
}

.student-login-modal__section {
    display: grid;
    gap: 12px;
}

.student-login-modal__section--intro {
    padding-bottom: 6px;
}

.student-login-modal__section h4 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text);
}

.student-login-modal__section p {
    margin: 0;
    color: #4b5563;
    line-height: 1.8;
}

.student-login-modal__steps,
.student-login-modal__notes {
    margin: 0;
    padding-left: 24px;
    color: #4b5563;
    line-height: 1.75;
}

.student-login-modal__visual-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding-top: 2px;
}

.student-login-modal__visual-card {
    position: relative;
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid #d7e1ef;
    background: #ffffff;
    box-shadow: 0 14px 26px rgba(148, 163, 184, 0.12);
}

.student-login-modal__visual-card strong {
    margin: 0;
    color: #243b7a;
    font-size: 1rem;
}

.student-login-modal__visual-card p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
    font-size: 0.92rem;
}

.student-login-modal__visual-number {
    position: absolute;
    left: 12px;
    top: 12px;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.24);
}

.student-login-modal__mockup {
    min-height: 148px;
    padding: 18px 14px 14px;
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fbff, #f1f5f9);
    border: 1px solid #e2e8f0;
    display: grid;
    align-content: start;
    gap: 10px;
}

.student-login-modal__mockup-bar {
    height: 14px;
    width: 72%;
    border-radius: 999px;
    background: linear-gradient(90deg, #c7d2fe, #dbeafe);
}

.student-login-modal__mockup-avatar,
.student-login-modal__mockup-photo,
.student-login-modal__mockup-doc,
.student-login-modal__mockup-check {
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #dbeafe;
    position: relative;
}

.student-login-modal__mockup-avatar {
    height: 54px;
}

.student-login-modal__mockup-avatar::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #93c5fd, #60a5fa);
}

.student-login-modal__mockup-avatar::after {
    content: "";
    position: absolute;
    left: 48px;
    top: 16px;
    width: calc(100% - 62px);
    height: 16px;
    border-radius: 999px;
    background: #dbeafe;
}

.student-login-modal__mockup-photo {
    height: 62px;
    background:
        linear-gradient(180deg, rgba(191, 219, 254, 0.8), rgba(219, 234, 254, 0.42)),
        #ffffff;
}

.student-login-modal__mockup-photo::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 34px;
    height: 34px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
}

.student-login-modal__mockup-doc {
    height: 58px;
}

.student-login-modal__mockup-doc::before {
    content: "";
    position: absolute;
    inset: 12px 16px auto 16px;
    height: 8px;
    border-radius: 999px;
    background: #bfdbfe;
    box-shadow: 0 14px 0 #dbeafe, 0 28px 0 #e0f2fe;
}

.student-login-modal__mockup-check {
    height: 58px;
}

.student-login-modal__mockup-check::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 16px;
    width: 24px;
    height: 14px;
    border-left: 4px solid #10b981;
    border-bottom: 4px solid #10b981;
    transform: rotate(-45deg);
}

.student-login-modal__mockup-check::after {
    content: "";
    position: absolute;
    left: 56px;
    top: 18px;
    width: calc(100% - 72px);
    height: 10px;
    border-radius: 999px;
    background: #dbeafe;
}

.student-login-modal__mockup-line {
    height: 10px;
    width: 100%;
    border-radius: 999px;
    background: #dbeafe;
}

.student-login-modal__mockup-line.short {
    width: 72%;
}

.student-login-modal__actions {
    justify-content: flex-end;
    gap: 12px;
    padding: 18px 24px 22px;
    border-top: 1px solid #e5edf6;
    background: #ffffff;
}

.scroll-top-button {
    position: fixed;
    right: 28px;
    bottom: 28px;
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), #15a3c5);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 32px rgba(14, 116, 144, 0.28);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 35;
}

.scroll-top-button svg {
    width: 24px;
    height: 24px;
}

.scroll-top-button.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-top-button:hover {
    transform: translateY(-2px);
}

@media (max-width: 1100px) {
    .hero-section,
    .login-panel,
    .panel-grid {
        grid-template-columns: 1fr;
        display: grid;
    }

    .sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: -280px;
        z-index: 30;
        width: 260px;
        max-width: calc(100vw - 28px);
        min-height: 100vh;
        height: 100vh;
        max-height: 100vh;
        transition: left 0.25s ease;
        box-shadow: 0 24px 48px rgba(15, 23, 42, 0.28);
    }

    .sidebar.open {
        left: 0;
    }

    .app-body.sidebar-mobile-open {
        overflow: hidden;
    }

    .app-body.sidebar-mobile-open .sidebar-overlay {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .content,
    .topbar {
        padding-left: 18px;
        padding-right: 18px;
    }

    .scroll-top-button {
        right: 18px;
        bottom: 18px;
    }

    .student-profile-alert {
        grid-template-columns: 1fr;
    }

    .student-profile-alert__actions {
        justify-content: flex-start;
    }

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

    .notification-panel {
        right: auto;
        left: 0;
    }

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

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

    .sop-heading__badge {
        min-width: 0;
    }

    .sop-hero-card {
        grid-template-columns: 1fr;
    }

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

    .student-login-modal__body {
        padding-bottom: 14px;
    }

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

@media (max-width: 1100px) {
    .app-body {
        padding-bottom: calc(88px + env(safe-area-inset-bottom));
    }

    .app-main {
        padding-bottom: calc(88px + env(safe-area-inset-bottom));
    }

    .floating-chat {
        display: none;
    }

    .app-body.modal-open .mobile-bottom-nav {
        display: none;
    }

    .floating-chat__panel {
        right: -2px;
        bottom: 68px;
        width: calc(100vw - 28px);
    }

    .mobile-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 120;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0;
        min-height: calc(74px + env(safe-area-inset-bottom));
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
        border-top: 1px solid #e2e8f0;
        background: #ffffff;
        box-shadow: 0 -18px 36px rgba(15, 23, 42, 0.12);
    }

    .mobile-bottom-nav__item {
        display: grid;
        min-width: 0;
        min-height: 58px;
        place-items: center;
        align-content: center;
        gap: 4px;
        border-radius: 14px;
        color: #64748b;
        font-size: 0.72rem;
        font-weight: 800;
        line-height: 1;
        text-align: center;
        text-decoration: none;
        border: 0;
        background: transparent;
        box-shadow: none;
        transition: background 0.18s ease, color 0.18s ease;
    }

    .mobile-bottom-nav__item:hover,
    .mobile-bottom-nav__item:focus {
        color: #0f766e;
        background: #e6f7f5;
        transform: none;
        outline: none;
    }

    .mobile-bottom-nav__item.active {
        color: #0f766e;
        background: #dff5f3;
    }

    .mobile-bottom-nav__item--menu {
        color: #ffffff;
        background: linear-gradient(135deg, #0f766e, #0e7490);
        box-shadow: 0 12px 24px rgba(15, 118, 110, 0.26);
    }

    .mobile-bottom-nav__item--menu:hover,
    .mobile-bottom-nav__item--menu:focus,
    .mobile-bottom-nav__item--menu.is-open {
        color: #ffffff;
        background: linear-gradient(135deg, #0d9488, #0891b2);
    }

    .mobile-bottom-nav__icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
    }

    .mobile-bottom-nav__label {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-menu-sheet {
        position: fixed;
        inset: 0;
        z-index: 115;
        display: none;
        align-items: flex-end;
    }

    .mobile-menu-sheet.open {
        display: flex;
    }

    .mobile-menu-sheet__backdrop {
        position: absolute;
        inset: 0;
        border: 0;
        border-radius: 0;
        background: rgba(15, 23, 42, 0.36);
        box-shadow: none;
    }

    .mobile-menu-sheet__panel {
        position: relative;
        z-index: 1;
        width: 100%;
        max-height: calc(100vh - 104px);
        padding: 18px 16px calc(96px + env(safe-area-inset-bottom));
        border-radius: 24px 24px 0 0;
        background: #ffffff;
        box-shadow: 0 -24px 54px rgba(15, 23, 42, 0.18);
        overflow-y: auto;
    }

    .mobile-menu-sheet__header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 14px;
        margin-bottom: 16px;
    }

    .mobile-menu-sheet__header span {
        display: inline-flex;
        margin-bottom: 5px;
        color: #0f766e;
        font-size: 0.78rem;
        font-weight: 900;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .mobile-menu-sheet__header h2 {
        margin: 0;
        color: #0f172a;
        font-size: 1.25rem;
        line-height: 1.2;
    }

    .mobile-menu-sheet__close {
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
        border: 0;
        border-radius: 14px;
        background: #eef7f7;
        color: #0f766e;
        box-shadow: none;
        font-size: 1.6rem;
        line-height: 1;
    }

    .mobile-menu-sheet__close:hover,
    .mobile-menu-sheet__close:focus {
        background: #dff5f3;
        transform: none;
        outline: none;
    }

    .mobile-menu-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .mobile-menu-grid__item {
        display: grid;
        min-width: 0;
        min-height: 106px;
        place-items: center;
        align-content: center;
        gap: 9px;
        padding: 12px 8px;
        border: 1px solid #dbe7ef;
        border-radius: 12px;
        background: #ffffff;
        color: #0f172a;
        text-align: center;
        text-decoration: none;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    }

    .mobile-menu-grid__item:hover,
    .mobile-menu-grid__item:focus,
    .mobile-menu-grid__item.active {
        border-color: #99f6e4;
        background: #f0fdfa;
        color: #0f766e;
        transform: none;
        outline: none;
    }

    .mobile-menu-grid__icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 46px;
        border-radius: 14px;
        background: #dff5f3;
        color: #0f766e;
    }

    .mobile-menu-grid__label {
        max-width: 100%;
        color: inherit;
        font-size: 0.78rem;
        font-weight: 800;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 860px) {
    .pwa-install-banner {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .pwa-install-banner__close {
        position: absolute;
        top: -12px;
        right: -8px;
        width: 34px;
        height: 34px;
        border: 2px solid #ffffff;
    }

    .student-login-modal {
        z-index: 140;
        align-items: flex-start;
        padding: 10px;
    }

    .student-login-modal .upload-header-copy {
        min-width: 0;
    }

    .public-links {
        display: none;
    }

    .hero-copy,
    .login-copy,
    .auth-card,
    .panel,
    .stat-card {
        padding: 22px;
    }

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

    .form-grid,
    .filter-grid {
        grid-template-columns: 1fr;
    }

    .default-password-alert {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .default-password-alert__action {
        grid-column: 1 / -1;
        justify-self: stretch;
    }

    .table-meta,
    .pagination-bar,
    .pagination-links {
        width: 100%;
    }

    .student-validation-card,
    .student-pickup-card {
        min-width: 0;
    }

    .student-validation-card .panel-header,
    .student-pickup-card .panel-header,
    .dashboard-ready-panel .panel-header,
    .dashboard-activity-panel .panel-header,
    .document-submit-panel,
    .document-submit-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .document-submit-panel .button,
    .document-submit-actions .button {
        width: 100%;
    }

    .student-validation-table,
    .student-document-status-table {
        min-width: 0;
    }

    .dashboard-ready-table {
        min-width: 0;
    }

    .student-validation-table thead,
    .student-document-status-table thead,
    .dashboard-ready-table thead {
        display: none;
    }

    .student-validation-table,
    .student-validation-table tbody,
    .student-validation-table tr,
    .student-validation-table td,
    .student-document-status-table,
    .student-document-status-table tbody,
    .student-document-status-table tr,
    .student-document-status-table td,
    .dashboard-ready-table,
    .dashboard-ready-table tbody,
    .dashboard-ready-table tr,
    .dashboard-ready-table td {
        display: block;
        width: 100%;
    }

    .student-validation-table tr,
    .student-document-status-table tr,
    .dashboard-ready-table tr {
        padding: 14px;
        margin-bottom: 12px;
        border: 1px solid var(--border);
        border-radius: 14px;
        background: #ffffff;
    }

    .student-validation-table td,
    .student-document-status-table td,
    .dashboard-ready-table td {
        display: grid;
        grid-template-columns: minmax(104px, 34%) minmax(0, 1fr);
        gap: 10px;
        padding: 8px 0;
        border-bottom: 1px dashed #e2e8f0;
        overflow-wrap: anywhere;
    }

    .student-validation-table td:last-child,
    .student-document-status-table td:last-child,
    .dashboard-ready-table td:last-child {
        border-bottom: 0;
    }

    .student-validation-table td::before,
    .student-document-status-table td::before,
    .dashboard-ready-table td::before {
        color: var(--muted);
        font-weight: 800;
        font-size: 0.82rem;
    }

    .student-validation-table td:nth-child(1)::before {
        content: "Item";
    }

    .student-validation-table td:nth-child(2)::before {
        content: "Unit";
    }

    .student-validation-table td:nth-child(3)::before {
        content: "Status";
    }

    .student-validation-table td:nth-child(4)::before {
        content: "Validator";
    }

    .student-validation-table td:nth-child(5)::before {
        content: "Dokumen";
    }

    .student-document-status-table td:nth-child(1)::before {
        content: "Dokumen";
    }

    .student-document-status-table td:nth-child(2)::before {
        content: "Status";
    }

    .student-document-status-table td:nth-child(3)::before {
        content: "Aksi";
    }

    .dashboard-ready-table td:nth-child(1)::before {
        content: "Mahasiswa";
    }

    .dashboard-ready-table td:nth-child(2)::before {
        content: "NIM";
    }

    .dashboard-ready-table td:nth-child(3)::before {
        content: "Periode";
    }

    .dashboard-ready-table .empty-cell {
        display: block;
        text-align: center;
    }

    .dashboard-ready-table .empty-cell::before {
        content: "";
        display: none;
    }

    .dashboard-activity-panel .timeline-list {
        gap: 12px;
    }

    .dashboard-activity-panel .timeline-item {
        padding: 12px 0 12px 14px;
    }

    .student-pickup-card .timeline-card,
    .student-pickup-card .list-card {
        padding: 16px;
        border-radius: 14px;
    }

    .student-pickup-card .toolbar-actions,
    .finance-quick-search,
    .student-document-status-table .table-actions {
        width: 100%;
        align-items: stretch;
    }

    .finance-quick-search .form-group,
    .finance-quick-search .button {
        width: 100%;
    }

    .student-pickup-card .toolbar-actions .button,
    .student-document-status-table .table-actions .button {
        flex: 1 1 120px;
    }

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

    .sop-hero-card {
        padding: 24px 20px;
        border-radius: 24px;
    }

    .sop-hero-card__stats {
        grid-template-columns: 1fr;
    }

    .sop-card {
        padding: 22px 20px;
        border-radius: 22px;
    }

    .sop-card__header,
    .sop-footnote {
        flex-direction: column;
        align-items: flex-start;
    }

    .sop-card__number {
        min-width: 48px;
        height: 48px;
    }

    .student-profile-alert {
        padding: 24px 20px;
        gap: 16px;
        border-radius: 18px;
    }

    .student-profile-alert h2 {
        font-size: 1.45rem;
        line-height: 1.25;
    }

    .student-profile-alert p {
        max-width: none;
        line-height: 1.55;
    }

    .student-profile-alert__eyebrow {
        max-width: 100%;
        white-space: normal;
        border-radius: 12px;
        line-height: 1.35;
    }

    .student-profile-alert__actions,
    .student-login-modal__actions {
        flex-direction: column;
        align-items: stretch;
    }

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

    .chat-message {
        width: min(86%, 620px);
    }

    .chat-message div {
        flex-direction: column;
        gap: 3px;
    }

    .chat-reply-form .button {
        width: 100%;
        justify-self: stretch;
    }

    .student-login-modal__header {
        flex-direction: row;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 14px;
    }

    .student-login-modal__dialog {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 96px);
        border-radius: 16px;
    }

    .student-login-modal__body {
        gap: 10px;
        max-height: calc(100vh - 238px);
        overflow-y: auto;
    }

    .pagination-bar {
        align-items: flex-start;
    }

    .notification-panel {
        position: fixed;
        top: 96px;
        left: 18px;
        right: 18px;
        width: auto;
    }

    .support-document-card,
    .upload-file-item,
    .upload-header,
    .preview-header,
    .preview-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .preview-body {
        max-height: calc(100vh - 260px);
    }

    .student-login-modal__body,
    .student-login-modal__actions {
        padding: 12px 14px;
    }

    .student-login-modal__header h3 {
        margin-bottom: 4px;
        font-size: 0.98rem;
        line-height: 1.22;
    }

    .student-login-modal__header p {
        font-size: 0.78rem;
        line-height: 1.35;
    }

    .student-login-modal__header .modal-close {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        margin-top: -2px;
        font-size: 1.8rem;
    }

    .student-login-modal__visual-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .student-login-modal__section {
        gap: 6px;
    }

    .student-login-modal__section--intro {
        padding-bottom: 0;
    }

    .student-login-modal__section h4 {
        font-size: 0.9rem;
        line-height: 1.25;
    }

    .student-login-modal__section p,
    .student-login-modal__steps,
    .student-login-modal__notes {
        font-size: 0.78rem;
        line-height: 1.45;
    }

    .student-login-modal__steps,
    .student-login-modal__notes {
        padding-left: 18px;
    }

    .student-login-modal__visual-card {
        gap: 6px;
        padding: 9px;
        border-radius: 12px;
    }

    .student-login-modal__visual-card strong {
        font-size: 0.78rem;
        line-height: 1.2;
    }

    .student-login-modal__visual-card p {
        font-size: 0.7rem;
        line-height: 1.28;
    }

    .student-login-modal__visual-number {
        left: 8px;
        top: 8px;
        width: 24px;
        height: 24px;
        font-size: 0.76rem;
    }

    .student-login-modal__mockup {
        min-height: 72px;
        padding: 12px 9px 9px;
        gap: 5px;
        border-radius: 10px;
    }

    .student-login-modal__mockup-bar {
        height: 8px;
    }

    .student-login-modal__mockup-avatar,
    .student-login-modal__mockup-photo,
    .student-login-modal__mockup-doc,
    .student-login-modal__mockup-check {
        border-radius: 10px;
    }

    .student-login-modal__mockup-avatar,
    .student-login-modal__mockup-doc,
    .student-login-modal__mockup-check {
        height: 30px;
    }

    .student-login-modal__mockup-photo {
        height: 34px;
    }

    .student-login-modal__mockup-line {
        height: 6px;
    }

    .student-login-modal__mockup-avatar::before {
        left: 8px;
        top: 7px;
        width: 16px;
        height: 16px;
    }

    .student-login-modal__mockup-avatar::after {
        left: 30px;
        top: 10px;
        width: calc(100% - 38px);
        height: 9px;
    }

    .student-login-modal__mockup-photo::before {
        width: 18px;
        height: 18px;
    }

    .student-login-modal__mockup-doc::before {
        inset: 7px 9px auto 9px;
        height: 5px;
        box-shadow: 0 9px 0 #dbeafe, 0 18px 0 #e0f2fe;
    }

    .student-login-modal__mockup-check::before {
        left: 10px;
        top: 8px;
        width: 14px;
        height: 8px;
        border-left-width: 3px;
        border-bottom-width: 3px;
    }

    .student-login-modal__mockup-check::after {
        left: 34px;
        top: 10px;
        width: calc(100% - 42px);
        height: 7px;
    }

    .student-login-modal__actions {
        gap: 8px;
        padding-top: 10px;
        padding-bottom: 12px;
    }

    .student-login-modal__actions .button {
        min-height: 40px;
        padding: 9px 12px;
        border-radius: 10px;
        font-size: 0.82rem;
    }

    .topbar {
        align-items: flex-start;
        gap: 12px;
    }

    .topbar-left {
        width: 100%;
        align-items: center;
        gap: 12px;
        flex-wrap: nowrap;
    }

    .topbar-left > div {
        min-width: 0;
    }

    .topbar h1 {
        font-size: 1.32rem;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .topbar-left p {
        margin-bottom: 0;
    }

    .topbar-right {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: 10px;
    }

    .notification-toggle,
    .user-menu-toggle {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }

    .user-menu-panel {
        position: fixed;
        top: 96px;
        left: 18px;
        right: 18px;
        width: auto;
        border-radius: 16px;
        z-index: 90;
    }

    .login-as-form,
    .login-as-form label {
        width: 100%;
    }

    .login-as-form input[type="search"] {
        min-width: 0;
    }

    .role-guide {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 16px;
        border-radius: 18px;
    }

    .role-guide h2 {
        font-size: 1.35rem;
    }

    .role-guide p {
        line-height: 1.55;
    }

    .role-guide__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .role-guide__actions a {
        width: 100%;
    }

    .role-guide__tasks {
        padding: 15px;
    }

    .simple-list li {
        flex-direction: column;
    }

    .fingerprint-panel {
        grid-template-columns: 1fr;
        justify-items: stretch;
        padding: 18px;
    }

    .fingerprint-panel__icon {
        justify-self: start;
        width: 54px;
        height: 54px;
        border-radius: 16px;
    }

    .fingerprint-panel .button {
        width: 100%;
    }
}

/* FIX: hilangkan jarak header ke slider */
.public-header {
    margin-bottom: 0 !important;
}

.public-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* untuk slider premium */
.hero-section-premium {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.hero-premium {
    margin-top: 0 !important;
}

.hero-premium__track {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
