@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --bg: #07101f;
    --bg-soft: #0a1425;
    --panel: rgba(14, 26, 46, 0.72);
    --panel-strong: rgba(15, 28, 50, 0.94);
    --line: rgba(148, 168, 208, 0.12);
    --line-bright: rgba(148, 168, 208, 0.2);
    --text: #f4f7ff;
    --text-soft: #a3afc4;
    --text-muted: #6f7c93;
    --violet: #806dff;
    --violet-light: #9e91ff;
    --cyan: #42c9f5;
    --amber: #f6b74a;
    --emerald: #3ed7a4;
    --danger: #ff6b82;
    --sidebar-width: 270px;
    --radius: 18px;
    --shadow: 0 26px 70px rgba(0, 0, 0, 0.26);
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--text);
    background:
        radial-gradient(circle at 72% -10%, rgba(77, 65, 181, 0.13), transparent 35%),
        var(--bg);
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.brand-mark {
    position: relative;
    display: grid;
    width: 37px;
    height: 37px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(157, 143, 255, 0.55);
    border-radius: 12px;
    background: linear-gradient(145deg, #8b77ff, #5441d8);
    box-shadow: 0 8px 24px rgba(103, 82, 234, 0.3), inset 0 1px rgba(255, 255, 255, 0.25);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span {
    position: absolute;
    content: "";
    transform: rotate(45deg);
    border: 2px solid white;
    border-radius: 2px;
}

.brand-mark::before {
    width: 13px;
    height: 13px;
    left: 7px;
    opacity: 0.72;
}

.brand-mark::after {
    width: 13px;
    height: 13px;
    right: 7px;
}

.brand-mark span {
    z-index: 2;
    width: 7px;
    height: 7px;
    border: 0;
    background: #fff;
}

.brand strong {
    display: block;
    font-size: 19px;
    font-weight: 760;
    letter-spacing: 0.14em;
    line-height: 1.1;
}

.brand small {
    display: block;
    margin-top: 4px;
    color: #75819a;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.22em;
}

.brand-large .brand-mark {
    width: 45px;
    height: 45px;
    border-radius: 14px;
}

.brand-large strong {
    font-size: 22px;
}

.brand-large small {
    color: rgba(223, 228, 255, 0.5);
}

.button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 17px;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 650;
    transition: 180ms ease;
}

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

.button-primary {
    color: white;
    background: linear-gradient(135deg, #7664f5, #604ee0);
    border-color: rgba(164, 148, 255, 0.28);
    box-shadow: 0 9px 25px rgba(84, 65, 211, 0.27), inset 0 1px rgba(255, 255, 255, 0.18);
}

.button-primary:hover {
    box-shadow: 0 12px 30px rgba(84, 65, 211, 0.38), inset 0 1px rgba(255, 255, 255, 0.18);
}

.button-secondary {
    border-color: var(--line-bright);
    background: rgba(18, 31, 53, 0.76);
}

.button-secondary:hover {
    border-color: rgba(135, 119, 255, 0.4);
    background: rgba(26, 39, 65, 0.9);
}

.button-wide {
    width: 100%;
    min-height: 50px;
    margin-top: 4px;
    border-radius: 13px;
}

.button-wide svg {
    margin-left: auto;
}

.button-plus {
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
}

.icon-button {
    display: inline-grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    cursor: pointer;
    place-items: center;
    color: var(--text-soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(16, 29, 50, 0.7);
    transition: 180ms ease;
}

.icon-button:hover {
    color: white;
    border-color: rgba(128, 109, 255, 0.4);
    background: rgba(31, 43, 69, 0.9);
}

/* Authentication and installation */
.auth-page {
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 12% 85%, rgba(75, 56, 183, 0.2), transparent 30%),
        radial-gradient(circle at 80% 10%, rgba(35, 124, 182, 0.11), transparent 26%),
        #060d1a;
}

.ambient {
    position: fixed;
    z-index: 0;
    width: 340px;
    height: 340px;
    pointer-events: none;
    filter: blur(100px);
    border-radius: 50%;
    opacity: 0.25;
}

.ambient-one {
    top: -170px;
    right: 10%;
    background: #704cff;
}

.ambient-two {
    bottom: -200px;
    left: 5%;
    background: #147eb7;
}

.setup-shell,
.login-shell {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 100vh;
}

.setup-shell {
    grid-template-columns: minmax(380px, 0.9fr) minmax(530px, 1.1fr);
    gap: 72px;
    align-items: center;
    max-width: 1260px;
    margin: 0 auto;
    padding: 58px;
}

.auth-intro {
    display: flex;
    min-height: 610px;
    flex-direction: column;
}

.intro-copy {
    margin: auto 0 48px;
}

.intro-badge,
.section-kicker,
.eyebrow {
    color: var(--violet-light);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.17em;
}

.intro-badge {
    display: inline-flex;
    padding: 7px 10px;
    border: 1px solid rgba(128, 109, 255, 0.25);
    border-radius: 7px;
    background: rgba(128, 109, 255, 0.09);
}

.intro-copy h1,
.showcase-content h1 {
    max-width: 600px;
    margin: 20px 0 18px;
    font-size: clamp(38px, 4vw, 58px);
    font-weight: 720;
    letter-spacing: -0.045em;
    line-height: 1.06;
}

.intro-copy p,
.showcase-content p {
    max-width: 540px;
    margin: 0;
    color: #909db3;
    font-size: 16px;
    line-height: 1.75;
}

.feature-list {
    display: grid;
    gap: 18px;
}

.feature-list > div {
    display: flex;
    align-items: center;
    gap: 13px;
}

.feature-list > div > span {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    place-items: center;
    color: #a89cff;
    border: 1px solid rgba(128, 109, 255, 0.24);
    border-radius: 10px;
    background: rgba(128, 109, 255, 0.08);
}

.feature-list p {
    margin: 0;
}

.feature-list strong,
.feature-list small {
    display: block;
}

.feature-list strong {
    font-size: 13px;
}

.feature-list small {
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 12px;
}

.auth-card {
    width: 100%;
    border: 1px solid rgba(152, 166, 199, 0.14);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(17, 31, 54, 0.9), rgba(9, 19, 35, 0.88));
    box-shadow: 0 32px 100px rgba(0, 0, 0, 0.36), inset 0 1px rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(22px);
}

.setup-card {
    max-width: 580px;
    justify-self: end;
    padding: 38px;
}

.auth-card-header {
    margin-bottom: 27px;
}

.auth-card-header h2 {
    margin: 15px 0 8px;
    font-size: 27px;
    letter-spacing: -0.025em;
}

.auth-card-header p {
    margin: 0;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.7;
}

.step-pill {
    display: inline-block;
    padding: 5px 9px;
    color: #ada3ff;
    border: 1px solid rgba(128, 109, 255, 0.25);
    border-radius: 20px;
    background: rgba(128, 109, 255, 0.08);
    font-size: 10px;
    font-weight: 700;
}

.auth-form {
    display: grid;
    gap: 17px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 14px;
}

.field {
    display: grid;
    gap: 8px;
}

.field > span {
    color: #c6cede;
    font-size: 12px;
    font-weight: 620;
}

.field input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    color: var(--text);
    outline: none;
    border: 1px solid rgba(149, 165, 198, 0.15);
    border-radius: 11px;
    background: rgba(4, 12, 24, 0.54);
    transition: 160ms ease;
}

.field input:focus {
    border-color: rgba(128, 109, 255, 0.65);
    box-shadow: 0 0 0 3px rgba(128, 109, 255, 0.1);
}

.field input::placeholder {
    color: #536078;
}

.field small {
    margin-top: -3px;
    color: var(--text-muted);
    font-size: 10px;
}

.password-wrap {
    position: relative;
}

.password-wrap input {
    padding-right: 70px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    padding: 4px;
    cursor: pointer;
    transform: translateY(-50%);
    color: #9183ff;
    border: 0;
    background: transparent;
    font-size: 11px;
    font-weight: 650;
}

.secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 22px 0 0;
    color: #657188;
    font-size: 10px;
}

.secure-note svg {
    color: var(--emerald);
}

.alert {
    display: grid;
    gap: 4px;
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid;
    border-radius: 10px;
    font-size: 12px;
}

.alert-error {
    color: #ffc0ca;
    border-color: rgba(255, 107, 130, 0.25);
    background: rgba(255, 107, 130, 0.08);
}

.alert-success {
    color: #a5f2d8;
    border-color: rgba(62, 215, 164, 0.25);
    background: rgba(62, 215, 164, 0.08);
}

.login-shell {
    grid-template-columns: minmax(460px, 1.12fr) minmax(480px, 0.88fr);
}

.login-showcase {
    position: relative;
    display: flex;
    overflow: hidden;
    flex-direction: column;
    padding: 58px clamp(44px, 7vw, 110px);
    border-right: 1px solid var(--line);
    background:
        linear-gradient(135deg, rgba(10, 19, 36, 0.55), rgba(14, 22, 45, 0.9)),
        repeating-linear-gradient(90deg, transparent 0, transparent 79px, rgba(255, 255, 255, 0.018) 80px),
        repeating-linear-gradient(0deg, transparent 0, transparent 79px, rgba(255, 255, 255, 0.018) 80px);
}

.login-showcase::after {
    position: absolute;
    top: 22%;
    right: -12%;
    width: 520px;
    height: 520px;
    content: "";
    pointer-events: none;
    border: 1px solid rgba(128, 109, 255, 0.15);
    border-radius: 50%;
    box-shadow:
        0 0 0 70px rgba(128, 109, 255, 0.025),
        0 0 0 140px rgba(128, 109, 255, 0.018);
}

.showcase-content {
    position: relative;
    z-index: 1;
    margin: auto 0;
}

.showcase-content h1 {
    max-width: 710px;
}

.showcase-metrics {
    display: flex;
    gap: 46px;
    margin-top: 48px;
}

.showcase-metrics div {
    display: grid;
    gap: 2px;
}

.showcase-metrics strong {
    color: #a99dff;
    font-size: 24px;
}

.showcase-metrics span {
    color: var(--text-muted);
    font-size: 11px;
}

.showcase-footer {
    margin: 0;
    color: #4e5a70;
    font-size: 10px;
    letter-spacing: 0.08em;
}

.login-card {
    align-self: center;
    width: min(430px, calc(100% - 64px));
    justify-self: center;
    padding: 43px;
}

.login-card .auth-card-header {
    text-align: center;
}

.login-card .auth-card-header h2 {
    margin-top: 18px;
}

.welcome-icon {
    display: inline-grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: #b7aeff;
    border: 1px solid rgba(128, 109, 255, 0.32);
    border-radius: 15px;
    background: linear-gradient(145deg, rgba(128, 109, 255, 0.18), rgba(128, 109, 255, 0.05));
    font-size: 19px;
    font-weight: 760;
    box-shadow: 0 12px 30px rgba(79, 62, 196, 0.15);
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 11px;
}

.checkbox {
    display: flex;
    cursor: pointer;
    align-items: center;
    gap: 7px;
}

.checkbox input {
    accent-color: var(--violet);
}

.muted-link {
    color: #9387f5;
}

.demo-credentials {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 20px;
    padding: 10px 12px;
    color: var(--text-muted);
    border: 1px dashed rgba(149, 165, 198, 0.16);
    border-radius: 9px;
    font-size: 9px;
}

.demo-credentials code {
    padding: 3px 5px;
    color: #a9b3c7;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 9px;
}

.mobile-brand {
    display: none;
}

/* Sidebar */
.sidebar {
    position: fixed;
    z-index: 100;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    width: var(--sidebar-width);
    flex-direction: column;
    border-right: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(10, 20, 37, 0.98), rgba(7, 16, 31, 0.99)),
        var(--bg);
    box-shadow: 18px 0 55px rgba(0, 0, 0, 0.12);
}

.sidebar-brand {
    display: flex;
    height: 88px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    border-bottom: 1px solid rgba(148, 168, 208, 0.08);
}

.sidebar-close {
    display: none;
    width: 34px;
    height: 34px;
    font-size: 23px;
    font-weight: 300;
}

.sidebar-scroll {
    min-height: 0;
    flex: 1;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(123, 108, 224, 0.24) transparent;
}

.sidebar-nav {
    padding: 22px 14px;
}

.nav-label {
    margin: 20px 12px 8px;
    color: #4f5c73;
    font-size: 8px;
    font-weight: 760;
    letter-spacing: 0.17em;
}

.nav-label:first-child {
    margin-top: 0;
}

.nav-item {
    position: relative;
    display: flex;
    min-height: 41px;
    align-items: center;
    gap: 12px;
    margin: 2px 0;
    padding: 0 12px;
    color: #8996aa;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 520;
    transition: 150ms ease;
}

.nav-item:hover {
    color: #dce3f2;
    background: rgba(255, 255, 255, 0.025);
}

.nav-item.active {
    color: #fff;
    border-color: rgba(139, 122, 255, 0.13);
    background: linear-gradient(90deg, rgba(126, 106, 247, 0.2), rgba(126, 106, 247, 0.06));
    box-shadow: inset 3px 0 #826fff;
}

.nav-item.active .nav-icon {
    color: #a99dff;
}

.nav-icon {
    display: grid;
    width: 22px;
    flex: 0 0 auto;
    place-items: center;
    color: #69778e;
}

.nav-arrow {
    display: grid;
    margin-left: auto;
    color: #3f4c61;
}

.sidebar-footer {
    flex: 0 0 auto;
    padding: 12px 14px 17px;
    border-top: 1px solid rgba(148, 168, 208, 0.08);
}

.logout-link:hover {
    color: #ff93a4;
    background: rgba(255, 107, 130, 0.05);
}

.system-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 13px 5px 0;
    padding: 12px;
    border: 1px solid rgba(148, 168, 208, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.018);
}

.status-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 0 4px rgba(62, 215, 164, 0.08), 0 0 12px rgba(62, 215, 164, 0.5);
}

.system-status strong,
.system-status small {
    display: block;
}

.system-status strong {
    color: #9facbf;
    font-size: 9px;
}

.system-status small {
    margin-top: 2px;
    color: #536075;
    font-size: 8px;
}

.sidebar-overlay {
    position: fixed;
    z-index: 90;
    inset: 0;
    visibility: hidden;
    background: rgba(2, 7, 15, 0.65);
    opacity: 0;
    backdrop-filter: blur(3px);
    transition: 180ms ease;
}

/* Topbar */
.app-shell {
    min-height: 100vh;
    margin-left: var(--sidebar-width);
}

.topbar {
    position: sticky;
    z-index: 40;
    top: 0;
    display: flex;
    height: 88px;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 16, 31, 0.76);
    backdrop-filter: blur(20px);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 13px;
}

.topbar-left h1 {
    margin: 2px 0 0;
    font-size: 19px;
    font-weight: 680;
    letter-spacing: -0.02em;
}

.eyebrow {
    margin: 0;
    color: #59667e;
    font-size: 8px;
}

.wave {
    color: #f6c35e;
    font-size: 14px;
}

.menu-toggle {
    display: none;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 11px;
}

.search-box {
    display: flex;
    width: min(320px, 25vw);
    height: 42px;
    align-items: center;
    gap: 9px;
    padding: 0 11px;
    color: #5e6c83;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(14, 26, 46, 0.62);
}

.search-box:focus-within {
    border-color: rgba(128, 109, 255, 0.4);
}

.search-box input {
    min-width: 0;
    flex: 1;
    color: var(--text);
    outline: none;
    border: 0;
    background: transparent;
    font-size: 11px;
}

.search-box input::placeholder {
    color: #566278;
}

.search-box kbd {
    padding: 3px 6px;
    color: #657188;
    border: 1px solid rgba(148, 168, 208, 0.12);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.025);
    font-family: inherit;
    font-size: 8px;
}

.notification-button {
    position: relative;
}

.notification-dot {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 6px;
    height: 6px;
    border: 2px solid #111d31;
    border-radius: 50%;
    background: #ff6680;
}

.profile-button {
    display: flex;
    min-width: 178px;
    height: 48px;
    cursor: pointer;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
}

.profile-button:hover {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.02);
}

.avatar {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    color: #d8d2ff;
    border: 1px solid rgba(135, 119, 255, 0.3);
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(128, 109, 255, 0.24), rgba(128, 109, 255, 0.07));
    font-size: 10px;
    font-weight: 720;
}

.profile-copy {
    min-width: 0;
    text-align: left;
}

.profile-copy strong,
.profile-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-copy strong {
    max-width: 105px;
    font-size: 10px;
}

.profile-copy small {
    margin-top: 2px;
    color: #657188;
    font-size: 8px;
}

.chevron {
    margin-left: auto;
    color: #657188;
}

/* Dashboard */
.dashboard-content {
    width: 100%;
    max-width: 1550px;
    margin: 0 auto;
    padding: 27px 30px 46px;
}

.app-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 24px;
    padding: 18px 4px 0;
    color: rgba(183, 194, 216, 0.48);
    font-size: 11px;
}

.app-footer span {
    color: rgba(247, 249, 255, 0.72);
    font-weight: 750;
    letter-spacing: 0.08em;
}

.app-footer small {
    color: inherit;
}

.welcome-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.welcome-row h2 {
    margin: 4px 0 0;
    font-size: 23px;
    font-weight: 680;
    letter-spacing: -0.025em;
}

.page-subtitle {
    margin: 0;
    color: #69758b;
    font-size: 11px;
}

.welcome-actions {
    display: flex;
    gap: 9px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 15px;
}

.stat-card {
    position: relative;
    min-height: 168px;
    overflow: hidden;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(17, 31, 53, 0.84), rgba(11, 22, 40, 0.78));
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.11), inset 0 1px rgba(255, 255, 255, 0.025);
}

.stat-card::after {
    position: absolute;
    right: -25px;
    bottom: -55px;
    width: 135px;
    height: 135px;
    content: "";
    border-radius: 50%;
    background: currentColor;
    opacity: 0.035;
    filter: blur(2px);
}

.stat-top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 11px;
    background: currentColor;
    box-shadow: inset 0 0 0 999px rgba(5, 13, 27, 0.88);
}

.stat-violet {
    color: #9182ff;
}

.stat-cyan {
    color: var(--cyan);
}

.stat-amber {
    color: var(--amber);
}

.stat-emerald {
    color: var(--emerald);
}

.trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 7px;
    border-radius: 20px;
    font-size: 8px;
    font-weight: 700;
}

.trend-up {
    color: #65deb8;
    background: rgba(62, 215, 164, 0.09);
}

.trend.neutral {
    color: #8390a5;
    background: rgba(132, 146, 169, 0.08);
}

.stat-card > p {
    margin: 16px 0 1px;
    color: #79869b;
    font-size: 10px;
}

.stat-card > strong {
    display: block;
    color: var(--text);
    font-size: 27px;
    font-weight: 710;
    letter-spacing: -0.03em;
}

.stat-card > small {
    display: block;
    margin-top: 7px;
    color: #59667b;
    font-size: 9px;
}

.stat-card > small b {
    color: #8995aa;
    font-weight: 600;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(330px, 0.85fr);
    gap: 15px;
    margin-bottom: 15px;
}

.panel {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(15, 28, 49, 0.8), rgba(10, 21, 39, 0.8));
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.11), inset 0 1px rgba(255, 255, 255, 0.022);
}

.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    padding: 20px 21px 0;
}

.panel-header h3 {
    margin: 4px 0 0;
    font-size: 15px;
    font-weight: 650;
    letter-spacing: -0.01em;
}

.section-kicker {
    color: #6356b8;
    font-size: 8px;
}

.compact-select {
    height: 32px;
    padding: 0 28px 0 10px;
    color: #909caf;
    outline: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #111f35;
    font-size: 9px;
}

.chart-summary {
    display: flex;
    gap: 35px;
    padding: 13px 21px 0;
}

.chart-summary div {
    display: grid;
}

.chart-summary strong {
    font-size: 17px;
}

.chart-summary strong.positive {
    color: var(--emerald);
}

.chart-summary span {
    color: #58657a;
    font-size: 8px;
}

.line-chart {
    position: relative;
    height: 235px;
    margin: 2px 20px 13px 48px;
    padding-bottom: 25px;
}

.line-chart svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.grid-lines line {
    stroke: rgba(151, 169, 202, 0.08);
    stroke-width: 1;
    stroke-dasharray: 4 5;
}

.chart-area {
    fill: url("#chartFill");
}

.chart-path {
    fill: none;
    stroke: url("#chartLine");
    stroke-width: 3;
    vector-effect: non-scaling-stroke;
    filter: drop-shadow(0 4px 7px rgba(105, 86, 236, 0.3));
}

.chart-points circle {
    fill: #111d31;
    stroke: #8f80ff;
    stroke-width: 3;
    vector-effect: non-scaling-stroke;
}

.chart-y-labels {
    position: absolute;
    top: 1px;
    bottom: 28px;
    left: -28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #4d5a6f;
    font-size: 8px;
}

.chart-x-labels {
    position: absolute;
    right: -3px;
    bottom: 1px;
    left: -3px;
    display: flex;
    justify-content: space-between;
    color: #5d697e;
    font-size: 8px;
}

.text-button {
    display: inline-flex;
    cursor: pointer;
    align-items: center;
    gap: 4px;
    padding: 5px 0;
    color: #8273ec;
    border: 0;
    background: transparent;
    font-size: 9px;
}

.schedule-list {
    padding: 11px 20px 12px;
}

.schedule-item {
    display: grid;
    min-height: 59px;
    grid-template-columns: 46px 2px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(148, 168, 208, 0.07);
}

.schedule-item:last-child {
    border-bottom: 0;
}

.schedule-time strong,
.schedule-time span,
.schedule-copy strong,
.schedule-copy span {
    display: block;
}

.schedule-time strong {
    font-size: 11px;
}

.schedule-time span {
    margin-top: 2px;
    color: #4f5c70;
    font-size: 8px;
}

.schedule-line {
    width: 2px;
    height: 31px;
    border-radius: 5px;
}

.schedule-line.violet {
    background: var(--violet);
    box-shadow: 0 0 10px rgba(128, 109, 255, 0.3);
}

.schedule-line.cyan {
    background: var(--cyan);
}

.schedule-line.amber {
    background: var(--amber);
}

.schedule-line.emerald {
    background: var(--emerald);
}

.schedule-copy {
    min-width: 0;
}

.schedule-copy strong {
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.schedule-copy span {
    overflow: hidden;
    margin-top: 3px;
    color: #5b687d;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.schedule-badge {
    padding: 4px 7px;
    color: #a99dff;
    border: 1px solid rgba(128, 109, 255, 0.18);
    border-radius: 6px;
    background: rgba(128, 109, 255, 0.07);
    font-size: 7px;
}

.avatar-stack {
    display: flex;
}

.avatar-stack i {
    display: grid;
    width: 23px;
    height: 23px;
    margin-left: -5px;
    place-items: center;
    color: #b8c1d0;
    border: 2px solid #101e33;
    border-radius: 50%;
    background: #263651;
    font-size: 6px;
    font-style: normal;
}

.schedule-type {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    color: #78869b;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.018);
}

.lower-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(350px, 1fr);
}

.student-list {
    padding: 10px 20px 13px;
}

.student-row {
    display: grid;
    min-height: 59px;
    grid-template-columns: 34px minmax(130px, 1.2fr) 70px minmax(110px, 1fr) 28px;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(148, 168, 208, 0.07);
}

.student-row:last-child {
    border-bottom: 0;
}

.student-avatar {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid;
    border-radius: 10px;
    font-size: 8px;
    font-weight: 700;
}

.student-avatar.violet,
.quick-icon.violet {
    color: #a99dff;
    border-color: rgba(128, 109, 255, 0.25);
    background: rgba(128, 109, 255, 0.1);
}

.student-avatar.cyan,
.quick-icon.cyan {
    color: #70dcff;
    border-color: rgba(66, 201, 245, 0.25);
    background: rgba(66, 201, 245, 0.09);
}

.student-avatar.amber,
.quick-icon.amber {
    color: #f9c96f;
    border-color: rgba(246, 183, 74, 0.25);
    background: rgba(246, 183, 74, 0.09);
}

.student-avatar.emerald,
.quick-icon.emerald {
    color: #6be3bb;
    border-color: rgba(62, 215, 164, 0.25);
    background: rgba(62, 215, 164, 0.09);
}

.student-main strong,
.student-main span,
.student-target strong,
.student-target span {
    display: block;
}

.student-main strong,
.student-target strong {
    overflow: hidden;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-main span,
.student-target span {
    margin-top: 2px;
    color: #536076;
    font-size: 7px;
}

.student-target strong {
    color: #929db0;
    font-weight: 550;
}

.program-chip {
    justify-self: start;
    padding: 4px 7px;
    color: #8f82eb;
    border-radius: 6px;
    background: rgba(128, 109, 255, 0.08);
    font-size: 7px;
    font-weight: 700;
}

.row-action {
    display: grid;
    width: 26px;
    height: 26px;
    cursor: pointer;
    place-items: center;
    color: #526075;
    border: 0;
    border-radius: 7px;
    background: transparent;
}

.row-action:hover {
    color: #a99dff;
    background: rgba(128, 109, 255, 0.08);
}

.empty-state {
    padding: 32px;
    color: var(--text-muted);
    text-align: center;
    font-size: 11px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
    padding: 15px 20px 20px;
}

.quick-grid button {
    display: grid;
    min-height: 91px;
    cursor: pointer;
    justify-items: start;
    padding: 12px;
    text-align: left;
    border: 1px solid rgba(148, 168, 208, 0.1);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.016);
    transition: 150ms ease;
}

.quick-grid button:hover {
    transform: translateY(-2px);
    border-color: rgba(128, 109, 255, 0.25);
    background: rgba(128, 109, 255, 0.035);
}

.quick-icon {
    display: grid;
    width: 31px;
    height: 31px;
    margin-bottom: 7px;
    place-items: center;
    border: 1px solid;
    border-radius: 9px;
}

.quick-grid strong {
    font-size: 9px;
}

.quick-grid small {
    margin-top: 2px;
    color: #536076;
    font-size: 7px;
}

.toast {
    position: fixed;
    z-index: 300;
    right: 24px;
    bottom: 24px;
    display: flex;
    visibility: hidden;
    min-width: 310px;
    align-items: center;
    gap: 12px;
    padding: 14px;
    transform: translateY(18px);
    opacity: 0;
    border: 1px solid rgba(128, 109, 255, 0.28);
    border-radius: 13px;
    background: rgba(16, 29, 50, 0.96);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
    transition: 200ms ease;
}

.toast.visible {
    visibility: visible;
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    color: #b5abff;
    border: 1px solid rgba(128, 109, 255, 0.25);
    border-radius: 9px;
    background: rgba(128, 109, 255, 0.1);
    font-size: 11px;
    font-weight: 750;
}

.toast strong,
.toast span {
    display: block;
}

.toast strong {
    font-size: 10px;
}

.toast div span {
    margin-top: 2px;
    color: #69768b;
    font-size: 8px;
}

@media (max-width: 1180px) {
    :root {
        --sidebar-width: 242px;
    }

    .search-box {
        width: 230px;
    }

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

    .dashboard-grid,
    .lower-grid {
        grid-template-columns: 1fr;
    }

    .setup-shell {
        gap: 45px;
        padding: 42px;
    }
}

@media (max-width: 920px) {
    .sidebar {
        width: 280px;
        transform: translateX(-102%);
        transition: transform 200ms ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-close,
    .menu-toggle {
        display: grid;
    }

    .sidebar-overlay.visible {
        visibility: visible;
        opacity: 1;
    }

    body.sidebar-open {
        overflow: hidden;
    }

    .app-shell {
        margin-left: 0;
    }

    .setup-shell {
        grid-template-columns: 1fr;
        max-width: 650px;
    }

    .auth-intro {
        min-height: auto;
    }

    .intro-copy {
        margin: 70px 0 35px;
    }

    .feature-list {
        display: none;
    }

    .setup-card {
        max-width: none;
    }

    .login-shell {
        display: flex;
        min-height: 100vh;
        align-items: center;
        justify-content: center;
        padding: 35px 0;
    }

    .login-showcase {
        display: none;
    }

    .login-card {
        width: min(430px, calc(100% - 34px));
    }

    .mobile-brand {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-bottom: 30px;
        letter-spacing: 0.12em;
    }

    .mobile-brand .brand-mark {
        width: 34px;
        height: 34px;
    }
}

/* Coaching pulse compact layout and settings user management */
.dashboard-page .premium-dashboard .coaching-pulse-panel {
    padding-bottom: 0 !important;
}

.dashboard-page .premium-dashboard .coaching-pulse-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 14px !important;
    padding: 18px 22px 22px !important;
}

.dashboard-page .premium-dashboard .coaching-pulse-column {
    min-height: 0 !important;
    padding: 15px !important;
    border-radius: 16px !important;
}

.dashboard-page .premium-dashboard .coaching-pulse-column .pulse-list {
    align-content: start;
    min-height: 0 !important;
}

.dashboard-page .premium-dashboard .coaching-pulse-column .pulse-list > a {
    min-height: 56px !important;
}

.dashboard-page .premium-dashboard .coaching-pulse-column .pulse-empty {
    display: flex !important;
    min-height: 74px !important;
    align-items: center;
    justify-content: center;
    padding: 14px !important;
    color: #65758d !important;
    border: 1px dashed rgba(69, 87, 124, 0.2) !important;
    background: rgba(255, 255, 255, 0.7) !important;
    font-size: 12.5px !important;
    line-height: 1.5 !important;
    text-align: center;
}

.dashboard-page .premium-dashboard .coaching-pulse-column .pulse-empty::before,
.dashboard-page .premium-dashboard .coaching-pulse-column .pulse-empty::after {
    display: none !important;
    content: none !important;
}

.user-management-panel {
    margin-top: 18px;
    padding: 22px !important;
}

.user-management-panel > .panel-header {
    padding: 0 0 18px !important;
    border-bottom: 1px solid rgba(69, 87, 124, 0.12);
}

.user-management-grid {
    display: grid;
    grid-template-columns: minmax(310px, 0.72fr) minmax(0, 1.28fr);
    align-items: start;
    gap: 18px;
    padding-top: 18px;
}

.user-account-form {
    padding: 18px;
    border: 1px solid rgba(108, 99, 255, 0.16);
    border-radius: 16px;
    background: linear-gradient(145deg, #faf9ff, #f4f6ff);
}

.user-form-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.user-form-heading h4 {
    margin: 5px 0 0;
    color: #202c44;
    font-size: 17px;
    font-weight: 600;
}

.user-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.user-form-grid .field-wide {
    grid-column: 1 / -1;
}

.user-status-toggle {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #34445e;
    border: 1px solid rgba(69, 87, 124, 0.15);
    border-radius: 11px;
    background: #ffffff;
    font-size: 12.5px;
    cursor: pointer;
}

.user-status-toggle input {
    width: 17px;
    height: 17px;
    accent-color: #5f55ee;
}

.user-account-list {
    display: grid;
    gap: 9px;
}

.user-account-list > article {
    display: grid;
    min-height: 78px;
    grid-template-columns: 42px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    padding: 11px 13px;
    border: 1px solid rgba(69, 87, 124, 0.12);
    border-radius: 14px;
    background: #ffffff;
    transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.user-account-list > article:hover {
    transform: translateY(-2px);
    border-color: rgba(108, 99, 255, 0.28);
    box-shadow: 0 10px 24px rgba(31, 48, 83, 0.08);
}

.user-account-avatar {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #5148df;
    border: 1px solid rgba(108, 99, 255, 0.18);
    border-radius: 12px;
    background: #eeefff;
    font-size: 13px;
    font-weight: 600;
}

.user-account-copy {
    display: block;
    min-width: 0;
}

.user-account-copy strong,
.user-account-copy small,
.user-account-copy > span {
    display: block;
}

.user-account-copy strong {
    color: #263650 !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
}

.user-account-copy small {
    margin-top: 2px;
    overflow: hidden;
    color: #65758d !important;
    font-size: 12px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-account-copy > span {
    margin-top: 4px;
    color: #5f55ee;
    font-size: 11.5px;
    font-weight: 600;
}

.user-account-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.user-account-actions form {
    margin: 0;
}

.user-toggle-button {
    min-height: 34px !important;
    padding: 6px 10px !important;
    border: 1px solid rgba(69, 87, 124, 0.16) !important;
    border-radius: 9px !important;
    background: #f7f9ff !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer;
}

.user-toggle-button.deactivate {
    color: #b23b55 !important;
    border-color: #f0c8d1 !important;
    background: #fff3f5 !important;
}

.user-toggle-button.activate {
    color: #087a55 !important;
    border-color: #bdebd9 !important;
    background: #eafaf4 !important;
}

.user-toggle-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
    transform: none !important;
    box-shadow: none !important;
}

@media (max-width: 1250px) {
    .dashboard-page .premium-dashboard .coaching-pulse-grid {
        grid-template-columns: repeat(3, minmax(260px, 1fr)) !important;
        overflow-x: auto;
    }
}

@media (max-width: 980px) {
    .user-management-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .dashboard-page .premium-dashboard .coaching-pulse-grid {
        grid-template-columns: 1fr !important;
        overflow: visible;
        padding: 14px !important;
    }

    .user-management-panel {
        padding: 16px !important;
    }

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

    .user-form-grid .field-wide {
        grid-column: auto;
    }

    .user-account-list > article {
        grid-template-columns: 42px minmax(0, 1fr) auto;
    }

    .user-account-actions {
        grid-column: 2 / -1;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .user-account-list > article {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .user-account-list .status-pill {
        grid-column: 2;
        justify-self: start;
    }

    .user-account-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 680px) {
    .topbar {
        height: 72px;
        padding: 0 16px;
    }

    .topbar-left h1 {
        max-width: 210px;
        overflow: hidden;
        font-size: 15px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .topbar-actions {
        gap: 7px;
    }

    .search-box,
    .profile-copy,
    .profile-button .chevron {
        display: none;
    }

    .profile-button {
        min-width: auto;
        width: 42px;
        height: 42px;
        padding: 3px;
    }

    .dashboard-content {
        padding: 21px 16px 38px;
    }

    .welcome-row {
        display: block;
    }

    .welcome-row h2 {
        font-size: 20px;
    }

    .welcome-actions {
        margin-top: 16px;
    }

    .welcome-actions .button {
        flex: 1;
    }

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

    .stat-card {
        min-height: 155px;
    }

    .student-row {
        grid-template-columns: 34px minmax(110px, 1fr) 65px 28px;
    }

    .student-target {
        display: none;
    }

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

    .setup-shell {
        padding: 28px 17px;
    }

    .intro-copy {
        margin: 50px 0 12px;
    }

    .intro-copy h1 {
        font-size: 36px;
    }

    .intro-copy p {
        font-size: 14px;
    }

    .setup-card,
    .login-card {
        padding: 28px 22px;
    }

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

    .demo-credentials {
        flex-wrap: wrap;
    }

    .toast {
        right: 14px;
        bottom: 14px;
        left: 14px;
        min-width: 0;
    }
}

/* Final account linkage and parent readability layer */
.icon-password-toggle {
    display: grid !important;
    width: 36px !important;
    height: 36px !important;
    place-items: center !important;
    padding: 0 !important;
    color: #5f55ee !important;
    border: 1px solid rgba(108, 99, 255, 0.16) !important;
    border-radius: 10px !important;
    background: #f3f1ff !important;
}

.icon-password-toggle:hover {
    color: #fff !important;
    border-color: #655cf0 !important;
    background: linear-gradient(135deg, #6c63ff, #16bce2) !important;
}

.directory-form-grid .password-wrap input,
.user-form-grid .password-wrap input {
    width: 100% !important;
    padding-right: 54px !important;
}

.parent-student-assignment {
    min-width: 0;
    margin: 0;
    padding: 14px;
    border: 1px solid #dde3ee;
    border-radius: 14px;
    background: #f9fbff;
}

.parent-student-assignment legend {
    padding: 0 6px;
    color: #2d3c56;
    font-size: 13px;
    font-weight: 650;
}

.parent-student-assignment > p {
    margin: 0 0 10px;
    color: #6b7991;
    font-size: 12px;
}

.parent-student-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.parent-student-options label {
    display: flex;
    min-height: 54px;
    align-items: center;
    gap: 9px;
    padding: 9px 11px;
    border: 1px solid #e0e5ef;
    border-radius: 11px;
    background: #fff;
    cursor: pointer;
}

.parent-student-options input {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    accent-color: #6259ed;
}

.parent-student-options span,
.parent-student-options strong,
.parent-student-options small {
    display: block;
}

.parent-student-options strong {
    color: #283850;
    font-size: 12.5px;
}

.parent-student-options small {
    margin-top: 2px;
    color: #75839a;
    font-size: 11px;
}

.parent-portal .module-alert,
.parent-portal .empty-state,
.parent-portal .premium-empty {
    color: #52627a !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
}

.parent-portal .module-alert.error {
    color: #a72e49 !important;
    border-color: #f0b9c5 !important;
    background: #fff2f5 !important;
}

.parent-portal .parent-hero h2 {
    font-size: clamp(24px, 3vw, 34px) !important;
}

.parent-portal .parent-hero p {
    color: #62718a !important;
    font-size: 14px !important;
}

.parent-portal .parent-notification-list article {
    gap: 14px !important;
    padding: 15px 4px !important;
}

.parent-portal .parent-notification-list strong {
    font-size: 14px !important;
}

.parent-portal .parent-notification-list p,
.parent-portal .parent-notification-list small {
    font-size: 12.5px !important;
}

@media (max-width: 900px) {
    .parent-student-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .parent-student-options {
        grid-template-columns: 1fr;
    }
}

.readonly-badge {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 7px 11px;
    color: #735c13;
    border: 1px solid #ecd98f;
    border-radius: 10px;
    background: #fff9df;
    font-size: 11.5px;
    font-weight: 650;
    white-space: nowrap;
}

.role-readonly main form[method="post"],
.role-readonly main [data-student-create],
.role-readonly main [data-student-edit],
.role-readonly main [data-student-delete],
.role-readonly main [data-exam-create],
.role-readonly main [data-result-create],
.role-readonly main [data-session-create],
.role-readonly main [data-coach-assign],
.role-readonly main [data-task-create],
.role-readonly main [data-study-create],
.role-readonly main [data-study-checkout],
.role-readonly main .danger-action,
.role-readonly main .user-account-actions {
    display: none !important;
}

.parent-insight-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.parent-insight-grid article {
    display: flex;
    min-height: 128px;
    align-items: flex-start;
    gap: 12px;
    padding: 18px;
}

.parent-insight-grid article > div {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.parent-insight-grid small {
    color: #687791 !important;
    font-size: 12px !important;
}

.parent-insight-grid strong {
    color: #17223a !important;
    font-size: 19px !important;
}

.parent-insight-grid p {
    margin: 0;
    color: #718098 !important;
    font-size: 12.5px !important;
}

.parent-portal .parent-student-grid strong,
.parent-portal .parent-notification-list strong {
    color: #263650 !important;
    font-size: 14px !important;
}

.parent-portal .parent-student-grid small,
.parent-portal .parent-student-grid p,
.parent-portal .parent-notification-list p,
.parent-portal .parent-notification-list small {
    color: #687791 !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
}

@media (max-width: 680px) {
    .readonly-badge {
        min-height: 30px;
        padding: 5px 8px;
        font-size: 10.5px;
    }

    .parent-insight-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 681px) and (max-width: 1100px) {
    .parent-insight-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .welcome-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .panel-header {
        padding-right: 16px;
        padding-left: 16px;
    }

    .schedule-list,
    .student-list,
    .quick-grid {
        padding-right: 14px;
        padding-left: 14px;
    }

    .schedule-item {
        grid-template-columns: 42px 2px minmax(0, 1fr);
    }

    .schedule-badge,
    .schedule-type,
    .avatar-stack {
        display: none;
    }

    .student-row {
        grid-template-columns: 32px minmax(100px, 1fr) 58px;
    }

    .row-action {
        display: none;
    }

    .line-chart {
        margin-left: 40px;
    }

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Premium dashboard */
.premium-dashboard {
    max-width: 1680px;
}

.dashboard-hero {
    position: relative;
    overflow: hidden;
    min-height: 96px;
    align-items: center;
    padding: 18px 21px;
    border: 1px solid rgba(142, 126, 255, 0.14);
    border-radius: 18px;
    background:
        radial-gradient(circle at 78% 20%, rgba(109, 88, 238, 0.15), transparent 30%),
        linear-gradient(135deg, rgba(17, 31, 54, 0.8), rgba(10, 21, 39, 0.65));
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.03), 0 18px 45px rgba(0, 0, 0, 0.1);
}

.dashboard-hero::after {
    position: absolute;
    top: -70px;
    right: 12%;
    width: 210px;
    height: 210px;
    content: "";
    pointer-events: none;
    border: 1px solid rgba(128, 109, 255, 0.12);
    border-radius: 50%;
    box-shadow: 0 0 0 32px rgba(128, 109, 255, 0.025), 0 0 0 64px rgba(128, 109, 255, 0.015);
}

.dashboard-hero > * {
    position: relative;
    z-index: 2;
}

.hero-description,
.panel-header p {
    margin: 5px 0 0;
    color: #67748a;
    font-size: 9px;
}

.live-badge {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 7px;
    padding: 0 11px;
    color: #82dcbf;
    border: 1px solid rgba(62, 215, 164, 0.16);
    border-radius: 20px;
    background: rgba(62, 215, 164, 0.06);
    font-size: 9px;
    font-weight: 650;
}

.live-badge i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 0 4px rgba(62, 215, 164, 0.08), 0 0 10px rgba(62, 215, 164, 0.5);
    animation: livePulse 1.8s ease-in-out infinite;
}

@keyframes livePulse {
    50% {
        transform: scale(0.75);
        opacity: 0.65;
    }
}

.dashboard-notice {
    margin: -9px 0 15px;
    padding: 11px 14px;
    color: #f0c37a;
    border: 1px solid rgba(246, 183, 74, 0.2);
    border-radius: 10px;
    background: rgba(246, 183, 74, 0.06);
    font-size: 10px;
}

.stats-grid-premium {
    grid-template-columns: repeat(9, minmax(0, 1fr));
    margin-top: 15px;
}

.stats-grid-premium .stat-card {
    min-height: 154px;
    padding: 17px;
    opacity: 0;
    animation: cardReveal 500ms ease forwards;
    animation-delay: var(--delay);
}

@keyframes cardReveal {
    from {
        transform: translateY(10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.stats-grid-premium .stat-card:hover {
    transform: translateY(-3px);
    border-color: currentColor;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2), inset 0 1px rgba(255, 255, 255, 0.04);
}

.stats-grid-premium .stat-card > strong {
    font-size: clamp(18px, 1.45vw, 25px);
    white-space: nowrap;
}

.stats-grid-premium .stat-card > p {
    overflow: hidden;
    margin-top: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stats-grid-premium .stat-card > small {
    overflow: hidden;
    min-height: 26px;
    line-height: 1.45;
}

.stat-danger {
    color: var(--danger);
}

.stat-number {
    color: rgba(153, 166, 190, 0.28);
    font-size: 8px;
    font-weight: 760;
    letter-spacing: 0.14em;
}

.dashboard-grid-main {
    grid-template-columns: minmax(0, 1.55fr) minmax(330px, 0.65fr);
}

.chart-panel {
    min-height: 410px;
}

.chart-panel .panel-header,
.alerts-panel .panel-header,
.heatmap-panel .panel-header,
.premium-schedule .panel-header,
.insight-panel .panel-header {
    padding: 22px 23px 0;
}

.chart-legend,
.health-legend {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #728097;
    font-size: 8px;
}

.chart-legend span,
.health-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.chart-legend i,
.health-legend i,
.risk-breakdown i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.chart-legend .tyt {
    background: var(--violet);
    box-shadow: 0 0 9px rgba(128, 109, 255, 0.5);
}

.chart-legend .ayt {
    background: var(--cyan);
    box-shadow: 0 0 9px rgba(66, 201, 245, 0.45);
}

.chart-panel .chart-summary {
    gap: 44px;
    padding: 16px 23px 0;
}

.canvas-wrap {
    position: relative;
    height: 280px;
    padding: 12px 18px 18px 13px;
}

.canvas-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}

.danger-kicker {
    color: #c45b71;
}

.alert-count,
.program-total {
    display: inline-grid;
    min-width: 30px;
    height: 28px;
    padding: 0 8px;
    place-items: center;
    color: #ff9bab;
    border: 1px solid rgba(255, 107, 130, 0.18);
    border-radius: 8px;
    background: rgba(255, 107, 130, 0.07);
    font-size: 9px;
    font-weight: 700;
}

.alert-list {
    max-height: 342px;
    margin-top: 12px;
    padding: 0 15px 14px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(128, 109, 255, 0.22) transparent;
}

.alert-item {
    display: grid;
    width: 100%;
    min-height: 62px;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 9px 7px;
    cursor: pointer;
    text-align: left;
    border: 0;
    border-bottom: 1px solid rgba(148, 168, 208, 0.07);
    background: transparent;
    transition: 160ms ease;
}

.alert-item:hover {
    padding-right: 10px;
    padding-left: 10px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.018);
}

.alert-symbol,
.schedule-event-icon {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid;
    border-radius: 9px;
}

.alert-symbol.violet,
.schedule-event-icon.violet {
    color: #a99dff;
    border-color: rgba(128, 109, 255, 0.2);
    background: rgba(128, 109, 255, 0.08);
}

.alert-symbol.amber,
.schedule-event-icon.amber {
    color: #f5c66f;
    border-color: rgba(246, 183, 74, 0.2);
    background: rgba(246, 183, 74, 0.08);
}

.alert-symbol.danger,
.schedule-event-icon.danger {
    color: #ff8da0;
    border-color: rgba(255, 107, 130, 0.2);
    background: rgba(255, 107, 130, 0.08);
}

.alert-symbol.emerald,
.schedule-event-icon.emerald {
    color: #68e0b8;
    border-color: rgba(62, 215, 164, 0.2);
    background: rgba(62, 215, 164, 0.08);
}

.alert-symbol.cyan,
.schedule-event-icon.cyan {
    color: #6edcff;
    border-color: rgba(66, 201, 245, 0.2);
    background: rgba(66, 201, 245, 0.08);
}

.alert-copy {
    min-width: 0;
}

.alert-copy strong,
.alert-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.alert-copy strong {
    font-size: 9px;
}

.alert-copy small {
    margin-top: 3px;
    color: #5f6c81;
    font-size: 8px;
}

.alert-meta {
    color: #7e8a9e;
    font-size: 7px;
    white-space: nowrap;
}

.heatmap-panel {
    margin-bottom: 15px;
}

.heatmap-header {
    align-items: center;
}

.health-legend .good,
.risk-breakdown .good {
    background: var(--emerald);
    box-shadow: 0 0 8px rgba(62, 215, 164, 0.4);
}

.health-legend .risk,
.risk-breakdown .risk {
    background: var(--amber);
    box-shadow: 0 0 8px rgba(246, 183, 74, 0.4);
}

.health-legend .critical,
.risk-breakdown .critical {
    background: var(--danger);
    box-shadow: 0 0 8px rgba(255, 107, 130, 0.4);
}

.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 18px 22px 22px;
}

.health-card {
    position: relative;
    display: grid;
    min-height: 113px;
    overflow: hidden;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
    padding: 14px;
    cursor: pointer;
    text-align: left;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.016);
    transition: 170ms ease;
}

.health-card::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 2px;
    content: "";
    background: currentColor;
    box-shadow: 0 0 13px currentColor;
}

.health-card.good {
    color: var(--emerald);
    background: linear-gradient(110deg, rgba(62, 215, 164, 0.06), rgba(255, 255, 255, 0.012));
}

.health-card.risk {
    color: var(--amber);
    background: linear-gradient(110deg, rgba(246, 183, 74, 0.07), rgba(255, 255, 255, 0.012));
}

.health-card.critical {
    color: var(--danger);
    background: linear-gradient(110deg, rgba(255, 107, 130, 0.075), rgba(255, 255, 255, 0.012));
}

.health-card:hover {
    transform: translateY(-2px);
    border-color: currentColor;
    box-shadow: 0 13px 28px rgba(0, 0, 0, 0.15);
}

.health-avatar {
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 10px;
    background: rgba(7, 16, 31, 0.55);
    font-size: 8px;
    font-weight: 750;
}

.health-copy {
    min-width: 0;
}

.health-copy strong,
.health-copy small,
.health-net strong,
.health-net small {
    display: block;
}

.health-copy strong {
    overflow: hidden;
    color: var(--text);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.health-copy small {
    overflow: hidden;
    margin-top: 3px;
    color: #5f6c81;
    font-size: 7px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.health-net {
    text-align: right;
}

.health-net strong {
    font-size: 12px;
}

.health-net small {
    color: #536075;
    font-size: 6px;
}

.health-reason {
    grid-column: 2 / -1;
    overflow: hidden;
    color: currentColor;
    font-size: 7px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-grid-bottom {
    grid-template-columns: minmax(0, 1.42fr) minmax(300px, 0.58fr);
}

.program-total {
    width: auto;
    color: #8f83e8;
    border-color: rgba(128, 109, 255, 0.18);
    background: rgba(128, 109, 255, 0.07);
}

.premium-schedule .schedule-list {
    padding: 12px 22px 15px;
}

.schedule-item-premium {
    min-height: 67px;
    grid-template-columns: 46px 2px 34px minmax(0, 1fr) auto;
}

.schedule-item-premium:hover {
    background: linear-gradient(90deg, rgba(128, 109, 255, 0.03), transparent);
}

.schedule-line.danger {
    background: var(--danger);
}

.event-type {
    padding: 4px 7px;
    color: #7a879c;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.018);
    font-size: 7px;
}

.insight-panel {
    min-height: 340px;
}

.risk-orbit {
    position: relative;
    display: grid;
    width: 158px;
    height: 158px;
    margin: 25px auto 20px;
    place-items: center;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #0c192c 57%, transparent 58%),
        conic-gradient(
            var(--emerald) 0 var(--good-end),
            var(--amber) var(--good-end) var(--risk-end),
            var(--danger) var(--risk-end) 100%
        );
    box-shadow: 0 0 45px rgba(85, 70, 199, 0.12);
}

.risk-orbit::before {
    position: absolute;
    inset: 8px;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.risk-orbit div {
    position: relative;
    z-index: 2;
    text-align: center;
}

.risk-orbit strong,
.risk-orbit span {
    display: block;
}

.risk-orbit strong {
    font-size: 30px;
    letter-spacing: -0.04em;
}

.risk-orbit span {
    color: #657188;
    font-size: 8px;
}

.risk-breakdown {
    display: grid;
    gap: 9px;
    padding: 0 25px;
}

.risk-breakdown div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #7f8ca0;
    font-size: 8px;
}

.risk-breakdown span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.risk-breakdown strong {
    color: #d8dfec;
    font-size: 10px;
}

.insight-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 19px 20px 20px;
    padding: 11px;
    color: #9b8fff;
    border: 1px solid rgba(128, 109, 255, 0.13);
    border-radius: 10px;
    background: rgba(128, 109, 255, 0.05);
}

.insight-note p {
    margin: 0;
}

.insight-note strong,
.insight-note span {
    display: block;
}

.insight-note strong {
    color: #a9b3c7;
    font-size: 8px;
}

.insight-note span {
    margin-top: 3px;
    color: #5f6c81;
    font-size: 7px;
    line-height: 1.45;
}

.premium-empty {
    display: flex;
    min-height: 120px;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

@media (max-width: 1500px) {
    .stats-grid-premium {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 1180px) {
    .stats-grid-premium {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-grid-main,
    .dashboard-grid-bottom {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 780px) {
    .dashboard-hero {
        display: block;
    }

    .dashboard-hero .welcome-actions {
        flex-wrap: wrap;
    }

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

    .heatmap-header {
        display: block;
    }

    .health-legend {
        margin-top: 13px;
    }

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

@media (max-width: 520px) {
    .stats-grid-premium {
        grid-template-columns: 1fr;
    }

    .stats-grid-premium .stat-card {
        min-height: 142px;
    }

    .live-badge {
        width: 100%;
        justify-content: center;
    }

    .chart-panel .panel-header {
        display: block;
    }

    .chart-legend {
        margin-top: 13px;
    }

    .chart-panel .chart-summary {
        gap: 22px;
    }

    .canvas-wrap {
        height: 250px;
    }

    .heatmap-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .health-legend {
        flex-wrap: wrap;
    }

    .schedule-item-premium {
        grid-template-columns: 42px 2px 30px minmax(0, 1fr);
    }

    .schedule-item-premium .event-type {
        display: none;
    }
}

/* Role and permission matrix */
.permission-matrix-panel {
    margin-top: 18px;
    padding: 22px !important;
}

.permission-matrix-panel > .panel-header {
    padding: 0 0 18px !important;
    border-bottom: 1px solid rgba(69, 87, 124, 0.12);
}

.permission-matrix-scroll {
    margin-top: 18px;
    overflow-x: auto;
    border: 1px solid #e2e7f0;
    border-radius: 16px;
}

.permission-matrix-table {
    width: 100%;
    min-width: 820px;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
}

.permission-matrix-table th,
.permission-matrix-table td {
    padding: 12px 14px;
    border-right: 1px solid #e9edf4;
    border-bottom: 1px solid #e9edf4;
    text-align: center;
}

.permission-matrix-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    color: #273650;
    background: #f5f7fc;
    font-size: 12.5px;
    font-weight: 650;
}

.permission-matrix-table thead th:first-child,
.permission-matrix-table tbody > tr:not(.permission-group-row) > th {
    position: sticky;
    left: 0;
    z-index: 1;
    width: 320px;
    text-align: left;
    background: #fff;
}

.permission-matrix-table tbody > tr:not(.permission-group-row):hover td,
.permission-matrix-table tbody > tr:not(.permission-group-row):hover th {
    background: #fafbff;
}

.permission-matrix-table tbody th strong,
.permission-matrix-table tbody th small {
    display: block;
}

.permission-matrix-table tbody th strong {
    color: #253550;
    font-size: 13px;
    font-weight: 600;
}

.permission-matrix-table tbody th small {
    margin-top: 3px;
    color: #8792a7;
    font-size: 10.5px;
    font-weight: 500;
}

.permission-group-row th {
    padding: 10px 14px;
    color: #5b51df;
    background: #f0efff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-align: left;
    text-transform: uppercase;
}

.permission-check {
    display: inline-grid;
    cursor: pointer;
}

.permission-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.permission-check span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: transparent;
    border: 1px solid #d8deea;
    border-radius: 10px;
    background: #f8f9fc;
    transition: .18s ease;
}

.permission-check input:checked + span {
    color: #fff;
    border-color: #655cf0;
    background: linear-gradient(135deg, #6c63ff, #16bce2);
    box-shadow: 0 7px 16px rgba(108, 99, 255, 0.2);
}

.permission-check:hover span {
    border-color: #8c85f6;
    transform: translateY(-1px);
}

.permission-matrix-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 16px;
}

.permission-matrix-actions p {
    margin: 0;
    color: #687791;
    font-size: 12.5px;
}

.access-denied {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
    background: linear-gradient(145deg, #eef2ff, #f5fbff);
}

.access-denied .panel {
    width: min(560px, 100%);
    padding: 34px;
    text-align: center;
}

.access-denied h1 {
    margin: 10px 0;
    color: #17223a;
    font-size: 26px;
}

.access-denied p {
    margin: 0 0 22px;
    color: #63728a;
    line-height: 1.7;
}

@media (max-width: 680px) {
    .permission-matrix-panel {
        padding: 16px !important;
    }

    .permission-matrix-actions {
        align-items: stretch;
        flex-direction: column;
    }
}

/* Students module */
.students-module,
.student-detail-module {
    max-width: 1640px;
}

.module-hero {
    display: flex;
    min-height: 105px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
    padding: 21px 23px;
    border: 1px solid rgba(128, 109, 255, 0.14);
    border-radius: 18px;
    background:
        radial-gradient(circle at 84% 20%, rgba(128, 109, 255, 0.12), transparent 26%),
        linear-gradient(135deg, rgba(17, 31, 54, 0.8), rgba(10, 21, 39, 0.7));
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.03), 0 18px 40px rgba(0, 0, 0, 0.1);
}

.module-hero h2 {
    margin: 4px 0 2px;
    font-size: 25px;
    letter-spacing: -0.035em;
}

.module-hero p {
    margin: 0;
    color: #6c798e;
    font-size: 10px;
}

.module-alert {
    margin-bottom: 15px;
    padding: 11px 14px;
    border: 1px solid;
    border-radius: 10px;
    font-size: 10px;
}

.module-alert.success {
    color: #80e4c2;
    border-color: rgba(62, 215, 164, 0.2);
    background: rgba(62, 215, 164, 0.06);
}

.module-alert.error {
    color: #ff9cad;
    border-color: rgba(255, 107, 130, 0.2);
    background: rgba(255, 107, 130, 0.06);
}

.student-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 15px;
}

.student-summary-grid article {
    display: flex;
    min-height: 86px;
    align-items: center;
    gap: 13px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(16, 29, 50, 0.78), rgba(10, 21, 39, 0.72));
}

.summary-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid;
    border-radius: 11px;
}

.summary-icon.violet {
    color: #a99dff;
    border-color: rgba(128, 109, 255, 0.22);
    background: rgba(128, 109, 255, 0.08);
}

.summary-icon.emerald {
    color: #69e0b9;
    border-color: rgba(62, 215, 164, 0.22);
    background: rgba(62, 215, 164, 0.08);
}

.summary-icon.amber {
    color: #f6c870;
    border-color: rgba(246, 183, 74, 0.22);
    background: rgba(246, 183, 74, 0.08);
}

.summary-icon.danger {
    color: #ff8da1;
    border-color: rgba(255, 107, 130, 0.22);
    background: rgba(255, 107, 130, 0.08);
}

.student-summary-grid strong,
.student-summary-grid small {
    display: block;
}

.student-summary-grid strong {
    font-size: 21px;
    letter-spacing: -0.03em;
}

.student-summary-grid small {
    margin-top: 2px;
    color: #667389;
    font-size: 8px;
}

.student-directory {
    overflow: visible;
}

.student-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
    border-bottom: 1px solid var(--line);
}

.module-search {
    display: flex;
    width: min(380px, 32vw);
    height: 42px;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
    padding: 0 11px;
    color: #647188;
    border: 1px solid var(--line-bright);
    border-radius: 10px;
    background: rgba(5, 13, 26, 0.48);
}

.module-search:focus-within {
    border-color: rgba(128, 109, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(128, 109, 255, 0.08);
}

.module-search input {
    min-width: 0;
    flex: 1;
    color: var(--text);
    outline: 0;
    border: 0;
    background: transparent;
    font-size: 10px;
}

.module-search kbd {
    padding: 3px 5px;
    color: #59667c;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.02);
    font-family: inherit;
    font-size: 7px;
}

.filter-row {
    display: flex;
    min-width: 0;
    flex: 1;
    align-items: center;
    gap: 8px;
}

.filter-row select,
.student-form select {
    height: 42px;
    min-width: 0;
    padding: 0 30px 0 11px;
    color: #9aa6ba;
    outline: none;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #0d1a2e;
    font-size: 9px;
}

.filter-row select {
    flex: 1;
}

.filter-row select:focus,
.student-form select:focus {
    border-color: rgba(128, 109, 255, 0.45);
}

.filter-reset {
    height: 38px;
    padding: 0 9px;
    cursor: pointer;
    color: #7c899d;
    border: 0;
    background: transparent;
    font-size: 8px;
}

.filter-reset:hover {
    color: #a99dff;
}

.directory-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 19px;
    color: #637087;
    border-bottom: 1px solid rgba(148, 168, 208, 0.07);
    font-size: 8px;
}

.directory-meta strong {
    color: #a99dff;
}

.student-table-wrap {
    overflow-x: auto;
}

.student-table,
.responsive-table table {
    width: 100%;
    border-collapse: collapse;
}

.student-table th,
.responsive-table th {
    padding: 11px 14px;
    color: #536076;
    background: rgba(255, 255, 255, 0.012);
    font-size: 7px;
    font-weight: 720;
    letter-spacing: 0.08em;
    text-align: left;
    text-transform: uppercase;
}

.student-table td {
    min-width: 105px;
    padding: 12px 14px;
    border-top: 1px solid rgba(148, 168, 208, 0.065);
    vertical-align: middle;
}

.student-record {
    transition: 140ms ease;
}

.student-record:hover {
    background: rgba(128, 109, 255, 0.025);
}

.student-record[hidden] {
    display: none;
}

.student-identity {
    display: flex;
    min-width: 185px;
    align-items: center;
    gap: 10px;
}

.student-avatar.good {
    color: #6be3bb;
    border-color: rgba(62, 215, 164, 0.25);
    background: rgba(62, 215, 164, 0.08);
}

.student-avatar.risk {
    color: #f7c66b;
    border-color: rgba(246, 183, 74, 0.25);
    background: rgba(246, 183, 74, 0.08);
}

.student-avatar.critical {
    color: #ff8da0;
    border-color: rgba(255, 107, 130, 0.25);
    background: rgba(255, 107, 130, 0.08);
}

.student-identity strong,
.student-identity small {
    display: block;
}

.student-identity strong {
    font-size: 9px;
}

.student-identity small {
    max-width: 165px;
    overflow: hidden;
    margin-top: 2px;
    color: #5c687d;
    font-size: 7px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table-primary,
.table-secondary {
    display: block;
}

.table-primary {
    max-width: 160px;
    overflow: hidden;
    color: #9da8ba;
    font-size: 8px;
    font-weight: 550;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table-secondary {
    max-width: 160px;
    overflow: hidden;
    margin-top: 3px;
    color: #4f5c70;
    font-size: 7px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.coach-cell {
    color: #8491a5;
    font-size: 8px;
}

.risk-badge,
.record-status,
.mini-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 7px;
    border: 1px solid;
    border-radius: 20px;
    font-size: 7px;
    font-weight: 650;
    white-space: nowrap;
}

.risk-badge i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 7px currentColor;
}

.risk-badge.good {
    color: #66dcb5;
    border-color: rgba(62, 215, 164, 0.18);
    background: rgba(62, 215, 164, 0.06);
}

.risk-badge.risk {
    color: #f3bf62;
    border-color: rgba(246, 183, 74, 0.18);
    background: rgba(246, 183, 74, 0.06);
}

.risk-badge.critical {
    color: #ff8499;
    border-color: rgba(255, 107, 130, 0.18);
    background: rgba(255, 107, 130, 0.06);
}

.risk-reason {
    display: block;
    max-width: 145px;
    overflow: hidden;
    margin-top: 4px;
    color: #515e73;
    font-size: 6px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.record-status.active {
    color: #70dfba;
    border-color: rgba(62, 215, 164, 0.16);
    background: rgba(62, 215, 164, 0.05);
}

.record-status.passive {
    color: #7d899c;
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.02);
}

.row-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.row-menu a,
.row-menu button {
    display: grid;
    width: 28px;
    height: 28px;
    cursor: pointer;
    place-items: center;
    color: #657288;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
}

.row-menu a:hover,
.row-menu button:hover {
    color: #a99dff;
    border-color: var(--line);
    background: rgba(128, 109, 255, 0.06);
}

.row-menu .danger-action:hover {
    color: #ff8499;
    border-color: rgba(255, 107, 130, 0.16);
    background: rgba(255, 107, 130, 0.06);
}

.directory-empty {
    display: grid;
    min-height: 230px;
    place-items: center;
    align-content: center;
    gap: 6px;
}

.directory-empty[hidden] {
    display: none;
}

.directory-empty strong {
    color: #8995a8;
    font-size: 11px;
}

.directory-empty span {
    color: #536075;
    font-size: 8px;
}

body.modal-open {
    overflow: hidden;
}

.modal-backdrop {
    position: fixed;
    z-index: 500;
    inset: 0;
    display: flex;
    visibility: hidden;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    background: rgba(2, 7, 15, 0.76);
    backdrop-filter: blur(7px);
    transition: 180ms ease;
}

.modal-backdrop.visible {
    visibility: visible;
    opacity: 1;
}

.student-modal,
.confirm-modal {
    width: min(760px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    transform: translateY(12px) scale(0.99);
    border: 1px solid rgba(148, 168, 208, 0.17);
    border-radius: 20px;
    background:
        radial-gradient(circle at 90% 0, rgba(128, 109, 255, 0.1), transparent 24%),
        #0b1729;
    box-shadow: 0 35px 100px rgba(0, 0, 0, 0.48), inset 0 1px rgba(255, 255, 255, 0.035);
    transition: 180ms ease;
}

.modal-backdrop.visible .student-modal,
.modal-backdrop.visible .confirm-modal {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 21px 23px;
    border-bottom: 1px solid var(--line);
}

.modal-header h3 {
    margin: 4px 0 0;
    font-size: 18px;
}

.modal-close {
    width: 34px;
    height: 34px;
    cursor: pointer;
    color: #768398;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.02);
    font-size: 21px;
}

.student-form {
    padding: 22px 23px;
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 3px 0 13px;
    color: #909caf;
    font-size: 9px;
    font-weight: 700;
}

.form-section-title:not(:first-of-type) {
    margin-top: 24px;
}

.form-section-title span {
    color: #8678ed;
    font-size: 7px;
}

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

.student-form .field-wide {
    grid-column: 1 / -1;
}

.student-form .field input,
.student-form .field select {
    height: 44px;
}

.student-form .field select {
    width: 100%;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 24px;
}

.button-danger {
    color: white;
    border-color: rgba(255, 107, 130, 0.24);
    background: linear-gradient(135deg, #d9546c, #b83e55);
}

.confirm-modal {
    width: min(420px, 100%);
    padding: 30px;
    text-align: center;
}

.confirm-icon {
    display: grid;
    width: 50px;
    height: 50px;
    margin: 0 auto 16px;
    place-items: center;
    color: #ff8da0;
    border: 1px solid rgba(255, 107, 130, 0.2);
    border-radius: 15px;
    background: rgba(255, 107, 130, 0.07);
}

.confirm-modal h3 {
    margin: 0;
    font-size: 18px;
}

.confirm-modal p {
    margin: 10px 0 0;
    color: #78859a;
    font-size: 10px;
    line-height: 1.65;
}

.confirm-modal p strong {
    color: #c4ccda;
}

.confirm-modal .modal-actions {
    justify-content: center;
}

/* Student detail */
.detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 13px;
    color: #59667b;
    font-size: 8px;
}

.detail-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #8d80e8;
}

.detail-breadcrumb a svg {
    transform: rotate(180deg);
}

.student-profile-hero {
    position: relative;
    display: flex;
    min-height: 148px;
    overflow: hidden;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
    padding: 25px;
    border: 1px solid rgba(128, 109, 255, 0.15);
    border-radius: 20px;
    background:
        radial-gradient(circle at 78% 5%, rgba(128, 109, 255, 0.16), transparent 28%),
        linear-gradient(135deg, rgba(17, 31, 54, 0.9), rgba(9, 20, 38, 0.78));
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.15), inset 0 1px rgba(255, 255, 255, 0.035);
}

.profile-main {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 17px;
}

.profile-avatar {
    display: grid;
    width: 74px;
    height: 74px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid;
    border-radius: 22px;
    font-size: 17px;
    font-weight: 750;
}

.profile-avatar.good {
    color: #76e3be;
    border-color: rgba(62, 215, 164, 0.3);
    background: linear-gradient(145deg, rgba(62, 215, 164, 0.15), rgba(62, 215, 164, 0.04));
}

.profile-avatar.risk {
    color: #f5c66c;
    border-color: rgba(246, 183, 74, 0.3);
    background: linear-gradient(145deg, rgba(246, 183, 74, 0.15), rgba(246, 183, 74, 0.04));
}

.profile-avatar.critical {
    color: #ff8ea1;
    border-color: rgba(255, 107, 130, 0.3);
    background: linear-gradient(145deg, rgba(255, 107, 130, 0.15), rgba(255, 107, 130, 0.04));
}

.profile-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.profile-title-row h2 {
    margin: 0 4px 0 0;
    font-size: 25px;
    letter-spacing: -0.035em;
}

.profile-main p {
    margin: 7px 0 0;
    color: #748197;
    font-size: 9px;
}

.profile-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 11px;
    color: #5d6a7f;
    font-size: 8px;
}

.profile-actions {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 8px;
}

.detail-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 15px;
}

.detail-kpi-grid article {
    display: flex;
    min-height: 78px;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(15, 28, 49, 0.75), rgba(10, 21, 39, 0.72));
}

.detail-kpi-grid article > span {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: #9d91f6;
    border: 1px solid rgba(128, 109, 255, 0.18);
    border-radius: 10px;
    background: rgba(128, 109, 255, 0.06);
}

.detail-kpi-grid strong,
.detail-kpi-grid small {
    display: block;
}

.detail-kpi-grid strong {
    font-size: 17px;
}

.detail-kpi-grid small {
    color: #5f6c81;
    font-size: 8px;
}

.detail-grid {
    display: grid;
    gap: 15px;
    margin-bottom: 15px;
}

.detail-grid-overview {
    grid-template-columns: 1.15fr 1fr 0.8fr;
}

.detail-grid-chart {
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.6fr);
}

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

.detail-grid-history.three-column {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-panel,
.detail-chart-panel,
.finance-panel,
.timeline-panel,
.tasks-panel-detail,
.compact-history-panel {
    padding-bottom: 19px;
}

.detail-panel-header {
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 17px 19px;
    color: #7c6fee;
    border-bottom: 1px solid rgba(148, 168, 208, 0.07);
}

.detail-panel-header h3 {
    margin: 3px 0 0;
    color: var(--text);
    font-size: 13px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
    padding: 18px 19px 0;
}

.info-grid span,
.info-grid strong,
.target-metrics span,
.target-metrics strong {
    display: block;
}

.info-grid span,
.target-metrics span {
    color: #536075;
    font-size: 7px;
}

.info-grid strong,
.target-metrics strong {
    overflow: hidden;
    margin-top: 3px;
    color: #a1acbe;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.target-university {
    margin: 17px 19px;
    padding: 13px;
    color: #b5aaff;
    border: 1px solid rgba(128, 109, 255, 0.14);
    border-radius: 10px;
    background: rgba(128, 109, 255, 0.045);
    font-size: 10px;
    font-weight: 650;
}

.target-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 0 19px;
}

.parent-card {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 18px 19px 12px;
}

.parent-avatar {
    display: grid;
    width: 37px;
    height: 37px;
    place-items: center;
    color: #75d9fa;
    border: 1px solid rgba(66, 201, 245, 0.2);
    border-radius: 11px;
    background: rgba(66, 201, 245, 0.07);
    font-size: 8px;
}

.parent-card strong,
.parent-card small {
    display: block;
}

.parent-card strong {
    font-size: 9px;
}

.parent-card small {
    color: #59667b;
    font-size: 7px;
}

.contact-list {
    display: grid;
    gap: 7px;
    padding: 0 19px;
    color: #78859a;
    font-size: 8px;
}

.risk-note {
    padding: 5px 8px;
    border-radius: 7px;
    font-size: 7px;
}

.risk-note.good {
    color: #68dfb8;
    background: rgba(62, 215, 164, 0.07);
}

.risk-note.risk {
    color: #f5c268;
    background: rgba(246, 183, 74, 0.07);
}

.risk-note.critical {
    color: #ff8ea1;
    background: rgba(255, 107, 130, 0.07);
}

.student-chart-wrap {
    height: 285px;
    padding: 14px 17px 0;
}

.student-chart-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}

.finance-total {
    padding: 19px 19px 10px;
}

.finance-total span,
.finance-total strong {
    display: block;
}

.finance-total span {
    color: #59667b;
    font-size: 8px;
}

.finance-total strong {
    margin-top: 4px;
    font-size: 23px;
    letter-spacing: -0.03em;
}

.payment-progress {
    height: 6px;
    margin: 4px 19px 14px;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
}

.payment-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--violet), var(--emerald));
    box-shadow: 0 0 12px rgba(62, 215, 164, 0.24);
}

.finance-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0 19px 14px;
}

.finance-split div {
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.015);
}

.finance-split span,
.finance-split strong {
    display: block;
}

.finance-split span {
    color: #536075;
    font-size: 7px;
}

.finance-split strong {
    margin-top: 3px;
    color: #a5afc0;
    font-size: 9px;
}

.mini-history {
    padding: 0 19px;
}

.mini-history > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-top: 1px solid rgba(148, 168, 208, 0.065);
    color: #8490a4;
    font-size: 8px;
}

.mini-history small {
    display: block;
    color: #4f5c70;
    font-size: 6px;
}

.panel-count {
    display: inline-grid;
    min-width: 27px;
    height: 25px;
    padding: 0 7px;
    place-items: center;
    color: #9185e9;
    border: 1px solid rgba(128, 109, 255, 0.15);
    border-radius: 7px;
    background: rgba(128, 109, 255, 0.05);
    font-size: 7px;
}

.responsive-table {
    overflow-x: auto;
}

.responsive-table td {
    padding: 11px 14px;
    color: #7e8b9f;
    border-top: 1px solid rgba(148, 168, 208, 0.065);
    font-size: 8px;
    white-space: nowrap;
}

.responsive-table td strong {
    color: #aab3c3;
}

.type-chip {
    padding: 4px 7px;
    color: #9c90f4;
    border-radius: 6px;
    background: rgba(128, 109, 255, 0.07);
    font-size: 7px;
    font-weight: 700;
}

.detail-timeline,
.task-list-detail,
.compact-history-list {
    padding: 15px 19px 0;
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 13px 1fr;
    gap: 9px;
    padding-bottom: 15px;
}

.timeline-item::before {
    position: absolute;
    top: 12px;
    bottom: 0;
    left: 4px;
    width: 1px;
    content: "";
    background: rgba(128, 109, 255, 0.17);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-item > i {
    position: relative;
    z-index: 2;
    width: 9px;
    height: 9px;
    margin-top: 3px;
    border: 2px solid #172741;
    border-radius: 50%;
    background: var(--violet);
    box-shadow: 0 0 8px rgba(128, 109, 255, 0.5);
}

.timeline-item strong,
.timeline-item span,
.timeline-item small {
    display: block;
}

.timeline-item strong {
    font-size: 8px;
}

.timeline-item span {
    color: #59667b;
    font-size: 7px;
}

.timeline-item p {
    margin: 6px 0 0;
    color: #7b879b;
    font-size: 8px;
    line-height: 1.55;
}

.timeline-item small {
    margin-top: 5px;
    color: #9285e9;
    font-size: 7px;
}

.task-item-detail {
    display: grid;
    min-height: 55px;
    grid-template-columns: 25px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    border-bottom: 1px solid rgba(148, 168, 208, 0.065);
}

.task-check {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    color: #65dbb4;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 9px;
}

.task-check.completed {
    border-color: rgba(62, 215, 164, 0.18);
    background: rgba(62, 215, 164, 0.07);
}

.task-item-detail strong,
.task-item-detail span {
    display: block;
}

.task-item-detail strong {
    font-size: 8px;
}

.task-item-detail div span {
    color: #536075;
    font-size: 7px;
}

.mini-status.pending {
    color: #f3bf64;
    border-color: rgba(246, 183, 74, 0.15);
    background: rgba(246, 183, 74, 0.05);
}

.mini-status.completed {
    color: #65dab4;
    border-color: rgba(62, 215, 164, 0.15);
    background: rgba(62, 215, 164, 0.05);
}

.mini-status.cancelled {
    color: #7a879a;
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.02);
}

.compact-history-list > div:not(.empty-state) {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid rgba(148, 168, 208, 0.065);
}

.compact-history-list span strong,
.compact-history-list span small {
    display: block;
}

.compact-history-list span strong {
    color: #98a4b7;
    font-size: 8px;
}

.compact-history-list span small {
    max-width: 210px;
    overflow: hidden;
    color: #536075;
    font-size: 7px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-history-list b {
    color: #8e82e7;
    font-size: 8px;
    font-weight: 650;
    white-space: nowrap;
}

.attendance-status.geldi {
    color: #65dbb4;
}

.attendance-status.gec_geldi {
    color: #f2bc5c;
}

.attendance-status.gelmedi {
    color: #ff8499;
}

.compact-empty {
    min-height: 90px;
    display: grid;
    place-items: center;
}

@media (max-width: 1260px) {
    .student-toolbar {
        display: block;
    }

    .module-search {
        width: 100%;
        margin-bottom: 10px;
    }

    .detail-grid-overview {
        grid-template-columns: 1fr 1fr;
    }

    .parent-panel {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .student-summary-grid,
    .detail-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-grid-overview,
    .detail-grid-chart,
    .detail-grid-history,
    .detail-grid-history.three-column {
        grid-template-columns: 1fr;
    }

    .parent-panel {
        grid-column: auto;
    }
}

@media (max-width: 680px) {
    .module-hero,
    .student-profile-hero {
        display: block;
    }

    .module-hero .button,
    .profile-actions {
        margin-top: 17px;
    }

    .student-table thead {
        display: none;
    }

    .student-table,
    .student-table tbody {
        display: block;
    }

    .student-record {
        position: relative;
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin: 10px;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 13px;
        background: rgba(255, 255, 255, 0.012);
    }

    .student-record td {
        display: block;
        min-width: 0;
        padding: 8px;
        border: 0;
    }

    .student-record td:first-child,
    .student-record td:nth-child(4),
    .student-record td:nth-child(5),
    .student-record td:last-child {
        grid-column: 1 / -1;
    }

    .row-menu {
        justify-content: flex-start;
        padding-top: 5px;
        border-top: 1px solid var(--line);
    }

    .profile-main {
        align-items: flex-start;
    }

    .profile-contact {
        display: grid;
        gap: 5px;
    }

    .profile-actions {
        display: flex;
    }

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

    .student-form .field-wide {
        grid-column: auto;
    }
}

@media (max-width: 480px) {
    .student-summary-grid,
    .detail-kpi-grid,
    .filter-row {
        grid-template-columns: 1fr;
    }

    .directory-hint {
        display: none;
    }

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

    .student-record td {
        grid-column: 1 !important;
    }

    .profile-main {
        display: block;
    }

    .profile-avatar {
        margin-bottom: 14px;
    }

    .profile-actions .button {
        flex: 1;
    }

    .target-metrics {
        grid-template-columns: 1fr;
    }

    .modal-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}

/* Exams and net tracking */
.exams-module {
    max-width: 1640px;
}

.exam-module-hero {
    background:
        radial-gradient(circle at 83% 10%, rgba(66, 201, 245, 0.09), transparent 23%),
        radial-gradient(circle at 66% 100%, rgba(128, 109, 255, 0.1), transparent 28%),
        linear-gradient(135deg, rgba(17, 31, 54, 0.82), rgba(10, 21, 39, 0.7));
}

.exam-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 15px;
}

.exam-summary-grid article {
    display: flex;
    min-height: 85px;
    align-items: center;
    gap: 13px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(16, 29, 50, 0.78), rgba(10, 21, 39, 0.72));
}

.exam-summary-grid strong,
.exam-summary-grid small {
    display: block;
}

.exam-summary-grid strong {
    font-size: 20px;
    letter-spacing: -0.03em;
}

.exam-summary-grid small {
    margin-top: 2px;
    color: #667389;
    font-size: 8px;
}

.exam-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(330px, 0.55fr);
    gap: 15px;
    margin-bottom: 15px;
}

.exam-card-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding: 15px 18px 18px;
}

.exam-card {
    display: grid;
    min-height: 77px;
    grid-template-columns: 38px minmax(0, 1fr) auto 20px;
    align-items: center;
    gap: 10px;
    padding: 12px;
    cursor: pointer;
    text-align: left;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.014);
    transition: 160ms ease;
}

.exam-card:hover {
    transform: translateY(-2px);
    border-color: rgba(128, 109, 255, 0.28);
    background: rgba(128, 109, 255, 0.035);
    box-shadow: 0 13px 30px rgba(0, 0, 0, 0.14);
}

.exam-type-mark {
    display: grid;
    width: 37px;
    height: 37px;
    place-items: center;
    border: 1px solid;
    border-radius: 10px;
    font-size: 7px;
    font-weight: 750;
}

.exam-type-mark.tyt {
    color: #a99dff;
    border-color: rgba(128, 109, 255, 0.22);
    background: rgba(128, 109, 255, 0.08);
}

.exam-type-mark.ayt {
    color: #6ddcff;
    border-color: rgba(66, 201, 245, 0.22);
    background: rgba(66, 201, 245, 0.08);
}

.exam-type-mark.general {
    color: #69dfb8;
    border-color: rgba(62, 215, 164, 0.22);
    background: rgba(62, 215, 164, 0.08);
}

.exam-card-copy,
.exam-card-stats {
    min-width: 0;
}

.exam-card-copy strong,
.exam-card-copy small,
.exam-card-stats strong,
.exam-card-stats small {
    display: block;
}

.exam-card-copy strong {
    overflow: hidden;
    color: #a8b2c2;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.exam-card-copy small {
    margin-top: 3px;
    color: #566378;
    font-size: 7px;
}

.exam-card-stats {
    text-align: right;
}

.exam-card-stats strong {
    color: #9c90f3;
    font-size: 11px;
}

.exam-card-stats small {
    color: #4e5b70;
    font-size: 6px;
}

.exam-card-arrow {
    color: #4d5a70;
}

.recent-result-list {
    max-height: 350px;
    padding: 10px 16px 15px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(128, 109, 255, 0.2) transparent;
}

.recent-result-item {
    display: grid;
    min-height: 58px;
    grid-template-columns: 31px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    border-bottom: 1px solid rgba(148, 168, 208, 0.065);
}

.recent-result-item:hover {
    padding-right: 5px;
    padding-left: 5px;
    border-radius: 9px;
    background: rgba(128, 109, 255, 0.025);
}

.result-student-avatar {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    color: #a99dff;
    border: 1px solid rgba(128, 109, 255, 0.2);
    border-radius: 9px;
    background: rgba(128, 109, 255, 0.07);
    font-size: 7px;
    font-weight: 700;
}

.recent-result-item span strong,
.recent-result-item span small,
.recent-result-item > b small {
    display: block;
}

.recent-result-item span strong {
    overflow: hidden;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-result-item span small {
    overflow: hidden;
    color: #536075;
    font-size: 7px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-result-item > b {
    color: #71dcb9;
    font-size: 10px;
    text-align: right;
}

.recent-result-item > b small {
    color: #4e5b70;
    font-size: 6px;
    font-weight: 500;
}

.net-tracking-panel,
.exam-history-table-panel {
    margin-bottom: 15px;
}

.net-tracking-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--line);
}

.net-tracking-header h3 {
    margin: 4px 0 0;
    font-size: 15px;
}

.net-tracking-header p {
    margin: 4px 0 0;
    color: #5e6b80;
    font-size: 8px;
}

.student-history-select label {
    display: flex;
    min-width: 245px;
    height: 41px;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    color: #7064cf;
    border: 1px solid var(--line-bright);
    border-radius: 10px;
    background: rgba(5, 13, 26, 0.44);
}

.student-history-select select {
    min-width: 0;
    flex: 1;
    color: #9da8ba;
    outline: 0;
    border: 0;
    background: transparent;
    font-size: 9px;
}

.analysis-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    border-bottom: 1px solid var(--line);
    background: var(--line);
}

.analysis-strip article {
    padding: 16px 20px;
    background: rgba(11, 23, 41, 0.96);
}

.analysis-strip span,
.analysis-strip strong,
.analysis-strip small {
    display: block;
}

.analysis-strip span {
    color: #5c697e;
    font-size: 7px;
}

.analysis-strip strong {
    margin-top: 3px;
    font-size: 19px;
    letter-spacing: -0.03em;
}

.analysis-strip small {
    color: #4e5b70;
    font-size: 7px;
}

.trend-analysis.up strong {
    color: var(--emerald);
}

.trend-analysis.down strong {
    color: var(--danger);
}

.trend-analysis.stable strong {
    color: var(--amber);
}

.exam-chart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(250px, 0.55fr);
    min-height: 340px;
}

.exam-chart-wrap {
    height: 340px;
    padding: 22px 18px 17px;
    border-right: 1px solid var(--line);
}

.exam-chart-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}

.history-mini-list {
    padding: 12px 17px;
}

.history-mini-list > div {
    display: grid;
    min-height: 49px;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(148, 168, 208, 0.065);
}

.history-index {
    color: #4c596e;
    font-size: 7px;
    font-weight: 700;
}

.history-mini-list strong,
.history-mini-list small {
    display: block;
}

.history-mini-list strong {
    overflow: hidden;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-mini-list small {
    color: #526075;
    font-size: 6px;
}

.history-mini-list b {
    color: #9b8ff1;
    font-size: 9px;
}

.exam-modal {
    width: min(600px, 100%);
}

.student-form textarea {
    width: 100%;
    padding: 12px 14px;
    resize: vertical;
    color: var(--text);
    outline: 0;
    border: 1px solid rgba(149, 165, 198, 0.15);
    border-radius: 11px;
    background: rgba(4, 12, 24, 0.54);
    font: inherit;
    font-size: 10px;
}

.student-form textarea:focus {
    border-color: rgba(128, 109, 255, 0.65);
    box-shadow: 0 0 0 3px rgba(128, 109, 255, 0.1);
}

.result-modal {
    width: min(1040px, 100%);
}

.result-form {
    padding: 20px 22px 22px;
}

.result-form-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.result-form .field select {
    width: 100%;
    height: 44px;
}

.result-section {
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.012);
}

.result-section[hidden] {
    display: none;
}

.result-section-heading {
    display: flex;
    min-height: 51px;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    background: rgba(128, 109, 255, 0.025);
}

.result-section-heading > div {
    display: flex;
    align-items: center;
    gap: 9px;
}

.result-section-heading > div > span {
    padding: 5px 7px;
    color: #a99dff;
    border: 1px solid rgba(128, 109, 255, 0.18);
    border-radius: 6px;
    background: rgba(128, 109, 255, 0.07);
    font-size: 7px;
    font-weight: 750;
}

.result-section-heading strong {
    font-size: 9px;
}

.result-section-heading small {
    color: #5b687d;
    font-size: 7px;
}

.subject-entry-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 11px;
}

.subject-entry-grid.ayt-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.subject-entry {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 11px;
    border: 1px solid rgba(148, 168, 208, 0.09);
    border-radius: 10px;
    background: rgba(5, 13, 26, 0.34);
}

.subject-entry > strong {
    grid-column: 1 / -1;
    color: #aab4c4;
    font-size: 9px;
}

.subject-entry label {
    display: grid;
    gap: 4px;
}

.subject-entry label span,
.subject-entry > div span {
    color: #536075;
    font-size: 6px;
}

.subject-entry input {
    width: 100%;
    height: 37px;
    padding: 0 8px;
    color: var(--text);
    outline: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
    font-size: 10px;
    font-weight: 650;
}

.subject-entry input:focus {
    border-color: rgba(128, 109, 255, 0.5);
}

.subject-entry > div {
    display: flex;
    min-height: 34px;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    border-radius: 7px;
    background: rgba(128, 109, 255, 0.06);
}

.subject-entry output {
    color: #aca2ff;
    font-size: 11px;
    font-weight: 750;
}

.result-footer {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px;
    gap: 11px;
    align-items: end;
    padding: 13px;
    border: 1px solid rgba(128, 109, 255, 0.14);
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(128, 109, 255, 0.07), rgba(66, 201, 245, 0.025));
}

.result-total {
    display: flex;
    min-height: 45px;
    align-items: center;
    justify-content: space-between;
    padding: 0 13px;
    border: 1px solid rgba(128, 109, 255, 0.14);
    border-radius: 9px;
    background: rgba(5, 13, 26, 0.35);
}

.result-total span {
    color: #758298;
    font-size: 8px;
}

.result-total output {
    color: #b3aaff;
    font-size: 20px;
    font-weight: 750;
    letter-spacing: -0.03em;
}

@media (max-width: 1180px) {
    .exam-main-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 900px) {
    .exam-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .exam-chart-wrap {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .subject-entry-grid,
    .subject-entry-grid.ayt-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .result-footer {
        grid-template-columns: 1fr 1fr;
    }

    .result-total {
        grid-column: 1 / -1;
    }
}

@media (max-width: 680px) {
    .exam-card-list {
        grid-template-columns: 1fr;
    }

    .net-tracking-header {
        display: block;
    }

    .student-history-select {
        margin-top: 13px;
    }

    .student-history-select label {
        min-width: 0;
        width: 100%;
    }

    .analysis-strip {
        grid-template-columns: 1fr;
    }

    .result-form-top,
    .result-footer {
        grid-template-columns: 1fr;
    }

    .result-total {
        grid-column: auto;
    }
}

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

    .exam-module-hero .welcome-actions {
        display: grid;
    }

    .subject-entry-grid,
    .subject-entry-grid.ayt-grid {
        grid-template-columns: 1fr;
    }

    .result-section-heading small {
        display: none;
    }

    .result-form {
        padding: 14px;
    }

    .subject-entry input {
        height: 44px;
        font-size: 13px;
    }
}

/* Coaching module */
.coaching-module {
    max-width: 1640px;
}

.coaching-hero {
    background:
        radial-gradient(circle at 82% 10%, rgba(128, 109, 255, 0.14), transparent 26%),
        radial-gradient(circle at 65% 110%, rgba(62, 215, 164, 0.06), transparent 28%),
        linear-gradient(135deg, rgba(17, 31, 54, 0.84), rgba(10, 21, 39, 0.72));
}

.coaching-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 15px;
}

.coaching-summary-grid article {
    display: flex;
    min-height: 85px;
    align-items: center;
    gap: 13px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(16, 29, 50, 0.8), rgba(10, 21, 39, 0.72));
}

.coaching-summary-grid strong,
.coaching-summary-grid small {
    display: block;
}

.coaching-summary-grid strong {
    font-size: 20px;
}

.coaching-summary-grid small {
    color: #647187;
    font-size: 8px;
}

.coaching-workspace {
    display: grid;
    grid-template-columns: minmax(340px, 0.65fr) minmax(0, 1.35fr);
    gap: 15px;
}

.coaching-left-column {
    display: grid;
    align-content: start;
    gap: 15px;
}

.overdue-student-list,
.portfolio-list {
    padding: 10px 15px 15px;
}

.overdue-student,
.portfolio-student {
    display: grid;
    width: 100%;
    min-height: 61px;
    grid-template-columns: 32px minmax(0, 1fr) auto 17px;
    align-items: center;
    gap: 9px;
    padding: 7px;
    cursor: pointer;
    text-align: left;
    border: 0;
    border-bottom: 1px solid rgba(148, 168, 208, 0.065);
    background: transparent;
    transition: 150ms ease;
}

.overdue-student:hover,
.portfolio-student:hover {
    padding-right: 10px;
    padding-left: 10px;
    border-radius: 9px;
    background: rgba(128, 109, 255, 0.03);
}

.overdue-student > span:nth-child(2),
.portfolio-student > span:nth-child(2) {
    min-width: 0;
}

.overdue-student strong,
.overdue-student small,
.portfolio-student strong,
.portfolio-student small {
    display: block;
}

.overdue-student strong,
.portfolio-student strong {
    overflow: hidden;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.overdue-student small,
.portfolio-student small {
    overflow: hidden;
    color: #536075;
    font-size: 7px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.overdue-student > svg,
.portfolio-student > svg {
    color: #4e5b70;
}

.coach-selector-header form select {
    min-width: 160px;
    height: 34px;
    padding: 0 27px 0 9px;
    color: #9488ec;
    outline: 0;
    border: 1px solid rgba(128, 109, 255, 0.16);
    border-radius: 8px;
    background: #101e33;
    font-size: 8px;
}

.portfolio-student {
    grid-template-columns: 32px minmax(0, 1fr) auto 17px;
}

.portfolio-student > span:nth-child(3) {
    text-align: right;
}

.portfolio-student > span:nth-child(3) strong {
    color: #8e82e6;
    font-size: 7px;
}

.coaching-history-panel {
    min-height: 640px;
}

.coaching-history-list {
    display: grid;
    gap: 10px;
    max-height: 850px;
    padding: 14px 17px 18px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(128, 109, 255, 0.22) transparent;
}

.coaching-note-card {
    overflow: hidden;
    border: 1px solid rgba(148, 168, 208, 0.1);
    border-radius: 13px;
    background:
        linear-gradient(110deg, rgba(128, 109, 255, 0.035), transparent 35%),
        rgba(255, 255, 255, 0.012);
}

.coaching-note-head {
    display: grid;
    grid-template-columns: 43px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(148, 168, 208, 0.07);
}

.coaching-date {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    align-content: center;
    color: #aa9fff;
    border: 1px solid rgba(128, 109, 255, 0.2);
    border-radius: 11px;
    background: rgba(128, 109, 255, 0.07);
}

.coaching-date strong,
.coaching-date small,
.coaching-note-head div > a,
.coaching-note-head div > span {
    display: block;
}

.coaching-date strong {
    font-size: 13px;
    line-height: 1;
}

.coaching-date small {
    color: #6e639f;
    font-size: 6px;
}

.coaching-note-head div > a {
    font-size: 9px;
    font-weight: 650;
}

.coaching-note-head div > a:hover {
    color: #aa9fff;
}

.coaching-note-head div > span {
    margin-top: 3px;
    color: #59667b;
    font-size: 7px;
}

.coaching-note-head time {
    color: #657288;
    font-size: 8px;
}

.coaching-note-body {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: rgba(148, 168, 208, 0.06);
}

.coaching-note-body > div {
    min-height: 98px;
    padding: 13px;
    background: rgba(11, 23, 41, 0.97);
}

.coaching-note-body span {
    color: #796bd5;
    font-size: 7px;
    font-weight: 650;
}

.coaching-note-body p {
    margin: 7px 0 0;
    color: #8490a3;
    font-size: 8px;
    line-height: 1.6;
}

.motivation-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 10px;
    padding: 10px 11px;
    color: #e5b75e;
    border: 1px solid rgba(246, 183, 74, 0.14);
    border-radius: 9px;
    background: linear-gradient(90deg, rgba(246, 183, 74, 0.07), rgba(246, 183, 74, 0.02));
}

.motivation-note p {
    margin: 0;
}

.motivation-note strong,
.motivation-note span {
    display: block;
}

.motivation-note strong {
    font-size: 7px;
}

.motivation-note span {
    margin-top: 2px;
    color: #96805b;
    font-size: 7px;
    line-height: 1.5;
}

.coaching-small-modal {
    width: min(520px, 100%);
}

.session-modal {
    width: min(850px, 100%);
}

.coaching-form textarea {
    min-height: 80px;
}

.coaching-form .motivation-field textarea {
    color: #f0c77b;
    border-color: rgba(246, 183, 74, 0.18);
    background: rgba(246, 183, 74, 0.035);
}

.student-coaching-details {
    display: grid;
    gap: 6px;
    margin-top: 8px;
}

.student-coaching-details > div {
    padding: 8px;
    border: 1px solid rgba(148, 168, 208, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.015);
}

.student-coaching-details b,
.student-coaching-details span {
    display: block;
}

.student-coaching-details b {
    color: #8f82e7;
    font-size: 7px;
}

.student-coaching-details span {
    margin-top: 3px;
    color: #768398;
    font-size: 7px;
    line-height: 1.45;
}

.student-coaching-details .motivation {
    border-color: rgba(246, 183, 74, 0.12);
    background: rgba(246, 183, 74, 0.035);
}

.student-coaching-details .motivation b {
    color: #d8a955;
}

/* Dashboard coaching pulse */
.coaching-pulse-panel {
    margin-bottom: 15px;
}

.coaching-pulse-header {
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

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

.coaching-pulse-column {
    min-width: 0;
    padding: 16px 18px 18px;
    border-right: 1px solid var(--line);
}

.coaching-pulse-column:last-child {
    border-right: 0;
}

.pulse-column-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 9px;
}

.pulse-icon {
    display: grid;
    width: 31px;
    height: 31px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid;
    border-radius: 9px;
}

.pulse-icon.amber {
    color: #f2c166;
    border-color: rgba(246, 183, 74, 0.18);
    background: rgba(246, 183, 74, 0.06);
}

.pulse-icon.violet {
    color: #a89cff;
    border-color: rgba(128, 109, 255, 0.18);
    background: rgba(128, 109, 255, 0.06);
}

.pulse-icon.danger {
    color: #ff879a;
    border-color: rgba(255, 107, 130, 0.18);
    background: rgba(255, 107, 130, 0.06);
}

.pulse-column-title strong,
.pulse-column-title small {
    display: block;
}

.pulse-column-title strong {
    font-size: 9px;
}

.pulse-column-title small {
    color: #536075;
    font-size: 7px;
}

.pulse-list > a {
    display: grid;
    min-height: 50px;
    grid-template-columns: 27px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(148, 168, 208, 0.06);
}

.pulse-list > a:hover {
    padding-right: 4px;
    padding-left: 4px;
    border-radius: 8px;
    background: rgba(128, 109, 255, 0.025);
}

.pulse-avatar,
.pulse-rank {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    color: #988ceb;
    border: 1px solid rgba(128, 109, 255, 0.15);
    border-radius: 8px;
    background: rgba(128, 109, 255, 0.05);
    font-size: 6px;
    font-weight: 700;
}

.pulse-rank {
    color: #5f6c82;
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.015);
}

.pulse-list span strong,
.pulse-list span small,
.pulse-list > a > b small {
    display: block;
}

.pulse-list span strong {
    overflow: hidden;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pulse-list span small {
    overflow: hidden;
    color: #4f5c71;
    font-size: 6px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pulse-list > a > b {
    color: #867ae0;
    font-size: 8px;
    text-align: right;
    white-space: nowrap;
}

.pulse-list > a > b small {
    color: #4f5c71;
    font-size: 5px;
    font-weight: 500;
}

.risk-dot {
    width: 8px;
    height: 8px;
    justify-self: center;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
}

.risk-dot.risk {
    color: var(--amber);
}

.risk-dot.critical {
    color: var(--danger);
}

.pulse-empty {
    padding: 25px 8px;
    color: #536075;
    text-align: center;
    font-size: 7px;
}

@media (max-width: 1180px) {
    .coaching-workspace {
        grid-template-columns: 1fr;
    }

    .coaching-left-column {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .coaching-pulse-grid {
        grid-template-columns: 1fr;
    }

    .coaching-pulse-column {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .coaching-pulse-column:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 820px) {
    .coaching-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .coaching-left-column {
        grid-template-columns: 1fr;
    }

    .coaching-note-body {
        grid-template-columns: 1fr;
    }
}

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

    .coaching-hero .welcome-actions {
        display: grid;
    }

    .coach-selector-header {
        display: block;
    }

    .coach-selector-header form {
        margin-top: 10px;
    }

    .coach-selector-header form select {
        width: 100%;
    }

    .overdue-student {
        grid-template-columns: 32px minmax(0, 1fr) 16px;
    }

    .overdue-student .risk-badge {
        display: none;
    }

    .coaching-note-head {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .coaching-note-head time {
        display: none;
    }
}

/* NEXORA premium SaaS visual upgrade */
:root {
    --bg: #08111f;
    --bg-soft: #0b1628;
    --panel: rgba(255, 255, 255, 0.08);
    --panel-strong: rgba(255, 255, 255, 0.105);
    --line: rgba(255, 255, 255, 0.12);
    --line-bright: rgba(255, 255, 255, 0.2);
    --text: #f7f9ff;
    --text-soft: #b7c2d8;
    --text-muted: #77859c;
    --violet: #6c63ff;
    --violet-light: #a49dff;
    --cyan: #00d4ff;
    --amber: #ffd166;
    --emerald: #2ee59d;
    --danger: #ff5c7a;
    --radius: 22px;
    --shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

html {
    background: #08111f;
}

body {
    background:
        radial-gradient(circle at 16% -8%, rgba(108, 99, 255, 0.2), transparent 32%),
        radial-gradient(circle at 86% 4%, rgba(0, 212, 255, 0.14), transparent 30%),
        radial-gradient(circle at 58% 110%, rgba(46, 229, 157, 0.08), transparent 36%),
        linear-gradient(180deg, #08111f 0%, #091425 48%, #07101d 100%);
}

.dashboard-page::before,
.dashboard-page::after {
    position: fixed;
    z-index: -1;
    content: "";
    pointer-events: none;
    border-radius: 50%;
    filter: blur(92px);
    opacity: 0.62;
}

.dashboard-page::before {
    top: 82px;
    right: 8%;
    width: 320px;
    height: 320px;
    background: rgba(0, 212, 255, 0.12);
}

.dashboard-page::after {
    bottom: -110px;
    left: 30%;
    width: 420px;
    height: 420px;
    background: rgba(108, 99, 255, 0.13);
}

.brand-mark {
    border-color: rgba(255, 255, 255, 0.18);
    background:
        radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.85), transparent 0 9%, transparent 10%),
        linear-gradient(145deg, #00d4ff 0%, #6c63ff 48%, #4a41d8 100%);
    box-shadow:
        0 16px 40px rgba(108, 99, 255, 0.34),
        0 0 28px rgba(0, 212, 255, 0.12),
        inset 0 1px rgba(255, 255, 255, 0.34);
}

.brand strong {
    font-weight: 850;
    letter-spacing: 0.18em;
}

.brand small {
    color: rgba(218, 226, 245, 0.62);
    letter-spacing: 0.12em;
}

.button {
    border-radius: 14px;
    letter-spacing: -0.01em;
}

.button-primary {
    border-color: rgba(255, 255, 255, 0.22);
    background: linear-gradient(135deg, #6c63ff 0%, #00d4ff 120%);
    box-shadow:
        0 14px 34px rgba(108, 99, 255, 0.3),
        0 0 28px rgba(0, 212, 255, 0.1),
        inset 0 1px rgba(255, 255, 255, 0.24);
}

.button-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 18px 44px rgba(108, 99, 255, 0.38),
        0 0 34px rgba(0, 212, 255, 0.16),
        inset 0 1px rgba(255, 255, 255, 0.28);
}

.button-secondary,
.icon-button,
.search-box,
.field input,
.field select,
.field textarea,
.password-wrap input,
.student-form input,
.student-form select,
.student-form textarea {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.055);
    backdrop-filter: blur(18px);
}

.button-secondary:hover,
.icon-button:hover,
.search-box:focus-within,
.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: rgba(0, 212, 255, 0.42);
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.08);
}

.panel,
.auth-card,
.stat-card,
.module-hero,
.welcome-row,
.report-print-shell,
.student-modal,
.confirm-modal,
.finance-summary-grid article,
.lesson-summary-grid article,
.etude-summary-grid article,
.study-summary-grid article,
.attendance-summary-grid article,
.notification-summary-grid article,
.exam-summary-grid article,
.task-summary-grid article,
.coaching-summary-card {
    border-color: rgba(255, 255, 255, 0.12);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.055)),
        rgba(8, 17, 31, 0.36);
    box-shadow:
        0 22px 70px rgba(0, 0, 0, 0.24),
        inset 0 1px rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(22px);
}

.panel:hover,
.stat-card:hover,
.report-type-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
}

.section-kicker,
.intro-badge,
.eyebrow {
    color: #a49dff;
}

.summary-icon,
.stat-icon,
.pulse-icon,
.schedule-event-icon,
.welcome-icon {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.12), 0 10px 28px rgba(0, 0, 0, 0.16);
}

.summary-icon.violet,
.pulse-icon.violet,
.stat-violet .stat-icon {
    color: #a49dff;
    background: rgba(108, 99, 255, 0.13);
}

.summary-icon.cyan,
.pulse-icon.cyan {
    color: #64e6ff;
    background: rgba(0, 212, 255, 0.12);
}

.summary-icon.emerald,
.pulse-icon.emerald {
    color: #64f0bb;
    background: rgba(46, 229, 157, 0.12);
}

.summary-icon.amber,
.pulse-icon.amber {
    color: #ffe093;
    background: rgba(255, 209, 102, 0.12);
}

.summary-icon.danger,
.pulse-icon.danger {
    color: #ff8da3;
    background: rgba(255, 92, 122, 0.12);
}

.sidebar {
    border-right-color: rgba(255, 255, 255, 0.1);
    background:
        radial-gradient(circle at 60% 0, rgba(108, 99, 255, 0.12), transparent 35%),
        linear-gradient(180deg, rgba(12, 24, 43, 0.88), rgba(8, 17, 31, 0.94));
    box-shadow: 22px 0 70px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(24px);
}

.sidebar-brand,
.sidebar-footer,
.topbar {
    border-color: rgba(255, 255, 255, 0.1);
}

.nav-item {
    border-radius: 14px;
}

.nav-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.055);
}

.nav-item.active {
    border-color: rgba(0, 212, 255, 0.22);
    background:
        linear-gradient(90deg, rgba(108, 99, 255, 0.28), rgba(0, 212, 255, 0.08));
    box-shadow:
        inset 3px 0 #00d4ff,
        0 10px 26px rgba(0, 0, 0, 0.11);
}

.nav-item.active .nav-icon {
    color: #73e9ff;
}

.topbar {
    background:
        linear-gradient(180deg, rgba(8, 17, 31, 0.82), rgba(8, 17, 31, 0.58));
    backdrop-filter: blur(26px);
}

.profile-button:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.055);
}

.avatar,
.student-avatar,
.pulse-avatar {
    border-color: rgba(255, 255, 255, 0.16);
    background: linear-gradient(145deg, rgba(108, 99, 255, 0.36), rgba(0, 212, 255, 0.11));
}

.auth-page {
    background:
        radial-gradient(circle at 18% 18%, rgba(108, 99, 255, 0.22), transparent 28%),
        radial-gradient(circle at 82% 22%, rgba(0, 212, 255, 0.15), transparent 30%),
        radial-gradient(circle at 55% 100%, rgba(46, 229, 157, 0.11), transparent 34%),
        #08111f;
}

.ambient {
    opacity: 0.48;
    filter: blur(110px);
}

.ambient-one {
    background: #6c63ff;
}

.ambient-two {
    background: #00d4ff;
}

.login-page .login-shell {
    grid-template-columns: 1fr;
    place-items: center;
    padding: 42px 18px;
}

.login-page .login-showcase {
    position: absolute;
    inset: 0;
    z-index: 0;
    justify-content: space-between;
    padding: 40px clamp(20px, 4vw, 56px);
    border-right: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 76px 76px;
}

.login-page .login-showcase::after {
    top: 50%;
    right: 50%;
    width: min(72vw, 720px);
    height: min(72vw, 720px);
    transform: translate(50%, -50%);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow:
        0 0 0 70px rgba(108, 99, 255, 0.03),
        0 0 0 150px rgba(0, 212, 255, 0.018);
}

.login-page .showcase-content {
    width: min(860px, calc(100vw - 40px));
    margin: 6vh auto 0;
    text-align: center;
}

.login-page .showcase-content h1 {
    margin-right: auto;
    margin-left: auto;
    font-size: clamp(36px, 5vw, 68px);
}

.login-page .showcase-content p {
    margin-right: auto;
    margin-left: auto;
    color: rgba(219, 229, 248, 0.72);
}

.login-page .showcase-metrics {
    justify-content: center;
    margin-top: 30px;
}

.login-page .showcase-metrics div {
    min-width: 112px;
    padding: 13px 16px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.055);
    backdrop-filter: blur(18px);
}

.login-page .showcase-footer {
    align-self: center;
    color: rgba(215, 225, 245, 0.38);
}

.login-page .login-card {
    position: relative;
    z-index: 2;
    width: min(456px, calc(100vw - 34px));
    margin-top: min(31vh, 260px);
    padding: 42px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 20% 0, rgba(108, 99, 255, 0.16), transparent 38%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.065));
}

.login-page .login-card::before {
    position: absolute;
    inset: 1px;
    z-index: -1;
    content: "";
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 32%);
    pointer-events: none;
}

.login-page .mobile-brand {
    display: grid;
    justify-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.login-page .mobile-brand strong {
    font-size: 25px;
    letter-spacing: 0.22em;
}

.login-page .mobile-brand small {
    color: rgba(219, 229, 248, 0.62);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.login-page .auth-card-header h2 {
    font-size: 29px;
}

.login-page .demo-credentials {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.045);
}

.premium-dashboard {
    position: relative;
}

.premium-dashboard::before {
    position: absolute;
    top: 15px;
    right: 44px;
    width: 210px;
    height: 210px;
    content: "";
    pointer-events: none;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.16), transparent 66%);
    filter: blur(8px);
}

.dashboard-hero {
    min-height: 132px;
    padding: 26px 28px;
    border-color: rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    background:
        radial-gradient(circle at 82% 8%, rgba(0, 212, 255, 0.2), transparent 32%),
        radial-gradient(circle at 18% 100%, rgba(108, 99, 255, 0.23), transparent 36%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
    box-shadow:
        0 28px 88px rgba(0, 0, 0, 0.24),
        inset 0 1px rgba(255, 255, 255, 0.12);
}

.dashboard-hero h2 {
    font-size: clamp(27px, 2.2vw, 38px);
    font-weight: 820;
    letter-spacing: -0.045em;
}

.hero-description {
    color: rgba(221, 230, 248, 0.72);
    font-size: 11px;
}

.page-subtitle {
    color: #9eaade;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.live-badge {
    border-color: rgba(46, 229, 157, 0.2);
    color: #8af4c9;
    background: rgba(46, 229, 157, 0.09);
}

.stats-grid-premium {
    gap: 16px;
}

.stats-grid-premium .stat-card {
    min-height: 166px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0, color-mix(in srgb, currentColor 14%, transparent), transparent 38%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.055));
}

.stats-grid-premium .stat-card::before {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 46%);
}

.stats-grid-premium .stat-card > * {
    position: relative;
    z-index: 2;
}

.stats-grid-premium .stat-card > p {
    color: rgba(220, 230, 248, 0.7);
    font-weight: 700;
}

.stats-grid-premium .stat-card > strong {
    color: #fff;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.stats-grid-premium .stat-card > small {
    color: rgba(183, 194, 216, 0.62);
}

.chart-panel,
.alerts-panel,
.heatmap-panel,
.premium-schedule,
.insight-panel,
.coaching-pulse-panel,
.task-pulse-panel,
.study-pulse-panel,
.finance-pulse-panel {
    border-radius: 26px;
}

.panel-header h3,
.detail-panel-header h3 {
    color: #f7f9ff;
    font-weight: 780;
    letter-spacing: -0.02em;
}

.panel-header p,
.detail-panel-header p {
    color: rgba(183, 194, 216, 0.62);
}

.empty-state,
.premium-empty,
.pulse-empty {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

@supports not (background: color-mix(in srgb, red, transparent)) {
    .stats-grid-premium .stat-card {
        background:
            radial-gradient(circle at 100% 0, rgba(108, 99, 255, 0.12), transparent 38%),
            linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.055));
    }
}

@media (max-width: 920px) {
    .login-page .login-shell {
        min-height: 100vh;
        align-content: center;
    }

    .login-page .login-showcase {
        padding: 24px;
    }

    .login-page .showcase-content {
        margin-top: 2vh;
    }

    .login-page .login-card {
        margin-top: 240px;
    }
}

@media (max-width: 680px) {
    .login-page .showcase-content h1 {
        font-size: 34px;
    }

    .login-page .showcase-content p {
        font-size: 13px;
    }

    .login-page .showcase-metrics {
        display: none;
    }

    .login-page .login-card {
        margin-top: 185px;
        padding: 30px;
    }

    .dashboard-hero {
        padding: 22px;
    }
}

@media (max-width: 460px) {
    .login-page .login-card {
        margin-top: 150px;
        padding: 24px;
    }

    .login-page .mobile-brand small {
        max-width: 210px;
        text-align: center;
        line-height: 1.45;
    }
}

/* Reports center */
.reports-hero {
    background:
        radial-gradient(circle at 84% 16%, rgba(66, 201, 245, 0.13), transparent 27%),
        radial-gradient(circle at 12% 100%, rgba(143, 124, 255, 0.12), transparent 30%),
        linear-gradient(135deg, rgba(16, 33, 57, 0.95), rgba(8, 22, 39, 0.84));
}

.report-type-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.report-type-card {
    min-height: 116px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(17, 34, 58, 0.76), rgba(10, 22, 39, 0.62));
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.report-type-card:hover,
.report-type-card.active {
    transform: translateY(-2px);
    border-color: rgba(143, 124, 255, 0.28);
    background:
        radial-gradient(circle at 100% 0, rgba(143, 124, 255, 0.12), transparent 36%),
        linear-gradient(145deg, rgba(19, 38, 64, 0.88), rgba(10, 22, 39, 0.72));
}

.report-type-card span {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    margin-bottom: 10px;
    border-radius: 9px;
    color: #8f7cff;
    background: rgba(143, 124, 255, 0.09);
}

.report-type-card strong,
.report-type-card small {
    display: block;
}

.report-type-card strong {
    color: #c0ccdc;
    font-size: 7.5px;
}

.report-type-card small {
    margin-top: 6px;
    color: #607087;
    font-size: 5.7px;
    line-height: 1.55;
}

.report-filter-panel {
    display: grid;
    grid-template-columns: repeat(4, minmax(130px, 1fr)) auto auto;
    align-items: end;
    gap: 10px;
    margin-bottom: 14px;
    padding: 16px;
}

.report-print-shell {
    border: 1px solid var(--line);
    border-radius: 18px;
    background:
        radial-gradient(circle at 100% 0, rgba(66, 201, 245, 0.075), transparent 32%),
        rgba(10, 22, 39, 0.72);
    overflow: hidden;
}

.report-print-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 22px;
    border-bottom: 1px solid var(--line);
}

.brand-mini {
    display: inline-grid;
    width: 45px;
    height: 22px;
    place-items: center;
    margin-bottom: 10px;
    border-radius: 7px;
    color: #081423;
    background: linear-gradient(135deg, #42c9f5, #8f7cff);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.report-print-header h1 {
    margin: 0;
    color: #dce6f6;
    font-size: 19px;
}

.report-print-header p,
.report-print-meta span {
    color: #66748a;
    font-size: 7px;
}

.report-print-meta {
    text-align: right;
}

.report-print-meta strong {
    display: block;
    margin-top: 4px;
    color: #b9c5d7;
    font-size: 8px;
}

.report-summary-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    border-bottom: 1px solid var(--line);
    background: var(--line);
}

.report-summary-strip article {
    padding: 14px 18px;
    background: rgba(10, 22, 39, 0.92);
}

.report-summary-strip span,
.report-summary-strip strong {
    display: block;
}

.report-summary-strip span {
    color: #5e6d83;
    font-size: 6px;
}

.report-summary-strip strong {
    margin-top: 4px;
    color: #d0dbea;
    font-size: 14px;
}

.report-explain-box {
    margin: 16px 18px 0;
    padding: 13px 15px;
    border: 1px solid rgba(66, 201, 245, 0.13);
    border-radius: 12px;
    background: rgba(66, 201, 245, 0.045);
}

.report-explain-box strong {
    color: #7bdcf8;
    font-size: 8px;
}

.report-explain-box p {
    margin: 5px 0 0;
    color: #66748a;
    font-size: 6.5px;
    line-height: 1.65;
}

.report-table-panel {
    margin: 18px;
    padding: 18px;
}

.report-table {
    min-width: 900px;
}

.report-table th {
    white-space: nowrap;
}

.report-table td {
    max-width: 260px;
    vertical-align: top;
}

.report-print-footer {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 22px 20px;
    color: #56647a;
    font-size: 6px;
}

.report-print-footer strong {
    color: #8b98ad;
}

@media (max-width: 1180px) {
    .report-type-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media (max-width: 760px) {
    .report-type-grid,
    .report-filter-panel,
    .report-summary-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .report-print-header,
    .report-print-footer {
        display: grid;
        text-align: left;
    }

    .report-print-meta {
        text-align: left;
    }
}

/* Candidate pool */
.candidate-hero {
    background:
        radial-gradient(circle at 88% 12%, rgba(18, 169, 220, 0.17), transparent 30%),
        linear-gradient(135deg, #ffffff, #edf4ff) !important;
}

.candidate-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.candidate-summary-grid article {
    display: flex;
    min-height: 96px;
    align-items: center;
    gap: 13px;
    padding: 17px;
    border: 1px solid rgba(69, 87, 124, 0.16);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 32px rgba(31, 48, 83, 0.09);
}

.candidate-summary-grid strong,
.candidate-summary-grid small {
    display: block;
}

.candidate-summary-grid strong {
    color: #172033;
    font-size: 25px;
}

.candidate-summary-grid small {
    color: #586a86;
    font-size: 13px;
}

.candidate-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.65fr);
    gap: 16px;
    align-items: start;
}

.candidate-list-panel,
.candidate-create-panel,
.candidate-integration-panel {
    padding: 20px;
    color: #172033 !important;
    background: rgba(255, 255, 255, 0.95) !important;
}

.candidate-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 190px auto auto;
    gap: 10px;
    margin: 16px 0;
}

.candidate-toolbar select,
.candidate-status-form select {
    min-height: 42px;
    padding: 0 11px;
    color: #172033;
    border: 1px solid rgba(69, 87, 124, 0.2);
    border-radius: 10px;
    background: #fff;
    font: inherit;
    font-size: 13px;
}

.candidate-card-list {
    display: grid;
    gap: 11px;
}

.candidate-card {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 180px;
    align-items: start;
    gap: 13px;
    padding: 16px;
    border: 1px solid rgba(69, 87, 124, 0.13);
    border-radius: 15px;
    background: #f9fbff;
}

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

.candidate-copy strong {
    color: #172033;
    font-size: 15px;
}

.candidate-copy span,
.candidate-copy small,
.candidate-copy p {
    color: #586a86;
    font-size: 12.5px;
    line-height: 1.6;
}

.candidate-copy p {
    margin: 8px 0;
    color: #33435e;
}

.candidate-meta {
    display: flex;
    gap: 10px;
    margin-top: 9px;
}

.candidate-meta span,
.candidate-meta time {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 7px;
    color: #554bd4;
    background: #eeefff;
    font-size: 11px;
}

.candidate-copy details {
    margin-top: 10px;
}

.candidate-copy summary {
    color: #4f46d8;
    font-size: 12px;
    cursor: pointer;
}

.candidate-copy pre {
    max-height: 240px;
    overflow: auto;
    padding: 12px;
    border-radius: 10px;
    color: #33435e;
    background: #eef3fb;
    font-size: 11px;
    white-space: pre-wrap;
}

.candidate-form-grid {
    display: grid;
    gap: 11px;
    margin: 15px 0;
}

.candidate-integration-panel {
    margin-top: 16px;
}

.integration-credentials {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 12px;
    margin: 16px 0;
}

.integration-credentials label span,
.integration-credentials label input {
    display: block;
    width: 100%;
}

.integration-credentials label span {
    margin-bottom: 6px;
    color: #33435e;
    font-size: 13px;
    font-weight: 600;
}

.integration-credentials input {
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid rgba(69, 87, 124, 0.18);
    border-radius: 10px;
    color: #263650;
    background: #f7faff;
    font: inherit;
    font-size: 12px;
}

.integration-guidance {
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid rgba(18, 169, 220, 0.18);
    border-radius: 12px;
    background: #eef8ff;
}

.integration-guidance strong {
    color: #172033;
    font-size: 14px;
}

.integration-guidance p {
    margin: 4px 0 0;
    color: #586a86;
    font-size: 13px;
}

@media (max-width: 1050px) {
    .candidate-workspace {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .candidate-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .candidate-toolbar,
    .integration-credentials {
        grid-template-columns: 1fr;
    }

    .candidate-card {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .candidate-status-form {
        grid-column: 1 / -1;
    }

    .candidate-status-form select {
        width: 100%;
    }
}

/* Exam result modal readability */
.result-modal {
    color: #172033 !important;
    background: #ffffff !important;
}

.result-modal .modal-header {
    background: #ffffff !important;
    border-bottom-color: rgba(69, 87, 124, 0.16) !important;
}

.result-modal .modal-header h3 {
    color: #172033 !important;
    font-size: 22px !important;
    font-weight: 600 !important;
}

.result-form {
    background: #ffffff !important;
}

.result-form-top .field > span,
.result-footer .field > span {
    color: #33435e !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

.result-form .field select,
.result-footer .field input {
    min-height: 46px !important;
    color: #172033 !important;
    background: #ffffff !important;
    border-color: rgba(69, 87, 124, 0.24) !important;
    font-size: 14px !important;
}

.result-section {
    background: #f8faff !important;
    border-color: rgba(69, 87, 124, 0.16) !important;
}

.result-section-heading {
    min-height: 58px !important;
    padding: 12px 15px !important;
    background: #f1f3ff !important;
    border-bottom-color: rgba(69, 87, 124, 0.14) !important;
}

.result-section-heading > div > span {
    padding: 6px 9px !important;
    color: #554bd4 !important;
    background: #e8e7ff !important;
    border-color: rgba(95, 85, 238, 0.2) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
}

.result-section-heading strong {
    color: #172033 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

.result-section-heading small {
    color: #586a86 !important;
    font-size: 12px !important;
}

.subject-entry-grid {
    gap: 12px !important;
    padding: 14px !important;
}

.subject-entry {
    gap: 10px !important;
    padding: 14px !important;
    border-color: rgba(69, 87, 124, 0.16) !important;
    background: #ffffff !important;
    box-shadow: 0 8px 20px rgba(31, 48, 83, 0.07) !important;
}

.subject-entry > strong {
    color: #263650 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

.subject-entry label span,
.subject-entry > div span {
    color: #65758d !important;
    font-size: 12px !important;
    font-weight: 500 !important;
}

.subject-entry input {
    height: 42px !important;
    padding: 0 11px !important;
    color: #172033 !important;
    background: #f7faff !important;
    border-color: rgba(69, 87, 124, 0.2) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

.subject-entry input:focus {
    background: #ffffff !important;
    border-color: #5f55ee !important;
    box-shadow: 0 0 0 3px rgba(95, 85, 238, 0.12) !important;
}

.subject-entry > div {
    min-height: 40px !important;
    padding: 0 11px !important;
    background: #eeefff !important;
}

.subject-entry output {
    color: #554bd4 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

.result-footer {
    padding: 15px !important;
    background: #f6f8ff !important;
    border-color: rgba(95, 85, 238, 0.18) !important;
}

.result-total {
    min-height: 48px !important;
    background: #ffffff !important;
    border-color: rgba(69, 87, 124, 0.18) !important;
}

.result-total span {
    color: #586a86 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

.result-total output {
    color: #5f55ee !important;
    font-size: 22px !important;
    font-weight: 700 !important;
}

@media (max-width: 680px) {
    .result-modal .modal-header h3 {
        font-size: 19px !important;
    }

    .result-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .subject-entry-grid,
    .subject-entry-grid.ayt-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Dashboard stat grid and icon correction */
.stats-grid,
.stats-grid-premium {
    display: grid !important;
    width: 100% !important;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important;
    gap: 18px !important;
    align-items: stretch !important;
}

.stats-grid-premium .stat-card,
.stat-card {
    min-width: 0 !important;
    min-height: 178px !important;
    padding: 22px !important;
    border-radius: 24px !important;
}

.stat-top {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
}

.stat-icon,
.summary-icon,
.pulse-icon,
.schedule-event-icon,
.alert-symbol {
    display: inline-grid !important;
    width: 44px !important;
    height: 44px !important;
    place-items: center !important;
    flex: 0 0 44px !important;
    border-radius: 14px !important;
    color: #5f55ee !important;
    background: linear-gradient(135deg, rgba(95, 85, 238, 0.13), rgba(18, 169, 220, 0.1)) !important;
    border: 1px solid rgba(95, 85, 238, 0.12) !important;
    box-shadow: 0 10px 24px rgba(95, 85, 238, 0.12) !important;
}

.stat-icon svg,
.summary-icon svg,
.pulse-icon svg,
.schedule-event-icon svg,
.alert-symbol svg,
.nav-icon svg {
    width: 21px !important;
    height: 21px !important;
    stroke: currentColor !important;
    opacity: 1 !important;
}

.stat-violet .stat-icon,
.violet {
    color: #5f55ee !important;
    background: rgba(95, 85, 238, 0.12) !important;
}

.stat-cyan .stat-icon,
.cyan {
    color: #0c9fcf !important;
    background: rgba(18, 169, 220, 0.13) !important;
}

.stat-emerald .stat-icon,
.emerald {
    color: #0c9f6f !important;
    background: rgba(19, 185, 129, 0.13) !important;
}

.stat-amber .stat-icon,
.amber {
    color: #b97905 !important;
    background: rgba(217, 154, 23, 0.15) !important;
}

.stat-danger .stat-icon,
.danger {
    color: #d93656 !important;
    background: rgba(228, 72, 99, 0.13) !important;
}

.stat-card > p,
.stats-grid-premium .stat-card > p {
    overflow: visible !important;
    white-space: normal !important;
    text-overflow: clip !important;
    min-height: auto !important;
}

.stat-card > small,
.stats-grid-premium .stat-card > small {
    display: block !important;
    overflow: visible !important;
    min-height: auto !important;
    white-space: normal !important;
}

@media (min-width: 1500px) {
    .stats-grid,
    .stats-grid-premium {
        grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 1180px) {
    .stats-grid,
    .stats-grid-premium {
        grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important;
    }
}

@media (max-width: 620px) {
    .stats-grid,
    .stats-grid-premium {
        grid-template-columns: 1fr !important;
    }
}

/* Complete bright-theme coverage */
.heatmap-panel,
.insight-panel,
.alerts-panel,
.premium-schedule,
.coaching-pulse-panel,
.finance-pulse-panel,
.study-pulse-panel,
.task-pulse-panel,
.coaching-pulse-column,
.task-pulse-column,
.lesson-create-panel,
.teacher-calendar-panel,
.etude-create-panel,
.etude-list-panel,
.etude-participant-panel,
.parent-notification-panel,
.daily-study-panel,
.study-chart-panel,
.attendance-history-panel,
.absence-report-panel,
.report-result-panel {
    color: #172033 !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(69, 87, 124, 0.16) !important;
    box-shadow: 0 16px 38px rgba(31, 48, 83, 0.1) !important;
}

.heatmap-grid {
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)) !important;
    gap: 14px !important;
    padding: 20px 22px 24px !important;
}

.health-card {
    min-height: 132px !important;
    padding: 18px !important;
    border: 1px solid rgba(69, 87, 124, 0.14) !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 26px rgba(31, 48, 83, 0.08) !important;
}

.health-card.good {
    color: #087853 !important;
    background: linear-gradient(135deg, #f2fff9, #e9faf4) !important;
}

.health-card.risk {
    color: #916006 !important;
    background: linear-gradient(135deg, #fffaf0, #fff4d8) !important;
}

.health-card.critical {
    color: #b92f4a !important;
    background: linear-gradient(135deg, #fff5f7, #ffe9ee) !important;
}

.health-avatar {
    width: 46px !important;
    height: 46px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

.health-copy strong {
    overflow: visible !important;
    color: #172033 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    text-overflow: clip !important;
}

.health-copy small,
.health-net small,
.health-reason {
    overflow: visible !important;
    color: #52647f !important;
    font-size: 12.5px !important;
    line-height: 1.55 !important;
    white-space: normal !important;
    text-overflow: clip !important;
}

.health-net strong {
    color: currentColor !important;
    font-size: 18px !important;
    font-weight: 600 !important;
}

.risk-orbit {
    background:
        radial-gradient(circle at center, #ffffff 56%, transparent 57%),
        conic-gradient(
            #13b981 0 var(--good-end),
            #e7aa28 var(--good-end) var(--risk-end),
            #e44863 var(--risk-end) 100%
        ) !important;
    box-shadow: 0 14px 34px rgba(31, 48, 83, 0.12) !important;
}

.risk-orbit::before {
    border-color: rgba(69, 87, 124, 0.1) !important;
}

.risk-orbit strong {
    color: #172033 !important;
    font-weight: 600 !important;
}

.risk-orbit span,
.risk-breakdown span {
    color: #52647f !important;
    font-size: 13px !important;
}

.risk-breakdown strong {
    color: #172033 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

.insight-note,
.pulse-list a,
.dashboard-due-list a,
.dashboard-study-list article,
.dashboard-task-list a,
.teacher-schedule-list article,
.parent-notification-list article,
.daily-study-row,
.recent-result-item {
    background: #f7faff !important;
    border-color: rgba(69, 87, 124, 0.12) !important;
    color: #263650 !important;
}

.table-responsive {
    width: 100% !important;
    overflow-x: auto !important;
    padding: 0 20px 22px;
}

table.table-secondary {
    display: table !important;
    width: 100% !important;
    max-width: none !important;
    table-layout: auto !important;
    overflow: visible !important;
    border-collapse: collapse;
}

.table-secondary th,
.table-secondary td {
    padding: 15px 14px !important;
    border-bottom: 1px solid rgba(69, 87, 124, 0.1) !important;
    color: #33435e !important;
    text-align: left;
    vertical-align: middle;
}

.table-secondary thead {
    background: #f4f7fc !important;
}

.directory-module {
    display: grid;
    gap: 18px;
}

.directory-module > * {
    margin: 0 !important;
}

.directory-form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 0 22px 24px;
    align-items: end;
}

.directory-form-grid .button {
    min-height: 48px;
}

.parent-portal,
.parent-topbar,
.parent-student-grid article,
.parent-notification-panel {
    color: #172033 !important;
    background: rgba(255, 255, 255, 0.92) !important;
    border-color: rgba(69, 87, 124, 0.16) !important;
}

.parent-student-grid strong,
.parent-notification-list strong,
.teacher-schedule-list strong {
    color: #172033 !important;
    font-size: 14px !important;
}

.parent-student-grid small,
.parent-student-grid p,
.parent-notification-list p,
.parent-notification-list small,
.teacher-schedule-list small,
.teacher-schedule-list time span {
    color: #586a86 !important;
    font-size: 12.5px !important;
}

@media (max-width: 980px) {
    .directory-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .heatmap-grid,
    .directory-form-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 520px) {
    .report-type-grid,
    .report-filter-panel,
    .report-summary-strip {
        grid-template-columns: 1fr;
    }
}

@media print {
    @page {
        margin: 12mm;
        size: A4 landscape;
    }

    body {
        background: #fff !important;
        color: #111827 !important;
    }

    .no-print,
    .sidebar,
    .sidebar-overlay,
    .topbar {
        display: none !important;
    }

    .app-shell,
    .dashboard-content {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .report-print-shell,
    .report-table-panel {
        border: 0 !important;
        border-radius: 0 !important;
        background: #fff !important;
        box-shadow: none !important;
    }

    .report-print-header,
    .report-summary-strip,
    .report-print-footer {
        border-color: #d1d5db !important;
    }

    .report-print-header h1,
    .report-summary-strip strong,
    .report-print-meta strong,
    .report-print-footer strong {
        color: #111827 !important;
    }

    .report-print-header p,
    .report-print-meta span,
    .report-summary-strip span,
    .report-print-footer,
    .report-explain-box p {
        color: #4b5563 !important;
    }

    .report-summary-strip {
        grid-template-columns: repeat(4, 1fr);
        background: #e5e7eb !important;
    }

    .report-summary-strip article {
        background: #f9fafb !important;
    }

    .report-explain-box {
        border-color: #d1d5db !important;
        background: #f9fafb !important;
    }

    .responsive-table,
    .report-table-wrap {
        overflow: visible !important;
    }

    .report-table {
        min-width: 0 !important;
        width: 100%;
        border-collapse: collapse;
    }

    .report-table th,
    .report-table td {
        border: 1px solid #d1d5db !important;
        color: #111827 !important;
        background: #fff !important;
        font-size: 8px !important;
        padding: 5px !important;
    }

    .brand-mini {
        color: #fff !important;
        background: #111827 !important;
    }
}

/* Finance center */
.finance-hero {
    background:
        radial-gradient(circle at 83% 16%, rgba(62, 215, 164, 0.13), transparent 28%),
        radial-gradient(circle at 12% 100%, rgba(66, 201, 245, 0.08), transparent 30%),
        linear-gradient(135deg, rgba(15, 34, 55, 0.95), rgba(8, 22, 37, 0.84));
}

.finance-trust-badge {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid rgba(62, 215, 164, 0.18);
    border-radius: 10px;
    color: #72e1bc;
    background: rgba(62, 215, 164, 0.06);
    font-size: 7px;
    font-weight: 700;
}

.finance-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.finance-summary-grid article {
    display: flex;
    min-height: 84px;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(17, 34, 58, 0.86), rgba(10, 22, 39, 0.72));
    box-shadow: 0 14px 34px rgba(1, 8, 18, 0.13);
}

.finance-summary-grid strong,
.finance-summary-grid small {
    display: block;
}

.finance-summary-grid strong {
    color: #dce6f6;
    font-size: 16px;
}

.finance-summary-grid small {
    margin-top: 3px;
    color: #66748a;
    font-size: 7px;
}

.finance-action-grid,
.finance-insight-grid,
.finance-history-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.finance-form-panel,
.debtors-panel,
.due-panel,
.monthly-finance-panel,
.student-finance-panel,
.transaction-history-panel,
.recent-collections-panel {
    padding: 18px;
}

.finance-form-panel {
    background:
        radial-gradient(circle at 100% 0, rgba(143, 124, 255, 0.07), transparent 35%),
        var(--panel);
}

.collection-panel {
    background:
        radial-gradient(circle at 100% 0, rgba(62, 215, 164, 0.075), transparent 35%),
        var(--panel);
}

.finance-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    margin: 14px 0;
}

.debtor-list,
.due-list,
.payment-plan-list,
.transaction-list,
.recent-collection-list {
    margin-top: 10px;
}

.debtor-list a,
.due-list a,
.payment-plan-list a {
    display: grid;
    min-height: 52px;
    align-items: center;
    gap: 9px;
    border-bottom: 1px solid rgba(148, 168, 208, 0.06);
}

.debtor-list a {
    grid-template-columns: 31px minmax(0, 1fr) auto;
}

.due-list a {
    grid-template-columns: 38px minmax(0, 1fr) auto;
}

.payment-plan-list a {
    grid-template-columns: minmax(0, 1fr) auto 75px;
}

.debtor-list a:hover,
.due-list a:hover,
.payment-plan-list a:hover {
    padding-right: 4px;
    padding-left: 4px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.018);
}

.debtor-list strong,
.debtor-list small,
.due-list strong,
.due-list small,
.payment-plan-list strong,
.payment-plan-list small {
    display: block;
}

.debtor-list strong,
.due-list > a > span strong,
.payment-plan-list > a > span:first-child strong {
    color: #adb9cb;
    font-size: 7px;
}

.debtor-list small,
.due-list > a > span small,
.payment-plan-list small {
    color: #526075;
    font-size: 5.5px;
}

.debtor-list b,
.due-list > a > b,
.payment-plan-list > a > b {
    color: #d6e1f0;
    font-size: 7px;
    text-align: right;
    white-space: nowrap;
}

.due-list time {
    display: grid;
    width: 35px;
    height: 37px;
    place-items: center;
    align-content: center;
    border-radius: 9px;
    color: #efc66d;
    background: rgba(246, 190, 75, 0.08);
}

.due-list time strong {
    color: inherit;
    font-size: 11px;
}

.payment-status {
    padding: 5px 7px;
    border-radius: 7px;
    color: #efc66d;
    background: rgba(246, 190, 75, 0.08);
    font-size: 5px;
    white-space: nowrap;
}

.payment-status.paid {
    color: #66dfba;
    background: rgba(62, 215, 164, 0.08);
}

.payment-status.partial {
    color: #70d9f8;
    background: rgba(66, 201, 245, 0.08);
}

.payment-status.overdue {
    color: #ff8499;
    background: rgba(255, 107, 130, 0.08);
}

.monthly-finance-panel {
    margin-bottom: 14px;
}

.finance-total-paid {
    color: #69dfbb;
    font-size: 15px;
}

.monthly-finance-chart {
    display: grid;
    height: 245px;
    grid-template-columns: repeat(12, minmax(34px, 1fr));
    align-items: end;
    gap: 8px;
    margin-top: 16px;
    overflow-x: auto;
    padding: 5px 3px 0;
}

.monthly-finance-chart article {
    display: grid;
    min-width: 38px;
    justify-items: center;
    gap: 4px;
}

.finance-bar-track {
    display: flex;
    width: 72%;
    height: 155px;
    align-items: flex-end;
    overflow: hidden;
    border-radius: 8px 8px 3px 3px;
    background: rgba(255, 255, 255, 0.025);
}

.finance-bar-track i {
    width: 100%;
    min-height: 2px;
    border-radius: inherit;
    background: linear-gradient(180deg, #63dfb8, #2aa881);
    box-shadow: 0 0 18px rgba(62, 215, 164, 0.12);
}

.monthly-finance-chart strong {
    color: #8e9cb0;
    font-size: 5.5px;
}

.monthly-finance-chart small {
    color: #657389;
    font-size: 5.5px;
}

.monthly-finance-chart em {
    color: #455267;
    font-size: 4.5px;
    font-style: normal;
}

.student-finance-panel .detail-panel-header select {
    min-height: 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: none;
    color: #8d9aaf;
    background: #0b192c;
    padding: 0 8px;
    font: inherit;
    font-size: 6px;
}

.transaction-list article,
.recent-collection-list article {
    display: grid;
    min-height: 54px;
    align-items: center;
    gap: 9px;
    border-bottom: 1px solid rgba(148, 168, 208, 0.06);
}

.transaction-list article {
    grid-template-columns: 28px minmax(110px, 0.65fr) minmax(0, 1fr);
}

.recent-collection-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
}

.recent-collection-list article {
    grid-template-columns: 31px minmax(0, 1fr) auto;
}

.transaction-icon {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border-radius: 8px;
    color: #66dfba;
    background: rgba(62, 215, 164, 0.075);
}

.transaction-list strong,
.transaction-list small,
.recent-collection-list strong,
.recent-collection-list small {
    display: block;
}

.transaction-list strong,
.recent-collection-list strong {
    color: #adb9cb;
    font-size: 7px;
}

.transaction-list small,
.recent-collection-list small {
    color: #526075;
    font-size: 5.5px;
}

.transaction-list p {
    margin: 0;
    color: #66748a;
    font-size: 6px;
}

.recent-collection-list b {
    color: #69dfbb;
    font-size: 7px;
    white-space: nowrap;
}

/* Dashboard finance pulse */
.finance-pulse-panel {
    margin-bottom: 15px;
    overflow: hidden;
}

.finance-pulse-header {
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.finance-pulse-grid {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
}

.finance-pulse-metrics {
    display: grid;
    align-content: center;
    gap: 1px;
    padding: 18px;
    border-right: 1px solid var(--line);
    background: rgba(5, 15, 28, 0.18);
}

.finance-pulse-metrics article {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 11px;
    border-bottom: 1px solid rgba(148, 168, 208, 0.06);
}

.finance-pulse-metrics span {
    color: #66748a;
    font-size: 6.5px;
}

.finance-pulse-metrics strong {
    color: #becadb;
    font-size: 11px;
}

.finance-pulse-metrics strong.positive {
    color: #66dfba;
}

.finance-pulse-metrics strong.danger {
    color: #ff8499;
}

.dashboard-due-list {
    padding: 18px;
}

.dashboard-due-list > a {
    display: grid;
    min-height: 46px;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    border-bottom: 1px solid rgba(148, 168, 208, 0.06);
}

.dashboard-due-list time {
    display: grid;
    width: 31px;
    height: 32px;
    place-items: center;
    align-content: center;
    border-radius: 8px;
    color: #efc66d;
    background: rgba(246, 190, 75, 0.08);
}

.dashboard-due-list time.overdue {
    color: #ff8499;
    background: rgba(255, 107, 130, 0.08);
}

.dashboard-due-list time strong,
.dashboard-due-list time small,
.dashboard-due-list > a > span strong,
.dashboard-due-list > a > span small {
    display: block;
}

.dashboard-due-list time strong {
    font-size: 9px;
}

.dashboard-due-list time small,
.dashboard-due-list > a > span small {
    color: #526075;
    font-size: 5px;
}

.dashboard-due-list > a > span strong {
    color: #aab6c8;
    font-size: 7px;
}

.dashboard-due-list > a > b {
    color: #d0dbea;
    font-size: 7px;
    white-space: nowrap;
}

@media (max-width: 1050px) {
    .finance-pulse-grid {
        grid-template-columns: 1fr;
    }

    .finance-pulse-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .finance-pulse-metrics article {
        display: grid;
        justify-content: start;
    }
}

@media (max-width: 820px) {
    .finance-summary-grid,
    .finance-action-grid,
    .finance-insight-grid,
    .finance-history-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .finance-action-grid,
    .finance-insight-grid,
    .finance-history-grid {
        grid-template-columns: 1fr;
    }

    .recent-collection-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .finance-summary-grid,
    .finance-form-grid,
    .finance-pulse-metrics {
        grid-template-columns: 1fr;
    }

    .finance-trust-badge {
        width: 100%;
        justify-content: center;
    }

    .transaction-list article {
        grid-template-columns: 28px minmax(0, 1fr);
        padding: 8px 0;
    }

    .transaction-list p {
        grid-column: 2;
    }

    .payment-plan-list a {
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 8px 0;
    }

    .payment-plan-list > a > b {
        grid-column: 1 / -1;
        text-align: left;
    }
}

/* Tasks module */
.tasks-module {
    max-width: 1640px;
}

.tasks-hero {
    background:
        radial-gradient(circle at 82% 5%, rgba(128, 109, 255, 0.13), transparent 25%),
        radial-gradient(circle at 64% 110%, rgba(246, 183, 74, 0.055), transparent 30%),
        linear-gradient(135deg, rgba(17, 31, 54, 0.84), rgba(10, 21, 39, 0.72));
}

.task-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 15px;
}

.task-summary-grid article {
    display: flex;
    min-height: 85px;
    align-items: center;
    gap: 13px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(16, 29, 50, 0.8), rgba(10, 21, 39, 0.72));
}

.task-summary-grid strong,
.task-summary-grid small {
    display: block;
}

.task-summary-grid strong {
    font-size: 20px;
}

.task-summary-grid small {
    color: #647187;
    font-size: 8px;
}

.task-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.5fr);
    align-items: start;
    gap: 15px;
}

.task-toolbar {
    display: grid;
    grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(125px, 0.65fr)) auto;
    gap: 8px;
    padding: 17px;
    border-bottom: 1px solid var(--line);
}

.task-toolbar .module-search {
    width: 100%;
}

.task-toolbar select {
    min-width: 0;
    height: 42px;
    padding: 0 29px 0 10px;
    color: #929eb2;
    outline: 0;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #0d1a2e;
    font-size: 8px;
}

.task-card-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 14px 17px 18px;
}

.task-card-module {
    position: relative;
    overflow: hidden;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background:
        linear-gradient(120deg, rgba(128, 109, 255, 0.025), transparent 35%),
        rgba(255, 255, 255, 0.012);
    transition: 160ms ease;
}

.task-card-module::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 2px;
    content: "";
    background: linear-gradient(90deg, transparent, rgba(128, 109, 255, 0.5), transparent);
    opacity: 0.45;
}

.task-card-module.overdue {
    border-color: rgba(255, 107, 130, 0.18);
    background:
        linear-gradient(120deg, rgba(255, 107, 130, 0.06), transparent 42%),
        rgba(255, 255, 255, 0.012);
}

.task-card-module.overdue::before {
    background: linear-gradient(90deg, transparent, rgba(255, 107, 130, 0.75), transparent);
}

.task-card-module:hover {
    transform: translateY(-2px);
    border-color: rgba(128, 109, 255, 0.25);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
}

.task-card-module[hidden] {
    display: none;
}

.task-card-top {
    display: flex;
    align-items: center;
    gap: 6px;
}

.task-subject,
.overdue-badge {
    padding: 4px 7px;
    border-radius: 6px;
    font-size: 6px;
    font-weight: 700;
}

.task-subject {
    color: #9b8ff2;
    background: rgba(128, 109, 255, 0.07);
}

.overdue-badge {
    color: #ff8da0;
    background: rgba(255, 107, 130, 0.08);
}

.task-card-top .mini-status {
    margin-left: auto;
}

.task-card-module h3 {
    margin: 13px 0 5px;
    color: #b0b9c8;
    font-size: 11px;
}

.task-card-module > p {
    display: -webkit-box;
    min-height: 36px;
    overflow: hidden;
    margin: 0;
    color: #667389;
    font-size: 8px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.task-student-row {
    display: grid;
    grid-template-columns: 31px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 0;
    border-top: 1px solid rgba(148, 168, 208, 0.065);
    border-bottom: 1px solid rgba(148, 168, 208, 0.065);
}

.task-student-row strong,
.task-student-row small {
    display: block;
}

.task-student-row strong {
    font-size: 8px;
}

.task-student-row small {
    color: #526075;
    font-size: 6px;
}

.task-student-row time {
    color: #7c899d;
    font-size: 7px;
    white-space: nowrap;
}

.task-card-module.overdue .task-student-row time {
    color: #ff8499;
}

.task-status-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin-top: 10px;
}

.task-status-actions button {
    min-height: 30px;
    cursor: pointer;
    color: #657288;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.012);
    font-size: 7px;
}

.task-status-actions button:hover {
    color: #a99dff;
    border-color: rgba(128, 109, 255, 0.2);
}

.task-status-actions .active.pending {
    color: #f2bf62;
    border-color: rgba(246, 183, 74, 0.18);
    background: rgba(246, 183, 74, 0.06);
}

.task-status-actions .active.completed {
    color: #65dcb5;
    border-color: rgba(62, 215, 164, 0.18);
    background: rgba(62, 215, 164, 0.06);
}

.task-status-actions .active.cancelled {
    color: #929eb1;
    background: rgba(255, 255, 255, 0.035);
}

.task-insights-column {
    display: grid;
    gap: 15px;
}

.completion-score {
    color: #6eddb9;
    font-size: 18px;
    font-weight: 750;
}

.task-progress-large {
    height: 8px;
    margin: 20px 19px 16px;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
}

.task-progress-large span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #7764f3, #3ed7a4);
    box-shadow: 0 0 13px rgba(62, 215, 164, 0.3);
}

.completion-breakdown {
    display: grid;
    gap: 9px;
    padding: 0 19px 20px;
}

.completion-breakdown div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #718097;
    font-size: 8px;
}

.completion-breakdown span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.completion-breakdown i,
.dashboard-task-rate i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.completion-breakdown i.completed,
.dashboard-task-rate i.completed {
    background: var(--emerald);
}

.completion-breakdown i.pending,
.dashboard-task-rate i.pending {
    background: var(--amber);
}

.completion-breakdown i.cancelled {
    background: #68758a;
}

.completion-breakdown strong {
    color: #a3adbe;
}

.student-task-progress-list {
    padding: 10px 17px 17px;
}

.student-task-progress-list a {
    display: block;
    padding: 9px 0;
    border-bottom: 1px solid rgba(148, 168, 208, 0.065);
}

.student-task-progress-list a > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.student-task-progress-list strong,
.student-task-progress-list small {
    display: block;
}

.student-task-progress-list strong {
    font-size: 8px;
}

.student-task-progress-list small {
    color: #526075;
    font-size: 6px;
}

.student-task-progress-list b {
    color: #9185e8;
    font-size: 9px;
}

.mini-progress {
    display: block;
    height: 4px;
    margin-top: 7px;
    overflow: hidden;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
}

.mini-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--violet), var(--emerald));
}

.task-modal {
    width: min(760px, 100%);
}

.student-task-progress {
    padding: 14px 19px 4px;
    border-bottom: 1px solid rgba(148, 168, 208, 0.065);
}

.student-task-progress > div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #657288;
    font-size: 8px;
}

.student-task-progress > div:first-child strong {
    color: #6eddb9;
    font-size: 13px;
}

.student-task-progress-bar {
    display: block;
    height: 6px;
    margin-top: 9px;
    overflow: hidden;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.04);
}

.student-task-progress-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #7764f3, #3ed7a4);
}

.student-task-progress-meta {
    display: flex;
    gap: 14px;
    margin: 9px 0 11px;
    color: #5b687d;
    font-size: 7px;
}

.student-task-progress-meta b {
    color: #929db0;
}

.student-task-progress-meta .danger,
.student-task-progress-meta .danger b {
    color: #ff8499;
}

/* Dashboard task pulse */
.task-pulse-panel {
    margin-bottom: 15px;
}

.task-pulse-header {
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.task-pulse-grid {
    display: grid;
    grid-template-columns: 1fr 0.8fr 1fr;
}

.task-pulse-column {
    min-width: 0;
    padding: 16px 18px 18px;
    border-right: 1px solid var(--line);
}

.task-pulse-column:last-child {
    border-right: 0;
}

.dashboard-task-list > a {
    display: grid;
    min-height: 50px;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(148, 168, 208, 0.06);
}

.dashboard-task-list > a:hover {
    padding-right: 4px;
    padding-left: 4px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.018);
}

.task-alert-dot {
    width: 7px;
    height: 7px;
    justify-self: center;
    border-radius: 50%;
    background: var(--danger);
    box-shadow: 0 0 8px rgba(255, 107, 130, 0.55);
}

.dashboard-task-list strong,
.dashboard-task-list small,
.dashboard-task-list > a > b small {
    display: block;
}

.dashboard-task-list strong {
    overflow: hidden;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-task-list small {
    overflow: hidden;
    color: #4f5c71;
    font-size: 6px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-task-list > a > b {
    color: #ff8499;
    font-size: 8px;
    text-align: right;
    white-space: nowrap;
}

.dashboard-task-list > a > b small {
    color: #4f5c71;
    font-size: 5px;
    font-weight: 500;
}

.dashboard-task-rate {
    display: flex;
    min-height: 220px;
    align-items: center;
    justify-content: center;
    gap: 22px;
}

.task-rate-ring {
    display: grid;
    width: 128px;
    height: 128px;
    flex: 0 0 auto;
    place-items: center;
    align-content: center;
    border-radius: 50%;
    background:
        radial-gradient(circle, #0d1a2e 58%, transparent 59%),
        conic-gradient(var(--emerald) 0 var(--task-rate), rgba(255, 255, 255, 0.045) var(--task-rate) 100%);
    box-shadow: 0 0 35px rgba(62, 215, 164, 0.08);
}

.task-rate-ring strong,
.task-rate-ring span {
    display: block;
}

.task-rate-ring strong {
    font-size: 23px;
}

.task-rate-ring span {
    color: #5e6b80;
    font-size: 6px;
}

.dashboard-task-rate p {
    display: flex;
    min-width: 110px;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 9px 0;
    color: #718097;
    font-size: 7px;
}

.dashboard-task-rate p span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dashboard-task-rate p b {
    color: #a5afc0;
}

@media (max-width: 1280px) {
    .task-workspace {
        grid-template-columns: 1fr;
    }

    .task-insights-column {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1050px) {
    .task-toolbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .task-toolbar .module-search {
        grid-column: 1 / -1;
    }

    .task-pulse-grid {
        grid-template-columns: 1fr;
    }

    .task-pulse-column {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
}

@media (max-width: 760px) {
    .task-summary-grid,
    .task-insights-column {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 540px) {
    .task-summary-grid,
    .task-insights-column,
    .task-toolbar {
        grid-template-columns: 1fr;
    }

    .task-toolbar .module-search {
        grid-column: auto;
    }

    .tasks-hero .button {
        width: 100%;
    }

    .task-student-row {
        grid-template-columns: 31px minmax(0, 1fr);
    }

    .task-student-row time {
        grid-column: 2;
    }

    .dashboard-task-rate {
        display: grid;
        justify-items: center;
    }

    .student-task-progress-meta {
        display: grid;
        gap: 4px;
    }
}

/* Study center */
.study-module {
    padding-bottom: 42px;
}

.study-hero {
    background:
        radial-gradient(circle at 82% 18%, rgba(66, 201, 245, 0.13), transparent 27%),
        radial-gradient(circle at 12% 100%, rgba(143, 124, 255, 0.12), transparent 30%),
        linear-gradient(135deg, rgba(14, 29, 51, 0.94), rgba(10, 22, 39, 0.8));
}

.integration-badge {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid rgba(62, 215, 164, 0.18);
    border-radius: 10px;
    color: #74e4be;
    background: rgba(62, 215, 164, 0.065);
    font-size: 7px;
    font-weight: 700;
}

.study-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.study-summary-grid article {
    display: flex;
    min-height: 82px;
    align-items: center;
    gap: 13px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(17, 34, 58, 0.84), rgba(10, 22, 39, 0.7));
    box-shadow: 0 14px 34px rgba(1, 8, 18, 0.14);
}

.study-summary-grid strong,
.study-summary-grid small {
    display: block;
}

.study-summary-grid strong {
    margin-bottom: 3px;
    color: #dce6f6;
    font-size: 19px;
}

.study-summary-grid small {
    color: #66748a;
    font-size: 7px;
}

.study-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(280px, 0.75fr);
    gap: 14px;
    margin-bottom: 14px;
}

.daily-study-panel,
.top-study-panel,
.never-attended-panel,
.student-study-chart-panel {
    padding: 18px;
}

.daily-study-list {
    margin-top: 12px;
}

.daily-study-row {
    display: grid;
    min-height: 62px;
    grid-template-columns: 34px minmax(120px, 1fr) 58px 58px 72px 72px;
    align-items: center;
    gap: 10px;
    padding: 8px 5px;
    border-bottom: 1px solid rgba(148, 168, 208, 0.07);
    transition: background 180ms ease, padding 180ms ease;
}

.daily-study-row:hover {
    padding-right: 9px;
    padding-left: 9px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.018);
}

.daily-study-row.inside {
    background: linear-gradient(90deg, rgba(62, 215, 164, 0.045), transparent 42%);
}

.daily-student strong,
.daily-student small,
.study-time strong,
.study-time small,
.study-duration strong,
.study-duration small {
    display: block;
}

.daily-student strong {
    overflow: hidden;
    color: #b8c4d7;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.daily-student small,
.study-time small,
.study-duration small {
    margin-top: 2px;
    color: #536075;
    font-size: 5.5px;
}

.study-time strong,
.study-duration strong {
    color: #8f9cb1;
    font-size: 8px;
}

.checkout-button {
    min-height: 27px;
    border: 1px solid rgba(66, 201, 245, 0.2);
    border-radius: 8px;
    color: #66d4f6;
    background: rgba(66, 201, 245, 0.07);
    font: inherit;
    font-size: 6px;
    font-weight: 700;
    cursor: pointer;
}

.checkout-button:hover {
    border-color: rgba(66, 201, 245, 0.38);
    background: rgba(66, 201, 245, 0.12);
}

.study-side-column {
    display: grid;
    align-content: start;
    gap: 14px;
}

.top-study-list,
.never-attended-list {
    margin-top: 10px;
}

.top-study-list a {
    display: grid;
    min-height: 48px;
    grid-template-columns: 27px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    border-bottom: 1px solid rgba(148, 168, 208, 0.065);
}

.top-study-list a:hover,
.never-attended-list a:hover {
    padding-right: 4px;
    padding-left: 4px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.018);
}

.study-rank {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border: 1px solid rgba(143, 124, 255, 0.18);
    border-radius: 8px;
    color: #8f7cff;
    background: rgba(143, 124, 255, 0.07);
    font-size: 6px;
    font-weight: 800;
}

.top-study-list strong,
.top-study-list small,
.never-attended-list strong,
.never-attended-list small {
    display: block;
}

.top-study-list strong,
.never-attended-list strong {
    color: #aebacd;
    font-size: 7px;
}

.top-study-list small,
.never-attended-list small {
    margin-top: 2px;
    color: #526075;
    font-size: 5.5px;
}

.top-study-list b {
    color: #75d8f7;
    font-size: 7px;
    white-space: nowrap;
}

.never-attended-list a {
    display: grid;
    min-height: 45px;
    grid-template-columns: 29px minmax(0, 1fr) 15px;
    align-items: center;
    gap: 9px;
    border-bottom: 1px solid rgba(148, 168, 208, 0.06);
}

.never-attended-list svg {
    color: #46536a;
}

.student-study-chart-panel {
    margin-bottom: 14px;
}

.study-analysis-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: 15px 0 5px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--line);
}

.study-analysis-strip article {
    padding: 13px 16px;
    background: rgba(10, 22, 39, 0.93);
}

.study-analysis-strip span,
.study-analysis-strip strong {
    display: block;
}

.study-analysis-strip span {
    margin-bottom: 4px;
    color: #56647a;
    font-size: 6px;
}

.study-analysis-strip strong {
    color: #c7d3e5;
    font-size: 13px;
}

.study-chart-wrap {
    height: 285px;
    padding-top: 12px;
}

.study-modal {
    width: min(720px, calc(100vw - 30px));
}

.calculated-duration {
    padding: 12px 14px;
    border: 1px solid rgba(66, 201, 245, 0.13);
    border-radius: 11px;
    background: rgba(66, 201, 245, 0.045);
}

.calculated-duration output {
    display: block;
    margin-top: 5px;
    color: #72dafa;
    font-size: 13px;
    font-weight: 800;
}

.calculated-duration output.invalid {
    color: #ff8499;
}

.integration-note {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(62, 215, 164, 0.13);
    border-radius: 11px;
    color: #59d9ad;
    background: rgba(62, 215, 164, 0.045);
}

.integration-note p,
.integration-note strong,
.integration-note span {
    display: block;
    margin: 0;
}

.integration-note strong {
    margin-bottom: 3px;
    font-size: 7px;
}

.integration-note span {
    color: #66758a;
    font-size: 6px;
    line-height: 1.6;
}

.checkout-modal .field {
    margin: 15px 0 4px;
    text-align: left;
}

/* Dashboard study pulse */
.study-pulse-panel {
    margin-bottom: 15px;
    overflow: hidden;
}

.study-pulse-header {
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.study-pulse-grid {
    display: grid;
    grid-template-columns: minmax(230px, 0.65fr) minmax(0, 1.35fr);
}

.study-live-cards {
    display: grid;
    align-content: center;
    gap: 10px;
    padding: 18px;
    border-right: 1px solid var(--line);
}

.study-live-cards article {
    position: relative;
    display: flex;
    min-height: 78px;
    align-items: center;
    gap: 13px;
    padding: 15px;
    overflow: hidden;
    border: 1px solid rgba(148, 168, 208, 0.09);
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(16, 33, 56, 0.85), rgba(10, 22, 39, 0.65));
}

.study-live-cards strong,
.study-live-cards small {
    display: block;
}

.study-live-cards strong {
    color: #d7e2f2;
    font-size: 22px;
}

.study-live-cards small {
    margin-top: 2px;
    color: #627087;
    font-size: 6px;
}

.study-live-cards .inside-card {
    border-color: rgba(62, 215, 164, 0.12);
    background: linear-gradient(135deg, rgba(62, 215, 164, 0.07), rgba(10, 22, 39, 0.68));
}

.study-live-cards .inside-card > i {
    position: absolute;
    top: 13px;
    right: 13px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 12px rgba(62, 215, 164, 0.7);
    animation: pulse 1.8s infinite;
}

.dashboard-study-leaders {
    min-width: 0;
    padding: 18px;
}

.dashboard-study-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
    margin-top: 9px;
}

.dashboard-study-list a {
    display: grid;
    min-height: 45px;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(148, 168, 208, 0.06);
}

.dashboard-study-list a:hover {
    padding-right: 4px;
    padding-left: 4px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.018);
}

.dashboard-study-list strong,
.dashboard-study-list small {
    display: block;
}

.dashboard-study-list strong {
    overflow: hidden;
    color: #abb7ca;
    font-size: 7px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-study-list small {
    margin-top: 2px;
    color: #4f5d72;
    font-size: 5.5px;
}

.dashboard-study-list b {
    color: #70d9f8;
    font-size: 7px;
    white-space: nowrap;
}

@media (max-width: 1120px) {
    .study-main-grid {
        grid-template-columns: 1fr;
    }

    .study-side-column {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .study-pulse-grid {
        grid-template-columns: 1fr;
    }

    .study-live-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
}

@media (max-width: 820px) {
    .study-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .daily-study-row {
        grid-template-columns: 34px minmax(110px, 1fr) 52px 52px 65px;
    }

    .daily-study-row .checkout-button,
    .daily-study-row .record-status {
        grid-column: 2 / -1;
        justify-self: start;
    }

    .dashboard-study-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .study-hero .welcome-actions,
    .study-hero .button,
    .integration-badge {
        width: 100%;
    }

    .integration-badge {
        justify-content: center;
    }

    .study-side-column,
    .study-analysis-strip {
        grid-template-columns: 1fr;
    }

    .daily-study-row {
        grid-template-columns: 34px minmax(0, 1fr) 1fr 1fr;
        gap: 8px;
        padding: 11px 5px;
    }

    .daily-study-row .study-duration {
        grid-column: 3;
    }

    .daily-study-row .checkout-button,
    .daily-study-row .record-status {
        grid-column: 4;
        grid-row: 2;
    }

    .study-chart-wrap {
        height: 245px;
    }

    .study-live-cards {
        grid-template-columns: 1fr;
    }
}

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

    .daily-study-row {
        grid-template-columns: 32px minmax(0, 1fr) 1fr;
    }

    .daily-study-row .study-time:first-of-type {
        grid-column: 2;
    }

    .daily-study-row .study-duration {
        grid-column: 3;
    }

    .daily-study-row .checkout-button,
    .daily-study-row .record-status {
        grid-column: 2 / -1;
        grid-row: auto;
    }
}

/* Sidebar brand sizing and dashboard-first mobile menu fallback */
.sidebar-brand {
    min-height: 102px !important;
    height: 102px !important;
    padding: 0 18px !important;
}

.nexora-sidebar-brand .nexora-wordmark {
    width: 188px !important;
    max-width: 100% !important;
    height: 36px !important;
    object-fit: contain !important;
    object-position: left center !important;
}

.sidebar-institution-name {
    max-width: 188px !important;
    color: #65758d !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
}

.sidebar-institution-logo {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    margin-left: 10px !important;
    border-radius: 12px !important;
}

.sidebar-institution-logo img {
    width: 36px !important;
    height: 36px !important;
}

@media (max-width: 920px) {
    .sidebar-brand {
        min-height: 94px !important;
        height: 94px !important;
        padding: 0 14px !important;
    }

    .nexora-sidebar-brand .nexora-wordmark {
        width: 168px !important;
        height: 32px !important;
    }

    .sidebar-institution-name {
        max-width: 168px !important;
        font-size: 10.5px !important;
    }

    .premium-dashboard {
        position: relative;
        z-index: 1;
    }

    .premium-dashboard::before,
    .premium-dashboard::after {
        pointer-events: none !important;
    }

    .topbar,
    .topbar-left,
    .menu-toggle {
        pointer-events: auto !important;
    }
}

/* Final coaching pulse override */
.dashboard-page .premium-dashboard .coaching-pulse-panel {
    overflow: hidden !important;
    padding-bottom: 0 !important;
}

.dashboard-page .premium-dashboard .coaching-pulse-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 14px !important;
    padding: 18px 22px 22px !important;
}

.dashboard-page .premium-dashboard .coaching-pulse-column {
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 15px !important;
}

.dashboard-page .premium-dashboard .coaching-pulse-column .pulse-list {
    min-height: 0 !important;
    align-content: start !important;
}

.dashboard-page .premium-dashboard .coaching-pulse-column .pulse-empty {
    display: flex !important;
    min-height: 74px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 14px !important;
    color: #65758d !important;
    border: 1px dashed rgba(69, 87, 124, 0.2) !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.72) !important;
    font-size: 12.5px !important;
    line-height: 1.5 !important;
    text-align: center !important;
}

.dashboard-page .premium-dashboard .coaching-pulse-column .pulse-empty::before,
.dashboard-page .premium-dashboard .coaching-pulse-column .pulse-empty::after {
    display: none !important;
    content: none !important;
}

@media (max-width: 1100px) {
    .dashboard-page .premium-dashboard .coaching-pulse-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Absolute final role UI overrides */
.permission-matrix-panel {
    padding: 22px !important;
    background: rgba(255, 255, 255, 0.96) !important;
}

.permission-matrix-panel .permission-matrix-scroll {
    overflow-x: auto !important;
    border: 1px solid #e2e7f0 !important;
    border-radius: 16px !important;
    background: #fff !important;
}

.permission-matrix-panel .permission-matrix-table {
    width: 100% !important;
    min-width: 820px !important;
    background: #fff !important;
}

.permission-matrix-panel .permission-matrix-table th,
.permission-matrix-panel .permission-matrix-table td {
    color: #2b3951 !important;
    font-size: 12.5px !important;
}

.parent-portal .parent-insight-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px !important;
    margin-bottom: 18px !important;
}

.parent-portal .parent-insight-grid article {
    display: flex !important;
    min-height: 128px !important;
    gap: 12px !important;
    padding: 18px !important;
    background: rgba(255, 255, 255, 0.96) !important;
}

.parent-portal .parent-insight-grid small,
.parent-portal .parent-student-grid small,
.parent-portal .parent-student-grid p,
.parent-portal .parent-notification-list p,
.parent-portal .parent-notification-list small {
    color: #687791 !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
}

.parent-portal .parent-insight-grid strong {
    color: #17223a !important;
    font-size: 19px !important;
}

.parent-portal .parent-student-grid strong,
.parent-portal .parent-notification-list strong {
    color: #263650 !important;
    font-size: 14px !important;
}

@media (max-width: 1100px) {
    .parent-portal .parent-insight-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 680px) {
    .permission-matrix-panel {
        padding: 16px !important;
    }

    .parent-portal .parent-insight-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Account and role directory controls - keep at true EOF */
.icon-password-toggle {
    display: grid !important;
    width: 40px !important;
    height: 40px !important;
    place-items: center !important;
    padding: 0 !important;
    color: #5549eb !important;
    border: 1px solid rgba(108, 99, 255, 0.2) !important;
    border-radius: 11px !important;
    background: #f2f0ff !important;
}

.icon-password-toggle:hover {
    color: #fff !important;
    border-color: #665cf2 !important;
    background: #665cf2 !important;
}

.directory-form-grid .password-wrap input,
.user-form-grid .password-wrap input {
    width: 100% !important;
    padding-right: 58px !important;
}

.parent-student-assignment {
    min-width: 0 !important;
    padding: 16px !important;
    border: 1px solid #dce3ef !important;
    border-radius: 15px !important;
    background: #f8faff !important;
}

.parent-student-options {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 9px !important;
    margin-top: 10px !important;
}

.parent-student-options label {
    display: flex !important;
    min-height: 58px !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 12px !important;
    border: 1px solid #dfe5ef !important;
    border-radius: 12px !important;
    background: #fff !important;
}

.parent-student-options strong {
    color: #25354d !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
}

.parent-student-options small {
    color: #687791 !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
}

.parent-portal .module-alert,
.parent-portal .empty-state,
.parent-portal .premium-empty {
    color: #52637d !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
}

.parent-portal .parent-hero p {
    color: #53647e !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
}

.parent-portal .parent-insight-grid small,
.parent-portal .parent-student-grid small,
.parent-portal .parent-student-grid p,
.parent-portal .parent-notification-list p,
.parent-portal .parent-notification-list small {
    color: #5e6f89 !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
}

.parent-portal .parent-student-grid strong,
.parent-portal .parent-notification-list strong {
    color: #24344d !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
}

/* Meta Ads module */
.ads-module {
    color: #263650 !important;
}

.ads-hero {
    background:
        radial-gradient(circle at 88% 20%, rgba(0, 212, 255, 0.14), transparent 28%),
        linear-gradient(120deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 255, 0.96)) !important;
}

.ads-hero .module-hero-actions form {
    margin: 0 !important;
}

.ads-status-strip {
    display: flex !important;
    min-height: 78px !important;
    align-items: center !important;
    gap: 14px !important;
    margin-bottom: 18px !important;
    padding: 14px 18px !important;
    border: 1px solid rgba(108, 99, 255, 0.16) !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, 0.94) !important;
    box-shadow: 0 16px 35px rgba(55, 74, 112, 0.08) !important;
}

.meta-brand-mark {
    display: grid !important;
    width: 46px !important;
    height: 46px !important;
    flex: 0 0 46px !important;
    place-items: center !important;
    color: #fff !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #087aea, #6c63ff) !important;
    font-size: 20px !important;
    font-weight: 700 !important;
}

.ads-status-strip div {
    min-width: 0 !important;
    flex: 1 !important;
}

.ads-status-strip strong,
.ads-status-strip small {
    display: block !important;
}

.ads-status-strip strong {
    color: #23334c !important;
    font-size: 14px !important;
}

.ads-status-strip small {
    margin-top: 4px !important;
    color: #6b7b93 !important;
    font-size: 12px !important;
}

.ads-summary-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 13px !important;
    margin-bottom: 20px !important;
}

.ads-summary-grid article {
    display: flex !important;
    min-width: 0 !important;
    min-height: 116px !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 16px !important;
    border: 1px solid rgba(69, 87, 124, 0.13) !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 15px 32px rgba(55, 74, 112, 0.07) !important;
}

.ads-summary-grid strong,
.ads-summary-grid small {
    display: block !important;
}

.ads-summary-grid strong {
    color: #1f2e47 !important;
    font-size: 18px !important;
    line-height: 1.3 !important;
}

.ads-summary-grid small {
    margin-top: 4px !important;
    color: #697a93 !important;
    font-size: 11.5px !important;
    line-height: 1.45 !important;
}

.ads-card-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
    margin-bottom: 20px !important;
}

.meta-ad-card {
    display: grid !important;
    grid-template-columns: minmax(190px, 0.72fr) minmax(0, 1.28fr) !important;
    min-height: 350px !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-color: rgba(69, 87, 124, 0.14) !important;
    background: #fff !important;
}

.meta-ad-media {
    position: relative !important;
    display: grid !important;
    min-height: 350px !important;
    place-items: center !important;
    overflow: hidden !important;
    color: #746bea !important;
    background: linear-gradient(145deg, #eef1ff, #edf9ff) !important;
}

.meta-ad-media img {
    width: 100% !important;
    height: 100% !important;
    min-height: 350px !important;
    object-fit: cover !important;
}

.meta-media-badge {
    position: absolute !important;
    top: 13px !important;
    left: 13px !important;
    padding: 7px 10px !important;
    color: #fff !important;
    border-radius: 999px !important;
    background: rgba(20, 31, 54, 0.78) !important;
    backdrop-filter: blur(10px) !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
}

.meta-ad-content {
    display: flex !important;
    min-width: 0 !important;
    flex-direction: column !important;
    padding: 20px !important;
}

.meta-ad-title {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 12px !important;
}

.meta-ad-title h3 {
    margin: 4px 0 0 !important;
    color: #1f2e47 !important;
    font-size: 17px !important;
    line-height: 1.4 !important;
}

.meta-ad-path {
    margin: 12px 0 !important;
    color: #667892 !important;
    font-size: 11.5px !important;
    line-height: 1.5 !important;
}

.meta-ad-path span {
    color: #8b82ef !important;
    padding-inline: 4px !important;
}

.meta-ad-headline {
    color: #293a54 !important;
    font-size: 13.5px !important;
    line-height: 1.5 !important;
}

.meta-ad-copy {
    display: -webkit-box !important;
    margin: 7px 0 15px !important;
    overflow: hidden !important;
    color: #64758e !important;
    font-size: 12px !important;
    line-height: 1.65 !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
}

.meta-ad-metrics {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-top: auto !important;
}

.meta-ad-metrics span {
    padding: 10px !important;
    border: 1px solid #e4e8f1 !important;
    border-radius: 11px !important;
    background: #f8faff !important;
}

.meta-ad-metrics small,
.meta-ad-metrics strong {
    display: block !important;
}

.meta-ad-metrics small {
    color: #77869c !important;
    font-size: 10px !important;
}

.meta-ad-metrics strong {
    margin-top: 3px !important;
    color: #293a54 !important;
    font-size: 13px !important;
}

.meta-ad-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    margin-top: 14px !important;
    padding-top: 13px !important;
    border-top: 1px solid #e8ebf2 !important;
}

.meta-ad-footer small {
    color: #77869c !important;
    font-size: 10.5px !important;
}

.ads-empty-state {
    display: grid !important;
    min-height: 280px !important;
    place-items: center !important;
    align-content: center !important;
    gap: 10px !important;
    margin-bottom: 20px !important;
    text-align: center !important;
}

.ads-empty-icon {
    display: grid !important;
    width: 72px !important;
    height: 72px !important;
    place-items: center !important;
    color: #675ce9 !important;
    border-radius: 22px !important;
    background: #efedff !important;
}

.ads-empty-state h3 {
    margin: 5px 0 0 !important;
    color: #24344d !important;
    font-size: 18px !important;
}

.ads-empty-state p {
    max-width: 560px !important;
    margin: 0 0 5px !important;
    color: #687991 !important;
    font-size: 13px !important;
    line-height: 1.65 !important;
}

.meta-connection-panel {
    padding: 0 !important;
    overflow: hidden !important;
}

.meta-connection-panel > summary {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) 32px !important;
    min-height: 78px !important;
    align-items: center !important;
    gap: 13px !important;
    padding: 15px 18px !important;
    cursor: pointer !important;
    list-style: none !important;
}

.meta-connection-panel > summary::-webkit-details-marker {
    display: none !important;
}

.meta-connection-panel summary strong,
.meta-connection-panel summary small {
    display: block !important;
}

.meta-connection-panel summary strong {
    color: #263650 !important;
    font-size: 14px !important;
}

.meta-connection-panel summary small {
    margin-top: 3px !important;
    color: #718099 !important;
    font-size: 12px !important;
}

.meta-connection-panel[open] .directory-import-arrow {
    transform: rotate(90deg) !important;
}

.meta-connection-body {
    display: grid !important;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr) !important;
    gap: 26px !important;
    padding: 22px !important;
    border-top: 1px solid #e5e9f1 !important;
    background: #fafbff !important;
}

.meta-connection-guide {
    padding: 20px !important;
    border: 1px solid #e0e4f0 !important;
    border-radius: 16px !important;
    background: #fff !important;
}

.meta-connection-guide h3 {
    margin: 6px 0 12px !important;
    color: #24344d !important;
    font-size: 17px !important;
}

.meta-connection-guide ol {
    margin: 0 0 14px 20px !important;
    padding: 0 !important;
    color: #53647d !important;
    font-size: 12.5px !important;
    line-height: 2 !important;
}

.meta-connection-guide p {
    margin: 0 !important;
    color: #687991 !important;
    font-size: 12px !important;
    line-height: 1.7 !important;
}

.meta-connection-guide code {
    padding: 2px 6px !important;
    color: #574de5 !important;
    border-radius: 6px !important;
    background: #efedff !important;
}

.meta-connection-form {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-content: start !important;
    gap: 15px !important;
}

.meta-connection-form .field-wide,
.meta-connection-form .button-wide {
    grid-column: 1 / -1 !important;
}

.meta-connection-form .field small {
    display: block !important;
    margin-top: 6px !important;
    color: #74839a !important;
    font-size: 10.5px !important;
    line-height: 1.5 !important;
}

@media (max-width: 1250px) {
    .ads-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .ads-card-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 900px) {
    .ads-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .meta-connection-body {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 680px) {
    .ads-summary-grid {
        grid-template-columns: 1fr !important;
    }

    .meta-ad-card {
        grid-template-columns: 1fr !important;
    }

    .meta-ad-media,
    .meta-ad-media img {
        min-height: 260px !important;
        max-height: 360px !important;
    }

    .meta-connection-form {
        grid-template-columns: 1fr !important;
    }

    .meta-connection-form .field-wide,
    .meta-connection-form .button-wide {
        grid-column: 1 !important;
    }

    .ads-status-strip {
        align-items: flex-start !important;
        flex-wrap: wrap !important;
    }
}

@media (max-width: 900px) {
    .parent-student-options {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 560px) {
    .parent-student-options {
        grid-template-columns: 1fr !important;
    }
}

/* Final compact parent selector - keep at EOF */
.parent-account-form .parent-student-assignment {
    display: block !important;
    min-width: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid #dce3ef !important;
    border-radius: 15px !important;
    background: #f8faff !important;
}

.parent-account-form .parent-student-heading {
    display: flex !important;
    min-height: 74px !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    margin: 0 !important;
    padding: 14px 16px !important;
    cursor: pointer !important;
    list-style: none !important;
}

.parent-account-form .parent-student-heading strong {
    display: block !important;
    color: #25354d !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
}

.parent-account-form .parent-student-heading p {
    margin: 3px 0 0 !important;
    color: #687991 !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
}

.parent-student-summary-end {
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    gap: 7px !important;
}

.parent-student-chevron {
    display: grid !important;
    width: 28px !important;
    height: 28px !important;
    place-items: center !important;
    color: #685fe9 !important;
    transition: transform 180ms ease !important;
}

.parent-student-assignment[open] .parent-student-chevron {
    transform: rotate(90deg) !important;
}

.parent-student-dropdown {
    padding: 0 14px 14px !important;
    border-top: 1px solid #e4e8f1 !important;
    background: #f9faff !important;
}

.parent-account-form .parent-student-options {
    display: flex !important;
    max-height: 260px !important;
    flex-direction: column !important;
    gap: 7px !important;
    margin: 0 !important;
    padding: 2px 5px 2px 0 !important;
    overflow-y: auto !important;
}

.parent-account-form .parent-student-options label {
    display: grid !important;
    grid-template-columns: auto 38px minmax(0, 1fr) 28px !important;
    min-height: 62px !important;
    align-items: center !important;
    gap: 11px !important;
    padding: 9px 12px !important;
}

@media (max-width: 680px) {
    .parent-account-form .parent-student-heading {
        align-items: flex-start !important;
    }

    .parent-student-summary-end {
        align-self: center !important;
    }
}

/* Compact relation selector and directory import */
.module-hero-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
}

.directory-import-panel {
    margin-bottom: 18px !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-color: rgba(108, 99, 255, 0.16) !important;
    background: rgba(255, 255, 255, 0.94) !important;
}

.directory-import-panel > summary {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) 32px !important;
    min-height: 74px !important;
    align-items: center !important;
    gap: 13px !important;
    padding: 14px 18px !important;
    cursor: pointer !important;
    list-style: none !important;
}

.directory-import-panel > summary::-webkit-details-marker,
.parent-student-assignment > summary::-webkit-details-marker {
    display: none !important;
}

.directory-import-panel > summary:hover {
    background: #faf9ff !important;
}

.directory-import-icon {
    display: grid !important;
    width: 44px !important;
    height: 44px !important;
    place-items: center !important;
    color: #5e54e9 !important;
    border: 1px solid #d9d4ff !important;
    border-radius: 13px !important;
    background: #efedff !important;
}

.directory-import-panel summary strong,
.directory-import-panel summary small {
    display: block !important;
}

.directory-import-panel summary strong {
    color: #263650 !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
}

.directory-import-panel summary small {
    margin-top: 3px !important;
    color: #718099 !important;
    font-size: 12px !important;
}

.directory-import-arrow {
    display: grid !important;
    width: 30px !important;
    height: 30px !important;
    place-items: center !important;
    color: #7168e9 !important;
    transition: transform 180ms ease !important;
}

.directory-import-panel[open] .directory-import-arrow {
    transform: rotate(90deg) !important;
}

.directory-import-body {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr) !important;
    gap: 24px !important;
    padding: 20px !important;
    border-top: 1px solid #e6e9f1 !important;
    background: #fafbff !important;
}

.directory-import-body h3 {
    margin: 0 0 6px !important;
    color: #24344d !important;
    font-size: 16px !important;
}

.directory-import-body p {
    max-width: 720px !important;
    margin: 0 0 12px !important;
    color: #64758e !important;
    font-size: 12.5px !important;
    line-height: 1.65 !important;
}

.directory-import-form {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: end !important;
    gap: 10px !important;
}

.directory-import-form label,
.directory-import-form label span {
    display: block !important;
}

.directory-import-form label span {
    margin-bottom: 7px !important;
    color: #53647e !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

.directory-import-form input[type="file"] {
    width: 100% !important;
    min-height: 46px !important;
    padding: 7px !important;
    color: #52637d !important;
    border: 1px solid #d8dfeb !important;
    border-radius: 12px !important;
    background: #fff !important;
    font: 12px "Poppins", sans-serif !important;
}

.directory-import-form input[type="file"]::file-selector-button {
    height: 30px !important;
    margin-right: 9px !important;
    padding: 0 11px !important;
    color: #544ae3 !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: #efedff !important;
    font: 600 11px "Poppins", sans-serif !important;
    cursor: pointer !important;
}

.parent-account-form .parent-student-assignment {
    padding: 0 !important;
    overflow: hidden !important;
}

.parent-account-form .parent-student-heading {
    display: flex !important;
    min-height: 74px !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    margin: 0 !important;
    padding: 14px 16px !important;
    cursor: pointer !important;
    list-style: none !important;
}

.parent-account-form .parent-student-heading:hover {
    background: #f6f5ff !important;
}

.parent-account-form .parent-student-heading strong {
    display: block !important;
    color: #25354d !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
}

.parent-student-summary-end {
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    gap: 7px !important;
}

.parent-student-chevron {
    display: grid !important;
    width: 28px !important;
    height: 28px !important;
    place-items: center !important;
    color: #685fe9 !important;
    transition: transform 180ms ease !important;
}

.parent-student-assignment[open] .parent-student-chevron {
    transform: rotate(90deg) !important;
}

.parent-student-dropdown {
    padding: 0 14px 14px !important;
    border-top: 1px solid #e4e8f1 !important;
    background: #f9faff !important;
}

.parent-student-dropdown .parent-student-search {
    margin-top: 12px !important;
}

@media (max-width: 920px) {
    .directory-import-body {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 680px) {
    .module-hero-actions,
    .directory-import-form {
        display: grid !important;
        grid-template-columns: 1fr !important;
        width: 100% !important;
    }

    .module-hero-actions .button,
    .directory-import-form .button {
        width: 100% !important;
    }

    .directory-import-body {
        padding: 16px !important;
    }

    .parent-account-form .parent-student-heading {
        align-items: flex-start !important;
    }

    .parent-student-summary-end {
        align-self: center !important;
    }

    .parent-student-count {
        white-space: nowrap !important;
    }
}

/* Parent account form and consistent user selectors */
.parent-account-form {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px 16px !important;
    align-items: start !important;
}

.parent-account-form > .field {
    min-width: 0 !important;
}

.parent-account-form .parent-password-field {
    grid-column: span 2 !important;
}

.parent-account-form .parent-student-assignment {
    grid-column: span 2 !important;
}

.parent-student-heading {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 16px !important;
    margin-bottom: 14px !important;
}

.parent-student-heading legend {
    float: none !important;
    width: auto !important;
    margin: 0 0 4px !important;
    padding: 0 !important;
    color: #24344d !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

.parent-student-heading p {
    margin: 0 !important;
    color: #6b7b93 !important;
    font-size: 12.5px !important;
    line-height: 1.5 !important;
}

.parent-student-count {
    flex: 0 0 auto !important;
    padding: 7px 10px !important;
    color: #6c7690 !important;
    border: 1px solid #dfe4ee !important;
    border-radius: 999px !important;
    background: #fff !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
}

.parent-student-count.has-selection {
    color: #5147df !important;
    border-color: #d5d0ff !important;
    background: #f1efff !important;
}

.parent-student-search {
    display: flex !important;
    height: 46px !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 10px !important;
    padding: 0 13px !important;
    color: #718099 !important;
    border: 1px solid #dbe2ed !important;
    border-radius: 12px !important;
    background: #fff !important;
}

.parent-student-search:focus-within {
    color: #6056ea !important;
    border-color: #8c84f5 !important;
    box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.1) !important;
}

.parent-student-search input {
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    color: #263650 !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    font-size: 13px !important;
}

.parent-account-form .parent-student-options {
    display: flex !important;
    max-height: 260px !important;
    flex-direction: column !important;
    gap: 7px !important;
    margin: 0 !important;
    padding: 2px 5px 2px 0 !important;
    overflow-y: auto !important;
    scrollbar-color: #c9c5fa transparent !important;
    scrollbar-width: thin !important;
}

.parent-account-form .parent-student-options label {
    display: grid !important;
    grid-template-columns: auto 38px minmax(0, 1fr) 28px !important;
    min-height: 62px !important;
    align-items: center !important;
    gap: 11px !important;
    padding: 9px 12px !important;
    cursor: pointer !important;
}

.parent-account-form .parent-student-options label:hover {
    border-color: #c9c4ff !important;
    background: #f8f7ff !important;
}

.parent-account-form .parent-student-options label:has(input:checked) {
    border-color: #a69eff !important;
    background: #f3f1ff !important;
}

.parent-account-form .parent-student-options input {
    width: 18px !important;
    height: 18px !important;
    accent-color: #655af0 !important;
}

.student-option-avatar {
    display: grid !important;
    width: 38px !important;
    height: 38px !important;
    place-items: center !important;
    color: #5a50e7 !important;
    border: 1px solid #d8d3ff !important;
    border-radius: 11px !important;
    background: #eeecff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
}

.student-option-copy {
    min-width: 0 !important;
}

.student-option-check {
    display: grid !important;
    width: 27px !important;
    height: 27px !important;
    place-items: center !important;
    color: transparent !important;
    border-radius: 8px !important;
}

.parent-student-options label:has(input:checked) .student-option-check {
    color: #fff !important;
    background: #655af0 !important;
}

.parent-form-actions {
    display: flex !important;
    grid-column: 3 / -1 !important;
    justify-content: flex-end !important;
    gap: 10px !important;
}

.parent-form-actions .button-primary {
    min-width: 220px !important;
}

.user-form-grid .field select,
.parent-account-form .field select {
    width: 100% !important;
    height: 48px !important;
    padding: 0 42px 0 14px !important;
    color: #34445e !important;
    border: 1px solid #d7deea !important;
    border-radius: 13px !important;
    background-color: #fff !important;
    font-family: "Poppins", "Segoe UI", Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 48px !important;
    box-shadow: none !important;
}

.user-form-grid .field select:hover,
.parent-account-form .field select:hover {
    border-color: #b9b3f7 !important;
}

.user-form-grid .field select:focus,
.parent-account-form .field select:focus {
    border-color: #8077ef !important;
    outline: 0 !important;
    box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.1) !important;
}

@media (max-width: 1100px) {
    .parent-account-form {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .parent-account-form .parent-password-field,
    .parent-account-form .parent-student-assignment {
        grid-column: span 1 !important;
    }

    .parent-form-actions {
        grid-column: 1 / -1 !important;
    }
}

@media (max-width: 680px) {
    .parent-account-form {
        grid-template-columns: 1fr !important;
    }

    .parent-account-form .parent-password-field,
    .parent-account-form .parent-student-assignment,
    .parent-form-actions {
        grid-column: 1 !important;
    }

    .parent-form-actions {
        display: grid !important;
    }

    .parent-form-actions .button {
        width: 100% !important;
        min-width: 0 !important;
    }

    .parent-student-heading {
        display: grid !important;
    }

    .parent-student-count {
        justify-self: start !important;
    }
}

/* Absolute final account controls */
.icon-password-toggle {
    display: grid !important;
    width: 36px !important;
    height: 36px !important;
    place-items: center !important;
    padding: 0 !important;
    color: #5f55ee !important;
    border: 1px solid rgba(108, 99, 255, 0.16) !important;
    border-radius: 10px !important;
    background: #f3f1ff !important;
}

.directory-form-grid .password-wrap input,
.user-form-grid .password-wrap input {
    width: 100% !important;
    padding-right: 54px !important;
}

.parent-student-assignment {
    min-width: 0 !important;
    padding: 14px !important;
    border: 1px solid #dde3ee !important;
    border-radius: 14px !important;
    background: #f9fbff !important;
}

.parent-student-options {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

.parent-student-options label {
    display: flex !important;
    min-height: 54px !important;
    align-items: center !important;
    gap: 9px !important;
    padding: 9px 11px !important;
    border: 1px solid #e0e5ef !important;
    border-radius: 11px !important;
    background: #fff !important;
}

.parent-student-options strong {
    color: #283850 !important;
    font-size: 12.5px !important;
}

.parent-student-options small {
    color: #75839a !important;
    font-size: 11px !important;
}

.parent-portal .module-alert,
.parent-portal .empty-state,
.parent-portal .premium-empty {
    font-size: 13px !important;
    line-height: 1.6 !important;
}

.parent-portal .parent-hero p {
    color: #62718a !important;
    font-size: 14px !important;
}

.parent-portal .parent-notification-list p,
.parent-portal .parent-notification-list small {
    font-size: 12.5px !important;
}

@media (max-width: 900px) {
    .parent-student-options {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 560px) {
    .parent-student-options {
        grid-template-columns: 1fr !important;
    }
}

/* Final role matrix and parent portal overrides - keep at EOF */
.permission-matrix-panel {
    padding: 22px !important;
    background: rgba(255, 255, 255, 0.96) !important;
}

.permission-matrix-scroll {
    overflow-x: auto !important;
    border: 1px solid #e2e7f0 !important;
    border-radius: 16px !important;
    background: #fff !important;
}

.permission-matrix-table {
    width: 100% !important;
    min-width: 820px !important;
    background: #fff !important;
}

.permission-matrix-table th,
.permission-matrix-table td {
    color: #2b3951 !important;
    font-size: 12.5px !important;
}

.permission-matrix-table tbody th strong {
    color: #253550 !important;
    font-size: 13px !important;
}

.permission-matrix-table tbody th small {
    color: #8792a7 !important;
    font-size: 10.5px !important;
}

.permission-group-row th {
    color: #5b51df !important;
    background: #f0efff !important;
}

.parent-portal .parent-insight-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px !important;
    margin-bottom: 18px !important;
}

.parent-portal .parent-insight-grid article {
    display: flex !important;
    min-height: 128px !important;
    gap: 12px !important;
    padding: 18px !important;
    background: rgba(255, 255, 255, 0.96) !important;
}

.parent-portal .parent-insight-grid small,
.parent-portal .parent-student-grid small,
.parent-portal .parent-student-grid p,
.parent-portal .parent-notification-list p,
.parent-portal .parent-notification-list small {
    color: #687791 !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
}

.parent-portal .parent-insight-grid strong {
    color: #17223a !important;
    font-size: 19px !important;
}

.parent-portal .parent-student-grid strong,
.parent-portal .parent-notification-list strong {
    color: #263650 !important;
    font-size: 14px !important;
}

@media (max-width: 1100px) {
    .parent-portal .parent-insight-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 680px) {
    .permission-matrix-panel {
        padding: 16px !important;
    }

    .parent-portal .parent-insight-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Birthday reminder, optical import and role entry */
.birthday-reminder {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    padding: 14px 18px;
    border: 1px solid rgba(108, 99, 255, 0.18);
    border-radius: 18px;
    background: linear-gradient(105deg, rgba(255, 255, 255, 0.96), rgba(244, 241, 255, 0.94));
    box-shadow: 0 12px 28px rgba(48, 59, 105, 0.08);
}

.birthday-reminder-icon {
    display: grid;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    place-items: center;
    color: #6c63ff;
    border-radius: 14px;
    background: linear-gradient(135deg, #eeeaff, #e1f7ff);
}

.birthday-reminder-copy {
    display: grid;
    flex: 0 0 auto;
    gap: 2px;
}

.birthday-reminder-copy strong {
    color: #14213a;
    font-size: 15px;
}

.birthday-student-list {
    display: flex;
    min-width: 0;
    gap: 9px;
    overflow-x: auto;
}

.birthday-student-list a {
    display: grid;
    grid-template-columns: 32px auto;
    grid-template-rows: auto auto;
    min-width: 190px;
    padding: 8px 12px;
    color: #18243a;
    border: 1px solid rgba(108, 99, 255, 0.14);
    border-radius: 13px;
    background: #fff;
    text-decoration: none;
}

.birthday-student-list a > span {
    display: grid;
    grid-row: 1 / 3;
    width: 28px;
    height: 28px;
    align-self: center;
    place-items: center;
    color: #6c63ff;
    border-radius: 9px;
    background: #f0edff;
    font-size: 10px;
    font-weight: 700;
}

.birthday-student-list b {
    font-size: 13px;
    line-height: 1.35;
}

.birthday-student-list small {
    color: #6c7890;
    font-size: 11px;
}

.birthday-empty {
    display: flex;
    min-height: 46px;
    align-items: center;
    padding: 0 14px;
    color: #65748c;
    border: 1px dashed #d9dfeb;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.7);
    font-size: 12.5px;
}

.optical-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 18px;
    margin-bottom: 18px;
}

.optical-upload-panel,
.optical-guide-panel,
.optical-history-panel {
    padding: 22px;
}

.optical-upload-form {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.optical-dropzone {
    display: grid;
    min-height: 190px;
    place-items: center;
    align-content: center;
    gap: 8px;
    padding: 24px;
    color: #54637d;
    border: 1.5px dashed rgba(108, 99, 255, 0.34);
    border-radius: 18px;
    background: linear-gradient(145deg, #f8f7ff, #f2fbff);
    cursor: pointer;
    text-align: center;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.optical-dropzone:hover {
    border-color: #6c63ff;
    box-shadow: 0 14px 30px rgba(108, 99, 255, 0.12);
    transform: translateY(-2px);
}

.optical-dropzone svg {
    color: #6c63ff;
}

.optical-dropzone strong {
    color: #17223a;
    font-size: 16px;
}

.optical-dropzone span {
    font-size: 13px;
}

.optical-dropzone input {
    max-width: 100%;
    margin-top: 8px;
    font-size: 13px;
}

.optical-steps {
    display: grid;
    gap: 12px;
    margin: 18px 0;
    padding: 0;
    list-style: none;
}

.optical-steps li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px;
    border: 1px solid #e6eaf2;
    border-radius: 14px;
    background: #fbfcff;
}

.optical-steps li > b {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #fff;
    border-radius: 11px;
    background: linear-gradient(135deg, #6c63ff, #00bde7);
}

.optical-steps span {
    display: grid;
    gap: 2px;
}

.optical-steps strong {
    color: #17223a;
    font-size: 14px;
}

.optical-steps small,
.optical-note span {
    color: #687791;
    font-size: 12px;
    line-height: 1.5;
}

.optical-note {
    display: grid;
    gap: 4px;
    padding: 13px 14px;
    border-radius: 13px;
    background: #fff8e9;
}

.optical-note strong {
    color: #9a6500;
    font-size: 13px;
}

.optical-history-panel .responsive-table {
    margin-top: 14px;
}

.module-alert small {
    display: block;
    margin-top: 4px;
}

.login-role-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
}

.login-role-selector legend {
    margin-bottom: 8px;
    color: #5f6f88;
    font-size: 12px;
    font-weight: 600;
}

.login-role-selector input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.login-role-selector label > span {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #5c6980;
    border: 1px solid #dce2ed;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    font-size: 12px;
    transition: .2s ease;
}

.login-role-selector input:checked + span {
    color: #5148dd;
    border-color: rgba(108, 99, 255, 0.42);
    background: #f2f0ff;
    box-shadow: 0 7px 18px rgba(108, 99, 255, 0.12);
}

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

    .birthday-reminder {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .birthday-student-list {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .login-role-selector {
        grid-template-columns: 1fr;
    }

    .login-role-selector label > span {
        justify-content: flex-start;
        padding-inline: 14px;
    }
}

/* Attendance and parent notifications */
.attendance-hero,
.notifications-hero,
.parent-hero {
    background:
        radial-gradient(circle at 85% 15%, rgba(143, 124, 255, 0.14), transparent 28%),
        linear-gradient(135deg, rgba(16, 33, 57, 0.94), rgba(9, 21, 38, 0.82));
}

.attendance-picker,
.notification-toolbar {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(150px, 0.7fr) auto auto;
    align-items: end;
    gap: 12px;
    margin-bottom: 14px;
    padding: 16px;
}

.attendance-summary-grid,
.notification-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.notification-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.attendance-summary-grid article,
.notification-summary-grid article {
    display: flex;
    min-height: 78px;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(17, 34, 58, 0.84), rgba(10, 22, 39, 0.7));
}

.attendance-summary-grid strong,
.attendance-summary-grid small,
.notification-summary-grid strong,
.notification-summary-grid small {
    display: block;
}

.attendance-summary-grid strong,
.notification-summary-grid strong {
    color: #dce6f6;
    font-size: 19px;
}

.attendance-summary-grid small,
.notification-summary-grid small {
    color: #66748a;
    font-size: 7px;
}

.attendance-sheet,
.notification-queue-panel {
    margin-bottom: 14px;
    padding: 18px;
}

.attendance-bulk-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.attendance-bulk-actions > button:first-child {
    border: 0;
    color: #65ddba;
    background: transparent;
    font: inherit;
    font-size: 7px;
    cursor: pointer;
}

.attendance-student-list,
.notification-queue-list {
    margin-top: 12px;
}

.attendance-student-row {
    display: grid;
    min-height: 66px;
    grid-template-columns: 34px minmax(130px, 1fr) minmax(260px, 1.2fr) minmax(120px, 0.7fr);
    align-items: center;
    gap: 12px;
    padding: 8px 5px;
    border-bottom: 1px solid rgba(148, 168, 208, 0.065);
}

.attendance-student strong,
.attendance-student small {
    display: block;
}

.attendance-student strong {
    color: #b5c1d3;
    font-size: 8px;
}

.attendance-student small {
    color: #56647a;
    font-size: 6px;
}

.attendance-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.attendance-options input {
    position: absolute;
    opacity: 0;
}

.attendance-options span {
    display: grid;
    min-height: 29px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #68768c;
    background: rgba(255, 255, 255, 0.018);
    font-size: 6px;
    cursor: pointer;
}

.attendance-options .geldi input:checked + span {
    border-color: rgba(62, 215, 164, 0.3);
    color: #68dfb8;
    background: rgba(62, 215, 164, 0.09);
}

.attendance-options .gec_geldi input:checked + span {
    border-color: rgba(246, 190, 75, 0.3);
    color: #f2c568;
    background: rgba(246, 190, 75, 0.09);
}

.attendance-options .gelmedi input:checked + span {
    border-color: rgba(255, 107, 130, 0.3);
    color: #ff8499;
    background: rgba(255, 107, 130, 0.09);
}

.attendance-note {
    width: 100%;
    min-height: 31px;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: none;
    color: #9aa7ba;
    background: rgba(5, 15, 28, 0.55);
    padding: 0 9px;
    font: inherit;
    font-size: 6px;
}

.attendance-report-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 14px;
}

.attendance-report-grid > article {
    padding: 18px;
}

.attendance-history-list > div,
.absence-report-list > a {
    display: grid;
    min-height: 47px;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(148, 168, 208, 0.06);
}

.attendance-history-list > div {
    grid-template-columns: minmax(0, 1fr) repeat(3, 26px);
}

.absence-report-list > a {
    grid-template-columns: minmax(0, 1fr) 45px 38px;
}

.attendance-history-list strong,
.attendance-history-list small,
.absence-report-list strong,
.absence-report-list small {
    display: block;
}

.attendance-history-list strong,
.absence-report-list strong {
    color: #aab6c8;
    font-size: 7px;
}

.attendance-history-list small,
.absence-report-list small {
    color: #4f5d72;
    font-size: 5.5px;
}

.history-count {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 7px;
    font-size: 6px;
    font-weight: 800;
}

.history-count.good { color: #65ddba; background: rgba(62, 215, 164, 0.08); }
.history-count.warning { color: #f2c568; background: rgba(246, 190, 75, 0.08); }
.history-count.critical { color: #ff8499; background: rgba(255, 107, 130, 0.08); }

.absence-report-list b {
    color: #ff8499;
    font-size: 9px;
    text-align: center;
}

.absence-report-list b.warning {
    color: #f2c568;
}

.notification-queue-row {
    display: grid;
    min-height: 88px;
    grid-template-columns: 34px minmax(0, 1fr) 70px 58px;
    align-items: center;
    gap: 12px;
    padding: 10px 5px;
    border-bottom: 1px solid rgba(148, 168, 208, 0.065);
}

.channel-mark {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 10px;
    color: #d9e5f5;
    font-size: 8px;
    font-weight: 800;
}

.channel-mark.whatsapp { background: rgba(62, 215, 164, 0.13); color: #6de3bd; }
.channel-mark.sms { background: rgba(66, 201, 245, 0.12); color: #6bd8f9; }
.channel-mark.email { background: rgba(143, 124, 255, 0.13); color: #a395ff; }
.channel-mark.panel { background: rgba(246, 190, 75, 0.12); color: #efc66d; }

.notification-copy strong,
.notification-copy p,
.notification-copy small {
    display: block;
    margin: 0;
}

.notification-copy strong {
    margin: 4px 0;
    color: #b9c5d7;
    font-size: 8px;
}

.notification-copy p {
    color: #718096;
    font-size: 6.5px;
    line-height: 1.55;
}

.notification-copy small {
    margin-top: 5px;
    color: #4f5d72;
    font-size: 5.5px;
}

.notification-meta {
    display: flex;
    gap: 6px;
}

.notification-meta b,
.notification-meta i,
.queue-status {
    padding: 3px 6px;
    border-radius: 6px;
    font-size: 5px;
    font-style: normal;
}

.notification-meta b { color: #9d90ff; background: rgba(143, 124, 255, 0.08); }
.notification-meta i { color: #637188; background: rgba(255, 255, 255, 0.025); }
.queue-status { justify-self: end; color: #f2c568; background: rgba(246, 190, 75, 0.08); }
.queue-status.sent { color: #65ddba; background: rgba(62, 215, 164, 0.08); }

.queue-actions {
    display: flex;
    justify-content: flex-end;
    gap: 5px;
}

.queue-actions button {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: #718097;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
}

.provider-readiness {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px;
}

.provider-readiness strong {
    color: #aebacc;
    font-size: 8px;
}

.provider-readiness p {
    margin: 3px 0 0;
    color: #5d6b80;
    font-size: 6px;
}

.parent-portal {
    min-height: 100vh;
}

.parent-topbar {
    display: flex;
    height: 74px;
    align-items: center;
    justify-content: space-between;
    padding: 0 max(24px, calc((100vw - 1180px) / 2));
    border-bottom: 1px solid var(--line);
    background: rgba(7, 17, 31, 0.84);
    backdrop-filter: blur(18px);
}

.parent-topbar > div {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #8592a7;
    font-size: 7px;
}

.parent-content {
    width: min(1180px, calc(100% - 32px));
    margin: 22px auto 50px;
}

.parent-student-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.parent-student-grid article {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 18px;
}

.parent-student-grid strong,
.parent-student-grid small {
    display: block;
}

.parent-student-grid strong { color: #c3cede; font-size: 10px; }
.parent-student-grid small { color: #67758a; font-size: 6px; }
.parent-student-grid p { color: #78869a; font-size: 7px; }
.parent-notification-panel { padding: 18px; }

.parent-notification-list article {
    display: flex;
    min-height: 76px;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 4px;
    border-bottom: 1px solid rgba(148, 168, 208, 0.06);
}

.parent-notification-list strong { color: #b5c1d3; font-size: 8px; }
.parent-notification-list p { margin: 4px 0; color: #718096; font-size: 6.5px; }
.parent-notification-list small { color: #4f5d72; font-size: 5.5px; }

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

    .attendance-student-row {
        grid-template-columns: 34px minmax(100px, 1fr) minmax(240px, 1.2fr);
    }

    .attendance-note {
        grid-column: 2 / -1;
    }
}

@media (max-width: 680px) {
    .attendance-picker,
    .notification-toolbar,
    .attendance-summary-grid,
    .notification-summary-grid,
    .parent-student-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .attendance-student-row {
        grid-template-columns: 34px minmax(0, 1fr);
        padding: 12px 4px;
    }

    .attendance-options,
    .attendance-note {
        grid-column: 1 / -1;
    }

    .notification-queue-row {
        grid-template-columns: 32px minmax(0, 1fr) auto;
    }

    .queue-status {
        grid-column: 2;
        justify-self: start;
    }

    .queue-actions {
        grid-column: 3;
        grid-row: 1 / 3;
    }
}

@media (max-width: 460px) {
    .attendance-picker,
    .notification-toolbar,
    .attendance-summary-grid,
    .notification-summary-grid,
    .parent-student-grid {
        grid-template-columns: 1fr;
    }

    .attendance-bulk-actions {
        width: 100%;
        justify-content: space-between;
    }

    .parent-topbar {
        padding: 0 16px;
    }

    .parent-topbar > div > span {
        display: none;
    }
}

/* Private lessons and etudes */
.lesson-hero,
.etude-hero {
    background:
        radial-gradient(circle at 84% 18%, rgba(246, 190, 75, 0.12), transparent 28%),
        radial-gradient(circle at 10% 100%, rgba(143, 124, 255, 0.11), transparent 30%),
        linear-gradient(135deg, rgba(16, 33, 57, 0.94), rgba(9, 21, 38, 0.82));
}

.lesson-summary-grid,
.etude-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

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

.lesson-summary-grid article,
.etude-summary-grid article {
    display: flex;
    min-height: 78px;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(17, 34, 58, 0.84), rgba(10, 22, 39, 0.7));
}

.lesson-summary-grid strong,
.lesson-summary-grid small,
.etude-summary-grid strong,
.etude-summary-grid small {
    display: block;
}

.lesson-summary-grid strong,
.etude-summary-grid strong {
    color: #dce6f6;
    font-size: 19px;
}

.lesson-summary-grid small,
.etude-summary-grid small {
    color: #66748a;
    font-size: 7px;
}

.lesson-workspace,
.etude-workspace {
    display: grid;
    grid-template-columns: minmax(310px, 0.8fr) minmax(0, 1.2fr);
    gap: 14px;
    margin-bottom: 14px;
}

.lesson-create-panel,
.teacher-calendar-panel,
.etude-create-panel,
.etude-list-panel,
.etude-participant-panel {
    padding: 18px;
}

.lesson-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    margin: 14px 0;
}

.lesson-calendar-filter {
    display: grid;
    grid-template-columns: minmax(130px, 1fr) minmax(120px, 0.7fr) auto;
    align-items: end;
    gap: 9px;
    margin: 13px 0;
    padding: 11px;
    border: 1px solid rgba(148, 168, 208, 0.08);
    border-radius: 11px;
    background: rgba(5, 15, 28, 0.28);
}

.teacher-schedule-list article {
    display: grid;
    min-height: 54px;
    grid-template-columns: 54px 3px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(148, 168, 208, 0.06);
}

.teacher-schedule-list time strong,
.teacher-schedule-list time span,
.teacher-schedule-list article > span:last-child strong,
.teacher-schedule-list article > span:last-child small {
    display: block;
}

.teacher-schedule-list time strong {
    color: #b5c1d3;
    font-size: 8px;
}

.teacher-schedule-list time span,
.teacher-schedule-list article > span:last-child small {
    color: #536176;
    font-size: 5.5px;
}

.teacher-schedule-list article > span:last-child strong {
    color: #9eabbe;
    font-size: 7px;
}

.lesson-history-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.lesson-history-grid > article {
    padding: 18px;
}

.lesson-history-grid .detail-panel-header select,
.lesson-record-list select,
.etude-participant-list select {
    min-height: 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: none;
    color: #8d9aaf;
    background: #0b192c;
    padding: 0 8px;
    font: inherit;
    font-size: 6px;
}

.lesson-record-list {
    margin-top: 10px;
}

.lesson-record-list > article {
    display: grid;
    min-height: 55px;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(148, 168, 208, 0.06);
}

.lesson-record-list strong,
.lesson-record-list small {
    display: block;
}

.lesson-record-list strong {
    color: #adb9cb;
    font-size: 7px;
}

.lesson-record-list small {
    margin-top: 2px;
    color: #526075;
    font-size: 5.5px;
}

.lesson-status {
    padding: 5px 8px;
    border-radius: 7px;
    color: #70d9f8;
    background: rgba(66, 201, 245, 0.08);
    font-size: 5px;
}

.lesson-status.completed {
    color: #67dfba;
    background: rgba(62, 215, 164, 0.08);
}

.lesson-status.cancelled,
.lesson-status.student_absent {
    color: #ff8499;
    background: rgba(255, 107, 130, 0.08);
}

.etude-card-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
    max-height: 445px;
    overflow: auto;
    padding-right: 3px;
}

.etude-card {
    display: grid;
    min-height: 71px;
    grid-template-columns: 43px minmax(0, 1fr) 56px;
    align-items: center;
    gap: 11px;
    padding: 10px;
    border: 1px solid rgba(148, 168, 208, 0.08);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.014);
}

.etude-card:hover,
.etude-card.active {
    border-color: rgba(143, 124, 255, 0.25);
    background: rgba(143, 124, 255, 0.055);
}

.etude-card.full {
    border-color: rgba(255, 107, 130, 0.14);
}

.etude-date {
    display: grid;
    width: 40px;
    height: 43px;
    place-items: center;
    align-content: center;
    border-radius: 10px;
    color: #9d90ff;
    background: rgba(143, 124, 255, 0.09);
}

.etude-date strong,
.etude-date small,
.etude-card > span:nth-child(2) strong,
.etude-card > span:nth-child(2) small,
.etude-capacity strong,
.etude-capacity small {
    display: block;
}

.etude-date strong {
    font-size: 13px;
}

.etude-date small,
.etude-card > span:nth-child(2) small,
.etude-capacity small {
    color: #536176;
    font-size: 5px;
}

.etude-card > span:nth-child(2) strong {
    overflow: hidden;
    color: #aebacc;
    font-size: 7.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.etude-card > span:nth-child(2) i {
    display: block;
    height: 3px;
    margin-top: 8px;
    overflow: hidden;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.045);
}

.etude-card > span:nth-child(2) i b {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #42c9f5, #8f7cff);
}

.etude-capacity {
    text-align: right;
}

.etude-capacity strong {
    color: #70d9f8;
    font-size: 8px;
}

.etude-capacity.full strong,
.capacity-badge.full {
    color: #ff8499;
}

.etude-participant-panel {
    margin-bottom: 14px;
}

.capacity-badge {
    padding: 7px 10px;
    border: 1px solid rgba(66, 201, 245, 0.15);
    border-radius: 8px;
    color: #70d9f8;
    background: rgba(66, 201, 245, 0.06);
    font-size: 6px;
    font-weight: 700;
}

.capacity-badge.full {
    border-color: rgba(255, 107, 130, 0.18);
    background: rgba(255, 107, 130, 0.06);
}

.capacity-warning {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 13px 0;
    padding: 11px 13px;
    border: 1px solid rgba(255, 107, 130, 0.16);
    border-radius: 10px;
    color: #ff8499;
    background: rgba(255, 107, 130, 0.055);
    font-size: 6.5px;
}

.etude-add-student {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) auto;
    align-items: end;
    gap: 10px;
    margin: 13px 0;
    padding: 12px;
    border: 1px solid rgba(148, 168, 208, 0.08);
    border-radius: 11px;
    background: rgba(5, 15, 28, 0.28);
}

.etude-participant-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
}

.etude-participant-list article {
    display: grid;
    min-height: 54px;
    grid-template-columns: 31px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    border-bottom: 1px solid rgba(148, 168, 208, 0.06);
}

.etude-participant-list strong,
.etude-participant-list small {
    display: block;
}

.etude-participant-list strong {
    color: #adb9cb;
    font-size: 7px;
}

.etude-participant-list small {
    color: #526075;
    font-size: 5.5px;
}

@media (max-width: 1120px) {
    .lesson-workspace,
    .etude-workspace {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 780px) {
    .lesson-summary-grid,
    .etude-summary-grid,
    .lesson-history-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lesson-history-grid {
        grid-template-columns: 1fr;
    }

    .etude-participant-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .lesson-summary-grid,
    .etude-summary-grid,
    .lesson-form-grid,
    .lesson-calendar-filter,
    .etude-add-student {
        grid-template-columns: 1fr;
    }

    .etude-card {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .etude-capacity {
        grid-column: 2;
        text-align: left;
    }

    .lesson-record-list > article {
        grid-template-columns: 31px minmax(0, 1fr);
        padding: 9px 0;
    }

    .lesson-record-list > article > :last-child {
        grid-column: 2;
        justify-self: start;
    }
}

/* NEXORA final premium polish */
.panel,
.stat-card,
.module-hero,
.auth-card,
.student-modal,
.confirm-modal,
.report-type-card,
.summary-icon,
.finance-summary-grid article,
.lesson-summary-grid article,
.etude-summary-grid article,
.study-summary-grid article,
.attendance-summary-grid article,
.notification-summary-grid article,
.exam-summary-grid article,
.task-summary-grid article {
    border-color: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(22px);
}

.panel,
.stat-card,
.module-hero,
.auth-card,
.student-modal,
.confirm-modal,
.report-type-card {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.055)),
        rgba(8, 17, 31, 0.38);
    box-shadow:
        0 22px 70px rgba(0, 0, 0, 0.24),
        inset 0 1px rgba(255, 255, 255, 0.09);
}

.button-primary {
    background: linear-gradient(135deg, #6c63ff 0%, #00d4ff 120%);
}

.button-secondary,
.icon-button,
.search-box,
.field input,
.field select,
.field textarea {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.055);
}

.sidebar,
.topbar {
    backdrop-filter: blur(26px);
}

.dashboard-hero {
    background:
        radial-gradient(circle at 82% 8%, rgba(0, 212, 255, 0.2), transparent 32%),
        radial-gradient(circle at 18% 100%, rgba(108, 99, 255, 0.23), transparent 36%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
}

.login-page .login-card {
    background:
        radial-gradient(circle at 20% 0, rgba(108, 99, 255, 0.16), transparent 38%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.065));
}

/* NEXORA final readability polish */
body {
    font-size: 14px;
    font-weight: 500;
    text-rendering: optimizeLegibility;
}

.dashboard-hero h2,
.module-hero h1,
.auth-title h1 {
    font-size: clamp(24px, 2.3vw, 34px);
    font-weight: 760;
    letter-spacing: -0.035em;
    line-height: 1.15;
}

.hero-description,
.page-subtitle,
.panel-header p,
.detail-panel-header p {
    font-size: 0.78rem;
    line-height: 1.6;
}

.panel-header h3,
.detail-panel-header h3,
.stat-card strong,
.finance-pulse-metrics strong {
    font-weight: 720;
    letter-spacing: -0.018em;
}

.stats-grid-premium .stat-card > p,
.nav-item,
.button,
.field label,
.table-secondary th,
.table-secondary td {
    font-size: 0.82rem;
}

.panel small,
.stat-card > small,
.risk-reason,
.daily-student small,
.top-study-list small,
.transaction-list small,
.report-type-card small,
.notification-copy p,
.dashboard-task-list small,
.compact-empty p,
.empty-state p {
    font-size: 0.72rem;
    line-height: 1.55;
}

.button,
.icon-button,
.alert-item,
.health-card,
.nav-item {
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 1;
}

.welcome-actions {
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    body {
        font-size: 13.5px;
    }

    .dashboard-hero h2,
    .module-hero h1,
    .auth-title h1 {
        font-size: clamp(22px, 7vw, 28px);
    }

    .stats-grid-premium .stat-card > p,
    .nav-item,
    .button {
        font-size: 0.8rem;
    }
}

/* NEXORA global usability baseline */
.sidebar {
    z-index: 1000 !important;
    pointer-events: auto !important;
}

.sidebar-scroll,
.sidebar-nav,
.sidebar-footer,
.sidebar .nav-item {
    position: relative;
    z-index: 2;
    pointer-events: auto !important;
}

.sidebar-overlay {
    pointer-events: none !important;
}

.sidebar-overlay.visible {
    pointer-events: auto !important;
}

.brand-logo {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(95, 85, 238, 0.16);
    border-radius: 12px;
    background: #fff;
}

.brand-logo img {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.brand > span:last-child {
    min-width: 0;
}

.brand strong {
    display: block;
    max-width: 165px;
    overflow: hidden;
    font-size: 16px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-content,
.dashboard-content p,
.dashboard-content li,
.dashboard-content label,
.dashboard-content input,
.dashboard-content select,
.dashboard-content textarea,
.dashboard-content button,
.dashboard-content a {
    font-size: 14px;
}

.dashboard-content small,
.app-footer small {
    font-size: 12.5px !important;
    line-height: 1.55 !important;
}

.panel-header h3,
.detail-panel-header h3 {
    font-size: 20px !important;
}

.panel-header p,
.detail-panel-header p,
.module-hero p {
    font-size: 14px !important;
}

.student-table th,
.student-table td,
.responsive-table th,
.responsive-table td {
    padding: 15px 16px !important;
    font-size: 13.5px !important;
}

.student-identity {
    min-width: 225px !important;
    gap: 12px !important;
}

.student-identity strong,
.attendance-student strong,
.daily-student strong,
.parent-card strong {
    color: #172033 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
}

.student-identity small,
.attendance-student small,
.daily-student small,
.parent-card small,
.table-primary,
.table-secondary,
.coach-cell,
.risk-reason {
    max-width: none !important;
    overflow: visible !important;
    color: #586a86 !important;
    font-size: 12.5px !important;
    line-height: 1.55 !important;
    text-overflow: clip !important;
    white-space: normal !important;
}

.attendance-picker,
.attendance-summary-grid,
.attendance-sheet,
.attendance-history-panel,
.absence-report-panel {
    color: #172033 !important;
    background: rgba(255, 255, 255, 0.94) !important;
}

.attendance-summary-grid strong {
    color: #172033 !important;
    font-size: 24px !important;
}

.attendance-summary-grid small,
.attendance-history-list small,
.absence-report-list small {
    color: #586a86 !important;
    font-size: 12.5px !important;
}

.attendance-history-list strong,
.absence-report-list strong {
    color: #172033 !important;
    font-size: 14px !important;
}

.attendance-options span,
.attendance-note {
    min-height: 38px !important;
    color: #33435e !important;
    font-size: 13px !important;
    background: #f7faff !important;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 0 22px 10px;
}

.settings-grid .field-wide {
    grid-column: 1 / -1;
}

.logo-preview {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(69, 87, 124, 0.14);
    border-radius: 14px;
    background: #f7faff;
}

.logo-preview img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
}

.study-modal,
.student-modal,
.confirm-modal {
    color: #172033 !important;
    background: #fff !important;
    border-color: rgba(69, 87, 124, 0.18) !important;
}

.modal-backdrop.visible {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.study-modal .field > span,
.student-modal .field > span,
.confirm-modal .field > span {
    color: #33435e !important;
    font-size: 13px !important;
}

.study-modal input,
.study-modal select,
.study-modal textarea {
    color: #172033 !important;
    background: #f8faff !important;
}

@media (max-width: 700px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }

    .settings-grid .field-wide {
        grid-column: auto;
    }
}

/* GLOBAL CLIENT READABILITY STANDARD - keep last */
.dashboard-content {
    color: #172033 !important;
}

.dashboard-content .panel,
.dashboard-content [class$="-panel"],
.dashboard-content [class*="-panel "],
.dashboard-content [class$="-card"],
.dashboard-content [class*="-card "] {
    border-color: rgba(69, 87, 124, 0.15) !important;
}

.dashboard-content p,
.dashboard-content li,
.dashboard-content td,
.dashboard-content th,
.dashboard-content label,
.dashboard-content input,
.dashboard-content select,
.dashboard-content textarea,
.dashboard-content button,
.dashboard-content a {
    font-size: 13px !important;
}

.dashboard-content small,
.dashboard-content [class*="meta"],
.dashboard-content [class*="hint"] {
    font-size: 12px !important;
    line-height: 1.55 !important;
}

.dashboard-content h3 {
    font-size: 19px !important;
    line-height: 1.3 !important;
}

.dashboard-content input,
.dashboard-content select,
.dashboard-content textarea {
    color: #263650 !important;
    background-color: #ffffff !important;
    border-color: rgba(69, 87, 124, 0.22) !important;
}

.dashboard-content input::placeholder,
.dashboard-content textarea::placeholder {
    color: #8290a5 !important;
    opacity: 1 !important;
}

.detail-breadcrumb {
    color: #65758d !important;
    font-size: 13px !important;
}

.detail-breadcrumb a {
    color: #5f55ee !important;
    font-size: 13px !important;
}

.student-profile-hero {
    min-height: 164px !important;
    border-color: rgba(95, 85, 238, 0.18) !important;
    background:
        radial-gradient(circle at 82% 8%, rgba(18, 169, 220, 0.14), transparent 30%),
        linear-gradient(135deg, #ffffff 0%, #edf3ff 100%) !important;
    box-shadow: 0 18px 42px rgba(31, 48, 83, 0.12) !important;
}

.profile-glow {
    opacity: 0.18 !important;
}

.profile-title-row h2 {
    color: #172033 !important;
    font-size: 27px !important;
    font-weight: 650 !important;
}

.profile-main p {
    color: #52647f !important;
    font-size: 14px !important;
}

.profile-contact {
    gap: 18px !important;
    color: #65758d !important;
    font-size: 12.5px !important;
}

.profile-avatar {
    color: #554bd4 !important;
    background: #f0efff !important;
}

.detail-kpi-grid article {
    min-height: 92px !important;
    color: #172033 !important;
    background: #ffffff !important;
    border-color: rgba(69, 87, 124, 0.15) !important;
    box-shadow: 0 12px 28px rgba(31, 48, 83, 0.08) !important;
}

.detail-kpi-grid strong {
    color: #172033 !important;
    font-size: 21px !important;
    font-weight: 650 !important;
}

.detail-kpi-grid small {
    color: #65758d !important;
    font-size: 12.5px !important;
}

.student-detail-module .detail-panel,
.student-detail-module .detail-chart-panel,
.student-detail-module .finance-panel,
.student-detail-module .timeline-panel,
.student-detail-module .tasks-panel-detail,
.student-detail-module .compact-history-panel {
    color: #172033 !important;
    background: rgba(255, 255, 255, 0.96) !important;
}

.student-detail-module .detail-panel-header {
    border-bottom-color: rgba(69, 87, 124, 0.12) !important;
}

.student-detail-module .detail-panel-header h3 {
    color: #172033 !important;
    font-size: 20px !important;
}

.info-grid span,
.target-metrics span,
.finance-total span,
.finance-split span {
    color: #65758d !important;
    font-size: 12px !important;
}

.info-grid strong,
.target-metrics strong,
.finance-split strong {
    overflow: visible !important;
    color: #40516d !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    text-overflow: clip !important;
    white-space: normal !important;
}

.target-university {
    color: #554bd4 !important;
    background: #f3f2ff !important;
    border-color: rgba(95, 85, 238, 0.18) !important;
    font-size: 13.5px !important;
}

.parent-avatar {
    font-size: 12px !important;
}

.parent-card strong {
    color: #263650 !important;
    font-size: 15px !important;
}

.parent-card small,
.contact-list {
    color: #65758d !important;
    font-size: 12.5px !important;
}

.risk-note,
.panel-count,
.type-chip,
.mini-status,
.attendance-status {
    min-height: 28px !important;
    padding: 5px 9px !important;
    font-size: 11.5px !important;
    line-height: 1.35 !important;
}

.student-chart-wrap,
.exam-chart-wrap,
.study-chart-wrap {
    background: #fbfcff !important;
}

.payment-progress,
.task-progress-large,
.student-task-progress-bar,
.mini-progress {
    background: #e6ebf4 !important;
}

.finance-split div,
.student-coaching-details > div {
    color: #33435e !important;
    background: #f7faff !important;
    border-color: rgba(69, 87, 124, 0.14) !important;
}

.mini-history > div,
.timeline-item,
.task-item-detail,
.compact-history-list > div:not(.empty-state) {
    border-color: rgba(69, 87, 124, 0.11) !important;
}

.mini-history,
.mini-history > div,
.timeline-item strong,
.task-item-detail strong,
.compact-history-list span strong {
    color: #33435e !important;
    font-size: 13px !important;
}

.mini-history small,
.timeline-item span,
.timeline-item p,
.timeline-item small,
.task-item-detail div span,
.compact-history-list span small {
    max-width: none !important;
    overflow: visible !important;
    color: #65758d !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
    text-overflow: clip !important;
    white-space: normal !important;
}

.responsive-table th,
.responsive-table td {
    color: #40516d !important;
    font-size: 12.5px !important;
}

.responsive-table td strong {
    color: #263650 !important;
}

.task-rate-ring {
    background:
        radial-gradient(circle, #ffffff 58%, transparent 59%),
        conic-gradient(var(--emerald) 0 var(--task-rate), #e6ebf4 var(--task-rate) 100%) !important;
}

.dashboard-content .module-search,
.dashboard-content .student-history-select label,
.dashboard-content .lesson-calendar-filter,
.dashboard-content .notification-toolbar,
.dashboard-content .task-toolbar {
    color: #33435e !important;
    background: #f7faff !important;
    border-color: rgba(69, 87, 124, 0.16) !important;
}

.app-footer,
.app-footer small {
    color: #71819a !important;
    font-size: 12px !important;
}

@media (max-width: 700px) {
    .profile-title-row h2 {
        font-size: 23px !important;
    }

    .profile-contact {
        display: grid;
        gap: 5px !important;
    }

    .detail-kpi-grid {
        grid-template-columns: 1fr !important;
    }
}

/* NEXORA definitive light UI overrides */
.heatmap-panel,
.insight-panel,
.alerts-panel,
.premium-schedule,
.coaching-pulse-panel,
.finance-pulse-panel,
.study-pulse-panel,
.task-pulse-panel,
.coaching-pulse-column,
.task-pulse-column,
.directory-create-panel,
.parent-notification-panel {
    color: #172033 !important;
    background: rgba(255, 255, 255, 0.94) !important;
    border-color: rgba(69, 87, 124, 0.16) !important;
    box-shadow: 0 16px 38px rgba(31, 48, 83, 0.1) !important;
}

.heatmap-grid {
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)) !important;
    gap: 14px !important;
    padding: 20px 22px 24px !important;
}

.health-card {
    min-height: 132px !important;
    padding: 18px !important;
    border: 1px solid rgba(69, 87, 124, 0.14) !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 26px rgba(31, 48, 83, 0.08) !important;
}

.health-card.good {
    color: #087853 !important;
    background: linear-gradient(135deg, #f2fff9, #e9faf4) !important;
}

.health-card.risk {
    color: #916006 !important;
    background: linear-gradient(135deg, #fffaf0, #fff4d8) !important;
}

.health-card.critical {
    color: #b92f4a !important;
    background: linear-gradient(135deg, #fff5f7, #ffe9ee) !important;
}

.health-copy strong {
    overflow: visible !important;
    color: #172033 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    text-overflow: clip !important;
}

.health-copy small,
.health-net small,
.health-reason {
    overflow: visible !important;
    color: #52647f !important;
    font-size: 12.5px !important;
    line-height: 1.55 !important;
    white-space: normal !important;
    text-overflow: clip !important;
}

.health-net strong {
    color: currentColor !important;
    font-size: 18px !important;
    font-weight: 600 !important;
}

.risk-orbit {
    background:
        radial-gradient(circle at center, #ffffff 56%, transparent 57%),
        conic-gradient(
            #13b981 0 var(--good-end),
            #e7aa28 var(--good-end) var(--risk-end),
            #e44863 var(--risk-end) 100%
        ) !important;
    box-shadow: 0 14px 34px rgba(31, 48, 83, 0.12) !important;
}

.risk-orbit strong,
.risk-breakdown strong {
    color: #172033 !important;
    font-weight: 600 !important;
}

.risk-orbit span,
.risk-breakdown span {
    color: #52647f !important;
    font-size: 13px !important;
}

.table-responsive {
    width: 100% !important;
    overflow-x: auto !important;
    padding: 0 20px 22px;
}

table.table-secondary {
    display: table !important;
    width: 100% !important;
    max-width: none !important;
    table-layout: auto !important;
    overflow: visible !important;
    border-collapse: collapse;
}

.table-secondary th,
.table-secondary td {
    padding: 15px 14px !important;
    border-bottom: 1px solid rgba(69, 87, 124, 0.1) !important;
    color: #33435e !important;
    text-align: left;
    vertical-align: middle;
}

.table-secondary thead {
    background: #f4f7fc !important;
}

.directory-module {
    display: grid;
    gap: 18px;
}

.directory-module > * {
    margin: 0 !important;
}

.directory-form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 0 22px 24px;
    align-items: end;
}

.parent-portal,
.parent-topbar,
.parent-student-grid article,
.parent-notification-panel,
.teacher-schedule-list article {
    color: #172033 !important;
    background: rgba(255, 255, 255, 0.94) !important;
    border-color: rgba(69, 87, 124, 0.16) !important;
}

.parent-student-grid strong,
.parent-notification-list strong,
.teacher-schedule-list strong {
    color: #172033 !important;
    font-size: 14px !important;
}

.parent-student-grid small,
.parent-student-grid p,
.parent-notification-list p,
.parent-notification-list small,
.teacher-schedule-list small,
.teacher-schedule-list time span {
    color: #586a86 !important;
    font-size: 12.5px !important;
}

@media (max-width: 980px) {
    .directory-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .heatmap-grid,
    .directory-form-grid {
        grid-template-columns: 1fr !important;
    }
}

/* NEXORA bright client-ready theme */
:root {
    --bg: #eef5ff;
    --bg-soft: #f6f9ff;
    --panel: rgba(255, 255, 255, 0.86);
    --panel-strong: rgba(255, 255, 255, 0.96);
    --line: rgba(73, 92, 128, 0.16);
    --line-bright: rgba(73, 92, 128, 0.24);
    --text: #172033;
    --text-soft: #4b5d78;
    --text-muted: #71819a;
    --violet: #5f55ee;
    --violet-light: #7d76ff;
    --cyan: #12a9dc;
    --amber: #d99a17;
    --emerald: #13b981;
    --danger: #e44863;
    --shadow: 0 18px 44px rgba(31, 48, 83, 0.12);
}

html,
body {
    background: #eef5ff !important;
    color: var(--text) !important;
    font-family: "Poppins", "Segoe UI", Arial, sans-serif !important;
    font-size: 15.5px !important;
    line-height: 1.72 !important;
    font-weight: 400 !important;
}

body.dashboard-page {
    background:
        radial-gradient(circle at 18% 0%, rgba(95, 85, 238, 0.13), transparent 30%),
        radial-gradient(circle at 86% 10%, rgba(18, 169, 220, 0.14), transparent 34%),
        linear-gradient(180deg, #f4f8ff 0%, #eaf2ff 100%) !important;
}

.app-shell,
.dashboard-content {
    background: transparent !important;
}

.sidebar,
.topbar,
.panel,
.stat-card,
.module-hero,
.dashboard-hero,
.auth-card,
.student-modal,
.confirm-modal,
.report-type-card,
.finance-summary-grid article,
.lesson-summary-grid article,
.etude-summary-grid article,
.study-summary-grid article,
.attendance-summary-grid article,
.notification-summary-grid article,
.exam-summary-grid article,
.task-summary-grid article {
    background: rgba(255, 255, 255, 0.86) !important;
    border: 1px solid rgba(69, 87, 124, 0.16) !important;
    box-shadow: 0 18px 44px rgba(31, 48, 83, 0.12) !important;
    color: var(--text) !important;
}

.sidebar,
.topbar {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(18px);
}

.dashboard-hero,
.module-hero {
    background:
        radial-gradient(circle at 88% 14%, rgba(18, 169, 220, 0.2), transparent 28%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(235, 242, 255, 0.92)) !important;
}

.auth-page.login-page {
    background: #eef5ff !important;
}

.login-page .ambient,
.login-page .login-showcase,
.login-page .login-showcase::after {
    display: none !important;
}

.login-page .login-shell {
    display: flex !important;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.login-page .login-card {
    width: min(100%, 460px) !important;
    background: rgba(255, 255, 255, 0.96) !important;
}

.brand strong,
.topbar-left h1,
.dashboard-hero h2,
.module-hero h1,
.module-hero h2,
.auth-card h2,
.panel-header h3,
.detail-panel-header h3,
.stat-card > strong,
.stats-grid-premium .stat-card > strong,
.table-secondary strong {
    color: #121b2d !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
}

.dashboard-hero h2 {
    font-size: clamp(27px, 2.4vw, 38px) !important;
}

.module-hero h1,
.module-hero h2 {
    font-size: clamp(24px, 2vw, 34px) !important;
}

.panel-header h3,
.detail-panel-header h3 {
    font-size: 20px !important;
}

.hero-description,
.module-hero p,
.panel-header p,
.detail-panel-header p,
.stat-card > p,
.stats-grid-premium .stat-card > p,
.table-secondary td,
.table-secondary th,
.button,
.nav-item,
.field label,
.field input,
.field select,
.field textarea,
.search-box input {
    color: #33435e !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.65 !important;
}

.stat-card > small,
.stats-grid-premium .stat-card > small,
.panel small,
.table-secondary small,
.empty-state span,
.empty-state p,
.compact-empty p,
.health-copy small,
.health-reason,
.program-copy small,
.alert-copy small,
.daily-student small,
.top-study-list small,
.transaction-list small,
.parent-student-grid small,
.parent-student-grid p,
.parent-notification-list p,
.parent-notification-list small {
    color: #586a86 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.65 !important;
    letter-spacing: 0 !important;
}

.section-kicker,
.nav-label,
.eyebrow,
.live-badge,
.status-pill,
.stat-card-index,
.alert-count {
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.06em !important;
    color: #5f55ee !important;
}

.nav-item {
    color: #34445f !important;
}

.nav-item:hover,
.nav-item.active {
    color: #111a2c !important;
    background: rgba(95, 85, 238, 0.09) !important;
}

.search-box,
.field input,
.field select,
.field textarea,
.module-search,
.filter-row select {
    background: rgba(255, 255, 255, 0.92) !important;
    border-color: rgba(69, 87, 124, 0.2) !important;
    color: #172033 !important;
}

.button-primary {
    color: #fff !important;
    background: linear-gradient(135deg, #5f55ee 0%, #12a9dc 100%) !important;
}

.button-secondary,
.icon-button {
    color: #263650 !important;
    background: rgba(255, 255, 255, 0.92) !important;
    border-color: rgba(69, 87, 124, 0.2) !important;
}

.dashboard-notice,
.module-alert.error {
    background: #fff7e5 !important;
    border-color: rgba(217, 154, 23, 0.28) !important;
    color: #76510b !important;
}

.empty-state,
.compact-empty {
    background: rgba(246, 249, 255, 0.9) !important;
    color: #4b5d78 !important;
}

.table-secondary {
    color: #263650 !important;
}

.table-secondary th {
    color: #5a6d88 !important;
}

.table-secondary tr {
    border-color: rgba(69, 87, 124, 0.12) !important;
}

.profile-button,
.profile-button:visited,
.alert-item,
.health-card,
.finance-pulse-grid a,
.dashboard-task-list a {
    text-decoration: none;
}

@media (max-width: 760px) {
    html,
    body {
        font-size: 15px !important;
    }

    .topbar-actions {
        gap: 8px;
    }

    .search-box {
        min-width: 0;
        flex: 1 1 180px;
    }
}

/* NEXORA readability reset - final layer */
html,
body {
    font-size: 15px;
    line-height: 1.65;
    font-weight: 400;
    letter-spacing: 0;
}

body,
input,
select,
textarea,
button {
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-weight: 400;
}

.topbar-left h1,
.dashboard-hero h2,
.module-hero h1,
.module-hero h2,
.auth-title h1,
.panel-header h3,
.detail-panel-header h3 {
    font-weight: 600 !important;
    letter-spacing: -0.018em !important;
    line-height: 1.22 !important;
}

.dashboard-hero h2 {
    font-size: clamp(24px, 2vw, 32px) !important;
}

.module-hero h1,
.module-hero h2 {
    font-size: clamp(22px, 1.8vw, 30px) !important;
}

.stat-card > strong,
.stats-grid-premium .stat-card > strong,
.finance-summary-grid strong,
.lesson-summary-grid strong,
.etude-summary-grid strong,
.study-summary-grid strong,
.attendance-summary-grid strong,
.notification-summary-grid strong,
.exam-summary-grid strong,
.task-summary-grid strong {
    font-size: clamp(22px, 1.7vw, 30px) !important;
    font-weight: 600 !important;
    letter-spacing: -0.015em !important;
    line-height: 1.18 !important;
}

.stat-card > p,
.stats-grid-premium .stat-card > p,
.panel-header p,
.detail-panel-header p,
.module-hero p,
.hero-description,
.button,
.nav-item,
.field label,
.table-secondary th,
.table-secondary td {
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.55 !important;
}

.section-kicker,
.nav-label,
.live-badge,
.stat-card-index,
.alert-count,
.status-pill,
.table-secondary small,
.stat-card > small,
.stats-grid-premium .stat-card > small,
.panel small,
.compact-empty p,
.empty-state p,
.alert-copy small,
.health-copy small,
.health-net small,
.health-reason,
.program-copy small,
.chart-meta span,
.finance-pulse-metrics span,
.finance-pulse-metrics small,
.dashboard-task-list small,
.daily-student small,
.top-study-list small,
.transaction-list small,
.report-type-card small,
.parent-student-grid small,
.parent-student-grid p,
.parent-notification-list p,
.parent-notification-list small {
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    letter-spacing: 0.01em !important;
}

.section-kicker,
.nav-label {
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
}

.button {
    min-height: 42px;
    gap: 9px;
}

.stats-grid-premium .stat-card {
    min-height: 176px;
}

.stat-card > p {
    margin-top: 16px;
    color: rgba(220, 230, 248, 0.82) !important;
}

.stat-card > small {
    color: rgba(190, 202, 224, 0.78) !important;
}

.dashboard-notice {
    font-size: 13px !important;
    line-height: 1.55 !important;
}

@media (max-width: 640px) {
    html,
    body {
        font-size: 14px;
    }

    .stat-card > p,
    .stats-grid-premium .stat-card > p,
    .panel-header p,
    .detail-panel-header p,
    .module-hero p,
    .hero-description,
    .button,
    .nav-item,
    .field label,
    .table-secondary th,
    .table-secondary td {
        font-size: 12.5px !important;
    }

    .section-kicker,
    .nav-label,
    .stat-card > small,
    .stats-grid-premium .stat-card > small,
    .panel small,
    .empty-state p {
        font-size: 11.5px !important;
    }
}

/* FINAL ACCESSIBILITY OVERRIDES */
.sidebar { z-index: 1000 !important; pointer-events: auto !important; }
.sidebar-scroll, .sidebar-nav, .sidebar-footer, .sidebar .nav-item {
    position: relative;
    z-index: 2;
    pointer-events: auto !important;
}
.sidebar-overlay { pointer-events: none !important; }
.sidebar-overlay.visible { pointer-events: auto !important; }
.brand-logo {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(95, 85, 238, 0.16);
    border-radius: 12px;
    background: #fff;
}
.brand-logo img { width: 34px; height: 34px; object-fit: contain; }
.brand strong {
    display: block;
    max-width: 165px;
    overflow: hidden;
    font-size: 16px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dashboard-content,
.dashboard-content p,
.dashboard-content li,
.dashboard-content label,
.dashboard-content input,
.dashboard-content select,
.dashboard-content textarea,
.dashboard-content button,
.dashboard-content a { font-size: 14px !important; }
.dashboard-content small, .app-footer small {
    font-size: 12.5px !important;
    line-height: 1.55 !important;
}
.panel-header h3, .detail-panel-header h3 { font-size: 20px !important; }
.panel-header p, .detail-panel-header p, .module-hero p { font-size: 14px !important; }
.student-table th, .student-table td, .responsive-table th, .responsive-table td {
    padding: 15px 16px !important;
    font-size: 13.5px !important;
}
.student-identity { min-width: 225px !important; gap: 12px !important; }
.student-identity strong, .attendance-student strong, .daily-student strong, .parent-card strong {
    color: #172033 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
}
.student-identity small, .attendance-student small, .daily-student small,
.parent-card small, .table-primary, .table-secondary, .coach-cell, .risk-reason {
    max-width: none !important;
    overflow: visible !important;
    color: #586a86 !important;
    font-size: 12.5px !important;
    line-height: 1.55 !important;
    text-overflow: clip !important;
    white-space: normal !important;
}
.attendance-picker, .attendance-summary-grid, .attendance-sheet,
.attendance-history-panel, .absence-report-panel {
    color: #172033 !important;
    background: rgba(255, 255, 255, 0.94) !important;
}
.attendance-summary-grid strong { color: #172033 !important; font-size: 24px !important; }
.attendance-summary-grid small, .attendance-history-list small, .absence-report-list small {
    color: #586a86 !important;
    font-size: 12.5px !important;
}
.attendance-history-list strong, .absence-report-list strong {
    color: #172033 !important;
    font-size: 14px !important;
}
.attendance-options span, .attendance-note {
    min-height: 38px !important;
    color: #33435e !important;
    font-size: 13px !important;
    background: #f7faff !important;
}
.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 0 22px 10px;
}
.settings-grid .field-wide { grid-column: 1 / -1; }
.logo-preview {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(69, 87, 124, 0.14);
    border-radius: 14px;
    background: #f7faff;
}
.logo-preview img { width: 64px; height: 64px; object-fit: contain; border-radius: 12px; background: #fff; }
.study-modal, .student-modal, .confirm-modal {
    color: #172033 !important;
    background: #fff !important;
    border-color: rgba(69, 87, 124, 0.18) !important;
}
.modal-backdrop.visible {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}
.study-modal .field > span, .student-modal .field > span, .confirm-modal .field > span {
    color: #33435e !important;
    font-size: 13px !important;
}
.study-modal input, .study-modal select, .study-modal textarea {
    color: #172033 !important;
    background: #f8faff !important;
}
@media (max-width: 700px) {
    .settings-grid { grid-template-columns: 1fr; }
    .settings-grid .field-wide { grid-column: auto; }
}

/* NEXORA LIGHT UI CONSISTENCY - 2026-06-12 */
html,
body,
body.dashboard-page {
    color-scheme: light !important;
}

body,
input,
select,
textarea,
button {
    font-family: "Poppins", "Segoe UI", Arial, sans-serif !important;
}

.search-box {
    overflow: hidden;
}

.search-submit {
    min-width: 54px;
    min-height: 34px;
    padding: 0 13px;
    border: 0;
    border-radius: 9px;
    color: #fff !important;
    background: linear-gradient(135deg, #5f55ee, #12a9dc);
    font-size: 12.5px !important;
    font-weight: 600 !important;
    cursor: pointer;
}

.notification-button {
    position: relative;
    z-index: 3;
    cursor: pointer;
}

.stats-grid-premium .stat-card {
    display: block;
    text-decoration: none !important;
    cursor: pointer;
}

.stats-grid-premium .stat-card:hover,
.stats-grid-premium .stat-card:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(95, 85, 238, 0.34) !important;
    box-shadow: 0 22px 48px rgba(31, 48, 83, 0.17) !important;
    outline: none;
}

.stat-card > p,
.stats-grid-premium .stat-card > p {
    color: #33435e !important;
    font-size: 14px !important;
}

.stat-card > small,
.stats-grid-premium .stat-card > small {
    color: #586a86 !important;
    font-size: 12.5px !important;
}

.student-summary-grid article,
.finance-summary-grid article,
.lesson-summary-grid article,
.etude-summary-grid article,
.study-summary-grid article,
.attendance-summary-grid article,
.notification-summary-grid article,
.exam-summary-grid article,
.task-summary-grid article,
.coaching-summary-grid article,
.coaching-summary-card {
    min-height: 96px !important;
    color: #172033 !important;
    background: rgba(255, 255, 255, 0.94) !important;
    border-color: rgba(69, 87, 124, 0.16) !important;
}

.student-summary-grid strong,
.finance-summary-grid strong,
.lesson-summary-grid strong,
.etude-summary-grid strong,
.study-summary-grid strong,
.attendance-summary-grid strong,
.notification-summary-grid strong,
.exam-summary-grid strong,
.task-summary-grid strong {
    color: #172033 !important;
    font-size: 25px !important;
}

.student-summary-grid small,
.finance-summary-grid small,
.lesson-summary-grid small,
.etude-summary-grid small,
.study-summary-grid small,
.attendance-summary-grid small,
.notification-summary-grid small,
.exam-summary-grid small,
.task-summary-grid small {
    color: #586a86 !important;
    font-size: 13px !important;
}

.risk-badge,
.record-status,
.status-pill,
.lesson-status,
.queue-status,
.capacity-badge {
    min-height: 30px !important;
    padding: 6px 11px !important;
    border-radius: 9px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    white-space: nowrap;
}

.lesson-hero,
.etude-hero,
.reports-hero {
    background:
        radial-gradient(circle at 86% 10%, rgba(18, 169, 220, 0.16), transparent 30%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(235, 242, 255, 0.94)) !important;
}

.lesson-create-panel,
.teacher-calendar-panel,
.lesson-history-grid > article,
.daily-study-panel,
.top-study-panel,
.never-attended-panel,
.student-study-chart-panel,
.report-print-shell,
.report-table-panel,
.report-filter-panel {
    color: #172033 !important;
    background: rgba(255, 255, 255, 0.94) !important;
    border-color: rgba(69, 87, 124, 0.16) !important;
}

.lesson-calendar-filter,
.etude-add-student {
    background: #f6f9ff !important;
    border-color: rgba(69, 87, 124, 0.14) !important;
}

.teacher-schedule-list article,
.lesson-record-list > article,
.etude-participant-list article {
    border-color: rgba(69, 87, 124, 0.12) !important;
}

.teacher-schedule-list time strong,
.teacher-schedule-list article > span:last-child strong,
.lesson-record-list strong,
.etude-participant-list strong {
    color: #263650 !important;
    font-size: 13.5px !important;
}

.teacher-schedule-list time span,
.teacher-schedule-list article > span:last-child small,
.lesson-record-list small,
.etude-participant-list small {
    color: #65758d !important;
    font-size: 12px !important;
}

.lesson-history-grid select,
.lesson-record-list select,
.etude-participant-list select {
    min-height: 38px !important;
    color: #172033 !important;
    background: #fff !important;
    border-color: rgba(69, 87, 124, 0.2) !important;
    font-size: 12.5px !important;
}

.report-print-header,
.report-summary-strip,
.report-print-footer {
    color: #172033 !important;
    background: #f7faff !important;
    border-color: rgba(69, 87, 124, 0.14) !important;
}

.report-print-header h1 {
    color: #172033 !important;
    font-size: 25px !important;
}

.report-print-header p,
.report-print-meta span,
.report-print-meta strong {
    color: #586a86 !important;
    font-size: 12.5px !important;
}

.report-summary-strip {
    gap: 1px;
    background: rgba(69, 87, 124, 0.14) !important;
}

.report-summary-strip article {
    background: #fff !important;
}

.report-summary-strip span {
    color: #65758d !important;
    font-size: 12px !important;
}

.report-summary-strip strong {
    color: #172033 !important;
    font-size: 19px !important;
}

.report-explain-box {
    background: #eef8ff !important;
    border-color: rgba(18, 169, 220, 0.2) !important;
}

.report-explain-box strong,
.report-explain-box p {
    color: #33435e !important;
    font-size: 13px !important;
}

.report-table th,
.report-table td {
    color: #33435e !important;
    font-size: 13px !important;
}

.report-type-card strong {
    color: #263650 !important;
    font-size: 13.5px !important;
}

.report-type-card small {
    color: #65758d !important;
    font-size: 12px !important;
}

.dashboard-content [class*="-list"] strong {
    color: #263650 !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
}

.dashboard-content [class*="-list"] small,
.dashboard-content [class*="-list"] p {
    color: #65758d !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
}

.study-analysis-strip,
.finance-pulse-metrics article,
.task-pulse-column,
.coaching-pulse-column,
.notification-queue-row,
.attendance-history-list > div,
.absence-report-list > a {
    color: #172033 !important;
    background: #f7faff !important;
    border-color: rgba(69, 87, 124, 0.12) !important;
}

.study-analysis-strip span,
.finance-pulse-metrics span,
.finance-pulse-metrics small {
    color: #65758d !important;
    font-size: 12.5px !important;
}

.study-analysis-strip strong,
.finance-pulse-metrics strong {
    color: #172033 !important;
    font-size: 18px !important;
}

.checkout-button,
.text-button,
.filter-reset {
    min-height: 34px !important;
    padding: 6px 11px !important;
    color: #4f46d8 !important;
    background: #eef0ff !important;
    border: 1px solid rgba(95, 85, 238, 0.18) !important;
    border-radius: 9px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
}

@media (max-width: 760px) {
    .search-box kbd {
        display: none;
    }

    .search-submit {
        min-width: 48px;
        padding-inline: 10px;
    }

    .student-summary-grid article,
    .finance-summary-grid article,
    .lesson-summary-grid article,
    .etude-summary-grid article,
    .study-summary-grid article {
        min-height: 88px !important;
    }
}

/* FINAL MODULE LIGHT OVERRIDES - must remain at the end */
.analysis-strip,
.study-analysis-strip {
    gap: 1px !important;
    color: #172033 !important;
    background: rgba(69, 87, 124, 0.14) !important;
    border-color: rgba(69, 87, 124, 0.14) !important;
}

.analysis-strip article,
.study-analysis-strip article {
    min-height: 92px !important;
    padding: 17px 20px !important;
    background: #ffffff !important;
}

.analysis-strip span,
.analysis-strip small,
.study-analysis-strip span {
    color: #65758d !important;
    font-size: 12.5px !important;
    line-height: 1.5 !important;
}

.analysis-strip strong,
.study-analysis-strip strong {
    color: #172033 !important;
    font-size: 20px !important;
    font-weight: 650 !important;
}

.student-history-select label,
.coach-selector-header form select {
    min-height: 44px !important;
    color: #33435e !important;
    background: #ffffff !important;
    border-color: rgba(69, 87, 124, 0.22) !important;
}

.student-history-select select,
.coach-selector-header form select {
    color: #33435e !important;
    background: #ffffff !important;
    font-size: 13px !important;
}

.coaching-note-card {
    border-color: rgba(69, 87, 124, 0.15) !important;
    background: #ffffff !important;
    box-shadow: 0 8px 22px rgba(31, 48, 83, 0.06) !important;
}

.coaching-note-head {
    border-bottom-color: rgba(69, 87, 124, 0.12) !important;
    background: #fbfcff !important;
}

.coaching-note-head div > a {
    color: #172033 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

.coaching-note-head div > span,
.coaching-note-head time,
.coaching-date small {
    color: #65758d !important;
    font-size: 12px !important;
}

.coaching-note-body {
    gap: 1px !important;
    background: rgba(69, 87, 124, 0.14) !important;
}

.coaching-note-body > div {
    min-height: 110px !important;
    padding: 16px !important;
    background: #f7faff !important;
}

.coaching-note-body span {
    color: #5f55ee !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

.coaching-note-body p {
    margin-top: 8px !important;
    color: #40516d !important;
    font-size: 13.5px !important;
    line-height: 1.65 !important;
}

.motivation-note {
    min-height: 66px !important;
    align-items: center !important;
    padding: 13px 15px !important;
    color: #b77906 !important;
    background: #fff9ed !important;
    border-color: rgba(217, 154, 23, 0.24) !important;
}

.motivation-note strong {
    color: #263650 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

.motivation-note span {
    margin-top: 4px !important;
    color: #6a5a3d !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
}

.overdue-student strong,
.portfolio-student strong {
    color: #263650 !important;
    font-size: 13.5px !important;
}

.overdue-student small,
.portfolio-student small {
    color: #65758d !important;
    font-size: 12px !important;
}

.task-toolbar select,
.filter-row select {
    min-height: 42px !important;
    color: #33435e !important;
    background: #ffffff !important;
    border-color: rgba(69, 87, 124, 0.2) !important;
    font-size: 13px !important;
}

.integration-badge {
    min-height: 42px !important;
    padding: 9px 14px !important;
    color: #087853 !important;
    background: #ebfbf5 !important;
    border: 1px solid rgba(19, 185, 129, 0.22) !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

.manual-study-button {
    position: relative !important;
    z-index: 5 !important;
    min-height: 44px !important;
    padding: 10px 17px !important;
    font-size: 13.5px !important;
    pointer-events: auto !important;
}

#studyModal.modal-backdrop {
    z-index: 1400 !important;
}

#studyModal.visible {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

#studyModal .study-modal {
    display: block !important;
    color: #172033 !important;
    background: #ffffff !important;
}

#studyModal .modal-close {
    display: grid;
    place-items: center;
    text-decoration: none;
}

#studyModal .integration-note {
    color: #33435e !important;
    background: #eef8ff !important;
    border-color: rgba(18, 169, 220, 0.2) !important;
}

#studyModal .integration-note strong {
    color: #172033 !important;
    font-size: 13.5px !important;
}

#studyModal .integration-note span,
#studyModal .field small {
    color: #65758d !important;
    font-size: 12px !important;
}

@media (max-width: 700px) {
    .analysis-strip,
    .study-analysis-strip,
    .coaching-note-body {
        grid-template-columns: 1fr !important;
    }

    .integration-badge {
        width: 100%;
        justify-content: center;
    }

    .manual-study-button {
        width: 100%;
        justify-content: center;
    }
}

/* ABSOLUTE FINAL PANEL STANDARD */
.dashboard-page .dashboard-content small,
.dashboard-page .dashboard-content .section-kicker,
.dashboard-page .dashboard-content .panel-count,
.dashboard-page .dashboard-content .risk-note,
.dashboard-page .dashboard-content .type-chip,
.dashboard-page .dashboard-content .mini-status {
    font-size: 12px !important;
    line-height: 1.5 !important;
}

.dashboard-page .dashboard-content .panel,
.dashboard-page .dashboard-content .student-profile-hero,
.dashboard-page .dashboard-content .detail-kpi-grid article,
.dashboard-page .dashboard-content .analysis-strip article,
.dashboard-page .dashboard-content .study-analysis-strip article,
.dashboard-page .dashboard-content .coaching-note-card,
.dashboard-page .dashboard-content .task-card-module,
.dashboard-page .dashboard-content .notification-queue-row,
.dashboard-page .dashboard-content .attendance-sheet,
.dashboard-page .dashboard-content .report-print-shell {
    color: #172033 !important;
    background-color: #ffffff !important;
    border-color: rgba(69, 87, 124, 0.15) !important;
}

.dashboard-page .dashboard-content .student-profile-hero {
    background:
        radial-gradient(circle at 82% 8%, rgba(18, 169, 220, 0.14), transparent 30%),
        linear-gradient(135deg, #ffffff, #edf3ff) !important;
}

.dashboard-page .dashboard-content .detail-kpi-grid article {
    background: #ffffff !important;
}

.dashboard-page .dashboard-content .info-grid span,
.dashboard-page .dashboard-content .target-metrics span,
.dashboard-page .dashboard-content .contact-list,
.dashboard-page .dashboard-content .finance-split span,
.dashboard-page .dashboard-content .mini-history small,
.dashboard-page .dashboard-content .timeline-item span,
.dashboard-page .dashboard-content .timeline-item p,
.dashboard-page .dashboard-content .task-item-detail div span,
.dashboard-page .dashboard-content .compact-history-list small {
    color: #65758d !important;
    font-size: 12px !important;
}

.dashboard-page .dashboard-content .info-grid strong,
.dashboard-page .dashboard-content .target-metrics strong,
.dashboard-page .dashboard-content .finance-split strong,
.dashboard-page .dashboard-content .mini-history > div,
.dashboard-page .dashboard-content .timeline-item strong,
.dashboard-page .dashboard-content .task-item-detail strong,
.dashboard-page .dashboard-content .compact-history-list strong {
    color: #33435e !important;
    font-size: 13px !important;
}

.dashboard-page .dashboard-content .student-history-select label,
.dashboard-page .dashboard-content .student-history-select select,
.dashboard-page .dashboard-content .coach-selector-header select,
.dashboard-page .dashboard-content .task-toolbar select,
.dashboard-page .dashboard-content .filter-row select,
.dashboard-page .dashboard-content .lesson-history-grid select {
    color: #33435e !important;
    background: #ffffff !important;
    border-color: rgba(69, 87, 124, 0.2) !important;
    font-size: 13px !important;
}

.dashboard-page .dashboard-content .coaching-note-body > div,
.dashboard-page .dashboard-content .finance-split div,
.dashboard-page .dashboard-content .student-coaching-details > div,
.dashboard-page .dashboard-content .study-analysis-strip article {
    background: #f7faff !important;
}

.dashboard-page .dashboard-content .coaching-note-body p,
.dashboard-page .dashboard-content .motivation-note span,
.dashboard-page .dashboard-content .student-coaching-details span {
    color: #40516d !important;
    font-size: 13px !important;
}

.dashboard-page .dashboard-content .responsive-table th,
.dashboard-page .dashboard-content .responsive-table td,
.dashboard-page .dashboard-content .table-secondary th,
.dashboard-page .dashboard-content .table-secondary td {
    color: #40516d !important;
    font-size: 12.5px !important;
}

/* NOTIFICATION BADGES AND MODERN LOGIN */
.notification-meta {
    display: flex !important;
    flex-wrap: wrap;
    gap: 7px !important;
    margin-bottom: 7px !important;
}

.notification-meta b,
.notification-meta i,
.queue-status {
    display: inline-flex !important;
    min-height: 28px !important;
    align-items: center;
    justify-content: center;
    padding: 5px 10px !important;
    border: 1px solid rgba(69, 87, 124, 0.14) !important;
    border-radius: 8px !important;
    font-size: 11.5px !important;
    font-style: normal !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    white-space: nowrap;
}

.notification-meta b {
    color: #554bd4 !important;
    background: #eeefff !important;
}

.notification-meta i {
    color: #40516d !important;
    background: #f1f5fb !important;
}

.queue-status {
    color: #9a6507 !important;
    background: #fff7e5 !important;
}

.queue-status.sent {
    color: #087853 !important;
    background: #eafbf4 !important;
}

.channel-mark {
    width: 38px !important;
    height: 38px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

.notification-copy > strong {
    color: #263650 !important;
    font-size: 14.5px !important;
}

.notification-copy > p,
.notification-copy > small {
    color: #65758d !important;
    font-size: 12.5px !important;
    line-height: 1.6 !important;
}

.login-page.auth-page {
    min-height: 100vh !important;
    overflow: auto !important;
    color-scheme: light !important;
    background:
        radial-gradient(circle at 14% 18%, rgba(95, 85, 238, 0.15), transparent 30%),
        radial-gradient(circle at 88% 80%, rgba(18, 169, 220, 0.14), transparent 30%),
        linear-gradient(145deg, #edf3ff 0%, #f8faff 52%, #eaf7fb 100%) !important;
}

.login-page .login-shell {
    display: flex !important;
    width: 100%;
    min-height: 100vh !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 34px !important;
}

.login-page .login-frame {
    display: grid;
    width: min(1180px, 100%);
    min-height: 690px;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
    overflow: hidden;
    border: 1px solid rgba(69, 87, 124, 0.15);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 35px 90px rgba(39, 59, 96, 0.18);
}

.login-page .login-brand-panel {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    padding: 48px;
    color: #ffffff;
    background:
        radial-gradient(circle at 85% 15%, rgba(0, 212, 255, 0.26), transparent 30%),
        radial-gradient(circle at 12% 88%, rgba(129, 111, 255, 0.34), transparent 34%),
        linear-gradient(145deg, #17264a 0%, #29366d 50%, #156f92 120%);
}

.login-page .login-brand-panel::after {
    position: absolute;
    right: -160px;
    bottom: -190px;
    width: 440px;
    height: 440px;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    box-shadow:
        0 0 0 55px rgba(255, 255, 255, 0.025),
        0 0 0 110px rgba(255, 255, 255, 0.018);
}

.login-page .login-brand {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 13px;
    align-self: flex-start;
}

.login-page .login-brand strong,
.login-page .login-mobile-brand strong {
    display: block;
    font-size: 20px !important;
    font-weight: 700 !important;
    letter-spacing: 0.16em;
}

.login-page .login-brand small,
.login-page .login-mobile-brand small {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.67);
    font-size: 10px !important;
    font-weight: 600;
    letter-spacing: 0.13em;
}

.login-brand-copy {
    position: relative;
    z-index: 1;
    margin: auto 0 38px;
}

.login-eyebrow,
.login-form-kicker {
    color: #72e2ff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.login-brand-copy h1 {
    max-width: 580px;
    margin: 18px 0;
    color: #ffffff;
    font-size: clamp(36px, 3.4vw, 52px);
    font-weight: 650;
    letter-spacing: -0.045em;
    line-height: 1.08;
}

.login-brand-copy p {
    max-width: 540px;
    margin: 0;
    color: rgba(235, 242, 255, 0.76);
    font-size: 15px;
    line-height: 1.75;
}

.login-feature-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.login-feature-grid article {
    display: flex;
    min-width: 0;
    gap: 10px;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.login-feature-grid article > svg {
    flex: 0 0 auto;
    color: #76e8ff;
}

.login-feature-grid strong,
.login-feature-grid small {
    display: block;
}

.login-feature-grid strong {
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
}

.login-feature-grid small {
    margin-top: 3px;
    color: rgba(232, 240, 255, 0.62);
    font-size: 10.5px;
    line-height: 1.45;
}

.login-trust-line {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    color: rgba(236, 243, 255, 0.68);
    font-size: 11px;
}

.login-trust-line i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2ee59d;
    box-shadow: 0 0 12px rgba(46, 229, 157, 0.75);
}

.login-page .login-form-panel {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 48px 56px;
    color: #172033;
    background: #ffffff;
}

.login-mobile-brand {
    display: none;
}

.login-page .auth-card-header {
    margin-bottom: 25px;
    text-align: left;
}

.login-welcome-mark {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    margin-bottom: 16px;
    color: #ffffff;
    border-radius: 15px;
    background: linear-gradient(135deg, #6c63ff, #00afd8);
    box-shadow: 0 13px 30px rgba(95, 85, 238, 0.24);
}

.login-form-kicker {
    color: #5f55ee;
}

.login-page .auth-card-header h2 {
    margin: 9px 0 8px;
    color: #172033 !important;
    font-size: 30px !important;
    font-weight: 650 !important;
    letter-spacing: -0.035em;
}

.login-page .auth-card-header p {
    max-width: 410px;
    color: #65758d;
    font-size: 13.5px;
    line-height: 1.7;
}

.login-page .login-auth-form {
    gap: 16px;
}

.login-page .field > span {
    color: #40516d !important;
    font-size: 12.5px;
    font-weight: 600;
}

.login-page .field input {
    height: 50px;
    color: #172033 !important;
    border: 1px solid rgba(69, 87, 124, 0.2);
    border-radius: 12px;
    background: #f8faff !important;
    font-size: 13.5px;
}

.login-page .field input:focus {
    border-color: #5f55ee;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(95, 85, 238, 0.1);
}

.login-page .password-toggle {
    color: #5f55ee;
    font-size: 12px;
}

.login-page .form-options {
    color: #71819a;
    font-size: 12px;
}

.login-page .checkbox {
    gap: 8px;
}

.login-page .button-wide {
    min-height: 52px;
    margin-top: 2px;
    border-radius: 13px;
    font-size: 13.5px;
}

.demo-access-card {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid rgba(95, 85, 238, 0.17);
    border-radius: 15px;
    background: linear-gradient(135deg, #f5f4ff, #eef8ff);
}

.demo-access-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.demo-access-title > span {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #5f55ee;
    border-radius: 11px;
    background: #ffffff;
}

.demo-access-title strong,
.demo-access-title small {
    display: block;
}

.demo-access-title strong {
    color: #263650;
    font-size: 13px;
}

.demo-access-title small {
    margin-top: 2px;
    color: #71819a;
    font-size: 11px;
}

.demo-access-values {
    display: grid;
    grid-template-columns: 1.45fr 0.75fr;
    gap: 9px;
    margin-top: 12px;
}

.demo-access-values div {
    padding: 9px 11px;
    border: 1px solid rgba(69, 87, 124, 0.11);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
}

.demo-access-values span,
.demo-access-values code {
    display: block;
}

.demo-access-values span {
    color: #71819a;
    font-size: 10.5px;
}

.demo-access-values code {
    margin-top: 3px;
    color: #33435e;
    font-family: "Poppins", "Segoe UI", sans-serif;
    font-size: 12px;
    font-weight: 600;
}

.login-page .secure-note {
    margin-top: 17px;
    color: #71819a;
    font-size: 11px;
}

.login-page .alert {
    color: #33435e;
    background: #fff7e5;
    border-color: rgba(217, 154, 23, 0.25);
}

.login-page .alert-success {
    color: #087853;
    background: #eafbf4;
    border-color: rgba(19, 185, 129, 0.22);
}

@media (max-width: 980px) {
    .login-page .login-frame {
        width: min(560px, 100%);
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .login-page .login-brand-panel {
        display: none;
    }

    .login-page .login-form-panel {
        padding: 42px;
    }

    .login-mobile-brand {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 34px;
    }

    .login-page .login-mobile-brand strong {
        color: #172033;
    }

    .login-page .login-mobile-brand small {
        color: #71819a;
    }
}

@media (max-width: 560px) {
    .login-page .login-shell {
        align-items: flex-start !important;
        padding: 14px !important;
    }

    .login-page .login-frame {
        border-radius: 20px;
    }

    .login-page .login-form-panel {
        padding: 28px 22px;
    }

    .login-page .auth-card-header h2 {
        font-size: 25px !important;
    }

    .demo-access-values {
        grid-template-columns: 1fr;
    }
}

/* Dashboard student health cards: final light and readable layout */
.dashboard-page .premium-dashboard .heatmap-grid {
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)) !important;
    gap: 16px !important;
}

.dashboard-page .premium-dashboard .health-card {
    isolation: isolate;
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) minmax(72px, auto) !important;
    grid-template-rows: auto auto !important;
    column-gap: 16px !important;
    row-gap: 12px !important;
    align-items: center !important;
    min-height: 132px !important;
    padding: 18px 20px !important;
    overflow: hidden !important;
}

.dashboard-page .premium-dashboard .health-card::before {
    z-index: -1;
    width: 3px !important;
    box-shadow: none !important;
}

.dashboard-page .premium-dashboard .health-card.good {
    color: #07805a !important;
    background: linear-gradient(135deg, #f5fffb 0%, #e8faf3 100%) !important;
}

.dashboard-page .premium-dashboard .health-card.risk {
    color: #a46b00 !important;
    background: linear-gradient(135deg, #fffdf7 0%, #fff3d6 100%) !important;
}

.dashboard-page .premium-dashboard .health-card.critical {
    color: #c43855 !important;
    background: linear-gradient(135deg, #fff8fa 0%, #ffe9ef 100%) !important;
}

.dashboard-page .premium-dashboard .health-avatar {
    grid-column: 1;
    grid-row: 1;
    display: grid !important;
    width: 48px !important;
    height: 48px !important;
    place-items: center !important;
    margin: 0 !important;
    color: currentColor !important;
    background: rgba(255, 255, 255, 0.88) !important;
    border: 1px solid currentColor !important;
    border-radius: 13px !important;
    box-shadow: 0 7px 18px rgba(31, 48, 83, 0.08) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
}

.dashboard-page .premium-dashboard .health-copy {
    grid-column: 2;
    grid-row: 1;
    min-width: 0 !important;
    padding: 0 !important;
}

.dashboard-page .premium-dashboard .health-copy strong {
    display: block !important;
    margin: 0 0 5px !important;
    color: #172033 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    letter-spacing: -0.01em !important;
    overflow-wrap: anywhere;
}

.dashboard-page .premium-dashboard .health-copy small {
    display: block !important;
    color: #60718c !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}

.dashboard-page .premium-dashboard .health-net {
    grid-column: 3;
    grid-row: 1;
    min-width: 72px;
    align-self: center;
    text-align: right !important;
}

.dashboard-page .premium-dashboard .health-net strong {
    display: block !important;
    color: currentColor !important;
    font-size: 19px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
}

.dashboard-page .premium-dashboard .health-net small {
    display: block !important;
    margin-top: 5px !important;
    color: #60718c !important;
    font-size: 12.5px !important;
    line-height: 1.4 !important;
}

.dashboard-page .premium-dashboard .health-reason {
    grid-column: 2 / 4 !important;
    grid-row: 2;
    display: block !important;
    min-width: 0;
    color: #52647f !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.55 !important;
    overflow-wrap: anywhere;
}

@media (max-width: 620px) {
    .dashboard-page .premium-dashboard .heatmap-grid {
        grid-template-columns: 1fr !important;
        padding: 16px !important;
    }

    .dashboard-page .premium-dashboard .health-card {
        grid-template-columns: 46px minmax(0, 1fr) !important;
        grid-template-rows: auto auto auto !important;
        column-gap: 14px !important;
        padding: 17px !important;
    }

    .dashboard-page .premium-dashboard .health-avatar {
        width: 46px !important;
        height: 46px !important;
    }

    .dashboard-page .premium-dashboard .health-net {
        grid-column: 2;
        grid-row: 2;
        display: flex;
        align-items: baseline;
        gap: 7px;
        min-width: 0;
        text-align: left !important;
    }

    .dashboard-page .premium-dashboard .health-net small {
        margin-top: 0 !important;
    }

    .dashboard-page .premium-dashboard .health-reason {
        grid-column: 2;
        grid-row: 3;
    }
}

/* Candidate application details and export */
.candidate-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.candidate-export-button {
    min-height: 38px !important;
    padding: 0 14px !important;
    color: #3f46c8 !important;
    background: #f0f1ff !important;
    border-color: rgba(108, 99, 255, 0.2) !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
}

.candidate-export-button:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, #6c63ff, #12a9dc) !important;
}

.candidate-details {
    margin-top: 14px !important;
    border-top: 1px solid rgba(69, 87, 124, 0.12);
}

.candidate-details > summary {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    color: #4f46d8 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    list-style: none;
    cursor: pointer;
}

.candidate-details > summary::-webkit-details-marker {
    display: none;
}

.candidate-details > summary::before {
    display: inline-grid;
    width: 22px;
    height: 22px;
    place-items: center;
    content: "+";
    color: #4f46d8;
    background: #eeefff;
    border-radius: 7px;
    font-size: 16px;
    line-height: 1;
}

.candidate-details[open] > summary::before {
    content: "−";
}

.candidate-detail-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 4px 0 8px;
}

.candidate-detail-group {
    overflow: hidden;
    border: 1px solid rgba(69, 87, 124, 0.14);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(31, 48, 83, 0.06);
}

.candidate-detail-group h4 {
    margin: 0;
    padding: 12px 14px;
    color: #303c59;
    background: linear-gradient(135deg, #f1f3ff, #eef8ff);
    border-bottom: 1px solid rgba(69, 87, 124, 0.12);
    font-size: 13px !important;
    font-weight: 600 !important;
}

.candidate-detail-group dl {
    margin: 0;
}

.candidate-detail-group dl > div {
    display: grid;
    grid-template-columns: minmax(125px, 0.7fr) minmax(0, 1.3fr);
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(69, 87, 124, 0.09);
}

.candidate-detail-group dl > div:last-child {
    border-bottom: 0;
}

.candidate-detail-group dt,
.candidate-detail-group dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 12.5px !important;
    line-height: 1.5 !important;
}

.candidate-detail-group dt {
    color: #667791;
    font-weight: 500 !important;
}

.candidate-detail-group dd {
    color: #1f2b43;
    font-weight: 500 !important;
}

@media (max-width: 860px) {
    .candidate-header-actions {
        align-items: flex-end;
        flex-direction: column;
    }

    .candidate-detail-groups {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .candidate-list-panel .detail-panel-header {
        align-items: flex-start;
        gap: 12px;
        flex-direction: column;
    }

    .candidate-header-actions {
        width: 100%;
        align-items: stretch;
    }

    .candidate-export-button {
        justify-content: center;
    }

    .candidate-detail-group dl > div {
        grid-template-columns: 1fr;
        gap: 3px;
    }
}

/* Candidate record management */
.candidate-card-actions {
    display: grid;
    gap: 10px;
}

.candidate-status-form {
    display: grid;
    gap: 8px;
}

.candidate-status-save {
    min-height: 38px !important;
    justify-content: center;
    padding: 0 12px !important;
    font-size: 12.5px !important;
}

.candidate-record-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.candidate-record-buttons .button {
    min-height: 38px !important;
    justify-content: center;
    padding: 0 10px !important;
    font-size: 12px !important;
}

.candidate-edit-form {
    grid-column: 1 / -1;
    margin-top: 4px;
    padding: 18px;
    border: 1px solid rgba(108, 99, 255, 0.18);
    border-radius: 15px;
    background: linear-gradient(135deg, #ffffff, #f5f7ff);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.8);
}

.candidate-edit-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.candidate-edit-heading h4 {
    margin: 4px 0 0;
    color: #172033;
    font-size: 18px !important;
    font-weight: 600 !important;
}

.candidate-edit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.candidate-edit-grid .field-wide {
    grid-column: 1 / -1;
}

.candidate-edit-grid .field > span {
    color: #42526d !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
}

.candidate-edit-grid input,
.candidate-edit-grid textarea {
    color: #172033 !important;
    background: #ffffff !important;
    border-color: rgba(69, 87, 124, 0.2) !important;
    font-size: 13px !important;
}

#candidateDeleteModal {
    z-index: 1500;
}

#candidateDeleteModal .confirm-modal {
    color: #172033 !important;
    background: #ffffff !important;
    border-color: rgba(69, 87, 124, 0.16) !important;
    box-shadow: 0 30px 90px rgba(31, 48, 83, 0.22) !important;
}

#candidateDeleteModal .confirm-modal h3,
#candidateDeleteModal .confirm-modal p strong {
    color: #172033 !important;
}

#candidateDeleteModal .confirm-modal p {
    color: #65758d !important;
    font-size: 13px !important;
}

@media (max-width: 760px) {
    .candidate-card-actions {
        grid-column: 1 / -1;
    }

    .candidate-status-form {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .candidate-edit-grid {
        grid-template-columns: 1fr;
    }

    .candidate-edit-grid .field-wide {
        grid-column: auto;
    }
}

@media (max-width: 480px) {
    .candidate-status-form,
    .candidate-record-buttons {
        grid-template-columns: 1fr;
    }

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

/* Candidate actions, task contrast and login education visual */
.candidate-record-buttons .button-danger {
    color: #a92f4a !important;
    border: 1px solid rgba(225, 85, 111, 0.24) !important;
    background: linear-gradient(135deg, #fff4f6, #ffe7ec) !important;
    box-shadow: 0 7px 18px rgba(196, 56, 85, 0.08) !important;
    font-weight: 600 !important;
}

.candidate-record-buttons .button-danger:hover {
    color: #ffffff !important;
    border-color: #d94f69 !important;
    background: linear-gradient(135deg, #df6178, #c63d59) !important;
    box-shadow: 0 10px 24px rgba(196, 56, 85, 0.2) !important;
}

.tasks-module .task-card-module {
    background: #ffffff !important;
    border-color: rgba(69, 87, 124, 0.16) !important;
}

.tasks-module .task-card-module.overdue {
    background: linear-gradient(135deg, #fffafb, #ffffff) !important;
    border-color: rgba(225, 85, 111, 0.24) !important;
}

.tasks-module .task-card-module h3 {
    color: #1d2940 !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
}

.tasks-module .task-card-module > p {
    min-height: 44px;
    color: #52647f !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.65 !important;
}

.tasks-module .task-subject,
.tasks-module .overdue-badge,
.tasks-module .mini-status {
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    padding: 4px 9px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
}

.tasks-module .task-subject {
    color: #554bd4 !important;
    background: #eeefff !important;
}

.tasks-module .overdue-badge {
    color: #c43855 !important;
    background: #fff0f3 !important;
}

.tasks-module .task-student-row {
    border-color: rgba(69, 87, 124, 0.12) !important;
}

.tasks-module .task-student-row strong {
    color: #263650 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

.tasks-module .task-student-row small {
    color: #65758d !important;
    font-size: 12px !important;
}

.tasks-module .task-student-row time {
    color: #60718c !important;
    font-size: 11.5px !important;
}

.tasks-module .task-status-actions button {
    min-height: 38px !important;
    color: #52647f !important;
    border-color: rgba(69, 87, 124, 0.18) !important;
    background: #ffffff !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
}

.tasks-module .task-status-actions .active.pending {
    color: #a66b00 !important;
    border-color: rgba(225, 166, 37, 0.28) !important;
    background: #fff8e8 !important;
}

.tasks-module .task-status-actions .active.completed {
    color: #087853 !important;
    border-color: rgba(19, 185, 129, 0.24) !important;
    background: #eafbf4 !important;
}

.tasks-module .task-status-actions .active.cancelled {
    color: #a92f4a !important;
    border-color: rgba(225, 85, 111, 0.22) !important;
    background: #fff0f3 !important;
}

.login-page .login-brand-panel {
    background-image:
        linear-gradient(180deg, rgba(10, 25, 58, 0.36) 0%, rgba(10, 25, 58, 0.52) 42%, rgba(10, 25, 58, 0.94) 100%),
        linear-gradient(90deg, rgba(15, 32, 72, 0.68), rgba(15, 32, 72, 0.15)),
        url("../images/nexora-login-tyt-ayt.webp") !important;
    background-position: center, center, center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
}

.login-page .login-brand-panel::after {
    right: -190px !important;
    bottom: -210px !important;
    opacity: 0.55;
}

.login-page .login-brand {
    padding: 10px 13px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 15px;
    background: rgba(10, 25, 58, 0.3);
    backdrop-filter: blur(10px);
}

.login-page .login-brand-copy {
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    background: rgba(10, 25, 58, 0.5);
    backdrop-filter: blur(13px);
    box-shadow: 0 20px 50px rgba(4, 12, 30, 0.18);
}

.login-page .login-brand-copy h1 {
    font-size: clamp(32px, 3vw, 47px) !important;
}

.login-page .login-brand-copy p {
    color: rgba(245, 248, 255, 0.86) !important;
}

.login-page .login-feature-grid article {
    background: rgba(10, 25, 58, 0.58) !important;
}

/* NEXORA brand system */
.nexora-sidebar-brand {
    display: flex !important;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    align-items: flex-start !important;
    gap: 4px !important;
}

.nexora-sidebar-brand .nexora-wordmark {
    display: block;
    width: 144px;
    max-width: 100%;
    height: 26px;
    object-fit: contain;
    object-position: left center;
}

.sidebar-institution-name {
    display: block;
    max-width: 158px;
    overflow: hidden;
    color: rgba(222, 231, 247, 0.66);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-institution-logo {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    overflow: hidden;
    margin-left: 8px;
    border: 1px solid rgba(69, 87, 124, 0.15);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(31, 48, 83, 0.08);
}

.sidebar-institution-logo img {
    display: block;
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.login-page .nexora-login-wordmark {
    display: block;
    width: 184px;
    height: auto;
    object-fit: contain;
}

.login-page .login-brand {
    min-height: 54px;
}

.login-page .login-brand .nexora-login-wordmark-white {
    filter: drop-shadow(0 7px 18px rgba(0, 0, 0, 0.2));
}

.login-page .login-mobile-brand {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
}

.login-page .login-mobile-brand .nexora-login-wordmark {
    width: 154px;
}

.login-page .login-mobile-brand > small {
    color: #71819a !important;
    font-size: 10px !important;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.nexora-install-brand img {
    display: block;
    width: 196px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.22));
}

.nexora-parent-brand {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start !important;
    gap: 4px !important;
}

.nexora-parent-brand img {
    display: block;
    width: 150px;
    height: auto;
    object-fit: contain;
}

.nexora-parent-brand small {
    margin: 0 !important;
    color: #65758d !important;
    font-size: 9px !important;
    font-weight: 600;
    letter-spacing: 0.14em;
}

.report-nexora-logo {
    display: block;
    width: 112px;
    height: auto;
    margin-bottom: 12px;
    object-fit: contain;
}

.nexora-brand-kit {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: center;
    gap: 22px;
    margin-bottom: 16px;
    padding: 18px !important;
    color: #172033 !important;
    background: linear-gradient(135deg, #ffffff, #f3f5ff) !important;
    border-color: rgba(108, 99, 255, 0.16) !important;
}

.nexora-brand-kit > img {
    display: block;
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 1px solid rgba(69, 87, 124, 0.12);
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(31, 48, 83, 0.1);
}

.nexora-brand-kit h3 {
    margin: 6px 0 7px;
    color: #172033 !important;
    font-size: 20px !important;
    font-weight: 600 !important;
}

.nexora-brand-kit p {
    max-width: 720px;
    margin: 0;
    color: #586a86 !important;
    font-size: 13px !important;
    line-height: 1.65 !important;
}

@media (max-width: 560px) {
    .nexora-brand-kit {
        grid-template-columns: 1fr;
    }

    .nexora-brand-kit > img {
        width: 120px;
        height: 120px;
    }
}

@media print {
    .report-nexora-logo {
        width: 96px;
    }
}

/* Dashboard coaching pulse rebuild */
.dashboard-page .premium-dashboard .coaching-pulse-panel {
    overflow: hidden;
    padding-bottom: 20px;
    background: #ffffff !important;
}

.dashboard-page .premium-dashboard .coaching-pulse-header {
    gap: 24px;
    padding: 22px 24px 20px !important;
    border-bottom: 1px solid rgba(69, 87, 124, 0.12) !important;
}

.dashboard-page .premium-dashboard .coaching-pulse-header h3 {
    margin: 5px 0 4px;
    color: #172033 !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

.dashboard-page .premium-dashboard .coaching-pulse-header p {
    color: #586a86 !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
}

.dashboard-page .premium-dashboard .coaching-pulse-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
    padding: 20px 22px 2px !important;
}

.dashboard-page .premium-dashboard .coaching-pulse-column {
    display: block !important;
    min-width: 0;
    min-height: 230px;
    padding: 17px !important;
    overflow: hidden;
    border: 1px solid rgba(69, 87, 124, 0.13) !important;
    border-radius: 17px !important;
    background: #f8faff !important;
    box-shadow: 0 10px 26px rgba(31, 48, 83, 0.06);
}

.dashboard-page .premium-dashboard .coaching-pulse-column:nth-child(1) {
    background: linear-gradient(145deg, #fffdf7, #fff9eb) !important;
    border-color: rgba(225, 166, 37, 0.2) !important;
}

.dashboard-page .premium-dashboard .coaching-pulse-column:nth-child(2) {
    background: linear-gradient(145deg, #faf9ff, #f1f0ff) !important;
    border-color: rgba(108, 99, 255, 0.18) !important;
}

.dashboard-page .premium-dashboard .coaching-pulse-column:nth-child(3) {
    background: linear-gradient(145deg, #fffafb, #fff0f3) !important;
    border-color: rgba(225, 85, 111, 0.18) !important;
}

.dashboard-page .premium-dashboard .pulse-column-title {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center !important;
    gap: 12px !important;
    min-height: 54px;
    margin: 0 0 12px !important;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(69, 87, 124, 0.1);
}

.dashboard-page .premium-dashboard .pulse-column-title .pulse-icon {
    width: 42px !important;
    height: 42px !important;
    border-radius: 12px !important;
}

.dashboard-page .premium-dashboard .pulse-column-title strong {
    display: block !important;
    color: #202c44 !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
}

.dashboard-page .premium-dashboard .pulse-column-title small {
    display: block !important;
    margin-top: 3px;
    color: #65758d !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
}

.dashboard-page .premium-dashboard .pulse-list {
    display: grid !important;
    gap: 7px;
}

.dashboard-page .premium-dashboard .pulse-list > a {
    display: grid !important;
    min-height: 58px !important;
    grid-template-columns: 34px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 8px 9px !important;
    color: #263650 !important;
    border: 1px solid rgba(69, 87, 124, 0.09) !important;
    border-radius: 11px !important;
    background: rgba(255, 255, 255, 0.72) !important;
}

.dashboard-page .premium-dashboard .pulse-list > a:hover {
    transform: translateX(2px);
    border-color: rgba(108, 99, 255, 0.22) !important;
    background: #ffffff !important;
    box-shadow: 0 8px 20px rgba(31, 48, 83, 0.07);
}

.dashboard-page .premium-dashboard .pulse-avatar,
.dashboard-page .premium-dashboard .pulse-rank {
    display: grid !important;
    width: 34px !important;
    height: 34px !important;
    place-items: center !important;
    color: #554bd4 !important;
    border: 1px solid rgba(108, 99, 255, 0.18) !important;
    border-radius: 10px !important;
    background: #eeefff !important;
    font-size: 10px !important;
    font-weight: 600 !important;
}

.dashboard-page .premium-dashboard .pulse-list span strong {
    display: block !important;
    overflow: hidden;
    color: #263650 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-page .premium-dashboard .pulse-list span small {
    display: block !important;
    overflow: hidden;
    margin-top: 2px;
    color: #65758d !important;
    font-size: 11.5px !important;
    line-height: 1.45 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-page .premium-dashboard .pulse-list > a > b {
    color: #554bd4 !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    text-align: right;
}

.dashboard-page .premium-dashboard .pulse-list > a > b small {
    display: block !important;
    margin-top: 2px;
    color: #71819a !important;
    font-size: 10.5px !important;
    font-weight: 400 !important;
}

.dashboard-page .premium-dashboard .risk-dot {
    width: 10px !important;
    height: 10px !important;
    box-shadow: 0 0 0 5px currentColor !important;
    opacity: 0.78;
}

.dashboard-page .premium-dashboard .pulse-empty {
    display: grid;
    min-height: 112px;
    place-items: center;
    padding: 18px !important;
    color: #65758d !important;
    border: 1px dashed rgba(69, 87, 124, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.55) !important;
    font-size: 12.5px !important;
    line-height: 1.55 !important;
}

@media (max-width: 1250px) {
    .dashboard-page .premium-dashboard .coaching-pulse-grid {
        grid-template-columns: 1fr !important;
    }

    .dashboard-page .premium-dashboard .coaching-pulse-column {
        min-height: 0;
    }
}

@media (max-width: 680px) {
    .dashboard-page .premium-dashboard .coaching-pulse-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-page .premium-dashboard .coaching-pulse-header .text-button {
        width: 100%;
        justify-content: center;
    }

    .dashboard-page .premium-dashboard .coaching-pulse-grid {
        padding: 14px 14px 0 !important;
    }

    .dashboard-page .premium-dashboard .coaching-pulse-column {
        padding: 14px !important;
    }
}

/* Final readability and interaction fixes */
.dashboard-page .premium-dashboard .alerts-panel .alert-item {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) auto !important;
    align-items: center !important;
    column-gap: 13px !important;
    min-height: 62px !important;
    padding: 9px 8px !important;
}

.dashboard-page .premium-dashboard .alerts-panel .alert-symbol {
    display: grid !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    margin: 0 !important;
    place-items: center !important;
}

.dashboard-page .premium-dashboard .alerts-panel .alert-copy {
    display: block !important;
    min-width: 0 !important;
    padding: 0 !important;
}

.dashboard-page .premium-dashboard .alerts-panel .alert-copy strong,
.dashboard-page .premium-dashboard .alerts-panel .alert-copy small {
    display: block !important;
}

.dashboard-page .premium-dashboard .alerts-panel .alert-copy strong {
    margin-bottom: 3px !important;
    color: #263650 !important;
    font-size: 13.5px !important;
    line-height: 1.35 !important;
}

.dashboard-page .premium-dashboard .alerts-panel .alert-copy small {
    color: #65758d !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
}

.dashboard-page .premium-dashboard .alerts-panel .alert-meta {
    min-width: 72px;
    padding-left: 8px !important;
    color: #71819a !important;
    font-size: 11.5px !important;
    line-height: 1.35 !important;
    text-align: right !important;
    white-space: nowrap;
}

.directory-module table.table-secondary tbody td:first-child strong,
.directory-module table.table-secondary tbody td:first-child small,
.directory-module table.table-secondary tbody td:nth-child(2) span,
.directory-module table.table-secondary tbody td:nth-child(2) small,
.directory-module table.table-secondary tbody td:nth-child(3) span,
.directory-module table.table-secondary tbody td:nth-child(3) small {
    display: block !important;
}

.directory-module table.table-secondary tbody td:first-child strong {
    margin-bottom: 5px !important;
    color: #263650 !important;
    font-size: 13.5px !important;
    line-height: 1.35 !important;
}

.directory-module table.table-secondary tbody td:first-child small {
    color: #71819a !important;
    font-size: 11.5px !important;
    line-height: 1.35 !important;
}

.directory-module table.table-secondary tbody td:nth-child(2) span,
.directory-module table.table-secondary tbody td:nth-child(3) span {
    margin-bottom: 5px !important;
    color: #34445e !important;
    font-size: 12.5px !important;
    line-height: 1.4 !important;
}

.directory-module table.table-secondary tbody td:nth-child(2) small,
.directory-module table.table-secondary tbody td:nth-child(3) small {
    color: #65758d !important;
    font-size: 11.5px !important;
    line-height: 1.4 !important;
    overflow-wrap: anywhere;
}

.coaching-history-list .coaching-note-head {
    grid-template-columns: 54px minmax(0, 1fr) auto !important;
    gap: 14px !important;
}

.coaching-history-list .coaching-date {
    display: grid !important;
    width: 54px !important;
    min-width: 54px !important;
    height: 54px !important;
    padding: 6px 4px !important;
    place-items: center !important;
    align-content: center !important;
    overflow: hidden !important;
}

.coaching-history-list .coaching-date strong {
    font-size: 14px !important;
    line-height: 1.05 !important;
}

.coaching-history-list .coaching-date small {
    margin-top: 3px !important;
    font-size: 10.5px !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
}

#studyModal.visible {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

@media (max-width: 680px) {
    .dashboard-page .premium-dashboard .alerts-panel .alert-item {
        grid-template-columns: 42px minmax(0, 1fr) !important;
    }

    .dashboard-page .premium-dashboard .alerts-panel .alert-meta {
        grid-column: 2;
        min-width: 0;
        padding: 0 !important;
        text-align: left !important;
    }

    .directory-module table.table-secondary tbody td {
        min-width: 150px;
    }
}

/* Finance module readability rebuild */
.finance-module .finance-trust-badge,
.finance-module .panel-count,
.finance-module .payment-status {
    display: inline-flex !important;
    min-height: 30px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    padding: 6px 11px !important;
    border-radius: 9px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
}

.finance-module .finance-history-grid {
    align-items: stretch;
    gap: 16px !important;
}

.finance-module .student-finance-panel,
.finance-module .transaction-history-panel,
.finance-module .recent-collections-panel {
    padding: 22px !important;
}

.finance-module .student-finance-panel .detail-panel-header,
.finance-module .transaction-history-panel .detail-panel-header,
.finance-module .recent-collections-panel .detail-panel-header {
    min-height: 72px;
    gap: 18px !important;
    padding-bottom: 17px !important;
    border-bottom: 1px solid rgba(69, 87, 124, 0.11);
}

.finance-module .student-finance-panel .detail-panel-header select {
    min-width: 132px;
    min-height: 38px !important;
    padding: 0 34px 0 12px !important;
    color: #34445e !important;
    border-color: rgba(69, 87, 124, 0.2) !important;
    background-color: #f8faff !important;
    font-size: 13px !important;
}

.finance-module .payment-plan-list,
.finance-module .transaction-list,
.finance-module .recent-collection-list {
    margin-top: 4px !important;
}

.finance-module .payment-plan-list > a {
    display: grid !important;
    min-height: 72px !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(112px, auto) !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 10px 0 !important;
}

.finance-module .payment-plan-list > a > span:first-child {
    display: block;
    min-width: 0;
}

.finance-module .payment-plan-list > a > span:first-child strong {
    display: block !important;
    margin-bottom: 4px !important;
    color: #263650 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
}

.finance-module .payment-plan-list > a > span:first-child small,
.finance-module .payment-plan-list > a > b small {
    display: block !important;
    color: #65758d !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
}

.finance-module .payment-plan-list > a > b {
    color: #34445e !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    text-align: right !important;
}

.finance-module .payment-status.paid {
    color: #087a55 !important;
    background: #e5f9f1 !important;
    border: 1px solid #bdebd9;
}

.finance-module .payment-status.partial {
    color: #08779a !important;
    background: #e6f8fd !important;
    border: 1px solid #bce9f5;
}

.finance-module .payment-status.pending {
    color: #996400 !important;
    background: #fff5dc !important;
    border: 1px solid #f4ddb0;
}

.finance-module .payment-status.overdue {
    color: #b62f4b !important;
    background: #fff0f3 !important;
    border: 1px solid #f4cbd4;
}

.finance-module .transaction-list > article {
    display: grid !important;
    min-height: 72px !important;
    grid-template-columns: 42px minmax(190px, 0.85fr) minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 13px !important;
    padding: 10px 0 !important;
}

.finance-module .transaction-icon {
    display: grid !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    place-items: center !important;
    border: 1px solid #bdebd9;
    border-radius: 11px !important;
    color: #0a9c6c !important;
    background: #e8faf3 !important;
}

.finance-module .transaction-list strong {
    display: block !important;
    margin-bottom: 3px !important;
    color: #263650 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
}

.finance-module .transaction-list small {
    display: block !important;
    color: #65758d !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
}

.finance-module .transaction-list p {
    margin: 0 !important;
    color: #52647f !important;
    font-size: 12.5px !important;
    line-height: 1.5 !important;
}

.finance-module .recent-collection-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 22px !important;
}

.finance-module .recent-collection-list > article {
    display: grid !important;
    min-height: 72px !important;
    grid-template-columns: 44px minmax(0, 1fr) minmax(100px, auto) !important;
    align-items: center !important;
    gap: 13px !important;
    padding: 10px 0 !important;
}

.finance-module .recent-collection-list .summary-icon {
    display: grid !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    margin: 0 !important;
    place-items: center !important;
}

.finance-module .recent-collection-list > article > span:nth-child(2) {
    display: block;
    min-width: 0;
}

.finance-module .recent-collection-list strong,
.finance-module .recent-collection-list small {
    display: block !important;
}

.finance-module .recent-collection-list strong {
    margin-bottom: 3px !important;
    color: #263650 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
}

.finance-module .recent-collection-list small {
    color: #65758d !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
}

.finance-module .recent-collection-list b {
    color: #07895f !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    text-align: right;
    white-space: nowrap;
}

.finance-module .debtor-list > a,
.finance-module .due-list > a {
    min-height: 66px !important;
    gap: 12px !important;
    padding: 8px 0 !important;
}

.finance-module .debtor-list strong,
.finance-module .due-list > a > span strong {
    color: #263650 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

.finance-module .debtor-list small,
.finance-module .due-list > a > span small {
    color: #65758d !important;
    font-size: 12px !important;
}

.finance-module .debtor-list b,
.finance-module .due-list > a > b {
    color: #34445e !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

.finance-module .due-list time {
    width: 44px !important;
    height: 48px !important;
}

.finance-module .due-list time strong {
    font-size: 13px !important;
}

.finance-module .due-list time small {
    font-size: 10.5px !important;
}

.finance-module .monthly-finance-chart strong,
.finance-module .monthly-finance-chart small,
.finance-module .monthly-finance-chart em {
    line-height: 1.35 !important;
}

.finance-module .monthly-finance-chart strong {
    color: #34445e !important;
    font-size: 11px !important;
}

.finance-module .monthly-finance-chart small {
    color: #65758d !important;
    font-size: 10.5px !important;
}

.finance-module .monthly-finance-chart em {
    color: #71819a !important;
    font-size: 10px !important;
}

/* Shared minimum sizes for badge-like controls */
.dashboard-content .panel-count,
.dashboard-content .status-pill,
.dashboard-content .risk-badge,
.dashboard-content .record-status,
.dashboard-content .lesson-status,
.dashboard-content .queue-status,
.dashboard-content .capacity-badge,
.dashboard-content .overdue-badge,
.dashboard-content .task-subject,
.dashboard-content .mini-status,
.dashboard-content .integration-badge,
.dashboard-content .live-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    min-height: 28px !important;
    padding: 5px 10px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

.dashboard-content small {
    font-size: 12px !important;
    line-height: 1.5 !important;
}

@media (max-width: 900px) {
    .finance-module .recent-collection-list {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 640px) {
    .finance-module .student-finance-panel,
    .finance-module .transaction-history-panel,
    .finance-module .recent-collections-panel {
        padding: 16px !important;
    }

    .finance-module .student-finance-panel .detail-panel-header,
    .finance-module .transaction-history-panel .detail-panel-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .finance-module .student-finance-panel .detail-panel-header form,
    .finance-module .student-finance-panel .detail-panel-header select {
        width: 100%;
    }

    .finance-module .payment-plan-list > a {
        grid-template-columns: minmax(0, 1fr) auto !important;
    }

    .finance-module .payment-plan-list > a > b {
        grid-column: 1 / -1;
        text-align: left !important;
    }

    .finance-module .transaction-list > article {
        grid-template-columns: 42px minmax(0, 1fr) !important;
    }

    .finance-module .transaction-list p {
        grid-column: 2;
    }

    .finance-module .recent-collection-list > article {
        grid-template-columns: 44px minmax(0, 1fr) !important;
    }

    .finance-module .recent-collection-list b {
        grid-column: 2;
        text-align: left;
    }
}

/* Dashboard, filters, attendance and etude refinements */
.dashboard-page .performance-panel .chart-summary {
    display: flex !important;
    flex-wrap: wrap;
    gap: 34px !important;
    padding: 18px 23px 8px !important;
}

.dashboard-page .performance-panel .chart-summary div {
    min-width: 72px;
}

.dashboard-page .performance-panel .chart-summary strong {
    display: block !important;
    margin-bottom: 5px !important;
    color: #1c2940 !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
}

.dashboard-page .performance-panel .chart-summary strong.positive {
    color: #08a978 !important;
}

.dashboard-page .performance-panel .chart-summary span {
    display: block !important;
    color: #65758d !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
}

.dashboard-page .performance-panel .chart-legend {
    gap: 14px !important;
    color: #52647f !important;
    font-size: 12px !important;
}

.dashboard-page .performance-panel .chart-legend span {
    gap: 7px !important;
}

.dashboard-page .performance-panel .chart-legend i {
    width: 9px !important;
    height: 9px !important;
}

.dashboard-page .performance-panel .canvas-wrap {
    min-height: 285px;
    padding: 14px 22px 22px !important;
}

.notifications-module .notification-toolbar,
.attendance-module .attendance-picker {
    display: grid !important;
    align-items: end !important;
    gap: 14px !important;
    padding: 18px !important;
    border: 1px solid rgba(69, 87, 124, 0.14) !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, 0.94) !important;
    box-shadow: 0 12px 32px rgba(31, 48, 83, 0.08) !important;
}

.notifications-module .notification-toolbar {
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 0.7fr) auto auto !important;
}

.attendance-module .attendance-picker {
    grid-template-columns: minmax(240px, 1fr) minmax(190px, 0.55fr) auto !important;
}

.notifications-module .notification-toolbar .field,
.attendance-module .attendance-picker .field {
    gap: 7px !important;
}

.notifications-module .notification-toolbar .field > span,
.attendance-module .attendance-picker .field > span {
    color: #465873 !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

.notifications-module .notification-toolbar select,
.attendance-module .attendance-picker select,
.attendance-module .attendance-picker input {
    width: 100%;
    min-height: 44px !important;
    padding-right: 38px !important;
    color: #263650 !important;
    border: 1px solid rgba(69, 87, 124, 0.2) !important;
    border-radius: 11px !important;
    background-color: #f8faff !important;
    font-size: 13.5px !important;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.notifications-module .notification-toolbar select:hover,
.attendance-module .attendance-picker select:hover,
.attendance-module .attendance-picker input:hover {
    border-color: rgba(95, 85, 238, 0.42) !important;
    background: #ffffff !important;
}

.notifications-module .notification-toolbar select:focus,
.attendance-module .attendance-picker select:focus,
.attendance-module .attendance-picker input:focus {
    border-color: #6c63ff !important;
    box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.11) !important;
    outline: 0 !important;
}

.notifications-module .notification-toolbar .button,
.attendance-module .attendance-picker .button {
    min-height: 44px !important;
    padding: 9px 18px !important;
}

.dashboard-content .button,
.dashboard-content button,
.dashboard-content .text-button,
.dashboard-content .filter-reset {
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease !important;
}

.dashboard-content .button:hover,
.dashboard-content button:hover,
.dashboard-content .text-button:hover,
.dashboard-content .filter-reset:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(31, 48, 83, 0.14) !important;
}

.dashboard-content .button-primary:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, #5148df 0%, #079bcf 100%) !important;
}

.dashboard-content .button-secondary:hover,
.dashboard-content .filter-reset:hover {
    color: #4f46d8 !important;
    border-color: rgba(95, 85, 238, 0.36) !important;
    background: #f1f0ff !important;
}

.attendance-module .attendance-student-row {
    min-height: 76px !important;
    grid-template-columns: 42px minmax(180px, 0.9fr) minmax(330px, 1.35fr) minmax(180px, 0.8fr) !important;
    gap: 14px !important;
    padding: 10px 5px !important;
}

.attendance-module .attendance-student strong {
    display: block !important;
    margin-bottom: 3px !important;
    color: #263650 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
}

.attendance-module .attendance-student small {
    display: block !important;
    color: #65758d !important;
    font-size: 12.5px !important;
    line-height: 1.45 !important;
}

.attendance-module .attendance-options {
    gap: 8px !important;
}

.attendance-module .attendance-options span {
    min-height: 42px !important;
    padding: 7px 10px !important;
    color: #465873 !important;
    border-color: rgba(69, 87, 124, 0.18) !important;
    border-radius: 10px !important;
    background: #f8faff !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease, background 150ms ease !important;
}

.attendance-module .attendance-options label:hover span {
    transform: translateY(-2px);
    color: #342bc4 !important;
    border-color: rgba(108, 99, 255, 0.4) !important;
    background: #f1f0ff !important;
    box-shadow: 0 8px 18px rgba(31, 48, 83, 0.1);
}

.attendance-module .attendance-options .geldi input:checked + span {
    color: #087a55 !important;
    border-color: #8fdcc2 !important;
    background: #e8faf3 !important;
    box-shadow: 0 0 0 3px rgba(46, 229, 157, 0.09);
}

.attendance-module .attendance-options .gec_geldi input:checked + span {
    color: #966000 !important;
    border-color: #edd08d !important;
    background: #fff6df !important;
    box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.1);
}

.attendance-module .attendance-options .gelmedi input:checked + span {
    color: #b62f4b !important;
    border-color: #efb2bf !important;
    background: #fff0f3 !important;
    box-shadow: 0 0 0 3px rgba(255, 92, 122, 0.08);
}

.attendance-module .attendance-note {
    min-height: 42px !important;
    padding: 8px 12px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
}

.attendance-module .attendance-bulk-actions > button:first-child {
    min-height: 40px !important;
    padding: 8px 12px !important;
    color: #087a55 !important;
    border: 1px solid #bdebd9 !important;
    border-radius: 10px !important;
    background: #e8faf3 !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
}

.attendance-module .attendance-bulk-actions > button:first-child:hover {
    color: #056344 !important;
    border-color: #83d7ba !important;
    background: #d9f6eb !important;
}

.etude-list-panel .etude-card {
    min-height: 84px !important;
    grid-template-columns: 56px minmax(0, 1fr) 72px !important;
    gap: 13px !important;
    padding: 11px !important;
}

.etude-list-panel .etude-date {
    display: grid !important;
    width: 54px !important;
    min-width: 54px !important;
    height: 56px !important;
    padding: 6px 4px !important;
    place-items: center !important;
    align-content: center !important;
    overflow: hidden !important;
    border: 1px solid rgba(108, 99, 255, 0.16);
    border-radius: 12px !important;
    background: #f0efff !important;
}

.etude-list-panel .etude-date strong {
    color: #3f36c5 !important;
    font-size: 14px !important;
    line-height: 1.05 !important;
}

.etude-list-panel .etude-date small {
    margin-top: 4px !important;
    color: #65758d !important;
    font-size: 10.5px !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
}

.etude-list-panel .etude-card > span:nth-child(2) strong {
    color: #263650 !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
}

.etude-list-panel .etude-card > span:nth-child(2) small,
.etude-list-panel .etude-capacity small {
    color: #65758d !important;
    font-size: 11.5px !important;
    line-height: 1.45 !important;
}

.etude-list-panel .etude-capacity strong {
    color: #08779a !important;
    font-size: 13px !important;
}

.etude-list-panel .etude-card:hover {
    transform: translateY(-2px);
    border-color: rgba(108, 99, 255, 0.38) !important;
    background: #f8f7ff !important;
    box-shadow: 0 10px 24px rgba(31, 48, 83, 0.1);
}

@media (max-width: 900px) {
    .notifications-module .notification-toolbar,
    .attendance-module .attendance-picker {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .attendance-module .attendance-student-row {
        grid-template-columns: 42px minmax(0, 1fr) !important;
    }

    .attendance-module .attendance-options,
    .attendance-module .attendance-note {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .notifications-module .notification-toolbar,
    .attendance-module .attendance-picker {
        grid-template-columns: 1fr !important;
    }

    .notifications-module .notification-toolbar .button,
    .attendance-module .attendance-picker .button {
        width: 100%;
    }

    .attendance-module .attendance-options {
        grid-template-columns: 1fr !important;
    }

    .etude-list-panel .etude-card {
        grid-template-columns: 54px minmax(0, 1fr) !important;
    }

    .etude-list-panel .etude-capacity {
        grid-column: 2;
        text-align: left;
    }
}

/* Mobile navigation and dashboard hardening */
@media (max-width: 920px) {
    .topbar {
        z-index: 900 !important;
    }

    .menu-toggle {
        position: relative !important;
        z-index: 950 !important;
        display: grid !important;
        width: 44px !important;
        min-width: 44px !important;
        height: 44px !important;
        padding: 0 !important;
        place-items: center !important;
        color: #263650 !important;
        border: 1px solid rgba(69, 87, 124, 0.2) !important;
        border-radius: 12px !important;
        background: #ffffff !important;
        box-shadow: 0 8px 20px rgba(31, 48, 83, 0.1) !important;
        pointer-events: auto !important;
        touch-action: manipulation;
    }

    .menu-toggle:hover,
    .menu-toggle:focus-visible {
        color: #4f46d8 !important;
        border-color: rgba(95, 85, 238, 0.4) !important;
        background: #f1f0ff !important;
        outline: none;
    }

    .sidebar {
        z-index: 1300 !important;
        width: min(300px, 86vw) !important;
        visibility: hidden;
        transform: translate3d(-105%, 0, 0) !important;
        transition: transform 210ms ease, visibility 210ms ease !important;
        box-shadow: 22px 0 60px rgba(31, 48, 83, 0.22) !important;
    }

    .sidebar.open {
        visibility: visible !important;
        transform: translate3d(0, 0, 0) !important;
    }

    .sidebar-overlay {
        z-index: 1200 !important;
        display: block !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .sidebar-overlay.visible {
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .sidebar-close {
        display: grid !important;
        width: 42px !important;
        min-width: 42px !important;
        height: 42px !important;
        place-items: center !important;
        color: #263650 !important;
        border-color: rgba(69, 87, 124, 0.18) !important;
        background: #f5f7ff !important;
        pointer-events: auto !important;
        touch-action: manipulation;
    }

    body.sidebar-open {
        overflow: hidden !important;
        overscroll-behavior: contain;
    }

    .sidebar .nav-item {
        min-height: 46px !important;
        font-size: 13px !important;
        touch-action: manipulation;
    }
}

@media (max-width: 680px) {
    .topbar {
        height: 72px !important;
        gap: 10px;
        padding: 0 12px !important;
    }

    .topbar-left {
        min-width: 0;
        flex: 1;
        gap: 10px !important;
    }

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

    .topbar-left .eyebrow {
        display: none;
    }

    .topbar-left h1 {
        max-width: none !important;
        margin: 0 !important;
        overflow: hidden;
        font-size: 14px !important;
        line-height: 1.35 !important;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .topbar-actions {
        flex: 0 0 auto;
        gap: 6px !important;
    }

    .notification-button,
    .profile-button {
        width: 42px !important;
        min-width: 42px !important;
        height: 42px !important;
        padding: 0 !important;
    }

    .dashboard-content {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        padding: 16px 12px 34px !important;
    }

    .dashboard-hero,
    .module-hero {
        padding: 20px 18px !important;
        border-radius: 18px !important;
    }

    .dashboard-hero .welcome-actions,
    .module-hero .welcome-actions {
        width: 100%;
    }

    .dashboard-hero .welcome-actions .button,
    .module-hero .welcome-actions .button {
        min-width: 0;
    }

    .stats-grid-premium,
    .student-summary-grid,
    .finance-summary-grid,
    .lesson-summary-grid,
    .etude-summary-grid,
    .study-summary-grid,
    .attendance-summary-grid,
    .notification-summary-grid,
    .exam-summary-grid,
    .task-summary-grid,
    .coaching-summary-grid {
        grid-template-columns: 1fr !important;
    }

    .stats-grid-premium .stat-card {
        min-height: 150px !important;
    }

    .panel,
    .chart-panel,
    .alerts-panel {
        min-width: 0;
        max-width: 100%;
    }

    .dashboard-page .performance-panel .canvas-wrap {
        min-height: 240px;
        padding-inline: 8px !important;
    }
}

@media (max-width: 430px) {
    .profile-button {
        display: none !important;
    }

    .topbar-left h1 {
        font-size: 13px !important;
    }

    .dashboard-hero .welcome-actions,
    .module-hero .welcome-actions {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }
}

/* Final coaching pulse override - keep at EOF */
.dashboard-page .premium-dashboard .coaching-pulse-panel {
    overflow: hidden !important;
    padding-bottom: 0 !important;
}

.dashboard-page .premium-dashboard .coaching-pulse-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 14px !important;
    padding: 18px 22px 22px !important;
}

.dashboard-page .premium-dashboard .coaching-pulse-column {
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 15px !important;
}

.dashboard-page .premium-dashboard .coaching-pulse-column .pulse-list {
    min-height: 0 !important;
    align-content: start !important;
}

.dashboard-page .premium-dashboard .coaching-pulse-column .pulse-empty {
    display: flex !important;
    min-height: 74px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 14px !important;
    color: #65758d !important;
    border: 1px dashed rgba(69, 87, 124, 0.2) !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.72) !important;
    font-size: 12.5px !important;
    line-height: 1.5 !important;
    text-align: center !important;
}

.dashboard-page .premium-dashboard .coaching-pulse-column .pulse-empty::before,
.dashboard-page .premium-dashboard .coaching-pulse-column .pulse-empty::after {
    display: none !important;
    content: none !important;
}

@media (max-width: 1100px) {
    .dashboard-page .premium-dashboard .coaching-pulse-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Final role and parent portal layer - true EOF */
.permission-matrix-panel {
    padding: 22px !important;
    background: rgba(255, 255, 255, 0.96) !important;
}

.permission-matrix-panel .permission-matrix-scroll {
    overflow-x: auto !important;
    border: 1px solid #e2e7f0 !important;
    border-radius: 16px !important;
    background: #fff !important;
}

.permission-matrix-panel .permission-matrix-table {
    width: 100% !important;
    min-width: 820px !important;
    background: #fff !important;
}

.permission-matrix-panel .permission-matrix-table th,
.permission-matrix-panel .permission-matrix-table td {
    color: #2b3951 !important;
    font-size: 12.5px !important;
}

.parent-portal .parent-insight-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px !important;
    margin-bottom: 18px !important;
}

.parent-portal .parent-insight-grid article {
    display: flex !important;
    min-height: 128px !important;
    gap: 12px !important;
    padding: 18px !important;
    background: rgba(255, 255, 255, 0.96) !important;
}

.parent-portal .parent-insight-grid small,
.parent-portal .parent-student-grid small,
.parent-portal .parent-student-grid p,
.parent-portal .parent-notification-list p,
.parent-portal .parent-notification-list small {
    color: #687791 !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
}

.parent-portal .parent-insight-grid strong {
    color: #17223a !important;
    font-size: 19px !important;
}

.parent-portal .parent-student-grid strong,
.parent-portal .parent-notification-list strong {
    color: #263650 !important;
    font-size: 14px !important;
}

@media (max-width: 1100px) {
    .parent-portal .parent-insight-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 680px) {
    .permission-matrix-panel {
        padding: 16px !important;
    }

    .parent-portal .parent-insight-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Linked account controls */
.icon-password-toggle {
    display: grid !important;
    width: 40px !important;
    height: 40px !important;
    place-items: center !important;
    padding: 0 !important;
    color: #5549eb !important;
    border: 1px solid rgba(108, 99, 255, 0.2) !important;
    border-radius: 11px !important;
    background: #f2f0ff !important;
}

.icon-password-toggle:hover {
    color: #fff !important;
    border-color: #665cf2 !important;
    background: #665cf2 !important;
}

.directory-form-grid .password-wrap input,
.user-form-grid .password-wrap input {
    width: 100% !important;
    padding-right: 58px !important;
}

.parent-account-form .parent-student-heading {
    display: flex !important;
    min-height: 74px !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    margin: 0 !important;
    padding: 14px 16px !important;
    cursor: pointer !important;
    list-style: none !important;
}

.parent-account-form .parent-student-heading strong {
    display: block !important;
    color: #25354d !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
}

.parent-account-form .parent-student-heading p {
    margin: 3px 0 0 !important;
    color: #687991 !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
}

.parent-student-summary-end {
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    gap: 7px !important;
}

.parent-student-dropdown {
    padding: 0 14px 14px !important;
    border-top: 1px solid #e4e8f1 !important;
    background: #f9faff !important;
}

.parent-student-assignment {
    display: block !important;
    min-width: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid #dce3ef !important;
    border-radius: 15px !important;
    background: #f8faff !important;
}

.parent-student-options {
    display: flex !important;
    max-height: 260px !important;
    flex-direction: column !important;
    gap: 7px !important;
    margin: 0 !important;
    padding: 2px 5px 2px 0 !important;
    overflow-y: auto !important;
}

.parent-student-options label {
    display: grid !important;
    grid-template-columns: auto 38px minmax(0, 1fr) 28px !important;
    min-height: 62px !important;
    align-items: center !important;
    gap: 11px !important;
    padding: 9px 12px !important;
    border: 1px solid #dfe5ef !important;
    border-radius: 12px !important;
    background: #fff !important;
}

.parent-student-options strong,
.parent-student-options small {
    display: block !important;
    line-height: 1.45 !important;
}

.parent-student-options strong {
    color: #25354d !important;
    font-size: 13px !important;
}

.parent-student-options small {
    color: #687791 !important;
    font-size: 12px !important;
}

.parent-portal .module-alert,
.parent-portal .empty-state,
.parent-portal .premium-empty {
    color: #52637d !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
}

.parent-portal .parent-hero p,
.parent-portal .parent-insight-grid small,
.parent-portal .parent-student-grid small,
.parent-portal .parent-student-grid p,
.parent-portal .parent-notification-list p,
.parent-portal .parent-notification-list small {
    color: #5e6f89 !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
}

.parent-portal .parent-student-grid strong,
.parent-portal .parent-notification-list strong {
    color: #24344d !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
}
