:root {
  --bg: #f3f6f5;
  --bg-deep: #e4eeeb;
  --surface: #ffffff;
  --ink: #14231f;
  --muted: #5c706a;
  --line: #d5e2dd;
  --brand: #0f766e;
  --brand-dark: #0b5a54;
  --brand-soft: #d9f3ef;
  --accent: #c45c26;
  --accent-soft: #fdeaf1;
  --ok: #15803d;
  --ok-soft: #dcfce7;
  --warn: #b45309;
  --warn-soft: #fef3c7;
  --danger: #b91c1c;
  --danger-soft: #fee2e2;
  --shadow: none;
  --radius: 14px;
  --font: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur: .35s;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 8% -8%, #d5efe9 0%, transparent 55%),
    linear-gradient(180deg, #f5f8f7 0%, #ebf1ef 100%);
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
}

/* Soft blurry graduation caps in background */
.bg-caps {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-caps .cap {
  position: absolute;
  color: var(--brand);
  opacity: 0.055;
  filter: blur(2px);
  line-height: 1;
  will-change: transform;
}
.bg-caps .cap-a {
  font-size: clamp(11rem, 42vw, 22rem);
  top: -6%;
  right: -8%;
  animation: floatCapA 22s ease-in-out infinite;
}
.bg-caps .cap-b {
  font-size: clamp(8rem, 28vw, 14rem);
  bottom: 4%;
  left: -6%;
  opacity: 0.04;
  filter: blur(3px);
  animation: floatCapB 26s ease-in-out infinite;
}
.bg-caps .cap-c {
  font-size: clamp(5rem, 18vw, 9rem);
  top: 42%;
  left: 55%;
  opacity: 0.035;
  filter: blur(4px);
  animation: floatCapC 18s ease-in-out infinite;
}
.bg-caps .cap-d {
  font-size: clamp(4rem, 14vw, 7rem);
  top: 18%;
  left: 8%;
  opacity: 0.03;
  filter: blur(3.5px);
  transform: rotate(-18deg);
  animation: floatCapD 24s ease-in-out infinite;
}

@keyframes floatCapA {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-8deg); }
  50% { transform: translate3d(-18px, 22px, 0) rotate(-2deg); }
}
@keyframes floatCapB {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(12deg); }
  50% { transform: translate3d(20px, -16px, 0) rotate(18deg); }
}
@keyframes floatCapC {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(6deg) scale(1); }
  50% { transform: translate3d(-14px, 12px, 0) rotate(-4deg) scale(1.04); }
}
@keyframes floatCapD {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-18deg); }
  50% { transform: translate3d(12px, 18px, 0) rotate(-10deg); }
}

.app-nav,
.app-main,
.home {
  position: relative;
  z-index: 1;
}

a { color: var(--brand); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand-dark); }

.app-nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .7rem 1rem;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .65rem; color: inherit; }
.brand:hover { color: inherit; }
.brand-mark {
  width: 2.1rem; height: 2.1rem; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--brand);
  color: #fff;
  transition: transform .25s var(--ease);
}
.brand:hover .brand-mark { transform: scale(1.05); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--display); font-size: 1rem; }
.brand-text small { color: var(--muted); font-size: .7rem; letter-spacing: .02em; }
.nav-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }

.nav-profile {
  position: relative;
}
.nav-profile > summary {
  list-style: none;
}
.nav-profile > summary::-webkit-details-marker { display: none; }
.nav-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .2rem .55rem .2rem .2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  color: var(--ink);
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.nav-profile-btn:hover {
  background: #f8faf9;
  border-color: #c5d7d2;
}
.nav-profile-avatar {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.nav-profile-initial {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
}
.nav-profile-name {
  font-size: .85rem;
  font-weight: 600;
  max-width: 6.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-profile-btn .fa-chevron-down {
  font-size: .55rem;
  color: var(--muted);
}
.nav-profile-menu {
  position: absolute;
  right: 0;
  top: calc(100% + .4rem);
  min-width: 11.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  z-index: 50;
  box-shadow: 0 8px 24px rgba(20, 35, 31, .08);
}
.nav-profile-meta {
  padding: .7rem .85rem;
  border-bottom: 1px solid var(--line);
}
.nav-profile-meta strong {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.2;
}
.nav-profile-meta small {
  color: var(--muted);
  font-size: .72rem;
}
.nav-profile-menu a {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem .85rem;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 500;
}
.nav-profile-menu a:hover {
  background: #f5f8f7;
  color: var(--brand);
}
.nav-profile-menu a i {
  width: 1rem;
  text-align: center;
  color: var(--muted);
  font-size: .8rem;
}

.app-main { width: min(1100px, 100%); margin: 0 auto; padding: 1rem 1rem 2.5rem; }
.app-footer { text-align: center; color: var(--muted); font-size: .8rem; padding: .75rem 1rem 1.5rem; }

.hero-panel, .panel, .soft-card, .dash-card, .feedback-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
}
.panel { padding: 1.1rem; }
.panel-lg { padding: 1.2rem; }

.soft-card {
  width: min(400px, 100%);
  margin: 0 auto;
  padding: 1rem 1.05rem 1.1rem;
  animation: riseIn var(--dur) var(--ease) both;
  background: linear-gradient(165deg, #ffffff 0%, #f4faf8 100%);
  border-color: #c5ddd7;
}

h1, h2, .display {
  font-family: var(--display);
  letter-spacing: -0.02em;
  margin: 0 0 .4rem;
}
.muted { color: var(--muted); }
.center { text-align: center; }

.stack { display: flex; flex-direction: column; gap: .75rem; }
.grid-2 { display: grid; gap: .75rem; }
.grid-3 { display: grid; gap: .75rem; }
@media (min-width: 760px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.stat-card, .action-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  transition: border-color .2s var(--ease), transform .25s var(--ease), background .2s var(--ease);
}
.action-card:hover {
  transform: translateY(-2px);
  border-color: #9cc9c2;
}
.stat-value { font-family: var(--display); font-size: 1.75rem; margin: .15rem 0 0; }
.stat-label { color: var(--muted); font-size: .85rem; }

.icon-bubble {
  width: 2.6rem; height: 2.6rem; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.05rem;
  background: var(--brand-soft); color: var(--brand);
  transition: transform .25s var(--ease);
}
.icon-bubble.orange { background: #ffedd5; color: var(--accent); }
.icon-bubble.green { background: var(--ok-soft); color: var(--ok); }
.icon-bubble.amber { background: var(--warn-soft); color: var(--warn); }

label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .35rem; }
.field { margin-bottom: .75rem; }
.input, .select, .textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .75rem .9rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15,118,110,.12);
}
.textarea { min-height: 100px; resize: vertical; }
.phone-wrap { position: relative; }
.phone-wrap .prefix {
  position: absolute; left: .9rem; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-weight: 600; font-size: .9rem;
}
.phone-wrap .input { padding-left: 3.4rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  border: 0; border-radius: 12px; padding: .8rem 1.05rem;
  font: inherit; font-weight: 650; cursor: pointer;
  transition: transform .15s var(--ease), background .2s var(--ease), opacity .2s, border-color .2s;
}
.btn:active { transform: scale(.97); }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { color: #fff; filter: brightness(.96); }
.btn-secondary { background: #e8efed; color: var(--ink); }
.btn-secondary:hover { background: #dce6e3; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: #eef4f2; color: var(--ink); }
.btn-sm { padding: .45rem .75rem; border-radius: 999px; font-size: .85rem; min-height: 0; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-compact { min-height: 42px; padding: .65rem .95rem; }

.alert {
  border-radius: 12px; padding: .7rem .85rem; margin-bottom: .75rem;
  border: 1px solid transparent;
  animation: riseIn .3s var(--ease) both;
}
.alert-ok { background: var(--ok-soft); border-color: #86efac; color: #14532d; }
.alert-warn { background: var(--warn-soft); border-color: #fcd34d; color: #78350f; }
.alert-danger { background: var(--danger-soft); border-color: #fca5a5; color: #7f1d1d; }
.alert-info { background: var(--brand-soft); border-color: #99e0d6; color: #134e4a; }

.progress {
  height: 8px; background: #e5eeeb; border-radius: 999px; overflow: hidden;
}
.progress > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--brand), #14b8a6);
  border-radius: inherit;
  transition: width .5s var(--ease);
}

.badge {
  display: inline-flex; align-items: center; padding: .2rem .55rem;
  border-radius: 999px; font-size: .75rem; font-weight: 650;
}
.badge-ok { background: var(--ok-soft); color: #166534; }
.badge-warn { background: var(--warn-soft); color: #92400e; }
.badge-muted { background: #eef2f1; color: #475569; }

.table-wrap { overflow: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
table.data { width: 100%; border-collapse: collapse; min-width: 640px; }
table.data th, table.data td { padding: .75rem .9rem; text-align: left; border-bottom: 1px solid var(--line); }
table.data th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: #f8fbfa; }
table.data tr { transition: background .15s ease; }
table.data tr:hover td { background: #fafcfb; }

.stars { display: flex; gap: .3rem; }
.stars label { margin: 0; cursor: pointer; }
.stars input { position: absolute; opacity: 0; pointer-events: none; }
.stars i {
  font-size: 1.45rem; color: #cbd5d1;
  transition: color .15s var(--ease), transform .15s var(--ease);
}
.stars label:hover i { transform: scale(1.08); }

.portal-choice { display: grid; gap: .85rem; }
@media (min-width: 720px) {
  .portal-choice { grid-template-columns: 1fr 1fr; gap: 1rem; }
}
.portal-card {
  display: block; padding: 1.25rem; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line);
  color: inherit;
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.portal-card:hover { transform: translateY(-3px); border-color: #8fc6be; color: inherit; }
.landing-wrap { width: min(880px, 100%); margin: 0 auto; padding: 1.5rem 1rem 2.5rem; }
.landing-brand { text-align: center; margin: 1rem 0 1.5rem; animation: riseIn .45s var(--ease) both; }
.landing-brand h1 { font-size: clamp(2.1rem, 5vw, 3rem); margin: .35rem 0; }
.landing-brand p { color: var(--muted); font-size: 1.05rem; max-width: 32rem; margin: 0 auto; }

.fade-in { animation: riseIn var(--dur) var(--ease) both; }
@keyframes riseIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeSoft {
  from { opacity: 0; }
  to { opacity: 1; }
}

.chart-box { position: relative; height: 260px; }
.map-box { height: 280px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #eef4f2; }
.check-list { max-height: 240px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: .4rem; background: #fff; }
.check-list label {
  display: flex; align-items: center; gap: .6rem; font-weight: 500;
  padding: .5rem .6rem; border-radius: 10px; margin: 0;
  transition: background .15s ease;
}
.check-list label:hover { background: #f4f9f7; }
.toolbar { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; margin-bottom: .85rem; }
.toolbar .input, .toolbar .select { width: auto; min-width: 160px; flex: 1; }

.avatar {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
  border: 3px solid #99e0d6; margin: 0 auto .75rem; display: block;
}

/* Student shell — mobile first */
.page-student .app-main,
.page-feedback .app-main,
.page-phone .app-main,
.page-onboard .app-main {
  width: min(400px, 100%);
  padding: 0 1rem 2rem;
}
.page-student-dash .app-main {
  width: min(460px, 100%);
  padding: 0 1rem 2rem;
}

/* Onboarding: true viewport center under sticky header */
body.page-onboard,
body.page-phone {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
body.page-onboard .app-main,
body.page-phone .app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  min-height: calc(100dvh - 4.25rem);
  padding: 1.75rem 1.15rem 2.25rem;
}
.onboard-screen,
.phone-screen {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
body.page-onboard .soft-card,
body.page-phone .soft-card {
  width: 100%;
  margin: 0;
}

.page-home {
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  background: #fff;
  overflow-x: hidden;
  display: block;
}
.page-home .bg-caps { display: none; }

.home-split {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
}
.home-panel {
  position: relative;
}
.home-panel-visual {
  order: 1;
  min-height: 42vh;
  height: 42vh;
  max-height: 320px;
  overflow: hidden;
  background: #0f766e;
}
.home-panel-form {
  order: 2;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.5rem 1.25rem 2.25rem;
  background: #fff;
  min-height: auto;
}
.home-form-inner {
  width: min(400px, 100%);
}
.home-welcome {
  margin-bottom: 1.25rem;
}
.home-welcome h1 {
  font-family: var(--display);
  font-size: clamp(1.55rem, 5vw, 1.95rem);
  margin: 0 0 .4rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.home-welcome p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.45;
}
.home-login-form .field {
  margin-bottom: 1rem;
}
.home-login-form .btn {
  margin-top: .35rem;
}
.home-supervisor {
  margin: 1.35rem 0 0;
  text-align: center;
  font-size: .88rem;
  color: var(--muted);
}
.home-supervisor a {
  color: var(--brand);
  font-weight: 650;
  text-decoration: none;
}
.home-supervisor a:hover { text-decoration: underline; }

.home-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.home-panel-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(10, 24, 22, 0.42);
  pointer-events: none;
}
.home-hero-brand {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  pointer-events: none;
}
.home-hero-brand strong {
  display: block;
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 650;
  color: #fff;
}
.home-hero-brand span {
  display: block;
  margin-top: .3rem;
  font-size: .8rem;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
  letter-spacing: 0.01em;
}

@media (min-width: 900px) {
  .home-split {
    grid-template-columns: minmax(380px, 44%) 1fr;
    grid-template-rows: 1fr;
  }
  .home-panel-form {
    order: 1;
    align-items: center;
    min-height: 100dvh;
    padding: 2.5rem 3rem;
  }
  .home-panel-visual {
    order: 2;
    min-height: 100dvh;
    height: 100dvh;
    max-height: none;
  }
  .home-panel-visual::after {
    background: rgba(10, 24, 22, 0.4);
  }
  .home-hero-brand strong {
    font-size: 1.45rem;
  }
  .home-hero-brand span {
    font-size: .88rem;
  }
}

/* Legacy home helpers (kept for safety) */
.home-map { display: none; }
.home {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  text-align: center;
}
.home-brand { margin-bottom: 2.25rem; }
.home-mark {
  width: 3rem; height: 3rem; margin: 0 auto .85rem;
  border-radius: 12px; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-size: 1.2rem;
}
.btn-home-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: .9rem 1.55rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 650;
}

.phone-screen,
.dash-screen {
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.page-student-dash .dash-screen {
  min-height: calc(100dvh - 7.5rem);
  padding: 1.25rem 0 2rem;
}

.phone-card h2 {
  font-size: 1.2rem;
  margin: 0 0 .35rem;
  text-align: center;
}
.phone-card > .muted {
  text-align: center;
  margin: 0 0 1rem;
  font-size: .9rem;
}
.phone-card .stack { gap: .85rem; }

.dash-card, .feedback-card {
  width: 100%;
  padding: 1.15rem 1.2rem 1.25rem;
  animation: riseIn var(--dur) var(--ease) both;
  background: linear-gradient(165deg, #ffffff 0%, #f3f9f7 100%);
  border-color: #c5ddd7;
}
.dash-card-simple {
  padding: 1.35rem 1.25rem 1.4rem;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #eef7f4 100%);
  border-color: #b7d4cd;
}
.dash-simple-head h2 {
  font-size: 1.45rem;
  margin: 0;
  line-height: 1.2;
}
.dash-simple-head .muted {
  margin: .35rem 0 0;
  font-size: .92rem;
}
.dash-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .45rem;
  margin: 1.1rem 0 1.25rem;
}
.dash-dot {
  width: .55rem;
  height: .55rem;
  border-radius: 999px;
  background: #d5e3df;
  transition: background .2s var(--ease), width .2s var(--ease), transform .2s var(--ease);
}
.dash-dot.done { background: var(--brand); }
.dash-dot.current {
  width: 1.35rem;
  background: var(--brand);
}
.dash-focus {
  padding: .25rem 0 .15rem;
}
.dash-focus-icon {
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto .9rem;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 1.25rem;
}
.dash-focus-done .dash-focus-icon {
  background: var(--ok-soft);
  color: var(--ok);
}
.dash-focus h3 {
  margin: 0 0 .4rem;
  font-size: 1.2rem;
  line-height: 1.25;
}
.dash-focus > .muted {
  margin: 0 auto 1.15rem;
  max-width: 16.5rem;
  font-size: .92rem;
  line-height: 1.45;
}
.dash-focus .btn {
  margin-top: .15rem;
}
.dash-done-fold {
  margin-top: 1.15rem;
  text-align: left;
  border-top: 1px solid var(--line);
  padding-top: .75rem;
}
.dash-done-fold summary {
  cursor: pointer;
  list-style: none;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 600;
  text-align: center;
  user-select: none;
}
.dash-done-fold summary::-webkit-details-marker { display: none; }
.dash-done-fold summary::after {
  content: ' ▾';
  font-size: .7rem;
}
.dash-done-fold[open] summary::after { content: ' ▴'; }
.dash-done-fold ul {
  list-style: none;
  margin: .65rem 0 0;
  padding: 0;
  display: grid;
  gap: .35rem;
}
.dash-done-fold li {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .86rem;
  color: #64748b;
}
.dash-done-fold li i {
  color: var(--ok);
  font-size: .72rem;
}
.dash-done-fold a {
  color: inherit;
  text-decoration: none;
}
.dash-done-fold a:hover { color: var(--brand); }

/* Legacy step list (unused on simple dash, kept for safety) */
.dash-head {
  display: flex; align-items: center; gap: .65rem; margin-bottom: .75rem;
}
.dash-head h2 { font-size: 1.28rem; margin: 0; line-height: 1.2; }
.dash-head .muted,
.dash-progress-meta { margin: .2rem 0 0; font-size: .88rem; }
.dash-avatar {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  border: 2px solid #99e0d6; flex-shrink: 0;
}
.dash-card .progress { margin-bottom: .85rem; height: 8px; }
.dash-next {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  margin: 0 0 .9rem;
  padding: .75rem .85rem;
  border-radius: 12px;
  background: var(--brand-soft);
  border: 1px solid #99e0d6;
  color: #134e4a;
}
.dash-next > i {
  margin-top: .15rem;
  color: var(--brand);
  font-size: .95rem;
  flex-shrink: 0;
}
.dash-next strong {
  display: block;
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: .85;
}
.dash-next span {
  display: block;
  margin-top: .15rem;
  font-size: .95rem;
  font-weight: 650;
  line-height: 1.25;
}
.dash-next-done {
  background: var(--ok-soft);
  border-color: #86efac;
  color: #14532d;
}
.dash-next-done > i { color: var(--ok); }
.dash-steps {
  list-style: none; padding: 0; margin: 0 0 .95rem;
  display: grid; gap: .45rem;
}
.dash-step {
  display: flex; align-items: center; gap: .65rem;
  padding: .7rem .75rem; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; color: inherit;
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease), opacity .2s var(--ease);
}
a.dash-step:hover { border-color: #8fc6be; color: inherit; transform: translateX(2px); }
.dash-step.done {
  border-color: #d1fae5;
  background: #f8fbf9;
  opacity: .58;
}
.dash-step.done .dash-label {
  text-decoration: line-through;
  text-decoration-color: rgba(15, 118, 110, .35);
  color: #64748b;
  font-weight: 550;
}
a.dash-step.done:hover { opacity: .78; transform: none; }
.dash-step.current {
  border-color: var(--brand);
  background: #f0faf8;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .1);
}
.dash-step.locked {
  opacity: .55;
  background: #f8faf9;
  cursor: default;
}
.dash-num {
  width: 1.55rem; height: 1.55rem; border-radius: 999px;
  display: grid; place-items: center; font-size: .75rem; font-weight: 700;
  background: var(--brand-soft); color: var(--brand); flex-shrink: 0;
}
.dash-step.done .dash-num { background: #86efac; color: #14532d; }
.dash-step.current .dash-num { background: var(--brand); color: #fff; }
.dash-label {
  flex: 1; font-size: .92rem; font-weight: 600; line-height: 1.25;
  display: flex; flex-direction: column; gap: .12rem;
}
.dash-status {
  font-style: normal;
  font-size: .72rem;
  font-weight: 650;
  color: #15803d;
  letter-spacing: .02em;
}
.dash-status-next { color: var(--brand); }
.dash-ico {
  width: 1.4rem;
  color: var(--brand);
  opacity: .75;
  font-size: .95rem;
  text-align: center;
  flex-shrink: 0;
}
.dash-step.done .dash-ico { color: #94a3b8; opacity: .9; }
.dash-step.current .dash-ico { opacity: 1; }
.dash-step.locked .dash-ico { color: #94a3b8; }
.dash-chevron {
  color: var(--muted);
  font-size: .8rem;
  flex-shrink: 0;
}
.dash-step.current .dash-chevron { color: var(--brand); }
.dash-check-faded { color: #86efac; opacity: .85; }

.review-card { width: min(440px, 100%); }
.review-block {
  margin: 0 0 .75rem;
  padding: .75rem .8rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8faf9;
}
.review-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .55rem;
}
.review-block-head strong {
  font-size: .9rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.review-photo {
  display: block;
  width: 96px;
  height: 124px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  margin: .25rem auto .35rem;
  background: #fff;
}
.review-dl {
  margin: 0;
  display: grid;
  gap: .4rem;
}
.review-dl > div {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: .4rem;
  font-size: .88rem;
  line-height: 1.35;
}
.review-dl dt {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}
.review-dl dd {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
}
.feedback-form h2 i,
.soft-card h2 i,
.panel h2 i,
.stat-label i {
  margin-right: .35rem;
  opacity: .85;
}

.page-feedback .app-main {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: .85rem;
}
.feedback-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: .35rem; font-size: .8rem;
}
.feedback-meta strong { color: var(--brand); }
.feedback-card .progress { margin-bottom: .7rem; height: 6px; }
.feedback-form { display: flex; flex-direction: column; gap: .6rem; }
.feedback-form h2 { font-size: 1.05rem; margin: 0; }
.feedback-form .field { margin-bottom: 0; }
.feedback-form .input,
.feedback-form .select { padding: .7rem .8rem; border-radius: 11px; font-size: 1rem; }
.feedback-hint { margin: 0; font-size: .8rem; }
.textarea-sm { min-height: 52px; padding: .65rem .8rem; border-radius: 11px; }
.textarea-md { min-height: 84px; padding: .65rem .8rem; border-radius: 11px; }

.loc-actions { display: grid; gap: .45rem; }
.loc-actions .btn { width: 100%; }

.feedback-actions {
  display: flex; justify-content: space-between; align-items: center;
  gap: .65rem; margin-top: .2rem;
}
.page-feedback .stars i { font-size: 1.4rem; }

.soft-card {
  width: min(400px, 100%);
  margin: 0 auto;
  padding: 1.35rem 1.15rem 1.4rem;
  animation: riseIn var(--dur) var(--ease) both;
}
.soft-card h2 { font-size: 1.15rem; }
.soft-card .icon-bubble { margin-left: auto; margin-right: auto; }

.dropzone {
  border: 1.5px dashed #9fbab4; border-radius: 12px; padding: 1rem;
  text-align: center; background: #f8fbfa;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.dropzone:hover { border-color: var(--brand); background: #f3fbfa; }
.dropzone img { max-height: 140px; margin-top: .65rem; border-radius: 10px; animation: fadeSoft .3s ease; }

.passport-tips {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: .4rem;
}
.passport-tips li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.35;
}
.passport-tips i {
  color: var(--brand);
  margin-top: .15rem;
  font-size: .7rem;
}
.passport-pick { margin-bottom: .15rem; }
.passport-crop-wrap {
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(4px);
  transition: max-height .35s var(--ease), opacity .3s var(--ease), transform .3s var(--ease), margin .3s var(--ease);
}
.passport-crop-wrap.is-active {
  margin: .55rem 0 .35rem;
  max-height: 340px;
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.passport-crop-wrap.is-ready {
  margin: .55rem 0 .35rem;
  max-height: 200px;
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.passport-crop-stage {
  width: 100%;
  height: 240px;
  max-height: 240px;
  background: #0f172a;
  border-radius: 12px;
  overflow: hidden;
}
.passport-crop-wrap.is-ready .passport-crop-stage {
  height: auto;
  max-height: 140px;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
}
.passport-crop-stage img {
  display: block;
  max-width: 100%;
}
.passport-crop-wrap.is-ready .passport-crop-stage img {
  width: 88px;
  height: 113px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.passport-crop-hint {
  margin: .45rem 0 0;
  font-size: .75rem;
}
.passport-card {
  max-width: 400px;
  max-height: min(92dvh, 720px);
  overflow: auto;
}
.notice-list { margin: 0; padding-left: 1.05rem; }
.notice-list li { margin: .25rem 0; }

.page-home .app-footer,
.page-student .app-footer,
.page-student-dash .app-footer,
.page-feedback .app-footer,
.page-phone .app-footer,
.page-onboard .app-footer { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .bg-caps .cap,
  .btn-home-login { animation: none !important; }
  .btn-home-login i { animation: none !important; }
  .home-map-layer { animation: none !important; }
}

@media (max-width: 640px) {
  .btn { min-height: 48px; font-size: 1rem; }
  .input, .select, .textarea { font-size: 16px; }
  .app-nav { padding: .65rem .85rem; }
  .brand-text small { display: none; }
}

/* ── Supervisor cinematic dashboard ── */
.page-supervisor .app-main {
  width: min(1120px, 100%);
  padding: 1.25rem 1.25rem 3rem;
}
.page-supervisor .app-nav {
  background: rgba(247, 250, 249, .82);
  border-bottom-color: transparent;
}

.cine {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.cine-hero {
  display: grid;
  gap: 1.5rem;
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(15,118,110,.92) 0%, rgba(26,95,122,.88) 55%, rgba(15,80,70,.9) 100%),
    radial-gradient(600px 280px at 90% 10%, rgba(255,255,255,.18), transparent 60%);
  color: #f7faf9;
  position: relative;
  overflow: hidden;
  animation: riseIn .5s var(--ease) both;
}
.cine-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% 40%;
  height: 120%;
  background: radial-gradient(circle, rgba(255,255,255,.08), transparent 55%);
  pointer-events: none;
}
.cine-hero-copy { position: relative; z-index: 1; }
.cine-kicker {
  margin: 0 0 .4rem;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .75;
}
.cine-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  margin: 0 0 .4rem;
  color: #fff;
  letter-spacing: -0.03em;
}
.cine-sub {
  margin: 0;
  max-width: 28rem;
  color: rgba(247,250,249,.78);
  font-size: 1.02rem;
  line-height: 1.45;
}
.cine-pulse {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
}
.cine-metric {
  padding: .85rem .9rem;
  border-radius: 14px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(8px);
}
.cine-metric-value {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  line-height: 1.1;
  color: #fff;
}
.cine-metric-label {
  display: block;
  margin-top: .25rem;
  font-size: .78rem;
  opacity: .72;
  letter-spacing: .02em;
}

.cine-rail {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding: .15rem 0 .35rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.cine-rail::-webkit-scrollbar { display: none; }
.cine-rail-item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.72);
  color: var(--ink);
  font-weight: 600;
  font-size: .9rem;
  white-space: nowrap;
  animation: riseIn .4s var(--ease) both;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.cine-rail-item i { color: var(--brand); font-size: .9rem; }
.cine-rail-item:hover {
  color: var(--ink);
  border-color: #8fc6be;
  background: #fff;
  transform: translateY(-2px);
}

.cine-stage {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.55fr .85fr;
  align-items: stretch;
}
.cine-map-wrap,
.cine-side,
.cine-chart-panel {
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(213,226,221,.9);
  border-radius: 18px;
  padding: 1rem;
  animation: riseIn .5s var(--ease) both;
}
.cine-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .75rem;
}
.cine-section-head h2,
.cine-chart-panel h3,
.cine-chart-block h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.cine-section-head a {
  font-size: .85rem;
  font-weight: 600;
  white-space: nowrap;
}
.cine-map {
  height: min(420px, 52vh);
  border-radius: 14px;
  overflow: hidden;
  background: #e8efed;
}
.cine-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cine-stat-list {
  display: grid;
  gap: .55rem;
}
.cine-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: .7rem .15rem;
  border-bottom: 1px solid var(--line);
  font-size: .92rem;
}
.cine-stat-row:last-child { border-bottom: 0; }
.cine-stat-row span { color: var(--muted); }
.cine-stat-row span i { margin-right: .4rem; color: var(--brand); opacity: .85; }
.cine-stat-row strong { font-weight: 700; color: var(--ink); }
.cine-chart-block { flex: 1; display: flex; flex-direction: column; gap: .5rem; }
.cine-chart { position: relative; height: 180px; }

.cine-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.cine-chart-panel .cine-chart { height: 240px; }

@media (max-width: 900px) {
  .cine-pulse { grid-template-columns: repeat(2, 1fr); }
  .cine-stage,
  .cine-charts { grid-template-columns: 1fr; }
  .cine-map { height: 300px; }
}

@media (max-width: 640px) {
  .page-supervisor .app-main { padding: 1rem 1rem 2.5rem; }
  .cine-hero { padding: 1.35rem 1.15rem; border-radius: 16px; }
  .cine-hero h1 { font-size: 1.7rem; }
  .cine-metric { padding: .7rem; }
}
