/* Demo blocks: steps, balance, workspace — extracted from style.css */

/* ── Steps (three-step interactive preview) ── */
.steps {
  padding: var(--section-gap) 0;
  background: #121113;
}

.steps__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}

.steps__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 560px;
}

.steps__eyebrow,
.steps__eyebrow-muted {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  line-height: 22px;
}

.steps__eyebrow {
  color: var(--color-cream);
}

.steps__eyebrow-muted {
  color: #a6a6a6;
}

.steps__stage {
  width: 100%;
  max-width: 1040px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.steps__frame {
  position: relative;
  width: 100%;
  height: 542px;
  padding: 10px;
  border-radius: 24px;
  border: 1px solid rgba(253, 255, 247, 0.14);
  background:
    radial-gradient(ellipse 55% 35% at 50% 0%, rgba(103, 250, 176, 0.1), transparent 55%),
    radial-gradient(ellipse 40% 30% at 85% 100%, rgba(180, 173, 234, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(253, 255, 247, 0.04), transparent 28%),
    rgba(0, 0, 0, 0.5);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(253, 255, 247, 0.08);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
}

.steps__panels {
  position: relative;
  height: 420px;
  flex: 0 0 420px;
  border-radius: 16px;
  border: 1px solid rgba(253, 255, 247, 0.06);
  background: #181719;
  overflow: hidden;
  display: grid;
}

.steps__panel {
  grid-area: 1 / 1;
  height: 420px;
  max-height: 420px;
  border-radius: 12px;
  border: 1px solid rgba(253, 255, 247, 0.14);
  background: #181719;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
  transition: opacity 420ms cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.steps__panel.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.steps__panel[hidden] {
  display: flex !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.steps-form {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  box-sizing: border-box;
}

.steps-form__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 26.4px;
  letter-spacing: 0.16px;
  color: var(--color-cream);
}

.steps-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 4px;
}

.steps-form__label {
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 17.55px;
  letter-spacing: 0.16px;
  color: #9a9894;
}

.steps-form__input {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid rgba(253, 255, 247, 0.1);
  background: #121113;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 19.6px;
  letter-spacing: 0.16px;
  color: var(--color-cream);
}

.steps-form__input--muted {
  color: #9a9894;
  letter-spacing: 1.68px;
}

.steps-form__caret {
  display: inline-block;
  width: 1px;
  height: 14px;
  margin-left: 1px;
  background: #67fab0;
  animation: steps-caret 1s steps(1) infinite;
}

@keyframes steps-caret {
  50% {
    opacity: 0;
  }
}

.steps-form__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 8px;
  background: #d9d9d9;
  color: #121113;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.steps-form__submit.is-press {
  transform: scale(0.97);
  filter: brightness(1.08);
  box-shadow: 0 0 0 1px rgba(253, 255, 247, 0.2), 0 0 24px rgba(103, 250, 176, 0.28);
}

.steps-form__hint {
  margin: 2px 0 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 17.55px;
  color: #6e6c6a;
}

.steps-balance,
.steps-app {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.steps-balance__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #9a9894;
  font-size: 13px;
}

.steps-balance__row strong {
  color: var(--color-cream);
  font-weight: 600;
}

.steps-balance__amount {
  padding: 14px 12px;
  border-radius: 8px;
  border: 1px solid rgba(253, 255, 247, 0.1);
  background: #121113;
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--color-cream);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.steps-balance__amount.is-pop {
  border-color: rgba(103, 250, 176, 0.35);
  box-shadow: 0 0 0 1px rgba(103, 250, 176, 0.12), 0 0 20px rgba(103, 250, 176, 0.16);
  animation: steps-amount-pop 320ms ease;
}

@keyframes steps-amount-pop {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1);
  }
}

.steps-balance__chips {
  display: flex;
  gap: 8px;
}

.steps-balance__chips span {
  flex: 1;
  text-align: center;
  padding: 8px 6px;
  border-radius: 8px;
  border: 1px solid rgba(253, 255, 247, 0.1);
  color: #9a9894;
  font-size: 12px;
  transition:
    border-color 220ms ease,
    color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.steps-balance__chips span.is-active {
  border-color: rgba(103, 250, 176, 0.45);
  color: #67fab0;
  background: rgba(103, 250, 176, 0.08);
  box-shadow: 0 0 18px rgba(103, 250, 176, 0.18);
  transform: translateY(-1px);
}

.steps-app__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(253, 255, 247, 0.1);
  background: #121113;
  transition:
    border-color 260ms ease,
    background 260ms ease,
    box-shadow 260ms ease,
    transform 260ms ease;
}

.steps-app__item.is-hover {
  border-color: rgba(103, 250, 176, 0.4);
  background: rgba(103, 250, 176, 0.07);
  box-shadow: 0 0 22px rgba(103, 250, 176, 0.16);
  transform: translateY(-1px);
}

.steps-app__item strong {
  color: var(--color-cream);
  font-size: 14px;
  font-weight: 600;
}

.steps-app__item span {
  color: #9a9894;
  font-size: 12px;
}

.steps-app__item.is-hover strong {
  color: #67fab0;
}

.steps__dock {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 0;
  padding: 22px 18px 14px;
  border-radius: 0 0 16px 16px;
  background:
    radial-gradient(ellipse 55% 80% at 0% 100%, rgba(103, 250, 176, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(18, 17, 19, 0.15), rgba(18, 17, 19, 0.72));
}

.steps__tabs {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid rgba(253, 255, 247, 0.08);
  background: rgba(18, 17, 19, 0.82);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow:
    inset 0 1px 0 rgba(253, 255, 247, 0.06),
    0 18px 40px rgba(0, 0, 0, 0.45);
}

.steps__tabs::after {
  display: none;
}

.steps__progress {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: rgba(253, 255, 247, 0.06);
  overflow: hidden;
  pointer-events: none;
}

.steps__progress span {
  display: block;
  height: 100%;
  width: 0;
  background: #67fab0;
}

.steps__tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #6e6c6a;
  cursor: pointer;
}

.steps__tab img {
  width: 22px;
  height: 22px;
  display: block;
  filter: none;
}

.steps__tab:not(.is-active) img {
  filter: grayscale(1) brightness(0.72);
  opacity: 0.9;
}

.steps__tab.is-active {
  background: #d9d9d9;
  color: #121113;
  box-shadow:
    0 0 0 1px rgba(253, 255, 247, 0.12),
    0 0 28px rgba(103, 250, 176, 0.35),
    0 0 48px rgba(103, 250, 176, 0.12);
  transform: translateY(-1px);
}

.steps__tab.is-active img {
  filter: brightness(0);
}

.steps__copy {
  max-width: 560px;
  height: 96px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  overflow: hidden;
}

.steps__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  line-height: 22px;
  color: var(--color-cream);
}

.theme-dark .page .steps__title {
  font-size: 20px;
  font-weight: 500;
  line-height: 22px;
  letter-spacing: normal;
  margin: 0;
  color: var(--color-cream);
}

.steps__text {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  line-height: 22px;
  color: #a6a6a6;
}

.steps__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  min-height: 35px;
}

@media (prefers-reduced-motion: reduce) {
  .steps-balance__amount.is-pop,
  .steps-form__submit.is-press,
  .steps-app__item.is-hover {
    animation: none;
    transform: none;
  }
}

@media (max-width: 960px) {
  .steps {
    padding: var(--section-gap) 0;
  }

  .steps__inner {
    gap: 40px;
  }

  .steps__frame {
    height: 500px;
    border-radius: 20px;
  }

  .steps__panels,
  .steps__panel {
    height: 380px;
    flex-basis: 380px;
    max-height: 380px;
  }
}

@media (max-width: 600px) {
  .steps__eyebrow,
  .steps__eyebrow-muted,
  .steps__title,
  .steps__text,
  .theme-dark .page .steps__title {
    font-size: 18px;
    line-height: 22px;
  }

  .steps__actions {
    width: 100%;
  }

  .steps__actions .button {
    width: 100%;
  }
}

/* Steps: promo video fills the former interactive frame */
.steps--video .steps__frame--video {
  padding: 0;
  height: 542px;
  display: block;
}

.steps--video .steps__video {
  width: 100%;
  height: 100%;
}

.steps--video .steps__video .composition-video__inner {
  padding-bottom: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 24px;
  background: #0a0a0a;
}

.steps--video .steps__video .composition-video__player {
  object-fit: cover;
  object-position: center center;
}

@media (max-width: 960px) {
  .steps--video .steps__frame--video {
    height: 500px;
  }

  .steps--video .steps__video .composition-video__inner {
    border-radius: 20px;
  }
}

@media (max-width: 600px) {
  .steps--video .steps__frame--video {
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

/* Balance demo (Figma 6364:10354 / 6355:9797) */
.balance-demo {
  position: relative;
  width: 100%;
  height: 482px;
  min-height: 260px;
  border-radius: 20px;
  border: 1px solid rgba(253, 255, 247, 0.14);
  background: #191919;
  box-shadow:
    0 30px 50px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(253, 255, 247, 0.08),
    inset 0 0 0 2px rgba(253, 255, 247, 0.06);
  overflow: hidden;
}

.balance-demo__board {
  position: absolute;
  inset: 14px;
  width: auto;
  height: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 185px auto;
  align-content: start;
  gap: 11px;
  padding: 0;
  box-sizing: border-box;
  transform: scale(1);
  opacity: 1;
  transform-origin: center center;
}

.balance-demo.is-animating .balance-demo__board {
  animation: balance-board-zoom 1400ms cubic-bezier(0.23, 1, 0.32, 1) both;
}

.balance-demo__card {
  position: relative;
  background: #2b2b2b;
  border-radius: 12.8px;
  overflow: hidden;
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 960ms cubic-bezier(0.23, 1, 0.32, 1),
    transform 1120ms cubic-bezier(0.23, 1, 0.32, 1);
}

.balance-demo.is-animating .balance-demo__card {
  opacity: 0;
  transform: scale(0.9);
}

.balance-demo.is-animating .balance-demo__card.is-in {
  opacity: 1;
  transform: scale(1);
}

@keyframes balance-board-zoom {
  0% {
    opacity: 0.4;
    transform: scale(0.96);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.balance-demo__card--main,
.balance-demo__card--side {
  height: 185px;
  min-height: 185px;
  max-height: 185px;
  padding: 17px 17px 16px;
  box-sizing: border-box;
}

.balance-demo__card--table {
  grid-column: 1 / -1;
  align-self: start;
  width: 100%;
  padding: 8px 1.5px 1.5px;
  min-height: 0;
  border-radius: 11.7px;
}

.balance-demo__label {
  margin: 0;
  font-family: var(--font-display);
  font-size: 13.7px;
  font-weight: 400;
  line-height: 17px;
  letter-spacing: -0.27px;
  color: #fdfff7;
}

.balance-demo__value {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 37.9px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -1.52px;
  color: #fff;
}

.balance-demo__currency {
  font-size: 0.67em;
  letter-spacing: -0.5px;
  color: #878787;
}

.balance-demo__meta {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.4);
}

.balance-demo__card--side .balance-demo__meta {
  font-size: 15px;
  line-height: 1.4;
}

.balance-demo__btn {
  display: inline-flex;
  align-items: center;
  gap: 8.5px;
  margin-top: 14px;
  height: 30px;
  padding: 0 13.7px;
  border-radius: 10px;
  background: #67fab0;
  color: #121113;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

.balance-demo__btn img {
  display: block;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
}

.balance-demo__spark {
  position: absolute;
  top: 42px;
  right: 16px;
  bottom: 28px;
  left: 46%;
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
  filter: drop-shadow(0 0 6px rgba(103, 250, 176, 0.35));
}

.balance-demo__spark img,
.balance-demo__spark svg {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 148px;
  max-height: 92px;
}

.balance-demo__thead,
.balance-demo__row {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) 0.55fr 0.65fr minmax(0, 1.15fr);
  gap: 8px;
  align-items: center;
  padding: 0 22px 0 22px;
  box-sizing: border-box;
}

.balance-demo__thead {
  height: 16px;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  color: #fdfff7;
}

.balance-demo__th {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.balance-demo__th img {
  display: block;
  width: 6px;
  height: 9px;
  flex: 0 0 6px;
  opacity: 0.9;
}

.balance-demo__tbody {
  display: flex;
  flex-direction: column;
  gap: 1.5px;
  overflow: hidden;
  border-radius: 11px;
}

.balance-demo__row {
  min-height: 47px;
  background: #1e1e1e;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: -0.25px;
  color: #a6a6a6;
  opacity: 1;
  transform: none;
  transition:
    opacity 760ms cubic-bezier(0.23, 1, 0.32, 1),
    transform 840ms cubic-bezier(0.23, 1, 0.32, 1);
}

.balance-demo.is-animating .balance-demo__row:not(.is-in) {
  opacity: 0;
  transform: scale(0.96) translateY(-10px);
}

.balance-demo__row.is-in {
  opacity: 1;
  transform: none;
}

.balance-demo__row[hidden] {
  display: none;
}

.balance-demo__row:first-child {
  border-radius: 15.6px 15.6px 1.5px 1.5px;
}

.balance-demo__row:last-child {
  border-radius: 1.5px 1.5px 11px 11px;
}

.balance-demo__row:only-child {
  border-radius: 11px;
}

@media (max-width: 1100px) {
  .balance-demo {
    height: auto;
    aspect-ratio: 16 / 10;
    min-height: 280px;
  }

  .balance-demo__board {
    inset: 12px;
  }
}

@media (max-width: 700px) {
  .balance-demo {
    aspect-ratio: auto;
    height: auto;
    min-height: 0;
    padding: 0;
  }

  .balance-demo__board {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    transform: none;
    padding: 12px;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .balance-demo.is-animating .balance-demo__board {
    animation-name: balance-board-zoom-mobile;
  }

  @keyframes balance-board-zoom-mobile {
    0% {
      opacity: 0.4;
      transform: scale(0.96);
    }
    100% {
      opacity: 1;
      transform: scale(1);
    }
  }

  .balance-demo__card--main,
  .balance-demo__card--side {
    height: 160px;
    min-height: 160px;
    max-height: 160px;
  }

  .balance-demo__thead,
  .balance-demo__row {
    grid-template-columns: minmax(0, 1.3fr) 0.5fr 0.7fr minmax(0, 1fr);
    padding: 0 12px;
    font-size: 11px;
  }

  .balance-demo__value {
    font-size: 28px;
  }

  .balance-demo__spark {
    top: 36px;
    right: 12px;
    bottom: 22px;
    left: 44%;
  }

  .balance-demo__spark img,
  .balance-demo__spark svg {
    max-width: 124px;
    max-height: 78px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .balance-demo.is-animating .balance-demo__board,
  .balance-demo.is-animating .balance-demo__card,
  .balance-demo.is-animating .balance-demo__row {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ── Workspace (app shell demo) ── */
.section--workspace {
  padding: var(--section-gap) 0;
  background: #121113;
}

.workspace {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.workspace__stage {
  width: 100%;
  max-width: 1040px;
}

.workspace__cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.workspace__cta.is-os-mac [data-platform="win"],
.workspace__cta.is-os-win [data-platform="mac"] {
  display: none;
}

.workspace__frame {
  position: relative;
  width: 100%;
  height: 542px;
  padding: 10px;
  border-radius: 24px;
  border: 1px solid rgba(253, 255, 247, 0.14);
  background:
    radial-gradient(ellipse 55% 35% at 50% 0%, rgba(103, 250, 176, 0.1), transparent 55%),
    radial-gradient(ellipse 40% 30% at 15% 100%, rgba(180, 173, 234, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(253, 255, 247, 0.04), transparent 28%),
    rgba(0, 0, 0, 0.5);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(253, 255, 247, 0.08);
  box-sizing: border-box;
  overflow: hidden;
}

.ws-app {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  border: 1px solid rgba(253, 255, 247, 0.08);
  background: #222;
  overflow: hidden;
  font-family: var(--font-display);
  color: #d9d9d9;
}

.ws-app__header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 40px;
  padding: 0 10px;
  background: #3d3d3d;
  flex: 0 0 40px;
}

.ws-app__brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-self: start;
}

.ws-app__brand img {
  display: block;
  width: 17px;
  height: 17px;
}

.ws-app__brand-text {
  font-family: var(--font-display), sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  color: #67fab0;
}

.ws-app__brand-e {
  letter-spacing: -0.18px;
}

.ws-app__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.ws-app__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 14px;
  background: transparent;
  color: #d9d9d9;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  transition:
    background 480ms ease,
    color 480ms ease,
    transform 480ms ease;
}

.ws-app__pill.is-active {
  background: #67fab0;
  color: #121113;
  transform: scale(1.02);
}

.ws-app__account {
  justify-self: end;
  display: flex;
  align-items: center;
  opacity: 0.85;
}

.ws-app__account img {
  display: block;
  width: 22px;
  height: 22px;
}

.ws-app__body {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  background: #222;
}

.ws-app__panel {
  grid-area: 1 / 1;
  display: flex;
  min-height: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px) scale(0.985);
  transition:
    opacity 520ms cubic-bezier(0.23, 1, 0.32, 1),
    transform 620ms cubic-bezier(0.23, 1, 0.32, 1),
    visibility 0s linear 520ms;
  z-index: 0;
}

.ws-app__panel.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition:
    opacity 520ms cubic-bezier(0.23, 1, 0.32, 1),
    transform 620ms cubic-bezier(0.23, 1, 0.32, 1),
    visibility 0s;
  z-index: 1;
}

.ws-cursor {
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  transform: translate(72px, 64px);
  transition:
    transform 480ms cubic-bezier(0.23, 1, 0.32, 1),
    opacity 220ms ease;
}

.ws-cursor img {
  display: block;
  width: 28px;
  height: 28px;
}

.ws-cursor.is-on {
  opacity: 1;
}

.ws-cursor.is-click {
  filter: drop-shadow(0 0 8px rgba(103, 250, 176, 0.4));
}

.ws-run,
button.ws-run {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  height: 26px;
  padding: 0 12px;
  border: none;
  border-radius: 8px;
  background: #67fab0;
  color: #121113;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: default;
}

.ws-run.is-stop,
button.ws-run.is-stop {
  gap: 8px;
  background: #2f2f2f;
  border: 1px solid #4c4c4c;
  color: #d9d9d9;
}

.ws-run__stop {
  width: 8px;
  height: 8px;
  border-radius: 1.5px;
  background: #d9d9d9;
}

.ws-run.is-hot,
.ws-link.is-hot,
.ws-trn__start.is-hot,
[data-ws-ed-image].is-hot {
  filter: brightness(1.08);
  box-shadow: 0 0 0 1px rgba(103, 250, 176, 0.45);
}

.ws-link,
button.ws-link {
  border: 0;
  padding: 0;
  background: none;
  color: #67fab0;
  font: inherit;
  font-size: 11px;
  cursor: default;
}

.ws-app__pill {
  cursor: pointer;
}


/* Shared chrome inside panels */
.ws-bal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 41px;
  height: 41px;
  padding: 0 8px 0 0;
  border-bottom: 1px solid #4c4c4c;
  box-sizing: border-box;
}

.ws-bal__label {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: #d9d9d9;
  white-space: nowrap;
}

.ws-bal__box {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 27px;
  padding: 3px 7px;
  border: 1px solid #4c4c4c;
  border-radius: 5px;
  background: #2f2f2f;
  opacity: 0.95;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}

.ws-bal__total {
  color: #d9d9d9;
}

.ws-bal__cost {
  color: #67fab0;
}

.ws-side {
  flex: 0 0 210px;
  width: 210px;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: #2f2f2f;
  border-right: 1px solid #4c4c4c;
  box-sizing: border-box;
  min-height: 0;
}

.ws-side--editor {
  flex-basis: 210px;
  width: 210px;
}

.ws-side__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 7px;
  min-height: 0;
  padding: 6px 0 8px;
}

.ws-side__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: calc(100% - 15px);
  margin: 0 7.5px;
  height: 26px;
  border: 0;
  border-radius: 4px;
  background: #67fab0;
  color: #121113;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  cursor: default;
}

.ws-side__cta img {
  width: 11px;
  height: 11px;
}

.ws-side__label {
  margin: 2px 0 0;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 600;
  color: #d9d9d9;
}

.ws-side__tabs {
  display: flex;
  gap: 2px;
  margin: 0 7.5px;
  padding: 2px;
  border-radius: 8px;
  background: #262626;
}

.ws-side__tabs span {
  flex: 1;
  text-align: center;
  padding: 6px 0;
  border-radius: 6px;
  font-size: 11px;
  color: #a6a6a6;
}

.ws-side__tabs span.is-on {
  background: #3d3d3d;
  color: #fdfff7;
}

.ws-side__tabs em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 14px;
  height: 14px;
  margin-left: 4px;
  padding: 0 4px;
  border-radius: 999px;
  background: #67fab0;
  color: #121113;
  font-style: normal;
  font-size: 9px;
  font-weight: 700;
}

.ws-side__search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  margin: 0 7.5px;
  padding: 0 12px;
  border: 1px solid #4c4c4c;
  border-radius: 4px;
  background: #2b2b2b;
  color: #a6a6a6;
  font-size: 11px;
}

.ws-side__search img {
  width: 12px;
  height: 12px;
  opacity: 0.85;
  flex: 0 0 auto;
}

.ws-side__list {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  flex: 1 1 auto;
}

.ws-side__list li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 11px;
  border-top: 1px solid #454545;
  border-bottom: 1px solid #454545;
  margin-bottom: -1px;
  color: #d9d9d9;
  background: transparent;
}

.ws-side__list li.is-on {
  background: rgba(103, 250, 176, 0.08);
}

.ws-side__title {
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ws-side__meta {
  font-size: 10.5px;
  color: #a6a6a6;
}

/* Editor layers — Figma 6223:11118 flat rows */
.ws-layers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  flex: 1 1 auto;
  width: 100%;
}

.ws-layer {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 5px 6px;
  border-top: 1px solid #454545;
  border-bottom: 1px solid #454545;
  margin-bottom: -1px;
  box-sizing: border-box;
}

.ws-layer[hidden] {
  display: none !important;
}

.ws-layer__eye,
.ws-layer__more {
  display: block;
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
}

.ws-layer__more {
  width: 18px;
  height: 18px;
  margin-left: auto;
  opacity: 0.9;
}

.ws-layer__thumb {
  flex: 0 0 28px;
  width: 28px;
  height: 22px;
  border: 1px solid #2e2e2e;
  overflow: hidden;
  background: #1a1a1a url('../assets/images/workspace/sheep-before.jpg') center / cover no-repeat;
  box-sizing: border-box;
}

.ws-layer__thumb--result {
  background-image: url('../assets/images/workspace/sheep-after.jpg');
}

.ws-layer__text {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  flex: 1 1 auto;
}

.ws-layer__text strong {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15px;
  color: #d9d9d9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ws-layer__text em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.1px;
  color: #b0b0b0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ws-layer.is-new {
  background: rgba(103, 250, 176, 0.06);
}

.ws-chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 6px;
  background: #2f2f2f;
  border: 1px solid rgba(253, 255, 247, 0.06);
  color: #d9d9d9;
  font-size: 11px;
  white-space: nowrap;
}

.ws-chip--block {
  width: 100%;
  height: 30px;
  justify-content: flex-start;
}

/* Chat */
.ws-chat {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #222;
}

.ws-chat__thread {
  flex: 1 1 auto;
  min-height: 0;
  padding: 18px 22px 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.ws-chat__date {
  align-self: center;
  font-size: 11px;
  color: #696969;
}

.ws-msg {
  max-width: 78%;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.4;
}

.ws-msg--user {
  align-self: flex-end;
  background: #3d3d3d;
  color: #fdfff7;
}

.ws-msg--ai {
  align-self: flex-start;
  background: #2b2b2b;
  color: #d9d9d9;
}

.ws-msg.is-thinking {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #a6a6a6;
}

.ws-msg.is-thinking[hidden],
.ws-msg.is-result[hidden] {
  display: none !important;
}

.ws-dots {
  display: inline-flex;
  gap: 3px;
}

.ws-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #67fab0;
  opacity: 0.35;
  animation: ws-dot 1s ease-in-out infinite;
}

.ws-dots i:nth-child(2) { animation-delay: 0.15s; }
.ws-dots i:nth-child(3) { animation-delay: 0.3s; }

.ws-msg__figure {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ws-msg__img {
  display: block;
  width: 168px;
  aspect-ratio: 3 / 2;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), transparent 42%),
    linear-gradient(210deg, #7a8aa3 0%, #334055 52%, #1d1d1d 100%);
  box-shadow: inset 0 0 0 1px rgba(253, 255, 247, 0.08);
}

.ws-msg__img--wide {
  width: min(100%, 280px);
  aspect-ratio: 21 / 9;
  background: #1a1a1a url('../assets/images/workspace/sheep-before.jpg') center / cover no-repeat;
}

.ws-msg__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #808080;
}

.ws-msg__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: #808080;
}

.ws-composer {
  margin: 8px 12px 12px;
  padding: 8px;
  border-radius: 12px;
  background: #2b2b2b;
  border: 1px solid rgba(253, 255, 247, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ws-composer__fields,
.ws-dock__fields {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ws-composer__prompt,
.ws-dock__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
}

.ws-composer__ph,
.ws-dock__ph {
  flex: 1 1 auto;
  min-width: 0;
  color: #696969;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ws-dock__ph:empty::before {
  content: 'Опишите, что хотите изменить или создать';
  color: #696969;
}

/* Editor */
.ws-ed {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #1b1a1a;
}

.ws-ed__toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
  padding: 8px 10px 4px;
}

.ws-ed__tools {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: transparent;
  border: 0;
}

.ws-ed__tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 5px;
  background: #2b2b2b;
  overflow: hidden;
}

.ws-ed__tool img {
  display: block;
  width: 30px;
  height: 30px;
}

.ws-ed__tool.is-on {
  background: #363636;
  box-shadow: inset 0 0 0 1px rgba(103, 250, 176, 0.35);
}

.ws-ed__divider {
  width: 1px;
  height: 19px;
  margin: 0 2px;
  background: #3d3d3d;
}

.ws-ed__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
}

.ws-ed__tabs {
  display: flex;
  gap: 4px;
  padding: 6px 10px 0;
}

.ws-ed__tabs span {
  height: 24px;
  padding: 0 10px;
  border-radius: 8px 8px 0 0;
  background: #2a2a2a;
  color: #d9d9d9;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
}

.ws-ed__canvas {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(253, 255, 247, 0.06);
  background:
    radial-gradient(circle at 28% 22%, rgba(103, 250, 176, 0.1), transparent 42%),
    linear-gradient(180deg, #242424, #181818);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.ws-ed__image {
  width: min(78%, 420px);
  aspect-ratio: 21 / 9;
  border-radius: 8px;
  background: #1a1a1a url('../assets/images/workspace/sheep-before.jpg') center / cover no-repeat;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  transition: background-image 500ms ease, filter 500ms ease, transform 600ms ease;
}

.ws-ed__image--wide {
  aspect-ratio: 21 / 9;
}

.ws-ed__image.is-fresh {
  background-image: url('../assets/images/workspace/sheep-after.jpg');
  filter: saturate(1.06) brightness(1.03);
  transform: scale(1.015);
}

.ws-ed__mask {
  position: absolute;
  width: min(78%, 420px);
  aspect-ratio: 21 / 9;
  border: 1.5px solid rgba(103, 250, 176, 0.95);
  border-radius: 8px;
  box-shadow:
    0 0 0 1px rgba(18, 17, 19, 0.35),
    inset 0 0 0 999px rgba(103, 250, 176, 0.08);
  pointer-events: none;
}

.ws-ed__mask--wide {
  aspect-ratio: 21 / 9;
}

.ws-ed__status {
  padding: 4px 12px 2px;
  font-size: 10px;
  color: #696969;
}

.ws-dock {
  margin: 4px 10px 10px;
  padding: 8px;
  border-radius: 12px;
  background: #242424;
  border: 1px solid rgba(253, 255, 247, 0.08);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ws-dock__refs {
  display: flex;
  gap: 6px;
}

.ws-dock__refs span {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px dashed #4c4c4c;
  background: #1b1a1a;
}

.ws-dock__refs span.is-filled {
  border-style: solid;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), transparent 40%),
    linear-gradient(210deg, #6d7f9c, #1a1a1a);
}

 /* run button styles live in .ws-run */

/* Transcriber */
.ws-trn {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
  display: grid;
  background: #222;
  overflow: hidden;
}

.ws-trn__pane {
  grid-area: 1 / 1;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 420ms ease, transform 480ms ease, visibility 0s linear 420ms;
}

.ws-trn__pane.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 420ms ease, transform 480ms ease, visibility 0s;
}

.ws-trn__pane[hidden] {
  display: flex !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ws-trn__head h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #fdfff7;
}

.ws-trn__head p {
  margin: 6px 0 0;
  font-size: 12px;
  color: #808080;
}

.ws-trn__file {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #2b2b2b;
  border: 1px solid rgba(253, 255, 247, 0.06);
}

.ws-trn__file strong {
  font-size: 13px;
  color: #fdfff7;
}

.ws-trn__file span {
  font-size: 11px;
  color: #808080;
}

.ws-trn__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
}

.ws-trn__grid > div > p,
.ws-trn__cost p {
  margin: 0 0 6px;
  font-size: 11px;
  color: #808080;
}

.ws-trn__cost dl {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #2b2b2b;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ws-trn__cost div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}

.ws-trn__cost dt {
  color: #808080;
}

.ws-trn__cost dd {
  margin: 0;
  color: #fdfff7;
}

.ws-trn__progress {
  margin: auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.ws-trn__bar {
  width: min(100%, 320px);
  height: 8px;
  border-radius: 999px;
  background: #2f2f2f;
  overflow: hidden;
}

.ws-trn__bar i {
  display: block;
  width: 18%;
  height: 100%;
  border-radius: inherit;
  background: #67fab0;
  transition: width 700ms ease;
}

.ws-trn__progress p {
  margin: 0;
  font-size: 13px;
  color: #d9d9d9;
}

.ws-trn__summary,
.ws-trn__script {
  padding: 12px 14px;
  border-radius: 10px;
  background: #2b2b2b;
  border: 1px solid rgba(253, 255, 247, 0.06);
}

.ws-trn__summary strong {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  color: #67fab0;
}

.ws-trn__summary p,
.ws-trn__script p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: #d9d9d9;
}

.ws-trn__script {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow: hidden;
  mask-image: linear-gradient(180deg, #000 78%, transparent);
}

.ws-trn__pane[data-ws-trn-pane='result'] {
  height: 100%;
  min-height: 0;
}

.ws-trn__drop {
  width: min(100%, 420px);
  margin: auto;
  padding: 28px 24px;
  border-radius: 16px;
  border: 1px dashed rgba(253, 255, 247, 0.18);
  background: #2a2a2a;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: border-color 300ms ease, background 300ms ease;
}

.ws-trn__drop.is-uploading {
  border-color: rgba(103, 250, 176, 0.45);
  background: #262626;
}

.ws-trn__drop h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: #fdfff7;
}

.ws-trn__drop p {
  margin: 0;
  font-size: 12px;
  color: #808080;
}

.ws-trn__formats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 2px 0 4px;
  padding: 0;
  list-style: none;
}

.ws-trn__formats li {
  padding: 3px 8px;
  border-radius: 999px;
  background: #222;
  color: #a6a6a6;
  font-size: 10px;
}

.ws-trn__wave {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 28px;
  margin-bottom: 4px;
}

.ws-trn__wave span {
  width: 3px;
  height: 40%;
  border-radius: 999px;
  background: #67fab0;
  opacity: 0.7;
  animation: ws-wave 1.1s ease-in-out infinite;
}

.ws-trn__wave span:nth-child(2n) { animation-delay: 0.12s; height: 70%; }
.ws-trn__wave span:nth-child(3n) { animation-delay: 0.24s; height: 55%; }

.ws-trn__upload {
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #222;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ws-trn__upload strong {
  font-size: 12px;
  color: #fdfff7;
}

.ws-trn__upload span {
  font-size: 11px;
  color: #808080;
}

.ws-trn__start,
button.ws-trn__start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 30px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: #67fab0;
  color: #121113;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: default;
}

@keyframes ws-wave {
  0%, 100% { transform: scaleY(0.55); opacity: 0.55; }
  50% { transform: scaleY(1); opacity: 1; }
}

.ws-trn__script b {
  color: #67fab0;
  font-weight: 600;
}

@keyframes ws-dot {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
}

/* Tablet: keep desktop workspace layout, scale the frame down */
@media (max-width: 1040px) and (min-width: 721px) {
  .workspace__stage {
    --ws-scale: min(1, calc((100vw - 48px) / 1040px));
    width: 100%;
    max-width: none;
    display: flex;
    justify-content: center;
    overflow: hidden;
    height: calc(542px * var(--ws-scale));
  }

  .workspace__frame {
    width: 1040px;
    max-width: none;
    height: 542px;
    flex-shrink: 0;
    transform: scale(var(--ws-scale));
    transform-origin: top center;
  }

  /* Prefer zoom when supported — it shrinks layout box natively */
  @supports (zoom: 1) {
    .workspace__stage {
      height: auto;
    }

    .workspace__frame {
      transform: none;
      zoom: var(--ws-scale);
    }
  }
}

@media (max-width: 720px) {
  .section--workspace {
    padding: var(--section-gap) 0;
  }

  .workspace {
    gap: 28px;
  }

  .workspace__stage {
    height: auto;
    overflow: visible;
  }

  .workspace__frame {
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 8px;
    border-radius: 20px;
    transform: none;
    zoom: 1;
    overflow: hidden;
  }

  .ws-cursor {
    display: none !important;
  }

  .ws-app {
    height: auto;
    border-radius: 14px;
    overflow: hidden;
  }

  .ws-app__body {
    position: relative;
    display: block;
    overflow: visible;
    min-height: 0;
  }

  .ws-app__panel {
    grid-area: unset;
  }

  .ws-app__panel:not(.is-active) {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
  }

  .ws-app__panel.is-active {
    position: relative;
  }

  .ws-app__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    height: auto;
    min-height: 0;
    flex: 0 0 auto;
    gap: 8px 10px;
    padding: 8px 10px;
  }

  .ws-app__brand {
    order: 1;
    justify-self: unset;
  }

  .ws-app__brand-text {
    font-size: 16px;
  }

  .ws-app__account {
    order: 2;
    justify-self: unset;
    margin-left: auto;
  }

  .ws-app__nav {
    order: 3;
    flex: 1 1 100%;
    width: 100%;
    justify-content: stretch;
    padding: 2px;
    border-radius: 16px;
    background: #2b2b2b;
  }

  .ws-app__pill {
    flex: 1 1 0;
    height: 32px;
    padding: 0 8px;
    font-size: 12px;
  }

  .ws-app__panel {
    flex-direction: column;
  }

  .ws-side,
  .ws-side--editor {
    flex: 0 0 auto;
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid #4c4c4c;
  }

  .ws-side__body {
    display: none;
  }

  .ws-bal {
    padding: 0 10px 0 2px;
  }

  .ws-chat__thread {
    padding: 12px 12px 8px;
  }

  .ws-msg {
    max-width: 92%;
  }

  .ws-composer {
    margin: 6px 8px 8px;
    flex: 0 0 auto;
  }

  .ws-composer__fields,
  .ws-dock__fields {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .ws-composer__prompt,
  .ws-dock__row {
    flex-wrap: nowrap;
    align-items: center;
  }

  .ws-composer__prompt .ws-run,
  .ws-dock__row .ws-run {
    flex: 0 0 auto;
    height: 32px;
  }

  .ws-ed,
  .ws-ed__main,
  .ws-chat,
  .ws-trn {
    min-height: 0;
    overflow: visible;
  }

  .ws-ed__toolbar {
    padding: 6px 8px 2px;
    overflow-x: auto;
    flex: 0 0 auto;
  }

  .ws-ed__tools {
    gap: 4px;
  }

  .ws-ed__tabs {
    padding: 4px 8px 0;
    flex: 0 0 auto;
  }

  .ws-ed__canvas {
    margin: 0 8px;
    flex: 0 0 auto;
    min-height: 0;
    height: auto;
    padding: 10px 0;
  }

  .ws-ed__image,
  .ws-ed__mask {
    width: min(94%, 420px);
  }

  .ws-ed__status {
    flex: 0 0 auto;
    padding: 4px 10px 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ws-dock {
    margin: 4px 8px 8px;
    flex: 0 0 auto;
  }

  .ws-trn__pane {
    padding: 14px 12px;
    overflow: visible;
  }

  .ws-trn__pane[data-ws-trn-pane='result'] {
    height: auto;
  }

  .ws-trn__grid {
    grid-template-columns: 1fr;
  }

  .ws-trn__drop {
    width: 100%;
    padding: 20px 16px;
  }

  .ws-trn__script {
    max-height: 240px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    mask-image: none;
    -webkit-mask-image: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ws-app__panel,
  .ws-app__pill,
  .ws-trn__pane,
  .ws-dots i,
  .ws-ed__image {
    transition: none !important;
    animation: none !important;
  }
}
