:root {
  --adon-ink: #221b31;
  --adon-deep: #161020;
  --adon-purple: #7c55ce;
  --adon-purple-dark: #6743b4;
  --adon-lavender: #efe9fb;
  --adon-paper: #f7f6f1;
  --adon-warm: #fffdfa;
  --adon-white: #fff;
  --adon-text: #3e3947;
  --adon-muted: #726c7e;
  --adon-line: #e3dee8;
  --shadow: 0 24px 64px rgba(34, 27, 49, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--adon-text); background: radial-gradient(circle at 72% 2%, rgba(217, 204, 243, .55), transparent 28rem), var(--adon-paper); font-family: "DM Sans", system-ui, sans-serif; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.brand { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 12px; font-family: Geist, system-ui, sans-serif; font-weight: 700; letter-spacing: .02em; }
.brand small { display: block; margin-top: 2px; color: #b7afc4; font-family: "DM Sans", sans-serif; font-size: 9px; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; }
.brand-mark { width: 38px; height: 38px; border: 2px solid #b394ee; border-radius: 11px 11px 14px 6px; display: grid; place-items: center; color: #b394ee; transform: rotate(45deg); }
.brand-mark span { transform: rotate(-45deg); }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 292px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 34px 28px 26px; background: var(--adon-deep); color: var(--adon-white); display: flex; flex-direction: column; z-index: 20; }
.sidebar-intro { margin: 46px 0 24px; padding: 17px 18px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(255,255,255,.05); }
.sidebar-intro span, .sidebar-intro strong { display: block; }
.sidebar-intro span { margin-bottom: 3px; color: #9d95aa; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.sidebar-intro strong { font-family: Geist, sans-serif; font-size: 14px; }
.steps { display: grid; gap: 2px; overflow-y: auto; padding-right: 4px; }
.step-button { width: 100%; border: 0; border-radius: 12px; padding: 11px 10px; color: #a8a0b5; background: transparent; display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; text-align: left; transition: .18s ease; }
.step-button:hover { color: var(--adon-white); background: rgba(255,255,255,.06); }
.step-button[aria-current="step"] { color: var(--adon-white); background: rgba(124,85,206,.22); }
.step-number { width: 28px; height: 28px; border: 1px solid #4a4355; border-radius: 50%; display: grid; place-items: center; font-family: Geist, sans-serif; font-size: 11px; }
.step-button[aria-current="step"] .step-number { color: var(--adon-white); background: var(--adon-purple); border-color: var(--adon-purple); }
.step-button.is-done .step-number { color: #d9ccf3; border-color: #7c55ce; }
.step-button.is-invalid .step-number { color: #fff; background: #c63d50; border-color: #c63d50; }
.field-format-error { display: block; margin-top: 8px; color: #b12e43; font-size: 13px; }
.step-name { font-size: 12px; line-height: 1.2; }
.sidebar-footer { margin-top: auto; display: flex; align-items: center; gap: 10px; color: #c8c1d1; font-size: 11px; }
.sidebar-footer strong, .sidebar-footer small { display: block; }
.sidebar-footer strong { font-weight: 500; }
.sidebar-footer small { color: #81798e; margin-top: 2px; }
.save-dot { width: 9px; height: 9px; border-radius: 50%; background: #72bd94; box-shadow: 0 0 0 5px rgba(114,189,148,.12); }

.mobile-header { display: none; }
.main-content { min-width: 0; padding: 30px clamp(24px, 4vw, 66px) 54px; }
.topbar { max-width: 1180px; margin: 0 auto 42px; }
.progress-copy { display: flex; justify-content: space-between; margin-bottom: 9px; color: var(--adon-muted); font-size: 12px; }
.progress-copy strong, .eyebrow { color: var(--adon-purple-dark); }
.progress-track { width: 100%; height: 5px; border: 0; border-radius: 99px; background: #e4deea; overflow: hidden; appearance: none; }
.progress-track::-webkit-progress-bar { background: #e4deea; }
.progress-track::-webkit-progress-value { background: linear-gradient(90deg, var(--adon-purple), #a27de2); }
.progress-track::-moz-progress-bar { background: linear-gradient(90deg, var(--adon-purple), #a27de2); }
.content-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 350px); gap: clamp(26px, 4vw, 54px); align-items: start; }
.section-heading { margin-bottom: 32px; }
.eyebrow { margin: 0 0 9px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; }
h1, h2, h3 { margin-top: 0; color: var(--adon-ink); font-family: Geist, system-ui, sans-serif; }
.section-heading h1, .intro-card h1 { margin-bottom: 10px; font-size: clamp(34px, 5vw, 54px); line-height: 1.02; letter-spacing: -.045em; }
.section-heading > p:last-child { max-width: 620px; margin: 0; color: var(--adon-muted); font-size: 17px; }

.question-card { margin-bottom: 18px; padding: 24px; border: 1px solid var(--adon-line); border-radius: 18px; background: rgba(255,255,255,.76); box-shadow: 0 10px 35px rgba(34,27,49,.035); transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.question-card:focus-within, .question-card:hover { border-color: #bca7e5; background: var(--adon-white); box-shadow: 0 16px 38px rgba(79,51,137,.08); }
.question-card.missing { border-color: #b94b48; box-shadow: 0 0 0 3px rgba(185,75,72,.12); }
.question-topline { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 9px; }
.question-label { color: var(--adon-ink); font-family: Geist, sans-serif; font-size: 17px; font-weight: 600; line-height: 1.35; }
.required-star { color: var(--adon-purple); }
.question-hint { margin: 0 0 14px; color: var(--adon-muted); font-size: 13px; line-height: 1.5; }
.listen-btn, .tool-button { border: 1px solid var(--adon-line); border-radius: 9px; padding: 7px 9px; color: var(--adon-muted); background: var(--adon-warm); font-size: 11px; white-space: nowrap; }
.listen-btn:hover, .listen-btn.playing, .tool-button:hover, .tool-button.is-active { color: var(--adon-purple-dark); border-color: #bca7e5; background: var(--adon-lavender); }
.answer-modes { display: flex; gap: 6px; margin-bottom: 11px; }
.form-control { width: 100%; border: 1px solid #d7d1dd; border-radius: 12px; padding: 13px 14px; color: var(--adon-ink); background: var(--adon-white); outline: none; transition: .16s ease; }
.form-control::placeholder { color: #aaa3b1; }
.form-control:focus { border-color: var(--adon-purple); box-shadow: 0 0 0 4px rgba(124,85,206,.12); }
textarea.form-control { min-height: 116px; resize: vertical; line-height: 1.55; }
.record-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; min-height: 44px; }
.record-btn { border: 1px solid var(--adon-purple); border-radius: 11px; padding: 10px 14px; color: var(--adon-purple-dark); background: var(--adon-lavender); font-size: 13px; font-weight: 600; }
.record-btn.recording { color: #fff; background: #b94b48; border-color: #b94b48; }
.record-status { color: var(--adon-muted); font-size: 12px; }

.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.choice-card { position: relative; min-height: 58px; border: 1px solid var(--adon-line); border-radius: 14px; padding: 15px 42px 15px 15px; color: var(--adon-text); background: var(--adon-white); text-align: left; cursor: pointer; transition: .16s ease; }
.choice-card:hover { transform: translateY(-1px); border-color: #bca7e5; }
.choice-card:has(input:checked) { border-color: var(--adon-purple); background: #f8f4ff; box-shadow: 0 0 0 3px rgba(124,85,206,.10); }
.choice-card input { position: absolute; opacity: 0; }
.choice-card input:focus-visible + span { outline: 2px solid var(--adon-purple); outline-offset: 3px; }
.choice-card > span:first-of-type { color: var(--adon-ink); font-family: Geist, sans-serif; font-size: 14px; line-height: 1.35; }
.choice-check { position: absolute; top: 50%; right: 13px; width: 20px; height: 20px; border: 1px solid #cfc8d6; border-radius: 50%; transform: translateY(-50%); display: grid; place-items: center; color: transparent; font-size: 11px; }
.choice-card:has(input:checked) .choice-check { color: var(--adon-white); background: var(--adon-purple); border-color: var(--adon-purple); }
.other-input { grid-column: 1 / -1; }
.upload-pending { display: grid; gap: 7px; padding: 20px; border: 1px dashed #baa9d9; border-radius: 14px; color: var(--adon-muted); background: #faf8ff; font-size: 13px; line-height: 1.5; }
.upload-pending strong { color: var(--adon-ink); font-family: Geist, sans-serif; }
.upload-select { width: fit-content; cursor: pointer; }
.upload-input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.upload-list { display: grid; gap: 5px; padding: 0; margin: 0; list-style: none; }
.upload-list li { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.upload-list button { border: 0; color: var(--adon-muted); background: transparent; text-decoration: underline; cursor: pointer; }
.color-workspace { display: grid; gap: 14px; }
.color-picker-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.color-selection-count { color: var(--adon-muted); font-size: 12px; }
.color-swatches { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.color-swatch { display: flex; align-items: center; gap: 6px; padding: 5px 7px; border: 1px solid var(--adon-line); border-radius: 9px; background: var(--adon-white); }
.color-swatch span { inline-size: 22px; block-size: 22px; border: 1px solid rgba(0,0,0,.15); border-radius: 50%; }
.color-swatch code { color: var(--adon-muted); font-size: 12px; }
.color-swatch button { border: 0; padding: 0 3px; color: var(--adon-muted); background: transparent; cursor: pointer; font-size: 18px; line-height: 1; }
.color-picker-modal { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); margin: auto; padding: 0; overflow: auto; border: 0; border-radius: 20px; color: var(--adon-ink); background: var(--adon-white); box-shadow: 0 24px 70px rgba(20,12,34,.38); }
.color-picker-modal::backdrop { background: rgba(19,13,30,.58); backdrop-filter: blur(3px); }
.color-picker-card { padding: clamp(20px, 4vw, 28px); }
.color-picker-title { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 22px; }
.color-picker-title p { margin: 0 0 4px; color: var(--adon-purple-dark); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.color-picker-title h2 { margin: 0; font-size: 24px; letter-spacing: -.03em; }
.color-picker-close { border: 0; padding: 0 4px; color: var(--adon-muted); background: transparent; font-size: 28px; line-height: 1; }
.color-picker-area { padding: 14px; border: 1px solid var(--adon-line); border-radius: 16px; background: #fbfaff; }
.color-area { position: relative; height: 245px; border-radius: 10px; cursor: crosshair; overflow: hidden; }
.color-cursor { position: absolute; width: 21px; height: 21px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 1px 7px rgba(0,0,0,.46); transform: translate(-50%,-50%); pointer-events: none; }
.color-hue-row { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 12px; margin-top: 15px; color: var(--adon-muted); font-size: 12px; font-weight: 600; }
.color-hue { width: 100%; height: 12px; margin: 0; appearance: none; border-radius: 99px; background: linear-gradient(90deg,#f22,#ffed2e,#3ae86f,#26d5ff,#365dff,#bd30ff,#f22); }
.color-hue::-webkit-slider-thumb { width: 19px; height: 19px; appearance: none; border: 2px solid #fff; border-radius: 50%; background: transparent; box-shadow: 0 1px 5px rgba(0,0,0,.38); }
.color-hue::-moz-range-thumb { width: 15px; height: 15px; border: 2px solid #fff; border-radius: 50%; background: transparent; box-shadow: 0 1px 5px rgba(0,0,0,.38); }
.color-code-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 16px; }
.color-code-field { display: grid; gap: 6px; color: var(--adon-muted); font-size: 11px; font-weight: 700; letter-spacing: .07em; }
.color-code-hex { grid-column: 1 / -1; }
.color-code-field input { width: 100%; min-width: 0; border: 1px solid #d7d1dd; border-radius: 10px; padding: 10px 11px; color: var(--adon-ink); background: var(--adon-white); font-family: Geist, monospace; font-size: 14px; letter-spacing: 0; outline: none; }
.color-code-field input:focus { border-color: var(--adon-purple); box-shadow: 0 0 0 3px rgba(124,85,206,.12); }
.color-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
@media (max-width: 480px) { .color-area { height: 210px; } .color-hue-row { grid-template-columns: 1fr; gap: 7px; } .color-code-grid { grid-template-columns: 1fr; } .color-code-hex { grid-column: auto; } }

.help-panel { position: sticky; top: 30px; border: 1px solid #e0d7ef; border-radius: 20px; overflow: hidden; background: var(--adon-white); box-shadow: var(--shadow); }
.help-header { display: flex; gap: 12px; align-items: center; padding: 18px 20px; background: var(--adon-lavender); border-bottom: 1px solid #ddd2ed; }
.help-header strong, .help-header small { display: block; }
.help-header strong { color: var(--adon-ink); font-family: Geist, sans-serif; font-size: 14px; }
.help-header small { margin-top: 2px; color: var(--adon-muted); font-size: 10px; }
.help-icon { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: var(--adon-white); background: var(--adon-purple); font-family: Geist, sans-serif; font-weight: 700; }
.help-visual { height: 118px; background: linear-gradient(135deg,#221b31 0 44%,#7c55ce 44% 70%,#efe9fb 70%); position: relative; overflow: hidden; }
.help-visual::after { content: "ADON"; position: absolute; right: 18px; bottom: 12px; color: rgba(255,255,255,.8); font-family: Geist, sans-serif; font-size: 30px; font-weight: 700; letter-spacing: -.06em; }
.help-content { padding: 22px 20px 23px; }
.help-kicker { margin: 0 0 7px; color: var(--adon-purple-dark); font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.help-content h2 { margin-bottom: 9px; font-size: 20px; letter-spacing: -.02em; }
.help-content > p:not(.help-kicker):not(.help-tip) { margin: 0; color: var(--adon-muted); font-size: 13px; line-height: 1.6; }
.help-tip { display: flex; gap: 8px; margin: 16px 0 0; color: var(--adon-muted); font-size: 11px; line-height: 1.5; }
.help-tip > span:first-child { color: var(--adon-purple); font-weight: 700; }

.form-navigation { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding-top: 13px; }
.button { border-radius: 14px; padding: 12px 18px; font-family: Geist, sans-serif; font-size: 13px; font-weight: 600; transition: .16s ease; }
.button:disabled { opacity: .4; cursor: default; }
.button-primary { border: 1px solid var(--adon-purple); color: var(--adon-white); background: var(--adon-purple); box-shadow: 0 10px 25px rgba(124,85,206,.20); }
.button-primary:hover:not(:disabled) { background: var(--adon-purple-dark); transform: translateY(-1px); }
.button-primary span { margin-left: 15px; }
.button-secondary { border: 1px solid #cbc4d1; color: var(--adon-ink); background: rgba(255,255,255,.72); }
.button-secondary:hover:not(:disabled) { border-color: #9d8aae; background: var(--adon-white); }
.draft-status { justify-self: center; color: var(--adon-muted); font-size: 11px; text-align: center; }
.section-error { margin: 18px 0 0; color: #b94b48; font-size: 14px; text-align: right; }
.preview-notice { margin: 0 0 18px; padding: 16px 18px; border: 2px solid #7c55ce; border-radius: 14px; color: #3e2375; background: #f1ebff; font-weight: 700; line-height: 1.45; }
.preview-notice small { display: block; margin-top: 4px; color: #62498f; font-weight: 500; }
.preview-notice-compact { padding: 13px 16px; border-radius: 12px; }
.preview-notice-compact small { display: inline; margin: 0 0 0 8px; }

.intro-shell { min-height: 100vh; padding: 36px clamp(24px, 6vw, 100px); color: var(--adon-white); background: radial-gradient(circle at 78% 16%, rgba(124,85,206,.65), transparent 25rem), var(--adon-deep); }
.intro-shell > .brand { margin-bottom: clamp(60px, 13vh, 130px); }
.intro-card { max-width: 760px; padding: clamp(28px, 5vw, 58px); border: 1px solid rgba(255,255,255,.16); border-radius: 28px; background: rgba(255,255,255,.07); box-shadow: var(--shadow); }
.intro-card h1 { color: #fff; }
.intro-card > p:not(.eyebrow):not(.required-note) { max-width: 650px; color: #d4cedf; font-size: 17px; line-height: 1.7; }
.intro-card .required-note { color: #bfb7cc; font-size: 13px; line-height: 1.5; }
.draft-resume { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 26px 0; padding: 15px 16px; border: 1px solid rgba(255,255,255,.15); border-radius: 14px; background: rgba(255,255,255,.08); color: #eeeaf5; font-size: 14px; }
.done-screen { text-align: center; }
.done-screen.intro-card { margin: auto; }
.error-box { max-width: 680px; margin: 80px auto; padding: 28px; border-radius: 18px; color: #8a302f; background: #fff4f3; text-align: center; }

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 230px minmax(0, 1fr); }
  .sidebar { padding-inline: 20px; }
  .content-grid { grid-template-columns: minmax(0, 1fr) 290px; gap: 24px; }
}
@media (max-width: 780px) {
  .app-shell { display: block; }
  .mobile-header { height: 72px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; color: var(--adon-white); background: var(--adon-deep); }
  .mobile-header .brand { font-size: 13px; }
  .mobile-header .brand-mark { width: 31px; height: 31px; }
  .mobile-menu { border: 1px solid rgba(255,255,255,.25); border-radius: 10px; padding: 8px 11px; color: var(--adon-white); background: rgba(255,255,255,.06); font-size: 12px; }
  .sidebar { position: static; width: 100%; height: auto; padding: 16px 18px; display: none; }
  .sidebar.is-open { display: block; }
  .desktop-brand, .sidebar-intro, .sidebar-footer { display: none; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step-button { grid-template-columns: 25px 1fr; padding: 8px 6px; }
  .step-number { width: 24px; height: 24px; }
  .main-content { padding: 24px 18px 42px; }
  .topbar { margin-bottom: 28px; }
  .content-grid { grid-template-columns: 1fr; }
  .help-panel { position: static; grid-row: 2; }
  .help-visual { height: 86px; }
}
@media (max-width: 520px) {
  .question-card { padding: 19px 16px; }
  .question-topline { display: block; }
  .listen-btn { margin-top: 11px; }
  .choice-grid { grid-template-columns: 1fr; }
  .form-navigation { grid-template-columns: 1fr 1fr; }
  .draft-status { grid-column: 1 / -1; grid-row: 1; }
  .steps { grid-template-columns: 1fr 1fr; }
  .intro-shell { padding: 25px 18px; }
  .intro-card { padding: 28px 22px; }
  .draft-resume { align-items: flex-start; flex-direction: column; }
}
