/* SMK Bandar Tasik Kesuma — original v12 styles, in original cascade order. */

:root {
  --navy: #113f75;
  --navy2: #0b2f5a;
  --blue: #2d78c8;
  --sky: #eaf5ff;
  --green: #17875e;
  --greenbg: #e9f8f1;
  --gold: #dd9b1e;
  --goldbg: #fff6df;
  --red: #c84e4e;
  --redbg: #fff0ef;
  --purple: #7657bb;
  --purplebg: #f2edff;
  --ink: #17263a;
  --muted: #66758a;
  --line: #dfe7f0;
  --paper: #f4f7fb;
  --card: #fff;
  --shadow: 0 12px 35px rgba(18, 52, 93, 0.1);
  --radius: 18px;
  --sidebar: 260px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 0;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.hidden {
  display: none !important;
}
.muted {
  color: var(--muted);
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 780;
  transition: 0.18s;
  text-decoration: none;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 8px 18px rgba(17, 63, 117, 0.18);
}
.btn-secondary {
  background: #eaf3fe;
  color: var(--navy);
}
.btn-outline {
  background: #fff;
  color: var(--navy);
  border: 1px solid #bfd0e4;
}
.btn-danger {
  background: #fff0f0;
  color: #ad3838;
}
.btn-success {
  background: var(--green);
  color: #fff;
}
.btn-sm {
  padding: 8px 10px;
  font-size: 12px;
}
.btn-ghost {
  background: transparent;
  color: #40668d;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  font-weight: 750;
  font-size: 11px;
}
.pill.green {
  background: var(--greenbg);
  color: #13724f;
}
.pill.blue {
  background: #eaf3ff;
  color: #2868ad;
}
.pill.gold {
  background: var(--goldbg);
  color: #9b6711;
}
.pill.red {
  background: var(--redbg);
  color: #ad3c3c;
}
.pill.purple {
  background: var(--purplebg);
  color: #6748aa;
}
.pill.gray {
  background: #eef2f6;
  color: #59677b;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-nav {
  max-width: 1180px;
  margin: auto;
  padding: 13px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.crest {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: linear-gradient(145deg, #185695, #0b315e);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px rgba(17, 63, 117, 0.25);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.4px;
}
.brand strong {
  display: block;
  font-size: 14px;
  color: var(--navy);
}
.brand span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}
.site-links {
  display: flex;
  gap: 18px;
  align-items: center;
}
.site-links a {
  color: #41546d;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}
.hero {
  max-width: 1180px;
  margin: auto;
  padding: 72px 24px 64px;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 54px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e8f4ff;
  color: #28629d;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 800;
}
.eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1a9869;
}
.hero h1 {
  color: var(--navy);
  font-size: clamp(36px, 4.8vw, 58px);
  line-height: 1.06;
  letter-spacing: -1.7px;
  margin: 16px 0;
}
.hero p {
  font-size: 16px;
  line-height: 1.72;
  color: #526278;
  max-width: 590px;
}
.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 25px;
}
.hero-points {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.hero-points strong {
  display: block;
  color: var(--navy);
  font-size: 18px;
}
.hero-points span {
  font-size: 12px;
  color: var(--muted);
}
.hero-card {
  min-height: 410px;
  border-radius: 28px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, #e5f2ff, #f8fcff 58%, #fff7e5);
  border: 1px solid #d7e7f5;
  box-shadow: var(--shadow);
}
.hero-card:before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  right: -68px;
  top: -65px;
  background: rgba(54, 131, 212, 0.16);
}
.hero-card:after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  left: -57px;
  bottom: -80px;
  background: rgba(224, 163, 43, 0.18);
}
.school-illus {
  position: absolute;
  right: 26px;
  left: 26px;
  bottom: 0;
  height: 238px;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(135deg, #175794, #0b315e);
  overflow: hidden;
}
.school-illus .roof {
  position: absolute;
  left: 45px;
  right: 45px;
  top: 18px;
  height: 52px;
  background: #e6aa32;
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
}
.school-illus .windows {
  position: absolute;
  bottom: 22px;
  left: 24px;
  right: 24px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.school-illus .windows span {
  height: 55px;
  background: #c8e8fa;
  border: 5px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
}
.school-illus .flag {
  position: absolute;
  right: 28px;
  top: 8px;
  height: 115px;
  width: 3px;
  background: #fff;
}
.school-illus .flag:after {
  content: "SMK";
  position: absolute;
  left: 3px;
  top: 2px;
  color: #fff;
  background: #dd5353;
  border-radius: 0 4px 4px 0;
  padding: 6px 13px;
  font-size: 10px;
  font-weight: 900;
}
.float-card {
  z-index: 2;
  position: absolute;
  background: #fff;
  border: 1px solid rgba(20, 62, 111, 0.11);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 14px 30px rgba(20, 55, 96, 0.14);
}
.float-card.top {
  left: 25px;
  top: 36px;
  width: 238px;
}
.float-card.bottom {
  left: 36px;
  bottom: 38px;
  width: 196px;
}
.mini-title {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
}
.mini-big {
  margin-top: 5px;
  color: var(--navy);
  font-weight: 900;
  font-size: 22px;
}
.mini-line {
  height: 8px;
  border-radius: 99px;
  background: #eaf0f6;
  margin-top: 9px;
}
.mini-line.blue {
  background: #a6d3fc;
  width: 72%;
}
.mini-line.gold {
  background: #f4d58e;
  width: 46%;
}
.section {
  max-width: 1180px;
  margin: auto;
  padding: 72px 24px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 22px;
  margin-bottom: 27px;
}
.section h2 {
  margin: 0;
  color: var(--navy);
  font-size: 30px;
  letter-spacing: -0.6px;
}
.section-head p {
  max-width: 560px;
  line-height: 1.65;
  color: var(--muted);
  margin: 8px 0 0;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 23px;
  box-shadow: 0 7px 22px rgba(28, 54, 86, 0.04);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: #eaf4ff;
  color: #2d6fb6;
  font-size: 19px;
  font-weight: 900;
}
.feature h3 {
  font-size: 16px;
  color: var(--navy);
  margin: 15px 0 7px;
}
.feature p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  margin: 0;
}
.steps {
  background: var(--navy);
  color: #fff;
}
.steps .section h2 {
  color: #fff;
}
.steps .section-head p {
  color: #d5e3f2;
}
.step-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.step {
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 21px;
}
.step-no {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f0b646;
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
}
.step h3 {
  font-size: 15px;
  margin: 16px 0 8px;
}
.step p {
  font-size: 13px;
  line-height: 1.6;
  color: #d8e5f2;
  margin: 0;
}
.landing-cta {
  max-width: 1180px;
  margin: 0 auto 70px;
  padding: 0 24px;
}
.landing-cta > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 30px;
  border-radius: 22px;
  border: 1px solid #e3e9f1;
  background: linear-gradient(135deg, #fff6df, #edf6ff);
}
.landing-cta h2 {
  margin: 0 0 7px;
  color: var(--navy);
  font-size: 25px;
}
.landing-cta p {
  margin: 0;
  line-height: 1.6;
  color: #59697e;
}
.footer {
  background: #0c2d54;
  color: #c9d9e9;
  padding: 33px 24px;
}
.footer > div {
  max-width: 1180px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.footer strong {
  color: #fff;
}
.footer p {
  margin: 6px 0 0;
  font-size: 12px;
}
.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background: linear-gradient(135deg, #edf6ff, #fbfcff 55%, #fff7e8);
}
.auth-card {
  width: min(470px, 100%);
  background: #fff;
  border: 1px solid #dce7f2;
  border-radius: 25px;
  padding: 33px;
  box-shadow: var(--shadow);
}
.auth-top {
  text-align: center;
}
.auth-top .crest {
  margin: 0 auto 13px;
}
.auth-top h2 {
  color: var(--navy);
  margin: 0;
  font-size: 25px;
}
.auth-top p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 8px 0 0;
}
.role-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  padding: 5px;
  background: #eff4f9;
  border-radius: 13px;
  margin: 22px 0;
}
.role-tab {
  border-radius: 9px;
  background: transparent;
  color: #637186;
  font-size: 12px;
  font-weight: 800;
  padding: 10px 6px;
}
.role-tab.active {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(19, 57, 101, 0.12);
}
.field {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}
.field label {
  font-size: 12px;
  color: #394c64;
  font-weight: 800;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #d7e1ec;
  border-radius: 11px;
  background: #fff;
  padding: 12px;
  color: #21344e;
  outline: 0;
}
.field textarea {
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #72a8dd;
  box-shadow: 0 0 0 3px rgba(73, 137, 207, 0.13);
}
.demo-box {
  background: #f4f8fc;
  border: 1px solid #e0e9f2;
  border-radius: 12px;
  padding: 12px 13px;
  font-size: 12px;
  color: #596b7f;
  line-height: 1.65;
  margin-top: 18px;
}
.back-home {
  display: block;
  text-align: center;
  margin-top: 18px;
  color: #416b98;
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
}
.dash {
  min-height: 100vh;
  background: var(--paper);
}
.sidebar {
  width: var(--sidebar);
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  padding: 22px 14px;
  background: var(--navy);
  z-index: 10;
  color: #fff;
}
.dash-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 9px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}
.dash-brand .crest {
  width: 38px;
  height: 38px;
  font-size: 10px;
  box-shadow: none;
}
.dash-brand strong {
  display: block;
  font-size: 13px;
}
.dash-brand span {
  display: block;
  margin-top: 2px;
  color: #b8d0e8;
  font-size: 10px;
}
.nav-label {
  padding: 0 10px;
  margin: 20px 0 7px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #92b7da;
  font-weight: 900;
}
.nav-link {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: #dceafa;
  border-radius: 10px;
  padding: 11px 10px;
  margin: 2px 0;
  font-size: 13px;
  font-weight: 700;
}
.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.nav-link .nav-icon {
  width: 19px;
  text-align: center;
}
.sidebar-bottom {
  position: absolute;
  bottom: 17px;
  left: 14px;
  right: 14px;
}
.term-card {
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  font-size: 11px;
  line-height: 1.55;
  color: #d7e6f5;
}
.term-card strong {
  display: block;
  color: #fff;
  font-size: 12px;
}
.sidebar-bottom .btn {
  width: 100%;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.main {
  margin-left: var(--sidebar);
  min-height: 100vh;
}
.topbar {
  height: 76px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.crumb {
  font-size: 11px;
  color: #718096;
}
.topbar h1 {
  font-size: 21px;
  letter-spacing: -0.35px;
  color: var(--navy);
  margin: 3px 0 0;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.profile {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-left: 11px;
  border-left: 1px solid var(--line);
}
.avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e4effc;
  color: #1a5a9e;
  font-size: 12px;
  font-weight: 900;
  overflow: hidden;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile strong {
  display: block;
  font-size: 12px;
}
.profile span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}
.page {
  padding: 27px 28px 50px;
  max-width: 1560px;
}
.section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}
.section-title h2 {
  font-size: 21px;
  color: var(--navy);
  margin: 0;
}
.section-title p {
  color: var(--muted);
  margin: 5px 0 0;
  line-height: 1.55;
  font-size: 13px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 5px 18px rgba(30, 53, 85, 0.035);
}
.panel h3 {
  margin: 0;
  color: var(--navy);
  font-size: 15px;
}
.panel-sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.grid-2-1 {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 16px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 5px 18px rgba(30, 53, 85, 0.03);
}
.stat .stat-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.stat small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.stat b {
  display: block;
  color: var(--navy);
  font-size: 26px;
  letter-spacing: -0.8px;
  margin: 8px 0 3px;
}
.stat span {
  font-size: 11px;
  color: var(--muted);
}
.stat-icon {
  width: 33px;
  height: 33px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #eaf4ff;
  color: #286caf;
  font-weight: 900;
}
.stat-icon.green {
  background: var(--greenbg);
  color: #137855;
}
.stat-icon.gold {
  background: var(--goldbg);
  color: #aa7113;
}
.stat-icon.purple {
  background: var(--purplebg);
  color: #6543a7;
}
.student-banner {
  background: linear-gradient(135deg, #143f75, #1b6aa9);
  border-radius: 18px;
  color: #fff;
  padding: 21px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.student-banner:after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  right: -46px;
  bottom: -76px;
  background: rgba(255, 255, 255, 0.1);
}
.student-info {
  display: flex;
  align-items: center;
  gap: 13px;
  position: relative;
  z-index: 1;
}
.student-photo {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: #fff;
  color: #1b5f9e;
  display: grid;
  place-items: center;
  font-weight: 900;
  overflow: hidden;
}
.student-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.student-info strong {
  display: block;
  font-size: 16px;
}
.student-info span {
  display: block;
  color: #d4e5f5;
  font-size: 12px;
  margin-top: 4px;
}
.student-banner .btn {
  position: relative;
  z-index: 1;
  background: #fff;
  color: var(--navy);
}
.child-switch {
  min-width: 196px;
}
.child-switch label {
  font-size: 10px;
  display: block;
  color: #cce0f2;
  margin-bottom: 4px;
  font-weight: 800;
}
.child-switch select {
  width: 100%;
  border: 0;
  border-radius: 9px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  outline: 0;
  font-size: 12px;
}
.child-switch option {
  color: #263a52;
}
.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.5;
}
.notice.warn {
  background: var(--goldbg);
  color: #7d5715;
}
.notice.danger {
  background: var(--redbg);
  color: #963a3a;
}
.notice.info {
  background: #edf6ff;
  color: #265e9d;
}
.notice.success {
  background: var(--greenbg);
  color: #197552;
}
.notice-list {
  display: grid;
  gap: 9px;
}
.progress-row {
  display: grid;
  grid-template-columns: 125px 1fr 36px;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #edf1f5;
  font-size: 12px;
}
.progress-row:last-child {
  border: 0;
}
.bar {
  height: 8px;
  border-radius: 999px;
  background: #edf1f5;
  overflow: hidden;
}
.fill {
  height: 100%;
  border-radius: 999px;
  background: var(--blue);
}
.fill.green {
  background: #27a375;
}
.fill.gold {
  background: #dfa42c;
}
.fill.red {
  background: #d95b5b;
}
.fill.purple {
  background: #8062c3;
}
.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.report-table th {
  text-align: left;
  font-size: 10px;
  color: #6f7e90;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  background: #f8fafc;
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
}
.report-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #edf1f5;
  vertical-align: middle;
}
.report-table tr:last-child td {
  border-bottom: 0;
}
.grade {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 8px;
  background: #eaf7f0;
  color: #16734f;
  font-weight: 900;
}
.grade.b {
  background: #edf5ff;
  color: #2866a8;
}
.grade.c {
  background: #fff4dd;
  color: #9a6512;
}
.grade.d {
  background: #fff0f0;
  color: #ad3a3a;
}
.donut-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.donut {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--green) 0 94%, #edf2f5 94%);
}
.donut > div {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: #fff;
}
.donut b {
  color: var(--navy);
  font-size: 20px;
}
.donut span {
  font-size: 10px;
  color: var(--muted);
}
.trend {
  height: 120px;
  width: 100%;
  padding-top: 8px;
}
.trend svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.trend .line {
  fill: none;
  stroke: #347dc7;
  stroke-width: 3;
}
.trend .area {
  fill: #eaf5ff;
}
.trend .point {
  fill: #fff;
  stroke: #347dc7;
  stroke-width: 3;
}
.list {
  display: grid;
  gap: 9px;
}
.item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 0;
  border-bottom: 1px solid #edf1f5;
}
.item:last-child {
  border: 0;
}
.item-icon {
  width: 35px;
  height: 35px;
  border-radius: 11px;
  background: #eaf4ff;
  display: grid;
  place-items: center;
  color: #2b70b7;
  font-size: 15px;
  font-weight: 900;
}
.item-main {
  min-width: 0;
  flex: 1;
}
.item-main strong {
  display: block;
  color: #2a3d56;
  font-size: 12px;
}
.item-main span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  margin-top: 3px;
}
.timeline {
  display: grid;
  gap: 16px;
}
.timeline-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
}
.timeline-mark {
  position: relative;
}
.timeline-mark:after {
  content: "";
  position: absolute;
  width: 1px;
  background: #dce6f0;
  top: 13px;
  bottom: -20px;
  left: 6px;
}
.timeline-row:last-child .timeline-mark:after {
  display: none;
}
.timeline-dot {
  display: block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #3479c3;
  margin-top: 3px;
  border: 3px solid #eaf4ff;
}
.timeline-row strong {
  font-size: 12px;
  color: #32465f;
}
.timeline-row p {
  font-size: 12px;
  color: #617186;
  line-height: 1.5;
  margin: 4px 0;
}
.timeline-row span {
  font-size: 10px;
  color: #8290a1;
}
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.calendar .dayname {
  font-size: 10px;
  text-align: center;
  color: #8794a4;
  font-weight: 800;
  padding-bottom: 3px;
}
.calendar .day {
  aspect-ratio: 1;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  background: #f4f7fa;
  color: #435269;
}
.calendar .day.empty {
  background: transparent;
}
.calendar .day.P {
  background: #e5f8ee;
  color: #168357;
}
.calendar .day.A {
  background: #ffeded;
  color: #bd4444;
}
.calendar .day.L {
  background: #fff3dc;
  color: #a56810;
}
.calendar .day.MC {
  background: #eee8ff;
  color: #6d51ad;
}
.calendar-legend {
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
  margin-top: 13px;
  font-size: 10px;
  color: #6c7b8f;
}
.calendar-legend i {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  display: inline-block;
  margin-right: 4px;
}
.chip {
  display: inline-flex;
  padding: 5px 8px;
  background: #f1f5f8;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #53657b;
}
.activity-score {
  display: flex;
  align-items: center;
  gap: 13px;
}
.activity-score .big {
  font-size: 42px;
  letter-spacing: -1px;
  color: var(--navy);
  font-weight: 900;
}
.empty-state {
  padding: 26px;
  text-align: center;
  color: #78869a;
  font-size: 12px;
}
.filter-row {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.filter-row input,
.filter-row select {
  border: 1px solid #dbe4ed;
  border-radius: 10px;
  padding: 9px 10px;
  background: #fff;
  outline: 0;
  font-size: 12px;
}
.filter-row input {
  min-width: 210px;
}
.student-list {
  display: grid;
  gap: 8px;
}
.student-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid #edf1f5;
}
.student-row:last-child {
  border-bottom: 0;
}
.tiny-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e8f3ff;
  color: #2a6cae;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 11px;
  font-weight: 900;
}
.tiny-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.student-meta {
  flex: 1;
  min-width: 0;
}
.student-meta strong {
  display: block;
  font-size: 12px;
  color: #33465e;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.student-meta span {
  font-size: 10px;
  color: #7a8899;
  display: block;
  margin-top: 3px;
}
.actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.span-2 {
  grid-column: span 2;
}
.score-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.score-input {
  display: grid;
  gap: 5px;
}
.score-input label {
  font-size: 10px;
  color: #68788b;
  font-weight: 700;
}
.score-input input {
  width: 100%;
  border: 1px solid #d7e1ec;
  border-radius: 9px;
  padding: 9px;
}
.read-only {
  background: #f6f8fb !important;
  color: #718096 !important;
}
.form-help {
  font-size: 11px;
  color: #77869a;
  line-height: 1.5;
  margin-top: 2px;
}
.upload-box {
  border: 1px dashed #a9bed4;
  border-radius: 12px;
  background: #f8fbfe;
  padding: 14px;
  text-align: center;
  color: #667a8f;
  font-size: 12px;
  line-height: 1.5;
}
.upload-box input {
  display: none;
}
.upload-box label {
  display: inline-flex;
  margin-top: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #e6f1ff;
  color: #225f9c;
  font-weight: 800;
  cursor: pointer;
}
.photo-preview {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  margin: 12px auto 0;
  background: #dfeaf5;
  display: grid;
  place-items: center;
  color: #65809f;
  overflow: hidden;
  font-size: 20px;
}
.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.status-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  color: #627387;
}
.role-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e2eaf2;
  border-radius: 12px;
  background: #fbfcfe;
}
.role-box i {
  font-style: normal;
  width: 31px;
  height: 31px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #ebf4ff;
  color: #286aae;
}
.role-box strong {
  display: block;
  font-size: 12px;
  color: #35485f;
}
.role-box span {
  display: block;
  font-size: 11px;
  line-height: 1.5;
  color: #6a7a8e;
  margin-top: 3px;
}
.table-actions {
  white-space: nowrap;
}
.audit-list {
  display: grid;
  gap: 0;
}
.audit-row {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #edf1f5;
  font-size: 12px;
  line-height: 1.5;
}
.audit-row:last-child {
  border: 0;
}
.audit-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2f78c3;
  margin-top: 5px;
}
.audit-row strong {
  color: #334960;
}
.audit-row span {
  display: block;
  color: #8693a3;
  font-size: 10px;
  margin-top: 2px;
}
.kpi {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.quick-kpi {
  border-radius: 15px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
}
.quick-kpi span {
  display: block;
  color: #758396;
  font-size: 11px;
  font-weight: 700;
}
.quick-kpi strong {
  display: block;
  font-size: 25px;
  color: var(--navy);
  margin-top: 8px;
}
.file-import {
  background: #f8fbfe;
  border: 1px dashed #aec1d5;
  border-radius: 12px;
  padding: 15px;
}
.file-import input {
  display: none;
}
.file-import label {
  cursor: pointer;
  display: inline-flex;
  padding: 8px 10px;
  color: #215f9e;
  background: #e7f1ff;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}
.checkline {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #526479;
  font-size: 12px;
  line-height: 1.45;
}
.checkline input {
  margin-top: 2px;
}
.danger-zone {
  border: 1px solid #f1cccc;
  background: #fff8f8;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 28, 54, 0.46);
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 22px;
}
.modal {
  width: min(650px, 100%);
  max-height: 88vh;
  overflow: auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(6, 27, 56, 0.28);
  padding: 22px;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 17px;
}
.modal-head h3 {
  margin: 0;
  color: var(--navy);
  font-size: 17px;
}
.modal-close {
  width: 31px;
  height: 31px;
  border-radius: 9px;
  background: #f2f5f8;
  color: #566a80;
  font-size: 18px;
}
.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  max-width: 360px;
  background: #173f6b;
  color: #fff;
  padding: 12px 15px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(13, 39, 75, 0.25);
  transform: translateY(100px);
  opacity: 0;
  transition: 0.23s;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.mobile-menu {
  display: none;
}
@media (max-width: 1020px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-card {
    min-height: 355px;
  }
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
  .step-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-2-1 {
    grid-template-columns: 1fr;
  }
  .sidebar {
    width: 76px;
    padding: 18px 10px;
  }
  .dash-brand {
    justify-content: center;
    padding: 0 0 20px;
  }
  .dash-brand .brand-copy,
  .nav-label,
  .nav-link span,
  .term-card,
  .sidebar-bottom .btn {
    display: none;
  }
  .nav-link {
    justify-content: center;
    padding: 12px 4px;
  }
  .nav-link .nav-icon {
    width: auto;
  }
  .main {
    margin-left: 76px;
  }
  .sidebar-bottom {
    left: 10px;
    right: 10px;
  }
  .profile .profile-copy {
    display: none;
  }
}
@media (max-width: 700px) {
  .site-links a {
    display: none;
  }
  .site-nav {
    padding: 12px 16px;
  }
  .hero {
    padding: 48px 16px;
  }
  .section {
    padding: 54px 16px;
  }
  .landing-cta {
    padding: 0 16px;
    margin-bottom: 50px;
  }
  .landing-cta > div,
  .footer > div {
    align-items: flex-start;
    flex-direction: column;
  }
  .feature-grid,
  .step-grid {
    grid-template-columns: 1fr;
  }
  .hero-card {
    min-height: 325px;
  }
  .float-card.bottom {
    display: none;
  }
  .school-illus {
    left: 18px;
    right: 18px;
  }
  .auth-wrap {
    padding: 15px;
  }
  .auth-card {
    padding: 26px 20px;
  }
  .topbar {
    height: auto;
    min-height: 64px;
    padding: 12px 16px;
  }
  .main {
    margin-left: 0;
  }
  .sidebar {
    transform: translateX(-100%);
    width: 265px;
    transition: 0.2s;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 10px 0 30px rgba(12, 42, 76, 0.2);
  }
  .mobile-menu {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #eef4fa;
    color: var(--navy);
  }
  .topbar h1 {
    font-size: 17px;
  }
  .top-actions .pill {
    display: none;
  }
  .page {
    padding: 18px 14px 38px;
  }
  .section-title {
    flex-direction: column;
  }
  .stats,
  .grid-2,
  .kpi {
    grid-template-columns: 1fr;
  }
  .student-banner {
    align-items: flex-start;
    flex-direction: column;
  }
  .child-switch {
    width: 100%;
  }
  .form-grid,
  .score-inputs {
    grid-template-columns: 1fr;
  }
  .span-2 {
    grid-column: auto;
  }
  .report-table {
    display: block;
    overflow: auto;
    white-space: nowrap;
  }
  .filter-row input {
    min-width: 0;
    flex: 1;
  }
  .actions {
    gap: 5px;
  }
  .student-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .student-row .actions {
    width: 100%;
    padding-left: 44px;
  }
  .progress-row {
    grid-template-columns: 95px 1fr 32px;
  }
  .top-actions .btn-outline {
    display: none;
  }
  .donut-row {
    flex-wrap: wrap;
  }
}
@media print {
  .sidebar,
  .topbar,
  .no-print,
  .toast {
    display: none !important;
  }
  .main {
    margin: 0;
  }
  .page {
    padding: 0;
  }
  .panel {
    box-shadow: none;
  }
  .dash {
    background: #fff;
  }
}

/* COEx & Gear Up module, tokenized and accessible */
:root {
  --coex-black: #000000;
  --coex-red: #ff0000;
  --coex-brown: #833c0b;
  --coex-orange: #ff9900;
  --coex-blue-light: #00b0f0;
  --coex-blue-dark: #0070c0;
  --coex-green-light: #91d050;
  --coex-green-dark: #00b050;
  --coex-purple-light: #cc66ff;
  --coex-purple: #cc66ff;
  --coex-purple-dark: #7030a0;
  --coex-surface: #f8fafc;
  --coex-ink: #14243a;
  --coex-line: #d7e1eb;
  --coex-focus: #1769aa;
  --z-dropdown: 30;
  --z-sticky: 40;
  --z-modal-backdrop: 50;
  --z-modal: 60;
  --z-toast: 70;
}
.feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.coex-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 0;
  background: #0d315b;
  color: #fff;
  border-radius: 16px;
  overflow: hidden;
}
.coex-hero-main {
  padding: 28px 30px;
  display: flex;
  gap: 25px;
  align-items: center;
  min-width: 0;
}
.gear-orbit {
  width: 138px;
  height: 138px;
  flex: 0 0 138px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  background: conic-gradient(
    var(--gear-color) calc(var(--gear-progress) * 1%),
    rgba(255, 255, 255, 0.14) 0
  );
}
.gear-orbit:before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: #0d315b;
}
.gear-orbit > div {
  position: relative;
  text-align: center;
}
.gear-orbit b {
  display: block;
  font-size: 35px;
  line-height: 1;
}
.gear-orbit span {
  display: block;
  font-size: 11px;
  margin-top: 6px;
  color: #d7e6f4;
}
.coex-hero-copy h2 {
  margin: 0 0 7px;
  font-size: 27px;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.coex-hero-copy p {
  margin: 0;
  color: #d9e6f3;
  line-height: 1.65;
  max-width: 62ch;
}
.coex-hero-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 17px;
}
.coex-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 11px;
  font-weight: 800;
}
.coex-chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--chip-color, #fff);
}
.coex-hero-side {
  background: #fff;
  color: var(--coex-ink);
  padding: 25px;
  display: grid;
  align-content: center;
  gap: 13px;
}
.coex-side-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--coex-line);
}
.coex-side-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.coex-side-row span {
  color: #5b6b7d;
  font-size: 12px;
}
.coex-side-row strong {
  color: #0f3157;
  font-size: 14px;
  text-align: right;
}
.coex-section {
  margin-top: 18px;
  background: #fff;
  border: 1px solid var(--coex-line);
  border-radius: 14px;
  padding: 22px;
}
.coex-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 17px;
}
.coex-section-head h3 {
  margin: 0;
  color: #0f3157;
  font-size: 17px;
}
.coex-section-head p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.55;
  max-width: 68ch;
}
.journey {
  padding: 22px 4px 8px;
  overflow-x: auto;
}
.journey-ladder {
  min-width: 760px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 8px 6px 0;
}
.ladder-step {
  flex: 1;
  min-width: 108px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.ladder-step-box {
  width: 100%;
  height: calc(54px + (var(--level) * 16px));
  border-radius: 16px 16px 8px 8px;
  border: 1px solid #d8e2ec;
  background: linear-gradient(180deg, #f7fafc 0%, #eef3f7 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 12px 10px 10px;
  text-align: center;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.8);
}
.ladder-step.reached .ladder-step-box {
  background: linear-gradient(
    180deg,
    var(--step-soft) 0%,
    var(--step-color) 100%
  );
  border-color: var(--step-color);
}
.ladder-step.current .ladder-step-box {
  outline: 4px solid rgba(22, 115, 184, 0.16);
}
.ladder-step b {
  font-size: 11px;
  line-height: 1;
  color: #516476;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.35px;
}
.ladder-step strong {
  font-size: 16px;
  line-height: 1;
  color: #123455;
  letter-spacing: -0.3px;
}
.ladder-step.reached b,
.ladder-step.reached strong {
  color: var(--step-fg);
}
.ladder-step span {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  color: #677689;
  text-align: center;
  line-height: 1.35;
  max-width: 90px;
}
.ladder-step-top {
  height: 82px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  margin-bottom: 6px;
}
.journey-car {
  font-size: 104px;
  line-height: 1;
  filter: drop-shadow(0 5px 8px rgba(17, 39, 67, 0.18));
}
.journey-car .car-right {
  font-size: inherit;
  line-height: 1;
  display: inline-block;
}
.journey-flag {
  font-size: 16px;
  color: #d79a20;
  line-height: 1;
  transform: translateY(-6px);
}
.ladder-step.current .journey-car {
  transform: translateY(0);
}
.ladder-step.target .ladder-step-box:after {
  content: "";
  position: absolute;
  top: 36px;
  right: 12px;
  width: 9px;
  height: 9px;
  background: #d79a20;
  transform: rotate(45deg);
  border-radius: 1px;
}
.journey-caption {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 14px;
  color: #5f6e80;
  font-size: 11px;
}
.journey-caption strong {
  color: #0f3157;
}
.journey-tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.journey-compare-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}
.journey-compare-card {
  border: 1px solid #dbe5ee;
  background: #fbfdff;
  border-radius: 14px;
  padding: 14px;
}
.journey-compare-card small {
  display: block;
  color: #718096;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.journey-compare-card strong {
  display: block;
  color: var(--navy);
  font-size: 24px;
  letter-spacing: -0.7px;
  margin-top: 5px;
}
.journey-compare-card span {
  display: block;
  color: #5f6e80;
  font-size: 12px;
  line-height: 1.45;
  margin-top: 4px;
}
.journey-compare-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #eef5fb;
  color: #2a6cae;
  font-weight: 900;
}
.journey-phase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.journey-phase {
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid #dbe5ee;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}
.journey-phase small {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #718096;
  font-weight: 800;
}
.journey-phase strong {
  display: block;
  margin-top: 4px;
  color: var(--navy);
  font-size: 14px;
}
.journey-phase span {
  display: block;
  margin-top: 4px;
  color: #5f6e80;
  font-size: 12px;
  line-height: 1.45;
}
.journey-phase.form4 {
  box-shadow: inset 0 0 0 1px rgba(0, 112, 192, 0.08);
}
.journey-phase.form5 {
  box-shadow: inset 0 0 0 1px rgba(112, 48, 160, 0.08);
}
.reward-badge-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.car-animate {
  animation:
    car-glide 0.95s cubic-bezier(0.22, 1, 0.36, 1) both,
    car-float 2.2s ease-in-out 1s infinite;
}
.compare-highlight {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef6ff;
  color: #245f9d;
  font-size: 11px;
  font-weight: 800;
}
.compare-highlight.good {
  background: #eaf8ef;
  color: #17734f;
}
.compare-highlight.warn {
  background: #fff3e2;
  color: #9d5f14;
}
@keyframes car-glide {
  from {
    transform: translateX(-120px) translateY(10px) scale(0.88);
    opacity: 0;
  }
  to {
    transform: translateX(0) translateY(0) scale(1);
    opacity: 1;
  }
}
@keyframes car-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
@media (max-width: 900px) {
  .journey-ladder {
    min-width: 680px;
    gap: 10px;
  }
  .ladder-step {
    min-width: 94px;
  }
  .ladder-step-box {
    height: calc(52px + (var(--level) * 14px));
  }
  .ladder-step-top {
    height: 62px;
  }
  .journey-car {
    font-size: 76px;
  }
  .journey-car .car-right {
    font-size: inherit;
  }
  .journey-compare-strip {
    grid-template-columns: 1fr;
  }
  .journey-compare-arrow {
    display: none;
  }
  .journey-phase-row {
    grid-template-columns: 1fr;
  }
  .mini-journey-step {
    min-height: 104px;
    padding-top: 40px;
  }
  .mini-journey-step .mini-top {
    font-size: 44px;
  }
}
.coex-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}
.coex-summary-item {
  padding: 16px;
  border-radius: 12px;
  background: #f5f8fb;
}
.coex-summary-item span {
  font-size: 11px;
  color: #607185;
  display: block;
}
.coex-summary-item strong {
  font-size: 23px;
  color: #123b67;
  display: block;
  margin-top: 6px;
}
.coex-summary-item small {
  font-size: 10px;
  color: #748396;
  display: block;
  margin-top: 4px;
  line-height: 1.4;
}
.coex-table-wrap {
  overflow: auto;
  border: 1px solid var(--coex-line);
  border-radius: 12px;
}
.coex-matrix {
  width: 100%;
  min-width: 1140px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 11px;
}
.coex-matrix th {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: #eef4f9;
  color: #29425d;
  text-align: left;
  padding: 11px 9px;
  border-bottom: 1px solid var(--coex-line);
  white-space: nowrap;
}
.coex-matrix td {
  padding: 10px 9px;
  border-bottom: 1px solid #e8eef4;
  vertical-align: middle;
}
.coex-matrix tbody tr:last-child td {
  border-bottom: 0;
}
.coex-matrix tbody tr:hover {
  background: #f8fbfd;
}
.coex-matrix .subject-cell {
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 3;
  min-width: 170px;
}
.coex-matrix tbody tr:hover .subject-cell {
  background: #f8fbfd;
}
.coex-value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.coex-swatch {
  width: 13px;
  height: 13px;
  border-radius: 4px;
  background: var(--swatch);
  border: 1px solid rgba(0, 0, 0, 0.15);
}
.gear-badge {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 24px;
  padding: 0 6px;
  border-radius: 7px;
  background: var(--gear-bg);
  color: var(--gear-fg);
  font-size: 10px;
  font-weight: 900;
}
.shift {
  font-weight: 900;
}
.shift.up {
  color: #087a4f;
}
.shift.down {
  color: #bd3038;
}
.shift.same {
  color: #6b7280;
}
.target-gap {
  font-weight: 800;
  color: #905f09;
}
.zone-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 9px;
}
.zone-item {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 11px;
  background: #f6f8fb;
}
.zone-dot {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border-radius: 5px;
  background: var(--zone-color);
  margin-top: 2px;
}
.zone-item strong {
  font-size: 12px;
  color: #1c334e;
}
.zone-item span {
  font-size: 10px;
  color: #64748b;
  line-height: 1.45;
  display: block;
  margin-top: 3px;
}
.reward-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.reward-card {
  min-width: 220px;
  max-width: 270px;
  padding: 17px;
  border-radius: 13px;
  background: #fff;
  border: 1px solid var(--coex-line);
}
.reward-card.purple {
  background: #f7efff;
  border-color: #d9b8f6;
}
.reward-card.gold {
  background: #fff8e7;
  border-color: #ecd79c;
}
.reward-card.green {
  background: #edf9f3;
  border-color: #b7dfcb;
}
.reward-card i {
  font-style: normal;
  font-size: 22px;
}
.reward-card strong {
  display: block;
  color: #173a60;
  margin-top: 8px;
}
.reward-card span {
  display: block;
  color: #607084;
  font-size: 10px;
  line-height: 1.45;
  margin-top: 4px;
}
.intervention-list {
  display: grid;
  gap: 9px;
}
.intervention-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 105px minmax(220px, 2fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  background: #f7f9fc;
  border-radius: 11px;
}
.intervention-row strong {
  font-size: 12px;
}
.intervention-row p {
  margin: 0;
  font-size: 10px;
  color: #64748b;
  line-height: 1.5;
}
.intervention-row .action-label {
  font-size: 10px;
  color: #29435f;
  font-weight: 800;
}
.coex-alert {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  background: #fff7e7;
  color: #704d0e;
}
.coex-alert.danger {
  background: #fff0f1;
  color: #89252d;
}
.coex-alert.success {
  background: #edf9f3;
  color: #11613f;
}
.coex-alert strong {
  font-size: 12px;
}
.coex-alert span {
  display: block;
  font-size: 10px;
  line-height: 1.5;
  margin-top: 3px;
}
.teacher-coex-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.55fr);
  gap: 16px;
}
.coex-editor-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 100px 70px 82px minmax(150px, 1.2fr);
  gap: 9px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid #e7edf3;
}
.coex-editor-row:last-child {
  border-bottom: 0;
}
.coex-editor-row input {
  width: 86px;
  padding: 9px;
  border: 1px solid #cbd8e5;
  border-radius: 9px;
}
.coex-editor-row .readonly-mark {
  font-size: 12px;
  color: #607083;
}
.coex-preview {
  display: grid;
  gap: 10px;
}
.preview-block {
  padding: 14px;
  border-radius: 11px;
  background: #f4f7fa;
}
.preview-block span {
  font-size: 10px;
  color: #607083;
  display: block;
}
.preview-block strong {
  font-size: 20px;
  color: #123b67;
  display: block;
  margin-top: 5px;
}
.risk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.risk-card {
  background: #fff;
  border: 1px solid var(--coex-line);
  border-radius: 14px;
  padding: 17px;
}
.risk-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.risk-card h4 {
  margin: 0;
  color: #123b67;
  font-size: 14px;
}
.risk-card p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 10px;
  line-height: 1.5;
}
.risk-subjects {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 13px 0;
}
.risk-subjects span {
  font-size: 9px;
  background: #f1f4f7;
  border-radius: 999px;
  padding: 5px 7px;
}
.risk-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #e5ebf1;
  padding-top: 12px;
}
.priority {
  font-size: 10px;
  font-weight: 900;
}
.priority.high {
  color: #ba2d36;
}
.priority.medium {
  color: #9a670d;
}
.priority.low {
  color: #14704c;
}
.rules-table input,
.rules-table select {
  width: 100%;
  min-width: 74px;
  border: 1px solid #ccd8e4;
  border-radius: 8px;
  padding: 8px;
  font-size: 10px;
}
.rules-table td:first-child {
  font-weight: 900;
}
.rule-color {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--rule-color);
  border: 1px solid rgba(0, 0, 0, 0.18);
}
.checkpoint-strip {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.checkpoint-button {
  padding: 8px 11px;
  border-radius: 999px;
  background: #eef3f7;
  color: #4e6074;
  font-weight: 800;
  font-size: 10px;
}
.checkpoint-button.active {
  background: #123f70;
  color: #fff;
}
.checkpoint-button:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(23, 105, 170, 0.28);
  outline-offset: 2px;
}
.coex-chart {
  height: 210px;
  display: flex;
  align-items: flex-end;
  gap: 15px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 16px 12px 3px;
  border-bottom: 1px solid #cfd9e3;
}
.coex-chart.compact {
  gap: 6px;
  overflow: hidden;
}
.coex-chart.compact .coex-chart-col {
  min-width: 0;
}
.coex-chart.compact .coex-chart-bar {
  width: 28px;
}
.coex-chart.compact .coex-chart-col span {
  font-size: 8px;
}
.coex-chart-col {
  height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 7px;
  min-width: 66px;
}
.coex-chart-bar {
  width: min(58px, 85%);
  height: calc(var(--value) * 1.65px);
  max-height: 165px;
  background: var(--bar-color);
  border-radius: 8px 8px 3px 3px;
  position: relative;
}
.coex-chart-bar strong {
  position: absolute;
  top: -21px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: #173755;
}
.coex-chart-col span {
  font-size: 9px;
  color: #607083;
  text-align: center;
}
.coex-subject-list {
  display: grid;
  gap: 10px;
  margin-top: 2px;
}
.coex-side-head {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--coex-line);
}
.coex-side-head h4 {
  margin: 0;
  color: #0f3157;
  font-size: 15px;
}
.coex-side-head p {
  margin: 4px 0 0;
  color: #5b6b7d;
  font-size: 11px;
  line-height: 1.5;
}
.coex-subject-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--coex-line);
}
.coex-subject-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.coex-subject-name {
  min-width: 0;
}
.coex-subject-name strong {
  display: block;
  color: #0f3157;
  font-size: 12px;
  line-height: 1.35;
}
.coex-subject-name span {
  display: block;
  color: #698093;
  font-size: 10px;
  margin-top: 3px;
}
.coex-subject-mark {
  font-size: 13px;
  font-weight: 800;
  color: #123f70;
  text-align: right;
  white-space: nowrap;
}
.coex-subject-mark small {
  display: block;
  font-size: 10px;
  color: #70849a;
  font-weight: 700;
  margin-top: 2px;
}
.coex-subject-scroll {
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}
.coex-subject-scroll::-webkit-scrollbar {
  width: 8px;
}
.coex-subject-scroll::-webkit-scrollbar-thumb {
  background: #d8e1eb;
  border-radius: 999px;
}
.coex-subject-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.coex-side-summary {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}
.coex-side-summary .coex-side-row {
  padding-bottom: 10px;
}
@media (max-width: 1000px) {
  .coex-hero {
    grid-template-columns: 1fr;
  }
  .coex-hero-side {
    grid-template-columns: repeat(3, 1fr);
  }
  .coex-side-row {
    display: block;
    border-bottom: 0;
    padding: 0;
  }
  .coex-side-row strong {
    display: block;
    text-align: left;
    margin-top: 5px;
  }
  .teacher-coex-grid {
    grid-template-columns: 1fr;
  }
  .intervention-row {
    grid-template-columns: 1fr 90px 1.5fr;
  }
}
@media (max-width: 700px) {
  .coex-hero-main {
    padding: 22px;
    display: block;
  }
  .gear-orbit {
    width: 116px;
    height: 116px;
    margin-bottom: 17px;
  }
  .coex-hero-side {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .coex-subject-scroll {
    max-height: none;
  }
  .coex-side-row {
    display: flex;
    border-bottom: 1px solid var(--coex-line);
    padding-bottom: 10px;
  }
  .coex-side-row strong {
    text-align: right;
    margin: 0;
  }
  .coex-section {
    padding: 17px;
  }
  .coex-section-head {
    display: block;
  }
  .coex-section-head .actions {
    margin-top: 12px;
  }
  .intervention-row {
    grid-template-columns: 1fr;
  }
  .teacher-coex-grid {
    display: block;
  }
  .coex-editor-row {
    grid-template-columns: 1fr 84px 58px 68px;
  }
  .coex-editor-row .editor-action {
    grid-column: 1/-1;
  }
  .coex-chart {
    overflow-x: auto;
    justify-content: flex-start;
  }
  .coex-chart-col {
    flex: 0 0 74px;
  }
  .reward-card {
    min-width: 190px;
  }
  .risk-grid {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
  .journey-car,
  .btn {
    transition: none !important;
  }
  .btn:hover {
    transform: none;
  }
}

.year-compare-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 0 16px;
  border-bottom: 1px solid #edf1f5;
}
.year-compare-head > div {
  display: grid;
  gap: 4px;
}
.year-compare-head strong {
  font-size: 28px;
  letter-spacing: -0.8px;
  color: var(--navy);
}
.year-compare-head small {
  color: var(--muted);
  font-size: 12px;
}
.compare-label {
  font-size: 11px;
  font-weight: 800;
  color: #6f7e90;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.compare-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #eef5fb;
  color: #2a6cae;
  font-weight: 900;
}
.coex-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.coex-summary-item {
  border: 1px solid #e5edf5;
  border-radius: 14px;
  padding: 14px;
  background: #fbfdff;
}
.coex-summary-item span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: #6e7b8d;
  text-transform: uppercase;
  letter-spacing: 0.35px;
}
.coex-summary-item strong {
  display: block;
  margin-top: 6px;
  font-size: 25px;
  letter-spacing: -0.7px;
  color: var(--navy);
}
.coex-summary-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}
@media (max-width: 900px) {
  .year-compare-head {
    grid-template-columns: 1fr;
  }
  .compare-arrow {
    display: none;
  }
  .coex-summary-grid {
    grid-template-columns: 1fr;
  }
}

.grade-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 850;
  font-size: 12px;
  line-height: 1;
  color: var(--grade-fg, #fff);
  background: var(--grade-bg, #123f70);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.grade-pill.small {
  padding: 6px 9px;
  font-size: 11px;
}
.grade-pill.plain {
  background: #eef3f8;
  color: #44556a;
  box-shadow: none;
}
.grade-star {
  font-size: 12px;
  line-height: 1;
}
.grade-star.silver {
  color: #c6d0db;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}
.grade-star.gold {
  color: #e1ab22;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}
.subject-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.subject-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f0f5fa;
  border: 1px solid #dce7f1;
  color: #294869;
  font-size: 11px;
  font-weight: 800;
}
.subject-chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #be80ff;
  display: inline-block;
}
.trend-card {
  position: relative;
  margin-top: 18px;
  background: #f4f8fc;
  border: 1px solid #dbe6f0;
  border-radius: 18px;
  padding: 12px 12px 10px;
  overflow: hidden;
}
.trend-caption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  color: #6d7e93;
  font-size: 11px;
  font-weight: 700;
}
.trend-caption strong {
  color: #123f70;
}
.chart-callout {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e3ebf4;
  color: #5f7083;
  font-size: 11px;
  line-height: 1.6;
}
.mini-journey {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.mini-journey-step {
  position: relative;
  min-height: 116px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  padding-top: 44px;
}
.mini-journey-step .mini-top {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 52px;
  line-height: 1;
}
.mini-journey-step .mini-top .car-right {
  font-size: inherit;
  line-height: 1;
  display: inline-block;
}
.mini-journey-step .mini-box {
  width: 100%;
  border-radius: 16px;
  padding: 12px 8px;
  background: var(--mini-soft);
  border: 2px solid transparent;
  color: var(--mini-fg);
  box-shadow: inset 0 -3px 0 rgba(255, 255, 255, 0.45);
}
.mini-journey-step.reached .mini-box {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.75),
      rgba(255, 255, 255, 0.08)
    ),
    var(--mini-color);
  color: var(--mini-fg);
}
.mini-journey-step.current .mini-box {
  border-color: rgba(17, 63, 117, 0.22);
  box-shadow:
    0 0 0 4px rgba(204, 102, 255, 0.13),
    inset 0 -3px 0 rgba(255, 255, 255, 0.35);
}
.mini-journey-step.target .mini-top {
  color: #d6a027;
}
.mini-journey-step b {
  display: block;
  font-size: 10px;
}
.mini-journey-step strong {
  display: block;
  font-size: 12px;
  margin-top: 3px;
}
.mini-journey-step span {
  display: block;
  margin-top: 6px;
  font-size: 9px;
  color: #66758a;
}
.exam-timeline {
  border: 1px solid #e4ebf3;
  border-radius: 18px;
  padding: 16px;
  background: #fbfdff;
}
.exam-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.exam-step {
  position: relative;
  padding: 14px 14px 13px;
  border-radius: 16px;
  border: 1px solid #dde7f1;
  background: #fff;
}
.exam-step.done {
  background: #f5fbf7;
  border-color: #d9ede0;
}
.exam-step.current {
  background: #f8f3ff;
  border-color: #e2ccff;
  box-shadow: 0 10px 22px rgba(118, 87, 187, 0.12);
}
.exam-step .exam-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef3f8;
  color: #53657b;
  font-size: 10px;
  font-weight: 900;
}
.exam-step.done .exam-tag {
  background: #e8f7ef;
  color: #13704d;
}
.exam-step.current .exam-tag {
  background: #efe4ff;
  color: #7647c5;
}
.exam-step h4 {
  margin: 10px 0 6px;
  color: #123f70;
  font-size: 13px;
}
.exam-step p {
  margin: 0;
  color: #627388;
  font-size: 11px;
  line-height: 1.55;
}
.exam-car {
  position: absolute;
  top: -18px;
  left: 12px;
  font-size: 38px;
  animation: carHopRight 1.6s ease-out forwards;
}
.exam-car .car-right {
  font-size: inherit;
  line-height: 1;
  display: inline-block;
}
.exam-note {
  margin-top: 12px;
  color: #6a7a8e;
  font-size: 11px;
}
.ecert-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: #fff7df;
  color: #8d650e;
  border: 1px solid #f0d792;
  font-size: 12px;
  font-weight: 900;
}
.certificate-card {
  border: 1px solid #e7edf5;
  border-radius: 24px;
  background: linear-gradient(135deg, #fffdf7, #f3f8ff 58%, #f9f2ff);
  padding: 24px;
  text-align: center;
}
.certificate-card h3 {
  margin: 0;
  color: #123f70;
  font-size: 26px;
  letter-spacing: -0.7px;
}
.certificate-card p {
  color: #566880;
  line-height: 1.7;
  margin: 10px auto;
  max-width: 620px;
}
.certificate-seal {
  width: 92px;
  height: 92px;
  margin: 18px auto;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe9a3, #e3b021 70%);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 36px;
  box-shadow: 0 18px 28px rgba(218, 164, 40, 0.26);
}
.teacher-monitor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.monitor-card {
  border: 1px solid #e2eaf2;
  border-radius: 18px;
  background: #fff;
  padding: 18px;
}
.monitor-card h3 {
  margin: 0;
  color: #123f70;
  font-size: 18px;
}
.monitor-card p {
  margin: 7px 0 14px;
  color: #66778b;
  font-size: 12px;
  line-height: 1.6;
}
.monitor-badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.monitor-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 999px;
  background: #f0f5fa;
  color: #40607e;
  font-size: 11px;
  font-weight: 800;
}
.import-hint {
  margin-top: 12px;
  padding: 13px 14px;
  border-radius: 14px;
  background: #f4f9ff;
  border: 1px solid #d9e6f3;
  color: #5a6d84;
  font-size: 11px;
  line-height: 1.6;
}
@keyframes carHopRight {
  0% {
    transform: translateX(-18px) translateY(4px) scale(0.92);
    opacity: 0;
  }
  55% {
    transform: translateX(8px) translateY(-2px) scale(1.04);
    opacity: 1;
  }
  100% {
    transform: translateX(0) translateY(0) scale(1);
    opacity: 1;
  }
}
@media (max-width: 900px) {
  .teacher-monitor-grid {
    grid-template-columns: 1fr;
  }
  .mini-journey {
    grid-template-columns: repeat(3, 1fr);
  }
  .exam-track {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .mini-journey {
    grid-template-columns: repeat(2, 1fr);
  }
  .exam-track {
    grid-template-columns: 1fr;
  }
}
@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .panel,
  .coex-hero-main,
  .coex-hero-side,
  .coex-summary-item,
  .reward-card,
  .ladder-step-box,
  .grade-pill,
  .pill,
  .coex-chip {
    box-shadow: none !important;
  }
}

.car-right {
  display: inline-block;
  transform: scaleX(-1);
}
.trend-detail {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(260px, 1.2fr);
  gap: 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e1e8f0;
  color: #647589;
  font-size: 11px;
  line-height: 1.65;
}
.trend-detail strong {
  color: #123f70;
}
.trend-detail .right {
  text-align: right;
}
.trend-info-card {
  background: #f8fbfe;
  border: 1px solid #dde7f1;
  border-radius: 16px;
  padding: 14px;
}
.trend-info-card h4 {
  margin: 0 0 8px;
  color: #123f70;
  font-size: 12px;
  letter-spacing: -0.1px;
}
.trend-info-card p {
  margin: 0;
  color: #63758a;
}
.trend-bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
}
.trend-bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #e1e9f2;
  border-radius: 12px;
  color: #5f7085;
}
.trend-bullet-list li i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4f7fc6;
  display: block;
  flex: 0 0 8px;
  margin-top: 5px;
}
.trend-bullet-list li span {
  display: block;
}
.trend-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.trend-metric {
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e1e9f2;
  border-radius: 12px;
}
.trend-metric b {
  display: block;
  color: #123f70;
  font-size: 15px;
  letter-spacing: -0.2px;
}
.trend-metric span {
  display: block;
  color: #6a7c91;
  font-size: 10px;
  margin-top: 3px;
}
.certificate-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(125, 104, 255, 0.28);
  border-radius: 28px;
  background: radial-gradient(
    circle at top,
    #6846ff 0%,
    #4122c9 34%,
    #1a1260 100%
  );
  padding: 26px;
  text-align: center;
  color: #fff;
  box-shadow: 0 22px 50px rgba(40, 26, 119, 0.32);
}
.certificate-card:before {
  content: "";
  position: absolute;
  inset: -20% 12% auto;
  height: 220px;
  background: radial-gradient(
    circle,
    rgba(103, 193, 255, 0.33),
    rgba(103, 193, 255, 0) 66%
  );
  pointer-events: none;
}
.certificate-card:after {
  content: "";
  position: absolute;
  inset: auto -10% -25% auto;
  width: 280px;
  height: 280px;
  background: radial-gradient(
    circle,
    rgba(255, 102, 194, 0.23),
    rgba(255, 102, 194, 0) 65%
  );
  pointer-events: none;
}
.certificate-card h3 {
  margin: 10px 0 0;
  color: #fff;
  font-size: 30px;
  letter-spacing: -0.8px;
}
.certificate-card p {
  color: #e7ebff;
  line-height: 1.75;
  margin: 12px auto;
  max-width: 650px;
  position: relative;
  z-index: 1;
}
.certificate-game-top {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.certificate-badge-level {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 112px;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffb84d 0%, #ff66d7 48%, #8458ff 100%);
  box-shadow:
    0 16px 34px rgba(255, 66, 173, 0.38),
    inset 0 0 0 3px rgba(255, 255, 255, 0.22);
  font-size: 48px;
  font-weight: 900;
  color: #fff;
  position: relative;
}
.certificate-badge-level:before,
.certificate-badge-level:after {
  content: "";
  position: absolute;
  top: 28px;
  width: 28px;
  height: 48px;
  background: linear-gradient(180deg, #66ecff, #5b88ff);
  clip-path: polygon(50% 0, 100% 45%, 82% 100%, 50% 75%, 18% 100%, 0 45%);
}
.certificate-badge-level:before {
  left: -20px;
  transform: rotate(-12deg);
}
.certificate-badge-level:after {
  right: -20px;
  transform: scaleX(-1) rotate(-12deg);
}
.certificate-subtitle {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.7px;
  color: #ffe98f;
  text-transform: uppercase;
}
.certificate-seal {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto;
  background: linear-gradient(180deg, #ffe670 0%, #ffb300 100%);
  color: #7b4a00;
  box-shadow: 0 8px 18px rgba(255, 200, 65, 0.36);
  font-size: 28px;
}
.certificate-rewards {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.certificate-reward {
  padding: 12px 10px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.16),
    rgba(255, 255, 255, 0.08)
  );
  backdrop-filter: blur(4px);
}
.certificate-reward b {
  display: block;
  font-size: 18px;
  color: #fff;
  line-height: 1;
}
.certificate-reward span {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: #dbe4ff;
}
.certificate-grade-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}
.certificate-callout {
  margin: 16px auto 0;
  max-width: 620px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #eef2ff;
  position: relative;
  z-index: 1;
}
.certificate-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.certificate-confetti span {
  position: absolute;
  width: 10px;
  height: 18px;
  border-radius: 3px;
  opacity: 0.9;
  animation: confettiFloat 3.8s ease-in-out infinite;
}
.certificate-confetti span:nth-child(1) {
  left: 10%;
  top: 12%;
  background: #67e2ff;
  animation-delay: 0.1s;
}
.certificate-confetti span:nth-child(2) {
  left: 22%;
  top: 20%;
  background: #ffd84d;
  animation-delay: 0.4s;
}
.certificate-confetti span:nth-child(3) {
  right: 18%;
  top: 16%;
  background: #ff74da;
  animation-delay: 0.9s;
}
.certificate-confetti span:nth-child(4) {
  right: 9%;
  top: 24%;
  background: #7df79e;
  animation-delay: 0.2s;
}
.certificate-confetti span:nth-child(5) {
  left: 15%;
  bottom: 18%;
  background: #b38cff;
  animation-delay: 1.1s;
}
.certificate-confetti span:nth-child(6) {
  right: 28%;
  bottom: 14%;
  background: #66ecff;
  animation-delay: 0.7s;
}
.certificate-confetti span:nth-child(7) {
  left: 48%;
  top: 8%;
  background: #ff9b5f;
  animation-delay: 0.5s;
}
.certificate-confetti span:nth-child(8) {
  right: 44%;
  bottom: 20%;
  background: #ffe670;
  animation-delay: 1.4s;
}
@keyframes confettiFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(16deg);
  }
}

.analytics-toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.analytics-toolbar.analytics-toolbar-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.analytics-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.analytics-mini-card {
  border: 1px solid #dee7f0;
  border-radius: 16px;
  padding: 14px;
  background: #fbfdff;
}
.analytics-mini-card span {
  display: block;
  color: #6d7e91;
  font-size: 11px;
}
.analytics-mini-card strong {
  display: block;
  color: #123f70;
  font-size: 24px;
  letter-spacing: -0.5px;
  margin-top: 4px;
}
.analytics-mini-card small {
  display: block;
  color: #73859a;
  font-size: 11px;
  margin-top: 4px;
  line-height: 1.5;
}
.grade-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.grade-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: #f3f7fb;
  border: 1px solid #dbe5ef;
  color: #264564;
  font-size: 11px;
  font-weight: 800;
}
.grade-chip.active {
  background: #123f70;
  color: #fff;
  border-color: #123f70;
}
.grade-chip b {
  font-size: 10px;
  opacity: 0.78;
}
.analytics-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 480px;
  overflow: auto;
  padding-right: 4px;
}
.analytics-list::-webkit-scrollbar {
  width: 8px;
}
.analytics-list::-webkit-scrollbar-thumb {
  background: #d8e1eb;
  border-radius: 999px;
}
.analytics-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #e2eaf2;
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}
.analytics-row .meta {
  flex: 1;
  min-width: 0;
}
.analytics-row .meta strong {
  display: block;
  color: #123f70;
  font-size: 13px;
}
.analytics-row .meta span {
  display: block;
  color: #68798d;
  font-size: 11px;
  line-height: 1.5;
  margin-top: 3px;
}
.analytics-row .score {
  font-size: 16px;
  font-weight: 900;
  color: #123f70;
  white-space: nowrap;
}
.analytics-note {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f7fbff;
  border: 1px solid #dce9f4;
  color: #5f7085;
  font-size: 11px;
  line-height: 1.65;
}
.analytics-table td,
.analytics-table th {
  white-space: nowrap;
}
@media (max-width: 1000px) {
  .analytics-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .analytics-toolbar.analytics-toolbar-3 {
    grid-template-columns: 1fr 1fr;
  }
  .trend-detail {
    grid-template-columns: 1fr;
  }
  .trend-bullet-list {
    grid-template-columns: 1fr;
  }
  .certificate-rewards {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 700px) {
  .analytics-toolbar,
  .analytics-toolbar.analytics-toolbar-3,
  .analytics-mini-grid,
  .trend-metric-grid,
  .certificate-rewards {
    grid-template-columns: 1fr;
  }
}

/* Phone layout fixes: grid columns may shrink below their content, wide
   tables scroll inside their panel, and the 6-level ladder wraps. */
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-2 > *,
.grid-2-1 > *,
.grid-3 > *,
.coex-section,
.panel {
  min-width: 0;
}
@media (max-width: 1020px) {
  .grid-2-1 {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 700px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .analytics-table,
  .rules-table {
    display: block;
    overflow-x: auto;
  }
  .journey-ladder {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 18px;
  }
  .ladder-step {
    min-width: 0;
  }
}

/* School logo (replaces the "SMK" text badge). */
.crest-logo {
  display: block;
  height: 48px;
  width: auto;
  flex: none;
}
.auth-top .crest-logo {
  height: 76px;
  margin: 0 auto 13px;
}
.dash-brand .crest-logo {
  height: 40px;
}
