:root {
  --ink: #142f43;
  --green: #b9eb8d;
  --muted: #687783;
  --line: #dfe6e9;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font:
    16px/1.5 'Segoe UI',
    Arial,
    sans-serif;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #42865b;
  outline-offset: 3px;
}
.notice {
  background: var(--ink);
  color: #ecf6e7;
  text-align: center;
  font-size: 12px;
  padding: 7px 15px;
}
header {
  height: 85px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4%;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 27px;
  font-weight: 750;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  letter-spacing: -1px;
}
.logo {
  font-size: 30px;
  margin-right: 10px;
}
.dot {
  color: #5c904b;
}
.brand small {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 600;
  margin: 6px 0 0 16px;
  border-left: 1px solid #ccd5d9;
  padding-left: 16px;
}
.header-note {
  font-size: 14px;
  color: var(--muted);
}
.pill {
  font-size: 11px;
  letter-spacing: 1.5px;
  border: 1px solid var(--line);
  padding: 7px 12px;
  border-radius: 30px;
}
main {
  display: grid;
  grid-template-columns: minmax(390px, 0.9fr) minmax(0, 1.2fr);
  max-width: 1800px;
  margin: auto;
}
.editor {
  padding: 36px 38px;
  min-width: 0;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.8px;
  font-weight: 700;
  color: #537657;
  margin: 0 0 12px;
}
h1 {
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -1px;
  margin: 0;
}
.intro > p:last-child {
  color: var(--muted);
  margin: 12px 0 25px;
  font-size: 14px;
}
#sections {
  display: flex;
  gap: 6px;
  overflow: auto;
  padding: 0 0 19px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}
#sections button {
  white-space: nowrap;
  border: 0;
  background: #f1f4f5;
  color: #687783;
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 13px;
}
#sections button.active {
  background: var(--ink);
  color: white;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 23px 0 17px;
}
.section-heading h2 {
  font-size: 20px;
  margin: 0;
  letter-spacing: -0.4px;
}
.section-heading span {
  font-size: 12px;
  color: var(--muted);
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.field.full {
  grid-column: 1/-1;
}
label {
  font-size: 14px;
  font-weight: 600;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid #cfd9de;
  border-radius: 7px;
  background: #fff;
  padding: 11px 12px;
  color: var(--ink);
  font-size: 14px;
  outline: none;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #468263;
  box-shadow: 0 0 0 3px #46826314;
}
textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.7;
}
.hint {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.tip {
  background: #f0f6ec;
  border-left: 3px solid #9cc97c;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.7;
  margin: 20px 0 0;
}
.entry {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin: 0 0 16px;
}
.entry-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
}
.remove {
  border: 0;
  background: none;
  color: #8a4444;
  font-size: 12px;
  padding: 5px;
}
.add {
  border: 1px dashed #8ba394;
  border-radius: 7px;
  background: #f8fbf6;
  color: #32583a;
  padding: 11px;
  width: 100%;
  font-size: 14px;
}
.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
#step-label {
  font-size: 13px;
  color: var(--muted);
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  border: 0;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 600;
}
.btn:hover {
  background: #244b65;
}
.btn:disabled {
  opacity: 0.5;
  cursor: wait;
}
.privacy {
  font-size: 12px;
  color: var(--muted);
  margin-top: 20px;
}
.preview-zone {
  background: #edf1f3;
  border-left: 1px solid var(--line);
  padding: 28px 34px;
  min-width: 0;
}
.preview-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  max-width: 760px;
  margin: 0 auto 20px;
}
.live-dot {
  display: inline-block;
  background: #64956a;
  width: 7px;
  height: 7px;
  border-radius: 100%;
  margin-right: 8px;
}
.muted {
  color: var(--muted);
}
.template-tag {
  font-size: 10px;
  letter-spacing: 1.4px;
}
.paper-wrap {
  position: relative;
  background: #fff;
  max-width: 760px;
  margin: auto;
  box-shadow: 0 8px 28px #1733480c;
  min-height: 790px;
  overflow: hidden;
}
#paper {
  padding: 42px 43px 50px;
  color: #222;
  font-family: Arial, sans-serif;
  font-size: 11px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
#paper h2 {
  font-size: 24px;
  letter-spacing: 1px;
  margin: 0 0 6px;
  color: #132a3a;
}
#paper .role {
  font-size: 12px;
  color: #536574;
  margin-bottom: 7px;
}
#paper .contact {
  font-size: 10px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 17px;
}
#paper .summary {
  margin: 0 0 18px;
}
#paper h3 {
  font-size: 10px;
  letter-spacing: 1.5px;
  padding-bottom: 5px;
  border-bottom: 1px solid #333;
  margin: 19px 0 10px;
}
#paper .cv-entry {
  margin-bottom: 12px;
}
#paper .cv-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
#paper .date {
  white-space: nowrap;
  font-size: 10px;
}
#paper ul {
  padding-left: 16px;
  margin: 5px 0;
}
#paper li {
  margin: 3px 0;
}
#paper p {
  margin: 3px 0;
}
.watermark {
  position: absolute;
  top: 320px;
  left: 50%;
  transform: translateX(-50%) rotate(-32deg);
  font-size: 57px;
  letter-spacing: 7px;
  color: #142f430a;
  font-weight: 700;
  pointer-events: none;
}
.preview-note,
.sample-note {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  max-width: 760px;
  margin: 13px auto;
}
.download-bar {
  max-width: 760px;
  margin: 22px auto 0;
  background: #fff;
  border: 1px solid var(--line);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-radius: 10px;
}
.download-bar strong {
  font-size: 14px;
}
.download-bar p {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 0;
}
.download-bar .btn {
  background: var(--green);
  color: var(--ink);
  flex-direction: column;
  gap: 2px;
  min-width: 145px;
}
.download-bar .btn span {
  font-size: 12px;
  font-weight: 400;
}
dialog {
  border: 0;
  border-radius: 16px;
  padding: 32px;
  max-width: 450px;
  width: calc(100% - 30px);
  color: var(--ink);
}
dialog::backdrop {
  background: #102a43a8;
  backdrop-filter: blur(4px);
}
dialog h2 {
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.7px;
}
dialog p {
  font-size: 14px;
  color: var(--muted);
}
.close {
  position: absolute;
  top: 12px;
  right: 15px;
  background: none;
  border: 0;
  font-size: 26px;
  color: var(--ink);
}
.order {
  display: flex;
  justify-content: space-between;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 22px 0;
  font-size: 14px;
}
.methods {
  display: flex;
  gap: 10px;
  margin: 18px 0;
}
.method {
  border: 1px solid var(--line);
  padding: 14px;
  background: #fff;
  border-radius: 7px;
  flex: 1;
  font-size: 14px;
  color: var(--ink);
}
.method.selected {
  border: 2px solid #5f8751;
  background: #f4f9ef;
}
.wide {
  width: 100%;
  margin-top: 14px;
}
.demo {
  font-size: 12px !important;
  background: #f1f6ed;
  padding: 12px;
  border-radius: 7px;
}
.check {
  font-size: 40px;
  color: #508546;
}
#toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 7px;
  font-size: 14px;
  display: none;
  z-index: 20;
}
.mobile-tabs {
  display: none;
}
@media (min-width: 1450px) {
  .editor {
    padding: 45px 65px;
  }
}
@media (max-width: 1000px) {
  .editor {
    padding: 28px 22px;
  }
  .preview-zone {
    padding: 25px 18px;
  }
  .header-note {
    display: none;
  }
  #paper {
    padding: 30px 25px;
  }
  .download-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .download-bar .btn {
    flex-direction: row;
  }
}
@media (max-width: 760px) {
  header {
    height: 70px;
    padding: 0 20px;
  }
  .brand {
    font-size: 24px;
  }
  .pill {
    display: none;
  }
  main {
    display: block;
  }
  .editor {
    padding: 25px 20px;
  }
  .intro h1 {
    font-size: 30px;
  }
  .mobile-tabs {
    display: flex;
    gap: 8px;
    margin: 20px 0;
  }
  .mobile-tabs button {
    flex: 1;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: white;
    color: var(--ink);
    font-size: 14px;
  }
  .mobile-tabs button[aria-pressed='true'] {
    background: var(--ink);
    color: white;
  }
  .preview-zone {
    display: none;
    border: 0;
    padding: 22px 15px;
  }
  body.preview-mobile .preview-zone {
    display: block;
  }
  body.preview-mobile #sections,
  body.preview-mobile #form-area,
  body.preview-mobile .form-footer,
  body.preview-mobile .privacy {
    display: none;
  }
  body.preview-mobile .editor {
    padding-bottom: 0;
  }
  .paper-wrap {
    min-height: 620px;
  }
  #paper {
    padding: 25px;
    font-size: 10px;
  }
  #paper h2 {
    font-size: 20px;
  }
  .fields {
    gap: 13px;
  }
  .entry {
    padding: 15px;
  }
  .watermark {
    font-size: 36px;
  }
  .download-bar {
    flex-direction: row;
    align-items: center;
  }
  .download-bar .btn {
    flex-direction: column;
    min-width: 125px;
    padding: 12px;
  }
  .preview-toolbar {
    font-size: 12px;
  }
}
@media (max-width: 390px) {
  .fields {
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: auto;
  }
  .brand small {
    font-size: 10px;
  }
  .download-bar {
    flex-direction: column;
    align-items: stretch;
  }
}
@media print {
  body {
    display: none !important;
  }
}
@font-face {
  font-family: 'CV Arial Fallback';
  src: url('assets/fonts/LiberationSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'CV Arial Fallback';
  src: url('assets/fonts/LiberationSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
.language-choice {
  margin: 0 0 22px;
  padding: 15px;
  background: #f4f7f8;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.language-choice label {
  display: block;
  margin-bottom: 7px;
}
.language-choice select {
  margin-bottom: 7px;
}
.photo-upload {
  padding: 16px;
  border: 1px dashed #a2b4bc;
  border-radius: 8px;
  margin-bottom: 20px;
}
.photo-upload label {
  display: block;
  margin-bottom: 8px;
}
.photo-upload input {
  padding: 8px;
  font-size: 13px;
  margin-bottom: 8px;
}
#paper {
  font-family: 'Arial MT', ArialMT, Arial, 'CV Arial Fallback', sans-serif;
  line-height: 1.32;
  letter-spacing: 0;
  word-spacing: normal;
}
#paper h2 {
  letter-spacing: 0;
  font-size: 23px;
  margin-bottom: 5px;
}
#paper h3 {
  letter-spacing: 0;
  font-size: 11px;
  margin: 14px 0 7px;
  padding-bottom: 3px;
}
#paper .role {
  margin: 3px 0;
  font-size: 11px;
}
#paper .contact {
  margin: 4px 0 8px;
  line-height: 1.4;
}
#paper p {
  margin: 2px 0;
}
#paper .cv-row {
  align-items: baseline;
  margin: 3px 0;
  gap: 12px;
}
#paper .cv-row > span:first-child {
  min-width: 0;
}
#paper .date {
  margin-left: auto;
  text-align: right;
  font-weight: 400;
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 10px;
}
#paper .cv-bullet {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 3px 0;
}
#paper .cv-company {
  margin-top: 8px;
}
#paper .cv-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 10px;
}
#paper .cv-header > div {
  min-width: 0;
  flex: 1;
}
#paper .cv-photo {
  width: 15.5%;
  aspect-ratio: 3/4;
  object-fit: cover;
  flex-shrink: 0;
}
.preview-note {
  line-height: 1.5;
}
#paper .work-gap {
  height: 11px;
}
#paper .cv-bullet {
  margin-left: 15px;
  gap: 8px;
}
#paper .cv-bullet > span:first-child {
  flex: 0 0 4px;
}
.revision-status {
  border: 1px solid #d8e6cf;
  background: #f4f9f0;
  padding: 12px 15px;
  border-radius: 8px;
  margin: 0 0 16px;
}
.revision-status p {
  font-size: 13px;
  margin: 0;
  line-height: 1.6;
}
.revision-status .btn {
  margin-top: 10px;
  font-size: 13px;
}
.btn[hidden] {
  display: none;
}
.btn.secondary {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
}
input:disabled,
textarea:disabled,
select:disabled {
  background: #f3f5f6;
  color: #687783;
  cursor: default;
}
.add:disabled,
.remove:disabled {
  opacity: 0.45;
  cursor: default;
}
#paper .cv-header {
  display: flow-root;
  margin-bottom: 10px;
}
#paper .cv-header .cv-photo {
  float: left;
  width: 15.5%;
  margin: 0 4% 8px 0;
  aspect-ratio: 3/4;
  object-fit: cover;
}
#paper .cv-header h3 {
  display: flow-root;
}
#paper .cv-header .summary {
  text-align: justify;
  text-align-last: left;
  margin: 2px 0;
  line-height: 1.32;
  overflow-wrap: break-word;
}
#paper .summary {
  text-align: justify;
  text-align-last: left;
  line-height: 1.32;
}
input,
textarea,
select {
  color: #111;
}
input::placeholder,
textarea::placeholder {
  color: #8b9299;
  opacity: 1;
}
select.unselected {
  color: #8b9299;
}
select option {
  color: #111;
}
.checkbox-field {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  font-weight: 400;
}
.checkbox-field input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #142f43;
}
.language-heading {
  font-size: 18px;
  margin: 24px 0 16px;
}
.package-picker {
  max-width: 760px;
  margin: 22px auto 0;
  border: 0;
  padding: 0;
  display: flex;
  gap: 12px;
}
.package-picker legend {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}
.package-picker label {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #c8d4db;
  padding: 13px;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
}
.package-picker label:has(input:checked) {
  border-color: #4c7542;
  background: #f3f9ed;
}
.package-picker input {
  width: 17px;
  accent-color: #477348;
}
.package-picker strong {
  display: block;
  font-size: 14px;
}
.package-picker small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #63717b;
  margin-top: 3px;
}
.empty-cv {
  padding: 50px 5px;
  color: #8b9299;
}
.empty-cv h2 {
  font-size: 20px !important;
  color: #6d7981 !important;
}
.empty-cv p {
  font-size: 14px;
  line-height: 1.7 !important;
}
.download-bar {
  margin-top: 12px;
}
@media (max-width: 400px) {
  .package-picker {
    flex-direction: column;
  }
}
#paper .cv-header h2 {
  font-size: 28px;
  line-height: 1.16;
  margin-bottom: 9px;
}
#paper .cv-header .role {
  font-size: 14px;
  margin: 0 0 9px;
  line-height: 1.35;
}
#paper .cv-header .contact {
  font-size: 11.5px;
  line-height: 1.5;
  margin: 3px 0;
}
#paper .entry-gap {
  height: 7px;
}
.site-footer {
  text-align: center;
  padding: 22px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  background: white;
}
@media (max-width: 760px) {
  #paper .cv-header h2 {
    font-size: 23px;
  }
  #paper .cv-header .role {
    font-size: 12px;
  }
  #paper .cv-header .contact {
    font-size: 10px;
  }
}
#paper .cv-header {
  display: flex;
  align-items: flex-start;
  gap: 4%;
}
#paper .cv-header .cv-photo {
  float: none;
  margin: 0;
  flex: 0 0 15.5%;
  width: 15.5%;
}
#paper .cv-header .cv-identity {
  flex: 1;
  min-width: 0;
}

/* Shared label columns keep punctuation and wrapped values aligned. */
#paper .cv-header h2 {
  margin-bottom: 3px;
}
#paper .cv-labeled {
  display: grid;
  grid-template-columns: max-content 0.65em minmax(0, 1fr);
  column-gap: 0.3em;
  margin: 3px 0;
}
#paper .cv-header .contact {
  grid-template-columns: 6.2em 0.65em minmax(0, 1fr);
}
#paper .cv-value {
  overflow-wrap: anywhere;
  min-width: 0;
}

#paper .meta em {
  font-style: italic;
}
#paper .position-gap {
  height: 5px;
}
