/* Launcher em viewport fixa; scroll permitido apenas nos trilhos internos. */
html,
body.launcher-page {
  height: 100%;
  overflow: hidden;
}
body.launcher-page {
  height: 100dvh;
}
.launcher-shell {
  min-height: 0;
  overflow: hidden;
}
.launcher-hero,
.agent-picker {
  min-width: 0;
  min-height: 0;
}
@media (min-width: 701px) and (max-width: 1100px) {
  .launcher-hero {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 34%);
    gap: clamp(16px, 3vw, 36px);
  }
  .launcher-orbit {
    width: min(100%, 290px);
  }
  .launcher-hero h1 {
    font-size: clamp(36px, 4.9vw, 55px);
  }
}
@media (max-width: 700px) {
  .launcher-shell {
    grid-template-rows: minmax(210px, .78fr) minmax(0, 1fr);
    height: calc(100dvh - 64px - env(safe-area-inset-top));
  }
  .launcher-nav {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }
  .launcher-brand {
    gap: 8px;
    min-width: 0;
  }
  .launcher-brand strong {
    font-size: 15px;
  }
  .launcher-brand__mark {
    flex: 0 0 29px;
  }
  .launcher-nav__actions {
    gap: 6px;
    min-width: 0;
  }
  .launcher-theme {
    width: 34px;
    height: 34px;
  }
  .launcher-mcp-connection {
    min-height: 34px;
    padding: 0 8px;
    font-size: 9px;
  }
  .launcher-exit {
    min-width: 24px;
    padding: 0;
  }
  .launcher-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(100px, 28vw, 140px);
    gap: clamp(8px, 2vw, 14px);
    align-items: center;
    min-height: 0;
    padding: 12px 0 10px;
    overflow: hidden;
  }
  .launcher-hero__copy {
    min-width: 0;
  }
  .launcher-kicker {
    max-width: 100%;
    margin-bottom: 10px;
    font-size: 8px;
    letter-spacing: .07em;
    white-space: normal;
  }
  html:not([data-theme="light"]) .launcher-hero h1,
  .launcher-hero h1 {
    max-width: 100%;
    margin: 0;
    font-size: clamp(25px, 6.1vw, 37px);
    line-height: 1.06;
    letter-spacing: -.065em;
    overflow-wrap: normal;
  }
  .launcher-hero h1 em {
    max-width: 100%;
    padding-right: .04em;
  }
  html:not([data-theme="light"]) .launcher-hero__copy > p,
  .launcher-hero__copy > p {
    max-width: 100%;
    margin-top: 11px;
    font-size: clamp(10px, 2.65vw, 12px);
    line-height: 1.5;
  }
  .launcher-orbit {
    --orbita-tamanho: clamp(100px, 28vw, 140px);
    display: block;
    width: var(--orbita-tamanho);
    max-width: 100%;
    margin: 0;
    justify-self: end;
  }
  .launcher-orbit__core {
    inset: 29%;
  }
  .launcher-orbit__rotulo {
    font-size: 6px;
    letter-spacing: .055em;
  }
  .launcher-orbit__conectar {
    font-size: clamp(9px, 2.5vw, 11px);
  }
  .agent-picker {
    min-height: 0;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }
  .agent-picker .launcher-section-head {
    gap: 8px;
    margin-bottom: 10px;
  }
  .launcher-section-head h2 {
    font-size: clamp(14px, 4vw, 18px);
  }
  .agent-picker__tools {
    gap: 6px;
  }
  .agent-rail-controls {
    gap: 5px;
  }
  .agent-rail-controls button {
    width: 30px;
    height: 30px;
  }
  .agent-grid {
    gap: 10px;
    padding: 4px 2px 8px;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .agent-card {
    flex: 0 0 min(78vw, 310px);
    height: 100%;
    min-height: 0;
    padding: 12px;
    border-radius: 13px;
  }
  .agent-card__top {
    gap: 7px;
  }
  .agent-card__identity strong {
    font-size: 12px;
  }
  .agent-card__identity small {
    font-size: 9px;
  }
  .agent-card__visual {
    min-height: 38px;
  }
  .agent-card__platform {
    width: 60px;
    height: 46px;
  }
  .agent-card__meta {
    gap: 8px;
    padding: 8px 0;
  }
}
@media (max-width: 700px) and (max-height: 690px) {
  .launcher-shell {
    grid-template-rows: minmax(160px, .72fr) minmax(0, 1fr);
  }
  .launcher-hero {
    padding-top: 6px;
    padding-bottom: 5px;
  }
  .launcher-kicker {
    margin-bottom: 5px;
  }
  html:not([data-theme="light"]) .launcher-hero h1,
  .launcher-hero h1 {
    font-size: clamp(21px, 5.8vw, 29px);
  }
  .launcher-hero__copy > p {
    margin-top: 7px;
  }
  .agent-picker .launcher-section-head {
    margin-bottom: 5px;
  }
}
@media (max-width: 360px) {
  .launcher-shell,
  .launcher-nav {
    width: calc(100% - 20px);
  }
  .launcher-hero {
    grid-template-columns: minmax(0, 1fr) 94px;
    gap: 6px;
  }
  .launcher-orbit {
    --orbita-tamanho: 94px;
    width: 94px;
  }
  .launcher-kicker {
    font-size: 7px;
  }
  .launcher-nav__actions {
    gap: 4px;
  }
  .launcher-mcp-connection {
    padding: 0 6px;
  }
}
