body {
    background: #f4f6f9;
    color: #182230;
}

.app-navbar {
    background: #172033;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .14);
}

.app-shell {
    padding-bottom: 32px;
}

.hero-panel {
    align-items: center;
    background: linear-gradient(135deg, #163152, #19615f);
    border-radius: 8px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 32px;
}

.hero-panel h1,
.page-header h1 {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.08;
    margin: 0;
}

.hero-text {
    color: rgba(255, 255, 255, .82);
    font-size: 18px;
    margin: 12px 0 0;
    max-width: 680px;
}

.eyebrow {
    color: #5f6f89;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.hero-panel .eyebrow {
    color: rgba(255, 255, 255, .72);
}

.hero-actions,
.header-actions,
.table-actions,
.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

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

.panel,
.stat-card,
.student-card {
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}

.panel {
    padding: 18px;
}

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

.stat-card {
    padding: 18px;
}

.stat-card span {
    color: #667085;
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
}

.stat-card strong {
    display: block;
    font-size: 30px;
    line-height: 1.1;
}

.toolbar {
    align-items: end;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(220px, 1fr) minmax(170px, 220px) minmax(170px, 220px) auto;
}

.search-box {
    min-width: 0;
}

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

.student-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
}

.student-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 100%;
    padding: 18px;
}

.student-card-top {
    align-items: center;
    display: flex;
    gap: 12px;
}

.student-card h2 {
    font-size: 20px;
    line-height: 1.2;
    margin: 0;
}

.avatar {
    align-items: center;
    background: #e9f2ff;
    border-radius: 50%;
    color: #1155a3;
    display: flex;
    flex: 0 0 48px;
    font-weight: 800;
    height: 48px;
    justify-content: center;
    width: 48px;
}

.student-meta {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1fr;
}

.student-meta span {
    color: #667085;
    display: block;
    font-size: 12px;
}

.student-meta strong {
    display: block;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.student-address {
    background: #f8fafc;
    border-radius: 8px;
    color: #475467;
    padding: 10px;
}

.card-actions {
    margin-top: auto;
}

.app-table th {
    color: #667085;
    font-size: 13px;
    text-transform: uppercase;
}

.app-table th a {
    color: inherit;
}

.badge {
    background: #edf4ff;
    border-radius: 999px;
    color: #1155a3;
    display: inline-block;
    font-weight: 700;
    padding: 4px 10px;
}

.empty-state {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    color: #667085;
    padding: 24px;
    text-align: center;
}

.check-row {
    align-items: center;
    display: flex;
    gap: 10px;
    padding: 10px 0;
}

.check-dot {
    background: #e4e7ec;
    border-radius: 50%;
    display: inline-block;
    height: 12px;
    width: 12px;
}

.check-dot.ok {
    background: #12b76a;
}

.template-check-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.template-check {
    align-items: flex-start;
    background: #f8fafc;
    border: 1px solid #e3e8ef;
    border-radius: 8px;
    display: flex;
    gap: 10px;
    padding: 12px;
}

.template-check input {
    margin-top: 4px;
}

.template-check strong,
.template-check small {
    display: block;
}

.template-check small {
    color: #667085;
    margin-top: 3px;
}

@media (max-width: 900px) {
    .hero-panel,
    .page-header {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions,
    .header-actions {
        justify-content: flex-start;
    }

    .toolbar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .hero-panel {
        padding: 24px;
    }

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