.entry-diagnosis {
  --entry-ink: var(--ink, #17191f);
  --entry-paper: #f7f9ff;
  --entry-white: var(--paper, #fff);
  --entry-blue: var(--blue, #3867ff);
  --entry-coral: var(--coral, #ff6f78);
  --entry-muted: var(--muted, #667084);
  --entry-line: var(--line, #d6deed);
  display: grid;
  grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr);
  gap: clamp(44px, 7vw, 112px);
  width: min(calc(100% - 24px), 1520px);
  margin: 12px auto 0;
  padding: clamp(76px, 8vw, 124px) var(--outer, clamp(20px, 3.4vw, 52px));
  border-radius: 42px;
  color: var(--entry-ink);
  background: var(--entry-paper);
  overflow: clip;
}

.entry-diagnosis *,
.entry-diagnosis *::before,
.entry-diagnosis *::after {
  box-sizing: border-box;
}

.entry-diagnosis [hidden] {
  display: none !important;
}

.entry-diagnosis-intro {
  position: relative;
  align-self: center;
  min-width: 0;
  padding-top: 26px;
  border-top: 1px solid var(--entry-line);
}

.entry-eyebrow {
  margin: 0 0 18px;
  color: var(--entry-blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.entry-diagnosis-intro h2,
.entry-result h3,
.entry-room-dialog h3 {
  margin: 0;
  color: var(--entry-ink);
  font-size: clamp(38px, 4.2vw, 64px);
  line-height: 1.02;
  letter-spacing: -.055em;
  word-break: keep-all;
}

.entry-diagnosis-intro > p:not(.entry-eyebrow) {
  max-width: 480px;
  margin: 28px 0 18px;
  color: #515b6d;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.7;
  word-break: keep-all;
}

.entry-diagnosis-intro > small {
  color: #737d8f;
  font-size: 12px;
}

.entry-diagnosis-workspace {
  position: relative;
  min-width: 0;
  border: 1px solid var(--entry-line);
  border-radius: 30px;
  background: var(--entry-white);
  box-shadow: 0 24px 70px rgba(42, 61, 102, .08);
  overflow: visible;
}

.entry-example {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 12px clamp(24px, 4vw, 56px);
  border-bottom: 1px solid var(--entry-line);
}

.entry-example > span {
  color: #6b7485;
  font-size: 11px;
  font-weight: 800;
}

.entry-example-trigger {
  display: grid;
  grid-template-columns: minmax(86px, .7fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  min-height: 48px;
  padding: 0 4px;
  border: 0;
  border-radius: 10px;
  color: var(--entry-ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background-color 180ms ease-out, color 180ms ease-out;
}

.entry-example-trigger strong,
.entry-example-trigger small,
.entry-example-trigger b {
  min-width: 0;
}

.entry-example-trigger strong {
  font-size: 14px;
}

.entry-example-trigger small {
  overflow: hidden;
  color: #6b7485;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry-example-trigger b {
  color: var(--entry-blue);
  font-size: 12px;
  white-space: nowrap;
}

.entry-example-trigger:focus-visible,
.entry-preview-close:focus-visible,
.entry-example-apply:focus-visible,
.entry-reset:focus-visible,
.entry-dialog-close:focus-visible {
  outline: 3px solid var(--entry-blue);
  outline-offset: 3px;
}

.entry-example-preview {
  position: absolute;
  z-index: 8;
  top: calc(100% - 2px);
  right: clamp(18px, 4vw, 44px);
  width: min(440px, calc(100% - 36px));
  padding: 24px;
  border: 1px solid #cbd5e7;
  border-radius: 20px;
  color: var(--entry-ink);
  background: var(--entry-white);
  box-shadow: 0 24px 64px rgba(29, 43, 75, .16);
}

.entry-example-preview header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.entry-example-preview header div {
  display: grid;
  gap: 4px;
}

.entry-example-preview header div span {
  color: var(--entry-blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

.entry-example-preview header strong {
  font-size: 24px;
  letter-spacing: -.03em;
}

.entry-preview-close,
.entry-example-apply {
  min-height: 48px;
  border: 0;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 140ms ease-out, background-color 180ms ease-out, color 180ms ease-out;
}

.entry-preview-close {
  flex: 0 0 auto;
  min-width: 64px;
  padding: 0 8px;
  border-radius: 10px;
  color: #4d5769;
  background: #eef2f8;
  font-size: 12px;
}

.entry-example-preview dl {
  display: grid;
  margin: 20px 0 14px;
  border-top: 1px solid var(--entry-line);
}

.entry-example-preview dl div {
  display: grid;
  grid-template-columns: minmax(96px, .6fr) minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--entry-line);
}

.entry-example-preview dt,
.entry-example-preview dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.entry-example-preview dt {
  color: #70798a;
}

.entry-example-preview dd {
  color: var(--entry-ink);
  font-weight: 750;
}

.entry-example-preview > p {
  margin: 0 0 16px;
  color: #697386;
  font-size: 11px;
  line-height: 1.6;
}

.entry-example-apply {
  width: 100%;
  padding: 0 18px;
  border-radius: 12px;
  color: #fff;
  background: var(--entry-ink);
}

.entry-form,
.entry-result {
  padding: clamp(24px, 4vw, 56px);
}

.entry-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 16px;
  transition: opacity 180ms ease-out;
}

.entry-diagnosis[data-example-open="true"] .entry-form {
  opacity: .16;
}

.entry-field {
  display: grid;
  gap: 10px;
}

.entry-field-optional {
  grid-column: 1 / -1;
}

.entry-field label {
  color: #3f4859;
  font-size: 12px;
  font-weight: 800;
}

.entry-field label span {
  color: #858b96;
  font-weight: 500;
}

.entry-field input {
  width: 100%;
  min-height: 60px;
  padding: 0 18px;
  border: 1px solid #d8deea;
  border-radius: 16px;
  outline: 0;
  color: var(--entry-ink);
  background: #f8faff;
  font: inherit;
  font-size: 15px;
}

.entry-field input:focus {
  border-color: var(--entry-blue);
  background: var(--entry-white);
  box-shadow: 0 0 0 3px rgba(56, 103, 255, .12);
}

.entry-primary,
.entry-secondary,
.entry-reset,
.entry-dialog-close,
.entry-preview-close,
.entry-example-apply {
  transition: transform 140ms ease-out, background-color 180ms ease-out, color 180ms ease-out, border-color 180ms ease-out;
  min-height: 52px;
  border: 0;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.entry-primary {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 56px;
  padding: 0 22px;
  border-radius: 999px;
  color: #fff;
  background: var(--entry-ink);
}

.entry-primary:focus-visible {
  background: var(--entry-blue);
}

.entry-primary:active,
.entry-secondary:active,
.entry-reset:active,
.entry-dialog-close:active {
  transform: scale(.97);
}

.entry-primary:disabled {
  cursor: wait;
  opacity: .72;
}

.entry-form-note,
.entry-service-status,
.entry-form-error {
  grid-column: 1 / -1;
  margin: -8px 0 0;
  color: #737d8f;
  font-size: 11px;
  line-height: 1.6;
}

.entry-service-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #535d70;
  font-weight: 700;
}

.entry-service-status::before {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--entry-blue);
  content: "";
}

.entry-service-status[data-state="hold"]::before {
  background: var(--entry-coral);
}

.entry-form-error {
  color: #b12e27;
  font-weight: 700;
}

.entry-result-header {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: start;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--entry-line);
}

.entry-result h3 {
  font-size: clamp(34px, 4.5vw, 56px);
}

.entry-result h3 em {
  color: var(--entry-coral);
  font-style: normal;
}

.entry-result:focus-visible {
  outline: 0;
  box-shadow: inset 0 3px 0 var(--entry-blue);
}

.entry-reset {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 4px;
  color: #566074;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.entry-result-grid {
  display: grid;
  grid-template-columns: 1fr;
  margin: 28px 0 24px;
}

.entry-result-card {
  display: grid;
  grid-template-columns: minmax(76px, .32fr) minmax(0, .78fr);
  gap: 6px 22px;
  min-height: 0;
  padding: 22px 0;
  border-top: 1px solid var(--entry-line);
}

.entry-result-card span {
  grid-row: 1 / 3;
  color: var(--entry-blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
}

.entry-result-card h4 {
  margin: 0;
  color: var(--entry-ink);
  font-size: 19px;
  line-height: 1.25;
  word-break: keep-all;
}

.entry-result-card p {
  margin: 0;
  color: #667084;
  font-size: 12px;
  line-height: 1.65;
  word-break: keep-all;
}

.entry-result-boundary {
  margin: 0 0 22px;
  padding: 16px 0 0;
  border-top: 1px solid var(--entry-line);
  color: #5b6578;
  font-size: 12px;
  line-height: 1.65;
}

.entry-room-dialog {
  width: min(600px, calc(100vw - 32px));
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--entry-line);
  border-radius: 28px;
  color: var(--entry-ink);
  background: var(--entry-white);
  box-shadow: 0 30px 90px rgba(20, 28, 48, .24);
}

.entry-room-dialog::backdrop {
  background: rgba(8, 10, 15, .72);
}

.entry-room-dialog h3 {
  font-size: clamp(30px, 5vw, 48px);
}

.entry-room-dialog > p:not(.entry-eyebrow) {
  margin: 24px 0;
  color: #5c6370;
  font-size: 14px;
  line-height: 1.75;
}

.entry-room-dialog ol {
  margin: 0 0 28px;
  padding: 20px 20px 20px 42px;
  border-radius: 18px;
  background: #f2f5ff;
}

.entry-room-dialog li {
  padding: 5px 0;
  font-size: 13px;
}

.entry-secondary {
  width: 100%;
  border-radius: 999px;
  color: var(--entry-ink);
  background: #eef0f4;
}

.entry-dialog-close {
  position: absolute;
  top: 12px;
  right: 16px;
  min-width: 76px;
  padding: 0 10px;
  border-radius: 10px;
  color: var(--entry-ink);
  background: #eef0f4;
  font-size: 13px;
}

@media (hover: hover) and (pointer: fine) {
  .entry-primary:hover,
  .entry-example-apply:hover {
    background: var(--entry-blue);
  }

  .entry-example-trigger:hover {
    background: #f2f5fb;
  }

  .entry-preview-close:hover,
  .entry-dialog-close:hover {
    color: #fff;
    background: var(--entry-ink);
  }
}

@media (max-width: 900px) {
  .entry-diagnosis {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .entry-diagnosis-intro {
    align-self: start;
  }
}

@media (max-width: 560px) {
  .entry-diagnosis {
    width: calc(100% - 12px);
    margin-top: 6px;
    padding: 24px 18px 44px;
    border-radius: 30px;
    gap: 16px;
  }

  .entry-diagnosis-intro {
    padding-top: 14px;
  }

  .entry-eyebrow {
    margin-bottom: 10px;
  }

  .entry-diagnosis-intro > p:not(.entry-eyebrow) {
    margin: 16px 0 10px;
  }

  .entry-diagnosis-intro h2 {
    font-size: clamp(34px, 10.2vw, 42px);
    line-height: 1.06;
  }

  .entry-diagnosis-workspace {
    border-radius: 24px;
    box-shadow: 0 18px 46px rgba(42, 61, 102, .08);
  }

  .entry-form,
  .entry-result {
    padding: 24px 18px 26px;
  }

  .entry-example {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 10px 18px;
  }

  .entry-example > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .entry-example-trigger {
    grid-template-columns: minmax(82px, .7fr) minmax(0, 1fr) auto;
    gap: 8px;
    padding: 0;
  }

  .entry-example-trigger small {
    font-size: 11px;
  }

  .entry-example-preview {
    top: calc(100% - 12px);
    right: 10px;
    width: calc(100% - 20px);
    max-height: min(520px, calc(100vh - 32px));
    padding: 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .entry-form,
  .entry-result-grid {
    grid-template-columns: 1fr;
  }

  .entry-form {
    gap: 14px;
  }

  .entry-field-optional {
    grid-column: auto;
  }

  .entry-result-header {
    display: grid;
  }

  .entry-reset {
    justify-self: start;
  }

  .entry-result-card {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 0;
  }

  .entry-result-card span {
    grid-row: auto;
  }

  .entry-result-card h4 {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .entry-primary,
  .entry-secondary,
  .entry-reset,
  .entry-dialog-close {
    transition-duration: .01ms;
    transform: none;
  }

  .entry-example-trigger,
  .entry-preview-close,
  .entry-example-apply,
  .entry-form {
    transition-duration: .01ms;
    transform: none;
  }
}
