:root {
  --paper: #fbfaf7;
  --cream: #f5f2ed;
  --ink: #34302d;
  --muted: #817c76;
  --line: #e7e1db;
  --accent: #9f8da3;
  --accent-deep: #786783;
  --sage: #a7b6a4;
  --peach: #e3b6a3;
  --blue: #a6bbc1;
  --yellow: #e7c989;
  --shadow: 0 22px 70px rgba(102, 87, 76, .12);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--cream); color: var(--ink); }
body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; }
.page-shell { min-height: 100vh; padding: 20px 14px 32px; display: flex; flex-direction: column; align-items: center; position: relative; overflow: hidden; }
.page-shell::before, .page-shell::after { content: ""; position: fixed; z-index: 0; border-radius: 50%; filter: blur(4px); opacity: .48; pointer-events: none; }
.page-shell::before { width: 220px; height: 220px; background: #e7ddd9; top: -80px; left: -90px; }
.page-shell::after { width: 260px; height: 260px; background: #dfe7e1; right: -125px; bottom: 8%; }
.app { width: min(100%, 520px); position: relative; z-index: 1; }
.footer { position: relative; z-index: 1; margin-top: 18px; color: #9b948d; font-size: 11px; letter-spacing: .06em; text-align: center; }
.screen { background: rgba(255,255,255,.88); border: 1px solid rgba(255,255,255,.84); border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; }
.cover { min-height: calc(100vh - 90px); display: flex; flex-direction: column; justify-content: center; padding: 34px 24px 28px; text-align: center; }
.eyebrow { font-size: 11px; letter-spacing: .22em; color: var(--accent-deep); font-weight: 700; margin-bottom: 18px; }
.brand-mark { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 22px; border-radius: 22px; background: linear-gradient(145deg, #c9bacd, #927da0); color: #fff; box-shadow: 0 10px 24px rgba(120,103,131,.23); font-size: 28px; }
h1 { margin: 0; font-size: clamp(28px, 7vw, 43px); line-height: 1.18; letter-spacing: -.04em; font-weight: 800; }
.cover h1 { max-width: 420px; margin-inline: auto; }
.cover h1 span { color: var(--accent-deep); display: block; }
.lead { color: var(--muted); font-size: 14px; line-height: 1.9; margin: 18px auto 26px; max-width: 380px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 26px; }
.pill { border: 1px solid var(--line); color: #716b65; background: #fff; padding: 7px 11px; border-radius: 999px; font-size: 12px; }
.primary-btn, .secondary-btn { width: 100%; border: 0; border-radius: 15px; padding: 15px 18px; font-weight: 700; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.primary-btn { background: var(--accent-deep); color: white; box-shadow: 0 12px 22px rgba(120,103,131,.24); }
.primary-btn:hover { transform: translateY(-1px); box-shadow: 0 15px 26px rgba(120,103,131,.3); }
.secondary-btn { background: #f1ede9; color: var(--accent-deep); }
.btn-row { display: flex; gap: 10px; }
.btn-row > * { flex: 1; }
.note { margin-top: 14px; font-size: 11px; color: #a19b95; line-height: 1.6; }
.gate { padding: 34px 24px 30px; text-align: center; }
.gate .brand-mark { margin-bottom: 18px; }
.gate h2 { margin: 0; font-size: 24px; letter-spacing: -.03em; }
.gate p { color: var(--muted); font-size: 13px; line-height: 1.8; margin: 10px auto 22px; max-width: 340px; }
.code-input { width: 100%; height: 54px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; text-align: center; font-size: 24px; letter-spacing: .32em; color: var(--ink); outline: none; }
.code-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(159,141,163,.13); }
.gate .primary-btn { margin-top: 12px; }
.error { min-height: 18px; color: #b57970; font-size: 12px; margin-top: 10px; }
.demo-code { color: #a6a09a; font-size: 11px; margin-top: 14px; }
.question-screen { padding: 22px 20px 20px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 24px; color: var(--muted); font-size: 12px; }
.progress { height: 5px; background: #eee9e4; border-radius: 99px; overflow: hidden; margin-top: 9px; }
.progress > div { height: 100%; width: 5%; background: var(--accent-deep); border-radius: inherit; transition: width .25s ease; }
.question-index { color: var(--accent-deep); font-weight: 700; white-space: nowrap; }
.question { font-size: clamp(22px, 6vw, 31px); line-height: 1.42; letter-spacing: -.035em; margin: 0 0 20px; }
.question-tip { font-size: 12px; color: #9a938b; margin: 0 0 18px; }
.options { display: grid; gap: 11px; }
.option { position: relative; display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 15px 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: #4b4540; text-align: left; line-height: 1.55; font-size: 14px; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.option:hover { transform: translateY(-1px); border-color: #cbbccc; }
.option.selected { border-color: var(--accent); background: #f4eff5; }
.option-letter { flex: 0 0 auto; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: #f3efeb; color: #857d75; font-size: 12px; font-weight: 700; }
.option.selected .option-letter { background: var(--accent-deep); color: #fff; }
.question-actions { margin-top: 22px; }
.question-actions .primary-btn[disabled] { background: #d7d1cc; box-shadow: none; cursor: not-allowed; }
.question-actions .secondary-btn[disabled] { opacity: .45; cursor: not-allowed; }
.result-screen { padding: 25px 20px 22px; }
.result-head { text-align: center; padding: 6px 0 19px; }
.result-head .eyebrow { margin-bottom: 12px; }
.result-head h2 { font-size: 28px; margin: 0; letter-spacing: -.04em; }
.result-head p { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 10px auto 0; max-width: 360px; }
.result-card { border-radius: 22px; padding: 22px 18px 20px; background: linear-gradient(150deg, #f4efe8, #eee7ef); border: 1px solid rgba(255,255,255,.85); }
.result-kicker { color: var(--accent-deep); font-size: 11px; letter-spacing: .16em; font-weight: 700; text-transform: uppercase; }
.result-title { margin: 9px 0 4px; font-size: 25px; line-height: 1.25; letter-spacing: -.04em; }
.result-sub { color: #706962; font-size: 13px; margin: 0 0 14px; }
.result-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.result-meta span { background: rgba(255,255,255,.68); border: 1px solid rgba(120,103,131,.13); border-radius: 99px; padding: 6px 9px; color: #71666d; font-size: 11px; }
.copy { margin: 0; color: #514a46; font-size: 14px; line-height: 1.9; }
.copy + .copy { margin-top: 11px; }
.result-label { margin: 18px 0 7px; color: #847771; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 2px; }
.status-item { display: flex; flex-direction: column; gap: 5px; padding: 10px 10px 9px; border-radius: 13px; background: rgba(255,255,255,.48); border: 1px solid rgba(120,103,131,.10); }
.status-item b { color: #756875; font-size: 11px; font-weight: 700; }
.status-item span { color: #655e59; font-size: 11px; line-height: 1.6; }
.score-note { margin: 15px 0 0; padding-top: 13px; border-top: 1px dashed rgba(120,103,131,.24); color: #8b817b; font-size: 11px; line-height: 1.7; }
.result-actions { margin-top: 15px; }
.recommendation-overview { display: grid; gap: 8px; margin-bottom: 20px; }
.recommendation-overview a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #faf8f6; color: var(--ink); text-decoration: none; font-size: 14px; line-height: 1.5; }
.recommendation-overview a span { color: var(--accent-deep); font-size: 12px; font-weight: 700; }
.recommendation-list { display: grid; gap: 16px; }
.recommendation-list .result-card { scroll-margin-top: 18px; }
.recommendation-list .result-card:nth-child(even) { background: linear-gradient(150deg, #f0f3ed, #e8efed); }
.career-details summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 44px; margin-top: 16px; padding-top: 10px; border-top: 1px solid rgba(120,103,131,.18); list-style: none; cursor: pointer; color: var(--accent-deep); font-size: 13px; font-weight: 700; }
.career-details summary::-webkit-details-marker { display: none; }
.career-details .when-open, .career-details[open] .when-closed { display: none; }
.career-details[open] .when-open { display: inline; }
.career-details[open] summary > span:last-child { transform: rotate(180deg); }
.recommendation-overview a:focus-visible, .career-details summary:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 3px; }
.copy-fallback { width: 100%; min-height: 180px; margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; padding: 12px; font: inherit; font-size: 13px; line-height: 1.7; color: var(--ink); background: #fff; resize: vertical; }
.result-actions > * { min-width: 0; padding-inline: 10px; font-size: 14px; }
.share-tip { text-align: center; color: #9a938b; font-size: 11px; margin: 14px 0 0; }
.activation-consent { display: flex; gap: 9px; align-items: flex-start; text-align: left; font-size: 12px; line-height: 1.7; margin-top: 18px; color: var(--muted); }
.activation-consent input { margin-top: 4px; accent-color: var(--accent-deep); }
.share-result-btn { margin-top: 12px; }
.share-dialog { width: min(520px, calc(100% - 24px)); max-height: 88vh; border: 1px solid var(--line); border-radius: 22px; padding: 22px 18px; background: var(--paper); color: var(--ink); overflow-y: auto; box-shadow: var(--shadow); }
.share-dialog::backdrop { background: rgba(50,43,48,.4); }
.share-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.share-heading h2 { font-size:22px; margin:0; }
.share-close { border:0; border-radius:50%; width:36px; height:36px; font-size:26px; color:var(--accent-deep); background:#eee7ef; }
.share-intro,.share-help { font-size:13px; line-height:1.8; color:var(--muted); }
.share-platforms { display:flex; flex-wrap:wrap; gap:8px; }
.share-platforms button { border:1px solid var(--line); border-radius:12px; background:white; padding:11px 12px; color:var(--accent-deep); font-size:12px; }
.share-platforms button[aria-pressed=true] { background:#eee7ef; border-color:var(--accent); }
#share-poster { width:100%; height:auto; margin-top:14px; border-radius:14px; }
.share-buttons { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:14px; }
.share-buttons a { text-align:center; text-decoration:none; }
.share-buttons button,.share-buttons a { font-size:13px; }
.share-cta { display:block; text-align:center; text-decoration:none; margin-top:18px; }
[hidden] { display:none !important; }
@media (min-width: 600px) { .page-shell { padding-top: 38px; } .cover { min-height: 680px; } }
@media (max-width: 360px) { .page-shell { padding-inline: 10px; } .cover, .gate { padding-inline: 18px; } .question-screen, .result-screen { padding-inline: 15px; } }

.career-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.match-badge{flex-shrink:0;background:#fff9;border:1px solid #d9cedc;border-radius:14px;padding:10px 12px;font-size:24px;color:#786783;text-align:center}.match-badge small{display:block;font-size:10px;font-weight:400;margin-top:4px}.result-counts{display:flex;gap:6px;flex-wrap:wrap;justify-content:center;margin:10px 0}.result-counts span{background:#e8eee5;color:#527060;border-radius:30px;padding:8px 10px;font-size:12px}.score-explanation,.source-note,.remote-note{font-size:12px;line-height:1.8;color:#82756f}.action-steps{padding-left:22px;color:#514a46;font-size:14px;line-height:1.85}.action-steps li{margin:12px 0}.action-proof{background:#fff9;padding:16px;border-radius:15px;font-size:13px;line-height:1.8;color:#514a46}.action-proof p{margin:6px 0 14px}.action-proof p:last-child{margin-bottom:0}.source-link{display:inline-block;margin:12px 0;color:#786783;font-size:13px;word-break:break-word}.result-closing{padding:22px 18px;margin-top:22px;border-radius:18px;background:#e9eee6;line-height:1.9;color:#4e6257}.result-closing h3{margin:0 0 10px;font-size:17px}.result-closing p{margin:0;font-size:14px}.recommendation-overview a b{flex:1;font-weight:500}.recommendation-overview a small{white-space:nowrap;font-size:11px;color:#786783}.result-head p{max-width:100%}.result-head h2{font-size:25px;line-height:1.5}.result-title{overflow-wrap:anywhere}.remote-note{padding:12px;border:1px dashed #cfc2cf;border-radius:12px}.library-filters{display:flex;gap:12px;flex-wrap:wrap;align-items:end}.library-filters label{display:grid;gap:7px;font-size:13px}.library-filters input{min-width:220px}.library-filters select{font:inherit;color:inherit;background:white;border:1px solid #d3dccf;border-radius:10px;padding:12px}.admin-career{border:1px solid #dde3d7;border-radius:12px;margin:10px 0;padding:13px}.admin-career>summary{display:flex;justify-content:space-between;gap:12px;cursor:pointer;line-height:1.7}.admin-career>summary span{font-size:12px;color:#738078}.admin-career .result-card{padding:10px 4px}.admin-career .result-kicker,.admin-career .result-sub{color:#738078;font-size:12px}.admin-career .result-title{font-size:22px;margin:10px 0}.admin-career .career-details>summary{display:none}.admin-career .result-label{font-size:14px;font-weight:700;margin:20px 0 8px}.admin-career .copy{line-height:1.85}.admin-career .action-proof{background:#f1f4ed}.admin-career .source-note{font-size:12px}.admin-career .when-closed{display:none}
