
/* Portal corporativo: estilos limitados al selector de módulos. */
body:not(.in-module) .portal {
  background: #f3f6fb;
  grid-template-columns: 224px minmax(0, 1fr);
}
body:not(.in-module) .portal aside {
  background: linear-gradient(160deg, #0b2346, #103c6c);
  padding: 30px 22px;
}
body:not(.in-module) .workspace > header {
  min-height: 76px;
  padding: 14px 34px;
  font-size: 13px;
}
body:not(.in-module) .account {
  gap: 12px;
  font-size: 13px;
}
body:not(.in-module) .avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #e7effb;
  color: #163e72;
}
body:not(.in-module) #logout {
  font-size: 12px;
  background: #f1f5fa;
  border: 1px solid #e0e7f0;
  border-radius: 9px;
  padding: 8px 12px;
}
#chooser {
  padding: 32px 34px 24px;
  max-width: 1400px;
}
#chooser .intro {
  background: linear-gradient(115deg, #102c54, #174b7a);
  border: 1px solid #234d79;
  border-radius: 20px;
  color: white;
  padding: 28px 30px;
  align-items: center;
  margin-bottom: 28px;
  box-shadow: 0 10px 28px #1538570a;
}
#chooser .intro .kicker {
  color: #9fc5ed;
  font-size: 10px;
  letter-spacing: 1.8px;
  margin-bottom: 10px;
}
#chooser .intro h1 {
  font-size: clamp(25px, 2.6vw, 36px);
  letter-spacing: -1px;
  margin-bottom: 10px;
}
#chooser .intro p {
  font-size: 14px;
  color: #c3d5e9;
  line-height: 1.6;
}
.portal-user-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 17px;
}
.portal-user-meta span {
  background: #ffffff10;
  border: 1px solid #ffffff25;
  color: #e2edf9;
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 12px;
}
#chooser .date {
  color: #d5e5f6;
  background: #ffffff0a;
  border-color: #ffffff25;
  font-size: 12px;
  white-space: normal;
  line-height: 1.6;
  max-width: 190px;
  flex-shrink: 0;
}
#chooser .section-heading {
  margin-bottom: 16px;
}
#chooser .section-heading h2 {
  font-size: 17px;
  color: #183756;
  letter-spacing: -0.3px;
}
#chooser .section-heading > span {
  font-size: 12px;
  color: #65788e;
}
#chooser .module-grid {
  gap: 18px;
  align-items: stretch;
}
#chooser .module-card {
  padding: 24px 22px 20px;
  border-radius: 16px;
  border-color: #dce5ef;
  box-shadow: 0 4px 14px #0b265205;
  animation: none;
  overflow: hidden;
  min-width: 0;
}
#chooser .module-card:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--accent);
}
#chooser .module-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 24px #16345410;
}
#chooser .card-top {
  margin-bottom: 20px;
}
#chooser .module-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
}
#chooser .module-tag {
  font-size: 10px;
  color: #708299;
  letter-spacing: 1px;
}
#chooser .module-card h3 {
  font-size: 21px;
  letter-spacing: -0.6px;
  line-height: 1.25;
  margin-bottom: 10px;
}
#chooser .module-card p {
  font-size: 13px;
  line-height: 1.7;
  color: #62758b;
  min-height: 66px;
  margin-bottom: 16px;
}
#chooser .features {
  gap: 6px;
  margin-bottom: 18px;
  min-height: 0;
}
#chooser .features span {
  font-size: 10px;
  padding: 6px 8px;
  background: #f1f5fa;
  color: #5c7088;
  border-radius: 6px;
}
#chooser .card-access {
  font-size: 12px;
  line-height: 1.5;
  min-height: 40px;
  padding: 0 0 12px;
  overflow-wrap: anywhere;
  color: #667a90;
}
#chooser .card-access.ready {
  color: #128171;
}
#chooser .module-button {
  font-size: 13px;
  border-radius: 10px;
  padding: 12px 14px;
  min-height: 46px;
  font-weight: 700;
}
#chooser .module-button:disabled {
  cursor: not-allowed;
  background: #edf1f6;
  color: #8998ab;
  opacity: 1;
}
#chooser .module-locked:before {
  background: #b5c1d0;
}
#chooser .module-locked .module-icon {
  background: #f0f3f7;
  color: #8293a8;
}
#chooser .help-note {
  display: none;
}
#chooser #portal-status:empty {
  display: none;
}
@media (max-width: 1100px) {
  body:not(.in-module) .portal {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  #chooser {
    padding: 24px;
  }
  #chooser .module-grid {
    grid-template-columns: 1fr;
  }
  #chooser .module-card p {
    min-height: 0;
  }
  #chooser .intro {
    padding: 24px;
  }
  #chooser .card-access {
    min-height: 0;
  }
  body:not(.in-module) .workspace > header {
    padding: 14px 24px;
  }
}
@media (max-width: 800px) {
  body:not(.in-module) .portal {
    grid-template-columns: minmax(0, 1fr);
  }
  body:not(.in-module) .portal aside {
    padding: 16px 20px;
  }
  #chooser {
    padding: 20px;
  }
  #chooser .intro {
    padding: 22px;
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    border-radius: 16px;
  }
  #chooser .intro h1 {
    font-size: 27px;
  }
  #chooser .date {
    max-width: none;
    white-space: normal;
  }
  #chooser .module-grid {
    gap: 15px;
  }
  #chooser .module-card {
    padding: 22px;
  }
  body:not(.in-module) .workspace > header {
    padding: 10px 20px;
    min-height: 64px;
  }
  body:not(.in-module) #account-email {
    max-width: min(43vw, 220px);
  }
  #chooser .section-heading > span {
    font-size: 10px;
  }
  #chooser .module-card p {
    font-size: 13px;
  }
  #chooser .card-top {
    margin-bottom: 16px;
  }
}
@media (max-width: 380px) {
  #chooser {
    padding: 16px;
  }
  #chooser .intro {
    padding: 20px;
  }
  #chooser .intro h1 {
    font-size: 25px;
  }
  body:not(.in-module) .account {
    gap: 8px;
  }
  body:not(.in-module) .workspace > header {
    padding: 10px 16px;
  }
  body:not(.in-module) #logout {
    font-size: 11px;
    padding: 7px 9px;
  }
  body:not(.in-module) .avatar {
    width: 32px;
    height: 32px;
  }
}
