:root {
  --bg-stage: transparent;
  --bg-window: #f2f2f2;
  --bg-panel: #f7f6f4;
  --bg-main: #fcfbf9;
  --bg-card: #ffffff;
  --bg-soft: #f7f7f7;
  --text-primary: #1d2128;
  --text-secondary: rgba(29, 33, 40, 0.7);
  --text-tertiary: rgba(29, 33, 40, 0.5);
  --border-light: rgba(29, 33, 40, 0.12);
  --border-base: rgba(29, 33, 40, 0.16);
  --shadow-window: 0 0 0 1px rgba(29, 33, 40, 0.1), 0 4px 40px rgba(29, 33, 40, 0.12);
  --shadow-card: 0 2px 20px rgba(40, 31, 29, 0.04);
  --radius-window: 14px;
  --radius-card: 24px;
  --radius-base: 8px;
  --radius-pill: 999px;
  --font-ui: "PingFang SC", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-ui);
  background: transparent;
  color: var(--text-primary);
}

button {
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.icon-asset {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.icon-asset--14 {
  width: 14px;
  height: 14px;
}

.icon-asset--16 {
  width: 16px;
  height: 16px;
}

.icon-asset--18 {
  width: 18px;
  height: 18px;
}

.icon-asset--20 {
  width: 20px;
  height: 20px;
}

svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stage {
  min-height: 100%;
  display: grid;
  place-items: stretch;
  padding: 0;
  background: transparent;
}

.app-window {
  width: 100%;
  height: 100%;
  min-height: 100%;
  max-height: none;
  display: flex;
  overflow: hidden;
  border-radius: 20px;
  background: var(--bg-window);
  box-shadow: none;
}

.sidebar-shell {
  width: 240px;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  background: var(--bg-window);
  border-right: 1px solid rgba(29, 33, 40, 0.08);
  transition: none;
}

.titlebar {
  height: 56px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand__mark {
  width: 28px;
  height: 28px;
}

.brand__icon {
  display: block;
  object-fit: contain;
}

.brand__icon--small {
  width: 28px;
  height: 28px;
}

.brand__icon--assistant {
  width: 36px;
  height: 36px;
}

.brand__wordmark {
  width: 77px;
  height: 20px;
  object-fit: contain;
}

.brand__wordmark--title {
  width: 59.6px;
  height: 14.9px;
}

.brand__text {
  font-size: 16px;
  font-weight: 600;
}

.mascot {
  position: relative;
  width: 88px;
  height: 76px;
  flex: none;
  border-radius: 46% 54% 48% 52% / 54% 42% 58% 46%;
  background: linear-gradient(145deg, #ff8d65 0%, #ff704f 48%, #f1574c 100%);
  box-shadow: inset -8px -10px 0 rgba(185, 63, 55, 0.14);
}

.mascot--small {
  width: 28px;
  height: 24px;
  box-shadow: inset -2px -3px 0 rgba(185, 63, 55, 0.12);
}

.mascot__ear,
.mascot__face,
.mascot__eye,
.mascot__snout {
  position: absolute;
}

.mascot__ear {
  top: -4px;
  width: 15px;
  height: 13px;
  border-radius: 65% 35% 45% 55%;
  background: #ff8b66;
}

.mascot--small .mascot__ear {
  top: -1px;
  width: 6px;
  height: 5px;
}

.mascot__ear--left {
  left: 18px;
  transform: rotate(-14deg);
}

.mascot__ear--right {
  right: 18px;
  transform: rotate(18deg);
}

.mascot--small .mascot__ear--left {
  left: 5px;
}

.mascot--small .mascot__ear--right {
  right: 5px;
}

.mascot__face {
  top: 25px;
  width: 8px;
  height: 18px;
  border: 2px solid #8f2b2d;
  border-top: 0;
  border-right: 0;
  border-radius: 0 0 0 12px;
}

.mascot--small .mascot__face {
  top: 9px;
  width: 3px;
  height: 7px;
  border-width: 1.1px;
}

.mascot__face--left {
  left: 10px;
  transform: rotate(26deg);
}

.mascot__face--right {
  right: 10px;
  transform: scaleX(-1) rotate(26deg);
}

.mascot--small .mascot__face--left {
  left: 3px;
}

.mascot--small .mascot__face--right {
  right: 3px;
}

.mascot__eye {
  top: 21px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1d2128;
}

.mascot--small .mascot__eye {
  top: 7px;
  width: 3px;
  height: 3px;
}

.mascot__eye--left {
  left: 23px;
}

.mascot__eye--right {
  right: 23px;
}

.mascot--small .mascot__eye--left {
  left: 7px;
}

.mascot--small .mascot__eye--right {
  right: 7px;
}

.mascot__snout {
  left: 50%;
  top: 24px;
  width: 21px;
  height: 16px;
  transform: translateX(-50%) rotate(-12deg);
  border-radius: 46% 54% 44% 56%;
  background: rgba(255, 225, 196, 0.9);
}

.mascot__snout::before,
.mascot__snout::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 6px;
  top: 5px;
  border-radius: 999px;
  background: #8f2b2d;
}

.mascot__snout::before {
  left: 7px;
}

.mascot__snout::after {
  right: 7px;
}

.mascot--small .mascot__snout {
  top: 8px;
  width: 8px;
  height: 6px;
}

.mascot--small .mascot__snout::before,
.mascot--small .mascot__snout::after {
  width: 1px;
  height: 2px;
  top: 2px;
}

.mascot--small .mascot__snout::before {
  left: 2.5px;
}

.mascot--small .mascot__snout::after {
  right: 2.5px;
}

.icon-button,
.toolbar-icon,
.tool-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.icon-button svg,
.toolbar-icon svg,
.tool-icon svg {
  width: 18px;
  height: 18px;
}

.icon-button--ghost {
  width: 28px;
  height: 28px;
}

.sidebar-brand {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px 8px 14px;
}

.sidebar-brand__collapse {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  position: relative;
  opacity: 0.65;
}

.sidebar-brand__collapse::before,
.sidebar-brand__collapse::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.sidebar-brand__collapse::before {
  left: 4px;
  width: 8px;
  height: 10px;
  border: 1.4px solid rgba(29, 33, 40, 0.5);
  border-radius: 2px;
}

.sidebar-brand__collapse::after {
  right: 5px;
  width: 1px;
  height: 10px;
  background: rgba(29, 33, 40, 0.5);
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 8px;
}

.nav-item,
.conversation-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 34px;
  padding: 8px;
  border-radius: 8px;
  color: var(--text-primary);
  text-align: left;
}

.nav-item {
  font-size: 14px;
  font-weight: 400;
}

.nav-item--active {
  font-weight: 500;
}

.nav-item__icon {
  width: 18px;
  height: 18px;
  flex: none;
  object-fit: contain;
}

.conversation-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 8px;
}

.conversation-panel__label {
  margin: 0;
  padding: 6px 8px 2px;
  font-size: 12px;
  color: var(--text-tertiary);
}

.conversation-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: auto;
  padding-bottom: 10px;
}

.conversation-item {
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.conversation-item span:first-child,
.conversation-item:not(.conversation-item--selected) {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.conversation-item--selected {
  background: #efefef;
  color: var(--text-primary);
  font-weight: 600;
}

.conversation-item__more {
  flex: none;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--text-tertiary);
  background: rgba(29, 33, 40, 0.04);
}

.sidebar__footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-top: 0.5px solid var(--border-light);
}

.credits-card {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
}

.credits-card__avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  overflow: hidden;
  flex: none;
  background:
    radial-gradient(circle at 28% 28%, #ff9b4b 0, #ff9b4b 24%, transparent 26%),
    radial-gradient(circle at 68% 28%, #f86565 0, #f86565 24%, transparent 26%),
    radial-gradient(circle at 50% 72%, #5f78ff 0, #5f78ff 28%, transparent 30%),
    linear-gradient(145deg, #ffd168 0%, #ff9340 42%, #8b63ff 100%);
}

.credits-card__meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.credits-card__label {
  font-size: 12px;
  color: var(--text-secondary);
}

.credits-card__value {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
}

.credits-card__value svg {
  width: 14px;
  height: 14px;
}

.buy-button {
  padding: 4px 12px;
  border-radius: 8px;
  border: 1px solid #454546;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.72);
}

.main-panel {
  position: relative;
  flex: 1;
  min-width: 0;
  background: var(--bg-main);
  border-radius: 0;
  display: flex;
  flex-direction: column;
}

.app-window:not(.is-chat-mode) .titlebar .brand {
  opacity: 0;
  pointer-events: none;
}

.titlebar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.titlebar__sidebar-toggle {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  position: relative;
  display: none;
}

.titlebar__sidebar-toggle::before,
.titlebar__sidebar-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.titlebar__sidebar-toggle::before {
  left: 7px;
  width: 8px;
  height: 10px;
  border: 1.4px solid rgba(29, 33, 40, 0.56);
  border-radius: 2px;
}

.titlebar__sidebar-toggle::after {
  left: 4px;
  width: 1px;
  height: 10px;
  background: rgba(29, 33, 40, 0.56);
}

.titlebar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 0 20px;
  background: rgba(252, 251, 249, 0.42);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(26px) saturate(1.22);
  -webkit-backdrop-filter: blur(26px) saturate(1.22);
  box-shadow:
    inset 0 -1px 0 rgba(29, 33, 40, 0.04),
    0 8px 24px rgba(255, 255, 255, 0.06);
}

.toolbar-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 14px;
}

.toolbar-button svg,
.toolbar-icon svg {
  width: 20px;
  height: 20px;
}

.divider {
  width: 1px;
  height: 20px;
  background: linear-gradient(to bottom, transparent, rgba(29, 33, 40, 0.18), transparent);
}

.window-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 18px;
}

.window-control {
  position: relative;
  width: 24px;
  height: 24px;
  color: var(--text-secondary);
}

.window-control::before,
.window-control::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.window-control--min::before {
  width: 12px;
  height: 1.6px;
  background: currentColor;
}

.window-control--max::before {
  width: 11px;
  height: 10px;
  border: 1.5px solid currentColor;
}

.window-control--close::before,
.window-control--close::after {
  width: 12px;
  height: 1.6px;
  background: currentColor;
}

.window-control--close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.window-control--close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.main-content {
  flex: 1;
  min-height: 0;
  display: flex;
  justify-content: center;
  padding: 56px 0 0;
}

.chat-shell {
  width: min(820px, 100%);
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 0;
  padding: 0 28px 24px;
}

.chat-scroll {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 24px 0 18px;
}

.celebration-layer {
  position: sticky;
  top: 30px;
  z-index: 8;
  display: flex;
  justify-content: center;
  pointer-events: none;
  overflow: visible;
}

.celebration-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.empty-state {
  min-height: 250px;
  max-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow: hidden;
  transition: opacity 260ms ease, transform 260ms ease, min-height 260ms ease;
}

.chat-shell.is-chat-mode .empty-state {
  min-height: 0;
  max-height: 0;
  opacity: 0;
  transform: translateY(-18px);
  pointer-events: none;
}

.hero__headline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
}

.hero__mascot {
  width: 88px;
  height: 88px;
  object-fit: contain;
}

.empty-state h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 260ms ease, transform 260ms ease, max-height 260ms ease;
}

.chat-shell.is-chat-mode .chat-thread {
  max-height: 3200px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.message {
  width: 100%;
  display: flex;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 220ms ease, transform 220ms ease, max-height 220ms ease;
}

.message.is-visible {
  max-height: 2400px;
  opacity: 1;
  transform: translateY(0);
}

.message--user {
  justify-content: flex-end;
}

.message--assistant {
  justify-content: flex-start;
}

.message__user-row {
  display: inline-flex;
  align-items: flex-end;
  gap: 12px;
}

.message__bubble {
  max-width: min(640px, 82%);
  border-radius: 22px;
  padding: 18px 20px;
  line-height: 1.55;
  font-size: 17px;
  word-break: break-word;
}

.message__bubble--user {
  border-radius: 10px;
  background: #f7f5f2;
  box-shadow: none;
}

.message__bubble--user p {
  margin: 0;
}

.composer-dock {
  position: relative;
  padding: 10px 0 0;
  transition: none;
}

.user-avatar {
  display: block;
  border-radius: 999px;
  flex: none;
  object-fit: cover;
  box-shadow:
    0 0 0 1px rgba(29, 33, 40, 0.08),
    0 8px 18px rgba(47, 91, 186, 0.12);
}

.user-avatar--message {
  width: 36px;
  height: 36px;
  margin-bottom: 2px;
}

.user-avatar--sidebar {
  width: 32px;
  height: 32px;
  box-shadow: none;
}

.composer {
  width: 100%;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  transition: box-shadow 220ms ease, transform 220ms ease;
}

.chat-shell.is-chat-mode .composer-dock {
  opacity: 0;
  transform: translateY(12px);
  max-height: 0;
  margin-top: -12px;
  overflow: hidden;
  pointer-events: none;
}

.composer__prompt {
  position: relative;
  min-height: 72px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-primary);
}

.composer__placeholder {
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(29, 33, 40, 0.5);
  transition: opacity 160ms ease;
}

.chat-shell.is-drafting .composer__placeholder {
  opacity: 0;
}

.composer__prompt-text {
  word-break: break-word;
}

.composer__cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: text-bottom;
  border-radius: 2px;
  background: rgba(29, 33, 40, 0.38);
  animation: blink 0.95s steps(1) infinite;
}

.composer__footer,
.composer__tools,
.composer__actions,
.tool-group,
.suggestions {
  display: flex;
  align-items: center;
}

.composer__footer {
  justify-content: space-between;
  gap: 16px;
}

.composer__tools {
  flex-wrap: wrap;
  gap: 8px;
}

.pill-button,
.model-button,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-secondary);
}

.pill-button {
  background: var(--bg-soft);
}

.pill-button svg,
.chip svg {
  width: 18px;
  height: 18px;
}

.tool-group {
  gap: 4px;
}

.tool-icon {
  width: 36px;
  height: 36px;
}

.tool-icon--split {
  width: auto;
  padding: 8px 10px 8px 8px;
  gap: 8px;
}

.model-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-inline: 8px;
}

.composer__actions {
  gap: 8px;
}

.suggestions {
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0 4px;
  transition: opacity 220ms ease, transform 220ms ease, max-height 220ms ease, padding 220ms ease;
}

.chat-shell.is-chat-mode .suggestions {
  opacity: 0;
  transform: translateY(8px);
  max-height: 0;
  padding: 0;
  overflow: hidden;
  pointer-events: none;
}

.send-button {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #c6c6c6;
  color: #ffffff;
  opacity: 0.9;
  cursor: pointer;
}

.send-button svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.4;
}

.send-button.is-live {
  background: #141414;
  box-shadow: none;
}

.task-stream {
  width: 100%;
  max-width: 764px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.task-stream__header,
.task-stream__brand,
.flight-card__top {
  display: flex;
  align-items: center;
}

.task-stream__header {
  justify-content: space-between;
  gap: 16px;
}

.task-stream__brand {
  gap: 10px;
}

.task-stream__subtitle,
.flight-card__airline,
.flight-card__route,
.task-finish,
.task-summary,
.task-note {
  margin: 0;
}

.task-stream__subtitle {
  padding-left: 44px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
}

.replay-button {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(29, 33, 40, 0.08);
  background: rgba(29, 33, 40, 0.02);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.task-sections {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 28px;
}

.task-section {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    max-height 220ms ease;
}

.task-section.is-visible {
  max-height: 720px;
  opacity: 1;
  transform: translateY(0);
}

.task-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  padding: 12px 0 8px;
  color: rgba(29, 33, 40, 0.85);
}

.task-trigger__icon {
  width: 16px;
  height: 16px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.task-trigger__text {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
  color: rgba(29, 33, 40, 0.85);
}

.task-trigger__link {
  color: #005ad9;
}

.task-trigger__caret {
  width: 16px;
  height: 16px;
  margin-left: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
}

.task-details {
  margin-left: 8px;
  padding: 2px 0 12px 17px;
  border-left: 1px dashed rgba(29, 33, 40, 0.16);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.task-note,
.task-summary {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(29, 33, 40, 0.6);
}

.task-chip {
  width: fit-content;
  min-height: 24px;
  padding: 4px 10px;
  border: 1px solid rgba(29, 33, 40, 0.12);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  color: rgba(29, 33, 40, 0.6);
}

.file-card {
  width: 320px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid rgba(29, 33, 40, 0.12);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.file-card__icon {
  width: 32px;
  height: 32px;
  flex: none;
}

.file-card__name {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  color: rgba(29, 33, 40, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-card__action {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: rgba(29, 33, 40, 0.62);
}

.file-card__action svg {
  width: 18px;
  height: 18px;
}

.flight-results {
  width: min(520px, 100%);
  display: none;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(29, 33, 40, 0.14);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.flight-results.is-visible {
  display: grid;
}

.flight-results__heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: #2a3342;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.flight-results__plane {
  width: 20px;
  height: 18px;
  flex: none;
}

.flight-card {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f5f3ef;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.flight-results.is-visible .flight-results__heading.is-visible,
.flight-results.is-visible .flight-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.flight-card__top {
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.flight-card__airline {
  font-size: 15px;
  font-weight: 600;
  color: #2b3443;
}

.flight-card__route {
  margin-top: 3px;
  font-size: 13px;
  color: rgba(29, 33, 40, 0.55);
}

.flight-card__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.flight-card__price {
  margin: 0;
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
  color: #ff5e00;
}

.flight-card__book {
  font-size: 12px;
  color: #215fff;
  background: transparent;
}

.task-section[data-demo-section='3'] .task-details {
  gap: 14px;
  padding-top: 0;
  margin-left: 0;
  padding-left: 0;
  border-left: 0;
}

.task-finish {
  position: relative;
  z-index: 1;
  width: fit-content;
  max-height: 0;
  overflow: visible;
  margin: 0;
  padding: 0 28px;
  border: 1.5px solid #5cc96f;
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfff8 0%, #f4fff3 100%);
  box-shadow:
    0 0 0 1px rgba(92, 201, 111, 0.08),
    0 18px 40px rgba(92, 201, 111, 0.16),
    0 0 72px rgba(92, 201, 111, 0.2);
  font-size: 20px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #37a454;
  opacity: 0;
  transform: translateY(-10px) scale(0.96);
  transition: opacity 220ms ease, transform 220ms ease, max-height 220ms ease, padding 220ms ease;
}

.task-finish::before {
  content: '';
  position: absolute;
  inset: -34px -54px;
  z-index: -1;
  border-radius: 48px;
  background:
    radial-gradient(circle at 18% 50%, rgba(112, 221, 130, 0.24) 0, rgba(112, 221, 130, 0) 48%),
    radial-gradient(circle at 82% 46%, rgba(112, 221, 130, 0.2) 0, rgba(112, 221, 130, 0) 44%);
  filter: blur(26px);
  opacity: 0.95;
}

.task-finish.is-visible {
  max-height: 88px;
  padding: 18px 28px;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.task-finish.is-leaving {
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
}

.celebration-replay {
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(20, 20, 20, 0.88);
  background: rgba(20, 20, 20, 0.92);
  box-shadow: 0 8px 18px rgba(20, 20, 20, 0.18);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.celebration-replay .icon-asset {
  filter: brightness(0) invert(1);
}

.task-finish.is-visible + .celebration-replay {
  opacity: 1;
  transform: translateY(0);
}

.task-finish.is-leaving + .celebration-replay {
  opacity: 0;
  transform: translateY(-4px);
}

.message-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding-top: 16px;
  margin-top: 8px;
  border-top: 1px solid rgba(29, 33, 40, 0.08);
}

.task-section[data-demo-section='3'] .message-actions {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.message-action-button {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: transparent;
}

.chip {
  border: 0.5px solid var(--border-base);
  background: var(--bg-main);
  padding-inline: 20px;
}

.chip svg {
  color: rgba(29, 33, 40, 0.6);
}

.icon-button:hover,
.toolbar-button:hover,
.toolbar-icon:hover,
.nav-item:hover,
.conversation-item:hover,
.tool-icon:hover,
.pill-button:hover,
.model-button:hover,
.chip:hover,
.buy-button:hover {
  background: rgba(29, 33, 40, 0.04);
}

@media (max-width: 1080px) {
  .stage {
    padding: 16px;
  }

  .app-window {
    width: 100%;
    height: 580px;
    min-height: 580px;
    max-height: 580px;
  }

  .sidebar-shell {
    width: 220px;
  }

  .chat-shell {
    padding-inline: 20px;
  }
}

@media (max-width: 860px) {
  .sidebar-shell {
    display: none;
  }

  .app-window {
    height: 580px;
    min-height: 580px;
    max-height: 580px;
  }

  .main-panel {
    border-radius: var(--radius-window);
  }

  .titlebar {
    padding: 0 16px;
  }

  .chat-shell {
    padding-inline: 16px;
  }

  .hero__headline {
    flex-direction: column;
    gap: 12px;
  }

  .empty-state h1 {
    font-size: 24px;
  }

  .composer__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .composer__actions {
    justify-content: flex-end;
  }

  .message__bubble {
    max-width: 100%;
    font-size: 16px;
  }

  .message__user-row {
    gap: 10px;
  }

  .user-avatar--message {
    width: 32px;
    height: 32px;
  }

  .task-stream__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .flight-card__top,
  .flight-card__timeline {
    flex-direction: column;
    align-items: flex-start;
  }
}

@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.85;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
}
