:root {
  --ink: #18322d;
  --muted: #6f807c;
  --line: #e4e9e7;
  --canvas: #f5f7f6;
  --card: #ffffff;
  --green-950: #123a32;
  --green-900: #194b40;
  --green-700: #277565;
  --green-500: #44a58d;
  --green-100: #dff2eb;
  --green-50: #eff9f5;
  --lime: #d7e85e;
  --coral: #e8866f;
  --coral-50: #fff2ef;
  --amber: #e7b653;
  --amber-50: #fff8e8;
  --blue: #5f86b8;
  --blue-50: #eef4fb;
  --shadow: 0 12px 36px rgba(25, 57, 50, .08);
  --radius-lg: 22px;
  --radius-md: 15px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.eyebrow {
  margin: 0 0 8px;
  color: var(--green-700);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow--light { color: #9fd1c4; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 {
  font-family: "Manrope", Arial, sans-serif;
  letter-spacing: -.03em;
}

/* Login */
.login-view { display: grid; grid-template-columns: minmax(480px, 1.05fr) minmax(480px, .95fr); min-height: 100vh; }
.login-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 52px clamp(52px, 7vw, 110px);
  color: white;
  background:
    radial-gradient(circle at 84% 20%, rgba(92, 171, 150, .32), transparent 25%),
    linear-gradient(145deg, #123c33 0%, #174c40 55%, #11382f 100%);
}
.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px 14px 14px 5px;
  color: white;
  background: var(--green-700);
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 24px;
}
.brand-mark--light { position: relative; z-index: 2; color: var(--green-950); background: var(--lime); }
.brand-mark--small { width: 40px; height: 40px; border-radius: 12px 12px 12px 4px; font-size: 20px; }
.login-copy { position: relative; z-index: 2; margin: auto 0; }
.login-copy h1 { max-width: 650px; margin-bottom: 28px; font-size: clamp(45px, 5.2vw, 76px); line-height: 1.05; }
.login-lead { max-width: 510px; margin: 0; color: #c5d9d4; font-size: clamp(17px, 1.4vw, 21px); }
.login-quote {
  position: relative;
  z-index: 2;
  display: flex;
  max-width: 480px;
  gap: 18px;
  align-items: flex-start;
  color: #d5e5e1;
}
.login-quote p { margin: 5px 0 0; }
.quote-icon { color: var(--lime); font-family: Georgia, serif; font-size: 54px; line-height: .75; }
.brand-orbits span { position: absolute; border: 1px solid rgba(255, 255, 255, .08); border-radius: 50%; }
.brand-orbits span:nth-child(1) { width: 410px; height: 410px; right: -170px; top: 12%; }
.brand-orbits span:nth-child(2) { width: 590px; height: 590px; right: -260px; top: 2%; }
.brand-orbits span:nth-child(3) { width: 50px; height: 50px; right: 21%; top: 26%; border: 12px solid rgba(215, 232, 94, .9); }
.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px clamp(52px, 8vw, 140px);
  background: #fbfcfb;
}
.login-box { width: 100%; max-width: 480px; margin: auto; }
.mobile-logo { display: none; }
.login-box h2 { margin-bottom: 8px; font-size: 38px; }
.login-box > .muted { margin-bottom: 34px; }
.form-stack { display: flex; flex-direction: column; gap: 19px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span, .field-label { color: #344a45; font-size: 13px; font-weight: 700; }
.field input, .field select, .field textarea,
.compact-field input, .compact-field select, .compact-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  color: var(--ink);
  border: 1px solid #dce4e1;
  border-radius: 11px;
  outline: none;
  background: white;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea, .compact-field textarea { min-height: 100px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus,
.compact-field input:focus, .compact-field select:focus, .compact-field textarea:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 4px rgba(68, 165, 141, .12);
}
.password-wrap { position: relative; }
.password-wrap input { padding-right: 50px; }
.icon-button {
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.password-wrap .icon-button { position: absolute; top: 4px; right: 4px; width: 40px; height: 40px; color: var(--muted); }
.button {
  display: inline-flex;
  min-height: 42px;
  gap: 9px;
  align-items: center;
  justify-content: center;
  padding: 10px 17px;
  border: 0;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s, background .2s, box-shadow .2s;
}
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .55; cursor: wait; transform: none; }
.button--primary { color: white; background: var(--green-900); box-shadow: 0 8px 22px rgba(25, 75, 64, .18); }
.button--primary:hover { background: #113f35; }
.button--secondary { color: var(--green-900); background: var(--green-100); }
.button--ghost { color: var(--green-900); border: 1px solid var(--line); background: white; }
.button--danger { color: #a54e3c; background: var(--coral-50); }
.button--large { min-height: 52px; margin-top: 4px; }
.button--small { min-height: 34px; padding: 7px 11px; font-size: 13px; }
.button svg { width: 18px; height: 18px; }
.form-error { min-height: 0; color: #b84d39; font-size: 13px; font-weight: 600; }
.form-error:not(:empty) { padding: 10px 12px; border-radius: 8px; background: var(--coral-50); }
.demo-access { margin-top: 30px; border-top: 1px solid var(--line); }
.demo-heading {
  display: flex;
  width: 100%;
  justify-content: space-between;
  padding: 18px 0 12px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.demo-heading svg { width: 17px; transition: transform .2s; }
.demo-access.open .demo-heading svg { transform: rotate(180deg); }
.demo-list { display: none; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo-access.open .demo-list { display: grid; }
.demo-list button {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: left;
  background: white;
  cursor: pointer;
}
.demo-list button:hover { border-color: #a9c9c0; background: var(--green-50); }
.demo-list button > span:last-child { display: flex; min-width: 0; flex-direction: column; }
.demo-list strong { font-size: 12px; }
.demo-list small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; }
.role-dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--green-500); }
.role-dot--admin { background: var(--coral); }
.role-dot--teacher { background: var(--amber); }
.role-dot--company { background: var(--blue); }
.login-footer { margin: 28px auto 0; color: #9aa8a5; font-size: 12px; }

/* Portal layout */
.portal-view { display: flex; min-height: 100vh; background: var(--canvas); }
.sidebar {
  position: fixed;
  z-index: 20;
  display: flex;
  width: 258px;
  height: 100vh;
  flex-direction: column;
  padding: 25px 18px 20px;
  color: #d9e7e3;
  background: var(--green-950);
}
.sidebar-brand { display: flex; gap: 12px; align-items: center; padding: 0 8px 28px; color: white; }
.sidebar-brand > div:last-child { display: flex; flex-direction: column; }
.sidebar-brand strong { font-family: "Manrope"; font-size: 19px; letter-spacing: .08em; }
.sidebar-brand span { color: #8fb1a8; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.main-nav { display: flex; flex-direction: column; gap: 4px; }
.nav-section-label { margin: 21px 12px 7px; color: #668b81; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.nav-item {
  display: flex;
  width: 100%;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border: 0;
  border-radius: 10px;
  color: #a9c2bc;
  text-align: left;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.nav-item:hover { color: white; background: rgba(255, 255, 255, .055); }
.nav-item.active { color: white; background: rgba(99, 174, 154, .18); }
.nav-item.active::before { position: absolute; left: 0; width: 3px; height: 22px; border-radius: 0 4px 4px 0; background: var(--lime); content: ""; }
.nav-item svg { width: 18px; height: 18px; }
.sidebar-help { margin-top: auto; padding: 16px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; background: rgba(255, 255, 255, .035); }
.sidebar-help__icon { display: grid; width: 34px; height: 34px; margin-bottom: 10px; place-items: center; border-radius: 10px; color: var(--green-950); background: var(--lime); }
.sidebar-help strong, .sidebar-help span { display: block; }
.sidebar-help strong { margin-bottom: 3px; color: white; font-size: 13px; }
.sidebar-help span { color: #8eb0a7; font-size: 11px; }
.sidebar-help a { display: inline-block; margin-top: 9px; color: var(--lime); font-size: 11px; font-weight: 700; text-decoration: none; }
.logout-button {
  display: flex;
  gap: 11px;
  align-items: center;
  margin-top: 10px;
  padding: 11px 12px;
  border: 0;
  color: #91ada6;
  background: transparent;
  font-size: 13px;
  cursor: pointer;
}
.logout-button:hover { color: white; }
.portal-shell { width: calc(100% - 258px); min-width: 0; margin-left: 258px; }
.topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  height: 78px;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(22px, 3vw, 46px);
  border-bottom: 1px solid #e5eae8;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
}
.topbar-title p { margin: 0; color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.topbar-title strong { font-family: "Manrope"; font-size: 18px; }
.topbar-actions { display: flex; gap: 12px; align-items: center; }
.today-pill { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 12px; }
.today-pill svg { width: 16px; }
.notification-button {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  cursor: pointer;
}
.notification-button span { position: absolute; top: 7px; right: 7px; width: 6px; height: 6px; border: 1px solid white; border-radius: 50%; background: var(--coral); }
.user-chip { display: flex; gap: 10px; align-items: center; padding-left: 4px; }
.avatar {
  display: grid;
  width: 38px;
  height: 38px;
  flex: none;
  place-items: center;
  border-radius: 12px;
  color: var(--green-950);
  background: var(--lime);
  font-weight: 800;
}
.user-chip__copy { display: flex; flex-direction: column; }
.user-chip__copy strong { font-size: 13px; }
.user-chip__copy span { color: var(--muted); font-size: 10px; }
.mobile-menu-button { display: none; border: 0; background: transparent; }
.content { max-width: 1600px; min-height: calc(100vh - 78px); margin: 0 auto; padding: clamp(25px, 3vw, 44px); outline: none; }
.sidebar-backdrop { display: none; }

/* Shared content */
.page-head { display: flex; gap: 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; }
.page-head h1 { margin-bottom: 5px; font-size: clamp(27px, 3vw, 38px); }
.page-head p { max-width: 720px; margin-bottom: 0; color: var(--muted); }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 20px; }
.stat-card {
  position: relative;
  overflow: hidden;
  min-height: 144px;
  padding: 20px;
  border: 1px solid #e8eceb;
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: 0 4px 16px rgba(27, 60, 52, .035);
}
.stat-card__top { display: flex; align-items: center; justify-content: space-between; }
.stat-card__icon { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 11px; color: var(--green-700); background: var(--green-100); }
.stat-card__icon--amber { color: #9e7016; background: var(--amber-50); }
.stat-card__icon--coral { color: #a9523f; background: var(--coral-50); }
.stat-card__icon--blue { color: #456a9a; background: var(--blue-50); }
.stat-card__trend { display: flex; gap: 3px; align-items: center; color: var(--green-700); font-size: 11px; font-weight: 700; }
.stat-card__trend svg { width: 13px; }
.stat-card strong { display: block; margin-top: 16px; font-family: "Manrope"; font-size: 29px; line-height: 1; }
.stat-card > span { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; }
.card-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(290px, .85fr); gap: 20px; }
.card-grid--equal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  min-width: 0;
  padding: 22px;
  border: 1px solid #e6ebe9;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: 0 5px 20px rgba(24, 56, 48, .04);
}
.card--flush { padding: 0; overflow: hidden; }
.card--tinted { border-color: #d6ebe4; background: var(--green-50); }
.card--dark { color: white; border: 0; background: var(--green-900); }
.card-head { display: flex; gap: 15px; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
.card-head h2, .card-head h3 { margin: 0; font-size: 17px; }
.card-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.card--dark .card-head p { color: #a8c7bf; }
.text-link { padding: 0; border: 0; color: var(--green-700); background: none; font-size: 12px; font-weight: 700; cursor: pointer; }
.stack { display: flex; flex-direction: column; gap: 13px; }
.empty-state { padding: 38px 20px; color: var(--muted); text-align: center; }
.empty-state svg { width: 34px; height: 34px; margin-bottom: 10px; color: #aebbb8; }
.empty-state strong { display: block; margin-bottom: 4px; color: var(--ink); }
.notice { padding: 13px 15px; border-radius: 10px; color: #65521f; background: var(--amber-50); font-size: 13px; }
.notice--green { color: var(--green-900); background: var(--green-50); }
.badge {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--green-700);
  background: var(--green-100);
  font-size: 10px;
  font-weight: 800;
}
.badge--amber { color: #8b6418; background: var(--amber-50); }
.badge--coral { color: #a14c39; background: var(--coral-50); }
.badge--blue { color: #456a9a; background: var(--blue-50); }
.badge--gray { color: #667570; background: #eff2f1; }
.progress-track { overflow: hidden; height: 7px; border-radius: 99px; background: #e8eeec; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--green-500); }
.progress-track--large { height: 10px; }
.progress-track--lime span { background: var(--lime); }
.progress-label { display: flex; justify-content: space-between; margin-bottom: 7px; font-size: 11px; }
.progress-label strong { color: var(--green-700); }

/* Tables and lists */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.data-table th {
  padding: 11px 14px;
  color: #81908c;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.data-table td { padding: 14px; border-bottom: 1px solid #edf0ef; font-size: 13px; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fafcfb; }
.name-cell { display: flex; gap: 10px; align-items: center; }
.mini-avatar { display: grid; width: 33px; height: 33px; flex: none; place-items: center; border-radius: 10px; color: var(--green-900); background: var(--green-100); font-size: 11px; font-weight: 800; }
.name-cell span { display: flex; flex-direction: column; }
.name-cell small { color: var(--muted); }
.row-actions { display: flex; gap: 5px; justify-content: flex-end; }
.row-actions button { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: white; cursor: pointer; }
.row-actions button:hover { color: var(--green-700); border-color: #b7d7ce; }
.row-actions button.danger:hover { color: #b04f3a; border-color: #efc6bd; background: var(--coral-50); }
.row-actions svg { width: 15px; height: 15px; }
.student-list-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid #edf1ef;
}
.student-list-item:last-child { border-bottom: 0; }
.student-list-item__copy { min-width: 0; flex: 1; }
.student-list-item__copy strong, .student-list-item__copy span { display: block; }
.student-list-item__copy span { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.student-list-item__metric { text-align: right; }
.student-list-item__metric strong { display: block; color: var(--green-700); }
.student-list-item__metric span { color: var(--muted); font-size: 10px; }
.clickable { cursor: pointer; }

/* Charts */
.chart-wrap { width: 100%; min-height: 260px; }
.line-chart { width: 100%; height: auto; overflow: visible; }
.chart-grid-line { stroke: #edf1ef; stroke-width: 1; }
.chart-axis-label { fill: #8a9995; font-size: 10px; }
.chart-line-self { fill: none; stroke: var(--green-500); stroke-width: 3; }
.chart-line-teacher { fill: none; stroke: var(--coral); stroke-width: 3; }
.chart-area { fill: url(#areaGradient); opacity: .8; }
.chart-dot { stroke: white; stroke-width: 3; }
.chart-legend { display: flex; gap: 18px; align-items: center; margin-bottom: 12px; color: var(--muted); font-size: 11px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); }
.legend-dot--teacher { background: var(--coral); }
.compare-bars { display: flex; flex-direction: column; gap: 13px; }
.compare-row { display: grid; grid-template-columns: minmax(130px, 1.4fr) minmax(180px, 3fr) 56px; gap: 12px; align-items: center; }
.compare-row__label { font-size: 12px; }
.compare-row__bars { display: flex; flex-direction: column; gap: 4px; }
.mini-bar { height: 7px; border-radius: 99px; background: #edf1ef; }
.mini-bar span { display: block; height: 100%; border-radius: inherit; background: var(--green-500); }
.mini-bar--teacher span { background: var(--coral); }
.compare-row__value { color: var(--muted); text-align: right; font-size: 11px; }
.donut {
  position: relative;
  display: grid;
  width: 150px;
  height: 150px;
  place-items: center;
  margin: 8px auto 18px;
  border-radius: 50%;
  background: conic-gradient(var(--green-500) calc(var(--value) * 1%), #e8eeec 0);
}
.donut::after { position: absolute; width: 112px; height: 112px; border-radius: 50%; background: white; content: ""; }
.donut__value { position: relative; z-index: 1; text-align: center; }
.donut__value strong { display: block; font-family: "Manrope"; font-size: 28px; }
.donut__value span { color: var(--muted); font-size: 10px; }

/* Dashboard details */
.welcome-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 190px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 30px 34px;
  border-radius: var(--radius-lg);
  color: white;
  background: linear-gradient(120deg, var(--green-900), #226b5b);
}
.welcome-banner h1 { max-width: 650px; margin: 5px 0 10px; font-size: clamp(28px, 3vw, 41px); }
.welcome-banner p { max-width: 620px; margin: 0; color: #b9d5ce; }
.welcome-banner__copy { position: relative; z-index: 2; }
.welcome-banner__art { position: relative; width: 250px; height: 150px; flex: none; }
.welcome-banner__art span { position: absolute; border-radius: 50%; }
.welcome-banner__art span:nth-child(1) { width: 150px; height: 150px; right: 12px; border: 25px solid rgba(215, 232, 94, .9); }
.welcome-banner__art span:nth-child(2) { width: 80px; height: 80px; top: 35px; right: 130px; background: rgba(255, 255, 255, .13); }
.welcome-banner__art span:nth-child(3) { width: 35px; height: 35px; right: 85px; bottom: 5px; background: var(--coral); }
.next-class { display: flex; gap: 15px; align-items: center; padding: 14px; border-radius: 13px; background: #f8faf9; }
.date-tile { display: grid; width: 52px; height: 57px; flex: none; place-items: center; border-radius: 12px; color: white; background: var(--green-900); }
.date-tile strong { font-family: "Manrope"; font-size: 20px; line-height: 1; }
.date-tile span { font-size: 9px; text-transform: uppercase; }
.timeline { position: relative; display: flex; flex-direction: column; gap: 18px; }
.timeline::before { position: absolute; top: 13px; bottom: 13px; left: 6px; width: 1px; background: #dfe7e4; content: ""; }
.timeline-item { position: relative; display: grid; grid-template-columns: 14px 1fr; gap: 13px; }
.timeline-dot { z-index: 1; width: 13px; height: 13px; margin-top: 4px; border: 3px solid white; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 1px var(--green-500); }
.timeline-item strong { font-size: 13px; }
.timeline-item p { margin: 3px 0; color: var(--muted); font-size: 12px; }
.timeline-item small { color: #97a4a1; font-size: 10px; }

/* Profile and development */
.profile-hero { display: flex; gap: 22px; align-items: center; margin-bottom: 20px; padding: 25px; border-radius: var(--radius-lg); color: white; background: var(--green-900); }
.profile-avatar { display: grid; width: 76px; height: 76px; flex: none; place-items: center; border-radius: 22px; color: var(--green-950); background: var(--lime); font-family: "Manrope"; font-size: 25px; font-weight: 800; }
.profile-hero h1 { margin: 0 0 4px; font-size: 27px; }
.profile-hero p { margin: 0; color: #a9c9c1; }
.profile-hero__meta { display: flex; gap: 8px; margin-top: 13px; flex-wrap: wrap; }
.profile-hero__meta span { padding: 5px 10px; border-radius: 99px; color: #d5e9e4; background: rgba(255, 255, 255, .08); font-size: 11px; }
.details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 26px; }
.detail-item { padding: 11px 0; border-bottom: 1px solid #edf1ef; }
.detail-item span, .detail-item strong { display: block; }
.detail-item span { margin-bottom: 3px; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.detail-item strong { font-size: 13px; }
.goal-card { padding: 16px; border: 1px solid var(--line); border-radius: 13px; }
.goal-card__head { display: flex; gap: 14px; justify-content: space-between; margin-bottom: 12px; }
.goal-card h4 { margin: 0 0 4px; font-size: 14px; }
.goal-card p { margin: 0; color: var(--muted); font-size: 12px; }
.goal-meta { display: flex; gap: 12px; margin-top: 10px; color: var(--muted); font-size: 10px; }
.feedback-card { position: relative; padding: 18px 18px 18px 48px; border-radius: 13px; background: var(--green-50); }
.feedback-card > svg { position: absolute; top: 18px; left: 17px; color: var(--green-500); }
.feedback-card p { margin-bottom: 9px; font-size: 13px; }
.feedback-card small { color: var(--muted); }

/* Forms */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.assessment-form { display: flex; flex-direction: column; gap: 12px; }
.assessment-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.8fr) minmax(310px, 3fr);
  gap: 20px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #edf1ef;
}
.assessment-row:last-child { border-bottom: 0; }
.assessment-row__label strong, .assessment-row__label span { display: block; }
.assessment-row__label strong { font-size: 13px; }
.assessment-row__label span { margin-top: 2px; color: var(--muted); font-size: 10px; }
.rating-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.rating-option { position: relative; }
.rating-option input { position: absolute; opacity: 0; pointer-events: none; }
.rating-option label {
  display: grid;
  min-height: 41px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: white;
  font-weight: 700;
  cursor: pointer;
}
.rating-option input:checked + label { color: white; border-color: var(--green-700); background: var(--green-700); box-shadow: 0 5px 13px rgba(39, 117, 101, .2); }
.rating-option input:focus-visible + label { outline: 3px solid rgba(68, 165, 141, .25); }
.scale-labels { display: flex; justify-content: space-between; margin-top: 5px; color: #98a5a2; font-size: 9px; }
.attendance-grid { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.attendance-person { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.attendance-person > strong { min-width: 0; flex: 1; font-size: 13px; }
.attendance-options { display: flex; gap: 5px; flex-wrap: wrap; }
.attendance-options label { position: relative; }
.attendance-options input { position: absolute; opacity: 0; }
.attendance-options span { display: block; padding: 6px 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font-size: 10px; font-weight: 700; cursor: pointer; }
.attendance-options input:checked + span { color: white; border-color: var(--green-700); background: var(--green-700); }
.attendance-options label:nth-child(2) input:checked + span { border-color: var(--coral); background: var(--coral); }
.attendance-options label:nth-child(3) input:checked + span { color: #705316; border-color: var(--amber); background: var(--amber-50); }
.attendance-options label:nth-child(4) input:checked + span { color: #456a9a; border-color: #8eb0d8; background: var(--blue-50); }
.toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.search-box { position: relative; width: min(320px, 100%); }
.search-box svg { position: absolute; top: 11px; left: 12px; width: 17px; color: #94a19e; }
.search-box input { width: 100%; height: 40px; padding: 8px 12px 8px 39px; border: 1px solid var(--line); border-radius: 10px; outline: none; background: white; }
.tabs { display: flex; gap: 4px; margin-bottom: 20px; padding: 4px; border-radius: 11px; background: #eaeceb; }
.tab-button { min-height: 36px; padding: 7px 13px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; }
.tab-button.active { color: var(--green-900); background: white; box-shadow: 0 3px 10px rgba(28, 56, 49, .08); }

/* Modal and toast */
.modal-backdrop { position: fixed; z-index: 100; inset: 0; display: grid; overflow-y: auto; place-items: center; padding: 24px; background: rgba(10, 34, 29, .55); backdrop-filter: blur(4px); }
.modal { width: min(620px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; padding: 24px; border-radius: 20px; background: white; box-shadow: 0 25px 70px rgba(7, 33, 27, .28); }
.modal--wide { width: min(820px, 100%); }
.modal-head { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; }
.modal-head h2 { margin: 0; font-size: 21px; }
.modal-close { display: grid; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 50%; background: #f0f3f2; cursor: pointer; }
.toast-region { position: fixed; z-index: 200; right: 24px; bottom: 24px; display: flex; width: min(360px, calc(100% - 48px)); flex-direction: column; gap: 10px; }
.toast { display: flex; gap: 11px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; color: white; background: var(--green-900); box-shadow: var(--shadow); animation: toast-in .25s ease-out; }
.toast--error { background: #9f4937; }
.toast svg { width: 18px; flex: none; margin-top: 2px; }
.toast strong { display: block; font-size: 13px; }
.toast span { display: block; color: rgba(255, 255, 255, .75); font-size: 11px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
.loading { display: grid; min-height: 320px; place-items: center; color: var(--muted); }
.spinner { width: 30px; height: 30px; margin: 0 auto 10px; border: 3px solid #dce7e3; border-top-color: var(--green-700); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1180px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login-brand { padding: 45px 55px; }
  .login-panel { padding: 45px 60px; }
  .welcome-banner__art { width: 190px; }
}
@media (max-width: 900px) {
  .login-view { display: block; }
  .login-brand { display: none; }
  .login-panel { min-height: 100vh; padding: 35px 24px; }
  .mobile-logo { display: flex; gap: 10px; align-items: center; margin-bottom: 45px; }
  .mobile-logo strong { font-family: "Manrope"; letter-spacing: .08em; }
  .sidebar { transform: translateX(-100%); transition: transform .25s ease; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop { position: fixed; z-index: 15; inset: 0; background: rgba(9, 31, 26, .42); }
  .sidebar-backdrop.open { display: block; }
  .portal-shell { width: 100%; margin-left: 0; }
  .mobile-menu-button { display: grid; width: 38px; height: 38px; place-items: center; }
  .topbar-title { margin-right: auto; }
  .topbar { gap: 10px; padding: 0 18px; }
  .today-pill { display: none; }
  .card-grid, .card-grid--equal { grid-template-columns: 1fr; }
  .welcome-banner__art { display: none; }
}
@media (max-width: 640px) {
  .content { padding: 22px 15px 35px; }
  .topbar { height: 68px; }
  .topbar-title p { display: none; }
  .topbar-title strong { font-size: 15px; }
  .user-chip__copy, .notification-button { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { min-height: 125px; padding: 16px; }
  .stat-card strong { font-size: 25px; }
  .welcome-banner { min-height: 0; padding: 25px 22px; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .page-actions { width: 100%; }
  .page-actions .button { flex: 1; }
  .card { padding: 18px; border-radius: 17px; }
  .form-grid, .details-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .assessment-row { grid-template-columns: 1fr; gap: 9px; }
  .rating-option label { min-height: 38px; }
  .compare-row { grid-template-columns: 105px 1fr; }
  .compare-row__value { display: none; }
  .profile-hero { align-items: flex-start; }
  .profile-avatar { width: 58px; height: 58px; border-radius: 17px; font-size: 19px; }
  .profile-hero h1 { font-size: 21px; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .search-box { width: 100%; }
  .attendance-person { align-items: flex-start; flex-direction: column; }
  .attendance-person > strong { flex: auto; }
  .modal-backdrop { padding: 12px; }
  .modal { padding: 20px; }
  .demo-list { grid-template-columns: 1fr; }
}
