.wtc-demo {
  --wtc-app-accent: #5865f2;
  --wtc-app-accent-strong: #4351df;
  --wtc-app-text: #1d1d1f;
  --wtc-app-secondary: rgba(60, 60, 67, 0.72);
  --wtc-app-tertiary: rgba(60, 60, 67, 0.16);
  --wtc-app-quaternary: rgba(60, 60, 67, 0.1);
  --wtc-app-surface: rgba(247, 247, 249, 0.94);
  border-top: 1px solid var(--faint);
  padding-top: 104px;
  padding-bottom: 104px;
}

[data-wtc-demo] [hidden] {
  display: none !important;
}

.wtc-demo__heading {
  display: grid;
  max-width: 1180px;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
  align-items: end;
  gap: 70px;
  margin: 0 auto 36px;
  text-align: left;
}

.wtc-demo__eyebrow,
.wtc-demo__guide-label,
.wtc-demo__result-label {
  display: block;
  color: var(--wtc-app-accent-strong);
  font-size: 12px;
  font-weight: 840;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wtc-demo__heading h2 {
  grid-column: 1;
  margin: 10px 0 0;
  color: var(--text);
  font-size: clamp(38px, 4.5vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.wtc-demo__heading p {
  grid-row: 1 / span 2;
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.wtc-demo__heading kbd {
  min-width: 0;
  margin-left: 3px;
  padding: 3px 7px;
  color: var(--text);
}

.wtc-demo__interactive {
  width: 100%;
}

.wtc-demo__shell {
  display: grid;
  width: min(1180px, 100%);
  grid-template-columns: minmax(280px, 330px) minmax(0, 1fr);
  align-items: stretch;
  gap: 24px;
  margin: 0 auto;
}

.wtc-demo__guide-panel {
  display: flex;
  min-width: 0;
  min-height: 500px;
  flex-direction: column;
  border: 1px solid rgba(83, 108, 255, 0.16);
  border-radius: var(--radius);
  padding: 26px;
  background: #f8f9ff;
  box-shadow: none;
}

.wtc-demo__progress {
  display: grid;
  grid-template-columns: max-content minmax(18px, 1fr) max-content;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 0 0 24px;
  list-style: none;
}

.wtc-demo__step {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  transition: color 180ms ease;
}

.wtc-demo__step-marker {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1.5px solid #aab2ad;
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.wtc-demo__step[data-status="active"] {
  color: var(--text);
}

.wtc-demo__step[data-status="active"] .wtc-demo__step-marker {
  border-color: var(--wtc-app-accent);
  color: var(--wtc-app-accent);
}

.wtc-demo__step[data-status="complete"] .wtc-demo__step-marker {
  border-color: #8f9893;
  color: transparent;
}

.wtc-demo__step[data-status="complete"] .wtc-demo__step-marker::before {
  color: #66706b;
  content: "✓";
}

.wtc-demo__progress-line {
  height: 1px;
  background: linear-gradient(90deg, var(--faint), #929b96, var(--faint));
}

.wtc-demo[data-session="custom"] .wtc-demo__progress-line,
.wtc-demo[data-session="custom"] [data-demo-step="profile"] {
  display: none;
}

.wtc-demo__guide {
  display: flex;
  flex: 1;
  align-items: stretch;
  flex-direction: column;
  justify-content: center;
}

.wtc-demo[data-demo-state="completed"] .wtc-demo__guide,
.wtc-demo[data-demo-state="custom"] .wtc-demo__guide {
  display: none;
}

.wtc-demo__instruction {
  margin: 12px 0 22px;
  color: var(--text);
  font-size: 24px;
  font-weight: 760;
  line-height: 1.22;
  letter-spacing: -0.022em;
}

.wtc-demo__primary-action,
.wtc-demo__text-button,
.wtc-demo__overlay-close,
.wtc-demo__rail-item,
.wtc-demo__profile-item {
  -webkit-tap-highlight-color: transparent;
  font: inherit;
}

.wtc-demo__primary-action {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--wtc-app-accent);
  border-radius: 10px;
  padding: 0 18px;
  background: var(--wtc-app-accent);
  box-shadow: 0 10px 24px rgba(67, 81, 223, 0.2);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 820;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.wtc-demo__primary-action:hover,
.wtc-demo__primary-action:focus-visible {
  border-color: var(--wtc-app-accent-strong);
  background: var(--wtc-app-accent-strong);
  box-shadow: 0 12px 28px rgba(67, 81, 223, 0.25);
  outline: none;
  transform: translateY(-1px);
}

.wtc-demo__primary-action:disabled {
  border-color: #c7cbd5;
  background: #c7cbd5;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.wtc-demo__keyboard-hint {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.wtc-demo__privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: auto;
  border-top: 1px solid var(--faint);
  padding-top: 18px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.wtc-demo__privacy-note svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--wtc-app-accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.wtc-demo__workspace {
  position: relative;
  min-width: 0;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid rgba(20, 29, 24, 0.14);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
  color: #202124;
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.wtc-demo__shortcut-bar {
  display: grid;
  width: min(1180px, 100%);
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 16px auto 0;
  border: 1px solid var(--faint);
  border-radius: var(--radius);
  padding: 0;
  background: var(--surface);
  list-style: none;
}

.wtc-demo__shortcut-bar li {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-left: 1px solid var(--faint);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.wtc-demo__shortcut-bar li:first-child {
  border-left: 0;
}

.wtc-demo__shortcut-bar kbd {
  min-width: 0;
  color: var(--text);
}

.wtc-demo__workspace:focus {
  outline: none;
}

.wtc-demo__workspace:focus-visible {
  border-color: var(--wtc-app-accent);
  box-shadow:
    0 0 0 4px rgba(88, 101, 242, 0.12),
    0 20px 54px rgba(20, 29, 24, 0.1);
}

.wtc-demo__mail-toolbar {
  display: grid;
  min-height: 58px;
  grid-template-columns: 110px 1fr 110px;
  align-items: center;
  border-bottom: 1px solid #dcdfe1;
  padding: 0 20px;
  background: linear-gradient(#fff, #f9fafa);
}

.wtc-demo__mail-toolbar > strong {
  color: #555d64;
  font-size: 13px;
  font-weight: 640;
  text-align: center;
}

.wtc-demo__traffic-lights {
  display: flex;
  gap: 7px;
}

.wtc-demo__traffic-lights span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.wtc-demo__traffic-lights span:first-child {
  background: #ff5f57;
}

.wtc-demo__traffic-lights span:nth-child(2) {
  background: #febc2e;
}

.wtc-demo__traffic-lights span:nth-child(3) {
  background: #28c840;
}

.wtc-demo__mail-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  color: #626970;
}

.wtc-demo__mail-tools svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.wtc-demo__mail-fields {
  padding: 0 24px;
}

.wtc-demo__mail-fields > div {
  display: grid;
  min-height: 45px;
  grid-template-columns: 76px 1fr;
  align-items: center;
  border-bottom: 1px solid #e0e2e3;
  color: #697178;
  font-size: 14px;
}

.wtc-demo__mail-fields strong {
  overflow: hidden;
  color: #24282b;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wtc-demo__mail-fields > div:first-child strong {
  color: #1671d9;
}

.wtc-demo__mail-body {
  position: relative;
  min-height: 370px;
  padding: 24px 28px;
  font-size: 16px;
  line-height: 1.45;
}

.wtc-demo__mail-body > p {
  margin: 0 0 14px;
}

.wtc-demo__pasted-content {
  display: grid;
  max-width: 430px;
  gap: 12px;
}

.wtc-demo__pasted-content p {
  margin: 0;
  white-space: pre-wrap;
}

.wtc-demo__pasted-content p[data-new="true"] {
  animation: wtc-demo-paste-in 300ms ease both;
}

.wtc-demo__caret {
  display: block;
  width: 1.5px;
  height: 22px;
  margin-top: 6px;
  background: #1f2326;
  animation: wtc-demo-caret 1s steps(1) infinite;
}

.wtc-demo__signature {
  position: absolute;
  bottom: 24px;
  left: 28px;
  display: grid;
  gap: 2px;
  color: #596168;
  font-size: 13px;
}

.wtc-demo__signature strong {
  margin-top: 8px;
  color: #454b50;
  font-weight: 560;
}

.wtc-demo__overlay-positioner {
  position: absolute;
  z-index: 5;
  top: 54%;
  left: 50%;
  width: 460px;
  transform: translate(-50%, -50%);
}

.wtc-demo__overlay-positioner[hidden] {
  display: none;
}

.wtc-demo__overlay {
  display: flex;
  width: 460px;
  flex-direction: column;
  gap: 10px;
  border: 1px solid rgba(60, 60, 67, 0.18);
  border-radius: 9px;
  padding: 14px;
  background: var(--wtc-app-surface);
  box-shadow: 0 5px 20px rgba(22, 24, 29, 0.2);
  color: var(--wtc-app-text);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  -webkit-backdrop-filter: blur(28px) saturate(1.2);
  backdrop-filter: blur(28px) saturate(1.2);
  transform-origin: center;
  animation: wtc-demo-overlay-in 160ms ease-out both;
}

.wtc-demo__overlay-header {
  display: grid;
  min-width: 0;
  grid-template-columns: 32px minmax(0, max-content) max-content 1fr 24px;
  align-items: center;
  gap: 12px;
}

.wtc-demo__overlay-title-icon,
.wtc-demo__summary-icon,
.wtc-demo__profile-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
}

.wtc-demo__overlay-title-icon {
  width: 32px;
  height: 32px;
  border: 1px solid var(--wtc-app-quaternary);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.44);
  color: var(--wtc-app-secondary);
}

.wtc-demo__overlay-title-icon[data-kind="profile"] {
  border-color: transparent;
  background: var(--wtc-app-accent);
  color: #fff;
}

.wtc-demo__overlay-title-icon svg,
.wtc-demo__summary-icon svg,
.wtc-demo__profile-avatar svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.wtc-demo__overlay-heading {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.wtc-demo__overlay-heading strong,
.wtc-demo__summary strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wtc-demo__overlay-heading small,
.wtc-demo__summary small {
  overflow: hidden;
  color: var(--wtc-app-secondary);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.25;
  text-overflow: ellipsis;
}

.wtc-demo__overlay-heading small {
  white-space: nowrap;
}

.wtc-demo__position-label {
  display: inline-grid;
  min-width: 24px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  padding: 0 8px;
  background: var(--wtc-app-quaternary);
  font-family:
    ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  font-weight: 760;
}

.wtc-demo__overlay-close {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 0;
  border-radius: 5px;
  padding: 0;
  background: transparent;
  color: var(--wtc-app-secondary);
  cursor: pointer;
}

.wtc-demo__overlay-close:hover,
.wtc-demo__overlay-close:focus-visible {
  background: var(--wtc-app-quaternary);
  color: var(--wtc-app-text);
  outline: none;
}

.wtc-demo__overlay-close svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.wtc-demo__summary {
  display: grid;
  min-height: 50px;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding-top: 2px;
}

.wtc-demo__summary > span:last-child {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.wtc-demo__summary-icon {
  width: 32px;
  height: 32px;
  color: var(--wtc-app-secondary);
}

.wtc-demo__summary small {
  display: -webkit-box;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.wtc-demo__profile-rail {
  display: flex;
  height: 38px;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1px 0;
  scrollbar-width: none;
}

.wtc-demo__profile-rail::-webkit-scrollbar {
  display: none;
}

.wtc-demo__profile-item {
  display: inline-flex;
  max-width: 150px;
  height: 34px;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0 8px;
  background: rgba(255, 255, 255, 0.4);
  color: var(--wtc-app-text);
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.wtc-demo__profile-item[aria-selected="true"] {
  border-color: rgba(88, 101, 242, 0.35);
  background: var(--wtc-app-accent);
  color: #fff;
}

.wtc-demo__profile-item:focus-visible {
  box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.24);
  outline: none;
}

.wtc-demo__profile-item--history > svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.wtc-demo__profile-avatar {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--profile-color, var(--wtc-app-accent));
  color: #fff;
}

.wtc-demo__profile-avatar svg {
  width: 13px;
  height: 13px;
}

.wtc-demo__slot-rail {
  display: flex;
  min-height: 30px;
  gap: 8px;
}

.wtc-demo__rail-item {
  display: grid;
  width: 34px;
  min-width: 34px;
  height: 30px;
  place-items: center;
  gap: 2px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 2px 0;
  background: rgba(255, 255, 255, 0.42);
  color: var(--wtc-app-secondary);
  cursor: pointer;
}

.wtc-demo__rail-item svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.wtc-demo__rail-item small {
  font-family:
    ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 9px;
  font-weight: 760;
  line-height: 1;
}

.wtc-demo__rail-item[aria-selected="true"] {
  border-color: rgba(88, 101, 242, 0.35);
  background: var(--wtc-app-accent);
  color: #fff;
}

.wtc-demo__rail-item:hover:not([aria-selected="true"]),
.wtc-demo__rail-item:focus-visible:not([aria-selected="true"]) {
  border-color: var(--wtc-app-tertiary);
  background: rgba(255, 255, 255, 0.74);
  outline: none;
}

.wtc-demo__rail-item:focus-visible {
  box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.22);
}

.wtc-demo__empty-icon {
  display: block;
  box-sizing: border-box;
  width: 11px;
  height: 11px;
  border: 1.3px dashed currentColor;
  border-radius: 50%;
}

.wtc-demo__overlay-footer {
  display: flex;
  min-height: 22px;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  color: var(--wtc-app-secondary);
  font-size: 9.5px;
  line-height: 1;
  white-space: nowrap;
}

.wtc-demo__overlay-footer > span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.wtc-demo__overlay-footer b {
  font-size: 10px;
  font-weight: 620;
}

.wtc-demo__paste-control {
  margin-left: auto;
  border: 0;
  border-radius: 6px;
  padding: 7px 10px;
  background: var(--wtc-app-accent);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  line-height: 1;
}

.wtc-demo__paste-control:hover,
.wtc-demo__paste-control:focus-visible {
  background: var(--wtc-app-accent-strong);
  outline: none;
}

.wtc-demo__paste-control:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.wtc-demo__completion,
.wtc-demo__custom-form {
  margin: auto 0;
}

.wtc-demo__completion p {
  margin: 12px 0 0;
  color: var(--text);
  font-size: 23px;
  font-weight: 760;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.wtc-demo__completion-actions,
.wtc-demo__custom-actions {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}

.wtc-demo__completion-actions .button,
.wtc-demo__custom-actions .button {
  width: 100%;
}

.wtc-demo__buy-button {
  border: 0;
  background: var(--wtc-app-accent);
  color: #fff;
  cursor: pointer;
}

.wtc-demo__buy-button:hover,
.wtc-demo__buy-button:focus-visible {
  background: var(--wtc-app-accent-strong);
  outline: none;
}

.wtc-demo__text-button {
  min-height: 44px;
  border: 0;
  padding: 0 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.wtc-demo__text-button:hover,
.wtc-demo__text-button:focus-visible {
  color: var(--text);
  outline: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wtc-demo__custom-form label {
  display: block;
  color: var(--text);
  font-size: 21px;
  font-weight: 760;
  line-height: 1.2;
}

.wtc-demo__custom-form p {
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.wtc-demo__custom-form textarea {
  width: 100%;
  min-height: 118px;
  resize: vertical;
  border: 1px solid var(--faint);
  border-radius: 8px;
  padding: 12px 13px;
  background: #fff;
  color: var(--text);
  font: inherit;
  line-height: 1.5;
}

.wtc-demo__custom-form textarea:focus {
  border-color: var(--wtc-app-accent);
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.12);
  outline: none;
}

.wtc-demo__noscript {
  width: min(760px, 100%);
  margin: 30px auto 0;
  border: 1px solid rgba(20, 29, 24, 0.12);
  border-radius: 12px;
  padding: 28px;
  background: var(--surface);
  text-align: center;
}

.wtc-demo__noscript p {
  margin: 0;
  color: var(--text);
  font-size: 18px;
}

.wtc-demo__noscript .button {
  margin-top: 18px;
}

@keyframes wtc-demo-overlay-in {
  from {
    opacity: 0;
    transform: translateY(7px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes wtc-demo-paste-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes wtc-demo-caret {
  0%,
  48% {
    opacity: 1;
  }

  49%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 980px) {
  .wtc-demo__heading {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .wtc-demo__heading h2,
  .wtc-demo__heading p {
    grid-row: auto;
    grid-column: auto;
  }

  .wtc-demo__shell {
    max-width: 720px;
    grid-template-columns: 1fr;
  }

  .wtc-demo__shortcut-bar {
    max-width: 720px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wtc-demo__shortcut-bar li:nth-child(4) {
    border-top: 1px solid var(--faint);
    border-left: 0;
  }

  .wtc-demo__shortcut-bar li:nth-child(5) {
    border-top: 1px solid var(--faint);
  }

  .wtc-demo__shortcut-bar li:nth-child(6) {
    border-top: 1px solid var(--faint);
  }

  .wtc-demo__guide-panel {
    min-height: 0;
  }

  .wtc-demo__guide {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(200px, 0.75fr);
    align-items: center;
    gap: 10px 24px;
  }

  .wtc-demo__guide-label,
  .wtc-demo__keyboard-hint {
    grid-column: 1 / -1;
  }

  .wtc-demo__instruction {
    margin: 0;
    font-size: 22px;
  }

  .wtc-demo__privacy-note {
    margin-top: 22px;
  }

  .wtc-demo__completion,
  .wtc-demo__custom-form {
    margin: 8px 0;
  }

  .wtc-demo__completion-actions,
  .wtc-demo__custom-actions {
    max-width: 360px;
  }
}

@media (max-width: 560px) {
  .wtc-demo {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .wtc-demo__heading {
    margin-bottom: 24px;
  }

  .wtc-demo__heading h2 {
    font-size: clamp(36px, 10.8vw, 44px);
  }

  .wtc-demo__heading p {
    max-width: 32ch;
    font-size: 15px;
  }

  .wtc-demo__shell {
    gap: 16px;
  }

  .wtc-demo__shortcut-bar {
    grid-template-columns: 1fr;
  }

  .wtc-demo__shortcut-bar li,
  .wtc-demo__shortcut-bar li:nth-child(4),
  .wtc-demo__shortcut-bar li:nth-child(5) {
    min-height: 48px;
    border-top: 1px solid var(--faint);
    border-left: 0;
  }

  .wtc-demo__shortcut-bar li:first-child {
    border-top: 0;
  }

  .wtc-demo__guide-panel {
    border-radius: 14px;
    padding: 20px;
  }

  .wtc-demo__progress {
    gap: 7px;
    padding-bottom: 20px;
  }

  .wtc-demo__step {
    gap: 5px;
    font-size: 10px;
  }

  .wtc-demo__step-marker {
    width: 26px;
    height: 26px;
  }

  .wtc-demo__guide {
    display: flex;
    align-items: stretch;
    gap: 0;
  }

  .wtc-demo__instruction {
    margin: 10px 0 18px;
    font-size: 21px;
  }

  .wtc-demo__keyboard-hint {
    margin-top: 12px;
    font-size: 11px;
  }

  .wtc-demo__workspace {
    min-height: 474px;
    border-radius: 14px;
  }

  .wtc-demo__mail-toolbar {
    min-height: 48px;
    grid-template-columns: 72px 1fr 40px;
    padding: 0 12px;
  }

  .wtc-demo__traffic-lights {
    gap: 5px;
  }

  .wtc-demo__traffic-lights span {
    width: 9px;
    height: 9px;
  }

  .wtc-demo__mail-toolbar > strong {
    font-size: 12px;
  }

  .wtc-demo__mail-tools svg {
    display: none;
  }

  .wtc-demo__mail-fields {
    padding: 0 14px;
  }

  .wtc-demo__mail-fields > div {
    min-height: 40px;
    grid-template-columns: 58px 1fr;
    font-size: 12px;
  }

  .wtc-demo__mail-body {
    min-height: 346px;
    padding: 18px 16px;
    font-size: 14px;
  }

  .wtc-demo__signature {
    bottom: 18px;
    left: 16px;
    font-size: 12px;
  }

  .wtc-demo__overlay-positioner {
    top: 52%;
    right: 10px;
    left: 10px;
    width: auto;
    transform: translateY(-50%);
  }

  .wtc-demo__overlay {
    width: 100%;
    gap: 9px;
    padding: 12px;
  }

  .wtc-demo__overlay-header {
    grid-template-columns: 32px minmax(0, 1fr) max-content 24px;
    gap: 8px;
  }

  .wtc-demo__overlay-spacer {
    display: none;
  }

  .wtc-demo__position-label {
    padding: 0 7px;
  }

  .wtc-demo__slot-rail {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 4px;
  }

  .wtc-demo__rail-item {
    width: 100%;
    min-width: 0;
    height: 32px;
  }

  .wtc-demo__overlay-footer {
    min-height: 28px;
    flex-wrap: wrap;
    gap: 6px 9px;
    overflow: visible;
    white-space: normal;
  }

  .wtc-demo__overlay-footer > span:nth-child(2),
  .wtc-demo__overlay-footer > span:nth-child(3) {
    display: none;
  }

  .wtc-demo__paste-control {
    margin-left: auto;
  }

  .wtc-demo__completion p {
    font-size: 22px;
  }

  .wtc-demo__completion-actions,
  .wtc-demo__custom-actions {
    max-width: none;
  }

  .wtc-demo__noscript {
    padding: 22px;
  }
}

@media (hover: none), (pointer: coarse), (max-width: 980px) {
  .wtc-demo__profile-rail {
    height: auto;
    min-height: 46px;
  }

  .wtc-demo__profile-item {
    height: 44px;
    padding: 0 11px;
  }

  .wtc-demo__slot-rail {
    display: flex;
    overflow-x: auto;
    padding: 1px 0 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .wtc-demo__slot-rail::-webkit-scrollbar {
    display: none;
  }

  .wtc-demo__rail-item {
    width: 44px;
    min-width: 44px;
    height: 44px;
  }

  .wtc-demo__paste-control {
    min-height: 44px;
    padding: 0 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wtc-demo__overlay,
  .wtc-demo__pasted-content p[data-new="true"],
  .wtc-demo__caret {
    animation: none !important;
  }

  .wtc-demo__primary-action {
    transition: none;
  }
}

/* The website demo depicts the supplied light overlay, not a glass surface. */
.wtc-demo {
  --wtc-app-accent: var(--accent);
  --wtc-app-accent-strong: var(--accent-strong);
  --wtc-app-text: var(--text);
  --wtc-app-secondary: var(--muted);
  --wtc-app-tertiary: var(--faint);
  --wtc-app-quaternary: var(--surface-tint);
  --wtc-app-surface: var(--surface);
}

.wtc-demo__guide-panel,
.wtc-demo__workspace,
.wtc-demo__shortcut-bar {
  border-color: var(--faint);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.wtc-demo__overlay {
  border-color: var(--faint);
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow: var(--shadow-overlay);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  animation-duration: 90ms;
}

.wtc-demo__primary-action,
.wtc-demo__buy-button {
  border-radius: var(--radius-button);
  background: var(--accent);
  box-shadow: none;
  transition-duration: var(--motion-standard);
}

.wtc-demo__primary-action:hover,
.wtc-demo__primary-action:focus-visible,
.wtc-demo__buy-button:hover,
.wtc-demo__buy-button:focus-visible {
  background: var(--accent-strong);
  box-shadow: none;
  transform: none;
}

.wtc-demo__overlay-title-icon,
.wtc-demo__profile-item,
.wtc-demo__rail-item,
.wtc-demo__paste-control,
.wtc-demo__custom-form textarea {
  border-radius: var(--radius-chip);
}

.wtc-demo__profile-item[aria-selected="true"],
.wtc-demo__rail-item[aria-selected="true"] {
  border-color: var(--accent);
  background: var(--surface-tint);
  color: var(--accent-strong);
}

.wtc-demo__paste-control {
  background: var(--accent);
}

.wtc-demo__paste-control:hover,
.wtc-demo__paste-control:focus-visible {
  background: var(--accent-strong);
}

.wtc-demo__shortcut-bar kbd,
.wtc-demo__overlay-footer,
.wtc-demo__position-label,
.wtc-demo__rail-item small {
  font-family: var(--wtc-mono);
}
