/* Product UI previews built from interface components, not screenshots. */
.archai-case,
.reply-case,
.investment-case {
  background: #0c1211;
}

.case-layout,
.case-layout.reverse {
  grid-template-columns: 0.84fr 1.16fr;
  gap: clamp(42px, 7vw, 120px);
}

.case-preview {
  display: flex;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 0;
  padding: clamp(13px, 2vw, 20px);
  gap: clamp(9px, 1.35vw, 16px);
  border-color: #36574d;
  background: #0a1110;
  cursor: default;
  isolation: isolate;
}

.case-preview::after {
  content: none;
}

.case-preview div {
  position: static;
  left: auto;
  bottom: auto;
  display: block;
  color: inherit;
}

.case-preview span,
.case-preview b,
.case-preview p,
.case-preview em,
.case-preview i {
  position: static;
  margin: 0;
}

.case-preview:hover {
  border-color: #65d6b9;
  box-shadow: 0 35px 105px #000b;
}

.preview-bar {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  min-height: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #2a413a;
}

.preview-bar span,
.preview-bar b {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.11em;
}

.preview-bar span {
  color: #77e9cb;
}

.preview-bar b {
  color: #9eafa9;
}

/* ArchAI Studio */
.archai-preview {
  flex-direction: column;
}

.archai-input-row {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.asset-card {
  display: grid !important;
  gap: 8px;
  min-height: 70px;
  padding: 8px;
  border: 1px solid #294139;
  background: #101917;
}

.asset-card i {
  display: block;
  height: 33px;
  border: 1px solid #568a79;
  background: linear-gradient(135deg, transparent 48%, #477465 49% 51%, transparent 52%), linear-gradient(45deg, transparent 48%, #477465 49% 51%, transparent 52%);
}

.asset-card.sketch i {
  border-style: dashed;
  background: repeating-linear-gradient(156deg, transparent 0 7px, #507467 8px 9px, transparent 10px 16px);
}

.asset-card.brief i {
  border-color: #6b7151;
  background: linear-gradient(#676d4d 0 0) 7px 8px / 70% 1px no-repeat, linear-gradient(#676d4d 0 0) 7px 16px / 54% 1px no-repeat, linear-gradient(#676d4d 0 0) 7px 24px / 64% 1px no-repeat;
}

.asset-card span {
  color: #8da099;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.archai-agent-flow {
  display: grid !important;
  grid-template-columns: 1fr 20px 1fr 20px 1fr;
  align-items: center;
  gap: 4px;
  min-height: 72px;
}

.agent-node {
  display: grid !important;
  grid-template-columns: 20px 1fr;
  align-items: center;
  gap: 7px;
  min-height: 52px;
  padding: 8px;
  border: 1px solid #38594f;
  background: #0d1714;
}

.agent-node.active {
  border-color: #66d7b9;
  background: #103025;
}

.agent-node b {
  color: #68e3c2;
  font-size: 9px;
}

.agent-node span {
  color: #d9e8e2;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.35;
}

.archai-agent-flow > i {
  display: block;
  width: 100%;
  height: 1px;
  background: #4a776a;
}

.archai-output {
  display: grid !important;
  grid-template-columns: 1.05fr 1.5fr auto;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 10px;
  border: 1px solid #486d60;
  background: #10211c;
}

.archai-output > div:first-child {
  display: grid !important;
  gap: 4px;
}

.archai-output span,
.archai-output em {
  color: #82a49a;
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.07em;
}

.archai-output b {
  color: #ecf8f3;
  font-size: 11px;
}

.film-track {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
}

.film-track i {
  display: block;
  aspect-ratio: 16 / 9;
  border: 1px solid #5a8d7d;
  background: linear-gradient(135deg, #2a5a4c, #1b302b);
}

.archai-output em {
  color: #d8c06b;
  white-space: nowrap;
}

/* AI reply lab */
.reply-preview {
  flex-direction: column;
}

.reply-body {
  display: grid !important;
  grid-template-columns: 28% 1fr;
  flex: 1;
  min-height: 0;
  border: 1px solid #2b443c;
  background: #0d1714;
}

.reply-body aside {
  display: grid;
  align-content: start;
  gap: 8px 7px;
  padding: 12px 9px;
  border-right: 1px solid #2a4039;
  background: #0a1210;
  grid-template-columns: 16px 1fr;
}

.reply-body aside b {
  color: #67dcbc;
  font-size: 9px;
}

.reply-body aside span {
  color: #a6b7b1;
  font-size: 9px;
  line-height: 1.35;
}

.reply-workspace {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 12px;
}

.reply-profile {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.reply-profile > span {
  color: #73e5c6;
  font-size: 10px;
  font-weight: 700;
}

.reply-profile > div {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.reply-profile i {
  padding: 3px 5px;
  border: 1px solid #355a4e;
  border-radius: 2px;
  color: #8eb1a4;
  font-size: 8px;
  font-style: normal;
}

.reply-comment {
  padding: 9px;
  border-left: 2px solid #64dfbf;
  background: #13211c;
  color: #e4f0eb;
  font-size: 10px;
  line-height: 1.5;
}

.reply-options {
  display: grid !important;
  gap: 5px;
}

.reply-options > div {
  display: grid !important;
  grid-template-columns: 7px 1fr auto;
  align-items: center;
  gap: 7px;
  padding: 7px;
  border: 1px solid #29433a;
  color: #aebeb8;
}

.reply-options > div.selected {
  border-color: #63d8ba;
  background: #103027;
}

.reply-options i {
  width: 6px;
  height: 6px;
  border: 1px solid #6d9085;
  border-radius: 50%;
}

.reply-options .selected i {
  border-color: #70e6c5;
  background: #70e6c5;
}

.reply-options span {
  overflow: hidden;
  color: inherit;
  font-size: 9px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.reply-options b {
  color: #75e8c8;
  font-size: 8px;
  font-weight: 600;
  white-space: nowrap;
}

/* Investment OS */
.investment-preview {
  flex-direction: column;
}

.market-strip {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.market-strip > div {
  display: grid !important;
  gap: 6px;
  padding: 9px;
  border: 1px solid #2d453e;
  background: #0d1715;
}

.market-strip span,
.tomorrow-plan p,
.validation-card p {
  color: #7e9790;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.market-strip b {
  color: #dbeae4;
  font-size: 10px;
}

.market-strip b i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 4px;
  border-radius: 50%;
  background: #dbbe64;
}

.investment-panels {
  display: grid !important;
  grid-template-columns: 1.25fr 0.75fr;
  flex: 1;
  gap: 8px;
  min-height: 0;
}

.tomorrow-plan,
.validation-card {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 11px;
  border: 1px solid #304a42;
  background: #0d1714;
}

.tomorrow-plan > div {
  display: flex !important;
  justify-content: space-between;
  gap: 6px;
  padding: 7px 0;
  border-top: 1px solid #273c35;
}

.tomorrow-plan span {
  color: #a1b4ad;
  font-size: 9px;
}

.tomorrow-plan b {
  color: #79e4c6;
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}

.validation-card {
  justify-items: center;
  text-align: center;
}

.validation-ring {
  display: grid !important;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 2px 0;
  border: 1px solid #70d8bb;
  border-radius: 50%;
  background: #123126;
}

.validation-ring b {
  color: #79e9c8;
  font-size: 16px;
}

.validation-card > span {
  color: #d6e5df;
  font-size: 9px;
}

.validation-card strong {
  color: #87a198;
  font-size: 8px;
  font-weight: 500;
}

.investment-footer {
  display: flex !important;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  color: #7fa89a;
}

.investment-footer span,
.investment-footer b {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.investment-footer b {
  color: #68e2c1;
}

.investment-footer i {
  flex: 1;
  height: 1px;
  background: #3b6658;
}

@media (max-width: 1000px) {
  .case-layout,
  .case-layout.reverse {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .case-preview {
    padding: 12px;
  }

  .archai-agent-flow {
    grid-template-columns: 1fr 11px 1fr 11px 1fr;
  }

  .archai-output {
    grid-template-columns: 1fr 1.1fr;
  }

  .archai-output em {
    display: none;
  }

  .reply-body aside {
    padding: 10px 7px;
  }

  .market-strip > div,
  .tomorrow-plan,
  .validation-card {
    padding: 8px;
  }
}
