.bossai {
  padding: clamp(84px, 10vw, 132px) 0;
  background: #f7f9fc;
}

.bossai-shell {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(36px, 6vw, 84px);
  width: min(var(--page), calc(100% - var(--gutter) * 2));
  margin: 0 auto;
}

.bossai-kicker {
  margin: 0 0 16px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.bossai-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(36px, 4.5vw, 50px) !important;
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.1;
}

.bossai-lead {
  max-width: 460px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 15px !important;
  line-height: 1.75 !important;
}

.bossai-tabs {
  margin-top: 30px;
  border-top: 1px solid var(--hairline);
}

.bossai-tab {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 12px;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, padding 0.2s var(--ease);
}

.bossai-tab:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
}

.bossai-tab.is-active {
  padding-left: 16px;
  border-radius: 11px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 12px 30px -28px rgba(7, 30, 80, 0.3);
}

.bossai-tab__num {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.bossai-tab.is-active .bossai-tab__num {
  color: var(--brand);
}

.bossai-tab__copy strong,
.bossai-tab__copy small {
  display: block;
}

.bossai-tab__copy strong {
  color: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.bossai-tab__copy small {
  margin-top: 3px;
  color: var(--faint);
  font-size: 13px;
}

.bossai-tab__arrow {
  color: transparent;
  font-size: 17px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.bossai-tab.is-active .bossai-tab__arrow {
  color: var(--brand);
  transform: translateX(2px);
}

.bossai-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 25px;
}

.bossai-actions .btn {
  min-height: 40px;
  padding: 0 17px;
  font-size: 13.5px;
}

.bossai-foot {
  margin: 14px 0 0;
  color: var(--faint);
  font-size: 13px !important;
}

.bossai-stage {
  min-width: 0;
}

.bossai-window {
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 34px 75px -58px rgba(7, 30, 80, 0.4);
}

.bossai-window__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: #fbfcfe;
}

.bossai-window__dots {
  display: flex;
  gap: 5px;
}

.bossai-window__dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d8dde6;
}

.bossai-window__title {
  color: var(--muted);
  font-size: 12px;
}

.bossai-window__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef5ff;
  color: #2862d8;
  font-size: 12px;
}

.bossai-window__status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4d8df6;
}

.bossai-window__body {
  padding: clamp(18px, 2.8vw, 26px);
}

.bossai-prompt {
  padding: 14px 16px;
  border: 1px solid rgba(14, 82, 240, 0.1);
  border-radius: 13px;
  background: #f7faff;
}

.bossai-prompt__label {
  display: block;
  margin-bottom: 7px;
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.bossai-prompt p {
  margin: 0;
  color: var(--ink);
  font-size: 16px !important;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.55 !important;
}

.bossai-flow {
  margin-top: 22px;
}

.bossai-flow__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--hairline);
  color: var(--faint);
  font-size: 12px;
}

.bossai-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bossai-steps li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.055);
}

.bossai-steps li > span {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #eef5ff;
  color: #2862d8;
  font-family: var(--mono);
  font-size: 9px;
}

.bossai-steps li strong {
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 500;
}

.bossai-steps li em {
  color: #217a56;
  font-size: 11.5px;
  font-style: normal;
}

.bossai-result {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 12px;
  background: #ffffff;
}

.bossai-result__file {
  display: grid;
  place-items: center;
  width: 34px;
  height: 38px;
  border-radius: 6px;
  background: #fff1e9;
  color: #c75b2d;
  font-size: 8px;
  font-weight: 700;
}

.bossai-result__copy {
  min-width: 0;
}

.bossai-result__copy strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.bossai-result__copy small {
  display: block;
  margin-top: 3px;
  color: var(--faint);
  font-size: 11px;
}

.bossai-result__state {
  margin-left: auto;
  color: #217a56;
  font-size: 11px;
  white-space: nowrap;
}

.bossai-context {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.bossai-context__label {
  color: var(--faint);
  font-size: 11px;
}

.bossai-context b {
  padding: 4px 7px;
  border-radius: 6px;
  background: #f5f7fa;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 500;
}

.bossai-window.is-updated .bossai-prompt,
.bossai-window.is-updated .bossai-steps,
.bossai-window.is-updated .bossai-result {
  animation: bossaiFade 0.32s var(--ease);
}

@keyframes bossaiFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .bossai-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
  }

  .bossai-lead {
    max-width: 620px;
  }
}

@media (max-width: 600px) {
  .bossai-shell {
    width: calc(100% - 36px);
  }

  .bossai-copy h2 {
    font-size: 32px !important;
  }

  .bossai-tab {
    padding: 13px 8px;
  }

  .bossai-tab.is-active {
    padding-left: 12px;
  }

  .bossai-window__body {
    padding: 16px;
  }

  .bossai-prompt p {
    font-size: 15px !important;
  }

  .bossai-steps li {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .bossai-steps li em {
    grid-column: 2;
    margin-top: -4px;
  }
}
