* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --ui-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ui-mono: "SF Mono", "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}

html,
body {
  height: 100%;
}

body {
  font-family: var(--ui-font);
  background: #0d1117;
  color: #c9d1d9;
  overflow: hidden;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    radial-gradient(circle at top left, rgba(88, 166, 255, 0.12), transparent 32%),
    radial-gradient(circle at bottom right, rgba(63, 185, 80, 0.1), transparent 34%);
  opacity: 0.85;
}

body::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.25;
}

#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: relative;
  z-index: 1;
}

header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  background: rgba(1, 4, 9, 0.94);
  border-bottom: 1px solid #21262d;
  height: 52px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.brand-logo {
  flex-shrink: 0;
}

#unchained-byline {
  color: #8b949e;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

#unchained-byline:hover,
#unchained-byline:focus-visible {
  color: #c9d1d9;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#experience-chip {
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 196, 82, 0.3);
  background: rgba(255, 196, 82, 0.12);
  color: #ffd577;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#new-chat,
#radar-link,
#memory-lane-link,
#pricing-link,
.ghost-btn,
.spectator-mode {
  padding: 4px 12px;
  background: #21262d;
  color: #8b949e;
  border: 1px solid #30363d;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

#new-chat:hover,
#radar-link:hover,
#memory-lane-link:hover,
#pricing-link:hover,
.ghost-btn:hover,
.spectator-mode:hover {
  background: #30363d;
  color: #e6edf3;
  border-color: #58a6ff;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid #82bdff;
  outline-offset: 3px;
}

#radar-link,
#memory-lane-link,
#pricing-link {
  border-color: rgba(130, 189, 255, 0.18);
  color: #9cb0c3;
  background: rgba(130, 189, 255, 0.06);
}

#status {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

#status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #484f58;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

#status-dot.active {
  background: #3fb950;
  box-shadow: 0 0 10px rgba(63, 185, 80, 0.4);
  animation: pulse 1.5s ease-in-out infinite;
}

#status-dot.error {
  background: #f85149;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

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

#status-text {
  font-size: 12px;
  color: #8b949e;
}

#current-url {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: #6e7681;
  font-family: 'SF Mono', 'IBM Plex Mono', monospace;
}

#auth-slot {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.brand-wrap,
#new-chat,
#status,
#radar-link,
#pricing-link,
#auth-slot {
  flex-shrink: 0;
}

#agent-guide-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#sign-in-btn {
  padding: 5px 14px;
  background: #1a3a1a;
  color: #3fb950;
  border: 1px solid #2a4a2a;
  border-radius: 999px;
  font-size: 12px;
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

#sign-in-btn:hover {
  background: #2a4a2a;
  color: #a3e6a3;
  border-color: #3fb950;
}

.auth-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 4px;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 999px;
  color: #c9d1d9;
  text-decoration: none;
  font-size: 12px;
  max-width: 180px;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.auth-pill:hover {
  border-color: #58a6ff;
  background: #21262d;
}

.auth-pill .auth-pill-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.auth-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
}

.auth-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #30363d;
  color: #c9d1d9;
  font-size: 11px;
  font-weight: 500;
}

.auth-signout {
  padding: 4px 10px;
  background: transparent;
  color: #6e7681;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11px;
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.auth-signout:hover {
  color: #c9d1d9;
  border-color: #30363d;
}

#main {
  flex: 1;
  overflow: hidden;
  display: flex;
  min-height: 0;
  position: relative;
}

#terminal {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 300px;
  max-width: 25%;
  height: 100%;
  background: #0d1117;
  min-height: 0;
}

#response-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#response-head {
  display: none;
}

.response-head-copy,
#response-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

#response-phase,
#response-mode-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

#response-phase {
  flex: 0 0 154px;
  width: 154px;
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(63, 185, 80, 0.12);
  border: 1px solid rgba(63, 185, 80, 0.2);
  color: #9fe1aa;
}

#response-mode-chip {
  background: rgba(130, 189, 255, 0.08);
  border: 1px solid rgba(130, 189, 255, 0.18);
  color: #82beff;
}

#response-prompt,
#response-activity {
  display: none;
}

.welcome {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: 56px 20px 44px;
  gap: 22px;
  max-width: 1060px;
  width: 100%;
  margin: 0 auto;
}

.welcome h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
  color: #e6edf3;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.welcome-copy {
  display: grid;
  gap: 14px;
  max-width: 760px;
}

.welcome-kicker {
  color: #7fd4ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.welcome-body {
  max-width: 680px;
  color: #9cb0c3;
  font-size: 16px;
  line-height: 1.55;
}

.welcome-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.welcome-cta {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 196, 82, 0.28);
  background: rgba(255, 196, 82, 0.12);
  color: #ffd577;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.welcome-cta:hover {
  background: rgba(255, 196, 82, 0.18);
  border-color: rgba(255, 196, 82, 0.5);
  transform: translateY(-1px);
}

.welcome-note {
  color: #7e91a6;
  font-size: 13px;
}

.how-it-works {
  display: none;
}

html[data-dynamic="1"] .how-it-works {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 0 4px;
}

.how-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #9cb0c3;
}

.how-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(130, 189, 255, 0.12);
  border: 1px solid rgba(130, 189, 255, 0.2);
  color: #82bdff;
  font-size: 11px;
  font-weight: 600;
}

.how-arrow {
  color: #4a5568;
  font-size: 14px;
}

.welcome-cases {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.welcome-case {
  display: grid;
  gap: 8px;
  min-height: 108px;
  padding: 14px;
  border: 1px solid rgba(130, 189, 255, 0.14);
  border-radius: 16px;
  background: rgba(8, 13, 20, 0.46);
}

.welcome-case-label {
  color: #82bdff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.welcome-case strong {
  color: #f0f6fc;
  font-size: 14px;
  line-height: 1.35;
}

.process-card {
  margin: 0 20px 16px;
  padding: 16px;
  border: 1px solid rgba(130, 189, 255, 0.18);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(88, 166, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(9, 18, 31, 0.96), rgba(5, 11, 19, 0.96));
  color: #dce7f4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.process-card[hidden] {
  display: none !important;
}

.process-card-top,
.process-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.process-eyebrow {
  color: #7fd4ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.process-phase {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 150px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(63, 185, 80, 0.22);
  background: rgba(63, 185, 80, 0.1);
  color: #9fe1aa;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: background-color 240ms ease, border-color 240ms ease, color 240ms ease;
}

.process-activity {
  margin-top: 12px;
  min-height: 46px;
  color: #eff5fb;
  font-size: 16px;
  line-height: 1.45;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.process-source {
  display: grid;
  gap: 3px;
  margin-top: 12px;
  min-height: 78px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 196, 82, 0.14);
  background: rgba(255, 196, 82, 0.06);
}

.process-source-label {
  color: #7e91a6;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#process-source-host {
  min-width: 0;
  color: #ffd577;
  font-family: 'SF Mono', 'IBM Plex Mono', monospace;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#process-source-title {
  color: #aab9c9;
  font-size: 12px;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 14px 0 0;
  min-height: 35px;
  padding: 0;
  list-style: none;
}

.process-steps li {
  position: relative;
  padding: 8px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(130, 189, 255, 0.12);
  color: #7e91a6;
  font-size: 11px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: background-color 240ms ease, border-color 240ms ease, color 240ms ease, box-shadow 240ms ease;
}

.process-steps li.is-complete {
  color: #9fe1aa;
  border-color: rgba(63, 185, 80, 0.28);
  background: rgba(63, 185, 80, 0.08);
}

.process-steps li.is-active {
  color: #fffaf0;
  border-color: rgba(255, 196, 82, 0.45);
  background: rgba(255, 196, 82, 0.13);
  box-shadow: 0 0 18px rgba(255, 196, 82, 0.12);
}

.process-actions {
  justify-content: flex-start;
  margin-top: 14px;
  min-height: 34px;
}

.process-actions:has(.process-action:only-child) {
  justify-content: flex-end;
}

.process-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(130, 189, 255, 0.18);
  background: rgba(130, 189, 255, 0.08);
  color: #cfe4f8;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
}

.process-action:hover {
  border-color: rgba(255, 196, 82, 0.38);
  color: #fffaf0;
}

.pricing-teaser {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 700px;
  padding: 8px 10px;
  border: 1px solid rgba(130, 189, 255, 0.14);
  border-radius: 16px;
  background: rgba(22, 27, 34, 0.38);
  color: #8799aa;
  text-decoration: none;
  box-shadow: none;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.pricing-teaser:hover,
.pricing-teaser:focus-visible {
  border-color: rgba(130, 189, 255, 0.32);
  background: rgba(22, 27, 34, 0.58);
  transform: translateY(-1px);
}

.pricing-teaser-signal {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  width: 30px;
  height: 22px;
  padding: 4px;
  border: 1px solid rgba(130, 189, 255, 0.16);
  border-radius: 999px;
  background: rgba(130, 189, 255, 0.06);
}

.pricing-teaser-signal span {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #82bdff;
  opacity: 0.45;
  animation: teaser-signal 1.8s ease-in-out infinite;
}

.pricing-teaser-signal span:nth-child(2) {
  animation-delay: 0.18s;
}

.pricing-teaser-signal span:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes teaser-signal {
  0%, 100% { opacity: 0.38; transform: scale(1); }
  45% { opacity: 1; transform: scale(1.45); }
}

.pricing-teaser-kicker {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(63, 185, 80, 0.1);
  color: #9fe1aa;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pricing-teaser-copy {
  grid-column: 1 / -1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.pricing-teaser-action {
  color: #9fc9ff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.home-radar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 960px;
  padding: 12px 14px;
  border: 1px solid rgba(130, 189, 255, 0.14);
  border-radius: 18px;
  background: rgba(13, 18, 25, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.home-radar[hidden] {
  display: none !important;
}

.home-radar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.home-radar-summary {
  color: #a9bad0;
  font-size: 12px;
  line-height: 1.45;
  margin-top: 2px;
}

.home-radar-title {
  display: flex;
  align-items: baseline;
  gap: 9px;
  min-width: 0;
}

.home-radar-kicker {
  color: #82bdff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-radar h3,
.home-radar h4,
.home-radar p {
  margin: 0;
}

.home-radar h3 {
  color: #e6edf3;
  font-size: 15px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-radar-head a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 32px;
  padding: 7px 12px;
  border: 1px solid rgba(130, 189, 255, 0.28);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(88, 166, 255, 0.26), rgba(127, 212, 255, 0.12));
  color: #eaf5ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 0 0 rgba(88, 166, 255, 0);
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.22s ease;
}

.home-radar-head a::before {
  content: '';
  position: absolute;
  inset: -45% -75%;
  z-index: -1;
  background:
    linear-gradient(105deg, transparent 28%, rgba(255, 255, 255, 0.72) 47%, transparent 64%),
    radial-gradient(circle at 50% 50%, rgba(127, 212, 255, 0.42), transparent 36%);
  opacity: 0.72;
  transform: translateX(-62%) rotate(8deg);
  animation: radar-sweep-pass 3.8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  pointer-events: none;
}

.home-radar-head a:hover {
  border-color: rgba(130, 189, 255, 0.46);
  background: linear-gradient(135deg, rgba(88, 166, 255, 0.36), rgba(127, 212, 255, 0.18));
  box-shadow: 0 12px 26px rgba(88, 166, 255, 0.18);
  transform: translateY(-1px);
}

.home-radar-head a:hover::before {
  animation-duration: 1.5s;
  opacity: 0.95;
}

@keyframes radar-sweep-pass {
  0% { transform: translateX(-68%) rotate(8deg); opacity: 0; }
  12% { opacity: 0.84; }
  42% { opacity: 0.84; }
  58%,
  100% { transform: translateX(68%) rotate(8deg); opacity: 0; }
}

.home-radar-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.home-radar-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
  min-height: 116px;
  padding: 10px;
  border: 1px solid rgba(130, 189, 255, 0.12);
  border-radius: 14px;
  background: rgba(8, 13, 20, 0.42);
}

.home-radar-loading {
  padding: 10px 0;
  color: #7e91a4;
  font-size: 12px;
}

.home-radar-body {
  flex: 1 1 auto;
  min-width: 0;
}

.home-radar-meta {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #58a6ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-radar-row h4 {
  color: #f0f6fc;
  font-size: 14px;
  line-height: 1.22;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.home-radar-row p {
  color: #8b99aa;
  font-size: 12px;
  line-height: 1.36;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-radar-ask {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: auto;
  min-height: 34px;
  padding: 8px 11px;
  border: 1px solid rgba(130, 189, 255, 0.18);
  border-radius: 999px;
  background: rgba(130, 189, 255, 0.1);
  color: #cfe4f8;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.home-radar-ask:hover {
  transform: translateY(-1px);
  border-color: rgba(130, 189, 255, 0.34);
  background: rgba(130, 189, 255, 0.16);
}

#result-panel,
.result-archive {
  margin: 12px 20px;
  padding: 16px;
  background: #0d1f0d;
  border: 1px solid #1a3a1a;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: #a3e6a3;
  max-height: 50vh;
  overflow-y: auto;
}

#result-panel {
  position: relative;
}

.result-actions {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: -16px -16px 12px;
  padding: 10px 12px 12px;
  background: transparent;
}

.result-archive {
  opacity: 0.72;
  max-height: 280px;
}

.copy-btn {
  padding: 4px 10px;
  background: #1a3a1a;
  color: #3fb950;
  border: 1px solid #2a4a2a;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease;
  z-index: 1;
}

.copy-btn:hover {
  background: #2a4a2a;
  color: #a3e6a3;
}

.share-btn {
  padding: 4px 10px;
  background: #1a2a3a;
  color: #58a6ff;
  border: 1px solid #2a3a4a;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease;
  z-index: 1;
}

.share-btn:hover {
  background: #2a3a4a;
  color: #82bdff;
}

.share-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(1, 4, 9, 0.75);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.share-modal {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 10px;
  padding: 22px 24px 20px;
  width: 100%;
  max-width: 460px;
  color: #c9d1d9;
  font-family: 'Avenir Next', 'Segoe UI', sans-serif;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.share-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.share-modal-title {
  font-size: 16px;
  font-weight: 600;
  color: #e6edf3;
}

.share-modal-close {
  background: transparent;
  border: none;
  color: #8b949e;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}

.share-modal-close:hover {
  color: #e6edf3;
}

.share-modal-label {
  display: block;
  font-size: 12px;
  color: #8b949e;
  margin-bottom: 6px;
  margin-top: 12px;
  font-weight: 500;
}

.share-modal-label:first-of-type {
  margin-top: 0;
}

.share-modal-hint {
  color: #6e7681;
  font-weight: 400;
  margin-left: 4px;
}

.share-modal-input,
.share-modal-textarea {
  width: 100%;
  padding: 8px 12px;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 6px;
  color: #e6edf3;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.18s ease;
}

.share-modal-input:focus,
.share-modal-textarea:focus {
  border-color: #58a6ff;
}

.share-modal-textarea {
  resize: vertical;
  min-height: 64px;
}

.share-modal-vis {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.share-modal-radio {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #30363d;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: #8b949e;
  line-height: 1.4;
}

.share-modal-radio strong {
  color: #c9d1d9;
}

.share-modal-radio:has(input:checked) {
  border-color: #58a6ff;
  background: rgba(88, 166, 255, 0.06);
}

.share-modal-radio input {
  margin-top: 2px;
  accent-color: #58a6ff;
  flex-shrink: 0;
}

.share-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 22px;
}

.share-modal-cancel,
.share-modal-publish {
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.share-modal-cancel {
  background: transparent;
  color: #8b949e;
  border: 1px solid #30363d;
}

.share-modal-cancel:hover {
  color: #c9d1d9;
  border-color: #58a6ff;
}

.share-modal-publish {
  background: #238636;
  color: #fff;
  border: 1px solid #238636;
}

.share-modal-publish:hover {
  background: #2ea043;
  border-color: #2ea043;
}

#result-panel h1,
#result-panel h2,
#result-panel h3,
.result-archive h1,
.result-archive h2,
.result-archive h3 {
  color: #3fb950;
  margin: 12px 0 6px;
  font-size: 15px;
}

#result-panel h1,
.result-archive h1 {
  font-size: 18px;
}

#result-panel h2,
.result-archive h2 {
  font-size: 16px;
}

#result-panel p,
.result-archive p {
  margin: 6px 0;
}

#result-panel strong,
.result-archive strong {
  color: #e6edf3;
}

#result-panel ul,
#result-panel ol,
.result-archive ul,
.result-archive ol {
  padding-left: 20px;
  margin: 6px 0;
}

#result-panel li,
.result-archive li {
  margin: 4px 0;
}

#result-panel a,
.result-archive a {
  color: #58a6ff;
  text-decoration: none;
}

#result-panel a:hover,
.result-archive a:hover {
  text-decoration: underline;
}

#result-panel table,
.result-archive table {
  border-collapse: collapse;
  width: 100%;
  margin: 8px 0;
  font-size: 13px;
}

#result-panel th,
#result-panel td,
.result-archive th,
.result-archive td {
  border: 1px solid #1a3a1a;
  padding: 6px 10px;
  text-align: left;
}

#result-panel th,
.result-archive th {
  background: #0a1a0a;
  color: #3fb950;
}

#result-panel code,
.result-archive code {
  background: #0a1a0a;
  padding: 2px 5px;
  border-radius: 3px;
  font-family: 'SF Mono', 'IBM Plex Mono', monospace;
  font-size: 13px;
}

#result-panel .katex-display,
.result-archive .katex-display {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 0;
}

#output-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
}

#output {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px;
  font-family: 'SF Mono', 'IBM Plex Mono', monospace;
  font-size: 13px;
  line-height: 1.7;
}

#output::-webkit-scrollbar,
#result-panel::-webkit-scrollbar,
.result-archive::-webkit-scrollbar,
#agent-page-content::-webkit-scrollbar {
  width: 6px;
}

#output::-webkit-scrollbar-track,
#result-panel::-webkit-scrollbar-track,
.result-archive::-webkit-scrollbar-track,
#agent-page-content::-webkit-scrollbar-track {
  background: transparent;
}

#output::-webkit-scrollbar-thumb,
#result-panel::-webkit-scrollbar-thumb,
.result-archive::-webkit-scrollbar-thumb,
#agent-page-content::-webkit-scrollbar-thumb {
  background: #21262d;
  border-radius: 3px;
}

#input-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 14px 20px;
  border-top: 1px solid #21262d;
  background: #010409;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

body.landing-active #input-line {
  border-top-color: rgba(63, 185, 80, 0.32);
  background: linear-gradient(180deg, rgba(63, 185, 80, 0.04) 0%, #010409 60%);
  box-shadow:
    inset 0 1px 0 rgba(63, 185, 80, 0.08),
    0 -10px 28px -10px rgba(63, 185, 80, 0.22);
  animation: prompt-breathe 3.2s ease-in-out infinite;
}

#input-line:focus-within {
  border-top-color: rgba(63, 185, 80, 0.7) !important;
  background: linear-gradient(180deg, rgba(63, 185, 80, 0.07) 0%, #010409 70%) !important;
  box-shadow:
    inset 0 1px 0 rgba(63, 185, 80, 0.32),
    0 -14px 36px -10px rgba(63, 185, 80, 0.42) !important;
  animation: none !important;
}

@keyframes prompt-breathe {
  0%, 100% {
    border-top-color: rgba(63, 185, 80, 0.28);
    box-shadow:
      inset 0 1px 0 rgba(63, 185, 80, 0.08),
      0 -10px 28px -10px rgba(63, 185, 80, 0.18);
  }
  50% {
    border-top-color: rgba(63, 185, 80, 0.5);
    box-shadow:
      inset 0 1px 0 rgba(63, 185, 80, 0.18),
      0 -14px 36px -10px rgba(63, 185, 80, 0.36);
  }
}

#prompt-char {
  color: #3fb950;
  font-size: 15px;
  font-weight: 700;
  font-family: 'SF Mono', 'IBM Plex Mono', monospace;
  text-shadow: 0 0 6px rgba(63, 185, 80, 0.35);
}

body.landing-active #prompt-char {
  animation: prompt-char-pulse 1.4s ease-in-out infinite;
}

#input-line:focus-within #prompt-char {
  animation: none;
  text-shadow: 0 0 12px rgba(63, 185, 80, 0.85), 0 0 4px rgba(63, 185, 80, 0.6);
}

@keyframes prompt-char-pulse {
  0%, 100% {
    opacity: 1;
    text-shadow: 0 0 8px rgba(63, 185, 80, 0.55), 0 0 2px rgba(63, 185, 80, 0.4);
  }
  50% {
    opacity: 0.65;
    text-shadow: 0 0 4px rgba(63, 185, 80, 0.25);
  }
}

#task-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: #e6edf3;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  caret-color: #3fb950;
}

#task-input:focus-visible {
  outline: none;
}

#task-input::placeholder {
  color: #30363d;
  transition: color 0.3s ease;
}

.research-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 12px 7px 50px;
  border: 1px solid rgba(63, 185, 80, 0.44);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(63, 185, 80, 0.14), rgba(63, 185, 80, 0.06));
  color: #c6f6cf;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 24px rgba(63, 185, 80, 0.09);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

.research-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  opacity: 0;
  pointer-events: none;
}

.research-toggle::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  width: 30px;
  height: 18px;
  border-radius: 999px;
  background: rgba(13, 17, 23, 0.84);
  border: 1px solid rgba(63, 185, 80, 0.44);
  transform: translateY(-50%);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.research-toggle::after {
  content: '';
  position: absolute;
  left: 16px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #8b949e;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  transform: translateY(-50%);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.research-toggle:has(input:checked) {
  border-color: rgba(86, 211, 100, 0.86);
  background: linear-gradient(135deg, rgba(35, 134, 54, 0.88), rgba(63, 185, 80, 0.42));
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 12px 30px rgba(63, 185, 80, 0.18);
}

.research-toggle:has(input:checked)::before {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.44);
}

.research-toggle:has(input:checked)::after {
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.16), 0 3px 10px rgba(0, 0, 0, 0.22);
  transform: translate(12px, -50%);
}

.research-toggle:has(input:focus-visible) {
  outline: 2px solid rgba(63, 185, 80, 0.46);
  outline-offset: 2px;
}

.research-toggle:has(input:disabled) {
  cursor: default;
  opacity: 0.58;
}

body.landing-active #task-input::placeholder {
  color: #4a5562;
}

#input-line:focus-within #task-input::placeholder {
  color: #586675;
}

#ask-submit {
  flex: 0 0 auto;
  padding: 7px 13px;
  border: 1px solid rgba(86, 211, 100, 0.72);
  border-radius: 999px;
  background: linear-gradient(135deg, #238636, #3fb950);
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(63, 185, 80, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

#ask-submit:hover:not(:disabled),
#ask-submit:focus-visible {
  border-color: rgba(126, 231, 135, 0.95);
  background: linear-gradient(135deg, #2ea043, #56d364);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(63, 185, 80, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

#ask-submit:disabled {
  cursor: default;
  opacity: 0.48;
}

body.agent-running #ask-submit {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  body.landing-active #input-line,
  body.landing-active #prompt-char,
  .home-radar-head a::before {
    animation: none !important;
  }

  .home-radar-head a::before {
    content: none;
  }
}

#stop-btn {
  flex: 0 0 auto;
  padding: 6px 14px;
  background: #21262d;
  color: #f85149;
  border: 1px solid rgba(248, 81, 73, 0.25);
  border-radius: 999px;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

#stop-btn:hover {
  background: rgba(248, 81, 73, 0.12);
  border-color: #f85149;
}

#spectator-panel {
  background: #fff;
  flex: 3;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-left: 1px solid #21262d;
  min-height: 0;
}

#spectator-panel[hidden] {
  display: none !important;
}

#spectator-header {
  display: flex;
  align-items: center;
  padding: 6px 12px;
  background: #161b22;
  border-bottom: 1px solid #30363d;
  gap: 8px;
}

#spectator-url {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: #8b949e;
  font-family: 'SF Mono', 'IBM Plex Mono', monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#spectator-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.spectator-mode.active {
  background: rgba(88, 166, 255, 0.16);
  color: #dceeff;
  border-color: rgba(88, 166, 255, 0.34);
}

#close-spectator {
  background: none;
  border: none;
  color: #8b949e;
  font-size: 20px;
  cursor: pointer;
  padding: 2px 6px;
}

#close-spectator:hover {
  color: #f85149;
}

#spectator-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  contain: paint;
  background:
    linear-gradient(180deg, rgba(8, 12, 20, 0.15), rgba(8, 12, 20, 0.02)),
    #0f1723;
}

#spectator,
#agent-spectator {
  position: absolute;
  inset: 0;
}

#spectator[hidden],
#agent-spectator[hidden] {
  display: none !important;
}

#spectator {
  border: none;
  width: 100%;
  height: 100%;
  background: #fff;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

#spectator.agent-underlay {
  opacity: 0;
  filter: blur(1px) saturate(0.8);
  pointer-events: none;
}

#agent-spectator {
  display: flex;
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(88, 166, 255, 0.14), transparent 30%),
    linear-gradient(180deg, #05090f 0%, #0a1422 100%);
}

#agent-spectator-shell {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid rgba(130, 189, 255, 0.2);
  border-radius: 20px;
  background: rgba(5, 9, 15, 0.82);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

#agent-spectator-shell::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(130, 189, 255, 0.08) 1px, transparent 1px);
  background-size: 100% 22px;
  opacity: 0.22;
}

#agent-spectator-kicker {
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(130, 189, 255, 0.12);
  color: #86c2ff;
  font-family: 'SF Mono', 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#agent-spectator-meta {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.8fr;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(130, 189, 255, 0.08);
  background: rgba(130, 189, 255, 0.04);
}

#agent-page-title,
#agent-page-url,
#agent-page-strategy {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#agent-page-title {
  color: #f3f7fb;
  font-weight: 600;
}

#agent-page-url,
#agent-page-strategy {
  color: #8ba0b6;
  font-family: 'SF Mono', 'IBM Plex Mono', monospace;
  font-size: 12px;
}

#agent-page-content {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 18px 20px 26px;
  border-top: 1px solid rgba(130, 189, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(127, 212, 255, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(6, 12, 22, 0.94), rgba(5, 10, 16, 0.98));
  color: #d7eefc;
  font-family: 'SF Mono', 'IBM Plex Mono', monospace;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-shadow: 0 0 10px rgba(130, 189, 255, 0.1);
  white-space: pre;
}

#agent-page-content::after {
  content: '_';
  color: #82bdff;
  animation: blink 1s steps(1, end) infinite;
}

.line {
  padding: 2px 0;
  word-wrap: break-word;
}

.line-cmd {
  color: #f0f6fc;
  font-weight: 600;
  font-family: 'SF Mono', 'IBM Plex Mono', monospace;
  padding: 8px 0 4px;
}

.line-step {
  color: #21262d;
  font-size: 1px;
  height: 1px;
  margin: 8px 0;
  border-bottom: 1px solid #21262d;
}

.line-action {
  color: #58a6ff;
  font-family: 'SF Mono', 'IBM Plex Mono', monospace;
  font-size: 13px;
}

.line-mcp {
  color: #8b949e;
  font-size: 13px;
}

.line-thinking {
  color: #d2a8ff;
  font-style: italic;
}

.line-result {
  color: #e6edf3;
  font-size: 14px;
  line-height: 1.6;
  padding: 12px 0;
  white-space: pre-wrap;
}

.line-error {
  color: #f85149;
}

.line-status {
  color: #484f58;
  font-size: 12px;
}

html[data-dynamic="1"] body {
  background:
    radial-gradient(circle at top center, rgba(255, 196, 82, 0.11), transparent 26%),
    linear-gradient(180deg, #09111c 0%, #0d1724 54%, #060b12 100%);
  color: #edf3f8;
}

html[data-dynamic="1"] body::before {
  background:
    radial-gradient(circle at 15% 18%, rgba(78, 206, 255, 0.2), transparent 28%),
    radial-gradient(circle at 85% 14%, rgba(255, 196, 82, 0.18), transparent 26%),
    radial-gradient(circle at 50% 100%, rgba(120, 255, 212, 0.12), transparent 30%);
  opacity: 1;
}

html[data-dynamic="1"] body::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.22;
}

html[data-dynamic="1"] header {
  position: absolute;
  bottom: 16px;
  top: auto;
  left: 18px;
  right: 18px;
  z-index: 12;
  height: auto;
  min-height: 58px;
  padding: 12px 16px;
  border: 1px solid rgba(130, 189, 255, 0.14);
  border-radius: 22px;
  background: rgba(3, 8, 14, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

html[data-dynamic="1"] #new-chat,
html[data-dynamic="1"] #radar-link,
html[data-dynamic="1"] #memory-lane-link,
html[data-dynamic="1"] #pricing-link,
html[data-dynamic="1"] .ghost-btn,
html[data-dynamic="1"] .spectator-mode {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(130, 189, 255, 0.16);
  color: #c3d6e6;
}

html[data-dynamic="1"] #new-chat:hover,
html[data-dynamic="1"] #radar-link:hover,
html[data-dynamic="1"] #memory-lane-link:hover,
html[data-dynamic="1"] #pricing-link:hover,
html[data-dynamic="1"] .ghost-btn:hover,
html[data-dynamic="1"] .spectator-mode:hover {
  background: rgba(130, 189, 255, 0.14);
  color: #f2f8ff;
}

html[data-dynamic="1"] #radar-link,
html[data-dynamic="1"] #memory-lane-link,
html[data-dynamic="1"] #pricing-link {
  border-color: rgba(130, 189, 255, 0.16);
  color: #a9bed1;
  background: rgba(130, 189, 255, 0.06);
}

html[data-dynamic="1"] #status-text,
html[data-dynamic="1"] #current-url {
  color: #9cb0c3;
}

html[data-dynamic="1"] #main {
  display: block;
}

html[data-dynamic="1"] #spectator-panel {
  position: absolute;
  inset: 0;
  border: none;
  background: transparent;
}

html[data-dynamic="1"] #spectator-header {
  position: absolute;
  top: 18px;
  right: 18px;
  left: 18px;
  z-index: 3;
  border-radius: 18px 18px 0 0;
  border: 1px solid rgba(130, 189, 255, 0.12);
  border-bottom: none;
  background: rgba(4, 10, 17, 0.72);
  backdrop-filter: blur(14px);
  transition:
    opacity 0.28s ease,
    transform 0.28s ease,
    border-color 0.28s ease;
}

html[data-dynamic="1"] body.landing-active #spectator-header {
  display: none;
}

html[data-dynamic="1"] #spectator-stage {
  position: absolute;
  inset: 60px 18px 108px;
  border-radius: 0 0 28px 28px;
  overflow: hidden;
  border: 1px solid rgba(130, 189, 255, 0.12);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.3);
  transition: inset 0.28s ease, box-shadow 0.28s ease;
}

html[data-dynamic="1"] #terminal {
  position: absolute;
  inset: 18px 18px 108px;
  height: auto;
  max-width: none;
  min-width: 0;
  padding: 18px 0 0;
  background: transparent;
  z-index: 6;
  pointer-events: none;
  align-items: center;
  justify-content: space-between;
  transition: padding-top 0.28s ease;
}

html[data-dynamic="1"] #response-hover-buffer {
  position: absolute;
  z-index: 1;
  pointer-events: auto;
  background: transparent;
  border-radius: 36px;
}

html[data-dynamic="1"] #response-hover-buffer[hidden] {
  display: none !important;
}

html[data-dynamic="1"] #response-shell,
html[data-dynamic="1"] #input-line,
html[data-dynamic="1"] .process-card {
  width: min(78vw, 980px);
  pointer-events: auto;
  transition:
    width 0.28s ease,
    transform 0.28s ease,
    opacity 0.28s ease,
    margin 0.28s ease;
}

html[data-dynamic="1"] #response-shell,
html[data-dynamic="1"] #input-line {
  position: relative;
  z-index: 2;
  margin: 0;
}

html[data-dynamic="1"] #response-shell {
  flex: none;
  max-height: calc(100% - 80px);
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  border: 1px solid rgba(130, 189, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(6, 12, 22, 0.96), rgba(8, 14, 24, 0.82)),
    rgba(8, 13, 21, 0.82);
  backdrop-filter: blur(22px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
  overflow: hidden;
}

html[data-dynamic="1"] #response-head,
html[data-dynamic="1"] #response-prompt,
html[data-dynamic="1"] #response-activity {
  display: flex;
}

html[data-dynamic="1"] #response-head {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 10px;
}

html[data-dynamic="1"] #response-prompt {
  padding: 0 20px;
  color: #eff5fb;
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.34;
  letter-spacing: -0.015em;
  font-family: var(--ui-font);
}

html[data-dynamic="1"] #response-activity {
  padding: 10px 20px 16px;
  color: #9eb0c4;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

html[data-dynamic="1"] #response-activity::before {
  content: 'live';
  margin-right: 10px;
  color: #7fd4ff;
}

html[data-dynamic="1"] .welcome {
  flex: none;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0 20px 24px;
}

html[data-dynamic="1"] .welcome[hidden] {
  display: none !important;
}

html[data-dynamic="1"] .welcome h2 {
  font-size: 18px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #86c2ff;
  font-weight: 500;
}

html[data-dynamic="1"] .process-card {
  margin: 0 0 16px;
}

html[data-dynamic="1"] .pricing-teaser {
  max-width: none;
  border-color: rgba(130, 189, 255, 0.14);
  background: rgba(6, 14, 24, 0.44);
}

html[data-dynamic="1"] #result-panel,
html[data-dynamic="1"] .result-archive {
  margin: 0 20px 16px;
  background: rgba(8, 17, 30, 0.92);
  border: 1px solid rgba(255, 196, 82, 0.15);
  border-radius: 20px;
  color: #dce7f4;
}

html[data-dynamic="1"] #result-panel {
  flex: 1;
  max-height: none;
  min-height: 140px;
  overflow-y: auto;
}

html[data-dynamic="1"] .result-actions {
  background: transparent;
}

html[data-dynamic="1"] .result-archive {
  opacity: 0.7;
}

html[data-dynamic="1"] #result-panel h1,
html[data-dynamic="1"] #result-panel h2,
html[data-dynamic="1"] #result-panel h3,
html[data-dynamic="1"] .result-archive h1,
html[data-dynamic="1"] .result-archive h2,
html[data-dynamic="1"] .result-archive h3 {
  color: #ffd577;
}

html[data-dynamic="1"] #result-panel strong,
html[data-dynamic="1"] .result-archive strong {
  color: #f6fbff;
}

html[data-dynamic="1"] #result-panel th,
html[data-dynamic="1"] .result-archive th {
  background: rgba(255, 196, 82, 0.08);
  color: #ffd577;
}

html[data-dynamic="1"] #result-panel code,
html[data-dynamic="1"] .result-archive code {
  background: rgba(130, 189, 255, 0.1);
}

html[data-dynamic="1"] .copy-btn {
  border-radius: 999px;
  background: rgba(255, 196, 82, 0.12);
  border-color: rgba(255, 196, 82, 0.2);
  color: #ffd577;
}

html[data-dynamic="1"] .copy-btn:hover {
  background: rgba(255, 196, 82, 0.2);
}

html[data-dynamic="1"] .share-btn {
  border-radius: 999px;
  background: rgba(88, 166, 255, 0.12);
  border-color: rgba(88, 166, 255, 0.2);
  color: #82bdff;
}

html[data-dynamic="1"] .share-btn:hover {
  background: rgba(88, 166, 255, 0.2);
}

html[data-dynamic="1"] #output-wrap {
  flex: none;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  border-top: 1px solid rgba(130, 189, 255, 0.08);
  transition: max-height 0.28s ease, opacity 0.28s ease;
}

html[data-dynamic="1"] body.trace-open #output-wrap {
  max-height: 240px;
  opacity: 1;
}

html[data-dynamic="1"] #output {
  padding: 14px 20px 20px;
  color: #9cb4cb;
}

html[data-dynamic="1"] .line-step {
  border-bottom-color: rgba(130, 189, 255, 0.12);
}

html[data-dynamic="1"] .line-thinking {
  color: #9ce9ff;
}

html[data-dynamic="1"] .line-action {
  color: #ffd577;
}

html[data-dynamic="1"] .line-mcp {
  color: #7e97ad;
}

html[data-dynamic="1"] #input-line {
  flex: none;
  margin-top: 16px;
  border: 1px solid rgba(130, 189, 255, 0.16);
  border-radius: 999px;
  background: rgba(4, 10, 17, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
}

html[data-dynamic="1"] #task-input {
  color: #f3f8fe;
}

html[data-dynamic="1"] #task-input::placeholder {
  color: #7590a8;
}

html[data-dynamic="1"] .research-toggle {
  border-color: rgba(36, 102, 217, 0.36);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(226, 240, 255, 0.72));
  color: #164181;
  box-shadow: 0 10px 28px rgba(36, 102, 217, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

html[data-dynamic="1"] .research-toggle::before {
  background: rgba(185, 211, 244, 0.8);
  border-color: rgba(36, 102, 217, 0.26);
}

html[data-dynamic="1"] .research-toggle::after {
  background: #4f6d8d;
}

html[data-dynamic="1"] .research-toggle:has(input:checked) {
  border-color: rgba(251, 160, 44, 0.76);
  background: linear-gradient(135deg, #f97316, #fbbf24);
  color: #fffaf0;
  box-shadow: 0 14px 32px rgba(249, 115, 22, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

html[data-dynamic="1"] .research-toggle:has(input:checked)::before {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.48);
}

html[data-dynamic="1"] .research-toggle:has(input:checked)::after {
  background: #ffffff;
}

html[data-dynamic="1"] #ask-submit {
  border-color: rgba(36, 102, 217, 0.48);
  background: linear-gradient(135deg, #245cae, #3f7be0 58%, #62b6ff);
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(36, 92, 174, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

html[data-dynamic="1"] #ask-submit:hover:not(:disabled),
html[data-dynamic="1"] #ask-submit:focus-visible {
  border-color: rgba(36, 102, 217, 0.68);
  background: linear-gradient(135deg, #1f58ad, #2f81f7 58%, #7fd4ff);
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(36, 92, 174, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

html[data-dynamic="1"] #prompt-char {
  color: #ffd577;
}

html[data-dynamic="1"] body.landing-active #response-actions {
  display: flex;
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
}

html[data-dynamic="1"] body.landing-active #view-toggle,
html[data-dynamic="1"] body.landing-active #trace-toggle {
  display: none;
}

html[data-dynamic="1"] body.landing-active #layout-toggle {
  display: none;
}

html[data-dynamic="1"] #stop-btn {
  background: rgba(248, 81, 73, 0.1);
}

html[data-dynamic="1"] body.agent-browsing #response-shell,
html[data-dynamic="1"] body.agent-browsing #input-line,
html[data-dynamic="1"] body.agent-browsing .process-card {
  flex: 0 0 auto;
  min-width: 0;
  /* Docked/compact while browsing. This MUST match the body.browser-focus
     geometry: browser-focus is a transient (pointer/hold) class, so if
     agent-browsing carried the wide (1160px) width, the shell would "semi
     expand" to 1160px whenever browser-focus lapsed (20s hold) or the pointer
     entered the dock (restoreShellFocus). Pinning the compact width here keeps
     the shell stably docked for the whole browsing phase. */
  width: min(34vw, 440px) !important;
  max-width: min(34vw, 440px);
  align-self: flex-end;
  margin-right: 22px;
  margin-left: 0;
}

html[data-dynamic="1"] body.agent-browsing #response-shell {
  height: min(620px, calc(100% - 72px));
  min-height: min(500px, calc(100% - 72px));
  max-height: calc(100% - 72px);
  overflow-y: auto;
}

html[data-dynamic="1"] body.agent-browsing .process-card,
html[data-dynamic="1"] body.browser-focus .process-card,
html[data-dynamic="1"] body.manual-compact .process-card {
  transform: none;
}

html[data-dynamic="1"] body.agent-browsing #response-shell {
  height: min(620px, calc(100% - 72px));
  min-height: min(500px, calc(100% - 72px));
  max-height: calc(100% - 72px);
  overflow-y: auto;
}

html[data-dynamic="1"] body.agent-browsing #response-prompt {
  display: -webkit-box;
  min-height: 2.7em;
  max-height: 5.4em;
  overflow: hidden;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

html[data-dynamic="1"] body.agent-browsing #response-activity {
  min-height: 34px;
  max-height: 34px;
  overflow: hidden;
}

html[data-dynamic="1"] body.agent-answer-focus #response-shell,
html[data-dynamic="1"] body.agent-answer-focus #input-line,
html[data-dynamic="1"] body.agent-answer-focus .process-card {
  width: min(84vw, 1160px);
}

html[data-dynamic="1"] body.agent-answer-focus:not(.browser-focus):not(.manual-compact) #spectator-header,
html[data-dynamic="1"] body.spectator-hidden #spectator-header {
  opacity: 0;
  transform: translateY(-18px);
  pointer-events: none;
}

html[data-dynamic="1"] body.agent-answer-focus:not(.browser-focus):not(.manual-compact) #spectator-stage,
html[data-dynamic="1"] body.spectator-hidden #spectator-stage {
  inset: 18px 18px 108px;
}

html[data-dynamic="1"] body.agent-answer-focus:not(.browser-focus):not(.manual-compact) #terminal,
html[data-dynamic="1"] body.spectator-hidden #terminal {
  padding-top: 12px;
}

html[data-dynamic="1"] body.browser-focus #response-shell,
html[data-dynamic="1"] body.browser-focus #input-line,
html[data-dynamic="1"] body.browser-focus .process-card,
html[data-dynamic="1"] body.manual-compact #response-shell,
html[data-dynamic="1"] body.manual-compact #input-line,
html[data-dynamic="1"] body.manual-compact .process-card {
  flex: 0 0 auto;
  min-width: 0;
  width: min(28vw, 380px) !important;
  max-width: min(28vw, 380px);
  align-self: flex-end;
  margin-right: 22px;
  margin-left: 0;
}

html[data-dynamic="1"] body.browser-focus #response-shell,
html[data-dynamic="1"] body.browser-focus #input-line,
html[data-dynamic="1"] body.browser-focus .process-card {
  width: min(34vw, 440px) !important;
  max-width: min(34vw, 440px);
}

html[data-dynamic="1"] body.browser-focus #response-shell,
html[data-dynamic="1"] body.manual-compact #response-shell {
  height: min(460px, calc(100% - 72px));
  min-height: min(360px, calc(100% - 72px));
  max-height: calc(100% - 72px);
  overflow-y: auto;
}

html[data-dynamic="1"] body.agent-browsing.browser-focus #response-shell {
  height: min(620px, calc(100% - 72px));
  min-height: min(500px, calc(100% - 72px));
  max-height: calc(100% - 72px);
}

html[data-dynamic="1"] body.agent-browsing .process-card,
html[data-dynamic="1"] body.browser-focus .process-card,
html[data-dynamic="1"] body.manual-compact .process-card {
  transform: none;
}

html[data-dynamic="1"] body.panel-peek #response-shell,
html[data-dynamic="1"] body.panel-peek #input-line,
html[data-dynamic="1"] body.panel-peek .process-card {
  transform: translateX(calc(-1 * min(18vw, 220px)));
}

html[data-dynamic="1"] #response-shell > .process-card {
  width: auto !important;
  max-width: none;
  align-self: stretch;
  order: 20;
  margin: auto 20px 16px;
  transform: none !important;
}

html[data-dynamic="1"] #response-shell > #result-panel,
html[data-dynamic="1"] #response-shell > #output-wrap {
  align-self: stretch;
}

html[data-dynamic="1"] body.agent-browsing #response-prompt,
html[data-dynamic="1"] body.browser-focus #response-prompt,
html[data-dynamic="1"] body.manual-compact #response-prompt {
  display: -webkit-box !important;
  min-height: 0;
  max-height: 2.8em;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

html[data-dynamic="1"] body.agent-browsing .process-card,
html[data-dynamic="1"] body.browser-focus .process-card,
html[data-dynamic="1"] body.manual-compact .process-card {
  margin-right: 0;
}

html[data-dynamic="1"] body.spectator-hidden #response-shell,
html[data-dynamic="1"] body.spectator-hidden #input-line,
html[data-dynamic="1"] body.spectator-hidden .process-card {
  width: min(84vw, 1160px);
}

@media (max-width: 960px) {
  #main {
    flex-direction: column;
  }

  #spectator-panel {
    flex: none;
    height: 50vh;
    border-left: none;
    border-bottom: 1px solid #21262d;
    order: -1;
  }

  #terminal {
    max-width: 100%;
    min-width: 0;
  }

  #result-panel {
    max-height: 25vh;
  }

  #current-url {
    display: none;
  }

  #agent-spectator-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  header {
    padding: 8px 12px;
    gap: 8px;
  }

  /* On mobile the dot is enough; "loading..." duplicates the response phase below */
  #status-text {
    display: none;
  }

  /* Tighter pill sizing across the header so brand + New + status + auth fit one row */
  #new-chat {
    padding: 4px 10px;
  }

  .zen-toggle {
    margin-right: 2px;
    padding: 0 10px;
    height: 28px;
    letter-spacing: 0.12em;
  }

  /* Drop the name label — avatar alone identifies the signed-in user */
  .auth-pill {
    padding: 3px;
    max-width: none;
  }
  .auth-pill .auth-pill-name {
    display: none;
  }

  .auth-signout {
    padding: 4px 8px;
  }

  #auth-slot {
    gap: 4px;
  }

  .welcome {
    padding: 20px 16px;
    gap: 16px;
  }

  .welcome h2 {
    font-size: clamp(24px, 6vw, 34px);
  }

  .welcome-cases {
    grid-template-columns: 1fr 1fr;
  }

  .pricing-teaser {
    grid-template-columns: auto 1fr auto;
    gap: 6px 10px;
    padding: 10px;
  }

  .pricing-teaser-kicker {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .pricing-teaser-copy {
    grid-column: 1 / 3;
  }

  .pricing-teaser-copy {
    font-size: 12px;
  }

  .sample {
    font-size: 13px;
  }

  #result-panel,
  .result-archive {
    margin: 8px 12px;
    padding: 12px;
  }

  #output {
    padding: 8px 12px;
  }

  #input-line {
    padding: 14px 12px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    min-height: 56px;
  }

  .research-toggle {
    min-height: 34px;
    padding: 6px 10px 6px 48px;
  }

  #task-input {
    font-size: 16px;
  }

  #spectator-controls {
    gap: 6px;
  }

  .spectator-mode,
  .ghost-btn {
    padding: 4px 10px;
  }

  /*
   * Mobile searchagentsky: switch from full-screen overlay to stacked layout.
   * Browser sits on top, response panel directly below — no absolute-position juggling.
   * The floating header remains as an overlay above the input line.
   */
  html[data-dynamic="1"] #main {
    display: flex;
    flex-direction: column;
  }

  html[data-dynamic="1"] #spectator-panel {
    position: static;
    flex: 0 0 46vh;
    border: none;
    border-bottom: 1px solid rgba(130, 189, 255, 0.12);
    background: transparent;
    transition: flex-basis 0.35s ease;
  }

  /* Shrink browser when agent has answered — response panel rises up */
  html[data-dynamic="1"] body.agent-answer-focus #spectator-panel {
    flex: 0 0 5vh;
    overflow: hidden;
  }

  /* Hide the stage sliver — only the header bar is meaningful at 5vh */
  html[data-dynamic="1"] body.agent-answer-focus #spectator-stage {
    display: none;
  }

  html[data-dynamic="1"] #spectator-header {
    position: static;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(130, 189, 255, 0.08);
    backdrop-filter: blur(10px);
    transition: none;
  }

  html[data-dynamic="1"] #spectator-stage {
    /* Keep relative so the absolutely-positioned iframe stays contained */
    position: relative;
    inset: auto;
    flex: 1;
    min-height: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    transition: none;
  }

  html[data-dynamic="1"] #terminal {
    position: static;
    inset: auto;
    height: auto;
    max-width: none;
    min-width: 0;
    flex: 1;
    min-height: 0;
    padding: 0 0 calc(76px + env(safe-area-inset-bottom, 0px));
    background: transparent;
    z-index: auto;
    pointer-events: auto;
    align-items: stretch;
    justify-content: space-between;
    transition: none;
  }

  /* Reset ALL compact/focus width/align/transform overrides — stacked layout handles it */
  html[data-dynamic="1"] #response-shell,
  html[data-dynamic="1"] #input-line,
  html[data-dynamic="1"] .process-card,
  html[data-dynamic="1"] body.agent-browsing #response-shell,
  html[data-dynamic="1"] body.agent-browsing #input-line,
  html[data-dynamic="1"] body.agent-browsing .process-card,
  html[data-dynamic="1"] body.agent-answer-focus #response-shell,
  html[data-dynamic="1"] body.agent-answer-focus #input-line,
  html[data-dynamic="1"] body.agent-answer-focus .process-card,
  html[data-dynamic="1"] body.browser-focus #response-shell,
  html[data-dynamic="1"] body.browser-focus #input-line,
  html[data-dynamic="1"] body.browser-focus .process-card,
  html[data-dynamic="1"] body.manual-compact #response-shell,
  html[data-dynamic="1"] body.manual-compact #input-line,
  html[data-dynamic="1"] body.manual-compact .process-card,
  html[data-dynamic="1"] body.spectator-hidden #response-shell,
  html[data-dynamic="1"] body.spectator-hidden #input-line,
  html[data-dynamic="1"] body.spectator-hidden .process-card,
  html[data-dynamic="1"] body.panel-peek #response-shell,
  html[data-dynamic="1"] body.panel-peek #input-line,
  html[data-dynamic="1"] body.panel-peek .process-card {
    width: 100%;
    max-width: none;
    margin: 0;
    align-self: auto;
    transform: none;
  }

  html[data-dynamic="1"] #response-shell {
    flex: 1;
    min-height: 0;
    max-height: none;
    overflow: hidden;
    border-radius: 0;
    border: none;
    backdrop-filter: none;
    background: rgba(8, 13, 21, 0.98);
    box-shadow: none;
  }

  /* Reset browser-focus/agent-browsing collapse — not needed in stacked layout */
  html[data-dynamic="1"] body.browser-focus #response-shell,
  html[data-dynamic="1"] body.agent-browsing #response-shell {
    max-height: none;
  }

  html[data-dynamic="1"] #input-line {
    flex: none;
    margin-top: 0;
    border-radius: 0;
    border: none;
    border-top: 1px solid rgba(130, 189, 255, 0.12);
    box-shadow: none;
    backdrop-filter: none;
    background: rgba(4, 10, 17, 0.98);
  }

  /* Center the welcome / sample-buttons section in stacked mobile layout */
  html[data-dynamic="1"] .welcome {
    align-items: center;
    justify-content: center;
    padding: 16px 20px 20px;
  }

  html[data-dynamic="1"] #samples {
    max-width: none;
  }

  html[data-dynamic="1"] #response-head {
    flex-wrap: nowrap;
    padding: 6px 12px;
    gap: 8px;
  }

  html[data-dynamic="1"] #response-actions {
    flex-shrink: 0;
  }

  html[data-dynamic="1"] #response-prompt {
    font-size: 15px;
    padding: 0 16px;
  }

  html[data-dynamic="1"] #response-activity {
    padding: 8px 16px 12px;
  }

  /* Restore Trace toggle: hidden by default, visible when trace-open */
  html[data-dynamic="1"] #output-wrap {
    flex: none;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
  }

  html[data-dynamic="1"] body.trace-open #output-wrap {
    max-height: 220px;
    opacity: 1;
  }

  /* agent-answer-focus hides spectator-header via opacity+transform on desktop,
     but on mobile it's in normal flow — hiding it leaves a blank strip.
     Override to keep it always visible in the stacked layout. */
  html[data-dynamic="1"] body.agent-answer-focus:not(.browser-focus):not(.manual-compact) #spectator-header {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  /* Desktop agent-answer-focus adds padding-top: 12px to #terminal (high specificity),
     which bleeds into mobile and creates a gap between spectator-panel and terminal. */
  html[data-dynamic="1"] body.agent-answer-focus:not(.browser-focus):not(.manual-compact) #terminal {
    padding-top: 0;
  }

}

@media (max-width: 480px) {
  /* Classic experience: tighten further for small phones */
  #spectator-panel {
    height: 40vh;
  }

  .welcome {
    padding: 16px 12px;
  }

  .welcome h2 {
    font-size: 21px;
  }

  .welcome-actions {
    align-items: flex-start;
  }

  .welcome-cases {
    grid-template-columns: 1fr;
  }

  .sample {
    padding: 8px 14px;
    font-size: 13px;
  }

  .pricing-teaser {
    grid-template-columns: 1fr;
  }

  .pricing-teaser-kicker,
  .pricing-teaser-copy {
    grid-column: auto;
  }

  .pricing-teaser-action {
    justify-self: start;
  }

  #input-line {
    padding: 12px 10px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .research-toggle span {
    display: none;
  }

  .research-toggle {
    min-width: 46px;
    padding-right: 8px;
  }

  /* Searchagentsky small phone: tighter sizing, same stacked layout */
  html[data-dynamic="1"] header {
    left: 8px;
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    padding: 8px 10px;
    min-height: 48px;
    border-radius: 16px;
  }

  html[data-dynamic="1"] #spectator-panel {
    flex: 0 0 40vh;
  }

  html[data-dynamic="1"] #terminal {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  }

  html[data-dynamic="1"] #response-prompt {
    font-size: 16px;
  }

  html[data-dynamic="1"] #response-head {
    padding: 5px 10px;
  }

  html[data-dynamic="1"] #response-phase {
    flex-basis: 112px;
    width: 112px;
  }

  html[data-dynamic="1"] #response-activity {
    padding: 6px 12px 10px;
    font-size: 12px;
  }

  html[data-dynamic="1"] #new-chat,
  html[data-dynamic="1"] .ghost-btn {
    font-size: 11px;
    padding: 3px 10px;
  }
}

@media (max-width: 768px) {
  html[data-dynamic="1"] #spectator-panel {
    flex: 0 0 0;
    height: 0;
    min-height: 0;
    overflow: hidden;
    border: 0;
  }

  html[data-dynamic="1"] #spectator-header,
  html[data-dynamic="1"] #spectator-stage {
    display: none;
  }

  html[data-dynamic="1"] body.mobile-browser-open #spectator-panel {
    position: fixed;
    inset: 10px;
    z-index: 40;
    display: flex !important;
    flex: none;
    height: auto;
    min-height: 0;
    border: 1px solid rgba(130, 189, 255, 0.2);
    border-radius: 22px;
    background: #050b12;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.56);
  }

  html[data-dynamic="1"] body.mobile-browser-open #spectator-header {
    display: flex;
    position: static;
    border-radius: 22px 22px 0 0;
    border-bottom: 1px solid rgba(130, 189, 255, 0.14);
  }

  html[data-dynamic="1"] body.mobile-browser-open #spectator-stage {
    display: block;
    position: relative;
    flex: 1;
    min-height: 0;
  }

  html[data-dynamic="1"] body.mobile-browser-open header,
  html[data-dynamic="1"] body.mobile-browser-open #terminal {
    visibility: hidden;
    pointer-events: none;
  }

  html[data-dynamic="1"] .process-card {
    margin: 0 14px 12px;
    padding: 14px;
    border-radius: 18px;
  }

  .process-activity {
    font-size: 14px;
  }

  .process-steps {
    gap: 6px;
  }

  .process-steps li {
    padding: 7px 4px;
    font-size: 10px;
  }

  .process-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .process-action {
    min-height: 38px;
  }

  html[data-dynamic="1"] .prompt-explorer-shell {
    width: 100%;
    max-height: 230px;
    padding: 12px;
    border: 1px solid rgba(130, 189, 255, 0.14);
    border-radius: 18px;
    background: rgba(5, 11, 19, 0.72);
  }

  html[data-dynamic="1"] .prompt-explorer-head {
    align-items: flex-start;
  }

  html[data-dynamic="1"] #prompt-explorer-summary {
    display: none;
  }

  html[data-dynamic="1"] #samples {
    max-height: 150px;
  }

  html[data-dynamic="1"] .prompt-explorer-toggle {
    width: 100%;
    min-width: 0;
    justify-content: space-between;
  }

  html[data-dynamic="1"] body.prompt-explorer-open .prompt-explorer-shell {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 50;
    max-height: min(78dvh, 680px);
    padding: 16px;
    border-radius: 24px;
    background:
      radial-gradient(circle at top right, rgba(88, 166, 255, 0.16), transparent 34%),
      rgba(5, 11, 19, 0.98);
    box-shadow: 0 24px 90px rgba(0, 0, 0, 0.62);
  }

  html[data-dynamic="1"] body.prompt-explorer-open #prompt-explorer-summary {
    display: block;
  }

  html[data-dynamic="1"] body.prompt-explorer-open #samples {
    max-height: calc(min(78dvh, 680px) - 210px);
  }

  html[data-dynamic="1"] body.prompt-explorer-open .sample-preview {
    display: none;
  }
}

/* ---------- Landing-page fun enhancements ---------- */

/* #2 Sample cards stagger-rise on landing */
body.landing-active .sample {
  animation: sample-rise 0.45s ease-out backwards;
}
body.landing-active .samples-row .sample:nth-child(1) { animation-delay: 0.04s; }
body.landing-active .samples-row .sample:nth-child(2) { animation-delay: 0.10s; }
body.landing-active .samples-row .sample:nth-child(3) { animation-delay: 0.16s; }
body.landing-active .samples-row .sample:nth-child(4) { animation-delay: 0.22s; }
body.landing-active .samples-row .sample:nth-child(5) { animation-delay: 0.28s; }
body.landing-active .samples-row .sample:nth-child(6) { animation-delay: 0.34s; }
body.landing-active .samples-row .sample:nth-child(7) { animation-delay: 0.40s; }
body.landing-active .samples-row .sample:nth-child(n+8) { animation-delay: 0.46s; }

@keyframes sample-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Welcome heading subtle entry */
body.landing-active .welcome h2 {
  animation: heading-fade 0.6s ease-out backwards;
}
@keyframes heading-fade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* #3 Sample hover preview pane */
/* #4 Recently-asked ticker */
.recent-ticker {
  width: 100%;
  max-width: 700px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: #4a5568;
  border-top: 1px dashed #21262d;
  border-bottom: 1px dashed #21262d;
  padding: 6px 0;
  overflow: hidden;
  animation: ticker-fade-in 0.7s ease-out 0.6s backwards;
}
.recent-ticker[hidden] { display: none; }
.recent-ticker-label {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4a5562;
}
.recent-ticker-track {
  flex: 1;
  display: flex;
  gap: 22px;
  white-space: nowrap;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}
.recent-ticker-track-inner {
  display: flex;
  gap: 22px;
  animation: ticker-scroll 60s linear infinite;
}
.recent-ticker:hover .recent-ticker-track-inner {
  animation-play-state: paused;
}
.recent-ticker-item {
  color: #6e7d8c;
  text-decoration: none;
  font-size: 12px;
  transition: color 0.18s ease;
}
.recent-ticker-item:hover {
  color: #9fe1aa;
}
.recent-ticker-item::before {
  content: '> ';
  color: #3fb950;
  opacity: 0.6;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes ticker-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* #6 Subtle scanline overlay (landing only, very faint) */
body.landing-active::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(63, 185, 80, 0.022) 0,
      rgba(63, 185, 80, 0.022) 1px,
      transparent 1px,
      transparent 3px
    );
  mix-blend-mode: screen;
  opacity: 0.35;
}
@keyframes scanline-drift {
  from { background-position: 0 0; }
  to { background-position: 0 6px; }
}

@media (prefers-reduced-motion: reduce) {
  body.landing-active .sample,
  body.landing-active .welcome h2,
  .pricing-teaser,
  .pricing-teaser-signal span,
  body.landing-active::after,
  .recent-ticker,
  .recent-ticker-track-inner {
    animation: none !important;
  }

  .prompt-explorer-shell,
  .prompt-explorer-backdrop,
  .prompt-explorer-toggle,
  .prompt-preview,
  .topic-card-details {
    transition: none !important;
  }
}

/* ---------- Search Agent Sky: live research desk ---------- */

html[data-dynamic="1"] body {
  --desk-ink: #10203b;
  --desk-muted: #60728b;
  --desk-soft: rgba(232, 243, 255, 0.66);
  --desk-paper: rgba(246, 251, 255, 0.6);
  --desk-card: rgba(250, 253, 255, 0.58);
  --desk-line: rgba(130, 169, 221, 0.28);
  --desk-blue: #2466d9;
  --desk-coral: #3287e6;
  --desk-green: #178caa;
  --desk-gold: #3d76bd;
  background:
    radial-gradient(circle at 14% 8%, rgba(91, 151, 255, 0.24), transparent 30%),
    radial-gradient(circle at 82% 10%, rgba(118, 207, 255, 0.22), transparent 28%),
    radial-gradient(circle at 50% 72%, rgba(255, 255, 255, 0.92), transparent 36%),
    linear-gradient(180deg, #f8fbff 0%, #eaf4ff 48%, #f6fbff 100%);
  color: var(--desk-ink);
  font-family: var(--ui-font);
}

html[data-dynamic="1"] body::before {
  background:
    linear-gradient(90deg, rgba(36, 102, 217, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(36, 102, 217, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 1;
}

html[data-dynamic="1"] body::after,
html[data-dynamic="1"] body.landing-active::after {
  display: none;
}

html[data-dynamic="1"] body.landing-active #main {
  background: linear-gradient(180deg, #05070b 0%, #0a111c 100%);
}

html[data-dynamic="1"] body.landing-active #spectator-stage {
  isolation: isolate;
  background: #05070b;
}

html[data-dynamic="1"] body.landing-active #spectator {
  background: #05070b;
}

html[data-dynamic="1"] header {
  border-color: rgba(91, 151, 255, 0.22);
  background: rgba(248, 252, 255, 0.58);
  color: var(--desk-ink);
  box-shadow: 0 18px 44px rgba(63, 116, 196, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(26px) saturate(1.28);
}

html[data-dynamic="1"] #experience-chip {
  border-color: rgba(36, 102, 217, 0.24);
  background: rgba(233, 243, 255, 0.72);
  color: #1e57b7;
}

html[data-dynamic="1"] #unchained-byline {
  color: #60728b;
}

html[data-dynamic="1"] #unchained-byline:hover,
html[data-dynamic="1"] #unchained-byline:focus-visible {
  color: #1e57b7;
}

html[data-dynamic="1"] #new-chat,
html[data-dynamic="1"] #radar-link,
html[data-dynamic="1"] #memory-lane-link,
html[data-dynamic="1"] #pricing-link,
html[data-dynamic="1"] .ghost-btn,
html[data-dynamic="1"] .spectator-mode,
html[data-dynamic="1"] #sign-in-btn,
html[data-dynamic="1"] .auth-pill {
  border-color: rgba(91, 151, 255, 0.22);
  border-radius: 14px;
  background: rgba(250, 253, 255, 0.52);
  color: var(--desk-ink);
  backdrop-filter: blur(16px) saturate(1.2);
}

html[data-dynamic="1"] #new-chat:hover,
html[data-dynamic="1"] #radar-link:hover,
html[data-dynamic="1"] #memory-lane-link:hover,
html[data-dynamic="1"] #pricing-link:hover,
html[data-dynamic="1"] .ghost-btn:hover,
html[data-dynamic="1"] .spectator-mode:hover,
html[data-dynamic="1"] #sign-in-btn:hover {
  background: rgba(232, 244, 255, 0.82);
  color: #0f1a2d;
  border-color: rgba(36, 102, 217, 0.34);
}

html[data-dynamic="1"] #radar-link,
html[data-dynamic="1"] #memory-lane-link,
html[data-dynamic="1"] #pricing-link {
  color: #214a91;
}

html[data-dynamic="1"] #status-text,
html[data-dynamic="1"] #current-url,
html[data-dynamic="1"] #spectator-url {
  color: var(--desk-muted);
}

html[data-dynamic="1"] #status-dot.active {
  background: var(--desk-green);
  box-shadow: none;
  animation: none;
}

html[data-dynamic="1"] #spectator-header {
  border-color: rgba(91, 151, 255, 0.2);
  background: rgba(248, 252, 255, 0.58);
  color: var(--desk-ink);
  backdrop-filter: blur(22px) saturate(1.22);
}

html[data-dynamic="1"] #spectator-stage {
  border-color: rgba(91, 151, 255, 0.18);
  background: rgba(246, 251, 255, 0.3);
  box-shadow: 0 24px 66px rgba(63, 116, 196, 0.14);
}

html[data-dynamic="1"] #response-shell {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  max-height: none;
  container-type: inline-size;
  border: 1px solid rgba(91, 151, 255, 0.2);
  border-radius: 30px 30px 18px 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(238, 248, 255, 0.82)),
    var(--desk-paper);
  color: var(--desk-ink);
  box-shadow: 0 24px 76px rgba(63, 116, 196, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

html[data-dynamic="1"] #terminal {
  gap: 16px;
  justify-content: flex-start;
}

html[data-dynamic="1"] #input-line {
  margin-top: 0;
}

html[data-dynamic="1"] .welcome {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

html[data-dynamic="1"] #response-head {
  min-height: 54px;
  padding: 14px 18px 10px;
  border-bottom: 1px solid rgba(91, 151, 255, 0.12);
}

html[data-dynamic="1"] .response-head-copy {
  min-width: 0;
}

html[data-dynamic="1"] #response-actions {
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

html[data-dynamic="1"] #response-actions .ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 7px 10px;
  line-height: 1;
}

html[data-dynamic="1"] #response-phase {
  flex: 0 0 auto;
  width: auto;
  min-width: 110px;
  height: 30px;
  padding: 0 11px;
  border-color: rgba(36, 102, 217, 0.2);
  border-radius: 12px;
  background: rgba(231, 242, 255, 0.82);
  color: #1e57b7;
  font-size: 10px;
  line-height: 1;
  text-align: center;
}

html[data-dynamic="1"] #response-prompt {
  padding: 10px 18px 0;
  color: var(--desk-ink);
  font-family: var(--ui-font);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.012em;
}

html[data-dynamic="1"] #response-activity {
  align-items: center;
  padding: 7px 18px 14px;
  color: #5f718a;
  font-size: 12px;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
}

html[data-dynamic="1"] #response-activity::before {
  content: '';
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--desk-coral);
  box-shadow: 0 0 0 3px rgba(232, 111, 68, 0.12);
}

html[data-dynamic="1"] .welcome {
  gap: 18px;
  padding: 0 24px 26px;
}

html[data-dynamic="1"] #response-shell .prompt-explorer-toggle {
  align-self: flex-start;
  flex: 0 0 auto;
  width: min(100%, 320px);
  margin: 0 24px 18px;
  position: relative;
  z-index: 2;
}

html[data-dynamic="1"] body.landing-active #response-shell .prompt-explorer-toggle {
  position: sticky;
  bottom: 16px;
}

html[data-dynamic="1"] body.agent-running #response-shell .prompt-explorer-toggle,
html[data-dynamic="1"] body.agent-answer-focus #response-shell .prompt-explorer-toggle,
html[data-dynamic="1"] body.agent-browsing #response-shell .prompt-explorer-toggle,
html[data-dynamic="1"] body.browser-focus #response-shell .prompt-explorer-toggle,
html[data-dynamic="1"] body.manual-compact #response-shell .prompt-explorer-toggle,
html[data-dynamic="1"] body.panel-peek #response-shell .prompt-explorer-toggle {
  display: none;
}

html[data-dynamic="1"] body.agent-running #response-shell .prompt-explorer-shell,
html[data-dynamic="1"] body.agent-answer-focus #response-shell .prompt-explorer-shell,
html[data-dynamic="1"] body.agent-browsing #response-shell .prompt-explorer-shell,
html[data-dynamic="1"] body.browser-focus #response-shell .prompt-explorer-shell,
html[data-dynamic="1"] body.manual-compact #response-shell .prompt-explorer-shell,
html[data-dynamic="1"] body.panel-peek #response-shell .prompt-explorer-shell,
html[data-dynamic="1"] body.agent-running .prompt-explorer-backdrop,
html[data-dynamic="1"] body.agent-answer-focus .prompt-explorer-backdrop,
html[data-dynamic="1"] body.agent-browsing .prompt-explorer-backdrop,
html[data-dynamic="1"] body.browser-focus .prompt-explorer-backdrop,
html[data-dynamic="1"] body.manual-compact .prompt-explorer-backdrop,
html[data-dynamic="1"] body.panel-peek .prompt-explorer-backdrop {
  display: none !important;
}

html[data-dynamic="1"] .welcome h2 {
  color: var(--desk-blue);
}

html[data-dynamic="1"] .how-it-works {
  gap: 10px;
  flex-wrap: wrap;
}

html[data-dynamic="1"] .how-step {
  gap: 9px;
  color: #5b6d86;
}

html[data-dynamic="1"] .how-num {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border-color: rgba(36, 102, 217, 0.2);
  background: rgba(232, 244, 255, 0.78);
  color: var(--desk-blue);
}

html[data-dynamic="1"] body.landing-active .how-num,
html[data-dynamic="1"] body.landing-active .how-arrow {
  animation: none;
}

html[data-dynamic="1"] .how-arrow {
  color: #82a2ce;
}

html[data-dynamic="1"] .pricing-teaser {
  position: fixed;
  top: calc(92px + env(safe-area-inset-top, 0px));
  right: clamp(16px, 3vw, 44px);
  z-index: 12;
  width: 172px;
  max-width: calc(100vw - 32px);
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 12px;
  padding: 9px 11px;
  border-color: rgba(91, 151, 255, 0.2);
  border-radius: 999px;
  background: rgba(250, 253, 255, 0.78);
  color: var(--desk-muted);
  box-shadow: 0 14px 32px rgba(63, 116, 196, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(22px) saturate(1.2);
  overflow: hidden;
  opacity: 0.92;
  transition:
    width 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

html[data-dynamic="1"] body:not(.landing-active) .pricing-teaser,
html[data-dynamic="1"] body.agent-running .pricing-teaser,
html[data-dynamic="1"] body.agent-answer-focus .pricing-teaser,
html[data-dynamic="1"] body.agent-browsing .pricing-teaser {
  display: none !important;
}

html[data-dynamic="1"] .pricing-teaser:hover,
html[data-dynamic="1"] .pricing-teaser:focus-visible,
html[data-dynamic="1"] .pricing-teaser.is-expanded {
  width: min(330px, calc(100vw - 32px));
  border-color: rgba(36, 102, 217, 0.34);
  border-radius: 18px;
  background: rgba(238, 247, 255, 0.76);
  opacity: 1;
}

html[data-dynamic="1"] .pricing-teaser-signal {
  border-color: rgba(36, 102, 217, 0.2);
  background: rgba(231, 242, 255, 0.68);
}

html[data-dynamic="1"] .pricing-teaser-signal span {
  background: var(--desk-blue);
}

html[data-dynamic="1"] .pricing-teaser-kicker {
  grid-column: 2 / 3;
  justify-self: start;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(231, 242, 255, 0.78);
  color: #1e57b7;
}

html[data-dynamic="1"] .pricing-teaser-copy {
  grid-column: 2 / 3;
  color: var(--desk-muted);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.24s ease, opacity 0.18s ease;
}

html[data-dynamic="1"] .pricing-teaser-action {
  grid-column: 2 / 3;
  justify-self: start;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  color: #1e57b7;
  transition: max-height 0.24s ease, opacity 0.18s ease;
}

html[data-dynamic="1"] .pricing-teaser:hover .pricing-teaser-copy,
html[data-dynamic="1"] .pricing-teaser:focus-visible .pricing-teaser-copy,
html[data-dynamic="1"] .pricing-teaser.is-expanded .pricing-teaser-copy,
html[data-dynamic="1"] .pricing-teaser:hover .pricing-teaser-action,
html[data-dynamic="1"] .pricing-teaser:focus-visible .pricing-teaser-action,
html[data-dynamic="1"] .pricing-teaser.is-expanded .pricing-teaser-action {
  max-height: 42px;
  opacity: 1;
}

html[data-dynamic="1"] .home-radar {
  max-width: none;
  border-color: rgba(91, 151, 255, 0.2);
  background: rgba(250, 253, 255, 0.54);
  box-shadow: 0 14px 34px rgba(63, 116, 196, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(22px) saturate(1.2);
}

html[data-dynamic="1"] .home-radar-kicker,
html[data-dynamic="1"] .home-radar-meta {
  color: #1e57b7;
}

html[data-dynamic="1"] .home-radar h3,
html[data-dynamic="1"] .home-radar-row h4 {
  color: var(--desk-ink);
}

html[data-dynamic="1"] .home-radar-head a,
html[data-dynamic="1"] .home-radar-ask {
  color: #1e57b7;
}

html[data-dynamic="1"] .home-radar-head a,
html[data-dynamic="1"] .home-radar-row {
  border-color: rgba(91, 151, 255, 0.16);
  background: rgba(255, 255, 255, 0.6);
}

html[data-dynamic="1"] .home-radar-row p,
html[data-dynamic="1"] .home-radar-loading {
  color: var(--desk-muted);
}

html[data-dynamic="1"] .home-radar-ask {
  border-color: rgba(36, 102, 217, 0.18);
  background: rgba(231, 242, 255, 0.78);
}

html[data-dynamic="1"] .home-radar-head a {
  border-color: rgba(36, 102, 217, 0.32);
  background: linear-gradient(135deg, rgba(36, 102, 217, 0.96), rgba(50, 135, 230, 0.88));
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(36, 102, 217, 0.18);
}

html[data-dynamic="1"] .home-radar-head a:hover {
  border-color: rgba(36, 102, 217, 0.46);
  background: linear-gradient(135deg, rgba(26, 86, 190, 0.98), rgba(36, 126, 224, 0.92));
}

html[data-dynamic="1"] .recent-ticker {
  border-color: rgba(91, 151, 255, 0.18);
  color: #6d7f96;
}

html[data-dynamic="1"] .recent-ticker-label {
  color: #2a65b8;
}

html[data-dynamic="1"] .recent-ticker-item,
html[data-dynamic="1"] .sample-preview {
  color: #6c7f97;
}

html[data-dynamic="1"] .recent-ticker-item::before,
html[data-dynamic="1"] .sample-preview .preview-arrow {
  color: var(--desk-coral);
}

html[data-dynamic="1"] .prompt-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  align-items: stretch;
  grid-auto-rows: minmax(146px, auto);
  gap: 10px 12px;
  max-width: none;
  max-height: 520px;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  transition:
    max-height 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease,
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-dynamic="1"] body.prompt-explorer-open .prompt-preview {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
}

html[data-dynamic="1"] .process-action {
  border-radius: 13px;
  font-family: inherit;
}

html[data-dynamic="1"] .prompt-explorer-toggle {
  min-width: 300px;
  max-height: 52px;
  padding: 12px 14px;
  border-color: rgba(36, 102, 217, 0.24);
  background: rgba(238, 247, 255, 0.62);
  color: #214a91;
  box-shadow: 0 12px 28px rgba(63, 116, 196, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  overflow: hidden;
  transition:
    max-height 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.18s ease,
    padding 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-dynamic="1"] body.prompt-explorer-open .prompt-explorer-toggle {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
}

html[data-dynamic="1"] #prompt-count {
  color: #2a65b8;
}

html[data-dynamic="1"] .prompt-explorer-shell {
  position: relative;
  top: auto;
  left: auto;
  z-index: auto;
  width: 100%;
  max-width: none;
  max-height: 0;
  padding: 0 18px;
  border: 1px solid rgba(91, 151, 255, 0.2);
  border-radius: 24px;
  background: rgba(248, 252, 255, 0.62);
  box-shadow: 0 18px 48px rgba(63, 116, 196, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.84);
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(0.985);
  transform-origin: top center;
  visibility: hidden;
  transition:
    max-height 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    padding 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.22s ease,
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.34s ease,
    box-shadow 0.34s ease,
    visibility 0s linear 0.34s;
}

html[data-dynamic="1"] body.prompt-explorer-open .prompt-explorer-shell {
  position: fixed;
  top: clamp(56px, 7vh, 84px);
  left: max(16px, calc((100vw - 1400px) / 2));
  right: max(16px, calc((100vw - 1400px) / 2));
  bottom: calc(58px + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  width: auto;
  opacity: 1;
  max-height: none;
  padding-top: 28px;
  padding-bottom: 22px;
  overflow-y: auto;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  visibility: visible;
  background: rgba(248, 252, 255, 0.76);
  box-shadow: 0 24px 80px rgba(63, 116, 196, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.86);
  transition-delay: 0s;
}

html[data-dynamic="1"] body.prompt-explorer-open .sample-preview {
  display: none;
}

html[data-dynamic="1"] .prompt-explorer-shell::after {
  display: none;
}

html[data-dynamic="1"] .prompt-explorer-kicker {
  color: #2a65b8;
  line-height: 1.25;
}

html[data-dynamic="1"] .prompt-explorer-head {
  overflow: visible;
}

html[data-dynamic="1"] #prompt-explorer-summary {
  color: #657890;
}

html[data-dynamic="1"] .prompt-explorer-close {
  border-color: rgba(91, 151, 255, 0.2);
  background: rgba(238, 247, 255, 0.74);
  color: var(--desk-ink);
}

html[data-dynamic="1"] #samples {
  max-height: min(20vh, 220px);
}

html[data-dynamic="1"] body.prompt-explorer-open #samples {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
}

html[data-dynamic="1"] .samples-group {
  gap: 10px;
}

html[data-dynamic="1"] .samples-label {
  color: #2a65b8;
}

html[data-dynamic="1"] .samples-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

html[data-dynamic="1"] body.prompt-explorer-open .samples-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

html[data-dynamic="1"] #samples .sample {
  display: flex;
  min-height: 118px;
  padding: 16px;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  border: 1px solid rgba(91, 151, 255, 0.18);
  border-radius: 18px;
  background: rgba(250, 253, 255, 0.6);
  color: var(--desk-ink);
  text-align: left;
  box-shadow: 0 12px 28px rgba(63, 116, 196, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

html[data-dynamic="1"] #samples .sample::before {
  content: attr(data-source-label);
  color: var(--desk-coral);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

html[data-dynamic="1"] #samples .sample::after {
  content: attr(data-hook);
  color: var(--desk-muted);
  font-size: 12px;
  line-height: 1.35;
}

html[data-dynamic="1"] #samples .sample:hover {
  border-color: rgba(36, 102, 217, 0.34);
  background: rgba(238, 247, 255, 0.82);
  color: var(--desk-ink);
  transform: translateY(-1px);
}

html[data-dynamic="1"] #result-panel,
html[data-dynamic="1"] .result-archive {
  background: var(--desk-card);
  border-color: var(--desk-line);
  color: var(--desk-ink);
  box-shadow: 0 18px 46px rgba(63, 116, 196, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(24px) saturate(1.22);
}

html[data-dynamic="1"] .result-actions {
  background: transparent;
}

html[data-dynamic="1"] #result-panel h1,
html[data-dynamic="1"] #result-panel h2,
html[data-dynamic="1"] #result-panel h3,
html[data-dynamic="1"] .result-archive h1,
html[data-dynamic="1"] .result-archive h2,
html[data-dynamic="1"] .result-archive h3 {
  color: var(--desk-blue);
}

html[data-dynamic="1"] #result-panel strong,
html[data-dynamic="1"] .result-archive strong {
  color: var(--desk-ink);
}

html[data-dynamic="1"] #result-panel a,
html[data-dynamic="1"] .result-archive a {
  color: var(--desk-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

html[data-dynamic="1"] #result-panel li::marker,
html[data-dynamic="1"] .result-archive li::marker {
  color: var(--desk-blue);
}

html[data-dynamic="1"] #result-panel th,
html[data-dynamic="1"] #result-panel td,
html[data-dynamic="1"] .result-archive th,
html[data-dynamic="1"] .result-archive td {
  border-color: var(--desk-line);
}

html[data-dynamic="1"] #result-panel th,
html[data-dynamic="1"] .result-archive th {
  background: var(--desk-soft);
  color: var(--desk-blue);
}

html[data-dynamic="1"] #result-panel code,
html[data-dynamic="1"] .result-archive code {
  border: 1px solid var(--desk-line);
  background: var(--desk-soft);
  color: var(--desk-ink);
}

html[data-dynamic="1"] #result-panel pre,
html[data-dynamic="1"] .result-archive pre {
  overflow-x: auto;
  margin: 12px 0;
  padding: 14px;
  border: 1px solid var(--desk-line);
  border-radius: 14px;
  background: var(--desk-paper);
}

html[data-dynamic="1"] #result-panel pre code,
html[data-dynamic="1"] .result-archive pre code {
  padding: 0;
  border: 0;
  background: transparent;
}

html[data-dynamic="1"] #result-panel blockquote,
html[data-dynamic="1"] .result-archive blockquote {
  margin: 12px 0;
  padding: 10px 14px;
  border-left: 3px solid var(--desk-blue);
  border-radius: 0 12px 12px 0;
  background: var(--desk-soft);
  color: var(--desk-muted);
}

html[data-dynamic="1"] #result-panel hr,
html[data-dynamic="1"] .result-archive hr {
  margin: 18px 0;
  border: 0;
  border-top: 1px solid var(--desk-line);
}

html[data-dynamic="1"] #result-panel::-webkit-scrollbar-thumb,
html[data-dynamic="1"] .result-archive::-webkit-scrollbar-thumb {
  background: var(--desk-line);
}

html[data-dynamic="1"] .copy-btn,
html[data-dynamic="1"] .share-btn {
  border-radius: 12px;
  background: rgba(237, 247, 255, 0.72);
  border-color: rgba(36, 102, 217, 0.2);
  color: #214a91;
}

html[data-dynamic="1"] .share-modal-overlay {
  background: rgba(29, 69, 125, 0.18);
  backdrop-filter: blur(12px) saturate(1.12);
}

html[data-dynamic="1"] .share-modal {
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  border: 1px solid rgba(91, 151, 255, 0.22);
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(91, 151, 255, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(238, 248, 255, 0.68));
  color: var(--desk-ink);
  box-shadow: 0 24px 80px rgba(63, 116, 196, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(30px) saturate(1.28);
}

html[data-dynamic="1"] .share-modal-title {
  color: var(--desk-ink);
  font-family: 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  font-size: 24px;
  letter-spacing: -0.04em;
}

html[data-dynamic="1"] .share-modal-close {
  color: #60728b;
}

html[data-dynamic="1"] .share-modal-close:hover {
  color: #10203b;
}

html[data-dynamic="1"] .share-modal-label {
  color: #2a65b8;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[data-dynamic="1"] .share-modal-hint {
  color: #8193aa;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

html[data-dynamic="1"] .share-modal-input,
html[data-dynamic="1"] .share-modal-textarea {
  border-color: rgba(91, 151, 255, 0.22);
  border-radius: 14px;
  background: rgba(250, 253, 255, 0.72);
  color: var(--desk-ink);
}

html[data-dynamic="1"] .share-modal-input:focus,
html[data-dynamic="1"] .share-modal-textarea:focus {
  border-color: rgba(36, 102, 217, 0.42);
  box-shadow: 0 0 0 4px rgba(36, 102, 217, 0.12);
}

html[data-dynamic="1"] .share-modal-radio {
  border-color: rgba(91, 151, 255, 0.18);
  border-radius: 16px;
  background: rgba(250, 253, 255, 0.5);
  color: #60728b;
}

html[data-dynamic="1"] .share-modal-radio strong {
  color: var(--desk-ink);
}

html[data-dynamic="1"] .share-modal-radio:has(input:checked) {
  border-color: rgba(36, 102, 217, 0.32);
  background: rgba(231, 242, 255, 0.78);
}

html[data-dynamic="1"] .share-modal-radio input {
  accent-color: #2466d9;
}

html[data-dynamic="1"] .share-modal-cancel,
html[data-dynamic="1"] .share-modal-publish {
  border-radius: 13px;
}

html[data-dynamic="1"] .share-modal-cancel {
  border-color: rgba(91, 151, 255, 0.22);
  background: rgba(250, 253, 255, 0.58);
  color: #214a91;
}

html[data-dynamic="1"] .share-modal-cancel:hover {
  border-color: rgba(36, 102, 217, 0.34);
  background: rgba(232, 244, 255, 0.82);
  color: #0f1a2d;
}

html[data-dynamic="1"] .share-modal-publish {
  border-color: rgba(36, 102, 217, 0.28);
  background: rgba(226, 240, 255, 0.86);
  color: #1e57b7;
  font-weight: 700;
}

html[data-dynamic="1"] .share-modal-publish:hover {
  border-color: rgba(36, 102, 217, 0.42);
  background: rgba(210, 232, 255, 0.92);
}

html[data-dynamic="1"] #output-wrap {
  border-top-color: rgba(91, 151, 255, 0.14);
}

html[data-dynamic="1"] #output {
  color: #5f7188;
}

html[data-dynamic="1"] .line-action {
  color: var(--desk-blue);
}

html[data-dynamic="1"] .line-thinking {
  color: var(--desk-coral);
}

html[data-dynamic="1"] .line-mcp {
  color: #6c7f97;
}

html[data-dynamic="1"] #input-line {
  border: 1px solid rgba(36, 102, 217, 0.22);
  background: rgba(250, 253, 255, 0.68);
  box-shadow: 0 18px 46px rgba(63, 116, 196, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(26px) saturate(1.24);
}

html[data-dynamic="1"] body.landing-active #input-line,
html[data-dynamic="1"] #input-line:focus-within {
  border-color: rgba(36, 102, 217, 0.42) !important;
  background: rgba(250, 253, 255, 0.82) !important;
  box-shadow: 0 18px 48px rgba(63, 116, 196, 0.18) !important;
  animation: none !important;
}

html[data-dynamic="1"] body.landing-active #input-line,
html[data-dynamic="1"] body.agent-running #input-line {
  margin-top: auto;
}

html[data-dynamic="1"] body.landing-active #terminal,
html[data-dynamic="1"] body.agent-running #terminal {
  justify-content: flex-start;
  gap: 14px;
}

html[data-dynamic="1"] body.landing-active #response-shell,
html[data-dynamic="1"] body.agent-running #response-shell {
  flex: 0 0 auto;
  height: auto;
  max-height: calc(100% - 72px);
}

html[data-dynamic="1"] body.landing-active:not(.home-surface-loading) #input-line {
  order: initial;
  margin-top: auto;
}

html[data-dynamic="1"] body.agent-browsing.trace-open #response-shell {
  height: min(720px, calc(100% - 72px));
  min-height: min(640px, calc(100% - 72px));
}

html[data-dynamic="1"] body.agent-browsing.trace-open #output-wrap {
  max-height: min(260px, 34vh);
}

html[data-dynamic="1"] body.agent-browsing #trace-toggle,
html[data-dynamic="1"] body.browser-focus #trace-toggle,
html[data-dynamic="1"] body.manual-compact #trace-toggle,
html[data-dynamic="1"] body.panel-peek #trace-toggle {
  display: none;
}

html[data-dynamic="1"] body.agent-browsing #view-toggle,
html[data-dynamic="1"] body.browser-focus #view-toggle,
html[data-dynamic="1"] body.manual-compact #view-toggle,
html[data-dynamic="1"] body.panel-peek #view-toggle {
  display: none;
}

html[data-dynamic="1"] body.agent-browsing #response-actions,
html[data-dynamic="1"] body.browser-focus #response-actions,
html[data-dynamic="1"] body.manual-compact #response-actions,
html[data-dynamic="1"] body.panel-peek #response-actions {
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
}

html[data-dynamic="1"] body.agent-browsing #layout-toggle,
html[data-dynamic="1"] body.browser-focus #layout-toggle,
html[data-dynamic="1"] body.manual-compact #layout-toggle,
html[data-dynamic="1"] body.panel-peek #layout-toggle {
  flex: 0 1 auto;
  max-width: 100%;
  white-space: nowrap;
}

html[data-dynamic="1"] body.agent-browsing #response-shell,
html[data-dynamic="1"] body.agent-browsing #input-line,
html[data-dynamic="1"] body.agent-browsing .process-card {
  flex: 0 0 auto;
  min-width: 0;
  /* Docked/compact while browsing. This MUST match the body.browser-focus
     geometry: browser-focus is a transient (pointer/hold) class, so if
     agent-browsing carried the wide (1160px) width, the shell would "semi
     expand" to 1160px whenever browser-focus lapsed (20s hold) or the pointer
     entered the dock (restoreShellFocus). Pinning the compact width here keeps
     the shell stably docked for the whole browsing phase. */
  width: min(34vw, 440px) !important;
  max-width: min(34vw, 440px);
  align-self: flex-end;
  margin-right: 22px;
  margin-left: 0;
}

html[data-dynamic="1"] body.browser-focus #response-shell,
html[data-dynamic="1"] body.browser-focus #input-line,
html[data-dynamic="1"] body.browser-focus .process-card,
html[data-dynamic="1"] body.manual-compact #response-shell,
html[data-dynamic="1"] body.manual-compact #input-line,
html[data-dynamic="1"] body.manual-compact .process-card {
  flex: 0 0 auto;
  min-width: 0;
  width: min(28vw, 380px) !important;
  max-width: min(28vw, 380px);
  align-self: flex-end;
  margin-right: 22px;
  margin-left: 0;
}

html[data-dynamic="1"] body.browser-focus #response-shell,
html[data-dynamic="1"] body.browser-focus #input-line,
html[data-dynamic="1"] body.browser-focus .process-card {
  width: min(34vw, 440px) !important;
  max-width: min(34vw, 440px);
}

html[data-dynamic="1"] body.panel-peek #response-shell,
html[data-dynamic="1"] body.panel-peek #input-line,
html[data-dynamic="1"] body.panel-peek .process-card {
  transform: translateX(calc(-1 * min(18vw, 220px)));
}

html[data-dynamic="1"] body.browser-focus .research-toggle,
html[data-dynamic="1"] body.manual-compact .research-toggle,
html[data-dynamic="1"] body.panel-peek .research-toggle {
  flex: 0 0 auto;
  width: 44px;
  min-width: 44px;
  padding: 0;
}

html[data-dynamic="1"] body.browser-focus .research-toggle span,
html[data-dynamic="1"] body.manual-compact .research-toggle span,
html[data-dynamic="1"] body.panel-peek .research-toggle span {
  display: none;
}

html[data-dynamic="1"] body.browser-focus .research-toggle::before,
html[data-dynamic="1"] body.manual-compact .research-toggle::before,
html[data-dynamic="1"] body.panel-peek .research-toggle::before {
  left: 6px;
}

html[data-dynamic="1"] body.browser-focus .research-toggle::after,
html[data-dynamic="1"] body.manual-compact .research-toggle::after,
html[data-dynamic="1"] body.panel-peek .research-toggle::after {
  left: 10px;
}

html[data-dynamic="1"] body.agent-browsing #response-shell {
  height: min(620px, calc(100% - 72px));
  min-height: min(500px, calc(100% - 72px));
  max-height: calc(100% - 72px);
  overflow-y: auto;
}

html[data-dynamic="1"] body.browser-focus #response-shell,
html[data-dynamic="1"] body.manual-compact #response-shell {
  height: min(460px, calc(100% - 72px));
  min-height: min(360px, calc(100% - 72px));
  max-height: calc(100% - 72px);
  overflow-y: auto;
}

html[data-dynamic="1"] body.agent-browsing.browser-focus #response-shell {
  height: min(620px, calc(100% - 72px));
  min-height: min(500px, calc(100% - 72px));
  max-height: calc(100% - 72px);
}

html[data-dynamic="1"] #response-shell > .process-card {
  width: auto !important;
  max-width: none;
  align-self: stretch;
  order: 20;
  margin: auto 20px 16px;
  transform: none !important;
}

html[data-dynamic="1"] #response-shell > #result-panel,
html[data-dynamic="1"] #response-shell > #output-wrap {
  align-self: stretch;
}

html[data-dynamic="1"] body.agent-browsing #response-prompt,
html[data-dynamic="1"] body.browser-focus #response-prompt,
html[data-dynamic="1"] body.manual-compact #response-prompt {
  display: -webkit-box !important;
  min-height: 0;
  max-height: 2.8em;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

html[data-dynamic="1"] body.agent-browsing #response-prompt {
  flex: 0 0 auto;
  max-height: 9.45em;
  -webkit-line-clamp: 7;
}

html[data-dynamic="1"] body.agent-browsing #response-activity {
  order: 19;
  margin-top: auto;
  padding: 8px 18px 10px;
  min-height: 0;
  max-height: none;
}

html[data-dynamic="1"] body.agent-browsing #response-shell > .process-card {
  margin-top: 0;
}

html[data-dynamic="1"] body.agent-browsing:not(.trace-open) #output-wrap {
  border-top: 0;
}

html[data-dynamic="1"] body.landing-active #response-shell,
html[data-dynamic="1"] body.landing-active.browser-focus #response-shell,
html[data-dynamic="1"] body.landing-active.manual-compact #response-shell,
html[data-dynamic="1"] body.landing-active.panel-peek #response-shell {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(36, 102, 217, 0.32) transparent;
}

html[data-dynamic="1"] body.landing-active:not(.manual-compact):not(.home-surface-loading) #response-shell,
html[data-dynamic="1"] body.landing-active:not(.manual-compact):not(.home-surface-loading) #input-line {
  width: min(84vw, 1160px);
  max-width: min(84vw, 1160px);
  align-self: center;
  margin-right: 0;
  margin-left: 0;
}

html[data-dynamic="1"] body.landing-active.manual-compact:not(.home-surface-loading) #response-shell {
  height: min(710px, calc(100% - 72px));
  min-height: min(620px, calc(100% - 72px));
  max-height: calc(100% - 72px);
}

html[data-dynamic="1"] body.landing-active .welcome,
html[data-dynamic="1"] body.landing-active.browser-focus .welcome,
html[data-dynamic="1"] body.landing-active.manual-compact .welcome,
html[data-dynamic="1"] body.landing-active.panel-peek .welcome {
  overflow: visible;
}

html[data-dynamic="1"] body.landing-active .welcome {
  flex: 0 0 auto;
  width: 100%;
  max-width: none;
  padding-bottom: 20px;
}

html[data-dynamic="1"] #prompt-char {
  color: var(--desk-coral);
  text-shadow: none;
}

html[data-dynamic="1"] body.landing-active #prompt-char {
  animation: none;
}

html[data-dynamic="1"] #task-input {
  color: var(--desk-ink);
}

html[data-dynamic="1"] #task-input::placeholder {
  color: #8193aa;
}

html[data-dynamic="1"] #stop-btn {
  border-radius: 12px;
  background: rgba(235, 246, 255, 0.72);
}

html[data-dynamic="1"] .process-card {
  display: grid;
  grid-template-rows: 30px 46px 78px 35px 34px;
  gap: 12px;
  height: 303px;
  min-height: 303px;
  max-height: 303px;
  overflow: hidden;
  border-color: rgba(91, 151, 255, 0.2);
  border-radius: 24px;
  background: rgba(250, 253, 255, 0.64);
  color: var(--desk-ink);
  box-shadow: 0 18px 48px rgba(63, 116, 196, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(28px) saturate(1.24);
}

html[data-dynamic="1"] .process-card-top,
html[data-dynamic="1"] .process-activity,
html[data-dynamic="1"] .process-source,
html[data-dynamic="1"] .process-steps,
html[data-dynamic="1"] .process-actions {
  margin-top: 0;
}

html[data-dynamic="1"] .process-card-top,
html[data-dynamic="1"] .process-actions {
  min-height: 0;
}

html[data-dynamic="1"] .process-eyebrow {
  color: var(--desk-coral);
}

html[data-dynamic="1"] .process-phase {
  border-radius: 12px;
  background: rgba(231, 242, 255, 0.82);
  color: #1e57b7;
}

html[data-dynamic="1"] .process-activity {
  color: var(--desk-ink);
}

html[data-dynamic="1"] .process-source {
  border-color: rgba(91, 151, 255, 0.2);
  background: rgba(238, 247, 255, 0.68);
}

html[data-dynamic="1"] .process-source-label,
html[data-dynamic="1"] #process-source-title {
  color: #657890;
}

html[data-dynamic="1"] #process-source-host {
  color: #245cae;
}

html[data-dynamic="1"] .process-steps li {
  border-radius: 13px;
  background: rgba(241, 248, 255, 0.66);
  border-color: rgba(91, 151, 255, 0.16);
  color: #6c7f97;
}

html[data-dynamic="1"] .process-steps li.is-complete {
  background: rgba(226, 246, 255, 0.74);
  border-color: rgba(23, 140, 170, 0.26);
  color: #116f88;
}

html[data-dynamic="1"] .process-steps li.is-active {
  background: rgba(224, 239, 255, 0.82);
  border-color: rgba(36, 102, 217, 0.32);
  color: #1e57b7;
  box-shadow: 0 0 0 0 rgba(36, 102, 217, 0);
  animation: desk-step-active 1.9s ease-in-out infinite;
}

/* Gentle "something is happening here" pulse on the active step. Kept soft so
   it reads as alive without competing with the page content the agent renders. */
@keyframes desk-step-active {
  0%, 100% { box-shadow: 0 0 0 0 rgba(36, 102, 217, 0); }
  50% { box-shadow: 0 0 14px 1px rgba(36, 102, 217, 0.22); }
}

@media (prefers-reduced-motion: reduce) {
  .process-steps li,
  .process-phase {
    transition: none !important;
  }
  html[data-dynamic="1"] .process-steps li.is-active {
    animation: none !important;
  }
}

html[data-dynamic="1"] .process-action {
  border-color: rgba(36, 102, 217, 0.2);
  background: rgba(237, 247, 255, 0.74);
  color: #214a91;
}

html[data-dynamic="1"] .prompt-explorer-backdrop {
  display: none !important;
  background: rgba(29, 69, 125, 0.18);
}

@media (max-width: 1100px) {
  html[data-dynamic="1"] .prompt-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-dynamic="1"] body.prompt-explorer-open .samples-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  html[data-dynamic="1"] #response-shell {
    background: rgba(248, 252, 255, 0.94);
    border-bottom: 1px solid rgba(91, 151, 255, 0.16);
  }

  html[data-dynamic="1"] #response-prompt {
    font-size: 15px;
  }

  html[data-dynamic="1"] .prompt-preview {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .topic-card,
  html[data-dynamic="1"] .prompt-preview-more {
    min-height: auto;
  }

  html[data-dynamic="1"] .prompt-explorer-shell {
    top: auto;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-height: min(78dvh, 680px);
    border-color: rgba(91, 151, 255, 0.2);
    background: rgba(248, 252, 255, 0.94);
    transform: translateY(18px) scale(0.985);
    transform-origin: bottom center;
  }

  html[data-dynamic="1"] .prompt-explorer-backdrop:not([hidden]) {
    display: block !important;
  }

  html[data-dynamic="1"] body.prompt-explorer-mounted .prompt-explorer-shell {
    position: fixed;
    top: auto;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 50;
    width: auto;
    max-height: min(78dvh, 680px);
  }

  html[data-dynamic="1"] body.prompt-explorer-open .prompt-explorer-shell {
    top: auto;
    left: 6px;
    right: 6px;
    bottom: calc(6px + env(safe-area-inset-bottom, 0px));
    width: auto;
    height: min(86dvh, 760px);
    max-height: min(86dvh, 760px);
    transform: translateY(0) scale(1);
    background: rgba(248, 252, 255, 0.96);
    box-shadow: 0 24px 80px rgba(63, 116, 196, 0.22);
  }

  html[data-dynamic="1"] body.prompt-explorer-open #samples {
    max-height: calc(min(86dvh, 760px) - 180px);
  }

  html[data-dynamic="1"] .samples-row,
  html[data-dynamic="1"] body.prompt-explorer-open .samples-row {
    grid-template-columns: 1fr;
  }

  html[data-dynamic="1"] body.mobile-browser-open #spectator-panel {
    border-color: rgba(91, 151, 255, 0.2);
    background: rgba(248, 252, 255, 0.96);
    box-shadow: 0 24px 80px rgba(63, 116, 196, 0.24);
  }
}

/* Keep the first-load shell genuinely collapsed until the home surface is ready. */
html[data-dynamic="1"] body.landing-active.home-surface-loading #response-shell,
html[data-dynamic="1"] body.landing-active.home-surface-loading #input-line {
  width: min(78vw, 980px);
  align-self: center;
  margin-right: 0;
}

html[data-dynamic="1"] body.landing-active.home-surface-loading #response-shell {
  flex: 0 0 auto;
  height: auto;
  min-height: 0;
  max-height: 76px;
  overflow: hidden;
}

html[data-dynamic="1"] body.landing-active.home-surface-loading #response-head {
  padding: 12px 14px;
  border-bottom-color: transparent;
}

html[data-dynamic="1"] body.landing-active.home-surface-loading #response-prompt,
html[data-dynamic="1"] body.landing-active.home-surface-loading #response-activity,
html[data-dynamic="1"] body.landing-active.home-surface-loading #response-shell > .welcome,
html[data-dynamic="1"] body.landing-active.home-surface-loading #response-shell .prompt-explorer-toggle,
html[data-dynamic="1"] body.landing-active.home-surface-loading #response-shell .prompt-explorer-shell {
  display: none;
}

/* Keep the URL slot reserved so responsive-shell peeks do not shift header controls. */
html[data-dynamic="1"] body.landing-active.home-surface-loading #current-url,
html[data-dynamic="1"] body.manual-compact #current-url,
html[data-dynamic="1"] body.browser-focus #current-url,
html[data-dynamic="1"] body.agent-browsing #current-url,
html[data-dynamic="1"] body.panel-peek #current-url {
  visibility: hidden;
}

html[data-dynamic="1"] body.landing-active.home-surface-loading #spectator-url,
html[data-dynamic="1"] body.landing-active.home-surface-loading #agent-page-url,
html[data-dynamic="1"] body.manual-compact #spectator-url,
html[data-dynamic="1"] body.manual-compact #agent-page-url {
  display: none;
}

@media (max-width: 768px) {
  html[data-dynamic="1"] body.landing-active.home-surface-loading #main {
    display: block;
  }

  html[data-dynamic="1"] body.landing-active.home-surface-loading #spectator-panel {
    position: absolute;
    inset: 0;
    display: block !important;
    height: auto;
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: #050b12;
    overflow: hidden;
  }

  html[data-dynamic="1"] body.landing-active.home-surface-loading #spectator-stage {
    position: absolute;
    inset: 0;
    display: block;
    min-height: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  html[data-dynamic="1"] body.landing-active.home-surface-loading #spectator-header {
    display: none;
  }

  html[data-dynamic="1"] body.landing-active.home-surface-loading #terminal {
    position: absolute;
    inset: 12px 12px calc(72px + env(safe-area-inset-bottom, 0px));
    z-index: 6;
    height: auto;
    min-height: 0;
    padding: 0;
    pointer-events: none;
    align-items: stretch;
    justify-content: flex-end;
    gap: 10px;
  }

  html[data-dynamic="1"] body.landing-active.home-surface-loading #response-shell,
  html[data-dynamic="1"] body.landing-active.home-surface-loading #input-line {
    width: 100%;
    margin: 0;
    align-self: auto;
    pointer-events: auto;
  }

  html[data-dynamic="1"] body.landing-active.home-surface-loading #response-shell {
    flex: 0 0 auto;
    max-height: 68px;
    border: 1px solid rgba(130, 189, 255, 0.2);
    border-radius: 22px;
    background: rgba(5, 11, 19, 0.74);
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(18px) saturate(1.12);
  }

  html[data-dynamic="1"] body.landing-active.home-surface-loading #input-line {
    border: 1px solid rgba(130, 189, 255, 0.18);
    border-radius: 20px;
    background: rgba(4, 10, 17, 0.86);
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px) saturate(1.12);
  }
}

/* Final mobile shell rules: avoid split-screen browsing on phones. The browser
   opens as a dedicated mobile viewport; closing it returns to a full shell. */
@media (max-width: 768px) {
  html[data-dynamic="1"] #app {
    height: 100dvh;
    min-height: 100dvh;
  }

  html[data-dynamic="1"] #main {
    display: block;
    position: relative;
    overflow: hidden;
  }

  html[data-dynamic="1"] header {
    left: 10px;
    right: 10px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    min-height: 50px;
    padding: 8px 10px;
    border-radius: 18px;
    gap: 7px;
  }

  html[data-dynamic="1"] #experience-chip,
  html[data-dynamic="1"] #current-url,
  html[data-dynamic="1"] #status-text {
    display: none !important;
  }

  html[data-dynamic="1"] body:not(.mobile-browser-open):not(.landing-active.home-surface-loading) #spectator-panel {
    display: none !important;
  }

  html[data-dynamic="1"] body:not(.mobile-browser-open):not(.landing-active.home-surface-loading) #terminal {
    position: absolute;
    inset: calc(10px + env(safe-area-inset-top, 0px)) 10px calc(70px + env(safe-area-inset-bottom, 0px));
    z-index: 6;
    display: flex;
    height: auto;
    max-width: none;
    min-width: 0;
    padding: 0;
    gap: 10px;
    align-items: stretch;
    justify-content: flex-start;
    pointer-events: auto;
  }

  html[data-dynamic="1"] body:not(.mobile-browser-open) #response-shell,
  html[data-dynamic="1"] body:not(.mobile-browser-open) #input-line,
  html[data-dynamic="1"] body:not(.mobile-browser-open) .process-card,
  html[data-dynamic="1"] body:not(.mobile-browser-open).agent-browsing #response-shell,
  html[data-dynamic="1"] body:not(.mobile-browser-open).agent-browsing #input-line,
  html[data-dynamic="1"] body:not(.mobile-browser-open).agent-browsing .process-card,
  html[data-dynamic="1"] body:not(.mobile-browser-open).agent-answer-focus #response-shell,
  html[data-dynamic="1"] body:not(.mobile-browser-open).agent-answer-focus #input-line,
  html[data-dynamic="1"] body:not(.mobile-browser-open).agent-answer-focus .process-card,
  html[data-dynamic="1"] body:not(.mobile-browser-open).browser-focus #response-shell,
  html[data-dynamic="1"] body:not(.mobile-browser-open).browser-focus #input-line,
  html[data-dynamic="1"] body:not(.mobile-browser-open).browser-focus .process-card,
  html[data-dynamic="1"] body:not(.mobile-browser-open).manual-compact #response-shell,
  html[data-dynamic="1"] body:not(.mobile-browser-open).manual-compact #input-line,
  html[data-dynamic="1"] body:not(.mobile-browser-open).manual-compact .process-card,
  html[data-dynamic="1"] body:not(.mobile-browser-open).panel-peek #response-shell,
  html[data-dynamic="1"] body:not(.mobile-browser-open).panel-peek #input-line,
  html[data-dynamic="1"] body:not(.mobile-browser-open).panel-peek .process-card,
  html[data-dynamic="1"] body:not(.mobile-browser-open).spectator-hidden #response-shell,
  html[data-dynamic="1"] body:not(.mobile-browser-open).spectator-hidden #input-line,
  html[data-dynamic="1"] body:not(.mobile-browser-open).spectator-hidden .process-card {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    align-self: stretch !important;
    transform: none !important;
  }

  html[data-dynamic="1"] body:not(.mobile-browser-open) #response-shell,
  html[data-dynamic="1"] body:not(.mobile-browser-open).agent-browsing #response-shell,
  html[data-dynamic="1"] body:not(.mobile-browser-open).agent-answer-focus #response-shell,
  html[data-dynamic="1"] body:not(.mobile-browser-open).browser-focus #response-shell,
  html[data-dynamic="1"] body:not(.mobile-browser-open).manual-compact #response-shell {
    flex: 1 1 auto;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden;
    border: 1px solid rgba(91, 151, 255, 0.2);
    border-radius: 24px;
    background: rgba(248, 252, 255, 0.94);
  }

  html[data-dynamic="1"] body.landing-active:not(.mobile-browser-open) #response-shell {
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  html[data-dynamic="1"] #response-head {
    min-height: auto;
    padding: 10px 12px 8px;
    gap: 8px;
  }

  html[data-dynamic="1"] #response-actions {
    min-width: 0;
    gap: 6px;
  }

  html[data-dynamic="1"] #response-actions .ghost-btn {
    min-height: 34px;
    padding: 8px 10px;
  }

  html[data-dynamic="1"] #layout-toggle {
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  html[data-dynamic="1"] #response-phase {
    min-width: 82px;
    height: 28px;
    padding: 0 8px;
    font-size: 9px;
  }

  html[data-dynamic="1"] #response-prompt {
    padding: 8px 14px 0;
    font-size: 14px;
  }

  html[data-dynamic="1"] #response-activity {
    padding: 6px 14px 10px;
    font-size: 12px;
  }

  html[data-dynamic="1"] body:not(.mobile-browser-open) #input-line {
    flex: 0 0 auto;
    min-height: 56px;
    padding: 10px 12px;
    border: 1px solid rgba(36, 102, 217, 0.22);
    border-radius: 22px;
  }

  html[data-dynamic="1"] #ask-submit,
  html[data-dynamic="1"] #stop-btn {
    min-height: 38px;
    padding: 0 12px;
  }

  html[data-dynamic="1"] body.landing-active .welcome {
    align-items: stretch;
    justify-content: flex-start;
    gap: 14px;
    padding: 14px;
    overflow: visible;
  }

  html[data-dynamic="1"] body.landing-active .welcome h2 {
    color: var(--desk-blue);
    font-size: clamp(30px, 10vw, 42px);
    line-height: 1.02;
    letter-spacing: -0.045em;
  }

  html[data-dynamic="1"] body.landing-active .how-it-works {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 8px;
  }

  html[data-dynamic="1"] body.landing-active .how-step {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(91, 151, 255, 0.16);
    border-radius: 16px;
    background: rgba(250, 253, 255, 0.62);
  }

  html[data-dynamic="1"] body.landing-active .how-arrow {
    display: none;
  }

  html[data-dynamic="1"] .home-radar {
    padding: 12px;
    border-radius: 20px;
  }

  html[data-dynamic="1"] .home-radar-head {
    align-items: flex-start;
    gap: 10px;
  }

  html[data-dynamic="1"] .home-radar-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  html[data-dynamic="1"] .home-radar h3 {
    white-space: normal;
    font-size: 16px;
  }

  html[data-dynamic="1"] .home-radar-list {
    grid-template-columns: 1fr;
  }

  html[data-dynamic="1"] .home-radar-row {
    min-height: auto;
    padding: 12px;
  }

  html[data-dynamic="1"] .home-radar-row p {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  html[data-dynamic="1"] .home-radar-ask {
    align-self: stretch;
  }

  html[data-dynamic="1"] body.landing-active .prompt-preview {
    grid-template-columns: 1fr;
    max-height: none;
    overflow: visible;
  }

  html[data-dynamic="1"] body.landing-active .topic-card {
    min-height: auto;
    padding: 12px;
    border-radius: 16px;
  }

  html[data-dynamic="1"] body.landing-active .topic-card-actions {
    flex-wrap: wrap;
  }

  html[data-dynamic="1"] body.landing-active .topic-card-ask {
    flex: 1 1 160px;
  }

  html[data-dynamic="1"] .pricing-teaser {
    position: static;
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 18px;
    opacity: 1;
  }

  html[data-dynamic="1"] .pricing-teaser-copy,
  html[data-dynamic="1"] .pricing-teaser-action {
    max-height: 42px;
    opacity: 1;
  }

  html[data-dynamic="1"] #response-shell .prompt-explorer-toggle {
    width: calc(100% - 28px);
    min-width: 0;
    margin: 0 14px 14px;
    position: static;
  }

  html[data-dynamic="1"] body.mobile-browser-open #spectator-panel {
    position: fixed !important;
    inset: 0 !important;
    z-index: 60;
    display: flex !important;
    flex-direction: column;
    height: auto !important;
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
  }

  html[data-dynamic="1"] body.mobile-browser-open #spectator-header {
    display: flex !important;
    position: static !important;
    flex: 0 0 auto;
    min-height: 48px;
    padding: calc(8px + env(safe-area-inset-top, 0px)) 10px 8px;
    border: 0;
    border-bottom: 1px solid rgba(91, 151, 255, 0.18);
    border-radius: 0;
    background: rgba(248, 252, 255, 0.96);
  }

  html[data-dynamic="1"] body.mobile-browser-open #spectator-stage {
    display: block !important;
    position: relative !important;
    inset: auto !important;
    flex: 1 1 auto;
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
  }

  html[data-dynamic="1"] body.mobile-browser-open #spectator {
    display: block;
    width: 100%;
    height: 100%;
    background: #ffffff;
  }

  html[data-dynamic="1"] body.mobile-browser-open #close-spectator {
    min-width: 36px;
    min-height: 36px;
    border-radius: 12px;
    background: rgba(232, 244, 255, 0.82);
    color: #214a91;
  }

  html[data-dynamic="1"] body.mobile-browser-open header,
  html[data-dynamic="1"] body.mobile-browser-open #terminal {
    visibility: hidden;
    pointer-events: none;
  }
}

@media (max-width: 420px) {
  html[data-dynamic="1"] #radar-link,
  html[data-dynamic="1"] #pricing-link {
    display: none;
  }

  html[data-dynamic="1"] #new-chat,
  html[data-dynamic="1"] #sign-in-btn,
  html[data-dynamic="1"] .zen-toggle {
    padding-inline: 8px;
  }

  html[data-dynamic="1"] #layout-toggle {
    max-width: 34vw;
  }
}

/* ---------- Zen mode (member-only /zen) ---------- */

#zen-overlay {
  display: none;
}

body.zen-mode {
  background: #000;
  overflow: hidden;
}

body.zen-mode #app {
  display: none !important;
}

body.zen-mode #zen-overlay {
  display: flex;
  position: fixed;
  inset: 0;
  background: #000;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  z-index: 1;
}

body.zen-mode .zen-stage {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 56px;
  width: min(640px, 86vw);
  transition: opacity 420ms ease, transform 420ms ease;
}

body.zen-mode #zen-overlay[data-zen-browser="1"] .zen-stage {
  position: fixed;
  left: 28px;
  bottom: 28px;
  z-index: 4;
  width: min(420px, calc(100vw - 56px));
  align-items: stretch;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.1), transparent 34%),
    linear-gradient(150deg, rgba(14, 14, 16, 0.72), rgba(0, 0, 0, 0.42));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 22px 70px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 1;
  pointer-events: none;
  transform: none;
}

body.zen-mode #zen-overlay[data-zen-browser="1"] .zen-verb {
  font-size: 22px;
  font-weight: 300;
  text-align: left;
}

body.zen-mode #zen-overlay[data-zen-browser="1"] .zen-eq {
  height: 34px;
}

body.zen-mode #zen-overlay[data-zen-browser="1"] .zen-subtitle {
  text-align: left;
}

body.zen-mode #zen-overlay[data-zen-browser="1"] .zen-input-wrap {
  display: none;
}

body.zen-mode .zen-verb {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-weight: 200;
  font-size: clamp(56px, 9vw, 112px);
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1;
  user-select: none;
  text-align: center;
}

body.zen-mode .zen-verb-fade {
  animation: zen-verb-in 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes zen-verb-in {
  from { opacity: 0; transform: translateY(6px); filter: blur(8px); }
  to   { opacity: 1; transform: translateY(0);   filter: blur(0); }
}

body.zen-mode .zen-eq {
  width: 100%;
  height: 120px;
  display: block;
}

body.zen-mode .zen-subtitle {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
  user-select: none;
}

body.zen-mode .zen-input-wrap {
  width: 100%;
  max-width: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 600ms ease,
    transform 600ms ease,
    border-color 280ms ease,
    background 280ms ease,
    box-shadow 280ms ease;
}

body.zen-mode #zen-overlay[data-zen-busy="1"] .zen-input-wrap {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

body.zen-mode .zen-input {
  width: 100%;
  max-width: 420px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.96);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-weight: 200;
  font-size: 22px;
  letter-spacing: 0.02em;
  text-align: left;
  padding: 12px 10px;
  outline: none;
  transition: border-color 280ms ease, box-shadow 280ms ease, text-shadow 280ms ease;
}

body.zen-mode .zen-input::placeholder {
  color: rgba(255, 255, 255, 0.22);
  font-weight: 200;
  letter-spacing: 0.04em;
}

body.zen-mode .zen-input:focus {
  border-bottom-color: rgba(255, 255, 255, 0.58);
  text-shadow: 0 0 22px rgba(255, 255, 255, 0.16);
}

body.zen-mode .zen-input:focus-visible {
  outline: none;
  border-bottom-color: rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 -1px 0 rgba(255, 255, 255, 0.5),
    0 12px 28px -24px rgba(255, 255, 255, 0.9);
}

body.zen-mode .zen-voice,
body.zen-mode .zen-submit,
body.zen-mode .zen-browser-toggle,
body.zen-mode .zen-stop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.72);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: color 220ms ease, border-color 220ms ease, background 220ms ease, opacity 220ms ease, transform 220ms ease;
}

body.zen-mode .zen-voice[hidden] {
  display: none;
}

body.zen-mode .zen-submit {
  min-width: 96px;
  padding: 0 16px;
}

body.zen-mode .zen-submit[disabled],
body.zen-mode .zen-voice[disabled] {
  opacity: 0.28;
  cursor: default;
}

body.zen-mode .zen-voice:not([disabled]):hover,
body.zen-mode .zen-submit:not([disabled]):hover,
body.zen-mode .zen-browser-toggle:hover,
body.zen-mode .zen-stop:hover {
  color: rgba(255, 255, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.07);
}

body.zen-mode .zen-voice:focus-visible,
body.zen-mode .zen-submit:focus-visible,
body.zen-mode .zen-browser-toggle:focus-visible,
body.zen-mode .zen-stop:focus-visible,
body.zen-mode .zen-answer-back:focus-visible,
body.zen-mode .zen-answer-share:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.72);
  outline-offset: 3px;
}

body.zen-mode .zen-input,
body.zen-mode .zen-input-wrap {
  touch-action: manipulation;
}

body.zen-mode #zen-overlay[data-zen-listening="1"] .zen-voice {
  color: rgba(255, 255, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.09);
}

body.zen-mode .zen-browser-toggle {
  display: none;
  position: fixed;
  top: 24px;
  right: 28px;
  z-index: 5;
  min-width: 66px;
  padding: 0 14px;
}

body.zen-mode .zen-browser-toggle[hidden] {
  display: none !important;
}

body.zen-mode #zen-overlay[data-zen-busy="1"] .zen-browser-toggle,
body.zen-mode #zen-overlay[data-zen-has-browser="1"] .zen-browser-toggle {
  display: inline-flex;
  min-width: 96px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

body.zen-mode #zen-overlay[data-zen-browser="1"] .zen-browser-toggle {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.92);
  color: #050505;
}

body.zen-mode .zen-stop {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 5;
  min-width: 74px;
  padding: 0 16px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
}

body.zen-mode #zen-overlay[data-zen-busy="1"] .zen-stop {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

body.zen-mode .zen-answer {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(48px, 10vh, 120px) clamp(20px, 6vw, 80px) 80px;
  background: #000;
  color: rgba(255, 255, 255, 0.92);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "New York", "Helvetica Neue", serif;
  font-weight: 300;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.6;
  letter-spacing: 0.005em;
  overflow-y: auto;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 600ms ease;
}

body.zen-mode .zen-answer[data-shown="1"] {
  opacity: 1;
  pointer-events: auto;
}

body.zen-mode .zen-answer-inner {
  max-width: 640px;
  width: 100%;
}

body.zen-mode .zen-answer-inner > * + * {
  margin-top: 1em;
}

body.zen-mode .zen-answer-inner h1,
body.zen-mode .zen-answer-inner h2,
body.zen-mode .zen-answer-inner h3 {
  font-weight: 400;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.98);
}

body.zen-mode .zen-answer-inner h1 { font-size: 1.6em; margin-top: 1.4em; }
body.zen-mode .zen-answer-inner h2 { font-size: 1.3em; margin-top: 1.4em; }
body.zen-mode .zen-answer-inner h3 { font-size: 1.1em; margin-top: 1.2em; }

body.zen-mode .zen-answer-inner a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

body.zen-mode .zen-answer-inner code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.92em;
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 5px;
  border-radius: 3px;
}

body.zen-mode .zen-answer-inner ul,
body.zen-mode .zen-answer-inner ol {
  padding-left: 1.4em;
}

body.zen-mode .zen-answer-back,
body.zen-mode .zen-answer-share {
  position: fixed;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 8px 14px;
  z-index: 3;
  transition: color 240ms ease, opacity 240ms ease;
}

body.zen-mode .zen-answer-back {
  bottom: 28px;
  right: 28px;
}

body.zen-mode .zen-answer-share {
  top: 24px;
  right: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.7);
}

body.zen-mode .zen-answer-back:hover,
body.zen-mode .zen-answer-share:hover {
  color: rgba(255, 255, 255, 0.95);
}

body.zen-mode .zen-answer-share:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

body.zen-mode .zen-answer-share[disabled] {
  opacity: 0.5;
  cursor: default;
}

/* Zen entry — visible chip in the auth slot. Keep it dark so the landing
   page has one clear Zen entry without competing with the pricing teaser. */
.zen-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 30px;
  padding: 0 14px;
  margin-right: 10px;
  border-radius: 999px;
  color: #214a91;
  font-family: var(--ui-font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1;
  text-decoration: none;
  background: rgba(250, 253, 255, 0.52);
  border: 1px solid rgba(91, 151, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 8px 20px rgba(63, 116, 196, 0.08);
  transition: color 200ms ease, border-color 200ms ease, background 240ms ease, transform 240ms ease;
}

html[data-dynamic="1"][data-color-mode="dark"] .zen-toggle {
  color: #dfe7ef;
  background: linear-gradient(180deg, #161b22 0%, #0b1118 100%);
  border: 1px solid #30363d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 22px rgba(0, 0, 0, 0.28);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  animation: zen-toggle-breathe 3.6s ease-in-out infinite;
}

html[data-dynamic="1"] .zen-toggle:hover {
  color: #0f1a2d;
  border-color: rgba(36, 102, 217, 0.34);
  background: rgba(232, 244, 255, 0.82);
  transform: translateY(-1px);
}

html[data-dynamic="1"][data-color-mode="dark"] .zen-toggle:hover {
  color: #ffffff;
  border-color: #484f58;
  background: linear-gradient(180deg, #1c232c 0%, #11171e 100%);
}

@keyframes zen-toggle-breathe {
  0%, 100% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 22px rgba(0, 0, 0, 0.28);
    border-color: #30363d;
  }
  50% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 5px rgba(88, 166, 255, 0.06), 0 10px 26px rgba(0, 0, 0, 0.34);
    border-color: #484f58;
  }
}

.zen-toggle:hover {
  color: #fff;
  border-color: #58a6ff;
  background: linear-gradient(180deg, #21262d 0%, #111820 100%);
  transform: translateY(-1px);
  animation-play-state: paused;
}

.zen-toggle .zen-toggle-glyph {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  font-weight: 200;
  letter-spacing: 0;
  color: #f0f6fc;
}

/* Anonymous zen entry — only surfaced on mobile from the header; direct /zen
   visits stay open on every viewport. */
.zen-toggle-anon {
  display: none;
}
@media (max-width: 768px) {
  .zen-toggle-anon {
    display: inline-flex;
  }
}

/* Zen ambient-sound toggle — starts large + centered ("intro popup") and
   shrinks into the top-left corner on first interaction, like a music-app
   control returning to its home position. */
body.zen-mode .zen-audio-toggle {
  position: fixed;
  top: 24px;
  left: 28px;
  bottom: auto;
  right: auto;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  cursor: pointer;
  z-index: 5;
  transition:
    bottom 1100ms cubic-bezier(0.65, 0, 0.35, 1),
    left 1100ms cubic-bezier(0.65, 0, 0.35, 1),
    top 1100ms cubic-bezier(0.65, 0, 0.35, 1),
    right 1100ms cubic-bezier(0.65, 0, 0.35, 1),
    width 1100ms cubic-bezier(0.65, 0, 0.35, 1),
    height 1100ms cubic-bezier(0.65, 0, 0.35, 1),
    font-size 1100ms cubic-bezier(0.65, 0, 0.35, 1),
    transform 1100ms cubic-bezier(0.65, 0, 0.35, 1),
    color 400ms ease,
    border-color 400ms ease,
    background 400ms ease,
    box-shadow 400ms ease;
}

body.zen-mode .zen-audio-toggle:hover {
  color: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.6);
}

body.zen-mode .zen-audio-toggle[data-state="intro"] {
  top: clamp(40px, 11vh, 110px);
  left: 50%;
  right: auto;
  bottom: auto;
  width: 78px;
  height: 78px;
  font-size: 30px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.6);
  animation: zen-audio-intro-breathe 2.6s ease-in-out infinite;
}

@keyframes zen-audio-intro-breathe {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.22);
  }
  50% {
    box-shadow: 0 0 0 22px rgba(255, 255, 255, 0);
  }
}

body.zen-mode .zen-audio-toggle[data-on="1"] {
  color: rgba(255, 255, 255, 0.98);
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.05);
}

body.zen-mode .zen-audio-toggle[data-on="1"]:not([data-state="intro"]) {
  animation: zen-audio-pulse 3.6s ease-in-out infinite;
}

@keyframes zen-audio-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.0); }
  50% { box-shadow: 0 0 18px 0 rgba(255, 255, 255, 0.18); }
}

/* Silhouette mirror — ghost of the agent's currently-rendered page. Hidden by
   default; fades up on cursor movement so the page underneath is sensed, not read. */
body.zen-mode .zen-silhouette {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  border: 0;
  margin: 0;
  padding: 0;
  background: #000;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  filter: grayscale(1) contrast(0.55) brightness(0.35) blur(1px);
  transition: opacity 700ms ease, filter 700ms ease;
  will-change: opacity, filter;
}

body.zen-mode .zen-silhouette[data-shown="1"] {
  opacity: 0.32;
  filter: grayscale(1) contrast(0.7) brightness(0.6) blur(0.4px);
}

body.zen-mode #zen-overlay[data-zen-browser="1"] .zen-silhouette {
  z-index: 1;
  opacity: 1;
  filter: none;
}

body.zen-mode #zen-overlay[data-zen-browser="1"] .zen-peek {
  opacity: 0;
  transform: translateY(6px);
}

/* Transient peek visibility is opacity-driven: .zen-silhouette / .zen-peek sit
   at opacity:0 by default and fade in via [data-shown="1"], so a mobile tap can
   reveal them just like a desktop mouse move. Both stay pointer-events:none, so
   a peek never intercepts the tap that follows it. */
body.zen-mode #zen-overlay[data-zen-touch-input="1"][data-zen-browser="1"] {
  touch-action: pan-x pinch-zoom;
}

/* Cursor peek — transient reveal of agent activity on pointer movement. */
body.zen-mode .zen-peek {
  position: fixed;
  bottom: 28px;
  left: 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.78);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 380ms ease, transform 380ms ease;
  z-index: 4;
  max-width: 360px;
}

body.zen-mode .zen-peek[data-shown="1"] {
  opacity: 1;
  transform: translateY(0);
}

body.zen-mode .zen-peek-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.zen-mode .zen-peek-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
  animation: zen-peek-pulse 1.6s ease-in-out infinite;
}

@keyframes zen-peek-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.95; }
}

body.zen-mode .zen-peek-phase {
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

body.zen-mode .zen-peek-action {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.zen-mode .zen-peek-action:empty {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  body.zen-mode .zen-verb-fade {
    animation: none;
  }
  body.zen-mode .zen-answer {
    transition: none;
  }
  body.zen-mode .zen-peek-dot {
    animation: none;
  }
  body.zen-mode .zen-audio-toggle,
  body.zen-mode .zen-browser-toggle,
  body.zen-mode .zen-stop,
  body.zen-mode .zen-stage,
  body.zen-mode .zen-input-wrap,
  body.zen-mode .zen-silhouette,
  body.zen-mode .zen-peek {
    animation: none;
    transition: none;
  }
}

@media (max-width: 768px) {
  body.zen-mode #zen-overlay {
    align-items: stretch;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: calc(18px + env(safe-area-inset-top, 0px)) 18px calc(20px + env(safe-area-inset-bottom, 0px));
  }

  body.zen-mode .zen-stage {
    width: 100%;
    min-height: calc(100vh - 38px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    min-height: calc(100dvh - 38px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    gap: clamp(22px, 6vh, 44px);
  }

  body.zen-mode .zen-verb {
    font-size: clamp(44px, 16vw, 72px);
    max-width: 100%;
  }

  body.zen-mode .zen-eq {
    height: clamp(68px, 16vh, 92px);
  }

  body.zen-mode .zen-subtitle {
    max-width: 86vw;
    min-height: 2.4em;
    font-size: 10px;
    line-height: 1.45;
    letter-spacing: 0.15em;
    text-align: center;
  }

  body.zen-mode .zen-input-wrap {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 2px;
    width: min(100%, 430px);
    min-height: 56px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 46px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  body.zen-mode .zen-input-wrap:focus-within {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.065);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 18px 46px rgba(0, 0, 0, 0.34),
      0 0 0 1px rgba(255, 255, 255, 0.05),
      0 0 30px rgba(255, 255, 255, 0.07);
  }

  body.zen-mode .zen-input {
    min-width: 0;
    max-width: none;
    border-bottom: 0;
    font-size: 18px;
    font-weight: 300;
    text-align: left;
    padding: 0 10px;
  }

  body.zen-mode .zen-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
  }

  body.zen-mode .zen-voice {
    min-width: 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border-color: rgba(255, 255, 255, 0.1);
  }

  body.zen-mode .zen-submit {
    width: auto;
    height: 44px;
    padding: 0 14px;
    border-color: rgba(255, 255, 255, 0.1);
  }

  body.zen-mode .zen-audio-toggle {
    display: none;
  }

  body.zen-mode .zen-browser-toggle {
    display: none;
    top: calc(14px + env(safe-area-inset-top, 0px));
    right: 16px;
    min-width: 66px;
    height: 42px;
    background: rgba(0, 0, 0, 0.38);
    border-color: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  body.zen-mode #zen-overlay[data-zen-busy="1"] .zen-browser-toggle,
  body.zen-mode #zen-overlay[data-zen-has-browser="1"] .zen-browser-toggle {
    display: inline-flex;
  }

  body.zen-mode #zen-overlay[data-zen-browser="1"] .zen-browser-toggle {
    background: rgba(255, 255, 255, 0.9);
    color: #050505;
    border-color: rgba(255, 255, 255, 0.9);
  }

  body.zen-mode #zen-overlay[data-zen-browser="1"] .zen-stage {
    right: 16px;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    left: 16px;
    width: auto;
    min-height: 0;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 18px;
  }

  body.zen-mode #zen-overlay[data-zen-browser="1"] .zen-verb {
    font-size: 18px;
  }

  body.zen-mode #zen-overlay[data-zen-browser="1"] .zen-eq {
    height: 28px;
  }

  body.zen-mode #zen-overlay[data-zen-browser="1"] .zen-subtitle {
    max-width: none;
    min-height: 0;
    text-align: left;
  }

  body.zen-mode .zen-stop {
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    min-width: 78px;
    height: 42px;
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  body.zen-mode .zen-peek {
    right: 16px;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    left: 16px;
    max-width: none;
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.42);
  }

  body.zen-mode .zen-answer {
    padding: calc(68px + env(safe-area-inset-top, 0px)) 20px calc(92px + env(safe-area-inset-bottom, 0px));
    font-size: 17px;
    line-height: 1.58;
  }

  body.zen-mode .zen-answer-inner {
    max-width: 100%;
  }

  body.zen-mode .zen-answer-share {
    top: calc(14px + env(safe-area-inset-top, 0px));
    right: 16px;
  }

  body.zen-mode .zen-answer-back {
    right: 16px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  }
}

#recent-results {
  max-width: 680px;
  margin: 0 auto 48px;
  padding: 0 24px;
}
#recent-results h2 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #484f58;
  margin-bottom: 10px;
}
#recent-results ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
#recent-results a {
  display: block;
  font-size: 13px;
  color: #8b949e;
  text-decoration: none;
  padding: 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#recent-results a:hover { color: #58a6ff; }

/* ---------- Mobile experience repairs ---------- */
body.zen-mode #recent-results {
  display: none !important;
}

@media (max-width: 768px) {
  header {
    height: auto;
    min-height: 52px;
  }

  html:not([data-dynamic="1"]) #response-shell {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  html:not([data-dynamic="1"]) #terminal {
    order: -2;
  }

  html:not([data-dynamic="1"]) #input-line {
    order: -1;
    border-top: 0;
    border-bottom: 1px solid #21262d;
  }

  #new-chat,
  #radar-link,
  #memory-lane-link,
  #pricing-link,
  #ask-submit,
  #sign-in-btn,
  .auth-pill,
  .auth-signout,
  .zen-toggle,
  .ghost-btn,
  .spectator-mode,
  .copy-btn,
  .share-btn,
  .process-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
  }

  #close-spectator {
    min-width: 44px;
    min-height: 44px;
    padding: 0;
  }

  body.zen-mode .zen-answer-back,
  body.zen-mode .zen-answer-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
  }

  .auth-pill {
    min-width: 44px;
  }

  html[data-dynamic="1"] header {
    top: calc(8px + env(safe-area-inset-top, 0px)) !important;
    bottom: auto !important;
    min-height: 48px;
    padding: 6px 8px;
    gap: 6px;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: hidden;
    flex-wrap: nowrap;
    box-shadow:
      0 18px 44px rgba(63, 116, 196, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.82);
  }

  html[data-dynamic="1"] header > * {
    flex: 0 0 auto;
  }

  html[data-dynamic="1"] .brand-wrap {
    flex: 1 1 auto;
    min-width: 0;
  }

  html[data-dynamic="1"] #experience-chip {
    min-width: 0;
    max-width: clamp(118px, 38vw, 150px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html[data-dynamic="1"] #status,
  html[data-dynamic="1"] #radar-link,
  html[data-dynamic="1"] #memory-lane-link,
  html[data-dynamic="1"] #agent-guide-link,
  html[data-dynamic="1"] #pricing-link {
    display: none;
  }

  html[data-dynamic="1"] #auth-slot {
    display: flex;
    flex: 0 0 auto;
    gap: 0;
  }

  html[data-dynamic="1"] #auth-slot .zen-toggle,
  html[data-dynamic="1"] #auth-slot .auth-signout {
    display: none;
  }

  html[data-dynamic="1"] #new-chat {
    width: 44px;
    padding: 0;
    font-size: 0;
  }

  html[data-dynamic="1"] #new-chat::before {
    content: '+';
    font-size: 18px;
    line-height: 1;
  }

  html[data-dynamic="1"] #radar-link,
  html[data-dynamic="1"] #memory-lane-link,
  html[data-dynamic="1"] #pricing-link {
    padding: 0 12px;
  }

  .home-radar {
    grid-template-columns: 1fr;
    max-width: 100%;
    padding: 12px;
  }

  .home-radar-head {
    flex-direction: row;
    align-items: flex-start;
  }

  .home-radar-head a,
  .home-radar-ask {
    min-height: 44px;
  }

  .home-radar-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .home-radar-row {
    min-height: 0;
  }

  .home-radar-row:nth-child(n+3) {
    display: none;
  }

  html[data-dynamic="1"] #terminal {
    padding-top: calc(74px + env(safe-area-inset-top, 0px)) !important;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
  }

  html[data-dynamic="1"] .pricing-teaser {
    position: static;
    top: auto;
    right: auto;
    z-index: auto;
    align-self: stretch;
    width: auto;
    max-width: none;
    margin: 0 24px 16px;
    border-radius: 18px;
    opacity: 1;
    transform: none;
  }

  html[data-dynamic="1"] .pricing-teaser:hover,
  html[data-dynamic="1"] .pricing-teaser:focus-visible,
  html[data-dynamic="1"] .pricing-teaser.is-expanded {
    width: auto;
    max-width: none;
    border-radius: 18px;
    transform: none;
  }

  html[data-dynamic="1"] .pricing-teaser-copy,
  html[data-dynamic="1"] .pricing-teaser-action,
  html[data-dynamic="1"] .pricing-teaser:hover .pricing-teaser-copy,
  html[data-dynamic="1"] .pricing-teaser:focus-visible .pricing-teaser-copy,
  html[data-dynamic="1"] .pricing-teaser.is-expanded .pricing-teaser-copy,
  html[data-dynamic="1"] .pricing-teaser:hover .pricing-teaser-action,
  html[data-dynamic="1"] .pricing-teaser:focus-visible .pricing-teaser-action,
  html[data-dynamic="1"] .pricing-teaser.is-expanded .pricing-teaser-action {
    max-height: none;
    opacity: 1;
  }

  html[data-dynamic="1"] #response-shell .prompt-explorer-toggle,
  html[data-dynamic="1"] body.landing-active #response-shell .prompt-explorer-toggle {
    position: static;
    bottom: auto;
    align-self: stretch;
    width: auto;
    max-width: none;
    margin: 0 24px 18px;
  }

  html[data-dynamic="1"] #input-line {
    order: -1 !important;
    width: auto !important;
    margin: 0 10px 10px !important;
    border: 1px solid rgba(91, 151, 255, 0.22);
    border-radius: 18px;
    background: rgba(250, 253, 255, 0.86);
    box-shadow: 0 12px 32px rgba(63, 116, 196, 0.14);
  }

  html[data-dynamic="1"] #spectator-panel {
    flex: 0 0 0;
    height: 0;
    min-height: 0;
    overflow: hidden;
    border: 0;
  }

  html[data-dynamic="1"] body.agent-browsing #spectator-panel,
  html[data-dynamic="1"] body.agent-answer-focus #spectator-panel {
    flex: 0 0 auto;
    height: 42vh;
    min-height: 220px;
    max-height: 380px;
    overflow: hidden;
    border: 0;
    border-bottom: 1px solid rgba(91, 151, 255, 0.18);
    background: transparent;
  }

  html[data-dynamic="1"] body.agent-browsing #spectator-header,
  html[data-dynamic="1"] body.agent-answer-focus #spectator-header {
    display: flex;
  }

  html[data-dynamic="1"] body.agent-browsing #spectator-stage,
  html[data-dynamic="1"] body.agent-answer-focus #spectator-stage {
    display: block;
  }

  html[data-dynamic="1"] body.mobile-browser-open #spectator-panel {
    flex: none;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: hidden;
    border: 1px solid rgba(91, 151, 255, 0.2);
  }

  html[data-dynamic="1"] body.mobile-browser-open #spectator-stage {
    top: 0 !important;
    right: auto !important;
    bottom: auto !important;
    left: 0 !important;
  }

  html[data-dynamic="1"] body.manual-compact #response-shell,
  html[data-dynamic="1"] body.browser-focus #response-shell,
  html[data-dynamic="1"] body.panel-peek #response-shell {
    width: min(84vw, calc(100% - 20px)) !important;
    max-width: min(84vw, calc(100% - 20px)) !important;
    align-self: center;
    margin-right: 0;
    margin-left: 0;
  }

  html[data-dynamic="1"] body.manual-compact #input-line,
  html[data-dynamic="1"] body.browser-focus #input-line,
  html[data-dynamic="1"] body.panel-peek #input-line {
    width: auto !important;
    max-width: none !important;
    align-self: stretch;
    margin: 0 10px 10px !important;
  }
}

/* ---------- Current page polish: type, buttons, signed-in dark mode ---------- */

button,
input,
textarea,
select {
  font: inherit;
}

html[data-dynamic="1"] #new-chat,
html[data-dynamic="1"] #radar-link,
html[data-dynamic="1"] #memory-lane-link,
html[data-dynamic="1"] #pricing-link,
html[data-dynamic="1"] .ghost-btn,
html[data-dynamic="1"] .spectator-mode,
html[data-dynamic="1"] #sign-in-btn,
html[data-dynamic="1"] .auth-pill,
html[data-dynamic="1"] .theme-toggle,
html[data-dynamic="1"] .copy-btn,
html[data-dynamic="1"] .share-btn,
html[data-dynamic="1"] .process-action,
html[data-dynamic="1"] .home-radar-ask,
html[data-dynamic="1"] .home-radar-head a {
  min-height: 32px;
  border-radius: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 8px 20px rgba(63, 116, 196, 0.08);
}

html[data-dynamic="1"] #ask-submit {
  min-height: 36px;
  padding-inline: 18px;
  border-radius: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

html[data-dynamic="1"] header {
  align-items: center;
  gap: 8px;
}

html[data-dynamic="1"] header > * {
  align-self: center;
}

html[data-dynamic="1"] #current-url {
  flex: 1 1 auto;
  min-width: 0;
}

html[data-dynamic="1"] .auth-signout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-height: 32px;
  padding: 0 12px;
  color: #214a91;
  border-color: rgba(91, 151, 255, 0.22);
  background: rgba(250, 253, 255, 0.52);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  opacity: 1;
}

html[data-dynamic="1"] .auth-pill,
html[data-dynamic="1"] .zen-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-height: 32px;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 1;
}

html[data-dynamic="1"] #radar-link,
html[data-dynamic="1"] #memory-lane-link,
html[data-dynamic="1"] #pricing-link,
html[data-dynamic="1"] #new-chat,
html[data-dynamic="1"] .theme-toggle,
html[data-dynamic="1"] .auth-signout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  line-height: 1;
  padding-top: 0;
  padding-bottom: 0;
}

html[data-dynamic="1"] .auth-signout {
  font-size: 12px;
}

html[data-dynamic="1"] .zen-toggle {
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

html[data-dynamic="1"] .zen-toggle .zen-toggle-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  font-size: 13px;
  line-height: 1;
  transform: translateY(-0.5px);
}

html[data-dynamic="1"] .zen-toggle span:not(.zen-toggle-glyph),
html[data-dynamic="1"] .auth-pill-name {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

html[data-dynamic="1"] .auth-pill {
  gap: 7px;
}

html[data-dynamic="1"] .auth-avatar {
  width: 24px;
  height: 24px;
}

html[data-dynamic="1"] .auth-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

html[data-dynamic="1"] .auth-signout:hover {
  color: #214a91;
  border-color: rgba(36, 102, 217, 0.24);
  background: rgba(238, 247, 255, 0.62);
  opacity: 1;
}

html[data-dynamic="1"] .pricing-teaser {
  align-items: center;
}

html[data-dynamic="1"] .pricing-teaser-kicker {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding-inline: 10px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid rgba(91, 151, 255, 0.22);
  border-radius: 14px;
  background: rgba(250, 253, 255, 0.52);
  color: #214a91;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.theme-toggle:hover {
  background: rgba(232, 244, 255, 0.82);
  border-color: rgba(36, 102, 217, 0.34);
  transform: translateY(-1px);
}

html[data-dynamic="1"][data-color-mode="dark"] body {
  --desk-ink: #edf5ff;
  --desk-muted: #99acc4;
  --desk-soft: rgba(21, 35, 54, 0.72);
  --desk-paper: rgba(12, 20, 32, 0.78);
  --desk-card: rgba(15, 26, 42, 0.76);
  --desk-line: rgba(126, 171, 232, 0.22);
  --desk-blue: #8bbdff;
  --desk-coral: #74d2ff;
  --desk-green: #77e0bc;
  --desk-gold: #ffd58a;
  background:
    radial-gradient(circle at 16% 10%, rgba(74, 132, 244, 0.2), transparent 30%),
    radial-gradient(circle at 86% 12%, rgba(116, 210, 255, 0.14), transparent 28%),
    linear-gradient(180deg, #07101d 0%, #0c1726 52%, #060b13 100%);
  color: var(--desk-ink);
}

html[data-dynamic="1"][data-color-mode="dark"] body::before {
  background:
    linear-gradient(90deg, rgba(139, 189, 255, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(139, 189, 255, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
}

html[data-dynamic="1"][data-color-mode="dark"] header,
html[data-dynamic="1"][data-color-mode="dark"] #spectator-header,
html[data-dynamic="1"][data-color-mode="dark"] #response-shell,
html[data-dynamic="1"][data-color-mode="dark"] #input-line,
html[data-dynamic="1"][data-color-mode="dark"] .process-card,
html[data-dynamic="1"][data-color-mode="dark"] .home-radar,
html[data-dynamic="1"][data-color-mode="dark"] .pricing-teaser,
html[data-dynamic="1"][data-color-mode="dark"] #result-panel,
html[data-dynamic="1"][data-color-mode="dark"] .result-archive,
html[data-dynamic="1"][data-color-mode="dark"] .prompt-explorer-shell,
html[data-dynamic="1"][data-color-mode="dark"] .share-modal {
  border-color: rgba(139, 189, 255, 0.2);
  background: rgba(10, 18, 30, 0.78);
  color: var(--desk-ink);
  box-shadow: 0 24px 76px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-dynamic="1"][data-color-mode="dark"] #result-panel,
html[data-dynamic="1"][data-color-mode="dark"] .result-archive {
  background: var(--desk-card);
}

html[data-dynamic="1"][data-color-mode="dark"] #response-shell,
html[data-dynamic="1"][data-color-mode="dark"] #input-line,
html[data-dynamic="1"][data-color-mode="dark"] body.landing-active #input-line,
html[data-dynamic="1"][data-color-mode="dark"] #input-line:focus-within,
html[data-dynamic="1"][data-color-mode="dark"] .pricing-teaser {
  background: rgba(14, 25, 42, 0.9) !important;
  box-shadow: 0 28px 86px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

html[data-dynamic="1"][data-color-mode="dark"] #spectator-stage,
html[data-dynamic="1"][data-color-mode="dark"] body.landing-active #main {
  background:
    radial-gradient(circle at 15% 12%, rgba(74, 132, 244, 0.12), transparent 26%),
    linear-gradient(180deg, #07101d 0%, #050a12 100%);
}

html[data-dynamic="1"][data-color-mode="dark"] #new-chat,
html[data-dynamic="1"][data-color-mode="dark"] #radar-link,
html[data-dynamic="1"][data-color-mode="dark"] #memory-lane-link,
html[data-dynamic="1"][data-color-mode="dark"] #pricing-link,
html[data-dynamic="1"][data-color-mode="dark"] .ghost-btn,
html[data-dynamic="1"][data-color-mode="dark"] .spectator-mode,
html[data-dynamic="1"][data-color-mode="dark"] #sign-in-btn,
html[data-dynamic="1"][data-color-mode="dark"] .auth-pill,
html[data-dynamic="1"][data-color-mode="dark"] .theme-toggle,
html[data-dynamic="1"][data-color-mode="dark"] .copy-btn,
html[data-dynamic="1"][data-color-mode="dark"] .share-btn,
html[data-dynamic="1"][data-color-mode="dark"] .process-action,
html[data-dynamic="1"][data-color-mode="dark"] .home-radar-ask {
  border-color: rgba(139, 189, 255, 0.22);
  background: rgba(20, 34, 54, 0.72);
  color: #d9ebff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 10px 24px rgba(0, 0, 0, 0.22);
}

html[data-dynamic="1"][data-color-mode="dark"] .auth-signout {
  color: #b7c9df;
  border-color: rgba(139, 189, 255, 0.24);
  opacity: 1;
}

html[data-dynamic="1"][data-color-mode="dark"] .auth-signout:hover {
  color: #ffffff;
  background: rgba(31, 52, 82, 0.72);
  border-color: rgba(139, 189, 255, 0.34);
}

html[data-dynamic="1"][data-color-mode="dark"] #new-chat:hover,
html[data-dynamic="1"][data-color-mode="dark"] #radar-link:hover,
html[data-dynamic="1"][data-color-mode="dark"] #memory-lane-link:hover,
html[data-dynamic="1"][data-color-mode="dark"] #pricing-link:hover,
html[data-dynamic="1"][data-color-mode="dark"] .ghost-btn:hover,
html[data-dynamic="1"][data-color-mode="dark"] .spectator-mode:hover,
html[data-dynamic="1"][data-color-mode="dark"] #sign-in-btn:hover,
html[data-dynamic="1"][data-color-mode="dark"] .theme-toggle:hover,
html[data-dynamic="1"][data-color-mode="dark"] .home-radar-ask:hover {
  border-color: rgba(139, 189, 255, 0.44);
  background: rgba(31, 52, 82, 0.86);
  color: #ffffff;
}

html[data-dynamic="1"][data-color-mode="dark"] .home-radar-head a,
html[data-dynamic="1"][data-color-mode="dark"] #ask-submit {
  border-color: rgba(139, 189, 255, 0.5);
  background: linear-gradient(135deg, #315aa4, #3b7ce8 58%, #63b7ff);
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(40, 108, 230, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

html[data-dynamic="1"][data-color-mode="dark"] #task-input,
html[data-dynamic="1"][data-color-mode="dark"] #response-prompt,
html[data-dynamic="1"][data-color-mode="dark"] .home-radar h3,
html[data-dynamic="1"][data-color-mode="dark"] .home-radar-row h4,
html[data-dynamic="1"][data-color-mode="dark"] #result-panel strong,
html[data-dynamic="1"][data-color-mode="dark"] .result-archive strong {
  color: var(--desk-ink);
}

html[data-dynamic="1"][data-color-mode="dark"] #task-input::placeholder,
html[data-dynamic="1"][data-color-mode="dark"] body.landing-active #task-input::placeholder,
html[data-dynamic="1"][data-color-mode="dark"] #input-line:focus-within #task-input::placeholder,
html[data-dynamic="1"][data-color-mode="dark"] #response-activity,
html[data-dynamic="1"][data-color-mode="dark"] #status-text,
html[data-dynamic="1"][data-color-mode="dark"] #current-url,
html[data-dynamic="1"][data-color-mode="dark"] #spectator-url,
html[data-dynamic="1"][data-color-mode="dark"] .home-radar-summary,
html[data-dynamic="1"][data-color-mode="dark"] .home-radar-row p,
html[data-dynamic="1"][data-color-mode="dark"] .recent-ticker-item {
  color: var(--desk-muted);
}

html[data-dynamic="1"][data-color-mode="dark"] .home-radar-row,
html[data-dynamic="1"][data-color-mode="dark"] .process-source,
html[data-dynamic="1"][data-color-mode="dark"] .share-modal-input,
html[data-dynamic="1"][data-color-mode="dark"] .share-modal-textarea,
html[data-dynamic="1"][data-color-mode="dark"] .share-modal-radio {
  border-color: rgba(139, 189, 255, 0.16);
  background: rgba(14, 25, 40, 0.72);
  color: var(--desk-ink);
}

html[data-dynamic="1"][data-color-mode="dark"] .process-steps li,
html[data-dynamic="1"][data-color-mode="dark"] #response-phase,
html[data-dynamic="1"][data-color-mode="dark"] .process-phase,
html[data-dynamic="1"][data-color-mode="dark"] .pricing-teaser-kicker {
  border-color: rgba(139, 189, 255, 0.18);
  background: rgba(23, 42, 66, 0.8);
  color: #b9d8ff;
}

html[data-dynamic="1"][data-color-mode="dark"] .home-radar-kicker,
html[data-dynamic="1"][data-color-mode="dark"] .home-radar-meta,
html[data-dynamic="1"][data-color-mode="dark"] .recent-ticker-label,
html[data-dynamic="1"][data-color-mode="dark"] .samples-label,
html[data-dynamic="1"][data-color-mode="dark"] .process-eyebrow {
  color: #8bbdff;
}

@media (max-width: 1180px) {
  html[data-dynamic="1"] #experience-chip,
  html[data-dynamic="1"] #current-url {
    display: none !important;
  }
}

html[data-dynamic="1"][data-color-mode="dark"] .brand-logo {
  filter: drop-shadow(0 0 10px rgba(139, 189, 255, 0.18));
}

html[data-dynamic="1"][data-color-mode="dark"] .how-num {
  background: rgba(23, 42, 66, 0.8);
  border-color: rgba(139, 189, 255, 0.22);
  color: #b9d8ff;
}

html[data-dynamic="1"][data-color-mode="dark"] .how-step {
  color: #99acc4;
}

html[data-dynamic="1"][data-color-mode="dark"] .how-arrow {
  color: rgba(139, 189, 255, 0.4);
}

html[data-dynamic="1"][data-color-mode="dark"] .welcome h2 {
  color: #eaf3ff;
}

html[data-dynamic="1"][data-color-mode="dark"] .recent-ticker-label {
  color: #b9d8ff;
}

html[data-dynamic="1"][data-color-mode="dark"] .home-radar-kicker {
  color: #b9d8ff;
}

html[data-dynamic="1"][data-color-mode="dark"] .research-toggle {
  border-color: rgba(139, 189, 255, 0.36);
  background: linear-gradient(180deg, rgba(20, 34, 54, 0.86), rgba(14, 25, 42, 0.72));
  color: #9ec5ff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-dynamic="1"][data-color-mode="dark"] .research-toggle::before {
  background: rgba(23, 42, 66, 0.8);
  border-color: rgba(139, 189, 255, 0.26);
}

html[data-dynamic="1"][data-color-mode="dark"] .research-toggle::after {
  background: #8bbdff;
}

@media (max-width: 768px) {
  html[data-dynamic="1"] .theme-toggle {
    display: none;
  }
}

/* Publish is the primary answer action; Copy remains a secondary utility. */
.result-actions {
  align-items: center;
  flex-wrap: wrap;
}

.publish-subcopy {
  flex: 1 1 280px;
  align-self: center;
  margin-right: auto;
  color: #60728b;
  font-size: 12px;
  line-height: 1.35;
}

.result-actions .share-btn {
  border-color: #2466d9;
  background: #2466d9;
  color: #ffffff;
  font-weight: 700;
}

.result-actions .share-btn:hover {
  border-color: #1f55b5;
  background: #1f55b5;
  color: #ffffff;
}

.result-actions .copy-btn {
  border-color: rgba(36, 102, 217, 0.24);
  background: transparent;
  color: #82bdff;
}

.published-share-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.result-actions .published-share-actions button,
.result-actions .published-share-actions a {
  border: 1px solid rgba(36, 102, 217, 0.28);
  border-radius: 999px;
  background: #2466d9;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 8px 14px;
  text-decoration: none;
}

.result-actions .published-share-actions a {
  background: transparent;
  color: #214a91;
}

.result-actions .published-share-actions button:hover,
.result-actions .published-share-actions a:hover {
  border-color: #1f55b5;
}

.result-actions .published-share-actions button:hover {
  background: #1f55b5;
}

.result-actions .published-share-actions button[disabled] {
  cursor: wait;
  opacity: 0.72;
}

html[data-dynamic="1"] .result-actions .share-btn {
  border-color: #2466d9;
  background: #2466d9;
  color: #ffffff;
}

html[data-dynamic="1"] .result-actions .share-btn:hover {
  border-color: #1f55b5;
  background: #1f55b5;
  color: #ffffff;
}

html[data-dynamic="1"] .result-actions .copy-btn {
  border-color: rgba(36, 102, 217, 0.24);
  background: transparent;
  color: #214a91;
}

html[data-dynamic="1"][data-color-mode="dark"] .publish-subcopy {
  color: #99acc4;
}

html[data-dynamic="1"][data-color-mode="dark"] .result-actions .share-btn {
  border-color: #4b8bf4;
  background: #3b7ce8;
  color: #ffffff;
}

html[data-dynamic="1"][data-color-mode="dark"] .result-actions .copy-btn {
  border-color: rgba(139, 189, 255, 0.26);
  background: transparent;
  color: #b9d8ff;
}

html[data-dynamic="1"][data-color-mode="dark"] .result-actions .published-share-actions a {
  border-color: rgba(139, 189, 255, 0.26);
  color: #b9d8ff;
}

body.zen-mode .published-share-actions {
  position: fixed;
  top: 24px;
  right: 28px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

body.zen-mode .published-share-actions button,
body.zen-mode .published-share-actions a {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.74);
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  padding: 8px 12px;
  text-decoration: none;
  text-transform: uppercase;
}

body.zen-mode .published-share-actions button:hover,
body.zen-mode .published-share-actions a:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.95);
}

body.zen-mode .published-share-actions button[disabled] {
  cursor: wait;
  opacity: 0.5;
}

@media (max-width: 768px) {
  body.zen-mode .published-share-actions {
    top: calc(14px + env(safe-area-inset-top, 0px));
    right: 16px;
    left: 16px;
  }
}
