:root {
    --bg: #f3f6fb;
    --ink: #0c1b2a;
    --muted: #5f6d7b;
    --line: #d8e0ea;
    --card: #ffffff;
    --brand: #0f8b8d;
    --brand-2: #125b76;
    --accent: #f4a261;
    --danger: #d64545;
    --success: #1f9d55;
    --warning: #b45309;
    --warning-soft: #fef3c7;
    --focus: rgba(15, 139, 141, 0.36);
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 22px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 10px 24px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 18px 42px rgba(15, 23, 42, 0.1);
}

* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at top right, #e7f7fa 0%, var(--bg) 40%, #eef2f8 100%);
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
small { color: var(--muted); }
img, video, canvas, svg { max-width: 100%; height: auto; }

.app-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
    background: linear-gradient(190deg, #0f172a 0%, #14253c 100%);
    color: #dfe8f5;
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.brand { display: flex; gap: 12px; align-items: flex-start; }
.brand-content {
    display: grid;
    gap: 4px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.brand-logo { width: auto; object-fit: contain; border-radius: 6px; }
.brand-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(140deg, var(--brand), var(--brand-2));
    font-weight: 800;
}
.brand h1 { margin: 0; font-size: 1rem; line-height: 1.2; }
.brand p { margin: 0; color: #9fb2cc; font-size: 0.82rem; }

.menu { display: grid; gap: 8px; }
.menu a,
.menu .menu-dropdown > summary {
    padding: 11px 12px;
    border-radius: 10px;
    color: #c9d7ea;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.menu .menu-dropdown > summary {
    list-style: none;
}
.menu .menu-dropdown > summary::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 1.7px solid currentColor;
    border-bottom: 1.7px solid currentColor;
    transform: rotate(45deg);
    margin-left: auto;
    opacity: 0.8;
    transition: transform 0.18s ease, opacity 0.18s ease;
}
.menu .menu-dropdown[open] > summary::after {
    transform: rotate(225deg);
    opacity: 1;
}
.menu a.active,
.menu a:hover,
.menu .menu-dropdown[open] > summary,
.menu .menu-dropdown > summary:hover {
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
}
.menu .menu-dropdown > summary::-webkit-details-marker { display: none; }
.menu-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.72;
}
.menu-icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.content { min-width: 0; padding: 26px; }
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.topbar h2 { margin: 0; font-size: 1.6rem; }
.topbar p { margin: 3px 0 0; color: var(--muted); }
.user-chip {
    background: #fff;
    border: 1px solid var(--line);
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 600;
}

.alert {
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin: 0 0 14px;
    border: 1px solid transparent;
    box-shadow: var(--shadow-sm);
}
.alert.success { background: #e6f8ee; color: #1b6f41; border: 1px solid #b9e7cc; }
.alert.error { background: #ffecec; color: #8b2e2e; border: 1px solid #f7b7b7; }
.alert.warning { background: #fff7ed; color: #9a3412; border-color: #fed7aa; }
.alert.info { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.alert ul { margin: 0; padding-left: 18px; }

.grid { display: grid; gap: 16px; }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { grid-template-columns: minmax(320px, 0.95fr) minmax(540px, 1.3fr); }

.stat-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow-md);
}
.stat-card p { margin: 0; color: var(--muted); font-weight: 600; }
.stat-card h3 { margin: 8px 0 0; font-size: 2rem; }
.stat-card.warn h3 { color: #b65f20; }

.panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow-md);
}
.panel h3 { margin: 0 0 12px; }
.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
thead th {
    text-align: left;
    color: var(--muted);
    font-size: 0.82rem;
    letter-spacing: .02em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--line);
    padding: 10px 8px;
}
tbody td {
    border-bottom: 1px solid #edf1f5;
    padding: 11px 8px;
    vertical-align: top;
}
tbody tr:hover { background: #f8fafc; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); }
.table-wrap table { margin: 0; }
.table-wrap thead th { position: sticky; top: 0; z-index: 1; background: #fff; }

.pill {
    display: inline-block;
    border-radius: 999px;
    background: #ecf4ff;
    color: #305f93;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 4px 10px;
}
.pill.success { background: #dcfce7; color: #166534; }
.pill.warning { background: #fef3c7; color: #92400e; }
.pill.danger { background: #fee2e2; color: #991b1b; }
.pill.neutral { background: #f1f5f9; color: #475569; }

.form-grid { display: grid; gap: 10px; }
.form-grid.compact { gap: 8px; }
label { display: grid; gap: 5px; font-weight: 600; font-size: 0.9rem; color: #304152; }
input, select, textarea {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font: inherit;
    background: #fff;
}
input:hover, select:hover, textarea:hover { border-color: #b8c4d3; }
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(15, 139, 141, 0.14);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 10px 14px;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}
.btn:disabled,
.btn[disabled],
.btn[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: .62;
    transform: none;
    box-shadow: none;
}
.btn-primary {
    color: #fff;
    background: linear-gradient(140deg, #0f8b8d, #125b76);
}
.btn-primary:hover { background: linear-gradient(140deg, #0b7476, #0f4d65); }
.btn-secondary {
    color: #fff;
    background: #334155;
}
.btn-secondary:hover { background: #1e293b; }
.btn-success {
    color: #fff;
    background: #166534;
}
.btn-success:hover { background: #14532d; }
.btn-danger {
    color: #fff;
    background: #b91c1c;
}
.btn-danger:hover { background: #991b1b; }
.btn-warning {
    color: #451a03;
    background: #fbbf24;
    border-color: #f59e0b;
}
.btn-warning:hover {
    color: #451a03;
    background: #f59e0b;
}
.btn-outline {
    color: #0f172a;
    background: #fff;
    border-color: #94a3b8;
}
.btn-outline:hover {
    color: #0f172a;
    background: #f8fafc;
    border-color: #64748b;
}
.btn-ghost {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
}
.btn-ghost:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    color: #0f172a;
}
.btn-small {
    min-height: 32px;
    padding: 7px 10px;
    font-size: .85rem;
}
.btn-icon {
    width: 40px;
    min-width: 40px;
    padding-inline: 0;
}
.full { width: 100%; }

.inline-actions,
.inline-grade {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.filter-bar {
    display: flex;
    gap: 10px;
    align-items: end;
    flex-wrap: wrap;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,.82);
    box-shadow: var(--shadow-sm);
}
.filter-bar > * { min-width: 180px; }
.surface-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.chart-shell,
.chart-panel,
.chart-canvas-wrap {
    position: relative;
    height: clamp(260px, 28vw, 320px);
    min-height: 260px;
    max-height: 320px;
    overflow: hidden;
}
.chart-shell canvas,
.chart-panel canvas,
.chart-canvas-wrap canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}
.chart-empty-state {
    min-height: clamp(260px, 28vw, 320px);
}
.icon-safe {
    display: inline-grid;
    width: 1.15em;
    height: 1.15em;
    place-items: center;
    flex: 0 0 auto;
    line-height: 1;
}
.icon-safe svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.empty-state {
    display: grid;
    gap: 6px;
    place-items: center;
    text-align: center;
    min-height: 88px;
    padding: 18px;
    color: var(--muted);
    border: 1px dashed #cbd5e1;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #fff, #f8fafc);
}
.empty-state::before {
    content: "";
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: radial-gradient(circle, #4338ca 0 24%, #eef2ff 26% 100%);
}
.loading-skeleton {
    position: relative;
    overflow: hidden;
    background: #e2e8f0;
    border-radius: 999px;
}
.loading-skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent);
    animation: skeleton-shimmer 1.25s infinite;
}
@keyframes skeleton-shimmer { 100% { transform: translateX(100%); } }
.fade-in { animation: fade-in .22s ease both; }
@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.inline-actions > form,
.inline-grade > form {
    display: inline-flex;
}
.inline-grade input[type="number"] { width: 90px; }
.inline-grade input[type="text"] { min-width: 180px; }

.pager { margin-top: 14px; }
.pager nav { display: flex; justify-content: center; }
.pagination {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}
.pagination-mobile {
    display: none;
    gap: 8px;
}
.pagination-desktop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.pagination-summary {
    margin: 0;
    color: var(--muted);
    font-size: .88rem;
}
.pagination-list {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.pagination-link,
.pagination-ellipsis {
    display: inline-flex;
    min-width: 36px;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 8px 11px;
    background: #fff;
    color: #1e293b;
    font-weight: 700;
}
.pagination-link:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}
.pagination-link:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}
.pagination-link.is-active {
    border-color: var(--brand-2);
    background: var(--brand-2);
    color: #fff;
}
.pagination-link.is-disabled {
    cursor: not-allowed;
    opacity: .58;
}
.pagination-ellipsis {
    border-color: transparent;
    background: transparent;
    min-width: auto;
}

.calendar-filters {
    display: flex;
    gap: 10px;
    align-items: center;
}

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

.day-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    background: #fff;
    min-height: 108px;
}

.day-card header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.day-card .rate {
    font-size: 1.15rem;
    font-weight: 800;
}

.day-card.status-good {
    border-color: #b6e5c6;
    background: #f2fbf5;
}

.day-card.status-medium {
    border-color: #f5dfb7;
    background: #fffaf0;
}

.day-card.status-low {
    border-color: #f0c1c1;
    background: #fff4f4;
}

.day-card.today {
    box-shadow: 0 0 0 2px rgba(15, 139, 141, 0.18);
}

.muted { color: var(--muted); }

.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
}
.login-wrap {
    width: min(980px, 100%);
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(21, 36, 61, 0.13);
}
.login-side {
    padding: 44px;
    color: #fff;
    background: linear-gradient(160deg, #0f8b8d 0%, #125b76 55%, #12253e 100%);
}
.login-side h1 { margin: 0; font-size: 2rem; }
.login-side p { margin: 10px 0 0; max-width: 34ch; color: #dcf4f7; }
.login-badges { margin-top: 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.login-badges span {
    border: 1px solid rgba(255,255,255,.34);
    border-radius: 999px;
    font-size: .82rem;
    padding: 6px 10px;
}
.login-card { padding: 34px; }
.login-card h2 { margin: 0; }
.login-card p { margin: 6px 0 16px; color: var(--muted); }
.checkline { display: flex; align-items: center; gap: 8px; }

@media (max-width: 1100px) {
    .calendar-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { position: relative; top: auto; z-index: 1; padding: 16px 14px; gap: 14px; }
    .brand { gap: 10px; }
    .brand-mark { width: 40px; height: 40px; border-radius: 12px; }
    .menu { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
    .menu a { padding: 10px; text-align: center; font-size: .92rem; }
    .content { padding: 16px; }
    .topbar { align-items: flex-start; gap: 10px; flex-wrap: wrap; }
    .topbar h2 { font-size: 1.3rem; }
    .panel, .stat-card { padding: 14px; border-radius: 14px; }
    .btn { padding: 10px 12px; }
    .drawer { width: 94vw; max-width: 94vw; }
    .cards-4, .split, .login-wrap { grid-template-columns: 1fr; }
    .calendar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .login-side, .login-card { padding: 22px; }
    table { display: block; overflow-x: auto; white-space: nowrap; }
    thead, tbody, tr { width: 100%; }
}

@media (min-width: 981px) {
    body.app-layout-body {
        height: 100%;
        overflow: hidden;
    }

    .app-shell {
        height: 100vh;
        min-height: 0;
        overflow: hidden;
    }

    .sidebar {
        height: 100vh;
        min-height: 0;
    }

    .content {
        height: 100vh;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
    }
}

@media (max-width: 600px) {
    .content { padding: 12px; }
    .menu { grid-template-columns: 1fr; }
    .menu a { text-align: left; }
    .inline-actions, .inline-grade { width: 100%; }
    .inline-actions > *,
    .inline-grade > * { min-width: 0; }
    .inline-actions .btn, .inline-grade .btn,
    .inline-actions > form, .inline-grade > form { width: 100%; }
    .user-chip { padding: 8px 12px; font-size: .9rem; }
    .topbar h2 { font-size: 1.15rem; }
    .topbar p { font-size: .85rem; }
    .login-wrap { border-radius: 14px; }
    .login-side h1 { font-size: 1.4rem; }
    .login-side, .login-card { padding: 16px; }
    .form-grid { gap: 8px; }
    input, select, textarea { padding: 9px 10px; font-size: 16px; } /* prevent iOS zoom */
    .calendar-grid { grid-template-columns: 1fr; }
    .calendar-filters { flex-direction: column; align-items: stretch; }
    .pagination-mobile { display: flex; }
    .pagination-mobile .pagination-link { flex: 1; }
    .pagination-desktop { display: none; }
    .filter-bar { align-items: stretch; }
    .filter-bar > * { min-width: 100%; }
    .chart-shell,
    .chart-panel,
    .chart-canvas-wrap {
        height: clamp(220px, 62vw, 260px);
        min-height: 220px;
        max-height: 260px;
    }
    .chart-empty-state {
        min-height: clamp(220px, 62vw, 260px);
    }
}

/* Premium Students dashboard workspace */
.fade-in-up { animation: fadeInUp .36s ease both; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.students-dashboard-shell { display: grid; gap: 22px; }
.students-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr);
    gap: 24px;
    min-height: 318px;
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.92), rgba(248,253,253,.76)),
        radial-gradient(circle at 82% 18%, rgba(45,212,191,.22), transparent 30%),
        radial-gradient(circle at 8% 90%, rgba(59,130,246,.12), transparent 34%);
    box-shadow: 0 24px 60px rgba(15, 23, 42, .10);
    backdrop-filter: blur(18px);
}
.students-hero__glow { position: absolute; border-radius: 999px; filter: blur(6px); opacity: .62; pointer-events: none; }
.students-hero__glow--one { width: 210px; height: 210px; right: -70px; top: -60px; background: rgba(20,184,166,.18); }
.students-hero__glow--two { width: 180px; height: 180px; left: 30%; bottom: -110px; background: rgba(244,162,97,.16); }
.students-hero__left, .students-hero__right { position: relative; z-index: 1; }
.students-hero__left { display: grid; align-content: space-between; gap: 26px; }
.students-hero__copy h1, .premium-form-hero h1 { margin: 0; color: #071827; font-size: clamp(2.2rem, 5vw, 4.8rem); line-height: .94; letter-spacing: -.065em; font-weight: 850; }
.students-hero__copy p, .premium-form-hero p { max-width: 540px; margin: 14px 0 0; color: #607184; font-size: clamp(1rem, 1.6vw, 1.18rem); line-height: 1.65; }
.premium-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: #6b7b8d; font-size: .86rem; font-weight: 750; }
.premium-breadcrumb svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; opacity: .58; }
.students-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(135px, 1fr)); gap: 14px; }
.premium-stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 104px;
    padding: 16px;
    border: 1px solid rgba(226,232,240,.86);
    border-radius: 22px;
    background: rgba(255,255,255,.78);
    box-shadow: 0 14px 34px rgba(15,23,42,.07);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.premium-stat-card:hover { transform: translateY(-4px); box-shadow: 0 22px 42px rgba(15,23,42,.11); border-color: rgba(20,184,166,.30); }
.premium-stat-card strong { display: block; color: #071827; font-size: clamp(1.65rem, 3vw, 2.25rem); line-height: 1; letter-spacing: -.04em; }
.premium-stat-card span:not(.premium-stat-icon) { display: block; margin-top: 7px; color: #68788b; font-size: .83rem; font-weight: 800; }
.premium-stat-icon { width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; border-radius: 16px; }
.premium-stat-icon svg, .hero-utility-row svg, .btn-premium svg, .premium-search-field svg, .icon-action svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.premium-stat-icon--teal { color: #0f766e; background: #ccfbf1; }
.premium-stat-icon--blue { color: #1d4ed8; background: #dbeafe; }
.premium-stat-icon--rose { color: #be185d; background: #fce7f3; }
.premium-stat-icon--green { color: #15803d; background: #dcfce7; }
.students-hero__right { display: grid; align-content: start; gap: 18px; }
.hero-utility-row, .hero-cta-row { display: flex; justify-content: flex-end; align-items: center; gap: 12px; flex-wrap: wrap; }
.premium-utility-btn, .premium-user-chip {
    min-height: 44px;
    border: 1px solid rgba(203,213,225,.76);
    border-radius: 999px;
    background: rgba(255,255,255,.76);
    color: #102033;
    box-shadow: 0 10px 24px rgba(15,23,42,.06);
    backdrop-filter: blur(12px);
}
.premium-utility-btn { display: inline-flex; align-items: center; gap: 9px; padding: 10px 14px; font: inherit; font-weight: 800; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.premium-utility-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 28px rgba(15,23,42,.10); }
.premium-user-chip { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 6px; }
.premium-avatar, .student-avatar { display: inline-grid; place-items: center; border-radius: 999px; font-weight: 850; letter-spacing: -.03em; }
.premium-avatar { width: 36px; height: 36px; color: #fff; background: linear-gradient(135deg, #0f8b8d, #125b76); font-size: .82rem; }
.premium-user-meta { display: grid; line-height: 1.1; }
.premium-user-meta strong { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.premium-user-meta small { font-size: .74rem; }
.premium-role-badge { padding: 6px 9px; border-radius: 999px; color: #0f766e; background: #ccfbf1; font-size: .74rem; font-weight: 850; }
.btn-premium { min-height: 46px; padding-inline: 16px; border-radius: 15px; }
.hero-illustration { position: relative; min-height: 170px; margin-top: 8px; border-radius: 28px; background: linear-gradient(145deg, rgba(255,255,255,.46), rgba(255,255,255,.16)); }
.hero-illustration svg { position: absolute; inset: auto 0 0 auto; width: min(360px, 100%); opacity: .95; }
.hero-illustration__card { position: absolute; border-radius: 22px; background: rgba(255,255,255,.54); border: 1px solid rgba(255,255,255,.72); box-shadow: 0 18px 38px rgba(15,23,42,.08); }
.hero-illustration__card--one { width: 104px; height: 78px; top: 16px; right: 46px; transform: rotate(7deg); }
.hero-illustration__card--two { width: 78px; height: 58px; left: 26px; bottom: 18px; transform: rotate(-10deg); }

.premium-data-panel, .premium-create-card, .premium-form-hero {
    border: 1px solid rgba(226,232,240,.86);
    border-radius: 28px;
    background: rgba(255,255,255,.86);
    box-shadow: 0 18px 46px rgba(15,23,42,.08);
    backdrop-filter: blur(16px);
}
.premium-data-panel { padding: clamp(18px, 2.4vw, 26px); }
.premium-panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 18px; }
.eyebrow { color: #0f8b8d; font-size: .76rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.premium-panel-head h2 { margin: 5px 0 4px; font-size: clamp(1.45rem, 2.2vw, 2rem); letter-spacing: -.035em; }
.premium-panel-head p { margin: 0; color: #64748b; }
.premium-panel-actions { flex-wrap: wrap; justify-content: flex-end; }
.premium-filter-bar { display: grid; grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(150px, .75fr)) auto auto; gap: 12px; align-items: end; padding: 14px; margin-bottom: 18px; border-radius: 22px; background: #f8fbfd; border: 1px solid #e7edf4; }
.premium-filter-bar label, .premium-create-form label { gap: 7px; color: #334155; font-size: .82rem; font-weight: 850; }
.premium-filter-bar label > span { color: #64748b; }
.premium-search-field > div { position: relative; display: flex; align-items: center; }
.premium-search-field svg { position: absolute; left: 13px; color: #94a3b8; width: 18px; height: 18px; }
.premium-search-field input { width: 100%; padding-left: 40px; }
.premium-filter-bar input, .premium-filter-bar select, .premium-create-form input, .premium-create-form select { min-height: 44px; border-color: #dbe4ef; border-radius: 14px; background: rgba(255,255,255,.94); }
.premium-more-filters { position: relative; }
.premium-more-filters summary { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; width: 100%; padding: 10px 14px; border: 1px solid #cbd5e1; border-radius: 14px; background: #fff; font-weight: 850; cursor: pointer; list-style: none; }
.premium-more-filters summary::-webkit-details-marker { display: none; }
.premium-more-filters__menu { position: absolute; z-index: 8; right: 0; top: calc(100% + 8px); display: grid; gap: 10px; min-width: 280px; padding: 14px; border: 1px solid #e2e8f0; border-radius: 18px; background: #fff; box-shadow: 0 20px 40px rgba(15,23,42,.14); }
.premium-table-wrap { overflow-x: auto; border: 1px solid #e6edf5; border-radius: 22px; background: #fff; }
.premium-student-table { border-collapse: separate; border-spacing: 0; min-width: 980px; }
.premium-student-table thead th { padding: 15px 16px; background: #f8fafc; border-bottom: 1px solid #e6edf5; color: #64748b; }
.premium-student-table tbody td { padding: 16px; border-bottom: 1px solid #edf2f7; vertical-align: middle; }
.premium-student-table tbody tr { transition: background .16s ease, transform .16s ease; }
.premium-student-table tbody tr:hover { background: #fbfdff; }
.student-identity { display: flex; align-items: center; gap: 12px; min-width: 190px; }
.student-identity strong { display: block; color: #102033; }
.student-identity small { display: block; margin-top: 3px; }
.student-avatar { width: 42px; height: 42px; flex: 0 0 42px; color: #0f766e; background: linear-gradient(135deg, #ccfbf1, #e0f2fe); border: 1px solid rgba(20,184,166,.22); }
.mono-chip { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: #f1f5f9; color: #334155; font-size: .82rem; font-weight: 850; }
.indicator-pill { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 6px 10px; font-size: .8rem; font-weight: 850; }
.indicator-pill span { width: 8px; height: 8px; border-radius: 999px; }
.indicator-pill.is-on { background: #dcfce7; color: #166534; }
.indicator-pill.is-on span { background: #22c55e; }
.indicator-pill.is-off { background: #f1f5f9; color: #64748b; }
.indicator-pill.is-off span { background: #94a3b8; }
.premium-action-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.premium-action-row form { margin: 0; }
.icon-action { width: 34px; height: 34px; display: inline-grid; place-items: center; border: 1px solid #dbe4ef; border-radius: 12px; background: #fff; color: #475569; box-shadow: 0 1px 2px rgba(15,23,42,.04); transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, color .16s ease; cursor: pointer; }
.icon-action:hover { transform: translateY(-2px); color: #0f8b8d; border-color: rgba(15,139,141,.36); box-shadow: 0 10px 18px rgba(15,23,42,.08); }
.icon-action.is-primary { color: #0f8b8d; background: #ecfeff; }
.icon-action.is-danger { color: #b91c1c; }
.premium-pager { margin-top: 18px; }

.premium-form-hero { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: clamp(22px, 3vw, 32px); }
.premium-form-hero h1 { font-size: clamp(2rem, 4vw, 3.6rem); }
.premium-create-card { display: grid; grid-template-columns: 290px 1fr; gap: 22px; padding: clamp(18px, 2.6vw, 28px); }
.quick-tips-card { align-self: start; padding: 20px; border-radius: 22px; background: linear-gradient(160deg, #ecfeff, #f8fafc); border: 1px solid #d7f4f3; }
.quick-tips-badge { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: #0f8b8d; color: #fff; font-size: .75rem; font-weight: 900; }
.quick-tips-card h3 { margin: 14px 0 8px; }
.quick-tips-card p { margin: 0; color: #5f6d7b; line-height: 1.65; }
.premium-create-form { display: grid; gap: 22px; }
.form-section-heading { display: flex; align-items: flex-start; gap: 12px; padding-top: 4px; }
.form-section-heading > span { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 12px; background: #ccfbf1; color: #0f766e; font-weight: 900; }
.form-section-heading h3 { margin: 0; }
.form-section-heading p { margin: 4px 0 0; color: #64748b; }
.premium-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.premium-check { display: flex !important; align-items: center; gap: 9px !important; min-height: 44px; padding: 10px 12px; border: 1px solid #dbe4ef; border-radius: 14px; background: #fff; }
.premium-check input { min-height: auto; width: 16px; height: 16px; }
.premium-form-actions { display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; padding-top: 4px; }

@media (max-width: 1180px) {
    .students-hero { grid-template-columns: 1fr; }
    .students-hero__right { align-content: start; }
    .hero-utility-row, .hero-cta-row { justify-content: flex-start; }
    .hero-illustration { min-height: 130px; }
    .premium-filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
    .students-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .premium-panel-head, .premium-form-hero { flex-direction: column; align-items: stretch; }
    .premium-panel-actions, .premium-form-actions { justify-content: stretch; }
    .premium-panel-actions .btn, .premium-form-actions .btn { flex: 1 1 160px; }
    .premium-create-card { grid-template-columns: 1fr; }
    .premium-form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .students-hero, .premium-data-panel, .premium-create-card, .premium-form-hero { border-radius: 22px; }
    .students-stat-grid, .premium-filter-bar { grid-template-columns: 1fr; }
    .premium-user-chip { width: 100%; }
    .premium-user-meta { flex: 1; }
    .hero-cta-row .btn { flex: 1 1 100%; }
    .premium-table-wrap { overflow: visible; border: 0; background: transparent; }
    .premium-student-table { min-width: 0; display: block; }
    .premium-student-table thead { display: none; }
    .premium-student-table tbody, .premium-student-table tr, .premium-student-table td { display: block; width: 100%; }
    .premium-student-table tbody tr { margin-bottom: 12px; border: 1px solid #e6edf5; border-radius: 20px; background: #fff; box-shadow: 0 10px 24px rgba(15,23,42,.06); overflow: hidden; }
    .premium-student-table tbody td { display: flex; justify-content: space-between; gap: 12px; padding: 13px 14px; border-bottom: 1px solid #edf2f7; white-space: normal; }
    .premium-student-table tbody td::before { content: attr(data-label); color: #64748b; font-size: .75rem; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
    .premium-student-table tbody td:first-child { display: block; }
    .premium-student-table tbody td:first-child::before { display: none; }
    .premium-action-row { justify-content: flex-end; }
    .premium-more-filters__menu { position: static; min-width: 0; margin-top: 8px; box-shadow: none; }
}

/* Core operations consistency layer */
.ops-shell { display: grid; gap: 22px; }
.ops-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 22px;
    padding: clamp(20px, 3vw, 32px);
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(247,252,252,.78)), radial-gradient(circle at 92% 8%, rgba(20,184,166,.16), transparent 30%);
    box-shadow: 0 22px 54px rgba(15,23,42,.09);
    backdrop-filter: blur(16px);
}
.ops-hero::after { content:""; position:absolute; width:210px; height:210px; right:-72px; bottom:-98px; border-radius:999px; background:rgba(59,130,246,.10); }
.ops-hero__content, .ops-hero__aside { position: relative; z-index: 1; }
.ops-hero__content { display: grid; gap: 12px; max-width: 740px; }
.ops-hero h1 { margin: 0; font-size: clamp(2rem, 4.4vw, 4.25rem); line-height: .96; letter-spacing: -.06em; color: #071827; }
.ops-hero p { margin: 0; color: #607184; font-size: 1.04rem; line-height: 1.65; }
.ops-hero__aside { min-width: 230px; display: flex; align-items: flex-start; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.ops-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ops-stat-card { display:flex; gap:12px; align-items:center; min-height:96px; padding:16px; border:1px solid #e5edf5; border-radius:22px; background:rgba(255,255,255,.86); box-shadow:0 14px 32px rgba(15,23,42,.07); transition:transform .18s ease, box-shadow .18s ease; }
.ops-stat-card:hover { transform: translateY(-3px); box-shadow:0 20px 38px rgba(15,23,42,.10); }
.ops-stat-card strong { display:block; font-size: clamp(1.45rem, 2.4vw, 2.15rem); line-height: 1; letter-spacing: -.04em; }
.ops-stat-card span:last-child { display:block; margin-top:6px; color:#64748b; font-size:.82rem; font-weight:850; }
.ops-icon { width:44px; height:44px; flex:0 0 44px; display:grid; place-items:center; border-radius:15px; color:#0f766e; background:#ccfbf1; }
.ops-icon.blue { color:#1d4ed8; background:#dbeafe; } .ops-icon.amber { color:#b45309; background:#fef3c7; } .ops-icon.green { color:#15803d; background:#dcfce7; } .ops-icon.rose { color:#be123c; background:#ffe4e6; }
.ops-icon svg, .ops-hero svg, .ops-action svg { width:19px; height:19px; stroke:currentColor; fill:none; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.ops-panel { padding: clamp(18px, 2.4vw, 26px); border: 1px solid #e5edf5; border-radius: 26px; background: rgba(255,255,255,.88); box-shadow: 0 18px 44px rgba(15,23,42,.08); backdrop-filter: blur(14px); }
.ops-panel-head { display:flex; justify-content:space-between; align-items:flex-start; gap:18px; margin-bottom:18px; }
.ops-panel-head h2 { margin:4px 0; font-size:clamp(1.35rem, 2vw, 1.9rem); letter-spacing:-.035em; }
.ops-panel-head p { margin:0; color:#64748b; }
.ops-filter-bar { display:grid; grid-template-columns: repeat(5, minmax(145px, 1fr)); gap:12px; align-items:end; padding:14px; margin-bottom:18px; border:1px solid #e7edf4; border-radius:22px; background:#f8fbfd; }
.ops-filter-bar label { gap:7px; color:#64748b; font-size:.8rem; font-weight:850; }
.ops-filter-bar input, .ops-filter-bar select { min-height:44px; border-radius:14px; background:#fff; }
.ops-filter-bar .is-wide { grid-column: span 2; }
.ops-card-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap:14px; }
.ops-info-card { padding:16px; border:1px solid #e5edf5; border-radius:20px; background:#fff; box-shadow:0 10px 24px rgba(15,23,42,.05); }
.ops-info-card h3 { margin:0 0 7px; } .ops-info-card p { margin:0; color:#64748b; line-height:1.55; }
.ops-table-wrap { overflow-x:auto; border:1px solid #e6edf5; border-radius:22px; background:#fff; }
.ops-table { border-collapse:separate; border-spacing:0; min-width:900px; }
.ops-table thead th { padding:15px 16px; background:#f8fafc; border-bottom:1px solid #e6edf5; }
.ops-table tbody td { padding:15px 16px; border-bottom:1px solid #edf2f7; vertical-align:middle; }
.ops-table tbody tr:hover { background:#fbfdff; }
.ops-action-row { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.ops-action-row form { margin:0; }
.ops-action { width:34px; height:34px; display:inline-grid; place-items:center; border:1px solid #dbe4ef; border-radius:12px; background:#fff; color:#475569; cursor:pointer; transition:transform .16s ease, box-shadow .16s ease, color .16s ease; }
.ops-action:hover { transform:translateY(-2px); color:#0f8b8d; box-shadow:0 10px 18px rgba(15,23,42,.08); }
.ops-action.danger { color:#b91c1c; }
.ops-form-grid { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:14px; }
.ops-form-grid .span-all { grid-column:1/-1; }
.ops-empty { display:grid; place-items:center; gap:8px; min-height:150px; padding:22px; color:#64748b; text-align:center; }
.ops-empty strong { color:#0f172a; font-size:1.05rem; }
.ops-pipeline { display:grid; grid-template-columns: repeat(5, minmax(130px, 1fr)); gap:12px; }
.ops-pipeline-card { padding:14px; border-radius:18px; border:1px solid #e5edf5; background:#fff; box-shadow:0 10px 24px rgba(15,23,42,.05); }
.ops-pipeline-card strong { display:block; font-size:1.45rem; } .ops-pipeline-card span { color:#64748b; font-weight:800; font-size:.82rem; }
.ops-checklist { counter-reset: setup; display:grid; gap:10px; }
.ops-checklist li { list-style:none; display:flex; gap:10px; align-items:center; padding:12px; border:1px solid #e5edf5; border-radius:16px; background:#fff; }
.ops-checklist li::before { counter-increment: setup; content: counter(setup); width:28px; height:28px; display:grid; place-items:center; border-radius:10px; background:#ccfbf1; color:#0f766e; font-weight:900; }
@media (max-width: 1100px) { .ops-stat-grid, .ops-filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ops-filter-bar .is-wide { grid-column: span 1; } .ops-pipeline { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .ops-hero, .ops-panel-head { flex-direction:column; } .ops-stat-grid, .ops-filter-bar, .ops-form-grid, .ops-pipeline { grid-template-columns:1fr; } .ops-hero__aside { justify-content:flex-start; } .ops-table-wrap { overflow:visible; border:0; background:transparent; } .ops-table { min-width:0; display:block; } .ops-table thead { display:none; } .ops-table tbody, .ops-table tr, .ops-table td { display:block; width:100%; } .ops-table tr { margin-bottom:12px; border:1px solid #e6edf5; border-radius:18px; background:#fff; overflow:hidden; box-shadow:0 10px 22px rgba(15,23,42,.06); } .ops-table td { display:flex; justify-content:space-between; gap:12px; white-space:normal; } .ops-table td::before { content:attr(data-label); color:#64748b; font-size:.72rem; font-weight:900; text-transform:uppercase; } }

/* Global tenant topbar cleanup */
.global-topbar {
    position: sticky;
    top: 0;
    z-index: 80;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    min-height: 66px;
    margin: -6px 0 20px;
    padding: 10px 14px;
    border: 1px solid rgba(226, 232, 240, .84);
    border-radius: 22px;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .07);
    backdrop-filter: blur(16px);
}
.global-topbar__left,
.global-topbar__right,
.global-topbar__crumb,
.global-user-trigger,
.global-menu-item,
.global-user-dropdown__head { display: flex; align-items: center; }
.global-topbar__left { gap: 12px; min-width: 0; }
.global-topbar__right { gap: 10px; margin-left: auto; }
.global-topbar__crumb {
    gap: 10px;
    min-width: 0;
    color: #475569;
    font-size: .88rem;
    font-weight: 800;
    letter-spacing: -.01em;
}
.global-topbar__crumb > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: min(38vw, 420px);
}
.global-topbar__logo,
.global-topbar__mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    flex: 0 0 auto;
}
.global-topbar__logo { object-fit: cover; border: 1px solid rgba(226,232,240,.85); }
.global-topbar__mark {
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .04em;
    box-shadow: 0 12px 22px rgba(15, 139, 141, .18);
}
.global-user-menu { position: relative; }
.global-user-trigger {
    gap: 10px;
    min-height: 44px;
    padding: 5px 8px 5px 5px;
    border: 1px solid rgba(203, 213, 225, .86);
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    color: #0f172a;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(15, 23, 42, .06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.global-user-trigger:hover,
.global-user-trigger[aria-expanded="true"] {
    transform: translateY(-1px);
    border-color: rgba(15, 139, 141, .34);
    box-shadow: 0 16px 32px rgba(15, 23, 42, .1);
}
.global-user-trigger:focus-visible,
.global-menu-item:focus-visible { outline: 3px solid rgba(15, 139, 141, .22); outline-offset: 2px; }
.global-user-avatar {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: -.02em;
    flex: 0 0 auto;
}
.global-user-text { display: grid; text-align: left; line-height: 1.1; min-width: 0; }
.global-user-text strong,
.global-user-dropdown__head strong { font-size: .9rem; font-weight: 900; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.global-user-text small,
.global-user-dropdown__head small { color: #64748b; font-size: .74rem; font-weight: 800; }
.global-user-chevron { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: .62; transition: transform .18s ease; }
.global-user-trigger[aria-expanded="true"] .global-user-chevron { transform: rotate(180deg); }
.global-notif-dot {
    display: inline-grid;
    place-items: center;
    min-width: 21px;
    height: 21px;
    padding: 0 6px;
    border-radius: 999px;
    background: #e11d48;
    color: #fff;
    font-size: .68rem;
    font-weight: 900;
}
.global-user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(300px, calc(100vw - 32px));
    padding: 8px;
    border: 1px solid rgba(226,232,240,.9);
    border-radius: 20px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 24px 60px rgba(15,23,42,.16);
    transform: translateY(-6px) scale(.98);
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease;
}
.global-user-dropdown.is-open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.global-user-dropdown__head {
    gap: 10px;
    padding: 10px;
    margin-bottom: 6px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(15,139,141,.1), rgba(18,91,118,.07));
}
.global-menu-item {
    width: 100%;
    gap: 10px;
    padding: 10px 11px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #334155;
    font: inherit;
    font-size: .9rem;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
    transition: background .16s ease, color .16s ease, transform .16s ease;
}
.global-menu-item:hover { background: #f1f5f9; color: var(--brand-2); transform: translateX(1px); }
.global-menu-item svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.global-menu-item span { flex: 1; text-align: left; }
.global-menu-item em {
    min-width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: #e11d48;
    color: #fff;
    font-size: .72rem;
    font-style: normal;
    font-weight: 900;
}
.global-menu-form { margin: 0; }
.notif-time { display: inline-block; margin-top: 4px; color: #64748b; }

@media (max-width: 760px) {
    .global-topbar { border-radius: 18px; padding: 9px 10px; margin: -4px 0 16px; }
    .global-user-text { display: none; }
    .global-user-trigger { padding-right: 7px; }
    .global-topbar__crumb > span:last-child { max-width: 44vw; }
}
@media (max-width: 480px) {
    .global-topbar__crumb > span:last-child { display: none; }
    .global-user-chevron { display: none; }
    .global-user-dropdown { right: -4px; }
}

/* Parent Portal MVP */
.parent-portal-body { min-height: 100vh; background: linear-gradient(135deg, #eefdfb 0%, #f8fafc 46%, #fff7ed 100%); color: #0f172a; }
.parent-topbar { max-width: 1180px; margin: 18px auto 0; padding: 12px 16px; display:flex; align-items:center; justify-content:space-between; gap:14px; border:1px solid rgba(226,232,240,.85); border-radius:24px; background:rgba(255,255,255,.86); box-shadow:0 18px 45px rgba(15,23,42,.08); backdrop-filter: blur(16px); }
.parent-brand { display:flex; align-items:center; gap:10px; color:#0f172a; text-decoration:none; }
.parent-brand span { width:38px; height:38px; display:grid; place-items:center; border-radius:14px; color:#fff; background:linear-gradient(135deg, var(--brand), var(--brand-2)); font-weight:900; font-size:.76rem; }
.parent-nav { display:flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.parent-nav a, .parent-nav button { border:0; border-radius:999px; padding:9px 12px; background:transparent; color:#475569; text-decoration:none; font:inherit; font-size:.88rem; font-weight:800; cursor:pointer; }
.parent-nav a:hover, .parent-nav button:hover { background:#f1f5f9; color:var(--brand-2); }
.parent-nav form { margin:0; }
.parent-shell { max-width:1180px; margin:22px auto 48px; padding:0 16px; }
.parent-hero, .parent-login-card, .parent-panel, .parent-card, .parent-student-card { border:1px solid rgba(226,232,240,.82); border-radius:28px; background:rgba(255,255,255,.9); box-shadow:0 18px 45px rgba(15,23,42,.07); }
.parent-hero { padding:28px; margin-bottom:18px; background:linear-gradient(135deg, rgba(15,139,141,.12), rgba(255,255,255,.92)); }
.parent-hero h1, .parent-login-card h1 { margin:6px 0 8px; font-size:clamp(1.8rem, 4vw, 3rem); letter-spacing:-.05em; }
.parent-hero p, .parent-login-card p { margin:0; color:#64748b; font-weight:700; }
.parent-login-card { max-width:760px; margin:60px auto; padding:28px; display:grid; gap:22px; grid-template-columns: 1.1fr .9fr; align-items:center; }
.parent-grid { display:grid; gap:14px; margin-bottom:18px; }
.parent-card { padding:18px; }
.parent-card strong { display:block; font-size:2rem; letter-spacing:-.05em; }
.parent-card span, .parent-row span, .parent-student-card span { color:#64748b; font-weight:700; }
.parent-panel { padding:20px; margin-bottom:18px; }
.parent-panel h2 { margin:0 0 14px; font-size:1.2rem; }
.parent-card-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:12px; }
.parent-student-card { display:block; padding:16px; color:#0f172a; text-decoration:none; transition: transform .18s ease, box-shadow .18s ease; }
.parent-student-card:hover { transform:translateY(-2px); box-shadow:0 22px 48px rgba(15,23,42,.11); }
.parent-student-card strong { display:block; font-size:1.05rem; margin-bottom:4px; }
.parent-student-card em, .parent-row em { color:var(--brand-2); font-style:normal; font-size:.82rem; font-weight:900; }
.parent-row { display:flex; justify-content:space-between; gap:12px; align-items:center; padding:12px 0; border-top:1px solid #e2e8f0; color:#0f172a; text-decoration:none; }
.parent-row:first-of-type { border-top:0; }
.parent-row div { display:grid; gap:3px; }
.parent-row strong { font-weight:900; }
@media (max-width:760px){ .parent-topbar { margin:10px 10px 0; border-radius:20px; align-items:flex-start; } .parent-nav { width:100%; justify-content:flex-start; } .parent-login-card { grid-template-columns:1fr; margin:24px auto; } .parent-row { align-items:flex-start; flex-direction:column; } }
