.ht-dialog {
  --ht-muted: #a2a6a4;
  --ht-line: #343936;
  --ht-accent: #d4ed59;
  position: fixed;
  inset: 0 0 0 auto;
  width: min(100%, 1000px);
  max-width: 1000px;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--ht-line);
  border-radius: 0;
  color: #f5f6f1;
  background: #101411;
  font-family: inherit;
  letter-spacing: 0;
  overflow: hidden;
  overscroll-behavior: contain;
}

.ht-dialog::backdrop {
  background: rgb(0 0 0 / 74%);
}

.ht-dialog-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.ht-dialog-bar {
  display: flex;
  flex: 0 0 84px;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  border-bottom: 1px solid var(--ht-line);
}

.ht-dialog-brand {
  font-size: 20px;
  font-weight: 700;
}

.ht-dialog .ht-icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--ht-line);
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}

.ht-dialog .ht-icon-button:hover {
  color: #101411;
  background: var(--ht-accent);
}

.ht-dialog .ht-icon-button svg {
  width: 20px;
  height: 20px;
}

.ht-dialog-content {
  flex: 1;
  min-height: 0;
  padding: 46px 48px max(48px, env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #667068 #101411;
  scrollbar-width: thin;
}

.ht-eyebrow {
  margin: 0 0 18px;
  color: var(--ht-accent);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.ht-dialog h2 {
  margin: 0;
  font-size: 36px;
  font-weight: 500;
  line-height: 1.25;
  overflow-wrap: anywhere;
  letter-spacing: 0;
}

.ht-dialog h2:focus {
  outline: none;
}

.ht-dialog-introduction {
  margin: 16px 0 32px;
  color: #d1d5d0;
  font-size: 17px;
  line-height: 1.8;
}

.ht-media {
  margin: 0 0 30px;
}

.ht-media video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #030504;
  object-fit: contain;
}

.ht-media figcaption {
  margin-top: 10px;
  color: var(--ht-muted);
  font-size: 11px;
  line-height: 1.5;
}

.ht-description {
  margin: 0 0 32px;
  max-width: 760px;
  color: #d1d5d0;
  font-size: 15px;
  line-height: 1.95;
}

.ht-capabilities {
  margin: 0 0 36px;
  border-top: 1px solid var(--ht-line);
}

.ht-capability-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--ht-line);
}

.ht-capability-row dt {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
}

.ht-capability-row dd {
  margin: 0;
  color: var(--ht-muted);
  font-size: 14px;
  line-height: 1.85;
}

.ht-dialog .ht-command {
  display: inline-flex;
  min-height: 50px;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 22px;
  border: 1px solid var(--ht-accent);
  border-radius: 0;
  color: #101411;
  background: var(--ht-accent);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.ht-dialog .ht-command:hover {
  border-color: #e6fa87;
  background: #e6fa87;
}

.ht-dialog .ht-command svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
}

.ht-dialog button:focus-visible,
.ht-dialog input:focus-visible,
.ht-dialog select:focus-visible,
.ht-dialog textarea:focus-visible {
  outline: 2px solid var(--ht-accent);
  outline-offset: 4px;
}

.ht-workflow {
  margin: 0 0 36px;
  padding: 0;
  border-top: 1px solid var(--ht-line);
  list-style: none;
}

.ht-workflow li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 20px;
  padding: 30px 0;
  border-bottom: 1px solid var(--ht-line);
}

.ht-step-number {
  color: var(--ht-accent);
  font-size: 13px;
  line-height: 1.9;
}

.ht-workflow h3 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.5;
}

.ht-workflow p {
  margin: 0 0 12px;
  color: var(--ht-muted);
  font-size: 14px;
  line-height: 1.85;
}

.ht-step-scope {
  color: #d1d5d0;
  font-size: 12px;
  line-height: 1.6;
}

.ht-brief-form {
  padding-top: 6px;
}

.ht-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 24px;
}

.ht-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
  color: #e7eae5;
  font-size: 14px;
  line-height: 1.5;
}

.ht-field small {
  margin-left: 8px;
  color: var(--ht-muted);
  font-size: 11px;
  font-weight: 400;
}

.ht-dialog .ht-field input,
.ht-dialog .ht-field select,
.ht-dialog .ht-field textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  margin: 0;
  padding: 13px 14px;
  border: 1px solid #525a54;
  border-radius: 0;
  color: #f5f6f1;
  background: #171d18;
  font: inherit;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0;
  color-scheme: dark;
}

.ht-dialog .ht-field select {
  appearance: auto;
}

.ht-dialog .ht-field textarea {
  min-height: 176px;
  resize: vertical;
}

.ht-dialog .ht-field input::placeholder,
.ht-dialog .ht-field textarea::placeholder {
  color: #909a92;
  opacity: 1;
}

.ht-field-wide {
  margin-top: 28px;
}

.ht-form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 32px;
}

.ht-form-status {
  margin: 0;
  color: #d1d5d0;
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .ht-dialog-bar {
    flex-basis: 72px;
    padding-inline: 22px;
  }

  .ht-dialog-content {
    padding: 32px 22px max(32px, env(safe-area-inset-bottom));
  }

  .ht-dialog h2 {
    font-size: 29px;
  }

  .ht-dialog-introduction {
    font-size: 15px;
  }

  .ht-capability-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding-block: 22px;
  }

  .ht-workflow li {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
  }

  .ht-form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .ht-dialog .ht-field input,
  .ht-dialog .ht-field select,
  .ht-dialog .ht-field textarea {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ht-dialog .ht-command,
  .ht-dialog .ht-icon-button {
    transition: none;
  }
}
