:root {
    --ink: #17211d;
    --muted: #7c8983;
    --line: #e9eeeb;
    --green: #17855f;
    --green-dark: #116c4c;
    --green-light: #e8f5ee;
    --sidebar: #fbfcfb;
    --surface: #fff;
    --canvas: #f7f9f8;
    --shadow: 0 8px 30px rgba(24, 49, 37, .045);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: 'DM Sans', Arial, sans-serif; font-size: 14px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; }

.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 10; display: flex; flex-direction: column; width: 254px; padding: 25px 17px 15px; background: var(--sidebar); border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; color: #1b2c24; font-family: Manrope, sans-serif; font-weight: 800; font-size: 17px; letter-spacing: -.6px; }
.brand-mark { position: relative; display: block; overflow: hidden; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 8px; background: #fff; }
.brand-mark img { position: absolute; top: 50%; left: 50%; display: block; width: 84px; max-width: none; height: 84px; transform: translate(-50%, -50%); object-fit: contain; }
.brand small, .workspace small, .profile-mini small, .top-user small { display: block; margin-top: 2px; color: #96a19b; font: 500 11px 'DM Sans', sans-serif; letter-spacing: 0; }
.workspace { display: flex; align-items: center; gap: 10px; margin: 32px 0 28px; padding: 11px 10px; border: 1px solid var(--line); border-radius: 9px; color: #33433b; font-size: 12px; font-weight: 700; }
.workspace-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 8px; color: #138258; background: #e6f5ed; font-size: 15px; }
.workspace small { font-size: 10px; font-weight: 400; }
.chevron { margin-left: auto; color: #a1aaa5; }
.side-nav { overflow-y: auto; flex: 1; }
.nav-label { margin: 0 10px 9px; color: #a3aca7; font-size: 10px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; }
.nav-label:not(:first-child) { margin-top: 25px; }
.nav-link { position: relative; display: flex; align-items: center; gap: 12px; min-height: 40px; margin: 3px 0; padding: 0 10px; border-radius: 7px; color: #78847d; font-size: 12px; font-weight: 600; transition: background .18s, color .18s; }
.nav-link:hover { color: #24352c; background: #f0f4f1; }
.nav-link.active { color: #14764f; background: #eaf5ee; }
.nav-icon { display: inline-grid; width: 18px; place-items: center; color: #8e9a93; font-size: 16px; }
.nav-link.active .nav-icon { color: #198159; }
.nav-dot { width: 6px; height: 6px; margin-left: auto; border-radius: 50%; background: #60b48b; }
.sidebar-bottom { padding-top: 14px; border-top: 1px solid var(--line); }
.profile-mini { display: flex; align-items: center; gap: 9px; margin-top: 13px; padding: 11px 4px 2px; color: #35443c; font-size: 11px; font-weight: 700; }
.profile-mini small { font-size: 10px; font-weight: 400; }
.avatar { display: inline-grid; flex: 0 0 34px; height: 34px; place-items: center; border-radius: 50%; color: #21714e; background: #e5f2e9; font-size: 13px; font-weight: 700; }
.logout-form { margin-left: auto; }
.logout-form button { width: 28px; height: 28px; border: 0; color: #93a098; background: transparent; font-size: 17px; }

.main-area { min-height: 100vh; margin-left: 254px; }
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; height: 66px; padding: 0 38px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.breadcrumb { color: #a0aaa4; font-size: 11px; }
.breadcrumb span { padding: 0 8px; color: #c7cfca; }
.breadcrumb strong { color: #47564e; font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.today-label { margin-right: 14px; color: #7e8a83; font-size: 11px; }
.avatar-small { flex-basis: 31px; height: 31px; font-size: 12px; }
.top-user { color: #425149; font-size: 11px; font-weight: 700; }
.top-user small { font-size: 10px; font-weight: 400; }
.content { width: min(100%, 1460px); margin: 0 auto; padding: 31px 38px 20px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 22px; }
.eyebrow { margin: 0 0 8px; color: #7d9b8a; font-size: 9px; font-weight: 700; letter-spacing: 1.1px; }
h1, h2, p { margin-top: 0; }
.page-heading h1 { margin: 0; color: #1d2b23; font-family: Manrope, sans-serif; font-size: 24px; font-weight: 800; letter-spacing: -.8px; }
.page-heading > div > p:last-child { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.welcome-card, .student-welcome { position: relative; display: flex; overflow: hidden; align-items: center; justify-content: space-between; min-height: 207px; padding: 27px 35px; border-radius: 13px; color: white; background: linear-gradient(110deg, #19734f 0%, #23956a 58%, #31a374 100%); box-shadow: 0 12px 28px rgba(25, 130, 88, .13); }
.welcome-card h2, .student-welcome h2 { margin: 0 0 7px; font-family: Manrope, sans-serif; font-size: 23px; font-weight: 800; letter-spacing: -.6px; line-height: 1.26; }
.welcome-card p:not(.eyebrow), .student-welcome p:not(.eyebrow) { margin: 0 0 17px; color: #d4f0df; font-size: 11px; }
.eyebrow.light { color: #c2e6d2; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 36px; padding: 0 14px; border: 1px solid transparent; border-radius: 7px; font-size: 11px; font-weight: 700; transition: transform .15s, box-shadow .15s; }
.button:hover { transform: translateY(-1px); }
.button.primary { color: #fff; background: var(--green); box-shadow: 0 4px 10px rgba(23,133,95,.13); }
.button.primary:hover { background: var(--green-dark); }
.button.white { color: #16754e; background: #fff; }
.button.translucent { color: white; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.1); }
.button.outline { color: #536259; border-color: #dfe7e2; background: white; }
.button.full { width: 100%; }
.welcome-art { position: relative; width: 260px; height: 160px; margin-right: 16px; }
.art-orbit { position: absolute; width: 150px; height: 150px; border: 1px solid #ffffff26; border-radius: 50%; }
.orbit-one { top: 5px; left: 20px; }
.orbit-two { top: 20px; left: 48px; width: 120px; height: 120px; }
.art-card { position: absolute; top: 31px; left: 65px; display: flex; flex-direction: column; width: 155px; padding: 15px; border: 1px solid #ffffff55; border-radius: 10px; color: #28523f; background: #fff; box-shadow: 0 14px 35px #135a3f35; transform: rotate(3deg); }
.art-card span { color: #9aaba1; font-size: 8px; font-weight: 700; letter-spacing: .7px; }
.art-card strong { margin: 4px 0 8px; font: 800 25px Manrope, sans-serif; }
.art-card small { margin-top: 7px; color: #809087; font-size: 8px; }
.progress, .mini-progress { overflow: hidden; height: 6px; border-radius: 8px; background: #e9f0ec; }
.progress i, .mini-progress i { display: block; height: 100%; border-radius: inherit; background: #47b282; }
.art-spark { position: absolute; top: 1px; right: 14px; color: #c1ebd5; font-size: 26px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin: 18px 0; }
.stat-card { position: relative; display: flex; min-height: 124px; flex-direction: column; padding: 14px 16px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.stat-icon { display: inline-grid; width: 29px; height: 29px; place-items: center; border-radius: 8px; font-size: 15px; }
.stat-icon.lilac { color: #7864bb; background: #f1edfc; }
.stat-icon.mint { color: #328864; background: #e8f5ed; }
.stat-icon.peach { color: #c47c50; background: #fff1e7; }
.stat-icon.sky { color: #5086b3; background: #eaf4fa; }
.stat-label { position: absolute; top: 22px; left: 55px; color: #7d8982; font-size: 10px; font-weight: 500; }
.stat-card > strong { margin-top: auto; color: #23332a; font: 800 25px Manrope, sans-serif; letter-spacing: -.8px; }
.stat-card > strong.stat-word { font-size: 16px; }
.stat-card > small { margin-top: 3px; color: #9aa49f; font-size: 9px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(250px, .9fr); gap: 16px; align-items: start; }
.panel { min-width: 0; margin-bottom: 17px; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: var(--shadow); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 67px; padding: 14px 18px; }
.panel-heading h2 { margin: 0; color: #2e3e35; font: 700 13px Manrope, sans-serif; }
.panel-heading p { margin: 5px 0 0; color: #9aa49f; font-size: 10px; }
.text-link { color: #16835b; font-size: 10px; font-weight: 700; white-space: nowrap; }
.table-wrap { overflow-x: auto; width: 100%; border-top: 1px solid #f0f3f1; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 10px 13px; color: #99a39d; background: #fcfdfc; font-size: 8px; font-weight: 700; letter-spacing: .55px; white-space: nowrap; }
td { padding: 12px 13px; border-top: 1px solid #f1f3f2; color: #707e76; font-size: 10px; vertical-align: top; }
td strong { color: #35443b; font-size: 10px; font-weight: 700; }
.cell-sub { display: block; margin-top: 4px; color: #a1aaa5; font-size: 9px; }
.empty-cell { padding: 25px; color: #9aa49f; text-align: center; }
.badge { display: inline-flex; align-items: center; min-height: 21px; padding: 0 8px; border-radius: 20px; font-size: 9px; font-weight: 700; white-space: nowrap; }
.badge.green { color: #25845c; background: #e9f6ee; }
.badge.blue { color: #5180a2; background: #edf5fa; }
.badge.amber { color: #a98030; background: #fcf5e5; }
.badge.red { color: #bb625c; background: #fbefed; }
.badge.gray { color: #78857e; background: #f0f3f1; }
.attention-count { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; color: #ba7048; background: #fff3ea; font-size: 11px; font-weight: 700; }
.quick-panel { padding-bottom: 16px; }
.attention-box { display: flex; gap: 11px; margin: 2px 15px 14px; padding: 13px 11px; border: 1px solid #f4e4d7; border-radius: 8px; background: #fffaf6; }
.attention-icon { display: grid; flex: 0 0 24px; height: 24px; place-items: center; border-radius: 50%; color: #bb7549; background: #ffead9; font-weight: 800; }
.attention-box strong { color: #67513f; font-size: 10px; }
.attention-box p { margin: 4px 0 0; color: #a3988b; font-size: 9px; line-height: 1.5; }
.quick-panel > .button { margin: 0 15px; width: calc(100% - 30px); }
.student-welcome { min-height: 184px; }
.student-welcome h2 { font-size: 24px; }
.student-welcome > div:first-child { max-width: 540px; }
.student-welcome-icon { display: grid; width: 130px; height: 130px; place-items: center; margin-right: 35px; border: 1px solid #ffffff42; border-radius: 50%; color: #bfe7d1; background: #ffffff0d; font-size: 65px; }
.welcome-actions { display: flex; gap: 9px; }
.student-dashboard-grid { grid-template-columns: minmax(0,1.6fr) minmax(260px,.8fr); }
.placement-highlight { display: flex; align-items: center; gap: 10px; padding: 6px 17px 17px; }
.company-symbol { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; color: #24845d; background: #e9f6ed; }
.placement-highlight div { flex: 1; }
.placement-highlight strong { color: #34443a; font-size: 11px; }
.placement-highlight p { margin: 4px 0 0; color: #9aa49f; font-size: 9px; }
.date-range { display: flex; flex-direction: column; gap: 5px; margin: 0 17px 15px; padding: 12px; border-radius: 7px; background: #f7faf8; }
.date-range span, .detail-stats span { color: #a0aaa4; font-size: 8px; font-weight: 700; letter-spacing: .6px; }
.date-range strong { color: #506057; font-size: 10px; }
.placement-panel > .button { margin: 0 17px 16px; width: calc(100% - 34px); }
.empty-state { padding: 7px 17px 20px; color: #9aa49f; font-size: 10px; }
.module-grid { display: grid; grid-template-columns: minmax(260px,.72fr) minmax(0,1.8fr); gap: 16px; align-items: start; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; padding: 0 18px 18px; }
.form-grid label { display: flex; flex-direction: column; gap: 6px; color: #637068; font-size: 10px; font-weight: 600; }
input, select, textarea { width: 100%; min-width: 0; min-height: 36px; padding: 8px 10px; border: 1px solid #e2e9e4; border-radius: 6px; outline: none; color: #35443b; background: white; font-size: 11px; }
textarea { resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #b0b9b3; }
input:focus, select:focus, textarea:focus { border-color: #65b28b; box-shadow: 0 0 0 3px #16865e14; }
.form-actions { display: flex; align-items: center; gap: 8px; grid-column: 1 / -1; margin-top: 3px; }
.form-actions .button { min-height: 34px; }
.search-form { display: flex; width: min(240px, 44vw); }
.search-form input { border-radius: 6px 0 0 6px; }
.search-form button { width: 38px; border: 1px solid #e2e9e4; border-left: 0; border-radius: 0 6px 6px 0; color: #718077; background: #fafcfb; font-size: 19px; }
.count-pill { display: inline-grid; min-width: 20px; height: 20px; place-items: center; margin-left: 5px; border-radius: 12px; color: #20825a; background: #e9f5ed; font: 700 9px 'DM Sans', sans-serif; vertical-align: middle; }
.row-actions { white-space: nowrap; }
.row-actions a, .row-actions button { margin-right: 7px; border: 0; color: #198159; background: transparent; font-size: 9px; font-weight: 700; }
.row-actions button { color: #bf6860; }
.row-actions form { display: inline; }
.form-panel { margin-bottom: 17px; }
.placement-form { grid-template-columns: repeat(3, minmax(0,1fr)); }
.panel-toolbar { display: flex; justify-content: end; margin: -6px 0 13px; }
.journal-form { grid-template-columns: repeat(2, minmax(0,1fr)); }
.journal-form .wide, .monitoring-form .wide { grid-column: 1/-1; }
.attendance-form { grid-template-columns: repeat(4, minmax(0,1fr)); }
.attendance-form .form-actions { align-self: end; }
.filter-form { display: flex; align-items: center; gap: 7px; }
.filter-form select, .filter-form input { min-width: 128px; min-height: 32px; padding: 6px 8px; font-size: 10px; }
.percent-cell { display: flex; align-items: center; gap: 8px; }
.mini-progress { width: 52px; height: 5px; }
.mini-progress i { background: #4aa77b; }
.score { display: inline-grid; min-width: 29px; height: 25px; place-items: center; border-radius: 6px; color: #20805a; background: #e9f5ee; font-weight: 800; }
.profile-detail { padding: 20px; }
.student-profile { display: flex; align-items: center; gap: 13px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.avatar-large { flex-basis: 53px; height: 53px; font-size: 18px; }
.student-profile h2 { margin: 0 0 5px; font: 700 16px Manrope, sans-serif; }
.student-profile p { margin: 3px 0; color: #8c9891; font-size: 10px; }
.student-profile .button { margin-left: auto; }
.detail-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; padding-top: 17px; }
.detail-stats > div { display: flex; flex-direction: column; gap: 8px; }
.detail-stats strong { color: #435349; font-size: 11px; }
.profile-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; align-items: start; }
.profile-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px 12px; padding-top: 18px; }
.profile-fields > div { display: flex; flex-direction: column; gap: 6px; }
.profile-fields span { color: #a0aaa4; font-size: 8px; font-weight: 700; letter-spacing: .6px; }
.profile-fields strong { color: #435349; font-size: 11px; }
.compact-fields { margin: 0 17px 18px; padding: 14px; border-radius: 7px; background: #f7faf8; }
.report-toolbar { display: flex; align-items: center; justify-content: space-between; margin: -5px 0 15px; color: #8b9790; font-size: 10px; }
.report-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 13px; margin-bottom: 18px; }
.report-card { display: flex; flex-direction: column; gap: 8px; padding: 15px; border: 1px solid var(--line); border-radius: 9px; background: #fff; box-shadow: var(--shadow); }
.report-card > strong { color: #3d4d43; font-size: 11px; }
.report-card > small { color: #98a29c; font-size: 9px; }
.report-card .text-link { margin-top: 3px; }
.report-section { scroll-margin-top: 80px; }
.footer { display: flex; justify-content: space-between; padding: 14px 2px 4px; color: #a0aaa4; font-size: 9px; }
.alert { margin: 0 0 16px; padding: 11px 14px; border: 1px solid #dcefe3; border-radius: 7px; color: #28704e; background: #eff9f2; font-size: 11px; }
.alert.error { border-color: #f0d9d6; color: #a2463e; background: #fff3f1; }
.mobile-menu { display: none; border: 0; color: #46564c; background: transparent; font-size: 19px; }
.sidebar-scrim { display: none; }

.login-page { display: grid; min-height: 100vh; place-items: center; padding: 22px; background: radial-gradient(circle at 12% 10%, #e8f5ee, transparent 34%), #f5f8f6; }
.login-card { width: min(100%, 405px); padding: 36px; border: 1px solid #e9efeb; border-radius: 14px; background: white; box-shadow: 0 18px 60px #204e3712; }
.brand-login { margin-bottom: 36px; }
.login-intro { margin-bottom: 22px; }
.login-intro .eyebrow { margin-bottom: 9px; color: #1a8a5d; }
.login-intro h1 { margin-bottom: 7px; font: 800 23px Manrope, sans-serif; letter-spacing: -.6px; }
.login-intro p:last-child { margin-bottom: 0; color: #88958d; font-size: 12px; }
.login-card form { display: flex; flex-direction: column; gap: 9px; }
.login-card form label { margin-top: 7px; color: #56645b; font-size: 11px; font-weight: 700; }
.login-card form input { min-height: 42px; }
.login-card form .button { min-height: 42px; margin-top: 12px; }
.login-hint { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid #edf1ee; color: #8c9891; font-size: 10px; text-align: center; }
.login-hint strong { color: #526157; }

@media (max-width: 1150px) {
    .content { padding-right: 25px; padding-left: 25px; }
    .topbar { padding: 0 25px; }
    .module-grid { grid-template-columns: minmax(250px,.8fr) minmax(0,1.4fr); }
}
@media (max-width: 900px) {
    .sidebar { width: 230px; transform: translateX(-100%); transition: transform .2s ease; }
    .sidebar-open .sidebar { transform: translateX(0); }
    .sidebar-scrim { position: fixed; inset: 0; z-index: 9; background: #17211d55; }
    .sidebar-open .sidebar-scrim { display: block; }
    .main-area { margin-left: 0; }
    .mobile-menu { display: inline-grid; width: 34px; place-items: center; margin-right: 13px; }
    .dashboard-grid, .student-dashboard-grid, .profile-grid { grid-template-columns: minmax(0,1fr); }
    .quick-panel { order: -1; }
    .module-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .topbar { height: 57px; padding: 0 14px; }
    .today-label { display: none; }
    .content { padding: 22px 14px 14px; }
    .page-heading h1 { font-size: 21px; }
    .welcome-card, .student-welcome { min-height: 190px; padding: 22px; }
    .welcome-card h2, .student-welcome h2 { font-size: 20px; }
    .welcome-art { position: absolute; right: -85px; bottom: -24px; opacity: .35; }
    .student-welcome-icon { position: absolute; right: 5px; width: 90px; height: 90px; margin: 0; opacity: .45; font-size: 44px; }
    .stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; margin: 12px 0; }
    .stat-card { min-height: 113px; padding: 12px; }
    .stat-label { top: 19px; left: 48px; font-size: 9px; }
    .stat-card > strong { font-size: 23px; }
    .panel-heading { align-items: flex-start; padding: 13px; }
    .panel-heading h2 { font-size: 12px; }
    .panel-heading p { max-width: 240px; line-height: 1.5; }
    .panel-heading .search-form { width: 40%; }
    th { padding: 9px 10px; }
    td { padding: 10px; }
    .form-grid, .placement-form, .attendance-form { grid-template-columns: 1fr; padding-right: 13px; padding-left: 13px; }
    .form-grid .wide { grid-column: auto; }
    .attendance-form .form-actions { align-self: auto; }
    .report-grid { grid-template-columns: 1fr; }
    .detail-stats { grid-template-columns: repeat(2,1fr); }
    .profile-fields { gap: 13px 10px; }
    .student-profile { align-items: flex-start; flex-wrap: wrap; }
    .student-profile .button { margin-left: 66px; }
    .report-toolbar { gap: 10px; align-items: flex-start; }
    .filter-form { flex-wrap: wrap; }
    .filter-form select, .filter-form input { min-width: 105px; }
    .footer { gap: 8px; font-size: 8px; }
}
@media print {
    .sidebar, .topbar, .report-toolbar, .report-grid, .footer { display: none !important; }
    .main-area { margin-left: 0; }
    .content { width: 100%; padding: 0; }
    .panel { break-inside: avoid; box-shadow: none; }
    body { background: white; }
}

/* Refined visual system */
:root {
    --ink: #172923;
    --muted: #788780;
    --line: #e7eeea;
    --green: #197a58;
    --green-dark: #126344;
    --green-light: #eaf5ef;
    --sidebar: #fff;
    --surface: #fff;
    --canvas: #f5f8f6;
    --shadow: 0 4px 18px rgba(23, 53, 39, .045);
}

body {
    color: var(--ink);
    background:
        radial-gradient(ellipse at 90% 5%, rgba(37, 144, 96, .045), transparent 28rem),
        var(--canvas);
    font-family: Inter, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.sidebar {
    width: 260px;
    padding: 24px 18px 16px;
    background: rgba(255,255,255,.94);
    border-right-color: #e8eeea;
    box-shadow: 4px 0 24px rgba(23, 53, 39, .025);
}

.brand { gap: 12px; font-size: 16px; letter-spacing: -.35px; }
.brand-mark { flex-basis: 44px; width: 44px; height: 44px; border: 1px solid #eef2ef; border-radius: 12px; box-shadow: 0 4px 12px rgba(31, 91, 59, .08); }
.brand-mark img { width: 84px; height: 84px; }
.brand small { color: #87958d; font-size: 10px; }

.workspace {
    margin: 27px 0 26px;
    padding: 10px;
    border-color: #e8eeea;
    border-radius: 11px;
    background: #fbfcfb;
}
.workspace-icon { border-radius: 9px; color: #177851; background: #e9f4ed; }
.nav-label { margin-left: 11px; color: #a0aca5; letter-spacing: 1px; }
.nav-link { min-height: 41px; border-radius: 8px; font-size: 12px; }
.nav-link.active { color: #126a48; background: #eaf5ee; box-shadow: inset 2px 0 #26895d; }
.nav-link:hover { color: #1a5036; background: #f3f7f4; }
.profile-mini { margin-top: 12px; padding-top: 13px; border-top: 1px solid #edf1ee; }

.main-area { margin-left: 260px; }
.topbar {
    height: 68px;
    padding: 0 42px;
    background: rgba(255,255,255,.88);
    border-bottom-color: #e9efeb;
    box-shadow: 0 2px 12px rgba(23, 53, 39, .025);
}
.breadcrumb { font-size: 12px; }
.breadcrumb strong { color: #34463c; }
.content { padding: 34px 42px 24px; }
.page-heading { margin-bottom: 24px; }
.eyebrow { color: #25825d; font-size: 10px; letter-spacing: 1.25px; }
.page-heading h1 { color: #18352a; font-size: 26px; letter-spacing: -.75px; }
.page-heading > div > p:last-child { color: #7b8981; font-size: 13px; }

.welcome-card, .student-welcome {
    min-height: 218px;
    padding: 30px 38px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 16px;
    background:
        radial-gradient(circle at 87% 15%, rgba(255,255,255,.16), transparent 13rem),
        linear-gradient(112deg, #155e43 0%, #1d8058 52%, #269365 100%);
    box-shadow: 0 14px 34px rgba(19, 103, 68, .15);
}
.welcome-card h2, .student-welcome h2 { font-size: 25px; line-height: 1.3; }
.welcome-card p:not(.eyebrow), .student-welcome p:not(.eyebrow) { color: #d9eee2; font-size: 12px; }
.welcome-art { transform: scale(1.04); }
.button { min-height: 39px; padding: 0 16px; border-radius: 8px; font-size: 12px; }
.button.primary { background: linear-gradient(135deg, #21865f, #176c4c); box-shadow: 0 5px 12px rgba(23, 133, 95, .16); }
.button.primary:hover { background: #125f42; box-shadow: 0 7px 16px rgba(23, 100, 68, .18); }
.button.outline { border-color: #e1e9e4; color: #42564a; background: #fff; }
.button.outline:hover { border-color: #b6d3c0; color: #176c4c; background: #f8fbf9; }
.button.white { box-shadow: 0 4px 12px rgba(16, 55, 35, .12); }

.stat-grid { gap: 15px; margin: 20px 0; }
.stat-card {
    min-height: 132px;
    padding: 16px 17px 15px;
    border-color: #e7eeea;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(23, 53, 39, .035);
    transition: transform .18s ease, box-shadow .18s ease;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 9px 22px rgba(23, 53, 39, .075); }
.stat-icon { width: 34px; height: 34px; border-radius: 10px; }
.stat-label { top: 24px; left: 60px; color: #77877e; font-size: 11px; }
.stat-card > strong { color: #19392b; font-size: 27px; }
.stat-card > strong.stat-word { font-size: 17px; }
.stat-card > small { color: #8d9a92; font-size: 10px; }

.dashboard-grid { gap: 18px; }
.panel {
    margin-bottom: 18px;
    border-color: #e7eeea;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(23, 53, 39, .035);
}
.panel-heading { min-height: 72px; padding: 16px 20px; }
.panel-heading h2 { color: #263e31; font-size: 14px; }
.panel-heading p { color: #849188; font-size: 11px; }
.text-link { color: #18784f; font-size: 11px; }
.table-wrap { border-top-color: #edf1ee; }
th { padding: 11px 14px; color: #84938a; background: #fafcfb; font-size: 9px; letter-spacing: .7px; }
td { padding: 13px 14px; color: #69786f; font-size: 11px; }
td strong { color: #30453a; font-size: 11px; }
.cell-sub { color: #89968e; font-size: 10px; }
.empty-cell { color: #7e8d84; font-size: 12px; }
.badge { min-height: 23px; padding: 0 9px; font-size: 10px; }
.badge.green { color: #176c49; background: #e7f4eb; }
.badge.blue { color: #3e7094; background: #eaf3f8; }
.badge.amber { color: #946b20; background: #fbf3df; }
.badge.red { color: #a84f48; background: #faeae8; }
.attention-box { border-color: #f1e5d6; border-radius: 9px; background: #fffbf6; }
.attention-box strong { font-size: 11px; }
.attention-box p { font-size: 10px; }

input, select, textarea {
    min-height: 39px;
    padding: 9px 11px;
    border-color: #dfe8e2;
    border-radius: 8px;
    color: #2b4034;
    background-color: #fff;
    font-size: 12px;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
input:hover, select:hover, textarea:hover { border-color: #cbd9cf; }
input:focus, select:focus, textarea:focus { border-color: #69a987; box-shadow: 0 0 0 3px rgba(34, 132, 86, .11); }
.form-grid { gap: 14px; padding: 0 20px 20px; }
.form-grid label { gap: 7px; color: #4c6154; font-size: 11px; }
.search-form input { border-radius: 8px 0 0 8px; }
.search-form button { border-color: #dfe8e2; border-radius: 0 8px 8px 0; }
.filter-form select, .filter-form input { min-height: 35px; border-radius: 7px; }
.row-actions a, .row-actions button { font-size: 10px; }
.count-pill { min-width: 22px; height: 22px; font-size: 10px; }
.profile-detail { padding: 22px; }
.student-profile h2 { color: #1f392b; font-size: 17px; }
.student-profile p { color: #78877e; font-size: 11px; }
.profile-fields strong, .detail-stats strong { color: #344b3d; font-size: 12px; }
.profile-fields span, .detail-stats span, .date-range span { color: #85948a; font-size: 9px; }
.compact-fields { border: 1px solid #edf2ee; background: #f8fbf9; }
.report-card { gap: 9px; border-color: #e7eeea; border-radius: 12px; box-shadow: 0 4px 16px rgba(23, 53, 39, .035); transition: transform .18s ease, box-shadow .18s ease; }
.report-card:hover { transform: translateY(-2px); box-shadow: 0 9px 22px rgba(23, 53, 39, .075); }
.report-card > strong { color: #30463a; font-size: 12px; }
.report-card > small { color: #829087; font-size: 10px; }
.footer { color: #8b9990; font-size: 10px; }
.alert { border-radius: 9px; font-size: 12px; }

.login-page {
    position: relative;
    overflow: hidden;
    padding: 32px 20px;
    background:
        radial-gradient(ellipse at 12% 14%, rgba(52, 153, 102, .12), transparent 30rem),
        radial-gradient(ellipse at 90% 88%, rgba(24, 115, 74, .10), transparent 29rem),
        #f2f7f4;
}
.login-page::before, .login-page::after {
    position: absolute;
    z-index: 0;
    width: 320px;
    height: 320px;
    border: 1px solid rgba(36, 122, 79, .08);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}
.login-page::before { top: -180px; right: -70px; box-shadow: 0 0 0 32px rgba(36,122,79,.025), 0 0 0 68px rgba(36,122,79,.02); }
.login-page::after { bottom: -220px; left: -90px; box-shadow: 0 0 0 36px rgba(36,122,79,.025), 0 0 0 74px rgba(36,122,79,.02); }
.login-card {
    position: relative;
    z-index: 1;
    width: min(100%, 430px);
    padding: 38px;
    border: 1px solid rgba(224, 235, 227, .95);
    border-radius: 18px;
    box-shadow: 0 22px 70px rgba(28, 71, 47, .12);
}
.brand-login { margin-bottom: 34px; }
.brand-login .brand-mark { flex-basis: 52px; width: 52px; height: 52px; border-radius: 14px; }
.brand-login .brand-mark img { width: 100px; height: 100px; }
.brand-login > span:last-child { font-size: 18px; }
.login-intro { margin-bottom: 25px; }
.login-intro .eyebrow { margin-bottom: 10px; color: #208057; }
.login-intro h1 { margin-bottom: 8px; color: #1a3528; font-size: 26px; }
.login-intro p:last-child { color: #78877e; font-size: 13px; }
.login-card form { gap: 10px; }
.login-card form label { margin-top: 8px; color: #43594b; font-size: 12px; }
.login-card form input { min-height: 44px; background: #fcfdfc; }
.login-card form .button { min-height: 45px; margin-top: 14px; font-size: 13px; }
.login-hint { margin: 20px 0 0; padding: 14px 12px; border: 1px solid #e9f0eb; border-radius: 9px; color: #7c8a81; background: #f8fbf9; font-size: 10px; line-height: 1.8; }
.login-hint strong { color: #365344; }
.login-footer { margin: 18px 0 0; color: #98a59c; font-size: 10px; text-align: center; }

@media (max-width: 1150px) {
    .content { padding-right: 28px; padding-left: 28px; }
    .topbar { padding-right: 28px; padding-left: 28px; }
}
@media (max-width: 900px) {
    .sidebar { width: 250px; }
    .main-area { margin-left: 0; }
    .content { padding: 28px 24px 20px; }
    .topbar { padding: 0 24px; }
}
@media (max-width: 640px) {
    .login-page::before, .login-page::after { display: none; }
    .topbar { height: 59px; padding: 0 14px; }
    .today-label { display: none; }
    .content { padding: 22px 14px 16px; }
    .page-heading { margin-bottom: 19px; }
    .page-heading h1 { font-size: 22px; }
    .page-heading > div > p:last-child { font-size: 12px; line-height: 1.55; }
    .welcome-card, .student-welcome { min-height: 196px; padding: 22px 20px; border-radius: 13px; }
    .welcome-card h2, .student-welcome h2 { font-size: 21px; }
    .welcome-card p:not(.eyebrow), .student-welcome p:not(.eyebrow) { max-width: 300px; font-size: 11px; line-height: 1.6; }
    .welcome-art { position: absolute; right: -85px; bottom: -24px; opacity: .35; }
    .student-welcome-icon { position: absolute; right: 5px; width: 90px; height: 90px; margin: 0; opacity: .45; font-size: 44px; }
    .stat-grid { gap: 9px; margin: 13px 0; }
    .stat-card { min-height: 118px; padding: 12px; border-radius: 10px; }
    .stat-icon { width: 31px; height: 31px; }
    .stat-label { top: 20px; left: 51px; font-size: 9px; }
    .stat-card > strong { font-size: 23px; }
    .stat-card > small { font-size: 9px; }
    .panel { border-radius: 10px; }
    .panel-heading { min-height: 64px; padding: 12px; }
    .panel-heading h2 { font-size: 12px; }
    .panel-heading p { font-size: 9px; }
    .form-grid { gap: 12px; padding: 0 13px 14px; }
    .filter-form { gap: 6px; }
    .login-card { padding: 29px 24px; border-radius: 15px; }
    .login-intro h1 { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
