.resume-section {
  width: min(1180px, calc(100% - 32px));
  margin: 22px auto 56px;
}

.resume-head {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  min-height: 180px;
  padding: clamp(26px, 4vw, 48px);
  overflow: hidden;
  border: 1px solid rgba(126, 119, 101, 0.2);
  border-radius: 26px;
  background:
    radial-gradient(circle at 88% 18%, rgba(239, 189, 105, 0.28), transparent 13rem),
    linear-gradient(140deg, #173f35, #285b4c);
  color: #fff;
  box-shadow: var(--shadow-card);
}

.resume-head::after {
  content: "CV";
  position: absolute;
  right: clamp(24px, 5vw, 72px);
  top: -28px;
  color: rgba(255, 255, 255, 0.045);
  font-size: 170px;
  font-weight: 1000;
  line-height: 1;
  pointer-events: none;
}

.resume-head > * { position: relative; z-index: 1; }
.resume-head .section-kicker { margin: 0 0 7px; color: #efbd69; }
.resume-head h1 { margin: 0; font-size: clamp(34px, 5vw, 54px); letter-spacing: -0.05em; }
.resume-head .section-copy { max-width: 600px; margin: 12px 0 0; color: rgba(255, 255, 255, 0.7); line-height: 1.8; }

.resume-head-note {
  display: grid;
  min-width: 160px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.resume-head-note strong { color: #fff; font-size: 18px; }
.resume-head-note span { margin-top: 4px; color: rgba(255, 255, 255, 0.55); font-size: 10px; }

.resume-template-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 10px 26px rgba(42, 52, 44, 0.07);
}

.resume-interview {
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid rgba(52, 116, 95, 0.2);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 10px 26px rgba(42, 52, 44, 0.07);
}

.resume-ai-builder {
  display: grid;
  gap: 11px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(52, 116, 95, 0.2);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 10px 26px rgba(42, 52, 44, 0.07);
}

.resume-ai-builder-head { display: flex; align-items: center; gap: 11px; }
.resume-ai-builder-head strong { color: var(--brand-dark); font-size: 16px; }
.resume-ai-builder-head p { margin: 3px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.resume-ai-builder .agnes-key-panel { margin: 0; }
.resume-ai-builder-form { display: grid; grid-template-columns: minmax(180px, .7fr) minmax(280px, 1.3fr); gap: 9px; align-items: end; }
.resume-ai-builder-form label { display: grid; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 800; }
.resume-ai-builder-form label.wide { grid-row: span 2; }
.resume-ai-builder-form textarea { min-height: 130px; resize: vertical; }
.resume-ai-builder-form button { min-height: 40px; border: 0; border-radius: 10px; background: var(--brand-dark); color: #fff; font-weight: 900; }
.resume-ai-builder-form > span { color: var(--muted); font-size: 10px; line-height: 1.5; }
.resume-ai-source { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 10px 12px; border: 1px dashed rgba(52, 116, 95, .35); border-radius: 12px; background: rgba(52, 116, 95, .045); }
.resume-ai-source > div:first-child { display: grid; min-width: 0; gap: 4px; }
.resume-ai-source strong { color: var(--brand-dark); font-size: 11px; }
.resume-ai-source span { overflow-wrap: anywhere; color: var(--muted); font-size: 9px; line-height: 1.5; }
.resume-ai-source > div:last-of-type { display: flex; flex: none; gap: 7px; }
.resume-ai-source button { min-height: 34px; padding: 6px 10px; }
.resume-ai-source button.subtle { border: 1px solid var(--line); background: var(--surface); color: var(--brand-dark); }
.resume-ai-draft { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px; border: 1px solid rgba(52, 116, 95, .22); border-radius: 13px; background: rgba(52, 116, 95, .07); }
.resume-ai-draft[hidden] { display: none; }
.resume-ai-draft h3 { margin: 0 0 5px; color: var(--brand-dark); }
.resume-ai-draft p { margin: 0 0 7px; color: var(--ink); font-size: 11px; line-height: 1.55; }
.resume-ai-draft div > div { display: flex; flex-wrap: wrap; gap: 6px; }
.resume-ai-draft span { padding: 4px 7px; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 9px; }
.resume-ai-draft small { display: block; margin-top: 7px; color: var(--muted); line-height: 1.5; }
.resume-ai-draft > div:last-child { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
.resume-ai-draft button { min-height: 36px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--brand-dark); font-weight: 900; }
.resume-ai-draft button:first-child { border-color: var(--brand-dark); background: var(--brand-dark); color: #fff; }

.resume-interview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
}

.resume-interview-head > div { display: flex; align-items: center; gap: 11px; }
.resume-interview-head strong { color: var(--brand-dark); font-size: 16px; }
.resume-interview-head p { margin: 3px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.resume-ai-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; font-size: 13px; font-weight: 1000; }
.resume-interview-head > button { min-height: 38px; padding: 8px 13px; border: 1px solid var(--brand); border-radius: 10px; background: var(--brand-dark); color: #fff; font-weight: 900; }

.resume-interview-body { display: grid; gap: 11px; padding: 0 14px 14px; border-top: 1px solid var(--line); }
.resume-interview-body[hidden] { display: none; }
.resume-interview-body .agnes-key-panel { margin: 12px 0 0; }
.resume-interview-source { display: grid; grid-template-columns: minmax(190px, 1fr) minmax(180px, 1fr) minmax(180px, 1fr) auto; gap: 8px; align-items: stretch; }
.resume-interview-source > div { display: grid; align-content: center; gap: 4px; padding: 9px; }
.resume-interview-source > div strong { color: var(--brand-dark); font-size: 12px; }
.resume-interview-source > div span { color: var(--muted); font-size: 9px; }
.resume-interview-source label { display: flex; gap: 8px; align-items: center; padding: 9px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); cursor: pointer; }
.resume-interview-source label:has(input:checked) { border-color: var(--brand); background: rgba(52,116,95,.08); }
.resume-interview-source label span { display: grid; gap: 2px; }
.resume-interview-source label strong { color: var(--ink); font-size: 10px; }
.resume-interview-source label small { color: var(--muted); font-size: 8px; }
.resume-interview-source > button { min-height: 40px; align-self: center; padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--brand-dark); font-weight: 800; }
.resume-interview-setup { display: grid; grid-template-columns: minmax(180px, 1fr) 130px 130px auto; gap: 8px; align-items: end; }
.resume-interview-setup label { display: grid; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 800; }
.resume-interview-setup input,
.resume-interview-setup select { width: 100%; min-height: 39px; }
.resume-interview-setup button { min-height: 39px; padding: 8px 13px; border: 0; border-radius: 10px; background: var(--brand-dark); color: #fff; font-weight: 900; }
.resume-interview-progress { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 10px; }
.resume-interview-progress button { min-height: 32px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--brand-dark); font-size: 10px; font-weight: 800; }
.resume-interview-chat { display: grid; gap: 8px; max-height: 420px; overflow-y: auto; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); }
.resume-interview-welcome { padding: 22px; color: var(--muted); font-size: 11px; text-align: center; }
.resume-interview-message { max-width: 86%; padding: 10px 12px; border-radius: 12px; font-size: 11px; line-height: 1.65; white-space: pre-wrap; }
.resume-interview-message.interviewer { justify-self: start; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.resume-interview-message.candidate { justify-self: end; background: var(--brand-dark); color: #fff; }
.resume-interview-message.feedback { justify-self: start; border-left: 3px solid var(--accent); background: rgba(239, 189, 105, 0.14); color: var(--ink); }
.resume-interview-answer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: stretch; }
.resume-interview-answer textarea { min-height: 88px; resize: vertical; }
.resume-interview-answer button { min-width: 110px; border: 0; border-radius: 10px; background: var(--brand-dark); color: #fff; font-weight: 900; }
.resume-interview-report { padding: 14px; border: 1px solid rgba(52, 116, 95, 0.25); border-radius: 13px; background: rgba(52, 116, 95, 0.07); }
.resume-interview-report h3 { margin: 0 0 8px; color: var(--brand-dark); }
.resume-interview-report p { margin: 6px 0; color: var(--ink); font-size: 11px; line-height: 1.65; white-space: pre-wrap; }

@media (max-width: 800px) {
  .resume-ai-builder-form { grid-template-columns: 1fr; }
  .resume-ai-builder-form label.wide { grid-row: auto; }
  .resume-interview-source { grid-template-columns: 1fr 1fr; }
  .resume-interview-source > div { grid-column: 1 / -1; }
  .resume-interview-setup { grid-template-columns: 1fr 1fr; }
  .resume-interview-setup label:first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .resume-ai-source { align-items: stretch; flex-direction: column; }
  .resume-ai-source > div:last-of-type { width: 100%; }
  .resume-ai-source button { flex: 1; }
  .resume-ai-draft { grid-template-columns: 1fr; }
  .resume-ai-draft > div:last-child { justify-content: flex-start; }
  .resume-interview-source { grid-template-columns: 1fr; }
  .resume-interview-source > div { grid-column: auto; }
  .resume-interview-head { align-items: flex-start; }
  .resume-interview-head > div { align-items: flex-start; }
  .resume-interview-setup { grid-template-columns: 1fr; }
  .resume-interview-setup label:first-child { grid-column: auto; }
  .resume-interview-answer { grid-template-columns: 1fr; }
  .resume-interview-message { max-width: 96%; }
}

.resume-template-copy {
  display: grid;
  align-content: center;
  min-width: 128px;
  padding: 6px 10px;
}

.resume-template-copy strong { color: var(--brand-dark); font-size: 14px; }
.resume-template-copy span { margin-top: 3px; color: var(--muted); font-size: 9px; }

.resume-template-switch {
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 7px 11px;
  border: 1px solid rgba(52, 116, 95, 0.26);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.resume-template-switch > span { padding: 6px 8px; border-radius: 7px; background: var(--brand-dark); color: #fff; font-size: 10px; font-weight: 900; }
.resume-template-switch > strong { color: var(--brand-dark); font-size: 11px; }
.resume-template-switch > small { padding-left: 8px; border-left: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.resume-template-switch:hover { border-color: var(--brand); box-shadow: 0 5px 14px rgba(52, 116, 95, 0.1); }

body.resume-template-open { overflow: hidden; }

.resume-template-mask {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(35, 30, 24, 0.36);
  backdrop-filter: blur(3px);
}

.resume-template-mask[hidden] { display: none; }

.resume-template-dialog {
  display: flex;
  width: min(1050px, calc(100vw - 40px));
  max-height: min(88vh, 920px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e7ddcf;
  border-radius: 18px;
  background: #fffdf9;
  box-shadow: 0 28px 70px rgba(45, 37, 33, 0.24);
  animation: resume-dialog-in 0.18s ease-out both;
}

@keyframes resume-dialog-in {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.resume-template-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 62px;
  padding: 10px 18px;
  border-bottom: 1px solid #eee3d5;
}

.resume-template-dialog-head > div { display: grid; gap: 3px; }
.resume-template-dialog-head strong { color: #2d2521; font-size: 17px; }
.resume-template-dialog-head span { color: #8c7d6f; font-size: 10px; }
.resume-template-dialog-head button { display: grid; width: 34px; height: 34px; place-items: center; padding: 0; border: 1px solid #e8dccb; border-radius: 9px; background: #fff; color: #7b6a5b; font-size: 22px; line-height: 1; cursor: pointer; }

.resume-template-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
  overflow: auto;
}

.resume-template-card {
  display: grid;
  min-width: 0;
  padding: 10px;
  border: 1px solid #eadfD1;
  border-radius: 13px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.resume-template-card:hover { border-color: #cdbba4; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(45, 37, 33, 0.1); }
.resume-template-card.active { border-color: #4b89dc; box-shadow: 0 0 0 2px rgba(75, 137, 220, 0.15); }

.resume-template-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 5 / 7;
  overflow: hidden;
  border: 1px solid #ece2d4;
  border-radius: 8px;
  background: #f6f2ec;
}

.resume-template-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: top center; }
.resume-template-thumb.live-ready > img { display: none; }
.resume-template-live-paper {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 794px !important;
  min-height: 1123px !important;
  margin: 0 !important;
  box-shadow: none !important;
  pointer-events: none;
  transform: scale(var(--resume-template-preview-scale, 0.3));
  transform-origin: top left;
}
.resume-template-info { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; }
.resume-template-info strong { color: #2d2521; font-size: 13px; }
.resume-template-info small { flex: 0 0 auto; padding: 3px 7px; border: 1px solid #e9ded0; border-radius: 6px; color: #7b6a5b; font-size: 9px; font-weight: 800; }

.resume-template-gallery {
  order: 3;
  display: grid;
  grid-template-columns: repeat(9, minmax(88px, 1fr));
  flex: 1 1 100%;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  padding: 2px 3px 7px;
  scrollbar-color: rgba(52, 116, 95, 0.3) transparent;
  scrollbar-width: thin;
}

.resume-template-option {
  display: grid;
  grid-template-columns: 42px auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #faf8f2;
  color: var(--ink);
  cursor: pointer;
}

.resume-template-option:hover { border-color: rgba(52, 116, 95, 0.38); transform: translateY(-1px); }
.resume-template-option.active { border-color: var(--brand); background: #edf4ef; box-shadow: 0 0 0 3px rgba(52, 116, 95, 0.09); }
.resume-template-option > strong { font-size: 11px; }

.template-mini {
  display: grid;
  align-content: center;
  gap: 3px;
  width: 38px;
  height: 48px;
  padding: 6px;
  border: 1px solid #d8d3c9;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 4px 8px rgba(40, 44, 41, 0.08);
}

.template-mini i { display: block; height: 3px; border-radius: 9px; background: #aab4b0; }
.template-mini i:first-child { width: 60%; background: #344b44; }
.template-mini.blue { border-top: 7px solid #4a78c9; }
.template-mini.blue i { background: #88a7df; }
.template-mini.sidebar { grid-template-columns: 9px 1fr; }
.template-mini.sidebar::before { content: ""; grid-row: 1 / 4; width: 9px; height: 33px; background: #315f55; }
.template-mini.sidebar i { grid-column: 2; }
.template-mini.green { border-top: 7px solid #55a889; background: #f1faf6; }
.template-mini.green i { background: #91c7b2; }
.template-mini.minimal { padding: 9px 7px; border-color: #aaa; }
.template-mini.minimal i { height: 2px; background: #b9b9b9; }
.template-mini.minimal i:first-child { width: 45%; background: #222; }
.template-mini.curved { border: 0; background: radial-gradient(circle at 100% 0, #4c86d8 0 16px, #fff 17px); }
.template-mini.curved i { background: #9db8dc; }
.template-mini.dark { border-top: 15px solid #26313d; }
.template-mini.dark i:first-child { background: #d7aa64; }
.template-mini.timeline { position: relative; padding-left: 12px; }
.template-mini.timeline::before { content: ""; position: absolute; top: 13px; bottom: 7px; left: 7px; width: 2px; background: #d98d5f; }
.template-mini.timeline i { background: #d8b09a; }
.template-mini.elegant { border-color: #cdbba4; background: #fffaf2; }
.template-mini.elegant i { background: #cdb69c; }
.template-mini.elegant i:first-child { background: #795f4b; }

.resume-file-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.resume-file-actions button {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--brand-dark);
  font-size: 10px;
  white-space: nowrap;
}

.resume-workspace {
  display: grid;
  grid-template-columns: minmax(360px, 0.88fr) minmax(480px, 1.12fr);
  align-items: start;
  gap: 12px;
  margin-top: 12px;
}

.resume-editor,
.resume-preview-pane {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(42, 52, 44, 0.07);
}

.resume-editor { position: relative; padding: 14px; }

.resume-editor-head,
.resume-preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 3px 4px 13px;
}

.resume-editor-head > div,
.resume-preview-toolbar > div { display: grid; gap: 2px; }
.resume-editor-head strong,
.resume-preview-toolbar strong { color: var(--brand-dark); font-size: 15px; }
.resume-editor-head span,
.resume-preview-toolbar span { color: #596a62; font-size: 11px; font-weight: 650; }

.resume-local-chip {
  padding: 5px 8px;
  border-radius: 99px;
  background: #edf4ef;
  color: var(--brand-dark) !important;
  font-weight: 800;
}

.resume-module-tools {
  position: sticky;
  z-index: 46;
  top: 92px;
  display: flex;
  height: 0;
  justify-content: flex-end;
  pointer-events: none;
}

.resume-module-anchor { position: relative; pointer-events: auto; }

.resume-module-tool {
  position: relative;
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  border: 1px solid #26332f;
  border-radius: 50%;
  background: #26332f;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(36, 48, 43, 0.24);
}

.resume-module-tool:hover { transform: translateY(-1px); background: #17241f; }
.resume-module-tool svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.resume-module-tool > span { position: absolute; top: -5px; right: -4px; display: grid; min-width: 21px; height: 21px; padding: 0 5px; place-items: center; border: 2px solid #fffdf8; border-radius: 99px; background: #e47d43; color: #fff; font-size: 9px; font-weight: 900; }

.resume-module-menu {
  position: absolute;
  top: -8px;
  right: calc(100% + 10px);
  width: 306px;
  max-width: min(306px, calc(100vw - 100px));
  padding: 9px;
  border: 1px solid #e3d6c7;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(45, 37, 33, 0.18);
}

.resume-module-menu[hidden] { display: none; }
.resume-module-menu-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 2px 9px; }
.resume-module-menu-head > div { display: grid; gap: 2px; }
.resume-module-menu-head strong { color: #2d2521; font-size: 13px; }
.resume-module-menu-head span { color: #8a7461; font-size: 8px; }
.resume-module-menu-head button { display: grid; width: 27px; height: 27px; padding: 0; place-items: center; border: 1px solid #ddcfbf; border-radius: 8px; background: #fff; color: #8a7461; font-size: 17px; cursor: pointer; }
.resume-module-menu-head button:hover:not(:disabled) { border-color: #d97745; color: #d97745; }
.resume-module-menu-head button:disabled { cursor: not-allowed; opacity: 0.45; }

.resume-module-list { display: grid; gap: 6px; max-height: 390px; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.resume-module-item { display: flex; min-height: 43px; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 9px; border: 1px solid transparent; border-radius: 10px; background: #f2ece5; transition: border-color 0.16s ease, opacity 0.16s ease, transform 0.16s ease; }
.resume-module-item[draggable="true"] { cursor: grab; }
.resume-module-item[draggable="true"]:active { cursor: grabbing; }
.resume-module-item.active { border-color: #e9ded0; background: #fff; }
.resume-module-item.muted { opacity: 0.78; }
.resume-module-item.dragging { opacity: 0.42; }
.resume-module-item.drag-over { border-color: #d97745; box-shadow: inset 0 0 0 1px rgba(217, 119, 69, 0.2); }
.resume-module-info { display: flex; min-width: 0; align-items: center; gap: 7px; }
.resume-module-info > strong { overflow: hidden; color: #2d2521; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.resume-module-drag { color: #a08c7b; font-size: 11px; font-style: normal; letter-spacing: -2px; }
.resume-module-fixed { width: 11px; }
.resume-module-glyph { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 7px; background: #f6e8dc; color: #d97745; font-size: 9px; }
.resume-module-actions,
.resume-module-order { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 4px; }
.resume-module-order button { width: 23px; height: 23px; padding: 0; border: 1px solid #ddcfbf; border-radius: 6px; background: #fff; color: #8a7461; font-size: 11px; font-weight: 800; cursor: pointer; }
.resume-module-order button:hover:not(:disabled) { border-color: #d97745; color: #d97745; }
.resume-module-order button:disabled { cursor: not-allowed; opacity: 0.4; }
.resume-module-switch { position: relative; width: 38px; height: 22px; flex: 0 0 auto; cursor: pointer; }
.resume-module-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.resume-module-switch > span { position: absolute; inset: 0; border-radius: 99px; background: #b8afa6; transition: background 0.18s ease; }
.resume-module-switch > span::before { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.18s ease; }
.resume-module-switch input:checked + span { background: #e47d43; }
.resume-module-switch input:checked + span::before { transform: translateX(16px); }
.resume-module-switch input:focus-visible + span { outline: 3px solid rgba(217, 119, 69, 0.2); }

.resume-module-sections { display: grid; gap: 0; }
.resume-form-section.module-disabled { background: #f2eee8; opacity: 0.78; }
.resume-form-section.module-disabled > :not(summary) { display: none !important; }
.resume-form-section.module-disabled summary { background: #ebe6df; }
.resume-form-section.module-disabled summary > span { background: #c9c1b7; color: #fff; }

.resume-form-section {
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffdf8;
}

.resume-form-section summary {
  display: grid;
  grid-template-columns: 27px auto 1fr;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 12px;
  background: #f5f1e8;
  cursor: pointer;
  list-style: none;
}

.resume-form-section summary::-webkit-details-marker { display: none; }
.resume-form-section summary > span { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 8px; background: #e9b85f; color: #5d3d18; font-size: 9px; font-weight: 900; }
.resume-form-section summary strong { color: var(--brand-dark); font-size: 13px; }
.resume-form-section summary small { justify-self: end; color: var(--muted); font-size: 9px; }

.resume-form-grid,
.resume-form-body,
.resume-entry-card { padding: 12px; }

.resume-photo-editor {
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: center;
  gap: 13px;
  margin: 12px 12px 0;
  padding: 11px;
  border: 1px dashed #d8cdbd;
  border-radius: 12px;
  background: #faf8f2;
}

.resume-photo-placeholder {
  display: grid;
  width: 72px;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid #d6cec0;
  border-radius: 14px;
  background: linear-gradient(145deg, #eef4f0, #e7e0d4);
  color: #829087;
  font-size: 10px;
  font-weight: 900;
}

.resume-photo-placeholder img { width: 100%; height: 100%; object-fit: cover; }
.resume-photo-editor > div:last-child { min-width: 0; }
.resume-photo-editor strong { color: var(--brand-dark); font-size: 12px; }
.resume-photo-editor p { margin: 3px 0 8px; color: var(--muted); font-size: 9px; line-height: 1.6; }
.resume-photo-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.resume-photo-actions button { min-height: 32px; padding: 6px 9px; border: 1px solid rgba(52, 116, 95, 0.28); border-radius: 8px; background: #edf4ef; color: var(--brand-dark); font-size: 9px; }
.resume-photo-actions button.subtle { border-color: #e3d5cb; background: #fff; color: #9b554b; }
.resume-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.resume-form-grid label,
.resume-form-body label,
.resume-entry-card label { display: grid; gap: 5px; color: #58665f; font-size: 9px; font-weight: 800; }
.resume-form-grid input,
.resume-form-grid textarea,
.resume-form-body textarea,
.resume-entry-card input,
.resume-entry-card textarea {
  width: 100%;
  min-height: 39px;
  padding: 9px 10px;
  border: 1px solid #ddd6ca;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 11px;
  resize: vertical;
}

.resume-form-grid input:focus,
.resume-form-grid textarea:focus,
.resume-form-body textarea:focus,
.resume-entry-card input:focus,
.resume-entry-card textarea:focus { border-color: rgba(52, 116, 95, 0.58); outline: 3px solid rgba(52, 116, 95, 0.08); }
.resume-field-wide { grid-column: 1 / -1; }

.resume-entry-list { display: grid; gap: 8px; padding: 10px 10px 0; }
.resume-entry-card { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; border: 1px dashed #ddd4c5; border-radius: 11px; background: #faf8f2; }
.resume-entry-card .entry-wide { grid-column: 1 / -1; }
.resume-remove-entry { position: absolute; top: 7px; right: 7px; width: 25px; height: 25px; padding: 0; border: 0; border-radius: 7px; background: #f4e5df; color: #a74237; cursor: pointer; }
.resume-add-entry { width: calc(100% - 20px); min-height: 37px; margin: 10px; border: 1px dashed rgba(52, 116, 95, 0.35); border-radius: 10px; background: #edf4ef; color: var(--brand-dark); font-size: 10px; font-weight: 900; }

.resume-preview-pane { position: sticky; top: 82px; padding: 14px; }
.resume-preview-toolbar button { min-height: 38px; border-radius: 9px; }
.resume-preview-toolbar button.primary { border-color: var(--brand); background: var(--brand); color: #fff; }
.resume-output-actions { display: flex !important; grid-template-columns: none !important; flex-wrap: wrap; justify-content: flex-end; gap: 6px !important; }
.resume-output-actions button { padding: 8px 12px; border: 1px solid var(--line); background: #fff; color: var(--brand-dark); font-size: 10px; font-weight: 800; cursor: pointer; }
.resume-output-actions button:disabled { cursor: wait; opacity: 0.68; }
.resume-output-actions button.active { border-color: #e47d43; background: #fff2e8; color: #b6542e; box-shadow: 0 0 0 2px rgba(228, 125, 67, 0.12); }

.resume-design-panel {
  display: grid;
  grid-template-columns: minmax(130px, 1.2fr) minmax(112px, 1fr) 66px 66px;
  align-items: end;
  gap: 10px;
  margin: -3px 0 10px;
  padding: 14px;
  border: 1px solid #e4d4c2;
  border-radius: 13px;
  background: linear-gradient(135deg, #fffaf3, #f7f2e9);
  box-shadow: 0 8px 20px rgba(57, 46, 37, 0.07);
}

.resume-design-panel[hidden] { display: none; }
.resume-layer-workspace-part[hidden] { display: none !important; }
.resume-designer-actions,
.resume-element-palette,
.resume-layer-actions,
.resume-page-manager,
.resume-designer-sidepanels { grid-column: 1 / -1; }
.resume-designer-actions,
.resume-element-palette,
.resume-layer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.resume-designer-actions button,
.resume-element-palette button,
.resume-layer-actions button,
.resume-page-manager button,
.resume-page-tabs button {
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid #ddcfbf;
  border-radius: 8px;
  background: #fff;
  color: #483b32;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.resume-designer-actions button:hover,
.resume-element-palette button:hover,
.resume-layer-actions button:hover,
.resume-page-tabs button:hover { border-color: #e47d43; color: #b6542e; }
.resume-designer-actions button:disabled,
.resume-layer-actions button:disabled,
.resume-page-manager button:disabled { cursor: not-allowed; opacity: .42; }
.resume-designer-actions #resume-share-link { margin-left: auto; border-color: #b8d3ca; background: #edf6f1; color: #285f4e; }
.resume-designer-actions #resume-layer-workspace-toggle.active { border-color: #d19a62; background: #fff0dd; color: #8b4b27; }
.resume-element-palette { padding: 9px; border-radius: 10px; background: rgba(255,255,255,.72); }
.resume-element-palette > span { margin-right: 4px; color: #6f5a49; font-size: 11px; font-weight: 900; }
.resume-element-palette button { min-height: 34px; padding: 6px 10px; }
.resume-layer-actions { padding-top: 2px; border-top: 1px dashed #ddcfbf; }
.resume-page-manager { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; }
.resume-page-manager > div:first-child { display: grid; gap: 2px; color: #2f2823; font-size: 12px; }
.resume-page-manager > div:first-child span { color: #705d4f; font-size: 10px; font-weight: 650; }
.resume-page-tabs { display: flex; min-width: 0; gap: 5px; overflow-x: auto; padding: 2px; }
.resume-page-tabs button { min-width: 66px; white-space: nowrap; }
.resume-page-tabs button.active { border-color: #e47d43; background: #fce9dc; color: #b6542e; }
.resume-designer-sidepanels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.resume-designer-sidepanels > section { min-width: 0; padding: 10px; border: 1px solid #dacbbb; border-radius: 10px; background: rgba(255,255,255,.82); }
.resume-designer-sidepanels > section > div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.resume-designer-sidepanels strong { color: #2e2722; font-size: 12px; }
.resume-designer-sidepanels small { overflow: hidden; color: #756253; font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.resume-layer-list,
.resume-backup-list { display: grid; max-height: 190px; margin: 0; padding: 0; overflow: auto; gap: 5px; list-style: none; }
.resume-layer-list li { display: grid; grid-template-columns: minmax(0, 1fr) 34px 34px; align-items: stretch; border: 1px solid transparent; border-radius: 8px; background: #f7f4ee; }
.resume-layer-list li.active { border-color: #e47d43; background: #fff2e8; }
.resume-layer-list li.layer-hidden { opacity: .58; }
.resume-layer-list button { min-width: 0; min-height: 36px; padding: 4px; border: 0; background: transparent; color: #58483c; font-size: 14px; cursor: pointer; }
.resume-layer-list .resume-layer-select { display: flex; align-items: center; gap: 7px; padding: 6px 8px; text-align: left; }
.resume-layer-select span { flex: 0 0 auto; padding: 3px 5px; border-radius: 4px; background: #e5ddd2; color: #6c5a4c; font-size: 9px; font-weight: 750; }
.resume-layer-select strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.resume-layer-empty,
.resume-backup-empty { padding: 12px; color: #6e5c4e; font-size: 10px; line-height: 1.55; text-align: center; }
.resume-backup-list li:not(.resume-backup-empty) { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 5px 6px; border-radius: 8px; background: #f7f4ee; }
.resume-backup-list li > div { display: grid; min-width: 0; gap: 1px; }
.resume-backup-list strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.resume-backup-list time { color: #705d4f; font-size: 9px; font-weight: 600; }
.resume-backup-list button { padding: 6px 9px; border: 1px solid #d2c2b0; border-radius: 6px; background: #fff; color: #4d4036; font-size: 10px; font-weight: 750; cursor: pointer; }
.resume-design-selection { display: grid; align-self: center; min-width: 0; gap: 2px; }
.resume-design-selection span,
.resume-design-field > span { color: #6f5b4b; font-size: 10px; font-weight: 800; }
.resume-design-selection strong { overflow: hidden; color: #27211e; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.resume-design-field { display: grid; min-width: 0; gap: 4px; }
.resume-design-field select,
.resume-design-field input[type="number"] {
  width: 100%;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid #ddcfbf;
  border-radius: 8px;
  background: #fff;
  color: #3a3029;
  font: inherit;
  font-size: 11px;
}
.resume-design-field input[type="color"] { width: 100%; height: 34px; padding: 3px; border: 1px solid #ddcfbf; border-radius: 8px; background: #fff; cursor: pointer; }
.resume-design-button-group { display: flex; grid-column: 1 / 3; align-items: center; gap: 4px; }
.resume-design-button-group button,
.resume-design-reset-actions button { min-width: 32px; min-height: 34px; padding: 5px 8px; border: 1px solid #ddcfbf; border-radius: 8px; background: #fff; color: #5f5044; font-size: 10px; font-weight: 900; cursor: pointer; }
.resume-design-button-group button[data-resume-design-align] { width: 36px; font-size: 11px; }
.resume-design-button-group button.active { border-color: #e47d43; background: #fce9dc; color: #b6542e; }
.resume-design-button-group button:disabled,
.resume-design-reset-actions button:disabled,
.resume-design-field :disabled { cursor: not-allowed; opacity: 0.46; }
.resume-design-reset-actions { display: flex; grid-column: 1 / -1; align-items: center; justify-content: flex-end; gap: 4px; }
.resume-design-reset-actions button { white-space: nowrap; font-size: 10px; font-weight: 800; }
.resume-design-panel > p { grid-column: 1 / -1; margin: 3px 0 0; color: #705d4f; font-size: 10px; font-weight: 600; line-height: 1.55; }

.resume-paper.resume-design-mode [data-resume-design-id] { cursor: grab; touch-action: none; }
.resume-paper.resume-design-mode [data-resume-design-id]:hover:not(:has([data-resume-design-id]:hover)) { outline: 1px dashed rgba(228, 125, 67, 0.72); outline-offset: 3px; }
.resume-paper.resume-design-mode .resume-design-selected { outline: 2px solid #e47d43 !important; outline-offset: 4px; box-shadow: 0 0 0 5px rgba(228, 125, 67, 0.12); }
.resume-paper.resume-design-mode .resume-design-dragging { cursor: grabbing; opacity: 0.88; }
.resume-paper.resume-design-mode .resume-layer-locked { cursor: not-allowed; }
.resume-design-custom-font,
.resume-design-custom-font * { font-family: inherit !important; }
.resume-design-custom-size,
.resume-design-custom-size * { font-size: inherit !important; }
.resume-design-custom-color,
.resume-design-custom-color * { color: inherit !important; }
.resume-design-custom-bold,
.resume-design-custom-bold * { font-weight: inherit !important; }

.resume-paper-wrap {
  max-height: calc(100vh - 175px);
  overflow: auto;
  padding: 18px;
  border-radius: 14px;
  background: #e7e3da;
}

.resume-pages { display: grid; width: 100%; gap: 18px; }
.resume-page { position: relative; isolation: isolate; flex: none; overflow: hidden; break-after: page; }
.resume-page:last-child { break-after: auto; }
.resume-page-active { box-shadow: 0 0 0 3px rgba(228,125,67,.26), 0 10px 30px rgba(41,45,42,.16); }
.resume-blank-page { min-height: 940px; background: #fff; }
.resume-custom-layer { position: absolute; inset: 0; pointer-events: none; }
.resume-custom-element { position: absolute; display: flex; align-items: center; overflow: hidden; overflow-wrap: anywhere; line-height: 1.25; pointer-events: none; user-select: none; }
.resume-custom-element[hidden] { display: none; }
.resume-design-mode .resume-custom-element { pointer-events: auto; touch-action: none; }
.resume-custom-text { padding: 4px 7px; white-space: pre-wrap; user-select: text; }
.resume-custom-text[contenteditable="true"] { cursor: text; }
.resume-custom-text[contenteditable="true"]:focus { outline: 2px solid #e47d43; outline-offset: 2px; }
.resume-custom-image { justify-content: center; background: #edf1ef; }
.resume-custom-image img { width: 100%; height: 100%; object-fit: cover; }
.resume-custom-image span { color: #84908c; font-size: 11px; }
.resume-custom-block { border-radius: 10px; opacity: .76; }
.resume-custom-icon { justify-content: center; }
.resume-custom-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; }
.resume-custom-divider { min-height: 2px; }
.resume-snap-guide { position: absolute; z-index: 1000; display: none; margin: 0; background: #e4572e; pointer-events: none; }
.resume-snap-guide.visible { display: block; }
.resume-snap-guide-vertical { top: 0; bottom: 0; left: 50%; width: 1px; }
.resume-snap-guide-horizontal { top: 50%; right: 0; left: 0; height: 1px; }

.resume-paper {
  --resume-accent: #315f55;
  width: 100%;
  min-height: 940px;
  margin: 0 auto;
  padding: clamp(30px, 5vw, 52px);
  background: #fff;
  color: #252b29;
  box-shadow: 0 10px 30px rgba(41, 45, 42, 0.16);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.55;
}

.resume-pdf-stage {
  position: fixed;
  z-index: -10;
  top: 0;
  left: 0;
  width: 794px;
  pointer-events: none;
}

.resume-pdf-stage .resume-paper {
  width: 794px;
  min-height: 1123px;
  margin: 0;
  box-shadow: none;
}
.resume-pdf-stage .resume-pages { gap: 0; }
.resume-pdf-stage .resume-paper { break-after: page; }
.resume-pdf-stage .resume-paper:last-child { break-after: auto; }
.resume-pdf-stage .resume-snap-guide { display: none !important; }

.resume-doc-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 3px solid var(--resume-accent); }
.resume-doc-header-main { flex: 1 1 auto; min-width: 0; }
.resume-doc-photo { flex: 0 0 84px; width: 84px; height: 104px; margin: 0; overflow: hidden; border: 3px solid #fff; border-radius: 14px; background: #edf1ef; box-shadow: 0 3px 12px rgba(30, 40, 36, 0.16); }
.resume-doc-photo img { width: 100%; height: 100%; object-fit: cover; }
.resume-doc-identity { flex: 1 1 auto; min-width: 0; }
.resume-doc-header h1 { margin: 0; color: #1e2825; font-size: 34px; letter-spacing: 0.03em; }
.resume-doc-header .resume-doc-title { margin: 5px 0 0; color: var(--resume-accent); font-size: 14px; font-weight: 800; }
.resume-doc-contact { display: grid; gap: 5px; margin-top: 8px; color: #56605d; font-size: 10px; }
.resume-doc-meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 14px; }
.resume-doc-meta-item { display: inline-flex; min-width: 0; align-items: center; gap: 5px; }
.resume-doc-meta-item > span { min-width: 0; overflow-wrap: anywhere; }
.resume-doc-icon { display: block; width: 13px; height: 13px; flex: 0 0 13px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.resume-doc-meta-item > .resume-doc-icon { color: var(--resume-accent); }
.resume-meta-role { display: none; }
.resume-doc-contact a,
.resume-doc-link a { color: var(--resume-accent); overflow-wrap: anywhere; text-decoration: none; }
.resume-doc-contact a:hover,
.resume-doc-link a:hover { text-decoration: underline; }
.resume-doc-section { margin-top: 18px; }
.resume-doc-section h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 9px; color: var(--resume-accent); font-size: 15px; }
.resume-doc-section h2::before { content: ""; width: 4px; height: 17px; border-radius: 99px; background: var(--resume-accent); }
.resume-doc-section-icon { display: none; flex: 0 0 auto; }
.resume-doc-section-icon .resume-doc-icon { width: 12px; height: 12px; }
.resume-doc-section p { margin: 0; color: #454e4b; font-size: 10px; white-space: pre-line; }
.resume-doc-list { display: grid; gap: 12px; }
.resume-doc-entry { break-inside: avoid; }
.resume-doc-entry-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.resume-doc-entry-main { display: flex; min-width: 0; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.resume-doc-entry-head strong { color: #25302d; font-size: 12px; }
.resume-doc-entry-sub { color: #72839a; font-size: 11px; font-weight: 600; }
.resume-doc-entry-date { flex: 0 0 auto; color: #8795a8; font-size: 9px; white-space: nowrap; }
.resume-doc-entry-meta { margin: 2px 0 0 !important; color: #8795a8 !important; }
.resume-doc-link { margin-top: 3px !important; font-size: 9px !important; }
.resume-doc-entry ul,
.resume-skill-list { margin: 5px 0 0; padding-left: 16px; color: #454e4b; font-size: 10px; }
.resume-doc-entry li > strong,
.resume-skill-list li > strong { margin-right: 4px; color: #252b29; }
.resume-doc-empty { padding: 12px; border: 1px dashed #d7d7d7; border-radius: 7px; color: #a1a6a4 !important; text-align: center; }

.resume-paper.template-default { --resume-accent: #4d76e1; padding: 28px 24px; }
.resume-paper.template-default .resume-doc-header { gap: 24px; padding-bottom: 10px; border: 0; }
.resume-paper.template-default .resume-doc-photo { border: 1px solid #dbe1ea; border-radius: 6px; box-shadow: none; }
.resume-paper.template-default .resume-doc-section { margin-top: 12px; }
.resume-paper.template-default .resume-doc-section h2 { position: relative; height: 32px; padding: 0 12px; background: #e9eefb; font-size: 16px; line-height: 32px; }
.resume-paper.template-default .resume-doc-section h2::before { width: 4px; height: 100%; border-radius: 0; }

.resume-paper.template-blue-linear { --resume-accent: #3b65f6; padding: 24px 24px 18px; }
.resume-paper.template-blue-linear .resume-doc-header { gap: 24px; padding-bottom: 8px; border: 0; }
.resume-paper.template-blue-linear .resume-doc-header-main { text-align: center; }
.resume-paper.template-blue-linear .resume-doc-contact { justify-items: center; }
.resume-paper.template-blue-linear .resume-doc-meta-line { justify-content: center; }
.resume-paper.template-blue-linear .resume-doc-photo { flex-basis: 96px; width: 96px; height: 120px; border: 0; border-radius: 0; box-shadow: none; }
.resume-paper.template-blue-linear .resume-doc-section { margin-top: 11px; }
.resume-paper.template-blue-linear .resume-doc-section h2 { padding-bottom: 5px; border-bottom: 1px solid #3b65f6; font-size: 18px; }
.resume-paper.template-blue-linear .resume-doc-section h2::before { display: none; }

.resume-paper.template-green-icon-linear {
  --resume-accent: #198e89;
  padding: 42px 20px 22px;
  overflow: hidden;
  background:
    repeating-radial-gradient(circle at 105% 8%, rgba(152, 169, 177, 0.2) 0 2px, transparent 2px 22px),
    linear-gradient(180deg, #168f89 0 18px, #edf2f5 18px 100%);
}
.resume-paper.template-green-icon-linear .resume-doc-header { padding: 14px 16px; border: 1px solid #d7e1e7; border-radius: 10px; background: #f8fafb; }
.resume-paper.template-green-icon-linear .resume-doc-photo { flex-basis: 94px; width: 94px; height: 120px; border: 1px solid #d0dce2; border-radius: 2px; box-shadow: none; }
.resume-paper.template-green-icon-linear .resume-doc-section { margin-top: 10px; padding: 11px 14px; border: 1px solid #d7e1e7; border-radius: 10px; background: #f8fafb; }
.resume-paper.template-green-icon-linear .resume-doc-section h2 { gap: 8px; padding-bottom: 6px; border-bottom: 1px solid #c3d5dd; font-size: 17px; }
.resume-paper.template-green-icon-linear .resume-doc-section h2::before { display: none; }
.resume-paper.template-green-icon-linear .resume-doc-section-icon { display: grid; width: 19px; height: 19px; place-items: center; border-radius: 50%; background: #198e89; color: #fff; }
.resume-paper.template-green-icon-linear .resume-doc-section-icon .resume-doc-icon { width: 11px; height: 11px; }

.resume-paper.template-black-white-linear { --resume-accent: #111; padding: 28px 30px; color: #222; }
.resume-paper.template-black-white-linear .resume-doc-header { align-items: flex-start; padding-bottom: 15px; border-bottom-width: 1px; }
.resume-paper.template-black-white-linear .resume-doc-header-main { text-align: center; }
.resume-paper.template-black-white-linear .resume-doc-contact { justify-items: center; color: #3b3b3b; font-weight: 600; }
.resume-paper.template-black-white-linear .resume-doc-meta-line { justify-content: center; }
.resume-paper.template-black-white-linear .resume-doc-meta-item > .resume-doc-icon { color: #222; }
.resume-paper.template-black-white-linear .resume-doc-photo { flex-basis: 88px; width: 88px; height: 108px; border: 1px solid #aaa; border-radius: 3px; box-shadow: none; filter: grayscale(1); }
.resume-paper.template-black-white-linear .resume-doc-header h1 { font-size: 32px; font-weight: 800; letter-spacing: 0.06em; }
.resume-paper.template-black-white-linear .resume-doc-title { color: #555; }
.resume-paper.template-black-white-linear .resume-doc-section { margin-top: 18px; }
.resume-paper.template-black-white-linear .resume-doc-section h2 { padding-bottom: 6px; border-bottom: 1px solid #2c2c2c; color: #111; font-size: 14px; letter-spacing: 0.08em; }
.resume-paper.template-black-white-linear .resume-doc-section h2::before { display: none; }

.resume-paper.template-workplace-general {
  --resume-accent: #3c78ef;
  position: relative;
  overflow: hidden;
  padding: 0 30px 34px;
  background: linear-gradient(160deg, #f8fbff 0%, #f3f6ff 100%);
}
.resume-paper.template-workplace-general::before { content: ""; position: absolute; top: 0; left: -8%; width: 116%; height: 118px; border-radius: 0 0 50% 50%; background: linear-gradient(180deg, #4e86f2, #3d74e4); }
.resume-paper.template-workplace-general::after { content: ""; position: absolute; top: 132px; right: -100px; width: 300px; height: 300px; border: 1px solid rgba(59, 130, 246, 0.12); border-radius: 50%; box-shadow: 0 0 0 42px rgba(59, 130, 246, 0.05), 0 0 0 84px rgba(59, 130, 246, 0.03); }
.resume-paper.template-workplace-general > * { position: relative; z-index: 1; }
.resume-paper.template-workplace-general .resume-doc-header { display: grid; justify-items: center; min-height: 215px; padding: 70px 20px 14px; border: 0; text-align: center; }
.resume-paper.template-workplace-general .resume-doc-header-main { order: 2; }
.resume-paper.template-workplace-general .resume-doc-photo { order: 1; flex-basis: 96px; width: 96px; height: 96px; border: 5px solid #fff; border-radius: 50%; box-shadow: 0 8px 24px rgba(61, 116, 228, 0.24); }
.resume-paper.template-workplace-general .resume-doc-header h1 { color: #1f2f4d; font-size: 30px; }
.resume-paper.template-workplace-general .resume-doc-contact { justify-items: center; }
.resume-paper.template-workplace-general .resume-doc-meta-line { justify-content: center; }
.resume-paper.template-workplace-general .resume-doc-section { margin-top: 12px; }
.resume-paper.template-workplace-general .resume-doc-section h2 { justify-content: center; color: #3c78ef; font-weight: 500; text-align: center; }
.resume-paper.template-workplace-general .resume-doc-section h2::before,
.resume-paper.template-workplace-general .resume-doc-section h2::after { content: ""; display: block; flex: 1; width: auto; height: 0; border-top: 1px solid #4f82f3; border-radius: 0; background: none; }
.resume-paper.template-workplace-general .resume-doc-section h2 > span { flex: 0 0 auto; padding: 0 7px; }

.resume-paper.template-blue-sidebar-career,
.resume-paper.template-blue-split-pro {
  --resume-accent: #1f73d9;
  display: grid;
  grid-template-columns: 218px 1fr;
  grid-template-rows: repeat(6, auto);
  align-content: start;
  padding: 0;
  background: linear-gradient(90deg, transparent 0 218px, #f7faff 218px 100%), linear-gradient(180deg, #1f73d9, #1a5fb8);
}
.resume-paper.template-blue-sidebar-career .resume-doc-header,
.resume-paper.template-blue-split-pro .resume-doc-header { grid-column: 1; grid-row: 1 / span 6; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 30px 18px; border: 0; background: transparent; text-align: center; }
.resume-paper.template-blue-sidebar-career .resume-doc-header-main,
.resume-paper.template-blue-split-pro .resume-doc-header-main { order: 2; width: 100%; }
.resume-paper.template-blue-sidebar-career .resume-doc-photo,
.resume-paper.template-blue-split-pro .resume-doc-photo { order: 1; flex-basis: 118px; width: 96px; height: 118px; border: 2px solid rgba(255,255,255,.4); border-radius: 8px; box-shadow: none; }
.resume-paper.template-blue-sidebar-career .resume-doc-header h1,
.resume-paper.template-blue-split-pro .resume-doc-header h1 { color: #fff; font-size: 26px; }
.resume-paper.template-blue-sidebar-career .resume-doc-title,
.resume-paper.template-blue-split-pro .resume-doc-title { color: #dceaff; }
.resume-paper.template-blue-sidebar-career .resume-doc-contact,
.resume-paper.template-blue-split-pro .resume-doc-contact { width: 100%; margin-top: 18px; padding-top: 13px; border-top: 1px solid rgba(226, 237, 255, 0.24); color: #e6f0ff; text-align: left; }
.resume-paper.template-blue-sidebar-career .resume-doc-contact::before,
.resume-paper.template-blue-split-pro .resume-doc-contact::before { content: "联系方式"; color: #fff; font-size: 13px; font-weight: 800; text-align: left; }
.resume-paper.template-blue-sidebar-career .resume-doc-meta-line,
.resume-paper.template-blue-split-pro .resume-doc-meta-line { display: grid; justify-items: start; gap: 6px; }
.resume-paper.template-blue-sidebar-career .resume-doc-meta-item,
.resume-paper.template-blue-split-pro .resume-doc-meta-item { width: 100%; align-items: flex-start; font-size: 10px; line-height: 1.45; }
.resume-paper.template-blue-sidebar-career .resume-doc-meta-item > .resume-doc-icon,
.resume-paper.template-blue-split-pro .resume-doc-meta-item > .resume-doc-icon { margin-top: 1px; color: #dceaff; }
.resume-paper.template-blue-sidebar-career .resume-doc-contact a,
.resume-paper.template-blue-split-pro .resume-doc-contact a { color: #fff; }
.resume-paper.template-blue-sidebar-career .resume-doc-section,
.resume-paper.template-blue-split-pro .resume-doc-section { grid-column: 2; margin: 16px 24px 0; }
.resume-paper.template-blue-sidebar-career .resume-doc-section:first-of-type,
.resume-paper.template-blue-split-pro .resume-doc-section:first-of-type { margin-top: 30px; }
.resume-paper.template-blue-sidebar-career .resume-doc-section:last-of-type,
.resume-paper.template-blue-split-pro .resume-doc-section:last-of-type { margin-bottom: 30px; }
.resume-paper.template-blue-sidebar-career .resume-doc-section h2 { padding-bottom: 6px; border-bottom: 1px solid #bcd5f8; }
.resume-paper.template-blue-sidebar-career .resume-doc-section h2::before { display: none; }
.resume-paper.template-blue-sidebar-career .resume-doc-section-icon { display: grid; width: 19px; height: 19px; place-items: center; border-radius: 50%; background: #1f73d9; color: #fff; }
.resume-paper.template-blue-sidebar-career .resume-doc-section-icon .resume-doc-icon { width: 11px; height: 11px; }

.resume-paper.template-blue-split-pro { --resume-accent: #345fc0; grid-template-columns: 228px 1fr; background: linear-gradient(90deg, transparent 0 228px, #fff 228px 100%), radial-gradient(circle at 228px 0, rgba(255,255,255,.16) 0 120px, transparent 121px), linear-gradient(180deg, #3f71d8, #2d54ab); }
.resume-paper.template-blue-split-pro .resume-doc-section h2 { gap: 10px; }
.resume-paper.template-blue-split-pro .resume-doc-section h2::before { display: none; }
.resume-paper.template-blue-split-pro .resume-doc-section h2::after { content: ""; flex: 1; border-top: 1px solid #d0d7e2; }

.resume-paper.template-blue-card { --resume-accent: #2855a0; padding: 28px 24px; }
.resume-paper.template-blue-card .resume-doc-header { gap: 24px; padding: 0 0 12px; border: 0; background: transparent; }
.resume-paper.template-blue-card .resume-doc-header-main { text-align: center; }
.resume-paper.template-blue-card .resume-doc-header h1 { font-size: 28px; font-weight: 500; }
.resume-paper.template-blue-card .resume-doc-title { display: none; }
.resume-paper.template-blue-card .resume-meta-role { display: inline-flex; }
.resume-paper.template-blue-card .resume-doc-contact { justify-items: center; margin-top: 12px; color: #333; font-size: 11px; }
.resume-paper.template-blue-card .resume-doc-meta-line { justify-content: center; }
.resume-paper.template-blue-card .resume-doc-meta-links { margin-top: 1px; }
.resume-paper.template-blue-card .resume-doc-photo { border: 1px solid #dbe1ea; border-radius: 6px; box-shadow: none; }
.resume-paper.template-blue-card .resume-doc-section { margin-top: 12px; }
.resume-paper.template-blue-card .resume-doc-section h2 { gap: 0; align-items: flex-end; width: 100%; color: #fff; line-height: 1; }
.resume-paper.template-blue-card .resume-doc-section h2::before { display: none; }
.resume-paper.template-blue-card .resume-doc-section h2::after { content: ""; flex: 1; margin-bottom: 1px; border-top: 1px solid #d0d7e2; }
.resume-paper.template-blue-card .resume-doc-section h2 > span { flex: 0 0 auto; padding: 7px 18px; border-radius: 4px; background: #2855a0; }
.resume-paper.template-blue-card .resume-doc-entry { padding: 0; border: 0; background: transparent; }
.resume-paper.template-blue-card .resume-doc-entry-head strong { color: #111; font-size: 14px; }
.resume-paper.template-blue-card .resume-meta-role { color: #334155; font-weight: 700; }
.resume-paper.template-blue-card .resume-doc-entry-sub { color: #8295b2; font-size: 12px; font-weight: 500; }
.resume-paper.template-blue-card .resume-doc-entry-date,
.resume-paper.template-blue-card .resume-doc-entry-meta { color: #94a3b8 !important; font-size: 10px; }
.resume-paper.template-blue-card .resume-doc-entry ul,
.resume-paper.template-blue-card .resume-skill-list { color: #111; font-size: 11px; line-height: 1.7; }

.resume-paper.template-red-gradient-template {
  --resume-accent: #c11b4c;
  position: relative;
  overflow: hidden;
  padding: 24px 24px 30px;
  background: repeating-radial-gradient(circle at 106% -4%, rgba(195, 49, 95, 0.08) 0 1px, transparent 1px 16px), linear-gradient(180deg, #fffafb, #fff);
}
.resume-paper.template-red-gradient-template .resume-doc-header { display: grid; grid-template-columns: 128px 1fr; gap: 0; padding: 0; border: 0; }
.resume-paper.template-red-gradient-template .resume-doc-header-main { grid-column: 2; min-height: 145px; padding: 25px 26px 20px 38px; border-bottom-left-radius: 34px; background: repeating-radial-gradient(circle at 100% 0, rgba(255,255,255,.13) 0 1px, transparent 1px 15px), linear-gradient(90deg, #bd0d42, #d65881); box-shadow: 0 14px 30px rgba(190, 35, 87, 0.16); }
.resume-paper.template-red-gradient-template .resume-doc-header:not(:has(.resume-doc-photo)) .resume-doc-header-main { grid-column: 1 / -1; }
.resume-paper.template-red-gradient-template .resume-doc-photo { grid-column: 1; grid-row: 1; align-self: center; justify-self: center; width: 98px; height: 124px; border: 0; border-radius: 9px; background: #fff; box-shadow: 0 16px 30px rgba(157, 23, 70, 0.14); }
.resume-paper.template-red-gradient-template .resume-doc-header h1 { color: #1c1012; font-size: 28px; }
.resume-paper.template-red-gradient-template .resume-doc-title { color: #361820; }
.resume-paper.template-red-gradient-template .resume-doc-contact { color: #381b23; }
.resume-paper.template-red-gradient-template .resume-doc-contact a { color: #2d1418; }
.resume-paper.template-red-gradient-template .resume-doc-section { margin-top: 16px; }
.resume-paper.template-red-gradient-template .resume-doc-section h2 { position: relative; min-height: 30px; padding: 0 12px 0 24px; background: linear-gradient(90deg, rgba(244, 219, 226, 0.55), rgba(255, 244, 247, 0.72)); color: #c11b4c; }
.resume-paper.template-red-gradient-template .resume-doc-section h2::before { position: absolute; left: 0; width: 5px; height: 100%; border-radius: 0; }

.resume-paper.template-editorial-green {
  --resume-accent: #173f35;
  padding: 34px;
  background: linear-gradient(90deg, #f3eadc 0 9px, #fbf7ef 9px 100%);
  color: #24332e;
}
.resume-paper.template-editorial-green .resume-doc-header { position: relative; min-height: 156px; padding: 27px 28px; overflow: hidden; border: 0; background: #173f35; color: #fff; }
.resume-paper.template-editorial-green .resume-doc-header::after { content: ""; position: absolute; right: 88px; bottom: -72px; width: 180px; height: 180px; border: 1px solid rgba(239, 189, 105, 0.35); border-radius: 50%; }
.resume-paper.template-editorial-green .resume-doc-header-main,
.resume-paper.template-editorial-green .resume-doc-photo { position: relative; z-index: 1; }
.resume-paper.template-editorial-green .resume-doc-header h1 { color: #fff8ea; font-family: Georgia, "Songti SC", serif; font-size: 38px; font-weight: 500; letter-spacing: .08em; }
.resume-paper.template-editorial-green .resume-doc-title { color: #efbd69; letter-spacing: .12em; }
.resume-paper.template-editorial-green .resume-doc-contact { max-width: 440px; color: rgba(255,255,255,.72); }
.resume-paper.template-editorial-green .resume-doc-contact a { color: #f3d79f; }
.resume-paper.template-editorial-green .resume-doc-photo { flex-basis: 96px; width: 96px; height: 118px; border: 2px solid #efbd69; border-radius: 0; box-shadow: 9px 9px 0 rgba(239,189,105,.16); }
.resume-paper.template-editorial-green .resume-doc-section { margin-top: 18px; }
.resume-paper.template-editorial-green .resume-doc-section h2 { gap: 11px; color: #173f35; font-family: Georgia, "Songti SC", serif; font-size: 17px; letter-spacing: .08em; }
.resume-paper.template-editorial-green .resume-doc-section h2::before { width: 24px; height: 2px; border-radius: 0; background: #d1a654; }
.resume-paper.template-editorial-green .resume-doc-entry-head strong { color: #173f35; }

.resume-paper.template-coral-geometric {
  --resume-accent: #ef6a5b;
  position: relative;
  overflow: hidden;
  padding: 0 38px 34px;
  background: #fffdf9;
}
.resume-paper.template-coral-geometric::before { content: ""; position: absolute; top: 0; right: 0; width: 44%; height: 176px; background: #ef6a5b; clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 62%); }
.resume-paper.template-coral-geometric .resume-doc-header { position: relative; isolation: isolate; min-height: 176px; padding: 35px 0 25px; border: 0; }
.resume-paper.template-coral-geometric .resume-doc-header::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -38px; width: 67%; background: #182a46; clip-path: polygon(0 0, 100% 0, 86% 100%, 0 83%); }
.resume-paper.template-coral-geometric .resume-doc-header h1 { color: #fff; font-size: 36px; }
.resume-paper.template-coral-geometric .resume-doc-title { color: #ffcfc8; }
.resume-paper.template-coral-geometric .resume-doc-contact { max-width: 410px; color: rgba(255,255,255,.78); }
.resume-paper.template-coral-geometric .resume-doc-contact a { color: #fff; }
.resume-paper.template-coral-geometric .resume-doc-photo { flex-basis: 112px; width: 112px; height: 112px; border: 6px solid #fff; border-radius: 50%; box-shadow: 0 10px 24px rgba(24,42,70,.2); }
.resume-paper.template-coral-geometric .resume-doc-section { margin-top: 16px; }
.resume-paper.template-coral-geometric .resume-doc-section h2 { gap: 10px; color: #182a46; }
.resume-paper.template-coral-geometric .resume-doc-section h2::before { width: 9px; height: 9px; border: 4px solid #ef6a5b; border-radius: 50%; background: #fff; }
.resume-paper.template-coral-geometric .resume-doc-section h2::after { content: ""; flex: 1; border-top: 1px solid #f1c4bd; }
.resume-paper.template-coral-geometric .resume-doc-entry-sub { color: #ef6a5b !important; }

.resume-paper.template-cream-minimal {
  --resume-accent: #7a6046;
  padding: 48px 54px;
  background: #f8f2e8;
  color: #332d27;
}
.resume-paper.template-cream-minimal .resume-doc-header { align-items: center; padding: 0 0 24px; border-bottom: 1px solid #bcae9d; }
.resume-paper.template-cream-minimal .resume-doc-header-main { padding-left: 18px; border-left: 3px solid #9b8062; }
.resume-paper.template-cream-minimal .resume-doc-header h1 { color: #2f2924; font-family: Georgia, "Songti SC", serif; font-size: 37px; font-weight: 500; letter-spacing: .1em; }
.resume-paper.template-cream-minimal .resume-doc-title { color: #8b7054; font-weight: 600; letter-spacing: .14em; }
.resume-paper.template-cream-minimal .resume-doc-contact { color: #75695d; }
.resume-paper.template-cream-minimal .resume-doc-photo { flex-basis: 82px; width: 82px; height: 102px; border: 1px solid #bcae9d; border-radius: 50% 50% 6px 6px; box-shadow: none; filter: sepia(.08); }
.resume-paper.template-cream-minimal .resume-doc-section { margin-top: 22px; }
.resume-paper.template-cream-minimal .resume-doc-section h2 { color: #4c4035; font-family: Georgia, "Songti SC", serif; font-size: 15px; font-weight: 600; letter-spacing: .16em; }
.resume-paper.template-cream-minimal .resume-doc-section h2::before { width: 16px; height: 1px; border-radius: 0; background: #9b8062; }
.resume-paper.template-cream-minimal .resume-doc-section h2::after { content: ""; flex: 1; border-top: 1px solid #d8ccbd; }
.resume-paper.template-cream-minimal .resume-doc-entry-head strong { font-family: Georgia, "Songti SC", serif; }

.resume-paper.template-navy-gold-executive {
  --resume-accent: #caa75b;
  padding: 0 44px 38px;
  background: linear-gradient(90deg, #caa75b 0 8px, #fff 8px 100%);
  color: #172438;
}
.resume-paper.template-navy-gold-executive .resume-doc-header { margin: 0 -44px; padding: 38px 46px 34px 54px; border: 0; background: linear-gradient(135deg, #0d233d, #173b61); color: #fff; }
.resume-paper.template-navy-gold-executive .resume-doc-header h1 { color: #fff; font-family: Georgia, "Songti SC", serif; font-size: 38px; font-weight: 500; letter-spacing: .08em; }
.resume-paper.template-navy-gold-executive .resume-doc-title { color: #e8c875; letter-spacing: .12em; }
.resume-paper.template-navy-gold-executive .resume-doc-contact { color: rgba(255,255,255,.76); }
.resume-paper.template-navy-gold-executive .resume-doc-meta-item > .resume-doc-icon,
.resume-paper.template-navy-gold-executive .resume-doc-contact a { color: #e8c875; }
.resume-paper.template-navy-gold-executive .resume-doc-photo { flex-basis: 98px; width: 98px; height: 122px; border: 2px solid #caa75b; border-radius: 2px; box-shadow: 10px 10px 0 rgba(202,167,91,.16); }
.resume-paper.template-navy-gold-executive .resume-doc-section { margin-top: 20px; }
.resume-paper.template-navy-gold-executive .resume-doc-section h2 { gap: 10px; color: #173b61; font-family: Georgia, "Songti SC", serif; font-size: 16px; letter-spacing: .1em; }
.resume-paper.template-navy-gold-executive .resume-doc-section h2::before { width: 5px; height: 18px; border-radius: 0; background: #caa75b; }
.resume-paper.template-navy-gold-executive .resume-doc-section h2::after { content: ""; flex: 1; border-top: 1px solid #c9d3df; }
.resume-paper.template-navy-gold-executive .resume-doc-entry-head strong { color: #0d233d; }
.resume-paper.template-navy-gold-executive .resume-doc-entry-sub { color: #8a6d2f; }

.resume-paper.template-sage-grid {
  --resume-accent: #56705d;
  padding: 34px;
  background: #f6f3ea;
  color: #28372e;
}
.resume-paper.template-sage-grid .resume-doc-header { align-items: center; padding: 27px 30px; border: 1px solid #b9c7b8; border-radius: 28px 5px 28px 5px; background: linear-gradient(135deg, #dbe5d8, #edf1e8); }
.resume-paper.template-sage-grid .resume-doc-header-main { order: 2; }
.resume-paper.template-sage-grid .resume-doc-photo { order: 1; flex-basis: 106px; width: 106px; height: 106px; border: 5px solid #f6f3ea; border-radius: 50%; box-shadow: 0 8px 18px rgba(54,76,61,.16); }
.resume-paper.template-sage-grid .resume-doc-header h1 { color: #263c2e; font-family: Georgia, "Songti SC", serif; font-size: 34px; font-weight: 500; }
.resume-paper.template-sage-grid .resume-doc-title { color: #56705d; letter-spacing: .08em; }
.resume-paper.template-sage-grid .resume-doc-section { margin-top: 14px; padding: 13px 15px; border: 1px solid #cbd5c8; border-radius: 4px 16px 4px 16px; background: rgba(255,255,255,.65); }
.resume-paper.template-sage-grid .resume-doc-section h2 { color: #3f5e49; }
.resume-paper.template-sage-grid .resume-doc-section h2::before { width: 18px; height: 18px; border: 5px solid #6e8d75; border-radius: 50%; background: #edf1e8; }
.resume-paper.template-sage-grid .resume-doc-entry-head strong { color: #304b38; }
.resume-paper.template-sage-grid .resume-doc-entry-sub { color: #6d806f; }

.resume-paper.template-lilac-wave {
  --resume-accent: #7656b3;
  position: relative;
  overflow: hidden;
  padding: 0 38px 36px;
  background: linear-gradient(180deg, #fbf9ff, #fff);
}
.resume-paper.template-lilac-wave::after { content: ""; position: absolute; z-index: 0; top: 116px; right: -105px; width: 300px; height: 300px; border: 1px solid rgba(118,86,179,.12); border-radius: 50%; box-shadow: 0 0 0 40px rgba(118,86,179,.05), 0 0 0 80px rgba(118,86,179,.03); }
.resume-paper.template-lilac-wave > * { position: relative; z-index: 1; }
.resume-paper.template-lilac-wave .resume-doc-header { min-height: 188px; margin: 0 -38px; padding: 37px 44px 42px; overflow: hidden; border: 0; border-radius: 0 0 48% 15%; background: linear-gradient(135deg, #6546a4, #9a7bd2); }
.resume-paper.template-lilac-wave .resume-doc-header h1 { color: #fff; font-size: 36px; }
.resume-paper.template-lilac-wave .resume-doc-title { color: #f1e8ff; }
.resume-paper.template-lilac-wave .resume-doc-contact { color: rgba(255,255,255,.82); }
.resume-paper.template-lilac-wave .resume-doc-meta-item > .resume-doc-icon,
.resume-paper.template-lilac-wave .resume-doc-contact a { color: #f5d978; }
.resume-paper.template-lilac-wave .resume-doc-photo { flex-basis: 108px; width: 108px; height: 108px; border: 6px solid #fff; border-radius: 50%; box-shadow: 0 10px 24px rgba(53,31,91,.24); }
.resume-paper.template-lilac-wave .resume-doc-section { margin-top: 17px; }
.resume-paper.template-lilac-wave .resume-doc-section h2 { gap: 0; color: #fff; }
.resume-paper.template-lilac-wave .resume-doc-section h2::before { display: none; }
.resume-paper.template-lilac-wave .resume-doc-section h2::after { content: ""; flex: 1; border-top: 1px solid #d7caec; }
.resume-paper.template-lilac-wave .resume-doc-section h2 > span { padding: 6px 15px; border-radius: 0 13px 13px 0; background: #7656b3; }
.resume-paper.template-lilac-wave .resume-doc-entry-head strong { color: #33264a; }
.resume-paper.template-lilac-wave .resume-doc-entry-sub { color: #836ab0; }

@media (max-width: 1080px) {
  .resume-template-gallery { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 112px; }
  .resume-file-actions { margin-left: auto; justify-content: flex-end; }
  .resume-workspace { grid-template-columns: 1fr; }
  .resume-preview-pane { position: static; }
  .resume-paper-wrap { max-height: none; }
  .resume-paper { max-width: 760px; }
}

@media (max-width: 720px) {
  .module-nav { grid-template-columns: repeat(4, 1fr); }
  .resume-section { width: calc(100% - 16px); margin-top: 8px; }
  .resume-head { align-items: flex-start; flex-direction: column; min-height: 0; padding: 25px 20px; border-radius: 20px; }
  .resume-head-note { width: 100%; }
  .resume-template-copy { width: 100%; }
  .resume-template-switch { width: 100%; grid-template-columns: auto 1fr auto; }
  .resume-template-option { min-width: 98px; grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .resume-file-actions { display: grid; grid-template-columns: repeat(3, 1fr); }
  .resume-form-grid,
  .resume-entry-card { grid-template-columns: 1fr; }
  .resume-module-tools { position: fixed; z-index: 90; top: auto; right: 12px; bottom: 18px; display: block; height: auto; }
  .resume-module-tool { width: 44px; height: 44px; }
  .resume-module-menu { position: fixed; top: auto; right: 8px; bottom: 72px; width: min(292px, calc(100vw - 16px)); max-width: none; }
  .resume-module-list { max-height: min(58dvh, 390px); }
  .resume-field-wide,
  .resume-entry-card .entry-wide { grid-column: 1; }
  .resume-preview-pane { padding: 8px; }
  .resume-design-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .resume-designer-actions #resume-share-link { margin-left: 0; }
  .resume-designer-sidepanels { grid-template-columns: 1fr; }
  .resume-page-manager { grid-template-columns: 1fr auto; }
  .resume-page-manager > div:first-child { grid-column: 1 / -1; }
  .resume-page-tabs { grid-column: 1; }
  .resume-design-selection { grid-column: 1 / -1; }
  .resume-design-button-group { grid-column: 1 / -1; }
  .resume-design-reset-actions { grid-column: 1 / -1; justify-content: stretch; }
  .resume-design-reset-actions button { flex: 1; }
  .resume-paper-wrap { padding: 8px; }
  .resume-paper { min-height: 780px; padding: 26px 22px; }
  .resume-paper.template-blue-sidebar-career,
  .resume-paper.template-blue-split-pro { grid-template-columns: 35% 1fr; }
  .resume-paper.template-blue-sidebar-career { background: linear-gradient(90deg, transparent 0 35%, #f7faff 35% 100%), linear-gradient(180deg, #1f73d9, #1a5fb8); }
  .resume-paper.template-blue-split-pro { background: linear-gradient(90deg, transparent 0 35%, #fff 35% 100%), radial-gradient(circle at 35% 0, rgba(255,255,255,.16) 0 90px, transparent 91px), linear-gradient(180deg, #3f71d8, #2d54ab); }
  .resume-paper.template-blue-sidebar-career .resume-doc-header,
  .resume-paper.template-blue-split-pro .resume-doc-header { padding: 28px 13px; }
  .resume-paper.template-blue-sidebar-career .resume-doc-section,
  .resume-paper.template-blue-split-pro .resume-doc-section { margin-right: 14px; margin-left: 14px; }
  .resume-paper.template-workplace-general .resume-doc-header { padding-right: 12px; padding-left: 12px; }
  .resume-paper.template-editorial-green { padding: 18px; }
  .resume-paper.template-editorial-green .resume-doc-header { padding: 22px 20px; }
  .resume-paper.template-editorial-green .resume-doc-header h1 { font-size: 30px; }
  .resume-paper.template-coral-geometric { padding-right: 20px; padding-left: 20px; }
  .resume-paper.template-coral-geometric .resume-doc-header::before { left: -20px; width: 72%; }
  .resume-paper.template-coral-geometric .resume-doc-header h1 { font-size: 29px; }
  .resume-paper.template-coral-geometric .resume-doc-photo { flex-basis: 82px; width: 82px; height: 82px; }
  .resume-paper.template-cream-minimal { padding: 30px 24px; }
  .resume-paper.template-navy-gold-executive { padding: 0 22px 28px; }
  .resume-paper.template-navy-gold-executive .resume-doc-header { margin-right: -22px; margin-left: -22px; padding: 28px 25px; }
  .resume-paper.template-sage-grid { padding: 18px; }
  .resume-paper.template-sage-grid .resume-doc-header { padding: 22px 20px; }
  .resume-paper.template-lilac-wave { padding-right: 20px; padding-left: 20px; }
  .resume-paper.template-lilac-wave .resume-doc-header { margin-right: -20px; margin-left: -20px; padding: 28px 24px 36px; }
  .resume-doc-header { flex-direction: column; }
  .resume-doc-identity { width: 100%; }
  .resume-doc-contact { justify-items: start; max-width: 100%; text-align: left; }
}

@media (max-width: 680px) {
  .resume-template-mask { align-items: end; padding: 8px; }
  .resume-template-dialog { width: 100%; max-height: min(88dvh, 760px); border-radius: 15px; }
  .resume-template-dialog-head { min-height: 54px; padding: 8px 11px; }
  .resume-template-dialog-head span { display: none; }
  .resume-template-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 9px; }
  .resume-template-card { padding: 6px; }
  .resume-template-info { padding-top: 7px; }
  .resume-template-info strong { font-size: 11px; }
}

@media (max-width: 420px) {
  .resume-template-list { grid-template-columns: 1fr; }
}

@media print {
  @page { size: A4; margin: 0; }
  body.resume-printing { background: #fff !important; }
  body.resume-printing > * { display: none !important; }
  body.resume-printing > #resume { display: block !important; width: 210mm !important; margin: 0 !important; }
  body.resume-printing .resume-head,
  body.resume-printing .resume-template-bar,
  body.resume-printing .resume-editor,
  body.resume-printing .resume-preview-toolbar,
  body.resume-printing .resume-design-panel { display: none !important; }
  body.resume-printing .resume-workspace,
  body.resume-printing .resume-preview-pane,
  body.resume-printing .resume-paper-wrap,
  body.resume-printing .resume-pages { display: block !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: #fff !important; box-shadow: none !important; }
  body.resume-printing .resume-paper { width: 210mm !important; min-height: 297mm !important; padding: 14mm 16mm !important; box-shadow: none !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  body.resume-printing .resume-page { overflow: hidden !important; break-after: page !important; }
  body.resume-printing .resume-page:last-child { break-after: auto !important; }
  body.resume-printing .resume-paper.template-blue-sidebar-career,
  body.resume-printing .resume-paper.template-blue-split-pro { padding: 0 !important; }
  body.resume-printing .resume-design-selected,
  body.resume-printing .resume-design-dragging { outline: 0 !important; box-shadow: none !important; }
  body.resume-printing .resume-snap-guide { display: none !important; }
}
