/* Product launcher: scoped to the portal, preserving the shared Auth header. */
.portal-launcher {
  --launcher-text: #f1f5f9;
  --launcher-muted: #a6b5ca;
  --launcher-accent: #67e8f9;
  --launcher-border: #27364c;
  width: min(1040px, 100%);
  margin: 36px auto 0;
  color: var(--launcher-text);
}

.portal-launcher .launcher-heading { margin-bottom: 32px; }
.portal-launcher .eyebrow { margin: 0 0 10px; font-size: 11px; }
.portal-launcher h1 { font-size: clamp(28px, 3vw, 34px); line-height: 1.2; letter-spacing: -.035em; }
.portal-launcher .launcher-company { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 12px 0 0; color: var(--launcher-muted); font-size: 13px; line-height: 1.5; }
.portal-launcher .launcher-company strong { color: #d4deec; font-weight: 500; overflow-wrap: anywhere; min-width: 0; }
.portal-launcher .launcher-section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 16px; }
.portal-launcher .launcher-section-heading h2 { font-size: 16px; font-weight: 600; line-height: 1.5; }
.portal-launcher .launcher-count { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; color: var(--launcher-muted); font-size: 12px; line-height: 1.5; }
.portal-launcher .launcher-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.portal-launcher .launcher-products > li { min-width: 0; }
.portal-launcher .launcher-product { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: center; min-height: 128px; height: 100%; padding: 20px; border: 1px solid var(--launcher-border); border-radius: 12px; background: #0d182b; transition: border-color 160ms ease, background-color 160ms ease; }
.portal-launcher .launcher-product:not(.launcher-product-unavailable):hover { border-color: #3d7f93; background: #112139; }
.portal-launcher .launcher-product:not(.launcher-product-unavailable):active { background: #142a42; }
.portal-launcher .launcher-product:has(.launcher-product-link:focus-visible) { outline: 3px solid var(--launcher-accent); outline-offset: 4px; }
.portal-launcher .launcher-icon { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #225065; border-radius: 10px; color: var(--launcher-accent); background: #103043; }
.portal-launcher .launcher-product-erp-nextaz .launcher-icon { color: #a5b4fc; border-color: #3d426c; background: #252945; }
.portal-launcher .launcher-product-crm-nextaz .launcher-icon { color: #6ee7b7; border-color: #25584f; background: #143931; }
.portal-launcher .launcher-product-nextaz-imobiliaria .launcher-icon { color: #fcd34d; border-color: #665032; background: #392f22; }
.portal-launcher .launcher-product-copy { min-width: 0; }
.portal-launcher .launcher-product h3 { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.35; letter-spacing: -.015em; overflow-wrap: anywhere; }
.portal-launcher .launcher-product-copy p { margin: 6px 0 0; color: var(--launcher-muted); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.portal-launcher .launcher-product-link { color: inherit; text-decoration: none; }
.portal-launcher .launcher-product-link::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.portal-launcher .launcher-product-link:focus-visible { outline: 2px solid var(--launcher-accent); outline-offset: 3px; }
@supports selector(:has(*)) {
  .portal-launcher .launcher-product-link:focus-visible { outline: none; }
}
.portal-launcher .launcher-product-action { display: flex; align-items: center; gap: 8px; color: var(--launcher-accent); font-size: 13px; font-weight: 600; white-space: nowrap; }
.portal-launcher .launcher-product-action > span { font-size: 18px; }
.portal-launcher .launcher-product-unavailable { grid-template-columns: 44px minmax(0, 1fr); gap: 8px 16px; background: #101929; }
.portal-launcher .launcher-product-unavailable .launcher-icon { grid-row: 1 / 3; }
.portal-launcher .launcher-product-status { grid-column: 2; color: #fcd98a; font-size: 12px; font-weight: 500; line-height: 1.5; }
.portal-launcher .launcher-empty { padding: 28px; border: 1px dashed var(--launcher-border); border-radius: 12px; background: #0d182b; }
.portal-launcher .launcher-empty h3 { margin: 0; font-size: 17px; line-height: 1.5; }
.portal-launcher .launcher-empty p { max-width: 560px; margin: 8px 0 0; color: var(--launcher-muted); font-size: 14px; line-height: 1.6; }
.portal-launcher .launcher-preview { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding: 20px 0; border-top: 1px solid var(--launcher-border); }
.portal-launcher .launcher-preview-icon { display: grid; flex-shrink: 0; place-items: center; width: 36px; height: 36px; color: var(--launcher-muted); }
.portal-launcher .launcher-preview h2 { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; color: #cbd5e1; font-size: 14px; font-weight: 600; line-height: 1.5; }
.portal-launcher .launcher-preview h2 span { padding: 2px 7px; border: 1px solid #354258; border-radius: 5px; color: var(--launcher-muted); font-size: 11px; font-weight: 500; }
.portal-launcher .launcher-preview p { margin: 5px 0 0; color: var(--launcher-muted); font-size: 13px; line-height: 1.5; }

@media (max-width: 900px) {
  .portal-launcher .launcher-product { grid-template-columns: 44px minmax(0, 1fr); gap: 8px 14px; padding: 18px; }
  .portal-launcher .launcher-icon { grid-row: 1 / 3; }
  .portal-launcher .launcher-product-action { grid-column: 2; }
}

@media (max-width: 640px) {
  .portal-launcher { margin-top: 24px; }
  .portal-launcher .launcher-heading { margin-bottom: 24px; }
  .portal-launcher .launcher-products { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .portal-launcher .launcher-section-heading { gap: 6px; margin-bottom: 14px; }
  .portal-launcher .launcher-section-heading h2 { flex-basis: 100%; }
  .portal-launcher .launcher-product { min-height: 128px; }
  .portal-launcher .launcher-preview { align-items: flex-start; margin-top: 24px; padding-top: 18px; gap: 10px; }
  .portal-launcher .launcher-empty { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .portal-launcher .launcher-product { transition: none; }
}
