:root {
  --ink: #102c41;
  --muted: #516471;
  --blue: #205d88;
  --blue-dark: #17486a;
  --blue-soft: #e8f2f6;
  --cyan: #0891b2;
  --violet: #6d5df6;
  --indigo: #4338ca;
  --green: #0f9f77;
  --green-soft: #e8f7f1;
  --orange: #d97706;
  --orange-soft: #fff4e5;
  --red: #c2410c;
  --red-soft: #fff0eb;
  --line: #dbe4ef;
  --surface: #ffffff;
  --background: #eff5f7;
  --campus-gold: #f4d68e;
  --shadow: 0 18px 50px rgba(23, 43, 77, 0.08);
  --shadow-strong: 0 26px 64px rgba(23, 43, 77, 0.16);
  --grad-brand: linear-gradient(135deg, #205d88, #236d76);
  --grad-soft: linear-gradient(135deg, #eaf2ff 0%, #f3ecff 100%);
  --radius-lg: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  max-width: 100%;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--background);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  line-height: 1.65;
}

button,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 3px;
}

/* 校园首屏：文字压在左侧，保留主楼和湖面。 */
.hero-zone {
  --campus-mid-shade: rgba(16, 44, 65, .36);
  position: relative;
  z-index: 1;
  color: #fff;
  background-color: var(--ink);
  background-image:
    linear-gradient(180deg, rgba(10, 28, 42, .72), rgba(10, 28, 42, .44) 66px, transparent 145px),
    linear-gradient(90deg, rgba(16, 44, 65, .98) 0%, rgba(16, 44, 65, .92) 27%, var(--campus-mid-shade) 49%, transparent 68%),
    url("./background/zzu.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.page-shell,
.input-card,
.action-panel,
.mode-note,
.mode-note > div {
  min-width: 0;
}

/* ============ 顶栏 ============ */
.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  border-bottom: 1px solid rgba(219, 228, 239, 0.72);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
}

.hero-zone .site-header {
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  text-decoration: none;
}

.hero-zone .brand {
  color: #fff;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: var(--grad-brand);
  font-size: 18px;
  font-weight: 800;
  box-shadow:
    0 8px 22px rgba(37, 99, 235, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.brand-mark::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.35), transparent 55%);
  content: "";
  pointer-events: none;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
  line-height: 1.25;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.hero-zone .brand small {
  color: #9fb2d0;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.hero-zone .header-meta {
  color: #b8c7e0;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(15, 159, 119, 0.12);
}

/* ============ Hero ============ */
.hero {
  display: flex;
  align-items: center;
  min-height: 530px;
  padding: 68px 0 118px;
}

.hero-main {
  min-width: 0;
  max-width: min(48%, 540px);
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(36px, 3.85vw, 60px);
  line-height: 1.22;
  font-weight: 800;
  text-wrap: balance;
}

.hero-copy {
  max-width: 29em;
  margin: 0;
  color: #edf5f8;
  font-size: 16px;
  line-height: 1.85;
}

.hero-cta {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding: 12px 21px;
  border-radius: 10px;
  color: var(--ink);
  background: var(--campus-gold);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.hero-cta:hover { background: #ffe5a9; }
.hero-zone a:focus-visible { outline-color: var(--campus-gold); }
.hero-cta span { font-size: 18px; }

/* ============ 步骤条（重叠） ============ */
.journey-steps {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: -58px 0 58px;
  padding: 0;
  list-style: none;
}

.journey-steps li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 0 13px;
  align-items: center;
  padding: 19px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(16, 44, 65, .1);
}

.journey-steps span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  font-size: 13px;
  font-weight: 800;
}

.journey-steps strong {
  font-size: 14px;
}

.journey-steps small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

/* ============ 工作区 ============ */
.workspace-heading {
  position: relative;
  margin: 0 0 26px;
  padding-left: 18px;
}

.workspace-heading::before {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  width: 4px;
  border-radius: 99px;
  background: var(--grad-brand);
  content: "";
}

.workspace-heading span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.workspace-heading h2 {
  margin: 6px 0 8px;
  font-size: 30px;
  letter-spacing: -0.02em;
}

.workspace-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.input-card {
  --card-accent: linear-gradient(90deg, #3b82f6, #22d3ee);
  --card-accent-soft: rgba(59, 130, 246, 0.1);
  position: relative;
  display: flex;
  min-height: 450px;
  flex-direction: column;
  overflow: hidden;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: 26px 26px 26px 72px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.input-card:nth-child(2) {
  --card-accent: linear-gradient(90deg, #8b5cf6, #ec4899);
  --card-accent-soft: rgba(139, 92, 246, 0.1);
  margin-top: 36px;
  border-radius: 72px 26px 26px 26px;
}

.input-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: var(--card-accent);
  content: "";
}

.input-card::after {
  position: absolute;
  top: -70px;
  right: -70px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--card-accent-soft), transparent 70%);
  pointer-events: none;
  content: "";
}

.input-card:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: var(--shadow-strong);
}

.card-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: -6px 0 14px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #47586e;
  background: #f4f7fb;
  font-size: 11px;
}

.card-hint i {
  font-style: normal;
  color: var(--blue);
  font-weight: 800;
}

.input-card:nth-child(2) .card-hint i {
  color: #8b5cf6;
}

.input-card:nth-child(2) .step-number {
  color: #6d28d9;
  background: linear-gradient(135deg, #f3ecff, #fdf0f8);
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.16);
}

.card-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.step-number {
  display: grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  color: var(--blue-dark);
  background: var(--grad-soft);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
  font-size: 13px;
  font-weight: 800;
}

.card-heading h2 {
  margin: 1px 0 4px;
  font-size: 21px;
  line-height: 1.3;
}

.card-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 258px;
  flex: 1;
  resize: vertical;
  padding: 17px;
  border: 1px solid #d7e1ed;
  border-radius: 15px;
  color: var(--ink);
  background: #fbfcff;
  font-size: 14px;
  line-height: 1.8;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

textarea::placeholder {
  color: #98a2b3;
}

textarea:focus {
  border-color: #9bbcf9;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.input-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 2px 0;
  color: #98a2b3;
  font-size: 12px;
}

.text-button {
  padding: 0;
  border: 0;
  color: var(--blue);
  background: none;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.text-button:hover {
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.future-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed #dce5f0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.future-note span {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 6px;
  color: #475467;
  background: #eef2f7;
  font-size: 10px;
  font-weight: 800;
}

/* ============ 操作面板 ============ */
.action-panel {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  margin-top: 20px;
  padding: 22px 24px;
  border: 1.5px solid transparent;
  border-radius: 22px;
  background:
    linear-gradient(120deg, rgba(238, 244, 255, 0.9), rgba(248, 240, 255, 0.9)) padding-box,
    linear-gradient(120deg, #3b82f6, #8b5cf6 50%, #ec4899) border-box;
  box-shadow: var(--shadow);
}

.mode-note {
  display: flex;
  align-items: center;
  gap: 13px;
}

.mode-badge {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--orange);
  background: var(--orange-soft);
  font-size: 11px;
  font-weight: 800;
}

.mode-note strong,
.mode-note p {
  display: block;
}

.mode-note strong {
  font-size: 13px;
}

.mode-note p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.primary-button {
  position: relative;
  display: inline-flex;
  min-width: 168px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  overflow: hidden;
  padding: 14px 20px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: var(--grad-brand);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.32);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease;
}

.primary-button::after {
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  content: "";
  transform: skewX(-20deg);
  transition: left 500ms ease;
}

.primary-button:hover {
  box-shadow: 0 15px 34px rgba(37, 99, 235, 0.42);
  transform: translateY(-2px);
  filter: saturate(1.08);
}

.primary-button:hover::after {
  left: 120%;
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.78;
  transform: none;
}

.button-arrow {
  font-size: 19px;
  line-height: 1;
}

.form-message {
  min-height: 24px;
  margin: 12px 4px 0;
  color: var(--red);
  font-size: 13px;
}

/* ============ 报告页共用组件 ============ */
.diagnosis-notice {
  margin-top: 18px;
  padding: 14px 17px;
  border: 1px solid #f1d39d;
  border-radius: 14px;
  color: #92400e;
  background: var(--orange-soft);
  font-size: 12px;
  line-height: 1.65;
}

.diagnosis-notice strong {
  display: block;
  margin-bottom: 2px;
  color: var(--red);
  font-size: 13px;
}

.score-ring {
  --score: 0;
  position: relative;
  display: grid;
  width: 156px;
  height: 156px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(
    from 210deg,
    #3b82f6 0deg,
    #6d5df6 calc(var(--score) * 3.6deg),
    #e9eef6 calc(var(--score) * 3.6deg),
    #e9eef6 360deg
  );
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.16);
}

.score-ring::before {
  position: absolute;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.score-ring > div {
  position: relative;
  z-index: 1;
  text-align: center;
}

.score-ring strong {
  display: block;
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.06em;
}

.score-ring span {
  color: var(--muted);
  font-size: 11px;
}

.score-ring.is-empty {
  background: #edf1f7;
  box-shadow: none;
}

.score-ring.is-empty strong {
  color: #667085;
  font-size: 31px;
}

.dimension-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
  padding-top: 22px;
}

.dimension-item {
  min-width: 0;
}

.dimension-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}

.dimension-top strong {
  font-size: 13px;
}

.dimension-top span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.dimension-item.is-unknown .dimension-top span {
  color: var(--muted);
}

.dimension-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1f7;
}

.dimension-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #60a5fa, var(--blue));
}

.dimension-item.is-unknown .dimension-fill {
  background: #cdd5df;
}

.dimension-item p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.constraint-list {
  display: grid;
  gap: 10px;
  padding-top: 18px;
}

.constraint-item {
  display: grid;
  grid-template-columns: minmax(120px, 0.34fr) 100px 1fr;
  gap: 14px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafd;
}

.constraint-item strong {
  font-size: 12px;
}

.constraint-status {
  width: fit-content;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.constraint-status.met {
  color: var(--green);
  background: var(--green-soft);
}

.constraint-status.partial {
  color: var(--orange);
  background: var(--orange-soft);
}

.constraint-status.unknown {
  color: #475467;
  background: #eef2f7;
}

.constraint-item p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.suggestion-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 18px 0 0;
  counter-reset: suggestion;
  list-style: none;
}

.suggestion-list li {
  position: relative;
  min-height: 35px;
  padding: 10px 12px 10px 49px;
  border: 1px solid #e8eef6;
  border-radius: 13px;
  background: #fff;
  color: #344054;
  font-size: 12px;
  line-height: 1.65;
  counter-increment: suggestion;
}

.suggestion-list li::before {
  position: absolute;
  top: 10px;
  left: 12px;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 8px;
  color: var(--blue);
  background: var(--blue-soft);
  content: counter(suggestion);
  font-size: 10px;
  font-weight: 800;
}

/* ============ 页脚 ============ */
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 56px;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  color: #98a2b3;
  font-size: 11px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.is-loading .button-arrow {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  font-size: 0;
  animation: spin 700ms linear infinite;
}

/* ============ 动画 ============ */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* ============ 响应式 ============ */
@media (max-width: 920px) {
  .hero-zone { --campus-mid-shade: rgba(16, 44, 65, .64); }
  .hero { min-height: 460px; }
  .hero-main { max-width: min(54%, 460px); }

  .journey-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .input-grid {
    grid-template-columns: 1fr;
  }

  .input-card,
  .input-card:nth-child(2) {
    min-height: 390px;
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: calc(100% - 24px);
  }

  .header-meta {
    display: none;
  }

  .hero-zone {
    background-image:
      linear-gradient(180deg, rgba(10, 28, 42, .72), transparent 108px, transparent 185px, var(--ink) 305px),
      url("./background/zzu.png");
    background-position: center top;
    background-size: 100% 100%, auto 305px;
  }

  .hero { min-height: 0; padding: 218px 6px 99px; }
  .hero-main { max-width: 100%; }
  .hero h1 { margin-bottom: 12px; font-size: clamp(31px, 8.5vw, 42px); }
  .hero-copy { font-size: 15px; }
  .hero-cta { margin-top: 21px; }

  .journey-steps {
    grid-template-columns: 1fr 1fr;
    margin-top: -70px;
  }

  .journey-steps li {
    padding: 14px 12px;
    grid-template-columns: 38px 1fr;
    gap: 0 9px;
  }

  .journey-steps span {
    width: 36px;
    height: 36px;
    font-size: 11px;
  }

  .workspace-heading h2 {
    font-size: 23px;
  }

  .input-card,
  .input-card:nth-child(2) {
    min-height: 380px;
    margin-top: 0;
    padding: 20px;
    border-radius: 20px;
  }

  .action-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button {
    width: 100%;
  }

  .constraint-item {
    grid-template-columns: 1fr auto;
  }

  .constraint-item p {
    grid-column: 1 / -1;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media print {
  body {
    background: #fff;
  }

  .hero-zone,
  .site-header,
  .action-panel,
  .form-message,
  .future-note,
  .input-footer,
  .site-footer {
    display: none !important;
  }

  .journey-steps {
    margin-top: 0;
  }

  .page-shell {
    width: 100%;
  }
}


.pdf-dropzone {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 96px;
  padding: 16px;
  border: 1.5px dashed #b7c9e5;
  border-radius: 16px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.07), transparent 58%),
    #fbfdff;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.pdf-dropzone:hover,
.pdf-dropzone.is-dragging {
  border-color: var(--blue);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.12), transparent 62%),
    #fff;
  transform: translateY(-1px);
}

.pdf-dropzone.is-busy {
  cursor: wait;
  opacity: 0.72;
}

.pdf-mark {
  display: grid;
  flex: 0 0 auto;
  width: 52px;
  height: 62px;
  place-items: center;
  border-radius: 9px 9px 9px 3px;
  color: #fff;
  background: linear-gradient(150deg, #2f6fed, #1849b5);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: 0 9px 22px rgba(37, 99, 235, 0.24);
}

.pdf-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.pdf-copy strong {
  font-size: 15px;
}

.pdf-copy span {
  color: var(--muted);
  font-size: 12px;
}

.pdf-action {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 7px 12px;
  border-radius: 9px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 11px;
  font-weight: 800;
}

.pdf-file-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid #b9ead9;
  border-radius: 14px;
  background: var(--green-soft);
}

.pdf-file-card[hidden],
.pdf-dropzone[hidden] {
  display: none;
}

.pdf-file-icon {
  display: grid;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 14px;
  font-weight: 900;
}

.pdf-file-card > div:not(.pdf-file-actions) {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.pdf-file-card strong,
.pdf-file-card span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdf-file-card strong {
  font-size: 13px;
}

.pdf-file-card > div > span {
  color: #477467;
  font-size: 11px;
}

.pdf-file-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.pdf-remove-button {
  padding: 4px 8px;
  border: 0;
  border-radius: 7px;
  color: #8b3a25;
  background: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.resume-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 17px 0 12px;
  color: #98a2b3;
  font-size: 10px;
}

.resume-divider::before,
.resume-divider::after {
  height: 1px;
  flex: 1;
  background: #e7ecf3;
  content: "";
}

.input-card.has-pdf .resume-divider,
.input-card.has-pdf #resumeText,
.input-card.has-pdf .input-footer {
  display: none;
}

.input-card.has-pdf .pdf-file-card {
  margin-top: 12px;
}

.pdf-review-toggle {
  align-self: flex-start;
  margin-top: 12px;
}

.pdf-review {
  margin: 12px 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
}

.pdf-review h3 {
  margin: 0;
  font-size: 15px;
}

.pdf-review p,
.pdf-review-controls,
.pdf-review-confirm {
  font-size: 12px;
}

.pdf-review p {
  margin: 5px 0 10px;
  color: var(--muted);
}

.pdf-review-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.pdf-review select {
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.pdf-review textarea {
  min-height: 9em;
  font-size: 13px;
}

.pdf-review-confirm {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 8px 0 0;
}

.pdf-review-confirm[hidden] {
  display: none;
}

#resumePdf:focus-visible + .pdf-dropzone { outline: 3px solid var(--blue); outline-offset: 4px; }
@media (max-width: 640px) { .pdf-dropzone { flex-wrap: wrap; padding: 18px; } .pdf-file-card { flex-wrap: wrap; } .pdf-file-actions { width: 100%; justify-content: flex-end; } }

.form-message.is-info { color: var(--muted); }
.form-message.is-success { color: var(--green); }

.fresh-toggle,
.analysis-progress {
  flex: 1 1 100%;
}

.fresh-toggle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

.fresh-toggle input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: var(--blue);
  flex: 0 0 auto;
}

.fresh-toggle span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fresh-toggle small {
  color: #98a2b3;
  font-size: 11px;
}

.analysis-progress {
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f7faff);
  box-shadow: 0 10px 30px rgba(23, 43, 77, 0.05);
}

.progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.progress-head strong {
  font-size: 13px;
}

#progressElapsed {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.progress-steps {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.progress-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #98a2b3;
  font-size: 12px;
  transition: color 200ms ease;
}

.progress-steps li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: #98a2b3;
  font-size: 11px;
  font-weight: 800;
  flex: 0 0 auto;
}

.progress-steps li.is-active {
  color: var(--ink);
  font-weight: 700;
}

.progress-steps li.is-active span {
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
  animation: progress-pulse 1.4s ease-in-out infinite;
}

.progress-steps li.is-done {
  color: var(--green);
}

.progress-steps li.is-done span {
  border-color: var(--green);
  background: var(--green-soft);
  color: transparent;
  font-size: 0;
}

.progress-steps li.is-done span::after {
  content: "✓";
  color: var(--green);
  font-size: 11px;
}

.analysis-progress.is-error {
  border-color: #f3c7b9;
  background: var(--red-soft);
}

.analysis-progress.is-error .progress-head strong {
  color: var(--red);
}

.progress-steps li.is-error span {
  border-color: var(--red);
  background: #fff;
  color: var(--red);
}

.progress-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.progress-note:empty {
  display: none;
}

.progress-retry {
  margin-top: 12px;
  padding: 9px 18px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.progress-retry:hover {
  background: var(--blue-soft);
}

@keyframes progress-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(37, 99, 235, 0.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .progress-steps li.is-active span {
    animation: none;
  }
}

.consent-check {
  display: flex;
  flex: 1 1 100%;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  cursor: pointer;
}

.consent-check input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--blue);
}

.consent-check a {
  color: var(--blue);
  font-weight: 700;
}

.privacy-preview {
  width: min(680px, calc(100% - 2rem));
  max-height: 88vh;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 1.5rem;
  color: #172536;
}

.privacy-preview::backdrop {
  background: rgb(15 23 42 / 56%);
}

.privacy-preview textarea {
  display: block;
  width: 100%;
  margin: 0.35rem 0 1rem;
  resize: vertical;
}

.privacy-preview-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1rem;
}
