.signal-body {
  background:
    radial-gradient(circle at 74% 22%, rgba(54, 228, 255, 0.07), transparent 25rem),
    radial-gradient(circle at 20% 76%, rgba(124, 60, 255, 0.08), transparent 28rem),
    var(--black);
}

.signal-shell { display: flex; flex-direction: column; }

.signal-main {
  flex: 1;
  display: grid;
  align-items: center;
  padding-block: clamp(48px, 7vh, 92px);
}

.access-panel {
  width: min(640px, 100%);
  margin-inline: auto;
}

.access-panel h1,
.simulator-intro h1 {
  margin: 0;
  font-size: clamp(64px, 8vw, 112px);
  font-weight: 600;
  line-height: 0.86;
  letter-spacing: -0.075em;
}

.access-panel h1 {
  color: transparent;
  background: linear-gradient(100deg, var(--white) 0 38%, var(--acid) 60%, var(--cyan) 82%, #a675ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

.access-copy {
  margin: 34px 0 24px;
  color: #92928c;
  font-size: clamp(15px, 1.5vw, 18px);
}

.access-form { width: min(100%, 560px); }

.access-row {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.035);
}

.access-row:focus-within {
  border-color: rgba(200, 255, 46, 0.62);
  box-shadow: 0 0 0 3px rgba(200, 255, 46, 0.07);
}

.signal-link {
  width: auto;
  min-height: auto;
  padding: 0 0 6px;
  color: #85857f;
  background: transparent;
  border-bottom: 1px solid #555550;
  font: 700 9px/1 "Space Mono", monospace;
  letter-spacing: 0.08em;
}

.signal-link:hover {
  color: var(--white);
  background: transparent;
  border-color: var(--white);
  transform: none;
}

.simulator-panel { width: 100%; }

.simulator-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 38px;
}

.simulator-intro .eyebrow { margin-bottom: 22px; }
.simulator-intro h1 { font-size: clamp(58px, 6.8vw, 96px); }

.conversation-frame {
  border: 1px solid var(--line);
  background: rgba(10, 10, 12, 0.78);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3);
}

.conversation-header {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
  color: #686862;
  font: 400 9px/1 "Space Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.conversation-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #b8b7b0;
}

.conversation-name i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 13px rgba(200, 255, 46, 0.75);
}

.agent-state {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  padding: 0 clamp(18px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
  color: #595954;
  font: 400 8px/1 "Space Mono", monospace;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.agent-state strong {
  margin-left: 5px;
  color: #c8ff2e;
  font-weight: 400;
}

.agent-state .last-action {
  min-width: 0;
  overflow: hidden;
  color: #777770;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-state.pending strong,
.agent-state.pending .last-action { color: #777770; }

.agent-state button {
  width: auto;
  min-height: auto;
  margin-left: auto;
  padding: 0;
  color: #686862;
  background: transparent;
  border: 0;
  font: inherit;
}

.agent-state button:hover { color: var(--white); background: transparent; transform: none; }

.messages {
  height: clamp(320px, 48vh, 560px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(22px, 4vw, 48px);
  scrollbar-width: thin;
  scrollbar-color: #30302d transparent;
}

.message {
  max-width: min(720px, 78%);
  display: grid;
  gap: 7px;
}

.message.user { align-self: end; justify-items: end; }
.message.assistant { align-self: start; }

.message.scheduled-task .message-label { color: #9fc92a; }

.message.scheduled-task .message-bubble {
  color: #efffc5;
  background: linear-gradient(110deg, rgba(200, 255, 46, 0.12), rgba(142, 244, 170, 0.06));
  border-color: rgba(200, 255, 46, 0.3);
  box-shadow: inset 3px 0 0 rgba(200, 255, 46, 0.7);
}

.message-label {
  color: #595954;
  font: 400 8px/1 "Space Mono", monospace;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.message-bubble {
  margin: 0;
  padding: 15px 18px;
  color: #d8d7d0;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.message.user .message-bubble {
  color: #090909;
  background: linear-gradient(105deg, #d8ff43, #8ef4aa);
  border-color: transparent;
}

.message.thinking .message-bubble {
  color: #777770;
  font-family: "Space Mono", monospace;
  font-size: 11px;
}

.agent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.agent-actions span {
  padding: 6px 8px;
  color: #8eaa3c;
  background: rgba(200, 255, 46, 0.055);
  border: 1px solid rgba(200, 255, 46, 0.18);
  font: 400 7px/1.3 "Space Mono", monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.agent-actions span::before { content: "↳ "; }
.agent-actions span.error { color: #db7d7d; border-color: rgba(255, 100, 100, 0.2); }

.message-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: end;
  padding: 16px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.message-form textarea {
  width: 100%;
  min-height: 52px;
  max-height: 160px;
  resize: none;
  padding: 16px;
  color: var(--white);
  background: transparent;
  border: 0;
  outline: 0;
  font: 500 15px/1.5 "Manrope", sans-serif;
}

.message-form textarea::placeholder { color: #595954; }

.message-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.message-actions > span {
  color: #565650;
  font: 400 8px/1 "Space Mono", monospace;
  white-space: nowrap;
}

.simulator-note {
  margin: 12px 0 0;
  color: #555550;
  font: 400 8px/1.5 "Space Mono", monospace;
  letter-spacing: 0.07em;
  text-align: right;
  text-transform: uppercase;
}

.signal-footer { margin-top: auto; }

@media (max-width: 640px) {
  .signal-main { padding-block: 48px; }
  .access-panel h1 { font-size: clamp(60px, 20vw, 88px); }
  .access-row { grid-template-columns: 1fr; }
  .simulator-intro { align-items: start; }
  .simulator-intro h1 { font-size: 58px; }
  .messages { height: 50vh; padding: 20px 14px; }
  .agent-state { gap: 12px; overflow-x: auto; white-space: nowrap; }
  .message { max-width: 90%; }
  .message-form { grid-template-columns: 1fr; gap: 8px; }
  .message-actions { justify-content: space-between; }
  .message-actions button { width: auto; }
  .simulator-note { text-align: left; }
}
