:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #65758b;
  --line: #d8dee8;
  --surface: #ffffff;
  --page: #f3f6f8;
  --panel: #f9fbfc;
  --green: #147a56;
  --blue: #2563eb;
  --cyan: #0e7490;
  --red: #b42318;
  --amber: #b45309;
  --shadow: 0 16px 40px rgba(23, 32, 42, 0.08);
  --aiui-ink: #f8fafc;
  --aiui-muted: rgba(203, 213, 225, 0.76);
  --aiui-faint: rgba(148, 163, 184, 0.58);
  --aiui-line: rgba(255, 255, 255, 0.12);
  --aiui-panel: #080d13;
  --aiui-cyan: #67e8f9;
  --aiui-red: #ef4444;
  --aiui-amber: #f59e0b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
}

.sidebar {
  border-right: 1px solid var(--line);
  background: #eef3f5;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.brand-block {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 2px 16px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #111827;
  color: #fff;
  font-weight: 800;
  font-size: 20px;
}

.brand-block h1,
.topbar h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.brand-block p,
.topbar p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  box-shadow: 0 1px 2px rgba(23, 32, 42, 0.04);
}

.panel-title {
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.chain {
  display: grid;
  gap: 8px;
}

.kernel-status {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 10px;
  background:
    radial-gradient(circle at 86% 20%, rgba(20, 122, 86, 0.16), transparent 34%),
    linear-gradient(135deg, #ffffff, #f6f9fb);
}

.kernel-phase {
  color: #111827;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
}

.kernel-metrics {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.kernel-metrics span {
  min-width: 0;
  border-radius: 6px;
  border: 1px solid #e4eaf2;
  background: rgba(255, 255, 255, 0.78);
  color: #526172;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  padding: 5px 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kernel-layers {
  display: grid;
  gap: 8px;
}

.kernel-layer {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 8px 9px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.kernel-layer strong,
.kernel-layer span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kernel-layer strong {
  font-size: 13px;
}

.kernel-layer span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.kernel-layer em {
  min-width: 42px;
  border-radius: 999px;
  background: #e8f7ef;
  color: #147a56;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  padding: 4px 7px;
}

.kernel-layer.active {
  border-color: rgba(20, 122, 86, 0.48);
  background:
    linear-gradient(135deg, rgba(232, 247, 239, 0.96), rgba(255, 255, 255, 0.94));
  box-shadow: inset 4px 0 0 #147a56;
}

.kernel-layer.planned em {
  background: #fff7ed;
  color: #b45309;
}

.chain-item {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chain-item::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.state-list {
  margin: 0;
  display: grid;
  gap: 8px;
}

.state-list div {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.state-list dt {
  color: var(--muted);
  font-size: 12px;
}

.state-list dd {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.budget-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.budget-grid div {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  background: var(--panel);
}

.budget-grid strong {
  font-size: 16px;
}

.budget-grid span {
  color: var(--muted);
  font-size: 11px;
}

.workspace {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) 230px;
}

.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
}

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

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.toggle input {
  width: 16px;
  height: 16px;
}

.primary-btn,
.ghost-btn,
.quick-actions button,
.voice-btn,
.send-btn {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  min-height: 38px;
  padding: 0 13px;
}

.primary-btn:hover,
.ghost-btn:hover,
.quick-actions button:hover,
.voice-btn:hover {
  border-color: #9fb0c7;
  background: #f7fafc;
}

.primary-btn {
  border-color: #2558d4;
  background: #2558d4;
  color: #fff;
  font-weight: 700;
}

.primary-btn:hover {
  border-color: #1f49af;
  background: #1f49af;
}

.primary-btn.active {
  border-color: var(--green);
  background: #0f8a5f;
  color: #fff;
}

.primary-btn.mic-blocked,
.ghost-btn.mic-blocked {
  opacity: 0.55;
  cursor: not-allowed;
}

.ghost-btn.active {
  border-color: var(--green);
  background: #e8f7ef;
  color: #0f6b4c;
  font-weight: 700;
}

.main-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(620px, 1fr) minmax(360px, 430px);
  gap: 18px;
  padding: 16px;
}

.conversation-panel {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(220px, 1fr) auto auto;
  gap: 12px;
  background:
    radial-gradient(circle at 50% -12%, rgba(37, 99, 235, 0.1), transparent 36%),
    var(--surface);
}

.conversation {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  overflow: auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.message {
  max-width: min(760px, 94%);
  margin-bottom: 12px;
  display: grid;
  gap: 5px;
}

.message.user {
  margin-left: auto;
  justify-items: end;
}

.message .role {
  font-size: 11px;
  color: var(--muted);
}

.bubble {
  border-radius: 8px;
  padding: 11px 13px;
  line-height: 1.55;
  font-size: 14px;
  word-break: break-word;
}

.user .bubble {
  background: #17202a;
  color: #fff;
}

.assistant .bubble {
  background: #edf7f3;
  border: 1px solid #b7dfcf;
}

.proactive .bubble {
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.system .bubble {
  border: 1px solid #c7d2fe;
  border-left: 4px solid #4f46e5;
  background: linear-gradient(135deg, #eef2ff, #f8fafc);
  color: #172033;
  font-size: 13px;
}

.subtitle-strip {
  position: relative;
  min-height: 52px;
  width: min(100%, 420px);
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background:
    radial-gradient(circle at 18% 28%, rgba(103, 232, 249, 0.34), transparent 32%),
    linear-gradient(135deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.92) 54%, rgba(8, 47, 73, 0.92)),
    #020617;
  padding: 8px 32px 8px 14px;
  display: grid;
  align-content: center;
  gap: 4px;
  color: #ffffff;
  overflow: hidden;
  box-shadow:
    0 18px 46px rgba(15, 23, 42, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
}

.subtitle-strip::before {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #67e8f9;
  box-shadow: 0 0 0 6px rgba(103, 232, 249, 0.12), 0 0 22px rgba(103, 232, 249, 0.72);
  transform: translateY(-50%);
}

.conversation-panel .subtitle-strip {
  position: sticky;
  top: 0;
  z-index: 4;
}

.subtitle-empty,
.subtitle-row {
  min-height: 30px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.subtitle-empty {
  grid-template-columns: auto minmax(0, 1fr);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.subtitle-row {
  border-radius: 999px;
  padding: 2px 4px;
  background: transparent;
}

.subtitle-row.user {
  background: transparent;
}

.subtitle-speaker,
.subtitle-state {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.66);
  white-space: nowrap;
}

.subtitle-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  letter-spacing: 0;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 8px;
}

.quick-actions button {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.composer {
  min-height: 56px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 76px;
  gap: 8px;
}

.composer input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 0 14px;
  outline: none;
}

.composer input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.send-btn {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  font-weight: 700;
}

.inspector {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(500px, 0.95fr) auto minmax(220px, 0.55fr);
  gap: 14px;
}

.cards-panel,
.inspector .panel {
  min-height: 0;
  overflow: auto;
}

.generative-stage {
  min-height: 0;
  overflow: auto;
  padding: 16px;
  background:
    radial-gradient(circle at 78% 8%, rgba(37, 99, 235, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.98));
}

.aiui-stage-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: inline-grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 42px;
  margin: 0 0 12px;
  padding: 8px 14px 8px 10px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  background:
    radial-gradient(circle at 15% 50%, rgba(103, 232, 249, 0.2), transparent 38%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.9));
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: #f8fafc;
}

.aiui-stage-orb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, #ffffff, rgba(103, 232, 249, 0.95) 32%, rgba(37, 99, 235, 0.44) 62%, rgba(2, 6, 23, 0.2));
  box-shadow:
    0 0 0 6px rgba(103, 232, 249, 0.08),
    0 0 24px rgba(103, 232, 249, 0.48);
  animation: aiui-orb-breathe 1.8s ease-in-out infinite;
}

.aiui-stage-bar strong {
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.aiui-stage-bar small {
  min-width: 0;
  overflow: hidden;
  color: rgba(203, 213, 225, 0.74);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes aiui-orb-breathe {
  0%,
  100% {
    transform: scale(0.94);
    opacity: 0.82;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

.cards,
.tasks {
  display: grid;
  gap: 10px;
}

.generative-stage .cards {
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  align-content: start;
  gap: 14px;
}

.generative-stage .cards > .aiui-card:first-child {
  grid-column: 1 / -1;
}

.generative-stage .empty {
  min-height: 280px;
  display: grid;
  place-items: center;
  border-color: rgba(37, 99, 235, 0.18);
  background:
    radial-gradient(circle at 50% 35%, rgba(37, 99, 235, 0.08), transparent 32%),
    rgba(255, 255, 255, 0.74);
  color: #64748b;
  font-size: 15px;
}

.volc-status {
  min-height: 74px;
  border: 1px solid #edf1f5;
  border-radius: 8px;
  background: #fbfdff;
  padding: 10px;
  color: #334155;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow: auto;
}

.volc-actions {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.volc-actions button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#remoteAudio {
  width: 100%;
  margin-top: 10px;
}

.empty {
  color: var(--muted);
  font-size: 13px;
  border: 1px dashed #c8d2df;
  border-radius: 8px;
  padding: 16px;
  background: #fbfdff;
}

.dynamic-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  padding: 13px;
}

.dynamic-card.flight-card,
.dynamic-card.weather-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  box-shadow: 0 24px 56px rgba(8, 12, 18, 0.28);
  isolation: isolate;
}

.generative-stage .dynamic-card.flight-card,
.generative-stage .dynamic-card.weather-card {
  padding: 16px;
  gap: 14px;
}

.dynamic-card.flight-card {
  background:
    radial-gradient(circle at 72% 4%, rgba(56, 189, 248, 0.23), transparent 34%),
    linear-gradient(145deg, #090d13 0%, #121820 54%, #07090d 100%);
}

.dynamic-card.weather-card {
  background:
    radial-gradient(circle at 18% 0%, rgba(248, 113, 113, 0.22), transparent 32%),
    radial-gradient(circle at 92% 20%, rgba(34, 211, 238, 0.18), transparent 36%),
    linear-gradient(145deg, #0b0f14 0%, #151b22 58%, #07090d 100%);
}

.dynamic-card.flight-card::before,
.dynamic-card.weather-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.78), transparent 82%);
}

.dynamic-card.flight-card::after,
.dynamic-card.weather-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 7px;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.card-copy {
  position: relative;
  z-index: 2;
}

.card-copy-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card-kicker {
  display: block;
  margin-bottom: 5px;
  color: rgba(148, 163, 184, 0.86);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.live-dot {
  width: 9px;
  height: 9px;
  margin-top: 4px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.14), 0 0 18px rgba(239, 68, 68, 0.62);
  flex: 0 0 auto;
}

.dynamic-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.dynamic-card p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.flight-card h3,
.weather-card h3 {
  color: #ffffff;
  font-size: 17px;
  line-height: 1.25;
}

.generative-stage .flight-card h3,
.generative-stage .weather-card h3 {
  font-size: 22px;
}

.flight-card p,
.weather-card p {
  color: rgba(203, 213, 225, 0.74);
}

.flight-scene,
.weather-scene {
  position: relative;
  min-height: 132px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(3, 7, 12, 0.72);
  overflow: hidden;
  box-shadow: inset 0 0 36px rgba(15, 23, 42, 0.72);
}

.flight-scene::before,
.weather-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(148, 163, 184, 0.09) 1px, transparent 1px),
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.48;
}

.flight-route {
  position: absolute;
  inset: 18px 18px auto;
  height: 32px;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) 42px 14px;
  align-items: center;
  gap: 6px;
  color: #67e8f9;
  z-index: 2;
}

.airport-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 3px solid currentColor;
  background: #071019;
  box-shadow: 0 0 18px rgba(103, 232, 249, 0.5);
}

.airport-dot.destination {
  color: #ef4444;
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.58);
}

.route-line {
  height: 2px;
  background-image: linear-gradient(90deg, rgba(103, 232, 249, 0.92) 45%, transparent 0);
  background-size: 12px 2px;
}

.plane-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  transform: rotate(8deg);
  color: #ffffff;
  filter: drop-shadow(0 0 10px rgba(103, 232, 249, 0.72));
}

.plane-icon svg {
  width: 34px;
  height: 34px;
}

.city-skyline {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  height: 54px;
  display: flex;
  align-items: end;
  gap: 9px;
  color: rgba(248, 250, 252, 0.88);
  z-index: 2;
}

.tower {
  display: block;
  width: 26px;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(148, 163, 184, 0.78));
  opacity: 0.9;
}

.tower.pearl {
  width: 18px;
  height: 48px;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(#ef4444 0 22%, rgba(248, 250, 252, 0.92) 23%);
}

.tower.tall {
  height: 42px;
}

.tower.block {
  height: 31px;
  width: 44px;
}

.tower.needle {
  height: 54px;
  width: 12px;
  border-radius: 999px 999px 0 0;
}

.scene-label {
  position: absolute;
  right: 12px;
  bottom: 10px;
  color: rgba(226, 232, 240, 0.64);
  font-size: 12px;
  font-weight: 700;
  z-index: 3;
}

.sun-core {
  position: absolute;
  left: 18px;
  top: 18px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f8fafc, #f59e0b 46%, #ef4444);
  box-shadow: 0 0 0 12px rgba(245, 158, 11, 0.12), 0 0 40px rgba(248, 113, 113, 0.35);
  z-index: 2;
}

.cloud {
  position: absolute;
  height: 34px;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.9);
  box-shadow: 0 12px 24px rgba(34, 211, 238, 0.2);
  z-index: 3;
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  bottom: 8px;
  border-radius: 50%;
  background: rgba(248, 250, 252, 0.94);
}

.cloud::before {
  left: 18px;
  width: 34px;
  height: 34px;
}

.cloud::after {
  right: 16px;
  width: 25px;
  height: 25px;
}

.cloud-a {
  left: 56px;
  right: 26px;
  top: 38px;
}

.cloud-b {
  left: 104px;
  right: 46px;
  top: 64px;
  opacity: 0.78;
}

.rain-lines {
  position: absolute;
  left: 110px;
  top: 84px;
  display: flex;
  gap: 15px;
  transform: rotate(10deg);
}

.rain-lines span {
  width: 3px;
  height: 20px;
  border-radius: 999px;
  background: #67e8f9;
  box-shadow: 0 0 10px rgba(103, 232, 249, 0.58);
}

.flight-list {
  display: grid;
  gap: 7px;
}

.kv-grid {
  display: grid;
  gap: 7px;
}

.kv-grid div,
.flight-row,
.task-row {
  min-height: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border-top: 1px solid #edf1f5;
  padding-top: 7px;
  font-size: 13px;
}

.flight-card .flight-row,
.weather-card .kv-grid div {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(248, 250, 252, 0.92);
  padding: 9px 10px;
  backdrop-filter: blur(12px);
}

.flight-row {
  grid-template-columns: 72px minmax(0, 1fr) auto;
}

.flight-code {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.flight-code strong {
  color: #ffffff;
  font-size: 13px;
}

.flight-code small {
  color: rgba(148, 163, 184, 0.86);
  font-size: 10px;
}

.flight-time {
  min-width: 0;
  color: rgba(203, 213, 225, 0.82);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weather-card .kv-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.weather-card .kv-grid div {
  grid-template-columns: 1fr;
  gap: 3px;
  align-content: center;
}

.weather-card .kv-grid span {
  color: rgba(148, 163, 184, 0.86);
  font-size: 11px;
}

.weather-card .kv-grid strong {
  color: #ffffff;
  font-size: 13px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 8px;
  font-size: 12px;
  background: #e0f2fe;
  color: #075985;
  white-space: nowrap;
}

.price-pill {
  justify-content: center;
  min-width: 62px;
  background: #f8fafc;
  color: #0f172a;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(248, 250, 252, 0.16);
}

.flight-card .flight-scene {
  min-height: 260px;
  background:
    radial-gradient(circle at 72% 18%, rgba(103, 232, 249, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(3, 7, 12, 0.94));
}

.flight-card .flight-scene::before {
  background:
    linear-gradient(90deg, rgba(148, 163, 184, 0.11) 1px, transparent 1px),
    linear-gradient(rgba(148, 163, 184, 0.1) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.38;
}

.flight-map-header {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 5;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.airport-code {
  min-width: 48px;
  min-height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(103, 232, 249, 0.32);
  border-radius: 7px;
  background: rgba(3, 7, 18, 0.74);
  color: #e0faff;
  font-size: 13px;
  font-weight: 850;
}

.destination-code {
  border-color: rgba(248, 113, 113, 0.48);
  color: #fff1f2;
}

.route-arrow {
  position: relative;
  height: 2px;
  background: linear-gradient(90deg, rgba(103, 232, 249, 0.18), rgba(103, 232, 249, 0.88), rgba(248, 113, 113, 0.92));
  box-shadow: 0 0 18px rgba(103, 232, 249, 0.4);
}

.route-arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid #fecaca;
  border-right: 2px solid #fecaca;
  transform: translateY(-50%) rotate(45deg);
}

.flight-corridor {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 48px;
  height: 104px;
  z-index: 4;
}

.route-pin {
  position: absolute;
  left: 4px;
  top: 36px;
  display: grid;
  justify-items: center;
  gap: 5px;
  color: rgba(203, 213, 225, 0.86);
  font-size: 11px;
  font-weight: 700;
}

.route-pin span,
.destination-pin span {
  width: 13px;
  height: 13px;
  display: block;
  border-radius: 50%;
  border: 3px solid #67e8f9;
  background: #071019;
  box-shadow: 0 0 18px rgba(103, 232, 249, 0.62);
}

.flight-arc {
  position: absolute;
  left: 42px;
  right: 52px;
  top: 28px;
  height: 76px;
  border-top: 2px dashed rgba(103, 232, 249, 0.84);
  border-radius: 100% 100% 0 0;
  transform: rotate(-5deg);
  transform-origin: left center;
}

.flight-arc::after {
  content: "";
  position: absolute;
  inset: -5px 0 auto;
  height: 10px;
  background: linear-gradient(90deg, transparent, rgba(103, 232, 249, 0.32), transparent);
  filter: blur(7px);
}

.plane-large {
  position: absolute;
  left: 62%;
  top: 8px;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  color: #ffffff;
  transform: translateX(-50%) rotate(12deg);
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.35)) drop-shadow(0 0 18px rgba(103, 232, 249, 0.62));
  animation: planeFloat 3.8s ease-in-out infinite;
}

.plane-large svg {
  position: relative;
  z-index: 2;
  width: 72px;
  height: 72px;
}

.plane-halo {
  position: absolute;
  inset: 17px;
  border-radius: 50%;
  background: rgba(103, 232, 249, 0.12);
  box-shadow: 0 0 28px rgba(103, 232, 249, 0.34);
}

.city-ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 128px;
  z-index: 3;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(2, 6, 23, 0.96) 58%),
    linear-gradient(110deg, rgba(20, 184, 166, 0.16), transparent 42%),
    linear-gradient(250deg, rgba(248, 113, 113, 0.18), transparent 34%);
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.city-ground::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(148, 163, 184, 0.16) 1px, transparent 1px),
    linear-gradient(rgba(148, 163, 184, 0.13) 1px, transparent 1px);
  background-size: 22px 18px;
  transform: perspective(180px) rotateX(58deg) scaleX(1.35);
  transform-origin: center bottom;
  opacity: 0.32;
}

.river-band {
  position: absolute;
  left: -18px;
  right: 52px;
  bottom: 34px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.12), rgba(103, 232, 249, 0.38), rgba(6, 182, 212, 0.12));
  transform: rotate(-7deg);
  box-shadow: 0 0 26px rgba(103, 232, 249, 0.2);
}

.runway {
  position: absolute;
  left: 18px;
  bottom: 16px;
  width: 112px;
  height: 22px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.88), rgba(51, 65, 85, 0.7));
  transform: rotate(-5deg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.32);
}

.runway span {
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.8);
}

.destination-pin {
  position: absolute;
  right: 19px;
  top: 8px;
  z-index: 7;
  display: grid;
  justify-items: center;
  gap: 5px;
  color: #fecaca;
  font-size: 11px;
  font-weight: 800;
}

.destination-pin span {
  width: 17px;
  height: 17px;
  border-color: #ef4444;
  box-shadow: 0 0 0 7px rgba(239, 68, 68, 0.14), 0 0 24px rgba(239, 68, 68, 0.72);
}

.flight-card .city-skyline {
  position: absolute;
  left: auto;
  right: 40px;
  bottom: 34px;
  width: 180px;
  height: 92px;
  z-index: 6;
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 5px;
}

.landmark {
  position: relative;
  display: block;
  flex: 0 0 auto;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(148, 163, 184, 0.74));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36), 0 0 18px rgba(226, 232, 240, 0.12);
}

.landmark.pearl {
  width: 14px;
  height: 78px;
  border-radius: 999px 999px 2px 2px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.9), rgba(148, 163, 184, 0.72));
}

.landmark.pearl i {
  position: absolute;
  left: 50%;
  display: block;
  border-radius: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #fb7185, #ef4444);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.45);
}

.landmark.pearl i:first-child {
  top: 7px;
  width: 23px;
  height: 23px;
}

.landmark.pearl i:last-child {
  top: 43px;
  width: 15px;
  height: 15px;
}

.landmark.jinmao {
  width: 22px;
  height: 58px;
  clip-path: polygon(50% 0, 100% 22%, 88% 100%, 12% 100%, 0 22%);
}

.landmark.swfc {
  width: 29px;
  height: 72px;
  clip-path: polygon(0 8%, 100% 0, 78% 100%, 14% 100%);
}

.landmark.swfc::before {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 8px;
  height: 7px;
  border-radius: 2px;
  background: rgba(15, 23, 42, 0.72);
}

.landmark.shanghai-tower {
  width: 21px;
  height: 90px;
  border-radius: 999px 999px 3px 3px;
  background: linear-gradient(105deg, rgba(248, 250, 252, 0.98), rgba(125, 211, 252, 0.66));
  transform: skewX(-5deg);
}

.landmark.block-a {
  width: 25px;
  height: 38px;
}

.landmark.block-b {
  width: 18px;
  height: 48px;
}

.city-label {
  position: absolute;
  right: 16px;
  bottom: 8px;
  z-index: 8;
  display: grid;
  justify-items: end;
  gap: 1px;
}

.city-label strong {
  color: #ffffff;
  font-size: 15px;
}

.city-label span {
  color: rgba(203, 213, 225, 0.7);
  font-size: 10px;
}

@keyframes planeFloat {
  0%,
  100% {
    transform: translateX(-50%) translateY(0) rotate(12deg);
  }

  50% {
    transform: translateX(-50%) translateY(-4px) rotate(14deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .plane-large {
    animation: none;
  }
}

.cards {
  gap: 12px;
}

.empty {
  min-height: 92px;
  display: grid;
  align-content: center;
  border-color: #cfd8e5;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(241, 245, 249, 0.72)),
    #f8fafc;
  color: #64748b;
  text-wrap: pretty;
}

.aiui-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--aiui-line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(11, 17, 24, 0.98), rgba(20, 28, 38, 0.96)),
    var(--aiui-panel);
  color: var(--aiui-ink);
  box-shadow: 0 22px 52px rgba(2, 6, 23, 0.22);
  isolation: isolate;
}

.aiui-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.86), transparent 82%);
}

.aiui-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 7px;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.result-card {
  padding: 14px;
}

.generic-aiui-card,
.task-card {
  padding: 14px;
}

.card-kicker {
  color: var(--aiui-faint);
  letter-spacing: 0;
}

.aiui-card h3 {
  color: #ffffff;
  text-wrap: balance;
}

.aiui-card p {
  color: var(--aiui-muted);
  text-wrap: pretty;
}

.aiui-lifecycle-hud {
  position: absolute;
  top: 10px;
  right: 46px;
  z-index: 12;
  display: grid;
  gap: 7px;
  width: min(282px, calc(100% - 92px));
  min-height: 44px;
  padding: 8px 10px 9px;
  border: 1px solid rgba(103, 232, 249, 0.18);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.72), rgba(8, 20, 32, 0.58)),
    radial-gradient(circle at 12% 50%, rgba(103, 232, 249, 0.14), transparent 45%);
  color: rgba(226, 232, 240, 0.74);
  font-size: 10px;
  font-weight: 800;
  box-shadow: 0 14px 34px rgba(2, 6, 23, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(14px);
}

.aiui-life-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.aiui-life-head strong {
  color: #f8fafc;
  font-size: 10px;
  letter-spacing: 0;
  white-space: nowrap;
}

.aiui-lifecycle-hud .aiui-hud-title {
  color: rgba(103, 232, 249, 0.78);
  letter-spacing: 0;
  white-space: nowrap;
}

.aiui-life-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.aiui-life-rail::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 8px;
  height: 1px;
  background: linear-gradient(90deg, rgba(103, 232, 249, 0.35), rgba(245, 158, 11, 0.18));
}

.aiui-life-rail [data-life-step] {
  position: relative;
  display: grid;
  gap: 2px;
  justify-items: center;
  min-width: 0;
  color: rgba(148, 163, 184, 0.8);
}

.aiui-life-rail i {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.8);
  box-shadow: inset 0 0 0 4px rgba(15, 23, 42, 0.8);
}

.aiui-life-rail b {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  color: inherit;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.aiui-life-rail [data-life-step].complete i {
  border-color: rgba(34, 197, 94, 0.7);
  background: rgba(34, 197, 94, 0.55);
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.22);
}

.aiui-life-rail [data-life-step].active {
  color: #ffffff;
}

.aiui-life-rail [data-life-step].active i {
  border-color: rgba(103, 232, 249, 0.92);
  background: #67e8f9;
  box-shadow: 0 0 0 6px rgba(103, 232, 249, 0.12), 0 0 26px rgba(103, 232, 249, 0.46);
  animation: aiui-life-pulse 1.4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes aiui-life-pulse {
  0% {
    transform: scale(0.88);
    opacity: 0.72;
  }

  42% {
    transform: scale(1.08);
    opacity: 1;
  }

  100% {
    transform: scale(0.9);
    opacity: 0.78;
  }
}

.aiui-card[data-aiui-phase="mounting"] {
  border-color: rgba(103, 232, 249, 0.34);
  box-shadow: 0 24px 58px rgba(2, 6, 23, 0.26), 0 0 0 1px rgba(103, 232, 249, 0.16);
}

.aiui-card[data-aiui-phase="mounting"] .aiui-lifecycle-hud {
  transform-origin: 100% 0;
  animation: aiui-hud-materialize 0.62s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes aiui-hud-materialize {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.96);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.aiui-card[data-aiui-phase="mounted"] {
  border-color: rgba(103, 232, 249, 0.24);
}

.aiui-card[data-aiui-phase="dwell"] {
  border-color: rgba(34, 197, 94, 0.32);
}

.aiui-card[data-aiui-phase="action"] {
  border-color: rgba(245, 158, 11, 0.42);
  box-shadow: 0 24px 58px rgba(2, 6, 23, 0.28), 0 0 0 1px rgba(245, 158, 11, 0.16);
}

.live-dot {
  width: 10px;
  height: 10px;
  background: var(--aiui-red);
  box-shadow: 0 0 0 7px rgba(239, 68, 68, 0.12), 0 0 20px rgba(239, 68, 68, 0.64);
}

.flight-card {
  background:
    radial-gradient(circle at 88% 10%, rgba(239, 68, 68, 0.2), transparent 24%),
    linear-gradient(145deg, #070b11 0%, #111a24 55%, #07090d 100%);
}

.runtime-cortex-card {
  background:
    radial-gradient(circle at 78% 12%, rgba(103, 232, 249, 0.18), transparent 28%),
    radial-gradient(circle at 14% 86%, rgba(245, 158, 11, 0.12), transparent 28%),
    linear-gradient(145deg, #05080d 0%, #101722 58%, #05070a 100%);
}

.cortex-scene {
  position: relative;
  z-index: 2;
  min-height: 310px;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid rgba(103, 232, 249, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 45%, rgba(103, 232, 249, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.62), rgba(2, 6, 23, 0.96));
}

.cortex-scene canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cortex-readout {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.cortex-readout div {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(103, 232, 249, 0.14);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.54);
  backdrop-filter: blur(12px);
}

.cortex-readout span,
.cortex-readout strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cortex-readout span {
  color: rgba(148, 163, 184, 0.84);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.cortex-readout strong {
  margin-top: 3px;
  color: #f8fafc;
  font-size: 12px;
}

.flight-card .flight-scene {
  min-height: 276px;
  margin-top: 2px;
  border-color: rgba(103, 232, 249, 0.18);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.52), rgba(2, 6, 23, 0.94)),
    radial-gradient(circle at 70% 26%, rgba(103, 232, 249, 0.16), transparent 30%);
}

.flight-map-header {
  top: 12px;
}

.airport-code {
  min-width: 50px;
  min-height: 30px;
  border-color: rgba(103, 232, 249, 0.42);
  background: rgba(3, 7, 18, 0.82);
  font-size: 12px;
}

.destination-code {
  border-color: rgba(239, 68, 68, 0.58);
}

.flight-corridor {
  top: 48px;
  height: 114px;
}

.flight-arc {
  left: 50px;
  right: 54px;
  top: 34px;
  height: 82px;
  border-top-width: 2px;
}

.plane-large {
  left: 61%;
  top: 13px;
  width: 96px;
  height: 96px;
}

.plane-large svg {
  width: 78px;
  height: 78px;
}

.plane-halo {
  inset: 18px;
}

.city-ground {
  height: 136px;
}

.flight-card .city-skyline {
  right: 36px;
  bottom: 39px;
  width: 192px;
  height: 98px;
  gap: 6px;
}

.city-label {
  bottom: 10px;
}

.flight-hero-metrics {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.flight-hero-metrics div {
  min-width: 0;
  padding: 10px 8px;
  display: grid;
  gap: 4px;
}

.flight-hero-metrics div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.09);
}

.flight-hero-metrics span {
  color: var(--aiui-faint);
  font-size: 10px;
}

.flight-hero-metrics strong {
  color: #ffffff;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flight-list {
  gap: 8px;
}

.flight-card .flight-row {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
}

.flight-card .flight-row:first-child {
  background: rgba(103, 232, 249, 0.08);
  border-color: rgba(103, 232, 249, 0.2);
}

.price-pill {
  min-height: 25px;
  background: #f8fafc;
  color: #07111f;
}

.flight-card .flight-scene {
  min-height: 318px;
  border-color: rgba(103, 232, 249, 0.24);
  background:
    radial-gradient(circle at 63% 29%, rgba(103, 232, 249, 0.18), transparent 25%),
    linear-gradient(180deg, rgba(12, 21, 32, 0.9) 0%, rgba(3, 7, 15, 0.98) 72%),
    #050912;
}

.flight-card .flight-scene::before {
  background:
    linear-gradient(90deg, rgba(148, 163, 184, 0.095) 1px, transparent 1px),
    linear-gradient(rgba(148, 163, 184, 0.085) 1px, transparent 1px);
  background-size: 31px 31px;
  opacity: 0.34;
}

.flight-card .flight-scene::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 116px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(103, 232, 249, 0.2), rgba(239, 68, 68, 0.18), transparent);
  z-index: 3;
}

.flight-card .flight-corridor {
  top: 55px;
  height: 126px;
}

.flight-card .flight-arc {
  left: 50px;
  right: 58px;
  top: 26px;
  height: 94px;
  border-top: 0;
  transform: none;
}

.flight-card .flight-arc::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 2px dashed rgba(125, 211, 252, 0.72);
  border-radius: 100% 100% 0 0;
  transform: rotate(-4deg);
}

.flight-card .flight-arc i {
  position: absolute;
  left: 26%;
  right: 12%;
  top: 33px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.5), rgba(248, 113, 113, 0.45), transparent);
  filter: blur(6px);
}

.airliner-large {
  left: 57%;
  top: 36px;
  width: 170px;
  height: 86px;
  color: #ffffff;
  transform: translateX(-50%) rotate(3deg);
  filter:
    drop-shadow(0 18px 28px rgba(0, 0, 0, 0.46))
    drop-shadow(0 0 18px rgba(103, 232, 249, 0.36));
}

.airliner-large svg {
  width: 168px;
  height: 76px;
  overflow: visible;
}

.airliner-body {
  fill: url("#airlinerBody");
}

.airliner-nose-light {
  fill: rgba(255, 255, 255, 0.8);
}

.airliner-main-wing,
.airliner-upper-wing,
.airliner-tail-fin,
.airliner-tail-wing {
  fill: url("#airlinerWing");
  stroke: rgba(255, 255, 255, 0.78);
  stroke-width: 2;
  stroke-linejoin: round;
}

.airliner-window-strip {
  fill: none;
  stroke: rgba(15, 23, 42, 0.32);
  stroke-width: 3;
  stroke-linecap: round;
}

.airliner-large circle,
.airliner-cockpit {
  fill: rgba(15, 23, 42, 0.58);
}

.airliner-shadow {
  fill: none;
  stroke: rgba(103, 232, 249, 0.28);
  stroke-width: 8;
  stroke-linecap: round;
  filter: blur(6px);
}

.airliner-large .plane-halo {
  inset: 8px 18px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 62% 50%, rgba(103, 232, 249, 0.34), transparent 46%),
    transparent;
  filter: blur(3px);
}

.city-ground {
  height: 166px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.36), rgba(2, 6, 23, 0.98)),
    radial-gradient(circle at 72% 58%, rgba(239, 68, 68, 0.16), transparent 32%);
}

.huangpu-river {
  position: absolute;
  left: -18px;
  right: -18px;
  bottom: 18px;
  height: 58px;
  z-index: 3;
  transform: skewY(-6deg);
  background:
    linear-gradient(92deg, rgba(14, 165, 233, 0.12), rgba(125, 211, 252, 0.28), rgba(15, 23, 42, 0.06));
  border-top: 1px solid rgba(125, 211, 252, 0.14);
}

.huangpu-river span {
  position: absolute;
  inset: 16px 18px auto 36px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(226, 232, 240, 0.32), transparent);
  filter: blur(1px);
}

.flight-runway {
  z-index: 5;
  left: 22px;
  right: auto;
  bottom: 26px;
  width: 124px;
  height: 22px;
  border-radius: 6px;
  transform: rotate(-5deg);
  background: rgba(15, 23, 42, 0.8);
}

.flight-runway span {
  background: rgba(248, 250, 252, 0.72);
}

.flight-card .destination-pin {
  right: 24px;
  top: 28px;
  z-index: 9;
}

.flight-card .destination-pin span {
  width: 16px;
  height: 16px;
  border-width: 4px;
  background: rgba(7, 16, 25, 0.88);
}

.flight-card .shanghai-skyline {
  right: 44px;
  bottom: 44px;
  width: 212px;
  height: 126px;
  gap: 5px;
  align-items: end;
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.36));
}

.shanghai-skyline::before {
  content: "";
  position: absolute;
  left: -14px;
  right: -10px;
  bottom: -8px;
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(103, 232, 249, 0.1), rgba(248, 250, 252, 0.26), rgba(239, 68, 68, 0.1));
  filter: blur(6px);
}

.flight-card .landmark {
  overflow: visible;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(148, 163, 184, 0.78) 62%, rgba(71, 85, 105, 0.82));
}

.flight-card .landmark.pearl {
  width: 42px;
  height: 118px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.flight-card .landmark.pearl .pearl-needle {
  position: absolute;
  left: 50%;
  top: auto;
  bottom: 20px;
  width: 5px;
  height: 98px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #f8fafc, #94a3b8);
}

.flight-card .landmark.pearl .pearl-column {
  position: absolute;
  left: 50%;
  top: auto;
  bottom: 0;
  width: 13px;
  height: 58px;
  border-radius: 999px 999px 2px 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(148, 163, 184, 0.78));
}

.flight-card .landmark.pearl .pearl-sphere {
  position: absolute;
  left: 50%;
  display: block;
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle at 35% 30%, #fecaca, #ef4444 58%, #7f1d1d);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.46);
}

.flight-card .landmark.pearl .pearl-sphere.top {
  top: 9px;
  width: 20px;
  height: 20px;
}

.flight-card .landmark.pearl .pearl-sphere.main {
  top: auto;
  bottom: 35px;
  width: 37px;
  height: 37px;
}

.flight-card .landmark.pearl .pearl-base {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 0;
  height: 9px;
  border-radius: 999px 999px 2px 2px;
  background: rgba(226, 232, 240, 0.86);
}

.flight-card .landmark.jinmao {
  width: 27px;
  height: 76px;
  clip-path: polygon(50% 0, 78% 12%, 88% 100%, 12% 100%, 22% 12%);
}

.landmark.jinmao i {
  position: absolute;
  left: 6px;
  right: 6px;
  height: 2px;
  background: rgba(15, 23, 42, 0.22);
}

.landmark.jinmao i:nth-child(1) {
  top: 22px;
}

.landmark.jinmao i:nth-child(2) {
  top: 38px;
}

.landmark.jinmao i:nth-child(3) {
  top: 54px;
}

.flight-card .landmark.swfc {
  width: 35px;
  height: 96px;
  clip-path: polygon(12% 4%, 100% 0, 82% 100%, 0 100%);
}

.flight-card .landmark.swfc i,
.flight-card .landmark.swfc::before {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 13px;
  height: 9px;
  border-radius: 2px;
  background: rgba(15, 23, 42, 0.66);
}

.flight-card .landmark.shanghai-tower {
  width: 35px;
  height: 118px;
  border-radius: 999px 999px 4px 4px;
  transform: skewX(-5deg);
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.98), rgba(191, 219, 254, 0.78) 42%, rgba(56, 189, 248, 0.34));
}

.flight-card .landmark.shanghai-tower i {
  position: absolute;
  inset: 8px 10px 8px 13px;
  border-radius: 999px;
  border-left: 2px solid rgba(15, 23, 42, 0.14);
  transform: skewX(9deg);
}

.flight-card .landmark.block-a {
  width: 31px;
  height: 52px;
  border-radius: 5px 5px 0 0;
}

.flight-card .landmark.block-b {
  width: 26px;
  height: 64px;
  border-radius: 6px 6px 0 0;
}

.flight-card .city-label {
  right: 18px;
  bottom: 14px;
}

.flight-card .city-label strong {
  font-size: 22px;
}

.weather-card {
  background:
    radial-gradient(circle at 24% 8%, rgba(245, 158, 11, 0.2), transparent 28%),
    radial-gradient(circle at 92% 12%, rgba(103, 232, 249, 0.14), transparent 30%),
    linear-gradient(145deg, #080d12 0%, #111923 58%, #07090d 100%);
}

.weather-card .weather-scene,
.weather-orbital-scene {
  min-height: 230px;
  margin-top: 2px;
  border-color: rgba(245, 158, 11, 0.18);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.52), rgba(2, 6, 23, 0.92)),
    radial-gradient(circle at 28% 34%, rgba(245, 158, 11, 0.18), transparent 30%);
}

.weather-map-header {
  position: absolute;
  top: 12px;
  left: 14px;
  right: 14px;
  z-index: 6;
  display: flex;
  justify-content: space-between;
  color: rgba(226, 232, 240, 0.78);
  font-size: 11px;
  font-weight: 800;
}

.weather-orb {
  position: absolute;
  left: 24px;
  top: 46px;
  width: 130px;
  height: 130px;
  display: grid;
  place-items: center;
}

.weather-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ring-a {
  inset: 0;
  border-color: rgba(245, 158, 11, 0.34);
}

.ring-b {
  inset: 18px;
  border-color: rgba(103, 232, 249, 0.24);
  transform: rotate(18deg);
}

.ring-c {
  inset: 36px;
  border-color: rgba(255, 255, 255, 0.12);
}

.weather-orb .sun-core {
  left: 35px;
  top: 28px;
  width: 50px;
  height: 50px;
}

.weather-orb .cloud-a {
  left: 38px;
  right: auto;
  top: 58px;
  width: 78px;
}

.weather-orb .cloud-b {
  left: 68px;
  right: auto;
  top: 82px;
  width: 56px;
}

.weather-orb .rain-lines {
  left: 72px;
  top: 98px;
}

.weather-readout {
  position: absolute;
  right: 18px;
  top: 55px;
  z-index: 6;
  display: grid;
  justify-items: end;
  gap: 4px;
}

.weather-readout strong {
  color: #ffffff;
  font-size: 32px;
  line-height: 1;
}

.weather-readout span {
  color: var(--aiui-muted);
  font-size: 12px;
}

.rain-track {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.rain-track span {
  display: block;
  width: var(--rain-level);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(103, 232, 249, 0.64), rgba(245, 158, 11, 0.74));
  box-shadow: 0 0 18px rgba(103, 232, 249, 0.34);
}

.weather-hero-metrics {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  padding: 10px 0;
}

.weather-temp-block {
  display: grid;
  gap: 3px;
}

.weather-temp-block span {
  color: var(--aiui-faint);
  font-size: 10px;
}

.weather-temp-block strong {
  color: #ffffff;
  font-size: 20px;
}

.weather-hero-metrics p {
  margin: 0;
  color: rgba(226, 232, 240, 0.82);
  font-size: 12px;
  line-height: 1.55;
}

.weather-card .weather-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.weather-card .weather-grid div {
  min-height: 48px;
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
}

.aiui-webgl-scene,
.aiui-pixi-scene {
  isolation: isolate;
  contain: layout paint;
}

.flight-three-scene {
  min-height: 360px;
  margin-top: 2px;
  border-color: rgba(103, 232, 249, 0.26);
  background:
    radial-gradient(circle at 70% 30%, rgba(239, 68, 68, 0.15), transparent 26%),
    radial-gradient(circle at 34% 38%, rgba(103, 232, 249, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(8, 16, 27, 0.98) 0%, rgba(2, 6, 23, 0.98) 100%);
}

.generative-stage .flight-three-scene {
  min-height: clamp(430px, 40vw, 560px);
}

.flight-three-scene::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  height: 34%;
  background:
    linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.62)),
    linear-gradient(90deg, rgba(103, 232, 249, 0.08), rgba(239, 68, 68, 0.08));
  pointer-events: none;
}

.flight-three-canvas,
.weather-pixi-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
}

.flight-scene-glow {
  position: absolute;
  inset: 12% 8% 10%;
  z-index: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle at 64% 34%, rgba(103, 232, 249, 0.26), transparent 38%),
    radial-gradient(circle at 80% 58%, rgba(239, 68, 68, 0.22), transparent 34%);
  filter: blur(18px);
  opacity: 0.85;
}

.flight-map-header-overlay,
.weather-map-header-overlay {
  z-index: 7;
  pointer-events: none;
}

.flight-life-strip {
  position: absolute;
  top: 54px;
  left: 18px;
  right: 18px;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  pointer-events: none;
}

.flight-life-strip span {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(3, 7, 18, 0.36);
  color: rgba(203, 213, 225, 0.58);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  transition: transform 0.52s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.52s ease, color 0.52s ease, background 0.52s ease;
}

.flight-life-strip b {
  color: rgba(103, 232, 249, 0.72);
  font-size: 9px;
}

.flight-card[data-aiui-phase="mounting"] [data-flight-life="mounted"],
.flight-card[data-aiui-phase="mounted"] [data-flight-life="mounted"],
.flight-card[data-aiui-phase="dwell"] [data-flight-life="mounted"],
.flight-card[data-aiui-phase="dwell"] [data-flight-life="dwell"],
.flight-card[data-aiui-phase="action"] [data-flight-life] {
  border-color: rgba(103, 232, 249, 0.32);
  background: rgba(8, 28, 42, 0.58);
  color: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(8, 47, 73, 0.18);
}

.flight-card[data-aiui-phase="action"] [data-flight-life="action"] {
  border-color: rgba(245, 158, 11, 0.46);
  background: rgba(69, 42, 9, 0.42);
}

.scene-copy {
  position: absolute;
  z-index: 8;
  display: grid;
  gap: 3px;
  min-width: 76px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(3, 7, 18, 0.42);
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.28);
  backdrop-filter: blur(10px);
}

.scene-copy span {
  color: rgba(203, 213, 225, 0.78);
  font-size: 10px;
  font-weight: 800;
}

.scene-copy strong {
  color: #f8fafc;
  font-size: 17px;
  line-height: 1;
}

.flight-origin-copy {
  left: 18px;
  bottom: 18px;
}

.flight-destination-copy {
  right: 18px;
  bottom: 18px;
  justify-items: end;
  text-align: right;
}

.webgl-fallback {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  color: rgba(226, 232, 240, 0.66);
  font-size: 12px;
  letter-spacing: 0;
  background: rgba(2, 6, 23, 0.18);
  transition: opacity 0.28s ease;
}

.visual-ready .webgl-fallback {
  opacity: 0;
  pointer-events: none;
}

.weather-pixi-scene {
  min-height: 250px;
  margin-top: 2px;
  border-color: rgba(245, 158, 11, 0.22);
  background:
    radial-gradient(circle at 70% 28%, rgba(103, 232, 249, 0.13), transparent 28%),
    radial-gradient(circle at 28% 35%, rgba(245, 158, 11, 0.2), transparent 33%),
    linear-gradient(180deg, rgba(9, 16, 23, 0.95), rgba(2, 6, 23, 0.97));
}

.generative-stage .weather-pixi-scene {
  min-height: clamp(350px, 34vw, 460px);
}

.weather-pixi-scene::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  height: 38%;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.68));
  pointer-events: none;
}

.weather-pixi-scene .weather-readout {
  z-index: 8;
  right: 18px;
  top: 58px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(3, 7, 18, 0.32);
  backdrop-filter: blur(10px);
}

.weather-pixi-scene .weather-readout strong {
  font-size: 34px;
}

.generative-stage .weather-pixi-scene .weather-readout {
  right: 24px;
  top: 70px;
  padding: 11px 14px;
}

.generative-stage .weather-pixi-scene .weather-readout strong {
  font-size: 44px;
}

.generative-stage .flight-hero-metrics strong,
.generative-stage .weather-temp-block strong {
  font-size: 17px;
}

.generative-stage .flight-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.generative-stage .flight-card .flight-row {
  min-height: 76px;
  align-content: center;
}

.pixi-rain-track {
  z-index: 8;
  bottom: 20px;
}

@media (max-width: 760px) {
  .flight-three-scene {
    min-height: 330px;
  }

  .weather-pixi-scene {
    min-height: 230px;
  }

  .scene-copy {
    padding: 7px 8px;
  }

  .scene-copy strong {
    font-size: 15px;
  }
}

.generic-card-header {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 5px;
  margin-bottom: 12px;
}

.generic-card-header h3 {
  margin: 0;
  font-size: 15px;
}

.aiui-list {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.aiui-list-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.aiui-list-row span {
  color: var(--aiui-faint);
  font-size: 11px;
  font-weight: 800;
}

.aiui-list-row strong {
  color: rgba(248, 250, 252, 0.92);
  font-size: 13px;
  line-height: 1.45;
}

.generic-card-body {
  position: relative;
  z-index: 2;
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  line-height: 1.55;
}

.mcp-card {
  background:
    radial-gradient(circle at 88% 12%, rgba(45, 212, 191, 0.18), transparent 28%),
    radial-gradient(circle at 8% 88%, rgba(99, 102, 241, 0.16), transparent 30%),
    linear-gradient(145deg, #071018 0%, #111827 58%, #05070a 100%);
}

.rail-card {
  background:
    radial-gradient(circle at 90% 10%, rgba(56, 189, 248, 0.16), transparent 30%),
    radial-gradient(circle at 10% 90%, rgba(34, 197, 94, 0.14), transparent 28%),
    linear-gradient(145deg, #071018 0%, #0f172a 58%, #05070a 100%);
}

.rail-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.rail-hero-metrics div {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.rail-hero-metrics span {
  display: block;
  font-size: 11px;
  color: rgba(203, 213, 225, 0.72);
}

.rail-hero-metrics strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
}

.rail-list {
  display: grid;
  gap: 8px;
}

.rail-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.rail-code strong {
  display: block;
  font-size: 15px;
}

.rail-code small,
.rail-time,
.rail-seats {
  color: rgba(203, 213, 225, 0.78);
  font-size: 12px;
}

.rail-type-tag {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  color: #7dd3fc;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.stock-card {
  background:
    radial-gradient(circle at 88% 12%, rgba(250, 204, 21, 0.14), transparent 28%),
    radial-gradient(circle at 10% 88%, rgba(34, 197, 94, 0.12), transparent 28%),
    linear-gradient(145deg, #071018 0%, #111827 58%, #05070a 100%);
}

.music-card {
  background:
    radial-gradient(circle at 12% 18%, rgba(168, 85, 247, 0.18), transparent 30%),
    radial-gradient(circle at 88% 82%, rgba(59, 130, 246, 0.16), transparent 32%),
    linear-gradient(145deg, #12081f 0%, #1a1030 52%, #09050f 100%);
}

.music-player-shell {
  display: grid;
  gap: 14px;
  margin-top: 12px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.music-hero {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.music-cover-stage {
  position: relative;
  width: 120px;
  height: 120px;
}

.music-cover,
.music-disc {
  position: absolute;
  inset: 0;
  width: 120px;
  height: 120px;
  border-radius: 18px;
  object-fit: cover;
}

.music-disc {
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.18), transparent 24%),
    conic-gradient(from 210deg, #312e81, #7c3aed, #db2777, #312e81);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.music-cover:not([hidden]) + .music-disc {
  display: none;
}

.music-disc-hole {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #0b0614;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.music-disc.is-playing {
  animation: music-disc-spin 8s linear infinite;
}

.music-visualizer {
  position: absolute;
  right: -8px;
  bottom: -8px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0.45;
}

.music-visualizer span {
  display: block;
  width: 3px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #c4b5fd, #60a5fa);
}

.music-visualizer.is-active span {
  animation: music-bar-dance 0.9s ease-in-out infinite;
}

.music-visualizer.is-active span:nth-child(2) { animation-delay: 0.12s; }
.music-visualizer.is-active span:nth-child(3) { animation-delay: 0.24s; }
.music-visualizer.is-active span:nth-child(4) { animation-delay: 0.36s; }
.music-visualizer.is-active span:nth-child(5) { animation-delay: 0.48s; }

.music-meta {
  display: grid;
  gap: 6px;
}

.music-track-name {
  font-size: 20px;
  line-height: 1.2;
}

.music-artist,
.music-album,
.music-status {
  color: rgba(203, 213, 225, 0.78);
  font-size: 12px;
}

.music-status {
  display: inline-flex;
  width: fit-content;
  margin-top: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.music-player-shell[data-demo="true"] .music-status {
  color: #fde68a;
  background: rgba(250, 204, 21, 0.12);
  border-color: rgba(250, 204, 21, 0.18);
}

.music-progress {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 10px;
  align-items: center;
}

.music-time-current,
.music-time-total {
  font-size: 11px;
  color: rgba(203, 213, 225, 0.72);
  text-align: center;
}

.music-progress-bar {
  position: relative;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  overflow: hidden;
}

.music-progress-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #a78bfa, #60a5fa);
}

.music-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.music-control-btn {
  min-width: 84px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  font-size: 12px;
  cursor: pointer;
}

.music-control-btn-primary {
  min-width: 108px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.92), rgba(37, 99, 235, 0.92));
  border-color: rgba(255, 255, 255, 0.12);
  font-weight: 700;
}

.music-queue {
  display: grid;
  gap: 8px;
}

.music-queue-list {
  display: grid;
  gap: 8px;
}

.music-queue-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.music-queue-row.is-active {
  border-color: rgba(167, 139, 250, 0.42);
  background: rgba(124, 58, 237, 0.12);
}

.music-queue-row strong {
  display: block;
  font-size: 13px;
}

.music-queue-row small,
.music-queue-row em {
  color: rgba(203, 213, 225, 0.72);
  font-size: 11px;
  font-style: normal;
}

@keyframes music-disc-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes music-bar-dance {
  0%, 100% { height: 8px; }
  50% { height: 22px; }
}

.stock-hero {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.stock-price-block {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stock-symbol {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.12);
  color: #fde68a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.stock-price {
  font-size: 28px;
  line-height: 1;
}

.stock-currency {
  color: rgba(203, 213, 225, 0.72);
  font-size: 12px;
}

.stock-change {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}

.stock-change-up {
  background: rgba(34, 197, 94, 0.16);
  color: #86efac;
}

.stock-change-down {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
}

.stock-change-flat {
  background: rgba(148, 163, 184, 0.14);
  color: rgba(226, 232, 240, 0.82);
}

.stock-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stock-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(203, 213, 225, 0.78);
  font-size: 11px;
}

.stock-metrics,
.stock-kline-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.stock-kline-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stock-metrics div,
.stock-kline-summary div {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stock-metrics span,
.stock-kline-summary span {
  display: block;
  font-size: 11px;
  color: rgba(203, 213, 225, 0.72);
}

.stock-metrics strong,
.stock-kline-summary strong {
  display: block;
  margin-top: 4px;
  font-size: 15px;
}

.stock-sparkline-wrap {
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.stock-sparkline {
  display: block;
  width: 100%;
  height: 64px;
}

.stock-sparkline polyline {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stock-sparkline-up polyline {
  stroke: #4ade80;
}

.stock-sparkline-down polyline {
  stroke: #f87171;
}

.stock-sparkline-wrap-up {
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.08);
}

.stock-sparkline-wrap-down {
  box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.08);
}

.stock-bar-list {
  display: grid;
  gap: 8px;
}

.stock-bar-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) repeat(3, minmax(0, 0.8fr));
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.stock-bar-date,
.stock-bar-open,
.stock-bar-close,
.stock-bar-range {
  color: rgba(203, 213, 225, 0.78);
  font-size: 12px;
}

.stock-bar-close {
  color: #fde68a;
  font-weight: 700;
}

.stock-excerpt {
  margin-top: 10px;
}

.mcp-card-header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.mcp-card-header .card-kicker,
.mcp-card-header h3 {
  grid-column: 1;
}

.mcp-card-header small {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: rgba(203, 213, 225, 0.68);
  font-size: 11px;
  font-weight: 700;
}

.mcp-source {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  margin-bottom: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.58);
}

.mcp-source span,
.mcp-list-row span,
.mcp-metric span {
  color: #67e8f9;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.mcp-source a {
  color: rgba(248, 250, 252, 0.9);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.mcp-list {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.mcp-list-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: inherit;
  text-decoration: none;
}

.mcp-list-row strong {
  display: block;
  color: rgba(248, 250, 252, 0.94);
  font-size: 13px;
  line-height: 1.4;
}

.mcp-list-row small {
  display: block;
  margin-top: 2px;
  color: rgba(203, 213, 225, 0.68);
  font-size: 11px;
}

.mcp-list-row p {
  margin: 6px 0 0;
  color: rgba(226, 232, 240, 0.72);
  font-size: 12px;
  line-height: 1.45;
}

.mcp-metric {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(103, 232, 249, 0.16);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.18), rgba(15, 23, 42, 0.68));
}

.mcp-metric strong {
  color: #ffffff;
  font-size: 26px;
  line-height: 1.05;
}

.mcp-metric small {
  color: rgba(203, 213, 225, 0.68);
  overflow-wrap: anywhere;
}

.task-card .task-row {
  border-top: 0;
  padding-top: 0;
}

.task-card .pill,
.generic-aiui-card .pill {
  background: rgba(103, 232, 249, 0.13);
  color: #cffafe;
}

.itinerary-card {
  background:
    radial-gradient(circle at 86% 14%, rgba(103, 232, 249, 0.18), transparent 25%),
    radial-gradient(circle at 14% 82%, rgba(245, 158, 11, 0.14), transparent 28%),
    linear-gradient(145deg, #080c11 0%, #101821 58%, #06080c 100%);
}

.itinerary-hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(120px, 0.65fr);
  gap: 12px;
  align-items: stretch;
  margin-top: 12px;
}

.itinerary-city-scene {
  position: relative;
  min-height: 178px;
  overflow: hidden;
  border: 1px solid rgba(103, 232, 249, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(14, 21, 30, 0.62), rgba(2, 6, 23, 0.96)),
    radial-gradient(circle at 72% 20%, rgba(103, 232, 249, 0.14), transparent 34%);
}

.itinerary-sun {
  position: absolute;
  right: 28px;
  top: 22px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 158, 11, 0.78));
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.32);
}

.itinerary-tower {
  position: absolute;
  bottom: 42px;
  width: 26px;
  border-radius: 7px 7px 2px 2px;
  background: linear-gradient(180deg, rgba(226, 232, 240, 0.82), rgba(71, 85, 105, 0.62));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.tower-a {
  left: 38px;
  height: 86px;
}

.tower-b {
  left: 78px;
  height: 118px;
  border-radius: 999px 999px 2px 2px;
}

.tower-c {
  left: 122px;
  height: 72px;
}

.itinerary-road {
  position: absolute;
  left: -16px;
  right: -16px;
  bottom: 18px;
  height: 28px;
  transform: skewX(-14deg);
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.82), rgba(103, 232, 249, 0.78));
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.48);
}

.itinerary-road i {
  position: absolute;
  top: 12px;
  width: 36px;
  height: 2px;
  background: rgba(255, 255, 255, 0.72);
}

.itinerary-road i:nth-child(1) {
  left: 28%;
}

.itinerary-road i:nth-child(2) {
  left: 50%;
}

.itinerary-road i:nth-child(3) {
  left: 72%;
}

.itinerary-pin {
  position: absolute;
  left: 18px;
  top: 16px;
  display: inline-grid;
  min-width: 58px;
  min-height: 28px;
  place-items: center;
  border: 1px solid rgba(103, 232, 249, 0.28);
  border-radius: 999px;
  background: rgba(3, 7, 18, 0.7);
  color: #e0f2fe;
  font-size: 12px;
  font-weight: 800;
}

.itinerary-readout {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 178px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.itinerary-readout span,
.itinerary-readout small,
.itinerary-route-summary span {
  color: var(--aiui-faint);
  font-size: 11px;
}

.itinerary-readout strong {
  color: #ffffff;
  font-size: 20px;
  line-height: 1.2;
}

.itinerary-route-summary {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.itinerary-route-summary div {
  display: grid;
  gap: 4px;
  padding: 10px;
  background: rgba(3, 7, 18, 0.58);
}

.itinerary-route-summary strong {
  color: rgba(248, 250, 252, 0.96);
  font-size: 13px;
}

.itinerary-timeline {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0;
  margin-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.itinerary-step {
  display: grid;
  grid-template-columns: 52px 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.itinerary-time {
  color: #cffafe;
  font-size: 12px;
  font-weight: 900;
}

.itinerary-dot {
  width: 10px;
  height: 10px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--aiui-red);
  box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.1);
}

.itinerary-step strong {
  display: block;
  color: #ffffff;
  font-size: 14px;
}

.itinerary-step small {
  display: block;
  margin-top: 2px;
  color: var(--aiui-faint);
  font-size: 11px;
}

.itinerary-step p {
  margin: 5px 0 0;
  color: rgba(226, 232, 240, 0.78);
  font-size: 12px;
  line-height: 1.52;
}

.itinerary-reminders,
.aiui-actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.itinerary-reminders span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  border: 1px solid rgba(103, 232, 249, 0.15);
  border-radius: 999px;
  background: rgba(103, 232, 249, 0.08);
  color: #dbeafe;
  font-size: 11px;
  font-weight: 750;
}

.aiui-action {
  min-height: 30px;
  border: 1px solid rgba(248, 250, 252, 0.16);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.08);
  color: rgba(248, 250, 252, 0.92);
  padding: 0 11px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.aiui-action:hover {
  border-color: rgba(103, 232, 249, 0.42);
  background: rgba(103, 232, 249, 0.14);
}

.aiui-dismiss {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 8;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(248, 250, 252, 0.14);
  border-radius: 50%;
  background: rgba(2, 6, 23, 0.44);
  color: rgba(248, 250, 252, 0.78);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  display: grid;
  place-items: center;
  backdrop-filter: blur(10px);
}

.aiui-dismiss:hover {
  border-color: rgba(103, 232, 249, 0.45);
  background: rgba(103, 232, 249, 0.16);
  color: #ffffff;
}

.map-card {
  background: linear-gradient(160deg, rgba(2, 132, 199, 0.18), rgba(15, 23, 42, 0.92));
}

.map-hero-metrics {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.map-hero-metrics div {
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 12px;
  padding: 10px;
  background: rgba(2, 6, 23, 0.32);
}

.map-hero-metrics span {
  display: block;
  color: rgba(191, 219, 254, 0.82);
  font-size: 12px;
}

.map-hero-metrics strong {
  display: block;
  margin-top: 6px;
  color: #f8fafc;
  font-size: 14px;
}

.map-step-list {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.map-step-row {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 8px;
  align-items: start;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(15, 23, 42, 0.34);
}

.map-step-row span {
  color: #7dd3fc;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.map-step-row p {
  margin: 0;
  color: #dbeafe;
  font-size: 13px;
  line-height: 1.45;
}

.memo-card,
.reminder-card {
  background:
    radial-gradient(circle at 80% 12%, rgba(103, 232, 249, 0.16), transparent 28%),
    linear-gradient(145deg, #070b11 0%, #111827 55%, #07090d 100%);
}

.memo-body {
  position: relative;
  z-index: 2;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(103, 232, 249, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.54));
}

.memo-body p {
  margin: 0;
  color: #f8fafc;
  font-size: 17px;
  line-height: 1.55;
}

.memo-tags {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.memo-tags span,
.memo-follow-up {
  border: 1px solid rgba(103, 232, 249, 0.14);
  border-radius: 999px;
  background: rgba(103, 232, 249, 0.08);
  color: rgba(226, 232, 240, 0.86);
}

.memo-tags span {
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 800;
}

.memo-follow-up {
  margin: 12px 0 0;
  padding: 9px 11px;
  font-size: 12px;
}

.reminder-dial {
  position: relative;
  z-index: 2;
  min-height: 146px;
  display: grid;
  place-items: center;
  margin-top: 12px;
  border: 1px solid rgba(103, 232, 249, 0.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 50%, rgba(103, 232, 249, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.58), rgba(2, 6, 23, 0.9));
  overflow: hidden;
}

.reminder-dial span {
  position: absolute;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 1px solid rgba(103, 232, 249, 0.28);
  box-shadow: inset 0 0 34px rgba(103, 232, 249, 0.12), 0 0 42px rgba(103, 232, 249, 0.12);
  animation: aiui-dial-pulse 2.8s ease-in-out infinite;
}

.reminder-dial strong {
  position: relative;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.reminder-dial small {
  position: relative;
  margin-top: 42px;
  color: rgba(203, 213, 225, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.reminder-copy {
  position: relative;
  z-index: 2;
  margin-top: 12px;
  display: grid;
  gap: 5px;
}

.reminder-copy p {
  margin: 0;
  color: rgba(248, 250, 252, 0.92);
}

.reminder-copy small {
  color: rgba(103, 232, 249, 0.78);
  font-size: 12px;
  font-weight: 800;
}

@keyframes aiui-dial-pulse {
  0%, 100% { transform: scale(0.94); opacity: 0.7; }
  50% { transform: scale(1.08); opacity: 1; }
}

.meeting-card {
  background:
    radial-gradient(circle at 82% 16%, rgba(239, 68, 68, 0.18), transparent 26%),
    linear-gradient(145deg, #090d13 0%, #131923 58%, #07090d 100%);
}

.meeting-hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(120px, 0.8fr);
  gap: 12px;
  margin-top: 12px;
}

.meeting-board {
  position: relative;
  min-height: 136px;
  overflow: hidden;
  border: 1px solid rgba(103, 232, 249, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.92)),
    linear-gradient(90deg, rgba(103, 232, 249, 0.12), transparent);
}

.board-line {
  position: absolute;
  left: 22px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(103, 232, 249, 0.86), rgba(239, 68, 68, 0.72));
}

.line-a {
  top: 32px;
  width: 68%;
}

.line-b {
  top: 62px;
  width: 48%;
}

.line-c {
  top: 92px;
  width: 58%;
}

.meeting-pulse {
  position: absolute;
  right: 28px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(248, 250, 252, 0.22);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.9), rgba(239, 68, 68, 0.28) 56%, transparent 57%);
  box-shadow: 0 0 28px rgba(239, 68, 68, 0.25);
}

.meeting-attendees,
.meeting-columns > div {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.meeting-attendees {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 136px;
  padding: 14px;
}

.meeting-attendees span,
.mini-title {
  color: var(--aiui-faint);
  font-size: 11px;
  font-weight: 800;
}

.meeting-attendees strong {
  color: #ffffff;
  line-height: 1.4;
}

.meeting-agenda {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0;
  margin-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.meeting-agenda-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.meeting-agenda-row > span {
  color: #cffafe;
  font-size: 12px;
  font-weight: 900;
}

.meeting-agenda-row strong {
  color: #ffffff;
  font-size: 13px;
}

.meeting-agenda-row p,
.meeting-columns p {
  margin: 4px 0 0;
  color: rgba(226, 232, 240, 0.78);
  font-size: 12px;
  line-height: 1.48;
}

.meeting-columns {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.meeting-columns > div {
  padding: 10px;
}

.meeting-columns b {
  display: inline-grid;
  min-width: 24px;
  margin-right: 6px;
  color: #fecaca;
}

.meeting-next {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.meeting-next span {
  min-height: 28px;
  padding: 7px 9px;
  border-left: 2px solid rgba(103, 232, 249, 0.7);
  border-radius: 6px;
  background: rgba(103, 232, 249, 0.08);
  color: #e0f2fe;
  font-size: 12px;
  font-weight: 760;
}

.checklist-card {
  background:
    radial-gradient(circle at 12% 14%, rgba(103, 232, 249, 0.16), transparent 28%),
    linear-gradient(145deg, #070b10 0%, #10151e 56%, #07090d 100%);
}

.checklist-progress {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(103, 232, 249, 0.24);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(103, 232, 249, 0.18), rgba(15, 23, 42, 0.72));
}

.checklist-progress strong {
  color: #ffffff;
  font-size: 16px;
}

.checklist-progress span {
  color: var(--aiui-faint);
  font-size: 10px;
}

.checklist-groups {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.checklist-group {
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.checklist-group h4 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 13px;
}

.checklist-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 32px;
  color: rgba(226, 232, 240, 0.88);
  font-size: 12px;
}

.checklist-item input {
  accent-color: var(--aiui-cyan);
}

.checklist-item em {
  color: var(--aiui-faint);
  font-size: 10px;
  font-style: normal;
  text-transform: uppercase;
}

.checklist-item[data-priority="high"] em {
  color: #fecaca;
}

.memory-card {
  background:
    radial-gradient(circle at 50% 18%, rgba(103, 232, 249, 0.18), transparent 32%),
    linear-gradient(145deg, #080b10 0%, #111827 56%, #06080c 100%);
}

.memory-profile {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 12px;
}

.memory-profile div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.memory-profile span,
.memory-signal span {
  color: var(--aiui-faint);
  font-size: 11px;
}

.memory-profile strong {
  color: rgba(248, 250, 252, 0.94);
  font-size: 13px;
  line-height: 1.42;
}

.memory-signals {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.memory-signal {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 34px;
  gap: 8px;
  align-items: center;
}

.memory-signal div {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.memory-signal i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(103, 232, 249, 0.86), rgba(239, 68, 68, 0.74));
}

.memory-signal strong {
  color: #e0f2fe;
  font-size: 12px;
}

.memory-suggestions {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.memory-suggestions div {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 8px;
  padding: 9px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.memory-suggestions span {
  color: #67e8f9;
  font-size: 11px;
  font-weight: 900;
}

.memory-suggestions p,
.memory-privacy {
  margin: 0;
  color: rgba(226, 232, 240, 0.78);
  font-size: 12px;
  line-height: 1.5;
}

.memory-privacy {
  position: relative;
  z-index: 2;
  margin-top: 12px;
  padding: 9px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.08);
}

.news-card {
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 16%, rgba(87, 203, 255, 0.18), transparent 30%),
    radial-gradient(circle at 82% 20%, rgba(255, 112, 96, 0.16), transparent 26%),
    linear-gradient(145deg, #09111f 0%, #101823 46%, #16171d 100%);
  border-color: rgba(150, 191, 221, 0.28);
  color: #f7fbff;
}

.news-hero {
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) minmax(0, 1.4fr);
  gap: 18px;
  align-items: stretch;
  min-height: 210px;
  margin: 20px 0;
}

.news-radar {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 210px;
  border: 1px solid rgba(130, 205, 238, 0.28);
  border-radius: 18px;
  background:
    linear-gradient(rgba(99, 179, 213, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 179, 213, 0.08) 1px, transparent 1px),
    radial-gradient(circle at center, rgba(106, 220, 255, 0.16), rgba(8, 16, 31, 0.76) 62%);
  background-size: 34px 34px, 34px 34px, 100% 100%;
  isolation: isolate;
}

.news-radar strong {
  position: relative;
  z-index: 2;
  font-size: 1.05rem;
  letter-spacing: 0;
  color: #eafcff;
}

.radar-ring,
.radar-sweep {
  position: absolute;
  border-radius: 50%;
}

.radar-ring {
  inset: 18%;
  border: 1px solid rgba(126, 226, 255, 0.34);
  box-shadow: 0 0 26px rgba(126, 226, 255, 0.12);
}

.radar-ring.ring-b {
  inset: 30%;
}

.radar-ring.ring-c {
  inset: 42%;
  border-color: rgba(255, 135, 112, 0.36);
}

.radar-sweep {
  width: 46%;
  height: 46%;
  background: conic-gradient(from 0deg, rgba(92, 226, 255, 0.54), transparent 34%);
  animation: radarSweep 4.2s linear infinite;
  filter: blur(0.2px);
}

@keyframes radarSweep {
  to {
    transform: rotate(360deg);
  }
}

.news-lead {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at 12% 10%, rgba(255, 122, 97, 0.18), transparent 34%);
}

.news-lead span,
.news-row span {
  color: #87e6ff;
  font-weight: 800;
}

.news-lead strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: clamp(1.35rem, 2vw, 2.4rem);
  line-height: 1.12;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.news-lead small,
.news-row small,
.news-row p {
  color: rgba(230, 238, 247, 0.68);
}

.news-list {
  display: grid;
  gap: 10px;
}

.news-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  color: inherit;
  text-decoration: none;
}

.news-row:hover {
  border-color: rgba(129, 226, 255, 0.44);
  background: rgba(129, 226, 255, 0.08);
}

.news-row div {
  min-width: 0;
}

.news-row strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-row p {
  display: -webkit-box;
  overflow: hidden;
  margin: 6px 0 0;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (max-width: 760px) {
  .flight-hero-metrics,
  .weather-hero-metrics,
  .news-hero,
  .itinerary-hero,
  .itinerary-route-summary,
  .meeting-hero,
  .meeting-columns {
    grid-template-columns: 1fr;
  }

  .flight-hero-metrics div + div {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
  }

  .generative-stage .flight-list,
  .generative-stage .cards {
    grid-template-columns: 1fr;
  }
}

/* AIUI visual system v3: skyline, atmosphere, lifecycle-first cards. */
.aiui-card {
  --aiui-card-accent: 103 232 249;
  --aiui-card-warm: 245 158 11;
  --aiui-card-alert: 248 113 113;
  border-color: rgb(var(--aiui-card-accent) / 0.2);
  background:
    radial-gradient(circle at 84% 10%, rgb(var(--aiui-card-accent) / 0.14), transparent 24%),
    radial-gradient(circle at 12% 88%, rgb(var(--aiui-card-warm) / 0.08), transparent 28%),
    linear-gradient(145deg, rgba(5, 9, 15, 0.99), rgba(16, 24, 35, 0.98) 58%, rgba(4, 7, 12, 0.99));
  box-shadow:
    0 24px 58px rgba(2, 6, 23, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.035);
}

.flight-card {
  --aiui-card-accent: 103 232 249;
  --aiui-card-warm: 248 113 113;
}

.weather-card {
  --aiui-card-accent: 250 204 21;
  --aiui-card-warm: 56 189 248;
}

.news-card {
  --aiui-card-accent: 125 211 252;
  --aiui-card-warm: 248 113 113;
}

.itinerary-card {
  --aiui-card-accent: 45 212 191;
  --aiui-card-warm: 245 158 11;
}

.meeting-card {
  --aiui-card-accent: 129 140 248;
  --aiui-card-warm: 248 113 113;
}

.checklist-card,
.memory-card {
  --aiui-card-accent: 52 211 153;
  --aiui-card-warm: 103 232 249;
}

.memo-card,
.reminder-card,
.knowledge-card,
.device-card,
.mcp-card,
.runtime-cortex-card,
.task-card,
.generic-aiui-card {
  --aiui-card-accent: 103 232 249;
  --aiui-card-warm: 167 139 250;
}

.aiui-card::before {
  background-image:
    linear-gradient(rgb(var(--aiui-card-accent) / 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgb(var(--aiui-card-accent) / 0.04) 1px, transparent 1px),
    linear-gradient(115deg, transparent 0 42%, rgba(255, 255, 255, 0.055) 50%, transparent 58% 100%);
  background-size: 34px 34px, 34px 34px, 170% 100%;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.86), transparent 80%);
  opacity: 0.78;
}

.aiui-card::after {
  border-radius: 7px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgb(var(--aiui-card-accent) / 0.08);
}

.aiui-card[data-aiui-phase="mounting"] {
  border-color: rgb(var(--aiui-card-accent) / 0.42);
  box-shadow:
    0 28px 70px rgba(2, 6, 23, 0.32),
    0 0 0 1px rgb(var(--aiui-card-accent) / 0.18),
    0 0 42px rgb(var(--aiui-card-accent) / 0.08);
}

.aiui-card[data-aiui-phase="dwell"] {
  border-color: rgba(52, 211, 153, 0.34);
}

.aiui-card[data-aiui-phase="action"] {
  border-color: rgb(var(--aiui-card-warm) / 0.46);
  box-shadow:
    0 28px 70px rgba(2, 6, 23, 0.34),
    0 0 0 1px rgb(var(--aiui-card-warm) / 0.18),
    0 0 46px rgb(var(--aiui-card-warm) / 0.08);
}

.generative-stage .aiui-card {
  padding: clamp(14px, 1.6vw, 18px);
}

.generative-stage .aiui-card h3 {
  max-width: min(100%, 760px);
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.12;
}

.generative-stage .aiui-card p {
  color: rgba(226, 232, 240, 0.76);
}

.generative-stage .card-kicker,
.generic-card-header .card-kicker {
  color: rgb(var(--aiui-card-accent) / 0.74);
  font-weight: 900;
}

.aiui-lifecycle-hud {
  border-color: rgb(var(--aiui-card-accent) / 0.2);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.78), rgba(8, 18, 28, 0.58)),
    radial-gradient(circle at 10% 50%, rgb(var(--aiui-card-accent) / 0.16), transparent 44%);
}

.aiui-life-rail::before {
  background: linear-gradient(90deg, rgb(var(--aiui-card-accent) / 0.44), rgb(var(--aiui-card-warm) / 0.26));
}

.aiui-life-rail [data-life-step].active i {
  border-color: rgb(var(--aiui-card-accent) / 0.94);
  background: rgb(var(--aiui-card-accent));
  box-shadow: 0 0 0 6px rgb(var(--aiui-card-accent) / 0.13), 0 0 26px rgb(var(--aiui-card-accent) / 0.42);
}

.flight-three-scene,
.weather-pixi-scene,
.cortex-scene,
.itinerary-city-scene,
.meeting-board,
.memo-body,
.reminder-dial,
.news-radar,
.news-lead,
.mcp-source,
.mcp-list-row,
.mcp-metric,
.checklist-group,
.memory-profile div,
.meeting-attendees,
.meeting-columns > div {
  border-radius: 8px;
  border-color: rgb(var(--aiui-card-accent) / 0.18);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.62), rgba(2, 6, 23, 0.9)),
    radial-gradient(circle at 70% 18%, rgb(var(--aiui-card-accent) / 0.11), transparent 36%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 38px rgba(2, 6, 23, 0.24);
}

.flight-three-scene {
  min-height: 430px;
  background:
    linear-gradient(180deg, rgba(4, 10, 20, 0.18), rgba(2, 6, 23, 0.7)),
    radial-gradient(circle at 68% 32%, rgba(103, 232, 249, 0.2), transparent 34%),
    radial-gradient(circle at 82% 55%, rgba(248, 113, 113, 0.15), transparent 28%),
    linear-gradient(180deg, #07101c 0%, #030711 100%);
}

.flight-three-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(rgba(103, 232, 249, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 232, 249, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 74% 66%, rgba(248, 113, 113, 0.18), transparent 22%);
  background-size: 42px 42px, 42px 42px, 100% 100%;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.86), transparent 72%);
  pointer-events: none;
}

.flight-three-scene::after {
  height: 42%;
  background:
    linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.76)),
    linear-gradient(90deg, rgba(103, 232, 249, 0.09), rgba(248, 113, 113, 0.1));
}

.flight-scene-glow {
  inset: 8% 5% 8%;
  background:
    radial-gradient(circle at 66% 36%, rgba(103, 232, 249, 0.28), transparent 36%),
    radial-gradient(circle at 82% 66%, rgba(248, 113, 113, 0.2), transparent 34%),
    radial-gradient(circle at 34% 50%, rgba(129, 140, 248, 0.12), transparent 36%);
  filter: blur(22px);
}

.flight-life-strip span {
  background: rgba(3, 7, 18, 0.42);
  color: rgba(226, 232, 240, 0.68);
}

.flight-destination-copy span {
  color: rgba(186, 247, 255, 0.8);
}

.weather-pixi-scene {
  background:
    radial-gradient(circle at 38% 38%, rgb(var(--aiui-card-accent) / 0.18), transparent 28%),
    radial-gradient(circle at 72% 30%, rgba(56, 189, 248, 0.13), transparent 32%),
    linear-gradient(180deg, #0b111a 0%, #030711 100%);
}

.weather-pixi-scene .weather-readout {
  border-color: rgb(var(--aiui-card-accent) / 0.2);
  background: rgba(3, 7, 18, 0.4);
}

.itinerary-city-scene {
  min-height: 196px;
  background:
    radial-gradient(circle at 72% 20%, rgba(245, 158, 11, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(9, 16, 24, 0.72), rgba(2, 6, 23, 0.96));
}

.itinerary-city-scene::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 48px;
  height: 116px;
  background:
    linear-gradient(180deg, rgba(226, 252, 255, 0.58), rgba(7, 18, 32, 0.88) 42%, rgba(3, 7, 18, 0.94));
  clip-path: polygon(0 92%, 6% 76%, 12% 86%, 18% 48%, 23% 78%, 29% 60%, 35% 82%, 42% 28%, 48% 82%, 54% 62%, 60% 84%, 66% 42%, 72% 82%, 79% 68%, 86% 90%, 94% 58%, 100% 84%, 100% 100%, 0 100%);
  filter: drop-shadow(0 0 18px rgba(103, 232, 249, 0.22));
}

.itinerary-city-scene::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: 30px;
  height: 30px;
  transform: skewX(-16deg);
  background: linear-gradient(90deg, rgba(103, 232, 249, 0.05), rgba(103, 232, 249, 0.48), rgba(245, 158, 11, 0.28), rgba(103, 232, 249, 0.08));
  filter: blur(0.2px);
}

.itinerary-tower {
  display: none;
}

.itinerary-road {
  left: 4%;
  right: 4%;
  bottom: 24px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(103, 232, 249, 0.14), rgba(45, 212, 191, 0.84), rgba(245, 158, 11, 0.46));
  box-shadow: 0 0 24px rgba(45, 212, 191, 0.22);
}

.itinerary-road i {
  top: 4px;
  height: 1px;
}

.meeting-board::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgb(var(--aiui-card-accent) / 0.12);
  border-radius: 8px;
  background:
    linear-gradient(rgb(var(--aiui-card-accent) / 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgb(var(--aiui-card-accent) / 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.7;
}

.board-line {
  height: 8px;
  background: linear-gradient(90deg, rgb(var(--aiui-card-accent) / 0.9), rgb(var(--aiui-card-warm) / 0.68));
}

.meeting-pulse {
  background: radial-gradient(circle, rgb(var(--aiui-card-warm) / 0.9), rgb(var(--aiui-card-alert) / 0.25) 56%, transparent 57%);
}

.checklist-progress {
  border-color: rgb(var(--aiui-card-accent) / 0.28);
  background: radial-gradient(circle, rgb(var(--aiui-card-accent) / 0.2), rgba(15, 23, 42, 0.72));
}

.memory-signal i {
  background: linear-gradient(90deg, rgb(var(--aiui-card-accent) / 0.9), rgb(var(--aiui-card-warm) / 0.72));
}

.news-hero {
  gap: 12px;
  margin: 16px 0;
}

.news-radar,
.news-lead,
.news-row {
  border-radius: 8px;
}

.news-radar {
  min-height: 196px;
  background:
    linear-gradient(rgba(125, 211, 252, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, 0.07) 1px, transparent 1px),
    radial-gradient(circle at center, rgba(125, 211, 252, 0.18), rgba(8, 16, 31, 0.78) 62%);
  background-size: 32px 32px, 32px 32px, 100% 100%;
}

.news-lead {
  padding: 22px;
}

.news-row {
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.048);
}

.memo-body,
.reminder-dial,
.mcp-source,
.mcp-list-row,
.mcp-metric,
.checklist-group,
.memory-profile div,
.meeting-attendees,
.meeting-columns > div {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.62)),
    radial-gradient(circle at 82% 18%, rgb(var(--aiui-card-accent) / 0.08), transparent 34%);
}

.aiui-action,
.memo-tags span,
.memo-follow-up,
.itinerary-reminders span,
.meeting-next span,
.task-card .pill,
.generic-aiui-card .pill {
  border-color: rgb(var(--aiui-card-accent) / 0.18);
  background: rgb(var(--aiui-card-accent) / 0.09);
  color: rgba(240, 249, 255, 0.9);
}

@media (max-width: 760px) {
  .flight-three-scene {
    min-height: 350px;
  }

  .flight-life-strip {
    top: 50px;
    grid-template-columns: 1fr;
  }

  .flight-life-strip span {
    min-height: 24px;
  }

  .generative-stage .aiui-card h3 {
    font-size: 18px;
  }
}

/* Agentic phone OS stage, inspired by the OpenAI Voice Hack Night winning demo. */
.phone-os-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: hidden;
  padding: clamp(18px, 2.8vw, 34px);
  background:
    radial-gradient(circle at 52% 12%, rgba(255, 255, 255, 0.1), transparent 16%),
    radial-gradient(circle at 22% 18%, rgba(103, 232, 249, 0.18), transparent 28%),
    radial-gradient(circle at 80% 78%, rgba(245, 158, 11, 0.16), transparent 30%),
    linear-gradient(160deg, #020306 0%, #080b12 46%, #020307 100%);
}

.phone-os-stage > .panel-title {
  position: absolute;
  top: 18px;
  left: 22px;
  z-index: 3;
  color: rgba(248, 250, 252, 0.62);
  letter-spacing: 0;
}

.phone-os-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  width: min(100%, 440px);
  height: min(980px, calc(100vh - 142px));
  min-height: 640px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    radial-gradient(circle at 50% 0%, rgba(103, 232, 249, 0.14), transparent 26%),
    linear-gradient(180deg, #10141b 0%, #05070c 100%);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.48),
    0 0 0 10px rgba(255, 255, 255, 0.025),
    inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.phone-os-shell::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 26px;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.54), transparent 78%);
}

.phone-os-status {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 24px;
  color: rgba(248, 250, 252, 0.72);
  font-size: 11px;
  font-weight: 800;
}

.phone-os-status b {
  color: rgba(248, 250, 252, 0.9);
  font-size: 11px;
}

.phone-os-status span:last-child {
  text-align: right;
}

.phone-dynamic-island {
  position: relative;
  z-index: 4;
  justify-self: center;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  width: min(270px, 78%);
  min-height: 56px;
  margin-top: 6px;
  padding: 8px 14px 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background:
    radial-gradient(circle at 18% 50%, rgba(103, 232, 249, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.94), rgba(10, 12, 18, 0.96));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.phone-voice-orb {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, #ffffff, rgba(103, 232, 249, 0.95) 32%, rgba(37, 99, 235, 0.44) 62%, rgba(2, 6, 23, 0.2));
  box-shadow:
    0 0 0 6px rgba(103, 232, 249, 0.08),
    0 0 24px rgba(103, 232, 249, 0.5);
  animation: phone-orb-breathe 1.8s ease-in-out infinite;
}

.phone-dynamic-island strong,
.phone-dynamic-island small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-dynamic-island strong {
  color: #ffffff;
  font-size: 12px;
}

.phone-dynamic-island small {
  margin-top: 2px;
  color: rgba(203, 213, 225, 0.64);
  font-size: 10px;
}

@keyframes phone-orb-breathe {
  0%,
  100% {
    transform: scale(0.94);
    opacity: 0.82;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

.phone-os-context {
  position: relative;
  z-index: 2;
  margin: 18px 0 12px;
  display: grid;
  gap: 7px;
}

.phone-os-context span {
  color: rgba(103, 232, 249, 0.72);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
}

.phone-os-context h3 {
  max-width: 330px;
  margin: 0;
  color: #f8fafc;
  font-size: 24px;
  line-height: 1.03;
  letter-spacing: 0;
}

.phone-cards {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr !important;
  grid-auto-rows: max-content;
  align-content: start;
  align-items: start;
  gap: 10px !important;
  min-height: 0;
  padding: 2px 2px 14px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.28) transparent;
}

.phone-os-stage .cards > .aiui-card:first-child {
  grid-column: auto;
}

.phone-os-stage .empty {
  min-height: 320px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 30%, rgba(103, 232, 249, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  color: rgba(226, 232, 240, 0.72);
  text-align: center;
}

.phone-os-stage .aiui-card {
  align-self: start;
  padding: 12px;
  border-color: rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 88% 10%, rgb(var(--aiui-card-accent) / 0.13), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.074), rgba(255, 255, 255, 0.035)),
    rgba(10, 14, 21, 0.92);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.phone-os-stage .phone-cards > .aiui-card:not(:first-child) {
  max-height: 86px;
  overflow: hidden;
}

.phone-os-stage .phone-cards > .aiui-card:not(:first-child)::after {
  background: linear-gradient(180deg, transparent 38%, rgba(7, 10, 16, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.phone-os-stage .phone-cards > .aiui-card:first-child {
  max-height: none;
}

.phone-os-stage .aiui-lifecycle-hud {
  position: relative;
  top: auto;
  right: auto;
  width: 100%;
  margin: 0 0 10px;
  padding: 7px 8px;
  box-shadow: none;
}

.phone-os-stage .aiui-life-head {
  display: none;
}

.phone-os-stage .aiui-life-rail b {
  font-size: 8px;
}

.phone-os-stage .card-copy-row {
  gap: 8px;
}

.phone-os-stage .card-kicker {
  margin-bottom: 4px;
  font-size: 9px;
}

.phone-os-stage .aiui-card h3 {
  margin-bottom: 6px;
  font-size: 18px;
  line-height: 1.12;
}

.phone-os-stage .aiui-card p {
  font-size: 12px;
  line-height: 1.45;
}

.phone-os-stage .flight-three-scene {
  min-height: 278px;
  margin-top: 0;
}

.phone-os-stage .weather-pixi-scene {
  min-height: 250px;
}

.phone-os-stage .flight-life-strip {
  top: 48px;
  left: 12px;
  right: 12px;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}

.phone-os-stage .flight-life-strip span {
  min-height: 24px;
  padding: 0 7px;
  font-size: 9px;
}

.phone-os-stage .scene-copy {
  min-width: 62px;
  padding: 7px 8px;
}

.phone-os-stage .scene-copy strong {
  font-size: 14px;
}

.phone-os-stage .flight-hero-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.phone-os-stage .flight-list {
  grid-template-columns: 1fr;
  gap: 8px;
}

.phone-os-stage .flight-card .flight-row {
  min-height: 64px;
  grid-template-columns: minmax(64px, 0.7fr) minmax(0, 1.3fr) auto;
}

.phone-os-stage .price-pill {
  min-width: 76px;
}

.phone-os-stage .weather-hero-metrics,
.phone-os-stage .news-hero,
.phone-os-stage .itinerary-hero,
.phone-os-stage .itinerary-route-summary,
.phone-os-stage .meeting-hero,
.phone-os-stage .meeting-columns {
  grid-template-columns: 1fr;
}

.phone-os-stage .news-hero {
  min-height: auto;
}

.phone-os-stage .news-radar,
.phone-os-stage .news-lead {
  min-height: 154px;
}

.phone-os-stage .news-lead {
  padding: 16px;
}

.phone-os-stage .news-lead strong {
  font-size: 19px;
}

.phone-os-stage .itinerary-city-scene {
  min-height: 170px;
}

.phone-os-stage .meeting-board,
.phone-os-stage .meeting-attendees {
  min-height: 126px;
}

.phone-os-stage .checklist-item {
  grid-template-columns: 18px minmax(0, 1fr);
}

.phone-os-stage .checklist-item em {
  display: none;
}

.phone-os-stage .memory-signal {
  grid-template-columns: 56px minmax(0, 1fr) 30px;
}

.phone-os-dock {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 10px;
}

.phone-os-dock span {
  display: grid;
  place-items: center;
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(226, 232, 240, 0.76);
  font-size: 11px;
  font-weight: 850;
}

/* Reference-driven skyline treatment: cinematic silhouette over literal mini buildings. */
.flight-three-scene {
  background:
    radial-gradient(circle at 66% 40%, rgba(129, 140, 248, 0.28), transparent 28%),
    radial-gradient(circle at 76% 58%, rgba(103, 232, 249, 0.16), transparent 32%),
    radial-gradient(circle at 86% 60%, rgba(248, 113, 113, 0.13), transparent 30%),
    linear-gradient(180deg, #04070d 0%, #020611 58%, #010307 100%);
}

.flight-three-scene::before {
  opacity: 0.46;
  background:
    radial-gradient(circle at 63% 43%, rgba(147, 197, 253, 0.24), transparent 29%),
    linear-gradient(rgba(125, 211, 252, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.78), transparent 76%);
}

.flight-three-scene::after {
  height: 46%;
  background:
    linear-gradient(180deg, transparent, rgba(1, 3, 7, 0.84)),
    linear-gradient(90deg, rgba(125, 211, 252, 0.08), rgba(129, 140, 248, 0.1), rgba(248, 113, 113, 0.08));
}

.flight-three-scene .flight-destination-copy {
  right: 20px;
  bottom: 22px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  text-shadow: 0 0 22px rgba(129, 140, 248, 0.85), 0 0 44px rgba(103, 232, 249, 0.36);
}

.flight-three-scene .flight-destination-copy span {
  color: rgba(186, 247, 255, 0.78);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.flight-three-scene .flight-destination-copy strong {
  color: #f8fbff;
  font-size: clamp(28px, 4.4vw, 46px);
  font-weight: 950;
  line-height: 0.96;
}

.phone-os-stage .flight-three-scene .flight-destination-copy {
  right: 16px;
  bottom: 17px;
}

.phone-os-stage .flight-three-scene .flight-destination-copy strong {
  font-size: 30px;
}

.phone-os-stage .flight-three-scene .flight-destination-copy span {
  max-width: 150px;
  font-size: 9px;
}

@media (min-width: 1320px) {
  .main-grid {
    grid-template-columns: minmax(520px, 0.82fr) minmax(380px, 460px);
  }
}

@media (max-width: 1120px) {
  .phone-os-shell {
    height: min(900px, calc(100vh - 132px));
  }
}

@media (max-width: 760px) {
  .phone-os-stage {
    padding: 12px;
  }

  .phone-os-shell {
    width: 100%;
    height: calc(100vh - 130px);
    min-height: 560px;
    border-radius: 24px;
  }

  .phone-os-context h3 {
    font-size: 21px;
  }
}

.events-panel {
  border-top: 1px solid var(--line);
  background: #ffffff;
  padding: 12px 16px;
  overflow: hidden;
}

.events {
  height: 178px;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 6px;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 12px;
}

.event-line {
  display: grid;
  grid-template-columns: 118px 190px minmax(0, 1fr);
  gap: 8px;
  border: 1px solid #edf1f5;
  border-radius: 6px;
  padding: 7px 8px;
  background: #fbfdff;
}

.event-line time {
  color: var(--muted);
}

.event-type {
  color: var(--cyan);
  font-weight: 700;
}

.event-payload {
  color: #334155;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .main-grid {
    grid-template-columns: 1fr;
  }

  .inspector {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
}

@media (max-width: 760px) {
  .workspace {
    grid-template-rows: auto minmax(0, 1fr) 260px;
  }

  .topbar {
    height: auto;
    min-height: 86px;
    align-items: flex-start;
    padding: 14px;
    gap: 12px;
    flex-direction: column;
  }

  .main-grid {
    padding: 10px;
  }

  .quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .composer {
    grid-template-columns: 64px minmax(0, 1fr) 64px;
  }

  .inspector {
    grid-template-columns: 1fr;
  }

  .event-line {
    grid-template-columns: 1fr;
  }
}
