.app-card:not(.home-active) {
  width: min(100%, 430px);
  max-height: calc(100svh - 8px);
  aspect-ratio: 863 / 1822;
  border: 0;
  border-radius: 0;
  background: #fffefb;
  box-shadow: 0 18px 48px rgba(54, 43, 30, 0.08);
}

.app-card:not(.home-active) .workflow-chrome {
  position: relative;
  gap: 0;
  padding: 13px 18px 8px;
  border-bottom: 0;
  background: linear-gradient(180deg, #fffefb 0%, rgba(255, 254, 251, 0.96) 100%);
  backdrop-filter: none;
}

.app-card:not(.home-active) .workflow-copy {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 32px;
  padding: 0;
}

.app-card:not(.home-active) #currentStepText {
  color: #101112;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.app-card:not(.home-active) #statusTitle,
.app-card:not(.home-active) #statusBody,
.app-card:not(.home-active) .meter {
  display: none;
}

.app-card:not(.home-active) .back-button {
  top: 15px;
  left: 18px;
  width: 26px;
  height: 30px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #111;
  font-size: 38px;
  font-weight: 400;
  line-height: 0.72;
}

.app-card:not(.home-active) .back-button:hover {
  color: var(--home-green);
}

.app-card:not(.home-active) .step-dots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  align-items: start;
  margin: 10px 40px 0;
  padding: 0;
}

.app-card:not(.home-active) .step-dots li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 7px;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: #90918d;
  transition: color 180ms ease;
}

.app-card:not(.home-active) .step-dots li:not(:last-child)::after {
  position: absolute;
  top: 12px;
  left: calc(50% + 22px);
  width: calc(100% - 44px);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--home-green) var(--link-progress, 0%), #ece9e4 0);
  content: "";
  transition: background 280ms ease;
}

.step-index {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1.5px solid #dfddd8;
  border-radius: 999px;
  background: #fffefb;
  color: #737471;
  font-size: 14px;
  font-weight: 700;
}

.step-label {
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.app-card:not(.home-active) .step-dots li.active {
  width: auto;
  background: transparent;
  color: var(--home-green);
}

.app-card:not(.home-active) .step-dots li.completed {
  color: #192724;
}

.app-card:not(.home-active) .step-dots li.active .step-index {
  border-color: var(--home-green);
  background: var(--home-green);
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 139, 83, 0.2);
}

.app-card:not(.home-active) .step-dots li.completed .step-index {
  border-color: var(--home-green);
  color: var(--home-green);
}

.app-card:not(.home-active) .scene {
  padding: 8px 18px calc(8px + env(safe-area-inset-bottom));
  background: #fffefb;
}

.analysis-flow {
  align-content: start;
  gap: 0;
  justify-items: stretch;
  min-width: 0;
  min-height: 100%;
}

.upload-page-note {
  display: flex;
  gap: 10px;
  align-items: center;
  max-width: 100%;
  min-height: 28px;
  margin: 0 22px 8px;
  color: #70736f;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
}

.upload-page-note svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: var(--home-green);
}

.scene-analysis .dropzone {
  display: grid;
  place-items: center;
  gap: 0;
  justify-self: stretch;
  min-width: 0;
  max-width: 100%;
  min-height: 292px;
  padding: 18px 12px 22px;
  border: 1.4px dashed rgba(15, 139, 83, 0.46);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 0 0 1px rgba(15, 139, 83, 0.02);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.scene-analysis .dropzone:hover {
  border-color: rgba(15, 139, 83, 0.72);
  box-shadow: inset 0 0 0 1px rgba(15, 139, 83, 0.06), 0 16px 34px rgba(15, 139, 83, 0.1);
}

.scene-analysis .dropzone:active {
  transform: scale(0.995);
}

.scene-analysis .upload-ghost {
  top: 28px;
  width: min(72%, 286px);
  opacity: 0.105;
  filter: grayscale(1);
}

.scene-analysis .upload-ghost::after {
  position: absolute;
  top: -2px;
  right: -31px;
  color: #cbc9c3;
  font-size: 16px;
  font-weight: 600;
  content: "北  ◇";
  writing-mode: vertical-rl;
}

.scene-analysis .dropzone .upload-icon {
  position: relative;
  z-index: 1;
  width: 62px;
  height: 62px;
  margin-top: 43px;
  color: var(--home-green);
  filter: drop-shadow(0 9px 16px rgba(15, 139, 83, 0.12));
}

.scene-analysis .dropzone .upload-title {
  margin-top: 8px;
  color: #101112;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.12;
}

.scene-analysis .dropzone .upload-format,
.scene-analysis .dropzone .upload-limit {
  color: #4f5550;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
}

.upload-tips {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 17px;
}

.upload-tips span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid rgba(15, 139, 83, 0.1);
  border-radius: 999px;
  background: rgba(247, 250, 245, 0.9);
  color: #218360;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(54, 43, 30, 0.06);
}

.upload-tips svg {
  width: 18px;
  height: 18px;
}

.scene-analysis .dropzone.has-preview {
  min-height: 292px;
  padding: 12px;
}

.scene-analysis .dropzone #previewImage:not([hidden]) {
  width: 100%;
  height: 266px;
  object-fit: contain;
  border-radius: 14px;
}

.scene-analysis .dropzone.has-preview .upload-tips {
  display: none;
}

.analysis-flow.is-recognized .upload-page-note,
.analysis-flow.is-recognized .dropzone,
.analysis-flow.is-recognized .upload-example-card,
.analysis-flow.is-task-resume .upload-page-note,
.analysis-flow.is-task-resume .dropzone,
.analysis-flow.is-task-resume .upload-example-card,
.analysis-flow.is-recognized .upload-page-cta {
  display: none;
}
