/* ===== Variáveis base ===== */
:root {
  --color-primary: #0062a8;
  --color-primary-light: #0b7fcf;
  --color-secondary: #00a887;
  --color-accent: #ffc857;
  --color-bg: #f5f7fb;
  --color-bg-alt: #ffffff;
  --color-border: #dde3f0;
  --color-text: #1f2933;
  --color-text-muted: #6b7280;

  --radius-lg: 1.5rem;
  --radius-md: 1rem;
  --radius-pill: 999px;

  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
  --shadow-subtle: 0 10px 30px rgba(15, 23, 42, 0.05);

  --max-width: 1120px;
}

/* ===== Reset básico ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top left, #e0f2ff 0, #f5f7fb 40%, #f5f7fb 100%);
  color: var(--color-text);
}

/* ===== Topbar ===== */
.topbar {
  background: linear-gradient(90deg, var(--color-primary), #004578);
  color: #e5efff;
  font-size: 0.8rem;
  padding: 0.4rem 1.5rem;
  text-align: center;
}

/* ===== Navbar ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-img {
  height: 2.4rem;         /* ajuste o tamanho conforme a proporção do svg */
  width: auto;
  display: block;
}


.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-weight: 650;
  font-size: 1rem;
}

.logo-subtitle {
  font-size: 0.7rem;
  color: var(--color-text-muted);
}

/* Menu */
.navbar__menu {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.navbar__menu a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-pill);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.navbar__menu a:hover {
  background: rgba(15, 118, 190, 0.08);
  color: var(--color-primary);
  transform: translateY(-1px);
}

.nav-home-link {
  width: 2rem;
  height: 2rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #c9d9ee;
  color: var(--color-primary);
}

/* Toggle mobile */
.navbar__toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #ffffff;
  border: 1px solid #c8d9ee;
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  margin-left: 0.8rem;
}

.navbar__toggle span {
  width: 20px;
  height: 2px;
  background: #111827;
  border-radius: 999px;
}

.navbar__right {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.system-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid #c8d9ee;
  background: #ffffff;
  color: var(--color-primary);
  border-radius: var(--radius-pill);
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.system-menu-toggle:hover {
  background: #edf5ff;
}

.system-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 70;
}

.system-panel-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.system-panel {
  position: fixed;
  top: 0;
  right: -360px;
  width: min(92vw, 340px);
  height: 100vh;
  background: #ffffff;
  box-shadow: -22px 0 45px rgba(15, 23, 42, 0.2);
  border-left: 1px solid #e5edf6;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: right 0.22s ease;
  z-index: 71;
}

.system-panel.open {
  right: 0;
}

.system-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e6eef8;
  padding-bottom: 0.7rem;
}

.system-panel__header h3 {
  margin: 0;
  font-size: 1.25rem;
}

.system-panel__close {
  border: 1px solid #d4e0ee;
  background: #fff;
  color: #334155;
  border-radius: 10px;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.system-panel__nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.system-nav-btn,
.system-submenu-btn {
  text-decoration: none;
  color: #1f2933;
  border: 1px solid #d9e5f4;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  background: #fff;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.system-nav-btn:hover,
.system-submenu-btn:hover {
  background: #f4f9ff;
}

.system-nav-btn i,
.system-submenu-btn i {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eaf2ff;
  color: #0b63ad;
  font-size: 0.82rem;
  line-height: 1;
  flex: 0 0 1.5rem;
}

.system-nav-btn--submenu {
  justify-content: space-between;
}

.system-submenu {
  display: none;
  flex-direction: column;
  gap: 0.4rem;
  padding-left: 0.9rem;
}

.system-submenu.open {
  display: flex;
}

.system-panel__note {
  margin: 0.2rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

body.system-menu-open {
  overflow: hidden;
}

.workspace {
  max-width: min(1760px, calc(100vw - 1rem));
  margin: 0 auto 2rem;
  padding: 1.25rem 0.5rem 0;
}

.workspace__top {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.workspace__back {
  border: 1px solid #c8daee;
  background: #fff;
  color: #28435d;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  font-weight: 600;
}

.workspace__top h2 {
  margin: 0;
  text-align: center;
}

.workspace-screen {
  display: none;
}

.workspace-screen.active {
  display: block;
}

.module-card {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid #cfe0f2;
  border-radius: 1.45rem;
  padding: 2rem 1.65rem 1.65rem;
  box-shadow: 0 26px 52px rgba(15, 23, 42, 0.14);
  position: relative;
  overflow: hidden;
  max-width: 980px;
  margin: 0 auto;
}

.module-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 68px;
  background: linear-gradient(110deg, #0a4f8a 0%, #0b63ad 45%, #1a79bf 100%);
  opacity: 1;
}

.module-card::after {
  content: none;
}

.module-card--login {
  max-width: 620px;
  margin: 0 auto;
  padding-top: 2.35rem;
}

.module-card--first-access {
  max-width: 680px;
  padding-top: 2rem;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.16), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
}

.module-card h3,
.module-card h4 {
  text-align: center;
  margin-top: 0.2rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.module-card h3 {
  font-size: 1.45rem;
  margin-top: 1.2rem;
  margin-bottom: 1.15rem;
  color: #0f2742;
}

.module-card--login h3 {
  margin-top: 0.45rem;
}

.module-card--first-access h3 {
  margin-top: 0.2rem;
  margin-bottom: 0.6rem;
  font-size: 1.75rem;
}

.first-access-copy {
  margin: 0 auto 1.1rem;
  max-width: 540px;
  text-align: center;
  color: #4f6882;
  line-height: 1.5;
}

/* Titulo dentro da barra azul apenas nos formularios principais */
.workspace-screen[data-screen-id="form-host"] .module-card,
.workspace-screen[data-screen-id="form-candidate"] .module-card {
  padding-top: 5.6rem;
}

.workspace-screen[data-screen-id="form-host"] .module-card h3,
.workspace-screen[data-screen-id="form-candidate"] .module-card h3 {
  position: absolute;
  top: 1.35rem;
  left: 0;
  width: 100%;
  margin: 0;
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
}

.module-card h4 {
  margin-top: 0.2rem;
  padding-top: 0.5rem;
  font-size: 1.05rem;
  color: #23435f;
  border-top: 1px dashed #d7e5f4;
}

.module-form {
  display: grid;
  gap: 1rem;
}

.module-form label {
  display: grid;
  gap: 0.42rem;
  font-size: 0.87rem;
  color: #294766;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.01em;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.module-form input,
.module-form textarea,
.module-form select {
  border: 1px solid #c9d9ea;
  border-radius: 12px;
  padding: 0.72rem 0.92rem;
  font: inherit;
  font-weight: 400;
  background: #ffffff;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03), 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, background 0.2s ease;
}

.prefill-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: center;
}

.btn-prefill {
  min-width: auto;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
}

.module-form textarea {
  min-height: 108px;
  border-radius: 16px;
  resize: vertical;
}

.module-form input:focus,
.module-form textarea:focus,
.module-form select:focus {
  outline: none;
  border-color: #2f7fbe;
  box-shadow: 0 0 0 4px rgba(47, 127, 190, 0.15), 0 8px 18px rgba(47, 127, 190, 0.14);
  background: #fbfeff;
  transform: translateY(-1px);
}

.module-form input.progestao-input--none {
  color: #c62828;
  font-weight: 600;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

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

.check-grid-simple {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 0.8rem;
}

.check-grid-simple label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1px solid #d8e5f3;
  border-radius: 11px;
  padding: 0.55rem 0.7rem;
  font-weight: 500;
}

.check-grid-simple input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: #0b63ad;
}

.module-form small {
  text-align: center;
  color: #4a6480;
  font-weight: 500;
}

.first-access-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.module-form .first-access-actions .btn {
  min-width: 220px;
  margin-top: 0;
}

.btn-back-login {
  border-color: #bfd3e8;
  color: #24527a;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(36, 82, 122, 0.08);
}

.btn-back-login:hover {
  border-color: #96b7d7;
  background: #f5fbff;
}

.form-block-note {
  margin: -0.35rem 0 0.2rem;
  font-size: 0.9rem;
  color: #5a7088;
}

.dynamic-field-block {
  border: 1px solid #d8e6f4;
  border-radius: 14px;
  background: linear-gradient(180deg, #fcfeff 0%, #f3f9ff 100%);
  padding: 0.7rem;
  display: grid;
  gap: 0.65rem;
}

.dynamic-field-title {
  font-size: 0.84rem;
  color: #46627f;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dynamic-list {
  display: grid;
  gap: 0.55rem;
}

.dynamic-list__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
}

.dynamic-list__row input {
  border: 1px solid #c7d8ec;
  border-radius: 999px;
  padding: 0.66rem 0.92rem;
  font: inherit;
  background: #ffffff;
}

.host-area-row {
  grid-template-columns: minmax(0, 1.6fr) minmax(120px, 0.5fr) auto;
}

.apply-participant-row {
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
}

.modal-inline-form {
  gap: 0.9rem;
}

.modal-inline-form h4 {
  margin: 0.25rem 0 0;
  text-align: left;
}

.candidate-apply-form {
  max-width: 100%;
}

.apply-participant-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(220px, 0.9fr);
  gap: 1rem;
  align-items: start;
}

.apply-participant-editor {
  display: grid;
  gap: 0.8rem;
}

.apply-participant-fields {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
}

.apply-participant-fields input {
  border: 1px solid #c7d8ec;
  border-radius: 999px;
  padding: 0.66rem 0.92rem;
  font: inherit;
  background: #ffffff;
}

.apply-folder-list {
  display: grid;
  gap: 0.5rem;
  align-content: start;
}

.apply-folder-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: center;
}

.apply-folder {
  border: 1px solid #d5e3f0;
  border-radius: 16px;
  background: #ffffff;
  padding: 0.7rem 0.85rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.apply-folder:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.apply-folder.is-active {
  border-color: #7fb0dd;
  box-shadow: 0 16px 28px rgba(24, 87, 148, 0.14);
}

.apply-folder__icon {
  font-size: 1.4rem;
  line-height: 1;
}

.apply-folder__name {
  min-width: 0;
  color: #183754;
  font-weight: 700;
}

.apply-folder__status {
  color: #4a6480;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.apply-folder-remove {
  width: 2rem;
  height: 2rem;
  border: 1px solid #d3deea;
  border-radius: 999px;
  background: #ffffff;
  color: #4d637b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.apply-folder-remove:hover {
  border-color: #ef4444;
  color: #b91c1c;
  background: #fff5f5;
}

.apply-folder--yellow .apply-folder__icon {
  color: #f2b633;
}

.apply-folder--blue .apply-folder__icon {
  color: #1f7bc1;
}

.apply-folder--orange .apply-folder__icon {
  color: #f25c2a;
}

.apply-folder--green .apply-folder__icon {
  color: #48a23f;
}

.apply-folder--red .apply-folder__icon {
  color: #dc4b4b;
}

.apply-folder--teal .apply-folder__icon {
  color: #0f9aa8;
}

.apply-areas-block {
  display: grid;
  gap: 0.8rem;
}

.apply-areas-summary {
  display: flex;
  gap: 0.55rem 1rem;
  flex-wrap: wrap;
  color: #20384f;
  line-height: 1.5;
}

.apply-area-summary__item strong {
  color: #0f3557;
}

.apply-areas-selection {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 1rem;
}

.apply-area-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  border: 1px solid #d6e3f0;
  border-radius: 14px;
  background: #ffffff;
  padding: 0.8rem 0.85rem;
  color: #1b3853;
}

.apply-area-option.is-selected {
  border-color: #86b8e5;
  background: #f3f9ff;
}

.apply-area-option.is-disabled {
  opacity: 0.58;
}

.apply-area-option input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: #0b63ad;
}

.apply-area-option strong {
  font-size: 0.88rem;
  color: #0f3557;
}

.dynamic-remove-btn {
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid #c8d9ec;
  border-radius: 999px;
  background: #ffffff;
  color: #47607d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dynamic-remove-btn:hover:not(:disabled) {
  border-color: #ef4444;
  color: #b91c1c;
  background: #fff5f5;
}

.dynamic-add-btn {
  justify-self: start;
  padding-inline: 0.95rem;
  min-width: auto;
}

.module-feedback {
  margin: 0.15rem 0 0;
  font-weight: 600;
  text-align: center;
}

.module-form .btn-primary {
  justify-self: center;
  min-width: 250px;
  margin-top: 0.35rem;
  border-radius: 999px;
  box-shadow: 0 14px 28px rgba(11, 99, 173, 0.28);
}

.module-note {
  margin-top: 0.3rem;
  border: 1px solid #d8e4f0;
  border-radius: 10px;
  padding: 0.65rem;
  background: #f8fbff;
}

.list-box {
  border: 1px dashed #c6d7ea;
  border-radius: 10px;
  padding: 0.75rem;
  display: grid;
  gap: 0.6rem;
}

.workspace-env {
  padding-top: 1.3rem;
  overflow: visible;
}

.workspace-screen[data-screen-id="admin-area"] .module-card,
.workspace-screen[data-screen-id="host-area"] .module-card,
.workspace-screen[data-screen-id="candidate-area"] .module-card {
  max-width: min(1520px, calc(100vw - 1rem));
}

.workspace-screen[data-screen-id="admin-area"] .module-card {
  max-width: min(1760px, calc(100vw - 1rem));
  padding-left: 1.15rem;
  padding-right: 1.15rem;
}

.workspace-env::before {
  content: none;
}

.workspace-profile {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
  margin-bottom: 1rem;
}

.workspace-profile img {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e5eff8;
  background: #fff;
}

.workspace-profile__pair {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.workspace-profile__pair img + img {
  margin-left: -16px;
}

.workspace-profile strong {
  font-size: 1rem;
  line-height: 1.15;
  color: #0f2742;
}

#hostProfileMeta {
  display: grid;
  gap: 0.2rem;
  justify-items: center;
}

#candidateProfileMeta {
  display: grid;
  gap: 0.2rem;
  justify-items: center;
  max-width: 280px;
}

.candidate-profile__entity {
  display: block;
  text-align: center;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.host-profile__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.18rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 700;
}

.host-profile__status--aceito {
  background: #e9f8ef;
  color: #1b8f4d;
}

.host-profile__status--ativo {
  background: #e9f8ef;
  color: #1b8f4d;
}

.host-profile__status--rejeitado {
  background: #fff0f0;
  color: #c03434;
}

.host-profile__status--pendente {
  background: #fff6e8;
  color: #b86a00;
}

.host-profile__visibility {
  color: #4d637b;
  font-size: 0.8rem;
}

#hostAdminMessageSlot {
  display: none;
}

.host-admin-mail {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow: visible;
}

.host-admin-mail.is-unread {
  animation: host-mail-pulse 1s ease-in-out infinite;
}

.host-admin-mail.is-read {
  border-color: #cfd8e3;
  background: #f8fafc;
  color: #8a5a00;
  animation: none;
  box-shadow: 0 6px 12px rgba(143, 116, 27, 0.12);
}

.host-admin-mail__badge {
  position: absolute;
  top: -0.45rem;
  right: -0.45rem;
  background: #1b8f4d;
  color: #fff;
  border-radius: 999px;
  padding: 0.14rem 0.42rem;
  font-size: 0.68rem;
  font-weight: 700;
  box-shadow: 0 10px 18px rgba(27, 143, 77, 0.16);
}

@keyframes host-mail-pulse {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 0 0 rgba(255, 91, 61, 0.3);
  }
  50% {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 0 0 10px rgba(255, 91, 61, 0);
  }
}

.workspace-profile .btn {
  min-width: 92px;
  padding: 0.42rem 1rem;
  border-radius: 999px;
}

/* Bloco de perfil do admin fiel ao mock, sem comprimir a tabela */
.workspace-screen[data-screen-id="admin-area"] .workspace-env {
  padding-top: 1.4rem;
}

.workspace-screen[data-screen-id="host-area"] .workspace-env,
.workspace-screen[data-screen-id="candidate-area"] .workspace-env {
  padding-top: 1.4rem;
}

.workspace-screen[data-screen-id="admin-area"] .workspace-profile {
  align-items: center;
  text-align: center;
  gap: 0.38rem;
  margin: 0 0 0.9rem auto;
  width: fit-content;
}

.workspace-screen[data-screen-id="host-area"] .workspace-profile,
.workspace-screen[data-screen-id="candidate-area"] .workspace-profile {
  align-items: center;
  text-align: center;
  gap: 0.38rem;
  margin: 0 0 0.9rem auto;
  width: fit-content;
}

.workspace-screen[data-screen-id="admin-area"] .workspace-profile img {
  width: 102px;
  height: 102px;
}

.workspace-screen[data-screen-id="host-area"] .workspace-profile img,
.workspace-screen[data-screen-id="candidate-area"] .workspace-profile img {
  width: 102px;
  height: 102px;
}

.workspace-screen[data-screen-id="candidate-area"] .workspace-profile__pair img {
  width: 102px;
  height: 102px;
}

.workspace-screen[data-screen-id="admin-area"] .workspace-profile strong {
  font-size: 1.05rem;
  font-weight: 700;
}

.workspace-screen[data-screen-id="host-area"] .workspace-profile strong,
.workspace-screen[data-screen-id="candidate-area"] .workspace-profile strong {
  font-size: 1.05rem;
  font-weight: 700;
}

.workspace-screen[data-screen-id="admin-area"] .workspace-profile .btn {
  background: #ff4a26;
  border-color: #ff4a26;
  color: #fff;
  min-width: 108px;
}

.workspace-screen[data-screen-id="host-area"] .workspace-profile .btn,
.workspace-screen[data-screen-id="candidate-area"] .workspace-profile .btn {
  background: #ff4a26;
  border-color: #ff4a26;
  color: #fff;
  min-width: 108px;
}

.workspace-screen[data-screen-id="admin-area"] .workspace-profile .btn:hover {
  background: #e64020;
  border-color: #e64020;
}

.workspace-screen[data-screen-id="host-area"] .workspace-profile .btn:hover,
.workspace-screen[data-screen-id="candidate-area"] .workspace-profile .btn:hover {
  background: #e64020;
  border-color: #e64020;
}

/* Admin com mais largura e sem esmagar botões */
.workspace-screen[data-screen-id="admin-area"] .table-wrap {
  overflow-x: auto;
}

.workspace-screen[data-screen-id="admin-area"] .env-table {
  min-width: 1480px;
}

.env-block {
  margin-top: 1rem;
  border-top: 1px dashed #d7e4f1;
  padding-top: 1rem;
}

.env-block h3 {
  margin: 0 0 0.75rem;
  text-align: left;
  color: #0b4f8a;
}

.env-tools {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.search-field {
  display: grid;
  gap: 0.25rem;
  font-size: 0.82rem;
  color: #244463;
  font-weight: 600;
}

.search-field input {
  min-width: 280px;
  border: 1px solid #c9d9ea;
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.search-input-wrap i {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ff5a2e;
  font-size: 1.12rem;
  flex: 0 0 24px;
}

.search-input-wrap input {
  min-width: 240px;
}

.search-count {
  color: #cd2f2f;
  font-size: 0.85rem;
  font-weight: 600;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid #d9e6f3;
  border-radius: 12px;
  background: #fff;
}

.table-wrap--limited {
  max-height: 286px;
  overflow-y: auto;
}

.table-wrap--limited thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.env-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1180px;
  table-layout: fixed;
}

.env-table th,
.env-table td {
  border-bottom: 1px solid #edf3f9;
  padding: 0.58rem 0.5rem;
  font-size: 0.8rem;
  text-align: left;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.env-table th {
  color: #1f3f60;
  background: #f5f9fd;
  font-weight: 700;
}

.env-table td {
  color: #20384f;
}

.env-table th:first-child,
.env-table td:first-child {
  width: 42px;
  text-align: center;
}

.env-table th:nth-child(2),
.env-table td:nth-child(2) {
  width: 110px;
}

.action-group {
  display: flex;
  gap: 0.35rem;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.icon-btn-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.btn-sm {
  min-width: auto;
  padding: 0.45rem 0.75rem;
  font-size: 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}

.btn-action-accept {
  background: #44a834;
  border: 1px solid #44a834;
  color: #fff;
  min-width: 92px;
}

.btn-action-accept:hover {
  background: #38912b;
  border-color: #38912b;
  color: #fff;
}

.btn-action-reject {
  background: #f04a1f;
  border: 1px solid #f04a1f;
  color: #fff;
  min-width: 86px;
}

.btn-action-reject:hover {
  background: #d9431b;
  border-color: #d9431b;
  color: #fff;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: transform 0.14s ease, filter 0.14s ease;
  transform: translateZ(0) scale(1);
}

.icon-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.icon-btn:hover {
  transform: translateY(-1px) scale(1.06);
  filter: brightness(1.04);
}

.icon-btn:active {
  transform: translateY(1px) scale(0.94);
  filter: brightness(0.96);
}

.workspace-screen[data-screen-id="admin-area"] .env-table th:nth-child(8),
.workspace-screen[data-screen-id="admin-area"] .env-table th:nth-child(9),
.workspace-screen[data-screen-id="admin-area"] .env-table th:nth-child(10),
.workspace-screen[data-screen-id="admin-area"] .env-table th:nth-child(11),
.workspace-screen[data-screen-id="admin-area"] .env-table td:nth-child(8),
.workspace-screen[data-screen-id="admin-area"] .env-table td:nth-child(9),
.workspace-screen[data-screen-id="admin-area"] .env-table td:nth-child(10),
.workspace-screen[data-screen-id="admin-area"] .env-table td:nth-child(11) {
  text-align: center;
  vertical-align: middle;
}

.workspace-screen[data-screen-id="host-area"] .env-table th:nth-child(7),
.workspace-screen[data-screen-id="host-area"] .env-table th:nth-child(8),
.workspace-screen[data-screen-id="host-area"] .env-table th:nth-child(9),
.workspace-screen[data-screen-id="host-area"] .env-table th:nth-child(10),
.workspace-screen[data-screen-id="host-area"] .env-table td:nth-child(7),
.workspace-screen[data-screen-id="host-area"] .env-table td:nth-child(8),
.workspace-screen[data-screen-id="host-area"] .env-table td:nth-child(9),
.workspace-screen[data-screen-id="host-area"] .env-table td:nth-child(10) {
  text-align: center;
  vertical-align: middle;
}

.workspace-screen[data-screen-id="candidate-area"] .env-table th:nth-child(6),
.workspace-screen[data-screen-id="candidate-area"] .env-table th:nth-child(7),
.workspace-screen[data-screen-id="candidate-area"] .env-table th:nth-child(8),
.workspace-screen[data-screen-id="candidate-area"] .env-table th:nth-child(9),
.workspace-screen[data-screen-id="candidate-area"] .env-table td:nth-child(6),
.workspace-screen[data-screen-id="candidate-area"] .env-table td:nth-child(7),
.workspace-screen[data-screen-id="candidate-area"] .env-table td:nth-child(8),
.workspace-screen[data-screen-id="candidate-area"] .env-table td:nth-child(9) {
  text-align: center;
  vertical-align: middle;
}

.workspace-screen[data-screen-id="candidate-area"] .env-table th:first-child,
.workspace-screen[data-screen-id="candidate-area"] .env-table td:first-child {
  width: 150px;
}

.workspace-screen[data-screen-id="candidate-area"] .env-table th:nth-child(2),
.workspace-screen[data-screen-id="candidate-area"] .env-table td:nth-child(2) {
  width: 290px;
}

.workspace-screen[data-screen-id="candidate-area"] .env-table th:nth-child(3),
.workspace-screen[data-screen-id="candidate-area"] .env-table td:nth-child(3) {
  width: 190px;
}

.workspace-screen[data-screen-id="candidate-area"] .env-table th:nth-child(4),
.workspace-screen[data-screen-id="candidate-area"] .env-table td:nth-child(4) {
  width: 56px;
}

.workspace-screen[data-screen-id="candidate-area"] .env-table th:nth-child(5),
.workspace-screen[data-screen-id="candidate-area"] .env-table td:nth-child(5) {
  width: 270px;
}

.status {
  font-weight: 700;
}

.status--ok {
  color: #1c9a44;
}

.status--bad {
  color: #db2f2f;
}

.status--pending {
  color: #7263e9;
}

.feedback-mail-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff7d6 0%, #ffe18c 100%);
  color: #b86b00;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(184, 107, 0, 0.22);
}

.feedback-mail-btn.is-unread {
  animation: feedback-pulse 1.5s ease-in-out infinite;
}

.feedback-mail-btn.is-read {
  border: 1px solid #cfd8e3;
  background: #f8fafc;
  color: #8a5a00;
  animation: none;
  box-shadow: 0 6px 12px rgba(143, 116, 27, 0.12);
}

.feedback-mail-btn__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 0.2rem;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@keyframes feedback-pulse {
  0%, 100% {
    box-shadow: 0 8px 18px rgba(184, 107, 0, 0.22);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 8px 18px rgba(184, 107, 0, 0.3), 0 0 0 6px rgba(255, 196, 79, 0.18);
    transform: scale(1.05);
  }
}

.host-region-list {
  display: block;
  width: 100%;
}

.host-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 1rem;
  row-gap: 1.65rem;
  width: 100%;
  align-items: start;
}

.host-region-group {
  display: grid;
  gap: 0.8rem;
  width: 100%;
}

.host-region-group + .host-region-group {
  margin-top: 1.1rem;
}

.host-region-group__title {
  margin: 0;
  padding-bottom: 0.45rem;
  border-bottom: 1px dashed #cfe0f1;
  color: #0f4f87;
  font-size: 1rem;
  width: 100%;
}

.host-card {
  position: relative;
  border: 1px solid #d7e5f2;
  border-radius: 12px;
  padding: 0.65rem;
  background: #f7fbff;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  cursor: pointer;
  align-self: start;
  min-height: 350px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.host-card:hover {
  transform: translateY(-6px);
  border-color: #b9d0e8;
  box-shadow: 0 18px 32px rgba(15, 35, 58, 0.12);
}

.host-card:active {
  transform: translateY(1px) scale(0.99);
}

.host-card.host-card--expanded {
  z-index: 20;
}

.host-card.host-card--full {
  background: linear-gradient(180deg, #f1f3f5 0%, #e4e8ec 100%);
  border-color: #c8d0d8;
  cursor: default;
}

.host-card.host-card--full:hover {
  transform: none;
  border-color: #c8d0d8;
  box-shadow: none;
}

.host-card.host-card--full .host-card__meta-label,
.host-card.host-card--full h4,
.host-card.host-card--full p,
.host-card.host-card--full .host-card__area-row,
.host-card.host-card--full .host-card__area-vacancies {
  color: #5d6670;
}

.host-card h4 {
  margin: 0;
  text-align: left;
  font-size: 0.96rem;
  min-height: 2.5em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.host-card p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
}

.host-card > p:first-of-type {
  min-height: 1.4em;
}

.host-card__meta-label {
  font-weight: 700;
  color: #173a5c;
}

.host-card__areas {
  display: grid;
  gap: 0.32rem;
  min-height: 88px;
}

.host-card__areas-head,
.host-card__area-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: start;
}

.host-card__areas-head {
  padding-top: 0.1rem;
  font-size: 0.68rem;
  line-height: 1.1;
}

.host-card__area-row {
  font-size: 0.78rem;
  color: #20384f;
}

.host-card__area-name {
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.host-card__area-vacancies {
  text-align: right;
  font-weight: 600;
  color: #173a5c;
  white-space: nowrap;
}

.host-card__areas-more {
  display: grid;
  gap: 0.32rem;
  padding: 0.6rem 0.7rem 0.7rem;
  border: 1px solid #cddff1;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(239, 246, 253, 0.9);
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  transition: max-height 0.24s ease, opacity 0.2s ease, margin-top 0.2s ease, padding 0.2s ease;
}

.host-card.host-card--expanded .host-card__areas-more {
  opacity: 1;
  max-height: 320px;
  margin-top: 0.35rem;
  padding-top: 0.6rem;
  padding-bottom: 0.7rem;
}

.host-card__toggle {
  justify-self: start;
  border: 0;
  background: transparent;
  color: #0b63ad;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
}

.host-card__toggle:hover {
  color: #084f89;
  text-decoration: underline;
}

.host-card__areas-empty {
  color: #5a7088;
}

.host-card .btn-primary {
  margin-top: auto;
}

.host-card.host-card--full .btn-primary,
.host-card .btn-primary:disabled {
  background: #98a2ad;
  border-color: #98a2ad;
  box-shadow: none;
  cursor: not-allowed;
}

.progestao-level {
  font-weight: 700;
  color: #0a6b43;
}

.progestao-level--none {
  color: #cc2a2a;
}

.host-card__flag {
  width: 100%;
  height: 86px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 10px;
}

.data-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.data-modal[hidden] {
  display: none !important;
}

.data-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 21, 34, 0.58);
}

.data-modal__dialog {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100vw - 2rem));
  margin: 0;
  border-radius: 20px;
  border: 1px solid #cee0f2;
  background: #fff;
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  box-shadow: 0 28px 56px rgba(15, 23, 42, 0.32);
  animation: modal-pop-in 0.2s ease-out;
}

@keyframes modal-pop-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.data-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1.2rem;
  border-bottom: 1px solid #e2ebf4;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5fc 100%);
}

.data-modal[data-modal-variant="message"] .data-modal__dialog {
  width: min(460px, calc(100vw - 2rem));
  max-height: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 251, 255, 0.97) 100%);
  border: 1px solid rgba(208, 224, 239, 0.95);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.22);
  position: relative;
  border-radius: 24px;
}

.data-modal[data-modal-variant="message"] .data-modal__header {
  justify-content: flex-end;
  padding: 0;
  border-bottom: 0;
  background: transparent;
}

.data-modal[data-modal-variant="message"] .data-modal__header h3 {
  display: none;
}

.data-modal[data-modal-variant="message"] .data-modal__close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #254766;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.data-modal[data-modal-variant="message"] .data-modal__body {
  padding: 1.25rem 1rem 1rem;
}

.data-modal__header h3 {
  margin: 0;
  color: #0f3557;
  font-size: 1.2rem;
}

.data-modal__close {
  border: 0;
  background: transparent;
  font-size: 1.35rem;
  cursor: pointer;
  color: #304f6d;
}

.data-modal__body {
  padding: 1rem;
  overflow: auto;
}

.toast-container {
  position: fixed;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 1450;
  display: grid;
  gap: 0.75rem;
  width: min(360px, calc(100vw - 1.5rem));
  pointer-events: none;
}

.toast {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.8rem;
  align-items: start;
  padding: 0.9rem 0.95rem;
  border-radius: 18px;
  border: 1px solid #d7e4f2;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 34px rgba(15, 23, 42, 0.16);
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 0.18s ease, opacity 0.18s ease;
  pointer-events: auto;
}

.toast--visible {
  transform: translateY(0);
  opacity: 1;
}

.toast--leaving {
  transform: translateY(-8px);
  opacity: 0;
}

.toast__icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.toast__copy strong {
  display: block;
  margin-bottom: 0.15rem;
  color: #103250;
  font-size: 0.95rem;
}

.toast__copy p {
  margin: 0;
  color: #34526d;
  font-size: 0.9rem;
  line-height: 1.45;
}

.toast__close {
  border: 0;
  background: transparent;
  color: #5d748b;
  cursor: pointer;
  padding: 0.1rem;
}

.toast--info .toast__icon {
  background: #e8f2fd;
  color: #0b63ad;
}

.toast--success .toast__icon {
  background: #e9f8ef;
  color: #1b8f4d;
}

.toast--warning .toast__icon {
  background: #fff4e5;
  color: #d97706;
}

.toast--error .toast__icon {
  background: #fff0f0;
  color: #d62839;
}

.message-modal {
  max-width: 420px;
  margin: 0 auto;
  border: 0;
  border-radius: 20px;
  background:
    radial-gradient(circle at top, rgba(19, 96, 168, 0.12), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 1rem 1rem 0.9rem;
  box-shadow: inset 0 0 0 1px rgba(216, 228, 240, 0.9);
  text-align: center;
}

.message-modal__hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: center;
  justify-items: center;
}

.message-modal__copy strong {
  display: block;
  margin: 0 0 0.3rem;
  color: #102f4c;
  font-size: 1.2rem;
  line-height: 1.2;
  text-align: center;
}

.message-modal__icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.message-modal__copy p,
.message-modal p {
  margin: 0;
  color: #244664;
  font-size: 0.98rem;
  line-height: 1.5;
  text-align: center;
}

.message-modal--info .message-modal__icon {
  background: linear-gradient(135deg, #e6f2ff 0%, #cfe5ff 100%);
  color: #0b63ad;
}

.message-modal--success .message-modal__icon {
  background: linear-gradient(135deg, #ebfff2 0%, #c8f0d6 100%);
  color: #1b8f4d;
}

.message-modal--warning .message-modal__icon {
  background: linear-gradient(135deg, #fff6e8 0%, #ffe0b2 100%);
  color: #d97706;
}

.message-modal--error .message-modal__icon {
  background: linear-gradient(135deg, #fff0f0 0%, #ffd3d7 100%);
  color: #d62839;
}

.confirm-actions {
  margin-top: 1.1rem;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.access-modal {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.access-modal__alert {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 1rem 1.1rem;
  border: 1px solid #d9e7f6;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f5faff 100%);
}

.access-modal__icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8f2fd;
  color: #0b63ad;
  font-size: 1.3rem;
}

.access-modal__alert h4,
.access-modal__alert p {
  margin: 0;
}

.access-modal__alert h4 {
  color: #12375a;
  font-size: 1.08rem;
  margin-bottom: 0.35rem;
}

.access-modal__alert p,
.access-modal__note {
  color: #35556f;
  line-height: 1.55;
}

.access-modal__grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.access-modal__item {
  border: 1px solid #d7e5f3;
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
  background: #fbfdff;
  display: grid;
  gap: 0.28rem;
}

.access-modal__item span {
  font-size: 0.78rem;
  color: #4b6782;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.access-modal__item strong {
  color: #12375a;
  font-size: 1.04rem;
  word-break: break-word;
}

.access-modal__note {
  margin: 0;
  font-size: 0.96rem;
}

@media (max-width: 640px) {
  .access-modal__alert,
  .access-modal__grid {
    grid-template-columns: 1fr;
  }
}

.read-sheet {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.read-field {
  display: grid;
  gap: 0.42rem;
}

.read-field--wide {
  grid-column: span 2;
}

.read-field__label {
  display: block;
  font-size: 0.72rem;
  color: #587492;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.read-field__value {
  min-height: 3.25rem;
  border: 1px solid #cfe0f2;
  border-radius: 14px;
  padding: 0.78rem 0.9rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  font-size: 0.94rem;
  color: #173c5f;
  font-weight: 400;
  line-height: 1.4;
  word-break: break-word;
  display: flex;
  align-items: center;
}

.read-field__value--multiline {
  min-height: 7.5rem;
  align-items: flex-start;
  white-space: pre-wrap;
}

.item-row {
  border: 1px solid #dbe8f5;
  border-radius: 10px;
  background: #fff;
  padding: 0.65rem;
}

.login-link {
  background: transparent;
  border: 0;
  color: #0b63ad;
  text-decoration: none;
  cursor: pointer;
  justify-self: center;
  margin: 0.4rem auto 0;
  display: block;
  text-align: center;
  font-weight: 600;
  padding: 0.2rem 0.4rem;
  letter-spacing: 0.01em;
  width: fit-content;
  border-radius: 999px;
}

.login-link:hover {
  color: #084f8a;
  background: rgba(11, 99, 173, 0.08);
}

.login-avatar {
  display: flex;
  justify-content: center;
  margin-top: 0.1rem;
  margin-bottom: 0.9rem;
  position: relative;
  z-index: 2;
}

.login-avatar img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 999px;
  border: 3px solid #fff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
  background: #f4f8ff;
}

.login-avatar--pair img + img {
  margin-left: -16px;
}

@media (max-width: 980px) {
  .host-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .apply-participant-workspace,
  .apply-participant-fields,
  .apply-areas-selection,
  .apply-participant-row,
  .host-area-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .search-field input {
    min-width: 220px;
  }

  .search-input-wrap input {
    min-width: 180px;
  }

  .read-sheet {
    grid-template-columns: minmax(0, 1fr);
  }

  .read-field--wide {
    grid-column: span 1;
  }
}

@media (max-width: 700px) {
  .workspace-screen[data-screen-id="admin-area"] .workspace-env {
    padding-top: 1.2rem;
  }

  .host-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .apply-participant-workspace,
  .apply-participant-fields,
  .apply-areas-selection,
  .apply-participant-row,
  .host-area-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .env-tools {
    flex-direction: column;
    align-items: stretch;
  }

  .search-field input {
    min-width: 0;
    width: 100%;
  }

  .search-input-wrap {
    width: 100%;
  }

  .read-sheet {
    grid-template-columns: minmax(0, 1fr);
  }

  .read-field--wide {
    grid-column: span 1;
  }

  .first-access-actions {
    flex-direction: column-reverse;
  }

  .module-form .first-access-actions .btn {
    width: 100%;
    min-width: 0;
  }
}

/* ===== Layout geral ===== */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* ===== Hero ===== */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
  gap: 2.5rem;
  align-items: center;
  padding-block: 2rem 3.5rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(37, 99, 235, 0.06);
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 500;
}

.hero__badge::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: radial-gradient(circle, var(--color-secondary), var(--color-primary));
}

.hero h1 {
  margin-top: 1.1rem;
  margin-bottom: 0.6rem;
  font-size: clamp(2rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
}

.hero__subtitle {
  margin: 0;
  font-size: 1rem;
  color: var(--color-text-muted);
}

.hero__text {
  margin-top: 1rem;
  font-size: 0.97rem;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.hero__meta {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.83rem;
  color: var(--color-text-muted);
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Hero Visual Card */
.hero__visual {
  display: flex;
  justify-content: flex-end;
}

.hero-card {
  background: linear-gradient(145deg, #ffffff, #e4f2ff);
  border-radius: 2rem;
  padding: 1.6rem 1.5rem 1.4rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.25);
  max-width: 360px;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.26), transparent 60%);
  top: -120px;
  right: -110px;
  opacity: 0.7;
}

.hero-card__title {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.hero-card__title i {
  width: 2rem;
  height: 2rem;
  border-radius: 0.8rem;
  background: rgba(37, 99, 235, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-card__icon i,
.objective-card__icon i,
.result-card__icon i {
  font-size: 1.03rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-card p {
  position: relative;
  font-size: 0.9rem;
  color: var(--color-text);
}

.hero-card ul {
  position: relative;
  margin: 0.6rem 0 0.8rem 0;
  padding-left: 1.1rem;
  font-size: 0.87rem;
  color: var(--color-text-muted);
}

.hero-card__stats {
  position: relative;
  display: flex;
  gap: 1.2rem;
  margin-top: 0.4rem;
  padding-top: 0.7rem;
  border-top: 1px dashed rgba(148, 163, 184, 0.5);
  font-size: 0.8rem;
}

.hero-card__stats .label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  color: var(--color-text-muted);
}

/* ===== Botões ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn i {
  font-size: 0.9rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.35);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.8);
  color: var(--color-primary);
  border-color: rgba(37, 99, 235, 0.35);
}

.btn-outline:hover {
  background: rgba(219, 234, 254, 0.9);
  transform: translateY(-1px);
}

/* ===== Seções ===== */
.section {
  padding-block: 3rem;
}

.section--alt {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 2rem;
  padding-inline: 1.5rem;
  margin-block: 0.5rem 0;
  box-shadow: var(--shadow-subtle);
}

.section__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2rem;
}

.section__header h2 {
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
}

.section__header p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.section__content {
  margin-top: 1.8rem;
}

.section__grid--2col {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr);
  gap: 2.2rem;
  align-items: flex-start;
}

.section__note {
  margin-top: 1.8rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

/* ===== Cards genéricos ===== */
.cards-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-card {
  background: #ffffff;
  border-radius: 1.2rem;
  padding: 1rem 1rem 1.1rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-subtle);
}

.info-card__icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.9rem;
  background: rgba(22, 163, 74, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
  margin-bottom: 0.6rem;
}

.info-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.info-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ===== Objetivos / Resultados grid ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.objective-card,
.result-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1.4rem;
  padding: 1.2rem 1rem 1.3rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-subtle);
  position: relative;
  overflow: hidden;
}

.objective-card::before,
.result-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.objective-card:hover::before,
.result-card:hover::before {
  opacity: 1;
}

.objective-card__icon,
.result-card__icon {
  position: relative;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.7rem;
  background: rgba(37, 99, 235, 0.08);
  color: var(--color-primary);
  line-height: 1;
}

.result-card__icon {
  background: rgba(16, 185, 129, 0.08);
  color: var(--color-secondary);
}

.objective-card h3,
.result-card h3 {
  position: relative;
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.objective-card p,
.result-card p {
  position: relative;
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

/* ===== Timeline ===== */
.timeline {
  border-left: 2px solid rgba(148, 163, 184, 0.4);
  margin-top: 1.5rem;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.timeline__item {
  position: relative;
  padding-left: 0.8rem;
}

.timeline__badge {
  position: absolute;
  left: -1.6rem;
  top: 0;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  background: #ffffff;
  border: 2px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
}

.timeline__content h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.timeline__content p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ===== Quem pode participar / Roles ===== */
.role-card {
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 1.4rem 1.3rem 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: var(--shadow-subtle);
}

.role-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.role-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-weight: 500;
}

.role-tag--host {
  background: rgba(37, 99, 235, 0.08);
  color: var(--color-primary);
  border-color: rgba(37, 99, 235, 0.25);
}

.role-tag--guest {
  background: rgba(16, 185, 129, 0.08);
  color: var(--color-secondary);
  border-color: rgba(16, 185, 129, 0.25);
}

.role-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.role-card__intro {
  margin: 0.8rem 0 0.8rem;
  font-size: 0.92rem;
}

.role-card h4 {
  margin: 0.5rem 0 0.3rem;
  font-size: 0.95rem;
}

.role-card__list {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.role-card__list li + li {
  margin-top: 0.35rem;
}

.role-card__cta {
  margin-top: 1rem;
}

/* ===== Responsabilidades ===== */
.responsibility-card {
  background: #ffffff;
  border-radius: 1.4rem;
  padding: 1.2rem 1.1rem 1.4rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-subtle);
}

.responsibility-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.responsibility-card h3 i {
  color: var(--color-primary-light);
}

.responsibility-card ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.responsibility-card li + li {
  margin-top: 0.35rem;
}

/* ===== CTA final ===== */
.section--cta {
  text-align: center;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

/* ===== Rodapé ===== */
.footer {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  background: #ffffff;
}

.footer__content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.8rem 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Colunas: 50% logos / 50% texto */
.footer__col {
  flex: 1; /* cada coluna ocupa aproximadamente metade */
}

/* COLUNA ESQUERDA – LOGOS GRANDES */
.footer__col--logos {
  display: flex;
  justify-content: flex-start;
}

.footer__logos {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.footer-logo {
  height: 5.8rem;   /* deixa as logos grandes e bem visíveis */
  width: auto;
  display: block;
}

.footer-logo--previdencia {
  height: 7.4rem;   /* ligeiramente menor se a arte for mais horizontal */
}

/* COLUNA DIREITA – TEXTOS */
.footer__col--text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  text-align: right;
}

.footer__org-name {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.85rem;
}

/* RESPONSIVO – EMPILHA NO MOBILE */
@media (max-width: 720px) {
  .footer__content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem 1.25rem 1.8rem;
  }

  .footer__col--text {
    align-items: flex-start;
    text-align: left;
  }

  .footer-logo {
    height: 4.2rem; /* reduz um pouco em telas menores */
  }

  .footer-logo--previdencia {
    height: 6rem;
  }
}



/* ===== Back to top ===== */
.back-to-top {
  position: fixed;
  bottom: 1.6rem;
  right: 1.6rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0);
  color: #ffffff00;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 40;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.lottie-overlay {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top, rgba(34, 101, 163, 0.28), transparent 30%),
    rgba(10, 24, 40, 0.48);
}

.lottie-overlay[hidden] {
  display: none !important;
}

.lottie-overlay__card {
  width: min(520px, calc(100% - 2rem));
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 1.1rem 1rem 0.8rem;
  text-align: center;
  backdrop-filter: none;
}

.lottie-overlay__player {
  width: 180px;
  height: 180px;
  margin: 0 auto;
}

.lottie-overlay__message {
  margin: 0.5rem 0 0;
  color: #103452;
  font-weight: 700;
  font-size: 1.02rem;
  text-shadow: none;
}

/* ===== Animações de entrada (scroll reveal) ===== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsividade ===== */
@media (max-width: 960px) {
  main {
    padding-inline: 1.25rem;
  }

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

  .hero__visual {
    justify-content: flex-start;
  }

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

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

  .timeline {
    border-left: none;
    padding-left: 0;
  }

  .timeline__item {
    padding-left: 0;
  }

  .timeline__badge {
    position: static;
    margin-bottom: 0.4rem;
  }

  .section--alt {
    border-radius: 1.4rem;
    padding-inline: 1rem;
  }

  .form-grid.two,
  .check-grid-simple {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .message-modal__hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .message-modal__icon {
    margin: 0 auto;
  }

  .confirm-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .navbar {
    padding-inline: 1rem;
  }

  .navbar__menu {
    position: absolute;
    top: 3.3rem;
    right: 1rem;
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: var(--shadow-soft);
    padding: 0.7rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    min-width: 10rem;
  }

  .navbar__menu.open {
    display: flex;
  }

  .hero {
    padding-block: 1.8rem 3rem;
  }

  .hero__meta {
    flex-direction: column;
  }

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

  .footer__content {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== Responsividade reforcada ===== */
img,
svg {
  max-width: 100%;
  height: auto;
}

body {
  overflow-x: hidden;
}

.navbar {
  gap: 1rem;
}

.navbar__brand,
.navbar__menu,
.navbar__right,
.workspace__top,
.env-tools,
.search-input-wrap,
.footer__content,
.footer__logos {
  min-width: 0;
}

.navbar__menu {
  flex-wrap: wrap;
}

.navbar__toggle {
  display: flex;
}

.workspace,
main {
  width: 100%;
}

.module-card,
.data-modal__dialog,
.message-modal,
.access-modal,
.hero-card,
.system-panel {
  max-width: 100%;
}

.module-card,
.module-form,
.dynamic-list,
.dynamic-list__row,
.host-area-row,
.apply-participant-row,
.apply-participant-fields,
.apply-participant-workspace,
.env-block,
.env-tools,
.table-wrap,
.workspace-profile,
.footer__col,
.footer__col--text {
  min-width: 0;
}

.module-form input,
.module-form textarea,
.module-form select,
.dynamic-list__row input,
.apply-participant-fields input,
.search-field input,
.search-input-wrap input {
  width: 100%;
  min-width: 0;
}

.table-wrap {
  width: 100%;
}

.env-table {
  min-width: 960px;
}

.btn {
  max-width: 100%;
}

@media (max-width: 1280px) {
  .workspace {
    max-width: calc(100vw - 1rem);
    padding-inline: 0.5rem;
  }

  .workspace-screen[data-screen-id="admin-area"] .module-card,
  .workspace-screen[data-screen-id="host-area"] .module-card,
  .workspace-screen[data-screen-id="candidate-area"] .module-card {
    max-width: calc(100vw - 1rem);
  }

  .env-table {
    min-width: 900px;
  }
}

@media (max-width: 1024px) {
  .topbar {
    padding-inline: 1rem;
  }

  .navbar {
    padding-inline: 1rem;
  }

  .workspace__top {
    flex-direction: column;
  }

  .module-card {
    padding: 1.75rem 1.1rem 1.2rem;
  }

  .workspace-screen[data-screen-id="form-host"] .module-card,
  .workspace-screen[data-screen-id="form-candidate"] .module-card {
    padding-top: 5.2rem;
  }

  .workspace-screen[data-screen-id="form-host"] .module-card h3,
  .workspace-screen[data-screen-id="form-candidate"] .module-card h3 {
    font-size: 1.35rem;
    padding-inline: 1rem;
  }

  .workspace-profile,
  .workspace-screen[data-screen-id="admin-area"] .workspace-profile,
  .workspace-screen[data-screen-id="host-area"] .workspace-profile,
  .workspace-screen[data-screen-id="candidate-area"] .workspace-profile {
    width: 100%;
    margin-inline: auto;
  }

  .search-field {
    width: 100%;
  }

  .env-tools {
    align-items: stretch;
  }

  .search-input-wrap {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .topbar {
    font-size: 0.74rem;
    line-height: 1.4;
  }

  .navbar {
    align-items: center;
  }

  .navbar__brand {
    flex: 1 1 auto;
  }

  .logo-img {
    height: 2rem;
  }

  .logo-title {
    font-size: 0.94rem;
  }

  .logo-subtitle {
    font-size: 0.66rem;
  }

  .navbar__toggle {
    display: flex;
    flex: 0 0 auto;
  }

  .navbar__menu {
    flex-wrap: nowrap;
  }

  .workspace {
    margin-bottom: 1.25rem;
    padding-top: 0.85rem;
  }

  main {
    padding: 1.5rem 1rem 3rem;
  }

  .section,
  .section--alt {
    padding-block: 2rem;
  }

  .section--alt {
    padding-inline: 1rem;
  }

  .hero {
    gap: 1.5rem;
    padding-block: 1.2rem 2.2rem;
  }

  .hero h1 {
    font-size: clamp(1.7rem, 9vw, 2.2rem);
  }

  .hero__actions,
  .cta-buttons,
  .first-access-actions,
  .confirm-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn,
  .cta-buttons .btn,
  .first-access-actions .btn,
  .confirm-actions .btn {
    width: 100%;
  }

  .hero-card {
    padding: 1.15rem 1rem;
  }

  .hero-card__stats {
    flex-direction: column;
    gap: 0.7rem;
  }

  .module-card {
    border-radius: 1.1rem;
    padding: 1.25rem 0.85rem 1rem;
  }

  .module-card h3 {
    font-size: 1.2rem;
  }

  .workspace-screen[data-screen-id="form-host"] .module-card,
  .workspace-screen[data-screen-id="form-candidate"] .module-card {
    padding-top: 4.7rem;
  }

  .workspace-screen[data-screen-id="form-host"] .module-card h3,
  .workspace-screen[data-screen-id="form-candidate"] .module-card h3 {
    top: 1.1rem;
    font-size: 1.12rem;
  }

  .prefill-inline,
  .dynamic-list__row,
  .apply-folder-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .btn-prefill,
  .dynamic-remove-btn,
  .apply-folder-remove {
    width: 100%;
  }

  .dynamic-remove-btn,
  .apply-folder-remove {
    min-height: 2.75rem;
  }

  .workspace-profile,
  .workspace-screen[data-screen-id="admin-area"] .workspace-profile,
  .workspace-screen[data-screen-id="host-area"] .workspace-profile,
  .workspace-screen[data-screen-id="candidate-area"] .workspace-profile {
    align-items: center;
    text-align: center;
  }

  .workspace-screen[data-screen-id="admin-area"] .workspace-profile img,
  .workspace-screen[data-screen-id="host-area"] .workspace-profile img,
  .workspace-screen[data-screen-id="candidate-area"] .workspace-profile img,
  .workspace-screen[data-screen-id="candidate-area"] .workspace-profile__pair img {
    width: 84px;
    height: 84px;
  }

  .search-input-wrap {
    flex-wrap: nowrap;
  }

  .env-table {
    min-width: 760px;
  }

  .data-modal__dialog {
    width: calc(100vw - 1rem);
    max-height: calc(100vh - 1rem);
  }

  .data-modal__header,
  .data-modal__body {
    padding-inline: 1rem;
  }

  .footer__logos {
    flex-wrap: wrap;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .topbar {
    padding-inline: 0.75rem;
  }

  .navbar {
    padding-inline: 0.75rem;
    padding-block: 0.75rem;
  }

  .logo-text {
    display: none;
  }

  main {
    padding-inline: 0.75rem;
  }

  .workspace {
    max-width: calc(100vw - 0.5rem);
    padding-inline: 0.25rem;
  }

  .module-card {
    padding-inline: 0.75rem;
  }

  .module-card h4 {
    font-size: 0.96rem;
  }

  .module-form label {
    font-size: 0.82rem;
  }

  .module-form input,
  .module-form textarea,
  .module-form select,
  .btn {
    font-size: 0.88rem;
  }

  .hero__badge,
  .hero__meta,
  .section__header p,
  .info-card p,
  .objective-card p,
  .result-card p,
  .role-card__intro,
  .role-card__list,
  .responsibility-card ul {
    font-size: 0.85rem;
  }

  .env-table {
    min-width: 680px;
  }

  .back-to-top {
    right: 0.85rem;
    bottom: 0.85rem;
  }
}
