:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17362f;
  background: #f3f7f5;
  font-synthesis: none;
  --ink: #17362f;
  --muted: #657c75;
  --primary: #087f5b;
  --primary-dark: #056044;
  --primary-soft: #dff3eb;
  --line: #dce8e3;
  --surface: #ffffff;
  --sidebar: #123d34;
  --danger: #b42318;
  --warning: #9a6700;
  --shadow: 0 18px 50px rgba(24, 65, 54, 0.1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  background: #f3f7f5;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.58; }
a { color: inherit; }

h1, h2, p { margin-top: 0; }
h1, h2 { color: var(--ink); letter-spacing: -0.035em; }
h2 { margin-bottom: 8px; font-size: clamp(1.3rem, 2vw, 1.65rem); }
p { line-height: 1.65; }

.muted { color: var(--muted); }
.eyebrow {
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: var(--primary);
  font-size: 0.95rem;
}

.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 11px;
  background: #fff;
}

.auth-intro .brand-logo,
.registration-header .brand-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
}

.sidebar .brand-logo {
  width: 48px;
  height: 48px;
  padding: 4px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.brand-light { color: #fff; }
.brand-light .brand-mark { color: var(--sidebar); background: #8ee1c2; }
.brand-light .brand-logo { background: rgba(255, 255, 255, 0.92); }

.button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-weight: 750;
  transition: transform 150ms ease, background 150ms ease;
}
.button:not(:disabled):hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--primary); }
.button-primary:not(:disabled):hover { background: var(--primary-dark); }
.button-secondary { color: var(--ink); border-color: var(--line); background: #fff; }
.button-small { min-height: 38px; padding: 0 14px; font-size: 0.85rem; }

.auth-page {
  background:
    radial-gradient(circle at 12% 8%, rgba(119, 213, 177, 0.24), transparent 32%),
    #eff6f2;
}

.auth-layout {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr);
}

.auth-intro {
  display: flex;
  max-width: 760px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 8vw, 120px);
}

.auth-intro .brand { margin-bottom: clamp(70px, 12vh, 140px); }
.auth-intro h1 {
  max-width: 680px;
  margin-bottom: 22px;
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 0.98;
}
.lead { max-width: 590px; color: #506b63; font-size: 1.12rem; }

.privacy-note {
  display: flex;
  max-width: 540px;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
  padding: 18px 20px;
  border-left: 3px solid #39a77f;
  background: rgba(255, 255, 255, 0.54);
}
.privacy-note span { color: var(--muted); font-size: 0.9rem; }

.auth-panel {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
  background: #fff;
}

.auth-card { width: min(100%, 430px); }
.auth-card h2 { margin-bottom: 8px; font-size: 2rem; }
.auth-card > .muted { margin-bottom: 30px; }
.form-stack { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; color: #294c43; font-size: 0.87rem; font-weight: 700; }
.field input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid #cbdcd5;
  border-radius: 11px;
  outline: none;
  background: #fbfdfc;
}
.field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbdcd5;
  border-radius: 11px;
  outline: none;
  color: var(--ink);
  background: #fbfdfc;
}
.field select { min-height: 50px; }
.field textarea { resize: vertical; }
.field select:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(8, 127, 91, 0.12); }
.field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(8, 127, 91, 0.12); }

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  width: 100%;
  padding-right: 92px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 0.76rem;
  font-weight: 800;
  transform: translateY(-50%);
}
.form-stack .button { margin-top: 6px; }
.form-message { min-height: 24px; margin: 18px 0 0; font-size: 0.9rem; }
.form-message[data-state="error"] { color: var(--danger); }
.form-message[data-state="success"] { color: var(--primary); }
.auth-help { margin: 22px 0 0; color: var(--muted); font-size: 0.78rem; text-align: center; }
.auth-register { display: grid; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; }
.auth-register span { color: var(--muted); font-size: 0.82rem; }
.auth-register .button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

.registration-page { background: radial-gradient(circle at 8% 5%, rgba(95, 195, 157, 0.22), transparent 30%), #eff6f2; }
.registration-header { display: flex; max-width: 1240px; align-items: center; justify-content: space-between; margin: 0 auto; padding: 25px clamp(22px, 5vw, 70px); }
.registration-header .button { display: inline-flex; align-items: center; text-decoration: none; }
.registration-shell { display: grid; width: min(1180px, calc(100% - 40px)); grid-template-columns: minmax(0, 0.8fr) minmax(520px, 1.2fr); gap: clamp(35px, 7vw, 90px); margin: 35px auto 80px; }
.registration-intro { padding-top: 50px; }
.registration-intro h1 { max-width: 570px; margin-bottom: 22px; font-size: clamp(2.5rem, 5vw, 4.6rem); line-height: 1; }
.registration-steps { display: grid; gap: 15px; margin-top: 38px; }
.registration-steps span { display: flex; align-items: center; gap: 12px; color: #506b63; }
.registration-steps strong { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; color: var(--primary); background: var(--primary-soft); font-size: 0.78rem; }
.registration-card { padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.registration-type { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px; margin-bottom: 30px; padding: 5px; border-radius: 13px; background: #edf3f0; }
.registration-tab { min-height: 44px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-weight: 750; }
.registration-tab.active { color: var(--primary-dark); background: #fff; box-shadow: 0 3px 12px rgba(24, 65, 54, 0.08); }
.registration-copy { margin-bottom: 25px; }
.registration-copy h2 { font-size: 1.8rem; }
.registration-copy p { margin: 0; font-size: 0.88rem; }
.registration-form { display: grid; gap: 20px; }
.registration-form[hidden] { display: none; }
.consent-field { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 0.78rem; line-height: 1.5; }
.consent-field input { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--primary); }
.form-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.registration-submit { justify-self: start; }
.registration-success { padding: 35px 10px 20px; text-align: center; }
.registration-success[hidden] { display: none; }
.success-mark { display: grid; width: 58px; height: 58px; place-items: center; margin: 0 auto 18px; border-radius: 18px; color: #fff; background: var(--primary); font-size: 1.7rem; }
.registration-success p { max-width: 470px; margin: 0 auto 24px; color: var(--muted); }
.registration-success .button { display: inline-flex; align-items: center; text-decoration: none; }

.access-loader {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
}
.access-loader[hidden],
body[data-access-state="ready"] .access-loader {
  display: none !important;
}
.access-loader-copy {
  display: grid;
  max-width: 460px;
  gap: 5px;
}
.access-loader-copy strong { color: var(--ink); }
.access-loader-copy span { font-size: 0.84rem; line-height: 1.5; }
.access-loader-copy .button { justify-self: start; margin-top: 10px; }
.access-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.access-actions[hidden] { display: none; }
.access-actions .button { display: inline-flex; align-items: center; margin-top: 0; text-decoration: none; }
body[data-access-state="error"] .spinner {
  border-color: #f2c7c3;
  border-top-color: var(--danger);
  animation: none;
}
.spinner {
  width: 22px;
  height: 22px;
  border: 2px solid #cfe3da;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.dashboard { display: grid; min-height: 100vh; grid-template-columns: 245px minmax(0, 1fr); transition: grid-template-columns 180ms ease; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  width: 245px;
  flex-direction: column;
  padding: 28px 22px;
  color: #d7e9e3;
  background: var(--sidebar);
  transition: transform 180ms ease;
}
.sidebar-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.main-nav { display: grid; gap: 6px; margin-top: 52px; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  border-radius: 10px;
  color: #bed4cd;
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}
.nav-link span { color: #7ea99c; font-size: 0.7rem; }
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255, 255, 255, 0.09); }
.sidebar-footer { margin-top: auto; padding: 15px 14px 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.sidebar-footer p { margin-bottom: 2px; color: #94b5aa; font-size: 0.73rem; }
.sidebar-footer span { font-size: 0.82rem; font-weight: 700; }

.dashboard-main { grid-column: 2; min-width: 0; padding: 28px clamp(22px, 4vw, 58px) 50px; transition: padding 180ms ease; }
.dashboard-panel[hidden] { display: none !important; }
.dashboard-panel.active { animation: panel-in 180ms ease; }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}
.topbar h1 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.7rem); }
.user-menu { display: flex; align-items: center; gap: 14px; }
.user-copy { display: grid; text-align: right; }
.user-copy strong { font-size: 0.85rem; }
.user-copy span { color: var(--muted); font-size: 0.75rem; }

.content-section { scroll-margin-top: 24px; margin-bottom: 26px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-heading h2, .section-heading p { margin-bottom: 0; }
.section-heading p { font-size: 0.87rem; }

.notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding: 17px 20px;
  border: 1px solid #cfe8de;
  border-radius: 14px;
  background: #edf9f4;
}
.notice p { margin: 3px 0 0; color: var(--muted); font-size: 0.82rem; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.metric-grid-six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: 0 8px 30px rgba(29, 72, 61, 0.05);
}
.metric-card strong { display: block; margin: 15px 0 13px; color: var(--ink); font-size: 2.15rem; letter-spacing: -0.04em; line-height: 1.05; }
.metric-card small, .metric-label { color: var(--muted); font-size: 0.75rem; line-height: 1.45; }
.metric-label { font-weight: 750; }

.panel { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 10px 35px rgba(29, 72, 61, 0.05); }
.panel-heading { margin: 0; padding: 20px 22px; border-bottom: 1px solid #e7efec; }
.subsection-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 22px 12px; background: #fbfdfc; }
.subsection-heading h3 { margin: 0 0 3px; color: var(--ink); font-size: 1rem; }
.subsection-heading p { margin: 0; font-size: 0.78rem; }
.registered-heading { border-top: 1px solid var(--line); }
.subsection-table { border-bottom: 1px solid var(--line); }
.empty-state.compact { padding: 25px 20px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 12px 18px; color: #6e837d; background: #f8fbfa; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; }
td { padding: 16px 18px; border-top: 1px solid #edf2f0; color: #39574f; font-size: 0.84rem; }
td strong, td small { display: block; }
td strong { color: var(--ink); }
td small { margin-top: 3px; color: #82948f; }
.test-badge { display: inline-flex; margin-top: 6px; padding: 3px 7px; border-radius: 999px; color: #6b4e00; background: #fff0bd; font-size: 0.62rem; font-weight: 800; text-transform: uppercase; }
.table-actions { display: flex; align-items: center; gap: 10px; }
.action-link {
  padding: 3px 0;
  border: 0;
  color: var(--primary);
  background: transparent;
  font-size: 0.72rem;
  font-weight: 750;
}
.action-link:disabled { opacity: 0.5; }
.action-danger { color: var(--danger); }

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  color: #50645e;
  background: #edf2f0;
  font-size: 0.68rem;
  font-weight: 750;
  white-space: nowrap;
}
.status-active, .status-verified, .status-paid { color: #06724f; background: #dff5eb; }
.status-pending, .status-review, .status-draft { color: var(--warning); background: #fff3d5; }
.status-suspended, .status-rejected, .status-closed { color: var(--danger); background: #fee9e7; }

.empty-state { padding: 44px 20px; text-align: center; }
.empty-state p { margin: 5px 0 0; color: var(--muted); font-size: 0.85rem; }
.dashboard-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; margin-top: 8px; }
.count-badge { display: grid; min-width: 34px; height: 34px; place-items: center; border-radius: 10px; color: var(--primary); background: var(--primary-soft); font-weight: 800; }
.item-list { display: grid; }
.list-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0; padding: 15px 22px; border-top: 1px solid #edf2f0; }
.list-item:first-child { border-top: 0; }
.list-item div { display: grid; gap: 3px; }
.list-item strong { color: var(--ink); font-size: 0.82rem; }
.list-item span:not(.status-pill) { color: var(--muted); font-size: 0.73rem; }
.list-empty { margin: 0; padding: 30px 22px; color: var(--muted); font-size: 0.84rem; }
.account-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.settings-card { align-self: start; }
.settings-card .panel-heading { display: block; }
.settings-card .panel-heading h3, .session-card h3 { margin: 0 0 5px; color: var(--ink); }
.settings-card .panel-heading p, .session-card p { margin: 0; font-size: 0.8rem; }
.settings-form { display: grid; gap: 16px; padding: 22px; }
.settings-form .button { justify-self: start; }
.session-card { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 22px; }
.audit-metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-bottom: 20px; }
.audit-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.audit-list { display: grid; }
.audit-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 20px; border-top: 1px solid #edf2f0; }
.audit-row:first-child { border-top: 0; }
.audit-row span { color: var(--muted); font-size: 0.8rem; }
.audit-row strong { color: var(--ink); }
.audit-events-panel, .audit-checklist-panel { margin-bottom: 20px; }
.audit-checklist-form { display: grid; gap: 18px; padding: 22px; }
.audit-score-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.audit-overall { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-radius: 12px; background: var(--primary-soft); }
.audit-overall span { color: var(--primary-dark); font-weight: 750; }
.audit-overall strong { color: var(--primary-dark); font-size: 1.6rem; }
.audit-checklist-form > .button { justify-self: start; }

.help-heading { align-items: flex-end; }
.help-search { width: min(100%, 320px); }
.help-search input { width: 100%; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 11px; outline: none; background: #fff; }
.help-search input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(8, 127, 91, 0.12); }
.help-quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.help-quick-card { display: grid; gap: 5px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: #fff; text-align: left; box-shadow: 0 7px 24px rgba(29, 72, 61, 0.05); }
.help-quick-card:hover { border-color: #aad7c6; transform: translateY(-1px); }
.help-quick-card span { color: var(--muted); font-size: 0.75rem; }
.help-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.help-article[hidden] { display: none; }
.help-article .panel-heading { display: flex; align-items: center; gap: 13px; }
.help-article .panel-heading h3 { margin: 0 0 3px; color: var(--ink); }
.help-article .panel-heading p { margin: 0; font-size: 0.78rem; }
.help-number { display: grid; width: 35px; height: 35px; flex: 0 0 auto; place-items: center; border-radius: 10px; color: var(--primary); background: var(--primary-soft); font-size: 0.7rem; font-weight: 800; }
.help-body, .help-steps { color: #405f56; font-size: 0.86rem; line-height: 1.65; }
.help-body { padding: 20px 22px; }
.help-body p { margin-bottom: 12px; }
.help-steps { display: grid; gap: 9px; margin: 0; padding: 20px 28px 22px 44px; }
.help-steps.embedded { padding: 0 0 0 22px; }
.help-list { display: grid; gap: 8px; margin: 0; padding-left: 20px; }
.help-callout { margin-top: 16px; padding: 13px 15px; border-left: 3px solid var(--primary); background: #f0faf6; }
.help-faq { display: grid; padding: 8px 22px 18px; }
.help-faq details { border-bottom: 1px solid var(--line); }
.help-faq details:last-child { border-bottom: 0; }
.help-faq summary { padding: 14px 0; color: var(--ink); font-size: 0.84rem; font-weight: 750; cursor: pointer; }
.help-faq p { margin: 0 0 15px; color: var(--muted); font-size: 0.8rem; }
.help-version { margin: 20px 0 0; color: var(--muted); font-size: 0.72rem; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.center-summary-grid { margin-top: 20px; }
.detail-list { display: grid; }
.detail-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 22px; border-top: 1px solid #edf2f0; }
.detail-row:first-child { border-top: 0; }
.detail-row span { color: var(--muted); font-size: 0.78rem; }
.detail-row strong { color: var(--ink); font-size: 0.82rem; text-align: right; }
.plan-layout { display: grid; grid-template-columns: minmax(280px, 0.75fr) minmax(320px, 1.25fr); gap: 20px; }
.plan-card .panel-heading h3 { margin: 5px 0 0; color: var(--ink); font-size: 1.8rem; }
.plan-stat { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.plan-stat span { color: var(--muted); }
.plan-stat strong { color: var(--ink); }
.usage-track { height: 9px; margin: 4px 0 15px; overflow: hidden; border-radius: 999px; background: #e5efeb; }
.usage-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--primary); transition: width 240ms ease; }
.center-profile-card { max-width: 820px; }
.section-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.section-actions .button { display: inline-flex; align-items: center; text-decoration: none; }
.student-editor-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.student-editor-heading p { margin: 3px 0 0; font-size: 0.78rem; }
.student-editor { display: grid; max-height: 330px; gap: 9px; margin-top: 14px; overflow-y: auto; padding-right: 5px; }
.student-editor-row { display: grid; grid-template-columns: 34px minmax(120px, 0.45fr) minmax(220px, 1fr) 36px; align-items: center; gap: 9px; }
.student-editor-row input { width: 100%; min-height: 42px; padding: 0 11px; border: 1px solid #cbdcd5; border-radius: 9px; outline: none; }
.student-editor-row input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(8, 127, 91, 0.12); }
.student-number { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 8px; color: var(--primary); background: var(--primary-soft); font-size: 0.72rem; font-weight: 800; }
.student-remove { width: 34px; height: 34px; border: 0; border-radius: 9px; color: var(--danger); background: #fee9e7; font-size: 1.2rem; }
.file-drop { display: grid; gap: 5px; margin-bottom: 18px; padding: 24px; border: 1px dashed #9fcbbc; border-radius: 14px; color: var(--ink); background: #f5fbf8; cursor: pointer; }
.file-drop span { color: var(--muted); font-size: 0.78rem; }
.file-drop input { margin-top: 10px; }
.import-preview { margin-top: 20px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.import-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.import-summary div { display: grid; gap: 4px; padding: 15px 18px; background: #f8fbfa; }
.import-summary span { color: var(--muted); font-size: 0.72rem; }
.import-preview > .muted { margin: 0; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 0.76rem; }

.modal {
  width: min(760px, calc(100% - 30px));
  max-height: calc(100vh - 30px);
  padding: 0;
  border: 0;
  border-radius: 18px;
  color: var(--ink);
  background: transparent;
  box-shadow: var(--shadow);
}
.modal::backdrop { background: rgba(9, 35, 29, 0.55); backdrop-filter: blur(3px); }
.modal-small { width: min(520px, calc(100% - 30px)); }
.modal-wide { width: min(1120px, calc(100% - 30px)); }
.modal-card { padding: 25px; background: #fff; }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.modal-header h2 { margin: 0; }
.modal-close { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: #fff; font-size: 1.35rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field-wide { grid-column: 1 / -1; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.modal table input { width: 100%; min-height: 38px; padding: 0 10px; border: 1px solid #cbdcd5; border-radius: 9px; outline: none; background: #fbfdfc; }
.modal table input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(8, 127, 91, 0.12); }
.profile-panel { margin-top: 24px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.profile-panel .form-grid { padding: 18px 0 0; }
.student-profile-media { display: flex; align-items: center; gap: 18px; padding: 18px 22px 0; }
.student-profile-photo { display: grid; width: 86px; height: 86px; flex: 0 0 auto; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: #f8fbfa; font-size: 0.72rem; font-weight: 750; text-align: center; }
.student-profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.student-profile-media .field { flex: 1 1 auto; }
.student-profile-media small { display: block; margin-top: 6px; color: var(--muted); font-size: 0.72rem; line-height: 1.45; }
.sociogram-panel { margin-top: 22px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fbfdfc; }
.sociogram-panel svg { display: block; width: 100%; min-height: 900px; height: auto; margin-top: 14px; border: 1px solid #dfece8; border-radius: 14px; background: radial-gradient(circle at center, #ffffff 0, #f3faf7 100%); }
.sociogram-link { transition: stroke-opacity 0.15s ease, stroke-width 0.15s ease; }
.sociogram-link.bridge { stroke-opacity: 0.46; }
.sociogram-group-label { font-size: 18px; font-weight: 900; letter-spacing: 0.01em; }
.sociogram-node circle { transition: filter 0.15s ease, stroke-width 0.15s ease, transform 0.15s ease; transform-box: fill-box; transform-origin: center; }
.sociogram-node:hover circle { filter: drop-shadow(0 8px 14px rgba(17, 83, 68, 0.25)); stroke-width: 5; transform: scale(1.08); }
.sociogram-label-bg { fill: rgba(255, 255, 255, 0.95); stroke: #d8e8e2; stroke-width: 1; }
.sociogram-label { fill: #173d34; font-size: 14px; font-weight: 850; }
.sociogram-score { fill: #fff; font-size: 14px; font-weight: 900; pointer-events: none; }
.sociogram-legend { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0 0; color: var(--muted); font-size: 0.78rem; }
.sociogram-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sociogram-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.legend-green { background: #087f5b; }
.legend-yellow { background: #b7791f; }
.legend-red { background: #c0392b; }
.sociogram-legend .legend-line { width: 30px; height: 0; border-radius: 0; background: transparent; }
.legend-line-3 { border-top: 4px solid #0b6bcb; }
.legend-line-2 { border-top: 3px dashed #7b61ff; }
.legend-line-1 { border-top: 2px dotted #d97706; }
.legend-line-rec { border-top: 7px solid #45675d; }
.subgroup-panel svg.subgroup-map-svg { min-height: 560px; background: linear-gradient(135deg, #ffffff 0, #f4faf7 100%); }
.subgroup-map-title { font-size: 22px; font-weight: 900; }
.subgroup-map-meta { fill: #45675d; font-size: 15px; font-weight: 750; }
.subgroup-map-code { fill: #173d34; font-size: 16px; font-weight: 850; }
.subgroup-bridge-label { fill: #173d34; font-size: 14px; font-weight: 900; paint-order: stroke; stroke: #ffffff; stroke-width: 5px; stroke-linejoin: round; text-anchor: middle; }
.network-reading-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.network-reading-card { padding: 20px; border: 1px solid #d7e8e2; border-radius: 18px; background: #fff; box-shadow: 0 8px 22px rgba(29, 72, 61, 0.05); }
.network-reading-card h4 { margin: 0 0 12px; color: var(--ink); font-size: 1rem; }
.network-reading-list { display: grid; gap: 9px; color: #45675d; font-size: 0.86rem; }
.network-reading-list span { padding: 9px 11px; border-radius: 11px; background: #f3faf7; }
.predictive-intro-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 22px 0; }
.predictive-intro-card { padding: 18px; border: 1px solid #cde7dd; border-radius: 18px; background: linear-gradient(135deg, #ffffff 0, #eefaf5 100%); box-shadow: 0 10px 26px rgba(29, 72, 61, 0.05); }
.predictive-intro-card h3 { margin: 0 0 9px; color: var(--ink); font-size: 1rem; }
.predictive-intro-card p { margin: 0; color: #45675d; font-size: 0.82rem; line-height: 1.55; }
.predictive-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.predictive-summary-card { padding: 16px; border: 1px solid #d7e8e2; border-radius: 15px; background: #fff; }
.predictive-summary-card span { display: block; color: var(--muted); font-size: 0.74rem; font-weight: 750; }
.predictive-summary-card strong { display: block; margin: 6px 0 3px; color: var(--ink); font-size: 1.8rem; letter-spacing: -0.04em; }
.predictive-summary-card small { color: #678079; font-size: 0.72rem; line-height: 1.45; }
.predictive-alert-list { display: grid; gap: 12px; margin-top: 16px; }
.predictive-alert { padding: 16px; border: 1px solid #d7e8e2; border-left: 6px solid #8aa39b; border-radius: 15px; background: #fff; }
.predictive-alert.severity-medio { border-left-color: #d97706; }
.predictive-alert.severity-alto, .predictive-alert.severity-critico { border-left-color: #c0392b; }
.predictive-alert-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.predictive-alert-title strong { color: var(--ink); }
.predictive-alert-title span { padding: 4px 8px; border-radius: 999px; color: #173d34; background: #eef8f4; font-size: 0.72rem; font-weight: 850; }
.predictive-alert p { margin: 0 0 8px; color: #45675d; font-size: 0.84rem; line-height: 1.55; }
.predictive-alert small { color: var(--muted); font-size: 0.76rem; line-height: 1.45; }
.ai-interpretation-output { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.ai-section-card { padding: 16px; border: 1px solid #d7e8e2; border-radius: 15px; background: #fff; }
.ai-section-card h4 { margin: 0 0 8px; color: var(--ink); font-size: 0.95rem; }
.ai-section-card p { margin: 0; color: #45675d; font-size: 0.84rem; line-height: 1.6; }
.ai-section-list { display: grid; gap: 8px; margin: 0; padding-left: 18px; color: #45675d; font-size: 0.84rem; line-height: 1.55; }
.ai-section-list li::marker { color: var(--primary); }
.predictive-followup-panel .field { max-width: 620px; margin-top: 14px; }
.predictive-followup-panel select { min-height: 44px; padding: 0 12px; border: 1px solid #cbdcd5; border-radius: 11px; color: var(--ink); background: #fff; }

@media (max-width: 1050px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-columns { grid-template-columns: 1fr; }
  .audit-metric-grid, .audit-score-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .network-reading-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .predictive-intro-grid, .predictive-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-interpretation-output { grid-template-columns: 1fr; }
  .help-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-layout { grid-template-columns: 1fr; }
  .registration-shell { grid-template-columns: 1fr; }
  .registration-intro { max-width: 760px; padding-top: 10px; }
}

@media (max-width: 760px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-intro { min-height: auto; padding: 42px 25px; }
  .auth-intro .brand { margin-bottom: 65px; }
  .auth-intro h1 { font-size: clamp(2.4rem, 12vw, 4rem); }
  .privacy-note { align-items: flex-start; flex-direction: column; gap: 5px; }
  .auth-panel { min-height: auto; padding: 55px 25px 80px; }
  .dashboard { display: block; }
  .sidebar {
    position: static;
    width: 100%;
    padding: 22px 20px;
    box-shadow: none;
  }
  .main-nav { display: grid; overflow: visible; margin-top: 38px; }
  .nav-link { flex: initial; }
  .sidebar-footer { display: block; }
  .dashboard-main { padding: 28px 18px 45px; }
  .topbar { align-items: flex-start; flex-direction: column; margin-bottom: 30px; }
  .user-menu { width: 100%; justify-content: space-between; }
  .user-copy { text-align: left; }
  .account-settings-grid { grid-template-columns: 1fr; }
  .audit-columns { grid-template-columns: 1fr; }
  .help-layout { grid-template-columns: 1fr; }
  .help-heading { align-items: stretch; flex-direction: column; }
  .help-search { width: 100%; }
  .section-actions { width: 100%; justify-content: flex-start; }
  .session-card { grid-column: auto; align-items: flex-start; flex-direction: column; }
  .network-reading-grid { grid-template-columns: 1fr; }
  .predictive-intro-grid, .predictive-summary-grid { grid-template-columns: 1fr; }
}

.survey-app {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 4vw, 34px);
}

.survey-card,
.survey-workspace {
  width: 100%;
}

.survey-card {
  margin-bottom: 18px;
  padding: clamp(18px, 4vw, 28px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.survey-login {
  max-width: 560px;
  margin: 7vh auto 0;
}

.survey-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.survey-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 22px;
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(135deg, #123d34, #087f5b);
  box-shadow: var(--shadow);
}

.survey-topbar h1,
.survey-topbar .eyebrow,
.survey-topbar .muted {
  color: #fff;
}

.survey-stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.survey-stepper span {
  padding: 12px 14px;
  border-radius: 999px;
  background: #eef6f2;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  text-align: center;
}

.survey-stepper span.is-active {
  color: #fff;
  background: var(--primary);
}

.survey-summary,
.survey-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.survey-summary > div,
.survey-metrics > article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fbfa;
}

.survey-summary span,
.survey-metrics span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.survey-summary strong,
.survey-metrics strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 1.35rem;
}

.survey-summary small,
.survey-metrics small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.attendance-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.attendance-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.attendance-item input {
  width: 22px;
  height: 22px;
  accent-color: var(--primary);
}

.attendance-item span {
  display: grid;
  gap: 2px;
}

.attendance-item small {
  color: var(--muted);
}

.question-capture-list {
  display: grid;
  gap: 18px;
}

.question-capture-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #f8fbfa;
}

.nomination-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.nomination-option {
  position: relative;
  min-height: 74px;
  padding: 14px;
  border: 2px solid transparent;
  border-radius: 18px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  box-shadow: 0 8px 24px rgba(24, 65, 54, 0.06);
}

.nomination-option strong,
.nomination-option span {
  display: block;
}

.nomination-option span {
  color: var(--muted);
  font-size: 0.9rem;
}

.nomination-option.is-selected {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.nomination-option.is-selected::after {
  content: attr(data-order);
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--primary);
  font-weight: 900;
}

@media (max-width: 760px) {
  .survey-app { padding: 12px; }
  .survey-topbar { display: grid; }
  .survey-stepper { grid-template-columns: 1fr 1fr; }
  .nomination-grid,
  .attendance-list {
    grid-template-columns: 1fr;
  }
  .modal-actions {
    align-items: stretch;
  }
  .modal-actions .button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .metric-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; }
  .notice { align-items: flex-start; flex-direction: column; }
  .user-copy { max-width: 180px; }
  .user-copy span { overflow: hidden; text-overflow: ellipsis; }
  .form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .modal-card { padding: 20px; }
  .registration-shell { width: min(100% - 24px, 680px); margin-top: 15px; }
  .registration-card { padding: 20px 16px; }
  .registration-type { grid-template-columns: 1fr; }
  .registration-header { padding: 18px 16px; }
  .help-quick-grid { grid-template-columns: 1fr; }
  .student-editor-row { grid-template-columns: 30px 1fr 34px; }
  .student-editor-row label:first-of-type { grid-column: 2; }
  .student-editor-row label:nth-of-type(2) { grid-column: 2; }
  .student-remove { grid-column: 3; grid-row: 1 / span 2; }
  .import-summary { grid-template-columns: 1fr; }
}
