/* v21.2: presentation only; scoped by JS to student/parent overview cards. */
html[data-vg21-brand] [data-vg22-colour="blue"]   { --vg22-accent:#286cf6; --vg22-light:#eaf1ff; --vg22-ink:#205ad1; --vg22-line:#7aa4ff; }
html[data-vg21-brand] [data-vg22-colour="pink"]   { --vg22-accent:#f53b80; --vg22-light:#fff0f6; --vg22-ink:#c32665; --vg22-line:#ff87b2; }
html[data-vg21-brand] [data-vg22-colour="teal"]   { --vg22-accent:#27b39e; --vg22-light:#eaf9f5; --vg22-ink:#087d6e; --vg22-line:#73d1c2; }
html[data-vg21-brand] [data-vg22-colour="orange"] { --vg22-accent:#fa8240; --vg22-light:#fff4eb; --vg22-ink:#b64e0a; --vg22-line:#ffb382; }
html[data-vg21-brand] [data-vg22-colour="purple"] { --vg22-accent:#ac52e8; --vg22-light:#f8efff; --vg22-ink:#8439b8; --vg22-line:#ce9af1; }
html[data-vg21-brand] [data-vg22-colour="cyan"]   { --vg22-accent:#1699cb; --vg22-light:#ebf8ff; --vg22-ink:#086b96; --vg22-line:#77c9e8; }
html[data-vg21-brand] body:not(.auth) [data-vg22-stats-grid] {
  display:grid!important; grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:16px!important; margin-top:18px; margin-bottom:18px;
}
html[data-vg21-brand] body:not(.auth) [data-vg22-card] {
  position:relative; isolation:isolate; box-sizing:border-box; overflow:hidden;
  display:flex!important; flex-direction:column!important; align-items:flex-start!important;
  min-width:0; min-height:176px; padding:20px!important; gap:0;
  background:#fff!important; border:1px solid #e2eaf5!important; border-top:1px solid #e2eaf5!important;
  border-radius:20px!important; box-shadow:0 5px 20px #17345406!important;
  text-align:left!important;
}
html[data-vg21-brand] body:not(.auth) [data-vg22-card]::before {
  content:""; position:absolute; inset:0 0 auto; height:4px;
  background:var(--vg22-line)!important; pointer-events:none;
}
html[data-vg21-brand] body:not(.auth) [data-vg22-card] > .vg22-icon,
html[data-vg21-brand] body:not(.auth) [data-vg22-quick] > .vg22-icon {
  display:grid!important; place-items:center!important; flex:0 0 auto;
  box-sizing:border-box; width:38px; height:38px; padding:0!important; margin:0 0 12px!important;
  border:0!important; border-radius:12px!important;
  background:var(--vg22-accent)!important; color:#fff!important;
}
html[data-vg21-brand] .vg22-icon > svg { display:block; width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
html[data-vg21-brand] body:not(.auth) [data-vg22-card] .vg22-metric-value {
  display:block!important; color:var(--vg22-ink)!important;
  font-size:clamp(24px,2.2vw,30px)!important; font-weight:750!important;
  line-height:1.25!important; margin:4px 0!important; word-break:normal; overflow-wrap:anywhere;
}
html[data-vg21-brand] body:not(.auth) [data-vg22-card] .vg22-metric-label {
  display:block; color:#223a5b!important; font-size:12px!important; font-weight:650!important;
  line-height:1.5!important; letter-spacing:.015em;
}
html[data-vg21-brand] body:not(.auth) [data-vg22-card] small { color:#667891!important; font-size:12px!important; line-height:1.5!important; }
html[data-vg21-brand] body:not(.auth) [data-vg22-quick-grid] {
  display:grid!important; grid-template-columns:repeat(8,minmax(0,1fr))!important; gap:12px!important;
}
html[data-vg21-brand] body:not(.auth) [data-vg22-quick] {
  display:flex!important; flex-direction:column!important; align-items:center!important; justify-content:center!important;
  box-sizing:border-box; position:relative; min-width:0; min-height:112px;
  padding:16px 8px!important; background:var(--vg22-light)!important;
  border:1px solid var(--vg22-line)!important; border-radius:16px!important;
  text-align:center!important; text-decoration:none!important; color:#223a5b!important;
  transition:transform .16s ease,box-shadow .16s ease;
}
html[data-vg21-brand] body:not(.auth) [data-vg22-quick] > .vg22-icon { margin:0 0 10px!important; width:35px; height:35px; border-radius:10px!important; }
html[data-vg21-brand] body:not(.auth) [data-vg22-quick] :is(strong,b,.vg22-quick-label) { color:var(--vg22-ink)!important; font-size:12px!important; line-height:1.4!important; font-weight:650!important; }
html[data-vg21-brand] body:not(.auth) [data-vg22-quick] small { color:#50657f!important; font-size:11px!important; }
html[data-vg21-brand] .vg22-original-icon { display:none!important; }
html[data-vg21-brand] [data-vg22-quick]:focus-visible { outline:3px solid var(--vg22-ink); outline-offset:3px; }
@media(hover:hover) {
  html[data-vg21-brand] [data-vg22-quick]:hover { transform:translateY(-3px); box-shadow:0 7px 18px #17345412; }
}
@media(max-width:1150px) {
  html[data-vg21-brand] body:not(.auth) [data-vg22-quick-grid] { grid-template-columns:repeat(4,minmax(0,1fr))!important; }
}
@media(max-width:850px) {
  html[data-vg21-brand] body:not(.auth) [data-vg22-stats-grid] { grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:12px!important; }
}
@media(max-width:480px) {
  html[data-vg21-brand] body:not(.auth) [data-vg22-card] { padding:15px!important; min-height:168px; border-radius:16px!important; }
  html[data-vg21-brand] body:not(.auth) [data-vg22-quick-grid] { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
}
@media(max-width:340px) {
  html[data-vg21-brand] body:not(.auth) [data-vg22-stats-grid] { grid-template-columns:1fr!important; }
}
@media(prefers-reduced-motion:reduce) {
  html[data-vg21-brand] [data-vg22-quick] { transition:none!important; transform:none!important; }
}
