.first-screen {
  height: auto;
}
/* Refine the existing product demo; the hardware and galaxy artwork stay intact. */
.first-screen .hero-copy .hero-audience {
  font-size: 13px;
  line-height: 1.6;
  color: #91a0bb;
  margin: 16px 0 24px;
}
.first-screen .hero-copy > p {
  margin-top: 16px;
  margin-bottom: 16px;
}
.workflow-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 18px;
}
.workflow-controls small {
  flex-basis: 100%;
  text-align: center;
  color: #95a5c2;
  font-size: 12px;
  line-height: 1.6;
}
.workflow-secondary {
  border: 1px solid #c4d8ff24;
  background: #ffffff05;
  border-radius: 14px;
  color: #d3def2;
  padding: 12px 16px;
  font: inherit;
  font-size: 13px;
  min-height: 44px;
  cursor: pointer;
}
.workflow-controls button:disabled {
  opacity: 0.4;
  cursor: default;
}
.workflow-secondary:hover:not(:disabled) {
  background: #ffffff10;
}
.workflow-controls button:focus-visible,
.project-activity-row:focus-visible {
  outline: 2px solid #b4d5ff;
  outline-offset: 3px;
}
.demo-device-ensemble .dock-conversation.is-workspace {
  top: 62px;
  right: 16px;
  bottom: auto;
  width: calc(100% - 32px);
  height: calc(100% - 170px);
  max-height: calc(100% - 170px);
  border-radius: 18px;
}
.conversation-body > .workspace-switcher {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  flex: 0 0 76px;
  gap: 8px;
  overflow: auto;
  padding: 12px 6px;
  border-right: 1px solid #ffffff12;
  background: #080e1b66;
}
.conversation-body > .workspace-switcher[hidden] {
  display: none;
}
.conversation-body > .workspace-switcher button {
  padding: 10px 5px;
  min-height: 44px;
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.demo-device-ensemble .is-workspace .conversation-sidebar {
  flex-basis: 126px;
  padding: 12px 6px;
}
.demo-device-ensemble .conversation-sidebar button,
.demo-device-ensemble .conversation-sidebar h4 {
  font-size: 12px;
}
.demo-device-ensemble .conversation-task {
  padding: 12px;
}
.demo-device-ensemble .conversation-current {
  font-size: 12px;
  line-height: 1.5;
}
.project-activity {
  flex-shrink: 0;
  padding: 0 12px 10px;
  border-bottom: 1px solid #ffffff0c;
}
.project-activity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
  padding: 7px 0;
  border: 0;
  border-bottom: 1px solid #ffffff08;
  background: transparent;
  color: #dbe6f9;
  font: inherit;
  text-align: left;
}
.project-activity-row:last-child {
  border-bottom: 0;
}
.project-activity-row:hover {
  background: #ffffff05;
}
.project-activity-row b {
  font-size: 11px;
  font-weight: 500;
}
.project-activity-row small {
  display: block;
  font-size: 10px;
  color: #95a5c0;
  line-height: 1.4;
}
.workflow-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  line-height: 1.4;
  color: #a9c9ff;
}
.workflow-status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.workflow-status[data-status="answer"] {
  color: #efc88c;
}
.workflow-status[data-status="ready"] {
  color: #a0e1ce;
}
.workflow-phone-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 4px;
}
.workflow-phone-card > img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.workflow-phone-card > b {
  font-weight: 500;
  font-size: 17px;
}
.workflow-phone-card > small {
  color: #a3b5d0;
  font-size: 12px;
  line-height: 1.5;
}
.workflow-phone-card .portable-bubble {
  margin: 0;
}
.workflow-phone-card button {
  width: 100%;
  min-height: 44px;
}
.waitlist-success-orbi {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 0 auto 24px;
}
.waitlist-success-orbi img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 22px #7faffe24);
}
.waitlist-success-orbi span {
  position: absolute;
  right: 0;
  bottom: 6px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #afdfd3;
  color: #152b2a;
  box-shadow: 0 0 0 5px #101622;
}
.waitlist-success p {
  max-width: 390px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}
@media (max-width: 700px) {
  .first-screen {
    height: auto;
  }
  .first-screen .hero-copy .hero-audience,
  html[lang="it"] .first-screen .hero-copy .hero-audience {
    font-size: 12px;
  }
  .workflow-controls {
    gap: 8px;
  }
  .workflow-controls > .button {
    flex-basis: 100%;
  }
  .demo-device-ensemble .dock-conversation.is-workspace {
    top: 58px;
    right: 8px;
    bottom: auto;
    width: calc(100% - 16px);
    height: calc(100% - 160px);
    max-height: calc(100% - 160px);
  }
  .conversation-body > .workspace-switcher {
    flex-basis: 54px;
    padding: 8px 3px;
    gap: 6px;
  }
  .conversation-body > .workspace-switcher button {
    font-size: 10px;
    padding: 8px 3px;
  }
  .demo-device-ensemble .is-workspace .conversation-sidebar {
    flex-basis: 82px;
    padding: 8px 3px;
  }
  .demo-device-ensemble .conversation-sidebar button,
  .demo-device-ensemble .conversation-sidebar h4 {
    font-size: 11px;
    margin-left: 0;
    margin-right: 0;
    padding-left: 4px;
    padding-right: 4px;
  }
  .project-activity {
    padding: 0 8px 8px;
  }
  .project-activity-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
  .demo-device-ensemble .conversation-form input {
    font-size: 16px;
  }
  header {
    padding-top: max(10px, env(safe-area-inset-top));
  }
  .phone-bottom-nav {
    padding-bottom: max(4px, env(safe-area-inset-bottom));
  }
}
@media (prefers-reduced-motion: reduce) {
  .workflow-controls *,
  .workflow-phone-card *,
  .waitlist-success * {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 700px) {
  /* Keep the selected task and conversation legible; other agents remain in their sidebar. */
  .project-activity-row[aria-current="false"] {
    display: none;
  }
  .conversation-main .conversation-messages {
    min-height: 70px;
  }
}

/* Pin the composer inside the window, independently of activity/history length. */
.demo-device-ensemble .conversation-body {
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
}
.demo-device-ensemble .conversation-main {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.demo-device-ensemble .conversation-scroll {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.demo-device-ensemble .conversation-scroll .conversation-messages {
  flex: none;
  min-height: 0;
  overflow: visible;
  padding: 12px;
}
.demo-device-ensemble .conversation-scroll .project-activity {
  padding: 0 12px 8px;
}
.demo-device-ensemble .project-activity-row {
  padding: 5px 0;
}
.demo-device-ensemble .conversation-heading {
  min-height: 64px;
  padding: 12px 16px;
}
.demo-device-ensemble .conversation-form {
  flex: 0 0 auto;
  margin: 8px 10px 0;
  padding: 7px;
  min-height: 48px;
}
.demo-device-ensemble .conversation-form input {
  min-width: 0;
  width: 0;
  flex: 1;
}
.demo-device-ensemble .conversation-form button {
  padding: 0;
}
.demo-device-ensemble .conversation-note {
  flex: 0 0 auto;
  line-height: 1.4;
  padding: 6px 10px 8px;
  font-size: 10px;
}
@media (max-width: 700px) {
  .demo-device-ensemble .conversation-heading {
    padding: 10px;
  }
  .demo-device-ensemble .conversation-scroll .conversation-messages {
    padding: 10px;
  }
  .demo-device-ensemble .conversation-form {
    margin: 6px 6px 0;
  }
}

.language-toggle a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.language-toggle a[aria-current="page"] {
  background: #ffffff18;
  color: white;
}
@media (max-width: 700px) {
  .language-toggle a {
    min-width: 36px;
    min-height: 40px;
  }
}
