:root {
  --blue: #1f7bf2;
  --blue-dark: #0d63d8;
  --ink: #101827;
  --muted: #697386;
  --line: #d7dce5;
  --panel: #ffffff;
  --page: #f3f6fc;
  --danger: #d93245;
  --danger-soft: #fff1f3;
  --success: #138a52;
  --success-soft: #eefbf4;
  --shadow: 0 18px 35px rgba(18, 31, 55, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font-family: "Poppins", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.auth-shell {
  width: min(1420px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(14px, 2vh, 30px) clamp(18px, 3.4vw, 58px);
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(390px, 526px);
  align-items: center;
  gap: clamp(26px, 4vw, 64px);
}

body[data-page="login"] .auth-shell {
  width: min(1520px, calc(100% - 72px));
  grid-template-columns: minmax(560px, 700px) minmax(430px, 560px);
  justify-content: center;
  align-items: center;
  gap: clamp(72px, 8vw, 128px);
}

body[data-page="login"] .brand-panel {
  display: grid;
  align-content: center;
}

body[data-page="login"] .brand-mark {
  margin-bottom: 26px;
}

body[data-page="login"] .brand-panel h1 {
  font-size: clamp(48px, 4.4vw, 68px);
  line-height: 1.04;
}

body[data-page="login"] .brand-panel p {
  max-width: 650px;
  margin-top: 24px;
  margin-bottom: 24px;
  font-size: clamp(17px, 1.28vw, 21px);
}

body[data-page="login"] .asset-stage,
body[data-page="login"] .feature-strip {
  width: min(640px, 100%);
  margin-left: 0;
}

body[data-page="login"] .asset-stage {
  border-radius: 20px;
}

body[data-page="login"] .feature-strip {
  min-height: 78px;
  margin-top: 18px;
  padding: 12px 18px;
  border-radius: 16px;
}

body[data-page="login"] .feature-strip div {
  gap: 8px;
  justify-content: center;
  font-size: 12px;
}

body[data-page="login"] .feature-strip svg {
  width: 26px;
  height: 26px;
}

.create-shell {
  width: min(1640px, calc(100% - 56px));
  grid-template-columns: minmax(430px, 520px) minmax(760px, 1040px);
  align-items: center;
  justify-content: center;
  gap: clamp(42px, 5vw, 86px);
}

.brand-panel {
  min-width: 0;
}

.brand-mark {
  display: inline-block;
  color: #05070b;
  font-size: clamp(28px, 2.7vw, 46px);
  font-weight: 800;
  line-height: 1;
  margin-bottom: clamp(14px, 2vh, 28px);
}

.brand-mark span,
.brand-panel h1 span {
  color: var(--blue);
}

.brand-panel h1 {
  margin: 0;
  color: #05070b;
  font-size: clamp(38px, 4.6vw, 64px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: 0;
}

.brand-panel p {
  width: min(640px, 100%);
  margin: clamp(14px, 2vh, 24px) 0 clamp(16px, 2.3vh, 28px);
  font-size: clamp(15px, 1.15vw, 19px);
  line-height: 1.22;
}

.asset-stage {
  position: relative;
  width: min(560px, 100%);
  aspect-ratio: 1.74 / 1;
  margin-left: -2.5%;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: visible;
}

.asset {
  position: absolute;
  display: block;
  user-select: none;
  pointer-events: none;
}

.pc-case {
  left: 4%;
  bottom: 12%;
  width: 43%;
  z-index: 2;
}

.fan {
  left: 7%;
  bottom: 6%;
  width: 13%;
  z-index: 4;
}

.gpu {
  left: 23%;
  bottom: 4%;
  width: 21%;
  z-index: 4;
}

.vr {
  left: 44%;
  bottom: 11%;
  width: 30%;
  z-index: 3;
}

.word {
  right: 16%;
  top: 14%;
  width: 17%;
  z-index: 2;
}

.excel {
  right: 3%;
  top: 31%;
  width: 18%;
  z-index: 2;
}

.ppt {
  right: 8%;
  bottom: 7%;
  width: 15%;
  z-index: 4;
}

.feature-strip {
  width: min(560px, 100%);
  min-height: 74px;
  margin-top: clamp(14px, 2vh, 24px);
  padding: 12px 18px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 12px;
}

.feature-strip div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  color: #101827;
  font-size: clamp(12px, 0.9vw, 15px);
  font-weight: 500;
  line-height: 1.08;
}

.feature-strip svg {
  flex: 0 0 auto;
  width: clamp(26px, 2vw, 34px);
  height: clamp(26px, 2vw, 34px);
  color: var(--blue);
  stroke-width: 2.2;
}

.form-card {
  width: 100%;
  background: var(--panel);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: clamp(24px, 2.6vw, 42px);
}

.login-card {
  min-height: min(66vh, 650px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body[data-page="login"] .login-card {
  min-height: 0;
  height: auto;
  padding: 52px 48px;
  border-radius: 22px;
}

body[data-page="login"] .login-card .form-heading {
  margin-bottom: 28px;
}

body[data-page="login"] .login-card .form-heading h2 {
  font-size: 38px;
}

body[data-page="login"] .login-card .form-stack {
  gap: 20px;
}

body[data-page="login"] .login-card .input-wrap {
  height: 58px;
}

body[data-page="login"] .login-card .form-row {
  margin: 0 0 22px;
}

.create-card {
  padding: clamp(20px, 2.2vh, 30px) clamp(28px, 2.6vw, 40px);
  max-width: 1040px;
  justify-self: center;
}

.form-heading {
  text-align: center;
  margin-bottom: clamp(14px, 1.8vh, 24px);
}

.form-heading h2 {
  margin: 0;
  font-size: clamp(26px, 2.2vw, 36px);
  line-height: 1.1;
}

.form-heading p {
  margin: 8px 0 0;
  color: #344054;
  font-size: clamp(14px, 1vw, 17px);
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-stack.compact {
  gap: 10px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: #121a2a;
  font-size: clamp(15px, 1.1vw, 19px);
  font-weight: 500;
}

.compact .field {
  gap: 6px;
  font-size: 13px;
}

.input-wrap {
  height: 58px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  color: #111827;
}

.compact .input-wrap {
  height: 44px;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 8px;
  padding: 0 13px;
}

.input-wrap:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(31, 123, 242, 0.12);
}

.input-wrap svg {
  width: 22px;
  height: 22px;
  color: #111;
}

.compact .input-wrap svg {
  width: 17px;
  height: 17px;
}

.input-wrap input,
.input-wrap select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #111827;
  background: transparent;
  font-size: clamp(14px, 1vw, 17px);
}

.compact .input-wrap input,
.compact .input-wrap select {
  font-size: 13px;
}

.input-wrap input::placeholder,
.input-wrap select:invalid {
  color: #768195;
}

.select-wrap {
  grid-template-columns: 24px minmax(0, 1fr);
}

.select-wrap select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #7d8797 50%), linear-gradient(135deg, #7d8797 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 8px) 50%;
  background-size: 7px 7px, 7px 7px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.icon-button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #9aa4b5;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.icon-button:hover {
  background: #eef4ff;
  color: var(--blue);
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.check-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #172033;
  font-size: clamp(14px, 1vw, 17px);
  font-weight: 500;
}

.terms {
  align-items: flex-start;
  font-size: 15px;
}

.check-label input {
  width: 28px;
  height: 28px;
  margin: 0;
  accent-color: var(--blue);
}

.terms input {
  width: 22px;
  height: 22px;
  margin-top: 2px;
}

.create-card .terms {
  font-size: 13px;
  gap: 9px;
  margin-top: 2px;
}

.create-card .terms input {
  width: 16px;
  height: 16px;
}

.create-card .field-hint {
  font-size: 11px;
  line-height: 1.25;
}

.text-link {
  color: var(--blue);
  font-weight: 600;
}

.primary-button,
.outline-button,
.ghost-button,
.small-button,
.approve-button,
.reject-button {
  min-height: 50px;
  border-radius: 10px;
  border: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 700;
  cursor: pointer;
}

.primary-button {
  width: 100%;
  color: #fff;
  background: var(--blue);
  font-size: clamp(17px, 1.25vw, 21px);
}

.primary-button:hover {
  background: var(--blue-dark);
}

.outline-button {
  width: 100%;
  color: var(--blue);
  border-color: var(--blue);
  background: #fff;
  font-size: clamp(16px, 1.15vw, 20px);
}

.create-card .primary-button,
.create-card .outline-button {
  min-height: 44px;
  font-size: 14px;
}

.outline-button:hover,
.small-button:hover,
.ghost-button:hover {
  background: #eef5ff;
}

.outline-button.centered {
  justify-content: center;
}

.status-message {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
}

.status-message.error {
  color: var(--danger);
}

.status-message.success {
  color: var(--success);
}

.dashboard-shell {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 52px;
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 34px;
}

.dashboard-topbar .brand-mark {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
}

.ghost-button,
.small-button {
  min-height: 44px;
  padding: 0 18px;
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.ghost-button svg,
.small-button svg,
.approve-button svg,
.reject-button svg {
  width: 19px;
  height: 19px;
}

.dashboard-hero,
.student-home {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}

.dashboard-hero > div:first-child,
.student-welcome,
.profile-summary,
.dashboard-panel,
.metric-card {
  background: #fff;
  border: 1px solid #e7ebf2;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(18, 31, 55, 0.08);
}

.dashboard-hero > div:first-child,
.student-welcome {
  padding: clamp(24px, 4vw, 42px);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.dashboard-hero h1,
.student-home h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
}

.student-welcome p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.metric-card {
  min-width: 240px;
  padding: 28px;
  display: grid;
  place-items: center;
  text-align: center;
}

.metric-card span {
  color: var(--blue);
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
}

.metric-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 600;
}

.dashboard-panel {
  padding: clamp(22px, 3vw, 34px);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.panel-heading h2,
.profile-summary h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
}

.student-list {
  display: grid;
  gap: 16px;
}

.student-card {
  border: 1px solid #e4e9f2;
  border-radius: 14px;
  padding: 20px;
  display: grid;
  gap: 18px;
}

.student-card-main {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.student-avatar {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: #eaf3ff;
  color: var(--blue);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.student-card h3 {
  margin: 0;
  font-size: 22px;
}

.student-card p {
  margin: 2px 0 10px;
  color: var(--muted);
}

.student-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.student-tags span,
.status-pill {
  border-radius: 999px;
  padding: 7px 10px;
  background: #eef5ff;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 700;
}

.student-details,
.profile-summary dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.profile-summary dl {
  grid-template-columns: 1fr;
}

.student-details div,
.profile-summary dl div {
  min-width: 0;
  padding: 14px;
  border-radius: 12px;
  background: #f7f9fd;
}

dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-weight: 600;
}

.student-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.approve-button,
.reject-button {
  min-height: 46px;
  padding: 0 18px;
}

.approve-button {
  background: var(--success-soft);
  color: var(--success);
  border-color: #b9e9ce;
}

.reject-button {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: #fac4cc;
}

.student-home {
  grid-template-columns: 1fr minmax(300px, 420px);
}

.profile-summary {
  padding: clamp(22px, 3vw, 34px);
}

.profile-summary h2 {
  margin-bottom: 18px;
}

@media (max-width: 1180px) {
  .auth-shell {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 36px;
  }

  .brand-panel {
    display: grid;
    justify-items: center;
    text-align: center;
  }

  .brand-panel p {
    margin-bottom: 32px;
  }

  .asset-stage,
  .feature-strip {
    width: min(650px, 100%);
    margin-left: 0;
  }

  .form-card {
    width: min(640px, 100%);
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  .auth-shell {
    padding: 20px 14px 34px;
  }

  .brand-mark {
    margin-bottom: 20px;
  }

  .brand-panel h1 {
    font-size: clamp(36px, 11vw, 54px);
  }

  .brand-panel p {
    font-size: 16px;
    margin-top: 18px;
    margin-bottom: 22px;
  }

  .asset-stage {
    border-radius: 16px;
  }

  .feature-strip {
    min-height: auto;
    grid-template-columns: repeat(2, 1fr);
    padding: 16px;
    border-radius: 16px;
  }

  .feature-strip div {
    justify-content: flex-start;
  }

  .form-card {
    border-radius: 24px;
    padding: 26px 16px;
  }

  .login-card {
    min-height: auto;
  }

  .field-grid,
  .dashboard-hero,
  .student-home,
  .student-details {
    grid-template-columns: 1fr;
  }

  .input-wrap,
  .compact .input-wrap {
    height: 54px;
    padding: 0 14px;
  }

  .primary-button,
  .outline-button {
    min-height: 54px;
  }

  .dashboard-shell {
    width: min(100% - 24px, 1220px);
    padding-top: 18px;
  }

  .dashboard-topbar {
    align-items: flex-start;
  }

  .ghost-button span,
  .small-button span {
    display: none;
  }

  .metric-card {
    min-width: 0;
  }

  .student-card-main {
    flex-direction: column;
  }
}

.field-hint {
  color: #667085;
  font-size: 12px;
  line-height: 1.35;
}

@media (min-width: 1181px) {
  body[data-page="login"],
  body[data-page="register"] {
    overflow: hidden;
  }

  .auth-shell {
    height: 100vh;
    overflow: hidden;
  }

  .auth-shell .brand-panel {
    display: grid;
    align-content: center;
  }

  .create-shell .brand-panel h1 {
    font-size: clamp(34px, 3.5vw, 56px);
  }

  .create-shell .brand-panel p {
    font-size: clamp(14px, 1vw, 17px);
    margin-top: 18px;
    margin-bottom: 20px;
  }

  .create-shell .asset-stage {
    width: min(486px, 100%);
  }

  .create-shell .feature-strip {
    width: min(486px, 100%);
    min-height: 68px;
    padding: 10px 14px;
    margin-top: 18px;
  }

  .create-shell .feature-strip div {
    gap: 8px;
    font-size: 11px;
  }

  .create-shell .feature-strip svg {
    width: 22px;
    height: 22px;
  }

  .create-shell .brand-mark {
    font-size: clamp(26px, 2.2vw, 38px);
    margin-bottom: 18px;
  }

  .create-card .form-stack.compact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 16px;
  }

  .create-card .field-grid {
    display: contents;
  }

  .create-card .terms,
  .create-card .status-message,
  .create-card .primary-button,
  .create-card .outline-button {
    grid-column: 1 / -1;
  }

  .create-card .form-heading {
    margin-bottom: 18px;
  }

  .create-card .form-heading h2 {
    font-size: 36px;
  }

  .create-card .form-heading p {
    font-size: 16px;
  }
}

@media (min-width: 1181px) and (max-height: 820px) {
  .auth-shell {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .brand-panel h1 {
    font-size: clamp(34px, 4.1vw, 58px);
  }

  .asset-stage {
    width: min(510px, 100%);
  }

  .feature-strip {
    min-height: 62px;
  }

  .feature-strip div {
    font-size: 11px;
  }

  .feature-strip svg {
    width: 24px;
    height: 24px;
  }

  .login-card {
    min-height: 0;
  }

  body[data-page="login"] .auth-shell {
    width: min(1460px, calc(100% - 64px));
    gap: clamp(56px, 6vw, 96px);
  }

  body[data-page="login"] .brand-mark {
    margin-bottom: 18px;
  }

  body[data-page="login"] .brand-panel h1 {
    font-size: clamp(44px, 4vw, 60px);
  }

  body[data-page="login"] .brand-panel p {
    margin-top: 18px;
    margin-bottom: 18px;
  }

  body[data-page="login"] .asset-stage,
  body[data-page="login"] .feature-strip {
    width: min(590px, 100%);
  }

  body[data-page="login"] .feature-strip {
    min-height: 64px;
  }

  body[data-page="login"] .login-card {
    padding: 42px 44px;
  }

  body[data-page="login"] .login-card .form-heading {
    margin-bottom: 22px;
  }

  body[data-page="login"] .login-card .form-stack {
    gap: 16px;
  }

  body[data-page="login"] .login-card .form-row {
    margin-bottom: 14px;
  }

  .create-shell {
    gap: clamp(34px, 4vw, 68px);
  }

  .create-card {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .create-card .form-stack.compact {
    gap: 8px 14px;
  }

  .create-card .form-heading {
    margin-bottom: 14px;
  }

  .create-card .form-heading h2 {
    font-size: 32px;
  }

  .create-card .form-heading p {
    font-size: 14px;
  }

  .create-card .primary-button,
  .create-card .outline-button,
  .create-card .compact .input-wrap {
    min-height: 40px;
    height: 40px;
  }

  .compact .field {
    gap: 4px;
    font-size: 12px;
  }

  .create-card .terms {
    font-size: 12px;
  }
}

@media (min-width: 1181px) and (max-height: 680px) {
  .create-shell .brand-panel p,
  .create-shell .asset-stage,
  .create-shell .feature-strip {
    display: none;
  }

  .create-shell {
    grid-template-columns: minmax(230px, 0.42fr) minmax(760px, 1040px);
  }

  .create-card {
    padding-top: 16px;
    padding-bottom: 16px;
  }
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: clamp(132px, 12.5vw, 190px) minmax(0, 1fr);
  background: #f2f5fb;
}

.app-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 0;
  padding: clamp(14px, 2vh, 28px) clamp(10px, 1vw, 16px);
  background: #1f7bf2;
  display: grid;
  grid-template-rows: repeat(7, minmax(0, 1fr));
  gap: clamp(8px, 1.2vh, 14px);
  overflow: hidden;
}

.nav-item {
  min-height: 0;
  height: 100%;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: #fff;
  display: grid;
  place-items: center;
  align-content: center;
  gap: clamp(4px, 0.8vh, 7px);
  cursor: pointer;
  font-weight: 600;
  font-size: clamp(12px, 1.05vw, 16px);
  line-height: 1.15;
  text-align: center;
}

.nav-item svg {
  width: clamp(24px, 2.1vw, 34px);
  height: clamp(24px, 2.1vw, 34px);
  stroke-width: 2.2;
}

.nav-item.active,
.nav-item:hover {
  background: #fff;
  color: #1f7bf2;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.18);
}

.app-main {
  min-width: 0;
  padding-bottom: 32px;
}

.app-topbar {
  min-height: clamp(86px, 10vh, 124px);
  padding: clamp(14px, 1.8vh, 22px) clamp(24px, 3vw, 42px);
  background: #f8faff;
  border-bottom: 1px solid #d9dfeb;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.compact-brand {
  margin: 0;
  font-size: clamp(32px, 3vw, 50px);
}

.topbar-profile {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.3vw, 18px);
  color: #111827;
}

.topbar-profile > svg {
  width: clamp(28px, 2.4vw, 38px);
  height: clamp(28px, 2.4vw, 38px);
  color: #111;
}

.topbar-profile strong {
  display: block;
  font-size: clamp(18px, 1.8vw, 30px);
  line-height: 1.05;
}

.topbar-profile span {
  color: #777d89;
  font-size: clamp(13px, 1.35vw, 22px);
  font-weight: 600;
}

.profile-badge {
  width: clamp(60px, 6vw, 86px);
  height: clamp(60px, 6vw, 86px);
  border-radius: 999px;
  background: #fff;
  color: #1f7bf2;
  display: grid;
  place-items: center;
  box-shadow: 0 5px 12px rgba(16, 24, 40, 0.18);
}

.profile-badge svg {
  width: 62%;
  height: 62%;
}

.icon-shell {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #eef4ff;
  color: #1f7bf2;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.dashboard-status {
  margin: 10px clamp(24px, 3vw, 42px) 0;
}

.teacher-section,
.student-section {
  display: none;
  padding: clamp(20px, 3vh, 34px) clamp(24px, 3vw, 42px) 18px;
}

.teacher-section.active,
.student-section.active {
  display: block;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(18px, 2.2vh, 24px);
}

.section-heading h1 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
}

.section-heading p {
  margin: 8px 0 0;
  color: #6d7480;
  font-weight: 600;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin-bottom: 28px;
}

.stat-card,
.panel-card,
.welcome-block,
.achievement-strip,
.quick-access {
  background: #fff;
  border: 1px solid #e1e6ef;
  border-radius: 18px;
  box-shadow: 0 8px 16px rgba(16, 24, 40, 0.12);
}

.stat-card {
  min-height: 150px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.stat-card p,
.stat-card small {
  margin: 0;
  color: #757b86;
  font-weight: 700;
}

.stat-card strong {
  display: block;
  color: #05070b;
  font-size: 42px;
  line-height: 1.05;
}

.stat-icon {
  width: 76px;
  height: 76px;
  border-radius: 999px;
  display: grid;
  place-items: center;
}

.stat-icon svg {
  width: 38px;
  height: 38px;
}

.stat-icon.blue { background: #eaf2ff; color: #1f7bf2; }
.stat-icon.green { background: #eafaf0; color: #08a64b; }
.stat-icon.orange { background: #fff2df; color: #ff8b22; }
.stat-icon.purple { background: #f2eaff; color: #7a42f4; }

.dashboard-grid {
  display: grid;
  gap: 24px;
}

.two-col {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
}

.three-col {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(320px, 1fr);
}

.students-layout {
  grid-template-columns: minmax(0, 1fr) 420px;
}

.panel-card {
  padding: 24px;
  min-width: 0;
}

.panel-card h2,
.quick-access h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.1;
}

.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.compact-list {
  display: grid;
  gap: 12px;
}

.mini-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid #e4e9f2;
  border-radius: 14px;
}

.mini-row strong,
.mini-row span,
.mini-row small {
  display: block;
}

.mini-row span,
.mini-row small,
.muted-text,
.empty-text {
  color: #747b87;
  font-weight: 600;
}

.mini-avatar {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #eaf2ff;
  color: #1f7bf2;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.mini-avatar.line {
  background: #fff;
}

.row-actions,
.table-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.approve-button.mini,
.reject-button.mini {
  min-height: 38px;
  width: 42px;
  padding: 0;
}

.quarter-spotlight {
  min-height: 150px;
  padding: 18px;
  border-radius: 16px;
  background: #eef5ff;
  display: grid;
  align-content: center;
  gap: 8px;
}

.quarter-spotlight strong {
  font-size: 30px;
}

.toolbar-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.toolbar-row select,
.form-panel input,
.form-panel select,
.form-panel textarea {
  min-height: 50px;
  border: 1px solid #d9dfeb;
  border-radius: 10px;
  background: #fff;
  padding: 0 14px;
  color: #1f2937;
  outline: 0;
}

.form-panel textarea {
  min-height: 96px;
  padding-top: 12px;
  resize: vertical;
}

.search-box {
  min-height: 64px;
  min-width: min(390px, 100%);
  border: 1px solid #d9dfeb;
  border-radius: 12px;
  background: #fff;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  padding: 0 16px;
}

.search-box.small {
  min-height: 48px;
  min-width: 260px;
}

.search-box svg {
  width: 28px;
  height: 28px;
}

.search-box input {
  border: 0;
  outline: 0;
  font-size: 17px;
  background: transparent;
}

.table-card {
  overflow-x: auto;
  padding: 10px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.data-table th,
.data-table td {
  padding: 16px 18px;
  border-bottom: 1px solid #e6ebf3;
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  color: #172033;
  font-size: 14px;
  font-weight: 800;
}

.data-table td small {
  display: block;
  color: #697386;
  font-weight: 600;
  margin-top: 4px;
}

.table-person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-person span {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 2px solid #1f7bf2;
  color: #1f7bf2;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}

.mini-progress,
.wide-progress {
  height: 7px;
  border-radius: 999px;
  background: #edf1f7;
  overflow: hidden;
}

.mini-progress {
  width: 110px;
  margin-top: 8px;
}

.wide-progress {
  width: 100%;
  height: 10px;
}

.mini-progress span,
.wide-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #1f7bf2;
}

.status-pill.good,
.status-pill.published,
.status-pill.completed {
  background: #e4f8eb;
  color: #079443;
}

.status-pill.warning,
.status-pill.draft,
.status-pill.in_progress {
  background: #fff1dc;
  color: #f27a1a;
}

.status-pill.rejected,
.status-pill.archived,
.status-pill.inactive {
  background: #fff1f3;
  color: #d93245;
}

.status-pill.pending,
.status-pill.not_started {
  background: #eef4ff;
  color: #1f7bf2;
}

.good-text {
  color: #08a64b;
  font-weight: 800;
}

.warn-text,
.attention-row b {
  color: #ff5c1a;
  font-weight: 800;
}

.student-management-header {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin-bottom: 28px;
}

.student-metric-card {
  min-height: 142px;
  padding: 24px 26px;
  border: 1px solid #e1e6ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 16px rgba(16, 24, 40, 0.12);
  display: flex;
  align-items: center;
  gap: 22px;
}

.student-metric-card p,
.student-metric-card small {
  margin: 0;
  color: #777d89;
  font-weight: 800;
}

.student-metric-card strong {
  display: block;
  margin: 8px 0;
  color: #05070b;
  font-size: 34px;
  line-height: 1.05;
}

.student-metric-card small b {
  color: #1f7bf2;
}

.student-metric-card.top-performer strong {
  font-size: 22px;
}

.student-metric-card.top-performer small b {
  color: #ffb400;
}

.student-metric-icon {
  width: 82px;
  height: 82px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.student-metric-icon svg {
  width: 46px;
  height: 46px;
  stroke-width: 2.1;
}

.student-metric-icon.blue { background: #1f7bf2; color: #fff; }
.student-metric-icon.green { background: #08b850; color: #fff; }
.student-metric-icon.orange { background: #fff0d9; color: #ff8b22; }
.student-metric-icon.gold { background: #fff5d7; color: #ffb400; }

.student-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 390px) auto auto auto minmax(140px, 190px);
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.student-search {
  height: 72px;
  border: 1px solid #d9dfeb;
  border-radius: 12px;
  background: #fff;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  padding: 0 18px;
}

.student-search svg {
  width: 32px;
  height: 32px;
}

.student-search input {
  border: 0;
  outline: 0;
  background: transparent;
  color: #172033;
  font-size: 18px;
  font-weight: 600;
}

.student-toolbar select,
.export-button {
  height: 70px;
  border: 1px solid #d9dfeb;
  border-radius: 12px;
  background: #fff;
  color: #777d89;
  padding: 0 22px;
  font-weight: 800;
}

.segmented-control {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 16px;
}

.segment-button,
.export-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
}

.segment-button {
  height: 70px;
  border: 2px solid #1f7bf2;
  border-radius: 12px;
  background: #fff;
  color: #1f7bf2;
  font-weight: 900;
  font-size: 18px;
}

.segment-button.active {
  background: #1f7bf2;
  color: #fff;
}

.export-button svg {
  width: 26px;
  height: 26px;
}

.student-management-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  gap: 24px;
  align-items: start;
}

.student-table-card,
.student-side-card {
  border: 1px solid #e1e6ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 16px rgba(16, 24, 40, 0.12);
}

.student-table-card {
  overflow-x: auto;
  padding: 10px;
}

.student-management-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
}

.student-management-table th,
.student-management-table td {
  padding: 15px 18px;
  border-bottom: 1px solid #e6ebf3;
  text-align: left;
  vertical-align: middle;
}

.student-management-table th {
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.05;
}

.student-name-cell {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 190px;
}

.student-name-cell svg {
  width: 32px;
  height: 32px;
  color: #1f7bf2;
  flex: 0 0 auto;
}

.reward-icons,
.certificate-count,
.student-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.reward-icon {
  width: 22px;
  height: 22px;
}

.reward-icon.gold { color: #ffb400; }
.reward-icon.blue { color: #1f7bf2; }
.reward-icon.green { color: #0ca95a; }
.reward-icon.purple { color: #6f3ff5; }

.reward-empty {
  color: #9aa4b5;
  font-weight: 800;
}

.certificate-count svg {
  width: 18px;
  height: 18px;
  color: #ffb400;
}

.student-row-actions .icon-button {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.good-action { color: #0ca95a; }
.warning-action { color: #ff8b22; }
.danger-action { color: #d93245; }

.student-table-footer {
  min-width: 1120px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #1f2937;
  font-weight: 600;
}

.student-pagination {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.student-pagination button {
  min-width: 38px;
  height: 38px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #172033;
  font-weight: 800;
  cursor: pointer;
}

.student-pagination button.active {
  background: #1f7bf2;
  color: #fff;
}

.student-pagination button:disabled {
  color: #c0c7d2;
  cursor: default;
}

.student-right-rail {
  display: grid;
  gap: 24px;
}

.student-side-card {
  padding: 22px;
}

.student-side-card h2 {
  margin: 0 0 18px;
  font-size: 22px;
}

.distribution-layout {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.distribution-donut {
  width: 150px;
  aspect-ratio: 1;
  border-radius: 999px;
  background: conic-gradient(#0ca95a 0 var(--excellent, 0deg), #1f7bf2 var(--excellent, 0deg) var(--good, 0deg), #ffb400 var(--good, 0deg) var(--fair, 0deg), #ff5c1a var(--fair, 0deg) 360deg);
  display: grid;
  place-items: center;
  position: relative;
}

.distribution-donut.empty {
  background: #edf1f7;
}

.distribution-donut::after {
  content: "";
  position: absolute;
  inset: 34px;
  border-radius: inherit;
  background: #fff;
}

.distribution-donut strong,
.distribution-donut span {
  position: relative;
  z-index: 1;
}

.distribution-donut strong {
  align-self: end;
  font-size: 26px;
  line-height: 1;
}

.distribution-donut span {
  align-self: start;
  font-size: 13px;
  font-weight: 700;
}

.distribution-legend {
  display: grid;
  gap: 12px;
}

.distribution-legend div {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.distribution-legend p,
.distribution-legend strong {
  margin: 0;
  font-size: 12px;
}

.legend-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
}

.legend-dot.excellent { background: #0ca95a; }
.legend-dot.good { background: #1f7bf2; }
.legend-dot.fair { background: #ffb400; }
.legend-dot.needs { background: #ff5c1a; }

.attention-list {
  display: grid;
}

.attention-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #e6ebf3;
}

.attention-row:last-child {
  border-bottom: 0;
}

.attention-row > svg {
  width: 34px;
  height: 34px;
  color: #1f7bf2;
}

.attention-row strong,
.attention-row span {
  display: block;
}

.attention-row span {
  color: #697386;
  font-size: 13px;
  font-weight: 700;
}

.student-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0;
  transition: opacity 160ms ease;
}

.student-drawer.open {
  pointer-events: auto;
  opacity: 1;
}

.student-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
}

.student-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(460px, 100%);
  height: 100%;
  padding: 24px;
  background: #fff;
  box-shadow: -14px 0 30px rgba(16, 24, 40, 0.18);
  display: grid;
  align-content: start;
  gap: 14px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 180ms ease;
}

.student-drawer.open .student-drawer-panel {
  transform: translateX(0);
}

.student-drawer-panel header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.student-drawer-panel h2 {
  margin: 0;
  font-size: 26px;
}

.drawer-summary {
  padding: 16px;
  border-radius: 16px;
  background: #eef5ff;
  display: flex;
  align-items: center;
  gap: 14px;
}

.drawer-summary > span {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: #1f7bf2;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.drawer-summary strong,
.drawer-summary small {
  display: block;
}

.drawer-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.drawer-stats div {
  padding: 10px;
  border-radius: 12px;
  background: #f7f9fd;
  text-align: center;
}

.drawer-stats strong,
.drawer-stats span {
  display: block;
}

.drawer-stats span {
  color: #697386;
  font-size: 11px;
  font-weight: 800;
}

.student-drawer-panel label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 800;
}

.student-drawer-panel input,
.student-drawer-panel select {
  min-height: 46px;
  border: 1px solid #d9dfeb;
  border-radius: 10px;
  padding: 0 12px;
  outline: 0;
}

.drawer-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.drawer-actions .primary-button {
  grid-column: 1 / -1;
}

.empty-cell {
  color: #697386;
  text-align: center;
  font-weight: 700;
}

.quarter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.quarter-card {
  padding: 18px;
  border: 1px solid #dde4ef;
  border-radius: 16px;
  display: grid;
  gap: 10px;
}

.quarter-card.active {
  border-color: #1f7bf2;
  background: #eef5ff;
}

.quarter-card > span {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #1f7bf2;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.quarter-card strong {
  font-size: 22px;
}

.quarter-card p {
  margin: 0;
  color: #687180;
  font-weight: 600;
}

.form-panel {
  display: grid;
  gap: 14px;
}

.form-panel label {
  display: grid;
  gap: 7px;
  color: #172033;
  font-size: 14px;
  font-weight: 800;
}

.simple-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.check-label.slim {
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
}

.content-forms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.compact-action {
  min-height: 44px;
  font-size: 15px;
}

.compact-toolbar {
  margin: 0;
}

.empty-panel {
  min-height: 420px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

.empty-panel svg {
  width: 54px;
  height: 54px;
  color: #1f7bf2;
}

.student-hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.72fr);
  gap: 28px;
  margin-bottom: 26px;
}

.welcome-block {
  min-height: 220px;
  padding: 46px;
  display: grid;
  align-content: center;
}

.welcome-block h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.02;
}

.welcome-block p {
  margin: 16px 0 0;
  color: #757b86;
  font-size: 20px;
  font-weight: 700;
}

.achievement-strip {
  padding: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  text-align: center;
  gap: 16px;
}

.achievement-strip div {
  display: grid;
  gap: 6px;
  place-items: center;
}

.achievement-strip svg {
  width: 60px;
  height: 60px;
  color: #1f7bf2;
}

.achievement-strip div:nth-child(2) svg { color: #a0a7b3; }
.achievement-strip div:nth-child(3) svg { color: #ffb400; }

.achievement-strip strong {
  font-size: 22px;
}

.achievement-strip span {
  color: #757b86;
  font-weight: 800;
}

.quick-access {
  padding: 24px;
  margin-bottom: 28px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 16px;
}

.quick-card {
  min-height: 178px;
  border: 1px solid #dbe3f1;
  border-radius: 18px;
  padding: 20px;
  display: grid;
  align-content: end;
  position: relative;
  overflow: hidden;
}

.quick-card > svg {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 62px;
  height: 62px;
  color: #1f7bf2;
}

.quick-card strong {
  font-size: 19px;
  line-height: 1.1;
}

.quick-card span {
  color: #6d7480;
  font-weight: 700;
}

.quick-card button {
  position: absolute;
  right: 18px;
  bottom: 18px;
  border: 0;
  background: transparent;
  color: #1f7bf2;
  cursor: pointer;
}

.quick-card button svg {
  width: 38px;
  height: 38px;
}

.blue-soft { background: #eaf1ff; }
.green-soft { background: #ebfaef; }
.purple-soft { background: #f1eaff; }
.gold-soft { background: #fff5df; }

.soft-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #1f7bf2;
  background: #eef5ff;
  font-weight: 800;
}

.soft-pill svg {
  width: 18px;
  height: 18px;
}

.mission-card h3 {
  margin: 12px 0 4px;
  font-size: 22px;
}

.mission-card p {
  color: #6d7480;
  font-weight: 700;
}

.mission-visual {
  width: 110px;
  height: 110px;
  border-radius: 24px;
  background: #eaf2ff;
  color: #1f7bf2;
  display: grid;
  place-items: center;
}

.mission-visual svg {
  width: 70px;
  height: 70px;
}

.link-button {
  border: 0;
  background: transparent;
  color: #1f7bf2;
  font-weight: 800;
  cursor: pointer;
}

.link-label {
  color: #1f7bf2;
  font-weight: 800;
}

.activity-list {
  display: grid;
}

.activity-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid #e6ebf3;
}

.activity-row svg {
  color: #08a64b;
  width: 34px;
  height: 34px;
}

.activity-row span {
  display: block;
  color: #777d89;
  font-weight: 700;
  margin-top: 4px;
}

.gauge {
  width: 220px;
  height: 118px;
  margin: 16px auto 24px;
  border-radius: 220px 220px 0 0;
  border: 28px solid #eaf1ff;
  border-bottom: 0;
  display: grid;
  place-items: end center;
  padding-bottom: 8px;
}

.gauge strong {
  font-size: 42px;
  line-height: 1;
}

.gauge span {
  display: block;
  color: #777d89;
  font-size: 14px;
  font-weight: 800;
}

.progress-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(16, 24, 40, 0.12);
}

.progress-stats div {
  padding: 14px 8px;
  display: grid;
  place-items: center;
  gap: 4px;
  border-right: 1px solid #e0e5ee;
}

.progress-stats div:last-child {
  border-right: 0;
}

.progress-stats svg {
  color: #1f7bf2;
  width: 34px;
  height: 34px;
}

.progress-stats strong {
  font-size: 18px;
}

.progress-stats span {
  color: #697386;
  font-size: 12px;
  font-weight: 800;
}

.lesson-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.lesson-card {
  min-height: 260px;
  background: #fff;
  border: 1px solid #e1e6ef;
  border-radius: 18px;
  box-shadow: 0 8px 16px rgba(16, 24, 40, 0.12);
  padding: 24px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.lesson-card > svg {
  width: 58px;
  height: 58px;
  color: #1f7bf2;
}

.lesson-card strong {
  font-size: 22px;
}

.lesson-card span,
.lesson-card p,
.lesson-card small {
  color: #697386;
  font-weight: 700;
}

.profile-details dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.profile-details dl div {
  padding: 16px;
  border-radius: 12px;
  background: #f7f9fd;
}

@media (max-width: 1280px) {
  .metric-grid,
  .quick-grid,
  .student-management-header {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-col,
  .three-col,
  .students-layout,
  .student-hero-row,
  .content-forms,
  .lesson-card-grid {
    grid-template-columns: 1fr;
  }

  .student-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .student-management-grid {
    grid-template-columns: 1fr;
  }

  .student-right-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-topbar {
    min-height: 96px;
  }

  .profile-badge {
    width: 68px;
    height: 68px;
  }

  .profile-badge svg {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 1080px) and (min-width: 841px) {
  .app-shell {
    grid-template-columns: 116px minmax(0, 1fr);
  }

  .app-sidebar {
    padding: 12px 8px;
    gap: 8px;
  }

  .nav-item {
    border-radius: 14px;
    font-size: 12px;
  }

  .nav-item svg {
    width: 24px;
    height: 24px;
  }

  .compact-brand {
    font-size: 32px;
  }

  .topbar-profile strong {
    font-size: 18px;
  }

  .topbar-profile span {
    font-size: 13px;
  }
}

@media (max-width: 840px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 20;
    height: 82px;
    padding: 8px 10px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(76px, 1fr);
    overflow-x: auto;
  }

  .nav-item {
    min-height: 64px;
    border-radius: 14px;
    font-size: 12px;
  }

  .nav-item svg {
    width: 24px;
    height: 24px;
  }

  .app-main {
    padding-bottom: 96px;
  }

  .app-topbar {
    min-height: auto;
    padding: 18px;
    align-items: flex-start;
  }

  .topbar-profile {
    gap: 10px;
  }

  .topbar-profile > svg,
  .profile-badge {
    display: none;
  }

  .teacher-section,
  .student-section {
    padding: 20px 14px;
  }

  .dashboard-status {
    margin: 12px 14px 0;
  }

  .metric-grid,
  .quick-grid,
  .student-management-header,
  .quarter-grid,
  .profile-details dl,
  .simple-grid {
    grid-template-columns: 1fr;
  }

  .student-toolbar {
    grid-template-columns: 1fr;
  }

  .segmented-control {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .student-search,
  .student-toolbar select,
  .export-button,
  .segment-button {
    height: 56px;
  }

  .student-right-rail {
    grid-template-columns: 1fr;
  }

  .distribution-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .student-table-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .stat-card {
    min-height: auto;
  }

  .welcome-block {
    min-height: auto;
    padding: 26px;
  }

  .achievement-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 18px;
  }

  .toolbar-row {
    align-items: stretch;
  }

  .toolbar-row select,
  .search-box {
    width: 100%;
  }
}

/* Compact density pass */
:root {
  --compact-radius: 14px;
  --compact-card-pad: clamp(14px, 1.5vw, 20px);
  --compact-gap: clamp(12px, 1.35vw, 18px);
  --compact-control: 46px;
  --compact-shadow: 0 7px 15px rgba(16, 24, 40, 0.11);
}

@media (min-width: 841px) {
  body[data-page="teacher"],
  body[data-page="student"] {
    font-size: 14px;
  }

  .app-shell {
    grid-template-columns: clamp(108px, 9.6vw, 154px) minmax(0, 1fr);
  }

  .app-sidebar {
    padding: clamp(10px, 1.4vh, 18px) 8px;
    gap: clamp(6px, 0.85vh, 10px);
  }

  .nav-item {
    border-radius: 12px;
    gap: 4px;
    font-size: clamp(10px, 0.85vw, 13px);
  }

  .nav-item svg {
    width: clamp(20px, 1.65vw, 27px);
    height: clamp(20px, 1.65vw, 27px);
  }

  .app-main {
    padding-bottom: 18px;
  }

  .app-topbar {
    min-height: clamp(64px, 7.3vh, 88px);
    padding: 10px clamp(18px, 2.4vw, 32px);
    gap: 16px;
  }

  .compact-brand {
    font-size: clamp(25px, 2.25vw, 38px);
  }

  .topbar-profile {
    gap: 10px;
  }

  .topbar-profile > svg {
    width: clamp(22px, 1.75vw, 30px);
    height: clamp(22px, 1.75vw, 30px);
  }

  .topbar-profile strong {
    font-size: clamp(16px, 1.45vw, 23px);
  }

  .topbar-profile span {
    font-size: clamp(11px, 1.05vw, 16px);
  }

  .profile-badge {
    width: clamp(46px, 4.5vw, 64px);
    height: clamp(46px, 4.5vw, 64px);
  }

  .icon-shell {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .teacher-section,
  .student-section {
    padding: clamp(14px, 2vh, 24px) clamp(16px, 2.4vw, 30px) 12px;
  }

  .dashboard-status {
    margin: 8px clamp(16px, 2.4vw, 30px) 0;
  }

  .section-heading {
    margin-bottom: 16px;
    gap: 14px;
  }

  .section-heading h1 {
    font-size: clamp(24px, 2.25vw, 34px);
  }

  .section-heading p {
    margin-top: 5px;
    font-size: 13px;
  }

  .metric-grid,
  .student-management-header {
    gap: var(--compact-gap);
    margin-bottom: 18px;
  }

  .dashboard-grid,
  .student-right-rail,
  .quick-grid,
  .lesson-card-grid {
    gap: var(--compact-gap);
  }

  .student-hero-row {
    gap: var(--compact-gap);
    margin-bottom: 18px;
  }

  .stat-card,
  .student-metric-card {
    min-height: 104px;
    padding: 16px 18px;
    gap: 14px;
    border-radius: var(--compact-radius);
    box-shadow: var(--compact-shadow);
  }

  .stat-card strong {
    font-size: 30px;
  }

  .student-metric-card strong {
    margin: 4px 0;
    font-size: 26px;
  }

  .student-metric-card.top-performer strong {
    font-size: 18px;
  }

  .stat-card p,
  .stat-card small,
  .student-metric-card p,
  .student-metric-card small {
    font-size: 12px;
  }

  .stat-icon,
  .student-metric-icon {
    width: 54px;
    height: 54px;
  }

  .stat-icon svg,
  .student-metric-icon svg {
    width: 29px;
    height: 29px;
  }

  .panel-card,
  .student-side-card,
  .quick-access,
  .achievement-strip {
    padding: var(--compact-card-pad);
    border-radius: var(--compact-radius);
    box-shadow: var(--compact-shadow);
  }

  .panel-card h2,
  .quick-access h2,
  .student-side-card h2 {
    margin-bottom: 12px;
    font-size: 18px;
  }

  .student-toolbar {
    grid-template-columns: minmax(220px, 320px) auto auto auto minmax(120px, 150px);
    gap: 12px;
    margin-bottom: 18px;
  }

  .student-search,
  .student-toolbar select,
  .export-button,
  .segment-button {
    height: var(--compact-control);
    border-radius: 10px;
    font-size: 13px;
  }

  .student-search {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 0 12px;
  }

  .student-search svg,
  .export-button svg {
    width: 21px;
    height: 21px;
  }

  .student-search input {
    font-size: 13px;
  }

  .student-toolbar select,
  .export-button {
    padding: 0 14px;
  }

  .segmented-control {
    gap: 10px;
  }

  .segment-button {
    min-width: 118px;
    border-width: 1px;
    font-size: 14px;
  }

  .student-management-grid {
    grid-template-columns: minmax(0, 1fr) minmax(295px, 360px);
    gap: var(--compact-gap);
  }

  .student-table-card,
  .student-side-card {
    border-radius: var(--compact-radius);
    box-shadow: var(--compact-shadow);
  }

  .student-table-card {
    padding: 8px;
  }

  .student-management-table {
    min-width: 980px;
  }

  .student-management-table th,
  .student-management-table td {
    padding: 9px 11px;
    font-size: 12px;
  }

  .student-name-cell {
    min-width: 165px;
    gap: 9px;
  }

  .student-name-cell svg {
    width: 24px;
    height: 24px;
  }

  .mini-progress {
    width: 76px;
    height: 6px;
  }

  .reward-icons,
  .certificate-count,
  .student-row-actions {
    gap: 6px;
  }

  .reward-icon {
    width: 18px;
    height: 18px;
  }

  .student-row-actions .icon-button {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }

  .student-table-footer {
    min-width: 980px;
    padding: 10px 12px;
    font-size: 12px;
  }

  .student-pagination {
    gap: 8px;
  }

  .student-pagination button {
    min-width: 30px;
    height: 30px;
    border-radius: 8px;
  }

  .distribution-layout {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
  }

  .distribution-donut {
    width: 112px;
  }

  .distribution-donut::after {
    inset: 25px;
  }

  .distribution-donut strong {
    font-size: 20px;
  }

  .distribution-donut span,
  .distribution-legend p,
  .distribution-legend strong {
    font-size: 10px;
  }

  .distribution-legend {
    gap: 8px;
  }

  .attention-row {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 9px;
    padding: 10px 0;
  }

  .attention-row > svg {
    width: 26px;
    height: 26px;
  }

  .attention-row span {
    font-size: 11px;
  }

  .student-drawer-panel {
    width: min(400px, 100%);
    padding: 18px;
    gap: 10px;
  }

  .student-drawer-panel h2 {
    font-size: 21px;
  }

  .drawer-summary {
    padding: 12px;
    border-radius: 12px;
  }

  .drawer-summary > span {
    width: 42px;
    height: 42px;
  }

  .drawer-stats div {
    padding: 8px 6px;
  }

  .student-drawer-panel label {
    gap: 5px;
    font-size: 12px;
  }

  .student-drawer-panel input,
  .student-drawer-panel select {
    min-height: 40px;
    border-radius: 9px;
    font-size: 13px;
  }

  .drawer-actions {
    gap: 8px;
  }

  .drawer-actions button {
    min-height: 40px;
    font-size: 12px;
  }

  .quarter-grid {
    gap: 12px;
  }

  .quarter-card {
    padding: 14px;
    border-radius: 12px;
  }

  .content-form,
  .inline-form,
  .table-shell {
    border-radius: var(--compact-radius);
  }

  .content-form,
  .inline-form {
    padding: 16px;
    gap: 12px;
  }

  .toolbar-row {
    gap: 10px;
  }
}

@media (min-width: 1181px) {
  body[data-page="login"] .auth-shell {
    width: min(1320px, calc(100% - 56px));
    grid-template-columns: minmax(450px, 570px) minmax(350px, 460px);
    gap: clamp(44px, 5vw, 82px);
  }

  body[data-page="login"] .brand-mark {
    margin-bottom: 18px;
    font-size: clamp(28px, 2.25vw, 40px);
  }

  body[data-page="login"] .brand-panel h1 {
    font-size: clamp(42px, 3.85vw, 56px);
  }

  body[data-page="login"] .brand-panel p {
    max-width: 560px;
    margin-top: 18px;
    margin-bottom: 18px;
    font-size: clamp(15px, 1.05vw, 18px);
  }

  body[data-page="login"] .asset-stage,
  body[data-page="login"] .feature-strip {
    width: min(540px, 100%);
  }

  body[data-page="login"] .feature-strip {
    min-height: 60px;
    margin-top: 14px;
    padding: 10px 14px;
  }

  body[data-page="login"] .feature-strip div {
    gap: 7px;
    font-size: 10px;
  }

  body[data-page="login"] .feature-strip svg {
    width: 22px;
    height: 22px;
  }

  body[data-page="login"] .login-card {
    padding: 34px 38px;
    border-radius: 18px;
  }

  body[data-page="login"] .login-card .form-heading {
    margin-bottom: 20px;
  }

  body[data-page="login"] .login-card .form-heading h2 {
    font-size: 32px;
  }

  body[data-page="login"] .login-card .form-heading p {
    font-size: 14px;
  }

  body[data-page="login"] .login-card .form-stack {
    gap: 14px;
  }

  body[data-page="login"] .login-card .input-wrap {
    height: 50px;
  }

  body[data-page="login"] .login-card .form-row {
    margin-bottom: 14px;
  }

  body[data-page="login"] .login-card .primary-button,
  body[data-page="login"] .login-card .outline-button {
    min-height: 48px;
    font-size: 16px;
  }

  .check-label {
    gap: 9px;
    font-size: 13px;
  }

  .check-label input {
    width: 22px;
    height: 22px;
  }

  .create-shell {
    width: min(1470px, calc(100% - 48px));
    grid-template-columns: minmax(340px, 450px) minmax(680px, 910px);
    gap: clamp(28px, 4vw, 58px);
  }

  .create-shell .brand-mark {
    font-size: clamp(25px, 2vw, 36px);
    margin-bottom: 16px;
  }

  .create-shell .brand-panel h1 {
    font-size: clamp(34px, 3.3vw, 52px);
  }

  .create-shell .brand-panel p {
    max-width: 510px;
    margin-top: 16px;
    margin-bottom: 16px;
    font-size: clamp(13px, 0.9vw, 16px);
  }

  .create-shell .asset-stage,
  .create-shell .feature-strip {
    width: min(455px, 100%);
  }

  .create-shell .feature-strip {
    min-height: 58px;
    margin-top: 14px;
    padding: 9px 12px;
  }

  .create-card {
    max-width: 910px;
    padding: 16px 28px;
    border-radius: 18px;
  }

  .create-card .form-heading {
    margin-bottom: 12px;
  }

  .create-card .form-heading h2 {
    font-size: 30px;
  }

  .create-card .form-heading p {
    font-size: 13px;
  }

  .create-card .form-stack.compact {
    gap: 7px 14px;
  }

  .compact .field {
    gap: 4px;
    font-size: 12px;
  }

  .create-card .compact .input-wrap {
    min-height: 38px;
    height: 38px;
    border-width: 1px;
    border-radius: 9px;
    padding: 0 12px;
  }

  .create-card .compact .input-wrap input,
  .create-card .compact .input-wrap select {
    font-size: 12px;
  }

  .create-card .field-hint,
  .create-card .terms {
    font-size: 11px;
  }

  .create-card .primary-button,
  .create-card .outline-button {
    min-height: 40px;
    font-size: 14px;
  }
}

@media (min-width: 841px) {
  body[data-page="student"] .welcome-block {
    min-height: 160px;
    padding: 28px;
  }

  body[data-page="student"] .welcome-block h1 {
    font-size: clamp(28px, 3vw, 42px);
  }

  body[data-page="student"] .welcome-block p {
    margin-top: 10px;
    font-size: 15px;
  }

  body[data-page="student"] .achievement-strip {
    padding: 18px;
    gap: 10px;
  }

  body[data-page="student"] .achievement-strip svg {
    width: 42px;
    height: 42px;
  }

  body[data-page="student"] .achievement-strip strong {
    font-size: 17px;
  }

  body[data-page="student"] .achievement-strip span {
    font-size: 12px;
  }

  body[data-page="student"] .quick-access {
    margin-bottom: 18px;
  }

  body[data-page="student"] .quick-grid {
    margin-top: 12px;
  }

  body[data-page="student"] .quick-card {
    min-height: 132px;
    padding: 16px;
    border-radius: var(--compact-radius);
  }

  body[data-page="student"] .quick-card > svg {
    top: 16px;
    width: 44px;
    height: 44px;
  }

  body[data-page="student"] .quick-card strong {
    font-size: 15px;
  }

  body[data-page="student"] .quick-card span {
    font-size: 12px;
  }

  body[data-page="student"] .quick-card button {
    right: 12px;
    bottom: 12px;
  }

  body[data-page="student"] .quick-card button svg {
    width: 28px;
    height: 28px;
  }

  .soft-pill {
    padding: 6px 10px;
    font-size: 12px;
  }

  .mission-card h3 {
    font-size: 17px;
  }

  .mission-visual {
    width: 80px;
    height: 80px;
    border-radius: 18px;
  }

  .mission-visual svg {
    width: 48px;
    height: 48px;
  }

  .activity-row {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
    padding: 12px 0;
  }

  .activity-row svg,
  .progress-stats svg {
    width: 25px;
    height: 25px;
  }

  .gauge {
    width: 160px;
    height: 86px;
    margin: 12px auto 18px;
    border-width: 20px;
  }

  .gauge strong {
    font-size: 30px;
  }

  .progress-stats div {
    padding: 10px 6px;
  }

  .progress-stats strong {
    font-size: 15px;
  }

  .progress-stats span {
    font-size: 10px;
  }

  .lesson-card {
    min-height: 190px;
    padding: 16px;
    gap: 9px;
    border-radius: var(--compact-radius);
    box-shadow: var(--compact-shadow);
  }

  .lesson-card > svg {
    width: 42px;
    height: 42px;
  }

  .lesson-card strong {
    font-size: 17px;
  }

  .lesson-card span,
  .lesson-card p,
  .lesson-card small {
    font-size: 12px;
  }
}

@media (max-width: 840px) {
  .app-sidebar {
    height: 72px;
    grid-auto-columns: minmax(68px, 1fr);
  }

  .nav-item {
    min-height: 56px;
    font-size: 11px;
  }

  .nav-item svg {
    width: 21px;
    height: 21px;
  }

  .app-main {
    padding-bottom: 82px;
  }

  .teacher-section,
  .student-section {
    padding: 16px 12px;
  }

  .student-search,
  .student-toolbar select,
  .export-button,
  .segment-button {
    height: 48px;
  }
}
