:root {
  color-scheme: dark;
  --bg: #171717;
  --bg-2: #1e1f21;
  --panel: #26272b;
  --panel-soft: #232428;
  --border: #343438;
  --border-strong: #45464c;
  --text: #f2f2f3;
  --muted: #a4a4aa;
  --subtle: #75757c;
  --teal: #59e3d0;
  --green: #a7f36b;
  --amber: #ffcf66;
  --coral: #ff8f70;
  --ink: #111316;
  --radius: 18px;
  --safe-bottom: max(18px, env(safe-area-inset-bottom));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

.agent-shell {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  transition: width 220ms ease, border-color 220ms ease;
  background:
    radial-gradient(circle at 50% 14%, rgba(89, 227, 208, 0.08), transparent 22rem),
    radial-gradient(circle at 85% 72%, rgba(255, 207, 102, 0.055), transparent 20rem),
    linear-gradient(180deg, #181818 0%, #151719 100%);
}

.agent-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 100% 8px;
  opacity: 0.32;
}

.agent-shell:not(.is-workflow-active) .composer-area {
  display: none;
}

.agent-shell:not(.is-workflow-active) .back-button {
  display: none;
}

.agent-shell:not(.is-workflow-active) .conversation {
  padding-bottom: 72px;
}

.topbar {
  height: 64px;
  border-bottom: 1px solid #343438;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 3vw, 26px);
  position: relative;
  z-index: 5;
  background: #171717;
  backdrop-filter: blur(16px);
}

.brand-button {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid rgba(141, 189, 255, 0.9);
  background: rgba(20, 20, 20, 0.72);
  border-radius: 12px;
  color: #f2f2f3;
  cursor: pointer;
  min-width: 0;
  min-height: 42px;
  padding: 6px 10px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 0 1px rgba(141, 189, 255, 0.14);
  transition: border-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.brand-button:hover {
  opacity: 0.86;
  border-color: rgba(176, 210, 255, 1);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    0 0 0 1px rgba(141, 189, 255, 0.2),
    0 0 16px rgba(141, 189, 255, 0.14);
}

.brand-button:active {
  transform: scale(0.98);
}

.brand-logo {
  width: clamp(108px, 15vw, 140px);
  height: auto;
  display: block;
  flex: 0 1 auto;
}

.window-actions {
  display: inline-flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 18px);
}

.icon-button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.icon-button:hover {
  background: rgba(255, 255, 255, 0.07);
}

.icon-button:active {
  transform: scale(0.96);
}

.icon-button.active {
  background: transparent;
}

.icon-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--text);
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.conversation {
  position: relative;
  z-index: 1;
  min-height: calc(100svh - 64px);
  padding: 56px 28px 430px;
  overflow-y: auto;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  transition: transform 280ms ease, opacity 280ms ease, height 280ms ease, margin 280ms ease;
}

.hero.is-collapsed {
  opacity: 0;
  height: 0;
  margin: 0;
  overflow: hidden;
  transform: translateY(-18px) scale(0.96);
  pointer-events: none;
}

.hero h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.18;
  letter-spacing: 0;
  font-weight: 800;
}

.hero-subtitle {
  width: min(520px, 100%);
  margin: 0;
  color: #c2c7c9;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
}

.workflow-options {
  width: min(680px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.workflow-options button {
  position: relative;
  min-height: 108px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
    rgba(32, 36, 39, 0.78);
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  padding: 16px 16px 16px 18px;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.workflow-options button::before {
  content: "";
  position: absolute;
  inset: 16px auto 16px 0;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--teal), var(--amber));
  opacity: 0.62;
}

.workflow-options button:first-child {
  grid-column: span 2;
  background:
    radial-gradient(circle at 92% 20%, rgba(89, 227, 208, 0.12), transparent 11rem),
    linear-gradient(145deg, rgba(89, 227, 208, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(32, 36, 39, 0.82);
}

.workflow-options button:hover {
  background:
    linear-gradient(145deg, rgba(89, 227, 208, 0.11), rgba(255, 255, 255, 0.02)),
    rgba(32, 36, 39, 0.9);
  border-color: rgba(89, 227, 208, 0.36);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 14px 34px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.workflow-options button:active {
  transform: scale(0.99);
}

.workflow-options button:focus-visible {
  outline: 2px solid rgba(89, 227, 208, 0.9);
  outline-offset: 3px;
}

.workflow-options span {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.15;
}

.workflow-options small {
  color: #b8c0c2;
  font-size: 13px;
  line-height: 1.35;
}

.agent-logo-button {
  width: 220px;
  height: 220px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 180ms ease, filter 180ms ease;
}

.agent-logo-button:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.agent-logo-button:active {
  transform: scale(0.98);
}

.agent-logo-button:focus-visible {
  outline: 2px solid rgba(89, 227, 208, 0.9);
  outline-offset: 8px;
}

.agent-logo {
  width: 220px;
  height: 220px;
  position: relative;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  perspective: 800px;
  animation: floatLogo 4.8s ease-in-out infinite;
}

.logo-halo {
  position: absolute;
  width: 118px;
  height: 118px;
  border-radius: 28px;
  background:
    conic-gradient(from 120deg, rgba(255, 140, 174, 0.8), rgba(142, 247, 255, 0.88), rgba(109, 92, 255, 0.86), rgba(255, 176, 136, 0.76), rgba(255, 140, 174, 0.8));
  filter: blur(24px);
  opacity: 0.95;
  animation: spinSlow 8s linear infinite, breathe 3s ease-in-out infinite;
}

.cube-wrap {
  position: relative;
  width: 126px;
  height: 126px;
  transform-style: preserve-3d;
  transform: rotateX(58deg) rotateZ(45deg);
  animation: logoTilt 7s ease-in-out infinite;
}

.cube-face {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.14), 0 0 18px rgba(109, 92, 255, 0.28);
  background:
    radial-gradient(circle at 45% 35%, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.18) 32%, transparent 48%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(142, 247, 255, 0.42) 45%, rgba(109, 92, 255, 0.36));
  backdrop-filter: blur(12px);
}

.face-front {
  transform: translateZ(22px);
  border-radius: 2px;
}

.face-right {
  transform: rotateY(90deg) translateZ(64px);
  transform-origin: right;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.42), rgba(255, 140, 174, 0.52), rgba(109, 92, 255, 0.42));
  opacity: 0.82;
}

.face-top {
  transform: rotateX(90deg) translateZ(64px);
  transform-origin: top;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.54), rgba(142, 247, 255, 0.48), rgba(255, 176, 136, 0.48));
  opacity: 0.88;
}

.core-ring {
  position: absolute;
  width: 82px;
  height: 82px;
  left: 22px;
  top: 22px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(142, 247, 255, 0.45) 0 18%, transparent 19%), rgba(255, 130, 145, 0.5);
  box-shadow: 0 0 30px rgba(255, 140, 174, 0.44);
  transform: translateZ(40px);
  opacity: 0.82;
}

.diamond {
  position: absolute;
  left: 35px;
  top: 35px;
  width: 56px;
  height: 56px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.92) 0 10%, rgba(172, 255, 248, 0.62) 10% 46%, rgba(95, 90, 255, 0.62) 100%);
  transform: translateZ(66px) rotate(45deg);
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow: 0 0 22px rgba(142, 247, 255, 0.54);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.diamond-back {
  transform: translateZ(64px) rotate(45deg) scale(1.22);
  opacity: 0.44;
  background: rgba(255,255,255,0.22);
}

.diamond-front {
  animation: diamondShine 2.6s ease-in-out infinite;
}

.core-line {
  position: absolute;
  width: 1px;
  height: 78px;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.85), transparent);
  left: 63px;
  top: 25px;
  transform: translateZ(76px);
  opacity: 0.75;
}

.core-line-b {
  transform: translateZ(77px) rotate(90deg);
}

.core-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  left: 58px;
  top: 58px;
  transform: translateZ(82px);
  background: #f5ffff;
  box-shadow: 0 0 18px #8ef7ff;
}

.pixel {
  position: absolute;
  background: linear-gradient(135deg, #7f7aff, #4a32d7 48%, #1b1744);
  box-shadow: 0 0 20px rgba(109, 92, 255, 0.45);
  opacity: 0.95;
  animation: pixelFloat 3.8s ease-in-out infinite;
}

.pixel-1 {
  width: 14px;
  height: 42px;
  left: 42px;
  top: 58px;
  animation-delay: -0.4s;
}

.pixel-2 {
  width: 48px;
  height: 14px;
  left: 32px;
  top: 102px;
  animation-delay: -1.1s;
}

.pixel-3 {
  width: 18px;
  height: 56px;
  left: 28px;
  top: 116px;
  animation-delay: -1.9s;
}

.pixel-4 {
  width: 20px;
  height: 40px;
  right: 44px;
  top: 70px;
  animation-delay: -0.7s;
}

.pixel-5 {
  width: 52px;
  height: 14px;
  right: 32px;
  bottom: 54px;
  animation-delay: -1.5s;
}

.pixel-6 {
  width: 13px;
  height: 30px;
  right: 28px;
  bottom: 82px;
  animation-delay: -2.3s;
}

.messages {
  width: min(780px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.message {
  max-width: min(74%, 580px);
  border-radius: 22px;
  padding: 14px 17px;
  font-size: 16px;
  line-height: 1.48;
  white-space: pre-wrap;
  animation: messageIn 260ms ease both;
}

.message.user {
  align-self: flex-end;
  background: #34353a;
  color: var(--text);
  border-bottom-right-radius: 8px;
}

.message.agent {
  align-self: flex-start;
  background: #202427;
  border: 1px solid #333b3e;
  color: #e8e8eb;
  border-bottom-left-radius: 8px;
}

.message.agent.typing {
  display: flex;
  gap: 10px;
  width: min(100%, 560px);
  max-width: min(100%, 560px);
  align-items: center;
  border: 0;
  background: #171717;
  box-shadow: none;
  padding: 15px 0;
}

.thinking-sparkle {
  position: relative;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  animation: thinkingSparklePulse 1.6s ease-in-out infinite;
}

.thinking-sparkle::before,
.thinking-sparkle::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: linear-gradient(135deg, #f369d2 0%, #c064ff 48%, #ff985d 100%);
  clip-path: polygon(50% 0, 61% 35%, 100% 50%, 61% 65%, 50% 100%, 39% 65%, 0 50%, 39% 35%);
}

.thinking-sparkle::after {
  inset: 6px;
  background: #171717;
}

.thinking-copy {
  min-width: 0;
  font-size: clamp(18px, 2.6vw, 22px);
  font-weight: 800;
  line-height: 1.2;
}

.thinking-agent {
  background: linear-gradient(90deg, #e16dff 0%, #ff71bd 56%, #ff9b59 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: thinkingTextShimmer 2.4s ease-in-out infinite;
}

.thinking-action {
  color: #ff985d;
  animation: thinkingActionPulse 1.2s ease-in-out infinite;
}

.message.onboarding-card,
.message.onboarding-result,
.message.automation-test-result {
  width: min(100%, 720px);
  max-width: min(100%, 720px);
  padding: 0;
  white-space: normal;
  overflow: hidden;
}

.onboarding-launcher,
.onboarding-report {
  padding: 18px;
}

.onboarding-launcher h2,
.onboarding-report h2,
.onboarding-report h3,
.onboarding-report h4,
.onboarding-launcher p,
.onboarding-report p {
  margin: 0;
}

.onboarding-launcher {
  display: grid;
  gap: 14px;
}

.onboarding-launcher h2,
.onboarding-report h2 {
  font-size: 20px;
  line-height: 1.2;
}

.onboarding-launcher p,
.onboarding-report p,
.onboarding-report li,
.report-table span {
  color: #d7dcde;
}

.url-review-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.url-review-form input {
  min-width: 0;
  height: 44px;
  border: 1px solid #3d474a;
  border-radius: 8px;
  background: #181c1f;
  color: var(--text);
  outline: 0;
  padding: 0 12px;
}

.url-review-form input:focus {
  border-color: rgba(89, 227, 208, 0.72);
  box-shadow: 0 0 0 1px rgba(89, 227, 208, 0.16);
}

.url-review-form button,
.report-actions button {
  min-height: 42px;
  border: 1px solid rgba(89, 227, 208, 0.34);
  border-radius: 8px;
  background: rgba(89, 227, 208, 0.1);
  color: #efffff;
  cursor: pointer;
  font-weight: 750;
  padding: 0 14px;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.url-review-form button:hover,
.report-actions button:hover {
  background: rgba(89, 227, 208, 0.16);
  border-color: rgba(89, 227, 208, 0.58);
}

.url-review-form button:active,
.report-actions button:active {
  transform: scale(0.98);
}

.workflow-note,
.report-note,
.report-meta,
.section-intro {
  color: #aeb6b8;
  font-size: 14px;
}

.onboarding-report {
  display: grid;
  gap: 18px;
}

.report-header,
.report-summary,
.report-section {
  display: grid;
  gap: 10px;
}

.report-header {
  padding-bottom: 16px;
  border-bottom: 1px solid #394245;
}

.report-eyebrow {
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.report-section {
  border-top: 1px solid #333b3e;
  padding-top: 16px;
}

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

.answer-row {
  display: grid;
  gap: 7px;
  border-left: 3px solid rgba(89, 227, 208, 0.42);
  padding-left: 12px;
}

.answer-row h4 {
  color: #f3f7f7;
  font-size: 15px;
}

.status-pill {
  width: fit-content;
  border: 1px solid #465154;
  border-radius: 999px;
  color: #e9eeee;
  font-size: 12px;
  font-weight: 750;
  padding: 3px 8px;
  text-transform: capitalize;
}

.status-pill.pre-filled {
  border-color: rgba(167, 243, 107, 0.42);
  background: rgba(167, 243, 107, 0.1);
  color: #dffff0;
}

.status-pill.needs-client,
.status-pill.needs-confirmation {
  border-color: rgba(255, 207, 102, 0.48);
  background: rgba(255, 207, 102, 0.09);
  color: #fff4ce;
}

.status-pill.next-step {
  border-color: rgba(142, 247, 255, 0.38);
  background: rgba(142, 247, 255, 0.08);
  color: #e4fdff;
}

.status-pill.passed {
  border-color: rgba(167, 243, 107, 0.55);
  background: rgba(167, 243, 107, 0.14);
  color: #eaffe0;
}

.status-pill.failed {
  border-color: rgba(255, 143, 112, 0.55);
  background: rgba(255, 143, 112, 0.14);
  color: #ffe6df;
}

.notes-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: #d7dcde;
  font-size: 14px;
  line-height: 1.5;
}

.attachments-section {
  gap: 12px;
}

.launcher-attachments {
  display: grid;
  gap: 10px;
}

.attachment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.attachment-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 240px;
  border: 1px solid #3d474a;
  border-radius: 8px;
  background: #181c1f;
  padding: 6px 8px;
}

.attachment-thumb {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.attachment-type-badge {
  flex-shrink: 0;
  border: 1px solid #465154;
  border-radius: 6px;
  color: #e9eeee;
  font-size: 11px;
  font-weight: 750;
  padding: 3px 6px;
}

.attachment-name {
  overflow: hidden;
  color: #d7dcde;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-remove {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: #aeb6b8;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  padding: 0 2px;
}

.attachment-remove:hover {
  color: #ffe6df;
}

.attachment-upload-row {
  display: flex;
}

.attachment-upload-label {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 38px;
  border: 1px dashed rgba(89, 227, 208, 0.4);
  border-radius: 8px;
  background: transparent;
  color: #cdece7;
  cursor: pointer;
  padding: 0 14px;
  font-weight: 700;
  font-size: 14px;
  transition: background 160ms ease, border-color 160ms ease;
}

.attachment-upload-label:hover {
  background: rgba(89, 227, 208, 0.08);
}

.attachment-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.role-task-groups {
  display: grid;
  gap: 16px;
}

.role-task-group {
  display: grid;
  gap: 10px;
}

.role-task-owner {
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.goal-cards {
  gap: 14px;
}

.goal-card {
  border-left-color: rgba(255, 207, 102, 0.5);
}

.goal-card-line {
  margin: 0;
  font-size: 14px;
}

.goal-card-line strong {
  color: #d7dcde;
}

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

.test-step-row {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 1.3fr auto;
  gap: 8px;
  align-items: center;
}

.test-step-row select,
.test-step-row input {
  min-width: 0;
  height: 42px;
  border: 1px solid #3d474a;
  border-radius: 8px;
  background: #181c1f;
  color: var(--text);
  outline: 0;
  padding: 0 10px;
  font-size: 14px;
}

.test-step-row select:focus,
.test-step-row input:focus {
  border-color: rgba(89, 227, 208, 0.72);
  box-shadow: 0 0 0 1px rgba(89, 227, 208, 0.16);
}

.test-step-remove {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 143, 112, 0.4);
  border-radius: 8px;
  background: rgba(255, 143, 112, 0.1);
  color: #ffe6df;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition: background 160ms ease, border-color 160ms ease;
}

.test-step-remove:hover {
  background: rgba(255, 143, 112, 0.18);
}

.test-step-add {
  justify-self: start;
  min-height: 38px;
  border: 1px dashed rgba(89, 227, 208, 0.4);
  border-radius: 8px;
  background: transparent;
  color: #cdece7;
  cursor: pointer;
  padding: 0 14px;
  font-weight: 700;
  transition: background 160ms ease, border-color 160ms ease;
}

.test-step-add:hover {
  background: rgba(89, 227, 208, 0.08);
}

.automation-test-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.automation-test-form input[type='url'] {
  height: 44px;
}

.test-screenshot {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #394245;
  display: block;
}

.qa-generate-section {
  display: grid;
  gap: 10px;
  border: 1px solid #333b3e;
  border-radius: 10px;
  padding: 14px;
  background: rgba(89, 227, 208, 0.04);
}

.qa-generate-section h3 {
  margin: 0;
  font-size: 15px;
}

.qa-generate-section textarea,
.qa-generate-section input[type='url'] {
  width: 100%;
  min-height: 44px;
  border: 1px solid #3d474a;
  border-radius: 8px;
  background: #181c1f;
  color: var(--text);
  outline: 0;
  padding: 10px 12px;
  font-size: 14px;
  resize: vertical;
}

.qa-generate-section textarea:focus,
.qa-generate-section input[type='url']:focus {
  border-color: rgba(89, 227, 208, 0.72);
  box-shadow: 0 0 0 1px rgba(89, 227, 208, 0.16);
}

.qa-file-label {
  color: #b8c0c2;
  font-size: 13px;
}

.qa-generate-section input[type='file'] {
  color: #d7dcde;
  font-size: 13px;
}

.qa-reference-preview {
  max-width: 160px;
  max-height: 160px;
  border-radius: 8px;
  border: 1px solid #394245;
  object-fit: cover;
}

.qa-reference-preview-large {
  max-width: 320px;
  width: auto;
}

.qa-generate-button {
  justify-self: start;
  min-height: 40px;
  border: 1px solid rgba(89, 227, 208, 0.34);
  border-radius: 8px;
  background: rgba(89, 227, 208, 0.1);
  color: #efffff;
  cursor: pointer;
  font-weight: 750;
  padding: 0 14px;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.qa-generate-button:hover {
  background: rgba(89, 227, 208, 0.16);
  border-color: rgba(89, 227, 208, 0.58);
}

.qa-generate-button:disabled {
  opacity: 0.6;
  cursor: default;
}

.qa-verdict {
  width: fit-content;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  padding: 5px 12px;
  margin: 4px 0 0;
}

.qa-verdict.passed {
  border: 1px solid rgba(167, 243, 107, 0.55);
  background: rgba(167, 243, 107, 0.14);
  color: #eaffe0;
}

.qa-verdict.failed {
  border: 1px solid rgba(255, 143, 112, 0.55);
  background: rgba(255, 143, 112, 0.14);
  color: #ffe6df;
}

.report-table {
  display: grid;
  border: 1px solid #394245;
  border-radius: 8px;
  overflow: hidden;
}

.table-row {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr 1.35fr;
  border-top: 1px solid #333b3e;
}

.table-row:first-child {
  border-top: 0;
}

.table-row span {
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 9px;
  border-left: 1px solid #333b3e;
  font-size: 13px;
}

.table-row span:first-child {
  border-left: 0;
}

.table-head {
  background: #1b2023;
}

.table-head span {
  color: #f5f8f8;
  font-weight: 800;
}

.print-report {
  display: none;
}

.composer-area {
  position: fixed;
  z-index: 6;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 26px var(--safe-bottom);
  background: linear-gradient(180deg, transparent 0%, rgba(23,23,23,0.92) 16%, #171717 44%);
}

.suggestions {
  width: min(690px, 100%);
  margin: 0 0 28px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: opacity 240ms ease, transform 240ms ease, max-height 260ms ease, margin 260ms ease;
  overflow: hidden;
}

.suggestions.is-hidden {
  opacity: 0;
  transform: translateY(16px);
  max-height: 0;
  margin-bottom: 0;
  pointer-events: none;
}

.suggestions p {
  margin: 0 0 6px;
  color: #c9c9cd;
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.suggestions button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 36px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: rgba(23, 23, 23, 0.54);
  color: #eeeeef;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
  letter-spacing: 0;
  padding: 5px 10px;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.suggestions button:hover {
  background: rgba(89, 227, 208, 0.08);
  border-color: rgba(89, 227, 208, 0.36);
  transform: translateX(3px);
}

.suggestion-icon {
  width: 25px;
  height: 20px;
  position: relative;
  flex: 0 0 25px;
}

.suggestion-icon::before,
.suggestion-icon::after {
  content: "";
  position: absolute;
  border: 2px solid var(--teal);
  border-radius: 4px;
}

.suggestion-icon::before {
  width: 17px;
  height: 13px;
  left: 0;
  top: 0;
}

.suggestion-icon::after {
  width: 17px;
  height: 13px;
  right: 0;
  bottom: 0;
  background: var(--bg);
}

.composer {
  width: 100%;
  min-height: 184px;
  border-radius: var(--radius);
  background: #28292d;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 18px 18px 16px;
  box-shadow: 0 -10px 36px rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.composer:focus-within {
  border-color: rgba(255, 255, 255, 0.11);
  box-shadow: 0 -10px 36px rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(89, 227, 208, 0.18);
}

textarea {
  flex: 1;
  min-height: 104px;
  max-height: 200px;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: clamp(22px, 3.2vw, 28px);
  line-height: 1.3;
  letter-spacing: 0;
  padding: 0;
}

textarea::placeholder {
  color: #8c8c93;
  opacity: 1;
}

.send-button {
  align-self: flex-end;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  color: var(--text);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, opacity 180ms ease;
}

.send-button:hover {
  background: rgba(255, 255, 255, 0.07);
}

.send-button:active {
  transform: scale(0.94);
}

.send-button:disabled {
  opacity: 0.45;
  cursor: default;
}

.send-button svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.disclaimer {
  margin: 8px 0 0;
  color: #9d9da3;
  text-align: center;
  font-size: clamp(15px, 2.2vw, 20px);
  letter-spacing: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes floatLogo {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-14px) scale(1.02);
  }
}

@keyframes logoTilt {
  0%, 100% {
    transform: rotateX(58deg) rotateZ(45deg) rotateY(0deg);
  }
  50% {
    transform: rotateX(53deg) rotateZ(49deg) rotateY(8deg);
  }
}

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

@keyframes breathe {
  0%, 100% {
    opacity: 0.72;
    scale: 0.96;
  }
  50% {
    opacity: 1;
    scale: 1.08;
  }
}

@keyframes diamondShine {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.35);
  }
}

@keyframes pixelFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes thinkingSparklePulse {
  0%, 100% {
    filter: drop-shadow(0 0 0 rgba(243, 105, 210, 0));
    transform: scale(1) rotate(0deg);
  }
  50% {
    filter: drop-shadow(0 0 14px rgba(243, 105, 210, 0.45));
    transform: scale(1.12) rotate(7deg);
  }
}

@keyframes thinkingTextShimmer {
  0%, 100% {
    filter: saturate(1);
  }
  50% {
    filter: saturate(1.28) brightness(1.08);
  }
}

@keyframes thinkingActionPulse {
  0%, 100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

@keyframes messageIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (min-width: 760px) {
  .agent-shell {
    width: min(760px, 100%);
    margin: 0 auto;
    border-left: 1px solid #2c2c30;
    border-right: 1px solid #2c2c30;
  }

  .composer-area {
    left: 50%;
    width: min(760px, 100%);
    transform: translateX(-50%);
  }

  .agent-shell.is-expanded {
    width: min(1120px, 100%);
    border-color: #3d3d43;
  }

  .agent-shell.is-expanded .composer-area {
    width: min(1120px, 100%);
  }

  .agent-shell.is-expanded .messages {
    width: min(900px, 100%);
  }

  .agent-shell.is-expanded .message.onboarding-card,
  .agent-shell.is-expanded .message.onboarding-result,
  .agent-shell.is-expanded .message.automation-test-result {
    max-width: min(100%, 900px);
    width: min(100%, 900px);
  }
}

@media (max-width: 560px) {
  .topbar {
    height: 56px;
    padding: 0 12px;
  }

  .brand-button {
    min-height: 38px;
    border-radius: 10px;
    padding: 5px 8px;
  }

  .brand-logo {
    width: clamp(88px, 30vw, 116px);
  }

  .window-actions {
    gap: 6px;
  }

  .icon-button {
    width: 30px;
    height: 30px;
  }

  .icon-button svg {
    width: 19px;
    height: 19px;
  }

  .conversation {
    min-height: calc(100svh - 56px);
    padding-top: 48px;
    padding-bottom: 390px;
  }

  .agent-logo-button,
  .agent-logo {
    width: 180px;
    height: 180px;
  }

  .agent-logo {
    scale: 0.88;
  }

  .workflow-options,
  .workflow-options button:first-child {
    grid-template-columns: 1fr;
    grid-column: auto;
  }

  .workflow-options button {
    min-height: 88px;
  }

  .composer-area {
    padding-left: 16px;
    padding-right: 16px;
  }

  .suggestions {
    margin-left: 6px;
    margin-bottom: 20px;
    gap: 10px;
  }

  .composer {
    min-height: 164px;
  }

  .message {
    max-width: 88%;
  }

  .message.onboarding-card,
  .message.onboarding-result,
  .message.automation-test-result {
    max-width: 100%;
    width: 100%;
  }

  .url-review-form {
    grid-template-columns: 1fr;
  }

  .test-step-row {
    grid-template-columns: 1fr;
  }

  .table-row {
    grid-template-columns: 1fr;
  }

  .table-row span {
    border-left: 0;
    border-top: 1px solid #333b3e;
  }

  .table-row span:first-child {
    border-top: 0;
  }
}

@media print {
  :root {
    color-scheme: light;
  }

  body {
    background: #fff;
    color: #111;
  }

  body > *:not(.print-report) {
    display: none !important;
  }

  .print-report {
    display: block !important;
    padding: 24px;
    background: #fff;
    color: #111;
  }

  .print-report .onboarding-report {
    display: block;
    max-width: none;
    padding: 0;
  }

  .print-report .report-header,
  .print-report .report-summary,
  .print-report .report-section {
    break-inside: avoid;
    margin-bottom: 18px;
  }

  .print-report h2,
  .print-report h3,
  .print-report h4,
  .print-report p,
  .print-report li,
  .print-report span,
  .print-report strong {
    color: #111 !important;
  }

  .print-report .report-section,
  .print-report .report-header {
    border-color: #d7d7d7;
  }

  .print-report .answer-row {
    border-left-color: #777;
  }

  .print-report .report-table {
    border-color: #ccc;
  }

  .print-report .table-row,
  .print-report .table-row span {
    border-color: #ddd;
  }

  .print-report .table-head {
    background: #f2f2f2;
  }

  .print-report .status-pill {
    background: #f6f6f6;
    border-color: #aaa;
  }

  .print-report .attachment-upload-row {
    display: none;
  }

  .print-report .attachment-chip {
    border-color: #ccc;
    background: #fafafa;
  }

  .print-report .attachment-name {
    color: #111 !important;
  }
}
