.adaptive-section > .section-heading {
  text-align: center;
}
.adaptive-section > .section-heading p {
  max-width: 580px;
  margin: 22px auto 0;
}
.orbit-desktop {
  height: 610px;
  position: relative;
  margin-top: 48px;
  border: 8px solid #191c24;
  border-radius: 30px;
  overflow: hidden;
  isolation: isolate;
  background: #111627 url("assets/orbi-galaxy.png") left center / 220% 220%;
  box-shadow:
    0 30px 90px #0006,
    0 0 0 1px #ffffff25;
}
.orbit-desktop:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #080b1966;
}
.mac-menu {
  height: 34px;
  padding: 4px 16px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  background: #11152399;
  color: #dee2ed;
  backdrop-filter: blur(20px);
}
.mac-menu b {
  margin: 0 16px;
}
.mac-notch {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 132px;
  height: 33px;
  background: #06080d;
  border-radius: 0 0 12px 12px;
  z-index: 6;
  display: grid;
  place-items: center;
}
.mac-notch i {
  width: 7px;
  height: 7px;
  border: 1px solid #263341;
  border-radius: 50%;
  background: #132038;
  box-shadow: inset 0 0 0 2px #080b14;
}
.desktop-window {
  position: absolute;
  width: 59%;
  height: 330px;
  left: 20.5%;
  top: 110px;
  overflow: hidden;
  border: 1px solid #ffffff25;
  border-radius: 14px;
  box-shadow: 0 18px 60px #0006;
  background: #111723;
}
.desktop-toolbar {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  color: #aeb5c8;
  font-size: 13px;
  background: #ffffff06;
  border-bottom: 1px solid #ffffff0d;
}
.traffic-lights {
  display: flex;
  gap: 6px;
}
.traffic-lights i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fc6058;
}
.traffic-lights i:nth-child(2) {
  background: #fdbc40;
}
.traffic-lights i:nth-child(3) {
  background: #34c84b;
}
.desktop-preview {
  padding: 40px;
  text-align: center;
  background: radial-gradient(ellipse at bottom, #21314755, transparent);
}
.preview-tag {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #94b9ce;
}
.desktop-preview h3 {
  font-size: 36px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.04em;
  margin: 20px 0 12px;
}
.desktop-preview p {
  font-size: 14px;
  color: #929caf;
}
.preview-line {
  display: block;
  width: 50px;
  height: 2px;
  background: #8bb8d0;
  margin: 20px auto;
}
.desktop-hint {
  position: absolute;
  bottom: 116px;
  left: 0;
  width: 100%;
  text-align: center;
  color: #d4dbed;
  font-size: 14px;
  pointer-events: none;
}
.desktop-hint small {
  display: block;
  font-size: 12px;
  color: #a1abc3;
  margin-top: 4px;
}
.adaptive-dock {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  width: 466px;
  height: 80px;
  background: #151923dc;
  border: 1px solid #ffffff26;
  border-radius: 25px;
  backdrop-filter: blur(30px) saturate(125%);
  -webkit-backdrop-filter: blur(30px) saturate(125%);
  box-shadow:
    0 18px 40px #0007,
    inset 0 1px 0 #ffffff0c,
    0 0 25px #91afff08;
  transition:
    left 0.24s cubic-bezier(0.2, 0.8, 0.2, 1),
    top 0.24s cubic-bezier(0.2, 0.8, 0.2, 1),
    width 0.24s cubic-bezier(0.2, 0.8, 0.2, 1),
    height 0.24s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-radius 0.24s;
}
.adaptive-dock[data-edge="left"],
.adaptive-dock[data-edge="right"] {
  flex-direction: column;
  width: 84px;
  height: 402px;
  gap: 12px;
  border-radius: 26px;
}
.adaptive-dock.is-dragging {
  transition: none;
  will-change: transform;
  user-select: none;
  /* Keep the dark glass surface while avoiding live wallpaper blur on each move. */
  background: #171c29f5;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  cursor: grabbing;
  box-shadow:
    0 25px 65px #0009,
    0 0 0 1px #9cbcff33;
}
.dock-grip,
.dock-workspace,
.conversation-close {
  border: 0;
  color: #b3bed4;
  background: transparent;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.dock-grip {
  width: 24px;
  height: 44px;
  cursor: grab;
  touch-action: none;
  font-size: 24px;
}
.dock-grip:active {
  cursor: grabbing;
}
.dock-grip:hover,
.dock-workspace:hover,
.conversation-close:hover {
  background: #ffffff0d;
  color: white;
}
.dock-identity {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}
.dock-identity img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.dock-identity b {
  font-size: 14px;
  font-weight: 600;
}
.dock-identity small {
  display: block;
  font-size: 12px;
  color: #a1afc2;
}
.dock-identity small i,
.adaptive-caption i {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #84d5be;
  margin-right: 4px;
  box-shadow: 0 0 8px #84d5be66;
}
.dock-divider {
  width: 1px;
  height: 30px;
  background: #ffffff13;
  flex-shrink: 0;
}
.dock-agents {
  display: flex;
  gap: 9px;
}
.dock-sphere {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--agent-color) 35%, transparent);
  background: radial-gradient(
    circle at 30% 10%,
    color-mix(in srgb, var(--agent-color) 20%, #202534),
    #131722
  );
  box-shadow:
    inset 0 1px 3px #ffffff10,
    0 4px 10px #0003;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.dock-sphere img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.dock-sphere i {
  position: absolute;
  bottom: 1px;
  right: 2px;
  width: 7px;
  height: 7px;
  border: 2px solid #171d28;
  border-radius: 50%;
  background: #85e3bd;
  box-shadow: 0 0 6px #85e3bd99;
}
.dock-sphere:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 18px color-mix(in srgb, var(--agent-color) 20%, transparent);
}
.dock-sphere:active,
.dock-workspace:active {
  transform: scale(0.93);
}
.dock-sphere[aria-expanded="true"] {
  outline: 1px solid var(--agent-color);
  outline-offset: 3px;
}
.dock-workspace {
  position: relative;
  font-size: 24px;
  width: 38px;
  height: 44px;
}
.dock-tooltip {
  position: absolute;
  bottom: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 9px;
  border-radius: 8px;
  white-space: nowrap;
  background: #101521;
  color: #edf0f8;
  border: 1px solid #ffffff20;
  font-size: 12px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}
.dock-sphere:hover .dock-tooltip,
.dock-sphere:focus-visible .dock-tooltip,
.dock-workspace:hover .dock-tooltip,
.dock-workspace:focus-visible .dock-tooltip {
  opacity: 1;
}
.adaptive-dock[data-edge="top"] .dock-tooltip {
  bottom: auto;
  top: calc(100% + 14px);
}
.adaptive-dock[data-edge="left"] .dock-tooltip {
  bottom: auto;
  left: calc(100% + 16px);
  transform: none;
}
.adaptive-dock[data-edge="right"] .dock-tooltip {
  bottom: auto;
  left: auto;
  right: calc(100% + 16px);
  transform: none;
}
.adaptive-dock:is([data-edge="left"], [data-edge="right"]) .dock-identity span {
  display: none;
}
.adaptive-dock:is([data-edge="left"], [data-edge="right"]) .dock-grip {
  height: 20px;
  width: 44px;
}
.adaptive-dock:is([data-edge="left"], [data-edge="right"]) .dock-divider {
  height: 1px;
  width: 34px;
}
.adaptive-dock:is([data-edge="left"], [data-edge="right"]) .dock-agents {
  flex-direction: column;
}
.dock-conversation {
  position: absolute;
  z-index: 5;
  top: 70px;
  right: 24px;
  width: 350px;
  height: 420px;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  background: #111725ee;
  border: 1px solid #ffffff26;
  backdrop-filter: blur(32px);
  box-shadow: 0 22px 80px #0008;
  overflow: hidden;
}
.dock-conversation[hidden],
.workspace-switcher[hidden] {
  display: none;
}
.conversation-heading {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid #ffffff0c;
}
.conversation-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.conversation-heading h3 {
  font-size: 16px;
  font-weight: 600;
}
.conversation-status {
  font-size: 12px;
  color: #92d8b9;
}
.conversation-close {
  margin-left: auto;
  font-size: 26px;
  width: 34px;
  height: 34px;
}
.conversation-task {
  padding: 12px 18px;
  border-bottom: 1px solid #ffffff0c;
}
.conversation-project {
  font-size: 12px;
  color: #8ca7d3;
}
.conversation-current {
  font-size: 14px;
  margin-top: 4px;
  color: #d8deed;
}
.conversation-messages {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.conversation-message {
  font-size: 14px;
  line-height: 1.5;
  border-radius: 14px;
  padding: 10px 12px;
  background: #ffffff07;
  max-width: 94%;
  flex-shrink: 0;
}
.conversation-message.user {
  align-self: flex-end;
  background: #496caa29;
  border: 1px solid #8faeff16;
}
.conversation-form {
  display: flex;
  gap: 8px;
  margin: 0 14px;
  padding: 7px 7px 7px 12px;
  border: 1px solid #ffffff21;
  border-radius: 14px;
  background: #080e19;
}
.conversation-form input {
  width: 100%;
  min-width: 0;
  color: white;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 14px;
  outline-offset: 3px;
}
.conversation-form button {
  border: 0;
  background: #d0ddfb;
  color: #17213a;
  border-radius: 9px;
  width: 34px;
  height: 34px;
  font-size: 20px;
  flex-shrink: 0;
}
.conversation-form button:hover {
  background: white;
}
.conversation-note {
  display: block;
  font-size: 12px;
  color: #8390a9;
  text-align: center;
  padding: 10px;
}
.workspace-switcher {
  display: flex;
  gap: 6px;
  padding: 12px 18px;
  flex-wrap: wrap;
}
.workspace-switcher button {
  font-size: 14px;
  background: #ffffff08;
  border: 1px solid #ffffff18;
  color: #c4ccdf;
  padding: 6px 10px;
  border-radius: 10px;
}
.workspace-switcher button[aria-pressed="true"] {
  background: #96baff22;
  color: white;
  border-color: #96baff66;
}
.dock-conversation.is-workspace {
  width: min(600px, calc(100% - 48px));
  height: calc(100% - 100px);
}
.adaptive-caption {
  display: flex;
  justify-content: space-between;
  padding: 18px 8px;
  font-size: 14px;
  color: #8995ad;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 700px) {
  .orbit-desktop {
    height: 560px;
    border-width: 5px;
    border-radius: 24px;
  }
  .mac-menu-extra {
    display: none;
  }
  .mac-menu {
    font-size: 12px;
    padding: 5px 10px;
  }
  .mac-menu b {
    margin: 0 5px;
  }
  .mac-notch {
    width: 90px;
  }
  .desktop-window {
    left: 8%;
    width: 84%;
    top: 85px;
    height: 300px;
  }
  .desktop-preview {
    padding: 35px 16px;
  }
  .desktop-preview h3 {
    font-size: 30px;
  }
  .desktop-hint {
    bottom: 105px;
  }
  .desktop-hint small {
    display: none;
  }
  .adaptive-dock {
    width: calc(100% - 20px);
    height: 72px;
    gap: 8px;
    padding: 10px;
    border-radius: 21px;
  }
  .dock-grip,
  .dock-identity span,
  .dock-divider {
    display: none;
  }
  .dock-identity img {
    width: 30px;
    height: 30px;
  }
  .dock-agents {
    flex: 1;
    justify-content: space-around;
    gap: 4px;
  }
  .dock-sphere {
    width: 42px;
    height: 42px;
  }
  .dock-workspace {
    width: 28px;
  }
  .dock-conversation,
  .dock-conversation.is-workspace {
    top: auto;
    bottom: 0;
    right: 0;
    width: 100%;
    height: calc(100% - 52px);
    border-radius: 24px 24px 0 0;
  }
  .conversation-form input {
    font-size: 16px;
  }
  .adaptive-caption {
    font-size: 12px;
    gap: 12px;
  }
  .adaptive-section {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .adaptive-dock,
  .dock-sphere,
  .dock-tooltip {
    transition: none;
  }
}

@media (min-width: 701px) {
  .orbit-desktop[data-edge="right"] .dock-conversation {
    right: auto;
    left: 24px;
  }
  .orbit-desktop[data-edge="top"] .dock-conversation {
    top: 152px;
    height: calc(100% - 176px);
  }
}

@media (max-width: 400px) {
  .adaptive-dock {
    gap: 6px;
    padding: 8px;
  }
  .dock-sphere {
    width: 38px;
    height: 38px;
    padding: 8px;
  }
  .dock-agents {
    gap: 3px;
  }
}

.adaptive-dock.is-morphing {
  overflow: hidden;
}

.conversation-heading {
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.conversation-heading:focus-visible {
  outline: 2px solid #8db8ff;
  outline-offset: -4px;
}
.dock-conversation.is-chat-dragging {
  will-change: transform;
  background: #111725f5;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.is-chat-dragging .conversation-heading {
  cursor: grabbing;
}
.conversation-close {
  cursor: pointer;
}
@media (max-width: 700px) {
  .conversation-heading {
    cursor: default;
    touch-action: auto;
  }
}

/* One agent, with projects and chats visible beside the conversation. */
.dock-conversation {
  width: min(640px, calc(100% - 48px));
  height: 490px;
  max-height: calc(100% - 84px);
}
.conversation-heading,
.workspace-switcher {
  flex-shrink: 0;
}
.conversation-body {
  display: flex;
  flex: 1;
  min-height: 0;
  min-width: 0;
}
.conversation-sidebar {
  display: block;
  flex: 0 0 170px;
  padding: 16px 10px;
  overflow: auto;
  border-right: 1px solid #ffffff12;
  background: #070d182b;
  overscroll-behavior: contain;
}
.conversation-sidebar section + section {
  margin-top: 24px;
}
.conversation-sidebar h4 {
  font-size: 13px;
  font-weight: 500;
  color: #a4b5d3;
  margin: 0 8px 8px;
  overflow-wrap: anywhere;
}
.conversation-sidebar button {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 9px;
  padding: 9px 8px;
  background: transparent;
  color: #9faec6;
  text-align: left;
  font: inherit;
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.conversation-sidebar button:hover {
  background: #ffffff09;
  color: #edf3ff;
}
.conversation-sidebar button[aria-pressed="true"] {
  background: #6d9fff1a;
  color: #dceaff;
  box-shadow: inset 2px 0 #8bb5ff;
}
.conversation-sidebar button:focus-visible {
  outline: 2px solid #8db8ff;
  outline-offset: -2px;
}
.conversation-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
}
.conversation-task,
.conversation-form,
.conversation-note {
  flex-shrink: 0;
}
@media (max-width: 700px) {
  .dock-conversation,
  .dock-conversation.is-workspace {
    width: 100%;
    height: calc(100% - 52px);
    max-height: calc(100% - 52px);
  }
  .conversation-sidebar {
    flex-basis: 125px;
    padding: 12px 6px;
  }
  .conversation-sidebar h4,
  .conversation-sidebar button {
    font-size: 12px;
  }
  .conversation-task,
  .conversation-messages {
    padding: 12px;
  }
  .conversation-form {
    padding: 10px;
    gap: 6px;
  }
  .conversation-form input {
    min-width: 0;
    width: 100%;
    font-size: 14px;
  }
  .conversation-note {
    padding: 0 8px 10px;
    font-size: 11px;
  }
}
