:root {
  color-scheme: light;
  --navy: #162859;
  --purple: #7452f4;
  --blue: #3e5bee;
  --ink: #202944;
  --muted: #687087;
  --line: #e5e5f0;
  --surface: #f6f5fb;
  --orange: #b96035;
}
* { box-sizing: border-box; }
body { margin: 0; padding-left: 244px; color: var(--ink); background: var(--surface); font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; font-size: 14px; line-height: 1.6; }
button, input, select, textarea { font: inherit; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
button:disabled { cursor: default; opacity: .5; }
button:focus-visible, a:focus-visible { outline: 3px solid #b7a7ff; outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.site-header { position: fixed; inset: 0 auto 0 0; width: 244px; z-index: 20; background: white; border-right: 1px solid var(--line); }
.header-inner { display: flex; flex-direction: column; align-items: stretch; gap: 44px; height: 100%; padding: 34px 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; font-size: 19px; line-height: 1; font-weight: 750; letter-spacing: .2px; white-space: nowrap; }
.brand-mark { display: block; width: 47px; height: auto; flex: 0 0 auto; }
.header-inner nav { display: flex; flex-direction: column; gap: 10px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.header-inner nav::-webkit-scrollbar { display: none; }
.nav-link { display: flex; align-items: center; gap: 13px; min-height: 48px; padding: 12px 19px; border-radius: 99px; color: #73738c; flex-shrink: 0; font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.nav-link:hover { color: var(--purple); background: #f8f6ff; }
.nav-link.active { color: #6540da; background: #eeebff; font-weight: 650; }
.status-dot { display: inline-block; width: 6px; height: 6px; background: var(--purple); border-radius: 50%; }
main { max-width: 1280px; margin: 0 auto; padding: 0 36px; }
.topbar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.breadcrumb { display: flex; gap: 12px; align-items: center; color: #74778b; font-size: 11px; }
.breadcrumb strong { color: #505a76; font-weight: 500; }
.workspace-note { color: #75788c; font-size: 11px; margin: 0; }
.eyebrow { margin: 0 0 13px; font-size: 11px; font-weight: 500; letter-spacing: 1.2px; }
h1 { margin-bottom: 14px; font-size: 22px; font-weight: 650; line-height: 1.4; }
.search-panel { margin-top: 20px; padding: 25px 28px 22px; background: white; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 5px 19px #37266b04; }
.section-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.section-icon { width: 40px; height: 40px; display: grid; place-items: center; color: var(--purple); background: #f0ebff; border-radius: 11px; flex: 0 0 auto; }
h2 { margin-bottom: 3px; font-size: 17px; font-weight: 650; line-height: 1.5; }
.section-heading p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.panel-tag { margin-left: auto; color: #77738f; padding: 5px 10px; border: 1px solid #e9e5f5; border-radius: 5px; font-size: 10px; white-space: nowrap; }
.job-fields { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, .85fr) minmax(0, 1fr); gap: 16px; }
label { display: block; min-width: 0; color: #4d536b; font-size: 12px; font-weight: 500; }
.required { color: var(--purple); margin-left: 2px; }
input, select, textarea { display: block; width: 100%; min-width: 0; margin-top: 8px; padding: 11px 12px; color: #343952; background: #fdfcff; border: 1px solid #dedeea; border-radius: 8px; outline: none; font-size: 13px; line-height: 1.6; transition: border-color .15s, box-shadow .15s; }
input, select { height: 46px; border-radius: 99px; padding-left: 16px; }
textarea { border-radius: 16px; }
select { padding-right: 7px; }
input::placeholder, textarea::placeholder { color: #74778b; font-weight: 400; }
input:focus, select:focus, textarea:focus { background: white; border-color: var(--purple); box-shadow: 0 0 0 3px #7452f412; }
textarea { resize: vertical; }
.search-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 22px; padding-top: 18px; border-top: 1px solid #efedf6; }
.search-actions > p { display: flex; align-items: center; gap: 7px; margin: 0; color: var(--muted); font-size: 11px; }
.search-actions svg { width: 16px; height: 16px; color: #8a7daa; }
.button-row { display: flex; align-items: center; gap: 22px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 43px; padding: 11px 21px; border: 1px solid transparent; border-radius: 99px; font-size: 12px; font-weight: 600; line-height: 1.6; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
.primary { background: var(--purple); color: white; border-color: var(--purple); box-shadow: 0 3px 8px #7452f414; }
.primary:hover:not(:disabled) { background: #6341dc; border-color: #6341dc; }
.primary svg { color: white; width: 17px; height: 17px; }
.secondary { color: #6650ac; background: white; border-color: #ded6f2; }
.secondary:hover:not(:disabled) { background: #f5f1ff; border-color: #bcabeb; }
.text-button { gap: 8px; padding: 8px 0; color: #6c6580; background: transparent; }
.text-button:hover { color: var(--purple); }
.button > span { font: 18px/1 Arial, sans-serif; }
#search-button { min-width: 168px; }
.inline-message { margin: 16px 0 0; padding: 12px 15px; color: #625183; background: #f7f3ff; border: 1px solid #e9e1fa; border-radius: 8px; font-size: 12px; line-height: 1.8; }
.inline-message.error { color: #a2462d; background: #fff3ee; border-color: #f7dfd3; }
.discovery-workspace { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 29px; }
.results-section { min-width: 0; }
.results-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.results-heading h2 { font-size: 17px; }
.results-heading p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
#result-count { display: inline-block; margin-left: 7px; color: #77678e; font-size: 11px; font-weight: 400; }
#search-time { color: #746d89; font-size: 10px; }
.empty-state { padding: 38px 28px; border: 1px solid var(--line); border-radius: 12px; background: white; text-align: center; }
.empty-icon { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 15px; background: #f3effc; border: 1px solid #e7def7; color: #8b70bd; border-radius: 13px; }
.empty-icon svg { width: 24px; height: 24px; }
.empty-state h3 { margin: 0 0 8px; color: #52506c; font-size: 15px; font-weight: 600; }
.empty-state p { color: var(--muted); font-size: 12px; line-height: 1.9; margin-bottom: 0; }
.page-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 28px; padding: 22px 0 26px; border-top: 1px solid var(--line); color: #77758a; font-size: 10px; }
.footer-brand { display: flex; gap: 15px; align-items: center; color: #5f5478; font-size: 11px; font-weight: 600; }
.footer-brand > span { color: #77758a; font-size: 10px; font-weight: 400; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 16px; }
.service-status { color: #817d93; font-size: 9px; }
.spinner { width: 25px; height: 25px; border: 2px solid #e5ddfa; border-top-color: var(--purple); border-radius: 50%; margin: 0 auto 15px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.job-list { display: grid; gap: 16px; }
.job-list-filter { display: flex; gap: 10px; max-width: 560px; margin-bottom: 20px; scroll-margin-top: 160px; }
.job-list-filter input { height: 42px; margin: 0; }
.job-list-filter .button { flex-shrink: 0; }
.job-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 22px 0; color: #887c9b; font-size: 12px; }
.job-pagination > div { display: flex; gap: 10px; }
.job-card { min-width: 0; padding: 23px 25px; background: white; border: 1px solid var(--line); border-radius: 24px; }
.job-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.job-card-top > div { min-width: 0; }
.job-card h3 { margin: 0 0 6px; font-size: 18px; font-weight: 650; line-height: 1.6; overflow-wrap: anywhere; }
.job-company { margin: 0; color: #6e6d83; font-size: 12px; }
.job-salary { color: var(--orange); font-size: 16px; font-weight: 650; text-align: right; flex-shrink: 0; max-width: 42%; overflow-wrap: anywhere; }
.job-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 15px 0; }
.job-tag { padding: 3px 8px; color: #6b637c; background: #f5f2f9; border-radius: 99px; font-size: 11px; overflow-wrap: anywhere; }
.job-summary { color: #65677e; font-size: 12px; line-height: 1.9; white-space: pre-line; overflow-wrap: anywhere; margin-bottom: 15px; }
.match-reason { padding: 11px 13px; color: #706084; background: #f6f2fc; border-radius: 7px; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.match-reason strong { margin-right: 8px; color: #71529c; font-weight: 600; }
.job-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #f0edf5; }
.job-source { display: grid; min-width: 0; gap: 4px; color: #767084; font-size: 10px; overflow-wrap: anywhere; }
.job-source a { color: #6153a0; text-underline-offset: 3px; }
.delivery-link { display: block; margin-top: 6px; color: #6153a0; font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; word-break: break-word; text-underline-offset: 3px; }
.job-status { color: #83704e; font-size: 11px; }
.compact { min-height: 36px; padding: 8px 12px; gap: 10px; font-size: 11px; }
.source-list { display: flex; flex-wrap: wrap; gap: 8px 15px; padding: 17px 2px; color: #756781; font-size: 11px; overflow-wrap: anywhere; }
.source-list a { color: #6153a0; text-underline-offset: 3px; }
.resume-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 9px 0 27px; }
.resume-heading .eyebrow { margin-bottom: 9px; color: #805bb2; font-size: 11px; letter-spacing: .7px; }
.resume-heading h1 { font-size: 22px; margin-bottom: 9px; color: var(--navy); }
.resume-heading p:last-child { margin-bottom: 0; color: var(--muted); font-size: 12px; }
.resume-workspace { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 24px; align-items: start; padding-bottom: 10px; }
.resume-editor { min-width: 0; padding: 25px; background: white; border: 1px solid var(--line); border-radius: 24px; }
.editor-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; padding-bottom: 19px; border-bottom: 1px solid var(--line); }
.editor-heading h2 { margin: 0; font-size: 16px; white-space: nowrap; }
.editor-heading > span { color: #7c7389; font-size: 10px; }
.form-section-title { margin: 23px 0 15px; color: #514161; font-size: 13px; font-weight: 600; }
.form-section-title > span { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 6px; color: #8968ad; background: #f5effb; border-radius: 6px; font-size: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }
#resume-form > label { margin-top: 18px; }
.optional { color: #797184; font-size: 10px; font-weight: 400; margin-left: 5px; }
.form-help { margin: 18px 0; color: #797184; font-size: 11px; line-height: 1.8; }
.resume-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.resume-actions .button { flex: 1; padding: 11px 13px; gap: 13px; }
.storage-actions { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 18px; }
.storage-actions button { border: 0; padding: 0; color: #776587; background: transparent; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.preview-workspace { position: sticky; top: 20px; min-width: 0; }
.preview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; color: #77608e; font-size: 12px; }
.preview-toolbar .status-dot { margin-right: 7px; }
.paper-surround { padding: 23px; background: #eae6f1; border: 1px solid #e0dbe9; border-radius: 11px; }
.resume-paper { width: 100%; min-height: 690px; padding: 36px; color: #28324c; background: white; box-shadow: 0 5px 18px #3822510d; font-size: 11px; }
.paper-placeholder { padding: 155px 0 110px; text-align: center; color: #807389; }
.paper-placeholder-icon { display: grid; place-items: center; width: 58px; height: 70px; margin: 0 auto 23px; border: 1px solid #e2daeb; border-radius: 7px; color: #af9abb; }
.paper-placeholder-icon svg { width: 30px; height: 30px; }
.paper-placeholder h3 { margin-bottom: 9px; color: #756382; font-size: 14px; font-weight: 500; }
.paper-placeholder p { font-size: 11px; line-height: 1.9; }
.paper-placeholder > span { display: block; margin-top: 26px; color: #84748e; font-size: 10px; letter-spacing: 1px; }
.preview-help { color: #797184; font-size: 11px; line-height: 1.9; margin: 12px 0 0; }
.resume-name { color: var(--navy); font-size: 27px; font-weight: 650; letter-spacing: 2px; margin-bottom: 7px; overflow-wrap: anywhere; }
.resume-target { color: #6b5a83; font-size: 12px; margin-bottom: 7px; overflow-wrap: anywhere; }
.resume-contact { color: #757084; font-size: 10px; overflow-wrap: anywhere; }
.resume-section { margin-top: 23px; }
.resume-section h3 { color: #51406f; font-size: 12px; font-weight: 650; letter-spacing: .5px; padding-bottom: 7px; border-bottom: 1px solid #e1d9ec; margin-bottom: 10px; break-after: avoid; }
.resume-section p { font-size: 11px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 0; }
@media (max-width: 1080px) {
  .job-fields { gap: 12px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr) minmax(0, 1fr); }
  .search-actions { gap: 14px; }
  .search-actions > p { max-width: 290px; }
  .discovery-workspace { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .resume-editor { padding: 21px; }
  .paper-surround { padding: 16px; }
  .resume-paper { min-height: 620px; padding: 28px; }
}
@media (max-width: 1180px) {
  .resume-workspace { grid-template-columns: minmax(0, 1fr); }
  .preview-workspace { position: static; }
}
@media (max-width: 960px) {
  body { padding-left: 0; }
  .site-header { position: sticky; inset: 0 0 auto; width: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .header-inner { max-width: 1280px; margin: 0 auto; height: auto; padding: 20px 28px 14px; gap: 18px; }
  .header-inner nav { flex-direction: row; gap: 7px; }
  .nav-link { min-height: 40px; gap: 8px; padding: 9px 17px; font-size: 12px; }
  main { padding: 0 28px; }
  .topbar { min-height: 62px; }
}
@media (max-width: 820px) {
  .search-panel { padding: 22px; }
  .search-actions { align-items: flex-start; flex-direction: column; gap: 15px; }
  .search-actions > p { max-width: none; }
  .button-row { align-self: flex-end; }
  .discovery-workspace { grid-template-columns: minmax(0, 1fr); }
  .resume-workspace { grid-template-columns: minmax(0, 1fr); }
  .preview-workspace { position: static; }
  .resume-paper { min-height: 760px; padding: 42px; }
  .resume-heading h1 { font-size: 22px; }
  .footer-brand { display: block; }
  .footer-brand > span { display: block; margin-top: 4px; }
  .footer-meta { flex-direction: column; gap: 4px; text-align: right; }
}
@media (max-width: 600px) {
  .header-inner { padding: 17px 18px 12px; gap: 15px; }
  .brand { font-size: 18px; gap: 8px; letter-spacing: 0; }
  .brand-mark { width: 38px; }
  .header-inner nav { gap: 4px; }
  .nav-link { min-height: 38px; padding: 8px 12px; font-size: 11px; }
  .nav-link svg { width: 16px; height: 16px; }
  main { padding: 0 18px; }
  .topbar { min-height: 48px; }
  .breadcrumb { font-size: 10px; gap: 7px; }
  .workspace-note { display: none; }
  .search-panel { margin-top: 16px; padding: 20px 18px 18px; }
  .section-heading { gap: 10px; margin-bottom: 20px; }
  .section-icon { width: 35px; height: 35px; border-radius: 9px; }
  .section-icon svg { width: 18px; height: 18px; }
  h2 { font-size: 15px; }
  .section-heading p { font-size: 10px; }
  .panel-tag { display: none; }
  .job-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 12px; }
  .major-field { grid-column: 1 / -1; }
  label { font-size: 12px; }
  input, select, textarea { font-size: 14px; padding: 11px 10px; }
  input, select { height: 46px; }
  .search-actions { margin-top: 20px; padding-top: 16px; gap: 16px; }
  .search-actions > p { font-size: 10px; align-items: flex-start; gap: 6px; }
  .search-actions > p svg { margin-top: 1px; }
  .button-row { width: 100%; gap: 20px; justify-content: space-between; }
  #search-button { min-width: 0; flex: 1; max-width: 200px; }
  .button { min-height: 44px; font-size: 12px; }
  .inline-message { font-size: 11px; padding: 11px 13px; }
  .discovery-workspace { margin-top: 25px; gap: 18px; }
  .results-heading h2 { font-size: 16px; }
  .results-heading p { font-size: 10px; }
  .empty-state { padding: 30px 20px; }
  .empty-state h3 { font-size: 14px; }
  .empty-state p { font-size: 11px; }
  .empty-state p br { display: none; }
  .page-footer { font-size: 9px; margin-top: 23px; padding: 19px 0; gap: 15px; align-items: flex-start; }
  .footer-brand { font-size: 10px; }
  .footer-brand > span, .footer-meta { font-size: 8px; }
  .service-status { font-size: 8px; }
  .job-card { padding: 20px; }
  .job-card-top { gap: 12px; }
  .job-card h3 { font-size: 16px; }
  .job-company { font-size: 11px; }
  .job-salary { font-size: 14px; max-width: 35%; }
  .job-tag { font-size: 10px; }
  .job-summary, .match-reason { font-size: 11px; }
  .job-card-footer { align-items: flex-start; flex-direction: column; gap: 14px; }
  .job-card-footer .button { align-self: flex-end; min-height: 37px; }
  .source-list { font-size: 10px; }
  .resume-heading { align-items: flex-start; flex-wrap: wrap; gap: 16px; padding: 4px 0 22px; }
  .resume-heading .eyebrow { font-size: 10px; }
  .resume-heading h1 { font-size: 22px; letter-spacing: 0; margin-bottom: 7px; }
  .resume-heading p:last-child { font-size: 11px; }
  .resume-heading > .button { min-height: 36px; padding: 8px 13px; font-size: 11px; }
  .resume-editor { padding: 20px 18px; }
  .editor-heading { gap: 10px; padding-bottom: 16px; }
  .editor-heading h2 { font-size: 15px; }
  .editor-heading > span { font-size: 9px; }
  .form-grid { gap: 16px 12px; }
  .form-section-title { margin-top: 20px; }
  .form-help { font-size: 10px; }
  .resume-actions .button { font-size: 11px; padding: 10px; gap: 9px; }
  .storage-actions { gap: 18px; }
  .storage-actions button { font-size: 10px; }
  .preview-toolbar { font-size: 11px; }
  .preview-toolbar .button { min-height: 35px; font-size: 10px; padding: 7px 10px; }
  .paper-surround { padding: 12px; }
  .resume-paper { min-height: 490px; padding: 25px 23px; }
  .paper-placeholder { padding: 100px 0 80px; }
  .paper-placeholder h3 { font-size: 12px; }
  .paper-placeholder p { font-size: 10px; }
  .paper-placeholder > span { font-size: 9px; }
  .resume-name { font-size: 23px; }
  .resume-target { font-size: 11px; }
  .resume-contact { font-size: 9px; }
  .resume-section { margin-top: 21px; }
  .resume-section h3 { font-size: 11px; }
  .resume-section p { font-size: 10px; }
  .preview-help { font-size: 10px; }
}
@media (max-width: 360px) {
  .header-inner { padding: 16px 14px 11px; gap: 14px; }
  .brand { font-size: 16px; gap: 7px; }
  .brand-mark { width: 34px; }
  .nav-link { padding: 8px 7px; font-size: 10px; }
  main { padding: 0 14px; }
  .search-panel { padding: 19px 16px; }
  .section-heading { gap: 8px; }
  .section-heading h2 { font-size: 14px; }
  .section-heading p { font-size: 9px; }
  .button-row { gap: 15px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .preview-toolbar { gap: 7px; font-size: 10px; }
  .preview-toolbar .button { gap: 6px; padding: 7px 8px; }
  .resume-paper { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@page { size: A4; margin: 18mm; }
@media print {
  body { padding: 0; background: white; color: #222; }
  .site-header, .topbar, .page-footer, #jobs-page, .resume-heading, .resume-editor, .preview-toolbar, .preview-help { display: none !important; }
  main { margin: 0; padding: 0; max-width: none; }
  #resume-page, .resume-workspace, .preview-workspace, .paper-surround { display: block !important; margin: 0; padding: 0; border: 0; background: white; position: static; }
  .resume-paper { width: 100%; min-height: 0; padding: 0; box-shadow: none; font-size: 10pt; }
  .resume-name { font-size: 25pt; }
  .resume-target { font-size: 11pt; }
  .resume-contact { font-size: 9pt; }
  .resume-section { margin-top: 19pt; }
  .resume-section h3 { font-size: 11pt; }
  .resume-section p { font-size: 10pt; line-height: 1.7; orphans: 3; widows: 3; }
}
