:root {
  --gl-ink-black: #0b0b0d;
  --gl-ink: #111114;
  --gl-signal-red: #c1121f;
  --gl-warm-white: #f7f3ee;
  --gl-paper: #fffdf9;
  --gl-bone: #efe8df;
  --gl-ash: #a6a6a6;
  --gl-mid-grey: #696970;
  --gl-line: #d8d1c9;
  --gl-line-strong: #bdb5ac;
  font-family: Inter, "Noto Sans", Arial, system-ui, sans-serif;
  color: var(--gl-ink);
  background: var(--gl-warm-white);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--gl-warm-white);
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--gl-warm-white);
  -webkit-tap-highlight-color: rgb(193 18 31 / 16%);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  touch-action: manipulation;
}

a {
  color: inherit;
  touch-action: manipulation;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: var(--gl-warm-white);
  background: var(--gl-ink-black);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-header,
main {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.app-header {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  flex: 0 0 auto;
}

.brand strong {
  font-size: 1rem;
  line-height: 1;
}

.header-tools,
.medical-notice {
  display: flex;
  align-items: center;
}

.header-tools {
  gap: 24px;
}

.medical-notice {
  gap: 7px;
  color: var(--gl-mid-grey);
  font-size: 0.75rem;
}

.medical-notice > span {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--gl-signal-red);
}

.medical-notice strong {
  color: var(--gl-ink);
  font-size: inherit;
}

.medical-notice small {
  font-size: inherit;
}

.developer-link,
.article-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
}

.developer-link {
  padding-inline: 14px;
  border: 1px solid var(--gl-ink);
  border-radius: 4px;
}

.article-link {
  border-bottom: 1px solid var(--gl-ink);
}

.developer-link:hover,
.developer-link:focus-visible,
.article-link:hover,
.article-link:focus-visible {
  border-color: var(--gl-signal-red);
  color: var(--gl-signal-red);
}

main {
  padding: 0 0 28px;
}

.workflow {
  overflow: clip;
  border: 1px solid var(--gl-line-strong);
  border-radius: 8px;
  background: var(--gl-paper);
  box-shadow: 0 16px 48px rgb(11 11 13 / 6%);
}

.workflow-header {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 15px 22px;
  border-bottom: 1px solid var(--gl-line);
}

.workflow-header > div {
  display: grid;
  gap: 4px;
}

.eyebrow {
  color: var(--gl-signal-red);
  font-family: "Noto Sans Mono", "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
}

.workflow-header h1 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 720;
  line-height: 1.15;
}

.workflow-steps {
  display: flex;
  margin: 0;
  padding: 0;
  color: var(--gl-mid-grey);
  font-size: 0.76rem;
  list-style: none;
}

.workflow-steps li {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.workflow-steps li + li::before {
  width: 28px;
  height: 1px;
  margin: 0 12px;
  background: var(--gl-line);
  content: "";
}

.workflow-steps li > span {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--gl-line-strong);
  border-radius: 50%;
  background: var(--gl-paper);
  font-family: "Noto Sans Mono", "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
}

.workflow-steps li[aria-current="step"] {
  color: var(--gl-ink);
  font-weight: 700;
}

.workflow-steps li[aria-current="step"] > span {
  border-color: var(--gl-signal-red);
  color: var(--gl-warm-white);
  background: var(--gl-signal-red);
}

.workflow[data-step="settings"] .workflow-steps li[data-step-name="upload"],
.workflow[data-step="result"] .workflow-steps li:not([data-step-name="result"]) {
  color: var(--gl-ink);
}

.workflow[data-step="settings"]
  .workflow-steps
  li[data-step-name="upload"]
  > span,
.workflow[data-step="result"]
  .workflow-steps
  li:not([data-step-name="result"])
  > span {
  border-color: var(--gl-ink);
  color: var(--gl-warm-white);
  background: var(--gl-ink);
}

.entry-stage {
  display: grid;
  min-height: 508px;
  gap: 24px;
  padding: 24px;
  grid-template-columns: minmax(0, 1fr) 320px;
}

.upload-panel {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 460px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 40px;
  border: 1px dashed var(--gl-line-strong);
  border-radius: 6px;
  background: var(--gl-warm-white);
  text-align: center;
}

.upload-panel:hover,
.upload-panel:focus-within,
.upload-panel.is-dragging {
  border-color: var(--gl-signal-red);
  background: #fffaf5;
  box-shadow: inset 0 0 0 1px var(--gl-signal-red);
}

.upload-panel input {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  opacity: 0;
}

.upload-panel > :not(input) {
  pointer-events: none;
}

.upload-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  place-items: center;
  border: 1px solid var(--gl-ink);
  border-radius: 6px;
  color: var(--gl-ink);
  background: var(--gl-paper);
}

.upload-icon svg {
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.upload-copy {
  display: grid;
  max-width: 470px;
  gap: 8px;
  margin-bottom: 22px;
}

.upload-copy strong {
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  font-weight: 700;
  line-height: 1.15;
}

.upload-copy > span {
  color: var(--gl-mid-grey);
  font-size: 0.88rem;
  line-height: 1.45;
}

.upload-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-bottom: 13px;
  padding: 12px 21px;
  border: 1px solid var(--gl-ink-black);
  border-radius: 5px;
  color: var(--gl-warm-white);
  background: var(--gl-ink-black);
  font-size: 0.86rem;
  font-weight: 740;
}

.upload-panel:hover .upload-button,
.upload-panel:focus-within .upload-button,
.upload-panel.is-dragging .upload-button {
  border-color: var(--gl-signal-red);
  background: var(--gl-signal-red);
}

.upload-formats,
.upload-privacy {
  color: var(--gl-mid-grey);
  font-size: 0.75rem;
  line-height: 1.45;
}

.upload-privacy {
  margin-top: 4px;
}

.inline-error {
  margin: 0;
  padding: 9px 11px;
  border-left: 2px solid var(--gl-signal-red);
  color: var(--gl-signal-red);
  background: rgb(193 18 31 / 5%);
  font-size: 0.78rem;
  line-height: 1.4;
}

.upload-panel > .inline-error {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
}

.sample-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 10px 0;
}

.sample-heading {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}

.sample-heading h2 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.25;
}

.sample-button {
  display: grid;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--gl-line-strong);
  border-radius: 6px;
  color: var(--gl-ink);
  background: var(--gl-paper);
  text-align: left;
}

.sample-button:hover,
.sample-button:focus-visible {
  border-color: var(--gl-signal-red);
  box-shadow: 0 8px 24px rgb(11 11 13 / 8%);
}

.sample-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.sample-image {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--gl-bone);
}

.sample-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 200ms ease;
  transform-origin: center;
}

.sample-button:hover .sample-image img {
  transform: scale(1.015);
}

.sample-action {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border-top: 1px solid var(--gl-line);
  font-size: 0.82rem;
}

.sample-action > span {
  color: var(--gl-signal-red);
  font-size: 1.1rem;
}

.sample-button:hover .sample-action strong,
.sample-button:focus-visible .sample-action strong {
  color: var(--gl-signal-red);
}

.sample-source {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: var(--gl-mid-grey);
  font-size: 0.72rem;
}

.sample-source a {
  min-height: 32px;
  align-content: center;
  text-underline-offset: 3px;
}

.sample-source a:hover,
.sample-source a:focus-visible {
  color: var(--gl-signal-red);
}

.sample-panel > .inline-error {
  margin-top: 10px;
}

.analysis-stage {
  display: grid;
  min-height: 560px;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
}

.preview-pane {
  display: grid;
  min-width: 0;
  padding: 22px;
  background: var(--gl-bone);
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.pane-header {
  display: flex;
  min-height: 54px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 15px;
}

.pane-header > div {
  display: grid;
  gap: 5px;
}

.pane-header h2 {
  margin: 0;
  font-size: 1.12rem;
}

.text-button {
  min-height: 44px;
  padding: 7px 0;
  border: 0;
  border-bottom: 1px solid currentcolor;
  color: var(--gl-ink);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 650;
}

.text-button:hover,
.text-button:focus-visible {
  color: var(--gl-signal-red);
}

.preview-canvas {
  display: grid;
  min-width: 0;
  min-height: 390px;
  overflow: hidden;
  place-items: center;
  border-radius: 5px;
  background: #171719;
}

.preview-canvas img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 440px;
  object-fit: contain;
}

.file-name {
  min-width: 0;
  margin: 0;
  padding-top: 13px;
  overflow: hidden;
  color: var(--gl-mid-grey);
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inspector {
  min-width: 0;
  border-left: 1px solid var(--gl-line);
  background: var(--gl-paper);
}

.inspector-view {
  display: flex;
  min-height: 560px;
  flex-direction: column;
  padding: clamp(28px, 3.4vw, 42px);
}

.inspector-heading,
.result-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 26px;
}

.inspector-heading h2,
.result-heading h2,
.loading-state h2,
.error-state h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.16;
}

.mode-fieldset {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.mode-option {
  display: grid;
  min-width: 0;
  min-height: 82px;
  gap: 14px;
  align-items: center;
  padding: 15px 16px;
  border: 1px solid var(--gl-line);
  border-radius: 6px;
  background: var(--gl-paper);
  cursor: pointer;
  grid-template-columns: auto minmax(0, 1fr);
}

.mode-option:hover {
  border-color: var(--gl-line-strong);
  background: var(--gl-warm-white);
}

.mode-option:has(input:checked) {
  border-color: var(--gl-signal-red);
  background: rgb(193 18 31 / 4%);
  box-shadow: inset 3px 0 0 var(--gl-signal-red);
}

.mode-option input {
  width: 19px;
  height: 19px;
  margin: 0;
  accent-color: var(--gl-signal-red);
}

.mode-option > span {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.mode-option strong {
  font-size: 0.9rem;
}

.mode-option small {
  color: var(--gl-mid-grey);
  font-size: 0.75rem;
  line-height: 1.4;
}

.mode-option:focus-within {
  outline: 2px solid var(--gl-signal-red);
  outline-offset: 2px;
}

.control-actions {
  margin-top: auto;
  padding-top: 26px;
}

.turnstile-container {
  min-width: 0;
}

.verification-status {
  display: flex;
  min-height: 24px;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--gl-mid-grey);
  font-size: 0.73rem;
}

.verification-status > span {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--gl-ash);
}

.verification-status b {
  font-weight: 500;
}

.verification-status[data-state="ready"] {
  color: var(--gl-ink);
}

.verification-status[data-state="ready"] > span {
  background: var(--gl-ink);
}

.verification-status[data-state="error"] {
  color: var(--gl-signal-red);
}

.verification-status[data-state="error"] > span {
  background: var(--gl-signal-red);
}

.control-actions > .inline-error {
  margin-bottom: 10px;
}

.primary-button,
.secondary-button {
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 5px;
  font-size: 0.84rem;
  font-weight: 740;
}

.primary-button {
  border: 1px solid var(--gl-ink-black);
  color: var(--gl-warm-white);
  background: var(--gl-ink-black);
}

.primary-button:hover:not(:disabled),
.primary-button:focus-visible:not(:disabled) {
  border-color: var(--gl-signal-red);
  background: var(--gl-signal-red);
}

.primary-button:disabled {
  border-color: var(--gl-line);
  color: var(--gl-mid-grey);
  background: var(--gl-bone);
  cursor: wait;
}

.control-actions .primary-button {
  width: 100%;
}

.secondary-button {
  border: 1px solid var(--gl-line-strong);
  color: var(--gl-ink);
  background: transparent;
}

.secondary-button:hover,
.secondary-button:focus-visible {
  border-color: var(--gl-ink);
  background: var(--gl-warm-white);
}

.loading-state,
.error-state {
  justify-content: center;
}

.loading-state h2 {
  margin: 10px 0 34px;
}

.result-skeleton {
  display: grid;
  gap: 13px;
}

.result-skeleton i {
  display: block;
  height: 12px;
  border-radius: 3px;
  background: var(--gl-bone);
  animation: skeleton-pulse 1.2s ease-in-out infinite alternate;
}

.result-skeleton i:nth-child(1) {
  width: 74%;
  height: 34px;
}

.result-skeleton i:nth-child(2) {
  width: 100%;
}

.result-skeleton i:nth-child(3) {
  width: 90%;
}

.result-skeleton i:nth-child(4) {
  width: 82%;
}

@keyframes skeleton-pulse {
  from {
    opacity: 0.45;
  }
  to {
    opacity: 1;
  }
}

.error-state p {
  margin: 14px 0 28px;
  color: var(--gl-signal-red);
  line-height: 1.5;
}

.result-heading {
  padding-left: 14px;
  border-left: 3px solid var(--gl-ink);
}

.result-view[data-risk="high"] .result-heading {
  border-color: var(--gl-signal-red);
}

.result-notice {
  margin: 0 0 20px;
  padding: 11px 13px;
  border-radius: 4px;
  color: #45454b;
  background: var(--gl-warm-white);
  font-size: 0.76rem;
  line-height: 1.45;
}

.confidence-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--gl-line);
  border-bottom: 1px solid var(--gl-line);
}

.confidence-row span {
  color: var(--gl-mid-grey);
  font-size: 0.78rem;
}

.confidence-row strong,
.probability-item strong {
  font-family: "Noto Sans Mono", "IBM Plex Mono", monospace;
  font-variant-numeric: tabular-nums;
}

.confidence-row strong {
  font-size: 1.18rem;
}

.probability-list {
  display: grid;
  gap: 11px;
  margin: 20px 0;
}

.probability-item {
  display: grid;
  min-width: 0;
  gap: 6px 14px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.probability-item span {
  min-width: 0;
  overflow: hidden;
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.probability-item strong {
  font-size: 0.72rem;
}

.probability-track {
  height: 5px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--gl-bone);
  grid-column: 1 / -1;
}

.probability-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--gl-ink);
}

.result-view[data-risk="high"]
  .probability-item:first-child
  .probability-track
  i {
  background: var(--gl-signal-red);
}

.result-actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  grid-template-columns: 1fr 1fr;
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 16px 2px 0;
}

.publication-link {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.document-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 4px;
  color: var(--gl-warm-white);
  background: var(--gl-ink);
  font-family: "Noto Sans Mono", "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  font-weight: 700;
}

.publication-link > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.publication-link small,
.authors > span {
  color: var(--gl-signal-red);
  font-family: "Noto Sans Mono", "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  font-weight: 700;
}

.publication-link strong {
  font-size: 0.8rem;
  line-height: 1.3;
}

.publication-link b {
  color: var(--gl-signal-red);
  font-size: 1.05rem;
}

.publication-link:hover strong,
.publication-link:focus-visible strong {
  color: var(--gl-signal-red);
}

.publication-link:hover .document-mark,
.publication-link:focus-visible .document-mark {
  background: var(--gl-signal-red);
}

.authors {
  max-width: 600px;
  margin: 0;
  color: var(--gl-mid-grey);
  font-size: 0.74rem;
  line-height: 1.5;
  text-align: right;
}

.authors > span {
  margin-right: 7px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gl-signal-red);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .medical-notice small {
    display: none;
  }

  .entry-stage {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .analysis-stage {
    grid-template-columns: minmax(0, 1fr) 360px;
  }

  .inspector-view {
    padding: 28px;
  }
}

@media (max-width: 720px) {
  .app-header,
  main {
    width: calc(100% - 24px);
  }

  .app-header {
    min-height: 60px;
    gap: 14px;
  }

  .brand {
    gap: 8px;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .brand strong {
    font-size: 0.92rem;
  }

  .header-tools {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: end;
    column-gap: 12px;
    row-gap: 2px;
  }

  .medical-notice {
    grid-column: 1 / -1;
    justify-self: end;
    font-size: 0.68rem;
  }

  .developer-link,
  .article-link {
    min-height: 40px;
    font-size: 0.68rem;
  }

  .developer-link {
    padding-inline: 10px;
  }

  .workflow-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
    padding: 15px 17px;
  }

  .workflow-steps {
    width: 100%;
    justify-content: space-between;
    font-size: 0.7rem;
  }

  .workflow-steps li + li::before {
    width: clamp(8px, 6vw, 28px);
    margin: 0 clamp(5px, 2vw, 12px);
  }

  .workflow-steps li > span {
    width: 22px;
    height: 22px;
  }

  .entry-stage {
    min-height: 0;
    gap: 20px;
    padding: 16px;
    grid-template-columns: 1fr;
  }

  .upload-panel {
    min-height: 330px;
    padding: 30px 22px;
  }

  .upload-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 17px;
  }

  .upload-copy {
    gap: 6px;
    margin-bottom: 18px;
  }

  .upload-copy strong {
    max-width: 330px;
    font-size: clamp(1.35rem, 6vw, 1.65rem);
  }

  .upload-copy > span {
    font-size: 0.8rem;
  }

  .sample-panel {
    display: grid;
    padding: 0 0 4px;
  }

  .sample-heading {
    margin-bottom: 12px;
  }

  .sample-button {
    grid-template-columns: 132px minmax(0, 1fr);
  }

  .sample-image {
    height: 116px;
    aspect-ratio: auto;
  }

  .sample-action {
    min-height: 116px;
    align-content: center;
    padding: 16px;
    border-top: 0;
    border-left: 1px solid var(--gl-line);
  }

  .analysis-stage {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .preview-pane {
    padding: 16px;
  }

  .preview-canvas {
    min-height: 0;
    height: 210px;
  }

  .preview-canvas img {
    max-height: none;
  }

  .inspector {
    border-top: 1px solid var(--gl-line);
    border-left: 0;
  }

  .inspector-view {
    min-height: 350px;
    padding: 24px 22px;
  }

  .inspector-heading,
  .result-heading {
    margin-bottom: 20px;
  }

  .mode-option {
    min-height: 72px;
    padding-block: 12px;
  }

  .control-actions {
    padding-top: 20px;
  }

  .result-actions {
    grid-template-columns: 1fr;
  }

  .workflow[data-step="result"] .preview-pane {
    min-height: 0;
    align-items: center;
    gap: 5px 14px;
    padding: 12px 16px;
    grid-template-columns: 88px minmax(0, 1fr);
    grid-template-rows: auto auto;
  }

  .workflow[data-step="result"] .pane-header {
    min-width: 0;
    min-height: 0;
    align-items: center;
    padding: 0;
    grid-column: 2;
    grid-row: 1;
  }

  .workflow[data-step="result"] .pane-header h2 {
    font-size: 0.95rem;
  }

  .workflow[data-step="result"] .preview-canvas {
    width: 88px;
    height: 88px;
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .workflow[data-step="result"] .file-name {
    padding: 0;
    grid-column: 2;
    grid-row: 2;
  }

  .project-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 15px 2px 0;
  }

  .authors {
    max-width: none;
    font-size: 0.72rem;
    text-align: left;
  }
}

@media (max-width: 440px) {
  .medical-notice > span {
    display: none;
  }

  .medical-notice {
    max-width: 90px;
    line-height: 1.15;
    text-align: right;
  }

  .workflow-steps li {
    gap: 5px;
  }

  .workflow-steps li + li::before {
    width: 8px;
    margin-inline: 5px;
  }

  .sample-button {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .sample-image,
  .sample-action {
    height: 104px;
    min-height: 104px;
  }

  .sample-source {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }

  .result-heading h2 {
    font-size: 1.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sample-image img,
  .sample-button {
    transition: none;
  }

  .result-skeleton i {
    animation: none;
  }
}
