/* Version 7 student-only shared system. Existing staff/login styles stay independent. */
.student-design .student-titlebar{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:96px;padding:18px 28px;background:var(--dash-card-bg);border-bottom:1px solid var(--line)}
.student-titlebar-left,.student-titlebar-right{display:flex;align-items:center;gap:14px;min-width:0}
.student-design .student-heading{min-width:0}.student-design .student-heading small{display:block;color:var(--dash-muted);font-size:13px;margin-bottom:4px}
.student-design .student-heading h1{margin:0;font-size:24px;line-height:1.25;color:#04175b;letter-spacing:-.3px;overflow-wrap:anywhere}
.student-titlebar-right{flex-shrink:0}.student-school-year{border-radius:999px;padding:10px 16px;background:#e8ecf8;color:#04175b;font-size:13px;font-weight:600;white-space:nowrap}
.student-design .student-bell{width:48px;height:48px;min-height:48px;display:grid;place-items:center;background:white;position:relative;border:1px solid var(--line);border-radius:14px;font-size:23px;padding:0;flex-shrink:0}
.student-design .student-bell:hover{background:#fff8e9;border-color:#f5a623}
.notification-dot{position:absolute;right:8px;top:7px;width:10px;height:10px;border-radius:50%;background:#c62828;border:2px solid white;box-sizing:content-box}
.student-design .content{min-height:calc(100dvh - 96px)}
.student-test-label{display:flex;justify-content:flex-end;margin-bottom:10px}.student-design .test-notice{margin:0 0 20px}
.student-design .student-menu-emoji{font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;font-size:19px;line-height:1;display:inline-grid;place-items:center;flex:0 0 22px;width:22px;height:24px;background:transparent}
.student-design .sidebar-bottom{padding:8px 8px 0;margin-top:8px}.student-design .sidebar-bottom form{margin:0}.student-design .sidebar-bottom .quiet{padding:8px 0;min-height:44px;font-size:13px}
/* One rounded navy-and-gold card family, without changing module contents. */
.student-design .panel{border-radius:14px;overflow:hidden}
.student-design .panelhead{background:#04175b;color:white;border-top:2px solid #f5a623;border-bottom:1px solid #04175b;border-radius:13px 13px 0 0;min-height:62px;gap:12px}
.student-design .panelhead h2,.student-design .panelhead h3,.student-design .panelhead p{color:white}
.student-design .content .panelhead a:not(.button){color:#fff;font-size:13px;min-height:44px;display:inline-flex;align-items:center;text-decoration:underline;text-underline-offset:3px}
.student-design .panelhead .tag{background:#e8ecf8;color:#04175b}
.student-design .panelhead button{background:white;color:#04175b;border-color:#dce2f1;flex-shrink:0}
.student-design .balance-v06 .status-header{background:#fff0cf;border-bottom-color:var(--line)}
.student-design .balance-v06 .status-header h2,.student-design .balance-v06 .status-header>.icon{color:#04175b}
.student-design .calendar-panel,.student-design .notice-card-grid{border-top:2px solid #f5a623}
.student-design .notice-card{border-radius:0;overflow:visible}
.student-design .calendar-toolbar h2{color:#04175b}
.student-design .schedule-week table{border-top:2px solid #f5a623;border-radius:12px}
.student-design .schedule-context{border-top:2px solid #f5a623;border-radius:13px 13px 0 0}
.student-design table:not(.schedule-week table){border-collapse:separate;border-spacing:0;width:100%;border:1px solid var(--line);border-top:2px solid #f5a623;border-radius:12px;overflow:hidden}
.student-design table thead th{background:#04175b;color:white;font-size:13px;padding:12px}
.student-design table td{padding:11px 12px;border-bottom:1px solid var(--line);font-size:13px}
.student-design table tbody tr:nth-child(even) td{background:#fafbfe}
.student-design .detail-dialog{border-top:2px solid #f5a623}
.student-design .dialog-header{background:#04175b;border-bottom-color:#04175b;color:white}
.student-design .dialog-header h2,.student-design .dialog-header .eyebrow{color:white}
.student-design .dialog-header button{background:white;color:#04175b}
/* Independently stacked columns: info left, photo/security right. DOM order is mobile order. */
.profile-v07-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(300px,1fr);gap:24px;align-items:start}
.profile-v07-column{display:flex;flex-direction:column;gap:20px;min-width:0}
.student-design .profile-v07-layout .panelhead{flex-wrap:nowrap;align-items:center}
.student-design .profile-v07-layout .panelhead h2{flex:1;min-width:0;overflow-wrap:anywhere;font-size:17px}
.student-design .profile-v07-layout .panelhead .tag{flex-shrink:0;font-size:10.5px}
.student-design .profile-v07-info .profile-v06-list>div{display:grid;grid-template-columns:150px minmax(0,1fr);gap:16px;align-items:start}
.student-design .profile-v07-info .profile-v06-list dt{margin:0;font-size:13px;line-height:1.6}
.student-design .profile-v07-info .profile-v06-list dd{font-size:14px;line-height:1.6}
.student-design .profile-v07-photo .panelbody{text-align:center;display:flex;align-items:center;flex-direction:column;gap:14px;padding:24px 20px}
.student-design .profile-v07-photo .profile-photo-large{width:120px;height:120px;flex-basis:120px;border:3px solid #f5a623;font-size:38px;margin:0 auto}
.student-design .profile-v07-photo h3{font-size:17px;overflow-wrap:anywhere}
.student-design .profile-v07-photo p{margin:0}
.student-design .profile-v07-photo button{display:inline-flex;align-items:center;justify-content:center;gap:8px}
.student-design .profile-v07-account .field{max-width:100%}
.student-design .profile-v07-account .primary{width:100%}
.student-design .profile-v07-account .profile-form-note{font-size:12px;line-height:1.6}
/* Notification dialog remains native, scrollable and keyboard accessible. */
.student-design #student-notifications{width:min(600px,calc(100vw - 48px))}
.notification-summary{margin:0 0 12px}.notification-mark-all{margin-bottom:16px;text-align:right}
.notification-list{display:grid;gap:0;border-top:1px solid var(--line)}
.notification-item{border-bottom:1px solid var(--line);margin:0}
.student-design .notification-link{display:flex;align-items:flex-start;gap:12px;width:100%;padding:16px 8px;text-align:left;border:0;border-radius:0;background:transparent;color:var(--dash-text);font-weight:400;white-space:normal}
.student-design .notification-unread .notification-link{background:#f7f9ff}
.student-design .notification-link:hover{background:#fff8e9}
.notification-date{flex:0 0 44px;padding:6px 2px;border-radius:10px;background:#e8ecf8;color:#04175b;text-align:center}.notification-date small{font-size:10px;text-transform:uppercase;display:block}.notification-date strong{display:block;font-size:19px}
.notification-copy{display:grid;gap:7px;min-width:0;flex:1}.notification-copy small{font-size:11.5px;color:var(--dash-muted);line-height:1.5}
.notification-item-heading{display:flex;align-items:flex-start;gap:8px;justify-content:space-between}.notification-item-heading>strong{font-size:14px;line-height:1.5;overflow-wrap:anywhere}.notification-item-heading .tag{flex-shrink:0;font-size:10px}
.notification-excerpt{font-size:12.5px;line-height:1.5;color:var(--dash-muted);overflow-wrap:anywhere}
@media(max-width:1150px){.profile-v07-layout{grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);gap:18px}.student-design .profile-v07-info .profile-v06-list>div{grid-template-columns:120px minmax(0,1fr);gap:12px}}
@media(max-width:950px){.profile-v07-layout{grid-template-columns:minmax(0,1fr)}.student-design .profile-v07-info .profile-v06-list>div{grid-template-columns:150px minmax(0,1fr)}}
@media(max-width:800px){
 .student-design .student-titlebar{min-height:76px;padding:12px 16px;gap:10px}
 .student-titlebar-left{gap:10px;flex:1}.student-titlebar-right{gap:0}
 .student-design .student-heading small{font-size:11px;margin-bottom:3px}.student-design .student-heading h1{font-size:18px;line-height:1.3;letter-spacing:0}
 .student-school-year{display:none}.student-design .student-bell{width:44px;height:44px;min-height:44px;font-size:21px;border-radius:12px}
 .student-design .student-titlebar .mobile-menu{width:44px;height:44px;padding:0;align-items:center;justify-content:center}
 .student-design .content{min-height:calc(100dvh - 76px);padding-top:16px}
 .student-design .panelhead{min-height:60px;padding:14px 16px}
 .student-design .panelhead h2{font-size:16px}
 .student-design .profile-v07-info .profile-v06-list>div{grid-template-columns:115px minmax(0,1fr);gap:12px}
 .student-design .profile-v07-layout .panelhead h2{font-size:16px}
 .student-design .profile-v07-account .profile-form-note{font-size:13px}
 .student-design #student-notifications{width:calc(100vw - 24px)}
 .student-design .notification-link{padding:14px 4px;gap:10px}
 .notification-item-heading{flex-wrap:wrap}
}
@media(max-width:380px){.student-design .profile-v07-info .profile-v06-list>div{grid-template-columns:minmax(0,1fr);gap:3px}.student-design .profile-v07-layout .panelhead .tag{font-size:9.5px}.student-design .student-heading h1{font-size:16px}}
/* Override the older shared link color inside dark title bands. */
.student-design.dashboard-page .content .panelhead a:not(.button):not(.action-card):not(.quick-link){color:#fff}
