:root {
    --primary: #5b21b6;
    --primary-hover: #4c1d95;
    --primary-dark: #3b0764;
    --primary-deep: #2e1065;
    --primary-soft: #f5f3ff;
    --secondary: #facc15;
    --secondary-hover: #eab308;
    --secondary-soft: #fefce8;
    --accent: #ede9fe;
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-muted: #f8fafc;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --danger: #dc2626;
    --success: #15803d;
    --warning: #a16207;
    --info: #0369a1;
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, .04);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, .07), 0 1px 2px rgba(15, 23, 42, .04);
    --shadow: 0 10px 30px rgba(76, 29, 149, .08);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 18px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100%;
    color: var(--text);
    background: var(--bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
.muted, small { color: var(--muted); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-right { text-align: right; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }

/* Laravel-style application shell */
.app-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    z-index: 30;
    width: 260px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 18px 14px;
    overflow-x: hidden;
    overflow-y: auto;
    color: #ede9fe;
    background:
        radial-gradient(circle at 10% 0%, rgba(250, 204, 21, .10), transparent 15rem),
        linear-gradient(180deg, #3b0764 0%, #2e1065 54%, #240842 100%);
    border-right: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 8px 0 28px rgba(46, 16, 101, .12);
}

.sidebar-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 4px 7px 20px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, .10);
}
.sidebar-brand span:last-child { min-width: 0; display: grid; }
.sidebar-brand strong {
    overflow: hidden;
    color: #fff;
    font-size: .98rem;
    font-weight: 800;
    letter-spacing: -.015em;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sidebar-brand small {
    margin-top: 3px;
    overflow: hidden;
    color: rgba(237, 233, 254, .65);
    font-size: .70rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-mark {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 16px;
    color: var(--primary-deep);
    background: linear-gradient(145deg, #fde047, var(--secondary));
    box-shadow: 0 10px 24px rgba(250, 204, 21, .22), inset 0 1px 0 rgba(255, 255, 255, .75);
    font-weight: 900;
    letter-spacing: -.04em;
}
.brand-mark.small { width: 42px; height: 42px; border-radius: 12px; font-size: .88rem; }

.nav-list {
    display: grid;
    gap: 4px;
    margin-top: 17px;
}
.nav-list a {
    min-width: 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: rgba(237, 233, 254, .76);
    font-size: .88rem;
    font-weight: 650;
    transition: color .15s ease, background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.nav-list a > span:first-child {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    flex: 0 0 30px;
    border-radius: 8px;
    color: rgba(255, 255, 255, .70);
    background: rgba(255, 255, 255, .07);
    font-size: .95rem;
    font-weight: 800;
    line-height: 1;
    text-align: center;
}
.nav-list a:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .075);
    transform: translateX(2px);
}
.nav-list a:hover > span:first-child {
    color: var(--secondary);
    background: rgba(250, 204, 21, .10);
}
.nav-list a.active {
    color: #fff;
    border-color: rgba(250, 204, 21, .20);
    background: linear-gradient(90deg, rgba(250, 204, 21, .15), rgba(255, 255, 255, .075));
    box-shadow: inset 3px 0 0 var(--secondary), 0 6px 18px rgba(20, 3, 38, .15);
}
.nav-list a.active > span:first-child {
    color: var(--primary-deep);
    background: var(--secondary);
    box-shadow: 0 4px 12px rgba(250, 204, 21, .18);
}

.sidebar-footer {
    min-width: 0;
    display: grid;
    margin-top: auto;
    padding: 17px 10px 4px;
    border-top: 1px solid rgba(255, 255, 255, .10);
}
.sidebar-footer small {
    overflow: hidden;
    color: rgba(237, 233, 254, .60);
    font-size: .72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sidebar-footer strong {
    margin-top: 2px;
    overflow: hidden;
    color: #fff;
    font-size: .82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.main-panel { min-width: 0; display: flex; flex-direction: column; }
.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 28px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--shadow-xs);
    backdrop-filter: blur(14px);
}
.topbar::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.topbar > div:first-of-type { min-width: 0; }
.topbar h1 {
    margin: 0;
    overflow: hidden;
    color: var(--text);
    font-size: 1.30rem;
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.topbar p {
    margin: 3px 0 0;
    overflow: hidden;
    color: var(--muted);
    font-size: .84rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.content {
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
    padding: 26px 28px 34px;
    flex: 1;
}
.app-footer {
    padding: 16px 28px 24px;
    color: var(--muted);
    font-size: .78rem;
}

.avatar {
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
    box-shadow: 0 0 0 2px var(--accent);
    font-weight: 800;
}
.user-menu { position: relative; }
.user-menu summary {
    max-width: 240px;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 7px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color .15s ease;
}
.user-menu summary:hover { background: var(--primary-soft); }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary .desktop-only {
    overflow: hidden;
    color: var(--text);
    font-size: .84rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.menu-card {
    position: absolute;
    right: 0;
    top: 51px;
    z-index: 40;
    min-width: 190px;
    padding: 7px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow);
}
.menu-card a, .menu-card button {
    width: 100%;
    display: block;
    padding: 9px 10px;
    border: 0;
    border-radius: 8px;
    color: var(--text);
    background: transparent;
    text-align: left;
    font-weight: 600;
}
.menu-card form { margin: 0; }
.menu-card a:hover, .menu-card button:hover { color: var(--primary); background: var(--primary-soft); }

/* Shared components */
.page-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.action-group { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.card {
    position: relative;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 18px; }
.grid > .card + .card, form.grid > .card + .card { margin-top: 0; }
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}
.card-header h2, .card h2 {
    margin: 0 0 4px;
    color: #1e293b;
    font-size: 1.04rem;
    font-weight: 800;
    letter-spacing: -.015em;
}
.card-header p { margin: 0; color: var(--muted); font-size: .86rem; }
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.metric {
    min-height: 128px;
    overflow: hidden;
    border-top: 3px solid var(--primary);
}
.metric:nth-child(even) { border-top-color: var(--secondary); }
.metric::after {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -42px;
    width: 118px;
    height: 118px;
    border: 22px solid var(--primary-soft);
    border-radius: 50%;
    opacity: .95;
}
.metric:nth-child(even)::after { border-color: var(--secondary-soft); }
.metric-label { position: relative; z-index: 1; color: var(--muted); font-size: .82rem; font-weight: 700; }
.metric-value { position: relative; z-index: 1; margin-top: 10px; color: var(--text); font-size: 2rem; font-weight: 850; letter-spacing: -.045em; }
.metric-note { position: relative; z-index: 1; color: var(--muted); font-size: .80rem; }

.btn {
    min-height: 39px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 13px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 700;
    line-height: 1.15;
    box-shadow: var(--shadow-xs);
    transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn-primary { color: #fff; border-color: var(--primary); background: var(--primary); }
.btn-primary:hover { color: #fff; border-color: var(--primary-hover); background: var(--primary-hover); }
.btn-secondary { color: var(--primary-deep); border-color: var(--secondary); background: var(--secondary); }
.btn-secondary:hover { color: var(--primary-deep); border-color: var(--secondary-hover); background: var(--secondary-hover); }
.btn-light { color: #334155; border-color: var(--border-strong); background: #fff; }
.btn-light:hover { color: var(--primary); border-color: #c4b5fd; background: var(--primary-soft); }
.btn-danger { color: #fff; border-color: var(--danger); background: var(--danger); }
.btn-sm { min-height: 32px; padding: 6px 9px; border-radius: 7px; font-size: .80rem; }
.btn-block { width: 100%; }
.icon-button {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--primary);
    background: #fff;
    font-size: 1.22rem;
}

.alert {
    margin-bottom: 15px;
    padding: 12px 14px;
    border: 1px solid;
    border-radius: 9px;
    font-size: .88rem;
    font-weight: 600;
    box-shadow: var(--shadow-xs);
}
.alert-error { color: #991b1b; border-color: #fecaca; background: #fef2f2; }
.alert-success { color: #166534; border-color: #bbf7d0; background: #f0fdf4; }
.alert-warning { color: #854d0e; border-color: #fde68a; background: #fffbeb; }
.alert-info { color: #075985; border-color: #bae6fd; background: #f0f9ff; }

form label { display: grid; gap: 6px; color: #334155; font-size: .86rem; font-weight: 700; }
input, select, textarea {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    color: var(--text);
    background: #fff;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
input::placeholder, textarea::placeholder { color: #94a3b8; }
input:hover, select:hover, textarea:hover { border-color: #a78bfa; }
input:focus, select:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(91, 33, 182, .12);
}
textarea { resize: vertical; }
.form-grid { display: grid; gap: 15px; margin-bottom: 18px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.inline-form { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; }
.inline-form > * { min-width: 150px; flex: 1; }
.inline-form .btn { min-width: auto; flex: 0 0 auto; }
.filter-bar {
    margin-bottom: 18px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.filter-grid { display: grid; grid-template-columns: repeat(6, minmax(135px, 1fr)); gap: 10px; align-items: end; }
.filter-grid .wide { grid-column: span 2; }
.form-help { margin-top: -8px; color: var(--muted); font-size: .80rem; }
.checkbox-row { display: flex; align-items: center; gap: 9px; }
.checkbox-row input { width: auto; min-height: auto; accent-color: var(--primary); }

.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
}
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 11px 12px; border-bottom: 1px solid #edf2f7; text-align: left; vertical-align: top; }
th {
    color: #475569;
    background: #f8fafc;
    font-size: .73rem;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
    white-space: nowrap;
}
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background-color .12s ease; }
tbody tr:hover { background: #faf8ff; }
.table-actions { display: flex; gap: 6px; white-space: nowrap; }
.empty-state { padding: 40px 18px; color: var(--muted); text-align: center; }
.pagination { display: flex; justify-content: flex-end; gap: 6px; margin-top: 16px; }
.pagination a {
    min-width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: #334155;
    background: #fff;
    font-size: .82rem;
    font-weight: 700;
}
.pagination a:hover { color: var(--primary); border-color: #c4b5fd; background: var(--primary-soft); }
.pagination a.active { color: #fff; border-color: var(--primary); background: var(--primary); }

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    color: #475569;
    background: #f1f5f9;
    font-size: .72rem;
    font-weight: 750;
    white-space: nowrap;
}
.badge-active, .badge-approved, .badge-enrolled, .badge-renewed, .badge-completed, .badge-valid, .badge-imported { color: #166534; background: #dcfce7; }
.badge-inactive, .badge-terminated, .badge-disqualified, .badge-invalid, .badge-deleted { color: #991b1b; background: #fee2e2; }
.badge-pending, .badge-applicant, .badge-qualified, .badge-uploaded, .badge-validating { color: #854d0e; background: #fef3c7; }
.badge-graduated { color: #5b21b6; background: #ede9fe; }
.badge-suspended, .badge-withdrawn { color: #9a3412; background: #ffedd5; }

.profile-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.profile-name { display: flex; align-items: center; gap: 14px; }
.profile-initials {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
    font-size: 1.35rem;
    font-weight: 850;
    box-shadow: 0 8px 20px rgba(91, 33, 182, .16);
}
.definition-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.definition-grid div { padding: 12px; border: 1px solid #ede9fe; border-radius: 9px; background: #faf8ff; }
.definition-grid dt { color: var(--muted); font-size: .75rem; }
.definition-grid dd { margin: 3px 0 0; color: #1e293b; font-weight: 750; }
.timeline { display: grid; gap: 12px; }
.timeline-item { position: relative; padding: 14px 14px 14px 17px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.timeline-item::before { content: ""; position: absolute; left: 0; top: 13px; bottom: 13px; width: 3px; border-radius: 999px; background: var(--secondary); }
.timeline-item h3 { margin: 0 0 4px; font-size: .98rem; }
.timeline-item p { margin: 3px 0; color: var(--muted); }

.bar-list { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: minmax(130px, 1.4fr) minmax(150px, 3fr) 70px; gap: 10px; align-items: center; }
.bar-track { height: 9px; overflow: hidden; border-radius: 999px; background: #ede9fe; }
.bar-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), #7c3aed); }

/* Authentication and installer */
.auth-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 15% 10%, rgba(250, 204, 21, .18), transparent 22rem),
        radial-gradient(circle at 85% 85%, rgba(124, 58, 237, .15), transparent 26rem),
        #f8fafc;
}
.auth-card {
    width: min(440px, 100%);
    padding: 30px;
    border: 1px solid var(--border);
    border-top: 4px solid var(--primary);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: 0 24px 60px rgba(46, 16, 101, .14);
}
.auth-card h1 { margin: 0 0 5px; color: var(--text); font-size: 1.65rem; letter-spacing: -.03em; }
.auth-card form { margin-top: 20px; }
.auth-card .brand-mark { margin-bottom: 18px; }
.auth-card .text-right { margin-bottom: 0; font-size: .82rem; }
.install-shell { width: 100%; display: grid; place-items: center; }
.install-card { width: min(820px, 100%); }
.install-card h2 { margin-top: 22px; padding-top: 17px; border-top: 1px solid var(--border); font-size: 1rem; }

/* Public landing page */
.public-page { min-height: 100vh; background: #fff; }
.public-nav {
    min-height: 78px;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0 auto;
    padding: 14px 24px;
    background: #fff;
}
.public-brand { min-width: 0; display: flex; align-items: center; gap: 12px; color: var(--text); }
.public-brand img { width: 50px; height: 50px; flex: 0 0 auto; object-fit: contain; }
.public-brand > span:last-child { min-width: 0; }
.public-brand strong { font-weight: 850; }
.public-brand small { display: inline-block; max-width: 520px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.campus-picker { max-width: 260px; }
.public-hero {
    position: relative;
    min-height: 590px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 88% 12%, rgba(250, 204, 21, .20), transparent 22rem),
        linear-gradient(120deg, var(--campus-primary, var(--primary)) 0%, #3b0764 70%, #2e1065 100%);
}
.public-hero::after {
    content: "";
    position: absolute;
    right: -130px;
    bottom: -270px;
    width: 520px;
    height: 520px;
    border: 72px solid rgba(255, 255, 255, .035);
    border-radius: 50%;
}
.public-hero.has-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(46, 16, 101, .94), rgba(59, 7, 100, .75)), var(--hero-image) center/cover no-repeat;
}
.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    min-height: 590px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(330px, .9fr);
    align-items: center;
    gap: 54px;
    margin: 0 auto;
    padding: 82px 24px 92px;
}
.hero-copy h1 {
    max-width: 830px;
    margin: 0 0 22px;
    color: #fff;
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    line-height: .98;
    letter-spacing: -.06em;
}
.hero-copy p { max-width: 700px; margin: 0; color: rgba(255, 255, 255, .80); font-size: 1.08rem; line-height: 1.72; }
.hero-actions { display: flex; gap: 11px; margin-top: 27px; flex-wrap: wrap; }
.hero-actions .btn-light { color: var(--campus-primary, var(--primary)); border-color: #fff; }
.hero-panel {
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 18px;
    background: rgba(255, 255, 255, .10);
    box-shadow: 0 24px 60px rgba(20, 3, 38, .18);
    backdrop-filter: blur(16px);
}
.hero-panel h2 { margin: 0 0 10px; color: #fff; font-size: 1rem; }
.hero-stat { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.hero-stat:last-child { border-bottom: 0; }
.hero-stat span { color: rgba(255, 255, 255, .67); }
.hero-stat strong { color: var(--secondary); font-size: 1.35rem; }
.public-section { max-width: 1200px; margin: 0 auto; padding: 78px 24px; }
.public-section h2 { margin: 0 0 12px; color: #1e293b; font-size: 2.1rem; letter-spacing: -.035em; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.feature-card {
    min-height: 190px;
    padding: 23px;
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.feature-card:nth-child(even) { border-top-color: var(--secondary); }
.feature-card:hover { transform: translateY(-3px); border-color: #ddd6fe; box-shadow: var(--shadow); }
.feature-card h3 { margin: 0 0 8px; color: #1e293b; }
.feature-card p { margin: 0; color: var(--muted); line-height: 1.7; }
.public-footer { padding: 30px 24px; color: rgba(255, 255, 255, .72); background: #2e1065; }
.public-footer-inner { max-width: 1200px; display: flex; justify-content: space-between; gap: 25px; margin: auto; }
.public-footer strong { color: #fff; }

.sidebar-overlay { display: none; }
.mobile-only { display: none; }

@media (max-width: 1100px) {
    .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .definition-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar {
        position: fixed;
        left: -276px;
        width: 260px;
        transition: left .2s ease;
    }
    .sidebar-open { overflow: hidden; }
    .sidebar-open .sidebar { left: 0; }
    .sidebar-overlay { position: fixed; inset: 0; z-index: 25; background: rgba(15, 23, 42, .52); backdrop-filter: blur(2px); }
    .sidebar-open .sidebar-overlay { display: block; }
    .mobile-only { display: inline-grid; }
    .desktop-only { display: none !important; }
    .content, .topbar { padding-left: 17px; padding-right: 17px; }
    .topbar { min-height: 74px; }
    .grid.two, .grid.three, .grid.four, .form-grid.two, .form-grid.three, .form-grid.four { grid-template-columns: 1fr; }
    .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .filter-grid .wide { grid-column: span 2; }
    .hero-inner { grid-template-columns: 1fr; padding-top: 68px; }
    .hero-panel { max-width: 580px; }
    .feature-grid { grid-template-columns: 1fr; }
    .feature-card { min-height: auto; }
}

@media (max-width: 540px) {
    body { font-size: 14px; }
    .topbar h1 { font-size: 1.12rem; }
    .topbar p { max-width: 230px; }
    .content { padding-top: 18px; }
    .card { padding: 17px; }
    .card-header, .profile-head { flex-direction: column; }
    .filter-grid { grid-template-columns: 1fr; }
    .filter-grid .wide { grid-column: auto; }
    .definition-grid { grid-template-columns: 1fr; }
    .table-actions { flex-wrap: wrap; white-space: normal; }
    .topbar .btn-light { display: none; }
    .public-nav { padding: 13px 16px; }
    .public-brand { max-width: calc(100% - 112px); }
    .public-brand small { max-width: 190px; }
    .public-nav .campus-picker { display: none; }
    .public-nav .btn { min-height: 36px; padding: 8px 10px; font-size: .76rem; }
    .hero-inner { min-height: auto; padding: 62px 16px 70px; }
    .hero-copy h1 { font-size: 2.65rem; }
    .hero-copy p { font-size: .95rem; }
    .public-section { padding: 62px 16px; }
    .public-footer-inner { flex-direction: column; }
    .bar-row { grid-template-columns: 1fr 55px; }
    .bar-row .bar-track { grid-column: 1 / -1; grid-row: 2; }
    .auth-body { padding: 14px; }
    .auth-card { padding: 24px; }
}

@media print {
    .sidebar, .topbar, .page-actions, .filter-bar, .app-footer, .sidebar-overlay, .no-print { display: none !important; }
    .app-shell { display: block; }
    .content { max-width: none; padding: 0; }
    .card { padding: 0; border: 0; box-shadow: none; }
    .card + .card { margin-top: 16px; }
    .table-wrap { overflow: visible; border-color: #bbb; }
    th, td { color: #000; border-color: #ccc; }
    body { color: #000; background: #fff; }
}
