:root {
  color-scheme: light;
  color: #192e27;
  background: #f4f5ef;
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --ink: #192e27;
  --forest: #12372f;
  --accent: #1c634f;
  --accent-hover: #154d3e;
  --muted: #4e6259;
  --line: #dde5dc;
  --input-line: #aebeb5;
  --surface: #fff;
  --error: #8c3026;
  --control-radius: 10px;
  --card-radius: 17px;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
p { overflow-wrap: anywhere; }

.page-head {
  color: white;
  background: radial-gradient(ellipse at 88% -30%, #2e6c51, transparent 74%), var(--forest);
}
.head-inner {
  width: min(100%, 680px);
  margin: auto;
  padding: calc(27px + env(safe-area-inset-top, 0px)) 20px 25px;
}
h1 { margin: 0; font-size: clamp(28px, 7.5vw, 40px); letter-spacing: -.025em; line-height: 1.2; }
.head-inner p { margin: 7px 0 0; color: #d7e6db; font-size: 14px; }
.shell {
  width: min(100%, 680px);
  margin: auto;
  padding: 16px max(15px, env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) max(15px, env(safe-area-inset-left, 0px));
}
.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 4px;
  border-radius: 13px;
  background: #e9eee6;
  margin-bottom: 16px;
}
.steps button {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #4a6156;
  min-height: 44px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 660;
}
.step-number {
  display: grid;
  place-items: center;
  flex: 0 0 23px;
  height: 23px;
  border: 1px solid #acbdb1;
  border-radius: 50%;
  font-size: 12px;
}
.steps [aria-current="step"] { background: white; box-shadow: 0 1px 3px #12372f13; color: var(--forest); }
.steps [aria-current="step"] .step-number { background: var(--forest); border-color: var(--forest); color: white; }

.page { display: grid; gap: 12px; }
.card {
  display: grid;
  gap: 13px;
  padding: 17px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
}
h2 { margin: 0; font-size: 19px; line-height: 1.35; font-weight: 720; }
.section-head { display: grid; gap: 5px; }
.optional {
  margin-left: 4px;
  color: #4b6255;
  background: #e9efe7;
  display: inline-block;
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 12px;
  font-weight: 650;
  vertical-align: 2px;
}
.hint { color: var(--muted); margin: 0; font-size: 14px; }
.file-hint { font-size: 13px; margin-top: -5px; }
.field-hint { margin-top: -8px; }
.resume-card { background: #f0f5eb; border-color: #d8e4d7; }
.resume-name { margin: 0; font-size: 14px; font-weight: 650; }

.grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.personal-grid { grid-template-columns: 1.5fr 1fr; }
label { display: grid; gap: 5px; font-size: 14px; font-weight: 650; }
h2 label { display: block; font-size: inherit; font-weight: inherit; }
input, select, textarea, button { font: inherit; }
button { cursor: pointer; touch-action: manipulation; }
:where(button, input, select, textarea, summary):focus-visible { outline: 3px solid #438674; outline-offset: 2px; }
:where(h2[tabindex="-1"]):focus { outline: none; }
button:disabled { opacity: .62; cursor: default; }
input:not([type=checkbox]), select, textarea {
  display: block;
  min-width: 0;
  width: 100%;
  min-height: 46px;
  color: var(--ink);
  background: #fbfcfa;
  border: 1px solid var(--input-line);
  border-radius: var(--control-radius);
  padding: 8px 10px;
  font-size: 16px;
  font-weight: 400;
}
input[type="month"] { -webkit-appearance: none; text-align: start; }
input[type="month"]::-webkit-date-and-time-value { min-height: 1.3em; text-align: start; }
textarea { resize: vertical; }
textarea::placeholder, input::placeholder { color: #596e62; }
input[data-resume-fill=true], select[data-resume-fill=true] { border-color: #79a38f; background: #eef5ed; }
input[aria-invalid=true], select[aria-invalid=true], textarea[aria-invalid=true] { border-color: var(--error); background: #fff7f4; }
.field-error { color: var(--error); font-size: 13px; font-weight: 600; }
#academic-more .hint { margin-top: 5px; }

.primary, .secondary, .voice-button {
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: var(--control-radius);
  padding: 8px 13px;
  font-size: 14px;
  font-weight: 680;
}
.primary { background: var(--accent); color: white; min-height: 52px; font-size: 16px; }
.primary:active, .voice-button:active { background: var(--accent-hover); }
.secondary { background: var(--surface); color: var(--forest); border-color: var(--input-line); }
.secondary:active { background: #eaf3eb; }
.form-actions { display: grid; gap: 8px; padding-top: 2px; }
.arrow { margin-left: 4px; }
.controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.small-button { justify-self: start; }
.remove, .text-button {
  background: transparent;
  border: 0;
  min-height: 44px;
  font-size: 14px;
  font-weight: 630;
}
.remove { color: var(--error); padding: 0 6px; }
.text-button { color: var(--accent); padding: 0 4px; }
.job-groups { display: grid; gap: 8px; }
.job-group {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 9px 11px;
  background: #f5f8f3;
  border-radius: 12px;
}
.job-heading { margin: 0; font-size: 15px; }
.job-group > button.secondary { grid-column: 2; }
.job-files {
  grid-column: 1 / -1;
  list-style: none;
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.job-file { display: flex; align-items: flex-start; gap: 8px; min-width: 0; padding: 0 8px; border: 1px solid var(--line); background: white; border-radius: 8px; }
.job-preview { min-width: 0; flex: 1; overflow-wrap: anywhere; font-size: 13px; }
.job-preview summary { cursor: pointer; min-height: 44px; padding: 11px 0; }
.job-preview img { display: block; max-width: 100%; max-height: 520px; object-fit: contain; height: auto; margin: 0 auto 8px; }
.job-file .remove { flex-shrink: 0; }

.guide-intro { padding: 4px 3px 1px; }
.guide-intro h2 { font-size: 24px; }
.guide-intro p { color: var(--muted); margin: 5px 0 0; font-size: 14px; }
.record-panel {
  position: sticky;
  top: max(6px, env(safe-area-inset-top, 0px));
  z-index: 1;
  padding: 13px;
  border-radius: var(--card-radius);
  background: #e3eee5;
  border: 1px solid #c4d7ca;
  box-shadow: 0 3px 9px #12372f0d;
}
.record-controls { flex-wrap: nowrap; }
.voice-button { background: var(--accent); color: white; flex: 1; min-height: 49px; font-size: 16px; }
.voice-button[data-recording=true] { background: #923f36; }
.voice-note, .voice-time { color: #36584a; font-size: 13px; }
.voice-note { margin: 7px 0 0; }
.voice-time { min-width: 4ch; text-align: center; font-variant-numeric: tabular-nums; }
.guide-list { list-style: none; counter-reset: prompt; display: block; margin: 0; padding: 0 16px; }
.guide-list li {
  counter-increment: prompt;
  position: relative;
  padding: 13px 0 13px 37px;
}
.guide-list li + li { border-top: 1px solid var(--line); }
.guide-list li::before {
  content: counter(prompt);
  position: absolute;
  left: 0;
  top: 14px;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  background: #eaf2e9;
  color: #285746;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 730;
}
.guide-list h3 { margin: 0; font-size: 16px; line-height: 1.45; }
.guide-list p { margin-top: 4px; }
.saved { color: var(--forest); font-size: 14px; }
.saved summary { cursor: pointer; font-weight: 650; }
.saved p { margin: 6px 0 0; }
.saved audio { display: block; margin-top: 10px; width: 100%; height: 43px; }
.submit-actions { display: grid; grid-template-columns: minmax(110px, .85fr) 1.15fr; gap: 8px; }
.notice { margin: 0; border-radius: 8px; padding: 9px 10px; color: #285745; background: #e4efe5; font-size: 14px; }
.notice[data-error=true] { color: var(--error); background: #faeae4; }
.done { margin-top: 6px; justify-items: start; gap: 7px; }
.done h2 { font-size: 25px; }
.done p { margin: 0; color: var(--muted); }
.done-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #e7f2e8; color: var(--accent); font-size: 22px; font-weight: 740; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (min-width: 600px) {
  .head-inner { padding-inline: 24px; padding-bottom: 30px; }
  .shell { padding: 20px 24px 36px; }
  .card { padding: 21px; }
  .guide-list { padding: 0 21px; }
  .guide-list li { padding-block: 16px; }
  .guide-list li::before { top: 16px; }
}
