@import url("design-system.css");

/* Tokens oficiais e aliases legados: ver design-system.css (:root).
   Estilos abaixo preservam módulos ainda não migrados (CNES, Bolsistas, etc.). */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sigs-font);
}

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

.shell {
  min-height: 100vh;
}

.topbar {
  align-items: center;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 28px;
  min-height: 76px;
  padding: 0 36px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 250px;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, var(--blue-700), var(--green-600));
  border-radius: 14px;
  color: #fff;
  display: flex;
  font-weight: 800;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.brand-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin-top: 2px;
}

.nav {
  display: flex;
  flex: 1;
  gap: 8px;
  justify-content: center;
}

.nav a {
  border-bottom: 3px solid transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  padding: 28px 14px 24px;
}

.nav a.active,
.nav a:hover {
  border-color: var(--blue-600);
  color: var(--blue-700);
}

.btn {
  align-items: center;
  background: var(--sigs-green);
  border: 1px solid transparent;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 15px;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
}

.btn.secondary {
  background: var(--white);
  border: 1px solid var(--sigs-blue);
  color: var(--sigs-blue);
}

.hero {
  background:
    linear-gradient(90deg, rgba(244, 248, 255, 0.98) 0%, rgba(244, 248, 255, 0.82) 42%, rgba(7, 52, 127, 0.22) 100%),
    radial-gradient(circle at 78% 24%, rgba(24, 164, 86, 0.22), transparent 24%),
    linear-gradient(135deg, #e9f4ff 0%, #b8d7f7 48%, #0c3a86 100%);
  min-height: 360px;
  padding: 54px 10vw;
}

.hero-kicker {
  color: var(--green-700);
  font-weight: 800;
  margin-bottom: 6px;
}

.hero h1 {
  color: var(--blue-900);
  font-size: 76px;
  line-height: 0.95;
  margin: 0;
}

.hero h2 {
  color: var(--blue-900);
  font-size: 24px;
  margin: 12px 0 0;
}

.hero p {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.45;
  max-width: 410px;
}

.section {
  margin: 0 auto;
  max-width: 1220px;
  padding: 34px 24px;
}

.section-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 18px;
  text-align: center;
}

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 20px;
}

.module-card {
  align-items: center;
  display: flex;
  gap: 16px;
  min-height: 126px;
}

.module-icon {
  align-items: center;
  border-radius: 999px;
  display: flex;
  flex: 0 0 64px;
  font-size: 28px;
  height: 64px;
  justify-content: center;
  width: 64px;
}

.module-card h3 {
  font-size: 18px;
  margin: 0 0 8px;
}

.module-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
}

.access-label {
  border-radius: 999px;
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  margin-top: 10px;
  padding: 4px 8px;
}

.access-label.public { background: #e8f8ef; color: var(--green-700); }
.access-label.restricted { background: #fff1e6; color: #a84d00; }
.access-label.mixed { background: #eef4ff; color: var(--blue-700); }

.empty-copy,
.result-count,
.source { color: var(--muted); }

.agenda-page { max-width: 1180px; }
.agenda-page .page-header h1 { margin-bottom: 4px; }

.filter-grid {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.filter-grid label { display: grid; font-size: 12px; font-weight: 800; gap: 6px; }
.filter-grid input,
.filter-grid select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  min-height: 42px;
  padding: 0 10px;
}

.filter-actions,
.event-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.event-list { display: grid; gap: 14px; }
.event-card { display: grid; gap: 18px; grid-template-columns: 86px 1fr; }
.event-date {
  align-items: center;
  background: #edf4ff;
  border-radius: 8px;
  color: var(--blue-700);
  display: flex;
  flex-direction: column;
  height: 82px;
  justify-content: center;
  text-align: center;
}
.event-date strong { font-size: 28px; }
.event-date span { font-size: 12px; font-weight: 800; }
.event-body h2 { margin: 8px 0; }
.event-body p { line-height: 1.5; margin: 7px 0; }
.event-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.event-meta span { background: #eef4ff; border-radius: 999px; color: var(--blue-700); font-size: 11px; font-weight: 800; padding: 4px 8px; }
.event-actions { margin-top: 14px; }
.event-actions .btn { min-height: 38px; padding: 0 13px; }
.empty-state { text-align: center; }

.two-cols {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
}

.list-item {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 14px;
  grid-template-columns: 70px 1fr;
  padding: 12px 0;
}

.date-badge {
  background: #edf4ff;
  border-radius: 7px;
  color: var(--blue-700);
  font-weight: 800;
  padding: 8px;
  text-align: center;
}

.footer {
  background: linear-gradient(90deg, var(--blue-900), var(--green-700));
  color: #fff;
  display: flex;
  justify-content: space-between;
  padding: 24px 10vw;
}

.auth-page {
  align-items: center;
  background: linear-gradient(135deg, #e9f4ff, #f7fbff);
  display: flex;
  min-height: 100vh;
  justify-content: center;
  padding: 24px;
}

.login-box {
  max-width: 420px;
  width: 100%;
}

.form-field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.form-field label {
  font-size: 13px;
  font-weight: 800;
}

.form-field input {
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
  min-height: 44px;
  padding: 0 12px;
}

.alert {
  background: #fff0f0;
  border: 1px solid #ffd1d1;
  border-radius: 8px;
  color: #a52222;
  margin-bottom: 12px;
  padding: 10px;
}

.app-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--blue-900);
  color: #fff;
  padding: 22px;
}

.sidebar a {
  border-radius: 8px;
  display: block;
  font-weight: 700;
  margin-top: 6px;
  padding: 12px;
}

.sidebar a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.logout-form { margin: 0; }
.logout-form button {
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: inherit;
  cursor: pointer;
  display: block;
  font: inherit;
  font-weight: 700;
  margin-top: 6px;
  padding: 12px;
  text-align: left;
  width: 100%;
}
.logout-form button:hover { background: rgba(255, 255, 255, 0.12); }
.auth-help { color: var(--muted); font-size: 12px; }
.notice.success { background: #e8f8ef; border: 1px solid #b9e8cb; border-radius: 8px; color: var(--green-700); margin-bottom: 14px; padding: 10px; }
.table-wrap { overflow-x: auto; }
.data-table { border-collapse: collapse; min-width: 1050px; width: 100%; }
.data-table th, .data-table td { border-bottom: 1px solid var(--line); padding: 12px 9px; text-align: left; vertical-align: top; }
.access-form { display: grid; gap: 7px; grid-template-columns: repeat(2, minmax(120px, 1fr)); min-width: 420px; }
.access-form select, .access-form input, .access-form textarea { border: 1px solid var(--line); border-radius: 7px; min-height: 38px; padding: 7px; }
.status-badge { border-radius: 999px; display: inline-block; font-size: 11px; font-weight: 800; padding: 4px 8px; }
.status-active { background: #e8f8ef; color: var(--green-700); }
.status-inactive, .status-pending { background: #fff5dc; color: #8a5b00; }
.status-blocked { background: #fff0f0; color: #a52222; }
.permissions-card { margin-top: 18px; }
.permission-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.permission-grid code { font-size: 12px; }

.content {
  padding: 28px;
}

.page-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

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

.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.stat strong {
  display: block;
  font-size: 30px;
  margin-top: 6px;
}

@media (max-width: 900px) {
  .topbar,
  .footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .nav {
    display: none;
  }

  .hero {
    padding: 38px 24px;
  }

  .hero h1 {
    font-size: 54px;
  }

  .grid,
  .two-cols,
  .stats-grid,
  .filter-grid,
  .app-layout {
    grid-template-columns: 1fr;
  }

  .event-card { grid-template-columns: 1fr; }
  .event-date { width: 86px; }
}

/* ETAPA 3B — Força de Trabalho / Base CNES */
.eyebrow { color: #0f766e; font-size: 12px; font-weight: 900; letter-spacing: .08em; margin: 0 0 6px; }
.muted { color: var(--muted); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.no-pad { padding-left: 0; padding-right: 0; }
.narrow-content { max-width: 1180px; width: 100%; }
.cnes-layout .sidebar { background: linear-gradient(180deg, #063c4a, #06245f); }
.cnes-stats { grid-template-columns: repeat(7, minmax(130px, 1fr)); overflow-x: auto; padding-bottom: 6px; }
.cnes-stats .stat { min-width: 150px; }
.stat.good { border-top: 4px solid #159447; }
.stat.warning { border-top: 4px solid #e59b19; }
.stat.critical { border-top: 4px solid #c83a3a; }
.stat.structural { border-top: 4px solid #6f42c1; }
.cnes-callout { border-left: 5px solid #0f766e; margin-top: 18px; }
.cnes-callout p { line-height: 1.55; margin-bottom: 0; }
.cap-grid { display: grid; gap: 14px; grid-template-columns: repeat(5, minmax(190px, 1fr)); }
.cap-card { transition: transform .15s ease, box-shadow .15s ease; }
.cap-card:hover { transform: translateY(-2px); }
.cap-card h3 { font-size: 30px; margin: 0; }
.cap-card dl, .unit-card dl { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0,1fr)); margin: 16px 0 0; }
.cap-card dl div, .unit-card dl div { background: #f4f8fb; border-radius: 7px; padding: 8px; }
.cap-card dt, .unit-card dt { color: var(--muted); font-size: 11px; }
.cap-card dd, .unit-card dd { font-size: 19px; font-weight: 900; margin: 3px 0 0; }
.filters-card { margin: 22px 0; }
.cnes-filters { grid-template-columns: 1.4fr repeat(3, 1fr) auto; margin: 0; }
.cnes-table td small { color: var(--muted); display: block; margin-top: 4px; }
.status-pill { background: #edf4ff; border-radius: 999px; color: #07347f; display: inline-block; font-size: 11px; font-weight: 900; padding: 5px 9px; }
.success-pill { background: #e8f8ef; color: #118143; }
.text-link { color: #0b4bbb; font-weight: 800; }
.upload-card { max-width: 620px; }
.upload-card input[type=file], .upload-card input[type=month] { background: #fff; border: 1px solid var(--line); border-radius: 8px; min-height: 46px; padding: 10px; }
.preview-card h3 { margin-top: 24px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-list span, .tag { background: #eaf6f3; border-radius: 999px; color: #0f766e; font-size: 11px; font-weight: 800; padding: 5px 8px; }
.confirm-box { background: #f4f8fb; border-radius: 9px; margin-top: 22px; padding: 18px; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }
.unit-grid, .team-card-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0,1fr)); }
.unit-card h3, .team-summary h3 { margin: 0; }
.composition-mini { display: grid; gap: 8px; grid-template-columns: repeat(2,1fr); }
.composition-mini span { background: #f4f8fb; border-radius: 7px; display: flex; justify-content: space-between; padding: 8px; }
.structural-text { color: #6f42c1; font-weight: 800; }
.dual-status { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; margin-bottom: 18px; }
.dual-status h2 { font-size: 28px; margin: 8px 0; }
.assistential-panel { border-top: 5px solid #0f766e; }
.replacement-panel { border-top: 5px solid #6f42c1; }
.structural-alert { background: #f2ecff; border: 1px solid #d8c8ff; border-left: 5px solid #6f42c1; border-radius: 8px; color: #4f2d91; line-height: 1.5; margin-bottom: 18px; padding: 16px; }
.composition-grid { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0,1fr)); margin-bottom: 18px; }
.role-card span, .role-card small { color: var(--muted); display: block; }
.role-card strong { display: block; font-size: 30px; margin: 8px 0; }
.medical-workload-card { border-top: 4px solid #0f5e9c; grid-column: span 2; }
.medical-workload-card small { line-height: 1.45; margin-top: 3px; }
.structural-role { border-top: 4px solid #6f42c1; }
.timeline { display: grid; gap: 8px; }
.timeline div { align-items: center; border-bottom: 1px solid var(--line); display: grid; gap: 12px; grid-template-columns: 120px 1fr 1.4fr 2fr; padding: 10px 0; }
.disabled-button { margin-top: 18px; opacity: .55; }
.issue-grid { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0,1fr)); }
.issue-grid div { background: #f4f8fb; border-radius: 7px; display: grid; gap: 4px; padding: 10px; }

@media (max-width: 1100px) {
  .cap-grid, .composition-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cnes-filters { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .cap-grid, .unit-grid, .team-card-grid, .dual-status, .composition-grid, .issue-grid, .cnes-filters { grid-template-columns: 1fr; }
  .medical-workload-card { grid-column: span 1; }
  .cnes-layout .sidebar { padding-bottom: 12px; }
  .timeline div { grid-template-columns: 1fr; }
}

/* SIGS Bolsistas 2.0 — ETAPA 1 */
.auth-shell { align-items: center; background: linear-gradient(145deg, #eef4f9, #d6e4f0); display: flex; justify-content: center; min-height: calc(100vh - 76px); padding: 32px 20px; }
.password-change-card { background: #fff; border-top: 5px solid #1f4e79; box-shadow: var(--shadow); max-width: 520px; padding: 32px; width: 100%; }
.auth-brand { margin-bottom: 24px; min-width: 0; }
.password-lock { align-items: center; background: #d6e4f0; border-radius: 50%; color: #1f4e79; display: flex; font-size: 34px; height: 64px; justify-content: center; margin-bottom: 18px; width: 64px; }
.password-change-card h1 { color: #1f4e79; font-size: 30px; margin: 0 0 10px; }
.password-change-card > p { color: var(--muted); line-height: 1.55; }
.password-rules { background: #eef4f9; border-left: 4px solid #1f4e79; display: grid; gap: 5px; margin: 6px 0 8px; padding: 14px; }
.password-rules span { color: var(--muted); font-size: 13px; }

.scholars-app { background: #f4f7fa; min-height: calc(100vh - 76px); }
.scholars-sidebar { background: linear-gradient(180deg, #1f4e79, #123b5d); color: #fff; min-height: calc(100vh - 76px); }
.scholars-sidebar .brand { min-width: 0; }
.scholars-sidebar .brand-mark { background: #fff; color: #1f4e79; }
.scholars-sidebar .brand-subtitle { color: #d6e4f0; }
.scholars-nav { display: grid; gap: 5px; margin-top: 26px; }
.scholars-nav a, .scholars-nav button { background: transparent; border: 0; border-left: 3px solid transparent; color: #fff; cursor: pointer; font: inherit; padding: 11px 13px; text-align: left; width: 100%; }
.scholars-nav a:hover, .scholars-nav a:focus-visible, .scholars-nav button:hover { background: rgba(255,255,255,.1); border-left-color: #d6e4f0; }
.scholars-nav .nav-section { color: #bcd0e2; font-size: 11px; font-weight: 900; letter-spacing: .1em; margin: 16px 13px 4px; text-transform: uppercase; }
.scholars-nav .logout-form { border-top: 1px solid rgba(255,255,255,.18); margin-top: 18px; padding-top: 10px; }
.scholars-content { max-width: 1500px; overflow: hidden; width: 100%; }
.scholars-header { align-items: flex-start; }
.scholars-header h1 { color: #1f4e79; font-size: 38px; margin: 3px 0 6px; }
.scholars-header p { color: var(--muted); margin: 0; }
.institution-chip, .count-chip { background: #d6e4f0; border-radius: 999px; color: #1f4e79; font-size: 12px; font-weight: 900; padding: 8px 12px; white-space: nowrap; }
.scholars-stats { grid-template-columns: repeat(5, minmax(130px, 1fr)); }
.scholars-stats .stat { border-top: 4px solid #1f4e79; }
.scholars-stats .stat span { color: var(--muted); font-size: 13px; }
.scholars-intro { align-items: center; display: flex; justify-content: space-between; margin: 18px 0; }
.scholars-intro h2 { color: #1f4e79; margin: 4px 0 8px; }
.scholars-intro p { line-height: 1.5; margin: 0; max-width: 780px; }
.section-kicker { color: #2e74b5; font-size: 11px; font-weight: 900; letter-spacing: .09em; }
.security-summary { align-items: center; background: #eef4f9; border-radius: 10px; display: flex; gap: 12px; margin-left: 20px; padding: 14px; }
.security-summary strong { color: #1f4e79; font-size: 30px; }
.security-summary span { color: var(--muted); font-size: 12px; max-width: 130px; }
.scholars-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.scholar-module-card { border-top: 4px solid #c9d4df; display: block; min-height: 190px; position: relative; }
.scholar-module-card.is-active { border-top-color: #1f4e79; }
.scholar-module-card h3 { color: #1f4e79; margin: 20px 0 8px; }
.scholar-module-card p { color: var(--muted); line-height: 1.45; }
.card-stage { background: #eef4f9; border-radius: 999px; color: #1f4e79; font-size: 10px; font-weight: 900; padding: 5px 8px; position: absolute; right: 14px; top: 14px; }
.planned-label { color: #728197; font-size: 11px; font-weight: 800; }
.card-link { color: #1f4e79; font-size: 12px; font-weight: 900; }
.institutional-note { background: #d6e4f0; border-left: 5px solid #1f4e79; border-radius: 8px; color: #173956; margin-top: 18px; padding: 16px 18px; }
.institutional-note p { line-height: 1.5; margin: 6px 0 0; }

.access-management .section-title { align-items: flex-start; display: flex; font-size: inherit; justify-content: space-between; margin: 0 0 18px; text-align: left; }
.access-management .section-title h2 { color: #1f4e79; margin: 4px 0 0; }
.access-management .section-title p { color: var(--muted); margin: 0; max-width: 400px; }
.temporary-credential { align-items: center; background: #fff8df; border: 1px solid #ecd58b; border-radius: 9px; display: flex; gap: 18px; margin-bottom: 18px; padding: 16px; }
.temporary-credential div { flex: 1; }
.temporary-credential p { color: #745b12; margin: 5px 0 0; }
.temporary-credential code { background: #fff; border: 1px dashed #b58a13; font-size: 16px; padding: 10px; }
.access-toolbar, .create-access-card, .access-list-card { margin-bottom: 18px; }
.access-search label { display: block; font-weight: 800; margin-bottom: 7px; }
.access-search > div { display: flex; gap: 8px; }
.access-search input { border: 1px solid var(--line); border-radius: 8px; flex: 1; min-height: 44px; padding: 10px; }
.access-search small { color: var(--muted); display: block; margin-top: 8px; }
.access-create-form { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(140px,1fr)); }
.access-create-form label, .access-actions label { display: grid; font-weight: 800; gap: 6px; }
.access-create-form label span, .access-actions label span { color: var(--muted); font-size: 11px; }
.access-create-form input, .access-create-form select, .access-actions input, .access-actions select { border: 1px solid var(--line); border-radius: 7px; min-height: 42px; padding: 8px; }
.access-create-form > small { color: var(--muted); grid-column: 1 / -1; }
.access-create-form > .btn { justify-self: start; }
.access-table td > small { color: var(--muted); display: block; margin-top: 5px; }
.access-actions { min-width: 220px; }
.access-actions summary { color: #1f4e79; cursor: pointer; font-weight: 900; }
.access-actions form { border-top: 1px solid var(--line); display: grid; gap: 9px; margin-top: 10px; padding-top: 10px; }

@media (max-width: 1200px) {
  .scholars-stats { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .scholars-grid, .access-create-form { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .scholars-sidebar { min-height: auto; }
  .scholars-sidebar .brand { padding: 4px 0; }
  .scholars-nav { grid-template-columns: repeat(2, minmax(0,1fr)); margin-top: 14px; }
  .scholars-nav .nav-section { display: none; }
  .scholars-nav .logout-form { border: 0; margin: 0; padding: 0; }
  .scholars-header, .scholars-intro, .temporary-credential { align-items: flex-start; flex-direction: column; }
  .security-summary { margin: 16px 0 0; }
}
@media (max-width: 620px) {
  .scholars-content { padding: 18px 14px; }
  .scholars-stats, .scholars-grid, .access-create-form { grid-template-columns: 1fr; }
  .access-search > div { flex-direction: column; }
  .access-management .section-title { display: block; }
  .temporary-credential code { max-width: 100%; overflow-wrap: anywhere; }
}

/* SIGS Bolsistas — ETAPA 2 */
.scholar-filter-card { margin-bottom: 18px; }
.scholar-filter-form { align-items: end; display: grid; gap: 14px; grid-template-columns: minmax(240px,1.5fr) repeat(3,minmax(150px,1fr)) auto; }
.scholar-filter-form label, .modern-form-grid label { color: var(--ink); display: grid; font-size: 12px; font-weight: 800; gap: 7px; }
.scholar-filter-form input, .scholar-filter-form select, .modern-form-grid input, .modern-form-grid select, .modern-form-grid textarea, .row-actions input { background: #fbfdff; border: 1px solid #cbd7e8; border-radius: 9px; color: var(--ink); font: inherit; min-height: 46px; padding: 10px 12px; width: 100%; }
.modern-form-grid textarea { resize: vertical; }
.scholar-filter-form input:focus, .scholar-filter-form select:focus, .modern-form-grid input:focus, .modern-form-grid select:focus, .modern-form-grid textarea:focus { background: #fff; border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(13,91,215,.12); outline: 0; }
.modern-form-grid input.is-invalid { border-color: #b42318; box-shadow: 0 0 0 3px rgba(180,35,24,.1); }
.modern-form-grid input.is-valid { border-color: var(--green-600); }
.scholar-table td strong, .scholar-table td small { display: block; }
.scholar-table td small { color: var(--muted); margin-top: 4px; }
.row-actions { align-items: flex-start; display: flex; flex-wrap: wrap; gap: 8px 12px; }
.row-actions a, .row-actions summary, .row-actions button { background: none; border: 0; color: var(--blue-700); cursor: pointer; font: inherit; font-size: 12px; font-weight: 800; padding: 0; text-decoration: none; }
.row-actions details { position: relative; }
.row-actions details[open] { background: #fff; border: 1px solid var(--line); border-radius: 9px; box-shadow: var(--shadow); padding: 12px; position: absolute; right: 28px; width: 250px; z-index: 3; }
.row-actions details form { display: grid; gap: 8px; margin-top: 10px; }
.row-actions .danger-link { color: #a52222; }
.grant-status-awaiting_start, .grant-status-ending { background: #fff5dc; color: #8a5b00; }
.grant-status-active { background: #e8f8ef; color: var(--green-700); }
.grant-status-temporarily_inactive { background: #eef4ff; color: var(--blue-700); }
.grant-status-closed { background: #eef0f3; color: #505a68; }
.scholar-form { display: grid; gap: 18px; }
.form-section { margin: 0; }
.form-section h2 { color: var(--blue-900); margin: 4px 0 0; }
.modern-form-grid { display: grid; gap: 17px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.modern-form-grid .span-2 { grid-column: 1 / -1; }
.modern-form-grid label > span { color: var(--muted); font-weight: 500; }
.privacy-chip { background: #e8f8ef; border: 1px solid #b9e8cb; border-radius: 999px; color: var(--green-700); font-size: 11px; font-weight: 900; padding: 7px 11px; }
.form-actions, .header-actions { display: flex; gap: 10px; justify-content: flex-end; }
.detail-grid { display: grid; gap: 18px; grid-template-columns: repeat(2,minmax(0,1fr)); margin-bottom: 18px; }
.detail-list { display: grid; gap: 0; margin: 12px 0 0; }
.detail-list div { border-bottom: 1px solid var(--line); display: grid; gap: 8px; grid-template-columns: 150px 1fr; padding: 11px 0; }
.detail-list dt { color: var(--muted); font-size: 12px; font-weight: 800; }
.detail-list dd { margin: 0; overflow-wrap: anywhere; }
.detail-list.compact div { grid-template-columns: 105px 1fr; }
.coordinator-grid { display: grid; gap: 18px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.coordinator-card-head { align-items: center; display: flex; gap: 14px; }
.coordinator-card-head h2 { color: var(--blue-900); font-size: 20px; margin: 0 0 5px; }
.avatar { align-items: center; background: #e8f8ef; border-radius: 50%; color: var(--green-700); display: flex; font-size: 22px; font-weight: 900; height: 52px; justify-content: center; width: 52px; }
.timeline { display: grid; gap: 0; }
.timeline article { border-left: 2px solid #cbd7e8; display: grid; grid-template-columns: 22px 1fr; margin-left: 8px; padding: 0 0 26px 22px; position: relative; }
.timeline-dot { background: var(--green-600); border: 4px solid #e8f8ef; border-radius: 50%; height: 16px; left: -9px; position: absolute; top: 2px; width: 16px; }
.timeline p { margin: 5px 0; }.timeline small { color: var(--muted); }
.empty-state { color: var(--muted); padding: 32px !important; text-align: center; }
.inline-link { color: var(--blue-700); font-weight: 800; text-decoration: none; }
.notice.info, .flow-explanation { background: #eef4ff; border: 1px solid #cbdcf7; border-left: 4px solid var(--blue-600); color: var(--blue-900); margin-bottom: 18px; }
.notice.info strong, .flow-explanation strong { display: block; margin-bottom: 5px; }
.flow-explanation p { color: var(--muted); margin: 0; }
.assignment-history { display: grid; gap: 12px; }
.assignment-history article { background: #f8fafc; border: 1px solid var(--line); border-radius: 9px; padding: 14px; }
.assignment-history article > div { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
.assignment-history p { margin: 8px 0 4px; }.assignment-history small { color: var(--muted); }
.timeline-card { margin-top: 18px; }

@media (max-width: 1100px) { .scholar-filter-form { grid-template-columns: repeat(2,minmax(0,1fr)); }.scholar-filter-form .wide { grid-column: 1 / -1; } }
@media (max-width: 760px) { .modern-form-grid,.detail-grid,.coordinator-grid,.scholar-filter-form { grid-template-columns: 1fr; }.modern-form-grid .span-2,.scholar-filter-form .wide { grid-column: auto; }.form-actions,.header-actions { flex-wrap: wrap; justify-content: stretch; }.form-actions .btn,.header-actions .btn { flex: 1; }.detail-list div { grid-template-columns: 1fr; gap: 3px; } }

/* Componente compartilhado de autenticação — Login, troca, recuperação e redefinição */
.auth-standard-page {
  background: var(--page);
  min-height: 100vh;
}

.auth-standard-header {
  justify-content: space-between;
}

.auth-security-chip {
  align-items: center;
  background: #e8f8ef;
  border: 1px solid #b9e8cb;
  border-radius: 999px;
  color: var(--green-700);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  min-height: 34px;
  padding: 0 13px;
}

.auth-security-chip::before {
  background: var(--green-600);
  border-radius: 50%;
  content: "";
  height: 7px;
  margin-right: 8px;
  width: 7px;
}

.auth-standard-main {
  align-items: stretch;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(300px, .88fr) minmax(420px, 1.12fr);
  margin: 0 auto;
  max-width: 1220px;
  min-height: calc(100vh - 76px);
  padding: 46px 24px;
  width: 100%;
}

.auth-standard-aside {
  background:
    radial-gradient(circle at 86% 12%, rgba(24, 164, 86, .28), transparent 24%),
    linear-gradient(145deg, var(--blue-900), var(--blue-700));
  border-radius: 14px;
  box-shadow: var(--shadow);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 520px;
  overflow: hidden;
  padding: 52px;
  position: relative;
}

.auth-aside-mark {
  align-items: center;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 18px;
  display: flex;
  font-size: 30px;
  font-weight: 900;
  height: 66px;
  justify-content: center;
  margin-bottom: 28px;
  width: 66px;
}

.auth-aside-kicker {
  color: #aee3c2;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.auth-standard-aside h2 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.12;
  margin: 0;
  max-width: 440px;
}

.auth-standard-aside > p:not(.auth-aside-kicker) {
  color: #dce8fb;
  font-size: 16px;
  line-height: 1.6;
  margin: 20px 0 28px;
  max-width: 470px;
}

.auth-trust-list {
  display: grid;
  gap: 10px;
}

.auth-trust-list span {
  align-items: center;
  display: flex;
  font-size: 13px;
  font-weight: 700;
}

.auth-trust-list span::before {
  align-items: center;
  background: rgba(255, 255, 255, .14);
  border-radius: 50%;
  content: "✓";
  display: inline-flex;
  height: 24px;
  justify-content: center;
  margin-right: 10px;
  width: 24px;
}

.auth-standard-card {
  align-self: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 44px;
}

.auth-eyebrow {
  color: var(--green-700);
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  margin-bottom: 9px;
  text-transform: uppercase;
}

.auth-standard-card h1 {
  color: var(--blue-900);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
  margin: 0;
}

.auth-description {
  color: var(--muted);
  line-height: 1.55;
  margin: 12px 0 28px;
}

.auth-form-standard {
  display: grid;
  gap: 17px;
}

.auth-field {
  display: grid;
  gap: 7px;
}

.auth-field label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.auth-field input {
  background: #fbfdff;
  border: 1px solid #cbd7e8;
  border-radius: 9px;
  color: var(--ink);
  font: inherit;
  min-height: 50px;
  outline: 0;
  padding: 0 14px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  width: 100%;
}

.auth-field input::placeholder {
  color: #8997ad;
}

.auth-field input:focus {
  background: #fff;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(13, 91, 215, .13);
}

.auth-guidance {
  background: #eef4ff;
  border: 1px solid #d6e4f5;
  border-left: 4px solid var(--blue-600);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  padding: 13px 15px;
}

.auth-guidance strong {
  color: var(--blue-900);
  font-size: 13px;
}

.auth-guidance span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.auth-submit {
  margin-top: 2px;
  min-height: 50px;
  width: 100%;
}

.auth-alert {
  align-items: flex-start;
  border: 1px solid;
  border-radius: 9px;
  display: flex;
  font-size: 13px;
  gap: 10px;
  line-height: 1.45;
  margin-bottom: 20px;
  padding: 12px 14px;
}

.auth-alert-error {
  background: #fff2f2;
  border-color: #f0c2c2;
  color: #9b2525;
}

.auth-alert-success {
  background: #e8f8ef;
  border-color: #b9e8cb;
  color: var(--green-700);
}

.auth-alert-info {
  background: #eef4ff;
  border-color: #cbdcf7;
  color: var(--blue-700);
}

.auth-alert-icon {
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 22px;
  font-size: 12px;
  font-weight: 900;
  height: 22px;
  justify-content: center;
}

.auth-standard-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin: 24px 0 0;
  padding-top: 18px;
  text-align: center;
}

@media (max-width: 900px) {
  .auth-standard-main {
    grid-template-columns: 1fr;
    max-width: 680px;
    padding-top: 28px;
  }
  .auth-standard-aside {
    min-height: 280px;
    padding: 34px;
  }
  .auth-trust-list {
    grid-template-columns: repeat(3, 1fr);
  }
  .auth-trust-list span {
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .auth-standard-header {
    min-height: 68px;
    padding: 0 16px;
  }
  .auth-standard-header .brand {
    min-width: 0;
  }
  .auth-standard-header .brand-title {
    font-size: 26px;
  }
  .auth-standard-header .brand-subtitle {
    display: none;
  }
  .auth-security-chip {
    font-size: 11px;
  }
  .auth-standard-main {
    gap: 16px;
    padding: 18px 14px 28px;
  }
  .auth-standard-aside {
    min-height: 220px;
    padding: 26px;
  }
  .auth-aside-mark,
  .auth-trust-list {
    display: none;
  }
  .auth-standard-aside > p:not(.auth-aside-kicker) {
    margin-bottom: 0;
  }
  .auth-standard-card {
    padding: 26px 20px;
  }
}

/* Gestão Subprojetos (módulo nativo) */
.sp-app { background: var(--sigs-gray-50); min-height: 100vh; }
.sp-sidebar { background: var(--sigs-navy); color: #fff; min-height: 100vh; }
.sp-sidebar .brand { min-width: 0; }
.sp-sidebar .brand-mark { background: #fff; color: var(--sigs-navy); font-size: 14px; }
.sp-sidebar .brand-subtitle { color: #d5e4f1; }
.sp-nav { display: grid; gap: 5px; margin-top: 26px; }
.sp-nav a, .sp-nav button { background: transparent; border: 0; border-left: 3px solid transparent; color: #fff; cursor: pointer; font: inherit; padding: 11px 13px; text-align: left; width: 100%; }
.sp-nav a:hover, .sp-nav a:focus-visible, .sp-nav button:hover { background: rgba(255,255,255,.1); border-left-color: #d5e4f1; }
.sp-nav a.is-active { background: rgba(255,255,255,.16); border-left-color: #fff; font-weight: 700; }
.sp-nav a.is-active:hover, .sp-nav a.is-active:focus-visible { background: rgba(255,255,255,.2); }
.empty-state-guided { display: grid; gap: 10px; justify-items: start; padding: 28px 18px; text-align: left; }
.empty-state-guided strong { color: #1f4f7a; font-size: 16px; }
.empty-state-guided span { color: var(--muted); line-height: 1.5; max-width: 640px; }
.sp-nav .nav-section { color: #bcd0e2; font-size: 11px; font-weight: 900; letter-spacing: .1em; margin: 16px 13px 4px; text-transform: uppercase; }
.sp-nav .logout-form { border-top: 1px solid rgba(255,255,255,.18); margin-top: 18px; padding-top: 10px; }
.sp-content { max-width: 1500px; overflow: hidden; width: 100%; }
.sp-header h1 { color: #1f4f7a; font-size: 36px; margin: 3px 0 6px; }
.sp-header p { color: var(--muted); margin: 0; }
.sp-stats { grid-template-columns: repeat(5, minmax(130px, 1fr)); }
.sp-stats .stat { border-top: 4px solid #2563a8; }
.sp-dash-stats { grid-template-columns: repeat(4, minmax(150px, 1fr)); }
.sp-dash-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0;
}
.sp-finance-chart {
  margin: 16px 0;
  position: relative;
  overflow: visible;
  padding: 16px 18px 18px;
}
.sp-finance-chart.card {
  overflow: visible;
}
.sp-finance-chart__header {
  text-align: left;
  margin: 0 0 10px;
}
.sp-finance-chart__header .section-kicker {
  display: block;
  margin-bottom: 2px;
}
.sp-finance-chart__header h2 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--sigs-navy);
  font-weight: 700;
}
.sp-finance-chart__lead {
  color: var(--muted);
  margin: 4px 0 0;
  font-size: 0.9rem;
  line-height: 1.35;
  max-width: 44rem;
}
.sp-finance-chart__minis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 10px;
}
.sp-finance-chart__mini {
  background: var(--sigs-gray-50);
  border: 1px solid var(--sigs-gray-200);
  border-radius: var(--sigs-radius-sm);
  padding: 10px 12px;
  border-top: 3px solid var(--sigs-blue);
}
.sp-finance-chart__mini:nth-child(2) { border-top-color: var(--sigs-green); }
.sp-finance-chart__mini:nth-child(3) { border-top-color: var(--sigs-navy); }
.sp-finance-chart__mini.is-negative { border-top-color: var(--sigs-danger); }
.sp-finance-chart__mini-label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.sp-finance-chart__mini strong {
  font-size: 1.05rem;
  color: var(--sigs-text);
}
.sp-finance-chart__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
}
.sp-finance-chart__swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 5px;
  vertical-align: -1px;
  border-radius: 2px;
}
.sp-finance-chart__swatch--budget { background: var(--sigs-blue); }
.sp-finance-chart__swatch--cost { background: var(--sigs-green); }
.sp-finance-chart__badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  margin-right: 4px;
}
.sp-finance-chart__badge--negative {
  background: #fde8e6;
  color: var(--sigs-danger);
}
.sp-finance-chart__badge--no-budget {
  background: #fff4df;
  color: #9a6700;
}
.sp-finance-chart__badge--ok {
  background: var(--sigs-gray-100);
  color: var(--sigs-gray-500);
}
.sp-finance-chart__flags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}
.sp-finance-chart__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 96px;
  margin: 4px 0 8px;
  padding: 14px 12px;
  text-align: center;
  color: var(--muted);
  background: var(--sigs-gray-50);
  border: 1px dashed var(--sigs-gray-200);
  border-radius: var(--sigs-radius-sm);
}
.sp-finance-chart__empty[hidden] { display: none !important; }
.sp-finance-chart__empty-icon {
  color: var(--sigs-blue);
  opacity: 0.7;
  line-height: 0;
}
.sp-finance-chart__empty p {
  margin: 0;
  max-width: 28rem;
  font-size: 0.92rem;
  line-height: 1.4;
}
.sp-finance-chart__plot {
  position: relative;
  margin: 0 0 8px;
  overflow: visible;
}
.sp-finance-chart__plot[hidden] { display: none !important; }
.sp-finance-chart__svg-wrap {
  width: 100%;
  min-height: 240px;
  overflow-x: auto;
}
.sp-finance-chart__svg {
  display: block;
  width: 100%;
  height: auto;
  min-width: 260px;
}
.sp-finance-chart__grid {
  stroke: var(--sigs-gray-200);
  stroke-width: 1;
}
.sp-finance-chart__axis {
  fill: var(--sigs-gray-500);
  font-size: 10px;
  font-family: var(--sigs-font);
}
.sp-finance-chart__value {
  font-size: 9px;
  font-family: var(--sigs-font);
  font-weight: 600;
}
.sp-finance-chart__value--budget { fill: var(--sigs-blue); }
.sp-finance-chart__value--cost { fill: var(--sigs-green-dark); }
.sp-finance-chart__bar {
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.sp-finance-chart__bar:hover,
.sp-finance-chart__bar:focus {
  opacity: 0.88;
  outline: none;
}
.sp-finance-chart__bar--budget { fill: var(--sigs-blue); }
.sp-finance-chart__bar--cost { fill: var(--sigs-green); }
.sp-finance-chart__svg-badge rect { stroke: none; }
.sp-finance-chart__svg-badge text {
  fill: #fff;
  font-size: 8px;
  font-weight: 700;
  font-family: var(--sigs-font);
}
.sp-finance-chart__svg-badge--negative rect { fill: var(--sigs-danger); }
.sp-finance-chart__svg-badge--no-budget rect { fill: #c6891f; }
.sp-finance-chart__tip {
  position: absolute;
  z-index: 6;
  max-width: 210px;
  padding: 7px 9px;
  border-radius: var(--sigs-radius-sm);
  background: var(--sigs-navy);
  color: #fff;
  font-size: 11px;
  line-height: 1.35;
  box-shadow: var(--sigs-shadow);
  pointer-events: none;
}
.sp-finance-chart__tip strong {
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
}
.sp-finance-chart__tip-flag {
  color: #f6c343;
  font-weight: 600;
}
.sp-finance-chart__table-wrap {
  margin-top: 8px;
  overflow-x: auto;
}
.sp-finance-chart__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.sp-finance-chart__table th,
.sp-finance-chart__table td {
  border-top: 1px solid var(--sigs-gray-200);
  padding: 8px 10px;
  text-align: left;
}
.sp-finance-chart__table thead th {
  background: var(--sigs-navy);
  color: #fff;
  border-top: 0;
  font-size: 12px;
}
.sp-finance-chart__table tfoot th,
.sp-finance-chart__table tfoot td {
  font-weight: 700;
  background: var(--sigs-gray-50);
}
.sp-finance-chart__available-note {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--sigs-text);
}
.sp-finance-chart__cards {
  display: none;
  gap: 10px;
  margin-top: 10px;
}
.sp-finance-chart__card {
  border: 1px solid var(--sigs-gray-200);
  border-radius: var(--sigs-radius-sm);
  padding: 12px;
  background: var(--sigs-white);
}
.sp-finance-chart__card header {
  display: grid;
  gap: 2px;
  margin-bottom: 8px;
}
.sp-finance-chart__card header strong {
  color: var(--sigs-navy);
  font-size: 0.95rem;
}
.sp-finance-chart__card header span {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.35;
}
.sp-finance-chart__card dl {
  margin: 0 0 8px;
  display: grid;
  gap: 6px;
}
.sp-finance-chart__card dl div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.85rem;
}
.sp-finance-chart__card dt {
  color: var(--muted);
  margin: 0;
}
.sp-finance-chart__card dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}
.sp-alert-list { list-style: none; margin: 0; padding: 0; }
.sp-alert-item {
  border-left: 4px solid #2563a8;
  background: #f5f9fc;
  margin: 0 0 8px;
  padding: 10px 12px;
}
.sp-alert-item.is-critical { border-left-color: #c83a3a; background: #fff5f5; }
.sp-alert-item.is-warning { border-left-color: #e59b19; background: #fff9ef; }
.sp-alert-item.is-info { border-left-color: #2563a8; }
.sp-due-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 12px;
  color: var(--muted);
}
.sp-intro .row-actions { margin-top: 12px; gap: 10px; }
.inline { display: inline-flex; align-items: center; gap: 6px; margin-right: 12px; }
.sp-intro { margin: 18px 0; }
.sp-intro h2 { color: #1f4f7a; margin: 4px 0 8px; }
.sp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sp-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
  width: 100%;
}
.sp-compare-grid > .card {
  min-width: 0;
  width: 100%;
}
.sp-compare-table {
  min-width: 0 !important;
  width: 100%;
  table-layout: fixed;
}
.sp-compare-table th:first-child,
.sp-compare-table td:first-child {
  width: 44%;
}
.sp-compare-table th:last-child,
.sp-compare-table td:last-child {
  width: 56%;
  word-break: break-word;
}
.sp-compare-grid .table-wrap {
  overflow-x: auto;
  max-width: 100%;
}
.readonly-grid > div { display: grid; gap: 4px; }
.readonly-grid > div span { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.readonly-grid > div strong { font-size: 15px; }

.modern-form-grid input[type="checkbox"],
.scholar-filter-form input[type="checkbox"],
.sp-app input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  min-height: 0;
  min-width: 1rem;
  margin: 0;
  padding: 0;
  border-radius: 3px;
  flex-shrink: 0;
}
.modern-form-grid label.sp-check {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: 600;
  line-height: 1.35;
  grid-column: 1 / -1;
}
.modern-form-grid label.sp-check input[type="checkbox"] {
  margin-top: 0.15rem;
}

@media (max-width: 1100px) {
  .sp-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sp-dash-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-dash-panels { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .sp-sidebar { min-height: auto; }
  .sp-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 14px; }
  .sp-nav .nav-section { display: none; }
  .sp-stats, .sp-grid, .sp-compare-grid, .sp-dash-panels, .sp-dash-stats { grid-template-columns: 1fr; }
  .sp-content { padding: 18px 14px; }
  .sp-finance-chart__svg-wrap { min-height: 220px; }
  .sp-finance-chart__legend { gap: 8px 12px; font-size: 11px; }
  .sp-finance-chart__minis { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .sp-finance-chart__table-wrap { display: none; }
  .sp-finance-chart__cards {
    display: grid;
    grid-template-columns: 1fr;
  }
  .sp-finance-chart__header h2 { font-size: 1.05rem; }
  .sp-finance-chart__minis { grid-template-columns: 1fr; }
}
