/* Attendance Platform — UI Phase 03 — Guardian App Mobile-First Design System */




:root{
  --g-bg:var(--identity-background);--g-surface:var(--identity-surface);--g-surface-2:var(--identity-surface-soft);--g-ink:var(--identity-text);--g-muted:var(--identity-muted);--g-line:var(--identity-border);
  --g-brand:var(--identity-primary);--g-brand-2:var(--identity-primary-hover);--g-accent:var(--identity-primary-text);--g-accent-soft:var(--identity-primary-soft);--g-green:var(--identity-success);--g-green-soft:var(--identity-success-soft);
  --g-amber:var(--identity-warning);--g-amber-soft:var(--identity-warning-soft);--g-red:var(--identity-danger);--g-red-soft:var(--identity-danger-soft);--g-blue:var(--identity-info);--g-blue-soft:var(--identity-info-soft);
  --g-violet:var(--identity-violet);--g-violet-soft:var(--identity-violet-soft);--g-radius:20px;--g-radius-sm:14px;--g-shadow:0 10px 30px color-mix(in srgb, var(--identity-shadow-color) 7.000%, transparent);
}
*{box-sizing:border-box;}html{background:var(--identity-background);-webkit-text-size-adjust:100%;}body{margin:0;background:var(--identity-background);color:var(--g-ink);font-family:"Cairo",Tahoma,Arial,sans-serif;font-size:15px;line-height:1.55;}body,button,input,select,textarea{font-family:"Cairo",Tahoma,Arial,sans-serif;}a{text-decoration:none;color:inherit;}button,input,select,textarea{font:inherit;}button,a{-webkit-tap-highlight-color:transparent;}button{cursor:pointer;}svg{stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}.g-shell{min-height:100vh;}.g-main{width:min(1120px,100%);margin:0 auto;padding:24px 22px 42px;}.g-header{position:sticky;top:0;z-index:50;background:color-mix(in srgb, var(--identity-surface) 92.000%, transparent);border-bottom:1px solid color-mix(in srgb, var(--identity-border) 90.000%, transparent);backdrop-filter:blur(16px);}.g-header__inner{width:min(1180px,100%);min-height:72px;margin:auto;padding:0 22px;display:flex;align-items:center;gap:28px;}.g-brand{display:flex;align-items:center;gap:11px;min-width:max-content;}.g-brand__mark{width:42px;height:42px;border-radius:14px;background:var(--g-brand);color:var(--identity-text);display:grid;place-items:center;box-shadow:0 8px 20px color-mix(in srgb, var(--identity-shadow-color) 16.000%, transparent);}.g-brand__mark svg{width:25px;height:25px;}.g-brand__text{display:grid;line-height:1.25;}.g-brand__text strong{font-size:16px;}.g-brand__text small{font-size:11px;color:var(--g-muted);margin-top:3px;}.g-desktop-nav{display:flex;align-items:center;gap:5px;margin-inline-start:auto;}.g-desktop-nav a{padding:9px 13px;border-radius:12px;color:var(--identity-muted);font-size:14px;font-weight:600;}.g-desktop-nav a:hover,.g-desktop-nav a.active{background:var(--g-accent-soft);color:var(--identity-text);}.g-logout-form{margin:0;}.g-icon-btn{width:42px;height:42px;display:grid;place-items:center;border:1px solid var(--g-line);background:var(--identity-surface);color:var(--identity-muted);border-radius:13px;}.g-icon-btn:hover{color:var(--g-red);border-color:var(--identity-danger);background:var(--identity-surface);}.g-icon-btn svg{width:21px;}.g-bottom-nav{display:none;}
.g-toast{display:flex;gap:10px;align-items:flex-start;padding:13px 15px;border-radius:15px;margin-bottom:18px;border:1px solid;}.g-toast__icon{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;font-weight:800;flex:0 0 auto;}.g-toast--success{background:var(--g-green-soft);border-color:var(--identity-success);color:var(--identity-success);}.g-toast--success .g-toast__icon{background:var(--identity-success-soft);}.g-toast--danger{background:var(--g-red-soft);border-color:var(--identity-danger);color:var(--identity-danger);}.g-toast--danger .g-toast__icon{background:var(--identity-danger-soft);}
.g-eyebrow{display:block;color:var(--g-accent);font-size:12px;font-weight:800;letter-spacing:.02em;margin-bottom:4px;}.g-welcome{background:linear-gradient(125deg,var(--identity-hero-start),var(--identity-hero-end));color:var(--identity-on-hero);border-radius:26px;padding:28px 30px;display:flex;justify-content:space-between;align-items:center;gap:18px;overflow:hidden;position:relative;}.g-welcome:after{content:"";position:absolute;width:220px;height:220px;border:38px solid color-mix(in srgb, var(--identity-hero-end) 5.500%, transparent);border-radius:50%;left:-70px;top:-90px;}.g-welcome .g-eyebrow{color:var(--identity-on-hero);}.g-welcome h1{margin:0;font-size:27px;line-height:1.25;}.g-welcome p{margin:6px 0 0;color:var(--identity-on-hero);}.g-welcome__actions{display:flex;gap:9px;position:relative;z-index:1;}.g-soft-action{display:flex;align-items:center;gap:8px;padding:10px 13px;border:1px solid color-mix(in srgb, var(--identity-border) 20.000%, transparent);border-radius:13px;background:color-mix(in srgb, var(--identity-surface) 10.000%, transparent);color:var(--identity-text);}.g-soft-action:hover{background:color-mix(in srgb, var(--identity-surface) 16.000%, transparent);}.g-soft-action:disabled{opacity:.75;cursor:default;}.g-soft-action svg{width:19px;height:19px;}.g-alert-strip{margin-top:14px;background:var(--identity-surface);border:1px solid var(--g-line);border-radius:18px;padding:13px 15px;display:flex;align-items:center;gap:12px;box-shadow:var(--g-shadow);}.g-alert-strip__icon{width:38px;height:38px;border-radius:13px;background:var(--g-red-soft);color:var(--g-red);display:grid;place-items:center;font-weight:800;}.g-alert-strip>span:nth-child(2){display:grid;}.g-alert-strip small{color:var(--g-muted);font-size:12px;margin-top:1px;}.g-alert-strip__arrow{margin-inline-start:auto;color:var(--g-accent);font-size:20px;}.g-section-heading{margin:28px 0 13px;display:flex;align-items:end;justify-content:space-between;gap:12px;}.g-section-heading h2{margin:0;font-size:21px;}.g-count-chip{padding:5px 10px;background:var(--identity-surface);color:var(--identity-muted);border-radius:999px;font-size:12px;font-weight:700;}
.g-children-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}.g-child-card{background:var(--identity-surface);border:1px solid var(--g-line);border-radius:23px;padding:19px;box-shadow:var(--g-shadow);position:relative;overflow:hidden;}.g-child-card:before{content:"";position:absolute;inset-inline-start:0;top:0;bottom:0;width:4px;background:var(--identity-surface-soft);}.g-child-card--present:before{background:var(--g-green);}.g-child-card--late:before{background:var(--g-amber);}.g-child-card--absent:before{background:var(--g-red);}.g-child-card--excused:before{background:var(--g-blue);}.g-child-card__top{display:flex;align-items:center;gap:13px;}.g-student-avatar{width:62px;height:62px;border-radius:19px;background:var(--g-accent-soft);display:grid;place-items:center;overflow:visible;position:relative;flex:0 0 auto;color:var(--identity-text);font-size:25px;font-weight:800;}.g-student-avatar img{width:100%;height:100%;object-fit:cover;border-radius:19px;}.g-status-dot{position:absolute;width:14px;height:14px;border-radius:50%;bottom:-3px;left:-3px;background:var(--identity-surface-soft);border:3px solid var(--identity-border);}.g-child-card--present .g-status-dot{background:var(--g-green);}.g-child-card--late .g-status-dot{background:var(--g-amber);}.g-child-card--absent .g-status-dot{background:var(--g-red);}.g-child-card--excused .g-status-dot{background:var(--g-blue);}.g-child-card__identity{min-width:0;flex:1;}.g-child-card__identity h3{font-size:18px;margin:5px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.g-child-card__identity p{margin:1px 0;color:var(--g-muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.g-status-pill{display:inline-flex;align-items:center;width:max-content;border-radius:999px;padding:4px 9px;font-size:11px;font-weight:800;background:var(--identity-surface);color:var(--identity-muted);}.g-status-pill--present,.g-status-pill--approved{background:var(--g-green-soft);color:var(--g-green);}.g-status-pill--late,.g-status-pill--pending{background:var(--g-amber-soft);color:var(--g-amber);}.g-status-pill--absent,.g-status-pill--rejected{background:var(--g-red-soft);color:var(--g-red);}.g-status-pill--excused{background:var(--g-blue-soft);color:var(--g-blue);}.g-status-pill--holiday,.g-status-pill--cancelled{background:var(--identity-surface-soft);color:var(--identity-muted);}.g-student-meta{display:grid;grid-template-columns:repeat(3,1fr);margin-top:16px;padding:12px 0;border-top:1px solid var(--identity-border);border-bottom:1px solid var(--identity-border);}.g-student-meta span{display:grid;text-align:center;min-width:0;padding:0 5px;border-inline-start:1px solid var(--identity-border);}.g-student-meta span:first-child{border-inline-start:0;}.g-student-meta small,.g-today-times small{color:var(--g-muted);font-size:10px;}.g-student-meta strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.g-today-times{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:13px;}.g-today-times>div{display:flex;align-items:center;gap:9px;background:var(--identity-surface);border-radius:14px;padding:10px;}.g-time-icon{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;}.g-time-icon svg{width:18px;}.g-time-icon--in{background:var(--g-green-soft);color:var(--g-green);}.g-time-icon--out{background:var(--g-blue-soft);color:var(--g-blue);}.g-today-times span:last-child{display:grid;}.g-today-times strong{font-size:16px;line-height:1.1;}.g-card-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:12px;}.g-action-tile{display:grid;grid-template-columns:35px 1fr;grid-template-rows:auto auto;column-gap:8px;align-items:center;padding:10px;background:var(--identity-surface);border:1px solid var(--g-line);border-radius:14px;}.g-action-tile>span{width:35px;height:35px;grid-row:1/3;border-radius:11px;background:var(--g-accent-soft);color:var(--g-accent);display:grid;place-items:center;}.g-action-tile svg{width:19px;}.g-action-tile b{font-size:12px;}.g-action-tile small{font-size:9px;color:var(--g-muted);}.g-action-tile:hover{border-color:var(--identity-border);background:var(--identity-surface);}
.g-page-title{padding:8px 2px 4px;}.g-page-title h1{font-size:28px;margin:0;}.g-page-title p{color:var(--g-muted);margin:4px 0 0;}.g-page-title--with-action{display:flex;justify-content:space-between;align-items:end;gap:15px;}.g-page-hero{background:var(--identity-surface);border:1px solid var(--g-line);border-radius:22px;padding:18px;display:flex;align-items:center;gap:13px;box-shadow:var(--g-shadow);}.g-page-hero h1{font-size:21px;margin:0;}.g-page-hero p{margin:2px 0 0;color:var(--g-muted);font-size:12px;}.g-page-hero--compact{max-width:100%;}.g-back{width:38px;height:38px;border-radius:12px;background:var(--identity-surface);color:var(--identity-muted);display:grid;place-items:center;flex:0 0 auto;}.g-back svg{width:19px;}.g-mini-avatar{width:52px;height:52px;border-radius:16px;background:var(--g-accent-soft);color:var(--identity-text);display:grid;place-items:center;font-size:21px;font-weight:800;overflow:hidden;flex:0 0 auto;}.g-mini-avatar img{width:100%;height:100%;object-fit:cover;}.g-metrics-row{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:14px;}.g-metric{background:var(--identity-surface);border:1px solid var(--g-line);border-radius:16px;padding:13px;display:grid;}.g-metric span{font-size:11px;color:var(--g-muted);}.g-metric strong{font-size:24px;line-height:1.2;margin-top:4px;}.g-metric small{font-size:10px;color:var(--identity-muted);}.g-attendance-list{display:grid;gap:10px;}.g-attendance-day{background:var(--identity-surface);border:1px solid var(--g-line);border-radius:18px;padding:13px;display:grid;grid-template-columns:70px 1fr;gap:13px;align-items:stretch;}.g-attendance-date{background:var(--identity-surface);border-radius:14px;display:grid;place-items:center;align-content:center;text-align:center;}.g-attendance-date strong{font-size:24px;line-height:1;}.g-attendance-date span{font-size:10px;color:var(--g-muted);margin-top:5px;}.g-attendance-info{min-width:0;}.g-attendance-info__head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}.g-warning-chip{padding:3px 8px;background:var(--g-red-soft);color:var(--g-red);border-radius:999px;font-size:10px;font-weight:700;}.g-attendance-times{display:grid;grid-template-columns:1fr 1px 1fr;gap:12px;align-items:center;margin-top:10px;}.g-attendance-times>span{display:grid;}.g-attendance-times small{font-size:10px;color:var(--g-muted);}.g-attendance-times b{font-size:16px;}.g-attendance-times i{height:26px;background:var(--g-line);}
.g-grade-summary{margin-top:14px;display:grid;grid-template-columns:2fr 1fr;gap:10px;}.g-grade-summary>div{background:var(--identity-surface);border:1px solid var(--g-line);border-radius:18px;padding:16px;display:grid;}.g-grade-summary span{font-size:11px;color:var(--g-muted);}.g-grade-summary strong{font-size:26px;margin-top:3px;}.g-grade-summary small{font-size:10px;color:var(--identity-muted);}.g-grade-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;}.g-grade-card{background:var(--identity-surface);border:1px solid var(--g-line);border-radius:19px;padding:16px;box-shadow:0 7px 20px color-mix(in srgb, var(--identity-shadow-color) 4.500%, transparent);}.g-grade-card__top{display:flex;justify-content:space-between;align-items:center;}.g-grade-icon{width:38px;height:38px;border-radius:12px;background:var(--g-accent-soft);color:var(--g-accent);display:grid;place-items:center;}.g-grade-icon svg{width:20px;}.g-grade-pct{font-size:11px;font-weight:800;padding:4px 8px;border-radius:999px;background:var(--identity-surface);}.g-grade-card--excellent .g-grade-pct{background:var(--g-green-soft);color:var(--g-green);}.g-grade-card--good .g-grade-pct{background:var(--g-blue-soft);color:var(--g-blue);}.g-grade-card--pass .g-grade-pct{background:var(--g-amber-soft);color:var(--g-amber);}.g-grade-card--low .g-grade-pct{background:var(--g-red-soft);color:var(--g-red);}.g-grade-card h3{font-size:15px;margin:13px 0 5px;}.g-score{display:flex;align-items:baseline;gap:5px;}.g-score strong{font-size:27px;}.g-score span{color:var(--g-muted);font-size:12px;}.g-progress{height:7px;background:var(--identity-surface);border-radius:99px;overflow:hidden;margin:8px 0;}.g-progress i{height:100%;display:block;background:var(--g-accent);border-radius:99px;}.g-grade-card--excellent .g-progress i{background:var(--g-green);}.g-grade-card--good .g-progress i{background:var(--g-blue);}.g-grade-card--pass .g-progress i{background:var(--g-amber);}.g-grade-card--low .g-progress i{background:var(--g-red);}.g-grade-note{font-size:12px;margin:10px 0;padding:9px;background:var(--identity-surface);border-radius:11px;}.g-grade-date{color:var(--g-muted);font-size:10px;}
.g-form-card{background:var(--identity-surface);border:1px solid var(--g-line);border-radius:22px;padding:20px;margin-top:17px;box-shadow:var(--g-shadow);}.g-form-card__head{display:flex;align-items:center;gap:12px;margin-bottom:15px;padding-bottom:14px;border-bottom:1px solid var(--identity-border);}.g-form-card__icon{width:44px;height:44px;border-radius:14px;background:var(--g-accent-soft);color:var(--g-accent);display:grid;place-items:center;}.g-form-card__icon svg{width:22px;}.g-form-card__head h2{font-size:17px;margin:0;}.g-form-card__head p{font-size:11px;color:var(--g-muted);margin:2px 0 0;}.g-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;}.g-field{display:grid;gap:6px;margin:0;}.g-field>span:first-child{font-size:12px;font-weight:700;color:var(--identity-muted);}.g-field>span small{color:var(--g-muted);font-weight:400;}.g-field--full{grid-column:1/-1;}.g-field input,.g-field select,.g-field textarea{width:100%;border:1px solid var(--identity-border);background:var(--identity-surface);color:var(--g-ink);border-radius:13px;padding:11px 12px;outline:none;transition:.18s;}.g-field input:focus,.g-field select:focus,.g-field textarea:focus{border-color:var(--identity-border);box-shadow:0 0 0 3px color-mix(in srgb, var(--identity-shadow-color) 10.000%, transparent);}.g-field textarea{min-height:96px;resize:vertical;}.g-date-wrap{width:100%;border:1px solid var(--identity-border);border-radius:13px;padding:11px 12px;background:var(--identity-surface);}.g-date-wrap input{display:block;width:100%;min-width:0;border:0!important;background:transparent!important;padding:0!important;box-shadow:none!important;}.g-form-actions{display:flex;justify-content:flex-start;}.g-primary,.g-secondary{border:0;border-radius:13px;padding:10px 15px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:8px;}.g-primary{background:var(--g-accent);color:var(--identity-text);box-shadow:0 8px 18px color-mix(in srgb, var(--identity-shadow-color) 16.000%, transparent);}.g-primary:hover{background:var(--identity-primary);}.g-primary--large{width:100%;padding:13px 16px;font-size:15px;}.g-secondary{background:var(--identity-surface);color:var(--identity-muted);}.g-leave-list{display:grid;gap:10px;}.g-leave-card{background:var(--identity-surface);border:1px solid var(--g-line);border-radius:18px;padding:16px;}.g-leave-card__top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;}.g-leave-card__top small{color:var(--g-muted);}.g-leave-card__top h3{font-size:15px;margin:2px 0;}.g-leave-card__top h3 span{color:var(--identity-muted);margin:0 3px;}.g-leave-reason{font-size:12px;margin:11px 0 0;}.g-decision{margin-top:11px;background:var(--identity-surface);border-radius:12px;padding:10px 12px;}.g-decision span{font-size:10px;font-weight:800;color:var(--g-muted);}.g-decision p{font-size:12px;margin:2px 0 0;}.g-decision--empty p{color:var(--identity-muted);}
.g-compose-card{display:none;}.g-compose-card.open{display:block;}.g-upload{border:1px dashed var(--identity-border);background:var(--identity-surface);border-radius:14px;padding:13px;display:flex;align-items:center;gap:10px;cursor:pointer;}.g-upload input{display:none;}.g-upload__icon{width:36px;height:36px;border-radius:11px;background:var(--g-accent-soft);color:var(--g-accent);display:grid;place-items:center;font-size:20px;}.g-upload>span:last-child{display:grid;}.g-upload strong{font-size:12px;}.g-upload small{font-size:10px;color:var(--g-muted);}.g-thread-list{display:grid;gap:9px;}.g-thread-card{background:var(--identity-surface);border:1px solid var(--g-line);border-radius:17px;padding:12px 13px;display:grid;grid-template-columns:46px 1fr auto;align-items:center;gap:11px;}.g-thread-card:hover{border-color:var(--identity-border);background:var(--identity-surface);}.g-thread-avatar{width:46px;height:46px;border-radius:15px;background:var(--g-accent-soft);color:var(--identity-primary-text);display:grid;place-items:center;font-weight:800;font-size:17px;flex:0 0 auto;}.g-thread-content{display:grid;min-width:0;}.g-thread-content strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.g-thread-content small{font-size:11px;color:var(--g-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.g-thread-meta{display:grid;text-align:left;justify-items:end;gap:5px;}.g-thread-meta time{font-size:10px;color:var(--g-muted);}.g-thread-meta i{font-style:normal;color:var(--g-accent);}.g-chat-head{background:var(--identity-surface);border:1px solid var(--g-line);border-radius:18px;padding:12px;display:flex;align-items:center;gap:10px;}.g-chat-head>div:last-child{min-width:0;}.g-chat-head h1{font-size:16px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.g-chat-head p{font-size:10px;color:var(--g-muted);margin:2px 0 0;}.g-chat{display:flex;flex-direction:column;gap:8px;padding:18px 5px;}.g-bubble{max-width:76%;padding:11px 13px;border-radius:17px;background:var(--identity-surface);border:1px solid var(--g-line);}.g-bubble--mine{align-self:flex-start;background:var(--identity-surface-soft);border-color:var(--identity-primary-text);border-bottom-left-radius:5px;}.g-bubble--admin{align-self:flex-end;border-bottom-right-radius:5px;}.g-bubble__sender{font-size:10px;color:var(--g-accent);font-weight:800;}.g-bubble p{margin:4px 0;font-size:13px;white-space:pre-wrap;}.g-bubble time{display:block;font-size:9px;color:var(--g-muted);margin-top:5px;}.g-attachment{margin-top:7px;background:color-mix(in srgb, var(--identity-surface) 65.000%, transparent);border:1px solid color-mix(in srgb, var(--identity-border) 80.000%, transparent);border-radius:11px;padding:8px;display:flex;gap:8px;align-items:center;}.g-attachment>span:last-child{display:grid;}.g-attachment strong{font-size:10px;}.g-attachment small{font-size:9px;color:var(--g-muted);}.g-reply-box{position:sticky;bottom:14px;background:var(--identity-surface);border:1px solid var(--g-line);border-radius:18px;padding:10px;box-shadow:0 14px 34px color-mix(in srgb, var(--identity-shadow-color) 12.000%, transparent);}.g-reply-box textarea{width:100%;min-height:70px;max-height:160px;resize:vertical;border:0;outline:none;padding:5px;background:transparent;}.g-reply-actions{border-top:1px solid var(--identity-border);padding-top:8px;display:flex;align-items:center;gap:8px;}.g-attach-button{width:36px;height:36px;border-radius:11px;background:var(--identity-surface);color:var(--identity-muted);display:grid;place-items:center;cursor:pointer;}.g-attach-button input{display:none;}.g-attach-button svg{width:19px;}.g-reply-file{font-size:10px;color:var(--g-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.g-send-button{width:39px;height:39px;border:0;border-radius:12px;background:var(--g-accent);color:var(--identity-on-primary);display:grid;place-items:center;margin-inline-start:auto;}.g-send-button svg{width:19px;}
.g-info-strip{margin-top:14px;background:var(--g-accent-soft);color:var(--identity-text);border-radius:14px;padding:10px 13px;display:flex;align-items:center;gap:8px;}.g-info-strip strong{width:30px;height:30px;background:var(--identity-surface);border-radius:9px;display:grid;place-items:center;}.g-notification-list{display:grid;gap:9px;margin-top:17px;}.g-notification-card{background:var(--identity-surface);border:1px solid var(--g-line);border-radius:17px;padding:13px;display:grid;grid-template-columns:44px 1fr auto;align-items:start;gap:11px;}.g-notification-card--unread{border-color:var(--identity-border);background:var(--identity-surface);}.g-notification-icon{width:44px;height:44px;border-radius:14px;background:var(--identity-surface);color:var(--identity-muted);display:grid;place-items:center;}.g-notification-icon svg{width:21px;}.g-notification-icon--grade{background:var(--g-violet-soft);color:var(--g-violet);}.g-notification-icon--attendance{background:var(--g-green-soft);color:var(--g-green);}.g-notification-icon--leave{background:var(--g-amber-soft);color:var(--g-amber);}.g-notification-icon--message{background:var(--g-blue-soft);color:var(--g-blue);}.g-notification-content{min-width:0;}.g-notification-title{display:flex;gap:7px;align-items:center;flex-wrap:wrap;}.g-notification-title i{font-style:normal;background:var(--g-accent);color:var(--identity-text);border-radius:999px;padding:2px 6px;font-size:8px;}.g-notification-content p{font-size:12px;margin:4px 0;color:var(--identity-muted);}.g-notification-content time{font-size:9px;color:var(--g-muted);}.g-read-button{width:31px;height:31px;border:0;border-radius:10px;background:var(--g-accent-soft);color:var(--g-accent);font-weight:800;}
.g-pager{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:16px;}.g-pager a,.g-pager>span{min-width:70px;text-align:center;padding:7px 10px;border-radius:11px;background:var(--identity-surface);border:1px solid var(--g-line);font-size:11px;}.g-pager>span:nth-child(2){min-width:auto;background:transparent;border:0;color:var(--g-muted);}.g-pager .disabled{opacity:.45;}.g-empty-state{grid-column:1/-1;background:var(--identity-surface);border:1px dashed var(--identity-border);border-radius:20px;padding:34px 20px;text-align:center;}.g-empty-state>span{width:50px;height:50px;border-radius:15px;background:var(--identity-surface);color:var(--g-accent);display:grid;place-items:center;margin:0 auto 10px;font-size:21px;}.g-empty-state svg{width:25px;}.g-empty-state h3{margin:0;font-size:16px;}.g-empty-state p{margin:4px 0 0;color:var(--g-muted);font-size:12px;}
/* Login */
.g-auth{min-height:100vh;background:var(--identity-background);}.g-auth-shell{min-height:100vh;display:grid;grid-template-columns:1.05fr .95fr;}.g-auth-brand{background:linear-gradient(125deg,var(--identity-hero-start),var(--identity-hero-end));color:var(--identity-on-hero);padding:8vh clamp(38px,7vw,100px);display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden;}.g-auth-brand:after{content:"";width:380px;height:380px;border:60px solid color-mix(in srgb, var(--identity-hero-end) 4.500%, transparent);border-radius:50%;position:absolute;left:-130px;bottom:-130px;}.g-auth-logo{width:76px;height:76px;border-radius:24px;background:color-mix(in srgb, var(--identity-surface) 10.000%, transparent);display:grid;place-items:center;margin-bottom:26px;}.g-auth-logo svg{width:47px;stroke:var(--identity-text);stroke-width:2.1;}.g-auth-kicker{font-size:12px;color:var(--identity-primary-text);font-weight:800;}.g-auth-brand h1{font-size:38px;line-height:1.35;margin:7px 0 10px;max-width:600px;}.g-auth-brand>p{font-size:15px;color:var(--identity-on-hero);max-width:560px;margin:0 0 30px;}.g-auth-feature{display:flex;align-items:center;gap:11px;margin-top:11px;position:relative;z-index:1;}.g-auth-feature>span{width:29px;height:29px;border-radius:10px;background:color-mix(in srgb, var(--identity-surface) 12.000%, transparent);display:grid;place-items:center;}.g-auth-feature>div{display:grid;}.g-auth-feature strong{font-size:13px;}.g-auth-feature small{font-size:10px;color:var(--identity-text);}.g-auth-card{width:min(420px,calc(100% - 44px));margin:auto;background:var(--identity-surface);border:1px solid var(--g-line);border-radius:26px;padding:29px;box-shadow:0 22px 60px color-mix(in srgb, var(--identity-shadow-color) 11.000%, transparent);}.g-auth-card__head{display:flex;align-items:center;gap:11px;}.g-auth-mobile-logo{display:none;width:45px;height:45px;border-radius:14px;background:var(--g-brand);color:var(--identity-text);place-items:center;}.g-auth-mobile-logo svg{width:25px;}.g-auth-card__head small{color:var(--g-accent);font-size:11px;font-weight:800;}.g-auth-card__head h2{font-size:25px;margin:0;}.g-auth-help{color:var(--g-muted);font-size:12px;margin:8px 0 21px;}.g-auth-error{display:flex;gap:9px;align-items:flex-start;background:var(--g-red-soft);color:var(--g-red);border:1px solid var(--identity-danger);border-radius:13px;padding:10px 11px;margin-bottom:14px;font-size:12px;}.g-auth-error>span{width:22px;height:22px;border-radius:8px;background:var(--identity-surface-soft);display:grid;place-items:center;font-weight:900;}.g-input-wrap{position:relative;display:flex!important;align-items:center;}.g-input-wrap svg{position:absolute;right:11px;width:19px;color:var(--identity-muted);}.g-input-wrap input{padding-right:39px!important;}.g-auth-card .g-field{margin-bottom:13px;}.g-auth-footnote{text-align:center;font-size:10px;color:var(--g-muted);margin:14px 0 0;}
@media(max-width:900px){
  .g-main{padding:18px 16px 96px;}.g-header__inner{min-height:64px;padding:0 16px;}.g-brand__mark{width:38px;height:38px;border-radius:12px;}.g-brand__text strong{font-size:14px;}.g-desktop-nav{display:none;}.g-logout-form{margin-inline-start:auto;}.g-bottom-nav{position:fixed;z-index:60;display:grid;grid-template-columns:repeat(4,1fr);left:12px;right:12px;bottom:max(10px,env(safe-area-inset-bottom));background:color-mix(in srgb, var(--identity-surface) 96.000%, transparent);border:1px solid color-mix(in srgb, var(--identity-border) 95.000%, transparent);border-radius:20px;padding:6px;box-shadow:0 14px 40px color-mix(in srgb, var(--identity-shadow-color) 16.000%, transparent);backdrop-filter:blur(16px);}.g-bottom-nav a{height:55px;border-radius:15px;display:grid;place-items:center;align-content:center;gap:2px;color:var(--identity-muted);font-size:9px;font-weight:700;}.g-bottom-nav a svg{width:20px;height:20px;}.g-bottom-nav a.active{background:var(--g-accent-soft);color:var(--identity-text);}.g-welcome{padding:22px;}.g-welcome h1{font-size:23px;}.g-children-grid{grid-template-columns:1fr;}.g-grade-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.g-auth-shell{grid-template-columns:1fr;}.g-auth-brand{display:none;}.g-auth-card{margin:auto;}.g-auth-mobile-logo{display:grid;}
}
@media(max-width:620px){
  body{font-size:14px;}.g-main{padding:14px 12px 92px;}.g-header__inner{padding:0 13px;}.g-brand__text small{display:none;}.g-icon-btn{width:38px;height:38px;}.g-welcome{border-radius:21px;padding:18px;display:block;}.g-welcome h1{font-size:21px;}.g-welcome p{font-size:12px;}.g-welcome__actions{margin-top:15px;display:grid;grid-template-columns:1fr 1fr;}.g-soft-action{font-size:11px;padding:9px;}.g-alert-strip{border-radius:16px;padding:11px;}.g-alert-strip small{display:none;}.g-section-heading{margin-top:22px;}.g-section-heading h2{font-size:18px;}.g-child-card{border-radius:20px;padding:15px;}.g-student-avatar{width:56px;height:56px;border-radius:17px;}.g-student-avatar img{border-radius:17px;}.g-child-card__identity h3{font-size:16px;}.g-student-meta{margin-top:13px;padding:10px 0;}.g-today-times{gap:7px;}.g-today-times>div{padding:9px;}.g-card-actions{gap:7px;}.g-action-tile{padding:9px;}.g-page-title h1{font-size:23px;}.g-page-title p{font-size:11px;}.g-page-title--with-action{align-items:flex-start;}.g-page-title--with-action .g-primary{padding:9px 11px;font-size:11px;white-space:nowrap;}.g-page-hero{padding:12px;border-radius:18px;}.g-page-hero .g-back{width:34px;height:34px;}.g-mini-avatar{width:45px;height:45px;border-radius:14px;}.g-page-hero h1{font-size:16px;}.g-metrics-row{grid-template-columns:repeat(2,1fr);gap:7px;}.g-metric{padding:11px;}.g-metric strong{font-size:21px;}.g-attendance-day{grid-template-columns:59px 1fr;padding:10px;gap:10px;border-radius:16px;}.g-attendance-date strong{font-size:21px;}.g-attendance-times{gap:8px;}.g-grade-summary{grid-template-columns:1.5fr 1fr;gap:7px;}.g-grade-summary>div{padding:13px;}.g-grade-summary strong{font-size:23px;}.g-grade-grid{grid-template-columns:1fr;gap:9px;}.g-grade-card{padding:14px;}.g-form-card{padding:14px;border-radius:19px;}.g-form-grid{grid-template-columns:1fr;}.g-field--full{grid-column:auto;}.g-leave-card{padding:13px;}.g-leave-card__top h3{font-size:12px;}.g-thread-card{grid-template-columns:42px 1fr auto;padding:10px;}.g-thread-avatar{width:42px;height:42px;border-radius:13px;}.g-thread-meta time{display:none;}.g-bubble{max-width:88%;}.g-notification-card{grid-template-columns:40px 1fr auto;padding:11px;}.g-notification-icon{width:40px;height:40px;}.g-notification-content p{font-size:11px;}.g-auth{background:var(--identity-background);}.g-auth-card{width:calc(100% - 24px);padding:22px;border-radius:22px;}.g-auth-card__head h2{font-size:22px;}.g-auth-help{margin-bottom:17px;}
}

/* Phase 08 — guardian engagement */
.g-service-links{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px;}.g-service-links a{display:grid;grid-template-columns:42px 1fr;grid-template-rows:auto auto;gap:0 10px;align-items:center;background:var(--identity-surface);border:1px solid var(--g-line);border-radius:17px;padding:12px 14px;box-shadow:var(--g-shadow);}.g-service-links a>span{grid-row:1/3;width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:var(--g-accent-soft);font-size:19px;}.g-service-links strong{font-size:13px;}.g-service-links small{font-size:10px;color:var(--g-muted);}
.g-announcement-list,.g-appointment-list,.g-month-days{display:flex;flex-direction:column;gap:10px;}.g-announcement-card,.g-appointment-card,.g-detail-card{background:var(--identity-surface);border:1px solid var(--g-line);border-radius:19px;padding:16px 17px;box-shadow:var(--g-shadow);}.g-announcement-card{border-inline-start:4px solid var(--identity-border);}.g-announcement-card--important{border-inline-start-color:var(--g-amber);}.g-announcement-card--urgent{border-inline-start-color:var(--g-red);}.g-announcement-card.is-unread{background:var(--identity-surface);border-color:var(--identity-border);}.g-announcement-card__top,.g-announcement-card__meta,.g-appointment-card__top{display:flex;align-items:center;justify-content:space-between;gap:10px;}.g-announcement-card__top time,.g-announcement-card__meta,.g-appointment-card small{font-size:10px;color:var(--g-muted);}.g-announcement-card h3,.g-appointment-card h3{font-size:15px;margin:9px 0 3px;}.g-announcement-card p{margin:0;color:var(--identity-muted);font-size:12px;}.g-announcement-card__meta{margin-top:10px;}.g-announcement-card__meta b{color:var(--g-accent);}.g-priority{display:inline-flex;padding:4px 9px;border-radius:999px;font-size:10px;font-weight:800;background:var(--identity-surface);color:var(--identity-muted);}.g-priority--important{background:var(--g-amber-soft);color:var(--g-amber);}.g-priority--urgent{background:var(--g-red-soft);color:var(--g-red);}.g-detail-card{margin-top:12px;}.g-detail-card--urgent{border-top:4px solid var(--g-red);}.g-detail-card--important{border-top:4px solid var(--g-amber);}.g-detail-body{font-size:14px;line-height:2;margin:0;}.g-detail-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px;padding-top:12px;border-top:1px solid var(--g-line);font-size:11px;color:var(--g-muted);}.g-inline-button{display:inline-flex!important;width:max-content;margin-top:14px;}.g-read-confirm{margin-top:10px;padding:10px 12px;background:var(--g-green-soft);color:var(--g-green);border-radius:13px;font-size:11px;font-weight:700;}.g-quick-links{display:flex;justify-content:flex-end;margin-top:10px;}.g-absence-justify{margin-top:11px;padding-top:10px;border-top:1px solid var(--identity-border);}.g-absence-justify summary{cursor:pointer;color:var(--g-accent);font-size:11px;font-weight:800;}.g-justify-form{display:grid;gap:8px;margin-top:9px;}.g-justify-form textarea{width:100%;min-height:82px;border:1px solid var(--g-line);border-radius:13px;padding:10px;background:var(--identity-surface);}.g-justification-status{display:flex;align-items:center;gap:8px;}.g-justification-status small{color:var(--g-muted);}
.g-appointment-meta{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px;}.g-appointment-meta>span{display:grid;background:var(--g-surface-2);border-radius:13px;padding:9px;}.g-appointment-meta small{font-size:9px;color:var(--g-muted);}.g-appointment-meta b{font-size:11px;}.g-response-actions{display:flex;gap:8px;margin-top:10px;}.g-secondary{border:1px solid var(--g-line);background:var(--identity-surface);color:var(--g-ink);border-radius:12px;padding:9px 13px;}.g-month-switcher{display:flex;align-items:end;gap:8px;margin:12px 0;}.g-month-switcher label{display:grid;gap:4px;font-size:11px;color:var(--g-muted);}.g-month-switcher input{border:1px solid var(--g-line);border-radius:11px;padding:9px 10px;background:var(--identity-surface);}.g-metrics-row--monthly{grid-template-columns:repeat(6,1fr);}.g-rate-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px;}.g-rate-grid>div{background:var(--identity-surface);border:1px solid var(--g-line);border-radius:17px;padding:14px;display:grid;grid-template-columns:1fr auto;gap:8px;}.g-rate-grid span{font-size:11px;color:var(--g-muted);}.g-rate-grid strong{font-size:20px;}.g-rate-grid i{grid-column:1/-1;height:7px;border-radius:999px;background:linear-gradient(to left,var(--g-accent) var(--rate),var(--identity-surface-soft) var(--rate));display:block;}.g-month-days article{display:grid;grid-template-columns:62px 110px 1fr;align-items:center;gap:10px;background:var(--identity-surface);border:1px solid var(--g-line);border-radius:15px;padding:10px 12px;}.g-month-days article>div:first-child{display:grid;}.g-month-days article>div:first-child strong{font-size:18px;}.g-month-days article>div:first-child small{font-size:9px;color:var(--g-muted);}.g-month-times{display:flex;gap:13px;justify-content:flex-end;align-items:center;font-size:10px;color:var(--g-muted);}.g-month-times b{color:var(--g-ink);}.g-month-times em{font-style:normal;color:var(--g-amber);font-weight:700;}
@media(max-width:900px){.g-service-links{grid-template-columns:1fr 1fr;}.g-metrics-row--monthly{grid-template-columns:repeat(3,1fr);}}
@media(max-width:620px){.g-service-links{grid-template-columns:1fr;}.g-announcement-card,.g-appointment-card,.g-detail-card{padding:14px;}.g-appointment-meta,.g-rate-grid{grid-template-columns:1fr;}.g-metrics-row--monthly{grid-template-columns:repeat(2,1fr);}.g-month-days article{grid-template-columns:52px 92px 1fr;}.g-month-times{flex-direction:column;align-items:flex-end;gap:2px;}.g-response-actions{flex-direction:column;}.g-response-actions form,.g-response-actions button{width:100%;}}

/* Professional dark mobile UI */
:root{
  color-scheme:dark;
  --g-bg:var(--identity-background);--g-surface:var(--identity-surface);--g-surface-2:var(--identity-surface-soft);--g-ink:var(--identity-text);--g-muted:var(--identity-muted);--g-line:var(--identity-border);
  --g-brand:var(--identity-primary);--g-brand-2:var(--identity-primary-hover);--g-accent:var(--identity-primary-text);--g-accent-soft:var(--identity-primary-soft);
  --g-green:var(--identity-success);--g-green-soft:var(--identity-success-soft);--g-amber:var(--identity-warning);--g-amber-soft:var(--identity-warning-soft);
  --g-red:var(--identity-danger);--g-red-soft:var(--identity-danger-soft);--g-blue:var(--identity-info);--g-blue-soft:var(--identity-info-soft);
  --g-violet:var(--identity-violet);--g-violet-soft:var(--identity-violet-soft);--g-shadow:0 14px 38px color-mix(in srgb, var(--identity-shadow-color) 24.000%, transparent)
;}
html,body,.g-app,.g-shell{background:var(--identity-background);color:var(--g-ink);}body{background-image:radial-gradient(circle at 15% -8%,color-mix(in srgb, var(--identity-primary) 8.000%, transparent),transparent 32%),linear-gradient(180deg,var(--identity-background),var(--identity-background));background-attachment:fixed;}
*{scrollbar-width:thin;scrollbar-color:var(--identity-border) var(--identity-text);}*::-webkit-scrollbar{width:8px;height:8px;}*::-webkit-scrollbar-track{background:var(--identity-background);}*::-webkit-scrollbar-thumb{background:var(--identity-surface-soft);border-radius:999px;}::selection{background:color-mix(in srgb, var(--identity-primary) 28.000%, transparent);color:var(--identity-text);}
.g-header{background:color-mix(in srgb, var(--identity-shadow-color) 93.000%, transparent);border-color:var(--identity-border);box-shadow:0 10px 30px color-mix(in srgb, var(--identity-shadow-color) 18.000%, transparent);}.g-brand__mark{background:linear-gradient(145deg,var(--identity-primary),var(--identity-primary));box-shadow:0 8px 22px color-mix(in srgb, var(--identity-shadow-color) 18.000%, transparent);}.g-desktop-nav a{color:var(--identity-muted);}.g-desktop-nav a:hover,.g-desktop-nav a.active{background:var(--g-accent-soft);color:var(--identity-primary-text);}.g-icon-btn{background:var(--identity-background);border-color:var(--g-line);color:var(--identity-muted);}.g-icon-btn:hover{background:var(--g-red-soft);border-color:color-mix(in srgb, var(--identity-danger) 35.000%, transparent);color:var(--identity-danger);}
.g-welcome{background:linear-gradient(125deg,var(--identity-hero-start),var(--identity-hero-end));border:1px solid var(--identity-hero-end);box-shadow:var(--g-shadow);}.g-welcome .g-eyebrow{color:var(--identity-on-hero-muted);}.g-welcome p{color:var(--identity-on-hero);}.g-soft-action{background:color-mix(in srgb, var(--identity-background) 36.000%, transparent);border-color:color-mix(in srgb, var(--identity-primary-text) 22.000%, transparent);}.g-soft-action:hover{background:color-mix(in srgb, var(--identity-primary) 14.000%, transparent);}
.g-alert-strip,.g-child-card,.g-action-tile,.g-page-hero,.g-metric,.g-attendance-day,.g-grade-summary>div,.g-grade-card,.g-form-card,.g-leave-card,.g-thread-card,.g-chat-head,.g-bubble,.g-reply-box,.g-notification-card,.g-pager a,.g-pager>span,.g-empty-state,.g-service-links a,.g-announcement-card,.g-appointment-card,.g-detail-card,.g-rate-grid>div,.g-month-days article{background:var(--g-surface);border-color:var(--g-line);color:var(--g-ink);box-shadow:var(--g-shadow);}
.g-child-card,.g-grade-card,.g-form-card,.g-detail-card{background:linear-gradient(145deg,var(--identity-background),var(--identity-background));}.g-child-card:hover,.g-action-tile:hover,.g-thread-card:hover,.g-service-links a:hover{background:var(--identity-background);border-color:var(--identity-border);}.g-alert-strip{background:color-mix(in srgb, var(--identity-danger-soft) 7.000%, transparent);border-color:color-mix(in srgb, var(--identity-danger) 26.000%, transparent);}
.g-count-chip,.g-back,.g-secondary,.g-grade-pct,.g-status-pill,.g-priority,.g-notification-icon,.g-attach-button,.g-empty-state>span{background:var(--identity-background);color:var(--identity-muted);}.g-back:hover,.g-secondary:hover{background:var(--identity-surface-soft);color:var(--identity-text);}.g-student-avatar,.g-mini-avatar,.g-thread-avatar,.g-grade-icon,.g-form-card__icon,.g-service-links a>span{background:var(--g-accent-soft);color:var(--identity-primary-text);}.g-status-dot{border-color:var(--g-surface);}
.g-student-meta{border-color:var(--identity-primary-text);}.g-student-meta span{border-color:var(--identity-primary-text);}.g-today-times>div,.g-attendance-date,.g-grade-note,.g-decision,.g-appointment-meta>span{background:var(--g-surface-2);}.g-attendance-times i{background:var(--g-line);}.g-progress{background:var(--identity-surface-soft);}.g-rate-grid i{background:linear-gradient(to left,var(--g-accent) var(--rate),var(--identity-surface-soft) var(--rate));}
.g-eyebrow,.g-thread-meta i,.g-alert-strip__arrow,.g-auth-card__head small,.g-quick-links a{color:var(--identity-primary-text);}.g-page-title p,.g-page-hero p,.g-child-card__identity p,.g-metric span,.g-metric small,.g-grade-summary span,.g-grade-summary small,.g-grade-date,.g-field>span small,.g-decision span,.g-thread-content small,.g-bubble time,.g-notification-content time,.g-empty-state p{color:var(--g-muted);}
.g-status-pill--present,.g-status-pill--approved{background:var(--g-green-soft);color:var(--identity-success);}.g-status-pill--late,.g-status-pill--pending,.g-priority--important{background:var(--g-amber-soft);color:var(--identity-primary-text);}.g-status-pill--absent,.g-status-pill--rejected,.g-priority--urgent{background:var(--g-red-soft);color:var(--identity-danger);}.g-status-pill--excused{background:var(--g-blue-soft);color:var(--identity-primary-text);}.g-status-pill--holiday,.g-status-pill--cancelled{background:var(--identity-surface-soft);color:var(--identity-muted);}.g-warning-chip{background:var(--g-red-soft);color:var(--identity-warning);}
.g-toast--success{background:var(--g-green-soft);border-color:color-mix(in srgb, var(--identity-success) 30.000%, transparent);color:var(--identity-success);}.g-toast--success .g-toast__icon{background:color-mix(in srgb, var(--identity-success-soft) 18.000%, transparent);}.g-toast--danger,.g-auth-error{background:var(--g-red-soft);border-color:color-mix(in srgb, var(--identity-danger) 30.000%, transparent);color:var(--identity-danger);}.g-toast--danger .g-toast__icon,.g-auth-error>span{background:color-mix(in srgb, var(--identity-danger-soft) 18.000%, transparent);}
.g-form-card__head,.g-reply-actions,.g-detail-meta,.g-absence-justify{border-color:var(--g-line);}.g-field>span:first-child{color:var(--identity-text);}.g-field input,.g-field select,.g-field textarea,.g-date-wrap,.g-justify-form textarea,.g-month-switcher input{background:var(--identity-background);color:var(--g-ink);border-color:var(--identity-border);}.g-field input::placeholder,.g-field textarea::placeholder,.g-justify-form textarea::placeholder{color:var(--identity-muted);}.g-field input:hover,.g-field select:hover,.g-field textarea:hover{border-color:var(--identity-border);}.g-field input:focus,.g-field select:focus,.g-field textarea:focus,.g-justify-form textarea:focus,.g-month-switcher input:focus{background:var(--identity-background);border-color:var(--g-accent);box-shadow:0 0 0 3px color-mix(in srgb, var(--identity-shadow-color) 13.000%, transparent);outline:none;}.g-field select option{background:var(--identity-background);color:var(--g-ink);}input[type="date"]::-webkit-calendar-picker-indicator,input[type="month"]::-webkit-calendar-picker-indicator{filter:invert(.82) sepia(.08) saturate(.7);}input:-webkit-autofill,input:-webkit-autofill:hover,input:-webkit-autofill:focus{-webkit-text-fill-color:var(--g-ink);box-shadow:0 0 0 1000px var(--identity-shadow-color) inset;}
.g-primary,.g-send-button{background:linear-gradient(135deg,var(--identity-primary),var(--identity-primary));color:var(--identity-on-primary);box-shadow:0 8px 22px color-mix(in srgb, var(--identity-shadow-color) 22.000%, transparent);}.g-primary:hover,.g-send-button:hover{background:linear-gradient(135deg,var(--identity-primary-hover),var(--identity-primary-hover));}.g-upload{background:var(--identity-background);border-color:var(--identity-border);}.g-attachment{background:var(--identity-background);border-color:var(--identity-border);}.g-bubble--mine{background:color-mix(in srgb, var(--identity-primary) 13.000%, transparent);border-color:color-mix(in srgb, var(--identity-primary-text) 28.000%, transparent);}.g-bubble--admin{background:var(--identity-background);}.g-reply-box textarea{color:var(--g-ink);}
.g-info-strip{background:var(--g-accent-soft);color:var(--identity-primary-text);}.g-info-strip strong{background:var(--identity-background);}.g-notification-card--unread,.g-announcement-card.is-unread{background:color-mix(in srgb, var(--identity-primary) 7.500%, transparent);border-color:color-mix(in srgb, var(--identity-primary-text) 36.000%, transparent);}.g-notification-content p,.g-announcement-card p{color:var(--identity-text);}.g-read-confirm{background:var(--g-green-soft);color:var(--identity-success);}.g-pager>span:nth-child(2){background:transparent;box-shadow:none;}.g-empty-state{border-style:dashed;}.g-appointment-meta>span{border:1px solid var(--identity-primary-text);}
.g-bottom-nav{background:color-mix(in srgb, var(--identity-shadow-color) 95.000%, transparent);border-color:var(--identity-border);box-shadow:0 18px 48px color-mix(in srgb, var(--identity-shadow-color) 45.000%, transparent);}.g-bottom-nav a{color:var(--identity-muted);}.g-bottom-nav a:hover{background:var(--identity-background);color:var(--identity-text);}.g-bottom-nav a.active{background:color-mix(in srgb, var(--identity-primary) 15.000%, transparent);color:var(--identity-primary-text);box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--identity-shadow-color) 12.000%, transparent);}
.g-auth{background:var(--identity-background);}.g-auth-shell{background:var(--identity-background);}.g-auth-brand{background:linear-gradient(125deg,var(--identity-hero-start),var(--identity-hero-end));}.g-auth-card{background:var(--identity-background);border-color:var(--identity-border);box-shadow:0 28px 75px color-mix(in srgb, var(--identity-shadow-color) 50.000%, transparent);}.g-auth-mobile-logo{background:linear-gradient(145deg,var(--identity-primary),var(--identity-primary));}.g-input-wrap svg{color:var(--identity-muted);}.g-auth-help,.g-auth-footnote{color:var(--g-muted);}
.g-student-avatar img,.g-mini-avatar img{object-fit:cover;}.g-month-days article{box-shadow:none;}
:focus-visible{outline:2px solid var(--identity-primary-text);outline-offset:2px;}
@media(max-width:620px){.g-auth{background:var(--identity-background);}.g-auth-card{background:var(--identity-background);}.g-bottom-nav{left:8px;right:8px;bottom:max(8px,env(safe-area-inset-bottom));}}

html,body,button,input,select,textarea{font-family:"Tajawal",Tahoma,Arial,sans-serif;}
.g-auth-install-link{display:block;margin-top:14px;text-align:center;color:var(--identity-primary-text);text-decoration:none;font-size:13px;font-weight:700;}.g-auth-install-link:hover{text-decoration:underline;}
.live-chat-status{display:inline-flex;align-items:center;margin-inline-start:7px;color:var(--identity-success)!important;font-size:10px!important;font-weight:700;}.live-chat-status.is-offline{color:var(--identity-danger)!important;}.live-chat-status.is-sending{color:var(--identity-primary-text)!important;}.g-chat[data-live-chat]{max-height:56vh;min-height:220px;overflow-y:auto;overscroll-behavior:contain;scroll-behavior:smooth;padding-inline:7px;}.g-reply-box.is-sending{opacity:.78;}.g-reply-box.is-sending textarea{pointer-events:none;}.g-send-button:disabled{cursor:wait;opacity:.65;}

/* Guardian App UI Polish Phase 01 — compact home + restrained semantic color */
.g-header-notifications{margin-inline-start:auto;position:relative;}
.g-header-notifications:hover,.g-header-notifications.active{background:var(--g-accent-soft);border-color:color-mix(in srgb, var(--identity-primary-text) 34.000%, transparent);color:var(--identity-primary-text);}
.g-welcome.g-welcome--compact{min-height:104px;padding:17px 22px;align-items:center;}
.g-welcome.g-welcome--compact:after{width:170px;height:170px;border-width:28px;left:-56px;top:-76px;}
.g-welcome--compact h1{font-size:23px;}
.g-welcome--compact p{font-size:11px;margin-top:4px;max-width:560px;}
.g-service-links--home{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.g-service-links--home a{min-height:88px;padding:12px 13px;}
.g-service-links--home a:first-child{background:linear-gradient(145deg,color-mix(in srgb, var(--identity-primary-soft) 8.000%, transparent),color-mix(in srgb, var(--identity-background) 98.000%, transparent));border-color:color-mix(in srgb, var(--identity-primary-text) 24.000%, transparent);}
.g-service-links--home a:first-child>span{background:var(--g-blue-soft);color:var(--identity-primary-text);}
.g-service-links--home a:last-child{background:linear-gradient(145deg,color-mix(in srgb, var(--identity-violet-soft) 7.000%, transparent),color-mix(in srgb, var(--identity-background) 98.000%, transparent));border-color:color-mix(in srgb, var(--identity-violet) 22.000%, transparent);}
.g-service-links--home a:last-child>span{background:var(--g-violet-soft);color:var(--identity-violet);}
.g-child-card{background:linear-gradient(145deg,var(--identity-background),var(--identity-background));}
.g-today-times>div{border:1px solid transparent;}
.g-today-times>div:first-child{background:linear-gradient(145deg,color-mix(in srgb, var(--identity-success-soft) 10.000%, transparent),color-mix(in srgb, var(--identity-background) 98.000%, transparent));border-color:color-mix(in srgb, var(--identity-success) 20.000%, transparent);}
.g-today-times>div:last-child{background:linear-gradient(145deg,color-mix(in srgb, var(--identity-danger-soft) 9.000%, transparent),color-mix(in srgb, var(--identity-background) 98.000%, transparent));border-color:color-mix(in srgb, var(--identity-danger) 20.000%, transparent);}
.g-time-icon--in{background:var(--g-green-soft);color:var(--identity-success);}
.g-time-icon--out{background:var(--g-red-soft);color:var(--identity-danger);}
.g-action-tile{transition:background .18s ease,border-color .18s ease,transform .18s ease;}
.g-action-tile:active{transform:scale(.985);}
.g-action-tile--attendance{background:linear-gradient(145deg,color-mix(in srgb, var(--identity-primary) 7.500%, transparent),color-mix(in srgb, var(--identity-background) 98.000%, transparent));border-color:color-mix(in srgb, var(--identity-primary-text) 22.000%, transparent);}
.g-action-tile--attendance>span{background:var(--g-accent-soft);color:var(--identity-primary-text);}
.g-action-tile--grades{background:linear-gradient(145deg,color-mix(in srgb, var(--identity-violet-soft) 7.000%, transparent),color-mix(in srgb, var(--identity-background) 98.000%, transparent));border-color:color-mix(in srgb, var(--identity-violet) 21.000%, transparent);}
.g-action-tile--grades>span{background:var(--g-violet-soft);color:var(--identity-violet);}
.g-action-tile--homework{background:linear-gradient(145deg,color-mix(in srgb, var(--identity-primary) 6.500%, transparent),color-mix(in srgb, var(--identity-background) 98.000%, transparent));border-color:color-mix(in srgb, var(--identity-primary-text) 19.000%, transparent);}
.g-action-tile--homework>span{background:var(--g-amber-soft);color:var(--identity-primary-text);}
.g-action-tile--schedule{background:linear-gradient(145deg,color-mix(in srgb, var(--identity-success-soft) 6.500%, transparent),color-mix(in srgb, var(--identity-background) 98.000%, transparent));border-color:color-mix(in srgb, var(--identity-success) 19.000%, transparent);}
.g-action-tile--schedule>span{background:var(--g-green-soft);color:var(--identity-success);}
.g-page-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;}
.g-page-actions form{margin:0;}
.g-push-enable{display:inline-flex;align-items:center;gap:7px;background:var(--g-accent-soft);border-color:color-mix(in srgb, var(--identity-primary-text) 30.000%, transparent);color:var(--identity-primary-text);}
.g-push-enable:hover{background:color-mix(in srgb, var(--identity-primary) 20.000%, transparent);border-color:color-mix(in srgb, var(--identity-primary-text) 42.000%, transparent);}
.g-push-enable svg{width:18px;height:18px;}
.g-push-enable:disabled{background:var(--g-green-soft);border-color:color-mix(in srgb, var(--identity-success) 26.000%, transparent);color:var(--identity-success);cursor:default;}
@media(max-width:620px){
  .g-welcome.g-welcome--compact{min-height:96px;padding:15px 17px;display:flex;}
  .g-welcome--compact h1{font-size:20px;}
  .g-welcome--compact p{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .g-service-links--home{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
  .g-service-links--home a{min-height:82px;padding:10px;grid-template-columns:38px 1fr;column-gap:8px;}
  .g-service-links--home a>span{width:38px;height:38px;border-radius:12px;font-size:17px;}
  .g-service-links--home strong{font-size:12px;}
  .g-service-links--home small{font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .g-page-title--with-action{display:grid;grid-template-columns:1fr;gap:10px;}
  .g-page-actions{justify-content:stretch;}
  .g-page-actions>*{flex:1 1 0;}
  .g-page-actions form button,.g-page-actions>button{width:100%;justify-content:center;min-height:40px;}
}


/* Guardian App UI Polish Phase 02 — attendance + monthly summary semantic color */
.g-attendance-summary-link{margin-top:12px;margin-bottom:4px;}
.g-attendance-summary-link .g-inline-button{min-height:42px;padding:9px 16px;border-radius:14px;font-size:12px;box-shadow:0 8px 22px color-mix(in srgb, var(--identity-shadow-color) 16.000%, transparent);}
.g-attendance-metrics .g-metric,.g-monthly-metrics .g-metric{position:relative;overflow:hidden;border-width:1px;box-shadow:none;}
.g-attendance-metrics .g-metric:before,.g-monthly-metrics .g-metric:before{content:"";position:absolute;inset-inline-start:0;top:0;bottom:0;width:3px;border-radius:3px;}
.g-metric--school-days{background:linear-gradient(145deg,color-mix(in srgb, var(--identity-primary-soft) 7.000%, transparent),color-mix(in srgb, var(--identity-background) 98.000%, transparent));border-color:color-mix(in srgb, var(--identity-primary-text) 20.000%, transparent);}
.g-metric--school-days:before{background:var(--identity-primary-soft);}.g-metric--school-days strong{color:var(--identity-primary-text);}
.g-metric--present{background:linear-gradient(145deg,color-mix(in srgb, var(--identity-success-soft) 7.500%, transparent),color-mix(in srgb, var(--identity-success-soft) 98.000%, transparent));border-color:color-mix(in srgb, var(--identity-success) 20.000%, transparent);}
.g-metric--present:before{background:var(--identity-success-soft);}.g-metric--present strong{color:var(--identity-success);}
.g-metric--late{background:linear-gradient(145deg,color-mix(in srgb, var(--identity-primary) 7.000%, transparent),color-mix(in srgb, var(--identity-background) 98.000%, transparent));border-color:color-mix(in srgb, var(--identity-primary-text) 20.000%, transparent);}
.g-metric--late:before{background:var(--identity-primary);}.g-metric--late strong{color:var(--identity-primary-text);}
.g-metric--absent{background:linear-gradient(145deg,color-mix(in srgb, var(--identity-danger-soft) 6.500%, transparent),color-mix(in srgb, var(--identity-danger-soft) 98.000%, transparent));border-color:color-mix(in srgb, var(--identity-danger) 20.000%, transparent);}
.g-metric--absent:before{background:var(--identity-danger-soft);}.g-metric--absent strong{color:var(--identity-danger);}
.g-metric--excused{background:linear-gradient(145deg,color-mix(in srgb, var(--identity-info-soft) 6.500%, transparent),color-mix(in srgb, var(--identity-background) 98.000%, transparent));border-color:color-mix(in srgb, var(--identity-info) 19.000%, transparent);}
.g-metric--excused:before{background:var(--identity-info-soft);}.g-metric--excused strong{color:var(--identity-primary-text);}
.g-metric--early{background:linear-gradient(145deg,color-mix(in srgb, var(--identity-violet-soft) 6.500%, transparent),color-mix(in srgb, var(--identity-background) 98.000%, transparent));border-color:color-mix(in srgb, var(--identity-violet) 20.000%, transparent);}
.g-metric--early:before{background:var(--identity-violet-soft);}.g-metric--early strong{color:var(--identity-violet);}
.g-attendance-day{position:relative;overflow:hidden;transition:border-color .18s ease,background .18s ease;}
.g-attendance-day:before,.g-month-day:before{content:"";position:absolute;inset-inline-start:0;top:12px;bottom:12px;width:3px;border-radius:4px;background:var(--identity-surface-soft);}
.g-attendance-day--present:before,.g-month-day--present:before{background:var(--identity-success-soft);}
.g-attendance-day--late:before,.g-month-day--late:before{background:var(--identity-primary);}
.g-attendance-day--absent:before,.g-month-day--absent:before{background:var(--identity-danger-soft);}
.g-attendance-day--excused:before,.g-month-day--excused:before{background:var(--identity-info-soft);}
.g-attendance-day--holiday:before,.g-month-day--holiday:before{background:var(--identity-surface-soft);}
.g-attendance-day--early:after,.g-month-day--early:after{content:"";position:absolute;inset-inline-end:0;top:0;bottom:0;width:2px;background:color-mix(in srgb, var(--identity-danger-soft) 70.000%, transparent);}
.g-attendance-time--in b,.g-month-time--in b{color:var(--identity-success);}.g-attendance-time--out b,.g-month-time--out b{color:var(--identity-danger);}
.g-month-switcher--polished{background:color-mix(in srgb, var(--identity-background) 72.000%, transparent);border:1px solid var(--identity-border);border-radius:18px;padding:10px 12px;justify-content:flex-start;}
.g-month-switcher--polished label{flex:1;}.g-month-switcher--polished input{width:100%;min-height:42px;}
.g-month-switcher--polished .g-primary{min-height:42px;padding:9px 18px;box-shadow:none;}
.g-rate-grid--polished{gap:10px;}.g-rate-grid--polished>div{position:relative;overflow:hidden;padding:14px 16px;box-shadow:none;}
.g-rate-card--attendance{background:linear-gradient(145deg,color-mix(in srgb, var(--identity-success-soft) 6.000%, transparent),color-mix(in srgb, var(--identity-background) 98.000%, transparent));border-color:color-mix(in srgb, var(--identity-success) 20.000%, transparent)!important;}
.g-rate-card--punctuality{background:linear-gradient(145deg,color-mix(in srgb, var(--identity-violet-soft) 6.000%, transparent),color-mix(in srgb, var(--identity-background) 98.000%, transparent));border-color:color-mix(in srgb, var(--identity-violet) 20.000%, transparent)!important;}
.g-rate-card--attendance strong{color:var(--identity-success);}.g-rate-card--punctuality strong{color:var(--identity-violet);}
.g-rate-card--attendance i{background:linear-gradient(to left,var(--identity-success-soft) var(--rate),var(--identity-surface-soft) var(--rate));}
.g-rate-card--punctuality i{background:linear-gradient(to left,var(--identity-violet-soft) var(--rate),var(--identity-surface-soft) var(--rate));}
.g-month-days--polished .g-month-day{position:relative;overflow:hidden;background:linear-gradient(145deg,var(--identity-background),var(--identity-background));padding:11px 13px;}
.g-month-date{padding-inline-start:5px;}.g-month-date strong{font-size:20px;}.g-month-date small{color:var(--g-muted);}
@media(max-width:620px){
  .g-attendance-summary-link{justify-content:stretch;}.g-attendance-summary-link .g-inline-button{width:100%;justify-content:center;margin-top:0;}
  .g-attendance-metrics,.g-monthly-metrics{gap:8px;}
  .g-attendance-metrics .g-metric,.g-monthly-metrics .g-metric{min-height:104px;padding:12px 13px;}
  .g-attendance-metrics .g-metric strong,.g-monthly-metrics .g-metric strong{font-size:24px;}
  .g-month-switcher--polished{display:grid;grid-template-columns:1fr auto;align-items:end;margin:10px 0 12px;}
  .g-rate-grid--polished{grid-template-columns:1fr 1fr;}.g-rate-grid--polished>div{padding:12px;}.g-rate-grid--polished strong{font-size:22px;}
  .g-month-days--polished .g-month-day{grid-template-columns:50px 86px 1fr;padding:10px 11px;}
}

/* Guardian App UI Polish Phase 03 — grades + homework + schedule restrained academic colors */
.g-subject-grade-grid,.g-academic-card-grid--polished{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;}
.g-subject-grade-card,.g-academic-card-grid--polished .g-academic-card{position:relative;overflow:hidden;display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit;background:linear-gradient(145deg,var(--identity-background),var(--identity-background));border:1px solid var(--identity-border);border-radius:18px;padding:13px;min-height:82px;transition:transform .18s ease,border-color .18s ease,background .18s ease;}
.g-subject-grade-card:active,.g-academic-card-grid--polished .g-academic-card:active{transform:scale(.985);}
.g-subject-grade-card:before,.g-academic-card-grid--polished .g-academic-card:before{content:"";position:absolute;inset-inline-start:0;top:10px;bottom:10px;width:3px;border-radius:3px;background:var(--identity-primary);}
.g-subject-grade-card__icon,.g-academic-card-grid--polished .g-academic-card__icon{width:43px;height:43px;flex:0 0 43px;border-radius:14px;display:grid;place-items:center;background:var(--identity-background);color:var(--identity-primary-text);font-size:18px;font-weight:900;}
.g-subject-grade-card__body,.g-academic-card-grid--polished .g-academic-card__body{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px;}
.g-subject-grade-card__body strong,.g-academic-card-grid--polished .g-academic-card__body strong{font-size:14px;}.g-subject-grade-card__body small,.g-academic-card-grid--polished .g-academic-card__body small{font-size:10px;color:var(--identity-muted);}
.g-subject-grade-card__count{min-width:42px;text-align:center;padding:7px 8px;border-radius:12px;background:color-mix(in srgb, var(--identity-surface) 3.500%, transparent);}.g-subject-grade-card__count b{display:block;font-size:19px;}.g-subject-grade-card__count span{display:block;font-size:9px;color:var(--identity-muted);}
.g-subject-grade-grid[data-grade-tone-cycle]>.g-subject-grade-card:nth-child(4n/**/+1){border-color:color-mix(in srgb, var(--identity-primary-text) 24.000%, transparent);background:linear-gradient(145deg,color-mix(in srgb, var(--identity-primary) 6.500%, transparent),color-mix(in srgb, var(--identity-background) 98.000%, transparent));}.g-subject-grade-grid[data-grade-tone-cycle]>.g-subject-grade-card:nth-child(4n/**/+1):before{background:var(--identity-primary);}.g-subject-grade-grid[data-grade-tone-cycle]>.g-subject-grade-card:nth-child(4n/**/+1) .g-subject-grade-card__icon{background:var(--g-accent-soft);color:var(--identity-primary-text);}
.g-subject-grade-grid[data-grade-tone-cycle]>.g-subject-grade-card:nth-child(4n/**/+2){border-color:color-mix(in srgb, var(--identity-violet) 22.000%, transparent);background:linear-gradient(145deg,color-mix(in srgb, var(--identity-violet-soft) 6.000%, transparent),color-mix(in srgb, var(--identity-background) 98.000%, transparent));}.g-subject-grade-grid[data-grade-tone-cycle]>.g-subject-grade-card:nth-child(4n/**/+2):before{background:var(--identity-violet-soft);}.g-subject-grade-grid[data-grade-tone-cycle]>.g-subject-grade-card:nth-child(4n/**/+2) .g-subject-grade-card__icon{background:var(--g-violet-soft);color:var(--identity-violet);}
.g-subject-grade-grid[data-grade-tone-cycle]>.g-subject-grade-card:nth-child(4n/**/+3){border-color:color-mix(in srgb, var(--identity-primary-text) 21.000%, transparent);background:linear-gradient(145deg,color-mix(in srgb, var(--identity-primary) 5.500%, transparent),color-mix(in srgb, var(--identity-background) 98.000%, transparent));}.g-subject-grade-grid[data-grade-tone-cycle]>.g-subject-grade-card:nth-child(4n/**/+3):before{background:var(--identity-primary);}.g-subject-grade-grid[data-grade-tone-cycle]>.g-subject-grade-card:nth-child(4n/**/+3) .g-subject-grade-card__icon{background:var(--g-amber-soft);color:var(--identity-primary-text);}
.g-subject-grade-grid[data-grade-tone-cycle]>.g-subject-grade-card:nth-child(4n/**/+4){border-color:color-mix(in srgb, var(--identity-success) 21.000%, transparent);background:linear-gradient(145deg,color-mix(in srgb, var(--identity-success-soft) 5.500%, transparent),color-mix(in srgb, var(--identity-background) 98.000%, transparent));}.g-subject-grade-grid[data-grade-tone-cycle]>.g-subject-grade-card:nth-child(4n/**/+4):before{background:var(--identity-success-soft);}.g-subject-grade-grid[data-grade-tone-cycle]>.g-subject-grade-card:nth-child(4n/**/+4) .g-subject-grade-card__icon{background:var(--g-green-soft);color:var(--identity-success);}
.g-academic-card-grid--polished .g-academic-card__arrow{font-size:18px;color:var(--identity-primary-text);}
.g-academic-tone--cyan{border-color:color-mix(in srgb, var(--identity-primary-text) 24.000%, transparent)!important;background:linear-gradient(145deg,color-mix(in srgb, var(--identity-primary) 6.500%, transparent),color-mix(in srgb, var(--identity-background) 98.000%, transparent))!important;}.g-academic-tone--cyan:before{background:var(--identity-primary);}.g-academic-tone--cyan .g-subject-grade-card__icon,.g-academic-tone--cyan .g-academic-card__icon{background:var(--g-accent-soft);color:var(--identity-primary-text);}
.g-academic-tone--violet{border-color:color-mix(in srgb, var(--identity-violet) 22.000%, transparent)!important;background:linear-gradient(145deg,color-mix(in srgb, var(--identity-violet-soft) 6.000%, transparent),color-mix(in srgb, var(--identity-background) 98.000%, transparent))!important;}.g-academic-tone--violet:before{background:var(--identity-violet-soft);}.g-academic-tone--violet .g-subject-grade-card__icon,.g-academic-tone--violet .g-academic-card__icon{background:var(--g-violet-soft);color:var(--identity-violet);}
.g-academic-tone--amber{border-color:color-mix(in srgb, var(--identity-primary-text) 21.000%, transparent)!important;background:linear-gradient(145deg,color-mix(in srgb, var(--identity-primary) 5.500%, transparent),color-mix(in srgb, var(--identity-background) 98.000%, transparent))!important;}.g-academic-tone--amber:before{background:var(--identity-primary);}.g-academic-tone--amber .g-subject-grade-card__icon,.g-academic-tone--amber .g-academic-card__icon{background:var(--g-amber-soft);color:var(--identity-primary-text);}
.g-academic-tone--green{border-color:color-mix(in srgb, var(--identity-success) 21.000%, transparent)!important;background:linear-gradient(145deg,color-mix(in srgb, var(--identity-success-soft) 5.500%, transparent),color-mix(in srgb, var(--identity-background) 98.000%, transparent))!important;}.g-academic-tone--green:before{background:var(--identity-success-soft);}.g-academic-tone--green .g-subject-grade-card__icon,.g-academic-tone--green .g-academic-card__icon{background:var(--g-green-soft);color:var(--identity-success);}
.g-grade-detail-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0;}.g-grade-summary-card{position:relative;overflow:hidden;padding:14px 15px;border-radius:17px;background:linear-gradient(145deg,var(--identity-background),var(--identity-background));border:1px solid var(--identity-border);}.g-grade-summary-card:before{content:"";position:absolute;inset-inline-start:0;top:10px;bottom:10px;width:3px;border-radius:3px;}.g-grade-summary-card span,.g-grade-summary-card small{display:block;color:var(--identity-muted);}.g-grade-summary-card strong{display:block;font-size:24px;margin:3px 0;}.g-grade-summary-card--average{border-color:color-mix(in srgb, var(--identity-success) 20.000%, transparent);}.g-grade-summary-card--average:before{background:var(--identity-success-soft);}.g-grade-summary-card--average strong{color:var(--identity-success);}.g-grade-summary-card--count{border-color:color-mix(in srgb, var(--identity-info) 20.000%, transparent);}.g-grade-summary-card--count:before{background:var(--identity-info-soft);}.g-grade-summary-card--count strong{color:var(--identity-primary-text);}
.g-result-card{position:relative;overflow:hidden;padding:15px 16px;border-radius:18px;background:linear-gradient(145deg,var(--identity-background),var(--identity-background));border:1px solid var(--identity-border);margin-bottom:11px;}.g-result-card:before{content:"";position:absolute;inset-inline-start:0;top:12px;bottom:12px;width:3px;border-radius:3px;background:var(--identity-primary);}.g-result-card__head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;}.g-result-card__head h3{margin:2px 0 0;font-size:15px;}.g-result-card__meta{display:flex;gap:7px;flex-wrap:wrap;margin-top:7px;}.g-result-card__meta span{font-size:10px;padding:5px 8px;border-radius:999px;background:color-mix(in srgb, var(--identity-surface) 4.500%, transparent);color:var(--identity-muted);}.g-result-score{display:flex;align-items:baseline;gap:5px;margin-top:12px;}.g-result-score strong{font-size:27px;}.g-result-score span{color:var(--identity-muted);}.g-result-state{font-weight:800;padding:6px 9px;border-radius:11px;background:color-mix(in srgb, var(--identity-surface) 5.500%, transparent);}.g-result-note{margin:9px 0 0;color:var(--identity-muted);}.g-result-progress{height:7px;border-radius:99px;background:var(--identity-surface-soft);overflow:hidden;margin-top:9px;}.g-result-progress i{display:block;height:100%;border-radius:99px;background:var(--identity-primary);}.g-result-card--good{border-color:color-mix(in srgb, var(--identity-success) 20.000%, transparent);}.g-result-card--good:before,.g-result-card--good .g-result-progress i{background:var(--identity-success-soft);}.g-result-card--good .g-result-state,.g-result-card--good .g-result-score strong{color:var(--identity-success);}.g-result-card--warning{border-color:color-mix(in srgb, var(--identity-warning) 20.000%, transparent);}.g-result-card--warning:before,.g-result-card--warning .g-result-progress i{background:var(--identity-warning-soft);}.g-result-card--warning .g-result-state,.g-result-card--warning .g-result-score strong{color:var(--identity-warning);}.g-result-card--low,.g-result-card--absent{border-color:color-mix(in srgb, var(--identity-danger) 20.000%, transparent);}.g-result-card--low:before,.g-result-card--absent:before,.g-result-card--low .g-result-progress i{background:var(--identity-danger-soft);}.g-result-card--low .g-result-state,.g-result-card--low .g-result-score strong,.g-result-card--absent .g-result-state,.g-result-card--absent .g-result-score strong{color:var(--identity-danger);}.g-result-card--excused{border-color:color-mix(in srgb, var(--identity-info) 20.000%, transparent);}.g-result-card--excused:before{background:var(--identity-info-soft);}.g-result-card--excused .g-result-state,.g-result-card--excused .g-result-score strong{color:var(--identity-primary-text);}
.g-grade-grid--polished .g-grade-card{position:relative;overflow:hidden;background:linear-gradient(145deg,var(--identity-background),var(--identity-background));border:1px solid var(--identity-border);}.g-grade-grid--polished .g-grade-card:before{content:"";position:absolute;inset-inline-start:0;top:12px;bottom:12px;width:3px;border-radius:3px;}.g-grade-card--good:before{background:var(--identity-success-soft);}.g-grade-card--warning:before{background:var(--identity-warning-soft);}.g-grade-card--low:before{background:var(--identity-danger-soft);}
.g-homework-summary--polished{display:flex;justify-content:space-between;align-items:center;margin:0 2px 12px;padding:10px 12px;background:linear-gradient(145deg,color-mix(in srgb, var(--identity-primary) 5.500%, transparent),var(--identity-background));border:1px solid color-mix(in srgb, var(--identity-primary-text) 20.000%, transparent);border-radius:13px;color:var(--identity-muted);font-size:11px;}.g-homework-summary--polished strong{color:var(--identity-primary-text);font-size:15px;}.g-homework-list{display:grid;gap:10px;}.g-homework-card--polished{position:relative;overflow:hidden;background:linear-gradient(145deg,var(--identity-background),var(--identity-background));border:1px solid color-mix(in srgb, var(--identity-primary-text) 16.000%, transparent);border-radius:17px;padding:14px;}.g-homework-card--polished:before{content:"";position:absolute;inset-inline-start:0;top:12px;bottom:12px;width:3px;border-radius:3px;background:var(--identity-primary);}.g-homework-card__head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;}.g-homework-title h2{font-size:14px;margin:3px 0 0;}.g-homework-title small{font-size:10px;color:var(--identity-muted);}.g-homework-due{font-size:10px;padding:6px 8px;border-radius:999px;background:color-mix(in srgb, var(--identity-primary) 10.000%, transparent);color:var(--identity-primary-text);white-space:nowrap;border:1px solid color-mix(in srgb, var(--identity-primary-text) 14.000%, transparent);}.g-homework-body{font-size:12px;line-height:1.85;margin-top:11px;padding-top:10px;border-top:1px solid var(--identity-text);}.g-homework-image{display:block;margin-top:10px;}.g-homework-image img{display:block;width:100%;max-height:440px;object-fit:contain;border-radius:12px;border:1px solid var(--identity-border);background:var(--identity-background);}
.g-schedule-image-card--polished{background:linear-gradient(145deg,color-mix(in srgb, var(--identity-info-soft) 5.000%, transparent),var(--identity-background));border:1px solid color-mix(in srgb, var(--identity-info) 18.000%, transparent);border-radius:18px;padding:14px;margin-bottom:14px;}.g-schedule-image-card--polished img{display:block;width:100%;max-height:650px;object-fit:contain;border-radius:14px;background:var(--identity-background);}.g-schedule-open{font-size:11px;color:var(--identity-primary-text);text-decoration:none;}.g-week-strip--polished{display:flex;justify-content:space-between;align-items:center;margin:12px 2px;padding:10px 12px;border-radius:13px;background:linear-gradient(145deg,color-mix(in srgb, var(--identity-primary) 5.000%, transparent),var(--identity-background));border:1px solid color-mix(in srgb, var(--identity-primary-text) 18.000%, transparent);font-size:11px;color:var(--identity-muted);}.g-week-strip--polished strong{color:var(--identity-primary-text);}.g-schedule-week--polished{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:11px;}.g-schedule-week--polished .g-schedule-day{position:relative;overflow:hidden;background:linear-gradient(145deg,var(--identity-background),var(--identity-background));border:1px solid var(--identity-border);border-radius:18px;min-width:0;}.g-schedule-week--polished .g-schedule-day:before{content:"";position:absolute;inset-inline-start:0;top:12px;bottom:12px;width:3px;border-radius:3px;}.g-schedule-day--cyan{border-color:color-mix(in srgb, var(--identity-primary-text) 20.000%, transparent)!important;}.g-schedule-day--cyan:before{background:var(--identity-primary);}.g-schedule-day--violet{border-color:color-mix(in srgb, var(--identity-violet) 20.000%, transparent)!important;}.g-schedule-day--violet:before{background:var(--identity-violet-soft);}.g-schedule-day--green{border-color:color-mix(in srgb, var(--identity-success) 20.000%, transparent)!important;}.g-schedule-day--green:before{background:var(--identity-success-soft);}.g-schedule-day--amber{border-color:color-mix(in srgb, var(--identity-primary-text) 20.000%, transparent)!important;}.g-schedule-day--amber:before{background:var(--identity-primary);}.g-schedule-week--polished .g-schedule-day__head{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;background:color-mix(in srgb, var(--identity-background) 52.000%, transparent);border-bottom:1px solid var(--identity-border);}.g-schedule-week--polished .g-schedule-day__head strong{font-size:14px;}.g-schedule-week--polished .g-schedule-day__head span{font-size:10px;color:var(--identity-muted);}.g-schedule-lessons{display:grid;}.g-schedule-lesson{display:grid;grid-template-columns:38px 1fr;gap:9px;align-items:center;padding:10px 12px;border-bottom:1px solid var(--identity-text);}.g-schedule-lesson:last-child{border-bottom:0;}.g-schedule-period{width:32px;height:32px;display:grid;place-items:center;border-radius:10px;background:var(--identity-background);color:var(--identity-primary-text);font-weight:900;}.g-schedule-day--violet .g-schedule-period{background:var(--g-violet-soft);color:var(--identity-violet);}.g-schedule-day--green .g-schedule-period{background:var(--g-green-soft);color:var(--identity-success);}.g-schedule-day--amber .g-schedule-period{background:var(--g-amber-soft);color:var(--identity-primary-text);}.g-schedule-subject{display:flex;flex-direction:column;gap:3px;min-width:0;}.g-schedule-subject strong{font-size:12px;}.g-schedule-subject small,.g-schedule-time{font-size:10px;color:var(--identity-muted);}.g-schedule-time{grid-column:2;}.g-schedule-empty-day{padding:17px 14px;color:var(--identity-muted);font-size:11px;text-align:center;}
@media(max-width:620px){.g-subject-grade-grid,.g-academic-card-grid--polished{grid-template-columns:1fr;}.g-grade-detail-summary{grid-template-columns:1fr 1fr;gap:8px;}.g-grade-summary-card{padding:12px;}.g-grade-summary-card strong{font-size:22px;}.g-schedule-week--polished{grid-template-columns:1fr;}.g-homework-card__head{flex-direction:column;}}

/* HUDURIQ_RESPONSIVE_ROOT_FIX_V1
   Root mobile containment for Guardian/Student PWA.
   Prevents the header/brand from widening the RTL document beyond the viewport. */
html,
body.g-app{
    width:100%;
    max-width:100%;
    overflow-x:hidden !important;
}
body.g-app{
    min-width:0;
}
.g-shell{
    width:100%;
    max-width:100%;
    min-width:0;
    overflow-x:hidden;
}
.g-header,
.g-header__inner,
.g-main{
    max-width:100%;
    min-width:0;
}
.g-header__inner{
    width:min(1180px,100%);
}
.g-main{
    width:min(1120px,100%);
}
.g-main > *,
.g-child-card,
.g-page-hero,
.g-form-card,
.g-thread-card,
.g-notification-card,
.g-service-links,
.g-welcome,
.g-alert-strip{
    min-width:0;
    max-width:100%;
}
.g-brand{
    min-width:0 !important;
    max-width:100%;
    flex:1 1 auto;
    overflow:hidden;
}
.g-brand__mark{
    flex:0 0 auto;
}
.g-brand__text{
    min-width:0;
    max-width:100%;
    overflow:hidden;
}
.g-brand__text strong{
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    white-space:normal !important;
    overflow:hidden;
    overflow-wrap:anywhere;
    word-break:normal;
    line-height:1.25;
}
.g-header__inner > .theme-toggle,
.g-header__inner > .g-header-notifications,
.g-header__inner > .g-logout-form{
    flex:0 0 auto;
}
.g-main img,
.g-main video,
.g-main canvas{
    max-width:100%;
}
@media(max-width:620px){
    .g-header__inner{
        gap:6px !important;
        padding-inline:10px !important;
    }
    .g-brand{
        gap:7px !important;
    }
    .g-brand__mark{
        width:34px !important;
        height:34px !important;
        min-width:34px;
        border-radius:11px !important;
    }
    .g-brand__text strong{
        font-size:11.5px !important;
        line-height:1.25 !important;
    }
    .g-brand__text small{
        display:none !important;
    }
    .g-header__inner > .theme-toggle,
    .g-header__inner > .g-header-notifications{
        width:34px !important;
        min-width:34px !important;
        height:34px !important;
    }
    .g-main{
        width:100% !important;
        padding-inline:10px !important;
    }
}
@media(max-width:360px){
    .g-header__inner{
        gap:4px !important;
        padding-inline:8px !important;
    }
    .g-brand{
        gap:5px !important;
    }
    .g-brand__mark{
        width:32px !important;
        height:32px !important;
        min-width:32px;
    }
    .g-brand__text strong{
        font-size:10.5px !important;
    }
    .g-header__inner > .theme-toggle,
    .g-header__inner > .g-header-notifications{
        width:32px !important;
        min-width:32px !important;
        height:32px !important;
    }
}
